harperdb 4.7.3 → 4.7.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.
Files changed (41) hide show
  1. package/README.md +1 -1
  2. package/bin/harperdb.js +80 -80
  3. package/bin/lite.js +75 -75
  4. package/components/EntryHandler.d.ts +2 -1
  5. package/components/Scope.d.ts +7 -0
  6. package/index.d.ts +3 -1
  7. package/launchServiceScripts/launchNatsIngestService.js +75 -75
  8. package/launchServiceScripts/launchNatsReplyService.js +75 -75
  9. package/launchServiceScripts/launchUpdateNodes4-0-0.js +75 -75
  10. package/npm-shrinkwrap.json +268 -268
  11. package/package.json +2 -2
  12. package/resources/DatabaseTransaction.d.ts +8 -0
  13. package/resources/IterableEventQueue.d.ts +9 -22
  14. package/resources/RequestTarget.d.ts +3 -29
  15. package/resources/ResourceInterface.d.ts +67 -39
  16. package/resources/Table.d.ts +27 -60
  17. package/resources/blob.d.ts +3 -4
  18. package/resources/tracked.d.ts +6 -6
  19. package/security/user.d.ts +81 -0
  20. package/server/jobs/jobProcess.js +75 -75
  21. package/server/operationsServer.d.ts +2 -2
  22. package/server/replication/knownNodes.d.ts +3 -2
  23. package/server/threads/threadServer.js +77 -77
  24. package/studio/web/assets/index-CNPtE0XQ.js +601 -0
  25. package/studio/web/assets/index-DAAAZCZd.css +4 -0
  26. package/studio/web/assets/{index-6-gJ5WC3.js → index-Dn_IqWNq.js} +1 -1
  27. package/studio/web/assets/{index-CSgNoGnC.js → index-OhIVM2M0.js} +10 -10
  28. package/studio/web/assets/{index-C03Y4API.css → index-YHth6Ryl.css} +1 -1
  29. package/studio/web/assets/index.lazy-D173BYf8.js +287 -0
  30. package/studio/web/assets/{profiler-CM1hwYor.js → profiler-DjvgK9z4.js} +1 -1
  31. package/studio/web/assets/{react-redux-Btk0svtM.js → react-redux-DQ-bSEyM.js} +1 -1
  32. package/studio/web/assets/{startRecording-DnAWdg8O.js → startRecording-DGFXrb7c.js} +1 -1
  33. package/studio/web/index.html +2 -2
  34. package/studio/web/running.css +148 -0
  35. package/studio/web/running.html +84 -72
  36. package/studio/web/running.js +111 -0
  37. package/utility/hdbTerms.d.ts +2 -0
  38. package/utility/scripts/restartHdb.js +75 -75
  39. package/studio/web/assets/index-BP6iofXy.css +0 -4
  40. package/studio/web/assets/index-CrWTuyjE.js +0 -490
  41. package/studio/web/assets/index.lazy-Cn-3uXi8.js +0 -287
@@ -1,287 +0,0 @@
1
- import{at as d9,au as nF,av as h9,a6 as mr,a7 as Bs,a9 as bs,aw as D2,ax as m9,ay as g9,az as y9,aA as v9,aB as b9,aC as E9,aD as F2,aE as S9,aF as ot,aG as Lr,aH as sF,aI as Zn,aJ as Rs,aK as hr,aL as _9,aM as w9,aN as x9,aO as id,aP as A9,aQ as O9,aR as C9,aS as q2,ah as R9,aT as T9,aU as I9}from"./index-CrWTuyjE.js";import{c as k9,a as P9,b as j9,d as N9,e as M9,f as D9,P as F9}from"./react-redux-Btk0svtM.js";function R_(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const q9={fn:{requestSnippetGenerator_fetch:t=>{const e=new URL(t.get("url"));let r=!1;const n=t.get("headers");n&&n.size&&n.map((o,u)=>{r=r||/^content-type$/i.test(u)&&/^multipart\/form-data$/i.test(o)});let s=t.get("body");const i=t.get("method");if(s){if(r&&["POST","PUT","PATCH"].includes(i))return'throw new Error("Currently unsupported content-type: /^multipart\\/form-data$/i");';typeof s!="string"&&(s=JSON.stringify(s,null," "))}else!s&&i==="POST"&&(s="");const a="`"+(s||"").replace(/\\n/g,`
2
- `).replace(/`/g,"\\`")+"`";return`const response = await fetch("${e.toString()}", {
3
- method: "${t.get("method")}",${n&&n.size?`
4
- headers: {
5
- ${n.map((o,u)=>`"${u}": "${o}"`).valueSeq().join(`,
6
- `)}
7
- },`:""}${s?`
8
- body: ${a},`:""}
9
- });
10
- const data = await response.json();
11
- console.log(data);
12
- `}}},B9=[q9],$9={generators:{fetch:{title:"Fetch",syntax:"javascript"}}};function L9({entityId:t,instanceClient:e}){return d9({queryKey:[t,"OpenAPI"],queryFn:async()=>{const{data:r}=await e.get("/api/openapi/rest");return r}})}async function U9({instanceClient:t,...e}){const{data:r}=await t.post("/",{operation:"set_configuration",...e});return r}function V9({onRestartedSuccessfully:t}={}){const e=nF(),r=h9(),[n,s]=mr.useState(!1);return{onConfigUpdate:mr.useCallback(async a=>{s(!0);let o=!1;const u={duration:6e4,action:{label:"Cancel",onClick:()=>{o=!0}}},l=Bs.loading("Restarting",{...u,description:bs.jsx(D2,{animated:!0,width:"0%"})}),c=e.entityType==="cluster"?await m9(e.entityId):null,p=e.entityType==="cluster"?c?.instances||[]:[{id:e.entityId,status:"RUNNING"}],h=e.entityType==="cluster"?p.filter(g=>g.status==="RUNNING").map(g=>g9({id:g.id,operationsUrl:y9(g)})).reverse():[e.instanceClient];let d=0;if(h.length)for(let g=0;g<h.length;g++){const y=h[g];if(!o){Bs.loading(`Updating Instance ${g+1} of ${h.length}`,{...u,id:l,description:bs.jsx(D2,{animated:!0,width:(g===0?0:g/h.length*100)+"%"})});try{await v9({instanceClient:y}),await U9({...a,instanceClient:y}),await b9({operation:"restart_service",replicated:!1,instanceClient:y}),d+=1}catch{g+1!==h.length&&(Bs.loading(`Failed Restarting Instance ${g+1} of ${h.length}`,{...u,id:l,description:"We will carry on momentarily."}),await E9(3e3))}}}if(s(!1),r.invalidateQueries({queryKey:[e.entityId,"get_configuration"]}),o)Bs.error("Cancelled",{id:l,description:"The config update was partially cancelled.",duration:1e4,action:{label:"Dismiss",onClick:()=>Bs.dismiss()}});else if(p.length===d)t?.(),Bs.success("Success",{id:l,description:"Your configuration has been updated successfully!",duration:1e4,action:{label:"Dismiss",onClick:()=>Bs.dismiss()}});else{const g=F2(p.length,"instance","instances"),y=F2(d,'"RUNNING" instance was','"RUNNING" instances were');Bs.error("Error",{id:l,description:`Failed to fully update cluster.
13
- `+([p.length===0&&"No instances were found within the cluster to restart.",d===0&&`No instances were in a "RUNNING" state of ${g}.`,p.length!==d&&`Only ${y} restarted of ${g}.`].filter(S9).shift()||""),duration:1e4,action:{label:"Dismiss",onClick:()=>Bs.dismiss()}})}},[e,t]),isPending:n}}function z9(t,e){const r=B2(t),n=B2(e);return!r||!n?!1:J9(n,r)>=0}function B2(t){if(typeof t!="string")return null;const[e]=t.split("+",1).concat(""),r=e.indexOf("-"),n=r===-1?e:e.slice(0,r),s=r===-1?"":e.slice(r+1),i=n.split(".");if(i.length===0)return null;const a=ad(i[0]),o=ad(i[1]??"0"),u=ad(i[2]??"0");if(a==null||o==null||u==null)return null;const l=s?s.split(".").map(c=>W9(c)?Number(c):c):[];return{major:a,minor:o,patch:u,pre:l}}function ad(t){return t==null||t===""||!/^\d+$/.test(t)?null:Number(t)}function W9(t){return/^\d+$/.test(t)}function J9(t,e){if(t.major!==e.major)return t.major<e.major?-1:1;if(t.minor!==e.minor)return t.minor<e.minor?-1:1;if(t.patch!==e.patch)return t.patch<e.patch?-1:1;const r=t.pre.length>0,n=e.pre.length>0;if(!r&&!n)return 0;if(!r&&n)return 1;if(r&&!n)return-1;const s=Math.min(t.pre.length,e.pre.length);for(let i=0;i<s;i++){const a=t.pre[i],o=e.pre[i],u=typeof a=="number",l=typeof o=="number";if(u&&l){if(a!==o)return a<o?-1:1;continue}if(u&&!l)return-1;if(!u&&l)return 1;if(a!==o)return String(a)<String(o)?-1:1}return t.pre.length!==e.pre.length?t.pre.length<e.pre.length?-1:1:0}var Zl={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var $2;function iF(){return $2||($2=1,Zl.read=function(t,e,r,n,s){var i,a,o=s*8-n-1,u=(1<<o)-1,l=u>>1,c=-7,p=r?s-1:0,h=r?-1:1,d=t[e+p];for(p+=h,i=d&(1<<-c)-1,d>>=-c,c+=o;c>0;i=i*256+t[e+p],p+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=a*256+t[e+p],p+=h,c-=8);if(i===0)i=1-l;else{if(i===u)return a?NaN:(d?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(d?-1:1)*a*Math.pow(2,i-n)},Zl.write=function(t,e,r,n,s,i){var a,o,u,l=i*8-s-1,c=(1<<l)-1,p=c>>1,h=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,g=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+p>=1?e+=h/u:e+=h*Math.pow(2,1-p),e*u>=2&&(a++,u/=2),a+p>=c?(o=0,a=c):a+p>=1?(o=(e*u-1)*Math.pow(2,s),a=a+p):(o=e*Math.pow(2,p-1)*Math.pow(2,s),a=0));s>=8;t[r+d]=o&255,d+=g,o/=256,s-=8);for(a=a<<s|o,l+=s;l>0;t[r+d]=a&255,d+=g,a/=256,l-=8);t[r+d-g]|=y*128}),Zl}var aF=iF();const H9=ot(aF),K9=R_({__proto__:null,default:H9},[aF]);var Ql={exports:{}},od={},Ao={},L2;function oF(){if(L2)return Ao;L2=1,Ao.byteLength=o,Ao.toByteArray=l,Ao.fromByteArray=h;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,i=n.length;s<i;++s)t[s]=n[s],e[n.charCodeAt(s)]=s;e[45]=62,e[95]=63;function a(d){var g=d.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");y===-1&&(y=g);var v=y===g?0:4-y%4;return[y,v]}function o(d){var g=a(d),y=g[0],v=g[1];return(y+v)*3/4-v}function u(d,g,y){return(g+y)*3/4-y}function l(d){var g,y=a(d),v=y[0],E=y[1],b=new r(u(d,v,E)),_=0,w=E>0?v-4:v,S;for(S=0;S<w;S+=4)g=e[d.charCodeAt(S)]<<18|e[d.charCodeAt(S+1)]<<12|e[d.charCodeAt(S+2)]<<6|e[d.charCodeAt(S+3)],b[_++]=g>>16&255,b[_++]=g>>8&255,b[_++]=g&255;return E===2&&(g=e[d.charCodeAt(S)]<<2|e[d.charCodeAt(S+1)]>>4,b[_++]=g&255),E===1&&(g=e[d.charCodeAt(S)]<<10|e[d.charCodeAt(S+1)]<<4|e[d.charCodeAt(S+2)]>>2,b[_++]=g>>8&255,b[_++]=g&255),b}function c(d){return t[d>>18&63]+t[d>>12&63]+t[d>>6&63]+t[d&63]}function p(d,g,y){for(var v,E=[],b=g;b<y;b+=3)v=(d[b]<<16&16711680)+(d[b+1]<<8&65280)+(d[b+2]&255),E.push(c(v));return E.join("")}function h(d){for(var g,y=d.length,v=y%3,E=[],b=16383,_=0,w=y-v;_<w;_+=b)E.push(p(d,_,_+b>w?w:_+b));return v===1?(g=d[y-1],E.push(t[g>>2]+t[g<<4&63]+"==")):v===2&&(g=(d[y-2]<<8)+d[y-1],E.push(t[g>>10]+t[g>>4&63]+t[g<<2&63]+"=")),E.join("")}return Ao}/*!
14
- * The buffer module from node.js, for the browser.
15
- *
16
- * @author Feross Aboukhadijeh <https://feross.org>
17
- * @license MIT
18
- */var U2;function G9(){return U2||(U2=1,(function(t){const e=oF(),r=iF(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50;const s=2147483647;t.kMaxLength=s,o.TYPED_ARRAY_SUPPORT=i(),!o.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 q=new Uint8Array(1),O={foo:function(){return 42}};return Object.setPrototypeOf(O,Uint8Array.prototype),Object.setPrototypeOf(q,O),q.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(q){if(q>s)throw new RangeError('The value "'+q+'" is invalid for option "size"');const O=new Uint8Array(q);return Object.setPrototypeOf(O,o.prototype),O}function o(q,O,I){if(typeof q=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(q)}return u(q,O,I)}o.poolSize=8192;function u(q,O,I){if(typeof q=="string")return h(q,O);if(ArrayBuffer.isView(q))return g(q);if(q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof q);if(Y(q,ArrayBuffer)||q&&Y(q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Y(q,SharedArrayBuffer)||q&&Y(q.buffer,SharedArrayBuffer)))return y(q,O,I);if(typeof q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const H=q.valueOf&&q.valueOf();if(H!=null&&H!==q)return o.from(H,O,I);const ie=v(q);if(ie)return ie;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof q[Symbol.toPrimitive]=="function")return o.from(q[Symbol.toPrimitive]("string"),O,I);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof q)}o.from=function(q,O,I){return u(q,O,I)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(q){if(typeof q!="number")throw new TypeError('"size" argument must be of type number');if(q<0)throw new RangeError('The value "'+q+'" is invalid for option "size"')}function c(q,O,I){return l(q),q<=0?a(q):O!==void 0?typeof I=="string"?a(q).fill(O,I):a(q).fill(O):a(q)}o.alloc=function(q,O,I){return c(q,O,I)};function p(q){return l(q),a(q<0?0:E(q)|0)}o.allocUnsafe=function(q){return p(q)},o.allocUnsafeSlow=function(q){return p(q)};function h(q,O){if((typeof O!="string"||O==="")&&(O="utf8"),!o.isEncoding(O))throw new TypeError("Unknown encoding: "+O);const I=_(q,O)|0;let H=a(I);const ie=H.write(q,O);return ie!==I&&(H=H.slice(0,ie)),H}function d(q){const O=q.length<0?0:E(q.length)|0,I=a(O);for(let H=0;H<O;H+=1)I[H]=q[H]&255;return I}function g(q){if(Y(q,Uint8Array)){const O=new Uint8Array(q);return y(O.buffer,O.byteOffset,O.byteLength)}return d(q)}function y(q,O,I){if(O<0||q.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if(q.byteLength<O+(I||0))throw new RangeError('"length" is outside of buffer bounds');let H;return O===void 0&&I===void 0?H=new Uint8Array(q):I===void 0?H=new Uint8Array(q,O):H=new Uint8Array(q,O,I),Object.setPrototypeOf(H,o.prototype),H}function v(q){if(o.isBuffer(q)){const O=E(q.length)|0,I=a(O);return I.length===0||q.copy(I,0,0,O),I}if(q.length!==void 0)return typeof q.length!="number"||ne(q.length)?a(0):d(q);if(q.type==="Buffer"&&Array.isArray(q.data))return d(q.data)}function E(q){if(q>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return q|0}function b(q){return+q!=q&&(q=0),o.alloc(+q)}o.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==o.prototype},o.compare=function(O,I){if(Y(O,Uint8Array)&&(O=o.from(O,O.offset,O.byteLength)),Y(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),!o.isBuffer(O)||!o.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===I)return 0;let H=O.length,ie=I.length;for(let de=0,xe=Math.min(H,ie);de<xe;++de)if(O[de]!==I[de]){H=O[de],ie=I[de];break}return H<ie?-1:ie<H?1:0},o.isEncoding=function(O){switch(String(O).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}},o.concat=function(O,I){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return o.alloc(0);let H;if(I===void 0)for(I=0,H=0;H<O.length;++H)I+=O[H].length;const ie=o.allocUnsafe(I);let de=0;for(H=0;H<O.length;++H){let xe=O[H];if(Y(xe,Uint8Array))de+xe.length>ie.length?(o.isBuffer(xe)||(xe=o.from(xe)),xe.copy(ie,de)):Uint8Array.prototype.set.call(ie,xe,de);else if(o.isBuffer(xe))xe.copy(ie,de);else throw new TypeError('"list" argument must be an Array of Buffers');de+=xe.length}return ie};function _(q,O){if(o.isBuffer(q))return q.length;if(ArrayBuffer.isView(q)||Y(q,ArrayBuffer))return q.byteLength;if(typeof q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof q);const I=q.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&I===0)return 0;let ie=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":return we(q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I*2;case"hex":return I>>>1;case"base64":return j(q).length;default:if(ie)return H?-1:we(q).length;O=(""+O).toLowerCase(),ie=!0}}o.byteLength=_;function w(q,O,I){let H=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((I===void 0||I>this.length)&&(I=this.length),I<=0)||(I>>>=0,O>>>=0,I<=O))return"";for(q||(q="utf8");;)switch(q){case"hex":return te(this,O,I);case"utf8":case"utf-8":return K(this,O,I);case"ascii":return Z(this,O,I);case"latin1":case"binary":return X(this,O,I);case"base64":return M(this,O,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,O,I);default:if(H)throw new TypeError("Unknown encoding: "+q);q=(q+"").toLowerCase(),H=!0}}o.prototype._isBuffer=!0;function S(q,O,I){const H=q[O];q[O]=q[I],q[I]=H}o.prototype.swap16=function(){const O=this.length;if(O%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;I<O;I+=2)S(this,I,I+1);return this},o.prototype.swap32=function(){const O=this.length;if(O%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let I=0;I<O;I+=4)S(this,I,I+3),S(this,I+1,I+2);return this},o.prototype.swap64=function(){const O=this.length;if(O%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let I=0;I<O;I+=8)S(this,I,I+7),S(this,I+1,I+6),S(this,I+2,I+5),S(this,I+3,I+4);return this},o.prototype.toString=function(){const O=this.length;return O===0?"":arguments.length===0?K(this,0,O):w.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(O){if(!o.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:o.compare(this,O)===0},o.prototype.inspect=function(){let O="";const I=t.INSPECT_MAX_BYTES;return O=this.toString("hex",0,I).replace(/(.{2})/g,"$1 ").trim(),this.length>I&&(O+=" ... "),"<Buffer "+O+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(O,I,H,ie,de){if(Y(O,Uint8Array)&&(O=o.from(O,O.offset,O.byteLength)),!o.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(I===void 0&&(I=0),H===void 0&&(H=O?O.length:0),ie===void 0&&(ie=0),de===void 0&&(de=this.length),I<0||H>O.length||ie<0||de>this.length)throw new RangeError("out of range index");if(ie>=de&&I>=H)return 0;if(ie>=de)return-1;if(I>=H)return 1;if(I>>>=0,H>>>=0,ie>>>=0,de>>>=0,this===O)return 0;let xe=de-ie,Ze=H-I;const it=Math.min(xe,Ze),kt=this.slice(ie,de),ft=O.slice(I,H);for(let ae=0;ae<it;++ae)if(kt[ae]!==ft[ae]){xe=kt[ae],Ze=ft[ae];break}return xe<Ze?-1:Ze<xe?1:0};function A(q,O,I,H,ie){if(q.length===0)return-1;if(typeof I=="string"?(H=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,ne(I)&&(I=ie?0:q.length-1),I<0&&(I=q.length+I),I>=q.length){if(ie)return-1;I=q.length-1}else if(I<0)if(ie)I=0;else return-1;if(typeof O=="string"&&(O=o.from(O,H)),o.isBuffer(O))return O.length===0?-1:T(q,O,I,H,ie);if(typeof O=="number")return O=O&255,typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(q,O,I):Uint8Array.prototype.lastIndexOf.call(q,O,I):T(q,[O],I,H,ie);throw new TypeError("val must be string, number or Buffer")}function T(q,O,I,H,ie){let de=1,xe=q.length,Ze=O.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(q.length<2||O.length<2)return-1;de=2,xe/=2,Ze/=2,I/=2}function it(ft,ae){return de===1?ft[ae]:ft.readUInt16BE(ae*de)}let kt;if(ie){let ft=-1;for(kt=I;kt<xe;kt++)if(it(q,kt)===it(O,ft===-1?0:kt-ft)){if(ft===-1&&(ft=kt),kt-ft+1===Ze)return ft*de}else ft!==-1&&(kt-=kt-ft),ft=-1}else for(I+Ze>xe&&(I=xe-Ze),kt=I;kt>=0;kt--){let ft=!0;for(let ae=0;ae<Ze;ae++)if(it(q,kt+ae)!==it(O,ae)){ft=!1;break}if(ft)return kt}return-1}o.prototype.includes=function(O,I,H){return this.indexOf(O,I,H)!==-1},o.prototype.indexOf=function(O,I,H){return A(this,O,I,H,!0)},o.prototype.lastIndexOf=function(O,I,H){return A(this,O,I,H,!1)};function k(q,O,I,H){I=Number(I)||0;const ie=q.length-I;H?(H=Number(H),H>ie&&(H=ie)):H=ie;const de=O.length;H>de/2&&(H=de/2);let xe;for(xe=0;xe<H;++xe){const Ze=parseInt(O.substr(xe*2,2),16);if(ne(Ze))return xe;q[I+xe]=Ze}return xe}function P(q,O,I,H){return U(we(O,q.length-I),q,I,H)}function F(q,O,I,H){return U(L(O),q,I,H)}function R(q,O,I,H){return U(j(O),q,I,H)}function $(q,O,I,H){return U(C(O,q.length-I),q,I,H)}o.prototype.write=function(O,I,H,ie){if(I===void 0)ie="utf8",H=this.length,I=0;else if(H===void 0&&typeof I=="string")ie=I,H=this.length,I=0;else if(isFinite(I))I=I>>>0,isFinite(H)?(H=H>>>0,ie===void 0&&(ie="utf8")):(ie=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const de=this.length-I;if((H===void 0||H>de)&&(H=de),O.length>0&&(H<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");let xe=!1;for(;;)switch(ie){case"hex":return k(this,O,I,H);case"utf8":case"utf-8":return P(this,O,I,H);case"ascii":case"latin1":case"binary":return F(this,O,I,H);case"base64":return R(this,O,I,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,O,I,H);default:if(xe)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),xe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(q,O,I){return O===0&&I===q.length?e.fromByteArray(q):e.fromByteArray(q.slice(O,I))}function K(q,O,I){I=Math.min(q.length,I);const H=[];let ie=O;for(;ie<I;){const de=q[ie];let xe=null,Ze=de>239?4:de>223?3:de>191?2:1;if(ie+Ze<=I){let it,kt,ft,ae;switch(Ze){case 1:de<128&&(xe=de);break;case 2:it=q[ie+1],(it&192)===128&&(ae=(de&31)<<6|it&63,ae>127&&(xe=ae));break;case 3:it=q[ie+1],kt=q[ie+2],(it&192)===128&&(kt&192)===128&&(ae=(de&15)<<12|(it&63)<<6|kt&63,ae>2047&&(ae<55296||ae>57343)&&(xe=ae));break;case 4:it=q[ie+1],kt=q[ie+2],ft=q[ie+3],(it&192)===128&&(kt&192)===128&&(ft&192)===128&&(ae=(de&15)<<18|(it&63)<<12|(kt&63)<<6|ft&63,ae>65535&&ae<1114112&&(xe=ae))}}xe===null?(xe=65533,Ze=1):xe>65535&&(xe-=65536,H.push(xe>>>10&1023|55296),xe=56320|xe&1023),H.push(xe),ie+=Ze}return G(H)}const ee=4096;function G(q){const O=q.length;if(O<=ee)return String.fromCharCode.apply(String,q);let I="",H=0;for(;H<O;)I+=String.fromCharCode.apply(String,q.slice(H,H+=ee));return I}function Z(q,O,I){let H="";I=Math.min(q.length,I);for(let ie=O;ie<I;++ie)H+=String.fromCharCode(q[ie]&127);return H}function X(q,O,I){let H="";I=Math.min(q.length,I);for(let ie=O;ie<I;++ie)H+=String.fromCharCode(q[ie]);return H}function te(q,O,I){const H=q.length;(!O||O<0)&&(O=0),(!I||I<0||I>H)&&(I=H);let ie="";for(let de=O;de<I;++de)ie+=fe[q[de]];return ie}function le(q,O,I){const H=q.slice(O,I);let ie="";for(let de=0;de<H.length-1;de+=2)ie+=String.fromCharCode(H[de]+H[de+1]*256);return ie}o.prototype.slice=function(O,I){const H=this.length;O=~~O,I=I===void 0?H:~~I,O<0?(O+=H,O<0&&(O=0)):O>H&&(O=H),I<0?(I+=H,I<0&&(I=0)):I>H&&(I=H),I<O&&(I=O);const ie=this.subarray(O,I);return Object.setPrototypeOf(ie,o.prototype),ie};function se(q,O,I){if(q%1!==0||q<0)throw new RangeError("offset is not uint");if(q+O>I)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(O,I,H){O=O>>>0,I=I>>>0,H||se(O,I,this.length);let ie=this[O],de=1,xe=0;for(;++xe<I&&(de*=256);)ie+=this[O+xe]*de;return ie},o.prototype.readUintBE=o.prototype.readUIntBE=function(O,I,H){O=O>>>0,I=I>>>0,H||se(O,I,this.length);let ie=this[O+--I],de=1;for(;I>0&&(de*=256);)ie+=this[O+--I]*de;return ie},o.prototype.readUint8=o.prototype.readUInt8=function(O,I){return O=O>>>0,I||se(O,1,this.length),this[O]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(O,I){return O=O>>>0,I||se(O,2,this.length),this[O]|this[O+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(O,I){return O=O>>>0,I||se(O,2,this.length),this[O]<<8|this[O+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(O,I){return O=O>>>0,I||se(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(O,I){return O=O>>>0,I||se(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},o.prototype.readBigUInt64LE=Ne(function(O){O=O>>>0,ke(O,"offset");const I=this[O],H=this[O+7];(I===void 0||H===void 0)&&Le(O,this.length-8);const ie=I+this[++O]*2**8+this[++O]*2**16+this[++O]*2**24,de=this[++O]+this[++O]*2**8+this[++O]*2**16+H*2**24;return BigInt(ie)+(BigInt(de)<<BigInt(32))}),o.prototype.readBigUInt64BE=Ne(function(O){O=O>>>0,ke(O,"offset");const I=this[O],H=this[O+7];(I===void 0||H===void 0)&&Le(O,this.length-8);const ie=I*2**24+this[++O]*2**16+this[++O]*2**8+this[++O],de=this[++O]*2**24+this[++O]*2**16+this[++O]*2**8+H;return(BigInt(ie)<<BigInt(32))+BigInt(de)}),o.prototype.readIntLE=function(O,I,H){O=O>>>0,I=I>>>0,H||se(O,I,this.length);let ie=this[O],de=1,xe=0;for(;++xe<I&&(de*=256);)ie+=this[O+xe]*de;return de*=128,ie>=de&&(ie-=Math.pow(2,8*I)),ie},o.prototype.readIntBE=function(O,I,H){O=O>>>0,I=I>>>0,H||se(O,I,this.length);let ie=I,de=1,xe=this[O+--ie];for(;ie>0&&(de*=256);)xe+=this[O+--ie]*de;return de*=128,xe>=de&&(xe-=Math.pow(2,8*I)),xe},o.prototype.readInt8=function(O,I){return O=O>>>0,I||se(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},o.prototype.readInt16LE=function(O,I){O=O>>>0,I||se(O,2,this.length);const H=this[O]|this[O+1]<<8;return H&32768?H|4294901760:H},o.prototype.readInt16BE=function(O,I){O=O>>>0,I||se(O,2,this.length);const H=this[O+1]|this[O]<<8;return H&32768?H|4294901760:H},o.prototype.readInt32LE=function(O,I){return O=O>>>0,I||se(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},o.prototype.readInt32BE=function(O,I){return O=O>>>0,I||se(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},o.prototype.readBigInt64LE=Ne(function(O){O=O>>>0,ke(O,"offset");const I=this[O],H=this[O+7];(I===void 0||H===void 0)&&Le(O,this.length-8);const ie=this[O+4]+this[O+5]*2**8+this[O+6]*2**16+(H<<24);return(BigInt(ie)<<BigInt(32))+BigInt(I+this[++O]*2**8+this[++O]*2**16+this[++O]*2**24)}),o.prototype.readBigInt64BE=Ne(function(O){O=O>>>0,ke(O,"offset");const I=this[O],H=this[O+7];(I===void 0||H===void 0)&&Le(O,this.length-8);const ie=(I<<24)+this[++O]*2**16+this[++O]*2**8+this[++O];return(BigInt(ie)<<BigInt(32))+BigInt(this[++O]*2**24+this[++O]*2**16+this[++O]*2**8+H)}),o.prototype.readFloatLE=function(O,I){return O=O>>>0,I||se(O,4,this.length),r.read(this,O,!0,23,4)},o.prototype.readFloatBE=function(O,I){return O=O>>>0,I||se(O,4,this.length),r.read(this,O,!1,23,4)},o.prototype.readDoubleLE=function(O,I){return O=O>>>0,I||se(O,8,this.length),r.read(this,O,!0,52,8)},o.prototype.readDoubleBE=function(O,I){return O=O>>>0,I||se(O,8,this.length),r.read(this,O,!1,52,8)};function ue(q,O,I,H,ie,de){if(!o.isBuffer(q))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>ie||O<de)throw new RangeError('"value" argument is out of bounds');if(I+H>q.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(O,I,H,ie){if(O=+O,I=I>>>0,H=H>>>0,!ie){const Ze=Math.pow(2,8*H)-1;ue(this,O,I,H,Ze,0)}let de=1,xe=0;for(this[I]=O&255;++xe<H&&(de*=256);)this[I+xe]=O/de&255;return I+H},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(O,I,H,ie){if(O=+O,I=I>>>0,H=H>>>0,!ie){const Ze=Math.pow(2,8*H)-1;ue(this,O,I,H,Ze,0)}let de=H-1,xe=1;for(this[I+de]=O&255;--de>=0&&(xe*=256);)this[I+de]=O/xe&255;return I+H},o.prototype.writeUint8=o.prototype.writeUInt8=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,1,255,0),this[I]=O&255,I+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,2,65535,0),this[I]=O&255,this[I+1]=O>>>8,I+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,2,65535,0),this[I]=O>>>8,this[I+1]=O&255,I+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,4,4294967295,0),this[I+3]=O>>>24,this[I+2]=O>>>16,this[I+1]=O>>>8,this[I]=O&255,I+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,4,4294967295,0),this[I]=O>>>24,this[I+1]=O>>>16,this[I+2]=O>>>8,this[I+3]=O&255,I+4};function ve(q,O,I,H,ie){Ie(O,H,ie,q,I,7);let de=Number(O&BigInt(4294967295));q[I++]=de,de=de>>8,q[I++]=de,de=de>>8,q[I++]=de,de=de>>8,q[I++]=de;let xe=Number(O>>BigInt(32)&BigInt(4294967295));return q[I++]=xe,xe=xe>>8,q[I++]=xe,xe=xe>>8,q[I++]=xe,xe=xe>>8,q[I++]=xe,I}function he(q,O,I,H,ie){Ie(O,H,ie,q,I,7);let de=Number(O&BigInt(4294967295));q[I+7]=de,de=de>>8,q[I+6]=de,de=de>>8,q[I+5]=de,de=de>>8,q[I+4]=de;let xe=Number(O>>BigInt(32)&BigInt(4294967295));return q[I+3]=xe,xe=xe>>8,q[I+2]=xe,xe=xe>>8,q[I+1]=xe,xe=xe>>8,q[I]=xe,I+8}o.prototype.writeBigUInt64LE=Ne(function(O,I=0){return ve(this,O,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ne(function(O,I=0){return he(this,O,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(O,I,H,ie){if(O=+O,I=I>>>0,!ie){const it=Math.pow(2,8*H-1);ue(this,O,I,H,it-1,-it)}let de=0,xe=1,Ze=0;for(this[I]=O&255;++de<H&&(xe*=256);)O<0&&Ze===0&&this[I+de-1]!==0&&(Ze=1),this[I+de]=(O/xe>>0)-Ze&255;return I+H},o.prototype.writeIntBE=function(O,I,H,ie){if(O=+O,I=I>>>0,!ie){const it=Math.pow(2,8*H-1);ue(this,O,I,H,it-1,-it)}let de=H-1,xe=1,Ze=0;for(this[I+de]=O&255;--de>=0&&(xe*=256);)O<0&&Ze===0&&this[I+de+1]!==0&&(Ze=1),this[I+de]=(O/xe>>0)-Ze&255;return I+H},o.prototype.writeInt8=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,1,127,-128),O<0&&(O=255+O+1),this[I]=O&255,I+1},o.prototype.writeInt16LE=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,2,32767,-32768),this[I]=O&255,this[I+1]=O>>>8,I+2},o.prototype.writeInt16BE=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,2,32767,-32768),this[I]=O>>>8,this[I+1]=O&255,I+2},o.prototype.writeInt32LE=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,4,2147483647,-2147483648),this[I]=O&255,this[I+1]=O>>>8,this[I+2]=O>>>16,this[I+3]=O>>>24,I+4},o.prototype.writeInt32BE=function(O,I,H){return O=+O,I=I>>>0,H||ue(this,O,I,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[I]=O>>>24,this[I+1]=O>>>16,this[I+2]=O>>>8,this[I+3]=O&255,I+4},o.prototype.writeBigInt64LE=Ne(function(O,I=0){return ve(this,O,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ne(function(O,I=0){return he(this,O,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function re(q,O,I,H,ie,de){if(I+H>q.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function W(q,O,I,H,ie){return O=+O,I=I>>>0,ie||re(q,O,I,4),r.write(q,O,I,H,23,4),I+4}o.prototype.writeFloatLE=function(O,I,H){return W(this,O,I,!0,H)},o.prototype.writeFloatBE=function(O,I,H){return W(this,O,I,!1,H)};function V(q,O,I,H,ie){return O=+O,I=I>>>0,ie||re(q,O,I,8),r.write(q,O,I,H,52,8),I+8}o.prototype.writeDoubleLE=function(O,I,H){return V(this,O,I,!0,H)},o.prototype.writeDoubleBE=function(O,I,H){return V(this,O,I,!1,H)},o.prototype.copy=function(O,I,H,ie){if(!o.isBuffer(O))throw new TypeError("argument should be a Buffer");if(H||(H=0),!ie&&ie!==0&&(ie=this.length),I>=O.length&&(I=O.length),I||(I=0),ie>0&&ie<H&&(ie=H),ie===H||O.length===0||this.length===0)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),O.length-I<ie-H&&(ie=O.length-I+H);const de=ie-H;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(I,H,ie):Uint8Array.prototype.set.call(O,this.subarray(H,ie),I),de},o.prototype.fill=function(O,I,H,ie){if(typeof O=="string"){if(typeof I=="string"?(ie=I,I=0,H=this.length):typeof H=="string"&&(ie=H,H=this.length),ie!==void 0&&typeof ie!="string")throw new TypeError("encoding must be a string");if(typeof ie=="string"&&!o.isEncoding(ie))throw new TypeError("Unknown encoding: "+ie);if(O.length===1){const xe=O.charCodeAt(0);(ie==="utf8"&&xe<128||ie==="latin1")&&(O=xe)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(I<0||this.length<I||this.length<H)throw new RangeError("Out of range index");if(H<=I)return this;I=I>>>0,H=H===void 0?this.length:H>>>0,O||(O=0);let de;if(typeof O=="number")for(de=I;de<H;++de)this[de]=O;else{const xe=o.isBuffer(O)?O:o.from(O,ie),Ze=xe.length;if(Ze===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(de=0;de<H-I;++de)this[de+I]=xe[de%Ze]}return this};const ge={};function me(q,O,I){ge[q]=class extends I{constructor(){super(),Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${q}]`,this.stack,delete this.name}get code(){return q}set code(ie){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ie,writable:!0})}toString(){return`${this.name} [${q}]: ${this.message}`}}}me("ERR_BUFFER_OUT_OF_BOUNDS",function(q){return q?`${q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),me("ERR_INVALID_ARG_TYPE",function(q,O){return`The "${q}" argument must be of type number. Received type ${typeof O}`},TypeError),me("ERR_OUT_OF_RANGE",function(q,O,I){let H=`The value of "${q}" is out of range.`,ie=I;return Number.isInteger(I)&&Math.abs(I)>2**32?ie=Me(String(I)):typeof I=="bigint"&&(ie=String(I),(I>BigInt(2)**BigInt(32)||I<-(BigInt(2)**BigInt(32)))&&(ie=Me(ie)),ie+="n"),H+=` It must be ${O}. Received ${ie}`,H},RangeError);function Me(q){let O="",I=q.length;const H=q[0]==="-"?1:0;for(;I>=H+4;I-=3)O=`_${q.slice(I-3,I)}${O}`;return`${q.slice(0,I)}${O}`}function $e(q,O,I){ke(O,"offset"),(q[O]===void 0||q[O+I]===void 0)&&Le(O,q.length-(I+1))}function Ie(q,O,I,H,ie,de){if(q>I||q<O){const xe=typeof O=="bigint"?"n":"";let Ze;throw O===0||O===BigInt(0)?Ze=`>= 0${xe} and < 2${xe} ** ${(de+1)*8}${xe}`:Ze=`>= -(2${xe} ** ${(de+1)*8-1}${xe}) and < 2 ** ${(de+1)*8-1}${xe}`,new ge.ERR_OUT_OF_RANGE("value",Ze,q)}$e(H,ie,de)}function ke(q,O){if(typeof q!="number")throw new ge.ERR_INVALID_ARG_TYPE(O,"number",q)}function Le(q,O,I){throw Math.floor(q)!==q?(ke(q,I),new ge.ERR_OUT_OF_RANGE("offset","an integer",q)):O<0?new ge.ERR_BUFFER_OUT_OF_BOUNDS:new ge.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${O}`,q)}const ye=/[^+/0-9A-Za-z-_]/g;function Se(q){if(q=q.split("=")[0],q=q.trim().replace(ye,""),q.length<2)return"";for(;q.length%4!==0;)q=q+"=";return q}function we(q,O){O=O||1/0;let I;const H=q.length;let ie=null;const de=[];for(let xe=0;xe<H;++xe){if(I=q.charCodeAt(xe),I>55295&&I<57344){if(!ie){if(I>56319){(O-=3)>-1&&de.push(239,191,189);continue}else if(xe+1===H){(O-=3)>-1&&de.push(239,191,189);continue}ie=I;continue}if(I<56320){(O-=3)>-1&&de.push(239,191,189),ie=I;continue}I=(ie-55296<<10|I-56320)+65536}else ie&&(O-=3)>-1&&de.push(239,191,189);if(ie=null,I<128){if((O-=1)<0)break;de.push(I)}else if(I<2048){if((O-=2)<0)break;de.push(I>>6|192,I&63|128)}else if(I<65536){if((O-=3)<0)break;de.push(I>>12|224,I>>6&63|128,I&63|128)}else if(I<1114112){if((O-=4)<0)break;de.push(I>>18|240,I>>12&63|128,I>>6&63|128,I&63|128)}else throw new Error("Invalid code point")}return de}function L(q){const O=[];for(let I=0;I<q.length;++I)O.push(q.charCodeAt(I)&255);return O}function C(q,O){let I,H,ie;const de=[];for(let xe=0;xe<q.length&&!((O-=2)<0);++xe)I=q.charCodeAt(xe),H=I>>8,ie=I%256,de.push(ie),de.push(H);return de}function j(q){return e.toByteArray(Se(q))}function U(q,O,I,H){let ie;for(ie=0;ie<H&&!(ie+I>=O.length||ie>=q.length);++ie)O[ie+I]=q[ie];return ie}function Y(q,O){return q instanceof O||q!=null&&q.constructor!=null&&q.constructor.name!=null&&q.constructor.name===O.name}function ne(q){return q!==q}const fe=(function(){const q="0123456789abcdef",O=new Array(256);for(let I=0;I<16;++I){const H=I*16;for(let ie=0;ie<16;++ie)O[H+ie]=q[I]+q[ie]}return O})();function Ne(q){return typeof BigInt>"u"?Ge:q}function Ge(){throw new Error("BigInt not supported")}})(od)),od}/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var V2;function Y9(){return V2||(V2=1,(function(t,e){var r=G9(),n=r.Buffer;function s(a,o){for(var u in a)o[u]=a[u]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(s(r,e),e.Buffer=i);function i(a,o,u){return n(a,o,u)}i.prototype=Object.create(n.prototype),s(n,i),i.from=function(a,o,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,o,u)},i.alloc=function(a,o,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return o!==void 0?typeof u=="string"?l.fill(o,u):l.fill(o):l.fill(0),l},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)}})(Ql,Ql.exports)),Ql.exports}var ud,z2;function X9(){if(z2)return ud;z2=1;var t={}.toString;return ud=Array.isArray||function(e){return t.call(e)=="[object Array]"},ud}var ld,W2;function yu(){return W2||(W2=1,ld=TypeError),ld}var cd,J2;function uF(){return J2||(J2=1,cd=Object),cd}var fd,H2;function Z9(){return H2||(H2=1,fd=Error),fd}var pd,K2;function Q9(){return K2||(K2=1,pd=EvalError),pd}var dd,G2;function e5(){return G2||(G2=1,dd=RangeError),dd}var hd,Y2;function t5(){return Y2||(Y2=1,hd=ReferenceError),hd}var md,X2;function lF(){return X2||(X2=1,md=SyntaxError),md}var gd,Z2;function r5(){return Z2||(Z2=1,gd=URIError),gd}var yd,Q2;function n5(){return Q2||(Q2=1,yd=Math.abs),yd}var vd,eO;function s5(){return eO||(eO=1,vd=Math.floor),vd}var bd,tO;function i5(){return tO||(tO=1,bd=Math.max),bd}var Ed,rO;function a5(){return rO||(rO=1,Ed=Math.min),Ed}var Sd,nO;function o5(){return nO||(nO=1,Sd=Math.pow),Sd}var _d,sO;function u5(){return sO||(sO=1,_d=Math.round),_d}var wd,iO;function l5(){return iO||(iO=1,wd=Number.isNaN||function(e){return e!==e}),wd}var xd,aO;function c5(){if(aO)return xd;aO=1;var t=l5();return xd=function(r){return t(r)||r===0?r:r<0?-1:1},xd}var Ad,oO;function f5(){return oO||(oO=1,Ad=Object.getOwnPropertyDescriptor),Ad}var Od,uO;function vu(){if(uO)return Od;uO=1;var t=f5();if(t)try{t([],"length")}catch{t=null}return Od=t,Od}var Cd,lO;function ff(){if(lO)return Cd;lO=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Cd=t,Cd}var Rd,cO;function cF(){return cO||(cO=1,Rd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,r);if(o.value!==s||o.enumerable!==!0)return!1}return!0}),Rd}var Td,fO;function p5(){if(fO)return Td;fO=1;var t=typeof Symbol<"u"&&Symbol,e=cF();return Td=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Td}var Id,pO;function fF(){return pO||(pO=1,Id=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Id}var kd,dO;function pF(){if(dO)return kd;dO=1;var t=uF();return kd=t.getPrototypeOf||null,kd}var Pd,hO;function d5(){if(hO)return Pd;hO=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",s=function(u,l){for(var c=[],p=0;p<u.length;p+=1)c[p]=u[p];for(var h=0;h<l.length;h+=1)c[h+u.length]=l[h];return c},i=function(u,l){for(var c=[],p=l,h=0;p<u.length;p+=1,h+=1)c[h]=u[p];return c},a=function(o,u){for(var l="",c=0;c<o.length;c+=1)l+=o[c],c+1<o.length&&(l+=u);return l};return Pd=function(u){var l=this;if(typeof l!="function"||e.apply(l)!==n)throw new TypeError(t+l);for(var c=i(arguments,1),p,h=function(){if(this instanceof p){var E=l.apply(this,s(c,arguments));return Object(E)===E?E:this}return l.apply(u,s(c,arguments))},d=r(0,l.length-c.length),g=[],y=0;y<d;y++)g[y]="$"+y;if(p=Function("binder","return function ("+a(g,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var v=function(){};v.prototype=l.prototype,p.prototype=new v,v.prototype=null}return p},Pd}var jd,mO;function bu(){if(mO)return jd;mO=1;var t=d5();return jd=Function.prototype.bind||t,jd}var Nd,gO;function T_(){return gO||(gO=1,Nd=Function.prototype.call),Nd}var Md,yO;function I_(){return yO||(yO=1,Md=Function.prototype.apply),Md}var Dd,vO;function h5(){return vO||(vO=1,Dd=typeof Reflect<"u"&&Reflect&&Reflect.apply),Dd}var Fd,bO;function dF(){if(bO)return Fd;bO=1;var t=bu(),e=I_(),r=T_(),n=h5();return Fd=n||t.call(r,e),Fd}var qd,EO;function k_(){if(EO)return qd;EO=1;var t=bu(),e=yu(),r=T_(),n=dF();return qd=function(i){if(i.length<1||typeof i[0]!="function")throw new e("a function is required");return n(t,r,i)},qd}var Bd,SO;function m5(){if(SO)return Bd;SO=1;var t=k_(),e=vu(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&e&&e(Object.prototype,"__proto__"),s=Object,i=s.getPrototypeOf;return Bd=n&&typeof n.get=="function"?t([n.get]):typeof i=="function"?function(o){return i(o==null?o:s(o))}:!1,Bd}var $d,_O;function hF(){if(_O)return $d;_O=1;var t=fF(),e=pF(),r=m5();return $d=t?function(s){return t(s)}:e?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return e(s)}:r?function(s){return r(s)}:null,$d}var Ld,wO;function g5(){if(wO)return Ld;wO=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=bu();return Ld=r.call(t,e),Ld}var Ud,xO;function mF(){if(xO)return Ud;xO=1;var t,e=uF(),r=Z9(),n=Q9(),s=e5(),i=t5(),a=lF(),o=yu(),u=r5(),l=n5(),c=s5(),p=i5(),h=a5(),d=o5(),g=u5(),y=c5(),v=Function,E=function(me){try{return v('"use strict"; return ('+me+").constructor;")()}catch{}},b=vu(),_=ff(),w=function(){throw new o},S=b?(function(){try{return arguments.callee,w}catch{try{return b(arguments,"callee").get}catch{return w}}})():w,A=p5()(),T=hF(),k=pF(),P=fF(),F=I_(),R=T_(),$={},M=typeof Uint8Array>"u"||!T?t:T(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":A&&T?T([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&T?T(T([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!T?t:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":s,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!T?t:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&T?T(""[Symbol.iterator]()):t,"%Symbol%":A?Symbol:t,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":M,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":F,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":k,"%Math.abs%":l,"%Math.floor%":c,"%Math.max%":p,"%Math.min%":h,"%Math.pow%":d,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":P};if(T)try{null.error}catch(me){var ee=T(T(me));K["%Error.prototype%"]=ee}var G=function me(Me){var $e;if(Me==="%AsyncFunction%")$e=E("async function () {}");else if(Me==="%GeneratorFunction%")$e=E("function* () {}");else if(Me==="%AsyncGeneratorFunction%")$e=E("async function* () {}");else if(Me==="%AsyncGenerator%"){var Ie=me("%AsyncGeneratorFunction%");Ie&&($e=Ie.prototype)}else if(Me==="%AsyncIteratorPrototype%"){var ke=me("%AsyncGenerator%");ke&&T&&($e=T(ke.prototype))}return K[Me]=$e,$e},Z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},X=bu(),te=g5(),le=X.call(R,Array.prototype.concat),se=X.call(F,Array.prototype.splice),ue=X.call(R,String.prototype.replace),ve=X.call(R,String.prototype.slice),he=X.call(R,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(Me){var $e=ve(Me,0,1),Ie=ve(Me,-1);if($e==="%"&&Ie!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Ie==="%"&&$e!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var ke=[];return ue(Me,re,function(Le,ye,Se,we){ke[ke.length]=Se?ue(we,W,"$1"):ye||Le}),ke},ge=function(Me,$e){var Ie=Me,ke;if(te(Z,Ie)&&(ke=Z[Ie],Ie="%"+ke[0]+"%"),te(K,Ie)){var Le=K[Ie];if(Le===$&&(Le=G(Ie)),typeof Le>"u"&&!$e)throw new o("intrinsic "+Me+" exists, but is not available. Please file an issue!");return{alias:ke,name:Ie,value:Le}}throw new a("intrinsic "+Me+" does not exist!")};return Ud=function(Me,$e){if(typeof Me!="string"||Me.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof $e!="boolean")throw new o('"allowMissing" argument must be a boolean');if(he(/^%?[^%]*%?$/,Me)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ie=V(Me),ke=Ie.length>0?Ie[0]:"",Le=ge("%"+ke+"%",$e),ye=Le.name,Se=Le.value,we=!1,L=Le.alias;L&&(ke=L[0],se(Ie,le([0,1],L)));for(var C=1,j=!0;C<Ie.length;C+=1){var U=Ie[C],Y=ve(U,0,1),ne=ve(U,-1);if((Y==='"'||Y==="'"||Y==="`"||ne==='"'||ne==="'"||ne==="`")&&Y!==ne)throw new a("property names with quotes must have matching quotes");if((U==="constructor"||!j)&&(we=!0),ke+="."+U,ye="%"+ke+"%",te(K,ye))Se=K[ye];else if(Se!=null){if(!(U in Se)){if(!$e)throw new o("base intrinsic for "+Me+" exists, but the property is not available.");return}if(b&&C+1>=Ie.length){var fe=b(Se,U);j=!!fe,j&&"get"in fe&&!("originalValue"in fe.get)?Se=fe.get:Se=Se[U]}else j=te(Se,U),Se=Se[U];j&&!we&&(K[ye]=Se)}}return Se},Ud}var Vd,AO;function gF(){if(AO)return Vd;AO=1;var t=mF(),e=k_(),r=e([t("%String.prototype.indexOf%")]);return Vd=function(s,i){var a=t(s,!!i);return typeof a=="function"&&r(s,".prototype.")>-1?e([a]):a},Vd}var zd,OO;function y5(){if(OO)return zd;OO=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},e(function(){throw 42},null,r)}catch(b){b!==n&&(e=null)}else e=null;var s=/^\s*class\b/,i=function(_){try{var w=t.call(_);return s.test(w)}catch{return!1}},a=function(_){try{return i(_)?!1:(t.call(_),!0)}catch{return!1}},o=Object.prototype.toString,u="[object Object]",l="[object Function]",c="[object GeneratorFunction]",p="[object HTMLAllCollection]",h="[object HTML document.all class]",d="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),v=function(){return!1};if(typeof document=="object"){var E=document.all;o.call(E)===o.call(document.all)&&(v=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var w=o.call(_);return(w===p||w===h||w===d||w===u)&&_("")==null}catch{}return!1})}return zd=e?function(_){if(v(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{e(_,null,r)}catch(w){if(w!==n)return!1}return!i(_)&&a(_)}:function(_){if(v(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(g)return a(_);if(i(_))return!1;var w=o.call(_);return w!==l&&w!==c&&!/^\[object HTML/.test(w)?!1:a(_)},zd}var Wd,CO;function v5(){if(CO)return Wd;CO=1;var t=y5(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,l,c){for(var p=0,h=u.length;p<h;p++)r.call(u,p)&&(c==null?l(u[p],p,u):l.call(c,u[p],p,u))},s=function(u,l,c){for(var p=0,h=u.length;p<h;p++)c==null?l(u.charAt(p),p,u):l.call(c,u.charAt(p),p,u)},i=function(u,l,c){for(var p in u)r.call(u,p)&&(c==null?l(u[p],p,u):l.call(c,u[p],p,u))};function a(o){return e.call(o)==="[object Array]"}return Wd=function(u,l,c){if(!t(l))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=c),a(u)?n(u,l,p):typeof u=="string"?s(u,l,p):i(u,l,p)},Wd}var Jd,RO;function b5(){return RO||(RO=1,Jd=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Jd}var Hd,TO;function E5(){if(TO)return Hd;TO=1;var t=b5(),e=typeof globalThis>"u"?Lr:globalThis;return Hd=function(){for(var n=[],s=0;s<t.length;s++)typeof e[t[s]]=="function"&&(n[n.length]=t[s]);return n},Hd}var Kd={exports:{}},Gd,IO;function S5(){if(IO)return Gd;IO=1;var t=ff(),e=lF(),r=yu(),n=vu();return Gd=function(i,a,o){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,h=!!n&&n(i,a);if(t)t(i,a,{configurable:c===null&&h?h.configurable:!c,enumerable:u===null&&h?h.enumerable:!u,value:o,writable:l===null&&h?h.writable:!l});else if(p||!u&&!l&&!c)i[a]=o;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Gd}var Yd,kO;function _5(){if(kO)return Yd;kO=1;var t=ff(),e=function(){return!!t};return e.hasArrayLengthDefineBug=function(){if(!t)return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},Yd=e,Yd}var Xd,PO;function w5(){if(PO)return Xd;PO=1;var t=mF(),e=S5(),r=_5()(),n=vu(),s=yu(),i=t("%Math.floor%");return Xd=function(o,u){if(typeof o!="function")throw new s("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||i(u)!==u)throw new s("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],c=!0,p=!0;if("length"in o&&n){var h=n(o,"length");h&&!h.configurable&&(c=!1),h&&!h.writable&&(p=!1)}return(c||p||!l)&&(r?e(o,"length",u,!0,!0):e(o,"length",u)),o},Xd}var Zd,jO;function x5(){if(jO)return Zd;jO=1;var t=bu(),e=I_(),r=dF();return Zd=function(){return r(t,e,arguments)},Zd}var NO;function A5(){return NO||(NO=1,(function(t){var e=w5(),r=ff(),n=k_(),s=x5();t.exports=function(a){var o=n(arguments),u=a.length-(arguments.length-1);return e(o,1+(u>0?u:0),!0)},r?r(t.exports,"apply",{value:s}):t.exports.apply=s})(Kd)),Kd.exports}var Qd,MO;function O5(){if(MO)return Qd;MO=1;var t=cF();return Qd=function(){return t()&&!!Symbol.toStringTag},Qd}var eh,DO;function C5(){if(DO)return eh;DO=1;var t=v5(),e=E5(),r=A5(),n=gF(),s=vu(),i=hF(),a=n("Object.prototype.toString"),o=O5()(),u=typeof globalThis>"u"?Lr:globalThis,l=e(),c=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(v,E){for(var b=0;b<v.length;b+=1)if(v[b]===E)return b;return-1},h={__proto__:null};o&&s&&i?t(l,function(y){var v=new u[y];if(Symbol.toStringTag in v&&i){var E=i(v),b=s(E,Symbol.toStringTag);if(!b&&E){var _=i(E);b=s(_,Symbol.toStringTag)}h["$"+y]=r(b.get)}}):t(l,function(y){var v=new u[y],E=v.slice||v.set;E&&(h["$"+y]=r(E))});var d=function(v){var E=!1;return t(h,function(b,_){if(!E)try{"$"+b(v)===_&&(E=c(_,1))}catch{}}),E},g=function(v){var E=!1;return t(h,function(b,_){if(!E)try{b(v),E=c(_,1)}catch{}}),E};return eh=function(v){if(!v||typeof v!="object")return!1;if(!o){var E=c(a(v),8,-1);return p(l,E)>-1?E:E!=="Object"?!1:g(v)}return s?d(v):null},eh}var th,FO;function R5(){if(FO)return th;FO=1;var t=C5();return th=function(r){return!!t(r)},th}var rh,qO;function T5(){if(qO)return rh;qO=1;var t=yu(),e=gF(),r=e("TypedArray.prototype.buffer",!0),n=R5();return rh=r||function(i){if(!n(i))throw new t("Not a Typed Array");return i.buffer},rh}var nh,BO;function I5(){if(BO)return nh;BO=1;var t=Y9().Buffer,e=X9(),r=T5(),n=ArrayBuffer.isView||function(u){try{return r(u),!0}catch{return!1}},s=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a=i&&(t.prototype instanceof Uint8Array||t.TYPED_ARRAY_SUPPORT);return nh=function(u,l){if(t.isBuffer(u))return u.constructor&&!("isBuffer"in u)?t.from(u):u;if(typeof u=="string")return t.from(u,l);if(i&&n(u)){if(u.byteLength===0)return t.alloc(0);if(a){var c=t.from(u.buffer,u.byteOffset,u.byteLength);if(c.byteLength===u.byteLength)return c}var p=u instanceof Uint8Array?u:new Uint8Array(u.buffer,u.byteOffset,u.byteLength),h=t.from(p);if(h.length===u.byteLength)return h}if(s&&u instanceof Uint8Array)return t.from(u);var d=e(u);if(d)for(var g=0;g<u.length;g+=1){var y=u[g];if(typeof y!="number"||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||t.isBuffer(u)&&u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u))return t.from(u);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},nh}var yF=I5();const k5=ot(yF),P5=R_({__proto__:null,default:k5},[yF]);var vF=oF();const j5=ot(vF),N5=R_({__proto__:null,default:j5},[vF]);var Sc={exports:{}},M5=Sc.exports,$O;function pf(){return $O||($O=1,(function(t,e){(function(r,n){t.exports=n()})(M5,function(){var r=Array.prototype.slice;function n(m,x){x&&(m.prototype=Object.create(x.prototype)),m.prototype.constructor=m}function s(m){return u(m)?m:ke(m)}n(i,s);function i(m){return l(m)?m:Le(m)}n(a,s);function a(m){return c(m)?m:ye(m)}n(o,s);function o(m){return u(m)&&!p(m)?m:Se(m)}function u(m){return!!(m&&m[d])}function l(m){return!!(m&&m[g])}function c(m){return!!(m&&m[y])}function p(m){return l(m)||c(m)}function h(m){return!!(m&&m[v])}s.isIterable=u,s.isKeyed=l,s.isIndexed=c,s.isAssociative=p,s.isOrdered=h,s.Keyed=i,s.Indexed=a,s.Set=o;var d="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",v="@@__IMMUTABLE_ORDERED__@@",E="delete",b=5,_=1<<b,w=_-1,S={},A={value:!1},T={value:!1};function k(m){return m.value=!1,m}function P(m){m&&(m.value=!0)}function F(){}function R(m,x){x=x||0;for(var N=Math.max(0,m.length-x),D=new Array(N),B=0;B<N;B++)D[B]=m[B+x];return D}function $(m){return m.size===void 0&&(m.size=m.__iterate(K)),m.size}function M(m,x){if(typeof x!="number"){var N=x>>>0;if(""+N!==x||N===4294967295)return NaN;x=N}return x<0?$(m)+x:x}function K(){return!0}function ee(m,x,N){return(m===0||N!==void 0&&m<=-N)&&(x===void 0||N!==void 0&&x>=N)}function G(m,x){return X(m,x,0)}function Z(m,x){return X(m,x,x)}function X(m,x,N){return m===void 0?N:m<0?Math.max(0,x+m):x===void 0?m:Math.min(x,m)}var te=0,le=1,se=2,ue=typeof Symbol=="function"&&Symbol.iterator,ve="@@iterator",he=ue||ve;function re(m){this.next=m}re.prototype.toString=function(){return"[Iterator]"},re.KEYS=te,re.VALUES=le,re.ENTRIES=se,re.prototype.inspect=re.prototype.toSource=function(){return this.toString()},re.prototype[he]=function(){return this};function W(m,x,N,D){var B=m===0?x:m===1?N:[x,N];return D?D.value=B:D={value:B,done:!1},D}function V(){return{value:void 0,done:!0}}function ge(m){return!!$e(m)}function me(m){return m&&typeof m.next=="function"}function Me(m){var x=$e(m);return x&&x.call(m)}function $e(m){var x=m&&(ue&&m[ue]||m[ve]);if(typeof x=="function")return x}function Ie(m){return m&&typeof m.length=="number"}n(ke,s);function ke(m){return m==null?fe():u(m)?m.toSeq():q(m)}ke.of=function(){return ke(arguments)},ke.prototype.toSeq=function(){return this},ke.prototype.toString=function(){return this.__toString("Seq {","}")},ke.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},ke.prototype.__iterate=function(m,x){return I(this,m,x,!0)},ke.prototype.__iterator=function(m,x){return H(this,m,x,!0)},n(Le,ke);function Le(m){return m==null?fe().toKeyedSeq():u(m)?l(m)?m.toSeq():m.fromEntrySeq():Ne(m)}Le.prototype.toKeyedSeq=function(){return this},n(ye,ke);function ye(m){return m==null?fe():u(m)?l(m)?m.entrySeq():m.toIndexedSeq():Ge(m)}ye.of=function(){return ye(arguments)},ye.prototype.toIndexedSeq=function(){return this},ye.prototype.toString=function(){return this.__toString("Seq [","]")},ye.prototype.__iterate=function(m,x){return I(this,m,x,!1)},ye.prototype.__iterator=function(m,x){return H(this,m,x,!1)},n(Se,ke);function Se(m){return(m==null?fe():u(m)?l(m)?m.entrySeq():m:Ge(m)).toSetSeq()}Se.of=function(){return Se(arguments)},Se.prototype.toSetSeq=function(){return this},ke.isSeq=Y,ke.Keyed=Le,ke.Set=Se,ke.Indexed=ye;var we="@@__IMMUTABLE_SEQ__@@";ke.prototype[we]=!0,n(L,ye);function L(m){this._array=m,this.size=m.length}L.prototype.get=function(m,x){return this.has(m)?this._array[M(this,m)]:x},L.prototype.__iterate=function(m,x){for(var N=this._array,D=N.length-1,B=0;B<=D;B++)if(m(N[x?D-B:B],B,this)===!1)return B+1;return B},L.prototype.__iterator=function(m,x){var N=this._array,D=N.length-1,B=0;return new re(function(){return B>D?V():W(m,B,N[x?D-B++:B++])})},n(C,Le);function C(m){var x=Object.keys(m);this._object=m,this._keys=x,this.size=x.length}C.prototype.get=function(m,x){return x!==void 0&&!this.has(m)?x:this._object[m]},C.prototype.has=function(m){return this._object.hasOwnProperty(m)},C.prototype.__iterate=function(m,x){for(var N=this._object,D=this._keys,B=D.length-1,J=0;J<=B;J++){var Q=D[x?B-J:J];if(m(N[Q],Q,this)===!1)return J+1}return J},C.prototype.__iterator=function(m,x){var N=this._object,D=this._keys,B=D.length-1,J=0;return new re(function(){var Q=D[x?B-J:J];return J++>B?V():W(m,Q,N[Q])})},C.prototype[v]=!0,n(j,ye);function j(m){this._iterable=m,this.size=m.length||m.size}j.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);var N=this._iterable,D=Me(N),B=0;if(me(D))for(var J;!(J=D.next()).done&&m(J.value,B++,this)!==!1;);return B},j.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var N=this._iterable,D=Me(N);if(!me(D))return new re(V);var B=0;return new re(function(){var J=D.next();return J.done?J:W(m,B++,J.value)})},n(U,ye);function U(m){this._iterator=m,this._iteratorCache=[]}U.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);for(var N=this._iterator,D=this._iteratorCache,B=0;B<D.length;)if(m(D[B],B++,this)===!1)return B;for(var J;!(J=N.next()).done;){var Q=J.value;if(D[B]=Q,m(Q,B++,this)===!1)break}return B},U.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var N=this._iterator,D=this._iteratorCache,B=0;return new re(function(){if(B>=D.length){var J=N.next();if(J.done)return J;D[B]=J.value}return W(m,B,D[B++])})};function Y(m){return!!(m&&m[we])}var ne;function fe(){return ne||(ne=new L([]))}function Ne(m){var x=Array.isArray(m)?new L(m).fromEntrySeq():me(m)?new U(m).fromEntrySeq():ge(m)?new j(m).fromEntrySeq():typeof m=="object"?new C(m):void 0;if(!x)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return x}function Ge(m){var x=O(m);if(!x)throw new TypeError("Expected Array or iterable object of values: "+m);return x}function q(m){var x=O(m)||typeof m=="object"&&new C(m);if(!x)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return x}function O(m){return Ie(m)?new L(m):me(m)?new U(m):ge(m)?new j(m):void 0}function I(m,x,N,D){var B=m._cache;if(B){for(var J=B.length-1,Q=0;Q<=J;Q++){var ce=B[N?J-Q:Q];if(x(ce[1],D?ce[0]:Q,m)===!1)return Q+1}return Q}return m.__iterateUncached(x,N)}function H(m,x,N,D){var B=m._cache;if(B){var J=B.length-1,Q=0;return new re(function(){var ce=B[N?J-Q:Q];return Q++>J?V():W(x,D?ce[0]:Q-1,ce[1])})}return m.__iteratorUncached(x,N)}function ie(m,x){return x?de(x,m,"",{"":m}):xe(m)}function de(m,x,N,D){return Array.isArray(x)?m.call(D,N,ye(x).map(function(B,J){return de(m,B,J,x)})):Ze(x)?m.call(D,N,Le(x).map(function(B,J){return de(m,B,J,x)})):x}function xe(m){return Array.isArray(m)?ye(m).map(xe).toList():Ze(m)?Le(m).map(xe).toMap():m}function Ze(m){return m&&(m.constructor===Object||m.constructor===void 0)}function it(m,x){if(m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1;if(typeof m.valueOf=="function"&&typeof x.valueOf=="function"){if(m=m.valueOf(),x=x.valueOf(),m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1}return!!(typeof m.equals=="function"&&typeof x.equals=="function"&&m.equals(x))}function kt(m,x){if(m===x)return!0;if(!u(x)||m.size!==void 0&&x.size!==void 0&&m.size!==x.size||m.__hash!==void 0&&x.__hash!==void 0&&m.__hash!==x.__hash||l(m)!==l(x)||c(m)!==c(x)||h(m)!==h(x))return!1;if(m.size===0&&x.size===0)return!0;var N=!p(m);if(h(m)){var D=m.entries();return x.every(function(_e,Ae){var Te=D.next().value;return Te&&it(Te[1],_e)&&(N||it(Te[0],Ae))})&&D.next().done}var B=!1;if(m.size===void 0)if(x.size===void 0)typeof m.cacheResult=="function"&&m.cacheResult();else{B=!0;var J=m;m=x,x=J}var Q=!0,ce=x.__iterate(function(_e,Ae){if(N?!m.has(_e):B?!it(_e,m.get(Ae,S)):!it(m.get(Ae,S),_e))return Q=!1,!1});return Q&&m.size===ce}n(ft,ye);function ft(m,x){if(!(this instanceof ft))return new ft(m,x);if(this._value=m,this.size=x===void 0?1/0:Math.max(0,x),this.size===0){if(ae)return ae;ae=this}}ft.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ft.prototype.get=function(m,x){return this.has(m)?this._value:x},ft.prototype.includes=function(m){return it(this._value,m)},ft.prototype.slice=function(m,x){var N=this.size;return ee(m,x,N)?this:new ft(this._value,Z(x,N)-G(m,N))},ft.prototype.reverse=function(){return this},ft.prototype.indexOf=function(m){return it(this._value,m)?0:-1},ft.prototype.lastIndexOf=function(m){return it(this._value,m)?this.size:-1},ft.prototype.__iterate=function(m,x){for(var N=0;N<this.size;N++)if(m(this._value,N,this)===!1)return N+1;return N},ft.prototype.__iterator=function(m,x){var N=this,D=0;return new re(function(){return D<N.size?W(m,D++,N._value):V()})},ft.prototype.equals=function(m){return m instanceof ft?it(this._value,m._value):kt(m)};var ae;function Ce(m,x){if(!m)throw new Error(x)}n(je,ye);function je(m,x,N){if(!(this instanceof je))return new je(m,x,N);if(Ce(N!==0,"Cannot step a Range by 0"),m=m||0,x===void 0&&(x=1/0),N=N===void 0?1:Math.abs(N),x<m&&(N=-N),this._start=m,this._end=x,this._step=N,this.size=Math.max(0,Math.ceil((x-m)/N-1)+1),this.size===0){if(tt)return tt;tt=this}}je.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},je.prototype.get=function(m,x){return this.has(m)?this._start+M(this,m)*this._step:x},je.prototype.includes=function(m){var x=(m-this._start)/this._step;return x>=0&&x<this.size&&x===Math.floor(x)},je.prototype.slice=function(m,x){return ee(m,x,this.size)?this:(m=G(m,this.size),x=Z(x,this.size),x<=m?new je(0,0):new je(this.get(m,this._end),this.get(x,this._end),this._step))},je.prototype.indexOf=function(m){var x=m-this._start;if(x%this._step===0){var N=x/this._step;if(N>=0&&N<this.size)return N}return-1},je.prototype.lastIndexOf=function(m){return this.indexOf(m)},je.prototype.__iterate=function(m,x){for(var N=this.size-1,D=this._step,B=x?this._start+N*D:this._start,J=0;J<=N;J++){if(m(B,J,this)===!1)return J+1;B+=x?-D:D}return J},je.prototype.__iterator=function(m,x){var N=this.size-1,D=this._step,B=x?this._start+N*D:this._start,J=0;return new re(function(){var Q=B;return B+=x?-D:D,J>N?V():W(m,J++,Q)})},je.prototype.equals=function(m){return m instanceof je?this._start===m._start&&this._end===m._end&&this._step===m._step:kt(this,m)};var tt;n(pt,s);function pt(){throw TypeError("Abstract")}n(St,pt);function St(){}n(Lt,pt);function Lt(){}n(De,pt);function De(){}pt.Keyed=St,pt.Indexed=Lt,pt.Set=De;var Je=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(x,N){x=x|0,N=N|0;var D=x&65535,B=N&65535;return D*B+((x>>>16)*B+D*(N>>>16)<<16>>>0)|0};function lt(m){return m>>>1&1073741824|m&3221225471}function rt(m){if(m===!1||m===null||m===void 0||typeof m.valueOf=="function"&&(m=m.valueOf(),m===!1||m===null||m===void 0))return 0;if(m===!0)return 1;var x=typeof m;if(x==="number"){if(m!==m||m===1/0)return 0;var N=m|0;for(N!==m&&(N^=m*4294967295);m>4294967295;)m/=4294967295,N^=m;return lt(N)}if(x==="string")return m.length>hn?Ut(m):zr(m);if(typeof m.hashCode=="function")return m.hashCode();if(x==="object")return ii(m);if(typeof m.toString=="function")return zr(m.toString());throw new Error("Value type "+x+" cannot be hashed.")}function Ut(m){var x=ds[m];return x===void 0&&(x=zr(m),ci===li&&(ci=0,ds={}),ci++,ds[m]=x),x}function zr(m){for(var x=0,N=0;N<m.length;N++)x=31*x+m.charCodeAt(N)|0;return lt(x)}function ii(m){var x;if(oi&&(x=ui.get(m),x!==void 0)||(x=m[Jr],x!==void 0)||!Wr&&(x=m.propertyIsEnumerable&&m.propertyIsEnumerable[Jr],x!==void 0||(x=ps(m),x!==void 0)))return x;if(x=++Fs,Fs&1073741824&&(Fs=0),oi)ui.set(m,x);else{if(ai!==void 0&&ai(m)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Wr)Object.defineProperty(m,Jr,{enumerable:!1,configurable:!1,writable:!1,value:x});else if(m.propertyIsEnumerable!==void 0&&m.propertyIsEnumerable===m.constructor.prototype.propertyIsEnumerable)m.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},m.propertyIsEnumerable[Jr]=x;else if(m.nodeType!==void 0)m[Jr]=x;else throw new Error("Unable to set a non-enumerable property on object.")}return x}var ai=Object.isExtensible,Wr=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function ps(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}var oi=typeof WeakMap=="function",ui;oi&&(ui=new WeakMap);var Fs=0,Jr="__immutablehash__";typeof Symbol=="function"&&(Jr=Symbol(Jr));var hn=16,li=255,ci=0,ds={};function Er(m){Ce(m!==1/0,"Cannot perform this action with an infinite size.")}n(xt,St);function xt(m){return m==null?ze():Qe(m)&&!h(m)?m:ze().withMutations(function(x){var N=i(m);Er(N.size),N.forEach(function(D,B){return x.set(B,D)})})}xt.of=function(){var m=r.call(arguments,0);return ze().withMutations(function(x){for(var N=0;N<m.length;N+=2){if(N+1>=m.length)throw new Error("Missing value for key: "+m[N]);x.set(m[N],m[N+1])}})},xt.prototype.toString=function(){return this.__toString("Map {","}")},xt.prototype.get=function(m,x){return this._root?this._root.get(0,void 0,m,x):x},xt.prototype.set=function(m,x){return Ot(this,m,x)},xt.prototype.setIn=function(m,x){return this.updateIn(m,S,function(){return x})},xt.prototype.remove=function(m){return Ot(this,m,S)},xt.prototype.deleteIn=function(m){return this.updateIn(m,function(){return S})},xt.prototype.update=function(m,x,N){return arguments.length===1?m(this):this.updateIn([m],x,N)},xt.prototype.updateIn=function(m,x,N){N||(N=x,x=void 0);var D=Ul(this,S2(m),x,N);return D===S?void 0:D},xt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ze()},xt.prototype.merge=function(){return mn(this,void 0,arguments)},xt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return mn(this,m,x)},xt.prototype.mergeIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,ze(),function(N){return typeof N.merge=="function"?N.merge.apply(N,x):x[x.length-1]})},xt.prototype.mergeDeep=function(){return mn(this,Bl,arguments)},xt.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return mn(this,$l(m),x)},xt.prototype.mergeDeepIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,ze(),function(N){return typeof N.mergeDeep=="function"?N.mergeDeep.apply(N,x):x[x.length-1]})},xt.prototype.sort=function(m){return cr(wa(this,m))},xt.prototype.sortBy=function(m,x){return cr(wa(this,x,m))},xt.prototype.withMutations=function(m){var x=this.asMutable();return m(x),x.wasAltered()?x.__ensureOwner(this.__ownerID):this},xt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new F)},xt.prototype.asImmutable=function(){return this.__ensureOwner()},xt.prototype.wasAltered=function(){return this.__altered},xt.prototype.__iterator=function(m,x){return new Hr(this,m,x)},xt.prototype.__iterate=function(m,x){var N=this,D=0;return this._root&&this._root.iterate(function(B){return D++,m(B[1],B[0],N)},x),D},xt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?sr(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)};function Qe(m){return!!(m&&m[oe])}xt.isMap=Qe;var oe="@@__IMMUTABLE_MAP__@@",Oe=xt.prototype;Oe[oe]=!0,Oe[E]=Oe.remove,Oe.removeIn=Oe.deleteIn;function He(m,x){this.ownerID=m,this.entries=x}He.prototype.get=function(m,x,N,D){for(var B=this.entries,J=0,Q=B.length;J<Q;J++)if(it(N,B[J][0]))return B[J][1];return D},He.prototype.update=function(m,x,N,D,B,J,Q){for(var ce=B===S,_e=this.entries,Ae=0,Te=_e.length;Ae<Te&&!it(D,_e[Ae][0]);Ae++);var We=Ae<Te;if(We?_e[Ae][1]===B:ce)return this;if(P(Q),(ce||!We)&&P(J),!(ce&&_e.length===1)){if(!We&&!ce&&_e.length>=_o)return An(m,_e,D,B);var Xe=m&&m===this.ownerID,ht=Xe?_e:R(_e);return We?ce?Ae===Te-1?ht.pop():ht[Ae]=ht.pop():ht[Ae]=[D,B]:ht.push([D,B]),Xe?(this.entries=ht,this):new He(m,ht)}};function gt(m,x,N){this.ownerID=m,this.bitmap=x,this.nodes=N}gt.prototype.get=function(m,x,N,D){x===void 0&&(x=rt(N));var B=1<<((m===0?x:x>>>m)&w),J=this.bitmap;return(J&B)===0?D:this.nodes[Bi(J&B-1)].get(m+b,x,N,D)},gt.prototype.update=function(m,x,N,D,B,J,Q){N===void 0&&(N=rt(D));var ce=(x===0?N:N>>>x)&w,_e=1<<ce,Ae=this.bitmap,Te=(Ae&_e)!==0;if(!Te&&B===S)return this;var We=Bi(Ae&_e-1),Xe=this.nodes,ht=Te?Xe[We]:void 0,At=Ft(ht,m,x+b,N,D,B,J,Q);if(At===ht)return this;if(!Te&&At&&Xe.length>=_t)return Cn(m,Xe,Ae,ce,At);if(Te&&!At&&Xe.length===2&&lr(Xe[We^1]))return Xe[We^1];if(Te&&At&&Xe.length===1&&lr(At))return At;var er=m&&m===this.ownerID,Jn=Te?At?Ae:Ae^_e:Ae|_e,ys=Te?At?So(Xe,We,At,er):Kp(Xe,We,er):pi(Xe,We,At,er);return er?(this.bitmap=Jn,this.nodes=ys,this):new gt(m,Jn,ys)};function Xt(m,x,N){this.ownerID=m,this.count=x,this.nodes=N}Xt.prototype.get=function(m,x,N,D){x===void 0&&(x=rt(N));var B=(m===0?x:x>>>m)&w,J=this.nodes[B];return J?J.get(m+b,x,N,D):D},Xt.prototype.update=function(m,x,N,D,B,J,Q){N===void 0&&(N=rt(D));var ce=(x===0?N:N>>>x)&w,_e=B===S,Ae=this.nodes,Te=Ae[ce];if(_e&&!Te)return this;var We=Ft(Te,m,x+b,N,D,B,J,Q);if(We===Te)return this;var Xe=this.count;if(!Te)Xe++;else if(!We&&(Xe--,Xe<Vl))return On(m,Ae,Xe,ce);var ht=m&&m===this.ownerID,At=So(Ae,ce,We,ht);return ht?(this.count=Xe,this.nodes=At,this):new Xt(m,Xe,At)};function $t(m,x,N){this.ownerID=m,this.keyHash=x,this.entries=N}$t.prototype.get=function(m,x,N,D){for(var B=this.entries,J=0,Q=B.length;J<Q;J++)if(it(N,B[J][0]))return B[J][1];return D},$t.prototype.update=function(m,x,N,D,B,J,Q){N===void 0&&(N=rt(D));var ce=B===S;if(N!==this.keyHash)return ce?this:(P(Q),P(J),Wn(this,m,x,N,[D,B]));for(var _e=this.entries,Ae=0,Te=_e.length;Ae<Te&&!it(D,_e[Ae][0]);Ae++);var We=Ae<Te;if(We?_e[Ae][1]===B:ce)return this;if(P(Q),(ce||!We)&&P(J),ce&&Te===2)return new Kt(m,this.keyHash,_e[Ae^1]);var Xe=m&&m===this.ownerID,ht=Xe?_e:R(_e);return We?ce?Ae===Te-1?ht.pop():ht[Ae]=ht.pop():ht[Ae]=[D,B]:ht.push([D,B]),Xe?(this.entries=ht,this):new $t(m,this.keyHash,ht)};function Kt(m,x,N){this.ownerID=m,this.keyHash=x,this.entry=N}Kt.prototype.get=function(m,x,N,D){return it(N,this.entry[0])?this.entry[1]:D},Kt.prototype.update=function(m,x,N,D,B,J,Q){var ce=B===S,_e=it(D,this.entry[0]);if(_e?B===this.entry[1]:ce)return this;if(P(Q),ce){P(J);return}return _e?m&&m===this.ownerID?(this.entry[1]=B,this):new Kt(m,this.keyHash,[D,B]):(P(J),Wn(this,m,x,rt(D),[D,B]))},He.prototype.iterate=$t.prototype.iterate=function(m,x){for(var N=this.entries,D=0,B=N.length-1;D<=B;D++)if(m(N[x?B-D:D])===!1)return!1},gt.prototype.iterate=Xt.prototype.iterate=function(m,x){for(var N=this.nodes,D=0,B=N.length-1;D<=B;D++){var J=N[x?B-D:D];if(J&&J.iterate(m,x)===!1)return!1}},Kt.prototype.iterate=function(m,x){return m(this.entry)},n(Hr,re);function Hr(m,x,N){this._type=x,this._reverse=N,this._stack=m._root&&fi(m._root)}Hr.prototype.next=function(){for(var m=this._type,x=this._stack;x;){var N=x.node,D=x.index++,B;if(N.entry){if(D===0)return sn(m,N.entry)}else if(N.entries){if(B=N.entries.length-1,D<=B)return sn(m,N.entries[this._reverse?B-D:D])}else if(B=N.nodes.length-1,D<=B){var J=N.nodes[this._reverse?B-D:D];if(J){if(J.entry)return sn(m,J.entry);x=this._stack=fi(J,x)}continue}x=this._stack=this._stack.__prev}return V()};function sn(m,x){return W(m,x[0],x[1])}function fi(m,x){return{node:m,index:0,__prev:x}}function sr(m,x,N,D){var B=Object.create(Oe);return B.size=m,B._root=x,B.__ownerID=N,B.__hash=D,B.__altered=!1,B}var Pe;function ze(){return Pe||(Pe=sr(0))}function Ot(m,x,N){var D,B;if(m._root){var J=k(A),Q=k(T);if(D=Ft(m._root,m.__ownerID,0,void 0,x,N,J,Q),!Q.value)return m;B=m.size+(J.value?N===S?-1:1:0)}else{if(N===S)return m;B=1,D=new He(m.__ownerID,[[x,N]])}return m.__ownerID?(m.size=B,m._root=D,m.__hash=void 0,m.__altered=!0,m):D?sr(B,D):ze()}function Ft(m,x,N,D,B,J,Q,ce){return m?m.update(x,N,D,B,J,Q,ce):J===S?m:(P(ce),P(Q),new Kt(x,D,[B,J]))}function lr(m){return m.constructor===Kt||m.constructor===$t}function Wn(m,x,N,D,B){if(m.keyHash===D)return new $t(x,D,[m.entry,B]);var J=(N===0?m.keyHash:m.keyHash>>>N)&w,Q=(N===0?D:D>>>N)&w,ce,_e=J===Q?[Wn(m,x,N+b,D,B)]:(ce=new Kt(x,D,B),J<Q?[m,ce]:[ce,m]);return new gt(x,1<<J|1<<Q,_e)}function An(m,x,N,D){m||(m=new F);for(var B=new Kt(m,rt(N),[N,D]),J=0;J<x.length;J++){var Q=x[J];B=B.update(m,0,void 0,Q[0],Q[1])}return B}function On(m,x,N,D){for(var B=0,J=0,Q=new Array(N),ce=0,_e=1,Ae=x.length;ce<Ae;ce++,_e<<=1){var Te=x[ce];Te!==void 0&&ce!==D&&(B|=_e,Q[J++]=Te)}return new gt(m,B,Q)}function Cn(m,x,N,D,B){for(var J=0,Q=new Array(_),ce=0;N!==0;ce++,N>>>=1)Q[ce]=N&1?x[J++]:void 0;return Q[D]=B,new Xt(m,J+1,Q)}function mn(m,x,N){for(var D=[],B=0;B<N.length;B++){var J=N[B],Q=i(J);u(J)||(Q=Q.map(function(ce){return ie(ce)})),D.push(Q)}return Ll(m,x,D)}function Bl(m,x,N){return m&&m.mergeDeep&&u(x)?m.mergeDeep(x):it(m,x)?m:x}function $l(m){return function(x,N,D){if(x&&x.mergeDeepWith&&u(N))return x.mergeDeepWith(m,N);var B=m(x,N,D);return it(x,B)?x:B}}function Ll(m,x,N){return N=N.filter(function(D){return D.size!==0}),N.length===0?m:m.size===0&&!m.__ownerID&&N.length===1?m.constructor(N[0]):m.withMutations(function(D){for(var B=x?function(Q,ce){D.update(ce,S,function(_e){return _e===S?Q:x(_e,Q,ce)})}:function(Q,ce){D.set(ce,Q)},J=0;J<N.length;J++)N[J].forEach(B)})}function Ul(m,x,N,D){var B=m===S,J=x.next();if(J.done){var Q=B?N:m,ce=D(Q);return ce===Q?m:ce}Ce(B||m&&m.set,"invalid keyPath");var _e=J.value,Ae=B?S:m.get(_e,S),Te=Ul(Ae,x,N,D);return Te===Ae?m:Te===S?m.remove(_e):(B?ze():m).set(_e,Te)}function Bi(m){return m=m-(m>>1&1431655765),m=(m&858993459)+(m>>2&858993459),m=m+(m>>4)&252645135,m=m+(m>>8),m=m+(m>>16),m&127}function So(m,x,N,D){var B=D?m:R(m);return B[x]=N,B}function pi(m,x,N,D){var B=m.length+1;if(D&&x+1===B)return m[x]=N,m;for(var J=new Array(B),Q=0,ce=0;ce<B;ce++)ce===x?(J[ce]=N,Q=-1):J[ce]=m[ce+Q];return J}function Kp(m,x,N){var D=m.length-1;if(N&&x===D)return m.pop(),m;for(var B=new Array(D),J=0,Q=0;Q<D;Q++)Q===x&&(J=1),B[Q]=m[Q+J];return B}var _o=_/4,_t=_/2,Vl=_/4;n(yt,Lt);function yt(m){var x=Nt();if(m==null)return x;if(rr(m))return m;var N=a(m),D=N.size;return D===0?x:(Er(D),D>0&&D<_?nt(0,D,b,null,new Rn(N.toArray())):x.withMutations(function(B){B.setSize(D),N.forEach(function(J,Q){return B.set(Q,J)})}))}yt.of=function(){return this(arguments)},yt.prototype.toString=function(){return this.__toString("List [","]")},yt.prototype.get=function(m,x){if(m=M(this,m),m>=0&&m<this.size){m+=this._origin;var N=o2(this,m);return N&&N.array[m&w]}return x},yt.prototype.set=function(m,x){return Br(this,m,x)},yt.prototype.remove=function(m){return this.has(m)?m===0?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},yt.prototype.insert=function(m,x){return this.splice(m,0,x)},yt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=b,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Nt()},yt.prototype.push=function(){var m=arguments,x=this.size;return this.withMutations(function(N){mi(N,0,x+m.length);for(var D=0;D<m.length;D++)N.set(x+D,m[D])})},yt.prototype.pop=function(){return mi(this,0,-1)},yt.prototype.unshift=function(){var m=arguments;return this.withMutations(function(x){mi(x,-m.length);for(var N=0;N<m.length;N++)x.set(N,m[N])})},yt.prototype.shift=function(){return mi(this,1)},yt.prototype.merge=function(){return zl(this,void 0,arguments)},yt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return zl(this,m,x)},yt.prototype.mergeDeep=function(){return zl(this,Bl,arguments)},yt.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return zl(this,$l(m),x)},yt.prototype.setSize=function(m){return mi(this,0,m)},yt.prototype.slice=function(m,x){var N=this.size;return ee(m,x,N)?this:mi(this,G(m,N),Z(x,N))},yt.prototype.__iterator=function(m,x){var N=0,D=et(this,x);return new re(function(){var B=D();return B===qs?V():W(m,N++,B)})},yt.prototype.__iterate=function(m,x){for(var N=0,D=et(this,x),B;(B=D())!==qs&&m(B,N++,this)!==!1;);return N},yt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?nt(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)};function rr(m){return!!(m&&m[$i])}yt.isList=rr;var $i="@@__IMMUTABLE_LIST__@@",ir=yt.prototype;ir[$i]=!0,ir[E]=ir.remove,ir.setIn=Oe.setIn,ir.deleteIn=ir.removeIn=Oe.removeIn,ir.update=Oe.update,ir.updateIn=Oe.updateIn,ir.mergeIn=Oe.mergeIn,ir.mergeDeepIn=Oe.mergeDeepIn,ir.withMutations=Oe.withMutations,ir.asMutable=Oe.asMutable,ir.asImmutable=Oe.asImmutable,ir.wasAltered=Oe.wasAltered;function Rn(m,x){this.array=m,this.ownerID=x}Rn.prototype.removeBefore=function(m,x,N){if(N===x?1<<x:this.array.length===0)return this;var D=N>>>x&w;if(D>=this.array.length)return new Rn([],m);var B=D===0,J;if(x>0){var Q=this.array[D];if(J=Q&&Q.removeBefore(m,x-b,N),J===Q&&B)return this}if(B&&!J)return this;var ce=hi(this,m);if(!B)for(var _e=0;_e<D;_e++)ce.array[_e]=void 0;return J&&(ce.array[D]=J),ce},Rn.prototype.removeAfter=function(m,x,N){if(N===(x?1<<x:0)||this.array.length===0)return this;var D=N-1>>>x&w;if(D>=this.array.length)return this;var B;if(x>0){var J=this.array[D];if(B=J&&J.removeAfter(m,x-b,N),B===J&&D===this.array.length-1)return this}var Q=hi(this,m);return Q.array.splice(D+1),B&&(Q.array[D]=B),Q};var qs={};function et(m,x){var N=m._origin,D=m._capacity,B=wo(D),J=m._tail;return Q(m._root,m._level,0);function Q(Ae,Te,We){return Te===0?ce(Ae,We):_e(Ae,Te,We)}function ce(Ae,Te){var We=Te===B?J&&J.array:Ae&&Ae.array,Xe=Te>N?0:N-Te,ht=D-Te;return ht>_&&(ht=_),function(){if(Xe===ht)return qs;var At=x?--ht:Xe++;return We&&We[At]}}function _e(Ae,Te,We){var Xe,ht=Ae&&Ae.array,At=We>N?0:N-We>>Te,er=(D-We>>Te)+1;return er>_&&(er=_),function(){do{if(Xe){var Jn=Xe();if(Jn!==qs)return Jn;Xe=null}if(At===er)return qs;var ys=x?--er:At++;Xe=Q(ht&&ht[ys],Te-b,We+(ys<<Te))}while(!0)}}}function nt(m,x,N,D,B,J,Q){var ce=Object.create(ir);return ce.size=x-m,ce._origin=m,ce._capacity=x,ce._level=N,ce._root=D,ce._tail=B,ce.__ownerID=J,ce.__hash=Q,ce.__altered=!1,ce}var Et;function Nt(){return Et||(Et=nt(0,0,b))}function Br(m,x,N){if(x=M(m,x),x!==x)return m;if(x>=m.size||x<0)return m.withMutations(function(Q){x<0?mi(Q,x).set(0,N):mi(Q,0,x+1).set(x,N)});x+=m._origin;var D=m._tail,B=m._root,J=k(T);return x>=wo(m._capacity)?D=di(D,m.__ownerID,0,x,N,J):B=di(B,m.__ownerID,m._level,x,N,J),J.value?m.__ownerID?(m._root=B,m._tail=D,m.__hash=void 0,m.__altered=!0,m):nt(m._origin,m._capacity,m._level,B,D):m}function di(m,x,N,D,B,J){var Q=D>>>N&w,ce=m&&Q<m.array.length;if(!ce&&B===void 0)return m;var _e;if(N>0){var Ae=m&&m.array[Q],Te=di(Ae,x,N-b,D,B,J);return Te===Ae?m:(_e=hi(m,x),_e.array[Q]=Te,_e)}return ce&&m.array[Q]===B?m:(P(J),_e=hi(m,x),B===void 0&&Q===_e.array.length-1?_e.array.pop():_e.array[Q]=B,_e)}function hi(m,x){return x&&m&&x===m.ownerID?m:new Rn(m?m.array.slice():[],x)}function o2(m,x){if(x>=wo(m._capacity))return m._tail;if(x<1<<m._level+b){for(var N=m._root,D=m._level;N&&D>0;)N=N.array[x>>>D&w],D-=b;return N}}function mi(m,x,N){x!==void 0&&(x=x|0),N!==void 0&&(N=N|0);var D=m.__ownerID||new F,B=m._origin,J=m._capacity,Q=B+x,ce=N===void 0?J:N<0?J+N:B+N;if(Q===B&&ce===J)return m;if(Q>=ce)return m.clear();for(var _e=m._level,Ae=m._root,Te=0;Q+Te<0;)Ae=new Rn(Ae&&Ae.array.length?[void 0,Ae]:[],D),_e+=b,Te+=1<<_e;Te&&(Q+=Te,B+=Te,ce+=Te,J+=Te);for(var We=wo(J),Xe=wo(ce);Xe>=1<<_e+b;)Ae=new Rn(Ae&&Ae.array.length?[Ae]:[],D),_e+=b;var ht=m._tail,At=Xe<We?o2(m,ce-1):Xe>We?new Rn([],D):ht;if(ht&&Xe>We&&Q<J&&ht.array.length){Ae=hi(Ae,D);for(var er=Ae,Jn=_e;Jn>b;Jn-=b){var ys=We>>>Jn&w;er=er.array[ys]=hi(er.array[ys],D)}er.array[We>>>b&w]=ht}if(ce<J&&(At=At&&At.removeAfter(D,0,ce)),Q>=Xe)Q-=Xe,ce-=Xe,_e=b,Ae=null,At=At&&At.removeBefore(D,0,Q);else if(Q>B||Xe<We){for(Te=0;Ae;){var Xl=Q>>>_e&w;if(Xl!==Xe>>>_e&w)break;Xl&&(Te+=(1<<_e)*Xl),_e-=b,Ae=Ae.array[Xl]}Ae&&Q>B&&(Ae=Ae.removeBefore(D,_e,Q-Te)),Ae&&Xe<We&&(Ae=Ae.removeAfter(D,_e,Xe-Te)),Te&&(Q-=Te,ce-=Te)}return m.__ownerID?(m.size=ce-Q,m._origin=Q,m._capacity=ce,m._level=_e,m._root=Ae,m._tail=At,m.__hash=void 0,m.__altered=!0,m):nt(Q,ce,_e,Ae,At)}function zl(m,x,N){for(var D=[],B=0,J=0;J<N.length;J++){var Q=N[J],ce=a(Q);ce.size>B&&(B=ce.size),u(Q)||(ce=ce.map(function(_e){return ie(_e)})),D.push(ce)}return B>m.size&&(m=m.setSize(B)),Ll(m,x,D)}function wo(m){return m<_?0:m-1>>>b<<b}n(cr,xt);function cr(m){return m==null?Wl():u2(m)?m:Wl().withMutations(function(x){var N=i(m);Er(N.size),N.forEach(function(D,B){return x.set(B,D)})})}cr.of=function(){return this(arguments)},cr.prototype.toString=function(){return this.__toString("OrderedMap {","}")},cr.prototype.get=function(m,x){var N=this._map.get(m);return N!==void 0?this._list.get(N)[1]:x},cr.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wl()},cr.prototype.set=function(m,x){return c2(this,m,x)},cr.prototype.remove=function(m){return c2(this,m,S)},cr.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},cr.prototype.__iterate=function(m,x){var N=this;return this._list.__iterate(function(D){return D&&m(D[1],D[0],N)},x)},cr.prototype.__iterator=function(m,x){return this._list.fromEntrySeq().__iterator(m,x)},cr.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m),N=this._list.__ensureOwner(m);return m?Gp(x,N,m,this.__hash):(this.__ownerID=m,this._map=x,this._list=N,this)};function u2(m){return Qe(m)&&h(m)}cr.isOrderedMap=u2,cr.prototype[v]=!0,cr.prototype[E]=cr.prototype.remove;function Gp(m,x,N,D){var B=Object.create(cr.prototype);return B.size=m?m.size:0,B._map=m,B._list=x,B.__ownerID=N,B.__hash=D,B}var l2;function Wl(){return l2||(l2=Gp(ze(),Nt()))}function c2(m,x,N){var D=m._map,B=m._list,J=D.get(x),Q=J!==void 0,ce,_e;if(N===S){if(!Q)return m;B.size>=_&&B.size>=D.size*2?(_e=B.filter(function(Ae,Te){return Ae!==void 0&&J!==Te}),ce=_e.toKeyedSeq().map(function(Ae){return Ae[0]}).flip().toMap(),m.__ownerID&&(ce.__ownerID=_e.__ownerID=m.__ownerID)):(ce=D.remove(x),_e=J===B.size-1?B.pop():B.set(J,void 0))}else if(Q){if(N===B.get(J)[1])return m;ce=D,_e=B.set(J,[x,N])}else ce=D.set(x,B.size),_e=B.set(B.size,[x,N]);return m.__ownerID?(m.size=ce.size,m._map=ce,m._list=_e,m.__hash=void 0,m):Gp(ce,_e)}n(Tn,Le);function Tn(m,x){this._iter=m,this._useKeys=x,this.size=m.size}Tn.prototype.get=function(m,x){return this._iter.get(m,x)},Tn.prototype.has=function(m){return this._iter.has(m)},Tn.prototype.valueSeq=function(){return this._iter.valueSeq()},Tn.prototype.reverse=function(){var m=this,x=Yp(this,!0);return this._useKeys||(x.valueSeq=function(){return m._iter.toSeq().reverse()}),x},Tn.prototype.map=function(m,x){var N=this,D=p2(this,m,x);return this._useKeys||(D.valueSeq=function(){return N._iter.toSeq().map(m,x)}),D},Tn.prototype.__iterate=function(m,x){var N=this,D;return this._iter.__iterate(this._useKeys?function(B,J){return m(B,J,N)}:(D=x?v2(this):0,function(B){return m(B,x?--D:D++,N)}),x)},Tn.prototype.__iterator=function(m,x){if(this._useKeys)return this._iter.__iterator(m,x);var N=this._iter.__iterator(le,x),D=x?v2(this):0;return new re(function(){var B=N.next();return B.done?B:W(m,x?--D:D++,B.value,B)})},Tn.prototype[v]=!0,n(Ea,ye);function Ea(m){this._iter=m,this.size=m.size}Ea.prototype.includes=function(m){return this._iter.includes(m)},Ea.prototype.__iterate=function(m,x){var N=this,D=0;return this._iter.__iterate(function(B){return m(B,D++,N)},x)},Ea.prototype.__iterator=function(m,x){var N=this._iter.__iterator(le,x),D=0;return new re(function(){var B=N.next();return B.done?B:W(m,D++,B.value,B)})},n(Sa,Se);function Sa(m){this._iter=m,this.size=m.size}Sa.prototype.has=function(m){return this._iter.includes(m)},Sa.prototype.__iterate=function(m,x){var N=this;return this._iter.__iterate(function(D){return m(D,D,N)},x)},Sa.prototype.__iterator=function(m,x){var N=this._iter.__iterator(le,x);return new re(function(){var D=N.next();return D.done?D:W(m,D.value,D.value,D)})},n(_a,Le);function _a(m){this._iter=m,this.size=m.size}_a.prototype.entrySeq=function(){return this._iter.toSeq()},_a.prototype.__iterate=function(m,x){var N=this;return this._iter.__iterate(function(D){if(D){y2(D);var B=u(D);return m(B?D.get(1):D[1],B?D.get(0):D[0],N)}},x)},_a.prototype.__iterator=function(m,x){var N=this._iter.__iterator(le,x);return new re(function(){for(;;){var D=N.next();if(D.done)return D;var B=D.value;if(B){y2(B);var J=u(B);return W(m,J?B.get(0):B[0],J?B.get(1):B[1],D)}}})},Ea.prototype.cacheResult=Tn.prototype.cacheResult=Sa.prototype.cacheResult=_a.prototype.cacheResult=Qp;function f2(m){var x=hs(m);return x._iter=m,x.size=m.size,x.flip=function(){return m},x.reverse=function(){var N=m.reverse.apply(this);return N.flip=function(){return m.reverse()},N},x.has=function(N){return m.includes(N)},x.includes=function(N){return m.has(N)},x.cacheResult=Qp,x.__iterateUncached=function(N,D){var B=this;return m.__iterate(function(J,Q){return N(Q,J,B)!==!1},D)},x.__iteratorUncached=function(N,D){if(N===se){var B=m.__iterator(N,D);return new re(function(){var J=B.next();if(!J.done){var Q=J.value[0];J.value[0]=J.value[1],J.value[1]=Q}return J})}return m.__iterator(N===le?te:le,D)},x}function p2(m,x,N){var D=hs(m);return D.size=m.size,D.has=function(B){return m.has(B)},D.get=function(B,J){var Q=m.get(B,S);return Q===S?J:x.call(N,Q,B,m)},D.__iterateUncached=function(B,J){var Q=this;return m.__iterate(function(ce,_e,Ae){return B(x.call(N,ce,_e,Ae),_e,Q)!==!1},J)},D.__iteratorUncached=function(B,J){var Q=m.__iterator(se,J);return new re(function(){var ce=Q.next();if(ce.done)return ce;var _e=ce.value,Ae=_e[0];return W(B,Ae,x.call(N,_e[1],Ae,m),ce)})},D}function Yp(m,x){var N=hs(m);return N._iter=m,N.size=m.size,N.reverse=function(){return m},m.flip&&(N.flip=function(){var D=f2(m);return D.reverse=function(){return m.flip()},D}),N.get=function(D,B){return m.get(x?D:-1-D,B)},N.has=function(D){return m.has(x?D:-1-D)},N.includes=function(D){return m.includes(D)},N.cacheResult=Qp,N.__iterate=function(D,B){var J=this;return m.__iterate(function(Q,ce){return D(Q,ce,J)},!B)},N.__iterator=function(D,B){return m.__iterator(D,!B)},N}function d2(m,x,N,D){var B=hs(m);return D&&(B.has=function(J){var Q=m.get(J,S);return Q!==S&&!!x.call(N,Q,J,m)},B.get=function(J,Q){var ce=m.get(J,S);return ce!==S&&x.call(N,ce,J,m)?ce:Q}),B.__iterateUncached=function(J,Q){var ce=this,_e=0;return m.__iterate(function(Ae,Te,We){if(x.call(N,Ae,Te,We))return _e++,J(Ae,D?Te:_e-1,ce)},Q),_e},B.__iteratorUncached=function(J,Q){var ce=m.__iterator(se,Q),_e=0;return new re(function(){for(;;){var Ae=ce.next();if(Ae.done)return Ae;var Te=Ae.value,We=Te[0],Xe=Te[1];if(x.call(N,Xe,We,m))return W(J,D?We:_e++,Xe,Ae)}})},B}function QU(m,x,N){var D=xt().asMutable();return m.__iterate(function(B,J){D.update(x.call(N,B,J,m),0,function(Q){return Q+1})}),D.asImmutable()}function e9(m,x,N){var D=l(m),B=(h(m)?cr():xt()).asMutable();m.__iterate(function(Q,ce){B.update(x.call(N,Q,ce,m),function(_e){return _e=_e||[],_e.push(D?[ce,Q]:Q),_e})});var J=b2(m);return B.map(function(Q){return Ht(m,J(Q))})}function Xp(m,x,N,D){var B=m.size;if(x!==void 0&&(x=x|0),N!==void 0&&(N===1/0?N=B:N=N|0),ee(x,N,B))return m;var J=G(x,B),Q=Z(N,B);if(J!==J||Q!==Q)return Xp(m.toSeq().cacheResult(),x,N,D);var ce=Q-J,_e;ce===ce&&(_e=ce<0?0:ce);var Ae=hs(m);return Ae.size=_e===0?_e:m.size&&_e||void 0,!D&&Y(m)&&_e>=0&&(Ae.get=function(Te,We){return Te=M(this,Te),Te>=0&&Te<_e?m.get(Te+J,We):We}),Ae.__iterateUncached=function(Te,We){var Xe=this;if(_e===0)return 0;if(We)return this.cacheResult().__iterate(Te,We);var ht=0,At=!0,er=0;return m.__iterate(function(Jn,ys){if(!(At&&(At=ht++<J)))return er++,Te(Jn,D?ys:er-1,Xe)!==!1&&er!==_e}),er},Ae.__iteratorUncached=function(Te,We){if(_e!==0&&We)return this.cacheResult().__iterator(Te,We);var Xe=_e!==0&&m.__iterator(Te,We),ht=0,At=0;return new re(function(){for(;ht++<J;)Xe.next();if(++At>_e)return V();var er=Xe.next();return D||Te===le?er:Te===te?W(Te,At-1,void 0,er):W(Te,At-1,er.value[1],er)})},Ae}function t9(m,x,N){var D=hs(m);return D.__iterateUncached=function(B,J){var Q=this;if(J)return this.cacheResult().__iterate(B,J);var ce=0;return m.__iterate(function(_e,Ae,Te){return x.call(N,_e,Ae,Te)&&++ce&&B(_e,Ae,Q)}),ce},D.__iteratorUncached=function(B,J){var Q=this;if(J)return this.cacheResult().__iterator(B,J);var ce=m.__iterator(se,J),_e=!0;return new re(function(){if(!_e)return V();var Ae=ce.next();if(Ae.done)return Ae;var Te=Ae.value,We=Te[0],Xe=Te[1];return x.call(N,Xe,We,Q)?B===se?Ae:W(B,We,Xe,Ae):(_e=!1,V())})},D}function h2(m,x,N,D){var B=hs(m);return B.__iterateUncached=function(J,Q){var ce=this;if(Q)return this.cacheResult().__iterate(J,Q);var _e=!0,Ae=0;return m.__iterate(function(Te,We,Xe){if(!(_e&&(_e=x.call(N,Te,We,Xe))))return Ae++,J(Te,D?We:Ae-1,ce)}),Ae},B.__iteratorUncached=function(J,Q){var ce=this;if(Q)return this.cacheResult().__iterator(J,Q);var _e=m.__iterator(se,Q),Ae=!0,Te=0;return new re(function(){var We,Xe,ht;do{if(We=_e.next(),We.done)return D||J===le?We:J===te?W(J,Te++,void 0,We):W(J,Te++,We.value[1],We);var At=We.value;Xe=At[0],ht=At[1],Ae&&(Ae=x.call(N,ht,Xe,ce))}while(Ae);return J===se?We:W(J,Xe,ht,We)})},B}function r9(m,x){var N=l(m),D=[m].concat(x).map(function(Q){return u(Q)?N&&(Q=i(Q)):Q=N?Ne(Q):Ge(Array.isArray(Q)?Q:[Q]),Q}).filter(function(Q){return Q.size!==0});if(D.length===0)return m;if(D.length===1){var B=D[0];if(B===m||N&&l(B)||c(m)&&c(B))return B}var J=new L(D);return N?J=J.toKeyedSeq():c(m)||(J=J.toSetSeq()),J=J.flatten(!0),J.size=D.reduce(function(Q,ce){if(Q!==void 0){var _e=ce.size;if(_e!==void 0)return Q+_e}},0),J}function m2(m,x,N){var D=hs(m);return D.__iterateUncached=function(B,J){var Q=0,ce=!1;function _e(Ae,Te){var We=this;Ae.__iterate(function(Xe,ht){return(!x||Te<x)&&u(Xe)?_e(Xe,Te+1):B(Xe,N?ht:Q++,We)===!1&&(ce=!0),!ce},J)}return _e(m,0),Q},D.__iteratorUncached=function(B,J){var Q=m.__iterator(B,J),ce=[],_e=0;return new re(function(){for(;Q;){var Ae=Q.next();if(Ae.done!==!1){Q=ce.pop();continue}var Te=Ae.value;if(B===se&&(Te=Te[1]),(!x||ce.length<x)&&u(Te))ce.push(Q),Q=Te.__iterator(B,J);else return N?Ae:W(B,_e++,Te,Ae)}return V()})},D}function n9(m,x,N){var D=b2(m);return m.toSeq().map(function(B,J){return D(x.call(N,B,J,m))}).flatten(!0)}function s9(m,x){var N=hs(m);return N.size=m.size&&m.size*2-1,N.__iterateUncached=function(D,B){var J=this,Q=0;return m.__iterate(function(ce,_e){return(!Q||D(x,Q++,J)!==!1)&&D(ce,Q++,J)!==!1},B),Q},N.__iteratorUncached=function(D,B){var J=m.__iterator(le,B),Q=0,ce;return new re(function(){return(!ce||Q%2)&&(ce=J.next(),ce.done)?ce:Q%2?W(D,Q++,x):W(D,Q++,ce.value,ce)})},N}function wa(m,x,N){x||(x=E2);var D=l(m),B=0,J=m.toSeq().map(function(Q,ce){return[ce,Q,B++,N?N(Q,ce,m):Q]}).toArray();return J.sort(function(Q,ce){return x(Q[3],ce[3])||Q[2]-ce[2]}).forEach(D?function(Q,ce){J[ce].length=2}:function(Q,ce){J[ce]=Q[1]}),D?Le(J):c(m)?ye(J):Se(J)}function Jl(m,x,N){if(x||(x=E2),N){var D=m.toSeq().map(function(B,J){return[B,N(B,J,m)]}).reduce(function(B,J){return g2(x,B[1],J[1])?J:B});return D&&D[0]}else return m.reduce(function(B,J){return g2(x,B,J)?J:B})}function g2(m,x,N){var D=m(N,x);return D===0&&N!==x&&(N==null||N!==N)||D>0}function Zp(m,x,N){var D=hs(m);return D.size=new L(N).map(function(B){return B.size}).min(),D.__iterate=function(B,J){for(var Q=this.__iterator(le,J),ce,_e=0;!(ce=Q.next()).done&&B(ce.value,_e++,this)!==!1;);return _e},D.__iteratorUncached=function(B,J){var Q=N.map(function(Ae){return Ae=s(Ae),Me(J?Ae.reverse():Ae)}),ce=0,_e=!1;return new re(function(){var Ae;return _e||(Ae=Q.map(function(Te){return Te.next()}),_e=Ae.some(function(Te){return Te.done})),_e?V():W(B,ce++,x.apply(null,Ae.map(function(Te){return Te.value})))})},D}function Ht(m,x){return Y(m)?x:m.constructor(x)}function y2(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function v2(m){return Er(m.size),$(m)}function b2(m){return l(m)?i:c(m)?a:o}function hs(m){return Object.create((l(m)?Le:c(m)?ye:Se).prototype)}function Qp(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ke.prototype.cacheResult.call(this)}function E2(m,x){return m>x?1:m<x?-1:0}function S2(m){var x=Me(m);if(!x){if(!Ie(m))throw new TypeError("Expected iterable or array-like: "+m);x=Me(s(m))}return x}n(gn,St);function gn(m,x){var N,D=function(Q){if(Q instanceof D)return Q;if(!(this instanceof D))return new D(Q);if(!N){N=!0;var ce=Object.keys(m);i9(B,ce),B.size=ce.length,B._name=x,B._keys=ce,B._defaultValues=m}this._map=xt(Q)},B=D.prototype=Object.create(Rr);return B.constructor=D,D}gn.prototype.toString=function(){return this.__toString(_2(this)+" {","}")},gn.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},gn.prototype.get=function(m,x){if(!this.has(m))return x;var N=this._defaultValues[m];return this._map?this._map.get(m,N):N},gn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=Hl(this,ze()))},gn.prototype.set=function(m,x){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+_2(this));if(this._map&&!this._map.has(m)){var N=this._defaultValues[m];if(x===N)return this}var D=this._map&&this._map.set(m,x);return this.__ownerID||D===this._map?this:Hl(this,D)},gn.prototype.remove=function(m){if(!this.has(m))return this;var x=this._map&&this._map.remove(m);return this.__ownerID||x===this._map?this:Hl(this,x)},gn.prototype.wasAltered=function(){return this._map.wasAltered()},gn.prototype.__iterator=function(m,x){var N=this;return i(this._defaultValues).map(function(D,B){return N.get(B)}).__iterator(m,x)},gn.prototype.__iterate=function(m,x){var N=this;return i(this._defaultValues).map(function(D,B){return N.get(B)}).__iterate(m,x)},gn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map&&this._map.__ensureOwner(m);return m?Hl(this,x,m):(this.__ownerID=m,this._map=x,this)};var Rr=gn.prototype;Rr[E]=Rr.remove,Rr.deleteIn=Rr.removeIn=Oe.removeIn,Rr.merge=Oe.merge,Rr.mergeWith=Oe.mergeWith,Rr.mergeIn=Oe.mergeIn,Rr.mergeDeep=Oe.mergeDeep,Rr.mergeDeepWith=Oe.mergeDeepWith,Rr.mergeDeepIn=Oe.mergeDeepIn,Rr.setIn=Oe.setIn,Rr.update=Oe.update,Rr.updateIn=Oe.updateIn,Rr.withMutations=Oe.withMutations,Rr.asMutable=Oe.asMutable,Rr.asImmutable=Oe.asImmutable;function Hl(m,x,N){var D=Object.create(Object.getPrototypeOf(m));return D._map=x,D.__ownerID=N,D}function _2(m){return m._name||m.constructor.name||"Record"}function i9(m,x){try{x.forEach(a9.bind(void 0,m))}catch{}}function a9(m,x){Object.defineProperty(m,x,{get:function(){return this.get(x)},set:function(N){Ce(this.__ownerID,"Cannot set on an immutable record."),this.set(x,N)}})}n(Qt,De);function Qt(m){return m==null?rd():ed(m)&&!h(m)?m:rd().withMutations(function(x){var N=o(m);Er(N.size),N.forEach(function(D){return x.add(D)})})}Qt.of=function(){return this(arguments)},Qt.fromKeys=function(m){return this(i(m).keySeq())},Qt.prototype.toString=function(){return this.__toString("Set {","}")},Qt.prototype.has=function(m){return this._map.has(m)},Qt.prototype.add=function(m){return td(this,this._map.set(m,!0))},Qt.prototype.remove=function(m){return td(this,this._map.remove(m))},Qt.prototype.clear=function(){return td(this,this._map.clear())},Qt.prototype.union=function(){var m=r.call(arguments,0);return m=m.filter(function(x){return x.size!==0}),m.length===0?this:this.size===0&&!this.__ownerID&&m.length===1?this.constructor(m[0]):this.withMutations(function(x){for(var N=0;N<m.length;N++)o(m[N]).forEach(function(D){return x.add(D)})})},Qt.prototype.intersect=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(N){return o(N)});var x=this;return this.withMutations(function(N){x.forEach(function(D){m.every(function(B){return B.includes(D)})||N.remove(D)})})},Qt.prototype.subtract=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(N){return o(N)});var x=this;return this.withMutations(function(N){x.forEach(function(D){m.some(function(B){return B.includes(D)})&&N.remove(D)})})},Qt.prototype.merge=function(){return this.union.apply(this,arguments)},Qt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return this.union.apply(this,x)},Qt.prototype.sort=function(m){return ms(wa(this,m))},Qt.prototype.sortBy=function(m,x){return ms(wa(this,x,m))},Qt.prototype.wasAltered=function(){return this._map.wasAltered()},Qt.prototype.__iterate=function(m,x){var N=this;return this._map.__iterate(function(D,B){return m(B,B,N)},x)},Qt.prototype.__iterator=function(m,x){return this._map.map(function(N,D){return D}).__iterator(m,x)},Qt.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m);return m?this.__make(x,m):(this.__ownerID=m,this._map=x,this)};function ed(m){return!!(m&&m[w2])}Qt.isSet=ed;var w2="@@__IMMUTABLE_SET__@@",yn=Qt.prototype;yn[w2]=!0,yn[E]=yn.remove,yn.mergeDeep=yn.merge,yn.mergeDeepWith=yn.mergeWith,yn.withMutations=Oe.withMutations,yn.asMutable=Oe.asMutable,yn.asImmutable=Oe.asImmutable,yn.__empty=rd,yn.__make=x2;function td(m,x){return m.__ownerID?(m.size=x.size,m._map=x,m):x===m._map?m:x.size===0?m.__empty():m.__make(x)}function x2(m,x){var N=Object.create(yn);return N.size=m?m.size:0,N._map=m,N.__ownerID=x,N}var A2;function rd(){return A2||(A2=x2(ze()))}n(ms,Qt);function ms(m){return m==null?nd():O2(m)?m:nd().withMutations(function(x){var N=o(m);Er(N.size),N.forEach(function(D){return x.add(D)})})}ms.of=function(){return this(arguments)},ms.fromKeys=function(m){return this(i(m).keySeq())},ms.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function O2(m){return ed(m)&&h(m)}ms.isOrderedSet=O2;var Kl=ms.prototype;Kl[v]=!0,Kl.__empty=nd,Kl.__make=C2;function C2(m,x){var N=Object.create(Kl);return N.size=m?m.size:0,N._map=m,N.__ownerID=x,N}var R2;function nd(){return R2||(R2=C2(Wl()))}n(pr,Lt);function pr(m){return m==null?sd():T2(m)?m:sd().unshiftAll(m)}pr.of=function(){return this(arguments)},pr.prototype.toString=function(){return this.__toString("Stack [","]")},pr.prototype.get=function(m,x){var N=this._head;for(m=M(this,m);N&&m--;)N=N.next;return N?N.value:x},pr.prototype.peek=function(){return this._head&&this._head.value},pr.prototype.push=function(){if(arguments.length===0)return this;for(var m=this.size+arguments.length,x=this._head,N=arguments.length-1;N>=0;N--)x={value:arguments[N],next:x};return this.__ownerID?(this.size=m,this._head=x,this.__hash=void 0,this.__altered=!0,this):xo(m,x)},pr.prototype.pushAll=function(m){if(m=a(m),m.size===0)return this;Er(m.size);var x=this.size,N=this._head;return m.reverse().forEach(function(D){x++,N={value:D,next:N}}),this.__ownerID?(this.size=x,this._head=N,this.__hash=void 0,this.__altered=!0,this):xo(x,N)},pr.prototype.pop=function(){return this.slice(1)},pr.prototype.unshift=function(){return this.push.apply(this,arguments)},pr.prototype.unshiftAll=function(m){return this.pushAll(m)},pr.prototype.shift=function(){return this.pop.apply(this,arguments)},pr.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):sd()},pr.prototype.slice=function(m,x){if(ee(m,x,this.size))return this;var N=G(m,this.size),D=Z(x,this.size);if(D!==this.size)return Lt.prototype.slice.call(this,m,x);for(var B=this.size-N,J=this._head;N--;)J=J.next;return this.__ownerID?(this.size=B,this._head=J,this.__hash=void 0,this.__altered=!0,this):xo(B,J)},pr.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?xo(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},pr.prototype.__iterate=function(m,x){if(x)return this.reverse().__iterate(m);for(var N=0,D=this._head;D&&m(D.value,N++,this)!==!1;)D=D.next;return N},pr.prototype.__iterator=function(m,x){if(x)return this.reverse().__iterator(m);var N=0,D=this._head;return new re(function(){if(D){var B=D.value;return D=D.next,W(m,N++,B)}return V()})};function T2(m){return!!(m&&m[I2])}pr.isStack=T2;var I2="@@__IMMUTABLE_STACK__@@",xa=pr.prototype;xa[I2]=!0,xa.withMutations=Oe.withMutations,xa.asMutable=Oe.asMutable,xa.asImmutable=Oe.asImmutable,xa.wasAltered=Oe.wasAltered;function xo(m,x,N,D){var B=Object.create(xa);return B.size=m,B._head=x,B.__ownerID=N,B.__hash=D,B.__altered=!1,B}var k2;function sd(){return k2||(k2=xo(0))}function gs(m,x){var N=function(D){m.prototype[D]=x[D]};return Object.keys(x).forEach(N),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(x).forEach(N),m}s.Iterator=re,gs(s,{toArray:function(){Er(this.size);var m=new Array(this.size||0);return this.valueSeq().__iterate(function(x,N){m[N]=x}),m},toIndexedSeq:function(){return new Ea(this)},toJS:function(){return this.toSeq().map(function(m){return m&&typeof m.toJS=="function"?m.toJS():m}).__toJS()},toJSON:function(){return this.toSeq().map(function(m){return m&&typeof m.toJSON=="function"?m.toJSON():m}).__toJS()},toKeyedSeq:function(){return new Tn(this,!0)},toMap:function(){return xt(this.toKeyedSeq())},toObject:function(){Er(this.size);var m={};return this.__iterate(function(x,N){m[N]=x}),m},toOrderedMap:function(){return cr(this.toKeyedSeq())},toOrderedSet:function(){return ms(l(this)?this.valueSeq():this)},toSet:function(){return Qt(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Sa(this)},toSeq:function(){return c(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return pr(l(this)?this.valueSeq():this)},toList:function(){return yt(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(m,x){return this.size===0?m+x:m+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+x},concat:function(){var m=r.call(arguments,0);return Ht(this,r9(this,m))},includes:function(m){return this.some(function(x){return it(x,m)})},entries:function(){return this.__iterator(se)},every:function(m,x){Er(this.size);var N=!0;return this.__iterate(function(D,B,J){if(!m.call(x,D,B,J))return N=!1,!1}),N},filter:function(m,x){return Ht(this,d2(this,m,x,!0))},find:function(m,x,N){var D=this.findEntry(m,x);return D?D[1]:N},forEach:function(m,x){return Er(this.size),this.__iterate(x?m.bind(x):m)},join:function(m){Er(this.size),m=m!==void 0?""+m:",";var x="",N=!0;return this.__iterate(function(D){N?N=!1:x+=m,x+=D!=null?D.toString():""}),x},keys:function(){return this.__iterator(te)},map:function(m,x){return Ht(this,p2(this,m,x))},reduce:function(m,x,N){Er(this.size);var D,B;return arguments.length<2?B=!0:D=x,this.__iterate(function(J,Q,ce){B?(B=!1,D=J):D=m.call(N,D,J,Q,ce)}),D},reduceRight:function(m,x,N){var D=this.toKeyedSeq().reverse();return D.reduce.apply(D,arguments)},reverse:function(){return Ht(this,Yp(this,!0))},slice:function(m,x){return Ht(this,Xp(this,m,x,!0))},some:function(m,x){return!this.every(Yl(m),x)},sort:function(m){return Ht(this,wa(this,m))},values:function(){return this.__iterator(le)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(m,x){return $(m?this.toSeq().filter(m,x):this)},countBy:function(m,x){return QU(this,m,x)},equals:function(m){return kt(this,m)},entrySeq:function(){var m=this;if(m._cache)return new L(m._cache);var x=m.toSeq().map(u9).toIndexedSeq();return x.fromEntrySeq=function(){return m.toSeq()},x},filterNot:function(m,x){return this.filter(Yl(m),x)},findEntry:function(m,x,N){var D=N;return this.__iterate(function(B,J,Q){if(m.call(x,B,J,Q))return D=[J,B],!1}),D},findKey:function(m,x){var N=this.findEntry(m,x);return N&&N[0]},findLast:function(m,x,N){return this.toKeyedSeq().reverse().find(m,x,N)},findLastEntry:function(m,x,N){return this.toKeyedSeq().reverse().findEntry(m,x,N)},findLastKey:function(m,x){return this.toKeyedSeq().reverse().findKey(m,x)},first:function(){return this.find(K)},flatMap:function(m,x){return Ht(this,n9(this,m,x))},flatten:function(m){return Ht(this,m2(this,m,!0))},fromEntrySeq:function(){return new _a(this)},get:function(m,x){return this.find(function(N,D){return it(D,m)},void 0,x)},getIn:function(m,x){for(var N=this,D=S2(m),B;!(B=D.next()).done;){var J=B.value;if(N=N&&N.get?N.get(J,S):S,N===S)return x}return N},groupBy:function(m,x){return e9(this,m,x)},has:function(m){return this.get(m,S)!==S},hasIn:function(m){return this.getIn(m,S)!==S},isSubset:function(m){return m=typeof m.includes=="function"?m:s(m),this.every(function(x){return m.includes(x)})},isSuperset:function(m){return m=typeof m.isSubset=="function"?m:s(m),m.isSubset(this)},keyOf:function(m){return this.findKey(function(x){return it(x,m)})},keySeq:function(){return this.toSeq().map(o9).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(m){return this.toKeyedSeq().reverse().keyOf(m)},max:function(m){return Jl(this,m)},maxBy:function(m,x){return Jl(this,x,m)},min:function(m){return Jl(this,m?P2(m):N2)},minBy:function(m,x){return Jl(this,x?P2(x):N2,m)},rest:function(){return this.slice(1)},skip:function(m){return this.slice(Math.max(0,m))},skipLast:function(m){return Ht(this,this.toSeq().reverse().skip(m).reverse())},skipWhile:function(m,x){return Ht(this,h2(this,m,x,!0))},skipUntil:function(m,x){return this.skipWhile(Yl(m),x)},sortBy:function(m,x){return Ht(this,wa(this,x,m))},take:function(m){return this.slice(0,Math.max(0,m))},takeLast:function(m){return Ht(this,this.toSeq().reverse().take(m).reverse())},takeWhile:function(m,x){return Ht(this,t9(this,m,x))},takeUntil:function(m,x){return this.takeWhile(Yl(m),x)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=c9(this))}});var Kr=s.prototype;Kr[d]=!0,Kr[he]=Kr.values,Kr.__toJS=Kr.toArray,Kr.__toStringMapper=j2,Kr.inspect=Kr.toSource=function(){return this.toString()},Kr.chain=Kr.flatMap,Kr.contains=Kr.includes,gs(i,{flip:function(){return Ht(this,f2(this))},mapEntries:function(m,x){var N=this,D=0;return Ht(this,this.toSeq().map(function(B,J){return m.call(x,[J,B],D++,N)}).fromEntrySeq())},mapKeys:function(m,x){var N=this;return Ht(this,this.toSeq().flip().map(function(D,B){return m.call(x,D,B,N)}).flip())}});var Gl=i.prototype;Gl[g]=!0,Gl[he]=Kr.entries,Gl.__toJS=Kr.toObject,Gl.__toStringMapper=function(m,x){return JSON.stringify(x)+": "+j2(m)},gs(a,{toKeyedSeq:function(){return new Tn(this,!1)},filter:function(m,x){return Ht(this,d2(this,m,x,!1))},findIndex:function(m,x){var N=this.findEntry(m,x);return N?N[0]:-1},indexOf:function(m){var x=this.keyOf(m);return x===void 0?-1:x},lastIndexOf:function(m){var x=this.lastKeyOf(m);return x===void 0?-1:x},reverse:function(){return Ht(this,Yp(this,!1))},slice:function(m,x){return Ht(this,Xp(this,m,x,!1))},splice:function(m,x){var N=arguments.length;if(x=Math.max(x|0,0),N===0||N===2&&!x)return this;m=G(m,m<0?this.count():this.size);var D=this.slice(0,m);return Ht(this,N===1?D:D.concat(R(arguments,2),this.slice(m+x)))},findLastIndex:function(m,x){var N=this.findLastEntry(m,x);return N?N[0]:-1},first:function(){return this.get(0)},flatten:function(m){return Ht(this,m2(this,m,!1))},get:function(m,x){return m=M(this,m),m<0||this.size===1/0||this.size!==void 0&&m>this.size?x:this.find(function(N,D){return D===m},void 0,x)},has:function(m){return m=M(this,m),m>=0&&(this.size!==void 0?this.size===1/0||m<this.size:this.indexOf(m)!==-1)},interpose:function(m){return Ht(this,s9(this,m))},interleave:function(){var m=[this].concat(R(arguments)),x=Zp(this.toSeq(),ye.of,m),N=x.flatten(!0);return x.size&&(N.size=x.size*m.length),Ht(this,N)},keySeq:function(){return je(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(m,x){return Ht(this,h2(this,m,x,!1))},zip:function(){var m=[this].concat(R(arguments));return Ht(this,Zp(this,l9,m))},zipWith:function(m){var x=R(arguments);return x[0]=this,Ht(this,Zp(this,m,x))}}),a.prototype[y]=!0,a.prototype[v]=!0,gs(o,{get:function(m,x){return this.has(m)?m:x},includes:function(m){return this.has(m)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Kr.includes,o.prototype.contains=o.prototype.includes,gs(Le,i.prototype),gs(ye,a.prototype),gs(Se,o.prototype),gs(St,i.prototype),gs(Lt,a.prototype),gs(De,o.prototype);function o9(m,x){return x}function u9(m,x){return[x,m]}function Yl(m){return function(){return!m.apply(this,arguments)}}function P2(m){return function(){return-m.apply(this,arguments)}}function j2(m){return typeof m=="string"?JSON.stringify(m):String(m)}function l9(){return R(arguments)}function N2(m,x){return m<x?1:m>x?-1:0}function c9(m){if(m.size===1/0)return 0;var x=h(m),N=l(m),D=x?1:0,B=m.__iterate(N?x?function(J,Q){D=31*D+M2(rt(J),rt(Q))|0}:function(J,Q){D=D+M2(rt(J),rt(Q))|0}:x?function(J){D=31*D+rt(J)|0}:function(J){D=D+rt(J)|0});return f9(B,D)}function f9(m,x){return x=Je(x,3432918353),x=Je(x<<15|x>>>-15,461845907),x=Je(x<<13|x>>>-13,5),x=(x+3864292196|0)^m,x=Je(x^x>>>16,2246822507),x=Je(x^x>>>13,3266489909),x=lt(x^x>>>16),x}function M2(m,x){return m^x+2654435769+(m<<6)+(m>>2)|0}var p9={Iterable:s,Seq:ke,Collection:pt,Map:xt,OrderedMap:cr,List:yt,Stack:pr,Set:Qt,OrderedSet:ms,Record:gn,Range:je,Repeat:ft,is:it,fromJS:ie};return p9})})(Sc)),Sc.exports}var Ws=pf();const D5=ot(Ws);var Oo={},ec={exports:{}},$s={},tc={exports:{}},LO;function bF(){return LO||(LO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return r&&r.type==="@@redux/INIT"?"initialState argument passed to createStore":"previous state received by the reducer"},t.exports=e.default})(tc,tc.exports)),tc.exports}var rc={exports:{}},UO;function F5(){return UO||(UO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=pf(),n=a(r),s=bF(),i=a(s);function a(o){return o&&o.__esModule?o:{default:o}}e.default=function(o,u,l){var c=Object.keys(u);if(!c.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var p=(0,i.default)(l);if(n.default.isImmutable?!n.default.isImmutable(o):!n.default.Iterable.isIterable(o))return"The "+p+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+c.join('", "')+'".';var h=o.toSeq().keySeq().toArray().filter(function(d){return!u.hasOwnProperty(d)});return h.length>0?"Unexpected "+(h.length===1?"property":"properties")+' "'+h.join('", "')+'" found in '+p+'. Expected to find one of the known reducer property names instead: "'+c.join('", "')+'". Unexpected properties will be ignored.':null},t.exports=e.default})(rc,rc.exports)),rc.exports}var nc={exports:{}},VO;function q5(){return VO||(VO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,n,s){if(r===void 0)throw new Error('Reducer "'+n+'" returned undefined when handling "'+s.type+'" action. To ignore an action, you must explicitly return the previous state.')},t.exports=e.default})(nc,nc.exports)),nc.exports}var zO;function B5(){if(zO)return $s;zO=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.validateNextState=$s.getUnexpectedInvocationParameterMessage=$s.getStateName=void 0;var t=bF(),e=a(t),r=F5(),n=a(r),s=q5(),i=a(s);function a(o){return o&&o.__esModule?o:{default:o}}return $s.getStateName=e.default,$s.getUnexpectedInvocationParameterMessage=n.default,$s.validateNextState=i.default,$s}var WO;function $5(){return WO||(WO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=pf(),n=i(r),s=B5();function i(a){return a&&a.__esModule?a:{default:a}}e.default=function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.Map,u=Object.keys(a);return function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),c=arguments[1];return l.withMutations(function(p){u.forEach(function(h){var d=a[h],g=p.get(h),y=d(g,c);(0,s.validateNextState)(y,h,c),p.set(h,y)})})}},t.exports=e.default})(ec,ec.exports)),ec.exports}var JO;function L5(){if(JO)return Oo;JO=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.combineReducers=void 0;var t=$5(),e=r(t);function r(n){return n&&n.__esModule?n:{default:n}}return Oo.combineReducers=e.default,Oo}var U5=L5(),sh,HO;function V5(){if(HO)return sh;HO=1;class t extends Error{constructor(u){super(t._prepareSuperMessage(u)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,t)}static _prepareSuperMessage(u){try{return JSON.stringify(u)}catch{return String(u)}}}const e=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],r=Symbol(".toJSON called"),n=o=>{o[r]=!0;const u=o.toJSON();return delete o[r],u},s=({from:o,seen:u,to_:l,forceEnumerable:c,maxDepth:p,depth:h})=>{const d=l||(Array.isArray(o)?[]:{});if(u.push(o),h>=p)return d;if(typeof o.toJSON=="function"&&o[r]!==!0)return n(o);for(const[g,y]of Object.entries(o)){if(typeof Buffer=="function"&&Buffer.isBuffer(y)){d[g]="[object Buffer]";continue}if(typeof y!="function"){if(!y||typeof y!="object"){d[g]=y;continue}if(!u.includes(o[g])){h++,d[g]=s({from:o[g],seen:u.slice(),forceEnumerable:c,maxDepth:p,depth:h});continue}d[g]="[Circular]"}}for(const{property:g,enumerable:y}of e)typeof o[g]=="string"&&Object.defineProperty(d,g,{value:o[g],enumerable:c?!0:y,configurable:!0,writable:!0});return d};return sh={serializeError:(o,u={})=>{const{maxDepth:l=Number.POSITIVE_INFINITY}=u;return typeof o=="object"&&o!==null?s({from:o,seen:[],forceEnumerable:!0,maxDepth:l,depth:0}):typeof o=="function"?`[Function: ${o.name||"anonymous"}]`:o},deserializeError:(o,u={})=>{const{maxDepth:l=Number.POSITIVE_INFINITY}=u;if(o instanceof Error)return o;if(typeof o=="object"&&o!==null&&!Array.isArray(o)){const c=new Error;return s({from:o,seen:[],to_:c,maxDepth:l,depth:0}),c}return new t(o)}},sh}var z5=V5(),ih,KO;function W5(){if(KO)return ih;KO=1;function t(){this.__data__=[],this.size=0}return ih=t,ih}var ah,GO;function to(){if(GO)return ah;GO=1;function t(e,r){return e===r||e!==e&&r!==r}return ah=t,ah}var oh,YO;function df(){if(YO)return oh;YO=1;var t=to();function e(r,n){for(var s=r.length;s--;)if(t(r[s][0],n))return s;return-1}return oh=e,oh}var uh,XO;function J5(){if(XO)return uh;XO=1;var t=df(),e=Array.prototype,r=e.splice;function n(s){var i=this.__data__,a=t(i,s);if(a<0)return!1;var o=i.length-1;return a==o?i.pop():r.call(i,a,1),--this.size,!0}return uh=n,uh}var lh,ZO;function H5(){if(ZO)return lh;ZO=1;var t=df();function e(r){var n=this.__data__,s=t(n,r);return s<0?void 0:n[s][1]}return lh=e,lh}var ch,QO;function K5(){if(QO)return ch;QO=1;var t=df();function e(r){return t(this.__data__,r)>-1}return ch=e,ch}var fh,eC;function G5(){if(eC)return fh;eC=1;var t=df();function e(r,n){var s=this.__data__,i=t(s,r);return i<0?(++this.size,s.push([r,n])):s[i][1]=n,this}return fh=e,fh}var ph,tC;function hf(){if(tC)return ph;tC=1;var t=W5(),e=J5(),r=H5(),n=K5(),s=G5();function i(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var l=a[o];this.set(l[0],l[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=s,ph=i,ph}var dh,rC;function Y5(){if(rC)return dh;rC=1;var t=hf();function e(){this.__data__=new t,this.size=0}return dh=e,dh}var hh,nC;function X5(){if(nC)return hh;nC=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return hh=t,hh}var mh,sC;function Z5(){if(sC)return mh;sC=1;function t(e){return this.__data__.get(e)}return mh=t,mh}var gh,iC;function Q5(){if(iC)return gh;iC=1;function t(e){return this.__data__.has(e)}return gh=t,gh}var yh,aC;function EF(){if(aC)return yh;aC=1;var t=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr;return yh=t,yh}var vh,oC;function tn(){if(oC)return vh;oC=1;var t=EF(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return vh=r,vh}var bh,uC;function ro(){if(uC)return bh;uC=1;var t=tn(),e=t.Symbol;return bh=e,bh}var Eh,lC;function e7(){if(lC)return Eh;lC=1;var t=ro(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,s=t?t.toStringTag:void 0;function i(a){var o=r.call(a,s),u=a[s];try{a[s]=void 0;var l=!0}catch{}var c=n.call(a);return l&&(o?a[s]=u:delete a[s]),c}return Eh=i,Eh}var Sh,cC;function t7(){if(cC)return Sh;cC=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return Sh=r,Sh}var _h,fC;function Ts(){if(fC)return _h;fC=1;var t=ro(),e=e7(),r=t7(),n="[object Null]",s="[object Undefined]",i=t?t.toStringTag:void 0;function a(o){return o==null?o===void 0?s:n:i&&i in Object(o)?e(o):r(o)}return _h=a,_h}var wh,pC;function rn(){if(pC)return wh;pC=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return wh=t,wh}var xh,dC;function Eu(){if(dC)return xh;dC=1;var t=Ts(),e=rn(),r="[object AsyncFunction]",n="[object Function]",s="[object GeneratorFunction]",i="[object Proxy]";function a(o){if(!e(o))return!1;var u=t(o);return u==n||u==s||u==r||u==i}return xh=a,xh}var Ah,hC;function r7(){if(hC)return Ah;hC=1;var t=tn(),e=t["__core-js_shared__"];return Ah=e,Ah}var Oh,mC;function n7(){if(mC)return Oh;mC=1;var t=r7(),e=(function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!e&&e in n}return Oh=r,Oh}var Ch,gC;function SF(){if(gC)return Ch;gC=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Ch=r,Ch}var Rh,yC;function s7(){if(yC)return Rh;yC=1;var t=Eu(),e=n7(),r=rn(),n=SF(),s=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,u=a.toString,l=o.hasOwnProperty,c=RegExp("^"+u.call(l).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(h){if(!r(h)||e(h))return!1;var d=t(h)?c:i;return d.test(n(h))}return Rh=p,Rh}var Th,vC;function i7(){if(vC)return Th;vC=1;function t(e,r){return e?.[r]}return Th=t,Th}var Ih,bC;function aa(){if(bC)return Ih;bC=1;var t=s7(),e=i7();function r(n,s){var i=e(n,s);return t(i)?i:void 0}return Ih=r,Ih}var kh,EC;function P_(){if(EC)return kh;EC=1;var t=aa(),e=tn(),r=t(e,"Map");return kh=r,kh}var Ph,SC;function mf(){if(SC)return Ph;SC=1;var t=aa(),e=t(Object,"create");return Ph=e,Ph}var jh,_C;function a7(){if(_C)return jh;_C=1;var t=mf();function e(){this.__data__=t?t(null):{},this.size=0}return jh=e,jh}var Nh,wC;function o7(){if(wC)return Nh;wC=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return Nh=t,Nh}var Mh,xC;function u7(){if(xC)return Mh;xC=1;var t=mf(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function s(i){var a=this.__data__;if(t){var o=a[i];return o===e?void 0:o}return n.call(a,i)?a[i]:void 0}return Mh=s,Mh}var Dh,AC;function l7(){if(AC)return Dh;AC=1;var t=mf(),e=Object.prototype,r=e.hasOwnProperty;function n(s){var i=this.__data__;return t?i[s]!==void 0:r.call(i,s)}return Dh=n,Dh}var Fh,OC;function c7(){if(OC)return Fh;OC=1;var t=mf(),e="__lodash_hash_undefined__";function r(n,s){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=t&&s===void 0?e:s,this}return Fh=r,Fh}var qh,CC;function f7(){if(CC)return qh;CC=1;var t=a7(),e=o7(),r=u7(),n=l7(),s=c7();function i(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var l=a[o];this.set(l[0],l[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=s,qh=i,qh}var Bh,RC;function p7(){if(RC)return Bh;RC=1;var t=f7(),e=hf(),r=P_();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return Bh=n,Bh}var $h,TC;function d7(){if(TC)return $h;TC=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return $h=t,$h}var Lh,IC;function gf(){if(IC)return Lh;IC=1;var t=d7();function e(r,n){var s=r.__data__;return t(n)?s[typeof n=="string"?"string":"hash"]:s.map}return Lh=e,Lh}var Uh,kC;function h7(){if(kC)return Uh;kC=1;var t=gf();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return Uh=e,Uh}var Vh,PC;function m7(){if(PC)return Vh;PC=1;var t=gf();function e(r){return t(this,r).get(r)}return Vh=e,Vh}var zh,jC;function g7(){if(jC)return zh;jC=1;var t=gf();function e(r){return t(this,r).has(r)}return zh=e,zh}var Wh,NC;function y7(){if(NC)return Wh;NC=1;var t=gf();function e(r,n){var s=t(this,r),i=s.size;return s.set(r,n),this.size+=s.size==i?0:1,this}return Wh=e,Wh}var Jh,MC;function j_(){if(MC)return Jh;MC=1;var t=p7(),e=h7(),r=m7(),n=g7(),s=y7();function i(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var l=a[o];this.set(l[0],l[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=s,Jh=i,Jh}var Hh,DC;function v7(){if(DC)return Hh;DC=1;var t=hf(),e=P_(),r=j_(),n=200;function s(i,a){var o=this.__data__;if(o instanceof t){var u=o.__data__;if(!e||u.length<n-1)return u.push([i,a]),this.size=++o.size,this;o=this.__data__=new r(u)}return o.set(i,a),this.size=o.size,this}return Hh=s,Hh}var Kh,FC;function yf(){if(FC)return Kh;FC=1;var t=hf(),e=Y5(),r=X5(),n=Z5(),s=Q5(),i=v7();function a(o){var u=this.__data__=new t(o);this.size=u.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=s,a.prototype.set=i,Kh=a,Kh}var Gh,qC;function _F(){if(qC)return Gh;qC=1;var t=aa(),e=(function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Gh=e,Gh}var Yh,BC;function N_(){if(BC)return Yh;BC=1;var t=_F();function e(r,n,s){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:s,writable:!0}):r[n]=s}return Yh=e,Yh}var Xh,$C;function wF(){if($C)return Xh;$C=1;var t=N_(),e=to();function r(n,s,i){(i!==void 0&&!e(n[s],i)||i===void 0&&!(s in n))&&t(n,s,i)}return Xh=r,Xh}var Zh,LC;function b7(){if(LC)return Zh;LC=1;function t(e){return function(r,n,s){for(var i=-1,a=Object(r),o=s(r),u=o.length;u--;){var l=o[e?u:++i];if(n(a[l],l,a)===!1)break}return r}}return Zh=t,Zh}var Qh,UC;function xF(){if(UC)return Qh;UC=1;var t=b7(),e=t();return Qh=e,Qh}var Fo={exports:{}};Fo.exports;var VC;function AF(){return VC||(VC=1,(function(t,e){var r=tn(),n=e&&!e.nodeType&&e,s=n&&!0&&t&&!t.nodeType&&t,i=s&&s.exports===n,a=i?r.Buffer:void 0,o=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var p=l.length,h=o?o(p):new l.constructor(p);return l.copy(h),h}t.exports=u})(Fo,Fo.exports)),Fo.exports}var em,zC;function OF(){if(zC)return em;zC=1;var t=tn(),e=t.Uint8Array;return em=e,em}var tm,WC;function M_(){if(WC)return tm;WC=1;var t=OF();function e(r){var n=new r.constructor(r.byteLength);return new t(n).set(new t(r)),n}return tm=e,tm}var rm,JC;function CF(){if(JC)return rm;JC=1;var t=M_();function e(r,n){var s=n?t(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.length)}return rm=e,rm}var nm,HC;function Su(){if(HC)return nm;HC=1;function t(e,r){var n=-1,s=e.length;for(r||(r=Array(s));++n<s;)r[n]=e[n];return r}return nm=t,nm}var sm,KC;function vf(){if(KC)return sm;KC=1;var t=rn(),e=Object.create,r=(function(){function n(){}return function(s){if(!t(s))return{};if(e)return e(s);n.prototype=s;var i=new n;return n.prototype=void 0,i}})();return sm=r,sm}var im,GC;function RF(){if(GC)return im;GC=1;function t(e,r){return function(n){return e(r(n))}}return im=t,im}var am,YC;function D_(){if(YC)return am;YC=1;var t=RF(),e=t(Object.getPrototypeOf,Object);return am=e,am}var om,XC;function bf(){if(XC)return om;XC=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,s=typeof n=="function"&&n.prototype||t;return r===s}return om=e,om}var um,ZC;function TF(){if(ZC)return um;ZC=1;var t=vf(),e=D_(),r=bf();function n(s){return typeof s.constructor=="function"&&!r(s)?t(e(s)):{}}return um=n,um}var lm,QC;function nn(){if(QC)return lm;QC=1;function t(e){return e!=null&&typeof e=="object"}return lm=t,lm}var cm,eR;function E7(){if(eR)return cm;eR=1;var t=Ts(),e=nn(),r="[object Arguments]";function n(s){return e(s)&&t(s)==r}return cm=n,cm}var fm,tR;function _u(){if(tR)return fm;tR=1;var t=E7(),e=nn(),r=Object.prototype,n=r.hasOwnProperty,s=r.propertyIsEnumerable,i=t((function(){return arguments})())?t:function(a){return e(a)&&n.call(a,"callee")&&!s.call(a,"callee")};return fm=i,fm}var pm,rR;function Cr(){if(rR)return pm;rR=1;var t=Array.isArray;return pm=t,pm}var dm,nR;function F_(){if(nR)return dm;nR=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return dm=e,dm}var hm,sR;function oa(){if(sR)return hm;sR=1;var t=Eu(),e=F_();function r(n){return n!=null&&e(n.length)&&!t(n)}return hm=r,hm}var mm,iR;function S7(){if(iR)return mm;iR=1;var t=oa(),e=nn();function r(n){return e(n)&&t(n)}return mm=r,mm}var qo={exports:{}},gm,aR;function _7(){if(aR)return gm;aR=1;function t(){return!1}return gm=t,gm}qo.exports;var oR;function wu(){return oR||(oR=1,(function(t,e){var r=tn(),n=_7(),s=e&&!e.nodeType&&e,i=s&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===s,o=a?r.Buffer:void 0,u=o?o.isBuffer:void 0,l=u||n;t.exports=l})(qo,qo.exports)),qo.exports}var ym,uR;function Ef(){if(uR)return ym;uR=1;var t=Ts(),e=D_(),r=nn(),n="[object Object]",s=Function.prototype,i=Object.prototype,a=s.toString,o=i.hasOwnProperty,u=a.call(Object);function l(c){if(!r(c)||t(c)!=n)return!1;var p=e(c);if(p===null)return!0;var h=o.call(p,"constructor")&&p.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==u}return ym=l,ym}var vm,lR;function w7(){if(lR)return vm;lR=1;var t=Ts(),e=F_(),r=nn(),n="[object Arguments]",s="[object Array]",i="[object Boolean]",a="[object Date]",o="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",p="[object Object]",h="[object RegExp]",d="[object Set]",g="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",b="[object Float32Array]",_="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",T="[object Uint8Array]",k="[object Uint8ClampedArray]",P="[object Uint16Array]",F="[object Uint32Array]",R={};R[b]=R[_]=R[w]=R[S]=R[A]=R[T]=R[k]=R[P]=R[F]=!0,R[n]=R[s]=R[v]=R[i]=R[E]=R[a]=R[o]=R[u]=R[l]=R[c]=R[p]=R[h]=R[d]=R[g]=R[y]=!1;function $(M){return r(M)&&e(M.length)&&!!R[t(M)]}return vm=$,vm}var bm,cR;function q_(){if(cR)return bm;cR=1;function t(e){return function(r){return e(r)}}return bm=t,bm}var Bo={exports:{}};Bo.exports;var fR;function B_(){return fR||(fR=1,(function(t,e){var r=EF(),n=e&&!e.nodeType&&e,s=n&&!0&&t&&!t.nodeType&&t,i=s&&s.exports===n,a=i&&r.process,o=(function(){try{var u=s&&s.require&&s.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}})();t.exports=o})(Bo,Bo.exports)),Bo.exports}var Em,pR;function Sf(){if(pR)return Em;pR=1;var t=w7(),e=q_(),r=B_(),n=r&&r.isTypedArray,s=n?e(n):t;return Em=s,Em}var Sm,dR;function IF(){if(dR)return Sm;dR=1;function t(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}return Sm=t,Sm}var _m,hR;function _f(){if(hR)return _m;hR=1;var t=N_(),e=to(),r=Object.prototype,n=r.hasOwnProperty;function s(i,a,o){var u=i[a];(!(n.call(i,a)&&e(u,o))||o===void 0&&!(a in i))&&t(i,a,o)}return _m=s,_m}var wm,mR;function no(){if(mR)return wm;mR=1;var t=_f(),e=N_();function r(n,s,i,a){var o=!i;i||(i={});for(var u=-1,l=s.length;++u<l;){var c=s[u],p=a?a(i[c],n[c],c,i,n):void 0;p===void 0&&(p=n[c]),o?e(i,c,p):t(i,c,p)}return i}return wm=r,wm}var xm,gR;function x7(){if(gR)return xm;gR=1;function t(e,r){for(var n=-1,s=Array(e);++n<e;)s[n]=r(n);return s}return xm=t,xm}var Am,yR;function xu(){if(yR)return Am;yR=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,s){var i=typeof n;return s=s??t,!!s&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<s}return Am=r,Am}var Om,vR;function kF(){if(vR)return Om;vR=1;var t=x7(),e=_u(),r=Cr(),n=wu(),s=xu(),i=Sf(),a=Object.prototype,o=a.hasOwnProperty;function u(l,c){var p=r(l),h=!p&&e(l),d=!p&&!h&&n(l),g=!p&&!h&&!d&&i(l),y=p||h||d||g,v=y?t(l.length,String):[],E=v.length;for(var b in l)(c||o.call(l,b))&&!(y&&(b=="length"||d&&(b=="offset"||b=="parent")||g&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||s(b,E)))&&v.push(b);return v}return Om=u,Om}var Cm,bR;function A7(){if(bR)return Cm;bR=1;function t(e){var r=[];if(e!=null)for(var n in Object(e))r.push(n);return r}return Cm=t,Cm}var Rm,ER;function O7(){if(ER)return Rm;ER=1;var t=rn(),e=bf(),r=A7(),n=Object.prototype,s=n.hasOwnProperty;function i(a){if(!t(a))return r(a);var o=e(a),u=[];for(var l in a)l=="constructor"&&(o||!s.call(a,l))||u.push(l);return u}return Rm=i,Rm}var Tm,SR;function Au(){if(SR)return Tm;SR=1;var t=kF(),e=O7(),r=oa();function n(s){return r(s)?t(s,!0):e(s)}return Tm=n,Tm}var Im,_R;function C7(){if(_R)return Im;_R=1;var t=no(),e=Au();function r(n){return t(n,e(n))}return Im=r,Im}var km,wR;function R7(){if(wR)return km;wR=1;var t=wF(),e=AF(),r=CF(),n=Su(),s=TF(),i=_u(),a=Cr(),o=S7(),u=wu(),l=Eu(),c=rn(),p=Ef(),h=Sf(),d=IF(),g=C7();function y(v,E,b,_,w,S,A){var T=d(v,b),k=d(E,b),P=A.get(k);if(P){t(v,b,P);return}var F=S?S(T,k,b+"",v,E,A):void 0,R=F===void 0;if(R){var $=a(k),M=!$&&u(k),K=!$&&!M&&h(k);F=k,$||M||K?a(T)?F=T:o(T)?F=n(T):M?(R=!1,F=e(k,!0)):K?(R=!1,F=r(k,!0)):F=[]:p(k)||i(k)?(F=T,i(T)?F=g(T):(!c(T)||l(T))&&(F=s(k))):R=!1}R&&(A.set(k,F),w(F,k,_,S,A),A.delete(k)),t(v,b,F)}return km=y,km}var Pm,xR;function T7(){if(xR)return Pm;xR=1;var t=yf(),e=wF(),r=xF(),n=R7(),s=rn(),i=Au(),a=IF();function o(u,l,c,p,h){u!==l&&r(l,function(d,g){if(h||(h=new t),s(d))n(u,l,g,c,o,p,h);else{var y=p?p(a(u,g),d,g+"",u,l,h):void 0;y===void 0&&(y=d),e(u,g,y)}},i)}return Pm=o,Pm}var jm,AR;function Ou(){if(AR)return jm;AR=1;function t(e){return e}return jm=t,jm}var Nm,OR;function $_(){if(OR)return Nm;OR=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return Nm=t,Nm}var Mm,CR;function PF(){if(CR)return Mm;CR=1;var t=$_(),e=Math.max;function r(n,s,i){return s=e(s===void 0?n.length-1:s,0),function(){for(var a=arguments,o=-1,u=e(a.length-s,0),l=Array(u);++o<u;)l[o]=a[s+o];o=-1;for(var c=Array(s+1);++o<s;)c[o]=a[o];return c[s]=i(l),t(n,this,c)}}return Mm=r,Mm}var Dm,RR;function jF(){if(RR)return Dm;RR=1;function t(e){return function(){return e}}return Dm=t,Dm}var Fm,TR;function I7(){if(TR)return Fm;TR=1;var t=jF(),e=_F(),r=Ou(),n=e?function(s,i){return e(s,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:r;return Fm=n,Fm}var qm,IR;function NF(){if(IR)return qm;IR=1;var t=800,e=16,r=Date.now;function n(s){var i=0,a=0;return function(){var o=r(),u=e-(o-a);if(a=o,u>0){if(++i>=t)return arguments[0]}else i=0;return s.apply(void 0,arguments)}}return qm=n,qm}var Bm,kR;function L_(){if(kR)return Bm;kR=1;var t=I7(),e=NF(),r=e(t);return Bm=r,Bm}var $m,PR;function k7(){if(PR)return $m;PR=1;var t=Ou(),e=PF(),r=L_();function n(s,i){return r(e(s,i,t),s+"")}return $m=n,$m}var Lm,jR;function MF(){if(jR)return Lm;jR=1;var t=to(),e=oa(),r=xu(),n=rn();function s(i,a,o){if(!n(o))return!1;var u=typeof a;return(u=="number"?e(o)&&r(a,o.length):u=="string"&&a in o)?t(o[a],i):!1}return Lm=s,Lm}var Um,NR;function P7(){if(NR)return Um;NR=1;var t=k7(),e=MF();function r(n){return t(function(s,i){var a=-1,o=i.length,u=o>1?i[o-1]:void 0,l=o>2?i[2]:void 0;for(u=n.length>3&&typeof u=="function"?(o--,u):void 0,l&&e(i[0],i[1],l)&&(u=o<3?void 0:u,o=1),s=Object(s);++a<o;){var c=i[a];c&&n(s,c,a,u)}return s})}return Um=r,Um}var Vm,MR;function j7(){if(MR)return Vm;MR=1;var t=T7(),e=P7(),r=e(function(n,s,i){t(n,s,i)});return Vm=r,Vm}var N7=j7();const M7=ot(N7);var zm,DR;function U_(){if(DR)return zm;DR=1;function t(e,r){for(var n=-1,s=e==null?0:e.length,i=Array(s);++n<s;)i[n]=r(e[n],n,e);return i}return zm=t,zm}var Wm,FR;function Cu(){if(FR)return Wm;FR=1;var t=Ts(),e=nn(),r="[object Symbol]";function n(s){return typeof s=="symbol"||e(s)&&t(s)==r}return Wm=n,Wm}var Jm,qR;function D7(){if(qR)return Jm;qR=1;var t=ro(),e=U_(),r=Cr(),n=Cu(),s=t?t.prototype:void 0,i=s?s.toString:void 0;function a(o){if(typeof o=="string")return o;if(r(o))return e(o,a)+"";if(n(o))return i?i.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}return Jm=a,Jm}var Hm,BR;function Qs(){if(BR)return Hm;BR=1;var t=D7();function e(r){return r==null?"":t(r)}return Hm=e,Hm}var Km,$R;function DF(){if($R)return Km;$R=1;function t(e,r,n){var s=-1,i=e.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var a=Array(i);++s<i;)a[s]=e[s+r];return a}return Km=t,Km}var Gm,LR;function F7(){if(LR)return Gm;LR=1;var t=DF();function e(r,n,s){var i=r.length;return s=s===void 0?i:s,!n&&s>=i?r:t(r,n,s)}return Gm=e,Gm}var Ym,UR;function FF(){if(UR)return Ym;UR=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=e+r+n,i="\\ufe0e\\ufe0f",a="\\u200d",o=RegExp("["+a+t+s+i+"]");function u(l){return o.test(l)}return Ym=u,Ym}var Xm,VR;function q7(){if(VR)return Xm;VR=1;function t(e){return e.split("")}return Xm=t,Xm}var Zm,zR;function B7(){if(zR)return Zm;zR=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=e+r+n,i="\\ufe0e\\ufe0f",a="["+t+"]",o="["+s+"]",u="\\ud83c[\\udffb-\\udfff]",l="(?:"+o+"|"+u+")",c="[^"+t+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",g=l+"?",y="["+i+"]?",v="(?:"+d+"(?:"+[c,p,h].join("|")+")"+y+g+")*",E=y+g+v,b="(?:"+[c+o+"?",o,p,h,a].join("|")+")",_=RegExp(u+"(?="+u+")|"+b+E,"g");function w(S){return S.match(_)||[]}return Zm=w,Zm}var Qm,WR;function $7(){if(WR)return Qm;WR=1;var t=q7(),e=FF(),r=B7();function n(s){return e(s)?r(s):t(s)}return Qm=n,Qm}var eg,JR;function L7(){if(JR)return eg;JR=1;var t=F7(),e=FF(),r=$7(),n=Qs();function s(i){return function(a){a=n(a);var o=e(a)?r(a):void 0,u=o?o[0]:a.charAt(0),l=o?t(o,1).join(""):a.slice(1);return u[i]()+l}}return eg=s,eg}var tg,HR;function qF(){if(HR)return tg;HR=1;var t=L7(),e=t("toUpperCase");return tg=e,tg}var rg,KR;function U7(){if(KR)return rg;KR=1;var t=Qs(),e=qF();function r(n){return e(t(n).toLowerCase())}return rg=r,rg}var ng,GR;function BF(){if(GR)return ng;GR=1;function t(e,r,n,s){var i=-1,a=e==null?0:e.length;for(s&&a&&(n=e[++i]);++i<a;)n=r(n,e[i],i,e);return n}return ng=t,ng}var sg,YR;function V7(){if(YR)return sg;YR=1;function t(e){return function(r){return e?.[r]}}return sg=t,sg}var ig,XR;function z7(){if(XR)return ig;XR=1;var t=V7(),e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},r=t(e);return ig=r,ig}var ag,ZR;function W7(){if(ZR)return ag;ZR=1;var t=z7(),e=Qs(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",a=n+s+i,o="["+a+"]",u=RegExp(o,"g");function l(c){return c=e(c),c&&c.replace(r,t).replace(u,"")}return ag=l,ag}var og,QR;function J7(){if(QR)return og;QR=1;var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(r){return r.match(t)||[]}return og=e,og}var ug,eT;function H7(){if(eT)return ug;eT=1;var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(r){return t.test(r)}return ug=e,ug}var lg,tT;function K7(){if(tT)return lg;tT=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=e+r+n,i="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",o="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",l="\\u2000-\\u206f",c=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\ufe0e\\ufe0f",d=o+u+l+c,g="['’]",y="["+d+"]",v="["+s+"]",E="\\d+",b="["+i+"]",_="["+a+"]",w="[^"+t+d+E+i+a+p+"]",S="\\ud83c[\\udffb-\\udfff]",A="(?:"+v+"|"+S+")",T="[^"+t+"]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",P="[\\ud800-\\udbff][\\udc00-\\udfff]",F="["+p+"]",R="\\u200d",$="(?:"+_+"|"+w+")",M="(?:"+F+"|"+w+")",K="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",ee="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",G=A+"?",Z="["+h+"]?",X="(?:"+R+"(?:"+[T,k,P].join("|")+")"+Z+G+")*",te="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",le="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",se=Z+G+X,ue="(?:"+[b,k,P].join("|")+")"+se,ve=RegExp([F+"?"+_+"+"+K+"(?="+[y,F,"$"].join("|")+")",M+"+"+ee+"(?="+[y,F+$,"$"].join("|")+")",F+"?"+$+"+"+K,F+"+"+ee,le,te,E,ue].join("|"),"g");function he(re){return re.match(ve)||[]}return lg=he,lg}var cg,rT;function G7(){if(rT)return cg;rT=1;var t=J7(),e=H7(),r=Qs(),n=K7();function s(i,a,o){return i=r(i),a=o?void 0:a,a===void 0?e(i)?n(i):t(i):i.match(a)||[]}return cg=s,cg}var fg,nT;function Y7(){if(nT)return fg;nT=1;var t=BF(),e=W7(),r=G7(),n="['’]",s=RegExp(n,"g");function i(a){return function(o){return t(r(e(o).replace(s,"")),a,"")}}return fg=i,fg}var pg,sT;function X7(){if(sT)return pg;sT=1;var t=U7(),e=Y7(),r=e(function(n,s,i){return s=s.toLowerCase(),n+(i?t(s):s)});return pg=r,pg}X7();qF();var dg,iT;function $F(){if(iT)return dg;iT=1;var t=j_(),e="Expected a function";function r(n,s){if(typeof n!="function"||s!=null&&typeof s!="function")throw new TypeError(e);var i=function(){var a=arguments,o=s?s.apply(this,a):a[0],u=i.cache;if(u.has(o))return u.get(o);var l=n.apply(this,a);return i.cache=u.set(o,l)||u,l};return i.cache=new(r.Cache||t),i}return r.Cache=t,dg=r,dg}var Z7=$F();const Q7=ot(Z7);var hg,aT;function eV(){if(aT)return hg;aT=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return hg=e,hg}var mg,oT;function tV(){if(oT)return mg;oT=1;function t(e){return this.__data__.has(e)}return mg=t,mg}var gg,uT;function rV(){if(uT)return gg;uT=1;var t=j_(),e=eV(),r=tV();function n(s){var i=-1,a=s==null?0:s.length;for(this.__data__=new t;++i<a;)this.add(s[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,gg=n,gg}var yg,lT;function LF(){if(lT)return yg;lT=1;function t(e,r){for(var n=-1,s=e==null?0:e.length;++n<s;)if(r(e[n],n,e))return!0;return!1}return yg=t,yg}var vg,cT;function nV(){if(cT)return vg;cT=1;function t(e,r){return e.has(r)}return vg=t,vg}var bg,fT;function UF(){if(fT)return bg;fT=1;var t=rV(),e=LF(),r=nV(),n=1,s=2;function i(a,o,u,l,c,p){var h=u&n,d=a.length,g=o.length;if(d!=g&&!(h&&g>d))return!1;var y=p.get(a),v=p.get(o);if(y&&v)return y==o&&v==a;var E=-1,b=!0,_=u&s?new t:void 0;for(p.set(a,o),p.set(o,a);++E<d;){var w=a[E],S=o[E];if(l)var A=h?l(S,w,E,o,a,p):l(w,S,E,a,o,p);if(A!==void 0){if(A)continue;b=!1;break}if(_){if(!e(o,function(T,k){if(!r(_,k)&&(w===T||c(w,T,u,l,p)))return _.push(k)})){b=!1;break}}else if(!(w===S||c(w,S,u,l,p))){b=!1;break}}return p.delete(a),p.delete(o),b}return bg=i,bg}var Eg,pT;function sV(){if(pT)return Eg;pT=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(s,i){n[++r]=[i,s]}),n}return Eg=t,Eg}var Sg,dT;function iV(){if(dT)return Sg;dT=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(s){n[++r]=s}),n}return Sg=t,Sg}var _g,hT;function aV(){if(hT)return _g;hT=1;var t=ro(),e=OF(),r=to(),n=UF(),s=sV(),i=iV(),a=1,o=2,u="[object Boolean]",l="[object Date]",c="[object Error]",p="[object Map]",h="[object Number]",d="[object RegExp]",g="[object Set]",y="[object String]",v="[object Symbol]",E="[object ArrayBuffer]",b="[object DataView]",_=t?t.prototype:void 0,w=_?_.valueOf:void 0;function S(A,T,k,P,F,R,$){switch(k){case b:if(A.byteLength!=T.byteLength||A.byteOffset!=T.byteOffset)return!1;A=A.buffer,T=T.buffer;case E:return!(A.byteLength!=T.byteLength||!R(new e(A),new e(T)));case u:case l:case h:return r(+A,+T);case c:return A.name==T.name&&A.message==T.message;case d:case y:return A==T+"";case p:var M=s;case g:var K=P&a;if(M||(M=i),A.size!=T.size&&!K)return!1;var ee=$.get(A);if(ee)return ee==T;P|=o,$.set(A,T);var G=n(M(A),M(T),P,F,R,$);return $.delete(A),G;case v:if(w)return w.call(A)==w.call(T)}return!1}return _g=S,_g}var wg,mT;function V_(){if(mT)return wg;mT=1;function t(e,r){for(var n=-1,s=r.length,i=e.length;++n<s;)e[i+n]=r[n];return e}return wg=t,wg}var xg,gT;function VF(){if(gT)return xg;gT=1;var t=V_(),e=Cr();function r(n,s,i){var a=s(n);return e(n)?a:t(a,i(n))}return xg=r,xg}var Ag,yT;function oV(){if(yT)return Ag;yT=1;function t(e,r){for(var n=-1,s=e==null?0:e.length,i=0,a=[];++n<s;){var o=e[n];r(o,n,e)&&(a[i++]=o)}return a}return Ag=t,Ag}var Og,vT;function zF(){if(vT)return Og;vT=1;function t(){return[]}return Og=t,Og}var Cg,bT;function z_(){if(bT)return Cg;bT=1;var t=oV(),e=zF(),r=Object.prototype,n=r.propertyIsEnumerable,s=Object.getOwnPropertySymbols,i=s?function(a){return a==null?[]:(a=Object(a),t(s(a),function(o){return n.call(a,o)}))}:e;return Cg=i,Cg}var Rg,ET;function uV(){if(ET)return Rg;ET=1;var t=RF(),e=t(Object.keys,Object);return Rg=e,Rg}var Tg,ST;function W_(){if(ST)return Tg;ST=1;var t=bf(),e=uV(),r=Object.prototype,n=r.hasOwnProperty;function s(i){if(!t(i))return e(i);var a=[];for(var o in Object(i))n.call(i,o)&&o!="constructor"&&a.push(o);return a}return Tg=s,Tg}var Ig,_T;function so(){if(_T)return Ig;_T=1;var t=kF(),e=W_(),r=oa();function n(s){return r(s)?t(s):e(s)}return Ig=n,Ig}var kg,wT;function WF(){if(wT)return kg;wT=1;var t=VF(),e=z_(),r=so();function n(s){return t(s,r,e)}return kg=n,kg}var Pg,xT;function lV(){if(xT)return Pg;xT=1;var t=WF(),e=1,r=Object.prototype,n=r.hasOwnProperty;function s(i,a,o,u,l,c){var p=o&e,h=t(i),d=h.length,g=t(a),y=g.length;if(d!=y&&!p)return!1;for(var v=d;v--;){var E=h[v];if(!(p?E in a:n.call(a,E)))return!1}var b=c.get(i),_=c.get(a);if(b&&_)return b==a&&_==i;var w=!0;c.set(i,a),c.set(a,i);for(var S=p;++v<d;){E=h[v];var A=i[E],T=a[E];if(u)var k=p?u(T,A,E,a,i,c):u(A,T,E,i,a,c);if(!(k===void 0?A===T||l(A,T,o,u,c):k)){w=!1;break}S||(S=E=="constructor")}if(w&&!S){var P=i.constructor,F=a.constructor;P!=F&&"constructor"in i&&"constructor"in a&&!(typeof P=="function"&&P instanceof P&&typeof F=="function"&&F instanceof F)&&(w=!1)}return c.delete(i),c.delete(a),w}return Pg=s,Pg}var jg,AT;function cV(){if(AT)return jg;AT=1;var t=aa(),e=tn(),r=t(e,"DataView");return jg=r,jg}var Ng,OT;function fV(){if(OT)return Ng;OT=1;var t=aa(),e=tn(),r=t(e,"Promise");return Ng=r,Ng}var Mg,CT;function pV(){if(CT)return Mg;CT=1;var t=aa(),e=tn(),r=t(e,"Set");return Mg=r,Mg}var Dg,RT;function JF(){if(RT)return Dg;RT=1;var t=aa(),e=tn(),r=t(e,"WeakMap");return Dg=r,Dg}var Fg,TT;function io(){if(TT)return Fg;TT=1;var t=cV(),e=P_(),r=fV(),n=pV(),s=JF(),i=Ts(),a=SF(),o="[object Map]",u="[object Object]",l="[object Promise]",c="[object Set]",p="[object WeakMap]",h="[object DataView]",d=a(t),g=a(e),y=a(r),v=a(n),E=a(s),b=i;return(t&&b(new t(new ArrayBuffer(1)))!=h||e&&b(new e)!=o||r&&b(r.resolve())!=l||n&&b(new n)!=c||s&&b(new s)!=p)&&(b=function(_){var w=i(_),S=w==u?_.constructor:void 0,A=S?a(S):"";if(A)switch(A){case d:return h;case g:return o;case y:return l;case v:return c;case E:return p}return w}),Fg=b,Fg}var qg,IT;function dV(){if(IT)return qg;IT=1;var t=yf(),e=UF(),r=aV(),n=lV(),s=io(),i=Cr(),a=wu(),o=Sf(),u=1,l="[object Arguments]",c="[object Array]",p="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function g(y,v,E,b,_,w){var S=i(y),A=i(v),T=S?c:s(y),k=A?c:s(v);T=T==l?p:T,k=k==l?p:k;var P=T==p,F=k==p,R=T==k;if(R&&a(y)){if(!a(v))return!1;S=!0,P=!1}if(R&&!P)return w||(w=new t),S||o(y)?e(y,v,E,b,_,w):r(y,v,T,E,b,_,w);if(!(E&u)){var $=P&&d.call(y,"__wrapped__"),M=F&&d.call(v,"__wrapped__");if($||M){var K=$?y.value():y,ee=M?v.value():v;return w||(w=new t),_(K,ee,E,b,w)}}return R?(w||(w=new t),n(y,v,E,b,_,w)):!1}return qg=g,qg}var Bg,kT;function J_(){if(kT)return Bg;kT=1;var t=dV(),e=nn();function r(n,s,i,a,o){return n===s?!0:n==null||s==null||!e(n)&&!e(s)?n!==n&&s!==s:t(n,s,i,a,r,o)}return Bg=r,Bg}var $g,PT;function hV(){if(PT)return $g;PT=1;var t=yf(),e=J_(),r=1,n=2;function s(i,a,o,u){var l=o.length,c=l,p=!u;if(i==null)return!c;for(i=Object(i);l--;){var h=o[l];if(p&&h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++l<c;){h=o[l];var d=h[0],g=i[d],y=h[1];if(p&&h[2]){if(g===void 0&&!(d in i))return!1}else{var v=new t;if(u)var E=u(g,y,d,i,a,v);if(!(E===void 0?e(y,g,r|n,u,v):E))return!1}}return!0}return $g=s,$g}var Lg,jT;function HF(){if(jT)return Lg;jT=1;var t=rn();function e(r){return r===r&&!t(r)}return Lg=e,Lg}var Ug,NT;function mV(){if(NT)return Ug;NT=1;var t=HF(),e=so();function r(n){for(var s=e(n),i=s.length;i--;){var a=s[i],o=n[a];s[i]=[a,o,t(o)]}return s}return Ug=r,Ug}var Vg,MT;function KF(){if(MT)return Vg;MT=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return Vg=t,Vg}var zg,DT;function gV(){if(DT)return zg;DT=1;var t=hV(),e=mV(),r=KF();function n(s){var i=e(s);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(a){return a===s||t(a,s,i)}}return zg=n,zg}var Wg,FT;function H_(){if(FT)return Wg;FT=1;var t=Cr(),e=Cu(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function s(i,a){if(t(i))return!1;var o=typeof i;return o=="number"||o=="symbol"||o=="boolean"||i==null||e(i)?!0:n.test(i)||!r.test(i)||a!=null&&i in Object(a)}return Wg=s,Wg}var Jg,qT;function yV(){if(qT)return Jg;qT=1;var t=$F(),e=500;function r(n){var s=t(n,function(a){return i.size===e&&i.clear(),a}),i=s.cache;return s}return Jg=r,Jg}var Hg,BT;function GF(){if(BT)return Hg;BT=1;var t=yV(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(s){var i=[];return s.charCodeAt(0)===46&&i.push(""),s.replace(e,function(a,o,u,l){i.push(u?l.replace(r,"$1"):o||a)}),i});return Hg=n,Hg}var Kg,$T;function Ru(){if($T)return Kg;$T=1;var t=Cr(),e=H_(),r=GF(),n=Qs();function s(i,a){return t(i)?i:e(i,a)?[i]:r(n(i))}return Kg=s,Kg}var Gg,LT;function ua(){if(LT)return Gg;LT=1;var t=Cu();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Gg=e,Gg}var Yg,UT;function K_(){if(UT)return Yg;UT=1;var t=Ru(),e=ua();function r(n,s){s=t(s,n);for(var i=0,a=s.length;n!=null&&i<a;)n=n[e(s[i++])];return i&&i==a?n:void 0}return Yg=r,Yg}var Xg,VT;function YF(){if(VT)return Xg;VT=1;var t=K_();function e(r,n,s){var i=r==null?void 0:t(r,n);return i===void 0?s:i}return Xg=e,Xg}var Zg,zT;function vV(){if(zT)return Zg;zT=1;function t(e,r){return e!=null&&r in Object(e)}return Zg=t,Zg}var Qg,WT;function XF(){if(WT)return Qg;WT=1;var t=Ru(),e=_u(),r=Cr(),n=xu(),s=F_(),i=ua();function a(o,u,l){u=t(u,o);for(var c=-1,p=u.length,h=!1;++c<p;){var d=i(u[c]);if(!(h=o!=null&&l(o,d)))break;o=o[d]}return h||++c!=p?h:(p=o==null?0:o.length,!!p&&s(p)&&n(d,p)&&(r(o)||e(o)))}return Qg=a,Qg}var ey,JT;function bV(){if(JT)return ey;JT=1;var t=vV(),e=XF();function r(n,s){return n!=null&&e(n,s,t)}return ey=r,ey}var ty,HT;function EV(){if(HT)return ty;HT=1;var t=J_(),e=YF(),r=bV(),n=H_(),s=HF(),i=KF(),a=ua(),o=1,u=2;function l(c,p){return n(c)&&s(p)?i(a(c),p):function(h){var d=e(h,c);return d===void 0&&d===p?r(h,c):t(p,d,o|u)}}return ty=l,ty}var ry,KT;function SV(){if(KT)return ry;KT=1;function t(e){return function(r){return r?.[e]}}return ry=t,ry}var ny,GT;function _V(){if(GT)return ny;GT=1;var t=K_();function e(r){return function(n){return t(n,r)}}return ny=e,ny}var sy,YT;function wV(){if(YT)return sy;YT=1;var t=SV(),e=_V(),r=H_(),n=ua();function s(i){return r(i)?t(n(i)):e(i)}return sy=s,sy}var iy,XT;function Tu(){if(XT)return iy;XT=1;var t=gV(),e=EV(),r=Ou(),n=Cr(),s=wV();function i(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?e(a[0],a[1]):t(a):s(a)}return iy=i,iy}var ay,ZT;function xV(){if(ZT)return ay;ZT=1;var t=Tu(),e=oa(),r=so();function n(s){return function(i,a,o){var u=Object(i);if(!e(i)){var l=t(a,3);i=r(i),a=function(p){return l(u[p],p,u)}}var c=s(i,a,o);return c>-1?u[l?i[c]:c]:void 0}}return ay=n,ay}var oy,QT;function ZF(){if(QT)return oy;QT=1;function t(e,r,n,s){for(var i=e.length,a=n+(s?1:-1);s?a--:++a<i;)if(r(e[a],a,e))return a;return-1}return oy=t,oy}var uy,eI;function AV(){if(eI)return uy;eI=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return uy=e,uy}var ly,tI;function OV(){if(tI)return ly;tI=1;var t=AV(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return ly=r,ly}var cy,rI;function QF(){if(rI)return cy;rI=1;var t=OV(),e=rn(),r=Cu(),n=NaN,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(e(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=e(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=t(l);var p=i.test(l);return p||a.test(l)?o(l.slice(2),p?2:8):s.test(l)?n:+l}return cy=u,cy}var fy,nI;function CV(){if(nI)return fy;nI=1;var t=QF(),e=1/0,r=17976931348623157e292;function n(s){if(!s)return s===0?s:0;if(s=t(s),s===e||s===-e){var i=s<0?-1:1;return i*r}return s===s?s:0}return fy=n,fy}var py,sI;function G_(){if(sI)return py;sI=1;var t=CV();function e(r){var n=t(r),s=n%1;return n===n?s?n-s:n:0}return py=e,py}var dy,iI;function RV(){if(iI)return dy;iI=1;var t=ZF(),e=Tu(),r=G_(),n=Math.max;function s(i,a,o){var u=i==null?0:i.length;if(!u)return-1;var l=o==null?0:r(o);return l<0&&(l=n(u+l,0)),t(i,e(a,3),l)}return dy=s,dy}var hy,aI;function TV(){if(aI)return hy;aI=1;var t=xV(),e=RV(),r=t(e);return hy=r,hy}var IV=TV();const kV=ot(IV);var my,oI;function PV(){if(oI)return my;oI=1;var t=xF(),e=so();function r(n,s){return n&&t(n,s,e)}return my=r,my}var gy,uI;function jV(){if(uI)return gy;uI=1;var t=oa();function e(r,n){return function(s,i){if(s==null)return s;if(!t(s))return r(s,i);for(var a=s.length,o=n?a:-1,u=Object(s);(n?o--:++o<a)&&i(u[o],o,u)!==!1;);return s}}return gy=e,gy}var yy,lI;function eq(){if(lI)return yy;lI=1;var t=PV(),e=jV(),r=e(t);return yy=r,yy}var vy,cI;function NV(){if(cI)return vy;cI=1;var t=eq();function e(r,n){var s;return t(r,function(i,a,o){return s=n(i,a,o),!s}),!!s}return vy=e,vy}var by,fI;function MV(){if(fI)return by;fI=1;var t=LF(),e=Tu(),r=NV(),n=Cr(),s=MF();function i(a,o,u){var l=n(a)?t:r;return u&&s(a,o,u)&&(o=void 0),l(a,e(o,3))}return by=i,by}var DV=MV();const FV=ot(DV);var qV=to();const BV=ot(qV);var $V=Eu();const LV=ot($V);var _c={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */var UV=_c.exports,pI;function VV(){return pI||(pI=1,(function(t,e){(function(r,n){t.exports=n(r)})(typeof Lr<"u"?Lr:UV,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(s){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i=String(s),a=i.length,o=-1,u,l="",c=i.charCodeAt(0);++o<a;){if(u=i.charCodeAt(o),u==0){l+="�";continue}if(u>=1&&u<=31||u==127||o==0&&u>=48&&u<=57||o==1&&u>=48&&u<=57&&c==45){l+="\\"+u.toString(16)+" ";continue}if(o==0&&a==1&&u==45){l+="\\"+i.charAt(o);continue}if(u>=128||u==45||u==95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122){l+=i.charAt(o);continue}l+="\\"+i.charAt(o)}return l};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})})(_c)),_c.exports}var zV=VV();const WV=ot(zV);var Ey,dI;function JV(){return dI||(dI=1,Ey=function(e,r){if(r=r.split(":")[0],e=+e,!e)return!1;switch(r){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}),Ey}var sc={},hI;function HV(){if(hI)return sc;hI=1;var t=Object.prototype.hasOwnProperty,e;function r(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch{return null}}function n(a){try{return encodeURIComponent(a)}catch{return null}}function s(a){for(var o=/([^=?#&]+)=?([^&]*)/g,u={},l;l=o.exec(a);){var c=r(l[1]),p=r(l[2]);c===null||p===null||c in u||(u[c]=p)}return u}function i(a,o){o=o||"";var u=[],l,c;typeof o!="string"&&(o="?");for(c in a)if(t.call(a,c)){if(l=a[c],!l&&(l===null||l===e||isNaN(l))&&(l=""),c=n(c),l=n(l),c===null||l===null)continue;u.push(c+"="+l)}return u.length?o+u.join("&"):""}return sc.stringify=i,sc.parse=s,sc}var Sy,mI;function KV(){if(mI)return Sy;mI=1;var t=JV(),e=HV(),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,o=/^[a-zA-Z]:/;function u(b){return(b||"").toString().replace(r,"")}var l=[["#","hash"],["?","query"],function(_,w){return h(w.protocol)?_.replace(/\\/g,"/"):_},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],c={hash:1,query:1};function p(b){var _;typeof window<"u"?_=window:typeof Lr<"u"?_=Lr:typeof self<"u"?_=self:_={};var w=_.location||{};b=b||w;var S={},A=typeof b,T;if(b.protocol==="blob:")S=new y(unescape(b.pathname),{});else if(A==="string"){S=new y(b,{});for(T in c)delete S[T]}else if(A==="object"){for(T in b)T in c||(S[T]=b[T]);S.slashes===void 0&&(S.slashes=s.test(b.href))}return S}function h(b){return b==="file:"||b==="ftp:"||b==="http:"||b==="https:"||b==="ws:"||b==="wss:"}function d(b,_){b=u(b),b=b.replace(n,""),_=_||{};var w=a.exec(b),S=w[1]?w[1].toLowerCase():"",A=!!w[2],T=!!w[3],k=0,P;return A?T?(P=w[2]+w[3]+w[4],k=w[2].length+w[3].length):(P=w[2]+w[4],k=w[2].length):T?(P=w[3]+w[4],k=w[3].length):P=w[4],S==="file:"?k>=2&&(P=P.slice(2)):h(S)?P=w[4]:S?A&&(P=P.slice(2)):k>=2&&h(_.protocol)&&(P=w[4]),{protocol:S,slashes:A||h(S),slashesCount:k,rest:P}}function g(b,_){if(b==="")return _;for(var w=(_||"/").split("/").slice(0,-1).concat(b.split("/")),S=w.length,A=w[S-1],T=!1,k=0;S--;)w[S]==="."?w.splice(S,1):w[S]===".."?(w.splice(S,1),k++):k&&(S===0&&(T=!0),w.splice(S,1),k--);return T&&w.unshift(""),(A==="."||A==="..")&&w.push(""),w.join("/")}function y(b,_,w){if(b=u(b),b=b.replace(n,""),!(this instanceof y))return new y(b,_,w);var S,A,T,k,P,F,R=l.slice(),$=typeof _,M=this,K=0;for($!=="object"&&$!=="string"&&(w=_,_=null),w&&typeof w!="function"&&(w=e.parse),_=p(_),A=d(b||"",_),S=!A.protocol&&!A.slashes,M.slashes=A.slashes||S&&_.slashes,M.protocol=A.protocol||_.protocol||"",b=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||o.test(b))||!A.slashes&&(A.protocol||A.slashesCount<2||!h(M.protocol)))&&(R[3]=[/(.*)/,"pathname"]);K<R.length;K++){if(k=R[K],typeof k=="function"){b=k(b,M);continue}T=k[0],F=k[1],T!==T?M[F]=b:typeof T=="string"?(P=T==="@"?b.lastIndexOf(T):b.indexOf(T),~P&&(typeof k[2]=="number"?(M[F]=b.slice(0,P),b=b.slice(P+k[2])):(M[F]=b.slice(P),b=b.slice(0,P)))):(P=T.exec(b))&&(M[F]=P[1],b=b.slice(0,P.index)),M[F]=M[F]||S&&k[3]&&_[F]||"",k[4]&&(M[F]=M[F].toLowerCase())}w&&(M.query=w(M.query)),S&&_.slashes&&M.pathname.charAt(0)!=="/"&&(M.pathname!==""||_.pathname!=="")&&(M.pathname=g(M.pathname,_.pathname)),M.pathname.charAt(0)!=="/"&&h(M.protocol)&&(M.pathname="/"+M.pathname),t(M.port,M.protocol)||(M.host=M.hostname,M.port=""),M.username=M.password="",M.auth&&(P=M.auth.indexOf(":"),~P?(M.username=M.auth.slice(0,P),M.username=encodeURIComponent(decodeURIComponent(M.username)),M.password=M.auth.slice(P+1),M.password=encodeURIComponent(decodeURIComponent(M.password))):M.username=encodeURIComponent(decodeURIComponent(M.auth)),M.auth=M.password?M.username+":"+M.password:M.username),M.origin=M.protocol!=="file:"&&h(M.protocol)&&M.host?M.protocol+"//"+M.host:"null",M.href=M.toString()}function v(b,_,w){var S=this;switch(b){case"query":typeof _=="string"&&_.length&&(_=(w||e.parse)(_)),S[b]=_;break;case"port":S[b]=_,t(_,S.protocol)?_&&(S.host=S.hostname+":"+_):(S.host=S.hostname,S[b]="");break;case"hostname":S[b]=_,S.port&&(_+=":"+S.port),S.host=_;break;case"host":S[b]=_,i.test(_)?(_=_.split(":"),S.port=_.pop(),S.hostname=_.join(":")):(S.hostname=_,S.port="");break;case"protocol":S.protocol=_.toLowerCase(),S.slashes=!w;break;case"pathname":case"hash":if(_){var A=b==="pathname"?"/":"#";S[b]=_.charAt(0)!==A?A+_:_}else S[b]=_;break;case"username":case"password":S[b]=encodeURIComponent(_);break;case"auth":var T=_.indexOf(":");~T?(S.username=_.slice(0,T),S.username=encodeURIComponent(decodeURIComponent(S.username)),S.password=_.slice(T+1),S.password=encodeURIComponent(decodeURIComponent(S.password))):S.username=encodeURIComponent(decodeURIComponent(_))}for(var k=0;k<l.length;k++){var P=l[k];P[4]&&(S[P[1]]=S[P[1]].toLowerCase())}return S.auth=S.password?S.username+":"+S.password:S.username,S.origin=S.protocol!=="file:"&&h(S.protocol)&&S.host?S.protocol+"//"+S.host:"null",S.href=S.toString(),S}function E(b){(!b||typeof b!="function")&&(b=e.stringify);var _,w=this,S=w.host,A=w.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var T=A+(w.protocol&&w.slashes||h(w.protocol)?"//":"");return w.username?(T+=w.username,w.password&&(T+=":"+w.password),T+="@"):w.password?(T+=":"+w.password,T+="@"):w.protocol!=="file:"&&h(w.protocol)&&!S&&w.pathname!=="/"&&(T+="@"),(S[S.length-1]===":"||i.test(w.hostname)&&!w.port)&&(S+=":"),T+=S+w.pathname,_=typeof w.query=="object"?b(w.query):w.query,_&&(T+=_.charAt(0)!=="?"?"?"+_:_),w.hash&&(T+=w.hash),T}return y.prototype={set:v,toString:E},y.extractProtocol=d,y.location=p,y.trimLeft=u,y.qs=e,Sy=y,Sy}var GV=KV();const YV=ot(GV);var _y,gI;function Y_(){if(gI)return _y;gI=1;function t(e,r){for(var n=-1,s=e==null?0:e.length;++n<s&&r(e[n],n,e)!==!1;);return e}return _y=t,_y}var wy,yI;function tq(){if(yI)return wy;yI=1;var t=no(),e=so();function r(n,s){return n&&t(s,e(s),n)}return wy=r,wy}var xy,vI;function XV(){if(vI)return xy;vI=1;var t=no(),e=Au();function r(n,s){return n&&t(s,e(s),n)}return xy=r,xy}var Ay,bI;function ZV(){if(bI)return Ay;bI=1;var t=no(),e=z_();function r(n,s){return t(n,e(n),s)}return Ay=r,Ay}var Oy,EI;function rq(){if(EI)return Oy;EI=1;var t=V_(),e=D_(),r=z_(),n=zF(),s=Object.getOwnPropertySymbols,i=s?function(a){for(var o=[];a;)t(o,r(a)),a=e(a);return o}:n;return Oy=i,Oy}var Cy,SI;function QV(){if(SI)return Cy;SI=1;var t=no(),e=rq();function r(n,s){return t(n,e(n),s)}return Cy=r,Cy}var Ry,_I;function nq(){if(_I)return Ry;_I=1;var t=VF(),e=rq(),r=Au();function n(s){return t(s,r,e)}return Ry=n,Ry}var Ty,wI;function ez(){if(wI)return Ty;wI=1;var t=Object.prototype,e=t.hasOwnProperty;function r(n){var s=n.length,i=new n.constructor(s);return s&&typeof n[0]=="string"&&e.call(n,"index")&&(i.index=n.index,i.input=n.input),i}return Ty=r,Ty}var Iy,xI;function tz(){if(xI)return Iy;xI=1;var t=M_();function e(r,n){var s=n?t(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.byteLength)}return Iy=e,Iy}var ky,AI;function rz(){if(AI)return ky;AI=1;var t=/\w*$/;function e(r){var n=new r.constructor(r.source,t.exec(r));return n.lastIndex=r.lastIndex,n}return ky=e,ky}var Py,OI;function nz(){if(OI)return Py;OI=1;var t=ro(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;function n(s){return r?Object(r.call(s)):{}}return Py=n,Py}var jy,CI;function sz(){if(CI)return jy;CI=1;var t=M_(),e=tz(),r=rz(),n=nz(),s=CF(),i="[object Boolean]",a="[object Date]",o="[object Map]",u="[object Number]",l="[object RegExp]",c="[object Set]",p="[object String]",h="[object Symbol]",d="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",E="[object Int8Array]",b="[object Int16Array]",_="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",T="[object Uint32Array]";function k(P,F,R){var $=P.constructor;switch(F){case d:return t(P);case i:case a:return new $(+P);case g:return e(P,R);case y:case v:case E:case b:case _:case w:case S:case A:case T:return s(P,R);case o:return new $;case u:case p:return new $(P);case l:return r(P);case c:return new $;case h:return n(P)}}return jy=k,jy}var Ny,RI;function iz(){if(RI)return Ny;RI=1;var t=io(),e=nn(),r="[object Map]";function n(s){return e(s)&&t(s)==r}return Ny=n,Ny}var My,TI;function az(){if(TI)return My;TI=1;var t=iz(),e=q_(),r=B_(),n=r&&r.isMap,s=n?e(n):t;return My=s,My}var Dy,II;function oz(){if(II)return Dy;II=1;var t=io(),e=nn(),r="[object Set]";function n(s){return e(s)&&t(s)==r}return Dy=n,Dy}var Fy,kI;function uz(){if(kI)return Fy;kI=1;var t=oz(),e=q_(),r=B_(),n=r&&r.isSet,s=n?e(n):t;return Fy=s,Fy}var qy,PI;function X_(){if(PI)return qy;PI=1;var t=yf(),e=Y_(),r=_f(),n=tq(),s=XV(),i=AF(),a=Su(),o=ZV(),u=QV(),l=WF(),c=nq(),p=io(),h=ez(),d=sz(),g=TF(),y=Cr(),v=wu(),E=az(),b=rn(),_=uz(),w=so(),S=Au(),A=1,T=2,k=4,P="[object Arguments]",F="[object Array]",R="[object Boolean]",$="[object Date]",M="[object Error]",K="[object Function]",ee="[object GeneratorFunction]",G="[object Map]",Z="[object Number]",X="[object Object]",te="[object RegExp]",le="[object Set]",se="[object String]",ue="[object Symbol]",ve="[object WeakMap]",he="[object ArrayBuffer]",re="[object DataView]",W="[object Float32Array]",V="[object Float64Array]",ge="[object Int8Array]",me="[object Int16Array]",Me="[object Int32Array]",$e="[object Uint8Array]",Ie="[object Uint8ClampedArray]",ke="[object Uint16Array]",Le="[object Uint32Array]",ye={};ye[P]=ye[F]=ye[he]=ye[re]=ye[R]=ye[$]=ye[W]=ye[V]=ye[ge]=ye[me]=ye[Me]=ye[G]=ye[Z]=ye[X]=ye[te]=ye[le]=ye[se]=ye[ue]=ye[$e]=ye[Ie]=ye[ke]=ye[Le]=!0,ye[M]=ye[K]=ye[ve]=!1;function Se(we,L,C,j,U,Y){var ne,fe=L&A,Ne=L&T,Ge=L&k;if(C&&(ne=U?C(we,j,U,Y):C(we)),ne!==void 0)return ne;if(!b(we))return we;var q=y(we);if(q){if(ne=h(we),!fe)return a(we,ne)}else{var O=p(we),I=O==K||O==ee;if(v(we))return i(we,fe);if(O==X||O==P||I&&!U){if(ne=Ne||I?{}:g(we),!fe)return Ne?u(we,s(ne,we)):o(we,n(ne,we))}else{if(!ye[O])return U?we:{};ne=d(we,O,fe)}}Y||(Y=new t);var H=Y.get(we);if(H)return H;Y.set(we,ne),_(we)?we.forEach(function(xe){ne.add(Se(xe,L,C,xe,we,Y))}):E(we)&&we.forEach(function(xe,Ze){ne.set(Ze,Se(xe,L,C,Ze,we,Y))});var ie=Ge?Ne?c:l:Ne?S:w,de=q?void 0:ie(we);return e(de||we,function(xe,Ze){de&&(Ze=xe,xe=we[Ze]),r(ne,Ze,Se(xe,L,C,Ze,we,Y))}),ne}return qy=Se,qy}var By,jI;function lz(){if(jI)return By;jI=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return By=t,By}var $y,NI;function cz(){if(NI)return $y;NI=1;var t=K_(),e=DF();function r(n,s){return s.length<2?n:t(n,e(s,0,-1))}return $y=r,$y}var Ly,MI;function fz(){if(MI)return Ly;MI=1;var t=Ru(),e=lz(),r=cz(),n=ua();function s(i,a){return a=t(a,i),i=r(i,a),i==null||delete i[n(e(a))]}return Ly=s,Ly}var Uy,DI;function pz(){if(DI)return Uy;DI=1;var t=Ef();function e(r){return t(r)?void 0:r}return Uy=e,Uy}var Vy,FI;function dz(){if(FI)return Vy;FI=1;var t=ro(),e=_u(),r=Cr(),n=t?t.isConcatSpreadable:void 0;function s(i){return r(i)||e(i)||!!(n&&i&&i[n])}return Vy=s,Vy}var zy,qI;function hz(){if(qI)return zy;qI=1;var t=V_(),e=dz();function r(n,s,i,a,o){var u=-1,l=n.length;for(i||(i=e),o||(o=[]);++u<l;){var c=n[u];s>0&&i(c)?s>1?r(c,s-1,i,a,o):t(o,c):a||(o[o.length]=c)}return o}return zy=r,zy}var Wy,BI;function mz(){if(BI)return Wy;BI=1;var t=hz();function e(r){var n=r==null?0:r.length;return n?t(r,1):[]}return Wy=e,Wy}var Jy,$I;function sq(){if($I)return Jy;$I=1;var t=mz(),e=PF(),r=L_();function n(s){return r(e(s,void 0,t),s+"")}return Jy=n,Jy}var Hy,LI;function gz(){if(LI)return Hy;LI=1;var t=U_(),e=X_(),r=fz(),n=Ru(),s=no(),i=pz(),a=sq(),o=nq(),u=1,l=2,c=4,p=a(function(h,d){var g={};if(h==null)return g;var y=!1;d=t(d,function(E){return E=n(E,h),y||(y=E.length>1),E}),s(h,o(h),g),y&&(g=e(g,u|l|c,i));for(var v=d.length;v--;)r(g,d[v]);return g});return Hy=p,Hy}var yz=gz();const vz=ot(yz);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function iq(t){return typeof t>"u"||t===null}function bz(t){return typeof t=="object"&&t!==null}function Ez(t){return Array.isArray(t)?t:iq(t)?[]:[t]}function Sz(t,e){var r,n,s,i;if(e)for(i=Object.keys(e),r=0,n=i.length;r<n;r+=1)s=i[r],t[s]=e[s];return t}function _z(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function wz(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var xz=iq,Az=bz,Oz=Ez,Cz=_z,Rz=wz,Tz=Sz,wr={isNothing:xz,isObject:Az,toArray:Oz,repeat:Cz,isNegativeZero:Rz,extend:Tz};function aq(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
19
-
20
- `+t.mark.snippet),n+" "+r):n}function Qo(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=aq(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Qo.prototype=Object.create(Error.prototype);Qo.prototype.constructor=Qo;Qo.prototype.toString=function(e){return this.name+": "+aq(this,e)};var Xr=Qo;function Ky(t,e,r,n,s){var i="",a="",o=Math.floor(s/2)-1;return n-e>o&&(i=" ... ",e=n-o+i.length),r-n>o&&(a=" ...",r=n+o-a.length),{str:i+t.slice(e,r).replace(/\t/g,"→")+a,pos:n-e+i.length}}function Gy(t,e){return wr.repeat(" ",e-t.length)+t}function Iz(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],s=[],i,a=-1;i=r.exec(t.buffer);)s.push(i.index),n.push(i.index+i[0].length),t.position<=i.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",u,l,c=Math.min(t.line+e.linesAfter,s.length).toString().length,p=e.maxLength-(e.indent+c+3);for(u=1;u<=e.linesBefore&&!(a-u<0);u++)l=Ky(t.buffer,n[a-u],s[a-u],t.position-(n[a]-n[a-u]),p),o=wr.repeat(" ",e.indent)+Gy((t.line-u+1).toString(),c)+" | "+l.str+`
21
- `+o;for(l=Ky(t.buffer,n[a],s[a],t.position,p),o+=wr.repeat(" ",e.indent)+Gy((t.line+1).toString(),c)+" | "+l.str+`
22
- `,o+=wr.repeat("-",e.indent+c+3+l.pos)+`^
23
- `,u=1;u<=e.linesAfter&&!(a+u>=s.length);u++)l=Ky(t.buffer,n[a+u],s[a+u],t.position-(n[a]-n[a+u]),p),o+=wr.repeat(" ",e.indent)+Gy((t.line+u+1).toString(),c)+" | "+l.str+`
24
- `;return o.replace(/\n$/,"")}var kz=Iz,Pz=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],jz=["scalar","sequence","mapping"];function Nz(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function Mz(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Pz.indexOf(r)===-1)throw new Xr('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Nz(e.styleAliases||null),jz.indexOf(this.kind)===-1)throw new Xr('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Mr=Mz;function UI(t,e){var r=[];return t[e].forEach(function(n){var s=r.length;r.forEach(function(i,a){i.tag===n.tag&&i.kind===n.kind&&i.multi===n.multi&&(s=a)}),r[s]=n}),r}function Dz(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(s){s.multi?(t.multi[s.kind].push(s),t.multi.fallback.push(s)):t[s.kind][s.tag]=t.fallback[s.tag]=s}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function i1(t){return this.extend(t)}i1.prototype.extend=function(e){var r=[],n=[];if(e instanceof Mr)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Xr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof Mr))throw new Xr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Xr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Xr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof Mr))throw new Xr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(i1.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(n),s.compiledImplicit=UI(s,"implicit"),s.compiledExplicit=UI(s,"explicit"),s.compiledTypeMap=Dz(s.compiledImplicit,s.compiledExplicit),s};var oq=i1,uq=new Mr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),lq=new Mr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),cq=new Mr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),fq=new oq({explicit:[uq,lq,cq]});function Fz(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function qz(){return null}function Bz(t){return t===null}var pq=new Mr("tag:yaml.org,2002:null",{kind:"scalar",resolve:Fz,construct:qz,predicate:Bz,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $z(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Lz(t){return t==="true"||t==="True"||t==="TRUE"}function Uz(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var dq=new Mr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$z,construct:Lz,predicate:Uz,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Vz(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function zz(t){return 48<=t&&t<=55}function Wz(t){return 48<=t&&t<=57}function Jz(t){if(t===null)return!1;var e=t.length,r=0,n=!1,s;if(!e)return!1;if(s=t[r],(s==="-"||s==="+")&&(s=t[++r]),s==="0"){if(r+1===e)return!0;if(s=t[++r],s==="b"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(s!=="0"&&s!=="1")return!1;n=!0}return n&&s!=="_"}if(s==="x"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(!Vz(t.charCodeAt(r)))return!1;n=!0}return n&&s!=="_"}if(s==="o"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(!zz(t.charCodeAt(r)))return!1;n=!0}return n&&s!=="_"}}if(s==="_")return!1;for(;r<e;r++)if(s=t[r],s!=="_"){if(!Wz(t.charCodeAt(r)))return!1;n=!0}return!(!n||s==="_")}function Hz(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function Kz(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!wr.isNegativeZero(t)}var hq=new Mr("tag:yaml.org,2002:int",{kind:"scalar",resolve:Jz,construct:Hz,predicate:Kz,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Gz=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Yz(t){return!(t===null||!Gz.test(t)||t[t.length-1]==="_")}function Xz(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var Zz=/^[-+]?[0-9]+e/;function Qz(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(wr.isNegativeZero(t))return"-0.0";return r=t.toString(10),Zz.test(r)?r.replace("e",".e"):r}function eW(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||wr.isNegativeZero(t))}var mq=new Mr("tag:yaml.org,2002:float",{kind:"scalar",resolve:Yz,construct:Xz,predicate:eW,represent:Qz,defaultStyle:"lowercase"}),gq=fq.extend({implicit:[pq,dq,hq,mq]}),yq=gq,vq=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),bq=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function tW(t){return t===null?!1:vq.exec(t)!==null||bq.exec(t)!==null}function rW(t){var e,r,n,s,i,a,o,u=0,l=null,c,p,h;if(e=vq.exec(t),e===null&&(e=bq.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,s=+e[3],!e[4])return new Date(Date.UTC(r,n,s));if(i=+e[4],a=+e[5],o=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(c=+e[10],p=+(e[11]||0),l=(c*60+p)*6e4,e[9]==="-"&&(l=-l)),h=new Date(Date.UTC(r,n,s,i,a,o,u)),l&&h.setTime(h.getTime()-l),h}function nW(t){return t.toISOString()}var Eq=new Mr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tW,construct:rW,instanceOf:Date,represent:nW});function sW(t){return t==="<<"||t===null}var Sq=new Mr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:sW}),Z_=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
25
- \r`;function iW(t){if(t===null)return!1;var e,r,n=0,s=t.length,i=Z_;for(r=0;r<s;r++)if(e=i.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function aW(t){var e,r,n=t.replace(/[\r\n=]/g,""),s=n.length,i=Z_,a=0,o=[];for(e=0;e<s;e++)e%4===0&&e&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|i.indexOf(n.charAt(e));return r=s%4*6,r===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):r===18?(o.push(a>>10&255),o.push(a>>2&255)):r===12&&o.push(a>>4&255),new Uint8Array(o)}function oW(t){var e="",r=0,n,s,i=t.length,a=Z_;for(n=0;n<i;n++)n%3===0&&n&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[n];return s=i%3,s===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):s===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):s===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}function uW(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var _q=new Mr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iW,construct:aW,predicate:uW,represent:oW}),lW=Object.prototype.hasOwnProperty,cW=Object.prototype.toString;function fW(t){if(t===null)return!0;var e=[],r,n,s,i,a,o=t;for(r=0,n=o.length;r<n;r+=1){if(s=o[r],a=!1,cW.call(s)!=="[object Object]")return!1;for(i in s)if(lW.call(s,i))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(i)===-1)e.push(i);else return!1}return!0}function pW(t){return t!==null?t:[]}var wq=new Mr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:fW,construct:pW}),dW=Object.prototype.toString;function hW(t){if(t===null)return!0;var e,r,n,s,i,a=t;for(i=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(n=a[e],dW.call(n)!=="[object Object]"||(s=Object.keys(n),s.length!==1))return!1;i[e]=[s[0],n[s[0]]]}return!0}function mW(t){if(t===null)return[];var e,r,n,s,i,a=t;for(i=new Array(a.length),e=0,r=a.length;e<r;e+=1)n=a[e],s=Object.keys(n),i[e]=[s[0],n[s[0]]];return i}var xq=new Mr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:hW,construct:mW}),gW=Object.prototype.hasOwnProperty;function yW(t){if(t===null)return!0;var e,r=t;for(e in r)if(gW.call(r,e)&&r[e]!==null)return!1;return!0}function vW(t){return t!==null?t:{}}var Aq=new Mr("tag:yaml.org,2002:set",{kind:"mapping",resolve:yW,construct:vW}),Q_=yq.extend({implicit:[Eq,Sq],explicit:[_q,wq,xq,Aq]}),Ai=Object.prototype.hasOwnProperty,qc=1,Oq=2,Cq=3,Bc=4,Yy=1,bW=2,VI=3,EW=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,SW=/[\x85\u2028\u2029]/,_W=/[,\[\]\{\}]/,Rq=/^(?:!|!!|![a-z\-]+!)$/i,Tq=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function zI(t){return Object.prototype.toString.call(t)}function xs(t){return t===10||t===13}function Gi(t){return t===9||t===32}function un(t){return t===9||t===32||t===10||t===13}function Ma(t){return t===44||t===91||t===93||t===123||t===125}function wW(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function xW(t){return t===120?2:t===117?4:t===85?8:0}function AW(t){return 48<=t&&t<=57?t-48:-1}function WI(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
26
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function OW(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Iq=new Array(256),kq=new Array(256);for(var Aa=0;Aa<256;Aa++)Iq[Aa]=WI(Aa)?1:0,kq[Aa]=WI(Aa);function CW(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Q_,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Pq(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=kz(r),new Xr(e,r)}function st(t,e){throw Pq(t,e)}function $c(t,e){t.onWarning&&t.onWarning.call(null,Pq(t,e))}var JI={YAML:function(e,r,n){var s,i,a;e.version!==null&&st(e,"duplication of %YAML directive"),n.length!==1&&st(e,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),s===null&&st(e,"ill-formed argument of the YAML directive"),i=parseInt(s[1],10),a=parseInt(s[2],10),i!==1&&st(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&$c(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var s,i;n.length!==2&&st(e,"TAG directive accepts exactly two arguments"),s=n[0],i=n[1],Rq.test(s)||st(e,"ill-formed tag handle (first argument) of the TAG directive"),Ai.call(e.tagMap,s)&&st(e,'there is a previously declared suffix for "'+s+'" tag handle'),Tq.test(i)||st(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{st(e,"tag prefix is malformed: "+i)}e.tagMap[s]=i}};function wi(t,e,r,n){var s,i,a,o;if(e<r){if(o=t.input.slice(e,r),n)for(s=0,i=o.length;s<i;s+=1)a=o.charCodeAt(s),a===9||32<=a&&a<=1114111||st(t,"expected valid JSON character");else EW.test(o)&&st(t,"the stream contains non-printable characters");t.result+=o}}function HI(t,e,r,n){var s,i,a,o;for(wr.isObject(r)||st(t,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(r),a=0,o=s.length;a<o;a+=1)i=s[a],Ai.call(e,i)||(e[i]=r[i],n[i]=!0)}function Da(t,e,r,n,s,i,a,o,u){var l,c;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),l=0,c=s.length;l<c;l+=1)Array.isArray(s[l])&&st(t,"nested arrays are not supported inside keys"),typeof s=="object"&&zI(s[l])==="[object Object]"&&(s[l]="[object Object]");if(typeof s=="object"&&zI(s)==="[object Object]"&&(s="[object Object]"),s=String(s),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(l=0,c=i.length;l<c;l+=1)HI(t,e,i[l],r);else HI(t,e,i,r);else!t.json&&!Ai.call(r,s)&&Ai.call(e,s)&&(t.line=a||t.line,t.lineStart=o||t.lineStart,t.position=u||t.position,st(t,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(e,s,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[s]=i,delete r[s];return e}function ew(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):st(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function gr(t,e,r){for(var n=0,s=t.input.charCodeAt(t.position);s!==0;){for(;Gi(s);)s===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),s=t.input.charCodeAt(++t.position);if(e&&s===35)do s=t.input.charCodeAt(++t.position);while(s!==10&&s!==13&&s!==0);if(xs(s))for(ew(t),s=t.input.charCodeAt(t.position),n++,t.lineIndent=0;s===32;)t.lineIndent++,s=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&$c(t,"deficient indentation"),n}function wf(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||un(r)))}function tw(t,e){e===1?t.result+=" ":e>1&&(t.result+=wr.repeat(`
27
- `,e-1))}function RW(t,e,r){var n,s,i,a,o,u,l,c,p=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),un(d)||Ma(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(s=t.input.charCodeAt(t.position+1),un(s)||r&&Ma(s)))return!1;for(t.kind="scalar",t.result="",i=a=t.position,o=!1;d!==0;){if(d===58){if(s=t.input.charCodeAt(t.position+1),un(s)||r&&Ma(s))break}else if(d===35){if(n=t.input.charCodeAt(t.position-1),un(n))break}else{if(t.position===t.lineStart&&wf(t)||r&&Ma(d))break;if(xs(d))if(u=t.line,l=t.lineStart,c=t.lineIndent,gr(t,!1,-1),t.lineIndent>=e){o=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=u,t.lineStart=l,t.lineIndent=c;break}}o&&(wi(t,i,a,!1),tw(t,t.line-u),i=a=t.position,o=!1),Gi(d)||(a=t.position+1),d=t.input.charCodeAt(++t.position)}return wi(t,i,a,!1),t.result?!0:(t.kind=p,t.result=h,!1)}function TW(t,e){var r,n,s;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=s=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(wi(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,s=t.position;else return!0;else xs(r)?(wi(t,n,s,!0),tw(t,gr(t,!1,e)),n=s=t.position):t.position===t.lineStart&&wf(t)?st(t,"unexpected end of the document within a single quoted scalar"):(t.position++,s=t.position);st(t,"unexpected end of the stream within a single quoted scalar")}function IW(t,e){var r,n,s,i,a,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return wi(t,r,t.position,!0),t.position++,!0;if(o===92){if(wi(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),xs(o))gr(t,!1,e);else if(o<256&&Iq[o])t.result+=kq[o],t.position++;else if((a=xW(o))>0){for(s=a,i=0;s>0;s--)o=t.input.charCodeAt(++t.position),(a=wW(o))>=0?i=(i<<4)+a:st(t,"expected hexadecimal character");t.result+=OW(i),t.position++}else st(t,"unknown escape sequence");r=n=t.position}else xs(o)?(wi(t,r,n,!0),tw(t,gr(t,!1,e)),r=n=t.position):t.position===t.lineStart&&wf(t)?st(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}st(t,"unexpected end of the stream within a double quoted scalar")}function kW(t,e){var r=!0,n,s,i,a=t.tag,o,u=t.anchor,l,c,p,h,d,g=Object.create(null),y,v,E,b;if(b=t.input.charCodeAt(t.position),b===91)c=93,d=!1,o=[];else if(b===123)c=125,d=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),b=t.input.charCodeAt(++t.position);b!==0;){if(gr(t,!0,e),b=t.input.charCodeAt(t.position),b===c)return t.position++,t.tag=a,t.anchor=u,t.kind=d?"mapping":"sequence",t.result=o,!0;r?b===44&&st(t,"expected the node content, but found ','"):st(t,"missed comma between flow collection entries"),v=y=E=null,p=h=!1,b===63&&(l=t.input.charCodeAt(t.position+1),un(l)&&(p=h=!0,t.position++,gr(t,!0,e))),n=t.line,s=t.lineStart,i=t.position,Wa(t,e,qc,!1,!0),v=t.tag,y=t.result,gr(t,!0,e),b=t.input.charCodeAt(t.position),(h||t.line===n)&&b===58&&(p=!0,b=t.input.charCodeAt(++t.position),gr(t,!0,e),Wa(t,e,qc,!1,!0),E=t.result),d?Da(t,o,g,v,y,E,n,s,i):p?o.push(Da(t,null,g,v,y,E,n,s,i)):o.push(y),gr(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}st(t,"unexpected end of the stream within a flow collection")}function PW(t,e){var r,n,s=Yy,i=!1,a=!1,o=e,u=0,l=!1,c,p;if(p=t.input.charCodeAt(t.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(t.kind="scalar",t.result="";p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)Yy===s?s=p===43?VI:bW:st(t,"repeat of a chomping mode identifier");else if((c=AW(p))>=0)c===0?st(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?st(t,"repeat of an indentation width identifier"):(o=e+c-1,a=!0);else break;if(Gi(p)){do p=t.input.charCodeAt(++t.position);while(Gi(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!xs(p)&&p!==0)}for(;p!==0;){for(ew(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!a||t.lineIndent<o)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>o&&(o=t.lineIndent),xs(p)){u++;continue}if(t.lineIndent<o){s===VI?t.result+=wr.repeat(`
28
- `,i?1+u:u):s===Yy&&i&&(t.result+=`
29
- `);break}for(n?Gi(p)?(l=!0,t.result+=wr.repeat(`
30
- `,i?1+u:u)):l?(l=!1,t.result+=wr.repeat(`
31
- `,u+1)):u===0?i&&(t.result+=" "):t.result+=wr.repeat(`
32
- `,u):t.result+=wr.repeat(`
33
- `,i?1+u:u),i=!0,a=!0,u=0,r=t.position;!xs(p)&&p!==0;)p=t.input.charCodeAt(++t.position);wi(t,r,t.position,!1)}return!0}function KI(t,e){var r,n=t.tag,s=t.anchor,i=[],a,o=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=i),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,st(t,"tab characters must not be used in indentation")),!(u!==45||(a=t.input.charCodeAt(t.position+1),!un(a))));){if(o=!0,t.position++,gr(t,!0,-1)&&t.lineIndent<=e){i.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,Wa(t,e,Cq,!1,!0),i.push(t.result),gr(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)st(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return o?(t.tag=n,t.anchor=s,t.kind="sequence",t.result=i,!0):!1}function jW(t,e,r){var n,s,i,a,o,u,l=t.tag,c=t.anchor,p={},h=Object.create(null),d=null,g=null,y=null,v=!1,E=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=p),b=t.input.charCodeAt(t.position);b!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,st(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),i=t.line,(b===63||b===58)&&un(n))b===63?(v&&(Da(t,p,h,d,g,null,a,o,u),d=g=y=null),E=!0,v=!0,s=!0):v?(v=!1,s=!0):st(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=n;else{if(a=t.line,o=t.lineStart,u=t.position,!Wa(t,r,Oq,!1,!0))break;if(t.line===i){for(b=t.input.charCodeAt(t.position);Gi(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),un(b)||st(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Da(t,p,h,d,g,null,a,o,u),d=g=y=null),E=!0,v=!1,s=!1,d=t.tag,g=t.result;else if(E)st(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=c,!0}else if(E)st(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=c,!0}if((t.line===i||t.lineIndent>e)&&(v&&(a=t.line,o=t.lineStart,u=t.position),Wa(t,e,Bc,!0,s)&&(v?g=t.result:y=t.result),v||(Da(t,p,h,d,g,y,a,o,u),d=g=y=null),gr(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===i||t.lineIndent>e)&&b!==0)st(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&Da(t,p,h,d,g,null,a,o,u),E&&(t.tag=l,t.anchor=c,t.kind="mapping",t.result=p),E}function NW(t){var e,r=!1,n=!1,s,i,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&st(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(n=!0,s="!!",a=t.input.charCodeAt(++t.position)):s="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(i=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):st(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!un(a);)a===33&&(n?st(t,"tag suffix cannot contain exclamation marks"):(s=t.input.slice(e-1,t.position+1),Rq.test(s)||st(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),_W.test(i)&&st(t,"tag suffix cannot contain flow indicator characters")}i&&!Tq.test(i)&&st(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch{st(t,"tag name is malformed: "+i)}return r?t.tag=i:Ai.call(t.tagMap,s)?t.tag=t.tagMap[s]+i:s==="!"?t.tag="!"+i:s==="!!"?t.tag="tag:yaml.org,2002:"+i:st(t,'undeclared tag handle "'+s+'"'),!0}function MW(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&st(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!un(r)&&!Ma(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&st(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function DW(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!un(n)&&!Ma(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&st(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Ai.call(t.anchorMap,r)||st(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],gr(t,!0,-1),!0}function Wa(t,e,r,n,s){var i,a,o,u=1,l=!1,c=!1,p,h,d,g,y,v;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,i=a=o=Bc===r||Cq===r,n&&gr(t,!0,-1)&&(l=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;NW(t)||MW(t);)gr(t,!0,-1)?(l=!0,o=i,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):o=!1;if(o&&(o=l||s),(u===1||Bc===r)&&(qc===r||Oq===r?y=e:y=e+1,v=t.position-t.lineStart,u===1?o&&(KI(t,v)||jW(t,v,y))||kW(t,y)?c=!0:(a&&PW(t,y)||TW(t,y)||IW(t,y)?c=!0:DW(t)?(c=!0,(t.tag!==null||t.anchor!==null)&&st(t,"alias node should not have any properties")):RW(t,y,qc===r)&&(c=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(c=o&&KI(t,v))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&st(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),p=0,h=t.implicitTypes.length;p<h;p+=1)if(g=t.implicitTypes[p],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Ai.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,d=t.typeMap.multi[t.kind||"fallback"],p=0,h=d.length;p<h;p+=1)if(t.tag.slice(0,d[p].tag.length)===d[p].tag){g=d[p];break}g||st(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&st(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):st(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||c}function FW(t){var e=t.position,r,n,s,i=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(gr(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(i=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!un(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),s=[],n.length<1&&st(t,"directive name must not be less than one character in length");a!==0;){for(;Gi(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!xs(a));break}if(xs(a))break;for(r=t.position;a!==0&&!un(a);)a=t.input.charCodeAt(++t.position);s.push(t.input.slice(r,t.position))}a!==0&&ew(t),Ai.call(JI,n)?JI[n](t,n,s):$c(t,'unknown document directive "'+n+'"')}if(gr(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,gr(t,!0,-1)):i&&st(t,"directives end mark is expected"),Wa(t,t.lineIndent-1,Bc,!1,!0),gr(t,!0,-1),t.checkLineBreaks&&SW.test(t.input.slice(e,t.position))&&$c(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&wf(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,gr(t,!0,-1));return}if(t.position<t.length-1)st(t,"end of the stream or a document separator is expected");else return}function jq(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
34
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new CW(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,st(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)FW(r);return r.documents}function qW(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=jq(t,r);if(typeof e!="function")return n;for(var s=0,i=n.length;s<i;s+=1)e(n[s])}function BW(t,e){var r=jq(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Xr("expected a single document in the stream, but found more")}}var $W=qW,LW=BW,Nq={loadAll:$W,load:LW},Mq=Object.prototype.toString,Dq=Object.prototype.hasOwnProperty,rw=65279,UW=9,eu=10,VW=13,zW=32,WW=33,JW=34,a1=35,HW=37,KW=38,GW=39,YW=42,Fq=44,XW=45,Lc=58,ZW=61,QW=62,eJ=63,tJ=64,qq=91,Bq=93,rJ=96,$q=123,nJ=124,Lq=125,Ur={};Ur[0]="\\0";Ur[7]="\\a";Ur[8]="\\b";Ur[9]="\\t";Ur[10]="\\n";Ur[11]="\\v";Ur[12]="\\f";Ur[13]="\\r";Ur[27]="\\e";Ur[34]='\\"';Ur[92]="\\\\";Ur[133]="\\N";Ur[160]="\\_";Ur[8232]="\\L";Ur[8233]="\\P";var sJ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],iJ=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function aJ(t,e){var r,n,s,i,a,o,u;if(e===null)return{};for(r={},n=Object.keys(e),s=0,i=n.length;s<i;s+=1)a=n[s],o=String(e[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=t.compiledTypeMap.fallback[a],u&&Dq.call(u.styleAliases,o)&&(o=u.styleAliases[o]),r[a]=o;return r}function oJ(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Xr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+wr.repeat("0",n-e.length)+e}var uJ=1,tu=2;function lJ(t){this.schema=t.schema||Q_,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=wr.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=aJ(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?tu:uJ,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function GI(t,e){for(var r=wr.repeat(" ",e),n=0,s=-1,i="",a,o=t.length;n<o;)s=t.indexOf(`
35
- `,n),s===-1?(a=t.slice(n),n=o):(a=t.slice(n,s+1),n=s+1),a.length&&a!==`
36
- `&&(i+=r),i+=a;return i}function o1(t,e){return`
37
- `+wr.repeat(" ",t.indent*e)}function cJ(t,e){var r,n,s;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(s=t.implicitTypes[r],s.resolve(e))return!0;return!1}function Uc(t){return t===zW||t===UW}function ru(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==rw||65536<=t&&t<=1114111}function YI(t){return ru(t)&&t!==rw&&t!==VW&&t!==eu}function XI(t,e,r){var n=YI(t),s=n&&!Uc(t);return(r?n:n&&t!==Fq&&t!==qq&&t!==Bq&&t!==$q&&t!==Lq)&&t!==a1&&!(e===Lc&&!s)||YI(e)&&!Uc(e)&&t===a1||e===Lc&&s}function fJ(t){return ru(t)&&t!==rw&&!Uc(t)&&t!==XW&&t!==eJ&&t!==Lc&&t!==Fq&&t!==qq&&t!==Bq&&t!==$q&&t!==Lq&&t!==a1&&t!==KW&&t!==YW&&t!==WW&&t!==nJ&&t!==ZW&&t!==QW&&t!==GW&&t!==JW&&t!==HW&&t!==tJ&&t!==rJ}function pJ(t){return!Uc(t)&&t!==Lc}function $o(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Uq(t){var e=/^\n* /;return e.test(t)}var Vq=1,u1=2,zq=3,Wq=4,Pa=5;function dJ(t,e,r,n,s,i,a,o){var u,l=0,c=null,p=!1,h=!1,d=n!==-1,g=-1,y=fJ($o(t,0))&&pJ($o(t,t.length-1));if(e||a)for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=$o(t,u),!ru(l))return Pa;y=y&&XI(l,c,o),c=l}else{for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=$o(t,u),l===eu)p=!0,d&&(h=h||u-g-1>n&&t[g+1]!==" ",g=u);else if(!ru(l))return Pa;y=y&&XI(l,c,o),c=l}h=h||d&&u-g-1>n&&t[g+1]!==" "}return!p&&!h?y&&!a&&!s(t)?Vq:i===tu?Pa:u1:r>9&&Uq(t)?Pa:a?i===tu?Pa:u1:h?Wq:zq}function hJ(t,e,r,n,s){t.dump=(function(){if(e.length===0)return t.quotingType===tu?'""':"''";if(!t.noCompatMode&&(sJ.indexOf(e)!==-1||iJ.test(e)))return t.quotingType===tu?'"'+e+'"':"'"+e+"'";var i=t.indent*Math.max(1,r),a=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-i),o=n||t.flowLevel>-1&&r>=t.flowLevel;function u(l){return cJ(t,l)}switch(dJ(e,o,t.indent,a,u,t.quotingType,t.forceQuotes&&!n,s)){case Vq:return e;case u1:return"'"+e.replace(/'/g,"''")+"'";case zq:return"|"+ZI(e,t.indent)+QI(GI(e,i));case Wq:return">"+ZI(e,t.indent)+QI(GI(mJ(e,a),i));case Pa:return'"'+gJ(e)+'"';default:throw new Xr("impossible error: invalid scalar style")}})()}function ZI(t,e){var r=Uq(t)?String(e):"",n=t[t.length-1]===`
38
- `,s=n&&(t[t.length-2]===`
39
- `||t===`
40
- `),i=s?"+":n?"":"-";return r+i+`
41
- `}function QI(t){return t[t.length-1]===`
42
- `?t.slice(0,-1):t}function mJ(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var l=t.indexOf(`
43
- `);return l=l!==-1?l:t.length,r.lastIndex=l,ek(t.slice(0,l),e)})(),s=t[0]===`
44
- `||t[0]===" ",i,a;a=r.exec(t);){var o=a[1],u=a[2];i=u[0]===" ",n+=o+(!s&&!i&&u!==""?`
45
- `:"")+ek(u,e),s=i}return n}function ek(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,s=0,i,a=0,o=0,u="";n=r.exec(t);)o=n.index,o-s>e&&(i=a>s?a:o,u+=`
46
- `+t.slice(s,i),s=i+1),a=o;return u+=`
47
- `,t.length-s>e&&a>s?u+=t.slice(s,a)+`
48
- `+t.slice(a+1):u+=t.slice(s),u.slice(1)}function gJ(t){for(var e="",r=0,n,s=0;s<t.length;r>=65536?s+=2:s++)r=$o(t,s),n=Ur[r],!n&&ru(r)?(e+=t[s],r>=65536&&(e+=t[s+1])):e+=n||oJ(r);return e}function yJ(t,e,r){var n="",s=t.tag,i,a,o;for(i=0,a=r.length;i<a;i+=1)o=r[i],t.replacer&&(o=t.replacer.call(r,String(i),o)),(Gs(t,e,o,!1,!1)||typeof o>"u"&&Gs(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=s,t.dump="["+n+"]"}function tk(t,e,r,n){var s="",i=t.tag,a,o,u;for(a=0,o=r.length;a<o;a+=1)u=r[a],t.replacer&&(u=t.replacer.call(r,String(a),u)),(Gs(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&&Gs(t,e+1,null,!0,!0,!1,!0))&&((!n||s!=="")&&(s+=o1(t,e)),t.dump&&eu===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=i,t.dump=s||"[]"}function vJ(t,e,r){var n="",s=t.tag,i=Object.keys(r),a,o,u,l,c;for(a=0,o=i.length;a<o;a+=1)c="",n!==""&&(c+=", "),t.condenseFlow&&(c+='"'),u=i[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),Gs(t,e,u,!1,!1)&&(t.dump.length>1024&&(c+="? "),c+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Gs(t,e,l,!1,!1)&&(c+=t.dump,n+=c));t.tag=s,t.dump="{"+n+"}"}function bJ(t,e,r,n){var s="",i=t.tag,a=Object.keys(r),o,u,l,c,p,h;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new Xr("sortKeys must be a boolean or a function");for(o=0,u=a.length;o<u;o+=1)h="",(!n||s!=="")&&(h+=o1(t,e)),l=a[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Gs(t,e+1,l,!0,!0,!0)&&(p=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,p&&(t.dump&&eu===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,p&&(h+=o1(t,e)),Gs(t,e+1,c,!0,p)&&(t.dump&&eu===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,s+=h));t.tag=i,t.dump=s||"{}"}function rk(t,e,r){var n,s,i,a,o,u;for(s=r?t.explicitTypes:t.implicitTypes,i=0,a=s.length;i<a;i+=1)if(o=s[i],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof e=="object"&&e instanceof o.instanceOf)&&(!o.predicate||o.predicate(e))){if(r?o.multi&&o.representName?t.tag=o.representName(e):t.tag=o.tag:t.tag="?",o.represent){if(u=t.styleMap[o.tag]||o.defaultStyle,Mq.call(o.represent)==="[object Function]")n=o.represent(e,u);else if(Dq.call(o.represent,u))n=o.represent[u](e,u);else throw new Xr("!<"+o.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function Gs(t,e,r,n,s,i,a){t.tag=null,t.dump=r,rk(t,r,!1)||rk(t,r,!0);var o=Mq.call(t.dump),u=n,l;n&&(n=t.flowLevel<0||t.flowLevel>e);var c=o==="[object Object]"||o==="[object Array]",p,h;if(c&&(p=t.duplicates.indexOf(r),h=p!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(s=!1),h&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(c&&h&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),o==="[object Object]")n&&Object.keys(t.dump).length!==0?(bJ(t,e,t.dump,s),h&&(t.dump="&ref_"+p+t.dump)):(vJ(t,e,t.dump),h&&(t.dump="&ref_"+p+" "+t.dump));else if(o==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!a&&e>0?tk(t,e-1,t.dump,s):tk(t,e,t.dump,s),h&&(t.dump="&ref_"+p+t.dump)):(yJ(t,e,t.dump),h&&(t.dump="&ref_"+p+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&hJ(t,t.dump,e,i,u);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Xr("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function EJ(t,e){var r=[],n=[],s,i;for(l1(t,r,n),s=0,i=n.length;s<i;s+=1)e.duplicates.push(r[n[s]]);e.usedDuplicates=new Array(i)}function l1(t,e,r){var n,s,i;if(t!==null&&typeof t=="object")if(s=e.indexOf(t),s!==-1)r.indexOf(s)===-1&&r.push(s);else if(e.push(t),Array.isArray(t))for(s=0,i=t.length;s<i;s+=1)l1(t[s],e,r);else for(n=Object.keys(t),s=0,i=n.length;s<i;s+=1)l1(t[n[s]],e,r)}function SJ(t,e){e=e||{};var r=new lJ(e);r.noRefs||EJ(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Gs(r,0,n,!0,!0)?r.dump+`
49
- `:""}var _J=SJ,wJ={dump:_J};function nw(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var xJ=Mr,AJ=oq,OJ=fq,nu=gq,CJ=yq,RJ=Q_,TJ=Nq.load,IJ=Nq.loadAll,kJ=wJ.dump,PJ=Xr,jJ={binary:_q,float:mq,map:cq,null:pq,pairs:xq,set:Aq,timestamp:Eq,bool:dq,int:hq,merge:Sq,omap:wq,seq:lq,str:uq},NJ=nw("safeLoad","load"),MJ=nw("safeLoadAll","loadAll"),DJ=nw("safeDump","dump"),ea={Type:xJ,Schema:AJ,FAILSAFE_SCHEMA:OJ,JSON_SCHEMA:nu,CORE_SCHEMA:CJ,DEFAULT_SCHEMA:RJ,load:TJ,loadAll:IJ,dump:kJ,YAMLException:PJ,types:jJ,safeLoad:NJ,safeLoadAll:MJ,safeDump:DJ},wc={exports:{}},FJ=wc.exports,nk;function qJ(){return nk||(nk=1,(function(t){(function(e,r){t.exports?t.exports=r():(function n(){document&&document.body?e.zenscroll=r():setTimeout(n,9)})()})(FJ,function(){var e=function(l){return l&&"getComputedStyle"in window&&window.getComputedStyle(l)["scroll-behavior"]==="smooth"};if(typeof window>"u"||!("document"in window))return{};var r=function(l,c,p){c=c||999,!p&&p!==0&&(p=9);var h,d=function(S){h=S},g=function(){clearTimeout(h),d(0)},y=function(S){return Math.max(0,l.getTopOf(S)-p)},v=function(S,A,T){if(g(),A===0||A&&A<0||e(l.body))l.toY(S),T&&T();else{var k=l.getY(),P=Math.max(0,S)-k,F=new Date().getTime();A=A||Math.min(Math.abs(P),c),(function R(){d(setTimeout(function(){var $=Math.min(1,(new Date().getTime()-F)/A),M=Math.max(0,Math.floor(k+P*($<.5?2*$*$:$*(4-$*2)-1)));l.toY(M),$<1&&l.getHeight()+M<l.body.scrollHeight?R():(setTimeout(g,99),T&&T())},9))})()}},E=function(S,A,T){v(y(S),A,T)},b=function(S,A,T){var k=S.getBoundingClientRect().height,P=l.getTopOf(S)+k,F=l.getHeight(),R=l.getY(),$=R+F;y(S)<R||k+p>F?E(S,A,T):P+p>$?v(P-F+p,A,T):T&&T()},_=function(S,A,T,k){v(Math.max(0,l.getTopOf(S)-l.getHeight()/2+(T||S.getBoundingClientRect().height/2)),A,k)},w=function(S,A){return(S===0||S)&&(c=S),(A===0||A)&&(p=A),{defaultDuration:c,edgeOffset:p}};return{setup:w,to:E,toY:v,intoView:b,center:_,stop:g,moving:function(){return!!h},getY:l.getY,getTopOf:l.getTopOf}},n=document.documentElement,s=function(){return window.scrollY||n.scrollTop},i=r({body:document.scrollingElement||document.body,toY:function(l){window.scrollTo(0,l)},getY:s,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(l){return l.getBoundingClientRect().top+s()-n.offsetTop}});if(i.createScroller=function(l,c,p){return r({body:l,toY:function(h){l.scrollTop=h},getY:function(){return l.scrollTop},getHeight:function(){return Math.min(l.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(h){return h.offsetTop}},c,p)},"addEventListener"in window&&!window.noZensmooth&&!e(document.body)){var a="history"in window&&"pushState"in history,o=a&&"scrollRestoration"in history;o&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){o&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(l){l.state&&"zenscrollY"in l.state&&i.toY(l.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var l=i.setup().edgeOffset;if(l){var c=document.getElementById(window.location.href.split("#")[1]);if(c){var p=Math.max(0,i.getTopOf(c)-l),h=i.getY()-p;0<=h&&h<9&&window.scrollTo(0,p)}}},9)},!1);var u=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(l){for(var c=l.target;c&&c.tagName!=="A";)c=c.parentNode;if(!(!c||l.which!==1||l.shiftKey||l.metaKey||l.ctrlKey||l.altKey)){if(o){var p=history.state&&typeof history.state=="object"?history.state:{};p.zenscrollY=i.getY();try{history.replaceState(p,"")}catch{}}var h=c.getAttribute("href")||"";if(h.indexOf("#")===0&&!u.test(c.className)){var d=0,g=document.getElementById(h.substring(1));if(h!=="#"){if(!g)return;d=i.getTopOf(g)}l.preventDefault();var y=function(){window.location=h},v=i.setup().edgeOffset;v&&(d=Math.max(0,d-v),a&&(y=function(){history.pushState({},"",h)})),i.toY(d,null,y)}}},!1)}return i})})(wc)),wc.exports}var BJ=qJ();const $J=ot(BJ);var Xy,sk;function LJ(){if(sk)return Xy;sk=1;var t=pf(),e="<<anonymous>>",r;{var n=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};n.isRequired=n;var s=function(){return n};r={listOf:s,mapOf:s,orderedMapOf:s,setOf:s,orderedSetOf:s,stackOf:s,iterableOf:s,recordOf:s,shape:s,contains:s,mapContains:s,orderedMapContains:s,list:n,map:n,orderedMap:n,set:n,orderedSet:n,stack:n,seq:n,record:n,iterable:n}}r.iterable.indexed=u("Indexed",t.Iterable.isIndexed),r.iterable.keyed=u("Keyed",t.Iterable.isKeyed);function i(l){var c=typeof l;return Array.isArray(l)?"array":l instanceof RegExp?"object":l instanceof t.Iterable?"Immutable."+l.toSource().split(" ")[0]:c}function a(l){function c(h,d,g,y,v,E){for(var b=arguments.length,_=Array(b>6?b-6:0),w=6;w<b;w++)_[w-6]=arguments[w];if(E=E||g,y=y||e,d[g]==null){var S=v;if(h)return new Error("Required "+S+" `"+E+"` was not specified in "+("`"+y+"`."))}else return l.apply(void 0,[d,g,y,v,E].concat(_))}var p=c.bind(null,!1);return p.isRequired=c.bind(null,!0),p}function o(l,c){function p(h,d,g,y,v){var E=h[d];if(!c(E)){var b=i(E);return new Error("Invalid "+y+" `"+v+"` of type `"+b+"` "+("supplied to `"+g+"`, expected `"+l+"`."))}return null}return a(p)}function u(l,c){return o("Iterable."+l,function(p){return t.Iterable.isIterable(p)&&c(p)})}return Xy=r,Xy}var UJ=LJ();const VJ=ot(UJ);var Zy,ik;function zJ(){if(ik)return Zy;ik=1;function t(e,r,n,s,i){return i(e,function(a,o,u){n=s?(s=!1,a):r(n,a,o,u)}),n}return Zy=t,Zy}var Qy,ak;function WJ(){if(ak)return Qy;ak=1;var t=BF(),e=eq(),r=Tu(),n=zJ(),s=Cr();function i(a,o,u){var l=s(a)?t:n,c=arguments.length<3;return l(a,r(o,4),u,c,e)}return Qy=i,Qy}var JJ=WJ();const HJ=ot(JJ);var KJ=YF();const GJ=ot(KJ);var ok={},Co,uk;function cn(){if(uk)return Co;uk=1;var t=function(e){return e&&e.Math===Math&&e};return Co=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof Lr=="object"&&Lr)||t(typeof Co=="object"&&Co)||(function(){return this})()||Function("return this")(),Co}var ev,lk;function $n(){return lk||(lk=1,ev=function(t){try{return!!t()}catch{return!0}}),ev}var tv,ck;function Iu(){if(ck)return tv;ck=1;var t=$n();return tv=!t(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),tv}var rv,fk;function sw(){if(fk)return rv;fk=1;var t=Iu(),e=Function.prototype,r=e.apply,n=e.call;return rv=typeof Reflect=="object"&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),rv}var nv,pk;function fn(){if(pk)return nv;pk=1;var t=Iu(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return nv=t?n:function(s){return function(){return r.apply(s,arguments)}},nv}var sv,dk;function iw(){if(dk)return sv;dk=1;var t=fn(),e=t({}.toString),r=t("".slice);return sv=function(n){return r(e(n),8,-1)},sv}var iv,hk;function Jq(){if(hk)return iv;hk=1;var t=iw(),e=fn();return iv=function(r){if(t(r)==="Function")return e(r)},iv}var av,mk;function Sn(){if(mk)return av;mk=1;var t=typeof document=="object"&&document.all;return av=typeof t>"u"&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"},av}var ov={},uv,gk;function Is(){if(gk)return uv;gk=1;var t=$n();return uv=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),uv}var lv,yk;function Ri(){if(yk)return lv;yk=1;var t=Iu(),e=Function.prototype.call;return lv=t?e.bind(e):function(){return e.apply(e,arguments)},lv}var cv={},vk;function Hq(){if(vk)return cv;vk=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return cv.f=r?function(s){var i=e(this,s);return!!i&&i.enumerable}:t,cv}var fv,bk;function ku(){return bk||(bk=1,fv=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}),fv}var pv,Ek;function Kq(){if(Ek)return pv;Ek=1;var t=fn(),e=$n(),r=iw(),n=Object,s=t("".split);return pv=e(function(){return!n("z").propertyIsEnumerable(0)})?function(i){return r(i)==="String"?s(i,""):n(i)}:n,pv}var dv,Sk;function aw(){return Sk||(Sk=1,dv=function(t){return t==null}),dv}var hv,_k;function xf(){if(_k)return hv;_k=1;var t=aw(),e=TypeError;return hv=function(r){if(t(r))throw new e("Can't call method on "+r);return r},hv}var mv,wk;function Pu(){if(wk)return mv;wk=1;var t=Kq(),e=xf();return mv=function(r){return t(e(r))},mv}var gv,xk;function as(){if(xk)return gv;xk=1;var t=Sn();return gv=function(e){return typeof e=="object"?e!==null:t(e)},gv}var yv,Ak;function ju(){return Ak||(Ak=1,yv={}),yv}var vv,Ok;function Nu(){if(Ok)return vv;Ok=1;var t=ju(),e=cn(),r=Sn(),n=function(s){return r(s)?s:void 0};return vv=function(s,i){return arguments.length<2?n(t[s])||n(e[s]):t[s]&&t[s][i]||e[s]&&e[s][i]},vv}var bv,Ck;function Mu(){if(Ck)return bv;Ck=1;var t=fn();return bv=t({}.isPrototypeOf),bv}var Ev,Rk;function YJ(){if(Rk)return Ev;Rk=1;var t=cn(),e=t.navigator,r=e&&e.userAgent;return Ev=r?String(r):"",Ev}var Sv,Tk;function XJ(){if(Tk)return Sv;Tk=1;var t=cn(),e=YJ(),r=t.process,n=t.Deno,s=r&&r.versions||n&&n.version,i=s&&s.v8,a,o;return i&&(a=i.split("."),o=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&e&&(a=e.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=e.match(/Chrome\/(\d+)/),a&&(o=+a[1]))),Sv=o,Sv}var _v,Ik;function Gq(){if(Ik)return _v;Ik=1;var t=XJ(),e=$n(),r=cn(),n=r.String;return _v=!!Object.getOwnPropertySymbols&&!e(function(){var s=Symbol("symbol detection");return!n(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&t&&t<41}),_v}var wv,kk;function Yq(){if(kk)return wv;kk=1;var t=Gq();return wv=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wv}var xv,Pk;function Xq(){if(Pk)return xv;Pk=1;var t=Nu(),e=Sn(),r=Mu(),n=Yq(),s=Object;return xv=n?function(i){return typeof i=="symbol"}:function(i){var a=t("Symbol");return e(a)&&r(a.prototype,s(i))},xv}var Av,jk;function ow(){if(jk)return Av;jk=1;var t=String;return Av=function(e){try{return t(e)}catch{return"Object"}},Av}var Ov,Nk;function Du(){if(Nk)return Ov;Nk=1;var t=Sn(),e=ow(),r=TypeError;return Ov=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")},Ov}var Cv,Mk;function uw(){if(Mk)return Cv;Mk=1;var t=Du(),e=aw();return Cv=function(r,n){var s=r[n];return e(s)?void 0:t(s)},Cv}var Rv,Dk;function ZJ(){if(Dk)return Rv;Dk=1;var t=Ri(),e=Sn(),r=as(),n=TypeError;return Rv=function(s,i){var a,o;if(i==="string"&&e(a=s.toString)&&!r(o=t(a,s))||e(a=s.valueOf)&&!r(o=t(a,s))||i!=="string"&&e(a=s.toString)&&!r(o=t(a,s)))return o;throw new n("Can't convert object to primitive value")},Rv}var Tv={exports:{}},Iv,Fk;function Fu(){return Fk||(Fk=1,Iv=!0),Iv}var kv,qk;function QJ(){if(qk)return kv;qk=1;var t=cn(),e=Object.defineProperty;return kv=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch{t[r]=n}return n},kv}var Bk;function Zq(){if(Bk)return Tv.exports;Bk=1;var t=Fu(),e=cn(),r=QJ(),n="__core-js_shared__",s=Tv.exports=e[n]||r(n,{});return(s.versions||(s.versions=[])).push({version:"3.45.1",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Tv.exports}var Pv,$k;function Qq(){if($k)return Pv;$k=1;var t=Zq();return Pv=function(e,r){return t[e]||(t[e]=r||{})},Pv}var jv,Lk;function lw(){if(Lk)return jv;Lk=1;var t=xf(),e=Object;return jv=function(r){return e(t(r))},jv}var Nv,Uk;function os(){if(Uk)return Nv;Uk=1;var t=fn(),e=lw(),r=t({}.hasOwnProperty);return Nv=Object.hasOwn||function(s,i){return r(e(s),i)},Nv}var Mv,Vk;function eB(){if(Vk)return Mv;Vk=1;var t=fn(),e=0,r=Math.random(),n=t(1.1.toString);return Mv=function(s){return"Symbol("+(s===void 0?"":s)+")_"+n(++e+r,36)},Mv}var Dv,zk;function ei(){if(zk)return Dv;zk=1;var t=cn(),e=Qq(),r=os(),n=eB(),s=Gq(),i=Yq(),a=t.Symbol,o=e("wks"),u=i?a.for||a:a&&a.withoutSetter||n;return Dv=function(l){return r(o,l)||(o[l]=s&&r(a,l)?a[l]:u("Symbol."+l)),o[l]},Dv}var Fv,Wk;function eH(){if(Wk)return Fv;Wk=1;var t=Ri(),e=as(),r=Xq(),n=uw(),s=ZJ(),i=ei(),a=TypeError,o=i("toPrimitive");return Fv=function(u,l){if(!e(u)||r(u))return u;var c=n(u,o),p;if(c){if(l===void 0&&(l="default"),p=t(c,u,l),!e(p)||r(p))return p;throw new a("Can't convert object to primitive value")}return l===void 0&&(l="number"),s(u,l)},Fv}var qv,Jk;function tB(){if(Jk)return qv;Jk=1;var t=eH(),e=Xq();return qv=function(r){var n=t(r,"string");return e(n)?n:n+""},qv}var Bv,Hk;function rB(){if(Hk)return Bv;Hk=1;var t=cn(),e=as(),r=t.document,n=e(r)&&e(r.createElement);return Bv=function(s){return n?r.createElement(s):{}},Bv}var $v,Kk;function nB(){if(Kk)return $v;Kk=1;var t=Is(),e=$n(),r=rB();return $v=!t&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),$v}var Gk;function sB(){if(Gk)return ov;Gk=1;var t=Is(),e=Ri(),r=Hq(),n=ku(),s=Pu(),i=tB(),a=os(),o=nB(),u=Object.getOwnPropertyDescriptor;return ov.f=t?u:function(c,p){if(c=s(c),p=i(p),o)try{return u(c,p)}catch{}if(a(c,p))return n(!e(r.f,c,p),c[p])},ov}var Lv,Yk;function tH(){if(Yk)return Lv;Yk=1;var t=$n(),e=Sn(),r=/#|\.prototype\./,n=function(u,l){var c=i[s(u)];return c===o?!0:c===a?!1:e(l)?t(l):!!l},s=n.normalize=function(u){return String(u).replace(r,".").toLowerCase()},i=n.data={},a=n.NATIVE="N",o=n.POLYFILL="P";return Lv=n,Lv}var Uv,Xk;function iB(){if(Xk)return Uv;Xk=1;var t=Jq(),e=Du(),r=Iu(),n=t(t.bind);return Uv=function(s,i){return e(s),i===void 0?s:r?n(s,i):function(){return s.apply(i,arguments)}},Uv}var Vv={},zv,Zk;function aB(){if(Zk)return zv;Zk=1;var t=Is(),e=$n();return zv=t&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),zv}var Wv,Qk;function la(){if(Qk)return Wv;Qk=1;var t=as(),e=String,r=TypeError;return Wv=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")},Wv}var eP;function ao(){if(eP)return Vv;eP=1;var t=Is(),e=nB(),r=aB(),n=la(),s=tB(),i=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Vv.f=t?r?function(h,d,g){if(n(h),d=s(d),n(g),typeof h=="function"&&d==="prototype"&&"value"in g&&c in g&&!g[c]){var y=o(h,d);y&&y[c]&&(h[d]=g.value,g={configurable:l in g?g[l]:y[l],enumerable:u in g?g[u]:y[u],writable:!1})}return a(h,d,g)}:a:function(h,d,g){if(n(h),d=s(d),n(g),e)try{return a(h,d,g)}catch{}if("get"in g||"set"in g)throw new i("Accessors not supported");return"value"in g&&(h[d]=g.value),h},Vv}var Jv,tP;function ti(){if(tP)return Jv;tP=1;var t=Is(),e=ao(),r=ku();return Jv=t?function(n,s,i){return e.f(n,s,r(1,i))}:function(n,s,i){return n[s]=i,n},Jv}var Hv,rP;function oo(){if(rP)return Hv;rP=1;var t=cn(),e=sw(),r=Jq(),n=Sn(),s=sB().f,i=tH(),a=ju(),o=iB(),u=ti(),l=os(),c=function(p){var h=function(d,g,y){if(this instanceof h){switch(arguments.length){case 0:return new p;case 1:return new p(d);case 2:return new p(d,g)}return new p(d,g,y)}return e(p,this,arguments)};return h.prototype=p.prototype,h};return Hv=function(p,h){var d=p.target,g=p.global,y=p.stat,v=p.proto,E=g?t:y?t[d]:t[d]&&t[d].prototype,b=g?a:a[d]||u(a,d,{})[d],_=b.prototype,w,S,A,T,k,P,F,R,$;for(T in h)w=i(g?T:d+(y?".":"#")+T,p.forced),S=!w&&E&&l(E,T),P=b[T],S&&(p.dontCallGetSet?($=s(E,T),F=$&&$.value):F=E[T]),k=S&&F?F:h[T],!(!w&&!v&&typeof P==typeof k)&&(p.bind&&S?R=o(k,t):p.wrap&&S?R=c(k):v&&n(k)?R=r(k):R=k,(p.sham||k&&k.sham||P&&P.sham)&&u(R,"sham",!0),u(b,T,R),v&&(A=d+"Prototype",l(a,A)||u(a,A,{}),u(a[A],T,k),p.real&&_&&(w||!_[T])&&u(_,T,k)))},Hv}var Kv,nP;function rH(){if(nP)return Kv;nP=1;var t=Math.ceil,e=Math.floor;return Kv=Math.trunc||function(n){var s=+n;return(s>0?e:t)(s)},Kv}var Gv,sP;function cw(){if(sP)return Gv;sP=1;var t=rH();return Gv=function(e){var r=+e;return r!==r||r===0?0:t(r)},Gv}var Yv,iP;function nH(){if(iP)return Yv;iP=1;var t=cw(),e=Math.max,r=Math.min;return Yv=function(n,s){var i=t(n);return i<0?e(i+s,0):r(i,s)},Yv}var Xv,aP;function sH(){if(aP)return Xv;aP=1;var t=cw(),e=Math.min;return Xv=function(r){var n=t(r);return n>0?e(n,9007199254740991):0},Xv}var Zv,oP;function oB(){if(oP)return Zv;oP=1;var t=sH();return Zv=function(e){return t(e.length)},Zv}var Qv,uP;function iH(){if(uP)return Qv;uP=1;var t=Pu(),e=nH(),r=oB(),n=function(s){return function(i,a,o){var u=t(i),l=r(u);if(l===0)return!s&&-1;var c=e(o,l),p;if(s&&a!==a){for(;l>c;)if(p=u[c++],p!==p)return!0}else for(;l>c;c++)if((s||c in u)&&u[c]===a)return s||c||0;return!s&&-1}};return Qv={includes:n(!0),indexOf:n(!1)},Qv}var e0,lP;function fw(){return lP||(lP=1,e0={}),e0}var t0,cP;function uB(){if(cP)return t0;cP=1;var t=fn(),e=os(),r=Pu(),n=iH().indexOf,s=fw(),i=t([].push);return t0=function(a,o){var u=r(a),l=0,c=[],p;for(p in u)!e(s,p)&&e(u,p)&&i(c,p);for(;o.length>l;)e(u,p=o[l++])&&(~n(c,p)||i(c,p));return c},t0}var r0,fP;function pw(){return fP||(fP=1,r0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),r0}var n0,pP;function lB(){if(pP)return n0;pP=1;var t=uB(),e=pw();return n0=Object.keys||function(n){return t(n,e)},n0}var s0={},dP;function cB(){return dP||(dP=1,s0.f=Object.getOwnPropertySymbols),s0}var i0,hP;function aH(){if(hP)return i0;hP=1;var t=Is(),e=fn(),r=Ri(),n=$n(),s=lB(),i=cB(),a=Hq(),o=lw(),u=Kq(),l=Object.assign,c=Object.defineProperty,p=e([].concat);return i0=!l||n(function(){if(t&&l({b:1},l(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},d={},g=Symbol("assign detection"),y="abcdefghijklmnopqrst";return h[g]=7,y.split("").forEach(function(v){d[v]=v}),l({},h)[g]!==7||s(l({},d)).join("")!==y})?function(d,g){for(var y=o(d),v=arguments.length,E=1,b=i.f,_=a.f;v>E;)for(var w=u(arguments[E++]),S=b?p(s(w),b(w)):s(w),A=S.length,T=0,k;A>T;)k=S[T++],(!t||r(_,w,k))&&(y[k]=w[k]);return y}:l,i0}var mP;function oH(){if(mP)return ok;mP=1;var t=oo(),e=aH();return t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),ok}var a0,gP;function uH(){if(gP)return a0;gP=1,oH();var t=ju();return a0=t.Object.assign,a0}var o0,yP;function lH(){if(yP)return o0;yP=1;var t=uH();return o0=t,o0}var u0,vP;function cH(){if(vP)return u0;vP=1;var t=lH();return u0=t,u0}var l0,bP;function fH(){if(bP)return l0;bP=1;var t=cH();return l0=t,l0}var c0,EP;function pH(){return EP||(EP=1,c0=fH()),c0}var dH=pH();const SP=ot(dH);var _P={},f0,wP;function hH(){if(wP)return f0;wP=1;var t=fn();return f0=t([].slice),f0}var p0,xP;function mH(){if(xP)return p0;xP=1;var t=fn(),e=Du(),r=as(),n=os(),s=hH(),i=Iu(),a=Function,o=t([].concat),u=t([].join),l={},c=function(p,h,d){if(!n(l,h)){for(var g=[],y=0;y<h;y++)g[y]="a["+y+"]";l[h]=a("C,a","return new C("+u(g,",")+")")}return l[h](p,d)};return p0=i?a.bind:function(h){var d=e(this),g=d.prototype,y=s(arguments,1),v=function(){var b=o(y,s(arguments));return this instanceof v?c(d,b.length,b):d.apply(h,b)};return r(g)&&(v.prototype=g),v},p0}var AP;function gH(){if(AP)return _P;AP=1;var t=oo(),e=mH();return t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e}),_P}var d0,OP;function yH(){if(OP)return d0;OP=1;var t=cn(),e=ju();return d0=function(r,n){var s=e[r+"Prototype"],i=s&&s[n];if(i)return i;var a=t[r],o=a&&a.prototype;return o&&o[n]},d0}var h0,CP;function vH(){if(CP)return h0;CP=1,gH();var t=yH();return h0=t("Function","bind"),h0}var m0,RP;function bH(){if(RP)return m0;RP=1;var t=Mu(),e=vH(),r=Function.prototype;return m0=function(n){var s=n.bind;return n===r||t(r,n)&&s===r.bind?e:s},m0}var g0,TP;function EH(){if(TP)return g0;TP=1;var t=bH();return g0=t,g0}var y0,IP;function SH(){if(IP)return y0;IP=1;var t=EH();return y0=t,y0}var v0,kP;function _H(){if(kP)return v0;kP=1;var t=SH();return v0=t,v0}var b0,PP;function wH(){return PP||(PP=1,b0=_H()),b0}var xH=wH();const AH=ot(xH);function c1(){var t;return c1=SP?AH(t=SP).call(t):function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},c1.apply(null,arguments)}var E0={exports:{}};/*!
50
- Copyright (c) 2018 Jed Watson.
51
- Licensed under the MIT License (MIT), see
52
- http://jedwatson.github.io/classnames
53
- */var jP;function OH(){return jP||(jP=1,(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(i=s(i,n(o)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var o in i)e.call(i,o)&&i[o]&&(a=s(a,o));return a}function s(i,a){return a?i?i+" "+a:i+a:i}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(E0)),E0.exports}var CH=OH();const RH=ot(CH);var Ro={},S0,NP;function TH(){return NP||(NP=1,S0=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(s){t.addRange(s)}),e&&e.focus()}}),S0}var _0,MP;function IH(){if(MP)return _0;MP=1;var t=TH(),e={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,a)}function s(i,a){var o,u,l,c,p,h,d=!1;a||(a={}),o=a.debug||!1;try{l=t(),c=document.createRange(),p=document.getSelection(),h=document.createElement("span"),h.textContent=i,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(y){if(y.stopPropagation(),a.format)if(y.preventDefault(),typeof y.clipboardData>"u"){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=e[a.format]||e.default;window.clipboardData.setData(v,i)}else y.clipboardData.clearData(),y.clipboardData.setData(a.format,i);a.onCopy&&(y.preventDefault(),a.onCopy(y.clipboardData))}),document.body.appendChild(h),c.selectNodeContents(h),p.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");d=!0}catch(y){o&&console.error("unable to copy using execCommand: ",y),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),d=!0}catch(v){o&&console.error("unable to copy using clipboardData: ",v),o&&console.error("falling back to prompt"),u=n("message"in a?a.message:r),window.prompt(u,i)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(c):p.removeAllRanges()),h&&document.body.removeChild(h),l()}return d}return _0=s,_0}var DP;function kH(){if(DP)return Ro;DP=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(S)}Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.CopyToClipboard=void 0;var e=s(sF()),r=s(IH()),n=["text","onCopy","options","children"];function s(S){return S&&S.__esModule?S:{default:S}}function i(S,A){var T=Object.keys(S);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(S);A&&(k=k.filter(function(P){return Object.getOwnPropertyDescriptor(S,P).enumerable})),T.push.apply(T,k)}return T}function a(S){for(var A=1;A<arguments.length;A++){var T=arguments[A]!=null?arguments[A]:{};A%2?i(Object(T),!0).forEach(function(k){_(S,k,T[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(T)):i(Object(T)).forEach(function(k){Object.defineProperty(S,k,Object.getOwnPropertyDescriptor(T,k))})}return S}function o(S,A){if(S==null)return{};var T=u(S,A),k,P;if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(S);for(P=0;P<F.length;P++)k=F[P],!(A.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(S,k)&&(T[k]=S[k])}return T}function u(S,A){if(S==null)return{};var T={},k=Object.keys(S),P,F;for(F=0;F<k.length;F++)P=k[F],!(A.indexOf(P)>=0)&&(T[P]=S[P]);return T}function l(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function c(S,A){for(var T=0;T<A.length;T++){var k=A[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}function p(S,A,T){return A&&c(S.prototype,A),Object.defineProperty(S,"prototype",{writable:!1}),S}function h(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),A&&d(S,A)}function d(S,A){return d=Object.setPrototypeOf||function(k,P){return k.__proto__=P,k},d(S,A)}function g(S){var A=E();return function(){var k=b(S),P;if(A){var F=b(this).constructor;P=Reflect.construct(k,arguments,F)}else P=k.apply(this,arguments);return y(this,P)}}function y(S,A){if(A&&(t(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(S)}function v(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(S){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)},b(S)}function _(S,A,T){return A in S?Object.defineProperty(S,A,{value:T,enumerable:!0,configurable:!0,writable:!0}):S[A]=T,S}var w=(function(S){h(T,S);var A=g(T);function T(){var k;l(this,T);for(var P=arguments.length,F=new Array(P),R=0;R<P;R++)F[R]=arguments[R];return k=A.call.apply(A,[this].concat(F)),_(v(k),"onClick",function($){var M=k.props,K=M.text,ee=M.onCopy,G=M.children,Z=M.options,X=e.default.Children.only(G),te=(0,r.default)(K,Z);ee&&ee(K,te),X&&X.props&&typeof X.props.onClick=="function"&&X.props.onClick($)}),k}return p(T,[{key:"render",value:function(){var P=this.props;P.text,P.onCopy,P.options;var F=P.children,R=o(P,n),$=e.default.Children.only(F);return e.default.cloneElement($,a(a({},R),{},{onClick:this.onClick}))}}]),T})(e.default.PureComponent);return Ro.CopyToClipboard=w,_(w,"defaultProps",{onCopy:void 0,options:void 0}),Ro}var w0,FP;function PH(){if(FP)return w0;FP=1;var t=kH(),e=t.CopyToClipboard;return e.CopyToClipboard=e,w0=e,w0}var jH=PH();function xc(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xc=function(e){return typeof e}:xc=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xc(t)}function NH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MH(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function DH(t,e,r){return e&&MH(t.prototype,e),t}function FH(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function qH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qP(r,!0).forEach(function(n){FH(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qP(r).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function BH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p1(t,e)}function f1(t){return f1=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},f1(t)}function p1(t,e){return p1=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},p1(t,e)}function $H(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function LH(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:$H(t)}var BP={};function UH(t){return t!==null&&xc(t)==="object"&&typeof t.get=="function"&&typeof t.has=="function"}function VH(t){return t==null}function zH(t,e,r){return VH(t)?r:UH(t)?t.has(e)?t.get(e):r:hasOwnProperty.call(t,e)?t[e]:r}function $P(t,e,r){for(var n=0;n!==e.length;)if(t=zH(t,e[n++],BP),t===BP)return r;return t}function LP(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=WH(e,r),s=t||Object.keys(qH({},r,{},e));return s.every(n)}function WH(t,e){return function(r){if(typeof r=="string")return Ws.is(e[r],t[r]);if(Array.isArray(r))return Ws.is($P(e,r),$P(t,r));throw new TypeError("Invalid key: expected Array or string: "+r)}}var JH=(function(t){BH(e,t);function e(){return NH(this,e),LH(this,f1(e).apply(this,arguments))}return DH(e,[{key:"shouldComponentUpdate",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!LP(this.updateOnProps,this.props,n,"updateOnProps")||!LP(this.updateOnStates,this.state,s,"updateOnStates")}}]),e})(Zn.Component),To={},x0,UP;function HH(){if(UP)return x0;UP=1;var t="Expected a function",e=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,u=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,l=typeof self=="object"&&self&&self.Object===Object&&self,c=u||l||Function("return this")(),p=Object.prototype,h=p.toString,d=Math.max,g=Math.min,y=function(){return c.Date.now()};function v(S,A,T){var k,P,F,R,$,M,K=0,ee=!1,G=!1,Z=!0;if(typeof S!="function")throw new TypeError(t);A=w(A)||0,E(T)&&(ee=!!T.leading,G="maxWait"in T,F=G?d(w(T.maxWait)||0,A):F,Z="trailing"in T?!!T.trailing:Z);function X(V){var ge=k,me=P;return k=P=void 0,K=V,R=S.apply(me,ge),R}function te(V){return K=V,$=setTimeout(ue,A),ee?X(V):R}function le(V){var ge=V-M,me=V-K,Me=A-ge;return G?g(Me,F-me):Me}function se(V){var ge=V-M,me=V-K;return M===void 0||ge>=A||ge<0||G&&me>=F}function ue(){var V=y();if(se(V))return ve(V);$=setTimeout(ue,le(V))}function ve(V){return $=void 0,Z&&k?X(V):(k=P=void 0,R)}function he(){$!==void 0&&clearTimeout($),K=0,k=M=P=$=void 0}function re(){return $===void 0?R:ve(y())}function W(){var V=y(),ge=se(V);if(k=arguments,P=this,M=V,ge){if($===void 0)return te(M);if(G)return $=setTimeout(ue,A),X(M)}return $===void 0&&($=setTimeout(ue,A)),R}return W.cancel=he,W.flush=re,W}function E(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function b(S){return!!S&&typeof S=="object"}function _(S){return typeof S=="symbol"||b(S)&&h.call(S)==r}function w(S){if(typeof S=="number")return S;if(_(S))return e;if(E(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=E(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(n,"");var T=i.test(S);return T||a.test(S)?o(S.slice(2),T?2:8):s.test(S)?e:+S}return x0=v,x0}var VP;function KH(){if(VP)return To;VP=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(S)}Object.defineProperty(To,"__esModule",{value:!0}),To.DebounceInput=void 0;var e=s(sF()),r=s(HH()),n=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function s(S){return S&&S.__esModule?S:{default:S}}function i(S,A){if(S==null)return{};var T=a(S,A),k,P;if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(S);for(P=0;P<F.length;P++)k=F[P],!(A.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(S,k)&&(T[k]=S[k])}return T}function a(S,A){if(S==null)return{};var T={},k=Object.keys(S),P,F;for(F=0;F<k.length;F++)P=k[F],!(A.indexOf(P)>=0)&&(T[P]=S[P]);return T}function o(S,A){var T=Object.keys(S);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(S);A&&(k=k.filter(function(P){return Object.getOwnPropertyDescriptor(S,P).enumerable})),T.push.apply(T,k)}return T}function u(S){for(var A=1;A<arguments.length;A++){var T=arguments[A]!=null?arguments[A]:{};A%2?o(Object(T),!0).forEach(function(k){_(S,k,T[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(T)):o(Object(T)).forEach(function(k){Object.defineProperty(S,k,Object.getOwnPropertyDescriptor(T,k))})}return S}function l(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function c(S,A){for(var T=0;T<A.length;T++){var k=A[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}function p(S,A,T){return A&&c(S.prototype,A),Object.defineProperty(S,"prototype",{writable:!1}),S}function h(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),A&&d(S,A)}function d(S,A){return d=Object.setPrototypeOf||function(k,P){return k.__proto__=P,k},d(S,A)}function g(S){var A=E();return function(){var k=b(S),P;if(A){var F=b(this).constructor;P=Reflect.construct(k,arguments,F)}else P=k.apply(this,arguments);return y(this,P)}}function y(S,A){if(A&&(t(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(S)}function v(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(S){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)},b(S)}function _(S,A,T){return A in S?Object.defineProperty(S,A,{value:T,enumerable:!0,configurable:!0,writable:!0}):S[A]=T,S}var w=(function(S){h(T,S);var A=g(T);function T(k){var P;l(this,T),P=A.call(this,k),_(v(P),"onChange",function(R){R.persist();var $=P.state.value,M=P.props.minLength;P.setState({value:R.target.value},function(){var K=P.state.value;if(K.length>=M){P.notify(R);return}$.length>K.length&&P.notify(u(u({},R),{},{target:u(u({},R.target),{},{value:""})}))})}),_(v(P),"onKeyDown",function(R){R.key==="Enter"&&P.forceNotify(R);var $=P.props.onKeyDown;$&&(R.persist(),$(R))}),_(v(P),"onBlur",function(R){P.forceNotify(R);var $=P.props.onBlur;$&&(R.persist(),$(R))}),_(v(P),"createNotifier",function(R){if(R<0)P.notify=function(){return null};else if(R===0)P.notify=P.doNotify;else{var $=(0,r.default)(function(M){P.isDebouncing=!1,P.doNotify(M)},R);P.notify=function(M){P.isDebouncing=!0,$(M)},P.flush=function(){return $.flush()},P.cancel=function(){P.isDebouncing=!1,$.cancel()}}}),_(v(P),"doNotify",function(){var R=P.props.onChange;R.apply(void 0,arguments)}),_(v(P),"forceNotify",function(R){var $=P.props.debounceTimeout;if(!(!P.isDebouncing&&$>0)){P.cancel&&P.cancel();var M=P.state.value,K=P.props.minLength;M.length>=K?P.doNotify(R):P.doNotify(u(u({},R),{},{target:u(u({},R.target),{},{value:M})}))}}),P.isDebouncing=!1,P.state={value:typeof k.value>"u"||k.value===null?"":k.value};var F=P.props.debounceTimeout;return P.createNotifier(F),P}return p(T,[{key:"componentDidUpdate",value:function(P){if(!this.isDebouncing){var F=this.props,R=F.value,$=F.debounceTimeout,M=P.debounceTimeout,K=P.value,ee=this.state.value;typeof R<"u"&&K!==R&&ee!==R&&this.setState({value:R}),$!==M&&this.createNotifier($)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var P=this.props,F=P.element;P.onChange,P.value,P.minLength,P.debounceTimeout;var R=P.forceNotifyByEnter,$=P.forceNotifyOnBlur,M=P.onKeyDown,K=P.onBlur,ee=P.inputRef,G=i(P,n),Z=this.state.value,X;R?X={onKeyDown:this.onKeyDown}:M?X={onKeyDown:M}:X={};var te;$?te={onBlur:this.onBlur}:K?te={onBlur:K}:te={};var le=ee?{ref:ee}:{};return e.default.createElement(F,u(u(u(u({},G),{},{onChange:this.onChange,value:Z},X),te),le))}}]),T})(e.default.PureComponent);return To.DebounceInput=w,_(w,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0}),To}var A0,zP;function GH(){if(zP)return A0;zP=1;var t=KH(),e=t.DebounceInput;return e.DebounceInput=e,A0=e,A0}var YH=GH();const XH=ot(YH);var ZH=Ef();const QH=ot(ZH);var ic={exports:{}},O0={},C0,WP;function Af(){return WP||(WP=1,C0={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}),C0}var Ls={},JP;function fB(){if(JP)return Ls;JP=1;const t=Af(),e=()=>[{type:t.RANGE,from:48,to:57}],r=()=>[{type:t.CHAR,value:95},{type:t.RANGE,from:97,to:122},{type:t.RANGE,from:65,to:90}].concat(e()),n=()=>[{type:t.CHAR,value:9},{type:t.CHAR,value:10},{type:t.CHAR,value:11},{type:t.CHAR,value:12},{type:t.CHAR,value:13},{type:t.CHAR,value:32},{type:t.CHAR,value:160},{type:t.CHAR,value:5760},{type:t.RANGE,from:8192,to:8202},{type:t.CHAR,value:8232},{type:t.CHAR,value:8233},{type:t.CHAR,value:8239},{type:t.CHAR,value:8287},{type:t.CHAR,value:12288},{type:t.CHAR,value:65279}],s=()=>[{type:t.CHAR,value:10},{type:t.CHAR,value:13},{type:t.CHAR,value:8232},{type:t.CHAR,value:8233}];return Ls.words=()=>({type:t.SET,set:r(),not:!1}),Ls.notWords=()=>({type:t.SET,set:r(),not:!0}),Ls.ints=()=>({type:t.SET,set:e(),not:!1}),Ls.notInts=()=>({type:t.SET,set:e(),not:!0}),Ls.whitespace=()=>({type:t.SET,set:n(),not:!1}),Ls.notWhitespace=()=>({type:t.SET,set:n(),not:!0}),Ls.anyChar=()=>({type:t.SET,set:s(),not:!0}),Ls}var HP;function eK(){return HP||(HP=1,(function(t){const e=Af(),r=fB(),n="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",s={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(i){var a=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return i=i.replace(a,function(o,u,l,c,p,h,d,g){if(l)return o;var y=u?8:c?parseInt(c,16):p?parseInt(p,16):h?parseInt(h,8):d?n.indexOf(d):s[g],v=String.fromCharCode(y);return/[[\]{}^$.|?*+()]/.test(v)&&(v="\\"+v),v}),i},t.tokenizeClass=(i,a)=>{for(var o=[],u=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,l,c;(l=u.exec(i))!=null;)if(l[1])o.push(r.words());else if(l[2])o.push(r.ints());else if(l[3])o.push(r.whitespace());else if(l[4])o.push(r.notWords());else if(l[5])o.push(r.notInts());else if(l[6])o.push(r.notWhitespace());else if(l[7])o.push({type:e.RANGE,from:(l[8]||l[9]).charCodeAt(0),to:l[10].charCodeAt(0)});else if(c=l[12])o.push({type:e.CHAR,value:c.charCodeAt(0)});else return[o,u.lastIndex];t.error(a,"Unterminated character class")},t.error=(i,a)=>{throw new SyntaxError("Invalid regular expression: /"+i+"/: "+a)}})(O0)),O0}var Oa={},KP;function tK(){if(KP)return Oa;KP=1;const t=Af();return Oa.wordBoundary=()=>({type:t.POSITION,value:"b"}),Oa.nonWordBoundary=()=>({type:t.POSITION,value:"B"}),Oa.begin=()=>({type:t.POSITION,value:"^"}),Oa.end=()=>({type:t.POSITION,value:"$"}),Oa}var GP;function rK(){if(GP)return ic.exports;GP=1;const t=eK(),e=Af(),r=fB(),n=tK();return ic.exports=s=>{var i=0,a,o,u={type:e.ROOT,stack:[]},l=u,c=u.stack,p=[],h=S=>{t.error(s,`Nothing to repeat at column ${S-1}`)},d=t.strToChars(s);for(a=d.length;i<a;)switch(o=d[i++],o){case"\\":switch(o=d[i++],o){case"b":c.push(n.wordBoundary());break;case"B":c.push(n.nonWordBoundary());break;case"w":c.push(r.words());break;case"W":c.push(r.notWords());break;case"d":c.push(r.ints());break;case"D":c.push(r.notInts());break;case"s":c.push(r.whitespace());break;case"S":c.push(r.notWhitespace());break;default:/\d/.test(o)?c.push({type:e.REFERENCE,value:parseInt(o,10)}):c.push({type:e.CHAR,value:o.charCodeAt(0)})}break;case"^":c.push(n.begin());break;case"$":c.push(n.end());break;case"[":var g;d[i]==="^"?(g=!0,i++):g=!1;var y=t.tokenizeClass(d.slice(i),s);i+=y[1],c.push({type:e.SET,set:y[0],not:g});break;case".":c.push(r.anyChar());break;case"(":var v={type:e.GROUP,stack:[],remember:!0};o=d[i],o==="?"&&(o=d[i+1],i+=2,o==="="?v.followedBy=!0:o==="!"?v.notFollowedBy=!0:o!==":"&&t.error(s,`Invalid group, character '${o}' after '?' at column ${i-1}`),v.remember=!1),c.push(v),p.push(l),l=v,c=v.stack;break;case")":p.length===0&&t.error(s,`Unmatched ) at column ${i-1}`),l=p.pop(),c=l.options?l.options[l.options.length-1]:l.stack;break;case"|":l.options||(l.options=[l.stack],delete l.stack);var E=[];l.options.push(E),c=E;break;case"{":var b=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(i)),_,w;b!==null?(c.length===0&&h(i),_=parseInt(b[1],10),w=b[2]?b[3]?parseInt(b[3],10):1/0:_,i+=b[0].length,c.push({type:e.REPETITION,min:_,max:w,value:c.pop()})):c.push({type:e.CHAR,value:123});break;case"?":c.length===0&&h(i),c.push({type:e.REPETITION,min:0,max:1,value:c.pop()});break;case"+":c.length===0&&h(i),c.push({type:e.REPETITION,min:1,max:1/0,value:c.pop()});break;case"*":c.length===0&&h(i),c.push({type:e.REPETITION,min:0,max:1/0,value:c.pop()});break;default:c.push({type:e.CHAR,value:o.charCodeAt(0)})}return p.length!==0&&t.error(s,"Unterminated group"),u},ic.exports.types=e,ic.exports}var R0,YP;function nK(){if(YP)return R0;YP=1;class t{constructor(n,s){this.low=n,this.high=s,this.length=1+s-n}overlaps(n){return!(this.high<n.low||this.low>n.high)}touches(n){return!(this.high+1<n.low||this.low-1>n.high)}add(n){return new t(Math.min(this.low,n.low),Math.max(this.high,n.high))}subtract(n){return n.low<=this.low&&n.high>=this.high?[]:n.low>this.low&&n.high<this.high?[new t(this.low,n.low-1),new t(n.high+1,this.high)]:n.low<=this.low?[new t(n.high+1,this.high)]:[new t(this.low,n.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class e{constructor(n,s){this.ranges=[],this.length=0,n!=null&&this.add(n,s)}_update_length(){this.length=this.ranges.reduce((n,s)=>n+s.length,0)}add(n,s){var i=a=>{for(var o=0;o<this.ranges.length&&!a.touches(this.ranges[o]);)o++;for(var u=this.ranges.slice(0,o);o<this.ranges.length&&a.touches(this.ranges[o]);)a=a.add(this.ranges[o]),o++;u.push(a),this.ranges=u.concat(this.ranges.slice(o)),this._update_length()};return n instanceof e?n.ranges.forEach(i):(s==null&&(s=n),i(new t(n,s))),this}subtract(n,s){var i=a=>{for(var o=0;o<this.ranges.length&&!a.overlaps(this.ranges[o]);)o++;for(var u=this.ranges.slice(0,o);o<this.ranges.length&&a.overlaps(this.ranges[o]);)u=u.concat(this.ranges[o].subtract(a)),o++;this.ranges=u.concat(this.ranges.slice(o)),this._update_length()};return n instanceof e?n.ranges.forEach(i):(s==null&&(s=n),i(new t(n,s))),this}intersect(n,s){var i=[],a=o=>{for(var u=0;u<this.ranges.length&&!o.overlaps(this.ranges[u]);)u++;for(;u<this.ranges.length&&o.overlaps(this.ranges[u]);){var l=Math.max(this.ranges[u].low,o.low),c=Math.min(this.ranges[u].high,o.high);i.push(new t(l,c)),u++}};return n instanceof e?n.ranges.forEach(a):(s==null&&(s=n),a(new t(n,s))),this.ranges=i,this._update_length(),this}index(n){for(var s=0;s<this.ranges.length&&this.ranges[s].length<=n;)n-=this.ranges[s].length,s++;return this.ranges[s].low+n}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new e(this)}numbers(){return this.ranges.reduce((n,s)=>{for(var i=s.low;i<=s.high;)n.push(i),i++;return n},[])}subranges(){return this.ranges.map(n=>({low:n.low,high:n.high,length:1+n.high-n.low}))}}return R0=e,R0}var T0,XP;function sK(){if(XP)return T0;XP=1;const t=rK(),e=nK(),r=t.types;return T0=class Lo{constructor(s,i){if(this._setDefaults(s),s instanceof RegExp)this.ignoreCase=s.ignoreCase,this.multiline=s.multiline,s=s.source;else if(typeof s=="string")this.ignoreCase=i&&i.indexOf("i")!==-1,this.multiline=i&&i.indexOf("m")!==-1;else throw new Error("Expected a regexp or string");this.tokens=t(s)}_setDefaults(s){this.max=s.max!=null?s.max:Lo.prototype.max!=null?Lo.prototype.max:100,this.defaultRange=s.defaultRange?s.defaultRange:this.defaultRange.clone(),s.randInt&&(this.randInt=s.randInt)}gen(){return this._gen(this.tokens,[])}_gen(s,i){var a,o,u,l,c;switch(s.type){case r.ROOT:case r.GROUP:if(s.followedBy||s.notFollowedBy)return"";for(s.remember&&s.groupNumber===void 0&&(s.groupNumber=i.push(null)-1),a=s.options?this._randSelect(s.options):s.stack,o="",l=0,c=a.length;l<c;l++)o+=this._gen(a[l],i);return s.remember&&(i[s.groupNumber]=o),o;case r.POSITION:return"";case r.SET:var p=this._expand(s);return p.length?String.fromCharCode(this._randSelect(p)):"";case r.REPETITION:for(u=this.randInt(s.min,s.max===1/0?s.min+this.max:s.max),o="",l=0;l<u;l++)o+=this._gen(s.value,i);return o;case r.REFERENCE:return i[s.value-1]||"";case r.CHAR:var h=this.ignoreCase&&this._randBool()?this._toOtherCase(s.value):s.value;return String.fromCharCode(h)}}_toOtherCase(s){return s+(97<=s&&s<=122?-32:65<=s&&s<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(s){return s instanceof e?s.index(this.randInt(0,s.length-1)):s[this.randInt(0,s.length-1)]}_expand(s){if(s.type===t.types.CHAR)return new e(s.value);if(s.type===t.types.RANGE)return new e(s.from,s.to);{let i=new e;for(let a=0;a<s.set.length;a++){let o=this._expand(s.set[a]);if(i.add(o),this.ignoreCase)for(let u=0;u<o.length;u++){let l=o.index(u),c=this._toOtherCase(l);l!==c&&i.add(c)}}return s.not?this.defaultRange.clone().subtract(i):this.defaultRange.clone().intersect(i)}}randInt(s,i){return s+Math.floor(Math.random()*(1+i-s))}get defaultRange(){return this._range=this._range||new e(32,126)}set defaultRange(s){this._range=s}static randexp(s,i){var a;return typeof s=="string"&&(s=new RegExp(s,i)),s._randexp===void 0?(a=new Lo(s,i),s._randexp=a):(a=s._randexp,a._setDefaults(s)),a.gen()}static sugar(){RegExp.prototype.gen=function(){return Lo.randexp(this)}}},T0}var iK=sK();const aK=ot(iK);var I0,ZP;function oK(){if(ZP)return I0;ZP=1;var t=W_(),e=io(),r=_u(),n=Cr(),s=oa(),i=wu(),a=bf(),o=Sf(),u="[object Map]",l="[object Set]",c=Object.prototype,p=c.hasOwnProperty;function h(d){if(d==null)return!0;if(s(d)&&(n(d)||typeof d=="string"||typeof d.splice=="function"||i(d)||o(d)||r(d)))return!d.length;var g=e(d);if(g==u||g==l)return!d.size;if(a(d))return!t(d).length;for(var y in d)if(p.call(d,y))return!1;return!0}return I0=h,I0}var uK=oK();const lK=ot(uK);var cK=jF();const fK=ot(cK);var k0,QP;function pB(){if(QP)return k0;QP=1;var t=Ts(),e=Cr(),r=nn(),n="[object String]";function s(i){return typeof i=="string"||!e(i)&&r(i)&&t(i)==n}return k0=s,k0}var pK=pB();const dK=ot(pK);var P0,ej;function hK(){if(ej)return P0;ej=1;var t=tn(),e=function(){return t.Date.now()};return P0=e,P0}var j0,tj;function mK(){if(tj)return j0;tj=1;var t=rn(),e=hK(),r=QF(),n="Expected a function",s=Math.max,i=Math.min;function a(o,u,l){var c,p,h,d,g,y,v=0,E=!1,b=!1,_=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,t(l)&&(E=!!l.leading,b="maxWait"in l,h=b?s(r(l.maxWait)||0,u):h,_="trailing"in l?!!l.trailing:_);function w(M){var K=c,ee=p;return c=p=void 0,v=M,d=o.apply(ee,K),d}function S(M){return v=M,g=setTimeout(k,u),E?w(M):d}function A(M){var K=M-y,ee=M-v,G=u-K;return b?i(G,h-ee):G}function T(M){var K=M-y,ee=M-v;return y===void 0||K>=u||K<0||b&&ee>=h}function k(){var M=e();if(T(M))return P(M);g=setTimeout(k,A(M))}function P(M){return g=void 0,_&&c?w(M):(c=p=void 0,d)}function F(){g!==void 0&&clearTimeout(g),v=0,c=y=p=g=void 0}function R(){return g===void 0?d:P(e())}function $(){var M=e(),K=T(M);if(c=arguments,p=this,y=M,K){if(g===void 0)return S(y);if(b)return clearTimeout(g),g=setTimeout(k,u),w(y)}return g===void 0&&(g=setTimeout(k,u)),d}return $.cancel=F,$.flush=R,$}return j0=a,j0}var gK=mK();const yK=ot(gK);var N0,rj;function vK(){if(rj)return N0;rj=1;var t=_f(),e=Ru(),r=xu(),n=rn(),s=ua();function i(a,o,u,l){if(!n(a))return a;o=e(o,a);for(var c=-1,p=o.length,h=p-1,d=a;d!=null&&++c<p;){var g=s(o[c]),y=u;if(g==="__proto__"||g==="constructor"||g==="prototype")return a;if(c!=h){var v=d[g];y=l?l(v,g,d):void 0,y===void 0&&(y=n(v)?v:r(o[c+1])?[]:{})}t(d,g,y),d=d[g]}return a}return N0=i,N0}var M0,nj;function dB(){if(nj)return M0;nj=1;var t=vK();function e(r,n,s){return r==null?r:t(r,n,s)}return M0=e,M0}var bK=dB();const EK=ot(bK);var D0={},sj;function SK(){return sj||(sj=1,(function(t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=(function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var s in r){var i=r[s];e.call(n,i)?n[i].push(s):n[i]=[s]}return n})(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})(D0)),D0}var F0,ij;function hB(){return ij||(ij=1,F0={}),F0}var q0,aj;function _K(){if(aj)return q0;aj=1;var t=SK(),e=hB(),r=Array.prototype.push;function n(c,p){return p==2?function(h,d){return c.apply(void 0,arguments)}:function(h){return c.apply(void 0,arguments)}}function s(c,p){return p==2?function(h,d){return c(h,d)}:function(h){return c(h)}}function i(c){for(var p=c?c.length:0,h=Array(p);p--;)h[p]=c[p];return h}function a(c){return function(p){return c({},p)}}function o(c,p){return function(){for(var h=arguments.length,d=h-1,g=Array(h);h--;)g[h]=arguments[h];var y=g[p],v=g.slice(0,p);return y&&r.apply(v,y),p!=d&&r.apply(v,g.slice(p+1)),c.apply(this,v)}}function u(c,p){return function(){var h=arguments.length;if(h){for(var d=Array(h);h--;)d[h]=arguments[h];var g=d[0]=p.apply(void 0,d);return c.apply(void 0,d),g}}}function l(c,p,h,d){var g=typeof p=="function",y=p===Object(p);if(y&&(d=h,h=p,p=void 0),h==null)throw new TypeError;d||(d={});var v={cap:"cap"in d?d.cap:!0,curry:"curry"in d?d.curry:!0,fixed:"fixed"in d?d.fixed:!0,immutable:"immutable"in d?d.immutable:!0,rearg:"rearg"in d?d.rearg:!0},E=g?h:e,b="curry"in d&&d.curry,_="fixed"in d&&d.fixed,w="rearg"in d&&d.rearg,S=g?h.runInContext():void 0,A=g?h:{ary:c.ary,assign:c.assign,clone:c.clone,curry:c.curry,forEach:c.forEach,isArray:c.isArray,isError:c.isError,isFunction:c.isFunction,isWeakMap:c.isWeakMap,iteratee:c.iteratee,keys:c.keys,rearg:c.rearg,toInteger:c.toInteger,toPath:c.toPath},T=A.ary,k=A.assign,P=A.clone,F=A.curry,R=A.forEach,$=A.isArray,M=A.isError,K=A.isFunction,ee=A.isWeakMap,G=A.keys,Z=A.rearg,X=A.toInteger,te=A.toPath,le=G(t.aryMethod),se={castArray:function(ye){return function(){var Se=arguments[0];return $(Se)?ye(i(Se)):ye.apply(void 0,arguments)}},iteratee:function(ye){return function(){var Se=arguments[0],we=arguments[1],L=ye(Se,we),C=L.length;return v.cap&&typeof we=="number"?(we=we>2?we-2:1,C&&C<=we?L:s(L,we)):L}},mixin:function(ye){return function(Se){var we=this;if(!K(we))return ye(we,Object(Se));var L=[];return R(G(Se),function(C){K(Se[C])&&L.push([C,we.prototype[C]])}),ye(we,Object(Se)),R(L,function(C){var j=C[1];K(j)?we.prototype[C[0]]=j:delete we.prototype[C[0]]}),we}},nthArg:function(ye){return function(Se){var we=Se<0?1:X(Se)+1;return F(ye(Se),we)}},rearg:function(ye){return function(Se,we){var L=we?we.length:0;return F(ye(Se,we),L)}},runInContext:function(ye){return function(Se){return l(c,ye(Se),d)}}};function ue(ye,Se){if(v.cap){var we=t.iterateeRearg[ye];if(we)return Me(Se,we);var L=!g&&t.iterateeAry[ye];if(L)return me(Se,L)}return Se}function ve(ye,Se,we){return b||v.curry&&we>1?F(Se,we):Se}function he(ye,Se,we){if(v.fixed&&(_||!t.skipFixed[ye])){var L=t.methodSpread[ye],C=L&&L.start;return C===void 0?T(Se,we):o(Se,C)}return Se}function re(ye,Se,we){return v.rearg&&we>1&&(w||!t.skipRearg[ye])?Z(Se,t.methodRearg[ye]||t.aryRearg[we]):Se}function W(ye,Se){Se=te(Se);for(var we=-1,L=Se.length,C=L-1,j=P(Object(ye)),U=j;U!=null&&++we<L;){var Y=Se[we],ne=U[Y];ne!=null&&!(K(ne)||M(ne)||ee(ne))&&(U[Y]=P(we==C?ne:Object(ne))),U=U[Y]}return j}function V(ye){return ke.runInContext.convert(ye)(void 0)}function ge(ye,Se){var we=t.aliasToReal[ye]||ye,L=t.remap[we]||we,C=d;return function(j){var U=g?S:A,Y=g?S[L]:Se,ne=k(k({},C),j);return l(U,we,Y,ne)}}function me(ye,Se){return $e(ye,function(we){return typeof we=="function"?s(we,Se):we})}function Me(ye,Se){return $e(ye,function(we){var L=Se.length;return n(Z(s(we,L),Se),L)})}function $e(ye,Se){return function(){var we=arguments.length;if(!we)return ye();for(var L=Array(we);we--;)L[we]=arguments[we];var C=v.rearg?0:we-1;return L[C]=Se(L[C]),ye.apply(void 0,L)}}function Ie(ye,Se,we){var L,C=t.aliasToReal[ye]||ye,j=Se,U=se[C];return U?j=U(Se):v.immutable&&(t.mutate.array[C]?j=u(Se,i):t.mutate.object[C]?j=u(Se,a(Se)):t.mutate.set[C]&&(j=u(Se,W))),R(le,function(Y){return R(t.aryMethod[Y],function(ne){if(C==ne){var fe=t.methodSpread[C],Ne=fe&&fe.afterRearg;return L=Ne?he(C,re(C,j,Y),Y):re(C,he(C,j,Y),Y),L=ue(C,L),L=ve(C,L,Y),!1}}),!L}),L||(L=j),L==Se&&(L=b?F(L,1):function(){return Se.apply(this,arguments)}),L.convert=ge(C,Se),L.placeholder=Se.placeholder=we,L}if(!y)return Ie(p,h,E);var ke=h,Le=[];return R(le,function(ye){R(t.aryMethod[ye],function(Se){var we=ke[t.remap[Se]||Se];we&&Le.push([Se,Ie(Se,we,ke)])})}),R(G(ke),function(ye){var Se=ke[ye];if(typeof Se=="function"){for(var we=Le.length;we--;)if(Le[we][0]==ye)return;Se.convert=ge(ye,Se),Le.push([ye,Se])}}),R(Le,function(ye){ke[ye[0]]=ye[1]}),ke.convert=V,ke.placeholder=ke,R(G(ke),function(ye){R(t.realToAlias[ye]||[],function(Se){ke[Se]=ke[ye]})}),ke}return q0=l,q0}var B0,oj;function mB(){if(oj)return B0;oj=1;var t=JF(),e=t&&new t;return B0=e,B0}var $0,uj;function gB(){if(uj)return $0;uj=1;var t=Ou(),e=mB(),r=e?function(n,s){return e.set(n,s),n}:t;return $0=r,$0}var L0,lj;function Of(){if(lj)return L0;lj=1;var t=vf(),e=rn();function r(n){return function(){var s=arguments;switch(s.length){case 0:return new n;case 1:return new n(s[0]);case 2:return new n(s[0],s[1]);case 3:return new n(s[0],s[1],s[2]);case 4:return new n(s[0],s[1],s[2],s[3]);case 5:return new n(s[0],s[1],s[2],s[3],s[4]);case 6:return new n(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new n(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var i=t(n.prototype),a=n.apply(i,s);return e(a)?a:i}}return L0=r,L0}var U0,cj;function wK(){if(cj)return U0;cj=1;var t=Of(),e=tn(),r=1;function n(s,i,a){var o=i&r,u=t(s);function l(){var c=this&&this!==e&&this instanceof l?u:s;return c.apply(o?a:this,arguments)}return l}return U0=n,U0}var V0,fj;function yB(){if(fj)return V0;fj=1;var t=Math.max;function e(r,n,s,i){for(var a=-1,o=r.length,u=s.length,l=-1,c=n.length,p=t(o-u,0),h=Array(c+p),d=!i;++l<c;)h[l]=n[l];for(;++a<u;)(d||a<o)&&(h[s[a]]=r[a]);for(;p--;)h[l++]=r[a++];return h}return V0=e,V0}var z0,pj;function vB(){if(pj)return z0;pj=1;var t=Math.max;function e(r,n,s,i){for(var a=-1,o=r.length,u=-1,l=s.length,c=-1,p=n.length,h=t(o-l,0),d=Array(h+p),g=!i;++a<h;)d[a]=r[a];for(var y=a;++c<p;)d[y+c]=n[c];for(;++u<l;)(g||a<o)&&(d[y+s[u]]=r[a++]);return d}return z0=e,z0}var W0,dj;function xK(){if(dj)return W0;dj=1;function t(e,r){for(var n=e.length,s=0;n--;)e[n]===r&&++s;return s}return W0=t,W0}var J0,hj;function dw(){if(hj)return J0;hj=1;function t(){}return J0=t,J0}var H0,mj;function hw(){if(mj)return H0;mj=1;var t=vf(),e=dw(),r=4294967295;function n(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=r,this.__views__=[]}return n.prototype=t(e.prototype),n.prototype.constructor=n,H0=n,H0}var K0,gj;function AK(){if(gj)return K0;gj=1;function t(){}return K0=t,K0}var G0,yj;function bB(){if(yj)return G0;yj=1;var t=mB(),e=AK(),r=t?function(n){return t.get(n)}:e;return G0=r,G0}var Y0,vj;function OK(){if(vj)return Y0;vj=1;var t={};return Y0=t,Y0}var X0,bj;function CK(){if(bj)return X0;bj=1;var t=OK(),e=Object.prototype,r=e.hasOwnProperty;function n(s){for(var i=s.name+"",a=t[i],o=r.call(t,i)?a.length:0;o--;){var u=a[o],l=u.func;if(l==null||l==s)return u.name}return i}return X0=n,X0}var Z0,Ej;function EB(){if(Ej)return Z0;Ej=1;var t=vf(),e=dw();function r(n,s){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=void 0}return r.prototype=t(e.prototype),r.prototype.constructor=r,Z0=r,Z0}var Q0,Sj;function RK(){if(Sj)return Q0;Sj=1;var t=hw(),e=EB(),r=Su();function n(s){if(s instanceof t)return s.clone();var i=new e(s.__wrapped__,s.__chain__);return i.__actions__=r(s.__actions__),i.__index__=s.__index__,i.__values__=s.__values__,i}return Q0=n,Q0}var eb,_j;function TK(){if(_j)return eb;_j=1;var t=hw(),e=EB(),r=dw(),n=Cr(),s=nn(),i=RK(),a=Object.prototype,o=a.hasOwnProperty;function u(l){if(s(l)&&!n(l)&&!(l instanceof t)){if(l instanceof e)return l;if(o.call(l,"__wrapped__"))return i(l)}return new e(l)}return u.prototype=r.prototype,u.prototype.constructor=u,eb=u,eb}var tb,wj;function IK(){if(wj)return tb;wj=1;var t=hw(),e=bB(),r=CK(),n=TK();function s(i){var a=r(i),o=n[a];if(typeof o!="function"||!(a in t.prototype))return!1;if(i===o)return!0;var u=e(o);return!!u&&i===u[0]}return tb=s,tb}var rb,xj;function SB(){if(xj)return rb;xj=1;var t=gB(),e=NF(),r=e(t);return rb=r,rb}var nb,Aj;function kK(){if(Aj)return nb;Aj=1;var t=/\{\n\/\* \[wrapped with (.+)\] \*/,e=/,? & /;function r(n){var s=n.match(t);return s?s[1].split(e):[]}return nb=r,nb}var sb,Oj;function PK(){if(Oj)return sb;Oj=1;var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function e(r,n){var s=n.length;if(!s)return r;var i=s-1;return n[i]=(s>1?"& ":"")+n[i],n=n.join(s>2?", ":" "),r.replace(t,`{
54
- /* [wrapped with `+n+`] */
55
- `)}return sb=e,sb}var ib,Cj;function jK(){if(Cj)return ib;Cj=1;function t(e){return e!==e}return ib=t,ib}var ab,Rj;function NK(){if(Rj)return ab;Rj=1;function t(e,r,n){for(var s=n-1,i=e.length;++s<i;)if(e[s]===r)return s;return-1}return ab=t,ab}var ob,Tj;function MK(){if(Tj)return ob;Tj=1;var t=ZF(),e=jK(),r=NK();function n(s,i,a){return i===i?r(s,i,a):t(s,e,a)}return ob=n,ob}var ub,Ij;function DK(){if(Ij)return ub;Ij=1;var t=MK();function e(r,n){var s=r==null?0:r.length;return!!s&&t(r,n,0)>-1}return ub=e,ub}var lb,kj;function FK(){if(kj)return lb;kj=1;var t=Y_(),e=DK(),r=1,n=2,s=8,i=16,a=32,o=64,u=128,l=256,c=512,p=[["ary",u],["bind",r],["bindKey",n],["curry",s],["curryRight",i],["flip",c],["partial",a],["partialRight",o],["rearg",l]];function h(d,g){return t(p,function(y){var v="_."+y[0];g&y[1]&&!e(d,v)&&d.push(v)}),d.sort()}return lb=h,lb}var cb,Pj;function _B(){if(Pj)return cb;Pj=1;var t=kK(),e=PK(),r=L_(),n=FK();function s(i,a,o){var u=a+"";return r(i,e(u,n(t(u),o)))}return cb=s,cb}var fb,jj;function wB(){if(jj)return fb;jj=1;var t=IK(),e=SB(),r=_B(),n=4,s=8,i=32,a=64;function o(u,l,c,p,h,d,g,y,v,E){var b=l&s,_=b?g:void 0,w=b?void 0:g,S=b?d:void 0,A=b?void 0:d;l|=b?i:a,l&=~(b?a:i),l&n||(l&=-4);var T=[u,l,h,S,_,A,w,y,v,E],k=c.apply(void 0,T);return t(u)&&e(k,T),k.placeholder=p,r(k,u,l)}return fb=o,fb}var pb,Nj;function xB(){if(Nj)return pb;Nj=1;function t(e){var r=e;return r.placeholder}return pb=t,pb}var db,Mj;function qK(){if(Mj)return db;Mj=1;var t=Su(),e=xu(),r=Math.min;function n(s,i){for(var a=s.length,o=r(i.length,a),u=t(s);o--;){var l=i[o];s[o]=e(l,a)?u[l]:void 0}return s}return db=n,db}var hb,Dj;function mw(){if(Dj)return hb;Dj=1;var t="__lodash_placeholder__";function e(r,n){for(var s=-1,i=r.length,a=0,o=[];++s<i;){var u=r[s];(u===n||u===t)&&(r[s]=t,o[a++]=s)}return o}return hb=e,hb}var mb,Fj;function AB(){if(Fj)return mb;Fj=1;var t=yB(),e=vB(),r=xK(),n=Of(),s=wB(),i=xB(),a=qK(),o=mw(),u=tn(),l=1,c=2,p=8,h=16,d=128,g=512;function y(v,E,b,_,w,S,A,T,k,P){var F=E&d,R=E&l,$=E&c,M=E&(p|h),K=E&g,ee=$?void 0:n(v);function G(){for(var Z=arguments.length,X=Array(Z),te=Z;te--;)X[te]=arguments[te];if(M)var le=i(G),se=r(X,le);if(_&&(X=t(X,_,w,M)),S&&(X=e(X,S,A,M)),Z-=se,M&&Z<P){var ue=o(X,le);return s(v,E,y,G.placeholder,b,X,ue,T,k,P-Z)}var ve=R?b:this,he=$?ve[v]:v;return Z=X.length,T?X=a(X,T):K&&Z>1&&X.reverse(),F&&k<Z&&(X.length=k),this&&this!==u&&this instanceof G&&(he=ee||n(he)),he.apply(ve,X)}return G}return mb=y,mb}var gb,qj;function BK(){if(qj)return gb;qj=1;var t=$_(),e=Of(),r=AB(),n=wB(),s=xB(),i=mw(),a=tn();function o(u,l,c){var p=e(u);function h(){for(var d=arguments.length,g=Array(d),y=d,v=s(h);y--;)g[y]=arguments[y];var E=d<3&&g[0]!==v&&g[d-1]!==v?[]:i(g,v);if(d-=E.length,d<c)return n(u,l,r,h.placeholder,void 0,g,E,void 0,void 0,c-d);var b=this&&this!==a&&this instanceof h?p:u;return t(b,this,g)}return h}return gb=o,gb}var yb,Bj;function $K(){if(Bj)return yb;Bj=1;var t=$_(),e=Of(),r=tn(),n=1;function s(i,a,o,u){var l=a&n,c=e(i);function p(){for(var h=-1,d=arguments.length,g=-1,y=u.length,v=Array(y+d),E=this&&this!==r&&this instanceof p?c:i;++g<y;)v[g]=u[g];for(;d--;)v[g++]=arguments[++h];return t(E,l?o:this,v)}return p}return yb=s,yb}var vb,$j;function LK(){if($j)return vb;$j=1;var t=yB(),e=vB(),r=mw(),n="__lodash_placeholder__",s=1,i=2,a=4,o=8,u=128,l=256,c=Math.min;function p(h,d){var g=h[1],y=d[1],v=g|y,E=v<(s|i|u),b=y==u&&g==o||y==u&&g==l&&h[7].length<=d[8]||y==(u|l)&&d[7].length<=d[8]&&g==o;if(!(E||b))return h;y&s&&(h[2]=d[2],v|=g&s?0:a);var _=d[3];if(_){var w=h[3];h[3]=w?t(w,_,d[4]):_,h[4]=w?r(h[3],n):d[4]}return _=d[5],_&&(w=h[5],h[5]=w?e(w,_,d[6]):_,h[6]=w?r(h[5],n):d[6]),_=d[7],_&&(h[7]=_),y&u&&(h[8]=h[8]==null?d[8]:c(h[8],d[8])),h[9]==null&&(h[9]=d[9]),h[0]=d[0],h[1]=v,h}return vb=p,vb}var bb,Lj;function gw(){if(Lj)return bb;Lj=1;var t=gB(),e=wK(),r=BK(),n=AB(),s=$K(),i=bB(),a=LK(),o=SB(),u=_B(),l=G_(),c="Expected a function",p=1,h=2,d=8,g=16,y=32,v=64,E=Math.max;function b(_,w,S,A,T,k,P,F){var R=w&h;if(!R&&typeof _!="function")throw new TypeError(c);var $=A?A.length:0;if($||(w&=-97,A=T=void 0),P=P===void 0?P:E(l(P),0),F=F===void 0?F:l(F),$-=T?T.length:0,w&v){var M=A,K=T;A=T=void 0}var ee=R?void 0:i(_),G=[_,w,S,A,T,M,K,k,P,F];if(ee&&a(G,ee),_=G[0],w=G[1],S=G[2],A=G[3],T=G[4],F=G[9]=G[9]===void 0?R?0:_.length:E(G[9]-$,0),!F&&w&(d|g)&&(w&=-25),!w||w==p)var Z=e(_,w,S);else w==d||w==g?Z=r(_,w,F):(w==y||w==(p|y))&&!T.length?Z=s(_,w,S,A):Z=n.apply(void 0,G);var X=ee?t:o;return u(X(Z,G),_,w)}return bb=b,bb}var Eb,Uj;function UK(){if(Uj)return Eb;Uj=1;var t=gw(),e=128;function r(n,s,i){return s=i?void 0:s,s=n&&s==null?n.length:s,t(n,e,void 0,void 0,void 0,void 0,s)}return Eb=r,Eb}var Sb,Vj;function VK(){if(Vj)return Sb;Vj=1;var t=X_(),e=4;function r(n){return t(n,e)}return Sb=r,Sb}var _b,zj;function zK(){if(zj)return _b;zj=1;var t=gw(),e=8;function r(n,s,i){s=i?void 0:s;var a=t(n,e,void 0,void 0,void 0,void 0,void 0,s);return a.placeholder=r.placeholder,a}return r.placeholder={},_b=r,_b}var wb,Wj;function WK(){if(Wj)return wb;Wj=1;var t=Ts(),e=nn(),r=Ef(),n="[object DOMException]",s="[object Error]";function i(a){if(!e(a))return!1;var o=t(a);return o==s||o==n||typeof a.message=="string"&&typeof a.name=="string"&&!r(a)}return wb=i,wb}var xb,Jj;function JK(){if(Jj)return xb;Jj=1;var t=io(),e=nn(),r="[object WeakMap]";function n(s){return e(s)&&t(s)==r}return xb=n,xb}var Ab,Hj;function HK(){if(Hj)return Ab;Hj=1;var t=X_(),e=Tu(),r=1;function n(s){return e(typeof s=="function"?s:t(s,r))}return Ab=n,Ab}var Ob,Kj;function KK(){if(Kj)return Ob;Kj=1;var t=gw(),e=sq(),r=256,n=e(function(s,i){return t(s,r,void 0,void 0,void 0,i)});return Ob=n,Ob}var Cb,Gj;function GK(){if(Gj)return Cb;Gj=1;var t=U_(),e=Su(),r=Cr(),n=Cu(),s=GF(),i=ua(),a=Qs();function o(u){return r(u)?t(u,i):n(u)?[u]:e(s(a(u)))}return Cb=o,Cb}var Rb,Yj;function YK(){return Yj||(Yj=1,Rb={ary:UK(),assign:tq(),clone:VK(),curry:zK(),forEach:Y_(),isArray:Cr(),isError:WK(),isFunction:Eu(),isWeakMap:JK(),iteratee:HK(),keys:W_(),rearg:KK(),toInteger:G_(),toPath:GK()}),Rb}var Tb,Xj;function XK(){if(Xj)return Tb;Xj=1;var t=_K(),e=YK();function r(n,s,i){return t(e,n,s,i)}return Tb=r,Tb}var Ib,Zj;function OB(){if(Zj)return Ib;Zj=1;var t=XK(),e=t("set",dB());return e.placeholder=hB(),Ib=e,Ib}var kb,Qj;function ZK(){return Qj||(Qj=1,kb=OB()),kb}var QK=ZK();const eG=ot(QK);/*!
56
- * https://github.com/Starcounter-Jack/JSON-Patch
57
- * (c) 2017-2022 Joachim Wester
58
- * MIT licensed
59
- */var tG=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),rG=Object.prototype.hasOwnProperty;function d1(t,e){return rG.call(t,e)}function h1(t){if(Array.isArray(t)){for(var e=new Array(t.length),r=0;r<e.length;r++)e[r]=""+r;return e}if(Object.keys)return Object.keys(t);var n=[];for(var s in t)d1(t,s)&&n.push(s);return n}function vn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function m1(t){for(var e=0,r=t.length,n;e<r;){if(n=t.charCodeAt(e),n>=48&&n<=57){e++;continue}return!1}return!0}function Wi(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function CB(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function g1(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var e=0,r=t.length;e<r;e++)if(g1(t[e]))return!0}else if(typeof t=="object"){for(var n=h1(t),s=n.length,i=0;i<s;i++)if(g1(t[n[i]]))return!0}}return!1}function eN(t,e){var r=[t];for(var n in e){var s=typeof e[n]=="object"?JSON.stringify(e[n],null,2):e[n];typeof s<"u"&&r.push(n+": "+s)}return r.join(`
60
- `)}var RB=(function(t){tG(e,t);function e(r,n,s,i,a){var o=this.constructor,u=t.call(this,eN(r,{name:n,index:s,operation:i,tree:a}))||this;return u.name=n,u.index=s,u.operation=i,u.tree=a,Object.setPrototypeOf(u,o.prototype),u.message=eN(r,{name:n,index:s,operation:i,tree:a}),u}return e})(Error),ar=RB,nG=vn,Fa={add:function(t,e,r){return t[e]=this.value,{newDocument:r}},remove:function(t,e,r){var n=t[e];return delete t[e],{newDocument:r,removed:n}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:function(t,e,r){var n=su(r,this.path);n&&(n=vn(n));var s=Yi(r,{op:"remove",path:this.from}).removed;return Yi(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(t,e,r){var n=su(r,this.from);return Yi(r,{op:"add",path:this.path,value:vn(n)}),{newDocument:r}},test:function(t,e,r){return{newDocument:r,test:iu(t[e],this.value)}},_get:function(t,e,r){return this.value=t[e],{newDocument:r}}},sG={add:function(t,e,r){return m1(e)?t.splice(e,0,this.value):t[e]=this.value,{newDocument:r,index:e}},remove:function(t,e,r){var n=t.splice(e,1);return{newDocument:r,removed:n[0]}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:Fa.move,copy:Fa.copy,test:Fa.test,_get:Fa._get};function su(t,e){if(e=="")return t;var r={op:"_get",path:e};return Yi(t,r),r.value}function Yi(t,e,r,n,s,i){if(r===void 0&&(r=!1),n===void 0&&(n=!0),s===void 0&&(s=!0),i===void 0&&(i=0),r&&(typeof r=="function"?r(e,0,t,e.path):Vc(e,0)),e.path===""){var a={newDocument:t};if(e.op==="add")return a.newDocument=e.value,a;if(e.op==="replace")return a.newDocument=e.value,a.removed=t,a;if(e.op==="move"||e.op==="copy")return a.newDocument=su(t,e.from),e.op==="move"&&(a.removed=t),a;if(e.op==="test"){if(a.test=iu(t,e.value),a.test===!1)throw new ar("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return a.newDocument=t,a}else{if(e.op==="remove")return a.removed=t,a.newDocument=null,a;if(e.op==="_get")return e.value=t,a;if(r)throw new ar("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,e,t);return a}}else{n||(t=vn(t));var o=e.path||"",u=o.split("/"),l=t,c=1,p=u.length,h=void 0,d=void 0,g=void 0;for(typeof r=="function"?g=r:g=Vc;;){if(d=u[c],d&&d.indexOf("~")!=-1&&(d=CB(d)),s&&(d=="__proto__"||d=="prototype"&&c>0&&u[c-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&h===void 0&&(l[d]===void 0?h=u.slice(0,c).join("/"):c==p-1&&(h=e.path),h!==void 0&&g(e,0,t,h)),c++,Array.isArray(l)){if(d==="-")d=l.length;else{if(r&&!m1(d))throw new ar("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,e,t);m1(d)&&(d=~~d)}if(c>=p){if(r&&e.op==="add"&&d>l.length)throw new ar("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,e,t);var a=sG[e.op].call(e,l,d,t);if(a.test===!1)throw new ar("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return a}}else if(c>=p){var a=Fa[e.op].call(e,l,d,t);if(a.test===!1)throw new ar("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return a}if(l=l[d],r&&c<p&&(!l||typeof l!="object"))throw new ar("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,e,t)}}}function bi(t,e,r,n,s){if(n===void 0&&(n=!0),s===void 0&&(s=!0),r&&!Array.isArray(e))throw new ar("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(t=vn(t));for(var i=new Array(e.length),a=0,o=e.length;a<o;a++)i[a]=Yi(t,e[a],r,!0,s,a),t=i[a].newDocument;return i.newDocument=t,i}function iG(t,e,r){var n=Yi(t,e);if(n.test===!1)throw new ar("Test operation failed","TEST_OPERATION_FAILED",r,e,t);return n.newDocument}function Vc(t,e,r,n){if(typeof t!="object"||t===null||Array.isArray(t))throw new ar("Operation is not an object","OPERATION_NOT_AN_OBJECT",e,t,r);if(Fa[t.op]){if(typeof t.path!="string")throw new ar("Operation `path` property is not a string","OPERATION_PATH_INVALID",e,t,r);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new ar('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,t,r);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new ar("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new ar("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&g1(t.value))throw new ar("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",e,t,r);if(r){if(t.op=="add"){var s=t.path.split("/").length,i=n.split("/").length;if(s!==i+1&&s!==i)throw new ar("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",e,t,r)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==n)throw new ar("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",e,t,r)}else if(t.op==="move"||t.op==="copy"){var a={op:"_get",path:t.from,value:void 0},o=TB([a],r);if(o&&o.name==="OPERATION_PATH_UNRESOLVABLE")throw new ar("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,r)}}}else throw new ar("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",e,t,r)}function TB(t,e,r){try{if(!Array.isArray(t))throw new ar("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)bi(vn(e),vn(t),r||!0);else{r=r||Vc;for(var n=0;n<t.length;n++)r(t[n],n,e,void 0)}}catch(s){if(s instanceof ar)return s;throw s}}function iu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var r=Array.isArray(t),n=Array.isArray(e),s,i,a;if(r&&n){if(i=t.length,i!=e.length)return!1;for(s=i;s--!==0;)if(!iu(t[s],e[s]))return!1;return!0}if(r!=n)return!1;var o=Object.keys(t);if(i=o.length,i!==Object.keys(e).length)return!1;for(s=i;s--!==0;)if(!e.hasOwnProperty(o[s]))return!1;for(s=i;s--!==0;)if(a=o[s],!iu(t[a],e[a]))return!1;return!0}return t!==t&&e!==e}const aG=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:ar,_areEquals:iu,applyOperation:Yi,applyPatch:bi,applyReducer:iG,deepClone:nG,getValueByPointer:su,validate:TB,validator:Vc},Symbol.toStringTag,{value:"Module"}));/*!
61
- * https://github.com/Starcounter-Jack/JSON-Patch
62
- * (c) 2017-2021 Joachim Wester
63
- * MIT license
64
- */var yw=new WeakMap,oG=(function(){function t(e){this.observers=new Map,this.obj=e}return t})(),uG=(function(){function t(e,r){this.callback=e,this.observer=r}return t})();function lG(t){return yw.get(t)}function cG(t,e){return t.observers.get(e)}function fG(t,e){t.observers.delete(e.callback)}function pG(t,e){e.unobserve()}function dG(t,e){var r=[],n,s=lG(t);if(!s)s=new oG(t),yw.set(t,s);else{var i=cG(s,e);n=i&&i.observer}if(n)return n;if(n={},s.value=vn(t),e){n.callback=e,n.next=null;var a=function(){y1(n)},o=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return n.patches=r,n.object=t,n.unobserve=function(){y1(n),clearTimeout(n.next),fG(s,n),typeof window<"u"&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},s.observers.set(e,new uG(e,n)),n}function y1(t,e){e===void 0&&(e=!1);var r=yw.get(t.object);vw(r.value,t.object,t.patches,"",e),t.patches.length&&bi(r.value,t.patches);var n=t.patches;return n.length>0&&(t.patches=[],t.callback&&t.callback(n)),n}function vw(t,e,r,n,s){if(e!==t){typeof e.toJSON=="function"&&(e=e.toJSON());for(var i=h1(e),a=h1(t),o=!1,u=a.length-1;u>=0;u--){var l=a[u],c=t[l];if(d1(e,l)&&!(e[l]===void 0&&c!==void 0&&Array.isArray(e)===!1)){var p=e[l];typeof c=="object"&&c!=null&&typeof p=="object"&&p!=null&&Array.isArray(c)===Array.isArray(p)?vw(c,p,r,n+"/"+Wi(l),s):c!==p&&(s&&r.push({op:"test",path:n+"/"+Wi(l),value:vn(c)}),r.push({op:"replace",path:n+"/"+Wi(l),value:vn(p)}))}else Array.isArray(t)===Array.isArray(e)?(s&&r.push({op:"test",path:n+"/"+Wi(l),value:vn(c)}),r.push({op:"remove",path:n+"/"+Wi(l)}),o=!0):(s&&r.push({op:"test",path:n,value:t}),r.push({op:"replace",path:n,value:e}))}if(!(!o&&i.length==a.length))for(var u=0;u<i.length;u++){var l=i[u];!d1(t,l)&&e[l]!==void 0&&r.push({op:"add",path:n+"/"+Wi(l),value:vn(e[l])})}}}function hG(t,e,r){r===void 0&&(r=!1);var n=[];return vw(t,e,n,"",r),n}const mG=Object.freeze(Object.defineProperty({__proto__:null,compare:hG,generate:y1,observe:dG,unobserve:pG},Symbol.toStringTag,{value:"Module"}));Object.assign({},aG,mG,{JsonPatchError:RB,deepClone:vn,escapePathComponent:Wi,unescapePathComponent:CB});var Pb,tN;function gG(){if(tN)return Pb;tN=1;var t=function(b){return e(b)&&!r(b)};function e(E){return!!E&&typeof E=="object"}function r(E){var b=Object.prototype.toString.call(E);return b==="[object RegExp]"||b==="[object Date]"||i(E)}var n=typeof Symbol=="function"&&Symbol.for,s=n?Symbol.for("react.element"):60103;function i(E){return E.$$typeof===s}function a(E){return Array.isArray(E)?[]:{}}function o(E,b){return b.clone!==!1&&b.isMergeableObject(E)?y(a(E),E,b):E}function u(E,b,_){return E.concat(b).map(function(w){return o(w,_)})}function l(E,b){if(!b.customMerge)return y;var _=b.customMerge(E);return typeof _=="function"?_:y}function c(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(b){return Object.propertyIsEnumerable.call(E,b)}):[]}function p(E){return Object.keys(E).concat(c(E))}function h(E,b){try{return b in E}catch{return!1}}function d(E,b){return h(E,b)&&!(Object.hasOwnProperty.call(E,b)&&Object.propertyIsEnumerable.call(E,b))}function g(E,b,_){var w={};return _.isMergeableObject(E)&&p(E).forEach(function(S){w[S]=o(E[S],_)}),p(b).forEach(function(S){d(E,S)||(h(E,S)&&_.isMergeableObject(b[S])?w[S]=l(S,_)(E[S],b[S],_):w[S]=o(b[S],_))}),w}function y(E,b,_){_=_||{},_.arrayMerge=_.arrayMerge||u,_.isMergeableObject=_.isMergeableObject||t,_.cloneUnlessOtherwiseSpecified=o;var w=Array.isArray(b),S=Array.isArray(E),A=w===S;return A?w?_.arrayMerge(E,b,_):g(E,b,_):o(b,_)}y.all=function(b,_){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(w,S){return y(w,S,_)},{})};var v=y;return Pb=v,Pb}var yG=gG();const rN=ot(yG),qt={add:bG,replace:Ac,remove:EG,merge:SG,mergeDeep:_G,context:wG,getIn:CG,applyPatch:vG,parentPathMatch:OG,flatten:qu,fullyNormalizeArray:RG,normalizeArray:kB,isPromise:TG,forEachNew:xG,forEachNewPrimitive:AG,isJsonPatch:NB,isContextPatch:PG,isPatch:Cf,isMutation:MB,isAdditiveMutation:zc,isGenerator:kG,isFunction:jB,isObject:Xi,isError:IG};function vG(t,e,r){if(r=r||{},e={...e,path:e.path&&nN(e.path)},e.op==="merge"){const n=jb(t,e.path);Object.assign(n,e.value),bi(t,[Ac(e.path,n)])}else if(e.op==="mergeDeep"){const n=jb(t,e.path),s=rN(n,e.value,{customMerge:i=>{if(i==="enum")return(a,o)=>Array.isArray(a)&&Array.isArray(o)?[...new Set([...a,...o])]:rN(a,o)}});t=bi(t,[Ac(e.path,s)]).newDocument}else if(e.op==="add"&&e.path===""&&Xi(e.value)){const n=Object.keys(e.value).reduce((s,i)=>(s.push({op:"add",path:`/${nN(i)}`,value:e.value[i]}),s),[]);bi(t,n)}else if(e.op==="replace"&&e.path===""){let{value:n}=e;r.allowMetaPatches&&e.meta&&zc(e)&&(Array.isArray(e.value)||Xi(e.value))&&(n={...n,...e.meta}),t=n}else if(bi(t,[e]),r.allowMetaPatches&&e.meta&&zc(e)&&(Array.isArray(e.value)||Xi(e.value))){const s={...jb(t,e.path),...e.meta};bi(t,[Ac(e.path,s)])}return t}function nN(t){return Array.isArray(t)?t.length<1?"":`/${t.map(e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:t}function bG(t,e){return{op:"add",path:t,value:e}}function Ac(t,e,r){return{op:"replace",path:t,value:e,meta:r}}function EG(t){return{op:"remove",path:t}}function SG(t,e){return{type:"mutation",op:"merge",path:t,value:e}}function _G(t,e){return{type:"mutation",op:"mergeDeep",path:t,value:e}}function wG(t,e){return{type:"context",path:t,value:e}}function xG(t,e){try{return IB(t,b1,e)}catch(r){return r}}function AG(t,e){try{return IB(t,v1,e)}catch(r){return r}}function IB(t,e,r){const n=t.filter(zc).map(a=>e(a.value,r,a.path))||[],s=qu(n);return PB(s)}function v1(t,e,r){return r=r||[],Array.isArray(t)?t.map((n,s)=>v1(n,e,r.concat(s))):Xi(t)?Object.keys(t).map(n=>v1(t[n],e,r.concat(n))):e(t,r[r.length-1],r)}function b1(t,e,r){r=r||[];let n=[];if(r.length>0){const s=e(t,r[r.length-1],r);s&&(n=n.concat(s))}if(Array.isArray(t)){const s=t.map((i,a)=>b1(i,e,r.concat(a)));s&&(n=n.concat(s))}else if(Xi(t)){const s=Object.keys(t).map(i=>b1(t[i],e,r.concat(i)));s&&(n=n.concat(s))}return n=qu(n),n}function OG(t,e){if(!Array.isArray(e))return!1;for(let r=0,n=e.length;r<n;r+=1)if(e[r]!==t[r])return!1;return!0}function CG(t,e){return e.reduce((r,n)=>typeof n<"u"&&r?r[n]:r,t)}function RG(t){return PB(qu(kB(t)))}function kB(t){return Array.isArray(t)?t:[t]}function qu(t){return[].concat(...t.map(e=>Array.isArray(e)?qu(e):e))}function PB(t){return t.filter(e=>typeof e<"u")}function Xi(t){return t&&typeof t=="object"}function TG(t){return Xi(t)&&jB(t.then)}function jB(t){return t&&typeof t=="function"}function IG(t){return t instanceof Error}function NB(t){if(Cf(t)){const{op:e}=t;return e==="add"||e==="remove"||e==="replace"}return!1}function kG(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function MB(t){return NB(t)||Cf(t)&&t.type==="mutation"}function zc(t){return MB(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function PG(t){return Cf(t)&&t.type==="context"}function Cf(t){return t&&typeof t=="object"}function jb(t,e){try{return su(t,e)}catch(r){return console.error(r),{}}}var sN={},iN={},aN={},Nb,oN;function bw(){if(oN)return Nb;oN=1;var t=Qq(),e=eB(),r=t("keys");return Nb=function(n){return r[n]||(r[n]=e(n))},Nb}var Mb,uN;function jG(){if(uN)return Mb;uN=1;var t=$n();return Mb=!t(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Mb}var Db,lN;function Ew(){if(lN)return Db;lN=1;var t=os(),e=Sn(),r=lw(),n=bw(),s=jG(),i=n("IE_PROTO"),a=Object,o=a.prototype;return Db=s?a.getPrototypeOf:function(u){var l=r(u);if(t(l,i))return l[i];var c=l.constructor;return e(c)&&l instanceof c?c.prototype:l instanceof a?o:null},Db}var Fb,cN;function NG(){if(cN)return Fb;cN=1;var t=fn(),e=Du();return Fb=function(r,n,s){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[s]))}catch{}},Fb}var qb,fN;function MG(){if(fN)return qb;fN=1;var t=as();return qb=function(e){return t(e)||e===null},qb}var Bb,pN;function DG(){if(pN)return Bb;pN=1;var t=MG(),e=String,r=TypeError;return Bb=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")},Bb}var $b,dN;function Rf(){if(dN)return $b;dN=1;var t=NG(),e=as(),r=xf(),n=DG();return $b=Object.setPrototypeOf||("__proto__"in{}?(function(){var s=!1,i={},a;try{a=t(Object.prototype,"__proto__","set"),a(i,[]),s=i instanceof Array}catch{}return function(u,l){return r(u),n(l),e(u)&&(s?a(u,l):u.__proto__=l),u}})():void 0),$b}var Lb={},hN;function FG(){if(hN)return Lb;hN=1;var t=uB(),e=pw(),r=e.concat("length","prototype");return Lb.f=Object.getOwnPropertyNames||function(s){return t(s,r)},Lb}var Ub,mN;function qG(){if(mN)return Ub;mN=1;var t=Nu(),e=fn(),r=FG(),n=cB(),s=la(),i=e([].concat);return Ub=t("Reflect","ownKeys")||function(o){var u=r.f(s(o)),l=n.f;return l?i(u,l(o)):u},Ub}var Vb,gN;function DB(){if(gN)return Vb;gN=1;var t=os(),e=qG(),r=sB(),n=ao();return Vb=function(s,i,a){for(var o=e(i),u=n.f,l=r.f,c=0;c<o.length;c++){var p=o[c];!t(s,p)&&!(a&&t(a,p))&&u(s,p,l(i,p))}},Vb}var zb={},yN;function BG(){if(yN)return zb;yN=1;var t=Is(),e=aB(),r=ao(),n=la(),s=Pu(),i=lB();return zb.f=t&&!e?Object.defineProperties:function(o,u){n(o);for(var l=s(u),c=i(u),p=c.length,h=0,d;p>h;)r.f(o,d=c[h++],l[d]);return o},zb}var Wb,vN;function $G(){if(vN)return Wb;vN=1;var t=Nu();return Wb=t("document","documentElement"),Wb}var Jb,bN;function Sw(){if(bN)return Jb;bN=1;var t=la(),e=BG(),r=pw(),n=fw(),s=$G(),i=rB(),a=bw(),o=">",u="<",l="prototype",c="script",p=a("IE_PROTO"),h=function(){},d=function(b){return u+c+o+b+u+"/"+c+o},g=function(b){b.write(d("")),b.close();var _=b.parentWindow.Object;return b=null,_},y=function(){var b=i("iframe"),_="java"+c+":",w;return b.style.display="none",s.appendChild(b),b.src=String(_),w=b.contentWindow.document,w.open(),w.write(d("document.F=Object")),w.close(),w.F},v,E=function(){try{v=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&v?g(v):y():g(v);for(var b=r.length;b--;)delete E[l][r[b]];return E()};return n[p]=!0,Jb=Object.create||function(_,w){var S;return _!==null?(h[l]=t(_),S=new h,h[l]=null,S[p]=_):S=E(),w===void 0?S:e.f(S,w)},Jb}var Hb,EN;function FB(){if(EN)return Hb;EN=1;var t=as(),e=ti();return Hb=function(r,n){t(n)&&"cause"in n&&e(r,"cause",n.cause)},Hb}var Kb,SN;function LG(){if(SN)return Kb;SN=1;var t=fn(),e=Error,r=t("".replace),n=(function(a){return String(new e(a).stack)})("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,i=s.test(n);return Kb=function(a,o){if(i&&typeof a=="string"&&!e.prepareStackTrace)for(;o--;)a=r(a,s,"");return a},Kb}var Gb,_N;function UG(){if(_N)return Gb;_N=1;var t=$n(),e=ku();return Gb=!t(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",e(1,7)),r.stack!==7):!0}),Gb}var Yb,wN;function qB(){if(wN)return Yb;wN=1;var t=ti(),e=LG(),r=UG(),n=Error.captureStackTrace;return Yb=function(s,i,a,o){r&&(n?n(s,i):t(s,"stack",e(a,o)))},Yb}var Xb,xN;function uo(){return xN||(xN=1,Xb={}),Xb}var Zb,AN;function VG(){if(AN)return Zb;AN=1;var t=ei(),e=uo(),r=t("iterator"),n=Array.prototype;return Zb=function(s){return s!==void 0&&(e.Array===s||n[r]===s)},Zb}var Qb,ON;function _w(){if(ON)return Qb;ON=1;var t=ei(),e=t("toStringTag"),r={};return r[e]="z",Qb=String(r)==="[object z]",Qb}var eE,CN;function ww(){if(CN)return eE;CN=1;var t=_w(),e=Sn(),r=iw(),n=ei(),s=n("toStringTag"),i=Object,a=r((function(){return arguments})())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return eE=t?r:function(u){var l,c,p;return u===void 0?"Undefined":u===null?"Null":typeof(c=o(l=i(u),s))=="string"?c:a?r(l):(p=r(l))==="Object"&&e(l.callee)?"Arguments":p},eE}var tE,RN;function BB(){if(RN)return tE;RN=1;var t=ww(),e=uw(),r=aw(),n=uo(),s=ei(),i=s("iterator");return tE=function(a){if(!r(a))return e(a,i)||e(a,"@@iterator")||n[t(a)]},tE}var rE,TN;function zG(){if(TN)return rE;TN=1;var t=Ri(),e=Du(),r=la(),n=ow(),s=BB(),i=TypeError;return rE=function(a,o){var u=arguments.length<2?s(a):o;if(e(u))return r(t(u,a));throw new i(n(a)+" is not iterable")},rE}var nE,IN;function WG(){if(IN)return nE;IN=1;var t=Ri(),e=la(),r=uw();return nE=function(n,s,i){var a,o;e(n);try{if(a=r(n,"return"),!a){if(s==="throw")throw i;return i}a=t(a,n)}catch(u){o=!0,a=u}if(s==="throw")throw i;if(o)throw a;return e(a),i},nE}var sE,kN;function JG(){if(kN)return sE;kN=1;var t=iB(),e=Ri(),r=la(),n=ow(),s=VG(),i=oB(),a=Mu(),o=zG(),u=BB(),l=WG(),c=TypeError,p=function(d,g){this.stopped=d,this.result=g},h=p.prototype;return sE=function(d,g,y){var v=y&&y.that,E=!!(y&&y.AS_ENTRIES),b=!!(y&&y.IS_RECORD),_=!!(y&&y.IS_ITERATOR),w=!!(y&&y.INTERRUPTED),S=t(g,v),A,T,k,P,F,R,$,M=function(ee){return A&&l(A,"normal"),new p(!0,ee)},K=function(ee){return E?(r(ee),w?S(ee[0],ee[1],M):S(ee[0],ee[1])):w?S(ee,M):S(ee)};if(b)A=d.iterator;else if(_)A=d;else{if(T=u(d),!T)throw new c(n(d)+" is not iterable");if(s(T)){for(k=0,P=i(d);P>k;k++)if(F=K(d[k]),F&&a(h,F))return F;return new p(!1)}A=o(d,T)}for(R=b?d.next:A.next;!($=e(R,A)).done;){try{F=K($.value)}catch(ee){l(A,"throw",ee)}if(typeof F=="object"&&F&&a(h,F))return F}return new p(!1)},sE}var iE,PN;function xw(){if(PN)return iE;PN=1;var t=ww(),e=String;return iE=function(r){if(t(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},iE}var aE,jN;function $B(){if(jN)return aE;jN=1;var t=xw();return aE=function(e,r){return e===void 0?arguments.length<2?"":r:t(e)},aE}var NN;function HG(){if(NN)return aN;NN=1;var t=oo(),e=Mu(),r=Ew(),n=Rf(),s=DB(),i=Sw(),a=ti(),o=ku(),u=FB(),l=qB(),c=JG(),p=$B(),h=ei(),d=h("toStringTag"),g=Error,y=[].push,v=function(_,w){var S=e(E,this),A;n?A=n(new g,S?r(this):E):(A=S?this:i(E),a(A,d,"Error")),w!==void 0&&a(A,"message",p(w)),l(A,v,A.stack,1),arguments.length>2&&u(A,arguments[2]);var T=[];return c(_,y,{that:T}),a(A,"errors",T),A};n?n(v,g):s(v,g,{name:!0});var E=v.prototype=i(g.prototype,{constructor:o(1,v),message:o(1,""),name:o(1,"AggregateError")});return t({global:!0,constructor:!0,arity:2},{AggregateError:v}),aN}var MN;function LB(){return MN||(MN=1,HG()),iN}var DN;function UB(){return DN||(DN=1,LB()),sN}var FN={},oE,qN;function KG(){if(qN)return oE;qN=1;var t=ao().f;return oE=function(e,r,n){n in e||t(e,n,{configurable:!0,get:function(){return r[n]},set:function(s){r[n]=s}})},oE}var uE,BN;function GG(){if(BN)return uE;BN=1;var t=Sn(),e=as(),r=Rf();return uE=function(n,s,i){var a,o;return r&&t(a=s.constructor)&&a!==i&&e(o=a.prototype)&&o!==i.prototype&&r(n,o),n},uE}var lE,$N;function VB(){if($N)return lE;$N=1;var t=Nu(),e=os(),r=ti(),n=Mu(),s=Rf(),i=DB(),a=KG(),o=GG(),u=$B(),l=FB(),c=qB(),p=Is(),h=Fu();return lE=function(d,g,y,v){var E="stackTraceLimit",b=v?2:1,_=d.split("."),w=_[_.length-1],S=t.apply(null,_);if(S){var A=S.prototype;if(!h&&e(A,"cause")&&delete A.cause,!y)return S;var T=t("Error"),k=g(function(P,F){var R=u(v?F:P,void 0),$=v?new S(P):new S;return R!==void 0&&r($,"message",R),c($,k,$.stack,2),this&&n(A,this)&&o($,this,k),arguments.length>b&&l($,arguments[b]),$});if(k.prototype=A,w!=="Error"?s?s(k,T):i(k,T,{name:!0}):p&&E in S&&(a(k,S,E),a(k,S,"prepareStackTrace")),i(k,S),!h)try{A.name!==w&&r(A,"name",w),A.constructor=k}catch{}return k}},lE}var LN;function YG(){if(LN)return FN;LN=1;var t=oo(),e=cn(),r=sw(),n=VB(),s="WebAssembly",i=e[s],a=new Error("e",{cause:7}).cause!==7,o=function(l,c){var p={};p[l]=n(l,c,a),t({global:!0,constructor:!0,arity:1,forced:a},p)},u=function(l,c){if(i&&i[l]){var p={};p[l]=n(s+"."+l,c,a),t({target:s,stat:!0,constructor:!0,arity:1,forced:a},p)}};return o("Error",function(l){return function(p){return r(l,this,arguments)}}),o("EvalError",function(l){return function(p){return r(l,this,arguments)}}),o("RangeError",function(l){return function(p){return r(l,this,arguments)}}),o("ReferenceError",function(l){return function(p){return r(l,this,arguments)}}),o("SyntaxError",function(l){return function(p){return r(l,this,arguments)}}),o("TypeError",function(l){return function(p){return r(l,this,arguments)}}),o("URIError",function(l){return function(p){return r(l,this,arguments)}}),u("CompileError",function(l){return function(p){return r(l,this,arguments)}}),u("LinkError",function(l){return function(p){return r(l,this,arguments)}}),u("RuntimeError",function(l){return function(p){return r(l,this,arguments)}}),FN}var UN={},VN;function XG(){if(VN)return UN;VN=1;var t=oo(),e=Nu(),r=sw(),n=$n(),s=VB(),i="AggregateError",a=e(i),o=!n(function(){return a([1]).errors[0]!==1})&&n(function(){return a([1],i,{cause:7}).cause!==7});return t({global:!0,constructor:!0,arity:2,forced:o},{AggregateError:s(i,function(u){return function(c,p){return r(u,this,arguments)}},o,!0)}),UN}var cE,zN;function ZG(){return zN||(zN=1,cE=function(){}),cE}var fE,WN;function QG(){if(WN)return fE;WN=1;var t=cn(),e=Sn(),r=t.WeakMap;return fE=e(r)&&/native code/.test(String(r)),fE}var pE,JN;function zB(){if(JN)return pE;JN=1;var t=QG(),e=cn(),r=as(),n=ti(),s=os(),i=Zq(),a=bw(),o=fw(),u="Object already initialized",l=e.TypeError,c=e.WeakMap,p,h,d,g=function(b){return d(b)?h(b):p(b,{})},y=function(b){return function(_){var w;if(!r(_)||(w=h(_)).type!==b)throw new l("Incompatible receiver, "+b+" required");return w}};if(t||i.state){var v=i.state||(i.state=new c);v.get=v.get,v.has=v.has,v.set=v.set,p=function(b,_){if(v.has(b))throw new l(u);return _.facade=b,v.set(b,_),_},h=function(b){return v.get(b)||{}},d=function(b){return v.has(b)}}else{var E=a("state");o[E]=!0,p=function(b,_){if(s(b,E))throw new l(u);return _.facade=b,n(b,E,_),_},h=function(b){return s(b,E)?b[E]:{}},d=function(b){return s(b,E)}}return pE={set:p,get:h,has:d,enforce:g,getterFor:y},pE}var dE,HN;function eY(){if(HN)return dE;HN=1;var t=Is(),e=os(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,s=e(r,"name"),i=s&&(function(){}).name==="something",a=s&&(!t||t&&n(r,"name").configurable);return dE={EXISTS:s,PROPER:i,CONFIGURABLE:a},dE}var hE,KN;function WB(){if(KN)return hE;KN=1;var t=ti();return hE=function(e,r,n,s){return s&&s.enumerable?e[r]=n:t(e,r,n),e},hE}var mE,GN;function JB(){if(GN)return mE;GN=1;var t=$n(),e=Sn(),r=as(),n=Sw(),s=Ew(),i=WB(),a=ei(),o=Fu(),u=a("iterator"),l=!1,c,p,h;[].keys&&(h=[].keys(),"next"in h?(p=s(s(h)),p!==Object.prototype&&(c=p)):l=!0);var d=!r(c)||t(function(){var g={};return c[u].call(g)!==g});return d?c={}:o&&(c=n(c)),e(c[u])||i(c,u,function(){return this}),mE={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:l},mE}var gE,YN;function tY(){if(YN)return gE;YN=1;var t=_w(),e=ww();return gE=t?{}.toString:function(){return"[object "+e(this)+"]"},gE}var yE,XN;function Aw(){if(XN)return yE;XN=1;var t=_w(),e=ao().f,r=ti(),n=os(),s=tY(),i=ei(),a=i("toStringTag");return yE=function(o,u,l,c){var p=l?o:o&&o.prototype;p&&(n(p,a)||e(p,a,{configurable:!0,value:u}),c&&!t&&r(p,"toString",s))},yE}var vE,ZN;function rY(){if(ZN)return vE;ZN=1;var t=JB().IteratorPrototype,e=Sw(),r=ku(),n=Aw(),s=uo(),i=function(){return this};return vE=function(a,o,u,l){var c=o+" Iterator";return a.prototype=e(t,{next:r(+!l,u)}),n(a,c,!1,!0),s[c]=i,a},vE}var bE,QN;function HB(){if(QN)return bE;QN=1;var t=oo(),e=Ri(),r=Fu(),n=eY(),s=Sn(),i=rY(),a=Ew(),o=Rf(),u=Aw(),l=ti(),c=WB(),p=ei(),h=uo(),d=JB(),g=n.PROPER,y=n.CONFIGURABLE,v=d.IteratorPrototype,E=d.BUGGY_SAFARI_ITERATORS,b=p("iterator"),_="keys",w="values",S="entries",A=function(){return this};return bE=function(T,k,P,F,R,$,M){i(P,k,F);var K=function(he){if(he===R&&te)return te;if(!E&&he&&he in Z)return Z[he];switch(he){case _:return function(){return new P(this,he)};case w:return function(){return new P(this,he)};case S:return function(){return new P(this,he)}}return function(){return new P(this)}},ee=k+" Iterator",G=!1,Z=T.prototype,X=Z[b]||Z["@@iterator"]||R&&Z[R],te=!E&&X||K(R),le=k==="Array"&&Z.entries||X,se,ue,ve;if(le&&(se=a(le.call(new T)),se!==Object.prototype&&se.next&&(!r&&a(se)!==v&&(o?o(se,v):s(se[b])||c(se,b,A)),u(se,ee,!0,!0),r&&(h[ee]=A))),g&&R===w&&X&&X.name!==w&&(!r&&y?l(Z,"name",w):(G=!0,te=function(){return e(X,this)})),R)if(ue={values:K(w),keys:$?te:K(_),entries:K(S)},M)for(ve in ue)(E||G||!(ve in Z))&&c(Z,ve,ue[ve]);else t({target:k,proto:!0,forced:E||G},ue);return(!r||M)&&Z[b]!==te&&c(Z,b,te,{name:R}),h[k]=te,ue},bE}var EE,eM;function KB(){return eM||(eM=1,EE=function(t,e){return{value:t,done:e}}),EE}var SE,tM;function GB(){if(tM)return SE;tM=1;var t=Pu(),e=ZG(),r=uo(),n=zB(),s=ao().f,i=HB(),a=KB(),o=Fu(),u=Is(),l="Array Iterator",c=n.set,p=n.getterFor(l);SE=i(Array,"Array",function(d,g){c(this,{type:l,target:t(d),index:0,kind:g})},function(){var d=p(this),g=d.target,y=d.index++;if(!g||y>=g.length)return d.target=null,a(void 0,!0);switch(d.kind){case"keys":return a(y,!1);case"values":return a(g[y],!1)}return a([y,g[y]],!1)},"values");var h=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&h.name!=="values")try{s(h,"name",{value:"values"})}catch{}return SE}var rM={},_E,nM;function nY(){if(nM)return _E;nM=1;var t=fn(),e=cw(),r=xw(),n=xf(),s=t("".charAt),i=t("".charCodeAt),a=t("".slice),o=function(u){return function(l,c){var p=r(n(l)),h=e(c),d=p.length,g,y;return h<0||h>=d?u?"":void 0:(g=i(p,h),g<55296||g>56319||h+1===d||(y=i(p,h+1))<56320||y>57343?u?s(p,h):g:u?a(p,h,h+2):(g-55296<<10)+(y-56320)+65536)}};return _E={codeAt:o(!1),charAt:o(!0)},_E}var sM;function sY(){if(sM)return rM;sM=1;var t=nY().charAt,e=xw(),r=zB(),n=HB(),s=KB(),i="String Iterator",a=r.set,o=r.getterFor(i);return n(String,"String",function(u){a(this,{type:i,string:e(u),index:0})},function(){var l=o(this),c=l.string,p=l.index,h;return p>=c.length?s(void 0,!0):(h=t(c,p),l.index+=h.length,s(h,!1))}),rM}var wE,iM;function iY(){if(iM)return wE;iM=1,YG(),LB(),XG(),GB(),sY();var t=ju();return wE=t.AggregateError,wE}var aM={},xE,oM;function aY(){return oM||(oM=1,xE={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),xE}var uM;function oY(){if(uM)return aM;uM=1,GB();var t=aY(),e=cn(),r=Aw(),n=uo();for(var s in t)r(e[s],s),n[s]=n.Array;return aM}var AE,lM;function uY(){if(lM)return AE;lM=1,UB();var t=iY();return oY(),AE=t,AE}var OE,cM;function lY(){if(cM)return OE;cM=1;var t=uY();return OE=t,OE}var CE,fM;function cY(){if(fM)return CE;fM=1,UB();var t=lY();return CE=t,CE}var RE,pM;function fY(){return pM||(pM=1,RE=cY()),RE}var TE,dM;function pY(){return dM||(dM=1,TE=fY()),TE}var dY=pY();const hY=ot(dY);class mY extends hY{constructor(e,r,n){if(super(e,r,n),this.name=this.constructor.name,typeof r=="string"&&(this.message=r),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack,n!=null&&typeof n=="object"&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:s}=n;this.cause=s,s instanceof Error&&"stack"in s&&(this.stack=`${this.stack}
65
- CAUSE: ${s.stack}`)}}}class nr extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(mY,e)}constructor(e,r){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack}
66
- CAUSE: ${n.stack}`)}}}class As extends nr{constructor(e,r){if(super(e,r),r!=null&&typeof r=="object"){const{cause:n,...s}=r;Object.assign(this,s)}}}class wt extends nr{}class IE extends wt{}var Ow=function(){return!1},ri=function(){return!0};function Zt(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Bt(t){return function e(r){return arguments.length===0||Zt(r)?e:t.apply(this,arguments)}}function dt(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return Zt(r)?e:Bt(function(s){return t(r,s)});default:return Zt(r)&&Zt(n)?e:Zt(r)?Bt(function(s){return t(s,n)}):Zt(n)?Bt(function(s){return t(r,s)}):t(r,n)}}}function gY(t,e){t=t||[],e=e||[];var r,n=t.length,s=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<s;)i[i.length]=e[r],r+=1;return i}function Tf(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,n){return e.apply(this,arguments)};case 3:return function(r,n,s){return e.apply(this,arguments)};case 4:return function(r,n,s,i){return e.apply(this,arguments)};case 5:return function(r,n,s,i,a){return e.apply(this,arguments)};case 6:return function(r,n,s,i,a,o){return e.apply(this,arguments)};case 7:return function(r,n,s,i,a,o,u){return e.apply(this,arguments)};case 8:return function(r,n,s,i,a,o,u,l){return e.apply(this,arguments)};case 9:return function(r,n,s,i,a,o,u,l,c){return e.apply(this,arguments)};case 10:return function(r,n,s,i,a,o,u,l,c,p){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Cw(t,e,r){return function(){for(var n=[],s=0,i=t,a=0,o=!1;a<e.length||s<arguments.length;){var u;a<e.length&&(!Zt(e[a])||s>=arguments.length)?u=e[a]:(u=arguments[s],s+=1),n[a]=u,Zt(u)?o=!0:i-=1,a+=1}return!o&&i<=0?r.apply(this,n):Tf(Math.max(0,i),Cw(t,n,r))}}var yr=dt(function(e,r){return e===1?Bt(r):Tf(e,Cw(e,[],r))});function Vr(t){return function e(r,n,s){switch(arguments.length){case 0:return e;case 1:return Zt(r)?e:dt(function(i,a){return t(r,i,a)});case 2:return Zt(r)&&Zt(n)?e:Zt(r)?dt(function(i,a){return t(i,n,a)}):Zt(n)?dt(function(i,a){return t(r,i,a)}):Bt(function(i){return t(r,n,i)});default:return Zt(r)&&Zt(n)&&Zt(s)?e:Zt(r)&&Zt(n)?dt(function(i,a){return t(i,a,s)}):Zt(r)&&Zt(s)?dt(function(i,a){return t(i,n,a)}):Zt(n)&&Zt(s)?dt(function(i,a){return t(r,i,a)}):Zt(r)?Bt(function(i){return t(i,n,s)}):Zt(n)?Bt(function(i){return t(r,i,s)}):Zt(s)?Bt(function(i){return t(r,n,i)}):t(r,n,s)}}}const ca=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function yY(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Ti(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!ca(n)){for(var s=0;s<t.length;){if(typeof n[t[s]]=="function")return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(yY(n)){var i=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(n)}}return r.apply(this,arguments)}}function If(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const En={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};var vY=(function(){function t(e,r){this.xf=r,this.f=e,this.all=!0}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)||(this.all=!1,e=If(this.xf["@@transducer/step"](e,!1))),e},t})();function bY(t){return function(e){return new vY(t,e)}}var Rw=dt(Ti(["all"],bY,function(e,r){for(var n=0;n<r.length;){if(!e(r[n]))return!1;n+=1}return!0}));function hM(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function Wc(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}function EY(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function Mn(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function SY(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const Ko=typeof Object.is=="function"?Object.is:SY;var mM=Object.prototype.toString,YB=(function(){return mM.call(arguments)==="[object Arguments]"?function(e){return mM.call(e)==="[object Arguments]"}:function(e){return Mn("callee",e)}})(),_Y=!{toString:null}.propertyIsEnumerable("toString"),gM=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],yM=(function(){return arguments.propertyIsEnumerable("length")})(),wY=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},ta=Bt(typeof Object.keys=="function"&&!yM?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,s=[],i=yM&&YB(e);for(r in e)Mn(r,e)&&(!i||r!=="length")&&(s[s.length]=r);if(_Y)for(n=gM.length-1;n>=0;)r=gM[n],Mn(r,e)&&!wY(s,r)&&(s[s.length]=r),n-=1;return s}),rs=Bt(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function vM(t,e,r,n){var s=hM(t),i=hM(e);function a(o,u){return Tw(o,u,r.slice(),n.slice())}return!Wc(function(o,u){return!Wc(a,u,o)},i,s)}function Tw(t,e,r,n){if(Ko(t,e))return!0;var s=rs(t);if(s!==rs(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&EY(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&Ko(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!Ko(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var i=r.length-1;i>=0;){if(r[i]===t)return n[i]===e;i-=1}switch(s){case"Map":return t.size!==e.size?!1:vM(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size!==e.size?!1:vM(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=ta(t);if(a.length!==ta(e).length)return!1;var o=r.concat([t]),u=n.concat([e]);for(i=a.length-1;i>=0;){var l=a[i];if(!(Mn(l,e)&&Tw(e[l],t[l],o,u)))return!1;i-=1}return!0}var Ii=dt(function(e,r){return Tw(e,r,[],[])});function xY(t,e,r){var n,s;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(n=1/e;r<t.length;){if(s=t[r],s===0&&1/s===n)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(s=t[r],typeof s=="number"&&s!==s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Ii(t[r],e))return r;r+=1}return-1}function Jc(t,e){return xY(e,t,0)>=0}function Oc(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}function kE(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var Io=function(e){return(e<10?"0":"")+e},AY=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Io(e.getUTCMonth()+1)+"-"+Io(e.getUTCDate())+"T"+Io(e.getUTCHours())+":"+Io(e.getUTCMinutes())+":"+Io(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function XB(t){return function(){return!t.apply(this,arguments)}}function Bu(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}function OY(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}function Hc(t){return Object.prototype.toString.call(t)==="[object Object]"}var CY=(function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t})();function RY(t){return function(e){return new CY(t,e)}}var TY=dt(Ti(["fantasy-land/filter","filter"],RY,function(t,e){return Hc(e)?Bu(function(r,n){return t(e[n])&&(r[n]=e[n]),r},{},ta(e)):OY(t,e)})),IY=dt(function(e,r){return TY(XB(e),r)});function ZB(t,e){var r=function(a){var o=e.concat([t]);return Jc(a,o)?"<Circular>":ZB(a,o)},n=function(i,a){return Oc(function(o){return kE(o)+": "+r(i[o])},a.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Oc(r,t).join(", ")+"))";case"[object Array]":return"["+Oc(r,t).concat(n(t,IY(function(i){return/^\d+$/.test(i)},ta(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):kE(AY(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":kE(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var s=t.toString();if(s!=="[object Object]")return s}return"{"+n(t,ta(t)).join(", ")+"}"}}var Ja=Bt(function(e){return ZB(e,[])}),QB=dt(function(e,r){if(e===r)return r;function n(u,l){if(u>l!=l>u)return l>u?l:u}var s=n(e,r);if(s!==void 0)return s;var i=n(typeof e,typeof r);if(i!==void 0)return i===typeof e?e:r;var a=Ja(e),o=n(a,Ja(r));return o!==void 0&&o===a?e:r}),kY=(function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t})(),PY=function(e){return function(r){return new kY(e,r)}},kf=dt(Ti(["fantasy-land/map","map"],PY,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return yr(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return Bu(function(n,s){return n[s]=e(r[s]),n},{},ta(r));default:return Oc(e,r)}}));const lo=Number.isInteger||function(e){return e<<0===e};function Iw(t){return Object.prototype.toString.call(t)==="[object String]"}function Pf(t,e){var r=t<0?e.length+t:t;return Iw(e)?e.charAt(r):e[r]}var $u=dt(function(e,r){if(r!=null)return lo(e)?Pf(e,r):r[e]}),e$=dt(function(e,r){return kf($u(e),r)}),jY=Bt(function(e){return ca(e)?!0:!e||typeof e!="object"||Iw(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),bM=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function t$(t,e,r){return function(s,i,a){if(jY(a))return t(s,i,a);if(a==null)return i;if(typeof a["fantasy-land/reduce"]=="function")return e(s,i,a,"fantasy-land/reduce");if(a[bM]!=null)return r(s,i,a[bM]());if(typeof a.next=="function")return r(s,i,a);if(typeof a.reduce=="function")return e(s,i,a,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function NY(t,e,r){for(var n=0,s=r.length;n<s;){if(e=t["@@transducer/step"](e,r[n]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}var r$=dt(function(e,r){return Tf(e.length,function(){return e.apply(r,arguments)})});function MY(t,e,r){for(var n=r.next();!n.done;){if(e=t["@@transducer/step"](e,n.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function DY(t,e,r,n){return t["@@transducer/result"](r[n](r$(t["@@transducer/step"],t),e))}var kw=t$(NY,DY,MY),FY=(function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},t})();function n$(t){return new FY(t)}var co=Vr(function(t,e,r){return kw(typeof t=="function"?n$(t):t,e,r)}),qY=Bt(function(e){return yr(co(QB,0,e$("length",e)),function(){for(var r=0,n=e.length;r<n;){if(!e[r].apply(this,arguments))return!1;r+=1}return!0})}),ut=Bt(function(e){return function(){return e}}),BY=dt(function(e,r){return e&&r}),$Y=Bt(function(e){return yr(co(QB,0,e$("length",e)),function(){for(var r=0,n=e.length;r<n;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})});function LY(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function UY(t,e,r,n){return r[n](t,e)}var VY=t$(Bu,UY,LY),zY=dt(function(e,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](e):typeof e.ap=="function"?e.ap(r):typeof e=="function"?function(n){return e(n)(r(n))}:VY(function(n,s){return gY(n,kf(s,r))},[],e)}),WY=dt(function(e,r){return e.apply(this,r)}),Pw=Bt(function(e){return yr(e.length,e)});function JY(t,e,r){if(lo(t)&&ca(r)){var n=[].concat(r);return n[t]=e,n}var s={};for(var i in r)s[i]=r[i];return s[t]=e,s}var Kc=Bt(function(e){return e==null}),Be=Vr(function t(e,r,n){if(e.length===0)return r;var s=e[0];if(e.length>1){var i=!Kc(n)&&Mn(s,n)&&typeof n[s]=="object"?n[s]:lo(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,i)}return JY(s,r,n)}),HY=Vr(function(e,r,n){return Be([e],r,n)});function jw(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}var KY=dt(function(e,r){var n=yr(e,r);return yr(e,function(){return Bu(zY,kf(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),Nw=Bt(function(e){return KY(e.length,e)}),Lu=dt(function(e,r){return jw(e)?function(){return e.apply(this,arguments)&&r.apply(this,arguments)}:Nw(BY)(e,r)});function s$(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function i$(t,e,r){if(r||(r=new YY),GY(t))return t;var n=function(i){var a=r.get(t);if(a)return a;r.set(t,i);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o]);return i};switch(rs(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return s$(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function GY(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var YY=(function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){var n=this.hash(e),s=this.map[n];s||(this.map[n]=s=[]),s.push([e,r]),this.length+=1},t.prototype.hash=function(e){var r=[];for(var n in e)r.push(Object.prototype.toString.call(e[n]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(var r in this.map)for(var a=this.map[r],n=0;n<a.length;n+=1){var s=a[n];if(s[0]===e)return s[1]}return}var i=this.hash(e),a=this.map[i];if(a)for(var n=0;n<a.length;n+=1){var s=a[n];if(s[0]===e)return s[1]}},t})(),XY=Bt(function(e){return function(r,n){return e(r,n)?-1:e(n,r)?1:0}}),ZY=Bt(function(e){return!e}),Uu=Nw(ZY);function QY(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Mw(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return ca(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var Vu=Vr(Mw("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),eX=Bt(Mw("tail",Vu(1,1/0)));function qr(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Tf(arguments[0].length,co(QY,arguments[0],eX(arguments)))}var tX=Bt(function(t){return Pf(0,t)});function rX(t){return t}var a$=Bt(rX),nX=(function(){function t(e,r,n,s){this.valueFn=e,this.valueAcc=r,this.keyFn=n,this.xf=s,this.inputs={}}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(Mn(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,i$(this.valueAcc)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),e},t})();function sX(t,e,r){return function(n){return new nX(t,e,r,n)}}var iX=Cw(4,[],Ti([],sX,function(e,r,n,s){var i=n$(function(a,o){var u=n(o),l=e(Mn(u,a)?a[u]:i$(r),o);return l&&l["@@transducer/reduced"]?If(a):(a[u]=l,a)});return kw(i,{},s)})),Ha=dt(function(e,r){return r==null||r!==r?e:r}),aX=(function(){function t(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return t.prototype.add=function(e){return!EM(e,!0,this)},t.prototype.has=function(e){return EM(e,!1,this)},t})();function EM(t,e,r){var n=typeof t,s,i;switch(n){case"string":case"number":return t===0&&1/t===-1/0?r._items["-0"]?!0:(e&&(r._items["-0"]=!0),!1):r._nativeSet!==null?e?(s=r._nativeSet.size,r._nativeSet.add(t),i=r._nativeSet.size,i===s):r._nativeSet.has(t):n in r._items?t in r._items[n]?!0:(e&&(r._items[n][t]=!0),!1):(e&&(r._items[n]={},r._items[n][t]=!0),!1);case"boolean":if(n in r._items){var a=t?1:0;return r._items[n][a]?!0:(e&&(r._items[n][a]=!0),!1)}else return e&&(r._items[n]=t?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?e?(s=r._nativeSet.size,r._nativeSet.add(t),i=r._nativeSet.size,i===s):r._nativeSet.has(t):n in r._items?Jc(t,r._items[n])?!0:(e&&r._items[n].push(t),!1):(e&&(r._items[n]=[t]),!1);case"undefined":return r._items[n]?!0:(e&&(r._items[n]=!0),!1);case"object":if(t===null)return r._items.null?!0:(e&&(r._items.null=!0),!1);default:return n=Object.prototype.toString.call(t),n in r._items?Jc(t,r._items[n])?!0:(e&&r._items[n].push(t),!1):(e&&(r._items[n]=[t]),!1)}}var oX=dt(function(e,r){for(var n=[],s=0,i=e.length,a=r.length,o=new aX,u=0;u<a;u+=1)o.add(r[u]);for(;s<i;)o.add(e[s])&&(n[n.length]=e[s]),s+=1;return n}),uX=Vr(function(e,r,n){var s=Array.prototype.slice.call(n,0);return s.splice(e,r),s});function lX(t,e){if(e==null)return e;if(lo(t)&&ca(e))return uX(t,1,e);var r={};for(var n in e)r[n]=e[n];return delete r[t],r}function cX(t,e){if(lo(t)&&ca(e))return[].concat(e);var r={};for(var n in e)r[n]=e[n];return r}var bn=dt(function t(e,r){if(r==null)return r;switch(e.length){case 0:return r;case 1:return lX(e[0],r);default:var n=e[0],s=Array.prototype.slice.call(e,1);return r[n]==null?cX(n,r):HY(n,t(s,r[n]),r)}}),fX=(function(){function t(e,r){this.xf=r,this.n=e,this.i=0}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.result,t.prototype["@@transducer/step"]=function(e,r){this.i+=1;var n=this.n===0?e:this.xf["@@transducer/step"](e,r);return this.n>=0&&this.i>=this.n?If(n):n},t})();function pX(t){return function(e){return new fX(t,e)}}var dX=dt(Ti(["take"],pX,function(e,r){return Vu(0,e<0?1/0:e,r)}));function hX(t,e){for(var r=e.length-1;r>=0&&t(e[r]);)r-=1;return Vu(0,r+1,e)}var mX=(function(){function t(e,r){this.f=e,this.retained=[],this.xf=r}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.retain(e,r):this.flush(e,r)},t.prototype.flush=function(e,r){return e=kw(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,r)},t.prototype.retain=function(e,r){return this.retained.push(r),e},t})();function gX(t){return function(e){return new mX(t,e)}}var yX=dt(Ti([],gX,hX)),jf=Bt(function(t){return Pf(-1,t)}),vX=(function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.result,t.prototype["@@transducer/step"]=function(e,r){if(this.f){if(this.f(r))return e;this.f=null}return this.xf["@@transducer/step"](e,r)},t})();function bX(t){return function(e){return new vX(t,e)}}var EX=dt(Ti(["dropWhile"],bX,function(e,r){for(var n=0,s=r.length;n<s&&e(r[n]);)n+=1;return Vu(n,1/0,r)})),SX=dt(function(e,r){return e||r}),_X=dt(function(e,r){return jw(e)?function(){return e.apply(this,arguments)||r.apply(this,arguments)}:Nw(SX)(e,r)});function wX(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var xX=Bt(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():ca(e)?[]:Iw(e)?"":Hc(e)?{}:YB(e)?(function(){return arguments})():wX(e)?e.constructor.from(""):void 0}),AX=Bt(function(e){return yr(e.length,function(r,n){var s=Array.prototype.slice.call(arguments,0);return s[0]=n,s[1]=r,e.apply(this,s)})}),OX=dt(Mw("groupBy",iX(function(t,e){return t.push(e),t},[]))),CX=dt(function(e,r){if(e.length===0||Kc(r))return!1;for(var n=r,s=0;s<e.length;)if(!Kc(n)&&Mn(e[s],n))n=n[e[s]],s+=1;else return!1;return!0}),Go=dt(function(e,r){return CX([e],r)}),ki=function(t,e){switch(arguments.length){case 0:return ki;case 1:return(function(){return function r(n){switch(arguments.length){case 0:return r;default:return Ko(t,n)}}})();default:return Ko(t,e)}},Dw=Vr(function(e,r,n){return yr(Math.max(e.length,r.length,n.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})}),RX=dt(Jc),TX=Vu(0,-1),Fw=dt(function(e,r){return yr(e+1,function(){var n=arguments[e];if(n!=null&&jw(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ja(n)+' does not have a method named "'+r+'"')})}),zu=Bt(function(e){return e!=null&&Ii(e,xX(e))}),o$=Bt(function(e){return!zu(e)}),u$=Fw(1,"join");function SM(t){return Object.prototype.toString.call(t)==="[object Number]"}var IX=dt(function(e,r){return function(n){return function(s){return kf(function(i){return r(i,s)},n(e(s)))}}});function qw(t,e){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;var s=t[n];lo(s)?r=Pf(s,r):r=r[s]}return r}var kX=dt(function(e,r){return Bu(function(n,s){return n[s]=e(r[s],s,r),n},{},ta(r))}),PX=Vr(function(e,r,n){var s={},i;r=r||{},n=n||{};for(i in r)Mn(i,r)&&(s[i]=Mn(i,n)?e(i,r[i],n[i]):r[i]);for(i in n)Mn(i,n)&&!Mn(i,s)&&(s[i]=n[i]);return s}),jX=Vr(function t(e,r,n){return PX(function(s,i,a){return Hc(i)&&Hc(a)?t(e,i,a):e(s,i,a)},r,n)}),Nf=dt(function(e,r){return jX(function(n,s,i){return i},e,r)}),NX=dt(function(e,r){return Rw(XB(e),r)}),l$=function(t){return{value:t,map:function(e){return l$(e(t))}}},MX=Vr(function(e,r,n){return e(function(s){return l$(r(s))})(n).value}),Or=dt(qw),c$=Vr(function(e,r,n){return Ha(e,qw(r,n))}),Mf=Vr(function(e,r,n){return e(qw(r,n))}),f$=dt(function(e,r){for(var n={},s=0;s<e.length;)e[s]in r&&(n[e[s]]=r[e[s]]),s+=1;return n}),p$=Vr(function(e,r,n){return Ii(e,$u(r,n))}),Gc=Vr(function(e,r,n){return Ha(e,$u(r,n))}),DX=Vr(function(e,r,n){return e($u(r,n))}),FX=dt(function(e,r){if(!(SM(e)&&SM(r)))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(e<r?r-e:0),s=e<0?r+Math.abs(e):r-e,i=0;i<s;)n[i]=i+e,i+=1;return n}),qX=Bt(If),d$=Vr(function(e,r,n){return n.replace(e,r)}),BX=dt(function(e,r){return Array.prototype.slice.call(r,0).sort(e)}),h$=Fw(1,"split"),$X=dt(function(t,e){return Ii(dX(t.length,e),t)});function LX(t){return Object.prototype.toString.call(t)==="[object RegExp]"}var UX=dt(function(e,r){if(!LX(e))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ja(e));return s$(e).test(r)}),VX=(function(){function t(e,r){this.xf=r,this.pred=e,this.items=[]}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.result,t.prototype["@@transducer/step"]=function(e,r){return Wc(this.pred,r,this.items)?e:(this.items.push(r),this.xf["@@transducer/step"](e,r))},t})();function zX(t){return function(e){return new VX(t,e)}}var m$=dt(Ti([],zX,function(t,e){for(var r=0,n=e.length,s=[],i;r<n;)i=e[r],Wc(t,i,s)||(s[s.length]=i),r+=1;return s})),WX=Vr(function(e,r,n){return e(n)?r(n):n}),Df=ut(void 0),Pi=Ii(Df()),g$=Uu(Pi),y$=Ii(null),v$=Uu(y$),JX=Uu(Kc),HX=yr(1,qr(rs,ki("GeneratorFunction"))),KX=yr(1,qr(rs,ki("AsyncFunction"))),fa=$Y([qr(rs,ki("Function")),HX,KX]),b$=yr(1,fa(Array.isArray)?Array.isArray:qr(rs,ki("Array"))),GX=Lu(b$,zu),YX=Lu(b$,o$),pa=yr(1,qr(rs,ki("String"))),XX=Ii("");function E1(t){"@babel/helpers - typeof";return E1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E1(t)}var E$=function(e){return E1(e)==="object"},ZX=yr(1,Lu(v$,_X(E$,fa))),QX=Uu(ZX),Ff=qY([pa,QX,o$]),eZ=Uu(fa),tZ=yr(1,Lu(v$,E$)),rZ=qr(rs,ki("Object")),nZ=qr(Ja,Ii(Ja(Object))),sZ=Mf(Lu(fa,nZ),["constructor"]),ns=yr(1,function(t){if(!tZ(t)||!rZ(t))return!1;var e=Object.getPrototypeOf(t);return y$(e)?!0:sZ(e)}),iZ=yr(1,qr(rs,ki("RegExp")));function aZ(t){return cZ(t)||lZ(t)||uZ(t)||oZ()}function oZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
67
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uZ(t,e){if(t){if(typeof t=="string")return S1(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S1(t,e):void 0}}function lZ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cZ(t){if(Array.isArray(t))return S1(t)}function S1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var fZ=XY(function(t,e){return t.length>e.length}),pZ=qr(BX(fZ),tX,$u("length")),dZ=Pw(function(t,e,r){var n=r.apply(void 0,aZ(t));return JX(n)?qX(n):e}),hZ=function(e){var r=pZ(e);return yr(r,function(){for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return co(dZ(s),void 0,e)})},S$=Dw(YX,hZ,Df),qf=AX(RX),au=yr(3,function(t,e,r){var n=Or(t,r),s=Or(TX(t),r);if(!eZ(n)&&!GX(t)){var i=r$(n,s);return WY(i,e)}}),mZ=WX(pa,d$(/[.*+?^${}()|[\]\\-]/g,"\\$&")),gZ=function(e,r,n){if(n==null||e==null||r==null)throw TypeError("Input values must not be `null` or `undefined`")},_M=function(e,r){if(typeof e!="string"&&!(e instanceof String))throw TypeError("`".concat(r,"` must be a string"))},yZ=function(e){if(typeof e!="string"&&!(e instanceof String)&&!(e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},vZ=function(e,r,n){gZ(e,r,n),_M(n,"str"),_M(r,"replaceValue"),yZ(e);var s=new RegExp(iZ(e)?e:mZ(e),"g");return d$(s,r,n)},bZ=yr(3,vZ),EZ=Fw(2,"replaceAll"),SZ=fa(String.prototype.replaceAll)?EZ:bZ,_Z=Pw(function(t,e){return qr(h$(""),yX(qf(t)),u$(""))(e)}),_$=Pw(function(t,e){return qr(h$(""),EX(qf(t)),u$(""))(e)}),PE={exports:{}},wM;function wZ(){if(wM)return PE.exports;wM=1;var t=PE.exports={},e,r;function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=n}catch{e=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=s}catch{r=s}})();function i(y){if(e===setTimeout)return setTimeout(y,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(y,0);try{return e(y,0)}catch{try{return e.call(null,y,0)}catch{return e.call(this,y,0)}}}function a(y){if(r===clearTimeout)return clearTimeout(y);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(y);try{return r(y)}catch{try{return r.call(null,y)}catch{return r.call(this,y)}}}var o=[],u=!1,l,c=-1;function p(){!u||!l||(u=!1,l.length?o=l.concat(o):c=-1,o.length&&h())}function h(){if(!u){var y=i(p);u=!0;for(var v=o.length;v;){for(l=o,o=[];++c<v;)l&&l[c].run();c=-1,v=o.length}l=null,u=!1,a(y)}}t.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)v[E-1]=arguments[E];o.push(new d(y,v)),o.length===1&&!u&&i(h)};function d(y,v){this.fun=y,this.array=v}d.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={};function g(){}return t.on=g,t.addListener=g,t.once=g,t.off=g,t.removeListener=g,t.removeAllListeners=g,t.emit=g,t.prependListener=g,t.prependOnceListener=g,t.listeners=function(y){return[]},t.binding=function(y){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(y){throw new Error("process.chdir is not supported")},t.umask=function(){return 0},PE.exports}var xZ=wZ();const Yc=ot(xZ),Bw=()=>Mf(UX(/^win/),["platform"],Yc),$w=t=>{try{const e=new URL(t);return _Z(":",e.protocol)}catch{return}};qr($w,g$);const AZ=t=>{const e=t.lastIndexOf(".");return e>=0?t.substring(e).toLowerCase():""},w$=t=>{if(Yc.browser)return!1;const e=$w(t);return Pi(e)||e==="file"||/^[a-zA-Z]$/.test(e)},Lw=t=>{const e=$w(t);return e==="http"||e==="https"},x$=(t,e)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Gc(!1,"keepFileProtocol",e),s=Gc(Bw,"isWindows",e);let i=decodeURI(t);for(let o=0;o<r.length;o+=2)i=i.replace(r[o],r[o+1]);let a=i.substring(0,7).toLowerCase()==="file://";return a&&(i=i[7]==="/"?i.substring(8):i.substring(7),s()&&i[1]==="/"&&(i=`${i[0]}:${i.substring(1)}`),n?i=`file:///${i}`:(a=!1,i=s()?i:`/${i}`)),s()&&!a&&(i=SZ("/","\\",i),i.substring(1,3)===":\\"&&(i=i[0].toUpperCase()+i.substring(1))),i},OZ=t=>{const e=[/\?/g,"%3F",/#/g,"%23"];let r=t;Bw()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let n=0;n<e.length;n+=2)r=r.replace(e[n],e[n+1]);return r},A$=t=>{const e=t.indexOf("#");return e!==-1?t.substring(e):"#"},zt=t=>{const e=t.indexOf("#");let r=t;return e>=0&&(r=t.substring(0,e)),r},_1=()=>{if(Yc.browser)return zt(globalThis.location.href);const t=Yc.cwd(),e=jf(t);return["/","\\"].includes(e)?t:t+(Bw()?"\\":"/")},jr=(t,e)=>{const r=new URL(e,new URL(t,"resolve://"));if(r.protocol==="resolve:"){const{pathname:n,search:s,hash:i}=r;return n+s+i}return r.toString()},Bf=t=>{if(w$(t))return OZ(x$(t));try{return new URL(t).toString()}catch{return encodeURI(decodeURI(t)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Es=t=>w$(t)?x$(t):decodeURI(t);let ou=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:r="text/plain",data:n,parseResult:s}){this.uri=e,this.mediaType=r,this.data=n,this.parseResult=s}get extension(){return pa(this.uri)?AZ(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(rs(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}};class Ka{rootRef;refs;circular;constructor({refs:e=[],circular:r=!1}={}){this.refs=[],this.circular=r,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===void 0?e:this.rootRef,e.refSet=this),this}merge(e){for(const r of e.values())this.add(r);return this}has(e){const r=pa(e)?e:e.uri;return g$(this.find(n=>n.uri===r))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach(e=>{e.refSet=void 0}),this.rootRef=void 0,this.refs.length=0}}const O$={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:a$,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},CZ=IX(Or(["resolve","baseURI"]),Be(["resolve","baseURI"])),RZ=t=>XX(t)?_1():t,C$=(t,e)=>{const r=Nf(t,e);return MX(CZ,RZ,r)};class TZ extends nr{plugin;constructor(e,r){super(e,{cause:r.cause}),this.plugin=r.plugin}}const Uw=async(t,e,r)=>{const n=await Promise.all(r.map(au([t],e)));return r.filter((s,i)=>n[i])},Vw=async(t,e,r)=>{let n;for(const s of r)try{const i=await s[t].call(s,...e);return{plugin:s,result:i}}catch(i){n=new TZ("Error while running plugin",{cause:i,plugin:s})}return Promise.reject(n)};class w1 extends nr{}class zw extends nr{}class R$ extends zw{}class T$ extends R${}const IZ=async(t,e)=>{const r=e.resolve.resolvers.map(s=>{const i=Object.create(s);return Object.assign(i,e.resolve.resolverOpts)}),n=await Uw("canRead",[t,e],r);if(zu(n))throw new T$(t.uri);try{const{result:s}=await Vw("read",[t],n);return s}catch(s){throw new zw(`Error while reading file "${t.uri}"`,{cause:s})}},kZ=async(t,e)=>{const r=e.parse.parsers.map(s=>{const i=Object.create(s);return Object.assign(i,e.parse.parserOpts)}),n=await Uw("canParse",[t,e],r);if(zu(n))throw new T$(t.uri);try{const{plugin:s,result:i}=await Vw("parse",[t,e],n);return!s.allowEmpty&&i.isEmpty?Promise.reject(new w1(`Error while parsing file "${t.uri}". File is empty.`)):i}catch(s){throw new w1(`Error while parsing file "${t.uri}"`,{cause:s})}},PZ=async(t,e)=>{const r=new ou({uri:Bf(zt(t)),mediaType:e.parse.mediaType}),n=await IZ(r,e);return kZ(new ou({...r,data:n}),e)};var dr={},jE,xM;function jZ(){if(xM)return jE;xM=1;function t(e){return e===null}return jE=t,jE}var NE,AM;function NZ(){if(AM)return NE;AM=1;var t=Ts(),e=nn(),r="[object Number]";function n(s){return typeof s=="number"||e(s)&&t(s)==r}return NE=n,NE}var ME,OM;function MZ(){if(OM)return ME;OM=1;var t=Ts(),e=nn(),r="[object Boolean]";function n(s){return s===!0||s===!1||e(s)&&t(s)==r}return ME=n,ME}var DE,CM;function Ww(){if(CM)return DE;CM=1;class t{constructor(r){this.namespace=r||new this.Namespace}serialise(r){if(!(r instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${r}\` is not an Element instance`);const n={element:r.element};r._meta&&r._meta.length>0&&(n.meta=this.serialiseObject(r.meta)),r._attributes&&r._attributes.length>0&&(n.attributes=this.serialiseObject(r.attributes));const s=this.serialiseContent(r.content);return s!==void 0&&(n.content=s),n}deserialise(r){if(!r.element)throw new Error("Given value is not an object containing an element name");const n=this.namespace.getElementClass(r.element),s=new n;s.element!==r.element&&(s.element=r.element),r.meta&&this.deserialiseObject(r.meta,s.meta),r.attributes&&this.deserialiseObject(r.attributes,s.attributes);const i=this.deserialiseContent(r.content);return(i!==void 0||s.content===null)&&(s.content=i),s}serialiseContent(r){if(r instanceof this.namespace.elements.Element)return this.serialise(r);if(r instanceof this.namespace.KeyValuePair){const n={key:this.serialise(r.key)};return r.value&&(n.value=this.serialise(r.value)),n}return r&&r.map?r.length===0?void 0:r.map(this.serialise,this):r}deserialiseContent(r){if(r){if(r.element)return this.deserialise(r);if(r.key){const n=new this.namespace.KeyValuePair(this.deserialise(r.key));return r.value&&(n.value=this.deserialise(r.value)),n}if(r.map)return r.map(this.deserialise,this)}return r}serialiseObject(r){const n={};if(r.forEach((s,i)=>{s&&(n[i.toValue()]=this.serialise(s))}),Object.keys(n).length!==0)return n}deserialiseObject(r,n){Object.keys(r).forEach(s=>{n.set(s,this.deserialise(r[s]))})}}return DE=t,DE}var FE,RM;function DZ(){if(RM)return FE;RM=1;var t=J_();function e(r,n){return t(r,n)}return FE=e,FE}var qE,TM;function $f(){if(TM)return qE;TM=1;class t{constructor(r,n){this.key=r,this.value=n}clone(){const r=new t;return this.key&&(r.key=this.key.clone()),this.value&&(r.value=this.value.clone()),r}}return qE=t,qE}var BE,IM;function Lf(){if(IM)return BE;IM=1;var t="Expected a function";function e(r){if(typeof r!="function")throw new TypeError(t);return function(){var n=arguments;switch(n.length){case 0:return!r.call(this);case 1:return!r.call(this,n[0]);case 2:return!r.call(this,n[0],n[1]);case 3:return!r.call(this,n[0],n[1],n[2])}return!r.apply(this,n)}}return BE=e,BE}var $E,kM;function Uf(){if(kM)return $E;kM=1;const t=Lf();function e(n){return typeof n=="string"?s=>s.element===n:n.constructor&&n.extend?s=>s instanceof n:n}class r{constructor(s){this.elements=s||[]}toValue(){return this.elements.map(s=>s.toValue())}map(s,i){return this.elements.map(s,i)}flatMap(s,i){return this.map(s,i).reduce((a,o)=>a.concat(o),[])}compactMap(s,i){const a=[];return this.forEach(o=>{const u=s.bind(i)(o);u&&a.push(u)}),a}filter(s,i){return s=e(s),new r(this.elements.filter(s,i))}reject(s,i){return s=e(s),new r(this.elements.filter(t(s),i))}find(s,i){return s=e(s),this.elements.find(s,i)}forEach(s,i){this.elements.forEach(s,i)}reduce(s,i){return this.elements.reduce(s,i)}includes(s){return this.elements.some(i=>i.equals(s))}shift(){return this.elements.shift()}unshift(s){this.elements.unshift(this.refract(s))}push(s){return this.elements.push(this.refract(s)),this}add(s){this.push(s)}get(s){return this.elements[s]}getValue(s){const i=this.elements[s];if(i)return i.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}}return typeof Symbol<"u"&&(r.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),$E=r,$E}var LE,PM;function ni(){if(PM)return LE;PM=1;const t=DZ(),e=$f(),r=Uf();class n{constructor(i,a,o){a&&(this.meta=a),o&&(this.attributes=o),this.content=i}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach(i=>{i.parent=this,i.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const i=new this.constructor;return i.element=this.element,this.meta.length&&(i._meta=this.meta.clone()),this.attributes.length&&(i._attributes=this.attributes.clone()),this.content?this.content.clone?i.content=this.content.clone():Array.isArray(this.content)?i.content=this.content.map(a=>a.clone()):i.content=this.content:i.content=this.content,i}toValue(){return this.content instanceof n?this.content.toValue():this.content instanceof e?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map(i=>i.toValue(),this):this.content}toRef(i){if(this.id.toValue()==="")throw Error("Cannot create reference to an element that does not contain an ID");const a=new this.RefElement(this.id.toValue());return i&&(a.path=i),a}findRecursive(...i){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const a=i.pop();let o=new r;const u=(c,p)=>(c.push(p),c),l=(c,p)=>{p.element===a&&c.push(p);const h=p.findRecursive(a);return h&&h.reduce(u,c),p.content instanceof e&&(p.content.key&&l(c,p.content.key),p.content.value&&l(c,p.content.value)),c};return this.content&&(this.content.element&&l(o,this.content),Array.isArray(this.content)&&this.content.reduce(l,o)),i.isEmpty||(o=o.filter(c=>{let p=c.parents.map(h=>h.element);for(const h in i){const d=i[h],g=p.indexOf(d);if(g!==-1)p=p.splice(0,g);else return!1}return!0})),o}set(i){return this.content=i,this}equals(i){return t(this.toValue(),i)}getMetaProperty(i,a){if(!this.meta.hasKey(i)){if(this.isFrozen){const o=this.refract(a);return o.freeze(),o}this.meta.set(i,a)}return this.meta.get(i)}setMetaProperty(i,a){this.meta.set(i,a)}get element(){return this._storedElement||"element"}set element(i){this._storedElement=i}get content(){return this._content}set content(i){if(i instanceof n)this._content=i;else if(i instanceof r)this.content=i.elements;else if(typeof i=="string"||typeof i=="number"||typeof i=="boolean"||i==="null"||i==null)this._content=i;else if(i instanceof e)this._content=i;else if(Array.isArray(i))this._content=i.map(this.refract);else if(typeof i=="object")this._content=Object.keys(i).map(a=>new this.MemberElement(a,i[a]));else throw new Error("Cannot set content to given value")}get meta(){if(!this._meta){if(this.isFrozen){const i=new this.ObjectElement;return i.freeze(),i}this._meta=new this.ObjectElement}return this._meta}set meta(i){i instanceof this.ObjectElement?this._meta=i:this.meta.set(i||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const i=new this.ObjectElement;return i.freeze(),i}this._attributes=new this.ObjectElement}return this._attributes}set attributes(i){i instanceof this.ObjectElement?this._attributes=i:this.attributes.set(i||{})}get id(){return this.getMetaProperty("id","")}set id(i){this.setMetaProperty("id",i)}get classes(){return this.getMetaProperty("classes",[])}set classes(i){this.setMetaProperty("classes",i)}get title(){return this.getMetaProperty("title","")}set title(i){this.setMetaProperty("title",i)}get description(){return this.getMetaProperty("description","")}set description(i){this.setMetaProperty("description",i)}get links(){return this.getMetaProperty("links",[])}set links(i){this.setMetaProperty("links",i)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:i}=this;const a=new r;for(;i;)a.push(i),i=i.parent;return a}get children(){if(Array.isArray(this.content))return new r(this.content);if(this.content instanceof e){const i=new r([this.content.key]);return this.content.value&&i.push(this.content.value),i}return this.content instanceof n?new r([this.content]):new r}get recursiveChildren(){const i=new r;return this.children.forEach(a=>{i.push(a),a.recursiveChildren.forEach(o=>{i.push(o)})}),i}}return LE=n,LE}var UE,jM;function FZ(){if(jM)return UE;jM=1;const t=ni();class e extends t{constructor(n,s,i){super(n||null,s,i),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}return UE=e,UE}var VE,NM;function qZ(){if(NM)return VE;NM=1;const t=ni();return VE=class extends t{constructor(r,n,s){super(r,n,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},VE}var zE,MM;function BZ(){if(MM)return zE;MM=1;const t=ni();return zE=class extends t{constructor(r,n,s){super(r,n,s),this.element="number"}primitive(){return"number"}},zE}var WE,DM;function $Z(){if(DM)return WE;DM=1;const t=ni();return WE=class extends t{constructor(r,n,s){super(r,n,s),this.element="boolean"}primitive(){return"boolean"}},WE}var JE,FM;function I$(){if(FM)return JE;FM=1;const t=Lf(),e=ni(),r=Uf();class n extends e{constructor(i,a,o){super(i||[],a,o),this.element="array"}primitive(){return"array"}get(i){return this.content[i]}getValue(i){const a=this.get(i);if(a)return a.toValue()}getIndex(i){return this.content[i]}set(i,a){return this.content[i]=this.refract(a),this}remove(i){const a=this.content.splice(i,1);return a.length?a[0]:null}map(i,a){return this.content.map(i,a)}flatMap(i,a){return this.map(i,a).reduce((o,u)=>o.concat(u),[])}compactMap(i,a){const o=[];return this.forEach(u=>{const l=i.bind(a)(u);l&&o.push(l)}),o}filter(i,a){return new r(this.content.filter(i,a))}reject(i,a){return this.filter(t(i),a)}reduce(i,a){let o,u;a!==void 0?(o=0,u=this.refract(a)):(o=1,u=this.primitive()==="object"?this.first.value:this.first);for(let l=o;l<this.length;l+=1){const c=this.content[l];this.primitive()==="object"?u=this.refract(i(u,c.value,c.key,c,this)):u=this.refract(i(u,c,l,this))}return u}forEach(i,a){this.content.forEach((o,u)=>{i.bind(a)(o,this.refract(u))})}shift(){return this.content.shift()}unshift(i){this.content.unshift(this.refract(i))}push(i){return this.content.push(this.refract(i)),this}add(i){this.push(i)}findElements(i,a){const o=a||{},u=!!o.recursive,l=o.results===void 0?[]:o.results;return this.forEach((c,p,h)=>{u&&c.findElements!==void 0&&c.findElements(i,{results:l,recursive:u}),i(c,p,h)&&l.push(c)}),l}find(i){return new r(this.findElements(i,{recursive:!0}))}findByElement(i){return this.find(a=>a.element===i)}findByClass(i){return this.find(a=>a.classes.includes(i))}getById(i){return this.find(a=>a.id.toValue()===i).first}includes(i){return this.content.some(a=>a.equals(i))}contains(i){return this.includes(i)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(i){return new this.constructor(this.content.concat(i.content))}"fantasy-land/concat"(i){return this.concat(i)}"fantasy-land/map"(i){return new this.constructor(this.map(i))}"fantasy-land/chain"(i){return this.map(a=>i(a),this).reduce((a,o)=>a.concat(o),this.empty())}"fantasy-land/filter"(i){return new this.constructor(this.content.filter(i))}"fantasy-land/reduce"(i,a){return this.content.reduce(i,a)}get length(){return this.content.length}get isEmpty(){return this.content.length===0}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}return n.empty=function(){return new this},n["fantasy-land/empty"]=n.empty,typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),JE=n,JE}var HE,qM;function k$(){if(qM)return HE;qM=1;const t=$f(),e=ni();return HE=class extends e{constructor(n,s,i,a){super(new t,i,a),this.element="member",this.key=n,this.value=s}get key(){return this.content.key}set key(n){this.content.key=this.refract(n)}get value(){return this.content.value}set value(n){this.content.value=this.refract(n)}},HE}var KE,BM;function P$(){if(BM)return KE;BM=1;const t=Lf(),e=Uf();class r extends e{map(s,i){return this.elements.map(a=>s.bind(i)(a.value,a.key,a))}filter(s,i){return new r(this.elements.filter(a=>s.bind(i)(a.value,a.key,a)))}reject(s,i){return this.filter(t(s.bind(i)))}forEach(s,i){return this.elements.forEach((a,o)=>{s.bind(i)(a.value,a.key,a,o)})}keys(){return this.map((s,i)=>i.toValue())}values(){return this.map(s=>s.toValue())}}return KE=r,KE}var GE,$M;function LZ(){if($M)return GE;$M=1;const t=Lf(),e=rn(),r=I$(),n=k$(),s=P$();class i extends r{constructor(o,u,l){super(o||[],u,l),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce((o,u)=>(o[u.key.toValue()]=u.value?u.value.toValue():void 0,o),{})}get(o){const u=this.getMember(o);if(u)return u.value}getMember(o){if(o!==void 0)return this.content.find(u=>u.key.toValue()===o)}remove(o){let u=null;return this.content=this.content.filter(l=>l.key.toValue()===o?(u=l,!1):!0),u}getKey(o){const u=this.getMember(o);if(u)return u.key}set(o,u){if(e(o))return Object.keys(o).forEach(p=>{this.set(p,o[p])}),this;const l=o,c=this.getMember(l);return c?c.value=u:this.content.push(new n(l,u)),this}keys(){return this.content.map(o=>o.key.toValue())}values(){return this.content.map(o=>o.value.toValue())}hasKey(o){return this.content.some(u=>u.key.equals(o))}items(){return this.content.map(o=>[o.key.toValue(),o.value.toValue()])}map(o,u){return this.content.map(l=>o.bind(u)(l.value,l.key,l))}compactMap(o,u){const l=[];return this.forEach((c,p,h)=>{const d=o.bind(u)(c,p,h);d&&l.push(d)}),l}filter(o,u){return new s(this.content).filter(o,u)}reject(o,u){return this.filter(t(o),u)}forEach(o,u){return this.content.forEach(l=>o.bind(u)(l.value,l.key,l))}}return GE=i,GE}var YE,LM;function UZ(){if(LM)return YE;LM=1;const t=ni();return YE=class extends t{constructor(r,n,s){super(r||[],n,s),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(r){this.attributes.set("relation",r)}get href(){return this.attributes.get("href")}set href(r){this.attributes.set("href",r)}},YE}var XE,UM;function VZ(){if(UM)return XE;UM=1;const t=ni();return XE=class extends t{constructor(r,n,s){super(r||[],n,s),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(r){this.attributes.set("path",r)}},XE}var ZE,VM;function j$(){if(VM)return ZE;VM=1;const t=ni(),e=FZ(),r=qZ(),n=BZ(),s=$Z(),i=I$(),a=k$(),o=LZ(),u=UZ(),l=VZ(),c=Uf(),p=P$(),h=$f();function d(g){return g instanceof t?g:typeof g=="string"?new r(g):typeof g=="number"?new n(g):typeof g=="boolean"?new s(g):g===null?new e:Array.isArray(g)?new i(g.map(d)):typeof g=="object"?new o(g):g}return t.prototype.ObjectElement=o,t.prototype.RefElement=l,t.prototype.MemberElement=a,t.prototype.refract=d,c.prototype.refract=d,ZE={Element:t,NullElement:e,StringElement:r,NumberElement:n,BooleanElement:s,ArrayElement:i,MemberElement:a,ObjectElement:o,LinkElement:u,RefElement:l,refract:d,ArraySlice:c,ObjectSlice:p,KeyValuePair:h},ZE}var QE,zM;function zZ(){if(zM)return QE;zM=1;const t=jZ(),e=pB(),r=NZ(),n=MZ(),s=rn(),i=Ww(),a=j$();class o{constructor(l){this.elementMap={},this.elementDetection=[],this.Element=a.Element,this.KeyValuePair=a.KeyValuePair,(!l||!l.noDefault)&&this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(l){return l.namespace&&l.namespace({base:this}),l.load&&l.load({base:this}),this}useDefault(){return this.register("null",a.NullElement).register("string",a.StringElement).register("number",a.NumberElement).register("boolean",a.BooleanElement).register("array",a.ArrayElement).register("object",a.ObjectElement).register("member",a.MemberElement).register("ref",a.RefElement).register("link",a.LinkElement),this.detect(t,a.NullElement,!1).detect(e,a.StringElement,!1).detect(r,a.NumberElement,!1).detect(n,a.BooleanElement,!1).detect(Array.isArray,a.ArrayElement,!1).detect(s,a.ObjectElement,!1),this}register(l,c){return this._elements=void 0,this.elementMap[l]=c,this}unregister(l){return this._elements=void 0,delete this.elementMap[l],this}detect(l,c,p){return(p===void 0?!0:p)?this.elementDetection.unshift([l,c]):this.elementDetection.push([l,c]),this}toElement(l){if(l instanceof this.Element)return l;let c;for(let p=0;p<this.elementDetection.length;p+=1){const h=this.elementDetection[p][0],d=this.elementDetection[p][1];if(h(l)){c=new d(l);break}}return c}getElementClass(l){const c=this.elementMap[l];return c===void 0?this.Element:c}fromRefract(l){return this.serialiser.deserialise(l)}toRefract(l){return this.serialiser.serialise(l)}get elements(){return this._elements===void 0&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(l=>{const c=l[0].toUpperCase()+l.substr(1);this._elements[c]=this.elementMap[l]})),this._elements}get serialiser(){return new i(this)}}return i.prototype.Namespace=o,QE=o,QE}var eS,WM;function WZ(){if(WM)return eS;WM=1;const t=Ww();return eS=class extends t{serialise(r){if(!(r instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${r}\` is not an Element instance`);let n;r._attributes&&r.attributes.get("variable")&&(n=r.attributes.get("variable"));const s={element:r.element};r._meta&&r._meta.length>0&&(s.meta=this.serialiseObject(r.meta));const i=r.element==="enum"||r.attributes.keys().indexOf("enumerations")!==-1;if(i){const a=this.enumSerialiseAttributes(r);a&&(s.attributes=a)}else if(r._attributes&&r._attributes.length>0){let{attributes:a}=r;a.get("metadata")&&(a=a.clone(),a.set("meta",a.get("metadata")),a.remove("metadata")),r.element==="member"&&n&&(a=a.clone(),a.remove("variable")),a.length>0&&(s.attributes=this.serialiseObject(a))}if(i)s.content=this.enumSerialiseContent(r,s);else if(this[`${r.element}SerialiseContent`])s.content=this[`${r.element}SerialiseContent`](r,s);else if(r.content!==void 0){let a;n&&r.content.key?(a=r.content.clone(),a.key.attributes.set("variable",n),a=this.serialiseContent(a)):a=this.serialiseContent(r.content),this.shouldSerialiseContent(r,a)&&(s.content=a)}else this.shouldSerialiseContent(r,r.content)&&r instanceof this.namespace.elements.Array&&(s.content=[]);return s}shouldSerialiseContent(r,n){return r.element==="parseResult"||r.element==="httpRequest"||r.element==="httpResponse"||r.element==="category"||r.element==="link"?!0:!(n===void 0||Array.isArray(n)&&n.length===0)}refSerialiseContent(r,n){return delete n.attributes,{href:r.toValue(),path:r.path.toValue()}}sourceMapSerialiseContent(r){return r.toValue()}dataStructureSerialiseContent(r){return[this.serialiseContent(r.content)]}enumSerialiseAttributes(r){const n=r.attributes.clone(),s=n.remove("enumerations")||new this.namespace.elements.Array([]),i=n.get("default");let a=n.get("samples")||new this.namespace.elements.Array([]);if(i&&i.content&&(i.content.attributes&&i.content.attributes.remove("typeAttributes"),n.set("default",new this.namespace.elements.Array([i.content]))),a.forEach(o=>{o.content&&o.content.element&&o.content.attributes.remove("typeAttributes")}),r.content&&s.length!==0&&a.unshift(r.content),a=a.map(o=>o instanceof this.namespace.elements.Array?[o]:new this.namespace.elements.Array([o.content])),a.length&&n.set("samples",a),n.length>0)return this.serialiseObject(n)}enumSerialiseContent(r){if(r._attributes){const n=r.attributes.get("enumerations");if(n&&n.length>0)return n.content.map(s=>{const i=s.clone();return i.attributes.remove("typeAttributes"),this.serialise(i)})}if(r.content){const n=r.content.clone();return n.attributes.remove("typeAttributes"),[this.serialise(n)]}return[]}deserialise(r){if(typeof r=="string")return new this.namespace.elements.String(r);if(typeof r=="number")return new this.namespace.elements.Number(r);if(typeof r=="boolean")return new this.namespace.elements.Boolean(r);if(r===null)return new this.namespace.elements.Null;if(Array.isArray(r))return new this.namespace.elements.Array(r.map(this.deserialise,this));const n=this.namespace.getElementClass(r.element),s=new n;s.element!==r.element&&(s.element=r.element),r.meta&&this.deserialiseObject(r.meta,s.meta),r.attributes&&this.deserialiseObject(r.attributes,s.attributes);const i=this.deserialiseContent(r.content);if((i!==void 0||s.content===null)&&(s.content=i),s.element==="enum"){s.content&&s.attributes.set("enumerations",s.content);let a=s.attributes.get("samples");if(s.attributes.remove("samples"),a){const u=a;a=new this.namespace.elements.Array,u.forEach(c=>{c.forEach(p=>{const h=new n(p);h.element=s.element,a.push(h)})});const l=a.shift();l?s.content=l.content:s.content=void 0,s.attributes.set("samples",a)}else s.content=void 0;let o=s.attributes.get("default");if(o&&o.length>0){o=o.get(0);const u=new n(o);u.element=s.element,s.attributes.set("default",u)}}else if(s.element==="dataStructure"&&Array.isArray(s.content))[s.content]=s.content;else if(s.element==="category"){const a=s.attributes.get("meta");a&&(s.attributes.set("metadata",a),s.attributes.remove("meta"))}else s.element==="member"&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}serialiseContent(r){if(r instanceof this.namespace.elements.Element)return this.serialise(r);if(r instanceof this.namespace.KeyValuePair){const n={key:this.serialise(r.key)};return r.value&&(n.value=this.serialise(r.value)),n}return r&&r.map?r.map(this.serialise,this):r}deserialiseContent(r){if(r){if(r.element)return this.deserialise(r);if(r.key){const n=new this.namespace.KeyValuePair(this.deserialise(r.key));return r.value&&(n.value=this.deserialise(r.value)),n}if(r.map)return r.map(this.deserialise,this)}return r}shouldRefract(r){return r._attributes&&r.attributes.keys().length||r._meta&&r.meta.keys().length?!0:r.element==="enum"?!1:r.element!==r.primitive()||r.element==="member"}convertKeyToRefract(r,n){return this.shouldRefract(n)?this.serialise(n):n.element==="enum"?this.serialiseEnum(n):n.element==="array"?n.map(s=>this.shouldRefract(s)||r==="default"?this.serialise(s):s.element==="array"||s.element==="object"||s.element==="enum"?s.children.map(i=>this.serialise(i)):s.toValue()):n.element==="object"?(n.content||[]).map(this.serialise,this):n.toValue()}serialiseEnum(r){return r.children.map(n=>this.serialise(n))}serialiseObject(r){const n={};return r.forEach((s,i)=>{if(s){const a=i.toValue();n[a]=this.convertKeyToRefract(a,s)}}),n}deserialiseObject(r,n){Object.keys(r).forEach(s=>{n.set(s,this.deserialise(r[s]))})}},eS}var JM;function JZ(){if(JM)return dr;JM=1;const t=zZ(),e=j$();return dr.Namespace=t,dr.namespace=function(n){return new t(n)},dr.KeyValuePair=$f(),dr.ArraySlice=e.ArraySlice,dr.ObjectSlice=e.ObjectSlice,dr.Element=e.Element,dr.StringElement=e.StringElement,dr.NumberElement=e.NumberElement,dr.BooleanElement=e.BooleanElement,dr.NullElement=e.NullElement,dr.ArrayElement=e.ArrayElement,dr.ObjectElement=e.ObjectElement,dr.MemberElement=e.MemberElement,dr.RefElement=e.RefElement,dr.LinkElement=e.LinkElement,dr.refract=e.refract,dr.JSONSerialiser=Ww(),dr.JSON06Serialiser=WZ(),dr}var pe=JZ();class Xc extends pe.StringElement{constructor(e,r,n){super(e,r,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class Zc extends pe.StringElement{constructor(e,r,n){super(e,r,n),this.element="comment"}}class ss extends pe.ArrayElement{constructor(e,r,n){super(e,r,n),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>e.element==="annotation")}get warnings(){return this.children.filter(e=>e.element==="annotation"&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>e.element==="annotation"&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>e.element==="annotation").isEmpty}replaceResult(e){const{result:r}=this;if(Pi(r))return!1;const n=this.content.findIndex(s=>s===r);return n===-1?!1:(this.content[n]=e,!0)}}class Qc extends pe.ArrayElement{constructor(e,r,n){super(e,r,n),this.element="sourceMap"}get positionStart(){return this.children.filter(e=>e.classes.contains("position")).get(0)}get positionEnd(){return this.children.filter(e=>e.classes.contains("position")).get(1)}set position(e){if(typeof e>"u")return;const r=new pe.ArrayElement([e.start.row,e.start.column,e.start.char]),n=new pe.ArrayElement([e.end.row,e.end.column,e.end.char]);r.classes.push("position"),n.classes.push("position"),this.push(r).push(n)}}const HZ=(t,e)=>typeof e=="object"&&e!==null&&t in e&&typeof e[t]=="function",KZ=t=>typeof t=="object"&&t!=null&&"_storedElement"in t&&typeof t._storedElement=="string"&&"_content"in t,GZ=(t,e)=>typeof e=="object"&&e!==null&&"primitive"in e?typeof e.primitive=="function"&&e.primitive()===t:!1,YZ=(t,e)=>typeof e=="object"&&e!==null&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof pe.ArrayElement)&&e.classes.includes(t),gi=(t,e)=>typeof e=="object"&&e!==null&&"element"in e&&e.element===t,Ue=t=>t({hasMethod:HZ,hasBasicElementProps:KZ,primitiveEq:GZ,isElementType:gi,hasClass:YZ}),fr=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.Element||t(r)&&e(void 0,r)),ct=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.StringElement||t(r)&&e("string",r)),Jw=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.NumberElement||t(r)&&e("number",r)),Hw=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.NullElement||t(r)&&e("null",r)),Wu=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.BooleanElement||t(r)&&e("boolean",r)),Pt=Ue(({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof pe.ObjectElement||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n)),Dr=Ue(({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof pe.ArrayElement&&!(n instanceof pe.ObjectElement)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n)),us=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pe.MemberElement||t(n)&&e("member",n)&&r(void 0,n)),N$=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pe.LinkElement||t(n)&&e("link",n)&&r(void 0,n)),M$=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pe.RefElement||t(n)&&e("ref",n)&&r(void 0,n)),XZ=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xc||t(n)&&e("annotation",n)&&r("array",n)),ZZ=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zc||t(n)&&e("comment",n)&&r("string",n)),D$=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ss||t(n)&&e("parseResult",n)&&r("array",n)),F$=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qc||t(n)&&e("sourceMap",n)&&r("array",n)),Zi=t=>gi("object",t)||gi("array",t)||gi("boolean",t)||gi("number",t)||gi("string",t)||gi("null",t)||gi("member",t),Ju=t=>F$(t.meta.get("sourceMap")),QZ=(t,e)=>{if(t.length===0)return!0;const r=e.attributes.get("symbols");return Dr(r)?Rw(qf(r.toValue()),t):!1},Ga=(t,e)=>t.length===0?!0:Rw(qf(e.classes.toValue()),t),eQ=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Ju,includesClasses:Ga,includesSymbols:QZ,isAnnotationElement:XZ,isArrayElement:Dr,isBooleanElement:Wu,isCommentElement:ZZ,isElement:fr,isLinkElement:N$,isMemberElement:us,isNullElement:Hw,isNumberElement:Jw,isObjectElement:Pt,isParseResultElement:D$,isPrimitiveElement:Zi,isRefElement:M$,isSourceMapElement:F$,isStringElement:ct},Symbol.toStringTag,{value:"Module"}));class q$ extends pe.Namespace{constructor(){super(),this.register("annotation",Xc),this.register("comment",Zc),this.register("parseResult",ss),this.register("sourceMap",Qc)}}const B$=new q$,si=t=>{const e=new q$;return ns(t)&&e.use(t),e},$$=()=>({predicates:{...eQ},namespace:B$}),Vf=(t,e,r)=>{const n=t[e];if(n!=null){if(!r&&typeof n=="function")return n;const s=r?n.leave:n.enter;if(typeof s=="function")return s}else{const s=r?t.leave:t.enter;if(s!=null){if(typeof s=="function")return s;const i=s[e];if(typeof i=="function")return i}}return null},Rt={},Hu=t=>t?.type,L$=t=>typeof Hu(t)=="string",Kw=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),zf=(t,{visitFnGetter:e=Vf,nodeTypeGetter:r=Hu,breakSymbol:n=Rt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(t.length).fill(o);return{enter(l,c,p,h,d,g){let y=l,v=!1;const E={...g,replaceWith(b,_){g.replaceWith(b,_),y=b}};for(let b=0;b<t.length;b+=1)if(u[b]===o){const _=e(t[b],r(y),!1);if(typeof _=="function"){const w=_.call(t[b],y,c,p,h,d,E);if(typeof w?.then=="function")throw new As("Async visitor not supported in sync mode",{visitor:t[b],visitFn:_});if(w===i)u[b]=y;else if(w===n)u[b]=n;else{if(w===s)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},leave(l,c,p,h,d,g){let y=l;const v={...g,replaceWith(E,b){g.replaceWith(E,b),y=E}};for(let E=0;E<t.length;E+=1)if(u[E]===o){const b=e(t[E],r(y),!0);if(typeof b=="function"){const _=b.call(t[E],y,c,p,h,d,v);if(typeof _?.then=="function")throw new As("Async visitor not supported in sync mode",{visitor:t[E],visitFn:b});if(_===n)u[E]=n;else if(_!==void 0&&_!==i)return _}}else u[E]===y&&(u[E]=o)}}},tQ=(t,{visitFnGetter:e=Vf,nodeTypeGetter:r=Hu,breakSymbol:n=Rt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(t.length).fill(o);return{async enter(l,c,p,h,d,g){let y=l,v=!1;const E={...g,replaceWith(b,_){g.replaceWith(b,_),y=b}};for(let b=0;b<t.length;b+=1)if(u[b]===o){const _=e(t[b],r(y),!1);if(typeof _=="function"){const w=await _.call(t[b],y,c,p,h,d,E);if(w===i)u[b]=y;else if(w===n)u[b]=n;else{if(w===s)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},async leave(l,c,p,h,d,g){let y=l;const v={...g,replaceWith(E,b){g.replaceWith(E,b),y=E}};for(let E=0;E<t.length;E+=1)if(u[E]===o){const b=e(t[E],r(y),!0);if(typeof b=="function"){const _=await b.call(t[E],y,c,p,h,d,v);if(_===n)u[E]=n;else if(_!==void 0&&_!==i)return _}}else u[E]===y&&(u[E]=o)}}};zf[Symbol.for("nodejs.util.promisify.custom")]=tQ;const Gw=(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Rt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Vf,nodeTypeGetter:u=Hu,nodePredicate:l=L$,nodeCloneFn:c=Kw,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(t),v=[t],E=-1,b,_=[],w=t;const S=[],A=[];do{E+=1;const P=E===v.length;let F;const R=P&&_.length!==0;if(P){if(F=A.length===0?void 0:S.pop(),w=b,b=A.pop(),R)if(y){w=w.slice();let M=0;for(const[K,ee]of _){const G=K-M;ee===i?(w.splice(G,1),M+=1):w[G]=ee}}else{w=c(w);for(const[M,K]of _)w[M]=K}E=g.index,v=g.keys,_=g.edits,y=g.inArray,g=g.prev}else if(b!==i&&b!==void 0){if(F=y?E:v[E],w=b[F],w===i||w===void 0)continue;S.push(F)}let $;if(!Array.isArray(w)){var T;if(!l(w))throw new As(`Invalid AST Node: ${String(w)}`,{node:w});if(p&&A.includes(w)){typeof h=="function"&&h(w,F,b,S,A),S.pop();continue}const M=o(e,u(w),P);if(M){for(const[ee,G]of Object.entries(n))e[ee]=G;const K={replaceWith(ee,G){typeof G=="function"?G(ee,w,F,b,S,A):b&&(b[F]=ee),P||(w=ee)}};$=M.call(e,w,F,b,S,A,K)}if(typeof((T=$)===null||T===void 0?void 0:T.then)=="function")throw new As("Async visitor not supported in sync mode",{visitor:e,visitFn:M});if($===s)break;if($===a){if(!P){S.pop();continue}}else if($!==void 0&&(_.push([F,$]),!P))if(l($))w=$;else{S.pop();continue}}if($===void 0&&R&&_.push([F,w]),!P){var k;g={inArray:y,index:E,keys:v,edits:_,prev:g},y=Array.isArray(w),v=y?w:(k=d[u(w)])!==null&&k!==void 0?k:[],E=-1,_=[],b!==i&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return _.length!==0?_[_.length-1][1]:t};Gw[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Rt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Vf,nodeTypeGetter:u=Hu,nodePredicate:l=L$,nodeCloneFn:c=Kw,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(t),v=[t],E=-1,b,_=[],w=t;const S=[],A=[];do{E+=1;const k=E===v.length;let P;const F=k&&_.length!==0;if(k){if(P=A.length===0?void 0:S.pop(),w=b,b=A.pop(),F)if(y){w=w.slice();let $=0;for(const[M,K]of _){const ee=M-$;K===i?(w.splice(ee,1),$+=1):w[ee]=K}}else{w=c(w);for(const[$,M]of _)w[$]=M}E=g.index,v=g.keys,_=g.edits,y=g.inArray,g=g.prev}else if(b!==i&&b!==void 0){if(P=y?E:v[E],w=b[P],w===i||w===void 0)continue;S.push(P)}let R;if(!Array.isArray(w)){if(!l(w))throw new As(`Invalid AST Node: ${String(w)}`,{node:w});if(p&&A.includes(w)){typeof h=="function"&&h(w,P,b,S,A),S.pop();continue}const $=o(e,u(w),k);if($){for(const[K,ee]of Object.entries(n))e[K]=ee;const M={replaceWith(K,ee){typeof ee=="function"?ee(K,w,P,b,S,A):b&&(b[P]=K),k||(w=K)}};R=await $.call(e,w,P,b,S,A,M)}if(R===s)break;if(R===a){if(!k){S.pop();continue}}else if(R!==void 0&&(_.push([P,R]),!k))if(l(R))w=R;else{S.pop();continue}}if(R===void 0&&F&&_.push([P,w]),!k){var T;g={inArray:y,index:E,keys:v,edits:_,prev:g},y=Array.isArray(w),v=y?w:(T=d[u(w)])!==null&&T!==void 0?T:[],E=-1,_=[],b!==i&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return _.length!==0?_[_.length-1][1]:t};class U$ extends As{value;constructor(e,r){super(e,r),typeof r<"u"&&(this.value=r.value)}}class rQ extends U${}class nQ extends U${}const Ke=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof pe.KeyValuePair){const{key:s,value:i}=t,a=fr(s)?Ke(s,n):s,o=fr(i)?Ke(i,n):i,u=new pe.KeyValuePair(a,o);return r.set(t,u),u}if(t instanceof pe.ObjectSlice){const s=o=>Ke(o,n),i=[...t].map(s),a=new pe.ObjectSlice(i);return r.set(t,a),a}if(t instanceof pe.ArraySlice){const s=o=>Ke(o,n),i=[...t].map(s),a=new pe.ArraySlice(i);return r.set(t,a),a}if(fr(t)){const s=Ar(t);if(r.set(t,s),t.content)if(fr(t.content))s.content=Ke(t.content,n);else if(t.content instanceof pe.KeyValuePair)s.content=Ke(t.content,n);else if(Array.isArray(t.content)){const i=a=>Ke(a,n);s.content=t.content.map(i)}else s.content=t.content;else s.content=t.content;return s}throw new rQ("Value provided to cloneDeep function couldn't be cloned",{value:t})};Ke.safe=t=>{try{return Ke(t)}catch{return t}};const V$=t=>{const{key:e,value:r}=t;return new pe.KeyValuePair(e,r)},sQ=t=>{const e=[...t];return new pe.ArraySlice(e)},iQ=t=>{const e=[...t];return new pe.ObjectSlice(e)},z$=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=Ke(t.meta)),t.attributes.length>0&&(e._attributes=Ke(t.attributes)),fr(t.content)){const r=t.content;e.content=z$(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof pe.KeyValuePair?e.content=V$(t.content):e.content=t.content;return e},Ar=t=>{if(t instanceof pe.KeyValuePair)return V$(t);if(t instanceof pe.ObjectSlice)return iQ(t);if(t instanceof pe.ArraySlice)return sQ(t);if(fr(t))return z$(t);throw new nQ("Value provided to cloneShallow function couldn't be cloned",{value:t})};Ar.safe=t=>{try{return Ar(t)}catch{return t}};const fo=t=>Pt(t)?"ObjectElement":Dr(t)?"ArrayElement":us(t)?"MemberElement":ct(t)?"StringElement":Wu(t)?"BooleanElement":Jw(t)?"NumberElement":Hw(t)?"NullElement":N$(t)?"LinkElement":M$(t)?"RefElement":void 0,W$=t=>fr(t)?Ar(t):Kw(t),J$=qr(fo,pa),ks={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class H${result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Ow,returnOnTrue:r,returnOnFalse:n}={}){this.result=[],this.predicate=e,this.returnOnTrue=r,this.returnOnFalse=n}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const vr=(t,e,{keyMap:r=ks,...n}={})=>Gw(t,e,{keyMap:r,nodeTypeGetter:fo,nodePredicate:J$,nodeCloneFn:W$,...n});vr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=ks,...n}={})=>Gw[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:fo,nodePredicate:J$,nodeCloneFn:W$,...n});const K$={toolboxCreator:$$,visitorOptions:{nodeTypeGetter:fo,exposeEdits:!0}},Ps=(t,e,r={})=>{if(e.length===0)return t;const n=Nf(K$,r),{toolboxCreator:s,visitorOptions:i}=n,a=s(),o=e.map(c=>c(a)),u=zf(o.map(Gc({},"visitor")),{...i});o.forEach(au(["pre"],[]));const l=vr(t,u,i);return o.forEach(au(["post"],[])),l},aQ=async(t,e,r={})=>{if(e.length===0)return t;const n=Nf(K$,r),{toolboxCreator:s,visitorOptions:i}=n,a=s(),o=e.map(h=>h(a)),u=zf[Symbol.for("nodejs.util.promisify.custom")],l=vr[Symbol.for("nodejs.util.promisify.custom")],c=u(o.map(Gc({},"visitor")),{...i});await Promise.allSettled(o.map(au(["pre"],[])));const p=await l(t,c,i);return await Promise.allSettled(o.map(au(["post"],[]))),p};Ps[Symbol.for("nodejs.util.promisify.custom")]=aQ;var tS={exports:{}},HM;function oQ(){return HM||(HM=1,(function(t){var e=(()=>{var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,u=(w,S,A)=>S in w?r(w,S,{enumerable:!0,configurable:!0,writable:!0,value:A}):w[S]=A,l=(w,S)=>{for(var A in S||(S={}))a.call(S,A)&&u(w,A,S[A]);if(i)for(var A of i(S))o.call(S,A)&&u(w,A,S[A]);return w},c=(w,S)=>{for(var A in S)r(w,A,{get:S[A],enumerable:!0})},p=(w,S,A,T)=>{if(S&&typeof S=="object"||typeof S=="function")for(let k of s(S))!a.call(w,k)&&k!==A&&r(w,k,{get:()=>S[k],enumerable:!(T=n(S,k))||T.enumerable});return w},h=w=>p(r({},"__esModule",{value:!0}),w),d=(w,S,A)=>u(w,typeof S!="symbol"?S+"":S,A),g={};c(g,{DEFAULT_OPTIONS:()=>E,DEFAULT_UUID_LENGTH:()=>v,default:()=>_});var y="5.3.2",v=6,E={dictionary:"alphanum",shuffle:!0,debug:!1,length:v,counter:0},b=class{constructor(S={}){d(this,"counter"),d(this,"debug"),d(this,"dict"),d(this,"version"),d(this,"dictIndex",0),d(this,"dictRange",[]),d(this,"lowerBound",0),d(this,"upperBound",0),d(this,"dictLength",0),d(this,"uuidLength"),d(this,"_digit_first_ascii",48),d(this,"_digit_last_ascii",58),d(this,"_alpha_lower_first_ascii",97),d(this,"_alpha_lower_last_ascii",123),d(this,"_hex_last_ascii",103),d(this,"_alpha_upper_first_ascii",65),d(this,"_alpha_upper_last_ascii",91),d(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),d(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),d(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),d(this,"log",(...R)=>{const $=[...R];if($[0]="[short-unique-id] ".concat(R[0]),this.debug===!0&&typeof console<"u"&&console!==null){console.log(...$);return}}),d(this,"_normalizeDictionary",(R,$)=>{let M;if(R&&Array.isArray(R)&&R.length>1)M=R;else{M=[],this.dictIndex=0;const K="_".concat(R,"_dict_ranges"),ee=this._dict_ranges[K];let G=0;for(const[,X]of Object.entries(ee)){const[te,le]=X;G+=Math.abs(le-te)}M=new Array(G);let Z=0;for(const[,X]of Object.entries(ee)){this.dictRange=X,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const te=this.lowerBound<=this.upperBound,le=this.lowerBound,se=this.upperBound;if(te)for(let ue=le;ue<se;ue++)M[Z++]=String.fromCharCode(ue),this.dictIndex=ue;else for(let ue=le;ue>se;ue--)M[Z++]=String.fromCharCode(ue),this.dictIndex=ue}M.length=Z}if($){const K=M.length;for(let ee=K-1;ee>0;ee--){const G=Math.floor(Math.random()*(ee+1));[M[ee],M[G]]=[M[G],M[ee]]}}return M}),d(this,"setDictionary",(R,$)=>{this.dict=this._normalizeDictionary(R,$),this.dictLength=this.dict.length,this.setCounter(0)}),d(this,"seq",()=>this.sequentialUUID()),d(this,"sequentialUUID",()=>{const R=this.dictLength,$=this.dict;let M=this.counter;const K=[];do{const G=M%R;M=Math.trunc(M/R),K.push($[G])}while(M!==0);const ee=K.join("");return this.counter+=1,ee}),d(this,"rnd",(R=this.uuidLength||v)=>this.randomUUID(R)),d(this,"randomUUID",(R=this.uuidLength||v)=>{if(R===null||typeof R>"u"||R<1)throw new Error("Invalid UUID Length Provided");const $=new Array(R),M=this.dictLength,K=this.dict;for(let ee=0;ee<R;ee++){const G=Math.floor(Math.random()*M);$[ee]=K[G]}return $.join("")}),d(this,"fmt",(R,$)=>this.formattedUUID(R,$)),d(this,"formattedUUID",(R,$)=>{const M={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return R.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,ee=>{const G=ee.slice(0,2),Z=Number.parseInt(ee.slice(2),10);return G==="$s"?M[G]().padStart(Z,"0"):G==="$t"&&$?M[G](Z,$):M[G](Z)})}),d(this,"availableUUIDs",(R=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**R).toFixed(0))),d(this,"_collisionCache",new Map),d(this,"approxMaxBeforeCollision",(R=this.availableUUIDs(this.uuidLength))=>{const $=R,M=this._collisionCache.get($);if(M!==void 0)return M;const K=Number.parseFloat(Math.sqrt(Math.PI/2*R).toFixed(20));return this._collisionCache.set($,K),K}),d(this,"collisionProbability",(R=this.availableUUIDs(this.uuidLength),$=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(R)/this.availableUUIDs($)).toFixed(20))),d(this,"uniqueness",(R=this.availableUUIDs(this.uuidLength))=>{const $=Number.parseFloat((1-this.approxMaxBeforeCollision(R)/R).toFixed(20));return $>1?1:$<0?0:$}),d(this,"getVersion",()=>this.version),d(this,"stamp",(R,$)=>{const M=Math.floor(+($||new Date)/1e3).toString(16);if(typeof R=="number"&&R===0)return M;if(typeof R!="number"||R<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join(`
68
- `));const K=R-9,ee=Math.round(Math.random()*(K>15?15:K)),G=this.randomUUID(K);return"".concat(G.substring(0,ee)).concat(M).concat(G.substring(ee)).concat(ee.toString(16))}),d(this,"parseStamp",(R,$)=>{if($&&!/t0|t[1-9]\d{1,}/.test($))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const M=$?$.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,ee=>{const G={$r:te=>[...Array(te)].map(()=>"r").join(""),$s:te=>[...Array(te)].map(()=>"s").join(""),$t:te=>[...Array(te)].map(()=>"t").join("")},Z=ee.slice(0,2),X=Number.parseInt(ee.slice(2),10);return G[Z](X)}).replace(/^(.*?)(t{8,})(.*)$/g,(ee,G,Z)=>R.substring(G.length,G.length+Z.length)):R;if(M.length===8)return new Date(Number.parseInt(M,16)*1e3);if(M.length<10)throw new Error("Stamp length invalid");const K=Number.parseInt(M.substring(M.length-1),16);return new Date(Number.parseInt(M.substring(K,K+8),16)*1e3)}),d(this,"setCounter",R=>{this.counter=R}),d(this,"validate",(R,$)=>{const M=$?this._normalizeDictionary($):this.dict;return R.split("").every(K=>M.includes(K))});const A=l(l({},E),S);this.counter=0,this.debug=!1,this.dict=[],this.version=y;const{dictionary:T,shuffle:k,length:P,counter:F}=A;this.uuidLength=P,this.setDictionary(T,k),this.setCounter(F),this.debug=A.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};d(b,"default",b);var _=b;return h(g)})();t.exports=e.default,typeof window<"u"&&(e=e.default)})(tS)),tS.exports}var uQ=oQ();const lQ=ot(uQ);class cQ extends As{value;constructor(e,r){super(e,r),typeof r<"u"&&(this.value=r.value)}}class Yw{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new lQ({length:e}),this.identityMap=new WeakMap}identify(e){if(!fr(e))throw new cQ("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&ct(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const r=new pe.StringElement(this.generateId());return this.identityMap.set(e,r),r}forget(e){return this.identityMap.has(e)?(this.identityMap.delete(e),!0):!1}generateId(){return this.uuid.randomUUID()}}new Yw;class fQ extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new IE("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new IE("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new IE("latest method in MediaTypes class is not yet implemented.")}}const pQ=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return fr(t)&&(t.meta.length>0&&(n.meta=Ke(t.meta)),t.attributes.length>0&&(n.attributes=Ke(t.attributes))),Ps(n,r,{toolboxCreator:$$,visitorOptions:{nodeTypeGetter:fo}})},Ln=t=>(e,r={})=>pQ(e,{...r,Type:t});pe.ObjectElement.refract=Ln(pe.ObjectElement);pe.ArrayElement.refract=Ln(pe.ArrayElement);pe.StringElement.refract=Ln(pe.StringElement);pe.BooleanElement.refract=Ln(pe.BooleanElement);pe.NullElement.refract=Ln(pe.NullElement);pe.NumberElement.refract=Ln(pe.NumberElement);pe.LinkElement.refract=Ln(pe.LinkElement);pe.RefElement.refract=Ln(pe.RefElement);Xc.refract=Ln(Xc);Zc.refract=Ln(Zc);ss.refract=Ln(ss);Qc.refract=Ln(Qc);const dQ=(t,e)=>{const r=new H$({predicate:t});return vr(e,r),new pe.ArraySlice(r.result)},G$=(t,e)=>{const r=new H$({predicate:t,returnOnTrue:Rt});return vr(e,r),c$(void 0,[0],r.result)},Y$=t=>typeof t?.type=="string"?t.type:fo(t),X$={EphemeralObject:["content"],EphemeralArray:["content"],...ks},Z$=(t,e,{keyMap:r=X$,...n}={})=>vr(t,e,{keyMap:r,nodeTypeGetter:Y$,nodePredicate:ri,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Z$[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=X$,...r}={})=>vr[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:Y$,nodePredicate:ri,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class hQ{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class mQ{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}let gQ=class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new mQ(e.content);return this.references.set(e,r),r}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new hQ(e.content);return this.references.set(e,r),r}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...r){var n;const s=r[3];return((n=s[s.length-1])===null||n===void 0?void 0:n.type)==="EphemeralObject"?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ct(e.href)?e.href.toValue():""}};const Re=t=>fr(t)?ct(t)||Jw(t)||Wu(t)||Hw(t)?t.toValue():Z$(t,new gQ):t,Cc=(t,e=new WeakMap)=>(us(t)?(e.set(t.key,t),Cc(t.key,e),e.set(t.value,t),Cc(t.value,e)):t.children.forEach(r=>{e.set(r,t),Cc(r,e)}),e),yQ=(t,e,r)=>{const n=r.get(t);us(n)&&(n.key===t&&(n.key=e,r.delete(t),r.set(e,n)),n.value===t&&(n.value=e,r.delete(t),r.set(e,n)))},vQ=(t,e,r)=>{const n=r.get(t);Pt(n)&&(n.content=n.map((s,i,a)=>a===t?(r.delete(t),r.set(e,n),e):a))},bQ=(t,e,r)=>{const n=r.get(t);Dr(n)&&(n.content=n.map(s=>s===t?(r.delete(t),r.set(e,n),e):s))};class EQ{element;edges;constructor({element:e}){this.element=e}transclude(e,r){var n;if(e===this.element)return r;if(e===r)return this.element;this.edges=(n=this.edges)!==null&&n!==void 0?n:Cc(this.element);const s=this.edges.get(e);if(!Pi(s))return Pt(s)?vQ(e,r,this.edges):Dr(s)?bQ(e,r,this.edges):us(s)&&yQ(e,r,this.edges),this.element}}const SQ=(t,e,r)=>new EQ({element:r}).transclude(t,e),ji=(t,e)=>{const r=Ha(t,e);return kX(n=>{if(ns(n)&&Go("$ref",n)&&DX(pa,"$ref",n)){const s=Or(["$ref"],n),i=_$("#/",s);return Or(i.split("/"),r)}return ns(n)?ji(n,r):n},t)},Q$=(t,e=B$)=>{if(pa(t))try{return e.fromRefract(JSON.parse(t))}catch{}return ns(t)&&Go("element",t)?e.fromRefract(t):e.toElement(t)},ef=t=>{const e=t.meta.length>0?Ke(t.meta):void 0,r=t.attributes.length>0?Ke(t.attributes):void 0;return new t.constructor(void 0,e,r)},tf=(t,e)=>e.clone&&e.isMergeableElement(t)?Fn(ef(t),t,e):t,_Q=(t,e)=>{if(typeof e.customMerge!="function")return Fn;const r=e.customMerge(t,e);return typeof r=="function"?r:Fn},wQ=t=>typeof t.customMetaMerge!="function"?e=>Ke(e):t.customMetaMerge,xQ=t=>typeof t.customAttributesMerge!="function"?e=>Ke(e):t.customAttributesMerge,AQ=(t,e,r)=>t.concat(e)["fantasy-land/map"](n=>tf(n,r)),OQ=(t,e,r)=>{const n=Pt(t)?ef(t):ef(e);return Pt(t)&&t.forEach((s,i,a)=>{const o=Ar(a);o.value=tf(s,r),n.content.push(o)}),e.forEach((s,i,a)=>{const o=Re(i);let u;if(Pt(t)&&t.hasKey(o)&&r.isMergeableElement(s)){const l=t.get(o);u=Ar(a),u.value=_Q(i,r)(l,s,r)}else u=Ar(a),u.value=tf(s,r);n.remove(o),n.content.push(u)}),n},ac={clone:!0,isMergeableElement:t=>Pt(t)||Dr(t),arrayElementMerge:AQ,objectElementMerge:OQ,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Fn=(t,e,r)=>{var n,s,i;const a={...ac,...r};a.isMergeableElement=(n=a.isMergeableElement)!==null&&n!==void 0?n:ac.isMergeableElement,a.arrayElementMerge=(s=a.arrayElementMerge)!==null&&s!==void 0?s:ac.arrayElementMerge,a.objectElementMerge=(i=a.objectElementMerge)!==null&&i!==void 0?i:ac.objectElementMerge;const o=Dr(e),u=Dr(t);if(!(o===u))return tf(e,a);const c=o&&typeof a.arrayElementMerge=="function"?a.arrayElementMerge(t,e,a):a.objectElementMerge(t,e,a);return c.meta=wQ(a)(t.meta,e.meta),c.attributes=xQ(a)(t.attributes,e.attributes),c};Fn.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of deepmerge should be an array.");return t.length===0?new pe.ObjectElement:t.reduce((r,n)=>Fn(r,n,e),ef(t[0]))};class Xw extends nr{}class eL extends Xw{}const CQ=async(t,e)=>{let r=t,n=!1;if(!D$(t)){const a=Ar(t);a.classes.push("result"),r=new ss([a]),n=!0}const s=new ou({uri:e.resolve.baseURI,parseResult:r,mediaType:e.parse.mediaType}),i=await Uw("canDereference",[s,e],e.dereference.strategies);if(zu(i))throw new eL(s.uri);try{const{result:a}=await Vw("dereference",[s,e],i);return n?a.get(0):a}catch(a){throw new Xw(`Error while dereferencing file "${s.uri}"`,{cause:a})}};let Ku=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:s=[],mediaTypes:i=[]}){this.name=e,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=s,this.mediaTypes=i}};class RQ{name;constructor({name:e}){this.name=e}}class TQ extends RQ{timeout;redirects;withCredentials;constructor(e){const{name:r="http-resolver",timeout:n=5e3,redirects:s=5,withCredentials:i=!1}=e??{};super({name:r}),this.timeout=n,this.redirects=s,this.withCredentials=i}canRead(e){return Lw(e.uri)}}class IQ{name;constructor({name:e}){this.name=e}}class kQ{name;constructor({name:e}){this.name=e}}class rS extends Array{includesCycle(e){return this.filter(r=>r.has(e)).length>1}includes(e,r){return e instanceof Set?super.includes(e,r):this.some(n=>n.has(e))}findItem(e){for(const r of this)for(const n of r)if(fr(n)&&e(n))return n}}let Hs=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:r=0,refSet:n,value:s}){this.uri=e,this.value=s,this.depth=r,this.refSet=n,this.errors=[]}};class tL extends nr{}class PQ extends tL{}class jQ extends nr{}class Zw extends jQ{}class NQ extends tL{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}class Ua extends Xw{}class MQ extends zw{}class Ys extends w1{}const DQ=async(t,e={})=>{const r=C$(O$,e);return CQ(t,r)},{fetch:FQ,Response:qQ,Headers:BQ,Request:$Q,FormData:LQ,File:UQ,Blob:VQ}=globalThis;typeof globalThis.fetch>"u"&&(globalThis.fetch=FQ);typeof globalThis.Headers>"u"&&(globalThis.Headers=BQ);typeof globalThis.Request>"u"&&(globalThis.Request=$Q);typeof globalThis.Response>"u"&&(globalThis.Response=qQ);typeof globalThis.FormData>"u"&&(globalThis.FormData=LQ);typeof globalThis.File>"u"&&(globalThis.File=UQ);typeof globalThis.Blob>"u"&&(globalThis.Blob=VQ);function KM(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zQ(t){if(Array.isArray(t))return t}function WQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JQ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function HQ(t,e,r){return e&&JQ(t.prototype,e),t}function rL(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function KQ(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],s=!0,i=!1,a,o;try{for(r=r.call(t);!(s=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));s=!0);}catch(u){i=!0,o=u}finally{try{!s&&r.return!=null&&r.return()}finally{if(i)throw o}}return n}}function GQ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function YQ(t,e){return zQ(t)||KQ(t,e)||XQ(t,e)||GQ()}function Va(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function XQ(t,e){if(t){if(typeof t=="string")return KM(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return KM(t,e)}}var nL=function(t){throw TypeError(t)},sL=function(t,e,r){return e.has(t)||nL("Cannot "+r)},Gr=function(t,e,r){return sL(t,e,"read from private field"),r?r.call(t):e.get(t)},GM=function(t,e,r){return e.has(t)?nL("Cannot add the same private member more than once"):rL(e,WeakSet)?e.add(t):e.set(t,r)},nS=function(t,e,r,n){return sL(t,e,"write to private field"),e.set(t,r),r},po=function(t){return Object.prototype.toString.call(t)},iL=function(t){return ArrayBuffer.isView(t)&&!rL(t,DataView)},ZQ=function(t){return po(t)==="[object Date]"},QQ=function(t){return po(t)==="[object RegExp]"},eee=function(t){return po(t)==="[object Error]"},tee=function(t){return po(t)==="[object Boolean]"},ree=function(t){return po(t)==="[object Number]"},nee=function(t){return po(t)==="[object String]"},aL=Array.isArray,see=Object.getOwnPropertyDescriptor,iee=Object.prototype.propertyIsEnumerable,aee=Object.getOwnPropertySymbols,Rc=Object.prototype.hasOwnProperty;function Qw(t){for(var e=Object.keys(t),r=aee(t),n=0;n<r.length;n++)iee.call(t,r[n])&&e.push(r[n]);return e}function oee(t,e){var r;return!(!((r=see(t,e))===null||r===void 0)&&r.writable)}function oL(t,e){if((typeof t>"u"?"undefined":Va(t))==="object"&&t!==null){var r;if(aL(t))r=[];else if(ZQ(t))r=new Date(t.getTime?t.getTime():t);else if(QQ(t))r=new RegExp(t);else if(eee(t))r={message:t.message};else if(tee(t)||ree(t)||nee(t))r=Object(t);else{if(iL(t))return t.slice();r=Object.create(Object.getPrototypeOf(t))}var n=e.includeSymbols?Qw:Object.keys,s=!0,i=!1,a=void 0;try{for(var o=n(t)[Symbol.iterator](),u;!(s=(u=o.next()).done);s=!0){var l=u.value;r[l]=t[l]}}catch(c){i=!0,a=c}finally{try{!s&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}return t}var uL={includeSymbols:!1,immutable:!1};function YM(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:uL,n=[],s=[],i=!0,a=r.includeSymbols?Qw:Object.keys,o=!!r.immutable;return(function u(l){var c=o?oL(l,r):l,p={},h=!0,d={node:c,node_:l,path:[].concat(n),parent:s[s.length-1],parents:s,key:n[n.length-1],isRoot:n.length===0,level:n.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function($){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.isRoot||(d.parent.node[d.key]=$),d.node=$,M&&(h=!1)},delete:function($){delete d.parent.node[d.key],$&&(h=!1)},remove:function($){aL(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],$&&(h=!1)},keys:null,before:function($){p.before=$},after:function($){p.after=$},pre:function($){p.pre=$},post:function($){p.post=$},stop:function(){i=!1},block:function(){h=!1}};if(!i)return d;function g(){if(Va(d.node)==="object"&&d.node!==null){(!d.keys||d.node_!==d.node)&&(d.keys=a(d.node)),d.isLeaf=d.keys.length===0;for(var R=0;R<s.length;R++)if(s[R].node_===l){d.circular=s[R];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}g();var y=e.call(d,d.node);if(y!==void 0&&d.update&&d.update(y),p.before&&p.before.call(d,d.node),!h)return d;if(Va(d.node)==="object"&&d.node!==null&&!d.circular){s.push(d),g();var v,E=!0,b=!1,_=void 0;try{for(var w=Object.entries((v=d.keys)!==null&&v!==void 0?v:[])[Symbol.iterator](),S;!(E=(S=w.next()).done);E=!0){var A=YQ(S.value,2),T=A[0],k=A[1],P;n.push(k),p.pre&&p.pre.call(d,d.node[k],k);var F=u(d.node[k]);o&&Rc.call(d.node,k)&&!oee(d.node,k)&&(d.node[k]=F.node),F.isLast=!((P=d.keys)===null||P===void 0)&&P.length?+T===d.keys.length-1:!1,F.isFirst=+T==0,p.post&&p.post.call(d,F),n.pop()}}catch(R){b=!0,_=R}finally{try{!E&&w.return!=null&&w.return()}finally{if(b)throw _}}s.pop()}return p.after&&p.after.call(d,d.node),d})(t).node}var an,yi,js=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:uL;WQ(this,t),GM(this,an),GM(this,yi),nS(this,an,e),nS(this,yi,r)}return HQ(t,[{key:"get",value:function(r){for(var n=Gr(this,an),s=0;n&&s<r.length;s++){var i=r[s];if(!Rc.call(n,i)||!Gr(this,yi).includeSymbols&&(typeof i>"u"?"undefined":Va(i))==="symbol")return;n=n[i]}return n}},{key:"has",value:function(r){for(var n=Gr(this,an),s=0;n&&s<r.length;s++){var i=r[s];if(!Rc.call(n,i)||!Gr(this,yi).includeSymbols&&(typeof i>"u"?"undefined":Va(i))==="symbol")return!1;n=n[i]}return!0}},{key:"set",value:function(r,n){var s=Gr(this,an),i=0;for(i=0;i<r.length-1;i++){var a=r[i];Rc.call(s,a)||(s[a]={}),s=s[a]}return s[r[i]]=n,n}},{key:"map",value:function(r){return YM(Gr(this,an),r,{immutable:!0,includeSymbols:!!Gr(this,yi).includeSymbols})}},{key:"forEach",value:function(r){return nS(this,an,YM(Gr(this,an),r,Gr(this,yi))),Gr(this,an)}},{key:"reduce",value:function(r,n){var s=arguments.length===1,i=s?Gr(this,an):n;return this.forEach(function(a){(!this.isRoot||!s)&&(i=r.call(this,i,a))}),i}},{key:"paths",value:function(){var r=[];return this.forEach(function(){r.push(this.path)}),r}},{key:"nodes",value:function(){var r=[];return this.forEach(function(){r.push(this.node)}),r}},{key:"clone",value:function(){var r=[],n=[],s=Gr(this,yi);return iL(Gr(this,an))?Gr(this,an).slice():(function i(a){for(var o=0;o<r.length;o++)if(r[o]===a)return n[o];if((typeof a>"u"?"undefined":Va(a))==="object"&&a!==null){var u=oL(a,s);r.push(a),n.push(u);var l=s.includeSymbols?Qw:Object.keys,c=!0,p=!1,h=void 0;try{for(var d=l(a)[Symbol.iterator](),g;!(c=(g=d.next()).done);c=!0){var y=g.value;u[y]=i(a[y])}}catch(v){p=!0,h=v}finally{try{!c&&d.return!=null&&d.return()}finally{if(p)throw h}}return r.pop(),n.pop(),u}return a})(Gr(this,an))}}]),t})();an=new WeakMap;yi=new WeakMap;var Ns=function(t,e){return new js(t,e)};Ns.get=function(t,e,r){return new js(t,r).get(e)};Ns.set=function(t,e,r,n){return new js(t,n).set(e,r)};Ns.has=function(t,e,r){return new js(t,r).has(e)};Ns.map=function(t,e,r){return new js(t,r).map(e)};Ns.forEach=function(t,e,r){return new js(t,r).forEach(e)};Ns.reduce=function(t,e,r,n){return new js(t,n).reduce(e,r)};Ns.paths=function(t,e){return new js(t,e).paths()};Ns.nodes=function(t,e){return new js(t,e).nodes()};Ns.clone=function(t,e){return new js(t,e).clone()};var uee=Ns;const lL="application/json, application/yaml",rf="https://swagger.io",lee=Object.freeze({url:"/"}),cL=3e3,cee=["properties"],fee=["properties"],pee=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],dee=["schema/example","items/example"];function fL(t){const e=t[t.length-1],r=t[t.length-2],n=t.join("/");return cee.indexOf(e)>-1&&fee.indexOf(r)===-1||pee.indexOf(n)>-1||dee.some(s=>n.indexOf(s)>-1)}function hee(t,e,{specmap:r,getBaseUrlForNodePath:n=i=>r.getContext([...e,...i]).baseDoc,targetKeys:s=["$ref","$$ref"]}={}){const i=[];return uee(t).forEach(function(){if(s.includes(this.key)&&typeof this.node=="string"){const o=this.path,u=e.concat(this.path),l=x1(this.node,n(o));i.push(r.replace(u,l))}}),i}function x1(t,e){const[r,n]=t.split("#"),s=e??"",i=r??"";let a;if(Lw(s))a=jr(s,i);else{const o=jr(rf,s),l=jr(o,i).replace(rf,"");a=i.startsWith("/")?l:l.substring(1)}return n?`${a}#${n}`:a}const mee=/^([a-z]+:\/\/|\/\/)/i;class Ya extends As{}const Js={},XM=new WeakMap,gee=[t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"],yee=t=>gee.some(e=>e(t)),vee={key:"$ref",plugin:(t,e,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(fL(i)||yee(i))return;const{baseDoc:a}=n.getContext(r);if(typeof t!="string")return new Ya("$ref: must be a string (JSON-Ref)",{$ref:t,baseDoc:a,fullPath:r});const o=dL(t),u=o[0],l=o[1]||"";let c;try{c=a||u?pL(u,a):null}catch(y){return A1(y,{pointer:l,$ref:t,basePath:c,fullPath:r})}let p,h;if(wee(l,c,i,n)&&!s.useCircularStructures){const y=x1(t,c);return t===y?null:qt.replace(r,y)}if(c==null?(h=tx(l),p=n.get(h),typeof p>"u"&&(p=new Ya(`Could not resolve reference: ${t}`,{pointer:l,$ref:t,baseDoc:a,fullPath:r}))):(p=hL(c,l),p.__value!=null?p=p.__value:p=p.catch(y=>{throw A1(y,{pointer:l,$ref:t,baseDoc:a,fullPath:r})})),p instanceof Error)return[qt.remove(r),p];const d=x1(t,c),g=qt.replace(i,p,{$$ref:d});if(c&&c!==a)return[g,qt.context(i,{baseDoc:c})];try{if(!xee(n.state,g)||s.useCircularStructures)return g}catch{return null}}},ex=Object.assign(vee,{docCache:Js,absoluteify:pL,clearCache:bee,JSONRefError:Ya,wrapError:A1,getDoc:mL,split:dL,extractFromDoc:hL,fetchJSON:Eee,extract:O1,jsonPointerToArray:tx,unescapeJsonPointerToken:gL});function pL(t,e){if(!mee.test(t)){if(!e)throw new Ya(`Tried to resolve a relative URL, without having a basePath. path: '${t}' basePath: '${e}'`);return jr(e,t)}return t}function A1(t,e){let r;return t&&t.response&&t.response.body?r=`${t.response.body.code} ${t.response.body.message}`:r=t.message,new Ya(`Could not resolve reference: ${r}`,{...e,cause:t})}function dL(t){return(t+"").split("#")}function hL(t,e){const r=Js[t];if(r&&!qt.isPromise(r))try{const n=O1(e,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return mL(t).then(n=>O1(e,n))}function bee(t){typeof t<"u"?delete Js[t]:Object.keys(Js).forEach(e=>{delete Js[e]})}function mL(t){const e=Js[t];return e?qt.isPromise(e)?e:Promise.resolve(e):(Js[t]=ex.fetchJSON(t).then(r=>(Js[t]=r,r)),Js[t])}function Eee(t){return fetch(t,{headers:{Accept:lL},loadSpec:!0}).then(e=>e.text()).then(e=>ea.load(e))}function O1(t,e){const r=tx(t);if(r.length<1)return e;const n=qt.getIn(e,r);if(typeof n>"u")throw new Ya(`Could not resolve pointer: ${t} does not exist in document`,{pointer:t});return n}function tx(t){if(typeof t!="string")throw new TypeError(`Expected a string, got a ${typeof t}`);return t[0]==="/"&&(t=t.substr(1)),t===""?[]:t.split("/").map(gL)}function gL(t){return typeof t!="string"?t:new URLSearchParams(`=${t.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function yL(t){return new URLSearchParams([["",t.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function See(t){return t.length===0?"":`/${t.map(yL).join("/")}`}const _ee=t=>!t||t==="/"||t==="#";function sS(t,e){if(_ee(e))return!0;const r=t.charAt(e.length),n=e.slice(-1);return t.indexOf(e)===0&&(!r||r==="/"||r==="#")&&n!=="#"}function wee(t,e,r,n){let s=XM.get(n);s||(s={},XM.set(n,s));const i=See(r),a=`${e||"<specmap-base>"}#${t}`,o=i.replace(/allOf\/\d+\/?/g,""),u=n.contextTree.get([]).baseDoc;if(e===u&&sS(o,t))return!0;let l="";if(r.some(p=>(l=`${l}/${yL(p)}`,s[l]&&s[l].some(h=>sS(h,a)||sS(a,h)))))return!0;s[o]=(s[o]||[]).concat(a)}function xee(t,e){const r=[t];return e.path.reduce((s,i)=>(r.push(s[i]),s[i]),t),n(e.value);function n(s){return qt.isObject(s)&&(r.indexOf(s)>=0||Object.keys(s).some(i=>n(s[i])))}}const Aee={key:"allOf",plugin:(t,e,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(fL(i))return;if(!Array.isArray(t)){const l=new TypeError("allOf must be an array");return l.fullPath=r,l}let a=!1,o=s.value;if(i.forEach(l=>{o&&(o=o[l])}),o={...o},Object.keys(o).length===0)return;delete o.allOf;const u=[];return u.push(n.replace(i,{})),t.forEach((l,c)=>{if(!n.isObject(l)){if(a)return null;a=!0;const d=new TypeError("Elements in allOf must be objects");return d.fullPath=r,u.push(d)}u.push(n.mergeDeep(i,l));const p=r.slice(0,-1),h=hee(l,p,{getBaseUrlForNodePath:d=>n.getContext([...r,c,...d]).baseDoc,specmap:n});u.push(...h)}),o.example&&u.push(n.remove([].concat(i,"example"))),u.push(n.mergeDeep(i,o)),o.$$ref||u.push(n.remove([].concat(i,"$$ref"))),u}},Oee={key:"parameters",plugin:(t,e,r,n)=>{if(Array.isArray(t)&&t.length){const s=Object.assign([],t),i=r.slice(0,-1),a={...qt.getIn(n.spec,i)};for(let o=0;o<t.length;o+=1){const u=t[o];try{s[o].default=n.parameterMacro(a,u)}catch(l){const c=new Error(l);return c.fullPath=r,c}}return qt.replace(r,s)}return qt.replace(r,t)}},Cee={key:"properties",plugin:(t,e,r,n)=>{const s={...t};for(const a in t)try{s[a].default=n.modelPropertyMacro(s[a])}catch(o){const u=new Error(o);return u.fullPath=r,u}return qt.replace(r,s)}};class Ree{constructor(e){this.root=iS(e||{})}set(e,r){const n=this.getParent(e,!0);if(!n){nf(this.root,r,null);return}const s=e[e.length-1],{children:i}=n;if(i[s]){nf(i[s],r,n);return}i[s]=iS(r,n)}get(e){if(e=e||[],e.length<1)return this.root.value;let r=this.root,n,s;for(let i=0;i<e.length&&(s=e[i],n=r.children,!!n[s]);i+=1)r=n[s];return r&&r.protoValue}getParent(e,r){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce((n,s)=>{if(!n)return n;const{children:i}=n;return!i[s]&&r&&(i[s]=iS(null,n)),i[s]},this.root)}}function iS(t,e){return nf({children:{}},t,e)}function nf(t,e,r){return t.value=e||{},t.protoValue=r?{...r.protoValue,...t.value}:t.value,Object.keys(t.children).forEach(n=>{const s=t.children[n];t.children[n]=nf(s,s.value,t)}),t}const ZM=100,QM=()=>{};class Tee{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,r){return e.filter(r)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Ree,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),qt,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(qt.isFunction),this.patches.push(qt.add([],this.spec)),this.patches.push(qt.context([],this.context)),this.updatePatches(this.patches)}debug(e,...r){this.debugLevel===e&&console.log(...r)}verbose(e,...r){this.debugLevel==="verbose"&&console.log(`[${e}] `,...r)}wrapPlugin(e,r){const{pathDiscriminator:n}=this;let s=null,i;return e[this.pluginProp]?(s=e,i=e[this.pluginProp]):qt.isFunction(e)?i=e:qt.isObject(e)&&(i=a(e)),Object.assign(i.bind(s),{pluginName:e.name||r,isGenerator:qt.isGenerator(i)});function a(o){const u=(l,c)=>Array.isArray(l)?l.every((p,h)=>p===c[h]):!0;return function*(c,p){const h={};for(const[g,y]of c.filter(qt.isAdditiveMutation).entries())if(g<cL)yield*d(y.value,y.path,y);else return;function*d(g,y,v){if(!qt.isObject(g))o.key===y[y.length-1]&&(yield o.plugin(g,o.key,y,p));else{const E=y.length-1,b=y[E],_=y.indexOf("properties"),w=b==="properties"&&E===_,S=p.allowMetaPatches&&h[g.$$ref];for(const A of Object.keys(g)){const T=g[A],k=y.concat(A),P=qt.isObject(T),F=g.$$ref;if(S||P&&(p.allowMetaPatches&&F&&u(n,k)&&(h[F]=!0),yield*d(T,k,v)),!w&&A===o.key){const R=u(n,y);(!n||R)&&(yield o.plugin(T,A,k,p,v))}}}}}}}nextPlugin(){return this.wrappedPlugins.find(e=>this.getMutationsForPlugin(e).length>0)}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map(e=>e.value))}getPluginHistory(e){const r=this.constructor.getPluginName(e);return this.pluginHistory[r]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const r=this.getPluginHistory(e);return r&&r[r.length-1]||{}}getPluginMutationIndex(e){const r=this.getPluginHistoryTip(e).mutationIndex;return typeof r!="number"?-1:r}updatePluginHistory(e,r){const n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(r)}updatePatches(e){qt.normalizeArray(e).forEach(r=>{if(r instanceof Error){this.errors.push(r);return}try{if(!qt.isObject(r)){this.debug("updatePatches","Got a non-object patch",r);return}if(this.showDebug&&this.allPatches.push(r),qt.isPromise(r.value)){this.promisedPatches.push(r),this.promisedPatchThen(r);return}if(qt.isContextPatch(r)){this.setContext(r.path,r.value);return}qt.isMutation(r)&&this.updateMutations(r)}catch(n){console.error(n),this.errors.push(n)}})}updateMutations(e){typeof e.value=="object"&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const r=qt.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});r&&(this.mutations.push(e),this.state=r)}removePromisedPatch(e){const r=this.promisedPatches.indexOf(e);if(r<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}this.promisedPatches.splice(r,1)}promisedPatchThen(e){return e.value=e.value.then(r=>{const n={...e,value:r};this.removePromisedPatch(e),this.updatePatches(n)}).catch(r=>{this.removePromisedPatch(e),this.updatePatches(r)}),e.value}getMutations(e,r){return e=e||0,typeof r!="number"&&(r=this.mutations.length),this.mutations.slice(e,r)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const r=this.getPluginMutationIndex(e);return this.getMutations(r+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return qt.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,r){return this.contextTree.set(e,r)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,r=this.nextPlugin();if(!r){const i=this.nextPromisedPatch();if(i)return i.then(()=>this.dispatch()).catch(()=>this.dispatch());const a={spec:this.state,errors:this.errors};return this.showDebug&&(a.patches=this.allPatches),Promise.resolve(a)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(r,(e.pluginCount.get(r)||0)+1),e.pluginCount[r]>ZM)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error(`We've reached a hard limit of ${ZM} plugin runs`))});if(r!==this.currentPlugin&&this.promisedPatches.length){const i=this.promisedPatches.map(a=>a.value);return Promise.all(i.map(a=>a.then(QM,QM))).then(()=>this.dispatch())}return n();function n(){e.currentPlugin=r;const i=e.getCurrentMutations(),a=e.mutations.length-1;try{if(r.isGenerator)for(const o of r(i,e.getLib()))s(o);else{const o=r(i,e.getLib());s(o)}}catch(o){console.error(o),s([Object.assign(Object.create(o),{plugin:r})])}finally{e.updatePluginHistory(r,{mutationIndex:a})}return e.dispatch()}function s(i){i&&(i=qt.fullyNormalizeArray(i),e.updatePatches(i,r))}}}function Iee(t){return new Tee(t).dispatch()}const Ca={refs:ex,allOf:Aee,parameters:Oee,properties:Cee};function vL(t,e={}){const{requestInterceptor:r,responseInterceptor:n}=e,s=t.withCredentials?"include":"same-origin";return i=>t({url:i,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:lL},credentials:s}).then(a=>a.body)}function rx(t,e){return!e&&typeof navigator<"u"&&(e=navigator),e&&e.product==="ReactNative"?!!(t&&typeof t=="object"&&typeof t.uri=="string"):typeof File<"u"&&t instanceof File||typeof Blob<"u"&&t instanceof Blob||ArrayBuffer.isView(t)?!0:t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function bL(t,e){return Array.isArray(t)&&t.some(r=>rx(r,e))}class C1 extends File{constructor(e,r="",n={}){super([e],r,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const kee=t=>":/?#[]@!$&'()*+,;=".indexOf(t)>-1,Pee=t=>/^[a-z0-9\-._~]+$/i.test(t);function EL(t,e="reserved"){return[...t].map(r=>{if(Pee(r)||kee(r)&&e==="unsafe")return r;const n=new TextEncoder;return Array.from(n.encode(r)).map(i=>`0${i.toString(16).toUpperCase()}`.slice(-2)).map(i=>`%${i}`).join("")}).join("")}function nx(t){const{value:e}=t;return Array.isArray(e)?jee(t):typeof e=="object"?Nee(t):Mee(t)}function Nr(t,e=!1){return Array.isArray(t)||t!==null&&typeof t=="object"?t=JSON.stringify(t):(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),e&&typeof t=="string"&&t.length>0?EL(t,e):t??""}function jee({key:t,value:e,style:r,explode:n,escape:s}){if(r==="simple")return e.map(i=>Nr(i,s)).join(",");if(r==="label")return`.${e.map(i=>Nr(i,s)).join(".")}`;if(r==="matrix")return e.map(i=>Nr(i,s)).reduce((i,a)=>!i||n?`${i||""};${t}=${a}`:`${i},${a}`,"");if(r==="form"){const i=n?`&${t}=`:",";return e.map(a=>Nr(a,s)).join(i)}if(r==="spaceDelimited"){const i=n?`${t}=`:"";return e.map(a=>Nr(a,s)).join(` ${i}`)}if(r==="pipeDelimited"){const i=n?`${t}=`:"";return e.map(a=>Nr(a,s)).join(`|${i}`)}}function Nee({key:t,value:e,style:r,explode:n,escape:s}){const i=Object.keys(e);if(r==="simple")return i.reduce((a,o)=>{const u=Nr(e[o],s),l=n?"=":",";return`${a?`${a},`:""}${o}${l}${u}`},"");if(r==="label")return i.reduce((a,o)=>{const u=Nr(e[o],s),l=n?"=":".";return`${a?`${a}.`:"."}${o}${l}${u}`},"");if(r==="matrix"&&n)return i.reduce((a,o)=>{const u=Nr(e[o],s);return`${a?`${a};`:";"}${o}=${u}`},"");if(r==="matrix")return i.reduce((a,o)=>{const u=Nr(e[o],s);return`${a?`${a},`:`;${t}=`}${o},${u}`},"");if(r==="form")return i.reduce((a,o)=>{const u=Nr(e[o],s);return`${a?`${a}${n?"&":","}`:""}${o}${n?"=":","}${u}`},"")}function Mee({key:t,value:e,style:r,escape:n}){if(r==="simple")return Nr(e,n);if(r==="label")return`.${Nr(e,n)}`;if(r==="matrix")return`;${t}=${Nr(e,n)}`;if(r==="form"||r==="deepObject")return Nr(e,n)}const Dee={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Fee={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function SL(t,e,r=!1){const{collectionFormat:n,allowEmptyValue:s,serializationOption:i,encoding:a}=e,o=typeof e=="object"&&!Array.isArray(e)?e.value:e,u=r?c=>c.toString():c=>encodeURIComponent(c),l=u(t);if(typeof o>"u"&&s)return[[l,""]];if(rx(o)||bL(o))return[[l,o]];if(i)return eD(t,o,r,i);if(a){if([typeof a.style,typeof a.explode,typeof a.allowReserved].some(c=>c!=="undefined")){const{style:c,explode:p,allowReserved:h}=a;return eD(t,o,r,{style:c,explode:p,allowReserved:h})}if(typeof a.contentType=="string"){if(a.contentType.startsWith("application/json")){const h=typeof o=="string"?o:JSON.stringify(o),d=u(h),g=new C1(d,"blob",{type:a.contentType});return[[l,g]]}const c=u(String(o)),p=new C1(c,"blob",{type:a.contentType});return[[l,p]]}return typeof o!="object"?[[l,u(o)]]:Array.isArray(o)&&o.every(c=>typeof c!="object")?[[l,o.map(u).join(",")]]:[[l,u(JSON.stringify(o))]]}return typeof o!="object"?[[l,u(o)]]:Array.isArray(o)?n==="multi"?[[l,o.map(u)]]:[[l,o.map(u).join(Fee[n||"csv"])]]:[[l,""]]}function eD(t,e,r,n){const s=n.style||"form",i=typeof n.explode>"u"?s==="form":n.explode,a=r?!1:n&&n.allowReserved?"unsafe":"reserved",o=l=>Nr(l,a),u=r?l=>l:l=>o(l);return typeof e!="object"?[[u(t),o(e)]]:Array.isArray(e)?i?[[u(t),e.map(o)]]:[[u(t),e.map(o).join(Dee[s])]]:s==="deepObject"?Object.keys(e).map(l=>[u(`${t}[${l}]`),o(e[l])]):i?Object.keys(e).map(l=>[u(l),o(e[l])]):[[u(t),Object.keys(e).map(l=>[`${u(l)},${o(e[l])}`]).join(",")]]}function qee(t){return Object.entries(t).reduce((e,[r,n])=>{for(const[s,i]of SL(r,n,!0))if(Array.isArray(i))for(const a of i)if(ArrayBuffer.isView(a)){const o=new Blob([a]);e.append(s,o)}else e.append(s,a);else if(ArrayBuffer.isView(i)){const a=new Blob([i]);e.append(s,a)}else e.append(s,i);return e},new FormData)}const Bee=(t,{encode:e=!0}={})=>{const r=(i,a,o)=>(Array.isArray(o)?o.reduce((u,l)=>r(i,a,l),i):o instanceof Date?i.append(a,o.toISOString()):typeof o=="object"?Object.entries(o).reduce((u,[l,c])=>r(i,`${a}[${l}]`,c),i):i.append(a,o),i),n=Object.entries(t).reduce((i,[a,o])=>r(i,a,o),new URLSearchParams),s=String(n);return e?s:decodeURIComponent(s)};function tD(t){const e=Object.keys(t).reduce((r,n)=>{for(const[s,i]of SL(n,t[n]))i instanceof C1?r[s]=i.valueOf():r[s]=i;return r},{});return Bee(e,{encode:!1})}function sx(t={}){const{url:e="",query:r,form:n}=t,s=(...i)=>{const a=i.filter(o=>o).join("&");return a?`?${a}`:""};if(n){const i=Object.keys(n).some(o=>{const{value:u}=n[o];return rx(u)||bL(u)}),a=t.headers["content-type"]||t.headers["Content-Type"];if(i||/multipart\/form-data/i.test(a)){const o=qee(t.form);t.formdata=o,t.body=o}else t.body=tD(n);delete t.form}if(r){const[i,a]=e.split("?");let o="";if(a){const l=new URLSearchParams(a);Object.keys(r).forEach(p=>l.delete(p)),o=String(l)}const u=s(o,tD(r));t.url=i+u,delete t.query}return t}const $ee=(t="")=>/(json|xml|yaml|text)\b/.test(t);function Lee(t,e){if(e){if(e.indexOf("application/json")===0||e.indexOf("+json")>0)return JSON.parse(t);if(e.indexOf("application/xml")===0||e.indexOf("+xml")>0)return t}return ea.load(t)}function Uee(t){return t.includes(", ")?t.split(", "):t}function Vee(t={}){return typeof t.entries!="function"?{}:Array.from(t.entries()).reduce((e,[r,n])=>(e[r]=Uee(n),e),{})}function _L(t,e,{loadSpec:r=!1}={}){const n={ok:t.ok,url:t.url||e,status:t.status,statusText:t.statusText,headers:Vee(t.headers)},s=n.headers["content-type"],i=r||$ee(s);return(i?t.text:t.blob||t.buffer).call(t).then(o=>{if(n.text=o,n.data=o,i)try{const u=Lee(o,s);n.body=u,n.obj=u}catch(u){n.parseError=u}return n})}async function uu(t,e={}){typeof t=="object"&&(e=t,t=e.url),e.headers=e.headers||{},e=sx(e),e.headers&&Object.keys(e.headers).forEach(s=>{const i=e.headers[s];typeof i=="string"&&(e.headers[s]=i.replace(/\n+/g," "))}),e.requestInterceptor&&(e=await e.requestInterceptor(e)||e);const r=e.headers["content-type"]||e.headers["Content-Type"];/multipart\/form-data/i.test(r)&&(delete e.headers["content-type"],delete e.headers["Content-Type"]);let n;try{n=await(e.userFetch||fetch)(e.url,e),n=await _L(n,t,e),e.responseInterceptor&&(n=await e.responseInterceptor(n)||n)}catch(s){if(!n)throw s;const i=new Error(n.statusText||`response status is ${n.status}`);throw i.status=n.status,i.statusCode=n.status,i.responseError=s,i}if(!n.ok){const s=new Error(n.statusText||`response status is ${n.status}`);throw s.status=n.status,s.statusCode=n.status,s.response=n,s}return n}function zee(t,e,r){return r=r||(n=>n),e=e||(n=>n),n=>(typeof n=="string"&&(n={url:n}),n=sx(n),n=e(n),r(t(n)))}const ix=t=>{var e,r;const{baseDoc:n,url:s}=t,i=(e=n??s)!==null&&e!==void 0?e:"";return typeof((r=globalThis.document)===null||r===void 0?void 0:r.baseURI)=="string"?String(new URL(i,globalThis.document.baseURI)):i},wL=t=>{const{fetch:e,http:r}=t;return e||r||uu};async function ax(t){const{spec:e,mode:r,allowMetaPatches:n=!0,pathDiscriminator:s,modelPropertyMacro:i,parameterMacro:a,requestInterceptor:o,responseInterceptor:u,skipNormalization:l=!1,useCircularStructures:c,strategies:p}=t,h=ix(t),d=wL(t),g=p.find(v=>v.match(e));return y(e);async function y(v){h&&(Ca.refs.docCache[h]=v),Ca.refs.fetchJSON=vL(d,{requestInterceptor:o,responseInterceptor:u});const E=[Ca.refs];typeof a=="function"&&E.push(Ca.parameters),typeof i=="function"&&E.push(Ca.properties),r!=="strict"&&E.push(Ca.allOf);const b=await Iee({spec:v,context:{baseDoc:h},plugins:E,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:a,modelPropertyMacro:i,useCircularStructures:c});return l||(b.spec=g.normalize(b.spec)),b}}const xL=t=>t.replace(/\W/gi,"_");function Wee(t,e,{v2OperationIdCompatibilityMode:r}={}){if(r){let n=`${e.toLowerCase()}_${t}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return n=n||`${t.substring(1)}_${e}`,n.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${e.toLowerCase()}${xL(t)}`}function Wf(t,e,r="",{v2OperationIdCompatibilityMode:n}={}){return!t||typeof t!="object"?null:(t.operationId||"").replace(/\s/g,"").length?xL(t.operationId):Wee(e,r,{v2OperationIdCompatibilityMode:n})}function ox(t){const{spec:e}=t,{paths:r}=e,n={};if(!r||e.$$normalized)return t;for(const s in r){const i=r[s];if(i==null||!["object","function"].includes(typeof i))continue;const a=i.parameters;for(const o in i){const u=i[o];if(u==null||!["object","function"].includes(typeof u))continue;const l=Wf(u,s,o);if(l){n[l]?n[l].push(u):n[l]=[u];const c=n[l];if(c.length>1)c.forEach((p,h)=>{p.__originalOperationId=p.__originalOperationId||p.operationId,p.operationId=`${l}${h+1}`});else if(typeof u.operationId<"u"){const p=c[0];p.__originalOperationId=p.__originalOperationId||u.operationId,p.operationId=l}}if(o!=="parameters"){const c=[],p={};for(const h in e)(h==="produces"||h==="consumes"||h==="security")&&(p[h]=e[h],c.push(p));if(a&&(p.parameters=a,c.push(p)),c.length){for(const h of c)for(const d in h)if(!Array.isArray(u[d]))u[d]=h[d];else if(d==="parameters")for(const g of h[d])u[d].some(v=>!ns(v)&&!ns(g)?!1:v===g?!0:["name","$ref","$$ref"].some(E=>typeof v[E]=="string"&&typeof g[E]=="string"&&v[E]===g[E]))||u[d].push(g)}}}}return e.$$normalized=!0,t}const AL={name:"generic",match(){return!0},normalize(t){const{spec:e}=ox({spec:t});return e},async resolve(t){return ax(t)}};async function Jee(t){return ax(t)}const Hee=t=>{try{const{swagger:e}=t;return e==="2.0"}catch{return!1}},OL=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},ux=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},CL=t=>OL(t)||ux(t),RL={name:"openapi-2",match(t){return Hee(t)},normalize(t){const{spec:e}=ox({spec:t});return e},async resolve(t){return Jee(t)}};async function Kee(t){return ax(t)}const TL={name:"openapi-3-0",match(t){return OL(t)},normalize(t){const{spec:e}=ox({spec:t});return e},async resolve(t){return Kee(t)}},Gee=t=>{try{const e=t.startsWith("#")?t.slice(1):t;return decodeURIComponent(e)}catch{return t}},Nn=t=>{const e=t.indexOf("#"),r=e===-1?"#":t.substring(e);return Gee(r)};function Gu(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+=`; JavaScript Object Notation (JSON) Pointer ABNF syntax
69
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc6901
70
- `,e+=`json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used
71
- `,e+=`reference-token = *( unescaped / escaped )
72
- `,e+=`unescaped = %x00-2E / %x30-7D / %x7F-10FFFF
73
- `,e+=` ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
74
- `,e+=`escaped = "~" ( "0" / "1" )
75
- `,e+=` ; representing '~' and '/', respectively
76
- `,e+=`
77
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc6901#section-4
78
- `,e+=`array-location = array-index / array-dash
79
- `,e+=`array-index = %x30 / ( %x31-39 *(%x30-39) )
80
- `,e+=` ; "0", or digits without a leading "0"
81
- `,e+=`array-dash = "-"
82
- `,e+=`
83
- `,e+=`; Surrogate named rules
84
- `,e+=`slash = "/"
85
- `,e}}const Un=function(){const e=vt,r=_n,n=this,s="parser.js: Parser(): ",i=function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let a=0,o=0,u=0,l=0,c=0,p,h,d,g,y=new i,v,E,b;const _=()=>{a=0,o=0,u=0,l=0,c=0,p=void 0,h=void 0,d=void 0,g=void 0,y.refresh(),v=void 0,E=void 0,b=void 0},w=()=>{const X=`${s}initializeCallbacks(): `;let te;for(v=[],E=[],te=0;te<p.length;te+=1)v[te]=void 0;for(te=0;te<h.length;te+=1)E[te]=void 0;let le;const se=[];for(te=0;te<p.length;te+=1)se.push(p[te].lower);for(te=0;te<h.length;te+=1)se.push(h[te].lower);for(const ue in n.callbacks)if(n.callbacks.hasOwnProperty(ue)){if(te=se.indexOf(ue.toLowerCase()),te<0)throw new Error(`${X}syntax callback '${ue}' not a rule or udt name`);if(le=n.callbacks[ue]?n.callbacks[ue]:void 0,typeof le=="function"||le===void 0)te<p.length?v[te]=le:E[te-p.length]=le;else throw new Error(`${X}syntax callback[${ue}] must be function reference or falsy)`)}};n.parse=(X,te,le,se)=>{const ue=`${s}parse(): `;_(),g=r.stringToChars(le),p=X.rules,h=X.udts;const ve=te.toLowerCase();let he;for(const W in p)if(p.hasOwnProperty(W)&&ve===p[W].lower){he=p[W].index;break}if(he===void 0)throw new Error(`${ue}start rule name '${startRule}' not recognized`);w(),n.trace&&n.trace.init(p,h,g),n.stats&&n.stats.init(p,h),n.ast&&n.ast.init(p,h,g),b=se,d=[{type:e.RNM,index:he}],Z(0,0),d=void 0;let re=!1;switch(y.state){case e.ACTIVE:throw new Error(`${ue}final state should never be 'ACTIVE'`);case e.NOMATCH:re=!1;break;case e.EMPTY:case e.MATCH:y.phraseLength===g.length?re=!0:re=!1;break;default:throw new Error("unrecognized state")}return{success:re,state:y.state,stateName:e.idName(y.state),length:g.length,matched:y.phraseLength,maxMatched:c,maxTreeDepth:u,nodeHits:l}};const S=(X,te)=>{const le=d[X];for(let se=0;se<le.children.length&&(Z(le.children[se],te),y.state===e.NOMATCH);se+=1);},A=(X,te)=>{let le,se,ue,ve;const he=d[X];n.ast&&(se=n.ast.getLength()),le=!0,ue=te,ve=0;for(let re=0;re<he.children.length;re+=1)if(Z(he.children[re],ue),y.state===e.NOMATCH){le=!1;break}else ue+=y.phraseLength,ve+=y.phraseLength;le?(y.state=ve===0?e.EMPTY:e.MATCH,y.phraseLength=ve):(y.state=e.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(se))},T=(X,te)=>{let le,se,ue,ve;const he=d[X];if(he.max===0){y.state=e.EMPTY,y.phraseLength=0;return}for(se=te,ue=0,ve=0,n.ast&&(le=n.ast.getLength());!(se>=g.length||(Z(X+1,se),y.state===e.NOMATCH)||y.state===e.EMPTY||(ve+=1,ue+=y.phraseLength,se+=y.phraseLength,ve===he.max)););y.state===e.EMPTY||ve>=he.min?(y.state=ue===0?e.EMPTY:e.MATCH,y.phraseLength=ue):(y.state=e.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(le))},k=(X,te,le,se)=>{if(te.phraseLength>le){let ue=`${s}opRNM(${X.name}): callback function error: `;throw ue+=`sysData.phraseLength: ${te.phraseLength}`,ue+=` must be <= remaining chars: ${le}`,new Error(ue)}switch(te.state){case e.ACTIVE:if(!se)throw new Error(`${s}opRNM(${X.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:te.phraseLength=0;break;case e.MATCH:te.phraseLength===0&&(te.state=e.EMPTY);break;case e.NOMATCH:te.phraseLength=0;break;default:throw new Error(`${s}opRNM(${X.name}): callback function return error. Unrecognized return state: ${te.state}`)}},P=(X,te)=>{let le,se,ue;const ve=d[X],he=p[ve.index],re=v[he.index];if(a||(se=n.ast&&n.ast.ruleDefined(ve.index),se&&(le=n.ast.getLength(),n.ast.down(ve.index,p[ve.index].name))),re){const W=g.length-te;re(y,g,te,b),k(he,y,W,!0),y.state===e.ACTIVE&&(ue=d,d=he.opcodes,Z(0,te),d=ue,re(y,g,te,b),k(he,y,W,!1))}else ue=d,d=he.opcodes,Z(0,te),d=ue;a||se&&(y.state===e.NOMATCH?n.ast.setLength(le):n.ast.up(ve.index,he.name,te,y.phraseLength))},F=(X,te)=>{const le=d[X];y.state=e.NOMATCH,te<g.length&&le.min<=g[te]&&g[te]<=le.max&&(y.state=e.MATCH,y.phraseLength=1)},R=(X,te)=>{const le=d[X],se=le.string.length;if(y.state=e.NOMATCH,te+se<=g.length){for(let ue=0;ue<se;ue+=1)if(g[te+ue]!==le.string[ue])return;y.state=e.MATCH,y.phraseLength=se}},$=(X,te)=>{let le;const se=d[X];y.state=e.NOMATCH;const ue=se.string.length;if(ue===0){y.state=e.EMPTY;return}if(te+ue<=g.length){for(let ve=0;ve<ue;ve+=1)if(le=g[te+ve],le>=65&&le<=90&&(le+=32),le!==se.string[ve])return;y.state=e.MATCH,y.phraseLength=ue}},M=(X,te,le)=>{if(te.phraseLength>le){let se=`${s}opUDT(${X.name}): callback function error: `;throw se+=`sysData.phraseLength: ${te.phraseLength}`,se+=` must be <= remaining chars: ${le}`,new Error(se)}switch(te.state){case e.ACTIVE:throw new Error(`${s}opUDT(${X.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(X.empty)te.phraseLength=0;else throw new Error(`${s}opUDT(${X.name}) may not return EMPTY.`);break;case e.MATCH:if(te.phraseLength===0)if(X.empty)te.state=e.EMPTY;else throw new Error(`${s}opUDT(${X.name}) may not return EMPTY.`);break;case e.NOMATCH:te.phraseLength=0;break;default:throw new Error(`${s}opUDT(${X.name}): callback function return error. Unrecognized return state: ${te.state}`)}},K=(X,te)=>{let le,se,ue;const ve=d[X],he=h[ve.index];y.UdtIndex=he.index,a||(ue=n.ast&&n.ast.udtDefined(ve.index),ue&&(se=p.length+ve.index,le=n.ast.getLength(),n.ast.down(se,he.name)));const re=g.length-te;E[ve.index](y,g,te,b),M(he,y,re),a||ue&&(y.state===e.NOMATCH?n.ast.setLength(le):n.ast.up(se,he.name,te,y.phraseLength))},ee=(X,te)=>{switch(a+=1,Z(X+1,te),a-=1,y.phraseLength=0,y.state){case e.EMPTY:y.state=e.EMPTY;break;case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}},G=(X,te)=>{switch(a+=1,Z(X+1,te),a-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}},Z=(X,te)=>{const le=`${s}opExecute(): `,se=d[X];switch(l+=1,o>u&&(u=o),o+=1,y.refresh(),n.trace&&n.trace.down(se,te),se.type){case e.ALT:S(X,te);break;case e.CAT:A(X,te);break;case e.REP:T(X,te);break;case e.RNM:P(X,te);break;case e.TRG:F(X,te);break;case e.TBS:R(X,te);break;case e.TLS:$(X,te);break;case e.UDT:K(X,te);break;case e.AND:ee(X,te);break;case e.NOT:G(X,te);break;default:throw new Error(`${le}unrecognized operator`)}a||te+y.phraseLength>c&&(c=te+y.phraseLength),n.stats&&n.stats.collect(se,y),n.trace&&n.trace.up(se,y.state,te,y.phraseLength),o-=1}},lx=function(){const e="parser.js: Ast()): ",r=vt,n=_n,s=this;let i,a,o,u=0;const l=[],c=[],p=[];s.callbacks=[],s.init=(d,g,y)=>{c.length=0,p.length=0,u=0,i=d,a=g,o=y;let v;const E=[];for(v=0;v<i.length;v+=1)E.push(i[v].lower);for(v=0;v<a.length;v+=1)E.push(a[v].lower);for(u=i.length+a.length,v=0;v<u;v+=1)l[v]=void 0;for(const b in s.callbacks)if(s.callbacks.hasOwnProperty(b)){const _=b.toLowerCase();if(v=E.indexOf(_),v<0)throw new Error(`${e}init: node '${b}' not a rule or udt name`);l[v]=s.callbacks[b]}},s.ruleDefined=d=>!!l[d],s.udtDefined=d=>!!l[i.length+d],s.down=(d,g)=>{const y=p.length;return c.push(y),p.push({name:g,thisIndex:y,thatIndex:void 0,state:r.SEM_PRE,callbackIndex:d,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),y},s.up=(d,g,y,v)=>{const E=p.length,b=c.pop();return p.push({name:g,thisIndex:E,thatIndex:b,state:r.SEM_POST,callbackIndex:d,phraseIndex:y,phraseLength:v,stack:c.length}),p[b].thatIndex=E,p[b].phraseIndex=y,p[b].phraseLength=v,E},s.translate=d=>{let g,y;for(let v=0;v<p.length;v+=1)y=p[v],g=l[y.callbackIndex],g&&(y.state===r.SEM_PRE?g(r.SEM_PRE,o,y.phraseIndex,y.phraseLength,d):g&&g(r.SEM_POST,o,y.phraseIndex,y.phraseLength,d))},s.setLength=d=>{p.length=d,d>0?c.length=p[d-1].stack:c.length=0},s.getLength=()=>p.length;function h(d){let g="";for(;d-- >0;)g+=" ";return g}s.toXml=()=>{let d="",g=0;return d+=`<?xml version="1.0" encoding="utf-8"?>
86
- `,d+=`<root nodes="${p.length/2}" characters="${o.length}">
87
- `,d+=`<!-- input string -->
88
- `,d+=h(g+2),d+=n.charsToString(o),d+=`
89
- `,p.forEach(y=>{y.state===r.SEM_PRE?(g+=1,d+=h(g),d+=`<node name="${y.name}" index="${y.phraseIndex}" length="${y.phraseLength}">
90
- `,d+=h(g+2),d+=n.charsToString(o,y.phraseIndex,y.phraseLength),d+=`
91
- `):(d+=h(g),d+=`</node><!-- name="${y.name}" -->
92
- `,g-=1)}),d+=`</root>
93
- `,d}},Yee=function(){const e=vt,r=_n,n="parser.js: Trace(): ";let s,i,a,o="",u=0;const l=100,c=this,p=d=>{let g="",y=0;if(d>=0)for(;d--;)y+=1,y===5?(g+="|",y=0):g+=".";return g};c.init=(d,g,y)=>{i=d,a=g,s=y};const h=d=>{let g;switch(d.type){case e.ALT:g="ALT";break;case e.CAT:g="CAT";break;case e.REP:d.max===1/0?g=`REP(${d.min},inf)`:g=`REP(${d.min},${d.max})`;break;case e.RNM:g=`RNM(${i[d.index].name})`;break;case e.TRG:g=`TRG(${d.min},${d.max})`;break;case e.TBS:d.string.length>6?g=`TBS(${r.charsToString(d.string,0,3)}...)`:g=`TBS(${r.charsToString(d.string,0,6)})`;break;case e.TLS:d.string.length>6?g=`TLS(${r.charsToString(d.string,0,3)}...)`:g=`TLS(${r.charsToString(d.string,0,6)})`;break;case e.UDT:g=`UDT(${a[d.index].name})`;break;case e.AND:g="AND";break;case e.NOT:g="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return g};c.down=(d,g)=>{const y=p(u),v=Math.min(l,s.length-g);let E=r.charsToString(s,g,v);v<s.length-g&&(E+="..."),E=`${y}|-|[${h(d)}]${E}
94
- `,o+=E,u+=1},c.up=(d,g,y,v)=>{const E=`${n}trace.up: `;u-=1;const b=p(u);let _,w,S;switch(g){case e.EMPTY:S="|E|",w="''";break;case e.MATCH:S="|M|",_=Math.min(l,v),_<v?w=`'${r.charsToString(s,y,_)}...'`:w=`'${r.charsToString(s,y,_)}'`;break;case e.NOMATCH:S="|N|",w="";break;default:throw new Error(`${E} unrecognized state`)}w=`${b}${S}[${h(d)}]${w}
95
- `,o+=w},c.displayTrace=()=>o},Xee=function(){const e=vt,r="parser.js: Stats(): ";let n,s,i;const a=[],o=[],u=[];this.init=(v,E)=>{n=v,s=E,g()},this.collect=(v,E)=>{y(i,E.state,E.phraseLength),y(a[v.type],E.state,E.phraseLength),v.type===e.RNM&&y(o[v.index],E.state,E.phraseLength),v.type===e.UDT&&y(u[v.index],E.state,E.phraseLength)},this.displayStats=()=>{let v="";const E={match:0,empty:0,nomatch:0,total:0},b=(_,w,S,A,T)=>{E.match+=w,E.empty+=S,E.nomatch+=A,E.total+=T;const k=l(w),P=l(S),F=l(A),R=l(T);return`${_} | ${k} | ${P} | ${F} | ${R} |
96
- `};return v+=` OPERATOR STATS
97
- `,v+=` | MATCH | EMPTY | NOMATCH | TOTAL |
98
- `,v+=b(" ALT",a[e.ALT].match,a[e.ALT].empty,a[e.ALT].nomatch,a[e.ALT].total),v+=b(" CAT",a[e.CAT].match,a[e.CAT].empty,a[e.CAT].nomatch,a[e.CAT].total),v+=b(" REP",a[e.REP].match,a[e.REP].empty,a[e.REP].nomatch,a[e.REP].total),v+=b(" RNM",a[e.RNM].match,a[e.RNM].empty,a[e.RNM].nomatch,a[e.RNM].total),v+=b(" TRG",a[e.TRG].match,a[e.TRG].empty,a[e.TRG].nomatch,a[e.TRG].total),v+=b(" TBS",a[e.TBS].match,a[e.TBS].empty,a[e.TBS].nomatch,a[e.TBS].total),v+=b(" TLS",a[e.TLS].match,a[e.TLS].empty,a[e.TLS].nomatch,a[e.TLS].total),v+=b(" UDT",a[e.UDT].match,a[e.UDT].empty,a[e.UDT].nomatch,a[e.UDT].total),v+=b(" AND",a[e.AND].match,a[e.AND].empty,a[e.AND].nomatch,a[e.AND].total),v+=b(" NOT",a[e.NOT].match,a[e.NOT].empty,a[e.NOT].nomatch,a[e.NOT].total),v+=b("TOTAL",E.match,E.empty,E.nomatch,E.total),v},this.displayHits=v=>{let E="";const b=(_,w,S,A,T)=>{i.match+=_,i.empty+=w,i.nomatch+=S,i.total+=A;const k=l(_),P=l(w),F=l(S),R=l(A);return`| ${k} | ${P} | ${F} | ${R} | ${T}
99
- `};typeof v=="string"&&v.toLowerCase()[0]==="a"?(o.sort(c),u.sort(c),E+=` RULES/UDTS ALPHABETICALLY
100
- `):typeof v=="string"&&v.toLowerCase()[0]==="i"?(o.sort(h),u.sort(h),E+=` RULES/UDTS BY INDEX
101
- `):(o.sort(p),u.sort(p),E+=` RULES/UDTS BY HIT COUNT
102
- `),E+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME
103
- `;for(let _=0;_<o.length;_+=1){let w=o[_];w.total&&(E+=b(w.match,w.empty,w.nomatch,w.total,w.name))}for(let _=0;_<u.length;_+=1){let w=u[_];w.total&&(E+=b(w.match,w.empty,w.nomatch,w.total,w.name))}return E};const l=v=>v<10?` ${v}`:v<100?` ${v}`:v<1e3?` ${v}`:v<1e4?` ${v}`:v<1e5?` ${v}`:v<1e6?` ${v}`:`${v}`,c=(v,E)=>v.lower<E.lower?-1:v.lower>E.lower?1:0,p=(v,E)=>v.total<E.total?1:v.total>E.total?-1:c(v,E),h=(v,E)=>v.index<E.index?-1:v.index>E.index?1:0,d=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},g=()=>{a.length=0,i=new d,a[e.ALT]=new d,a[e.CAT]=new d,a[e.REP]=new d,a[e.RNM]=new d,a[e.TRG]=new d,a[e.TBS]=new d,a[e.TLS]=new d,a[e.UDT]=new d,a[e.AND]=new d,a[e.NOT]=new d,o.length=0;for(let v=0;v<n.length;v+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:n[v].name,lower:n[v].lower,index:n[v].index});if(s.length>0){u.length=0;for(let v=0;v<s.length;v+=1)u.push({empty:0,match:0,nomatch:0,total:0,name:s[v].name,lower:s[v].lower,index:s[v].index})}},y=(v,E)=>{switch(v.total+=1,E){case e.EMPTY:v.empty+=1;break;case e.MATCH:v.match+=1;break;case e.NOMATCH:v.nomatch+=1;break;default:throw new Error(`${r}collect(): incStat(): unrecognized state: ${E}`)}}},_n={stringToChars:t=>[...t].map(e=>e.codePointAt(0)),charsToString:(t,e,r)=>{let n=t;for(;!(e===void 0||e<0);){if(r===void 0){n=t.slice(e);break}if(r<=0)return"";n=t.slice(e,e+r);break}return String.fromCodePoint(...n)}},vt={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:t=>{switch(t){case vt.ALT:return"ALT";case vt.CAT:return"CAT";case vt.REP:return"REP";case vt.RNM:return"RNM";case vt.TRG:return"TRG";case vt.TBS:return"TBS";case vt.TLS:return"TLS";case vt.UDT:return"UDT";case vt.AND:return"AND";case vt.NOT:return"NOT";case vt.ACTIVE:return"ACTIVE";case vt.EMPTY:return"EMPTY";case vt.MATCH:return"MATCH";case vt.NOMATCH:return"NOMATCH";case vt.SEM_PRE:return"SEM_PRE";case vt.SEM_POST:return"SEM_POST";case vt.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};class Ei extends Error{constructor(e,r=void 0){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack}
104
- CAUSE: ${n.stack}`)}if(r!=null&&typeof r=="object"){const{cause:n,...s}=r;Object.assign(this,s)}}}class IL extends Ei{}const aS=t=>(e,r,n,s,i)=>{if(!(typeof i=="object"&&i!==null&&!Array.isArray(i)))throw new IL("parser's user data must be an object");if(e===vt.SEM_PRE){const a={type:t,text:_n.charsToString(r,n,s),start:n,length:s,children:[]};i.stack.length>0?i.stack[i.stack.length-1].children.push(a):i.root=a,i.stack.push(a)}e===vt.SEM_POST&&i.stack.pop()};class Zee extends lx{constructor(){super(),this.callbacks["json-pointer"]=aS("json-pointer"),this.callbacks["reference-token"]=aS("reference-token"),this.callbacks.slash=aS("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}}const Qee=t=>{if(typeof t!="string")throw new TypeError("Reference token must be a string");return t.replace(/~1/g,"/").replace(/~0/g,"~")};class ete extends Zee{getTree(){const{root:e}=super.getTree();return e.children.filter(({type:r})=>r==="reference-token").map(({text:r})=>Qee(r))}}class tte extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(", ")}}class rte extends Yee{inferExpectations(){const e=this.displayTrace().split(`
105
- `),r=new Set;let n=-1;for(let s=0;s<e.length;s++){const i=e[s];if(i.includes("M|")){const a=i.match(/]'(.*)'$/);a&&a[1]&&(n=s)}if(s>n){const a=i.match(/N\|\[TLS\(([^)]+)\)]/);a&&r.add(a[1])}}return new tte(...r)}}const nte=new Gu,ste=(t,{translator:e=new ete,stats:r=!1,trace:n=!1}={})=>{if(typeof t!="string")throw new TypeError("JSON Pointer must be a string");try{const s=new Un;e&&(s.ast=e),r&&(s.stats=new Xee),n&&(s.trace=new rte);const i=s.parse(nte,"json-pointer",t);return{result:i,tree:i.success&&e?s.ast.getTree():void 0,stats:s.stats,trace:s.trace}}catch(s){throw new IL("Unexpected error during JSON Pointer parsing",{cause:s,jsonPointer:t})}};new Gu;new Un;new Gu;new Un;const ite=new Gu,ate=new Un,ote=t=>{if(typeof t!="string")return!1;try{return ate.parse(ite,"array-index",t).success}catch{return!1}},ute=new Gu,lte=new Un,cte=t=>{if(typeof t!="string")return!1;try{return lte.parse(ute,"array-dash",t).success}catch{return!1}},fte=t=>{if(typeof t!="string"&&typeof t!="number")throw new TypeError("Reference token must be a string or number");return String(t).replace(/~/g,"~0").replace(/\//g,"~1")};class pte extends Ei{}const kL=t=>{if(!Array.isArray(t))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return t.length===0?"":`/${t.map(e=>{if(typeof e!="string"&&typeof e!="number")throw new TypeError("Reference token must be a string or number");return fte(String(e))}).join("/")}`}catch(e){throw new pte("Unexpected error during JSON Pointer compilation",{cause:e,referenceTokens:t})}};class dte{#e;#t;#r;constructor(e,r={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${r.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...r,realm:r.realm.name},this.#t=[],this.#r=r.realm}step({referenceToken:e,input:r,output:n,success:s=!0,reason:i}){const a=this.#t.length;this.#t.push(e);const o={referenceToken:e,referenceTokenPosition:a,input:r,inputType:this.#r.isObject(r)?"object":this.#r.isArray(r)?"array":"unrecognized",output:n,success:s};i&&(o.reason=i),this.#e.steps.push(o),s||(this.#e.failed=!0,this.#e.failedAt=a,this.#e.message=i)}}class PL{name="";isArray(e){throw new Ei("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Ei("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Ei("Realm.sizeOf(node) must be implemented in a subclass")}has(e,r){throw new Ei("Realm.has(node) must be implemented in a subclass")}evaluate(e,r){throw new Ei("Realm.evaluate(node) must be implemented in a subclass")}}class Qi extends Ei{}class qa extends Qi{}class hte extends PL{name="json";isArray(e){return Array.isArray(e)}isObject(e){return typeof e=="object"&&e!==null&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,r){if(this.isArray(e)){const n=Number(r),s=n>>>0;if(n!==s)throw new qa(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return s<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,n)}return this.isObject(e)?Object.prototype.hasOwnProperty.call(e,r):!1}evaluate(e,r){return this.isArray(e)?e[Number(r)]:e[r]}}class mte extends Qi{}class jL extends Qi{}const gte=(t,e,{strictArrays:r=!0,strictObjects:n=!0,realm:s=new hte,trace:i=!0}={})=>{const{result:a,tree:o,trace:u}=ste(e,{trace:!!i}),l=typeof i=="object"&&i!==null?new dte(i,{jsonPointer:e,referenceTokens:o,strictArrays:r,strictObjects:n,realm:s,value:t}):null;try{let c;if(!a.success){let p=`Invalid JSON Pointer: "${e}". Syntax error at position ${a.maxMatched}`;throw p+=u?`, expected ${u.inferExpectations()}`:"",new Qi(p,{jsonPointer:e,currentValue:t,realm:s.name})}return o.reduce((p,h,d)=>{if(s.isArray(p)){if(cte(h)){if(r)throw new qa(`Invalid array index "-" at position ${d} in "${e}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:s.name});return c=s.evaluate(p,String(s.sizeOf(p))),l?.step({referenceToken:h,input:p,output:c}),c}if(!ote(h))throw new qa(`Invalid array index "${h}" at position ${d} in "${e}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:s.name});const g=Number(h);if(!Number.isSafeInteger(g))throw new qa(`Invalid array index "${h}" at position ${d} in "${e}": index must be a safe integer`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:s.name});if(!s.has(p,h)&&r)throw new qa(`Invalid array index "${h}" at position ${d} in "${e}": index not found in array`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:s.name});return c=s.evaluate(p,h),l?.step({referenceToken:h,input:p,output:c}),c}if(s.isObject(p)){if(!s.has(p,h)&&n)throw new jL(`Invalid object key "${h}" at position ${d} in "${e}": key not found in object`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:s.name});return c=s.evaluate(p,h),l?.step({referenceToken:h,input:p,output:c}),c}throw new mte(`Invalid reference token "${h}" at position ${d} in "${e}": cannot be applied to a non-object/non-array value`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:s.name})},t)}catch(c){throw l?.step({referenceToken:c.referenceToken,input:c.currentValue,success:!1,reason:c.message}),c instanceof Qi?c:new Qi("Unexpected error during JSON Pointer evaluation",{cause:c,jsonPointer:e,referenceTokens:o})}};class yte extends PL{name="apidom";isArray(e){return Dr(e)}isObject(e){return Pt(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,r){if(this.isArray(e)){const n=Number(r),s=n>>>0;if(n!==s)throw new qa(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return s<this.sizeOf(e)}if(this.isObject(e)){const n=e.keys(),s=new Set(n);if(n.length!==s.size)throw new jL(`Object key "${r}" is not unique — JSON Pointer requires unique member names`,{referenceToken:r,currentValue:e,realm:this.name});return e.hasKey(r)}return!1}evaluate(e,r){return this.isArray(e)?e.get(Number(r)):e.get(r)}}const Qn=(t,e,r={})=>gte(t,e,{...r,realm:new yte});class cx extends fQ{filterByFormat(e="generic"){const r=e==="generic"?"openapi;version":e;return this.filter(n=>n.includes(r))}findBy(e="3.1.0",r="generic"){const n=r==="generic"?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${r};version=${e}`;return this.find(i=>i.includes(n))||this.unknownMediaType}latest(e="generic"){return jf(this.filterByFormat(e))}}const Xa=new cx("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");let Yu=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="callback"}},Xu=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}},Zu=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}},Qu=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}},Jf=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}},el=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}},tl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}},ho=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new pe.BooleanElement(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new pe.BooleanElement(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}};Object.defineProperty(ho.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});let rl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}},nl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}},sl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){if(ct(this.operationRef)){var e;return(e=this.operationRef)===null||e===void 0?void 0:e.meta.get("operation")}if(ct(this.operationId)){var r;return(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation")}}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}},il=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}},Hf=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}},Kf=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}},al=class extends pe.StringElement{constructor(e,r,n){super(e,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class Gf extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}let ol=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new pe.BooleanElement(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}},mo=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new pe.BooleanElement(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new pe.BooleanElement(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}};Object.defineProperty(mo.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});let ul=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}},ll=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="paths"}},cl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}},fl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new pe.BooleanElement(!1)}set required(e){this.set("required",e)}},pl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}},dl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}},go=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}};class yo extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}class hl extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}let ml=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const vte={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft4",go),e.register("jSONReference",yo),e.register("media",hl),e.register("linkDescription",ml),e}},gl=t=>{if(fr(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},bte={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...ks};let NL=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=Fn(r.meta,e.meta),Ju(e)&&r.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=Fn(r.attributes,e.attributes))}},jt=class extends NL{enter(e){return this.element=Ke(e),Rt}};const ML=(t,e,r=[])=>{const n=Object.getOwnPropertyDescriptors(e);for(let s of r)delete n[s];Object.defineProperties(t,n)},lu=(t,e=[t])=>{const r=Object.getPrototypeOf(t);return r===null?e:lu(r,[...e,r])},Ete=(...t)=>{if(t.length===0)return;let e;const r=t.map(n=>lu(n));for(;r.every(n=>n.length>0);){const n=r.map(i=>i.pop()),s=n[0];if(n.every(i=>i===s))e=s;else break}return e},rD=(t,e,r=[])=>{var n;const s=(n=Ete(...t))!==null&&n!==void 0?n:Object.prototype,i=Object.create(s),a=lu(s);for(let o of t){let u=lu(o);for(let l=u.length-1;l>=0;l--){let c=u[l];a.indexOf(c)===-1&&(ML(i,c,["constructor",...r]),a.push(c))}}return i.constructor=e,i},R1=t=>t.filter((e,r)=>t.indexOf(e)==r),DL=new WeakMap,Ste=t=>DL.get(t),_te=(t,e)=>DL.set(t,e),nD=(t,e)=>{var r,n;const s=R1([...Object.getOwnPropertyNames(t),...Object.getOwnPropertyNames(e)]),i={};for(let a of s)i[a]=R1([...(r=t?.[a])!==null&&r!==void 0?r:[],...(n=e?.[a])!==null&&n!==void 0?n:[]]);return i},sD=(t,e)=>{var r,n,s,i;return{property:nD((r=t?.property)!==null&&r!==void 0?r:{},(n=e?.property)!==null&&n!==void 0?n:{}),method:nD((s=t?.method)!==null&&s!==void 0?s:{},(i=e?.method)!==null&&i!==void 0?i:{})}},wte=(t,e)=>{var r,n,s,i,a,o;return{class:R1([...(r=t?.class)!==null&&r!==void 0?r:[],...(n=e?.class)!==null&&n!==void 0?n:[]]),static:sD((s=t?.static)!==null&&s!==void 0?s:{},(i=e?.static)!==null&&i!==void 0?i:{}),instance:sD((a=t?.instance)!==null&&a!==void 0?a:{},(o=e?.instance)!==null&&o!==void 0?o:{})}},xte=new Map,Ate=(...t)=>{var e;const r=new Set,n=new Set([...t]);for(;n.size>0;)for(let s of n){const i=lu(s.prototype).map(l=>l.constructor),a=(e=Ste(s))!==null&&e!==void 0?e:[],u=[...i,...a].filter(l=>!r.has(l));for(let l of u)n.add(l);r.add(s),n.delete(s)}return[...r]},Ote=(...t)=>{const e=Ate(...t).map(r=>xte.get(r)).filter(r=>!!r);return e.length==0?{}:e.length==1?e[0]:e.reduce((r,n)=>wte(r,n))};function qe(...t){var e,r,n;const s=t.map(o=>o.prototype);function i(...o){for(const u of t)ML(this,new u(...o))}i.prototype=rD(s,i),Object.setPrototypeOf(i,rD(t,null,["prototype"]));let a=i;{const o=Ote(...t);for(let u of(e=o?.class)!==null&&e!==void 0?e:[]){const l=u(a);l&&(a=l)}iD((r=o?.static)!==null&&r!==void 0?r:{},a),iD((n=o?.instance)!==null&&n!==void 0?n:{},a.prototype)}return _te(a,t),a}const iD=(t,e)=>{const r=t.property,n=t.method;if(r)for(let s in r)for(let i of r[s])i(e,s);if(n)for(let s in n)for(let i of n[s])i(e,s,Object.getOwnPropertyDescriptor(e,s))};let wn=class extends NL{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...r}){super({...r}),this.specObj=e}retrievePassingOptions(){return f$(this.passingOptionsNames,this)}retrieveFixedFields(e){const r=Or(["visitors",...e,"fixedFields"],this.specObj);return typeof r=="object"&&r!==null?Object.keys(r):[]}retrieveVisitor(e){return Mf(fa,["visitors",...e],this.specObj)?Or(["visitors",...e],this.specObj):Or(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,r={}){const n=this.retrievePassingOptions(),s=this.retrieveVisitor(e),i={...n,...r};return new s(i)}toRefractedElement(e,r,n={}){const s=this.retrieveVisitorInstance(e,n);return s instanceof jt&&s?.constructor===jt?Ke(r):(vr(r,s,n),s.element)}},ra=class extends wn{specPath;ignoredFields;constructor({specPath:e,ignoredFields:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=r||[]}ObjectElement(e){const r=this.specPath(e),n=this.retrieveFixedFields(r);return e.forEach((s,i,a)=>{if(ct(i)&&n.includes(Re(i))&&!this.ignoredFields.includes(Re(i))){const o=this.toRefractedElement([...r,"fixedFields",Re(i)],s),u=new pe.MemberElement(Ke(i),o);this.copyMetaAndAttributes(a,u),u.classes.push("fixed-field"),this.element.content.push(u)}else this.ignoredFields.includes(Re(i))||this.element.content.push(Ke(a))}),this.copyMetaAndAttributes(e,this.element),Rt}};class br{parent;constructor({parent:e}){this.parent=e}}const FL=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof go||t(n)&&e("JSONSchemaDraft4",n)&&r("object",n)),fx=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof yo||t(n)&&e("JSONReference",n)&&r("object",n)),qL=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hl||t(n)&&e("media",n)&&r("object",n)),Cte=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ml||t(n)&&e("linkDescription",n)&&r("object",n)),Rte=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:fx,isJSONSchemaElement:FL,isLinkDescriptionElement:Cte,isMediaElement:qL},Symbol.toStringTag,{value:"Module"}));let BL=class extends qe(ra,br,jt){constructor(e){super(e),this.element=new go,this.specPath=ut(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,ra.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Pi(this.parent)&&!ct(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(FL(this.parent)&&!ct(e.get("$schema"))){const r=Ha(Re(this.parent.meta.get("inheritedDialectIdentifier")),Re(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(e,r="id"){const n=this.parent!==void 0?Ke(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new pe.ArrayElement,s=Re(e.get(r));Ff(s)&&n.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const Os=t=>Pt(t)&&t.hasKey("$ref");let $L=class extends qe(wn,br,jt){ObjectElement(e){const r=Os(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,e),Rt}ArrayElement(e){return this.element=new pe.ArrayElement,this.element.classes.push("json-schema-items"),e.forEach(r=>{const n=Os(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),Rt}};class Tte extends jt{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-required"),r}}let Ite=class extends wn{specPath;ignoredFields;fieldPatternPredicate=Ow;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,...s}){super({...s}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach((r,n,s)=>{if(!this.ignoredFields.includes(Re(n))&&this.fieldPatternPredicate(Re(n))){const i=this.specPath(r),a=this.toRefractedElement(i,r),o=new pe.MemberElement(Ke(n),a);this.copyMetaAndAttributes(s,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Re(n))||this.element.content.push(Ke(s))}),this.copyMetaAndAttributes(e,this.element),Rt}},Ni=class extends Ite{constructor(e){super(e),this.fieldPatternPredicate=Ff}},kte=class extends qe(Ni,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=r=>Os(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},Pte=class extends qe(Ni,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>Os(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class jte extends qe(Ni,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>Os(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class Nte extends jt{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-enum"),r}}let Mte=class extends jt{StringElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}},Dte=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(r=>{const n=Os(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),Rt}},Fte=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(r=>{const n=Os(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),Rt}},qte=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(r=>{const n=Os(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),Rt}};class Bte extends qe(Ni,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=r=>Os(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let $te=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","LinkDescription"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),Rt}};class Lte extends qe(ra,jt){constructor(e){super(e),this.element=new yo,this.specPath=ut(["document","objects","JSONReference"])}ObjectElement(e){const r=ra.prototype.ObjectElement.call(this,e);return ct(this.element.$ref)&&this.element.classes.push("reference-element"),r}}let Ute=class extends jt{StringElement(e){const r=this.enter(e);return this.element.classes.push("reference-value"),r}},Vte=class extends wn{alternator;constructor({alternator:e,...r}){super({...r}),this.alternator=e}enter(e){const r=this.alternator.map(({predicate:s,specPath:i})=>Dw(s,ut(i),Df)),n=S$(r)(e);return this.element=this.toRefractedElement(n,e),Rt}},Ra=class extends Vte{constructor(e){super(e),this.alternator=[{predicate:Os,specPath:["document","objects","JSONReference"]},{predicate:ri,specPath:["document","objects","JSONSchema"]}]}};class zte extends qe(ra,jt){constructor(e){super(e),this.element=new hl,this.specPath=ut(["document","objects","Media"])}}let LL=class extends qe(ra,jt){constructor(e){super(e),this.element=new ml,this.specPath=ut(["document","objects","LinkDescription"])}};const Pr={visitors:{value:jt,JSONSchemaOrJSONReferenceVisitor:Ra,document:{objects:{JSONSchema:{$visitor:BL,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Ra,items:$L,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Tte,properties:kte,additionalProperties:Ra,patternProperties:Pte,dependencies:jte,enum:Nte,type:Mte,allOf:Dte,anyOf:Fte,oneOf:qte,not:Ra,definitions:Bte,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:$te,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Lte,fixedFields:{$ref:Ute}},Media:{$visitor:zte,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:LL,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ra,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ra}}}}}},Wte=()=>{const t=si(vte);return{predicates:{...Rte,isStringElement:ct},namespace:t}},Jte=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Pr}={})=>{const s=pe.refract(t),i=ji(n),a=Or(e,i),o=new a({specObj:i});return vr(s,o),Ps(o.element,r,{toolboxCreator:Wte,visitorOptions:{keyMap:bte,nodeTypeGetter:gl}})},Yf=t=>(e,r={})=>Jte(e,{specPath:t,...r});go.refract=Yf(["visitors","document","objects","JSONSchema","$visitor"]);yo.refract=Yf(["visitors","document","objects","JSONReference","$visitor"]);hl.refract=Yf(["visitors","document","objects","Media","$visitor"]);ml.refract=Yf(["visitors","document","objects","LinkDescription","$visitor"]);let Xf=class extends go{constructor(e,r,n){super(e,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new wt("idProp getter in Schema class is not not supported.")}set idProp(e){throw new wt("idProp setter in Schema class is not not supported.")}get $schema(){throw new wt("$schema getter in Schema class is not not supported.")}set $schema(e){throw new wt("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new wt("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new wt("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new wt("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new wt("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new wt("definitions getter in Schema class is not not supported.")}set definitions(e){throw new wt("definitions setter in Schema class is not not supported.")}get base(){throw new wt("base getter in Schema class is not not supported.")}set base(e){throw new wt("base setter in Schema class is not not supported.")}get links(){throw new wt("links getter in Schema class is not not supported.")}set links(e){throw new wt("links setter in Schema class is not not supported.")}get media(){throw new wt("media getter in Schema class is not not supported.")}set media(e){throw new wt("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}},yl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="securityRequirement"}},vl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}},bl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}},El=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}},Zf=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}},Qf=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}};const Hte={namespace:t=>{const{base:e}=t;return e.register("callback",Yu),e.register("components",Xu),e.register("contact",Zu),e.register("discriminator",Qu),e.register("encoding",Jf),e.register("example",el),e.register("externalDocumentation",tl),e.register("header",ho),e.register("info",rl),e.register("license",nl),e.register("link",sl),e.register("mediaType",il),e.register("oAuthFlow",Hf),e.register("oAuthFlows",Kf),e.register("openapi",al),e.register("openApi3_0",Gf),e.register("operation",ol),e.register("parameter",mo),e.register("pathItem",ul),e.register("paths",ll),e.register("reference",cl),e.register("requestBody",fl),e.register("response",pl),e.register("responses",dl),e.register("schema",Xf),e.register("securityRequirement",yl),e.register("securityScheme",vl),e.register("server",bl),e.register("serverVariable",El),e.register("tag",Zf),e.register("xml",Qf),e}};class ep extends pe.ArrayElement{static primaryClass="servers";constructor(e,r,n){super(e,r,n),this.classes.push(ep.primaryClass)}}class px extends pe.ArrayElement{static primaryClass="security";constructor(e,r,n){super(e,r,n),this.classes.push(px.primaryClass)}}class dx extends pe.ArrayElement{static primaryClass="tags";constructor(e,r,n){super(e,r,n),this.classes.push(dx.primaryClass)}}class hx extends pe.ObjectElement{static primaryClass="server-variables";constructor(e,r,n){super(e,r,n),this.classes.push(hx.primaryClass)}}class tp extends pe.ObjectElement{static primaryClass="components-schemas";constructor(e,r,n){super(e,r,n),this.classes.push(tp.primaryClass)}}class mx extends pe.ObjectElement{static primaryClass="components-responses";constructor(e,r,n){super(e,r,n),this.classes.push(mx.primaryClass)}}class gx extends pe.ObjectElement{static primaryClass="components-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(gx.primaryClass),this.classes.push("parameters")}}class yx extends pe.ObjectElement{static primaryClass="components-examples";constructor(e,r,n){super(e,r,n),this.classes.push(yx.primaryClass),this.classes.push("examples")}}class vx extends pe.ObjectElement{static primaryClass="components-request-bodies";constructor(e,r,n){super(e,r,n),this.classes.push(vx.primaryClass)}}class bx extends pe.ObjectElement{static primaryClass="components-headers";constructor(e,r,n){super(e,r,n),this.classes.push(bx.primaryClass)}}class Ex extends pe.ObjectElement{static primaryClass="components-security-schemes";constructor(e,r,n){super(e,r,n),this.classes.push(Ex.primaryClass)}}class Sx extends pe.ObjectElement{static primaryClass="components-links";constructor(e,r,n){super(e,r,n),this.classes.push(Sx.primaryClass)}}class _x extends pe.ObjectElement{static primaryClass="components-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(_x.primaryClass)}}class wx extends pe.ArrayElement{static primaryClass="path-item-servers";constructor(e,r,n){super(e,r,n),this.classes.push(wx.primaryClass),this.classes.push("servers")}}class xx extends pe.ArrayElement{static primaryClass="path-item-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(xx.primaryClass),this.classes.push("parameters")}}class rp extends pe.ArrayElement{static primaryClass="operation-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(rp.primaryClass),this.classes.push("parameters")}}class Ax extends pe.ObjectElement{static primaryClass="parameter-examples";constructor(e,r,n){super(e,r,n),this.classes.push(Ax.primaryClass),this.classes.push("examples")}}class Ox extends pe.ObjectElement{static primaryClass="parameter-content";constructor(e,r,n){super(e,r,n),this.classes.push(Ox.primaryClass),this.classes.push("content")}}class Cx extends pe.ArrayElement{static primaryClass="operation-tags";constructor(e,r,n){super(e,r,n),this.classes.push(Cx.primaryClass)}}class Rx extends pe.ObjectElement{static primaryClass="operation-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(Rx.primaryClass)}}class np extends pe.ArrayElement{static primaryClass="operation-security";constructor(e,r,n){super(e,r,n),this.classes.push(np.primaryClass),this.classes.push("security")}}let Kte=class UL extends pe.ArrayElement{static primaryClass="operation-servers";constructor(e,r,n){super(e,r,n),this.classes.push(UL.primaryClass),this.classes.push("servers")}};class Tx extends pe.ObjectElement{static primaryClass="request-body-content";constructor(e,r,n){super(e,r,n),this.classes.push(Tx.primaryClass),this.classes.push("content")}}class Ix extends pe.ObjectElement{static primaryClass="media-type-examples";constructor(e,r,n){super(e,r,n),this.classes.push(Ix.primaryClass),this.classes.push("examples")}}class kx extends pe.ObjectElement{static primaryClass="media-type-encoding";constructor(e,r,n){super(e,r,n),this.classes.push(kx.primaryClass)}}class Px extends pe.ObjectElement{static primaryClass="encoding-headers";constructor(e,r,n){super(e,r,n),this.classes.push(Px.primaryClass)}}class jx extends pe.ObjectElement{static primaryClass="response-headers";constructor(e,r,n){super(e,r,n),this.classes.push(jx.primaryClass)}}class Nx extends pe.ObjectElement{static primaryClass="response-content";constructor(e,r,n){super(e,r,n),this.classes.push(Nx.primaryClass),this.classes.push("content")}}class Mx extends pe.ObjectElement{static primaryClass="response-links";constructor(e,r,n){super(e,r,n),this.classes.push(Mx.primaryClass)}}class Dx extends pe.ObjectElement{static primaryClass="discriminator-mapping";constructor(e,r,n){super(e,r,n),this.classes.push(Dx.primaryClass)}}class Fx extends pe.ObjectElement{static primaryClass="oauth-flow-scopes";constructor(e,r,n){super(e,r,n),this.classes.push(Fx.primaryClass)}}class qx extends pe.ObjectElement{static primaryClass="link-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(qx.primaryClass)}}class Bx extends pe.ObjectElement{static primaryClass="header-examples";constructor(e,r,n){super(e,r,n),this.classes.push(Bx.primaryClass),this.classes.push("examples")}}class $x extends pe.ObjectElement{static primaryClass="header-content";constructor(e,r,n){super(e,r,n),this.classes.push($x.primaryClass),this.classes.push("content")}}const Gte=t=>{if(fr(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Yte={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...ks};class VL{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=Fn(r.meta,e.meta),Ju(e)&&r.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=Fn(r.attributes,e.attributes))}}class Ve extends VL{enter(e){return this.element=Ke(e),Rt}}class ls extends VL{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:r,openApiGenericElement:n,openApiSemanticElement:s,...i}){super({...i}),this.specObj=e,this.openApiGenericElement=n,this.openApiSemanticElement=s,Array.isArray(r)&&(this.passingOptionsNames=r)}retrievePassingOptions(){return f$(this.passingOptionsNames,this)}retrieveFixedFields(e){const r=Or(["visitors",...e,"fixedFields"],this.specObj);return typeof r=="object"&&r!==null?Object.keys(r):[]}retrieveVisitor(e){return Mf(fa,["visitors",...e],this.specObj)?Or(["visitors",...e],this.specObj):Or(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,r={}){const n=this.retrievePassingOptions(),s=this.retrieveVisitor(e),i={...n,...r};return new s(i)}toRefractedElement(e,r,n={}){const s=this.retrieveVisitorInstance(e,n);return s instanceof Ve&&s?.constructor===Ve?Ke(r):(vr(r,s,n),s.element)}}const Yt=t=>Pt(t)&&t.hasKey("$ref"),Xte=Pt,Zte=Pt,zL=t=>ct(t.key)&&$X("x-",Re(t.key));class bt extends ls{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=zL;constructor({specPath:e,ignoredFields:r,canSupportSpecificationExtensions:n,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=r||[],typeof n=="boolean"&&(this.canSupportSpecificationExtensions=n),typeof s=="function"&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const r=this.specPath(e),n=this.retrieveFixedFields(r);return e.forEach((s,i,a)=>{if(ct(i)&&n.includes(Re(i))&&!this.ignoredFields.includes(Re(i))){const o=this.toRefractedElement([...r,"fixedFields",Re(i)],s),u=new pe.MemberElement(Ke(i),o);this.copyMetaAndAttributes(a,u),u.classes.push("fixed-field"),this.element.content.push(u)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(a)){const o=this.toRefractedElement(["document","extension"],a);this.element.content.push(o)}else this.ignoredFields.includes(Re(i))||this.element.content.push(Ke(a))}),this.copyMetaAndAttributes(e,this.element),Rt}}class Qte extends qe(bt,Ve){constructor(e){super(e),this.element=new Gf,this.specPath=ut(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return bt.prototype.ObjectElement.call(this,e)}}class ere extends qe(ls,Ve){StringElement(e){const r=new al(Re(e));return this.copyMetaAndAttributes(e,r),this.element=r,Rt}}class tre extends ls{MemberElement(e){return this.element=Ke(e),this.element.classes.push("specification-extension"),Rt}}let rre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new rl,this.specPath=ut(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};class nre extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}}let sre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Zu,this.specPath=ut(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},ire=class extends qe(bt,Ve){constructor(e){super(e),this.element=new nl,this.specPath=ut(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},are=class extends qe(bt,Ve){constructor(e){super(e),this.element=new sl,this.specPath=ut(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return(ct(this.element.operationId)||ct(this.element.operationRef))&&this.element.classes.push("reference-element"),r}};class ore extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}class ure extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}class Za extends ls{specPath;ignoredFields;fieldPatternPredicate=Ow;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=zL;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,canSupportSpecificationExtensions:s,specificationExtensionPredicate:i,...a}){super({...a}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n),typeof s=="boolean"&&(this.canSupportSpecificationExtensions=s),typeof i=="function"&&(this.specificationExtensionPredicate=i)}ObjectElement(e){return e.forEach((r,n,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const i=this.toRefractedElement(["document","extension"],s);this.element.content.push(i)}else if(!this.ignoredFields.includes(Re(n))&&this.fieldPatternPredicate(Re(n))){const i=this.specPath(r),a=this.toRefractedElement(i,r),o=new pe.MemberElement(Ke(n),a);this.copyMetaAndAttributes(s,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Re(n))||this.element.content.push(Ke(s))}),this.copyMetaAndAttributes(e,this.element),Rt}}class mt extends Za{constructor(e){super(e),this.fieldPatternPredicate=Ff}}let lre=class extends qe(mt,Ve){constructor(e){super(e),this.element=new qx,this.specPath=ut(["value"])}},cre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new bl,this.specPath=ut(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};class fre extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("server-url"),r}}let Lx=class extends qe(ls,Ve){constructor(e){super(e),this.element=new ep}ArrayElement(e){return e.forEach(r=>{const n=Xte(r)?["document","objects","Server"]:["value"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),Rt}},pre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new El,this.specPath=ut(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class dre extends qe(mt,Ve){constructor(e){super(e),this.element=new hx,this.specPath=ut(["document","objects","ServerVariable"])}}let hre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new il,this.specPath=ut(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class Cs extends ls{alternator;constructor({alternator:e,...r}){super({...r}),this.alternator=e||[]}enter(e){const r=this.alternator.map(({predicate:s,specPath:i})=>Dw(s,ut(i),Df)),n=S$(r)(e);return this.element=this.toRefractedElement(n,e),Rt}}const mre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yu||t(n)&&e("callback",n)&&r("object",n)),gre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xu||t(n)&&e("components",n)&&r("object",n)),yre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zu||t(n)&&e("contact",n)&&r("object",n)),vre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof el||t(n)&&e("example",n)&&r("object",n)),bre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tl||t(n)&&e("externalDocumentation",n)&&r("object",n)),vo=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ho||t(n)&&e("header",n)&&r("object",n)),Ere=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rl||t(n)&&e("info",n)&&r("object",n)),Sre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nl||t(n)&&e("license",n)&&r("object",n)),_re=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof sl||t(n)&&e("link",n)&&r("object",n)),wre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof al||t(n)&&e("openapi",n)&&r("string",n)),xre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>s=>s instanceof Gf||t(s)&&e("openApi3_0",s)&&r("object",s)&&n("api",s)),WL=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ol||t(n)&&e("operation",n)&&r("object",n)),Are=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof mo||t(n)&&e("parameter",n)&&r("object",n)),Ux=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ul||t(n)&&e("pathItem",n)&&r("object",n)),Ore=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ll||t(n)&&e("paths",n)&&r("object",n)),Jt=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cl||t(n)&&e("reference",n)&&r("object",n)),Cre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fl||t(n)&&e("requestBody",n)&&r("object",n)),sp=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pl||t(n)&&e("response",n)&&r("object",n)),Rre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dl||t(n)&&e("responses",n)&&r("object",n)),Tre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xf||t(n)&&e("schema",n)&&r("object",n)),Ire=t=>Wu(t)&&t.classes.includes("boolean-json-schema"),kre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof yl||t(n)&&e("securityRequirement",n)&&r("object",n)),Pre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vl||t(n)&&e("securityScheme",n)&&r("object",n)),jre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bl||t(n)&&e("server",n)&&r("object",n)),Nre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof El||t(n)&&e("serverVariable",n)&&r("object",n)),ip=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof il||t(n)&&e("mediaType",n)&&r("object",n)),JL=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>s=>s instanceof ep||t(s)&&e("array",s)&&r("array",s)&&n("servers",s)),Mre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qu||t(n)&&e("discriminator",n)&&r("object",n)),Dre=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:Ire,isCallbackElement:mre,isComponentsElement:gre,isContactElement:yre,isDiscriminatorElement:Mre,isExampleElement:vre,isExternalDocumentationElement:bre,isHeaderElement:vo,isInfoElement:Ere,isLicenseElement:Sre,isLinkElement:_re,isMediaTypeElement:ip,isOpenApi3_0Element:xre,isOpenapiElement:wre,isOperationElement:WL,isParameterElement:Are,isPathItemElement:Ux,isPathsElement:Ore,isReferenceElement:Jt,isRequestBodyElement:Cre,isResponseElement:sp,isResponsesElement:Rre,isSchemaElement:Tre,isSecurityRequirementElement:kre,isSecuritySchemeElement:Pre,isServerElement:jre,isServerVariableElement:Nre,isServersElement:JL},Symbol.toStringTag,{value:"Module"}));let Fre=class extends qe(Cs,Ve){constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=Cs.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Vx=class extends qe(mt,Ve){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("examples"),this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}},qre=class extends Vx{constructor(e){super(e),this.element=new Ix}},Bre=class extends qe(mt,Ve){constructor(e){super(e),this.element=new kx,this.specPath=ut(["document","objects","Encoding"])}},$re=class extends qe(mt,Ve){constructor(e){super(e),this.element=new yl,this.specPath=ut(["value"])}},Lre=class extends qe(ls,Ve){constructor(e){super(e),this.element=new px}ArrayElement(e){return e.forEach(r=>{if(Pt(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(Ke(r))}),this.copyMetaAndAttributes(e,this.element),Rt}},Ure=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Xu,this.specPath=ut(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},Vre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Zf,this.specPath=ut(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},zre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new cl,this.specPath=ut(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return ct(this.element.$ref)&&this.element.classes.push("reference-element"),r}},Wre=class extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}},Jre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new mo,this.specPath=ut(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return Pt(this.element.contentProp)&&this.element.contentProp.filter(ip).forEach((n,s)=>{n.setMetaProperty("media-type",Re(s))}),r}},Hre=class extends qe(Cs,Ve){constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=Cs.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Kre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new ho,this.specPath=ut(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},Gre=class extends qe(Cs,Ve){constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=Cs.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Yre=class extends Vx{constructor(e){super(e),this.element=new Bx}},ap=class extends qe(mt,Ve){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("content"),this.specPath=ut(["document","objects","MediaType"])}},Xre=class extends ap{constructor(e){super(e),this.element=new $x}},Zre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Xf,this.specPath=ut(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const aD=Pr.visitors.document.objects.JSONSchema.fixedFields.allOf;let Qre=class extends aD{ArrayElement(e){const r=aD.prototype.ArrayElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const oD=Pr.visitors.document.objects.JSONSchema.fixedFields.anyOf;let ene=class extends oD{ArrayElement(e){const r=oD.prototype.ArrayElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const uD=Pr.visitors.document.objects.JSONSchema.fixedFields.oneOf;let tne=class extends uD{ArrayElement(e){const r=uD.prototype.ArrayElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const lD=Pr.visitors.document.objects.JSONSchema.fixedFields.items;let rne=class extends lD{ObjectElement(e){const r=lD.prototype.ObjectElement.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(e){return this.enter(e)}};const cD=Pr.visitors.document.objects.JSONSchema.fixedFields.properties;let nne=class extends cD{ObjectElement(e){const r=cD.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const sne=Pr.visitors.document.objects.JSONSchema.fixedFields.type;class ine extends sne{ArrayElement(e){return this.enter(e)}}const fD=Pr.visitors.JSONSchemaOrJSONReferenceVisitor;class pD extends fD{ObjectElement(e){const r=fD.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}let ane=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Qu,this.specPath=ut(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class one extends qe(mt,Ve){constructor(e){super(e),this.element=new Dx,this.specPath=ut(["value"])}}let une=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Qf,this.specPath=ut(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},lne=class extends Vx{constructor(e){super(e),this.element=new Ax}},cne=class extends ap{constructor(e){super(e),this.element=new Ox}},fne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new tp,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}},pne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new mx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(sp).forEach((n,s)=>{n.setMetaProperty("http-status-code",Re(s))}),r}},dne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new gx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","parameter")}),r}},hne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new yx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}};class mne extends qe(mt,Ve){constructor(e){super(e),this.element=new vx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","requestBody")}),r}}let gne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new bx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.filter(vo).forEach((n,s)=>{n.setMetaProperty("header-name",Re(s))}),r}};class yne extends qe(mt,Ve){constructor(e){super(e),this.element=new Ex,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","securityScheme")}),r}}let vne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new Sx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}},bne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new _x,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}},Ene=class extends qe(bt,Ve){constructor(e){super(e),this.element=new el,this.specPath=ut(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return ct(this.element.externalValue)&&this.element.classes.push("reference-element"),r}};class Sne extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}let _ne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new tl,this.specPath=ut(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},wne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Jf,this.specPath=ut(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return Pt(this.element.headers)&&this.element.headers.filter(vo).forEach((n,s)=>{n.setMetaProperty("header-name",Re(s))}),r}},xne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new Px,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,s)=>{if(!vo(n))return;const i=Re(s);n.setMetaProperty("headerName",i)}),r}},Ane=class extends qe(Za,Ve){constructor(e){super(e),this.element=new ll,this.specPath=ut(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=ri}ObjectElement(e){const r=Za.prototype.ObjectElement.call(this,e);return this.element.filter(Ux).forEach((n,s)=>{s.classes.push("openapi-path-template"),s.classes.push("path-template"),n.setMetaProperty("path",Ke(s))}),r}},One=class extends qe(bt,Ve){constructor(e){super(e),this.element=new fl,this.specPath=ut(["document","objects","RequestBody"])}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return Pt(this.element.contentProp)&&this.element.contentProp.filter(ip).forEach((n,s)=>{n.setMetaProperty("media-type",Re(s))}),r}},Cne=class extends ap{constructor(e){super(e),this.element=new Tx}},Rne=class extends qe(Za,Ve){constructor(e){super(e),this.element=new Yu,this.specPath=ut(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Ux).forEach((n,s)=>{n.setMetaProperty("runtime-expression",Re(s))}),r}},Tne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new pl,this.specPath=ut(["document","objects","Response"])}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return Pt(this.element.contentProp)&&this.element.contentProp.filter(ip).forEach((n,s)=>{n.setMetaProperty("media-type",Re(s))}),Pt(this.element.headers)&&this.element.headers.filter(vo).forEach((n,s)=>{n.setMetaProperty("header-name",Re(s))}),r}};class Ine extends qe(mt,Ve){constructor(e){super(e),this.element=new jx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,s)=>{if(!vo(n))return;const i=Re(s);n.setMetaProperty("header-name",i)}),r}}class kne extends ap{constructor(e){super(e),this.element=new Nx}}class Pne extends qe(mt,Ve){constructor(e){super(e),this.element=new Mx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}}class dD extends qe(bt,Za){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:r,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=r}ObjectElement(e){const{specPath:r,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const s=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...oX(e.keys(),s)],bt.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,Za.prototype.ObjectElement.call(this,e)}catch(s){throw this.specPath=r,s}return Rt}}let jne=class extends qe(dD,Ve){constructor(e){super(e),this.element=new dl,this.specPathFixedFields=ut(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${FX(100,600).join("|")})$`).test(String(r))}ObjectElement(e){const r=dD.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(sp).forEach((n,s)=>{const i=Ke(s);this.fieldPatternPredicate(Re(i))&&n.setMetaProperty("http-status-code",i)}),r}};class Nne extends qe(Cs,Ve){constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Response"]}]}ObjectElement(e){const r=Cs.prototype.enter.call(this,e);return Jt(this.element)?this.element.setMetaProperty("referenced-element","response"):sp(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}let Mne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new ol,this.specPath=ut(["document","objects","Operation"])}},Dne=class extends Ve{constructor(e){super(e),this.element=new Cx}ArrayElement(e){return this.element=this.element.concat(Ke(e)),Rt}},HL=class extends qe(ls,Ve){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach(r=>{const n=Yt(r)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(n,r);Jt(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),Rt}},Fne=class extends HL{constructor(e){super(e),this.element=new rp}},qne=class extends Cs{constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const r=Cs.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class Bne extends qe(mt,Ve){specPath;constructor(e){super(e),this.element=new Rx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}}class $ne extends qe(ls,Ve){constructor(e){super(e),this.element=new np}ArrayElement(e){return e.forEach(r=>{const n=Pt(r)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),Rt}}let Lne=class extends Lx{constructor(e){super(e),this.element=new Kte}},Une=class extends qe(bt,Ve){constructor(e){super(e),this.element=new ul,this.specPath=ut(["document","objects","PathItem"])}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return this.element.filter(WL).forEach((n,s)=>{const i=Ke(s);i.content=Re(i).toUpperCase(),n.setMetaProperty("http-method",i)}),ct(this.element.$ref)&&this.element.classes.push("reference-element"),r}};class Vne extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}class zne extends Lx{constructor(e){super(e),this.element=new wx}}class Wne extends HL{constructor(e){super(e),this.element=new xx}}let Jne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new vl,this.specPath=ut(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},Hne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Kf,this.specPath=ut(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},Kne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Hf,this.specPath=ut(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class Gne extends qe(mt,Ve){constructor(e){super(e),this.element=new Fx,this.specPath=ut(["value"])}}class Yne extends qe(ls,Ve){constructor(e){super(e),this.element=new dx}ArrayElement(e){return e.forEach(r=>{const n=Zte(r)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),Rt}}const{fixedFields:Sr}=Pr.visitors.document.objects.JSONSchema,Ee={visitors:{value:Ve,document:{objects:{OpenApi:{$visitor:Qte,fixedFields:{openapi:ere,info:{$ref:"#/visitors/document/objects/Info"},servers:Lx,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Lre,tags:Yne,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:rre,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:nre}},Contact:{$visitor:sre,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:ire,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:cre,fixedFields:{url:fre,description:{$ref:"#/visitors/value"},variables:dre}},ServerVariable:{$visitor:pre,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Ure,fixedFields:{schemas:fne,responses:pne,parameters:dne,examples:hne,requestBodies:mne,headers:gne,securitySchemes:yne,links:vne,callbacks:bne}},Paths:{$visitor:Ane},PathItem:{$visitor:Une,fixedFields:{$ref:Vne,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:zne,parameters:Wne}},Operation:{$visitor:Mne,fixedFields:{tags:Dne,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Fne,requestBody:qne,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Bne,deprecated:{$ref:"#/visitors/value"},security:$ne,servers:Lne}},ExternalDocumentation:{$visitor:_ne,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Jre,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Hre,example:{$ref:"#/visitors/value"},examples:lne,content:cne}},RequestBody:{$visitor:One,fixedFields:{description:{$ref:"#/visitors/value"},content:Cne,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:hre,fixedFields:{schema:Fre,example:{$ref:"#/visitors/value"},examples:qre,encoding:Bre}},Encoding:{$visitor:wne,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:xne,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:jne,fixedFields:{default:Nne}},Response:{$visitor:Tne,fixedFields:{description:{$ref:"#/visitors/value"},headers:Ine,content:kne,links:Pne}},Callback:{$visitor:Rne},Example:{$visitor:Ene,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Sne}},Link:{$visitor:are,fixedFields:{operationRef:ore,operationId:ure,parameters:lre,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Kre,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Gre,example:{$ref:"#/visitors/value"},examples:Yre,content:Xre}},Tag:{$visitor:Vre,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:zre,fixedFields:{$ref:Wre}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Zre,fixedFields:{title:Sr.title,multipleOf:Sr.multipleOf,maximum:Sr.maximum,exclusiveMaximum:Sr.exclusiveMaximum,minimum:Sr.minimum,exclusiveMinimum:Sr.exclusiveMinimum,maxLength:Sr.maxLength,minLength:Sr.minLength,pattern:Sr.pattern,maxItems:Sr.maxItems,minItems:Sr.minItems,uniqueItems:Sr.uniqueItems,maxProperties:Sr.maxProperties,minProperties:Sr.minProperties,required:Sr.required,enum:Sr.enum,type:ine,allOf:Qre,anyOf:ene,oneOf:tne,not:pD,items:rne,properties:nne,additionalProperties:pD,description:Sr.description,format:Sr.format,default:Sr.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:ane,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:one}},XML:{$visitor:une,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Jne,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:Hne,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Kne,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Gne}},SecurityRequirement:{$visitor:$re}},extension:{$visitor:tre}}}},Xne=()=>{const t=si(Hte);return{predicates:{...Dre,isElement:fr,isStringElement:ct,isArrayElement:Dr,isObjectElement:Pt,isMemberElement:us,includesClasses:Ga,hasElementSourceMap:Ju},namespace:t}},Zne=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=pe.refract(t),s=ji(Ee),i=Or(e,s),a=new i({specObj:s});return vr(n,a),Ps(a.element,r,{toolboxCreator:Xne,visitorOptions:{keyMap:Yte,nodeTypeGetter:Gte}})},Dt=t=>(e,r={})=>Zne(e,{specPath:t,...r});Yu.refract=Dt(["visitors","document","objects","Callback","$visitor"]);Xu.refract=Dt(["visitors","document","objects","Components","$visitor"]);Zu.refract=Dt(["visitors","document","objects","Contact","$visitor"]);el.refract=Dt(["visitors","document","objects","Example","$visitor"]);Qu.refract=Dt(["visitors","document","objects","Discriminator","$visitor"]);Jf.refract=Dt(["visitors","document","objects","Encoding","$visitor"]);tl.refract=Dt(["visitors","document","objects","ExternalDocumentation","$visitor"]);ho.refract=Dt(["visitors","document","objects","Header","$visitor"]);rl.refract=Dt(["visitors","document","objects","Info","$visitor"]);nl.refract=Dt(["visitors","document","objects","License","$visitor"]);sl.refract=Dt(["visitors","document","objects","Link","$visitor"]);il.refract=Dt(["visitors","document","objects","MediaType","$visitor"]);Hf.refract=Dt(["visitors","document","objects","OAuthFlow","$visitor"]);Kf.refract=Dt(["visitors","document","objects","OAuthFlows","$visitor"]);al.refract=Dt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Gf.refract=Dt(["visitors","document","objects","OpenApi","$visitor"]);ol.refract=Dt(["visitors","document","objects","Operation","$visitor"]);mo.refract=Dt(["visitors","document","objects","Parameter","$visitor"]);ul.refract=Dt(["visitors","document","objects","PathItem","$visitor"]);ll.refract=Dt(["visitors","document","objects","Paths","$visitor"]);cl.refract=Dt(["visitors","document","objects","Reference","$visitor"]);fl.refract=Dt(["visitors","document","objects","RequestBody","$visitor"]);pl.refract=Dt(["visitors","document","objects","Response","$visitor"]);dl.refract=Dt(["visitors","document","objects","Responses","$visitor"]);Xf.refract=Dt(["visitors","document","objects","Schema","$visitor"]);yl.refract=Dt(["visitors","document","objects","SecurityRequirement","$visitor"]);vl.refract=Dt(["visitors","document","objects","SecurityScheme","$visitor"]);bl.refract=Dt(["visitors","document","objects","Server","$visitor"]);El.refract=Dt(["visitors","document","objects","ServerVariable","$visitor"]);Zf.refract=Dt(["visitors","document","objects","Tag","$visitor"]);Qf.refract=Dt(["visitors","document","objects","XML","$visitor"]);class op extends Yu{}class up extends Xu{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}}let lp=class extends Zu{};class zx extends Qu{}class Wx extends Jf{}let cp=class extends el{};class fp extends tl{}class pp extends ho{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}let dp=class extends rl{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class da extends pe.StringElement{static default=new da("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,r,n){super(e,r,n),this.element="jsonSchemaDialect"}}let hp=class extends nl{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},mp=class extends sl{};class gp extends il{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class Jx extends Hf{}class Hx extends Kf{}class Kx extends al{}class Mi extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}let Sl=class extends ol{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};class yp extends mo{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class Oi extends ul{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}}class vp extends ll{}class Di extends cl{}Object.defineProperty(Di.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});Object.defineProperty(Di.prototype,"summary",{get(){return this.get("summary")},set(t){this.set("summary",t)},enumerable:!0});class bp extends fl{}let Ep=class extends pl{},Sp=class extends dl{},_l=class extends go{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new wt("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new wt("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}},wl=class extends ml{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new wt("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new wt("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new wt("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new wt("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new wt("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new wt("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};const Qne={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft6",_l),e.register("jSONReference",yo),e.register("media",hl),e.register("linkDescription",wl),e}},ese={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...ks};let KL=class extends BL{constructor(e){super(e),this.element=new _l}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const r=this.enter(e);return this.element.classes.push("boolean-json-schema"),r}handleSchemaIdentifier(e,r="$id"){return super.handleSchemaIdentifier(e,r)}},tse=class extends $L{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Rt}};class rse extends jt{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-examples"),r}}let GL=class extends LL{constructor(e){super(e),this.element=new wl}};const Ir=qr(Be(["visitors","document","objects","JSONSchema","$visitor"],KL),bn(["visitors","document","objects","JSONSchema","fixedFields","id"]),Be(["visitors","document","objects","JSONSchema","fixedFields","$id"],Pr.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","contains"],Pr.visitors.JSONSchemaOrJSONReferenceVisitor),Be(["visitors","document","objects","JSONSchema","fixedFields","items"],tse),Be(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Pr.visitors.JSONSchemaOrJSONReferenceVisitor),Be(["visitors","document","objects","JSONSchema","fixedFields","const"],Pr.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","examples"],rse),Be(["visitors","document","objects","LinkDescription","$visitor"],GL),Be(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Pr.visitors.JSONSchemaOrJSONReferenceVisitor),bn(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Be(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Pr.visitors.JSONSchemaOrJSONReferenceVisitor),bn(["visitors","document","objects","LinkDescription","fixedFields","method"]),bn(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Be(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Pr.visitors.value))(Pr),nse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _l||t(n)&&e("JSONSchemaDraft6",n)&&r("object",n)),sse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wl||t(n)&&e("linkDescription",n)&&r("object",n)),ise=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:fx,isJSONSchemaElement:nse,isLinkDescriptionElement:sse,isMediaElement:qL},Symbol.toStringTag,{value:"Module"})),ase=()=>{const t=si(Qne);return{predicates:{...ise,isStringElement:ct},namespace:t}},ose=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Ir}={})=>{const s=pe.refract(t),i=ji(n),a=Or(e,i),o=new a({specObj:i});return vr(s,o),Ps(o.element,r,{toolboxCreator:ase,visitorOptions:{keyMap:ese,nodeTypeGetter:gl}})},YL=t=>(e,r={})=>ose(e,{specPath:t,...r});_l.refract=YL(["visitors","document","objects","JSONSchema","$visitor"]);wl.refract=YL(["visitors","document","objects","LinkDescription","$visitor"]);let xl=class extends _l{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new wt('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new wt('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}},Al=class extends wl{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new wt("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new wt("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new wt("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new wt("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const use={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft7",xl),e.register("jSONReference",yo),e.register("linkDescription",Al),e}},lse={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...ks};let XL=class extends KL{constructor(e){super(e),this.element=new xl}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},ZL=class extends GL{constructor(e){super(e),this.element=new Al}};const vi=qr(Be(["visitors","document","objects","JSONSchema","$visitor"],XL),Be(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Ir.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","if"],Ir.visitors.JSONSchemaOrJSONReferenceVisitor),Be(["visitors","document","objects","JSONSchema","fixedFields","then"],Ir.visitors.JSONSchemaOrJSONReferenceVisitor),Be(["visitors","document","objects","JSONSchema","fixedFields","else"],Ir.visitors.JSONSchemaOrJSONReferenceVisitor),bn(["visitors","document","objects","JSONSchema","fixedFields","media"]),Be(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Ir.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Ir.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Ir.visitors.value),Be(["visitors","document","objects","LinkDescription","$visitor"],ZL),Be(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Ir.visitors.value),Be(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Ir.visitors.value),bn(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Be(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Ir.visitors.value),Be(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Ir.visitors.value),Be(["visitors","document","objects","LinkDescription","fixedFields","description"],Ir.visitors.value),Be(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Ir.visitors.value),Be(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Ir.visitors.JSONSchemaOrJSONReferenceVisitor),bn(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Be(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Ir.visitors.value))(Ir),cse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof xl||t(n)&&e("JSONSchemaDraft7",n)&&r("object",n)),fse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Al||t(n)&&e("linkDescription",n)&&r("object",n)),pse=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:fx,isJSONSchemaElement:cse,isLinkDescriptionElement:fse},Symbol.toStringTag,{value:"Module"})),dse=()=>{const t=si(use);return{predicates:{...pse,isStringElement:ct},namespace:t}},hse=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=vi}={})=>{const s=pe.refract(t),i=ji(n),a=Or(e,i),o=new a({specObj:i});return vr(s,o),Ps(o.element,r,{toolboxCreator:dse,visitorOptions:{keyMap:lse,nodeTypeGetter:gl}})},QL=t=>(e,r={})=>hse(e,{specPath:t,...r});xl.refract=QL(["visitors","document","objects","JSONSchema","$visitor"]);Al.refract=QL(["visitors","document","objects","LinkDescription","$visitor"]);let Ol=class extends xl{constructor(e,r,n){super(e,r,n),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new wt("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new wt("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new wt("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new wt("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}},Cl=class extends Al{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const mse={namespace:t=>{const{base:e}=t;return e.register("jSONSchema201909",Ol),e.register("linkDescription",Cl),e}},gse={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...ks};let kr=class extends XL{constructor(e){super(e),this.element=new Ol}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=ra.prototype.ObjectElement.call(this,e);return ct(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}};class yse extends jt{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),r}}class vse extends jt{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}let e6=class extends qe(Ni,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-$defs"),this.specPath=ut(["document","objects","JSONSchema"])}},t6=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),Rt}},r6=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),Rt}},n6=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),Rt}},s6=class extends qe(Ni,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ut(["document","objects","JSONSchema"])}};class bse extends qe(wn,br,jt){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Rt}ArrayElement(e){return this.element=new pe.ArrayElement,this.element.classes.push("json-schema-items"),e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),Rt}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Rt}}let i6=class extends qe(Ni,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=ut(["document","objects","JSONSchema"])}},a6=class extends qe(Ni,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=ut(["document","objects","JSONSchema"])}};class Ese extends jt{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),r}}let o6=class extends ZL{constructor(e){super(e),this.element=new Cl}};const Tc=qr(Be(["visitors","document","objects","JSONSchema","$visitor"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],yse),Be(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],vi.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],vi.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],vi.visitors.value),bn(["visitors","document","objects","JSONReference","$visitor"]),Be(["visitors","document","objects","JSONSchema","fixedFields","$ref"],vse),bn(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Be(["visitors","document","objects","JSONSchema","fixedFields","$defs"],e6),Be(["visitors","document","objects","JSONSchema","fixedFields","allOf"],t6),Be(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],r6),Be(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],n6),Be(["visitors","document","objects","JSONSchema","fixedFields","not"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","if"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","then"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","else"],kr),bn(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Be(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],s6),Be(["visitors","document","objects","JSONSchema","fixedFields","items"],bse),Be(["visitors","document","objects","JSONSchema","fixedFields","contains"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","properties"],i6),Be(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],a6),Be(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],kr),Be(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],vi.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","minContains"],vi.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Ese),Be(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],vi.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],kr),Be(["visitors","document","objects","LinkDescription","$visitor"],o6),Be(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],kr),Be(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],kr),Be(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],kr),Be(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],kr))(vi),Sse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ol||t(n)&&e("JSONSchema201909",n)&&r("object",n)),_se=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Cl||t(n)&&e("linkDescription",n)&&r("object",n)),wse=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:Sse,isLinkDescriptionElement:_se},Symbol.toStringTag,{value:"Module"})),xse=()=>{const t=si(mse);return{predicates:{...wse,isStringElement:ct},namespace:t}},Ase=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Tc}={})=>{const s=pe.refract(t),i=ji(n),a=Or(e,i),o=new a({specObj:i});return vr(s,o),Ps(o.element,r,{toolboxCreator:xse,visitorOptions:{keyMap:gse,nodeTypeGetter:gl}})},u6=t=>(e,r={})=>Ase(e,{specPath:t,...r});Ol.refract=u6(["visitors","document","objects","JSONSchema","$visitor"]);Cl.refract=u6(["visitors","document","objects","LinkDescription","$visitor"]);class Rl extends Ol{constructor(e,r,n){super(e,r,n),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new wt("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new wt("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new wt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new wt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}}class _p extends Cl{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}}const Ose={namespace:t=>{const{base:e}=t;return e.register("jSONSchema202012",Rl),e.register("linkDescription",_p),e}},Cse={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...ks};let _r=class extends kr{constructor(e){super(e),this.element=new Rl}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}},l6=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),Rt}},Rse=class extends o6{constructor(e){super(e),this.element=new _p}};const c6=qr(Be(["visitors","document","objects","JSONSchema","$visitor"],_r),bn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Be(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Tc.visitors.value),bn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Be(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Tc.visitors.value),Be(["visitors","document","objects","JSONSchema","fixedFields","not"],_r),Be(["visitors","document","objects","JSONSchema","fixedFields","if"],_r),Be(["visitors","document","objects","JSONSchema","fixedFields","then"],_r),Be(["visitors","document","objects","JSONSchema","fixedFields","else"],_r),Be(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],l6),Be(["visitors","document","objects","JSONSchema","fixedFields","items"],_r),Be(["visitors","document","objects","JSONSchema","fixedFields","contains"],_r),Be(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],_r),bn(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Be(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],_r),Be(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],_r),Be(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],_r),Be(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],_r),Be(["visitors","document","objects","LinkDescription","$visitor"],Rse),Be(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],_r),Be(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],_r),Be(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],_r),Be(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],_r))(Tc),Tse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Rl||t(n)&&e("JSONSchema202012",n)&&r("object",n)),Ise=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _p||t(n)&&e("linkDescription",n)&&r("object",n)),kse=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:Tse,isLinkDescriptionElement:Ise},Symbol.toStringTag,{value:"Module"})),Pse=()=>{const t=si(Ose);return{predicates:{...kse,isStringElement:ct},namespace:t}},jse=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=c6}={})=>{const s=pe.refract(t),i=ji(n),a=Or(e,i),o=new a({specObj:i});return vr(s,o),Ps(o.element,r,{toolboxCreator:Pse,visitorOptions:{keyMap:Cse,nodeTypeGetter:gl}})},f6=t=>(e,r={})=>jse(e,{specPath:t,...r});Rl.refract=f6(["visitors","document","objects","JSONSchema","$visitor"]);_p.refract=f6(["visitors","document","objects","LinkDescription","$visitor"]);class Ci extends Rl{constructor(e,r,n){super(e,r,n),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}class wp extends yl{}class xp extends vl{}class Ap extends bl{}class Op extends El{}class Gx extends Zf{}class Yx extends Qf{}const Xx={namespace:t=>{const{base:e}=t;return e.register("callback",op),e.register("components",up),e.register("contact",lp),e.register("discriminator",zx),e.register("encoding",Wx),e.register("example",cp),e.register("externalDocumentation",fp),e.register("header",pp),e.register("info",dp),e.register("jsonSchemaDialect",da),e.register("license",hp),e.register("link",mp),e.register("mediaType",gp),e.register("oAuthFlow",Jx),e.register("oAuthFlows",Hx),e.register("openapi",Kx),e.register("openApi3_1",Mi),e.register("operation",Sl),e.register("parameter",yp),e.register("pathItem",Oi),e.register("paths",vp),e.register("reference",Di),e.register("requestBody",bp),e.register("response",Ep),e.register("responses",Sp),e.register("schema",Ci),e.register("securityRequirement",wp),e.register("securityScheme",xp),e.register("server",Ap),e.register("serverVariable",Op),e.register("tag",Gx),e.register("xml",Yx),e}};class Zx extends pe.ObjectElement{static primaryClass="components-path-items";constructor(e,r,n){super(e,r,n),this.classes.push(Zx.primaryClass)}}class Qx extends pe.ObjectElement{static primaryClass="webhooks";constructor(e,r,n){super(e,r,n),this.classes.push(Qx.primaryClass)}}const Dn=t=>{if(fr(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},es={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...ks};class Tl{internalStore;constructor(e,r,n){this.storageElement=e,this.storageField=r,this.storageSubField=n}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);Pt(e)||(e=new pe.ObjectElement,this.storageElement.set(this.storageField,e));let r=e.get(this.storageSubField);Dr(r)||(r=new pe.ArrayElement,e.set(this.storageSubField,r)),this.internalStore=r}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}}const Nse=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e,s=(o,u)=>!r.isParameterElement(o)||!r.isParameterElement(u)||!r.isStringElement(o.name)||!r.isStringElement(o.in)||!r.isStringElement(u.name)||!r.isStringElement(u.in)?!1:Re(o.name)===Re(u.name)&&Re(o.in)===Re(u.in),i=[];let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new Tl(o,t,"parameters")},leave(){a=void 0}},PathItemElement:{enter(o,u,l,c,p){if(p.some(r.isComponentsElement))return;const{parameters:h}=o;r.isArrayElement(h)?i.push([...h.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(o,u,l,c,p){const h=jf(i);if(!Array.isArray(h)||h.length===0)return;const d=n([...p,l,o]);if(a.includes(d))return;const g=c$([],["parameters","content"],o),y=m$(s,[...g,...h]);o.parameters=new rp(y),a.append(d)}}}}},Mse=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let s,i;return{visitor:{OpenApi3_1Element:{enter(a){i=new Tl(a,t,"security-requirements"),r.isArrayElement(a.security)&&(s=a.security)},leave(){i=void 0,s=void 0}},OperationElement:{leave(a,o,u,l,c){if(c.some(r.isComponentsElement))return;const p=n([...c,u,a]);if(i.includes(p))return;if(typeof a.security>"u"&&typeof s<"u"){var g;a.security=new np((g=s)===null||g===void 0?void 0:g.content),i.append(p)}}}}}},T1=t=>t.replace(/\s/g,""),I1=t=>t.replace(/\W/gi,"_"),Dse=(t,e)=>{const r=I1(T1(e.toLowerCase())),n=I1(T1(t));return`${r}${n}`},Fse=(t,e,r)=>{const n=T1(t);return n.length>0?I1(n):Dse(e,r)},qse=({storageField:t="x-normalized",operationIdNormalizer:e=Fse}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:s,namespace:i}=r,a=[],o=[],u=[];let l;return{visitor:{OpenApi3_1Element:{enter(c){l=new Tl(c,t,"operation-ids")},leave(){const c=OX(p=>Re(p.operationId),o);Object.entries(c).forEach(([p,h])=>{Array.isArray(h)&&(h.length<=1||h.forEach((d,g)=>{const y=`${p}${g+1}`;d.operationId=new i.elements.String(y)}))}),u.forEach(p=>{if(typeof p.operationId>"u")return;const h=String(Re(p.operationId)),d=o.find(g=>Re(g.meta.get("originalOperationId"))===h);typeof d>"u"||(p.operationId=Ke.safe(d.operationId),p.meta.set("originalOperationId",h),p.set("__originalOperationId",h))}),o.length=0,u.length=0,l=void 0}},PathItemElement:{enter(c){const p=Ha("path",Re(c.meta.get("path")));a.push(p)},leave(){a.pop()}},OperationElement:{enter(c,p,h,d,g){if(typeof c.operationId>"u")return;const y=s([...g,h,c]);if(l.includes(y))return;const v=String(Re(c.operationId)),E=jf(a),b=Ha("method",Re(c.meta.get("http-method"))),_=e(v,E,b);v!==_&&(c.operationId=new i.elements.String(_),c.set("__originalOperationId",v),c.meta.set("originalOperationId",v),o.push(c),l.append(y))}},LinkElement:{leave(c){n.isLinkElement(c)&&(typeof c.operationId>"u"||u.push(c))}}}}},Bse=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let s;return{visitor:{OpenApi3_1Element:{enter(i){s=new Tl(i,t,"parameter-examples")},leave(){s=void 0}},ParameterElement:{leave(i,a,o,u,l){var c,p;if(l.some(r.isComponentsElement)||typeof i.schema>"u"||!r.isSchemaElement(i.schema)||typeof((c=i.schema)===null||c===void 0?void 0:c.example)>"u"&&typeof((p=i.schema)===null||p===void 0?void 0:p.examples)>"u")return;const h=n([...l,o,i]);if(!s.includes(h)){if(typeof i.examples<"u"&&r.isObjectElement(i.examples)){const d=i.examples.map(g=>Ke.safe(g.value));typeof i.schema.examples<"u"&&(i.schema.set("examples",d),s.append(h)),typeof i.schema.example<"u"&&(i.schema.set("example",d[0]),s.append(h));return}typeof i.example<"u"&&(typeof i.schema.examples<"u"&&(i.schema.set("examples",[Ke(i.example)]),s.append(h)),typeof i.schema.example<"u"&&(i.schema.set("example",Ke(i.example)),s.append(h)))}}}}}},$se=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let s;return{visitor:{OpenApi3_1Element:{enter(i){s=new Tl(i,t,"header-examples")},leave(){s=void 0}},HeaderElement:{leave(i,a,o,u,l){var c,p;if(l.some(r.isComponentsElement)||typeof i.schema>"u"||!r.isSchemaElement(i.schema)||typeof((c=i.schema)===null||c===void 0?void 0:c.example)>"u"&&typeof((p=i.schema)===null||p===void 0?void 0:p.examples)>"u")return;const h=n([...l,o,i]);if(!s.includes(h)){if(typeof i.examples<"u"&&r.isObjectElement(i.examples)){const d=i.examples.map(g=>Ke.safe(g.value));typeof i.schema.examples<"u"&&(i.schema.set("examples",d),s.append(h)),typeof i.schema.example<"u"&&(i.schema.set("example",d[0]),s.append(h));return}typeof i.example<"u"&&(typeof i.schema.examples<"u"&&(i.schema.set("examples",[Ke(i.example)]),s.append(h)),typeof i.schema.example<"u"&&(i.schema.set("example",Ke(i.example)),s.append(h)))}}}}}},Lse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof op||t(n)&&e("callback",n)&&r("object",n)),Use=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof up||t(n)&&e("components",n)&&r("object",n)),Vse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof lp||t(n)&&e("contact",n)&&r("object",n)),zse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cp||t(n)&&e("example",n)&&r("object",n)),Wse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fp||t(n)&&e("externalDocumentation",n)&&r("object",n)),Jse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pp||t(n)&&e("header",n)&&r("object",n)),Hse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dp||t(n)&&e("info",n)&&r("object",n)),p6=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof da||t(n)&&e("jsonSchemaDialect",n)&&r("string",n)),Kse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hp||t(n)&&e("license",n)&&r("object",n)),Gse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof mp||t(n)&&e("link",n)&&r("object",n)),Yse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kx||t(n)&&e("openapi",n)&&r("string",n)),d6=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>s=>s instanceof Mi||t(s)&&e("openApi3_1",s)&&r("object",s)&&n("api",s)),h6=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Sl||t(n)&&e("operation",n)&&r("object",n)),Xse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof yp||t(n)&&e("parameter",n)&&r("object",n)),na=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Oi||t(n)&&e("pathItem",n)&&r("object",n)),Zse=t=>{if(!na(t)||!ct(t.$ref))return!1;const e=Re(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},Qse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vp||t(n)&&e("paths",n)&&r("object",n)),ha=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Di||t(n)&&e("reference",n)&&r("object",n)),eie=t=>{if(!ha(t)||!ct(t.$ref))return!1;const e=Re(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},tie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bp||t(n)&&e("requestBody",n)&&r("object",n)),rie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ep||t(n)&&e("response",n)&&r("object",n)),nie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Sp||t(n)&&e("responses",n)&&r("object",n)),ts=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ci||t(n)&&e("schema",n)&&r("object",n)),eA=t=>Wu(t)&&t.classes.includes("boolean-json-schema"),sie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wp||t(n)&&e("securityRequirement",n)&&r("object",n)),iie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof xp||t(n)&&e("securityScheme",n)&&r("object",n)),aie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ap||t(n)&&e("server",n)&&r("object",n)),oie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Op||t(n)&&e("serverVariable",n)&&r("object",n)),uie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gp||t(n)&&e("mediaType",n)&&r("object",n)),lie=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:eA,isCallbackElement:Lse,isComponentsElement:Use,isContactElement:Vse,isExampleElement:zse,isExternalDocumentationElement:Wse,isHeaderElement:Jse,isInfoElement:Hse,isJsonSchemaDialectElement:p6,isLicenseElement:Kse,isLinkElement:Gse,isMediaTypeElement:uie,isOpenApi3_1Element:d6,isOpenapiElement:Yse,isOperationElement:h6,isParameterElement:Xse,isPathItemElement:na,isPathItemElementExternal:Zse,isPathsElement:Qse,isReferenceElement:ha,isReferenceElementExternal:eie,isRequestBodyElement:tie,isResponseElement:rie,isResponsesElement:nie,isSchemaElement:ts,isSecurityRequirementElement:sie,isSecuritySchemeElement:iie,isServerElement:aie,isServerVariableElement:oie},Symbol.toStringTag,{value:"Module"})),cie=t=>{const e=t.reduce((r,n,s)=>{if(us(n)){const i=String(Re(n.key));r.push(i)}else if(Dr(t[s-2])){const i=String(t[s-2].content.indexOf(n));r.push(i)}return r},[]);return kL(e)},m6=()=>{const t=si(Xx);return{predicates:{...lie,isElement:fr,isStringElement:ct,isArrayElement:Dr,isObjectElement:Pt,isMemberElement:us,isServersElement:JL,includesClasses:Ga,hasElementSourceMap:Ju},ancestorLineageToJSONPointer:cie,namespace:t}};class fie extends qe(bt,Ve){constructor(e){super(e),this.element=new Mi,this.specPath=ut(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,bt.prototype.ObjectElement.call(this,e)}}const pie=Ee.visitors.document.objects.Info.$visitor;class die extends pie{constructor(e){super(e),this.element=new dp}}const hie=Ee.visitors.document.objects.Contact.$visitor;class mie extends hie{constructor(e){super(e),this.element=new lp}}const gie=Ee.visitors.document.objects.License.$visitor;class yie extends gie{constructor(e){super(e),this.element=new hp}}const vie=Ee.visitors.document.objects.Link.$visitor;class bie extends vie{constructor(e){super(e),this.element=new mp}}class Eie extends qe(ls,Ve){StringElement(e){const r=new da(Re(e));return this.copyMetaAndAttributes(e,r),this.element=r,Rt}}const Sie=Ee.visitors.document.objects.Server.$visitor;class _ie extends Sie{constructor(e){super(e),this.element=new Ap}}const wie=Ee.visitors.document.objects.ServerVariable.$visitor;class xie extends wie{constructor(e){super(e),this.element=new Op}}const Aie=Ee.visitors.document.objects.MediaType.$visitor;class Oie extends Aie{constructor(e){super(e),this.element=new gp}}const Cie=Ee.visitors.document.objects.SecurityRequirement.$visitor;class Rie extends Cie{constructor(e){super(e),this.element=new wp}}const Tie=Ee.visitors.document.objects.Components.$visitor;class Iie extends Tie{constructor(e){super(e),this.element=new up}}const kie=Ee.visitors.document.objects.Tag.$visitor;class Pie extends kie{constructor(e){super(e),this.element=new Gx}}const jie=Ee.visitors.document.objects.Reference.$visitor;class Nie extends jie{constructor(e){super(e),this.element=new Di}}const Mie=Ee.visitors.document.objects.Parameter.$visitor;class Die extends Mie{constructor(e){super(e),this.element=new yp}}const Fie=Ee.visitors.document.objects.Header.$visitor;class qie extends Fie{constructor(e){super(e),this.element=new pp}}class Bie extends qe(bt,br,Ve){constructor(e){super(e),this.element=new Ci,this.specPath=ut(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=da.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=bt.prototype.ObjectElement.call(this,e);return ct(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(e){return _r.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return this.openApiSemanticElement!==void 0&&p6(this.openApiSemanticElement.jsonSchemaDialect)?e=Re(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&ct(this.openApiGenericElement.get("jsonSchemaDialect"))?e=Re(this.openApiGenericElement.get("jsonSchemaDialect")):e=Re(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return _r.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return _r.prototype.handleSchemaIdentifier.call(this,e)}}class $ie extends e6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}let Lie=class extends t6{constructor(e){super(e),this.passingOptionsNames.push("parent")}};class Uie extends r6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class Vie extends n6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class zie extends s6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class Wie extends l6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class Jie extends i6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class Hie extends a6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}const Kie=Ee.visitors.document.objects.Discriminator.$visitor;class Gie extends Kie{constructor(e){super(e),this.element=new zx,this.canSupportSpecificationExtensions=!0}}const Yie=Ee.visitors.document.objects.XML.$visitor;class Xie extends Yie{constructor(e){super(e),this.element=new Yx}}class Zie extends qe(mt,Ve){constructor(e){super(e),this.element=new tp,this.specPath=ut(["document","objects","Schema"])}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(ts).forEach((n,s)=>{n.setMetaProperty("schemaName",Re(s))}),r}}class Qie extends qe(mt,Ve){constructor(e){super(e),this.element=new Zx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(ha).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const eae=Ee.visitors.document.objects.Example.$visitor;class tae extends eae{constructor(e){super(e),this.element=new cp}}const rae=Ee.visitors.document.objects.ExternalDocumentation.$visitor;class nae extends rae{constructor(e){super(e),this.element=new fp}}const sae=Ee.visitors.document.objects.Encoding.$visitor;class iae extends sae{constructor(e){super(e),this.element=new Wx}}const aae=Ee.visitors.document.objects.Paths.$visitor;class oae extends aae{constructor(e){super(e),this.element=new vp}}const uae=Ee.visitors.document.objects.RequestBody.$visitor;class lae extends uae{constructor(e){super(e),this.element=new bp}}const hD=Ee.visitors.document.objects.Callback.$visitor;class cae extends hD{constructor(e){super(e),this.element=new op,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=hD.prototype.ObjectElement.call(this,e);return this.element.filter(ha).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const fae=Ee.visitors.document.objects.Response.$visitor;class pae extends fae{constructor(e){super(e),this.element=new Ep}}const dae=Ee.visitors.document.objects.Responses.$visitor;class hae extends dae{constructor(e){super(e),this.element=new Sp}}const mae=Ee.visitors.document.objects.Operation.$visitor;class gae extends mae{constructor(e){super(e),this.element=new Sl}}const yae=Ee.visitors.document.objects.PathItem.$visitor;class vae extends yae{constructor(e){super(e),this.element=new Oi}}const bae=Ee.visitors.document.objects.SecurityScheme.$visitor;class Eae extends bae{constructor(e){super(e),this.element=new xp}}const Sae=Ee.visitors.document.objects.OAuthFlows.$visitor;class _ae extends Sae{constructor(e){super(e),this.element=new Hx}}const wae=Ee.visitors.document.objects.OAuthFlow.$visitor;class xae extends wae{constructor(e){super(e),this.element=new Jx}}class Aae extends qe(mt,Ve){constructor(e){super(e),this.element=new Qx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(ha).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),this.element.filter(na).forEach((n,s)=>{n.setMetaProperty("webhook-name",Re(s))}),r}}const{JSONSchema:Oae,LinkDescription:Cae}=c6.visitors.document.objects,Rae={visitors:{value:Ee.visitors.value,document:{objects:{OpenApi:{$visitor:fie,fixedFields:{openapi:Ee.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Eie,servers:Ee.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Aae,components:{$ref:"#/visitors/document/objects/Components"},security:Ee.visitors.document.objects.OpenApi.fixedFields.security,tags:Ee.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:die,fixedFields:{title:Ee.visitors.document.objects.Info.fixedFields.title,description:Ee.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Ee.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Ee.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:mie,fixedFields:{name:Ee.visitors.document.objects.Contact.fixedFields.name,url:Ee.visitors.document.objects.Contact.fixedFields.url,email:Ee.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:yie,fixedFields:{name:Ee.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Ee.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:_ie,fixedFields:{url:Ee.visitors.document.objects.Server.fixedFields.url,description:Ee.visitors.document.objects.Server.fixedFields.description,variables:Ee.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:xie,fixedFields:{enum:Ee.visitors.document.objects.ServerVariable.fixedFields.enum,default:Ee.visitors.document.objects.ServerVariable.fixedFields.default,description:Ee.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Iie,fixedFields:{schemas:Zie,responses:Ee.visitors.document.objects.Components.fixedFields.responses,parameters:Ee.visitors.document.objects.Components.fixedFields.parameters,examples:Ee.visitors.document.objects.Components.fixedFields.examples,requestBodies:Ee.visitors.document.objects.Components.fixedFields.requestBodies,headers:Ee.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Ee.visitors.document.objects.Components.fixedFields.securitySchemes,links:Ee.visitors.document.objects.Components.fixedFields.links,callbacks:Ee.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Qie}},Paths:{$visitor:oae},PathItem:{$visitor:vae,fixedFields:{$ref:Ee.visitors.document.objects.PathItem.fixedFields.$ref,summary:Ee.visitors.document.objects.PathItem.fixedFields.summary,description:Ee.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Ee.visitors.document.objects.PathItem.fixedFields.servers,parameters:Ee.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:gae,fixedFields:{tags:Ee.visitors.document.objects.Operation.fixedFields.tags,summary:Ee.visitors.document.objects.Operation.fixedFields.summary,description:Ee.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Ee.visitors.document.objects.Operation.fixedFields.operationId,parameters:Ee.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Ee.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Ee.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Ee.visitors.document.objects.Operation.fixedFields.deprecated,security:Ee.visitors.document.objects.Operation.fixedFields.security,servers:Ee.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:nae,fixedFields:{description:Ee.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Ee.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Die,fixedFields:{name:Ee.visitors.document.objects.Parameter.fixedFields.name,in:Ee.visitors.document.objects.Parameter.fixedFields.in,description:Ee.visitors.document.objects.Parameter.fixedFields.description,required:Ee.visitors.document.objects.Parameter.fixedFields.required,deprecated:Ee.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Ee.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Ee.visitors.document.objects.Parameter.fixedFields.style,explode:Ee.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Ee.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ee.visitors.document.objects.Parameter.fixedFields.example,examples:Ee.visitors.document.objects.Parameter.fixedFields.examples,content:Ee.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:lae,fixedFields:{description:Ee.visitors.document.objects.RequestBody.fixedFields.description,content:Ee.visitors.document.objects.RequestBody.fixedFields.content,required:Ee.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Oie,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Ee.visitors.document.objects.MediaType.fixedFields.example,examples:Ee.visitors.document.objects.MediaType.fixedFields.examples,encoding:Ee.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:iae,fixedFields:{contentType:Ee.visitors.document.objects.Encoding.fixedFields.contentType,headers:Ee.visitors.document.objects.Encoding.fixedFields.headers,style:Ee.visitors.document.objects.Encoding.fixedFields.style,explode:Ee.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Ee.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:hae,fixedFields:{default:Ee.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:pae,fixedFields:{description:Ee.visitors.document.objects.Response.fixedFields.description,headers:Ee.visitors.document.objects.Response.fixedFields.headers,content:Ee.visitors.document.objects.Response.fixedFields.content,links:Ee.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:cae},Example:{$visitor:tae,fixedFields:{summary:Ee.visitors.document.objects.Example.fixedFields.summary,description:Ee.visitors.document.objects.Example.fixedFields.description,value:Ee.visitors.document.objects.Example.fixedFields.value,externalValue:Ee.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:bie,fixedFields:{operationRef:Ee.visitors.document.objects.Link.fixedFields.operationRef,operationId:Ee.visitors.document.objects.Link.fixedFields.operationId,parameters:Ee.visitors.document.objects.Link.fixedFields.parameters,requestBody:Ee.visitors.document.objects.Link.fixedFields.requestBody,description:Ee.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:qie,fixedFields:{description:Ee.visitors.document.objects.Header.fixedFields.description,required:Ee.visitors.document.objects.Header.fixedFields.required,deprecated:Ee.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Ee.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Ee.visitors.document.objects.Header.fixedFields.style,explode:Ee.visitors.document.objects.Header.fixedFields.explode,allowReserved:Ee.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ee.visitors.document.objects.Header.fixedFields.example,examples:Ee.visitors.document.objects.Header.fixedFields.examples,content:Ee.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Pie,fixedFields:{name:Ee.visitors.document.objects.Tag.fixedFields.name,description:Ee.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Nie,fixedFields:{$ref:Ee.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Cae},Schema:{$visitor:Bie,fixedFields:{...Oae.fixedFields,$defs:$ie,allOf:Lie,anyOf:Uie,oneOf:Vie,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:zie,prefixItems:Wie,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Jie,patternProperties:Hie,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Gie,fixedFields:{propertyName:Ee.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Ee.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Xie,fixedFields:{name:Ee.visitors.document.objects.XML.fixedFields.name,namespace:Ee.visitors.document.objects.XML.fixedFields.namespace,prefix:Ee.visitors.document.objects.XML.fixedFields.prefix,attribute:Ee.visitors.document.objects.XML.fixedFields.attribute,wrapped:Ee.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Eae,fixedFields:{type:Ee.visitors.document.objects.SecurityScheme.fixedFields.type,description:Ee.visitors.document.objects.SecurityScheme.fixedFields.description,name:Ee.visitors.document.objects.SecurityScheme.fixedFields.name,in:Ee.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Ee.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Ee.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Ee.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:_ae,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:xae,fixedFields:{authorizationUrl:Ee.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Ee.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Ee.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Ee.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Rie}},extension:{$visitor:Ee.visitors.document.extension.$visitor}}}},Tae=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=pe.refract(t),s=ji(Rae),i=Or(e,s),a=new i({specObj:s});return vr(n,a),Ps(a.element,r,{toolboxCreator:m6,visitorOptions:{keyMap:es,nodeTypeGetter:Dn}})},Mt=t=>(e,r={})=>Tae(e,{specPath:t,...r});op.refract=Mt(["visitors","document","objects","Callback","$visitor"]);up.refract=Mt(["visitors","document","objects","Components","$visitor"]);lp.refract=Mt(["visitors","document","objects","Contact","$visitor"]);cp.refract=Mt(["visitors","document","objects","Example","$visitor"]);zx.refract=Mt(["visitors","document","objects","Discriminator","$visitor"]);Wx.refract=Mt(["visitors","document","objects","Encoding","$visitor"]);fp.refract=Mt(["visitors","document","objects","ExternalDocumentation","$visitor"]);pp.refract=Mt(["visitors","document","objects","Header","$visitor"]);dp.refract=Mt(["visitors","document","objects","Info","$visitor"]);da.refract=Mt(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]);hp.refract=Mt(["visitors","document","objects","License","$visitor"]);mp.refract=Mt(["visitors","document","objects","Link","$visitor"]);gp.refract=Mt(["visitors","document","objects","MediaType","$visitor"]);Jx.refract=Mt(["visitors","document","objects","OAuthFlow","$visitor"]);Hx.refract=Mt(["visitors","document","objects","OAuthFlows","$visitor"]);Kx.refract=Mt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Mi.refract=Mt(["visitors","document","objects","OpenApi","$visitor"]);Sl.refract=Mt(["visitors","document","objects","Operation","$visitor"]);yp.refract=Mt(["visitors","document","objects","Parameter","$visitor"]);Oi.refract=Mt(["visitors","document","objects","PathItem","$visitor"]);vp.refract=Mt(["visitors","document","objects","Paths","$visitor"]);Di.refract=Mt(["visitors","document","objects","Reference","$visitor"]);bp.refract=Mt(["visitors","document","objects","RequestBody","$visitor"]);Ep.refract=Mt(["visitors","document","objects","Response","$visitor"]);Sp.refract=Mt(["visitors","document","objects","Responses","$visitor"]);Ci.refract=Mt(["visitors","document","objects","Schema","$visitor"]);wp.refract=Mt(["visitors","document","objects","SecurityRequirement","$visitor"]);xp.refract=Mt(["visitors","document","objects","SecurityScheme","$visitor"]);Ap.refract=Mt(["visitors","document","objects","Server","$visitor"]);Op.refract=Mt(["visitors","document","objects","ServerVariable","$visitor"]);Gx.refract=Mt(["visitors","document","objects","Tag","$visitor"]);Yx.refract=Mt(["visitors","document","objects","XML","$visitor"]);class Iae extends Ku{constructor(e){super({...e??{},name:"binary"})}canParse(e){return this.fileExtensions.length===0?!0:this.fileExtensions.includes(e.extension)}parse(e){try{const r=unescape(encodeURIComponent(e.toString())),n=btoa(r),s=new ss;if(n.length!==0){const i=new pe.StringElement(n);i.classes.push("result"),s.push(i)}return s}catch(r){throw new Ys(`Error parsing "${e.uri}"`,{cause:r})}}}class kae extends IQ{constructor(e){super({...e??{},name:"openapi-3-1"})}canResolve(e,r){const n=r.dereference.strategies.find(s=>s.name==="openapi-3-1");return n===void 0?!1:n.canDereference(e,r)}async resolve(e,r){const n=r.dereference.strategies.find(a=>a.name==="openapi-3-1");if(n===void 0)throw new eL('"openapi-3-1" dereference strategy is not available.');const s=new Ka,i=C$(r,{resolve:{internal:!1},dereference:{refSet:s}});return await n.dereference(e,i),s}}const{AbortController:Pae,AbortSignal:jae}=globalThis;typeof globalThis.AbortController>"u"&&(globalThis.AbortController=Pae);typeof globalThis.AbortSignal>"u"&&(globalThis.AbortSignal=jae);class Nae extends TQ{swaggerHTTPClient=uu;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=uu,swaggerHTTPClientConfig:r={},...n}={}){super({...n,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=r}getHttpClient(){return this.swaggerHTTPClient}async read(e){const r=this.getHttpClient(),n=new AbortController,{signal:s}=n,i=setTimeout(()=>{n.abort()},this.timeout),a=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=this.redirects===0?"error":"follow",u=this.redirects>0?this.redirects:void 0;try{return(await r({url:e.uri,signal:s,userFetch:async(c,p)=>{let h=await fetch(c,p);try{h.headers.delete("Content-Type")}catch{h=new Response(h.body,{...h,headers:new Headers(h.headers)}),h.headers.delete("Content-Type")}return h},credentials:a,redirect:o,follow:u,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(l){throw new R$(`Error downloading "${e.uri}"`,{cause:l})}finally{clearTimeout(i)}}}class Mae extends Ku{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(e.extension),n=this.mediaTypes.includes(e.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Ys("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new ss,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const s=Q$(JSON.parse(n));return s.classes.push("result"),r.push(s),r}catch(s){throw new Ys(`Error parsing "${e.uri}"`,{cause:s})}}}class Dae extends Ku{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(e.extension),n=this.mediaTypes.includes(e.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return ea.load(e.toString(),{schema:nu}),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Ys("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new ss,n=e.toString();try{const s=ea.load(n,{schema:nu});if(this.allowEmpty&&typeof s>"u")return r;const i=Q$(s);return i.classes.push("result"),r.push(i),r}catch(s){throw new Ys(`Error parsing "${e.uri}"`,{cause:s})}}}class Fae extends Ku{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new cx(...Xa.filterByFormat("generic"),...Xa.filterByFormat("json")),...e})}async canParse(e){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(e.extension),n=this.mediaTypes.includes(e.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{const s=e.toString();return JSON.parse(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Ys("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new ss,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const s=JSON.parse(n),i=Mi.refract(s,this.refractorOpts);return i.classes.push("result"),r.push(i),r}catch(s){throw new Ys(`Error parsing "${e.uri}"`,{cause:s})}}}class qae extends Ku{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new cx(...Xa.filterByFormat("generic"),...Xa.filterByFormat("yaml")),...e})}async canParse(e){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(e.extension),n=this.mediaTypes.includes(e.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{const s=e.toString();return ea.load(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Ys("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new ss,n=e.toString();try{const s=ea.load(n,{schema:nu});if(this.allowEmpty&&typeof s>"u")return r;const i=Mi.refract(s,this.refractorOpts);return i.classes.push("result"),r.push(i),r}catch(s){throw new Ys(`Error parsing "${e.uri}"`,{cause:s})}}}const Cp=t=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(t),Qa=t=>{const e=A$(t);return _$("#",e)},Bae=t=>{if(!Cp(t))throw new NQ(t);return t},tA=(t,e)=>{const r=Bae(t),n=G$(s=>ts(s)&&Re(s.$anchor)===r,e);if(Pi(n))throw new PQ(`Evaluation failed on token: "${r}"`);return n},g6=(t,e)=>{if(typeof e.$ref>"u")return;const r=A$(Re(e.$ref)),n=Re(e.meta.get("ancestorsSchemaIdentifiers"));return`${co((i,a)=>jr(i,Bf(zt(a))),t,[...n,Re(e.$ref)])}${r==="#"?"":r}`},$ae=(t,e)=>{if(typeof e.$id>"u")return;const r=Re(e.meta.get("ancestorsSchemaIdentifiers"));return co((n,s)=>jr(n,Bf(zt(s))),t,r)},Yo=t=>{if(Yo.cache.has(t))return Yo.cache.get(t);const e=Ci.refract(t);return Yo.cache.set(t,e),e};Yo.cache=new WeakMap;const $r=t=>Zi(t)?Yo(t):t,Rp=(t,e)=>{const{cache:r}=Rp,n=zt(t),s=a=>ts(a)&&typeof a.$id<"u";if(!r.has(e)){const a=dQ(s,e);r.set(e,Array.from(a))}const i=r.get(e).find(a=>$ae(n,a)===n);if(Pi(i))throw new Zw(`Evaluation failed on URI: "${t}"`);return Cp(Qa(t))?tA(Qa(t),i):Qn(i,Nn(t))};Rp.cache=new WeakMap;const oc=vr[Symbol.for("nodejs.util.promisify.custom")],Tr=new Yw,In=(t,e,r,n)=>{us(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class Ji{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;constructor({reference:e,namespace:r,options:n,indirections:s=[],ancestors:i=new rS,refractCache:a=new Map,allOfDiscriminatorMapping:o=new Map}){this.indirections=s,this.namespace=r,this.reference=e,this.options=n,this.ancestors=new rS(...i),this.refractCache=a,this.allOfDiscriminatorMapping=o}toBaseURI(e){return jr(this.reference.uri,Bf(zt(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new MQ(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const r=this.toBaseURI(e),{refSet:n}=this.reference;if(n.has(r))return n.find(p$(r,"uri"));const s=await PZ(Es(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),i=new Hs({uri:r,value:Ke(s),depth:this.reference.depth+1});if(n.add(i),this.options.dereference.immutable){const a=new Hs({uri:`immutable://${r}`,value:s,depth:this.reference.depth+1});n.add(a)}return i}toAncestorLineage(e){const r=new Set(e.filter(fr));return[new rS(...this.ancestors,r),r]}OpenApi3_1Element={leave:(e,r,n,s,i,a)=>{var o;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping))return;const u=Ar(e);return u.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),a.replaceWith(u,In),n?void 0:u}};async ReferenceElement(e,r,n,s,i,a){if(this.indirections.includes(e))return!1;const[o,u]=this.toAncestorLineage([...i,n]),l=this.toBaseURI(Re(e.$ref)),c=zt(this.reference.uri)===l,p=!c;if(!this.options.resolve.internal&&c||!this.options.resolve.external&&p)return!1;const h=await this.toReference(Re(e.$ref)),d=jr(l,Re(e.$ref));this.indirections.push(e);const g=Nn(d);let y=Qn(h.value.result,g);if(y.id=Tr.identify(y),Zi(y)){const S=Re(e.meta.get("referenced-element")),A=`${S}-${Re(Tr.identify(y))}`;this.refractCache.has(A)?y=this.refractCache.get(A):Yt(y)?(y=Di.refract(y),y.setMetaProperty("referenced-element",S),this.refractCache.set(A,y)):(y=this.namespace.getElementClass(S).refract(y),this.refractCache.set(A,y))}if(e===y)throw new nr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(y)){if(h.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,E;const S=new pe.RefElement(y.id,{type:"reference",uri:h.uri,$ref:Re(e.$ref)}),T=((v=(E=this.options.dereference.strategyOpts["openapi-3-1"])===null||E===void 0?void 0:E.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(S);return a.replaceWith(T,In),n?!1:T}}const b=zt(h.refSet.rootRef.uri)!==h.uri,_=["error","replace"].includes(this.options.dereference.circular);if((p||b||ha(y)||_)&&!o.includesCycle(y)){u.add(e);const S=new Ji({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await oc(y,S,{keyMap:es,nodeTypeGetter:Dn}),u.delete(e)}this.indirections.pop();const w=Ar(y);return w.setMetaProperty("id",Tr.generateId()),w.setMetaProperty("ref-fields",{$ref:Re(e.$ref),description:Re(e.description),summary:Re(e.summary)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Ke(Tr.identify(e))),Pt(y)&&Pt(w)&&(e.hasKey("description")&&"description"in y&&(w.remove("description"),w.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in y&&(w.remove("summary"),w.set("summary",e.get("summary")))),a.replaceWith(w,In),n?!1:w}async PathItemElement(e,r,n,s,i,a){if(!ct(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,u]=this.toAncestorLineage([...i,n]),l=this.toBaseURI(Re(e.$ref)),c=zt(this.reference.uri)===l,p=!c;if(!this.options.resolve.internal&&c||!this.options.resolve.external&&p)return;const h=await this.toReference(Re(e.$ref)),d=jr(l,Re(e.$ref));this.indirections.push(e);const g=Nn(d);let y=Qn(h.value.result,g);if(y.id=Tr.identify(y),Zi(y)){const w=`path-item-${Re(Tr.identify(y))}`;this.refractCache.has(w)?y=this.refractCache.get(w):(y=Oi.refract(y),this.refractCache.set(w,y))}if(e===y)throw new nr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(y)){if(h.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,E;const w=new pe.RefElement(y.id,{type:"path-item",uri:h.uri,$ref:Re(e.$ref)}),A=((v=(E=this.options.dereference.strategyOpts["openapi-3-1"])===null||E===void 0?void 0:E.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(w);return a.replaceWith(A,In),n?!1:A}}const b=zt(h.refSet.rootRef.uri)!==h.uri,_=["error","replace"].includes(this.options.dereference.circular);if((p||b||na(y)&&ct(y.$ref)||_)&&!o.includesCycle(y)){u.add(e);const w=new Ji({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await oc(y,w,{keyMap:es,nodeTypeGetter:Dn}),u.delete(e)}if(this.indirections.pop(),na(y)){const w=new Oi([...y.content],Ke(y.meta),Ke(y.attributes));w.setMetaProperty("id",Tr.generateId()),e.forEach((S,A,T)=>{w.remove(Re(A)),w.content.push(T)}),w.remove("$ref"),w.setMetaProperty("ref-fields",{$ref:Re(e.$ref)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Ke(Tr.identify(e))),y=w}return a.replaceWith(y,In),n?void 0:y}async LinkElement(e,r,n,s,i,a){if(!ct(e.operationRef)&&!ct(e.operationId))return;if(ct(e.operationRef)&&ct(e.operationId))throw new nr("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(ct(e.operationRef)){var u;const c=Nn(Re(e.operationRef)),p=this.toBaseURI(Re(e.operationRef)),h=zt(this.reference.uri)===p,d=!h;if(!this.options.resolve.internal&&h||!this.options.resolve.external&&d)return;const g=await this.toReference(Re(e.operationRef));if(o=Qn(g.value.result,c),Zi(o)){const v=`operation-${Re(Tr.identify(o))}`;this.refractCache.has(v)?o=this.refractCache.get(v):(o=Sl.refract(o),this.refractCache.set(v,o))}o=Ar(o),o.setMetaProperty("ref-origin",g.uri);const y=Ar(e);return(u=y.operationRef)===null||u===void 0||u.meta.set("operation",o),a.replaceWith(y,In),n?void 0:y}if(ct(e.operationId)){var l;const c=Re(e.operationId),p=await this.toReference(Es(this.reference.uri));if(o=G$(d=>h6(d)&&fr(d.operationId)&&d.operationId.equals(c),p.value.result),Pi(o))throw new nr(`OperationElement(operationId=${c}) not found.`);const h=Ar(e);return(l=h.operationId)===null||l===void 0||l.meta.set("operation",o),a.replaceWith(h,In),n?void 0:h}}async ExampleElement(e,r,n,s,i,a){if(!ct(e.externalValue))return;if(e.hasKey("value")&&ct(e.externalValue))throw new nr("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(Re(e.externalValue)),u=zt(this.reference.uri)===o,l=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&l)return;const c=await this.toReference(Re(e.externalValue)),p=Ar(c.value.result);p.setMetaProperty("ref-origin",c.uri);const h=Ar(e);return h.value=p,a.replaceWith(h,In),n?void 0:h}async MemberElement(e,r,n,s,i,a){var o;const u=i[i.length-1];if(!Pt(u)||!u.classes.contains("discriminator-mapping"))return;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping)||!ct(e.key)||!ct(e.value)||this.indirections.includes(e))return!1;this.indirections.push(e);const[l,c]=this.toAncestorLineage([...i,n]),p=[...c].findLast(ts),h=Ke(p.getMetaProperty("ancestorsSchemaIdentifiers")),d=Re(e.value),y=/^[a-zA-Z0-9\\.\\-_]+$/.test(d)?`#/components/schemas/${d}`:d,v=new Ci({$ref:y});v.setMetaProperty("ancestorsSchemaIdentifiers",h),c.add(v);const E=new Ji({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:l,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping}),b=await oc(v,E,{keyMap:es,nodeTypeGetter:Dn});c.delete(v),this.indirections.pop();const _=Ar(e);return _.value.setMetaProperty("ref-schema",b),a.replaceWith(_,In),n?void 0:_}async SchemaElement(e,r,n,s,i,a){if(!ct(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,u]=this.toAncestorLineage([...i,n]);let l=await this.toReference(Es(this.reference.uri)),{uri:c}=l;const p=g6(c,e),h=zt(p),d=new ou({uri:h}),g=NX(F=>F.canRead(d),this.options.resolve.resolvers),y=!g;let v=zt(this.reference.uri)===p,E=!v;this.indirections.push(e);let b;try{if(g||y){c=this.toBaseURI(p);const F=p,R=$r(l.value.result);if(b=Rp(F,R),b=$r(b),b.id=Tr.identify(b),!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return}else{if(c=this.toBaseURI(p),v=zt(this.reference.uri)===c,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;l=await this.toReference(Es(p));const F=Nn(p),R=$r(l.value.result);b=Qn(R,F),b=$r(b),b.id=Tr.identify(b)}}catch(F){if(y&&F instanceof Zw)if(Cp(Qa(p))){if(v=zt(this.reference.uri)===c,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;l=await this.toReference(Es(p));const R=Qa(p),$=$r(l.value.result);b=tA(R,$),b=$r(b),b.id=Tr.identify(b)}else{if(c=this.toBaseURI(p),v=zt(this.reference.uri)===c,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;l=await this.toReference(Es(p));const R=Nn(p),$=$r(l.value.result);b=Qn($,R),b=$r(b),b.id=Tr.identify(b)}else throw F}if(e===b)throw new nr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(b)){if(l.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var _,w;const F=new pe.RefElement(b.id,{type:"json-schema",uri:l.uri,$ref:Re(e.$ref)}),$=((_=(w=this.options.dereference.strategyOpts["openapi-3-1"])===null||w===void 0?void 0:w.circularReplacer)!==null&&_!==void 0?_:this.options.dereference.circularReplacer)(F);return a.replaceWith($,In),n?!1:$}}const S=zt(l.refSet.rootRef.uri)!==l.uri,A=["error","replace"].includes(this.options.dereference.circular);if((E||S||ts(b)&&ct(b.$ref)||A)&&!o.includesCycle(b)){u.add(e);const F=new Ji({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});b=await oc(b,F,{keyMap:es,nodeTypeGetter:Dn}),u.delete(e)}if(this.indirections.pop(),eA(b)){const F=Ke(b);return F.setMetaProperty("id",Tr.generateId()),F.setMetaProperty("ref-fields",{$ref:Re(e.$ref),$refBaseURI:p}),F.setMetaProperty("ref-origin",l.uri),F.setMetaProperty("ref-referencing-element-id",Ke(Tr.identify(e))),a.replaceWith(F,In),n?!1:F}if(ts(b)){var T;const F=new Ci([...b.content],Ke(b.meta),Ke(b.attributes));if(F.setMetaProperty("id",Tr.generateId()),e.forEach((R,$,M)=>{F.remove(Re($)),F.content.push(M)}),F.remove("$ref"),F.setMetaProperty("ref-fields",{$ref:Re(e.$ref),$refBaseURI:p}),F.setMetaProperty("ref-origin",l.uri),F.setMetaProperty("ref-referencing-element-id",Ke(Tr.identify(e))),(T=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&T!==void 0&&T.dereferenceDiscriminatorMapping){var k;const R=i[i.length-1],$=[...u].findLast(ts),M=$?.getMetaProperty("schemaName"),K=Re(F.getMetaProperty("schemaName"));if(K&&M&&R!==null&&R!==void 0&&(k=R.classes)!==null&&k!==void 0&&k.contains("json-schema-allOf")){var P;const ee=(P=this.allOfDiscriminatorMapping.get(K))!==null&&P!==void 0?P:[];ee.push($),this.allOfDiscriminatorMapping.set(K,ee)}}b=F}return a.replaceWith(b,In),n?void 0:b}}const Lae=vr[Symbol.for("nodejs.util.promisify.custom")];class Uae extends kQ{constructor(e){super({...e??{},name:"openapi-3-1"})}canDereference(e){var r;return e.mediaType!=="text/plain"?Xa.includes(e.mediaType):d6((r=e.parseResult)===null||r===void 0?void 0:r.result)}async dereference(e,r){var n;const s=si(Xx),i=(n=r.dereference.refSet)!==null&&n!==void 0?n:new Ka,a=new Ka;let o=i,u;i.has(e.uri)?u=i.find(p$(e.uri,"uri")):(u=new Hs({uri:e.uri,value:e.parseResult}),i.add(u)),r.dereference.immutable&&(i.refs.map(p=>new Hs({...p,value:Ke(p.value)})).forEach(p=>a.add(p)),u=a.find(p=>p.uri===e.uri),o=a);const l=new Ji({reference:u,namespace:s,options:r}),c=await Lae(o.rootRef.value,l,{keyMap:es,nodeTypeGetter:Dn});return r.dereference.immutable&&a.refs.filter(p=>p.uri.startsWith("immutable://")).map(p=>new Hs({...p,uri:p.uri.replace(/^immutable:\/\//,"")})).forEach(p=>i.add(p)),r.dereference.refSet===null&&i.clean(),a.clean(),c}}const Vae=t=>t.slice(2),Yn=t=>{const e=Vae(t);return e.reduce((r,n,s)=>{if(us(n)){const i=String(Re(n.key));r.push(i)}else if(Dr(e[s-2])){const i=e[s-2].content.indexOf(n);r.push(i)}return r},[])};class zae{modelPropertyMacro;options;SchemaElement={leave:(e,r,n,s,i)=>{typeof e.properties>"u"||Pt(e.properties)&&e.properties.forEach(a=>{if(Pt(a))try{const l=this.modelPropertyMacro(Re(a));a.set("default",l)}catch(l){var o,u;const c=new Error(l,{cause:l});c.fullPath=[...Yn([...i,n,e]),"properties"],(o=this.options.dereference.dereferenceOpts)===null||o===void 0||(o=o.errors)===null||o===void 0||(u=o.push)===null||u===void 0||u.call(o,c)}})}};constructor({modelPropertyMacro:e,options:r}){this.modelPropertyMacro=e,this.options=r}}class Wae{options;SchemaElement={leave(e,r,n,s,i){if(typeof e.allOf>"u")return;if(!Dr(e.allOf)){var a,o;const p=new TypeError("allOf must be an array");p.fullPath=[...Yn([...i,n,e]),"allOf"],(a=this.options.dereference.dereferenceOpts)===null||a===void 0||(a=a.errors)===null||a===void 0||(o=a.push)===null||o===void 0||o.call(a,p);return}if(e.allOf.isEmpty){e.remove("allOf");return}if(!e.allOf.content.every(ts)){var l,c;const p=new TypeError("Elements in allOf must be objects");p.fullPath=[...Yn([...i,n,e]),"allOf"],(l=this.options.dereference.dereferenceOpts)===null||l===void 0||(l=l.errors)===null||l===void 0||(c=l.push)===null||c===void 0||c.call(l,p);return}for(;e.hasKey("allOf");){const{allOf:p}=e;e.remove("allOf");const h=Fn.all([...p.content,e],{customMerge:d=>Re(d)==="enum"?(g,y)=>{if(Ga(["json-schema-enum"],g)&&Ga(["json-schema-enum"],y)){const v=(b,_)=>Dr(b)||Dr(_)||Pt(b)||Pt(_)?!1:b.equals(Re(_)),E=Ar(g);return E.content=m$(v)([...g.content,...y.content]),E}return Fn(g,y)}:Fn});if(e.hasKey("$$ref")||h.remove("$$ref"),e.hasKey("example")){const d=h.getMember("example");d&&(d.value=e.get("example"))}if(e.hasKey("examples")){const d=h.getMember("examples");d&&(d.value=e.get("examples"))}e.content=h.content}}};constructor({options:e}){this.options=e}}class Jae{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,r,n,s,i)=>{const a=this.#e?Re(this.#e):null,o=Re(e);try{const c=this.parameterMacro(a,o);e.set("default",c)}catch(c){var u,l;const p=new Error(c,{cause:c});p.fullPath=Yn([...i,n]),(u=this.options.dereference.dereferenceOpts)===null||u===void 0||(u=u.errors)===null||u===void 0||(l=u.push)===null||l===void 0||l.call(u,p)}}};constructor({parameterMacro:e,options:r}){this.parameterMacro=e,this.options=r}}const uc=t=>{if(t.cause==null)return t;let{cause:e}=t;for(;e.cause!=null;)e=e.cause;return e};class Hae extends As{}const{wrapError:oS}=ex,uS=vr[Symbol.for("nodejs.util.promisify.custom")],kn=new Yw,Li=(t,e,r,n)=>{us(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class Xo extends Ji{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:r=!1,basePath:n=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=r,this.basePath=n}async ReferenceElement(e,r,n,s,i,a){try{if(this.indirections.includes(e))return!1;const[d,g]=this.toAncestorLineage([...i,n]),y=this.toBaseURI(Re(e.$ref)),v=zt(this.reference.uri)===y,E=!v;if(!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return!1;const b=await this.toReference(Re(e.$ref)),_=jr(y,Re(e.$ref));this.indirections.push(e);const w=Nn(_);let S=Qn(b.value.result,w);if(S.id=kn.identify(S),Zi(S)){const P=Re(e.meta.get("referenced-element")),F=`${P}-${Re(kn.identify(S))}`;this.refractCache.has(F)?S=this.refractCache.get(F):Yt(S)?(S=Di.refract(S),S.setMetaProperty("referenced-element",P),this.refractCache.set(F,S)):(S=this.namespace.getElementClass(P).refract(S),this.refractCache.set(F,S))}if(e===S)throw new nr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(d.includes(S)){if(b.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var o,u;const P=new pe.RefElement(S.id,{type:"reference",uri:b.uri,$ref:Re(e.$ref),baseURI:_,referencingElement:e}),R=((o=(u=this.options.dereference.strategyOpts["openapi-3-1"])===null||u===void 0?void 0:u.circularReplacer)!==null&&o!==void 0?o:this.options.dereference.circularReplacer)(P);return a.replaceWith(P,Li),n?!1:R}}const A=zt(b.refSet.rootRef.uri)!==b.uri,T=["error","replace"].includes(this.options.dereference.circular);if((E||A||ha(S)||T)&&!d.includesCycle(S)){var l;g.add(e);const P=new Xo({reference:b,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:d,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Yn([...i,n,e]),"$ref"]});S=await uS(S,P,{keyMap:es,nodeTypeGetter:Dn}),g.delete(e)}this.indirections.pop();const k=Ar(S);if(k.setMetaProperty("ref-fields",{$ref:Re(e.$ref),description:Re(e.description),summary:Re(e.summary)}),k.setMetaProperty("ref-origin",b.uri),k.setMetaProperty("ref-referencing-element-id",Ke(kn.identify(e))),Pt(S)&&(e.hasKey("description")&&"description"in S&&(k.remove("description"),k.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in S&&(k.remove("summary"),k.set("summary",e.get("summary")))),this.allowMetaPatches&&Pt(k)&&!k.hasKey("$$ref")){const P=jr(y,_);k.set("$$ref",P)}return a.replaceWith(k,Li),n?!1:k}catch(d){var c,p,h;const g=uc(d),y=oS(g,{baseDoc:this.reference.uri,$ref:Re(e.$ref),pointer:Nn(Re(e.$ref)),fullPath:(c=this.basePath)!==null&&c!==void 0?c:[...Yn([...i,n,e]),"$ref"]});(p=this.options.dereference.dereferenceOpts)===null||p===void 0||(p=p.errors)===null||p===void 0||(h=p.push)===null||h===void 0||h.call(p,y);return}}async PathItemElement(e,r,n,s,i,a){try{if(!ct(e.$ref))return;if(this.indirections.includes(e)||Ga(["cycle"],e.$ref))return!1;const[d,g]=this.toAncestorLineage([...i,n]),y=this.toBaseURI(Re(e.$ref)),v=zt(this.reference.uri)===y,E=!v;if(!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;const b=await this.toReference(Re(e.$ref)),_=jr(y,Re(e.$ref));this.indirections.push(e);const w=Nn(_);let S=Qn(b.value.result,w);if(S.id=kn.identify(S),Zi(S)){const k=`path-item-${Re(kn.identify(S))}`;this.refractCache.has(k)?S=this.refractCache.get(k):(S=Oi.refract(S),this.refractCache.set(k,S))}if(e===S)throw new nr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(d.includes(S)){if(b.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var o,u;const k=new pe.RefElement(S.id,{type:"path-item",uri:b.uri,$ref:Re(e.$ref),baseURI:_,referencingElement:e}),F=((o=(u=this.options.dereference.strategyOpts["openapi-3-1"])===null||u===void 0?void 0:u.circularReplacer)!==null&&o!==void 0?o:this.options.dereference.circularReplacer)(k);return a.replaceWith(k,Li),n?!1:F}}const A=zt(b.refSet.rootRef.uri)!==b.uri,T=["error","replace"].includes(this.options.dereference.circular);if((E||A||na(S)&&ct(S.$ref)||T)&&!d.includesCycle(S)){var l;g.add(e);const k=new Xo({reference:b,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:d,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Yn([...i,n,e]),"$ref"]});S=await uS(S,k,{keyMap:es,nodeTypeGetter:Dn}),g.delete(e)}if(this.indirections.pop(),na(S)){const k=new Oi([...S.content],Ke(S.meta),Ke(S.attributes));if(e.forEach((P,F,R)=>{k.remove(Re(F)),k.content.push(R)}),k.remove("$ref"),k.setMetaProperty("ref-fields",{$ref:Re(e.$ref)}),k.setMetaProperty("ref-origin",b.uri),k.setMetaProperty("ref-referencing-element-id",Ke(kn.identify(e))),this.allowMetaPatches&&typeof k.get("$$ref")>"u"){const P=jr(y,_);k.set("$$ref",P)}S=k}return a.replaceWith(S,Li),n?void 0:S}catch(d){var c,p,h;const g=uc(d),y=oS(g,{baseDoc:this.reference.uri,$ref:Re(e.$ref),pointer:Nn(Re(e.$ref)),fullPath:(c=this.basePath)!==null&&c!==void 0?c:[...Yn([...i,n,e]),"$ref"]});(p=this.options.dereference.dereferenceOpts)===null||p===void 0||(p=p.errors)===null||p===void 0||(h=p.push)===null||h===void 0||h.call(p,y);return}}async SchemaElement(e,r,n,s,i,a){try{if(!ct(e.$ref))return;if(this.indirections.includes(e))return!1;const[d,g]=this.toAncestorLineage([...i,n]);let y=await this.toReference(Es(this.reference.uri)),{uri:v}=y;const E=g6(v,e),b=zt(E),_=new ou({uri:b}),w=!this.options.resolve.resolvers.some(R=>R.canRead(_)),S=!w;let A=zt(this.reference.uri)===E,T=!A;this.indirections.push(e);let k;try{if(w||S){v=this.toBaseURI(E);const R=E,$=$r(y.value.result);if(k=Rp(R,$),k=$r(k),k.id=kn.identify(k),!this.options.resolve.internal&&A||!this.options.resolve.external&&T)return}else{if(v=this.toBaseURI(E),A=zt(this.reference.uri)===v,T=!A,!this.options.resolve.internal&&A||!this.options.resolve.external&&T)return;y=await this.toReference(Es(E));const R=Nn(E),$=$r(y.value.result);k=Qn($,R),k=$r(k),k.id=kn.identify(k)}}catch(R){if(S&&R instanceof Zw)if(Cp(Qa(E))){if(A=zt(this.reference.uri)===v,T=!A,!this.options.resolve.internal&&A||!this.options.resolve.external&&T)return;y=await this.toReference(Es(E));const $=Qa(E),M=$r(y.value.result);k=tA($,M),k=$r(k),k.id=kn.identify(k)}else{if(v=this.toBaseURI(Re(E)),A=zt(this.reference.uri)===v,T=!A,!this.options.resolve.internal&&A||!this.options.resolve.external&&T)return;y=await this.toReference(Es(E));const $=Nn(E),M=$r(y.value.result);k=Qn(M,$),k=$r(k),k.id=kn.identify(k)}else throw R}if(e===k)throw new nr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(d.includes(k)){if(y.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var o,u;const R=new pe.RefElement(k.id,{type:"json-schema",uri:y.uri,$ref:Re(e.$ref),baseURI:jr(v,E),referencingElement:e}),M=((o=(u=this.options.dereference.strategyOpts["openapi-3-1"])===null||u===void 0?void 0:u.circularReplacer)!==null&&o!==void 0?o:this.options.dereference.circularReplacer)(R);return a.replaceWith(M,Li),n?!1:M}}const P=zt(y.refSet.rootRef.uri)!==y.uri,F=["error","replace"].includes(this.options.dereference.circular);if((T||P||ts(k)&&ct(k.$ref)||F)&&!d.includesCycle(k)){var l;g.add(e);const R=new Xo({reference:y,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:d,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Yn([...i,n,e]),"$ref"]});k=await uS(k,R,{keyMap:es,nodeTypeGetter:Dn}),g.delete(e)}if(this.indirections.pop(),eA(k)){const R=Ke(k);return R.setMetaProperty("ref-fields",{$ref:Re(e.$ref)}),R.setMetaProperty("ref-origin",y.uri),R.setMetaProperty("ref-referencing-element-id",Ke(kn.identify(e))),a.replaceWith(R,Li),n?!1:R}if(ts(k)){const R=new Ci([...k.content],Ke(k.meta),Ke(k.attributes));if(e.forEach(($,M,K)=>{R.remove(Re(M)),R.content.push(K)}),R.remove("$ref"),R.setMetaProperty("ref-fields",{$ref:Re(e.$ref)}),R.setMetaProperty("ref-origin",y.uri),R.setMetaProperty("ref-referencing-element-id",Ke(kn.identify(e))),this.allowMetaPatches&&typeof R.get("$$ref")>"u"){const $=jr(v,E);R.set("$$ref",$)}k=R}return a.replaceWith(k,Li),n?void 0:k}catch(d){var c,p,h;const g=uc(d),y=new Hae(`Could not resolve reference: ${g.message}`,{baseDoc:this.reference.uri,$ref:Re(e.$ref),fullPath:(c=this.basePath)!==null&&c!==void 0?c:[...Yn([...i,n,e]),"$ref"],cause:g});(p=this.options.dereference.dereferenceOpts)===null||p===void 0||(p=p.errors)===null||p===void 0||(h=p.push)===null||h===void 0||h.call(p,y);return}}async LinkElement(){}async ExampleElement(e,r,n,s,i,a){try{return await super.ExampleElement(e,r,n,s,i,a)}catch(c){var o,u,l;const p=uc(c),h=oS(p,{baseDoc:this.reference.uri,externalValue:Re(e.externalValue),fullPath:(o=this.basePath)!==null&&o!==void 0?o:[...Yn([...i,n,e]),"externalValue"]});(u=this.options.dereference.dereferenceOpts)===null||u===void 0||(u=u.errors)===null||u===void 0||(l=u.push)===null||l===void 0||l.call(u,h);return}}}const Kae=zf[Symbol.for("nodejs.util.promisify.custom")];class Gae{constructor({parameterMacro:e,modelPropertyMacro:r,mode:n,options:s,...i}){const a=[];a.push(new Xo({...i,options:s})),typeof r=="function"&&a.push(new zae({modelPropertyMacro:r,options:s})),n!=="strict"&&a.push(new Wae({options:s})),typeof e=="function"&&a.push(new Jae({parameterMacro:e,options:s}));const o=Kae(a,{nodeTypeGetter:Dn});Object.assign(this,o)}}const Yae=vr[Symbol.for("nodejs.util.promisify.custom")];class Xae extends Uae{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:r=null,modelPropertyMacro:n=null,mode:s="non-strict",ancestors:i=[],...a}={}){super({...a}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=s,this.ancestors=[...i]}async dereference(e,r){var n;const s=si(Xx),i=(n=r.dereference.refSet)!==null&&n!==void 0?n:new Ka,a=new Ka;let o=i,u;i.has(e.uri)?u=i.find(p=>p.uri===e.uri):(u=new Hs({uri:e.uri,value:e.parseResult}),i.add(u)),r.dereference.immutable&&(i.refs.map(p=>new Hs({...p,value:Ke(p.value)})).forEach(p=>a.add(p)),u=a.find(p=>p.uri===e.uri),o=a);const l=new Gae({reference:u,namespace:s,options:r,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await Yae(o.rootRef.value,l,{keyMap:es,nodeTypeGetter:Dn});return r.dereference.immutable&&a.refs.filter(p=>p.uri.startsWith("immutable://")).map(p=>new Hs({...p,uri:p.uri.replace(/^immutable:\/\//,"")})).forEach(p=>i.add(p)),r.dereference.refSet===null&&i.clean(),a.clean(),c}}const Zae=t=>{const e=Re(t.meta.get("baseURI")),r=t.meta.get("referencingElement");return new pe.ObjectElement({$ref:e},Ke(r.meta),Ke(r.attributes))},Tp=async t=>{const{spec:e,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:a=[],allowMetaPatches:o=!1,useCircularStructures:u=!1,skipNormalization:l=!1,parameterMacro:c=null,modelPropertyMacro:p=null,mode:h="non-strict",strategies:d}=t;try{const{cache:g}=Tp,y=d.find(ee=>ee.match(e)),v=Lw(_1())?_1():rf,E=ix(t),b=jr(v,E);let _;g.has(e)?_=g.get(e):(_=Mi.refract(e),_.classes.push("result"),g.set(e,_));const w=new ss([_]),S=kL(a),A=S===""?"":`#${S}`,T=Qn(_,S),k=new Hs({uri:b,value:w}),P=new Ka({refs:[k]});S!==""&&(P.rootRef=void 0);const F=[new Set([T])],R=[],$=await DQ(T,{resolve:{baseURI:`${b}${A}`,resolvers:[new Nae({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[new kae]},parse:{mediaType:Xa.latest(),parsers:[new Fae({allowEmpty:!1,sourceMap:!1}),new qae({allowEmpty:!1,sourceMap:!1}),new Mae({allowEmpty:!1,sourceMap:!1}),new Dae({allowEmpty:!1,sourceMap:!1}),new Iae({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new Xae({allowMetaPatches:o,useCircularStructures:u,parameterMacro:c,modelPropertyMacro:p,mode:h,ancestors:F})],refSet:P,dereferenceOpts:{errors:R},immutable:!1,circular:u?"ignore":"replace",circularReplacer:u?O$.dereference.circularReplacer:Zae}}),M=SQ(T,$,_),K=l?M:y.normalize(M);return{spec:Re(K),errors:R}}catch(g){if(g instanceof Qi)return{spec:e,errors:[]};throw g}};Tp.cache=new WeakMap;const mD=t=>{if(!Pt(t))return t;const e=[qse({operationIdNormalizer:(n,s,i)=>Wf({operationId:n},s,i,{v2OperationIdCompatibilityMode:!1})}),Nse(),Mse(),Bse(),$se()];return Ps(t,e,{toolboxCreator:m6,visitorOptions:{keyMap:es,nodeTypeGetter:Dn}})},Qae=t=>e=>{const r=Mi.refract(e);r.classes.push("result");const n=t(r),s=Re(n);return Tp.cache.set(s,n),Re(n)},eoe={name:"openapi-3-1-apidom",match(t){return ux(t)},normalize(t){if(!fr(t)&&ns(t)&&!t.$$normalized){const e=Qae(mD)(t);return e.$$normalized=!0,e}return fr(t)?mD(t):t},async resolve(t){return Tp(t)}},toe=async t=>{const{spec:e,requestInterceptor:r,responseInterceptor:n}=t,s=ix(t),i=wL(t),a=e||await vL(i,{requestInterceptor:r,responseInterceptor:n})(s),o={...t,spec:a};return t.strategies.find(l=>l.match(a)).resolve(o)},y6=t=>async e=>{const r={...t,...e};return toe(r)},roe=y6({strategies:[TL,RL,AL]});function noe(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+=`; OpenAPI Server URL templating ABNF syntax
106
- `,e+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2
107
- `,e+=`server-variable = "{" server-variable-name "}"
108
- `,e+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
109
- `,e+=`
110
- `,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1
111
- `,e+=`; https://www.rfc-editor.org/errata/eid6937
112
- `,e+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B
113
- `,e+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate
114
- `,e+=` / pct-encoded)
115
- `,e+=` ; any Unicode character except: CTL, SP,
116
- `,e+=` ; DQUOTE, "%" (aside from pct-encoded),
117
- `,e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+=`
118
- `,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5
119
- `,e+=`DIGIT = %x30-39 ; 0-9
120
- `,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive
121
- `,e+=`
122
- `,e+=`pct-encoded = "%" HEXDIG HEXDIG
123
- `,e+=`
124
- `,e+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
125
- `,e+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
126
- `,e+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
127
- `,e+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
128
- `,e+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
129
- `,e+=` / %xD0000-DFFFD / %xE1000-EFFFD
130
- `,e+=`
131
- `,e+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD
132
- `,e}}const soe=(t,e,r,n,s)=>{if(t===vt.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["server-url-template",_n.charsToString(e,r,n)])}return vt.SEM_OK},ioe=(t,e,r,n,s)=>{if(t===vt.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["server-variable",_n.charsToString(e,r,n)])}return vt.SEM_OK},aoe=(t,e,r,n,s)=>{if(t===vt.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["server-variable-name",_n.charsToString(e,r,n)])}return vt.SEM_OK},ooe=(t,e,r,n,s)=>{if(t===vt.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["literals",_n.charsToString(e,r,n)])}return vt.SEM_OK},uoe=new noe,v6=t=>{const e=new Un;return e.ast=new lx,e.ast.callbacks["server-url-template"]=soe,e.ast.callbacks["server-variable"]=ioe,e.ast.callbacks["server-variable-name"]=aoe,e.ast.callbacks.literals=ooe,{result:e.parse(uoe,"server-url-template",t),ast:e.ast}},loe=(t,{strict:e=!1}={})=>{try{const r=v6(t);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const s=n.some(([i])=>i==="server-variable");if(!e&&!s)try{return new URL(t,"https://vladimirgorej.com"),!0}catch{return!1}return e?s:!0}catch{return!1}},coe=t=>{try{return typeof t=="string"&&decodeURIComponent(t)!==t}catch{return!1}},foe=t=>coe(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),poe=["literals","server-variable-name"],doe=(t,e,r={})=>{const s={...{encoder:foe},...r},i=v6(t);if(!i.result.success)return t;const a=[];return i.ast.translate(a),a.filter(([u])=>poe.includes(u)).map(([u,l])=>u==="server-variable-name"?Object.hasOwn(e,l)?s.encoder(e[l],l):`{${l}}`:l).join("")};function b6(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+=`; OpenAPI Path Templating ABNF syntax
133
- `,e+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
134
- `,e+=`path-template = slash *( path-segment slash ) [ path-segment ]
135
- `,e+=`path-segment = 1*( path-literal / template-expression )
136
- `,e+=`slash = "/"
137
- `,e+=`path-literal = 1*pchar
138
- `,e+=`template-expression = "{" template-expression-param-name "}"
139
- `,e+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
140
- `,e+=`
141
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
142
- `,e+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
143
- `,e+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
144
- `,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3
145
- `,e+=`pct-encoded = "%" HEXDIG HEXDIG
146
- `,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1
147
- `,e+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
148
- `,e+=` / "*" / "+" / "," / ";" / "="
149
- `,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2
150
- `,e+=`
151
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
152
- `,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
153
- `,e+=`DIGIT = %x30-39 ; 0-9
154
- `,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
155
- `,e}}const hoe=(t,e,r,n,s)=>(t===vt.SEM_PRE&&s.push(["slash",_n.charsToString(e,r,n)]),vt.SEM_OK),moe=(t,e,r,n,s)=>{if(t===vt.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["path-template",_n.charsToString(e,r,n)])}return vt.SEM_OK},goe=(t,e,r,n,s)=>(t===vt.SEM_PRE&&s.push(["path-literal",_n.charsToString(e,r,n)]),vt.SEM_OK),yoe=(t,e,r,n,s)=>(t===vt.SEM_PRE&&s.push(["template-expression",_n.charsToString(e,r,n)]),vt.SEM_OK),voe=(t,e,r,n,s)=>(t===vt.SEM_PRE&&s.push(["template-expression-param-name",_n.charsToString(e,r,n)]),vt.SEM_OK),boe=new b6,Eoe=t=>{const e=new Un;return e.ast=new lx,e.ast.callbacks["path-template"]=moe,e.ast.callbacks.slash=hoe,e.ast.callbacks["path-literal"]=goe,e.ast.callbacks["template-expression"]=yoe,e.ast.callbacks["template-expression-param-name"]=voe,{result:e.parse(boe,"path-template",t),ast:e.ast}},Soe=t=>{try{return typeof t=="string"&&decodeURIComponent(t)!==t}catch{return!1}},_oe=t=>Soe(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),woe=["slash","path-literal","template-expression-param-name"],k1=(t,e,r={})=>{const s={...{encoder:_oe},...r},i=Eoe(t);if(!i.result.success)return t;const a=[];return i.ast.translate(a),a.filter(([u])=>woe.includes(u)).map(([u,l])=>u==="template-expression-param-name"?Object.prototype.hasOwnProperty.call(e,l)?s.encoder(e[l],l):`{${l}}`:l).join("")};new b6;new Un;const xoe={body:Aoe,header:Coe,query:Toe,path:Roe,formData:Ooe};function Aoe({req:t,value:e}){e!==void 0&&(t.body=e)}function Ooe({req:t,value:e,parameter:r}){if(e===!1&&r.type==="boolean"&&(e="false"),e===0&&["number","integer"].indexOf(r.type)>-1&&(e="0"),e)t.form=t.form||{},t.form[r.name]={collectionFormat:r.collectionFormat,value:e};else if(r.allowEmptyValue&&e!==void 0){t.form=t.form||{};const n=r.name;t.form[n]=t.form[n]||{},t.form[n].allowEmptyValue=!0}}function Coe({req:t,parameter:e,value:r}){t.headers=t.headers||{},typeof r<"u"&&(t.headers[e.name]=r)}function Roe({req:t,value:e,parameter:r,baseURL:n}){if(e!==void 0){const s=t.url.replace(n,""),i=k1(s,{[r.name]:e});t.url=n+i}}function Toe({req:t,value:e,parameter:r}){if(t.query=t.query||{},e===!1&&r.type==="boolean"&&(e="false"),e===0&&["number","integer"].indexOf(r.type)>-1&&(e="0"),e)t.query[r.name]={collectionFormat:r.collectionFormat,value:e};else if(r.allowEmptyValue&&e!==void 0){const n=r.name;t.query[n]=t.query[n]||{},t.query[n].allowEmptyValue=!0}}function Ip(t,e){return e.includes("application/json")?typeof t=="string"?t:(Array.isArray(t)&&(t=t.map(r=>{try{return JSON.parse(r)}catch{return r}})),JSON.stringify(t)):String(t)}function Il(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let e="";return e+=`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
156
- `,e+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )
157
- `,e+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid
158
- `,e+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS
159
- `,e+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored
160
- `,e+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="
161
- `,e+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet
162
- `,e+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE
163
- `,e+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE
164
- `,e+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E
165
- `,e+=` ; Allow all printable characters except CTLs, semicolon and SP
166
- `,e+=`
167
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
168
- `,e+=`cookie-string = cookie-pair *( ";" SP cookie-pair )
169
- `,e+=`
170
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
171
- `,e+=`; https://www.rfc-editor.org/errata/eid5518
172
- `,e+=`cookie-pair = cookie-name "=" cookie-value
173
- `,e+=`cookie-name = token
174
- `,e+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet
175
- `,e+=` ; https://www.rfc-editor.org/errata/eid8242
176
- `,e+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
177
- `,e+=` ; US-ASCII characters excluding CTLs,
178
- `,e+=` ; whitespace, DQUOTE, comma, semicolon,
179
- `,e+=` ; and backslash
180
- `,e+=`
181
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2
182
- `,e+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace
183
- `,e+=`
184
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2
185
- `,e+=`token = 1*(tchar)
186
- `,e+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
187
- `,e+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',e+=` / DIGIT / ALPHA
188
- `,e+=` ; any VCHAR, except delimiters
189
- `,e+=`
190
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
191
- `,e+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)
192
- `,e+=`CTL = %x00-1F / %x7F ; any US-ASCII control character
193
- `,e+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT
194
- `,e+=`SP = %x20 ; US-ASCII SP, space (32)
195
- `,e+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9)
196
- `,e+=`
197
- `,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
198
- `,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
199
- `,e+=`DIGIT = %x30-39 ; 0-9
200
- `,e+=`DQUOTE = %x22 ; " (Double Quote)
201
- `,e+=`WSP = SP / HTAB ; white space
202
- `,e+=`HTAB = %x09 ; horizontal tab
203
- `,e+=`CRLF = CR LF ; Internet standard newline
204
- `,e+=`CR = %x0D ; carriage return
205
- `,e+=`LF = %x0A ; linefeed
206
- `,e}}new Il;const Ioe=t=>{if(typeof t!="string"||[...t].length!==1)throw new TypeError("Input must be a single character string.");const e=t.codePointAt(0);return e<=127?`%${e.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(t)},koe=t=>t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),kp=t=>t.length>=2&&t.startsWith('"')&&t.endsWith('"'),E6=t=>kp(t)?t.slice(1,-1):t,S6=t=>`"${t}"`,_6=t=>t,Poe=new Un,joe=new Il,rA=(t,{strict:e=!0,quoted:r=null}={})=>{try{const n=e?"cookie-value":"lenient-cookie-value",s=Poe.parse(joe,n,t);return typeof r=="boolean"?s.success&&r===kp(t):s.success}catch{return!1}},w6=t=>{const r=new TextEncoder().encode(t).reduce((n,s)=>n+String.fromCharCode(s),"");return btoa(r)},Noe=(t,e=w6)=>{const r=String(t);if(rA(r))return r;const n=kp(r),s=n?E6(r):r,i=e(s);return n?S6(i):i},Moe=t=>koe(w6(t)),Doe=t=>Noe(t,Moe),Foe=new Un,qoe=new Il,x6=(t,{strict:e=!0}={})=>{try{const r=e?"cookie-name":"lenient-cookie-name";return Foe.parse(qoe,r,t).success}catch{return!1}},Boe=t=>{if(!x6(t))throw new TypeError(`Invalid cookie name: ${t}`)},A6=t=>{if(!rA(t))throw new TypeError(`Invalid cookie value: ${t}`)},gD={encoders:{name:_6,value:Doe},validators:{name:Boe,value:A6}},$oe=(t,e,r={})=>{const n={...r,encoders:{...gD.encoders,...r.encoders},validators:{...gD.validators,...r.validators}},s=n.encoders.name(t),i=n.encoders.value(e);return n.validators.name(s),n.validators.value(i),`${s}=${i}`},Loe=(t,e={})=>(Array.isArray(t)?t:typeof t=="object"&&t!==null?Object.entries(t):[]).map(([n,s])=>$oe(n,s,e)).join("; "),Uoe=new Un,Voe=new Il,zoe=t=>{const e=String(t);if(rA(e))return e;const r=kp(e),n=r?E6(e):e;let s="";for(const i of n)s+=Uoe.parse(Voe,"cookie-octet",i).success?i:Ioe(i);return r?S6(s):s};new Un;new Il;const Woe=t=>{if(!x6(t,{strict:!1}))throw new TypeError(`Invalid cookie name: ${t}`)},Joe="%3D",Hoe="%26",Koe=t=>zoe(t).replace(/[=&]/gu,e=>e==="="?Joe:Hoe),P1=(t,e={})=>Loe(t,Nf({encoders:{name:_6,value:Koe},validators:{name:Woe,value:A6}},e));function Goe({req:t,value:e,parameter:r,baseURL:n}){const{name:s,style:i,explode:a,content:o}=r;if(e===void 0)return;const u=t.url.replace(n,"");let l;if(o){const c=Object.keys(o)[0];l=k1(u,{[s]:e},{encoder:p=>EL(Ip(p,c))})}else l=k1(u,{[s]:e},{encoder:c=>nx({key:r.name,value:c,style:i||"simple",explode:a??!1,escape:"reserved"})});t.url=n+l}function Yoe({req:t,value:e,parameter:r}){if(t.query=t.query||{},e!==void 0&&r.content){const n=Object.keys(r.content)[0],s=Ip(e,n);if(s)t.query[r.name]=s;else if(r.allowEmptyValue){const i=r.name;t.query[i]=t.query[i]||{},t.query[i].allowEmptyValue=!0}return}if(e===!1&&(e="false"),e===0&&(e="0"),e){const{style:n,explode:s,allowReserved:i}=r;t.query[r.name]={value:e,serializationOption:{style:n,explode:s,allowReserved:i}}}else if(r.allowEmptyValue&&e!==void 0){const n=r.name;t.query[n]=t.query[n]||{},t.query[n].allowEmptyValue=!0}}const Xoe=["accept","authorization","content-type"];function Zoe({req:t,parameter:e,value:r}){if(t.headers=t.headers||{},!(Xoe.indexOf(e.name.toLowerCase())>-1)){if(r!==void 0&&e.content){const n=Object.keys(e.content)[0];t.headers[e.name]=Ip(r,n);return}r!==void 0&&!(Array.isArray(r)&&r.length===0)&&(t.headers[e.name]=nx({key:e.name,value:r,style:e.style||"simple",explode:typeof e.explode>"u"?!1:e.explode,escape:!1}))}}function Qoe({req:t,parameter:e,value:r}){const{name:n}=e;if(t.headers=t.headers||{},r!==void 0&&e.content){const i=Object.keys(e.content)[0],a=Ip(r,i);t.headers.Cookie=P1({[n]:a});return}if(r!==void 0&&!(Array.isArray(r)&&r.length===0)){var s;const i=nx({key:e.name,value:r,escape:!1,style:e.style||"form",explode:(s=e.explode)!==null&&s!==void 0?s:!1}),a=Array.isArray(r)&&e.explode?`${n}=${i}`:i;t.headers.Cookie=P1({[n]:a})}}const eue=Object.freeze(Object.defineProperty({__proto__:null,cookie:Qoe,header:Zoe,path:Goe,query:Yoe},Symbol.toStringTag,{value:"Module"})),tue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:O6}=tue;function rue(t,e){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:a}=t;let{requestContentType:o}=t;e=nue({request:e,securities:s,operation:r,spec:i});const u=r.requestBody||{},l=Object.keys(u.content||{}),c=o&&l.indexOf(o)>-1;if(n||a){if(o&&c)e.headers["Content-Type"]=o;else if(!o){const y=l[0];y&&(e.headers["Content-Type"]=y,o=y)}}else o&&c&&(e.headers["Content-Type"]=o);if(!t.responseContentType&&r.responses){const y=Object.entries(r.responses).filter(([v,E])=>{const b=parseInt(v,10);return b>=200&&b<300&&ns(E.content)}).reduce((v,[,E])=>v.concat(Object.keys(E.content)),[]);y.length>0&&(e.headers.accept=y.join(", "))}if(n)if(o){if(l.indexOf(o)>-1)if(o==="application/x-www-form-urlencoded"||o==="multipart/form-data")if(typeof n=="object"){var p,h;const y=(p=(h=u.content[o])===null||h===void 0?void 0:h.encoding)!==null&&p!==void 0?p:{};e.form={},Object.keys(n).forEach(v=>{let E;try{E=JSON.parse(n[v])}catch{E=n[v]}e.form[v]={value:E,encoding:y[v]||{}}})}else if(typeof n=="string"){var d,g;const y=(d=(g=u.content[o])===null||g===void 0?void 0:g.encoding)!==null&&d!==void 0?d:{};try{e.form={};const v=JSON.parse(n);Object.entries(v).forEach(([E,b])=>{e.form[E]={value:b,encoding:y[E]||{}}})}catch{e.form=n}}else e.form=n;else e.body=n}else e.body=n;return e}function nue({request:t,securities:e={},operation:r={},spec:n}){var s;const i={...t},{authorized:a={}}=e,o=r.security||n.security||[],u=a&&!!Object.keys(a).length,l=(n==null||(s=n.components)===null||s===void 0?void 0:s.securitySchemes)||{};return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(e).length||!u||!o||Array.isArray(r.security)&&!r.security.length?t:(o.forEach(c=>{Object.keys(c).forEach(p=>{const h=a[p],d=l[p];if(!h)return;const g=h.value||h,{type:y}=d;if(h){if(y==="apiKey")d.in==="query"&&(i.query[d.name]=g),d.in==="header"&&(i.headers[d.name]=g),d.in==="cookie"&&(i.cookies[d.name]=g);else if(y==="http"){if(/^basic$/i.test(d.scheme)){const v=g.username||"",E=g.password||"",b=O6(`${v}:${E}`);i.headers.Authorization=`Basic ${b}`}/^bearer$/i.test(d.scheme)&&(i.headers.Authorization=`Bearer ${g}`)}else if(y==="oauth2"||y==="openIdConnect"){const v=h.token||{},E=d["x-tokenName"]||"access_token",b=v[E];let _=v.token_type;(!_||_.toLowerCase()==="bearer")&&(_="Bearer"),i.headers.Authorization=`${_} ${b}`}}})}),i)}function sue(t,e){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:a,attachContentTypeForEmptyPayload:o}=t;if(e=iue({request:e,securities:s,operation:n,spec:r}),e.body||e.form||o)i?e.headers["Content-Type"]=i:Array.isArray(n.consumes)?[e.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[e.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter(u=>u.type==="file").length?e.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter(u=>u.in==="formData").length&&(e.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const u=n.parameters&&n.parameters.filter(c=>c.in==="body").length>0,l=n.parameters&&n.parameters.filter(c=>c.in==="formData").length>0;(u||l)&&(e.headers["Content-Type"]=i)}return!a&&Array.isArray(n.produces)&&n.produces.length>0&&(e.headers.accept=n.produces.join(", ")),e}function iue({request:t,securities:e={},operation:r={},spec:n}){const s={...t},{authorized:i={},specSecurity:a=[]}=e,o=r.security||a,u=i&&!!Object.keys(i).length,l=n.securityDefinitions;return s.headers=s.headers||{},s.query=s.query||{},!Object.keys(e).length||!u||!o||Array.isArray(r.security)&&!r.security.length?t:(o.forEach(c=>{Object.keys(c).forEach(p=>{const h=i[p];if(!h)return;const{token:d}=h,g=h.value||h,y=l[p],{type:v}=y,E=y["x-tokenName"]||"access_token",b=d&&d[E];let _=d&&d.token_type;if(h)if(v==="apiKey"){const w=y.in==="query"?"query":"headers";s[w]=s[w]||{},s[w][y.name]=g}else if(v==="basic")if(g.header)s.headers.authorization=g.header;else{const w=g.username||"",S=g.password||"";g.base64=O6(`${w}:${S}`),s.headers.authorization=`Basic ${g.base64}`}else v==="oauth2"&&b&&(_=!_||_.toLowerCase()==="bearer"?"Bearer":_,s.headers.authorization=`${_} ${b}`)})}),s)}function aue(t,e,r){if(!t||typeof t!="object"||!t.paths||typeof t.paths!="object")return null;const{paths:n}=t;for(const s in n)for(const i in n[s]){if(i.toUpperCase()==="PARAMETERS")continue;const a=n[s][i];if(!a||typeof a!="object")continue;const o={spec:t,pathName:s,method:i.toUpperCase(),operation:a};if(e(o))return o}}function oue(t,e){return aue(t,e)||null}function C6(t,e){return`${e.toLowerCase()}-${t}`}function uue(t,e){return!t||!t.paths?null:oue(t,({pathName:r,method:n,operation:s})=>{if(!s||typeof s!="object")return!1;const i=s.operationId,a=Wf(s,r,n),o=C6(r,n);return[a,o,i].some(u=>u&&u===e)})}const yD=t=>Array.isArray(t)?t:[],Zo=(t,{recurse:e=!0,depth:r=1}={})=>{if(ns(t)){if(t.type==="object"||t.type==="array"||Array.isArray(t.type)&&(t.type.includes("object")||t.type.includes("array")))return t;if(!(r>cL)&&e){const n=Array.isArray(t.oneOf)?t.oneOf.find(i=>Zo(i,{recurse:e,depth:r+1})):void 0;if(n)return n;const s=Array.isArray(t.anyOf)?t.anyOf.find(i=>Zo(i,{recurse:e,depth:r+1})):void 0;if(s)return s}}},lS=({value:t,silentFail:e=!1})=>{try{const r=JSON.parse(t);if(ns(r)||Array.isArray(r))return r;if(!e)throw new Error("Expected JSON serialized object or array")}catch{if(!e)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return t},Ic=t=>{try{return new URL(t)}catch{const e=new URL(t,rf),r=String(t).startsWith("/")?e.pathname:e.pathname.substring(1);return{hash:e.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:e.search,searchParams:e.searchParams}}};class lue extends As{}const cue=(t,e)=>e.filter(r=>r.name===t),fue=t=>{const e={};t.forEach(n=>{e[n.in]||(e[n.in]={}),e[n.in][n.name]=n});const r=[];return Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(s=>{r.push(e[n][s])})}),r},pue={buildRequest:R6};function due({http:t,fetch:e,spec:r,operationId:n,pathName:s,method:i,parameters:a,securities:o,...u}){const l=t||e||uu;s&&i&&!n&&(n=C6(s,i));const c=pue.buildRequest({spec:r,operationId:n,parameters:a,securities:o,http:l,...u});return c.body&&(ns(c.body)||Array.isArray(c.body))&&(c.body=JSON.stringify(c.body)),l(c)}function R6(t){const{spec:e,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:a,contextUrl:o,userFetch:u,server:l,serverVariables:c,http:p,signal:h,serverVariableEncoder:d}=t;let{parameters:g,parameterBuilders:y,baseURL:v}=t;const E=CL(e);y||(E?y=eue:y=xoe);let _={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(_.signal=h),i&&(_.requestInterceptor=i),a&&(_.responseInterceptor=a),u&&(_.userFetch=u);const w=uue(e,r);if(!w)throw new lue(`Operation ${r} not found`);const{operation:S={},method:A,pathName:T}=w;if(v=v??hue({spec:e,scheme:s,contextUrl:o,server:l,serverVariables:c,pathName:T,method:A,serverVariableEncoder:d}),_.url+=v,!r)return delete _.cookies,_;_.url+=T,_.method=`${A}`.toUpperCase(),g=g||{};const k=e.paths[T]||{};n&&(_.headers.accept=n);const P=fue([].concat(yD(S.parameters)).concat(yD(k.parameters)));P.forEach(R=>{const $=y[R.in];let M;if(R.in==="body"&&R.schema&&R.schema.properties&&(M=g),M=R&&R.name&&g[R.name],typeof M>"u"?M=R&&R.name&&g[`${R.in}.${R.name}`]:cue(R.name,P).length>1&&console.warn(`Parameter '${R.name}' is ambiguous because the defined spec has more than one parameter with the name: '${R.name}' and the passed-in parameter values did not define an 'in' value.`),M!==null){if(typeof R.default<"u"&&typeof M>"u"&&(M=R.default),typeof M>"u"&&R.required&&!R.allowEmptyValue)throw new Error(`Required parameter ${R.name} is not provided`);E&&typeof M=="string"&&(Go("type",R.schema)&&typeof R.schema.type=="string"&&Zo(R.schema,{recurse:!1})?M=lS({value:M,silentFail:!1}):Go("type",R.schema)&&Array.isArray(R.schema.type)&&Zo(R.schema,{recurse:!1})?M=lS({value:M,silentFail:!0}):!Go("type",R.schema)&&Zo(R.schema,{recurse:!0})&&(M=lS({value:M,silentFail:!0}))),$&&$({req:_,parameter:R,value:M,operation:S,spec:e,baseURL:v})}});const F={...t,operation:S};if(E?_=rue(F,_):_=sue(F,_),_.cookies&&Object.keys(_.cookies).length>0){const R=P1(_.cookies);Ff(_.headers.Cookie)?_.headers.Cookie+=`; ${R}`:_.headers.Cookie=R}return _.cookies&&delete _.cookies,sx(_)}const j1=t=>t?t.replace(/\W/g,""):null;function hue(t){return CL(t.spec)?mue(t):yue(t)}const cS=t=>Array.isArray(t)&&t.length>0;function mue({spec:t,pathName:e,method:r,server:n,contextUrl:s,serverVariables:i={},serverVariableEncoder:a}){var o,u;let l=[],c="",p;const h=t==null||(o=t.paths)===null||o===void 0||(o=o[e])===null||o===void 0||(o=o[(r||"").toLowerCase()])===null||o===void 0?void 0:o.servers,d=t==null||(u=t.paths)===null||u===void 0||(u=u[e])===null||u===void 0?void 0:u.servers,g=t?.servers;if(l=cS(h)?h:cS(d)?d:cS(g)?g:[lee],n&&(p=l.find(y=>y.url===n),p&&(c=n)),c||([p]=l,c=p.url),loe(c,{strict:!0})){const y=Object.entries({...p.variables}).reduce((v,[E,b])=>(v[E]=b.default,v),{});c=doe(c,{...y,...i},{encoder:typeof a=="function"?a:a$})}return gue(c,s)}function gue(t="",e=""){const r=Ic(t&&e?jr(e,t):t),n=Ic(e),s=j1(r.protocol)||j1(n.protocol),i=r.host||n.host,a=r.pathname;let o;return s&&i?o=`${s}://${i+a}`:o=a,o[o.length-1]==="/"?o.slice(0,-1):o}function yue({spec:t,scheme:e,contextUrl:r=""}){const n=Ic(r),s=Array.isArray(t.schemes)?t.schemes[0]:null,i=e||s||j1(n.protocol)||"http",a=t.host||n.host||"",o=t.basePath||"";let u;return a?u=`${i}://${a+o}`:u=o,u[u.length-1]==="/"?u.slice(0,-1):u}const vue=async(t,e,r={})=>{const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:l,strategies:c}=r,p={spec:t,pathDiscriminator:e,baseDoc:s,requestInterceptor:i,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:l,strategies:c},d=c.find(y=>y.match(t)).normalize(t),g=await roe({spec:d,...p,allowMetaPatches:!0,skipNormalization:!ux(t)});return!n&&Array.isArray(e)&&e.length&&(g.spec=e.reduce((y,v)=>y?.[v],g.spec)||null),g},bue=t=>async(e,r,n={})=>{const s={...t,...n};return vue(e,r,s)};var Eue=Ou();const Sue=ot(Eue);function _ue(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function wue(t,e){if(t==null)return{};var r,n,s=_ue(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(s[r]=t[r])}return s}function N1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function xue(t){if(Array.isArray(t))return N1(t)}function Aue(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Oue(t,e){if(t){if(typeof t=="string")return N1(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N1(t,e):void 0}}function Cue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
207
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M1(t){return xue(t)||Aue(t)||Oue(t)||Cue()}function cu(t){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cu(t)}function Rue(t,e){if(cu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tue(t){var e=Rue(t,"string");return cu(e)=="symbol"?e:e+""}function T6(t,e,r){return(e=Tue(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D1(){return D1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},D1.apply(null,arguments)}function vD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function Ba(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vD(Object(r),!0).forEach(function(n){T6(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Iue(t){var e=t.length;if(e===0||e===1)return t;if(e===2)return[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])];if(e===3)return[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])];if(e>=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var fS={};function kue(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return fS[e]||(fS[e]=Iue(t)),fS[e]}function Pue(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t.filter(function(i){return i!=="token"}),s=kue(n);return s.reduce(function(i,a){return Ba(Ba({},i),r[a])},e)}function bD(t){return t.join(" ")}function jue(t,e){var r=0;return function(n){return r+=1,n.map(function(s,i){return I6({node:s,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(r,"-").concat(i)})})}}function I6(t){var e=t.node,r=t.stylesheet,n=t.style,s=n===void 0?{}:n,i=t.useInlineStyles,a=t.key,o=e.properties,u=e.type,l=e.tagName,c=e.value;if(u==="text")return c;if(l){var p=jue(r,i),h;if(!i)h=Ba(Ba({},o),{},{className:bD(o.className)});else{var d=Object.keys(r).reduce(function(E,b){return b.split(".").forEach(function(_){E.includes(_)||E.push(_)}),E},[]),g=o.className&&o.className.includes("token")?["token"]:[],y=o.className&&g.concat(o.className.filter(function(E){return!d.includes(E)}));h=Ba(Ba({},o),{},{className:bD(y)||void 0,style:Pue(o.className,Object.assign({},o.style,s),r)})}var v=p(e.children);return Zn.createElement(l,D1({key:a},h),v)}}const Nue=(function(t,e){var r=t.listLanguages();return r.indexOf(e)!==-1});var Mue=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ED(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function Si(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ED(Object(r),!0).forEach(function(n){T6(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ED(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Due=/\n/g;function Fue(t){return t.match(Due)}function que(t){var e=t.lines,r=t.startingLineNumber,n=t.style;return e.map(function(s,i){var a=i+r;return Zn.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(a):n},"".concat(a,`
208
- `))})}function Bue(t){var e=t.codeString,r=t.codeStyle,n=t.containerStyle,s=n===void 0?{float:"left",paddingRight:"10px"}:n,i=t.numberStyle,a=i===void 0?{}:i,o=t.startingLineNumber;return Zn.createElement("code",{style:Object.assign({},r,s)},que({lines:e.replace(/\n$/,"").split(`
209
- `),style:a,startingLineNumber:o}))}function $ue(t){return"".concat(t.toString().length,".25em")}function k6(t,e){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(t),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:e},children:[{type:"text",value:t}]}}function P6(t,e,r){var n={display:"inline-block",minWidth:$ue(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},s=typeof t=="function"?t(e):t,i=Si(Si({},n),s);return i}function kc(t){var e=t.children,r=t.lineNumber,n=t.lineNumberStyle,s=t.largestLineNumber,i=t.showInlineLineNumbers,a=t.lineProps,o=a===void 0?{}:a,u=t.className,l=u===void 0?[]:u,c=t.showLineNumbers,p=t.wrapLongLines,h=t.wrapLines,d=h===void 0?!1:h,g=d?Si({},typeof o=="function"?o(r):o):{};if(g.className=g.className?[].concat(M1(g.className.trim().split(/\s+/)),M1(l)):l,r&&i){var y=P6(n,r,s);e.unshift(k6(r,y))}return p&c&&(g.style=Si({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:e}}function j6(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<t.length;n++){var s=t[n];if(s.type==="text")r.push(kc({children:[s],className:M1(new Set(e))}));else if(s.children){var i=e.concat(s.properties.className);j6(s.children,i).forEach(function(a){return r.push(a)})}}return r}function Lue(t,e,r,n,s,i,a,o,u){var l,c=j6(t.value),p=[],h=-1,d=0;function g(S,A){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return kc({children:S,lineNumber:A,lineNumberStyle:o,largestLineNumber:a,showInlineLineNumbers:s,lineProps:r,className:T,showLineNumbers:n,wrapLongLines:u,wrapLines:e})}function y(S,A){if(n&&A&&s){var T=P6(o,A,a);S.unshift(k6(A,T))}return S}function v(S,A){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||T.length>0?g(S,A,T):y(S,A)}for(var E=function(){var A=c[d],T=A.children[0].value,k=Fue(T);if(k){var P=T.split(`
210
- `);P.forEach(function(F,R){var $=n&&p.length+i,M={type:"text",value:"".concat(F,`
211
- `)};if(R===0){var K=c.slice(h+1,d).concat(kc({children:[M],className:A.properties.className})),ee=v(K,$);p.push(ee)}else if(R===P.length-1){var G=c[d+1]&&c[d+1].children&&c[d+1].children[0],Z={type:"text",value:"".concat(F)};if(G){var X=kc({children:[Z],className:A.properties.className});c.splice(d+1,0,X)}else{var te=[Z],le=v(te,$,A.properties.className);p.push(le)}}else{var se=[M],ue=v(se,$,A.properties.className);p.push(ue)}}),h=d}d++};d<c.length;)E();if(h!==c.length-1){var b=c.slice(h+1,c.length);if(b&&b.length){var _=n&&p.length+i,w=v(b,_);p.push(w)}}return e?p:(l=[]).concat.apply(l,p)}function Uue(t){var e=t.rows,r=t.stylesheet,n=t.useInlineStyles;return e.map(function(s,i){return I6({node:s,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(i)})})}function N6(t){return t&&typeof t.highlightAuto<"u"}function Vue(t){var e=t.astGenerator,r=t.language,n=t.code,s=t.defaultCodeValue;if(N6(e)){var i=Nue(e,r);return r==="text"?{value:s,language:"text"}:i?e.highlight(r,n):e.highlightAuto(n)}try{return r&&r!=="text"?{value:e.highlight(n,r)}:{value:s}}catch{return{value:s}}}function zue(t,e){return function(n){var s,i,a=n.language,o=n.children,u=n.style,l=u===void 0?e:u,c=n.customStyle,p=c===void 0?{}:c,h=n.codeTagProps,d=h===void 0?{className:a?"language-".concat(a):void 0,style:Si(Si({},l['code[class*="language-"]']),l['code[class*="language-'.concat(a,'"]')])}:h,g=n.useInlineStyles,y=g===void 0?!0:g,v=n.showLineNumbers,E=v===void 0?!1:v,b=n.showInlineLineNumbers,_=b===void 0?!0:b,w=n.startingLineNumber,S=w===void 0?1:w,A=n.lineNumberContainerStyle,T=n.lineNumberStyle,k=T===void 0?{}:T,P=n.wrapLines,F=n.wrapLongLines,R=F===void 0?!1:F,$=n.lineProps,M=$===void 0?{}:$,K=n.renderer,ee=n.PreTag,G=ee===void 0?"pre":ee,Z=n.CodeTag,X=Z===void 0?"code":Z,te=n.code,le=te===void 0?(Array.isArray(o)?o[0]:o)||"":te,se=n.astGenerator,ue=wue(n,Mue);se=se||t;var ve=E?Zn.createElement(Bue,{containerStyle:A,codeStyle:d.style||{},numberStyle:k,startingLineNumber:S,codeString:le}):null,he=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},re=N6(se)?"hljs":"prismjs",W=y?Object.assign({},ue,{style:Object.assign({},he,p)}):Object.assign({},ue,{className:ue.className?"".concat(re," ").concat(ue.className):re,style:Object.assign({},p)});if(R?d.style=Si({whiteSpace:"pre-wrap"},d.style):d.style=Si({whiteSpace:"pre"},d.style),!se)return Zn.createElement(G,W,ve,Zn.createElement(X,d,le));(P===void 0&&K||R)&&(P=!0),K=K||Uue;var V=[{type:"text",value:le}],ge=Vue({astGenerator:se,language:a,code:le,defaultCodeValue:V});ge.language===null&&(ge.value=V);var me=(s=(i=le.match(/\n/g))===null||i===void 0?void 0:i.length)!==null&&s!==void 0?s:0,Me=S+me,$e=Lue(ge,P,M,E,_,S,Me,k,R);return Zn.createElement(G,W,Zn.createElement(X,d,!_&&ve,K({rows:$e,stylesheet:l,useInlineStyles:y})))}}var Ui={},pS,SD;function Wue(){if(SD)return pS;SD=1;function t(ae){return ae instanceof Map?ae.clear=ae.delete=ae.set=function(){throw new Error("map is read-only")}:ae instanceof Set&&(ae.add=ae.clear=ae.delete=function(){throw new Error("set is read-only")}),Object.freeze(ae),Object.getOwnPropertyNames(ae).forEach(function(Ce){var je=ae[Ce];typeof je=="object"&&!Object.isFrozen(je)&&t(je)}),ae}var e=t,r=t;e.default=r;class n{constructor(Ce){Ce.data===void 0&&(Ce.data={}),this.data=Ce.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function s(ae){return ae.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(ae,...Ce){const je=Object.create(null);for(const tt in ae)je[tt]=ae[tt];return Ce.forEach(function(tt){for(const pt in tt)je[pt]=tt[pt]}),je}const a="</span>",o=ae=>!!ae.kind;class u{constructor(Ce,je){this.buffer="",this.classPrefix=je.classPrefix,Ce.walk(this)}addText(Ce){this.buffer+=s(Ce)}openNode(Ce){if(!o(Ce))return;let je=Ce.kind;Ce.sublanguage||(je=`${this.classPrefix}${je}`),this.span(je)}closeNode(Ce){o(Ce)&&(this.buffer+=a)}value(){return this.buffer}span(Ce){this.buffer+=`<span class="${Ce}">`}}class l{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Ce){this.top.children.push(Ce)}openNode(Ce){const je={kind:Ce,children:[]};this.add(je),this.stack.push(je)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ce){return this.constructor._walk(Ce,this.rootNode)}static _walk(Ce,je){return typeof je=="string"?Ce.addText(je):je.children&&(Ce.openNode(je),je.children.forEach(tt=>this._walk(Ce,tt)),Ce.closeNode(je)),Ce}static _collapse(Ce){typeof Ce!="string"&&Ce.children&&(Ce.children.every(je=>typeof je=="string")?Ce.children=[Ce.children.join("")]:Ce.children.forEach(je=>{l._collapse(je)}))}}class c extends l{constructor(Ce){super(),this.options=Ce}addKeyword(Ce,je){Ce!==""&&(this.openNode(je),this.addText(Ce),this.closeNode())}addText(Ce){Ce!==""&&this.add(Ce)}addSublanguage(Ce,je){const tt=Ce.root;tt.kind=je,tt.sublanguage=!0,this.add(tt)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function p(ae){return new RegExp(ae.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function h(ae){return ae?typeof ae=="string"?ae:ae.source:null}function d(...ae){return ae.map(je=>h(je)).join("")}function g(...ae){return"("+ae.map(je=>h(je)).join("|")+")"}function y(ae){return new RegExp(ae.toString()+"|").exec("").length-1}function v(ae,Ce){const je=ae&&ae.exec(Ce);return je&&je.index===0}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(ae,Ce="|"){let je=0;return ae.map(tt=>{je+=1;const pt=je;let St=h(tt),Lt="";for(;St.length>0;){const De=E.exec(St);if(!De){Lt+=St;break}Lt+=St.substring(0,De.index),St=St.substring(De.index+De[0].length),De[0][0]==="\\"&&De[1]?Lt+="\\"+String(Number(De[1])+pt):(Lt+=De[0],De[0]==="("&&je++)}return Lt}).map(tt=>`(${tt})`).join(Ce)}const _=/\b\B/,w="[a-zA-Z]\\w*",S="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",T="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",k="\\b(0b[01]+)",P="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",F=(ae={})=>{const Ce=/^#![ ]*\//;return ae.binary&&(ae.begin=d(Ce,/.*\b/,ae.binary,/\b.*/)),i({className:"meta",begin:Ce,end:/$/,relevance:0,"on:begin":(je,tt)=>{je.index!==0&&tt.ignoreMatch()}},ae)},R={begin:"\\\\[\\s\\S]",relevance:0},$={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[R]},M={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[R]},K={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ee=function(ae,Ce,je={}){const tt=i({className:"comment",begin:ae,end:Ce,contains:[]},je);return tt.contains.push(K),tt.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),tt},G=ee("//","$"),Z=ee("/\\*","\\*/"),X=ee("#","$"),te={className:"number",begin:A,relevance:0},le={className:"number",begin:T,relevance:0},se={className:"number",begin:k,relevance:0},ue={className:"number",begin:A+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},ve={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[R,{begin:/\[/,end:/\]/,relevance:0,contains:[R]}]}]},he={className:"title",begin:w,relevance:0},re={className:"title",begin:S,relevance:0},W={begin:"\\.\\s*"+S,relevance:0};var ge=Object.freeze({__proto__:null,MATCH_NOTHING_RE:_,IDENT_RE:w,UNDERSCORE_IDENT_RE:S,NUMBER_RE:A,C_NUMBER_RE:T,BINARY_NUMBER_RE:k,RE_STARTERS_RE:P,SHEBANG:F,BACKSLASH_ESCAPE:R,APOS_STRING_MODE:$,QUOTE_STRING_MODE:M,PHRASAL_WORDS_MODE:K,COMMENT:ee,C_LINE_COMMENT_MODE:G,C_BLOCK_COMMENT_MODE:Z,HASH_COMMENT_MODE:X,NUMBER_MODE:te,C_NUMBER_MODE:le,BINARY_NUMBER_MODE:se,CSS_NUMBER_MODE:ue,REGEXP_MODE:ve,TITLE_MODE:he,UNDERSCORE_TITLE_MODE:re,METHOD_GUARD:W,END_SAME_AS_BEGIN:function(ae){return Object.assign(ae,{"on:begin":(Ce,je)=>{je.data._beginMatch=Ce[1]},"on:end":(Ce,je)=>{je.data._beginMatch!==Ce[1]&&je.ignoreMatch()}})}});function me(ae,Ce){ae.input[ae.index-1]==="."&&Ce.ignoreMatch()}function Me(ae,Ce){Ce&&ae.beginKeywords&&(ae.begin="\\b("+ae.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ae.__beforeBegin=me,ae.keywords=ae.keywords||ae.beginKeywords,delete ae.beginKeywords,ae.relevance===void 0&&(ae.relevance=0))}function $e(ae,Ce){Array.isArray(ae.illegal)&&(ae.illegal=g(...ae.illegal))}function Ie(ae,Ce){if(ae.match){if(ae.begin||ae.end)throw new Error("begin & end are not supported with match");ae.begin=ae.match,delete ae.match}}function ke(ae,Ce){ae.relevance===void 0&&(ae.relevance=1)}const Le=["of","and","for","in","not","or","if","then","parent","list","value"],ye="keyword";function Se(ae,Ce,je=ye){const tt={};return typeof ae=="string"?pt(je,ae.split(" ")):Array.isArray(ae)?pt(je,ae):Object.keys(ae).forEach(function(St){Object.assign(tt,Se(ae[St],Ce,St))}),tt;function pt(St,Lt){Ce&&(Lt=Lt.map(De=>De.toLowerCase())),Lt.forEach(function(De){const Je=De.split("|");tt[Je[0]]=[St,we(Je[0],Je[1])]})}}function we(ae,Ce){return Ce?Number(Ce):L(ae)?0:1}function L(ae){return Le.includes(ae.toLowerCase())}function C(ae,{plugins:Ce}){function je(De,Je){return new RegExp(h(De),"m"+(ae.case_insensitive?"i":"")+(Je?"g":""))}class tt{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Je,lt){lt.position=this.position++,this.matchIndexes[this.matchAt]=lt,this.regexes.push([lt,Je]),this.matchAt+=y(Je)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Je=this.regexes.map(lt=>lt[1]);this.matcherRe=je(b(Je),!0),this.lastIndex=0}exec(Je){this.matcherRe.lastIndex=this.lastIndex;const lt=this.matcherRe.exec(Je);if(!lt)return null;const rt=lt.findIndex((zr,ii)=>ii>0&&zr!==void 0),Ut=this.matchIndexes[rt];return lt.splice(0,rt),Object.assign(lt,Ut)}}class pt{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Je){if(this.multiRegexes[Je])return this.multiRegexes[Je];const lt=new tt;return this.rules.slice(Je).forEach(([rt,Ut])=>lt.addRule(rt,Ut)),lt.compile(),this.multiRegexes[Je]=lt,lt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Je,lt){this.rules.push([Je,lt]),lt.type==="begin"&&this.count++}exec(Je){const lt=this.getMatcher(this.regexIndex);lt.lastIndex=this.lastIndex;let rt=lt.exec(Je);if(this.resumingScanAtSamePosition()&&!(rt&&rt.index===this.lastIndex)){const Ut=this.getMatcher(0);Ut.lastIndex=this.lastIndex+1,rt=Ut.exec(Je)}return rt&&(this.regexIndex+=rt.position+1,this.regexIndex===this.count&&this.considerAll()),rt}}function St(De){const Je=new pt;return De.contains.forEach(lt=>Je.addRule(lt.begin,{rule:lt,type:"begin"})),De.terminatorEnd&&Je.addRule(De.terminatorEnd,{type:"end"}),De.illegal&&Je.addRule(De.illegal,{type:"illegal"}),Je}function Lt(De,Je){const lt=De;if(De.isCompiled)return lt;[Ie].forEach(Ut=>Ut(De,Je)),ae.compilerExtensions.forEach(Ut=>Ut(De,Je)),De.__beforeBegin=null,[Me,$e,ke].forEach(Ut=>Ut(De,Je)),De.isCompiled=!0;let rt=null;if(typeof De.keywords=="object"&&(rt=De.keywords.$pattern,delete De.keywords.$pattern),De.keywords&&(De.keywords=Se(De.keywords,ae.case_insensitive)),De.lexemes&&rt)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return rt=rt||De.lexemes||/\w+/,lt.keywordPatternRe=je(rt,!0),Je&&(De.begin||(De.begin=/\B|\b/),lt.beginRe=je(De.begin),De.endSameAsBegin&&(De.end=De.begin),!De.end&&!De.endsWithParent&&(De.end=/\B|\b/),De.end&&(lt.endRe=je(De.end)),lt.terminatorEnd=h(De.end)||"",De.endsWithParent&&Je.terminatorEnd&&(lt.terminatorEnd+=(De.end?"|":"")+Je.terminatorEnd)),De.illegal&&(lt.illegalRe=je(De.illegal)),De.contains||(De.contains=[]),De.contains=[].concat(...De.contains.map(function(Ut){return U(Ut==="self"?De:Ut)})),De.contains.forEach(function(Ut){Lt(Ut,lt)}),De.starts&&Lt(De.starts,Je),lt.matcher=St(lt),lt}if(ae.compilerExtensions||(ae.compilerExtensions=[]),ae.contains&&ae.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ae.classNameAliases=i(ae.classNameAliases||{}),Lt(ae)}function j(ae){return ae?ae.endsWithParent||j(ae.starts):!1}function U(ae){return ae.variants&&!ae.cachedVariants&&(ae.cachedVariants=ae.variants.map(function(Ce){return i(ae,{variants:null},Ce)})),ae.cachedVariants?ae.cachedVariants:j(ae)?i(ae,{starts:ae.starts?i(ae.starts):null}):Object.isFrozen(ae)?i(ae):ae}var Y="10.7.3";function ne(ae){return!!(ae||ae==="")}function fe(ae){const Ce={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!ae.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,s(this.code);let tt={};return this.autoDetect?(tt=ae.highlightAuto(this.code),this.detectedLanguage=tt.language):(tt=ae.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),tt.value},autoDetect(){return!this.language||ne(this.autodetect)},ignoreIllegals(){return!0}},render(tt){return tt("pre",{},[tt("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:Ce,VuePlugin:{install(tt){tt.component("highlightjs",Ce)}}}}const Ne={"after:highlightElement":({el:ae,result:Ce,text:je})=>{const tt=q(ae);if(!tt.length)return;const pt=document.createElement("div");pt.innerHTML=Ce.value,Ce.value=O(tt,q(pt),je)}};function Ge(ae){return ae.nodeName.toLowerCase()}function q(ae){const Ce=[];return(function je(tt,pt){for(let St=tt.firstChild;St;St=St.nextSibling)St.nodeType===3?pt+=St.nodeValue.length:St.nodeType===1&&(Ce.push({event:"start",offset:pt,node:St}),pt=je(St,pt),Ge(St).match(/br|hr|img|input/)||Ce.push({event:"stop",offset:pt,node:St}));return pt})(ae,0),Ce}function O(ae,Ce,je){let tt=0,pt="";const St=[];function Lt(){return!ae.length||!Ce.length?ae.length?ae:Ce:ae[0].offset!==Ce[0].offset?ae[0].offset<Ce[0].offset?ae:Ce:Ce[0].event==="start"?ae:Ce}function De(rt){function Ut(zr){return" "+zr.nodeName+'="'+s(zr.value)+'"'}pt+="<"+Ge(rt)+[].map.call(rt.attributes,Ut).join("")+">"}function Je(rt){pt+="</"+Ge(rt)+">"}function lt(rt){(rt.event==="start"?De:Je)(rt.node)}for(;ae.length||Ce.length;){let rt=Lt();if(pt+=s(je.substring(tt,rt[0].offset)),tt=rt[0].offset,rt===ae){St.reverse().forEach(Je);do lt(rt.splice(0,1)[0]),rt=Lt();while(rt===ae&&rt.length&&rt[0].offset===tt);St.reverse().forEach(De)}else rt[0].event==="start"?St.push(rt[0].node):St.pop(),lt(rt.splice(0,1)[0])}return pt+s(je.substr(tt))}const I={},H=ae=>{console.error(ae)},ie=(ae,...Ce)=>{console.log(`WARN: ${ae}`,...Ce)},de=(ae,Ce)=>{I[`${ae}/${Ce}`]||(console.log(`Deprecated as of ${ae}. ${Ce}`),I[`${ae}/${Ce}`]=!0)},xe=s,Ze=i,it=Symbol("nomatch");var ft=function(ae){const Ce=Object.create(null),je=Object.create(null),tt=[];let pt=!0;const St=/(^(<[^>]+>|\t|)+|\n)/gm,Lt="Could not find the language '{}', did you forget to load/include a language module?",De={disableAutodetect:!0,name:"Plain text",contains:[]};let Je={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:c};function lt(Pe){return Je.noHighlightRe.test(Pe)}function rt(Pe){let ze=Pe.className+" ";ze+=Pe.parentNode?Pe.parentNode.className:"";const Ot=Je.languageDetectRe.exec(ze);if(Ot){const Ft=gt(Ot[1]);return Ft||(ie(Lt.replace("{}",Ot[1])),ie("Falling back to no-highlight mode for this block.",Pe)),Ft?Ot[1]:"no-highlight"}return ze.split(/\s+/).find(Ft=>lt(Ft)||gt(Ft))}function Ut(Pe,ze,Ot,Ft){let lr="",Wn="";typeof ze=="object"?(lr=Pe,Ot=ze.ignoreIllegals,Wn=ze.language,Ft=void 0):(de("10.7.0","highlight(lang, code, ...args) has been deprecated."),de("10.7.0",`Please use highlight(code, options) instead.
212
- https://github.com/highlightjs/highlight.js/issues/2277`),Wn=Pe,lr=ze);const An={code:lr,language:Wn};sn("before:highlight",An);const On=An.result?An.result:zr(An.language,An.code,Ot,Ft);return On.code=An.code,sn("after:highlight",On),On}function zr(Pe,ze,Ot,Ft){function lr(et,nt){const Et=pi.case_insensitive?nt[0].toLowerCase():nt[0];return Object.prototype.hasOwnProperty.call(et.keywords,Et)&&et.keywords[Et]}function Wn(){if(!_t.keywords){yt.addText(rr);return}let et=0;_t.keywordPatternRe.lastIndex=0;let nt=_t.keywordPatternRe.exec(rr),Et="";for(;nt;){Et+=rr.substring(et,nt.index);const Nt=lr(_t,nt);if(Nt){const[Br,di]=Nt;if(yt.addText(Et),Et="",$i+=di,Br.startsWith("_"))Et+=nt[0];else{const hi=pi.classNameAliases[Br]||Br;yt.addKeyword(nt[0],hi)}}else Et+=nt[0];et=_t.keywordPatternRe.lastIndex,nt=_t.keywordPatternRe.exec(rr)}Et+=rr.substr(et),yt.addText(Et)}function An(){if(rr==="")return;let et=null;if(typeof _t.subLanguage=="string"){if(!Ce[_t.subLanguage]){yt.addText(rr);return}et=zr(_t.subLanguage,rr,!0,Vl[_t.subLanguage]),Vl[_t.subLanguage]=et.top}else et=ai(rr,_t.subLanguage.length?_t.subLanguage:null);_t.relevance>0&&($i+=et.relevance),yt.addSublanguage(et.emitter,et.language)}function On(){_t.subLanguage!=null?An():Wn(),rr=""}function Cn(et){return et.className&&yt.openNode(pi.classNameAliases[et.className]||et.className),_t=Object.create(et,{parent:{value:_t}}),_t}function mn(et,nt,Et){let Nt=v(et.endRe,Et);if(Nt){if(et["on:end"]){const Br=new n(et);et["on:end"](nt,Br),Br.isMatchIgnored&&(Nt=!1)}if(Nt){for(;et.endsParent&&et.parent;)et=et.parent;return et}}if(et.endsWithParent)return mn(et.parent,nt,Et)}function Bl(et){return _t.matcher.regexIndex===0?(rr+=et[0],1):(qs=!0,0)}function $l(et){const nt=et[0],Et=et.rule,Nt=new n(Et),Br=[Et.__beforeBegin,Et["on:begin"]];for(const di of Br)if(di&&(di(et,Nt),Nt.isMatchIgnored))return Bl(nt);return Et&&Et.endSameAsBegin&&(Et.endRe=p(nt)),Et.skip?rr+=nt:(Et.excludeBegin&&(rr+=nt),On(),!Et.returnBegin&&!Et.excludeBegin&&(rr=nt)),Cn(Et),Et.returnBegin?0:nt.length}function Ll(et){const nt=et[0],Et=ze.substr(et.index),Nt=mn(_t,et,Et);if(!Nt)return it;const Br=_t;Br.skip?rr+=nt:(Br.returnEnd||Br.excludeEnd||(rr+=nt),On(),Br.excludeEnd&&(rr=nt));do _t.className&&yt.closeNode(),!_t.skip&&!_t.subLanguage&&($i+=_t.relevance),_t=_t.parent;while(_t!==Nt.parent);return Nt.starts&&(Nt.endSameAsBegin&&(Nt.starts.endRe=Nt.endRe),Cn(Nt.starts)),Br.returnEnd?0:nt.length}function Ul(){const et=[];for(let nt=_t;nt!==pi;nt=nt.parent)nt.className&&et.unshift(nt.className);et.forEach(nt=>yt.openNode(nt))}let Bi={};function So(et,nt){const Et=nt&&nt[0];if(rr+=et,Et==null)return On(),0;if(Bi.type==="begin"&&nt.type==="end"&&Bi.index===nt.index&&Et===""){if(rr+=ze.slice(nt.index,nt.index+1),!pt){const Nt=new Error("0 width match regex");throw Nt.languageName=Pe,Nt.badRule=Bi.rule,Nt}return 1}if(Bi=nt,nt.type==="begin")return $l(nt);if(nt.type==="illegal"&&!Ot){const Nt=new Error('Illegal lexeme "'+Et+'" for mode "'+(_t.className||"<unnamed>")+'"');throw Nt.mode=_t,Nt}else if(nt.type==="end"){const Nt=Ll(nt);if(Nt!==it)return Nt}if(nt.type==="illegal"&&Et==="")return 1;if(Rn>1e5&&Rn>nt.index*3)throw new Error("potential infinite loop, way more iterations than matches");return rr+=Et,Et.length}const pi=gt(Pe);if(!pi)throw H(Lt.replace("{}",Pe)),new Error('Unknown language: "'+Pe+'"');const Kp=C(pi,{plugins:tt});let _o="",_t=Ft||Kp;const Vl={},yt=new Je.__emitter(Je);Ul();let rr="",$i=0,ir=0,Rn=0,qs=!1;try{for(_t.matcher.considerAll();;){Rn++,qs?qs=!1:_t.matcher.considerAll(),_t.matcher.lastIndex=ir;const et=_t.matcher.exec(ze);if(!et)break;const nt=ze.substring(ir,et.index),Et=So(nt,et);ir=et.index+Et}return So(ze.substr(ir)),yt.closeAllNodes(),yt.finalize(),_o=yt.toHTML(),{relevance:Math.floor($i),value:_o,language:Pe,illegal:!1,emitter:yt,top:_t}}catch(et){if(et.message&&et.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:et.message,context:ze.slice(ir-100,ir+100),mode:et.mode},sofar:_o,relevance:0,value:xe(ze),emitter:yt};if(pt)return{illegal:!1,relevance:0,value:xe(ze),emitter:yt,language:Pe,top:_t,errorRaised:et};throw et}}function ii(Pe){const ze={relevance:0,emitter:new Je.__emitter(Je),value:xe(Pe),illegal:!1,top:De};return ze.emitter.addText(Pe),ze}function ai(Pe,ze){ze=ze||Je.languages||Object.keys(Ce);const Ot=ii(Pe),Ft=ze.filter(gt).filter($t).map(Cn=>zr(Cn,Pe,!1));Ft.unshift(Ot);const lr=Ft.sort((Cn,mn)=>{if(Cn.relevance!==mn.relevance)return mn.relevance-Cn.relevance;if(Cn.language&&mn.language){if(gt(Cn.language).supersetOf===mn.language)return 1;if(gt(mn.language).supersetOf===Cn.language)return-1}return 0}),[Wn,An]=lr,On=Wn;return On.second_best=An,On}function Wr(Pe){return Je.tabReplace||Je.useBR?Pe.replace(St,ze=>ze===`
213
- `?Je.useBR?"<br>":ze:Je.tabReplace?ze.replace(/\t/g,Je.tabReplace):ze):Pe}function ps(Pe,ze,Ot){const Ft=ze?je[ze]:Ot;Pe.classList.add("hljs"),Ft&&Pe.classList.add(Ft)}const oi={"before:highlightElement":({el:Pe})=>{Je.useBR&&(Pe.innerHTML=Pe.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
214
- `))},"after:highlightElement":({result:Pe})=>{Je.useBR&&(Pe.value=Pe.value.replace(/\n/g,"<br>"))}},ui=/^(<[^>]+>|\t)+/gm,Fs={"after:highlightElement":({result:Pe})=>{Je.tabReplace&&(Pe.value=Pe.value.replace(ui,ze=>ze.replace(/\t/g,Je.tabReplace)))}};function Jr(Pe){let ze=null;const Ot=rt(Pe);if(lt(Ot))return;sn("before:highlightElement",{el:Pe,language:Ot}),ze=Pe;const Ft=ze.textContent,lr=Ot?Ut(Ft,{language:Ot,ignoreIllegals:!0}):ai(Ft);sn("after:highlightElement",{el:Pe,result:lr,text:Ft}),Pe.innerHTML=lr.value,ps(Pe,Ot,lr.language),Pe.result={language:lr.language,re:lr.relevance,relavance:lr.relevance},lr.second_best&&(Pe.second_best={language:lr.second_best.language,re:lr.second_best.relevance,relavance:lr.second_best.relevance})}function hn(Pe){Pe.useBR&&(de("10.3.0","'useBR' will be removed entirely in v11.0"),de("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Je=Ze(Je,Pe)}const li=()=>{if(li.called)return;li.called=!0,de("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(Jr)};function ci(){de("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),ds=!0}let ds=!1;function Er(){if(document.readyState==="loading"){ds=!0;return}document.querySelectorAll("pre code").forEach(Jr)}function xt(){ds&&Er()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",xt,!1);function Qe(Pe,ze){let Ot=null;try{Ot=ze(ae)}catch(Ft){if(H("Language definition for '{}' could not be registered.".replace("{}",Pe)),pt)H(Ft);else throw Ft;Ot=De}Ot.name||(Ot.name=Pe),Ce[Pe]=Ot,Ot.rawDefinition=ze.bind(null,ae),Ot.aliases&&Xt(Ot.aliases,{languageName:Pe})}function oe(Pe){delete Ce[Pe];for(const ze of Object.keys(je))je[ze]===Pe&&delete je[ze]}function Oe(){return Object.keys(Ce)}function He(Pe){de("10.4.0","requireLanguage will be removed entirely in v11."),de("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const ze=gt(Pe);if(ze)return ze;throw new Error("The '{}' language is required, but not loaded.".replace("{}",Pe))}function gt(Pe){return Pe=(Pe||"").toLowerCase(),Ce[Pe]||Ce[je[Pe]]}function Xt(Pe,{languageName:ze}){typeof Pe=="string"&&(Pe=[Pe]),Pe.forEach(Ot=>{je[Ot.toLowerCase()]=ze})}function $t(Pe){const ze=gt(Pe);return ze&&!ze.disableAutodetect}function Kt(Pe){Pe["before:highlightBlock"]&&!Pe["before:highlightElement"]&&(Pe["before:highlightElement"]=ze=>{Pe["before:highlightBlock"](Object.assign({block:ze.el},ze))}),Pe["after:highlightBlock"]&&!Pe["after:highlightElement"]&&(Pe["after:highlightElement"]=ze=>{Pe["after:highlightBlock"](Object.assign({block:ze.el},ze))})}function Hr(Pe){Kt(Pe),tt.push(Pe)}function sn(Pe,ze){const Ot=Pe;tt.forEach(function(Ft){Ft[Ot]&&Ft[Ot](ze)})}function fi(Pe){return de("10.2.0","fixMarkup will be removed entirely in v11.0"),de("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),Wr(Pe)}function sr(Pe){return de("10.7.0","highlightBlock will be removed entirely in v12.0"),de("10.7.0","Please use highlightElement now."),Jr(Pe)}Object.assign(ae,{highlight:Ut,highlightAuto:ai,highlightAll:Er,fixMarkup:fi,highlightElement:Jr,highlightBlock:sr,configure:hn,initHighlighting:li,initHighlightingOnLoad:ci,registerLanguage:Qe,unregisterLanguage:oe,listLanguages:Oe,getLanguage:gt,registerAliases:Xt,requireLanguage:He,autoDetection:$t,inherit:Ze,addPlugin:Hr,vuePlugin:fe(ae).VuePlugin}),ae.debugMode=function(){pt=!1},ae.safeMode=function(){pt=!0},ae.versionString=Y;for(const Pe in ge)typeof ge[Pe]=="object"&&e(ge[Pe]);return Object.assign(ae,ge),ae.addPlugin(oi),ae.addPlugin(Ne),ae.addPlugin(Fs),ae}({});return pS=ft,pS}var dS={exports:{}},_D;function Jue(){return _D||(_D=1,(function(t){(function(){var e;e=t.exports=s,e.format=s,e.vsprintf=n,typeof console<"u"&&typeof console.log=="function"&&(e.printf=r);function r(){console.log(s.apply(null,arguments))}function n(i,a){return s.apply(null,[i].concat(a))}function s(i){for(var a=1,o=[].slice.call(arguments),u=0,l=i.length,c="",p,h=!1,d,g,y=!1,v,E=function(){return o[a++]},b=function(){for(var _="";/\d/.test(i[u]);)_+=i[u++],p=i[u];return _.length>0?parseInt(_):null};u<l;++u)if(p=i[u],h)switch(h=!1,p=="."?(y=!1,p=i[++u]):p=="0"&&i[u+1]=="."?(y=!0,u+=2,p=i[u]):y=!0,v=b(),p){case"b":c+=parseInt(E(),10).toString(2);break;case"c":d=E(),typeof d=="string"||d instanceof String?c+=d:c+=String.fromCharCode(parseInt(d,10));break;case"d":c+=parseInt(E(),10);break;case"f":g=String(parseFloat(E()).toFixed(v||6)),c+=y?g:g.replace(/^0/,"");break;case"j":c+=JSON.stringify(E());break;case"o":c+="0"+parseInt(E(),10).toString(8);break;case"s":c+=E();break;case"x":c+="0x"+parseInt(E(),10).toString(16);break;case"X":c+="0x"+parseInt(E(),10).toString(16).toUpperCase();break;default:c+=p;break}else p==="%"?h=!0:c+=p;return c}})()})(dS)),dS.exports}var hS,wD;function Hue(){if(wD)return hS;wD=1;var t=Jue(),e=r(Error);hS=e,e.eval=r(EvalError),e.range=r(RangeError),e.reference=r(ReferenceError),e.syntax=r(SyntaxError),e.type=r(TypeError),e.uri=r(URIError),e.create=r;function r(n){return s.displayName=n.displayName||n.name,s;function s(i){return i&&(i=t.apply(null,arguments)),new n(i)}}return hS}var xD;function Kue(){if(xD)return Ui;xD=1;var t=Wue(),e=Hue();Ui.highlight=n,Ui.highlightAuto=s,Ui.registerLanguage=i,Ui.listLanguages=a,Ui.registerAlias=o,u.prototype.addText=p,u.prototype.addKeyword=l,u.prototype.addSublanguage=c,u.prototype.openNode=h,u.prototype.closeNode=d,u.prototype.closeAllNodes=y,u.prototype.finalize=y,u.prototype.toHTML=g;var r="hljs-";function n(v,E,b){var _=t.configure({}),w=b||{},S=w.prefix,A;if(typeof v!="string")throw e("Expected `string` for name, got `%s`",v);if(!t.getLanguage(v))throw e("Unknown language: `%s` is not registered",v);if(typeof E!="string")throw e("Expected `string` for value, got `%s`",E);if(S==null&&(S=r),t.configure({__emitter:u,classPrefix:S}),A=t.highlight(E,{language:v,ignoreIllegals:!0}),t.configure(_||{}),A.errorRaised)throw A.errorRaised;return{relevance:A.relevance,language:A.language,value:A.emitter.rootNode.children}}function s(v,E){var b=E||{},_=b.subset||t.listLanguages();b.prefix;var w=_.length,S=-1,A,T,k,P;if(typeof v!="string")throw e("Expected `string` for value, got `%s`",v);for(T={relevance:0,language:null,value:[]},A={relevance:0,language:null,value:[]};++S<w;)P=_[S],t.getLanguage(P)&&(k=n(P,v,E),k.language=P,k.relevance>T.relevance&&(T=k),k.relevance>A.relevance&&(T=A,A=k));return T.language&&(A.secondBest=T),A}function i(v,E){t.registerLanguage(v,E)}function a(){return t.listLanguages()}function o(v,E){var b=v,_;E&&(b={},b[v]=E);for(_ in b)t.registerAliases(b[_],{languageName:_})}function u(v){this.options=v,this.rootNode={children:[]},this.stack=[this.rootNode]}function l(v,E){this.openNode(E),this.addText(v),this.closeNode()}function c(v,E){var b=this.stack,_=b[b.length-1],w=v.rootNode.children,S=E?{type:"element",tagName:"span",properties:{className:[E]},children:w}:w;_.children=_.children.concat(S)}function p(v){var E=this.stack,b,_;v!==""&&(b=E[E.length-1],_=b.children[b.children.length-1],_&&_.type==="text"?_.value+=v:b.children.push({type:"text",value:v}))}function h(v){var E=this.stack,b=this.options.classPrefix+v,_=E[E.length-1],w={type:"element",tagName:"span",properties:{className:[b]},children:[]};_.children.push(w),E.push(w)}function d(){this.stack.pop()}function g(){return""}function y(){}return Ui}var Gue=Kue();const M6=ot(Gue);var D6=zue(M6,{});D6.registerLanguage=M6.registerLanguage;var mS,AD;function Yue(){if(AD)return mS;AD=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],n=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],s=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=["arguments","this","super","console","window","document","localStorage","module","global"],o=[].concat(i,a,n,s);function u(h){return h?typeof h=="string"?h:h.source:null}function l(h){return c("(?=",h,")")}function c(...h){return h.map(g=>u(g)).join("")}function p(h){const d=(G,{after:Z})=>{const X="</"+G[0].slice(1);return G.input.indexOf(X,Z)!==-1},g=t,y={begin:"<>",end:"</>"},v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,Z)=>{const X=G[0].length+G.index,te=G.input[X];if(te==="<"){Z.ignoreMatch();return}te===">"&&(d(G,{after:X})||Z.ignoreMatch())}},E={$pattern:t,keyword:e,literal:r,built_in:o},b="[0-9](_?[0-9])*",_=`\\.(${b})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${w})((${_})|\\.)?|(${_}))[eE][+-]?(${b})\\b`},{begin:`\\b(${w})\\b((${_})\\b|\\.)?|(${_})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},A={className:"subst",begin:"\\$\\{",end:"\\}",keywords:E,contains:[]},T={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"css"}},P={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,A]},R={className:"comment",variants:[h.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),h.C_BLOCK_COMMENT_MODE,h.C_LINE_COMMENT_MODE]},$=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,T,k,P,S,h.REGEXP_MODE];A.contains=$.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat($)});const M=[].concat(R,A.contains),K=M.concat([{begin:/\(/,end:/\)/,keywords:E,contains:["self"].concat(M)}]),ee={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:K};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:K},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,T,k,P,R,S,{begin:c(/[{,\n]\s*/,l(c(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,g+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:g+l("\\s*:"),relevance:0}]},{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[R,h.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+h.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:h.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:K}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:y.begin,end:y.end},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:E,contains:["self",h.inherit(h.TITLE_MODE,{begin:g}),ee],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[ee,h.inherit(h.TITLE_MODE,{begin:g})]},{variants:[{begin:"\\."+g},{begin:"\\$"+g}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},h.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[h.inherit(h.TITLE_MODE,{begin:g}),"self",ee]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[h.inherit(h.TITLE_MODE,{begin:g}),{begin:/\(\)/},ee]},{begin:/\$[(.]/}]}}return mS=p,mS}var Xue=Yue();const Zue=ot(Xue);var gS,OD;function Que(){if(OD)return gS;OD=1;function t(e){const r={literal:"true false null"},n=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],s=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],i={end:",",endsWithParent:!0,excludeEnd:!0,contains:s,keywords:r},a={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(i,{begin:/:/})].concat(n),illegal:"\\S"},o={begin:"\\[",end:"\\]",contains:[e.inherit(i)],illegal:"\\S"};return s.push(a,o),n.forEach(function(u){s.push(u)}),{name:"JSON",contains:s,keywords:r,illegal:"\\S"}}return gS=t,gS}var ele=Que();const tle=ot(ele);var yS,CD;function rle(){if(CD)return yS;CD=1;function t(a){return a?typeof a=="string"?a:a.source:null}function e(a){return n("(?=",a,")")}function r(a){return n("(",a,")?")}function n(...a){return a.map(u=>t(u)).join("")}function s(...a){return"("+a.map(u=>t(u)).join("|")+")"}function i(a){const o=n(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),u=/[A-Za-z0-9._:-]+/,l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},p=a.inherit(c,{begin:/\(/,end:/\)/}),h=a.inherit(a.APOS_STRING_MODE,{className:"meta-string"}),d=a.inherit(a.QUOTE_STRING_MODE,{className:"meta-string"}),g={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[l]},{begin:/'/,end:/'/,contains:[l]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,d,h,p,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,p,d,h]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},l,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[g],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[g],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n(/</,e(n(o,s(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:g}]},{className:"tag",begin:n(/<\//,e(n(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return yS=i,yS}var nle=rle();const sle=ot(nle);var vS,RD;function ile(){if(RD)return vS;RD=1;function t(n){return n?typeof n=="string"?n:n.source:null}function e(...n){return n.map(i=>t(i)).join("")}function r(n){const s={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:e(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,s,a]};a.contains.push(u);const l={className:"",begin:/\\"/},c={className:"string",begin:/'/,end:/'/},p={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,s]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=n.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[d,n.SHEBANG(),g,p,n.HASH_COMMENT_MODE,o,u,l,c,s]}}return vS=r,vS}var ale=ile();const ole=ot(ale);var bS,TD;function ule(){if(TD)return bS;TD=1;function t(e){var r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},o=e.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),u="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",p="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",h={className:"number",begin:"\\b"+u+l+c+p+"\\b"},d={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},g={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},v=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},h,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,y,a],E=[...v];return E.pop(),E.push(o),d.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return bS=t,bS}var lle=ule();const cle=ot(lle);var ES,ID;function fle(){if(ID)return ES;ID=1;function t(n){return n?typeof n=="string"?n:n.source:null}function e(...n){return n.map(i=>t(i)).join("")}function r(n){const s="HTTP/(2|1\\.[01])",a={className:"attribute",begin:e("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+s+" \\d{3})",end:/$/,contains:[{className:"meta",begin:s},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+s+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:s},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},n.inherit(a,{relevance:0})]}}return ES=r,ES}var ple=fle();const dle=ot(ple);var SS,kD;function hle(){if(kD)return SS;kD=1;function t(e){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",s="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},a=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},u={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,u,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},p={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},h={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},d=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[h]}),g={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},y={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},v={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:a,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[u]}]},E={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,p,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},b={variants:[{className:"operator",begin:"(".concat(s,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},_={className:"selector-tag",begin:/@\B/,relevance:0},w={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},S=[w,d,o,e.NUMBER_MODE,c,p,g,u,l,_],A={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",S,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return w.contains.unshift(A),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:i,contains:S.concat(y,v,E,b,A)}}return SS=t,SS}var mle=hle();const gle=ot(mle),yle={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#333",color:"white"},"hljs-name":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-code":{fontStyle:"italic",color:"#888"},"hljs-emphasis":{fontStyle:"italic"},"hljs-tag":{color:"#62c8f3"},"hljs-variable":{color:"#ade5fc"},"hljs-template-variable":{color:"#ade5fc"},"hljs-selector-id":{color:"#ade5fc"},"hljs-selector-class":{color:"#ade5fc"},"hljs-string":{color:"#a2fca2"},"hljs-bullet":{color:"#d36363"},"hljs-type":{color:"#ffa"},"hljs-title":{color:"#ffa"},"hljs-section":{color:"#ffa"},"hljs-attribute":{color:"#ffa"},"hljs-quote":{color:"#ffa"},"hljs-built_in":{color:"#ffa"},"hljs-builtin-name":{color:"#ffa"},"hljs-number":{color:"#d36363"},"hljs-symbol":{color:"#d36363"},"hljs-keyword":{color:"#fcc28c"},"hljs-selector-tag":{color:"#fcc28c"},"hljs-literal":{color:"#fcc28c"},"hljs-comment":{color:"#888"},"hljs-deletion":{color:"#333",backgroundColor:"#fc9b9b"},"hljs-regexp":{color:"#c6b4f0"},"hljs-link":{color:"#c6b4f0"},"hljs-meta":{color:"#fc9b9b"},"hljs-addition":{backgroundColor:"#a2fca2",color:"#333"}},vle={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#222",color:"#aaa"},"hljs-subst":{color:"#aaa"},"hljs-section":{color:"#fff",fontWeight:"bold"},"hljs-comment":{color:"#444"},"hljs-quote":{color:"#444"},"hljs-meta":{color:"#444"},"hljs-string":{color:"#ffcc33"},"hljs-symbol":{color:"#ffcc33"},"hljs-bullet":{color:"#ffcc33"},"hljs-regexp":{color:"#ffcc33"},"hljs-number":{color:"#00cc66"},"hljs-addition":{color:"#00cc66"},"hljs-built_in":{color:"#32aaee"},"hljs-builtin-name":{color:"#32aaee"},"hljs-literal":{color:"#32aaee"},"hljs-type":{color:"#32aaee"},"hljs-template-variable":{color:"#32aaee"},"hljs-attribute":{color:"#32aaee"},"hljs-link":{color:"#32aaee"},"hljs-keyword":{color:"#6644aa"},"hljs-selector-tag":{color:"#6644aa"},"hljs-name":{color:"#6644aa"},"hljs-selector-id":{color:"#6644aa"},"hljs-selector-class":{color:"#6644aa"},"hljs-title":{color:"#bb1166"},"hljs-variable":{color:"#bb1166"},"hljs-deletion":{color:"#bb1166"},"hljs-template-tag":{color:"#bb1166"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},ble={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#272822",color:"#ddd"},"hljs-tag":{color:"#f92672"},"hljs-keyword":{color:"#f92672",fontWeight:"bold"},"hljs-selector-tag":{color:"#f92672",fontWeight:"bold"},"hljs-literal":{color:"#f92672",fontWeight:"bold"},"hljs-strong":{color:"#f92672"},"hljs-name":{color:"#f92672"},"hljs-code":{color:"#66d9ef"},"hljs-class .hljs-title":{color:"white"},"hljs-attribute":{color:"#bf79db"},"hljs-symbol":{color:"#bf79db"},"hljs-regexp":{color:"#bf79db"},"hljs-link":{color:"#bf79db"},"hljs-string":{color:"#a6e22e"},"hljs-bullet":{color:"#a6e22e"},"hljs-subst":{color:"#a6e22e"},"hljs-title":{color:"#a6e22e",fontWeight:"bold"},"hljs-section":{color:"#a6e22e",fontWeight:"bold"},"hljs-emphasis":{color:"#a6e22e"},"hljs-type":{color:"#a6e22e",fontWeight:"bold"},"hljs-built_in":{color:"#a6e22e"},"hljs-builtin-name":{color:"#a6e22e"},"hljs-selector-attr":{color:"#a6e22e"},"hljs-selector-pseudo":{color:"#a6e22e"},"hljs-addition":{color:"#a6e22e"},"hljs-variable":{color:"#a6e22e"},"hljs-template-tag":{color:"#a6e22e"},"hljs-template-variable":{color:"#a6e22e"},"hljs-comment":{color:"#75715e"},"hljs-quote":{color:"#75715e"},"hljs-deletion":{color:"#75715e"},"hljs-meta":{color:"#75715e"},"hljs-doctag":{fontWeight:"bold"},"hljs-selector-id":{fontWeight:"bold"}},Ele={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#2E3440",color:"#D8DEE9"},"hljs-subst":{color:"#D8DEE9"},"hljs-selector-tag":{color:"#81A1C1"},"hljs-selector-id":{color:"#8FBCBB",fontWeight:"bold"},"hljs-selector-class":{color:"#8FBCBB"},"hljs-selector-attr":{color:"#8FBCBB"},"hljs-selector-pseudo":{color:"#88C0D0"},"hljs-addition":{backgroundColor:"rgba(163, 190, 140, 0.5)"},"hljs-deletion":{backgroundColor:"rgba(191, 97, 106, 0.5)"},"hljs-built_in":{color:"#8FBCBB"},"hljs-type":{color:"#8FBCBB"},"hljs-class":{color:"#8FBCBB"},"hljs-function":{color:"#88C0D0"},"hljs-function > .hljs-title":{color:"#88C0D0"},"hljs-keyword":{color:"#81A1C1"},"hljs-literal":{color:"#81A1C1"},"hljs-symbol":{color:"#81A1C1"},"hljs-number":{color:"#B48EAD"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"#A3BE8C"},"hljs-title":{color:"#8FBCBB"},"hljs-params":{color:"#D8DEE9"},"hljs-bullet":{color:"#81A1C1"},"hljs-code":{color:"#8FBCBB"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"#8FBCBB"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"#4C566A"},"hljs-comment":{color:"#4C566A"},"hljs-doctag":{color:"#8FBCBB"},"hljs-meta":{color:"#5E81AC"},"hljs-meta-keyword":{color:"#5E81AC"},"hljs-meta-string":{color:"#A3BE8C"},"hljs-attr":{color:"#8FBCBB"},"hljs-attribute":{color:"#D8DEE9"},"hljs-builtin-name":{color:"#81A1C1"},"hljs-name":{color:"#81A1C1"},"hljs-section":{color:"#88C0D0"},"hljs-tag":{color:"#81A1C1"},"hljs-variable":{color:"#D8DEE9"},"hljs-template-variable":{color:"#D8DEE9"},"hljs-template-tag":{color:"#5E81AC"},"abnf .hljs-attribute":{color:"#88C0D0"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"#88C0D0"},"apache .hljs-section":{color:"#81A1C1"},"arduino .hljs-built_in":{color:"#88C0D0"},"aspectj .hljs-meta":{color:"#D08770"},"aspectj > .hljs-title":{color:"#88C0D0"},"bnf .hljs-attribute":{color:"#8FBCBB"},"clojure .hljs-name":{color:"#88C0D0"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"#88C0D0"},"cpp .hljs-meta-string":{color:"#8FBCBB"},"css .hljs-built_in":{color:"#88C0D0"},"css .hljs-keyword":{color:"#D08770"},"diff .hljs-meta":{color:"#8FBCBB"},"ebnf .hljs-attribute":{color:"#8FBCBB"},"glsl .hljs-built_in":{color:"#88C0D0"},"groovy .hljs-meta:not(:first-child)":{color:"#D08770"},"haxe .hljs-meta":{color:"#D08770"},"java .hljs-meta":{color:"#D08770"},"ldif .hljs-attribute":{color:"#8FBCBB"},"lisp .hljs-name":{color:"#88C0D0"},"lua .hljs-built_in":{color:"#88C0D0"},"moonscript .hljs-built_in":{color:"#88C0D0"},"nginx .hljs-attribute":{color:"#88C0D0"},"nginx .hljs-section":{color:"#5E81AC"},"pf .hljs-built_in":{color:"#88C0D0"},"processing .hljs-built_in":{color:"#88C0D0"},"scss .hljs-keyword":{color:"#81A1C1"},"stylus .hljs-keyword":{color:"#81A1C1"},"swift .hljs-meta":{color:"#D08770"},"vim .hljs-built_in":{color:"#88C0D0",fontStyle:"italic"},"yaml .hljs-meta":{color:"#D08770"}},Sle={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#282b2e",color:"#e0e2e4"},"hljs-keyword":{color:"#93c763",fontWeight:"bold"},"hljs-selector-tag":{color:"#93c763",fontWeight:"bold"},"hljs-literal":{color:"#93c763",fontWeight:"bold"},"hljs-selector-id":{color:"#93c763"},"hljs-number":{color:"#ffcd22"},"hljs-attribute":{color:"#668bb0"},"hljs-code":{color:"white"},"hljs-class .hljs-title":{color:"white"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-regexp":{color:"#d39745"},"hljs-link":{color:"#d39745"},"hljs-meta":{color:"#557182"},"hljs-tag":{color:"#8cbbad"},"hljs-name":{color:"#8cbbad",fontWeight:"bold"},"hljs-bullet":{color:"#8cbbad"},"hljs-subst":{color:"#8cbbad"},"hljs-emphasis":{color:"#8cbbad"},"hljs-type":{color:"#8cbbad",fontWeight:"bold"},"hljs-built_in":{color:"#8cbbad"},"hljs-selector-attr":{color:"#8cbbad"},"hljs-selector-pseudo":{color:"#8cbbad"},"hljs-addition":{color:"#8cbbad"},"hljs-variable":{color:"#8cbbad"},"hljs-template-tag":{color:"#8cbbad"},"hljs-template-variable":{color:"#8cbbad"},"hljs-string":{color:"#ec7600"},"hljs-symbol":{color:"#ec7600"},"hljs-comment":{color:"#818e96"},"hljs-quote":{color:"#818e96"},"hljs-deletion":{color:"#818e96"},"hljs-selector-class":{color:"#A082BD"},"hljs-doctag":{fontWeight:"bold"},"hljs-title":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"}},_le={"hljs-comment":{color:"#969896"},"hljs-quote":{color:"#969896"},"hljs-variable":{color:"#cc6666"},"hljs-template-variable":{color:"#cc6666"},"hljs-tag":{color:"#cc6666"},"hljs-name":{color:"#cc6666"},"hljs-selector-id":{color:"#cc6666"},"hljs-selector-class":{color:"#cc6666"},"hljs-regexp":{color:"#cc6666"},"hljs-deletion":{color:"#cc6666"},"hljs-number":{color:"#de935f"},"hljs-built_in":{color:"#de935f"},"hljs-builtin-name":{color:"#de935f"},"hljs-literal":{color:"#de935f"},"hljs-type":{color:"#de935f"},"hljs-params":{color:"#de935f"},"hljs-meta":{color:"#de935f"},"hljs-link":{color:"#de935f"},"hljs-attribute":{color:"#f0c674"},"hljs-string":{color:"#b5bd68"},"hljs-symbol":{color:"#b5bd68"},"hljs-bullet":{color:"#b5bd68"},"hljs-addition":{color:"#b5bd68"},"hljs-title":{color:"#81a2be"},"hljs-section":{color:"#81a2be"},"hljs-keyword":{color:"#b294bb"},"hljs-selector-tag":{color:"#b294bb"},hljs:{display:"block",overflowX:"auto",background:"#1d1f21",color:"#c5c8c6",padding:"0.5em"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},wle={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#fff"},"hljs-subst":{fontWeight:"normal",color:"#000"},"hljs-title":{fontWeight:"normal",color:"#000"},"hljs-comment":{color:"#808080",fontStyle:"italic"},"hljs-quote":{color:"#808080",fontStyle:"italic"},"hljs-meta":{color:"#808000"},"hljs-tag":{background:"#efefef"},"hljs-section":{fontWeight:"bold",color:"#000080"},"hljs-name":{fontWeight:"bold",color:"#000080"},"hljs-literal":{fontWeight:"bold",color:"#000080"},"hljs-keyword":{fontWeight:"bold",color:"#000080"},"hljs-selector-tag":{fontWeight:"bold",color:"#000080"},"hljs-type":{fontWeight:"bold",color:"#000080"},"hljs-selector-id":{fontWeight:"bold",color:"#000080"},"hljs-selector-class":{fontWeight:"bold",color:"#000080"},"hljs-attribute":{fontWeight:"bold",color:"#0000ff"},"hljs-number":{fontWeight:"normal",color:"#0000ff"},"hljs-regexp":{fontWeight:"normal",color:"#0000ff"},"hljs-link":{fontWeight:"normal",color:"#0000ff"},"hljs-string":{color:"#008000",fontWeight:"bold"},"hljs-symbol":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-bullet":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-formula":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-doctag":{textDecoration:"underline"},"hljs-variable":{color:"#660e7a"},"hljs-template-variable":{color:"#660e7a"},"hljs-addition":{background:"#baeeba"},"hljs-deletion":{background:"#ffc8bd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}};var _S,PD;function xle(){return PD||(PD=1,_S=function(t,e,r,n){var s=typeof n<"u"?[n,t]:[t],i=new Blob(s,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(i,e);else{var a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),o=document.createElement("a");o.style.display="none",o.href=a,o.setAttribute("download",e),typeof o.download>"u"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(a)},200)}}),_S}var Ale=xle();const Ole=ot(Ale);var wS,jD;function Cle(){if(jD)return wS;jD=1;function t(e,r,n){for(var s=-1,i=e.length,a=r.length,o={};++s<i;){var u=s<a?r[s]:void 0;n(o,e[s],u)}return o}return wS=t,wS}var xS,ND;function Rle(){if(ND)return xS;ND=1;var t=_f(),e=Cle();function r(n,s){return e(n||[],s||[],t)}return xS=r,xS}var Tle=Rle();const Ile=ot(Tle);var kle=Qs();const Ple=ot(kle);/*!
215
- * repeat-string <https://github.com/jonschlinkert/repeat-string>
216
- *
217
- * Copyright (c) 2014-2015, Jon Schlinkert.
218
- * Licensed under the MIT License.
219
- */var AS,MD;function jle(){if(MD)return AS;MD=1;var t="",e;AS=r;function r(n,s){if(typeof n!="string")throw new TypeError("expected a string");if(s===1)return n;if(s===2)return n+n;var i=n.length*s;if(e!==n||typeof e>"u")e=n,t="";else if(t.length>=i)return t.substr(0,i);for(;i>t.length&&s>1;)s&1&&(t+=n),s>>=1,n+=n;return t+=n,t=t.substr(0,i),t}return AS}var OS,DD;function Nle(){if(DD)return OS;DD=1;var t=jle(),e=function(l){return l.split(/(<\/?[^>]+>)/g).filter(function(c){return c.trim()!==""})},r=function(l){return/<[^>!]+>/.test(l)},n=function(l){return/<\/+[^>]+>/.test(l)},s=function(l){return/<[^>]+\/>/.test(l)},i=function(l){return r(l)&&!n(l)&&!s(l)};OS=function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=l.indentor,p=l.textNodesOnSameLine,h=0,d=[];c=c||" ";var g=a(u).map(function(y,v,E){var b=y.value,_=y.type;_==="ClosingTag"&&h--;var w=t(c,h),S=w+b;if(_==="OpeningTag"&&h++,p){var A=E[v-1],T=E[v-2];_==="ClosingTag"&&A.type==="Text"&&T.type==="OpeningTag"&&(S=""+w+T.value+A.value+b,d.push(v-2,v-1))}return S});return d.forEach(function(y){return g[y]=null}),g.filter(function(y){return!!y}).join(`
220
- `)};function a(u){var l=e(u);return l.map(function(c){return{value:c,type:o(c)}})}function o(u){return n(u)?"ClosingTag":i(u)?"OpeningTag":s(u)?"SelfClosingTag":"Text"}return OS}var Mle=Nle();const Dle=ot(Mle);var CS,FD;function Fle(){if(FD)return CS;FD=1;var t=Qs();function e(r){return t(r).toLowerCase()}return CS=e,CS}var qle=Fle();const Ble=ot(qle);var lc;function F6(t){return lc=lc||document.createElement("textarea"),lc.innerHTML="&"+t+";",lc.value}var $le=Object.prototype.hasOwnProperty;function Lle(t,e){return t?$le.call(t,e):!1}function q6(t){var e=[].slice.call(arguments,1);return e.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){t[n]=r[n]})}}),t}var Ule=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function fu(t){return t.indexOf("\\")<0?t:t.replace(Ule,"$1")}function B6(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function F1(t){if(t>65535){t-=65536;var e=55296+(t>>10),r=56320+(t&1023);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var Vle=/&([a-z#][a-z0-9]{1,31});/gi,zle=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function Wle(t,e){var r=0,n=F6(e);return e!==n?n:e.charCodeAt(0)===35&&zle.test(e)&&(r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10),B6(r))?F1(r):t}function sa(t){return t.indexOf("&")<0?t:t.replace(Vle,Wle)}var Jle=/[&<>"]/,Hle=/[&<>"]/g,Kle={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Gle(t){return Kle[t]}function ln(t){return Jle.test(t)?t.replace(Hle,Gle):t}var Ye={};Ye.blockquote_open=function(){return`<blockquote>
221
- `};Ye.blockquote_close=function(t,e){return"</blockquote>"+ma(t,e)};Ye.code=function(t,e){return t[e].block?"<pre><code>"+ln(t[e].content)+"</code></pre>"+ma(t,e):"<code>"+ln(t[e].content)+"</code>"};Ye.fence=function(t,e,r,n,s){var i=t[e],a="",o=r.langPrefix,u="",l,c,p;if(i.params){if(l=i.params.split(/\s+/g),c=l.join(" "),Lle(s.rules.fence_custom,l[0]))return s.rules.fence_custom[l[0]](t,e,r,n,s);u=ln(sa(fu(c))),a=' class="'+o+u+'"'}return r.highlight?p=r.highlight.apply(r.highlight,[i.content].concat(l))||ln(i.content):p=ln(i.content),"<pre><code"+a+">"+p+"</code></pre>"+ma(t,e)};Ye.fence_custom={};Ye.heading_open=function(t,e){return"<h"+t[e].hLevel+">"};Ye.heading_close=function(t,e){return"</h"+t[e].hLevel+`>
222
- `};Ye.hr=function(t,e,r){return(r.xhtmlOut?"<hr />":"<hr>")+ma(t,e)};Ye.bullet_list_open=function(){return`<ul>
223
- `};Ye.bullet_list_close=function(t,e){return"</ul>"+ma(t,e)};Ye.list_item_open=function(){return"<li>"};Ye.list_item_close=function(){return`</li>
224
- `};Ye.ordered_list_open=function(t,e){var r=t[e],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
225
- `};Ye.ordered_list_close=function(t,e){return"</ol>"+ma(t,e)};Ye.paragraph_open=function(t,e){return t[e].tight?"":"<p>"};Ye.paragraph_close=function(t,e){var r=!(t[e].tight&&e&&t[e-1].type==="inline"&&!t[e-1].content);return(t[e].tight?"":"</p>")+(r?ma(t,e):"")};Ye.link_open=function(t,e,r){var n=t[e].title?' title="'+ln(sa(t[e].title))+'"':"",s=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+ln(t[e].href)+'"'+n+s+">"};Ye.link_close=function(){return"</a>"};Ye.image=function(t,e,r){var n=' src="'+ln(t[e].src)+'"',s=t[e].title?' title="'+ln(sa(t[e].title))+'"':"",i=' alt="'+(t[e].alt?ln(sa(fu(t[e].alt))):"")+'"',a=r.xhtmlOut?" /":"";return"<img"+n+i+s+a+">"};Ye.table_open=function(){return`<table>
226
- `};Ye.table_close=function(){return`</table>
227
- `};Ye.thead_open=function(){return`<thead>
228
- `};Ye.thead_close=function(){return`</thead>
229
- `};Ye.tbody_open=function(){return`<tbody>
230
- `};Ye.tbody_close=function(){return`</tbody>
231
- `};Ye.tr_open=function(){return"<tr>"};Ye.tr_close=function(){return`</tr>
232
- `};Ye.th_open=function(t,e){var r=t[e];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ye.th_close=function(){return"</th>"};Ye.td_open=function(t,e){var r=t[e];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ye.td_close=function(){return"</td>"};Ye.strong_open=function(){return"<strong>"};Ye.strong_close=function(){return"</strong>"};Ye.em_open=function(){return"<em>"};Ye.em_close=function(){return"</em>"};Ye.del_open=function(){return"<del>"};Ye.del_close=function(){return"</del>"};Ye.ins_open=function(){return"<ins>"};Ye.ins_close=function(){return"</ins>"};Ye.mark_open=function(){return"<mark>"};Ye.mark_close=function(){return"</mark>"};Ye.sub=function(t,e){return"<sub>"+ln(t[e].content)+"</sub>"};Ye.sup=function(t,e){return"<sup>"+ln(t[e].content)+"</sup>"};Ye.hardbreak=function(t,e,r){return r.xhtmlOut?`<br />
233
- `:`<br>
234
- `};Ye.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`<br />
235
- `:`<br>
236
- `:`
237
- `};Ye.text=function(t,e){return ln(t[e].content)};Ye.htmlblock=function(t,e){return t[e].content};Ye.htmltag=function(t,e){return t[e].content};Ye.abbr_open=function(t,e){return'<abbr title="'+ln(sa(t[e].title))+'">'};Ye.abbr_close=function(){return"</abbr>"};Ye.footnote_ref=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"};Ye.footnote_block_open=function(t,e,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
238
- `:`<hr class="footnotes-sep">
239
- `;return n+`<section class="footnotes">
240
- <ol class="footnotes-list">
241
- `};Ye.footnote_block_close=function(){return`</ol>
242
- </section>
243
- `};Ye.footnote_open=function(t,e){var r=Number(t[e].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};Ye.footnote_close=function(){return`</li>
244
- `};Ye.footnote_anchor=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'};Ye.dl_open=function(){return`<dl>
245
- `};Ye.dt_open=function(){return"<dt>"};Ye.dd_open=function(){return"<dd>"};Ye.dl_close=function(){return`</dl>
246
- `};Ye.dt_close=function(){return`</dt>
247
- `};Ye.dd_close=function(){return`</dd>
248
- `};function $6(t,e){return++e>=t.length-2?e:t[e].type==="paragraph_open"&&t[e].tight&&t[e+1].type==="inline"&&t[e+1].content.length===0&&t[e+2].type==="paragraph_close"&&t[e+2].tight?$6(t,e+2):e}var ma=Ye.getBreak=function(e,r){return r=$6(e,r),r<e.length&&e[r].type==="list_item_close"?"":`
249
- `};function nA(){this.rules=q6({},Ye),this.getBreak=Ye.getBreak}nA.prototype.renderInline=function(t,e,r){for(var n=this.rules,s=t.length,i=0,a="";s--;)a+=n[t[i].type](t,i++,e,r,this);return a};nA.prototype.render=function(t,e,r){for(var n=this.rules,s=t.length,i=-1,a="";++i<s;)t[i].type==="inline"?a+=this.renderInline(t[i].children,e,r):a+=n[t[i].type](t,i,e,r,this);return a};function xn(){this.__rules__=[],this.__cache__=null}xn.prototype.__find__=function(t){for(var e=this.__rules__.length,r=-1;e--;)if(this.__rules__[++r].name===t)return r;return-1};xn.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),t.__cache__={},e.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||t.__cache__[r].push(n.fn))})})};xn.prototype.at=function(t,e,r){var n=this.__find__(t),s=r||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=s.alt||[],this.__cache__=null};xn.prototype.before=function(t,e,r,n){var s=this.__find__(t),i=n||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};xn.prototype.after=function(t,e,r,n){var s=this.__find__(t),i=n||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s+1,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};xn.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};xn.prototype.enable=function(t,e){t=Array.isArray(t)?t:[t],e&&this.__rules__.forEach(function(r){r.enabled=!1}),t.forEach(function(r){var n=this.__find__(r);if(n<0)throw new Error("Rules manager: invalid rule name "+r);this.__rules__[n].enabled=!0},this),this.__cache__=null};xn.prototype.disable=function(t){t=Array.isArray(t)?t:[t],t.forEach(function(e){var r=this.__find__(e);if(r<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[r].enabled=!1},this),this.__cache__=null};xn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function Yle(t){t.inlineMode?t.tokens.push({type:"inline",content:t.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):t.block.parse(t.src,t.options,t.env,t.tokens)}function ga(t,e,r,n,s){this.src=t,this.env=n,this.options=r,this.parser=e,this.tokens=s,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}ga.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};ga.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level};ga.prototype.cacheSet=function(t,e){for(var r=this.cache.length;r<=t;r++)this.cache.push(0);this.cache[t]=e};ga.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0};function pu(t,e){var r,n,s,i=-1,a=t.posMax,o=t.pos,u=t.isInLabel;if(t.isInLabel)return-1;if(t.labelUnmatchedScopes)return t.labelUnmatchedScopes--,-1;for(t.pos=e+1,t.isInLabel=!0,r=1;t.pos<a;){if(s=t.src.charCodeAt(t.pos),s===91)r++;else if(s===93&&(r--,r===0)){n=!0;break}t.parser.skipToken(t)}return n?(i=t.pos,t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=r-1,t.pos=o,t.isInLabel=u,i}function Xle(t,e,r,n){var s,i,a,o,u,l;if(t.charCodeAt(0)!==42||t.charCodeAt(1)!==91||t.indexOf("]:")===-1||(s=new ga(t,e,r,n,[]),i=pu(s,1),i<0||t.charCodeAt(i+1)!==58))return-1;for(o=s.posMax,a=i+2;a<o&&s.src.charCodeAt(a)!==10;a++);return u=t.slice(2,i),l=t.slice(i+2,a).trim(),l.length===0?-1:(n.abbreviations||(n.abbreviations={}),typeof n.abbreviations[":"+u]>"u"&&(n.abbreviations[":"+u]=l),a)}function Zle(t){var e=t.tokens,r,n,s,i;if(!t.inlineMode){for(r=1,n=e.length-1;r<n;r++)if(e[r-1].type==="paragraph_open"&&e[r].type==="inline"&&e[r+1].type==="paragraph_close"){for(s=e[r].content;s.length&&(i=Xle(s,t.inline,t.options,t.env),!(i<0));)s=s.slice(i).trim();e[r].content=s,s.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function q1(t){var e=sa(t);try{e=decodeURI(e)}catch{}return encodeURI(e)}function L6(t,e){var r,n,s,i=e,a=t.posMax;if(t.src.charCodeAt(e)===60){for(e++;e<a;){if(r=t.src.charCodeAt(e),r===10)return!1;if(r===62)return s=q1(fu(t.src.slice(i+1,e))),t.parser.validateLink(s)?(t.pos=e+1,t.linkContent=s,!0):!1;if(r===92&&e+1<a){e+=2;continue}e++}return!1}for(n=0;e<a&&(r=t.src.charCodeAt(e),!(r===32||r<32||r===127));){if(r===92&&e+1<a){e+=2;continue}if(r===40&&(n++,n>1)||r===41&&(n--,n<0))break;e++}return i===e||(s=fu(t.src.slice(i,e)),!t.parser.validateLink(s))?!1:(t.linkContent=s,t.pos=e,!0)}function U6(t,e){var r,n=e,s=t.posMax,i=t.src.charCodeAt(e);if(i!==34&&i!==39&&i!==40)return!1;for(e++,i===40&&(i=41);e<s;){if(r=t.src.charCodeAt(e),r===i)return t.pos=e+1,t.linkContent=fu(t.src.slice(n+1,e)),!0;if(r===92&&e+1<s){e+=2;continue}e++}return!1}function V6(t){return t.trim().replace(/\s+/g," ").toUpperCase()}function Qle(t,e,r,n){var s,i,a,o,u,l,c,p,h;if(t.charCodeAt(0)!==91||t.indexOf("]:")===-1||(s=new ga(t,e,r,n,[]),i=pu(s,0),i<0||t.charCodeAt(i+1)!==58))return-1;for(o=s.posMax,a=i+2;a<o&&(u=s.src.charCodeAt(a),!(u!==32&&u!==10));a++);if(!L6(s,a))return-1;for(c=s.linkContent,a=s.pos,l=a,a=a+1;a<o&&(u=s.src.charCodeAt(a),!(u!==32&&u!==10));a++);for(a<o&&l!==a&&U6(s,a)?(p=s.linkContent,a=s.pos):(p="",a=l);a<o&&s.src.charCodeAt(a)===32;)a++;return a<o&&s.src.charCodeAt(a)!==10?-1:(h=V6(t.slice(1,i)),typeof n.references[h]>"u"&&(n.references[h]={title:p,href:c}),a)}function ece(t){var e=t.tokens,r,n,s,i;if(t.env.references=t.env.references||{},!t.inlineMode){for(r=1,n=e.length-1;r<n;r++)if(e[r].type==="inline"&&e[r-1].type==="paragraph_open"&&e[r+1].type==="paragraph_close"){for(s=e[r].content;s.length&&(i=Qle(s,t.inline,t.options,t.env),!(i<0));)s=s.slice(i).trim();e[r].content=s,s.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function tce(t){var e=t.tokens,r,n,s;for(n=0,s=e.length;n<s;n++)r=e[n],r.type==="inline"&&t.inline.parse(r.content,t.options,t.env,r.children)}function rce(t){var e,r,n,s,i,a,o,u,l,c=0,p=!1,h={};if(t.env.footnotes&&(t.tokens=t.tokens.filter(function(d){return d.type==="footnote_reference_open"?(p=!0,u=[],l=d.label,!1):d.type==="footnote_reference_close"?(p=!1,h[":"+l]=u,!1):(p&&u.push(d),!p)}),!!t.env.footnotes.list)){for(a=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:c++}),e=0,r=a.length;e<r;e++){for(t.tokens.push({type:"footnote_open",id:e,level:c++}),a[e].tokens?(o=[],o.push({type:"paragraph_open",tight:!1,level:c++}),o.push({type:"inline",content:"",level:c,children:a[e].tokens}),o.push({type:"paragraph_close",tight:!1,level:--c})):a[e].label&&(o=h[":"+a[e].label]),t.tokens=t.tokens.concat(o),t.tokens[t.tokens.length-1].type==="paragraph_close"?i=t.tokens.pop():i=null,s=a[e].count>0?a[e].count:1,n=0;n<s;n++)t.tokens.push({type:"footnote_anchor",id:e,subId:n,level:c});i&&t.tokens.push(i),t.tokens.push({type:"footnote_close",level:--c})}t.tokens.push({type:"footnote_block_close",level:--c})}}var qD=`
250
- ()[]'".,!?-`;function RS(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function nce(t){var e,r,n,s,i,a,o,u,l,c,p,h,d=t.tokens;if(t.env.abbreviations){for(t.env.abbrRegExp||(h="(^|["+qD.split("").map(RS).join("")+"])("+Object.keys(t.env.abbreviations).map(function(g){return g.substr(1)}).sort(function(g,y){return y.length-g.length}).map(RS).join("|")+")($|["+qD.split("").map(RS).join("")+"])",t.env.abbrRegExp=new RegExp(h,"g")),c=t.env.abbrRegExp,r=0,n=d.length;r<n;r++)if(d[r].type==="inline"){for(s=d[r].children,e=s.length-1;e>=0;e--)if(i=s[e],i.type==="text"){for(u=0,a=i.content,c.lastIndex=0,l=i.level,o=[];p=c.exec(a);)c.lastIndex>u&&o.push({type:"text",content:a.slice(u,p.index+p[1].length),level:l}),o.push({type:"abbr_open",title:t.env.abbreviations[":"+p[2]],level:l++}),o.push({type:"text",content:p[2],level:l}),o.push({type:"abbr_close",level:--l}),u=c.lastIndex-p[3].length;o.length&&(u<a.length&&o.push({type:"text",content:a.slice(u),level:l}),d[r].children=s=[].concat(s.slice(0,e),o,s.slice(e+1)))}}}}var sce=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ice=/\((c|tm|r|p)\)/ig,ace={c:"©",r:"®",p:"§",tm:"™"};function oce(t){return t.indexOf("(")<0?t:t.replace(ice,function(e,r){return ace[r.toLowerCase()]})}function uce(t){var e,r,n,s,i;if(t.options.typographer){for(i=t.tokens.length-1;i>=0;i--)if(t.tokens[i].type==="inline")for(s=t.tokens[i].children,e=s.length-1;e>=0;e--)r=s[e],r.type==="text"&&(n=r.content,n=oce(n),sce.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=n)}}var lce=/['"]/,BD=/['"]/g,cce=/[-\s()\[\]]/,$D="’";function LD(t,e){return e<0||e>=t.length?!1:!cce.test(t[e])}function Ta(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}function fce(t){var e,r,n,s,i,a,o,u,l,c,p,h,d,g,y,v,E;if(t.options.typographer){for(E=[],y=t.tokens.length-1;y>=0;y--)if(t.tokens[y].type==="inline"){for(v=t.tokens[y].children,E.length=0,e=0;e<v.length;e++)if(r=v[e],!(r.type!=="text"||lce.test(r.text))){for(o=v[e].level,d=E.length-1;d>=0&&!(E[d].level<=o);d--);E.length=d+1,n=r.content,i=0,a=n.length;e:for(;i<a&&(BD.lastIndex=i,s=BD.exec(n),!!s);){if(u=!LD(n,s.index-1),i=s.index+1,g=s[0]==="'",l=!LD(n,i),!l&&!u){g&&(r.content=Ta(r.content,s.index,$D));continue}if(p=!l,h=!u,h){for(d=E.length-1;d>=0&&(c=E[d],!(E[d].level<o));d--)if(c.single===g&&E[d].level===o){c=E[d],g?(v[c.token].content=Ta(v[c.token].content,c.pos,t.options.quotes[2]),r.content=Ta(r.content,s.index,t.options.quotes[3])):(v[c.token].content=Ta(v[c.token].content,c.pos,t.options.quotes[0]),r.content=Ta(r.content,s.index,t.options.quotes[1])),E.length=d;continue e}}p?E.push({token:e,pos:s.index,single:g,level:o}):h&&g&&(r.content=Ta(r.content,s.index,$D))}}}}}var TS=[["block",Yle],["abbr",Zle],["references",ece],["inline",tce],["footnote_tail",rce],["abbr2",nce],["replacements",uce],["smartquotes",fce]];function z6(){this.options={},this.ruler=new xn;for(var t=0;t<TS.length;t++)this.ruler.push(TS[t][0],TS[t][1])}z6.prototype.process=function(t){var e,r,n;for(n=this.ruler.getRules(""),e=0,r=n.length;e<r;e++)n[e](t)};function ya(t,e,r,n,s){var i,a,o,u,l,c,p;for(this.src=t,this.parser=e,this.options=r,this.env=n,this.tokens=s,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",a=this.src,c=0,p=!1,o=u=c=0,l=a.length;u<l;u++){if(i=a.charCodeAt(u),!p)if(i===32){c++;continue}else p=!0;(i===10||u===l-1)&&(i!==10&&u++,this.bMarks.push(o),this.eMarks.push(u),this.tShift.push(c),p=!1,c=0,o=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}ya.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ya.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};ya.prototype.skipSpaces=function(e){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===32;e++);return e};ya.prototype.skipChars=function(e,r){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===r;e++);return e};ya.prototype.skipCharsBack=function(e,r,n){if(e<=n)return e;for(;e>n;)if(r!==this.src.charCodeAt(--e))return e+1;return e};ya.prototype.getLines=function(e,r,n,s){var i,a,o,u,l,c=e;if(e>=r)return"";if(c+1===r)return a=this.bMarks[c]+Math.min(this.tShift[c],n),o=s?this.eMarks[c]+1:this.eMarks[c],this.src.slice(a,o);for(u=new Array(r-e),i=0;c<r;c++,i++)l=this.tShift[c],l>n&&(l=n),l<0&&(l=0),a=this.bMarks[c]+l,c+1<r||s?o=this.eMarks[c]+1:o=this.eMarks[c],u[i]=this.src.slice(a,o);return u.join("")};function pce(t,e,r){var n,s;if(t.tShift[e]-t.blkIndent<4)return!1;for(s=n=e+1;n<r;){if(t.isEmpty(n)){n++;continue}if(t.tShift[n]-t.blkIndent>=4){n++,s=n;continue}break}return t.line=n,t.tokens.push({type:"code",content:t.getLines(e,s,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}function dce(t,e,r,n){var s,i,a,o,u,l=!1,c=t.bMarks[e]+t.tShift[e],p=t.eMarks[e];if(c+3>p||(s=t.src.charCodeAt(c),s!==126&&s!==96)||(u=c,c=t.skipChars(c,s),i=c-u,i<3)||(a=t.src.slice(c,p).trim(),a.indexOf("`")>=0))return!1;if(n)return!0;for(o=e;o++,!(o>=r||(c=u=t.bMarks[o]+t.tShift[o],p=t.eMarks[o],c<p&&t.tShift[o]<t.blkIndent));)if(t.src.charCodeAt(c)===s&&!(t.tShift[o]-t.blkIndent>=4)&&(c=t.skipChars(c,s),!(c-u<i)&&(c=t.skipSpaces(c),!(c<p)))){l=!0;break}return i=t.tShift[e],t.line=o+(l?1:0),t.tokens.push({type:"fence",params:a,content:t.getLines(e+1,o,i,!0),lines:[e,t.line],level:t.level}),!0}function hce(t,e,r,n){var s,i,a,o,u,l,c,p,h,d,g,y=t.bMarks[e]+t.tShift[e],v=t.eMarks[e];if(y>v||t.src.charCodeAt(y++)!==62||t.level>=t.options.maxNesting)return!1;if(n)return!0;for(t.src.charCodeAt(y)===32&&y++,u=t.blkIndent,t.blkIndent=0,o=[t.bMarks[e]],t.bMarks[e]=y,y=y<v?t.skipSpaces(y):y,i=y>=v,a=[t.tShift[e]],t.tShift[e]=y-t.bMarks[e],p=t.parser.ruler.getRules("blockquote"),s=e+1;s<r&&(y=t.bMarks[s]+t.tShift[s],v=t.eMarks[s],!(y>=v));s++){if(t.src.charCodeAt(y++)===62){t.src.charCodeAt(y)===32&&y++,o.push(t.bMarks[s]),t.bMarks[s]=y,y=y<v?t.skipSpaces(y):y,i=y>=v,a.push(t.tShift[s]),t.tShift[s]=y-t.bMarks[s];continue}if(i)break;for(g=!1,h=0,d=p.length;h<d;h++)if(p[h](t,s,r,!0)){g=!0;break}if(g)break;o.push(t.bMarks[s]),a.push(t.tShift[s]),t.tShift[s]=-1337}for(l=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:c=[e,0],level:t.level++}),t.parser.tokenize(t,e,s),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=l,c[1]=t.line,h=0;h<a.length;h++)t.bMarks[h+e]=o[h],t.tShift[h+e]=a[h];return t.blkIndent=u,!0}function mce(t,e,r,n){var s,i,a,o=t.bMarks[e],u=t.eMarks[e];if(o+=t.tShift[e],o>u||(s=t.src.charCodeAt(o++),s!==42&&s!==45&&s!==95))return!1;for(i=1;o<u;){if(a=t.src.charCodeAt(o++),a!==s&&a!==32)return!1;a===s&&i++}return i<3?!1:(n||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level})),!0)}function UD(t,e){var r,n,s;return n=t.bMarks[e]+t.tShift[e],s=t.eMarks[e],n>=s||(r=t.src.charCodeAt(n++),r!==42&&r!==45&&r!==43)||n<s&&t.src.charCodeAt(n)!==32?-1:n}function VD(t,e){var r,n=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(n+1>=s||(r=t.src.charCodeAt(n++),r<48||r>57))return-1;for(;;){if(n>=s)return-1;if(r=t.src.charCodeAt(n++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n<s&&t.src.charCodeAt(n)!==32?-1:n}function gce(t,e){var r,n,s=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===s&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function yce(t,e,r,n){var s,i,a,o,u,l,c,p,h,d,g,y,v,E,b,_,w,S,A=!0,T,k,P,F;if((p=VD(t,e))>=0)v=!0;else if((p=UD(t,e))>=0)v=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(y=t.src.charCodeAt(p-1),n)return!0;for(b=t.tokens.length,v?(c=t.bMarks[e]+t.tShift[e],g=Number(t.src.substr(c,p-c-1)),t.tokens.push({type:"ordered_list_open",order:g,lines:w=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:w=[e,0],level:t.level++}),s=e,_=!1,T=t.parser.ruler.getRules("list");s<r&&(E=t.skipSpaces(p),h=t.eMarks[s],E>=h?d=1:d=E-p,d>4&&(d=1),d<1&&(d=1),i=p-t.bMarks[s]+d,t.tokens.push({type:"list_item_open",lines:S=[e,0],level:t.level++}),o=t.blkIndent,u=t.tight,a=t.tShift[e],l=t.parentType,t.tShift[e]=E-t.bMarks[e],t.blkIndent=i,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,r,!0),(!t.tight||_)&&(A=!1),_=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=o,t.tShift[e]=a,t.tight=u,t.parentType=l,t.tokens.push({type:"list_item_close",level:--t.level}),s=e=t.line,S[1]=s,E=t.bMarks[e],!(s>=r||t.isEmpty(s)||t.tShift[s]<t.blkIndent));){for(F=!1,k=0,P=T.length;k<P;k++)if(T[k](t,s,r,!0)){F=!0;break}if(F)break;if(v){if(p=VD(t,s),p<0)break}else if(p=UD(t,s),p<0)break;if(y!==t.src.charCodeAt(p-1))break}return t.tokens.push({type:v?"ordered_list_close":"bullet_list_close",level:--t.level}),w[1]=s,t.line=s,A&&gce(t,b),!0}function vce(t,e,r,n){var s,i,a,o,u,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(l+4>c||t.src.charCodeAt(l)!==91||t.src.charCodeAt(l+1)!==94||t.level>=t.options.maxNesting)return!1;for(o=l+2;o<c;o++){if(t.src.charCodeAt(o)===32)return!1;if(t.src.charCodeAt(o)===93)break}return o===l+2||o+1>=c||t.src.charCodeAt(++o)!==58?!1:(n||(o++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),u=t.src.slice(l+2,o-2),t.env.footnotes.refs[":"+u]=-1,t.tokens.push({type:"footnote_reference_open",label:u,level:t.level++}),s=t.bMarks[e],i=t.tShift[e],a=t.parentType,t.tShift[e]=t.skipSpaces(o)-o,t.bMarks[e]=o,t.blkIndent+=4,t.parentType="footnote",t.tShift[e]<t.blkIndent&&(t.tShift[e]+=t.blkIndent,t.bMarks[e]-=t.blkIndent),t.parser.tokenize(t,e,r,!0),t.parentType=a,t.blkIndent-=4,t.tShift[e]=i,t.bMarks[e]=s,t.tokens.push({type:"footnote_reference_close",level:--t.level})),!0)}function bce(t,e,r,n){var s,i,a,o=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];if(o>=u||(s=t.src.charCodeAt(o),s!==35||o>=u))return!1;for(i=1,s=t.src.charCodeAt(++o);s===35&&o<u&&i<=6;)i++,s=t.src.charCodeAt(++o);return i>6||o<u&&s!==32?!1:(n||(u=t.skipCharsBack(u,32,o),a=t.skipCharsBack(u,35,o),a>o&&t.src.charCodeAt(a-1)===32&&(u=a),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:i,lines:[e,t.line],level:t.level}),o<u&&t.tokens.push({type:"inline",content:t.src.slice(o,u).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:i,level:t.level})),!0)}function Ece(t,e,r){var n,s,i,a=e+1;return a>=r||t.tShift[a]<t.blkIndent||t.tShift[a]-t.blkIndent>3||(s=t.bMarks[a]+t.tShift[a],i=t.eMarks[a],s>=i)||(n=t.src.charCodeAt(s),n!==45&&n!==61)||(s=t.skipChars(s,n),s=t.skipSpaces(s),s<i)?!1:(s=t.bMarks[e]+t.tShift[e],t.line=a+1,t.tokens.push({type:"heading_open",hLevel:n===61?1:2,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:t.src.slice(s,t.eMarks[e]).trim(),level:t.level+1,lines:[e,t.line-1],children:[]}),t.tokens.push({type:"heading_close",hLevel:n===61?1:2,level:t.level}),!0)}var W6={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(t){W6[t]=!0});var Sce=/^<([a-zA-Z]{1,15})[\s\/>]/,_ce=/^<\/([a-zA-Z]{1,15})[\s>]/;function wce(t){var e=t|32;return e>=97&&e<=122}function xce(t,e,r,n){var s,i,a,o=t.bMarks[e],u=t.eMarks[e],l=t.tShift[e];if(o+=l,!t.options.html||l>3||o+2>=u||t.src.charCodeAt(o)!==60)return!1;if(s=t.src.charCodeAt(o+1),s===33||s===63){if(n)return!0}else if(s===47||wce(s)){if(s===47){if(i=t.src.slice(o,u).match(_ce),!i)return!1}else if(i=t.src.slice(o,u).match(Sce),!i)return!1;if(W6[i[1].toLowerCase()]!==!0)return!1;if(n)return!0}else return!1;for(a=e+1;a<t.lineMax&&!t.isEmpty(a);)a++;return t.line=a,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,a,0,!0)}),!0}function IS(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function Ace(t,e,r,n){var s,i,a,o,u,l,c,p,h,d,g;if(e+2>r||(u=e+1,t.tShift[u]<t.blkIndent)||(a=t.bMarks[u]+t.tShift[u],a>=t.eMarks[u])||(s=t.src.charCodeAt(a),s!==124&&s!==45&&s!==58)||(i=IS(t,e+1),!/^[-:| ]+$/.test(i))||(l=i.split("|"),l<=2))return!1;for(p=[],o=0;o<l.length;o++){if(h=l[o].trim(),!h){if(o===0||o===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;h.charCodeAt(h.length-1)===58?p.push(h.charCodeAt(0)===58?"center":"right"):h.charCodeAt(0)===58?p.push("left"):p.push("")}if(i=IS(t,e).trim(),i.indexOf("|")===-1||(l=i.replace(/^\||\|$/g,"").split("|"),p.length!==l.length))return!1;if(n)return!0;for(t.tokens.push({type:"table_open",lines:d=[e,0],level:t.level++}),t.tokens.push({type:"thead_open",lines:[e,e+1],level:t.level++}),t.tokens.push({type:"tr_open",lines:[e,e+1],level:t.level++}),o=0;o<l.length;o++)t.tokens.push({type:"th_open",align:p[o],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:l[o].trim(),lines:[e,e+1],level:t.level,children:[]}),t.tokens.push({type:"th_close",level:--t.level});for(t.tokens.push({type:"tr_close",level:--t.level}),t.tokens.push({type:"thead_close",level:--t.level}),t.tokens.push({type:"tbody_open",lines:g=[e+2,0],level:t.level++}),u=e+2;u<r&&!(t.tShift[u]<t.blkIndent||(i=IS(t,u).trim(),i.indexOf("|")===-1));u++){for(l=i.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),o=0;o<l.length;o++)t.tokens.push({type:"td_open",align:p[o],level:t.level++}),c=l[o].substring(l[o].charCodeAt(0)===124?1:0,l[o].charCodeAt(l[o].length-1)===124?l[o].length-1:l[o].length).trim(),t.tokens.push({type:"inline",content:c,level:t.level,children:[]}),t.tokens.push({type:"td_close",level:--t.level});t.tokens.push({type:"tr_close",level:--t.level})}return t.tokens.push({type:"tbody_close",level:--t.level}),t.tokens.push({type:"table_close",level:--t.level}),d[1]=g[1]=u,t.line=u,!0}function cc(t,e){var r,n,s=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return s>=i||(n=t.src.charCodeAt(s++),n!==126&&n!==58)||(r=t.skipSpaces(s),s===r)||r>=i?-1:r}function Oce(t,e){var r,n,s=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===s&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function Cce(t,e,r,n){var s,i,a,o,u,l,c,p,h,d,g,y,v,E;if(n)return t.ddIndent<0?!1:cc(t,e)>=0;if(c=e+1,t.isEmpty(c)&&++c>r||t.tShift[c]<t.blkIndent||(s=cc(t,c),s<0)||t.level>=t.options.maxNesting)return!1;l=t.tokens.length,t.tokens.push({type:"dl_open",lines:u=[e,0],level:t.level++}),a=e,i=c;e:for(;;){for(E=!0,v=!1,t.tokens.push({type:"dt_open",lines:[a,a],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(a,a+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[a,a],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:o=[c,0],level:t.level++}),y=t.tight,h=t.ddIndent,p=t.blkIndent,g=t.tShift[i],d=t.parentType,t.blkIndent=t.ddIndent=t.tShift[i]+2,t.tShift[i]=s-t.bMarks[i],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,i,r,!0),(!t.tight||v)&&(E=!1),v=t.line-i>1&&t.isEmpty(t.line-1),t.tShift[i]=g,t.tight=y,t.parentType=d,t.blkIndent=p,t.ddIndent=h,t.tokens.push({type:"dd_close",level:--t.level}),o[1]=c=t.line,c>=r||t.tShift[c]<t.blkIndent)break e;if(s=cc(t,c),s<0)break;i=c}if(c>=r||(a=c,t.isEmpty(a))||t.tShift[a]<t.blkIndent||(i=a+1,i>=r)||(t.isEmpty(i)&&i++,i>=r)||t.tShift[i]<t.blkIndent||(s=cc(t,i),s<0))break}return t.tokens.push({type:"dl_close",level:--t.level}),u[1]=c,t.line=c,E&&Oce(t,l),!0}function Rce(t,e){var r,n,s,i,a,o=e+1,u;if(r=t.lineMax,o<r&&!t.isEmpty(o)){for(u=t.parser.ruler.getRules("paragraph");o<r&&!t.isEmpty(o);o++)if(!(t.tShift[o]-t.blkIndent>3)){for(s=!1,i=0,a=u.length;i<a;i++)if(u[i](t,o,r,!0)){s=!0;break}if(s)break}}return n=t.getLines(e,o,t.blkIndent,!1).trim(),t.line=o,n.length&&(t.tokens.push({type:"paragraph_open",tight:!1,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:n,level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"paragraph_close",tight:!1,level:t.level})),!0}var fc=[["code",pce],["fences",dce,["paragraph","blockquote","list"]],["blockquote",hce,["paragraph","blockquote","list"]],["hr",mce,["paragraph","blockquote","list"]],["list",yce,["paragraph","blockquote"]],["footnote",vce,["paragraph"]],["heading",bce,["paragraph","blockquote"]],["lheading",Ece],["htmlblock",xce,["paragraph","blockquote"]],["table",Ace,["paragraph"]],["deflist",Cce,["paragraph"]],["paragraph",Rce]];function sA(){this.ruler=new xn;for(var t=0;t<fc.length;t++)this.ruler.push(fc[t][0],fc[t][1],{alt:(fc[t][2]||[]).slice()})}sA.prototype.tokenize=function(t,e,r){for(var n=this.ruler.getRules(""),s=n.length,i=e,a=!1,o,u;i<r&&(t.line=i=t.skipEmptyLines(i),!(i>=r||t.tShift[i]<t.blkIndent));){for(u=0;u<s&&(o=n[u](t,i,r,!1),!o);u++);if(t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),i=t.line,i<r&&t.isEmpty(i)){if(a=!0,i++,i<r&&t.parentType==="list"&&t.isEmpty(i))break;t.line=i}}};var Tce=/[\n\t]/g,Ice=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,kce=/\u00a0/g;sA.prototype.parse=function(t,e,r,n){var s,i=0,a=0;if(!t)return[];t=t.replace(kce," "),t=t.replace(Ice,`
251
- `),t.indexOf(" ")>=0&&(t=t.replace(Tce,function(o,u){var l;return t.charCodeAt(u)===10?(i=u+1,a=0,o):(l=" ".slice((u-i-a)%4),a=u-i+1,l)})),s=new ya(t,this,e,r,n),this.tokenize(s,s.line,s.lineMax)};function Pce(t){switch(t){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function jce(t,e){for(var r=t.pos;r<t.posMax&&!Pce(t.src.charCodeAt(r));)r++;return r===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}function Nce(t,e){var r,n,s=t.pos;if(t.src.charCodeAt(s)!==10)return!1;if(r=t.pending.length-1,n=t.posMax,!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var i=r-2;i>=0;i--)if(t.pending.charCodeAt(i)!==32){t.pending=t.pending.substring(0,i+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(s++;s<n&&t.src.charCodeAt(s)===32;)s++;return t.pos=s,!0}var iA=[];for(var zD=0;zD<256;zD++)iA.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){iA[t.charCodeAt(0)]=1});function Mce(t,e){var r,n=t.pos,s=t.posMax;if(t.src.charCodeAt(n)!==92)return!1;if(n++,n<s){if(r=t.src.charCodeAt(n),r<256&&iA[r]!==0)return e||(t.pending+=t.src[n]),t.pos+=2,!0;if(r===10){for(e||t.push({type:"hardbreak",level:t.level}),n++;n<s&&t.src.charCodeAt(n)===32;)n++;return t.pos=n,!0}}return e||(t.pending+="\\"),t.pos++,!0}function Dce(t,e){var r,n,s,i,a,o=t.pos,u=t.src.charCodeAt(o);if(u!==96)return!1;for(r=o,o++,n=t.posMax;o<n&&t.src.charCodeAt(o)===96;)o++;for(s=t.src.slice(r,o),i=a=o;(i=t.src.indexOf("`",a))!==-1;){for(a=i+1;a<n&&t.src.charCodeAt(a)===96;)a++;if(a-i===s.length)return e||t.push({type:"code",content:t.src.slice(o,i).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=a,!0}return e||(t.pending+=s),t.pos+=s.length,!0}function Fce(t,e){var r,n,s,i=t.posMax,a=t.pos,o,u;if(t.src.charCodeAt(a)!==126||e||a+4>=i||t.src.charCodeAt(a+1)!==126||t.level>=t.options.maxNesting||(o=a>0?t.src.charCodeAt(a-1):-1,u=t.src.charCodeAt(a+2),o===126)||u===126||u===32||u===10)return!1;for(n=a+2;n<i&&t.src.charCodeAt(n)===126;)n++;if(n>a+3)return t.pos+=n-a,e||(t.pending+=t.src.slice(a,n)),!0;for(t.pos=a+2,s=1;t.pos+1<i;){if(t.src.charCodeAt(t.pos)===126&&t.src.charCodeAt(t.pos+1)===126&&(o=t.src.charCodeAt(t.pos-1),u=t.pos+2<i?t.src.charCodeAt(t.pos+2):-1,u!==126&&o!==126&&(o!==32&&o!==10?s--:u!==32&&u!==10&&s++,s<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=a+2,e||(t.push({type:"del_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"del_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=i,!0):(t.pos=a,!1)}function qce(t,e){var r,n,s,i=t.posMax,a=t.pos,o,u;if(t.src.charCodeAt(a)!==43||e||a+4>=i||t.src.charCodeAt(a+1)!==43||t.level>=t.options.maxNesting||(o=a>0?t.src.charCodeAt(a-1):-1,u=t.src.charCodeAt(a+2),o===43)||u===43||u===32||u===10)return!1;for(n=a+2;n<i&&t.src.charCodeAt(n)===43;)n++;if(n!==a+2)return t.pos+=n-a,e||(t.pending+=t.src.slice(a,n)),!0;for(t.pos=a+2,s=1;t.pos+1<i;){if(t.src.charCodeAt(t.pos)===43&&t.src.charCodeAt(t.pos+1)===43&&(o=t.src.charCodeAt(t.pos-1),u=t.pos+2<i?t.src.charCodeAt(t.pos+2):-1,u!==43&&o!==43&&(o!==32&&o!==10?s--:u!==32&&u!==10&&s++,s<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=a+2,e||(t.push({type:"ins_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"ins_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=i,!0):(t.pos=a,!1)}function Bce(t,e){var r,n,s,i=t.posMax,a=t.pos,o,u;if(t.src.charCodeAt(a)!==61||e||a+4>=i||t.src.charCodeAt(a+1)!==61||t.level>=t.options.maxNesting||(o=a>0?t.src.charCodeAt(a-1):-1,u=t.src.charCodeAt(a+2),o===61)||u===61||u===32||u===10)return!1;for(n=a+2;n<i&&t.src.charCodeAt(n)===61;)n++;if(n!==a+2)return t.pos+=n-a,e||(t.pending+=t.src.slice(a,n)),!0;for(t.pos=a+2,s=1;t.pos+1<i;){if(t.src.charCodeAt(t.pos)===61&&t.src.charCodeAt(t.pos+1)===61&&(o=t.src.charCodeAt(t.pos-1),u=t.pos+2<i?t.src.charCodeAt(t.pos+2):-1,u!==61&&o!==61&&(o!==32&&o!==10?s--:u!==32&&u!==10&&s++,s<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=a+2,e||(t.push({type:"mark_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"mark_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=i,!0):(t.pos=a,!1)}function WD(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function JD(t,e){var r=e,n,s,i,a=!0,o=!0,u=t.posMax,l=t.src.charCodeAt(e);for(n=e>0?t.src.charCodeAt(e-1):-1;r<u&&t.src.charCodeAt(r)===l;)r++;return r>=u&&(a=!1),i=r-e,i>=4?a=o=!1:(s=r<u?t.src.charCodeAt(r):-1,(s===32||s===10)&&(a=!1),(n===32||n===10)&&(o=!1),l===95&&(WD(n)&&(a=!1),WD(s)&&(o=!1))),{can_open:a,can_close:o,delims:i}}function $ce(t,e){var r,n,s,i,a,o,u,l=t.posMax,c=t.pos,p=t.src.charCodeAt(c);if(p!==95&&p!==42||e)return!1;if(u=JD(t,c),r=u.delims,!u.can_open)return t.pos+=r,e||(t.pending+=t.src.slice(c,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=c+r,o=[r];t.pos<l;){if(t.src.charCodeAt(t.pos)===p){if(u=JD(t,t.pos),n=u.delims,u.can_close){for(i=o.pop(),a=n;i!==a;){if(a<i){o.push(i-a);break}if(a-=i,o.length===0)break;t.pos+=i,i=o.pop()}if(o.length===0){r=i,s=!0;break}t.pos+=n;continue}u.can_open&&o.push(n),t.pos+=n;continue}t.parser.skipToken(t)}return s?(t.posMax=t.pos,t.pos=c+r,e||((r===2||r===3)&&t.push({type:"strong_open",level:t.level++}),(r===1||r===3)&&t.push({type:"em_open",level:t.level++}),t.parser.tokenize(t),(r===1||r===3)&&t.push({type:"em_close",level:--t.level}),(r===2||r===3)&&t.push({type:"strong_close",level:--t.level})),t.pos=t.posMax+r,t.posMax=l,!0):(t.pos=c,!1)}var Lce=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Uce(t,e){var r,n,s=t.posMax,i=t.pos;if(t.src.charCodeAt(i)!==126||e||i+2>=s||t.level>=t.options.maxNesting)return!1;for(t.pos=i+1;t.pos<s;){if(t.src.charCodeAt(t.pos)===126){r=!0;break}t.parser.skipToken(t)}return!r||i+1===t.pos||(n=t.src.slice(i+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,e||t.push({type:"sub",level:t.level,content:n.replace(Lce,"$1")}),t.pos=t.posMax+1,t.posMax=s,!0)}var Vce=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function zce(t,e){var r,n,s=t.posMax,i=t.pos;if(t.src.charCodeAt(i)!==94||e||i+2>=s||t.level>=t.options.maxNesting)return!1;for(t.pos=i+1;t.pos<s;){if(t.src.charCodeAt(t.pos)===94){r=!0;break}t.parser.skipToken(t)}return!r||i+1===t.pos||(n=t.src.slice(i+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,e||t.push({type:"sup",level:t.level,content:n.replace(Vce,"$1")}),t.pos=t.posMax+1,t.posMax=s,!0)}function Wce(t,e){var r,n,s,i,a,o,u,l,c=!1,p=t.pos,h=t.posMax,d=t.pos,g=t.src.charCodeAt(d);if(g===33&&(c=!0,g=t.src.charCodeAt(++d)),g!==91||t.level>=t.options.maxNesting||(r=d+1,n=pu(t,d),n<0))return!1;if(o=n+1,o<h&&t.src.charCodeAt(o)===40){for(o++;o<h&&(l=t.src.charCodeAt(o),!(l!==32&&l!==10));o++);if(o>=h)return!1;for(d=o,L6(t,o)?(i=t.linkContent,o=t.pos):i="",d=o;o<h&&(l=t.src.charCodeAt(o),!(l!==32&&l!==10));o++);if(o<h&&d!==o&&U6(t,o))for(a=t.linkContent,o=t.pos;o<h&&(l=t.src.charCodeAt(o),!(l!==32&&l!==10));o++);else a="";if(o>=h||t.src.charCodeAt(o)!==41)return t.pos=p,!1;o++}else{if(t.linkLevel>0)return!1;for(;o<h&&(l=t.src.charCodeAt(o),!(l!==32&&l!==10));o++);if(o<h&&t.src.charCodeAt(o)===91&&(d=o+1,o=pu(t,o),o>=0?s=t.src.slice(d,o++):o=d-1),s||(typeof s>"u"&&(o=n+1),s=t.src.slice(r,n)),u=t.env.references[V6(s)],!u)return t.pos=p,!1;i=u.href,a=u.title}return e||(t.pos=r,t.posMax=n,c?t.push({type:"image",src:i,title:a,alt:t.src.substr(r,n-r),level:t.level}):(t.push({type:"link_open",href:i,title:a,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=o,t.posMax=h,!0}function Jce(t,e){var r,n,s,i,a=t.posMax,o=t.pos;return o+2>=a||t.src.charCodeAt(o)!==94||t.src.charCodeAt(o+1)!==91||t.level>=t.options.maxNesting||(r=o+2,n=pu(t,o+1),n<0)?!1:(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),s=t.env.footnotes.list.length,t.pos=r,t.posMax=n,t.push({type:"footnote_ref",id:s,level:t.level}),t.linkLevel++,i=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[s]={tokens:t.tokens.splice(i)},t.linkLevel--),t.pos=n+1,t.posMax=a,!0)}function Hce(t,e){var r,n,s,i,a=t.posMax,o=t.pos;if(o+3>a||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(o)!==91||t.src.charCodeAt(o+1)!==94||t.level>=t.options.maxNesting)return!1;for(n=o+2;n<a;n++){if(t.src.charCodeAt(n)===32||t.src.charCodeAt(n)===10)return!1;if(t.src.charCodeAt(n)===93)break}return n===o+2||n>=a||(n++,r=t.src.slice(o+2,n-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(s=t.env.footnotes.list.length,t.env.footnotes.list[s]={label:r,count:0},t.env.footnotes.refs[":"+r]=s):s=t.env.footnotes.refs[":"+r],i=t.env.footnotes.list[s].count,t.env.footnotes.list[s].count++,t.push({type:"footnote_ref",id:s,subId:i,level:t.level})),t.pos=n,t.posMax=a,!0)}var Kce=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Gce=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,Yce=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Xce(t,e){var r,n,s,i,a,o=t.pos;return t.src.charCodeAt(o)!==60||(r=t.src.slice(o),r.indexOf(">")<0)?!1:(n=r.match(Yce),n?Kce.indexOf(n[1].toLowerCase())<0||(i=n[0].slice(1,-1),a=q1(i),!t.parser.validateLink(i))?!1:(e||(t.push({type:"link_open",href:a,level:t.level}),t.push({type:"text",content:i,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=n[0].length,!0):(s=r.match(Gce),s?(i=s[0].slice(1,-1),a=q1("mailto:"+i),t.parser.validateLink(a)?(e||(t.push({type:"link_open",href:a,level:t.level}),t.push({type:"text",content:i,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=s[0].length,!0):!1):!1))}function Pp(t,e){return t=t.source,e=e||"",function r(n,s){return n?(s=s.source||s,t=t.replace(n,s),r):new RegExp(t,e)}}var Zce=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Qce=/[^"'=<>`\x00-\x20]+/,efe=/'[^']*'/,tfe=/"[^"]*"/,rfe=Pp(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Qce)("single_quoted",efe)("double_quoted",tfe)(),nfe=Pp(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Zce)("attr_value",rfe)(),sfe=Pp(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",nfe)(),ife=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,afe=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,ofe=/<[?].*?[?]>/,ufe=/<![A-Z]+\s+[^>]*>/,lfe=/<!\[CDATA\[[\s\S]*?\]\]>/,cfe=Pp(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",sfe)("close_tag",ife)("comment",afe)("processing",ofe)("declaration",ufe)("cdata",lfe)();function ffe(t){var e=t|32;return e>=97&&e<=122}function pfe(t,e){var r,n,s,i=t.pos;return!t.options.html||(s=t.posMax,t.src.charCodeAt(i)!==60||i+2>=s)||(r=t.src.charCodeAt(i+1),r!==33&&r!==63&&r!==47&&!ffe(r))||(n=t.src.slice(i).match(cfe),!n)?!1:(e||t.push({type:"htmltag",content:t.src.slice(i,i+n[0].length),level:t.level}),t.pos+=n[0].length,!0)}var dfe=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,hfe=/^&([a-z][a-z0-9]{1,31});/i;function mfe(t,e){var r,n,s,i=t.pos,a=t.posMax;if(t.src.charCodeAt(i)!==38)return!1;if(i+1<a){if(r=t.src.charCodeAt(i+1),r===35){if(s=t.src.slice(i).match(dfe),s)return e||(n=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),t.pending+=B6(n)?F1(n):F1(65533)),t.pos+=s[0].length,!0}else if(s=t.src.slice(i).match(hfe),s){var o=F6(s[1]);if(s[1]!==o)return e||(t.pending+=o),t.pos+=s[0].length,!0}}return e||(t.pending+="&"),t.pos++,!0}var kS=[["text",jce],["newline",Nce],["escape",Mce],["backticks",Dce],["del",Fce],["ins",qce],["mark",Bce],["emphasis",$ce],["sub",Uce],["sup",zce],["links",Wce],["footnote_inline",Jce],["footnote_ref",Hce],["autolink",Xce],["htmltag",pfe],["entity",mfe]];function jp(){this.ruler=new xn;for(var t=0;t<kS.length;t++)this.ruler.push(kS[t][0],kS[t][1]);this.validateLink=gfe}jp.prototype.skipToken=function(t){var e=this.ruler.getRules(""),r=e.length,n=t.pos,s,i;if((i=t.cacheGet(n))>0){t.pos=i;return}for(s=0;s<r;s++)if(e[s](t,!0)){t.cacheSet(n,t.pos);return}t.pos++,t.cacheSet(n,t.pos)};jp.prototype.tokenize=function(t){for(var e=this.ruler.getRules(""),r=e.length,n=t.posMax,s,i;t.pos<n;){for(i=0;i<r&&(s=e[i](t,!1),!s);i++);if(s){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};jp.prototype.parse=function(t,e,r,n){var s=new ga(t,this,e,r,n);this.tokenize(s)};function gfe(t){var e=["vbscript","javascript","file","data"],r=t.trim().toLowerCase();return r=sa(r),!(r.indexOf(":")!==-1&&e.indexOf(r.split(":")[0])!==-1)}var yfe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},vfe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},bfe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},Efe={default:yfe,full:vfe,commonmark:bfe};function J6(t,e,r){this.src=e,this.env=r,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function Fi(t,e){typeof t!="string"&&(e=t,t="default"),e&&e.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
252
-
253
- import Remarkable from 'remarkable';
254
- import linkify from 'remarkable/linkify';
255
- new Remarkable().use(linkify)
256
- `),this.inline=new jp,this.block=new sA,this.core=new z6,this.renderer=new nA,this.ruler=new xn,this.options={},this.configure(Efe[t]),this.set(e||{})}Fi.prototype.set=function(t){q6(this.options,t)};Fi.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enable(t.components[r].rules,!0)})};Fi.prototype.use=function(t,e){return t(this,e),this};Fi.prototype.parse=function(t,e){var r=new J6(this,t,e);return this.core.process(r),r.tokens};Fi.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Fi.prototype.parseInline=function(t,e){var r=new J6(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens};Fi.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Sfe="3.16.2";function _fe(t,e){for(var r in e)e.hasOwnProperty(r)&&t[r]===void 0&&(t[r]=e[r]);return t}function wfe(t,e,r){var n;return t.length>e&&(r==null?(r="&hellip;",n=3):n=r.length,t=t.substring(0,e-n)+r),t}function HD(t,e){if(Array.prototype.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Vi(t,e){for(var r=t.length-1;r>=0;r--)e(t[r])===!0&&t.splice(r,1)}function xfe(t,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var r=[],n=0,s;s=e.exec(t);)r.push(t.substring(n,s.index)),r.push(s[0]),n=s.index+s[0].length;return r.push(t.substring(n)),r}function aA(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var B1=(function(){function t(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return t.prototype.setTagName=function(e){return this.tagName=e,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(e,r){var n=this.getAttrs();return n[e]=r,this},t.prototype.getAttr=function(e){return this.getAttrs()[e]},t.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(e){return this.setAttr("class",e)},t.prototype.addClass=function(e){for(var r=this.getClass(),n=this.whitespaceRegex,s=r?r.split(n):[],i=e.split(n),a;a=i.shift();)HD(s,a)===-1&&s.push(a);return this.getAttrs().class=s.join(" "),this},t.prototype.removeClass=function(e){for(var r=this.getClass(),n=this.whitespaceRegex,s=r?r.split(n):[],i=e.split(n),a;s.length&&(a=i.shift());){var o=HD(s,a);o!==-1&&s.splice(o,1)}return this.getAttrs().class=s.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},t.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},t.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var e=this.getTagName(),r=this.buildAttrsStr();return r=r?" "+r:"",["<",e,r,">",this.getInnerHtml(),"</",e,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),r=[];for(var n in e)e.hasOwnProperty(n)&&r.push(n+'="'+e[n]+'"');return r.join(" ")},t})();function Afe(t,e,r){var n,s;r==null?(r="&hellip;",s=3,n=8):(s=r.length,n=r.length);var i=function(b){var _={},w=b,S=w.match(/^([a-z]+):\/\//i);return S&&(_.scheme=S[1],w=w.substr(S[0].length)),S=w.match(/^(.*?)(?=(\?|#|\/|$))/i),S&&(_.host=S[1],w=w.substr(S[0].length)),S=w.match(/^\/(.*?)(?=(\?|#|$))/i),S&&(_.path=S[1],w=w.substr(S[0].length)),S=w.match(/^\?(.*?)(?=(#|$))/i),S&&(_.query=S[1],w=w.substr(S[0].length)),S=w.match(/^#(.*?)$/i),S&&(_.fragment=S[1]),_},a=function(b){var _="";return b.scheme&&b.host&&(_+=b.scheme+"://"),b.host&&(_+=b.host),b.path&&(_+="/"+b.path),b.query&&(_+="?"+b.query),b.fragment&&(_+="#"+b.fragment),_},o=function(b,_){var w=_/2,S=Math.ceil(w),A=-1*Math.floor(w),T="";return A<0&&(T=b.substr(A)),b.substr(0,S)+r+T};if(t.length<=e)return t;var u=e-s,l=i(t);if(l.query){var c=l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(l.query=l.query.substr(0,c[1].length),t=a(l))}if(t.length<=e||(l.host&&(l.host=l.host.replace(/^www\./,""),t=a(l)),t.length<=e))return t;var p="";if(l.host&&(p+=l.host),p.length>=u)return l.host.length==e?(l.host.substr(0,e-s)+r).substr(0,u+n):o(p,u).substr(0,u+n);var h="";if(l.path&&(h+="/"+l.path),l.query&&(h+="?"+l.query),h)if((p+h).length>=u){if((p+h).length==e)return(p+h).substr(0,e);var d=u-p.length;return(p+o(h,d)).substr(0,u+n)}else p+=h;if(l.fragment){var g="#"+l.fragment;if((p+g).length>=u){if((p+g).length==e)return(p+g).substr(0,e);var y=u-p.length;return(p+o(g,y)).substr(0,u+n)}else p+=g}if(l.scheme&&l.host){var v=l.scheme+"://";if((p+v).length<u)return(v+p).substr(0,e)}if(p.length<=e)return p;var E="";return u>0&&(E=p.substr(-1*Math.floor(u/2))),(p.substr(0,Math.ceil(u/2))+r+E).substr(0,u+n)}function Ofe(t,e,r){if(t.length<=e)return t;var n,s;r==null?(r="&hellip;",n=8,s=3):(n=r.length,s=r.length);var i=e-s,a="";return i>0&&(a=t.substr(-1*Math.floor(i/2))),(t.substr(0,Math.ceil(i/2))+r+a).substr(0,i+n)}function Cfe(t,e,r){return wfe(t,e,r)}var KD=(function(){function t(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return t.prototype.build=function(e){return new B1({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},t.prototype.createAttrs=function(e){var r={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(r.class=n),this.newWindow&&(r.target="_blank",r.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(r.title=e.getAnchorHref()),r},t.prototype.createCssClass=function(e){var r=this.className;if(r){for(var n=[r],s=e.getCssClassSuffixes(),i=0,a=s.length;i<a;i++)n.push(r+"-"+s[i]);return n.join(" ")}else return""},t.prototype.processAnchorText=function(e){return e=this.doTruncate(e),e},t.prototype.doTruncate=function(e){var r=this.truncate;if(!r||!r.length)return e;var n=r.length,s=r.location;return s==="smart"?Afe(e,n):s==="middle"?Ofe(e,n):Cfe(e,n)},t})(),bo=(function(){function t(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(e){this.offset=e},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.getType()]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t})(),H6=(function(t){Rs(e,t);function e(r){var n=t.call(this,r)||this;return n.email="",n.email=r.email,n}return e.prototype.getType=function(){return"email"},e.prototype.getEmail=function(){return this.email},e.prototype.getAnchorHref=function(){return"mailto:"+this.email},e.prototype.getAnchorText=function(){return this.email},e})(bo),K6=(function(t){Rs(e,t);function e(r){var n=t.call(this,r)||this;return n.serviceName="",n.hashtag="",n.serviceName=r.serviceName,n.hashtag=r.hashtag,n}return e.prototype.getType=function(){return"hashtag"},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getHashtag=function(){return this.hashtag},e.prototype.getAnchorHref=function(){var r=this.serviceName,n=this.hashtag;switch(r){case"twitter":return"https://twitter.com/hashtag/"+n;case"facebook":return"https://www.facebook.com/hashtag/"+n;case"instagram":return"https://instagram.com/explore/tags/"+n;case"tiktok":return"https://www.tiktok.com/tag/"+n;default:throw new Error("Unknown service name to point hashtag to: "+r)}},e.prototype.getAnchorText=function(){return"#"+this.hashtag},e})(bo),G6=(function(t){Rs(e,t);function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.mention="",n.mention=r.mention,n.serviceName=r.serviceName,n}return e.prototype.getType=function(){return"mention"},e.prototype.getMention=function(){return this.mention},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},e.prototype.getAnchorText=function(){return"@"+this.mention},e.prototype.getCssClassSuffixes=function(){var r=t.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&r.push(n),r},e})(bo),Y6=(function(t){Rs(e,t);function e(r){var n=t.call(this,r)||this;return n.number="",n.plusSign=!1,n.number=r.number,n.plusSign=r.plusSign,n}return e.prototype.getType=function(){return"phone"},e.prototype.getPhoneNumber=function(){return this.number},e.prototype.getNumber=function(){return this.getPhoneNumber()},e.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},e.prototype.getAnchorText=function(){return this.matchedText},e})(bo),X6=(function(t){Rs(e,t);function e(r){var n=t.call(this,r)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=r.urlMatchType,n.url=r.url,n.protocolUrlMatch=r.protocolUrlMatch,n.protocolRelativeMatch=r.protocolRelativeMatch,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return e.prototype.getType=function(){return"url"},e.prototype.getUrlMatchType=function(){return this.urlMatchType},e.prototype.getUrl=function(){var r=this.url;return!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended&&(r=this.url="http://"+r,this.protocolPrepended=!0),r},e.prototype.getAnchorHref=function(){var r=this.getUrl();return r.replace(/&amp;/g,"&")},e.prototype.getAnchorText=function(){var r=this.getMatchedText();return this.protocolRelativeMatch&&(r=this.stripProtocolRelativePrefix(r)),this.stripPrefix.scheme&&(r=this.stripSchemePrefix(r)),this.stripPrefix.www&&(r=this.stripWwwPrefix(r)),this.stripTrailingSlash&&(r=this.removeTrailingSlash(r)),this.decodePercentEncoding&&(r=this.removePercentEncoding(r)),r},e.prototype.stripSchemePrefix=function(r){return r.replace(this.schemePrefixRegex,"")},e.prototype.stripWwwPrefix=function(r){return r.replace(this.wwwPrefixRegex,"$1")},e.prototype.stripProtocolRelativePrefix=function(r){return r.replace(this.protocolRelativeRegex,"")},e.prototype.removeTrailingSlash=function(r){return r.charAt(r.length-1)==="/"&&(r=r.slice(0,-1)),r},e.prototype.removePercentEncoding=function(r){var n=r.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(n)}catch{return n}},e})(bo),Eo=(function(){function t(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder}return t})(),PS=/[A-Za-z]/,Rfe=/[\d]/,Tfe=/[\D]/,zi=/\s/,jS=/['"]/,Ife=/[\x00-\x1F\x7F]/,Z6=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,kfe=/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source,Pfe=/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,Q6=Z6+kfe+Pfe,sf=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,jfe=Q6+sf,or=Q6+sf,Uo=new RegExp("[".concat(or,"]")),Nfe="(?:["+sf+"]{1,3}\\.){3}["+sf+"]{1,3}",Mfe="["+or+"](?:["+or+"\\-_]{0,61}["+or+"])?",GD=function(t){return"(?=("+Mfe+"))\\"+t},NS=function(t){return"(?:"+GD(t)+"(?:\\."+GD(t+1)+"){0,126}|"+Nfe+")"},pc=Uo,e8=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,Dfe=new RegExp("[".concat(or,"!#$%&'*+/=?^_`{|}~-]")),Ffe=new RegExp("^".concat(e8.source,"$")),YD=(function(t){Rs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.localPartCharRegex=Dfe,r.strictTldRegex=Ffe,r}return e.prototype.parseMatches=function(r){for(var n=this.tagBuilder,s=this.localPartCharRegex,i=this.strictTldRegex,a=[],o=r.length,u=new dc,l={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},c=0,p=0,h=u;c<o;){var d=r.charAt(c);switch(p){case 0:g(d);break;case 1:y(r.charAt(c-1),d);break;case 2:v(d);break;case 3:E(d);break;case 4:b(d);break;case 5:_(d);break;case 6:w(d);break;case 7:S(d);break;default:aA(p)}c++}return k(),a;function g(P){P==="m"?A(1):s.test(P)&&A()}function y(P,F){P===":"?s.test(F)?(p=2,h=new dc(hr(hr({},h),{hasMailtoPrefix:!0}))):T():l[P]===F||(s.test(F)?p=2:F==="."?p=3:F==="@"?p=4:T())}function v(P){P==="."?p=3:P==="@"?p=4:s.test(P)||T()}function E(P){P==="."||P==="@"?T():s.test(P)?p=2:T()}function b(P){pc.test(P)?p=5:T()}function _(P){P==="."?p=7:P==="-"?p=6:pc.test(P)||k()}function w(P){P==="-"||P==="."?k():pc.test(P)?p=5:k()}function S(P){P==="."||P==="-"?k():pc.test(P)?(p=5,h=new dc(hr(hr({},h),{hasDomainDot:!0}))):k()}function A(P){P===void 0&&(P=2),p=P,h=new dc({idx:c})}function T(){p=0,h=u}function k(){if(h.hasDomainDot){var P=r.slice(h.idx,c);/[-.]$/.test(P)&&(P=P.slice(0,-1));var F=h.hasMailtoPrefix?P.slice(7):P;R(F)&&a.push(new H6({tagBuilder:n,matchedText:P,offset:h.idx,email:F}))}T();function R($){var M=$.split(".").pop()||"",K=M.toLowerCase(),ee=i.test(K);return ee}}},e})(Eo),dc=(function(){function t(e){e===void 0&&(e={}),this.idx=e.idx!==void 0?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot}return t})(),qfe=(function(){function t(){}return t.isValid=function(e,r){return!(r&&!this.isValidUriScheme(r)||this.urlMatchDoesNotHaveProtocolOrDot(e,r)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,r)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},t.isValidIpAddress=function(e){var r=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source),n=e.match(r);return n!==null},t.containsMultipleDots=function(e){var r=e;return this.hasFullProtocolRegex.test(e)&&(r=e.split("://")[1]),r.split("/")[0].indexOf("..")>-1},t.isValidUriScheme=function(e){var r=e.match(this.uriSchemeRegex),n=r&&r[0].toLowerCase();return n!=="javascript:"&&n!=="vbscript:"},t.urlMatchDoesNotHaveProtocolOrDot=function(e,r){return!!e&&(!r||!this.hasFullProtocolRegex.test(r))&&e.indexOf(".")===-1},t.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,r){return e&&r?!this.hasFullProtocolRegex.test(r)&&!this.hasWordCharAfterProtocolRegex.test(e):!1},t.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,t.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,t.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+Z6+"]"),t.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,t})(),Bfe=(function(){var t=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,e=/(?:www\.)/,r=new RegExp("[/?#](?:["+or+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+or+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",t.source,NS(2),")","|","(","(//)?",e.source,NS(6),")","|","(","(//)?",NS(10)+"\\.",e8.source,"(?![-"+jfe+"])",")",")","(?::[0-9]+)?","(?:"+r.source+")?"].join(""),"gi")})(),$fe=new RegExp("["+or+"]"),XD=(function(t){Rs(e,t);function e(r){var n=t.call(this,r)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=Bfe,n.wordCharRegExp=$fe,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return e.prototype.parseMatches=function(r){for(var n=this.matcherRegex,s=this.stripPrefix,i=this.stripTrailingSlash,a=this.decodePercentEncoding,o=this.tagBuilder,u=[],l,c=function(){var h=l[0],d=l[1],g=l[4],y=l[5],v=l[9],E=l.index,b=y||v,_=r.charAt(E-1);if(!qfe.isValid(h,d)||E>0&&_==="@"||E>0&&b&&p.wordCharRegExp.test(_))return"continue";if(/\?$/.test(h)&&(h=h.substr(0,h.length-1)),p.matchHasUnbalancedClosingParen(h))h=h.substr(0,h.length-1);else{var w=p.matchHasInvalidCharAfterTld(h,d);w>-1&&(h=h.substr(0,w))}var S=["http://","https://"].find(function(P){return!!d&&d.indexOf(P)!==-1});if(S){var A=h.indexOf(S);h=h.substr(A),d=d.substr(A),E=E+A}var T=d?"scheme":g?"www":"tld",k=!!d;u.push(new X6({tagBuilder:o,matchedText:h,offset:E,urlMatchType:T,url:h,protocolUrlMatch:k,protocolRelativeMatch:!!b,stripPrefix:s,stripTrailingSlash:i,decodePercentEncoding:a}))},p=this;(l=n.exec(r))!==null;)c();return u},e.prototype.matchHasUnbalancedClosingParen=function(r){var n=r.charAt(r.length-1),s;if(n===")")s="(";else if(n==="]")s="[";else if(n==="}")s="{";else return!1;for(var i=0,a=0,o=r.length-1;a<o;a++){var u=r.charAt(a);u===s?i++:u===n&&(i=Math.max(i-1,0))}return i===0},e.prototype.matchHasInvalidCharAfterTld=function(r,n){if(!r)return-1;var s=0;n&&(s=r.indexOf(":"),r=r.slice(s));var i=new RegExp("^((.?//)?[-."+or+"]*[-"+or+"]\\.[-"+or+"]+)"),a=i.exec(r);return a===null?-1:(s+=a[1].length,r=r.slice(a[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(r)?s:-1)},e})(Eo),ZD=new RegExp("[_".concat(or,"]")),QD=(function(t){Rs(e,t);function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.serviceName=r.serviceName,n}return e.prototype.parseMatches=function(r){for(var n=this.tagBuilder,s=this.serviceName,i=[],a=r.length,o=0,u=-1,l=0;o<a;){var c=r.charAt(o);switch(l){case 0:p(c);break;case 1:h(c);break;case 2:d(c);break;case 3:g(c);break;default:aA(l)}o++}return y(),i;function p(v){v==="#"?(l=2,u=o):Uo.test(v)&&(l=1)}function h(v){Uo.test(v)||(l=0)}function d(v){ZD.test(v)?l=3:Uo.test(v)?l=1:l=0}function g(v){ZD.test(v)||(y(),u=-1,Uo.test(v)?l=1:l=0)}function y(){if(u>-1&&o-u<=140){var v=r.slice(u,o),E=new K6({tagBuilder:n,matchedText:v,offset:u,serviceName:s,hashtag:v.slice(1)});i.push(E)}}},e})(Eo),Lfe=["twitter","facebook","instagram","tiktok"],Ufe=/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/,Vfe=/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/,zfe=new RegExp("".concat(Ufe.source,"|").concat(Vfe.source),"g"),e3=(function(t){Rs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.matcherRegex=zfe,r}return e.prototype.parseMatches=function(r){for(var n=this.matcherRegex,s=this.tagBuilder,i=[],a;(a=n.exec(r))!==null;){var o=a[0],u=o.replace(/[^0-9,;#]/g,""),l=!!(a[1]||a[2]),c=a.index==0?"":r.substr(a.index-1,1),p=r.substr(a.index+o.length,1),h=!c.match(/\d/)&&!p.match(/\d/);this.testMatch(a[3])&&this.testMatch(o)&&h&&i.push(new Y6({tagBuilder:s,matchedText:o,offset:a.index,number:u,plusSign:l}))}return i},e.prototype.testMatch=function(r){return Tfe.test(r)},e})(Eo),Wfe=new RegExp("@[_".concat(or,"]{1,50}(?![_").concat(or,"])"),"g"),Jfe=new RegExp("@[_.".concat(or,"]{1,30}(?![_").concat(or,"])"),"g"),Hfe=new RegExp("@[-_.".concat(or,"]{1,50}(?![-_").concat(or,"])"),"g"),Kfe=new RegExp("@[_.".concat(or,"]{1,23}[_").concat(or,"](?![_").concat(or,"])"),"g"),Gfe=new RegExp("[^"+or+"]"),t3=(function(t){Rs(e,t);function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:Wfe,instagram:Jfe,soundcloud:Hfe,tiktok:Kfe},n.nonWordCharRegex=Gfe,n.serviceName=r.serviceName,n}return e.prototype.parseMatches=function(r){var n=this.serviceName,s=this.matcherRegexes[this.serviceName],i=this.nonWordCharRegex,a=this.tagBuilder,o=[],u;if(!s)return o;for(;(u=s.exec(r))!==null;){var l=u.index,c=r.charAt(l-1);if(l===0||i.test(c)){var p=u[0].replace(/\.+$/g,""),h=p.slice(1);o.push(new G6({tagBuilder:a,matchedText:p,offset:l,serviceName:n,mention:h}))}}return o},e})(Eo);function Yfe(t,e){for(var r=e.onOpenTag,n=e.onCloseTag,s=e.onText,i=e.onComment,a=e.onDoctype,o=new vs,u=0,l=t.length,c=0,p=0,h=o;u<l;){var d=t.charAt(u);switch(c){case 0:g(d);break;case 1:y(d);break;case 2:E(d);break;case 3:v(d);break;case 4:b(d);break;case 5:_(d);break;case 6:w(d);break;case 7:S(d);break;case 8:A(d);break;case 9:T(d);break;case 10:k(d);break;case 11:P(d);break;case 12:F(d);break;case 13:R();break;case 14:$(d);break;case 15:M(d);break;case 16:K(d);break;case 17:ee(d);break;case 18:G(d);break;case 19:Z(d);break;case 20:X(d);break;default:aA(c)}u++}p<u&&ue();function g(re){re==="<"&&le()}function y(re){re==="!"?c=13:re==="/"?(c=2,h=new vs(hr(hr({},h),{isClosing:!0}))):re==="<"?le():PS.test(re)?(c=3,h=new vs(hr(hr({},h),{isOpening:!0}))):(c=0,h=o)}function v(re){zi.test(re)?(h=new vs(hr(hr({},h),{name:ve()})),c=4):re==="<"?le():re==="/"?(h=new vs(hr(hr({},h),{name:ve()})),c=12):re===">"?(h=new vs(hr(hr({},h),{name:ve()})),se()):!PS.test(re)&&!Rfe.test(re)&&re!==":"&&te()}function E(re){re===">"?te():PS.test(re)?c=3:te()}function b(re){zi.test(re)||(re==="/"?c=12:re===">"?se():re==="<"?le():re==="="||jS.test(re)||Ife.test(re)?te():c=5)}function _(re){zi.test(re)?c=6:re==="/"?c=12:re==="="?c=7:re===">"?se():re==="<"?le():jS.test(re)&&te()}function w(re){zi.test(re)||(re==="/"?c=12:re==="="?c=7:re===">"?se():re==="<"?le():jS.test(re)?te():c=5)}function S(re){zi.test(re)||(re==='"'?c=8:re==="'"?c=9:/[>=`]/.test(re)?te():re==="<"?le():c=10)}function A(re){re==='"'&&(c=11)}function T(re){re==="'"&&(c=11)}function k(re){zi.test(re)?c=4:re===">"?se():re==="<"&&le()}function P(re){zi.test(re)?c=4:re==="/"?c=12:re===">"?se():re==="<"?le():(c=4,he())}function F(re){re===">"?(h=new vs(hr(hr({},h),{isClosing:!0})),se()):c=4}function R(re){t.substr(u,2)==="--"?(u+=2,h=new vs(hr(hr({},h),{type:"comment"})),c=14):t.substr(u,7).toUpperCase()==="DOCTYPE"?(u+=7,h=new vs(hr(hr({},h),{type:"doctype"})),c=20):te()}function $(re){re==="-"?c=15:re===">"?te():c=16}function M(re){re==="-"?c=18:re===">"?te():c=16}function K(re){re==="-"&&(c=17)}function ee(re){re==="-"?c=18:c=16}function G(re){re===">"?se():re==="!"?c=19:re==="-"||(c=16)}function Z(re){re==="-"?c=17:re===">"?se():c=16}function X(re){re===">"?se():re==="<"&&le()}function te(){c=0,h=o}function le(){c=1,h=new vs({idx:u})}function se(){var re=t.slice(p,h.idx);re&&s(re,p),h.type==="comment"?i(h.idx):h.type==="doctype"?a(h.idx):(h.isOpening&&r(h.name,h.idx),h.isClosing&&n(h.name,h.idx)),te(),p=u+1}function ue(){var re=t.slice(p,u);s(re,p),p=u+1}function ve(){var re=h.idx+(h.isClosing?2:1);return t.slice(re,u).toLowerCase()}function he(){u--}}var vs=(function(){function t(e){e===void 0&&(e={}),this.idx=e.idx!==void 0?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}return t})(),Xfe=(function(){function t(e){e===void 0&&(e={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(e.urls),this.email=typeof e.email=="boolean"?e.email:this.email,this.phone=typeof e.phone=="boolean"?e.phone:this.phone,this.hashtag=e.hashtag||this.hashtag,this.mention=e.mention||this.mention,this.newWindow=typeof e.newWindow=="boolean"?e.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(e.stripPrefix),this.stripTrailingSlash=typeof e.stripTrailingSlash=="boolean"?e.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=typeof e.decodePercentEncoding=="boolean"?e.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=e.sanitizeHtml||!1;var r=this.mention;if(r!==!1&&["twitter","instagram","soundcloud","tiktok"].indexOf(r)===-1)throw new Error("invalid `mention` cfg '".concat(r,"' - see docs"));var n=this.hashtag;if(n!==!1&&Lfe.indexOf(n)===-1)throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate=this.normalizeTruncateCfg(e.truncate),this.className=e.className||this.className,this.replaceFn=e.replaceFn||this.replaceFn,this.context=e.context||this}return t.link=function(e,r){var n=new t(r);return n.link(e)},t.parse=function(e,r){var n=new t(r);return n.parse(e)},t.prototype.normalizeUrlsCfg=function(e){return e==null&&(e=!0),typeof e=="boolean"?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:typeof e.schemeMatches=="boolean"?e.schemeMatches:!0,wwwMatches:typeof e.wwwMatches=="boolean"?e.wwwMatches:!0,tldMatches:typeof e.tldMatches=="boolean"?e.tldMatches:!0}},t.prototype.normalizeStripPrefixCfg=function(e){return e==null&&(e=!0),typeof e=="boolean"?{scheme:e,www:e}:{scheme:typeof e.scheme=="boolean"?e.scheme:!0,www:typeof e.www=="boolean"?e.www:!0}},t.prototype.normalizeTruncateCfg=function(e){return typeof e=="number"?{length:e,location:"end"}:_fe(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},t.prototype.parse=function(e){var r=this,n=["a","style","script"],s=0,i=[];return Yfe(e,{onOpenTag:function(a){n.indexOf(a)>=0&&s++},onText:function(a,o){if(s===0){var u=/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi,l=xfe(a,u),c=o;l.forEach(function(p,h){if(h%2===0){var d=r.parseText(p,c);i.push.apply(i,d)}c+=p.length})}},onCloseTag:function(a){n.indexOf(a)>=0&&(s=Math.max(s-1,0))},onComment:function(a){},onDoctype:function(a){}}),i=this.compactMatches(i),i=this.removeUnwantedMatches(i),i},t.prototype.compactMatches=function(e){e.sort(function(u,l){return u.getOffset()-l.getOffset()});for(var r=0;r<e.length-1;){var n=e[r],s=n.getOffset(),i=n.getMatchedText().length,a=s+i;if(r+1<e.length){if(e[r+1].getOffset()===s){var o=e[r+1].getMatchedText().length>i?r:r+1;e.splice(o,1);continue}if(e[r+1].getOffset()<a){e.splice(r+1,1);continue}}r++}return e},t.prototype.removeUnwantedMatches=function(e){return this.hashtag||Vi(e,function(r){return r.getType()==="hashtag"}),this.email||Vi(e,function(r){return r.getType()==="email"}),this.phone||Vi(e,function(r){return r.getType()==="phone"}),this.mention||Vi(e,function(r){return r.getType()==="mention"}),this.urls.schemeMatches||Vi(e,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="scheme"}),this.urls.wwwMatches||Vi(e,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="www"}),this.urls.tldMatches||Vi(e,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="tld"}),e},t.prototype.parseText=function(e,r){r===void 0&&(r=0),r=r||0;for(var n=this.getMatchers(),s=[],i=0,a=n.length;i<a;i++){for(var o=n[i].parseMatches(e),u=0,l=o.length;u<l;u++)o[u].setOffset(r+o[u].getOffset());s.push.apply(s,o)}return s},t.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var r=this.parse(e),n=[],s=0,i=0,a=r.length;i<a;i++){var o=r[i];n.push(e.substring(s,o.getOffset())),n.push(this.createMatchReturnVal(o)),s=o.getOffset()+o.getMatchedText().length}return n.push(e.substring(s)),n.join("")},t.prototype.createMatchReturnVal=function(e){var r;if(this.replaceFn&&(r=this.replaceFn.call(this.context,e)),typeof r=="string")return r;if(r===!1)return e.getMatchedText();if(r instanceof B1)return r.toAnchorString();var n=e.buildTag();return n.toAnchorString()},t.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),r=[new QD({tagBuilder:e,serviceName:this.hashtag}),new YD({tagBuilder:e}),new e3({tagBuilder:e}),new t3({tagBuilder:e,serviceName:this.mention}),new XD({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=r},t.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new KD({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},t.version=Sfe,t.AnchorTagBuilder=KD,t.HtmlTag=B1,t.matcher={Email:YD,Hashtag:QD,Matcher:Eo,Mention:t3,Phone:e3,Url:XD},t.match={Email:H6,Hashtag:K6,Match:bo,Mention:G6,Phone:Y6,Url:X6},t})(),Zfe=/www|@|\:\/\//;function Qfe(t){return/^<a[>\s]/i.test(t)}function epe(t){return/^<\/a\s*>/i.test(t)}function tpe(){var t=[],e=new Xfe({stripPrefix:!1,url:!0,email:!0,replaceFn:function(r){switch(r.getType()){case"url":t.push({text:r.matchedText,url:r.getUrl()});break;case"email":t.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:t,autolinker:e}}function rpe(t){var e,r,n,s,i,a,o,u,l,c,p,h=t.tokens,d=null,g,y;for(r=0,n=h.length;r<n;r++)if(h[r].type==="inline")for(s=h[r].children,p=0,e=s.length-1;e>=0;e--){if(i=s[e],i.type==="link_close"){for(e--;s[e].level!==i.level&&s[e].type!=="link_open";)e--;continue}if(i.type==="htmltag"&&(Qfe(i.content)&&p>0&&p--,epe(i.content)&&p++),!(p>0)&&i.type==="text"&&Zfe.test(i.content)){if(d||(d=tpe(),g=d.links,y=d.autolinker),a=i.content,g.length=0,y.link(a),!g.length)continue;for(o=[],c=i.level,u=0;u<g.length;u++)t.inline.validateLink(g[u].url)&&(l=a.indexOf(g[u].text),l&&o.push({type:"text",content:a.slice(0,l),level:c}),o.push({type:"link_open",href:g[u].url,title:"",level:c++}),o.push({type:"text",content:g[u].text,level:c}),o.push({type:"link_close",level:--c}),a=a.slice(l+g[u].text.length));a.length&&o.push({type:"text",content:a,level:c}),h[r].children=s=[].concat(s.slice(0,e),o,s.slice(e+1))}}}function npe(t){t.core.ruler.push("linkify",rpe)}/*! @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:t8,setPrototypeOf:r3,isFrozen:spe,getPrototypeOf:ipe,getOwnPropertyDescriptor:ape}=Object;let{freeze:Zr,seal:qn,create:r8}=Object,{apply:$1,construct:L1}=typeof Reflect<"u"&&Reflect;Zr||(Zr=function(e){return e});qn||(qn=function(e){return e});$1||($1=function(e,r,n){return e.apply(r,n)});L1||(L1=function(e,r){return new e(...r)});const hc=Qr(Array.prototype.forEach),ope=Qr(Array.prototype.lastIndexOf),n3=Qr(Array.prototype.pop),ko=Qr(Array.prototype.push),upe=Qr(Array.prototype.splice),Pc=Qr(String.prototype.toLowerCase),MS=Qr(String.prototype.toString),s3=Qr(String.prototype.match),Po=Qr(String.prototype.replace),lpe=Qr(String.prototype.indexOf),cpe=Qr(String.prototype.trim),Kn=Qr(Object.prototype.hasOwnProperty),Yr=Qr(RegExp.prototype.test),jo=fpe(TypeError);function Qr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return $1(t,e,n)}}function fpe(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return L1(t,r)}}function Ct(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pc;r3&&r3(t,null);let n=e.length;for(;n--;){let s=e[n];if(typeof s=="string"){const i=r(s);i!==s&&(spe(e)||(e[n]=i),s=i)}t[s]=!0}return t}function ppe(t){for(let e=0;e<t.length;e++)Kn(t,e)||(t[e]=null);return t}function Us(t){const e=r8(null);for(const[r,n]of t8(t))Kn(t,r)&&(Array.isArray(n)?e[r]=ppe(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=Us(n):e[r]=n);return e}function No(t,e){for(;t!==null;){const n=ape(t,e);if(n){if(n.get)return Qr(n.get);if(typeof n.value=="function")return Qr(n.value)}t=ipe(t)}function r(){return null}return r}const i3=Zr(["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"]),DS=Zr(["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"]),FS=Zr(["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"]),dpe=Zr(["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"]),qS=Zr(["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"]),hpe=Zr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),a3=Zr(["#text"]),o3=Zr(["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"]),BS=Zr(["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"]),u3=Zr(["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"]),mc=Zr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mpe=qn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),gpe=qn(/<%[\w\W]*|[\w\W]*%>/gm),ype=qn(/\$\{[\w\W]*/gm),vpe=qn(/^data-[\-\w.\u00B7-\uFFFF]+$/),bpe=qn(/^aria-[\-\w]+$/),n8=qn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Epe=qn(/^(?:\w+script|data):/i),Spe=qn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),s8=qn(/^html$/i),_pe=qn(/^[a-z][.\w]*(-[.\w]+)+$/i);var l3=Object.freeze({__proto__:null,ARIA_ATTR:bpe,ATTR_WHITESPACE:Spe,CUSTOM_ELEMENT:_pe,DATA_ATTR:vpe,DOCTYPE_NAME:s8,ERB_EXPR:gpe,IS_ALLOWED_URI:n8,IS_SCRIPT_OR_DATA:Epe,MUSTACHE_EXPR:mpe,TMPLIT_EXPR:ype});const Mo={element:1,text:3,progressingInstruction:7,comment:8,document:9},wpe=function(){return typeof window>"u"?null:window},xpe=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(n=r.getAttribute(s));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},c3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function i8(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wpe();const e=Qe=>i8(Qe);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==Mo.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,s=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:o,Element:u,NodeFilter:l,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:d}=t,g=u.prototype,y=No(g,"cloneNode"),v=No(g,"remove"),E=No(g,"nextSibling"),b=No(g,"childNodes"),_=No(g,"parentNode");if(typeof a=="function"){const Qe=r.createElement("template");Qe.content&&Qe.content.ownerDocument&&(r=Qe.content.ownerDocument)}let w,S="";const{implementation:A,createNodeIterator:T,createDocumentFragment:k,getElementsByTagName:P}=r,{importNode:F}=n;let R=c3();e.isSupported=typeof t8=="function"&&typeof _=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$,ERB_EXPR:M,TMPLIT_EXPR:K,DATA_ATTR:ee,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:Z,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:te}=l3;let{IS_ALLOWED_URI:le}=l3,se=null;const ue=Ct({},[...i3,...DS,...FS,...qS,...a3]);let ve=null;const he=Ct({},[...o3,...BS,...u3,...mc]);let re=Object.seal(r8(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}})),W=null,V=null,ge=!0,me=!0,Me=!1,$e=!0,Ie=!1,ke=!0,Le=!1,ye=!1,Se=!1,we=!1,L=!1,C=!1,j=!0,U=!1;const Y="user-content-";let ne=!0,fe=!1,Ne={},Ge=null;const q=Ct({},["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 O=null;const I=Ct({},["audio","video","img","source","image","track"]);let H=null;const ie=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",xe="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let it=Ze,kt=!1,ft=null;const ae=Ct({},[de,xe,Ze],MS);let Ce=Ct({},["mi","mo","mn","ms","mtext"]),je=Ct({},["annotation-xml"]);const tt=Ct({},["title","style","font","a","script"]);let pt=null;const St=["application/xhtml+xml","text/html"],Lt="text/html";let De=null,Je=null;const lt=r.createElement("form"),rt=function(oe){return oe instanceof RegExp||oe instanceof Function},Ut=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Je&&Je===oe)){if((!oe||typeof oe!="object")&&(oe={}),oe=Us(oe),pt=St.indexOf(oe.PARSER_MEDIA_TYPE)===-1?Lt:oe.PARSER_MEDIA_TYPE,De=pt==="application/xhtml+xml"?MS:Pc,se=Kn(oe,"ALLOWED_TAGS")?Ct({},oe.ALLOWED_TAGS,De):ue,ve=Kn(oe,"ALLOWED_ATTR")?Ct({},oe.ALLOWED_ATTR,De):he,ft=Kn(oe,"ALLOWED_NAMESPACES")?Ct({},oe.ALLOWED_NAMESPACES,MS):ae,H=Kn(oe,"ADD_URI_SAFE_ATTR")?Ct(Us(ie),oe.ADD_URI_SAFE_ATTR,De):ie,O=Kn(oe,"ADD_DATA_URI_TAGS")?Ct(Us(I),oe.ADD_DATA_URI_TAGS,De):I,Ge=Kn(oe,"FORBID_CONTENTS")?Ct({},oe.FORBID_CONTENTS,De):q,W=Kn(oe,"FORBID_TAGS")?Ct({},oe.FORBID_TAGS,De):Us({}),V=Kn(oe,"FORBID_ATTR")?Ct({},oe.FORBID_ATTR,De):Us({}),Ne=Kn(oe,"USE_PROFILES")?oe.USE_PROFILES:!1,ge=oe.ALLOW_ARIA_ATTR!==!1,me=oe.ALLOW_DATA_ATTR!==!1,Me=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=oe.SAFE_FOR_TEMPLATES||!1,ke=oe.SAFE_FOR_XML!==!1,Le=oe.WHOLE_DOCUMENT||!1,we=oe.RETURN_DOM||!1,L=oe.RETURN_DOM_FRAGMENT||!1,C=oe.RETURN_TRUSTED_TYPE||!1,Se=oe.FORCE_BODY||!1,j=oe.SANITIZE_DOM!==!1,U=oe.SANITIZE_NAMED_PROPS||!1,ne=oe.KEEP_CONTENT!==!1,fe=oe.IN_PLACE||!1,le=oe.ALLOWED_URI_REGEXP||n8,it=oe.NAMESPACE||Ze,Ce=oe.MATHML_TEXT_INTEGRATION_POINTS||Ce,je=oe.HTML_INTEGRATION_POINTS||je,re=oe.CUSTOM_ELEMENT_HANDLING||{},oe.CUSTOM_ELEMENT_HANDLING&&rt(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&rt(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(me=!1),L&&(we=!0),Ne&&(se=Ct({},a3),ve=[],Ne.html===!0&&(Ct(se,i3),Ct(ve,o3)),Ne.svg===!0&&(Ct(se,DS),Ct(ve,BS),Ct(ve,mc)),Ne.svgFilters===!0&&(Ct(se,FS),Ct(ve,BS),Ct(ve,mc)),Ne.mathMl===!0&&(Ct(se,qS),Ct(ve,u3),Ct(ve,mc))),oe.ADD_TAGS&&(se===ue&&(se=Us(se)),Ct(se,oe.ADD_TAGS,De)),oe.ADD_ATTR&&(ve===he&&(ve=Us(ve)),Ct(ve,oe.ADD_ATTR,De)),oe.ADD_URI_SAFE_ATTR&&Ct(H,oe.ADD_URI_SAFE_ATTR,De),oe.FORBID_CONTENTS&&(Ge===q&&(Ge=Us(Ge)),Ct(Ge,oe.FORBID_CONTENTS,De)),ne&&(se["#text"]=!0),Le&&Ct(se,["html","head","body"]),se.table&&(Ct(se,["tbody"]),delete W.tbody),oe.TRUSTED_TYPES_POLICY){if(typeof oe.TRUSTED_TYPES_POLICY.createHTML!="function")throw jo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=oe.TRUSTED_TYPES_POLICY,S=w.createHTML("")}else w===void 0&&(w=xpe(d,s)),w!==null&&typeof S=="string"&&(S=w.createHTML(""));Zr&&Zr(oe),Je=oe}},zr=Ct({},[...DS,...FS,...dpe]),ii=Ct({},[...qS,...hpe]),ai=function(oe){let Oe=_(oe);(!Oe||!Oe.tagName)&&(Oe={namespaceURI:it,tagName:"template"});const He=Pc(oe.tagName),gt=Pc(Oe.tagName);return ft[oe.namespaceURI]?oe.namespaceURI===xe?Oe.namespaceURI===Ze?He==="svg":Oe.namespaceURI===de?He==="svg"&&(gt==="annotation-xml"||Ce[gt]):!!zr[He]:oe.namespaceURI===de?Oe.namespaceURI===Ze?He==="math":Oe.namespaceURI===xe?He==="math"&&je[gt]:!!ii[He]:oe.namespaceURI===Ze?Oe.namespaceURI===xe&&!je[gt]||Oe.namespaceURI===de&&!Ce[gt]?!1:!ii[He]&&(tt[He]||!zr[He]):!!(pt==="application/xhtml+xml"&&ft[oe.namespaceURI]):!1},Wr=function(oe){ko(e.removed,{element:oe});try{_(oe).removeChild(oe)}catch{v(oe)}},ps=function(oe,Oe){try{ko(e.removed,{attribute:Oe.getAttributeNode(oe),from:Oe})}catch{ko(e.removed,{attribute:null,from:Oe})}if(Oe.removeAttribute(oe),oe==="is")if(we||L)try{Wr(Oe)}catch{}else try{Oe.setAttribute(oe,"")}catch{}},oi=function(oe){let Oe=null,He=null;if(Se)oe="<remove></remove>"+oe;else{const $t=s3(oe,/^[\r\n\t ]+/);He=$t&&$t[0]}pt==="application/xhtml+xml"&&it===Ze&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");const gt=w?w.createHTML(oe):oe;if(it===Ze)try{Oe=new h().parseFromString(gt,pt)}catch{}if(!Oe||!Oe.documentElement){Oe=A.createDocument(it,"template",null);try{Oe.documentElement.innerHTML=kt?S:gt}catch{}}const Xt=Oe.body||Oe.documentElement;return oe&&He&&Xt.insertBefore(r.createTextNode(He),Xt.childNodes[0]||null),it===Ze?P.call(Oe,Le?"html":"body")[0]:Le?Oe.documentElement:Xt},ui=function(oe){return T.call(oe.ownerDocument||oe,oe,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Fs=function(oe){return oe instanceof p&&(typeof oe.nodeName!="string"||typeof oe.textContent!="string"||typeof oe.removeChild!="function"||!(oe.attributes instanceof c)||typeof oe.removeAttribute!="function"||typeof oe.setAttribute!="function"||typeof oe.namespaceURI!="string"||typeof oe.insertBefore!="function"||typeof oe.hasChildNodes!="function")},Jr=function(oe){return typeof o=="function"&&oe instanceof o};function hn(Qe,oe,Oe){hc(Qe,He=>{He.call(e,oe,Oe,Je)})}const li=function(oe){let Oe=null;if(hn(R.beforeSanitizeElements,oe,null),Fs(oe))return Wr(oe),!0;const He=De(oe.nodeName);if(hn(R.uponSanitizeElement,oe,{tagName:He,allowedTags:se}),ke&&oe.hasChildNodes()&&!Jr(oe.firstElementChild)&&Yr(/<[/\w!]/g,oe.innerHTML)&&Yr(/<[/\w!]/g,oe.textContent)||oe.nodeType===Mo.progressingInstruction||ke&&oe.nodeType===Mo.comment&&Yr(/<[/\w]/g,oe.data))return Wr(oe),!0;if(!se[He]||W[He]){if(!W[He]&&ds(He)&&(re.tagNameCheck instanceof RegExp&&Yr(re.tagNameCheck,He)||re.tagNameCheck instanceof Function&&re.tagNameCheck(He)))return!1;if(ne&&!Ge[He]){const gt=_(oe)||oe.parentNode,Xt=b(oe)||oe.childNodes;if(Xt&&gt){const $t=Xt.length;for(let Kt=$t-1;Kt>=0;--Kt){const Hr=y(Xt[Kt],!0);Hr.__removalCount=(oe.__removalCount||0)+1,gt.insertBefore(Hr,E(oe))}}}return Wr(oe),!0}return oe instanceof u&&!ai(oe)||(He==="noscript"||He==="noembed"||He==="noframes")&&Yr(/<\/no(script|embed|frames)/i,oe.innerHTML)?(Wr(oe),!0):(Ie&&oe.nodeType===Mo.text&&(Oe=oe.textContent,hc([$,M,K],gt=>{Oe=Po(Oe,gt," ")}),oe.textContent!==Oe&&(ko(e.removed,{element:oe.cloneNode()}),oe.textContent=Oe)),hn(R.afterSanitizeElements,oe,null),!1)},ci=function(oe,Oe,He){if(j&&(Oe==="id"||Oe==="name")&&(He in r||He in lt))return!1;if(!(me&&!V[Oe]&&Yr(ee,Oe))){if(!(ge&&Yr(G,Oe))){if(!ve[Oe]||V[Oe]){if(!(ds(oe)&&(re.tagNameCheck instanceof RegExp&&Yr(re.tagNameCheck,oe)||re.tagNameCheck instanceof Function&&re.tagNameCheck(oe))&&(re.attributeNameCheck instanceof RegExp&&Yr(re.attributeNameCheck,Oe)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(Oe))||Oe==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&Yr(re.tagNameCheck,He)||re.tagNameCheck instanceof Function&&re.tagNameCheck(He))))return!1}else if(!H[Oe]){if(!Yr(le,Po(He,X,""))){if(!((Oe==="src"||Oe==="xlink:href"||Oe==="href")&&oe!=="script"&&lpe(He,"data:")===0&&O[oe])){if(!(Me&&!Yr(Z,Po(He,X,"")))){if(He)return!1}}}}}}return!0},ds=function(oe){return oe!=="annotation-xml"&&s3(oe,te)},Er=function(oe){hn(R.beforeSanitizeAttributes,oe,null);const{attributes:Oe}=oe;if(!Oe||Fs(oe))return;const He={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0};let gt=Oe.length;for(;gt--;){const Xt=Oe[gt],{name:$t,namespaceURI:Kt,value:Hr}=Xt,sn=De($t),fi=Hr;let sr=$t==="value"?fi:cpe(fi);if(He.attrName=sn,He.attrValue=sr,He.keepAttr=!0,He.forceKeepAttr=void 0,hn(R.uponSanitizeAttribute,oe,He),sr=He.attrValue,U&&(sn==="id"||sn==="name")&&(ps($t,oe),sr=Y+sr),ke&&Yr(/((--!?|])>)|<\/(style|title)/i,sr)){ps($t,oe);continue}if(He.forceKeepAttr)continue;if(!He.keepAttr){ps($t,oe);continue}if(!$e&&Yr(/\/>/i,sr)){ps($t,oe);continue}Ie&&hc([$,M,K],ze=>{sr=Po(sr,ze," ")});const Pe=De(oe.nodeName);if(!ci(Pe,sn,sr)){ps($t,oe);continue}if(w&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Kt)switch(d.getAttributeType(Pe,sn)){case"TrustedHTML":{sr=w.createHTML(sr);break}case"TrustedScriptURL":{sr=w.createScriptURL(sr);break}}if(sr!==fi)try{Kt?oe.setAttributeNS(Kt,$t,sr):oe.setAttribute($t,sr),Fs(oe)?Wr(oe):n3(e.removed)}catch{ps($t,oe)}}hn(R.afterSanitizeAttributes,oe,null)},xt=function Qe(oe){let Oe=null;const He=ui(oe);for(hn(R.beforeSanitizeShadowDOM,oe,null);Oe=He.nextNode();)hn(R.uponSanitizeShadowNode,Oe,null),li(Oe),Er(Oe),Oe.content instanceof i&&Qe(Oe.content);hn(R.afterSanitizeShadowDOM,oe,null)};return e.sanitize=function(Qe){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=null,He=null,gt=null,Xt=null;if(kt=!Qe,kt&&(Qe="<!-->"),typeof Qe!="string"&&!Jr(Qe))if(typeof Qe.toString=="function"){if(Qe=Qe.toString(),typeof Qe!="string")throw jo("dirty is not a string, aborting")}else throw jo("toString is not a function");if(!e.isSupported)return Qe;if(ye||Ut(oe),e.removed=[],typeof Qe=="string"&&(fe=!1),fe){if(Qe.nodeName){const Hr=De(Qe.nodeName);if(!se[Hr]||W[Hr])throw jo("root node is forbidden and cannot be sanitized in-place")}}else if(Qe instanceof o)Oe=oi("<!---->"),He=Oe.ownerDocument.importNode(Qe,!0),He.nodeType===Mo.element&&He.nodeName==="BODY"||He.nodeName==="HTML"?Oe=He:Oe.appendChild(He);else{if(!we&&!Ie&&!Le&&Qe.indexOf("<")===-1)return w&&C?w.createHTML(Qe):Qe;if(Oe=oi(Qe),!Oe)return we?null:C?S:""}Oe&&Se&&Wr(Oe.firstChild);const $t=ui(fe?Qe:Oe);for(;gt=$t.nextNode();)li(gt),Er(gt),gt.content instanceof i&&xt(gt.content);if(fe)return Qe;if(we){if(L)for(Xt=k.call(Oe.ownerDocument);Oe.firstChild;)Xt.appendChild(Oe.firstChild);else Xt=Oe;return(ve.shadowroot||ve.shadowrootmode)&&(Xt=F.call(n,Xt,!0)),Xt}let Kt=Le?Oe.outerHTML:Oe.innerHTML;return Le&&se["!doctype"]&&Oe.ownerDocument&&Oe.ownerDocument.doctype&&Oe.ownerDocument.doctype.name&&Yr(s8,Oe.ownerDocument.doctype.name)&&(Kt="<!DOCTYPE "+Oe.ownerDocument.doctype.name+`>
257
- `+Kt),Ie&&hc([$,M,K],Hr=>{Kt=Po(Kt,Hr," ")}),w&&C?w.createHTML(Kt):Kt},e.setConfig=function(){let Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ut(Qe),ye=!0},e.clearConfig=function(){Je=null,ye=!1},e.isValidAttribute=function(Qe,oe,Oe){Je||Ut({});const He=De(Qe),gt=De(oe);return ci(He,gt,Oe)},e.addHook=function(Qe,oe){typeof oe=="function"&&ko(R[Qe],oe)},e.removeHook=function(Qe,oe){if(oe!==void 0){const Oe=ope(R[Qe],oe);return Oe===-1?void 0:upe(R[Qe],Oe,1)[0]}return n3(R[Qe])},e.removeHooks=function(Qe){R[Qe]=[]},e.removeAllHooks=function(){R=c3()},e}var Ape=i8(),$S,f3;function Ope(){if(f3)return $S;f3=1;var t=Qs(),e=/[\\^$.*+?()[\]{}|]/g,r=RegExp(e.source);function n(s){return s=t(s),s&&r.test(s)?s.replace(e,"\\$&"):s}return $S=n,$S}var Cpe=Ope();const Rpe=ot(Cpe);var LS,p3;function Tpe(){if(p3)return LS;p3=1;var t=Object.prototype,e=t.hasOwnProperty;function r(n,s){return n!=null&&e.call(n,s)}return LS=r,LS}var US,d3;function Ipe(){if(d3)return US;d3=1;var t=Tpe(),e=XF();function r(n,s){return n!=null&&e(n,s,t)}return US=r,US}var kpe=Ipe();const Ppe=ot(kpe);var jpe=OB();const Npe=ot(jpe);/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */var Mpe={7:function(t){var e,r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(E,b,_){return Function.prototype.apply.call(E,b,_)};e=r&&typeof r.ownKeys=="function"?r.ownKeys:Object.getOwnPropertySymbols?function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:function(E){return Object.getOwnPropertyNames(E)};var s=Number.isNaN||function(E){return E!=E};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(E,b){return new Promise((function(_,w){function S(T){E.removeListener(b,A),w(T)}function A(){typeof E.removeListener=="function"&&E.removeListener("error",S),_([].slice.call(arguments))}y(E,b,A,{once:!0}),b!=="error"&&(function(k,P,F){typeof k.on=="function"&&y(k,"error",P,F)})(E,S,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function o(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}function u(v){return v._maxListeners===void 0?i.defaultMaxListeners:v._maxListeners}function l(v,E,b,_){var w,S,A;if(o(b),(S=v._events)===void 0?(S=v._events=Object.create(null),v._eventsCount=0):(S.newListener!==void 0&&(v.emit("newListener",E,b.listener?b.listener:b),S=v._events),A=S[E]),A===void 0)A=S[E]=b,++v._eventsCount;else if(typeof A=="function"?A=S[E]=_?[b,A]:[A,b]:_?A.unshift(b):A.push(b),(w=u(v))>0&&A.length>w&&!A.warned){A.warned=!0;var T=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");T.name="MaxListenersExceededWarning",T.emitter=v,T.type=E,T.count=A.length,(function(P){console&&console.warn&&console.warn(P)})(T)}return v}function c(){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 p(v,E,b){var _={fired:!1,wrapFn:void 0,target:v,type:E,listener:b},w=c.bind(_);return w.listener=b,_.wrapFn=w,w}function h(v,E,b){var _=v._events;if(_===void 0)return[];var w=_[E];return w===void 0?[]:typeof w=="function"?b?[w.listener||w]:[w]:b?(function(A){for(var T=new Array(A.length),k=0;k<T.length;++k)T[k]=A[k].listener||A[k];return T})(w):g(w,w.length)}function d(v){var E=this._events;if(E!==void 0){var b=E[v];if(typeof b=="function")return 1;if(b!==void 0)return b.length}return 0}function g(v,E){for(var b=new Array(E),_=0;_<E;++_)b[_]=v[_];return b}function y(v,E,b,_){if(typeof v.on=="function")_.once?v.once(E,b):v.on(E,b);else{if(typeof v.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof v);v.addEventListener(E,(function w(S){_.once&&v.removeEventListener(E,w),b(S)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(v){if(typeof v!="number"||v<0||s(v))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+v+".");a=v}}),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(E){if(typeof E!="number"||E<0||s(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(E){for(var b=[],_=1;_<arguments.length;_++)b.push(arguments[_]);var w=E==="error",S=this._events;if(S!==void 0)w=w&&S.error===void 0;else if(!w)return!1;if(w){var A;if(b.length>0&&(A=b[0]),A instanceof Error)throw A;var T=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw T.context=A,T}var k=S[E];if(k===void 0)return!1;if(typeof k=="function")n(k,this,b);else{var P=k.length,F=g(k,P);for(_=0;_<P;++_)n(F[_],this,b)}return!0},i.prototype.addListener=function(E,b){return l(this,E,b,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(E,b){return l(this,E,b,!0)},i.prototype.once=function(E,b){return o(b),this.on(E,p(this,E,b)),this},i.prototype.prependOnceListener=function(E,b){return o(b),this.prependListener(E,p(this,E,b)),this},i.prototype.removeListener=function(E,b){var _,w,S,A,T;if(o(b),(w=this._events)===void 0)return this;if((_=w[E])===void 0)return this;if(_===b||_.listener===b)--this._eventsCount==0?this._events=Object.create(null):(delete w[E],w.removeListener&&this.emit("removeListener",E,_.listener||b));else if(typeof _!="function"){for(S=-1,A=_.length-1;A>=0;A--)if(_[A]===b||_[A].listener===b){T=_[A].listener,S=A;break}if(S<0)return this;S===0?_.shift():(function(P,F){for(;F+1<P.length;F++)P[F]=P[F+1];P.pop()})(_,S),_.length===1&&(w[E]=_[0]),w.removeListener!==void 0&&this.emit("removeListener",E,T||b)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(E){var b,_,w;if((_=this._events)===void 0)return this;if(_.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_[E]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete _[E]),this;if(arguments.length===0){var S,A=Object.keys(_);for(w=0;w<A.length;++w)(S=A[w])!=="removeListener"&&this.removeAllListeners(S);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(b=_[E])=="function")this.removeListener(E,b);else if(b!==void 0)for(w=b.length-1;w>=0;w--)this.removeListener(E,b[w]);return this},i.prototype.listeners=function(E){return h(this,E,!0)},i.prototype.rawListeners=function(E){return h(this,E,!1)},i.listenerCount=function(v,E){return typeof v.listenerCount=="function"?v.listenerCount(E):d.call(v,E)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},48:function(t){var e={};function r(s,i,a){a||(a=Error);var o=(function(u){function l(c,p,h){return u.call(this,(function(g,y,v){return typeof i=="string"?i:i(g,y,v)})(c,p,h))||this}return(function(p,h){p.prototype=Object.create(h.prototype),p.prototype.constructor=p,p.__proto__=h})(l,u),l})(a);o.prototype.name=a.name,o.prototype.code=s,e[s]=o}function n(s,i){if(Array.isArray(s)){var a=s.length;return s=s.map((function(o){return String(o)})),a>2?"one of ".concat(i," ").concat(s.slice(0,a-1).join(", "),", or ")+s[a-1]:a===2?"one of ".concat(i," ").concat(s[0]," or ").concat(s[1]):"of ".concat(i," ").concat(s[0])}return"of ".concat(i," ").concat(String(s))}r("ERR_INVALID_OPT_VALUE",(function(s,i){return'The value "'+i+'" is invalid for option "'+s+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(s,i,a){var o,u;if(typeof i=="string"&&(function(p,h,d){return p.substr(0,h.length)===h})(i,"not ")?(o="must not be",i=i.replace(/^not /,"")):o="must be",(function(p,h,d){return(d===void 0||d>p.length)&&(d=p.length),p.substring(d-h.length,d)===h})(s," argument"))u="The ".concat(s," ").concat(o," ").concat(n(i,"type"));else{var l=(function(p,h,d){return typeof d!="number"&&(d=0),!(d+h.length>p.length)&&p.indexOf(h,d)!==-1})(s,".")?"property":"argument";u='The "'.concat(s,'" ').concat(l," ").concat(o," ").concat(n(i,"type"))}return u+=". Received type ".concat(typeof a)}),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"),t.exports.F=e},107:function(t,e,r){var n=r(698),s=r(392),i=r(861).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function u(){this.init(),this._w=o,s.call(this,64,56)}function l(y,v,E){return E^y&(v^E)}function c(y,v,E){return y&v|E&(y|v)}function p(y){return(y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10)}function h(y){return(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7)}function d(y){return(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3}function g(y){return(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10}n(u,s),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(y){for(var v=this._w,E=0|this._a,b=0|this._b,_=0|this._c,w=0|this._d,S=0|this._e,A=0|this._f,T=0|this._g,k=0|this._h,P=0;P<16;++P)v[P]=y.readInt32BE(4*P);for(;P<64;++P)v[P]=g(v[P-2])+v[P-7]+d(v[P-15])+v[P-16]|0;for(var F=0;F<64;++F){var R=k+h(S)+l(S,A,T)+a[F]+v[F]|0,$=p(E)+c(E,b,_)|0;k=T,T=A,A=S,S=w+R|0,w=_,_=b,b=E,E=R+$|0}this._a=E+this._a|0,this._b=b+this._b|0,this._c=_+this._c|0,this._d=w+this._d|0,this._e=S+this._e|0,this._f=A+this._f|0,this._g=T+this._g|0,this._h=k+this._h|0},u.prototype._hash=function(){var y=i.allocUnsafe(32);return y.writeInt32BE(this._a,0),y.writeInt32BE(this._b,4),y.writeInt32BE(this._c,8),y.writeInt32BE(this._d,12),y.writeInt32BE(this._e,16),y.writeInt32BE(this._f,20),y.writeInt32BE(this._g,24),y.writeInt32BE(this._h,28),y},t.exports=u},123:function(t,e,r){var n=r(606),s=r(499),i=r(310).Stream;function a(u,l,c){var p,h=(function(_,w){return new Array(w||0).join(_||"")})(l,c=c||0),d=u;if(typeof u=="object"&&(d=u[p=Object.keys(u)[0]])&&d._elem)return d._elem.name=p,d._elem.icount=c,d._elem.indent=l,d._elem.indents=h,d._elem.interrupt=d,d._elem;var g,y=[],v=[];function E(b){Object.keys(b).forEach((function(_){y.push((function(S,A){return S+'="'+s(A)+'"'})(_,b[_]))}))}switch(typeof d){case"object":if(d===null)break;d._attr&&E(d._attr),d._cdata&&v.push(("<![CDATA["+d._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),d.forEach&&(g=!1,v.push(""),d.forEach((function(b){typeof b=="object"?Object.keys(b)[0]=="_attr"?E(b._attr):v.push(a(b,l,c+1)):(v.pop(),g=!0,v.push(s(b)))})),g||v.push(""));break;default:v.push(s(d))}return{name:p,interrupt:!1,attributes:y,content:v,icount:c,indents:h,indent:l}}function o(u,l,c){if(typeof l!="object")return u(!1,l);var p=l.interrupt?1:l.content.length;function h(){for(;l.content.length;){var g=l.content.shift();if(g!==void 0){if(d(g))return;o(u,g)}}u(!1,(p>1?l.indents:"")+(l.name?"</"+l.name+">":"")+(l.indent&&!c?`
258
- `:"")),c&&c()}function d(g){return!!g.interrupt&&(g.interrupt.append=u,g.interrupt.end=h,g.interrupt=!1,u(!0),!0)}if(u(!1,l.indents+(l.name?"<"+l.name:"")+(l.attributes.length?" "+l.attributes.join(" "):"")+(p?l.name?">":"":l.name?"/>":"")+(l.indent&&p>1?`
259
- `:"")),!p)return u(!1,l.indent?`
260
- `:"");d(l)||h()}t.exports=function(l,c){typeof c!="object"&&(c={indent:c});var p=c.stream?new i:null,h="",d=!1,g=c.indent?c.indent===!0?" ":c.indent:"",y=!0;function v(w){y?n.nextTick(w):w()}function E(w,S){if(S!==void 0&&(h+=S),w&&!d&&(p=p||new i,d=!0),w&&d){var A=h;v((function(){p.emit("data",A)})),h=""}}function b(w,S){o(E,a(w,g,g?1:0),S)}function _(){if(p){var w=h;v((function(){p.emit("data",w),p.emit("end"),p.readable=!1,p.emit("close")}))}}return v((function(){y=!1})),c.declaration&&(function(S){var A={version:"1.0",encoding:S.encoding||"UTF-8"};S.standalone&&(A.standalone=S.standalone),b({"?xml":{_attr:A}}),h=h.replace("/>","?>")})(c.declaration),l&&l.forEach?l.forEach((function(w,S){var A;S+1===l.length&&(A=_),b(w,A)})):b(l,_),p?(p.readable=!0,p):h},t.exports.element=t.exports.Element=function(){var l={_elem:a(Array.prototype.slice.call(arguments)),push:function(c){if(!this.append)throw new Error("not assigned to a parent!");var p=this,h=this._elem.indent;o(this.append,a(c,h,this._elem.icount+(h?1:0)),(function(){p.append(!0)}))},close:function(c){c!==void 0&&this.push(c),this.end&&this.end()}};return l}},141:function(t,e,r){var n=r(861).Buffer,s=n.isEncoding||function(g){switch((g=""+g)&&g.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 i(g){var y;switch(this.encoding=(function(E){var b=(function(w){if(!w)return"utf8";for(var S;;)switch(w){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 w;default:if(S)return;w=(""+w).toLowerCase(),S=!0}})(E);if(typeof b!="string"&&(n.isEncoding===s||!s(E)))throw new Error("Unknown encoding: "+E);return b||E})(g),this.encoding){case"utf16le":this.text=u,this.end=l,y=4;break;case"utf8":this.fillLast=o,y=4;break;case"base64":this.text=c,this.end=p,y=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(y)}function a(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function o(g){var y=this.lastTotal-this.lastNeed,v=(function(b,_,w){if((192&_[0])!=128)return b.lastNeed=0,"�";if(b.lastNeed>1&&_.length>1){if((192&_[1])!=128)return b.lastNeed=1,"�";if(b.lastNeed>2&&_.length>2&&(192&_[2])!=128)return b.lastNeed=2,"�"}})(this,g);return v!==void 0?v:this.lastNeed<=g.length?(g.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,y,0,g.length),void(this.lastNeed-=g.length))}function u(g,y){if((g.length-y)%2==0){var v=g.toString("utf16le",y);if(v){var E=v.charCodeAt(v.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",y,g.length-1)}function l(g){var y=g&&g.length?this.write(g):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,v)}return y}function c(g,y){var v=(g.length-y)%3;return v===0?g.toString("base64",y):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",y,g.length-v))}function p(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function h(g){return g.toString(this.encoding)}function d(g){return g&&g.length?this.write(g):""}e.I=i,i.prototype.write=function(g){if(g.length===0)return"";var y,v;if(this.lastNeed){if((y=this.fillLast(g))===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<g.length?y?y+this.text(g,v):this.text(g,v):y||""},i.prototype.end=function(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+"�":v},i.prototype.text=function(y,v){var E=(function(w,S,A){var T=S.length-1;if(T<A)return 0;var k=a(S[T]);return k>=0?(k>0&&(w.lastNeed=k-1),k):--T<A||k===-2?0:(k=a(S[T]),k>=0?(k>0&&(w.lastNeed=k-2),k):--T<A||k===-2?0:(k=a(S[T]),k>=0?(k>0&&(k===2?k=0:w.lastNeed=k-3),k):0))})(this,y,v);if(!this.lastNeed)return y.toString("utf8",v);this.lastTotal=E;var b=y.length-(E-this.lastNeed);return y.copy(this.lastChar,0,b),y.toString("utf8",v,b)},i.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},157:function(t){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},209:function(t,e,r){var n=r(606),s=65536,i=4294967295,a=r(861).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?t.exports=function(l,c){if(l>i)throw new RangeError("requested too many random bytes");var p=a.allocUnsafe(l);if(l>0)if(l>s)for(var h=0;h<l;h+=s)o.getRandomValues(p.slice(h,h+s));else o.getRandomValues(p);return typeof c=="function"?n.nextTick((function(){c(null,p)})):p}:t.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
261
- Use Chrome, Firefox or Internet Explorer 11`)}},238:function(t,e,r){var n=r(48).F.ERR_STREAM_PREMATURE_CLOSE;function s(){}t.exports=function i(a,o,u){if(typeof o=="function")return i(a,null,o);o||(o={}),u=(function(w){var S=!1;return function(){if(!S){S=!0;for(var A=arguments.length,T=new Array(A),k=0;k<A;k++)T[k]=arguments[k];w.apply(this,T)}}})(u||s);var l=o.readable||o.readable!==!1&&a.readable,c=o.writable||o.writable!==!1&&a.writable,p=function(){a.writable||d()},h=a._writableState&&a._writableState.finished,d=function(){c=!1,h=!0,l||u.call(a)},g=a._readableState&&a._readableState.endEmitted,y=function(){l=!1,g=!0,c||u.call(a)},v=function(w){u.call(a,w)},E=function(){var w;return l&&!g?(a._readableState&&a._readableState.ended||(w=new n),u.call(a,w)):c&&!h?(a._writableState&&a._writableState.ended||(w=new n),u.call(a,w)):void 0},b=function(){a.req.on("finish",d)};return(function(w){return w.setHeader&&typeof w.abort=="function"})(a)?(a.on("complete",d),a.on("abort",E),a.req?b():a.on("request",b)):c&&!a._writableState&&(a.on("end",p),a.on("close",p)),a.on("end",y),a.on("finish",d),o.error!==!1&&a.on("error",v),a.on("close",E),function(){a.removeListener("complete",d),a.removeListener("abort",E),a.removeListener("request",b),a.req&&a.req.removeListener("finish",d),a.removeListener("end",p),a.removeListener("close",p),a.removeListener("finish",d),a.removeListener("end",y),a.removeListener("error",v),a.removeListener("close",E)}}},287:function(t,e,r){const n=r(987),s=r(362),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(C){return+C!=C&&(C=0),u.alloc(+C)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function o(L){if(L>a)throw new RangeError('The value "'+L+'" is invalid for option "size"');const C=new Uint8Array(L);return Object.setPrototypeOf(C,u.prototype),C}function u(L,C,j){if(typeof L=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(L)}return l(L,C,j)}function l(L,C,j){if(typeof L=="string")return(function(fe,Ne){if(typeof Ne=="string"&&Ne!==""||(Ne="utf8"),!u.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);const Ge=0|y(fe,Ne);let q=o(Ge);const O=q.write(fe,Ne);return O!==Ge&&(q=q.slice(0,O)),q})(L,C);if(ArrayBuffer.isView(L))return(function(fe){if(ke(fe,Uint8Array)){const Ne=new Uint8Array(fe);return d(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return h(fe)})(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(ke(L,ArrayBuffer)||L&&ke(L.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ke(L,SharedArrayBuffer)||L&&ke(L.buffer,SharedArrayBuffer)))return d(L,C,j);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const U=L.valueOf&&L.valueOf();if(U!=null&&U!==L)return u.from(U,C,j);const Y=(function(fe){if(u.isBuffer(fe)){const Ne=0|g(fe.length),Ge=o(Ne);return Ge.length===0||fe.copy(Ge,0,0,Ne),Ge}if(fe.length!==void 0)return typeof fe.length!="number"||Le(fe.length)?o(0):h(fe);if(fe.type==="Buffer"&&Array.isArray(fe.data))return h(fe.data)})(L);if(Y)return Y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return u.from(L[Symbol.toPrimitive]("string"),C,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}function c(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function p(L){return c(L),o(L<0?0:0|g(L))}function h(L){const C=L.length<0?0:0|g(L.length),j=o(C);for(let U=0;U<C;U+=1)j[U]=255&L[U];return j}function d(L,C,j){if(C<0||L.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(L.byteLength<C+(j||0))throw new RangeError('"length" is outside of buffer bounds');let U;return U=C===void 0&&j===void 0?new Uint8Array(L):j===void 0?new Uint8Array(L,C):new Uint8Array(L,C,j),Object.setPrototypeOf(U,u.prototype),U}function g(L){if(L>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|L}function y(L,C){if(u.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||ke(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);const j=L.length,U=arguments.length>2&&arguments[2]===!0;if(!U&&j===0)return 0;let Y=!1;for(;;)switch(C){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return Me(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*j;case"hex":return j>>>1;case"base64":return $e(L).length;default:if(Y)return U?-1:Me(L).length;C=(""+C).toLowerCase(),Y=!0}}function v(L,C,j){let U=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0)<=(C>>>=0))return"";for(L||(L="utf8");;)switch(L){case"hex":return K(this,C,j);case"utf8":case"utf-8":return F(this,C,j);case"ascii":return $(this,C,j);case"latin1":case"binary":return M(this,C,j);case"base64":return P(this,C,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,C,j);default:if(U)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),U=!0}}function E(L,C,j){const U=L[C];L[C]=L[j],L[j]=U}function b(L,C,j,U,Y){if(L.length===0)return-1;if(typeof j=="string"?(U=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),Le(j=+j)&&(j=Y?0:L.length-1),j<0&&(j=L.length+j),j>=L.length){if(Y)return-1;j=L.length-1}else if(j<0){if(!Y)return-1;j=0}if(typeof C=="string"&&(C=u.from(C,U)),u.isBuffer(C))return C.length===0?-1:_(L,C,j,U,Y);if(typeof C=="number")return C&=255,typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(L,C,j):Uint8Array.prototype.lastIndexOf.call(L,C,j):_(L,[C],j,U,Y);throw new TypeError("val must be string, number or Buffer")}function _(L,C,j,U,Y){let ne,fe=1,Ne=L.length,Ge=C.length;if(U!==void 0&&((U=String(U).toLowerCase())==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le")){if(L.length<2||C.length<2)return-1;fe=2,Ne/=2,Ge/=2,j/=2}function q(O,I){return fe===1?O[I]:O.readUInt16BE(I*fe)}if(Y){let O=-1;for(ne=j;ne<Ne;ne++)if(q(L,ne)===q(C,O===-1?0:ne-O)){if(O===-1&&(O=ne),ne-O+1===Ge)return O*fe}else O!==-1&&(ne-=ne-O),O=-1}else for(j+Ge>Ne&&(j=Ne-Ge),ne=j;ne>=0;ne--){let O=!0;for(let I=0;I<Ge;I++)if(q(L,ne+I)!==q(C,I)){O=!1;break}if(O)return ne}return-1}function w(L,C,j,U){j=Number(j)||0;const Y=L.length-j;U?(U=Number(U))>Y&&(U=Y):U=Y;const ne=C.length;let fe;for(U>ne/2&&(U=ne/2),fe=0;fe<U;++fe){const Ne=parseInt(C.substr(2*fe,2),16);if(Le(Ne))return fe;L[j+fe]=Ne}return fe}function S(L,C,j,U){return Ie(Me(C,L.length-j),L,j,U)}function A(L,C,j,U){return Ie((function(ne){const fe=[];for(let Ne=0;Ne<ne.length;++Ne)fe.push(255&ne.charCodeAt(Ne));return fe})(C),L,j,U)}function T(L,C,j,U){return Ie($e(C),L,j,U)}function k(L,C,j,U){return Ie((function(ne,fe){let Ne,Ge,q;const O=[];for(let I=0;I<ne.length&&!((fe-=2)<0);++I)Ne=ne.charCodeAt(I),Ge=Ne>>8,q=Ne%256,O.push(q),O.push(Ge);return O})(C,L.length-j),L,j,U)}function P(L,C,j){return C===0&&j===L.length?n.fromByteArray(L):n.fromByteArray(L.slice(C,j))}function F(L,C,j){j=Math.min(L.length,j);const U=[];let Y=C;for(;Y<j;){const ne=L[Y];let fe=null,Ne=ne>239?4:ne>223?3:ne>191?2:1;if(Y+Ne<=j){let Ge,q,O,I;switch(Ne){case 1:ne<128&&(fe=ne);break;case 2:Ge=L[Y+1],(192&Ge)==128&&(I=(31&ne)<<6|63&Ge,I>127&&(fe=I));break;case 3:Ge=L[Y+1],q=L[Y+2],(192&Ge)==128&&(192&q)==128&&(I=(15&ne)<<12|(63&Ge)<<6|63&q,I>2047&&(I<55296||I>57343)&&(fe=I));break;case 4:Ge=L[Y+1],q=L[Y+2],O=L[Y+3],(192&Ge)==128&&(192&q)==128&&(192&O)==128&&(I=(15&ne)<<18|(63&Ge)<<12|(63&q)<<6|63&O,I>65535&&I<1114112&&(fe=I))}}fe===null?(fe=65533,Ne=1):fe>65535&&(fe-=65536,U.push(fe>>>10&1023|55296),fe=56320|1023&fe),U.push(fe),Y+=Ne}return(function(fe){const Ne=fe.length;if(Ne<=R)return String.fromCharCode.apply(String,fe);let Ge="",q=0;for(;q<Ne;)Ge+=String.fromCharCode.apply(String,fe.slice(q,q+=R));return Ge})(U)}e.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=(function(){try{const C=new Uint8Array(1),j={foo:function(){return 42}};return Object.setPrototypeOf(j,Uint8Array.prototype),Object.setPrototypeOf(C,j),C.foo()===42}catch{return!1}})(),u.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."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(L,C,j){return l(L,C,j)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(L,C,j){return(function(Y,ne,fe){return c(Y),Y<=0?o(Y):ne!==void 0?typeof fe=="string"?o(Y).fill(ne,fe):o(Y).fill(ne):o(Y)})(L,C,j)},u.allocUnsafe=function(L){return p(L)},u.allocUnsafeSlow=function(L){return p(L)},u.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==u.prototype},u.compare=function(C,j){if(ke(C,Uint8Array)&&(C=u.from(C,C.offset,C.byteLength)),ke(j,Uint8Array)&&(j=u.from(j,j.offset,j.byteLength)),!u.isBuffer(C)||!u.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===j)return 0;let U=C.length,Y=j.length;for(let ne=0,fe=Math.min(U,Y);ne<fe;++ne)if(C[ne]!==j[ne]){U=C[ne],Y=j[ne];break}return U<Y?-1:Y<U?1:0},u.isEncoding=function(C){switch(String(C).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}},u.concat=function(C,j){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return u.alloc(0);let U;if(j===void 0)for(j=0,U=0;U<C.length;++U)j+=C[U].length;const Y=u.allocUnsafe(j);let ne=0;for(U=0;U<C.length;++U){let fe=C[U];if(ke(fe,Uint8Array))ne+fe.length>Y.length?(u.isBuffer(fe)||(fe=u.from(fe)),fe.copy(Y,ne)):Uint8Array.prototype.set.call(Y,fe,ne);else{if(!u.isBuffer(fe))throw new TypeError('"list" argument must be an Array of Buffers');fe.copy(Y,ne)}ne+=fe.length}return Y},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<C;j+=2)E(this,j,j+1);return this},u.prototype.swap32=function(){const C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<C;j+=4)E(this,j,j+3),E(this,j+1,j+2);return this},u.prototype.swap64=function(){const C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<C;j+=8)E(this,j,j+7),E(this,j+1,j+6),E(this,j+2,j+5),E(this,j+3,j+4);return this},u.prototype.toString=function(){const C=this.length;return C===0?"":arguments.length===0?F(this,0,C):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(C){if(!u.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C||u.compare(this,C)===0},u.prototype.inspect=function(){let C="";const j=e.INSPECT_MAX_BYTES;return C=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(C+=" ... "),"<Buffer "+C+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(C,j,U,Y,ne){if(ke(C,Uint8Array)&&(C=u.from(C,C.offset,C.byteLength)),!u.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(j===void 0&&(j=0),U===void 0&&(U=C?C.length:0),Y===void 0&&(Y=0),ne===void 0&&(ne=this.length),j<0||U>C.length||Y<0||ne>this.length)throw new RangeError("out of range index");if(Y>=ne&&j>=U)return 0;if(Y>=ne)return-1;if(j>=U)return 1;if(this===C)return 0;let fe=(ne>>>=0)-(Y>>>=0),Ne=(U>>>=0)-(j>>>=0);const Ge=Math.min(fe,Ne),q=this.slice(Y,ne),O=C.slice(j,U);for(let I=0;I<Ge;++I)if(q[I]!==O[I]){fe=q[I],Ne=O[I];break}return fe<Ne?-1:Ne<fe?1:0},u.prototype.includes=function(C,j,U){return this.indexOf(C,j,U)!==-1},u.prototype.indexOf=function(C,j,U){return b(this,C,j,U,!0)},u.prototype.lastIndexOf=function(C,j,U){return b(this,C,j,U,!1)},u.prototype.write=function(C,j,U,Y){if(j===void 0)Y="utf8",U=this.length,j=0;else if(U===void 0&&typeof j=="string")Y=j,U=this.length,j=0;else{if(!isFinite(j))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");j>>>=0,isFinite(U)?(U>>>=0,Y===void 0&&(Y="utf8")):(Y=U,U=void 0)}const ne=this.length-j;if((U===void 0||U>ne)&&(U=ne),C.length>0&&(U<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");Y||(Y="utf8");let fe=!1;for(;;)switch(Y){case"hex":return w(this,C,j,U);case"utf8":case"utf-8":return S(this,C,j,U);case"ascii":case"latin1":case"binary":return A(this,C,j,U);case"base64":return T(this,C,j,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,C,j,U);default:if(fe)throw new TypeError("Unknown encoding: "+Y);Y=(""+Y).toLowerCase(),fe=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const R=4096;function $(L,C,j){let U="";j=Math.min(L.length,j);for(let Y=C;Y<j;++Y)U+=String.fromCharCode(127&L[Y]);return U}function M(L,C,j){let U="";j=Math.min(L.length,j);for(let Y=C;Y<j;++Y)U+=String.fromCharCode(L[Y]);return U}function K(L,C,j){const U=L.length;(!C||C<0)&&(C=0),(!j||j<0||j>U)&&(j=U);let Y="";for(let ne=C;ne<j;++ne)Y+=ye[L[ne]];return Y}function ee(L,C,j){const U=L.slice(C,j);let Y="";for(let ne=0;ne<U.length-1;ne+=2)Y+=String.fromCharCode(U[ne]+256*U[ne+1]);return Y}function G(L,C,j){if(L%1!=0||L<0)throw new RangeError("offset is not uint");if(L+C>j)throw new RangeError("Trying to access beyond buffer length")}function Z(L,C,j,U,Y,ne){if(!u.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>Y||C<ne)throw new RangeError('"value" argument is out of bounds');if(j+U>L.length)throw new RangeError("Index out of range")}function X(L,C,j,U,Y){W(C,U,Y,L,j,7);let ne=Number(C&BigInt(4294967295));L[j++]=ne,ne>>=8,L[j++]=ne,ne>>=8,L[j++]=ne,ne>>=8,L[j++]=ne;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return L[j++]=fe,fe>>=8,L[j++]=fe,fe>>=8,L[j++]=fe,fe>>=8,L[j++]=fe,j}function te(L,C,j,U,Y){W(C,U,Y,L,j,7);let ne=Number(C&BigInt(4294967295));L[j+7]=ne,ne>>=8,L[j+6]=ne,ne>>=8,L[j+5]=ne,ne>>=8,L[j+4]=ne;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return L[j+3]=fe,fe>>=8,L[j+2]=fe,fe>>=8,L[j+1]=fe,fe>>=8,L[j]=fe,j+8}function le(L,C,j,U,Y,ne){if(j+U>L.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function se(L,C,j,U,Y){return C=+C,j>>>=0,Y||le(L,0,j,4),s.write(L,C,j,U,23,4),j+4}function ue(L,C,j,U,Y){return C=+C,j>>>=0,Y||le(L,0,j,8),s.write(L,C,j,U,52,8),j+8}u.prototype.slice=function(C,j){const U=this.length;(C=~~C)<0?(C+=U)<0&&(C=0):C>U&&(C=U),(j=j===void 0?U:~~j)<0?(j+=U)<0&&(j=0):j>U&&(j=U),j<C&&(j=C);const Y=this.subarray(C,j);return Object.setPrototypeOf(Y,u.prototype),Y},u.prototype.readUintLE=u.prototype.readUIntLE=function(C,j,U){C>>>=0,j>>>=0,U||G(C,j,this.length);let Y=this[C],ne=1,fe=0;for(;++fe<j&&(ne*=256);)Y+=this[C+fe]*ne;return Y},u.prototype.readUintBE=u.prototype.readUIntBE=function(C,j,U){C>>>=0,j>>>=0,U||G(C,j,this.length);let Y=this[C+--j],ne=1;for(;j>0&&(ne*=256);)Y+=this[C+--j]*ne;return Y},u.prototype.readUint8=u.prototype.readUInt8=function(C,j){return C>>>=0,j||G(C,1,this.length),this[C]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(C,j){return C>>>=0,j||G(C,2,this.length),this[C]|this[C+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(C,j){return C>>>=0,j||G(C,2,this.length),this[C]<<8|this[C+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(C,j){return C>>>=0,j||G(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(C,j){return C>>>=0,j||G(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},u.prototype.readBigUInt64LE=Se((function(C){V(C>>>=0,"offset");const j=this[C],U=this[C+7];j!==void 0&&U!==void 0||ge(C,this.length-8);const Y=j+256*this[++C]+65536*this[++C]+this[++C]*2**24,ne=this[++C]+256*this[++C]+65536*this[++C]+U*2**24;return BigInt(Y)+(BigInt(ne)<<BigInt(32))})),u.prototype.readBigUInt64BE=Se((function(C){V(C>>>=0,"offset");const j=this[C],U=this[C+7];j!==void 0&&U!==void 0||ge(C,this.length-8);const Y=j*2**24+65536*this[++C]+256*this[++C]+this[++C],ne=this[++C]*2**24+65536*this[++C]+256*this[++C]+U;return(BigInt(Y)<<BigInt(32))+BigInt(ne)})),u.prototype.readIntLE=function(C,j,U){C>>>=0,j>>>=0,U||G(C,j,this.length);let Y=this[C],ne=1,fe=0;for(;++fe<j&&(ne*=256);)Y+=this[C+fe]*ne;return ne*=128,Y>=ne&&(Y-=Math.pow(2,8*j)),Y},u.prototype.readIntBE=function(C,j,U){C>>>=0,j>>>=0,U||G(C,j,this.length);let Y=j,ne=1,fe=this[C+--Y];for(;Y>0&&(ne*=256);)fe+=this[C+--Y]*ne;return ne*=128,fe>=ne&&(fe-=Math.pow(2,8*j)),fe},u.prototype.readInt8=function(C,j){return C>>>=0,j||G(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},u.prototype.readInt16LE=function(C,j){C>>>=0,j||G(C,2,this.length);const U=this[C]|this[C+1]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt16BE=function(C,j){C>>>=0,j||G(C,2,this.length);const U=this[C+1]|this[C]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt32LE=function(C,j){return C>>>=0,j||G(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},u.prototype.readInt32BE=function(C,j){return C>>>=0,j||G(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},u.prototype.readBigInt64LE=Se((function(C){V(C>>>=0,"offset");const j=this[C],U=this[C+7];j!==void 0&&U!==void 0||ge(C,this.length-8);const Y=this[C+4]+256*this[C+5]+65536*this[C+6]+(U<<24);return(BigInt(Y)<<BigInt(32))+BigInt(j+256*this[++C]+65536*this[++C]+this[++C]*2**24)})),u.prototype.readBigInt64BE=Se((function(C){V(C>>>=0,"offset");const j=this[C],U=this[C+7];j!==void 0&&U!==void 0||ge(C,this.length-8);const Y=(j<<24)+65536*this[++C]+256*this[++C]+this[++C];return(BigInt(Y)<<BigInt(32))+BigInt(this[++C]*2**24+65536*this[++C]+256*this[++C]+U)})),u.prototype.readFloatLE=function(C,j){return C>>>=0,j||G(C,4,this.length),s.read(this,C,!0,23,4)},u.prototype.readFloatBE=function(C,j){return C>>>=0,j||G(C,4,this.length),s.read(this,C,!1,23,4)},u.prototype.readDoubleLE=function(C,j){return C>>>=0,j||G(C,8,this.length),s.read(this,C,!0,52,8)},u.prototype.readDoubleBE=function(C,j){return C>>>=0,j||G(C,8,this.length),s.read(this,C,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(C,j,U,Y){C=+C,j>>>=0,U>>>=0,!Y&&Z(this,C,j,U,Math.pow(2,8*U)-1,0);let ne=1,fe=0;for(this[j]=255&C;++fe<U&&(ne*=256);)this[j+fe]=C/ne&255;return j+U},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(C,j,U,Y){C=+C,j>>>=0,U>>>=0,!Y&&Z(this,C,j,U,Math.pow(2,8*U)-1,0);let ne=U-1,fe=1;for(this[j+ne]=255&C;--ne>=0&&(fe*=256);)this[j+ne]=C/fe&255;return j+U},u.prototype.writeUint8=u.prototype.writeUInt8=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,1,255,0),this[j]=255&C,j+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,2,65535,0),this[j]=255&C,this[j+1]=C>>>8,j+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,2,65535,0),this[j]=C>>>8,this[j+1]=255&C,j+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,4,4294967295,0),this[j+3]=C>>>24,this[j+2]=C>>>16,this[j+1]=C>>>8,this[j]=255&C,j+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,4,4294967295,0),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=255&C,j+4},u.prototype.writeBigUInt64LE=Se((function(C,j=0){return X(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Se((function(C,j=0){return te(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(C,j,U,Y){if(C=+C,j>>>=0,!Y){const Ge=Math.pow(2,8*U-1);Z(this,C,j,U,Ge-1,-Ge)}let ne=0,fe=1,Ne=0;for(this[j]=255&C;++ne<U&&(fe*=256);)C<0&&Ne===0&&this[j+ne-1]!==0&&(Ne=1),this[j+ne]=(C/fe|0)-Ne&255;return j+U},u.prototype.writeIntBE=function(C,j,U,Y){if(C=+C,j>>>=0,!Y){const Ge=Math.pow(2,8*U-1);Z(this,C,j,U,Ge-1,-Ge)}let ne=U-1,fe=1,Ne=0;for(this[j+ne]=255&C;--ne>=0&&(fe*=256);)C<0&&Ne===0&&this[j+ne+1]!==0&&(Ne=1),this[j+ne]=(C/fe|0)-Ne&255;return j+U},u.prototype.writeInt8=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,1,127,-128),C<0&&(C=255+C+1),this[j]=255&C,j+1},u.prototype.writeInt16LE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,2,32767,-32768),this[j]=255&C,this[j+1]=C>>>8,j+2},u.prototype.writeInt16BE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,2,32767,-32768),this[j]=C>>>8,this[j+1]=255&C,j+2},u.prototype.writeInt32LE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,4,2147483647,-2147483648),this[j]=255&C,this[j+1]=C>>>8,this[j+2]=C>>>16,this[j+3]=C>>>24,j+4},u.prototype.writeInt32BE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=255&C,j+4},u.prototype.writeBigInt64LE=Se((function(C,j=0){return X(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Se((function(C,j=0){return te(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(C,j,U){return se(this,C,j,!0,U)},u.prototype.writeFloatBE=function(C,j,U){return se(this,C,j,!1,U)},u.prototype.writeDoubleLE=function(C,j,U){return ue(this,C,j,!0,U)},u.prototype.writeDoubleBE=function(C,j,U){return ue(this,C,j,!1,U)},u.prototype.copy=function(C,j,U,Y){if(!u.isBuffer(C))throw new TypeError("argument should be a Buffer");if(U||(U=0),Y||Y===0||(Y=this.length),j>=C.length&&(j=C.length),j||(j=0),Y>0&&Y<U&&(Y=U),Y===U||C.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("sourceEnd out of bounds");Y>this.length&&(Y=this.length),C.length-j<Y-U&&(Y=C.length-j+U);const ne=Y-U;return this===C&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,U,Y):Uint8Array.prototype.set.call(C,this.subarray(U,Y),j),ne},u.prototype.fill=function(C,j,U,Y){if(typeof C=="string"){if(typeof j=="string"?(Y=j,j=0,U=this.length):typeof U=="string"&&(Y=U,U=this.length),Y!==void 0&&typeof Y!="string")throw new TypeError("encoding must be a string");if(typeof Y=="string"&&!u.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);if(C.length===1){const fe=C.charCodeAt(0);(Y==="utf8"&&fe<128||Y==="latin1")&&(C=fe)}}else typeof C=="number"?C&=255:typeof C=="boolean"&&(C=Number(C));if(j<0||this.length<j||this.length<U)throw new RangeError("Out of range index");if(U<=j)return this;let ne;if(j>>>=0,U=U===void 0?this.length:U>>>0,C||(C=0),typeof C=="number")for(ne=j;ne<U;++ne)this[ne]=C;else{const fe=u.isBuffer(C)?C:u.from(C,Y),Ne=fe.length;if(Ne===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(ne=0;ne<U-j;++ne)this[ne+j]=fe[ne%Ne]}return this};const ve={};function he(L,C,j){ve[L]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:C.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${L}]`,this.stack,delete this.name}get code(){return L}set code(Y){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Y,writable:!0})}toString(){return`${this.name} [${L}]: ${this.message}`}}}function re(L){let C="",j=L.length;const U=L[0]==="-"?1:0;for(;j>=U+4;j-=3)C=`_${L.slice(j-3,j)}${C}`;return`${L.slice(0,j)}${C}`}function W(L,C,j,U,Y,ne){if(L>j||L<C){const fe=typeof C=="bigint"?"n":"";let Ne;throw Ne=C===0||C===BigInt(0)?`>= 0${fe} and < 2${fe} ** ${8*(ne+1)}${fe}`:`>= -(2${fe} ** ${8*(ne+1)-1}${fe}) and < 2 ** ${8*(ne+1)-1}${fe}`,new ve.ERR_OUT_OF_RANGE("value",Ne,L)}(function(Ne,Ge,q){V(Ge,"offset"),Ne[Ge]!==void 0&&Ne[Ge+q]!==void 0||ge(Ge,Ne.length-(q+1))})(U,Y,ne)}function V(L,C){if(typeof L!="number")throw new ve.ERR_INVALID_ARG_TYPE(C,"number",L)}function ge(L,C,j){throw Math.floor(L)!==L?(V(L,j),new ve.ERR_OUT_OF_RANGE("offset","an integer",L)):C<0?new ve.ERR_BUFFER_OUT_OF_BOUNDS:new ve.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${C}`,L)}he("ERR_BUFFER_OUT_OF_BOUNDS",(function(L){return L?`${L} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),he("ERR_INVALID_ARG_TYPE",(function(L,C){return`The "${L}" argument must be of type number. Received type ${typeof C}`}),TypeError),he("ERR_OUT_OF_RANGE",(function(L,C,j){let U=`The value of "${L}" is out of range.`,Y=j;return Number.isInteger(j)&&Math.abs(j)>2**32?Y=re(String(j)):typeof j=="bigint"&&(Y=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(Y=re(Y)),Y+="n"),U+=` It must be ${C}. Received ${Y}`,U}),RangeError);const me=/[^+/0-9A-Za-z-_]/g;function Me(L,C){let j;C=C||1/0;const U=L.length;let Y=null;const ne=[];for(let fe=0;fe<U;++fe){if(j=L.charCodeAt(fe),j>55295&&j<57344){if(!Y){if(j>56319){(C-=3)>-1&&ne.push(239,191,189);continue}if(fe+1===U){(C-=3)>-1&&ne.push(239,191,189);continue}Y=j;continue}if(j<56320){(C-=3)>-1&&ne.push(239,191,189),Y=j;continue}j=65536+(Y-55296<<10|j-56320)}else Y&&(C-=3)>-1&&ne.push(239,191,189);if(Y=null,j<128){if((C-=1)<0)break;ne.push(j)}else if(j<2048){if((C-=2)<0)break;ne.push(j>>6|192,63&j|128)}else if(j<65536){if((C-=3)<0)break;ne.push(j>>12|224,j>>6&63|128,63&j|128)}else{if(!(j<1114112))throw new Error("Invalid code point");if((C-=4)<0)break;ne.push(j>>18|240,j>>12&63|128,j>>6&63|128,63&j|128)}}return ne}function $e(L){return n.toByteArray((function(j){if((j=(j=j.split("=")[0]).trim().replace(me,"")).length<2)return"";for(;j.length%4!=0;)j+="=";return j})(L))}function Ie(L,C,j,U){let Y;for(Y=0;Y<U&&!(Y+j>=C.length||Y>=L.length);++Y)C[Y+j]=L[Y];return Y}function ke(L,C){return L instanceof C||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===C.name}function Le(L){return L!=L}const ye=(function(){const L="0123456789abcdef",C=new Array(256);for(let j=0;j<16;++j){const U=16*j;for(let Y=0;Y<16;++Y)C[U+Y]=L[j]+L[Y]}return C})();function Se(L){return typeof BigInt>"u"?we:L}function we(){throw new Error("BigInt not supported")}},291:function(t,e,r){var n=r(48).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(i,a,o,u){var l=(function(p,h,d){return p.highWaterMark!=null?p.highWaterMark:h?p[d]:null})(a,u,o);if(l!=null){if(!isFinite(l)||Math.floor(l)!==l||l<0)throw new n(u?o:"highWaterMark",l);return Math.floor(l)}return i.objectMode?16:16384}}},310:function(t,e,r){t.exports=s;var n=r(7).EventEmitter;function s(){n.call(this)}r(698)(s,n),s.Readable=r(412),s.Writable=r(708),s.Duplex=r(382),s.Transform=r(610),s.PassThrough=r(600),s.finished=r(238),s.pipeline=r(758),s.Stream=s,s.prototype.pipe=function(i,a){var o=this;function u(y){i.writable&&i.write(y)===!1&&o.pause&&o.pause()}function l(){o.readable&&o.resume&&o.resume()}o.on("data",u),i.on("drain",l),i._isStdio||a&&a.end===!1||(o.on("end",p),o.on("close",h));var c=!1;function p(){c||(c=!0,i.end())}function h(){c||(c=!0,typeof i.destroy=="function"&&i.destroy())}function d(y){if(g(),n.listenerCount(this,"error")===0)throw y}function g(){o.removeListener("data",u),i.removeListener("drain",l),o.removeListener("end",p),o.removeListener("close",h),o.removeListener("error",d),i.removeListener("error",d),o.removeListener("end",g),o.removeListener("close",g),i.removeListener("close",g)}return o.on("error",d),i.on("error",d),o.on("end",g),o.on("close",g),i.on("close",g),i.emit("pipe",o),i}},340:function(){},345:function(t,e,r){t.exports=r(7).EventEmitter},362:function(t){t.exports=K9},382:function(t,e,r){var n=r(606),s=Object.keys||function(d){var g=[];for(var y in d)g.push(y);return g};t.exports=c;var i=r(412),a=r(708);r(698)(c,i);for(var o=s(a.prototype),u=0;u<o.length;u++){var l=o[u];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(d){if(!(this instanceof c))return new c(d);i.call(this,d),a.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||n.nextTick(h,this)}function h(d){d.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}})},392:function(t,e,r){var n=r(861).Buffer,s=r(496);function i(a,o){this._block=n.alloc(a),this._finalSize=o,this._blockSize=a,this._len=0}i.prototype.update=function(a,o){a=s(a,o||"utf8");for(var u=this._block,l=this._blockSize,c=a.length,p=this._len,h=0;h<c;){for(var d=p%l,g=Math.min(c-h,l-d),y=0;y<g;y++)u[d+y]=a[h+y];h+=g,(p+=g)%l==0&&this._update(u)}return this._len+=c,this},i.prototype.digest=function(a){var o=this._len%this._blockSize;this._block[o]=128,this._block.fill(0,o+1),o>=this._finalSize&&(this._update(this._block),this._block.fill(0));var u=8*this._len;if(u<=4294967295)this._block.writeUInt32BE(u,this._blockSize-4);else{var l=(4294967295&u)>>>0,c=(u-l)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var p=this._hash();return a?p.toString(a):p},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},412:function(t,e,r){var n,s=r(606);t.exports=P,P.ReadableState=k,r(7).EventEmitter;var i=function(V,ge){return V.listeners(ge).length},a=r(345),o=r(287).Buffer,u=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},l,c=r(838);l=c&&c.debuglog?c.debuglog("stream"):function(){};var p,h,d,g=r(726),y=r(896),v=r(291).getHighWaterMark,E=r(48).F,b=E.ERR_INVALID_ARG_TYPE,_=E.ERR_STREAM_PUSH_AFTER_EOF,w=E.ERR_METHOD_NOT_IMPLEMENTED,S=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(P,a);var A=y.errorOrDestroy,T=["error","close","destroy","pause","resume"];function k(W,V,ge){n=n||r(382),W=W||{},typeof ge!="boolean"&&(ge=V instanceof n),this.objectMode=!!W.objectMode,ge&&(this.objectMode=this.objectMode||!!W.readableObjectMode),this.highWaterMark=v(this,W,"readableHighWaterMark",ge),this.buffer=new g,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=W.emitClose!==!1,this.autoDestroy=!!W.autoDestroy,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(p||(p=r(141).I),this.decoder=new p(W.encoding),this.encoding=W.encoding)}function P(W){if(n=n||r(382),!(this instanceof P))return new P(W);var V=this instanceof n;this._readableState=new k(W,this,V),this.readable=!0,W&&(typeof W.read=="function"&&(this._read=W.read),typeof W.destroy=="function"&&(this._destroy=W.destroy)),a.call(this)}function F(W,V,ge,me,Me){l("readableAddChunk",V);var $e,Ie=W._readableState;if(V===null)Ie.reading=!1,(function(Le,ye){if(l("onEofChunk"),!ye.ended){if(ye.decoder){var Se=ye.decoder.end();Se&&Se.length&&(ye.buffer.push(Se),ye.length+=ye.objectMode?1:Se.length)}ye.ended=!0,ye.sync?K(Le):(ye.needReadable=!1,ye.emittedReadable||(ye.emittedReadable=!0,ee(Le)))}})(W,Ie);else if(Me||($e=(function(Le,ye){var Se;return(function(L){return o.isBuffer(L)||L instanceof u})(ye)||typeof ye=="string"||ye===void 0||Le.objectMode||(Se=new b("chunk",["string","Buffer","Uint8Array"],ye)),Se})(Ie,V)),$e)A(W,$e);else if(Ie.objectMode||V&&V.length>0)if(typeof V=="string"||Ie.objectMode||Object.getPrototypeOf(V)===o.prototype||(V=(function(Le){return o.from(Le)})(V)),me)Ie.endEmitted?A(W,new S):R(W,Ie,V,!0);else if(Ie.ended)A(W,new _);else{if(Ie.destroyed)return!1;Ie.reading=!1,Ie.decoder&&!ge?(V=Ie.decoder.write(V),Ie.objectMode||V.length!==0?R(W,Ie,V,!1):G(W,Ie)):R(W,Ie,V,!1)}else me||(Ie.reading=!1,G(W,Ie));return!Ie.ended&&(Ie.length<Ie.highWaterMark||Ie.length===0)}function R(W,V,ge,me){V.flowing&&V.length===0&&!V.sync?(V.awaitDrain=0,W.emit("data",ge)):(V.length+=V.objectMode?1:ge.length,me?V.buffer.unshift(ge):V.buffer.push(ge),V.needReadable&&K(W)),G(W,V)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(V){this._readableState&&(this._readableState.destroyed=V)}}),P.prototype.destroy=y.destroy,P.prototype._undestroy=y.undestroy,P.prototype._destroy=function(W,V){V(W)},P.prototype.push=function(W,V){var ge,me=this._readableState;return me.objectMode?ge=!0:typeof W=="string"&&((V=V||me.defaultEncoding)!==me.encoding&&(W=o.from(W,V),V=""),ge=!0),F(this,W,V,!1,ge)},P.prototype.unshift=function(W){return F(this,W,null,!0,!1)},P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(W){p||(p=r(141).I);var V=new p(W);this._readableState.decoder=V,this._readableState.encoding=this._readableState.decoder.encoding;for(var ge=this._readableState.buffer.head,me="";ge!==null;)me+=V.write(ge.data),ge=ge.next;return this._readableState.buffer.clear(),me!==""&&this._readableState.buffer.push(me),this._readableState.length=me.length,this};var $=1073741824;function M(W,V){return W<=0||V.length===0&&V.ended?0:V.objectMode?1:W!=W?V.flowing&&V.length?V.buffer.head.data.length:V.length:(W>V.highWaterMark&&(V.highWaterMark=(function(me){return me>=$?me=$:(me--,me|=me>>>1,me|=me>>>2,me|=me>>>4,me|=me>>>8,me|=me>>>16,me++),me})(W)),W<=V.length?W:V.ended?V.length:(V.needReadable=!0,0))}function K(W){var V=W._readableState;l("emitReadable",V.needReadable,V.emittedReadable),V.needReadable=!1,V.emittedReadable||(l("emitReadable",V.flowing),V.emittedReadable=!0,s.nextTick(ee,W))}function ee(W){var V=W._readableState;l("emitReadable_",V.destroyed,V.length,V.ended),V.destroyed||!V.length&&!V.ended||(W.emit("readable"),V.emittedReadable=!1),V.needReadable=!V.flowing&&!V.ended&&V.length<=V.highWaterMark,se(W)}function G(W,V){V.readingMore||(V.readingMore=!0,s.nextTick(Z,W,V))}function Z(W,V){for(;!V.reading&&!V.ended&&(V.length<V.highWaterMark||V.flowing&&V.length===0);){var ge=V.length;if(l("maybeReadMore read 0"),W.read(0),ge===V.length)break}V.readingMore=!1}function X(W){var V=W._readableState;V.readableListening=W.listenerCount("readable")>0,V.resumeScheduled&&!V.paused?V.flowing=!0:W.listenerCount("data")>0&&W.resume()}function te(W){l("readable nexttick read 0"),W.read(0)}function le(W,V){l("resume",V.reading),V.reading||W.read(0),V.resumeScheduled=!1,W.emit("resume"),se(W),V.flowing&&!V.reading&&W.read(0)}function se(W){var V=W._readableState;for(l("flow",V.flowing);V.flowing&&W.read()!==null;);}function ue(W,V){return V.length===0?null:(V.objectMode?ge=V.buffer.shift():!W||W>=V.length?(ge=V.decoder?V.buffer.join(""):V.buffer.length===1?V.buffer.first():V.buffer.concat(V.length),V.buffer.clear()):ge=V.buffer.consume(W,V.decoder),ge);var ge}function ve(W){var V=W._readableState;l("endReadable",V.endEmitted),V.endEmitted||(V.ended=!0,s.nextTick(he,V,W))}function he(W,V){if(l("endReadableNT",W.endEmitted,W.length),!W.endEmitted&&W.length===0&&(W.endEmitted=!0,V.readable=!1,V.emit("end"),W.autoDestroy)){var ge=V._writableState;(!ge||ge.autoDestroy&&ge.finished)&&V.destroy()}}function re(W,V){for(var ge=0,me=W.length;ge<me;ge++)if(W[ge]===V)return ge;return-1}P.prototype.read=function(W){l("read",W),W=parseInt(W,10);var V=this._readableState,ge=W;if(W!==0&&(V.emittedReadable=!1),W===0&&V.needReadable&&((V.highWaterMark!==0?V.length>=V.highWaterMark:V.length>0)||V.ended))return l("read: emitReadable",V.length,V.ended),V.length===0&&V.ended?ve(this):K(this),null;if((W=M(W,V))===0&&V.ended)return V.length===0&&ve(this),null;var me,Me=V.needReadable;return l("need readable",Me),(V.length===0||V.length-W<V.highWaterMark)&&l("length less than watermark",Me=!0),V.ended||V.reading?l("reading or ended",Me=!1):Me&&(l("do read"),V.reading=!0,V.sync=!0,V.length===0&&(V.needReadable=!0),this._read(V.highWaterMark),V.sync=!1,V.reading||(W=M(ge,V))),(me=W>0?ue(W,V):null)===null?(V.needReadable=V.length<=V.highWaterMark,W=0):(V.length-=W,V.awaitDrain=0),V.length===0&&(V.ended||(V.needReadable=!0),ge!==W&&V.ended&&ve(this)),me!==null&&this.emit("data",me),me},P.prototype._read=function(W){A(this,new w("_read()"))},P.prototype.pipe=function(W,V){var ge=this,me=this._readableState;switch(me.pipesCount){case 0:me.pipes=W;break;case 1:me.pipes=[me.pipes,W];break;default:me.pipes.push(W)}me.pipesCount+=1,l("pipe count=%d opts=%j",me.pipesCount,V);var Me=(!V||V.end!==!1)&&W!==s.stdout&&W!==s.stderr?Ie:C;function $e(j,U){l("onunpipe"),j===ge&&U&&U.hasUnpiped===!1&&(U.hasUnpiped=!0,(function(){l("cleanup"),W.removeListener("close",we),W.removeListener("finish",L),W.removeListener("drain",ke),W.removeListener("error",Se),W.removeListener("unpipe",$e),ge.removeListener("end",Ie),ge.removeListener("end",C),ge.removeListener("data",ye),Le=!0,!me.awaitDrain||W._writableState&&!W._writableState.needDrain||ke()})())}function Ie(){l("onend"),W.end()}me.endEmitted?s.nextTick(Me):ge.once("end",Me),W.on("unpipe",$e);var ke=(function(U){return function(){var ne=U._readableState;l("pipeOnDrain",ne.awaitDrain),ne.awaitDrain&&ne.awaitDrain--,ne.awaitDrain===0&&i(U,"data")&&(ne.flowing=!0,se(U))}})(ge);W.on("drain",ke);var Le=!1;function ye(j){l("ondata");var U=W.write(j);l("dest.write",U),U===!1&&((me.pipesCount===1&&me.pipes===W||me.pipesCount>1&&re(me.pipes,W)!==-1)&&!Le&&(l("false write response, pause",me.awaitDrain),me.awaitDrain++),ge.pause())}function Se(j){l("onerror",j),C(),W.removeListener("error",Se),i(W,"error")===0&&A(W,j)}function we(){W.removeListener("finish",L),C()}function L(){l("onfinish"),W.removeListener("close",we),C()}function C(){l("unpipe"),ge.unpipe(W)}return ge.on("data",ye),(function(U,Y,ne){if(typeof U.prependListener=="function")return U.prependListener(Y,ne);U._events&&U._events[Y]?Array.isArray(U._events[Y])?U._events[Y].unshift(ne):U._events[Y]=[ne,U._events[Y]]:U.on(Y,ne)})(W,"error",Se),W.once("close",we),W.once("finish",L),W.emit("pipe",ge),me.flowing||(l("pipe resume"),ge.resume()),W},P.prototype.unpipe=function(W){var V=this._readableState,ge={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return W&&W!==V.pipes||(W||(W=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,W&&W.emit("unpipe",this,ge)),this;if(!W){var me=V.pipes,Me=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var $e=0;$e<Me;$e++)me[$e].emit("unpipe",this,{hasUnpiped:!1});return this}var Ie=re(V.pipes,W);return Ie===-1||(V.pipes.splice(Ie,1),V.pipesCount-=1,V.pipesCount===1&&(V.pipes=V.pipes[0]),W.emit("unpipe",this,ge)),this},P.prototype.on=function(W,V){var ge=a.prototype.on.call(this,W,V),me=this._readableState;return W==="data"?(me.readableListening=this.listenerCount("readable")>0,me.flowing!==!1&&this.resume()):W==="readable"&&(me.endEmitted||me.readableListening||(me.readableListening=me.needReadable=!0,me.flowing=!1,me.emittedReadable=!1,l("on readable",me.length,me.reading),me.length?K(this):me.reading||s.nextTick(te,this))),ge},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(W,V){var ge=a.prototype.removeListener.call(this,W,V);return W==="readable"&&s.nextTick(X,this),ge},P.prototype.removeAllListeners=function(W){var V=a.prototype.removeAllListeners.apply(this,arguments);return W!=="readable"&&W!==void 0||s.nextTick(X,this),V},P.prototype.resume=function(){var W=this._readableState;return W.flowing||(l("resume"),W.flowing=!W.readableListening,(function(ge,me){me.resumeScheduled||(me.resumeScheduled=!0,s.nextTick(le,ge,me))})(this,W)),W.paused=!1,this},P.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},P.prototype.wrap=function(W){var V=this,ge=this._readableState,me=!1;for(var Me in W.on("end",(function(){if(l("wrapped end"),ge.decoder&&!ge.ended){var Ie=ge.decoder.end();Ie&&Ie.length&&V.push(Ie)}V.push(null)})),W.on("data",(function(Ie){l("wrapped data"),ge.decoder&&(Ie=ge.decoder.write(Ie)),ge.objectMode&&Ie==null||(ge.objectMode||Ie&&Ie.length)&&(V.push(Ie)||(me=!0,W.pause()))})),W)this[Me]===void 0&&typeof W[Me]=="function"&&(this[Me]=(function(ke){return function(){return W[ke].apply(W,arguments)}})(Me));for(var $e=0;$e<T.length;$e++)W.on(T[$e],this.emit.bind(this,T[$e]));return this._read=function(Ie){l("wrapped _read",Ie),me&&(me=!1,W.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return h===void 0&&(h=r(955)),h(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(V){this._readableState&&(this._readableState.flowing=V)}}),P._fromList=ue,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(P.from=function(W,V){return d===void 0&&(d=r(157)),d(P,W,V)})},496:function(t){t.exports=P5},499:function(t){var e={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};t.exports=function(n){return n&&n.replace?n.replace(/([&"<>'])/g,(function(s,i){return e[i]})):n}},600:function(t,e,r){t.exports=s;var n=r(610);function s(i){if(!(this instanceof s))return new s(i);n.call(this,i)}r(698)(s,n),s.prototype._transform=function(i,a,o){o(null,i)}},606:function(t){var e,r,n=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(y){if(e===setTimeout)return setTimeout(y,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(y,0);try{return e(y,0)}catch{try{return e.call(null,y,0)}catch{return e.call(this,y,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:s}catch{e=s}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var o,u=[],l=!1,c=-1;function p(){l&&o&&(l=!1,o.length?u=o.concat(u):c=-1,u.length&&h())}function h(){if(!l){var y=a(p);l=!0;for(var v=u.length;v;){for(o=u,u=[];++c<v;)o&&o[c].run();c=-1,v=u.length}o=null,l=!1,(function(b){if(r===clearTimeout)return clearTimeout(b);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{return r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}})(y)}}function d(y,v){this.fun=y,this.array=v}function g(){}n.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)v[E-1]=arguments[E];u.push(new d(y,v)),u.length!==1||l||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(y){return[]},n.binding=function(y){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(y){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},610:function(t,e,r){t.exports=c;var n=r(48).F,s=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(382);function l(d,g){var y=this._transformState;y.transforming=!1;var v=y.writecb;if(v===null)return this.emit("error",new i);y.writechunk=null,y.writecb=null,g!=null&&this.push(g),v(d);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function c(d){if(!(this instanceof c))return new c(d);u.call(this,d),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",p)}function p(){var d=this;typeof this._flush!="function"||this._readableState.destroyed?h(this,null,null):this._flush((function(g,y){h(d,g,y)}))}function h(d,g,y){if(g)return d.emit("error",g);if(y!=null&&d.push(y),d._writableState.length)throw new o;if(d._transformState.transforming)throw new a;return d.push(null)}r(698)(c,u),c.prototype.push=function(d,g){return this._transformState.needTransform=!1,u.prototype.push.call(this,d,g)},c.prototype._transform=function(d,g,y){y(new s("_transform()"))},c.prototype._write=function(d,g,y){var v=this._transformState;if(v.writecb=y,v.writechunk=d,v.writeencoding=g,!v.transforming){var E=this._readableState;(v.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},c.prototype._read=function(d){var g=this._transformState;g.writechunk===null||g.transforming?g.needTransform=!0:(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform))},c.prototype._destroy=function(d,g){u.prototype._destroy.call(this,d,(function(y){g(y)}))}},643:function(t,e,r){function n(s){try{if(!r.g.localStorage)return!1}catch{return!1}var i=r.g.localStorage[s];return i!=null&&String(i).toLowerCase()==="true"}t.exports=function(i,a){if(n("noDeprecation"))return i;var o=!1;return function(){if(!o){if(n("throwDeprecation"))throw new Error(a);n("traceDeprecation")?console.trace(a):console.warn(a),o=!0}return i.apply(this,arguments)}}},698:function(t){typeof Object.create=="function"?t.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(r,n){if(n){r.super_=n;var s=function(){};s.prototype=n.prototype,r.prototype=new s,r.prototype.constructor=r}}},708:function(t,e,r){var n,s=r(606);function i(G){var Z=this;this.next=null,this.entry=null,this.finish=function(){(function(te,le,se){var ue=te.entry;for(te.entry=null;ue;){var ve=ue.callback;le.pendingcb--,ve(se),ue=ue.next}le.corkedRequestsFree.next=te})(Z,G)}}t.exports=P,P.WritableState=k;var a={deprecate:r(643)},o=r(345),u=r(287).Buffer,l=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},c,p=r(896),h=r(291).getHighWaterMark,d=r(48).F,g=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,E=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,_=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,S=d.ERR_UNKNOWN_ENCODING,A=p.errorOrDestroy;function T(){}function k(G,Z,X){n=n||r(382),G=G||{},typeof X!="boolean"&&(X=Z instanceof n),this.objectMode=!!G.objectMode,X&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=h(this,G,"writableHighWaterMark",X),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var te=G.decodeStrings===!1;this.decodeStrings=!te,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){(function(ue,ve){var he=ue._writableState,re=he.sync,W=he.writecb;if(typeof W!="function")throw new v;if((function(me){me.writing=!1,me.writecb=null,me.length-=me.writelen,me.writelen=0})(he),ve)(function(me,Me,$e,Ie,ke){--Me.pendingcb,$e?(s.nextTick(ke,Ie),s.nextTick(ee,me,Me),me._writableState.errorEmitted=!0,A(me,Ie)):(ke(Ie),me._writableState.errorEmitted=!0,A(me,Ie),ee(me,Me))})(ue,he,re,ve,W);else{var V=M(he)||ue.destroyed;V||he.corked||he.bufferProcessing||!he.bufferedRequest||$(ue,he),re?s.nextTick(R,ue,he,V,W):R(ue,he,V,W)}})(Z,le)},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 i(this)}function P(G){var Z=this instanceof(n=n||r(382));if(!Z&&!c.call(P,this))return new P(G);this._writableState=new k(G,this,Z),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)),o.call(this)}function F(G,Z,X,te,le,se,ue){Z.writelen=te,Z.writecb=ue,Z.writing=!0,Z.sync=!0,Z.destroyed?Z.onwrite(new b("write")):X?G._writev(le,Z.onwrite):G._write(le,se,Z.onwrite),Z.sync=!1}function R(G,Z,X,te){X||(function(se,ue){ue.length===0&&ue.needDrain&&(ue.needDrain=!1,se.emit("drain"))})(G,Z),Z.pendingcb--,te(),ee(G,Z)}function $(G,Z){Z.bufferProcessing=!0;var X=Z.bufferedRequest;if(G._writev&&X&&X.next){var te=Z.bufferedRequestCount,le=new Array(te),se=Z.corkedRequestsFree;se.entry=X;for(var ue=0,ve=!0;X;)le[ue]=X,X.isBuf||(ve=!1),X=X.next,ue+=1;le.allBuffers=ve,F(G,Z,!0,Z.length,le,"",se.finish),Z.pendingcb++,Z.lastBufferedRequest=null,se.next?(Z.corkedRequestsFree=se.next,se.next=null):Z.corkedRequestsFree=new i(Z),Z.bufferedRequestCount=0}else{for(;X;){var he=X.chunk,re=X.encoding,W=X.callback;if(F(G,Z,!1,Z.objectMode?1:he.length,he,re,W),X=X.next,Z.bufferedRequestCount--,Z.writing)break}X===null&&(Z.lastBufferedRequest=null)}Z.bufferedRequest=X,Z.bufferProcessing=!1}function M(G){return G.ending&&G.length===0&&G.bufferedRequest===null&&!G.finished&&!G.writing}function K(G,Z){G._final((function(X){Z.pendingcb--,X&&A(G,X),Z.prefinished=!0,G.emit("prefinish"),ee(G,Z)}))}function ee(G,Z){var X=M(Z);if(X&&((function(se,ue){ue.prefinished||ue.finalCalled||(typeof se._final!="function"||ue.destroyed?(ue.prefinished=!0,se.emit("prefinish")):(ue.pendingcb++,ue.finalCalled=!0,s.nextTick(K,se,ue)))})(G,Z),Z.pendingcb===0&&(Z.finished=!0,G.emit("finish"),Z.autoDestroy))){var te=G._readableState;(!te||te.autoDestroy&&te.endEmitted)&&G.destroy()}return X}r(698)(P,o),k.prototype.getBuffer=function(){for(var Z=this.bufferedRequest,X=[];Z;)X.push(Z),Z=Z.next;return X},(function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(Z){return!!c.call(this,Z)||this===P&&Z&&Z._writableState instanceof k}})):c=function(Z){return Z instanceof this},P.prototype.pipe=function(){A(this,new E)},P.prototype.write=function(G,Z,X){var te=this._writableState,le=!1,se=!te.objectMode&&(function(ve){return u.isBuffer(ve)||ve instanceof l})(G);return se&&!u.isBuffer(G)&&(G=(function(ve){return u.from(ve)})(G)),typeof Z=="function"&&(X=Z,Z=null),se?Z="buffer":Z||(Z=te.defaultEncoding),typeof X!="function"&&(X=T),te.ending?(function(ve,he){var re=new w;A(ve,re),s.nextTick(he,re)})(this,X):(se||(function(ve,he,re,W){var V;return re===null?V=new _:typeof re=="string"||he.objectMode||(V=new g("chunk",["string","Buffer"],re)),!V||(A(ve,V),s.nextTick(W,V),!1)})(this,te,G,X))&&(te.pendingcb++,le=(function(ve,he,re,W,V,ge){if(!re){var me=(function(Le,ye,Se){return Le.objectMode||Le.decodeStrings===!1||typeof ye!="string"||(ye=u.from(ye,Se)),ye})(he,W,V);W!==me&&(re=!0,V="buffer",W=me)}var Me=he.objectMode?1:W.length;he.length+=Me;var $e=he.length<he.highWaterMark;if($e||(he.needDrain=!0),he.writing||he.corked){var Ie=he.lastBufferedRequest;he.lastBufferedRequest={chunk:W,encoding:V,isBuf:re,callback:ge,next:null},Ie?Ie.next=he.lastBufferedRequest:he.bufferedRequest=he.lastBufferedRequest,he.bufferedRequestCount+=1}else F(ve,he,!1,Me,W,V,ge);return $e})(this,te,se,G,Z,X)),le},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||$(this,G))},P.prototype.setDefaultEncoding=function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Z+"").toLowerCase())>-1))throw new S(Z);return this._writableState.defaultEncoding=Z,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(G,Z,X){X(new y("_write()"))},P.prototype._writev=null,P.prototype.end=function(G,Z,X){var te=this._writableState;return typeof G=="function"?(X=G,G=null,Z=null):typeof Z=="function"&&(X=Z,Z=null),G!=null&&this.write(G,Z),te.corked&&(te.corked=1,this.uncork()),te.ending||(function(se,ue,ve){ue.ending=!0,ee(se,ue),ve&&(ue.finished?s.nextTick(ve):se.once("finish",ve)),ue.ended=!0,se.writable=!1})(this,te,X),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Z){this._writableState&&(this._writableState.destroyed=Z)}}),P.prototype.destroy=p.destroy,P.prototype._undestroy=p.undestroy,P.prototype._destroy=function(G,Z){Z(G)}},710:function(t,e,r){var n=r(698),s=r(107),i=r(392),a=r(861).Buffer,o=new Array(64);function u(){this.init(),this._w=o,i.call(this,64,56)}n(u,s),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var l=a.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},t.exports=u},726:function(t,e,r){function n(h,d){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);d&&(y=y.filter((function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable}))),g.push.apply(g,y)}return g}function s(h){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{};d%2?n(Object(g),!0).forEach((function(y){i(h,y,g[y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):n(Object(g)).forEach((function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(g,y))}))}return h}function i(h,d,g){return(d=o(d))in h?Object.defineProperty(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[d]=g,h}function a(h,d){for(var g=0;g<d.length;g++){var y=d[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,o(y.key),y)}}function o(h){var d=(function(y,v){if(typeof y!="object"||y===null)return y;var E=y[Symbol.toPrimitive];if(E!==void 0){var b=E.call(y,v);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)})(h,"string");return typeof d=="symbol"?d:String(d)}var u=r(287).Buffer,l=r(340).inspect,c=l&&l.custom||"inspect";function p(h,d,g){u.prototype.copy.call(h,d,g)}t.exports=(function(){function h(){(function(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")})(this,h),this.head=null,this.tail=null,this.length=0}return(function(g,y,v){return y&&a(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g})(h,[{key:"push",value:function(g){var y={data:g,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(g){var y={data:g,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=g+y.data;return v}},{key:"concat",value:function(g){if(this.length===0)return u.alloc(0);for(var y=u.allocUnsafe(g>>>0),v=this.head,E=0;v;)p(v.data,y,E),E+=v.data.length,v=v.next;return y}},{key:"consume",value:function(g,y){var v;return g<this.head.data.length?(v=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):v=g===this.head.data.length?this.shift():y?this._getString(g):this._getBuffer(g),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var y=this.head,v=1,E=y.data;for(g-=E.length;y=y.next;){var b=y.data,_=g>b.length?b.length:g;if(_===b.length?E+=b:E+=b.slice(0,g),(g-=_)===0){_===b.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=b.slice(_));break}++v}return this.length-=v,E}},{key:"_getBuffer",value:function(g){var y=u.allocUnsafe(g),v=this.head,E=1;for(v.data.copy(y),g-=v.data.length;v=v.next;){var b=v.data,_=g>b.length?b.length:g;if(b.copy(y,y.length-g,0,_),(g-=_)===0){_===b.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(_));break}++E}return this.length-=E,y}},{key:c,value:function(g,y){return l(this,s(s({},y),{},{depth:0,customInspect:!1}))}}]),h})()},737:function(t,e,r){var n=r(698),s=r(392),i=r(861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,s.call(this,64,56)}function l(h){return h<<5|h>>>27}function c(h){return h<<30|h>>>2}function p(h,d,g,y){return h===0?d&g|~d&y:h===2?d&g|d&y|g&y:d^g^y}n(u,s),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(h){for(var d,g=this._w,y=0|this._a,v=0|this._b,E=0|this._c,b=0|this._d,_=0|this._e,w=0;w<16;++w)g[w]=h.readInt32BE(4*w);for(;w<80;++w)g[w]=(d=g[w-3]^g[w-8]^g[w-14]^g[w-16])<<1|d>>>31;for(var S=0;S<80;++S){var A=~~(S/20),T=l(y)+p(A,v,E,b)+_+g[S]+a[A]|0;_=b,b=E,E=c(v),v=y,y=T}this._a=y+this._a|0,this._b=v+this._b|0,this._c=E+this._c|0,this._d=b+this._d|0,this._e=_+this._e|0},u.prototype._hash=function(){var h=i.allocUnsafe(20);return h.writeInt32BE(0|this._a,0),h.writeInt32BE(0|this._b,4),h.writeInt32BE(0|this._c,8),h.writeInt32BE(0|this._d,12),h.writeInt32BE(0|this._e,16),h},t.exports=u},758:function(t,e,r){var n,s=r(48).F,i=s.ERR_MISSING_ARGS,a=s.ERR_STREAM_DESTROYED;function o(c){if(c)throw c}function u(c){c()}function l(c,p){return c.pipe(p)}t.exports=function(){for(var p=arguments.length,h=new Array(p),d=0;d<p;d++)h[d]=arguments[d];var g,y=(function(b){return b.length?typeof b[b.length-1]!="function"?o:b.pop():o})(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new i("streams");var v=h.map((function(E,b){var _=b<h.length-1;return(function(S,A,T,k){k=(function($){var M=!1;return function(){M||(M=!0,$.apply(void 0,arguments))}})(k);var P=!1;S.on("close",(function(){P=!0})),n===void 0&&(n=r(238)),n(S,{readable:A,writable:T},(function(R){if(R)return k(R);P=!0,k()}));var F=!1;return function(R){if(!P&&!F)return F=!0,(function(M){return M.setHeader&&typeof M.abort=="function"})(S)?S.abort():typeof S.destroy=="function"?S.destroy():void k(R||new a("pipe"))}})(E,_,b>0,(function(w){g||(g=w),w&&v.forEach(u),_||(v.forEach(u),y(g))}))}));return h.reduce(l)}},802:function(t,e,r){t.exports=function(s){var i=s.toLowerCase(),a=t.exports[i];if(!a)throw new Error(i+" is not supported (we accept pull requests)");return new a},t.exports.sha=r(816),t.exports.sha1=r(737),t.exports.sha224=r(710),t.exports.sha256=r(107),t.exports.sha384=r(827),t.exports.sha512=r(890)},816:function(t,e,r){var n=r(698),s=r(392),i=r(861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,s.call(this,64,56)}function l(p){return p<<30|p>>>2}function c(p,h,d,g){return p===0?h&d|~h&g:p===2?h&d|h&g|d&g:h^d^g}n(u,s),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(p){for(var h,d=this._w,g=0|this._a,y=0|this._b,v=0|this._c,E=0|this._d,b=0|this._e,_=0;_<16;++_)d[_]=p.readInt32BE(4*_);for(;_<80;++_)d[_]=d[_-3]^d[_-8]^d[_-14]^d[_-16];for(var w=0;w<80;++w){var S=~~(w/20),A=0|((h=g)<<5|h>>>27)+c(S,y,v,E)+b+d[w]+a[S];b=E,E=v,v=l(y),y=g,g=A}this._a=g+this._a|0,this._b=y+this._b|0,this._c=v+this._c|0,this._d=E+this._d|0,this._e=b+this._e|0},u.prototype._hash=function(){var p=i.allocUnsafe(20);return p.writeInt32BE(0|this._a,0),p.writeInt32BE(0|this._b,4),p.writeInt32BE(0|this._c,8),p.writeInt32BE(0|this._d,12),p.writeInt32BE(0|this._e,16),p},t.exports=u},827:function(t,e,r){var n=r(698),s=r(890),i=r(392),a=r(861).Buffer,o=new Array(160);function u(){this.init(),this._w=o,i.call(this,128,112)}n(u,s),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var l=a.allocUnsafe(48);function c(p,h,d){l.writeInt32BE(p,d),l.writeInt32BE(h,d+4)}return c(this._ah,this._al,0),c(this._bh,this._bl,8),c(this._ch,this._cl,16),c(this._dh,this._dl,24),c(this._eh,this._el,32),c(this._fh,this._fl,40),l},t.exports=u},838:function(){},861:function(t,e,r){var n=r(287),s=n.Buffer;function i(o,u){for(var l in o)u[l]=o[l]}function a(o,u,l){return s(o,u,l)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),a.prototype=Object.create(s.prototype),i(s,a),a.from=function(o,u,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return s(o,u,l)},a.alloc=function(o,u,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=s(o);return u!==void 0?typeof l=="string"?c.fill(u,l):c.fill(u):c.fill(0),c},a.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return s(o)},a.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},890:function(t,e,r){var n=r(698),s=r(392),i=r(861).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function u(){this.init(),this._w=o,s.call(this,128,112)}function l(b,_,w){return w^b&(_^w)}function c(b,_,w){return b&_|w&(b|_)}function p(b,_){return(b>>>28|_<<4)^(_>>>2|b<<30)^(_>>>7|b<<25)}function h(b,_){return(b>>>14|_<<18)^(b>>>18|_<<14)^(_>>>9|b<<23)}function d(b,_){return(b>>>1|_<<31)^(b>>>8|_<<24)^b>>>7}function g(b,_){return(b>>>1|_<<31)^(b>>>8|_<<24)^(b>>>7|_<<25)}function y(b,_){return(b>>>19|_<<13)^(_>>>29|b<<3)^b>>>6}function v(b,_){return(b>>>19|_<<13)^(_>>>29|b<<3)^(b>>>6|_<<26)}function E(b,_){return b>>>0<_>>>0?1:0}n(u,s),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(b){for(var _=this._w,w=0|this._ah,S=0|this._bh,A=0|this._ch,T=0|this._dh,k=0|this._eh,P=0|this._fh,F=0|this._gh,R=0|this._hh,$=0|this._al,M=0|this._bl,K=0|this._cl,ee=0|this._dl,G=0|this._el,Z=0|this._fl,X=0|this._gl,te=0|this._hl,le=0;le<32;le+=2)_[le]=b.readInt32BE(4*le),_[le+1]=b.readInt32BE(4*le+4);for(;le<160;le+=2){var se=_[le-30],ue=_[le-30+1],ve=d(se,ue),he=g(ue,se),re=y(se=_[le-4],ue=_[le-4+1]),W=v(ue,se),V=_[le-14],ge=_[le-14+1],me=_[le-32],Me=_[le-32+1],$e=he+ge|0,Ie=ve+V+E($e,he)|0;Ie=(Ie=Ie+re+E($e=$e+W|0,W)|0)+me+E($e=$e+Me|0,Me)|0,_[le]=Ie,_[le+1]=$e}for(var ke=0;ke<160;ke+=2){Ie=_[ke],$e=_[ke+1];var Le=c(w,S,A),ye=c($,M,K),Se=p(w,$),we=p($,w),L=h(k,G),C=h(G,k),j=a[ke],U=a[ke+1],Y=l(k,P,F),ne=l(G,Z,X),fe=te+C|0,Ne=R+L+E(fe,te)|0;Ne=(Ne=(Ne=Ne+Y+E(fe=fe+ne|0,ne)|0)+j+E(fe=fe+U|0,U)|0)+Ie+E(fe=fe+$e|0,$e)|0;var Ge=we+ye|0,q=Se+Le+E(Ge,we)|0;R=F,te=X,F=P,X=Z,P=k,Z=G,k=T+Ne+E(G=ee+fe|0,ee)|0,T=A,ee=K,A=S,K=M,S=w,M=$,w=Ne+q+E($=fe+Ge|0,fe)|0}this._al=this._al+$|0,this._bl=this._bl+M|0,this._cl=this._cl+K|0,this._dl=this._dl+ee|0,this._el=this._el+G|0,this._fl=this._fl+Z|0,this._gl=this._gl+X|0,this._hl=this._hl+te|0,this._ah=this._ah+w+E(this._al,$)|0,this._bh=this._bh+S+E(this._bl,M)|0,this._ch=this._ch+A+E(this._cl,K)|0,this._dh=this._dh+T+E(this._dl,ee)|0,this._eh=this._eh+k+E(this._el,G)|0,this._fh=this._fh+P+E(this._fl,Z)|0,this._gh=this._gh+F+E(this._gl,X)|0,this._hh=this._hh+R+E(this._hl,te)|0},u.prototype._hash=function(){var b=i.allocUnsafe(64);function _(w,S,A){b.writeInt32BE(w,A),b.writeInt32BE(S,A+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),_(this._gh,this._gl,48),_(this._hh,this._hl,56),b},t.exports=u},896:function(t,e,r){var n=r(606);function s(o,u){a(o,u),i(o)}function i(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function a(o,u){o.emit("error",u)}t.exports={destroy:function(u,l){var c=this,p=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return p||h?(l?l(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,u)):n.nextTick(a,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,(function(d){!l&&d?c._writableState?c._writableState.errorEmitted?n.nextTick(i,c):(c._writableState.errorEmitted=!0,n.nextTick(s,c,d)):n.nextTick(s,c,d):l?(n.nextTick(i,c),l(d)):n.nextTick(i,c)})),this)},undestroy:function(){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)},errorOrDestroy:function(u,l){var c=u._readableState,p=u._writableState;c&&c.autoDestroy||p&&p.autoDestroy?u.destroy(l):u.emit("error",l)}}},919:function(t,e,r){var n=r(287).Buffer;function s(l){return l instanceof n||l instanceof Date||l instanceof RegExp}function i(l){if(l instanceof n){var c=n.alloc?n.alloc(l.length):new n(l.length);return l.copy(c),c}if(l instanceof Date)return new Date(l.getTime());if(l instanceof RegExp)return new RegExp(l);throw new Error("Unexpected situation")}function a(l){var c=[];return l.forEach((function(p,h){typeof p=="object"&&p!==null?Array.isArray(p)?c[h]=a(p):s(p)?c[h]=i(p):c[h]=u({},p):c[h]=p})),c}function o(l,c){return c==="__proto__"?void 0:l[c]}var u=t.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var l,c,p=arguments[0];return Array.prototype.slice.call(arguments,1).forEach((function(h){typeof h!="object"||h===null||Array.isArray(h)||Object.keys(h).forEach((function(d){return c=o(p,d),(l=o(h,d))===p?void 0:typeof l!="object"||l===null?void(p[d]=l):Array.isArray(l)?void(p[d]=a(l)):s(l)?void(p[d]=i(l)):typeof c!="object"||c===null||Array.isArray(c)?void(p[d]=u({},l)):void(p[d]=u(c,l))}))})),p}},955:function(t,e,r){var n,s=r(606);function i(_,w,S){return(w=(function(T){var k=(function(F,R){if(typeof F!="object"||F===null)return F;var $=F[Symbol.toPrimitive];if($!==void 0){var M=$.call(F,R);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(F)})(T,"string");return typeof k=="symbol"?k:String(k)})(w))in _?Object.defineProperty(_,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):_[w]=S,_}var a=r(238),o=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),p=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function g(_,w){return{value:_,done:w}}function y(_){var w=_[o];if(w!==null){var S=_[d].read();S!==null&&(_[p]=null,_[o]=null,_[u]=null,w(g(S,!1)))}}function v(_){s.nextTick(y,_)}var E=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var w=this,S=this[l];if(S!==null)return Promise.reject(S);if(this[c])return Promise.resolve(g(void 0,!0));if(this[d].destroyed)return new Promise((function(P,F){s.nextTick((function(){w[l]?F(w[l]):P(g(void 0,!0))}))}));var A,T=this[p];if(T)A=new Promise((function(F,R){return function($,M){F.then((function(){R[c]?$(g(void 0,!0)):R[h]($,M)}),M)}})(T,this));else{var k=this[d].read();if(k!==null)return Promise.resolve(g(k,!1));A=new Promise(this[h])}return this[p]=A,A}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var w=this;return new Promise((function(S,A){w[d].destroy(null,(function(T){T?A(T):S(g(void 0,!0))}))}))})),n),E);t.exports=function(w){var S,A=Object.create(b,(i(S={},d,{value:w,writable:!0}),i(S,o,{value:null,writable:!0}),i(S,u,{value:null,writable:!0}),i(S,l,{value:null,writable:!0}),i(S,c,{value:w._readableState.endEmitted,writable:!0}),i(S,h,{value:function(k,P){var F=A[d].read();F?(A[p]=null,A[o]=null,A[u]=null,k(g(F,!1))):(A[o]=k,A[u]=P)},writable:!0}),S));return A[p]=null,a(w,(function(T){if(T&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"){var k=A[u];return k!==null&&(A[p]=null,A[o]=null,A[u]=null,k(T)),void(A[l]=T)}var P=A[o];P!==null&&(A[p]=null,A[o]=null,A[u]=null,P(g(void 0,!0))),A[c]=!0})),w.on("readable",v.bind(null,A)),A}},987:function(t){t.exports=N5}},h3={};function be(t){var e=h3[t];if(e!==void 0)return e.exports;var r=h3[t]={exports:{}};return Mpe[t](r,r.exports,be),r.exports}be.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return be.d(e,{a:e}),e},be.d=function(t,e){for(var r in e)be.o(e,r)&&!be.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},be.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),be.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},be.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a8={};be.d(a8,{A:function(){return RSe}});var U1={};be.r(U1),be.d(U1,{CLEAR:function(){return fA},CLEAR_BY:function(){return pA},NEW_AUTH_ERR:function(){return cA},NEW_SPEC_ERR:function(){return uA},NEW_SPEC_ERR_BATCH:function(){return lA},NEW_THROWN_ERR:function(){return Np},NEW_THROWN_ERR_BATCH:function(){return oA},clear:function(){return zpe},clearBy:function(){return Wpe},newAuthErr:function(){return Vpe},newSpecErr:function(){return Lpe},newSpecErrBatch:function(){return Upe},newThrownErr:function(){return Bpe},newThrownErrBatch:function(){return $pe}});var V1={};be.r(V1),be.d(V1,{AUTHORIZE:function(){return mA},AUTHORIZE_OAUTH2:function(){return yA},CONFIGURE_AUTH:function(){return vA},LOGOUT:function(){return gA},RESTORE_AUTHORIZATION:function(){return bA},SHOW_AUTH_POPUP:function(){return hA},authPopup:function(){return vde},authorize:function(){return nde},authorizeAccessCodeWithBasicAuthentication:function(){return dde},authorizeAccessCodeWithFormParams:function(){return pde},authorizeApplication:function(){return fde},authorizeOauth2:function(){return ude},authorizeOauth2WithPersistOption:function(){return lde},authorizePassword:function(){return cde},authorizeRequest:function(){return hde},authorizeWithPersistOption:function(){return sde},configureAuth:function(){return mde},logout:function(){return ide},logoutWithPersistOption:function(){return ade},persistAuthorizationIfNeeded:function(){return yde},preAuthorizeImplicit:function(){return ode},restoreAuthorization:function(){return gde},showDefinitions:function(){return rde}});var z1={};be.r(z1),be.d(z1,{authorized:function(){return Ade},definitionsForRequirements:function(){return xde},definitionsToAuthorize:function(){return Sde},getConfigs:function(){return Cde},getDefinitionsByNames:function(){return wde},isAuthorized:function(){return Ode},selectAuthPath:function(){return _de},shownDefinitions:function(){return Ede}});var W1={};be.r(W1),be.d(W1,{TOGGLE_CONFIGS:function(){return _A},UPDATE_CONFIGS:function(){return SA},downloadConfig:function(){return Bde},getConfigByUrl:function(){return $de},loaded:function(){return qde},toggle:function(){return Fde},update:function(){return Dde}});var J1={};be.r(J1),be.d(J1,{get:function(){return Lde}});var H1={};be.r(H1),be.d(H1,{transform:function(){return Kde}});var K1={};be.r(K1),be.d(K1,{transform:function(){return Gde}});var G1={};be.r(G1),be.d(G1,{allErrors:function(){return v8},lastError:function(){return Xde}});var Y1={};be.r(Y1),be.d(Y1,{SHOW:function(){return OA},UPDATE_FILTER:function(){return xA},UPDATE_LAYOUT:function(){return wA},UPDATE_MODE:function(){return AA},changeMode:function(){return lhe},show:function(){return uhe},updateFilter:function(){return ohe},updateLayout:function(){return ahe}});var X1={};be.r(X1),be.d(X1,{current:function(){return fhe},currentFilter:function(){return phe},isShown:function(){return _8},showSummary:function(){return hhe},whatMode:function(){return dhe}});var Z1={};be.r(Z1),be.d(Z1,{taggedOperations:function(){return mhe}});var Q1={};be.r(Q1),be.d(Q1,{getActiveLanguage:function(){return _he},getDefaultExpanded:function(){return whe},getGenerators:function(){return C8},getSnippetGenerators:function(){return She}});var e_={};be.r(e_),be.d(e_,{JsonSchemaArrayItemFile:function(){return P8},JsonSchemaArrayItemText:function(){return k8},JsonSchemaForm:function(){return $he},JsonSchema_array:function(){return Uhe},JsonSchema_boolean:function(){return Vhe},JsonSchema_object:function(){return Whe},JsonSchema_string:function(){return Lhe}});var t_={};be.r(t_),be.d(t_,{allowTryItOutFor:function(){return Ime},basePath:function(){return wme},canExecuteScheme:function(){return qme},consumes:function(){return H8},consumesOptionsFor:function(){return Fme},contentTypeValues:function(){return Mme},currentProducesFor:function(){return s4},definitions:function(){return _me},externalDocs:function(){return gme},findDefinition:function(){return Sme},getOAS3RequiredRequestBodyContentType:function(){return $me},getParameter:function(){return Pme},hasHost:function(){return jme},host:function(){return xme},info:function(){return V8},isMediaTypeSchemaPropertiesEqual:function(){return Lme},isOAS3:function(){return mme},lastError:function(){return ume},mutatedRequestFor:function(){return Tme},mutatedRequests:function(){return e4},operationScheme:function(){return i4},operationWithMeta:function(){return r4},operations:function(){return J8},operationsWithRootInherited:function(){return G8},operationsWithTags:function(){return X8},parameterInclusionSettingFor:function(){return t4},parameterValues:function(){return n4},parameterWithMeta:function(){return kme},parameterWithMetaByIdentity:function(){return PA},parametersIncludeIn:function(){return Nme},parametersIncludeType:function(){return v_},paths:function(){return W8},produces:function(){return K8},producesOptionsFor:function(){return Dme},requestFor:function(){return Rme},requests:function(){return Q8},responseFor:function(){return Cme},responses:function(){return Z8},schemes:function(){return Ame},security:function(){return bme},securityDefinitions:function(){return Eme},semver:function(){return yme},spec:function(){return pn},specJS:function(){return pme},specJson:function(){return IA},specJsonWithResolvedSubtrees:function(){return cs},specResolved:function(){return dme},specResolvedSubtree:function(){return hme},specSource:function(){return fme},specStr:function(){return cme},tagDetails:function(){return Y8},taggedOperations:function(){return Ome},tags:function(){return kA},url:function(){return lme},validOperationMethods:function(){return vme},validateBeforeExecute:function(){return Bme},validationErrors:function(){return a4},version:function(){return z8}});var r_={};be.r(r_),be.d(r_,{CLEAR_REQUEST:function(){return UA},CLEAR_RESPONSE:function(){return LA},CLEAR_VALIDATE_PARAMS:function(){return VA},LOG_REQUEST:function(){return l4},SET_MUTATED_REQUEST:function(){return $A},SET_REQUEST:function(){return BA},SET_RESPONSE:function(){return qA},SET_SCHEME:function(){return WA},UPDATE_EMPTY_PARAM_INCLUSION:function(){return DA},UPDATE_JSON:function(){return MA},UPDATE_OPERATION_META_VALUE:function(){return $p},UPDATE_PARAM:function(){return Bp},UPDATE_RESOLVED:function(){return zA},UPDATE_RESOLVED_SUBTREE:function(){return Lp},UPDATE_SPEC:function(){return jA},UPDATE_URL:function(){return NA},VALIDATE_PARAMS:function(){return FA},changeConsumesValue:function(){return oge},changeParam:function(){return ege},changeParamByIdentity:function(){return tge},changeProducesValue:function(){return uge},clearRequest:function(){return gge},clearResponse:function(){return mge},clearValidateParams:function(){return age},execute:function(){return hge},executeRequest:function(){return dge},invalidateResolvedSubtreeCache:function(){return nge},logRequest:function(){return pge},parseToJson:function(){return Yme},requestResolvedSubtree:function(){return Qme},resolveSpec:function(){return Xme},setMutatedRequest:function(){return fge},setRequest:function(){return cge},setResponse:function(){return lge},setScheme:function(){return yge},updateEmptyParamInclusion:function(){return ige},updateJsonSpec:function(){return Gme},updateResolved:function(){return Hme},updateResolvedSubtree:function(){return rge},updateSpec:function(){return Jme},updateUrl:function(){return Kme},validateParams:function(){return sge}});var n_={};be.r(n_),be.d(n_,{executeRequest:function(){return Sge},updateJsonSpec:function(){return Ege},updateSpec:function(){return bge},validateParams:function(){return _ge}});var s_={};be.r(s_),be.d(s_,{Button:function(){return eve},Col:function(){return Zye},Collapse:function(){return sve},Container:function(){return Xye},Input:function(){return rve},Link:function(){return R4},Row:function(){return Qye},Select:function(){return nve},TextArea:function(){return tve}});var i_={};be.r(i_),be.d(i_,{basePath:function(){return Lve},consumes:function(){return Uve},definitions:function(){return Dve},findDefinition:function(){return Mve},hasHost:function(){return Fve},host:function(){return $ve},produces:function(){return Vve},schemes:function(){return zve},securityDefinitions:function(){return qve},validOperationMethods:function(){return Bve}});var a_={};be.r(a_),be.d(a_,{definitionsToAuthorize:function(){return Wve}});var o_={};be.r(o_),be.d(o_,{callbacksOperations:function(){return Zve},findSchema:function(){return Xve},isOAS3:function(){return Gve},isOAS30:function(){return Kve},isSwagger2:function(){return Hve},servers:function(){return Yve}});var u_={};be.r(u_),be.d(u_,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return Vp},CLEAR_REQUEST_BODY_VALUE:function(){return s2},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return n2},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return QA},UPDATE_REQUEST_BODY_INCLUSION:function(){return ZA},UPDATE_REQUEST_BODY_VALUE:function(){return YA},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return XA},UPDATE_REQUEST_CONTENT_TYPE:function(){return e2},UPDATE_RESPONSE_CONTENT_TYPE:function(){return t2},UPDATE_SELECTED_SERVER:function(){return GA},UPDATE_SERVER_VARIABLE_VALUE:function(){return r2},clearRequestBodyValidateError:function(){return O0e},clearRequestBodyValue:function(){return R0e},initRequestBodyValidateError:function(){return C0e},setActiveExamplesMember:function(){return S0e},setRequestBodyInclusion:function(){return E0e},setRequestBodyValidateError:function(){return A0e},setRequestBodyValue:function(){return v0e},setRequestContentType:function(){return _0e},setResponseContentType:function(){return w0e},setRetainRequestBodyValueFlag:function(){return b0e},setSelectedServer:function(){return y0e},setServerVariableValue:function(){return x0e}});var l_={};be.r(l_),be.d(l_,{activeExamplesMember:function(){return F0e},hasUserEditedBody:function(){return N0e},requestBodyErrors:function(){return D0e},requestBodyInclusionSetting:function(){return M0e},requestBodyValue:function(){return k0e},requestContentType:function(){return q0e},responseContentType:function(){return B0e},selectDefaultRequestBodyValue:function(){return j0e},selectedServer:function(){return I0e},serverEffectiveValue:function(){return U0e},serverVariableValue:function(){return $0e},serverVariables:function(){return L0e},shouldRetainRequestBodyValue:function(){return P0e},validOperationMethods:function(){return W0e},validateBeforeExecute:function(){return V0e},validateShallowRequired:function(){return z0e}});var f=(function(t){var e={};return be.d(e,t),e})({Component:function(){return mr.Component},PureComponent:function(){return mr.PureComponent},createContext:function(){return mr.createContext},createElement:function(){return mr.createElement},default:function(){return Zn},forwardRef:function(){return mr.forwardRef},useCallback:function(){return mr.useCallback},useContext:function(){return mr.useContext},useEffect:function(){return mr.useEffect},useMemo:function(){return mr.useMemo},useRef:function(){return mr.useRef},useState:function(){return mr.useState}}),Vo=(function(t){var e={};return be.d(e,t),e})({applyMiddleware:function(){return N9},bindActionCreators:function(){return j9},compose:function(){return P9},createStore:function(){return k9}}),z=(function(t){var e={};return be.d(e,t),e})({List:function(){return Ws.List},Map:function(){return Ws.Map},OrderedMap:function(){return Ws.OrderedMap},Seq:function(){return Ws.Seq},Set:function(){return Ws.Set},default:function(){return D5},fromJS:function(){return Ws.fromJS}}),Dpe=be(919),du=be.n(Dpe),Fpe=(function(t){var e={};return be.d(e,t),e})({combineReducers:function(){return U5.combineReducers}}),o8=(function(t){var e={};return be.d(e,t),e})({serializeError:function(){return z5.serializeError}}),qpe=(function(t){var e={};return be.d(e,t),e})({default:function(){return M7}});const Np="err_new_thrown_err",oA="err_new_thrown_err_batch",uA="err_new_spec_err",lA="err_new_spec_err_batch",cA="err_new_auth_err",fA="err_clear",pA="err_clear_by";function Bpe(t){return{type:Np,payload:(0,o8.serializeError)(t)}}function $pe(t){return{type:oA,payload:t}}function Lpe(t){return{type:uA,payload:t}}function Upe(t){return{type:lA,payload:t}}function Vpe(t){return{type:cA,payload:t}}function zpe(t={}){return{type:fA,payload:t}}function Wpe(t=()=>!0){return{type:pA,payload:t}}var Gt=(function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>"u")return e;try{e=window;for(var r of["File","Blob","FormData"])r in window&&(e[r]=window[r])}catch(n){console.error(n)}return e})(),zo=((function(t){var e={};be.d(e,t)})({}),(function(t){var e={};be.d(e,t)})({}),(function(t){var e={};return be.d(e,t),e})({default:function(){return Q7}})),Jpe=(function(t){var e={};return be.d(e,t),e})({default:function(){return kV}}),u8=(function(t){var e={};return be.d(e,t),e})({default:function(){return FV}}),Hpe=(function(t){var e={};return be.d(e,t),e})({default:function(){return BV}}),m3=(function(t){var e={};return be.d(e,t),e})({default:function(){return LV}}),Kpe=(function(t){var e={};return be.d(e,t),e})({default:function(){return WV}}),Gpe=be(209),$a=be.n(Gpe),Ype=be(802),Xpe=be.n(Ype);const Zpe=z.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function jc(t,{isOAS3:e}={}){if(!z.default.Map.isMap(t))return{schema:z.default.Map(),parameterContentMediaType:null};if(!e)return t.get("in")==="body"?{schema:t.get("schema",z.default.Map()),parameterContentMediaType:null}:{schema:t.filter(((r,n)=>Zpe.includes(n))),parameterContentMediaType:null};if(t.get("content")){const r=t.get("content",z.default.Map({})).keySeq().first();return{schema:t.getIn(["content",r,"schema"],z.default.Map()),parameterContentMediaType:r}}return{schema:t.get("schema")?t.get("schema",z.default.Map()):z.default.Map(),parameterContentMediaType:null}}var g3=be(287).Buffer;const y3="default",kl=t=>z.default.Iterable.isIterable(t),eo=t=>kl(t)?t.toJS():t;function Hi(t){return _s(t)?eo(t):{}}function Ss(t){if(kl(t)||t instanceof Gt.File||!_s(t))return t;if(Array.isArray(t))return z.default.Seq(t).map(Ss).toList();if((0,m3.default)(t.entries)){const e=(function(n){if(!(0,m3.default)(n.entries))return n;const s={},i="_**[]",a={};for(let o of n.entries())s[o[0]]||a[o[0]]&&a[o[0]].containsMultiple?(a[o[0]]||(a[o[0]]={containsMultiple:!0,length:1},s[`${o[0]}${i}${a[o[0]].length}`]=s[o[0]],delete s[o[0]]),a[o[0]].length+=1,s[`${o[0]}${i}${a[o[0]].length}`]=o[1]):s[o[0]]=o[1];return s})(t);return z.default.OrderedMap(e).map(Ss)}return z.default.OrderedMap(t).map(Ss)}function va(t){return Array.isArray(t)?t:[t]}function VS(t){return typeof t=="function"}function _s(t){return!!t&&typeof t=="object"}function Xs(t){return typeof t=="function"}function af(t){return Array.isArray(t)}const Qpe=zo.default;function Hn(t,e){return Object.keys(t).reduce(((r,n)=>(r[n]=e(t[n],n),r)),{})}function v3(t,e){return Object.keys(t).reduce(((r,n)=>{let s=e(t[n],n);return s&&typeof s=="object"&&Object.assign(r,s),r}),{})}function ede(t){return({dispatch:e,getState:r})=>n=>s=>typeof s=="function"?s(t()):n(s)}function c_(t,e,r,n,s){if(!e)return[];let i=[],a=e.get("nullable"),o=e.get("required"),u=e.get("maximum"),l=e.get("minimum"),c=e.get("type"),p=e.get("format"),h=e.get("maxLength"),d=e.get("minLength"),g=e.get("uniqueItems"),y=e.get("maxItems"),v=e.get("minItems"),E=e.get("pattern");const b=r||o===!0,_=t!=null,w=b||_&&c==="array"||!(!b&&!_),S=a&&t===null;if(b&&!_&&!S&&!n&&!c)return i.push("Required field is not provided"),i;if(S||!c||!w)return[];let A=c==="string"&&t,T=c==="array"&&Array.isArray(t)&&t.length,k=c==="array"&&z.default.List.isList(t)&&t.count();const P=[A,T,k,c==="array"&&typeof t=="string"&&t,c==="file"&&t instanceof Gt.File,c==="boolean"&&(t||t===!1),c==="number"&&(t||t===0),c==="integer"&&(t||t===0),c==="object"&&typeof t=="object"&&t!==null,c==="object"&&typeof t=="string"&&t].some((F=>!!F));if(b&&!P&&!n)return i.push("Required field is not provided"),i;if(c==="object"&&(s===null||s==="application/json")){let F=t;if(typeof t=="string")try{F=JSON.parse(t)}catch{return i.push("Parameter string value must be valid JSON"),i}e&&e.has("required")&&Xs(o.isList)&&o.isList()&&o.forEach((R=>{F[R]===void 0&&i.push({propKey:R,error:"Required property not found"})})),e&&e.has("properties")&&e.get("properties").forEach(((R,$)=>{const M=c_(F[$],R,!1,n,s);i.push(...M.map((K=>({propKey:$,error:K}))))}))}if(E){let F=((R,$)=>{if(!new RegExp($).test(R))return"Value must follow pattern "+$})(t,E);F&&i.push(F)}if(v&&c==="array"){let F=((R,$)=>{if(!R&&$>=1||R&&R.length<$)return`Array must contain at least ${$} item${$===1?"":"s"}`})(t,v);F&&i.push(F)}if(y&&c==="array"){let F=((R,$)=>{if(R&&R.length>$)return`Array must not contain more then ${$} item${$===1?"":"s"}`})(t,y);F&&i.push({needRemove:!0,error:F})}if(g&&c==="array"){let F=((R,$)=>{if(R&&($==="true"||$===!0)){const M=(0,z.fromJS)(R),K=M.toSet();if(R.length>K.size){let ee=(0,z.Set)();if(M.forEach(((G,Z)=>{M.filter((X=>Xs(X.equals)?X.equals(G):X===G)).size>1&&(ee=ee.add(Z))})),ee.size!==0)return ee.map((G=>({index:G,error:"No duplicates allowed."}))).toArray()}}})(t,g);F&&i.push(...F)}if(h||h===0){let F=((R,$)=>{if(R.length>$)return`Value must be no longer than ${$} character${$!==1?"s":""}`})(t,h);F&&i.push(F)}if(d){let F=((R,$)=>{if(R.length<$)return`Value must be at least ${$} character${$!==1?"s":""}`})(t,d);F&&i.push(F)}if(u||u===0){let F=((R,$)=>{if(R>$)return`Value must be less than or equal to ${$}`})(t,u);F&&i.push(F)}if(l||l===0){let F=((R,$)=>{if(R<$)return`Value must be greater than or equal to ${$}`})(t,l);F&&i.push(F)}if(c==="string"){let F;if(F=p==="date-time"?(R=>{if(isNaN(Date.parse(R)))return"Value must be a DateTime"})(t):p==="uuid"?(R=>{if(R=R.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(R))return"Value must be a Guid"})(t):(R=>{if(R&&typeof R!="string")return"Value must be a string"})(t),!F)return i;i.push(F)}else if(c==="boolean"){let F=(R=>{if(R!=="true"&&R!=="false"&&R!==!0&&R!==!1)return"Value must be a boolean"})(t);if(!F)return i;i.push(F)}else if(c==="number"){let F=(R=>{if(!/^-?\d+(\.?\d+)?$/.test(R))return"Value must be a number"})(t);if(!F)return i;i.push(F)}else if(c==="integer"){let F=(R=>{if(!/^-?\d+$/.test(R))return"Value must be an integer"})(t);if(!F)return i;i.push(F)}else if(c==="array"){if(!T&&!k)return i;t&&t.forEach(((F,R)=>{const $=c_(F,e.get("items"),!1,n,s);i.push(...$.map((M=>({index:R,error:M}))))}))}else if(c==="file"){let F=(R=>{if(R&&!(R instanceof Gt.File))return"Value must be a file"})(t);if(!F)return i;i.push(F)}return i}const Pl=t=>{let e;return e=t instanceof g3?t:g3.from(t.toString(),"utf-8"),e.toString("base64")},b3={operationsSorter:{alpha:(t,e)=>t.get("path").localeCompare(e.get("path")),method:(t,e)=>t.get("method").localeCompare(e.get("method"))},tagsSorter:{alpha:(t,e)=>t.localeCompare(e)}},Mp=t=>{let e=[];for(let r in t){let n=t[r];n!==void 0&&n!==""&&e.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return e.join("&")},tde=(t,e,r)=>!!(0,Jpe.default)(r,(n=>(0,Hpe.default)(t[n],e[n])));function E3(t){return!(!t||t.indexOf("localhost")>=0||t.indexOf("127.0.0.1")>=0||t==="none")}const hu=t=>typeof t=="string"||t instanceof String?t.trim().replace(/\s/g,"%20"):"",l8=t=>(0,Kpe.default)(hu(t).replace(/%20/g,"_")),qi=t=>{const e=/^x-/;return z.Map.isMap(t)?t.filter(((r,n)=>e.test(n))):Object.keys(t).filter((r=>e.test(r)))},c8=t=>t.filter(((e,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r)));function f8(t,e,r=()=>!0){if(typeof t!="object"||Array.isArray(t)||t===null||!e)return t;const n=Object.assign({},t);return Object.keys(n).forEach((s=>{s===e&&r(n[s],s)?delete n[s]:n[s]=f8(n[s],e,r)})),n}function Fr(t){if(typeof t=="string")return t;if(t&&t.toJS&&(t=t.toJS()),typeof t=="object"&&t!==null)try{return JSON.stringify(t,null,2)}catch{return String(t)}return t==null?"":t.toString()}function of(t,{returnAll:e=!1,allowHashes:r=!0}={}){if(!z.default.Map.isMap(t))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=t.get("name"),s=t.get("in");let i=[];return t&&t.hashCode&&s&&n&&r&&i.push(`${s}.${n}.hash-${t.hashCode()}`),s&&n&&i.push(`${s}.${n}`),i.push(n),e?i:i[0]||""}function p8(t,e){return of(t,{returnAll:!0}).map((r=>e[r])).filter((r=>r!==void 0))[0]}function S3(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const dA=t=>!t||!(!kl(t)||!t.isEmpty()),_3=t=>t;class d8{constructor(e={}){du()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},e),this.getSystem=this._getSystem.bind(this),this.store=(function(n,s,i){return(function(o,u,l){let c=[ede(l)];const p=Gt.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Vo.compose;return(0,Vo.createStore)(o,u,p((0,Vo.applyMiddleware)(...c)))})(n,s,i)})(_3,(0,z.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e,r=!0){var n=f_(e,this.getSystem());h8(this.system,n),r&&this.buildSystem(),p_.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(e=!0){let r=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(r),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:z.default,React:f.default},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){this.store.replaceReducer((function(r,n){return(function(i,a){let o=Object.keys(i).reduce(((u,l)=>(u[l]=(function(p,h){return(d=new z.Map,g)=>{if(!p)return d;let y=p[g.type];if(y){const v=Wo(y,h)(d,g);return v===null?d:v}return d}})(i[l],a),u)),{});return Object.keys(o).length?(0,Fpe.combineReducers)(o):_3})(Hn(r,(s=>s.reducers)),n)})(this.system.statePlugins,this.getSystem))}getType(e){let r=e[0].toUpperCase()+e.slice(1);return v3(this.system.statePlugins,((n,s)=>{let i=n[e];if(i)return{[s+r]:i}}))}getSelectors(){return this.getType("selectors")}getActions(){return Hn(this.getType("actions"),(e=>v3(e,((r,n)=>{if(VS(r))return{[n]:r}}))))}getWrappedAndBoundActions(e){return Hn(this.getBoundActions(e),((r,n)=>{let s=this.system.statePlugins[n.slice(0,-7)].wrapActions;return s?Hn(r,((i,a)=>{let o=s[a];return o?(Array.isArray(o)||(o=[o]),o.reduce(((u,l)=>{let c=(...p)=>l(u,this.getSystem())(...p);if(!VS(c))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return Wo(c,this.getSystem)}),i||Function.prototype)):i})):r}))}getWrappedAndBoundSelectors(e,r){return Hn(this.getBoundSelectors(e,r),((n,s)=>{let i=[s.slice(0,-9)],a=this.system.statePlugins[i].wrapSelectors;return a?Hn(n,((o,u)=>{let l=a[u];return l?(Array.isArray(l)||(l=[l]),l.reduce(((c,p)=>{let h=(...d)=>p(c,this.getSystem())(e().getIn(i),...d);if(!VS(h))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return h}),o||Function.prototype)):o})):n}))}getStates(e){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=e.get(n),r)),{})}getStateThunks(e){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=()=>e().get(n),r)),{})}getFn(){return{fn:this.system.fn}}getComponents(e){const r=this.system.components[e];return Array.isArray(r)?r.reduce(((n,s)=>s(n,this.getSystem()))):e!==void 0?this.system.components[e]:this.system.components}getBoundSelectors(e,r){return Hn(this.getSelectors(),((n,s)=>{let i=[s.slice(0,-9)];return Hn(n,(a=>(...o)=>{let u=Wo(a,this.getSystem).apply(null,[e().getIn(i),...o]);return typeof u=="function"&&(u=Wo(u,this.getSystem)(r())),u}))}))}getBoundActions(e){e=e||this.getStore().dispatch;const r=this.getActions(),n=s=>typeof s!="function"?Hn(s,(i=>n(i))):(...i)=>{var a=null;try{a=s(...i)}catch(o){a={type:Np,error:!0,payload:(0,o8.serializeError)(o)}}finally{return a}};return Hn(r,(s=>(0,Vo.bindActionCreators)(n(s),e)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(e){return r=>du()({},this.getWrappedAndBoundActions(r),this.getFn(),e)}}function f_(t,e){return _s(t)&&!af(t)?(0,qpe.default)({},t):Xs(t)?f_(t(e),e):af(t)?t.map((r=>f_(r,e))).reduce(h8,{components:e.getComponents()}):{}}function p_(t,e,{hasLoaded:r}={}){let n=r;return _s(t)&&!af(t)&&typeof t.afterLoad=="function"&&(n=!0,Wo(t.afterLoad,e.getSystem).call(this,e)),Xs(t)?p_.call(this,t(e),e,{hasLoaded:n}):af(t)?t.map((s=>p_.call(this,s,e,{hasLoaded:n}))):n}function h8(t={},e={}){if(!_s(t))return{};if(!_s(e))return t;e.wrapComponents&&(Hn(e.wrapComponents,((n,s)=>{const i=t.components&&t.components[s];i&&Array.isArray(i)?(t.components[s]=i.concat([n]),delete e.wrapComponents[s]):i&&(t.components[s]=[i,n],delete e.wrapComponents[s])})),Object.keys(e.wrapComponents).length||delete e.wrapComponents);const{statePlugins:r}=t;if(_s(r))for(let n in r){const s=r[n];if(!_s(s))continue;const{wrapActions:i,wrapSelectors:a}=s;if(_s(i))for(let o in i){let u=i[o];Array.isArray(u)||(u=[u],i[o]=u),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapActions&&e.statePlugins[n].wrapActions[o]&&(e.statePlugins[n].wrapActions[o]=i[o].concat(e.statePlugins[n].wrapActions[o]))}if(_s(a))for(let o in a){let u=a[o];Array.isArray(u)||(u=[u],a[o]=u),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapSelectors&&e.statePlugins[n].wrapSelectors[o]&&(e.statePlugins[n].wrapSelectors[o]=a[o].concat(e.statePlugins[n].wrapSelectors[o]))}}return du()(t,e)}function Wo(t,e,{logErrors:r=!0}={}){return typeof t!="function"?t:function(...n){try{return t.call(this,...n)}catch(s){if(r){const{uncaughtExceptionHandler:i}=e().getConfigs();typeof i=="function"?i(s):console.error(s)}return null}}}var mu=(function(t){var e={};return be.d(e,t),e})({default:function(){return YV}});const hA="show_popup",mA="authorize",gA="logout",yA="authorize_oauth2",vA="configure_auth",bA="restore_authorization";function rde(t){return{type:hA,payload:t}}function nde(t){return{type:mA,payload:t}}const sde=t=>({authActions:e})=>{e.authorize(t),e.persistAuthorizationIfNeeded()};function ide(t){return{type:gA,payload:t}}const ade=t=>({authActions:e})=>{e.logout(t),e.persistAuthorizationIfNeeded()},ode=t=>({authActions:e,errActions:r})=>{let{auth:n,token:s,isValid:i}=t,{schema:a,name:o}=n,u=a.get("flow");delete Gt.swaggerUIRedirectOauth2,u==="accessCode"||i||r.newAuthErr({authId:o,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),s.error?r.newAuthErr({authId:o,source:"auth",level:"error",message:JSON.stringify(s)}):e.authorizeOauth2WithPersistOption({auth:n,token:s})};function ude(t){return{type:yA,payload:t}}const lde=t=>({authActions:e})=>{e.authorizeOauth2(t),e.persistAuthorizationIfNeeded()},cde=t=>({authActions:e})=>{let{schema:r,name:n,username:s,password:i,passwordType:a,clientId:o,clientSecret:u}=t,l={grant_type:"password",scope:t.scopes.join(" "),username:s,password:i},c={};switch(a){case"request-body":(function(h,d,g){d&&Object.assign(h,{client_id:d}),g&&Object.assign(h,{client_secret:g})})(l,o,u);break;case"basic":c.Authorization="Basic "+Pl(o+":"+u);break;default:console.warn(`Warning: invalid passwordType ${a} was passed, not including client id and secret`)}return e.authorizeRequest({body:Mp(l),url:r.get("tokenUrl"),name:n,headers:c,query:{},auth:t})},fde=t=>({authActions:e})=>{let{schema:r,scopes:n,name:s,clientId:i,clientSecret:a}=t,o={Authorization:"Basic "+Pl(i+":"+a)},u={grant_type:"client_credentials",scope:n.join(" ")};return e.authorizeRequest({body:Mp(u),name:s,url:r.get("tokenUrl"),auth:t,headers:o})},pde=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:s,clientId:i,clientSecret:a,codeVerifier:o}=t,u={grant_type:"authorization_code",code:t.code,client_id:i,client_secret:a,redirect_uri:e,code_verifier:o};return r.authorizeRequest({body:Mp(u),name:s,url:n.get("tokenUrl"),auth:t})},dde=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:s,clientId:i,clientSecret:a,codeVerifier:o}=t,u={Authorization:"Basic "+Pl(i+":"+a)},l={grant_type:"authorization_code",code:t.code,client_id:i,redirect_uri:e,code_verifier:o};return r.authorizeRequest({body:Mp(l),name:s,url:n.get("tokenUrl"),auth:t,headers:u})},hde=t=>({fn:e,getConfigs:r,authActions:n,errActions:s,oas3Selectors:i,specSelectors:a,authSelectors:o})=>{let u,{body:l,query:c={},headers:p={},name:h,url:d,auth:g}=t,{additionalQueryStringParams:y}=o.getConfigs()||{};if(a.isOAS3()){let b=i.serverEffectiveValue(i.selectedServer());u=(0,mu.default)(d,b,!0)}else u=(0,mu.default)(d,a.url(),!0);typeof y=="object"&&(u.query=Object.assign({},u.query,y));const v=u.toString();let E=Object.assign({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},p);e.fetch({url:v,method:"post",headers:E,query:c,body:l,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then((function(b){let _=JSON.parse(b.data),w=_&&(_.error||""),S=_&&(_.parseError||"");b.ok?w||S?s.newAuthErr({authId:h,level:"error",source:"auth",message:JSON.stringify(_)}):n.authorizeOauth2WithPersistOption({auth:g,token:_}):s.newAuthErr({authId:h,level:"error",source:"auth",message:b.statusText})})).catch((b=>{let _=new Error(b).message;if(b.response&&b.response.data){const w=b.response.data;try{const S=typeof w=="string"?JSON.parse(w):w;S.error&&(_+=`, error: ${S.error}`),S.error_description&&(_+=`, description: ${S.error_description}`)}catch{}}s.newAuthErr({authId:h,level:"error",source:"auth",message:_})}))};function mde(t){return{type:vA,payload:t}}function gde(t){return{type:bA,payload:t}}const yde=()=>({authSelectors:t,getConfigs:e})=>{if(!e().persistAuthorization)return;const r=t.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},vde=(t,e)=>()=>{Gt.swaggerUIRedirectOauth2=e,Gt.open(t)};var bde={[hA]:(t,{payload:e})=>t.set("showDefinitions",e),[mA]:(t,{payload:e})=>{let r=(0,z.fromJS)(e),n=t.get("authorized")||(0,z.Map)();return r.entrySeq().forEach((([s,i])=>{if(!Xs(i.getIn))return t.set("authorized",n);let a=i.getIn(["schema","type"]);if(a==="apiKey"||a==="http")n=n.set(s,i);else if(a==="basic"){let o=i.getIn(["value","username"]),u=i.getIn(["value","password"]);n=n.setIn([s,"value"],{username:o,header:"Basic "+Pl(o+":"+u)}),n=n.setIn([s,"schema"],i.get("schema"))}})),t.set("authorized",n)},[yA]:(t,{payload:e})=>{let r,{auth:n,token:s}=e;n.token=Object.assign({},s),r=(0,z.fromJS)(n);let i=t.get("authorized")||(0,z.Map)();return i=i.set(r.get("name"),r),t.set("authorized",i)},[gA]:(t,{payload:e})=>{let r=t.get("authorized").withMutations((n=>{e.forEach((s=>{n.delete(s)}))}));return t.set("authorized",r)},[vA]:(t,{payload:e})=>t.set("configs",e),[bA]:(t,{payload:e})=>t.set("authorized",(0,z.fromJS)(e.authorized))},at=(function(t){var e={};return be.d(e,t),e})({createSelector:function(){return M9}});const Dp=t=>t,Ede=(0,at.createSelector)(Dp,(t=>t.get("showDefinitions"))),Sde=(0,at.createSelector)(Dp,(()=>({specSelectors:t})=>{let e=t.securityDefinitions()||(0,z.Map)({}),r=(0,z.List)();return e.entrySeq().forEach((([n,s])=>{let i=(0,z.Map)();i=i.set(n,s),r=r.push(i)})),r})),_de=(t,e)=>({specSelectors:r})=>(0,z.List)(r.isOAS3()?["components","securitySchemes",e]:["securityDefinitions",e]),wde=(t,e)=>({specSelectors:r})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let n=r.securityDefinitions(),s=(0,z.List)();return e.valueSeq().forEach((i=>{let a=(0,z.Map)();i.entrySeq().forEach((([o,u])=>{let l,c=n.get(o);c.get("type")==="oauth2"&&u.size&&(l=c.get("scopes"),l.keySeq().forEach((p=>{u.contains(p)||(l=l.delete(p))})),c=c.set("allowedScopes",l)),a=a.set(o,c)})),s=s.push(a)})),s},xde=(t,e=(0,z.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,z.List)();let s=(0,z.List)();return n.forEach((i=>{let a=e.find((o=>o.get(i.keySeq().first())));a&&(i.forEach(((o,u)=>{if(o.get("type")==="oauth2"){const l=a.get(u);let c=o.get("scopes");z.List.isList(l)&&z.Map.isMap(c)&&(c.keySeq().forEach((p=>{l.contains(p)||(c=c.delete(p))})),i=i.set(u,o.set("scopes",c)))}})),s=s.push(i))})),s},Ade=(0,at.createSelector)(Dp,(t=>t.get("authorized")||(0,z.Map)())),Ode=(t,e)=>({authSelectors:r})=>{let n=r.authorized();return z.List.isList(e)?!!e.toJS().filter((s=>Object.keys(s).map((i=>!!n.get(i))).indexOf(!1)===-1)).length:null},Cde=(0,at.createSelector)(Dp,(t=>t.get("configs"))),Rde=(t,{authSelectors:e,specSelectors:r})=>({path:n,method:s,operation:i,extras:a})=>{let o={authorized:e.authorized()&&e.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return t({path:n,method:s,operation:i,securities:o,...a})},Tde=(t,e)=>r=>{const{getConfigs:n,authActions:s}=e,i=n();if(t(r),i.persistAuthorization){const a=localStorage.getItem("authorized");a&&s.restoreAuthorization({authorized:JSON.parse(a)})}},Ide=(t,e)=>r=>{if(t(r),e.getConfigs().persistAuthorization)try{const[{schema:n,value:s}]=Object.values(r),i=(0,z.fromJS)(n),a=i.get("type")==="apiKey",o=i.get("in")==="cookie";a&&o&&(document.cookie=`${i.get("name")}=${s}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},kde=(t,e)=>r=>{const n=e.getConfigs(),s=e.authSelectors.authorized();try{n.persistAuthorization&&Array.isArray(r)&&r.forEach((i=>{const a=s.get(i,{}),o=a.getIn(["schema","type"])==="apiKey",u=a.getIn(["schema","in"])==="cookie";if(o&&u){const l=a.getIn(["schema","name"]);document.cookie=`${l}=; Max-Age=-99999999`}}))}catch(i){console.error("Error deleting cookie based apiKey from document.cookie.",i)}t(r)};var on=(function(t){var e={};return be.d(e,t),e})({default:function(){return _9}}),EA=(function(t){var e={};return be.d(e,t),e})({default:function(){return vz}});class Pde extends f.default.Component{mapStateToProps(e,r){return{state:e,ownProps:(0,EA.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("LockIcon");return f.default.createElement(n,r)}}var w3=Pde;class jde extends f.default.Component{mapStateToProps(e,r){return{state:e,ownProps:(0,EA.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("UnlockIcon");return f.default.createElement(n,r)}}var x3=jde;function m8(){return{afterLoad(t){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=t.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=Mde.bind(null,t),this.rootInjects.preauthorizeBasic=Nde.bind(null,t)},components:{LockAuthIcon:w3,UnlockAuthIcon:x3,LockAuthOperationIcon:w3,UnlockAuthOperationIcon:x3},statePlugins:{auth:{reducers:bde,actions:V1,selectors:z1,wrapActions:{authorize:Ide,logout:kde}},configs:{wrapActions:{loaded:Tde}},spec:{wrapActions:{execute:Rde}}}}}function Nde(t,e,r,n){const{authActions:{authorize:s},specSelectors:{specJson:i,isOAS3:a}}=t,o=a()?["components","securitySchemes"]:["securityDefinitions"],u=i().getIn([...o,e]);return u?s({[e]:{value:{username:r,password:n},schema:u.toJS()}}):null}function Mde(t,e,r){const{authActions:{authorize:n},specSelectors:{specJson:s,isOAS3:i}}=t,a=i()?["components","securitySchemes"]:["securityDefinitions"],o=s().getIn([...a,e]);return o?n({[e]:{value:r,schema:o.toJS()}}):null}var Ks=(function(t){var e={};return be.d(e,t),e})({JSON_SCHEMA:function(){return nu},default:function(){return ea}});const SA="configs_update",_A="configs_toggle";function Dde(t,e){return{type:SA,payload:{[t]:e}}}function Fde(t){return{type:_A,payload:t}}const qde=()=>()=>{},Bde=t=>e=>{const{fn:{fetch:r}}=e;return r(t)},$de=(t,e)=>r=>{const{specActions:n,configsActions:s}=r;if(t)return s.downloadConfig(t).then(i,i);function i(a){a instanceof Error||a.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(a.statusText+" "+t.url),e(null)):e(((o,u)=>{try{return Ks.default.load(o)}catch(l){return u&&u.errActions.newThrownErr(new Error(l)),{}}})(a.text,r))}},Lde=(t,e)=>t.getIn(Array.isArray(e)?e:[e]);var Ude={[SA]:(t,e)=>t.merge((0,z.fromJS)(e.payload)),[_A]:(t,e)=>{const r=e.payload,n=t.get(r);return t.set(r,!n)}};function g8(){return{statePlugins:{configs:{reducers:Ude,actions:W1,selectors:J1}}}}const zS=t=>t?history.pushState(null,null,`#${t}`):window.location.hash="";var Vde=(function(t){var e={};return be.d(e,t),e})({default:function(){return $J}});const A3="layout_scroll_to",O3="layout_clear_scroll";var zde={fn:{getScrollParent:function(e,r){const n=document.documentElement;let s=getComputedStyle(e);const i=s.position==="absolute",a=r?/(auto|scroll|hidden)/:/(auto|scroll)/;if(s.position==="fixed")return n;for(let o=e;o=o.parentElement;)if(s=getComputedStyle(o),(!i||s.position!=="static")&&a.test(s.overflow+s.overflowY+s.overflowX))return o;return n}},statePlugins:{layout:{actions:{scrollToElement:(t,e)=>r=>{try{e=e||r.fn.getScrollParent(t),Vde.default.createScroller(e).to(t)}catch(n){console.error(n)}},scrollTo:t=>({type:A3,payload:Array.isArray(t)?t:[t]}),clearScrollTo:()=>({type:O3}),readyToScroll:(t,e)=>r=>{const n=r.layoutSelectors.getScrollToKey();z.default.is(n,(0,z.fromJS)(t))&&(r.layoutActions.scrollToElement(e),r.layoutActions.clearScrollTo())},parseDeepLinkHash:t=>({layoutActions:e,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&t){let s=t.slice(1);s[0]==="!"&&(s=s.slice(1)),s[0]==="/"&&(s=s.slice(1));const i=s.split("/").map((c=>c||"")),a=r.isShownKeyFromUrlHashArray(i),[o,u="",l=""]=a;if(o==="operations"){const c=r.isShownKeyFromUrlHashArray([u]);u.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(c.map((p=>p.replace(/_/g," "))),!0)),e.show(c,!0)}(u.indexOf("_")>-1||l.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(a.map((c=>c.replace(/_/g," "))),!0)),e.show(a,!0),e.scrollTo(a)}}},selectors:{getScrollToKey:t=>t.get("scrollToKey"),isShownKeyFromUrlHashArray(t,e){const[r,n]=e;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(t,e){let[r,n,s]=e;return r=="operations"?[n,s]:r=="operations-tag"?[n]:[]}},reducers:{[A3]:(t,e)=>t.set("scrollToKey",z.default.fromJS(e.payload)),[O3]:t=>t.delete("scrollToKey")},wrapActions:{show:(t,{getConfigs:e,layoutSelectors:r})=>(...n)=>{if(t(...n),e().deepLinking)try{let[s,i]=n;s=Array.isArray(s)?s:[s];const a=r.urlHashArrayFromIsShownKey(s);if(!a.length)return;const[o,u]=a;if(!i)return zS("/");a.length===2?zS(hu(`/${encodeURIComponent(o)}/${encodeURIComponent(u)}`)):a.length===1&&zS(hu(`/${encodeURIComponent(o)}`))}catch(s){console.error(s)}}}}}},C3=(function(t){var e={};return be.d(e,t),e})({default:function(){return VJ}}),Wde=(t,e)=>class extends f.default.Component{onLoad=n=>{const{operation:s}=this.props,{tag:i,operationId:a}=s.toObject();let{isShownKey:o}=s.toObject();o=o||["operations",i,a],e.layoutActions.readyToScroll(o,n)};render(){return f.default.createElement("span",{ref:this.onLoad},f.default.createElement(t,this.props))}},Jde=(t,e)=>class extends f.default.Component{onLoad=n=>{const{tag:s}=this.props,i=["operations-tag",s];e.layoutActions.readyToScroll(i,n)};render(){return f.default.createElement("span",{ref:this.onLoad},f.default.createElement(t,this.props))}};function y8(){return[zde,{statePlugins:{configs:{wrapActions:{loaded:(t,e)=>(...r)=>{t(...r);const n=decodeURIComponent(window.location.hash);e.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:Wde,OperationTag:Jde}}]}var Hde=(function(t){var e={};return be.d(e,t),e})({default:function(){return HJ}});function Kde(t){return t.map((e=>{let r="is not of a type(s)",n=e.get("message").indexOf(r);if(n>-1){let s=e.get("message").slice(n+19).split(",");return e.set("message",e.get("message").slice(0,n)+(function(a){return a.reduce(((o,u,l,c)=>l===c.length-1&&c.length>1?o+"or "+u:c[l+1]&&c.length>2?o+u+", ":c[l+1]?o+u+" ":o+u),"should be a")})(s))}return e}))}var d_=(function(t){var e={};return be.d(e,t),e})({default:function(){return GJ}});function Gde(t,{jsSpec:e}){return t}const Yde=[H1,K1];function Do(t){let e={jsSpec:{}};return(0,Hde.default)(Yde,((n,s)=>{try{return s.transform(n,e).filter((i=>!!i))}catch(i){return console.error("Transformer error:",i),n}}),t).filter((n=>!!n)).map((n=>(!n.get("line")&&n.get("path"),n)))}let WS={line:0,level:"error",message:"Unknown error"};const v8=(0,at.createSelector)((t=>t),(t=>t.get("errors",(0,z.List)()))),Xde=(0,at.createSelector)(v8,(t=>t.last()));function b8(t){return{statePlugins:{err:{reducers:{[Np]:(e,{payload:r})=>{let n=Object.assign(WS,r,{type:"thrown"});return e.update("errors",(s=>(s||(0,z.List)()).push((0,z.fromJS)(n)))).update("errors",(s=>Do(s)))},[oA]:(e,{payload:r})=>(r=r.map((n=>(0,z.fromJS)(Object.assign(WS,n,{type:"thrown"})))),e.update("errors",(n=>(n||(0,z.List)()).concat((0,z.fromJS)(r)))).update("errors",(n=>Do(n)))),[uA]:(e,{payload:r})=>{let n=(0,z.fromJS)(r);return n=n.set("type","spec"),e.update("errors",(s=>(s||(0,z.List)()).push((0,z.fromJS)(n)).sortBy((i=>i.get("line"))))).update("errors",(s=>Do(s)))},[lA]:(e,{payload:r})=>(r=r.map((n=>(0,z.fromJS)(Object.assign(WS,n,{type:"spec"})))),e.update("errors",(n=>(n||(0,z.List)()).concat((0,z.fromJS)(r)))).update("errors",(n=>Do(n)))),[cA]:(e,{payload:r})=>{let n=(0,z.fromJS)(Object.assign({},r));return n=n.set("type","auth"),e.update("errors",(s=>(s||(0,z.List)()).push((0,z.fromJS)(n)))).update("errors",(s=>Do(s)))},[fA]:(e,{payload:r})=>{if(!r||!e.get("errors"))return e;let n=e.get("errors").filter((s=>s.keySeq().every((i=>{const a=s.get(i),o=r[i];return!o||a!==o}))));return e.merge({errors:n})},[pA]:(e,{payload:r})=>{if(!r||typeof r!="function")return e;let n=e.get("errors").filter((s=>r(s)));return e.merge({errors:n})}},actions:U1,selectors:G1}}}}function Zde(t,e){return t.filter(((r,n)=>n.indexOf(e)!==-1))}function E8(){return{fn:{opsFilter:Zde}}}var Tt=(function(t){var e={};return be.d(e,t),e})({default:function(){return c1}}),Qde=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,Tt.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),ehe=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,Tt.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),the=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,Tt.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),rhe=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,Tt.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),nhe=({className:t=null,width:e=15,height:r=16,...n})=>f.default.createElement("svg",(0,Tt.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.createElement("g",{transform:"translate(2, -1)"},f.default.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))),she=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,Tt.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),ihe=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,Tt.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),S8=()=>({components:{ArrowUpIcon:Qde,ArrowDownIcon:ehe,ArrowIcon:the,CloseIcon:rhe,CopyIcon:nhe,LockIcon:she,UnlockIcon:ihe}});const wA="layout_update_layout",xA="layout_update_filter",AA="layout_update_mode",OA="layout_show";function ahe(t){return{type:wA,payload:t}}function ohe(t){return{type:xA,payload:t}}function uhe(t,e=!0){return t=va(t),{type:OA,payload:{thing:t,shown:e}}}function lhe(t,e=""){return t=va(t),{type:AA,payload:{thing:t,mode:e}}}var che={[wA]:(t,e)=>t.set("layout",e.payload),[xA]:(t,e)=>t.set("filter",e.payload),[OA]:(t,e)=>{const r=e.payload.shown,n=(0,z.fromJS)(e.payload.thing);return t.update("shown",(0,z.fromJS)({}),(s=>s.set(n,r)))},[AA]:(t,e)=>{let r=e.payload.thing,n=e.payload.mode;return t.setIn(["modes"].concat(r),(n||"")+"")}};const fhe=t=>t.get("layout"),phe=t=>t.get("filter"),_8=(t,e,r)=>(e=va(e),t.get("shown",(0,z.fromJS)({})).get((0,z.fromJS)(e),r)),dhe=(t,e,r="")=>(e=va(e),t.getIn(["modes",...e],r)),hhe=(0,at.createSelector)((t=>t),(t=>!_8(t,"editor"))),mhe=(t,e)=>(r,...n)=>{let s=t(r,...n);const{fn:i,layoutSelectors:a,getConfigs:o}=e.getSystem(),u=o(),{maxDisplayedTags:l}=u;let c=a.currentFilter();return c&&c!==!0&&(s=i.opsFilter(s,c)),l>=0&&(s=s.slice(0,l)),s};function w8(){return{statePlugins:{layout:{reducers:che,actions:Y1,selectors:X1},spec:{wrapSelectors:Z1}}}}function x8({configs:t}){const e={debug:0,info:1,log:2,warn:3,error:4},r=a=>e[a]||-1;let{logLevel:n}=t,s=r(n);function i(a,...o){r(a)>=s&&console[a](...o)}return i.warn=i.bind(null,"warn"),i.error=i.bind(null,"error"),i.info=i.bind(null,"info"),i.debug=i.bind(null,"debug"),{rootInjects:{log:i}}}let JS=!1;function A8(){return{statePlugins:{spec:{wrapActions:{updateSpec:t=>(...e)=>(JS=!0,t(...e)),updateJsonSpec:(t,e)=>(...r)=>{const n=e.getConfigs().onComplete;return JS&&typeof n=="function"&&(setTimeout(n,0),JS=!1),t(...r)}}}}}}const R3=t=>{const e="_**[]";return t.indexOf(e)<0?t:t.split(e)[0].trim()},ghe=t=>t==="-d "||/^[_\/-]/g.test(t)?t:"'"+t.replace(/'/g,"'\\''")+"'",yhe=t=>(t=t.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^
262
- `))==="-d "?t.replace(/-d /g,`-d ^
263
- `):/^[_\/-]/g.test(t)?t:'"'+t+'"',vhe=t=>t==="-d "?t:/\n/.test(t)?`@"
264
- ${t.replace(/`/g,"``").replace(/\$/g,"`$")}
265
- "@`:/^[_\/-]/.test(t)?t:`'${t.replace(/'/g,"''")}'`,CA=(t,e,r,n="")=>{let s=!1,i="";const a=(...d)=>i+=" "+d.map(e).join(" "),o=(...d)=>i+=d.map(e).join(" "),u=()=>i+=` ${r}`,l=(d=1)=>i+=" ".repeat(d);let c=t.get("headers");i+="curl"+n;const p=t.get("curlOptions");if(z.List.isList(p)&&!p.isEmpty()&&a(...t.get("curlOptions")),a("-X",t.get("method")),u(),l(),o(`${t.get("url")}`),c&&c.size)for(let d of t.get("headers").entries()){u(),l();let[g,y]=d;o("-H",`${g}: ${y}`),s=s||/^content-type$/i.test(g)&&/^multipart\/form-data$/i.test(y)}const h=t.get("body");if(h)if(s&&["POST","PUT","PATCH"].includes(t.get("method")))for(let[d,g]of h.entrySeq()){let y=R3(d);u(),l(),o("-F"),g instanceof Gt.File&&typeof g.valueOf()=="string"?a(`${y}=${g.data}${g.type?`;type=${g.type}`:""}`):g instanceof Gt.File?a(`${y}=@${g.name}${g.type?`;type=${g.type}`:""}`):a(`${y}=${g}`)}else if(h instanceof Gt.File)u(),l(),o(`--data-binary '@${h.name}'`);else{u(),l(),o("-d ");let d=h;z.Map.isMap(d)?o((function(y){let v=[];for(let[E,b]of y.get("body").entrySeq()){let _=R3(E);b instanceof Gt.File?v.push(` "${_}": {
266
- "name": "${b.name}"${b.type?`,
267
- "type": "${b.type}"`:""}
268
- }`):v.push(` "${_}": ${JSON.stringify(b,null,2).replace(/(\r\n|\r|\n)/g,`
269
- `)}`)}return`{
270
- ${v.join(`,
271
- `)}
272
- }`})(t)):(typeof d!="string"&&(d=JSON.stringify(d)),o(d))}else h||t.get("method")!=="POST"||(u(),l(),o("-d ''"));return i},bhe=t=>CA(t,vhe,"`\n",".exe"),O8=t=>CA(t,ghe,`\\
273
- `),Ehe=t=>CA(t,yhe,`^
274
- `),RA=t=>t||(0,z.Map)(),C8=(0,at.createSelector)(RA,(t=>{const e=t.get("languages"),r=t.get("generators",(0,z.Map)());return!e||e.isEmpty()?r:r.filter(((n,s)=>e.includes(s)))})),She=t=>({fn:e})=>C8(t).map(((r,n)=>{const s=(i=>e[`requestSnippetGenerator_${i}`])(n);return typeof s!="function"?null:r.set("fn",s)})).filter((r=>r)),_he=(0,at.createSelector)(RA,(t=>t.get("activeLanguage"))),whe=(0,at.createSelector)(RA,(t=>t.get("defaultExpanded")));var It=(function(t){var e={};return be.d(e,t),e})({default:function(){return RH}}),Fp=(function(t){var e={};return be.d(e,t),e})({CopyToClipboard:function(){return jH.CopyToClipboard}});const xhe={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},Ahe={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"};var Ohe=({request:t,requestSnippetsSelectors:e,getComponent:r})=>{const n=(0,f.useRef)(null),s=r("ArrowUpIcon"),i=r("ArrowDownIcon"),a=r("SyntaxHighlighter",!0),[o,u]=(0,f.useState)(e.getSnippetGenerators()?.keySeq().first()),[l,c]=(0,f.useState)(e?.getDefaultExpanded()),p=e.getSnippetGenerators(),h=p.get(o),d=h.get("fn")(t),g=()=>{c(!l)},y=E=>E===o?Ahe:xhe,v=E=>{const{target:b,deltaY:_}=E,{scrollHeight:w,offsetHeight:S,scrollTop:A}=b;w>S&&(A===0&&_<0||S+A>=w&&_>0)&&E.preventDefault()};return(0,f.useEffect)((()=>{}),[]),(0,f.useEffect)((()=>{const E=Array.from(n.current.childNodes).filter((b=>!!b.nodeType&&b.classList?.contains("curl-command")));return E.forEach((b=>b.addEventListener("mousewheel",v,{passive:!1}))),()=>{E.forEach((b=>b.removeEventListener("mousewheel",v)))}}),[t]),f.default.createElement("div",{className:"request-snippets",ref:n},f.default.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},f.default.createElement("h4",{onClick:()=>g(),style:{cursor:"pointer"}},"Snippets"),f.default.createElement("button",{onClick:()=>g(),style:{border:"none",background:"none"},title:l?"Collapse operation":"Expand operation"},l?f.default.createElement(i,{className:"arrow",width:"10",height:"10"}):f.default.createElement(s,{className:"arrow",width:"10",height:"10"}))),l&&f.default.createElement("div",{className:"curl-command"},f.default.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},p.entrySeq().map((([E,b])=>f.default.createElement("div",{className:(0,It.default)("btn",{active:E===o}),style:y(E),key:E,onClick:()=>(_=>{o!==_&&u(_)})(E)},f.default.createElement("h4",{style:E===o?{color:"white"}:{}},b.get("title")))))),f.default.createElement("div",{className:"copy-to-clipboard"},f.default.createElement(Fp.CopyToClipboard,{text:d},f.default.createElement("button",null))),f.default.createElement("div",null,f.default.createElement(a,{language:h.get("syntax"),className:"curl microlight",renderPlainText:({children:E,PlainTextViewer:b})=>f.default.createElement(b,{className:"curl"},E)},d))))},R8=()=>({components:{RequestSnippets:Ohe},fn:{requestSnippetGenerator_curl_bash:O8,requestSnippetGenerator_curl_cmd:Ehe,requestSnippetGenerator_curl_powershell:bhe},statePlugins:{requestSnippets:{selectors:Q1}}});class TA extends f.Component{static defaultProps={collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:z.default.List([])};constructor(e,r){super(e,r);let{expanded:n,collapsedContent:s}=this.props;this.state={expanded:n,collapsedContent:s||TA.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:e,expanded:r,modelName:n}=this.props;e&&r&&this.props.onToggle(n,r)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}toggleCollapsed=()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})};onLoad=e=>{if(e&&this.props.layoutSelectors){const r=this.props.layoutSelectors.getScrollToKey();z.default.is(r,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}};render(){const{title:e,classes:r}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?f.default.createElement("span",{className:r||""},this.props.children):f.default.createElement("span",{className:r||"",ref:this.onLoad},f.default.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},e&&f.default.createElement("span",{className:"pointer"},e),f.default.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&f.default.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}}const Che=({initialTab:t,isExecute:e,schema:r,example:n})=>{const s=(0,f.useMemo)((()=>({example:"example",model:"model"})),[]),i=(0,f.useMemo)((()=>Object.keys(s)),[s]).includes(t)&&r&&!e?t:s.example,a=(c=>{const p=(0,f.useRef)();return(0,f.useEffect)((()=>{p.current=c})),p.current})(e),[o,u]=(0,f.useState)(i),l=(0,f.useCallback)((c=>{u(c.target.dataset.name)}),[]);return(0,f.useEffect)((()=>{a&&!e&&n&&u(s.example)}),[a,e,n]),{activeTab:o,onTabChange:l,tabs:s}};var Rhe=({schema:t,example:e,isExecute:r=!1,specPath:n,includeWriteOnly:s=!1,includeReadOnly:i=!1,getComponent:a,getConfigs:o,specSelectors:u})=>{const{defaultModelRendering:l,defaultModelExpandDepth:c}=o(),p=a("ModelWrapper"),h=a("HighlightCode",!0),d=$a()(5).toString("base64"),g=$a()(5).toString("base64"),y=$a()(5).toString("base64"),v=$a()(5).toString("base64"),E=u.isOAS3(),{activeTab:b,tabs:_,onTabChange:w}=Che({initialTab:l,isExecute:r,schema:t,example:e});return f.default.createElement("div",{className:"model-example"},f.default.createElement("ul",{className:"tab",role:"tablist"},f.default.createElement("li",{className:(0,It.default)("tabitem",{active:b===_.example}),role:"presentation"},f.default.createElement("button",{"aria-controls":g,"aria-selected":b===_.example,className:"tablinks","data-name":"example",id:d,onClick:w,role:"tab"},r?"Edit Value":"Example Value")),t&&f.default.createElement("li",{className:(0,It.default)("tabitem",{active:b===_.model}),role:"presentation"},f.default.createElement("button",{"aria-controls":v,"aria-selected":b===_.model,className:(0,It.default)("tablinks",{inactive:r}),"data-name":"model",id:y,onClick:w,role:"tab"},E?"Schema":"Model"))),b===_.example&&f.default.createElement("div",{"aria-hidden":b!==_.example,"aria-labelledby":d,"data-name":"examplePanel",id:g,role:"tabpanel",tabIndex:"0"},e||f.default.createElement(h,null,"(no example available")),b===_.model&&f.default.createElement("div",{className:"model-container","aria-hidden":b===_.example,"aria-labelledby":y,"data-name":"modelPanel",id:v,role:"tabpanel",tabIndex:"0"},f.default.createElement(p,{schema:t,getComponent:a,getConfigs:o,specSelectors:u,expandDepth:c,specPath:n,includeReadOnly:i,includeWriteOnly:s})))};class The extends f.Component{onToggle=(e,r)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,r)};render(){let{getComponent:e,getConfigs:r}=this.props;const n=e("Model");let s;return this.props.layoutSelectors&&(s=this.props.layoutSelectors.isShown(this.props.fullPath)),f.default.createElement("div",{className:"model-box"},f.default.createElement(n,(0,Tt.default)({},this.props,{getConfigs:r,expanded:s,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var T3,Ihe=(function(t){var e={};return be.d(e,t),e})({default:function(){return JH}});function h_(){return h_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},h_.apply(null,arguments)}var T8=t=>f.createElement("svg",h_({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"rolling-load_svg__lds-rolling",preserveAspectRatio:"xMidYMid",style:{backgroundImage:"none",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},viewBox:"0 0 100 100"},t),T3||(T3=f.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},f.createElement("animateTransform",{attributeName:"transform",begin:"0s",calcMode:"linear",dur:"1s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"}))));const I3=t=>{const e=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(e)}catch{return e}};class khe extends Ihe.default{static propTypes={schema:C3.default.map.isRequired,getComponent:on.default.func.isRequired,getConfigs:on.default.func.isRequired,specSelectors:on.default.object.isRequired,name:on.default.string,displayName:on.default.string,isRef:on.default.bool,required:on.default.bool,expandDepth:on.default.number,depth:on.default.number,specPath:C3.default.list.isRequired,includeReadOnly:on.default.bool,includeWriteOnly:on.default.bool};getModelName=e=>e.indexOf("#/definitions/")!==-1?I3(e.replace(/^.*#\/definitions\//,"")):e.indexOf("#/components/schemas/")!==-1?I3(e.replace(/^.*#\/components\/schemas\//,"")):void 0;getRefSchema=e=>{let{specSelectors:r}=this.props;return r.findDefinition(e)};render(){let{getComponent:e,getConfigs:r,specSelectors:n,schema:s,required:i,name:a,isRef:o,specPath:u,displayName:l,includeReadOnly:c,includeWriteOnly:p}=this.props;const h=e("ObjectModel"),d=e("ArrayModel"),g=e("PrimitiveModel");let y="object",v=s&&s.get("$$ref"),E=s&&s.get("$ref");if(!a&&v&&(a=this.getModelName(v)),E){const _=this.getModelName(E),w=this.getRefSchema(_);z.Map.isMap(w)?(s=w.mergeDeep(s),v||(s=s.set("$$ref",E),v=E)):z.Map.isMap(s)&&s.size===1&&(s=null,a=E)}if(!s)return f.default.createElement("span",{className:"model model-title"},f.default.createElement("span",{className:"model-title__text"},l||a),!E&&f.default.createElement(T8,{height:"20px",width:"20px"}));const b=n.isOAS3()&&s.get("deprecated");switch(o=o!==void 0?o:!!v,y=s&&s.get("type")||y,y){case"object":return f.default.createElement(h,(0,Tt.default)({className:"object"},this.props,{specPath:u,getConfigs:r,schema:s,name:a,deprecated:b,isRef:o,includeReadOnly:c,includeWriteOnly:p}));case"array":return f.default.createElement(d,(0,Tt.default)({className:"array"},this.props,{getConfigs:r,schema:s,name:a,deprecated:b,required:i,includeReadOnly:c,includeWriteOnly:p}));default:return f.default.createElement(g,(0,Tt.default)({},this.props,{getComponent:e,getConfigs:r,schema:s,name:a,deprecated:b,required:i}))}}}class Phe extends f.Component{getSchemaBasePath=()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"];getCollapsedContent=()=>" ";handleToggle=(e,r)=>{const{layoutActions:n}=this.props;n.show([...this.getSchemaBasePath(),e],r),r&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),e])};onLoadModels=e=>{e&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),e)};onLoadModel=e=>{if(e){const r=e.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),r],e)}};render(){let{specSelectors:e,getComponent:r,layoutSelectors:n,layoutActions:s,getConfigs:i}=this.props,a=e.definitions(),{docExpansion:o,defaultModelsExpandDepth:u}=i();if(!a.size||u<0)return null;const l=this.getSchemaBasePath();let c=n.isShown(l,u>0&&o!=="none");const p=e.isOAS3(),h=r("ModelWrapper"),d=r("Collapse"),g=r("ModelCollapse"),y=r("JumpToPath",!0),v=r("ArrowUpIcon"),E=r("ArrowDownIcon");return f.default.createElement("section",{className:c?"models is-open":"models",ref:this.onLoadModels},f.default.createElement("h4",null,f.default.createElement("button",{"aria-expanded":c,className:"models-control",onClick:()=>s.show(l,!c)},f.default.createElement("span",null,p?"Schemas":"Models"),c?f.default.createElement(v,null):f.default.createElement(E,null))),f.default.createElement(d,{isOpened:c},a.entrySeq().map((([b])=>{const _=[...l,b],w=z.default.List(_),S=e.specResolvedSubtree(_),A=e.specJson().getIn(_),T=z.Map.isMap(S)?S:z.default.Map(),k=z.Map.isMap(A)?A:z.default.Map(),P=T.get("title")||k.get("title")||b,F=n.isShown(_,!1);F&&T.size===0&&k.size>0&&this.props.specActions.requestResolvedSubtree(_);const R=f.default.createElement(h,{name:b,expandDepth:u,schema:T||z.default.Map(),displayName:P,fullPath:_,specPath:w,getComponent:r,specSelectors:e,getConfigs:i,layoutSelectors:n,layoutActions:s,includeReadOnly:!0,includeWriteOnly:!0}),$=f.default.createElement("span",{className:"model-box"},f.default.createElement("span",{className:"model model-title"},P));return f.default.createElement("div",{id:`model-${b}`,className:"model-container",key:`models-section-${b}`,"data-name":b,ref:this.onLoadModel},f.default.createElement("span",{className:"models-jump-to-path"},f.default.createElement(y,{path:w})),f.default.createElement(g,{classes:"model-box",collapsedContent:this.getCollapsedContent(b),onToggle:this.handleToggle,title:$,displayName:P,modelName:b,specPath:w,layoutSelectors:n,layoutActions:s,hideSelfOnExpand:!0,expanded:u>0&&F},R))})).toArray()))}}var jhe=({value:t,getComponent:e})=>{let r=e("ModelCollapse"),n=f.default.createElement("span",null,"Array [ ",t.count()," ]");return f.default.createElement("span",{className:"prop-enum"},"Enum:",f.default.createElement("br",null),f.default.createElement(r,{collapsedContent:n},"[ ",t.map(String).join(", ")," ]"))};function m_(t){return t.match(/^(?:[a-z]+:)?\/\//i)}function Nhe(t,e){return t?m_(t)?(function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n})(t):new URL(t,e).href:e}function is(t,e,{selectedServer:r=""}={}){try{return(function(s,i,{selectedServer:a=""}={}){if(!s)return;if(m_(s))return s;const o=Nhe(a,i);return m_(o)?new URL(s,o).href:new URL(s,window.location.href).href})(t,e,{selectedServer:r})}catch{return}}function ur(t){if(typeof t!="string"||t.trim()==="")return"";const e=t.trim(),r="about:blank";try{const n=`https://base${String(Math.random()).slice(2)}`,s=new URL(e,n),i=s.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(i.toLowerCase())?r:s.origin===n?e.startsWith("/")?`${s.pathname}${s.search}${s.hash}`:e.startsWith("./")?`.${s.pathname}${s.search}${s.hash}`:e.startsWith("../")?`..${s.pathname}${s.search}${s.hash}`:`${s.pathname.substring(1)}${s.search}${s.hash}`:String(s)}catch{return r}}class Mhe extends f.Component{render(){let{schema:e,name:r,displayName:n,isRef:s,getComponent:i,getConfigs:a,depth:o,onToggle:u,expanded:l,specPath:c,...p}=this.props,{specSelectors:h,expandDepth:d,includeReadOnly:g,includeWriteOnly:y}=p;const{isOAS3:v}=h,E=o>2||o===2&&c.last()!=="items";if(!e)return null;const{showExtensions:b}=a(),_=b?qi(e):(0,z.List)();let w=e.get("description"),S=e.get("properties"),A=e.get("additionalProperties"),T=e.get("title")||n||r,k=e.get("required"),P=e.filter(((V,ge)=>["maxProperties","minProperties","nullable","example"].indexOf(ge)!==-1)),F=e.get("deprecated"),R=e.getIn(["externalDocs","url"]),$=e.getIn(["externalDocs","description"]);const M=i("JumpToPath",!0),K=i("Markdown",!0),ee=i("Model"),G=i("ModelCollapse"),Z=i("Property"),X=i("Link"),te=i("ModelExtensions"),le=()=>f.default.createElement("span",{className:"model-jump-to-path"},f.default.createElement(M,{path:c})),se=f.default.createElement("span",null,f.default.createElement("span",null,"{"),"...",f.default.createElement("span",null,"}"),s?f.default.createElement(le,null):""),ue=h.isOAS3()?e.get("allOf"):null,ve=h.isOAS3()?e.get("anyOf"):null,he=h.isOAS3()?e.get("oneOf"):null,re=h.isOAS3()?e.get("not"):null,W=T&&f.default.createElement("span",{className:"model-title"},s&&e.get("$$ref")&&f.default.createElement("span",{className:(0,It.default)("model-hint",{"model-hint--embedded":E})},e.get("$$ref")),f.default.createElement("span",{className:"model-title__text"},T));return f.default.createElement("span",{className:"model"},f.default.createElement(G,{modelName:r,title:W,onToggle:u,expanded:!!l||o<=d,collapsedContent:se},f.default.createElement("span",{className:"brace-open object"},"{"),s?f.default.createElement(le,null):null,f.default.createElement("span",{className:"inner-object"},f.default.createElement("table",{className:"model"},f.default.createElement("tbody",null,w?f.default.createElement("tr",{className:"description"},f.default.createElement("td",null,"description:"),f.default.createElement("td",null,f.default.createElement(K,{source:w}))):null,R&&f.default.createElement("tr",{className:"external-docs"},f.default.createElement("td",null,"externalDocs:"),f.default.createElement("td",null,f.default.createElement(X,{target:"_blank",href:ur(R)},$||R))),F?f.default.createElement("tr",{className:"property"},f.default.createElement("td",null,"deprecated:"),f.default.createElement("td",null,"true")):null,S&&S.size?S.entrySeq().filter((([,V])=>(!V.get("readOnly")||g)&&(!V.get("writeOnly")||y))).map((([V,ge])=>{let me=v()&&ge.get("deprecated"),Me=z.List.isList(k)&&k.contains(V),$e=["property-row"];return me&&$e.push("deprecated"),Me&&$e.push("required"),f.default.createElement("tr",{key:V,className:$e.join(" ")},f.default.createElement("td",null,V,Me&&f.default.createElement("span",{className:"star"},"*")),f.default.createElement("td",null,f.default.createElement(ee,(0,Tt.default)({key:`object-${r}-${V}_${ge}`},p,{required:Me,getComponent:i,specPath:c.push("properties",V),getConfigs:a,schema:ge,depth:o+1}))))})).toArray():null,_.size===0?null:f.default.createElement(f.default.Fragment,null,f.default.createElement("tr",null,f.default.createElement("td",null," ")),f.default.createElement(te,{extensions:_,propClass:"extension"})),A&&A.size?f.default.createElement("tr",null,f.default.createElement("td",null,"< * >:"),f.default.createElement("td",null,f.default.createElement(ee,(0,Tt.default)({},p,{required:!1,getComponent:i,specPath:c.push("additionalProperties"),getConfigs:a,schema:A,depth:o+1})))):null,ue?f.default.createElement("tr",null,f.default.createElement("td",null,"allOf ->"),f.default.createElement("td",null,ue.map(((V,ge)=>f.default.createElement("div",{key:ge},f.default.createElement(ee,(0,Tt.default)({},p,{required:!1,getComponent:i,specPath:c.push("allOf",ge),getConfigs:a,schema:V,depth:o+1}))))))):null,ve?f.default.createElement("tr",null,f.default.createElement("td",null,"anyOf ->"),f.default.createElement("td",null,ve.map(((V,ge)=>f.default.createElement("div",{key:ge},f.default.createElement(ee,(0,Tt.default)({},p,{required:!1,getComponent:i,specPath:c.push("anyOf",ge),getConfigs:a,schema:V,depth:o+1}))))))):null,he?f.default.createElement("tr",null,f.default.createElement("td",null,"oneOf ->"),f.default.createElement("td",null,he.map(((V,ge)=>f.default.createElement("div",{key:ge},f.default.createElement(ee,(0,Tt.default)({},p,{required:!1,getComponent:i,specPath:c.push("oneOf",ge),getConfigs:a,schema:V,depth:o+1}))))))):null,re?f.default.createElement("tr",null,f.default.createElement("td",null,"not ->"),f.default.createElement("td",null,f.default.createElement("div",null,f.default.createElement(ee,(0,Tt.default)({},p,{required:!1,getComponent:i,specPath:c.push("not"),getConfigs:a,schema:re,depth:o+1}))))):null))),f.default.createElement("span",{className:"brace-close"},"}")),P.size?P.entrySeq().map((([V,ge])=>f.default.createElement(Z,{key:`${V}-${ge}`,propKey:V,propVal:ge,propClass:"property"}))):null)}}class Dhe extends f.Component{render(){let{getComponent:e,getConfigs:r,schema:n,depth:s,expandDepth:i,name:a,displayName:o,specPath:u}=this.props,l=n.get("description"),c=n.get("items"),p=n.get("title")||o||a,h=n.filter(((S,A)=>["type","items","description","$$ref","externalDocs"].indexOf(A)===-1)),d=n.getIn(["externalDocs","url"]),g=n.getIn(["externalDocs","description"]);const y=e("Markdown",!0),v=e("ModelCollapse"),E=e("Model"),b=e("Property"),_=e("Link"),w=p&&f.default.createElement("span",{className:"model-title"},f.default.createElement("span",{className:"model-title__text"},p));return f.default.createElement("span",{className:"model"},f.default.createElement(v,{title:w,expanded:s<=i,collapsedContent:"[...]"},"[",h.size?h.entrySeq().map((([S,A])=>f.default.createElement(b,{key:`${S}-${A}`,propKey:S,propVal:A,propClass:"property"}))):null,l?f.default.createElement(y,{source:l}):h.size?f.default.createElement("div",{className:"markdown"}):null,d&&f.default.createElement("div",{className:"external-docs"},f.default.createElement(_,{target:"_blank",href:ur(d)},g||d)),f.default.createElement("span",null,f.default.createElement(E,(0,Tt.default)({},this.props,{getConfigs:r,specPath:u.push("items"),name:null,schema:c,required:!1,depth:s+1}))),"]"))}}const gc="property primitive";class Fhe extends f.Component{render(){let{schema:e,getComponent:r,getConfigs:n,name:s,displayName:i,depth:a,expandDepth:o}=this.props;const{showExtensions:u}=n();if(!e||!e.get)return f.default.createElement("div",null);let l=e.get("type"),c=e.get("format"),p=e.get("xml"),h=e.get("enum"),d=e.get("title")||i||s,g=e.get("description");const y=qi(e);let v=e.filter(((F,R)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(R)===-1)).filterNot(((F,R)=>y.has(R))),E=e.getIn(["externalDocs","url"]),b=e.getIn(["externalDocs","description"]);const _=r("Markdown",!0),w=r("EnumModel"),S=r("Property"),A=r("ModelCollapse"),T=r("Link"),k=r("ModelExtensions"),P=d&&f.default.createElement("span",{className:"model-title"},f.default.createElement("span",{className:"model-title__text"},d));return f.default.createElement("span",{className:"model"},f.default.createElement(A,{title:P,expanded:a<=o,collapsedContent:"[...]"},f.default.createElement("span",{className:"prop"},s&&a>1&&f.default.createElement("span",{className:"prop-name"},d),f.default.createElement("span",{className:"prop-type"},l),c&&f.default.createElement("span",{className:"prop-format"},"($",c,")"),v.size?v.entrySeq().map((([F,R])=>f.default.createElement(S,{key:`${F}-${R}`,propKey:F,propVal:R,propClass:gc}))):null,u&&y.size>0?f.default.createElement(k,{extensions:y,propClass:`${gc} extension`}):null,g?f.default.createElement(_,{source:g}):null,E&&f.default.createElement("div",{className:"external-docs"},f.default.createElement(T,{target:"_blank",href:ur(E)},b||E)),p&&p.size?f.default.createElement("span",null,f.default.createElement("br",null),f.default.createElement("span",{className:gc},"xml:"),p.entrySeq().map((([F,R])=>f.default.createElement("span",{key:`${F}-${R}`,className:gc},f.default.createElement("br",null),"   ",F,": ",String(R)))).toArray()):null,h&&f.default.createElement(w,{value:h,getComponent:r}))))}}class qhe extends f.default.Component{UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){this.props.currentScheme&&e.schemes.includes(this.props.currentScheme)||this.setScheme(e.schemes.first())}onChange=e=>{this.setScheme(e.target.value)};setScheme=e=>{let{path:r,method:n,specActions:s}=this.props;s.setScheme(e,r,n)};render(){let{schemes:e,currentScheme:r}=this.props;return f.default.createElement("label",{htmlFor:"schemes"},f.default.createElement("span",{className:"schemes-title"},"Schemes"),f.default.createElement("select",{onChange:this.onChange,value:r,id:"schemes"},e.valueSeq().map((n=>f.default.createElement("option",{value:n,key:n},n))).toArray()))}}class Bhe extends f.default.Component{render(){const{specActions:e,specSelectors:r,getComponent:n}=this.props,s=r.operationScheme(),i=r.schemes(),a=n("schemes");return i&&i.size?f.default.createElement(a,{currentScheme:s,schemes:i,specActions:e}):null}}var I8=(function(t){var e={};return be.d(e,t),e})({default:function(){return XH}});const ba={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,z.List)()};class $he extends f.Component{static defaultProps=ba;componentDidMount(){const{dispatchInitialValue:e,value:r,onChange:n}=this.props;e?n(r):e===!1&&n("")}render(){let{schema:e,errors:r,value:n,onChange:s,getComponent:i,fn:a,disabled:o}=this.props;const u=e&&e.get?e.get("format"):null,l=e&&e.get?e.get("type"):null,c=a.getSchemaObjectType(e),p=a.isFileUploadIntended(e);let h=g=>i(g,!1,{failSilently:!0}),d=l?h(u?`JsonSchema_${l}_${u}`:`JsonSchema_${l}`):i("JsonSchema_string");return p||!z.List.isList(l)||c!=="array"&&c!=="object"||(d=i("JsonSchema_object")),d||(d=i("JsonSchema_string")),f.default.createElement(d,(0,Tt.default)({},this.props,{errors:r,fn:a,getComponent:i,value:n,onChange:s,schema:e,disabled:o}))}}class Lhe extends f.Component{static defaultProps=ba;onChange=e=>{const r=this.props.schema&&this.props.schema.get("type")==="file"?e.target.files[0]:e.target.value;this.props.onChange(r,this.props.keyName)};onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,schema:n,errors:s,required:i,description:a,disabled:o}=this.props;const u=n&&n.get?n.get("enum"):null,l=n&&n.get?n.get("format"):null,c=n&&n.get?n.get("type"):null,p=n&&n.get?n.get("in"):null;if(r?(kl(r)||typeof r=="object")&&(r=Fr(r)):r="",s=s.toJS?s.toJS():[],u){const g=e("Select");return f.default.createElement(g,{className:s.length?"invalid":"",title:s.length?s:"",allowedValues:[...u],value:r,allowEmptyValue:!i,disabled:o,onChange:this.onEnumChange})}const h=o||p&&p==="formData"&&!("FormData"in window),d=e("Input");return c&&c==="file"?f.default.createElement(d,{type:"file",className:s.length?"invalid":"",title:s.length?s:"",onChange:this.onChange,disabled:h}):f.default.createElement(I8.default,{type:l&&l==="password"?"password":"text",className:s.length?"invalid":"",title:s.length?s:"",value:r,minLength:0,debounceTimeout:350,placeholder:a,onChange:this.onChange,disabled:h})}}class Uhe extends f.PureComponent{static defaultProps=ba;constructor(e,r){super(e,r),this.state={value:HS(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){const r=HS(e.value);r!==this.state.value&&this.setState({value:r}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}onChange=()=>{this.props.onChange(this.state.value)};onItemChange=(e,r)=>{this.setState((({value:n})=>({value:n.set(r,e)})),this.onChange)};removeItem=e=>{this.setState((({value:r})=>({value:r.delete(e)})),this.onChange)};addItem=()=>{const{fn:e}=this.props;let r=HS(this.state.value);this.setState((()=>({value:r.push(e.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)};onEnumChange=e=>{this.setState((()=>({value:e})),this.onChange)};render(){let{getComponent:e,required:r,schema:n,errors:s,fn:i,disabled:a}=this.props;s=s.toJS?s.toJS():Array.isArray(s)?s:[];const o=s.filter((S=>typeof S=="string")),u=s.filter((S=>S.needRemove!==void 0)).map((S=>S.error)),l=this.state.value,c=!!(l&&l.count&&l.count()>0),p=n.getIn(["items","enum"]),h=n.get("items"),d=i.getSchemaObjectType(h),g=i.getSchemaObjectTypeLabel(h),y=n.getIn(["items","format"]),v=n.get("items");let E,b=!1,_=d==="file"||d==="string"&&y==="binary";if(d&&y?E=e(`JsonSchema_${d}_${y}`):d!=="boolean"&&d!=="array"&&d!=="object"||(E=e(`JsonSchema_${d}`)),!z.List.isList(h?.get("type"))||d!=="array"&&d!=="object"||(E=e("JsonSchema_object")),E||_||(b=!0),p){const S=e("Select");return f.default.createElement(S,{className:s.length?"invalid":"",title:s.length?s:"",multiple:!0,value:l,disabled:a,allowedValues:p,allowEmptyValue:!r,onChange:this.onEnumChange})}const w=e("Button");return f.default.createElement("div",{className:"json-schema-array"},c?l.map(((S,A)=>{const T=(0,z.fromJS)([...s.filter((k=>k.index===A)).map((k=>k.error))]);return f.default.createElement("div",{key:A,className:"json-schema-form-item"},_?f.default.createElement(P8,{value:S,onChange:k=>this.onItemChange(k,A),disabled:a,errors:T,getComponent:e}):b?f.default.createElement(k8,{value:S,onChange:k=>this.onItemChange(k,A),disabled:a,errors:T}):f.default.createElement(E,(0,Tt.default)({},this.props,{value:S,onChange:k=>this.onItemChange(k,A),disabled:a,errors:T,schema:v,getComponent:e,fn:i})),a?null:f.default.createElement(w,{className:`btn btn-sm json-schema-form-item-remove ${u.length?"invalid":null}`,title:u.length?u:"",onClick:()=>this.removeItem(A)}," - "))})):null,a?null:f.default.createElement(w,{className:`btn btn-sm json-schema-form-item-add ${o.length?"invalid":null}`,title:o.length?o:"",onClick:this.addItem},"Add ",g," item"))}}class k8 extends f.Component{static defaultProps=ba;onChange=e=>{const r=e.target.value;this.props.onChange(r,this.props.keyName)};render(){let{value:e,errors:r,description:n,disabled:s}=this.props;return e?(kl(e)||typeof e=="object")&&(e=Fr(e)):e="",r=r.toJS?r.toJS():[],f.default.createElement(I8.default,{type:"text",className:r.length?"invalid":"",title:r.length?r:"",value:e,minLength:0,debounceTimeout:350,placeholder:n,onChange:this.onChange,disabled:s})}}class P8 extends f.Component{static defaultProps=ba;onFileChange=e=>{const r=e.target.files[0];this.props.onChange(r,this.props.keyName)};render(){let{getComponent:e,errors:r,disabled:n}=this.props;const s=e("Input"),i=n||!("FormData"in window);return f.default.createElement(s,{type:"file",className:r.length?"invalid":"",title:r.length?r:"",onChange:this.onFileChange,disabled:i})}}class Vhe extends f.Component{static defaultProps=ba;onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,errors:n,schema:s,required:i,disabled:a}=this.props;n=n.toJS?n.toJS():[];let o=s&&s.get?s.get("enum"):null,u=!o||!i,l=!o&&["true","false"];const c=e("Select");return f.default.createElement(c,{className:n.length?"invalid":"",title:n.length?n:"",value:String(r),disabled:a,allowedValues:o?[...o]:l,allowEmptyValue:u,onChange:this.onEnumChange})}}const zhe=t=>t.map((e=>{const r=e.propKey!==void 0?e.propKey:e.index;let n=typeof e=="string"?e:typeof e.error=="string"?e.error:null;if(!r&&n)return n;let s=e.error,i=`/${e.propKey}`;for(;typeof s=="object";){const a=s.propKey!==void 0?s.propKey:s.index;if(a===void 0||(i+=`/${a}`,!s.error))break;s=s.error}return`${i}: ${s}`}));class Whe extends f.PureComponent{constructor(){super()}static defaultProps=ba;onChange=e=>{this.props.onChange(e)};handleOnChange=e=>{const r=e.target.value;this.onChange(r)};render(){let{getComponent:e,value:r,errors:n,disabled:s}=this.props;const i=e("TextArea");return n=n.toJS?n.toJS():Array.isArray(n)?n:[],f.default.createElement("div",null,f.default.createElement(i,{className:(0,It.default)({invalid:n.length}),title:n.length?zhe(n).join(", "):"",value:Fr(r),disabled:s,onChange:this.handleOnChange}))}}function HS(t){return z.List.isList(t)?t:Array.isArray(t)?(0,z.fromJS)(t):(0,z.List)()}const Jhe=({extensions:t,propClass:e=""})=>t.entrySeq().map((([r,n])=>{const s=eo(n)??null;return f.default.createElement("tr",{key:r,className:e},f.default.createElement("td",null,r),f.default.createElement("td",null,JSON.stringify(s)))})).toArray();var Zs=(function(t){var e={};return be.d(e,t),e})({default:function(){return QH}});const Hhe=(t,e)=>{const r=z.Map.isMap(t);if(!r&&!(0,Zs.default)(t))return!1;const n=r?t.get("type"):t.type;return e===n||Array.isArray(e)&&e.includes(n)},j8=(t,e=new WeakSet)=>{if(t==null||e.has(t))return"any";e.add(t);const{type:r,items:n}=t;return Object.hasOwn(t,"items")?n?`array<${j8(n,e)}>`:"array<any>":r},Khe=t=>j8(eo(t));var N8=()=>({components:{modelExample:Rhe,ModelWrapper:The,ModelCollapse:TA,Model:khe,Models:Phe,EnumModel:jhe,ObjectModel:Mhe,ArrayModel:Dhe,PrimitiveModel:Fhe,ModelExtensions:Jhe,schemes:qhe,SchemesContainer:Bhe,...e_},fn:{hasSchemaType:Hhe,getSchemaObjectTypeLabel:Khe}}),Ghe=be(123),M8=be.n(Ghe),D8=(function(t){var e={};return be.d(e,t),e})({default:function(){return aK}}),ws=(function(t){var e={};return be.d(e,t),e})({default:function(){return lK}});const KS=t=>e=>Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((r,n)=>r===e[n])),Yhe=(...t)=>t;class Xhe extends Map{delete(e){const r=Array.from(this.keys()).find(KS(e));return super.delete(r)}get(e){const r=Array.from(this.keys()).find(KS(e));return super.get(r)}has(e){return Array.from(this.keys()).findIndex(KS(e))!==-1}}var jl=(t,e=Yhe)=>{const{Cache:r}=zo.default;zo.default.Cache=Xhe;const n=(0,zo.default)(t,e);return zo.default.Cache=r,n};const k3={string:t=>t.pattern?(e=>{try{const r=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),n=e.replace(r,"100"),s=new D8.default(n);return s.max=100,s.gen()}catch{return"string"}})(t.pattern):"string",string_email:()=>"user@example.com","string_date-time":()=>new Date().toISOString(),string_date:()=>new Date().toISOString().substring(0,10),string_time:()=>new Date().toISOString().substring(11),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:t=>typeof t.default!="boolean"||t.default},P3=t=>{t=Hi(t);let{type:e,format:r}=t,n=k3[`${e}_${r}`]||k3[e];return Xs(n)?n(t):"Unknown Type: "+t.type},Zhe=t=>f8(t,"$$ref",(e=>typeof e=="string"&&e.indexOf("#")>-1)),F8=["maxProperties","minProperties"],q8=["minItems","maxItems"],B8=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],Qhe=["minLength","maxLength"],za=(t,e,r={})=>{const n={...t};if(["example","default","enum","xml","type",...F8,...q8,...B8,...Qhe].forEach((s=>(i=>{n[i]===void 0&&e[i]!==void 0&&(n[i]=e[i])})(s))),e.required!==void 0&&Array.isArray(e.required)&&(n.required!==void 0&&n.required.length||(n.required=[]),e.required.forEach((s=>{n.required.includes(s)||n.required.push(s)}))),e.properties){n.properties||(n.properties={});let s=Hi(e.properties);for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(s[i]&&s[i].deprecated||s[i]&&s[i].readOnly&&!r.includeReadOnly||s[i]&&s[i].writeOnly&&!r.includeWriteOnly||n.properties[i]||(n.properties[i]=s[i],!e.required&&Array.isArray(e.required)&&e.required.indexOf(i)!==-1&&(n.required?n.required.push(i):n.required=[i])))}return e.items&&(n.items||(n.items={}),n.items=za(n.items,e.items,r)),n},jn=(t,e={},r=void 0,n=!1)=>{t&&Xs(t.toJS)&&(t=t.toJS());let s=r!==void 0||t&&t.example!==void 0||t&&t.default!==void 0;const i=!s&&t&&t.oneOf&&t.oneOf.length>0,a=!s&&t&&t.anyOf&&t.anyOf.length>0;if(!s&&(i||a)){const M=Hi(i?t.oneOf[0]:t.anyOf[0]);if(!(t=za(t,M,e)).xml&&M.xml&&(t.xml=M.xml),t.example!==void 0&&M.example!==void 0)s=!0;else if(M.properties){t.properties||(t.properties={});let K=Hi(M.properties);for(let ee in K)Object.prototype.hasOwnProperty.call(K,ee)&&(K[ee]&&K[ee].deprecated||K[ee]&&K[ee].readOnly&&!e.includeReadOnly||K[ee]&&K[ee].writeOnly&&!e.includeWriteOnly||t.properties[ee]||(t.properties[ee]=K[ee],!M.required&&Array.isArray(M.required)&&M.required.indexOf(ee)!==-1&&(t.required?t.required.push(ee):t.required=[ee])))}}const o={};let{xml:u,type:l,example:c,properties:p,additionalProperties:h,items:d}=t||{},{includeReadOnly:g,includeWriteOnly:y}=e;u=u||{};let v,{name:E,prefix:b,namespace:_}=u,w={};n&&(E=E||"notagname",v=(b?b+":":"")+E,_)&&(o[b?"xmlns:"+b:"xmlns"]=_),n&&(w[v]=[]);const S=M=>M.some((K=>Object.prototype.hasOwnProperty.call(t,K)));t&&!l&&(p||h||S(F8)?l="object":d||S(q8)?l="array":S(B8)?(l="number",t.type="number"):s||t.enum||(l="string",t.type="string"));const A=M=>{if(t?.maxItems!=null&&(M=M.slice(0,t?.maxItems)),t?.minItems!=null){let K=0;for(;M.length<t?.minItems;)M.push(M[K++%M.length])}return M},T=Hi(p);let k,P=0;const F=()=>t&&t.maxProperties!==null&&t.maxProperties!==void 0&&P>=t.maxProperties,R=M=>!t||t.maxProperties===null||t.maxProperties===void 0||!F()&&(!(K=>!(t&&t.required&&t.required.length&&t.required.includes(K)))(M)||t.maxProperties-P-(()=>{if(!t||!t.required)return 0;let K=0;return n?t.required.forEach((ee=>K+=w[ee]===void 0?0:1)):t.required.forEach((ee=>K+=w[v]?.find((G=>G[ee]!==void 0))===void 0?0:1)),t.required.length-K})()>0);if(k=n?(M,K=void 0)=>{if(t&&T[M]){if(T[M].xml=T[M].xml||{},T[M].xml.attribute){const G=Array.isArray(T[M].enum)?T[M].enum[0]:void 0,Z=T[M].example,X=T[M].default;return void(o[T[M].xml.name||M]=Z!==void 0?Z:X!==void 0?X:G!==void 0?G:P3(T[M]))}T[M].xml.name=T[M].xml.name||M}else T[M]||h===!1||(T[M]={xml:{name:M}});let ee=jn(t&&T[M]||void 0,e,K,n);R(M)&&(P++,Array.isArray(ee)?w[v]=w[v].concat(ee):w[v].push(ee))}:(M,K)=>{if(R(M)){if(Object.prototype.hasOwnProperty.call(t,"discriminator")&&t.discriminator&&Object.prototype.hasOwnProperty.call(t.discriminator,"mapping")&&t.discriminator.mapping&&Object.prototype.hasOwnProperty.call(t,"$$ref")&&t.$$ref&&t.discriminator.propertyName===M){for(let ee in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[ee])!==-1){w[M]=ee;break}}else w[M]=jn(T[M],e,K,n);P++}},s){let M;if(M=Zhe(r!==void 0?r:c!==void 0?c:t.default),!n){if(typeof M=="number"&&l==="string")return`${M}`;if(typeof M!="string"||l==="string")return M;try{return JSON.parse(M)}catch{return M}}if(t||(l=Array.isArray(M)?"array":typeof M),l==="array"){if(!Array.isArray(M)){if(typeof M=="string")return M;M=[M]}const K=t?t.items:void 0;K&&(K.xml=K.xml||u||{},K.xml.name=K.xml.name||u.name);let ee=M.map((G=>jn(K,e,G,n)));return ee=A(ee),u.wrapped?(w[v]=ee,(0,ws.default)(o)||w[v].push({_attr:o})):w=ee,w}if(l==="object"){if(typeof M=="string")return M;for(let K in M)Object.prototype.hasOwnProperty.call(M,K)&&(t&&T[K]&&T[K].readOnly&&!g||t&&T[K]&&T[K].writeOnly&&!y||(t&&T[K]&&T[K].xml&&T[K].xml.attribute?o[T[K].xml.name||K]=M[K]:k(K,M[K])));return(0,ws.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,ws.default)(o)?M:[{_attr:o},M],w}if(l==="object"){for(let M in T)Object.prototype.hasOwnProperty.call(T,M)&&(T[M]&&T[M].deprecated||T[M]&&T[M].readOnly&&!g||T[M]&&T[M].writeOnly&&!y||k(M));if(n&&o&&w[v].push({_attr:o}),F())return w;if(h===!0)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},P++;else if(h){const M=Hi(h),K=jn(M,e,void 0,n);if(n&&M.xml&&M.xml.name&&M.xml.name!=="notagname")w[v].push(K);else{const ee=M["x-additionalPropertiesName"]||"additionalProp",G=t.minProperties!==null&&t.minProperties!==void 0&&P<t.minProperties?t.minProperties-P:3;for(let Z=1;Z<=G;Z++){if(F())return w;if(n){const X={};X[ee+Z]=K.notagname,w[v].push(X)}else w[ee+Z]=K;P++}}}return w}if(l==="array"){if(!d)return;let M;if(n&&(d.xml=d.xml||t?.xml||{},d.xml.name=d.xml.name||u.name),Array.isArray(d.anyOf))M=d.anyOf.map((K=>jn(za(K,d,e),e,void 0,n)));else if(Array.isArray(d.oneOf))M=d.oneOf.map((K=>jn(za(K,d,e),e,void 0,n)));else{if(!(!n||n&&u.wrapped))return jn(d,e,void 0,n);M=[jn(d,e,void 0,n)]}return M=A(M),n&&u.wrapped?(w[v]=M,(0,ws.default)(o)||w[v].push({_attr:o}),w):M}let $;if(t&&Array.isArray(t.enum))$=va(t.enum)[0];else{if(!t)return;if($=P3(t),typeof $=="number"){let M=t.minimum;M!=null&&(t.exclusiveMinimum&&M++,$=M);let K=t.maximum;K!=null&&(t.exclusiveMaximum&&K--,$=K)}if(typeof $=="string"&&(t.maxLength!==null&&t.maxLength!==void 0&&($=$.slice(0,t.maxLength)),t.minLength!==null&&t.minLength!==void 0)){let M=0;for(;$.length<t.minLength;)$+=$[M++%$.length]}}if(l!=="file")return n?(w[v]=(0,ws.default)(o)?$:[{_attr:o},$],w):$},j3=t=>(t.schema&&(t=t.schema),t.properties&&(t.type="object"),t),g_=(t,e,r)=>{const n=jn(t,e,r,!0);if(n)return typeof n=="string"?n:M8()(n,{declaration:!0,indent:" "})},y_=(t,e,r)=>jn(t,e,r,!1),$8=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],N3=jl(g_,$8),M3=jl(y_,$8),eme=t=>eo(t)?.type??"string",tme=[{when:/json/,shouldStringifyTypes:["string"]}],rme=["object"];var nme=t=>(e,r,n,s)=>{const{fn:i}=t(),a=i.memoizedSampleFromSchema(e,r,s),o=typeof a,u=tme.reduce(((l,c)=>c.when.test(n)?[...l,...c.shouldStringifyTypes]:l),rme);return(0,u8.default)(u,(l=>l===o))?JSON.stringify(a,null,2):a},sme=t=>(e,r,n,s)=>{const{fn:i}=t(),a=i.getJsonSampleSchema(e,r,n,s);let o;try{o=Ks.default.dump(Ks.default.load(a),{lineWidth:-1},{schema:Ks.JSON_SCHEMA}),o[o.length-1]===`
275
- `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},ime=t=>(e,r,n)=>{const{fn:s}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
276
- <!-- XML example cannot be generated; root element name is undefined -->`;if(e.$$ref){let i=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=i[1]}}return s.memoizedCreateXMLExample(e,r,n)},ame=t=>(e,r="",n={},s=void 0)=>{const{fn:i}=t();return typeof e?.toJS=="function"&&(e=e.toJS()),typeof s?.toJS=="function"&&(s=s.toJS()),/xml/.test(r)?i.getXmlSampleSchema(e,n,s):/(yaml|yml)/.test(r)?i.getYamlSampleSchema(e,n,r,s):i.getJsonSampleSchema(e,n,r,s)},L8=({getSystem:t})=>{const e=nme(t),r=sme(t),n=ime(t),s=ame(t);return{fn:{jsonSchema5:{inferSchema:j3,sampleFromSchema:y_,sampleFromSchemaGeneric:jn,createXMLExample:g_,memoizedSampleFromSchema:M3,memoizedCreateXMLExample:N3,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:s,mergeJsonSchema:za},inferSchema:j3,sampleFromSchema:y_,sampleFromSchemaGeneric:jn,createXMLExample:g_,memoizedSampleFromSchema:M3,memoizedCreateXMLExample:N3,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:s,mergeJsonSchema:za,getSchemaObjectType:eme}}},qp=(function(t){var e={};return be.d(e,t),e})({default:function(){return fK}});const ome=["get","put","post","delete","options","head","patch","trace"],Ms=t=>t||(0,z.Map)(),ume=(0,at.createSelector)(Ms,(t=>t.get("lastError"))),lme=(0,at.createSelector)(Ms,(t=>t.get("url"))),cme=(0,at.createSelector)(Ms,(t=>t.get("spec")||"")),fme=(0,at.createSelector)(Ms,(t=>t.get("specSource")||"not-editor")),IA=(0,at.createSelector)(Ms,(t=>t.get("json",(0,z.Map)()))),pme=(0,at.createSelector)(IA,(t=>t.toJS())),dme=(0,at.createSelector)(Ms,(t=>t.get("resolved",(0,z.Map)()))),hme=(t,e)=>t.getIn(["resolvedSubtrees",...e],void 0),U8=(t,e)=>z.Map.isMap(t)&&z.Map.isMap(e)?e.get("$$ref")?e:(0,z.OrderedMap)().mergeWith(U8,t,e):e,cs=(0,at.createSelector)(Ms,(t=>(0,z.OrderedMap)().mergeWith(U8,t.get("json"),t.get("resolvedSubtrees")))),pn=t=>IA(t),mme=(0,at.createSelector)(pn,(()=>!1)),V8=(0,at.createSelector)(pn,(t=>o4(t&&t.get("info")))),gme=(0,at.createSelector)(pn,(t=>o4(t&&t.get("externalDocs")))),z8=(0,at.createSelector)(V8,(t=>t&&t.get("version"))),yme=(0,at.createSelector)(z8,(t=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(t).slice(1))),W8=(0,at.createSelector)(cs,(t=>t.get("paths"))),vme=(0,qp.default)(["get","put","post","delete","options","head","patch"]),J8=(0,at.createSelector)(W8,(t=>{let e=(0,z.List)();return!z.Map.isMap(t)||t.isEmpty()||t.forEach(((r,n)=>{if(!r||!r.forEach)return{};r.forEach(((s,i)=>{ome.indexOf(i)<0||(e=e.push((0,z.fromJS)({path:n,method:i,operation:s,id:`${i}-${n}`})))}))})),e})),H8=(0,at.createSelector)(pn,(t=>(0,z.Set)(t.get("consumes")))),K8=(0,at.createSelector)(pn,(t=>(0,z.Set)(t.get("produces")))),bme=(0,at.createSelector)(pn,(t=>t.get("security",(0,z.List)()))),Eme=(0,at.createSelector)(pn,(t=>t.get("securityDefinitions"))),Sme=(t,e)=>{const r=t.getIn(["resolvedSubtrees","definitions",e],null),n=t.getIn(["json","definitions",e],null);return r||n||null},_me=(0,at.createSelector)(pn,(t=>{const e=t.get("definitions");return z.Map.isMap(e)?e:(0,z.Map)()})),wme=(0,at.createSelector)(pn,(t=>t.get("basePath"))),xme=(0,at.createSelector)(pn,(t=>t.get("host"))),Ame=(0,at.createSelector)(pn,(t=>t.get("schemes",(0,z.Map)()))),G8=(0,at.createSelector)([J8,H8,K8],((t,e,r)=>t.map((n=>n.update("operation",(s=>z.Map.isMap(s)?s.withMutations((i=>(i.get("consumes")||i.update("consumes",(a=>(0,z.Set)(a).merge(e))),i.get("produces")||i.update("produces",(a=>(0,z.Set)(a).merge(r))),i))):(0,z.Map)())))))),kA=(0,at.createSelector)(pn,(t=>{const e=t.get("tags",(0,z.List)());return z.List.isList(e)?e.filter((r=>z.Map.isMap(r))):(0,z.List)()})),Y8=(t,e)=>(kA(t)||(0,z.List)()).filter(z.Map.isMap).find((r=>r.get("name")===e),(0,z.Map)()),X8=(0,at.createSelector)(G8,kA,((t,e)=>t.reduce(((r,n)=>{let s=(0,z.Set)(n.getIn(["operation","tags"]));return s.count()<1?r.update("default",(0,z.List)(),(i=>i.push(n))):s.reduce(((i,a)=>i.update(a,(0,z.List)(),(o=>o.push(n)))),r)}),e.reduce(((r,n)=>r.set(n.get("name"),(0,z.List)())),(0,z.OrderedMap)())))),Ome=t=>({getConfigs:e})=>{let{tagsSorter:r,operationsSorter:n}=e();return X8(t).sortBy(((s,i)=>i),((s,i)=>{let a=typeof r=="function"?r:b3.tagsSorter[r];return a?a(s,i):null})).map(((s,i)=>{let a=typeof n=="function"?n:b3.operationsSorter[n],o=a?s.sort(a):s;return(0,z.Map)({tagDetails:Y8(t,i),operations:o})}))},Z8=(0,at.createSelector)(Ms,(t=>t.get("responses",(0,z.Map)()))),Q8=(0,at.createSelector)(Ms,(t=>t.get("requests",(0,z.Map)()))),e4=(0,at.createSelector)(Ms,(t=>t.get("mutatedRequests",(0,z.Map)()))),Cme=(t,e,r)=>Z8(t).getIn([e,r],null),Rme=(t,e,r)=>Q8(t).getIn([e,r],null),Tme=(t,e,r)=>e4(t).getIn([e,r],null),Ime=()=>!0,PA=(t,e,r)=>{const n=cs(t).getIn(["paths",...e,"parameters"],(0,z.OrderedMap)()),s=t.getIn(["meta","paths",...e,"parameters"],(0,z.OrderedMap)());return n.map((i=>{const a=s.get(`${r.get("in")}.${r.get("name")}`),o=s.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return(0,z.OrderedMap)().merge(i,a,o)})).find((i=>i.get("in")===r.get("in")&&i.get("name")===r.get("name")),(0,z.OrderedMap)())},t4=(t,e,r,n)=>{const s=`${n}.${r}`;return t.getIn(["meta","paths",...e,"parameter_inclusions",s],!1)},kme=(t,e,r,n)=>{const s=cs(t).getIn(["paths",...e,"parameters"],(0,z.OrderedMap)()).find((i=>i.get("in")===n&&i.get("name")===r),(0,z.OrderedMap)());return PA(t,e,s)},r4=(t,e,r)=>{const n=cs(t).getIn(["paths",e,r],(0,z.OrderedMap)()),s=t.getIn(["meta","paths",e,r],(0,z.OrderedMap)()),i=n.get("parameters",(0,z.List)()).map((a=>PA(t,[e,r],a)));return(0,z.OrderedMap)().merge(n,s).set("parameters",i)};function Pme(t,e,r,n){return e=e||[],t.getIn(["meta","paths",...e,"parameters"],(0,z.fromJS)([])).find((s=>z.Map.isMap(s)&&s.get("name")===r&&s.get("in")===n))||(0,z.Map)()}const jme=(0,at.createSelector)(pn,(t=>{const e=t.get("host");return typeof e=="string"&&e.length>0&&e[0]!=="/"}));function n4(t,e,r){return e=e||[],r4(t,...e).get("parameters",(0,z.List)()).reduce(((n,s)=>{let i=r&&s.get("in")==="body"?s.get("value_xml"):s.get("value");return z.List.isList(i)&&(i=i.filter((a=>a!==""))),n.set(of(s,{allowHashes:!1}),i)}),(0,z.fromJS)({}))}function Nme(t,e=""){if(z.List.isList(t))return t.some((r=>z.Map.isMap(r)&&r.get("in")===e))}function v_(t,e=""){if(z.List.isList(t))return t.some((r=>z.Map.isMap(r)&&r.get("type")===e))}function Mme(t,e){e=e||[];let r=cs(t).getIn(["paths",...e],(0,z.fromJS)({})),n=t.getIn(["meta","paths",...e],(0,z.fromJS)({})),s=s4(t,e);const i=r.get("parameters")||new z.List,a=n.get("consumes_value")?n.get("consumes_value"):v_(i,"file")?"multipart/form-data":v_(i,"formData")?"application/x-www-form-urlencoded":void 0;return(0,z.fromJS)({requestContentType:a,responseContentType:s})}function s4(t,e){e=e||[];const r=cs(t).getIn(["paths",...e],null);if(r===null)return;const n=t.getIn(["meta","paths",...e,"produces_value"],null),s=r.getIn(["produces",0],null);return n||s||"application/json"}function Dme(t,e){e=e||[];const r=cs(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[s]=e,i=n.get("produces",null),a=r.getIn(["paths",s,"produces"],null),o=r.getIn(["produces"],null);return i||a||o}function Fme(t,e){e=e||[];const r=cs(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[s]=e,i=n.get("consumes",null),a=r.getIn(["paths",s,"consumes"],null),o=r.getIn(["consumes"],null);return i||a||o}const i4=(t,e,r)=>{let n=t.get("url").match(/^([a-z][a-z0-9+\-.]*):/),s=Array.isArray(n)?n[1]:null;return t.getIn(["scheme",e,r])||t.getIn(["scheme","_defaultScheme"])||s||""},qme=(t,e,r)=>["http","https"].indexOf(i4(t,e,r))>-1,a4=(t,e)=>{e=e||[];const r=t.getIn(["meta","paths",...e,"parameters"],(0,z.fromJS)([])),n=[];if(r.length===0)return n;const s=(i,a=[])=>{const o=(u,l)=>{const c=[...l,u.get("propKey")||u.get("index")];return z.Map.isMap(u.get("error"))?s(u.get("error"),c):{error:u.get("error"),path:c}};return z.List.isList(i)?i.map((u=>z.Map.isMap(u)?o(u,a):{error:u,path:a})):o(i,a)};return r.forEach(((i,a)=>{const o=a.split(".").slice(1,-1).join("."),u=i.get("errors");u&&u.count()&&s(u).forEach((({error:l,path:c})=>{n.push(((p,h,d)=>`For '${d}'${(h=h.reduce(((g,y)=>typeof y=="number"?`${g}[${y}]`:g?`${g}.${y}`:y),""))?` at path '${h}'`:""}: ${p}.`)(l,c,o))}))})),n},Bme=(t,e)=>a4(t,e).length===0,$me=(t,e)=>{let r={requestBody:!1,requestContentType:{}},n=t.getIn(["resolvedSubtrees","paths",...e,"requestBody"],(0,z.fromJS)([]));return n.size<1||(n.getIn(["required"])&&(r.requestBody=n.getIn(["required"])),n.getIn(["content"]).entrySeq().forEach((s=>{const i=s[0];if(s[1].getIn(["schema","required"])){const a=s[1].getIn(["schema","required"]).toJS();r.requestContentType[i]=a}}))),r},Lme=(t,e,r,n)=>{if((r||n)&&r===n)return!0;let s=t.getIn(["resolvedSubtrees","paths",...e,"requestBody","content"],(0,z.fromJS)([]));if(s.size<2||!r||!n)return!1;let i=s.getIn([r,"schema","properties"],(0,z.fromJS)([])),a=s.getIn([n,"schema","properties"],(0,z.fromJS)([]));return!!i.equals(a)};function o4(t){return z.Map.isMap(t)?t:new z.Map}var Ume=(function(t){var e={};return be.d(e,t),e})({default:function(){return dK}}),Vme=(function(t){var e={};return be.d(e,t),e})({default:function(){return yK}}),u4=(function(t){var e={};return be.d(e,t),e})({default:function(){return EK}}),zme=(function(t){var e={};return be.d(e,t),e})({default:function(){return eG}});const jA="spec_update_spec",NA="spec_update_url",MA="spec_update_json",Bp="spec_update_param",DA="spec_update_empty_param_inclusion",FA="spec_validate_param",qA="spec_set_response",BA="spec_set_request",$A="spec_set_mutated_request",l4="spec_log_request",LA="spec_clear_response",UA="spec_clear_request",VA="spec_clear_validate_param",$p="spec_update_operation_meta_value",zA="spec_update_resolved",Lp="spec_update_resolved_subtree",WA="set_scheme",Wme=t=>(0,Ume.default)(t)?t:"";function Jme(t){const e=Wme(t).replace(/\t/g," ");if(typeof t=="string")return{type:jA,payload:e}}function Hme(t){return{type:zA,payload:t}}function Kme(t){return{type:NA,payload:t}}function Gme(t){return{type:MA,payload:t}}const Yme=t=>({specActions:e,specSelectors:r,errActions:n})=>{let{specStr:s}=r,i=null;try{t=t||s(),n.clear({source:"parser"}),i=Ks.default.load(t,{schema:Ks.JSON_SCHEMA})}catch(a){return console.error(a),n.newSpecErr({source:"parser",level:"error",message:a.reason,line:a.mark&&a.mark.line?a.mark.line+1:void 0})}return i&&typeof i=="object"?e.updateJsonSpec(i):e.updateJsonSpec({})};let D3=!1;const Xme=(t,e)=>({specActions:r,specSelectors:n,errActions:s,fn:{fetch:i,resolve:a,AST:o={}},getConfigs:u})=>{D3||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),D3=!0);const{modelPropertyMacro:l,parameterMacro:c,requestInterceptor:p,responseInterceptor:h}=u();t===void 0&&(t=n.specJson()),e===void 0&&(e=n.url());let d=o.getLineNumberForPath?o.getLineNumberForPath:()=>{},g=n.specStr();return a({fetch:i,spec:t,baseDoc:String(new URL(e,document.baseURI)),modelPropertyMacro:l,parameterMacro:c,requestInterceptor:p,responseInterceptor:h}).then((({spec:y,errors:v})=>{if(s.clear({type:"thrown"}),Array.isArray(v)&&v.length>0){let E=v.map((b=>(console.error(b),b.line=b.fullPath?d(g,b.fullPath):null,b.path=b.fullPath?b.fullPath.join("."):null,b.level="error",b.type="thrown",b.source="resolver",Object.defineProperty(b,"message",{enumerable:!0,value:b.message}),b)));s.newThrownErrBatch(E)}return r.updateResolved(y)}))};let uf=[];const Zme=(0,Vme.default)((()=>{const t=uf.reduce(((e,{path:r,system:n})=>(e.has(n)||e.set(n,[]),e.get(n).push(r),e)),new Map);uf=[],t.forEach((async(e,r)=>{if(!r)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");if(!r.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");const{errActions:n,errSelectors:s,fn:{resolveSubtree:i,fetch:a,AST:o={}},specSelectors:u,specActions:l}=r,c=o.getLineNumberForPath??(0,qp.default)(void 0),p=u.specStr(),{modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y}=r.getConfigs();try{const v=await e.reduce((async(E,b)=>{let{resultMap:_,specWithCurrentSubtrees:w}=await E;const{errors:S,spec:A}=await i(w,b,{baseDoc:String(new URL(u.url(),document.baseURI)),modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y});if(s.allErrors().size&&n.clearBy((T=>T.get("type")!=="thrown"||T.get("source")!=="resolver"||!T.get("fullPath")?.every(((k,P)=>k===b[P]||b[P]===void 0)))),Array.isArray(S)&&S.length>0){let T=S.map((k=>(k.line=k.fullPath?c(p,k.fullPath):null,k.path=k.fullPath?k.fullPath.join("."):null,k.level="error",k.type="thrown",k.source="resolver",Object.defineProperty(k,"message",{enumerable:!0,value:k.message}),k)));n.newThrownErrBatch(T)}return A&&u.isOAS3()&&b[0]==="components"&&b[1]==="securitySchemes"&&await Promise.all(Object.values(A).filter((T=>T?.type==="openIdConnect")).map((async T=>{const k={url:T.openIdConnectUrl,requestInterceptor:g,responseInterceptor:y};try{const P=await a(k);P instanceof Error||P.status>=400?console.error(P.statusText+" "+k.url):T.openIdConnectData=JSON.parse(P.text)}catch(P){console.error(P)}}))),(0,u4.default)(_,b,A),w=(0,zme.default)(b,A,w),{resultMap:_,specWithCurrentSubtrees:w}}),Promise.resolve({resultMap:(u.specResolvedSubtree([])||(0,z.Map)()).toJS(),specWithCurrentSubtrees:u.specJS()}));l.updateResolvedSubtree([],v.resultMap)}catch(v){console.error(v)}}))}),35),Qme=t=>e=>{uf.find((({path:r,system:n})=>n===e&&r.toString()===t.toString()))||(uf.push({path:t,system:e}),Zme())};function ege(t,e,r,n,s){return{type:Bp,payload:{path:t,value:n,paramName:e,paramIn:r,isXml:s}}}function tge(t,e,r,n){return{type:Bp,payload:{path:t,param:e,value:r,isXml:n}}}const rge=(t,e)=>({type:Lp,payload:{path:t,value:e}}),nge=()=>({type:Lp,payload:{path:[],value:(0,z.Map)()}}),sge=(t,e)=>({type:FA,payload:{pathMethod:t,isOAS3:e}}),ige=(t,e,r,n)=>({type:DA,payload:{pathMethod:t,paramName:e,paramIn:r,includeEmptyValue:n}});function age(t){return{type:VA,payload:{pathMethod:t}}}function oge(t,e){return{type:$p,payload:{path:t,value:e,key:"consumes_value"}}}function uge(t,e){return{type:$p,payload:{path:t,value:e,key:"produces_value"}}}const lge=(t,e,r)=>({payload:{path:t,method:e,res:r},type:qA}),cge=(t,e,r)=>({payload:{path:t,method:e,req:r},type:BA}),fge=(t,e,r)=>({payload:{path:t,method:e,req:r},type:$A}),pge=t=>({payload:t,type:l4}),dge=t=>({fn:e,specActions:r,specSelectors:n,getConfigs:s,oas3Selectors:i})=>{let{pathName:a,method:o,operation:u}=t,{requestInterceptor:l,responseInterceptor:c}=s(),p=u.toJS();if(u&&u.get("parameters")&&u.get("parameters").filter((g=>g&&g.get("allowEmptyValue")===!0)).forEach((g=>{if(n.parameterInclusionSettingFor([a,o],g.get("name"),g.get("in"))){t.parameters=t.parameters||{};const y=p8(g,t.parameters);(!y||y&&y.size===0)&&(t.parameters[g.get("name")]="")}})),t.contextUrl=(0,mu.default)(n.url()).toString(),p&&p.operationId?t.operationId=p.operationId:p&&a&&o&&(t.operationId=e.opId(p,a,o)),n.isOAS3()){const g=`${a}:${o}`;t.server=i.selectedServer(g)||i.selectedServer();const y=i.serverVariables({server:t.server,namespace:g}).toJS(),v=i.serverVariables({server:t.server}).toJS();t.serverVariables=Object.keys(y).length?y:v,t.requestContentType=i.requestContentType(a,o),t.responseContentType=i.responseContentType(a,o)||"*/*";const E=i.requestBodyValue(a,o),b=i.requestBodyInclusionSetting(a,o);E&&E.toJS?t.requestBody=E.map((_=>z.Map.isMap(_)?_.get("value"):_)).filter(((_,w)=>(Array.isArray(_)?_.length!==0:!dA(_))||b.get(w))).toJS():t.requestBody=E}let h=Object.assign({},t);h=e.buildRequest(h),r.setRequest(t.pathName,t.method,h),t.requestInterceptor=async g=>{let y=await l.apply(void 0,[g]),v=Object.assign({},y);return r.setMutatedRequest(t.pathName,t.method,v),y},t.responseInterceptor=c;const d=Date.now();return e.execute(t).then((g=>{g.duration=Date.now()-d,r.setResponse(t.pathName,t.method,g)})).catch((g=>{g.message==="Failed to fetch"&&(g.name="",g.message=`**Failed to fetch.**
277
- **Possible Reasons:**
278
- - CORS
279
- - Network Failure
280
- - URL scheme must be "http" or "https" for CORS request.`),r.setResponse(t.pathName,t.method,{error:!0,err:g})}))},hge=({path:t,method:e,...r}={})=>n=>{let{fn:{fetch:s},specSelectors:i,specActions:a}=n,o=i.specJsonWithResolvedSubtrees().toJS(),u=i.operationScheme(t,e),{requestContentType:l,responseContentType:c}=i.contentTypeValues([t,e]).toJS(),p=/xml/i.test(l),h=i.parameterValues([t,e],p).toJS();return a.executeRequest({...r,fetch:s,spec:o,pathName:t,method:e,parameters:h,requestContentType:l,scheme:u,responseContentType:c})};function mge(t,e){return{type:LA,payload:{path:t,method:e}}}function gge(t,e){return{type:UA,payload:{path:t,method:e}}}function yge(t,e,r){return{type:WA,payload:{scheme:t,path:e,method:r}}}var vge={[jA]:(t,e)=>typeof e.payload=="string"?t.set("spec",e.payload):t,[NA]:(t,e)=>t.set("url",e.payload+""),[MA]:(t,e)=>t.set("json",Ss(e.payload)),[zA]:(t,e)=>t.setIn(["resolved"],Ss(e.payload)),[Lp]:(t,e)=>{const{value:r,path:n}=e.payload;return t.setIn(["resolvedSubtrees",...n],Ss(r))},[Bp]:(t,{payload:e})=>{let{path:r,paramName:n,paramIn:s,param:i,value:a,isXml:o}=e,u=i?of(i):`${s}.${n}`;const l=o?"value_xml":"value";return t.setIn(["meta","paths",...r,"parameters",u,l],(0,z.fromJS)(a))},[DA]:(t,{payload:e})=>{let{pathMethod:r,paramName:n,paramIn:s,includeEmptyValue:i}=e;if(!n||!s)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),t;const a=`${s}.${n}`;return t.setIn(["meta","paths",...r,"parameter_inclusions",a],i)},[FA]:(t,{payload:{pathMethod:e,isOAS3:r}})=>{const n=cs(t).getIn(["paths",...e]),s=n4(t,e).toJS();return t.updateIn(["meta","paths",...e,"parameters"],(0,z.fromJS)({}),(i=>n.get("parameters",(0,z.List)()).reduce(((a,o)=>{const u=p8(o,s),l=t4(t,e,o.get("name"),o.get("in")),c=((p,h,{isOAS3:d=!1,bypassRequiredCheck:g=!1}={})=>{let y=p.get("required"),{schema:v,parameterContentMediaType:E}=jc(p,{isOAS3:d});return c_(h,v,y,g,E)})(o,u,{bypassRequiredCheck:l,isOAS3:r});return a.setIn([of(o),"errors"],(0,z.fromJS)(c))}),i)))},[VA]:(t,{payload:{pathMethod:e}})=>t.updateIn(["meta","paths",...e,"parameters"],(0,z.fromJS)([]),(r=>r.map((n=>n.set("errors",(0,z.fromJS)([])))))),[qA]:(t,{payload:{res:e,path:r,method:n}})=>{let s;s=e.error?Object.assign({error:!0,name:e.err.name,message:e.err.message,statusCode:e.err.statusCode},e.err.response):e,s.headers=s.headers||{};let i=t.setIn(["responses",r,n],Ss(s));return Gt.Blob&&s.data instanceof Gt.Blob&&(i=i.setIn(["responses",r,n,"text"],s.data)),i},[BA]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["requests",r,n],Ss(e)),[$A]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["mutatedRequests",r,n],Ss(e)),[$p]:(t,{payload:{path:e,value:r,key:n}})=>{let s=["paths",...e],i=["meta","paths",...e];return t.getIn(["json",...s])||t.getIn(["resolved",...s])||t.getIn(["resolvedSubtrees",...s])?t.setIn([...i,n],(0,z.fromJS)(r)):t},[LA]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["responses",e,r]),[UA]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["requests",e,r]),[WA]:(t,{payload:{scheme:e,path:r,method:n}})=>r&&n?t.setIn(["scheme",r,n],e):r||n?void 0:t.setIn(["scheme","_defaultScheme"],e)};const bge=(t,{specActions:e})=>(...r)=>{t(...r),e.parseToJson(...r)},Ege=(t,{specActions:e})=>(...r)=>{t(...r),e.invalidateResolvedSubtreeCache();const[n]=r,s=(0,d_.default)(n,["paths"])||{};Object.keys(s).forEach((i=>{const a=(0,d_.default)(s,[i]);(0,Zs.default)(a)&&a.$ref&&e.requestResolvedSubtree(["paths",i])})),e.requestResolvedSubtree(["components","securitySchemes"])},Sge=(t,{specActions:e})=>r=>(e.logRequest(r),t(r)),_ge=(t,{specSelectors:e})=>r=>t(r,e.isOAS3());var c4=()=>({statePlugins:{spec:{wrapActions:{...n_},reducers:{...vge},actions:{...r_},selectors:{...t_}}}}),F3=(function(t){var e={};return be.d(e,t),e})({default:function(){return AL}}),q3=(function(t){var e={};return be.d(e,t),e})({default:function(){return RL}}),B3=(function(t){var e={};return be.d(e,t),e})({default:function(){return TL}}),$3=(function(t){var e={};return be.d(e,t),e})({default:function(){return eoe}}),wge=(function(t){var e={};return be.d(e,t),e})({makeResolve:function(){return y6}}),L3=(function(t){var e={};return be.d(e,t),e})({buildRequest:function(){return R6},execute:function(){return due}}),GS=(function(t){var e={};return be.d(e,t),e})({default:function(){return uu},makeHttp:function(){return zee},serializeRes:function(){return _L}}),xge=(function(t){var e={};return be.d(e,t),e})({makeResolveSubtree:function(){return bue}}),f4=(function(t){var e={};return be.d(e,t),e})({opId:function(){return Wf}});const Age=(t,e)=>(...r)=>{t(...r);const n=e.getConfigs().withCredentials;e.fn.fetch.withCredentials=n};function p4({configs:t,getConfigs:e}){return{fn:{fetch:(0,GS.makeHttp)(GS.default,t.preFetch,t.postFetch),buildRequest:L3.buildRequest,execute:L3.execute,resolve:(0,wge.makeResolve)({strategies:[$3.default,B3.default,q3.default,F3.default]}),resolveSubtree:async(r,n,s={})=>{const i=e(),a={modelPropertyMacro:i.modelPropertyMacro,parameterMacro:i.parameterMacro,requestInterceptor:i.requestInterceptor,responseInterceptor:i.responseInterceptor,strategies:[$3.default,B3.default,q3.default,F3.default]};return(0,xge.makeResolveSubtree)(a)(r,n,s)},serializeRes:GS.serializeRes,opId:f4.opId},statePlugins:{configs:{wrapActions:{loaded:Age}}}}}function d4(){return{fn:{shallowEqualKeys:tde,sanitizeUrl:ur}}}var h4=(function(t){var e={};return be.d(e,t),e})({default:function(){return w9}}),m4=(function(t){var e={};return be.d(e,t),e})({Provider:function(){return F9},connect:function(){return D9}}),g4=(function(t){var e={};return be.d(e,t),e})({default:function(){return Sue}});const Oge=t=>e=>{const{fn:r}=t();class n extends f.Component{render(){return f.default.createElement(e,(0,Tt.default)({},t(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(e)})`,n},Cge=(t,e)=>r=>{const{fn:n}=t();class s extends f.Component{render(){return f.default.createElement(m4.Provider,{store:e},f.default.createElement(r,(0,Tt.default)({},this.props,this.context)))}}return s.displayName=`WithRoot(${n.getDisplayName(r)})`,s},U3=(t,e,r)=>(0,Vo.compose)(r?Cge(t,r):g4.default,(0,m4.connect)(((n,s)=>{const i={...s,...t()};return(e.prototype?.mapStateToProps||(o=>({state:o})))(n,i)})),Oge(t))(e),V3=(t,e,r,n)=>{for(const s in e){const i=e[s];typeof i=="function"&&i(r[s],n[s],t())}},Rge=(t,e,r)=>(n,s)=>{const{fn:i}=t(),a=r(n,"root");class o extends f.Component{constructor(l,c){super(l,c),V3(t,s,l,{})}UNSAFE_componentWillReceiveProps(l){V3(t,s,l,this.props)}render(){const l=(0,EA.default)(this.props,s?Object.keys(s):[]);return f.default.createElement(a,l)}}return o.displayName=`WithMappedContainer(${i.getDisplayName(a)})`,o},Tge=(t,e,r,n)=>s=>{const i=r(t,e,n)("App","root"),{createRoot:a}=h4.default;a(s).render(f.default.createElement(i,null))},b_=(t,e,r)=>(n,s,i={})=>{if(typeof n!="string")throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const a=r(n);return a?s?s==="root"?U3(t,a,e()):U3(t,a):a:(i.failSilently||t().log.warn("Could not find component:",n),null)},Ige=t=>t.displayName||t.name||"Component";var y4=({getComponents:t,getStore:e,getSystem:r})=>{const n=(s=b_(r,e,t),Qpe(s,((...a)=>JSON.stringify(a))));var s;const i=(a=>jl(a,((...o)=>o)))(Rge(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:i,render:Tge(r,e,b_,t)},fn:{getDisplayName:Ige}}},v4=({React:t,getSystem:e,getStore:r,getComponents:n})=>{const s={},i=parseInt(t?.version,10);return i>=16&&i<18&&(s.render=((a,o,u,l)=>c=>{const p=u(a,o,l)("App","root");h4.default.render(f.default.createElement(p,null),c)})(e,r,b_,n)),{rootInjects:s}};function b4(t){let{fn:e}=t;const r={download:s=>({errActions:i,specSelectors:a,specActions:o,getConfigs:u})=>{let{fetch:l}=e;const c=u();function p(h){if(h instanceof Error||h.status>=400)return o.updateLoadingStatus("failed"),i.newThrownErr(Object.assign(new Error((h.message||h.statusText)+" "+s),{source:"fetch"})),void(!h.status&&h instanceof Error&&(function(){try{let g;if("URL"in Gt?g=new URL(s):(g=document.createElement("a"),g.href=s),g.protocol!=="https:"&&Gt.location.protocol==="https:"){const y=Object.assign(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${g.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void i.newThrownErr(y)}if(g.origin!==Gt.location.origin){const y=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${g.origin}) does not match the page (${Gt.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});i.newThrownErr(y)}}catch{return}})());o.updateLoadingStatus("success"),o.updateSpec(h.text),a.url()!==s&&o.updateUrl(s)}s=s||a.url(),o.updateLoadingStatus("loading"),i.clear({source:"fetch"}),l({url:s,loadSpec:!0,requestInterceptor:c.requestInterceptor||(h=>h),responseInterceptor:c.responseInterceptor||(h=>h),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(p,p)},updateLoadingStatus:s=>{let i=[null,"loading","failed","success","failedConfig"];return i.indexOf(s)===-1&&console.error(`Error: ${s} is not one of ${JSON.stringify(i)}`),{type:"spec_update_loading_status",payload:s}}};let n={loadingStatus:(0,at.createSelector)((s=>s||(0,z.Map)()),(s=>s.get("loadingStatus")||null))};return{statePlugins:{spec:{actions:r,reducers:{spec_update_loading_status:(s,i)=>typeof i.payload=="string"?s.set("loadingStatus",i.payload):s},selectors:n}}}}var Vs=(function(t){var e={};return be.d(e,t),e})({default:function(){return D6}}),z3=(function(t){var e={};return be.d(e,t),e})({default:function(){return Zue}}),kge=(function(t){var e={};return be.d(e,t),e})({default:function(){return tle}}),Pge=(function(t){var e={};return be.d(e,t),e})({default:function(){return sle}}),jge=(function(t){var e={};return be.d(e,t),e})({default:function(){return ole}}),Nge=(function(t){var e={};return be.d(e,t),e})({default:function(){return cle}}),Mge=(function(t){var e={};return be.d(e,t),e})({default:function(){return dle}}),Dge=(function(t){var e={};return be.d(e,t),e})({default:function(){return gle}}),Fge=()=>{Vs.default.registerLanguage("json",kge.default),Vs.default.registerLanguage("js",z3.default),Vs.default.registerLanguage("xml",Pge.default),Vs.default.registerLanguage("yaml",Nge.default),Vs.default.registerLanguage("http",Mge.default),Vs.default.registerLanguage("bash",jge.default),Vs.default.registerLanguage("powershell",Dge.default),Vs.default.registerLanguage("javascript",z3.default)},E4=(function(t){var e={};return be.d(e,t),e})({default:function(){return yle}}),qge=(function(t){var e={};return be.d(e,t),e})({default:function(){return vle}}),Bge=(function(t){var e={};return be.d(e,t),e})({default:function(){return ble}}),$ge=(function(t){var e={};return be.d(e,t),e})({default:function(){return Ele}}),Lge=(function(t){var e={};return be.d(e,t),e})({default:function(){return Sle}}),Uge=(function(t){var e={};return be.d(e,t),e})({default:function(){return _le}}),Vge=(function(t){var e={};return be.d(e,t),e})({default:function(){return wle}});const zge={agate:E4.default,arta:qge.default,monokai:Bge.default,nord:$ge.default,obsidian:Lge.default,"tomorrow-night":Uge.default,idea:Vge.default},Wge=E4.default;var Jge=({language:t,className:e="",getConfigs:r,syntaxHighlighting:n={},children:s=""})=>{const i=r().syntaxHighlight.theme,{styles:a,defaultStyle:o}=n,u=a?.[i]??o;return f.default.createElement(Vs.default,{language:t,className:e,style:u},s)},Hge=(function(t){var e={};return be.d(e,t),e})({default:function(){return Ole}}),Kge=({fileName:t="response.txt",className:e,downloadable:r,getComponent:n,canCopy:s,language:i,children:a})=>{const o=(0,f.useRef)(null),u=n("SyntaxHighlighter",!0),l=c=>{const{target:p,deltaY:h}=c,{scrollHeight:d,offsetHeight:g,scrollTop:y}=p;d>g&&(y===0&&h<0||g+y>=d&&h>0)&&c.preventDefault()};return(0,f.useEffect)((()=>{const c=Array.from(o.current.childNodes).filter((p=>!!p.nodeType&&p.classList.contains("microlight")));return c.forEach((p=>p.addEventListener("mousewheel",l,{passive:!1}))),()=>{c.forEach((p=>p.removeEventListener("mousewheel",l)))}}),[a,e,i]),f.default.createElement("div",{className:"highlight-code",ref:o},s&&f.default.createElement("div",{className:"copy-to-clipboard"},f.default.createElement(Fp.CopyToClipboard,{text:a},f.default.createElement("button",null))),r?f.default.createElement("button",{className:"download-contents",onClick:()=>{(0,Hge.default)(a,t)}},"Download"):null,f.default.createElement(u,{language:i,className:(0,It.default)(e,"microlight"),renderPlainText:({children:c,PlainTextViewer:p})=>f.default.createElement(p,{className:e},c)},a))},Gge=({className:t="",children:e})=>f.default.createElement("pre",{className:(0,It.default)("microlight",t)},e),Yge=(t,e)=>({renderPlainText:r,children:n,...s})=>{const i=e.getConfigs().syntaxHighlight.activated,a=e.getComponent("PlainTextViewer");return i||typeof r!="function"?i?f.default.createElement(t,s,n):f.default.createElement(a,null,n):r({children:n,PlainTextViewer:a})};const Xge=()=>({afterLoad:Fge,rootInjects:{syntaxHighlighting:{styles:zge,defaultStyle:Wge}},components:{SyntaxHighlighter:Jge,HighlightCode:Kge,PlainTextViewer:Gge}}),Zge=()=>({wrapComponents:{SyntaxHighlighter:Yge}});var S4=()=>[Xge,Zge],Qge=()=>{const{GIT_DIRTY:t,GIT_COMMIT:e,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.29.2",GIT_COMMIT:"g9124f59b",GIT_DIRTY:!0,BUILD_TIME:"Fri, 03 Oct 2025 09:39:12 GMT"};Gt.versions=Gt.versions||{},Gt.versions.swaggerUI={version:r,gitRevision:e,gitDirty:t,buildTimestamp:n}},_4=()=>({afterLoad:Qge}),eye=(function(t){var e={};return be.d(e,t),e})({default:function(){return Ile}});const w4=console.error,tye=t=>e=>{const{getComponent:r,fn:n}=t(),s=r("ErrorBoundary"),i=n.getDisplayName(e);class a extends f.Component{render(){return f.default.createElement(s,{targetName:i,getComponent:r,fn:n},f.default.createElement(e,(0,Tt.default)({},this.props,this.context)))}}var o;return a.displayName=`WithErrorBoundary(${i})`,(o=e).prototype&&o.prototype.isReactComponent&&(a.prototype.mapStateToProps=e.prototype.mapStateToProps),a};var x4=({name:t})=>f.default.createElement("div",{className:"fallback"},"😱 ",f.default.createElement("i",null,"Could not render ",t==="t"?"this component":t,", see the console."));class rye extends f.Component{static defaultProps={targetName:"this component",getComponent:()=>x4,fn:{componentDidCatch:w4},children:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(...e){super(...e),this.state={hasError:!1,error:null}}componentDidCatch(e,r){this.props.fn.componentDidCatch(e,r)}render(){const{getComponent:e,targetName:r,children:n}=this.props;if(this.state.hasError){const s=e("Fallback");return f.default.createElement(s,{name:r})}return n}}var nye=rye,A4=({componentList:t=[],fullOverride:e=!1}={})=>({getSystem:r})=>{const n=e?t:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...t],s=(0,eye.default)(n,Array(n.length).fill(((i,{fn:a})=>a.withErrorBoundary(i))));return{fn:{componentDidCatch:w4,withErrorBoundary:tye(r)},components:{ErrorBoundary:nye,Fallback:x4},wrapComponents:s}};class sye extends f.default.Component{getLayout(){const{getComponent:e,layoutSelectors:r}=this.props,n=r.current();return e(n,!0)||(()=>f.default.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const e=this.getLayout();return f.default.createElement(e,null)}}var iye=sye;class aye extends f.default.Component{close=()=>{let{authActions:e}=this.props;e.showDefinitions(!1)};render(){let{authSelectors:e,authActions:r,getComponent:n,errSelectors:s,specSelectors:i,fn:{AST:a={}}}=this.props,o=e.shownDefinitions();const u=n("auths"),l=n("CloseIcon");return f.default.createElement("div",{className:"dialog-ux"},f.default.createElement("div",{className:"backdrop-ux"}),f.default.createElement("div",{className:"modal-ux"},f.default.createElement("div",{className:"modal-dialog-ux"},f.default.createElement("div",{className:"modal-ux-inner"},f.default.createElement("div",{className:"modal-ux-header"},f.default.createElement("h3",null,"Available authorizations"),f.default.createElement("button",{type:"button",className:"close-modal",onClick:this.close},f.default.createElement(l,null))),f.default.createElement("div",{className:"modal-ux-content"},o.valueSeq().map(((c,p)=>f.default.createElement(u,{key:p,AST:a,definitions:c,getComponent:n,errSelectors:s,authSelectors:e,authActions:r,specSelectors:i}))))))))}}class oye extends f.default.Component{render(){let{isAuthorized:e,showPopup:r,onClick:n,getComponent:s}=this.props;const i=s("authorizationPopup",!0),a=s("LockAuthIcon",!0),o=s("UnlockAuthIcon",!0);return f.default.createElement("div",{className:"auth-wrapper"},f.default.createElement("button",{className:e?"btn authorize locked":"btn authorize unlocked",onClick:n},f.default.createElement("span",null,"Authorize"),e?f.default.createElement(a,null):f.default.createElement(o,null)),r&&f.default.createElement(i,null))}}class uye extends f.default.Component{render(){const{authActions:e,authSelectors:r,specSelectors:n,getComponent:s}=this.props,i=n.securityDefinitions(),a=r.definitionsToAuthorize(),o=s("authorizeBtn");return i?f.default.createElement(o,{onClick:()=>e.showDefinitions(a),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:s}):null}}class lye extends f.default.Component{onClick=e=>{e.stopPropagation();let{onClick:r}=this.props;r&&r()};render(){let{isAuthorized:e,getComponent:r}=this.props;const n=r("LockAuthOperationIcon",!0),s=r("UnlockAuthOperationIcon",!0);return f.default.createElement("button",{className:"authorization__btn","aria-label":e?"authorization button locked":"authorization button unlocked",onClick:this.onClick},e?f.default.createElement(n,{className:"locked"}):f.default.createElement(s,{className:"unlocked"}))}}class cye extends f.default.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,s=n.map(((i,a)=>a)).toArray();this.setState(s.reduce(((i,a)=>(i[a]="",i)),{})),r.logoutWithPersistOption(s)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:s}=this.props;const i=r("AuthItem"),a=r("oauth2",!0),o=r("Button");let u=n.authorized(),l=e.filter(((h,d)=>!!u.get(d))),c=e.filter((h=>h.get("type")!=="oauth2")),p=e.filter((h=>h.get("type")==="oauth2"));return f.default.createElement("div",{className:"auth-container"},!!c.size&&f.default.createElement("form",{onSubmit:this.submitAuth},c.map(((h,d)=>f.default.createElement(i,{key:d,schema:h,name:d,getComponent:r,onAuthChange:this.onAuthChange,authorized:u,errSelectors:s,authSelectors:n}))).toArray(),f.default.createElement("div",{className:"auth-btn-wrapper"},c.size===l.size?f.default.createElement(o,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):f.default.createElement(o,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),f.default.createElement(o,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),p&&p.size?f.default.createElement("div",null,f.default.createElement("div",{className:"scope-def"},f.default.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),f.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((h=>h.get("type")==="oauth2")).map(((h,d)=>f.default.createElement("div",{key:d},f.default.createElement(a,{authorized:u,schema:h,name:d})))).toArray()):null)}}class fye extends f.default.Component{render(){let{schema:e,name:r,getComponent:n,onAuthChange:s,authorized:i,errSelectors:a,authSelectors:o}=this.props;const u=n("apiKeyAuth"),l=n("basicAuth");let c;const p=e.get("type");switch(p){case"apiKey":c=f.default.createElement(u,{key:r,schema:e,name:r,errSelectors:a,authorized:i,getComponent:n,onChange:s,authSelectors:o});break;case"basic":c=f.default.createElement(l,{key:r,schema:e,name:r,errSelectors:a,authorized:i,getComponent:n,onChange:s,authSelectors:o});break;default:c=f.default.createElement("div",{key:r},"Unknown security definition type ",p)}return f.default.createElement("div",{key:`${r}-jump`},c)}}class pye extends f.default.Component{render(){let{error:e}=this.props,r=e.get("level"),n=e.get("message"),s=e.get("source");return f.default.createElement("div",{className:"errors"},f.default.createElement("b",null,s," ",r),f.default.createElement("span",null,n))}}class dye extends f.default.Component{constructor(e,r){super(e,r);let{name:n,schema:s}=this.props,i=this.getValue();this.state={name:n,schema:s,value:i}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,n=e.target.value,s=Object.assign({},this.state,{value:n});this.setState(s),r(s)};render(){let{schema:e,getComponent:r,errSelectors:n,name:s,authSelectors:i}=this.props;const a=r("Input"),o=r("Row"),u=r("Col"),l=r("authError"),c=r("Markdown",!0),p=r("JumpToPath",!0),h=i.selectAuthPath(s);let d=this.getValue(),g=n.allErrors().filter((y=>y.get("authId")===s));return f.default.createElement("div",null,f.default.createElement("h4",null,f.default.createElement("code",null,s||e.get("name"))," (apiKey)",f.default.createElement(p,{path:h})),d&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(o,null,f.default.createElement(c,{source:e.get("description")})),f.default.createElement(o,null,f.default.createElement("p",null,"Name: ",f.default.createElement("code",null,e.get("name")))),f.default.createElement(o,null,f.default.createElement("p",null,"In: ",f.default.createElement("code",null,e.get("in")))),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"api_key_value"},"Value:"),d?f.default.createElement("code",null," ****** "):f.default.createElement(u,null,f.default.createElement(a,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),g.valueSeq().map(((y,v)=>f.default.createElement(l,{error:y,key:v}))))}}class hye extends f.default.Component{constructor(e,r){super(e,r);let{schema:n,name:s}=this.props,i=this.getValue().username;this.state={name:s,schema:n,value:i?{username:i}:{}}}getValue(){let{authorized:e,name:r}=this.props;return e&&e.getIn([r,"value"])||{}}onChange=e=>{let{onChange:r}=this.props,{value:n,name:s}=e.target,i=this.state.value;i[s]=n,this.setState({value:i}),r(this.state)};render(){let{schema:e,getComponent:r,name:n,errSelectors:s,authSelectors:i}=this.props;const a=r("Input"),o=r("Row"),u=r("Col"),l=r("authError"),c=r("JumpToPath",!0),p=r("Markdown",!0),h=i.selectAuthPath(n);let d=this.getValue().username,g=s.allErrors().filter((y=>y.get("authId")===n));return f.default.createElement("div",null,f.default.createElement("h4",null,"Basic authorization",f.default.createElement(c,{path:h})),d&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(o,null,f.default.createElement(p,{source:e.get("description")})),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth_username"},"Username:"),d?f.default.createElement("code",null," ",d," "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth_password"},"Password:"),d?f.default.createElement("code",null," ****** "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),g.valueSeq().map(((y,v)=>f.default.createElement(l,{error:y,key:v}))))}}function mye(t){const{example:e,showValue:r,getComponent:n}=t,s=n("Markdown",!0),i=n("HighlightCode",!0);return e&&z.Map.isMap(e)?f.default.createElement("div",{className:"example"},e.get("description")?f.default.createElement("section",{className:"example__section"},f.default.createElement("div",{className:"example__section-header"},"Example Description"),f.default.createElement("p",null,f.default.createElement(s,{source:e.get("description")}))):null,r&&e.has("value")?f.default.createElement("section",{className:"example__section"},f.default.createElement("div",{className:"example__section-header"},"Example Value"),f.default.createElement(i,null,Fr(e.get("value")))):null):null}class gye extends f.default.PureComponent{static defaultProps={examples:(0,z.Map)({}),onSelect:(...e)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...e),currentExampleKey:null,showLabels:!0};_onSelect=(e,{isSyntheticChange:r=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(e,{isSyntheticChange:r})};_onDomSelect=e=>{if(typeof this.props.onSelect=="function"){const r=e.target.selectedOptions[0].getAttribute("value");this._onSelect(r,{isSyntheticChange:!1})}};getCurrentExample=()=>{const{examples:e,currentExampleKey:r}=this.props,n=e.get(r),s=e.keySeq().first(),i=e.get(s);return n||i||(0,z.Map)({})};componentDidMount(){const{onSelect:e,examples:r}=this.props;if(typeof e=="function"){const n=r.first(),s=r.keyOf(n);this._onSelect(s,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){const{currentExampleKey:r,examples:n}=e;if(n!==this.props.examples&&!n.has(r)){const s=n.first(),i=n.keyOf(s);this._onSelect(i,{isSyntheticChange:!0})}}render(){const{examples:e,currentExampleKey:r,isValueModified:n,isModifiedValueAvailable:s,showLabels:i}=this.props;return f.default.createElement("div",{className:"examples-select"},i?f.default.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,f.default.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:s&&n?"__MODIFIED__VALUE__":r||""},s?f.default.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,e.map(((a,o)=>f.default.createElement("option",{key:o,value:o},z.Map.isMap(a)&&a.get("summary")||o))).valueSeq()))}}const YS=t=>z.List.isList(t)?t:Fr(t);class yye extends f.default.PureComponent{static defaultProps={userHasEditedBody:!1,examples:(0,z.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...e)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...e),updateValue:(...e)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...e)};constructor(e){super(e);const r=this._getCurrentExampleValue();this.state={[e.currentNamespace]:(0,z.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:r,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==r})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}_getStateForCurrentNamespace=()=>{const{currentNamespace:e}=this.props;return(this.state[e]||(0,z.Map)()).toObject()};_setStateForCurrentNamespace=e=>{const{currentNamespace:r}=this.props;return this._setStateForNamespace(r,e)};_setStateForNamespace=(e,r)=>{const n=(this.state[e]||(0,z.Map)()).mergeDeep(r);return this.setState({[e]:n})};_isCurrentUserInputSameAsExampleValue=()=>{const{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e};_getValueForExample=(e,r)=>{const{examples:n}=r||this.props;return YS((n||(0,z.Map)({})).getIn([e,"value"]))};_getCurrentExampleValue=e=>{const{currentKey:r}=e||this.props;return this._getValueForExample(r,e||this.props)};_onExamplesSelect=(e,{isSyntheticChange:r}={},...n)=>{const{onSelect:s,updateValue:i,currentUserInputValue:a,userHasEditedBody:o}=this.props,{lastUserEditedValue:u}=this._getStateForCurrentNamespace(),l=this._getValueForExample(e);if(e==="__MODIFIED__VALUE__")return i(YS(u)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof s=="function"&&s(e,{isSyntheticChange:r},...n),this._setStateForCurrentNamespace({lastDownstreamValue:l,isModifiedValueSelected:r&&o||!!a&&a!==l}),r||typeof i=="function"&&i(YS(l))};UNSAFE_componentWillReceiveProps(e){const{currentUserInputValue:r,examples:n,onSelect:s,userHasEditedBody:i}=e,{lastUserEditedValue:a,lastDownstreamValue:o}=this._getStateForCurrentNamespace(),u=this._getValueForExample(e.currentKey,e),l=n.filter((c=>z.Map.isMap(c)&&(c.get("value")===r||Fr(c.get("value"))===r)));if(l.size){let c;c=l.has(e.currentKey)?e.currentKey:l.keySeq().first(),s(c,{isSyntheticChange:!0})}else r!==this.props.currentUserInputValue&&r!==a&&r!==o&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:i||r!==u}))}render(){const{currentUserInputValue:e,examples:r,currentKey:n,getComponent:s,userHasEditedBody:i}=this.props,{lastDownstreamValue:a,lastUserEditedValue:o,isModifiedValueSelected:u}=this._getStateForCurrentNamespace(),l=s("ExamplesSelect");return f.default.createElement(l,{examples:r,currentExampleKey:n,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!o&&o!==a,isValueModified:e!==void 0&&u&&e!==this._getCurrentExampleValue()||i})}}function vye({auth:t,authActions:e,errActions:r,configs:n,authConfigs:s={},currentServer:i}){let{schema:a,scopes:o,name:u,clientId:l}=t,c=a.get("flow"),p=[];switch(c){case"password":return void e.authorizePassword(t);case"application":case"clientCredentials":case"client_credentials":return void e.authorizeApplication(t);case"accessCode":case"authorizationCode":case"authorization_code":p.push("response_type=code");break;case"implicit":p.push("response_type=token")}typeof l=="string"&&p.push("client_id="+encodeURIComponent(l));let h=n.oauth2RedirectUrl;if(h===void 0)return void r.newAuthErr({authId:u,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});p.push("redirect_uri="+encodeURIComponent(h));let d=[];if(Array.isArray(o)?d=o:z.default.List.isList(o)&&(d=o.toArray()),d.length>0){let w=s.scopeSeparator||" ";p.push("scope="+encodeURIComponent(d.join(w)))}let g=Pl(new Date);if(p.push("state="+encodeURIComponent(g)),s.realm!==void 0&&p.push("realm="+encodeURIComponent(s.realm)),(c==="authorizationCode"||c==="authorization_code"||c==="accessCode")&&s.usePkceWithAuthorizationCodeGrant){const w=(function(){return S3($a()(32).toString("base64"))})(),S=(function(T){return S3(Xpe()("sha256").update(T).digest("base64"))})(w);p.push("code_challenge="+S),p.push("code_challenge_method=S256"),t.codeVerifier=w}let{additionalQueryStringParams:y}=s;for(let w in y)y[w]!==void 0&&p.push([w,y[w]].map(encodeURIComponent).join("="));const v=a.get("authorizationUrl");let E;E=i?(0,mu.default)(ur(v),i,!0).toString():ur(v);let b,_=[E,p.join("&")].join(typeof v!="string"||v.includes("?")?"&":"?");b=c==="implicit"?e.preAuthorizeImplicit:s.useBasicAuthenticationWithAccessCodeGrant?e.authorizeAccessCodeWithBasicAuthentication:e.authorizeAccessCodeWithFormParams,e.authPopup(_,{auth:t,state:g,redirectUrl:h,callback:b,errCb:r.newAuthErr})}class bye extends f.default.Component{constructor(e,r){super(e,r);let{name:n,schema:s,authorized:i,authSelectors:a}=this.props,o=i&&i.get(n),u=a.getConfigs()||{},l=o&&o.get("username")||"",c=o&&o.get("clientId")||u.clientId||"",p=o&&o.get("clientSecret")||u.clientSecret||"",h=o&&o.get("passwordType")||"basic",d=o&&o.get("scopes")||u.scopes||[];typeof d=="string"&&(d=d.split(u.scopeSeparator||" ")),this.state={appName:u.appName,name:n,schema:s,scopes:d,clientId:c,clientSecret:p,username:l,password:"",passwordType:h}}close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};authorize=()=>{let{authActions:e,errActions:r,getConfigs:n,authSelectors:s,oas3Selectors:i}=this.props,a=n(),o=s.getConfigs();r.clear({authId:name,type:"auth",source:"auth"}),vye({auth:this.state,currentServer:i.serverEffectiveValue(i.selectedServer()),authActions:e,errActions:r,configs:a,authConfigs:o})};onScopeChange=e=>{let{target:r}=e,{checked:n}=r,s=r.dataset.value;if(n&&this.state.scopes.indexOf(s)===-1){let i=this.state.scopes.concat([s]);this.setState({scopes:i})}else!n&&this.state.scopes.indexOf(s)>-1&&this.setState({scopes:this.state.scopes.filter((i=>i!==s))})};onInputChange=e=>{let{target:{dataset:{name:r},value:n}}=e,s={[r]:n};this.setState(s)};selectScopes=e=>{e.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})};logout=e=>{e.preventDefault();let{authActions:r,errActions:n,name:s}=this.props;n.clear({authId:s,type:"auth",source:"auth"}),r.logoutWithPersistOption([s])};render(){let{schema:e,getComponent:r,authSelectors:n,errSelectors:s,name:i,specSelectors:a}=this.props;const o=r("Input"),u=r("Row"),l=r("Col"),c=r("Button"),p=r("authError"),h=r("JumpToPath",!0),d=r("Markdown",!0),g=r("InitializedInput"),{isOAS3:y}=a;let v=y()?e.get("openIdConnectUrl"):null;const E="implicit",b="password",_=y()?v?"authorization_code":"authorizationCode":"accessCode",w=y()?v?"client_credentials":"clientCredentials":"application",S=n.selectAuthPath(i);let A=!!(n.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,T=e.get("flow"),k=T===_&&A?T+" with PKCE":T,P=e.get("allowedScopes")||e.get("scopes"),F=!!n.authorized().get(i),R=s.allErrors().filter((K=>K.get("authId")===i)),$=!R.filter((K=>K.get("source")==="validation")).size,M=e.get("description");return f.default.createElement("div",null,f.default.createElement("h4",null,i," (OAuth2, ",k,") ",f.default.createElement(h,{path:S})),this.state.appName?f.default.createElement("h5",null,"Application: ",this.state.appName," "):null,M&&f.default.createElement(d,{source:e.get("description")}),F&&f.default.createElement("h6",null,"Authorized"),v&&f.default.createElement("p",null,"OpenID Connect URL: ",f.default.createElement("code",null,v)),(T===E||T===_)&&f.default.createElement("p",null,"Authorization URL: ",f.default.createElement("code",null,e.get("authorizationUrl"))),(T===b||T===_||T===w)&&f.default.createElement("p",null,"Token URL:",f.default.createElement("code",null," ",e.get("tokenUrl"))),f.default.createElement("p",{className:"flow"},"Flow: ",f.default.createElement("code",null,k)),T!==b?null:f.default.createElement(u,null,f.default.createElement(u,null,f.default.createElement("label",{htmlFor:"oauth_username"},"username:"),F?f.default.createElement("code",null," ",this.state.username," "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),f.default.createElement(u,null,f.default.createElement("label",{htmlFor:"oauth_password"},"password:"),F?f.default.createElement("code",null," ****** "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),f.default.createElement(u,null,f.default.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),F?f.default.createElement("code",null," ",this.state.passwordType," "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},f.default.createElement("option",{value:"basic"},"Authorization header"),f.default.createElement("option",{value:"request-body"},"Request body"))))),(T===w||T===E||T===_||T===b)&&(!F||F&&this.state.clientId)&&f.default.createElement(u,null,f.default.createElement("label",{htmlFor:`client_id_${T}`},"client_id:"),F?f.default.createElement("code",null," ****** "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement(g,{id:`client_id_${T}`,type:"text",required:T===b,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(T===w||T===_||T===b)&&f.default.createElement(u,null,f.default.createElement("label",{htmlFor:`client_secret_${T}`},"client_secret:"),F?f.default.createElement("code",null," ****** "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement(g,{id:`client_secret_${T}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!F&&P&&P.size?f.default.createElement("div",{className:"scopes"},f.default.createElement("h2",null,"Scopes:",f.default.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),f.default.createElement("a",{onClick:this.selectScopes},"select none")),P.map(((K,ee)=>f.default.createElement(u,{key:ee},f.default.createElement("div",{className:"checkbox"},f.default.createElement(o,{"data-value":ee,id:`${ee}-${T}-checkbox-${this.state.name}`,disabled:F,checked:this.state.scopes.includes(ee),type:"checkbox",onChange:this.onScopeChange}),f.default.createElement("label",{htmlFor:`${ee}-${T}-checkbox-${this.state.name}`},f.default.createElement("span",{className:"item"}),f.default.createElement("div",{className:"text"},f.default.createElement("p",{className:"name"},ee),f.default.createElement("p",{className:"description"},K))))))).toArray()):null,R.valueSeq().map(((K,ee)=>f.default.createElement(p,{error:K,key:ee}))),f.default.createElement("div",{className:"auth-btn-wrapper"},$&&(F?f.default.createElement(c,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):f.default.createElement(c,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),f.default.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class Eye extends f.Component{onClick=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearResponse(r,n),e.clearRequest(r,n)};render(){return f.default.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const Sye=({headers:t})=>f.default.createElement("div",null,f.default.createElement("h5",null,"Response headers"),f.default.createElement("pre",{className:"microlight"},t)),_ye=({duration:t})=>f.default.createElement("div",null,f.default.createElement("h5",null,"Request duration"),f.default.createElement("pre",{className:"microlight"},t," ms"));class wye extends f.default.Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){const{response:e,getComponent:r,getConfigs:n,displayRequestDuration:s,specSelectors:i,path:a,method:o}=this.props,{showMutatedRequest:u,requestSnippetsEnabled:l}=n(),c=u?i.mutatedRequestFor(a,o):i.requestFor(a,o),p=e.get("status"),h=c.get("url"),d=e.get("headers").toJS(),g=e.get("notDocumented"),y=e.get("error"),v=e.get("text"),E=e.get("duration"),b=Object.keys(d),_=d["content-type"]||d["Content-Type"],w=r("responseBody"),S=b.map((F=>{var R=Array.isArray(d[F])?d[F].join():d[F];return f.default.createElement("span",{className:"headerline",key:F}," ",F,": ",R," ")})),A=S.length!==0,T=r("Markdown",!0),k=r("RequestSnippets",!0),P=r("curl",!0);return f.default.createElement("div",null,c&&l?f.default.createElement(k,{request:c}):f.default.createElement(P,{request:c}),h&&f.default.createElement("div",null,f.default.createElement("div",{className:"request-url"},f.default.createElement("h4",null,"Request URL"),f.default.createElement("pre",{className:"microlight"},h))),f.default.createElement("h4",null,"Server response"),f.default.createElement("table",{className:"responses-table live-responses-table"},f.default.createElement("thead",null,f.default.createElement("tr",{className:"responses-header"},f.default.createElement("td",{className:"col_header response-col_status"},"Code"),f.default.createElement("td",{className:"col_header response-col_description"},"Details"))),f.default.createElement("tbody",null,f.default.createElement("tr",{className:"response"},f.default.createElement("td",{className:"response-col_status"},p,g?f.default.createElement("div",{className:"response-undocumented"},f.default.createElement("i",null," Undocumented ")):null),f.default.createElement("td",{className:"response-col_description"},y?f.default.createElement(T,{source:`${e.get("name")!==""?`${e.get("name")}: `:""}${e.get("message")}`}):null,v?f.default.createElement(w,{content:v,contentType:_,url:h,headers:d,getConfigs:n,getComponent:r}):null,A?f.default.createElement(Sye,{headers:S}):null,s&&E?f.default.createElement(_ye,{duration:E}):null)))))}}class O4 extends f.default.Component{constructor(e,r){super(e,r);let{getConfigs:n}=e,{validatorUrl:s}=n();this.state={url:this.getDefinitionUrl(),validatorUrl:s===void 0?"https://validator.swagger.io/validator":s}}getDefinitionUrl=()=>{let{specSelectors:e}=this.props;return new mu.default(e.url(),Gt.location).toString()};UNSAFE_componentWillReceiveProps(e){let{getConfigs:r}=e,{validatorUrl:n}=r();this.setState({url:this.getDefinitionUrl(),validatorUrl:n===void 0?"https://validator.swagger.io/validator":n})}render(){let{getConfigs:e}=this.props,{spec:r}=e(),n=ur(this.state.validatorUrl);return typeof r=="object"&&Object.keys(r).length?null:this.state.url&&E3(this.state.validatorUrl)&&E3(this.state.url)?f.default.createElement("span",{className:"float-right"},f.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${n}/debug?url=${encodeURIComponent(this.state.url)}`},f.default.createElement(xye,{src:`${n}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class xye extends f.default.Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){const e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){const r=new Image;r.onload=()=>{this.setState({loaded:!0})},r.onerror=()=>{this.setState({error:!0})},r.src=e.src}}render(){return this.state.error?f.default.createElement("img",{alt:"Error"}):this.state.loaded?f.default.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class Aye extends f.default.Component{render(){let{specSelectors:e}=this.props;const r=e.taggedOperations();return r.size===0?f.default.createElement("h3",null," No operations defined in spec!"):f.default.createElement("div",null,r.map(this.renderOperationTag).toArray(),r.size<1?f.default.createElement("h3",null," No operations defined in spec! "):null)}renderOperationTag=(e,r)=>{const{specSelectors:n,getComponent:s,oas3Selectors:i,layoutSelectors:a,layoutActions:o,getConfigs:u}=this.props,l=n.validOperationMethods(),c=s("OperationContainer",!0),p=s("OperationTag"),h=e.get("operations");return f.default.createElement(p,{key:"operation-"+r,tagObj:e,tag:r,oas3Selectors:i,layoutSelectors:a,layoutActions:o,getConfigs:u,getComponent:s,specUrl:n.url()},f.default.createElement("div",{className:"operation-tag-content"},h.map((d=>{const g=d.get("path"),y=d.get("method"),v=z.default.List(["paths",g,y]);return l.indexOf(y)===-1?null:f.default.createElement(c,{key:`${g}-${y}`,specPath:v,op:d,path:g,method:y,tag:r})})).toArray()))}}class Oye extends f.default.Component{static defaultProps={tagObj:z.default.fromJS({}),tag:""};render(){const{tagObj:e,tag:r,children:n,oas3Selectors:s,layoutSelectors:i,layoutActions:a,getConfigs:o,getComponent:u,specUrl:l}=this.props;let{docExpansion:c,deepLinking:p}=o();const h=u("Collapse"),d=u("Markdown",!0),g=u("DeepLink"),y=u("Link"),v=u("ArrowUpIcon"),E=u("ArrowDownIcon");let b,_=e.getIn(["tagDetails","description"],null),w=e.getIn(["tagDetails","externalDocs","description"]),S=e.getIn(["tagDetails","externalDocs","url"]);b=Xs(s)&&Xs(s.selectedServer)?is(S,l,{selectedServer:s.selectedServer()}):S;let A=["operations-tag",r],T=i.isShown(A,c==="full"||c==="list");return f.default.createElement("div",{className:T?"opblock-tag-section is-open":"opblock-tag-section"},f.default.createElement("h3",{onClick:()=>a.show(A,!T),className:_?"opblock-tag":"opblock-tag no-desc",id:A.map((k=>l8(k))).join("-"),"data-tag":r,"data-is-open":T},f.default.createElement(g,{enabled:p,isShown:T,path:hu(r),text:r}),_?f.default.createElement("small",null,f.default.createElement(d,{source:_})):f.default.createElement("small",null),b?f.default.createElement("div",{className:"info__externaldocs"},f.default.createElement("small",null,f.default.createElement(y,{href:ur(b),onClick:k=>k.stopPropagation(),target:"_blank"},w||b))):null,f.default.createElement("button",{"aria-expanded":T,className:"expand-operation",title:T?"Collapse operation":"Expand operation",onClick:()=>a.show(A,!T)},T?f.default.createElement(v,{className:"arrow"}):f.default.createElement(E,{className:"arrow"}))),f.default.createElement(h,{isOpened:T},n))}}class Cye extends f.PureComponent{static defaultProps={operation:null,response:null,request:null,specPath:(0,z.List)(),summary:""};render(){let{specPath:e,response:r,request:n,toggleShown:s,onTryoutClick:i,onResetClick:a,onCancelClick:o,onExecute:u,fn:l,getComponent:c,getConfigs:p,specActions:h,specSelectors:d,authActions:g,authSelectors:y,oas3Actions:v,oas3Selectors:E}=this.props,b=this.props.operation,{deprecated:_,isShown:w,path:S,method:A,op:T,tag:k,operationId:P,allowTryItOut:F,displayRequestDuration:R,tryItOutEnabled:$,executeInProgress:M}=b.toJS(),{description:K,externalDocs:ee,schemes:G}=T;const Z=ee?is(ee.url,d.url(),{selectedServer:E.selectedServer()}):"";let X=b.getIn(["op"]),te=X.get("responses"),le=(function(C,j){if(!z.default.Iterable.isIterable(C))return z.default.List();let U=C.getIn(Array.isArray(j)?j:[j]);return z.default.List.isList(U)?U:z.default.List()})(X,["parameters"]),se=d.operationScheme(S,A),ue=["operations",k,P],ve=qi(X);const he=c("responses"),re=c("parameters"),W=c("execute"),V=c("clear"),ge=c("Collapse"),me=c("Markdown",!0),Me=c("schemes"),$e=c("OperationServers"),Ie=c("OperationExt"),ke=c("OperationSummary"),Le=c("Link"),{showExtensions:ye}=p();if(te&&r&&r.size>0){let L=!te.get(String(r.get("status")))&&!te.get("default");r=r.set("notDocumented",L)}let Se=[S,A];const we=d.validationErrors([S,A]);return f.default.createElement("div",{className:_?"opblock opblock-deprecated":w?`opblock opblock-${A} is-open`:`opblock opblock-${A}`,id:l8(ue.join("-"))},f.default.createElement(ke,{operationProps:b,isShown:w,toggleShown:s,getComponent:c,authActions:g,authSelectors:y,specPath:e}),f.default.createElement(ge,{isOpened:w},f.default.createElement("div",{className:"opblock-body"},X&&X.size||X===null?null:f.default.createElement(T8,{height:"32px",width:"32px",className:"opblock-loading-animation"}),_&&f.default.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),K&&f.default.createElement("div",{className:"opblock-description-wrapper"},f.default.createElement("div",{className:"opblock-description"},f.default.createElement(me,{source:K}))),Z?f.default.createElement("div",{className:"opblock-external-docs-wrapper"},f.default.createElement("h4",{className:"opblock-title_normal"},"Find more details"),f.default.createElement("div",{className:"opblock-external-docs"},ee.description&&f.default.createElement("span",{className:"opblock-external-docs__description"},f.default.createElement(me,{source:ee.description})),f.default.createElement(Le,{target:"_blank",className:"opblock-external-docs__link",href:ur(Z)},Z))):null,X&&X.size?f.default.createElement(re,{parameters:le,specPath:e.push("parameters"),operation:X,onChangeKey:Se,onTryoutClick:i,onResetClick:a,onCancelClick:o,tryItOutEnabled:$,allowTryItOut:F,fn:l,getComponent:c,specActions:h,specSelectors:d,pathMethod:[S,A],getConfigs:p,oas3Actions:v,oas3Selectors:E}):null,$?f.default.createElement($e,{getComponent:c,path:S,method:A,operationServers:X.get("servers"),pathServers:d.paths().getIn([S,"servers"]),getSelectedServer:E.selectedServer,setSelectedServer:v.setSelectedServer,setServerVariableValue:v.setServerVariableValue,getServerVariable:E.serverVariableValue,getEffectiveServerValue:E.serverEffectiveValue}):null,$&&F&&G&&G.size?f.default.createElement("div",{className:"opblock-schemes"},f.default.createElement(Me,{schemes:G,path:S,method:A,specActions:h,currentScheme:se})):null,!$||!F||we.length<=0?null:f.default.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",f.default.createElement("ul",null,we.map(((L,C)=>f.default.createElement("li",{key:C}," ",L," "))))),f.default.createElement("div",{className:$&&r&&F?"btn-group":"execute-wrapper"},$&&F?f.default.createElement(W,{operation:X,specActions:h,specSelectors:d,oas3Selectors:E,oas3Actions:v,path:S,method:A,onExecute:u,disabled:M}):null,$&&r&&F?f.default.createElement(V,{specActions:h,path:S,method:A}):null),M?f.default.createElement("div",{className:"loading-container"},f.default.createElement("div",{className:"loading"})):null,te?f.default.createElement(he,{responses:te,request:n,tryItOutResponse:r,getComponent:c,getConfigs:p,specSelectors:d,oas3Actions:v,oas3Selectors:E,specActions:h,produces:d.producesOptionsFor([S,A]),producesValue:d.currentProducesFor([S,A]),specPath:e.push("responses"),path:S,method:A,displayRequestDuration:R,fn:l}):null,ye&&ve.size?f.default.createElement(Ie,{extensions:ve,getComponent:c}):null)))}}class Rye extends f.PureComponent{constructor(e,r){super(e,r);const{tryItOutEnabled:n}=e.getConfigs();this.state={tryItOutEnabled:n,executeInProgress:!1}}static defaultProps={showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1};mapStateToProps(e,r){const{op:n,layoutSelectors:s,getConfigs:i}=r,{docExpansion:a,deepLinking:o,displayOperationId:u,displayRequestDuration:l,supportedSubmitMethods:c}=i(),p=s.showSummary(),h=n.getIn(["operation","__originalOperationId"])||n.getIn(["operation","operationId"])||(0,f4.opId)(n.get("operation"),r.path,r.method)||n.get("id"),d=["operations",r.tag,h],g=c.indexOf(r.method)>=0&&(r.allowTryItOut===void 0?r.specSelectors.allowTryItOutFor(r.path,r.method):r.allowTryItOut),y=n.getIn(["operation","security"])||r.specSelectors.security();return{operationId:h,isDeepLinkingEnabled:o,showSummary:p,displayOperationId:u,displayRequestDuration:l,allowTryItOut:g,security:y,isAuthorized:r.authSelectors.isAuthorized(y),isShown:s.isShown(d,a==="full"),jumpToKey:`paths.${r.path}.${r.method}`,response:r.specSelectors.responseFor(r.path,r.method),request:r.specSelectors.requestFor(r.path,r.method)}}componentDidMount(){const{isShown:e}=this.props,r=this.getResolvedSubtree();e&&r===void 0&&this.requestResolvedSubtree()}UNSAFE_componentWillReceiveProps(e){const{response:r,isShown:n}=e,s=this.getResolvedSubtree();r!==this.props.response&&this.setState({executeInProgress:!1}),n&&s===void 0&&this.requestResolvedSubtree()}toggleShown=()=>{let{layoutActions:e,tag:r,operationId:n,isShown:s}=this.props;const i=this.getResolvedSubtree();s||i!==void 0||this.requestResolvedSubtree(),e.show(["operations",r,n],!s)};onCancelClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onTryoutClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onResetClick=e=>{const r=this.props.oas3Selectors.selectDefaultRequestBodyValue(...e),n=this.props.oas3Selectors.requestContentType(...e);if(n==="application/x-www-form-urlencoded"||n==="multipart/form-data"){const s=JSON.parse(r);Object.entries(s).forEach((([i,a])=>{Array.isArray(a)?s[i]=s[i].map((o=>typeof o=="object"?JSON.stringify(o,null,2):o)):typeof a=="object"&&(s[i]=JSON.stringify(s[i],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,z.fromJS)(s),pathMethod:e})}else this.props.oas3Actions.setRequestBodyValue({value:r,pathMethod:e})};onExecute=()=>{this.setState({executeInProgress:!0})};getResolvedSubtree=()=>{const{specSelectors:e,path:r,method:n,specPath:s}=this.props;return s?e.specResolvedSubtree(s.toJS()):e.specResolvedSubtree(["paths",r,n])};requestResolvedSubtree=()=>{const{specActions:e,path:r,method:n,specPath:s}=this.props;return s?e.requestResolvedSubtree(s.toJS()):e.requestResolvedSubtree(["paths",r,n])};render(){let{op:e,tag:r,path:n,method:s,security:i,isAuthorized:a,operationId:o,showSummary:u,isShown:l,jumpToKey:c,allowTryItOut:p,response:h,request:d,displayOperationId:g,displayRequestDuration:y,isDeepLinkingEnabled:v,specPath:E,specSelectors:b,specActions:_,getComponent:w,getConfigs:S,layoutSelectors:A,layoutActions:T,authActions:k,authSelectors:P,oas3Actions:F,oas3Selectors:R,fn:$}=this.props;const M=w("operation"),K=this.getResolvedSubtree()||(0,z.Map)(),ee=(0,z.fromJS)({op:K,tag:r,path:n,summary:e.getIn(["operation","summary"])||"",deprecated:K.get("deprecated")||e.getIn(["operation","deprecated"])||!1,method:s,security:i,isAuthorized:a,operationId:o,originalOperationId:K.getIn(["operation","__originalOperationId"]),showSummary:u,isShown:l,jumpToKey:c,allowTryItOut:p,request:d,displayOperationId:g,displayRequestDuration:y,isDeepLinkingEnabled:v,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return f.default.createElement(M,{operation:ee,response:h,request:d,isShown:l,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:E,specActions:_,specSelectors:b,oas3Actions:F,oas3Selectors:R,layoutActions:T,layoutSelectors:A,authActions:k,authSelectors:P,getComponent:w,getConfigs:S,fn:$})}}var Tye=(function(t){var e={};return be.d(e,t),e})({default:function(){return Ple}});class Iye extends f.PureComponent{static defaultProps={operationProps:null,specPath:(0,z.List)(),summary:""};render(){let{isShown:e,toggleShown:r,getComponent:n,authActions:s,authSelectors:i,operationProps:a,specPath:o}=this.props,{summary:u,isAuthorized:l,method:c,op:p,showSummary:h,path:d,operationId:g,originalOperationId:y,displayOperationId:v}=a.toJS(),{summary:E}=p,b=a.get("security");const _=n("authorizeOperationBtn",!0),w=n("OperationSummaryMethod"),S=n("OperationSummaryPath"),A=n("JumpToPath",!0),T=n("CopyToClipboardBtn",!0),k=n("ArrowUpIcon"),P=n("ArrowDownIcon"),F=b&&!!b.count(),R=F&&b.size===1&&b.first().isEmpty(),$=!F||R;return f.default.createElement("div",{className:`opblock-summary opblock-summary-${c}`},f.default.createElement("button",{"aria-expanded":e,className:"opblock-summary-control",onClick:r},f.default.createElement(w,{method:c}),f.default.createElement("div",{className:"opblock-summary-path-description-wrapper"},f.default.createElement(S,{getComponent:n,operationProps:a,specPath:o}),h?f.default.createElement("div",{className:"opblock-summary-description"},(0,Tye.default)(E||u)):null),v&&(y||g)?f.default.createElement("span",{className:"opblock-summary-operation-id"},y||g):null),f.default.createElement(T,{textToCopy:`${o.get(1)}`}),$?null:f.default.createElement(_,{isAuthorized:l,onClick:()=>{const M=i.definitionsForRequirements(b);s.showDefinitions(M)}}),f.default.createElement(A,{path:o}),f.default.createElement("button",{"aria-label":`${c} ${d.replace(/\//g,"​/")}`,className:"opblock-control-arrow","aria-expanded":e,tabIndex:"-1",onClick:r},e?f.default.createElement(k,{className:"arrow"}):f.default.createElement(P,{className:"arrow"})))}}class kye extends f.PureComponent{static defaultProps={operationProps:null};render(){let{method:e}=this.props;return f.default.createElement("span",{className:"opblock-summary-method"},e.toUpperCase())}}class Pye extends f.PureComponent{render(){let{getComponent:e,operationProps:r}=this.props,{deprecated:n,isShown:s,path:i,tag:a,operationId:o,isDeepLinkingEnabled:u}=r.toJS();const l=i.split(/(?=\/)/g);for(let p=1;p<l.length;p+=2)l.splice(p,0,f.default.createElement("wbr",{key:p}));const c=e("DeepLink");return f.default.createElement("span",{className:n?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":i},f.default.createElement(c,{enabled:u,isShown:s,path:hu(`${a}/${o}`),text:l}))}}var jye=({extensions:t,getComponent:e})=>{let r=e("OperationExtRow");return f.default.createElement("div",{className:"opblock-section"},f.default.createElement("div",{className:"opblock-section-header"},f.default.createElement("h4",null,"Extensions")),f.default.createElement("div",{className:"table-container"},f.default.createElement("table",null,f.default.createElement("thead",null,f.default.createElement("tr",null,f.default.createElement("td",{className:"col_header"},"Field"),f.default.createElement("td",{className:"col_header"},"Value"))),f.default.createElement("tbody",null,t.entrySeq().map((([n,s])=>f.default.createElement(r,{key:`${n}-${s}`,xKey:n,xVal:s})))))))},Nye=({xKey:t,xVal:e})=>{const r=e?e.toJS?e.toJS():e:null;return f.default.createElement("tr",null,f.default.createElement("td",null,t),f.default.createElement("td",null,JSON.stringify(r)))};function JA(t,e="_"){return t.replace(/[^\w-]/g,e)}class HA extends f.default.Component{static defaultProps={tryItOutResponse:null,produces:(0,z.fromJS)(["application/json"]),displayRequestDuration:!1};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);onResponseContentTypeChange=({controlsAcceptHeader:e,value:r})=>{const{oas3Actions:n,path:s,method:i}=this.props;e&&n.setResponseContentType({value:r,path:s,method:i})};render(){let{responses:e,tryItOutResponse:r,getComponent:n,getConfigs:s,specSelectors:i,fn:a,producesValue:o,displayRequestDuration:u,specPath:l,path:c,method:p,oas3Selectors:h,oas3Actions:d}=this.props,g=(function(T){let k=T.keySeq();return k.contains(y3)?y3:k.filter((P=>(P+"")[0]==="2")).sort().first()})(e);const y=n("contentType"),v=n("liveResponse"),E=n("response");let b=this.props.produces&&this.props.produces.size?this.props.produces:HA.defaultProps.produces;const _=i.isOAS3()?(function(T){if(!z.default.OrderedMap.isOrderedMap(T)||!T.size)return null;const k=T.find(((R,$)=>$.startsWith("2")&&Object.keys(R.get("content")||{}).length>0)),P=T.get("default")||z.default.OrderedMap(),F=(P.get("content")||z.default.OrderedMap()).keySeq().toJS().length?P:null;return k||F})(e):null,w=JA(`${p}${c}_responses`),S=`${w}_select`;return f.default.createElement("div",{className:"responses-wrapper"},f.default.createElement("div",{className:"opblock-section-header"},f.default.createElement("h4",null,"Responses"),i.isOAS3()?null:f.default.createElement("label",{htmlFor:S},f.default.createElement("span",null,"Response content type"),f.default.createElement(y,{value:o,ariaControls:w,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:b,controlId:S,onChange:this.onChangeProducesWrapper}))),f.default.createElement("div",{className:"responses-inner"},r?f.default.createElement("div",null,f.default.createElement(v,{response:r,getComponent:n,getConfigs:s,specSelectors:i,path:this.props.path,method:this.props.method,displayRequestDuration:u}),f.default.createElement("h4",null,"Responses")):null,f.default.createElement("table",{"aria-live":"polite",className:"responses-table",id:w,role:"region"},f.default.createElement("thead",null,f.default.createElement("tr",{className:"responses-header"},f.default.createElement("td",{className:"col_header response-col_status"},"Code"),f.default.createElement("td",{className:"col_header response-col_description"},"Description"),i.isOAS3()?f.default.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),f.default.createElement("tbody",null,e.entrySeq().map((([A,T])=>{let k=r&&r.get("status")==A?"response_current":"";return f.default.createElement(E,{key:A,path:c,method:p,specPath:l.push(A),isDefault:g===A,fn:a,className:k,code:A,response:T,specSelectors:i,controlsAcceptHeader:T===_,onContentTypeChange:this.onResponseContentTypeChange,contentType:o,getConfigs:s,activeExamplesKey:h.activeExamplesMember(c,p,"responses",A),oas3Actions:d,getComponent:n})})).toArray()))))}}function Up(t){return(function(r){try{return!!JSON.parse(r)}catch{return null}})(t)?"json":null}let Mye=class extends f.default.Component{constructor(e,r){super(e,r),this.state={responseContentType:""}}static defaultProps={response:(0,z.fromJS)({}),onContentTypeChange:()=>{}};_onContentTypeChange=e=>{const{onContentTypeChange:r,controlsAcceptHeader:n}=this.props;this.setState({responseContentType:e}),r({value:e,controlsAcceptHeader:n})};getTargetExamplesKey=()=>{const{response:e,contentType:r,activeExamplesKey:n}=this.props,s=this.state.responseContentType||r,i=e.getIn(["content",s],(0,z.Map)({})).get("examples",null).keySeq().first();return n||i};render(){let{path:e,method:r,code:n,response:s,className:i,specPath:a,fn:o,getComponent:u,getConfigs:l,specSelectors:c,contentType:p,controlsAcceptHeader:h,oas3Actions:d}=this.props,{inferSchema:g,getSampleSchema:y}=o,v=c.isOAS3();const{showExtensions:E}=l();let b=E?qi(s):null,_=s.get("headers"),w=s.get("links");const S=u("ResponseExtension"),A=u("headers"),T=u("HighlightCode",!0),k=u("modelExample"),P=u("Markdown",!0),F=u("operationLink"),R=u("contentType"),$=u("ExamplesSelect"),M=u("Example");var K,ee;const G=this.state.responseContentType||p,Z=s.getIn(["content",G],(0,z.Map)({})),X=Z.get("examples",null);if(v){const he=Z.get("schema");K=he?g(he.toJS()):null,ee=he?(0,z.List)(["content",this.state.responseContentType,"schema"]):a}else K=s.get("schema"),ee=s.has("schema")?a.push("schema"):a;let te,le,se=!1,ue={includeReadOnly:!0};if(v)if(le=Z.get("schema")?.toJS(),z.Map.isMap(X)&&!X.isEmpty()){const he=this.getTargetExamplesKey(),re=W=>z.Map.isMap(W)?W.get("value"):void 0;te=re(X.get(he,(0,z.Map)({}))),te===void 0&&(te=re(X.values().next().value)),se=!0}else Z.get("example")!==void 0&&(te=Z.get("example"),se=!0);else{le=K,ue={...ue,includeWriteOnly:!0};const he=s.getIn(["examples",G]);he&&(te=he,se=!0)}const ve=((he,re)=>{if(he==null)return null;const W=Up(he)?"json":null;return f.default.createElement("div",null,f.default.createElement(re,{className:"example",language:W},Fr(he)))})(y(le,G,ue,se?te:void 0),T);return f.default.createElement("tr",{className:"response "+(i||""),"data-code":n},f.default.createElement("td",{className:"response-col_status"},n),f.default.createElement("td",{className:"response-col_description"},f.default.createElement("div",{className:"response-col_description__inner"},f.default.createElement(P,{source:s.get("description")})),E&&b.size?b.entrySeq().map((([he,re])=>f.default.createElement(S,{key:`${he}-${re}`,xKey:he,xVal:re}))):null,v&&s.get("content")?f.default.createElement("section",{className:"response-controls"},f.default.createElement("div",{className:(0,It.default)("response-control-media-type",{"response-control-media-type--accept-controller":h})},f.default.createElement("small",{className:"response-control-media-type__title"},"Media type"),f.default.createElement(R,{value:this.state.responseContentType,contentTypes:s.get("content")?s.get("content").keySeq():(0,z.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),h?f.default.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",f.default.createElement("code",null,"Accept")," header."):null),z.Map.isMap(X)&&!X.isEmpty()?f.default.createElement("div",{className:"response-control-examples"},f.default.createElement("small",{className:"response-control-examples__title"},"Examples"),f.default.createElement($,{examples:X,currentExampleKey:this.getTargetExamplesKey(),onSelect:he=>d.setActiveExamplesMember({name:he,pathMethod:[e,r],contextType:"responses",contextName:n}),showLabels:!1})):null):null,ve||K?f.default.createElement(k,{specPath:ee,getComponent:u,getConfigs:l,specSelectors:c,schema:Ss(K),example:ve,includeReadOnly:!0}):null,v&&X?f.default.createElement(M,{example:X.get(this.getTargetExamplesKey(),(0,z.Map)({})),getComponent:u,getConfigs:l,omitValue:!0}):null,_?f.default.createElement(A,{headers:_,getComponent:u}):null),v?f.default.createElement("td",{className:"response-col_links"},w?w.toSeq().entrySeq().map((([he,re])=>f.default.createElement(F,{key:he,name:he,link:re,getComponent:u}))):f.default.createElement("i",null,"No links")):null)}};var Dye=({xKey:t,xVal:e})=>f.default.createElement("div",{className:"response__extension"},t,": ",String(e)),Fye=(function(t){var e={};return be.d(e,t),e})({default:function(){return Dle}}),W3=(function(t){var e={};return be.d(e,t),e})({default:function(){return Ble}});class qye extends f.default.PureComponent{state={parsedContent:null};updateParsedContent=e=>{const{content:r}=this.props;if(e!==r)if(r&&r instanceof Blob){var n=new FileReader;n.onload=()=>{this.setState({parsedContent:n.result})},n.readAsText(r)}else this.setState({parsedContent:r.toString()})};componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:r,url:n,headers:s={},getComponent:i}=this.props;const{parsedContent:a}=this.state,o=i("HighlightCode",!0),u="response_"+new Date().getTime();let l,c;if(n=n||"",(/^application\/octet-stream/i.test(r)||s["Content-Disposition"]&&/attachment/i.test(s["Content-Disposition"])||s["content-disposition"]&&/attachment/i.test(s["content-disposition"])||s["Content-Description"]&&/File Transfer/i.test(s["Content-Description"])||s["content-description"]&&/File Transfer/i.test(s["content-description"]))&&(e.size>0||e.length>0))if("Blob"in window){let p=r||"text/html",h=e instanceof Blob?e:new Blob([e],{type:p}),d=window.URL.createObjectURL(h),g=[p,n.substr(n.lastIndexOf("/")+1),d].join(":"),y=s["content-disposition"]||s["Content-Disposition"];if(y!==void 0){let v=(function(b){let _;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((w=>(_=w.exec(b),_!==null))),_!==null&&_.length>1)try{return decodeURIComponent(_[1])}catch(w){console.error(w)}return null})(y);v!==null&&(g=v)}c=Gt.navigator&&Gt.navigator.msSaveOrOpenBlob?f.default.createElement("div",null,f.default.createElement("a",{href:d,onClick:()=>Gt.navigator.msSaveOrOpenBlob(h,g)},"Download file")):f.default.createElement("div",null,f.default.createElement("a",{href:d,download:g},"Download file"))}else c=f.default.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(r)){let p=null;Up(e)&&(p="json");try{l=JSON.stringify(JSON.parse(e),null," ")}catch{l=`can't parse JSON. Raw result:
281
-
282
- `+e}c=f.default.createElement(o,{language:p,downloadable:!0,fileName:`${u}.json`,canCopy:!0},l)}else/xml/i.test(r)?(l=(0,Fye.default)(e,{textNodesOnSameLine:!0,indentor:" "}),c=f.default.createElement(o,{downloadable:!0,fileName:`${u}.xml`,canCopy:!0},l)):c=(0,W3.default)(r)==="text/html"||/text\/plain/.test(r)?f.default.createElement(o,{downloadable:!0,fileName:`${u}.html`,canCopy:!0},e):(0,W3.default)(r)==="text/csv"||/text\/csv/.test(r)?f.default.createElement(o,{downloadable:!0,fileName:`${u}.csv`,canCopy:!0},e):/^image\//i.test(r)?r.includes("svg")?f.default.createElement("div",null," ",e," "):f.default.createElement("img",{src:window.URL.createObjectURL(e)}):/^audio\//i.test(r)?f.default.createElement("pre",{className:"microlight"},f.default.createElement("audio",{controls:!0,key:n},f.default.createElement("source",{src:n,type:r}))):typeof e=="string"?f.default.createElement(o,{downloadable:!0,fileName:`${u}.txt`,canCopy:!0},e):e.size>0?a?f.default.createElement("div",null,f.default.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),f.default.createElement(o,{downloadable:!0,fileName:`${u}.txt`,canCopy:!0},a)):f.default.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return c?f.default.createElement("div",null,f.default.createElement("h5",null,"Response body"),c):null}}class Bye extends f.Component{constructor(e){super(e),this.state={callbackVisible:!1,parametersVisible:!0}}static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]};onChange=(e,r,n)=>{let{specActions:{changeParamByIdentity:s},onChangeKey:i}=this.props;s(i,e,r,n)};onChangeConsumesWrapper=e=>{let{specActions:{changeConsumesValue:r},onChangeKey:n}=this.props;r(n,e)};toggleTab=e=>e==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):e==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0;onChangeMediaType=({value:e,pathMethod:r})=>{let{specActions:n,oas3Selectors:s,oas3Actions:i}=this.props;const a=s.hasUserEditedBody(...r),o=s.shouldRetainRequestBodyValue(...r);i.setRequestContentType({value:e,pathMethod:r}),i.initRequestBodyValidateError({pathMethod:r}),a||(o||i.setRequestBodyValue({value:void 0,pathMethod:r}),n.clearResponse(...r),n.clearRequest(...r),n.clearValidateParams(r))};render(){let{onTryoutClick:e,onResetClick:r,parameters:n,allowTryItOut:s,tryItOutEnabled:i,specPath:a,fn:o,getComponent:u,getConfigs:l,specSelectors:c,specActions:p,pathMethod:h,oas3Actions:d,oas3Selectors:g,operation:y}=this.props;const v=u("parameterRow"),E=u("TryItOutButton"),b=u("contentType"),_=u("Callbacks",!0),w=u("RequestBody",!0),S=i&&s,A=c.isOAS3(),T=`${JA(`${h[1]}${h[0]}_requests`)}_select`,k=y.get("requestBody"),P=Object.values(n.reduce(((F,R)=>{if(z.Map.isMap(R)){const $=R.get("in");F[$]??=[],F[$].push(R)}return F}),{})).reduce(((F,R)=>F.concat(R)),[]);return f.default.createElement("div",{className:"opblock-section"},f.default.createElement("div",{className:"opblock-section-header"},A?f.default.createElement("div",{className:"tab-header"},f.default.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},f.default.createElement("h4",{className:"opblock-title"},f.default.createElement("span",null,"Parameters"))),y.get("callbacks")?f.default.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},f.default.createElement("h4",{className:"opblock-title"},f.default.createElement("span",null,"Callbacks"))):null):f.default.createElement("div",{className:"tab-header"},f.default.createElement("h4",{className:"opblock-title"},"Parameters")),s?f.default.createElement(E,{isOAS3:c.isOAS3(),hasUserEditedBody:g.hasUserEditedBody(...h),enabled:i,onCancelClick:this.props.onCancelClick,onTryoutClick:e,onResetClick:()=>r(h)}):null),this.state.parametersVisible?f.default.createElement("div",{className:"parameters-container"},P.length?f.default.createElement("div",{className:"table-container"},f.default.createElement("table",{className:"parameters"},f.default.createElement("thead",null,f.default.createElement("tr",null,f.default.createElement("th",{className:"col_header parameters-col_name"},"Name"),f.default.createElement("th",{className:"col_header parameters-col_description"},"Description"))),f.default.createElement("tbody",null,P.map(((F,R)=>f.default.createElement(v,{fn:o,specPath:a.push(R.toString()),getComponent:u,getConfigs:l,rawParam:F,param:c.parameterWithMetaByIdentity(h,F),key:`${F.get("in")}.${F.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:c,specActions:p,oas3Actions:d,oas3Selectors:g,pathMethod:h,isExecute:S})))))):f.default.createElement("div",{className:"opblock-description-wrapper"},f.default.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?f.default.createElement("div",{className:"callbacks-container opblock-description-wrapper"},f.default.createElement(_,{callbacks:(0,z.Map)(y.get("callbacks")),specPath:a.slice(0,-1).push("callbacks")})):null,A&&k&&this.state.parametersVisible&&f.default.createElement("div",{className:"opblock-section opblock-section-request-body"},f.default.createElement("div",{className:"opblock-section-header"},f.default.createElement("h4",{className:`opblock-title parameter__name ${k.get("required")&&"required"}`},"Request body"),f.default.createElement("label",{id:T},f.default.createElement(b,{value:g.requestContentType(...h),contentTypes:k.get("content",(0,z.List)()).keySeq(),onChange:F=>{this.onChangeMediaType({value:F,pathMethod:h})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:T}))),f.default.createElement("div",{className:"opblock-description-wrapper"},f.default.createElement(w,{setRetainRequestBodyValueFlag:F=>d.setRetainRequestBodyValueFlag({value:F,pathMethod:h}),userHasEditedBody:g.hasUserEditedBody(...h),specPath:a.slice(0,-1).push("requestBody"),requestBody:k,requestBodyValue:g.requestBodyValue(...h),requestBodyInclusionSetting:g.requestBodyInclusionSetting(...h),requestBodyErrors:g.requestBodyErrors(...h),isExecute:S,getConfigs:l,activeExamplesKey:g.activeExamplesMember(...h,"requestBody","requestBody"),updateActiveExamplesKey:F=>{this.props.oas3Actions.setActiveExamplesMember({name:F,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(F,R)=>{if(R){const $=g.requestBodyValue(...h),M=z.Map.isMap($)?$:(0,z.Map)();return d.setRequestBodyValue({pathMethod:h,value:M.setIn(R,F)})}d.setRequestBodyValue({value:F,pathMethod:h})},onChangeIncludeEmpty:(F,R)=>{d.setRequestBodyInclusion({pathMethod:h,value:R,name:F})},contentType:g.requestContentType(...h)}))))}}var $ye=({xKey:t,xVal:e})=>f.default.createElement("div",{className:"parameter__extension"},t,": ",String(e));const Lye={onChange:()=>{},isIncludedOptions:{}};class Uye extends f.Component{static defaultProps=Lye;componentDidMount(){const{isIncludedOptions:e,onChange:r}=this.props,{shouldDispatchInit:n,defaultValue:s}=e;n&&r(s)}onCheckboxChange=e=>{const{onChange:r}=this.props;r(e.target.checked)};render(){let{isIncluded:e,isDisabled:r}=this.props;return f.default.createElement("div",null,f.default.createElement("label",{htmlFor:"include_empty_value",className:(0,It.default)("parameter__empty_value_toggle",{disabled:r})},f.default.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:r,checked:!r&&e,onChange:this.onCheckboxChange}),"Send empty value"))}}class Vye extends f.Component{constructor(e,r){super(e,r),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let r,{specSelectors:n,pathMethod:s,rawParam:i}=e,a=n.isOAS3(),o=n.parameterWithMetaByIdentity(s,i)||new z.Map;if(o=o.isEmpty()?i:o,a){let{schema:c}=jc(o,{isOAS3:a});r=c?c.get("enum"):void 0}else r=o?o.get("enum"):void 0;let u,l=o?o.get("value"):void 0;l!==void 0?u=l:i.get("required")&&r&&r.size&&(u=r.first()),u!==void 0&&u!==l&&this.onChangeWrapper((function(p){return typeof p=="number"?p.toString():p})(u)),this.setDefaultValue()}onChangeWrapper=(e,r=!1)=>{let n,{onChange:s,rawParam:i}=this.props;return n=e===""||e&&e.size===0?null:e,s(i,n,r)};_onExampleSelect=e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})};onChangeIncludeEmpty=e=>{let{specActions:r,param:n,pathMethod:s}=this.props;const i=n.get("name"),a=n.get("in");return r.updateEmptyParamInclusion(s,i,a,e)};setDefaultValue=()=>{let{specSelectors:e,pathMethod:r,rawParam:n,oas3Selectors:s,fn:i}=this.props;const a=e.parameterWithMetaByIdentity(r,n)||(0,z.Map)();let{schema:o}=jc(a,{isOAS3:e.isOAS3()});const u=a.get("content",(0,z.Map)()).keySeq().first(),l=o?i.getSampleSchema(o.toJS(),u,{includeWriteOnly:!0}):null;if(a&&a.get("value")===void 0&&a.get("in")!=="body"){let c;if(e.isSwagger2())c=a.get("x-example")!==void 0?a.get("x-example"):a.getIn(["schema","example"])!==void 0?a.getIn(["schema","example"]):o&&o.getIn(["default"]);else if(e.isOAS3()){o=this.composeJsonSchema(o);const d=s.activeExamplesMember(...r,"parameters",this.getParamKey());c=a.getIn(["examples",d,"value"])!==void 0?a.getIn(["examples",d,"value"]):a.getIn(["content",u,"example"])!==void 0?a.getIn(["content",u,"example"]):a.get("example")!==void 0?a.get("example"):(o&&o.get("example"))!==void 0?o&&o.get("example"):(o&&o.get("default"))!==void 0?o&&o.get("default"):a.get("default")}c===void 0||z.List.isList(c)||(c=Fr(c));const p=i.getSchemaObjectType(o),h=i.getSchemaObjectType(o?.get("items"));c!==void 0?this.onChangeWrapper(c):p==="object"&&l&&!a.get("examples")?this.onChangeWrapper(z.List.isList(l)?l:Fr(l)):p==="array"&&h==="object"&&l&&!a.get("examples")&&this.onChangeWrapper(z.List.isList(l)?l:(0,z.List)(JSON.parse(l)))}};getParamKey(){const{param:e}=this.props;return e?`${e.get("name")}-${e.get("in")}`:null}composeJsonSchema(e){const{fn:r}=this.props,n=e.get("oneOf")?.get(0)?.toJS(),s=e.get("anyOf")?.get(0)?.toJS();return(0,z.fromJS)(r.mergeJsonSchema(e.toJS(),n??s??{}))}render(){let{param:e,rawParam:r,getComponent:n,getConfigs:s,isExecute:i,fn:a,onChangeConsumes:o,specSelectors:u,pathMethod:l,specPath:c,oas3Selectors:p}=this.props,h=u.isOAS3();const{showExtensions:d,showCommonExtensions:g}=s();if(e||(e=r),!r)return null;const y=n("JsonSchemaForm"),v=n("ParamBody");let E=e.get("in"),b=E!=="body"?null:f.default.createElement(v,{getComponent:n,getConfigs:s,fn:a,param:e,consumes:u.consumesOptionsFor(l),consumesValue:u.contentTypeValues(l).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:o,isExecute:i,specSelectors:u,pathMethod:l});const _=n("modelExample"),w=n("Markdown",!0),S=n("ParameterExt"),A=n("ParameterIncludeEmpty"),T=n("ExamplesSelectValueRetainer"),k=n("Example");let{schema:P}=jc(e,{isOAS3:h}),F=u.parameterWithMetaByIdentity(l,r)||(0,z.Map)();h&&(P=this.composeJsonSchema(P));let R=P?P.get("format"):null,$=E==="formData",M="FormData"in Gt,K=e.get("required");const ee=a.getSchemaObjectType(P),G=a.getSchemaObjectType(P?.get("items")),Z=a.getSchemaObjectTypeLabel(P),X=!b&&ee==="object",te=!b&&G==="object";let le,se,ue,ve,he=F?F.get("value"):"",re=g?c8(P):null,W=d?qi(e):null,V=!1;e!==void 0&&P&&(le=P.get("items")),le!==void 0?(se=le.get("enum"),ue=le.get("default")):P&&(se=P.get("enum")),se&&se.size&&se.size>0&&(V=!0),e!==void 0&&(P&&(ue=P.get("default")),ue===void 0&&(ue=e.get("default")),ve=e.get("example"),ve===void 0&&(ve=e.get("x-example")));const ge=b?null:f.default.createElement(y,{fn:a,getComponent:n,value:he,required:K,disabled:!i,description:e.get("name"),onChange:this.onChangeWrapper,errors:F.get("errors"),schema:P});return f.default.createElement("tr",{"data-param-name":e.get("name"),"data-param-in":e.get("in")},f.default.createElement("td",{className:"parameters-col_name"},f.default.createElement("div",{className:K?"parameter__name required":"parameter__name"},e.get("name"),K?f.default.createElement("span",null," *"):null),f.default.createElement("div",{className:"parameter__type"},Z,R&&f.default.createElement("span",{className:"prop-format"},"($",R,")")),f.default.createElement("div",{className:"parameter__deprecated"},h&&e.get("deprecated")?"deprecated":null),f.default.createElement("div",{className:"parameter__in"},"(",e.get("in"),")")),f.default.createElement("td",{className:"parameters-col_description"},e.get("description")?f.default.createElement(w,{source:e.get("description")}):null,!b&&i||!V?null:f.default.createElement(w,{className:"parameter__enum",source:"<i>Available values</i> : "+se.map((function(me){return me})).toArray().map(String).join(", ")}),!b&&i||ue===void 0?null:f.default.createElement(w,{className:"parameter__default",source:"<i>Default value</i> : "+ue}),!b&&i||ve===void 0?null:f.default.createElement(w,{source:"<i>Example</i> : "+ve}),$&&!M&&f.default.createElement("div",null,"Error: your browser does not support FormData"),h&&e.get("examples")?f.default.createElement("section",{className:"parameter-controls"},f.default.createElement(T,{examples:e.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:n,defaultToFirstExample:!0,currentKey:p.activeExamplesMember(...l,"parameters",this.getParamKey()),currentUserInputValue:he})):null,X||te?f.default.createElement(_,{getComponent:n,specPath:c.push("schema"),getConfigs:s,isExecute:i,specSelectors:u,schema:P,example:ge}):ge,b&&P?f.default.createElement(_,{getComponent:n,specPath:c.push("schema"),getConfigs:s,isExecute:i,specSelectors:u,schema:P,example:b,includeWriteOnly:!0}):null,!b&&i&&e.get("allowEmptyValue")?f.default.createElement(A,{onChange:this.onChangeIncludeEmpty,isIncluded:u.parameterInclusionSettingFor(l,e.get("name"),e.get("in")),isDisabled:!dA(he)}):null,h&&e.get("examples")?f.default.createElement(k,{example:e.getIn(["examples",p.activeExamplesMember(...l,"parameters",this.getParamKey())]),getComponent:n,getConfigs:s}):null,g&&re.size?re.entrySeq().map((([me,Me])=>f.default.createElement(S,{key:`${me}-${Me}`,xKey:me,xVal:Me}))):null,d&&W.size?W.entrySeq().map((([me,Me])=>f.default.createElement(S,{key:`${me}-${Me}`,xKey:me,xVal:Me}))):null))}}class zye extends f.Component{handleValidateParameters=()=>{let{specSelectors:e,specActions:r,path:n,method:s}=this.props;return r.validateParams([n,s]),e.validateBeforeExecute([n,s])};handleValidateRequestBody=()=>{let{path:e,method:r,specSelectors:n,oas3Selectors:s,oas3Actions:i}=this.props,a={missingBodyValue:!1,missingRequiredKeys:[]};i.clearRequestBodyValidateError({path:e,method:r});let o=n.getOAS3RequiredRequestBodyContentType([e,r]),u=s.requestBodyValue(e,r),l=s.validateBeforeExecute([e,r]),c=s.requestContentType(e,r);if(!l)return a.missingBodyValue=!0,i.setRequestBodyValidateError({path:e,method:r,validationErrors:a}),!1;if(!o)return!0;let p=s.validateShallowRequired({oas3RequiredRequestBodyContentType:o,oas3RequestContentType:c,oas3RequestBodyValue:u});return!p||p.length<1||(p.forEach((h=>{a.missingRequiredKeys.push(h)})),i.setRequestBodyValidateError({path:e,method:r,validationErrors:a}),!1)};handleValidationResultPass=()=>{let{specActions:e,operation:r,path:n,method:s}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:r,path:n,method:s})};handleValidationResultFail=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearValidateParams([r,n]),setTimeout((()=>{e.validateParams([r,n])}),40)};handleValidationResult=e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()};onClick=()=>{let e=this.handleValidateParameters(),r=this.handleValidateRequestBody(),n=e&&r;this.handleValidationResult(n)};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);render(){const{disabled:e}=this.props;return f.default.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:e},"Execute")}}class Wye extends f.default.Component{render(){let{headers:e,getComponent:r}=this.props;const n=r("Property"),s=r("Markdown",!0);return e&&e.size?f.default.createElement("div",{className:"headers-wrapper"},f.default.createElement("h4",{className:"headers__title"},"Headers:"),f.default.createElement("table",{className:"headers"},f.default.createElement("thead",null,f.default.createElement("tr",{className:"header-row"},f.default.createElement("th",{className:"header-col"},"Name"),f.default.createElement("th",{className:"header-col"},"Description"),f.default.createElement("th",{className:"header-col"},"Type"))),f.default.createElement("tbody",null,e.entrySeq().map((([i,a])=>{if(!z.default.Map.isMap(a))return null;const o=a.get("description"),u=a.getIn(["schema"])?a.getIn(["schema","type"]):a.getIn(["type"]),l=a.getIn(["schema","example"]);return f.default.createElement("tr",{key:i},f.default.createElement("td",{className:"header-col"},i),f.default.createElement("td",{className:"header-col"},o?f.default.createElement(s,{source:o}):null),f.default.createElement("td",{className:"header-col"},u," ",l?f.default.createElement(n,{propKey:"Example",propVal:l,propClass:"header-example"}):null))})).toArray()))):null}}class Jye extends f.default.Component{render(){let{editorActions:e,errSelectors:r,layoutSelectors:n,layoutActions:s,getComponent:i}=this.props;const a=i("Collapse");if(e&&e.jumpToLine)var o=e.jumpToLine;let u=r.allErrors().filter((p=>p.get("type")==="thrown"||p.get("level")==="error"));if(!u||u.count()<1)return null;let l=n.isShown(["errorPane"],!0),c=u.sortBy((p=>p.get("line")));return f.default.createElement("pre",{className:"errors-wrapper"},f.default.createElement("hgroup",{className:"error"},f.default.createElement("h4",{className:"errors__title"},"Errors"),f.default.createElement("button",{className:"btn errors__clear-btn",onClick:()=>s.show(["errorPane"],!l)},l?"Hide":"Show")),f.default.createElement(a,{isOpened:l,animated:!0},f.default.createElement("div",{className:"errors"},c.map(((p,h)=>{let d=p.get("type");return d==="thrown"||d==="auth"?f.default.createElement(Hye,{key:h,error:p.get("error")||p,jumpToLine:o}):d==="spec"?f.default.createElement(Kye,{key:h,error:p,jumpToLine:o}):void 0})))))}}const Hye=({error:t,jumpToLine:e})=>{if(!t)return null;let r=t.get("line");return f.default.createElement("div",{className:"error-wrapper"},t?f.default.createElement("div",null,f.default.createElement("h4",null,t.get("source")&&t.get("level")?C4(t.get("source"))+" "+t.get("level"):"",t.get("path")?f.default.createElement("small",null," at ",t.get("path")):null),f.default.createElement("span",{className:"message thrown"},t.get("message")),f.default.createElement("div",{className:"error-line"},r&&e?f.default.createElement("a",{onClick:e.bind(null,r)},"Jump to line ",r):null)):null)},Kye=({error:t,jumpToLine:e=null})=>{let r=null;return t.get("path")?r=z.List.isList(t.get("path"))?f.default.createElement("small",null,"at ",t.get("path").join(".")):f.default.createElement("small",null,"at ",t.get("path")):t.get("line")&&!e&&(r=f.default.createElement("small",null,"on line ",t.get("line"))),f.default.createElement("div",{className:"error-wrapper"},t?f.default.createElement("div",null,f.default.createElement("h4",null,C4(t.get("source"))+" "+t.get("level")," ",r),f.default.createElement("span",{className:"message"},t.get("message")),f.default.createElement("div",{className:"error-line"},e?f.default.createElement("a",{onClick:e.bind(null,t.get("line"))},"Jump to line ",t.get("line")):null)):null)};function C4(t){return(t||"").split(" ").map((e=>e[0].toUpperCase()+e.slice(1))).join(" ")}const Gye=()=>{};class Yye extends f.default.Component{static defaultProps={onChange:Gye,value:null,contentTypes:(0,z.fromJS)(["application/json"])};componentDidMount(){this.props.contentTypes&&this.props.onChange(this.props.contentTypes.first())}UNSAFE_componentWillReceiveProps(e){e.contentTypes&&e.contentTypes.size&&(e.contentTypes.includes(e.value)||e.onChange(e.contentTypes.first()))}onChangeWrapper=e=>this.props.onChange(e.target.value);render(){let{ariaControls:e,ariaLabel:r,className:n,contentTypes:s,controlId:i,value:a}=this.props;return s&&s.size?f.default.createElement("div",{className:"content-type-wrapper "+(n||"")},f.default.createElement("select",{"aria-controls":e,"aria-label":r,className:"content-type",id:i,onChange:this.onChangeWrapper,value:a||""},s.map((o=>f.default.createElement("option",{key:o,value:o},o))).toArray())):null}}function Nl(...t){return t.filter((e=>!!e)).join(" ").trim()}class Xye extends f.default.Component{render(){let{fullscreen:e,full:r,...n}=this.props;if(e)return f.default.createElement("section",n);let s="swagger-container"+(r?"-full":"");return f.default.createElement("section",(0,Tt.default)({},n,{className:Nl(n.className,s)}))}}const XS={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class Zye extends f.default.Component{render(){const{hide:e,keepContents:r,mobile:n,tablet:s,desktop:i,large:a,...o}=this.props;if(e&&!r)return f.default.createElement("span",null);let u=[];for(let c in XS){if(!Object.prototype.hasOwnProperty.call(XS,c))continue;let p=XS[c];if(c in this.props){let h=this.props[c];if(h<1){u.push("none"+p);continue}u.push("block"+p),u.push("col-"+h+p)}}e&&u.push("hidden");let l=Nl(o.className,...u);return f.default.createElement("section",(0,Tt.default)({},o,{className:l}))}}class Qye extends f.default.Component{render(){return f.default.createElement("div",(0,Tt.default)({},this.props,{className:Nl(this.props.className,"wrapper")}))}}class eve extends f.default.Component{static defaultProps={className:""};render(){return f.default.createElement("button",(0,Tt.default)({},this.props,{className:Nl(this.props.className,"button")}))}}const tve=t=>f.default.createElement("textarea",t),rve=t=>f.default.createElement("input",t);class nve extends f.default.Component{static defaultProps={multiple:!1,allowEmptyValue:!0};constructor(e,r){let n;super(e,r),n=e.value?e.value:e.multiple?[""]:"",this.state={value:n}}onChange=e=>{let r,{onChange:n,multiple:s}=this.props,i=[].slice.call(e.target.options);r=s?i.filter((function(a){return a.selected})).map((function(a){return a.value})):e.target.value,this.setState({value:r}),n&&n(r)};UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){let{allowedValues:e,multiple:r,allowEmptyValue:n,disabled:s}=this.props,i=this.state.value?.toJS?.()||this.state.value;return f.default.createElement("select",{className:this.props.className,multiple:r,value:i,onChange:this.onChange,disabled:s},n?f.default.createElement("option",{value:""},"--"):null,e.map((function(a,o){return f.default.createElement("option",{key:o,value:String(a)},String(a))})))}}class R4 extends f.default.Component{render(){return f.default.createElement("a",(0,Tt.default)({},this.props,{rel:"noopener noreferrer",className:Nl(this.props.className,"link")}))}}const J3=({children:t})=>f.default.createElement("div",{className:"no-margin"}," ",t," ");class sve extends f.default.Component{static defaultProps={isOpened:!1,animated:!1};renderNotAnimated(){return this.props.isOpened?f.default.createElement(J3,null,this.props.children):f.default.createElement("noscript",null)}render(){let{animated:e,isOpened:r,children:n}=this.props;return e?(n=r?n:null,f.default.createElement(J3,null,n)):this.renderNotAnimated()}}class ive extends f.default.Component{constructor(...e){super(...e),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(e,r){this.props.layoutActions.show(e,r)}showOp(e,r){let{layoutActions:n}=this.props;n.show(e,r)}render(){let{specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:s}=this.props,i=e.taggedOperations();const a=s("Collapse");return f.default.createElement("div",null,f.default.createElement("h4",{className:"overview-title"},"Overview"),i.map(((o,u)=>{let l=o.get("operations"),c=["overview-tags",u],p=r.isShown(c,!0);return f.default.createElement("div",{key:"overview-"+u},f.default.createElement("h4",{onClick:()=>n.show(c,!p),className:"link overview-tag"}," ",p?"-":"+",u),f.default.createElement(a,{isOpened:p,animated:!0},l.map((h=>{let{path:d,method:g,id:y}=h.toObject(),v="operations",E=y,b=r.isShown([v,E]);return f.default.createElement(ave,{key:y,path:d,method:g,id:d+"-"+g,shown:b,showOpId:E,showOpIdPrefix:v,href:`#operation-${E}`,onClick:n.show})})).toArray()))})).toArray(),i.size<1&&f.default.createElement("h3",null," No operations defined in spec! "))}}class ave extends f.default.Component{constructor(e){super(e),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:e,showOpIdPrefix:r,onClick:n,shown:s}=this.props;n([r,e],!s)}render(){let{id:e,method:r,shown:n,href:s}=this.props;return f.default.createElement(R4,{href:s,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},f.default.createElement("div",null,f.default.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),f.default.createElement("span",{className:"bold-label"},e)))}}class ove extends f.default.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:e,defaultValue:r,initialValue:n,...s}=this.props;return f.default.createElement("input",(0,Tt.default)({},s,{ref:i=>this.inputRef=i}))}}class uve extends f.default.Component{render(){const{host:e,basePath:r}=this.props;return f.default.createElement("pre",{className:"base-url"},"[ Base URL: ",e,r," ]")}}class lve extends f.default.PureComponent{render(){const{url:e,getComponent:r}=this.props,n=r("Link");return f.default.createElement(n,{target:"_blank",href:ur(e)},f.default.createElement("span",{className:"url"}," ",e))}}class cve extends f.default.Component{render(){const{info:e,url:r,host:n,basePath:s,getComponent:i,externalDocs:a,selectedServer:o,url:u}=this.props,l=e.get("version"),c=e.get("description"),p=e.get("title"),h=is(e.get("termsOfService"),u,{selectedServer:o}),d=e.get("contact"),g=e.get("license"),y=is(a&&a.get("url"),u,{selectedServer:o}),v=a&&a.get("description"),E=i("Markdown",!0),b=i("Link"),_=i("VersionStamp"),w=i("OpenAPIVersion"),S=i("InfoUrl"),A=i("InfoBasePath"),T=i("License"),k=i("Contact");return f.default.createElement("div",{className:"info"},f.default.createElement("hgroup",{className:"main"},f.default.createElement("h2",{className:"title"},p,f.default.createElement("span",null,l&&f.default.createElement(_,{version:l}),f.default.createElement(w,{oasVersion:"2.0"}))),n||s?f.default.createElement(A,{host:n,basePath:s}):null,r&&f.default.createElement(S,{getComponent:i,url:r})),f.default.createElement("div",{className:"description"},f.default.createElement(E,{source:c})),h&&f.default.createElement("div",{className:"info__tos"},f.default.createElement(b,{target:"_blank",href:ur(h)},"Terms of service")),d?.size>0&&f.default.createElement(k,{getComponent:i,data:d,selectedServer:o,url:r}),g?.size>0&&f.default.createElement(T,{getComponent:i,license:g,selectedServer:o,url:r}),y?f.default.createElement(b,{className:"info__extdocs",target:"_blank",href:ur(y)},v||y):null)}}var fve=cve;class pve extends f.default.Component{render(){const{specSelectors:e,getComponent:r,oas3Selectors:n}=this.props,s=e.info(),i=e.url(),a=e.basePath(),o=e.host(),u=e.externalDocs(),l=n.selectedServer(),c=r("info");return f.default.createElement("div",null,s&&s.count()?f.default.createElement(c,{info:s,url:i,host:o,basePath:a,externalDocs:u,getComponent:r,selectedServer:l}):null)}}class dve extends f.default.Component{render(){const{data:e,getComponent:r,selectedServer:n,url:s}=this.props,i=e.get("name","the developer"),a=is(e.get("url"),s,{selectedServer:n}),o=e.get("email"),u=r("Link");return f.default.createElement("div",{className:"info__contact"},a&&f.default.createElement("div",null,f.default.createElement(u,{href:ur(a),target:"_blank"},i," - Website")),o&&f.default.createElement(u,{href:ur(`mailto:${o}`)},a?`Send email to ${i}`:`Contact ${i}`))}}var hve=dve;class mve extends f.default.Component{render(){const{license:e,getComponent:r,selectedServer:n,url:s}=this.props,i=e.get("name","License"),a=is(e.get("url"),s,{selectedServer:n}),o=r("Link");return f.default.createElement("div",{className:"info__license"},a?f.default.createElement("div",{className:"info__license__url"},f.default.createElement(o,{target:"_blank",href:ur(a)},i)):f.default.createElement("span",null,i))}}var gve=mve;class yve extends f.default.Component{render(){return null}}class vve extends f.default.Component{render(){let{getComponent:e}=this.props;const r=e("CopyIcon");return f.default.createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},f.default.createElement(Fp.CopyToClipboard,{text:this.props.textToCopy},f.default.createElement(r,null)))}}class bve extends f.default.Component{render(){return f.default.createElement("div",{className:"footer"})}}class Eve extends f.default.Component{onFilterChange=e=>{const{target:{value:r}}=e;this.props.layoutActions.updateFilter(r)};render(){const{specSelectors:e,layoutSelectors:r,getComponent:n}=this.props,s=n("Col"),i=e.loadingStatus()==="loading",a=e.loadingStatus()==="failed",o=r.currentFilter(),u=["operation-filter-input"];return a&&u.push("failed"),i&&u.push("loading"),f.default.createElement("div",null,o===!1?null:f.default.createElement("div",{className:"filter-container"},f.default.createElement(s,{className:"filter wrapper",mobile:12},f.default.createElement("input",{className:u.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof o=="string"?o:"",disabled:i}))))}}const ZS=Function.prototype;class KA extends f.PureComponent{static defaultProp={consumes:(0,z.fromJS)(["application/json"]),param:(0,z.fromJS)({}),onChange:ZS,onChangeConsumes:ZS};constructor(e,r){super(e,r),this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}updateValues=e=>{let{param:r,isExecute:n,consumesValue:s=""}=e,i=/xml/i.test(s),a=/json/i.test(s),o=i?r.get("value_xml"):r.get("value");if(o!==void 0){let u=!o&&a?"{}":o;this.setState({value:u}),this.onChange(u,{isXml:i,isEditBox:n})}else i?this.onChange(this.sample("xml"),{isXml:i,isEditBox:n}):this.onChange(this.sample(),{isEditBox:n})};sample=e=>{let{param:r,fn:n}=this.props,s=n.inferSchema(r.toJS());return n.getSampleSchema(s,e,{includeWriteOnly:!0})};onChange=(e,{isEditBox:r,isXml:n})=>{this.setState({value:e,isEditBox:r}),this._onChange(e,n)};_onChange=(e,r)=>{(this.props.onChange||ZS)(e,r)};handleOnChange=e=>{const{consumesValue:r}=this.props,n=/xml/i.test(r),s=e.target.value;this.onChange(s,{isXml:n,isEditBox:this.state.isEditBox})};toggleIsEditBox=()=>this.setState((e=>({isEditBox:!e.isEditBox})));render(){let{onChangeConsumes:e,param:r,isExecute:n,specSelectors:s,pathMethod:i,getComponent:a}=this.props;const o=a("Button"),u=a("TextArea"),l=a("HighlightCode",!0),c=a("contentType");let p=(s?s.parameterWithMetaByIdentity(i,r):r).get("errors",(0,z.List)()),h=s.contentTypeValues(i).get("requestContentType"),d=this.props.consumes&&this.props.consumes.size?this.props.consumes:KA.defaultProp.consumes,{value:g,isEditBox:y}=this.state,v=null;Up(g)&&(v="json");const E=`${JA(`${i[1]}${i[0]}_parameters`)}_select`;return f.default.createElement("div",{className:"body-param","data-param-name":r.get("name"),"data-param-in":r.get("in")},y&&n?f.default.createElement(u,{className:"body-param__text"+(p.count()?" invalid":""),value:g,onChange:this.handleOnChange}):g&&f.default.createElement(l,{className:"body-param__example",language:v},g),f.default.createElement("div",{className:"body-param-options"},n?f.default.createElement("div",{className:"body-param-edit"},f.default.createElement(o,{className:y?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},y?"Cancel":"Edit")):null,f.default.createElement("label",{htmlFor:E},f.default.createElement("span",null,"Parameter content type"),f.default.createElement(c,{value:h,contentTypes:d,onChange:e,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:E}))))}}class Sve extends f.default.Component{render(){const{request:e,getComponent:r}=this.props,n=O8(e),s=r("SyntaxHighlighter",!0);return f.default.createElement("div",{className:"curl-command"},f.default.createElement("h4",null,"Curl"),f.default.createElement("div",{className:"copy-to-clipboard"},f.default.createElement(Fp.CopyToClipboard,{text:n},f.default.createElement("button",null))),f.default.createElement("div",null,f.default.createElement(s,{language:"bash",className:"curl microlight",renderPlainText:({children:i,PlainTextViewer:a})=>f.default.createElement(a,{className:"curl"},i)},n)))}}var _ve=({propKey:t,propVal:e,propClass:r})=>f.default.createElement("span",{className:r},f.default.createElement("br",null),t,": ",String(e));class wve extends f.default.Component{static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1};render(){const{onTryoutClick:e,onCancelClick:r,onResetClick:n,enabled:s,hasUserEditedBody:i,isOAS3:a}=this.props,o=a&&i;return f.default.createElement("div",{className:o?"try-out btn-group":"try-out"},s?f.default.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):f.default.createElement("button",{className:"btn try-out__btn",onClick:e},"Try it out "),o&&f.default.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}class xve extends f.default.PureComponent{static defaultProps={alsoShow:null,children:null,bypass:!1};render(){const{bypass:e,isSwagger2:r,isOAS3:n,alsoShow:s}=this.props;return e?f.default.createElement("div",null,this.props.children):r&&n?f.default.createElement("div",{className:"version-pragma"},s,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,f.default.createElement("code",null,"swagger")," and ",f.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),f.default.createElement("p",null,"Supported version fields are ",f.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",f.default.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?f.default.createElement("div",null,this.props.children):f.default.createElement("div",{className:"version-pragma"},s,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,"The provided definition does not specify a valid version field."),f.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",f.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",f.default.createElement("code",null,"openapi: 3.0.4"),")."))))}}var Ave=({version:t})=>f.default.createElement("small",null,f.default.createElement("pre",{className:"version"}," ",t," ")),Ove=({oasVersion:t})=>f.default.createElement("small",{className:"version-stamp"},f.default.createElement("pre",{className:"version"},"OAS ",t)),Cve=({enabled:t,path:e,text:r})=>f.default.createElement("a",{className:"nostyle",onClick:t?n=>n.preventDefault():null,href:t?`#/${e}`:null},f.default.createElement("span",null,r)),Rve=()=>f.default.createElement("div",null,f.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},f.default.createElement("defs",null,f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},f.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},f.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},f.default.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},f.default.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},f.default.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},f.default.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),f.default.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},f.default.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),f.default.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},f.default.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),f.default.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},f.default.createElement("g",{transform:"translate(2, -1)"},f.default.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"})))))),T4=(function(t){var e={};return be.d(e,t),e})({Remarkable:function(){return Fi}}),Tve=(function(t){var e={};return be.d(e,t),e})({linkify:function(){return npe}}),E_=(function(t){var e={};return be.d(e,t),e})({default:function(){return Ape}});E_.default.addHook&&E_.default.addHook("beforeSanitizeElements",(function(t){return t.href&&t.setAttribute("rel","noopener noreferrer"),t}));var Ive=function({source:e,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof e!="string")return null;const s=new T4.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(Tve.linkify);s.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:i}=n(),a=s.render(e),o=gu(a,{useUnsafeMarkdown:i});return e&&a&&o?f.default.createElement("div",{className:(0,It.default)(r,"markdown"),dangerouslySetInnerHTML:{__html:o}}):null};function gu(t,{useUnsafeMarkdown:e=!1}={}){const r=e,n=e?[]:["style","class"];return e&&!gu.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),gu.hasWarnedAboutDeprecation=!0),E_.default.sanitize(t,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}gu.hasWarnedAboutDeprecation=!1;class kve extends f.default.Component{render(){const{errSelectors:e,specSelectors:r,getComponent:n}=this.props,s=n("SvgAssets"),i=n("InfoContainer",!0),a=n("VersionPragmaFilter"),o=n("operations",!0),u=n("Models",!0),l=n("Webhooks",!0),c=n("Row"),p=n("Col"),h=n("errors",!0),d=n("ServersContainer",!0),g=n("SchemesContainer",!0),y=n("AuthorizeBtnContainer",!0),v=n("FilterContainer",!0),E=r.isSwagger2(),b=r.isOAS3(),_=r.isOAS31(),w=!r.specStr(),S=r.loadingStatus();let A=null;if(S==="loading"&&(A=f.default.createElement("div",{className:"info"},f.default.createElement("div",{className:"loading-container"},f.default.createElement("div",{className:"loading"})))),S==="failed"&&(A=f.default.createElement("div",{className:"info"},f.default.createElement("div",{className:"loading-container"},f.default.createElement("h4",{className:"title"},"Failed to load API definition."),f.default.createElement(h,null)))),S==="failedConfig"){const $=e.lastError(),M=$?$.get("message"):"";A=f.default.createElement("div",{className:"info failed-config"},f.default.createElement("div",{className:"loading-container"},f.default.createElement("h4",{className:"title"},"Failed to load remote configuration."),f.default.createElement("p",null,M)))}if(!A&&w&&(A=f.default.createElement("h4",null,"No API definition provided.")),A)return f.default.createElement("div",{className:"swagger-ui"},f.default.createElement("div",{className:"loading-container"},A));const T=r.servers(),k=r.schemes(),P=T&&T.size,F=k&&k.size,R=!!r.securityDefinitions();return f.default.createElement("div",{className:"swagger-ui"},f.default.createElement(s,null),f.default.createElement(a,{isSwagger2:E,isOAS3:b,alsoShow:f.default.createElement(h,null)},f.default.createElement(h,null),f.default.createElement(c,{className:"information-container"},f.default.createElement(p,{mobile:12},f.default.createElement(i,null))),P||F||R?f.default.createElement("div",{className:"scheme-container"},f.default.createElement(p,{className:"schemes wrapper",mobile:12},P||F?f.default.createElement("div",{className:"schemes-server-container"},P?f.default.createElement(d,null):null,F?f.default.createElement(g,null):null):null,R?f.default.createElement(y,null):null)):null,f.default.createElement(v,null),f.default.createElement(c,null,f.default.createElement(p,{mobile:12,desktop:12},f.default.createElement(o,null))),_&&f.default.createElement(c,{className:"webhooks-container"},f.default.createElement(p,{mobile:12,desktop:12},f.default.createElement(l,null))),f.default.createElement(c,null,f.default.createElement(p,{mobile:12,desktop:12},f.default.createElement(u,null)))))}}var Pve=()=>({components:{App:iye,authorizationPopup:aye,authorizeBtn:oye,AuthorizeBtnContainer:uye,authorizeOperationBtn:lye,auths:cye,AuthItem:fye,authError:pye,oauth2:bye,apiKeyAuth:dye,basicAuth:hye,clear:Eye,liveResponse:wye,InitializedInput:ove,info:fve,InfoContainer:pve,InfoUrl:lve,InfoBasePath:uve,Contact:hve,License:gve,JumpToPath:yve,CopyToClipboardBtn:vve,onlineValidatorBadge:O4,operations:Aye,operation:Cye,OperationSummary:Iye,OperationSummaryMethod:kye,OperationSummaryPath:Pye,responses:HA,response:Mye,ResponseExtension:Dye,responseBody:qye,parameters:Bye,parameterRow:Vye,execute:zye,headers:Wye,errors:Jye,contentType:Yye,overview:ive,footer:bve,FilterContainer:Eve,ParamBody:KA,curl:Sve,Property:_ve,TryItOutButton:wve,Markdown:Ive,BaseLayout:kve,VersionPragmaFilter:xve,VersionStamp:Ave,OperationExt:jye,OperationExtRow:Nye,ParameterExt:$ye,ParameterIncludeEmpty:Uye,OperationTag:Oye,OperationContainer:Rye,OpenAPIVersion:Ove,DeepLink:Cve,SvgAssets:Rve,Example:mye,ExamplesSelect:gye,ExamplesSelectValueRetainer:yye}}),jve=()=>({components:{...s_}}),I4=()=>[g8,d4,x8,y4,v4,c4,b8,S8,w8,N8,L8,Pve,jve,p4,m8,b4,y8,E8,A8,R8,S4,_4,A4()];const Nve=(0,z.Map)();function Ml(t){return(e,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const s=t(...n);return typeof s=="function"?s(r):s}return e(...n)}}const Dl=Ml((0,qp.default)(null)),Mve=Ml(((t,e)=>r=>r.getSystem().specSelectors.findSchema(e))),Dve=Ml((()=>t=>{const e=t.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return z.Map.isMap(e)?e:Nve})),Fve=Ml((()=>t=>t.getSystem().specSelectors.specJson().hasIn(["servers",0]))),qve=Ml((0,at.createSelector)(cs,(t=>t.getIn(["components","securitySchemes"])||null))),Bve=(t,e)=>(r,...n)=>e.specSelectors.isOAS3()?e.oas3Selectors.validOperationMethods():t(...n),$ve=Dl,Lve=Dl,Uve=Dl,Vve=Dl,zve=Dl,Wve=(function(e){return(r,n)=>(...s)=>{if(n.getSystem().specSelectors.isOAS3()){let i=n.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return e(n,i,...s)}return r(...s)}})((0,at.createSelector)((t=>t),(({specSelectors:t})=>t.securityDefinitions()),((t,e)=>{let r=(0,z.List)();return e&&e.entrySeq().forEach((([n,s])=>{const i=s?.get("type");if(i==="oauth2"&&s.get("flows").entrySeq().forEach((([a,o])=>{let u=(0,z.fromJS)({flow:a,authorizationUrl:o.get("authorizationUrl"),tokenUrl:o.get("tokenUrl"),scopes:o.get("scopes"),type:s.get("type"),description:s.get("description")});r=r.push(new z.Map({[n]:u.filter((l=>l!==void 0))}))})),i!=="http"&&i!=="apiKey"||(r=r.push(new z.Map({[n]:s}))),i==="openIdConnect"&&s.get("openIdConnectData")){let a=s.get("openIdConnectData");(a.get("grant_types_supported")||["authorization_code","implicit"]).forEach((o=>{let u=a.get("scopes_supported")&&a.get("scopes_supported").reduce(((c,p)=>c.set(p,"")),new z.Map),l=(0,z.fromJS)({flow:o,authorizationUrl:a.get("authorization_endpoint"),tokenUrl:a.get("token_endpoint"),scopes:u,type:"oauth2",openIdConnectUrl:s.get("openIdConnectUrl")});r=r.push(new z.Map({[n]:l.filter((c=>c!==void 0))}))}))}})),r})));function Fl(t){return(e,r)=>n=>typeof r.specSelectors?.isOAS3=="function"?r.specSelectors.isOAS3()?f.default.createElement(t,(0,Tt.default)({},n,r,{Ori:e})):f.default.createElement(e,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}const Jve=(0,z.Map)(),Hve=()=>t=>(function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"})(t.getSystem().specSelectors.specJson()),Kve=()=>t=>(function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)})(t.getSystem().specSelectors.specJson()),Gve=()=>t=>t.getSystem().specSelectors.isOAS30();function k4(t){return(e,...r)=>n=>{if(n.specSelectors.isOAS3()){const s=t(e,...r);return typeof s=="function"?s(n):s}return null}}const Yve=k4((()=>t=>t.specSelectors.specJson().get("servers",Jve))),Xve=(t,e)=>{const r=t.getIn(["resolvedSubtrees","components","schemas",e],null),n=t.getIn(["json","components","schemas",e],null);return r||n||null},Zve=k4(((t,{callbacks:e,specPath:r})=>n=>{const s=n.specSelectors.validOperationMethods();return z.Map.isMap(e)?e.reduce(((i,a,o)=>{if(!z.Map.isMap(a))return i;const u=a.reduce(((l,c,p)=>{if(!z.Map.isMap(c))return l;const h=c.entrySeq().filter((([d])=>s.includes(d))).map((([d,g])=>({operation:(0,z.Map)({operation:g}),method:d,path:p,callbackName:o,specPath:r.concat([o,p,d])})));return l.concat(h)}),(0,z.List)());return i.concat(u)}),(0,z.List)()).groupBy((i=>i.callbackName)).map((i=>i.toArray())).toObject():{}}));var Qve=({callbacks:t,specPath:e,specSelectors:r,getComponent:n})=>{const s=r.callbacksOperations({callbacks:t,specPath:e}),i=Object.keys(s),a=n("OperationContainer",!0);return i.length===0?f.default.createElement("span",null,"No callbacks"):f.default.createElement("div",null,i.map((o=>f.default.createElement("div",{key:`${o}`},f.default.createElement("h2",null,o),s[o].map((u=>f.default.createElement(a,{key:`${o}-${u.path}-${u.method}`,op:u.operation,tag:"callbacks",method:u.method,path:u.path,specPath:u.specPath,allowTryItOut:!1})))))))};const lf=(t,e,r,n)=>{const s=t.getIn(["content",e])??(0,z.OrderedMap)(),i=s.get("schema",(0,z.OrderedMap)()).toJS(),a=s.get("examples")!==void 0,o=s.get("example"),u=a?s.getIn(["examples",r,"value"]):o;return Fr(n.getSampleSchema(i,e,{includeWriteOnly:!0},u))};var e0e=({userHasEditedBody:t,requestBody:e,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:s,getComponent:i,getConfigs:a,specSelectors:o,fn:u,contentType:l,isExecute:c,specPath:p,onChange:h,onChangeIncludeEmpty:d,activeExamplesKey:g,updateActiveExamplesKey:y,setRetainRequestBodyValueFlag:v})=>{const E=le=>{h(le.target.files[0])},b=le=>{let se={key:le,shouldDispatchInit:!1,defaultValue:!0};return n.get(le,"no value")==="no value"&&(se.shouldDispatchInit=!0),se},_=i("Markdown",!0),w=i("modelExample"),S=i("RequestBodyEditor"),A=i("HighlightCode",!0),T=i("ExamplesSelectValueRetainer"),k=i("Example"),P=i("ParameterIncludeEmpty"),{showCommonExtensions:F}=a(),R=e?.get("description")??null,$=e?.get("content")??new z.OrderedMap;l=l||$.keySeq().first()||"";const M=$.get(l)??(0,z.OrderedMap)(),K=M.get("schema",(0,z.OrderedMap)()),ee=M.get("examples",null),G=ee?.map(((le,se)=>{const ue=le?.get("value",null);return ue&&(le=le.set("value",lf(e,l,se,u),ue)),le}));if(s=z.List.isList(s)?s:(0,z.List)(),u.isFileUploadIntended(M?.get("schema"),l)){const le=i("Input");return c?f.default.createElement(le,{type:"file",onChange:E}):f.default.createElement("i",null,"Example values are not available for ",f.default.createElement("code",null,l)," media types.")}if(!M.size)return null;if(u.hasSchemaType(M.get("schema"),"object")&&(l==="application/x-www-form-urlencoded"||l.indexOf("multipart/")===0)&&K.get("properties",(0,z.OrderedMap)()).size>0){const le=i("JsonSchemaForm"),se=i("ParameterExt"),ue=K.get("properties",(0,z.OrderedMap)());return r=z.Map.isMap(r)?r:(0,z.OrderedMap)(),f.default.createElement("div",{className:"table-container"},R&&f.default.createElement(_,{source:R}),f.default.createElement("table",null,f.default.createElement("tbody",null,z.Map.isMap(ue)&&ue.entrySeq().map((([ve,he])=>{if(he.get("readOnly"))return;const re=he.get("oneOf")?.get(0)?.toJS(),W=he.get("anyOf")?.get(0)?.toJS();he=(0,z.fromJS)(u.mergeJsonSchema(he.toJS(),re??W??{}));let V=F?c8(he):null;const ge=K.get("required",(0,z.List)()).includes(ve),me=u.getSchemaObjectType(he),Me=u.getSchemaObjectTypeLabel(he),$e=u.getSchemaObjectType(he?.get("items")),Ie=he.get("format"),ke=he.get("description"),Le=r.getIn([ve,"value"]),ye=r.getIn([ve,"errors"])||s,Se=n.get(ve)||!1;let we=u.getSampleSchema(he,!1,{includeWriteOnly:!0});we===!1&&(we="false"),we===0&&(we="0"),typeof we!="string"&&me==="object"&&(we=Fr(we)),typeof we=="string"&&me==="array"&&(we=JSON.parse(we));const L=u.isFileUploadIntended(he),C=f.default.createElement(le,{fn:u,dispatchInitialValue:!L,schema:he,description:ve,getComponent:i,value:Le===void 0?we:Le,required:ge,errors:ye,onChange:j=>{h(j,[ve])}});return f.default.createElement("tr",{key:ve,className:"parameters","data-property-name":ve},f.default.createElement("td",{className:"parameters-col_name"},f.default.createElement("div",{className:ge?"parameter__name required":"parameter__name"},ve,ge?f.default.createElement("span",null," *"):null),f.default.createElement("div",{className:"parameter__type"},Me,Ie&&f.default.createElement("span",{className:"prop-format"},"($",Ie,")"),F&&V.size?V.entrySeq().map((([j,U])=>f.default.createElement(se,{key:`${j}-${U}`,xKey:j,xVal:U}))):null),f.default.createElement("div",{className:"parameter__deprecated"},he.get("deprecated")?"deprecated":null)),f.default.createElement("td",{className:"parameters-col_description"},f.default.createElement(_,{source:ke}),c?f.default.createElement("div",null,me==="object"||$e==="object"?f.default.createElement(w,{getComponent:i,specPath:p.push("schema"),getConfigs:a,isExecute:c,specSelectors:o,schema:he,example:C}):C,ge?null:f.default.createElement(P,{onChange:j=>d(ve,j),isIncluded:Se,isIncludedOptions:b(ve),isDisabled:Array.isArray(Le)?Le.length!==0:!dA(Le)})):null))})))))}const Z=lf(e,l,g,u);let X=null;Up(Z)&&(X="json");const te=c?f.default.createElement(S,{value:r,errors:s,defaultValue:Z,onChange:h,getComponent:i}):f.default.createElement(A,{className:"body-param__example",language:X},Fr(r)||Z);return f.default.createElement("div",null,R&&f.default.createElement(_,{source:R}),G?f.default.createElement(T,{userHasEditedBody:t,examples:G,currentKey:g,currentUserInputValue:r,onSelect:le=>{y(le)},updateValue:h,defaultToFirstExample:!0,getComponent:i,setRetainRequestBodyValueFlag:v}):null,f.default.createElement(w,{getComponent:i,getConfigs:a,specSelectors:o,expandDepth:1,isExecute:c,schema:M.get("schema"),specPath:p.push("content",l),example:te,includeWriteOnly:!0}),G?f.default.createElement(k,{example:G.get(g),getComponent:i,getConfigs:a}):null)};class t0e extends f.Component{render(){const{link:e,name:r,getComponent:n}=this.props,s=n("Markdown",!0);let i=e.get("operationId")||e.get("operationRef"),a=e.get("parameters")&&e.get("parameters").toJS(),o=e.get("description");return f.default.createElement("div",{className:"operation-link"},f.default.createElement("div",{className:"description"},f.default.createElement("b",null,f.default.createElement("code",null,r)),o?f.default.createElement(s,{source:o}):null),f.default.createElement("pre",null,"Operation `",i,"`",f.default.createElement("br",null),f.default.createElement("br",null),"Parameters ",(function(l,c){return typeof c!="string"?"":c.split(`
283
- `).map(((p,h)=>h>0?Array(l+1).join(" ")+p:p)).join(`
284
- `)})(0,JSON.stringify(a,null,2))||"{}",f.default.createElement("br",null)))}}var r0e=t0e,n0e=({servers:t,currentServer:e,setSelectedServer:r,setServerVariableValue:n,getServerVariable:s,getEffectiveServerValue:i})=>{const a=(t.find((c=>c.get("url")===e))||(0,z.OrderedMap)()).get("variables")||(0,z.OrderedMap)(),o=a.size!==0;(0,f.useEffect)((()=>{e||r(t.first()?.get("url"))}),[]),(0,f.useEffect)((()=>{const c=t.find((p=>p.get("url")===e));if(!c)return void r(t.first().get("url"));(c.get("variables")||(0,z.OrderedMap)()).map(((p,h)=>{n({server:e,key:h,val:p.get("default")||""})}))}),[e,t]);const u=(0,f.useCallback)((c=>{r(c.target.value)}),[r]),l=(0,f.useCallback)((c=>{const p=c.target.getAttribute("data-variable"),h=c.target.value;n({server:e,key:p,val:h})}),[n,e]);return f.default.createElement("div",{className:"servers"},f.default.createElement("label",{htmlFor:"servers"},f.default.createElement("select",{onChange:u,value:e,id:"servers"},t.valueSeq().map((c=>f.default.createElement("option",{value:c.get("url"),key:c.get("url")},c.get("url"),c.get("description")&&` - ${c.get("description")}`))).toArray())),o&&f.default.createElement("div",null,f.default.createElement("div",{className:"computed-url"},"Computed URL:",f.default.createElement("code",null,i(e))),f.default.createElement("h4",null,"Server variables"),f.default.createElement("table",null,f.default.createElement("tbody",null,a.entrySeq().map((([c,p])=>f.default.createElement("tr",{key:c},f.default.createElement("td",null,c),f.default.createElement("td",null,p.get("enum")?f.default.createElement("select",{"data-variable":c,onChange:l},p.get("enum").map((h=>f.default.createElement("option",{selected:h===s(e,c),key:h,value:h},h)))):f.default.createElement("input",{type:"text",value:s(e,c)||"",onChange:l,"data-variable":c})))))))))};class s0e extends f.default.Component{render(){const{specSelectors:e,oas3Selectors:r,oas3Actions:n,getComponent:s}=this.props,i=e.servers(),a=s("Servers");return i&&i.size?f.default.createElement("div",null,f.default.createElement("span",{className:"servers-title"},"Servers"),f.default.createElement(a,{servers:i,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const i0e=Function.prototype;class a0e extends f.PureComponent{static defaultProps={onChange:i0e,userHasEditedBody:!1};constructor(e,r){super(e,r),this.state={value:Fr(e.value)||e.defaultValue},e.onChange(e.value)}applyDefaultValue=e=>{const{onChange:r,defaultValue:n}=e||this.props;return this.setState({value:n}),r(n)};onChange=e=>{this.props.onChange(Fr(e))};onDomChange=e=>{const r=e.target.value;this.setState({value:r},(()=>this.onChange(r)))};UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:Fr(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:r}=this.props,{value:n}=this.state,s=r.size>0;const i=e("TextArea");return f.default.createElement("div",{className:"body-param"},f.default.createElement(i,{className:(0,It.default)("body-param__text",{invalid:s}),title:r.size?r.join(", "):"",value:n,onChange:this.onDomChange}))}}class o0e extends f.default.Component{constructor(e,r){super(e,r);let{name:n,schema:s}=this.props,i=this.getValue();this.state={name:n,schema:s,value:i}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,{value:n,name:s}=e.target,i=Object.assign({},this.state.value);s?i[s]=n:i=n,this.setState({value:i},(()=>r(this.state)))};render(){let{schema:e,getComponent:r,errSelectors:n,name:s,authSelectors:i}=this.props;const a=r("Input"),o=r("Row"),u=r("Col"),l=r("authError"),c=r("Markdown",!0),p=r("JumpToPath",!0),h=(e.get("scheme")||"").toLowerCase(),d=i.selectAuthPath(s);let g=this.getValue(),y=n.allErrors().filter((v=>v.get("authId")===s));if(h==="basic"){let v=g?g.get("username"):null;return f.default.createElement("div",null,f.default.createElement("h4",null,f.default.createElement("code",null,s),"  (http, Basic)",f.default.createElement(p,{path:d})),v&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(o,null,f.default.createElement(c,{source:e.get("description")})),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),v?f.default.createElement("code",null," ",v," "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),v?f.default.createElement("code",null," ****** "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),y.valueSeq().map(((E,b)=>f.default.createElement(l,{error:E,key:b}))))}return h==="bearer"?f.default.createElement("div",null,f.default.createElement("h4",null,f.default.createElement("code",null,s),"  (http, Bearer)",f.default.createElement(p,{path:d})),g&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(o,null,f.default.createElement(c,{source:e.get("description")})),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),g?f.default.createElement("code",null," ****** "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),y.valueSeq().map(((v,E)=>f.default.createElement(l,{error:v,key:E})))):f.default.createElement("div",null,f.default.createElement("em",null,f.default.createElement("b",null,s)," HTTP authentication: unsupported scheme ",`'${h}'`))}}class u0e extends f.default.Component{setSelectedServer=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${r}:${n}`)};setServerVariableValue=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${r}:${n}`})};getSelectedServer=()=>{const{path:e,method:r}=this.props;return this.props.getSelectedServer(`${e}:${r}`)};getServerVariable=(e,r)=>{const{path:n,method:s}=this.props;return this.props.getServerVariable({namespace:`${n}:${s}`,server:e},r)};getEffectiveServerValue=e=>{const{path:r,method:n}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${r}:${n}`})};render(){const{operationServers:e,pathServers:r,getComponent:n}=this.props;if(!e&&!r)return null;const s=n("Servers"),i=e||r,a=e?"operation":"path";return f.default.createElement("div",{className:"opblock-section operation-servers"},f.default.createElement("div",{className:"opblock-section-header"},f.default.createElement("div",{className:"tab-header"},f.default.createElement("h4",{className:"opblock-title"},"Servers"))),f.default.createElement("div",{className:"opblock-description-wrapper"},f.default.createElement("h4",{className:"message"},"These ",a,"-level options override the global server options."),f.default.createElement(s,{servers:i,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}var l0e={Callbacks:Qve,HttpAuth:o0e,RequestBody:e0e,Servers:n0e,ServersContainer:s0e,RequestBodyEditor:a0e,OperationServers:u0e,operationLink:r0e};const S_=new T4.Remarkable("commonmark");S_.block.ruler.enable(["table"]),S_.set({linkTarget:"_blank"});var c0e=Fl((({source:t,className:e="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof t!="string")return null;if(t){const{useUnsafeMarkdown:n}=r(),s=gu(S_.render(t),{useUnsafeMarkdown:n});let i;return typeof s=="string"&&(i=s.trim()),f.default.createElement("div",{dangerouslySetInnerHTML:{__html:i},className:(0,It.default)(e,"renderedMarkdown")})}return null})),f0e=Fl((({Ori:t,...e})=>{const{schema:r,getComponent:n,errSelectors:s,authorized:i,onAuthChange:a,name:o,authSelectors:u}=e,l=n("HttpAuth");return r.get("type")==="http"?f.default.createElement(l,{key:o,schema:r,name:o,errSelectors:s,authorized:i,getComponent:n,onChange:a,authSelectors:u}):f.default.createElement(t,e)})),p0e=Fl(O4);class d0e extends f.Component{render(){let{getConfigs:e,schema:r,Ori:n}=this.props,s=["model-box"],i=null;return r.get("deprecated")===!0&&(s.push("deprecated"),i=f.default.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),f.default.createElement("div",{className:s.join(" ")},i,f.default.createElement(n,(0,Tt.default)({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}var h0e=Fl(d0e),m0e=Fl((({Ori:t,...e})=>{const{schema:r,getComponent:n,errors:s,onChange:i,fn:a}=e,o=a.isFileUploadIntended(r),u=n("Input");return o?f.default.createElement(u,{type:"file",className:s.length?"invalid":"",title:s.length?s:"",onChange:l=>{i(l.target.files[0])},disabled:t.isDisabled}):f.default.createElement(t,e)})),g0e={Markdown:c0e,AuthItem:f0e,OpenAPIVersion:(function(e){return(r,n)=>s=>typeof n.specSelectors?.isOAS30=="function"?n.specSelectors.isOAS30()?f.default.createElement(e,(0,Tt.default)({},s,n,{Ori:r})):f.default.createElement(r,s):(console.warn("OAS30 wrapper: couldn't get spec"),null)})((t=>{const{Ori:e}=t;return f.default.createElement(e,{oasVersion:"3.0"})})),JsonSchema_string:m0e,model:h0e,onlineValidatorBadge:p0e};const GA="oas3_set_servers",YA="oas3_set_request_body_value",XA="oas3_set_request_body_retain_flag",ZA="oas3_set_request_body_inclusion",QA="oas3_set_active_examples_member",e2="oas3_set_request_content_type",t2="oas3_set_response_content_type",r2="oas3_set_server_variable_value",n2="oas3_set_request_body_validate_error",Vp="oas3_clear_request_body_validate_error",s2="oas3_clear_request_body_value";function y0e(t,e){return{type:GA,payload:{selectedServerUrl:t,namespace:e}}}function v0e({value:t,pathMethod:e}){return{type:YA,payload:{value:t,pathMethod:e}}}const b0e=({value:t,pathMethod:e})=>({type:XA,payload:{value:t,pathMethod:e}});function E0e({value:t,pathMethod:e,name:r}){return{type:ZA,payload:{value:t,pathMethod:e,name:r}}}function S0e({name:t,pathMethod:e,contextType:r,contextName:n}){return{type:QA,payload:{name:t,pathMethod:e,contextType:r,contextName:n}}}function _0e({value:t,pathMethod:e}){return{type:e2,payload:{value:t,pathMethod:e}}}function w0e({value:t,path:e,method:r}){return{type:t2,payload:{value:t,path:e,method:r}}}function x0e({server:t,namespace:e,key:r,val:n}){return{type:r2,payload:{server:t,namespace:e,key:r,val:n}}}const A0e=({path:t,method:e,validationErrors:r})=>({type:n2,payload:{path:t,method:e,validationErrors:r}}),O0e=({path:t,method:e})=>({type:Vp,payload:{path:t,method:e}}),C0e=({pathMethod:t})=>({type:Vp,payload:{path:t[0],method:t[1]}}),R0e=({pathMethod:t})=>({type:s2,payload:{pathMethod:t}});var T0e=(function(t){var e={};return be.d(e,t),e})({default:function(){return Rpe}});const Vn=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const s=t(e,...r);return typeof s=="function"?s(n):s}return null},I0e=Vn(((t,e)=>{const r=e?[e,"selectedServer"]:["selectedServer"];return t.getIn(r)||""})),k0e=Vn(((t,e,r)=>t.getIn(["requestData",e,r,"bodyValue"])||null)),P0e=Vn(((t,e,r)=>t.getIn(["requestData",e,r,"retainBodyValue"])||!1)),j0e=(t,e,r)=>n=>{const{oas3Selectors:s,specSelectors:i,fn:a}=n.getSystem();if(i.isOAS3()){const o=s.requestContentType(e,r);if(o)return lf(i.specResolvedSubtree(["paths",e,r,"requestBody"]),o,s.activeExamplesMember(e,r,"requestBody","requestBody"),a)}return null},N0e=Vn(((t,e,r)=>n=>{const{oas3Selectors:s,specSelectors:i,fn:a}=n;let o=!1;const u=s.requestContentType(e,r);let l=s.requestBodyValue(e,r);const c=i.specResolvedSubtree(["paths",e,r,"requestBody"]);if(!c)return!1;if(z.Map.isMap(l)&&(l=Fr(l.mapEntries((p=>z.Map.isMap(p[1])?[p[0],p[1].get("value")]:p)).toJS())),z.List.isList(l)&&(l=Fr(l)),u){const p=lf(c,u,s.activeExamplesMember(e,r,"requestBody","requestBody"),a);o=!!l&&l!==p}return o})),M0e=Vn(((t,e,r)=>t.getIn(["requestData",e,r,"bodyInclusion"])||(0,z.Map)())),D0e=Vn(((t,e,r)=>t.getIn(["requestData",e,r,"errors"])||null)),F0e=Vn(((t,e,r,n,s)=>t.getIn(["examples",e,r,n,s,"activeExample"])||null)),q0e=Vn(((t,e,r)=>t.getIn(["requestData",e,r,"requestContentType"])||null)),B0e=Vn(((t,e,r)=>t.getIn(["requestData",e,r,"responseContentType"])||null)),$0e=Vn(((t,e,r)=>{let n;if(typeof e!="string"){const{server:s,namespace:i}=e;n=i?[i,"serverVariableValues",s,r]:["serverVariableValues",s,r]}else n=["serverVariableValues",e,r];return t.getIn(n)||null})),L0e=Vn(((t,e)=>{let r;if(typeof e!="string"){const{server:n,namespace:s}=e;r=s?[s,"serverVariableValues",n]:["serverVariableValues",n]}else r=["serverVariableValues",e];return t.getIn(r)||(0,z.OrderedMap)()})),U0e=Vn(((t,e)=>{var r,n;if(typeof e!="string"){const{server:i,namespace:a}=e;n=i,r=a?t.getIn([a,"serverVariableValues",n]):t.getIn(["serverVariableValues",n])}else n=e,r=t.getIn(["serverVariableValues",n]);r=r||(0,z.OrderedMap)();let s=n;return r.map(((i,a)=>{s=s.replace(new RegExp(`{${(0,T0e.default)(a)}}`,"g"),i)})),s})),V0e=(function(e){return(...r)=>n=>{const s=n.getSystem().specSelectors.specJson();let i=[...r][1]||[];return!s.getIn(["paths",...i,"requestBody","required"])||e(...r)}})(((t,e)=>((r,n)=>(n=n||[],!!r.getIn(["requestData",...n,"bodyValue"])))(t,e))),z0e=(t,{oas3RequiredRequestBodyContentType:e,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let s=[];if(!z.Map.isMap(n))return s;let i=[];return Object.keys(e.requestContentType).forEach((a=>{a===r&&e.requestContentType[a].forEach((o=>{i.indexOf(o)<0&&i.push(o)}))})),i.forEach((a=>{n.getIn([a,"value"])||s.push(a)})),s},W0e=(0,qp.default)(["get","put","post","delete","options","head","patch","trace"]);var J0e={[GA]:(t,{payload:{selectedServerUrl:e,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return t.setIn(n,e)},[YA]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,s]=r;if(!z.Map.isMap(e))return t.setIn(["requestData",n,s,"bodyValue"],e);let i=t.getIn(["requestData",n,s,"bodyValue"])||(0,z.Map)();z.Map.isMap(i)||(i=(0,z.Map)());let a=i;const[...o]=e.keys();return o.forEach((u=>{let l=e.getIn([u]);a.has(u)&&z.Map.isMap(l)||(a=a.setIn([u,"value"],l))})),t.setIn(["requestData",n,s,"bodyValue"],a)},[XA]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,s]=r;return t.setIn(["requestData",n,s,"retainBodyValue"],e)},[ZA]:(t,{payload:{value:e,pathMethod:r,name:n}})=>{let[s,i]=r;return t.setIn(["requestData",s,i,"bodyInclusion",n],e)},[QA]:(t,{payload:{name:e,pathMethod:r,contextType:n,contextName:s}})=>{let[i,a]=r;return t.setIn(["examples",i,a,n,s,"activeExample"],e)},[e2]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,s]=r;return t.setIn(["requestData",n,s,"requestContentType"],e)},[t2]:(t,{payload:{value:e,path:r,method:n}})=>t.setIn(["requestData",r,n,"responseContentType"],e),[r2]:(t,{payload:{server:e,namespace:r,key:n,val:s}})=>{const i=r?[r,"serverVariableValues",e,n]:["serverVariableValues",e,n];return t.setIn(i,s)},[n2]:(t,{payload:{path:e,method:r,validationErrors:n}})=>{let s=[];if(s.push("Required field is not provided"),n.missingBodyValue)return t.setIn(["requestData",e,r,"errors"],(0,z.fromJS)(s));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:i}=n;return t.updateIn(["requestData",e,r,"bodyValue"],(0,z.fromJS)({}),(a=>i.reduce(((o,u)=>o.setIn([u,"errors"],(0,z.fromJS)(s))),a)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),t},[Vp]:(t,{payload:{path:e,method:r}})=>{const n=t.getIn(["requestData",e,r,"bodyValue"]);if(!z.Map.isMap(n))return t.setIn(["requestData",e,r,"errors"],(0,z.fromJS)([]));const[...s]=n.keys();return s?t.updateIn(["requestData",e,r,"bodyValue"],(0,z.fromJS)({}),(i=>s.reduce(((a,o)=>a.setIn([o,"errors"],(0,z.fromJS)([]))),i))):t},[s2]:(t,{payload:{pathMethod:e}})=>{let[r,n]=e;const s=t.getIn(["requestData",r,n,"bodyValue"]);return s?z.Map.isMap(s)?t.setIn(["requestData",r,n,"bodyValue"],(0,z.Map)()):t.setIn(["requestData",r,n,"bodyValue"],""):t}};function __({getSystem:t}){const e=(r=>(n,s=null)=>{const{getConfigs:i,fn:a}=r(),{fileUploadMediaTypes:o}=i();if(typeof s=="string"&&o.some((c=>s.startsWith(c))))return!0;const u=z.Map.isMap(n);if(!u&&!(0,Zs.default)(n))return!1;const l=u?n.get("format"):n.format;return a.hasSchemaType(n,"string")&&["binary","byte"].includes(l)})(t);return{components:l0e,wrapComponents:g0e,statePlugins:{spec:{wrapSelectors:i_,selectors:o_},auth:{wrapSelectors:a_},oas3:{actions:{...u_},reducers:J0e,selectors:{...l_}}},fn:{isFileUploadIntended:e,isFileUploadIntendedOAS30:e}}}var H0e=({specSelectors:t,getComponent:e})=>{const r=t.selectWebhooksOperations(),n=Object.keys(r),s=e("OperationContainer",!0);return n.length===0?null:f.default.createElement("div",{className:"webhooks"},f.default.createElement("h2",null,"Webhooks"),n.map((i=>f.default.createElement("div",{key:`${i}-webhook`},r[i].map((a=>f.default.createElement(s,{key:`${i}-${a.method}-webhook`,op:a.operation,tag:"webhooks",method:a.method,path:i,specPath:(0,z.List)(a.specPath),allowTryItOut:!1})))))))},K0e=({getComponent:t,specSelectors:e})=>{const r=e.selectLicenseNameField(),n=e.selectLicenseUrl(),s=t("Link");return f.default.createElement("div",{className:"info__license"},n?f.default.createElement("div",{className:"info__license__url"},f.default.createElement(s,{target:"_blank",href:ur(n)},r)):f.default.createElement("span",null,r))},G0e=({getComponent:t,specSelectors:e})=>{const r=e.selectContactNameField(),n=e.selectContactUrl(),s=e.selectContactEmailField(),i=t("Link");return f.default.createElement("div",{className:"info__contact"},n&&f.default.createElement("div",null,f.default.createElement(i,{href:ur(n),target:"_blank"},r," - Website")),s&&f.default.createElement(i,{href:ur(`mailto:${s}`)},n?`Send email to ${r}`:`Contact ${r}`))},Y0e=({getComponent:t,specSelectors:e})=>{const r=e.version(),n=e.url(),s=e.basePath(),i=e.host(),a=e.selectInfoSummaryField(),o=e.selectInfoDescriptionField(),u=e.selectInfoTitleField(),l=e.selectInfoTermsOfServiceUrl(),c=e.selectExternalDocsUrl(),p=e.selectExternalDocsDescriptionField(),h=e.contact(),d=e.license(),g=t("Markdown",!0),y=t("Link"),v=t("VersionStamp"),E=t("OpenAPIVersion"),b=t("InfoUrl"),_=t("InfoBasePath"),w=t("License",!0),S=t("Contact",!0),A=t("JsonSchemaDialect",!0);return f.default.createElement("div",{className:"info"},f.default.createElement("hgroup",{className:"main"},f.default.createElement("h2",{className:"title"},u,f.default.createElement("span",null,r&&f.default.createElement(v,{version:r}),f.default.createElement(E,{oasVersion:"3.1"}))),(i||s)&&f.default.createElement(_,{host:i,basePath:s}),n&&f.default.createElement(b,{getComponent:t,url:n})),a&&f.default.createElement("p",{className:"info__summary"},a),f.default.createElement("div",{className:"info__description description"},f.default.createElement(g,{source:o})),l&&f.default.createElement("div",{className:"info__tos"},f.default.createElement(y,{target:"_blank",href:ur(l)},"Terms of service")),h.size>0&&f.default.createElement(S,null),d.size>0&&f.default.createElement(w,null),c&&f.default.createElement(y,{className:"info__extdocs",target:"_blank",href:ur(c)},p||c),f.default.createElement(A,null))},X0e=({getComponent:t,specSelectors:e})=>{const r=e.selectJsonSchemaDialectField(),n=e.selectJsonSchemaDialectDefault(),s=t("Link");return f.default.createElement(f.default.Fragment,null,r&&r===n&&f.default.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",f.default.createElement(s,{target:"_blank",href:ur(r)},r)),r&&r!==n&&f.default.createElement("div",{className:"error-wrapper"},f.default.createElement("div",{className:"no-margin"},f.default.createElement("div",{className:"errors"},f.default.createElement("div",{className:"errors-wrapper"},f.default.createElement("h4",{className:"center"},"Warning"),f.default.createElement("p",{className:"message"},f.default.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",f.default.createElement(s,{target:"_blank",href:n},n),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))},Z0e=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,alsoShow:s,children:i})=>t?f.default.createElement("div",null,i):e&&(r||n)?f.default.createElement("div",{className:"version-pragma"},s,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,f.default.createElement("code",null,"swagger")," and ",f.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),f.default.createElement("p",null,"Supported version fields are ",f.default.createElement("code",null,'swagger: "2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",f.default.createElement("code",null,"openapi: 3.1.0"),").")))):e||r||n?f.default.createElement("div",null,i):f.default.createElement("div",{className:"version-pragma"},s,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,"The provided definition does not specify a valid version field."),f.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",f.default.createElement("code",null,'swagger: "2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",f.default.createElement("code",null,"openapi: 3.1.0"),")."))));const Q0e=t=>typeof t=="string"&&t.includes("#/components/schemas/")?(e=>{const r=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(r)}catch{return r}})(t.replace(/^.*#\/components\/schemas\//,"")):null,ebe=(0,f.forwardRef)((({schema:t,getComponent:e,onToggle:r=()=>{},specPath:n},s)=>{const i=e("JSONSchema202012"),a=Q0e(t.get("$$ref")),o=(0,f.useCallback)(((u,l)=>{r(a,l)}),[a,r]);return f.default.createElement(i,{name:a,schema:t.toJS(),ref:s,onExpand:o,identifier:n.toJS().join("_")})}));var tbe=ebe,rbe=({specActions:t,specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:s,getConfigs:i,fn:a})=>{const o=e.selectSchemas(),u=Object.keys(o).length>0,l=["components","schemas"],{docExpansion:c,defaultModelsExpandDepth:p}=i(),h=p>0&&c!=="none",d=r.isShown(l,h),g=s("Collapse"),y=s("JSONSchema202012"),v=s("ArrowUpIcon"),E=s("ArrowDownIcon"),{getTitle:b}=a.jsonSchema202012.useFn();(0,f.useEffect)((()=>{const T=Object.entries(o).some((([F])=>r.isShown([...l,F],!1))),k=d&&(p>1||T),P=e.specResolvedSubtree(l)!=null;k&&!P&&t.requestResolvedSubtree(l)}),[d,p]);const _=(0,f.useCallback)((()=>{n.show(l,!d)}),[d]),w=(0,f.useCallback)((T=>{T!==null&&n.readyToScroll(l,T)}),[]),S=T=>k=>{k!==null&&n.readyToScroll([...l,T],k)},A=T=>(k,P)=>{const F=[...l,T];P?(e.specResolvedSubtree(F)!=null||t.requestResolvedSubtree([...l,T]),n.show(F,!0)):n.show(F,!1)};return!u||p<0?null:f.default.createElement("section",{className:(0,It.default)("models",{"is-open":d}),ref:w},f.default.createElement("h4",null,f.default.createElement("button",{"aria-expanded":d,className:"models-control",onClick:_},f.default.createElement("span",null,"Schemas"),d?f.default.createElement(v,null):f.default.createElement(E,null))),f.default.createElement(g,{isOpened:d},Object.entries(o).map((([T,k])=>{const P=b(k,{lookup:"basic"})||T;return f.default.createElement(y,{key:T,ref:S(T),schema:k,name:P,onExpand:A(T)})}))))},nbe=({schema:t,getComponent:e,name:r,authSelectors:n})=>{const s=e("JumpToPath",!0),i=n.selectAuthPath(r);return f.default.createElement("div",null,f.default.createElement("h4",null,r," (mutualTLS) ",f.default.createElement(s,{path:i})),f.default.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),f.default.createElement("p",null,t.get("description")))};class sbe extends f.default.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,s=n.map(((i,a)=>a)).toArray();this.setState(s.reduce(((i,a)=>(i[a]="",i)),{})),r.logoutWithPersistOption(s)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:s}=this.props;const i=r("AuthItem"),a=r("oauth2",!0),o=r("Button"),u=n.authorized(),l=e.filter(((d,g)=>!!u.get(g))),c=e.filter((d=>d.get("type")!=="oauth2"&&d.get("type")!=="mutualTLS")),p=e.filter((d=>d.get("type")==="oauth2")),h=e.filter((d=>d.get("type")==="mutualTLS"));return f.default.createElement("div",{className:"auth-container"},c.size>0&&f.default.createElement("form",{onSubmit:this.submitAuth},c.map(((d,g)=>f.default.createElement(i,{key:g,schema:d,name:g,getComponent:r,onAuthChange:this.onAuthChange,authorized:u,errSelectors:s,authSelectors:n}))).toArray(),f.default.createElement("div",{className:"auth-btn-wrapper"},c.size===l.size?f.default.createElement(o,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):f.default.createElement(o,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),f.default.createElement(o,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),p.size>0?f.default.createElement("div",null,f.default.createElement("div",{className:"scope-def"},f.default.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),f.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((d=>d.get("type")==="oauth2")).map(((d,g)=>f.default.createElement("div",{key:g},f.default.createElement(a,{authorized:u,schema:d,name:g})))).toArray()):null,h.size>0&&f.default.createElement("div",null,h.map(((d,g)=>f.default.createElement(i,{key:g,schema:d,name:g,getComponent:r,onAuthChange:this.onAuthChange,authorized:u,errSelectors:s,authSelectors:n}))).toArray()))}}var ibe=sbe;const P4=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)},H3=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const s=t(e,...r);return typeof s=="function"?s(n):s}return null},j4=t=>(e,r)=>(n,...s)=>{if(r.getSystem().specSelectors.isOAS31()){const i=t(n,...s);return typeof i=="function"?i(e,r):i}return e(...s)},K3=t=>(e,...r)=>n=>{const s=t(e,n,...r);return typeof s=="function"?s(n):s},Ds=t=>(e,r)=>n=>r.specSelectors.isOAS31()?f.default.createElement(t,(0,Tt.default)({},n,{originalComponent:e,getSystem:r.getSystem})):f.default.createElement(e,n),QS=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map((([s,i])=>{const a=r[s];return[s,(...o)=>n.isOAS31()?i(...o):typeof a=="function"?a(...o):void 0]})))};var abe=Ds((({getSystem:t})=>{const e=t().getComponent("OAS31License",!0);return f.default.createElement(e,null)})),obe=Ds((({getSystem:t})=>{const e=t().getComponent("OAS31Contact",!0);return f.default.createElement(e,null)})),ube=Ds((({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return f.default.createElement(e,null)}));const lbe=(t,{includeReadOnly:e,includeWriteOnly:r})=>{if(!t?.properties)return{};const n=Object.entries(t.properties).filter((([,s])=>(s?.readOnly!==!0||e)&&(s?.writeOnly!==!0||r)));return Object.fromEntries(n)},N4=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},w_=Ds((({getSystem:t,...e})=>{const r=t(),{getComponent:n,fn:s,getConfigs:i}=r,a=i(),o=n("OAS31Model"),u=n("withJSONSchema202012SystemContext");return w_.ModelWithJSONSchemaContext??=u(o,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:a.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:s.jsonSchema202012.getProperties,isExpandable:s.jsonSchema202012.isExpandable,getSchemaKeywords:N4(s.jsonSchema202012.getSchemaKeywords)}}),f.default.createElement(w_.ModelWithJSONSchemaContext,e)}));var cbe=w_;const La=Ds((({getSystem:t})=>{const{getComponent:e,fn:r,getConfigs:n}=t(),s=n();if(La.ModelsWithJSONSchemaContext)return f.default.createElement(La.ModelsWithJSONSchemaContext,null);const i=e("OAS31Models",!0),a=e("withJSONSchema202012SystemContext");return La.ModelsWithJSONSchemaContext??=a(i,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:s.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:N4(r.jsonSchema202012.getSchemaKeywords)}}),f.default.createElement(La.ModelsWithJSONSchemaContext,null)}));La.ModelsWithJSONSchemaContext=null;var fbe=La,pbe=(t,e)=>r=>{const n=e.specSelectors.isOAS31(),s=e.getComponent("OAS31VersionPragmaFilter");return f.default.createElement(s,(0,Tt.default)({isOAS31:n},r))};const dbe=Ds((({originalComponent:t,...e})=>{const{getComponent:r,schema:n,name:s}=e,i=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?f.default.createElement(i,{schema:n,name:s}):f.default.createElement(t,e)}));var hbe=dbe,mbe=Ds((({getSystem:t,...e})=>{const r=t().getComponent("OAS31Auths",!0);return f.default.createElement(r,e)}));const i2=(0,z.Map)(),gbe=(0,at.createSelector)(((t,e)=>e.specSelectors.specJson()),P4),ybe=()=>t=>{const e=t.specSelectors.specJson().get("webhooks");return z.Map.isMap(e)?e:i2},vbe=(0,at.createSelector)([(t,e)=>e.specSelectors.webhooks(),(t,e)=>e.specSelectors.validOperationMethods(),(t,e)=>e.specSelectors.specResolvedSubtree(["webhooks"])],((t,e)=>t.reduce(((r,n,s)=>{if(!z.Map.isMap(n))return r;const i=n.entrySeq().filter((([a])=>e.includes(a))).map((([a,o])=>({operation:(0,z.Map)({operation:o}),method:a,path:s,specPath:["webhooks",s,a]})));return r.concat(i)}),(0,z.List)()).groupBy((r=>r.path)).map((r=>r.toArray())).toObject())),bbe=()=>t=>{const e=t.specSelectors.info().get("license");return z.Map.isMap(e)?e:i2},Ebe=()=>t=>t.specSelectors.license().get("name","License"),Sbe=()=>t=>t.specSelectors.license().get("url"),_be=(0,at.createSelector)([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],((t,e,r)=>{if(r)return is(r,t,{selectedServer:e})})),wbe=()=>t=>t.specSelectors.license().get("identifier"),xbe=()=>t=>{const e=t.specSelectors.info().get("contact");return z.Map.isMap(e)?e:i2},Abe=()=>t=>t.specSelectors.contact().get("name","the developer"),Obe=()=>t=>t.specSelectors.contact().get("email"),Cbe=()=>t=>t.specSelectors.contact().get("url"),Rbe=(0,at.createSelector)([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],((t,e,r)=>{if(r)return is(r,t,{selectedServer:e})})),Tbe=()=>t=>t.specSelectors.info().get("title"),Ibe=()=>t=>t.specSelectors.info().get("summary"),kbe=()=>t=>t.specSelectors.info().get("description"),Pbe=()=>t=>t.specSelectors.info().get("termsOfService"),jbe=(0,at.createSelector)([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectInfoTermsOfServiceField()],((t,e,r)=>{if(r)return is(r,t,{selectedServer:e})})),Nbe=()=>t=>t.specSelectors.externalDocs().get("description"),Mbe=()=>t=>t.specSelectors.externalDocs().get("url"),Dbe=(0,at.createSelector)([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectExternalDocsUrlField()],((t,e,r)=>{if(r)return is(r,t,{selectedServer:e})})),Fbe=()=>t=>t.specSelectors.specJson().get("jsonSchemaDialect"),qbe=()=>"https://spec.openapis.org/oas/3.1/dialect/base",Bbe=(0,at.createSelector)(((t,e)=>e.specSelectors.definitions()),((t,e)=>e.specSelectors.specResolvedSubtree(["components","schemas"])),((t,e)=>z.Map.isMap(t)?z.Map.isMap(e)?Object.entries(t.toJS()).reduce(((r,[n,s])=>{const i=e.get(n);return r[n]=i?.toJS()||s,r}),{}):t.toJS():{})),$be=(t,e)=>(r,...n)=>e.specSelectors.isOAS31()||t(...n),Lbe=j4((()=>(t,e)=>e.oas31Selectors.selectLicenseUrl())),Ube=j4((()=>(t,e)=>{const r=e.specSelectors.securityDefinitions();let n=t();return r&&r.entrySeq().forEach((([s,i])=>{i?.get("type")==="mutualTLS"&&(n=n.push(new z.Map({[s]:i})))})),n})),Vbe=(0,at.createSelector)([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField(),(t,e)=>e.specSelectors.selectLicenseIdentifierField()],((t,e,r,n)=>r?is(r,t,{selectedServer:e}):n?`https://spdx.org/licenses/${n}.html`:void 0));var zbe=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{hasKeyword:s}=r.jsonSchema202012.useFn(),i=n("JSONSchema202012JSONViewer");return s(t,"example")?f.default.createElement(i,{name:"Example",value:t.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},Wbe=({schema:t,getSystem:e})=>{const r=t?.xml||{},{fn:n,getComponent:s,getConfigs:i}=e(),{showExtensions:a}=i(),{useComponent:o,useIsExpanded:u,usePath:l,useLevel:c}=n.jsonSchema202012,{path:p}=l("xml"),{isExpanded:h,setExpanded:d,setCollapsed:g}=u("xml"),[y,v]=c(),E=a?qi(r):[],b=!!(r.name||r.namespace||r.prefix||E.length>0),_=o("Accordion"),w=o("ExpandDeepButton"),S=s("OpenAPI31Extensions"),A=s("JSONSchema202012PathContext")(),T=s("JSONSchema202012LevelContext")(),k=(0,f.useCallback)((()=>{h?g():d()}),[h,d,g]),P=(0,f.useCallback)(((F,R)=>{R?d({deep:!0}):g({deep:!0})}),[d,g]);return Object.keys(r).length===0?null:f.default.createElement(A.Provider,{value:p},f.default.createElement(T.Provider,{value:v},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":y},b?f.default.createElement(f.default.Fragment,null,f.default.createElement(_,{expanded:h,onChange:k},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),f.default.createElement(w,{expanded:h,onClick:P})):f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!h})},h&&f.default.createElement(f.default.Fragment,null,r.name&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),E.length>0&&f.default.createElement(S,{openAPISpecObj:r,openAPIExtensions:E,getSystem:e})))))},Jbe=({discriminator:t})=>{const e=t?.mapping||{};return Object.keys(e).length===0?null:Object.entries(e).map((([r,n])=>f.default.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n))))},Hbe=({schema:t,getSystem:e})=>{const r=t?.discriminator||{},{fn:n,getComponent:s,getConfigs:i}=e(),{showExtensions:a}=i(),{useComponent:o,useIsExpanded:u,usePath:l,useLevel:c}=n.jsonSchema202012,p="discriminator",{path:h}=l(p),{isExpanded:d,setExpanded:g,setCollapsed:y}=u(p),[v,E]=c(),b=a?qi(r):[],_=!!(r.mapping||b.length>0),w=o("Accordion"),S=o("ExpandDeepButton"),A=s("OpenAPI31Extensions"),T=s("JSONSchema202012PathContext")(),k=s("JSONSchema202012LevelContext")(),P=(0,f.useCallback)((()=>{d?y():g()}),[d,g,y]),F=(0,f.useCallback)(((R,$)=>{$?g({deep:!0}):y({deep:!0})}),[g,y]);return Object.keys(r).length===0?null:f.default.createElement(T.Provider,{value:h},f.default.createElement(k.Provider,{value:E},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":v},_?f.default.createElement(f.default.Fragment,null,f.default.createElement(w,{expanded:d,onChange:P},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),f.default.createElement(S,{expanded:d,onClick:F})):f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement(Jbe,{discriminator:r})),b.length>0&&f.default.createElement(A,{openAPISpecObj:r,openAPIExtensions:b,getSystem:e})))))},Kbe=({openAPISpecObj:t,getSystem:e,openAPIExtensions:r})=>{const{fn:n}=e(),{useComponent:s}=n.jsonSchema202012,i=s("JSONViewer");return r.map((a=>f.default.createElement(i,{key:a,name:a,value:t[a],className:"json-schema-2020-12-json-viewer-extension-keyword"})))},Gbe=({schema:t,getSystem:e})=>{const r=t?.externalDocs||{},{fn:n,getComponent:s,getConfigs:i}=e(),{showExtensions:a}=i(),{useComponent:o,useIsExpanded:u,usePath:l,useLevel:c}=n.jsonSchema202012,p="externalDocs",{path:h}=l(p),{isExpanded:d,setExpanded:g,setCollapsed:y}=u(p),[v,E]=c(),b=a?qi(r):[],_=!!(r.description||r.url||b.length>0),w=o("Accordion"),S=o("ExpandDeepButton"),A=s("JSONSchema202012KeywordDescription"),T=s("Link"),k=s("OpenAPI31Extensions"),P=s("JSONSchema202012PathContext")(),F=s("JSONSchema202012LevelContext")(),R=(0,f.useCallback)((()=>{d?y():g()}),[d,g,y]),$=(0,f.useCallback)(((M,K)=>{K?g({deep:!0}):y({deep:!0})}),[g,y]);return Object.keys(r).length===0?null:f.default.createElement(P.Provider,{value:h},f.default.createElement(F.Provider,{value:E},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":v},_?f.default.createElement(f.default.Fragment,null,f.default.createElement(w,{expanded:d,onChange:R},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),f.default.createElement(S,{expanded:d,onClick:$})):f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&f.default.createElement(f.default.Fragment,null,r.description&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement(A,{schema:r,getSystem:e})),r.url&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},f.default.createElement(T,{target:"_blank",href:ur(r.url)},r.url))))),b.length>0&&f.default.createElement(k,{openAPISpecObj:r,openAPIExtensions:b,getSystem:e})))))},Ybe=({schema:t,getSystem:e})=>{if(!t?.description)return null;const{getComponent:r}=e(),n=r("Markdown");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},f.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},f.default.createElement(n,{source:t.description})))},Xbe=Ds(Ybe);const Zbe=Ds((({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),s=n("JSONSchema202012KeywordDiscriminator"),i=n("JSONSchema202012KeywordXml"),a=n("JSONSchema202012KeywordExample"),o=n("JSONSchema202012KeywordExternalDocs");return f.default.createElement(f.default.Fragment,null,f.default.createElement(r,{schema:t}),f.default.createElement(s,{schema:t,getSystem:e}),f.default.createElement(i,{schema:t,getSystem:e}),f.default.createElement(o,{schema:t,getSystem:e}),f.default.createElement(a,{schema:t,getSystem:e}))}));var Qbe=Zbe,eEe=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:s,usePath:i}=r.jsonSchema202012,{getDependentRequired:a,getProperties:o}=r.jsonSchema202012.useFn(),u=r.jsonSchema202012.useConfig(),l=Array.isArray(t?.required)?t.required:[],{path:c}=i("properties"),p=s("JSONSchema"),h=n("JSONSchema202012PathContext")(),d=o(t,u);return Object.keys(d).length===0?null:f.default.createElement(h.Provider,{value:c},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},f.default.createElement("ul",null,Object.entries(d).map((([g,y])=>{const v=l.includes(g),E=a(g,t);return f.default.createElement("li",{key:g,className:(0,It.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":v})},f.default.createElement(p,{name:g,schema:y,dependentRequired:E}))})))))},tEe=Ds(eEe),rEe=function({fn:e,getSystem:r}){if(e.jsonSchema202012){const i=((a,o)=>{const{fn:u}=o();if(typeof a!="function")return null;const{hasKeyword:l}=u.jsonSchema202012;return c=>a(c)||l(c,"example")||c?.xml||c?.discriminator||c?.externalDocs})(e.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:i,getProperties:lbe})}if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const i=QS({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:a=>e.jsonSchema202012.getType(eo(a)),getSchemaObjectType:a=>e.jsonSchema202012.foldType(eo(a)?.type)},r());Object.assign(this.fn,i)}const n=(i=>(a,o=null)=>{const{fn:u}=i();if(u.isFileUploadIntendedOAS30(a,o))return!0;const l=z.Map.isMap(a);if(!l&&!(0,Zs.default)(a))return!1;const c=l?a.get("contentMediaType"):a.contentMediaType,p=l?a.get("contentEncoding"):a.contentEncoding;return typeof c=="string"&&c!==""||typeof p=="string"&&p!==""})(r),{isFileUploadIntended:s}=QS({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=s,this.fn.isFileUploadIntendedOAS31=n,e.jsonSchema202012){const{hasSchemaType:i}=QS({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=i}},nEe=({fn:t})=>{const e=t.createSystemSelector||K3,r=t.createOnlyOAS31Selector||H3;return{afterLoad:rEe,fn:{isOAS31:P4,createSystemSelector:K3,createOnlyOAS31Selector:H3},components:{Webhooks:H0e,JsonSchemaDialect:X0e,MutualTLSAuth:nbe,OAS31Info:Y0e,OAS31License:K0e,OAS31Contact:G0e,OAS31VersionPragmaFilter:Z0e,OAS31Model:tbe,OAS31Models:rbe,OAS31Auths:ibe,JSONSchema202012KeywordExample:zbe,JSONSchema202012KeywordXml:Wbe,JSONSchema202012KeywordDiscriminator:Hbe,JSONSchema202012KeywordExternalDocs:Gbe,OpenAPI31Extensions:Kbe},wrapComponents:{InfoContainer:ube,License:abe,Contact:obe,VersionPragmaFilter:pbe,Model:cbe,Models:fbe,AuthItem:hbe,auths:mbe,JSONSchema202012KeywordDescription:Xbe,JSONSchema202012KeywordExamples:Qbe,JSONSchema202012KeywordProperties:tEe},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:Ube}},spec:{selectors:{isOAS31:e(gbe),license:bbe,selectLicenseNameField:Ebe,selectLicenseUrlField:Sbe,selectLicenseIdentifierField:r(wbe),selectLicenseUrl:e(_be),contact:xbe,selectContactNameField:Abe,selectContactEmailField:Obe,selectContactUrlField:Cbe,selectContactUrl:e(Rbe),selectInfoTitleField:Tbe,selectInfoSummaryField:r(Ibe),selectInfoDescriptionField:kbe,selectInfoTermsOfServiceField:Pbe,selectInfoTermsOfServiceUrl:e(jbe),selectExternalDocsDescriptionField:Nbe,selectExternalDocsUrlField:Mbe,selectExternalDocsUrl:e(Dbe),webhooks:r(ybe),selectWebhooksOperations:r(e(vbe)),selectJsonSchemaDialectField:Fbe,selectJsonSchemaDialectDefault:qbe,selectSchemas:e(Bbe)},wrapSelectors:{isOAS3:$be,selectLicenseUrl:Lbe}},oas31:{selectors:{selectLicenseUrl:r(e(Vbe))}}}}};const sEe=on.default.object,iEe=on.default.bool,ia=(on.default.oneOfType([sEe,iEe]),(0,f.createContext)(null));ia.displayName="JSONSchemaContext";const zn=(0,f.createContext)(0);zn.displayName="JSONSchemaLevelContext";const x_=(0,f.createContext)(new Set),dn=(0,f.createContext)([]);class Gn{static Collapsed="collapsed";static Expanded="expanded";static DeeplyExpanded="deeply-expanded"}const a2=()=>{const{config:t}=(0,f.useContext)(ia);return t},Fe=t=>{const{components:e}=(0,f.useContext)(ia);return e[t]||null},Wt=(t=void 0)=>{const{fn:e}=(0,f.useContext)(ia);return t!==void 0?e[t]:e},M4=()=>{const[,t]=(0,f.useState)(null),{state:e}=(0,f.useContext)(ia);return{state:e,setState:r=>{r(e),t({})}}},Bn=()=>{const t=(0,f.useContext)(zn);return[t,t+1]},en=t=>{const e=(0,f.useContext)(dn),{setState:r}=M4(),n=typeof t=="string"?[...e,t]:e;return{path:n,pathMutator:(s,i={deep:!1})=>{const a=n.toString(),o=l=>{l.paths[a]=s,s===Gn.Collapsed&&Object.keys(l.paths).forEach((c=>{c.startsWith(a)&&l.paths[c]===Gn.DeeplyExpanded&&(l.paths[c]=Gn.Expanded)}))},u=l=>{Object.keys(l.paths).forEach((c=>{c.startsWith(a)&&(l.paths[c]=s)}))};i.deep?r(u):r(o)}}},fs=t=>{const[e]=Bn(),{defaultExpandedLevels:r}=a2(),{path:n,pathMutator:s}=en(t),{path:i}=en(),{state:a}=M4(),o=a.paths[n.toString()],u=a.paths[i.toString()]??a.paths[i.slice(0,-1).toString()],l=o??(r-e>0?Gn.Expanded:Gn.Collapsed),c=l!==Gn.Collapsed;return(0,f.useEffect)((()=>{s(u===Gn.DeeplyExpanded?Gn.DeeplyExpanded:l)}),[u]),{isExpanded:c,setExpanded:(0,f.useCallback)(((p={deep:!1})=>{s(p.deep?Gn.DeeplyExpanded:Gn.Expanded)}),[]),setCollapsed:(0,f.useCallback)(((p={deep:!1})=>{s(Gn.Collapsed,p)}),[])}},G3=(t=void 0)=>{if(t===void 0)return(0,f.useContext)(x_);const e=(0,f.useContext)(x_);return new Set([...e,t])},aEe=(0,f.forwardRef)((({schema:t,name:e="",dependentRequired:r=[],onExpand:n=()=>{},identifier:s=""},i)=>{const a=Wt(),o=s||t?.$id||e,{path:u}=en(o),{isExpanded:l,setExpanded:c,setCollapsed:p}=fs(o),[h,d]=Bn(),g=(()=>{const[q]=Bn();return q>0})(),y=a.isExpandable(t)||r.length>0,v=(q=>G3().has(q))(t),E=G3(t),b=a.stringifyConstraints(t),_=Fe("Accordion"),w=Fe("Keyword$schema"),S=Fe("Keyword$vocabulary"),A=Fe("Keyword$id"),T=Fe("Keyword$anchor"),k=Fe("Keyword$dynamicAnchor"),P=Fe("Keyword$ref"),F=Fe("Keyword$dynamicRef"),R=Fe("Keyword$defs"),$=Fe("Keyword$comment"),M=Fe("KeywordAllOf"),K=Fe("KeywordAnyOf"),ee=Fe("KeywordOneOf"),G=Fe("KeywordNot"),Z=Fe("KeywordIf"),X=Fe("KeywordThen"),te=Fe("KeywordElse"),le=Fe("KeywordDependentSchemas"),se=Fe("KeywordPrefixItems"),ue=Fe("KeywordItems"),ve=Fe("KeywordContains"),he=Fe("KeywordProperties"),re=Fe("KeywordPatternProperties"),W=Fe("KeywordAdditionalProperties"),V=Fe("KeywordPropertyNames"),ge=Fe("KeywordUnevaluatedItems"),me=Fe("KeywordUnevaluatedProperties"),Me=Fe("KeywordType"),$e=Fe("KeywordEnum"),Ie=Fe("KeywordConst"),ke=Fe("KeywordConstraint"),Le=Fe("KeywordDependentRequired"),ye=Fe("KeywordContentSchema"),Se=Fe("KeywordTitle"),we=Fe("KeywordDescription"),L=Fe("KeywordDefault"),C=Fe("KeywordDeprecated"),j=Fe("KeywordReadOnly"),U=Fe("KeywordWriteOnly"),Y=Fe("KeywordExamples"),ne=Fe("ExtensionKeywords"),fe=Fe("ExpandDeepButton"),Ne=(0,f.useCallback)(((q,O)=>{O?c():p(),n(q,O,!1)}),[n,c,p]),Ge=(0,f.useCallback)(((q,O)=>{O?c({deep:!0}):p({deep:!0}),n(q,O,!0)}),[n,c,p]);return f.default.createElement(dn.Provider,{value:u},f.default.createElement(zn.Provider,{value:d},f.default.createElement(x_.Provider,{value:E},f.default.createElement("article",{ref:i,"data-json-schema-level":h,className:(0,It.default)("json-schema-2020-12",{"json-schema-2020-12--embedded":g,"json-schema-2020-12--circular":v})},f.default.createElement("div",{className:"json-schema-2020-12-head"},y&&!v?f.default.createElement(f.default.Fragment,null,f.default.createElement(_,{expanded:l,onChange:Ne},f.default.createElement(Se,{title:e,schema:t})),f.default.createElement(fe,{expanded:l,onClick:Ge})):f.default.createElement(Se,{title:e,schema:t}),f.default.createElement(C,{schema:t}),f.default.createElement(j,{schema:t}),f.default.createElement(U,{schema:t}),f.default.createElement(Me,{schema:t,isCircular:v}),b.length>0&&b.map((q=>f.default.createElement(ke,{key:`${q.scope}-${q.value}`,constraint:q})))),f.default.createElement("div",{className:(0,It.default)("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!l})},l&&f.default.createElement(f.default.Fragment,null,f.default.createElement(we,{schema:t}),!v&&y&&f.default.createElement(f.default.Fragment,null,f.default.createElement(he,{schema:t}),f.default.createElement(re,{schema:t}),f.default.createElement(W,{schema:t}),f.default.createElement(me,{schema:t}),f.default.createElement(V,{schema:t}),f.default.createElement(M,{schema:t}),f.default.createElement(K,{schema:t}),f.default.createElement(ee,{schema:t}),f.default.createElement(G,{schema:t}),f.default.createElement(Z,{schema:t}),f.default.createElement(X,{schema:t}),f.default.createElement(te,{schema:t}),f.default.createElement(le,{schema:t}),f.default.createElement(se,{schema:t}),f.default.createElement(ue,{schema:t}),f.default.createElement(ge,{schema:t}),f.default.createElement(ve,{schema:t}),f.default.createElement(ye,{schema:t})),f.default.createElement($e,{schema:t}),f.default.createElement(Ie,{schema:t}),f.default.createElement(Le,{schema:t,dependentRequired:r}),f.default.createElement(L,{schema:t}),f.default.createElement(Y,{schema:t}),f.default.createElement(w,{schema:t}),f.default.createElement(S,{schema:t}),f.default.createElement(A,{schema:t}),f.default.createElement(T,{schema:t}),f.default.createElement(k,{schema:t}),f.default.createElement(P,{schema:t}),!v&&y&&f.default.createElement(R,{schema:t}),f.default.createElement(F,{schema:t}),f.default.createElement($,{schema:t}),f.default.createElement(ne,{schema:t})))))))}));var D4=aEe,F4=({schema:t})=>t?.$schema?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$schema)):null,q4=({schema:t})=>{const e="$vocabulary",{path:r}=en(e),{isExpanded:n,setExpanded:s,setCollapsed:i}=fs(e),a=Fe("Accordion"),o=(0,f.useCallback)((()=>{n?i():s()}),[n,s,i]);return t?.$vocabulary?typeof t.$vocabulary!="object"?null:f.default.createElement(dn.Provider,{value:r},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},f.default.createElement(a,{expanded:n,onChange:o},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",null,n&&Object.entries(t.$vocabulary).map((([u,l])=>f.default.createElement("li",{key:u,className:(0,It.default)("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!l})},f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u))))))):null},B4=({schema:t})=>t?.$id?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$id)):null,$4=({schema:t})=>t?.$anchor?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$anchor)):null,L4=({schema:t})=>t?.$dynamicAnchor?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicAnchor)):null,U4=({schema:t})=>t?.$ref?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$ref)):null,V4=({schema:t})=>t?.$dynamicRef?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicRef)):null,z4=({schema:t})=>{const e=t?.$defs||{},r="$defs",{path:n}=en(r),{isExpanded:s,setExpanded:i,setCollapsed:a}=fs(r),[o,u]=Bn(),l=Fe("Accordion"),c=Fe("ExpandDeepButton"),p=Fe("JSONSchema"),h=(0,f.useCallback)((()=>{s?a():i()}),[s,i,a]),d=(0,f.useCallback)(((g,y)=>{y?i({deep:!0}):a({deep:!0})}),[i,a]);return Object.keys(e).length===0?null:f.default.createElement(dn.Provider,{value:n},f.default.createElement(zn.Provider,{value:u},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":o},f.default.createElement(l,{expanded:s,onChange:h},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),f.default.createElement(c,{expanded:s,onClick:d}),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.default.createElement(f.default.Fragment,null,Object.entries(e).map((([g,y])=>f.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},f.default.createElement(p,{name:g,schema:y})))))))))},W4=({schema:t})=>t?.$comment?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$comment)):null,J4=({schema:t})=>{const e=t?.allOf||[],r=Wt(),n="allOf",{path:s}=en(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=fs(n),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,f.useCallback)((()=>{i?o():a()}),[i,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(e)&&e.length!==0?f.default.createElement(dn.Provider,{value:s},f.default.createElement(zn.Provider,{value:l},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":u},f.default.createElement(c,{expanded:i,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),f.default.createElement(p,{expanded:i,onClick:y}),f.default.createElement(d,{schema:{allOf:e}}),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&f.default.createElement(f.default.Fragment,null,e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v}))))))))):null},H4=({schema:t})=>{const e=t?.anyOf||[],r=Wt(),n="anyOf",{path:s}=en(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=fs(n),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,f.useCallback)((()=>{i?o():a()}),[i,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(e)&&e.length!==0?f.default.createElement(dn.Provider,{value:s},f.default.createElement(zn.Provider,{value:l},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":u},f.default.createElement(c,{expanded:i,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),f.default.createElement(p,{expanded:i,onClick:y}),f.default.createElement(d,{schema:{anyOf:e}}),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&f.default.createElement(f.default.Fragment,null,e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v}))))))))):null},K4=({schema:t})=>{const e=t?.oneOf||[],r=Wt(),n="oneOf",{path:s}=en(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=fs(n),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,f.useCallback)((()=>{i?o():a()}),[i,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(e)&&e.length!==0?f.default.createElement(dn.Provider,{value:s},f.default.createElement(zn.Provider,{value:l},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":u},f.default.createElement(c,{expanded:i,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),f.default.createElement(p,{expanded:i,onClick:y}),f.default.createElement(d,{schema:{oneOf:e}}),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&f.default.createElement(f.default.Fragment,null,e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v}))))))))):null},G4=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"not"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},f.default.createElement(r,{name:n,schema:t.not,identifier:"not"}))},Y4=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"if"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},f.default.createElement(r,{name:n,schema:t.if,identifier:"if"}))},X4=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"then"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},f.default.createElement(r,{name:n,schema:t.then,identifier:"then"}))},Z4=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"else"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},f.default.createElement(r,{name:n,schema:t.else,identifier:"else"}))},Q4=({schema:t})=>{const e=t?.dependentSchemas||[],r="dependentSchemas",{path:n}=en(r),{isExpanded:s,setExpanded:i,setCollapsed:a}=fs(r),[o,u]=Bn(),l=Fe("Accordion"),c=Fe("ExpandDeepButton"),p=Fe("JSONSchema"),h=(0,f.useCallback)((()=>{s?a():i()}),[s,i,a]),d=(0,f.useCallback)(((g,y)=>{y?i({deep:!0}):a({deep:!0})}),[i,a]);return typeof e!="object"||Object.keys(e).length===0?null:f.default.createElement(dn.Provider,{value:n},f.default.createElement(zn.Provider,{value:u},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":o},f.default.createElement(l,{expanded:s,onChange:h},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),f.default.createElement(c,{expanded:s,onClick:d}),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.default.createElement(f.default.Fragment,null,Object.entries(e).map((([g,y])=>f.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},f.default.createElement(p,{name:g,schema:y})))))))))},eU=({schema:t})=>{const e=t?.prefixItems||[],r=Wt(),n="prefixItems",{path:s}=en(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=fs(n),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,f.useCallback)((()=>{i?o():a()}),[i,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(e)&&e.length!==0?f.default.createElement(dn.Provider,{value:s},f.default.createElement(zn.Provider,{value:l},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":u},f.default.createElement(c,{expanded:i,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),f.default.createElement(p,{expanded:i,onClick:y}),f.default.createElement(d,{schema:{prefixItems:e}}),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&f.default.createElement(f.default.Fragment,null,e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v}))))))))):null},tU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"items"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},f.default.createElement(r,{name:n,schema:t.items,identifier:"items"}))},rU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"contains"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},f.default.createElement(r,{name:n,schema:t.contains,identifier:"contains"}))},nU=({schema:t})=>{const e=Wt(),r=t?.properties||{},n=Array.isArray(t?.required)?t.required:[],s=Fe("JSONSchema"),{path:i}=en("properties");return Object.keys(r).length===0?null:f.default.createElement(dn.Provider,{value:i},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},f.default.createElement("ul",null,Object.entries(r).map((([a,o])=>{const u=n.includes(a),l=e.getDependentRequired(a,t);return f.default.createElement("li",{key:a,className:(0,It.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":u})},f.default.createElement(s,{name:a,schema:o,dependentRequired:l}))})))))},sU=({schema:t})=>{const e=t?.patternProperties||{},r=Fe("JSONSchema"),{path:n}=en("patternProperties");return Object.keys(e).length===0?null:f.default.createElement(dn.Provider,{value:n},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},f.default.createElement("ul",null,Object.entries(e).map((([s,i])=>f.default.createElement("li",{key:s,className:"json-schema-2020-12-property"},f.default.createElement(r,{name:s,schema:i})))))))},iU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"additionalProperties"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},t.additionalProperties===!0?f.default.createElement(f.default.Fragment,null,n,f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):t.additionalProperties===!1?f.default.createElement(f.default.Fragment,null,n,f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):f.default.createElement(r,{name:n,schema:t.additionalProperties,identifier:"additionalProperties"}))},aU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema"),n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return e.hasKeyword(t,"propertyNames")?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},f.default.createElement(r,{name:n,schema:t.propertyNames,identifier:"propertyNames"})):null},oU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"unevaluatedItems"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},f.default.createElement(r,{name:n,schema:t.unevaluatedItems,identifier:"unevaluatedItems"}))},uU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"unevaluatedProperties"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},f.default.createElement(r,{name:n,schema:t.unevaluatedProperties,identifier:"unevaluatedProperties"}))},lU=({schema:t,isCircular:e=!1})=>{const r=Wt().getType(t),n=e?" [circular]":"";return f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},cU=({schema:t})=>{const e=Fe("JSONViewer");return Array.isArray(t?.enum)?f.default.createElement(e,{name:"Enum",value:t.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},fU=({schema:t})=>{const e=Wt(),r=Fe("JSONViewer");return e.hasKeyword(t,"const")?f.default.createElement(r,{name:"Const",value:t.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null};const pU=t=>typeof t=="string"?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:t,dU=t=>(e,{lookup:r="extended"}={})=>{const n=t();if(e?.title!=null)return n.upperFirst(String(e.title));if(r==="extended"){if(e?.$anchor!=null)return n.upperFirst(String(e.$anchor));if(e?.$id!=null)return String(e.$id)}return""},hU=t=>{const e=(r,n=new WeakSet)=>{const s=t();if(r==null)return"any";if(s.isBooleanJSONSchema(r))return r?"any":"never";if(typeof r!="object"||n.has(r))return"any";n.add(r);const{type:i,prefixItems:a,items:o}=r,u=()=>{if(Array.isArray(a)){const p=a.map((d=>e(d,n))),h=o?e(o,n):"any";return`array<[${p.join(", ")}], ${h}>`}return o?`array<${e(o,n)}>`:"array<any>"};if(r.not&&e(r.not)==="any")return"never";const l=(p,h)=>Array.isArray(r[p])?`(${r[p].map((d=>e(d,n))).join(h)})`:null,c=[Array.isArray(i)?i.map((p=>p==="array"?u():p)).join(" | "):i==="array"?u():["null","boolean","object","array","number","integer","string"].includes(i)?i:(()=>{if(Object.hasOwn(r,"prefixItems")||Object.hasOwn(r,"items")||Object.hasOwn(r,"contains"))return u();if(Object.hasOwn(r,"properties")||Object.hasOwn(r,"additionalProperties")||Object.hasOwn(r,"patternProperties"))return"object";if(["int32","int64"].includes(r.format))return"integer";if(["float","double"].includes(r.format))return"number";if(Object.hasOwn(r,"minimum")||Object.hasOwn(r,"maximum")||Object.hasOwn(r,"exclusiveMinimum")||Object.hasOwn(r,"exclusiveMaximum")||Object.hasOwn(r,"multipleOf"))return"number | integer";if(Object.hasOwn(r,"pattern")||Object.hasOwn(r,"format")||Object.hasOwn(r,"minLength")||Object.hasOwn(r,"maxLength")||Object.hasOwn(r,"contentEncoding")||Object.hasOwn(r,"contentMediaType"))return"string";if(r.const!==void 0){if(r.const===null)return"null";if(typeof r.const=="boolean")return"boolean";if(typeof r.const=="number")return Number.isInteger(r.const)?"integer":"number";if(typeof r.const=="string")return"string";if(Array.isArray(r.const))return"array<any>";if(typeof r.const=="object")return"object"}return null})(),l("oneOf"," | "),l("anyOf"," | "),l("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),c||"any"};return e},mU=t=>typeof t=="boolean",gU=(t,e)=>t!==null&&typeof t=="object"&&Object.hasOwn(t,e),yU=t=>e=>{const r=t();return e?.$schema||e?.$vocabulary||e?.$id||e?.$anchor||e?.$dynamicAnchor||e?.$ref||e?.$dynamicRef||e?.$defs||e?.$comment||e?.allOf||e?.anyOf||e?.oneOf||r.hasKeyword(e,"not")||r.hasKeyword(e,"if")||r.hasKeyword(e,"then")||r.hasKeyword(e,"else")||e?.dependentSchemas||e?.prefixItems||r.hasKeyword(e,"items")||r.hasKeyword(e,"contains")||e?.properties||e?.patternProperties||r.hasKeyword(e,"additionalProperties")||r.hasKeyword(e,"propertyNames")||r.hasKeyword(e,"unevaluatedItems")||r.hasKeyword(e,"unevaluatedProperties")||e?.description||e?.enum||r.hasKeyword(e,"const")||r.hasKeyword(e,"contentSchema")||r.hasKeyword(e,"default")||e?.examples||r.getExtensionKeywords(e).length>0},vU=t=>t===null||["number","bigint","boolean"].includes(typeof t)?String(t):Array.isArray(t)?`[${t.map(vU).join(", ")}]`:JSON.stringify(t),yc=(t,e,r)=>{const n=typeof e=="number",s=typeof r=="number";return n&&s?e===r?`${e} ${t}`:`[${e}, ${r}] ${t}`:n?`≥ ${e} ${t}`:s?`≤ ${r} ${t}`:null},oEe=t=>{const e=[],r=(u=>{if(typeof u?.multipleOf!="number"||u.multipleOf<=0||u.multipleOf===1)return null;const{multipleOf:l}=u;if(Number.isInteger(l))return`multiple of ${l}`;const c=10**l.toString().split(".")[1].length;return`multiple of ${l*c}/${c}`})(t);r!==null&&e.push({scope:"number",value:r});const n=(u=>{const l=u?.minimum,c=u?.maximum,p=u?.exclusiveMinimum,h=u?.exclusiveMaximum,d=typeof l=="number",g=typeof c=="number",y=typeof p=="number",v=typeof h=="number",E=y&&(!d||l<p),b=v&&(!g||c>h);return(d||y)&&(g||v)?`${E?"(":"["}${E?p:l}, ${b?h:c}${b?")":"]"}`:d||y?`${E?">":"≥"} ${E?p:l}`:g||v?`${b?"<":"≤"} ${b?h:c}`:null})(t);n!==null&&e.push({scope:"number",value:n}),t?.format&&e.push({scope:"string",value:t.format});const s=yc("characters",t?.minLength,t?.maxLength);s!==null&&e.push({scope:"string",value:s}),t?.pattern&&e.push({scope:"string",value:`matches ${t?.pattern}`}),t?.contentMediaType&&e.push({scope:"string",value:`media type: ${t.contentMediaType}`}),t?.contentEncoding&&e.push({scope:"string",value:`encoding: ${t.contentEncoding}`});const i=yc(t?.uniqueItems?"unique items":"items",t?.minItems,t?.maxItems);i!==null&&e.push({scope:"array",value:i}),t?.uniqueItems&&!i&&e.push({scope:"array",value:"unique"});const a=yc("contained items",t?.minContains,t?.maxContains);a!==null&&e.push({scope:"array",value:a});const o=yc("properties",t?.minProperties,t?.maxProperties);return o!==null&&e.push({scope:"object",value:o}),e},uEe=(t,e)=>e?.dependentRequired?Array.from(Object.entries(e.dependentRequired).reduce(((r,[n,s])=>(Array.isArray(s)&&s.includes(t)&&r.add(n),r)),new Set)):[],zp=t=>typeof t=="object"&&t!==null&&!Array.isArray(t)&&(Object.getPrototypeOf(t)===null||Object.getPrototypeOf(t)===Object.prototype),bU=()=>["$schema","$vocabulary","$id","$anchor","$dynamicAnchor","$dynamicRef","$ref","$defs","$comment","allOf","anyOf","oneOf","not","if","then","else","dependentSchemas","prefixItems","items","contains","properties","patternProperties","additionalProperties","propertyNames","unevaluatedItems","unevaluatedProperties","type","enum","const","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","maxContains","minContains","maxProperties","minProperties","required","dependentRequired","title","description","default","deprecated","readOnly","writeOnly","examples","format","contentEncoding","contentMediaType","contentSchema"],EU=t=>e=>{const r=t().getSchemaKeywords();return zp(e)?((n,s)=>{const i=new Set(s);return n.filter((a=>!i.has(a)))})(Object.keys(e),r):[]},lEe=(t,e)=>{const r=z.Map.isMap(t);if(!r&&!zp(t))return!1;const n=i=>e===i||Array.isArray(e)&&e.includes(i),s=r?t.get("type"):t.type;return z.List.isList(s)||Array.isArray(s)?s.some((i=>n(i))):n(s)},cEe=({constraint:t})=>zp(t)&&typeof t.scope=="string"&&typeof t.value=="string"?f.default.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`},t.value):null;var SU=f.default.memo(cEe),_U=({dependentRequired:t})=>Array.isArray(t)&&t.length!==0?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),f.default.createElement("ul",null,t.map((e=>f.default.createElement("li",{key:e},f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},e)))))):null,wU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"contentSchema"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},f.default.createElement(r,{name:n,schema:t.contentSchema,identifier:"contentSchema"}))},xU=({title:t="",schema:e})=>{const r=Wt(),n=t||r.getTitle(e);return n?f.default.createElement("div",{className:"json-schema-2020-12__title"},n):null},AU=({schema:t})=>t?.description?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},f.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},t.description)):null,OU=({schema:t})=>{const e=Wt(),r=Fe("JSONViewer");return e.hasKeyword(t,"default")?f.default.createElement(r,{name:"Default",value:t.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},CU=({schema:t})=>t?.deprecated!==!0?null:f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),RU=({schema:t})=>t?.readOnly!==!0?null:f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),TU=({schema:t})=>t?.writeOnly!==!0?null:f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),IU=({schema:t})=>{const e=t?.examples||[],r=Fe("JSONViewer");return Array.isArray(e)&&e.length!==0?f.default.createElement(r,{name:"Examples",value:t.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},kU=({schema:t})=>{const e=Wt(),r="ExtensionKeywords",{path:n}=en(r),{isExpanded:s,setExpanded:i,setCollapsed:a}=fs(r),[o,u]=Bn(),l=Fe("Accordion"),c=Fe("ExpandDeepButton"),p=Fe("JSONViewer"),{showExtensionKeywords:h}=a2(),d=e.getExtensionKeywords(t),g=(0,f.useCallback)((()=>{s?a():i()}),[s,i,a]),y=(0,f.useCallback)(((v,E)=>{E?i({deep:!0}):a({deep:!0})}),[i,a]);return h&&d.length!==0?f.default.createElement(dn.Provider,{value:n},f.default.createElement(zn.Provider,{value:u},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":o},f.default.createElement(l,{expanded:s,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),f.default.createElement(c,{expanded:s,onClick:y}),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.default.createElement(f.default.Fragment,null,d.map((v=>f.default.createElement(p,{key:v,name:v,value:t[v],className:"json-schema-2020-12-json-viewer-extension-keyword"})))))))):null};const A_=({name:t,value:e,className:r})=>{const n=Wt(),{path:s}=en(t),{isExpanded:i,setExpanded:a,setCollapsed:o}=fs(t),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=typeof e=="string"||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"||typeof e=="symbol"||e==null,d=(v=>zp(v)&&Object.keys(v).length===0)(e)||(v=>Array.isArray(v)&&v.length===0)(e),g=(0,f.useCallback)((()=>{i?o():a()}),[i,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return h?f.default.createElement("div",{className:(0,It.default)("json-schema-2020-12-json-viewer",r)},f.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),f.default.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(e))):d?f.default.createElement("div",{className:(0,It.default)("json-schema-2020-12-json-viewer",r)},f.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"empty array":"empty object")):f.default.createElement(dn.Provider,{value:s},f.default.createElement(zn.Provider,{value:l},f.default.createElement("div",{className:(0,It.default)("json-schema-2020-12-json-viewer",r),"data-json-schema-level":u},f.default.createElement(c,{expanded:i,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t)),f.default.createElement(p,{expanded:i,onClick:y}),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"array":"object"),f.default.createElement("ul",{className:(0,It.default)("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!i})},i&&f.default.createElement(f.default.Fragment,null,Array.isArray(e)?e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(A_,{name:`#${E}`,value:v,className:r})))):Object.entries(e).map((([v,E])=>f.default.createElement("li",{key:v,className:"json-schema-2020-12-property"},f.default.createElement(A_,{name:v,value:E,className:r})))))))))};var PU=A_,jU=({expanded:t=!1,children:e,onChange:r})=>{const n=Fe("ChevronRightIcon"),s=(0,f.useCallback)((i=>{r(i,!t)}),[t,r]);return f.default.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:s},f.default.createElement("div",{className:"json-schema-2020-12-accordion__children"},e),f.default.createElement("span",{className:(0,It.default)("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":t,"json-schema-2020-12-accordion__icon--collapsed":!t})},f.default.createElement(n,null)))},NU=({expanded:t,onClick:e})=>{const r=(0,f.useCallback)((n=>{e(n,!t)}),[t,e]);return f.default.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},t?"Collapse all":"Expand all")},MU=()=>f.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},f.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));const DU=(t,e={})=>{const r={components:{JSONSchema:D4,Keyword$schema:F4,Keyword$vocabulary:q4,Keyword$id:B4,Keyword$anchor:$4,Keyword$dynamicAnchor:L4,Keyword$ref:U4,Keyword$dynamicRef:V4,Keyword$defs:z4,Keyword$comment:W4,KeywordAllOf:J4,KeywordAnyOf:H4,KeywordOneOf:K4,KeywordNot:G4,KeywordIf:Y4,KeywordThen:X4,KeywordElse:Z4,KeywordDependentSchemas:Q4,KeywordPrefixItems:eU,KeywordItems:tU,KeywordContains:rU,KeywordProperties:nU,KeywordPatternProperties:sU,KeywordAdditionalProperties:iU,KeywordPropertyNames:aU,KeywordUnevaluatedItems:oU,KeywordUnevaluatedProperties:uU,KeywordType:lU,KeywordEnum:cU,KeywordConst:fU,KeywordConstraint:SU,KeywordDependentRequired:_U,KeywordContentSchema:wU,KeywordTitle:xU,KeywordDescription:AU,KeywordDefault:OU,KeywordDeprecated:CU,KeywordReadOnly:RU,KeywordWriteOnly:TU,KeywordExamples:IU,ExtensionKeywords:kU,JSONViewer:PU,Accordion:jU,ExpandDeepButton:NU,ChevronRightIcon:MU,...e.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...e.config},fn:{upperFirst:pU,getTitle:dU(Wt),getType:hU(Wt),isBooleanJSONSchema:mU,hasKeyword:gU,isExpandable:yU(Wt),stringify:vU,stringifyConstraints:oEe,getDependentRequired:uEe,getSchemaKeywords:bU,getExtensionKeywords:EU(Wt),...e.fn},state:{paths:{}}},n=s=>f.default.createElement(ia.Provider,{value:r},f.default.createElement(t,s));return n.contexts={JSONSchemaContext:ia},n.displayName=t.displayName,n},fEe=({getSystem:t})=>(e,r={})=>{const{getComponent:n,getConfigs:s}=t(),i=s(),a=n("JSONSchema202012"),o=n("JSONSchema202012Keyword$schema"),u=n("JSONSchema202012Keyword$vocabulary"),l=n("JSONSchema202012Keyword$id"),c=n("JSONSchema202012Keyword$anchor"),p=n("JSONSchema202012Keyword$dynamicAnchor"),h=n("JSONSchema202012Keyword$ref"),d=n("JSONSchema202012Keyword$dynamicRef"),g=n("JSONSchema202012Keyword$defs"),y=n("JSONSchema202012Keyword$comment"),v=n("JSONSchema202012KeywordAllOf"),E=n("JSONSchema202012KeywordAnyOf"),b=n("JSONSchema202012KeywordOneOf"),_=n("JSONSchema202012KeywordNot"),w=n("JSONSchema202012KeywordIf"),S=n("JSONSchema202012KeywordThen"),A=n("JSONSchema202012KeywordElse"),T=n("JSONSchema202012KeywordDependentSchemas"),k=n("JSONSchema202012KeywordPrefixItems"),P=n("JSONSchema202012KeywordItems"),F=n("JSONSchema202012KeywordContains"),R=n("JSONSchema202012KeywordProperties"),$=n("JSONSchema202012KeywordPatternProperties"),M=n("JSONSchema202012KeywordAdditionalProperties"),K=n("JSONSchema202012KeywordPropertyNames"),ee=n("JSONSchema202012KeywordUnevaluatedItems"),G=n("JSONSchema202012KeywordUnevaluatedProperties"),Z=n("JSONSchema202012KeywordType"),X=n("JSONSchema202012KeywordEnum"),te=n("JSONSchema202012KeywordConst"),le=n("JSONSchema202012KeywordConstraint"),se=n("JSONSchema202012KeywordDependentRequired"),ue=n("JSONSchema202012KeywordContentSchema"),ve=n("JSONSchema202012KeywordTitle"),he=n("JSONSchema202012KeywordDescription"),re=n("JSONSchema202012KeywordDefault"),W=n("JSONSchema202012KeywordDeprecated"),V=n("JSONSchema202012KeywordReadOnly"),ge=n("JSONSchema202012KeywordWriteOnly"),me=n("JSONSchema202012KeywordExamples"),Me=n("JSONSchema202012ExtensionKeywords"),$e=n("JSONSchema202012JSONViewer"),Ie=n("JSONSchema202012Accordion"),ke=n("JSONSchema202012ExpandDeepButton"),Le=n("JSONSchema202012ChevronRightIcon");return DU(e,{components:{JSONSchema:a,Keyword$schema:o,Keyword$vocabulary:u,Keyword$id:l,Keyword$anchor:c,Keyword$dynamicAnchor:p,Keyword$ref:h,Keyword$dynamicRef:d,Keyword$defs:g,Keyword$comment:y,KeywordAllOf:v,KeywordAnyOf:E,KeywordOneOf:b,KeywordNot:_,KeywordIf:w,KeywordThen:S,KeywordElse:A,KeywordDependentSchemas:T,KeywordPrefixItems:k,KeywordItems:P,KeywordContains:F,KeywordProperties:R,KeywordPatternProperties:$,KeywordAdditionalProperties:M,KeywordPropertyNames:K,KeywordUnevaluatedItems:ee,KeywordUnevaluatedProperties:G,KeywordType:Z,KeywordEnum:X,KeywordConst:te,KeywordConstraint:le,KeywordDependentRequired:se,KeywordContentSchema:ue,KeywordTitle:ve,KeywordDescription:he,KeywordDefault:re,KeywordDeprecated:W,KeywordReadOnly:V,KeywordWriteOnly:ge,KeywordExamples:me,ExtensionKeywords:Me,JSONViewer:$e,Accordion:Ie,ExpandDeepButton:ke,ChevronRightIcon:Le,...r.components},config:{showExtensionKeywords:i.showExtensions,...r.config},fn:{...r.fn}})};var FU=({getSystem:t,fn:e})=>{const r=()=>({upperFirst:e.upperFirst,...e.jsonSchema202012});return{components:{JSONSchema202012:D4,JSONSchema202012Keyword$schema:F4,JSONSchema202012Keyword$vocabulary:q4,JSONSchema202012Keyword$id:B4,JSONSchema202012Keyword$anchor:$4,JSONSchema202012Keyword$dynamicAnchor:L4,JSONSchema202012Keyword$ref:U4,JSONSchema202012Keyword$dynamicRef:V4,JSONSchema202012Keyword$defs:z4,JSONSchema202012Keyword$comment:W4,JSONSchema202012KeywordAllOf:J4,JSONSchema202012KeywordAnyOf:H4,JSONSchema202012KeywordOneOf:K4,JSONSchema202012KeywordNot:G4,JSONSchema202012KeywordIf:Y4,JSONSchema202012KeywordThen:X4,JSONSchema202012KeywordElse:Z4,JSONSchema202012KeywordDependentSchemas:Q4,JSONSchema202012KeywordPrefixItems:eU,JSONSchema202012KeywordItems:tU,JSONSchema202012KeywordContains:rU,JSONSchema202012KeywordProperties:nU,JSONSchema202012KeywordPatternProperties:sU,JSONSchema202012KeywordAdditionalProperties:iU,JSONSchema202012KeywordPropertyNames:aU,JSONSchema202012KeywordUnevaluatedItems:oU,JSONSchema202012KeywordUnevaluatedProperties:uU,JSONSchema202012KeywordType:lU,JSONSchema202012KeywordEnum:cU,JSONSchema202012KeywordConst:fU,JSONSchema202012KeywordConstraint:SU,JSONSchema202012KeywordDependentRequired:_U,JSONSchema202012KeywordContentSchema:wU,JSONSchema202012KeywordTitle:xU,JSONSchema202012KeywordDescription:AU,JSONSchema202012KeywordDefault:OU,JSONSchema202012KeywordDeprecated:CU,JSONSchema202012KeywordReadOnly:RU,JSONSchema202012KeywordWriteOnly:TU,JSONSchema202012KeywordExamples:IU,JSONSchema202012ExtensionKeywords:kU,JSONSchema202012JSONViewer:PU,JSONSchema202012Accordion:jU,JSONSchema202012ExpandDeepButton:NU,JSONSchema202012ChevronRightIcon:MU,withJSONSchema202012Context:DU,withJSONSchema202012SystemContext:fEe(t()),JSONSchema202012PathContext:()=>dn,JSONSchema202012LevelContext:()=>zn},fn:{upperFirst:pU,jsonSchema202012:{getTitle:dU(r),getType:hU(r),isExpandable:yU(r),isBooleanJSONSchema:mU,hasKeyword:gU,useFn:Wt,useConfig:a2,useComponent:Fe,useIsExpanded:fs,usePath:en,useLevel:Bn,getSchemaKeywords:bU,getExtensionKeywords:EU(r),hasSchemaType:lEe}}}},pEe=(t,{sample:e=[]}={})=>((r,n={})=>{const{minItems:s,maxItems:i,uniqueItems:a}=n,{contains:o,minContains:u,maxContains:l}=n;let c=[...r];if(o!=null&&typeof o=="object"&&Number.isInteger(u)&&u>1){const p=c.at(0);for(let h=1;h<u;h+=1)c.unshift(p)}if(Number.isInteger(i)&&i>0&&(c=r.slice(0,i)),Number.isInteger(s)&&s>0)for(let p=0;c.length<s;p+=1)c.push(c[p%c.length]);return a===!0&&(c=Array.from(new Set(c))),c})(e,t),dEe=()=>{throw new Error("Not implemented")};const Wp=t=>$a()(t),Nc=t=>t.at(0),Ki=t=>typeof t=="boolean",Xn=t=>(0,Zs.default)(t),zs=t=>Ki(t)||Xn(t);var Jp=class{data={};register(e,r){this.data[e]=r}unregister(e){e===void 0?this.data={}:delete this.data[e]}get(e){return this.data[e]}},qU=()=>0,BU=()=>0,hEe=()=>.1,mEe=()=>.1,gEe=()=>"user@example.com",yEe=()=>"실례@example.com",vEe=()=>"example.com",bEe=()=>"실례.com",EEe=()=>"198.51.100.42",SEe=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",_Ee=()=>"https://example.com/",wEe=()=>"path/index.html",xEe=()=>"https://실례.com/",AEe=()=>"path/실례.html",OEe=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",CEe=()=>"https://example.com/dictionary/{term:1}/{term}",REe=()=>"/a/b/c",TEe=()=>"1/0",IEe=()=>new Date().toISOString(),kEe=()=>new Date().toISOString().substring(0,10),PEe=()=>new Date().toISOString().substring(11),jEe=()=>"P3D",NEe=()=>"********",MEe=()=>"^[a-z]+$";const Mc=new class extends Jp{#e={int32:qU,int64:BU,float:hEe,double:mEe,email:gEe,"idn-email":yEe,hostname:vEe,"idn-hostname":bEe,ipv4:EEe,ipv6:SEe,uri:_Ee,"uri-reference":wEe,iri:xEe,"iri-reference":AEe,uuid:OEe,"uri-template":CEe,"json-pointer":REe,"relative-json-pointer":TEe,"date-time":IEe,date:kEe,time:PEe,duration:jEe,password:NEe,regex:MEe};data={...this.#e};get defaults(){return{...this.#e}}},$U=(t,e)=>typeof e=="function"?Mc.register(t,e):e===null?Mc.unregister(t):Mc.get(t);$U.getDefaults=()=>Mc.defaults;var Hp=$U,DEe=be(287).Buffer,FEe=t=>DEe.from(t).toString("ascii"),qEe=be(287).Buffer,BEe=t=>qEe.from(t).toString("utf8"),$Ee=be(287).Buffer,LEe=t=>$Ee.from(t).toString("binary"),UEe=t=>{let e="";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(n===61)e+="=3D";else if(n>=33&&n<=60||n>=62&&n<=126||n===9||n===32)e+=t.charAt(r);else if(n===13||n===10)e+=`\r
285
- `;else if(n>126){const s=unescape(encodeURIComponent(t.charAt(r)));for(let i=0;i<s.length;i++)e+="="+("0"+s.charCodeAt(i).toString(16)).slice(-2).toUpperCase()}else e+="="+("0"+n.toString(16)).slice(-2).toUpperCase()}return e},VEe=be(287).Buffer,zEe=t=>VEe.from(t).toString("hex"),WEe=be(287).Buffer,JEe=t=>{const e=WEe.from(t).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,s="",i=0,a=0;for(let o=0;o<e.length;o++)for(i=i<<8|e.charCodeAt(o),a+=8;a>=5;)s+=r.charAt(i>>>a-5&31),a-=5;a>0&&(s+=r.charAt(i<<5-a&31),n=(8-8*e.length%5)%5);for(let o=0;o<n;o++)s+="=";return s},HEe=be(287).Buffer,KEe=t=>HEe.from(t).toString("base64"),GEe=be(287).Buffer,YEe=t=>GEe.from(t).toString("base64url");const Dc=new class extends Jp{#e={"7bit":FEe,"8bit":BEe,binary:LEe,"quoted-printable":UEe,base16:zEe,base32:JEe,base64:KEe,base64url:YEe};data={...this.#e};get defaults(){return{...this.#e}}},LU=(t,e)=>typeof e=="function"?Dc.register(t,e):e===null?Dc.unregister(t):Dc.get(t);LU.getDefaults=()=>Dc.defaults;var UU=LU,XEe={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"<p>content</p>","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'<person age="30">John Doe</person>',"text/*":()=>"string"},ZEe={"image/*":()=>Wp(25).toString("binary")},QEe={"audio/*":()=>Wp(25).toString("binary")},eSe={"video/*":()=>Wp(25).toString("binary")},tSe={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"<?php echo '<p>Hello World!</p>'; ?>","application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"<p>content</p>","application/*":()=>Wp(25).toString("binary")};const ja=new class extends Jp{#e={...XEe,...ZEe,...QEe,...eSe,...tSe};data={...this.#e};get defaults(){return{...this.#e}}},VU=(t,e)=>{if(typeof e=="function")return ja.register(t,e);if(e===null)return ja.unregister(t);const r=t.split(";").at(0),n=`${r.split("/").at(0)}/*`;return ja.get(t)||ja.get(r)||ja.get(n)};VU.getDefaults=()=>ja.defaults;var zU=VU;const e1=(t,e={})=>{const{maxLength:r,minLength:n}=e;let s=t;if(Number.isInteger(r)&&r>0&&(s=s.slice(0,r)),Number.isInteger(n)&&n>0){let i=0;for(;s.length<n;)s+=s[i++%s.length]}return s};var rSe=(t,{sample:e}={})=>{const{contentEncoding:r,contentMediaType:n,contentSchema:s}=t,{pattern:i,format:a}=t,o=UU(r)||g4.default;let u;return u=typeof i=="string"?e1((l=>{try{const c=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),p=l.replace(c,"100"),h=new D8.default(p);return h.max=100,h.gen()}catch{return"string"}})(i),t):typeof a=="string"?(l=>{const{format:c}=l,p=Hp(c);return typeof p=="function"?p(l):"string"})(t):zs(s)&&typeof n=="string"&&e!==void 0?Array.isArray(e)||typeof e=="object"?JSON.stringify(e):e1(String(e),t):typeof n=="string"?(l=>{const{contentMediaType:c}=l,p=zU(c);return typeof p=="function"?p(l):"string"})(t):e1("string",t),o(u)};const WU=(t,e={})=>{const{minimum:r,maximum:n,exclusiveMinimum:s,exclusiveMaximum:i}=e,{multipleOf:a}=e,o=Number.isInteger(t)?1:Number.EPSILON;let u=typeof r=="number"?r:null,l=typeof n=="number"?n:null,c=t;if(typeof s=="number"&&(u=u!==null?Math.max(u,s+o):s+o),typeof i=="number"&&(l=l!==null?Math.min(l,i-o):i-o),c=u>l&&t||u||l||c,typeof a=="number"&&a>0){const p=c%a;c=p===0?c:c+a-p}return c};var nSe=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:s}=n,i=Hp(s);return typeof i=="function"?i(n):0})(t):0,WU(r,t)},sSe=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:s}=n,i=Hp(s);if(typeof i=="function")return i(n);switch(s){case"int32":return qU();case"int64":return BU()}return 0})(t):0,WU(r,t)},iSe=t=>typeof t.default!="boolean"||t.default,vc=new Proxy({array:pEe,object:dEe,string:rSe,number:nSe,integer:sSe,boolean:iSe,null:()=>null},{get:(t,e)=>typeof e=="string"&&Object.hasOwn(t,e)?t[e]:()=>`Unknown Type: ${e}`});const Y3=["array","object","number","integer","string","boolean","null"],Jo=t=>{if(!Xn(t))return!1;const{examples:e,example:r,default:n}=t;return!!(Array.isArray(e)&&e.length>=1)||n!==void 0||r!==void 0},O_=t=>{if(!Xn(t))return null;const{examples:e,example:r,default:n}=t;return Array.isArray(e)&&e.length>=1?e.at(0):n!==void 0?n:r!==void 0?r:void 0},cf={array:["items","prefixItems","contains","maxContains","minContains","maxItems","minItems","uniqueItems","unevaluatedItems"],object:["properties","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","required","dependentSchemas","dependentRequired","unevaluatedProperties"],string:["pattern","format","minLength","maxLength","contentEncoding","contentMediaType","contentSchema"],integer:["minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"]};cf.number=cf.integer;const t1="string",X3=t=>t===void 0?null:t===null?"null":Array.isArray(t)?"array":Number.isInteger(t)?"integer":typeof t,Fc=t=>{if(Array.isArray(t)&&t.length>=1){if(t.includes("array"))return"array";if(t.includes("object"))return"object";{const e=t.filter((n=>n!=="null")),r=Nc(e.length>0?e:t);if(Y3.includes(r))return r}}return Y3.includes(t)?t:null},C_=(t,e=new WeakSet)=>{if(!Xn(t)||e.has(t))return t1;e.add(t);let{type:r,const:n}=t;if(r=Fc(r),typeof r!="string"){const s=Object.keys(cf);e:for(let i=0;i<s.length;i+=1){const a=s[i],o=cf[a];for(let u=0;u<o.length;u+=1){const l=o[u];if(Object.hasOwn(t,l)){r=a;break e}}}}if(typeof r!="string"&&n!==void 0){const s=X3(n);r=typeof s=="string"?s:r}if(typeof r!="string"){const s=l=>{if(Array.isArray(t[l])){const c=t[l].map((p=>C_(p,e)));return Fc(c)}return null},i=s("allOf"),a=s("anyOf"),o=s("oneOf"),u=t.not?C_(t.not,e):null;(i||a||o||u)&&(r=Fc([i,a,o,u].filter(Boolean)))}if(typeof r!="string"&&Jo(t)){const s=O_(t),i=X3(s);r=typeof i=="string"?i:r}return e.delete(t),r||t1},Z3=t=>C_(t),r1=t=>Ki(t)?(e=>e===!1?{not:{}}:{})(t):Xn(t)?t:{},Ho=(t,e,r={})=>{if(Ki(t)&&t===!0)return!0;if(Ki(t)&&t===!1)return!1;if(Ki(e)&&e===!0)return!0;if(Ki(e)&&e===!1)return!1;if(!zs(t))return e;if(!zs(e))return t;const n={...e,...t};if(e.type&&t.type&&Array.isArray(e.type)&&typeof e.type=="string"){const s=va(e.type).concat(t.type);n.type=Array.from(new Set(s))}if(Array.isArray(e.required)&&Array.isArray(t.required)&&(n.required=[...new Set([...t.required,...e.required])]),e.properties&&t.properties){const s=new Set([...Object.keys(e.properties),...Object.keys(t.properties)]);n.properties={};for(const i of s){const a=e.properties[i]||{},o=t.properties[i]||{};a.readOnly&&!r.includeReadOnly||a.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter((u=>u!==i)):n.properties[i]=Ho(o,a,r)}}return zs(e.items)&&zs(t.items)&&(n.items=Ho(t.items,e.items,r)),zs(e.contains)&&zs(t.contains)&&(n.contains=Ho(t.contains,e.contains,r)),zs(e.contentSchema)&&zs(t.contentSchema)&&(n.contentSchema=Ho(t.contentSchema,e.contentSchema,r)),n};var Na=Ho;const xr=(t,e={},r=void 0,n=!1)=>{if(t==null&&r===void 0)return;typeof t?.toJS=="function"&&(t=t.toJS()),t=r1(t);let s=r!==void 0||Jo(t);const i=!s&&Array.isArray(t.oneOf)&&t.oneOf.length>0,a=!s&&Array.isArray(t.anyOf)&&t.anyOf.length>0;if(!s&&(i||a)){const R=r1(Nc(i?t.oneOf:t.anyOf));!(t=Na(t,R,e)).xml&&R.xml&&(t.xml=R.xml),Jo(t)&&Jo(R)&&(s=!0)}const o={};let{xml:u,properties:l,additionalProperties:c,items:p,contains:h}=t||{},d=Z3(t),{includeReadOnly:g,includeWriteOnly:y}=e;u=u||{};let v,{name:E,prefix:b,namespace:_}=u,w={};Object.hasOwn(t,"type")||(t.type=d),n&&(E=E||"notagname",v=(b?`${b}:`:"")+E,_)&&(o[b?`xmlns:${b}`:"xmlns"]=_),n&&(w[v]=[]);const S=Hi(l);let A,T=0;const k=()=>Number.isInteger(t.maxProperties)&&t.maxProperties>0&&T>=t.maxProperties,P=R=>!(Number.isInteger(t.maxProperties)&&t.maxProperties>0)||!k()&&(!($=>!Array.isArray(t.required)||t.required.length===0||!t.required.includes($))(R)||t.maxProperties-T-(()=>{if(!Array.isArray(t.required)||t.required.length===0)return 0;let $=0;return n?t.required.forEach((M=>$+=w[M]===void 0?0:1)):t.required.forEach((M=>{$+=w[v]?.find((K=>K[M]!==void 0))===void 0?0:1})),t.required.length-$})()>0);if(A=n?(R,$=void 0)=>{if(t&&S[R]){if(S[R].xml=S[R].xml||{},S[R].xml.attribute){const K=Array.isArray(S[R].enum)?Nc(S[R].enum):void 0;if(Jo(S[R]))o[S[R].xml.name||R]=O_(S[R]);else if(K!==void 0)o[S[R].xml.name||R]=K;else{const ee=r1(S[R]),G=Z3(ee),Z=S[R].xml.name||R;if(G==="array"){const X=xr(S[R],e,$,!1);o[Z]=X.map((te=>(0,Zs.default)(te)?"UnknownTypeObject":Array.isArray(te)?"UnknownTypeArray":te)).join(" ")}else o[Z]=G==="object"?"UnknownTypeObject":vc[G](ee)}return}S[R].xml.name=S[R].xml.name||R}else S[R]||c===!1||(S[R]={xml:{name:R}});let M=xr(S[R],e,$,n);P(R)&&(T++,Array.isArray(M)?w[v]=w[v].concat(M):w[v].push(M))}:(R,$)=>{if(P(R)){if((0,Zs.default)(t.discriminator?.mapping)&&t.discriminator.propertyName===R&&typeof t.$$ref=="string"){for(const M in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[M])!==-1){w[R]=M;break}}else w[R]=xr(S[R],e,$,n);T++}},s){let R;if(R=r!==void 0?r:O_(t),!n){if(typeof R=="number"&&d==="string")return`${R}`;if(typeof R!="string"||d==="string")return R;try{return JSON.parse(R)}catch{return R}}if(d==="array"){if(!Array.isArray(R)){if(typeof R=="string")return R;R=[R]}let $=[];return Xn(p)&&(p.xml=p.xml||u||{},p.xml.name=p.xml.name||u.name,$=R.map((M=>xr(p,e,M,n)))),Xn(h)&&(h.xml=h.xml||u||{},h.xml.name=h.xml.name||u.name,$=[xr(h,e,void 0,n),...$]),$=vc.array(t,{sample:$}),u.wrapped?(w[v]=$,(0,ws.default)(o)||w[v].push({_attr:o})):w=$,w}if(d==="object"){if(typeof R=="string")return R;for(const $ in R)Object.hasOwn(R,$)&&(S[$]?.readOnly&&!g||S[$]?.writeOnly&&!y||(S[$]?.xml?.attribute?o[S[$].xml.name||$]=R[$]:A($,R[$])));return(0,ws.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,ws.default)(o)?R:[{_attr:o},R],w}if(d==="array"){let R=[];if(Xn(h))if(n&&(h.xml=h.xml||t.xml||{},h.xml.name=h.xml.name||u.name),Array.isArray(h.anyOf)){const{anyOf:$,...M}=p;R.push(...h.anyOf.map((K=>xr(Na(K,M,e),e,void 0,n))))}else if(Array.isArray(h.oneOf)){const{oneOf:$,...M}=p;R.push(...h.oneOf.map((K=>xr(Na(K,M,e),e,void 0,n))))}else{if(!(!n||n&&u.wrapped))return xr(h,e,void 0,n);R.push(xr(h,e,void 0,n))}if(Xn(p))if(n&&(p.xml=p.xml||t.xml||{},p.xml.name=p.xml.name||u.name),Array.isArray(p.anyOf)){const{anyOf:$,...M}=p;R.push(...p.anyOf.map((K=>xr(Na(K,M,e),e,void 0,n))))}else if(Array.isArray(p.oneOf)){const{oneOf:$,...M}=p;R.push(...p.oneOf.map((K=>xr(Na(K,M,e),e,void 0,n))))}else{if(!(!n||n&&u.wrapped))return xr(p,e,void 0,n);R.push(xr(p,e,void 0,n))}return R=vc.array(t,{sample:R}),n&&u.wrapped?(w[v]=R,(0,ws.default)(o)||w[v].push({_attr:o}),w):R}if(d==="object"){for(let R in S)Object.hasOwn(S,R)&&(S[R]?.deprecated||S[R]?.readOnly&&!g||S[R]?.writeOnly&&!y||A(R));if(n&&o&&w[v].push({_attr:o}),k())return w;if(Ki(c)&&c)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},T++;else if(Xn(c)){const R=c,$=xr(R,e,void 0,n);if(n&&typeof R?.xml?.name=="string"&&R?.xml?.name!=="notagname")w[v].push($);else{const M=R?.["x-additionalPropertiesName"]||"additionalProp",K=Number.isInteger(t.minProperties)&&t.minProperties>0&&T<t.minProperties?t.minProperties-T:3;for(let ee=1;ee<=K;ee++){if(k())return w;if(n){const G={};G[M+ee]=$.notagname,w[v].push(G)}else w[M+ee]=$;T++}}}return w}let F;if(t.const!==void 0)F=t.const;else if(t&&Array.isArray(t.enum))F=Nc(va(t.enum));else{const R=Xn(t.contentSchema)?xr(t.contentSchema,e,void 0,n):void 0;F=vc[d](t,{sample:R})}return n?(w[v]=(0,ws.default)(o)?F:[{_attr:o},F],w):F},JU=(t,e,r)=>{const n=xr(t,e,r,!0);if(n)return typeof n=="string"?n:M8()(n,{declaration:!0,indent:" "})},HU=(t,e,r)=>xr(t,e,r,!1),KU=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],aSe=jl(JU,KU),oSe=jl(HU,KU),Q3=new class extends Jp{#e={};data={...this.#e};get defaults(){return{...this.#e}}};var uSe=(t,e)=>(e!==void 0&&Q3.register(t,e),Q3.get(t));const lSe=[{when:/json/,shouldStringifyTypes:["string"]}],cSe=["object"];var fSe=t=>(e,r,n,s)=>{const{fn:i}=t(),a=i.jsonSchema202012.memoizedSampleFromSchema(e,r,s),o=typeof a,u=lSe.reduce(((l,c)=>c.when.test(n)?[...l,...c.shouldStringifyTypes]:l),cSe);return(0,u8.default)(u,(l=>l===o))?JSON.stringify(a,null,2):a},pSe=t=>(e,r,n,s)=>{const{fn:i}=t(),a=i.jsonSchema202012.getJsonSampleSchema(e,r,n,s);let o;try{o=Ks.default.dump(Ks.default.load(a),{lineWidth:-1},{schema:Ks.JSON_SCHEMA}),o[o.length-1]===`
286
- `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},dSe=t=>(e,r,n)=>{const{fn:s}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
287
- <!-- XML example cannot be generated; root element name is undefined -->`;if(e.$$ref){let i=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=i[1]}}return s.jsonSchema202012.memoizedCreateXMLExample(e,r,n)},hSe=t=>(e,r="",n={},s=void 0)=>{const{fn:i}=t();return typeof e?.toJS=="function"&&(e=e.toJS()),typeof s?.toJS=="function"&&(s=s.toJS()),/xml/.test(r)?i.jsonSchema202012.getXmlSampleSchema(e,n,s):/(yaml|yml)/.test(r)?i.jsonSchema202012.getYamlSampleSchema(e,n,r,s):i.jsonSchema202012.getJsonSampleSchema(e,n,r,s)},GU=({getSystem:t})=>{const e=fSe(t),r=pSe(t),n=dSe(t),s=hSe(t);return{fn:{jsonSchema202012:{sampleFromSchema:HU,sampleFromSchemaGeneric:xr,sampleOptionAPI:uSe,sampleEncoderAPI:UU,sampleFormatAPI:Hp,sampleMediaTypeAPI:zU,createXMLExample:JU,memoizedSampleFromSchema:oSe,memoizedCreateXMLExample:aSe,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:s,mergeJsonSchema:Na,foldType:Fc}}}};function YU(){return[I4,__,FU,GU,nEe]}var mSe=t=>()=>({fn:t.fn,components:t.components}),gSe=t=>{const e=du()({layout:{layout:t.layout,filter:t.filter},spec:{spec:"",url:t.url},requestSnippets:t.requestSnippets},t.initialState);if(t.initialState)for(const[r,n]of Object.entries(t.initialState))n===void 0&&delete e[r];return{system:{configs:t.configs},plugins:t.presets,state:e}},ySe=()=>t=>{const e=t.queryConfigEnabled?(()=>{const r=new URLSearchParams(Gt.location.search);return Object.fromEntries(r)})():{};return Object.entries(e).reduce(((r,[n,s])=>(n==="config"?r.configUrl=s:n==="urls.primaryName"?r[n]=s:r=(0,u4.default)(r,n,s),r)),{})},vSe=({url:t,system:e})=>async r=>{if(!t)return{};if(typeof e.configsActions?.getConfigByUrl!="function")return{};const n=(()=>{const s={};return s.promise=new Promise(((i,a)=>{s.resolve=i,s.reject=a})),s})();return e.configsActions.getConfigByUrl({url:t,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},(s=>{n.resolve(s)})),n.promise},bSe=()=>()=>{const t={};return globalThis.location&&(t.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`),t},tr=Object.freeze({dom_id:null,domNode:null,spec:{},url:"",urls:null,configUrl:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:-1,filter:!1,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:void 0,persistAuthorization:!1,configs:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:t=>(t.curlOptions=[],t),responseInterceptor:t=>t,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:!1,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[YU],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:["application/octet-stream","image/","audio/","video/"],uncaughtExceptionHandler:null}),ESe=(function(t){var e={};return be.d(e,t),e})({default:function(){return Ppe}}),SSe=(function(t){var e={};return be.d(e,t),e})({default:function(){return Npe}}),bc=(t,e=[])=>Array.isArray(t)?t:e,Pn=(t,e=!1)=>t===!0||t==="true"||t===1||t==="1"||t!==!1&&t!=="false"&&t!==0&&t!=="0"&&e,_Se=t=>t===null||t==="null"?null:t,wSe=t=>{const e=String(t);return Pn(t,e)},eF=(t,e)=>typeof t=="function"?t:e,xSe=t=>Array.isArray(t)?t:null,Ec=t=>typeof t=="function"?t:null,n1=t=>t===null||t==="null"?null:String(t),s1=(t,e=-1)=>{const r=parseInt(t,10);return Number.isNaN(r)?e:r},Ia=(t,e={})=>(0,Zs.default)(t)?t:e,tF=t=>typeof t=="function"||typeof t=="string"?t:null,ka=t=>String(t),ASe=(t,e)=>(0,Zs.default)(t)?t:t===!1||t==="false"||t===0||t==="0"?{activated:!1}:e,OSe=t=>t===void 0||t==="undefined"?void 0:String(t),XU={components:{typeCaster:Ia},configs:{typeCaster:Ia},configUrl:{typeCaster:n1},deepLinking:{typeCaster:Pn,defaultValue:tr.deepLinking},defaultModelExpandDepth:{typeCaster:s1,defaultValue:tr.defaultModelExpandDepth},defaultModelRendering:{typeCaster:ka},defaultModelsExpandDepth:{typeCaster:s1,defaultValue:tr.defaultModelsExpandDepth},displayOperationId:{typeCaster:Pn,defaultValue:tr.displayOperationId},displayRequestDuration:{typeCaster:Pn,defaultValue:tr.displayRequestDuration},docExpansion:{typeCaster:ka},dom_id:{typeCaster:n1},domNode:{typeCaster:_Se},fileUploadMediaTypes:{typeCaster:bc,defaultValue:tr.fileUploadMediaTypes},filter:{typeCaster:wSe},fn:{typeCaster:Ia},initialState:{typeCaster:Ia},layout:{typeCaster:ka},maxDisplayedTags:{typeCaster:s1,defaultValue:tr.maxDisplayedTags},modelPropertyMacro:{typeCaster:Ec},oauth2RedirectUrl:{typeCaster:OSe},onComplete:{typeCaster:Ec},operationsSorter:{typeCaster:tF},paramaterMacro:{typeCaster:Ec},persistAuthorization:{typeCaster:Pn,defaultValue:tr.persistAuthorization},plugins:{typeCaster:bc,defaultValue:tr.plugins},presets:{typeCaster:bc,defaultValue:tr.presets},requestInterceptor:{typeCaster:eF,defaultValue:tr.requestInterceptor},requestSnippets:{typeCaster:Ia,defaultValue:tr.requestSnippets},requestSnippetsEnabled:{typeCaster:Pn,defaultValue:tr.requestSnippetsEnabled},responseInterceptor:{typeCaster:eF,defaultValue:tr.responseInterceptor},showCommonExtensions:{typeCaster:Pn,defaultValue:tr.showCommonExtensions},showExtensions:{typeCaster:Pn,defaultValue:tr.showExtensions},showMutatedRequest:{typeCaster:Pn,defaultValue:tr.showMutatedRequest},spec:{typeCaster:Ia,defaultValue:tr.spec},supportedSubmitMethods:{typeCaster:bc,defaultValue:tr.supportedSubmitMethods},syntaxHighlight:{typeCaster:ASe,defaultValue:tr.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:Pn,defaultValue:tr.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:ka},tagsSorter:{typeCaster:tF},tryItOutEnabled:{typeCaster:Pn,defaultValue:tr.tryItOutEnabled},url:{typeCaster:ka},urls:{typeCaster:xSe},"urls.primaryName":{typeCaster:ka},validatorUrl:{typeCaster:n1},withCredentials:{typeCaster:Pn,defaultValue:tr.withCredentials},uncaughtExceptionHandler:{typeCaster:Ec}},ZU=t=>Object.entries(XU).reduce(((e,[r,{typeCaster:n,defaultValue:s}])=>{if((0,ESe.default)(e,r)){const i=n((0,d_.default)(e,r),s);e=(0,SSe.default)(r,i,e)}return e}),{...t}),CSe=(t,...e)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const s=[];for(const a of e){const o={...a};Object.hasOwn(o,"domNode")&&(r=o.domNode,delete o.domNode),Object.hasOwn(o,"urls.primaryName")?(n=o["urls.primaryName"],delete o["urls.primaryName"]):Array.isArray(o.urls)&&Object.hasOwn(o.urls,"primaryName")&&(n=o.urls.primaryName,delete o.urls.primaryName),s.push(o)}const i=du()(t,...s);return r!==Symbol.for("domNode")&&(i.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(i.urls)&&(i.urls.primaryName=n),ZU(i)};function _i(t){const e=ySe()(t),r=bSe()(),n=_i.config.merge({},_i.config.defaults,r,t,e),s=gSe(n),i=mSe(n),a=new d8(s);a.register([n.plugins,i]);const o=a.getSystem(),u=p=>{a.setConfigs(p),o.configsActions.loaded()},l=p=>{!e.url&&typeof p.spec=="object"&&Object.keys(p.spec).length>0?(o.specActions.updateUrl(""),o.specActions.updateLoadingStatus("success"),o.specActions.updateSpec(JSON.stringify(p.spec))):typeof o.specActions.download=="function"&&p.url&&!p.urls&&(o.specActions.updateUrl(p.url),o.specActions.download(p.url))},c=p=>{if(p.domNode)o.render(p.domNode,"App");else if(p.dom_id){const h=document.querySelector(p.dom_id);o.render(h,"App")}else p.dom_id===null||p.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:p}=n,h=await vSe({url:p,system:o})(n),d=_i.config.merge({},n,h,e);u(d),h!==null&&l(d),c(d)})(),o):(u(n),l(n),c(n),o)}_i.System=d8,_i.config={defaults:tr,merge:CSe,typeCast:ZU,typeCastMappings:XU},_i.presets={base:I4,apis:YU},_i.plugins={Auth:m8,Configs:g8,DeepLining:y8,Err:b8,Filter:E8,Icons:S8,JSONSchema5:N8,JSONSchema5Samples:L8,JSONSchema202012:FU,JSONSchema202012Samples:GU,Layout:w8,Logs:x8,OpenAPI30:__,OpenAPI31:__,OnComplete:A8,RequestSnippets:R8,Spec:c4,SwaggerClient:p4,Util:d4,View:y4,ViewLegacy:v4,DownloadUrl:b4,SyntaxHighlighting:S4,Versions:_4,SafeRender:A4};var RSe=_i,xi=a8.A;const{config:Vt}=xi,rF=t=>{const e=mr.useRef();return mr.useEffect(()=>{e.current=t},[t]),e.current},ql=({spec:t=Vt.defaults.spec,url:e=Vt.defaults.url,layout:r=Vt.defaults.layout,requestInterceptor:n=Vt.defaults.requestInterceptor,responseInterceptor:s=Vt.defaults.responseInterceptor,supportedSubmitMethods:i=Vt.defaults.supportedSubmitMethods,queryConfigEnabled:a=Vt.defaults.queryConfigEnabled,plugins:o=Vt.defaults.plugins,displayOperationId:u=Vt.defaults.displayOperationId,showMutatedRequest:l=Vt.defaults.showMutatedRequest,docExpansion:c=Vt.defaults.docExpansion,defaultModelExpandDepth:p=Vt.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:h=Vt.defaults.defaultModelsExpandDepth,defaultModelRendering:d=Vt.defaults.defaultModelRendering,presets:g=Vt.defaults.presets,deepLinking:y=Vt.defaults.deepLinking,showExtensions:v=Vt.defaults.showExtensions,showCommonExtensions:E=Vt.defaults.showCommonExtensions,filter:b=Vt.defaults.filter,requestSnippetsEnabled:_=Vt.defaults.requestSnippetsEnabled,requestSnippets:w=Vt.defaults.requestSnippets,tryItOutEnabled:S=Vt.defaults.tryItOutEnabled,displayRequestDuration:A=Vt.defaults.displayRequestDuration,withCredentials:T=Vt.defaults.withCredentials,persistAuthorization:k=Vt.defaults.persistAuthorization,oauth2RedirectUrl:P=Vt.defaults.oauth2RedirectUrl,onComplete:F=null,initialState:R=Vt.defaults.initialState,uncaughtExceptionHandler:$=Vt.defaults.uncaughtExceptionHandler})=>{const[M,K]=mr.useState(null),ee=M?.getComponent("App","root"),G=rF(t),Z=rF(e);return mr.useEffect(()=>{const X=xi({plugins:o,spec:t,url:e,layout:r,defaultModelsExpandDepth:h,defaultModelRendering:d,presets:[xi.presets.apis,...g],requestInterceptor:n,responseInterceptor:s,onComplete:()=>{typeof F=="function"&&F(X)},docExpansion:c,supportedSubmitMethods:i,queryConfigEnabled:a,defaultModelExpandDepth:p,displayOperationId:u,tryItOutEnabled:S,displayRequestDuration:A,requestSnippetsEnabled:_,requestSnippets:w,showMutatedRequest:l,deepLinking:y,showExtensions:v,showCommonExtensions:E,filter:b,persistAuthorization:k,withCredentials:T,initialState:R,uncaughtExceptionHandler:$,...typeof P=="string"?{oauth2RedirectUrl:P}:{}});K(X)},[]),mr.useEffect(()=>{if(M){const X=M.specSelectors.url();(e!==X||e!==Z)&&(M.specActions.updateSpec(""),e&&(M.specActions.updateUrl(e),M.specActions.download(e)))}},[M,e]),mr.useEffect(()=>{if(M){const X=M.specSelectors.specStr();if(t&&t!==xi.config.defaults.spec&&(t!==X||t!==G)){const te=typeof t=="object"?JSON.stringify(t):t;M.specActions.updateSpec(te)}}},[M,t]),ee?Zn.createElement(ee,null):null};ql.System=xi.System;ql.presets=xi.presets;ql.plugins=xi.plugins;ql.config=xi.config;function TSe(){const{instanceId:t,clusterId:e}=x9({strict:!1}),r=nF(),{data:n,isLoading:s}=id(A9(r)),{data:i,isLoading:a}=id(O9(r)),{data:o,isLoading:u,error:l}=id(L9(r)),c=n?.http;let p="";const h=c?.cors===!1,d=c?.corsAccessList?.length!==void 0&&!c.corsAccessList.includes("*")&&!c.corsAccessList.includes("null")&&!c.corsAccessList.includes(window.location.origin);h?p=`This ${e&&!t?"cluster":"instance"} has CORS disabled currently, so you won't be able to execute API requests from the browser.`:d&&(p=`This ${e&&!t?"cluster":"instance"} has CORS enabled, but ${window.location.origin} is not allowed, so you won't be able to execute API requests from the browser.`);const{onConfigUpdate:g,isPending:y}=V9(),v=mr.useCallback(()=>{g({...h?{http_cors:!0}:{},...d?{http_corsAccessList:[...c?.corsAccessList??[],window.location.origin]}:{}})},[c,g]);if(s||a||u)return bs.jsx(C9,{centered:!0,text:"Looking up your instance configuration, one moment."});if(l){let E;return i?.version&&!z9("4.7.0-beta.7",i?.version)?E=`API Docs are only available starting in version '4.7.0-beta.7' of Harper, please update your version ${i.version}!`:E="We weren't able to look up your docs. Please check the Network tab of your developer tools to see why the docs were not accessible to Studio.",bs.jsx(q2,{title:"API Docs Unavailable",error:{message:E},showReturnToHome:!1})}return bs.jsxs(bs.Fragment,{children:[p&&bs.jsx(q2,{title:"CORS Disabled: HTTP API Not Accessible",className:"mt-0 mx-4 m-0 border-yellow text-yellow",error:{message:p},showReturnToHome:!1,children:bs.jsxs(R9,{disabled:y,variant:"warning",className:"rounded-full",onClick:v,children:[bs.jsx(T9,{}),y?"Enabling CORS...":`Enable CORS for ${window.location.origin}`]})}),bs.jsx(ql,{spec:o,persistAuthorization:!0,requestSnippetsEnabled:!0,requestSnippets:$9,plugins:B9,tryItOutEnabled:!0})]})}const qwe=I9("/apis")({component:TSe});export{qwe as route};