truecourse 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.mjs +3886 -0
- package/db/migrations/0000_daily_paper_doll.sql +82 -0
- package/db/migrations/meta/0000_snapshot.json +569 -0
- package/db/migrations/meta/_journal.json +13 -0
- package/package.json +34 -0
- package/public/404.html +12 -0
- package/public/_next/static/chunks/414-8318b3e90e55d32a.js +1 -0
- package/public/_next/static/chunks/597-63908a91b482ecc2.js +1 -0
- package/public/_next/static/chunks/7273c211-8e9085ce5065411a.js +1 -0
- package/public/_next/static/chunks/728-8bf3f63c2116a9f4.js +1 -0
- package/public/_next/static/chunks/a51c26f2-7912c8e37f20294d.js +1 -0
- package/public/_next/static/chunks/app/_not-found/page-fa912e0095c03faf.js +1 -0
- package/public/_next/static/chunks/app/layout-8b7c9093ed7416a9.js +1 -0
- package/public/_next/static/chunks/app/page-a584f9a9455d99db.js +1 -0
- package/public/_next/static/chunks/app/repos/[[...slug]]/page-e5fdcbd6e95a0351.js +1 -0
- package/public/_next/static/chunks/framework-cd8a7ea2c29e04e3.js +1 -0
- package/public/_next/static/chunks/main-75f848718c47ce7f.js +1 -0
- package/public/_next/static/chunks/main-app-6713e5440a400899.js +1 -0
- package/public/_next/static/chunks/pages/_app-cbca4c5e73429fb7.js +1 -0
- package/public/_next/static/chunks/pages/_error-b3f1a96c07a42193.js +1 -0
- package/public/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/public/_next/static/chunks/webpack-2f0ed87fd33e9d1c.js +1 -0
- package/public/_next/static/css/2de88e1f79a8a35f.css +1 -0
- package/public/_next/static/css/599369d853c61df7.css +31 -0
- package/public/_next/static/jBjG46wvKRKD4-YnOkixD/_buildManifest.js +1 -0
- package/public/_next/static/jBjG46wvKRKD4-YnOkixD/_ssgManifest.js +1 -0
- package/public/index.html +12 -0
- package/public/index.txt +19 -0
- package/public/repos.html +1 -0
- package/public/repos.txt +17 -0
- package/server.mjs +107306 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[728],{113:(e,t,n)=>{"use strict";n.d(t,{C:()=>i});var r=n(4926);function i(e){return(0,r.o)(e.defaultTagName??"div",e,e)}},217:(e,t,n)=>{"use strict";var r=n(4669),i=n(3215),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=i.useSyncExternalStore,s=r.useRef,a=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var h=s(null);if(null===h.current){var f={hasValue:!1,value:null};h.current=f}else f=h.current;var d=l(e,(h=u(function(){function e(e){if(!a){if(a=!0,l=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(l,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(l=e,t):(l=e,s=n)}var l,s,a=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],h[1]);return a(function(){f.hasValue=!0,f.value=d},[d]),c(d),d}},660:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r="data-composite-item-active"},758:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,n:()=>u});var r=n(4669),i=n(8585);let o=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=t=e(r,i,o);return o},{useDebugValue:l}=r,{useSyncExternalStoreWithSelector:s}=i,a=e=>e;function u(e,t=a,n){let r=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return l(r),r}let c=(e,t)=>{let n=(e=>e?o(e):o)(e),r=(e,r=t)=>u(n,e,r);return Object.assign(r,n),r},h=(e,t)=>e?c(e,t):c},971:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});let r=function(e){return e.activationDirection="data-activation-direction",e.orientation="data-orientation",e}({}),i={tabActivationDirection:e=>({[r.activationDirection]:e})}},1010:(e,t,n)=>{"use strict";let r,i;n.d(t,{io:()=>e_});var o,l={};n.r(l),n.d(l,{Decoder:()=>ef,Encoder:()=>eh,PacketType:()=>o,isPacketValid:()=>em,protocol:()=>ec});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let a=Object.create(null);Object.keys(s).forEach(e=>{a[s[e]]=e});let u={type:"error",data:"parser error"},c="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),h="function"==typeof ArrayBuffer,f=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,d=({type:e,data:t},n,r)=>{if(c&&t instanceof Blob)if(n)return r(t);else return p(t,r);if(h&&(t instanceof ArrayBuffer||f(t)))if(n)return r(t);else return p(new Blob([t]),r);return r(s[e]+(t||""))},p=(e,t)=>{let n=new FileReader;return n.onload=function(){t("b"+(n.result.split(",")[1]||""))},n.readAsDataURL(e)};function g(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<m.length;e++)y[m.charCodeAt(e)]=e;let v="function"==typeof ArrayBuffer,x=(e,t)=>{if("string"!=typeof e)return{type:"message",data:w(e,t)};let n=e.charAt(0);return"b"===n?{type:"message",data:b(e.substring(1),t)}:a[n]?e.length>1?{type:a[n],data:e.substring(1)}:{type:a[n]}:u},b=(e,t)=>v?w((e=>{let t=.75*e.length,n=e.length,r,i=0,o,l,s,a;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)o=y[e.charCodeAt(r)],l=y[e.charCodeAt(r+1)],s=y[e.charCodeAt(r+2)],a=y[e.charCodeAt(r+3)],c[i++]=o<<2|l>>4,c[i++]=(15&l)<<4|s>>2,c[i++]=(3&s)<<6|63&a;return u})(e),t):{base64:!0,data:e},w=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;function k(e){return e.reduce((e,t)=>e+t.length,0)}function _(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function E(e){if(e){var t=e;for(var n in E.prototype)t[n]=E.prototype[n];return t}}E.prototype.on=E.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},E.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},E.prototype.off=E.prototype.removeListener=E.prototype.removeAllListeners=E.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},E.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},E.prototype.emitReserved=E.prototype.emit,E.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},E.prototype.hasListeners=function(e){return!!this.listeners(e).length};let S="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),A="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function M(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}let C=A.setTimeout,T=A.clearTimeout;function P(e,t){t.useNativeTimers?(e.setTimeoutFn=C.bind(A),e.clearTimeoutFn=T.bind(A)):(e.setTimeoutFn=A.setTimeout.bind(A),e.clearTimeoutFn=A.clearTimeout.bind(A))}function O(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class I extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class R extends E{constructor(e){super(),this.writable=!1,P(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new I(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=x(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class N extends R{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};((e,t)=>{let n=e.split("\x1e"),r=[];for(let e=0;e<n.length;e++){let i=x(n[e],t);if(r.push(i),"error"===i.type)break}return r})(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,o)=>{d(e,!1,e=>{r[o]=e,++i===n&&t(r.join("\x1e"))})})})(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=O()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let L=!1;try{L="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let z=L;function D(){}class B extends N{constructor(e){if(super(e),"undefined"!=typeof location){let t="https:"===location.protocol,n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class j extends E{constructor(e,t,n){super(),this.createRequest=e,P(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;let t=M(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof n.status?n.status:0)},0))},n.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"undefined"!=typeof document&&(this._index=j.requestsCount++,j.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=D,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete j.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function F(){for(let e in j.requests)j.requests.hasOwnProperty(e)&&j.requests[e].abort()}j.requestsCount=0,j.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",F):"function"==typeof addEventListener&&addEventListener("onpagehide"in A?"pagehide":"unload",F,!1));let H=function(){let e=$({xdomain:!1});return e&&null!==e.responseType}();class q extends B{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=H&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new j($,this.uri(),e)}}function $(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||z))return new XMLHttpRequest}catch(e){}if(!t)try{return new A[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let U="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class V extends R{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,n=U?{}:M(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;d(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch(e){}r&&S(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=O()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let X=A.WebSocket||A.MozWebSocket;class Y extends V{createSocket(e,t,n){return U?new X(e,t,n):t?new X(e,t):new X(e)}doWrite(e,t){this.ws.send(t)}}class W extends R{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=function(e,t){i||(i=new TextDecoder);let n=[],r=0,o=-1,l=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(0===r){if(1>k(n))break;let e=_(n,1);l=(128&e[0])==128,r=(o=127&e[0])<126?3:126===o?1:2}else if(1===r){if(2>k(n))break;let e=_(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(8>k(n))break;let e=_(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){a.enqueue(u);break}o=0x100000000*i+t.getUint32(4),r=3}else{if(k(n)<o)break;let e=_(n,o);a.enqueue(x(l?e:i.decode(e),t)),r=0}if(0===o||o>e){a.enqueue(u);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),o=new TransformStream({transform(e,t){var n;n=n=>{let r,i=n.length;if(i<126)new DataView((r=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((r=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((r=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)},c&&e.data instanceof Blob?e.data.arrayBuffer().then(g).then(n):h&&(e.data instanceof ArrayBuffer||f(e.data))?n(g(e.data)):d(e,!1,e=>{r||(r=new TextEncoder),n(r.encode(e))})}});o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let l=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),l())}).catch(e=>{})};l();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&S(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}}let K={websocket:Y,webtransport:W,polling:q},Z=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Q=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function J(e){if(e.length>8e3)throw"URI too long";let t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Z.exec(e||""),o={},l=14;for(;l--;)o[Q[l]]=i[l]||"";return -1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){let n=t.replace(/\/{2,9}/g,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,o.path),o.queryKey=function(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,o.query),o}let G="function"==typeof addEventListener&&"function"==typeof removeEventListener,ee=[];G&&addEventListener("offline",()=>{ee.forEach(e=>e())},!1);class et extends E{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){let n=J(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=J(t.host).host);P(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),G&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ee.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&et.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",et.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+="string"==typeof n?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(n):Math.ceil(1.33*(n.byteLength||n.size))),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,S(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(et.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),G&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=ee.indexOf(this._offlineEventListener);-1!==e&&ee.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}et.protocol=4;class en extends et{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;et.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;et.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){n||(n=!0,u(),t.close(),t=null)}let o=e=>{let n=Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function l(){o("transport closed")}function s(){o("socket closed")}function a(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",l),this.off("close",s),this.off("upgrading",a)};t.once("open",r),t.once("error",o),t.once("close",l),this.once("close",s),this.once("upgrading",a),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class er extends en{constructor(e,t={}){let n="object"==typeof e?e:t;(!n.transports||n.transports&&"string"==typeof n.transports[0])&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(e=>K[e]).filter(e=>!!e)),super(e,n)}}er.protocol;let ei="function"==typeof ArrayBuffer,eo=Object.prototype.toString,el="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===eo.call(Blob),es="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===eo.call(File);function ea(e){return ei&&(e instanceof ArrayBuffer||("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer))||el&&e instanceof Blob||es&&e instanceof File}let eu=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ec=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class eh{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(ea(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=function(e){let t=[],n=e.data;return e.data=function e(t,n){if(!t)return t;if(ea(t)){let e={_placeholder:!0,num:n.length};return n.push(t),e}if(Array.isArray(t)){let r=Array(t.length);for(let i=0;i<t.length;i++)r[i]=e(t[i],n);return r}if("object"==typeof t&&!(t instanceof Date)){let r={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e(t[i],n));return r}return t}(n,t),e.attachments=t.length,{packet:e,buffers:t}}(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}class ef extends E{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let n=(t=this.decodeString(e)).type===o.BINARY_EVENT;n||t.type===o.BINARY_ACK?(t.type=n?o.EVENT:o.ACK,this.reconstructor=new ed(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(ea(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,n={type:Number(e.charAt(0))};if(void 0===o[n.type])throw Error("unknown packet type "+n.type);if(n.type===o.BINARY_EVENT||n.type===o.BINARY_ACK){let r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){let r=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);n.nsp=e.substring(r,t)}else n.nsp="/";let r=e.charAt(t+1);if(""!==r&&Number(r)==r){let r=t+1;for(;++t;){let n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(ef.isPayloadValid(n.type,r))n.data=r;else throw Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return eg(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||eg(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eu.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ed{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,n;let e=(t=this.reconPack,n=this.buffers,t.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<n.length)return n[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],n));return t}(t.data,n),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}let ep=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function eg(e){return"[object Object]"===Object.prototype.toString.call(e)}function em(e){var t;return"string"==typeof e.nsp&&(void 0===(t=e.id)||ep(t))&&function(e,t){switch(e){case o.CONNECT:return void 0===t||eg(t);case o.DISCONNECT:return void 0===t;case o.EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eu.indexOf(t[0]));case o.ACK:return Array.isArray(t);case o.CONNECT_ERROR:return"string"==typeof t||eg(t);default:return!1}}(e.type,e.data)}function ey(e,t,n){return e.on(t,n),function(){e.off(t,n)}}let ev=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ex extends E{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[ey(e,"open",this.onopen.bind(this)),ey(e,"packet",this.onpacket.bind(this)),ey(e,"error",this.onerror.bind(this)),ey(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var n,r,i;if(ev.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let l={type:o.EVENT,data:t};if(l.options={},l.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,n=t.pop();this._registerAckCallback(e,n),l.id=e}let s=null==(r=null==(n=this.io.engine)?void 0:n.transport)?void 0:r.writable,a=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!s||(a?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(e,t){var n;let r=null!=(n=this.flags.timeout)?n:this._opts.ackTimeout;if(void 0===r){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},r),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:o.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function eb(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eb.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-n:e+n}return 0|Math.min(e,this.max)},eb.prototype.reset=function(){this.attempts=0},eb.prototype.setMin=function(e){this.ms=e},eb.prototype.setMax=function(e){this.max=e},eb.prototype.setJitter=function(e){this.jitter=e};class ew extends E{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,P(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(n=t.randomizationFactor)?n:.5),this.backoff=new eb({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let r=t.parser||l;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new er(this.uri,this.opts);let t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let r=ey(t,"open",function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=ey(t,"error",i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(ey(e,"ping",this.onping.bind(this)),ey(e,"data",this.ondata.bind(this)),ey(e,"error",this.onerror.bind(this)),ey(e,"close",this.onclose.bind(this)),ey(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){S(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new ex(this,e,t),this.nsps[e]=n),n}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),null==(n=this.engine)||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let ek={};function e_(e,t){let n;"object"==typeof e&&(t=e,e=void 0);let r=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=J(e)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),i=r.source,o=r.id,l=r.path,s=ek[o]&&l in ek[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?n=new ew(i,t):(ek[o]||(ek[o]=new ew(i,t)),n=ek[o]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(e_,{Manager:ew,Socket:ex,io:e_,connect:e_})},1047:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]])},1202:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)""!==(i=e(t[r]))&&(n+=(n&&" ")+i);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}})},1264:(e,t,n)=>{"use strict";n.d(t,{V:()=>d});var r=n(4669),i=n(3605),o=n(5595),l=n(4926),s=n(7946),a=n(6891),u=n(3925),c=n(7951),h=n(4661),f=n(6409);let d=r.forwardRef(function(e,t){let{render:n,className:d,orientation:p="vertical",keepMounted:g=!1,...m}=e,{hovering:y,scrollingX:v,scrollingY:x,hiddenState:b,overflowEdges:w,scrollbarYRef:k,scrollbarXRef:_,viewportRef:E,thumbYRef:S,thumbXRef:A,handlePointerDown:M,handlePointerUp:C,rootId:T,thumbSize:P,hasMeasuredScrollbar:O}=(0,i.p)(),I={hovering:y,scrolling:{horizontal:v,vertical:x}[p],orientation:p,hasOverflowX:!b.x,hasOverflowY:!b.y,overflowXStart:w.xStart,overflowXEnd:w.xEnd,overflowYStart:w.yStart,overflowYEnd:w.yEnd,cornerHidden:b.corner},R=(0,c.j)();r.useEffect(()=>{let e=E.current,t="vertical"===p?k.current:_.current;if(t)return t.addEventListener("wheel",n,{passive:!1}),()=>{t.removeEventListener("wheel",n)};function n(n){if(e&&t&&!n.ctrlKey){if(n.preventDefault(),"vertical"===p){if(0===e.scrollTop&&n.deltaY<0)return}else if(0===e.scrollLeft&&n.deltaX<0)return;if("vertical"===p){if(e.scrollTop===e.scrollHeight-e.clientHeight&&n.deltaY>0)return}else if(e.scrollLeft===e.scrollWidth-e.clientWidth&&n.deltaX>0)return;"vertical"===p?e.scrollTop+=n.deltaY:e.scrollLeft+=n.deltaX}}},[p,_,k,E]);let N={...T&&{"data-id":"".concat(T,"-scrollbar")},onPointerDown(e){if(0===e.button&&e.currentTarget===e.target&&E.current){if(S.current&&k.current&&"vertical"===p){let t=(0,s.A)(S.current,"margin","y"),n=(0,s.A)(k.current,"padding","y"),r=S.current.offsetHeight,i=k.current.getBoundingClientRect(),o=e.clientY-i.top-r/2-n+t/2,l=E.current.scrollHeight,a=E.current.clientHeight,u=k.current.offsetHeight-r-n-t;E.current.scrollTop=o/u*(l-a)}if(A.current&&_.current&&"horizontal"===p){let t,n=(0,s.A)(A.current,"margin","x"),r=(0,s.A)(_.current,"padding","x"),i=A.current.offsetWidth,o=_.current.getBoundingClientRect(),l=e.clientX-o.left-i/2-r+n/2,a=E.current.scrollWidth,u=E.current.clientWidth,c=l/(_.current.offsetWidth-i-r-n);"rtl"===R?(t=(1-c)*(a-u),E.current.scrollLeft<=0&&(t=-t)):t=c*(a-u),E.current.scrollLeft=t}M(e)}},onPointerUp:C,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:O||g?void 0:"hidden",..."vertical"===p&&{top:0,bottom:"var(".concat(a.I.scrollAreaCornerHeight,")"),insetInlineEnd:0,[u.q.scrollAreaThumbHeight]:"".concat(P.height,"px")},..."horizontal"===p&&{insetInlineStart:0,insetInlineEnd:"var(".concat(a.I.scrollAreaCornerWidth,")"),bottom:0,[u.q.scrollAreaThumbWidth]:"".concat(P.width,"px")}}},L=(0,l.o)("div",e,{ref:[t,"vertical"===p?k:_],state:I,props:[N,m],stateAttributesMapping:h.r}),z=r.useMemo(()=>({orientation:p}),[p]),D="vertical"===p?b.y:b.x;return g||!D?(0,f.jsx)(o.G.Provider,{value:z,children:L}):null})},1393:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(4669),i=n(4926),o=n(3172),l=n(6832);let s=r.forwardRef(function(e,t){let{render:n,className:r,...s}=e,{state:a}=(0,o.A)();return(0,i.o)("div",e,{state:a,ref:t,props:s,stateAttributesMapping:l.I})})},1791:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},1879:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},1896:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(8631)),i=n(7648);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,e.exports=o},2074:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g;function u(e){return e?e.replace(a,""):""}e.exports=function(e,a){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];a=a||{};var c=1,h=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function d(){var e={line:c,column:h};return function(t){return t.position=new p(e),m(r),t}}function p(e){this.start=e,this.end={line:c,column:h},this.source=a.source}function g(t){var n=Error(a.source+":"+c+":"+h+": "+t);if(n.reason=t,n.filename=a.source,n.line=c,n.column=h,n.source=e,a.silent);else throw n}function m(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return h+=2,f(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}p.prototype.content=e,m(r);var x,b=[];for(y(b);x=function(){var e=d(),n=m(i);if(n){if(v(),!m(o))return g("property missing ':'");var r=m(l),a=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return m(s),a}}();)!1!==x&&(b.push(x),y(b));return b}},2331:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(6409);let i="base-ui-disable-scrollbar",o={className:i,getElement:e=>(0,r.jsx)("style",{nonce:e,href:i,precedence:"base-ui:low",children:`.${i}{scrollbar-width:none}.${i}::-webkit-scrollbar{display:none}`})}},2897:(e,t,n)=>{"use strict";n.d(t,{i:()=>i,u:()=>r});let r=500,i=16},3159:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},3172:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,r:()=>o});var r=n(1851),i=n(4669);let o=i.createContext(void 0);function l(){let e=i.useContext(o);if(void 0===e)throw Error((0,r.A)(51));return e}},3215:(e,t,n)=>{"use strict";e.exports=n(5338)},3417:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},3418:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},3503:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},3605:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,p:()=>l});var r=n(1851),i=n(4669);let o=i.createContext(void 0);function l(){let e=i.useContext(o);if(void 0===e)throw Error((0,r.A)(53));return e}},3714:(e,t,n)=>{"use strict";n.d(t,{u:()=>u});var r=n(4669),i=n(4926),o=n(3382),l=n(7309),s=n(3172),a=n(6832);let u=r.forwardRef(function(e,t){let{render:n,className:r,id:u,...c}=e,{setLabelId:h,state:f}=(0,s.A)(),d=function(e,t){let n=(0,l.e)(e);return(0,o.g)(()=>(t(n),()=>{t(void 0)}),[n,t]),n}(u,h);return(0,i.o)("span",e,{state:f,ref:t,props:[{id:d,role:"presentation"},c],stateAttributesMapping:a.I})})},3925:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});let r=function(e){return e.scrollAreaThumbHeight="--scroll-area-thumb-height",e.scrollAreaThumbWidth="--scroll-area-thumb-width",e}({})},4113:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(4669),i=n(4926),o=n(3172),l=n(6832);let s=r.forwardRef(function(e,t){let{className:n,render:r,children:s,...a}=e,{value:u,formattedValue:c,state:h}=(0,o.A)(),f=null==u?"indeterminate":c,d=null==u?null:c;return(0,i.o)("span",e,{state:h,ref:t,props:[{"aria-hidden":!0,children:"function"==typeof s?s(f,u):d},a],stateAttributesMapping:l.I})})},4274:(e,t,n)=>{"use strict";n.d(t,{w:()=>m});var r=n(4669),i=n(3382),o=n(7135);function l(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}let s={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},a={...s,position:"fixed",top:0,left:0};({...s,position:"absolute"});let u=new Map;function c(e,t,n){return null==e?"":(function(e,t){let n=JSON.stringify({locale:e,options:t}),r=u.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return u.set(n,i),i})(t,n).format(e)}var h=n(4926),f=n(3172),d=n(6832),p=n(6409);function g(e,t){return null==t?"indeterminate progress":e||"".concat(t,"%")}let m=r.forwardRef(function(e,t){var n;let{format:s,getAriaValueText:u=g,locale:m,max:y=100,min:v=0,value:x,render:b,className:w,children:k,..._}=e,[E,S]=r.useState(),A=function(e){let t=(0,o.j)(l,e).current;return t.next=e,(0,i.g)(t.effect),t}(s),M="indeterminate";Number.isFinite(x)&&(M=x===y?"complete":"progressing");let C=(n=A.current,null==x?"":n?c(x,m,n):c(x/100,m,{style:"percent"})),T=r.useMemo(()=>({status:M}),[M]),P={"aria-labelledby":E,"aria-valuemax":y,"aria-valuemin":v,"aria-valuenow":null!=x?x:void 0,"aria-valuetext":u(C,x),role:"progressbar",children:(0,p.jsxs)(r.Fragment,{children:[k,(0,p.jsx)("span",{role:"presentation",style:a,children:"x"})]})},O=r.useMemo(()=>({formattedValue:C,max:y,min:v,setLabelId:S,state:T,status:M,value:x}),[C,y,v,S,T,M,x]),I=(0,h.o)("div",e,{state:T,ref:t,props:[P,_],stateAttributesMapping:d.I});return(0,p.jsx)(f.r.Provider,{value:O,children:I})})},4611:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},4661:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});let r=function(e){return e.scrolling="data-scrolling",e.hasOverflowX="data-has-overflow-x",e.hasOverflowY="data-has-overflow-y",e.overflowXStart="data-overflow-x-start",e.overflowXEnd="data-overflow-x-end",e.overflowYStart="data-overflow-y-start",e.overflowYEnd="data-overflow-y-end",e}({}),i={hasOverflowX:e=>e?{[r.hasOverflowX]:""}:null,hasOverflowY:e=>e?{[r.hasOverflowY]:""}:null,overflowXStart:e=>e?{[r.overflowXStart]:""}:null,overflowXEnd:e=>e?{[r.overflowXEnd]:""}:null,overflowYStart:e=>e?{[r.overflowYStart]:""}:null,overflowYEnd:e=>e?{[r.overflowYEnd]:""}:null,cornerHidden:()=>null}},4716:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,b:()=>l});var r=n(1851),i=n(4669);let o=i.createContext(void 0);function l(){let e=i.useContext(o);if(void 0===e)throw Error((0,r.A)(65));return e}},4819:(e,t,n)=>{"use strict";n.d(t,{Do:()=>s,WZ:()=>i,TG:()=>a,ny:()=>o,yX:()=>u,xN:()=>c,Qc:()=>l,I$:()=>rc,aQ:()=>rg,di:()=>rm,kO:()=>rE,rN:()=>nX,bi:()=>re,_s:()=>nM,aE:()=>ne,Hm:()=>n4,tM:()=>tJ,KE:()=>nm,tn:()=>tQ,xc:()=>tK,us:()=>nA,IO:()=>t7,e_:()=>nB,Fp:()=>nH,Mi:()=>nf,HF:()=>t1,Eo:()=>nO,b5:()=>nG,Tq:()=>nt,qX:()=>n$,q1:()=>nz,M_:()=>n1,oj:()=>nI,aZ:()=>t9,aW:()=>n3,uD:()=>nE,Jo:()=>t5,U$:()=>t8,X6:()=>nd,oN:()=>nQ,ah:()=>nY,R4:()=>nw,r8:()=>rr,ZO:()=>tZ,bK:()=>tG,b$:()=>t2,uj:()=>nU,v5:()=>nN,Ue:()=>nk,Er:()=>nL,oB:()=>t3,kf:()=>ng,mW:()=>np,Q6:()=>nT,QE:()=>nS,kM:()=>nc,No:()=>ro,Ff:()=>nv,zj:()=>nx,s_:()=>ny,vS:()=>n8,qn:()=>rs,uL:()=>ri,YN:()=>nC});var r,i,o,l,s,a,u,c,h={value:()=>{}};function f(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new d(r)}function d(e){this._=e}function p(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=h,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}function g(){}function m(e){return null==e?g:function(){return this.querySelector(e)}}function y(){return[]}function v(e){return null==e?y:function(){return this.querySelectorAll(e)}}function x(e){return function(){return this.matches(e)}}function b(e){return function(t){return t.matches(e)}}d.prototype=f.prototype={constructor:d,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),o=-1,l=i.length;if(arguments.length<2){for(;++o<l;)if((n=(e=i[o]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++o<l;)if(n=(e=i[o]).type)r[n]=p(r[n],e.name,t);else if(null==t)for(n in r)r[n]=p(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new d(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var w=Array.prototype.find;function k(){return this.firstElementChild}var _=Array.prototype.filter;function E(){return Array.from(this.children)}function S(e){return Array(e.length)}function A(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function M(e,t,n,r,i,o){for(var l,s=0,a=t.length,u=o.length;s<u;++s)(l=t[s])?(l.__data__=o[s],r[s]=l):n[s]=new A(e,o[s]);for(;s<a;++s)(l=t[s])&&(i[s]=l)}function C(e,t,n,r,i,o,l){var s,a,u,c=new Map,h=t.length,f=o.length,d=Array(h);for(s=0;s<h;++s)(a=t[s])&&(d[s]=u=l.call(a,a.__data__,s,t)+"",c.has(u)?i[s]=a:c.set(u,a));for(s=0;s<f;++s)u=l.call(e,o[s],s,o)+"",(a=c.get(u))?(r[s]=a,a.__data__=o[s],c.delete(u)):n[s]=new A(e,o[s]);for(s=0;s<h;++s)(a=t[s])&&c.get(d[s])===a&&(i[s]=a)}function T(e){return e.__data__}function P(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}A.prototype={constructor:A,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var O="http://www.w3.org/1999/xhtml";let I={svg:"http://www.w3.org/2000/svg",xhtml:O,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function R(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),I.hasOwnProperty(t)?{space:I[t],local:e}:e}function N(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function L(e,t){return e.style.getPropertyValue(t)||N(e).getComputedStyle(e,null).getPropertyValue(t)}function z(e){return e.trim().split(/^|\s+/)}function D(e){return e.classList||new B(e)}function B(e){this._node=e,this._names=z(e.getAttribute("class")||"")}function j(e,t){for(var n=D(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function F(e,t){for(var n=D(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function H(){this.textContent=""}function q(){this.innerHTML=""}function $(){this.nextSibling&&this.parentNode.appendChild(this)}function U(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function V(e){var t=R(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===O&&t.documentElement.namespaceURI===O?t.createElement(e):t.createElementNS(n,e)}})(t)}function X(){return null}function Y(){var e=this.parentNode;e&&e.removeChild(this)}function W(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function K(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Z(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Q(e,t,n){return function(){var r,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var l=0,s=i.length;l<s;++l)if((r=i[l]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function J(e,t,n){var r=N(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}B.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var G=[null];function ee(e,t){this._groups=e,this._parents=t}function et(){return new ee([[document.documentElement]],G)}function en(e){return"string"==typeof e?new ee([[document.querySelector(e)]],[document.documentElement]):new ee([[e]],G)}function er(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}ee.prototype=et.prototype={constructor:ee,select:function(e){"function"!=typeof e&&(e=m(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,l,s=t[i],a=s.length,u=r[i]=Array(a),c=0;c<a;++c)(o=s[c])&&(l=e.call(o,o.__data__,c,s))&&("__data__"in o&&(l.__data__=o.__data__),u[c]=l);return new ee(r,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=v(e);for(var n=this._groups,r=n.length,i=[],o=[],l=0;l<r;++l)for(var s,a=n[l],u=a.length,c=0;c<u;++c)(s=a[c])&&(i.push(e.call(s,s.__data__,c,a)),o.push(s));return new ee(i,o)},selectChild:function(e){var t;return this.select(null==e?k:(t="function"==typeof e?e:b(e),function(){return w.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?E:(t="function"==typeof e?e:b(e),function(){return _.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=x(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,l=t[i],s=l.length,a=r[i]=[],u=0;u<s;++u)(o=l[u])&&e.call(o,o.__data__,u,l)&&a.push(o);return new ee(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,T);var n=t?C:M,r=this._parents,i=this._groups;"function"!=typeof e&&(v=e,e=function(){return v});for(var o=i.length,l=Array(o),s=Array(o),a=Array(o),u=0;u<o;++u){var c=r[u],h=i[u],f=h.length,d="object"==typeof(y=e.call(c,c&&c.__data__,u,r))&&"length"in y?y:Array.from(y),p=d.length,g=s[u]=Array(p),m=l[u]=Array(p);n(c,h,g,m,a[u]=Array(f),d,t);for(var y,v,x,b,w=0,k=0;w<p;++w)if(x=g[w]){for(w>=k&&(k=w+1);!(b=m[k])&&++k<p;);x._next=b||null}}return(l=new ee(l,r))._enter=s,l._exit=a,l},enter:function(){return new ee(this._enter||this._groups.map(S),this._parents)},exit:function(){return new ee(this._exit||this._groups.map(S),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,l=Math.min(i,o),s=Array(i),a=0;a<l;++a)for(var u,c=n[a],h=r[a],f=c.length,d=s[a]=Array(f),p=0;p<f;++p)(u=c[p]||h[p])&&(d[p]=u);for(;a<i;++a)s[a]=n[a];return new ee(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,l=i[o];--o>=0;)(r=i[o])&&(l&&4^r.compareDocumentPosition(l)&&l.parentNode.insertBefore(r,l),l=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=P);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var l,s=n[o],a=s.length,u=i[o]=Array(a),c=0;c<a;++c)(l=s[c])&&(u[c]=l);u.sort(t)}return new ee(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var l=r[i];if(l)return l}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],l=0,s=o.length;l<s;++l)(i=o[l])&&e.call(i,i.__data__,l,o);return this},attr:function(e,t){var n=R(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):L(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=z(e+"");if(arguments.length<2){for(var r=D(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?j:F)(this,e)}}:t?function(e){return function(){j(this,e)}}:function(e){return function(){F(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?H:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?q:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each($)},lower:function(){return this.each(U)},append:function(e){var t="function"==typeof e?e:V(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:V(e),r=null==t?X:"function"==typeof t?t:m(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Y)},clone:function(e){return this.select(e?K:W)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),l=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var a,u=0,c=s.length;u<c;++u)for(r=0,a=s[u];r<l;++r)if((i=o[r]).type===a.type&&i.name===a.name)return a.value}return}for(r=0,s=t?Q:Z;r<l;++r)this.each(s(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return J(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return J(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,l=i.length;o<l;++o)(r=i[o])&&(yield r)}};let ei={passive:!1},eo={capture:!0,passive:!1};function el(e){e.stopImmediatePropagation()}function es(e){e.preventDefault(),e.stopImmediatePropagation()}function ea(e){var t=e.document.documentElement,n=en(e).on("dragstart.drag",es,eo);"onselectstart"in t?n.on("selectstart.drag",es,eo):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function eu(e,t){var n=e.document.documentElement,r=en(e).on("dragstart.drag",null);t&&(r.on("click.drag",es,eo),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}let ec=e=>()=>e;function eh(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:l,y:s,dx:a,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:a,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function ef(e){return!e.ctrlKey&&!e.button}function ed(){return this.parentNode}function ep(e,t){return null==t?{x:e.x,y:e.y}:t}function eg(){return navigator.maxTouchPoints||"ontouchstart"in this}function em(e){return((e=Math.exp(e))+1/e)/2}eh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};let ey=function e(t,n,r){function i(e,i){var o,l,s=e[0],a=e[1],u=e[2],c=i[0],h=i[1],f=i[2],d=c-s,p=h-a,g=d*d+p*p;if(g<1e-12)l=Math.log(f/u)/t,o=function(e){return[s+e*d,a+e*p,u*Math.exp(t*e*l)]};else{var m=Math.sqrt(g),y=(f*f-u*u+r*g)/(2*u*n*m),v=(f*f-u*u-r*g)/(2*f*n*m),x=Math.log(Math.sqrt(y*y+1)-y);l=(Math.log(Math.sqrt(v*v+1)-v)-x)/t,o=function(e){var r,i,o=e*l,c=em(x),h=u/(n*m)*(c*(((r=Math.exp(2*(r=t*o+x)))-1)/(r+1))-((i=Math.exp(i=x))-1/i)/2);return[s+h*d,a+h*p,u*c/em(t*o+x)]}}return o.duration=1e3*l*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);var ev,ex,eb=0,ew=0,ek=0,e_=0,eE=0,eS=0,eA="object"==typeof performance&&performance.now?performance:Date,eM="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function eC(){return eE||(eM(eT),eE=eA.now()+eS)}function eT(){eE=0}function eP(){this._call=this._time=this._next=null}function eO(e,t,n){var r=new eP;return r.restart(e,t,n),r}function eI(){eE=(e_=eA.now())+eS,eb=ew=0;try{eC(),++eb;for(var e,t=ev;t;)(e=eE-t._time)>=0&&t._call.call(void 0,e),t=t._next;--eb}finally{eb=0,function(){for(var e,t,n=ev,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:ev=t);ex=e,eN(r)}(),eE=0}}function eR(){var e=eA.now(),t=e-e_;t>1e3&&(eS-=t,e_=e)}function eN(e){!eb&&(ew&&(ew=clearTimeout(ew)),e-eE>24?(e<1/0&&(ew=setTimeout(eI,e-eA.now()-eS)),ek&&(ek=clearInterval(ek))):(ek||(e_=eA.now(),ek=setInterval(eR,1e3)),eb=1,eM(eI)))}function eL(e,t,n){var r=new eP;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eP.prototype=eO.prototype={constructor:eP,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?eC():+n)+(null==t?0:+t),this._next||ex===this||(ex?ex._next=this:ev=this,ex=this),this._call=e,this._time=n,eN()},stop:function(){this._call&&(this._call=null,this._time=1/0,eN())}};var ez=f("start","end","cancel","interrupt"),eD=[];function eB(e,t,n,r,i,o){var l=e.__transition;if(l){if(n in l)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(a){var u,c,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return eL(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(eL(function(){3===n.state&&(n.state=4,n.timer.restart(l,n.delay,n.time),l(a))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(u=0,n.state=3,r=Array(h=n.tween.length),c=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function l(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,l=r.length;++o<l;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=eO(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:ez,tween:eD,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ej(e,t){var n=eH(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function eF(e,t){var n=eH(e,t);if(n.state>3)throw Error("too late; already running");return n}function eH(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eq(e,t){var n,r,i,o=e.__transition,l=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){l=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]}l&&delete e.__transition}}function e$(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}var eU=180/Math.PI,eV={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eX(e,t,n,r,i,o){var l,s,a;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(a=e*n+t*r)&&(n-=e*a,r-=t*a),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,a/=s),e*r<t*n&&(e=-e,t=-t,a=-a,l=-l),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*eU,skewX:Math.atan(a)*eU,scaleX:l,scaleY:s}}function eY(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,l){var s,a,u,c,h=[],f=[];return o=e(o),l=e(l),!function(e,r,i,o,l,s){if(e!==i||r!==o){var a=l.push("translate(",null,t,null,n);s.push({i:a-4,x:e$(e,i)},{i:a-2,x:e$(r,o)})}else(i||o)&&l.push("translate("+i+t+o+n)}(o.translateX,o.translateY,l.translateX,l.translateY,h,f),s=o.rotate,a=l.rotate,s!==a?(s-a>180?a+=360:a-s>180&&(s+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:e$(s,a)})):a&&h.push(i(h)+"rotate("+a+r),u=o.skewX,c=l.skewX,u!==c?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:e$(u,c)}):c&&h.push(i(h)+"skewX("+c+r),!function(e,t,n,r,o,l){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");l.push({i:s-4,x:e$(e,n)},{i:s-2,x:e$(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,l.scaleX,l.scaleY,h,f),o=l=null,function(e){for(var t,n=-1,r=f.length;++n<r;)h[(t=f[n]).i]=t.x(e);return h.join("")}}}var eW=eY(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?eV:eX(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),eK=eY(function(e){return null==e?eV:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",e),e=r.transform.baseVal.consolidate())?eX((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):eV},", ",")",")");function eZ(e,t,n){var r=e._id;return e.each(function(){var e=eF(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return eH(e,r).value[t]}}function eQ(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function eJ(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function eG(){}var e0="\\s*([+-]?\\d+)\\s*",e1="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",e2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",e3=/^#([0-9a-f]{3,8})$/,e4=RegExp(`^rgb\\(${e0},${e0},${e0}\\)$`),e6=RegExp(`^rgb\\(${e2},${e2},${e2}\\)$`),e5=RegExp(`^rgba\\(${e0},${e0},${e0},${e1}\\)$`),e9=RegExp(`^rgba\\(${e2},${e2},${e2},${e1}\\)$`),e8=RegExp(`^hsl\\(${e1},${e2},${e2}\\)$`),e7=RegExp(`^hsla\\(${e1},${e2},${e2},${e1}\\)$`),te={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function tt(){return this.rgb().formatHex()}function tn(){return this.rgb().formatRgb()}function tr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=e3.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ti(t):3===n?new ts(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?to(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?to(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=e4.exec(e))?new ts(t[1],t[2],t[3],1):(t=e6.exec(e))?new ts(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=e5.exec(e))?to(t[1],t[2],t[3],t[4]):(t=e9.exec(e))?to(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=e8.exec(e))?td(t[1],t[2]/100,t[3]/100,1):(t=e7.exec(e))?td(t[1],t[2]/100,t[3]/100,t[4]):te.hasOwnProperty(e)?ti(te[e]):"transparent"===e?new ts(NaN,NaN,NaN,0):null}function ti(e){return new ts(e>>16&255,e>>8&255,255&e,1)}function to(e,t,n,r){return r<=0&&(e=t=n=NaN),new ts(e,t,n,r)}function tl(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof eG||(i=tr(i)),i)?new ts((i=i.rgb()).r,i.g,i.b,i.opacity):new ts:new ts(e,t,n,null==r?1:r)}function ts(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ta(){return`#${tf(this.r)}${tf(this.g)}${tf(this.b)}`}function tu(){let e=tc(this.opacity);return`${1===e?"rgb(":"rgba("}${th(this.r)}, ${th(this.g)}, ${th(this.b)}${1===e?")":`, ${e})`}`}function tc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function th(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tf(e){return((e=th(e))<16?"0":"")+e.toString(16)}function td(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tg(e,t,n,r)}function tp(e){if(e instanceof tg)return new tg(e.h,e.s,e.l,e.opacity);if(e instanceof eG||(e=tr(e)),!e)return new tg;if(e instanceof tg)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,s=o-i,a=(o+i)/2;return s?(l=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=a<.5?o+i:2-o-i,l*=60):s=a>0&&a<1?0:l,new tg(l,s,a,e.opacity)}function tg(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tm(e){return(e=(e||0)%360)<0?e+360:e}function ty(e){return Math.max(0,Math.min(1,e||0))}function tv(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function tx(e,t,n,r,i){var o=e*e,l=o*e;return((1-3*e+3*o-l)*t+(4-6*o+3*l)*n+(1+3*e+3*o-3*l)*r+l*i)/6}eQ(eG,tr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tt,formatHex:tt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return tp(this).formatHsl()},formatRgb:tn,toString:tn}),eQ(ts,tl,eJ(eG,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ts(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ts(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ts(th(this.r),th(this.g),th(this.b),tc(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ta,formatHex:ta,formatHex8:function(){return`#${tf(this.r)}${tf(this.g)}${tf(this.b)}${tf((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tu,toString:tu})),eQ(tg,function(e,t,n,r){return 1==arguments.length?tp(e):new tg(e,t,n,null==r?1:r)},eJ(eG,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new tg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ts(tv(e>=240?e-240:e+120,i,r),tv(e,i,r),tv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new tg(tm(this.h),ty(this.s),ty(this.l),tc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=tc(this.opacity);return`${1===e?"hsl(":"hsla("}${tm(this.h)}, ${100*ty(this.s)}%, ${100*ty(this.l)}%${1===e?")":`, ${e})`}`}}));let tb=e=>()=>e;function tw(e,t){var n=t-e;return n?function(t){return e+t*n}:tb(isNaN(e)?t:e)}let tk=function e(t){var n,r=1==(n=+t)?tw:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):tb(isNaN(e)?t:e)};function i(e,t){var n=r((e=tl(e)).r,(t=tl(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),l=tw(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=l(t),e+""}}return i.gamma=e,i}(1);function t_(e){return function(t){var n,r,i=t.length,o=Array(i),l=Array(i),s=Array(i);for(n=0;n<i;++n)r=tl(t[n]),o[n]=r.r||0,l[n]=r.g||0,s[n]=r.b||0;return o=e(o),l=e(l),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=l(e),r.b=s(e),r+""}}}t_(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],l=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return tx((n-r/t)*t,l,i,o,s)}}),t_(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],l=e[(r+1)%t],s=e[(r+2)%t];return tx((n-r/t)*t,i,o,l,s)}});var tE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tS=RegExp(tE.source,"g");function tA(e,t){var n,r,i,o,l,s=tE.lastIndex=tS.lastIndex=0,a=-1,u=[],c=[];for(e+="",t+="";(i=tE.exec(e))&&(o=tS.exec(t));)(l=o.index)>s&&(l=t.slice(s,l),u[a]?u[a]+=l:u[++a]=l),(i=i[0])===(o=o[0])?u[a]?u[a]+=o:u[++a]=o:(u[++a]=null,c.push({i:a,x:e$(i,o)})),s=tS.lastIndex;return s<t.length&&(l=t.slice(s),u[a]?u[a]+=l:u[++a]=l),u.length<2?c[0]?(n=c[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})}function tM(e,t){var n;return("number"==typeof t?e$:t instanceof tr?tk:(n=tr(t))?(t=n,tk):tA)(e,t)}var tC=et.prototype.constructor;function tT(e){return function(){this.style.removeProperty(e)}}var tP=0;function tO(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var tI=et.prototype;tO.prototype=(function(e){return et().transition(e)}).prototype={constructor:tO,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=m(e));for(var r=this._groups,i=r.length,o=Array(i),l=0;l<i;++l)for(var s,a,u=r[l],c=u.length,h=o[l]=Array(c),f=0;f<c;++f)(s=u[f])&&(a=e.call(s,s.__data__,f,u))&&("__data__"in s&&(a.__data__=s.__data__),h[f]=a,eB(h[f],t,n,f,h,eH(s,n)));return new tO(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=v(e));for(var r=this._groups,i=r.length,o=[],l=[],s=0;s<i;++s)for(var a,u=r[s],c=u.length,h=0;h<c;++h)if(a=u[h]){for(var f,d=e.call(a,a.__data__,h,u),p=eH(a,n),g=0,m=d.length;g<m;++g)(f=d[g])&&eB(f,t,n,g,d,p);o.push(d),l.push(a)}return new tO(o,l,t,n)},selectChild:tI.selectChild,selectChildren:tI.selectChildren,filter:function(e){"function"!=typeof e&&(e=x(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,l=t[i],s=l.length,a=r[i]=[],u=0;u<s;++u)(o=l[u])&&e.call(o,o.__data__,u,l)&&a.push(o);return new tO(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),l=Array(r),s=0;s<o;++s)for(var a,u=t[s],c=n[s],h=u.length,f=l[s]=Array(h),d=0;d<h;++d)(a=u[d]||c[d])&&(f[d]=a);for(;s<r;++s)l[s]=t[s];return new tO(l,this._parents,this._name,this._id)},selection:function(){return new tC(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++tP,r=this._groups,i=r.length,o=0;o<i;++o)for(var l,s=r[o],a=s.length,u=0;u<a;++u)if(l=s[u]){var c=eH(l,t);eB(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new tO(r,this._parents,e,n)},call:tI.call,nodes:tI.nodes,node:tI.node,size:tI.size,empty:tI.empty,each:tI.each,on:function(e,t){var n,r,i,o,l,s,a=this._id;return arguments.length<2?eH(this.node(),a).on.on(e):this.each((n=a,r=e,i=t,s=(r+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?ej:eF,function(){var e=s(this,n),t=e.on;t!==o&&(l=(o=t).copy()).on(r,i),e.on=l}))},attr:function(e,t){var n=R(e),r="transform"===n?eK:tM;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var l,s,a=n(this);return null==a?void this.removeAttributeNS(e.space,e.local):(l=this.getAttributeNS(e.space,e.local))===(s=a+"")?null:l===r&&s===i?o:(i=s,o=t(r=l,a))}}:function(e,t,n){var r,i,o;return function(){var l,s,a=n(this);return null==a?void this.removeAttribute(e):(l=this.getAttribute(e))===(s=a+"")?null:l===r&&s===i?o:(i=s,o=t(r=l,a))}})(n,r,eZ(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,o=n+"";return function(){var l=this.getAttributeNS(e.space,e.local);return l===o?null:l===r?i:i=t(r=l,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var l=this.getAttribute(e);return l===o?null:l===r?i:i=t(r=l,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=R(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,o,l,s,a,u,c,h,f,d,p,g,m,y,v,x,b,w,k,_,E="transform"==(e+="")?eW:tM;return null==t?this.styleTween(e,(r=e,function(){var e=L(this,r),t=(this.style.removeProperty(r),L(this,r));return e===t?null:e===i&&t===o?l:l=E(i=e,o=t)})).on("end.style."+e,tT(e)):"function"==typeof t?this.styleTween(e,(s=e,a=eZ(this,"style."+e,t),function(){var e=L(this,s),t=a(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=L(this,s)),e===n?null:e===u&&n===c?h:(c=n,h=E(u=e,t))})).each((f=this._id,x="end."+(v="style."+(d=e)),function(){var e=eF(this,f),t=e.on,n=null==e.value[v]?y||(y=tT(d)):void 0;(t!==p||m!==n)&&(g=(p=t).copy()).on(x,m=n),e.on=g})):this.styleTween(e,(b=e,_=t+"",function(){var e=L(this,b);return e===_?null:e===w?k:k=E(w=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=eZ(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=eH(this.node(),n).tween,o=0,l=i.length;o<l;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=eF(this,e),o=i.tween;if(o!==n){r=n=o;for(var l=0,s=r.length;l<s;++l)if(r[l].name===t){(r=r.slice()).splice(l,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=eF(this,e),l=o.tween;if(l!==r){i=(r=l).slice();for(var s={name:t,value:n},a=0,u=i.length;a<u;++a)if(i[a].name===t){i[a]=s;break}a===u&&i.push(s)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){ej(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){ej(this,e).delay=t}})(t,e)):eH(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eF(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eF(this,e).duration=t}})(t,e)):eH(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){eF(this,e).ease=t}}(t,e)):eH(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();eF(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,l){var s={value:l},a={value:function(){0==--i&&o()}};n.each(function(){var n=eF(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(a)),n.on=t}),0===i&&o()})},[Symbol.iterator]:tI[Symbol.iterator]};var tR={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};et.prototype.interrupt=function(e){return this.each(function(){eq(this,e)})},et.prototype.transition=function(e){var t,n;e instanceof tO?(t=e._id,e=e._name):(t=++tP,(n=tR).time=eC(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var l,s=r[o],a=s.length,u=0;u<a;++u)(l=s[u])&&eB(l,e,t,u,s,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(l,t));return new tO(r,this._parents,e,t)};let tN=e=>()=>e;function tL(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function tz(e,t,n){this.k=e,this.x=t,this.y=n}tz.prototype={constructor:tz,scale:function(e){return 1===e?this:new tz(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new tz(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var tD=new tz(1,0,0);function tB(e){for(;!e.__zoom;)if(!(e=e.parentNode))return tD;return e.__zoom}function tj(e){e.stopImmediatePropagation()}function tF(e){e.preventDefault(),e.stopImmediatePropagation()}function tH(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function tq(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function t$(){return this.__zoom||tD}function tU(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function tV(){return navigator.maxTouchPoints||"ontouchstart"in this}function tX(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],l=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),l>o?(o+l)/2:Math.min(0,o)||Math.max(0,l))}function tY(){var e,t,n,r=tH,i=tq,o=tX,l=tU,s=tV,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],c=250,h=ey,d=f("start","zoom","end"),p=0,g=10;function m(e){e.property("__zoom",t$).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",S).filter(s).on("touchstart.zoom",A).on("touchmove.zoom",M).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(a[0],Math.min(a[1],t)))===e.k?e:new tz(t,e.x,e.y)}function v(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new tz(e.k,r,i)}function x(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,n,r){e.on("start.zoom",function(){w(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,o=w(this,e).event(r),l=i.apply(this,e),s=null==n?x(l):"function"==typeof n?n.apply(this,e):n,a=Math.max(l[1][0]-l[0][0],l[1][1]-l[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,f=h(u.invert(s).concat(a/u.k),c.invert(s).concat(a/c.k));return function(e){if(1===e)e=c;else{var t=f(e),n=a/t[2];e=new tz(n,s[0]-t[0]*n,s[1]-t[1]*n)}o.zoom(null,e)}})}function w(e,t,n){return!n&&e.__zooming||new k(e,t)}function k(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function _(e,...t){if(r.apply(this,arguments)){var n=w(this,t).event(e),i=this.__zoom,s=Math.max(a[0],Math.min(a[1],i.k*Math.pow(2,l.apply(this,arguments)))),c=er(e);if(n.wheel)(n.mouse[0][0]!==c[0]||n.mouse[0][1]!==c[1])&&(n.mouse[1]=i.invert(n.mouse[0]=c)),clearTimeout(n.wheel);else{if(i.k===s)return;n.mouse=[c,i.invert(c)],eq(this),n.start()}tF(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(v(y(i,s),n.mouse[0],n.mouse[1]),n.extent,u))}}function E(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,l=w(this,t,!0).event(e),s=en(e.view).on("mousemove.zoom",function(e){if(tF(e),!l.moved){var t=e.clientX-c,n=e.clientY-h;l.moved=t*t+n*n>p}l.event(e).zoom("mouse",o(v(l.that.__zoom,l.mouse[0]=er(e,i),l.mouse[1]),l.extent,u))},!0).on("mouseup.zoom",function(e){s.on("mousemove.zoom mouseup.zoom",null),eu(e.view,l.moved),tF(e),l.event(e).end()},!0),a=er(e,i),c=e.clientX,h=e.clientY;ea(e.view),tj(e),l.mouse=[a,this.__zoom.invert(a)],eq(this),l.start()}}function S(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,l=er(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(l),a=n.k*(e.shiftKey?.5:2),h=o(v(y(n,a),l,s),i.apply(this,t),u);tF(e),c>0?en(this).transition().duration(c).call(b,h,l,e):en(this).call(m.transform,h,l,e)}}function A(n,...i){if(r.apply(this,arguments)){var o,l,s,a,u=n.touches,c=u.length,h=w(this,i,n.changedTouches.length===c).event(n);for(tj(n),l=0;l<c;++l)a=[a=er(s=u[l],this),this.__zoom.invert(a),s.identifier],h.touch0?h.touch1||h.touch0[2]===a[2]||(h.touch1=a,h.taps=0):(h.touch0=a,o=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(h.taps<2&&(t=a[0],e=setTimeout(function(){e=null},500)),eq(this),h.start())}}function M(e,...t){if(this.__zooming){var n,r,i,l,s=w(this,t).event(e),a=e.changedTouches,c=a.length;for(tF(e),n=0;n<c;++n)i=er(r=a[n],this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var h=s.touch0[0],f=s.touch0[1],d=s.touch1[0],p=s.touch1[1],g=(g=d[0]-h[0])*g+(g=d[1]-h[1])*g,m=(m=p[0]-f[0])*m+(m=p[1]-f[1])*m;r=y(r,Math.sqrt(g/m)),i=[(h[0]+d[0])/2,(h[1]+d[1])/2],l=[(f[0]+p[0])/2,(f[1]+p[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],l=s.touch0[1]}s.zoom("touch",o(v(r,i,l),s.extent,u))}}function C(e,...r){if(this.__zooming){var i,o,l=w(this,r).event(e),s=e.changedTouches,a=s.length;for(tj(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<a;++i)o=s[i],l.touch0&&l.touch0[2]===o.identifier?delete l.touch0:l.touch1&&l.touch1[2]===o.identifier&&delete l.touch1;if(l.touch1&&!l.touch0&&(l.touch0=l.touch1,delete l.touch1),l.touch0)l.touch0[1]=this.__zoom.invert(l.touch0[0]);else if(l.end(),2===l.taps&&(o=er(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<g)){var u=en(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return m.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",t$),e!==i?b(e,t,n,r):i.interrupt().each(function(){w(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},m.scaleBy=function(e,t,n,r){m.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,r)},m.scaleTo=function(e,t,n,r){m.transform(e,function(){var e=i.apply(this,arguments),r=this.__zoom,l=null==n?x(e):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(l),a="function"==typeof t?t.apply(this,arguments):t;return o(v(y(r,a),l,s),e,u)},n,r)},m.translateBy=function(e,t,n,r){m.transform(e,function(){return o(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),u)},null,r)},m.translateTo=function(e,t,n,r,l){m.transform(e,function(){var e=i.apply(this,arguments),l=this.__zoom,s=null==r?x(e):"function"==typeof r?r.apply(this,arguments):r;return o(tD.translate(s[0],s[1]).scale(l.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,u)},r,l)},k.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=en(this.that).datum();d.call(e,this.that,new tL(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:d}),t)}},m.wheelDelta=function(e){return arguments.length?(l="function"==typeof e?e:tN(+e),m):l},m.filter=function(e){return arguments.length?(r="function"==typeof e?e:tN(!!e),m):r},m.touchable=function(e){return arguments.length?(s="function"==typeof e?e:tN(!!e),m):s},m.extent=function(e){return arguments.length?(i="function"==typeof e?e:tN([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):i},m.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],m):[a[0],a[1]]},m.translateExtent=function(e){return arguments.length?(u[0][0]=+e[0][0],u[1][0]=+e[1][0],u[0][1]=+e[0][1],u[1][1]=+e[1][1],m):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},m.constrain=function(e){return arguments.length?(o=e,m):o},m.duration=function(e){return arguments.length?(c=+e,m):c},m.interpolate=function(e){return arguments.length?(h=e,m):h},m.on=function(){var e=d.on.apply(d,arguments);return e===d?m:e},m.clickDistance=function(e){return arguments.length?(p=(e*=1)*e,m):Math.sqrt(p)},m.tapDistance=function(e){return arguments.length?(g=+e,m):g},m}function tW(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?tb(t):("number"===i?e$:"string"===i?(r=tr(t))?(t=r,tk):tA:t instanceof tr?tk:t instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(n=t)||n instanceof DataView?Array.isArray(t)?function(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=Array(i),l=Array(r);for(n=0;n<i;++n)o[n]=tW(e[n],t[n]);for(;n<r;++n)l[n]=t[n];return function(e){for(n=0;n<i;++n)l[n]=o[n](e);return l}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var n,r={},i={};for(n in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)n in e?r[n]=tW(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}:e$:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}})(e,t)}tB.prototype=tz.prototype;let tK={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${"source"===e?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},tZ=[[-1/0,-1/0],[1/0,1/0]],tQ=["Enter"," ","Escape"],tJ={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};!function(e){e.Strict="strict",e.Loose="loose"}(i||(i={})),function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"}(o||(o={})),function(e){e.Partial="partial",e.Full="full"}(l||(l={}));let tG={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};!function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"}(s||(s={})),function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"}(a||(a={})),function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"}(u||(u={}));let t0={[u.Left]:u.Right,[u.Right]:u.Left,[u.Top]:u.Bottom,[u.Bottom]:u.Top};function t1(e){return null===e?null:e?"valid":"invalid"}let t2=e=>"id"in e&&"source"in e&&"target"in e,t3=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),t4=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),t6=(e,t=[0,0])=>{let{width:n,height:r}=nE(e),i=e.origin??t,o=n*i[0],l=r*i[1];return{x:e.position.x-o,y:e.position.y-l}},t5=(e,t={nodeOrigin:[0,0]})=>0===e.length?{x:0,y:0,width:0,height:0}:nu(e.reduce((e,n)=>{let r="string"==typeof n,i=t.nodeLookup||r?void 0:n;return t.nodeLookup&&(i=r?t.nodeLookup.get(n):t4(n)?n:t.nodeLookup.get(n.id)),ns(e,i?nh(i,t.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),t9=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(void 0===t.filter||t.filter(e))&&(n=ns(n,nh(e)),r=!0)}),r?nu(n):{x:0,y:0,width:0,height:0}},t8=(e,t,[n,r,i]=[0,0,1],o=!1,l=!1)=>{let s={...nv(t,[n,r,i]),width:t.width/i,height:t.height/i},a=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(l&&!n||r)continue;let i=e.width??t.width??t.initialWidth??null,u=e.height??t.height??t.initialHeight??null,c=nd(s,nc(t)),h=(i??0)*(u??0),f=o&&c>0;(!t.internals.handleBounds||f||c>=h||t.dragging)&&a.push(t)}return a};async function t7({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:o},l){if(0===e.size)return Promise.resolve(!0);let s=nw(t9(function(e,t){let n=new Map,r=t?.nodes?new Set(t.nodes.map(e=>e.id)):null;return e.forEach(e=>{e.measured.width&&e.measured.height&&(t?.includeHiddenNodes||!e.hidden)&&(!r||r.has(e.id))&&n.set(e.id,e)}),n}(e,l)),t,n,l?.minZoom??i,l?.maxZoom??o,l?.padding??.1);return await r.setViewport(s,{duration:l?.duration,ease:l?.ease,interpolate:l?.interpolate}),Promise.resolve(!0)}function ne({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:o}){let l=n.get(e),s=l.parentId?n.get(l.parentId):void 0,{x:a,y:u}=s?s.internals.positionAbsolute:{x:0,y:0},c=l.origin??r,h=l.extent||i;if("parent"!==l.extent||l.expandParent)s&&n_(l.extent)&&(h=[[l.extent[0][0]+a,l.extent[0][1]+u],[l.extent[1][0]+a,l.extent[1][1]+u]]);else if(s){let e=s.measured.width,t=s.measured.height;e&&t&&(h=[[a,u],[a+e,u+t]])}else o?.("005",tK.error005());let f=n_(h)?nr(t,h,l.measured):t;return(void 0===l.measured.width||void 0===l.measured.height)&&o?.("015",tK.error015()),{position:{x:f.x-a+(l.measured.width??0)*c[0],y:f.y-u+(l.measured.height??0)*c[1]},positionAbsolute:f}}async function nt({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){let o=new Set(e.map(e=>e.id)),l=[];for(let e of n){if(!1===e.deletable)continue;let t=o.has(e.id),n=!t&&e.parentId&&l.find(t=>t.id===e.parentId);(t||n)&&l.push(e)}let s=new Set(t.map(e=>e.id)),a=r.filter(e=>!1!==e.deletable),u=((e,t)=>{let n=new Set;return e.forEach(e=>{n.add(e.id)}),t.filter(e=>n.has(e.source)||n.has(e.target))})(l,a);for(let e of a)s.has(e.id)&&!u.find(t=>t.id===e.id)&&u.push(e);if(!i)return{edges:u,nodes:l};let c=await i({nodes:l,edges:u});return"boolean"==typeof c?c?{edges:u,nodes:l}:{edges:[],nodes:[]}:c}let nn=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),nr=(e={x:0,y:0},t,n)=>({x:nn(e.x,t[0][0],t[1][0]-(n?.width??0)),y:nn(e.y,t[0][1],t[1][1]-(n?.height??0))});function ni(e,t,n){let{width:r,height:i}=nE(n),{x:o,y:l}=n.internals.positionAbsolute;return nr(e,[[o,l],[o+r,l+i]],t)}let no=(e,t,n)=>e<t?nn(Math.abs(e-t),1,t)/t:e>n?-nn(Math.abs(e-n),1,t)/t:0,nl=(e,t,n=15,r=40)=>[no(e.x,r,t.width-r)*n,no(e.y,r,t.height-r)*n],ns=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),na=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),nu=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),nc=(e,t=[0,0])=>{let{x:n,y:r}=t4(e)?e.internals.positionAbsolute:t6(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},nh=(e,t=[0,0])=>{let{x:n,y:r}=t4(e)?e.internals.positionAbsolute:t6(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},nf=(e,t)=>nu(ns(na(e),na(t))),nd=(e,t)=>Math.ceil(Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y))),np=e=>ng(e.width)&&ng(e.height)&&ng(e.x)&&ng(e.y),ng=e=>!isNaN(e)&&isFinite(e),nm=(e,t)=>{},ny=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),nv=({x:e,y:t},[n,r,i],o=!1,l=[1,1])=>{let s={x:(e-n)/i,y:(t-r)/i};return o?ny(s,l):s},nx=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function nb(e,t){if("number"==typeof e)return Math.floor((t-t/(1+e))*.5);if("string"==typeof e&&e.endsWith("px")){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if("string"==typeof e&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let nw=(e,t,n,r,i,o)=>{let l=function(e,t,n){if("string"==typeof e||"number"==typeof e){let r=nb(e,n),i=nb(e,t);return{top:r,right:i,bottom:r,left:i,x:2*i,y:2*r}}if("object"==typeof e){let r=nb(e.top??e.y??0,n),i=nb(e.bottom??e.y??0,n),o=nb(e.left??e.x??0,t),l=nb(e.right??e.x??0,t);return{top:r,right:l,bottom:i,left:o,x:o+l,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(o,t,n),s=nn(Math.min((t-l.x)/e.width,(n-l.y)/e.height),r,i),a=e.x+e.width/2,u=e.y+e.height/2,c=t/2-a*s,h=n/2-u*s,f=function(e,t,n,r,i,o){let{x:l,y:s}=nx(e,[t,n,r]),{x:a,y:u}=nx({x:e.x+e.width,y:e.y+e.height},[t,n,r]);return{left:Math.floor(l),top:Math.floor(s),right:Math.floor(i-a),bottom:Math.floor(o-u)}}(e,c,h,s,t,n),d={left:Math.min(f.left-l.left,0),top:Math.min(f.top-l.top,0),right:Math.min(f.right-l.right,0),bottom:Math.min(f.bottom-l.bottom,0)};return{x:c-d.left+d.right,y:h-d.top+d.bottom,zoom:s}},nk=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function n_(e){return null!=e&&"parent"!==e}function nE(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function nS(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function nA(e,t={width:0,height:0},n,r,i){let o={...e},l=r.get(n);if(l){let e=l.origin||i;o.x+=l.internals.positionAbsolute.x-(t.width??0)*e[0],o.y+=l.internals.positionAbsolute.y-(t.height??0)*e[1]}return o}function nM(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function nC(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function nT(e){return{...tJ,...e||{}}}function nP(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:o,y:l}=nz(e),s=nv({x:o-(i?.left??0),y:l-(i?.top??0)},r),{x:a,y:u}=n?ny(s,t):s;return{xSnapped:a,ySnapped:u,...s}}let nO=e=>({width:e.offsetWidth,height:e.offsetHeight}),nI=e=>e?.getRootNode?.()||window?.document,nR=["INPUT","SELECT","TEXTAREA"];function nN(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1&&(nR.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey"))}let nL=e=>"clientX"in e,nz=(e,t)=>{let n=nL(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},nD=(e,t,n,r,i)=>{let o=t.querySelectorAll(`.${e}`);return o&&o.length?Array.from(o).map(t=>{let o=t.getBoundingClientRect();return{id:t.getAttribute("data-handleid"),type:e,nodeId:i,position:t.getAttribute("data-handlepos"),x:(o.left-n.left)/r,y:(o.top-n.top)/r,...nO(t)}}):null};function nB({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:l,targetControlY:s}){let a=.125*e+.375*i+.375*l+.125*n,u=.125*t+.375*o+.375*s+.125*r,c=Math.abs(a-e),h=Math.abs(u-t);return[a,u,c,h]}function nj(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function nF({pos:e,x1:t,y1:n,x2:r,y2:i,c:o}){switch(e){case u.Left:return[t-nj(t-r,o),n];case u.Right:return[t+nj(r-t,o),n];case u.Top:return[t,n-nj(n-i,o)];case u.Bottom:return[t,n+nj(i-n,o)]}}function nH({sourceX:e,sourceY:t,sourcePosition:n=u.Bottom,targetX:r,targetY:i,targetPosition:o=u.Top,curvature:l=.25}){let[s,a]=nF({pos:n,x1:e,y1:t,x2:r,y2:i,c:l}),[c,h]=nF({pos:o,x1:r,y1:i,x2:e,y2:t,c:l}),[f,d,p,g]=nB({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:a,targetControlX:c,targetControlY:h});return[`M${e},${t} C${s},${a} ${c},${h} ${r},${i}`,f,d,p,g]}function nq({sourceX:e,sourceY:t,targetX:n,targetY:r}){let i=Math.abs(n-e)/2,o=Math.abs(r-t)/2;return[n<e?n+i:n-i,r<t?r+o:r-o,i,o]}function n$({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:o="basic"}){if("manual"===o)return r;let l=Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0);return(i&&n?r+1e3:r)+l}function nU({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){let o=ns(nh(e),nh(t));return o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1),nd({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},nu(o))>0}let nV=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,nX=(e,t,n={})=>{let r;if(!e.source||!e.target)return nm("006",tK.error006()),t;let i=n.getEdgeId||nV;return((e,t)=>t.some(t=>t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle)))(r=t2(e)?{...e}:{...e,id:i(e)},t)?t:(null===r.sourceHandle&&delete r.sourceHandle,null===r.targetHandle&&delete r.targetHandle,t.concat(r))};function nY({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[i,o,l,s]=nq({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,o,l,s]}let nW={[u.Left]:{x:-1,y:0},[u.Right]:{x:1,y:0},[u.Top]:{x:0,y:-1},[u.Bottom]:{x:0,y:1}},nK=({source:e,sourcePosition:t=u.Bottom,target:n})=>t===u.Left||t===u.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},nZ=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function nQ({sourceX:e,sourceY:t,sourcePosition:n=u.Bottom,targetX:r,targetY:i,targetPosition:o=u.Top,borderRadius:l=5,centerX:s,centerY:a,offset:c=20,stepPosition:h=.5}){let[f,d,p,g,m]=function({source:e,sourcePosition:t=u.Bottom,target:n,targetPosition:r=u.Top,center:i,offset:o,stepPosition:l}){let s,a,c=nW[t],h=nW[r],f={x:e.x+c.x*o,y:e.y+c.y*o},d={x:n.x+h.x*o,y:n.y+h.y*o},p=nK({source:f,sourcePosition:t,target:d}),g=0!==p.x?"x":"y",m=p[g],y=[],v={x:0,y:0},x={x:0,y:0},[,,b,w]=nq({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(c[g]*h[g]==-1){"x"===g?(s=i.x??f.x+(d.x-f.x)*l,a=i.y??(f.y+d.y)/2):(s=i.x??(f.x+d.x)/2,a=i.y??f.y+(d.y-f.y)*l);let e=[{x:s,y:f.y},{x:s,y:d.y}],t=[{x:f.x,y:a},{x:d.x,y:a}];y=c[g]===m?"x"===g?e:t:"x"===g?t:e}else{let i=[{x:f.x,y:d.y}],l=[{x:d.x,y:f.y}];if(y="x"===g?c.x===m?l:i:c.y===m?i:l,t===r){let t=Math.abs(e[g]-n[g]);if(t<=o){let r=Math.min(o-1,o-t);c[g]===m?v[g]=(f[g]>e[g]?-1:1)*r:x[g]=(d[g]>n[g]?-1:1)*r}}if(t!==r){let e="x"===g?"y":"x",t=c[g]===h[e],n=f[e]>d[e],r=f[e]<d[e];(1===c[g]&&(!t&&n||t&&r)||1!==c[g]&&(!t&&r||t&&n))&&(y="x"===g?i:l)}let u={x:f.x+v.x,y:f.y+v.y},p={x:d.x+x.x,y:d.y+x.y};Math.max(Math.abs(u.x-y[0].x),Math.abs(p.x-y[0].x))>=Math.max(Math.abs(u.y-y[0].y),Math.abs(p.y-y[0].y))?(s=(u.x+p.x)/2,a=y[0].y):(s=y[0].x,a=(u.y+p.y)/2)}return[[e,{x:f.x+v.x,y:f.y+v.y},...y,{x:d.x+x.x,y:d.y+x.y},n],s,a,b,w]}({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:s,y:a},offset:c,stepPosition:h});return[f.reduce((e,t,n)=>e+(n>0&&n<f.length-1?function(e,t,n,r){let i=Math.min(nZ(e,t)/2,nZ(t,n)/2,r),{x:o,y:l}=t;if(e.x===o&&o===n.x||e.y===l&&l===n.y)return`L${o} ${l}`;if(e.y===l){let t=e.x<n.x?-1:1,r=e.y<n.y?1:-1;return`L ${o+i*t},${l}Q ${o},${l} ${o},${l+i*r}`}let s=e.x<n.x?1:-1,a=e.y<n.y?-1:1;return`L ${o},${l+i*a}Q ${o},${l} ${o+i*s},${l}`}(f[n-1],t,f[n+1],l):`${0===n?"M":"L"}${t.x} ${t.y}`),""),d,p,g,m]}function nJ(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function nG(e){let{sourceNode:t,targetNode:n}=e;if(!nJ(t)||!nJ(n))return null;let r=t.internals.handleBounds||n0(t.handles),o=n.internals.handleBounds||n0(n.handles),l=n2(r?.source??[],e.sourceHandle),s=n2(e.connectionMode===i.Strict?o?.target??[]:(o?.target??[]).concat(o?.source??[]),e.targetHandle);if(!l||!s)return e.onError?.("008",tK.error008(!l?"source":"target",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let a=l?.position||u.Bottom,c=s?.position||u.Top,h=n1(t,l,a),f=n1(n,s,c);return{sourceX:h.x,sourceY:h.y,targetX:f.x,targetY:f.y,sourcePosition:a,targetPosition:c}}function n0(e){if(!e)return null;let t=[],n=[];for(let r of e)r.width=r.width??1,r.height=r.height??1,"source"===r.type?t.push(r):"target"===r.type&&n.push(r);return{source:t,target:n}}function n1(e,t,n=u.Left,r=!1){let i=(t?.x??0)+e.internals.positionAbsolute.x,o=(t?.y??0)+e.internals.positionAbsolute.y,{width:l,height:s}=t??nE(e);if(r)return{x:i+l/2,y:o+s/2};switch(t?.position??n){case u.Top:return{x:i+l/2,y:o};case u.Right:return{x:i+l,y:o+s/2};case u.Bottom:return{x:i+l/2,y:o+s};case u.Left:return{x:i,y:o+s/2}}}function n2(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function n3(e,t){if(!e)return"";if("string"==typeof e)return e;let n=t?`${t}__`:"";return`${n}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function n4(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let o=new Set;return e.reduce((e,l)=>([l.markerStart||r,l.markerEnd||i].forEach(r=>{if(r&&"object"==typeof r){let i=n3(r,t);o.has(i)||(e.push({id:i,color:r.color||n,...r}),o.add(i))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}let n6={nodeOrigin:[0,0],nodeExtent:tZ,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},n5={...n6,checkEquality:!0};function n9(e,t){let n={...e};for(let e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function n8(e,t,n){let r=n9(n6,n);for(let n of e.values())if(n.parentId)rt(n,e,t,r);else{let e=nr(t6(n,r.nodeOrigin),n_(n.extent)?n.extent:r.nodeExtent,nE(n));n.internals.positionAbsolute=e}}function n7(e){return"manual"===e}function re(e,t,n,r={}){let i=n9(n5,r),o={i:0},l=new Map(t),s=i?.elevateNodesOnSelect&&!n7(i.zIndexMode)?1e3:0,a=e.length>0;for(let u of(t.clear(),n.clear(),e)){let e=l.get(u.id);if(i.checkEquality&&u===e?.internals.userNode)t.set(u.id,e);else{let n=nr(t6(u,i.nodeOrigin),n_(u.extent)?u.extent:i.nodeExtent,nE(u));e={...i.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:n,handleBounds:function(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],r=[];for(let t of e.handles){let i={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};"source"===t.type?n.push(i):"target"===t.type&&r.push(i)}return{source:n,target:r}}(u,e),z:rn(u,s,i.zIndexMode),userNode:u}},t.set(u.id,e)}void 0!==e.measured&&void 0!==e.measured.width&&void 0!==e.measured.height||e.hidden||(a=!1),u.parentId&&rt(e,t,n,r,o)}return a}function rt(e,t,n,r,i){let{elevateNodesOnSelect:o,nodeOrigin:l,nodeExtent:s,zIndexMode:a}=n9(n6,r),u=e.parentId,c=t.get(u);if(!c)return void console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}(e,n),i&&!c.parentId&&void 0===c.internals.rootParentIndex&&"auto"===a&&(c.internals.rootParentIndex=++i.i,c.internals.z=c.internals.z+10*i.i),i&&void 0!==c.internals.rootParentIndex&&(i.i=c.internals.rootParentIndex);let{x:h,y:f,z:d}=function(e,t,n,r,i,o){let{x:l,y:s}=t.internals.positionAbsolute,a=nE(e),u=t6(e,n),c=n_(e.extent)?nr(u,e.extent,a):u,h=nr({x:l+c.x,y:s+c.y},r,a);"parent"===e.extent&&(h=ni(h,a,t));let f=rn(e,i,o),d=t.internals.z??0;return{x:h.x,y:h.y,z:d>=f?d+1:f}}(e,c,l,s,o&&!n7(a)?1e3:0,a),{positionAbsolute:p}=e.internals,g=h!==p.x||f!==p.y;(g||d!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:g?{x:h,y:f}:p,z:d}})}function rn(e,t,n){let r=ng(e.zIndex)?e.zIndex:0;return n7(n)?r:r+(e.selected?t:0)}function rr(e,t,n,r=[0,0]){let i=[],o=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=nf(o.get(n.parentId)?.expandedRect??nc(e),n.rect);o.set(n.parentId,{expandedRect:r,parent:e})}return o.size>0&&o.forEach(({expandedRect:t,parent:o},l)=>{let s=o.internals.positionAbsolute,a=nE(o),u=o.origin??r,c=t.x<s.x?Math.round(Math.abs(s.x-t.x)):0,h=t.y<s.y?Math.round(Math.abs(s.y-t.y)):0,f=Math.max(a.width,Math.round(t.width)),d=Math.max(a.height,Math.round(t.height)),p=(f-a.width)*u[0],g=(d-a.height)*u[1];(c>0||h>0||p||g)&&(i.push({id:l,type:"position",position:{x:o.position.x-c+p,y:o.position.y-h+g}}),n.get(l)?.forEach(t=>{e.some(e=>e.id===t.id)||i.push({id:t.id,type:"position",position:{x:t.position.x+c,y:t.position.y+h}})})),(a.width<t.width||a.height<t.height||c||h)&&i.push({id:l,type:"dimensions",setAttributes:!0,dimensions:{width:f+(c?u[0]*c-p:0),height:d+(h?u[1]*h-g:0)}})}),i}function ri(e,t,n,r,i,o,l){let s=r?.querySelector(".xyflow__viewport"),a=!1;if(!s)return{changes:[],updatedInternals:a};let u=[],c=window.getComputedStyle(s),{m22:h}=new window.DOMMatrixReadOnly(c.transform),f=[];for(let r of e.values()){let e=t.get(r.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),a=!0;continue}let s=nO(r.nodeElement),c=e.measured.width!==s.width||e.measured.height!==s.height;if(s.width&&s.height&&(c||!e.internals.handleBounds||r.force)){let d=r.nodeElement.getBoundingClientRect(),p=n_(e.extent)?e.extent:o,{positionAbsolute:g}=e.internals;e.parentId&&"parent"===e.extent?g=ni(g,s,t.get(e.parentId)):p&&(g=nr(g,p,s));let m={...e,measured:s,internals:{...e.internals,positionAbsolute:g,handleBounds:{source:nD("source",r.nodeElement,d,h,e.id),target:nD("target",r.nodeElement,d,h,e.id)}}};t.set(e.id,m),e.parentId&&rt(m,t,n,{nodeOrigin:i,zIndexMode:l}),a=!0,c&&(u.push({id:e.id,type:"dimensions",dimensions:s}),e.expandParent&&e.parentId&&f.push({id:e.id,parentId:e.parentId,rect:nc(m,i)}))}}if(f.length>0){let e=rr(f,t,n,i);u.push(...e)}return{changes:u,updatedInternals:a}}async function ro({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:o}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);let l=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,o]],r);return Promise.resolve(!!l&&(l.x!==n[0]||l.y!==n[1]||l.k!==n[2]))}function rl(e,t,n,r,i,o){let l=i,s=r.get(l)||new Map;r.set(l,s.set(n,t)),l=`${i}-${e}`;let a=r.get(l)||new Map;if(r.set(l,a.set(n,t)),o){l=`${i}-${e}-${o}`;let s=r.get(l)||new Map;r.set(l,s.set(n,t))}}function rs(e,t,n){for(let r of(e.clear(),t.clear(),n)){let{source:n,target:i,sourceHandle:o=null,targetHandle:l=null}=r,s={edgeId:r.id,source:n,target:i,sourceHandle:o,targetHandle:l},a=`${n}-${o}--${i}-${l}`;rl("source",s,`${i}-${l}--${n}-${o}`,e,n,o),rl("target",s,a,e,i,l),t.set(r.id,r)}}function ra(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function ru({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let i=[];for(let[e,o]of t){let t=n.get(e)?.internals.userNode;t&&i.push({...t,position:o.position,dragging:r})}if(!e)return[i[0],i];let o=n.get(e)?.internals.userNode;return[o?{...o,position:t.get(e)?.position||o.position,dragging:r}:i[0],i]}function rc({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let o={x:null,y:null},l=0,s=new Map,a=!1,u={x:0,y:0},c=null,h=!1,d=null,p=!1,g=!1,m=null;return{update:function({noDragClassName:y,handleSelector:v,domNode:x,isSelectable:b,nodeId:w,nodeClickDistance:k=0}){function _({x:e,y:n}){let{nodeLookup:i,nodeExtent:l,snapGrid:a,snapToGrid:u,nodeOrigin:c,onNodeDrag:h,onSelectionDrag:f,onError:d,updateNodePositions:p}=t();o={x:e,y:n};let y=!1,v=s.size>1,x=v&&l?na(t9(s)):null,b=v&&u?function({dragItems:e,snapGrid:t,x:n,y:r}){let i=e.values().next().value;if(!i)return null;let o={x:n-i.distance.x,y:r-i.distance.y},l=ny(o,t);return{x:l.x-o.x,y:l.y-o.y}}({dragItems:s,snapGrid:a,x:e,y:n}):null;for(let[t,r]of s){if(!i.has(t))continue;let o={x:e-r.distance.x,y:n-r.distance.y};u&&(o=b?{x:Math.round(o.x+b.x),y:Math.round(o.y+b.y)}:ny(o,a));let s=null;if(v&&l&&!r.extent&&x){let{positionAbsolute:e}=r.internals,t=e.x-x.x+l[0][0],n=e.x+r.measured.width-x.x2+l[1][0];s=[[t,e.y-x.y+l[0][1]],[n,e.y+r.measured.height-x.y2+l[1][1]]]}let{position:h,positionAbsolute:f}=ne({nodeId:t,nextPosition:o,nodeLookup:i,nodeExtent:s||l,nodeOrigin:c,onError:d});y=y||r.position.x!==h.x||r.position.y!==h.y,r.position=h,r.internals.positionAbsolute=f}if(g=g||y,y&&(p(s,!0),m&&(r||h||!w&&f))){let[e,t]=ru({nodeId:w,dragItems:s,nodeLookup:i});r?.(m,s,e,t),h?.(m,e,t),w||f?.(m,t)}}async function E(){if(!c)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=t();if(!i){a=!1,cancelAnimationFrame(l);return}let[s,h]=nl(u,c,r);(0!==s||0!==h)&&(o.x=(o.x??0)-s/e[2],o.y=(o.y??0)-h/e[2],await n({x:s,y:h})&&_(o)),l=requestAnimationFrame(E)}function S(r){let{nodeLookup:i,multiSelectionActive:l,nodesDraggable:a,transform:u,snapGrid:f,snapToGrid:d,selectNodesOnDrag:p,onNodeDragStart:g,onSelectionDragStart:m,unselectNodesAndEdges:y}=t();h=!0,p&&b||l||!w||i.get(w)?.selected||y(),b&&p&&w&&e?.(w);let v=nP(r.sourceEvent,{transform:u,snapGrid:f,snapToGrid:d,containerBounds:c});if(o=v,(s=function(e,t,n,r){let i=new Map;for(let[o,l]of e)if((l.selected||l.id===r)&&(!l.parentId||!function e(t,n){if(!t.parentId)return!1;let r=n.get(t.parentId);return!!r&&(!!r.selected||e(r,n))}(l,e))&&(l.draggable||t&&void 0===l.draggable)){let t=e.get(o);t&&i.set(o,{id:o,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return i}(i,a,v,w)).size>0&&(n||g||!w&&m)){let[e,t]=ru({nodeId:w,dragItems:s,nodeLookup:i});n?.(r.sourceEvent,s,e,t),g?.(r.sourceEvent,e,t),w||m?.(r.sourceEvent,t)}}d=en(x);let A=(function(){var e,t,n,r,i=ef,o=ed,l=ep,s=eg,a={},u=f("start","drag","end"),c=0,h=0;function d(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",y).on("touchmove.drag",v,ei).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(l,s){if(!r&&i.call(this,l,s)){var a=b(this,o.call(this,l,s),l,s,"mouse");a&&(en(l.view).on("mousemove.drag",g,eo).on("mouseup.drag",m,eo),ea(l.view),el(l),n=!1,e=l.clientX,t=l.clientY,a("start",l))}}function g(r){if(es(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>h}a.mouse("drag",r)}function m(e){en(e.view).on("mousemove.drag mouseup.drag",null),eu(e.view,n),es(e),a.mouse("end",e)}function y(e,t){if(i.call(this,e,t)){var n,r,l=e.changedTouches,s=o.call(this,e,t),a=l.length;for(n=0;n<a;++n)(r=b(this,s,e,t,l[n].identifier,l[n]))&&(el(e),r("start",e,l[n]))}}function v(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=a[r[t].identifier])&&(es(e),n("drag",e,r[t]))}function x(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<o;++t)(n=a[i[t].identifier])&&(el(e),n("end",e,i[t]))}function b(e,t,n,r,i,o){var s,h,f,p=u.copy(),g=er(o||n,t);if(null!=(f=l.call(e,new eh("beforestart",{sourceEvent:n,target:d,identifier:i,active:c,x:g[0],y:g[1],dx:0,dy:0,dispatch:p}),r)))return s=f.x-g[0]||0,h=f.y-g[1]||0,function n(o,l,u){var m,y=g;switch(o){case"start":a[i]=n,m=c++;break;case"end":delete a[i],--c;case"drag":g=er(u||l,t),m=c}p.call(o,e,new eh(o,{sourceEvent:l,subject:f,target:d,identifier:i,active:m,x:g[0]+s,y:g[1]+h,dx:g[0]-y[0],dy:g[1]-y[1],dispatch:p}),r)}}return d.filter=function(e){return arguments.length?(i="function"==typeof e?e:ec(!!e),d):i},d.container=function(e){return arguments.length?(o="function"==typeof e?e:ec(e),d):o},d.subject=function(e){return arguments.length?(l="function"==typeof e?e:ec(e),d):l},d.touchable=function(e){return arguments.length?(s="function"==typeof e?e:ec(!!e),d):s},d.on=function(){var e=u.on.apply(u,arguments);return e===u?d:e},d.clickDistance=function(e){return arguments.length?(h=(e*=1)*e,d):Math.sqrt(h)},d})().clickDistance(k).on("start",e=>{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:l,snapToGrid:s}=t();c=n?.getBoundingClientRect()||null,p=!1,g=!1,m=e.sourceEvent,0===r&&S(e),o=nP(e.sourceEvent,{transform:i,snapGrid:l,snapToGrid:s,containerBounds:c}),u=nz(e.sourceEvent,c)}).on("drag",e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:l,nodeDragThreshold:f,nodeLookup:d}=t(),g=nP(e.sourceEvent,{transform:r,snapGrid:i,snapToGrid:l,containerBounds:c});if(m=e.sourceEvent,("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1||w&&!d.has(w))&&(p=!0),!p){if(!a&&n&&h&&(a=!0,E()),!h){let t=nz(e.sourceEvent,c),n=t.x-u.x,r=t.y-u.y;Math.sqrt(n*n+r*r)>f&&S(e)}(o.x!==g.xSnapped||o.y!==g.ySnapped)&&s&&h&&(u=nz(e.sourceEvent,c),_(g))}}).on("end",e=>{if(h&&!p&&(a=!1,h=!1,cancelAnimationFrame(l),s.size>0)){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:o,onSelectionDragStop:l}=t();if(g&&(r(s,!1),g=!1),i||o||!w&&l){let[t,r]=ru({nodeId:w,dragItems:s,nodeLookup:n,dragging:!1});i?.(e.sourceEvent,s,t,r),o?.(e.sourceEvent,t,r),w||l?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!y||!ra(t,`.${y}`,x))&&(!v||ra(t,v,x))});d.call(A)},destroy:function(){d?.on(".drag",null)}}}function rh(e,t,n,r,i,o=!1){let l=r.get(e);if(!l)return null;let s="strict"===i?l.internals.handleBounds?.[t]:[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]],a=(n?s?.find(e=>e.id===n):s?.[0])??null;return a&&o?{...a,...n1(l,a,a.position,!0)}:a}function rf(e,t){return e?e:t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null}let rd=()=>!0;function rp(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:l,doc:s,lib:a,flowId:u,isValidConnection:c=rd,nodeLookup:h}){let f="target"===l,d=t?s.querySelector(`.${a}-flow__handle[data-id="${u}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:p,y:g}=nz(e),m=s.elementFromPoint(p,g),y=m?.classList.contains(`${a}-flow__handle`)?m:d,v={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){let e=rf(void 0,y),t=y.getAttribute("data-nodeid"),l=y.getAttribute("data-handleid"),s=y.classList.contains("connectable"),a=y.classList.contains("connectableend");if(!t||!e)return v;let u={source:f?t:r,sourceHandle:f?l:o,target:f?r:t,targetHandle:f?o:l};v.connection=u,v.isValid=s&&a&&(n===i.Strict?f&&"source"===e||!f&&"target"===e:t!==r||l!==o)&&c(u),v.toHandle=rh(t,e,l,h,n,!0)}return v}let rg={onPointerDown:function(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:o,isTarget:l,domNode:s,nodeLookup:a,lib:c,autoPanOnConnect:h,flowId:f,panBy:d,cancelConnection:p,onConnectStart:g,onConnect:m,onConnectEnd:y,isValidConnection:v=rd,onReconnectEnd:x,updateConnection:b,getTransform:w,getFromHandle:k,autoPanSpeed:_,dragThreshold:E=1,handleDomNode:S}){let A,M=nI(e.target),C=0,{x:T,y:P}=nz(e),O=rf(o,S),I=s?.getBoundingClientRect(),R=!1;if(!I||!O)return;let N=rh(i,O,r,a,t);if(!N)return;let L=nz(e,I),z=!1,D=null,B=!1,j=null,F={...N,nodeId:i,type:O,position:N.position},H=a.get(i),q={inProgress:!0,isValid:null,from:n1(H,F,u.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:H,to:L,toHandle:null,toPosition:t0[F.position],toNode:null,pointer:L};function $(){R=!0,b(q),g?.(e,{nodeId:i,handleId:r,handleType:O})}function U(e){var o,s;let p;if(!R){let{x:t,y:n}=nz(e),r=t-T,i=n-P;if(!(r*r+i*i>E*E))return;$()}if(!k()||!F)return void V(e);let g=w();A=function(e,t,n,r){let i=[],o=1/0;for(let l of function(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:2*n,height:2*n};for(let e of t.values())nd(i,nc(e))>0&&r.push(e);return r}(e,n,t+250))for(let n of[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:s,y:a}=n1(l,n,n.position,!0),u=Math.sqrt(Math.pow(s-e.x,2)+Math.pow(a-e.y,2));u>t||(u<o?(i=[{...n,x:s,y:a}],o=u):u===o&&i.push({...n,x:s,y:a}))}if(!i.length)return null;if(i.length>1){let e="source"===r.type?"target":"source";return i.find(t=>t.type===e)??i[0]}return i[0]}(nv(L=nz(e,I),g,!1,[1,1]),n,a,F),z||(!function e(){if(!h||!I)return;let[t,n]=nl(L,I,_);d({x:t,y:n}),C=requestAnimationFrame(e)}(),z=!0);let m=rp(e,{handle:A,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:l?"target":"source",isValidConnection:v,doc:M,lib:c,flowId:f,nodeLookup:a});j=m.handleDomNode,D=m.connection,o=!!A,s=m.isValid,p=null,s?p=!0:o&&!s&&(p=!1),B=p;let y=a.get(i),x=y?n1(y,F,u.Left,!0):q.from,S={...q,from:x,isValid:B,to:m.toHandle&&B?nx({x:m.toHandle.x,y:m.toHandle.y},g):L,toHandle:m.toHandle,toPosition:B&&m.toHandle?m.toHandle.position:t0[F.position],toNode:m.toHandle?a.get(m.toHandle.nodeId):null,pointer:L};b(S),q=S}function V(e){if(!("touches"in e)||!(e.touches.length>0)){if(R){(A||j)&&D&&B&&m?.(D);let{inProgress:t,...n}=q,r={...n,toPosition:q.toHandle?q.toPosition:null};y?.(e,r),o&&x?.(e,r)}p(),cancelAnimationFrame(C),z=!1,B=!1,D=null,j=null,M.removeEventListener("mousemove",U),M.removeEventListener("mouseup",V),M.removeEventListener("touchmove",U),M.removeEventListener("touchend",V)}}0===E&&$(),M.addEventListener("mousemove",U),M.addEventListener("mouseup",V),M.addEventListener("touchmove",U),M.addEventListener("touchend",V)},isValid:rp};function rm({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let i=en(e);return{update:function({translateExtent:e,width:o,height:l,zoomStep:s=1,pannable:a=!0,zoomable:u=!0,inversePan:c=!1}){let h=[0,0],f=tY().on("start",e=>{("mousedown"===e.sourceEvent.type||"touchstart"===e.sourceEvent.type)&&(h=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on("zoom",a?i=>{let s=n();if("mousemove"!==i.sourceEvent.type&&"touchmove"!==i.sourceEvent.type||!t)return;let a=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],u=[a[0]-h[0],a[1]-h[1]];h=a;let f=r()*Math.max(s[2],Math.log(s[2]))*(c?-1:1),d={x:s[0]-u[0]*f,y:s[1]-u[1]*f};t.setViewportConstrained({x:d.x,y:d.y,zoom:s[2]},[[0,0],[o,l]],e)}:null).on("zoom.wheel",u?e=>{if("wheel"!==e.sourceEvent.type||!t)return;let r=n(),i=e.sourceEvent.ctrlKey&&nk()?10:1,o=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*s,l=r[2]*Math.pow(2,o*i);t.scaleTo(l)}:null);i.call(f,{})},destroy:function(){i.on("zoom",null)},pointer:er}}let ry=e=>({x:e.x,y:e.y,zoom:e.k}),rv=({x:e,y:t,zoom:n})=>tD.translate(e,t).scale(n),rx=(e,t)=>e.target.closest(`.${t}`),rb=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),rw=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,rk=(e,t=0,n=rw,r=()=>{})=>{let i="number"==typeof t&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on("end",r):e},r_=e=>{let t=e.ctrlKey&&nk()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t};function rE({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:l,onPanZoomStart:s,onPanZoomEnd:a,onDraggingChange:u}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),f=tY().scaleExtent([t,n]).translateExtent(r),d=en(e).call(f);v({x:i.x,y:i.y,zoom:nn(i.zoom,t,n)},[[0,0],[h.width,h.height]],r);let p=d.on("wheel.zoom"),g=d.on("dblclick.zoom");function m(e,t){return d?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?tW:ey).transform(rk(d,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)}function y(){f.on("zoom",null)}async function v(e,t,n){let r=rv(e),i=f?.constrain()(r,t,n);return i&&await m(i),new Promise(e=>e(i))}return f.wheelDelta(r_),{update:function({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:h,panOnScrollMode:m,panOnScrollSpeed:v,preventScrolling:x,zoomOnPinch:b,zoomOnScroll:w,zoomOnDoubleClick:k,zoomActivationKeyPressed:_,lib:E,onTransformChange:S,connectionInProgress:A,paneClickDistance:M,selectionOnDrag:C}){r&&!c.isZoomingOrPanning&&y();let T=i&&!_&&!r;f.clickDistance(C?1/0:!ng(M)||M<0?0:M);let P=T?function({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:l,zoomOnPinch:s,onPanZoomStart:a,onPanZoom:u,onPanZoomEnd:c}){return h=>{if(rx(h,t))return h.ctrlKey&&h.preventDefault(),!1;h.preventDefault(),h.stopImmediatePropagation();let f=n.property("__zoom").k||1;if(h.ctrlKey&&s){let e=er(h),t=f*Math.pow(2,r_(h));r.scaleTo(n,t,e,h);return}let d=1===h.deltaMode?20:1,p=i===o.Vertical?0:h.deltaX*d,g=i===o.Horizontal?0:h.deltaY*d;!nk()&&h.shiftKey&&i!==o.Vertical&&(p=h.deltaY*d,g=0),r.translateBy(n,-(p/f)*l,-(g/f)*l,{internal:!0});let m=ry(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(u?.(h,m),e.panScrollTimeout=setTimeout(()=>{c?.(h,m),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,a?.(h,m))}}({zoomPanValues:c,noWheelClassName:e,d3Selection:d,d3Zoom:f,panOnScrollMode:m,panOnScrollSpeed:v,zoomOnPinch:b,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:a}):function({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){let o="wheel"===r.type,l=!t&&o&&!r.ctrlKey,s=rx(r,e);if(r.ctrlKey&&o&&s&&r.preventDefault(),l||s)return null;r.preventDefault(),n.call(this,r,i)}}({noWheelClassName:e,preventScrolling:x,d3ZoomHandler:p});if(d.on("wheel.zoom",P,{passive:!1}),!r){let e=function({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=ry(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=i,r.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(r.sourceEvent,i)}}({zoomPanValues:c,onDraggingChange:u,onPanZoomStart:s});f.on("start",e);let t=function({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return o=>{e.usedRightMouseButton=!!(n&&rb(t,e.mouseButton??0)),o.sourceEvent?.sync||r([o.transform.x,o.transform.y,o.transform.k]),i&&!o.sourceEvent?.internal&&i?.(o.sourceEvent,ry(o.transform))}}({zoomPanValues:c,panOnDrag:h,onPaneContextMenu:!!n,onPanZoom:l,onTransformChange:S});f.on("zoom",t);let r=function({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:o}){return l=>{if(!l.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,o&&rb(t,e.mouseButton??0)&&!e.usedRightMouseButton&&l.sourceEvent&&o(l.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){let t=ry(l.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i?.(l.sourceEvent,t)},150*!!n)}}}({zoomPanValues:c,panOnDrag:h,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:a,onDraggingChange:u});f.on("end",r)}let O=function({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:o,userSelectionActive:l,noWheelClassName:s,noPanClassName:a,lib:u,connectionInProgress:c}){return h=>{let f=e||t,d=n&&h.ctrlKey,p="wheel"===h.type;if(1===h.button&&"mousedown"===h.type&&(rx(h,`${u}-flow__node`)||rx(h,`${u}-flow__edge`)))return!0;if(!r&&!f&&!i&&!o&&!n||l||c&&!p||rx(h,s)&&p||rx(h,a)&&(!p||i&&p&&!e)||!n&&h.ctrlKey&&p)return!1;if(!n&&"touchstart"===h.type&&h.touches?.length>1)return h.preventDefault(),!1;if(!f&&!i&&!d&&p||!r&&("mousedown"===h.type||"touchstart"===h.type)||Array.isArray(r)&&!r.includes(h.button)&&"mousedown"===h.type)return!1;let g=Array.isArray(r)&&r.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||p)&&g}}({zoomActivationKeyPressed:_,panOnDrag:h,zoomOnScroll:w,panOnScroll:i,zoomOnDoubleClick:k,zoomOnPinch:b,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:E,connectionInProgress:A});f.filter(O),k?d.on("dblclick.zoom",g):d.on("dblclick.zoom",null)},destroy:y,setViewport:async function e(e,t){let n=rv(e);return await m(n,t),new Promise(e=>e(n))},setViewportConstrained:v,getViewport:function(){let e=d?tB(d.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}},scaleTo:function(e,t){return d?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?tW:ey).scaleTo(rk(d,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},scaleBy:function(e,t){return d?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?tW:ey).scaleBy(rk(d,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},setScaleExtent:function(e){f?.scaleExtent(e)},setTranslateExtent:function(e){f?.translateExtent(e)},syncViewport:function(e){if(d){let t=rv(e),n=d.property("__zoom");(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&f?.transform(d,t,null,{sync:!0})}},setClickDistance:function(e){let t=!ng(e)||e<0?0:e;f?.clickDistance(t)}}}!function(e){e.Line="line",e.Handle="handle"}(c||(c={}))},5133:(e,t,n)=>{"use strict";n.d(t,{p:()=>d});var r=n(4669),i=n(9814),o=n(3382),l=n(6992),s=n(4926),a=n(9023),u=n(7951),c=n(9984),h=n(971),f=n(6409);let d=r.forwardRef(function(e,t){let{className:n,defaultValue:d=0,onValueChange:p,orientation:g="horizontal",render:m,value:y,...v}=e,x=(0,u.j)(),b=Object.hasOwn(e,"defaultValue"),w=r.useRef([]),[k,_]=r.useState(()=>new Map),[E,S]=(0,i.q)({controlled:y,default:d,name:"Tabs",state:"value"}),A=void 0!==y,[M,C]=r.useState(()=>new Map),[T,P]=r.useState("none"),O=(0,l.K)((e,t)=>{null==p||p(e,t),t.isCanceled||(S(e),P(t.activationDirection))}),I=(0,l.K)((e,t)=>{_(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),R=(0,l.K)((e,t)=>{_(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),N=r.useCallback(e=>k.get(e),[k]),L=r.useCallback(e=>{for(let t of M.values())if(e===(null==t?void 0:t.value))return null==t?void 0:t.id},[M]),z=r.useCallback(e=>{if(void 0===e)return null;for(let[n,r]of M.entries()){var t;if(null!=r&&e===(null!=(t=r.value)?t:r.index))return n}return null},[M]),D=r.useMemo(()=>({direction:x,getTabElementBySelectedValue:z,getTabIdByPanelValue:L,getTabPanelIdByValue:N,onValueChange:O,orientation:g,registerMountedTabPanel:I,setTabMap:C,unregisterMountedTabPanel:R,tabActivationDirection:T,value:E}),[x,z,L,N,O,g,I,C,R,T,E]),B=r.useMemo(()=>{for(let e of M.values())if(null!=e&&e.value===E)return e},[M,E]),j=r.useMemo(()=>{for(let e of M.values())if(null!=e&&!e.disabled)return e.value},[M]);(0,o.g)(()=>{if(A||0===M.size)return;let e=null==B?void 0:B.disabled,t=null==B&&null!==E;if(b&&e&&E===d||!e&&!t)return;let n=null!=j?j:null;E!==n&&(S(n),P("none"))},[d,j,b,A,B,P,S,M,E]);let F=(0,s.o)("div",e,{state:{orientation:g,tabActivationDirection:T},ref:t,props:v,stateAttributesMapping:h.h});return(0,f.jsx)(c.G.Provider,{value:D,children:(0,f.jsx)(a.u,{elementsRef:w,children:F})})})},5285:()=>{},5338:(e,t,n)=>{"use strict";var r=n(4669),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,l=r.useEffect,s=r.useLayoutEffect,a=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),l(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),a(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},5386:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,M:()=>o});var r=n(4669);let i=r.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function o(){return r.useContext(i)}},5456:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7135),i=n(4669);let o=[];class l{static create(){return new l}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}}function s(){var e;let t=(0,r.j)(l.create).current;return e=t.disposeEffect,i.useEffect(e,o),t}},5468:(e,t,n)=>{"use strict";n.d(t,{M:()=>x});var r=n(4669),i=n(912),o=n(3382),l=n(7309),s=n(4926),a=n(5193),u=n(660),c=n(2334),h=n(9330),f=n(5386);let d=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});var p=n(9984),g=n(4716),m=n(764),y=n(7030),v=n(213);let x=r.forwardRef(function(e,t){let{className:n,disabled:x=!1,render:b,value:w,id:k,nativeButton:_=!0,...E}=e,{value:S,getTabPanelIdByValue:A,orientation:M}=(0,p.z)(),{activateOnFocus:C,highlightedTabIndex:T,onTabActivation:P,registerTabResizeObserverElement:O,setHighlightedTabIndex:I,tabsListElement:R}=(0,g.b)(),N=(0,l.e)(k),{compositeProps:L,compositeRef:z,index:D}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:i}=(0,h.G)(),{ref:l,index:s}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{label:t,metadata:n,textRef:i,indexGuessBehavior:l,index:s}=e,{register:a,unregister:u,subscribeMapChange:c,elementsRef:h,labelsRef:p,nextIndexRef:g}=(0,f.M)(),m=r.useRef(-1),[y,v]=r.useState(null!=s?s:l===d.GuessFromOrder?()=>{if(-1===m.current){let e=g.current;g.current+=1,m.current=e}return m.current}:-1),x=r.useRef(null),b=r.useCallback(e=>{if(x.current=e,-1!==y&&null!==e&&(h.current[y]=e,p)){var n,r;let o=void 0!==t;p.current[y]=o?t:null!=(r=null==i||null==(n=i.current)?void 0:n.textContent)?r:e.textContent}},[y,h,p,t,i]);return(0,o.g)(()=>{if(null!=s)return;let e=x.current;if(e)return a(e,n),()=>{u(e)}},[s,a,u,n]),(0,o.g)(()=>{if(null==s)return c(e=>{var t;let n=x.current?null==(t=e.get(x.current))?void 0:t.index:null;null!=n&&v(n)})},[s,c,v]),r.useMemo(()=>({ref:b,index:y}),[y,b])}(e),a=n===s,u=r.useRef(null),p=(0,c.a)(l,u);return{compositeProps:r.useMemo(()=>({tabIndex:a?0:-1,onFocus(){i(s)},onMouseMove(){let e=u.current;if(!t||!e)return;let n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;a||n||e.focus()}}),[a,i,s,t]),compositeRef:p,index:s}}({metadata:r.useMemo(()=>({disabled:x,id:N,value:w}),[x,N,w])}),B=w===S,j=r.useRef(!1),F=r.useRef(null);r.useEffect(()=>{let e=F.current;if(e)return O(e)},[O]),(0,o.g)(()=>{if(j.current){j.current=!1;return}if(B&&D>-1&&T!==D){if(null!=R){let e=(0,v.RS)((0,i.R)(R));if(e&&(0,v.gR)(R,e))return}x||I(D)}},[B,D,T,I,x,R]);let{getButtonProps:H,buttonRef:q}=(0,a.s)({disabled:x,native:_,focusableWhenDisabled:!0}),$=A(w),U=r.useRef(!1),V=r.useRef(!1);return(0,s.o)("button",e,{state:{disabled:x,active:B,orientation:M},ref:[t,q,z,F],props:[L,{role:"tab","aria-controls":$,"aria-selected":B,id:N,onClick:function(e){B||x||P(w,(0,m.d)(y.dv,e.nativeEvent,void 0,{activationDirection:"none"}))},onFocus:function(e){!B&&(D>-1&&!x&&I(D),!x&&C&&(!U.current||U.current&&V.current)&&P(w,(0,m.d)(y.dv,e.nativeEvent,void 0,{activationDirection:"none"})))},onPointerDown:function(e){B||x||(U.current=!0,e.button&&0!==e.button||(V.current=!0,(0,i.R)(e.currentTarget).addEventListener("pointerup",function(){U.current=!1,V.current=!1},{once:!0})))},[u.h]:B?"":void 0,onKeyDownCapture(){j.current=!0}},E,H]})})},5595:(e,t,n)=>{"use strict";n.d(t,{G:()=>o,r:()=>l});var r=n(1851),i=n(4669);let o=i.createContext(void 0);function l(){let e=i.useContext(o);if(void 0===e)throw Error((0,r.A)(54));return e}},5608:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]])},5676:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(4669),i=n(3605),o=n(5595),l=n(3925),s=n(4926);let a=r.forwardRef(function(e,t){let{render:n,className:r,...a}=e,{thumbYRef:u,thumbXRef:c,handlePointerDown:h,handlePointerMove:f,handlePointerUp:d,setScrollingX:p,setScrollingY:g,hasMeasuredScrollbar:m}=(0,i.p)(),{orientation:y}=(0,o.r)();return(0,s.o)("div",e,{ref:[t,"vertical"===y?u:c],state:{orientation:y},props:[{onPointerDown:h,onPointerMove:f,onPointerUp(e){"vertical"===y&&g(!1),"horizontal"===y&&p(!1),d(e)},style:{visibility:m?void 0:"hidden",..."vertical"===y&&{height:"var(".concat(l.q.scrollAreaThumbHeight,")")},..."horizontal"===y&&{width:"var(".concat(l.q.scrollAreaThumbWidth,")")}}},a]})})},5694:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},5784:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},5847:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]])},5929:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},6176:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(4669),i=n(3605),o=n(4926);let l=r.forwardRef(function(e,t){let{render:n,className:r,...l}=e,{cornerRef:s,cornerSize:a,hiddenState:u}=(0,i.p)(),c=(0,o.o)("div",e,{ref:[t,s],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:a.width,height:a.height}},l]});return u.corner?null:c})},6333:(e,t,n)=>{"use strict";n.d(t,{j:()=>U});var r=n(4669),i=n(6992),o=n(3382),l=n(9023),s=n(2334),a=n(756);let u="ArrowUp",c="ArrowDown",h="ArrowLeft",f="ArrowRight",d="Home",p=new Set([h,f]),g=new Set([h,f,d,"End"]),m=new Set([u,c]),y=new Set([u,c,d,"End"]),v=new Set([...p,...m]),x=new Set([...v,d,"End"]),b=new Set(["Shift","Control","Alt","Meta"]);function w(e){return!!((0,a.sb)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,a.sb)(e)&&"TEXTAREA"===e.tagName)}function k(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,o=e.scrollTop,l=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(l&&"vertical"!==r){let r=_(e,t,"left"),o=E(e),l=E(t);"ltr"===n&&(r+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight?i=r+t.offsetWidth+l.scrollMarginRight-e.clientWidth+o.scrollPaddingRight:r-l.scrollMarginLeft<e.scrollLeft+o.scrollPaddingLeft&&(i=r-l.scrollMarginLeft-o.scrollPaddingLeft)),"rtl"===n&&(r-l.scrollMarginRight<e.scrollLeft+o.scrollPaddingLeft?i=r-l.scrollMarginLeft-o.scrollPaddingLeft:r+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight&&(i=r+t.offsetWidth+l.scrollMarginRight-e.clientWidth+o.scrollPaddingRight))}if(s&&"horizontal"!==r){let n=_(e,t,"top"),r=E(e),i=E(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?o=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(o=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:o,behavior:"auto"})}function _(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function E(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}let S=Math.floor;function A(e){e.preventDefault(),e.stopPropagation()}let M="ArrowLeft",C="ArrowRight";function T(e,t,n){return Math.floor(e/t)!==n}function P(e,t){return t<0||t>=e.current.length}function O(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let o=t;do o+=n?-i:i;while(o>=0&&o<=e.current.length-1&&I(e,o,r));return o}function I(e,t,n){var r;if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let i=e.current[t];return!!i&&(r=i,"none"===(0,a.L9)(r).display||!n&&(i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled")))}var R=n(660);let N=[];var L=n(9330),z=n(4926),D=n(7951),B=n(2014),j=n(6409);function F(e){let{render:t,className:n,refs:o=B.Ml,props:a=B.Ml,state:_=B.t0,stateAttributesMapping:E,highlightedIndex:F,onHighlightedIndexChange:H,orientation:q,dense:$,itemSizes:U,loopFocus:V,cols:X,enableHomeAndEndKeys:Y,onMapChange:W,stopEventPropagation:K=!0,rootRef:Z,disabledIndices:Q,modifierKeys:J,highlightItemOnHover:G=!1,tag:ee="div",...et}=e,{props:en,highlightedIndex:er,onHighlightedIndexChange:ei,elementsRef:eo,onMapChange:el,relayKeyboardEvent:es}=function(e){let{itemSizes:t,cols:n=1,loopFocus:o=!0,dense:l=!1,orientation:a="both",direction:_,highlightedIndex:E,onHighlightedIndexChange:L,rootRef:z,enableHomeAndEndKeys:D=!1,stopEventPropagation:B=!1,disabledIndices:j,modifierKeys:F=N}=e,[H,q]=r.useState(0),$=n>1,U=r.useRef(null),V=(0,s.a)(U,z),X=r.useRef([]),Y=r.useRef(!1),W=null!=E?E:H,K=(0,i.K)(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((null!=L?L:q)(e),t){let t=X.current[e];k(U.current,t,_,a)}}),Z=(0,i.K)(e=>{var t;if(0===e.size||Y.current)return;Y.current=!0;let n=Array.from(e.keys()),r=null!=(t=n.find(e=>null==e?void 0:e.hasAttribute(R.h)))?t:null,i=r?n.indexOf(r):-1;-1!==i&&K(i),k(U.current,r,_,a)}),Q=r.useMemo(()=>({"aria-orientation":"both"===a?void 0:a,ref:V,onFocus(e){var t;U.current&&w(e.target)&&e.target.setSelectionRange(0,null!=(t=e.target.value.length)?t:0)},onKeyDown(e){var r,i,s;let k=D?x:v;if(!k.has(e.key)||function(e,t){for(let n of b.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,F)||!U.current)return;let E="rtl"===_,R=E?h:f,N={horizontal:R,vertical:c,both:R}[a],L=E?f:h,z={horizontal:L,vertical:u,both:L}[a];if(w(e.target)&&!(null==(r=e.target)||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled"))){let t=e.target.selectionStart,n=e.target.selectionEnd,r=null!=(i=e.target.value)?i:"";if(null==t||e.shiftKey||t!==n||e.key!==z&&t<r.length||e.key!==N&&t>0)return}let H=W,q=O(X,{disabledIndices:j}),V=O(X,{decrement:!0,startingIndex:X.current.length,disabledIndices:j});if($){let r=t||Array.from({length:X.current.length},()=>({width:1,height:1})),i=function(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:o},l)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<o;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>null==r[e])?(n.forEach(e=>{r[e]=l}),s=!0):i+=1}}),[...r]}(r,n,l),u=i.findIndex(e=>null!=e&&!I(X,e,j)),h=i.reduce((e,t,n)=>null==t||I(X,t,j)?e:n,-1);H=i[function(e,{event:t,orientation:n,loopFocus:r,rtl:i,cols:o,disabledIndices:l,minIndex:s,maxIndex:a,prevIndex:u,stopEvent:c=!1}){let h,f=u;if("ArrowUp"===t.key?h="up":"ArrowDown"===t.key&&(h="down"),h){let n=[],i=[],d=!1,p=0;{let t=null,r=-1;e.current.forEach((e,o)=>{if(null==e)return;p+=1;let l=e.closest('[role="row"]');l&&(d=!0),(l!==t||-1===r)&&(t=l,n[r+=1]=[]),n[r].push(o),i[o]=r})}let g=!1,m=0;if(d)for(let e of n){let t=e.length;t>m&&(m=t),t!==o&&(g=!0)}let y=g&&p<e.current.length,v=m||o;c&&A(t);let x=(t=>{if(!g||-1===u)return;let o=i[u];if(null==o)return;let s=n[o].indexOf(u),a="up"===t?-1:1;for(let t=o+a,i=0;i<n.length;i+=1,t+=a){if(t<0||t>=n.length){if(!r||y)return;t=t<0?n.length-1:0}let i=n[t];for(let t=Math.min(s,i.length-1);t>=0;t-=1){let n=i[t];if(!I(e,n,l))return n}}})(h)??(t=>{if(!y||-1===u)return;let n=u%v,i="up"===t?-v:v,o=a-a%v,s=S(a/v)+1;for(let t=u-n+i,c=0;c<s;c+=1,t+=i){if(t<0||t>a){if(!r)return;t=t<0?o:0}let i=Math.min(t+v-1,a);for(let r=Math.min(t+n,i);r>=t;r-=1)if(!I(e,r,l))return r}})(h);if(void 0!==x)f=x;else if(-1===u)f="up"===h?a:s;else if(f=O(e,{startingIndex:u,amount:v,decrement:"up"===h,disabledIndices:l}),r){if("up"===h&&(u-v<s||f<0)){let e=u%v,t=a%v,n=a-(t-e);f=t===e?a:t>e?n:n-v}"down"===h&&u+v>a&&(f=O(e,{startingIndex:u%v-v,amount:v,disabledIndices:l}))}P(e,f)&&(f=u)}if("both"===n){let n=S(u/o);t.key===(i?M:C)&&(c&&A(t),u%o!=o-1?(f=O(e,{startingIndex:u,disabledIndices:l}),r&&T(f,o,n)&&(f=O(e,{startingIndex:u-u%o-1,disabledIndices:l}))):r&&(f=O(e,{startingIndex:u-u%o-1,disabledIndices:l})),T(f,o,n)&&(f=u)),t.key===(i?C:M)&&(c&&A(t),u%o!=0?(f=O(e,{startingIndex:u,decrement:!0,disabledIndices:l}),r&&T(f,o,n)&&(f=O(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:l}))):r&&(f=O(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:l})),T(f,o,n)&&(f=u));let s=S(a/o)===n;P(e,f)&&(f=r&&s?t.key===(i?C:M)?a:O(e,{startingIndex:u-u%o-1,disabledIndices:l}):u)}return f}({current:i.map(e=>e?X.current[e]:null)},{event:e,orientation:a,loopFocus:o,cols:n,disabledIndices:(s=[...j||X.current.map((e,t)=>I(X,t)?t:void 0),void 0],i.flatMap((e,t)=>s.includes(e)?[t]:[])),minIndex:u,maxIndex:h,prevIndex:function(e,t,n,r,i){if(-1===e)return -1;let o=n.indexOf(e),l=t[e];switch(i){case"tl":return o;case"tr":if(!l)return o;return o+l.width-1;case"bl":if(!l)return o;return o+(l.height-1)*r;case"br":return n.lastIndexOf(e);default:return -1}}(W>V?q:W,r,i,n,e.key===c?"bl":e.key===f?"tr":"tl"),rtl:E})]}let Y={horizontal:[R],vertical:[c],both:[R,c]}[a],Z={horizontal:[L],vertical:[u],both:[L,u]}[a],Q=$?k:({horizontal:D?g:p,vertical:D?y:m,both:k})[a];D&&(e.key===d?H=q:"End"===e.key&&(H=V)),H===W&&(Y.includes(e.key)||Z.includes(e.key))&&(H=o&&H===V&&Y.includes(e.key)?q:o&&H===q&&Z.includes(e.key)?V:O(X,{startingIndex:H,decrement:Z.includes(e.key),disabledIndices:j})),H===W||P(X,H)||(B&&e.stopPropagation(),Q.has(e.key)&&e.preventDefault(),K(H,!0),queueMicrotask(()=>{var e;null==(e=X.current[H])||e.focus()}))}}),[n,l,_,j,X,D,W,$,t,o,V,F,K,a,B]);return r.useMemo(()=>({props:Q,highlightedIndex:W,onHighlightedIndexChange:K,elementsRef:X,disabledIndices:j,onMapChange:Z,relayKeyboardEvent:Q.onKeyDown}),[Q,W,K,X,j,Z])}({itemSizes:U,cols:X,loopFocus:V,dense:$,orientation:q,highlightedIndex:F,onHighlightedIndexChange:H,rootRef:Z,stopEventPropagation:K,enableHomeAndEndKeys:Y,direction:(0,D.j)(),disabledIndices:Q,modifierKeys:J}),ea=(0,z.o)(ee,e,{state:_,ref:o,props:[en,...a,et],stateAttributesMapping:E}),eu=r.useMemo(()=>({highlightedIndex:er,onHighlightedIndexChange:ei,highlightItemOnHover:G,relayKeyboardEvent:es}),[er,ei,G,es]);return(0,j.jsx)(L.H.Provider,{value:eu,children:(0,j.jsx)(l.u,{elementsRef:eo,onMapChange:e=>{null==W||W(e),el(e)},children:ea})})}var H=n(971),q=n(9984),$=n(4716);let U=r.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:l,loopFocus:s=!0,render:a,...u}=e,{getTabElementBySelectedValue:c,onValueChange:h,orientation:f,value:d,setTabMap:p,tabActivationDirection:g}=(0,q.z)(),[m,y]=r.useState(0),[v,x]=r.useState(null),b=r.useRef(new Set),w=r.useRef(new Set),k=r.useRef(null),_=(0,i.K)(()=>{b.current.forEach(e=>{e()})});r.useEffect(()=>{if("undefined"==typeof ResizeObserver)return;let e=new ResizeObserver(()=>{b.current.size&&_()});return k.current=e,v&&e.observe(v),w.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),k.current=null}},[v,_]);let E=(0,i.K)(e=>(b.current.add(e),()=>{b.current.delete(e)})),S=(0,i.K)(e=>{var t;return w.current.add(e),null==(t=k.current)||t.observe(e),()=>{var t;w.current.delete(e),null==(t=k.current)||t.unobserve(e)}}),A=function(e,t,n,i){let[l,s]=r.useState(null);return(0,o.g)(()=>{if(null==e||null==n)return void s(null);let r=i(e);if(null==r)return void s(null);let{left:o,top:l}=V(r,n);s("horizontal"===t?o:l)},[t,i,n,e]),r.useCallback(r=>{if(r===e)return"none";if(null==r)return s(null),"none";if(null!=r&&null!=n){let e=i(r);if(null!=e){let{left:r,top:i}=V(e,n);if(null==l)return s("horizontal"===t?r:i),"none";if("horizontal"===t){if(r<l)return s(r),"left";if(r>l)return s(r),"right"}else if(i<l)return s(i),"up";else if(i>l)return s(i),"down"}}return"none"},[i,t,l,n,e])}(d,f,v,c),M=(0,i.K)((e,t)=>{e!==d&&(t.activationDirection=A(e),h(e,t))}),C=r.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:m,registerIndicatorUpdateListener:E,registerTabResizeObserverElement:S,onTabActivation:M,setHighlightedTabIndex:y,tabsListElement:v}),[n,m,E,S,M,y,v]);return(0,j.jsx)($.O.Provider,{value:C,children:(0,j.jsx)(F,{render:a,className:l,state:{orientation:f,tabActivationDirection:g},refs:[t,x],props:[{"aria-orientation":"vertical"===f?"vertical":void 0,role:"tablist"},u],stateAttributesMapping:H.h,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:s,orientation:f,onHighlightedIndexChange:y,onMapChange:p,disabledIndices:B.Ml})})});function V(e,t){let{left:n,top:r}=e.getBoundingClientRect(),{left:i,top:o}=t.getBoundingClientRect();return{left:n-i,top:r-o}}},6540:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]])},6661:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]])},6832:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});let r=function(e){return e.complete="data-complete",e.indeterminate="data-indeterminate",e.progressing="data-progressing",e}({}),i={status:e=>"progressing"===e?{[r.progressing]:""}:"complete"===e?{[r.complete]:""}:"indeterminate"===e?{[r.indeterminate]:""}:null}},6858:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(4669),i=n(4926);let o=r.forwardRef(function(e,t){let{className:n,render:r,orientation:o="horizontal",...l}=e;return(0,i.o)("div",e,{state:{orientation:o},ref:t,props:[{role:"separator","aria-orientation":o},l]})})},6891:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});let r=function(e){return e.scrollAreaCornerHeight="--scroll-area-corner-height",e.scrollAreaCornerWidth="--scroll-area-corner-width",e}({})},7113:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},7648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},a=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,a):e.replace(o,a)).replace(r,s))}},7819:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,h=arguments[0],f=1,d=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},f=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});f<d;++f)if(t=arguments[f],null!=t)for(n in t)r=a(h,n),h!==(i=a(t,n))&&(p&&i&&(l(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&l(r)?r:{},s(h,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(h,{name:n,newValue:i}));return h}},7832:(e,t,n)=>{"use strict";n.d(t,{B:()=>A});var r=n(4669),i=n(6992),o=n(3382);let l="undefined"!=typeof navigator,s=function(){if(!l)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),a=function(){if(!l)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),u=function(){if(!l)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),c="undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none");"MacIntel"===s.platform&&s.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(s.platform),l&&/firefox/i.test(u),l&&/apple/i.test(navigator.vendor),l&&/Edg/i.test(u),l&&/android/i.test(a)||/android/i.test(u),l&&a.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints,u.includes("jsdom/");var h=n(5456),f=n(3605);let d=r.createContext(void 0);var p=n(4926),g=n(7951),m=n(7946),y=n(2897);function v(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var x=n(2331),b=n(4661);let w=function(e){return e.scrollAreaOverflowXStart="--scroll-area-overflow-x-start",e.scrollAreaOverflowXEnd="--scroll-area-overflow-x-end",e.scrollAreaOverflowYStart="--scroll-area-overflow-y-start",e.scrollAreaOverflowYEnd="--scroll-area-overflow-y-end",e}({});function k(e,t){if(t<=0)return 0;let n=v(e,0,t),r=t-n,i=n<=1,o=r<=1;return i&&o?n<=r?0:t:i?0:o?t:n}var _=n(6409);let E=!1,S="undefined"!=typeof ResizeObserver,A=r.forwardRef(function(e,t){let{render:n,className:l,...s}=e,{viewportRef:a,scrollbarYRef:u,scrollbarXRef:A,thumbYRef:M,thumbXRef:C,cornerRef:T,cornerSize:P,setCornerSize:O,setThumbSize:I,rootId:R,setHiddenState:N,hiddenState:L,setHasMeasuredScrollbar:z,handleScroll:D,setHovering:B,setOverflowEdges:j,overflowEdges:F,overflowEdgeThreshold:H,scrollingX:q,scrollingY:$}=(0,f.p)(),U=(0,g.j)(),V=r.useRef(!0),X=r.useRef([NaN,NaN,NaN,NaN]),Y=(0,h.Z)(),W=(0,h.Z)(),K=(0,i.K)(()=>{let e=a.current,t=u.current,n=A.current,r=M.current,i=C.current,o=T.current;if(!e)return;let l=e.scrollHeight,s=e.scrollWidth,c=e.clientHeight,h=e.clientWidth,f=e.scrollTop,d=e.scrollLeft,p=X.current,g=Number.isNaN(p[0]);if(p[0]=c,p[1]=l,p[2]=h,p[3]=s,g&&z(!0),0===l||0===s)return;let x=function(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}(e),b=x.y,_=x.x,E=h/s,S=c/l,R=Math.max(0,s-h),L=Math.max(0,l-c),D=0,B=0;!_&&(D=k("rtl"===U?v(-d,0,R):v(d,0,R),R),B=R-D);let F=b?0:v(f,0,L),q=b?0:k(F,L),$=b?0:L-q,V=_?0:h,Y=b?0:c,W=0,K=0;_||b||(W=(null==t?void 0:t.offsetWidth)||0,K=(null==n?void 0:n.offsetHeight)||0);let Z=0===P.width&&0===P.height,Q=Z?W:0,J=Z?K:0,G=(0,m.A)(n,"padding","x"),ee=(0,m.A)(t,"padding","y"),et=(0,m.A)(i,"margin","x"),en=(0,m.A)(r,"margin","y"),er=V-G-et,ei=Y-ee-en,eo=n?Math.min(n.offsetWidth-Q,er):er,el=t?Math.min(t.offsetHeight-J,ei):ei,es=Math.max(y.i,eo*E),ea=Math.max(y.i,el*S);if(I(e=>e.height===ea&&e.width===es?e:{width:es,height:ea}),t&&r){let e=t.offsetHeight-ea-ee-en,n=l-c,i=Math.min(e,Math.max(0,(0===n?0:f/n)*e));r.style.transform="translate3d(0,".concat(i,"px,0)")}if(n&&i){let e=n.offsetWidth-es-G-et,t=s-h,r=0===t?0:d/t,o="rtl"===U?v(r*e,-e,0):v(r*e,0,e);i.style.transform="translate3d(".concat(o,"px,0,0)")}for(let[t,n]of[[w.scrollAreaOverflowXStart,D],[w.scrollAreaOverflowXEnd,B],[w.scrollAreaOverflowYStart,q],[w.scrollAreaOverflowYEnd,$]])e.style.setProperty(t,"".concat(n,"px"));o&&(_||b?O({width:0,height:0}):_||b||O({width:W,height:K})),N(e=>{var t,n;return t=e,n=x,t.y===n.y&&t.x===n.x&&t.corner===n.corner?t:n});let eu={xStart:!_&&D>H.xStart,xEnd:!_&&B>H.xEnd,yStart:!b&&q>H.yStart,yEnd:!b&&$>H.yEnd};j(e=>e.xStart===eu.xStart&&e.xEnd===eu.xEnd&&e.yStart===eu.yStart&&e.yEnd===eu.yEnd?e:eu)});function Z(){V.current=!1}(0,o.g)(()=>{if(a.current&&(E||c||("undefined"!=typeof CSS&&"registerProperty"in CSS&&[w.scrollAreaOverflowXStart,w.scrollAreaOverflowXEnd,w.scrollAreaOverflowYStart,w.scrollAreaOverflowYEnd].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch(e){}}),E=!0),!S))return function(e,t){if("undefined"==typeof IntersectionObserver)return()=>{};let n=new IntersectionObserver(e=>{e.forEach(e=>{e.intersectionRatio>0&&(t(),n.disconnect())})});return n.observe(e),()=>{n.disconnect()}}(a.current,()=>{K()})},[K,a]),(0,o.g)(()=>{queueMicrotask(K)},[K,L,U]),(0,o.g)(()=>{var e;(null==(e=a.current)?void 0:e.matches(":hover"))&&B(!0)},[a,B]),r.useEffect(()=>{let e=a.current;if(!S||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=X.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}K()});return n.observe(e),W.start(0,()=>{let t=e.getAnimations({subtree:!0});0!==t.length&&Promise.allSettled(t.map(e=>e.finished)).then(K).catch(()=>{})}),()=>{n.disconnect(),W.clear()}},[K,a,W]);let Q={role:"presentation",...R&&{"data-id":"".concat(R,"-viewport")},tabIndex:L.x&&L.y?-1:0,className:x.E.className,style:{overflow:"scroll"},onScroll(){a.current&&(K(),V.current||D({x:a.current.scrollLeft,y:a.current.scrollTop}),Y.start(100,()=>{V.current=!0}))},onWheel:Z,onTouchMove:Z,onPointerMove:Z,onPointerEnter:Z,onKeyDown:Z},J=r.useMemo(()=>({scrolling:q||$,hasOverflowX:!L.x,hasOverflowY:!L.y,overflowXStart:F.xStart,overflowXEnd:F.xEnd,overflowYStart:F.yStart,overflowYEnd:F.yEnd,cornerHidden:L.corner}),[q,$,L.x,L.y,L.corner,F]),G=(0,p.o)("div",e,{ref:[t,a],state:J,props:[Q,s],stateAttributesMapping:b.r}),ee=r.useMemo(()=>({computeThumbPosition:K}),[K]);return(0,_.jsx)(d.Provider,{value:ee,children:G})})},7946:(e,t,n)=>{"use strict";function r(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i="x"===n?"Inline":"Block";return"x"===n&&"margin"===t?2*parseFloat(r[`${t}InlineStart`]):parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}n.d(t,{A:()=>r})},7951:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(4669);let i=r.createContext(void 0);function o(){var e;let t=r.useContext(i);return null!=(e=null==t?void 0:t.direction)?e:"ltr"}},8197:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},8485:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},8585:(e,t,n)=>{"use strict";e.exports=n(217)},8631:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;o?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(2074))},8670:(e,t,n)=>{"use strict";n.d(t,{V:()=>_});var r=n(4669),i=n(6992),o=n(5456),l=n(3605),s=n(4926),a=n(6891),u=n(2897),c=n(7946);let h=function(e){return e.orientation="data-orientation",e.hovering="data-hovering",e.scrolling="data-scrolling",e.hasOverflowX="data-has-overflow-x",e.hasOverflowY="data-has-overflow-y",e.overflowXStart="data-overflow-x-start",e.overflowXEnd="data-overflow-x-end",e.overflowYStart="data-overflow-y-start",e.overflowYEnd="data-overflow-y-end",e}({});var f=n(2331),d=n(7309),p=n(4661),g=n(213);let m=r.createContext(void 0),y={disableStyleElements:!1};var v=n(6409);let x={x:0,y:0},b={width:0,height:0},w={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},k={x:!0,y:!0,corner:!0},_=r.forwardRef(function(e,t){var n;let{render:_,className:E,overflowEdgeThreshold:S,...A}=e,M=function(e){if("number"==typeof e){let t=Math.max(0,e);return{xStart:t,xEnd:t,yStart:t,yEnd:t}}return{xStart:Math.max(0,(null==e?void 0:e.xStart)||0),xEnd:Math.max(0,(null==e?void 0:e.xEnd)||0),yStart:Math.max(0,(null==e?void 0:e.yStart)||0),yEnd:Math.max(0,(null==e?void 0:e.yEnd)||0)}}(S),C=(0,d.e)(),T=(0,o.Z)(),P=(0,o.Z)(),{nonce:O,disableStyleElements:I}=null!=(n=r.useContext(m))?n:y,[R,N]=r.useState(!1),[L,z]=r.useState(!1),[D,B]=r.useState(!1),[j,F]=r.useState(!1),[H,q]=r.useState(!1),[$,U]=r.useState(b),[V,X]=r.useState(b),[Y,W]=r.useState(w),[K,Z]=r.useState(k),Q=r.useRef(null),J=r.useRef(null),G=r.useRef(null),ee=r.useRef(null),et=r.useRef(null),en=r.useRef(null),er=r.useRef(null),ei=r.useRef(!1),eo=r.useRef(0),el=r.useRef(0),es=r.useRef(0),ea=r.useRef(0),eu=r.useRef("vertical"),ec=r.useRef(x),eh=(0,i.K)(e=>{let t=e.x-ec.current.x,n=e.y-ec.current.y;ec.current=e,0!==n&&(B(!0),T.start(u.u,()=>{B(!1)})),0!==t&&(z(!0),P.start(u.u,()=>{z(!1)}))}),ef=(0,i.K)(e=>{0===e.button&&(ei.current=!0,eo.current=e.clientY,el.current=e.clientX,eu.current=e.currentTarget.getAttribute(h.orientation),J.current&&(es.current=J.current.scrollTop,ea.current=J.current.scrollLeft),et.current&&"vertical"===eu.current&&et.current.setPointerCapture(e.pointerId),en.current&&"horizontal"===eu.current&&en.current.setPointerCapture(e.pointerId))}),ed=(0,i.K)(e=>{if(!ei.current)return;let t=e.clientY-eo.current,n=e.clientX-el.current;if(J.current){let r=J.current.scrollHeight,i=J.current.clientHeight,o=J.current.scrollWidth,l=J.current.clientWidth;if(et.current&&G.current&&"vertical"===eu.current){let n=(0,c.A)(G.current,"padding","y"),o=(0,c.A)(et.current,"margin","y"),l=et.current.offsetHeight,s=G.current.offsetHeight-l-n-o;J.current.scrollTop=es.current+t/s*(r-i),e.preventDefault(),B(!0),T.start(u.u,()=>{B(!1)})}if(en.current&&ee.current&&"horizontal"===eu.current){let t=(0,c.A)(ee.current,"padding","x"),r=(0,c.A)(en.current,"margin","x"),i=en.current.offsetWidth,s=ee.current.offsetWidth-i-t-r;J.current.scrollLeft=ea.current+n/s*(o-l),e.preventDefault(),z(!0),P.start(u.u,()=>{z(!1)})}}}),ep=(0,i.K)(e=>{ei.current=!1,et.current&&"vertical"===eu.current&&et.current.releasePointerCapture(e.pointerId),en.current&&"horizontal"===eu.current&&en.current.releasePointerCapture(e.pointerId)});function eg(e){F("touch"===e.pointerType)}function em(e){eg(e),"touch"!==e.pointerType&&N((0,g.gR)(Q.current,e.target))}let ey=r.useMemo(()=>({scrolling:L||D,hasOverflowX:!K.x,hasOverflowY:!K.y,overflowXStart:Y.xStart,overflowXEnd:Y.xEnd,overflowYStart:Y.yStart,overflowYEnd:Y.yEnd,cornerHidden:K.corner}),[L,D,K.x,K.y,K.corner,Y]),ev={role:"presentation",onPointerEnter:em,onPointerMove:em,onPointerDown:eg,onPointerLeave(){N(!1)},style:{position:"relative",[a.I.scrollAreaCornerHeight]:"".concat($.height,"px"),[a.I.scrollAreaCornerWidth]:"".concat($.width,"px")}},ex=(0,s.o)("div",e,{state:ey,ref:[t,Q],props:[ev,A],stateAttributesMapping:p.r}),eb=r.useMemo(()=>({handlePointerDown:ef,handlePointerMove:ed,handlePointerUp:ep,handleScroll:eh,cornerSize:$,setCornerSize:U,thumbSize:V,setThumbSize:X,hasMeasuredScrollbar:H,setHasMeasuredScrollbar:q,touchModality:j,cornerRef:er,scrollingX:L,setScrollingX:z,scrollingY:D,setScrollingY:B,hovering:R,setHovering:N,viewportRef:J,rootRef:Q,scrollbarYRef:G,scrollbarXRef:ee,thumbYRef:et,thumbXRef:en,rootId:C,hiddenState:K,setHiddenState:Z,overflowEdges:Y,setOverflowEdges:W,viewportState:ey,overflowEdgeThreshold:M}),[ef,ed,ep,eh,$,V,H,j,L,z,D,B,R,N,C,K,Y,ey,M]);return(0,v.jsxs)(l.a.Provider,{value:eb,children:[!I&&f.E.getElement(O),ex]})})},8682:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},8713:(e,t,n)=>{"use strict";n.d(t,{oz:()=>nC});var r={};n.r(r),n.d(r,{boolean:()=>m,booleanish:()=>y,commaOrSpaceSeparated:()=>k,commaSeparated:()=>w,number:()=>x,overloadedBoolean:()=>v,spaceSeparated:()=>b});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tM,contentInitial:()=>tw,disable:()=>tC,document:()=>tb,flow:()=>t_,flowInitial:()=>tk,insideSpan:()=>tA,string:()=>tE,text:()=>tS});let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s={};function a(e,t){return((t||s).jsx?l:o).test(e)}let u=/[ \t\n\f\r]/g;function c(e){return""===e.replace(u,"")}class h{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function f(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new h(n,r,t)}function d(e){return e.toLowerCase()}h.prototype.normal={},h.prototype.property={},h.prototype.space=void 0;class p{constructor(e,t){this.attribute=t,this.property=e}}p.prototype.attribute="",p.prototype.booleanish=!1,p.prototype.boolean=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.commaSeparated=!1,p.prototype.defined=!1,p.prototype.mustUseProperty=!1,p.prototype.number=!1,p.prototype.overloadedBoolean=!1,p.prototype.property="",p.prototype.spaceSeparated=!1,p.prototype.space=void 0;let g=0,m=_(),y=_(),v=_(),x=_(),b=_(),w=_(),k=_();function _(){return 2**++g}let E=Object.keys(r);class S extends p{constructor(e,t,n,i){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++o<E.length;){let e=E[o];!function(e,t,n){n&&(e[t]=n)}(this,E[o],(n&r[e])===r[e])}}}function A(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new S(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[d(r)]=r,n[d(o.attribute)]=r}return new h(t,n,e.space)}S.prototype.defined=!0;let M=A({properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:b,ariaCurrent:null,ariaDescribedBy:b,ariaDetails:null,ariaDisabled:y,ariaDropEffect:b,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:b,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:b,ariaLevel:x,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:b,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:b,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:y,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function C(e,t){return t in e?e[t]:t}function T(e,t){return C(e,t.toLowerCase())}let P=A({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:b,accessKey:b,action:null,allow:null,allowFullScreen:m,allowPaymentRequest:m,allowUserMedia:m,alt:null,as:null,async:m,autoCapitalize:null,autoComplete:b,autoFocus:m,autoPlay:m,blocking:b,capture:null,charSet:null,checked:m,cite:null,className:b,cols:x,colSpan:null,content:null,contentEditable:y,controls:m,controlsList:b,coords:x|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m,defer:m,dir:null,dirName:null,disabled:m,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m,formTarget:null,headers:b,height:x,hidden:v,high:x,href:null,hrefLang:null,htmlFor:b,httpEquiv:b,id:null,imageSizes:null,imageSrcSet:null,inert:m,inputMode:null,integrity:null,is:null,isMap:m,itemId:null,itemProp:b,itemRef:b,itemScope:m,itemType:b,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:m,muted:m,name:null,nonce:null,noModule:m,noValidate:m,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:m,optimum:x,pattern:null,ping:b,placeholder:null,playsInline:m,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m,referrerPolicy:null,rel:b,required:m,reversed:m,rows:x,rowSpan:x,sandbox:b,scope:null,scoped:m,seamless:m,selected:m,shadowRootClonable:m,shadowRootDelegatesFocus:m,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:m,useMap:null,value:y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:b,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m,declare:m,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:m,noHref:m,noShade:m,noWrap:m,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m,disableRemotePlayback:m,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:T}),O=A({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:k,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:b,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:m,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:k,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:b,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:k,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:k,rev:k,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:k,requiredFeatures:k,requiredFonts:k,requiredFormats:k,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:k,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:k,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:k,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:C}),I=A({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),R=A({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:T}),N=A({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),L=f([M,P,I,R,N],"html"),z=f([M,O,I,R,N],"svg"),D=/[A-Z]/g,B=/-[a-z]/g,j=/^data[-\w.:]+$/i;function F(e){return"-"+e.toLowerCase()}function H(e){return e.charAt(1).toUpperCase()}let q={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var $=n(1896);let U=X("end"),V=X("start");function X(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Y(e){return e&&"object"==typeof e?"position"in e||"type"in e?K(e.position):"start"in e||"end"in e?K(e):"line"in e||"column"in e?W(e):"":""}function W(e){return Z(e&&e.line)+":"+Z(e&&e.column)}function K(e){return W(e&&e.start)+"-"+W(e&&e.end)}function Z(e){return e&&"number"==typeof e?e:1}class Q extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=Y(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Q.prototype.file="",Q.prototype.name="",Q.prototype.reason="",Q.prototype.message="",Q.prototype.stack="",Q.prototype.column=void 0,Q.prototype.line=void 0,Q.prototype.ancestors=void 0,Q.prototype.cause=void 0,Q.prototype.fatal=void 0,Q.prototype.place=void 0,Q.prototype.ruleId=void 0,Q.prototype.source=void 0;let J={}.hasOwnProperty,G=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ei(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=z),e.ancestors.push(t);let i=ea(e,t.tagName,!1),o=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&J.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=d(t),r=t,i=p;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&j.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(B,H);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!B.test(e)){let n=e.replace(D,F);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=S}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return $(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)J.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?q[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,l]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&en.has(t.tagName)?n=l:i[r]=l}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),l=es(e,t);return et.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),eo(e,o,i,t),el(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eu(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=z),e.ancestors.push(t);let i=null===t.name?e.Fragment:ea(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else eu(e,t.position);else{let i,o=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else eu(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=es(e,t);return eo(e,o,i,t),el(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eu(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return el(r,es(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function el(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function es(e,t){let n=[],r=-1,i=e.passKeys?new Map:G;for(;++r<t.children.length;){let o,l=t.children[r];if(e.passKeys){let e="element"===l.type?l.tagName:"mdxJsxFlowElement"===l.type||"mdxJsxTextElement"===l.type?l.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let s=ei(e,l,o);void 0!==s&&n.push(s)}return n}function ea(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=a(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=a(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return J.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eu(e)}function eu(e,t){let n=new Q("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=er+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ec(e){return"-"+e.toLowerCase()}let eh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ef=n(6409);n(4669);let ed={};function ep(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eg(e.children,t,n)}return Array.isArray(e)?eg(e,t,n):""}function eg(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ep(e[i],t,n);return r.join("")}function em(e,t,n,r){let i,o=e.length,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)(i=r.slice(l,l+1e4)).unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function ey(e,t){return e.length>0?(em(e,e.length,0,t),e):t}class ev{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&ex(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ex(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ex(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);ex(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ex(this.left,t.reverse())}}}function ex(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function eb(e){let t,n,r,i,o,l,s,a={},u=-1,c=new ev(e);for(;++u<c.length;){for(;u in a;)u=a[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(a,function(e,t){let n,r,i=e.get(t)[1],o=e.get(t)[2],l=t-1,s=[],a=i._tokenizer;!a&&(a=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let u=a.events,c=[],h={},f=-1,d=i,p=0,g=0,m=[0];for(;d;){for(;e.get(++l)[1]!==d;);s.push(l),!d._tokenizer&&(n=o.sliceStream(d),d.next||n.push(null),r&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(n),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),r=d,d=d.next}for(d=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(g=f+1,m.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):m.pop(),f=m.length;f--;){let t=u.slice(m[f],m[f+1]),n=s.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)h[p+c[f][0]]=p+c[f][1],p+=c[f][1]-c[f][0]-1;return h}(c,u)),u=a[u],s=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return em(e,0,1/0,c.slice(0)),!s}let ew={}.hasOwnProperty,ek=eN(/[A-Za-z]/),e_=eN(/[\dA-Za-z]/),eE=eN(/[#-'*+\--9=?A-Z^-~]/);function eS(e){return null!==e&&(e<32||127===e)}let eA=eN(/\d/),eM=eN(/[\dA-Fa-f]/),eC=eN(/[!-/:-@[-`{-~]/);function eT(e){return null!==e&&e<-2}function eP(e){return null!==e&&(e<0||32===e)}function eO(e){return -2===e||-1===e||32===e}let eI=eN(/\p{P}|\p{S}/u),eR=eN(/\s/);function eN(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eL(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return eO(r)?(e.enter(n),function r(l){return eO(l)&&o++<i?(e.consume(l),r):(e.exit(n),t(l))}(r)):t(r)}}let ez={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eL(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eT(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eD={tokenize:function(e){let t,n,r,i=this,o=[],l=0;return s;function s(t){if(l<o.length){let n=o[l];return i.containerState=n[1],e.attempt(n[0].continuation,a,u)(t)}return u(t)}function a(e){if(l++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}m(l);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return em(i.events,o+1,0,i.events.slice(r)),i.events.length=s,u(e)}return s(e)}function u(n){if(l===o.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eB,c,h)(n)}function c(e){return t&&y(),m(l),f(e)}function h(e){return i.parser.lazy[i.now().line]=l!==o.length,r=i.now().offset,p(e)}function f(t){return i.containerState={},e.attempt(eB,d,p)(t)}function d(e){return l++,o.push([i.currentConstruct,i.containerState]),f(e)}function p(r){if(null===r){t&&y(),m(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){g(e.exit("chunkFlow"),!0),m(0),e.consume(n);return}return eT(n)?(e.consume(n),g(e.exit("chunkFlow")),l=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function g(e,o){let s=i.sliceStream(e);if(o&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let s=i.events.length,a=s;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){if(e){n=i.events[a][1].end;break}e=!0}for(m(l),o=s;o<i.events.length;)i.events[o][1].end={...n},o++;em(i.events,a+1,0,i.events.slice(s)),i.events.length=o}}function m(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eB={tokenize:function(e,t,n){return eL(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},ej={partial:!0,tokenize:function(e,t,n){return function(t){return eO(t)?eL(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eT(e)?t(e):n(e)}}},eF={resolve:function(e){return eb(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eT(t)?e.check(eH,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eH={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eL(e,i,"linePrefix")};function i(i){if(null===i||eT(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eq={tokenize:function(e){let t=this,n=e.attempt(ej,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eL(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eF,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},e$={resolveAll:eY()},eU=eX("string"),eV=eX("text");function eX(e){return{resolveAll:eY("text"===e?eW:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return a(e)?i(e):l(e)}function l(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return a(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function a(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eY(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eW(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],o=t.sliceStream(i),l=o.length,s=-1,a=0;for(;l--;){let e=o[l];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)a++,s--;if(s)break;s=-1}else if(-2===e)r=!0,a++;else if(-1===e);else{l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){let o={type:n===e.length||r||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?s:i.start._bufferIndex+s,_index:i.start._index+l,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}let eK={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var l;return e.enter("thematicBreak"),r=l=o,function o(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eO(n)?eL(e,o,"whitespace")(n):o(n))}(l)):i>=3&&(null===l||eT(l))?(e.exit("thematicBreak"),t(l)):n(l)}(l)}}},eZ={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ej,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eL(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eO(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eJ,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eL(e,e.attempt(eZ,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eA(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eK,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eA(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ej,r.interrupt?n:a,e.attempt(eQ,c,u))}function a(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eO(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eQ={partial:!0,tokenize:function(e,t,n){let r=this;return eL(e,function(e){let i=r.events[r.events.length-1];return!eO(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eJ={partial:!0,tokenize:function(e,t,n){let r=this;return eL(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eG={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eO(t)?eL(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eG,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eO(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e0(e,t,n,r,i,o,l,s,a){let u=a||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h):null===t||32===t||41===t||eS(t)?n(t):(e.enter(r),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||eT(t)?n(t):(e.consume(t),92===t?d:f)}function d(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return!c&&(null===i||41===i||eP(i))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,p):41===i?(e.consume(i),c--,p):null===i||32===i||40===i||eS(i)?n(i):(e.consume(i),92===i?g:p)}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function e1(e,t,n,r,i,o){let l,s=this,a=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(h){return a>999||null===h||91===h||93===h&&!l||94===h&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):eT(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(t){return null===t||91===t||93===t||eT(t)||a++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!eO(t)),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function e2(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,s):n(t)};function s(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),a(n))}function a(t){return t===l?(e.exit(o),s(l)):null===t?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eL(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||eT(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?c:u)}function c(t){return t===l||92===t?(e.consume(t),u):u(t)}}function e3(e,t){let n;return function r(i){return eT(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eO(i)?eL(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e4(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e6={partial:!0,tokenize:function(e,t,n){return function(t){return eP(t)?e3(e,r)(t):n(t)};function r(t){return e2(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eO(t)?eL(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eT(e)?t(e):n(e)}}},e5={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eL(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eT(n)?e.attempt(e9,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eT(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e9={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eL(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eT(e)?i(e):n(e)}}},e8={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=l,e.push(["exit",l,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var l;let s,a=i.events.length;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){s="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,l=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eO(n)?eL(e,o,"lineSuffix")(n):o(n))}(l)):n(t)};function o(r){return null===r||eT(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e7=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ej,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ti={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),eO(t)?eL(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=s?(e.exit("codeFencedFenceSequence"),eO(i)?eL(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||eT(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},l=0,s=0;return function(t){var o=t;let u=i.events[i.events.length-1];return l=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),eO(i)?eL(e,a,"whitespace")(i):a(i))}(o)};function a(o){return null===o||eT(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(tr,c,p)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(i)):eO(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eL(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||eT(t)?a(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,p,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return l>0&&eO(t)?eL(e,d,"linePrefix",l+1)(t):d(t)}function d(t){return null===t||eT(t)?e.check(tr,c,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eT(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}}},to=document.createElement("i");function tl(e){let t="&"+e+";";to.innerHTML=t;let n=to.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ts={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),r=31,i=e_,u(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eM,u):(e.enter("characterReferenceValue"),r=7,i=eA,u(t))}function u(s){if(59===s&&l){let r=e.exit("characterReferenceValue");return i!==e_||tl(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&l++<r?(e.consume(s),u):n(s)}}},ta={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eC(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tu={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eL(e,t,"linePrefix")}}};function tc(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let th={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&em(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,l=e.length,s=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=l);let a={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return o=ey(o=[["enter",a,t],["enter",u,t]],e.slice(r+1,r+s+3)),o=ey(o,[["enter",c,t]]),o=ey(o,tc(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=ey(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=ey(o,e.slice(i+1)),o=ey(o,[["exit",a,t]]),em(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,o=this,l=o.events.length;for(;l--;)if(("labelImage"===o.events[l][1].type||"labelLink"===o.events[l][1].type)&&!o.events[l][1]._balanced){r=o.events[l][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes(e4(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(tf,u,i?u:c)(t):91===t?e.attempt(td,u,i?a:c)(t):i?u(t):c(t)}function a(t){return e.attempt(tp,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},tf={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eP(t)?e3(e,i)(t):i(t)}function i(t){return 41===t?u(t):e0(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eP(t)?e3(e,s)(t):u(t)}function l(e){return n(e)}function s(t){return 34===t||39===t||40===t?e2(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function a(t){return eP(t)?e3(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},td={tokenize:function(e,t,n){let r=this;return function(t){return e1.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(e4(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tp={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tg={name:"labelStartImage",resolveAll:th.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function tm(e){return null===e||eP(e)||eR(e)?1:eI(e)?2:void 0}let ty={name:"attention",resolveAll:function(e,t){let n,r,i,o,l,s,a,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let h={...e[n][1].end},f={...e[c][1].start};tv(h,-s),tv(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[n][1].end={...o.start},e[c][1].start={...l.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=ey(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=ey(a,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),a=ey(a,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=ey(a,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,a=ey(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,em(e,n-1,c-n+3,a),c=n+a.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=tm(i);return function(l){return n=l,e.enter("attentionSequence"),function l(s){if(s===n)return e.consume(s),l;let a=e.exit("attentionSequence"),u=tm(s),c=!u||2===u&&o||r.includes(s),h=!o||2===o&&u||r.includes(i);return a._open=!!(42===n?c:c&&(o||!h)),a._close=!!(42===n?h:h&&(u||!c)),t(s)}(l)}}};function tv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tx={name:"labelStartLink",resolveAll:th.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tb={42:eZ,43:eZ,45:eZ,48:eZ,49:eZ,50:eZ,51:eZ,52:eZ,53:eZ,54:eZ,55:eZ,56:eZ,57:eZ,62:eG},tw={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,e1.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=e4(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return eP(t)?e3(e,s)(t):s(t)}function s(t){return e0(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(e6,u,u)(t)}function u(t){return eO(t)?eL(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eT(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},tk={[-2]:e5,[-1]:e5,32:e5},t_={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},em(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eP(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eT(r)?(e.exit("atxHeading"),t(r)):eO(r)?eL(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eP(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:eK,45:[e8,eK],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,o,l,s,a=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,d):63===l?(e.consume(l),r=3,a.interrupt?t:I):ek(l)?(e.consume(l),o=String.fromCharCode(l),p):n(l)}function c(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,l=0,f):ek(i)?(e.consume(i),r=4,a.interrupt?t:I):n(i)}function h(r){return 45===r?(e.consume(r),a.interrupt?t:I):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?a.interrupt?t:E:f:n(r)}function d(t){return ek(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(l){if(null===l||47===l||62===l||eP(l)){let s=47===l,u=o.toLowerCase();return!s&&!i&&te.includes(u)?(r=1,a.interrupt?t(l):E(l)):e7.includes(o.toLowerCase())?(r=6,s)?(e.consume(l),g):a.interrupt?t(l):E(l):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(l):i?function t(n){return eO(n)?(e.consume(n),t):k(n)}(l):m(l))}return 45===l||e_(l)?(e.consume(l),o+=String.fromCharCode(l),p):n(l)}function g(r){return 62===r?(e.consume(r),a.interrupt?t:E):n(r)}function m(t){return 47===t?(e.consume(t),k):58===t||95===t||ek(t)?(e.consume(t),y):eO(t)?(e.consume(t),m):k(t)}function y(t){return 45===t||46===t||58===t||95===t||e_(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),x):eO(t)?(e.consume(t),v):m(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,b):eO(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eP(n)?v(n):(e.consume(n),t)}(t)}function b(t){return t===s?(e.consume(t),s=null,w):null===t||eT(t)?n(t):(e.consume(t),b)}function w(e){return 47===e||62===e||eO(e)?m(e):n(e)}function k(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||eT(t)?E(t):eO(t)?(e.consume(t),_):n(t)}function E(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),R):63===t&&3===r?(e.consume(t),I):93===t&&5===r?(e.consume(t),O):eT(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,N,S)(t)):null===t||eT(t)?(e.exit("htmlFlowData"),S(t)):(e.consume(t),E)}function S(t){return e.check(tn,A,N)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return null===t||eT(t)?S(t):(e.enter("htmlFlowData"),E(t))}function C(t){return 45===t?(e.consume(t),I):E(t)}function T(t){return 47===t?(e.consume(t),o="",P):E(t)}function P(t){if(62===t){let n=o.toLowerCase();return te.includes(n)?(e.consume(t),R):E(t)}return ek(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):E(t)}function O(t){return 93===t?(e.consume(t),I):E(t)}function I(t){return 62===t?(e.consume(t),R):45===t&&2===r?(e.consume(t),I):E(t)}function R(t){return null===t||eT(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),R)}function N(n){return e.exit("htmlFlow"),t(n)}}},61:e8,95:eK,96:ti,126:ti},tE={38:ts,92:ta},tS={[-5]:tu,[-4]:tu,[-3]:tu,33:tg,38:ts,42:ty,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return ek(t)?(e.consume(t),o):64===t?n(t):s(t)}function o(t){return 43===t||45===t||46===t||e_(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||e_(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eS(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),a):eE(t)?(e.consume(t),s):n(t)}function a(i){return e_(i)?function i(o){return 46===o?(e.consume(o),r=0,a):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||e_(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),b):63===t?(e.consume(t),v):ek(t)?(e.consume(t),k):n(t)}function a(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,d):ek(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),h):eT(t)?(o=c,P(t)):(e.consume(t),c)}function h(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?T(e):45===e?h(e):c(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:d):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):eT(t)?(o=p,P(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?T(t):93===t?(e.consume(t),m):p(t)}function y(t){return null===t||62===t?T(t):eT(t)?(o=y,P(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):eT(t)?(o=v,P(t)):(e.consume(t),v)}function x(e){return 62===e?T(e):v(e)}function b(t){return ek(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||e_(t)?(e.consume(t),w):function t(n){return eT(n)?(o=t,P(n)):eO(n)?(e.consume(n),t):T(n)}(t)}function k(t){return 45===t||e_(t)?(e.consume(t),k):47===t||62===t||eP(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),T):58===t||95===t||ek(t)?(e.consume(t),E):eT(t)?(o=_,P(t)):eO(t)?(e.consume(t),_):T(t)}function E(t){return 45===t||46===t||58===t||95===t||e_(t)?(e.consume(t),E):function t(n){return 61===n?(e.consume(n),S):eT(n)?(o=t,P(n)):eO(n)?(e.consume(n),t):_(n)}(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,A):eT(t)?(o=S,P(t)):eO(t)?(e.consume(t),S):(e.consume(t),M)}function A(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):eT(t)?(o=A,P(t)):(e.consume(t),A)}function M(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eP(t)?_(t):(e.consume(t),M)}function C(e){return 47===e||62===e||eP(e)?_(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return eO(t)?eL(e,I,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),o(t)}}}],91:tx,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eT(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ta],93:th,95:ty,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),l(n))}(t)};function l(a){return null===a?n(a):32===a?(e.enter("space"),e.consume(a),e.exit("space"),l):96===a?(i=e.enter("codeTextSequence"),r=0,function n(l){return 96===l?(e.consume(l),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(i.type="codeTextData",s(l))}(a)):eT(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(a))}function s(t){return null===t||32===t||96===t||eT(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}}}},tA={null:[ty,e$]},tM={null:[42,95]},tC={null:[]},tT=/[\0\t\n\r]/g;function tP(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tI(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tP(n.slice(t?2:1),t?16:10)}return tl(n)||e}let tR={}.hasOwnProperty;function tN(e){return{line:e.line,column:e.column,offset:e.offset}}function tL(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+Y({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Y({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+Y({start:t.start,end:t.end})+") is still open")}function tz(e){let t=this;t.parser=function(n){var r,o;let l,s,a,u;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(p),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(m,i),htmlFlowData:u,htmlText:r(m,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(p),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:l(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tP(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tl(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tN(e.end)},codeFenced:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:l(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e4(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(h),hardBreakTrailing:l(h),htmlFlow:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tO,tI),n.identifier=e4(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tN(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e4(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tR.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},l={stack:[r],tokenStack:[],config:t,enter:o,exit:s,buffer:i,resume:a,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,o,l,s=t-1,a=-1,u=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?a++:a--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||a||o||(o=s),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=s;for(i=void 0;l--;){let t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=l}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tR.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},l),e[c][1])}if(l.tokenStack.length>0){let e=l.tokenStack[l.tokenStack.length-1];(e[1]||tL).call(l,void 0,e[0])}for(r.position={start:tN(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tN(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tN(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tL).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Y({start:e.start,end:e.end})+"): it’s not open");n.position.end=tN(e.end)}function a(){return ep(this.stack.pop(),"boolean"!=typeof ed.includeImageAlt||ed.includeImageAlt,"boolean"!=typeof ed.includeHtml||ed.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tN(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tN(e.end)}function h(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function d(){return{type:"code",lang:null,meta:null,value:""}}function p(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function m(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!eb(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ew.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ew.call(i,r)||(i[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);em(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([i,...(e||{}).extensions||[]]),content:n(ez),defined:[],document:n(eD),flow:n(eq),lazy:{},string:n(eU),text:n(eV)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],l=[],s=[],a={attempt:p(function(e,t){g(e,t.from)}),check:p(d),consume:function(e){eT(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,m()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:p(d,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,m()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o,l=e[r];if("string"==typeof l)o=l;else switch(l){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(l)}n=-2===l,i.push(o)}return i.join("")}(h(e),t)},sliceStream:h,write:function(e){return(l=ey(l,e),function(){let e;for(;r._index<l.length;){let n=l[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==l[l.length-1])?[]:(g(t,0),u.events=tc(o,u.events,u),u.events)}},c=t.tokenize.call(u,a);return t.resolveAll&&o.push(t),u;function h(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,l)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(l,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function d(e,t){t.restore()}function p(e,t){return function(n,i,o){var l;let c,h,d,p;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(l=n,function(e){let t=null!==e&&l[e],n=null!==e&&l.null;return g([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function g(e){return(c=e,h=0,0===e.length)?o:y(e[h])}function y(e){return function(n){return(p=function(){let e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(s);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=o,m()}}}(),d=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,a,v,x)(n)}}function v(t){return e(d,p),i}function x(e){return(p.restore(),++h<c.length)?y(c[h]):o}}}function g(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&em(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function m(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(o).document().write((s=1,a="",u=!0,function(e,t,n){let r,i,o,c,h,f=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,a="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tT.lastIndex=o,c=(r=tT.exec(e))&&void 0!==r.index?r.index:e.length,h=e.charCodeAt(c),!r){a=e.slice(o);break}if(10===h&&o===c&&l)f.push(-3),l=void 0;else switch(l&&(f.push(-5),l=void 0),o<c&&(f.push(e.slice(o,c)),s+=c-o),h){case 0:f.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),f.push(-2);s++<i;)f.push(-1);break;case 10:f.push(-4),s=1;break;default:l=!0,s=1}o=c+1}return n&&(l&&f.push(-5),a&&f.push(a),f.push(null)),f})(n,r,!0))))}}let tD="object"==typeof self?self:globalThis,tB=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,l]=t[i];switch(o){case 0:case -1:return n(l,i);case 1:{let e=n([],i);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),i);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n(new tD[e](t),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{let{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}}return n(new tD[o](l),i)};return r})(new Map,e)(0),{toString:tj}={},{keys:tF}=Object,tH=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tj.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tq=([e,t])=>0===e&&("function"===t||"symbol"===t),t$=(e,{json:t,lossy:n}={})=>{let r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[l,s]=tH(r);switch(l){case 0:{let t=r;switch(s){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([l,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([l,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],a=i([l,n],r);for(let t of tF(r))(e||!tq(tH(r[t])))&&n.push([o(t),o(r[t])]);return a}case 3:return i([l,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([l,{source:e,flags:t}],r)}case 5:{let t=[],n=i([l,t],r);for(let[n,i]of r)(e||!(tq(tH(n))||tq(tH(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([l,t],r);for(let n of r)(e||!tq(tH(n)))&&t.push(o(n));return n}}let{message:a}=r;return i([l,{name:s,message:a}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},tU="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tB(t$(e,t)):structuredClone(e):(e,t)=>tB(t$(e,t));function tV(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),l="";if(37===o&&e_(e.charCodeAt(n+1))&&e_(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(l=String.fromCharCode(o,t),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tX(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tY(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tW=function(e){var t,n;if(null==e)return tZ;if("function"==typeof e)return tK(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tW(e[n]);return tK(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,tK(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,tK(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function tK(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function tZ(){return!0}let tQ=[];function tJ(e,t,n,r){let i,o,l,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,l=t,i=n):(o=t,l=n,i=r);var a=o,u=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)},c=i;"function"==typeof a&&"function"!=typeof u?(c=u,u=a):s=a;let h=tW(s),f=c?-1:1;(function e(t,n,r){let i=t&&"object"==typeof t?t:{};if("string"==typeof i.type){let e="string"==typeof i.tagName?i.tagName:"string"==typeof i.name?i.name:void 0;Object.defineProperty(o,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return o;function o(){var i;let o,l,s,d=tQ;if((!a||h(t,n,r[r.length-1]||void 0))&&!1===(d=Array.isArray(i=u(t,r))?i:"number"==typeof i?[!0,i]:null==i?tQ:[i])[0])return d;if("children"in t&&t.children&&t.children&&"skip"!==d[0])for(l=(c?t.children.length:-1)+f,s=r.concat(t);l>-1&&l<t.children.length;){if(!1===(o=e(t.children[l],l,s)())[0])return o;l="number"==typeof o[1]?o[1]:l+f}return d}})(e,void 0,[])()}function tG(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&"text"===l.type?l.value+=r:i.push({type:"text",value:r}),i}function t0(e){let t=e.spread;return null==t?e.children.length>1:t}function t1(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t2={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tV(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=l+1,s+=1,e.footnoteCounts.set(i,s);let a={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,a);let u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={src:tV(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tV(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={href:tV(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tV(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=t0(n[r])}return t}(n):t0(t),o={},l=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?l.push(e):l.push(...e.children)}let a=r[r.length-1];a&&(i||"element"!==a.type||"p"!==a.tagName)&&l.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=V(t.children[1]),l=U(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,l=o?o.length:t.children.length,s=-1,a=[];for(;++s<l;){let n=t.children[s],r={},l=o?o[s]:void 0;l&&(r.align=l);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),a.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(t1(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(t1(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t3,yaml:t3,definition:t3,footnoteDefinition:t3};function t3(){}let t4={}.hasOwnProperty,t6={};function t5(e,t){e.position&&(t.position=function(e){let t=V(e),n=U(e);if(t&&n)return{start:t,end:n}}(e))}function t9(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tU(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function t8(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function t7(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ne(e,t){let n=function(e,t){let n=t||t6,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=t7(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=t7(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:t9,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...t2,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(t4.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tU(n);return r.children=o.all(e),r}return tU(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(t4.call(n,"hProperties")||t4.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(o,e,t)},options:n,patch:t5,wrap:t8};return tJ(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tX,r=e.options.footnoteBackLabel||tY,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],a=-1;for(;++a<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[a]);if(!i)continue;let o=e.all(i),l=String(i.identifier).toUpperCase(),u=tV(l.toLowerCase()),c=0,h=[],f=e.footnoteCounts.get(l);for(;void 0!==f&&++c<=f;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(a,c);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(a,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=o[o.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...h)}else o.push(...h);let p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),s.push(p)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tU(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function nt(e,t){return e&&"run"in e?async function(n,r){let i=ne(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ne(n,{file:r,...e||t})}}function nn(e){if(e)throw e}var nr=n(7819);function ni(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let no={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nl(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let l=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else l<0&&(n=!0,l=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=l));return r===i?i=l:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(nl(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;nl(e);let n=e.length,r=-1,i=0,o=-1,l=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||r<0||0===l||1===l&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)nl(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){nl(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",o=0,l=-1,s=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else if(47===n)break;else n=47;if(47===n){if(l===a-1||1===s);else if(l!==a-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=a,s=0;continue}}else if(i.length>0){i="",o=0,l=a,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,a):i=e.slice(l+1,a),o=a-l-1;l=a,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function nl(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let ns={cwd:function(){return"/"}};function na(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nu=["history","path","basename","stem","extname","dirname"];class nc{constructor(e){let t,n;t=e?na(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":ns.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nu.length;){let e=nu[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nu.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?no.basename(this.path):void 0}set basename(e){nf(e,"basename"),nh(e,"basename"),this.path=no.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?no.dirname(this.path):void 0}set dirname(e){nd(this.basename,"dirname"),this.path=no.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?no.extname(this.path):void 0}set extname(e){if(nh(e,"extname"),nd(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=no.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){na(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!na(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nf(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?no.basename(this.path,this.extname):void 0}set stem(e){nf(e,"stem"),nh(e,"stem"),this.path=no.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Q(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nh(e,t){if(e&&e.includes(no.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+no.sep+"`")}function nf(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nd(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let np=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ng={}.hasOwnProperty;class nm extends np{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(o,...l){let s=e[++n],a=-1;if(o)return void r(o);for(;++a<t.length;)(null===l[a]||void 0===l[a])&&(l[a]=t[a]);t=l,s?(function(e,t){let n;return function(...t){let o,l=e.length>t.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...l):r(null,...l)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nm,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(nr(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nb("data",this.frozen),this.namespace[e]=t,this):ng.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nb("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=n_(e),n=this.parser||this.Parser;return nv("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nv("process",this.parser||this.Parser),nx("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=n_(e),l=n.parse(o);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(l,o,function(e,t,r){var i,o;if(e||!t||!r)return s(e);let l=n.stringify(t,r);"string"==typeof(i=l)||(o=i)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?r.value=l:r.result=l,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nv("processSync",this.parser||this.Parser),nx("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nn(e),t=r}),nk("processSync","process",n),t}run(e,t,n){nw(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){let l=n_(t);r.run(e,l,function(t,r,l){let s=r||e;t?o(t):i?i(s):n(void 0,s,l)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nn(e),n=t,r=!0}),nk("runSync","run",r),n}stringify(e,t){this.freeze();let n=n_(t),r=this.compiler||this.Compiler;return nx("stringify",r),nw(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nb("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=nr(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)l(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;l(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,l=n[i][1];ni(l)&&ni(r)&&(r=nr(!0,l,r)),n[i]=[e,r,...o]}}}}let ny=new nm().freeze();function nv(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nx(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nb(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nw(e){if(!ni(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nk(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function n_(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new nc(e)}let nE=[],nS={allowDangerousHtml:!0},nA=/^(https?|ircs?|mailto|xmpp)$/i,nM=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nC(e){let t=function(e){let t=e.rehypePlugins||nE,n=e.remarkPlugins||nE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nS}:nS;return ny().use(tz).use(n).use(nt,r).use(t)}(e),n=function(e){let t=e.children||"",n=new nc;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,s=t.unwrapDisallowed,a=t.urlTransform||nT;for(let e of nM)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return tJ(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return l?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eh)if(Object.hasOwn(eh,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eh[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=a(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,o;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,l=function(e,t,i,o){let l=Array.isArray(i.children),s=V(e);return r(t,i,o,l,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,l=function(e,t,n,r){let l=Array.isArray(n.children)?o:i;return r?l(t,n,r):l(t,n)}}let a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?z:L,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=ei(a,e,void 0);return u&&"string"!=typeof u?u:a.create(e,a.Fragment,{children:u||void 0},void 0)}(e,{Fragment:ef.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ef.jsx,jsxs:ef.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nT(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nA.test(e.slice(0,t))?e:""}},8974:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},8984:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9383).A)("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},9004:(e,t,n)=>{"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{x:()=>r})},9023:(e,t,n)=>{"use strict";n.d(t,{u:()=>u});var r=n(4669),i=n(7135),o=n(6992),l=n(3382),s=n(5386),a=n(6409);function u(e){let{children:t,elementsRef:n,labelsRef:u,onMapChange:d}=e,p=(0,o.K)(d),g=r.useRef(0),m=(0,i.j)(h).current,y=(0,i.j)(c).current,[v,x]=r.useState(0),b=r.useRef(v),w=(0,o.K)((e,t)=>{y.set(e,null!=t?t:null),b.current+=1,x(b.current)}),k=(0,o.K)(e=>{y.delete(e),b.current+=1,x(b.current)}),_=r.useMemo(()=>{let e=new Map;return Array.from(y.keys()).filter(e=>e.isConnected).sort(f).forEach((t,n)=>{var r;let i=null!=(r=y.get(t))?r:{};e.set(t,{...i,index:n})}),e},[y,v]);(0,l.g)(()=>{if("function"!=typeof MutationObserver||0===_.size)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),0===t.size&&(b.current+=1,x(b.current))});return _.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[_]),(0,l.g)(()=>{b.current===v&&(n.current.length!==_.size&&(n.current.length=_.size),u&&u.current.length!==_.size&&(u.current.length=_.size),g.current=_.size),p(_)},[p,_,n,u,v]),(0,l.g)(()=>()=>{n.current=[]},[n]),(0,l.g)(()=>()=>{u&&(u.current=[])},[u]);let E=(0,o.K)(e=>(m.add(e),()=>{m.delete(e)}));(0,l.g)(()=>{m.forEach(e=>e(_))},[m,_]);let S=r.useMemo(()=>({register:w,unregister:k,subscribeMapChange:E,elementsRef:n,labelsRef:u,nextIndexRef:g}),[w,k,E,n,u,g]);return(0,a.jsx)(s.D.Provider,{value:S,children:t})}function c(){return new Map}function h(){return new Set}function f(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}},9663:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4669),i=n(4926),o=n(3172),l=n(6832);let s=r.forwardRef(function(e,t){let{render:n,className:s,...a}=e,{max:u,min:c,value:h,state:f}=(0,o.A)(),d=Number.isFinite(h)&&null!==h?(h-c)*100/(u-c):null,p=r.useCallback(()=>null==d?{}:{insetInlineStart:0,height:"inherit",width:"".concat(d,"%")},[d]);return(0,i.o)("div",e,{state:f,ref:t,props:[{style:p()},a],stateAttributesMapping:l.I})})},9730:(e,t,n)=>{"use strict";var r=n(3814);n.o(r,"redirect")&&n.d(t,{redirect:function(){return r.redirect}}),n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}})},9984:(e,t,n)=>{"use strict";n.d(t,{G:()=>o,z:()=>l});var r=n(1851),i=n(4669);let o=i.createContext(void 0);function l(){let e=i.useContext(o);if(void 0===e)throw Error((0,r.A)(64));return e}}}]);
|