@revisium/admin 2.5.1 → 2.6.0-alpha.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.
@@ -0,0 +1,49 @@
1
+ import{a as e,n as t,r as n,t as r}from"./rolldown-runtime-COnpUsM8.js";var i=JSON,a=e=>e.toUpperCase(),o=e=>{let t={};return e.forEach((e,n)=>{t[n]=e}),t},s=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},c=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0},l=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0};function u(e,t){if(!e)throw Error(t)}var d=t((()=>{}));function f(e){return typeof e==`object`&&!!e}function p(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}var m=/\r\n|[\n\r]/g;function h(e,t){let n=0,r=1;for(let i of e.body.matchAll(m)){if(typeof i.index==`number`||p(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function g(e){return _(e.source,h(e.source,e.start))}function _(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+v([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+v([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function v(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
2
+ `)}function ee(e){let t=e[0];return t==null||`kind`in t||`length`in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var y=class e extends Error{constructor(t,...n){let{nodes:r,source:i,positions:a,path:o,originalError:s,extensions:c}=ee(n);super(t),this.name=`GraphQLError`,this.path=o??void 0,this.originalError=s??void 0,this.nodes=b(Array.isArray(r)?r:r?[r]:void 0);let l=b(this.nodes?.map(e=>e.loc).filter(e=>e!=null));this.source=i??l?.[0]?.source,this.positions=a??l?.map(e=>e.start),this.locations=a&&i?a.map(e=>h(i,e)):l?.map(e=>h(e.source,e.start));let u=f(s?.extensions)?s?.extensions:void 0;this.extensions=c??u??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?Object.defineProperty(this,`stack`,{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,`stack`,{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return`GraphQLError`}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+=`
3
+
4
+ `+g(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+=`
5
+
6
+ `+_(this.source,t);return e}toJSON(){let e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function b(e){return e===void 0||e.length===0?void 0:e}function x(e,t,n){return new y(`Syntax Error: ${n}`,{source:e,positions:[t]})}function S(e){let t=e?.kind;return typeof t==`string`&&te.has(t)}var C,w,T,te,E,D=t((()=>{C=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return`Location`}toJSON(){return{start:this.start,end:this.end}}},w=class{constructor(e,t,n,r,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return`Token`}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},T={Name:[],Document:[`definitions`],OperationDefinition:[`name`,`variableDefinitions`,`directives`,`selectionSet`],VariableDefinition:[`variable`,`type`,`defaultValue`,`directives`],Variable:[`name`],SelectionSet:[`selections`],Field:[`alias`,`name`,`arguments`,`directives`,`selectionSet`],Argument:[`name`,`value`],FragmentSpread:[`name`,`directives`],InlineFragment:[`typeCondition`,`directives`,`selectionSet`],FragmentDefinition:[`name`,`variableDefinitions`,`typeCondition`,`directives`,`selectionSet`],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[`values`],ObjectValue:[`fields`],ObjectField:[`name`,`value`],Directive:[`name`,`arguments`],NamedType:[`name`],ListType:[`type`],NonNullType:[`type`],SchemaDefinition:[`description`,`directives`,`operationTypes`],OperationTypeDefinition:[`type`],ScalarTypeDefinition:[`description`,`name`,`directives`],ObjectTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],FieldDefinition:[`description`,`name`,`arguments`,`type`,`directives`],InputValueDefinition:[`description`,`name`,`type`,`defaultValue`,`directives`],InterfaceTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],UnionTypeDefinition:[`description`,`name`,`directives`,`types`],EnumTypeDefinition:[`description`,`name`,`directives`,`values`],EnumValueDefinition:[`description`,`name`,`directives`],InputObjectTypeDefinition:[`description`,`name`,`directives`,`fields`],DirectiveDefinition:[`description`,`name`,`arguments`,`locations`],SchemaExtension:[`directives`,`operationTypes`],ScalarTypeExtension:[`name`,`directives`],ObjectTypeExtension:[`name`,`interfaces`,`directives`,`fields`],InterfaceTypeExtension:[`name`,`interfaces`,`directives`,`fields`],UnionTypeExtension:[`name`,`directives`,`types`],EnumTypeExtension:[`name`,`directives`,`values`],InputObjectTypeExtension:[`name`,`directives`,`fields`]},te=new Set(Object.keys(T)),(function(e){e.QUERY=`query`,e.MUTATION=`mutation`,e.SUBSCRIPTION=`subscription`})(E||={})}));D();var ne;(function(e){e.QUERY=`QUERY`,e.MUTATION=`MUTATION`,e.SUBSCRIPTION=`SUBSCRIPTION`,e.FIELD=`FIELD`,e.FRAGMENT_DEFINITION=`FRAGMENT_DEFINITION`,e.FRAGMENT_SPREAD=`FRAGMENT_SPREAD`,e.INLINE_FRAGMENT=`INLINE_FRAGMENT`,e.VARIABLE_DEFINITION=`VARIABLE_DEFINITION`,e.SCHEMA=`SCHEMA`,e.SCALAR=`SCALAR`,e.OBJECT=`OBJECT`,e.FIELD_DEFINITION=`FIELD_DEFINITION`,e.ARGUMENT_DEFINITION=`ARGUMENT_DEFINITION`,e.INTERFACE=`INTERFACE`,e.UNION=`UNION`,e.ENUM=`ENUM`,e.ENUM_VALUE=`ENUM_VALUE`,e.INPUT_OBJECT=`INPUT_OBJECT`,e.INPUT_FIELD_DEFINITION=`INPUT_FIELD_DEFINITION`})(ne||={});var O,k=t((()=>{(function(e){e.NAME=`Name`,e.DOCUMENT=`Document`,e.OPERATION_DEFINITION=`OperationDefinition`,e.VARIABLE_DEFINITION=`VariableDefinition`,e.SELECTION_SET=`SelectionSet`,e.FIELD=`Field`,e.ARGUMENT=`Argument`,e.FRAGMENT_SPREAD=`FragmentSpread`,e.INLINE_FRAGMENT=`InlineFragment`,e.FRAGMENT_DEFINITION=`FragmentDefinition`,e.VARIABLE=`Variable`,e.INT=`IntValue`,e.FLOAT=`FloatValue`,e.STRING=`StringValue`,e.BOOLEAN=`BooleanValue`,e.NULL=`NullValue`,e.ENUM=`EnumValue`,e.LIST=`ListValue`,e.OBJECT=`ObjectValue`,e.OBJECT_FIELD=`ObjectField`,e.DIRECTIVE=`Directive`,e.NAMED_TYPE=`NamedType`,e.LIST_TYPE=`ListType`,e.NON_NULL_TYPE=`NonNullType`,e.SCHEMA_DEFINITION=`SchemaDefinition`,e.OPERATION_TYPE_DEFINITION=`OperationTypeDefinition`,e.SCALAR_TYPE_DEFINITION=`ScalarTypeDefinition`,e.OBJECT_TYPE_DEFINITION=`ObjectTypeDefinition`,e.FIELD_DEFINITION=`FieldDefinition`,e.INPUT_VALUE_DEFINITION=`InputValueDefinition`,e.INTERFACE_TYPE_DEFINITION=`InterfaceTypeDefinition`,e.UNION_TYPE_DEFINITION=`UnionTypeDefinition`,e.ENUM_TYPE_DEFINITION=`EnumTypeDefinition`,e.ENUM_VALUE_DEFINITION=`EnumValueDefinition`,e.INPUT_OBJECT_TYPE_DEFINITION=`InputObjectTypeDefinition`,e.DIRECTIVE_DEFINITION=`DirectiveDefinition`,e.SCHEMA_EXTENSION=`SchemaExtension`,e.SCALAR_TYPE_EXTENSION=`ScalarTypeExtension`,e.OBJECT_TYPE_EXTENSION=`ObjectTypeExtension`,e.INTERFACE_TYPE_EXTENSION=`InterfaceTypeExtension`,e.UNION_TYPE_EXTENSION=`UnionTypeExtension`,e.ENUM_TYPE_EXTENSION=`EnumTypeExtension`,e.INPUT_OBJECT_TYPE_EXTENSION=`InputObjectTypeExtension`})(O||={})}));function A(e){return e===9||e===32}function j(e){return e>=48&&e<=57}function re(e){return e>=97&&e<=122||e>=65&&e<=90}function ie(e){return re(e)||e===95}function ae(e){return re(e)||j(e)||e===95}var oe=t((()=>{}));function se(e){let t=2**53-1,n=null,r=-1;for(let i=0;i<e.length;++i){let a=e[i],o=ce(a);o!==a.length&&(n??=i,r=i,i!==0&&o<t&&(t=o))}return e.map((e,n)=>n===0?e:e.slice(t)).slice(n??0,r+1)}function ce(e){let t=0;for(;t<e.length&&A(e.charCodeAt(t));)++t;return t}function le(e,t){let n=e.replace(/"""/g,`\\"""`),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(e=>e.length===0||A(e.charCodeAt(0))),o=n.endsWith(`\\"""`),s=e.endsWith(`"`)&&!o,c=e.endsWith(`\\`),l=s||c,u=!(t!=null&&t.minimize)&&(!i||e.length>70||l||a||o),d=``,f=i&&A(e.charCodeAt(0));return(u&&!f||a)&&(d+=`
7
+ `),d+=n,(u||l)&&(d+=`
8
+ `),`"""`+d+`"""`}var ue=t((()=>{oe()}));k(),ue();var M;(function(e){e.SOF=`<SOF>`,e.EOF=`<EOF>`,e.BANG=`!`,e.DOLLAR=`$`,e.AMP=`&`,e.PAREN_L=`(`,e.PAREN_R=`)`,e.SPREAD=`...`,e.COLON=`:`,e.EQUALS=`=`,e.AT=`@`,e.BRACKET_L=`[`,e.BRACKET_R=`]`,e.BRACE_L=`{`,e.PIPE=`|`,e.BRACE_R=`}`,e.NAME=`Name`,e.INT=`Int`,e.FLOAT=`Float`,e.STRING=`String`,e.BLOCK_STRING=`BlockString`,e.COMMENT=`Comment`})(M||={}),oe();var de=class{constructor(e){let t=new w(M.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return`Lexer`}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==M.EOF)do if(e.next)e=e.next;else{let t=he(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===M.COMMENT);return e}};function fe(e){return e===M.BANG||e===M.DOLLAR||e===M.AMP||e===M.PAREN_L||e===M.PAREN_R||e===M.SPREAD||e===M.COLON||e===M.EQUALS||e===M.AT||e===M.BRACKET_L||e===M.BRACKET_R||e===M.BRACE_L||e===M.PIPE||e===M.BRACE_R}function N(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function P(e,t){return pe(e.charCodeAt(t))&&me(e.charCodeAt(t+1))}function pe(e){return e>=55296&&e<=56319}function me(e){return e>=56320&&e<=57343}function F(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return M.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return e===`"`?`'"'`:`"${e}"`}return`U+`+n.toString(16).toUpperCase().padStart(4,`0`)}function I(e,t,n,r,i){let a=e.line;return new w(t,n,r,a,1+n-e.lineStart,i)}function he(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return ge(e,i);case 33:return I(e,M.BANG,i,i+1);case 36:return I(e,M.DOLLAR,i,i+1);case 38:return I(e,M.AMP,i,i+1);case 40:return I(e,M.PAREN_L,i,i+1);case 41:return I(e,M.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return I(e,M.SPREAD,i,i+3);break;case 58:return I(e,M.COLON,i,i+1);case 61:return I(e,M.EQUALS,i,i+1);case 64:return I(e,M.AT,i,i+1);case 91:return I(e,M.BRACKET_L,i,i+1);case 93:return I(e,M.BRACKET_R,i,i+1);case 123:return I(e,M.BRACE_L,i,i+1);case 124:return I(e,M.PIPE,i,i+1);case 125:return I(e,M.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?Ce(e,i):ve(e,i)}if(j(t)||t===45)return _e(e,i,t);if(ie(t))return we(e,i);throw x(e.source,i,t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:N(t)||P(n,i)?`Unexpected character: ${F(e,i)}.`:`Invalid character: ${F(e,i)}.`)}return I(e,M.EOF,r,r)}function ge(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(e===10||e===13)break;if(N(e))++i;else if(P(n,i))i+=2;else break}return I(e,M.COMMENT,t,i,n.slice(t+1,i))}function _e(e,t,n){let r=e.source.body,i=t,a=n,o=!1;if(a===45&&(a=r.charCodeAt(++i)),a===48){if(a=r.charCodeAt(++i),j(a))throw x(e.source,i,`Invalid number, unexpected digit after 0: ${F(e,i)}.`)}else i=L(e,i,a),a=r.charCodeAt(i);if(a===46&&(o=!0,a=r.charCodeAt(++i),i=L(e,i,a),a=r.charCodeAt(i)),(a===69||a===101)&&(o=!0,a=r.charCodeAt(++i),(a===43||a===45)&&(a=r.charCodeAt(++i)),i=L(e,i,a),a=r.charCodeAt(i)),a===46||ie(a))throw x(e.source,i,`Invalid number, expected digit but got: ${F(e,i)}.`);return I(e,o?M.FLOAT:M.INT,t,i,r.slice(t,i))}function L(e,t,n){if(!j(n))throw x(e.source,t,`Invalid number, expected digit but got: ${F(e,t)}.`);let r=e.source.body,i=t+1;for(;j(r.charCodeAt(i));)++i;return i}function ve(e,t){let n=e.source.body,r=n.length,i=t+1,a=i,o=``;for(;i<r;){let r=n.charCodeAt(i);if(r===34)return o+=n.slice(a,i),I(e,M.STRING,t,i+1,o);if(r===92){o+=n.slice(a,i);let t=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?ye(e,i):be(e,i):Se(e,i);o+=t.value,i+=t.size,a=i;continue}if(r===10||r===13)break;if(N(r))++i;else if(P(n,i))i+=2;else throw x(e.source,i,`Invalid character within String: ${F(e,i)}.`)}throw x(e.source,i,`Unterminated string.`)}function ye(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+ i++);if(e===125){if(i<5||!N(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|R(e),r<0)break}throw x(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function be(e,t){let n=e.source.body,r=xe(n,t+2);if(N(r))return{value:String.fromCodePoint(r),size:6};if(pe(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let e=xe(n,t+8);if(me(e))return{value:String.fromCodePoint(r,e),size:12}}throw x(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function xe(e,t){return R(e.charCodeAt(t))<<12|R(e.charCodeAt(t+1))<<8|R(e.charCodeAt(t+2))<<4|R(e.charCodeAt(t+3))}function R(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Se(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:`"`,size:2};case 92:return{value:`\\`,size:2};case 47:return{value:`/`,size:2};case 98:return{value:`\b`,size:2};case 102:return{value:`\f`,size:2};case 110:return{value:`
9
+ `,size:2};case 114:return{value:`\r`,size:2};case 116:return{value:` `,size:2}}throw x(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Ce(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s=``,c=[];for(;a<r;){let r=n.charCodeAt(a);if(r===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){s+=n.slice(o,a),c.push(s);let r=I(e,M.BLOCK_STRING,t,a+3,se(c).join(`
10
+ `));return e.line+=c.length-1,e.lineStart=i,r}if(r===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){s+=n.slice(o,a),o=a+1,a+=4;continue}if(r===10||r===13){s+=n.slice(o,a),c.push(s),r===13&&n.charCodeAt(a+1)===10?a+=2:++a,s=``,o=a,i=a;continue}if(N(r))++a;else if(P(n,a))a+=2;else throw x(e.source,a,`Invalid character within String: ${F(e,a)}.`)}throw x(e.source,a,`Unterminated string.`)}function we(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r&&ae(n.charCodeAt(i));)++i;return I(e,M.NAME,t,i,n.slice(t,i))}function z(e){return B(e,[])}function B(e,t){switch(typeof e){case`string`:return JSON.stringify(e);case`function`:return e.name?`[function ${e.name}]`:`[function]`;case`object`:return Te(e,t);default:return String(e)}}function Te(e,t){if(e===null)return`null`;if(t.includes(e))return`[Circular]`;let n=[...t,e];if(Ee(e)){let t=e.toJSON();if(t!==e)return typeof t==`string`?t:B(t,n)}else if(Array.isArray(e))return Oe(e,n);return De(e,n)}function Ee(e){return typeof e.toJSON==`function`}function De(e,t){let n=Object.entries(e);return n.length===0?`{}`:t.length>V?`[`+ke(e)+`]`:`{ `+n.map(([e,n])=>e+`: `+B(n,t)).join(`, `)+` }`}function Oe(e,t){if(e.length===0)return`[]`;if(t.length>V)return`[Array]`;let n=Math.min(Ae,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(B(e[r],t));return r===1?i.push(`... 1 more item`):r>1&&i.push(`... ${r} more items`),`[`+i.join(`, `)+`]`}function ke(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,``).replace(/]$/,``);if(t===`Object`&&typeof e.constructor==`function`){let t=e.constructor.name;if(typeof t==`string`&&t!==``)return t}return t}var Ae,V,H=t((()=>{Ae=10,V=2}));d(),H();var je=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e==`object`&&e){let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:e.constructor?.name)){let t=z(e);throw Error(`Cannot use ${n} "${t}" from another module or realm.
11
+
12
+ Ensure that there is only one instance of "graphql" in the node_modules
13
+ directory. If different versions of "graphql" are the dependencies of other
14
+ relied on modules, use "resolutions" to ensure only one version is installed.
15
+
16
+ https://yarnpkg.com/en/docs/selective-version-resolutions
17
+
18
+ Duplicate "graphql" modules cannot be used at the same time since different
19
+ versions may have different capabilities and behavior. The data from one
20
+ version used in the function from another could produce confusing and
21
+ spurious results.`)}}return!1};H();var Me=class{constructor(e,t=`GraphQL request`,n={line:1,column:1}){typeof e==`string`||u(!1,`Body must be a string. Received: ${z(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||u(!1,`line in locationOffset is 1-indexed and must be positive.`),this.locationOffset.column>0||u(!1,`column in locationOffset is 1-indexed and must be positive.`)}get[Symbol.toStringTag](){return`Source`}};function Ne(e){return je(e,Me)}D();function Pe(e,t){return new Fe(e,t).parseDocument()}var Fe=class{constructor(e,t={}){this._lexer=new de(Ne(e)?e:new Me(e)),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(M.NAME);return this.node(e,{kind:O.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:O.DOCUMENT,definitions:this.many(M.SOF,this.parseDefinition,M.EOF)})}parseDefinition(){if(this.peek(M.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===M.NAME){switch(t.value){case`schema`:return this.parseSchemaDefinition();case`scalar`:return this.parseScalarTypeDefinition();case`type`:return this.parseObjectTypeDefinition();case`interface`:return this.parseInterfaceTypeDefinition();case`union`:return this.parseUnionTypeDefinition();case`enum`:return this.parseEnumTypeDefinition();case`input`:return this.parseInputObjectTypeDefinition();case`directive`:return this.parseDirectiveDefinition()}if(e)throw x(this._lexer.source,this._lexer.token.start,`Unexpected description, descriptions are supported only on type definitions.`);switch(t.value){case`query`:case`mutation`:case`subscription`:return this.parseOperationDefinition();case`fragment`:return this.parseFragmentDefinition();case`extend`:return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(M.BRACE_L))return this.node(e,{kind:O.OPERATION_DEFINITION,operation:E.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseOperationType(),n;return this.peek(M.NAME)&&(n=this.parseName()),this.node(e,{kind:O.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(M.NAME);switch(e.value){case`query`:return E.QUERY;case`mutation`:return E.MUTATION;case`subscription`:return E.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(M.PAREN_L,this.parseVariableDefinition,M.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:O.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(M.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(M.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(M.DOLLAR),this.node(e,{kind:O.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:O.SELECTION_SET,selections:this.many(M.BRACE_L,this.parseSelection,M.BRACE_R)})}parseSelection(){return this.peek(M.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,r;return this.expectOptionalToken(M.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:O.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(M.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(M.PAREN_L,t,M.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(M.COLON),this.node(t,{kind:O.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(M.SPREAD);let t=this.expectOptionalKeyword(`on`);return!t&&this.peek(M.NAME)?this.node(e,{kind:O.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:O.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return this.expectKeyword(`fragment`),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:O.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:O.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===`on`)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case M.BRACKET_L:return this.parseList(e);case M.BRACE_L:return this.parseObject(e);case M.INT:return this.advanceLexer(),this.node(t,{kind:O.INT,value:t.value});case M.FLOAT:return this.advanceLexer(),this.node(t,{kind:O.FLOAT,value:t.value});case M.STRING:case M.BLOCK_STRING:return this.parseStringLiteral();case M.NAME:switch(this.advanceLexer(),t.value){case`true`:return this.node(t,{kind:O.BOOLEAN,value:!0});case`false`:return this.node(t,{kind:O.BOOLEAN,value:!1});case`null`:return this.node(t,{kind:O.NULL});default:return this.node(t,{kind:O.ENUM,value:t.value})}case M.DOLLAR:if(e)if(this.expectToken(M.DOLLAR),this._lexer.token.kind===M.NAME){let e=this._lexer.token.value;throw x(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:O.STRING,value:e.value,block:e.kind===M.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:O.LIST,values:this.any(M.BRACKET_L,()=>this.parseValueLiteral(e),M.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:O.OBJECT,fields:this.any(M.BRACE_L,()=>this.parseObjectField(e),M.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(M.COLON),this.node(t,{kind:O.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(M.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(M.AT),this.node(t,{kind:O.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(M.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(M.BRACKET_R),t=this.node(e,{kind:O.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(M.BANG)?this.node(e,{kind:O.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:O.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(M.STRING)||this.peek(M.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`schema`);let n=this.parseConstDirectives(),r=this.many(M.BRACE_L,this.parseOperationTypeDefinition,M.BRACE_R);return this.node(e,{kind:O.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(M.COLON);let n=this.parseNamedType();return this.node(e,{kind:O.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`scalar`);let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:O.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`type`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:O.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword(`implements`)?this.delimitedMany(M.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(M.BRACE_L,this.parseFieldDefinition,M.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(M.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:O.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(M.PAREN_L,this.parseInputValueDef,M.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(M.COLON);let r=this.parseTypeReference(),i;this.expectOptionalToken(M.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:O.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`interface`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:O.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`union`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:O.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(M.EQUALS)?this.delimitedMany(M.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`enum`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:O.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(M.BRACE_L,this.parseEnumValueDefinition,M.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:O.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value===`true`||this._lexer.token.value===`false`||this._lexer.token.value===`null`)throw x(this._lexer.source,this._lexer.token.start,`${U(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`input`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:O.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(M.BRACE_L,this.parseInputValueDef,M.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===M.NAME)switch(e.value){case`schema`:return this.parseSchemaExtension();case`scalar`:return this.parseScalarTypeExtension();case`type`:return this.parseObjectTypeExtension();case`interface`:return this.parseInterfaceTypeExtension();case`union`:return this.parseUnionTypeExtension();case`enum`:return this.parseEnumTypeExtension();case`input`:return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`schema`);let t=this.parseConstDirectives(),n=this.optionalMany(M.BRACE_L,this.parseOperationTypeDefinition,M.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:O.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`scalar`);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:O.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`type`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:O.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`interface`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:O.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`union`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:O.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`enum`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:O.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`input`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:O.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`directive`),this.expectToken(M.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword(`repeatable`);this.expectKeyword(`on`);let a=this.parseDirectiveLocations();return this.node(e,{kind:O.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(M.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ne,t.value))return t;throw this.unexpected(e)}node(e,t){return this._options.noLocation!==!0&&(t.loc=new C(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw x(this._lexer.source,t.start,`Expected ${Ie(e)}, found ${U(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===M.NAME&&t.value===e)this.advanceLexer();else throw x(this._lexer.source,t.start,`Expected "${e}", found ${U(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===M.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return x(this._lexer.source,t.start,`Unexpected ${U(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(e!==void 0&&t.kind!==M.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw x(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function U(e){let t=e.value;return Ie(e.kind)+(t==null?``:` "${t}"`)}function Ie(e){return fe(e)?`"${e}"`:e}function Le(e){return`"${e.replace(ze,Re)}"`}function Re(e){return Be[e.charCodeAt(0)]}var ze,Be,Ve=t((()=>{ze=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g,Be=`\\u0000.\\u0001.\\u0002.\\u0003.\\u0004.\\u0005.\\u0006.\\u0007.\\b.\\t.\\n.\\u000B.\\f.\\r.\\u000E.\\u000F.\\u0010.\\u0011.\\u0012.\\u0013.\\u0014.\\u0015.\\u0016.\\u0017.\\u0018.\\u0019.\\u001A.\\u001B.\\u001C.\\u001D.\\u001E.\\u001F...\\"..........................................................\\\\...................................\\u007F.\\u0080.\\u0081.\\u0082.\\u0083.\\u0084.\\u0085.\\u0086.\\u0087.\\u0088.\\u0089.\\u008A.\\u008B.\\u008C.\\u008D.\\u008E.\\u008F.\\u0090.\\u0091.\\u0092.\\u0093.\\u0094.\\u0095.\\u0096.\\u0097.\\u0098.\\u0099.\\u009A.\\u009B.\\u009C.\\u009D.\\u009E.\\u009F`.split(`.`)}));function He(e,t,n=T){let r=new Map;for(let e of Object.values(O))r.set(e,Ue(t,e));let i,a=Array.isArray(e),o=[e],s=-1,c=[],l=e,d,f,p=[],m=[];do{s++;let e=s===o.length,h=e&&c.length!==0;if(e){if(d=m.length===0?void 0:p[p.length-1],l=f,f=m.pop(),h)if(a){l=l.slice();let e=0;for(let[t,n]of c){let r=t-e;n===null?(l.splice(r,1),e++):l[r]=n}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(let[e,t]of c)l[e]=t}s=i.index,o=i.keys,c=i.edits,a=i.inArray,i=i.prev}else if(f){if(d=a?s:o[s],l=f[d],l==null)continue;p.push(d)}let g;if(!Array.isArray(l)){if(S(l)||u(!1,`Invalid AST Node: ${z(l)}.`),g=(e?r.get(l.kind)?.leave:r.get(l.kind)?.enter)?.call(t,l,d,f,p,m),g===We)break;if(g===!1){if(!e){p.pop();continue}}else if(g!==void 0&&(c.push([d,g]),!e))if(S(g))l=g;else{p.pop();continue}}g===void 0&&h&&c.push([d,l]),e?p.pop():(i={inArray:a,index:s,keys:o,edits:c,prev:i},a=Array.isArray(l),o=a?l:n[l.kind]??[],s=-1,c=[],f&&m.push(f),f=l)}while(i!==void 0);return c.length===0?e:c[c.length-1][1]}function Ue(e,t){let n=e[t];return typeof n==`object`?n:typeof n==`function`?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var We,Ge=t((()=>{d(),H(),D(),k(),We=Object.freeze({})})),Ke=n({print:()=>qe});function qe(e){return He(e,Xe)}function W(e,t=``){return e?.filter(e=>e).join(t)??``}function G(e){return K(`{
22
+ `,q(W(e,`
23
+ `)),`
24
+ }`)}function K(e,t,n=``){return t!=null&&t!==``?e+t+n:``}function q(e){return K(` `,e.replace(/\n/g,`
25
+ `))}function Je(e){return e?.some(e=>e.includes(`
26
+ `))??!1}var Ye,Xe,Ze=t((()=>{ue(),Ve(),Ge(),Ye=80,Xe={Name:{leave:e=>e.value},Variable:{leave:e=>`$`+e.name},Document:{leave:e=>W(e.definitions,`
27
+
28
+ `)},OperationDefinition:{leave(e){let t=K(`(`,W(e.variableDefinitions,`, `),`)`),n=W([e.operation,W([e.name,t]),W(e.directives,` `)],` `);return(n===`query`?``:n+` `)+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+`: `+t+K(` = `,n)+K(` `,W(r,` `))},SelectionSet:{leave:({selections:e})=>G(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=K(``,e,`: `)+t,o=a+K(`(`,W(n,`, `),`)`);return o.length>Ye&&(o=a+K(`(
29
+ `,q(W(n,`
30
+ `)),`
31
+ )`)),W([o,W(r,` `),i],` `)}},Argument:{leave:({name:e,value:t})=>e+`: `+t},FragmentSpread:{leave:({name:e,directives:t})=>`...`+e+K(` `,W(t,` `))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>W([`...`,K(`on `,e),W(t,` `),n],` `)},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${K(`(`,W(n,`, `),`)`)} on ${t} ${K(``,W(r,` `),` `)}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?le(e):Le(e)},BooleanValue:{leave:({value:e})=>e?`true`:`false`},NullValue:{leave:()=>`null`},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>`[`+W(e,`, `)+`]`},ObjectValue:{leave:({fields:e})=>`{`+W(e,`, `)+`}`},ObjectField:{leave:({name:e,value:t})=>e+`: `+t},Directive:{leave:({name:e,arguments:t})=>`@`+e+K(`(`,W(t,`, `),`)`)},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>`[`+e+`]`},NonNullType:{leave:({type:e})=>e+`!`},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>K(``,e,`
32
+ `)+W([`schema`,W(t,` `),G(n)],` `)},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+`: `+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>K(``,e,`
33
+ `)+W([`scalar`,t,W(n,` `)],` `)},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>K(``,e,`
34
+ `)+W([`type`,t,K(`implements `,W(n,` & `)),W(r,` `),G(i)],` `)},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>K(``,e,`
35
+ `)+t+(Je(n)?K(`(
36
+ `,q(W(n,`
37
+ `)),`
38
+ )`):K(`(`,W(n,`, `),`)`))+`: `+r+K(` `,W(i,` `))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>K(``,e,`
39
+ `)+W([t+`: `+n,K(`= `,r),W(i,` `)],` `)},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>K(``,e,`
40
+ `)+W([`interface`,t,K(`implements `,W(n,` & `)),W(r,` `),G(i)],` `)},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>K(``,e,`
41
+ `)+W([`union`,t,W(n,` `),K(`= `,W(r,` | `))],` `)},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>K(``,e,`
42
+ `)+W([`enum`,t,W(n,` `),G(r)],` `)},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>K(``,e,`
43
+ `)+W([t,W(n,` `)],` `)},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>K(``,e,`
44
+ `)+W([`input`,t,W(n,` `),G(r)],` `)},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>K(``,e,`
45
+ `)+`directive @`+t+(Je(n)?K(`(
46
+ `,q(W(n,`
47
+ `)),`
48
+ )`):K(`(`,W(n,`, `),`)`))+(r?` repeatable`:``)+` on `+W(i,` | `)},SchemaExtension:{leave:({directives:e,operationTypes:t})=>W([`extend schema`,W(e,` `),G(t)],` `)},ScalarTypeExtension:{leave:({name:e,directives:t})=>W([`extend scalar`,e,W(t,` `)],` `)},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>W([`extend type`,e,K(`implements `,W(t,` & `)),W(n,` `),G(r)],` `)},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>W([`extend interface`,e,K(`implements `,W(t,` & `)),W(n,` `),G(r)],` `)},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>W([`extend union`,e,W(t,` `),K(`= `,W(n,` | `))],` `)},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>W([`extend enum`,e,W(t,` `),G(n)],` `)},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>W([`extend input`,e,W(t,` `),G(n)],` `)}}})),Qe=n({getOperationAST:()=>$e});function $e(e,t){let n=null;for(let r of e.definitions)if(r.kind===O.OPERATION_DEFINITION){if(t==null){if(n)return null;n=r}else if(r.name?.value===t)return r}return n}var et=t((()=>{k()})),tt=e=>{let t,n=e.definitions.filter(e=>e.kind===`OperationDefinition`);return n.length===1&&(t=n[0]?.name?.value),t},J=e=>{if(typeof e==`string`){let t;try{t=tt(Pe(e))}catch{}return{query:e,operationName:t}}let t=tt(e);return{query:qe(e),operationName:t}},Y=class e extends Error{constructor(t,n){let r=`${e.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(r),Object.setPrototypeOf(this,e.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,e)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}},X=e(r(((e,t)=>{var n=typeof globalThis<`u`&&globalThis||typeof self<`u`&&self||typeof global<`u`&&global,r=(function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e})();(function(e){(function(t){var n=e!==void 0&&e||typeof self<`u`&&self||typeof global<`u`&&global||{},r={searchParams:`URLSearchParams`in n,iterable:`Symbol`in n&&`iterator`in Symbol,blob:`FileReader`in n&&`Blob`in n&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:`FormData`in n,arrayBuffer:`ArrayBuffer`in n};function i(e){return e&&DataView.prototype.isPrototypeOf(e)}if(r.arrayBuffer)var a=[`[object Int8Array]`,`[object Uint8Array]`,`[object Uint8ClampedArray]`,`[object Int16Array]`,`[object Uint16Array]`,`[object Int32Array]`,`[object Uint32Array]`,`[object Float32Array]`,`[object Float64Array]`],o=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if(typeof e!=`string`&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e===``)throw TypeError(`Invalid character in header field name: "`+e+`"`);return e.toLowerCase()}function c(e){return typeof e!=`string`&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(e.length!=2)throw TypeError(`Headers constructor: expected name/value pair to be length 2, found`+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}u.prototype.append=function(e,t){e=s(e),t=c(t);var n=this.map[e];this.map[e]=n?n+`, `+t:t},u.prototype.delete=function(e){delete this.map[s(e)]},u.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},u.prototype.set=function(e,t){this.map[s(e)]=c(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),l(e)},r.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function d(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError(`Already read`));e.bodyUsed=!0}}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){var t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:`utf-8`;return t.readAsText(e,i),n}function h(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join(``)}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e==`string`?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&i(e)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=``),this.headers.get(`content-type`)||(typeof e==`string`?this.headers.set(`content-type`,`text/plain;charset=UTF-8`):this._bodyBlob&&this._bodyBlob.type?this.headers.set(`content-type`,this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`))},r.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error(`could not read FormData body as blob`);return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(r.blob)return this.blob().then(p);throw Error(`could not read as ArrayBuffer`)},this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return m(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(h(this._bodyArrayBuffer));if(this._bodyFormData)throw Error(`could not read FormData body as text`);return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}var v=[`CONNECT`,`DELETE`,`GET`,`HEAD`,`OPTIONS`,`PATCH`,`POST`,`PUT`,`TRACE`];function ee(e){var t=e.toUpperCase();return v.indexOf(t)>-1?t:e}function y(e,t){if(!(this instanceof y))throw TypeError(`Please use the "new" operator, this DOM object constructor cannot be called as a function.`);t||={};var r=t.body;if(e instanceof y){if(e.bodyUsed)throw TypeError(`Already read`);this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!r&&e._bodyInit!=null&&(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||`same-origin`,(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=ee(t.method||this.method||`GET`),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if(`AbortController`in n)return new AbortController().signal}(),this.referrer=null,(this.method===`GET`||this.method===`HEAD`)&&r)throw TypeError(`Body not allowed for GET or HEAD requests`);if(this._initBody(r),(this.method===`GET`||this.method===`HEAD`)&&(t.cache===`no-store`||t.cache===`no-cache`)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,`$1_=`+new Date().getTime()):this.url+=(/\?/.test(this.url)?`&`:`?`)+`_=`+new Date().getTime()}}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})};function b(e){var t=new FormData;return e.trim().split(`&`).forEach(function(e){if(e){var n=e.split(`=`),r=n.shift().replace(/\+/g,` `),i=n.join(`=`).replace(/\+/g,` `);t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function x(e){var t=new u;return e.replace(/\r?\n[\t ]+/g,` `).split(`\r`).map(function(e){return e.indexOf(`
49
+ `)===0?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(`:`),r=n.shift().trim();if(r){var i=n.join(`:`).trim();try{t.append(r,i)}catch(e){console.warn(`Response `+e.message)}}}),t}_.call(y.prototype);function S(e,t){if(!(this instanceof S))throw TypeError(`Please use the "new" operator, this DOM object constructor cannot be called as a function.`);if(t||={},this.type=`default`,this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw RangeError(`Failed to construct 'Response': The status provided (0) is outside the range [200, 599].`);this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?``:``+t.statusText,this.headers=new u(t.headers),this.url=t.url||``,this._initBody(e)}_.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:200,statusText:``});return e.ok=!1,e.status=0,e.type=`error`,e};var C=[301,302,303,307,308];S.redirect=function(e,t){if(C.indexOf(t)===-1)throw RangeError(`Invalid status code`);return new S(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(e,t){this.message=e,this.name=t,this.stack=Error(e).stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,i){return new Promise(function(a,o){var l=new y(e,i);if(l.signal&&l.signal.aborted)return o(new t.DOMException(`Aborted`,`AbortError`));var d=new XMLHttpRequest;function f(){d.abort()}d.onload=function(){var e={statusText:d.statusText,headers:x(d.getAllResponseHeaders()||``)};l.url.indexOf(`file://`)===0&&(d.status<200||d.status>599)?e.status=200:e.status=d.status,e.url=`responseURL`in d?d.responseURL:e.headers.get(`X-Request-URL`);var t=`response`in d?d.response:d.responseText;setTimeout(function(){a(new S(t,e))},0)},d.onerror=function(){setTimeout(function(){o(TypeError(`Network request failed`))},0)},d.ontimeout=function(){setTimeout(function(){o(TypeError(`Network request timed out`))},0)},d.onabort=function(){setTimeout(function(){o(new t.DOMException(`Aborted`,`AbortError`))},0)};function p(e){try{return e===``&&n.location.href?n.location.href:e}catch{return e}}if(d.open(l.method,p(l.url),!0),l.credentials===`include`?d.withCredentials=!0:l.credentials===`omit`&&(d.withCredentials=!1),`responseType`in d&&(r.blob?d.responseType=`blob`:r.arrayBuffer&&(d.responseType=`arraybuffer`)),i&&typeof i.headers==`object`&&!(i.headers instanceof u||n.Headers&&i.headers instanceof n.Headers)){var m=[];Object.getOwnPropertyNames(i.headers).forEach(function(e){m.push(s(e)),d.setRequestHeader(e,c(i.headers[e]))}),l.headers.forEach(function(e,t){m.indexOf(t)===-1&&d.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){d.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener(`abort`,f),d.onreadystatechange=function(){d.readyState===4&&l.signal.removeEventListener(`abort`,f)}),d.send(l._bodyInit===void 0?null:l._bodyInit)})}return w.polyfill=!0,n.fetch||(n.fetch=w,n.Headers=u,n.Request=y,n.Response=S),t.Headers=u,t.Request=y,t.Response=S,t.fetch=w,Object.defineProperty(t,`__esModule`,{value:!0}),t})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}))(),1),nt=`connection_init`,rt=`connection_ack`,it=`ping`,at=`pong`,ot=`subscribe`,st=`next`,ct=`error`,lt=`complete`,Z=class e{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(e,t,n){this._type=e,this._payload=t,this._id=n}get text(){let e={type:this.type};return this.id!=null&&this.id!=null&&(e.id=this.id),this.payload!=null&&this.payload!=null&&(e.payload=this.payload),JSON.stringify(e)}static parse(t,n){let{type:r,payload:i,id:a}=JSON.parse(t);return new e(r,n(i),a)}},ut=class{constructor(e,{onInit:t,onAcknowledged:n,onPing:r,onPong:i}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.addEventListener(`open`,async n=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},e.send(ft(t?await t():null).text)}),e.addEventListener(`close`,e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),e.addEventListener(`error`,e=>{console.error(e)}),e.addEventListener(`message`,t=>{try{let a=dt(t.data);switch(a.type){case rt:this.socketState.acknowledged?console.warn(`Duplicate CONNECTION_ACK message ignored`):(this.socketState.acknowledged=!0,n&&n(a.payload));return;case it:r?r(a.payload).then(t=>e.send(mt(t).text)):e.send(mt(null).text);return;case at:i&&i(a.payload);return}if(!this.socketState.acknowledged||a.id===void 0||a.id===null||!this.socketState.subscriptions[a.id])return;let{query:o,variables:s,subscriber:c}=this.socketState.subscriptions[a.id];switch(a.type){case st:!a.payload.errors&&a.payload.data&&c.next&&c.next(a.payload.data),a.payload.errors&&c.error&&c.error(new Y({...a.payload,status:200},{query:o,variables:s}));return;case ct:c.error&&c.error(new Y({errors:a.payload,status:200},{query:o,variables:s}));return;case lt:c.complete&&c.complete(),delete this.socketState.subscriptions[a.id];return}}catch(t){console.error(t),e.close(1006)}e.close(4400,`Unknown graphql-ws message.`)})}makeSubscribe(e,t,n,r){let i=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[i]={query:e,variables:r,subscriber:n},this.socket.send(ht(i,{query:e,operationName:t,variables:r}).text),()=>{this.socket.send(gt(i).text),delete this.socketState.subscriptions[i]}}rawRequest(e,t){return new Promise((n,r)=>{let i;this.rawSubscribe(e,{next:(e,t)=>i={data:e,extensions:t},error:r,complete:()=>n(i)},t)})}request(e,t){return new Promise((n,r)=>{let i;this.subscribe(e,{next:e=>i=e,error:r,complete:()=>n(i)},t)})}subscribe(e,t,n){let{query:r,operationName:i}=J(e);return this.makeSubscribe(r,i,t,n)}rawSubscribe(e,t,n){return this.makeSubscribe(e,void 0,t,n)}ping(e){this.socket.send(pt(e).text)}close(){this.socket.close(1e3)}};ut.PROTOCOL=`graphql-transport-ws`;function dt(e,t=e=>e){return Z.parse(e,t)}function ft(e){return new Z(nt,e)}function pt(e){return new Z(it,e,void 0)}function mt(e){return new Z(at,e,void 0)}function ht(e,t){return new Z(ot,t,e)}function gt(e){return new Z(lt,void 0,e)}var Q=e=>{let t={};return e&&(typeof Headers<`u`&&e instanceof Headers||X&&X.Headers&&e instanceof X.Headers?t=o(e):Array.isArray(e)?e.forEach(([e,n])=>{e&&n!==void 0&&(t[e]=n)}):t=e),t},_t=e=>e.replace(/([\s,]|#[^\n\r]+)+/g,` `).trim(),vt=e=>{if(!Array.isArray(e.query)){let t=e,n=[`query=${encodeURIComponent(_t(t.query))}`];return e.variables&&n.push(`variables=${encodeURIComponent(t.jsonSerializer.stringify(t.variables))}`),t.operationName&&n.push(`operationName=${encodeURIComponent(t.operationName)}`),n.join(`&`)}if(e.variables!==void 0&&!Array.isArray(e.variables))throw Error(`Cannot create query with given variable type, array expected`);let t=e,n=e.query.reduce((e,n,r)=>(e.push({query:_t(n),variables:t.variables?t.jsonSerializer.stringify(t.variables[r]):void 0}),e),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`},yt=e=>async t=>{let{url:n,query:r,variables:a,operationName:o,fetch:s,fetchOptions:c,middleware:l}=t,u={...t.headers},d=``,f;e===`POST`?(f=St(r,a,o,c.jsonSerializer),typeof f==`string`&&(u[`Content-Type`]=`application/json`)):d=vt({query:r,variables:a,operationName:o,jsonSerializer:c.jsonSerializer??i});let p={method:e,headers:u,body:f,...c},m=n,h=p;if(l){let{url:e,...t}=await Promise.resolve(l({...p,url:n,operationName:o,variables:a}));m=e,h=t}return d&&(m=`${m}?${d}`),await s(m,h)},bt=class{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{let[t,n,r]=e,i=c(t,n,r),{headers:a,fetch:o=X.default,method:s=`POST`,requestMiddleware:l,responseMiddleware:u,...d}=this.requestConfig,{url:f}=this;i.signal!==void 0&&(d.signal=i.signal);let{operationName:p}=J(i.query);return xt({url:f,query:i.query,variables:i.variables,headers:{...Q($(a)),...Q(i.requestHeaders)},operationName:p,fetch:o,method:s,fetchOptions:d,middleware:l}).then(e=>(u&&u(e),e)).catch(e=>{throw u&&u(e),e})}}async request(e,...t){let[n,r]=t,i=s(e,n,r),{headers:a,fetch:o=X.default,method:c=`POST`,requestMiddleware:l,responseMiddleware:u,...d}=this.requestConfig,{url:f}=this;i.signal!==void 0&&(d.signal=i.signal);let{query:p,operationName:m}=J(i.document);return xt({url:f,query:p,variables:i.variables,headers:{...Q($(a)),...Q(i.requestHeaders)},operationName:m,fetch:o,method:c,fetchOptions:d,middleware:l}).then(e=>(u&&u(e),e.data)).catch(e=>{throw u&&u(e),e})}batchRequests(e,t){let n=l(e,t),{headers:r,...i}=this.requestConfig;n.signal!==void 0&&(i.signal=n.signal);let a=n.documents.map(({document:e})=>J(e).query),o=n.documents.map(({variables:e})=>e);return xt({url:this.url,query:a,variables:o,headers:{...Q($(r)),...Q(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??X.default,method:this.requestConfig.method||`POST`,fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then(e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data)).catch(e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e})}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){let{headers:n}=this.requestConfig;return n?n[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}},xt=async e=>{let{query:t,variables:n,fetchOptions:r}=e,o=yt(a(e.method??`post`)),s=Array.isArray(e.query),c=await o(e),l=await Ct(c,r.jsonSerializer??i),u=Array.isArray(l)?!l.some(({data:e})=>!e):!!l.data,d=Array.isArray(l)||!l.errors||Array.isArray(l.errors)&&!l.errors.length||r.errorPolicy===`all`||r.errorPolicy===`ignore`;if(c.ok&&d&&u){let{errors:e,...t}=l,n=r.errorPolicy===`ignore`?t:l;return{...s?{data:n}:n,headers:c.headers,status:c.status}}else throw new Y({...typeof l==`string`?{error:l}:l,status:c.status,headers:c.headers},{query:t,variables:n})},St=(e,t,n,r)=>{let a=r??i;if(!Array.isArray(e))return a.stringify({query:e,variables:t,operationName:n});if(t!==void 0&&!Array.isArray(t))throw Error(`Cannot create request body with given variable type, array expected`);let o=e.reduce((e,n,r)=>(e.push({query:n,variables:t?t[r]:void 0}),e),[]);return a.stringify(o)},Ct=async(e,t)=>{let n;return e.headers.forEach((e,t)=>{t.toLowerCase()===`content-type`&&(n=e)}),n&&(n.toLowerCase().startsWith(`application/json`)||n.toLowerCase().startsWith(`application/graphql+json`)||n.toLowerCase().startsWith(`application/graphql-response+json`))?t.parse(await e.text()):e.text()},$=e=>typeof e==`function`?e():e;export{Ze as a,et as i,Y as n,Ke as o,Qe as r,Pe as s,bt as t};
@@ -0,0 +1,3 @@
1
+ import{a as e,r as t,t as n}from"./rolldown-runtime-COnpUsM8.js";import{Dn as r,zn as i}from"./vendor-chakra-D7rbFWyN.js";var a=t({$mobx:()=>C,FlowCancellationError:()=>br,ObservableMap:()=>Si,ObservableSet:()=>Di,Reaction:()=>An,_allowStateChanges:()=>qt,_allowStateChangesInsideComputed:()=>Zn,_allowStateReadsEnd:()=>fn,_allowStateReadsStart:()=>dn,_autoAction:()=>Xn,_endAction:()=>Kt,_getAdministration:()=>Z,_getGlobalState:()=>yn,_interceptReads:()=>Dr,_isComputingDerivation:()=>on,_resetGlobalState:()=>bn,_startAction:()=>Gt,action:()=>P,autorun:()=>$n,comparer:()=>w,computed:()=>zt,configure:()=>fr,createAtom:()=>je,defineProperty:()=>Wr,entries:()=>zr,extendObservable:()=>pr,flow:()=>F,flowResult:()=>Tr,get:()=>Ur,getAtom:()=>X,getDebugName:()=>Gi,getDependencyTree:()=>mr,getObserverTree:()=>gr,has:()=>Hr,intercept:()=>Or,isAction:()=>Qn,isBoxedObservable:()=>Zt,isComputed:()=>Mr,isComputedProp:()=>Nr,isFlow:()=>Er,isFlowCancellationError:()=>xr,isObservable:()=>Fr,isObservableArray:()=>G,isObservableMap:()=>q,isObservableObject:()=>Y,isObservableProp:()=>Ir,isObservableSet:()=>J,keys:()=>Lr,makeAutoObservable:()=>li,makeObservable:()=>si,observable:()=>T,observe:()=>Kr,onBecomeObserved:()=>or,onBecomeUnobserved:()=>sr,onReactionError:()=>jn,override:()=>Ve,ownKeys:()=>Gr,reaction:()=>nr,remove:()=>Vr,runInAction:()=>Zn,set:()=>Br,spy:()=>zn,toJS:()=>Zr,trace:()=>Qr,transaction:()=>I,untracked:()=>un,values:()=>Rr,when:()=>$r});function o(e){var t=[...arguments].slice(1);throw Error(typeof e==`number`?`[MobX] minified error nr: `+e+(t.length?` `+t.map(String).join(`,`):``)+`. Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts`:`[MobX] `+e)}var s={};function c(){return typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:s}var l=Object.assign,u=Object.getOwnPropertyDescriptor,d=Object.defineProperty,f=Object.prototype,p=[];Object.freeze(p);var ee={};Object.freeze(ee);var te=typeof Proxy<`u`,ne=Object.toString();function re(){te||o(`Proxy not available`)}function ie(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var m=function(){};function h(e){return typeof e==`function`}function g(e){switch(typeof e){case`string`:case`symbol`:case`number`:return!0}return!1}function ae(e){return typeof e==`object`&&!!e}function _(e){if(!ae(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n.toString()===ne}function oe(e){var t=e?.constructor;return t?t.name===`GeneratorFunction`||t.displayName===`GeneratorFunction`:!1}function se(e,t,n){d(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ce(e,t,n){d(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function v(e,t){var n=`isMobX`+e;return t.prototype[n]=!0,function(e){return ae(e)&&e[n]===!0}}function le(e){return e instanceof Map}function ue(e){return e instanceof Set}var de=Object.getOwnPropertySymbols!==void 0;function fe(e){var t=Object.keys(e);if(!de)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return f.propertyIsEnumerable.call(e,t)})):t}var pe=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:de?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function me(e){return e===null?null:typeof e==`object`?``+e:e}function y(e,t){return f.hasOwnProperty.call(e,t)}var he=Object.getOwnPropertyDescriptors||function(e){var t={};return pe(e).forEach(function(n){t[n]=u(e,n)}),t};function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Te(r.key),r)}}function _e(e,t,n){return t&&ge(e.prototype,t),n&&ge(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function ve(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ye(e,t)}function ye(e,t){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ye(e,t)}function be(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function xe(e,t){if(e){if(typeof e==`string`)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(e,t)}}function Se(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ce(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=xe(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Te(e){var t=we(e,`string`);return typeof t==`symbol`?t:String(t)}var x=Symbol(`mobx-stored-annotations`);function S(e){function t(t,n){if(Oe(n))return e.decorate_20223_(t,n);Ee(t,n,e)}return Object.assign(t,e)}function Ee(e,t,n){y(e,x)||se(e,x,b({},e[x])),He(n)||(e[x][t]=n)}function De(e){return y(e,x)||se(e,x,b({},e[x])),e[x]}function Oe(e){return typeof e==`object`&&typeof e.kind==`string`}var C=Symbol(`mobx administration`),ke=function(){function e(e){e===void 0&&(e=`Atom`),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=O.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return En(this)},t.reportChanged=function(){M(),Dn(this),N()},t.toString=function(){return this.name_},e}(),Ae=v(`Atom`,ke);function je(e,t,n){t===void 0&&(t=m),n===void 0&&(n=m);var r=new ke(e);return t!==m&&or(r,t),n!==m&&sr(r,n),r}function Me(e,t){return e===t}function Ne(e,t){return qi(e,t)}function Pe(e,t){return qi(e,t,1)}function Fe(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e==1/t:e!==e&&t!==t}var w={identity:Me,structural:Ne,default:Fe,shallow:Pe};function Ie(e,t,n){return Fr(e)?e:Array.isArray(e)?T.array(e,{name:n}):_(e)?T.object(e,void 0,{name:n}):le(e)?T.map(e,{name:n}):ue(e)?T.set(e,{name:n}):typeof e==`function`&&!Qn(e)&&!Er(e)?oe(e)?F(e):Xn(n,e):e}function Le(e,t,n){if(e==null||Y(e)||G(e)||q(e)||J(e))return e;if(Array.isArray(e))return T.array(e,{name:n,deep:!1});if(_(e))return T.object(e,void 0,{name:n,deep:!1});if(le(e))return T.map(e,{name:n,deep:!1});if(ue(e))return T.set(e,{name:n,deep:!1})}function Re(e){return e}function ze(e,t){return qi(e,t)?t:e}var Be=`override`,Ve=S({annotationType_:Be,make_:Ue,extend_:We,decorate_20223_:Ge});function He(e){return e.annotationType_===Be}function Ue(e,t){return 0}function We(e,t,n,r){o(`'`+this.annotationType_+`' can only be used with 'makeObservable'`)}function Ge(e,t){console.warn(`'`+this.annotationType_+`' cannot be used with decorators - this is a no-op`)}function Ke(e,t){return{annotationType_:e,options_:t,make_:qe,extend_:Je,decorate_20223_:Ye}}function qe(e,t,n,r){var i;return(i=this.options_)!=null&&i.bound?this.extend_(e,t,n,!1)===null?0:1:r===e.target_?this.extend_(e,t,n,!1)===null?0:2:Qn(n.value)?1:(d(r,t,Ze(e,this,t,n,!1)),2)}function Je(e,t,n,r){var i=Ze(e,this,t,n);return e.defineProperty_(t,i,r)}function Ye(e,t){var n=t.kind,r=t.name,i=t.addInitializer,a=this,s=function(e){return E(a.options_?.name??r.toString(),e,a.options_?.autoAction??!1)};if(n==`field`){i(function(){Ee(this,r,a)});return}if(n==`method`){var c;return Qn(e)||(e=s(e)),(c=this.options_)!=null&&c.bound&&i(function(){var e=this,t=e[r].bind(e);t.isMobxAction=!0,e[r]=t}),e}o(`Cannot apply '`+a.annotationType_+`' to '`+String(r)+`' (kind: `+n+`):`+(`
3
+ '`+a.annotationType_+`' can only be used on properties with a function value.`))}function Xe(e,t,n,r){t.annotationType_,r.value}function Ze(e,t,n,r,i){var a,o;i===void 0&&(i=j.safeDescriptors),Xe(e,t,n,r);var s=r.value;return(a=t.options_)!=null&&a.bound&&(s=s.bind(e.proxy_??e.target_)),{value:E(t.options_?.name??n.toString(),s,t.options_?.autoAction??!1,(o=t.options_)!=null&&o.bound?e.proxy_??e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function Qe(e,t){return{annotationType_:e,options_:t,make_:$e,extend_:et,decorate_20223_:tt}}function $e(e,t,n,r){var i;return r===e.target_?this.extend_(e,t,n,!1)===null?0:2:(i=this.options_)!=null&&i.bound&&(!y(e.target_,t)||!Er(e.target_[t]))&&this.extend_(e,t,n,!1)===null?0:Er(n.value)?1:(d(r,t,rt(e,this,t,n,!1,!1)),2)}function et(e,t,n,r){var i=rt(e,this,t,n,this.options_?.bound);return e.defineProperty_(t,i,r)}function tt(e,t){var n,r=t.name,i=t.addInitializer;return Er(e)||(e=F(e)),(n=this.options_)!=null&&n.bound&&i(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function nt(e,t,n,r){t.annotationType_,r.value}function rt(e,t,n,r,i,a){a===void 0&&(a=j.safeDescriptors),nt(e,t,n,r);var o=r.value;return Er(o)||(o=F(o)),i&&(o=o.bind(e.proxy_??e.target_),o.isMobXFlow=!0),{value:o,configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function it(e,t){return{annotationType_:e,options_:t,make_:at,extend_:ot,decorate_20223_:st}}function at(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function ot(e,t,n,r){return ct(e,this,t,n),e.defineComputedProperty_(t,b({},this.options_,{get:n.get,set:n.set}),r)}function st(e,t){var n=this,r=t.name,i=t.addInitializer;return i(function(){var t=ji(this)[C],i=b({},n.options_,{get:e,context:this});i.name||=`ObservableObject.`+r.toString(),t.values_.set(r,new $t(i))}),function(){return this[C].getObservablePropValue_(r)}}function ct(e,t,n,r){t.annotationType_,r.get}function lt(e,t){return{annotationType_:e,options_:t,make_:ut,extend_:dt,decorate_20223_:ft}}function ut(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function dt(e,t,n,r){return pt(e,this,t,n),e.defineObservableProperty_(t,n.value,this.options_?.enhancer??Ie,r)}function ft(e,t){var n=this,r=t.kind,i=t.name,a=new WeakSet;function o(e,t){var r=ji(e)[C],o=new D(t,n.options_?.enhancer??Ie,`ObservableObject.`+i.toString(),!1);r.values_.set(i,o),a.add(e)}if(r==`accessor`)return{get:function(){return a.has(this)||o(this,e.get.call(this)),this[C].getObservablePropValue_(i)},set:function(e){return a.has(this)||o(this,e),this[C].setObservablePropValue_(i,e)},init:function(e){return a.has(this)||o(this,e),e}}}function pt(e,t,n,r){t.annotationType_}var mt=`true`,ht=gt();function gt(e){return{annotationType_:mt,options_:e,make_:_t,extend_:vt,decorate_20223_:yt}}function _t(e,t,n,r){var i;if(n.get)return zt.make_(e,t,n,r);if(n.set){var a=E(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:j.safeDescriptors?e.isPlainObject_:!0,set:a})===null?0:2:(d(r,t,{configurable:!0,set:a}),2)}if(r!==e.target_&&typeof n.value==`function`){var o;if(oe(n.value)){var s;return((s=this.options_)!=null&&s.autoBind?F.bound:F).make_(e,t,n,r)}return((o=this.options_)!=null&&o.autoBind?Xn.bound:Xn).make_(e,t,n,r)}var c=this.options_?.deep===!1?T.ref:T;return typeof n.value==`function`&&(i=this.options_)!=null&&i.autoBind&&(n.value=n.value.bind(e.proxy_??e.target_)),c.make_(e,t,n,r)}function vt(e,t,n,r){var i;return n.get?zt.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:j.safeDescriptors?e.isPlainObject_:!0,set:E(t.toString(),n.set)},r):(typeof n.value==`function`&&(i=this.options_)!=null&&i.autoBind&&(n.value=n.value.bind(e.proxy_??e.target_)),(this.options_?.deep===!1?T.ref:T).extend_(e,t,n,r))}function yt(e,t){o(`'`+this.annotationType_+`' cannot be used as a decorator`)}var bt=`observable`,xt=`observable.ref`,St=`observable.shallow`,Ct=`observable.struct`,wt={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(wt);function Tt(e){return e||wt}var Et=lt(bt),Dt=lt(xt,{enhancer:Re}),Ot=lt(St,{enhancer:Le}),kt=lt(Ct,{enhancer:ze}),At=S(Et);function jt(e){return e.deep===!0?Ie:e.deep===!1?Re:Nt(e.defaultDecorator)}function Mt(e){return e?e.defaultDecorator??gt(e):void 0}function Nt(e){return e?e.options_?.enhancer??Ie:Ie}function Pt(e,t,n){if(Oe(t))return Et.decorate_20223_(e,t);if(g(t)){Ee(e,t,Et);return}return Fr(e)?e:_(e)?T.object(e,t,n):Array.isArray(e)?T.array(e,t):le(e)?T.map(e,t):ue(e)?T.set(e,t):typeof e==`object`&&e?e:T.box(e,t)}l(Pt,At);var T=l(Pt,{box:function(e,t){var n=Tt(t);return new D(e,jt(n),n.name,!0,n.equals)},array:function(e,t){var n=Tt(t);return(j.useProxies===!1||n.proxy===!1?Wi:mi)(e,jt(n),n.name)},map:function(e,t){var n=Tt(t);return new Si(e,jt(n),n.name)},set:function(e,t){var n=Tt(t);return new Di(e,jt(n),n.name)},object:function(e,t,n){return Q(function(){return pr(j.useProxies===!1||n?.proxy===!1?ji({},n):ii({},n),e,t)})},ref:S(Dt),shallow:S(Ot),deep:At,struct:S(kt)}),Ft=`computed`,It=`computed.struct`,Lt=it(Ft),Rt=it(It,{equals:w.structural}),zt=function(e,t){if(Oe(t))return Lt.decorate_20223_(e,t);if(g(t))return Ee(e,t,Lt);if(_(e))return S(it(Ft,e));var n=_(t)?t:{};return n.get=e,n.name||=e.name||``,new $t(n)};Object.assign(zt,Lt),zt.struct=S(Rt);var Bt=0,Vt=1,Ht=u(function(){},`name`)?.configurable??!1,Ut={value:`action`,configurable:!0,writable:!1,enumerable:!1};function E(e,t,n,r){n===void 0&&(n=!1);function i(){return Wt(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},Ht&&(Ut.value=e,d(i,`name`,Ut)),i}function Wt(e,t,n,r,i){var a=Gt(e,t,r,i);try{return n.apply(r,i)}catch(e){throw a.error_=e,e}finally{Kt(a)}}function Gt(e,t,n,r){var i=!1,a=0,o=j.trackingDerivation,s=!t||!o;M();var c=j.allowStateChanges;s&&(k(),c=Jt(!0));var l=dn(!0),u={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:c,prevAllowStateReads_:l,notifySpy_:i,startTime_:a,actionId_:Vt++,parentActionId_:Bt};return Bt=u.actionId_,u}function Kt(e){Bt!==e.actionId_&&o(30),Bt=e.parentActionId_,e.error_!==void 0&&(j.suppressReactionErrors=!0),Yt(e.prevAllowStateChanges_),fn(e.prevAllowStateReads_),N(),e.runAsAction_&&A(e.prevDerivation_),j.suppressReactionErrors=!1}function qt(e,t){var n=Jt(e);try{return t()}finally{Yt(n)}}function Jt(e){var t=j.allowStateChanges;return j.allowStateChanges=e,t}function Yt(e){j.allowStateChanges=e}var Xt=Symbol.toPrimitive,D=function(e){ve(t,e);function t(t,n,r,i,a){var o;return r===void 0&&(r=`ObservableValue`),i===void 0&&(i=!0),a===void 0&&(a=w.default),o=e.call(this,r)||this,o.enhancer=void 0,o.name_=void 0,o.equals=void 0,o.hasUnreportedChange_=!1,o.interceptors_=void 0,o.changeListeners_=void 0,o.value_=void 0,o.dehancer=void 0,o.enhancer=n,o.name_=r,o.equals=a,o.value_=n(t,void 0,r),o}var n=t.prototype;return n.dehanceValue=function(e){return this.dehancer===void 0?e:this.dehancer(e)},n.set=function(e){this.value_,e=this.prepareNewValue_(e),e!==j.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(L(this)){var t=R(this,{object:this,type:V,newValue:e});if(!t)return j.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?j.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),z(this)&&B(this,{type:V,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return ai(this,e)},n.observe_=function(e,t){return t&&e({observableKind:`value`,debugObjectName:this.name_,object:this,type:V,newValue:this.value_,oldValue:void 0}),oi(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+`[`+this.value_+`]`},n.valueOf=function(){return me(this.get())},n[Xt]=function(){return this.valueOf()},t}(ke),Zt=v(`ObservableValue`,D),Qt=Symbol.toPrimitive,$t=function(){function e(e){this.dependenciesState_=O.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=O.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new nn(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=tn.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||o(31),this.derivation=e.get,this.name_=e.name||`ComputedValue`,e.set&&(this.setter_=E(`ComputedValue-setter`,e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?w.structural:w.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){kn(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing_&&o(32,this.name_,this.derivation),j.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)an(this)&&(this.warnAboutUntrackedRead_(),M(),this.value_=this.computeValue_(!1),N());else if(En(this),an(this)){var e=j.trackingContext;this.keepAlive_&&!e&&(j.trackingContext=this),this.trackAndCompute()&&On(this),j.trackingContext=e}var t=this.value_;if(rn(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&o(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else o(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===O.NOT_TRACKING_,n=this.computeValue_(!0),r=t||rn(e)||rn(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t=Jt(!1),n;if(e)n=sn(this,this.derivation,this.scope_);else if(j.disableErrorBoundaries===!0)n=this.derivation.call(this.scope_);else try{n=this.derivation.call(this.scope_)}catch(e){n=new nn(e)}return Yt(t),this.isComputing_=!1,n},t.suspend_=function(){this.keepAlive_||(ln(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return $n(function(){var a=n.get();if(!r||t){var o=k();e({observableKind:`computed`,debugObjectName:n.name_,type:V,object:n,newValue:a,oldValue:i}),A(o)}r=!1,i=a})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+`[`+this.derivation.toString()+`]`},t.valueOf=function(){return me(this.get())},t[Qt]=function(){return this.valueOf()},e}(),en=v(`ComputedValue`,$t),O;(function(e){e[e.NOT_TRACKING_=-1]=`NOT_TRACKING_`,e[e.UP_TO_DATE_=0]=`UP_TO_DATE_`,e[e.POSSIBLY_STALE_=1]=`POSSIBLY_STALE_`,e[e.STALE_=2]=`STALE_`})(O||={});var tn;(function(e){e[e.NONE=0]=`NONE`,e[e.LOG=1]=`LOG`,e[e.BREAK=2]=`BREAK`})(tn||={});var nn=function(e){this.cause=void 0,this.cause=e};function rn(e){return e instanceof nn}function an(e){switch(e.dependenciesState_){case O.UP_TO_DATE_:return!1;case O.NOT_TRACKING_:case O.STALE_:return!0;case O.POSSIBLY_STALE_:for(var t=dn(!0),n=k(),r=e.observing_,i=r.length,a=0;a<i;a++){var o=r[a];if(en(o)){if(j.disableErrorBoundaries)o.get();else try{o.get()}catch{return A(n),fn(t),!0}if(e.dependenciesState_===O.STALE_)return A(n),fn(t),!0}}return pn(e),A(n),fn(t),!1}}function on(){return j.trackingDerivation!==null}function sn(e,t,n){var r=dn(!0);pn(e),e.newObserving_=Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++j.runId;var i=j.trackingDerivation;j.trackingDerivation=e,j.inBatch++;var a;if(j.disableErrorBoundaries===!0)a=t.call(n);else try{a=t.call(n)}catch(e){a=new nn(e)}return j.inBatch--,j.trackingDerivation=i,cn(e),fn(r),a}function cn(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=O.UP_TO_DATE_,i=0,a=e.unboundDepsCount_,o=0;o<a;o++){var s=n[o];s.diffValue_===0&&(s.diffValue_=1,i!==o&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,a=t.length;a--;){var c=t[a];c.diffValue_===0&&wn(c,e),c.diffValue_=0}for(;i--;){var l=n[i];l.diffValue_===1&&(l.diffValue_=0,Cn(l,e))}r!==O.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function ln(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)wn(t[n],e);e.dependenciesState_=O.NOT_TRACKING_}function un(e){var t=k();try{return e()}finally{A(t)}}function k(){var e=j.trackingDerivation;return j.trackingDerivation=null,e}function A(e){j.trackingDerivation=e}function dn(e){var t=j.allowStateReads;return j.allowStateReads=e,t}function fn(e){j.allowStateReads=e}function pn(e){if(e.dependenciesState_!==O.UP_TO_DATE_){e.dependenciesState_=O.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=O.UP_TO_DATE_}}var mn=[`mobxGuid`,`spyListeners`,`enforceActions`,`computedRequiresReaction`,`reactionRequiresObservable`,`observableRequiresReaction`,`allowStateReads`,`disableErrorBoundaries`,`runId`,`UNCHANGED`,`useProxies`],hn=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},gn=!0,_n=!1,j=function(){var e=c();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(gn=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new hn().version&&(gn=!1),gn?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new hn):(setTimeout(function(){_n||o(35)},1),new hn)}();function vn(){if((j.pendingReactions.length||j.inBatch||j.isRunningReactions)&&o(36),_n=!0,gn){var e=c();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),j=new hn}}function yn(){return j}function bn(){var e=new hn;for(var t in e)mn.indexOf(t)===-1&&(j[t]=e[t]);j.allowStateChanges=!j.enforceActions}function xn(e){return e.observers_&&e.observers_.size>0}function Sn(e){return e.observers_}function Cn(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function wn(e,t){e.observers_.delete(t),e.observers_.size===0&&Tn(e)}function Tn(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,j.pendingUnobservations.push(e))}function M(){j.inBatch++}function N(){if(--j.inBatch===0){Pn();for(var e=j.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,n.observers_.size===0&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof $t&&n.suspend_())}j.pendingUnobservations=[]}}function En(e){var t=j.trackingDerivation;return t===null?(e.observers_.size===0&&j.inBatch>0&&Tn(e),!1):(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&j.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_)}function Dn(e){e.lowestObserverState_!==O.STALE_&&(e.lowestObserverState_=O.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===O.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=O.STALE_}))}function On(e){e.lowestObserverState_!==O.STALE_&&(e.lowestObserverState_=O.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===O.POSSIBLY_STALE_?t.dependenciesState_=O.STALE_:t.dependenciesState_===O.UP_TO_DATE_&&(e.lowestObserverState_=O.UP_TO_DATE_)}))}function kn(e){e.lowestObserverState_===O.UP_TO_DATE_&&(e.lowestObserverState_=O.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===O.UP_TO_DATE_&&(e.dependenciesState_=O.POSSIBLY_STALE_,e.onBecomeStale_())}))}var An=function(){function e(e,t,n,r){e===void 0&&(e=`Reaction`),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=O.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=tn.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,j.pendingReactions.push(this),Pn())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){M(),this.isScheduled_=!1;var e=j.trackingContext;if(j.trackingContext=this,an(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}j.trackingContext=e,N()}},t.track=function(e){if(!this.isDisposed_){M(),this.isRunning_=!0;var t=j.trackingContext;j.trackingContext=this;var n=sn(this,e,void 0);j.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&ln(this),rn(n)&&this.reportExceptionInDerivation_(n.cause),N()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_){this.errorHandler_(e,this);return}if(j.disableErrorBoundaries)throw e;var n=`[mobx] uncaught error in '`+this+`'`;j.suppressReactionErrors||console.error(n,e),j.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(M(),ln(this),N()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),e==null||e.removeEventListener==null||e.removeEventListener(`abort`,n)};return e==null||e.addEventListener==null||e.addEventListener(`abort`,n),n[C]=this,n},t.toString=function(){return`Reaction[`+this.name_+`]`},t.trace=function(e){e===void 0&&(e=!1)},e}();function jn(e){return j.globalReactionErrorHandlers.push(e),function(){var t=j.globalReactionErrorHandlers.indexOf(e);t>=0&&j.globalReactionErrorHandlers.splice(t,1)}}var Mn=100,Nn=function(e){return e()};function Pn(){j.inBatch>0||j.isRunningReactions||Nn(Fn)}function Fn(){j.isRunningReactions=!0;for(var e=j.pendingReactions,t=0;e.length>0;){++t===Mn&&(console.error(`[mobx] cycle in reaction: `+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}j.isRunningReactions=!1}var In=v(`Reaction`,An);function Ln(e){var t=Nn;Nn=function(n){return e(function(){return t(n)})}}function Rn(){return!1}function zn(e){return console.warn(`[mobx.spy] Is a no-op in production builds`),function(){}}var Bn=`action`,Vn=`action.bound`,Hn=`autoAction`,Un=`autoAction.bound`,Wn=`<unnamed action>`,Gn=Ke(Bn),Kn=Ke(Vn,{bound:!0}),qn=Ke(Hn,{autoAction:!0}),Jn=Ke(Un,{autoAction:!0,bound:!0});function Yn(e){return function(t,n){if(h(t))return E(t.name||Wn,t,e);if(h(n))return E(t,n,e);if(Oe(n))return(e?qn:Gn).decorate_20223_(t,n);if(g(n))return Ee(t,n,e?qn:Gn);if(g(t))return S(Ke(e?Hn:Bn,{name:t,autoAction:e}))}}var P=Yn(!1);Object.assign(P,Gn);var Xn=Yn(!0);Object.assign(Xn,qn),P.bound=S(Kn),Xn.bound=S(Jn);function Zn(e){return Wt(e.name||Wn,!1,e,this,void 0)}function Qn(e){return h(e)&&e.isMobxAction===!0}function $n(e,t){var n,r;t===void 0&&(t=ee);var i=t?.name??`Autorun`,a=!t.scheduler&&!t.delay,o;if(a)o=new An(i,function(){this.track(l)},t.onError,t.requiresObservable);else{var s=tr(t),c=!1;o=new An(i,function(){c||(c=!0,s(function(){c=!1,o.isDisposed_||o.track(l)}))},t.onError,t.requiresObservable)}function l(){e(o)}return(n=t)!=null&&(r=n.signal)!=null&&r.aborted||o.schedule_(),o.getDisposer_(t?.signal)}var er=function(e){return e()};function tr(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:er}function nr(e,t,n){var r,i;n===void 0&&(n=ee);var a=n.name??`Reaction`,o=P(a,n.onError?rr(n.onError,t):t),s=!n.scheduler&&!n.delay,c=tr(n),l=!0,u=!1,d,f=n.compareStructural?w.structural:n.equals||w.default,p=new An(a,function(){l||s?te():u||(u=!0,c(te))},n.onError,n.requiresObservable);function te(){if(u=!1,!p.isDisposed_){var t=!1,r=d;p.track(function(){var n=qt(!1,function(){return e(p)});t=l||!f(d,n),d=n}),(l&&n.fireImmediately||!l&&t)&&o(d,r,p),l=!1}}return(r=n)!=null&&(i=r.signal)!=null&&i.aborted||p.schedule_(),p.getDisposer_(n?.signal)}function rr(e,t){return function(){try{return t.apply(this,arguments)}catch(t){e.call(this,t)}}}var ir=`onBO`,ar=`onBUO`;function or(e,t,n){return cr(ir,e,t,n)}function sr(e,t,n){return cr(ar,e,t,n)}function cr(e,t,n,r){var i=typeof r==`function`?X(t,n):X(t),a=h(r)?r:n,o=e+`L`;return i[o]?i[o].add(a):i[o]=new Set([a]),function(){var e=i[o];e&&(e.delete(a),e.size===0&&delete i[o])}}var lr=`never`,ur=`always`,dr=`observed`;function fr(e){e.isolateGlobalState===!0&&vn();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(j.useProxies=t===ur?!0:t===lr?!1:typeof Proxy<`u`),t===`ifavailable`&&(j.verifyProxies=!0),n!==void 0){var r=n===ur?ur:n===dr;j.enforceActions=r,j.allowStateChanges=!(r===!0||r===ur)}[`computedRequiresReaction`,`reactionRequiresObservable`,`observableRequiresReaction`,`disableErrorBoundaries`,`safeDescriptors`].forEach(function(t){t in e&&(j[t]=!!e[t])}),j.allowStateReads=!j.observableRequiresReaction,e.reactionScheduler&&Ln(e.reactionScheduler)}function pr(e,t,n,r){var i=he(t);return Q(function(){var t=ji(e,r)[C];pe(i).forEach(function(e){t.extend_(e,i[e],n&&e in n?n[e]:!0)})}),e}function mr(e,t){return hr(X(e,t))}function hr(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=vr(e.observing_).map(hr)),t}function gr(e,t){return _r(X(e,t))}function _r(e){var t={name:e.name_};return xn(e)&&(t.observers=Array.from(Sn(e)).map(_r)),t}function vr(e){return Array.from(new Set(e))}var yr=0;function br(){this.message=`FLOW_CANCELLED`}br.prototype=Object.create(Error.prototype);function xr(e){return e instanceof br}var Sr=Qe(`flow`),Cr=Qe(`flow.bound`,{bound:!0}),F=Object.assign(function(e,t){if(Oe(t))return Sr.decorate_20223_(e,t);if(g(t))return Ee(e,t,Sr);var n=e,r=n.name||`<unnamed flow>`,i=function(){var e=this,t=arguments,i=++yr,a=P(r+` - runid: `+i+` - init`,n).apply(e,t),o,s=void 0,c=new Promise(function(e,t){var n=0;o=t;function c(e){s=void 0;var o;try{o=P(r+` - runid: `+i+` - yield `+ n++,a.next).call(a,e)}catch(e){return t(e)}u(o)}function l(e){s=void 0;var o;try{o=P(r+` - runid: `+i+` - yield `+ n++,a.throw).call(a,e)}catch(e){return t(e)}u(o)}function u(n){if(h(n?.then)){n.then(u,t);return}return n.done?e(n.value):(s=Promise.resolve(n.value),s.then(c,l))}c(void 0)});return c.cancel=P(r+` - runid: `+i+` - cancel`,function(){try{s&&wr(s);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(m,m),wr(t),o(new br)}catch(e){o(e)}}),c};return i.isMobXFlow=!0,i},Sr);F.bound=S(Cr);function wr(e){h(e.cancel)&&e.cancel()}function Tr(e){return e}function Er(e){return e?.isMobXFlow===!0}function Dr(e,t,n){var r;return q(e)||G(e)||Zt(e)?r=Z(e):Y(e)&&(r=Z(e,t)),r.dehancer=typeof t==`function`?t:n,function(){r.dehancer=void 0}}function Or(e,t,n){return h(n)?Ar(e,t,n):kr(e,t)}function kr(e,t){return Z(e).intercept_(t)}function Ar(e,t,n){return Z(e,t).intercept_(n)}function jr(e,t){return t===void 0?en(e):Y(e)===!1||!e[C].values_.has(t)?!1:en(X(e,t))}function Mr(e){return jr(e)}function Nr(e,t){return jr(e,t)}function Pr(e,t){return e?t===void 0?Y(e)||!!e[C]||Ae(e)||In(e)||en(e):Y(e)?e[C].values_.has(t):!1:!1}function Fr(e){return Pr(e)}function Ir(e,t){return Pr(e,t)}function Lr(e){if(Y(e))return e[C].keys_();if(q(e)||J(e))return Array.from(e.keys());if(G(e))return e.map(function(e,t){return t});o(5)}function Rr(e){if(Y(e))return Lr(e).map(function(t){return e[t]});if(q(e))return Lr(e).map(function(t){return e.get(t)});if(J(e))return Array.from(e.values());if(G(e))return e.slice();o(6)}function zr(e){if(Y(e))return Lr(e).map(function(t){return[t,e[t]]});if(q(e))return Lr(e).map(function(t){return[t,e.get(t)]});if(J(e))return Array.from(e.entries());if(G(e))return e.map(function(e,t){return[t,e]});o(7)}function Br(e,t,n){if(arguments.length===2&&!J(e)){M();var r=t;try{for(var i in r)Br(e,i,r[i])}finally{N()}return}Y(e)?e[C].set_(t,n):q(e)?e.set(t,n):J(e)?e.add(t):G(e)?(typeof t!=`number`&&(t=parseInt(t,10)),t<0&&o(`Invalid index: '`+t+`'`),M(),t>=e.length&&(e.length=t+1),e[t]=n,N()):o(8)}function Vr(e,t){Y(e)?e[C].delete_(t):q(e)||J(e)?e.delete(t):G(e)?(typeof t!=`number`&&(t=parseInt(t,10)),e.splice(t,1)):o(9)}function Hr(e,t){if(Y(e))return e[C].has_(t);if(q(e)||J(e))return e.has(t);if(G(e))return t>=0&&t<e.length;o(10)}function Ur(e,t){if(Hr(e,t)){if(Y(e))return e[C].get_(t);if(q(e))return e.get(t);if(G(e))return e[t];o(11)}}function Wr(e,t,n){if(Y(e))return e[C].defineProperty_(t,n);o(39)}function Gr(e){if(Y(e))return e[C].ownKeys_();o(38)}function Kr(e,t,n,r){return h(n)?Jr(e,t,n,r):qr(e,t,n)}function qr(e,t,n){return Z(e).observe_(t,n)}function Jr(e,t,n,r){return Z(e,t).observe_(n,r)}function Yr(e,t,n){return e.set(t,n),n}function Xr(e,t){if(typeof e!=`object`||!e||e instanceof Date||!Fr(e))return e;if(Zt(e)||en(e))return Xr(e.get(),t);if(t.has(e))return t.get(e);if(G(e)){var n=Yr(t,e,Array(e.length));return e.forEach(function(e,r){n[r]=Xr(e,t)}),n}if(J(e)){var r=Yr(t,e,new Set);return e.forEach(function(e){r.add(Xr(e,t))}),r}if(q(e)){var i=Yr(t,e,new Map);return e.forEach(function(e,n){i.set(n,Xr(e,t))}),i}else{var a=Yr(t,e,{});return Gr(e).forEach(function(n){f.propertyIsEnumerable.call(e,n)&&(a[n]=Xr(e[n],t))}),a}}function Zr(e,t){return Xr(e,new Map)}function Qr(){}function I(e,t){t===void 0&&(t=void 0),M();try{return e.apply(t)}finally{N()}}function $r(e,t,n){return arguments.length===1||t&&typeof t==`object`?ti(e,t):ei(e,t,n||{})}function ei(e,t,n){var r;if(typeof n.timeout==`number`){var i=Error(`WHEN_TIMEOUT`);r=setTimeout(function(){if(!o[C].isDisposed_)if(o(),n.onError)n.onError(i);else throw i},n.timeout)}n.name=`When`;var a=E(`When-effect`,t),o=$n(function(t){qt(!1,e)&&(t.dispose(),r&&clearTimeout(r),a())},n);return o}function ti(e,t){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)return Object.assign(Promise.reject(Error(`WHEN_ABORTED`)),{cancel:function(){return null}});var r,i,a=new Promise(function(n,a){var o,s=ei(e,n,b({},t,{onError:a}));r=function(){s(),a(Error(`WHEN_CANCELLED`))},i=function(){s(),a(Error(`WHEN_ABORTED`))},t==null||(o=t.signal)==null||o.addEventListener==null||o.addEventListener(`abort`,i)}).finally(function(){var e;return t==null||(e=t.signal)==null||e.removeEventListener==null?void 0:e.removeEventListener(`abort`,i)});return a.cancel=r,a}function ni(e){return e[C]}var ri={has:function(e,t){return ni(e).has_(t)},get:function(e,t){return ni(e).get_(t)},set:function(e,t,n){return g(t)?ni(e).set_(t,n,!0)??!0:!1},deleteProperty:function(e,t){return g(t)?ni(e).delete_(t,!0)??!0:!1},defineProperty:function(e,t,n){return ni(e).defineProperty_(t,n)??!0},ownKeys:function(e){return ni(e).ownKeys_()},preventExtensions:function(e){o(13)}};function ii(e,t){var n;return re(),e=ji(e,t),(n=e[C]).proxy_??(n.proxy_=new Proxy(e,ri))}function L(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function ai(e,t){var n=e.interceptors_||=[];return n.push(t),ie(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function R(e,t){var n=k();try{for(var r=[].concat(e.interceptors_||[]),i=0,a=r.length;i<a&&(t=r[i](t),t&&!t.type&&o(14),t);i++);return t}finally{A(n)}}function z(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function oi(e,t){var n=e.changeListeners_||=[];return n.push(t),ie(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function B(e,t){var n=k(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,a=r.length;i<a;i++)r[i](t);A(n)}}function si(e,t,n){return Q(function(){var r=ji(e,n)[C];t??=De(e),pe(t).forEach(function(e){return r.make_(e,t[e])})}),e}var ci=Symbol(`mobx-keys`);function li(e,t,n){return _(e)?pr(e,e,t,n):(Q(function(){var r=ji(e,n)[C];if(!e[ci]){var i=Object.getPrototypeOf(e),a=new Set([].concat(pe(e),pe(i)));a.delete(`constructor`),a.delete(C),se(i,ci,a)}e[ci].forEach(function(e){return r.make_(e,t&&e in t?t[e]:!0)})}),e)}var ui=`splice`,V=`update`,di=1e4,fi={get:function(e,t){var n=e[C];return t===C?n:t===`length`?n.getArrayLength_():typeof t==`string`&&!isNaN(t)?n.get_(parseInt(t)):y(hi,t)?hi[t]:e[t]},set:function(e,t,n){var r=e[C];return t===`length`&&r.setArrayLength_(n),typeof t==`symbol`||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){o(15)}},pi=function(){function e(e,t,n,r){e===void 0&&(e=`ObservableArray`),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new ke(e),this.enhancer_=function(e,n){return t(e,n,`ObservableArray[..]`)}}var t=e.prototype;return t.dehanceValue_=function(e){return this.dehancer===void 0?e:this.dehancer(e)},t.dehanceValues_=function(e){return this.dehancer!==void 0&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return ai(this,e)},t.observe_=function(e,t){return t===void 0&&(t=!1),t&&e({observableKind:`array`,object:this.proxy_,debugObjectName:this.atom_.name_,type:`splice`,index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),oi(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){(typeof e!=`number`||isNaN(e)||e<0)&&o(`Out of range: `+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&o(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Ui(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(e===void 0?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=arguments.length===1?i-e:t==null?0:Math.max(0,Math.min(t,i-e)),n===void 0&&(n=p),L(this)){var a=R(this,{object:this.proxy_,type:ui,index:e,removedCount:t,added:n});if(!a)return p;t=a.removedCount,n=a.added}if(n=n.length===0?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_){var o=n.length-t;this.updateArrayLength_(i,o)}var s=this.spliceItemsIntoValues_(e,t,n);return(t!==0||n.length!==0)&&this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){if(n.length<di){var r;return(r=this.values_).splice.apply(r,[e,t].concat(n))}else{var i=this.values_.slice(e,e+t),a=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var o=0;o<n.length;o++)this.values_[e+o]=n[o];for(var s=0;s<a.length;s++)this.values_[e+n.length+s]=a[s];return i}},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&Rn(),i=z(this),a=i||r?{observableKind:`array`,object:this.proxy_,type:V,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&B(this,a)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&Rn(),i=z(this),a=i||r?{observableKind:`array`,object:this.proxy_,debugObjectName:this.atom_.name_,type:ui,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&B(this,a)},t.get_=function(e){if(this.legacyMode_&&e>=this.values_.length){console.warn(`[mobx] Out of bounds read: `+e);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e])},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&o(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(L(this)){var i=R(this,{type:V,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}t=this.enhancer_(t,r),t!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{for(var a=Array(e+1-n.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=t,this.spliceWithArray_(n.length,0,a)}},e}();function mi(e,t,n,r){return n===void 0&&(n=`ObservableArray`),r===void 0&&(r=!1),re(),Q(function(){var i=new pi(n,t,r,!1);ce(i.values_,C,i);var a=new Proxy(i.values_,fi);return i.proxy_=a,e&&e.length&&i.spliceWithArray_(0,0,e),a})}var hi={clear:function(){return this.splice(0)},replace:function(e){var t=this[C];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){var n=[...arguments].slice(2),r=this[C];switch(arguments.length){case 0:return[];case 1:return r.spliceWithArray_(e);case 2:return r.spliceWithArray_(e,t)}return r.spliceWithArray_(e,t,n)},spliceWithArray:function(e,t,n){return this[C].spliceWithArray_(e,t,n)},push:function(){var e=this[C],t=[...arguments];return e.spliceWithArray_(e.values_.length,0,t),e.values_.length},pop:function(){return this.splice(Math.max(this[C].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){var e=this[C],t=[...arguments];return e.spliceWithArray_(0,0,t),e.values_.length},reverse:function(){return j.trackingDerivation&&o(37,`reverse`),this.replace(this.slice().reverse()),this},sort:function(){j.trackingDerivation&&o(37,`sort`);var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[C],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1?(this.splice(n,1),!0):!1}};H(`at`,U),H(`concat`,U),H(`flat`,U),H(`includes`,U),H(`indexOf`,U),H(`join`,U),H(`lastIndexOf`,U),H(`slice`,U),H(`toString`,U),H(`toLocaleString`,U),H(`toSorted`,U),H(`toSpliced`,U),H(`with`,U),H(`every`,W),H(`filter`,W),H(`find`,W),H(`findIndex`,W),H(`findLast`,W),H(`findLastIndex`,W),H(`flatMap`,W),H(`forEach`,W),H(`map`,W),H(`some`,W),H(`toReversed`,W),H(`reduce`,gi),H(`reduceRight`,gi);function H(e,t){typeof Array.prototype[e]==`function`&&(hi[e]=t(e))}function U(e){return function(){var t=this[C];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function W(e){return function(t,n){var r=this,i=this[C];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e](function(e,i){return t.call(n,e,i,r)})}}function gi(e){return function(){var t=this,n=this[C];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}var _i=v(`ObservableArrayAdministration`,pi);function G(e){return ae(e)&&_i(e[C])}var vi,yi,bi={},K=`add`,xi=`delete`;vi=Symbol.iterator,yi=Symbol.toStringTag;var Si=function(){function e(e,t,n){var r=this;t===void 0&&(t=Ie),n===void 0&&(n=`ObservableMap`),this.enhancer_=void 0,this.name_=void 0,this[C]=bi,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,h(Map)||o(18),Q(function(){r.keysAtom_=je(`ObservableMap.keys()`),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!j.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new D(this.has_(e),Re,`ObservableMap.key?`,!1);this.hasMap_.set(e,r),sr(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(L(this)){var r=R(this,{type:n?V:K,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,L(this)&&!R(this,{type:xi,object:this,name:e}))return!1;if(this.has_(e)){var n=Rn(),r=z(this),i=r||n?{observableKind:`map`,debugObjectName:this.name_,type:xi,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return I(function(){var n;t.keysAtom_.reportChanged(),(n=t.hasMap_.get(e))==null||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),r&&B(this,i),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if(t=n.prepareNewValue_(t),t!==j.UNCHANGED){var r=Rn(),i=z(this),a=i||r?{observableKind:`map`,debugObjectName:this.name_,type:V,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&B(this,a)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,I(function(){var r,i=new D(t,n.enhancer_,`ObservableMap.key`,!1);n.data_.set(e,i),t=i.value_,(r=n.hasMap_.get(e))==null||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=Rn(),i=z(this),a=i||r?{observableKind:`map`,debugObjectName:this.name_,type:K,object:this,name:e,newValue:t}:null;i&&B(this,a)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return this.dehancer===void 0?e:this.dehancer(e)},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Xi({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return Xi({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[vi]=function(){return this.entries()},t.forEach=function(e,t){for(var n=Ce(this),r;!(r=n()).done;){var i=r.value,a=i[0],o=i[1];e.call(t,o,a,this)}},t.merge=function(e){var t=this;return q(e)&&(e=new Map(e)),I(function(){_(e)?fe(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):le(e)?(e.constructor!==Map&&o(19,e),e.forEach(function(e,n){return t.set(n,e)})):e!=null&&o(20,e)}),this},t.clear=function(){var e=this;I(function(){un(function(){for(var t=Ce(e.keys()),n;!(n=t()).done;){var r=n.value;e.delete(r)}})})},t.replace=function(e){var t=this;return I(function(){for(var n=Ci(e),r=new Map,i=!1,a=Ce(t.data_.keys()),o;!(o=a()).done;){var s=o.value;if(!n.has(s))if(t.delete(s))i=!0;else{var c=t.data_.get(s);r.set(s,c)}}for(var l=Ce(n.entries()),u;!(u=l()).done;){var d=u.value,f=d[0],p=d[1],ee=t.data_.has(f);if(t.set(f,p),t.data_.has(f)){var te=t.data_.get(f);r.set(f,te),ee||(i=!0)}}if(!i)if(t.data_.size!==r.size)t.keysAtom_.reportChanged();else for(var ne=t.data_.keys(),re=r.keys(),ie=ne.next(),m=re.next();!ie.done;){if(ie.value!==m.value){t.keysAtom_.reportChanged();break}ie=ne.next(),m=re.next()}t.data_=r}),this},t.toString=function(){return`[object ObservableMap]`},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return oi(this,e)},t.intercept_=function(e){return ai(this,e)},_e(e,[{key:`size`,get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:yi,get:function(){return`Map`}}]),e}(),q=v(`ObservableMap`,Si);function Ci(e){if(le(e)||q(e))return e;if(Array.isArray(e))return new Map(e);if(_(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return o(21,e)}var wi,Ti,Ei={};wi=Symbol.iterator,Ti=Symbol.toStringTag;var Di=function(){function e(e,t,n){var r=this;t===void 0&&(t=Ie),n===void 0&&(n=`ObservableSet`),this.name_=void 0,this[C]=Ei,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,h(Set)||o(22),this.enhancer_=function(e,r){return t(e,r,n)},Q(function(){r.atom_=je(r.name_),e&&r.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return this.dehancer===void 0?e:this.dehancer(e)},t.clear=function(){var e=this;I(function(){un(function(){for(var t=Ce(e.data_.values()),n;!(n=t()).done;){var r=n.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n=Ce(this),r;!(r=n()).done;){var i=r.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,L(this)&&!R(this,{type:K,object:this,newValue:e}))return this;if(!this.has(e)){I(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var n=!1,r=z(this),i=r||n?{observableKind:`set`,debugObjectName:this.name_,type:K,object:this,newValue:e}:null;r&&B(this,i)}return this},t.delete=function(e){var t=this;if(L(this)&&!R(this,{type:xi,object:this,oldValue:e}))return!1;if(this.has(e)){var n=!1,r=z(this),i=r||n?{observableKind:`set`,debugObjectName:this.name_,type:xi,object:this,oldValue:e}:null;return I(function(){t.atom_.reportChanged(),t.data_.delete(e)}),r&&B(this,i),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Xi({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return Xi({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return J(e)&&(e=new Set(e)),I(function(){Array.isArray(e)||ue(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):e!=null&&o(`Cannot initialize set from `+e)}),this},t.observe_=function(e,t){return oi(this,e)},t.intercept_=function(e){return ai(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return`[object ObservableSet]`},t[wi]=function(){return this.values()},_e(e,[{key:`size`,get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Ti,get:function(){return`Set`}}]),e}(),J=v(`ObservableSet`,Di),Oi=Object.create(null),ki=`remove`,Ai=function(){function e(e,t,n,r){t===void 0&&(t=new Map),r===void 0&&(r=ht),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new ke(`ObservableObject.keys`),this.isPlainObject_=_(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof $t)return n.set(t),!0;if(L(this)){var r=R(this,{type:V,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if(t=n.prepareNewValue_(t),t!==j.UNCHANGED){var i=z(this),a=i?{type:V,observableKind:`object`,debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&B(this,a)}return!0},t.get_=function(e){return j.trackingDerivation&&!y(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return n===void 0&&(n=!1),y(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!j.trackingDerivation)return e in this.target_;this.pendingKeys_||=new Map;var t=this.pendingKeys_.get(e);return t||(t=new D(e in this.target_,Re,`ObservableObject.key?`,!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(t===!0&&(t=this.defaultAnnotation_),t!==!1){if(!(e in this.target_)){var n;if((n=this.target_[x])!=null&&n[e])return;o(1,t.annotationType_,this.name_+`.`+e.toString())}for(var r=this.target_;r&&r!==f;){var i=u(r,e);if(i){var a=t.make_(this,e,i,r);if(a===0)return;if(a===1)break}r=Object.getPrototypeOf(r)}Pi(this,t,e)}},t.extend_=function(e,t,n,r){if(r===void 0&&(r=!1),n===!0&&(n=this.defaultAnnotation_),n===!1)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&Pi(this,n,e),i},t.defineProperty_=function(e,t,n){n===void 0&&(n=!1),this.keysAtom_;try{M();var r=this.delete_(e);if(!r)return r;if(L(this)){var i=R(this,{object:this.proxy_||this.target_,name:e,type:K,newValue:t.value});if(!i)return null;var a=i.newValue;t.value!==a&&(t=b({},t,{value:a}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else d(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{N()}return!0},t.defineObservableProperty_=function(e,t,n,r){r===void 0&&(r=!1),this.keysAtom_;try{M();var i=this.delete_(e);if(!i)return i;if(L(this)){var a=R(this,{object:this.proxy_||this.target_,name:e,type:K,newValue:t});if(!a)return null;t=a.newValue}var o=Ni(e),s={configurable:j.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else d(this.target_,e,s);var c=new D(t,n,`ObservableObject.key`,!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{N()}return!0},t.defineComputedProperty_=function(e,t,n){n===void 0&&(n=!1),this.keysAtom_;try{M();var r=this.delete_(e);if(!r)return r;if(L(this)&&!R(this,{object:this.proxy_||this.target_,name:e,type:K,newValue:void 0}))return null;t.name||=`ObservableObject.key`,t.context=this.proxy_||this.target_;var i=Ni(e),a={configurable:j.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,a))return!1}else d(this.target_,e,a);this.values_.set(e,new $t(t)),this.notifyPropertyAddition_(e,void 0)}finally{N()}return!0},t.delete_=function(e,t){if(t===void 0&&(t=!1),this.keysAtom_,!y(this.target_,e))return!0;if(L(this)&&!R(this,{object:this.proxy_||this.target_,name:e,type:ki}))return null;try{var n,r;M();var i=z(this),a=!1,o=this.values_.get(e),s=void 0;if(!o&&(i||a)&&(s=u(this.target_,e)?.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(o&&(this.values_.delete(e),o instanceof D&&(s=o.value_),Dn(o)),this.keysAtom_.reportChanged(),(n=this.pendingKeys_)==null||(r=n.get(e))==null||r.set(e in this.target_),i||a){var c={type:ki,observableKind:`object`,object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:s,name:e};i&&B(this,c)}}finally{N()}return!0},t.observe_=function(e,t){return oi(this,e)},t.intercept_=function(e){return ai(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=z(this),a=!1;if(i||a){var o=i||a?{type:K,observableKind:`object`,debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;i&&B(this,o)}(n=this.pendingKeys_)==null||(r=n.get(e))==null||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),pe(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function ji(e,t){if(y(e,C))return e;var n=t?.name??`ObservableObject`;return se(e,C,new Ai(e,new Map,String(n),Mt(t))),e}var Mi=v(`ObservableObjectAdministration`,Ai);function Ni(e){return Oi[e]||(Oi[e]={get:function(){return this[C].getObservablePropValue_(e)},set:function(t){return this[C].setObservablePropValue_(e,t)}})}function Y(e){return ae(e)?Mi(e[C]):!1}function Pi(e,t,n){var r;(r=e.target_[x])==null||delete r[n]}var Fi=Vi(0),Ii=function(){var e=!1,t={};return Object.defineProperty(t,`0`,{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Li=0,Ri=function(){};function zi(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__===void 0?e.prototype=t:e.prototype.__proto__=t}zi(Ri,Array.prototype);var Bi=function(e,t,n){ve(r,e);function r(t,n,r,i){var a;return r===void 0&&(r=`ObservableArray`),i===void 0&&(i=!1),a=e.call(this)||this,Q(function(){var e=new pi(r,n,i,!0);e.proxy_=be(a),ce(be(a),C,e),t&&t.length&&a.spliceWithArray(0,0,t),Ii&&Object.defineProperty(be(a),`0`,Fi)}),a}var i=r.prototype;return i.concat=function(){this[C].atom_.reportObserved();var e=[...arguments];return Array.prototype.concat.apply(this.slice(),e.map(function(e){return G(e)?e.slice():e}))},i[n]=function(){var e=this,t=0;return Xi({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},_e(r,[{key:`length`,get:function(){return this[C].getArrayLength_()},set:function(e){this[C].setArrayLength_(e)}},{key:t,get:function(){return`Array`}}]),r}(Ri,Symbol.toStringTag,Symbol.iterator);Object.entries(hi).forEach(function(e){var t=e[0],n=e[1];t!==`concat`&&se(Bi.prototype,t,n)});function Vi(e){return{enumerable:!1,configurable:!0,get:function(){return this[C].get_(e)},set:function(t){this[C].set_(e,t)}}}function Hi(e){d(Bi.prototype,``+e,Vi(e))}function Ui(e){if(e>Li){for(var t=Li;t<e+100;t++)Hi(t);Li=e}}Ui(1e3);function Wi(e,t,n){return new Bi(e,t,n)}function X(e,t){if(typeof e==`object`&&e){if(G(e))return t!==void 0&&o(23),e[C].atom_;if(J(e))return e.atom_;if(q(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||o(25,t,Gi(e)),n}if(Y(e)){if(!t)return o(26);var r=e[C].values_.get(t);return r||o(27,t,Gi(e)),r}if(Ae(e)||en(e)||In(e))return e}else if(h(e)&&In(e[C]))return e[C];o(28)}function Z(e,t){if(e||o(29),t!==void 0)return Z(X(e,t));if(Ae(e)||en(e)||In(e)||q(e)||J(e))return e;if(e[C])return e[C];o(24,e)}function Gi(e,t){var n;if(t!==void 0)n=X(e,t);else if(Qn(e))return e.name;else n=Y(e)||q(e)||J(e)?Z(e):X(e);return n.name_}function Q(e){var t=k(),n=Jt(!0);M();try{return e()}finally{N(),Yt(n),A(t)}}var Ki=f.toString;function qi(e,t,n){return n===void 0&&(n=-1),Ji(e,t,n)}function Ji(e,t,n,r,i){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var a=typeof e;if(a!==`function`&&a!==`object`&&typeof t!=`object`)return!1;var o=Ki.call(e);if(o!==Ki.call(t))return!1;switch(o){case`[object RegExp]`:case`[object String]`:return``+e==``+t;case`[object Number]`:return+e==+e?+e==0?1/e==1/t:+e==+t:+t!=+t;case`[object Date]`:case`[object Boolean]`:return+e==+t;case`[object Symbol]`:return typeof Symbol<`u`&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case`[object Map]`:case`[object Set]`:n>=0&&n++;break}e=Yi(e),t=Yi(t);var s=o===`[object Array]`;if(!s){if(typeof e!=`object`||typeof t!=`object`)return!1;var c=e.constructor,l=t.constructor;if(c!==l&&!(h(c)&&c instanceof c&&h(l)&&l instanceof l)&&`constructor`in e&&`constructor`in t)return!1}if(n===0)return!1;n<0&&(n=-1),r||=[],i||=[];for(var u=r.length;u--;)if(r[u]===e)return i[u]===t;if(r.push(e),i.push(t),s){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!Ji(e[u],t[u],n-1,r,i))return!1}else{var d=Object.keys(e),f;if(u=d.length,Object.keys(t).length!==u)return!1;for(;u--;)if(f=d[u],!(y(t,f)&&Ji(e[f],t[f],n-1,r,i)))return!1}return r.pop(),i.pop(),!0}function Yi(e){return G(e)?e.slice():le(e)||q(e)||ue(e)||J(e)?Array.from(e.entries()):e}function Xi(e){return e[Symbol.iterator]=Zi,e}function Zi(){return this}[`Symbol`,`Map`,`Set`].forEach(function(e){c()[e]===void 0&&o(`MobX requires global '`+e+`' to be available or polyfilled`)}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__==`object`&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:zn,extras:{getDebugName:Gi},$mobx:C});var $=e(i());if(!$.useState)throw Error(`mobx-react-lite requires React with Hooks support`);if(!si)throw Error(`mobx-react-lite@3 requires mobx at least version 6 to be available`);var Qi=e(r());function $i(e){e()}function ea(e){e||=$i,fr({reactionScheduler:e})}function ta(e){return mr(e)}var na=!1;function ra(){return na}var ia=1e4,aa=1e4,oa=function(){function e(e){var t=this;Object.defineProperty(this,`finalize`,{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,`registrations`,{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,`sweepTimeout`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`sweep`,{enumerable:!0,configurable:!0,writable:!0,value:function(e){e===void 0&&(e=ia),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach(function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,`finalizeAllImmediately`,{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,`register`,{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,`unregister`,{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,`scheduleSweep`,{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,aa))}}),e}(),sa=new(typeof FinalizationRegistry<`u`?FinalizationRegistry:oa)(function(e){var t;(t=e.reaction)==null||t.dispose(),e.reaction=null}),ca=n((e=>{var t=i();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),la=n(((e,t)=>{t.exports=ca()})),ua=la();function da(e){e.reaction=new An(`observer${e.name}`,function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)==null||t.call(e)})}function fa(e,t){if(t===void 0&&(t=`observed`),ra())return e();var n=$.useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return sa.unregister(r),r.onStoreChange=e,r.reaction||(da(r),r.stateVersion=Symbol()),function(){var e;r.onStoreChange=null,(e=r.reaction)==null||e.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var i=n.current;i.reaction||(da(i),sa.register(n,i,i)),$.useDebugValue(i.reaction,ta),(0,ua.useSyncExternalStore)(i.subscribe,i.getSnapshot,i.getSnapshot);var a,o;if(i.reaction.track(function(){try{a=e()}catch(e){o=e}}),o)throw o;return a}var pa=typeof Symbol==`function`&&Symbol.for,ma=Object.getOwnPropertyDescriptor(function(){},`name`)?.configurable??!1,ha=pa?Symbol.for(`react.forward_ref`):typeof $.forwardRef==`function`&&(0,$.forwardRef)(function(e){return null}).$$typeof,ga=pa?Symbol.for(`react.memo`):typeof $.memo==`function`&&(0,$.memo)(function(e){return null}).$$typeof;function _a(e,t){if(ga&&e.$$typeof===ga)throw Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(ra())return e;var n=t?.forwardRef??!1,r=e,i=e.displayName||e.name;if(ha&&e.$$typeof===ha&&(n=!0,r=e.render,typeof r!=`function`))throw Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a=function(e,t){return fa(function(){return r(e,t)},i)};return a.displayName=e.displayName,ma&&Object.defineProperty(a,`name`,{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(a.contextTypes=e.contextTypes),n&&(a=(0,$.forwardRef)(a)),a=(0,$.memo)(a),ya(e,a),a}var va={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function ya(e,t){Object.keys(e).forEach(function(n){va[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}function ba(e){var t=e.children,n=e.render,r=t||n;return typeof r==`function`?fa(r):null}ba.displayName=`Observer`,ea(Qi.unstable_batchedUpdates),sa.finalizeAllImmediately;export{zt as a,a as c,nr as d,Zn as f,w as i,T as l,la as n,li as o,un as p,P as r,si as s,_a as t,Ve as u};
@@ -0,0 +1,2 @@
1
+ import{a as e,t}from"./rolldown-runtime-COnpUsM8.js";import{Dn as n,zn as r}from"./vendor-chakra-D7rbFWyN.js";var i=t((e=>{var t=n();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),a=e(r()),o=e(n());function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var c;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(c||={});var l=`popstate`;function u(e){e===void 0&&(e={});function t(e,t){let{pathname:n,search:r,hash:i}=e.location;return h(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){return typeof t==`string`?t:g(t)}return v(t,n,null,e)}function d(e,t){if(e===!1||e==null)throw Error(t)}function f(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function p(){return Math.random().toString(36).substr(2,8)}function m(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,n,r){return n===void 0&&(n=null),s({pathname:typeof e==`string`?e:e.pathname,search:``,hash:``},typeof t==`string`?_(t):t,{state:n,key:t&&t.key||r||p()})}function g(e){let{pathname:t=`/`,search:n=``,hash:r=``}=e;return n&&n!==`?`&&(t+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(t+=r.charAt(0)===`#`?r:`#`+r),t}function _(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function v(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,u=c.Pop,f=null,p=_();p??(p=0,o.replaceState(s({},o.state,{idx:p}),``));function _(){return(o.state||{idx:null}).idx}function v(){u=c.Pop;let e=_(),t=e==null?null:e-p;p=e,f&&f({action:u,location:S.location,delta:t})}function y(e,t){u=c.Push;let r=h(S.location,e,t);n&&n(r,e),p=_()+1;let s=m(r,p),l=S.createHref(r);try{o.pushState(s,``,l)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(l)}a&&f&&f({action:u,location:S.location,delta:1})}function b(e,t){u=c.Replace;let r=h(S.location,e,t);n&&n(r,e),p=_();let i=m(r,p),s=S.createHref(r);o.replaceState(i,``,s),a&&f&&f({action:u,location:S.location,delta:0})}function x(e){let t=i.location.origin===`null`?i.location.href:i.location.origin,n=typeof e==`string`?e:g(e);return n=n.replace(/ $/,`%20`),d(t,`No window.location.(origin|href) available to create URL for href: `+n),new URL(n,t)}let S={get action(){return u},get location(){return e(i,o)},listen(e){if(f)throw Error(`A history only accepts one active listener`);return i.addEventListener(l,v),f=e,()=>{i.removeEventListener(l,v),f=null}},createHref(e){return t(i,e)},createURL:x,encodeLocation(e){let t=x(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:y,replace:b,go(e){return o.go(e)}};return S}var y;(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(y||={});var b=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function x(e){return e.index===!0}function S(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((e,i)=>{let a=[...n,String(i)],o=typeof e.id==`string`?e.id:a.join(`-`);if(d(e.index!==!0||!e.children,`Cannot specify children on an index route`),d(!r[o],`Found a route id collision on id "`+o+`". Route id's must be globally unique within Data Router usages`),x(e)){let n=s({},e,t(e),{id:o});return r[o]=n,n}else{let n=s({},e,t(e),{id:o,children:void 0});return r[o]=n,e.children&&(n.children=S(e.children,t,a,r)),n}})}function C(e,t,n){return n===void 0&&(n=`/`),w(e,t,n,!1)}function w(e,t,n,r){let i=ce((typeof t==`string`?_(t):t).pathname||`/`,n);if(i==null)return null;let a=E(e);D(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=se(i);o=re(a[e],t,r)}return o}function T(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function E(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=``);let i=(e,i,a)=>{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(d(o.relativePath.startsWith(r),`Absolute route path "`+o.relativePath+`" nested under path `+(`"`+r+`" is not valid. An absolute child route path `)+`must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let s=B([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(d(e.index!==!0,`Index routes must not have child routes. Please remove `+(`all child routes from route path "`+s+`".`)),E(e.children,t,c,s)),!(e.path==null&&!e.index)&&t.push({path:s,score:N(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))i(e,t);else for(let n of ee(e.path))i(e,t,n)}),t}function ee(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ee(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function D(e){e.sort((e,t)=>e.score===t.score?P(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var te=/^:[\w-]+$/,ne=3,O=2,k=1,A=10,j=-2,M=e=>e===`*`;function N(e,t){let n=e.split(`/`),r=n.length;return n.some(M)&&(r+=j),t&&(r+=O),n.filter(e=>!M(e)).reduce((e,t)=>e+(te.test(t)?ne:t===``?k:A),r)}function P(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function re(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=ae({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=ae({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:B([a,u.pathname]),pathnameBase:V(B([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=B([a,u.pathnameBase]))}return o}function ie(e,t){t===void 0&&(t={});let n=e;n.endsWith(`*`)&&n!==`*`&&!n.endsWith(`/*`)&&(f(!1,`Route path "`+n+`" will be treated as if it were `+(`"`+n.replace(/\*$/,`/*`)+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+(`please change the route path to "`+n.replace(/\*$/,`/*`)+`".`)),n=n.replace(/\*$/,`/*`));let r=n.startsWith(`/`)?`/`:``,i=e=>e==null?``:typeof e==`string`?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&e===`*`)return i(t[`*`]);let a=e.match(/^:([\w-]+)(\??)$/);if(a){let[,e,n]=a,r=t[e];return d(n===`?`||r!=null,`Missing ":`+e+`" param`),i(r)}return e.replace(/\?$/g,``)}).filter(e=>!!e).join(`/`)}function ae(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=oe(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if(r===`*`){let e=s[n]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let c=s[n];return i&&!c?e[r]=void 0:e[r]=(c||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function oe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),f(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "`+e+`" will be treated as if it were `+(`"`+e.replace(/\*$/,`/*`)+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+(`please change the route path to "`+e.replace(/\*$/,`/*`)+`".`));let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function se(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return f(!1,`The URL path "`+e+`" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent `+(`encoding (`+t+`).`)),e}}function ce(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var le=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,F=e=>le.test(e);function ue(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?_(e):e,a;if(n)if(F(n))a=n;else{if(n.includes(`//`)){let e=n;n=n.replace(/\/\/+/g,`/`),f(!1,`Pathnames cannot have embedded double slashes - normalizing `+(e+` -> `+n))}a=n.startsWith(`/`)?de(n.substring(1),`/`):de(n,t)}else a=t;return{pathname:a,search:H(r),hash:fe(i)}}function de(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function I(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`]. Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in <Link to="..."> and the router will parse it for you.`}function L(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function R(e,t){let n=L(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function z(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=_(e):(i=s({},e),d(!i.pathname||!i.pathname.includes(`?`),I(`?`,`pathname`,`search`,i)),d(!i.pathname||!i.pathname.includes(`#`),I(`#`,`pathname`,`hash`,i)),d(!i.search||!i.search.includes(`#`),I(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,c;if(o==null)c=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}c=e>=0?t[e]:`/`}let l=ue(i,c),u=o&&o!==`/`&&o.endsWith(`/`),f=(a||o===`.`)&&n.endsWith(`/`);return!l.pathname.endsWith(`/`)&&(u||f)&&(l.pathname+=`/`),l}var B=e=>e.join(`/`).replace(/\/\/+/g,`/`),V=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),H=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,fe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,pe=function(e,t){t===void 0&&(t=302);let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,s({},n,{headers:r}))},me=class{constructor(e,t,n,r){r===void 0&&(r=!1),this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function he(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var ge=[`post`,`put`,`patch`,`delete`],U=new Set(ge),_e=[`get`,...ge],ve=new Set(_e),ye=new Set([301,302,303,307,308]),be=new Set([307,308]),xe={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Se={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ce={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},we=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Te=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),W=`remix-router-transitions`;function Ee(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0,r=!n;d(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=Te;let a={},o=S(e.routes,i,void 0,a),l,u=e.basename||`/`,p=e.dataStrategy||ze,m=e.patchRoutesOnNavigation,g=s({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),_=null,v=new Set,b=null,x=null,E=null,ee=e.hydrationData!=null,D=C(o,e.history.location,u),te=!1,ne=null;if(D==null&&!m){let t=K(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Qe(o);D=n,ne={[r.id]:t}}D&&!e.hydrationData&&kt(D,o,e.history.location.pathname).active&&(D=null);let O;if(!D){if(O=!1,D=[],g.v7_partialHydration){let t=kt(null,o,e.history.location.pathname);t.active&&t.matches&&(te=!0,D=t.matches)}}else if(D.some(e=>e.route.lazy))O=!1;else if(!D.some(e=>e.route.loader))O=!0;else if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=D.findIndex(e=>n[e.route.id]!==void 0);O=D.slice(0,e+1).every(e=>!Me(e.route,t,n))}else O=D.every(e=>!Me(e.route,t,n))}else O=e.hydrationData!=null;let k,A={historyAction:e.history.action,location:e.history.location,matches:D,initialized:O,navigation:xe,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||ne,fetchers:new Map,blockers:new Map},j=c.Pop,M=!1,N,P=!1,re=new Map,ie=null,ae=!1,oe=!1,se=[],le=new Set,F=new Map,ue=0,de=-1,I=new Map,L=new Set,R=new Map,z=new Map,B=new Set,V=new Map,H=new Map,fe;function pe(){if(_=e.history.listen(t=>{let{action:n,location:r,delta:i}=t;if(fe){fe(),fe=void 0;return}f(H.size===0||i!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let a=Q({currentLocation:A.location,nextLocation:r,historyAction:n});if(a&&i!=null){let t=new Promise(e=>{fe=e});e.history.go(i*-1),Ct(a,{state:`blocked`,location:r,proceed(){Ct(a,{state:`proceeding`,proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(i))},reset(){let e=new Map(A.blockers);e.set(a,Ce),U({blockers:e})}});return}return W(n,r)}),n){vt(t,re);let e=()=>yt(t,re);t.addEventListener(`pagehide`,e),ie=()=>t.removeEventListener(`pagehide`,e)}return A.initialized||W(c.Pop,A.location,{initialHydration:!0}),k}function me(){_&&_(),ie&&ie(),v.clear(),N&&N.abort(),A.fetchers.forEach((e,t)=>at(t)),A.blockers.forEach((e,t)=>Z(t))}function ge(e){return v.add(e),()=>v.delete(e)}function U(e,t){t===void 0&&(t={}),A=s({},A,e);let n=[],r=[];g.v7_fetcherPersist&&A.fetchers.forEach((e,t)=>{e.state===`idle`&&(B.has(t)?r.push(t):n.push(t))}),B.forEach(e=>{!A.fetchers.has(e)&&!F.has(e)&&r.push(e)}),[...v].forEach(e=>e(A,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),g.v7_fetcherPersist?(n.forEach(e=>A.fetchers.delete(e)),r.forEach(e=>at(e))):r.forEach(e=>B.delete(e))}function _e(t,n,r){let{flushSync:i}=r===void 0?{}:r,a=A.actionData!=null&&A.navigation.formMethod!=null&&X(A.navigation.formMethod)&&A.navigation.state===`loading`&&t.state?._isRedirect!==!0,u;u=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?A.actionData:null;let d=n.loaderData?Ye(A.loaderData,n.loaderData,n.matches||[],n.errors):A.loaderData,f=A.blockers;f.size>0&&(f=new Map(f),f.forEach((e,t)=>f.set(t,Ce)));let p=M===!0||A.navigation.formMethod!=null&&X(A.navigation.formMethod)&&t.state?._isRedirect!==!0;l&&=(o=l,void 0),ae||j===c.Pop||(j===c.Push?e.history.push(t,t.state):j===c.Replace&&e.history.replace(t,t.state));let m;if(j===c.Pop){let e=re.get(A.location.pathname);e&&e.has(t.pathname)?m={currentLocation:A.location,nextLocation:t}:re.has(t.pathname)&&(m={currentLocation:t,nextLocation:A.location})}else if(P){let e=re.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),re.set(A.location.pathname,e)),m={currentLocation:A.location,nextLocation:t}}U(s({},n,{actionData:u,loaderData:d,historyAction:j,location:t,initialized:!0,navigation:xe,revalidation:`idle`,restoreScrollPosition:Ot(t,n.matches||A.matches),preventScrollReset:p,blockers:f}),{viewTransitionOpts:m,flushSync:i===!0}),j=c.Pop,M=!1,P=!1,ae=!1,oe=!1,se=[]}async function ve(t,n){if(typeof t==`number`){e.history.go(t);return}let r=Oe(A.location,A.matches,u,g.v7_prependBasename,t,g.v7_relativeSplatPath,n?.fromRouteId,n?.relative),{path:i,submission:a,error:o}=ke(g.v7_normalizeFormMethod,!1,r,n),l=A.location,d=h(A.location,i,n&&n.state);d=s({},d,e.history.encodeLocation(d));let f=n&&n.replace!=null?n.replace:void 0,p=c.Push;f===!0?p=c.Replace:f===!1||a!=null&&X(a.formMethod)&&a.formAction===A.location.pathname+A.location.search&&(p=c.Replace);let m=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,_=(n&&n.flushSync)===!0,v=Q({currentLocation:l,nextLocation:d,historyAction:p});if(v){Ct(v,{state:`blocked`,location:d,proceed(){Ct(v,{state:`proceeding`,proceed:void 0,reset:void 0,location:d}),ve(t,n)},reset(){let e=new Map(A.blockers);e.set(v,Ce),U({blockers:e})}});return}return await W(p,d,{submission:a,pendingError:o,preventScrollReset:m,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:_})}function ye(){if(qe(),U({revalidation:`loading`}),A.navigation.state!==`submitting`){if(A.navigation.state===`idle`){W(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}W(j||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:P===!0})}}async function W(t,n,r){N&&N.abort(),N=null,j=t,ae=(r&&r.startUninterruptedRevalidation)===!0,Dt(A.location,A.matches),M=(r&&r.preventScrollReset)===!0,P=(r&&r.enableViewTransition)===!0;let i=l||o,a=r&&r.overrideNavigation,c=r!=null&&r.initialHydration&&A.matches&&A.matches.length>0&&!te?A.matches:C(i,n,u),d=(r&&r.flushSync)===!0;if(c&&A.initialized&&!oe&&et(A.location,n)&&!(r&&r.submission&&X(r.submission.formMethod))){_e(n,{matches:c},{flushSync:d});return}let f=kt(c,i,n.pathname);if(f.active&&f.matches&&(c=f.matches),!c){let{error:e,notFoundMatches:t,route:r}=wt(n.pathname);_e(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:d});return}N=new AbortController;let p=Ge(e.history,n,N.signal,r&&r.submission),m;if(r&&r.pendingError)m=[Ze(c).route.id,{type:y.error,error:r.pendingError}];else if(r&&r.submission&&X(r.submission.formMethod)){let t=await Ee(p,n,r.submission,c,f.active,{replace:r.replace,flushSync:d});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(J(r)&&he(r.error)&&r.error.status===404){N=null,_e(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}c=t.matches||c,m=t.pendingActionResult,a=pt(n,r.submission),d=!1,f.active=!1,p=Ge(e.history,p.url,p.signal)}let{shortCircuited:h,matches:g,loaderData:_,errors:v}=await De(p,n,c,f.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,d,m);h||(N=null,_e(n,s({matches:g||c},Xe(m),{loaderData:_,errors:v})))}async function Ee(t,n,r,i,a,o){if(o===void 0&&(o={}),qe(),U({navigation:mt(n,r)},{flushSync:o.flushSync===!0}),a){let e=await At(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=Ze(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:y.error,error:e.error}]}}else if(e.matches)i=e.matches;else{let{notFoundMatches:e,error:t,route:r}=wt(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:y.error,error:t}]}}}let s,l=dt(i,n);if(!l.route.action&&!l.route.lazy)s={type:y.error,error:K(405,{method:t.method,pathname:n.pathname,routeId:l.route.id})};else if(s=(await Ve(`action`,A,t,[l],i,null))[l.route.id],t.signal.aborted)return{shortCircuited:!0};if(rt(s)){let n;return n=o&&o.replace!=null?o.replace:We(s.response.headers.get(`Location`),new URL(t.url),u,e.history)===A.location.pathname+A.location.search,await Re(t,s,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(nt(s))throw K(400,{type:`defer-action`});if(J(s)){let e=Ze(i,l.route.id);return(o&&o.replace)!==!0&&(j=c.Push),{matches:i,pendingActionResult:[e.route.id,s]}}return{matches:i,pendingActionResult:[l.route.id,s]}}async function De(t,n,r,i,a,c,d,f,p,m,h){let _=a||pt(n,c),v=c||d||ft(_),y=!ae&&(!g.v7_partialHydration||!p);if(i){if(y){let e=Ae(h);U(s({navigation:_},e===void 0?{}:{actionData:e}),{flushSync:m})}let e=await At(r,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=Ze(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)r=e.matches;else{let{error:e,notFoundMatches:t,route:r}=wt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let b=l||o,[x,S]=je(e.history,A,r,v,n,g.v7_partialHydration&&p===!0,g.v7_skipActionErrorRevalidation,oe,se,le,B,R,L,b,u,h);if(Tt(e=>!(r&&r.some(t=>t.route.id===e))||x&&x.some(t=>t.route.id===e)),de=++ue,x.length===0&&S.length===0){let e=bt();return _e(n,s({matches:r,loaderData:{},errors:h&&J(h[1])?{[h[0]]:h[1].error}:null},Xe(h),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:m}),{shortCircuited:!0}}if(y){let e={};if(!i){e.navigation=_;let t=Ae(h);t!==void 0&&(e.actionData=t)}S.length>0&&(e.fetchers=Ne(S)),U(e,{flushSync:m})}S.forEach(e=>{Y(e.key),e.controller&&F.set(e.key,e.controller)});let C=()=>S.forEach(e=>Y(e.key));N&&N.signal.addEventListener(`abort`,C);let{loaderResults:w,fetcherResults:T}=await Ke(A,r,x,S,t);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener(`abort`,C),S.forEach(e=>F.delete(e.key));let E=$e(w);if(E)return await Re(t,E.result,!0,{replace:f}),{shortCircuited:!0};if(E=$e(T),E)return L.add(E.key),await Re(t,E.result,!0,{replace:f}),{shortCircuited:!0};let{loaderData:ee,errors:D}=Je(A,r,w,h,S,T,V);V.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&V.delete(t)})}),g.v7_partialHydration&&p&&A.errors&&(D=s({},A.errors,D));let te=bt(),ne=xt(de),O=te||ne||S.length>0;return s({matches:r,loaderData:ee,errors:D},O?{fetchers:new Map(A.fetchers)}:{})}function Ae(e){if(e&&!J(e[1]))return{[e[0]]:e[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function Ne(e){return e.forEach(e=>{let t=A.fetchers.get(e.key),n=ht(void 0,t?t.data:void 0);A.fetchers.set(e.key,n)}),new Map(A.fetchers)}function Pe(e,t,n,i){if(r)throw Error(`router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.`);Y(e);let a=(i&&i.flushSync)===!0,s=l||o,c=Oe(A.location,A.matches,u,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,i?.relative),d=C(s,c,u),f=kt(d,s,c);if(f.active&&f.matches&&(d=f.matches),!d){q(e,t,K(404,{pathname:c}),{flushSync:a});return}let{path:p,submission:m,error:h}=ke(g.v7_normalizeFormMethod,!0,c,i);if(h){q(e,t,h,{flushSync:a});return}let _=dt(d,p),v=(i&&i.preventScrollReset)===!0;if(m&&X(m.formMethod)){Fe(e,t,p,_,d,f.active,a,v,m);return}R.set(e,{routeId:t,path:p}),Le(e,t,p,_,d,f.active,a,v,m)}async function Fe(t,n,r,i,a,s,c,f,p){qe(),R.delete(t);function m(e){return!e.route.action&&!e.route.lazy?(q(t,n,K(405,{method:p.formMethod,pathname:r,routeId:n}),{flushSync:c}),!0):!1}if(!s&&m(i))return;G(t,gt(p,A.fetchers.get(t)),{flushSync:c});let h=new AbortController,_=Ge(e.history,r,h.signal,p);if(s){let e=await At(a,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){q(t,n,e.error,{flushSync:c});return}else if(!e.matches){q(t,n,K(404,{pathname:r}),{flushSync:c});return}else if(a=e.matches,i=dt(a,r),m(i))return}F.set(t,h);let v=ue,y=(await Ve(`action`,A,_,[i],a,t))[i.route.id];if(_.signal.aborted){F.get(t)===h&&F.delete(t);return}if(g.v7_fetcherPersist&&B.has(t)){if(rt(y)||J(y)){G(t,_t(void 0));return}}else{if(rt(y))if(F.delete(t),de>v){G(t,_t(void 0));return}else return L.add(t),G(t,ht(p)),Re(_,y,!1,{fetcherSubmission:p,preventScrollReset:f});if(J(y)){q(t,n,y.error);return}}if(nt(y))throw K(400,{type:`defer-action`});let b=A.navigation.location||A.location,x=Ge(e.history,b,h.signal),S=l||o,w=A.navigation.state===`idle`?A.matches:C(S,A.navigation.location,u);d(w,`Didn't find any matches after fetcher action`);let T=++ue;I.set(t,T);let E=ht(p,y.data);A.fetchers.set(t,E);let[ee,D]=je(e.history,A,w,p,b,!1,g.v7_skipActionErrorRevalidation,oe,se,le,B,R,L,S,u,[i.route.id,y]);D.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=A.fetchers.get(t),r=ht(void 0,n?n.data:void 0);A.fetchers.set(t,r),Y(t),e.controller&&F.set(t,e.controller)}),U({fetchers:new Map(A.fetchers)});let te=()=>D.forEach(e=>Y(e.key));h.signal.addEventListener(`abort`,te);let{loaderResults:ne,fetcherResults:O}=await Ke(A,w,ee,D,x);if(h.signal.aborted)return;h.signal.removeEventListener(`abort`,te),I.delete(t),F.delete(t),D.forEach(e=>F.delete(e.key));let k=$e(ne);if(k)return Re(x,k.result,!1,{preventScrollReset:f});if(k=$e(O),k)return L.add(k.key),Re(x,k.result,!1,{preventScrollReset:f});let{loaderData:M,errors:P}=Je(A,w,ne,void 0,D,O,V);if(A.fetchers.has(t)){let e=_t(y.data);A.fetchers.set(t,e)}xt(T),A.navigation.state===`loading`&&T>de?(d(j,`Expected pending action`),N&&N.abort(),_e(A.navigation.location,{matches:w,loaderData:M,errors:P,fetchers:new Map(A.fetchers)})):(U({errors:P,loaderData:Ye(A.loaderData,M,w,P),fetchers:new Map(A.fetchers)}),oe=!1)}async function Le(t,n,r,i,a,o,s,c,l){let u=A.fetchers.get(t);G(t,ht(l,u?u.data:void 0),{flushSync:s});let f=new AbortController,p=Ge(e.history,r,f.signal);if(o){let e=await At(a,new URL(p.url).pathname,p.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){q(t,n,e.error,{flushSync:s});return}else if(e.matches)a=e.matches,i=dt(a,r);else{q(t,n,K(404,{pathname:r}),{flushSync:s});return}}F.set(t,f);let m=ue,h=(await Ve(`loader`,A,p,[i],a,t))[i.route.id];if(nt(h)&&(h=await lt(h,p.signal,!0)||h),F.get(t)===f&&F.delete(t),!p.signal.aborted){if(B.has(t)){G(t,_t(void 0));return}if(rt(h))if(de>m){G(t,_t(void 0));return}else{L.add(t),await Re(p,h,!1,{preventScrollReset:c});return}if(J(h)){q(t,n,h.error);return}d(!nt(h),`Unhandled fetcher deferred data`),G(t,_t(h.data))}}async function Re(r,i,a,o){let{submission:l,fetcherSubmission:f,preventScrollReset:p,replace:m}=o===void 0?{}:o;i.response.headers.has(`X-Remix-Revalidate`)&&(oe=!0);let g=i.response.headers.get(`Location`);d(g,`Expected a Location header on the redirect Response`),g=We(g,new URL(r.url),u,e.history);let _=h(A.location,g,{_isRedirect:!0});if(n){let n=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))n=!0;else if(we.test(g)){let r=e.history.createURL(g);n=r.origin!==t.location.origin||ce(r.pathname,u)==null}if(n){m?t.location.replace(g):t.location.assign(g);return}}N=null;let v=m===!0||i.response.headers.has(`X-Remix-Replace`)?c.Replace:c.Push,{formMethod:y,formAction:b,formEncType:x}=A.navigation;!l&&!f&&y&&b&&x&&(l=ft(A.navigation));let S=l||f;be.has(i.response.status)&&S&&X(S.formMethod)?await W(v,_,{submission:s({},S,{formAction:g}),preventScrollReset:p||M,enableViewTransition:a?P:void 0}):await W(v,_,{overrideNavigation:pt(_,l),fetcherSubmission:f,preventScrollReset:p||M,enableViewTransition:a?P:void 0})}async function Ve(e,t,n,r,o,s){let c,l={};try{c=await Be(p,e,t,n,r,o,s,a,i)}catch(e){return r.forEach(t=>{l[t.route.id]={type:y.error,error:e}}),l}for(let[e,t]of Object.entries(c))if(tt(t)){let r=t.result;l[e]={type:y.redirect,response:Ue(r,n,e,o,u,g.v7_relativeSplatPath)}}else l[e]=await He(t);return l}async function Ke(t,n,r,i,a){let o=t.matches,s=Ve(`loader`,t,a,r,n,null),c=Promise.all(i.map(async n=>{if(n.matches&&n.match&&n.controller){let r=(await Ve(`loader`,t,Ge(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}else return Promise.resolve({[n.key]:{type:y.error,error:K(404,{pathname:n.path})}})})),l=await s,u=(await c).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([st(n,l,a.signal,o,t.loaderData),ct(n,u,i)]),{loaderResults:l,fetcherResults:u}}function qe(){oe=!0,se.push(...Tt()),R.forEach((e,t)=>{F.has(t)&&le.add(t),Y(t)})}function G(e,t,n){n===void 0&&(n={}),A.fetchers.set(e,t),U({fetchers:new Map(A.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function q(e,t,n,r){r===void 0&&(r={});let i=Ze(A.matches,t);at(e),U({errors:{[i.route.id]:n},fetchers:new Map(A.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function it(e){return z.set(e,(z.get(e)||0)+1),B.has(e)&&B.delete(e),A.fetchers.get(e)||Se}function at(e){let t=A.fetchers.get(e);F.has(e)&&!(t&&t.state===`loading`&&I.has(e))&&Y(e),R.delete(e),I.delete(e),L.delete(e),g.v7_fetcherPersist&&B.delete(e),le.delete(e),A.fetchers.delete(e)}function ot(e){let t=(z.get(e)||0)-1;t<=0?(z.delete(e),B.add(e),g.v7_fetcherPersist||at(e)):z.set(e,t),U({fetchers:new Map(A.fetchers)})}function Y(e){let t=F.get(e);t&&(t.abort(),F.delete(e))}function ut(e){for(let t of e){let e=_t(it(t).data);A.fetchers.set(t,e)}}function bt(){let e=[],t=!1;for(let n of L){let r=A.fetchers.get(n);d(r,`Expected fetcher: `+n),r.state===`loading`&&(L.delete(n),e.push(n),t=!0)}return ut(e),t}function xt(e){let t=[];for(let[n,r]of I)if(r<e){let e=A.fetchers.get(n);d(e,`Expected fetcher: `+n),e.state===`loading`&&(Y(n),I.delete(n),t.push(n))}return ut(t),t.length>0}function St(e,t){let n=A.blockers.get(e)||Ce;return H.get(e)!==t&&H.set(e,t),n}function Z(e){A.blockers.delete(e),H.delete(e)}function Ct(e,t){let n=A.blockers.get(e)||Ce;d(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: `+n.state+` -> `+t.state);let r=new Map(A.blockers);r.set(e,t),U({blockers:r})}function Q(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(H.size===0)return;H.size>1&&f(!1,`A router only supports one blocker at a time`);let i=Array.from(H.entries()),[a,o]=i[i.length-1],s=A.blockers.get(a);if(!(s&&s.state===`proceeding`)&&o({currentLocation:t,nextLocation:n,historyAction:r}))return a}function wt(e){let t=K(404,{pathname:e}),{matches:n,route:r}=Qe(l||o);return Tt(),{notFoundMatches:n,route:r,error:t}}function Tt(e){let t=[];return V.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),V.delete(r))}),t}function Et(e,t,n){if(b=e,E=t,x=n||null,!ee&&A.navigation===xe){ee=!0;let e=Ot(A.location,A.matches);e!=null&&U({restoreScrollPosition:e})}return()=>{b=null,E=null,x=null}}function $(e,t){return x&&x(e,t.map(e=>T(e,A.loaderData)))||e.key}function Dt(e,t){if(b&&E){let n=$(e,t);b[n]=E()}}function Ot(e,t){if(b){let n=$(e,t),r=b[n];if(typeof r==`number`)return r}return null}function kt(e,t,n){if(m){if(!e)return{active:!0,matches:w(t,n,u,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:w(t,n,u,!0)}}return{active:!1,matches:null}}async function At(e,t,n,r){if(!m)return{type:`success`,matches:e};let s=e;for(;;){let e=l==null,c=l||o,d=a;try{await m({signal:n,path:t,matches:s,fetcherKey:r,patch:(e,t)=>{n.aborted||Ie(e,t,c,d,i)}})}catch(e){return{type:`error`,error:e,partialMatches:s}}finally{e&&!n.aborted&&(o=[...o])}if(n.aborted)return{type:`aborted`};let f=C(c,t,u);if(f)return{type:`success`,matches:f};let p=w(c,t,u,!0);if(!p||s.length===p.length&&s.every((e,t)=>e.route.id===p[t].route.id))return{type:`success`,matches:null};s=p}}function jt(e){a={},l=S(e,i,void 0,a)}function Mt(e,t){let n=l==null;Ie(e,t,l||o,a,i),n&&(o=[...o],U({}))}return k={get basename(){return u},get future(){return g},get state(){return A},get routes(){return o},get window(){return t},initialize:pe,subscribe:ge,enableScrollRestoration:Et,navigate:ve,fetch:Pe,revalidate:ye,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:it,deleteFetcher:ot,dispose:me,getBlocker:St,deleteBlocker:Z,patchRoutes:Mt,_internalFetchControllers:F,_internalActiveDeferreds:V,_internalSetRoutes:jt},k}function De(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Oe(e,t,n,r,i,a,o,s){let c,l;if(o){c=[];for(let e of t)if(c.push(e),e.route.id===o){l=e;break}}else c=t,l=t[t.length-1];let u=z(i||`.`,R(c,a),ce(e.pathname,n)||e.pathname,s===`path`);if(i??(u.search=e.search,u.hash=e.hash),(i==null||i===``||i===`.`)&&l){let e=ut(u.search);if(l.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,`?index&`):`?index`;else if(!l.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();u.search=n?`?`+n:``}}return r&&n!==`/`&&(u.pathname=u.pathname===`/`?n:B([n,u.pathname])),g(u)}function ke(e,t,n,r){if(!r||!De(r))return{path:n};if(r.formMethod&&!Y(r.formMethod))return{path:n,error:K(405,{method:r.formMethod})};let i=()=>({path:n,error:K(400,{type:`invalid-body`})}),a=r.formMethod||`get`,o=e?a.toUpperCase():a.toLowerCase(),s=q(n);if(r.body!==void 0){if(r.formEncType===`text/plain`){if(!X(o))return i();let e=typeof r.body==`string`?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return``+e+n+`=`+r+`
2
+ `},``):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}else if(r.formEncType===`application/json`){if(!X(o))return i();try{let e=typeof r.body==`string`?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch{return i()}}}d(typeof FormData==`function`,`FormData is not available in this environment`);let c,l;if(r.formData)c=Ke(r.formData),l=r.formData;else if(r.body instanceof FormData)c=Ke(r.body),l=r.body;else if(r.body instanceof URLSearchParams)c=r.body,l=qe(c);else if(r.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(r.body),l=qe(c)}catch{return i()}let u={formMethod:o,formAction:s,formEncType:r&&r.formEncType||`application/x-www-form-urlencoded`,formData:l,json:void 0,text:void 0};if(X(u.formMethod))return{path:n,submission:u};let f=_(n);return t&&f.search&&ut(f.search)&&c.append(`index`,``),f.search=`?`+c,{path:g(f),submission:u}}function Ae(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function je(e,t,n,r,i,a,o,c,l,u,d,f,p,m,h,g){let _=g?J(g[1])?g[1].error:g[1].data:void 0,v=e.createURL(t.location),y=e.createURL(i),b=n;a&&t.errors?b=Ae(n,Object.keys(t.errors)[0],!0):g&&J(g[1])&&(b=Ae(n,g[0]));let x=g?g[1].statusCode:void 0,S=o&&x&&x>=400,w=b.filter((e,n)=>{let{route:i}=e;if(i.lazy)return!0;if(i.loader==null)return!1;if(a)return Me(i,t.loaderData,t.errors);if(Ne(t.loaderData,t.matches[n],e)||l.some(t=>t===e.route.id))return!0;let o=t.matches[n],u=e;return Fe(e,s({currentUrl:v,currentParams:o.params,nextUrl:y,nextParams:u.params},r,{actionResult:_,actionStatus:x,defaultShouldRevalidate:S?!1:c||v.pathname+v.search===y.pathname+y.search||v.search!==y.search||Pe(o,u)}))}),T=[];return f.forEach((e,i)=>{if(a||!n.some(t=>t.route.id===e.routeId)||d.has(i))return;let o=C(m,e.path,h);if(!o){T.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let l=t.fetchers.get(i),f=dt(o,e.path),g=!1;p.has(i)?g=!1:u.has(i)?(u.delete(i),g=!0):g=l&&l.state!==`idle`&&l.data===void 0?c:Fe(f,s({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:_,actionStatus:x,defaultShouldRevalidate:S?!1:c})),g&&T.push({key:i,routeId:e.routeId,path:e.path,matches:o,match:f,controller:new AbortController})}),[w,T]}function Me(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader==`function`&&e.loader.hydrate===!0?!0:!r&&!i}function Ne(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Pe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Fe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Ie(e,t,n,r,i){let a;if(e){let t=r[e];d(t,`No route found to patch children into: routeId = `+e),t.children||=[],a=t.children}else a=n;let o=S(t.filter(e=>!a.some(t=>Le(e,t))),i,[e||`_`,`patch`,String(a?.length||`0`)],r);a.push(...o)}function Le(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((e,n)=>t.children?.some(t=>Le(e,t))):!1}async function Re(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];d(i,`No route found in manifest`);let a={};for(let e in r){let t=i[e]!==void 0&&e!==`hasErrorBoundary`;f(!t,`Route "`+i.id+`" has a static property "`+e+`" defined but its lazy function is also returning a value for this property. `+(`The lazy route property "`+e+`" will be ignored.`)),!t&&!b.has(e)&&(a[e]=r[e])}Object.assign(i,a),Object.assign(i,s({},t(i),{lazy:void 0}))}async function ze(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function Be(e,t,n,r,i,a,o,c,l,u){let d=a.map(e=>e.route.lazy?Re(e.route,l,c):void 0),f=await e({matches:a.map((e,n)=>{let a=d[n],o=i.some(t=>t.route.id===e.route.id);return s({},e,{shouldLoad:o,resolve:async n=>(n&&r.method===`GET`&&(e.route.lazy||e.route.loader)&&(o=!0),o?Ve(t,r,e,a,n,u):Promise.resolve({type:y.data,result:void 0}))})}),request:r,params:a[0].params,fetcherKey:o,context:u});try{await Promise.all(d)}catch{}return f}async function Ve(e,t,n,r,i,a){let o,s,c=r=>{let o,c=new Promise((e,t)=>o=t);s=()=>o(),t.signal.addEventListener(`abort`,s);let l=i=>typeof r==`function`?r({request:t,params:n.params,context:a},...i===void 0?[]:[i]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean `+(`"`+e+`" [routeId: `+n.route.id+`]`))),u=(async()=>{try{return{type:`data`,result:await(i?i(e=>l(e)):l())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([u,c])};try{let i=n.route[e];if(r)if(i){let e,[t]=await Promise.all([c(i).catch(t=>{e=t}),r]);if(e!==void 0)throw e;o=t}else if(await r,i=n.route[e],i)o=await c(i);else if(e===`action`){let e=new URL(t.url),r=e.pathname+e.search;throw K(405,{method:t.method,pathname:r,routeId:n.route.id})}else return{type:y.data,result:void 0};else if(i)o=await c(i);else{let e=new URL(t.url);throw K(404,{pathname:e.pathname+e.search})}d(o.result!==void 0,`You defined `+(e===`action`?`an action`:`a loader`)+` for route `+(`"`+n.route.id+`" but didn't return anything from your \``+e+"` ")+"function. Please return a value or `null`.")}catch(e){return{type:y.error,result:e}}finally{s&&t.signal.removeEventListener(`abort`,s)}return o}async function He(e){let{result:t,type:n}=e;if(ot(t)){let e;try{let n=t.headers.get(`Content-Type`);e=n&&/\bapplication\/json\b/.test(n)?t.body==null?null:await t.json():await t.text()}catch(e){return{type:y.error,error:e}}return n===y.error?{type:y.error,error:new me(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:y.data,data:e,statusCode:t.status,headers:t.headers}}if(n===y.error){if(it(t)){var r;if(t.data instanceof Error){var i;return{type:y.error,error:t.data,statusCode:t.init?.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:y.error,error:new me(t.init?.status||500,void 0,t.data),statusCode:he(t)?t.status:void 0,headers:(r=t.init)!=null&&r.headers?new Headers(t.init.headers):void 0}}return{type:y.error,error:t,statusCode:he(t)?t.status:void 0}}if(at(t))return{type:y.deferred,deferredData:t,statusCode:t.init?.status,headers:t.init?.headers&&new Headers(t.init.headers)};if(it(t)){var a;return{type:y.data,data:t.data,statusCode:t.init?.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:y.data,data:t}}function Ue(e,t,n,r,i,a){let o=e.headers.get(`Location`);if(d(o,`Redirects returned/thrown from loaders/actions must have a Location header`),!we.test(o)){let s=r.slice(0,r.findIndex(e=>e.route.id===n)+1);o=Oe(new URL(t.url),s,i,!0,o,a),e.headers.set(`Location`,o)}return e}function We(e,t,n,r){let i=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];if(we.test(e)){let r=e,a=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(i.includes(a.protocol))throw Error(`Invalid redirect location`);let o=ce(a.pathname,n)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}try{let t=r.createURL(e);if(i.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function Ge(e,t,n,r){let i=e.createURL(q(t)).toString(),a={signal:n};if(r&&X(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=Ke(r.formData):a.body=r.formData}return new Request(i,a)}function Ke(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function qe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function G(e,t,n,r,i){let a={},o=null,s,c=!1,l={},u=n&&J(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(d(!rt(p),`Cannot handle redirect results in processLoaderData`),J(p)){let t=p.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[f]=t;else{let n=Ze(e,f);o[n.route.id]??(o[n.route.id]=t)}a[f]=void 0,c||(c=!0,s=he(p.error)?p.error.status:500),p.headers&&(l[f]=p.headers)}else nt(p)?(r.set(f,p.deferredData),a[f]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!c&&(s=p.statusCode),p.headers&&(l[f]=p.headers)):(a[f]=p.data,p.statusCode&&p.statusCode!==200&&!c&&(s=p.statusCode),p.headers&&(l[f]=p.headers))}),u!==void 0&&n&&(o={[n[0]]:u},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Je(e,t,n,r,i,a,o){let{loaderData:c,errors:l}=G(t,n,r,o,!1);return i.forEach(t=>{let{key:n,match:r,controller:i}=t,o=a[n];if(d(o,`Did not find corresponding fetcher result`),!(i&&i.signal.aborted))if(J(o)){let t=Ze(e.matches,r?.route.id);l&&l[t.route.id]||(l=s({},l,{[t.route.id]:o.error})),e.fetchers.delete(n)}else if(rt(o))d(!1,`Unhandled fetcher revalidation redirect`);else if(nt(o))d(!1,`Unhandled fetcher deferred data`);else{let t=_t(o.data);e.fetchers.set(n,t)}}),{loaderData:c,errors:l}}function Ye(e,t,n,r){let i=s({},t);for(let a of n){let n=a.route.id;if(t.hasOwnProperty(n)?t[n]!==void 0&&(i[n]=t[n]):e[n]!==void 0&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Xe(e){return e?J(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ze(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function Qe(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function K(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s=`Unknown Server Error`,c=`Unknown @remix-run/router error`;return e===400?(s=`Bad Request`,i&&n&&r?c=`You made a `+i+` request to "`+n+`" but `+('did not provide a `loader` for route "'+r+`", `)+`so there is no way to handle the request.`:a===`defer-action`?c=`defer() is not supported in actions`:a===`invalid-body`&&(c=`Unable to encode submission body`)):e===403?(s=`Forbidden`,c=`Route "`+r+`" does not match URL "`+n+`"`):e===404?(s=`Not Found`,c=`No route matches URL "`+n+`"`):e===405&&(s=`Method Not Allowed`,i&&n&&r?c=`You made a `+i.toUpperCase()+` request to "`+n+`" but `+('did not provide an `action` for route "'+r+`", `)+`so there is no way to handle the request.`:i&&(c=`Invalid request method "`+i.toUpperCase()+`"`)),new me(e||500,s,Error(c),!0)}function $e(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(rt(r))return{key:n,result:r}}}function q(e){let t=typeof e==`string`?_(e):e;return g(s({},t,{hash:``}))}function et(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function tt(e){return ot(e.result)&&ye.has(e.result.status)}function nt(e){return e.type===y.deferred}function J(e){return e.type===y.error}function rt(e){return(e&&e.type)===y.redirect}function it(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function at(e){let t=e;return t&&typeof t==`object`&&typeof t.data==`object`&&typeof t.subscribe==`function`&&typeof t.cancel==`function`&&typeof t.resolveData==`function`}function ot(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Y(e){return ve.has(e.toLowerCase())}function X(e){return U.has(e.toLowerCase())}async function st(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o<a.length;o++){let[s,c]=a[o],l=e.find(e=>e?.route.id===s);if(!l)continue;let u=r.find(e=>e.route.id===l.route.id),d=u!=null&&!Pe(u,l)&&(i&&i[l.route.id])!==void 0;nt(c)&&d&&await lt(c,n,!1).then(e=>{e&&(t[s]=e)})}}async function ct(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:a,controller:o}=n[r],s=t[i];e.find(e=>e?.route.id===a)&&nt(s)&&(d(o,`Expected an AbortController for revalidating fetcher deferred result`),await lt(s,o.signal,!0).then(e=>{e&&(t[i]=e)}))}}async function lt(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:y.data,data:e.deferredData.unwrappedData}}catch(e){return{type:y.error,error:e}}return{type:y.data,data:e.deferredData.data}}}function ut(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function dt(e,t){let n=typeof t==`string`?_(t).search:t.search;if(e[e.length-1].route.index&&ut(n||``))return e[e.length-1];let r=L(e);return r[r.length-1]}function ft(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function pt(e,t){return t?{state:`loading`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:`loading`,location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function mt(e,t){return{state:`submitting`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ht(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function gt(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function _t(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function vt(e,t){try{let n=e.sessionStorage.getItem(W);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function yt(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(W,JSON.stringify(n))}catch(e){f(!1,`Failed to save applied view transitions in sessionStorage (`+e+`).`)}}}function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bt.apply(this,arguments)}var xt=a.createContext(null),St=a.createContext(null),Z=a.createContext(null),Ct=a.createContext(null),Q=a.createContext({outlet:null,matches:[],isDataRoute:!1}),wt=a.createContext(null);function Tt(e,t){let{relative:n}=t===void 0?{}:t;!Et()&&d(!1);let{basename:r,navigator:i}=a.useContext(Z),{hash:o,pathname:s,search:c}=Nt(e,{relative:n}),l=s;return r!==`/`&&(l=s===`/`?r:B([r,s])),i.createHref({pathname:l,search:c,hash:o})}function Et(){return a.useContext(Ct)!=null}function $(){return!Et()&&d(!1),a.useContext(Ct).location}function Dt(e){a.useContext(Z).static||a.useLayoutEffect(e)}function Ot(){let{isDataRoute:e}=a.useContext(Q);return e?Yt():kt()}function kt(){!Et()&&d(!1);let e=a.useContext(xt),{basename:t,future:n,navigator:r}=a.useContext(Z),{matches:i}=a.useContext(Q),{pathname:o}=$(),s=JSON.stringify(R(i,n.v7_relativeSplatPath)),c=a.useRef(!1);return Dt(()=>{c.current=!0}),a.useCallback(function(n,i){if(i===void 0&&(i={}),!c.current)return;if(typeof n==`number`){r.go(n);return}let a=z(n,JSON.parse(s),o,i.relative===`path`);e==null&&t!==`/`&&(a.pathname=a.pathname===`/`?t:B([t,a.pathname])),(i.replace?r.replace:r.push)(a,i.state,i)},[t,r,s,o,e])}var At=a.createContext(null);function jt(e){let t=a.useContext(Q).outlet;return t&&a.createElement(At.Provider,{value:e},t)}function Mt(){let{matches:e}=a.useContext(Q),t=e[e.length-1];return t?t.params:{}}function Nt(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=a.useContext(Z),{matches:i}=a.useContext(Q),{pathname:o}=$(),s=JSON.stringify(R(i,r.v7_relativeSplatPath));return a.useMemo(()=>z(e,JSON.parse(s),o,n===`path`),[e,s,o,n])}function Pt(e,t,n,r){!Et()&&d(!1);let{navigator:i}=a.useContext(Z),{matches:o}=a.useContext(Q),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:`/`;s&&s.route;let f=$(),p;if(t){let e=typeof t==`string`?_(t):t;!(u===`/`||e.pathname?.startsWith(u))&&d(!1),p=e}else p=f;let m=p.pathname||`/`,h=m;if(u!==`/`){let e=u.replace(/^\//,``).split(`/`);h=`/`+m.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let g=C(e,{pathname:h}),v=zt(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:B([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?u:B([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n,r);return t&&v?a.createElement(Ct.Provider,{value:{location:bt({pathname:`/`,search:``,hash:``,state:null,key:`default`},p),navigationType:c.Pop}},v):v}function Ft(){let e=Jt(),t=he(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return a.createElement(a.Fragment,null,a.createElement(`h2`,null,`Unexpected Application Error!`),a.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?a.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var It=a.createElement(Ft,null),Lt=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:a.createElement(Q.Provider,{value:this.props.routeContext},a.createElement(wt.Provider,{value:this.state.error,children:this.props.component}))}};function Rt(e){let{routeContext:t,match:n,children:r}=e,i=a.useContext(xt);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),a.createElement(Q.Provider,{value:t},r)}function zt(e,t,n,r){if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n?.errors;if(s!=null){let e=o.findIndex(e=>e.route.id&&s?.[e.route.id]!==void 0);!(e>=0)&&d(!1),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&e[t.route.id]===void 0&&(!r||r[t.route.id]===void 0);if(t.route.lazy||i){c=!0,o=l>=0?o.slice(0,l+1):[o[0]];break}}}return o.reduceRight((e,r,i)=>{let u,d=!1,f=null,p=null;n&&(u=s&&r.route.id?s[r.route.id]:void 0,f=r.route.errorElement||It,c&&(l<0&&i===0?(Zt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):l===i&&(d=!0,p=r.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,i+1)),h=()=>{let t;return t=u?f:d?p:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(Rt,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||i===0)?a.createElement(Lt,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Bt=function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e}(Bt||{}),Vt=function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e}(Vt||{});function Ht(e){let t=a.useContext(xt);return!t&&d(!1),t}function Ut(e){let t=a.useContext(St);return!t&&d(!1),t}function Wt(e){let t=a.useContext(Q);return!t&&d(!1),t}function Gt(e){let t=Wt(e),n=t.matches[t.matches.length-1];return!n.route.id&&d(!1),n.route.id}function Kt(){return Ut(Vt.UseNavigation).navigation}function qt(){let{matches:e,loaderData:t}=Ut(Vt.UseMatches);return a.useMemo(()=>e.map(e=>T(e,t)),[e,t])}function Jt(){let e=a.useContext(wt),t=Ut(Vt.UseRouteError),n=Gt(Vt.UseRouteError);return e===void 0?t.errors?.[n]:e}function Yt(){let{router:e}=Ht(Bt.UseNavigateStable),t=Gt(Vt.UseNavigateStable),n=a.useRef(!1);return Dt(()=>{n.current=!0}),a.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,bt({fromRouteId:t},i)))},[e,t])}var Xt={};function Zt(e,t,n){!t&&!Xt[e]&&(Xt[e]=!0)}var Qt=(e,t,n)=>(``+t+("You can use the `"+e+"` future flag to opt-in early. ")+(`For more information, see `+n+`.`),void 0);function $t(e,t){e?.v7_startTransition===void 0&&Qt(`v7_startTransition`,"React Router will begin wrapping state updates in `React.startTransition` in v7",`https://reactrouter.com/v6/upgrading/future#v7_starttransition`),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&Qt(`v7_relativeSplatPath`,`Relative route resolution within Splat routes is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath`),t&&(t.v7_fetcherPersist===void 0&&Qt(`v7_fetcherPersist`,`The persistence behavior of fetchers is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist`),t.v7_normalizeFormMethod===void 0&&Qt(`v7_normalizeFormMethod`,"Casing of `formMethod` fields is being normalized to uppercase in v7",`https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod`),t.v7_partialHydration===void 0&&Qt(`v7_partialHydration`,"`RouterProvider` hydration behavior is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_partialhydration`),t.v7_skipActionErrorRevalidation===void 0&&Qt(`v7_skipActionErrorRevalidation`,"The revalidation behavior after 4xx/5xx `action` responses is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation`))}a.startTransition;function en(e){let{to:t,replace:n,state:r,relative:i}=e;!Et()&&d(!1);let{future:o,static:s}=a.useContext(Z),{matches:c}=a.useContext(Q),{pathname:l}=$(),u=Ot(),f=z(t,R(c,o.v7_relativeSplatPath),l,i===`path`),p=JSON.stringify(f);return a.useEffect(()=>u(JSON.parse(p),{replace:n,state:r,relative:i}),[u,p,i,n,r]),null}function tn(e){return jt(e.context)}function nn(e){let{basename:t=`/`,children:n=null,location:r,navigationType:i=c.Pop,navigator:o,static:s=!1,future:l}=e;Et()&&d(!1);let u=t.replace(/^\/*/,`/`),f=a.useMemo(()=>({basename:u,navigator:o,static:s,future:bt({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);typeof r==`string`&&(r=_(r));let{pathname:p=`/`,search:m=``,hash:h=``,state:g=null,key:v=`default`}=r,y=a.useMemo(()=>{let e=ce(p,u);return e==null?null:{location:{pathname:e,search:m,hash:h,state:g,key:v},navigationType:i}},[u,p,m,h,g,v,i]);return y==null?null:a.createElement(Z.Provider,{value:f},a.createElement(Ct.Provider,{children:n,value:y}))}var rn=function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e}(rn||{});new Promise(()=>{}),a.Component;function an(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on.apply(this,arguments)}function sn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ln(e,t){return e.button===0&&(!t||t===`_self`)&&!cn(e)}function un(e){return e===void 0&&(e=``),new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function dn(e,t){let n=un(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var fn=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`,`viewTransition`],pn=`6`;try{window.__reactRouterVersion=pn}catch{}function mn(e,t){return Ee({basename:t?.basename,future:on({},t?.future,{v7_prependBasename:!0}),history:u({window:t?.window}),hydrationData:t?.hydrationData||hn(),routes:e,mapRouteProperties:an,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function hn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e=on({},e,{errors:gn(e.errors)})),e}function gn(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new me(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var _n=a.createContext({isTransitioning:!1}),vn=a.createContext(new Map),yn=a.startTransition,bn=o.flushSync;a.useId;function xn(e){yn?yn(e):e()}function Sn(e){bn?bn(e):e()}var Cn=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function wn(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=a.useState(n.state),[s,c]=a.useState(),[l,u]=a.useState({isTransitioning:!1}),[d,f]=a.useState(),[p,m]=a.useState(),[h,g]=a.useState(),_=a.useRef(new Map),{v7_startTransition:v}=r||{},y=a.useCallback(e=>{v?xn(e):e()},[v]),b=a.useCallback((e,t)=>{let{deletedFetchers:r,flushSync:i,viewTransitionOpts:a}=t;e.fetchers.forEach((e,t)=>{e.data!==void 0&&_.current.set(t,e.data)}),r.forEach(e=>_.current.delete(e));let s=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!=`function`;if(!a||s){i?Sn(()=>o(e)):y(()=>o(e));return}if(i){Sn(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:a.currentLocation,nextLocation:a.nextLocation})});let t=n.window.document.startViewTransition(()=>{Sn(()=>o(e))});t.finished.finally(()=>{Sn(()=>{f(void 0),m(void 0),c(void 0),u({isTransitioning:!1})})}),Sn(()=>m(t));return}p?(d&&d.resolve(),p.skipTransition(),g({state:e,currentLocation:a.currentLocation,nextLocation:a.nextLocation})):(c(e),u({isTransitioning:!0,flushSync:!1,currentLocation:a.currentLocation,nextLocation:a.nextLocation}))},[n.window,p,d,_,y]);a.useLayoutEffect(()=>n.subscribe(b),[n,b]),a.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new Cn)},[l]),a.useEffect(()=>{if(d&&s&&n.window){let e=s,t=d.promise,r=n.window.document.startViewTransition(async()=>{y(()=>o(e)),await t});r.finished.finally(()=>{f(void 0),m(void 0),c(void 0),u({isTransitioning:!1})}),m(r)}},[y,s,d,n.window]),a.useEffect(()=>{d&&s&&i.location.key===s.location.key&&d.resolve()},[d,p,i.location,s]),a.useEffect(()=>{!l.isTransitioning&&h&&(c(h.state),u({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),g(void 0))},[l.isTransitioning,h]),a.useEffect(()=>{},[]);let x=a.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:r?.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:r?.preventScrollReset})}),[n]),S=n.basename||`/`,C=a.useMemo(()=>({router:n,navigator:x,static:!1,basename:S}),[n,x,S]),w=a.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return a.useEffect(()=>$t(r,n.future),[r,n.future]),a.createElement(a.Fragment,null,a.createElement(xt.Provider,{value:C},a.createElement(St.Provider,{value:i},a.createElement(vn.Provider,{value:_.current},a.createElement(_n.Provider,{value:l},a.createElement(nn,{basename:S,location:i.location,navigationType:i.historyAction,navigator:x,future:w},i.initialized||n.future.v7_partialHydration?a.createElement(Tn,{routes:n.routes,future:n.future,state:i}):t))))),null)}var Tn=a.memo(En);function En(e){let{routes:t,future:n,state:r}=e;return Pt(t,void 0,r,n)}var Dn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,On=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kn=a.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d}=e,f=sn(e,fn),{basename:p}=a.useContext(Z),m,h=!1;if(typeof l==`string`&&On.test(l)&&(m=l,Dn))try{let e=new URL(window.location.href),t=l.startsWith(`//`)?new URL(e.protocol+l):new URL(l),n=ce(t.pathname,p);t.origin===e.origin&&n!=null?l=n+t.search+t.hash:h=!0}catch{}let g=Tt(l,{relative:r}),_=Mn(l,{replace:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d});function v(e){n&&n(e),e.defaultPrevented||_(e)}return a.createElement(`a`,on({},f,{href:m||g,onClick:h||i?n:v,ref:t,target:c}))}),An;(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`,e.useViewTransitionState=`useViewTransitionState`})(An||={});var jn;(function(e){e.UseFetcher=`useFetcher`,e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(jn||={});function Mn(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:c}=t===void 0?{}:t,l=Ot(),u=$(),d=Nt(e,{relative:s});return a.useCallback(t=>{ln(t,n)&&(t.preventDefault(),l(e,{replace:r===void 0?g(u)===g(d):r,state:i,preventScrollReset:o,relative:s,viewTransition:c}))},[u,l,d,r,i,n,e,o,s,c])}function Nn(e){let t=a.useRef(un(e)),n=a.useRef(!1),r=$(),i=a.useMemo(()=>dn(r.search,n.current?null:t.current),[r.search]),o=Ot();return[i,a.useCallback((e,t)=>{let r=un(typeof e==`function`?e(i):e);n.current=!0,o(`?`+r,t)},[o,i])]}export{en as a,qt as c,Mt as d,Jt as f,i as g,pe as h,Nn as i,Ot as l,C as m,wn as n,tn as o,ie as p,mn as r,$ as s,kn as t,Kt as u};
package/dist/index.html CHANGED
@@ -21,12 +21,13 @@
21
21
  opacity: 1;
22
22
  }
23
23
  </style>
24
- <script type="module" crossorigin src="/assets/index-DAEpOqIo.js"></script>
25
- <link rel="modulepreload" crossorigin href="/assets/vendor-chakra-CRwsfTJx.js">
26
- <link rel="modulepreload" crossorigin href="/assets/vendor-mobx-BJ-2j-ZD.js">
27
- <link rel="modulepreload" crossorigin href="/assets/vendor-react-DBJkD57A.js">
28
- <link rel="modulepreload" crossorigin href="/assets/vendor-graphql-Bj88fl81.js">
29
- <link rel="stylesheet" crossorigin href="/assets/index-BYCbxdf3.css">
24
+ <script type="module" crossorigin src="/assets/index-B99qsqzB.js"></script>
25
+ <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-COnpUsM8.js">
26
+ <link rel="modulepreload" crossorigin href="/assets/vendor-chakra-D7rbFWyN.js">
27
+ <link rel="modulepreload" crossorigin href="/assets/vendor-react-Bj2o6Vez.js">
28
+ <link rel="modulepreload" crossorigin href="/assets/vendor-graphql-CTGm5aGW.js">
29
+ <link rel="modulepreload" crossorigin href="/assets/vendor-mobx-BDip21P_.js">
30
+ <link rel="stylesheet" crossorigin href="/assets/index-Ct5Z_nsb.css">
30
31
  </head>
31
32
  <body>
32
33
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revisium/admin",
3
- "version": "2.5.1",
3
+ "version": "2.6.0-alpha.0",
4
4
  "description": "Revisium is a tool (UI/API) inspired by JSON (JSON Schema) and Git, designed to provide a flexible and low-level headless CMS solution.",
5
5
  "private": false,
6
6
  "homepage": "https://revisium.io",
@@ -11,6 +11,9 @@
11
11
  "url": "https://github.com/revisium/revisium-admin.git"
12
12
  },
13
13
  "type": "module",
14
+ "engines": {
15
+ "node": ">=24.11.1 <25"
16
+ },
14
17
  "files": [
15
18
  "dist"
16
19
  ],
@@ -39,7 +42,7 @@
39
42
  "@apollo/sandbox": "2.7.3",
40
43
  "@atlaskit/drag-and-drop": "0.15.1",
41
44
  "@casl/ability": "6.8.0",
42
- "@chakra-ui/react": "3.30.0",
45
+ "@chakra-ui/react": "3.34.0",
43
46
  "@codemirror/lang-json": "6.0.1",
44
47
  "@codemirror/lang-markdown": "6.3.2",
45
48
  "@emotion/react": "11.14.0",
@@ -48,7 +51,7 @@
48
51
  "@uiw/codemirror-theme-github": "4.25.4",
49
52
  "@uiw/react-codemirror": "4.23.12",
50
53
  "@xyflow/react": "12.10.0",
51
- "@zag-js/menu": "1.33.1",
54
+ "@zag-js/menu": "1.38.2",
52
55
  "ajv": "8.18.0",
53
56
  "date-fns": "3.3.1",
54
57
  "diff": "8.0.3",
@@ -66,13 +69,16 @@
66
69
  "react-top-loading-bar": "2.3.1",
67
70
  "react-use": "17.5.0",
68
71
  "react-virtuoso": "4.12.8",
69
- "vite": "7.2.2",
72
+ "vite": "8.0.7",
70
73
  "vite-plugin-checker": "0.11.0"
71
74
  },
72
75
  "overrides": {
73
- "@zag-js/menu": "1.33.1",
74
76
  "immutable": "^4.3.8",
75
- "minimatch": "^3.1.5"
77
+ "minimatch": "^3.1.5",
78
+ "picomatch": "^4.0.4",
79
+ "brace-expansion": "^1.1.13",
80
+ "yaml": "^2.8.3",
81
+ "lodash": "4.18.1"
76
82
  },
77
83
  "devDependencies": {
78
84
  "@graphql-codegen/cli": "5.0.2",
@@ -88,7 +94,7 @@
88
94
  "@types/uuid": "9.0.8",
89
95
  "@typescript-eslint/eslint-plugin": "8.18.0",
90
96
  "@typescript-eslint/parser": "8.18.0",
91
- "@vitejs/plugin-react-swc": "4.1.0",
97
+ "@vitejs/plugin-react-swc": "4.3.0",
92
98
  "eslint": "8.57.1",
93
99
  "eslint-config-prettier": "9.1.0",
94
100
  "eslint-plugin-prettier": "5.1.3",