@zuplo/editor 1.0.41645730295 → 1.0.41649845274

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/static/css/editor-B8GMDV7_.css +1 -0
  3. package/dist/client/static/css/vs-BG-Ob1o2.css +1 -0
  4. package/dist/client/static/{css.worker-D55UB6Ki.js → css.worker-DwfUZ3fB.js} +39 -32
  5. package/dist/client/static/editor.worker-CRz__AKW.js +33 -0
  6. package/dist/client/static/{html.worker-CFLR1M2C.js → html.worker-D9ugpX4y.js} +31 -24
  7. package/dist/client/static/js/{GraphiQLConsole-CiZuxSuZ.js → GraphiQLConsole-CInQ7oda.js} +4 -4
  8. package/dist/client/static/js/{McpCapabilityFilterDesigner-B6vh7ZUB.js → McpCapabilityFilterDesigner-_TjBb2Hz.js} +1 -1
  9. package/dist/client/static/js/{SchemaReference-NT3Lk0iq.js → SchemaReference-CxBAyRNf.js} +1 -1
  10. package/dist/client/static/js/cssMode-B9qUjDWp.js +1 -0
  11. package/dist/client/static/js/editor.api-CGdV5C19.js +908 -0
  12. package/dist/client/static/js/{freemarker2-Cr-6CaiN.js → freemarker2-BaPatczr.js} +1 -1
  13. package/dist/client/static/js/handlebars-CpkAGWYJ.js +1 -0
  14. package/dist/client/static/js/{hint-BeClDolj.js → hint-BOYONUEE.js} +1 -1
  15. package/dist/client/static/js/{hint-759x8Pev.js → hint-OOdT3SOJ.js} +1 -1
  16. package/dist/client/static/js/html-MpAvlGjl.js +1 -0
  17. package/dist/client/static/js/htmlMode-DurCd9iQ.js +1 -0
  18. package/dist/client/static/js/{info-C8KeefCr.js → info-BJ-pHc23.js} +1 -1
  19. package/dist/client/static/js/{javascript-OATvJvwa.js → javascript-h9ezNNDs.js} +1 -1
  20. package/dist/client/static/js/{jsonMode-Cg3sWCIn.js → jsonMode-BrL02a_z.js} +1 -1
  21. package/dist/client/static/js/{jump-BFyvFOZP.js → jump-CH2YkFff.js} +1 -1
  22. package/dist/client/static/js/{lint-DM0cSBLP.js → lint-9YnF6p8d.js} +1 -1
  23. package/dist/client/static/js/{lint-C95JxE-9.js → lint-DCfZNhwm.js} +1 -1
  24. package/dist/client/static/js/liquid-CLy-ixW4.js +1 -0
  25. package/dist/client/static/js/lspLanguageFeatures-DyH6oKKH.js +4 -0
  26. package/dist/client/static/js/{main-bKCLbbzO.js → main-kz_xA5Yy.js} +223 -222
  27. package/dist/client/static/js/mdx-Cq5OHKUW.js +1 -0
  28. package/dist/client/static/js/{mode-DhAV7B2w.js → mode-BliQRZwK.js} +1 -1
  29. package/dist/client/static/js/{mode-qWdu7sG1.js → mode-CoRhIqhf.js} +1 -1
  30. package/dist/client/static/js/{mode-C-zxMg4F.js → mode-xGSH01RS.js} +1 -1
  31. package/dist/client/static/js/python-JNc1ChAF.js +1 -0
  32. package/dist/client/static/js/razor-C_rGX9VL.js +1 -0
  33. package/dist/client/static/js/{tsMode-Dz48716-.js → tsMode-CmhFTIA8.js} +1 -1
  34. package/dist/client/static/js/typescript-C20saKWT.js +1 -0
  35. package/dist/client/static/js/vs-BQ2r4Ffo.js +58 -0
  36. package/dist/client/static/js/workers-CacBLkD-.js +1 -0
  37. package/dist/client/static/js/xml-DgzQp6ct.js +1 -0
  38. package/dist/client/static/js/yaml-B9tlzDHf.js +1 -0
  39. package/dist/client/static/json.worker-CV9fqkUp.js +65 -0
  40. package/dist/client/static/{ts.worker-CpVDZSME.js → ts.worker-DvEKW8Yk.js} +172 -165
  41. package/dist/client/static/ttf/codicon-DF1abBS2.ttf +0 -0
  42. package/package.json +1 -1
  43. package/dist/client/static/css/editor-DU9oqspw.css +0 -1
  44. package/dist/client/static/editor.worker-C3R1XRkp.js +0 -26
  45. package/dist/client/static/js/cssMode-BuJeyOEs.js +0 -1
  46. package/dist/client/static/js/editor.api2-B7R9rDBl.js +0 -872
  47. package/dist/client/static/js/editor.main-BoFsB6z9.js +0 -6
  48. package/dist/client/static/js/handlebars-CGLtiv4Y.js +0 -1
  49. package/dist/client/static/js/html-CYl76f98.js +0 -1
  50. package/dist/client/static/js/htmlMode-DneqyL-q.js +0 -1
  51. package/dist/client/static/js/liquid-17GZMjqs.js +0 -1
  52. package/dist/client/static/js/lspLanguageFeatures-C5p9SDYR.js +0 -4
  53. package/dist/client/static/js/mdx-COF2T7on.js +0 -1
  54. package/dist/client/static/js/python-DPne7SA3.js +0 -1
  55. package/dist/client/static/js/razor-DdEzywjn.js +0 -1
  56. package/dist/client/static/js/typescript-BLpp7tBH.js +0 -1
  57. package/dist/client/static/js/xml-2Ots2mP2.js +0 -1
  58. package/dist/client/static/js/yaml-DxK_Rysg.js +0 -1
  59. package/dist/client/static/json.worker-DJ19GkSR.js +0 -58
  60. package/dist/client/static/ttf/codicon-ngg6Pgfi.ttf +0 -0
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/codemirror-DualXd8q.js","static/js/rolldown-runtime-BCiCTKAo.js","static/js/show-hint-tH5B1ikp.js","static/js/matchbrackets-wNlFvShq.js","static/js/closebrackets-RaCp3LOI.js","static/js/brace-fold-CvGVZqlg.js","static/js/foldgutter-DMDmmXBR.js","static/js/lint-quylttKd.js","static/js/searchcursor-BVQcGYNk.js","static/js/jump-to-line-Dh-zRt5Y.js","static/js/dialog-CJ-8k4qu.js","static/js/sublime-CKNGwGRF.js","static/js/javascript-C5m9swjn.js","static/js/comment-CYtfOWQV.js","static/js/search-dN6Hktna.js","static/js/hint-759x8Pev.js","static/js/lint-DM0cSBLP.js","static/js/info-C8KeefCr.js","static/js/main-bKCLbbzO.js","static/css/main-T8-gzMzE.css","static/js/SchemaReference-NT3Lk0iq.js","static/js/forEachState-C2rvUFya.js","static/js/info-addon-qxLJlsXZ.js","static/js/jump-BFyvFOZP.js","static/js/mode-DhAV7B2w.js","static/js/mode-indent-DFEvo-nt.js","static/js/hint-BeClDolj.js","static/js/lint-C95JxE-9.js","static/js/mode-qWdu7sG1.js","static/js/mode-C-zxMg4F.js"])))=>i.map(i=>d[i]);
2
- import{a as e,o as t,r as n,t as r}from"./rolldown-runtime-BCiCTKAo.js";import{$ as i,$t as a,A as o,At as s,B as c,Bt as l,C as u,Ct as d,D as f,Dt as p,Et as m,F as h,Ft as g,G as _,Gt as v,H as y,Ht as b,I as x,It as S,J as C,Jt as w,K as T,Kt as E,L as D,Lt as O,M as k,Mt as A,N as j,Nt as M,O as N,Ot as ee,P,Pt as te,Q as ne,Qt as re,R as ie,Rt as ae,S as oe,St as se,T as ce,Tt as le,U as ue,Ut as de,V as F,Vt as fe,W as pe,Wt as me,X as he,Xt as ge,Y as _e,Yt as ve,Z as ye,Zt as be,_ as xe,a as Se,an as Ce,at as I,b as we,bt as Te,c as Ee,ct as De,d as Oe,dt as L,en as ke,et as Ae,f as je,ft as Me,g as Ne,h as Pe,i as Fe,in as Ie,it as Le,j as Re,jt as ze,k as Be,kt as Ve,l as He,lt as Ue,m as We,n as Ge,nn as Ke,nt as qe,o as Je,on as Ye,ot as R,p as Xe,pt as Ze,q as Qe,qt as $e,r as et,rn as z,rt as tt,s as nt,st as B,t as rt,tn as it,tt as at,u as ot,ut as st,v as ct,w as lt,wt as ut,x as dt,xt as ft,y as pt,yt as mt,z as ht,zt as gt}from"./main-bKCLbbzO.js";function _t(e,t){return e===t?!0:ht(e)&&ht(t)||D(e)&&D(t)?_t(e.ofType,t.ofType):!1}function vt(e,t,n){return t===n?!0:ht(n)?ht(t)?vt(e,t.ofType,n.ofType):!1:ht(t)?vt(e,t.ofType,n):D(n)?D(t)?vt(e,t.ofType,n.ofType):!1:!D(t)&&o(n)&&(h(t)||F(t))&&e.isSubType(n,t)}function yt(e,t,n){return t===n?!0:o(t)?o(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):o(n)?e.isSubType(n,t):!1}function bt(e){if(Fe(e),e.__validationErrors)return e.__validationErrors;let t=new St(e);Ct(t),Tt(t),Dt(t);let n=t.getErrors();return e.__validationErrors=n,n}function xt(e){let t=bt(e);if(t.length!==0)throw Error(t.map(e=>e.message).join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/codemirror-DualXd8q.js","static/js/rolldown-runtime-BCiCTKAo.js","static/js/show-hint-tH5B1ikp.js","static/js/matchbrackets-wNlFvShq.js","static/js/closebrackets-RaCp3LOI.js","static/js/brace-fold-CvGVZqlg.js","static/js/foldgutter-DMDmmXBR.js","static/js/lint-quylttKd.js","static/js/searchcursor-BVQcGYNk.js","static/js/jump-to-line-Dh-zRt5Y.js","static/js/dialog-CJ-8k4qu.js","static/js/sublime-CKNGwGRF.js","static/js/javascript-C5m9swjn.js","static/js/comment-CYtfOWQV.js","static/js/search-dN6Hktna.js","static/js/hint-OOdT3SOJ.js","static/js/lint-9YnF6p8d.js","static/js/info-BJ-pHc23.js","static/js/main-kz_xA5Yy.js","static/css/main-T8-gzMzE.css","static/js/SchemaReference-CxBAyRNf.js","static/js/forEachState-C2rvUFya.js","static/js/info-addon-qxLJlsXZ.js","static/js/jump-CH2YkFff.js","static/js/mode-BliQRZwK.js","static/js/mode-indent-DFEvo-nt.js","static/js/hint-BOYONUEE.js","static/js/lint-DCfZNhwm.js","static/js/mode-CoRhIqhf.js","static/js/mode-xGSH01RS.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,o as t,r as n,t as r}from"./rolldown-runtime-BCiCTKAo.js";import{$ as i,$t as a,A as o,At as s,B as c,Bt as l,C as u,Ct as d,D as f,Dt as p,Et as m,F as h,Ft as g,G as _,Gt as v,H as y,Ht as b,I as x,It as S,J as C,Jt as w,K as T,Kt as E,L as D,Lt as O,M as k,Mt as A,N as j,Nt as M,O as N,Ot as ee,P,Pt as te,Q as ne,Qt as re,R as ie,Rt as ae,S as oe,St as se,T as ce,Tt as le,U as ue,Ut as de,V as F,Vt as fe,W as pe,Wt as me,X as he,Xt as ge,Y as _e,Yt as ve,Z as ye,Zt as be,_ as xe,a as Se,an as Ce,at as I,b as we,bt as Te,c as Ee,ct as De,d as Oe,dt as L,en as ke,et as Ae,f as je,ft as Me,g as Ne,h as Pe,i as Fe,in as Ie,it as Le,j as Re,jt as ze,k as Be,kt as Ve,l as He,lt as Ue,m as We,n as Ge,nn as Ke,nt as qe,o as Je,on as Ye,ot as R,p as Xe,pt as Ze,q as Qe,qt as $e,r as et,rn as z,rt as tt,s as nt,st as B,t as rt,tn as it,tt as at,u as ot,ut as st,v as ct,w as lt,wt as ut,x as dt,xt as ft,y as pt,yt as mt,z as ht,zt as gt}from"./main-kz_xA5Yy.js";function _t(e,t){return e===t?!0:ht(e)&&ht(t)||D(e)&&D(t)?_t(e.ofType,t.ofType):!1}function vt(e,t,n){return t===n?!0:ht(n)?ht(t)?vt(e,t.ofType,n.ofType):!1:ht(t)?vt(e,t.ofType,n):D(n)?D(t)?vt(e,t.ofType,n.ofType):!1:!D(t)&&o(n)&&(h(t)||F(t))&&e.isSubType(n,t)}function yt(e,t,n){return t===n?!0:o(t)?o(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):o(n)?e.isSubType(n,t):!1}function bt(e){if(Fe(e),e.__validationErrors)return e.__validationErrors;let t=new St(e);Ct(t),Tt(t),Dt(t);let n=t.getErrors();return e.__validationErrors=n,n}function xt(e){let t=bt(e);if(t.length!==0)throw Error(t.map(e=>e.message).join(`
3
3
 
4
4
  `))}var St=class{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new L(e,{nodes:n}))}getErrors(){return this._errors}};function Ct(e){let t=e.schema,n=t.getQueryType();n?F(n)||e.reportError(`Query root type must be Object type, it cannot be ${I(n)}.`,wt(t,De.QUERY)??n.astNode):e.reportError(`Query root type must be provided.`,t.astNode);let r=t.getMutationType();r&&!F(r)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${I(r)}.`,wt(t,De.MUTATION)??r.astNode);let i=t.getSubscriptionType();i&&!F(i)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${I(i)}.`,wt(t,De.SUBSCRIPTION)??i.astNode)}function wt(e,t){return[e.astNode,...e.extensionASTNodes].flatMap(e=>e?.operationTypes??[]).find(e=>e.operation===t)?.type}function Tt(e){for(let t of e.schema.getDirectives())if(!Pe(t))e.reportError(`Expected directive but got: ${I(t)}.`,t?.astNode);else{Et(e,t),t.locations.length===0&&e.reportError(`Directive @${t.name} must include 1 or more locations.`,t.astNode);for(let n of t.args)Et(e,n),P(n.type)||e.reportError(`The type of @${t.name}(${n.name}:) must be Input Type but got: ${I(n.type)}.`,n.astNode),ue(n)&&n.deprecationReason!=null&&e.reportError(`Required argument @${t.name}(${n.name}:) cannot be deprecated.`,[zt(n.astNode),n.astNode?.type])}}function Et(e,t){t.name.startsWith(`__`)&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Dt(e){let t=It(e),n=e.schema.getTypeMap();for(let r of Object.values(n))ie(r)?(ot(r)||Et(e,r),F(r)||h(r)?(Ot(e,r),kt(e,r)):Qe(r)?Mt(e,r):k(r)?Nt(e,r):j(r)&&(Pt(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${I(r)}.`,r.astNode)}function Ot(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let r of n){Et(e,r),y(r.type)||e.reportError(`The type of ${t.name}.${r.name} must be Output Type but got: ${I(r.type)}.`,r.astNode?.type);for(let n of r.args){let i=n.name;Et(e,n),P(n.type)||e.reportError(`The type of ${t.name}.${r.name}(${i}:) must be Input Type but got: ${I(n.type)}.`,n.astNode?.type),ue(n)&&n.deprecationReason!=null&&e.reportError(`Required argument ${t.name}.${r.name}(${i}:) cannot be deprecated.`,[zt(n.astNode),n.astNode?.type])}}}function kt(e,t){let n=Object.create(null);for(let r of t.getInterfaces())h(r)?t===r?e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Lt(t,r)):n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Lt(t,r)):(n[r.name]=!0,jt(e,t,r),At(e,t,r)):e.reportError(`Type ${I(t)} must only implement Interface types, it cannot implement ${I(r)}.`,Lt(t,r))}function At(e,t,n){let r=t.getFields();for(let i of Object.values(n.getFields())){let a=i.name,o=r[a];if(!o)e.reportError(`Interface field ${n.name}.${a} expected but ${t.name} does not provide it.`,[i.astNode,t.astNode,...t.extensionASTNodes]);else{vt(e.schema,o.type,i.type)||e.reportError(`Interface field ${n.name}.${a} expects type ${I(i.type)} but ${t.name}.${a} is type ${I(o.type)}.`,[i.astNode?.type,o.astNode?.type]);for(let r of i.args){let i=r.name,s=o.args.find(e=>e.name===i);s?_t(r.type,s.type)||e.reportError(`Interface field argument ${n.name}.${a}(${i}:) expects type ${I(r.type)} but ${t.name}.${a}(${i}:) is type ${I(s.type)}.`,[r.astNode?.type,s.astNode?.type]):e.reportError(`Interface field argument ${n.name}.${a}(${i}:) expected but ${t.name}.${a} does not provide it.`,[r.astNode,o.astNode])}for(let r of o.args){let o=r.name;!i.args.find(e=>e.name===o)&&ue(r)&&e.reportError(`Object field ${t.name}.${a} includes required argument ${o} that is missing from the Interface field ${n.name}.${a}.`,[r.astNode,i.astNode])}}}}function jt(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Lt(n,i),...Lt(t,n)])}function Mt(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Rt(t,i.name)):(r[i.name]=!0,F(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${I(i)}.`,Rt(t,String(i))))}function Nt(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let t of n)Et(e,t)}function Pt(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Et(e,r),P(r.type)||e.reportError(`The type of ${t.name}.${r.name} must be Input Type but got: ${I(r.type)}.`,r.astNode?.type),pe(r)&&r.deprecationReason!=null&&e.reportError(`Required input field ${t.name}.${r.name} cannot be deprecated.`,[zt(r.astNode),r.astNode?.type]),t.isOneOf&&Ft(t,r,e)}function Ft(e,t,n){ht(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,t.astNode?.type),t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function It(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let t of o)if(ht(t.type)&&j(t.type.ofType)){let a=t.type.ofType,o=r[a.name];if(n.push(t),o===void 0)i(a);else{let t=n.slice(o),r=t.map(e=>e.name).join(`.`);e.reportError(`Cannot reference Input Object "${a.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[a.name]=void 0}}function Lt(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n==null?r:[n,...r]).flatMap(e=>e.interfaces??[]).filter(e=>e.name.value===t.name)}function Rt(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n==null?r:[n,...r]).flatMap(e=>e.types??[]).filter(e=>e.name.value===t)}function zt(e){return e?.directives?.find(e=>e.name.value===je.name)}function Bt(e,t){switch(t.kind){case R.LIST_TYPE:{let n=Bt(e,t.type);return n&&new u(n)}case R.NON_NULL_TYPE:{let n=Bt(e,t.type);return n&&new lt(n)}case R.NAMED_TYPE:return e.getType(t.name.value)}}var Vt=class{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??Ht,t&&(P(t)&&this._inputTypeStack.push(t),Re(t)&&this._parentTypeStack.push(t),y(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return`TypeInfo`}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case R.SELECTION_SET:{let e=N(this.getType());this._parentTypeStack.push(Re(e)?e:void 0);break}case R.FIELD:{let n=this.getParentType(),r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(y(i)?i:void 0);break}case R.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case R.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(F(n)?n:void 0);break}case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?Bt(t,n):N(this.getType());this._typeStack.push(y(r)?r:void 0);break}case R.VARIABLE_DEFINITION:{let n=Bt(t,e.type);this._inputTypeStack.push(P(n)?n:void 0);break}case R.ARGUMENT:{let t,n,r=this.getDirective()??this.getFieldDef();r&&(t=r.args.find(t=>t.name===e.name.value),t&&(n=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(P(n)?n:void 0);break}case R.LIST:{let e=Be(this.getInputType()),t=D(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(P(t)?t:void 0);break}case R.OBJECT_FIELD:{let t=N(this.getInputType()),n,r;j(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(P(n)?n:void 0);break}case R.ENUM:{let t=N(this.getInputType()),n;k(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case R.SELECTION_SET:this._parentTypeStack.pop();break;case R.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case R.DIRECTIVE:this._directive=null;break;case R.OPERATION_DEFINITION:case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:this._typeStack.pop();break;case R.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case R.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.LIST:case R.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.ENUM:this._enumValue=null}}};function Ht(e,t,n){let r=n.name.value;if(r===Je.name&&e.getQueryType()===t)return Je;if(r===nt.name&&e.getQueryType()===t)return nt;if(r===Ee.name&&Re(t))return Ee;if(F(t)||h(t))return t.getFields()[r]}function Ut(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=he(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),st(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=he(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}function Wt(e){return e.kind===R.OPERATION_DEFINITION||e.kind===R.FRAGMENT_DEFINITION}function Gt(e){return e.kind===R.SCHEMA_DEFINITION||Kt(e)||e.kind===R.DIRECTIVE_DEFINITION}function Kt(e){return e.kind===R.SCALAR_TYPE_DEFINITION||e.kind===R.OBJECT_TYPE_DEFINITION||e.kind===R.INTERFACE_TYPE_DEFINITION||e.kind===R.UNION_TYPE_DEFINITION||e.kind===R.ENUM_TYPE_DEFINITION||e.kind===R.INPUT_OBJECT_TYPE_DEFINITION}function qt(e){return e.kind===R.SCHEMA_EXTENSION||e.kind===R.DIRECTIVE_EXTENSION||Jt(e)}function Jt(e){return e.kind===R.SCALAR_TYPE_EXTENSION||e.kind===R.OBJECT_TYPE_EXTENSION||e.kind===R.INTERFACE_TYPE_EXTENSION||e.kind===R.UNION_TYPE_EXTENSION||e.kind===R.ENUM_TYPE_EXTENSION||e.kind===R.INPUT_OBJECT_TYPE_EXTENSION}function Yt(e){return{Document(t){for(let n of t.definitions)if(!Wt(n)){let t=n.kind===R.SCHEMA_DEFINITION||n.kind===R.SCHEMA_EXTENSION?`schema`:`"`+n.name.value+`"`;e.reportError(new L(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function Xt(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let r=e.getSchema(),i=t.name.value,a=tt(`to use an inline fragment on`,Zt(r,n,i));a===``&&(a=tt(Qt(n,i))),e.reportError(new L(`Cannot query field "${i}" on type "${n.name}".`+a,{nodes:t}))}}}}function Zt(e,t,n){if(!o(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(let e of a.getInterfaces())e.getFields()[n]&&(r.add(e),i[e.name]=(i[e.name]??0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return r===0?h(t)&&e.isSubType(t,n)?-1:h(n)&&e.isSubType(n,t)?1:Ae(t.name,n.name):r}).map(e=>e.name)}function Qt(e,t){if(F(e)||h(e)){let n=Object.keys(e.getFields());return i(t,n)}return[]}function $t(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=Bt(e.getSchema(),n);if(t&&!Re(t)){let t=C(n);e.reportError(new L(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=Bt(e.getSchema(),t.typeCondition);if(n&&!Re(n)){let n=C(t.typeCondition);e.reportError(new L(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function en(e){return{...tn(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),a=e.getParentType();if(!n&&r&&a){let n=t.name.value,o=r.args.map(e=>e.name),s=i(n,o);e.reportError(new L(`Unknown argument "${n}" on field "${a.name}.${r.name}".`+tt(s),{nodes:t}))}}}}function tn(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ne;for(let e of r)t[e.name]=e.args.map(e=>e.name);let a=e.getDocument().definitions;for(let e of a)if(e.kind===R.DIRECTIVE_DEFINITION){let n=e.arguments??[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,a=t[r];if(n.arguments&&a)for(let t of n.arguments){let n=t.name.value;if(!a.includes(n)){let o=i(n,a);e.reportError(new L(`Unknown argument "${n}" on directive "@${r}".`+tt(o),{nodes:t}))}}return!1}}}function nn(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ne;for(let e of r)t[e.name]=e.locations;let i=e.getDocument().definitions;for(let e of i)e.kind===R.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,r,i,a,o){let s=n.name.value,c=t[s];if(!c){e.reportError(new L(`Unknown directive "@${s}".`,{nodes:n}));return}let l=rn(o);l&&!c.includes(l)&&e.reportError(new L(`Directive "@${s}" may not be used on ${l}.`,{nodes:n}))}}}function rn(e){let t=e[e.length-1];switch(`kind`in t||Me(!1),t.kind){case R.OPERATION_DEFINITION:return an(t.operation);case R.FIELD:return B.FIELD;case R.FRAGMENT_SPREAD:return B.FRAGMENT_SPREAD;case R.INLINE_FRAGMENT:return B.INLINE_FRAGMENT;case R.FRAGMENT_DEFINITION:return B.FRAGMENT_DEFINITION;case R.VARIABLE_DEFINITION:return B.VARIABLE_DEFINITION;case R.SCHEMA_DEFINITION:case R.SCHEMA_EXTENSION:return B.SCHEMA;case R.SCALAR_TYPE_DEFINITION:case R.SCALAR_TYPE_EXTENSION:return B.SCALAR;case R.OBJECT_TYPE_DEFINITION:case R.OBJECT_TYPE_EXTENSION:return B.OBJECT;case R.FIELD_DEFINITION:return B.FIELD_DEFINITION;case R.INTERFACE_TYPE_DEFINITION:case R.INTERFACE_TYPE_EXTENSION:return B.INTERFACE;case R.UNION_TYPE_DEFINITION:case R.UNION_TYPE_EXTENSION:return B.UNION;case R.ENUM_TYPE_DEFINITION:case R.ENUM_TYPE_EXTENSION:return B.ENUM;case R.ENUM_VALUE_DEFINITION:return B.ENUM_VALUE;case R.INPUT_OBJECT_TYPE_DEFINITION:case R.INPUT_OBJECT_TYPE_EXTENSION:return B.INPUT_OBJECT;case R.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return`kind`in t||Me(!1),t.kind===R.INPUT_OBJECT_TYPE_DEFINITION?B.INPUT_FIELD_DEFINITION:B.ARGUMENT_DEFINITION}case R.DIRECTIVE_DEFINITION:case R.DIRECTIVE_EXTENSION:return B.DIRECTIVE_DEFINITION;default:Me(!1,`Unexpected kind: `+I(t.kind))}}function an(e){switch(e){case De.QUERY:return B.QUERY;case De.MUTATION:return B.MUTATION;case De.SUBSCRIPTION:return B.SUBSCRIPTION}}function on(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new L(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function sn(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)Kt(t)&&(r[t.name.value]=!0);let a=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,s,c,l){let u=t.name.value;if(!n[u]&&!r[u]){let n=l[2]??s,r=n!=null&&ln(n);if(r&&cn.includes(u))return;let o=i(u,r?cn.concat(a):a);e.reportError(new L(`Unknown type "${u}".`+tt(o),{nodes:t}))}}}}var cn=[...pt,...He].map(e=>e.name);function ln(e){return`kind`in e&&(Gt(e)||qt(e))}function un(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===R.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new L(`This anonymous operation must be the only defined operation.`,{nodes:n}))}}}function dn(e){let t=e.getSchema(),n=t?.astNode??t?.getQueryType()??t?.getMutationType()??t?.getSubscriptionType(),r=0;return{SchemaDefinition(t){n?e.reportError(new L(`Cannot define a new schema within a schema extension.`,{nodes:t})):(r>0&&e.reportError(new L(`Must provide only one schema definition.`,{nodes:t})),++r)}}}var fn=3;function pn(e){function t(n,r=Object.create(null),i=0){if(n.kind===R.FRAGMENT_SPREAD){let a=n.name.value;if(r[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return r[a]=!0,t(o,r,i)}finally{r[a]=void 0}}if(n.kind===R.FIELD&&(n.name.value===`fields`||n.name.value===`interfaces`||n.name.value===`possibleTypes`||n.name.value===`inputFields`)&&(i++,i>=fn))return!0;if(`selectionSet`in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,r,i))return!0}return!1}return{Field(n){if((n.name.value===`__schema`||n.name.value===`__type`)&&t(n))return e.reportError(new L(`Maximum introspection depth exceeded`,{nodes:[n]})),!1}}}function mn(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(e){return i(e),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let s=e.getFragmentSpreads(a.selectionSet);if(s.length!==0){r[o]=n.length;for(let t of s){let a=t.name.value,o=r[a];if(n.push(t),o===void 0){let t=e.getFragment(a);t&&i(t)}else{let t=n.slice(o),r=t.slice(0,-1).map(e=>`"`+e.name.value+`"`).join(`, `);e.reportError(new L(`Cannot spread fragment "${a}" within itself`+(r===``?`.`:` via ${r}.`),{nodes:t}))}n.pop()}r[o]=void 0}}}function hn(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let r=i.name.value;t[r]!==!0&&e.reportError(new L(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function gn(e){let t=[],n=[];return{OperationDefinition(e){return t.push(e),!1},FragmentDefinition(e){return n.push(e),!1},Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;r[n]!==!0&&e.reportError(new L(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function _n(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:e}of i)r[e.name.value]=!0;for(let i of t){let t=i.variable.name.value;r[t]!==!0&&e.reportError(new L(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function vn(e){switch(e.kind){case R.OBJECT:return{...e,fields:yn(e.fields)};case R.LIST:return{...e,values:e.values.map(vn)};case R.INT:case R.FLOAT:case R.STRING:case R.BOOLEAN:case R.NULL:case R.ENUM:case R.VARIABLE:return e}}function yn(e){return e.map(e=>({...e,value:vn(e.value)})).sort((e,t)=>Ae(e.name.value,t.name.value))}function bn(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+bn(t)).join(` and `):e}function xn(e){let t=new In,n=new Ln,r=new Map;return{SelectionSet(i){let a=Sn(e,r,t,n,e.getParentType(),i);for(let[[t,n],r,i]of a){let a=bn(n);e.reportError(new L(`Fields "${t}" conflict because ${a}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(i)}))}}}}function Sn(e,t,n,r,i,a){let o=[],[s,c]=Mn(e,t,i,a);if(En(e,o,t,n,r,s),c.length!==0)for(let i=0;i<c.length;i++){Cn(e,o,t,n,r,!1,s,c[i]);for(let a=i+1;a<c.length;a++)wn(e,o,t,n,r,!1,c[i],c[a])}return o}function Cn(e,t,n,r,i,a,o,s){if(r.has(o,s,a))return;r.add(o,s,a);let c=e.getFragment(s);if(!c)return;let[l,u]=Nn(e,n,c);if(o!==l){Dn(e,t,n,r,i,a,o,l);for(let s of u)Cn(e,t,n,r,i,a,o,s)}}function wn(e,t,n,r,i,a,o,s){if(o===s||i.has(o,s,a))return;i.add(o,s,a);let c=e.getFragment(o),l=e.getFragment(s);if(!c||!l)return;let[u,d]=Nn(e,n,c),[f,p]=Nn(e,n,l);Dn(e,t,n,r,i,a,u,f);for(let s of p)wn(e,t,n,r,i,a,o,s);for(let o of d)wn(e,t,n,r,i,a,o,s)}function Tn(e,t,n,r,i,a,o,s,c){let l=[],[u,d]=Mn(e,t,a,o),[f,p]=Mn(e,t,s,c);Dn(e,l,t,n,r,i,u,f);for(let a of p)Cn(e,l,t,n,r,i,u,a);for(let a of d)Cn(e,l,t,n,r,i,f,a);for(let a of d)for(let o of p)wn(e,l,t,n,r,i,a,o);return l}function En(e,t,n,r,i,a){for(let[o,s]of Object.entries(a))if(s.length>1)for(let a=0;a<s.length;a++)for(let c=a+1;c<s.length;c++){let l=On(e,n,r,i,!1,o,s[a],s[c]);l&&t.push(l)}}function Dn(e,t,n,r,i,a,o,s){for(let[c,l]of Object.entries(o)){let o=s[c];if(o)for(let s of l)for(let l of o){let o=On(e,n,r,i,a,c,s,l);o&&t.push(o)}}}function On(e,t,n,r,i,a,o,s){let[c,l,u]=o,[d,f,p]=s,m=i||c!==d&&F(c)&&F(d);if(!m){let e=l.name.value,t=f.name.value;if(e!==t)return[[a,`"${e}" and "${t}" are different fields`],[l],[f]];if(!kn(l,f))return[[a,`they have differing arguments`],[l],[f]]}let h=u?.type,g=p?.type;if(h&&g&&jn(h,g))return[[a,`they return conflicting types "${I(h)}" and "${I(g)}"`],[l],[f]];let _=l.selectionSet,v=f.selectionSet;if(_&&v)return Fn(Tn(e,t,n,r,m,N(h),_,N(g),v),a,l,f)}function kn(e,t){let n=e.arguments,r=t.arguments;if(n===void 0||n.length===0)return r===void 0||r.length===0;if(r===void 0||r.length===0||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{let t=e.value,n=i.get(e.name.value);return n!==void 0&&An(t)===An(n)})}function An(e){return C(vn(e))}function jn(e,t){return D(e)?!D(t)||jn(e.ofType,t.ofType):D(t)?!0:ht(e)?!ht(t)||jn(e.ofType,t.ofType):ht(t)?!0:x(e)||x(t)?e!==t:!1}function Mn(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);Pn(e,n,r,a,o);let s=[a,Object.keys(o)];return t.set(r,s),s}function Nn(e,t,n){return t.get(n.selectionSet)||Mn(e,t,Bt(e.getSchema(),n.typeCondition),n.selectionSet)}function Pn(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case R.FIELD:{let e=a.name.value,n;(F(t)||h(t))&&(n=t.getFields()[e]);let i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case R.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case R.INLINE_FRAGMENT:{let n=a.typeCondition;Pn(e,n?Bt(e.getSchema(),n):t,a.selectionSet,r,i);break}}}function Fn(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}var In=class{constructor(){this._data=new Map}has(e,t,n){let r=this._data.get(e)?.get(t);return r===void 0?!1:n?!0:n===r}add(e,t,n){let r=this._data.get(e);r===void 0?this._data.set(e,new Map([[t,n]])):r.set(t,n)}},Ln=class{constructor(){this._orderedPairSet=new In}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}};function Rn(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(Re(n)&&Re(r)&&!yt(e.getSchema(),n,r)){let i=I(r),a=I(n);e.reportError(new L(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=zn(e,n),i=e.getParentType();if(r&&i&&!yt(e.getSchema(),r,i)){let a=I(i),o=I(r);e.reportError(new L(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function zn(e,t){let n=e.getFragment(t);if(n){let t=Bt(e.getSchema(),n.typeCondition);if(Re(t))return t}}function Bn(e){let t=e.getSchema(),n=Object.create(null);for(let t of e.getDocument().definitions)Kt(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){let a=r.name.value,o=n[a],s=t?.getType(a),c;if(o?c=Vn[o.kind]:s&&(c=Hn(s)),c){if(c!==r.kind){let t=Un(r.kind);e.reportError(new L(`Cannot extend non-${t} type "${a}".`,{nodes:o?[o,r]:r}))}}else{let o=Object.keys({...n,...t?.getTypeMap()}),s=i(a,o);e.reportError(new L(`Cannot extend type "${a}" because it is not defined.`+tt(s),{nodes:r.name}))}}}var Vn={[R.SCALAR_TYPE_DEFINITION]:R.SCALAR_TYPE_EXTENSION,[R.OBJECT_TYPE_DEFINITION]:R.OBJECT_TYPE_EXTENSION,[R.INTERFACE_TYPE_DEFINITION]:R.INTERFACE_TYPE_EXTENSION,[R.UNION_TYPE_DEFINITION]:R.UNION_TYPE_EXTENSION,[R.ENUM_TYPE_DEFINITION]:R.ENUM_TYPE_EXTENSION,[R.INPUT_OBJECT_TYPE_DEFINITION]:R.INPUT_OBJECT_TYPE_EXTENSION};function Hn(e){if(_(e))return R.SCALAR_TYPE_EXTENSION;if(F(e))return R.OBJECT_TYPE_EXTENSION;if(h(e))return R.INTERFACE_TYPE_EXTENSION;if(Qe(e))return R.UNION_TYPE_EXTENSION;if(k(e))return R.ENUM_TYPE_EXTENSION;if(j(e))return R.INPUT_OBJECT_TYPE_EXTENSION;Me(!1,`Unexpected type: `+I(e))}function Un(e){switch(e){case R.SCALAR_TYPE_EXTENSION:return`scalar`;case R.OBJECT_TYPE_EXTENSION:return`object`;case R.INTERFACE_TYPE_EXTENSION:return`interface`;case R.UNION_TYPE_EXTENSION:return`union`;case R.ENUM_TYPE_EXTENSION:return`enum`;case R.INPUT_OBJECT_TYPE_EXTENSION:return`input object`;default:Me(!1,`Unexpected kind: `+I(e))}}function Wn(e){return{...Gn(e),Field:{leave(t){let n=e.getFieldDef();if(!n)return!1;let r=new Set(t.arguments?.map(e=>e.name.value));for(let i of n.args)if(!r.has(i.name)&&ue(i)){let r=I(i.type);e.reportError(new L(`Field "${n.name}" argument "${i.name}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}function Gn(e){let t=Object.create(null),n=e.getSchema()?.getDirectives()??Ne;for(let e of n)t[e.name]=qe(e.args.filter(ue),e=>e.name);let r=e.getDocument().definitions;for(let e of r)if(e.kind===R.DIRECTIVE_DEFINITION){let n=e.arguments??[];t[e.name.value]=qe(n.filter(Kn),e=>e.name.value)}return{Directive:{leave(n){let r=n.name.value,i=t[r];if(i){let t=n.arguments??[],a=new Set(t.map(e=>e.name.value));for(let[t,o]of Object.entries(i))if(!a.has(t)){let i=T(o.type)?I(o.type):C(o.type);e.reportError(new L(`Directive "@${r}" argument "${t}" of type "${i}" is required, but it was not provided.`,{nodes:n}))}}}}}}function Kn(e){return e.type.kind===R.NON_NULL_TYPE&&e.defaultValue==null}function qn(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(x(N(n))){if(r){let i=t.name.value,a=I(n);e.reportError(new L(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let r=t.name.value,i=I(n);e.reportError(new L(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}else if(r.selections.length===0){let r=t.name.value,i=I(n);e.reportError(new L(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}}}}function Jn(e,t,n){let r=Object.create(null),i=t.arguments??[],a=qe(i,e=>e.name.value);for(let i of e.args){let e=i.name,o=i.type,s=a[e];if(!s){if(i.defaultValue!==void 0)r[e]=i.defaultValue;else if(ht(o))throw new L(`Argument "${e}" of required type "${I(o)}" was not provided.`,{nodes:t});continue}let c=s.value,l=c.kind===R.NULL;if(c.kind===R.VARIABLE){let t=c.name.value;if(n==null||!Xn(n,t)){if(i.defaultValue!==void 0)r[e]=i.defaultValue;else if(ht(o))throw new L(`Argument "${e}" of required type "${I(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:c});continue}l=n[t]==null}if(l&&ht(o))throw new L(`Argument "${e}" of non-null type "${I(o)}" must not be null.`,{nodes:c});let u=et(c,o,n);if(u===void 0)throw new L(`Argument "${e}" has invalid value ${C(c)}.`,{nodes:c});r[e]=u}return{...r}}function Yn(e,t,n){let r=t.directives?.find(t=>t.name.value===e.name);if(r)return Jn(e,r,n)}function Xn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Zn(e,t,n,r,i){let a=new Map;return Qn(e,t,n,r,i,a,new Set),a}function Qn(e,t,n,r,i,a,o){for(let s of i.selections)switch(s.kind){case R.FIELD:{if(!$n(n,s))continue;let e=tr(s),t=a.get(e);t===void 0?a.set(e,[s]):t.push(s);break}case R.INLINE_FRAGMENT:if(!$n(n,s)||!er(e,s,r))continue;Qn(e,t,n,r,s.selectionSet,a,o);break;case R.FRAGMENT_SPREAD:{let i=s.name.value;if(o.has(i)||!$n(n,s))continue;o.add(i);let c=t[i];if(!c||!er(e,c,r))continue;Qn(e,t,n,r,c.selectionSet,a,o);break}}}function $n(e,t){return Yn(We,t,e)?.if!==!0&&Yn(Xe,t,e)?.if!==!1}function er(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=Bt(e,r);return i===n?!0:o(i)?e.isSubType(i,n):!1}function tr(e){return e.alias?e.alias.value:e.name.value}function nr(e){return{OperationDefinition(t){if(t.operation===`subscription`){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),s=Object.create(null);for(let e of o.definitions)e.kind===R.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let c=Zn(n,s,a,r,t.selectionSet);if(c.size>1){let t=[...c.values()].slice(1).flat();e.reportError(new L(i==null?`Anonymous Subscription must select only one top level field.`:`Subscription "${i}" must select only one top level field.`,{nodes:t}))}for(let t of c.values())t[0].name.value.startsWith(`__`)&&e.reportError(new L(i==null?`Anonymous Subscription must not select an introspection top level field.`:`Subscription "${i}" must not select an introspection top level field.`,{nodes:t}))}}}}}function rr(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);i===void 0?n.set(e,[r]):i.push(r)}return n}function ir(e){return{DirectiveDefinition(e){let t=e.arguments??[];return n(`@${e.name.value}`,t)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){let t=e.name.value,r=e.fields??[];for(let e of r){let r=e.name.value,i=e.arguments??[];n(`${t}.${r}`,i)}return!1}function n(t,n){let r=rr(n,e=>e.name.value);for(let[n,i]of r)i.length>1&&e.reportError(new L(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function ar(e){return{Field:t,Directive:t};function t(t){let n=rr(t.arguments??[],e=>e.name.value);for(let[t,r]of n)r.length>1&&e.reportError(new L(`There can be only one argument named "${t}".`,{nodes:r.map(e=>e.name)}))}}function or(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i))e.reportError(new L(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));else return t[i]?e.reportError(new L(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function sr(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ne;for(let e of r)t[e.name]=!e.isRepeatable;let i=e.getDocument().definitions;for(let e of i)e.kind===R.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);let a=Object.create(null),o=Object.create(null),s=Object.create(null);return{enter(n){if(!(`directives`in n)||!n.directives)return;let r;if(n.kind===R.SCHEMA_DEFINITION||n.kind===R.SCHEMA_EXTENSION)r=a;else if(Kt(n)||Jt(n)){let e=n.name.value;r=o[e],r===void 0&&(o[e]=r=Object.create(null))}else if(n.kind===R.DIRECTIVE_DEFINITION||n.kind===R.DIRECTIVE_EXTENSION){let e=n.name.value;r=s[e],r===void 0&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(let i of n.directives){let n=i.name.value;t[n]&&(r[n]?e.reportError(new L(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function cr(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){let i=t.name.value;r[i]||(r[i]=Object.create(null));let a=t.values??[],o=r[i];for(let t of a){let r=t.name.value,a=n[i];k(a)&&a.getValue(r)?e.reportError(new L(`Enum value "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):o[r]?e.reportError(new L(`Enum value "${i}.${r}" can only be defined once.`,{nodes:[o[r],t.name]})):o[r]=t.name}return!1}}function lr(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){let i=t.name.value;r[i]||(r[i]=Object.create(null));let a=t.fields??[],o=r[i];for(let t of a){let r=t.name.value;ur(n[i],r)?e.reportError(new L(`Field "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):o[r]?e.reportError(new L(`Field "${i}.${r}" can only be defined once.`,{nodes:[o[r],t.name]})):o[r]=t.name}return!1}}function ur(e,t){return F(e)||h(e)||j(e)?e.getFields()[t]!=null:!1}function dr(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new L(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function fr(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||Me(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new L(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function pr(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new L(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function mr(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){let i=t.operationTypes??[];for(let t of i){let i=t.operation,a=n[i];r[i]?e.reportError(new L(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):a?e.reportError(new L(`There can be only one ${i} type in schema.`,{nodes:[a,t]})):n[i]=t}return!1}}function hr(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;if(n!=null&&n.getType(i))e.reportError(new L(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}));else return t[i]?e.reportError(new L(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}function gr(e){return{OperationDefinition(t){let n=rr(t.variableDefinitions??[],e=>e.variable.name.value);for(let[t,r]of n)r.length>1&&e.reportError(new L(`There can be only one variable named "$${t}".`,{nodes:r.map(e=>e.variable.name)}))}}}function _r(e){return{ListValue(t){let n=Be(e.getParentInputType());if(!D(n))return vr(e,t),!1},ObjectValue(t){let n=N(e.getInputType());if(!j(n))return vr(e,t),!1;let r=qe(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&pe(i)){let r=I(i.type);e.reportError(new L(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&yr(e,t,n,r)},ObjectField(t){let n=N(e.getParentInputType());if(!e.getInputType()&&j(n)){let r=i(t.name.value,Object.keys(n.getFields()));e.reportError(new L(`Field "${t.name.value}" is not defined by type "${n.name}".`+tt(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();ht(n)&&e.reportError(new L(`Expected value of type "${I(n)}", found ${C(t)}.`,{nodes:t}))},EnumValue:t=>vr(e,t),IntValue:t=>vr(e,t),FloatValue:t=>vr(e,t),StringValue:t=>vr(e,t),BooleanValue:t=>vr(e,t)}}function vr(e,t){let n=e.getInputType();if(!n)return;let r=N(n);if(x(r))try{if(r.parseLiteral(t,void 0)===void 0){let r=I(n);e.reportError(new L(`Expected value of type "${r}", found ${C(t)}.`,{nodes:t}))}}catch(r){let i=I(n);r instanceof L?e.reportError(r):e.reportError(new L(`Expected value of type "${i}", found ${C(t)}; `+r.message,{nodes:t,originalError:r}))}else{let r=I(n);e.reportError(new L(`Expected value of type "${r}", found ${C(t)}.`,{nodes:t}))}}function yr(e,t,n,r){let i=Object.keys(r);if(i.length!==1){e.reportError(new L(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let a=r[i[0]]?.value;a&&a.kind!==R.NULL||e.reportError(new L(`Field "${n.name}.${i[0]}" must be non-null.`,{nodes:[t]}))}function br(e){return{VariableDefinition(t){let n=Bt(e.getSchema(),t.type);if(n!==void 0&&!P(n)){let n=t.variable.name.value,r=C(t.type);e.reportError(new L(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function xr(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:n,type:i,defaultValue:a,parentType:o}of r){let r=n.name.value,s=t[r];if(s&&i){let t=e.getSchema(),l=Bt(t,s.type);if(l&&!Sr(t,l,s.defaultValue,i,a)){let t=I(l),a=I(i);e.reportError(new L(`Variable "$${r}" of type "${t}" used in position expecting type "${a}".`,{nodes:[s,n]}))}j(o)&&o.isOneOf&&c(l)&&e.reportError(new L(`Variable "$${r}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${o}".`,{nodes:[s,n]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Sr(e,t,n,r,i){if(ht(r)&&!ht(t)){if((n==null||n.kind===R.NULL)&&i===void 0)return!1;let a=r.ofType;return vt(e,t,a)}return vt(e,t,r)}var Cr=Object.freeze([pn]),wr=Object.freeze([Yt,pr,un,nr,sn,$t,br,qn,Xt,dr,on,gn,Rn,mn,gr,hn,_n,nn,sr,en,ar,_r,Wn,xr,xn,fr,...Cr]);Object.freeze([dn,mr,hr,cr,lr,ir,or,sn,nn,sr,Bn,tn,ar,fr,Gn]);var Tr=class{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return`ASTValidationContext`}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(let e of this.getDocument().definitions)e.kind===R.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];let n=[e],r;for(;r=n.pop();)for(let e of r.selections)e.kind===R.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];let n=Object.create(null),r=[e.selectionSet],i;for(;i=r.pop();)for(let e of this.getFragmentSpreads(i)){let i=e.name.value;if(n[i]!==!0){n[i]=!0;let e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}},Er=class extends Tr{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return`ValidationContext`}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new Vt(this._schema);ye(e,Ut(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(let n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}},Dr=at(Ue,e=>e.filter(e=>e!==`description`));function Or(e,t,n=wr,r,i=new Vt(e)){let a=r?.maxErrors??100;t||Ze(!1,`Must provide document.`),xt(e);let o=Object.freeze({}),s=[],c=new Er(e,t,i,e=>{if(s.length>=a)throw s.push(new L(`Too many validation errors, error limit reached. Validation aborted.`)),o;s.push(e)}),l=ne(n.map(e=>e(c)));try{ye(t,Ut(i,l),Dr)}catch(e){if(e!==o)throw e}return s}function kr(e){return{Field(t){let n=e.getFieldDef(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getParentType();i??Me(!1),e.reportError(new L(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new L(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),a=e.getFieldDef();i!=null&&a!=null||Me(!1),e.reportError(new L(`Field "${i.name}.${a.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=N(e.getParentInputType());if(j(n)){let r=n.getFields()[t.name.value],i=r?.deprecationReason;i!=null&&e.reportError(new L(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n?.deprecationReason;if(n&&r!=null){let i=N(e.getInputType());i??Me(!1),e.reportError(new L(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function Ar(e){let t=Object.keys(e),n=t.length,r=Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function jr(e,t){return Mr(t,Pr(e.string))}function Mr(e,t){return!t||t.trim()===``||t.trim()===`:`||t.trim()===`{`?Nr(e,e=>!e.isDeprecated):Nr(Nr(e.map(e=>({proximity:Fr(Pr(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>+!!e.entry.isDeprecated-!!t.entry.isDeprecated||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry)}function Nr(e,t){let n=e.filter(t);return n.length===0?e:n}function Pr(e){return e.toLowerCase().replaceAll(/\W/g,``)}function Fr(e,t){let n=Ir(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function Ir(e,t){let n,r,i=[],a=e.length,o=t.length;for(n=0;n<=a;n++)i[n]=[n];for(r=1;r<=o;r++)i[0][r]=r;for(n=1;n<=a;n++)for(r=1;r<=o;r++){let a=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+a),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+a))}return i[a][o]}var Lr=e=>` {\n $${e??1}\n}`,Rr=(e,t,n)=>{if(!t)return n??e;let r=N(t);return F(r)||j(r)||D(r)||o(r)?e+Lr():n??e},zr=(e,t,n)=>D(t)?e+`[${Rr(``,N(t.ofType),`$1`)}]`:Rr(e,t,n),Br=e=>{let t=e.args.filter(e=>e.type.toString().endsWith(`!`));if(t.length)return e.name+`(${t.map((e,t)=>`${e.name}: $${t+1}`)}) ${Rr(``,e.type,`
5
5
  `)}`},Vr;(function(e){function t(e){return typeof e==`string`}e.is=t})(Vr||={});var Hr;(function(e){function t(e){return typeof e==`string`}e.is=t})(Hr||={});var Ur;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(Ur||={});var Wr;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(Wr||={});var Gr;(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Wr.MAX_VALUE),t===Number.MAX_VALUE&&(t=Wr.MAX_VALUE),{line:e,character:t}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.uinteger(t.line)&&V.uinteger(t.character)}e.is=n})(Gr||={});var Kr;(function(e){function t(e,t,n,r){if(V.uinteger(e)&&V.uinteger(t)&&V.uinteger(n)&&V.uinteger(r))return{start:Gr.create(e,t),end:Gr.create(n,r)};if(Gr.is(e)&&Gr.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&Gr.is(t.start)&&Gr.is(t.end)}e.is=n})(Kr||={});var qr;(function(e){function t(e,t){return{uri:e,range:t}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&Kr.is(t.range)&&(V.string(t.uri)||V.undefined(t.uri))}e.is=n})(qr||={});var Jr;(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&Kr.is(t.targetRange)&&V.string(t.targetUri)&&Kr.is(t.targetSelectionRange)&&(Kr.is(t.originSelectionRange)||V.undefined(t.originSelectionRange))}e.is=n})(Jr||={});var Yr;(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.numberRange(t.red,0,1)&&V.numberRange(t.green,0,1)&&V.numberRange(t.blue,0,1)&&V.numberRange(t.alpha,0,1)}e.is=n})(Yr||={});var Xr;(function(e){function t(e,t){return{range:e,color:t}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&Kr.is(t.range)&&Yr.is(t.color)}e.is=n})(Xr||={});var Zr;(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.string(t.label)&&(V.undefined(t.textEdit)||oi.is(t.textEdit))&&(V.undefined(t.additionalTextEdits)||V.typedArray(t.additionalTextEdits,oi.is))}e.is=n})(Zr||={});var Qr;(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(Qr||={});var $r;(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return V.defined(n)&&(o.startCharacter=n),V.defined(r)&&(o.endCharacter=r),V.defined(i)&&(o.kind=i),V.defined(a)&&(o.collapsedText=a),o}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.uinteger(t.startLine)&&V.uinteger(t.endLine)&&(V.undefined(t.startCharacter)||V.uinteger(t.startCharacter))&&(V.undefined(t.endCharacter)||V.uinteger(t.endCharacter))&&(V.undefined(t.kind)||V.string(t.kind))}e.is=n})($r||={});var ei;(function(e){function t(e,t){return{location:e,message:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&qr.is(t.location)&&V.string(t.message)}e.is=n})(ei||={});var ti;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ti||={});var ni;(function(e){e.Unnecessary=1,e.Deprecated=2})(ni||={});var ri;(function(e){function t(e){let t=e;return V.objectLiteral(t)&&V.string(t.href)}e.is=t})(ri||={});var ii;(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return V.defined(n)&&(o.severity=n),V.defined(r)&&(o.code=r),V.defined(i)&&(o.source=i),V.defined(a)&&(o.relatedInformation=a),o}e.create=t;function n(e){let t=e;return V.defined(t)&&Kr.is(t.range)&&(V.string(t.message)||Si.is(t.message))&&(V.number(t.severity)||V.undefined(t.severity))&&(V.integer(t.code)||V.string(t.code)||V.undefined(t.code))&&(V.undefined(t.codeDescription)||V.string(t.codeDescription?.href))&&(V.string(t.source)||V.undefined(t.source))&&(V.undefined(t.relatedInformation)||V.typedArray(t.relatedInformation,ei.is))}e.is=n;function r(e){return V.string(e.message)}e.is3_17=r;function i(e){if(V.string(e.message))return e.message;if(Si.is(e.message))return e.message.value;throw Error(`Unknown message type ${typeof e.message}`)}e.getMessageString=i})(ii||={});var ai;(function(e){function t(e,t,...n){let r={title:e,command:t};return V.defined(n)&&n.length>0&&(r.arguments=n),r}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.title)&&(t.tooltip===void 0||V.string(t.tooltip))&&V.string(t.command)}e.is=n})(ai||={});var oi;(function(e){function t(e,t){return{range:e,newText:t}}e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}e.insert=n;function r(e){return{range:e,newText:``}}e.del=r;function i(e){let t=e;return V.objectLiteral(t)&&V.string(t.newText)&&Kr.is(t.range)}e.is=i})(oi||={});var si;(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.string(t.label)&&(V.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(V.string(t.description)||t.description===void 0)}e.is=n})(si||={});var ci;(function(e){function t(e){let t=e;return V.string(t)}e.is=t})(ci||={});var li;(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}e.del=r;function i(e){let t=e;return oi.is(t)&&(si.is(t.annotationId)||ci.is(t.annotationId))}e.is=i})(li||={});var ui;(function(e){function t(e,t){return{textDocument:e,edits:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&vi.is(t.textDocument)&&Array.isArray(t.edits)}e.is=n})(ui||={});var di;(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&V.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||V.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||V.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||ci.is(t.annotationId))}e.is=n})(di||={});var fi;(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&V.string(t.oldUri)&&V.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||V.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||V.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||ci.is(t.annotationId))}e.is=n})(fi||={});var pi;(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&V.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||V.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||V.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||ci.is(t.annotationId))}e.is=n})(pi||={});var mi;(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>V.string(e.kind)?di.is(e)||fi.is(e)||pi.is(e):ui.is(e)))}e.is=t})(mi||={});var hi;(function(e){function t(e){let t=e;return V.objectLiteral(t)&&Kr.is(t.range)&&ca.isSnippet(t.snippet)&&(t.annotationId===void 0||si.is(t.annotationId)||ci.is(t.annotationId))}e.is=t})(hi||={});var gi;(function(e){function t(e){return{uri:e}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.uri)}e.is=n})(gi||={});var _i;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.uri)&&V.integer(t.version)}e.is=n})(_i||={});var vi;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.uri)&&(t.version===null||V.integer(t.version))}e.is=n})(vi||={});var yi;(function(e){e.ABAP=`abap`,e.WindowsBat=`bat`,e.BibTeX=`bibtex`,e.Clojure=`clojure`,e.Coffeescript=`coffeescript`,e.C=`c`,e.CPP=`cpp`,e.CSharp=`csharp`,e.CSS=`css`,e.D=`d`,e.Delphi=`pascal`,e.Diff=`diff`,e.Dart=`dart`,e.Dockerfile=`dockerfile`,e.Elixir=`elixir`,e.Erlang=`erlang`,e.FSharp=`fsharp`,e.GitCommit=`git-commit`,e.GitRebase=`git-rebase`,e.Go=`go`,e.Groovy=`groovy`,e.Handlebars=`handlebars`,e.Haskell=`haskell`,e.HTML=`html`,e.Ini=`ini`,e.Java=`java`,e.JavaScript=`javascript`,e.JavaScriptReact=`javascriptreact`,e.JSON=`json`,e.LaTeX=`latex`,e.Less=`less`,e.Lua=`lua`,e.Makefile=`makefile`,e.Markdown=`markdown`,e.ObjectiveC=`objective-c`,e.ObjectiveCPP=`objective-cpp`,e.Pascal=`pascal`,e.Perl=`perl`,e.Perl6=`perl6`,e.PHP=`php`,e.Plaintext=`plaintext`,e.Powershell=`powershell`,e.Pug=`jade`,e.Python=`python`,e.R=`r`,e.Razor=`razor`,e.Ruby=`ruby`,e.Rust=`rust`,e.SCSS=`scss`,e.SASS=`sass`,e.Scala=`scala`,e.ShaderLab=`shaderlab`,e.ShellScript=`shellscript`,e.SQL=`sql`,e.Swift=`swift`,e.TypeScript=`typescript`,e.TypeScriptReact=`typescriptreact`,e.TeX=`tex`,e.VisualBasic=`vb`,e.XML=`xml`,e.XSL=`xsl`,e.YAML=`yaml`})(yi||={});var bi;(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.uri)&&V.string(t.languageId)&&V.integer(t.version)&&V.string(t.text)}e.is=n})(bi||={});var xi;(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}e.is=t})(xi||={});var Si;(function(e){function t(e){let t=e;return V.objectLiteral(e)&&xi.is(t.kind)&&V.string(t.value)}e.is=t})(Si||={});var Ci;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Ci||={});var wi;(function(e){e.PlainText=1,e.Snippet=2})(wi||={});var Ti;(function(e){e.Deprecated=1})(Ti||={});var Ei;(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}e.create=t;function n(e){let t=e;return t&&V.string(t.newText)&&Kr.is(t.insert)&&Kr.is(t.replace)}e.is=n})(Ei||={});var Di;(function(e){e.asIs=1,e.adjustIndentation=2})(Di||={});var Oi;(function(e){e.Replace=1,e.Merge=2})(Oi||={});var ki;(function(e){function t(e){let t=e;return t&&(V.string(t.detail)||t.detail===void 0)&&(V.string(t.description)||t.description===void 0)}e.is=t})(ki||={});var Ai;(function(e){function t(e){return{label:e}}e.create=t})(Ai||={});var ji;(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}e.create=t})(ji||={});var Mi;(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}e.fromPlainText=t;function n(e){let t=e;return V.string(t)||V.objectLiteral(t)&&V.string(t.language)&&V.string(t.value)}e.is=n})(Mi||={});var Ni;(function(e){function t(e){let t=e;return!!t&&V.objectLiteral(t)&&(Si.is(t.contents)||Mi.is(t.contents)||V.typedArray(t.contents,Mi.is))&&(e.range===void 0||Kr.is(e.range))}e.is=t})(Ni||={});var Pi;(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}e.create=t})(Pi||={});var Fi;(function(e){function t(e,t,...n){let r={label:e};return V.defined(t)&&(r.documentation=t),r.parameters=V.defined(n)?n:[],r}e.create=t})(Fi||={});var Ii;(function(e){e.Text=1,e.Read=2,e.Write=3})(Ii||={});var Li;(function(e){function t(e,t){let n={range:e};return V.number(t)&&(n.kind=t),n}e.create=t})(Li||={});var Ri;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Ri||={});var zi;(function(e){e.Deprecated=1})(zi||={});var Bi;(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}e.create=t})(Bi||={});var Vi;(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}e.create=t})(Vi||={});var Hi;(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}e.create=t;function n(e){let t=e;return t&&V.string(t.name)&&V.number(t.kind)&&Kr.is(t.range)&&Kr.is(t.selectionRange)&&(t.detail===void 0||V.string(t.detail))&&(t.deprecated===void 0||V.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=n})(Hi||={});var Ui;(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorMove=`refactor.move`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`,e.Notebook=`notebook`})(Ui||={});var Wi;(function(e){e.Invoked=1,e.Automatic=2})(Wi||={});var Gi;(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}e.create=t;function n(e){let t=e;return V.defined(t)&&V.typedArray(t.diagnostics,ii.is)&&(t.only===void 0||V.typedArray(t.only,V.string))&&(t.triggerKind===void 0||t.triggerKind===Wi.Invoked||t.triggerKind===Wi.Automatic)}e.is=n})(Gi||={});var Ki;(function(e){e.LLMGenerated=1;function t(t){return V.defined(t)&&t===e.LLMGenerated}e.is=t})(Ki||={});var qi;(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):ai.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return t&&V.string(t.title)&&(t.diagnostics===void 0||V.typedArray(t.diagnostics,ii.is))&&(t.kind===void 0||V.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||ai.is(t.command))&&(t.isPreferred===void 0||V.boolean(t.isPreferred))&&(t.edit===void 0||mi.is(t.edit))&&(t.tags===void 0||V.typedArray(t.tags,Ki.is))}e.is=n})(qi||={});var Ji;(function(e){function t(e,t){let n={range:e};return V.defined(t)&&(n.data=t),n}e.create=t;function n(e){let t=e;return V.defined(t)&&Kr.is(t.range)&&(V.undefined(t.command)||ai.is(t.command))}e.is=n})(Ji||={});var Yi;(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.uinteger(t.tabSize)&&V.boolean(t.insertSpaces)}e.is=n})(Yi||={});var Xi;(function(e){function t(e,t,n){return{range:e,target:t,data:n}}e.create=t;function n(e){let t=e;return V.defined(t)&&Kr.is(t.range)&&(V.undefined(t.target)||V.string(t.target))}e.is=n})(Xi||={});var Zi;(function(e){function t(e,t){return{range:e,parent:t}}e.create=t;function n(t){let n=t;return V.objectLiteral(n)&&Kr.is(n.range)&&(n.parent===void 0||e.is(n.parent))}e.is=n})(Zi||={});var Qi;(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`,e.label=`label`})(Qi||={});var $i;(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})($i||={});var ea;(function(e){function t(e){let t=e;return V.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}e.is=t})(ea||={});var ta;(function(e){function t(e,t){return{range:e,text:t}}e.create=t;function n(e){let t=e;return t!=null&&Kr.is(t.range)&&V.string(t.text)}e.is=n})(ta||={});var na;(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}e.create=t;function n(e){let t=e;return t!=null&&Kr.is(t.range)&&V.boolean(t.caseSensitiveLookup)&&(V.string(t.variableName)||t.variableName===void 0)}e.is=n})(na||={});var ra;(function(e){function t(e,t){return{range:e,expression:t}}e.create=t;function n(e){let t=e;return t!=null&&Kr.is(t.range)&&(V.string(t.expression)||t.expression===void 0)}e.is=n})(ra||={});var ia;(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&Kr.is(e.stoppedLocation)}e.is=n})(ia||={});var aa;(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}e.is=t})(aa||={});var oa;(function(e){function t(e){return{value:e}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&(t.tooltip===void 0||V.string(t.tooltip)||Si.is(t.tooltip))&&(t.location===void 0||qr.is(t.location))&&(t.command===void 0||ai.is(t.command))}e.is=n})(oa||={});var sa;(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&Gr.is(t.position)&&(V.string(t.label)||V.typedArray(t.label,oa.is))&&(t.kind===void 0||aa.is(t.kind))&&t.textEdits===void 0||V.typedArray(t.textEdits,oi.is)&&(t.tooltip===void 0||V.string(t.tooltip)||Si.is(t.tooltip))&&(t.paddingLeft===void 0||V.boolean(t.paddingLeft))&&(t.paddingRight===void 0||V.boolean(t.paddingRight))}e.is=n})(sa||={});var ca;(function(e){function t(e){return{kind:`snippet`,value:e}}e.createSnippet=t;function n(e){let t=e;return V.objectLiteral(t)&&t.kind===`snippet`&&V.string(t.value)}e.isSnippet=n})(ca||={});var la;(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}e.create=t})(la||={});var ua;(function(e){function t(e){return{items:e}}e.create=t})(ua||={});var da;(function(e){e.Invoked=1,e.Automatic=2})(da||={});var fa;(function(e){function t(e,t){return{range:e,text:t}}e.create=t})(fa||={});var pa;(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}e.create=t})(pa||={});var ma;(function(e){function t(e){let t=e;return V.objectLiteral(t)&&Hr.is(t.uri)&&V.string(t.name)}e.is=t})(ma||={});var ha;(function(e){function t(e,t,n,r){return new ga(e,t,n,r)}e.create=t;function n(e){let t=e;return!!(V.defined(t)&&V.string(t.uri)&&(V.undefined(t.languageId)||V.string(t.languageId))&&V.uinteger(t.lineCount)&&V.func(t.getText)&&V.func(t.positionAt)&&V.func(t.offsetAt))}e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,c=0;for(;o<r.length&&s<a.length;)t(r[o],a[s])<=0?e[c++]=r[o++]:e[c++]=a[s++];for(;o<r.length;)e[c++]=r[o++];for(;s<a.length;)e[c++]=a[s++];return e}})(ha||={});var ga=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&=(e.push(r),!1);let i=t.charAt(r);n=i===`\r`||i===`
@@ -28,7 +28,7 @@ $1`:e.name,insertTextMode:Di.adjustIndentation,insertTextFormat:wi.Snippet}))):m
28
28
  `:`>`,i},Dl.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r},Dl.prototype.renderInlineAsText=function(e,t,n){let r=``;for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case`text`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=`
29
29
  `}return r},Dl.prototype.render=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t,n):r+=i[o](e,a,t,n,this)}return r};function Ol(){this.__rules__=[],this.__cache__=null}Ol.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Ol.prototype.__compile__=function(){let e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},Ol.prototype.at=function(e,t,n){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},Ol.prototype.before=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Ol.prototype.after=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Ol.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Ol.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},Ol.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},Ol.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},Ol.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function kl(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}kl.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},kl.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},kl.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},kl.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},kl.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};function Al(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Al.prototype.Token=kl;var jl=/\r\n?|\n/g,Ml=/\0/g;function Nl(e){let t;t=e.src.replace(jl,`
30
30
  `),t=t.replace(Ml,`�`),e.src=t}function Pl(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Fl(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Il(e){return/^<a[>\s]/i.test(e)}function Ll(e){return/^<\/a\s*>/i.test(e)}function Rl(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=[],a=0;for(let t=r.length-1;t>=0;t--){let n=r[t];if(n.type===`link_close`)for(t--;r[t].level!==n.level&&r[t].type!==`link_open`;)t--;else if(n.type===`html_inline`&&(Il(n.content)&&a>0&&a--,Ll(n.content)&&a++),!(a>0)&&n.type===`text`&&e.md.linkify.test(n.content)){let a=n.content,o=e.md.linkify.match(a),s=[],c=n.level,l=0;o.length>0&&o[0].index===0&&t>0&&r[t-1].type===`text_special`&&(o=o.slice(1));for(let t=0;t<o.length;t++){let n=o[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let i=o[t].text;i=o[t].schema?o[t].schema===`mailto:`&&!/^mailto:/i.test(i)?e.md.normalizeLinkText(`mailto:`+i).replace(/^mailto:/,``):e.md.normalizeLinkText(i):e.md.normalizeLinkText(`http://`+i).replace(/^http:\/\//,``);let u=o[t].index;if(u>l){let t=new e.Token(`text`,``,0);t.content=a.slice(l,u),t.level=c,s.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=c++,d.markup=`linkify`,d.info=`auto`,s.push(d);let f=new e.Token(`text`,``,0);f.content=i,f.level=c,s.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--c,p.markup=`linkify`,p.info=`auto`,s.push(p),l=o[t].lastIndex}if(l<a.length){let t=new e.Token(`text`,``,0);t.content=a.slice(l),t.level=c,s.push(t)}i.push({index:t,nodes:s})}}if(i.length>0){let e=r.length;for(let t of i)e+=t.nodes.length-1;let a=Array(e),o=0,s=0;i.reverse();for(let e=0;e<r.length;e++){let t=i[o];if(t?.index===e){for(let e of t.nodes)a[s++]=e;o++}else a[s++]=r[e]}t[n].children=a}}}var zl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Bl=/\((c|tm|r)\)/i,Vl=/\((c|tm|r)\)/gi,Hl={c:`©`,r:`®`,tm:`™`};function Ul(e,t){return Hl[t.toLowerCase()]}function Wl(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(Vl,Ul)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Gl(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&zl.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Kl(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(Bl.test(e.tokens[t].content)&&Wl(e.tokens[t].children),zl.test(e.tokens[t].content)&&Gl(e.tokens[t].children))}var ql=/['"]/,Jl=/['"]/g,Yl=`’`,Xl=1e3;function Zl(e,t,n){for(;e.length>n;){let n=e.pop();n.isSingleQuote?t.single=n.prevSameQuoteIdx:t.double=n.prevSameQuoteIdx}}function Ql(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function $l(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function eu(e,t){let n,r=[],i={single:-1,double:-1},a={};for(let o=0;o<e.length;o++){let s=e[o],c=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=c);n--);if(Zl(r,i,n+1),s.type!==`text`)continue;let l=s.content,u=0,d=l.length;OUTER:for(;u<d;){Jl.lastIndex=u;let s=Jl.exec(l);if(!s)break;let f=!0,p=!0;u=s.index+1;let m=s[0]===`'`,h=32;if(s.index-1>=0)h=l.charCodeAt(s.index-1);else for(n=o-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(u<d)g=l.charCodeAt(u);else for(n=o+1;n<e.length&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}let _=_l(h)||gl(h),v=_l(g)||gl(g),y=ml(h),b=ml(g);if(b?f=!1:v&&(y||_||(f=!1)),y?p=!1:_&&(b||v||(p=!1)),g===34&&s[0]===`"`&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=_,p=v),!f&&!p)m&&Ql(a,o,s.index,Yl);else{if(p&&(n=m?i.single:i.double,n>=0&&r[n].level===c)){let e=r[n],c,l;m?(c=t.md.options.quotes[2],l=t.md.options.quotes[3]):(c=t.md.options.quotes[0],l=t.md.options.quotes[1]),Ql(a,o,s.index,l),Ql(a,e.tokenIdx,e.contentPos,c),Zl(r,i,n);continue OUTER}if(f){if(r.length>=Xl)return;r.push({tokenIdx:o,contentPos:s.index,isSingleQuote:m,level:c,prevSameQuoteIdx:m?i.single:i.double}),m?i.single=r.length-1:i.double=r.length-1}else p&&m&&Ql(a,o,s.index,Yl)}}}Object.keys(a).forEach(function(t){e[t].content=$l(e[t].content,a[t])})}function tu(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&ql.test(e.tokens[t].content)&&eu(e.tokens[t].children,e)}function nu(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var ru=[[`normalize`,Nl],[`block`,Pl],[`inline`,Fl],[`linkify`,Rl],[`replacements`,Kl],[`smartquotes`,tu],[`text_join`,nu]];function iu(){this.ruler=new Ol;for(let e=0;e<ru.length;e++)this.ruler.push(ru[e][0],ru[e][1])}iu.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)},iu.prototype.State=Al;function au(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=`root`,this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o){if(pl(s)){n++,s===9?r+=4-r%4:r++;continue}o=!0}(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}au.prototype.push=function(e,t,n){let r=new kl(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},au.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},au.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},au.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&pl(this.src.charCodeAt(e));e++);return e},au.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!pl(this.src.charCodeAt(--e)))return e+1;return e},au.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},au.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},au.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(pl(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)},au.prototype.Token=kl;var ou=65536;function su(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function cu(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function lu(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!pl(s)||o===45&&pl(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!pl(t))return!1;a++}let c=su(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=su(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=cu(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=su(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=cu(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>ou))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function uu(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;)if(e.isEmpty(r))r++;else if(e.sCount[r]-e.blkIndent>=4)r++,i=r;else break;e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
31
- `,a.map=[t,e.line],!0}function du(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function fu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(pl(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function pu(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!pl(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function mu(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!pl(e.src.charCodeAt(r))?-1:r}function hu(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1}else{if(a===41||a===46)break;return-1}}return i<r&&(a=e.src.charCodeAt(i),!pl(a))?-1:i}function gu(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function _u(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=hu(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=mu(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=hu(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=mu(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&gu(e,h),!0}var vu=999;function yu(e){let t=e.length;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n);if(r<55296||r>56319)continue;let i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(t--,n++)}return t}function bu(e,t){return Math.min(e.eMarks[t]+1,e.src.length)}function xu(e,t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return-1;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return-1}return e.bMarks[t]+e.tShift[t]}function Su(e,t,n,r){let i=e.src,a=e.bMarks[t]+e.tShift[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||i.charCodeAt(a)!==91)return!1;let s=bu(e,t),c=``,l=-1,u=++a;for(;a<s;){if(c.length+a-u>vu*2)return!1;let t=i.charCodeAt(a);if(t===91)return!1;if(t===93){l=a;break}if(t===92&&(t=i.charCodeAt(++a)),t===10&&a<s){let t=xu(e,o);if(t<0)return!1;c+=i.slice(u,s),a=u=t,s=bu(e,o++)}else a++}if(l<0||i.charCodeAt(l+1)!==58||(c+=i.slice(u,l),c.length>vu&&yu(c)>vu))return!1;for(a=l+2;a<s;){let t=i.charCodeAt(a);if(t===10){let t=xu(e,o);if(t<0)break;a=t,s=bu(e,o++)}else if(pl(t))a++;else break}let d=e.md.helpers.parseLinkDestination(i,a,s);if(!d.ok)return!1;let f=e.md.normalizeLink(d.str);if(!e.md.validateLink(f))return!1;a=d.pos;let p=a,m=s,h=o;for(;a<s;){let t=i.charCodeAt(a);if(t===10){let t=xu(e,o);if(t<0)break;a=t,s=bu(e,o++)}else if(pl(t))a++;else break}let g=a,_=e.md.helpers.parseLinkTitle(i,a,s);for(;_.can_continue;){let t=xu(e,o);if(t<0)break;a=t,s=bu(e,o++),_=e.md.helpers.parseLinkTitle(i,a,s,_)}let v;for(g!==p&&_.ok?(v=_.str,a=_.pos):(v=``,a=p,s=m,o=h);a<s&&pl(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10&&v)for(v=``,a=p,s=m,o=h;a<s&&pl(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10)return!1;let y=vl(c);return y?(r||(e.env.references===void 0&&(e.env.references={}),e.env.references[y]===void 0&&(e.env.references[y]={title:v,href:f}),e.line=o),!0):!1}var Cu=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),wu=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Tu=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`;RegExp(`^(?:`+wu+`|`+Tu+`|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);var Eu=RegExp(`^(?:`+wu+`|`+Tu+`)`),Du=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+Cu.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Eu.source+`\\s*$`),/^$/,!1]];function Ou(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Du.length&&!Du[s][0].test(o);s++);if(s===Du.length)return!1;if(r)return Du[s][2];let c=t+1,l=Du[s][1].test(``);if(!Du[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Du[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function ku(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!pl(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&pl(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=bl(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function Au(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=bl(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function ju(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=bl(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var Mu=[[`table`,lu,[`paragraph`,`reference`]],[`code`,uu],[`fence`,du,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,fu,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,pu,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,_u,[`paragraph`,`reference`,`blockquote`]],[`reference`,Su],[`html_block`,Ou,[`paragraph`,`reference`,`blockquote`]],[`heading`,ku,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Au],[`paragraph`,ju]];function Nu(){this.ruler=new Ol;for(let e=0;e<Mu.length;e++)this.ruler.push(Mu[e][0],Mu[e][1],{alt:(Mu[e][2]||[]).slice()})}Nu.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},Nu.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},Nu.prototype.State=au;function Pu(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.skipHtmlSpecial=!1,this.linkLevel=0}Pu.prototype.pushPending=function(){let e=new kl(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},Pu.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new kl(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Pu.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=_l(i)||gl(i),l=_l(s)||gl(s),u=ml(i),d=ml(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},Pu.prototype.Token=kl;function Fu(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Iu(e,t){let n=e.pos;for(;n<e.posMax&&!Fu(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function Lu(e){return e>=65&&e<=90||e>=97&&e<=122}function Ru(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function zu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&Ru(e.src.charCodeAt(a-1));)a--;if(a===n||!Lu(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(c);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=c.length-o,!0}function Bu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&pl(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Vu=[];for(let e=0;e<256;e++)Vu.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){Vu[e.charCodeAt(0)]=1});function Hu(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),pl(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&Vu[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function Uu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function Wu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Gu(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function Ku(e){let t=e.tokens_meta,n=e.tokens_meta.length;Gu(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Gu(e,t[r].delimiters)}var qu={tokenize:Wu,postProcess:Ku};function Ju(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Yu(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Xu(e){let t=e.tokens_meta,n=e.tokens_meta.length;Yu(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Yu(e,t[r].delimiters)}var Zu={tokenize:Ju,postProcess:Xu};function Qu(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),pl(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),pl(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),pl(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[vl(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function $u(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),pl(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),pl(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),pl(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[vl(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var ed=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,td=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function nd(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(td.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(ed.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function rd(e){return/^<a[>\s]/i.test(e)}function id(e){return/^<\/a\s*>/i.test(e)}function ad(e){let t=e|32;return t>=97&&t<=122}function od(e,t){let n=e.src,r,i;if(n.startsWith(`<!--`,t)){if(n.startsWith(`>`,t+4))return t+5;if(n.startsWith(`->`,t+4))return t+6;r=t+4,i=`-->`}else if(n.startsWith(`<![CDATA[`,t))r=t+9,i=`]]>`;else if(n.charCodeAt(t+1)===63)r=t+2,i=`?>`;else if(ad(n.charCodeAt(t+2)))r=t+3,i=`>`;else return-1;if(e.skipHtmlSpecial)return-1;let a=n.indexOf(i,r);return a<0?(e.skipHtmlSpecial=!0,-1):a+i.length}function sd(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i,a=e.src.charCodeAt(r+1);if(a===33||a===63)i=od(e,r);else if(a===47||ad(a)){let t=e.src.slice(r).match(Eu);i=t?r+t[0].length:-1}else return!1;if(i<0)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=e.src.slice(r,i),rd(t.content)&&e.linkLevel++,id(t.content)&&e.linkLevel--}return e.pos=i,!0}var cd=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ld=/^&([a-z][a-z0-9]{1,31});/i;function ud(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(cd);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Qc(t)?$c(t):$c(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(ld);if(r){let n=Wc(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function dd(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function fd(e){let t=e.tokens_meta,n=e.tokens_meta.length;dd(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&dd(t[e].delimiters)}function pd(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var md=[[`text`,Iu],[`linkify`,zu],[`newline`,Bu],[`escape`,Hu],[`backticks`,Uu],[`strikethrough`,qu.tokenize],[`emphasis`,Zu.tokenize],[`link`,Qu],[`image`,$u],[`autolink`,nd],[`html_inline`,sd],[`entity`,ud]],hd=[[`balance_pairs`,fd],[`strikethrough`,qu.postProcess],[`emphasis`,Zu.postProcess],[`fragments_join`,pd]];function gd(){this.ruler=new Ol;for(let e=0;e<md.length;e++)this.ruler.push(md[e][0],md[e][1]);this.ruler2=new Ol;for(let e=0;e<hd.length;e++)this.ruler2.push(hd[e][0],hd[e][1])}gd.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},gd.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},gd.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},gd.prototype.State=Pu;function _d(e){let t={};e||={},t.src_Any=vc.source,t.src_Cc=yc.source,t.src_Z=Cc.source,t.src_P=xc.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function vd(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function yd(e){return Object.prototype.toString.call(e)}function bd(e){return yd(e)===`[object String]`}function xd(e){return yd(e)===`[object Object]`}function Sd(e){return yd(e)===`[object RegExp]`}function Cd(e){return yd(e)===`[object Function]`}function wd(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Td={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ed(e){return Object.keys(e||{}).reduce(function(e,t){return e||Td.hasOwnProperty(t)},!1)}var Dd={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Od=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,kd=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function Ad(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function jd(){return function(e,t){t.normalize(e)}}function Md(e){let t=e.re=_d(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Od),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};e.__compiled__[t]=r,xd(n)?(Sd(n.validate)?r.validate=Ad(n.validate):Cd(n.validate)?r.validate=n.validate:a(t,n),Cd(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=jd()):bd(n)?i.push(t):a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:jd()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(wd).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function Nd(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function Pd(e,t){if(!(this instanceof Pd))return new Pd(e,t);t||Ed(e)&&(t=e,e={}),this.__opts__=vd({},Td,t),this.__schemas__=vd({},Dd,e),this.__compiled__={},this.__tlds__=kd,this.__tlds_replaced__=!1,this.re={},Md(this)}Pd.prototype.add=function(e,t){return this.__schemas__[e]=t,Md(this),this},Pd.prototype.set=function(e){return this.__opts__=vd(this.__opts__,e),this},Pd.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},Pd.prototype.pretest=function(e){return this.re.pretest.test(e)},Pd.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Pd.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new Nd(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},Pd.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Nd(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},Pd.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Md(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Md(this),this)},Pd.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)},Pd.prototype.onCompile=function(){};var Fd=2147483647,Id=36,Ld=1,Rd=26,zd=38,Bd=700,Vd=72,Hd=128,Ud=`-`,Wd=/^xn--/,Gd=/[^\0-\x7F]/,Kd=/[\x2E\u3002\uFF0E\uFF61]/g,qd={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},Jd=35,Yd=Math.floor,Xd=String.fromCharCode;function Zd(e){throw RangeError(qd[e])}function Qd(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function $d(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(Kd,`.`);let i=Qd(e.split(`.`),t).join(`.`);return r+i}function ef(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var tf=e=>String.fromCodePoint(...e),nf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Id},rf=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},af=function(e,t,n){let r=0;for(e=n?Yd(e/Bd):e>>1,e+=Yd(e/t);e>455;r+=Id)e=Yd(e/Jd);return Yd(r+36*e/(e+zd))},of=function(e){let t=[],n=e.length,r=0,i=Hd,a=Vd,o=e.lastIndexOf(Ud);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Zd(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Id;;i+=Id){s>=n&&Zd(`invalid-input`);let o=nf(e.charCodeAt(s++));o>=Id&&Zd(`invalid-input`),o>Yd((Fd-r)/t)&&Zd(`overflow`),r+=o*t;let c=i<=a?Ld:i>=a+Rd?Rd:i-a;if(o<c)break;let l=Id-c;t>Yd(Fd/l)&&Zd(`overflow`),t*=l}let c=t.length+1;a=af(r-o,c,o==0),Yd(r/c)>Fd-i&&Zd(`overflow`),i+=Yd(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},sf=function(e){let t=[];e=ef(e);let n=e.length,r=Hd,i=0,a=Vd;for(let n of e)n<128&&t.push(Xd(n));let o=t.length,s=o;for(o&&t.push(Ud);s<n;){let n=Fd;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>Yd((Fd-i)/c)&&Zd(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Fd&&Zd(`overflow`),n===r){let e=i;for(let n=Id;;n+=Id){let r=n<=a?Ld:n>=a+Rd?Rd:n-a;if(e<r)break;let i=e-r,o=Id-r;t.push(Xd(rf(r+i%o,0))),e=Yd(i/o)}t.push(Xd(rf(e,0))),a=af(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},cf={version:`2.3.1`,ucs2:{decode:ef,encode:tf},decode:of,encode:sf,toASCII:function(e){return $d(e,function(e){return Gd.test(e)?`xn--`+sf(e):e})},toUnicode:function(e){return $d(e,function(e){return Wd.test(e)?of(e.slice(4).toLowerCase()):e})}},lf={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},uf=/^(vbscript|javascript|file|data):/,df=/^data:image\/(gif|png|jpeg|webp);/;function ff(e){let t=e.trim().toLowerCase();return!uf.test(t)||df.test(t)}var pf=[`http:`,`https:`,`mailto:`];function mf(e){let t=gc(e,!0);if(t.hostname&&(!t.protocol||pf.indexOf(t.protocol)>=0))try{t.hostname=cf.toASCII(t.hostname)}catch{}return rc(ic(t))}function hf(e){let t=gc(e,!0);if(t.hostname&&(!t.protocol||pf.indexOf(t.protocol)>=0))try{t.hostname=cf.toUnicode(t.hostname)}catch{}return ec(ic(t),ec.defaultChars+`%`)}function gf(e,t){if(!(this instanceof gf))return new gf(e,t);t||qc(e)||(t=e||{},e=`default`),this.inline=new gd,this.block=new Nu,this.core=new iu,this.renderer=new Dl,this.linkify=new Pd,this.validateLink=ff,this.normalizeLink=mf,this.normalizeLinkText=hf,this.utils=Gc,this.helpers=Xc({},Tl),this.options={},this.configure(e),t&&this.set(t)}gf.prototype.set=function(e){return Xc(this.options,e),this},gf.prototype.configure=function(e){let t=this;if(qc(e)){let t=e;if(e=lf[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},gf.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},gf.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},gf.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},gf.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},gf.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},gf.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},gf.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var _f=new gf({breaks:!1,linkify:!0});function vf(e,t,{schema:n,setSchemaReference:r},i,a){Bs([],{useCommonAddons:!1}).then(e=>{let n,r,i,a,s,c,l,u,d;e.on(t,`select`,(e,t)=>{if(!n){let e=t.parentNode;n=document.createElement(`div`),n.className=`CodeMirror-hint-information`,e.append(n);let f=document.createElement(`header`);f.className=`CodeMirror-hint-information-header`,n.append(f),r=document.createElement(`span`),r.className=`CodeMirror-hint-information-field-name`,f.append(r),i=document.createElement(`span`),i.className=`CodeMirror-hint-information-type-name-pill`,f.append(i),a=document.createElement(`span`),i.append(a),s=document.createElement(`a`),s.className=`CodeMirror-hint-information-type-name`,s.href=`javascript:void 0`,s.addEventListener(`click`,o),i.append(s),c=document.createElement(`span`),i.append(c),l=document.createElement(`div`),l.className=`CodeMirror-hint-information-description`,n.append(l),u=document.createElement(`div`),u.className=`CodeMirror-hint-information-deprecation`,n.append(u);let p=document.createElement(`span`);p.className=`CodeMirror-hint-information-deprecation-label`,p.textContent=`Deprecated`,u.append(p),d=document.createElement(`div`),d.className=`CodeMirror-hint-information-deprecation-reason`,u.append(d);let m=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,``),10)||0,h=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,``),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+m+`px`,n.style.maxHeight=e.scrollTop+h+`px`)};e.addEventListener(`scroll`,g);let _;e.addEventListener(`DOMNodeRemoved`,_=t=>{t.target===e&&(e.removeEventListener(`scroll`,g),e.removeEventListener(`DOMNodeRemoved`,_),n?.removeEventListener(`click`,o),n=null,r=null,i=null,a=null,s=null,c=null,l=null,u=null,d=null,_=null)})}if(r&&(r.textContent=e.text),i&&a&&s&&c){if(e.type){i.style.display=`inline`;let t=e=>{ht(e)?(c.textContent=`!`+c.textContent,t(e.ofType)):D(e)?(a.textContent+=`[`,c.textContent=`]`+c.textContent,t(e.ofType)):s.textContent=e.name};a.textContent=``,c.textContent=``,t(e.type)}else a.textContent=``,s.textContent=``,c.textContent=``,i.style.display=`none`}l&&(e.description?(l.style.display=`block`,l.innerHTML=_f.render(e.description)):(l.style.display=`none`,l.innerHTML=``)),u&&d&&(e.deprecationReason?(u.style.display=`block`,d.innerHTML=_f.render(e.deprecationReason)):(u.style.display=`none`,d.innerHTML=``))})});function o(e){let t=i?.referencePlugin;if(!n||!t||!(e.currentTarget instanceof HTMLElement))return;let o=e.currentTarget.textContent||``,s=n.getType(o);s&&(i.setVisiblePlugin(t),r({kind:`Type`,type:s}),a?.(s))}}function yf(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}var bf=t(Hs());function xf(e,t){let n=(0,J.c)(4),r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&typeof t==`string`&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,q.useEffect)(r,i)}function Sf(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{e?.setOption(t,n)},a=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function Cf(e,t,n,r,i){let a=(0,J.c)(9),o;a[0]===i?o=a[1]:(o={nonNull:!0,caller:i},a[0]=i,a[1]=o);let{updateActiveTabValues:s}=Mp(o),c,l;a[2]!==t||a[3]!==e||a[4]!==n||a[5]!==r||a[6]!==s?(c=()=>{if(!e)return;let{storage:i}=As.getState(),a=yf(500,e=>{n!==null&&i.set(n,e)}),o=yf(100,e=>{s({[r]:e})}),c=(e,n)=>{if(!n)return;let r=e.getValue();a(r),o(r),t?.(r)};return e.on(`change`,c),()=>e.off(`change`,c)},l=[t,e,n,r,s],a[2]=t,a[3]=e,a[4]=n,a[5]=r,a[6]=s,a[7]=c,a[8]=l):(c=a[7],l=a[8]),(0,q.useEffect)(c,l)}function wf(e,t){let n=(0,J.c)(7),{schema:r,setSchemaReference:i}=Js(),a=Gs(),o,s;n[0]!==t||n[1]!==e||n[2]!==a||n[3]!==r||n[4]!==i?(o=()=>{if(!e)return;let n=(e,n)=>{vf(e,n,{schema:r,setSchemaReference:i},a,e=>{t?.({kind:`Type`,type:e,schema:r||void 0})})};return e.on(`hasCompletion`,n),()=>e.off(`hasCompletion`,n)},s=[t,e,a,r,i],n[0]=t,n[1]=e,n[2]=a,n[3]=r,n[4]=i,n[5]=o,n[6]=s):(o=n[5],s=n[6]),(0,q.useEffect)(o,s)}function Tf(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(let n of t)e.removeKeyMap(n);if(n){let r={};for(let e of t)r[e]=()=>n();e.addKeyMap(r)}}},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}var Ef=Af,Df=jf,Of=Nf,kf=Pf;function Af(e){let t=(0,J.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onCopyQuery:i}=n,a=r||Ef,o;t[2]===a?o=t[3]:(o={nonNull:!0,caller:a},t[2]=a,t[3]=o);let{queryEditor:s}=Mp(o),c;return t[4]!==i||t[5]!==s?(c=()=>{if(!s)return;let e=s.getValue();(0,bf.default)(e),i?.(e)},t[4]=i,t[5]=s,t[6]=c):c=t[6],c}function jf(e){let t=(0,J.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r}=n,i=r||Df,a;t[2]===i?a=t[3]:(a={nonNull:!0,caller:i},t[2]=i,t[3]=a);let{queryEditor:o}=Mp(a),{schema:s}=Js(),c;return t[4]!==o||t[5]!==s?(c=()=>{let e=o?.documentAST,t=o?.getValue();e&&t&&o.setValue(C(ms(e,s)))},t[4]=o,t[5]=s,t[6]=c):c=t[6],c}function Mf(e){return C(Le(e))}function Nf(e){let t=(0,J.c)(9),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onPrettifyQuery:i}=n,a=i===void 0?Mf:i,o=r||Of,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c,headerEditor:l,variableEditor:u}=Mp(s),d;return t[4]!==l||t[5]!==a||t[6]!==c||t[7]!==u?(d=async()=>{if(u){let e=u.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch{}}if(l){let e=l.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&l.setValue(t)}catch{}}if(c){let e=c.getValue();try{let t=await a(e);t!==e&&c.setValue(t)}catch{}}},t[4]=l,t[5]=a,t[6]=c,t[7]=u,t[8]=d):d=t[8],d}function Pf(e){let t=(0,J.c)(8),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{getDefaultFieldNames:r,caller:i}=n,{schema:a}=Js(),o=i||kf,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c}=Mp(s),l;return t[4]!==r||t[5]!==c||t[6]!==a?(l=()=>{if(!c)return;let e=c.getValue(),{insertions:t,result:n}=os(a,e,r);return t&&t.length>0&&c.operation(()=>{let e=c.getCursor(),r=c.indexFromPos(e);c.setValue(n||``);let i=0,a=t.map(e=>{let{index:t,string:n}=e;return i+=n.length,c.markText(c.posFromIndex(t+i),c.posFromIndex(t+i),{className:`auto-inserted-leaf`,clearOnEnter:!0,title:`Automatically added leaf fields`})});setTimeout(()=>{for(let e of a)e.clear()},7e3);let o=r;for(let{index:e,string:n}of t)e<r&&(o+=n.length);c.setCursor(c.posFromIndex(o))}),n},t[4]=r,t[5]=c,t[6]=a,t[7]=l):l=t[7],l}function Ff(){return Bs([z(()=>import(`./javascript-C5m9swjn.js`).then(e=>t(e.default)),__vite__mapDeps([12,1,0]))])}var If=Lf;function Lf(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onEdit:o,readOnly:s}=r,c=i===void 0?Ls:i,l=a===void 0?Rs:a,u=s!==void 0&&s,d=t||If,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialHeaders:p,headerEditor:m,setHeaderEditor:h,shouldPersistHeaders:g}=Mp(f),_=zp(),v=t||If,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=jf(y),x=t||If,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=Nf(S),w=(0,q.useRef)(null),T,E;n[8]!==c||n[9]!==p||n[10]!==u||n[11]!==h?(T=()=>{let e=!0;return Ff().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:p,lineNumbers:!0,tabSize:2,mode:{name:`javascript`,json:!0},theme:c,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:u?`nocursor`:!1,foldGutter:!0,gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:zs});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,Rf),h(r)}),()=>{e=!1}},E=[c,p,u,h],n[8]=c,n[9]=p,n[10]=u,n[11]=h,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,q.useEffect)(T,E),Sf(m,`keyMap`,l),Cf(m,o,g?zf:null,`headers`,If);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Tf(m,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Tf(m,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Tf(m,k,b),w}function Rf(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var zf=`headers`,Bf=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat([`\u2028`,`\u2029`,` `,`\xA0`]),Vf=RegExp(`[`+Bf.join(``)+`]`,`g`);function Hf(e){return e.replace(Vf,` `)}function Uf(){return Bs([z(()=>import(`./comment-CYtfOWQV.js`).then(e=>t(e.default)),__vite__mapDeps([13,1,0])),z(()=>import(`./search-dN6Hktna.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,0,8,10])),z(()=>import(`./hint-759x8Pev.js`),__vite__mapDeps([15,1,0,2])),z(()=>import(`./lint-DM0cSBLP.js`),__vite__mapDeps([16,1,0])),z(()=>import(`./info-C8KeefCr.js`),__vite__mapDeps([17,1,18,19,0,20,21,22])),z(()=>import(`./jump-BFyvFOZP.js`),__vite__mapDeps([23,1,0,20,18,19,21])),z(()=>import(`./mode-DhAV7B2w.js`),__vite__mapDeps([24,1,0,25]))])}var Wf=Yf;function Gf(e,t){e.state.lint.linterOptions.variableToType=t?.variableToType,e.options.lint.variableToType=t?.variableToType,e.options.hintOptions.variableToType=t?.variableToType}function Kf(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function qf(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function Jf(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function Yf(e,t){let n=(0,J.c)(40),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onCopyQuery:s,onEdit:c,onPrettifyQuery:l,readOnly:u}=r,d=i===void 0?Ls:i,f=a===void 0?Rs:a,p=u!==void 0&&u,{schema:m,setSchemaReference:h}=Js(),g=t||Wf,_;n[2]===g?_=n[3]:(_={nonNull:!0,caller:g},n[2]=g,n[3]=_);let{externalFragments:v,initialQuery:y,queryEditor:b,setOperationName:x,setQueryEditor:S,validationRules:C,variableEditor:w,updateActiveTabValues:T}=Mp(_),E=zp(),D=Ns(),O=Gs(),k=t||Wf,A;n[4]!==s||n[5]!==k?(A={caller:k,onCopyQuery:s},n[4]=s,n[5]=k,n[6]=A):A=n[6];let j=Af(A),M=t||Wf,N;n[7]===M?N=n[8]:(N={caller:M},n[7]=M,n[8]=N);let ee=jf(N),P=t||Wf,te;n[9]!==l||n[10]!==P?(te={caller:P,onPrettifyQuery:l},n[9]=l,n[10]=P,n[11]=te):te=n[11];let ne=Nf(te),re=(0,q.useRef)(null),ie=(0,q.useRef)(void 0),ae=(0,q.useRef)($f),oe,se;n[12]!==o||n[13]!==O||n[14]!==h?(oe=()=>{ae.current=e=>{let t=O?.referencePlugin;t&&(O.setVisiblePlugin(t),h(e),o?.(e))}},se=[o,O,h],n[12]=o,n[13]=O,n[14]=h,n[15]=oe,n[16]=se):(oe=n[15],se=n[16]),(0,q.useEffect)(oe,se);let ce,le;n[17]!==d||n[18]!==y||n[19]!==p||n[20]!==S?(ce=()=>{let e=!0;return Uf().then(t=>{if(!e)return;ie.current=t;let n=re.current;if(!n)return;let r=t(n,{value:y,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:`graphql`,theme:d,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:p?`nocursor`:!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:Ra.EXECUTABLE}},info:{schema:void 0,renderDescription:Qf,onClick(e){ae.current(e)}},jump:{schema:void 0,onClick(e){ae.current(e)}},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:{...zs,"Cmd-S"(){},"Ctrl-S"(){}}}),i=function(){r.showHint({completeSingle:!0,container:n})};r.addKeyMap({"Cmd-Space":i,"Ctrl-Space":i,"Alt-Space":i,"Shift-Space":i,"Shift-Alt-Space":i}),r.on(`keyup`,Zf);let a=!1;r.on(`startCompletion`,()=>{a=!0}),r.on(`endCompletion`,()=>{a=!1}),r.on(`keydown`,(e,t)=>{t.key===`Escape`&&a&&t.stopPropagation()}),r.on(`beforeChange`,Xf),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,S(r)}),()=>{e=!1}},le=[d,y,p,S],n[17]=d,n[18]=y,n[19]=p,n[20]=S,n[21]=ce,n[22]=le):(ce=n[21],le=n[22]),(0,q.useEffect)(ce,le),Sf(b,`keyMap`,f);let ue,de;n[23]!==c||n[24]!==b||n[25]!==m||n[26]!==x||n[27]!==D||n[28]!==T||n[29]!==w?(ue=()=>{if(!b)return;let e=function(e){var t;let n=Ao(m,e.getValue()),r=hs(e.operations??void 0,e.operationName??void 0,n?.operations);return e.documentAST=n?.documentAST??null,e.operationName=r??null,e.operations=n?.operations??null,w&&(Gf(w,n),(t=ie.current)==null||t.signal(w,`change`,w)),n?{...n,operationName:r}:null},t=yf(100,t=>{let n=t.getValue();D.set(ip,n);let r=t.operationName,i=e(t);i?.operationName!==void 0&&D.set(ap,i.operationName),c?.(n,i?.documentAST),i?.operationName&&r!==i.operationName&&x(i.operationName),T({query:n,operationName:i?.operationName??null})});return e(b),b.on(`change`,t),()=>b.off(`change`,t)},de=[c,b,m,x,D,w,T],n[23]=c,n[24]=b,n[25]=m,n[26]=x,n[27]=D,n[28]=T,n[29]=w,n[30]=ue,n[31]=de):(ue=n[30],de=n[31]),(0,q.useEffect)(ue,de),ep(b,m??null,ie),tp(b,C??null,ie),np(b,v,ie),wf(b,o);let F=E?.run,fe;n[32]!==b||n[33]!==F||n[34]!==x?(fe=()=>{if(!F||!b||!b.operations||!b.hasFocus()){F?.();return}let e=b.indexFromPos(b.getCursor()),t;for(let n of b.operations)n.loc&&n.loc.start<=e&&n.loc.end>=e&&(t=n.name?.value);t&&t!==b.operationName&&x(t),F()},n[32]=b,n[33]=F,n[34]=x,n[35]=fe):fe=n[35];let pe=fe,me;n[36]===Symbol.for(`react.memo_cache_sentinel`)?(me=[`Cmd-Enter`,`Ctrl-Enter`],n[36]=me):me=n[36],Tf(b,me,pe);let he;n[37]===Symbol.for(`react.memo_cache_sentinel`)?(he=[`Shift-Ctrl-C`],n[37]=he):he=n[37],Tf(b,he,j);let ge;n[38]===Symbol.for(`react.memo_cache_sentinel`)?(ge=[`Shift-Ctrl-P`,`Shift-Ctrl-F`],n[38]=ge):ge=n[38],Tf(b,ge,ne);let _e;return n[39]===Symbol.for(`react.memo_cache_sentinel`)?(_e=[`Shift-Ctrl-M`],n[39]=_e):_e=n[39],Tf(b,_e,ee),re}function Xf(e,t){var n;if(t.origin===`paste`){let e=t.text.map(Hf);(n=t.update)==null||n.call(t,t.from,t.to,e)}}function Zf(e,t){rp.test(t.key)&&e.execCommand(`autocomplete`)}function Qf(e){return _f.render(e)}function $f(){}function ep(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.schema!==t;Kf(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function tp(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.validationRules!==t;qf(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function np(e,t,n){let r=(0,J.c)(7),i;r[0]===t?i=r[1]:(i=[...t.values()],r[0]=t,r[1]=i);let a=i,o,s;r[2]!==n||r[3]!==e||r[4]!==a?(o=()=>{if(!e)return;let t=e.options.lint.externalFragments!==a;Jf(e,a),t&&n.current&&n.current.signal(e,`change`,e)},s=[e,a,n],r[2]=n,r[3]=e,r[4]=a,r[5]=o,r[6]=s):(o=r[5],s=r[6]),(0,q.useEffect)(o,s)}var rp=/^[a-zA-Z0-9_@(]$/,ip=`query`,ap=`operationName`;function op({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:a,shouldPersistHeaders:o}){let{storage:s}=As.getState(),c=s.get(Cp);try{if(!c)throw Error(`Storage for tabs is empty`);let e=JSON.parse(c),t=o?n:void 0;if(sp(e)){let r=yp({query:i,variables:a,headers:t}),o=-1;for(let t=0;t<e.tabs.length;t++){let n=e.tabs[t];n.hash=yp({query:n.query,variables:n.variables,headers:n.headers}),n.hash===r&&(o=t)}if(o>=0)e.activeTabIndex=o;else{let t=i?bp(i):null;e.tabs.push({id:vp(),hash:r,title:t||Sp,query:i,variables:a,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw Error(`Storage for tabs is invalid`)}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:a,headers:n??t}]).map(gp)}}}function sp(e){return e&&typeof e==`object`&&!Array.isArray(e)&&lp(e,`activeTabIndex`)&&`tabs`in e&&Array.isArray(e.tabs)&&e.tabs.every(cp)}function cp(e){return e&&typeof e==`object`&&!Array.isArray(e)&&up(e,`id`)&&up(e,`title`)&&dp(e,`query`)&&dp(e,`variables`)&&dp(e,`headers`)&&dp(e,`operationName`)&&dp(e,`response`)}function lp(e,t){return t in e&&typeof e[t]==`number`}function up(e,t){return t in e&&typeof e[t]==`string`}function dp(e,t){return t in e&&(typeof e[t]==`string`||e[t]===null)}function fp({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,q.useCallback)(i=>{let a=e?.getValue()??null,o=t?.getValue()??null,s=n?.getValue()??null,c=e?.operationName??null;return _p(i,{query:a,variables:o,headers:s,response:r?.getValue()??null,operationName:c})},[e,t,n,r])}function pp(e,t=!1){return JSON.stringify(e,(e,n)=>e===`hash`||e===`response`||!t&&e===`headers`?null:n)}function mp({shouldPersistHeaders:e}){return(0,q.useCallback)(t=>{let{storage:n}=As.getState();yf(500,e=>{n.set(Cp,e)})(pp(t,e))},[e])}function hp({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,q.useCallback)(({query:a,variables:o,headers:s,response:c})=>{e?.setValue(a??``),t?.setValue(o??``),n?.setValue(s??i??``),r?.setValue(c??``)},[n,e,r,t,i])}function gp({query:e=null,variables:t=null,headers:n=null}={}){let r=e?bp(e):null;return{id:vp(),hash:yp({query:e,variables:t,headers:n}),title:r||Sp,query:e,variables:t,headers:n,operationName:r,response:null}}function _p(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;let i={...n,...t};return{...i,hash:yp(i),title:i.operationName||(i.query?bp(i.query):void 0)||Sp}})}}function vp(){let e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function yp(e){return[e.query??``,e.variables??``,e.headers??``].join(`|`)}function bp(e){return/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e)?.[2]??null}function xp(){let{storage:e}=As.getState(),t=e.get(Cp);if(t){let n=JSON.parse(t);e.set(Cp,JSON.stringify(n,(e,t)=>e===`headers`?null:t))}}var Sp=`<untitled>`,Cp=`tabState`;function wp(){return Bs([z(()=>import(`./hint-BeClDolj.js`),__vite__mapDeps([26,1,0,18,19,21])),z(()=>import(`./lint-C95JxE-9.js`),__vite__mapDeps([27,1,0,18,19])),z(()=>import(`./mode-qWdu7sG1.js`),__vite__mapDeps([28,1,0,25]))])}var Tp=Ep;function Ep(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onEdit:s,readOnly:c}=r,l=i===void 0?Ls:i,u=a===void 0?Rs:a,d=c!==void 0&&c,f=t||Tp,p;n[2]===f?p=n[3]:(p={nonNull:!0,caller:f},n[2]=f,n[3]=p);let{initialVariables:m,variableEditor:h,setVariableEditor:g}=Mp(p),_=zp(),v=t||Tp,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=jf(y),x=t||Tp,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=Nf(S),w=(0,q.useRef)(null),T,E;n[8]!==l||n[9]!==m||n[10]!==d||n[11]!==g?(T=()=>{let e=!0;return wp().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:m,lineNumbers:!0,tabSize:2,mode:`graphql-variables`,theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:d?`nocursor`:!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:zs});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,Dp),g(r)}),()=>{e=!1}},E=[l,m,d,g],n[8]=l,n[9]=m,n[10]=d,n[11]=g,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,q.useEffect)(T,E),Sf(h,`keyMap`,u),Cf(h,s,Op,`variables`,Tp),wf(h,o);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Tf(h,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Tf(h,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Tf(h,k,b),w}function Dp(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var Op=`variables`,Y=ke(),kp=Ds(`EditorContext`),Ap=e=>{let t=(0,J.c)(88),n=Ns(),[r,i]=(0,q.useState)(null),[a,o]=(0,q.useState)(null),[s,c]=(0,q.useState)(null),[l,u]=(0,q.useState)(null),d;t[0]!==e.shouldPersistHeaders||t[1]!==n?(d=()=>{let t=n.get(Np)!==null;return e.shouldPersistHeaders!==!1&&t?n.get(Np)===`true`:!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=d):d=t[2];let[f,p]=(0,q.useState)(d);xf(r,e.headers),xf(a,e.query),xf(s,e.response),xf(l,e.variables);let m;t[3]===f?m=t[4]:(m={shouldPersistHeaders:f},t[3]=f,t[4]=m);let h=mp(m),g;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==f||t[13]!==n||t[14]!==h?(g=()=>{let t=e.query??n.get(`query`)??null,r=e.variables??n.get(`variables`)??null,i=e.headers??n.get(`headers`)??null,a=e.response??``,o=op({query:t,variables:r,headers:i,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||`# Welcome to GraphiQL
31
+ `,a.map=[t,e.line],!0}function du(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function fu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(pl(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function pu(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!pl(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function mu(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!pl(e.src.charCodeAt(r))?-1:r}function hu(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1}else{if(a===41||a===46)break;return-1}}return i<r&&(a=e.src.charCodeAt(i),!pl(a))?-1:i}function gu(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function _u(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=hu(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=mu(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=hu(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=mu(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&gu(e,h),!0}var vu=999;function yu(e){let t=e.length;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n);if(r<55296||r>56319)continue;let i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(t--,n++)}return t}function bu(e,t){return Math.min(e.eMarks[t]+1,e.src.length)}function xu(e,t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return-1;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return-1}return e.bMarks[t]+e.tShift[t]}function Su(e,t,n,r){let i=e.src,a=e.bMarks[t]+e.tShift[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||i.charCodeAt(a)!==91)return!1;let s=bu(e,t),c=``,l=-1,u=++a;for(;a<s;){if(c.length+a-u>vu*2)return!1;let t=i.charCodeAt(a);if(t===91)return!1;if(t===93){l=a;break}if(t===92&&(t=i.charCodeAt(++a)),t===10&&a<s){let t=xu(e,o);if(t<0)return!1;c+=i.slice(u,s),a=u=t,s=bu(e,o++)}else a++}if(l<0||i.charCodeAt(l+1)!==58||(c+=i.slice(u,l),c.length>vu&&yu(c)>vu))return!1;for(a=l+2;a<s;){let t=i.charCodeAt(a);if(t===10){let t=xu(e,o);if(t<0)break;a=t,s=bu(e,o++)}else if(pl(t))a++;else break}let d=e.md.helpers.parseLinkDestination(i,a,s);if(!d.ok)return!1;let f=e.md.normalizeLink(d.str);if(!e.md.validateLink(f))return!1;a=d.pos;let p=a,m=s,h=o;for(;a<s;){let t=i.charCodeAt(a);if(t===10){let t=xu(e,o);if(t<0)break;a=t,s=bu(e,o++)}else if(pl(t))a++;else break}let g=a,_=e.md.helpers.parseLinkTitle(i,a,s);for(;_.can_continue;){let t=xu(e,o);if(t<0)break;a=t,s=bu(e,o++),_=e.md.helpers.parseLinkTitle(i,a,s,_)}let v;for(g!==p&&_.ok?(v=_.str,a=_.pos):(v=``,a=p,s=m,o=h);a<s&&pl(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10&&v)for(v=``,a=p,s=m,o=h;a<s&&pl(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10)return!1;let y=vl(c);return y?(r||(e.env.references===void 0&&(e.env.references={}),e.env.references[y]===void 0&&(e.env.references[y]={title:v,href:f}),e.line=o),!0):!1}var Cu=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),wu=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Tu=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`;RegExp(`^(?:`+wu+`|`+Tu+`|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);var Eu=RegExp(`^(?:`+wu+`|`+Tu+`)`),Du=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+Cu.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Eu.source+`\\s*$`),/^$/,!1]];function Ou(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Du.length&&!Du[s][0].test(o);s++);if(s===Du.length)return!1;if(r)return Du[s][2];let c=t+1,l=Du[s][1].test(``);if(!Du[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Du[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function ku(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!pl(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&pl(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=bl(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function Au(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=bl(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function ju(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=bl(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var Mu=[[`table`,lu,[`paragraph`,`reference`]],[`code`,uu],[`fence`,du,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,fu,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,pu,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,_u,[`paragraph`,`reference`,`blockquote`]],[`reference`,Su],[`html_block`,Ou,[`paragraph`,`reference`,`blockquote`]],[`heading`,ku,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Au],[`paragraph`,ju]];function Nu(){this.ruler=new Ol;for(let e=0;e<Mu.length;e++)this.ruler.push(Mu[e][0],Mu[e][1],{alt:(Mu[e][2]||[]).slice()})}Nu.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},Nu.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},Nu.prototype.State=au;function Pu(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.skipHtmlSpecial=!1,this.linkLevel=0}Pu.prototype.pushPending=function(){let e=new kl(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},Pu.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new kl(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Pu.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=_l(i)||gl(i),l=_l(s)||gl(s),u=ml(i),d=ml(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},Pu.prototype.Token=kl;function Fu(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Iu(e,t){let n=e.pos;for(;n<e.posMax&&!Fu(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function Lu(e){return e>=65&&e<=90||e>=97&&e<=122}function Ru(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function zu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&Ru(e.src.charCodeAt(a-1));)a--;if(a===n||!Lu(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(c);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=c.length-o,!0}function Bu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&pl(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Vu=[];for(let e=0;e<256;e++)Vu.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){Vu[e.charCodeAt(0)]=1});function Hu(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),pl(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&Vu[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function Uu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function Wu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Gu(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function Ku(e){let t=e.tokens_meta,n=e.tokens_meta.length;Gu(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Gu(e,t[r].delimiters)}var qu={tokenize:Wu,postProcess:Ku};function Ju(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Yu(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Xu(e){let t=e.tokens_meta,n=e.tokens_meta.length;Yu(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Yu(e,t[r].delimiters)}var Zu={tokenize:Ju,postProcess:Xu};function Qu(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),pl(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),pl(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),pl(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[vl(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function $u(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),pl(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),pl(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),pl(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[vl(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var ed=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,td=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function nd(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(td.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(ed.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function rd(e){return/^<a[>\s]/i.test(e)}function id(e){return/^<\/a\s*>/i.test(e)}function ad(e){let t=e|32;return t>=97&&t<=122}function od(e,t){let n=e.src,r,i;if(n.startsWith(`<!--`,t)){if(n.startsWith(`>`,t+4))return t+5;if(n.startsWith(`->`,t+4))return t+6;r=t+4,i=`-->`}else if(n.startsWith(`<![CDATA[`,t))r=t+9,i=`]]>`;else if(n.charCodeAt(t+1)===63)r=t+2,i=`?>`;else if(ad(n.charCodeAt(t+2)))r=t+3,i=`>`;else return-1;if(e.skipHtmlSpecial)return-1;let a=n.indexOf(i,r);return a<0?(e.skipHtmlSpecial=!0,-1):a+i.length}function sd(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i,a=e.src.charCodeAt(r+1);if(a===33||a===63)i=od(e,r);else if(a===47||ad(a)){let t=e.src.slice(r).match(Eu);i=t?r+t[0].length:-1}else return!1;if(i<0)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=e.src.slice(r,i),rd(t.content)&&e.linkLevel++,id(t.content)&&e.linkLevel--}return e.pos=i,!0}var cd=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ld=/^&([a-z][a-z0-9]{1,31});/i;function ud(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(cd);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Qc(t)?$c(t):$c(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(ld);if(r){let n=Wc(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function dd(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function fd(e){let t=e.tokens_meta,n=e.tokens_meta.length;dd(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&dd(t[e].delimiters)}function pd(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var md=[[`text`,Iu],[`linkify`,zu],[`newline`,Bu],[`escape`,Hu],[`backticks`,Uu],[`strikethrough`,qu.tokenize],[`emphasis`,Zu.tokenize],[`link`,Qu],[`image`,$u],[`autolink`,nd],[`html_inline`,sd],[`entity`,ud]],hd=[[`balance_pairs`,fd],[`strikethrough`,qu.postProcess],[`emphasis`,Zu.postProcess],[`fragments_join`,pd]];function gd(){this.ruler=new Ol;for(let e=0;e<md.length;e++)this.ruler.push(md[e][0],md[e][1]);this.ruler2=new Ol;for(let e=0;e<hd.length;e++)this.ruler2.push(hd[e][0],hd[e][1])}gd.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},gd.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},gd.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},gd.prototype.State=Pu;function _d(e){let t={};e||={},t.src_Any=vc.source,t.src_Cc=yc.source,t.src_Z=Cc.source,t.src_P=xc.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function vd(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function yd(e){return Object.prototype.toString.call(e)}function bd(e){return yd(e)===`[object String]`}function xd(e){return yd(e)===`[object Object]`}function Sd(e){return yd(e)===`[object RegExp]`}function Cd(e){return yd(e)===`[object Function]`}function wd(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Td={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ed(e){return Object.keys(e||{}).reduce(function(e,t){return e||Td.hasOwnProperty(t)},!1)}var Dd={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Od=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,kd=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function Ad(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function jd(){return function(e,t){t.normalize(e)}}function Md(e){let t=e.re=_d(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Od),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};e.__compiled__[t]=r,xd(n)?(Sd(n.validate)?r.validate=Ad(n.validate):Cd(n.validate)?r.validate=n.validate:a(t,n),Cd(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=jd()):bd(n)?i.push(t):a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:jd()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(wd).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function Nd(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function Pd(e,t){if(!(this instanceof Pd))return new Pd(e,t);t||Ed(e)&&(t=e,e={}),this.__opts__=vd({},Td,t),this.__schemas__=vd({},Dd,e),this.__compiled__={},this.__tlds__=kd,this.__tlds_replaced__=!1,this.re={},Md(this)}Pd.prototype.add=function(e,t){return this.__schemas__[e]=t,Md(this),this},Pd.prototype.set=function(e){return this.__opts__=vd(this.__opts__,e),this},Pd.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},Pd.prototype.pretest=function(e){return this.re.pretest.test(e)},Pd.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Pd.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new Nd(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},Pd.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Nd(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},Pd.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Md(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Md(this),this)},Pd.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)},Pd.prototype.onCompile=function(){};var Fd=2147483647,Id=36,Ld=1,Rd=26,zd=38,Bd=700,Vd=72,Hd=128,Ud=`-`,Wd=/^xn--/,Gd=/[^\0-\x7F]/,Kd=/[\x2E\u3002\uFF0E\uFF61]/g,qd={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},Jd=35,Yd=Math.floor,Xd=String.fromCharCode;function Zd(e){throw RangeError(qd[e])}function Qd(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function $d(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(Kd,`.`);let i=Qd(e.split(`.`),t).join(`.`);return r+i}function ef(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var tf=e=>String.fromCodePoint(...e),nf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Id},rf=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},af=function(e,t,n){let r=0;for(e=n?Yd(e/Bd):e>>1,e+=Yd(e/t);e>455;r+=Id)e=Yd(e/Jd);return Yd(r+36*e/(e+zd))},of=function(e){let t=[],n=e.length,r=0,i=Hd,a=Vd,o=e.lastIndexOf(Ud);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Zd(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Id;;i+=Id){s>=n&&Zd(`invalid-input`);let o=nf(e.charCodeAt(s++));o>=Id&&Zd(`invalid-input`),o>Yd((Fd-r)/t)&&Zd(`overflow`),r+=o*t;let c=i<=a?Ld:i>=a+Rd?Rd:i-a;if(o<c)break;let l=Id-c;t>Yd(Fd/l)&&Zd(`overflow`),t*=l}let c=t.length+1;a=af(r-o,c,o==0),Yd(r/c)>Fd-i&&Zd(`overflow`),i+=Yd(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},sf=function(e){let t=[];e=ef(e);let n=e.length,r=Hd,i=0,a=Vd;for(let n of e)n<128&&t.push(Xd(n));let o=t.length,s=o;for(o&&t.push(Ud);s<n;){let n=Fd;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>Yd((Fd-i)/c)&&Zd(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Fd&&Zd(`overflow`),n===r){let e=i;for(let n=Id;;n+=Id){let r=n<=a?Ld:n>=a+Rd?Rd:n-a;if(e<r)break;let i=e-r,o=Id-r;t.push(Xd(rf(r+i%o,0))),e=Yd(i/o)}t.push(Xd(rf(e,0))),a=af(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},cf={version:`2.3.1`,ucs2:{decode:ef,encode:tf},decode:of,encode:sf,toASCII:function(e){return $d(e,function(e){return Gd.test(e)?`xn--`+sf(e):e})},toUnicode:function(e){return $d(e,function(e){return Wd.test(e)?of(e.slice(4).toLowerCase()):e})}},lf={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},uf=/^(vbscript|javascript|file|data):/,df=/^data:image\/(gif|png|jpeg|webp);/;function ff(e){let t=e.trim().toLowerCase();return!uf.test(t)||df.test(t)}var pf=[`http:`,`https:`,`mailto:`];function mf(e){let t=gc(e,!0);if(t.hostname&&(!t.protocol||pf.indexOf(t.protocol)>=0))try{t.hostname=cf.toASCII(t.hostname)}catch{}return rc(ic(t))}function hf(e){let t=gc(e,!0);if(t.hostname&&(!t.protocol||pf.indexOf(t.protocol)>=0))try{t.hostname=cf.toUnicode(t.hostname)}catch{}return ec(ic(t),ec.defaultChars+`%`)}function gf(e,t){if(!(this instanceof gf))return new gf(e,t);t||qc(e)||(t=e||{},e=`default`),this.inline=new gd,this.block=new Nu,this.core=new iu,this.renderer=new Dl,this.linkify=new Pd,this.validateLink=ff,this.normalizeLink=mf,this.normalizeLinkText=hf,this.utils=Gc,this.helpers=Xc({},Tl),this.options={},this.configure(e),t&&this.set(t)}gf.prototype.set=function(e){return Xc(this.options,e),this},gf.prototype.configure=function(e){let t=this;if(qc(e)){let t=e;if(e=lf[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},gf.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},gf.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},gf.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},gf.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},gf.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},gf.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},gf.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var _f=new gf({breaks:!1,linkify:!0});function vf(e,t,{schema:n,setSchemaReference:r},i,a){Bs([],{useCommonAddons:!1}).then(e=>{let n,r,i,a,s,c,l,u,d;e.on(t,`select`,(e,t)=>{if(!n){let e=t.parentNode;n=document.createElement(`div`),n.className=`CodeMirror-hint-information`,e.append(n);let f=document.createElement(`header`);f.className=`CodeMirror-hint-information-header`,n.append(f),r=document.createElement(`span`),r.className=`CodeMirror-hint-information-field-name`,f.append(r),i=document.createElement(`span`),i.className=`CodeMirror-hint-information-type-name-pill`,f.append(i),a=document.createElement(`span`),i.append(a),s=document.createElement(`a`),s.className=`CodeMirror-hint-information-type-name`,s.href=`javascript:void 0`,s.addEventListener(`click`,o),i.append(s),c=document.createElement(`span`),i.append(c),l=document.createElement(`div`),l.className=`CodeMirror-hint-information-description`,n.append(l),u=document.createElement(`div`),u.className=`CodeMirror-hint-information-deprecation`,n.append(u);let p=document.createElement(`span`);p.className=`CodeMirror-hint-information-deprecation-label`,p.textContent=`Deprecated`,u.append(p),d=document.createElement(`div`),d.className=`CodeMirror-hint-information-deprecation-reason`,u.append(d);let m=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,``),10)||0,h=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,``),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+m+`px`,n.style.maxHeight=e.scrollTop+h+`px`)};e.addEventListener(`scroll`,g);let _;e.addEventListener(`DOMNodeRemoved`,_=t=>{t.target===e&&(e.removeEventListener(`scroll`,g),e.removeEventListener(`DOMNodeRemoved`,_),n?.removeEventListener(`click`,o),n=null,r=null,i=null,a=null,s=null,c=null,l=null,u=null,d=null,_=null)})}if(r&&(r.textContent=e.text),i&&a&&s&&c){if(e.type){i.style.display=`inline`;let t=e=>{ht(e)?(c.textContent=`!`+c.textContent,t(e.ofType)):D(e)?(a.textContent+=`[`,c.textContent=`]`+c.textContent,t(e.ofType)):s.textContent=e.name};a.textContent=``,c.textContent=``,t(e.type)}else a.textContent=``,s.textContent=``,c.textContent=``,i.style.display=`none`}l&&(e.description?(l.style.display=`block`,l.innerHTML=_f.render(e.description)):(l.style.display=`none`,l.innerHTML=``)),u&&d&&(e.deprecationReason?(u.style.display=`block`,d.innerHTML=_f.render(e.deprecationReason)):(u.style.display=`none`,d.innerHTML=``))})});function o(e){let t=i?.referencePlugin;if(!n||!t||!(e.currentTarget instanceof HTMLElement))return;let o=e.currentTarget.textContent||``,s=n.getType(o);s&&(i.setVisiblePlugin(t),r({kind:`Type`,type:s}),a?.(s))}}function yf(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}var bf=t(Hs());function xf(e,t){let n=(0,J.c)(4),r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&typeof t==`string`&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,q.useEffect)(r,i)}function Sf(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{e?.setOption(t,n)},a=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function Cf(e,t,n,r,i){let a=(0,J.c)(9),o;a[0]===i?o=a[1]:(o={nonNull:!0,caller:i},a[0]=i,a[1]=o);let{updateActiveTabValues:s}=Mp(o),c,l;a[2]!==t||a[3]!==e||a[4]!==n||a[5]!==r||a[6]!==s?(c=()=>{if(!e)return;let{storage:i}=As.getState(),a=yf(500,e=>{n!==null&&i.set(n,e)}),o=yf(100,e=>{s({[r]:e})}),c=(e,n)=>{if(!n)return;let r=e.getValue();a(r),o(r),t?.(r)};return e.on(`change`,c),()=>e.off(`change`,c)},l=[t,e,n,r,s],a[2]=t,a[3]=e,a[4]=n,a[5]=r,a[6]=s,a[7]=c,a[8]=l):(c=a[7],l=a[8]),(0,q.useEffect)(c,l)}function wf(e,t){let n=(0,J.c)(7),{schema:r,setSchemaReference:i}=Js(),a=Gs(),o,s;n[0]!==t||n[1]!==e||n[2]!==a||n[3]!==r||n[4]!==i?(o=()=>{if(!e)return;let n=(e,n)=>{vf(e,n,{schema:r,setSchemaReference:i},a,e=>{t?.({kind:`Type`,type:e,schema:r||void 0})})};return e.on(`hasCompletion`,n),()=>e.off(`hasCompletion`,n)},s=[t,e,a,r,i],n[0]=t,n[1]=e,n[2]=a,n[3]=r,n[4]=i,n[5]=o,n[6]=s):(o=n[5],s=n[6]),(0,q.useEffect)(o,s)}function Tf(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(let n of t)e.removeKeyMap(n);if(n){let r={};for(let e of t)r[e]=()=>n();e.addKeyMap(r)}}},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}var Ef=Af,Df=jf,Of=Nf,kf=Pf;function Af(e){let t=(0,J.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onCopyQuery:i}=n,a=r||Ef,o;t[2]===a?o=t[3]:(o={nonNull:!0,caller:a},t[2]=a,t[3]=o);let{queryEditor:s}=Mp(o),c;return t[4]!==i||t[5]!==s?(c=()=>{if(!s)return;let e=s.getValue();(0,bf.default)(e),i?.(e)},t[4]=i,t[5]=s,t[6]=c):c=t[6],c}function jf(e){let t=(0,J.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r}=n,i=r||Df,a;t[2]===i?a=t[3]:(a={nonNull:!0,caller:i},t[2]=i,t[3]=a);let{queryEditor:o}=Mp(a),{schema:s}=Js(),c;return t[4]!==o||t[5]!==s?(c=()=>{let e=o?.documentAST,t=o?.getValue();e&&t&&o.setValue(C(ms(e,s)))},t[4]=o,t[5]=s,t[6]=c):c=t[6],c}function Mf(e){return C(Le(e))}function Nf(e){let t=(0,J.c)(9),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onPrettifyQuery:i}=n,a=i===void 0?Mf:i,o=r||Of,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c,headerEditor:l,variableEditor:u}=Mp(s),d;return t[4]!==l||t[5]!==a||t[6]!==c||t[7]!==u?(d=async()=>{if(u){let e=u.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch{}}if(l){let e=l.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&l.setValue(t)}catch{}}if(c){let e=c.getValue();try{let t=await a(e);t!==e&&c.setValue(t)}catch{}}},t[4]=l,t[5]=a,t[6]=c,t[7]=u,t[8]=d):d=t[8],d}function Pf(e){let t=(0,J.c)(8),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{getDefaultFieldNames:r,caller:i}=n,{schema:a}=Js(),o=i||kf,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c}=Mp(s),l;return t[4]!==r||t[5]!==c||t[6]!==a?(l=()=>{if(!c)return;let e=c.getValue(),{insertions:t,result:n}=os(a,e,r);return t&&t.length>0&&c.operation(()=>{let e=c.getCursor(),r=c.indexFromPos(e);c.setValue(n||``);let i=0,a=t.map(e=>{let{index:t,string:n}=e;return i+=n.length,c.markText(c.posFromIndex(t+i),c.posFromIndex(t+i),{className:`auto-inserted-leaf`,clearOnEnter:!0,title:`Automatically added leaf fields`})});setTimeout(()=>{for(let e of a)e.clear()},7e3);let o=r;for(let{index:e,string:n}of t)e<r&&(o+=n.length);c.setCursor(c.posFromIndex(o))}),n},t[4]=r,t[5]=c,t[6]=a,t[7]=l):l=t[7],l}function Ff(){return Bs([z(()=>import(`./javascript-C5m9swjn.js`).then(e=>t(e.default)),__vite__mapDeps([12,1,0]))])}var If=Lf;function Lf(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onEdit:o,readOnly:s}=r,c=i===void 0?Ls:i,l=a===void 0?Rs:a,u=s!==void 0&&s,d=t||If,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialHeaders:p,headerEditor:m,setHeaderEditor:h,shouldPersistHeaders:g}=Mp(f),_=zp(),v=t||If,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=jf(y),x=t||If,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=Nf(S),w=(0,q.useRef)(null),T,E;n[8]!==c||n[9]!==p||n[10]!==u||n[11]!==h?(T=()=>{let e=!0;return Ff().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:p,lineNumbers:!0,tabSize:2,mode:{name:`javascript`,json:!0},theme:c,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:u?`nocursor`:!1,foldGutter:!0,gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:zs});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,Rf),h(r)}),()=>{e=!1}},E=[c,p,u,h],n[8]=c,n[9]=p,n[10]=u,n[11]=h,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,q.useEffect)(T,E),Sf(m,`keyMap`,l),Cf(m,o,g?zf:null,`headers`,If);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Tf(m,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Tf(m,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Tf(m,k,b),w}function Rf(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var zf=`headers`,Bf=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat([`\u2028`,`\u2029`,` `,`\xA0`]),Vf=RegExp(`[`+Bf.join(``)+`]`,`g`);function Hf(e){return e.replace(Vf,` `)}function Uf(){return Bs([z(()=>import(`./comment-CYtfOWQV.js`).then(e=>t(e.default)),__vite__mapDeps([13,1,0])),z(()=>import(`./search-dN6Hktna.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,0,8,10])),z(()=>import(`./hint-OOdT3SOJ.js`),__vite__mapDeps([15,1,0,2])),z(()=>import(`./lint-9YnF6p8d.js`),__vite__mapDeps([16,1,0])),z(()=>import(`./info-BJ-pHc23.js`),__vite__mapDeps([17,1,18,19,0,20,21,22])),z(()=>import(`./jump-CH2YkFff.js`),__vite__mapDeps([23,1,0,20,18,19,21])),z(()=>import(`./mode-BliQRZwK.js`),__vite__mapDeps([24,1,0,25]))])}var Wf=Yf;function Gf(e,t){e.state.lint.linterOptions.variableToType=t?.variableToType,e.options.lint.variableToType=t?.variableToType,e.options.hintOptions.variableToType=t?.variableToType}function Kf(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function qf(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function Jf(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function Yf(e,t){let n=(0,J.c)(40),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onCopyQuery:s,onEdit:c,onPrettifyQuery:l,readOnly:u}=r,d=i===void 0?Ls:i,f=a===void 0?Rs:a,p=u!==void 0&&u,{schema:m,setSchemaReference:h}=Js(),g=t||Wf,_;n[2]===g?_=n[3]:(_={nonNull:!0,caller:g},n[2]=g,n[3]=_);let{externalFragments:v,initialQuery:y,queryEditor:b,setOperationName:x,setQueryEditor:S,validationRules:C,variableEditor:w,updateActiveTabValues:T}=Mp(_),E=zp(),D=Ns(),O=Gs(),k=t||Wf,A;n[4]!==s||n[5]!==k?(A={caller:k,onCopyQuery:s},n[4]=s,n[5]=k,n[6]=A):A=n[6];let j=Af(A),M=t||Wf,N;n[7]===M?N=n[8]:(N={caller:M},n[7]=M,n[8]=N);let ee=jf(N),P=t||Wf,te;n[9]!==l||n[10]!==P?(te={caller:P,onPrettifyQuery:l},n[9]=l,n[10]=P,n[11]=te):te=n[11];let ne=Nf(te),re=(0,q.useRef)(null),ie=(0,q.useRef)(void 0),ae=(0,q.useRef)($f),oe,se;n[12]!==o||n[13]!==O||n[14]!==h?(oe=()=>{ae.current=e=>{let t=O?.referencePlugin;t&&(O.setVisiblePlugin(t),h(e),o?.(e))}},se=[o,O,h],n[12]=o,n[13]=O,n[14]=h,n[15]=oe,n[16]=se):(oe=n[15],se=n[16]),(0,q.useEffect)(oe,se);let ce,le;n[17]!==d||n[18]!==y||n[19]!==p||n[20]!==S?(ce=()=>{let e=!0;return Uf().then(t=>{if(!e)return;ie.current=t;let n=re.current;if(!n)return;let r=t(n,{value:y,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:`graphql`,theme:d,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:p?`nocursor`:!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:Ra.EXECUTABLE}},info:{schema:void 0,renderDescription:Qf,onClick(e){ae.current(e)}},jump:{schema:void 0,onClick(e){ae.current(e)}},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:{...zs,"Cmd-S"(){},"Ctrl-S"(){}}}),i=function(){r.showHint({completeSingle:!0,container:n})};r.addKeyMap({"Cmd-Space":i,"Ctrl-Space":i,"Alt-Space":i,"Shift-Space":i,"Shift-Alt-Space":i}),r.on(`keyup`,Zf);let a=!1;r.on(`startCompletion`,()=>{a=!0}),r.on(`endCompletion`,()=>{a=!1}),r.on(`keydown`,(e,t)=>{t.key===`Escape`&&a&&t.stopPropagation()}),r.on(`beforeChange`,Xf),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,S(r)}),()=>{e=!1}},le=[d,y,p,S],n[17]=d,n[18]=y,n[19]=p,n[20]=S,n[21]=ce,n[22]=le):(ce=n[21],le=n[22]),(0,q.useEffect)(ce,le),Sf(b,`keyMap`,f);let ue,de;n[23]!==c||n[24]!==b||n[25]!==m||n[26]!==x||n[27]!==D||n[28]!==T||n[29]!==w?(ue=()=>{if(!b)return;let e=function(e){var t;let n=Ao(m,e.getValue()),r=hs(e.operations??void 0,e.operationName??void 0,n?.operations);return e.documentAST=n?.documentAST??null,e.operationName=r??null,e.operations=n?.operations??null,w&&(Gf(w,n),(t=ie.current)==null||t.signal(w,`change`,w)),n?{...n,operationName:r}:null},t=yf(100,t=>{let n=t.getValue();D.set(ip,n);let r=t.operationName,i=e(t);i?.operationName!==void 0&&D.set(ap,i.operationName),c?.(n,i?.documentAST),i?.operationName&&r!==i.operationName&&x(i.operationName),T({query:n,operationName:i?.operationName??null})});return e(b),b.on(`change`,t),()=>b.off(`change`,t)},de=[c,b,m,x,D,w,T],n[23]=c,n[24]=b,n[25]=m,n[26]=x,n[27]=D,n[28]=T,n[29]=w,n[30]=ue,n[31]=de):(ue=n[30],de=n[31]),(0,q.useEffect)(ue,de),ep(b,m??null,ie),tp(b,C??null,ie),np(b,v,ie),wf(b,o);let F=E?.run,fe;n[32]!==b||n[33]!==F||n[34]!==x?(fe=()=>{if(!F||!b||!b.operations||!b.hasFocus()){F?.();return}let e=b.indexFromPos(b.getCursor()),t;for(let n of b.operations)n.loc&&n.loc.start<=e&&n.loc.end>=e&&(t=n.name?.value);t&&t!==b.operationName&&x(t),F()},n[32]=b,n[33]=F,n[34]=x,n[35]=fe):fe=n[35];let pe=fe,me;n[36]===Symbol.for(`react.memo_cache_sentinel`)?(me=[`Cmd-Enter`,`Ctrl-Enter`],n[36]=me):me=n[36],Tf(b,me,pe);let he;n[37]===Symbol.for(`react.memo_cache_sentinel`)?(he=[`Shift-Ctrl-C`],n[37]=he):he=n[37],Tf(b,he,j);let ge;n[38]===Symbol.for(`react.memo_cache_sentinel`)?(ge=[`Shift-Ctrl-P`,`Shift-Ctrl-F`],n[38]=ge):ge=n[38],Tf(b,ge,ne);let _e;return n[39]===Symbol.for(`react.memo_cache_sentinel`)?(_e=[`Shift-Ctrl-M`],n[39]=_e):_e=n[39],Tf(b,_e,ee),re}function Xf(e,t){var n;if(t.origin===`paste`){let e=t.text.map(Hf);(n=t.update)==null||n.call(t,t.from,t.to,e)}}function Zf(e,t){rp.test(t.key)&&e.execCommand(`autocomplete`)}function Qf(e){return _f.render(e)}function $f(){}function ep(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.schema!==t;Kf(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function tp(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.validationRules!==t;qf(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function np(e,t,n){let r=(0,J.c)(7),i;r[0]===t?i=r[1]:(i=[...t.values()],r[0]=t,r[1]=i);let a=i,o,s;r[2]!==n||r[3]!==e||r[4]!==a?(o=()=>{if(!e)return;let t=e.options.lint.externalFragments!==a;Jf(e,a),t&&n.current&&n.current.signal(e,`change`,e)},s=[e,a,n],r[2]=n,r[3]=e,r[4]=a,r[5]=o,r[6]=s):(o=r[5],s=r[6]),(0,q.useEffect)(o,s)}var rp=/^[a-zA-Z0-9_@(]$/,ip=`query`,ap=`operationName`;function op({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:a,shouldPersistHeaders:o}){let{storage:s}=As.getState(),c=s.get(Cp);try{if(!c)throw Error(`Storage for tabs is empty`);let e=JSON.parse(c),t=o?n:void 0;if(sp(e)){let r=yp({query:i,variables:a,headers:t}),o=-1;for(let t=0;t<e.tabs.length;t++){let n=e.tabs[t];n.hash=yp({query:n.query,variables:n.variables,headers:n.headers}),n.hash===r&&(o=t)}if(o>=0)e.activeTabIndex=o;else{let t=i?bp(i):null;e.tabs.push({id:vp(),hash:r,title:t||Sp,query:i,variables:a,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw Error(`Storage for tabs is invalid`)}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:a,headers:n??t}]).map(gp)}}}function sp(e){return e&&typeof e==`object`&&!Array.isArray(e)&&lp(e,`activeTabIndex`)&&`tabs`in e&&Array.isArray(e.tabs)&&e.tabs.every(cp)}function cp(e){return e&&typeof e==`object`&&!Array.isArray(e)&&up(e,`id`)&&up(e,`title`)&&dp(e,`query`)&&dp(e,`variables`)&&dp(e,`headers`)&&dp(e,`operationName`)&&dp(e,`response`)}function lp(e,t){return t in e&&typeof e[t]==`number`}function up(e,t){return t in e&&typeof e[t]==`string`}function dp(e,t){return t in e&&(typeof e[t]==`string`||e[t]===null)}function fp({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,q.useCallback)(i=>{let a=e?.getValue()??null,o=t?.getValue()??null,s=n?.getValue()??null,c=e?.operationName??null;return _p(i,{query:a,variables:o,headers:s,response:r?.getValue()??null,operationName:c})},[e,t,n,r])}function pp(e,t=!1){return JSON.stringify(e,(e,n)=>e===`hash`||e===`response`||!t&&e===`headers`?null:n)}function mp({shouldPersistHeaders:e}){return(0,q.useCallback)(t=>{let{storage:n}=As.getState();yf(500,e=>{n.set(Cp,e)})(pp(t,e))},[e])}function hp({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,q.useCallback)(({query:a,variables:o,headers:s,response:c})=>{e?.setValue(a??``),t?.setValue(o??``),n?.setValue(s??i??``),r?.setValue(c??``)},[n,e,r,t,i])}function gp({query:e=null,variables:t=null,headers:n=null}={}){let r=e?bp(e):null;return{id:vp(),hash:yp({query:e,variables:t,headers:n}),title:r||Sp,query:e,variables:t,headers:n,operationName:r,response:null}}function _p(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;let i={...n,...t};return{...i,hash:yp(i),title:i.operationName||(i.query?bp(i.query):void 0)||Sp}})}}function vp(){let e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function yp(e){return[e.query??``,e.variables??``,e.headers??``].join(`|`)}function bp(e){return/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e)?.[2]??null}function xp(){let{storage:e}=As.getState(),t=e.get(Cp);if(t){let n=JSON.parse(t);e.set(Cp,JSON.stringify(n,(e,t)=>e===`headers`?null:t))}}var Sp=`<untitled>`,Cp=`tabState`;function wp(){return Bs([z(()=>import(`./hint-BOYONUEE.js`),__vite__mapDeps([26,1,0,18,19,21])),z(()=>import(`./lint-DCfZNhwm.js`),__vite__mapDeps([27,1,0,18,19])),z(()=>import(`./mode-CoRhIqhf.js`),__vite__mapDeps([28,1,0,25]))])}var Tp=Ep;function Ep(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onEdit:s,readOnly:c}=r,l=i===void 0?Ls:i,u=a===void 0?Rs:a,d=c!==void 0&&c,f=t||Tp,p;n[2]===f?p=n[3]:(p={nonNull:!0,caller:f},n[2]=f,n[3]=p);let{initialVariables:m,variableEditor:h,setVariableEditor:g}=Mp(p),_=zp(),v=t||Tp,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=jf(y),x=t||Tp,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=Nf(S),w=(0,q.useRef)(null),T,E;n[8]!==l||n[9]!==m||n[10]!==d||n[11]!==g?(T=()=>{let e=!0;return wp().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:m,lineNumbers:!0,tabSize:2,mode:`graphql-variables`,theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:d?`nocursor`:!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:zs});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,Dp),g(r)}),()=>{e=!1}},E=[l,m,d,g],n[8]=l,n[9]=m,n[10]=d,n[11]=g,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,q.useEffect)(T,E),Sf(h,`keyMap`,u),Cf(h,s,Op,`variables`,Tp),wf(h,o);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Tf(h,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Tf(h,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Tf(h,k,b),w}function Dp(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var Op=`variables`,Y=ke(),kp=Ds(`EditorContext`),Ap=e=>{let t=(0,J.c)(88),n=Ns(),[r,i]=(0,q.useState)(null),[a,o]=(0,q.useState)(null),[s,c]=(0,q.useState)(null),[l,u]=(0,q.useState)(null),d;t[0]!==e.shouldPersistHeaders||t[1]!==n?(d=()=>{let t=n.get(Np)!==null;return e.shouldPersistHeaders!==!1&&t?n.get(Np)===`true`:!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=d):d=t[2];let[f,p]=(0,q.useState)(d);xf(r,e.headers),xf(a,e.query),xf(s,e.response),xf(l,e.variables);let m;t[3]===f?m=t[4]:(m={shouldPersistHeaders:f},t[3]=f,t[4]=m);let h=mp(m),g;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==f||t[13]!==n||t[14]!==h?(g=()=>{let t=e.query??n.get(`query`)??null,r=e.variables??n.get(`variables`)??null,i=e.headers??n.get(`headers`)??null,a=e.response??``,o=op({query:t,variables:r,headers:i,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||`# Welcome to GraphiQL
32
32
  #
33
33
  # GraphiQL is an in-browser tool for writing, validating, and
34
34
  # testing GraphQL queries.
@@ -92,7 +92,7 @@ $1`:e.name,insertTextMode:Di.adjustIndentation,insertTextFormat:wi.Snippet}))):m
92
92
 
93
93
  `})],activeTabIndex:t.tabs.length};return h(n),M(n.tabs[n.activeTabIndex]),D?.(n),n})},t[35]=O,t[36]=k,t[37]=D,t[38]=M,t[39]=h,t[40]=E,t[41]=N):N=t[41];let ee=N,P;t[42]!==D||t[43]!==M||t[44]!==h?(P=e=>{y(t=>{let n={...t,activeTabIndex:e};return h(n),M(n.tabs[n.activeTabIndex]),D?.(n),n})},t[42]=D,t[43]=M,t[44]=h,t[45]=P):P=t[45];let te=P,ne;t[46]!==D||t[47]!==M||t[48]!==h?(ne=e=>{y(t=>{let n=t.tabs[t.activeTabIndex],r={tabs:e,activeTabIndex:e.indexOf(n)};return h(r),M(r.tabs[r.activeTabIndex]),D?.(r),r})},t[46]=D,t[47]=M,t[48]=h,t[49]=ne):ne=t[49];let re=ne,ie;t[50]!==D||t[51]!==M||t[52]!==h?(ie=e=>{y(t=>{let n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return h(n),M(n.tabs[n.activeTabIndex]),D?.(n),n})},t[50]=D,t[51]=M,t[52]=h,t[53]=ie):ie=t[53];let ae=ie,oe;t[54]!==D||t[55]!==h?(oe=e=>{y(t=>{let n=_p(t,e);return h(n),D?.(n),n})},t[54]=D,t[55]=h,t[56]=oe):oe=t[56];let se=oe,{onEditOperationName:ce}=e,le;t[57]!==ce||t[58]!==a||t[59]!==se?(le=e=>{a&&(jp(a,e),se({operationName:e}),ce?.(e))},t[57]=ce,t[58]=a,t[59]=se,t[60]=le):le=t[60];let ue=le,de,F;if(t[61]!==e.externalFragments){if(F=new Map,Array.isArray(e.externalFragments))for(let t of e.externalFragments)F.set(t.name.value,t);else if(typeof e.externalFragments==`string`)ye(Le(e.externalFragments,{}),{FragmentDefinition(e){F.set(e.name.value,e)}});else if(e.externalFragments)throw Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=F}else F=t[62];de=F;let fe=de,pe;t[63]===e.validationRules?pe=t[64]:(pe=e.validationRules||[],t[63]=e.validationRules,t[64]=pe);let me=pe,he;t[65]!==ee||t[66]!==te||t[67]!==ae||t[68]!==fe||t[69]!==r||t[70]!==_.headers||t[71]!==_.query||t[72]!==_.response||t[73]!==_.variables||t[74]!==re||t[75]!==a||t[76]!==s||t[77]!==ue||t[78]!==x||t[79]!==f||t[80]!==v||t[81]!==se||t[82]!==me||t[83]!==l?(he={...v,addTab:ee,changeTab:te,moveTab:re,closeTab:ae,updateActiveTabValues:se,headerEditor:r,queryEditor:a,responseEditor:s,variableEditor:l,setHeaderEditor:i,setQueryEditor:o,setResponseEditor:c,setVariableEditor:u,setOperationName:ue,initialQuery:_.query,initialVariables:_.variables,initialHeaders:_.headers,initialResponse:_.response,externalFragments:fe,validationRules:me,shouldPersistHeaders:f,setShouldPersistHeaders:x},t[65]=ee,t[66]=te,t[67]=ae,t[68]=fe,t[69]=r,t[70]=_.headers,t[71]=_.query,t[72]=_.response,t[73]=_.variables,t[74]=re,t[75]=a,t[76]=s,t[77]=ue,t[78]=x,t[79]=f,t[80]=v,t[81]=se,t[82]=me,t[83]=l,t[84]=he):he=t[84];let ge=he,_e;return t[85]!==A||t[86]!==ge?(_e=(0,Y.jsx)(kp.Provider,{value:ge,children:A}),t[85]=A,t[86]=ge,t[87]=_e):_e=t[87],_e};function jp(e,t){e.operationName=t}var Mp=Os(kp),Np=`shouldPersistHeaders`,Pp=t(Ts()),Fp=t(Es()),Ip=Ds(`ExecutionContext`),Lp=e=>{let t=(0,J.c)(26),{fetcher:n,getDefaultFieldNames:r,children:i,operationName:a}=e;if(typeof n!=`function`)throw TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={nonNull:!0,caller:Lp},t[0]=o):o=t[0];let{externalFragments:s,headerEditor:c,queryEditor:l,responseEditor:u,variableEditor:d,updateActiveTabValues:f}=Mp(o),p;t[1]===r?p=t[2]:(p={getDefaultFieldNames:r,caller:Lp},t[1]=r,t[2]=p);let m=Pf(p),[h,g]=(0,q.useState)(!1),[_,v]=(0,q.useState)(null),y=(0,q.useRef)(0),b;t[3]===_?b=t[4]:(b=()=>{_?.unsubscribe(),g(!1),v(null)},t[3]=_,t[4]=b);let x=b,S;t[5]!==m||t[6]!==s||t[7]!==n||t[8]!==c||t[9]!==a||t[10]!==l||t[11]!==u||t[12]!==x||t[13]!==_||t[14]!==f||t[15]!==d?(S=async()=>{if(!l||!u)return;if(_){x();return}let e=e=>{u.setValue(e),f({response:e})};y.current+=1;let t=y.current,r=m()||l.getValue(),i=d?.getValue(),o;try{o=Bp({json:i,errorMessageParse:`Variables are invalid JSON`,errorMessageType:`Variables are not a JSON object.`})}catch(t){let n=t;e(n instanceof Error?n.message:`${n}`);return}let p=c?.getValue(),h;try{h=Bp({json:p,errorMessageParse:`Headers are invalid JSON`,errorMessageType:`Headers are not a JSON object.`})}catch(t){let n=t;e(n instanceof Error?n.message:`${n}`);return}if(s){let e=l.documentAST?Co(l.documentAST,s):[];e.length>0&&(r+=`
94
94
  `+e.map(Up).join(`
95
- `))}e(``),g(!0);let b=a??l.operationName??void 0,S=h??void 0,C=l.documentAST??void 0;try{let i={},a=n=>{if(t!==y.current)return;let r=Array.isArray(n)?n:!1;if(!r&&typeof n==`object`&&n&&`hasNext`in n&&(r=[n]),r){for(let e of r)Hp(i,e);g(!1),e(as(i))}else{let t=as(n);g(!1),e(t)}},s=await n({query:r,variables:o,operationName:b},{headers:S,documentAST:C});Zo(s)?v(s.subscribe({next(e){a(e)},error(t){g(!1),t&&e(is(t)),v(null)},complete(){g(!1),v(null)}})):Qo(s)?(v({unsubscribe:()=>{var e;return(e=s[Symbol.asyncIterator]()).return?.call(e)}}),await Rp(a,s),g(!1),v(null)):a(s)}catch(t){let n=t;g(!1),e(is(n)),v(null)}},t[5]=m,t[6]=s,t[7]=n,t[8]=c,t[9]=a,t[10]=l,t[11]=u,t[12]=x,t[13]=_,t[14]=f,t[15]=d,t[16]=S):S=t[16];let C=S,w=!!_,T=a??null,E;t[17]!==h||t[18]!==C||t[19]!==x||t[20]!==w||t[21]!==T?(E={isFetching:h,isSubscribed:w,operationName:T,run:C,stop:x},t[17]=h,t[18]=C,t[19]=x,t[20]=w,t[21]=T,t[22]=E):E=t[22];let D=E,O;return t[23]!==i||t[24]!==D?(O=(0,Y.jsx)(Ip.Provider,{value:D,children:i}),t[23]=i,t[24]=D,t[25]=O):O=t[25],O};async function Rp(e,t){for await(let n of t)e(n)}var zp=Os(Ip);function Bp({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&e.trim()!==``?JSON.parse(e):void 0}catch(e){throw Error(`${t}: ${e instanceof Error?e.message:e}.`)}if(r!==void 0&&(typeof r!=`object`||!r||Array.isArray(r)))throw Error(n);return r}var Vp=new WeakMap;function Hp(e,t){var n;let r=[`data`,...t.path??[]];for(let n of[e,t])if(n.pending){let t=Vp.get(e);t===void 0&&(t=new Map,Vp.set(e,t));for(let{id:e,path:r}of n.pending)t.set(e,[`data`,...r])}let{items:i}=t;if(i){let{id:n}=t;if(n){if(r=Vp.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);(0,Fp.default)(e,r.join(`.`)).push(...i)}else{r=[`data`,...t.path??[]];for(let t of i)(0,Pp.default)(e,r.join(`.`),t),r[r.length-1]++}}let{data:a}=t;if(a){let{id:n}=t;if(n){if(r=Vp.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);let{subPath:i}=t;i!==void 0&&(r=[...r,...i])}(0,Pp.default)(e,r.join(`.`),a,{merge:!0})}if(t.errors&&(e.errors||=[],e.errors.push(...t.errors)),t.extensions&&(0,Pp.default)(e,`extensions`,t.extensions,{merge:!0}),t.incremental)for(let n of t.incremental)Hp(e,n);if(t.completed)for(let{id:r,errors:i}of t.completed)(n=Vp.get(e))==null||n.delete(r),i&&(e.errors||=[],e.errors.push(...i))}function Up(e){return C(e)}var Wp=e=>{let t=(0,J.c)(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,fetcher:c,getDefaultFieldNames:l,headers:u,inputValueDeprecation:d,introspectionQueryName:f,onEditOperationName:p,onSchemaChange:m,onTabChange:h,onTogglePluginVisibility:g,operationName:_,plugins:v,referencePlugin:y,query:b,response:x,schema:S,schemaDescription:C,shouldPersistHeaders:w,storage:T,validationRules:E,variables:D,visiblePlugin:O}=e,k;t[0]!==a||t[1]!==i||t[2]!==o||t[3]!==s||t[4]!==u||t[5]!==p||t[6]!==h||t[7]!==b||t[8]!==x||t[9]!==w||t[10]!==E||t[11]!==D?(k={defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,headers:u,onEditOperationName:p,onTabChange:h,query:b,response:x,shouldPersistHeaders:w,validationRules:E,variables:D},t[0]=a,t[1]=i,t[2]=o,t[3]=s,t[4]=u,t[5]=p,t[6]=h,t[7]=b,t[8]=x,t[9]=w,t[10]=E,t[11]=D,t[12]=k):k=t[12];let A=k,j;t[13]!==r||t[14]!==c||t[15]!==d||t[16]!==f||t[17]!==m||t[18]!==S||t[19]!==C?(j={dangerouslyAssumeSchemaIsValid:r,fetcher:c,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:m,schema:S,schemaDescription:C},t[13]=r,t[14]=c,t[15]=d,t[16]=f,t[17]=m,t[18]=S,t[19]=C,t[20]=j):j=t[20];let M=j,N;t[21]!==c||t[22]!==l||t[23]!==_?(N={getDefaultFieldNames:l,fetcher:c,operationName:_},t[21]=c,t[22]=l,t[23]=_,t[24]=N):N=t[24];let ee=N,P;t[25]!==g||t[26]!==v||t[27]!==y||t[28]!==O?(P={onTogglePluginVisibility:g,plugins:v,visiblePlugin:O,referencePlugin:y},t[25]=g,t[26]=v,t[27]=y,t[28]=O,t[29]=P):P=t[29];let te=P,ne;t[30]!==n||t[31]!==te?(ne=(0,Y.jsx)(Ws,{...te,children:n}),t[30]=n,t[31]=te,t[32]=ne):ne=t[32];let re;t[33]!==ee||t[34]!==ne?(re=(0,Y.jsx)(Lp,{...ee,children:ne}),t[33]=ee,t[34]=ne,t[35]=re):re=t[35];let ie;t[36]!==M||t[37]!==re?(ie=(0,Y.jsx)(qs,{...M,children:re}),t[36]=M,t[37]=re,t[38]=ie):ie=t[38];let ae;t[39]!==A||t[40]!==ie?(ae=(0,Y.jsx)(Ap,{...A,children:ie}),t[39]=A,t[40]=ie,t[41]=ae):ae=t[41];let oe;return t[42]!==T||t[43]!==ae?(oe=(0,Y.jsx)(js,{storage:T,children:ae}),t[42]=T,t[43]=ae,t[44]=oe):oe=t[44],oe};function Gp(e){let t=(0,J.c)(11),n=e===void 0?null:e,r=Ns(),i;t[0]!==n||t[1]!==r?(i=()=>{let e=r.get(Kp);switch(e){case`light`:return`light`;case`dark`:return`dark`;default:return typeof e==`string`&&r.set(Kp,``),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];let[a,o]=(0,q.useState)(i),s,c;t[3]===a?(s=t[4],c=t[5]):(s=()=>{document.body.classList.remove(`graphiql-light`,`graphiql-dark`),a&&document.body.classList.add(`graphiql-${a}`)},c=[a],t[3]=a,t[4]=s,t[5]=c),(0,q.useEffect)(s,c);let l;t[6]===r?l=t[7]:(l=e=>{r.set(Kp,e||``),o(e)},t[6]=r,t[7]=l);let u=l,d;return t[8]!==u||t[9]!==a?(d={theme:a,setTheme:u},t[8]=u,t[9]=a,t[10]=d):d=t[10],d}var Kp=`theme`,qp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:6,y:6,width:2,height:2,rx:1,fill:`currentColor`})),Jp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1 1L7 7L13 1`,stroke:`currentColor`,strokeWidth:1.5})),Yp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 7 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6 1.04819L2 5.04819L6 9.04819`,stroke:`currentColor`,strokeWidth:1.75})),Xp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M13 8L7 2L1 8`,stroke:`currentColor`,strokeWidth:1.5})),Zp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,stroke:`currentColor`,strokeWidth:3,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1 1L12.9998 12.9997`}),q.createElement(`path`,{d:`M13 1L1.00079 13.0003`})),Qp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`rect`,{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:`currentColor`,strokeWidth:1.5})),$p=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M5 9L9 5`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M5 5L9 9`,stroke:`currentColor`,strokeWidth:1.2})),em=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z`,fill:`currentColor`})),tm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2})),nm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0.5 12 12`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:7,y:5.5,width:2,height:2,rx:1,transform:`rotate(90 7 5.5)`,fill:`currentColor`}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z`,fill:`currentColor`})),rm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z`,fill:`currentColor`})),im=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`line`,{x1:13,y1:11.75,x2:6,y2:11.75,stroke:`currentColor`,strokeWidth:1.5})),am=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:5,y:5,width:2,height:2,rx:1,fill:`currentColor`}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z`,fill:`currentColor`})),om=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),sm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 24 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),q.createElement(`path`,{d:`M13.75 5.25V10.75H18.75`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),q.createElement(`path`,{d:`M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25`,stroke:`currentColor`,strokeWidth:1.5})),cm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`circle`,{cx:6,cy:6,r:5.4,stroke:`currentColor`,strokeWidth:1.2,strokeDasharray:`4.241025 4.241025`,transform:`rotate(22.5 6 6)`}),q.createElement(`circle`,{cx:6,cy:6,r:1,fill:`currentColor`})),lm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 19 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`})),um=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`circle`,{cx:5,cy:5,r:4.35,stroke:`currentColor`,strokeWidth:1.3}),q.createElement(`line`,{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:`currentColor`,strokeWidth:1.3})),dm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M6 4.5L9 7.5L12 4.5`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M12 13.5L9 10.5L6 13.5`,stroke:`currentColor`,strokeWidth:1.5})),fm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z`,fill:`currentColor`}),q.createElement(`path`,{d:`M11.5 4.5L9.5 2.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M5.5 10.5L3.5 8.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`})),pm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z`,fill:`currentColor`})),mm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 10 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z`})),hm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{width:25,height:25,viewBox:`0 0 25 25`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M10.2852 24.0745L13.7139 18.0742`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M14.5742 24.0749L17.1457 19.7891`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`})),gm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M4.75 9.25H1.25V12.75`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),q.createElement(`path`,{d:`M11.25 6.75H14.75V3.25`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),q.createElement(`path`,{d:`M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513`,stroke:`currentColor`,strokeWidth:1}),q.createElement(`path`,{d:`M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487`,stroke:`currentColor`,strokeWidth:1})),_m=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5`,stroke:`currentColor`,strokeWidth:1.2})),vm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z`,fill:`currentColor`})),ym=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z`,fill:`currentColor`,stroke:`currentColor`})),bm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z`,stroke:`currentColor`,strokeWidth:1.5})),xm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{width:16,height:16,rx:2,fill:`currentColor`})),Sm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{width:`1em`,height:`5em`,xmlns:`http://www.w3.org/2000/svg`,fillRule:`evenodd`,"aria-hidden":`true`,viewBox:`0 0 23 23`,style:{height:`1.5em`},clipRule:`evenodd`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z`,fill:`currentColor`,strokeWidth:.25,stroke:`currentColor`})),Cm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:5.5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),wm=X(qp),Tm=X(Jp),Em=X(Yp),Dm=X(Xp),Om=X(Zp),km=X(Qp),Am=X($p),jm=X(em),Mm=X(tm),Nm=X(nm),Pm=X(rm),Fm=X(im),Im=X(am),Lm=X(om),Rm=X(sm),zm=X(cm),Bm=X(lm),Vm=X(um),Hm=X(dm),Um=X(fm),Wm=X(pm),Gm=X(mm),Km=X(hm),qm=X(gm),Jm=X(_m),Ym=X(vm),Xm=X(ym),Zm=X(bm),Qm=X(xm),$m=X(Sm),eh=X(Cm);function X(e){let t=e.name.replace(`Svg`,``).replaceAll(/([A-Z])/g,` $1`).trimStart().toLowerCase()+` icon`,n=n=>{let r=(0,J.c)(2),i;return r[0]===n?i=r[1]:(i=(0,Y.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i),i};return n.displayName=e.name,n}function th(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=th(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t)}return r}function nh(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=th(e))&&(r&&(r+=` `),r+=t);return r}var rh=e=>{let t=(0,J.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:rh},t[3]=i):i=t[3];let{headerEditor:a}=Mp(i),o=Lf(n,rh),s,c;t[4]!==a||t[5]!==r?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=a,t[5]=r,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,q.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=nh(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,Y.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d},ih=Object.assign(e=>{let t=(0,J.c)(14),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={width:null,height:null},t[0]=n):n=t[0];let[r,i]=(0,q.useState)(n),[a,o]=(0,q.useState)(null),s=(0,q.useRef)(null),c=ah(e.token)?.href,l,u;t[1]===c?(l=t[2],u=t[3]):(l=()=>{s.current&&(c?fetch(c,{method:`HEAD`}).then(e=>{o(e.headers.get(`Content-Type`))}).catch(()=>{o(null)}):(i({width:null,height:null}),o(null)))},u=[c],t[1]=c,t[2]=l,t[3]=u),(0,q.useEffect)(l,u);let d;t[4]!==r.height||t[5]!==r.width||t[6]!==a?(d=r.width!==null&&r.height!==null?(0,Y.jsxs)(`div`,{children:[r.width,`x`,r.height,a===null?null:` `+a]}):null,t[4]=r.height,t[5]=r.width,t[6]=a,t[7]=d):d=t[7];let f=d,p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{i({width:s.current?.naturalWidth??null,height:s.current?.naturalHeight??null})},t[8]=p):p=t[8];let m;t[9]===c?m=t[10]:(m=(0,Y.jsx)(`img`,{onLoad:p,ref:s,src:c}),t[9]=c,t[10]=m);let h;return t[11]!==f||t[12]!==m?(h=(0,Y.jsxs)(`div`,{children:[m,f]}),t[11]=f,t[12]=m,t[13]=h):h=t[13],h},{shouldRender(e){let t=ah(e);return t?oh(t):!1}});function ah(e){if(e.type!==`string`)return;let t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+`//`+location.host)}catch{}}function oh(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}var sh=e=>{let t=(0,J.c)(2),n=Yf(e,sh),r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(`div`,{className:`graphiql-editor`,ref:n}),t[0]=n,t[1]=r),r},ch=Ie();function lh(){return Bs([z(()=>import(`./foldgutter-DMDmmXBR.js`).then(e=>t(e.default)),__vite__mapDeps([6,1,0])),z(()=>import(`./brace-fold-CvGVZqlg.js`).then(e=>t(e.default)),__vite__mapDeps([5,1,0])),z(()=>import(`./dialog-CJ-8k4qu.js`).then(e=>t(e.default)),__vite__mapDeps([10,1,0])),z(()=>import(`./search-dN6Hktna.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,0,8,10])),z(()=>import(`./searchcursor-BVQcGYNk.js`).then(e=>t(e.default)),__vite__mapDeps([8,1,0])),z(()=>import(`./jump-to-line-Dh-zRt5Y.js`).then(e=>t(e.default)),__vite__mapDeps([9,1,0,10])),z(()=>import(`./sublime-CKNGwGRF.js`).then(e=>t(e.default)),__vite__mapDeps([11,1,0,8,3])),z(()=>import(`./mode-C-zxMg4F.js`),__vite__mapDeps([29,1,0,25])),z(()=>import(`./info-addon-qxLJlsXZ.js`),__vite__mapDeps([22,1,0]))],{useCommonAddons:!1})}var uh=dh;function dh(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{responseTooltip:i,editorTheme:a,keyMap:o}=r,s=a===void 0?Ls:a,c=o===void 0?Rs:o,{fetchError:l,validationErrors:u}=Js(),d=t||uh,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialResponse:p,responseEditor:m,setResponseEditor:h}=Mp(f),g=(0,q.useRef)(null),_=(0,q.useRef)(i),v,y;n[4]===i?(v=n[5],y=n[6]):(v=()=>{_.current=i},y=[i],n[4]=i,n[5]=v,n[6]=y),(0,q.useEffect)(v,y);let b,x;n[7]!==s||n[8]!==p||n[9]!==h?(b=()=>{let e=!0;return lh().then(t=>{if(!e)return;let n=document.createElement(`div`),r=(0,ch.createRoot)(n);t.registerHelper(`info`,`graphql-results`,(e,t,i,a)=>{let o=_.current,s=[o&&(0,Y.jsx)(o,{pos:a,token:e}),ih.shouldRender(e)&&(0,Y.jsx)(ih,{token:e},`image-preview`)].filter(fh);if(s.length)return r.render(s),n;r.unmount()});let i=g.current;if(!i)return;let a=t(i,{value:p,lineWrapping:!0,readOnly:!0,theme:s,mode:`graphql-results`,foldGutter:!0,gutters:[`CodeMirror-foldgutter`],info:!0,extraKeys:zs});h(a)}),()=>{e=!1}},x=[s,p,h],n[7]=s,n[8]=p,n[9]=h,n[10]=b,n[11]=x):(b=n[10],x=n[11]),(0,q.useEffect)(b,x),Sf(m,`keyMap`,c);let S,C;return n[12]!==l||n[13]!==m||n[14]!==u?(S=()=>{l&&m?.setValue(l),u.length&&m?.setValue(is(u))},C=[m,l,u],n[12]=l,n[13]=m,n[14]=u,n[15]=S,n[16]=C):(S=n[15],C=n[16]),(0,q.useEffect)(S,C),g}function fh(e){return!!e}var ph=e=>{let t=(0,J.c)(2),n=dh(e,ph),r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(`section`,{className:`result-window`,"aria-label":`Result Window`,"aria-live":`polite`,"aria-atomic":`true`,ref:n}),t[0]=n,t[1]=r),r},mh=e=>{let t=(0,J.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:mh},t[3]=i):i=t[3];let{variableEditor:a}=Mp(i),o=Ep(n,mh),s,c;t[4]!==r||t[5]!==a?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=r,t[5]=a,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,q.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=nh(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,Y.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d};function hh(e){let t=(0,J.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:a,sizeThresholdFirst:o,sizeThresholdSecond:s,storageKey:c}=e,l=n===void 0?1:n,u=o===void 0?100:o,d=s===void 0?100:s,f=Ns(),p;t[0]!==f||t[1]!==c?(p=yf(500,e=>{c&&f.set(c,e)}),t[0]=f,t[1]=c,t[2]=p):p=t[2];let m=p,h;t[3]!==i||t[4]!==f||t[5]!==c?(h=()=>{let e=c&&f.get(c);return e===gh||i===`first`?`first`:e===_h||i===`second`?`second`:null},t[3]=i,t[4]=f,t[5]=c,t[6]=h):h=t[6];let[g,_]=(0,q.useState)(h),v;t[7]!==g||t[8]!==a?(v=e=>{e!==g&&(_(e),a?.(e))},t[7]=g,t[8]=a,t[9]=v):v=t[9];let y=v,b=(0,q.useRef)(null),x=(0,q.useRef)(null),S=(0,q.useRef)(null),C=(0,q.useRef)(`${l}`),w;t[10]!==f||t[11]!==c?(w=()=>{let e=c&&f.get(c)||C.current;b.current&&(b.current.style.flex=e===gh||e===_h?C.current:e),S.current&&(S.current.style.flex=`1`)},t[10]=f,t[11]=c,t[12]=w):w=t[12];let T;t[13]!==r||t[14]!==f||t[15]!==c?(T=[r,f,c],t[13]=r,t[14]=f,t[15]=c,t[16]=T):T=t[16],(0,q.useEffect)(w,T);let E,D;t[17]!==g||t[18]!==f||t[19]!==c?(D=()=>{let e=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.left=`-1000px`,t.style.position=`absolute`,t.style.opacity=`0`,t.style.height=`500px`,t.style.width=`500px`,b.current)){let e=parseFloat(b.current.style.flex);(!Number.isFinite(e)||e<1)&&(b.current.style.flex=`1`)}},t=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.width=``,t.style.height=``,t.style.opacity=``,t.style.position=``,t.style.left=``,c)){let e=f.get(c);b.current&&e!==gh&&e!==_h&&(b.current.style.flex=e||C.current)}};g===`first`?e(`first`):t(`first`),g===`second`?e(`second`):t(`second`)},E=[g,f,c],t[17]=g,t[18]=f,t[19]=c,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,q.useEffect)(D,E);let O,k;t[22]!==r||t[23]!==y||t[24]!==u||t[25]!==d||t[26]!==m?(O=()=>{if(!x.current||!b.current||!S.current)return;let e=x.current,t=b.current,n=t.parentElement,i=r===`horizontal`?`clientX`:`clientY`,a=r===`horizontal`?`left`:`top`,o=r===`horizontal`?`right`:`bottom`,s=r===`horizontal`?`clientWidth`:`clientHeight`,c=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();let c=r[i]-e.getBoundingClientRect()[a],l=function(r){if(r.buttons===0)return f();let l=r[i]-n.getBoundingClientRect()[a]-c,p=n.getBoundingClientRect()[o]-r[i]+c-e[s];if(l<u)y(`first`),m(gh);else if(p<d)y(`second`),m(_h);else{y(null);let e=`${l/p}`;t.style.flex=e,m(e)}};function f(){document.removeEventListener(`mousemove`,l),document.removeEventListener(`mouseup`,f)}document.addEventListener(`mousemove`,l),document.addEventListener(`mouseup`,f)};e.addEventListener(`mousedown`,c);let l=function(){b.current&&(b.current.style.flex=C.current),m(C.current),y(null)};return e.addEventListener(`dblclick`,l),()=>{e.removeEventListener(`mousedown`,c),e.removeEventListener(`dblclick`,l)}},k=[r,y,u,d,m],t[22]=r,t[23]=y,t[24]=u,t[25]=d,t[26]=m,t[27]=O,t[28]=k):(O=t[27],k=t[28]),(0,q.useEffect)(O,k);let A;return t[29]===g?A=t[30]:(A={dragBarRef:x,hiddenElement:g,firstRef:b,setHiddenElement:_,secondRef:S},t[29]=g,t[30]=A),A}var gh=`hide-first`,_h=`hide-second`,vh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`button`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});vh.displayName=`UnStyledButton`;var yh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(7),r;n[0]!==e.className||n[1]!==e.state?(r=nh(`graphiql-button`,{success:`graphiql-button-success`,error:`graphiql-button-error`}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2];let i;return n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,Y.jsx)(`button`,{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});yh.displayName=`Button`;var bh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-button-group`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});bh.displayName=`ButtonGroup`;var xh=Object.defineProperty,Sh=(e,t)=>xh(e,`name`,{value:t,configurable:!0}),Ch=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),wh=q.forwardRef(Sh(function(e,t){return(0,Y.jsx)(ee.span,{...e,ref:t,style:{...Ch,...e.style}})},`VisuallyHidden`)),Th=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(8),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-dialog-close`,e.className),n[0]=e.className,n[1]=r);let i,a;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(wh,{children:`Close dialog`}),a=(0,Y.jsx)(Om,{}),n[2]=i,n[3]=a):(i=n[2],a=n[3]);let o;return n[4]!==e||n[5]!==t||n[6]!==r?(o=(0,Y.jsx)(Ve,{asChild:!0,children:(0,Y.jsxs)(vh,{...e,ref:t,type:`button`,className:r,children:[i,a]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=o):o=n[7],o});Th.displayName=`Dialog.Close`;var Eh=Object.assign(e=>{let t=(0,J.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(A,{className:`graphiql-dialog-overlay`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=(0,Y.jsxs)(M,{children:[i,(0,Y.jsx)(s,{className:`graphiql-dialog`,children:n})]}),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a?(o=(0,Y.jsx)(te,{...r,children:a}),t[6]=r,t[7]=a,t[8]=o):o=t[8],o},{Close:Th,Title:g,Trigger:S,Description:ze}),Dh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(d,{asChild:!0,children:(0,Y.jsx)(`button`,{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Dh.displayName=`DropdownMenuButton`;var Oh=Object.assign(se,{Button:Dh,Item:e=>{let t=(0,J.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=nh(`graphiql-dropdown-item`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,Y.jsx)(Te,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},Content:e=>{let t=(0,J.c)(14),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({children:n,align:a,sideOffset:o,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`start`:a,c=o===void 0?5:o,l;t[6]===r?l=t[7]:(l=nh(`graphiql-dropdown-content`,r),t[6]=r,t[7]=l);let u;return t[8]!==s||t[9]!==n||t[10]!==i||t[11]!==c||t[12]!==l?(u=(0,Y.jsx)(ft,{children:(0,Y.jsx)(mt,{align:s,sideOffset:c,className:l,...i,children:n})}),t[8]=s,t[9]=n,t[10]=i,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}}),kh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(18),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({children:r,onlyShowFirstChild:i,type:o,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s=`graphiql-markdown-${o}`,c=i&&`graphiql-markdown-preview`,l;n[5]!==a.className||n[6]!==s||n[7]!==c?(l=nh(s,c,a.className),n[5]=a.className,n[6]=s,n[7]=c,n[8]=l):l=n[8];let u;n[9]===r?u=n[10]:(u=_f.render(r),n[9]=r,n[10]=u);let d;n[11]===u?d=n[12]:(d={__html:u},n[11]=u,n[12]=d);let f;return n[13]!==a||n[14]!==t||n[15]!==l||n[16]!==d?(f=(0,Y.jsx)(`div`,{...a,ref:t,className:l,dangerouslySetInnerHTML:d}),n[13]=a,n[14]=t,n[15]=l,n[16]=d,n[17]=f):f=n[17],f});kh.displayName=`MarkdownContent`;var Ah=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-spinner`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Ah.displayName=`Spinner`;var jh=(0,q.createContext)({});function Mh(e){let t=(0,q.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Nh=typeof window<`u`?q.useLayoutEffect:q.useEffect,Ph=(0,q.createContext)(null);function Fh(e,t){e.indexOf(t)===-1&&e.push(t)}function Ih(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Lh([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var Rh=(e,t,n)=>n>t?t:n<e?e:n,zh={},Bh=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Vh=e=>typeof e==`object`&&!!e,Hh=e=>/^0[^.\s]+$/u.test(e);function Uh(e){let t;return()=>(t===void 0&&(t=e()),t)}var Wh=e=>e,Gh=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Kh=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},qh=class{constructor(){this.subscriptions=[]}add(e){return Fh(this.subscriptions,e),()=>Ih(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Jh=e=>e*1e3,Yh=e=>e/1e3,Xh=(e,t)=>t?1e3/t*e:0,Zh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qh=1e-7,$h=12;function eg(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Zh(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Qh&&++s<$h);return o}function tg(e,t,n,r){if(e===t&&n===r)return Wh;let i=t=>eg(t,0,1,e,n);return e=>e===0||e===1?e:Zh(i(e),t,r)}var ng=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rg=e=>t=>1-e(1-t),ig=tg(.33,1.53,.69,.99),ag=rg(ig),og=ng(ag),sg=e=>e>=1?1:(e*=2)<1?.5*ag(e):.5*(2-2**(-10*(e-1))),cg=e=>1-Math.sin(Math.acos(e)),lg=rg(cg),ug=ng(cg),dg=tg(.42,0,1,1),fg=tg(0,0,.58,1),pg=tg(.42,0,.58,1),mg=e=>Array.isArray(e)&&typeof e[0]!=`number`,hg=e=>Array.isArray(e)&&typeof e[0]==`number`,gg={linear:Wh,easeIn:dg,easeInOut:pg,easeOut:fg,circIn:cg,circInOut:ug,circOut:lg,backIn:ag,backInOut:og,backOut:ig,anticipate:sg},_g=e=>typeof e==`string`,vg=e=>{if(hg(e)){e.length;let[t,n,r,i]=e;return tg(t,n,r,i)}return _g(e)?(gg[e],`${e}`,gg[e]):e},yg=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function bg(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var xg=40;function Sg(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=yg.reduce((e,t)=>(e[t]=bg(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=zh.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,xg),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:yg.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<yg.length;t++)o[yg[t]].cancel(e)},state:i,steps:o}}var{schedule:Cg,cancel:wg,state:Tg,steps:Eg}=Sg(typeof requestAnimationFrame<`u`?requestAnimationFrame:Wh,!0),Dg;function Og(){Dg=void 0}var kg={now:()=>(Dg===void 0&&kg.set(Tg.isProcessing||zh.useManualTiming?Tg.timestamp:performance.now()),Dg),set:e=>{Dg=e,queueMicrotask(Og)}},Ag=e=>t=>typeof t==`string`&&t.startsWith(e),jg=Ag(`--`),Mg=Ag(`var(--`),Ng=e=>Mg(e)?Pg.test(e.split(`/*`)[0].trim()):!1,Pg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Fg(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Ig={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Lg={...Ig,transform:e=>Rh(0,1,e)},Rg={...Ig,default:1},zg=e=>Math.round(e*1e5)/1e5,Bg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vg(e){return e==null}var Hg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ug=(e,t)=>n=>!!(typeof n==`string`&&Hg.test(n)&&n.startsWith(e)||t&&!Vg(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wg=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Bg);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Gg=e=>Rh(0,255,e),Kg={...Ig,transform:e=>Math.round(Gg(e))},qg={test:Ug(`rgb`,`red`),parse:Wg(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Kg.transform(e)+`, `+Kg.transform(t)+`, `+Kg.transform(n)+`, `+zg(Lg.transform(r))+`)`};function Jg(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Yg={test:Ug(`#`),parse:Jg,transform:qg.transform},Xg=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zg=Xg(`deg`),Qg=Xg(`%`),Z=Xg(`px`),$g=Xg(`vh`),e_=Xg(`vw`),t_={...Qg,parse:e=>Qg.parse(e)/100,transform:e=>Qg.transform(e*100)},n_={test:Ug(`hsl`,`hue`),parse:Wg(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Qg.transform(zg(t))+`, `+Qg.transform(zg(n))+`, `+zg(Lg.transform(r))+`)`},r_={test:e=>qg.test(e)||Yg.test(e)||n_.test(e),parse:e=>qg.test(e)?qg.parse(e):n_.test(e)?n_.parse(e):Yg.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?qg.transform(e):n_.transform(e),getAnimatableNone:e=>{let t=r_.parse(e);return t.alpha=0,r_.transform(t)}},i_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function a_(e){return isNaN(e)&&typeof e==`string`&&(e.match(Bg)?.length||0)+(e.match(i_)?.length||0)>0}var o_=`number`,s_=`color`,c_=`var`,l_=`var(`,u_="${}",d_=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function f_(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(d_,e=>(r_.test(e)?(r.color.push(a),i.push(s_),n.push(r_.parse(e))):e.startsWith(l_)?(r.var.push(a),i.push(c_),n.push(e)):(r.number.push(a),i.push(o_),n.push(parseFloat(e))),++a,u_)).split(u_),indexes:r,types:i}}function p_(e){return f_(e).values}function m_({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===o_?zg(r[a]):e===s_?r_.transform(r[a]):r[a]}return i}}function h_(e){return m_(f_(e))}var g_=e=>typeof e==`number`?0:r_.test(e)?r_.getAnimatableNone(e):e,__=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:g_(e);function v_(e){let t=f_(e);return m_(t)(t.values.map((e,n)=>__(e,t.split[n])))}var y_={test:a_,parse:p_,createTransformer:h_,getAnimatableNone:v_};function b_(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function x_({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=b_(s,r,e+1/3),a=b_(s,r,e),o=b_(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function S_(e,t){return n=>n>0?t:e}var C_=(e,t,n)=>e+(t-e)*n,w_=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},T_=[Yg,qg,n_],E_=e=>T_.find(t=>t.test(e));function D_(e){let t=E_(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===n_&&(n=x_(n)),n}var O_=(e,t)=>{let n=D_(e),r=D_(t);if(!n||!r)return S_(e,t);let i={...n};return e=>(i.red=w_(n.red,r.red,e),i.green=w_(n.green,r.green,e),i.blue=w_(n.blue,r.blue,e),i.alpha=C_(n.alpha,r.alpha,e),qg.transform(i))},k_=new Set([`none`,`hidden`]);function A_(e,t){return k_.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function j_(e,t){return n=>C_(e,t,n)}function M_(e){return typeof e==`number`?j_:typeof e==`string`?Ng(e)?S_:r_.test(e)?O_:I_:Array.isArray(e)?N_:typeof e==`object`?r_.test(e)?O_:P_:S_}function N_(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>M_(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function P_(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=M_(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function F_(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var I_=(e,t)=>{let n=y_.createTransformer(t),r=f_(e),i=f_(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?k_.has(e)&&!i.values.length||k_.has(t)&&!r.values.length?A_(e,t):Gh(N_(F_(r,i),i.values),n):(`${e}${t}`,S_(e,t))};function L_(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?C_(e,t,n):M_(e)(e,t)}var R_=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Cg.update(t,e),stop:()=>wg(t),now:()=>Tg.isProcessing?Tg.timestamp:kg.now()}},z_=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},B_=2e4;function V_(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function H_(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(V_(r),B_);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Yh(i)}}var U_={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function W_(e,t){return e*Math.sqrt(1-t*t)}var G_=12;function K_(e,t,n){let r=n;for(let n=1;n<G_;n++)r-=e(r)/t(r);return r}var q_=.001;function J_({duration:e=U_.duration,bounce:t=U_.bounce,velocity:n=U_.velocity,mass:r=U_.mass}){let i,a;U_.maxDuration;let o=1-t;o=Rh(U_.minDamping,U_.maxDamping,o),e=Rh(U_.minDuration,U_.maxDuration,Yh(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=W_(t,o),c=Math.exp(-i);return q_-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=W_(t**2,o);return(-i(t)+q_>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=K_(i,a,s);if(e=Jh(e),isNaN(c))return{stiffness:U_.stiffness,damping:U_.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Y_=[`duration`,`bounce`],X_=[`stiffness`,`damping`,`mass`];function Z_(e,t){return t.some(t=>e[t]!==void 0)}function Q_(e){let t={velocity:U_.velocity,stiffness:U_.stiffness,damping:U_.damping,mass:U_.mass,isResolvedFromDuration:!1,...e};if(!Z_(e,X_)&&Z_(e,Y_)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Rh(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:U_.mass,stiffness:i,damping:a}}else{let n=J_({...e,velocity:0});t={...t,...n,mass:U_.mass},t.isResolvedFromDuration=!0}}return t}function $_(e=U_.visualDuration,t=U_.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Q_({...n,velocity:-Yh(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Yh(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?U_.restSpeed.granular:U_.restSpeed.default,i||=v?U_.restDelta.granular:U_.restDelta.default;let y,b,x,S,C,w;if(h<1)x=W_(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Jh(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Jh(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Jh(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(V_(T),B_),t=z_(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}$_.applyToOptions=e=>{let t=H_(e,100,$_);return e.ease=t.ease,e.duration=Jh(t.duration),e.type=`keyframes`,e};var ev=5;function tv(e,t,n){let r=Math.max(t-ev,0);return Xh(n-e(r),t-r)}function nv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=$_({keyframes:[f.value,m(f.value)],velocity:tv(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function rv(e,t,n){let r=[],i=n||zh.mix||L_,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Gh(Array.isArray(t)?t[n]||Wh:t,a)),r.push(a)}return r}function iv(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=rv(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Kh(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Rh(e[0],e[a-1],t)):l}function av(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Kh(0,t,r);e.push(C_(n,1,i))}}function ov(e){let t=[0];return av(t,e.length-1),t}function sv(e,t){return e.map(e=>e*t)}function cv(e,t){return e.map(()=>t||pg).splice(0,e.length-1)}function lv({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=mg(r)?r.map(vg):vg(r),a={done:!1,value:t[0]},o=iv(sv(n&&n.length===t.length?n:ov(t),e),t,{ease:Array.isArray(i)?i:cv(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var uv=e=>e!==null;function dv(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(uv),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var fv={decay:nv,inertia:nv,tween:lv,keyframes:lv,spring:$_};function pv(e){typeof e.type==`string`&&(e.type=fv[e.type])}var mv=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},hv=e=>e/100,gv=class extends mv{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==kg.now()&&this.tick(kg.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;pv(e);let{type:t=lv,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||lv;s!==lv&&typeof o[0]!=`number`&&(this.mixKeyframes=Gh(hv,L_(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=V_(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Rh(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==nv&&(b.value=dv(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Yh(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Yh(e)}get time(){return Yh(this.currentTime)}set time(e){e=Jh(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return tv(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(kg.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Yh(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=R_,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(kg.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function _v(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var vv=e=>e*180/Math.PI,yv=e=>xv(vv(Math.atan2(e[1],e[0]))),bv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yv,rotateZ:yv,skewX:e=>vv(Math.atan(e[1])),skewY:e=>vv(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xv=e=>(e%=360,e<0&&(e+=360),e),Sv=yv,Cv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Tv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cv,scaleY:wv,scale:e=>(Cv(e)+wv(e))/2,rotateX:e=>xv(vv(Math.atan2(e[6],e[5]))),rotateY:e=>xv(vv(Math.atan2(-e[2],e[0]))),rotateZ:Sv,rotate:Sv,skewX:e=>vv(Math.atan(e[4])),skewY:e=>vv(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ev(e){return+!!e.includes(`scale`)}function Dv(e,t){if(!e||e===`none`)return Ev(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Tv,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=bv,i=t}if(!i)return Ev(t);let a=r[t],o=i[1].split(`,`).map(kv);return typeof a==`function`?a(o):o[a]}var Ov=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Dv(n,t)};function kv(e){return parseFloat(e.trim())}var Av=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],jv=new Set([...Av,`pathRotation`]),Mv=e=>e===Ig||e===Z,Nv=new Set([`x`,`y`,`z`]),Pv=Av.filter(e=>!Nv.has(e));function Fv(e){let t=[];return Pv.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Iv={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Dv(t,`x`),y:(e,{transform:t})=>Dv(t,`y`)};Iv.translateX=Iv.x,Iv.translateY=Iv.y;var Lv=new Set,Rv=!1,zv=!1,Bv=!1;function Vv(){if(zv){let e=Array.from(Lv).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Fv(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}zv=!1,Rv=!1,Lv.forEach(e=>e.complete(Bv)),Lv.clear()}function Hv(){Lv.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zv=!0)})}function Uv(){Bv=!0,Hv(),Vv(),Bv=!1}var Wv=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Lv.add(this),Rv||(Rv=!0,Cg.read(Hv),Cg.resolveKeyframes(Vv))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}_v(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Lv.delete(this)}cancel(){this.state===`scheduled`&&(Lv.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Gv=e=>e.startsWith(`--`);function Kv(e,t,n){Gv(t)?e.style.setProperty(t,n):e.style[t]=n}var qv={};function Jv(e,t){let n=Uh(e);return()=>qv[t]??n()}var Yv=Jv(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Xv=Jv(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Zv=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qv={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Zv([0,.65,.55,1]),circOut:Zv([.55,0,1,.45]),backIn:Zv([.31,.01,.66,-.59]),backOut:Zv([.33,1.53,.69,.99])};function $v(e,t){if(e)return typeof e==`function`?Xv()?z_(e,t):`ease-out`:hg(e)?Zv(e):Array.isArray(e)?e.map(e=>$v(e,t)||Qv.easeOut):Qv[e]}function ey(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=$v(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function ty(e){return typeof e==`function`&&`applyToOptions`in e}function ny({type:e,...t}){return ty(e)&&Xv()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ry=class extends mv{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=ny(e);this.animation=ey(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=dv(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Kv(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Yh(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Yh(e)}get time(){return Yh(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Jh(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Yv()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Wh):r(this)}},iy={anticipate:sg,backInOut:og,circInOut:ug};function ay(e){return e in iy}function oy(e){typeof e.ease==`string`&&ay(e.ease)&&(e.ease=iy[e.ease])}var sy=10,cy=class extends ry{constructor(e){oy(e),pv(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new gv({...a,autoplay:!1}),s=Math.max(sy,kg.now()-this.startTime),c=Rh(0,sy,s-sy),l=o.sample(s).value,{name:u}=this.options;i&&u&&Kv(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},ly=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(y_.test(e)||e===`0`)&&!e.startsWith(`url(`));function uy(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function dy(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ly(i,t),s=ly(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:uy(e)||(n===`spring`||ty(n))&&r}function fy(e){e.duration=0,e.type=`keyframes`}var py=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),my=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function hy(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&my.test(e[t]))return!0;return!1}var gy=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),_y=Uh(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function vy(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _y()&&n&&(py.has(n)||gy.has(n)&&hy(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var yy=40,by=class extends mv{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=kg.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Wv;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=kg.now();let u=!0;dy(e,i,a,o)||(u=!1,(zh.instantAnimations||!s)&&l?.(dv(e,n,t)),e[0]=e[e.length-1],fy(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>yy?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&vy(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new cy({...d,element:p})}catch{m=new gv(d)}else m=new gv(d);m.finished.then(()=>{this.notifyFinished()}).catch(Wh),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Uv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function xy(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Sy=30,Cy=e=>!isNaN(parseFloat(e)),wy={current:void 0},Ty=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=kg.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=kg.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Cy(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new qh);let n=this.events[e].add(t);return e===`change`?()=>{n(),Cg.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return wy.current&&wy.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=kg.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Sy)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Sy);return Xh(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ey(e,t){return new Ty(e,t)}function Dy(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Oy(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Dy(n,e)}var ky={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ay=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jy={type:`keyframes`,duration:.8},My={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Ny=(e,{keyframes:t})=>t.length>2?jy:jv.has(e)?e.startsWith(`scale`)?Ay(t[1]):ky:My,Py=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Fy(e){for(let t in e)if(!Py.has(t))return!0;return!1}var Iy=(e,t,n,r={},i,a)=>o=>{let s=Oy(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Jh(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Fy(s)||Object.assign(u,Ny(e,u)),u.duration&&=Jh(u.duration),u.repeatDelay&&=Jh(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(fy(u),u.delay===0&&(d=!0)),(zh.instantAnimations||zh.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,fy(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=dv(u.keyframes,s);if(e!==void 0){Cg.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new gv(u):new by(u)},Ly=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ry(e){let t=Ly.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zy(e,t,n=1){`${e}`;let[r,i]=Ry(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Bh(e)?parseFloat(e):e}return Ng(i)?zy(i,t,n+1):i}function By(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Vy(e,t,n,r){if(typeof t==`function`){let[i,a]=By(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=By(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Hy(e,t,n){let r=e.getProps();return Vy(r,t,n===void 0?r.custom:n,e)}var Uy=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Av]),Wy=e=>Array.isArray(e);function Gy(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ey(n))}function Ky(e){return Wy(e)?e[e.length-1]||0:e}function qy(e,t){let{transitionEnd:n={},transition:r={},...i}=Hy(e,t)||{};i={...i,...n};for(let t in i)Gy(e,t,Ky(i[t]))}var Jy=e=>!!(e&&e.getVelocity);function Yy(e){return!!(Jy(e)&&e.add)}function Xy(e,t){let n=e.getValue(`willChange`);if(Yy(n))return n.add(t);if(!n&&zh.WillChange){let n=new zh.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Zy(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Qy=`data-`+Zy(`framerAppearId`);function $y(e){return e.props[Qy]}function eb({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Dy(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&eb(f,t))continue;let o={delay:n,...Oy(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Cg.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=$y(e);if(n){let e=window.MotionHandoffAnimation(n,t,Cg);e!==null&&(o.startTime=e,p=!0)}}Xy(e,t);let m=l??e.shouldReduceMotion;r.start(Iy(t,r,i,m&&Uy.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Cg.update(()=>{o&&qy(e,o)});d.length?Promise.all(d).then(t):t()}return d}function nb(e,t,n={}){let r=Hy(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(tb(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return rb(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function rb(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(nb(c,t,{...o,delay:n+(typeof r==`function`?0:r)+xy(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ib(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>nb(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=nb(e,t,n);else{let i=typeof t==`function`?Hy(e,t,n.custom):t;r=Promise.all(tb(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ab={test:e=>e===`auto`,parse:e=>e},ob=e=>t=>t.test(e),sb=[Ig,Z,Qg,Zg,e_,$g,ab],cb=e=>sb.find(ob(e));function lb(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Hh(e)}var ub=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function db(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Bg)||[];if(!r)return e;let i=n.replace(r,``),a=+!!ub.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var fb=/\b([a-z-]*)\(.*?\)/gu,pb={...y_,getAnimatableNone:e=>{let t=e.match(fb);return t?t.map(db).join(` `):e}},mb={...y_,getAnimatableNone:e=>{let t=y_.parse(e);return y_.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},hb={...Ig,transform:Math.round},gb={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,top:Z,right:Z,bottom:Z,left:Z,inset:Z,insetBlock:Z,insetBlockStart:Z,insetBlockEnd:Z,insetInline:Z,insetInlineStart:Z,insetInlineEnd:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,paddingBlock:Z,paddingBlockStart:Z,paddingBlockEnd:Z,paddingInline:Z,paddingInlineStart:Z,paddingInlineEnd:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,marginBlock:Z,marginBlockStart:Z,marginBlockEnd:Z,marginInline:Z,marginInlineStart:Z,marginInlineEnd:Z,fontSize:Z,backgroundPositionX:Z,backgroundPositionY:Z,rotate:Zg,pathRotation:Zg,rotateX:Zg,rotateY:Zg,rotateZ:Zg,scale:Rg,scaleX:Rg,scaleY:Rg,scaleZ:Rg,skew:Zg,skewX:Zg,skewY:Zg,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:Lg,originX:t_,originY:t_,originZ:Z,zIndex:hb,fillOpacity:Lg,strokeOpacity:Lg,numOctaves:hb},_b={...gb,color:r_,backgroundColor:r_,outlineColor:r_,fill:r_,stroke:r_,borderColor:r_,borderTopColor:r_,borderRightColor:r_,borderBottomColor:r_,borderLeftColor:r_,filter:pb,WebkitFilter:pb,mask:mb,WebkitMask:mb},vb=e=>_b[e],yb=new Set([pb,mb]);function bb(e,t){let n=vb(e);return yb.has(n)||(n=y_),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var xb=new Set([`auto`,`none`,`0`]);function Sb(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!xb.has(t)&&f_(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=bb(n,i)}var Cb=class extends Wv{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ng(r))){let i=zy(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Uy.has(n)||e.length!==2)return;let[r,i]=e,a=cb(r),o=cb(i);if(Fg(r)!==Fg(i)&&Iv[n])this.needsMeasurement=!0;else if(a!==o){if(Mv(a)&&Mv(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Iv[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||lb(e[t]))&&n.push(t);n.length&&Sb(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Iv[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Iv[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},wb=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Tb(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Eb=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Db(e){return Vh(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Ob,cancel:kb}=Sg(queueMicrotask,!1),Ab={x:!1,y:!1};function jb(){return Ab.x||Ab.y}function Mb(e){return e===`x`||e===`y`?Ab[e]?null:(Ab[e]=!0,()=>{Ab[e]=!1}):Ab.x||Ab.y?null:(Ab.x=Ab.y=!0,()=>{Ab.x=Ab.y=!1})}function Nb(e,t){let n=Tb(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Pb(e){return!(e.pointerType===`touch`||jb())}function Fb(e,t,n={}){let[r,i,a]=Nb(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Pb(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Ib=(e,t)=>t?e===t||Ib(e,t.parentElement):!1,Lb=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Rb=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function zb(e){return Rb.has(e.tagName)||e.isContentEditable===!0}var Bb=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Vb(e){return Bb.has(e.tagName)||e.isContentEditable===!0}var Hb=new WeakSet;function Ub(e){return t=>{t.key===`Enter`&&e(t)}}function Wb(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Gb=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ub(()=>{if(Hb.has(n))return;Wb(n,`down`);let e=Ub(()=>{Wb(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Wb(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Kb(e){return Lb(e)&&!jb()}var qb=new WeakSet;function Jb(e,t,n={}){let[r,i,a]=Nb(e,n),o=e=>{let r=e.currentTarget;if(!Kb(e)||qb.has(e))return;Hb.add(r),n.stopPropagation&&qb.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Hb.has(r)&&Hb.delete(r),Kb(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Ib(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Db(e)&&(e.addEventListener(`focus`,e=>Gb(e,i)),!zb(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Yb(e){return Vh(e)&&`ownerSVGElement`in e}var Xb=new WeakMap,Zb,Qb=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Yb(r)&&`getBBox`in r?r.getBBox()[t]:r[n],$b=Qb(`inline`,`width`,`offsetWidth`),ex=Qb(`block`,`height`,`offsetHeight`);function tx({target:e,borderBoxSize:t}){Xb.get(e)?.forEach(n=>{n(e,{get width(){return $b(e,t)},get height(){return ex(e,t)}})})}function nx(e){e.forEach(tx)}function rx(){typeof ResizeObserver<`u`&&(Zb=new ResizeObserver(nx))}function ix(e,t){Zb||rx();let n=Tb(e);return n.forEach(e=>{let n=Xb.get(e);n||(n=new Set,Xb.set(e,n)),n.add(t),Zb?.observe(e)}),()=>{n.forEach(e=>{let n=Xb.get(e);n?.delete(t),n?.size||Zb?.unobserve(e)})}}var ax=new Set,ox;function sx(){ox=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ax.forEach(t=>t(e))},window.addEventListener(`resize`,ox)}function cx(e){return ax.add(e),ox||sx(),()=>{ax.delete(e),!ax.size&&typeof ox==`function`&&(window.removeEventListener(`resize`,ox),ox=void 0)}}function lx(e,t){return typeof e==`function`?cx(e):ix(e,t)}var ux={value:null,addProjectionMetrics:null};function dx(e){return Yb(e)&&e.tagName===`svg`}function fx(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=iv(i,a,o);return t?s(r):s}var px=[...sb,r_,y_],mx=e=>px.find(ob(e)),hx=()=>({translate:0,scale:1,origin:0,originPoint:0}),gx=()=>({x:hx(),y:hx()}),_x=()=>({min:0,max:0}),vx=()=>({x:_x(),y:_x()}),yx=new WeakMap;function bx(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function xx(e){return typeof e==`string`||Array.isArray(e)}var Sx=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Cx=[`initial`,...Sx];function wx(e){return bx(e.animate)||Cx.some(t=>xx(e[t]))}function Tx(e){return!!(wx(e)||e.variants)}function Ex(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Jy(i))e.addValue(r,i);else if(Jy(a))e.addValue(r,Ey(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Ey(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Dx={current:null},Ox={current:!1},kx=typeof window<`u`;function Ax(){if(Ox.current=!0,kx){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Dx.current=e.matches;e.addEventListener(`change`,t),t()}else Dx.current=!1}}var jx=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Mx={};function Nx(e){Mx=e}function Px(){return Mx}var Fx=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Wv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=kg.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Cg.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=wx(t),this.isVariantNode=Tx(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Jy(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,yx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ox.current||Ax(),this.shouldReduceMotion=Dx.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),wg(this.notifyUpdate),wg(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&py.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ry({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Jh(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=jv.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Cg.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Mx){let t=Mx[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):vx()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<jx.length;t++){let n=jx[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ex(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Ey(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Bh(n)||Hh(n))?n=parseFloat(n):!mx(n)&&y_.test(t)&&(n=bb(e,t)),this.setBaseTarget(e,Jy(n)?n.get():n)),Jy(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Vy(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Jy(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new qh),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ob.render(this.render)}},Ix=class extends Fx{constructor(){super(...arguments),this.KeyframeResolver=Cb}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Jy(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Lx=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Rx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Bx(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Vx(e){return e===void 0||e===1}function Hx({scale:e,scaleX:t,scaleY:n}){return!Vx(e)||!Vx(t)||!Vx(n)}function Ux(e){return Hx(e)||Wx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Wx(e){return Gx(e.x)||Gx(e.y)}function Gx(e){return e&&e!==`0%`}function Kx(e,t,n){return n+t*(e-n)}function qx(e,t,n,r,i){return i!==void 0&&(e=Kx(e,i,r)),Kx(e,n,r)+t}function Jx(e,t=0,n=1,r,i){e.min=qx(e.min,t,n,r,i),e.max=qx(e.max,t,n,r,i)}function Yx(e,{x:t,y:n}){Jx(e.x,t.translate,t.scale,t.originPoint),Jx(e.y,n.translate,n.scale,n.originPoint)}var Xx=.999999999999,Zx=1.0000000000001;function Qx(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&($x(e.x,-a.scroll.offset.x),$x(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Yx(e,o)),r&&Ux(a.latestValues)&&nS(e,a.latestValues,a.layout?.layoutBox))}t.x<Zx&&t.x>Xx&&(t.x=1),t.y<Zx&&t.y>Xx&&(t.y=1)}function $x(e,t){e.min+=t,e.max+=t}function eS(e,t,n,r,i=.5){Jx(e,t,n,C_(e.min,e.max,i),r)}function tS(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function nS(e,t,n){let r=n??e;eS(e.x,tS(t.x,r.x),t.scaleX,t.scale,t.originX),eS(e.y,tS(t.y,r.y),t.scaleY,t.scale,t.originY)}function rS(e,t){return Rx(Bx(e.getBoundingClientRect(),t))}function iS(e,t,n){let r=rS(e,n),{scroll:i}=t;return i&&($x(r.x,i.offset.x),$x(r.y,i.offset.y)),r}var aS={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},oS=Av.length;function sS(e,t,n){let r=``,i=!0;for(let a=0;a<oS;a++){let o=Av[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Eb(s,gb[o]);if(!c){i=!1;let t=aS[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Eb(a,gb.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function cS(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(jv.has(e))o=!0;else if(jg(e))i[e]=n;else{let t=Eb(n,gb[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=sS(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function lS(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function uS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var dS={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(Z.test(e))e=parseFloat(e);else return e}return`${uS(e,t.target.x)}% ${uS(e,t.target.y)}%`}},fS={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=y_.parse(e);if(i.length>5)return r;let a=y_.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=C_(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},pS={borderRadius:{...dS,applyTo:[...wb]},borderTopLeftRadius:dS,borderTopRightRadius:dS,borderBottomLeftRadius:dS,borderBottomRightRadius:dS,boxShadow:fS};function mS(e,{layout:t,layoutId:n}){return jv.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!pS[e]||e===`opacity`)}function hS(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Jy(r[t])||i&&Jy(i[t])||mS(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function gS(e){return window.getComputedStyle(e)}var _S=class extends Ix{constructor(){super(...arguments),this.type=`html`,this.renderInstance=lS}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(jv.has(t))return this.projection?.isProjecting?Ev(t):Ov(e,t);{let n=gS(e),r=(jg(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rS(e,t)}build(e,t,n){cS(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return hS(e,t,n)}},vS={offset:`stroke-dashoffset`,array:`stroke-dasharray`},yS={offset:`strokeDashoffset`,array:`strokeDasharray`};function bS(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?vS:yS;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var xS=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function SS(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(cS(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of xS)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&bS(d,i,a,o,!1)}var CS=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),wS=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function TS(e,t,n,r){lS(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(CS.has(n)?n:Zy(n),t.attrs[n])}function ES(e,t,n){let r=hS(e,t,n);for(let n in e)if(Jy(e[n])||Jy(t[n])){let t=Av.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var DS=class extends Ix{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=vx}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(jv.has(t)){let e=vb(t);return e&&e.default||0}return t=CS.has(t)?t:Zy(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ES(e,t,n)}build(e,t,n){SS(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){TS(e,t,n,r)}mount(e){this.isSVGTag=wS(e.tagName),super.mount(e)}},OS=Cx.length;function kS(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&kS(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<OS;n++){let r=Cx[n],i=e.props[r];(xx(i)||i===!1)&&(t[r]=i)}return t}function AS(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var jS=[...Sx].reverse(),MS=Sx.length;function NS(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ib(e,t,n)))}function PS(e){let t=NS(e),n=LS(),r=!0,i=!1,a=t=>(n,r)=>{let i=Hy(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=kS(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<MS;t++){let p=jS[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=xx(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||bx(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=FS(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Wy(t)&&Wy(n)?!AS(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Hy(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=xy(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Hy(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=LS(),i=!0}}}function FS(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!AS(t,e):!1}function IS(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LS(){return{animate:IS(!0),whileInView:IS(),whileHover:IS(),whileTap:IS(),whileDrag:IS(),whileFocus:IS(),exit:IS()}}function RS(e,t){e.min=t.min,e.max=t.max}function zS(e,t){RS(e.x,t.x),RS(e.y,t.y)}function BS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var VS=.9999,HS=1.0001,US=-.01,WS=.01;function GS(e){return e.max-e.min}function KS(e,t,n){return Math.abs(e-t)<=n}function qS(e,t,n,r=.5){e.origin=r,e.originPoint=C_(t.min,t.max,e.origin),e.scale=GS(n)/GS(t),e.translate=C_(n.min,n.max,e.origin)-e.originPoint,(e.scale>=VS&&e.scale<=HS||isNaN(e.scale))&&(e.scale=1),(e.translate>=US&&e.translate<=WS||isNaN(e.translate))&&(e.translate=0)}function JS(e,t,n,r){qS(e.x,t.x,n.x,r?r.originX:void 0),qS(e.y,t.y,n.y,r?r.originY:void 0)}function YS(e,t,n,r=0){e.min=(r?C_(n.min,n.max,r):n.min)+t.min,e.max=e.min+GS(t)}function XS(e,t,n,r){YS(e.x,t.x,n.x,r?.x),YS(e.y,t.y,n.y,r?.y)}function ZS(e,t,n,r=0){let i=r?C_(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+GS(t)}function QS(e,t,n,r){ZS(e.x,t.x,n.x,r?.x),ZS(e.y,t.y,n.y,r?.y)}function $S(e,t,n,r,i){return e-=t,e=Kx(e,1/n,r),i!==void 0&&(e=Kx(e,1/i,r)),e}function eC(e,t=0,n=1,r=.5,i,a=e,o=e){if(Qg.test(t)&&(t=parseFloat(t),t=C_(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=C_(a.min,a.max,r);e===a&&(s-=t),e.min=$S(e.min,t,n,s,i),e.max=$S(e.max,t,n,s,i)}function tC(e,t,[n,r,i],a,o){eC(e,t[n],t[r],t[i],t.scale,a,o)}var nC=[`x`,`scaleX`,`originX`],rC=[`y`,`scaleY`,`originY`];function iC(e,t,n,r){tC(e.x,t,nC,n?n.x:void 0,r?r.x:void 0),tC(e.y,t,rC,n?n.y:void 0,r?r.y:void 0)}function aC(e){return e.translate===0&&e.scale===1}function oC(e){return aC(e.x)&&aC(e.y)}function sC(e,t){return e.min===t.min&&e.max===t.max}function cC(e,t){return sC(e.x,t.x)&&sC(e.y,t.y)}function lC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function uC(e,t){return lC(e.x,t.x)&&lC(e.y,t.y)}function dC(e){return GS(e.x)/GS(e.y)}function fC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function pC(e){return[e(`x`),e(`y`)]}function mC(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var hC=wb.length,gC=e=>typeof e==`string`?parseFloat(e):e,_C=e=>typeof e==`number`||Z.test(e);function vC(e,t,n,r,i,a){i?(e.opacity=C_(0,n.opacity??1,bC(r)),e.opacityExit=C_(t.opacity??1,0,xC(r))):a&&(e.opacity=C_(t.opacity??1,n.opacity??1,r));for(let i=0;i<hC;i++){let a=wb[i],o=yC(t,a),s=yC(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||_C(o)===_C(s)?(e[a]=Math.max(C_(gC(o),gC(s),r),0),(Qg.test(s)||Qg.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=C_(t.rotate||0,n.rotate||0,r))}function yC(e,t){return e[t]===void 0?e.borderRadius:e[t]}var bC=SC(0,.5,lg),xC=SC(.5,.95,Wh);function SC(e,t,n){return r=>r<e?0:r>t?1:n(Kh(e,t,r))}function CC(e,t,n){let r=Jy(e)?e:Ey(e);return r.start(Iy(``,r,t,n)),r.animation}function wC(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var TC=(e,t)=>e.depth-t.depth,EC=class{constructor(){this.children=[],this.isDirty=!1}add(e){Fh(this.children,e),this.isDirty=!0}remove(e){Ih(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(TC),this.isDirty=!1,this.children.forEach(e)}};function DC(e,t){let n=kg.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(wg(r),e(a-t))};return Cg.setup(r,!0),()=>wg(r)}function OC(e){return Jy(e)?e.get():e}var kC=class{constructor(){this.members=[]}add(e){Fh(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(Ih(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ih(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},AC={hasAnimatedSinceResize:!0,hasEverUpdated:!1},jC={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},MC=[``,`X`,`Y`,`Z`],NC=1e3,PC=0;function FC(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function IC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=$y(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Cg,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&IC(r)}function LC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=PC++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ux.value&&(jC.nodes=jC.calculatedTargetDeltas=jC.calculatedProjections=0),this.nodes.forEach(BC),this.nodes.forEach(YC),this.nodes.forEach(XC),this.nodes.forEach(VC),ux.addProjectionMetrics&&ux.addProjectionMetrics(jC)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new EC)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new qh),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Yb(t)&&!dx(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Cg.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=DC(i,250),AC.hasAnimatedSinceResize&&(AC.hasAnimatedSinceResize=!1,this.nodes.forEach(JC)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||rw,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!uC(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Oy(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||JC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wg(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZC),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&IC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(WC),this.nodes.forEach(UC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(GC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(KC),this.nodes.forEach(qC),this.nodes.forEach(RC),this.nodes.forEach(zC)):this.nodes.forEach(GC),this.clearAllSnapshots();let e=kg.now();Tg.delta=Rh(0,1e3/60,e-Tg.timestamp),Tg.timestamp=e,Tg.isProcessing=!0,Eg.update.process(Tg),Eg.preRender.process(Tg),Eg.render.process(Tg),Tg.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ob.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HC),this.sharedNodes.forEach(QC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Cg.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Cg.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!GS(this.snapshot.measuredBox.x)&&!GS(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=vx(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!oC(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ux(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),sw(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return vx();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(lw))){let{scroll:e}=this.root;e&&($x(t.x,e.offset.x),$x(t.y,e.offset.y))}return t}removeElementScroll(e){let t=vx();if(zS(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&zS(t,e),$x(t.x,i.offset.x),$x(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||vx();zS(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&($x(r.x,-n.scroll.offset.x),$x(r.y,-n.scroll.offset.y)),Ux(n.latestValues)&&nS(r,n.latestValues,n.layout?.layoutBox)}return Ux(this.latestValues)&&nS(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=vx();zS(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ux(n.latestValues))continue;let r;n.instance&&(Hx(n.latestValues)&&n.updateSnapshot(),r=vx(),zS(r,n.measurePageBox())),iC(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ux(this.latestValues)&&iC(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Tg.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Tg.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=vx(),this.targetWithTransforms=vx()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),XS(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):zS(this.target,this.layout.layoutBox),Yx(this.target,this.targetDelta)):zS(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),ux.value&&jC.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Hx(this.parent.latestValues)||Wx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vx(),this.relativeTargetOrigin=vx(),QS(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),zS(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Tg.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;zS(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Qx(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=vx());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(BS(this.prevProjectionDelta.x,this.projectionDelta.x),BS(this.prevProjectionDelta.y,this.projectionDelta.y)),JS(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&fC(this.projectionDelta.x,this.prevProjectionDelta.x)&&fC(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),ux.value&&jC.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gx(),this.projectionDelta=gx(),this.projectionDeltaWithTransform=gx()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=gx();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=vx(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(nw));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=C_(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=C_(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):($C(o.x,e.x,n),$C(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(QS(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),tw(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&cC(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=vx(),zS(f,this.relativeTarget)),c&&(this.animationValues=a,vC(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(wg(this.pendingAnimation),void 0),this.pendingAnimation=Cg.update(()=>{AC.hasAnimatedSinceResize=!0,this.motionValue||=Ey(0),this.motionValue.jump(0,!1),this.currentAnimation=CC(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(NC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&cw(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||vx();let t=GS(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=GS(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}zS(t,n),nS(t,i),JS(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new kC),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&FC(`z`,e,r,this.animationValues);for(let t=0;t<MC.length;t++)FC(`rotate${MC[t]}`,e,r,this.animationValues),FC(`skew${MC[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=OC(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=OC(t?.pointerEvents)||``),this.hasProjected&&!Ux(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=mC(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in pS){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=pS[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?OC(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(UC),this.root.sharedNodes.clear()}}}function RC(e){e.updateLayout()}function zC(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)pC(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=GS(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;RS(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else cw(i,t.layoutBox,n)&&pC(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=GS(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=gx();JS(o,n,t.layoutBox);let s=gx();a?JS(s,e.applyTransform(r,!0),t.measuredBox):JS(s,n,t.layoutBox);let c=!oC(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=vx();QS(s,t.layoutBox,i.layoutBox,o);let c=vx();QS(c,n,a.layoutBox,o),uC(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function BC(e){ux.value&&jC.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function VC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HC(e){e.clearSnapshot()}function UC(e){e.clearMeasurements()}function WC(e){e.isLayoutDirty=!0,e.updateLayout()}function GC(e){e.isLayoutDirty=!1}function KC(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function qC(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function JC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function YC(e){e.resolveTargetDelta()}function XC(e){e.calcProjection()}function ZC(e){e.resetSkewAndRotation()}function QC(e){e.removeLeadSnapshot()}function $C(e,t,n){e.translate=C_(t.translate,0,n),e.scale=C_(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ew(e,t,n,r){e.min=C_(t.min,n.min,r),e.max=C_(t.max,n.max,r)}function tw(e,t,n,r){ew(e.x,t.x,n.x,r),ew(e.y,t.y,n.y,r)}function nw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var rw={duration:.45,ease:[.4,0,.1,1]},iw=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),aw=iw(`applewebkit/`)&&!iw(`chrome/`)?Math.round:Wh;function ow(e){e.min=aw(e.min),e.max=aw(e.max)}function sw(e){ow(e.x),ow(e.y)}function cw(e,t,n){return e===`position`||e===`preserve-aspect`&&!KS(dC(t),dC(n),.2)}function lw(e){return e!==e.root&&e.scroll?.wasRoot}var uw=LC({attachResizeListener:(e,t)=>wC(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),dw={current:void 0},fw=LC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dw.current){let e=new uw({});e.mount(window),e.setOptions({layoutScroll:!0}),dw.current=e}return dw.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),pw=(0,q.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function mw(e=!0){let t=(0,q.useContext)(Ph);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,q.useId)();(0,q.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,q.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var hw=(0,q.createContext)({strict:!1}),gw={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},_w=!1;function vw(){if(_w)return;let e={};for(let t in gw)e[t]={isEnabled:e=>gw[t].some(t=>!!e[t])};Nx(e),_w=!0}function yw(){return vw(),Px()}function bw(e){let t=yw();for(let n in e)t[n]={...t[n],...e[n]};Nx(t)}var xw=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Sw(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||xw.has(e)}var Cw=e=>!Sw(e);function ww(e){typeof e==`function`&&(Cw=t=>t.startsWith(`on`)?!Sw(t):e(t))}try{ww((p(),e(m)).default)}catch{}function Tw(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Jy(e[i])||(Cw(i)||n===!0&&Sw(i)||!t&&!Sw(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Ew=(0,q.createContext)({});function Dw(e,t){if(wx(e)){let{initial:t,animate:n}=e;return{initial:t===!1||xx(t)?t:void 0,animate:xx(n)?n:void 0}}return e.inherit===!1?{}:t}function Ow(e){let{initial:t,animate:n}=Dw(e,(0,q.useContext)(Ew));return(0,q.useMemo)(()=>({initial:t,animate:n}),[kw(t),kw(n)])}function kw(e){return Array.isArray(e)?e.join(` `):e}var Aw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jw(e,t,n){for(let r in t)!Jy(t[r])&&!mS(r,n)&&(e[r]=t[r])}function Mw({transformTemplate:e},t){return(0,q.useMemo)(()=>{let n=Aw();return cS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Nw(e,t){let n=e.style||{},r={};return jw(r,n,e),Object.assign(r,Mw(e,t)),r}function Pw(e,t){let n={},r=Nw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Fw=()=>({...Aw(),attrs:{}});function Iw(e,t,n,r){let i=(0,q.useMemo)(()=>{let n=Fw();return SS(n,t,wS(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};jw(t,e.style,e),i.style={...t,...i.style}}return i}var Lw=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Rw(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Lw.indexOf(e)>-1||/[A-Z]/u.test(e))}function zw(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Rw(e)?Iw:Pw)(t,r,i,e),c=Tw(t,typeof e==`string`,a),l=e===q.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,q.useMemo)(()=>Jy(u)?u.get():u,[u]);return(0,q.createElement)(e,{...l,children:d})}function Bw({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Vw(n,r,i,e),renderState:t()}}function Vw(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=OC(a[e]);let{initial:o,animate:s}=e,c=wx(e),l=Tx(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!bx(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Vy(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Hw=e=>(t,n)=>{let r=(0,q.useContext)(Ew),i=(0,q.useContext)(Ph),a=()=>Bw(e,t,r,i);return n?a():Mh(a)},Uw=Hw({scrapeMotionValuesFromProps:hS,createRenderState:Aw}),Ww=Hw({scrapeMotionValuesFromProps:ES,createRenderState:Fw}),Gw=Symbol.for(`motionComponentSymbol`);function Kw(e,t,n){let r=(0,q.useRef)(n);(0,q.useInsertionEffect)(()=>{r.current=n});let i=(0,q.useRef)(null);return(0,q.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var qw=(0,q.createContext)({});function Jw(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Yw(e,t,n,r,i,a){let{visualElement:o}=(0,q.useContext)(Ew),s=(0,q.useContext)(hw),c=(0,q.useContext)(Ph),l=(0,q.useContext)(pw),u=l.reducedMotion,d=l.skipAnimations,f=(0,q.useRef)(null),p=(0,q.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,q.useContext)(qw);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Xw(f.current,n,i,h);let g=(0,q.useRef)(!1);(0,q.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Qy],v=(0,q.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Nh(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,q.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Xw(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Zw(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Jw(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Zw(e){if(e)return e.options.allowProjection===!1?Zw(e.parent):e.projection}function Qw(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&bw(r);let a=n?n===`svg`:Rw(e),o=a?Ww:Uw;function s(n,s){let c,l={...(0,q.useContext)(pw),...n,layoutId:$w(n)},{isStatic:u}=l,d=Ow(n),f=o(n,u);if(!u&&typeof window<`u`){eT(l,r);let t=tT(l);c=t.MeasureLayout,d.visualElement=Yw(e,f,l,i,t.ProjectionNode,a)}return(0,Y.jsxs)(Ew.Provider,{value:d,children:[c&&d.visualElement?(0,Y.jsx)(c,{visualElement:d.visualElement,...l}):null,zw(e,n,Kw(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,q.forwardRef)(s);return c[Gw]=e,c}function $w({layoutId:e}){let t=(0,q.useContext)(jh).id;return t&&e!==void 0?t+`-`+e:e}function eT(e,t){(0,q.useContext)(hw).strict}function tT(e){let{drag:t,layout:n}=yw();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function nT(e,t){if(typeof Proxy>`u`)return Qw;let n=new Map,r=(n,r)=>Qw(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Qw(a,void 0,e,t)),n.get(a))})}var rT=(e,t)=>t.isSVG??Rw(e)?new DS(t):new _S(t,{allowProjection:e!==q.Fragment}),iT=class extends Lx{constructor(e){super(e),e.animationState||=PS(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();bx(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},aT=0,oT={animation:{Feature:iT},exit:{Feature:class extends Lx{constructor(){super(...arguments),this.id=aT++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Hy(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function sT(e){return{point:{x:e.pageX,y:e.pageY}}}var cT=e=>t=>Lb(t)&&e(t,sT(t));function lT(e,t,n,r){return wC(e,t,cT(n),r)}var uT=({current:e})=>e?e.ownerDocument.defaultView:null,dT=(e,t)=>Math.abs(e-t);function fT(e,t){let n=dT(e.x,t.x),r=dT(e.y,t.y);return Math.sqrt(n**2+r**2)}var pT=new Set([`auto`,`scroll`]),mT=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=hT(this.lastRawMoveEventInfo,this.transformPagePoint));let e=_T(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=fT(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Tg;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=hT(t,this.transformPagePoint),Cg.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=_T(e.type===`pointercancel`?this.lastMoveEventInfo:hT(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Lb(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=hT(sT(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Tg;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,_T(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Gh(lT(this.contextWindow,`pointermove`,this.handlePointerMove,d),lT(this.contextWindow,`pointerup`,this.handlePointerUp,d),lT(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(pT.has(e.overflowX)||pT.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Cg.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),wg(this.updatePoint)}};function hT(e,t){return t?{point:t(e.point)}:e}function gT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _T({point:e},t){return{point:e,delta:gT(e,yT(t)),offset:gT(e,vT(t)),velocity:bT(t,.1)}}function vT(e){return e[0]}function yT(e){return e[e.length-1]}function bT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=yT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Jh(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Jh(t)*2&&(r=e[1]);let a=Yh(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function xT(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?C_(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?C_(n,e,r.max):Math.min(e,n)),e}function ST(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function CT(e,{top:t,left:n,bottom:r,right:i}){return{x:ST(e.x,n,i),y:ST(e.y,t,r)}}function wT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function TT(e,t){return{x:wT(e.x,t.x),y:wT(e.y,t.y)}}function ET(e,t){let n=.5,r=GS(e),i=GS(t);return i>r?n=Kh(t.min,t.max-r,e.min):r>i&&(n=Kh(e.min,e.max-i,t.min)),Rh(0,1,n)}function DT(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var OT=.35;function kT(e=OT){return e===!1?e=0:e===!0&&(e=OT),{x:AT(e,`left`,`right`),y:AT(e,`top`,`bottom`)}}function AT(e,t,n){return{min:jT(e,t),max:jT(e,n)}}function jT(e,t){return typeof e==`number`?e:e[t]||0}var MT=new WeakMap,NT=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=vx(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(sT(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Mb(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pC(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Qg.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=GS(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Cg.update(()=>i(e,t),!1,!0),Xy(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=LT(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Cg.update(()=>a(e,t),!1,!0))},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new mT(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:uT(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Cg.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!IT(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=xT(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Jw(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?CT(n.layoutBox,e):!1,this.elastic=kT(t),r!==this.constraints&&!Jw(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&pC(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=DT(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Jw(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=iS(n,r.root,this.visualElement.getTransformPagePoint()),a=TT(r.layout.layoutBox,i);if(t){let e=t(zx(a));this.hasMutatedConstraints=!!e,e&&(a=Rx(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=pC(o=>{if(!IT(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Xy(this.visualElement,e),n.start(Iy(e,n,0,t,this.visualElement,!1))}stopAnimation(){pC(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){pC(t=>{let{drag:n}=this.getProps();if(!IT(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-C_(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Jw(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};pC(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=ET({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),pC(t=>{if(!IT(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(C_(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;MT.set(this.visualElement,this);let e=this.visualElement.current,t=lT(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Vb(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Jw(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=FT(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Cg.read(r);let o=wC(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(pC(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=OT,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function PT(e){let t=!0;return()=>{t?t=!1:e()}}function FT(e,t,n){let r=lx(e,PT(n)),i=lx(t,PT(n));return()=>{r(),i()}}function IT(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function LT(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var RT=class extends Lx{constructor(e){super(e),this.removeGroupControls=Wh,this.removeListeners=Wh,this.controls=new NT(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wh}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},zT=e=>(t,n)=>{e&&Cg.update(()=>e(t,n),!1,!0)},BT=class extends Lx{constructor(){super(...arguments),this.removePointerDownListener=Wh}onPointerDown(e){this.session=new mT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uT(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:zT(e),onStart:zT(t),onMove:zT(n),onEnd:(e,t)=>{delete this.session,r&&Cg.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=lT(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},VT=!1,HT=class extends q.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),VT&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),AC.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),VT=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Cg.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Ob.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;VT=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function UT(e){let[t,n]=mw(),r=(0,q.useContext)(jh);return(0,Y.jsx)(HT,{...e,layoutGroup:r,switchLayoutGroup:(0,q.useContext)(qw),isPresent:t,safeToRemove:n})}var WT={pan:{Feature:BT},drag:{Feature:RT,ProjectionNode:fw,MeasureLayout:UT}};function GT(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Cg.postRender(()=>i(t,sT(t)))}var KT=class extends Lx{mount(){let{current:e}=this.node;e&&(this.unmount=Fb(e,(e,t)=>(GT(this.node,t,`Start`),e=>GT(this.node,e,`End`))))}unmount(){}},qT=class extends Lx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Gh(wC(this.node.current,`focus`,()=>this.onFocus()),wC(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function JT(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Cg.postRender(()=>i(t,sT(t)))}var YT=class extends Lx{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Jb(e,(e,t)=>(JT(this.node,t,`Start`),(e,{success:t})=>JT(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},XT=new WeakMap,ZT=new WeakMap,QT=e=>{let t=XT.get(e.target);t&&t(e)},$T=e=>{e.forEach(QT)};function eE({root:e,...t}){let n=e||document;ZT.has(n)||ZT.set(n,{});let r=ZT.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($T,{root:e,...t})),r[i]}function tE(e,t,n){let r=eE(t);return XT.set(e,n),r.observe(e),()=>{XT.delete(e),r.unobserve(e)}}var nE={some:0,all:1},rE=class extends Lx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:nE[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=tE(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(iE(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function iE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var aE={inView:{Feature:rE},tap:{Feature:YT},focus:{Feature:qT},hover:{Feature:KT}},oE={layout:{ProjectionNode:fw,MeasureLayout:UT}},sE=nT({...oT,...aE,...WT,...oE},rT);function cE(e){let t=Mh(()=>Ey(e)),{isStatic:n}=(0,q.useContext)(pw);if(n){let[,n]=(0,q.useState)(e);(0,q.useEffect)(()=>t.on(`change`,n),[])}return t}function lE(e,t){let n=cE(t()),r=()=>n.set(t());return r(),Nh(()=>{let t=()=>Cg.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),wg(r)}}),n}function uE(e){wy.current=[],e();let t=lE(wy.current,e);return wy.current=void 0,t}function dE(e,t,n,r){if(typeof e==`function`)return uE(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return pE(e,t,n,r);let i=typeof t==`function`?t:fx(t,n,r),a=Array.isArray(e)?fE(e,i):fE([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function fE(e,t){let n=Mh(()=>[]);return lE(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function pE(e,t,n,r){let i=Mh(()=>Object.keys(n)),a=Mh(()=>({}));for(let o of i)a[o]=dE(e,t,n[o],r);return a}var mE=(0,q.createContext)(null);function hE(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(i===-1)return e;let a=r>0?1:-1,o=e[i+a];if(!o)return e;let s=e[i],c=o.layout,l=C_(c.min,c.max,.5);return a===1&&s.layout.max+n>l||a===-1&&s.layout.min+n<l?Lh(e,i,i+a):e}function gE({children:e,as:t=`ul`,axis:n=`y`,onReorder:r,values:i,...a},o){let s=Mh(()=>sE[t]),c=[],l=(0,q.useRef)(!1),u=(0,q.useRef)(null),d={axis:n,groupRef:u,registerItem:(e,t)=>{let r=c.findIndex(t=>e===t.value);r===-1?c.push({value:e,layout:t[n]}):c[r].layout=t[n],c.sort(vE)},updateOrder:(e,t,n)=>{if(l.current)return;let a=hE(c,e,t,n);if(c!==a){l.current=!0;let e=[...i];for(let t=0;t<a.length;t++)if(c[t].value!==a[t].value){let n=i.indexOf(c[t].value),r=i.indexOf(a[t].value);n!==-1&&r!==-1&&([e[n],e[r]]=[e[r],e[n]]);break}r(e)}}};(0,q.useEffect)(()=>{l.current=!1});let f=e=>{u.current=e,typeof o==`function`?o(e):o&&(o.current=e)},p={overflowAnchor:`none`,...a.style};return(0,Y.jsx)(s,{...a,style:p,ref:f,ignoreStrict:!0,children:(0,Y.jsx)(mE.Provider,{value:d,children:e})})}var _E=(0,q.forwardRef)(gE);function vE(e,t){return e.layout.min-t.layout.min}var yE=50,bE=25,xE=new Set([`auto`,`scroll`]),SE=new WeakMap,CE=new WeakMap,wE=null;function TE(){if(wE){let e=DE(wE,`y`);e&&(CE.delete(e),SE.delete(e));let t=DE(wE,`x`);t&&t!==e&&(CE.delete(t),SE.delete(t)),wE=null}}function EE(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return xE.has(r)||i}function DE(e,t){let n=e?.parentElement;for(;n;){if(EE(n,t))return n;n=n.parentElement}return null}function OE(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<yE){let e=1-o/yE;return{amount:-25*e*e,edge:`start`}}if(s<yE){let e=1-s/yE;return{amount:bE*e*e,edge:`end`}}return{amount:0,edge:null}}function kE(e,t,n,r){if(!e)return;wE=e;let i=DE(e,n);if(!i)return;let{amount:a,edge:o}=OE(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){CE.delete(i),SE.delete(i);return}let s=CE.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;CE.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);SE.set(i,e)}if(a>0){let e=SE.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function AE(e,t=0){return Jy(e)?e:cE(t)}function jE({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=Mh(()=>sE[r]),u=(0,q.useContext)(mE),d={x:AE(t.x),y:AE(t.y)},f=dE([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g}=u;return(0,Y.jsx)(l,{drag:p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o=d[p].get();h(n,o,r[p]),kE(g.current,a[p],p,r[p]),i&&i(e,t)},onDragEnd:(e,t)=>{TE(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var ME=(0,q.forwardRef)(jE),NE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(16),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({isActive:a,value:s,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=a&&`graphiql-tab-active`,l;n[6]!==i||n[7]!==c?(l=nh(`graphiql-tab`,c,i),n[6]=i,n[7]=c,n[8]=l):l=n[8];let u;return n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==t||n[13]!==l||n[14]!==s?(u=(0,Y.jsx)(ME,{...o,ref:t,value:s,"aria-selected":a,role:`tab`,className:l,children:r}),n[9]=r,n[10]=a,n[11]=o,n[12]=t,n[13]=l,n[14]=s,n[15]=u):u=n[15],u});NE.displayName=`Tab`;var PE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({children:r,className:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=nh(`graphiql-tab-button`,i),n[4]=i,n[5]=o);let s;return n[6]!==r||n[7]!==a||n[8]!==t||n[9]!==o?(s=(0,Y.jsx)(vh,{...a,ref:t,type:`button`,className:o,children:r}),n[6]=r,n[7]=a,n[8]=t,n[9]=o,n[10]=s):s=n[10],s});PE.displayName=`Tab.Button`;var FE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(7),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-tab-close`,e.className),n[0]=e.className,n[1]=r);let i;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(Om,{}),n[2]=i):i=n[2];let a;return n[3]!==e||n[4]!==t||n[5]!==r?(a=(0,Y.jsx)(vh,{"aria-label":`Close Tab`,...e,ref:t,type:`button`,className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=a):a=n[6],a});FE.displayName=`Tab.Close`;var IE=Object.assign(NE,{Button:PE,Close:FE}),LE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(15),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({values:s,onReorder:a,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c;n[6]===i?c=n[7]:(c=nh(`graphiql-tabs`,i),n[6]=i,n[7]=c);let l;return n[8]!==r||n[9]!==a||n[10]!==o||n[11]!==t||n[12]!==c||n[13]!==s?(l=(0,Y.jsx)(_E,{...o,ref:t,values:s,onReorder:a,axis:`x`,role:`tablist`,className:c,children:r}),n[8]=r,n[9]=a,n[10]=o,n[11]=t,n[12]=c,n[13]=s,n[14]=l):l=n[14],l});LE.displayName=`Tabs`;var RE=Object.assign(e=>{let t=(0,J.c)(10),{children:n,align:r,side:i,sideOffset:a,label:o}=e,s=r===void 0?`start`:r,c=i===void 0?`bottom`:i,u=a===void 0?5:a,d;t[0]===n?d=t[1]:(d=(0,Y.jsx)(fe,{asChild:!0,children:n}),t[0]=n,t[1]=d);let f;t[2]!==s||t[3]!==o||t[4]!==c||t[5]!==u?(f=(0,Y.jsx)(ae,{children:(0,Y.jsx)(O,{className:`graphiql-tooltip`,align:s,side:c,sideOffset:u,children:o})}),t[2]=s,t[3]=o,t[4]=c,t[5]=u,t[6]=f):f=t[6];let p;return t[7]!==d||t[8]!==f?(p=(0,Y.jsxs)(l,{children:[d,f]}),t[7]=d,t[8]=f,t[9]=p):p=t[9],p},{Provider:gt}),zE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(19),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({label:r,onClick:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let[o,s]=(0,q.useState)(null),c;n[4]===i?c=n[5]:(c=e=>{try{i&&i(e),s(null)}catch(e){let t=e;s(t instanceof Error?t:Error(`Toolbar button click failed: ${t}`))}},n[4]=i,n[5]=c);let l=c,u=o&&`error`,d;n[6]!==a.className||n[7]!==u?(d=nh(`graphiql-toolbar-button`,u,a.className),n[6]=a.className,n[7]=u,n[8]=d):d=n[8];let f=o?o.message:r,p=o?`true`:a[`aria-invalid`],m;n[9]!==l||n[10]!==a||n[11]!==t||n[12]!==d||n[13]!==f||n[14]!==p?(m=(0,Y.jsx)(vh,{...a,ref:t,type:`button`,className:d,onClick:l,"aria-label":f,"aria-invalid":p}),n[9]=l,n[10]=a,n[11]=t,n[12]=d,n[13]=f,n[14]=p,n[15]=m):m=n[15];let h;return n[16]!==r||n[17]!==m?(h=(0,Y.jsx)(RE,{label:r,children:m}),n[16]=r,n[17]=m,n[18]=h):h=n[18],h});zE.displayName=`ToolbarButton`;var BE=()=>{let e=(0,J.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={nonNull:!0,caller:BE},e[0]=t):t=e[0];let{queryEditor:n,setOperationName:r}=Mp(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:BE},e[1]=i):i=e[1];let{isFetching:a,isSubscribed:o,operationName:s,run:c,stop:l}=zp(i),u;e[2]===n?.operations?u=e[3]:(u=n?.operations||[],e[2]=n?.operations,e[3]=u);let d=u,f=d.length>1&&typeof s!=`string`,p=a||o,m=`${p?`Stop`:`Execute`} query (Ctrl-Enter)`,h;e[4]===p?h=e[5]:(h=p?(0,Y.jsx)(Qm,{}):(0,Y.jsx)(Wm,{}),e[4]=p,e[5]=h);let g;e[6]!==m||e[7]!==h?(g={type:`button`,className:`graphiql-execute-button`,children:h,"aria-label":m},e[6]=m,e[7]=h,e[8]=g):g=e[8];let _=g,v;return e[9]!==_||e[10]!==f||e[11]!==p||e[12]!==m||e[13]!==d||e[14]!==n||e[15]!==c||e[16]!==r||e[17]!==l?(v=f&&!p?(0,Y.jsxs)(Oh,{children:[(0,Y.jsx)(RE,{label:m,children:(0,Y.jsx)(Oh.Button,{..._})}),(0,Y.jsx)(Oh.Content,{children:d.map((e,t)=>{let i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,Y.jsx)(Oh.Item,{onSelect:()=>{let t=e.name?.value;n&&t&&t!==n.operationName&&r(t),c()},children:i},`${i}-${t}`)})})]}):(0,Y.jsx)(RE,{label:m,children:(0,Y.jsx)(`button`,{..._,onClick:()=>{p?l():c()}})}),e[9]=_,e[10]=f,e[11]=p,e[12]=m,e[13]=d,e[14]=n,e[15]=c,e[16]=r,e[17]=l,e[18]=v):v=e[18],v},VE=Ke((e,t)=>({historyStorage:null,actions:{addToHistory(n){let{historyStorage:r}=t();r.updateHistory(n),e({})},editLabel(n,r){let{historyStorage:i}=t();i.editLabel(n,r),e({})},toggleFavorite(n){let{historyStorage:r}=t();r.toggleFavorite(n),e({})},setActive:e=>e,deleteFromHistory(n,r){let{historyStorage:i}=t();i.deleteHistory(n,r),e({})}}})),HE=e=>{let t=(0,J.c)(12),{maxHistoryLength:n,children:r}=e,i=n===void 0?20:n,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={nonNull:!0},t[0]=a):a=t[0];let{isFetching:o}=zp(a),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={nonNull:!0},t[1]=s):s=t[1];let{tabs:c,activeTabIndex:l}=Mp(s),u=c[l],d=Ns(),f;t[2]!==i||t[3]!==d?(f=new xs(d,i),t[2]=i,t[3]=d,t[4]=f):f=t[4];let p=f,m,h;t[5]===p?(m=t[6],h=t[7]):(m=()=>{VE.setState({historyStorage:p})},h=[p],t[5]=p,t[6]=m,t[7]=h),(0,q.useEffect)(m,h);let g,_;return t[8]!==u||t[9]!==o?(g=()=>{if(!o)return;let{addToHistory:e}=VE.getState().actions;e({query:u.query??void 0,variables:u.variables??void 0,headers:u.headers??void 0,operationName:u.operationName??void 0})},_=[o,u],t[8]=u,t[9]=o,t[10]=g,t[11]=_):(g=t[10],_=t[11]),(0,q.useEffect)(g,_),r},UE=ks(VE),WE=()=>UE(KE),GE=()=>UE(qE);function KE(e){return e.historyStorage.queries}function qE(e){return e.actions}function JE(e,t){for(let n of e)t(n,!0)}var YE=()=>{let e=(0,J.c)(13),t=WE(),{deleteFromHistory:n}=GE(),r;r=t.slice().map(QE).reverse();let i=r.filter($E);i.length&&(r=r.filter(eD));let[a,o]=(0,q.useState)(null),s,c;e[0]===a?(s=e[1],c=e[2]):(s=()=>{a&&setTimeout(()=>{o(null)},2e3)},c=[a],e[0]=a,e[1]=s,e[2]=c),(0,q.useEffect)(s,c);let l=()=>{try{JE(r,n),o(`success`)}catch{o(`error`)}},u=!!i.length,d=!!r.length,f=(a||d)&&(0,Y.jsx)(yh,{type:`button`,state:a||void 0,disabled:!r.length,onClick:l,children:{success:`Cleared`,error:`Failed to Clear`}[a]||`Clear`}),p;e[3]===f?p=e[4]:(p=(0,Y.jsxs)(`div`,{className:`graphiql-history-header`,children:[`History`,f]}),e[3]=f,e[4]=p);let m=u&&(0,Y.jsx)(`ul`,{className:`graphiql-history-items`,children:i.map(tD)}),h;e[5]!==u||e[6]!==d?(h=u&&d&&(0,Y.jsx)(`div`,{className:`graphiql-history-item-spacer`}),e[5]=u,e[6]=d,e[7]=h):h=e[7];let g=d&&(0,Y.jsx)(`ul`,{className:`graphiql-history-items`,children:r.map(nD)}),_;return e[8]!==p||e[9]!==m||e[10]!==h||e[11]!==g?(_=(0,Y.jsxs)(`section`,{"aria-label":`History`,className:`graphiql-history`,children:[p,m,h,g]}),e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=_):_=e[12],_},XE=e=>{let t=(0,J.c)(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:a}=GE(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={nonNull:!0,caller:XE},t[0]=o):o=t[0];let{headerEditor:s,queryEditor:c,variableEditor:l}=Mp(o),u=(0,q.useRef)(null),d=(0,q.useRef)(null),[f,p]=(0,q.useState)(!1),m,h;t[1]===f?(m=t[2],h=t[3]):(m=()=>{var e;f&&((e=u.current)==null||e.focus())},h=[f],t[1]=f,t[2]=m,t[3]=h),(0,q.useEffect)(m,h);let g;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(g=e.item.label||e.item.operationName||ZE(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=g):g=t[7];let _=g,v;t[8]!==n||t[9]!==e.item?(v=()=>{p(!1);let{index:t,...r}=e.item;n({...r,label:u.current?.value},t)},t[8]=n,t[9]=e.item,t[10]=v):v=t[10];let y=v,b;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>{p(!1)},t[11]=b):b=t[11];let x=b,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{e.stopPropagation(),p(!0)},t[12]=S):S=t[12];let C=S,w;t[13]!==s||t[14]!==e.item||t[15]!==c||t[16]!==a||t[17]!==l?(w=()=>{let{query:t,variables:n,headers:r}=e.item;c?.setValue(t??``),l?.setValue(n??``),s?.setValue(r??``),a(e.item)},t[13]=s,t[14]=e.item,t[15]=c,t[16]=a,t[17]=l,t[18]=w):w=t[18];let T=w,E;t[19]!==i||t[20]!==e.item?(E=t=>{t.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=E):E=t[21];let D=E,O;t[22]!==e.item||t[23]!==r?(O=t=>{t.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=O):O=t[24];let k=O,A=f&&`editable`,j;t[25]===A?j=t[26]:(j=nh(`graphiql-history-item`,A),t[25]=A,t[26]=j);let M;t[27]!==_||t[28]!==n||t[29]!==D||t[30]!==T||t[31]!==y||t[32]!==k||t[33]!==f||t[34]!==e.item?(M=f?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`input`,{type:`text`,defaultValue:e.item.label,ref:u,onKeyDown:t=>{t.key===`Esc`?p(!1):t.key===`Enter`&&(p(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:`Type a label`}),(0,Y.jsx)(vh,{type:`button`,ref:d,onClick:y,children:`Save`}),(0,Y.jsx)(vh,{type:`button`,ref:d,onClick:x,children:(0,Y.jsx)(Om,{})})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(RE,{label:`Set active`,children:(0,Y.jsx)(vh,{type:`button`,className:`graphiql-history-item-label`,onClick:T,"aria-label":`Set active`,children:_})}),(0,Y.jsx)(RE,{label:`Edit label`,children:(0,Y.jsx)(vh,{type:`button`,className:`graphiql-history-item-action`,onClick:C,"aria-label":`Edit label`,children:(0,Y.jsx)(Um,{"aria-hidden":`true`})})}),(0,Y.jsx)(RE,{label:e.item.favorite?`Remove favorite`:`Add favorite`,children:(0,Y.jsx)(vh,{type:`button`,className:`graphiql-history-item-action`,onClick:k,"aria-label":e.item.favorite?`Remove favorite`:`Add favorite`,children:e.item.favorite?(0,Y.jsx)(Xm,{"aria-hidden":`true`}):(0,Y.jsx)(Zm,{"aria-hidden":`true`})})}),(0,Y.jsx)(RE,{label:`Delete from history`,children:(0,Y.jsx)(vh,{type:`button`,className:`graphiql-history-item-action`,onClick:D,"aria-label":`Delete from history`,children:(0,Y.jsx)($m,{"aria-hidden":`true`})})})]}),t[27]=_,t[28]=n,t[29]=D,t[30]=T,t[31]=y,t[32]=k,t[33]=f,t[34]=e.item,t[35]=M):M=t[35];let N;return t[36]!==j||t[37]!==M?(N=(0,Y.jsx)(`li`,{className:j,children:M}),t[36]=j,t[37]=M,t[38]=N):N=t[38],N};function ZE(e){return e?.split(`
95
+ `))}e(``),g(!0);let b=a??l.operationName??void 0,S=h??void 0,C=l.documentAST??void 0;try{let i={},a=n=>{if(t!==y.current)return;let r=Array.isArray(n)?n:!1;if(!r&&typeof n==`object`&&n&&`hasNext`in n&&(r=[n]),r){for(let e of r)Hp(i,e);g(!1),e(as(i))}else{let t=as(n);g(!1),e(t)}},s=await n({query:r,variables:o,operationName:b},{headers:S,documentAST:C});Zo(s)?v(s.subscribe({next(e){a(e)},error(t){g(!1),t&&e(is(t)),v(null)},complete(){g(!1),v(null)}})):Qo(s)?(v({unsubscribe:()=>{var e;return(e=s[Symbol.asyncIterator]()).return?.call(e)}}),await Rp(a,s),g(!1),v(null)):a(s)}catch(t){let n=t;g(!1),e(is(n)),v(null)}},t[5]=m,t[6]=s,t[7]=n,t[8]=c,t[9]=a,t[10]=l,t[11]=u,t[12]=x,t[13]=_,t[14]=f,t[15]=d,t[16]=S):S=t[16];let C=S,w=!!_,T=a??null,E;t[17]!==h||t[18]!==C||t[19]!==x||t[20]!==w||t[21]!==T?(E={isFetching:h,isSubscribed:w,operationName:T,run:C,stop:x},t[17]=h,t[18]=C,t[19]=x,t[20]=w,t[21]=T,t[22]=E):E=t[22];let D=E,O;return t[23]!==i||t[24]!==D?(O=(0,Y.jsx)(Ip.Provider,{value:D,children:i}),t[23]=i,t[24]=D,t[25]=O):O=t[25],O};async function Rp(e,t){for await(let n of t)e(n)}var zp=Os(Ip);function Bp({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&e.trim()!==``?JSON.parse(e):void 0}catch(e){throw Error(`${t}: ${e instanceof Error?e.message:e}.`)}if(r!==void 0&&(typeof r!=`object`||!r||Array.isArray(r)))throw Error(n);return r}var Vp=new WeakMap;function Hp(e,t){var n;let r=[`data`,...t.path??[]];for(let n of[e,t])if(n.pending){let t=Vp.get(e);t===void 0&&(t=new Map,Vp.set(e,t));for(let{id:e,path:r}of n.pending)t.set(e,[`data`,...r])}let{items:i}=t;if(i){let{id:n}=t;if(n){if(r=Vp.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);(0,Fp.default)(e,r.join(`.`)).push(...i)}else{r=[`data`,...t.path??[]];for(let t of i)(0,Pp.default)(e,r.join(`.`),t),r[r.length-1]++}}let{data:a}=t;if(a){let{id:n}=t;if(n){if(r=Vp.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);let{subPath:i}=t;i!==void 0&&(r=[...r,...i])}(0,Pp.default)(e,r.join(`.`),a,{merge:!0})}if(t.errors&&(e.errors||=[],e.errors.push(...t.errors)),t.extensions&&(0,Pp.default)(e,`extensions`,t.extensions,{merge:!0}),t.incremental)for(let n of t.incremental)Hp(e,n);if(t.completed)for(let{id:r,errors:i}of t.completed)(n=Vp.get(e))==null||n.delete(r),i&&(e.errors||=[],e.errors.push(...i))}function Up(e){return C(e)}var Wp=e=>{let t=(0,J.c)(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,fetcher:c,getDefaultFieldNames:l,headers:u,inputValueDeprecation:d,introspectionQueryName:f,onEditOperationName:p,onSchemaChange:m,onTabChange:h,onTogglePluginVisibility:g,operationName:_,plugins:v,referencePlugin:y,query:b,response:x,schema:S,schemaDescription:C,shouldPersistHeaders:w,storage:T,validationRules:E,variables:D,visiblePlugin:O}=e,k;t[0]!==a||t[1]!==i||t[2]!==o||t[3]!==s||t[4]!==u||t[5]!==p||t[6]!==h||t[7]!==b||t[8]!==x||t[9]!==w||t[10]!==E||t[11]!==D?(k={defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,headers:u,onEditOperationName:p,onTabChange:h,query:b,response:x,shouldPersistHeaders:w,validationRules:E,variables:D},t[0]=a,t[1]=i,t[2]=o,t[3]=s,t[4]=u,t[5]=p,t[6]=h,t[7]=b,t[8]=x,t[9]=w,t[10]=E,t[11]=D,t[12]=k):k=t[12];let A=k,j;t[13]!==r||t[14]!==c||t[15]!==d||t[16]!==f||t[17]!==m||t[18]!==S||t[19]!==C?(j={dangerouslyAssumeSchemaIsValid:r,fetcher:c,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:m,schema:S,schemaDescription:C},t[13]=r,t[14]=c,t[15]=d,t[16]=f,t[17]=m,t[18]=S,t[19]=C,t[20]=j):j=t[20];let M=j,N;t[21]!==c||t[22]!==l||t[23]!==_?(N={getDefaultFieldNames:l,fetcher:c,operationName:_},t[21]=c,t[22]=l,t[23]=_,t[24]=N):N=t[24];let ee=N,P;t[25]!==g||t[26]!==v||t[27]!==y||t[28]!==O?(P={onTogglePluginVisibility:g,plugins:v,visiblePlugin:O,referencePlugin:y},t[25]=g,t[26]=v,t[27]=y,t[28]=O,t[29]=P):P=t[29];let te=P,ne;t[30]!==n||t[31]!==te?(ne=(0,Y.jsx)(Ws,{...te,children:n}),t[30]=n,t[31]=te,t[32]=ne):ne=t[32];let re;t[33]!==ee||t[34]!==ne?(re=(0,Y.jsx)(Lp,{...ee,children:ne}),t[33]=ee,t[34]=ne,t[35]=re):re=t[35];let ie;t[36]!==M||t[37]!==re?(ie=(0,Y.jsx)(qs,{...M,children:re}),t[36]=M,t[37]=re,t[38]=ie):ie=t[38];let ae;t[39]!==A||t[40]!==ie?(ae=(0,Y.jsx)(Ap,{...A,children:ie}),t[39]=A,t[40]=ie,t[41]=ae):ae=t[41];let oe;return t[42]!==T||t[43]!==ae?(oe=(0,Y.jsx)(js,{storage:T,children:ae}),t[42]=T,t[43]=ae,t[44]=oe):oe=t[44],oe};function Gp(e){let t=(0,J.c)(11),n=e===void 0?null:e,r=Ns(),i;t[0]!==n||t[1]!==r?(i=()=>{let e=r.get(Kp);switch(e){case`light`:return`light`;case`dark`:return`dark`;default:return typeof e==`string`&&r.set(Kp,``),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];let[a,o]=(0,q.useState)(i),s,c;t[3]===a?(s=t[4],c=t[5]):(s=()=>{document.body.classList.remove(`graphiql-light`,`graphiql-dark`),a&&document.body.classList.add(`graphiql-${a}`)},c=[a],t[3]=a,t[4]=s,t[5]=c),(0,q.useEffect)(s,c);let l;t[6]===r?l=t[7]:(l=e=>{r.set(Kp,e||``),o(e)},t[6]=r,t[7]=l);let u=l,d;return t[8]!==u||t[9]!==a?(d={theme:a,setTheme:u},t[8]=u,t[9]=a,t[10]=d):d=t[10],d}var Kp=`theme`,qp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:6,y:6,width:2,height:2,rx:1,fill:`currentColor`})),Jp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1 1L7 7L13 1`,stroke:`currentColor`,strokeWidth:1.5})),Yp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 7 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6 1.04819L2 5.04819L6 9.04819`,stroke:`currentColor`,strokeWidth:1.75})),Xp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M13 8L7 2L1 8`,stroke:`currentColor`,strokeWidth:1.5})),Zp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,stroke:`currentColor`,strokeWidth:3,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1 1L12.9998 12.9997`}),q.createElement(`path`,{d:`M13 1L1.00079 13.0003`})),Qp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`rect`,{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:`currentColor`,strokeWidth:1.5})),$p=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M5 9L9 5`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M5 5L9 9`,stroke:`currentColor`,strokeWidth:1.2})),em=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z`,fill:`currentColor`})),tm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2})),nm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0.5 12 12`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:7,y:5.5,width:2,height:2,rx:1,transform:`rotate(90 7 5.5)`,fill:`currentColor`}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z`,fill:`currentColor`})),rm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z`,fill:`currentColor`})),im=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`line`,{x1:13,y1:11.75,x2:6,y2:11.75,stroke:`currentColor`,strokeWidth:1.5})),am=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:5,y:5,width:2,height:2,rx:1,fill:`currentColor`}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z`,fill:`currentColor`})),om=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),sm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 24 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),q.createElement(`path`,{d:`M13.75 5.25V10.75H18.75`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),q.createElement(`path`,{d:`M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25`,stroke:`currentColor`,strokeWidth:1.5})),cm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`circle`,{cx:6,cy:6,r:5.4,stroke:`currentColor`,strokeWidth:1.2,strokeDasharray:`4.241025 4.241025`,transform:`rotate(22.5 6 6)`}),q.createElement(`circle`,{cx:6,cy:6,r:1,fill:`currentColor`})),lm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 19 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`})),um=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`circle`,{cx:5,cy:5,r:4.35,stroke:`currentColor`,strokeWidth:1.3}),q.createElement(`line`,{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:`currentColor`,strokeWidth:1.3})),dm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M6 4.5L9 7.5L12 4.5`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M12 13.5L9 10.5L6 13.5`,stroke:`currentColor`,strokeWidth:1.5})),fm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z`,fill:`currentColor`}),q.createElement(`path`,{d:`M11.5 4.5L9.5 2.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M5.5 10.5L3.5 8.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`})),pm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z`,fill:`currentColor`})),mm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 10 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z`})),hm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{width:25,height:25,viewBox:`0 0 25 25`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M10.2852 24.0745L13.7139 18.0742`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M14.5742 24.0749L17.1457 19.7891`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`})),gm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M4.75 9.25H1.25V12.75`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),q.createElement(`path`,{d:`M11.25 6.75H14.75V3.25`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),q.createElement(`path`,{d:`M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513`,stroke:`currentColor`,strokeWidth:1}),q.createElement(`path`,{d:`M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487`,stroke:`currentColor`,strokeWidth:1})),_m=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5`,stroke:`currentColor`,strokeWidth:1.2})),vm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z`,fill:`currentColor`})),ym=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z`,fill:`currentColor`,stroke:`currentColor`})),bm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z`,stroke:`currentColor`,strokeWidth:1.5})),xm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{width:16,height:16,rx:2,fill:`currentColor`})),Sm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{width:`1em`,height:`5em`,xmlns:`http://www.w3.org/2000/svg`,fillRule:`evenodd`,"aria-hidden":`true`,viewBox:`0 0 23 23`,style:{height:`1.5em`},clipRule:`evenodd`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z`,fill:`currentColor`,strokeWidth:.25,stroke:`currentColor`})),Cm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:5.5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),wm=X(qp),Tm=X(Jp),Em=X(Yp),Dm=X(Xp),Om=X(Zp),km=X(Qp),Am=X($p),jm=X(em),Mm=X(tm),Nm=X(nm),Pm=X(rm),Fm=X(im),Im=X(am),Lm=X(om),Rm=X(sm),zm=X(cm),Bm=X(lm),Vm=X(um),Hm=X(dm),Um=X(fm),Wm=X(pm),Gm=X(mm),Km=X(hm),qm=X(gm),Jm=X(_m),Ym=X(vm),Xm=X(ym),Zm=X(bm),Qm=X(xm),$m=X(Sm),eh=X(Cm);function X(e){let t=e.name.replace(`Svg`,``).replaceAll(/([A-Z])/g,` $1`).trimStart().toLowerCase()+` icon`,n=n=>{let r=(0,J.c)(2),i;return r[0]===n?i=r[1]:(i=(0,Y.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i),i};return n.displayName=e.name,n}function th(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=th(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t)}return r}function nh(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=th(e))&&(r&&(r+=` `),r+=t);return r}var rh=e=>{let t=(0,J.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:rh},t[3]=i):i=t[3];let{headerEditor:a}=Mp(i),o=Lf(n,rh),s,c;t[4]!==a||t[5]!==r?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=a,t[5]=r,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,q.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=nh(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,Y.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d},ih=Object.assign(e=>{let t=(0,J.c)(14),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={width:null,height:null},t[0]=n):n=t[0];let[r,i]=(0,q.useState)(n),[a,o]=(0,q.useState)(null),s=(0,q.useRef)(null),c=ah(e.token)?.href,l,u;t[1]===c?(l=t[2],u=t[3]):(l=()=>{s.current&&(c?fetch(c,{method:`HEAD`}).then(e=>{o(e.headers.get(`Content-Type`))}).catch(()=>{o(null)}):(i({width:null,height:null}),o(null)))},u=[c],t[1]=c,t[2]=l,t[3]=u),(0,q.useEffect)(l,u);let d;t[4]!==r.height||t[5]!==r.width||t[6]!==a?(d=r.width!==null&&r.height!==null?(0,Y.jsxs)(`div`,{children:[r.width,`x`,r.height,a===null?null:` `+a]}):null,t[4]=r.height,t[5]=r.width,t[6]=a,t[7]=d):d=t[7];let f=d,p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{i({width:s.current?.naturalWidth??null,height:s.current?.naturalHeight??null})},t[8]=p):p=t[8];let m;t[9]===c?m=t[10]:(m=(0,Y.jsx)(`img`,{onLoad:p,ref:s,src:c}),t[9]=c,t[10]=m);let h;return t[11]!==f||t[12]!==m?(h=(0,Y.jsxs)(`div`,{children:[m,f]}),t[11]=f,t[12]=m,t[13]=h):h=t[13],h},{shouldRender(e){let t=ah(e);return t?oh(t):!1}});function ah(e){if(e.type!==`string`)return;let t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+`//`+location.host)}catch{}}function oh(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}var sh=e=>{let t=(0,J.c)(2),n=Yf(e,sh),r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(`div`,{className:`graphiql-editor`,ref:n}),t[0]=n,t[1]=r),r},ch=Ie();function lh(){return Bs([z(()=>import(`./foldgutter-DMDmmXBR.js`).then(e=>t(e.default)),__vite__mapDeps([6,1,0])),z(()=>import(`./brace-fold-CvGVZqlg.js`).then(e=>t(e.default)),__vite__mapDeps([5,1,0])),z(()=>import(`./dialog-CJ-8k4qu.js`).then(e=>t(e.default)),__vite__mapDeps([10,1,0])),z(()=>import(`./search-dN6Hktna.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,0,8,10])),z(()=>import(`./searchcursor-BVQcGYNk.js`).then(e=>t(e.default)),__vite__mapDeps([8,1,0])),z(()=>import(`./jump-to-line-Dh-zRt5Y.js`).then(e=>t(e.default)),__vite__mapDeps([9,1,0,10])),z(()=>import(`./sublime-CKNGwGRF.js`).then(e=>t(e.default)),__vite__mapDeps([11,1,0,8,3])),z(()=>import(`./mode-xGSH01RS.js`),__vite__mapDeps([29,1,0,25])),z(()=>import(`./info-addon-qxLJlsXZ.js`),__vite__mapDeps([22,1,0]))],{useCommonAddons:!1})}var uh=dh;function dh(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{responseTooltip:i,editorTheme:a,keyMap:o}=r,s=a===void 0?Ls:a,c=o===void 0?Rs:o,{fetchError:l,validationErrors:u}=Js(),d=t||uh,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialResponse:p,responseEditor:m,setResponseEditor:h}=Mp(f),g=(0,q.useRef)(null),_=(0,q.useRef)(i),v,y;n[4]===i?(v=n[5],y=n[6]):(v=()=>{_.current=i},y=[i],n[4]=i,n[5]=v,n[6]=y),(0,q.useEffect)(v,y);let b,x;n[7]!==s||n[8]!==p||n[9]!==h?(b=()=>{let e=!0;return lh().then(t=>{if(!e)return;let n=document.createElement(`div`),r=(0,ch.createRoot)(n);t.registerHelper(`info`,`graphql-results`,(e,t,i,a)=>{let o=_.current,s=[o&&(0,Y.jsx)(o,{pos:a,token:e}),ih.shouldRender(e)&&(0,Y.jsx)(ih,{token:e},`image-preview`)].filter(fh);if(s.length)return r.render(s),n;r.unmount()});let i=g.current;if(!i)return;let a=t(i,{value:p,lineWrapping:!0,readOnly:!0,theme:s,mode:`graphql-results`,foldGutter:!0,gutters:[`CodeMirror-foldgutter`],info:!0,extraKeys:zs});h(a)}),()=>{e=!1}},x=[s,p,h],n[7]=s,n[8]=p,n[9]=h,n[10]=b,n[11]=x):(b=n[10],x=n[11]),(0,q.useEffect)(b,x),Sf(m,`keyMap`,c);let S,C;return n[12]!==l||n[13]!==m||n[14]!==u?(S=()=>{l&&m?.setValue(l),u.length&&m?.setValue(is(u))},C=[m,l,u],n[12]=l,n[13]=m,n[14]=u,n[15]=S,n[16]=C):(S=n[15],C=n[16]),(0,q.useEffect)(S,C),g}function fh(e){return!!e}var ph=e=>{let t=(0,J.c)(2),n=dh(e,ph),r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(`section`,{className:`result-window`,"aria-label":`Result Window`,"aria-live":`polite`,"aria-atomic":`true`,ref:n}),t[0]=n,t[1]=r),r},mh=e=>{let t=(0,J.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:mh},t[3]=i):i=t[3];let{variableEditor:a}=Mp(i),o=Ep(n,mh),s,c;t[4]!==r||t[5]!==a?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=r,t[5]=a,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,q.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=nh(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,Y.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d};function hh(e){let t=(0,J.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:a,sizeThresholdFirst:o,sizeThresholdSecond:s,storageKey:c}=e,l=n===void 0?1:n,u=o===void 0?100:o,d=s===void 0?100:s,f=Ns(),p;t[0]!==f||t[1]!==c?(p=yf(500,e=>{c&&f.set(c,e)}),t[0]=f,t[1]=c,t[2]=p):p=t[2];let m=p,h;t[3]!==i||t[4]!==f||t[5]!==c?(h=()=>{let e=c&&f.get(c);return e===gh||i===`first`?`first`:e===_h||i===`second`?`second`:null},t[3]=i,t[4]=f,t[5]=c,t[6]=h):h=t[6];let[g,_]=(0,q.useState)(h),v;t[7]!==g||t[8]!==a?(v=e=>{e!==g&&(_(e),a?.(e))},t[7]=g,t[8]=a,t[9]=v):v=t[9];let y=v,b=(0,q.useRef)(null),x=(0,q.useRef)(null),S=(0,q.useRef)(null),C=(0,q.useRef)(`${l}`),w;t[10]!==f||t[11]!==c?(w=()=>{let e=c&&f.get(c)||C.current;b.current&&(b.current.style.flex=e===gh||e===_h?C.current:e),S.current&&(S.current.style.flex=`1`)},t[10]=f,t[11]=c,t[12]=w):w=t[12];let T;t[13]!==r||t[14]!==f||t[15]!==c?(T=[r,f,c],t[13]=r,t[14]=f,t[15]=c,t[16]=T):T=t[16],(0,q.useEffect)(w,T);let E,D;t[17]!==g||t[18]!==f||t[19]!==c?(D=()=>{let e=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.left=`-1000px`,t.style.position=`absolute`,t.style.opacity=`0`,t.style.height=`500px`,t.style.width=`500px`,b.current)){let e=parseFloat(b.current.style.flex);(!Number.isFinite(e)||e<1)&&(b.current.style.flex=`1`)}},t=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.width=``,t.style.height=``,t.style.opacity=``,t.style.position=``,t.style.left=``,c)){let e=f.get(c);b.current&&e!==gh&&e!==_h&&(b.current.style.flex=e||C.current)}};g===`first`?e(`first`):t(`first`),g===`second`?e(`second`):t(`second`)},E=[g,f,c],t[17]=g,t[18]=f,t[19]=c,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,q.useEffect)(D,E);let O,k;t[22]!==r||t[23]!==y||t[24]!==u||t[25]!==d||t[26]!==m?(O=()=>{if(!x.current||!b.current||!S.current)return;let e=x.current,t=b.current,n=t.parentElement,i=r===`horizontal`?`clientX`:`clientY`,a=r===`horizontal`?`left`:`top`,o=r===`horizontal`?`right`:`bottom`,s=r===`horizontal`?`clientWidth`:`clientHeight`,c=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();let c=r[i]-e.getBoundingClientRect()[a],l=function(r){if(r.buttons===0)return f();let l=r[i]-n.getBoundingClientRect()[a]-c,p=n.getBoundingClientRect()[o]-r[i]+c-e[s];if(l<u)y(`first`),m(gh);else if(p<d)y(`second`),m(_h);else{y(null);let e=`${l/p}`;t.style.flex=e,m(e)}};function f(){document.removeEventListener(`mousemove`,l),document.removeEventListener(`mouseup`,f)}document.addEventListener(`mousemove`,l),document.addEventListener(`mouseup`,f)};e.addEventListener(`mousedown`,c);let l=function(){b.current&&(b.current.style.flex=C.current),m(C.current),y(null)};return e.addEventListener(`dblclick`,l),()=>{e.removeEventListener(`mousedown`,c),e.removeEventListener(`dblclick`,l)}},k=[r,y,u,d,m],t[22]=r,t[23]=y,t[24]=u,t[25]=d,t[26]=m,t[27]=O,t[28]=k):(O=t[27],k=t[28]),(0,q.useEffect)(O,k);let A;return t[29]===g?A=t[30]:(A={dragBarRef:x,hiddenElement:g,firstRef:b,setHiddenElement:_,secondRef:S},t[29]=g,t[30]=A),A}var gh=`hide-first`,_h=`hide-second`,vh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`button`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});vh.displayName=`UnStyledButton`;var yh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(7),r;n[0]!==e.className||n[1]!==e.state?(r=nh(`graphiql-button`,{success:`graphiql-button-success`,error:`graphiql-button-error`}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2];let i;return n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,Y.jsx)(`button`,{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});yh.displayName=`Button`;var bh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-button-group`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});bh.displayName=`ButtonGroup`;var xh=Object.defineProperty,Sh=(e,t)=>xh(e,`name`,{value:t,configurable:!0}),Ch=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),wh=q.forwardRef(Sh(function(e,t){return(0,Y.jsx)(ee.span,{...e,ref:t,style:{...Ch,...e.style}})},`VisuallyHidden`)),Th=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(8),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-dialog-close`,e.className),n[0]=e.className,n[1]=r);let i,a;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(wh,{children:`Close dialog`}),a=(0,Y.jsx)(Om,{}),n[2]=i,n[3]=a):(i=n[2],a=n[3]);let o;return n[4]!==e||n[5]!==t||n[6]!==r?(o=(0,Y.jsx)(Ve,{asChild:!0,children:(0,Y.jsxs)(vh,{...e,ref:t,type:`button`,className:r,children:[i,a]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=o):o=n[7],o});Th.displayName=`Dialog.Close`;var Eh=Object.assign(e=>{let t=(0,J.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(A,{className:`graphiql-dialog-overlay`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=(0,Y.jsxs)(M,{children:[i,(0,Y.jsx)(s,{className:`graphiql-dialog`,children:n})]}),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a?(o=(0,Y.jsx)(te,{...r,children:a}),t[6]=r,t[7]=a,t[8]=o):o=t[8],o},{Close:Th,Title:g,Trigger:S,Description:ze}),Dh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(d,{asChild:!0,children:(0,Y.jsx)(`button`,{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Dh.displayName=`DropdownMenuButton`;var Oh=Object.assign(se,{Button:Dh,Item:e=>{let t=(0,J.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=nh(`graphiql-dropdown-item`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,Y.jsx)(Te,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},Content:e=>{let t=(0,J.c)(14),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({children:n,align:a,sideOffset:o,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`start`:a,c=o===void 0?5:o,l;t[6]===r?l=t[7]:(l=nh(`graphiql-dropdown-content`,r),t[6]=r,t[7]=l);let u;return t[8]!==s||t[9]!==n||t[10]!==i||t[11]!==c||t[12]!==l?(u=(0,Y.jsx)(ft,{children:(0,Y.jsx)(mt,{align:s,sideOffset:c,className:l,...i,children:n})}),t[8]=s,t[9]=n,t[10]=i,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}}),kh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(18),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({children:r,onlyShowFirstChild:i,type:o,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s=`graphiql-markdown-${o}`,c=i&&`graphiql-markdown-preview`,l;n[5]!==a.className||n[6]!==s||n[7]!==c?(l=nh(s,c,a.className),n[5]=a.className,n[6]=s,n[7]=c,n[8]=l):l=n[8];let u;n[9]===r?u=n[10]:(u=_f.render(r),n[9]=r,n[10]=u);let d;n[11]===u?d=n[12]:(d={__html:u},n[11]=u,n[12]=d);let f;return n[13]!==a||n[14]!==t||n[15]!==l||n[16]!==d?(f=(0,Y.jsx)(`div`,{...a,ref:t,className:l,dangerouslySetInnerHTML:d}),n[13]=a,n[14]=t,n[15]=l,n[16]=d,n[17]=f):f=n[17],f});kh.displayName=`MarkdownContent`;var Ah=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-spinner`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Ah.displayName=`Spinner`;var jh=(0,q.createContext)({});function Mh(e){let t=(0,q.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Nh=typeof window<`u`?q.useLayoutEffect:q.useEffect,Ph=(0,q.createContext)(null);function Fh(e,t){e.indexOf(t)===-1&&e.push(t)}function Ih(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Lh([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var Rh=(e,t,n)=>n>t?t:n<e?e:n,zh={},Bh=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Vh=e=>typeof e==`object`&&!!e,Hh=e=>/^0[^.\s]+$/u.test(e);function Uh(e){let t;return()=>(t===void 0&&(t=e()),t)}var Wh=e=>e,Gh=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Kh=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},qh=class{constructor(){this.subscriptions=[]}add(e){return Fh(this.subscriptions,e),()=>Ih(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Jh=e=>e*1e3,Yh=e=>e/1e3,Xh=(e,t)=>t?1e3/t*e:0,Zh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qh=1e-7,$h=12;function eg(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Zh(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Qh&&++s<$h);return o}function tg(e,t,n,r){if(e===t&&n===r)return Wh;let i=t=>eg(t,0,1,e,n);return e=>e===0||e===1?e:Zh(i(e),t,r)}var ng=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rg=e=>t=>1-e(1-t),ig=tg(.33,1.53,.69,.99),ag=rg(ig),og=ng(ag),sg=e=>e>=1?1:(e*=2)<1?.5*ag(e):.5*(2-2**(-10*(e-1))),cg=e=>1-Math.sin(Math.acos(e)),lg=rg(cg),ug=ng(cg),dg=tg(.42,0,1,1),fg=tg(0,0,.58,1),pg=tg(.42,0,.58,1),mg=e=>Array.isArray(e)&&typeof e[0]!=`number`,hg=e=>Array.isArray(e)&&typeof e[0]==`number`,gg={linear:Wh,easeIn:dg,easeInOut:pg,easeOut:fg,circIn:cg,circInOut:ug,circOut:lg,backIn:ag,backInOut:og,backOut:ig,anticipate:sg},_g=e=>typeof e==`string`,vg=e=>{if(hg(e)){e.length;let[t,n,r,i]=e;return tg(t,n,r,i)}return _g(e)?(gg[e],`${e}`,gg[e]):e},yg=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function bg(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var xg=40;function Sg(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=yg.reduce((e,t)=>(e[t]=bg(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=zh.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,xg),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:yg.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<yg.length;t++)o[yg[t]].cancel(e)},state:i,steps:o}}var{schedule:Cg,cancel:wg,state:Tg,steps:Eg}=Sg(typeof requestAnimationFrame<`u`?requestAnimationFrame:Wh,!0),Dg;function Og(){Dg=void 0}var kg={now:()=>(Dg===void 0&&kg.set(Tg.isProcessing||zh.useManualTiming?Tg.timestamp:performance.now()),Dg),set:e=>{Dg=e,queueMicrotask(Og)}},Ag=e=>t=>typeof t==`string`&&t.startsWith(e),jg=Ag(`--`),Mg=Ag(`var(--`),Ng=e=>Mg(e)?Pg.test(e.split(`/*`)[0].trim()):!1,Pg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Fg(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Ig={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Lg={...Ig,transform:e=>Rh(0,1,e)},Rg={...Ig,default:1},zg=e=>Math.round(e*1e5)/1e5,Bg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vg(e){return e==null}var Hg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ug=(e,t)=>n=>!!(typeof n==`string`&&Hg.test(n)&&n.startsWith(e)||t&&!Vg(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wg=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Bg);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Gg=e=>Rh(0,255,e),Kg={...Ig,transform:e=>Math.round(Gg(e))},qg={test:Ug(`rgb`,`red`),parse:Wg(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Kg.transform(e)+`, `+Kg.transform(t)+`, `+Kg.transform(n)+`, `+zg(Lg.transform(r))+`)`};function Jg(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Yg={test:Ug(`#`),parse:Jg,transform:qg.transform},Xg=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zg=Xg(`deg`),Qg=Xg(`%`),Z=Xg(`px`),$g=Xg(`vh`),e_=Xg(`vw`),t_={...Qg,parse:e=>Qg.parse(e)/100,transform:e=>Qg.transform(e*100)},n_={test:Ug(`hsl`,`hue`),parse:Wg(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Qg.transform(zg(t))+`, `+Qg.transform(zg(n))+`, `+zg(Lg.transform(r))+`)`},r_={test:e=>qg.test(e)||Yg.test(e)||n_.test(e),parse:e=>qg.test(e)?qg.parse(e):n_.test(e)?n_.parse(e):Yg.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?qg.transform(e):n_.transform(e),getAnimatableNone:e=>{let t=r_.parse(e);return t.alpha=0,r_.transform(t)}},i_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function a_(e){return isNaN(e)&&typeof e==`string`&&(e.match(Bg)?.length||0)+(e.match(i_)?.length||0)>0}var o_=`number`,s_=`color`,c_=`var`,l_=`var(`,u_="${}",d_=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function f_(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(d_,e=>(r_.test(e)?(r.color.push(a),i.push(s_),n.push(r_.parse(e))):e.startsWith(l_)?(r.var.push(a),i.push(c_),n.push(e)):(r.number.push(a),i.push(o_),n.push(parseFloat(e))),++a,u_)).split(u_),indexes:r,types:i}}function p_(e){return f_(e).values}function m_({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===o_?zg(r[a]):e===s_?r_.transform(r[a]):r[a]}return i}}function h_(e){return m_(f_(e))}var g_=e=>typeof e==`number`?0:r_.test(e)?r_.getAnimatableNone(e):e,__=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:g_(e);function v_(e){let t=f_(e);return m_(t)(t.values.map((e,n)=>__(e,t.split[n])))}var y_={test:a_,parse:p_,createTransformer:h_,getAnimatableNone:v_};function b_(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function x_({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=b_(s,r,e+1/3),a=b_(s,r,e),o=b_(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function S_(e,t){return n=>n>0?t:e}var C_=(e,t,n)=>e+(t-e)*n,w_=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},T_=[Yg,qg,n_],E_=e=>T_.find(t=>t.test(e));function D_(e){let t=E_(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===n_&&(n=x_(n)),n}var O_=(e,t)=>{let n=D_(e),r=D_(t);if(!n||!r)return S_(e,t);let i={...n};return e=>(i.red=w_(n.red,r.red,e),i.green=w_(n.green,r.green,e),i.blue=w_(n.blue,r.blue,e),i.alpha=C_(n.alpha,r.alpha,e),qg.transform(i))},k_=new Set([`none`,`hidden`]);function A_(e,t){return k_.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function j_(e,t){return n=>C_(e,t,n)}function M_(e){return typeof e==`number`?j_:typeof e==`string`?Ng(e)?S_:r_.test(e)?O_:I_:Array.isArray(e)?N_:typeof e==`object`?r_.test(e)?O_:P_:S_}function N_(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>M_(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function P_(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=M_(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function F_(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var I_=(e,t)=>{let n=y_.createTransformer(t),r=f_(e),i=f_(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?k_.has(e)&&!i.values.length||k_.has(t)&&!r.values.length?A_(e,t):Gh(N_(F_(r,i),i.values),n):(`${e}${t}`,S_(e,t))};function L_(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?C_(e,t,n):M_(e)(e,t)}var R_=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Cg.update(t,e),stop:()=>wg(t),now:()=>Tg.isProcessing?Tg.timestamp:kg.now()}},z_=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},B_=2e4;function V_(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function H_(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(V_(r),B_);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Yh(i)}}var U_={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function W_(e,t){return e*Math.sqrt(1-t*t)}var G_=12;function K_(e,t,n){let r=n;for(let n=1;n<G_;n++)r-=e(r)/t(r);return r}var q_=.001;function J_({duration:e=U_.duration,bounce:t=U_.bounce,velocity:n=U_.velocity,mass:r=U_.mass}){let i,a;U_.maxDuration;let o=1-t;o=Rh(U_.minDamping,U_.maxDamping,o),e=Rh(U_.minDuration,U_.maxDuration,Yh(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=W_(t,o),c=Math.exp(-i);return q_-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=W_(t**2,o);return(-i(t)+q_>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=K_(i,a,s);if(e=Jh(e),isNaN(c))return{stiffness:U_.stiffness,damping:U_.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Y_=[`duration`,`bounce`],X_=[`stiffness`,`damping`,`mass`];function Z_(e,t){return t.some(t=>e[t]!==void 0)}function Q_(e){let t={velocity:U_.velocity,stiffness:U_.stiffness,damping:U_.damping,mass:U_.mass,isResolvedFromDuration:!1,...e};if(!Z_(e,X_)&&Z_(e,Y_)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Rh(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:U_.mass,stiffness:i,damping:a}}else{let n=J_({...e,velocity:0});t={...t,...n,mass:U_.mass},t.isResolvedFromDuration=!0}}return t}function $_(e=U_.visualDuration,t=U_.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Q_({...n,velocity:-Yh(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Yh(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?U_.restSpeed.granular:U_.restSpeed.default,i||=v?U_.restDelta.granular:U_.restDelta.default;let y,b,x,S,C,w;if(h<1)x=W_(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Jh(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Jh(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Jh(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(V_(T),B_),t=z_(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}$_.applyToOptions=e=>{let t=H_(e,100,$_);return e.ease=t.ease,e.duration=Jh(t.duration),e.type=`keyframes`,e};var ev=5;function tv(e,t,n){let r=Math.max(t-ev,0);return Xh(n-e(r),t-r)}function nv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=$_({keyframes:[f.value,m(f.value)],velocity:tv(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function rv(e,t,n){let r=[],i=n||zh.mix||L_,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Gh(Array.isArray(t)?t[n]||Wh:t,a)),r.push(a)}return r}function iv(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=rv(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Kh(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Rh(e[0],e[a-1],t)):l}function av(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Kh(0,t,r);e.push(C_(n,1,i))}}function ov(e){let t=[0];return av(t,e.length-1),t}function sv(e,t){return e.map(e=>e*t)}function cv(e,t){return e.map(()=>t||pg).splice(0,e.length-1)}function lv({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=mg(r)?r.map(vg):vg(r),a={done:!1,value:t[0]},o=iv(sv(n&&n.length===t.length?n:ov(t),e),t,{ease:Array.isArray(i)?i:cv(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var uv=e=>e!==null;function dv(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(uv),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var fv={decay:nv,inertia:nv,tween:lv,keyframes:lv,spring:$_};function pv(e){typeof e.type==`string`&&(e.type=fv[e.type])}var mv=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},hv=e=>e/100,gv=class extends mv{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==kg.now()&&this.tick(kg.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;pv(e);let{type:t=lv,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||lv;s!==lv&&typeof o[0]!=`number`&&(this.mixKeyframes=Gh(hv,L_(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=V_(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Rh(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==nv&&(b.value=dv(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Yh(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Yh(e)}get time(){return Yh(this.currentTime)}set time(e){e=Jh(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return tv(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(kg.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Yh(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=R_,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(kg.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function _v(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var vv=e=>e*180/Math.PI,yv=e=>xv(vv(Math.atan2(e[1],e[0]))),bv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yv,rotateZ:yv,skewX:e=>vv(Math.atan(e[1])),skewY:e=>vv(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xv=e=>(e%=360,e<0&&(e+=360),e),Sv=yv,Cv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Tv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cv,scaleY:wv,scale:e=>(Cv(e)+wv(e))/2,rotateX:e=>xv(vv(Math.atan2(e[6],e[5]))),rotateY:e=>xv(vv(Math.atan2(-e[2],e[0]))),rotateZ:Sv,rotate:Sv,skewX:e=>vv(Math.atan(e[4])),skewY:e=>vv(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ev(e){return+!!e.includes(`scale`)}function Dv(e,t){if(!e||e===`none`)return Ev(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Tv,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=bv,i=t}if(!i)return Ev(t);let a=r[t],o=i[1].split(`,`).map(kv);return typeof a==`function`?a(o):o[a]}var Ov=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Dv(n,t)};function kv(e){return parseFloat(e.trim())}var Av=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],jv=new Set([...Av,`pathRotation`]),Mv=e=>e===Ig||e===Z,Nv=new Set([`x`,`y`,`z`]),Pv=Av.filter(e=>!Nv.has(e));function Fv(e){let t=[];return Pv.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Iv={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Dv(t,`x`),y:(e,{transform:t})=>Dv(t,`y`)};Iv.translateX=Iv.x,Iv.translateY=Iv.y;var Lv=new Set,Rv=!1,zv=!1,Bv=!1;function Vv(){if(zv){let e=Array.from(Lv).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Fv(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}zv=!1,Rv=!1,Lv.forEach(e=>e.complete(Bv)),Lv.clear()}function Hv(){Lv.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zv=!0)})}function Uv(){Bv=!0,Hv(),Vv(),Bv=!1}var Wv=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Lv.add(this),Rv||(Rv=!0,Cg.read(Hv),Cg.resolveKeyframes(Vv))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}_v(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Lv.delete(this)}cancel(){this.state===`scheduled`&&(Lv.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Gv=e=>e.startsWith(`--`);function Kv(e,t,n){Gv(t)?e.style.setProperty(t,n):e.style[t]=n}var qv={};function Jv(e,t){let n=Uh(e);return()=>qv[t]??n()}var Yv=Jv(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Xv=Jv(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Zv=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qv={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Zv([0,.65,.55,1]),circOut:Zv([.55,0,1,.45]),backIn:Zv([.31,.01,.66,-.59]),backOut:Zv([.33,1.53,.69,.99])};function $v(e,t){if(e)return typeof e==`function`?Xv()?z_(e,t):`ease-out`:hg(e)?Zv(e):Array.isArray(e)?e.map(e=>$v(e,t)||Qv.easeOut):Qv[e]}function ey(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=$v(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function ty(e){return typeof e==`function`&&`applyToOptions`in e}function ny({type:e,...t}){return ty(e)&&Xv()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ry=class extends mv{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=ny(e);this.animation=ey(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=dv(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Kv(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Yh(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Yh(e)}get time(){return Yh(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Jh(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Yv()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Wh):r(this)}},iy={anticipate:sg,backInOut:og,circInOut:ug};function ay(e){return e in iy}function oy(e){typeof e.ease==`string`&&ay(e.ease)&&(e.ease=iy[e.ease])}var sy=10,cy=class extends ry{constructor(e){oy(e),pv(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new gv({...a,autoplay:!1}),s=Math.max(sy,kg.now()-this.startTime),c=Rh(0,sy,s-sy),l=o.sample(s).value,{name:u}=this.options;i&&u&&Kv(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},ly=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(y_.test(e)||e===`0`)&&!e.startsWith(`url(`));function uy(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function dy(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ly(i,t),s=ly(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:uy(e)||(n===`spring`||ty(n))&&r}function fy(e){e.duration=0,e.type=`keyframes`}var py=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),my=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function hy(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&my.test(e[t]))return!0;return!1}var gy=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),_y=Uh(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function vy(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _y()&&n&&(py.has(n)||gy.has(n)&&hy(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var yy=40,by=class extends mv{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=kg.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Wv;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=kg.now();let u=!0;dy(e,i,a,o)||(u=!1,(zh.instantAnimations||!s)&&l?.(dv(e,n,t)),e[0]=e[e.length-1],fy(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>yy?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&vy(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new cy({...d,element:p})}catch{m=new gv(d)}else m=new gv(d);m.finished.then(()=>{this.notifyFinished()}).catch(Wh),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Uv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function xy(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Sy=30,Cy=e=>!isNaN(parseFloat(e)),wy={current:void 0},Ty=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=kg.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=kg.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Cy(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new qh);let n=this.events[e].add(t);return e===`change`?()=>{n(),Cg.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return wy.current&&wy.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=kg.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Sy)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Sy);return Xh(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ey(e,t){return new Ty(e,t)}function Dy(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Oy(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Dy(n,e)}var ky={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ay=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jy={type:`keyframes`,duration:.8},My={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Ny=(e,{keyframes:t})=>t.length>2?jy:jv.has(e)?e.startsWith(`scale`)?Ay(t[1]):ky:My,Py=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Fy(e){for(let t in e)if(!Py.has(t))return!0;return!1}var Iy=(e,t,n,r={},i,a)=>o=>{let s=Oy(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Jh(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Fy(s)||Object.assign(u,Ny(e,u)),u.duration&&=Jh(u.duration),u.repeatDelay&&=Jh(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(fy(u),u.delay===0&&(d=!0)),(zh.instantAnimations||zh.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,fy(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=dv(u.keyframes,s);if(e!==void 0){Cg.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new gv(u):new by(u)},Ly=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ry(e){let t=Ly.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zy(e,t,n=1){`${e}`;let[r,i]=Ry(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Bh(e)?parseFloat(e):e}return Ng(i)?zy(i,t,n+1):i}function By(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Vy(e,t,n,r){if(typeof t==`function`){let[i,a]=By(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=By(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Hy(e,t,n){let r=e.getProps();return Vy(r,t,n===void 0?r.custom:n,e)}var Uy=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Av]),Wy=e=>Array.isArray(e);function Gy(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ey(n))}function Ky(e){return Wy(e)?e[e.length-1]||0:e}function qy(e,t){let{transitionEnd:n={},transition:r={},...i}=Hy(e,t)||{};i={...i,...n};for(let t in i)Gy(e,t,Ky(i[t]))}var Jy=e=>!!(e&&e.getVelocity);function Yy(e){return!!(Jy(e)&&e.add)}function Xy(e,t){let n=e.getValue(`willChange`);if(Yy(n))return n.add(t);if(!n&&zh.WillChange){let n=new zh.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Zy(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Qy=`data-`+Zy(`framerAppearId`);function $y(e){return e.props[Qy]}function eb({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Dy(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&eb(f,t))continue;let o={delay:n,...Oy(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Cg.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=$y(e);if(n){let e=window.MotionHandoffAnimation(n,t,Cg);e!==null&&(o.startTime=e,p=!0)}}Xy(e,t);let m=l??e.shouldReduceMotion;r.start(Iy(t,r,i,m&&Uy.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Cg.update(()=>{o&&qy(e,o)});d.length?Promise.all(d).then(t):t()}return d}function nb(e,t,n={}){let r=Hy(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(tb(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return rb(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function rb(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(nb(c,t,{...o,delay:n+(typeof r==`function`?0:r)+xy(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ib(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>nb(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=nb(e,t,n);else{let i=typeof t==`function`?Hy(e,t,n.custom):t;r=Promise.all(tb(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ab={test:e=>e===`auto`,parse:e=>e},ob=e=>t=>t.test(e),sb=[Ig,Z,Qg,Zg,e_,$g,ab],cb=e=>sb.find(ob(e));function lb(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Hh(e)}var ub=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function db(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Bg)||[];if(!r)return e;let i=n.replace(r,``),a=+!!ub.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var fb=/\b([a-z-]*)\(.*?\)/gu,pb={...y_,getAnimatableNone:e=>{let t=e.match(fb);return t?t.map(db).join(` `):e}},mb={...y_,getAnimatableNone:e=>{let t=y_.parse(e);return y_.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},hb={...Ig,transform:Math.round},gb={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,top:Z,right:Z,bottom:Z,left:Z,inset:Z,insetBlock:Z,insetBlockStart:Z,insetBlockEnd:Z,insetInline:Z,insetInlineStart:Z,insetInlineEnd:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,paddingBlock:Z,paddingBlockStart:Z,paddingBlockEnd:Z,paddingInline:Z,paddingInlineStart:Z,paddingInlineEnd:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,marginBlock:Z,marginBlockStart:Z,marginBlockEnd:Z,marginInline:Z,marginInlineStart:Z,marginInlineEnd:Z,fontSize:Z,backgroundPositionX:Z,backgroundPositionY:Z,rotate:Zg,pathRotation:Zg,rotateX:Zg,rotateY:Zg,rotateZ:Zg,scale:Rg,scaleX:Rg,scaleY:Rg,scaleZ:Rg,skew:Zg,skewX:Zg,skewY:Zg,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:Lg,originX:t_,originY:t_,originZ:Z,zIndex:hb,fillOpacity:Lg,strokeOpacity:Lg,numOctaves:hb},_b={...gb,color:r_,backgroundColor:r_,outlineColor:r_,fill:r_,stroke:r_,borderColor:r_,borderTopColor:r_,borderRightColor:r_,borderBottomColor:r_,borderLeftColor:r_,filter:pb,WebkitFilter:pb,mask:mb,WebkitMask:mb},vb=e=>_b[e],yb=new Set([pb,mb]);function bb(e,t){let n=vb(e);return yb.has(n)||(n=y_),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var xb=new Set([`auto`,`none`,`0`]);function Sb(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!xb.has(t)&&f_(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=bb(n,i)}var Cb=class extends Wv{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ng(r))){let i=zy(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Uy.has(n)||e.length!==2)return;let[r,i]=e,a=cb(r),o=cb(i);if(Fg(r)!==Fg(i)&&Iv[n])this.needsMeasurement=!0;else if(a!==o){if(Mv(a)&&Mv(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Iv[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||lb(e[t]))&&n.push(t);n.length&&Sb(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Iv[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Iv[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},wb=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Tb(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Eb=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Db(e){return Vh(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Ob,cancel:kb}=Sg(queueMicrotask,!1),Ab={x:!1,y:!1};function jb(){return Ab.x||Ab.y}function Mb(e){return e===`x`||e===`y`?Ab[e]?null:(Ab[e]=!0,()=>{Ab[e]=!1}):Ab.x||Ab.y?null:(Ab.x=Ab.y=!0,()=>{Ab.x=Ab.y=!1})}function Nb(e,t){let n=Tb(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Pb(e){return!(e.pointerType===`touch`||jb())}function Fb(e,t,n={}){let[r,i,a]=Nb(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Pb(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Ib=(e,t)=>t?e===t||Ib(e,t.parentElement):!1,Lb=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Rb=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function zb(e){return Rb.has(e.tagName)||e.isContentEditable===!0}var Bb=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Vb(e){return Bb.has(e.tagName)||e.isContentEditable===!0}var Hb=new WeakSet;function Ub(e){return t=>{t.key===`Enter`&&e(t)}}function Wb(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Gb=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ub(()=>{if(Hb.has(n))return;Wb(n,`down`);let e=Ub(()=>{Wb(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Wb(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Kb(e){return Lb(e)&&!jb()}var qb=new WeakSet;function Jb(e,t,n={}){let[r,i,a]=Nb(e,n),o=e=>{let r=e.currentTarget;if(!Kb(e)||qb.has(e))return;Hb.add(r),n.stopPropagation&&qb.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Hb.has(r)&&Hb.delete(r),Kb(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Ib(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Db(e)&&(e.addEventListener(`focus`,e=>Gb(e,i)),!zb(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Yb(e){return Vh(e)&&`ownerSVGElement`in e}var Xb=new WeakMap,Zb,Qb=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Yb(r)&&`getBBox`in r?r.getBBox()[t]:r[n],$b=Qb(`inline`,`width`,`offsetWidth`),ex=Qb(`block`,`height`,`offsetHeight`);function tx({target:e,borderBoxSize:t}){Xb.get(e)?.forEach(n=>{n(e,{get width(){return $b(e,t)},get height(){return ex(e,t)}})})}function nx(e){e.forEach(tx)}function rx(){typeof ResizeObserver<`u`&&(Zb=new ResizeObserver(nx))}function ix(e,t){Zb||rx();let n=Tb(e);return n.forEach(e=>{let n=Xb.get(e);n||(n=new Set,Xb.set(e,n)),n.add(t),Zb?.observe(e)}),()=>{n.forEach(e=>{let n=Xb.get(e);n?.delete(t),n?.size||Zb?.unobserve(e)})}}var ax=new Set,ox;function sx(){ox=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ax.forEach(t=>t(e))},window.addEventListener(`resize`,ox)}function cx(e){return ax.add(e),ox||sx(),()=>{ax.delete(e),!ax.size&&typeof ox==`function`&&(window.removeEventListener(`resize`,ox),ox=void 0)}}function lx(e,t){return typeof e==`function`?cx(e):ix(e,t)}var ux={value:null,addProjectionMetrics:null};function dx(e){return Yb(e)&&e.tagName===`svg`}function fx(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=iv(i,a,o);return t?s(r):s}var px=[...sb,r_,y_],mx=e=>px.find(ob(e)),hx=()=>({translate:0,scale:1,origin:0,originPoint:0}),gx=()=>({x:hx(),y:hx()}),_x=()=>({min:0,max:0}),vx=()=>({x:_x(),y:_x()}),yx=new WeakMap;function bx(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function xx(e){return typeof e==`string`||Array.isArray(e)}var Sx=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Cx=[`initial`,...Sx];function wx(e){return bx(e.animate)||Cx.some(t=>xx(e[t]))}function Tx(e){return!!(wx(e)||e.variants)}function Ex(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Jy(i))e.addValue(r,i);else if(Jy(a))e.addValue(r,Ey(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Ey(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Dx={current:null},Ox={current:!1},kx=typeof window<`u`;function Ax(){if(Ox.current=!0,kx){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Dx.current=e.matches;e.addEventListener(`change`,t),t()}else Dx.current=!1}}var jx=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Mx={};function Nx(e){Mx=e}function Px(){return Mx}var Fx=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Wv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=kg.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Cg.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=wx(t),this.isVariantNode=Tx(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Jy(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,yx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ox.current||Ax(),this.shouldReduceMotion=Dx.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),wg(this.notifyUpdate),wg(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&py.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ry({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Jh(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=jv.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Cg.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Mx){let t=Mx[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):vx()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<jx.length;t++){let n=jx[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ex(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Ey(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Bh(n)||Hh(n))?n=parseFloat(n):!mx(n)&&y_.test(t)&&(n=bb(e,t)),this.setBaseTarget(e,Jy(n)?n.get():n)),Jy(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Vy(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Jy(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new qh),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ob.render(this.render)}},Ix=class extends Fx{constructor(){super(...arguments),this.KeyframeResolver=Cb}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Jy(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Lx=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Rx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Bx(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Vx(e){return e===void 0||e===1}function Hx({scale:e,scaleX:t,scaleY:n}){return!Vx(e)||!Vx(t)||!Vx(n)}function Ux(e){return Hx(e)||Wx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Wx(e){return Gx(e.x)||Gx(e.y)}function Gx(e){return e&&e!==`0%`}function Kx(e,t,n){return n+t*(e-n)}function qx(e,t,n,r,i){return i!==void 0&&(e=Kx(e,i,r)),Kx(e,n,r)+t}function Jx(e,t=0,n=1,r,i){e.min=qx(e.min,t,n,r,i),e.max=qx(e.max,t,n,r,i)}function Yx(e,{x:t,y:n}){Jx(e.x,t.translate,t.scale,t.originPoint),Jx(e.y,n.translate,n.scale,n.originPoint)}var Xx=.999999999999,Zx=1.0000000000001;function Qx(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&($x(e.x,-a.scroll.offset.x),$x(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Yx(e,o)),r&&Ux(a.latestValues)&&nS(e,a.latestValues,a.layout?.layoutBox))}t.x<Zx&&t.x>Xx&&(t.x=1),t.y<Zx&&t.y>Xx&&(t.y=1)}function $x(e,t){e.min+=t,e.max+=t}function eS(e,t,n,r,i=.5){Jx(e,t,n,C_(e.min,e.max,i),r)}function tS(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function nS(e,t,n){let r=n??e;eS(e.x,tS(t.x,r.x),t.scaleX,t.scale,t.originX),eS(e.y,tS(t.y,r.y),t.scaleY,t.scale,t.originY)}function rS(e,t){return Rx(Bx(e.getBoundingClientRect(),t))}function iS(e,t,n){let r=rS(e,n),{scroll:i}=t;return i&&($x(r.x,i.offset.x),$x(r.y,i.offset.y)),r}var aS={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},oS=Av.length;function sS(e,t,n){let r=``,i=!0;for(let a=0;a<oS;a++){let o=Av[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Eb(s,gb[o]);if(!c){i=!1;let t=aS[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Eb(a,gb.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function cS(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(jv.has(e))o=!0;else if(jg(e))i[e]=n;else{let t=Eb(n,gb[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=sS(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function lS(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function uS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var dS={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(Z.test(e))e=parseFloat(e);else return e}return`${uS(e,t.target.x)}% ${uS(e,t.target.y)}%`}},fS={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=y_.parse(e);if(i.length>5)return r;let a=y_.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=C_(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},pS={borderRadius:{...dS,applyTo:[...wb]},borderTopLeftRadius:dS,borderTopRightRadius:dS,borderBottomLeftRadius:dS,borderBottomRightRadius:dS,boxShadow:fS};function mS(e,{layout:t,layoutId:n}){return jv.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!pS[e]||e===`opacity`)}function hS(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Jy(r[t])||i&&Jy(i[t])||mS(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function gS(e){return window.getComputedStyle(e)}var _S=class extends Ix{constructor(){super(...arguments),this.type=`html`,this.renderInstance=lS}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(jv.has(t))return this.projection?.isProjecting?Ev(t):Ov(e,t);{let n=gS(e),r=(jg(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rS(e,t)}build(e,t,n){cS(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return hS(e,t,n)}},vS={offset:`stroke-dashoffset`,array:`stroke-dasharray`},yS={offset:`strokeDashoffset`,array:`strokeDasharray`};function bS(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?vS:yS;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var xS=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function SS(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(cS(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of xS)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&bS(d,i,a,o,!1)}var CS=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),wS=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function TS(e,t,n,r){lS(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(CS.has(n)?n:Zy(n),t.attrs[n])}function ES(e,t,n){let r=hS(e,t,n);for(let n in e)if(Jy(e[n])||Jy(t[n])){let t=Av.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var DS=class extends Ix{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=vx}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(jv.has(t)){let e=vb(t);return e&&e.default||0}return t=CS.has(t)?t:Zy(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ES(e,t,n)}build(e,t,n){SS(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){TS(e,t,n,r)}mount(e){this.isSVGTag=wS(e.tagName),super.mount(e)}},OS=Cx.length;function kS(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&kS(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<OS;n++){let r=Cx[n],i=e.props[r];(xx(i)||i===!1)&&(t[r]=i)}return t}function AS(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var jS=[...Sx].reverse(),MS=Sx.length;function NS(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ib(e,t,n)))}function PS(e){let t=NS(e),n=LS(),r=!0,i=!1,a=t=>(n,r)=>{let i=Hy(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=kS(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<MS;t++){let p=jS[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=xx(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||bx(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=FS(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Wy(t)&&Wy(n)?!AS(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Hy(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=xy(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Hy(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=LS(),i=!0}}}function FS(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!AS(t,e):!1}function IS(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LS(){return{animate:IS(!0),whileInView:IS(),whileHover:IS(),whileTap:IS(),whileDrag:IS(),whileFocus:IS(),exit:IS()}}function RS(e,t){e.min=t.min,e.max=t.max}function zS(e,t){RS(e.x,t.x),RS(e.y,t.y)}function BS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var VS=.9999,HS=1.0001,US=-.01,WS=.01;function GS(e){return e.max-e.min}function KS(e,t,n){return Math.abs(e-t)<=n}function qS(e,t,n,r=.5){e.origin=r,e.originPoint=C_(t.min,t.max,e.origin),e.scale=GS(n)/GS(t),e.translate=C_(n.min,n.max,e.origin)-e.originPoint,(e.scale>=VS&&e.scale<=HS||isNaN(e.scale))&&(e.scale=1),(e.translate>=US&&e.translate<=WS||isNaN(e.translate))&&(e.translate=0)}function JS(e,t,n,r){qS(e.x,t.x,n.x,r?r.originX:void 0),qS(e.y,t.y,n.y,r?r.originY:void 0)}function YS(e,t,n,r=0){e.min=(r?C_(n.min,n.max,r):n.min)+t.min,e.max=e.min+GS(t)}function XS(e,t,n,r){YS(e.x,t.x,n.x,r?.x),YS(e.y,t.y,n.y,r?.y)}function ZS(e,t,n,r=0){let i=r?C_(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+GS(t)}function QS(e,t,n,r){ZS(e.x,t.x,n.x,r?.x),ZS(e.y,t.y,n.y,r?.y)}function $S(e,t,n,r,i){return e-=t,e=Kx(e,1/n,r),i!==void 0&&(e=Kx(e,1/i,r)),e}function eC(e,t=0,n=1,r=.5,i,a=e,o=e){if(Qg.test(t)&&(t=parseFloat(t),t=C_(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=C_(a.min,a.max,r);e===a&&(s-=t),e.min=$S(e.min,t,n,s,i),e.max=$S(e.max,t,n,s,i)}function tC(e,t,[n,r,i],a,o){eC(e,t[n],t[r],t[i],t.scale,a,o)}var nC=[`x`,`scaleX`,`originX`],rC=[`y`,`scaleY`,`originY`];function iC(e,t,n,r){tC(e.x,t,nC,n?n.x:void 0,r?r.x:void 0),tC(e.y,t,rC,n?n.y:void 0,r?r.y:void 0)}function aC(e){return e.translate===0&&e.scale===1}function oC(e){return aC(e.x)&&aC(e.y)}function sC(e,t){return e.min===t.min&&e.max===t.max}function cC(e,t){return sC(e.x,t.x)&&sC(e.y,t.y)}function lC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function uC(e,t){return lC(e.x,t.x)&&lC(e.y,t.y)}function dC(e){return GS(e.x)/GS(e.y)}function fC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function pC(e){return[e(`x`),e(`y`)]}function mC(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var hC=wb.length,gC=e=>typeof e==`string`?parseFloat(e):e,_C=e=>typeof e==`number`||Z.test(e);function vC(e,t,n,r,i,a){i?(e.opacity=C_(0,n.opacity??1,bC(r)),e.opacityExit=C_(t.opacity??1,0,xC(r))):a&&(e.opacity=C_(t.opacity??1,n.opacity??1,r));for(let i=0;i<hC;i++){let a=wb[i],o=yC(t,a),s=yC(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||_C(o)===_C(s)?(e[a]=Math.max(C_(gC(o),gC(s),r),0),(Qg.test(s)||Qg.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=C_(t.rotate||0,n.rotate||0,r))}function yC(e,t){return e[t]===void 0?e.borderRadius:e[t]}var bC=SC(0,.5,lg),xC=SC(.5,.95,Wh);function SC(e,t,n){return r=>r<e?0:r>t?1:n(Kh(e,t,r))}function CC(e,t,n){let r=Jy(e)?e:Ey(e);return r.start(Iy(``,r,t,n)),r.animation}function wC(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var TC=(e,t)=>e.depth-t.depth,EC=class{constructor(){this.children=[],this.isDirty=!1}add(e){Fh(this.children,e),this.isDirty=!0}remove(e){Ih(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(TC),this.isDirty=!1,this.children.forEach(e)}};function DC(e,t){let n=kg.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(wg(r),e(a-t))};return Cg.setup(r,!0),()=>wg(r)}function OC(e){return Jy(e)?e.get():e}var kC=class{constructor(){this.members=[]}add(e){Fh(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(Ih(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ih(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},AC={hasAnimatedSinceResize:!0,hasEverUpdated:!1},jC={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},MC=[``,`X`,`Y`,`Z`],NC=1e3,PC=0;function FC(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function IC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=$y(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Cg,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&IC(r)}function LC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=PC++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ux.value&&(jC.nodes=jC.calculatedTargetDeltas=jC.calculatedProjections=0),this.nodes.forEach(BC),this.nodes.forEach(YC),this.nodes.forEach(XC),this.nodes.forEach(VC),ux.addProjectionMetrics&&ux.addProjectionMetrics(jC)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new EC)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new qh),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Yb(t)&&!dx(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Cg.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=DC(i,250),AC.hasAnimatedSinceResize&&(AC.hasAnimatedSinceResize=!1,this.nodes.forEach(JC)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||rw,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!uC(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Oy(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||JC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wg(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZC),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&IC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(WC),this.nodes.forEach(UC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(GC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(KC),this.nodes.forEach(qC),this.nodes.forEach(RC),this.nodes.forEach(zC)):this.nodes.forEach(GC),this.clearAllSnapshots();let e=kg.now();Tg.delta=Rh(0,1e3/60,e-Tg.timestamp),Tg.timestamp=e,Tg.isProcessing=!0,Eg.update.process(Tg),Eg.preRender.process(Tg),Eg.render.process(Tg),Tg.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ob.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HC),this.sharedNodes.forEach(QC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Cg.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Cg.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!GS(this.snapshot.measuredBox.x)&&!GS(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=vx(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!oC(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ux(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),sw(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return vx();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(lw))){let{scroll:e}=this.root;e&&($x(t.x,e.offset.x),$x(t.y,e.offset.y))}return t}removeElementScroll(e){let t=vx();if(zS(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&zS(t,e),$x(t.x,i.offset.x),$x(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||vx();zS(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&($x(r.x,-n.scroll.offset.x),$x(r.y,-n.scroll.offset.y)),Ux(n.latestValues)&&nS(r,n.latestValues,n.layout?.layoutBox)}return Ux(this.latestValues)&&nS(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=vx();zS(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ux(n.latestValues))continue;let r;n.instance&&(Hx(n.latestValues)&&n.updateSnapshot(),r=vx(),zS(r,n.measurePageBox())),iC(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ux(this.latestValues)&&iC(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Tg.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Tg.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=vx(),this.targetWithTransforms=vx()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),XS(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):zS(this.target,this.layout.layoutBox),Yx(this.target,this.targetDelta)):zS(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),ux.value&&jC.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Hx(this.parent.latestValues)||Wx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vx(),this.relativeTargetOrigin=vx(),QS(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),zS(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Tg.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;zS(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Qx(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=vx());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(BS(this.prevProjectionDelta.x,this.projectionDelta.x),BS(this.prevProjectionDelta.y,this.projectionDelta.y)),JS(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&fC(this.projectionDelta.x,this.prevProjectionDelta.x)&&fC(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),ux.value&&jC.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gx(),this.projectionDelta=gx(),this.projectionDeltaWithTransform=gx()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=gx();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=vx(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(nw));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=C_(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=C_(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):($C(o.x,e.x,n),$C(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(QS(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),tw(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&cC(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=vx(),zS(f,this.relativeTarget)),c&&(this.animationValues=a,vC(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(wg(this.pendingAnimation),void 0),this.pendingAnimation=Cg.update(()=>{AC.hasAnimatedSinceResize=!0,this.motionValue||=Ey(0),this.motionValue.jump(0,!1),this.currentAnimation=CC(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(NC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&cw(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||vx();let t=GS(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=GS(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}zS(t,n),nS(t,i),JS(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new kC),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&FC(`z`,e,r,this.animationValues);for(let t=0;t<MC.length;t++)FC(`rotate${MC[t]}`,e,r,this.animationValues),FC(`skew${MC[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=OC(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=OC(t?.pointerEvents)||``),this.hasProjected&&!Ux(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=mC(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in pS){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=pS[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?OC(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(UC),this.root.sharedNodes.clear()}}}function RC(e){e.updateLayout()}function zC(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)pC(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=GS(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;RS(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else cw(i,t.layoutBox,n)&&pC(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=GS(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=gx();JS(o,n,t.layoutBox);let s=gx();a?JS(s,e.applyTransform(r,!0),t.measuredBox):JS(s,n,t.layoutBox);let c=!oC(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=vx();QS(s,t.layoutBox,i.layoutBox,o);let c=vx();QS(c,n,a.layoutBox,o),uC(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function BC(e){ux.value&&jC.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function VC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HC(e){e.clearSnapshot()}function UC(e){e.clearMeasurements()}function WC(e){e.isLayoutDirty=!0,e.updateLayout()}function GC(e){e.isLayoutDirty=!1}function KC(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function qC(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function JC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function YC(e){e.resolveTargetDelta()}function XC(e){e.calcProjection()}function ZC(e){e.resetSkewAndRotation()}function QC(e){e.removeLeadSnapshot()}function $C(e,t,n){e.translate=C_(t.translate,0,n),e.scale=C_(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ew(e,t,n,r){e.min=C_(t.min,n.min,r),e.max=C_(t.max,n.max,r)}function tw(e,t,n,r){ew(e.x,t.x,n.x,r),ew(e.y,t.y,n.y,r)}function nw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var rw={duration:.45,ease:[.4,0,.1,1]},iw=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),aw=iw(`applewebkit/`)&&!iw(`chrome/`)?Math.round:Wh;function ow(e){e.min=aw(e.min),e.max=aw(e.max)}function sw(e){ow(e.x),ow(e.y)}function cw(e,t,n){return e===`position`||e===`preserve-aspect`&&!KS(dC(t),dC(n),.2)}function lw(e){return e!==e.root&&e.scroll?.wasRoot}var uw=LC({attachResizeListener:(e,t)=>wC(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),dw={current:void 0},fw=LC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dw.current){let e=new uw({});e.mount(window),e.setOptions({layoutScroll:!0}),dw.current=e}return dw.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),pw=(0,q.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function mw(e=!0){let t=(0,q.useContext)(Ph);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,q.useId)();(0,q.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,q.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var hw=(0,q.createContext)({strict:!1}),gw={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},_w=!1;function vw(){if(_w)return;let e={};for(let t in gw)e[t]={isEnabled:e=>gw[t].some(t=>!!e[t])};Nx(e),_w=!0}function yw(){return vw(),Px()}function bw(e){let t=yw();for(let n in e)t[n]={...t[n],...e[n]};Nx(t)}var xw=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Sw(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||xw.has(e)}var Cw=e=>!Sw(e);function ww(e){typeof e==`function`&&(Cw=t=>t.startsWith(`on`)?!Sw(t):e(t))}try{ww((p(),e(m)).default)}catch{}function Tw(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Jy(e[i])||(Cw(i)||n===!0&&Sw(i)||!t&&!Sw(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Ew=(0,q.createContext)({});function Dw(e,t){if(wx(e)){let{initial:t,animate:n}=e;return{initial:t===!1||xx(t)?t:void 0,animate:xx(n)?n:void 0}}return e.inherit===!1?{}:t}function Ow(e){let{initial:t,animate:n}=Dw(e,(0,q.useContext)(Ew));return(0,q.useMemo)(()=>({initial:t,animate:n}),[kw(t),kw(n)])}function kw(e){return Array.isArray(e)?e.join(` `):e}var Aw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jw(e,t,n){for(let r in t)!Jy(t[r])&&!mS(r,n)&&(e[r]=t[r])}function Mw({transformTemplate:e},t){return(0,q.useMemo)(()=>{let n=Aw();return cS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Nw(e,t){let n=e.style||{},r={};return jw(r,n,e),Object.assign(r,Mw(e,t)),r}function Pw(e,t){let n={},r=Nw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Fw=()=>({...Aw(),attrs:{}});function Iw(e,t,n,r){let i=(0,q.useMemo)(()=>{let n=Fw();return SS(n,t,wS(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};jw(t,e.style,e),i.style={...t,...i.style}}return i}var Lw=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Rw(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Lw.indexOf(e)>-1||/[A-Z]/u.test(e))}function zw(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Rw(e)?Iw:Pw)(t,r,i,e),c=Tw(t,typeof e==`string`,a),l=e===q.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,q.useMemo)(()=>Jy(u)?u.get():u,[u]);return(0,q.createElement)(e,{...l,children:d})}function Bw({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Vw(n,r,i,e),renderState:t()}}function Vw(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=OC(a[e]);let{initial:o,animate:s}=e,c=wx(e),l=Tx(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!bx(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Vy(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Hw=e=>(t,n)=>{let r=(0,q.useContext)(Ew),i=(0,q.useContext)(Ph),a=()=>Bw(e,t,r,i);return n?a():Mh(a)},Uw=Hw({scrapeMotionValuesFromProps:hS,createRenderState:Aw}),Ww=Hw({scrapeMotionValuesFromProps:ES,createRenderState:Fw}),Gw=Symbol.for(`motionComponentSymbol`);function Kw(e,t,n){let r=(0,q.useRef)(n);(0,q.useInsertionEffect)(()=>{r.current=n});let i=(0,q.useRef)(null);return(0,q.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var qw=(0,q.createContext)({});function Jw(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Yw(e,t,n,r,i,a){let{visualElement:o}=(0,q.useContext)(Ew),s=(0,q.useContext)(hw),c=(0,q.useContext)(Ph),l=(0,q.useContext)(pw),u=l.reducedMotion,d=l.skipAnimations,f=(0,q.useRef)(null),p=(0,q.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,q.useContext)(qw);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Xw(f.current,n,i,h);let g=(0,q.useRef)(!1);(0,q.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Qy],v=(0,q.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Nh(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,q.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Xw(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Zw(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Jw(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Zw(e){if(e)return e.options.allowProjection===!1?Zw(e.parent):e.projection}function Qw(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&bw(r);let a=n?n===`svg`:Rw(e),o=a?Ww:Uw;function s(n,s){let c,l={...(0,q.useContext)(pw),...n,layoutId:$w(n)},{isStatic:u}=l,d=Ow(n),f=o(n,u);if(!u&&typeof window<`u`){eT(l,r);let t=tT(l);c=t.MeasureLayout,d.visualElement=Yw(e,f,l,i,t.ProjectionNode,a)}return(0,Y.jsxs)(Ew.Provider,{value:d,children:[c&&d.visualElement?(0,Y.jsx)(c,{visualElement:d.visualElement,...l}):null,zw(e,n,Kw(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,q.forwardRef)(s);return c[Gw]=e,c}function $w({layoutId:e}){let t=(0,q.useContext)(jh).id;return t&&e!==void 0?t+`-`+e:e}function eT(e,t){(0,q.useContext)(hw).strict}function tT(e){let{drag:t,layout:n}=yw();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function nT(e,t){if(typeof Proxy>`u`)return Qw;let n=new Map,r=(n,r)=>Qw(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Qw(a,void 0,e,t)),n.get(a))})}var rT=(e,t)=>t.isSVG??Rw(e)?new DS(t):new _S(t,{allowProjection:e!==q.Fragment}),iT=class extends Lx{constructor(e){super(e),e.animationState||=PS(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();bx(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},aT=0,oT={animation:{Feature:iT},exit:{Feature:class extends Lx{constructor(){super(...arguments),this.id=aT++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Hy(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function sT(e){return{point:{x:e.pageX,y:e.pageY}}}var cT=e=>t=>Lb(t)&&e(t,sT(t));function lT(e,t,n,r){return wC(e,t,cT(n),r)}var uT=({current:e})=>e?e.ownerDocument.defaultView:null,dT=(e,t)=>Math.abs(e-t);function fT(e,t){let n=dT(e.x,t.x),r=dT(e.y,t.y);return Math.sqrt(n**2+r**2)}var pT=new Set([`auto`,`scroll`]),mT=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=hT(this.lastRawMoveEventInfo,this.transformPagePoint));let e=_T(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=fT(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Tg;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=hT(t,this.transformPagePoint),Cg.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=_T(e.type===`pointercancel`?this.lastMoveEventInfo:hT(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Lb(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=hT(sT(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Tg;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,_T(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Gh(lT(this.contextWindow,`pointermove`,this.handlePointerMove,d),lT(this.contextWindow,`pointerup`,this.handlePointerUp,d),lT(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(pT.has(e.overflowX)||pT.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Cg.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),wg(this.updatePoint)}};function hT(e,t){return t?{point:t(e.point)}:e}function gT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _T({point:e},t){return{point:e,delta:gT(e,yT(t)),offset:gT(e,vT(t)),velocity:bT(t,.1)}}function vT(e){return e[0]}function yT(e){return e[e.length-1]}function bT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=yT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Jh(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Jh(t)*2&&(r=e[1]);let a=Yh(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function xT(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?C_(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?C_(n,e,r.max):Math.min(e,n)),e}function ST(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function CT(e,{top:t,left:n,bottom:r,right:i}){return{x:ST(e.x,n,i),y:ST(e.y,t,r)}}function wT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function TT(e,t){return{x:wT(e.x,t.x),y:wT(e.y,t.y)}}function ET(e,t){let n=.5,r=GS(e),i=GS(t);return i>r?n=Kh(t.min,t.max-r,e.min):r>i&&(n=Kh(e.min,e.max-i,t.min)),Rh(0,1,n)}function DT(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var OT=.35;function kT(e=OT){return e===!1?e=0:e===!0&&(e=OT),{x:AT(e,`left`,`right`),y:AT(e,`top`,`bottom`)}}function AT(e,t,n){return{min:jT(e,t),max:jT(e,n)}}function jT(e,t){return typeof e==`number`?e:e[t]||0}var MT=new WeakMap,NT=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=vx(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(sT(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Mb(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pC(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Qg.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=GS(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Cg.update(()=>i(e,t),!1,!0),Xy(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=LT(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Cg.update(()=>a(e,t),!1,!0))},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new mT(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:uT(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Cg.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!IT(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=xT(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Jw(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?CT(n.layoutBox,e):!1,this.elastic=kT(t),r!==this.constraints&&!Jw(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&pC(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=DT(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Jw(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=iS(n,r.root,this.visualElement.getTransformPagePoint()),a=TT(r.layout.layoutBox,i);if(t){let e=t(zx(a));this.hasMutatedConstraints=!!e,e&&(a=Rx(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=pC(o=>{if(!IT(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Xy(this.visualElement,e),n.start(Iy(e,n,0,t,this.visualElement,!1))}stopAnimation(){pC(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){pC(t=>{let{drag:n}=this.getProps();if(!IT(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-C_(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Jw(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};pC(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=ET({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),pC(t=>{if(!IT(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(C_(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;MT.set(this.visualElement,this);let e=this.visualElement.current,t=lT(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Vb(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Jw(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=FT(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Cg.read(r);let o=wC(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(pC(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=OT,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function PT(e){let t=!0;return()=>{t?t=!1:e()}}function FT(e,t,n){let r=lx(e,PT(n)),i=lx(t,PT(n));return()=>{r(),i()}}function IT(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function LT(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var RT=class extends Lx{constructor(e){super(e),this.removeGroupControls=Wh,this.removeListeners=Wh,this.controls=new NT(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wh}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},zT=e=>(t,n)=>{e&&Cg.update(()=>e(t,n),!1,!0)},BT=class extends Lx{constructor(){super(...arguments),this.removePointerDownListener=Wh}onPointerDown(e){this.session=new mT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uT(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:zT(e),onStart:zT(t),onMove:zT(n),onEnd:(e,t)=>{delete this.session,r&&Cg.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=lT(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},VT=!1,HT=class extends q.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),VT&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),AC.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),VT=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Cg.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Ob.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;VT=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function UT(e){let[t,n]=mw(),r=(0,q.useContext)(jh);return(0,Y.jsx)(HT,{...e,layoutGroup:r,switchLayoutGroup:(0,q.useContext)(qw),isPresent:t,safeToRemove:n})}var WT={pan:{Feature:BT},drag:{Feature:RT,ProjectionNode:fw,MeasureLayout:UT}};function GT(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Cg.postRender(()=>i(t,sT(t)))}var KT=class extends Lx{mount(){let{current:e}=this.node;e&&(this.unmount=Fb(e,(e,t)=>(GT(this.node,t,`Start`),e=>GT(this.node,e,`End`))))}unmount(){}},qT=class extends Lx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Gh(wC(this.node.current,`focus`,()=>this.onFocus()),wC(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function JT(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Cg.postRender(()=>i(t,sT(t)))}var YT=class extends Lx{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Jb(e,(e,t)=>(JT(this.node,t,`Start`),(e,{success:t})=>JT(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},XT=new WeakMap,ZT=new WeakMap,QT=e=>{let t=XT.get(e.target);t&&t(e)},$T=e=>{e.forEach(QT)};function eE({root:e,...t}){let n=e||document;ZT.has(n)||ZT.set(n,{});let r=ZT.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($T,{root:e,...t})),r[i]}function tE(e,t,n){let r=eE(t);return XT.set(e,n),r.observe(e),()=>{XT.delete(e),r.unobserve(e)}}var nE={some:0,all:1},rE=class extends Lx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:nE[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=tE(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(iE(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function iE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var aE={inView:{Feature:rE},tap:{Feature:YT},focus:{Feature:qT},hover:{Feature:KT}},oE={layout:{ProjectionNode:fw,MeasureLayout:UT}},sE=nT({...oT,...aE,...WT,...oE},rT);function cE(e){let t=Mh(()=>Ey(e)),{isStatic:n}=(0,q.useContext)(pw);if(n){let[,n]=(0,q.useState)(e);(0,q.useEffect)(()=>t.on(`change`,n),[])}return t}function lE(e,t){let n=cE(t()),r=()=>n.set(t());return r(),Nh(()=>{let t=()=>Cg.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),wg(r)}}),n}function uE(e){wy.current=[],e();let t=lE(wy.current,e);return wy.current=void 0,t}function dE(e,t,n,r){if(typeof e==`function`)return uE(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return pE(e,t,n,r);let i=typeof t==`function`?t:fx(t,n,r),a=Array.isArray(e)?fE(e,i):fE([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function fE(e,t){let n=Mh(()=>[]);return lE(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function pE(e,t,n,r){let i=Mh(()=>Object.keys(n)),a=Mh(()=>({}));for(let o of i)a[o]=dE(e,t,n[o],r);return a}var mE=(0,q.createContext)(null);function hE(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(i===-1)return e;let a=r>0?1:-1,o=e[i+a];if(!o)return e;let s=e[i],c=o.layout,l=C_(c.min,c.max,.5);return a===1&&s.layout.max+n>l||a===-1&&s.layout.min+n<l?Lh(e,i,i+a):e}function gE({children:e,as:t=`ul`,axis:n=`y`,onReorder:r,values:i,...a},o){let s=Mh(()=>sE[t]),c=[],l=(0,q.useRef)(!1),u=(0,q.useRef)(null),d={axis:n,groupRef:u,registerItem:(e,t)=>{let r=c.findIndex(t=>e===t.value);r===-1?c.push({value:e,layout:t[n]}):c[r].layout=t[n],c.sort(vE)},updateOrder:(e,t,n)=>{if(l.current)return;let a=hE(c,e,t,n);if(c!==a){l.current=!0;let e=[...i];for(let t=0;t<a.length;t++)if(c[t].value!==a[t].value){let n=i.indexOf(c[t].value),r=i.indexOf(a[t].value);n!==-1&&r!==-1&&([e[n],e[r]]=[e[r],e[n]]);break}r(e)}}};(0,q.useEffect)(()=>{l.current=!1});let f=e=>{u.current=e,typeof o==`function`?o(e):o&&(o.current=e)},p={overflowAnchor:`none`,...a.style};return(0,Y.jsx)(s,{...a,style:p,ref:f,ignoreStrict:!0,children:(0,Y.jsx)(mE.Provider,{value:d,children:e})})}var _E=(0,q.forwardRef)(gE);function vE(e,t){return e.layout.min-t.layout.min}var yE=50,bE=25,xE=new Set([`auto`,`scroll`]),SE=new WeakMap,CE=new WeakMap,wE=null;function TE(){if(wE){let e=DE(wE,`y`);e&&(CE.delete(e),SE.delete(e));let t=DE(wE,`x`);t&&t!==e&&(CE.delete(t),SE.delete(t)),wE=null}}function EE(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return xE.has(r)||i}function DE(e,t){let n=e?.parentElement;for(;n;){if(EE(n,t))return n;n=n.parentElement}return null}function OE(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<yE){let e=1-o/yE;return{amount:-25*e*e,edge:`start`}}if(s<yE){let e=1-s/yE;return{amount:bE*e*e,edge:`end`}}return{amount:0,edge:null}}function kE(e,t,n,r){if(!e)return;wE=e;let i=DE(e,n);if(!i)return;let{amount:a,edge:o}=OE(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){CE.delete(i),SE.delete(i);return}let s=CE.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;CE.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);SE.set(i,e)}if(a>0){let e=SE.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function AE(e,t=0){return Jy(e)?e:cE(t)}function jE({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=Mh(()=>sE[r]),u=(0,q.useContext)(mE),d={x:AE(t.x),y:AE(t.y)},f=dE([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g}=u;return(0,Y.jsx)(l,{drag:p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o=d[p].get();h(n,o,r[p]),kE(g.current,a[p],p,r[p]),i&&i(e,t)},onDragEnd:(e,t)=>{TE(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var ME=(0,q.forwardRef)(jE),NE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(16),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({isActive:a,value:s,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=a&&`graphiql-tab-active`,l;n[6]!==i||n[7]!==c?(l=nh(`graphiql-tab`,c,i),n[6]=i,n[7]=c,n[8]=l):l=n[8];let u;return n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==t||n[13]!==l||n[14]!==s?(u=(0,Y.jsx)(ME,{...o,ref:t,value:s,"aria-selected":a,role:`tab`,className:l,children:r}),n[9]=r,n[10]=a,n[11]=o,n[12]=t,n[13]=l,n[14]=s,n[15]=u):u=n[15],u});NE.displayName=`Tab`;var PE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({children:r,className:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=nh(`graphiql-tab-button`,i),n[4]=i,n[5]=o);let s;return n[6]!==r||n[7]!==a||n[8]!==t||n[9]!==o?(s=(0,Y.jsx)(vh,{...a,ref:t,type:`button`,className:o,children:r}),n[6]=r,n[7]=a,n[8]=t,n[9]=o,n[10]=s):s=n[10],s});PE.displayName=`Tab.Button`;var FE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(7),r;n[0]===e.className?r=n[1]:(r=nh(`graphiql-tab-close`,e.className),n[0]=e.className,n[1]=r);let i;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(Om,{}),n[2]=i):i=n[2];let a;return n[3]!==e||n[4]!==t||n[5]!==r?(a=(0,Y.jsx)(vh,{"aria-label":`Close Tab`,...e,ref:t,type:`button`,className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=a):a=n[6],a});FE.displayName=`Tab.Close`;var IE=Object.assign(NE,{Button:PE,Close:FE}),LE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(15),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({values:s,onReorder:a,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c;n[6]===i?c=n[7]:(c=nh(`graphiql-tabs`,i),n[6]=i,n[7]=c);let l;return n[8]!==r||n[9]!==a||n[10]!==o||n[11]!==t||n[12]!==c||n[13]!==s?(l=(0,Y.jsx)(_E,{...o,ref:t,values:s,onReorder:a,axis:`x`,role:`tablist`,className:c,children:r}),n[8]=r,n[9]=a,n[10]=o,n[11]=t,n[12]=c,n[13]=s,n[14]=l):l=n[14],l});LE.displayName=`Tabs`;var RE=Object.assign(e=>{let t=(0,J.c)(10),{children:n,align:r,side:i,sideOffset:a,label:o}=e,s=r===void 0?`start`:r,c=i===void 0?`bottom`:i,u=a===void 0?5:a,d;t[0]===n?d=t[1]:(d=(0,Y.jsx)(fe,{asChild:!0,children:n}),t[0]=n,t[1]=d);let f;t[2]!==s||t[3]!==o||t[4]!==c||t[5]!==u?(f=(0,Y.jsx)(ae,{children:(0,Y.jsx)(O,{className:`graphiql-tooltip`,align:s,side:c,sideOffset:u,children:o})}),t[2]=s,t[3]=o,t[4]=c,t[5]=u,t[6]=f):f=t[6];let p;return t[7]!==d||t[8]!==f?(p=(0,Y.jsxs)(l,{children:[d,f]}),t[7]=d,t[8]=f,t[9]=p):p=t[9],p},{Provider:gt}),zE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(19),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({label:r,onClick:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let[o,s]=(0,q.useState)(null),c;n[4]===i?c=n[5]:(c=e=>{try{i&&i(e),s(null)}catch(e){let t=e;s(t instanceof Error?t:Error(`Toolbar button click failed: ${t}`))}},n[4]=i,n[5]=c);let l=c,u=o&&`error`,d;n[6]!==a.className||n[7]!==u?(d=nh(`graphiql-toolbar-button`,u,a.className),n[6]=a.className,n[7]=u,n[8]=d):d=n[8];let f=o?o.message:r,p=o?`true`:a[`aria-invalid`],m;n[9]!==l||n[10]!==a||n[11]!==t||n[12]!==d||n[13]!==f||n[14]!==p?(m=(0,Y.jsx)(vh,{...a,ref:t,type:`button`,className:d,onClick:l,"aria-label":f,"aria-invalid":p}),n[9]=l,n[10]=a,n[11]=t,n[12]=d,n[13]=f,n[14]=p,n[15]=m):m=n[15];let h;return n[16]!==r||n[17]!==m?(h=(0,Y.jsx)(RE,{label:r,children:m}),n[16]=r,n[17]=m,n[18]=h):h=n[18],h});zE.displayName=`ToolbarButton`;var BE=()=>{let e=(0,J.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={nonNull:!0,caller:BE},e[0]=t):t=e[0];let{queryEditor:n,setOperationName:r}=Mp(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:BE},e[1]=i):i=e[1];let{isFetching:a,isSubscribed:o,operationName:s,run:c,stop:l}=zp(i),u;e[2]===n?.operations?u=e[3]:(u=n?.operations||[],e[2]=n?.operations,e[3]=u);let d=u,f=d.length>1&&typeof s!=`string`,p=a||o,m=`${p?`Stop`:`Execute`} query (Ctrl-Enter)`,h;e[4]===p?h=e[5]:(h=p?(0,Y.jsx)(Qm,{}):(0,Y.jsx)(Wm,{}),e[4]=p,e[5]=h);let g;e[6]!==m||e[7]!==h?(g={type:`button`,className:`graphiql-execute-button`,children:h,"aria-label":m},e[6]=m,e[7]=h,e[8]=g):g=e[8];let _=g,v;return e[9]!==_||e[10]!==f||e[11]!==p||e[12]!==m||e[13]!==d||e[14]!==n||e[15]!==c||e[16]!==r||e[17]!==l?(v=f&&!p?(0,Y.jsxs)(Oh,{children:[(0,Y.jsx)(RE,{label:m,children:(0,Y.jsx)(Oh.Button,{..._})}),(0,Y.jsx)(Oh.Content,{children:d.map((e,t)=>{let i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,Y.jsx)(Oh.Item,{onSelect:()=>{let t=e.name?.value;n&&t&&t!==n.operationName&&r(t),c()},children:i},`${i}-${t}`)})})]}):(0,Y.jsx)(RE,{label:m,children:(0,Y.jsx)(`button`,{..._,onClick:()=>{p?l():c()}})}),e[9]=_,e[10]=f,e[11]=p,e[12]=m,e[13]=d,e[14]=n,e[15]=c,e[16]=r,e[17]=l,e[18]=v):v=e[18],v},VE=Ke((e,t)=>({historyStorage:null,actions:{addToHistory(n){let{historyStorage:r}=t();r.updateHistory(n),e({})},editLabel(n,r){let{historyStorage:i}=t();i.editLabel(n,r),e({})},toggleFavorite(n){let{historyStorage:r}=t();r.toggleFavorite(n),e({})},setActive:e=>e,deleteFromHistory(n,r){let{historyStorage:i}=t();i.deleteHistory(n,r),e({})}}})),HE=e=>{let t=(0,J.c)(12),{maxHistoryLength:n,children:r}=e,i=n===void 0?20:n,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={nonNull:!0},t[0]=a):a=t[0];let{isFetching:o}=zp(a),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={nonNull:!0},t[1]=s):s=t[1];let{tabs:c,activeTabIndex:l}=Mp(s),u=c[l],d=Ns(),f;t[2]!==i||t[3]!==d?(f=new xs(d,i),t[2]=i,t[3]=d,t[4]=f):f=t[4];let p=f,m,h;t[5]===p?(m=t[6],h=t[7]):(m=()=>{VE.setState({historyStorage:p})},h=[p],t[5]=p,t[6]=m,t[7]=h),(0,q.useEffect)(m,h);let g,_;return t[8]!==u||t[9]!==o?(g=()=>{if(!o)return;let{addToHistory:e}=VE.getState().actions;e({query:u.query??void 0,variables:u.variables??void 0,headers:u.headers??void 0,operationName:u.operationName??void 0})},_=[o,u],t[8]=u,t[9]=o,t[10]=g,t[11]=_):(g=t[10],_=t[11]),(0,q.useEffect)(g,_),r},UE=ks(VE),WE=()=>UE(KE),GE=()=>UE(qE);function KE(e){return e.historyStorage.queries}function qE(e){return e.actions}function JE(e,t){for(let n of e)t(n,!0)}var YE=()=>{let e=(0,J.c)(13),t=WE(),{deleteFromHistory:n}=GE(),r;r=t.slice().map(QE).reverse();let i=r.filter($E);i.length&&(r=r.filter(eD));let[a,o]=(0,q.useState)(null),s,c;e[0]===a?(s=e[1],c=e[2]):(s=()=>{a&&setTimeout(()=>{o(null)},2e3)},c=[a],e[0]=a,e[1]=s,e[2]=c),(0,q.useEffect)(s,c);let l=()=>{try{JE(r,n),o(`success`)}catch{o(`error`)}},u=!!i.length,d=!!r.length,f=(a||d)&&(0,Y.jsx)(yh,{type:`button`,state:a||void 0,disabled:!r.length,onClick:l,children:{success:`Cleared`,error:`Failed to Clear`}[a]||`Clear`}),p;e[3]===f?p=e[4]:(p=(0,Y.jsxs)(`div`,{className:`graphiql-history-header`,children:[`History`,f]}),e[3]=f,e[4]=p);let m=u&&(0,Y.jsx)(`ul`,{className:`graphiql-history-items`,children:i.map(tD)}),h;e[5]!==u||e[6]!==d?(h=u&&d&&(0,Y.jsx)(`div`,{className:`graphiql-history-item-spacer`}),e[5]=u,e[6]=d,e[7]=h):h=e[7];let g=d&&(0,Y.jsx)(`ul`,{className:`graphiql-history-items`,children:r.map(nD)}),_;return e[8]!==p||e[9]!==m||e[10]!==h||e[11]!==g?(_=(0,Y.jsxs)(`section`,{"aria-label":`History`,className:`graphiql-history`,children:[p,m,h,g]}),e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=_):_=e[12],_},XE=e=>{let t=(0,J.c)(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:a}=GE(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={nonNull:!0,caller:XE},t[0]=o):o=t[0];let{headerEditor:s,queryEditor:c,variableEditor:l}=Mp(o),u=(0,q.useRef)(null),d=(0,q.useRef)(null),[f,p]=(0,q.useState)(!1),m,h;t[1]===f?(m=t[2],h=t[3]):(m=()=>{var e;f&&((e=u.current)==null||e.focus())},h=[f],t[1]=f,t[2]=m,t[3]=h),(0,q.useEffect)(m,h);let g;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(g=e.item.label||e.item.operationName||ZE(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=g):g=t[7];let _=g,v;t[8]!==n||t[9]!==e.item?(v=()=>{p(!1);let{index:t,...r}=e.item;n({...r,label:u.current?.value},t)},t[8]=n,t[9]=e.item,t[10]=v):v=t[10];let y=v,b;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>{p(!1)},t[11]=b):b=t[11];let x=b,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{e.stopPropagation(),p(!0)},t[12]=S):S=t[12];let C=S,w;t[13]!==s||t[14]!==e.item||t[15]!==c||t[16]!==a||t[17]!==l?(w=()=>{let{query:t,variables:n,headers:r}=e.item;c?.setValue(t??``),l?.setValue(n??``),s?.setValue(r??``),a(e.item)},t[13]=s,t[14]=e.item,t[15]=c,t[16]=a,t[17]=l,t[18]=w):w=t[18];let T=w,E;t[19]!==i||t[20]!==e.item?(E=t=>{t.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=E):E=t[21];let D=E,O;t[22]!==e.item||t[23]!==r?(O=t=>{t.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=O):O=t[24];let k=O,A=f&&`editable`,j;t[25]===A?j=t[26]:(j=nh(`graphiql-history-item`,A),t[25]=A,t[26]=j);let M;t[27]!==_||t[28]!==n||t[29]!==D||t[30]!==T||t[31]!==y||t[32]!==k||t[33]!==f||t[34]!==e.item?(M=f?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`input`,{type:`text`,defaultValue:e.item.label,ref:u,onKeyDown:t=>{t.key===`Esc`?p(!1):t.key===`Enter`&&(p(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:`Type a label`}),(0,Y.jsx)(vh,{type:`button`,ref:d,onClick:y,children:`Save`}),(0,Y.jsx)(vh,{type:`button`,ref:d,onClick:x,children:(0,Y.jsx)(Om,{})})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(RE,{label:`Set active`,children:(0,Y.jsx)(vh,{type:`button`,className:`graphiql-history-item-label`,onClick:T,"aria-label":`Set active`,children:_})}),(0,Y.jsx)(RE,{label:`Edit label`,children:(0,Y.jsx)(vh,{type:`button`,className:`graphiql-history-item-action`,onClick:C,"aria-label":`Edit label`,children:(0,Y.jsx)(Um,{"aria-hidden":`true`})})}),(0,Y.jsx)(RE,{label:e.item.favorite?`Remove favorite`:`Add favorite`,children:(0,Y.jsx)(vh,{type:`button`,className:`graphiql-history-item-action`,onClick:k,"aria-label":e.item.favorite?`Remove favorite`:`Add favorite`,children:e.item.favorite?(0,Y.jsx)(Xm,{"aria-hidden":`true`}):(0,Y.jsx)(Zm,{"aria-hidden":`true`})})}),(0,Y.jsx)(RE,{label:`Delete from history`,children:(0,Y.jsx)(vh,{type:`button`,className:`graphiql-history-item-action`,onClick:D,"aria-label":`Delete from history`,children:(0,Y.jsx)($m,{"aria-hidden":`true`})})})]}),t[27]=_,t[28]=n,t[29]=D,t[30]=T,t[31]=y,t[32]=k,t[33]=f,t[34]=e.item,t[35]=M):M=t[35];let N;return t[36]!==j||t[37]!==M?(N=(0,Y.jsx)(`li`,{className:j,children:M}),t[36]=j,t[37]=M,t[38]=N):N=t[38],N};function ZE(e){return e?.split(`
96
96
  `).map(e=>e.replace(/#(.*)/,``)).join(` `).replaceAll(`{`,` { `).replaceAll(`}`,` } `).replaceAll(/[\s]{2,}/g,` `)}function QE(e,t){return{...e,index:t}}function $E(e){return e.favorite}function eD(e){return!e.favorite}function tD(e){return(0,Y.jsx)(XE,{item:e},e.index)}function nD(e){return(0,Y.jsx)(XE,{item:e},e.index)}var rD={title:`History`,icon:Rm,content:YE},iD=[{name:`Docs`}],aD=Ke((e,t)=>({explorerNavStack:iD,actions:{push(t){e(e=>{let n=e.explorerNavStack;return{explorerNavStack:n.at(-1).def===t.def?n:[...n,t]}})},pop(){e(e=>{let t=e.explorerNavStack;return{explorerNavStack:t.length>1?t.slice(0,-1):t}})},reset(){e(e=>{let t=e.explorerNavStack;return{explorerNavStack:t.length===1?t:iD}})},resolveSchemaReferenceToNavItem(e){if(!e)return;let{push:n}=t().actions;switch(e.kind){case`Type`:n({name:e.type.name,def:e.type});break;case`Field`:n({name:e.field.name,def:e.field});break;case`Argument`:e.field&&n({name:e.field.name,def:e.field});break;case`EnumValue`:e.type&&n({name:e.type.name,def:e.type})}},rebuildNavStackWithSchema(t){e(e=>{let n=e.explorerNavStack;if(n.length===1)return e;let r=[...iD],i=null;for(let e of n)if(e!==iD[0]){if(e.def){if(ie(e.def)){let n=t.getType(e.def.name);if(n)r.push({name:e.name,def:n}),i=n;else break}else if(i===null)break;else if(F(i)||j(i)){let t=i.getFields()[e.name];if(t)r.push({name:e.name,def:t});else break}else if(_(i)||k(i)||h(i)||Qe(i))break;else{let t=i;if(t.args.some(t=>t.name===e.name))r.push({name:e.name,def:t});else break}}else i=null,r.push(e)}return{explorerNavStack:r}})}}})),oD=e=>{let t=(0,J.c)(7),{children:n}=e,{schema:r,validationErrors:i,schemaReference:a}=Js(),o,s;t[0]===a?(o=t[1],s=t[2]):(o=()=>{let{resolveSchemaReferenceToNavItem:e}=aD.getState().actions;e(a)},s=[a],t[0]=a,t[1]=o,t[2]=s),(0,q.useEffect)(o,s);let c,l;return t[3]!==r||t[4]!==i?(c=()=>{let{reset:e,rebuildNavStackWithSchema:t}=aD.getState().actions;r==null||i.length>0?e():t(r)},l=[r,i],t[3]=r,t[4]=i,t[5]=c,t[6]=l):(c=t[5],l=t[6]),(0,q.useEffect)(c,l),n},sD=ks(aD),cD=()=>sD(uD),lD=()=>sD(dD);function uD(e){return e.explorerNavStack}function dD(e){return e.actions}var fD=e=>e?C(e):``,pD=e=>{let t=(0,J.c)(12),{field:n}=e;if(!(`defaultValue`in n)||n.defaultValue===void 0)return null;let r=n.defaultValue,i=n.type,a,o,s,c;if(t[0]!==n.defaultValue||t[1]!==n.type){c=Symbol.for(`react.early_return_sentinel`);bb0:{let e=Oe(r,i);if(!e){c=null;break bb0}s=` = `,a=`graphiql-doc-explorer-default-value`,o=fD(e)}t[0]=n.defaultValue,t[1]=n.type,t[2]=a,t[3]=o,t[4]=s,t[5]=c}else a=t[2],o=t[3],s=t[4],c=t[5];if(c!==Symbol.for(`react.early_return_sentinel`))return c;let l;t[6]!==a||t[7]!==o?(l=(0,Y.jsx)(`span`,{className:a,children:o}),t[6]=a,t[7]=o,t[8]=l):l=t[8];let u;return t[9]!==s||t[10]!==l?(u=(0,Y.jsxs)(Y.Fragment,{children:[s,l]}),t[9]=s,t[10]=l,t[11]=u):u=t[11],u};function mD(e,t){return ht(e)?(0,Y.jsxs)(Y.Fragment,{children:[mD(e.ofType,t),`!`]}):D(e)?(0,Y.jsxs)(Y.Fragment,{children:[`[`,mD(e.ofType,t),`]`]}):t(e)}var hD=e=>{let t=(0,J.c)(5),{type:n}=e,{push:r}=lD();if(!n)return null;let i;t[0]===r?i=t[1]:(i=e=>(0,Y.jsx)(`a`,{className:`graphiql-doc-explorer-type-name`,onClick:t=>{t.preventDefault(),r({name:e.name,def:e})},href:`#`,children:e.name}),t[0]=r,t[1]=i);let a;return t[2]!==i||t[3]!==n?(a=mD(n,i),t[2]=i,t[3]=n,t[4]=a):a=t[4],a},gD=e=>{let t=(0,J.c)(19),{arg:n,showDefaultValue:r,inline:i}=e,a;t[0]===n.name?a=t[1]:(a=(0,Y.jsx)(`span`,{className:`graphiql-doc-explorer-argument-name`,children:n.name}),t[0]=n.name,t[1]=a);let o;t[2]===n.type?o=t[3]:(o=(0,Y.jsx)(hD,{type:n.type}),t[2]=n.type,t[3]=o);let s;t[4]!==n||t[5]!==r?(s=r!==!1&&(0,Y.jsx)(pD,{field:n}),t[4]=n,t[5]=r,t[6]=s):s=t[6];let c;t[7]!==a||t[8]!==o||t[9]!==s?(c=(0,Y.jsxs)(`span`,{children:[a,`: `,o,s]}),t[7]=a,t[8]=o,t[9]=s,t[10]=c):c=t[10];let l=c;if(i)return l;let u;t[11]===n.description?u=t[12]:(u=n.description?(0,Y.jsx)(kh,{type:`description`,children:n.description}):null,t[11]=n.description,t[12]=u);let d;t[13]===n.deprecationReason?d=t[14]:(d=n.deprecationReason?(0,Y.jsxs)(`div`,{className:`graphiql-doc-explorer-argument-deprecation`,children:[(0,Y.jsx)(`div`,{className:`graphiql-doc-explorer-argument-deprecation-label`,children:`Deprecated`}),(0,Y.jsx)(kh,{type:`deprecation`,children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=d);let f;return t[15]!==l||t[16]!==u||t[17]!==d?(f=(0,Y.jsxs)(`div`,{className:`graphiql-doc-explorer-argument`,children:[l,u,d]}),t[15]=l,t[16]=u,t[17]=d,t[18]=f):f=t[18],f},_D=e=>{let t=(0,J.c)(3),n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?(0,Y.jsxs)(`div`,{className:`graphiql-doc-explorer-deprecation`,children:[(0,Y.jsx)(`div`,{className:`graphiql-doc-explorer-deprecation-label`,children:`Deprecated`}),(0,Y.jsx)(kh,{type:`deprecation`,onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},vD=e=>{let t=(0,J.c)(2),{directive:n}=e,r;return t[0]===n.name.value?r=t[1]:(r=(0,Y.jsxs)(`span`,{className:`graphiql-doc-explorer-directive`,children:[`@`,n.name.value]}),t[0]=n.name.value,t[1]=r),r},yD=e=>{let t=(0,J.c)(10),{title:n,children:r}=e,i=bD[n],a;t[0]===i?a=t[1]:(a=(0,Y.jsx)(i,{}),t[0]=i,t[1]=a);let o;t[2]!==a||t[3]!==n?(o=(0,Y.jsxs)(`div`,{className:`graphiql-doc-explorer-section-title`,children:[a,n]}),t[2]=a,t[3]=n,t[4]=o):o=t[4];let s;t[5]===r?s=t[6]:(s=(0,Y.jsx)(`div`,{className:`graphiql-doc-explorer-section-content`,children:r}),t[5]=r,t[6]=s);let c;return t[7]!==o||t[8]!==s?(c=(0,Y.jsxs)(`div`,{children:[o,s]}),t[7]=o,t[8]=s,t[9]=c):c=t[9],c},bD={Arguments:wm,"Deprecated Arguments":Am,"Deprecated Enum Values":jm,"Deprecated Fields":Mm,Directives:Nm,"Enum Values":Im,Fields:Lm,Implements:zm,Implementations:eh,"Possible Types":eh,"Root Types":Jm,Type:eh,"All Schema Types":eh},xD=e=>{let t=(0,J.c)(15),{field:n}=e,r;t[0]===n.description?r=t[1]:(r=n.description?(0,Y.jsx)(kh,{type:`description`,children:n.description}):null,t[0]=n.description,t[1]=r);let i;t[2]===n.deprecationReason?i=t[3]:(i=(0,Y.jsx)(_D,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=i);let a;t[4]===n.type?a=t[5]:(a=(0,Y.jsx)(yD,{title:`Type`,children:(0,Y.jsx)(hD,{type:n.type})}),t[4]=n.type,t[5]=a);let o,s;t[6]===n?(o=t[7],s=t[8]):(o=(0,Y.jsx)(SD,{field:n}),s=(0,Y.jsx)(CD,{field:n}),t[6]=n,t[7]=o,t[8]=s);let c;return t[9]!==r||t[10]!==i||t[11]!==a||t[12]!==o||t[13]!==s?(c=(0,Y.jsxs)(Y.Fragment,{children:[r,i,a,o,s]}),t[9]=r,t[10]=i,t[11]=a,t[12]=o,t[13]=s,t[14]=c):c=t[14],c},SD=e=>{let t=(0,J.c)(12),{field:n}=e,[r,i]=(0,q.useState)(!1),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{i(!0)},t[0]=a):a=t[0];let o=a;if(!(`args`in n))return null;let s,c,l;if(t[1]!==n.args){s=[],c=[];for(let e of n.args)e.deprecationReason?c.push(e):s.push(e);l=s.length>0?(0,Y.jsx)(yD,{title:`Arguments`,children:s.map(wD)}):null,t[1]=n.args,t[2]=s,t[3]=c,t[4]=l}else s=t[2],c=t[3],l=t[4];let u;t[5]!==s.length||t[6]!==c||t[7]!==r?(u=c.length>0?r||s.length===0?(0,Y.jsx)(yD,{title:`Deprecated Arguments`,children:c.map(TD)}):(0,Y.jsx)(yh,{type:`button`,onClick:o,children:`Show Deprecated Arguments`}):null,t[5]=s.length,t[6]=c,t[7]=r,t[8]=u):u=t[8];let d;return t[9]!==l||t[10]!==u?(d=(0,Y.jsxs)(Y.Fragment,{children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d},CD=e=>{let t=(0,J.c)(4),{field:n}=e,r=n.astNode?.directives;if(!r?.length)return null;let i;t[0]===r?i=t[1]:(i=r.map(ED),t[0]=r,t[1]=i);let a;return t[2]===i?a=t[3]:(a=(0,Y.jsx)(yD,{title:`Directives`,children:i}),t[2]=i,t[3]=a),a};function wD(e){return(0,Y.jsx)(gD,{arg:e},e.name)}function TD(e){return(0,Y.jsx)(gD,{arg:e},e.name)}function ED(e){return(0,Y.jsx)(`div`,{children:(0,Y.jsx)(vD,{directive:e})},e.name.value)}var DD=e=>{let t=(0,J.c)(39),{schema:n}=e,r;t[0]===n?r=t[1]:(r=n.getQueryType(),t[0]=n,t[1]=r);let i=r,a;t[2]===n?a=t[3]:(a=n.getMutationType?.call(n),t[2]=n,t[3]=a);let o=a,s;t[4]===n?s=t[5]:(s=n.getSubscriptionType?.call(n),t[4]=n,t[5]=s);let c=s,l,u,d,f,p;if(t[6]!==o||t[7]!==i||t[8]!==n||t[9]!==c){let e=n.getTypeMap(),r=i?.name,a=o?.name,s=c?.name,m;t[15]!==s||t[16]!==r||t[17]!==a?(m=[r,a,s],t[15]=s,t[16]=r,t[17]=a,t[18]=m):m=t[18];let h=m,g=n.description||`A GraphQL schema provides a root type for each kind of operation.`;t[19]===g?f=t[20]:(f=(0,Y.jsx)(kh,{type:`description`,children:g}),t[19]=g,t[20]=f);let _;t[21]===i?_=t[22]:(_=i?(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`span`,{className:`graphiql-doc-explorer-root-type`,children:`query`}),`: `,(0,Y.jsx)(hD,{type:i})]}):null,t[21]=i,t[22]=_);let v;t[23]===o?v=t[24]:(v=o&&(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`span`,{className:`graphiql-doc-explorer-root-type`,children:`mutation`}),`: `,(0,Y.jsx)(hD,{type:o})]}),t[23]=o,t[24]=v);let y;t[25]===c?y=t[26]:(y=c&&(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`span`,{className:`graphiql-doc-explorer-root-type`,children:`subscription`}),`: `,(0,Y.jsx)(hD,{type:c})]}),t[25]=c,t[26]=y),t[27]!==_||t[28]!==v||t[29]!==y?(p=(0,Y.jsxs)(yD,{title:`Root Types`,children:[_,v,y]}),t[27]=_,t[28]=v,t[29]=y,t[30]=p):p=t[30],l=yD,u=`All Schema Types`,d=e&&(0,Y.jsx)(`div`,{children:Object.values(e).map(e=>h.includes(e.name)||e.name.startsWith(`__`)?null:(0,Y.jsx)(`div`,{children:(0,Y.jsx)(hD,{type:e})},e.name))}),t[6]=o,t[7]=i,t[8]=n,t[9]=c,t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=p}else l=t[10],u=t[11],d=t[12],f=t[13],p=t[14];let m;t[31]!==l||t[32]!==u||t[33]!==d?(m=(0,Y.jsx)(l,{title:u,children:d}),t[31]=l,t[32]=u,t[33]=d,t[34]=m):m=t[34];let h;return t[35]!==f||t[36]!==p||t[37]!==m?(h=(0,Y.jsxs)(Y.Fragment,{children:[f,p,m]}),t[35]=f,t[36]=p,t[37]=m,t[38]=h):h=t[38],h},OD=e=>jD(e)?e.document:MD(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),kD=e=>OD(e)?.defaultView??(typeof window<`u`?window:void 0);function AD(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function jD(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function MD(e){return AD(e)&&e.nodeType===9}function ND(e){return AD(e)&&e.nodeType===11&&`host`in e}var PD=!1;function FD(){return PD}function ID(e,t){if(!FD())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;n=typeof n.assignedElements!=`function`&&n.assignedSlot?.parentNode?n.assignedSlot.parentNode:ND(n)?n.host:n.parentNode}return!1}var LD=(e=document)=>{if(!FD())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function RD(e){if(FD()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function zD(e){e.focus({preventScroll:!0})}var BD=typeof document<`u`?q.useLayoutEffect:()=>{};function VD(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function HD(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function UD(e){let t=(0,q.useRef)({isFocused:!1,observer:null});return BD(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,q.useCallback)(n=>{let r=RD(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=VD(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===LD()?null:LD();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}function WD(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function GD(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function KD(e){let t=null;return()=>(t??=e(),t)}var qD=KD(function(){return GD(/^Mac/i)}),JD=KD(function(){return GD(/^iPhone/i)}),YD=KD(function(){return GD(/^iPad/i)||qD()&&navigator.maxTouchPoints>1}),XD=KD(function(){return JD()||YD()}),ZD=KD(function(){return WD(/AppleWebKit/i)&&(XD()||!QD())}),QD=KD(function(){return WD(/Chrome|CriOS|CrMo/i)}),$D=KD(function(){return WD(/Android/i)});function eO(e){return e.pointerType===``&&e.isTrusted?!0:$D()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function tO(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t,s=ZD()&&qD()&&!YD()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});tO.isOpening=n,zD(e),e.dispatchEvent(s),tO.isOpening=!1}tO.isOpening=!1;var nO=null,rO=new Set,iO=new Map,aO=!1,oO=!1,sO={Tab:!0,Escape:!0};function cO(e,t){for(let n of rO)n(e,t)}function lO(e){return!(e.metaKey||!qD()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function uO(e){aO=!0,!tO.isOpening&&lO(e)&&(nO=`keyboard`,cO(`keyboard`,e))}function dO(e){nO=`pointer`,`pointerType`in e&&e.pointerType,(e.type===`mousedown`||e.type===`pointerdown`)&&(aO=!0,cO(`pointer`,e))}function fO(e){!tO.isOpening&&eO(e)&&(aO=!0,nO=`virtual`)}function pO(e){let t=RD(e),n=kD(t),r=OD(t);t===n?oO=!0:t!==r&&e.isTrusted&&(!aO&&!oO&&(nO=`virtual`,cO(`virtual`,e)),aO=!1,oO=!1)}function mO(){aO=!1,oO=!0}function hO(e){let t=LD(OD(RD(e)));queueMicrotask(()=>{LD(OD(RD(e)))!==t&&bO(`keyboard`)})}function gO(e){if(typeof window>`u`||typeof document>`u`)return;let t=kD(e),n=OD(e);if(iO.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){aO=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,uO,!0),n.addEventListener(`keyup`,uO,!0),n.addEventListener(`click`,fO,!0),n.addEventListener(`invalid`,hO,!0),t.addEventListener(`focus`,pO,!0),t.addEventListener(`blur`,mO,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,dO,!0),n.addEventListener(`pointermove`,dO,!0),n.addEventListener(`pointerup`,dO,!0)),t.addEventListener(`beforeunload`,()=>{_O(e)},{once:!0}),iO.set(t,{focus:r})}var _O=(e,t)=>{let n=kD(e),r=OD(e);t&&r.removeEventListener(`DOMContentLoaded`,t),iO.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:iO.get(n).focus}),r.removeEventListener(`keydown`,uO,!0),r.removeEventListener(`keyup`,uO,!0),r.removeEventListener(`click`,fO,!0),r.removeEventListener(`invalid`,hO,!0),n.removeEventListener(`focus`,pO,!0),n.removeEventListener(`blur`,mO,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,dO,!0),r.removeEventListener(`pointermove`,dO,!0),r.removeEventListener(`pointerup`,dO,!0)),iO.delete(n))};function vO(e){let t=OD(e),n;return t.readyState===`loading`?(n=()=>{gO(e)},t.addEventListener(`DOMContentLoaded`,n)):gO(e),()=>_O(e,n)}typeof document<`u`&&vO();function yO(){return nO!==`pointer`}function bO(e){nO=e,cO(e,null)}var xO=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function SO(e,t,n){let r=n?RD(n):void 0,i=OD(r),a=kD(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=LD(i);return e=e||u instanceof o&&!xO.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!sO[n.key])}function CO(e,t,n){gO(),(0,q.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{SO(!!n?.isTextInput,t,r)&&e(yO())};return rO.add(t),()=>{rO.delete(t)}},t)}function wO(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,q.useCallback)(e=>{if(RD(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=UD(a),s=(0,q.useCallback)(e=>{let t=RD(e),r=OD(t),a=r?LD(r):LD();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function TO(){let e=(0,q.useRef)(new Map),t=(0,q.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,q.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,q.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,q.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function EO(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,q.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=TO(),c=(0,q.useCallback)(e=>{ID(e.currentTarget,RD(e))&&a.current.isFocusWithin&&!ID(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=UD(c),u=(0,q.useCallback)(e=>{if(!ID(e.currentTarget,RD(e)))return;let t=RD(e),n=OD(t),s=LD(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=RD(e);if(a.current.isFocusWithin&&!ID(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});HD(e,t);let i=VD(e);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}function DO(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,q.useRef)({isFocused:!1,isFocusVisible:t||yO()}),[a,o]=(0,q.useState)(!1),[s,c]=(0,q.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,q.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,q.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=yO(),o(e),l()},[l]);CO(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=wO({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=EO({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var OO=!1,kO=0;function AO(){OO=!0,setTimeout(()=>{OO=!1},500)}function jO(e){e.pointerType===`touch`&&AO()}function MO(){let e=OD(null);if(e!==void 0)return kO===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,jO),kO++,()=>{kO--,kO>0||typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,jO)}}function NO(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,q.useState)(!1),s=(0,q.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,q.useEffect)(MO,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=TO(),{hoverProps:u,triggerHoverEnd:d}=(0,q.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!ID(e.currentTarget,RD(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(OD(RD(e)),`pointerover`,e=>{s.isHovered&&s.target&&!ID(s.target,RD(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,t!==`touch`&&s.isHovered&&i&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{OO&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&ID(e.currentTarget,RD(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,q.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var PO=Object.defineProperty,FO=(e,t,n)=>t in e?PO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IO=(e,t,n)=>(FO(e,typeof t==`symbol`?t:t+``,n),n),LO=new class{constructor(){IO(this,`current`,this.detect()),IO(this,`handoffState`,`pending`),IO(this,`currentId`,0)}set(e){this.current!==e&&(this.handoffState=`pending`,this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current===`server`}get isClient(){return this.current===`client`}detect(){return typeof window>`u`||typeof document>`u`?`server`:`client`}handoff(){this.handoffState===`pending`&&(this.handoffState=`complete`)}get isHandoffComplete(){return this.handoffState===`complete`}};function RO(e){return LO.isServer?null:e==null?document:e?.ownerDocument??document}function zO(e){return LO.isServer?null:e==null?document:(e?.getRootNode)?.call(e)??document}function BO(e){return zO(e)?.activeElement??null}function VO(e){return BO(e)===e}function HO(e){typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function UO(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...e){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...e))},setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return HO(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=UO();return e(t),this.add(()=>t.dispose())},add(t){return e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function WO(){let[e]=(0,q.useState)(UO);return(0,q.useEffect)(()=>()=>e.dispose(),[e]),e}var GO=(e,t)=>{LO.isServer?(0,q.useEffect)(e,t):(0,q.useLayoutEffect)(e,t)};function KO(e){let t=(0,q.useRef)(e);return GO(()=>{t.current=e},[e]),t}var Q=function(e){let t=KO(e);return q.useCallback((...e)=>t.current(...e),[t])};function qO(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function JO(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function YO({disabled:e=!1}={}){let t=(0,q.useRef)(null),[n,r]=(0,q.useState)(!1),i=WO(),a=Q(()=>{t.current=null,r(!1),i.dispose()}),o=Q(e=>{if(i.dispose(),t.current===null){t.current=e.currentTarget,r(!0);{let n=RO(e.currentTarget);i.addEventListener(n,`pointerup`,a,!1),i.addEventListener(n,`pointermove`,e=>{if(t.current){let n=qO(e);r(JO(n,t.current.getBoundingClientRect()))}},!1),i.addEventListener(n,`pointercancel`,a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:o,onPointerUp:a,onClick:a}}}function XO(e){return(0,q.useMemo)(()=>e,Object.values(e))}var ZO=(0,q.createContext)(void 0);function QO(){return(0,q.useContext)(ZO)}function $O(...e){return Array.from(new Set(e.flatMap(e=>typeof e==`string`?e.split(` `):[]))).filter(Boolean).join(` `)}function ek(e,t,...n){if(e in t){let r=t[e];return typeof r==`function`?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(`, `)}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ek),r}var tk=(e=>(e[e.None=0]=`None`,e[e.RenderStrategy=1]=`RenderStrategy`,e[e.Static=2]=`Static`,e))(tk||{}),nk=(e=>(e[e.Unmount=0]=`Unmount`,e[e.Hidden=1]=`Hidden`,e))(nk||{});function rk(){let e=ok();return(0,q.useCallback)(t=>ik({mergeRefs:e,...t}),[e])}function ik({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:s}){s??=sk;let c=ck(t,e);if(a)return ak(c,n,r,o,s);let l=i??0;if(l&2){let{static:e=!1,...t}=c;if(e)return ak(t,n,r,o,s)}if(l&1){let{unmount:e=!0,...t}=c;return ek(+!e,{0(){return null},1(){return ak({...t,hidden:!0,style:{display:`none`}},n,r,o,s)}})}return ak(c,n,r,o,s)}function ak(e,t={},n,r,i){let{as:a=n,children:o,refName:s=`ref`,...c}=fk(e,[`unmount`,`static`]),l=e.ref===void 0?{}:{[s]:e.ref},u=typeof o==`function`?o(t):o;u=mk(u),`className`in c&&c.className&&typeof c.className==`function`&&(c.className=c.className(t)),c[`aria-labelledby`]&&c[`aria-labelledby`]===c.id&&(c[`aria-labelledby`]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))typeof i==`boolean`&&(e=!0),i===!0&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){d[`data-headlessui-state`]=n.join(` `);for(let e of n)d[`data-${e}`]=``}}if(hk(a)&&(Object.keys(dk(c)).length>0||Object.keys(dk(d)).length>0)){if(!(0,q.isValidElement)(u)||Array.isArray(u)&&u.length>1||gk(u)){if(Object.keys(dk(c)).length>0)throw Error([`Passing props on "Fragment"!`,``,`The current component <${r} /> is rendering a "Fragment".`,`However we need to passthrough the following props:`,Object.keys(dk(c)).concat(Object.keys(dk(d))).map(e=>` - ${e}`).join(`
97
97
  `),``,`You can apply a few solutions:`,['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',`Render a single element as the child so that we can forward the props onto that element.`].map(e=>` - ${e}`).join(`
98
98
  `)].join(`