@wangtaizong/components 1.0.1 → 1.0.2

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 (37) hide show
  1. package/dist/base-80a1f760-bfbf5d12.js +23 -0
  2. package/dist/components/editor/Editor.d.ts +12 -0
  3. package/dist/components/editor/MonacoEditor.d.ts +2 -0
  4. package/dist/components/editor/sandpack-file-explorer/CreateNewNode.d.ts +3 -0
  5. package/dist/components/editor/sandpack-file-explorer/Example.d.ts +4 -0
  6. package/dist/components/editor/sandpack-file-explorer/FileTreeExplorer.d.ts +1 -0
  7. package/dist/components/editor/sandpack-file-explorer/SandpackFilesProvider.d.ts +24 -0
  8. package/dist/components/editor/sandpack-file-explorer/SingleInputForm.d.ts +8 -0
  9. package/dist/components/editor/sandpack-file-explorer/index.d.ts +6 -0
  10. package/dist/components/editor/sandpack-file-explorer/types.d.ts +18 -0
  11. package/dist/components/editor/sandpack-file-explorer/utils/arrayToObject.d.ts +1 -0
  12. package/dist/components/editor/sandpack-file-explorer/utils/buildPath.d.ts +2 -0
  13. package/dist/components/editor/sandpack-file-explorer/utils/deepMerge.d.ts +2 -0
  14. package/dist/components/editor/sandpack-file-explorer/utils/deleteKeys.d.ts +4 -0
  15. package/dist/components/editor/sandpack-file-explorer/utils/directoryFileMap.d.ts +3 -0
  16. package/dist/components/editor/sandpack-file-explorer/utils/fiindParentPath.d.ts +1 -0
  17. package/dist/components/editor/sandpack-file-explorer/utils/flattenObject.d.ts +2 -0
  18. package/dist/components/editor/sandpack-file-explorer/utils/getEntryFile.d.ts +2 -0
  19. package/dist/components/editor/sandpack-file-explorer/utils/getRemovedKeys.d.ts +5 -0
  20. package/dist/components/editor/sandpack-file-explorer/utils/index.d.ts +12 -0
  21. package/dist/components/editor/sandpack-file-explorer/utils/mergeHierarchicalArray.d.ts +2 -0
  22. package/dist/components/editor/sandpack-file-explorer/utils/removeHiddenEntries.d.ts +3 -0
  23. package/dist/components/editor/sandpack-file-explorer/utils/toHierarchicalArray.d.ts +3 -0
  24. package/dist/components/editor/utils/map.d.ts +4 -0
  25. package/dist/consoleHook-59e792cb-4a29d8de.js +168 -0
  26. package/dist/index-585bceb7-0925bffa.js +8813 -0
  27. package/dist/index-ab265236.js +32180 -0
  28. package/dist/index-fb0ef221.js +316 -0
  29. package/dist/index-fbbb80b8.js +1104 -0
  30. package/dist/index.d.ts +2 -3
  31. package/dist/index.es.js +3 -1640
  32. package/dist/index.umd.js +765 -21
  33. package/package.json +1 -1
  34. package/dist/components/emptyTable/EmptyDataList.d.ts +0 -7
  35. package/dist/components/multipleSelector/MutiCell.d.ts +0 -16
  36. package/dist/components/multipleSelector/MutipleSelector.d.ts +0 -40
  37. package/dist/style.css +0 -1
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(B,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(B=typeof globalThis<"u"?globalThis:B||self,D(B["yodao-ui"]={},B.React))})(this,function(B,D){"use strict";var v=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ht(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ie={exports:{}},X={};/**
1
+ (function(xe,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(xe=typeof globalThis<"u"?globalThis:xe||self,P(xe["yodao-ui"]={},xe.React))})(this,function(xe,P){"use strict";var PL=Object.defineProperty;var kL=(xe,P,Ne)=>P in xe?PL(xe,P,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):xe[P]=Ne;var Ze=(xe,P,Ne)=>(kL(xe,typeof P!="symbol"?P+"":P,Ne),Ne),cf=(xe,P,Ne)=>{if(!P.has(xe))throw TypeError("Cannot "+Ne)};var co=(xe,P,Ne)=>(cf(xe,P,"read from private field"),Ne?Ne.call(xe):P.get(xe)),uf=(xe,P,Ne)=>{if(P.has(xe))throw TypeError("Cannot add the same private member more than once");P instanceof WeakSet?P.add(xe):P.set(xe,Ne)},e1=(xe,P,Ne,U)=>(cf(xe,P,"write to private field"),U?U.call(xe,Ne):P.set(xe,Ne),Ne);var Nl=(xe,P,Ne)=>(cf(xe,P,"access private method"),Ne);function Ne(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const U=Ne(P);function uo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xl={exports:{}},Lr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Le;function mt(){if(Le)return X;Le=1;var n=D,o=Symbol.for("react.element"),e=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(u,d,f){var h,b={},g=null,T=null;f!==void 0&&(g=""+f),d.key!==void 0&&(g=""+d.key),d.ref!==void 0&&(T=d.ref);for(h in d)t.call(d,h)&&!a.hasOwnProperty(h)&&(b[h]=d[h]);if(u&&u.defaultProps)for(h in d=u.defaultProps,d)b[h]===void 0&&(b[h]=d[h]);return{$$typeof:o,type:u,key:g,ref:T,props:b,_owner:l.current}}return X.Fragment=e,X.jsx=s,X.jsxs=s,X}var H={};/**
9
+ */var pf;function n1(){if(pf)return Lr;pf=1;var t=P,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,d={},p=null,f=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)i.call(l,u)&&!s.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:e,type:a,key:p,ref:f,props:d,_owner:r.current}}return Lr.Fragment=n,Lr.jsx=o,Lr.jsxs=o,Lr}var Xr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,22 +14,766 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Me;function _t(){return Me||(Me=1,process.env.NODE_ENV!=="production"&&function(){var n=D,o=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),A=Symbol.iterator,xe="@@iterator";function we(r){if(r===null||typeof r!="object")return null;var i=A&&r[A]||r[xe];return typeof i=="function"?i:null}var z=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(r){{for(var i=arguments.length,c=new Array(i>1?i-1:0),p=1;p<i;p++)c[p-1]=arguments[p];_("error",r,c)}}function _(r,i,c){{var p=z.ReactDebugCurrentFrame,S=p.getStackAddendum();S!==""&&(i+="%s",c=c.concat([S]));var x=c.map(function(y){return String(y)});x.unshift("Warning: "+i),Function.prototype.apply.call(console[r],console,x)}}var E=!1,P=!1,W=!1,Ce=!1,sr=!1,$e;$e=Symbol.for("react.module.reference");function ir(r){return!!(typeof r=="string"||typeof r=="function"||r===t||r===a||sr||r===l||r===f||r===h||Ce||r===T||E||P||W||typeof r=="object"&&r!==null&&(r.$$typeof===g||r.$$typeof===b||r.$$typeof===s||r.$$typeof===u||r.$$typeof===d||r.$$typeof===$e||r.getModuleId!==void 0))}function cr(r,i,c){var p=r.displayName;if(p)return p;var S=i.displayName||i.name||"";return S!==""?c+"("+S+")":c}function Ve(r){return r.displayName||"Context"}function N(r){if(r==null)return null;if(typeof r.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case t:return"Fragment";case e:return"Portal";case a:return"Profiler";case l:return"StrictMode";case f:return"Suspense";case h:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case u:var i=r;return Ve(i)+".Consumer";case s:var c=r;return Ve(c._context)+".Provider";case d:return cr(r,r.render,"ForwardRef");case b:var p=r.displayName||null;return p!==null?p:N(r.type)||"Memo";case g:{var S=r,x=S._payload,y=S._init;try{return N(y(x))}catch{return null}}}return null}var G=Object.assign,J=0,Xe,He,Ke,Je,Ze,qe,Qe;function et(){}et.__reactDisabledLog=!0;function ur(){{if(J===0){Xe=console.log,He=console.info,Ke=console.warn,Je=console.error,Ze=console.group,qe=console.groupCollapsed,Qe=console.groupEnd;var r={configurable:!0,enumerable:!0,value:et,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}J++}}function fr(){{if(J--,J===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},r,{value:Xe}),info:G({},r,{value:He}),warn:G({},r,{value:Ke}),error:G({},r,{value:Je}),group:G({},r,{value:Ze}),groupCollapsed:G({},r,{value:qe}),groupEnd:G({},r,{value:Qe})})}J<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=z.ReactCurrentDispatcher,Oe;function ne(r,i,c){{if(Oe===void 0)try{throw Error()}catch(S){var p=S.stack.trim().match(/\n( *(at )?)/);Oe=p&&p[1]||""}return`
18
- `+Oe+r}}var Re=!1,oe;{var dr=typeof WeakMap=="function"?WeakMap:Map;oe=new dr}function tt(r,i){if(!r||Re)return"";{var c=oe.get(r);if(c!==void 0)return c}var p;Re=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=Ee.current,Ee.current=null,ur();try{if(i){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(F){p=F}Reflect.construct(r,[],y)}else{try{y.call()}catch(F){p=F}r.call(y.prototype)}}else{try{throw Error()}catch(F){p=F}r()}}catch(F){if(F&&p&&typeof F.stack=="string"){for(var m=F.stack.split(`
19
- `),k=p.stack.split(`
20
- `),C=m.length-1,O=k.length-1;C>=1&&O>=0&&m[C]!==k[O];)O--;for(;C>=1&&O>=0;C--,O--)if(m[C]!==k[O]){if(C!==1||O!==1)do if(C--,O--,O<0||m[C]!==k[O]){var M=`
21
- `+m[C].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),typeof r=="function"&&oe.set(r,M),M}while(C>=1&&O>=0);break}}}finally{Re=!1,Ee.current=x,fr(),Error.prepareStackTrace=S}var V=r?r.displayName||r.name:"",vt=V?ne(V):"";return typeof r=="function"&&oe.set(r,vt),vt}function pr(r,i,c){return tt(r,!1)}function vr(r){var i=r.prototype;return!!(i&&i.isReactComponent)}function le(r,i,c){if(r==null)return"";if(typeof r=="function")return tt(r,vr(r));if(typeof r=="string")return ne(r);switch(r){case f:return ne("Suspense");case h:return ne("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case d:return pr(r.render);case b:return le(r.type,i,c);case g:{var p=r,S=p._payload,x=p._init;try{return le(x(S),i,c)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,rt={},nt=z.ReactDebugCurrentFrame;function se(r){if(r){var i=r._owner,c=le(r.type,r._source,i?i.type:null);nt.setExtraStackFrame(c)}else nt.setExtraStackFrame(null)}function hr(r,i,c,p,S){{var x=Function.call.bind(ae);for(var y in r)if(x(r,y)){var m=void 0;try{if(typeof r[y]!="function"){var k=Error((p||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw k.name="Invariant Violation",k}m=r[y](i,y,p,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){m=C}m&&!(m instanceof Error)&&(se(S),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",c,y,typeof m),se(null)),m instanceof Error&&!(m.message in rt)&&(rt[m.message]=!0,se(S),j("Failed %s type: %s",c,m.message),se(null))}}}var mr=Array.isArray;function Te(r){return mr(r)}function _r(r){{var i=typeof Symbol=="function"&&Symbol.toStringTag,c=i&&r[Symbol.toStringTag]||r.constructor.name||"Object";return c}}function yr(r){try{return ot(r),!1}catch{return!0}}function ot(r){return""+r}function lt(r){if(yr(r))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_r(r)),ot(r)}var Z=z.ReactCurrentOwner,gr={key:!0,ref:!0,__self:!0,__source:!0},at,st,je;je={};function Sr(r){if(ae.call(r,"ref")){var i=Object.getOwnPropertyDescriptor(r,"ref").get;if(i&&i.isReactWarning)return!1}return r.ref!==void 0}function br(r){if(ae.call(r,"key")){var i=Object.getOwnPropertyDescriptor(r,"key").get;if(i&&i.isReactWarning)return!1}return r.key!==void 0}function xr(r,i){if(typeof r.ref=="string"&&Z.current&&i&&Z.current.stateNode!==i){var c=N(Z.current.type);je[c]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N(Z.current.type),r.ref),je[c]=!0)}}function wr(r,i){{var c=function(){at||(at=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};c.isReactWarning=!0,Object.defineProperty(r,"key",{get:c,configurable:!0})}}function Cr(r,i){{var c=function(){st||(st=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};c.isReactWarning=!0,Object.defineProperty(r,"ref",{get:c,configurable:!0})}}var Er=function(r,i,c,p,S,x,y){var m={$$typeof:o,type:r,key:i,ref:c,props:y,_owner:x};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function Or(r,i,c,p,S){{var x,y={},m=null,k=null;c!==void 0&&(lt(c),m=""+c),br(i)&&(lt(i.key),m=""+i.key),Sr(i)&&(k=i.ref,xr(i,S));for(x in i)ae.call(i,x)&&!gr.hasOwnProperty(x)&&(y[x]=i[x]);if(r&&r.defaultProps){var C=r.defaultProps;for(x in C)y[x]===void 0&&(y[x]=C[x])}if(m||k){var O=typeof r=="function"?r.displayName||r.name||"Unknown":r;m&&wr(y,O),k&&Cr(y,O)}return Er(r,m,k,S,p,Z.current,y)}}var De=z.ReactCurrentOwner,it=z.ReactDebugCurrentFrame;function $(r){if(r){var i=r._owner,c=le(r.type,r._source,i?i.type:null);it.setExtraStackFrame(c)}else it.setExtraStackFrame(null)}var Pe;Pe=!1;function ke(r){return typeof r=="object"&&r!==null&&r.$$typeof===o}function ct(){{if(De.current){var r=N(De.current.type);if(r)return`
22
-
23
- Check the render method of \``+r+"`."}return""}}function Rr(r){{if(r!==void 0){var i=r.fileName.replace(/^.*[\\\/]/,""),c=r.lineNumber;return`
24
-
25
- Check your code at `+i+":"+c+"."}return""}}var ut={};function Tr(r){{var i=ct();if(!i){var c=typeof r=="string"?r:r.displayName||r.name;c&&(i=`
26
-
27
- Check the top-level render call using <`+c+">.")}return i}}function ft(r,i){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var c=Tr(i);if(ut[c])return;ut[c]=!0;var p="";r&&r._owner&&r._owner!==De.current&&(p=" It was passed a child from "+N(r._owner.type)+"."),$(r),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,p),$(null)}}function dt(r,i){{if(typeof r!="object")return;if(Te(r))for(var c=0;c<r.length;c++){var p=r[c];ke(p)&&ft(p,i)}else if(ke(r))r._store&&(r._store.validated=!0);else if(r){var S=we(r);if(typeof S=="function"&&S!==r.entries)for(var x=S.call(r),y;!(y=x.next()).done;)ke(y.value)&&ft(y.value,i)}}}function jr(r){{var i=r.type;if(i==null||typeof i=="string")return;var c;if(typeof i=="function")c=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===d||i.$$typeof===b))c=i.propTypes;else return;if(c){var p=N(i);hr(c,r.props,"prop",p,r)}else if(i.PropTypes!==void 0&&!Pe){Pe=!0;var S=N(i);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",S||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dr(r){{for(var i=Object.keys(r.props),c=0;c<i.length;c++){var p=i[c];if(p!=="children"&&p!=="key"){$(r),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),$(null);break}}r.ref!==null&&($(r),j("Invalid attribute `ref` supplied to `React.Fragment`."),$(null))}}function pt(r,i,c,p,S,x){{var y=ir(r);if(!y){var m="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var k=Rr(S);k?m+=k:m+=ct();var C;r===null?C="null":Te(r)?C="array":r!==void 0&&r.$$typeof===o?(C="<"+(N(r.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):C=typeof r,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,m)}var O=Or(r,i,c,S,x);if(O==null)return O;if(y){var M=i.children;if(M!==void 0)if(p)if(Te(M)){for(var V=0;V<M.length;V++)dt(M[V],r);Object.freeze&&Object.freeze(M)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else dt(M,r)}return r===t?Dr(O):jr(O),O}}function Pr(r,i,c){return pt(r,i,c,!0)}function kr(r,i,c){return pt(r,i,c,!1)}var Lr=kr,Mr=Pr;H.Fragment=t,H.jsx=Lr,H.jsxs=Mr}()),H}process.env.NODE_ENV==="production"?ie.exports=mt():ie.exports=_t();var w=ie.exports;const Ae={noResult:"_noResult_1ii39_1",noResultImg:"_noResultImg_1ii39_12",_a:"__a_1ii39_18"},yt=n=>{const{onReset:o,onSearch:e,searchText:t}=n;return w.jsx("div",{className:Ae.noResult,children:e&&o?w.jsxs("span",{children:["暂未找到符合条件的数据,",w.jsx("a",{className:Ae._a,onClick:()=>o==null?void 0:o(),children:"重置筛选条件"})]}):e&&t?w.jsx("div",{children:"1111"}):w.jsx("div",{children:"222"})})};var Ie={exports:{}};/*!
28
- Copyright (c) 2018 Jed Watson.
29
- Licensed under the MIT License (MIT), see
30
- http://jedwatson.github.io/classnames
31
- */(function(n){(function(){var o={}.hasOwnProperty;function e(){for(var a="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(a=l(a,t(u)))}return a}function t(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return e.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var u in a)o.call(a,u)&&a[u]&&(s=l(s,u));return s}function l(a,s){return s?a?a+" "+s:a+s:a}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(Ie);var gt=Ie.exports;const q=ht(gt);var K={},ce={},Q={},ue={};Object.defineProperty(ue,"__esModule",{value:!0});var St=["pageX","pageY","clientX","clientY"];function Ne(n,o){St.forEach(function(e){typeof n[e]>"u"&&(n[e]=n[o][0][e])})}function bt(n){if(n.type.includes("mouse"))return n;try{n.type==="touchstart"?Ne(n,"targetTouches"):n.type==="touchmove"&&Ne(n,"changedTouches")}catch(o){console.error(o.message)}return n}ue.castTouchToMouseEvent=bt;var fe={};Object.defineProperty(fe,"__esModule",{value:!0});function xt(n,o,e){return o===void 0&&(o=1),e===void 0&&(e={}),n.metaKey&&!e.allowMetaClick||n.ctrlKey&&!e.allowCtrlClick||n.altKey&&!e.allowAltClick||n.shiftKey&&!e.allowShiftClick?!1:"buttons"in n?n.buttons===o:"which"in n?n.which===o:n.button===o-1}fe.detectMouseButton=xt;var de={};Object.defineProperty(de,"__esModule",{value:!0});var wt=function(n,o,e){var t=e.tolerance,l=t===void 0?0:t,a=e.useOffsetSize,s=a===void 0?!1:a,u=s?n.offsetHeight:n.height,d=s?o.offsetHeight:o.height,f=s?n.offsetWidth:n.width,h=s?o.offsetWidth:o.width;return!(n.top+u-l<o.top||n.top+l>o.top+d||n.left+f-l<o.left||n.left+l>o.left+h)};function Fe(n){return Array.isArray(n)?n:[n]}function Ct(n,o,e,t){e===void 0&&(e=0),t===void 0&&(t=1);for(var l=Fe(n),a=Fe(o),s=0;s<l.length;s++)for(var u=0;u<a.length;u++)return wt(l[s],a[u],{tolerance:e,useOffsetSize:t===1})}de.doObjectsCollide=Ct;var ee={};Object.defineProperty(ee,"__esModule",{value:!0});function Et(){var n=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),o=Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft);return{documentScrollTop:n,documentScrollLeft:o}}ee.getDocumentScroll=Et;function Ot(n,o){o===void 0&&(o={scrollTop:0,scrollLeft:0});var e=o.scrollTop,t=o.scrollLeft;return Array.from(n.getClientRects()).map(function(l){return{top:l.top+e,left:l.left+t,offsetWidth:n.offsetWidth,offsetHeight:n.offsetHeight,width:l.width,height:l.height}})}ee.getBoundsForNode=Ot;var pe={};Object.defineProperty(pe,"__esModule",{value:!0});function Rt(n,o){for(;n;){if(n===o)return!0;n=n.parentNode}return!1}pe.isNodeInRoot=Rt,function(n){function o(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),n.noop=function(){},o(ue),o(fe),o(de),o(ee),o(pe)}(Q);var Y={},Tt=v&&v.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Y,"__esModule",{value:!0});var jt=Tt(D),Be=Q;Y.SelectableGroupContext=jt.default.createContext({selectable:{register:function(n){},unregister:function(n){},selectAll:Be.noop,clearSelection:Be.noop,getScrolledContainer:function(){return null}}});var ve={},Dt=v&&v.__read||function(n,o){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var t=e.call(n),l,a=[],s;try{for(;(o===void 0||o-- >0)&&!(l=t.next()).done;)a.push(l.value)}catch(u){s={error:u}}finally{try{l&&!l.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return a},Pt=v&&v.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var e in n)Object.hasOwnProperty.call(n,e)&&(o[e]=n[e]);return o.default=n,o};Object.defineProperty(ve,"__esModule",{value:!0});var he=Pt(D),kt={y:0,x:0,width:0,height:0};function ze(n){var o=n.fixedPosition,e=n.getSetState,t=n.className,l=Dt(he.useState(kt),2),a=l[0],s=l[1];he.useEffect(function(){e(s)},[]);var u={left:a.x,top:a.y,width:a.width,height:a.height,zIndex:9e3,position:o?"fixed":"absolute",cursor:"default",willChange:"transform",transform:"translateZ(0)"};return he.default.createElement("div",{className:t,style:u})}ve.Selectbox=ze,ze.defaultProps={className:"selectable-selectbox"};var Lt=v&&v.__extends||function(){var n=function(o,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,l){t.__proto__=l}||function(t,l){for(var a in l)l.hasOwnProperty(a)&&(t[a]=l[a])},n(o,e)};return function(o,e){n(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),te=v&&v.__assign||function(){return te=Object.assign||function(n){for(var o,e=1,t=arguments.length;e<t;e++){o=arguments[e];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(n[l]=o[l])}return n},te.apply(this,arguments)},U=v&&v.__values||function(n){var o=typeof Symbol=="function"&&Symbol.iterator,e=o&&n[o],t=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},We=v&&v.__read||function(n,o){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var t=e.call(n),l,a=[],s;try{for(;(o===void 0||o-- >0)&&!(l=t.next()).done;)a.push(l.value)}catch(u){s={error:u}}finally{try{l&&!l.done&&(e=t.return)&&e.call(t)}finally{if(s)throw s.error}}return a},I=v&&v.__spread||function(){for(var n=[],o=0;o<arguments.length;o++)n=n.concat(We(arguments[o]));return n},Mt=v&&v.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var e in n)Object.hasOwnProperty.call(n,e)&&(o[e]=n[e]);return o.default=n,o};Object.defineProperty(ce,"__esModule",{value:!0});var re=Mt(D),L=Q,At=Y,It=ve,Nt=function(n){Lt(o,n);function o(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={selectionMode:!1},e.mouseDownStarted=!1,e.mouseMoveStarted=!1,e.mouseMoved=!1,e.mouseUpStarted=!1,e.selectionStarted=!1,e.deselectionStarted=!1,e.mouseDownData={selectboxY:0,selectboxX:0,target:null},e.registry=new Set,e.selectedItems=new Set,e.selectingItems=new Set,e.ignoreCheckCache=new Map,e.ignoreList=e.props.ignoreList.concat([".selectable-select-all",".selectable-deselect-all"]),e.ignoreListNodes=[],e.setSelectboxState=null,e.selectableGroup=null,e.scrollContainer=null,e.maxScrollTop=0,e.maxScrollLeft=0,e.scrollBounds=null,e.containerScroll={scrollTop:0,scrollLeft:0},e.documentScroll={scrollTop:0,scrollLeft:0},e.saveContainerScroll=function(){var t=e.scrollContainer,l=t.scrollTop,a=t.scrollLeft;e.containerScroll={scrollTop:l,scrollLeft:a}},e.saveDocumentScroll=function(){var t=L.getDocumentScroll(),l=t.documentScrollLeft,a=t.documentScrollTop;e.documentScroll={scrollTop:a,scrollLeft:l}},e.updateRegistry=function(){var t,l;try{for(var a=U(e.registry.values()),s=a.next();!s.done;s=a.next()){var u=s.value;u.updateBounds(e.containerDocumentScroll)}}catch(d){t={error:d}}finally{try{s&&!s.done&&(l=a.return)&&l.call(a)}finally{if(t)throw t.error}}},e.registerSelectable=function(t){e.registry.add(t),t.state.isSelected&&e.selectedItems.add(t)},e.unregisterSelectable=function(t){e.registry.delete(t);var l=e.selectedItems.has(t)||e.selectingItems.has(t);e.selectedItems.delete(t),e.selectingItems.delete(t),l&&e.props.onSelectedItemUnmount(t,I(e.selectedItems))},e.updateContainerScroll=function(t){var l=e.containerScroll,a=l.scrollTop,s=l.scrollLeft;e.checkScrollTop(t.clientY,a),e.checkScrollBottom(t.clientY,a),e.checkScrollLeft(t.clientX,s),e.checkScrollRight(t.clientX,s)},e.getScrollStep=function(t){var l=e.props,a=l.minimumSpeedFactor,s=l.scrollSpeed;return Math.max(t,a)*s},e.checkScrollTop=function(t,l){var a=e.scrollBounds.top-t;(a>0||t<0)&&(e.scrollContainer.scrollTop=l-e.getScrollStep(a))},e.checkScrollBottom=function(t,l){var a=t-e.scrollBounds.bottom;if(a>0||t>window.innerHeight){var s=l+e.getScrollStep(a);e.scrollContainer.scrollTop=Math.min(s,e.maxScrollTop)}},e.checkScrollLeft=function(t,l){var a=e.scrollBounds.left-t;if(a>0||t<0){var s=l-e.getScrollStep(a);e.scrollContainer.scrollLeft=s}},e.checkScrollRight=function(t,l){var a=t-e.scrollBounds.right;if(a>0||t>window.innerWidth){var s=l+e.getScrollStep(a);e.scrollContainer.scrollLeft=Math.min(s,e.maxScrollLeft)}},e.updateSelectBox=function(t){var l=L.castTouchToMouseEvent(t);if(e.updateContainerScroll(l),!e.mouseMoveStarted){e.mouseMoveStarted=!0,e.mouseMoved=!0;var a=e.mouseDownData,s=l.clientX,u=l.clientY,d=u-e.scrollBounds.top+e.containerScroll.scrollTop,f=Math.min(d,a.selectboxY),h=s-e.scrollBounds.left+e.containerScroll.scrollLeft,b=Math.min(h,a.selectboxX),g={x:b,y:f,width:Math.abs(h-a.selectboxX),height:Math.abs(d-a.selectboxY)};e.setSelectboxState(g);var T={top:g.y+e.scrollBounds.top+e.documentScroll.scrollTop,left:g.x+e.scrollBounds.left+e.documentScroll.scrollLeft,width:g.width,height:g.height,offsetWidth:g.width||1,offsetHeight:g.height||1};e.selectItems(T),e.props.duringSelection(I(e.selectingItems)),e.mouseMoveStarted=!1}},e.selectItems=function(t,l){var a,s;l===void 0&&(l={});var u=e.props,d=u.tolerance,f=u.enableDeselect,h=u.mixedDeselect;try{for(var b=U(e.registry.values()),g=b.next();!g.done;g=b.next()){var T=g.value;e.processItem({item:T,selectboxBounds:t,tolerance:d,mixedDeselect:h,enableDeselect:f,isFromClick:l&&l.isFromClick})}}catch(A){a={error:A}}finally{try{g&&!g.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}},e.clearSelection=function(){var t,l;try{for(var a=U(e.selectedItems.values()),s=a.next();!s.done;s=a.next()){var u=s.value;u.setState({isSelected:!1}),e.selectedItems.delete(u)}}catch(d){t={error:d}}finally{try{s&&!s.done&&(l=a.return)&&l.call(a)}finally{if(t)throw t.error}}e.setState({selectionMode:!1}),e.props.onSelectionFinish(I(e.selectedItems)),e.props.onSelectionClear()},e.selectAll=function(){var t,l;e.removeIgnoredItemsFromRegistry();try{for(var a=U(e.registry.values()),s=a.next();!s.done;s=a.next()){var u=s.value;u.state.isSelected||(u.setState({isSelected:!0}),e.selectedItems.add(u))}}catch(d){t={error:d}}finally{try{s&&!s.done&&(l=a.return)&&l.call(a)}finally{if(t)throw t.error}}e.setState({selectionMode:!0}),e.props.onSelectionFinish(I(e.selectedItems))},e.mouseDown=function(t){var l=!t.type.includes("touch")&&!L.detectMouseButton(t,1,{allowAltClick:e.props.allowAltClick,allowCtrlClick:e.props.allowCtrlClick,allowMetaClick:e.props.allowMetaClick,allowShiftClick:e.props.allowShiftClick});if(!(e.mouseDownStarted||e.props.disabled||l)){if(e.removeIgnoredItemsFromRegistry(),e.isInIgnoreList(t.target)){e.mouseDownStarted=!1;return}e.props.resetOnStart&&e.clearSelection(),e.mouseDownStarted=!0,e.mouseUpStarted=!1;var a=L.castTouchToMouseEvent(t);if(!e.props.globalMouse&&!L.isNodeInRoot(a.target,e.selectableGroup)){var s=We(L.getBoundsForNode(e.selectableGroup,e.documentScroll),1),u=s[0],d=L.doObjectsCollide({top:u.top,left:u.left,width:0,height:0,offsetHeight:u.offsetHeight,offsetWidth:u.offsetWidth},{top:a.pageY,left:a.pageX,width:0,height:0,offsetWidth:0,offsetHeight:0});if(!d)return}e.updateRootBounds(),e.updateRegistry(),e.mouseDownData={target:a.target,selectboxY:a.clientY-e.scrollBounds.top+e.containerScroll.scrollTop,selectboxX:a.clientX-e.scrollBounds.left+e.containerScroll.scrollLeft},a.preventDefault(),document.addEventListener("mousemove",e.updateSelectBox),document.addEventListener("touchmove",e.updateSelectBox),document.addEventListener("mouseup",e.mouseUp),document.addEventListener("touchend",e.mouseUp)}},e.mouseUp=function(t){var l,a;if(!e.mouseUpStarted&&(e.mouseUpStarted=!0,e.mouseDownStarted=!1,e.removeTempEventListeners(),!!e.mouseDownData)){var s=L.castTouchToMouseEvent(t),u=s.pageX,d=s.pageY;if(!e.mouseMoved&&L.isNodeInRoot(s.target,e.selectableGroup))e.handleClick(s,d,u);else{try{for(var f=U(e.selectingItems.values()),h=f.next();!h.done;h=f.next()){var b=h.value;b.setState({isSelected:!0,isSelecting:!1})}}catch(g){l={error:g}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(l)throw l.error}}e.selectedItems=new Set(I(e.selectedItems,e.selectingItems)),e.selectingItems.clear(),s.which===1&&e.mouseDownData.target===s.target&&e.preventEvent(s.target,"click"),e.setSelectboxState({x:0,y:0,width:0,height:0}),e.props.onSelectionFinish(I(e.selectedItems))}e.toggleSelectionMode(),e.cleanUp(),e.mouseMoved=!1}},e.keyListener=function(t){t.keyCode===27&&e.clearSelection()},e.getGroupRef=function(t){e.selectableGroup=t},e.getSelectboxSetState=function(t){e.setSelectboxState=t},e.defaultContainerStyle={position:"relative"},e.contextValue={selectable:{register:e.registerSelectable,unregister:e.unregisterSelectable,selectAll:e.selectAll,clearSelection:e.clearSelection,getScrolledContainer:function(){return e.scrollContainer}}},e}return o.prototype.componentDidMount=function(){this.props.scrollContainer?this.scrollContainer=document.querySelector(this.props.scrollContainer):this.scrollContainer=this.selectableGroup,this.scrollContainer.addEventListener("scroll",this.saveContainerScroll),document.addEventListener("scroll",this.saveDocumentScroll),this.selectableGroup.addEventListener("mousedown",this.mouseDown),this.selectableGroup.addEventListener("touchstart",this.mouseDown),this.props.deselectOnEsc&&(document.addEventListener("keydown",this.keyListener),document.addEventListener("keyup",this.keyListener)),this.removeIgnoredItemsFromRegistry()},o.prototype.componentWillUnmount=function(){this.scrollContainer.removeEventListener("scroll",this.saveContainerScroll),document.removeEventListener("scroll",this.saveDocumentScroll),this.selectableGroup.removeEventListener("mousedown",this.mouseDown),this.selectableGroup.removeEventListener("touchstart",this.mouseDown),this.props.deselectOnEsc&&(document.removeEventListener("keydown",this.keyListener),document.removeEventListener("keyup",this.keyListener)),this.removeTempEventListeners(),this.selectedItems.clear(),this.selectingItems.clear()},Object.defineProperty(o.prototype,"containerDocumentScroll",{get:function(){return{scrollTop:this.containerScroll.scrollTop+this.documentScroll.scrollTop,scrollLeft:this.containerScroll.scrollLeft+this.documentScroll.scrollLeft}},enumerable:!0,configurable:!0}),o.prototype.removeTempEventListeners=function(){document.removeEventListener("mousemove",this.updateSelectBox),document.removeEventListener("touchmove",this.updateSelectBox),document.removeEventListener("mouseup",this.mouseUp),document.removeEventListener("touchend",this.mouseUp)},o.prototype.updateRootBounds=function(){this.scrollBounds=this.scrollContainer.getBoundingClientRect(),this.maxScrollTop=this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight,this.maxScrollLeft=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth},o.prototype.toggleSelectionMode=function(){var e=this,t=e.selectedItems,l=e.state.selectionMode;t.size&&!l&&this.setState({selectionMode:!0}),!t.size&&l&&this.setState({selectionMode:!1})},o.prototype.processItem=function(e){var t=e.item,l=e.tolerance,a=e.selectboxBounds,s=e.enableDeselect,u=e.mixedDeselect,d=e.isFromClick,f=this.props.delta,h=L.doObjectsCollide(a,t.bounds,l,f),b=t.state,g=b.isSelecting,T=b.isSelected;if(d&&h)return T?this.selectedItems.delete(t):this.selectedItems.add(t),t.setState({isSelected:!T}),this.clickedItem=t,t;if(!d&&h){if(T&&s&&(!this.selectionStarted||u))return t.setState({isSelected:!1}),t.deselected=!0,this.deselectionStarted=!0,this.selectedItems.delete(t);var A=u?!t.deselected:!this.deselectionStarted;if(!g&&!T&&A)return t.setState({isSelecting:!0}),this.selectionStarted=!0,this.selectingItems.add(t),{updateSelecting:!0}}return!d&&!h&&g&&this.selectingItems.has(t)?(t.setState({isSelecting:!1}),this.selectingItems.delete(t),{updateSelecting:!0}):null},o.prototype.isInIgnoreList=function(e){if(e){if(this.ignoreCheckCache.get(e)!==void 0)return this.ignoreCheckCache.get(e);var t=this.ignoreListNodes.some(function(l){return e===l||l.contains(e)});return this.ignoreCheckCache.set(e,t),t}},o.prototype.removeIgnoredItemsFromRegistry=function(){var e=this;this.ignoreListNodes=Array.from(document.querySelectorAll(this.ignoreList.join(", "))),this.registry=new Set(I(this.registry).filter(function(t){return!e.isInIgnoreList(t.node)})),this.selectedItems=new Set(I(this.selectedItems).filter(function(t){return!e.isInIgnoreList(t.node)}))},o.prototype.preventEvent=function(e,t){var l=function(a){e.removeEventListener(t,l,!0),a.preventDefault(),a.stopPropagation()};e.addEventListener(t,l,!0)},o.prototype.cleanUp=function(){var e,t;if(this.deselectionStarted=!1,this.selectionStarted=!1,this.props.mixedDeselect)try{for(var l=U(this.registry.values()),a=l.next();!a.done;a=l.next()){var s=a.value;s.deselected=!1}}catch(u){e={error:u}}finally{try{a&&!a.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}},o.prototype.handleClick=function(e,t,l){if(this.props.selectOnClick){var a=this.props,s=a.clickClassName,u=a.allowClickWithoutSelected,d=a.onSelectionFinish,f=e.target.classList||[],h=Array.from(f).includes(s);(u||this.selectedItems.size||h||e.ctrlKey)&&(this.selectItems({top:t,left:l,width:0,height:0,offsetWidth:0,offsetHeight:0},{isFromClick:!0}),d(I(this.selectedItems),this.clickedItem),e.which===1&&this.preventEvent(e.target,"click"),(e.which===2||e.which===3)&&this.preventEvent(e.target,"contextmenu"))}},o.prototype.render=function(){var e=this.state.selectionMode,t=this.props,l=t.component,a=l===void 0?"div":l,s=t.className,u=t.style,d=t.selectionModeClass,f=t.fixedPosition,h=t.selectboxClassName,b=t.children;return re.default.createElement(At.SelectableGroupContext.Provider,{value:this.contextValue},re.default.createElement(a,{ref:this.getGroupRef,style:te(te({},this.defaultContainerStyle),u),className:s+" "+(e?d:"")},b,re.default.createElement(It.Selectbox,{getSetState:this.getSelectboxSetState,className:h,fixedPosition:f})))},o.defaultProps={clickClassName:"",tolerance:0,globalMouse:!1,ignoreList:[],scrollSpeed:.25,minimumSpeedFactor:60,duringSelection:L.noop,onSelectionFinish:L.noop,onSelectionClear:L.noop,onSelectedItemUnmount:L.noop,allowClickWithoutSelected:!0,selectionModeClass:"in-selection-mode",resetOnStart:!1,disabled:!1,deselectOnEsc:!0,fixedPosition:!1,delta:1,allowAltClick:!1,allowCtrlClick:!1,allowMetaClick:!1,allowShiftClick:!1,selectOnClick:!0},o}(re.Component);ce.SelectableGroup=Nt;var me={},Ft=v&&v.__extends||function(){var n=function(o,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,l){t.__proto__=l}||function(t,l){for(var a in l)l.hasOwnProperty(a)&&(t[a]=l[a])},n(o,e)};return function(o,e){n(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),_e=v&&v.__assign||function(){return _e=Object.assign||function(n){for(var o,e=1,t=arguments.length;e<t;e++){o=arguments[e];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(n[l]=o[l])}return n},_e.apply(this,arguments)},Bt=v&&v.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var e in n)Object.hasOwnProperty.call(n,e)&&(o[e]=n[e]);return o.default=n,o};Object.defineProperty(me,"__esModule",{value:!0});var Ge=Bt(D),zt=Q,Wt=Y;me.createSelectable=function(n){var o;return o=function(e){Ft(t,e);function t(){var l=e!==null&&e.apply(this,arguments)||this;return l.state={isSelected:l.props.isSelected,isSelecting:!1},l.node=null,l.bounds=null,l.updateBounds=function(a){l.bounds=zt.getBoundsForNode(l.node,a)},l.getSelectableRef=function(a){l.node=a},l}return t.prototype.componentDidMount=function(){this.updateBounds(),this.context.selectable.register(this)},t.prototype.componentWillUnmount=function(){this.context.selectable.unregister(this)},t.prototype.render=function(){return Ge.default.createElement(n,_e({},this.props,this.state,{selectableRef:this.getSelectableRef}))},t}(Ge.Component),o.contextType=Wt.SelectableGroupContext,o.defaultProps={isSelected:!1},o};var ye={},Gt=v&&v.__extends||function(){var n=function(o,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,l){t.__proto__=l}||function(t,l){for(var a in l)l.hasOwnProperty(a)&&(t[a]=l[a])},n(o,e)};return function(o,e){n(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),ge=v&&v.__assign||function(){return ge=Object.assign||function(n){for(var o,e=1,t=arguments.length;e<t;e++){o=arguments[e];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(n[l]=o[l])}return n},ge.apply(this,arguments)},Yt=v&&v.__rest||function(n,o){var e={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&o.indexOf(t)<0&&(e[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(n);l<t.length;l++)o.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(n,t[l])&&(e[t[l]]=n[t[l]]);return e},Ut=v&&v.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var e in n)Object.hasOwnProperty.call(n,e)&&(o[e]=n[e]);return o.default=n,o};Object.defineProperty(ye,"__esModule",{value:!0});var Ye=Ut(D),$t=Y,Vt=function(n){Gt(o,n);function o(){var e=n!==null&&n.apply(this,arguments)||this;return e.root=null,e.getRootRef=function(t){e.root=t},e}return o.prototype.componentDidMount=function(){this.root.addEventListener("mousedown",function(e){return e.stopPropagation()})},o.prototype.render=function(){var e=this.props,t=e.component,l=t===void 0?"div":t,a=e.children,s=e.className,u=s===void 0?"":s,d=Yt(e,["component","children","className"]),f=l;return Ye.default.createElement(f,ge({ref:this.getRootRef,className:"selectable-select-all "+u,onClick:this.context.selectable.selectAll},d),a)},o.contextType=$t.SelectableGroupContext,o}(Ye.Component);ye.SelectAll=Vt;var Se={},Xt=v&&v.__extends||function(){var n=function(o,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,l){t.__proto__=l}||function(t,l){for(var a in l)l.hasOwnProperty(a)&&(t[a]=l[a])},n(o,e)};return function(o,e){n(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),be=v&&v.__assign||function(){return be=Object.assign||function(n){for(var o,e=1,t=arguments.length;e<t;e++){o=arguments[e];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(n[l]=o[l])}return n},be.apply(this,arguments)},Ht=v&&v.__rest||function(n,o){var e={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&o.indexOf(t)<0&&(e[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(n);l<t.length;l++)o.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(n,t[l])&&(e[t[l]]=n[t[l]]);return e},Kt=v&&v.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var e in n)Object.hasOwnProperty.call(n,e)&&(o[e]=n[e]);return o.default=n,o};Object.defineProperty(Se,"__esModule",{value:!0});var Ue=Kt(D),Jt=Y,Zt=function(n){Xt(o,n);function o(){var e=n!==null&&n.apply(this,arguments)||this;return e.root=null,e.getRootRef=function(t){e.root=t},e}return o.prototype.componentDidMount=function(){this.root.addEventListener("mousedown",function(e){return e.stopPropagation()})},o.prototype.render=function(){var e=this.props,t=e.component,l=t===void 0?"div":t,a=e.children,s=e.className,u=Ht(e,["component","children","className"]),d=l;return Ue.default.createElement(d,be({ref:this.getRootRef,className:"selectable-select-all "+s,onClick:this.context.selectable.clearSelection},u),a)},o.contextType=Jt.SelectableGroupContext,o}(Ue.Component);Se.DeselectAll=Zt,Object.defineProperty(K,"__esModule",{value:!0});var qt=ce,Qt=K.SelectableGroup=qt.SelectableGroup,er=me,tr=K.createSelectable=er.createSelectable,rr=ye;K.SelectAll=rr.SelectAll;var nr=Se;if(K.DeselectAll=nr.DeselectAll,process.env.NODE_ENV==="development"&&(typeof Map!="function"||typeof Set!="function"||typeof Array.from!="function"||typeof Array.isArray!="function"||typeof Object.assign!="function"))throw new Error(`
32
- React-Selectable-Fast requires Map, Set, Array.from,
33
- Array.isArray, and Object.assign to exist.
34
- Use a polyfill to provide these for older browsers.
35
- `);const R={"ds-panel-container":"_ds-panel-container_14xzz_1","ds-outer-container":"_ds-outer-container_14xzz_9","ds-container":"_ds-container_14xzz_12","ds-header":"_ds-header_14xzz_16","ds-body":"_ds-body_14xzz_24",minorColor:"_minorColor_14xzz_27",startDate:"_startDate_14xzz_34",endDate:"_endDate_14xzz_38","cell-disabled":"_cell-disabled_14xzz_42","ds-picker-cell-inner":"_ds-picker-cell-inner_14xzz_46","ds-picker-cell":"_ds-picker-cell_14xzz_46","cell-picker-cell-selected":"_cell-picker-cell-selected_14xzz_65","ds-picker-cell-today":"_ds-picker-cell-today_14xzz_69","ds-selectedDate":"_ds-selectedDate_14xzz_75","ds-selectedDate-header":"_ds-selectedDate-header_14xzz_79","ds-selectedDate-notAllow-clear":"_ds-selectedDate-notAllow-clear_14xzz_96","ds-selectedDate-body":"_ds-selectedDate-body_14xzz_100","ds-selectedDate-tag":"_ds-selectedDate-tag_14xzz_105"},or=tr(({cellValue:n,selectableRef:o,isSelecting:e,children:t,selectedAges:l,showMinorColor:a=!1,startAge:s,endAge:u,oneAge:d,disableItems:f})=>w.jsx("div",{ref:o,title:String(n),className:q(R["ds-picker-cell"],{[R["ds-picker-cell-today"]]:e&&!(f!=null&&f(n))},{[R["cell-picker-cell-selected"]]:l.includes(n)},{[R["cell-disabled"]]:f==null?void 0:f(n)},{[R.minorColor]:l.includes(n)&&!d},{[R.startDate]:s},{[R.endDate]:u}),style:{margin:"4px 0",padding:"3px 6px",width:"36px"},children:w.jsx("div",{className:q(R["ds-picker-cell-inner"],{[R.minorColor]:a}),children:t})})),lr=Qt,ar=({componentsName:n="多重选择器",value:o=[],isEditMode:e=!1,onChange:t,disableItems:l=()=>!1,selectedTitle:a="选择的值",containerWidth:s=682,containerHeight:u=312,defaultOptions:d=[]})=>{const[f,h]=D.useState(o),b=D.useRef(),g=_=>{const E=_+1;return f.includes(E)},T=_=>{const E=_-1;return f.includes(E)},A=_=>f.includes(_),xe=D.useMemo(()=>{const _=[];let E=[];for(let P=0;P<f.length;P++)f[P]+1===f[P+1]?E.push(f[P]):(E.push(f[P]),_.push(E),E=[]);return _},[f]);D.useEffect(()=>{t==null||t(f)},[f]);const we=_=>{const E=_.map(W=>W.props.cellValue),P=E.filter(W=>!f.includes(W));P.length&&h(f.concat(P).sort((W,Ce)=>W-Ce)),E.length&&b.current&&b.current.clearSelection()},z=_=>{const E=[...f],P=f.indexOf(_[0]);E.splice(P,_.length),h(E)},j=()=>{h([])};return w.jsx("div",{className:R["ds-panel-container"],style:{width:s},children:w.jsxs("div",{className:R["ds-outer-container"],children:[w.jsxs("div",{className:R["ds-container"],style:{height:u},children:[w.jsx("div",{className:R["ds-header"],children:n}),w.jsx("div",{className:R["ds-body"],style:{pointerEvents:e?"none":"auto"},children:w.jsx(lr,{ref:b,tolerance:0,deselectOnEsc:!1,allowClickWithoutSelected:!0,onSelectionFinish:we,children:w.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:d.map((_,E)=>w.jsx(or,{cellValue:_,disableItems:l,selectedAges:f,oneAge:A(_)&&!g(_)&&!T(_),startAge:A(_)&&g(_)&&!T(_),endAge:A(_)&&!g(_)&&T(_),showMinorColor:A(_)&&g(_)&&T(_),children:_},E))})})})]}),w.jsxs("div",{className:q(R["ds-selectedDate"],"ant-picker-date-panel"),children:[w.jsxs("div",{className:R["ds-selectedDate-header"],children:[w.jsx("span",{children:a}),w.jsx("span",{onClick:j,className:q({[R["ds-selectedDate-notAllow-clear"]]:e}),children:"清空已选"})]}),w.jsx("div",{className:R["ds-selectedDate-body"],style:{maxHeight:u>72?u-72:72},children:xe.map((_,E)=>w.jsxs("span",{className:R["ds-selectedDate-tag"],children:[_[0]," ~ ",_[_.length-1],w.jsx("span",{style:{cursor:"pointer"},onClick:P=>{e||(P.preventDefault(),z(_))},children:" x"})]},E))})]})]})})};B.EmptyDataList=yt,B.MutipleSelector=ar,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
17
+ */var ff;function i1(){return ff||(ff=1,process.env.NODE_ENV!=="production"&&function(){var t=P,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator";function g($){if($===null||typeof $!="object")return null;var I=h&&$[h]||$[m];return typeof I=="function"?I:null}var O=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v($){{for(var I=arguments.length,F=new Array(I>1?I-1:0),re=1;re<I;re++)F[re-1]=arguments[re];x("error",$,F)}}function x($,I,F){{var re=O.ReactDebugCurrentFrame,ge=re.getStackAddendum();ge!==""&&(I+="%s",F=F.concat([ge]));var Pe=F.map(function(pe){return String(pe)});Pe.unshift("Warning: "+I),Function.prototype.apply.call(console[$],console,Pe)}}var b=!1,w=!1,y=!1,k=!1,T=!1,E;E=Symbol.for("react.module.reference");function C($){return!!(typeof $=="string"||typeof $=="function"||$===i||$===s||T||$===r||$===c||$===u||k||$===f||b||w||y||typeof $=="object"&&$!==null&&($.$$typeof===p||$.$$typeof===d||$.$$typeof===o||$.$$typeof===a||$.$$typeof===l||$.$$typeof===E||$.getModuleId!==void 0))}function M($,I,F){var re=$.displayName;if(re)return re;var ge=I.displayName||I.name||"";return ge!==""?F+"("+ge+")":F}function Z($){return $.displayName||"Context"}function q($){if($==null)return null;if(typeof $.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $;switch($){case i:return"Fragment";case n:return"Portal";case s:return"Profiler";case r:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof $=="object")switch($.$$typeof){case a:var I=$;return Z(I)+".Consumer";case o:var F=$;return Z(F._context)+".Provider";case l:return M($,$.render,"ForwardRef");case d:var re=$.displayName||null;return re!==null?re:q($.type)||"Memo";case p:{var ge=$,Pe=ge._payload,pe=ge._init;try{return q(pe(Pe))}catch{return null}}}return null}var N=Object.assign,_=0,G,ee,le,he,B,A,V;function X(){}X.__reactDisabledLog=!0;function D(){{if(_===0){G=console.log,ee=console.info,le=console.warn,he=console.error,B=console.group,A=console.groupCollapsed,V=console.groupEnd;var $={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}_++}}function W(){{if(_--,_===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},$,{value:G}),info:N({},$,{value:ee}),warn:N({},$,{value:le}),error:N({},$,{value:he}),group:N({},$,{value:B}),groupCollapsed:N({},$,{value:A}),groupEnd:N({},$,{value:V})})}_<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=O.ReactCurrentDispatcher,Ee;function me($,I,F){{if(Ee===void 0)try{throw Error()}catch(ge){var re=ge.stack.trim().match(/\n( *(at )?)/);Ee=re&&re[1]||""}return`
18
+ `+Ee+$}}var Ge=!1,En;{var Et=typeof WeakMap=="function"?WeakMap:Map;En=new Et}function qn($,I){if(!$||Ge)return"";{var F=En.get($);if(F!==void 0)return F}var re;Ge=!0;var ge=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Pe;Pe=se.current,se.current=null,D();try{if(I){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(Bn){re=Bn}Reflect.construct($,[],pe)}else{try{pe.call()}catch(Bn){re=Bn}$.call(pe.prototype)}}else{try{throw Error()}catch(Bn){re=Bn}$()}}catch(Bn){if(Bn&&re&&typeof Bn.stack=="string"){for(var de=Bn.stack.split(`
19
+ `),mt=re.stack.split(`
20
+ `),Ie=de.length-1,Ve=mt.length-1;Ie>=1&&Ve>=0&&de[Ie]!==mt[Ve];)Ve--;for(;Ie>=1&&Ve>=0;Ie--,Ve--)if(de[Ie]!==mt[Ve]){if(Ie!==1||Ve!==1)do if(Ie--,Ve--,Ve<0||de[Ie]!==mt[Ve]){var Bt=`
21
+ `+de[Ie].replace(" at new "," at ");return $.displayName&&Bt.includes("<anonymous>")&&(Bt=Bt.replace("<anonymous>",$.displayName)),typeof $=="function"&&En.set($,Bt),Bt}while(Ie>=1&&Ve>=0);break}}}finally{Ge=!1,se.current=Pe,W(),Error.prepareStackTrace=ge}var Nr=$?$.displayName||$.name:"",Kw=Nr?me(Nr):"";return typeof $=="function"&&En.set($,Kw),Kw}function bi($,I,F){return qn($,!1)}function _r($){var I=$.prototype;return!!(I&&I.isReactComponent)}function yi($,I,F){if($==null)return"";if(typeof $=="function")return qn($,_r($));if(typeof $=="string")return me($);switch($){case c:return me("Suspense");case u:return me("SuspenseList")}if(typeof $=="object")switch($.$$typeof){case l:return bi($.render);case d:return yi($.type,I,F);case p:{var re=$,ge=re._payload,Pe=re._init;try{return yi(Pe(ge),I,F)}catch{}}}return""}var Ir=Object.prototype.hasOwnProperty,lo={},De=O.ReactDebugCurrentFrame;function je($){if($){var I=$._owner,F=yi($.type,$._source,I?I.type:null);De.setExtraStackFrame(F)}else De.setExtraStackFrame(null)}function at($,I,F,re,ge){{var Pe=Function.call.bind(Ir);for(var pe in $)if(Pe($,pe)){var de=void 0;try{if(typeof $[pe]!="function"){var mt=Error((re||"React class")+": "+F+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof $[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw mt.name="Invariant Violation",mt}de=$[pe](I,pe,re,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ie){de=Ie}de&&!(de instanceof Error)&&(je(ge),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",re||"React class",F,pe,typeof de),je(null)),de instanceof Error&&!(de.message in lo)&&(lo[de.message]=!0,je(ge),v("Failed %s type: %s",F,de.message),je(null))}}}var wt=Array.isArray;function St($){return wt($)}function He($){{var I=typeof Symbol=="function"&&Symbol.toStringTag,F=I&&$[Symbol.toStringTag]||$.constructor.name||"Object";return F}}function Yt($){try{return jn($),!1}catch{return!0}}function jn($){return""+$}function zn($){if(Yt($))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He($)),jn($)}var Yn=O.ReactCurrentOwner,wi={key:!0,ref:!0,__self:!0,__source:!0},Il,Zl,sf;sf={};function cL($){if(Ir.call($,"ref")){var I=Object.getOwnPropertyDescriptor($,"ref").get;if(I&&I.isReactWarning)return!1}return $.ref!==void 0}function uL($){if(Ir.call($,"key")){var I=Object.getOwnPropertyDescriptor($,"key").get;if(I&&I.isReactWarning)return!1}return $.key!==void 0}function dL($,I){if(typeof $.ref=="string"&&Yn.current&&I&&Yn.current.stateNode!==I){var F=q(Yn.current.type);sf[F]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',q(Yn.current.type),$.ref),sf[F]=!0)}}function pL($,I){{var F=function(){Il||(Il=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};F.isReactWarning=!0,Object.defineProperty($,"key",{get:F,configurable:!0})}}function fL($,I){{var F=function(){Zl||(Zl=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};F.isReactWarning=!0,Object.defineProperty($,"ref",{get:F,configurable:!0})}}var hL=function($,I,F,re,ge,Pe,pe){var de={$$typeof:e,type:$,key:I,ref:F,props:pe,_owner:Pe};return de._store={},Object.defineProperty(de._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(de,"_self",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.defineProperty(de,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.freeze&&(Object.freeze(de.props),Object.freeze(de)),de};function mL($,I,F,re,ge){{var Pe,pe={},de=null,mt=null;F!==void 0&&(zn(F),de=""+F),uL(I)&&(zn(I.key),de=""+I.key),cL(I)&&(mt=I.ref,dL(I,ge));for(Pe in I)Ir.call(I,Pe)&&!wi.hasOwnProperty(Pe)&&(pe[Pe]=I[Pe]);if($&&$.defaultProps){var Ie=$.defaultProps;for(Pe in Ie)pe[Pe]===void 0&&(pe[Pe]=Ie[Pe])}if(de||mt){var Ve=typeof $=="function"?$.displayName||$.name||"Unknown":$;de&&pL(pe,Ve),mt&&fL(pe,Ve)}return hL($,de,mt,ge,re,Yn.current,pe)}}var of=O.ReactCurrentOwner,Bw=O.ReactDebugCurrentFrame;function Zr($){if($){var I=$._owner,F=yi($.type,$._source,I?I.type:null);Bw.setExtraStackFrame(F)}else Bw.setExtraStackFrame(null)}var af;af=!1;function lf($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function Uw(){{if(of.current){var $=q(of.current.type);if($)return`
22
+
23
+ Check the render method of \``+$+"`."}return""}}function gL($){{if($!==void 0){var I=$.fileName.replace(/^.*[\\\/]/,""),F=$.lineNumber;return`
24
+
25
+ Check your code at `+I+":"+F+"."}return""}}var Fw={};function vL($){{var I=Uw();if(!I){var F=typeof $=="string"?$:$.displayName||$.name;F&&(I=`
26
+
27
+ Check the top-level render call using <`+F+">.")}return I}}function Gw($,I){{if(!$._store||$._store.validated||$.key!=null)return;$._store.validated=!0;var F=vL(I);if(Fw[F])return;Fw[F]=!0;var re="";$&&$._owner&&$._owner!==of.current&&(re=" It was passed a child from "+q($._owner.type)+"."),Zr($),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,re),Zr(null)}}function Hw($,I){{if(typeof $!="object")return;if(St($))for(var F=0;F<$.length;F++){var re=$[F];lf(re)&&Gw(re,I)}else if(lf($))$._store&&($._store.validated=!0);else if($){var ge=g($);if(typeof ge=="function"&&ge!==$.entries)for(var Pe=ge.call($),pe;!(pe=Pe.next()).done;)lf(pe.value)&&Gw(pe.value,I)}}}function OL($){{var I=$.type;if(I==null||typeof I=="string")return;var F;if(typeof I=="function")F=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===l||I.$$typeof===d))F=I.propTypes;else return;if(F){var re=q(I);at(F,$.props,"prop",re,$)}else if(I.PropTypes!==void 0&&!af){af=!0;var ge=q(I);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ge||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xL($){{for(var I=Object.keys($.props),F=0;F<I.length;F++){var re=I[F];if(re!=="children"&&re!=="key"){Zr($),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",re),Zr(null);break}}$.ref!==null&&(Zr($),v("Invalid attribute `ref` supplied to `React.Fragment`."),Zr(null))}}function Jw($,I,F,re,ge,Pe){{var pe=C($);if(!pe){var de="";($===void 0||typeof $=="object"&&$!==null&&Object.keys($).length===0)&&(de+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mt=gL(ge);mt?de+=mt:de+=Uw();var Ie;$===null?Ie="null":St($)?Ie="array":$!==void 0&&$.$$typeof===e?(Ie="<"+(q($.type)||"Unknown")+" />",de=" Did you accidentally export a JSX literal instead of a component?"):Ie=typeof $,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ie,de)}var Ve=mL($,I,F,ge,Pe);if(Ve==null)return Ve;if(pe){var Bt=I.children;if(Bt!==void 0)if(re)if(St(Bt)){for(var Nr=0;Nr<Bt.length;Nr++)Hw(Bt[Nr],$);Object.freeze&&Object.freeze(Bt)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Hw(Bt,$)}return $===i?xL(Ve):OL(Ve),Ve}}function bL($,I,F){return Jw($,I,F,!0)}function yL($,I,F){return Jw($,I,F,!1)}var wL=yL,SL=bL;Xr.Fragment=i,Xr.jsx=wL,Xr.jsxs=SL}()),Xr}process.env.NODE_ENV==="production"?Xl.exports=n1():Xl.exports=i1();var S=Xl.exports;function r1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function mf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hf(Object(n),!0).forEach(function(i){r1(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hf(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function s1(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function o1(t,e){if(t==null)return{};var n=s1(t,e),i,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function a1(t,e){return l1(t)||c1(t,e)||u1(t,e)||d1()}function l1(t){if(Array.isArray(t))return t}function c1(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],i=!0,r=!1,s=void 0;try{for(var o=t[Symbol.iterator](),a;!(i=(a=o.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(l){r=!0,s=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(r)throw s}}return n}}function u1(t,e){if(t){if(typeof t=="string")return gf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gf(t,e)}}function gf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Of(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vf(Object(n),!0).forEach(function(i){p1(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function f1(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(i){return e.reduceRight(function(r,s){return s(r)},i)}}function Vr(t){return function e(){for(var n=this,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return r.length>=t.length?t.apply(this,r):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return e.apply(n,[].concat(r,a))}}}function po(t){return{}.toString.call(t).includes("Object")}function h1(t){return!Object.keys(t).length}function Wr(t){return typeof t=="function"}function m1(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function g1(t,e){return po(e)||Un("changeType"),Object.keys(e).some(function(n){return!m1(t,n)})&&Un("changeField"),e}function v1(t){Wr(t)||Un("selectorType")}function O1(t){Wr(t)||po(t)||Un("handlerType"),po(t)&&Object.values(t).some(function(e){return!Wr(e)})&&Un("handlersType")}function x1(t){t||Un("initialIsRequired"),po(t)||Un("initialType"),h1(t)&&Un("initialContent")}function b1(t,e){throw new Error(t[e]||t.default)}var y1={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Un=Vr(b1)(y1),fo={changes:g1,selector:v1,handler:O1,initial:x1};function w1(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fo.initial(t),fo.handler(e);var n={current:t},i=Vr(k1)(n,e),r=Vr(P1)(n),s=Vr(fo.changes)(t),o=Vr(S1)(n);function a(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return fo.selector(c),c(n.current)}function l(c){f1(i,r,s,o)(c)}return[a,l]}function S1(t,e){return Wr(e)?e(t.current):e}function P1(t,e){return t.current=Of(Of({},t.current),e),e}function k1(t,e,n){return Wr(e)?e(t.current):Object.keys(n).forEach(function(i){var r;return(r=e[i])===null||r===void 0?void 0:r.call(e,t.current[i])}),n}var $1={create:w1},T1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Q1(t){return function e(){for(var n=this,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return r.length>=t.length?t.apply(this,r):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return e.apply(n,[].concat(r,a))}}}function C1(t){return{}.toString.call(t).includes("Object")}function E1(t){return t||bf("configIsRequired"),C1(t)||bf("configType"),t.urls?(j1(),{paths:{vs:t.urls.monacoBase}}):t}function j1(){console.warn(xf.deprecation)}function A1(t,e){throw new Error(t[e]||t.default)}var xf={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
29
+ You are using deprecated way of configuration.
30
+
31
+ Instead of using
32
+ monaco.config({ urls: { monacoBase: '...' } })
33
+ use
34
+ monaco.config({ paths: { vs: '...' } })
35
+
36
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
37
+ `},bf=Q1(A1)(xf),D1={config:E1},M1=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(r){return n.reduceRight(function(s,o){return o(s)},r)}};function yf(t,e){return Object.keys(e).forEach(function(n){e[n]instanceof Object&&t[n]&&Object.assign(e[n],yf(t[n],e[n]))}),mf(mf({},t),e)}var R1={type:"cancelation",msg:"operation is manually canceled"};function Vl(t){var e=!1,n=new Promise(function(i,r){t.then(function(s){return e?r(R1):i(s)}),t.catch(r)});return n.cancel=function(){return e=!0},n}var _1=$1.create({config:T1,isInitialized:!1,resolve:null,reject:null,monaco:null}),wf=a1(_1,2),qr=wf[0],ho=wf[1];function I1(t){var e=D1.config(t),n=e.monaco,i=o1(e,["monaco"]);ho(function(r){return{config:yf(r.config,i),monaco:n}})}function Z1(){var t=qr(function(e){var n=e.monaco,i=e.isInitialized,r=e.resolve;return{monaco:n,isInitialized:i,resolve:r}});if(!t.isInitialized){if(ho({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),Vl(Wl);if(window.monaco&&window.monaco.editor)return Sf(window.monaco),t.resolve(window.monaco),Vl(Wl);M1(N1,X1)(V1)}return Vl(Wl)}function N1(t){return document.body.appendChild(t)}function L1(t){var e=document.createElement("script");return t&&(e.src=t),e}function X1(t){var e=qr(function(i){var r=i.config,s=i.reject;return{config:r,reject:s}}),n=L1("".concat(e.config.paths.vs,"/loader.js"));return n.onload=function(){return t()},n.onerror=e.reject,n}function V1(){var t=qr(function(n){var i=n.config,r=n.resolve,s=n.reject;return{config:i,resolve:r,reject:s}}),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],function(n){Sf(n),t.resolve(n)},function(n){t.reject(n)})}function Sf(t){qr().monaco||ho({monaco:t})}function W1(){return qr(function(t){var e=t.monaco;return e})}var Wl=new Promise(function(t,e){return ho({resolve:t,reject:e})}),Pf={config:I1,init:Z1,__getMonacoInstance:W1},q1={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ql=q1,z1={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Y1=z1;function B1({children:t}){return P.createElement("div",{style:Y1.container},t)}var U1=B1,F1=U1;function G1({width:t,height:e,isEditorReady:n,loading:i,_ref:r,className:s,wrapperProps:o}){return P.createElement("section",{style:{...ql.wrapper,width:t,height:e},...o},!n&&P.createElement(F1,null,i),P.createElement("div",{ref:r,style:{...ql.fullWidth,...!n&&ql.hide},className:s}))}var H1=G1,kf=P.memo(H1);function J1(t){P.useEffect(t,[])}var $f=J1;function K1(t,e,n=!0){let i=P.useRef(!0);P.useEffect(i.current||!n?()=>{i.current=!1}:t,e)}var Pt=K1;function zr(){}function Fi(t,e,n,i){return eS(t,i)||tS(t,e,n,i)}function eS(t,e){return t.editor.getModel(Tf(t,e))}function tS(t,e,n,i){return t.editor.createModel(e,n,i?Tf(t,i):void 0)}function Tf(t,e){return t.Uri.parse(e)}function nS({original:t,modified:e,language:n,originalLanguage:i,modifiedLanguage:r,originalModelPath:s,modifiedModelPath:o,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:d={},height:p="100%",width:f="100%",className:h,wrapperProps:m={},beforeMount:g=zr,onMount:O=zr}){let[v,x]=P.useState(!1),[b,w]=P.useState(!0),y=P.useRef(null),k=P.useRef(null),T=P.useRef(null),E=P.useRef(O),C=P.useRef(g),M=P.useRef(!1);$f(()=>{let _=Pf.init();return _.then(G=>(k.current=G)&&w(!1)).catch(G=>(G==null?void 0:G.type)!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>y.current?N():_.cancel()}),Pt(()=>{if(y.current&&k.current){let _=y.current.getOriginalEditor(),G=Fi(k.current,t||"",i||n||"text",s||"");G!==_.getModel()&&_.setModel(G)}},[s],v),Pt(()=>{if(y.current&&k.current){let _=y.current.getModifiedEditor(),G=Fi(k.current,e||"",r||n||"text",o||"");G!==_.getModel()&&_.setModel(G)}},[o],v),Pt(()=>{let _=y.current.getModifiedEditor();_.getOption(k.current.editor.EditorOption.readOnly)?_.setValue(e||""):e!==_.getValue()&&(_.executeEdits("",[{range:_.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),_.pushUndoStop())},[e],v),Pt(()=>{var _,G;(G=(_=y.current)==null?void 0:_.getModel())==null||G.original.setValue(t||"")},[t],v),Pt(()=>{let{original:_,modified:G}=y.current.getModel();k.current.editor.setModelLanguage(_,i||n||"text"),k.current.editor.setModelLanguage(G,r||n||"text")},[n,i,r],v),Pt(()=>{var _;(_=k.current)==null||_.editor.setTheme(c)},[c],v),Pt(()=>{var _;(_=y.current)==null||_.updateOptions(d)},[d],v);let Z=P.useCallback(()=>{var ee;if(!k.current)return;C.current(k.current);let _=Fi(k.current,t||"",i||n||"text",s||""),G=Fi(k.current,e||"",r||n||"text",o||"");(ee=y.current)==null||ee.setModel({original:_,modified:G})},[n,e,r,t,i,s,o]),q=P.useCallback(()=>{var _;!M.current&&T.current&&(y.current=k.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...d}),Z(),(_=k.current)==null||_.editor.setTheme(c),x(!0),M.current=!0)},[d,c,Z]);P.useEffect(()=>{v&&E.current(y.current,k.current)},[v]),P.useEffect(()=>{!b&&!v&&q()},[b,v,q]);function N(){var G,ee,le,he;let _=(G=y.current)==null?void 0:G.getModel();a||((ee=_==null?void 0:_.original)==null||ee.dispose()),l||((le=_==null?void 0:_.modified)==null||le.dispose()),(he=y.current)==null||he.dispose()}return P.createElement(kf,{width:f,height:p,isEditorReady:v,loading:u,_ref:T,className:h,wrapperProps:m})}var iS=nS;P.memo(iS);function rS(t){let e=P.useRef();return P.useEffect(()=>{e.current=t},[t]),e.current}var sS=rS,mo=new Map;function oS({defaultValue:t,defaultLanguage:e,defaultPath:n,value:i,language:r,path:s,theme:o="light",line:a,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:p=!1,width:f="100%",height:h="100%",className:m,wrapperProps:g={},beforeMount:O=zr,onMount:v=zr,onChange:x,onValidate:b=zr}){let[w,y]=P.useState(!1),[k,T]=P.useState(!0),E=P.useRef(null),C=P.useRef(null),M=P.useRef(null),Z=P.useRef(v),q=P.useRef(O),N=P.useRef(),_=P.useRef(i),G=sS(s),ee=P.useRef(!1),le=P.useRef(!1);$f(()=>{let A=Pf.init();return A.then(V=>(E.current=V)&&T(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>C.current?B():A.cancel()}),Pt(()=>{var V,X,D,W;let A=Fi(E.current,t||i||"",e||r||"",s||n||"");A!==((V=C.current)==null?void 0:V.getModel())&&(d&&mo.set(G,(X=C.current)==null?void 0:X.saveViewState()),(D=C.current)==null||D.setModel(A),d&&((W=C.current)==null||W.restoreViewState(mo.get(s))))},[s],w),Pt(()=>{var A;(A=C.current)==null||A.updateOptions(c)},[c],w),Pt(()=>{!C.current||i===void 0||(C.current.getOption(E.current.editor.EditorOption.readOnly)?C.current.setValue(i):i!==C.current.getValue()&&(le.current=!0,C.current.executeEdits("",[{range:C.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),C.current.pushUndoStop(),le.current=!1))},[i],w),Pt(()=>{var V,X;let A=(V=C.current)==null?void 0:V.getModel();A&&r&&((X=E.current)==null||X.editor.setModelLanguage(A,r))},[r],w),Pt(()=>{var A;a!==void 0&&((A=C.current)==null||A.revealLine(a))},[a],w),Pt(()=>{var A;(A=E.current)==null||A.editor.setTheme(o)},[o],w);let he=P.useCallback(()=>{var A;if(!(!M.current||!E.current)&&!ee.current){q.current(E.current);let V=s||n,X=Fi(E.current,i||t||"",e||r||"",V||"");C.current=(A=E.current)==null?void 0:A.editor.create(M.current,{model:X,automaticLayout:!0,...c},u),d&&C.current.restoreViewState(mo.get(V)),E.current.editor.setTheme(o),a!==void 0&&C.current.revealLine(a),y(!0),ee.current=!0}},[t,e,n,i,r,s,c,u,d,o,a]);P.useEffect(()=>{w&&Z.current(C.current,E.current)},[w]),P.useEffect(()=>{!k&&!w&&he()},[k,w,he]),_.current=i,P.useEffect(()=>{var A,V;w&&x&&((A=N.current)==null||A.dispose(),N.current=(V=C.current)==null?void 0:V.onDidChangeModelContent(X=>{le.current||x(C.current.getValue(),X)}))},[w,x]),P.useEffect(()=>{if(w){let A=E.current.editor.onDidChangeMarkers(V=>{var D;let X=(D=C.current.getModel())==null?void 0:D.uri;if(X&&V.find(W=>W.path===X.path)){let W=E.current.editor.getModelMarkers({resource:X});b==null||b(W)}});return()=>{A==null||A.dispose()}}return()=>{}},[w,b]);function B(){var A,V;(A=N.current)==null||A.dispose(),p?d&&mo.set(s,C.current.saveViewState()):(V=C.current.getModel())==null||V.dispose(),C.current.dispose()}return P.createElement(kf,{width:f,height:h,isEditorReady:w,loading:l,_ref:M,className:m,wrapperProps:g})}var aS=oS,lS=P.memo(aS),cS=lS,ye="colors",lt="sizes",H="space",uS={gap:H,gridGap:H,columnGap:H,gridColumnGap:H,rowGap:H,gridRowGap:H,inset:H,insetBlock:H,insetBlockEnd:H,insetBlockStart:H,insetInline:H,insetInlineEnd:H,insetInlineStart:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockEnd:H,marginBlockStart:H,marginInline:H,marginInlineEnd:H,marginInlineStart:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockEnd:H,paddingBlockStart:H,paddingInline:H,paddingInlineEnd:H,paddingInlineStart:H,top:H,right:H,bottom:H,left:H,scrollMargin:H,scrollMarginTop:H,scrollMarginRight:H,scrollMarginBottom:H,scrollMarginLeft:H,scrollMarginX:H,scrollMarginY:H,scrollMarginBlock:H,scrollMarginBlockEnd:H,scrollMarginBlockStart:H,scrollMarginInline:H,scrollMarginInlineEnd:H,scrollMarginInlineStart:H,scrollPadding:H,scrollPaddingTop:H,scrollPaddingRight:H,scrollPaddingBottom:H,scrollPaddingLeft:H,scrollPaddingX:H,scrollPaddingY:H,scrollPaddingBlock:H,scrollPaddingBlockEnd:H,scrollPaddingBlockStart:H,scrollPaddingInline:H,scrollPaddingInlineEnd:H,scrollPaddingInlineStart:H,fontSize:"fontSizes",background:ye,backgroundColor:ye,backgroundImage:ye,borderImage:ye,border:ye,borderBlock:ye,borderBlockEnd:ye,borderBlockStart:ye,borderBottom:ye,borderBottomColor:ye,borderColor:ye,borderInline:ye,borderInlineEnd:ye,borderInlineStart:ye,borderLeft:ye,borderLeftColor:ye,borderRight:ye,borderRightColor:ye,borderTop:ye,borderTopColor:ye,caretColor:ye,color:ye,columnRuleColor:ye,fill:ye,outline:ye,outlineColor:ye,stroke:ye,textDecorationColor:ye,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:lt,minBlockSize:lt,maxBlockSize:lt,inlineSize:lt,minInlineSize:lt,maxInlineSize:lt,width:lt,minWidth:lt,maxWidth:lt,height:lt,minHeight:lt,maxHeight:lt,flexBasis:lt,gridTemplateColumns:lt,gridTemplateRows:lt,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},dS=(t,e)=>typeof e=="function"?{"()":Function.prototype.toString.call(e)}:e,Yr=()=>{const t=Object.create(null);return(e,n,...i)=>{const r=(s=>JSON.stringify(s,dS))(e);return r in t?t[r]:t[r]=n(e,...i)}},go=Symbol.for("sxs.internal"),zl=(t,e)=>Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),Qf=t=>{for(const e in t)return!0;return!1},{hasOwnProperty:pS}=Object.prototype,Yl=t=>t.includes("-")?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),fS=/\s+(?![^()]*\))/,Gi=t=>e=>t(...typeof e=="string"?String(e).split(fS):[e]),Cf={appearance:t=>({WebkitAppearance:t,appearance:t}),backfaceVisibility:t=>({WebkitBackfaceVisibility:t,backfaceVisibility:t}),backdropFilter:t=>({WebkitBackdropFilter:t,backdropFilter:t}),backgroundClip:t=>({WebkitBackgroundClip:t,backgroundClip:t}),boxDecorationBreak:t=>({WebkitBoxDecorationBreak:t,boxDecorationBreak:t}),clipPath:t=>({WebkitClipPath:t,clipPath:t}),content:t=>({content:t.includes('"')||t.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(t)?t:`"${t}"`}),hyphens:t=>({WebkitHyphens:t,hyphens:t}),maskImage:t=>({WebkitMaskImage:t,maskImage:t}),maskSize:t=>({WebkitMaskSize:t,maskSize:t}),tabSize:t=>({MozTabSize:t,tabSize:t}),textSizeAdjust:t=>({WebkitTextSizeAdjust:t,textSizeAdjust:t}),userSelect:t=>({WebkitUserSelect:t,userSelect:t}),marginBlock:Gi((t,e)=>({marginBlockStart:t,marginBlockEnd:e||t})),marginInline:Gi((t,e)=>({marginInlineStart:t,marginInlineEnd:e||t})),maxSize:Gi((t,e)=>({maxBlockSize:t,maxInlineSize:e||t})),minSize:Gi((t,e)=>({minBlockSize:t,minInlineSize:e||t})),paddingBlock:Gi((t,e)=>({paddingBlockStart:t,paddingBlockEnd:e||t})),paddingInline:Gi((t,e)=>({paddingInlineStart:t,paddingInlineEnd:e||t}))},Bl=/([\d.]+)([^]*)/,hS=(t,e)=>t.length?t.reduce((n,i)=>(n.push(...e.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(i)&&/&.*&/.test(r)?`:is(${i})`:i):i+" "+r)),n),[]):e,mS=(t,e)=>t in gS&&typeof e=="string"?e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,i,r,s)=>i+(r==="stretch"?`-moz-available${s};${Yl(t)}:${i}-webkit-fill-available`:`-moz-fit-content${s};${Yl(t)}:${i}fit-content`)+s):String(e),gS={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},An=t=>t?t+"-":"",Ef=(t,e,n)=>t.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(i,r,s,o,a)=>o=="$"==!!s?i:(r||o=="--"?"calc(":"")+"var(--"+(o==="$"?An(e)+(a.includes("$")?"":An(n))+a.replace(/\$/g,"-"):a)+")"+(r||o=="--"?"*"+(r||"")+(s||"1")+")":"")),vS=/\s*,\s*(?![^()]*\))/,OS=Object.prototype.toString,Hi=(t,e,n,i,r)=>{let s,o,a;const l=(c,u,d)=>{let p,f;const h=m=>{for(p in m){const v=p.charCodeAt(0)===64,x=v&&Array.isArray(m[p])?m[p]:[m[p]];for(f of x){const b=/[A-Z]/.test(O=p)?O:O.replace(/-[^]/g,y=>y[1].toUpperCase()),w=typeof f=="object"&&f&&f.toString===OS&&(!i.utils[b]||!u.length);if(b in i.utils&&!w){const y=i.utils[b];if(y!==o){o=y,h(y(f)),o=null;continue}}else if(b in Cf){const y=Cf[b];if(y!==a){a=y,h(y(f)),a=null;continue}}if(v&&(g=p.slice(1)in i.media?"@media "+i.media[p.slice(1)]:p,p=g.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(y,k,T,E,C,M)=>{const Z=Bl.test(k),q=.0625*(Z?-1:1),[N,_]=Z?[E,k]:[k,E];return"("+(T[0]==="="?"":T[0]===">"===Z?"max-":"min-")+N+":"+(T[0]!=="="&&T.length===1?_.replace(Bl,(G,ee,le)=>Number(ee)+q*(T===">"?1:-1)+le):_)+(C?") and ("+(C[0]===">"?"min-":"max-")+N+":"+(C.length===1?M.replace(Bl,(G,ee,le)=>Number(ee)+q*(C===">"?-1:1)+le):M):"")+")"})),w){const y=v?d.concat(p):[...d],k=v?[...u]:hS(u,p.split(vS));s!==void 0&&r(jf(...s)),s=void 0,l(f,k,y)}else s===void 0&&(s=[[],u,d]),p=v||p.charCodeAt(0)!==36?p:`--${An(i.prefix)}${p.slice(1).replace(/\$/g,"-")}`,f=w?f:typeof f=="number"?f&&b in xS?String(f)+"px":String(f):Ef(mS(b,f??""),i.prefix,i.themeMap[b]),s[0].push(`${v?`${p} `:`${Yl(p)}:`}${f}`)}}var g,O};h(c),s!==void 0&&r(jf(...s)),s=void 0};l(t,e,n)},jf=(t,e,n)=>`${n.map(i=>`${i}{`).join("")}${e.length?`${e.join(",")}{`:""}${t.join(";")}${e.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,xS={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Af=t=>String.fromCharCode(t+(t>25?39:97)),Si=t=>(e=>{let n,i="";for(n=Math.abs(e);n>52;n=n/52|0)i=Af(n%52)+i;return Af(n%52)+i})(((e,n)=>{let i=n.length;for(;i;)e=33*e^n.charCodeAt(--i);return e})(5381,JSON.stringify(t))>>>0),Br=["themed","global","styled","onevar","resonevar","allvar","inline"],bS=t=>{if(t.href&&!t.href.startsWith(location.origin))return!1;try{return!!t.cssRules}catch{return!1}},yS=t=>{let e;const n=()=>{const{cssRules:r}=e.sheet;return[].map.call(r,(s,o)=>{const{cssText:a}=s;let l="";if(a.startsWith("--sxs"))return"";if(r[o-1]&&(l=r[o-1].cssText).startsWith("--sxs")){if(!s.cssRules.length)return"";for(const c in e.rules)if(e.rules[c].group===s)return`--sxs{--sxs:${[...e.rules[c].cache].join(" ")}}${a}`;return s.cssRules.length?`${l}${a}`:""}return a}).join("")},i=()=>{if(e){const{rules:a,sheet:l}=e;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const c in a)delete a[c]}const r=Object(t).styleSheets||[];for(const a of r)if(bS(a)){for(let l=0,c=a.cssRules;c[l];++l){const u=Object(c[l]);if(u.type!==1)continue;const d=Object(c[l+1]);if(d.type!==4)continue;++l;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const f=p.slice(14,-3).trim().split(/\s+/),h=Br[f[0]];h&&(e||(e={sheet:a,reset:i,rules:{},toString:n}),e.rules[h]={group:d,index:l,cache:new Set(f)})}if(e)break}if(!e){const a=(l,c)=>({type:c,cssRules:[],insertRule(u,d){this.cssRules.splice(d,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return l==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:l}});e={sheet:t?(t.head||t).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:i,toString:n}}const{sheet:s,rules:o}=e;for(let a=Br.length-1;a>=0;--a){const l=Br[a];if(!o[l]){const c=Br[a+1],u=o[c]?o[c].index:s.cssRules.length;s.insertRule("@media{}",u),s.insertRule(`--sxs{--sxs:${a}}`,u),o[l]={group:s.cssRules[u+1],index:u,cache:new Set([a])}}wS(o[l])}};return i(),e},wS=t=>{const e=t.group;let n=e.cssRules.length;t.apply=i=>{try{e.insertRule(i,n),++n}catch{}}},Ur=Symbol(),SS=Yr(),PS=(t,e)=>SS(t,()=>(...n)=>{let i={type:null,composers:new Set};for(const r of n)if(r!=null)if(r[go]){i.type==null&&(i.type=r[go].type);for(const s of r[go].composers)i.composers.add(s)}else r.constructor!==Object||r.$$typeof?i.type==null&&(i.type=r):i.composers.add(kS(r,t));return i.type==null&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),$S(t,i,e)}),kS=({variants:t,compoundVariants:e,defaultVariants:n,...i},r)=>{const s=`${An(r.prefix)}c-${Si(i)}`,o=[],a=[],l=Object.create(null),c=[];for(const p in n)l[p]=String(n[p]);if(typeof t=="object"&&t)for(const p in t){u=l,d=p,pS.call(u,d)||(l[p]="undefined");const f=t[p];for(const h in f){const m={[p]:String(h)};String(h)==="undefined"&&c.push(p);const g=f[h],O=[m,g,!Qf(g)];o.push(O)}}var u,d;if(typeof e=="object"&&e)for(const p of e){let{css:f,...h}=p;f=typeof f=="object"&&f||{};for(const g in h)h[g]=String(h[g]);const m=[h,f,!Qf(f)];a.push(m)}return[s,i,o,a,l,c]},$S=(t,e,n)=>{const[i,r,s,o]=TS(e.composers),a=typeof e.type=="function"||e.type.$$typeof?(d=>{function p(){for(let f=0;f<p[Ur].length;f++){const[h,m]=p[Ur][f];d.rules[h].apply(m)}return p[Ur]=[],null}return p[Ur]=[],p.rules={},Br.forEach(f=>p.rules[f]={apply:h=>p[Ur].push([f,h])}),p})(n):null,l=(a||n).rules,c=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||QS;const{css:p,...f}=d,h={};for(const O in s)if(delete f[O],O in d){let v=d[O];typeof v=="object"&&v?h[O]={"@initial":s[O],...v}:(v=String(v),h[O]=v!=="undefined"||o.has(O)?v:s[O])}else h[O]=s[O];const m=new Set([...r]);for(const[O,v,x,b]of e.composers){n.rules.styled.cache.has(O)||(n.rules.styled.cache.add(O),Hi(v,[`.${O}`],[],t,k=>{l.styled.apply(k)}));const w=Df(x,h,t.media),y=Df(b,h,t.media,!0);for(const k of w)if(k!==void 0)for(const[T,E,C]of k){const M=`${O}-${Si(E)}-${T}`;m.add(M);const Z=(C?n.rules.resonevar:n.rules.onevar).cache,q=C?l.resonevar:l.onevar;Z.has(M)||(Z.add(M),Hi(E,[`.${M}`],[],t,N=>{q.apply(N)}))}for(const k of y)if(k!==void 0)for(const[T,E]of k){const C=`${O}-${Si(E)}-${T}`;m.add(C),n.rules.allvar.cache.has(C)||(n.rules.allvar.cache.add(C),Hi(E,[`.${C}`],[],t,M=>{l.allvar.apply(M)}))}}if(typeof p=="object"&&p){const O=`${i}-i${Si(p)}-css`;m.add(O),n.rules.inline.cache.has(O)||(n.rules.inline.cache.add(O),Hi(p,[`.${O}`],[],t,v=>{l.inline.apply(v)}))}for(const O of String(d.className||"").trim().split(/\s+/))O&&m.add(O);const g=f.className=[...m].join(" ");return{type:e.type,className:g,selector:c,props:f,toString:()=>g,deferredInjector:a}};return zl(u,{className:i,selector:c,[go]:e,toString:()=>(n.rules.styled.cache.has(i)||u(),i)})},TS=t=>{let e="";const n=[],i={},r=[];for(const[s,,,,o,a]of t){e===""&&(e=s),n.push(s),r.push(...a);for(const l in o){const c=o[l];(i[l]===void 0||c!=="undefined"||a.includes(c))&&(i[l]=c)}}return[e,n,i,new Set(r)]},Df=(t,e,n,i)=>{const r=[];e:for(let[s,o,a]of t){if(a)continue;let l,c=0,u=!1;for(l in s){const d=s[l];let p=e[l];if(p!==d){if(typeof p!="object"||!p)continue e;{let f,h,m=0;for(const g in p){if(d===String(p[g])){if(g!=="@initial"){const O=g.slice(1);(h=h||[]).push(O in n?n[O]:g.replace(/^@media ?/,"")),u=!0}c+=m,f=!0}++m}if(h&&h.length&&(o={["@media "+h.join(", ")]:o}),!f)continue e}}}(r[c]=r[c]||[]).push([i?"cv":`${l}-${s[l]}`,o,u])}return r},QS={},CS=Yr(),ES=(t,e)=>CS(t,()=>(...n)=>{const i=()=>{for(let r of n){r=typeof r=="object"&&r||{};let s=Si(r);if(!e.rules.global.cache.has(s)){if(e.rules.global.cache.add(s),"@import"in r){let o=[].indexOf.call(e.sheet.cssRules,e.rules.themed.group)-1;for(let a of[].concat(r["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,e.sheet.insertRule(`@import ${a};`,o++);delete r["@import"]}Hi(r,[],[],t,o=>{e.rules.global.apply(o)})}}return""};return zl(i,{toString:i})}),jS=Yr(),AS=(t,e)=>jS(t,()=>n=>{const i=`${An(t.prefix)}k-${Si(n)}`,r=()=>{if(!e.rules.global.cache.has(i)){e.rules.global.cache.add(i);const s=[];Hi(n,[],[],t,a=>s.push(a));const o=`@keyframes ${i}{${s.join("")}}`;e.rules.global.apply(o)}return i};return zl(r,{get name(){return r()},toString:r})}),DS=class{constructor(t,e,n,i){this.token=t==null?"":String(t),this.value=e==null?"":String(e),this.scale=n==null?"":String(n),this.prefix=i==null?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+An(this.prefix)+An(this.scale)+this.token}toString(){return this.computedValue}},MS=Yr(),RS=(t,e)=>MS(t,()=>(n,i)=>{i=typeof n=="object"&&n||Object(i);const r=`.${n=(n=typeof n=="string"?n:"")||`${An(t.prefix)}t-${Si(i)}`}`,s={},o=[];for(const l in i){s[l]={};for(const c in i[l]){const u=`--${An(t.prefix)}${l}-${c}`,d=Ef(String(i[l][c]),t.prefix,l);s[l][c]=new DS(c,d,l,t.prefix),o.push(`${u}:${d}`)}}const a=()=>{if(o.length&&!e.rules.themed.cache.has(n)){e.rules.themed.cache.add(n);const l=`${i===t.theme?":root,":""}.${n}{${o.join(";")}}`;e.rules.themed.apply(l)}return n};return{...s,get className(){return a()},selector:r,toString:a}}),_S=Yr(),IS=t=>{let e=!1;const n=_S(t,i=>{e=!0;const r="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",s=typeof i.media=="object"&&i.media||{},o=typeof i.root=="object"?i.root||null:globalThis.document||null,a=typeof i.theme=="object"&&i.theme||{},l={prefix:r,media:s,theme:a,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...uS},utils:typeof i.utils=="object"&&i.utils||{}},c=yS(o),u={css:PS(l,c),globalCss:ES(l,c),keyframes:AS(l,c),createTheme:RS(l,c),reset(){c.reset(),u.theme.toString()},theme:{},sheet:c,config:l,prefix:r,getCssText:c.toString,toString:c.toString};return String(u.theme=u.createTheme(a)),u});return e||n.reset(),n},Mf=Object.prototype.hasOwnProperty;function Rf(t,e,n){for(n of t.keys())if(Pi(n,e))return n}function Pi(t,e){var n,i,r;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&Pi(t[i],e[i]););return i===-1}if(n===Set){if(t.size!==e.size)return!1;for(i of t)if(r=i,r&&typeof r=="object"&&(r=Rf(e,r),!r)||!e.has(r))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(i of t)if(r=i[0],r&&typeof r=="object"&&(r=Rf(e,r),!r)||!Pi(i[1],e.get(r)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((i=t.byteLength)===e.byteLength)for(;i--&&t.getInt8(i)===e.getInt8(i););return i===-1}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}if(!n||typeof t=="object"){i=0;for(n in t)if(Mf.call(t,n)&&++i&&!Mf.call(e,n)||!(n in e)||!Pi(t[n],e[n]))return!1;return Object.keys(e).length===i}}return t!==t&&e!==e}var ZS=/(%?)(%([sdjo]))/g;function NS(t,e){switch(e){case"s":return t;case"d":case"i":return Number(t);case"j":return JSON.stringify(t);case"o":{if(typeof t=="string")return t;const n=JSON.stringify(t);return n==="{}"||n==="[]"||/^\[object .+?\]$/.test(n)?t:n}}}function Ul(t,...e){if(e.length===0)return t;let n=0,i=t.replace(ZS,(r,s,o,a)=>{const l=e[n],c=NS(l,a);return s?r:(n++,c)});return n<e.length&&(i+=` ${e.slice(n).join(" ")}`),i=i.replace(/%{2,2}/g,"%"),i}var LS=2;function XS(t){if(!t.stack)return;const e=t.stack.split(`
38
+ `);e.splice(1,LS),t.stack=e.join(`
39
+ `)}var VS=class extends Error{constructor(e,...n){super(e),this.message=e,this.name="Invariant Violation",this.message=Ul(e,...n),XS(this)}},Fl=(t,e,...n)=>{if(!t)throw new VS(e,...n)};Fl.as=(t,e,n,...i)=>{if(!e)throw t.prototype.name!=null?new t(Ul(n,i)):t(Ul(n,i))};var Gl=function(t,e){return Gl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Gl(t,e)};function Hl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Gl(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Me=function(){return Me=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Me.apply(this,arguments)};function gt(t,e,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(t,e||[])).next())})}function vt(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function vo(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}var Jl;(function(t){t[t.None=0]="None",t[t.Error=10]="Error",t[t.Warning=20]="Warning",t[t.Info=30]="Info",t[t.Debug=40]="Debug"})(Jl||(Jl={}));var ki=function(t){return"[sandpack-client]: ".concat(t)};function Fn(t,e){return e===void 0&&(e="Value is nullish"),Fl(t!=null,ki(e)),t}var WS='"dependencies" was not specified - provide either a package.json or a "dependencies" value',_f='"entry" was not specified - provide either a package.json with the "main" field or an "entry" value';function If(t,e,n){return t===void 0&&(t={}),e===void 0&&(e={}),n===void 0&&(n="/index.js"),JSON.stringify({name:"sandpack-project",main:n,dependencies:t,devDependencies:e},null,2)}function Zf(t,e,n,i){var r,s,o=$i(t),a=o["/package.json"];if(!a)return Fn(e,WS),Fn(i,_f),o["/package.json"]={code:If(e,n,i)},o;if(a){var l=JSON.parse(a.code);Fn(!(!e&&!l.dependencies),_f),e&&(l.dependencies=Me(Me({},(r=l.dependencies)!==null&&r!==void 0?r:{}),e??{})),n&&(l.devDependencies=Me(Me({},(s=l.devDependencies)!==null&&s!==void 0?s:{}),n??{})),i&&(l.main=i),o["/package.json"]={code:JSON.stringify(l,null,2)}}return o}function Nf(t){var e;if(t.title==="SyntaxError"){var n=t.title,i=t.path,r=t.message,s=t.line,o=t.column;return{title:n,path:i,message:r,line:s,column:o}}var a=qS((e=t.payload)===null||e===void 0?void 0:e.frames);if(!a)return{message:t.message};var l=YS(a),c=zS(a),u=BS(a._originalFileName,t.message,c,l);return{message:u,title:t.title,path:a._originalFileName,line:a._originalLineNumber,column:a._originalColumnNumber}}function qS(t){if(t)return t.find(function(e){return!!e._originalFileName})}function zS(t){return t?" (".concat(t._originalLineNumber,":").concat(t._originalColumnNumber,")"):""}function YS(t){var e=t._originalScriptCode[t._originalScriptCode.length-1],n=e.lineNumber.toString().length,i=2,r=3,s=i+n+r+t._originalColumnNumber;return t._originalScriptCode.reduce(function(o,a){var l=a.highlight?">":" ",c=a.lineNumber.toString().length===n?"".concat(a.lineNumber):" ".concat(a.lineNumber),u=a.highlight?`
40
+ `+" ".repeat(s)+"^":"";return o+`
41
+ `+l+" "+c+" | "+a.content+u},"")}function BS(t,e,n,i){return"".concat(t,": ").concat(e).concat(n,`
42
+ `).concat(i)}var $i=function(t){return typeof t=="string"?t.startsWith("/")?t:"/".concat(t):Array.isArray(t)?t.map(function(e){return e.startsWith("/")?e:"/".concat(e)}):typeof t=="object"&&t!==null?Object.entries(t).reduce(function(e,n){var i=n[0],r=n[1],s=i.startsWith("/")?i:"/".concat(i);return e[s]=r,e},{}):null};function US(t,e,n){var i;return n===void 0&&(n={}),gt(this,void 0,void 0,function(){var r,s,o;return vt(this,function(a){switch(a.label){case 0:switch(r=(i=e.template)!==null&&i!==void 0?i:"parcel",o=r,o){case"node":return[3,1];case"static":return[3,3]}return[3,5];case 1:return[4,Promise.resolve().then(()=>RN).then(function(l){return l.SandpackNode})];case 2:return s=a.sent(),[3,7];case 3:return[4,Promise.resolve().then(()=>tL).then(function(l){return l.SandpackStatic})];case 4:return s=a.sent(),[3,7];case 5:return[4,Promise.resolve().then(()=>lL).then(function(l){return l.SandpackRuntime})];case 6:s=a.sent(),a.label=7;case 7:return[2,new s(t,e,n)]}})})}class fe{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,i){[e,n]=Ji(this,e,n);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(n,this.length,r,1),an.from(r,this.length-(n-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=Ji(this,e,n);let i=[];return this.decompose(e,n,i,0),an.from(i,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new Fr(this),s=new Fr(e);for(let o=n,a=n;;){if(r.next(o),s.next(o),o=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new Fr(this,e)}iterRange(e,n=this.length){return new Xf(this,e,n)}iterLines(e,n){let i;if(e==null)i=this.iter();else{n==null&&(n=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Vf(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?fe.empty:e.length<=32?new Re(e):an.from(Re.split(e,[]))}}class Re extends fe{constructor(e,n=FS(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,i,r){for(let s=0;;s++){let o=this.text[s],a=r+o.length;if((n?i:a)>=e)return new GS(r,a,i,o);r=a+1,i++}}decompose(e,n,i,r){let s=e<=0&&n>=this.length?this:new Re(Lf(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(r&1){let o=i.pop(),a=Oo(s.text,o.text.slice(),0,s.length);if(a.length<=32)i.push(new Re(a,o.length+s.length));else{let l=a.length>>1;i.push(new Re(a.slice(0,l)),new Re(a.slice(l)))}}else i.push(s)}replace(e,n,i){if(!(i instanceof Re))return super.replace(e,n,i);[e,n]=Ji(this,e,n);let r=Oo(this.text,Oo(i.text,Lf(this.text,0,e)),n),s=this.length+i.length-(n-e);return r.length<=32?new Re(r,s):an.from(Re.split(r,[]),s)}sliceString(e,n=this.length,i=`
43
+ `){[e,n]=Ji(this,e,n);let r="";for(let s=0,o=0;s<=n&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>e&&o&&(r+=i),e<l&&n>s&&(r+=a.slice(Math.max(0,e-s),n-s)),s=l+1}return r}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let i=[],r=-1;for(let s of e)i.push(s),r+=s.length+1,i.length==32&&(n.push(new Re(i,r)),i=[],r=-1);return r>-1&&n.push(new Re(i,r)),n}}class an extends fe{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,n,i,r){for(let s=0;;s++){let o=this.children[s],a=r+o.length,l=i+o.lines-1;if((n?l:a)>=e)return o.lineInner(e,n,i,r);r=a+1,i=l+1}}decompose(e,n,i,r){for(let s=0,o=0;o<=n&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(e<=l&&n>=o){let c=r&((o<=e?1:0)|(l>=n?2:0));o>=e&&l<=n&&!c?i.push(a):a.decompose(e-o,n-o,i,c)}o=l+1}}replace(e,n,i){if([e,n]=Ji(this,e,n),i.lines<this.lines)for(let r=0,s=0;r<this.children.length;r++){let o=this.children[r],a=s+o.length;if(e>=s&&n<=a){let l=o.replace(e-s,n-s,i),c=this.lines-o.lines+l.lines;if(l.lines<c>>5-1&&l.lines>c>>5+1){let u=this.children.slice();return u[r]=l,new an(u,this.length-(n-e)+i.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,n,i)}sliceString(e,n=this.length,i=`
44
+ `){[e,n]=Ji(this,e,n);let r="";for(let s=0,o=0;s<this.children.length&&o<=n;s++){let a=this.children[s],l=o+a.length;o>e&&s&&(r+=i),e<l&&n>o&&(r+=a.sliceString(e-o,n-o,i)),o=l+1}return r}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof an))return 0;let i=0,[r,s,o,a]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=n,s+=n){if(r==o||s==a)return i;let l=this.children[r],c=e.children[s];if(l!=c)return i+l.scanIdentical(c,n);i+=l.length+1}}static from(e,n=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let f of e)i+=f.lines;if(i<32){let f=[];for(let h of e)h.flatten(f);return new Re(f,n)}let r=Math.max(32,i>>5),s=r<<1,o=r>>1,a=[],l=0,c=-1,u=[];function d(f){let h;if(f.lines>s&&f instanceof an)for(let m of f.children)d(m);else f.lines>o&&(l>o||!l)?(p(),a.push(f)):f instanceof Re&&l&&(h=u[u.length-1])instanceof Re&&f.lines+h.lines<=32?(l+=f.lines,c+=f.length+1,u[u.length-1]=new Re(h.text.concat(f.text),h.length+1+f.length)):(l+f.lines>r&&p(),l+=f.lines,c+=f.length+1,u.push(f))}function p(){l!=0&&(a.push(u.length==1?u[0]:an.from(u,c)),c=-1,l=u.length=0)}for(let f of e)d(f);return p(),a.length==1?a[0]:new an(a,n)}}fe.empty=new Re([""],0);function FS(t){let e=-1;for(let n of t)e+=n.length+1;return e}function Oo(t,e,n=0,i=1e9){for(let r=0,s=0,o=!0;s<t.length&&r<=i;s++){let a=t[s],l=r+a.length;l>=n&&(l>i&&(a=a.slice(0,i-r)),r<n&&(a=a.slice(n-r)),o?(e[e.length-1]+=a,o=!1):e.push(a)),r=l+1}return e}function Lf(t,e,n){return Oo(t,[""],e,n)}class Fr{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof Re?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],s=this.offsets[i],o=s>>1,a=r instanceof Re?r.text.length:r.children.length;if(o==(n>0?a:0)){if(i==0)return this.done=!0,this.value="",this;n>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(n>0?0:1)){if(this.offsets[i]+=n,e==0)return this.lineBreak=!0,this.value=`
45
+ `,this;e--}else if(r instanceof Re){let l=r.text[o+(n<0?-1:0)];if(this.offsets[i]+=n,l.length>Math.max(0,e))return this.value=e==0?l:n>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=r.children[o+(n<0?-1:0)];e>l.length?(e-=l.length,this.offsets[i]+=n):(n<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Re?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Xf{constructor(e,n,i){this.value="",this.done=!1,this.cursor=new Fr(e,n>i?-1:1),this.pos=n>i?e.length:0,this.from=Math.min(n,i),this.to=Math.max(n,i)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let i=n<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*n,this.value=r.length<=i?r:n<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Vf{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:i,value:r}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(fe.prototype[Symbol.iterator]=function(){return this.iter()},Fr.prototype[Symbol.iterator]=Xf.prototype[Symbol.iterator]=Vf.prototype[Symbol.iterator]=function(){return this});class GS{constructor(e,n,i,r){this.from=e,this.to=n,this.number=i,this.text=r}get length(){return this.to-this.from}}function Ji(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}let Ki="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,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f(t){return t>=127462&&t<=127487}const qf=8205;function ct(t,e,n=!0,i=!0){return(n?zf:JS)(t,e,i)}function zf(t,e,n){if(e==t.length)return e;e&&Yf(t.charCodeAt(e))&&Bf(t.charCodeAt(e-1))&&e--;let i=ln(t,e);for(e+=er(i);e<t.length;){let r=ln(t,e);if(i==qf||r==qf||n&&HS(r))e+=er(r),i=r;else if(Wf(r)){let s=0,o=e-2;for(;o>=0&&Wf(ln(t,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function JS(t,e,n){for(;e>0;){let i=zf(t,e-2,n);if(i<e)return i;e--}return 0}function Yf(t){return t>=56320&&t<57344}function Bf(t){return t>=55296&&t<56320}function ln(t,e){let n=t.charCodeAt(e);if(!Bf(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return Yf(i)?(n-55296<<10)+(i-56320)+65536:n}function KS(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function er(t){return t<65536?1:2}const Kl=/\r\n?|\n/;var et=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(et||(et={}));class cn{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let i=this.sections[n+1];e+=i<0?this.sections[n]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,i=0,r=0;n<this.sections.length;){let s=this.sections[n++],o=this.sections[n++];o<0?(e(i,r,s),r+=s):r+=o,i+=s}}iterChangedRanges(e,n=!1){ec(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let i=this.sections[n++],r=this.sections[n++];r<0?e.push(i,r):e.push(r,i)}return new cn(e)}composeDesc(e){return this.empty?e:e.empty?this:Uf(this,e)}mapDesc(e,n=!1){return e.empty?this:tc(this,e,n)}mapPos(e,n=-1,i=et.Simple){let r=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],c=r+a;if(l<0){if(c>e)return s+(e-r);s+=a}else{if(i!=et.Simple&&c>=e&&(i==et.TrackDel&&r<e&&c>e||i==et.TrackBefore&&r<e||i==et.TrackAfter&&c>e))return null;if(c>e||c==e&&n<0&&!a)return e==r||n<0?s:s+l;s+=l}r=c}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,n=e){for(let i=0,r=0;i<this.sections.length&&r<=n;){let s=this.sections[i++],o=this.sections[i++],a=r+s;if(o>=0&&r<=n&&a>=e)return r<e&&a>n?"cover":!0;r=a}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let i=this.sections[n++],r=this.sections[n++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new cn(e)}static create(e){return new cn(e)}}class We extends cn{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return ec(this,(n,i,r,s,o)=>e=e.replace(r,r+(i-n),o),!1),e}mapDesc(e,n=!1){return tc(this,e,n,!0)}invert(e){let n=this.sections.slice(),i=[];for(let r=0,s=0;r<n.length;r+=2){let o=n[r],a=n[r+1];if(a>=0){n[r]=a,n[r+1]=o;let l=r>>1;for(;i.length<l;)i.push(fe.empty);i.push(o?e.slice(s,s+o):fe.empty)}s+=o}return new We(n,i)}compose(e){return this.empty?e:e.empty?this:Uf(this,e,!0)}map(e,n=!1){return e.empty?this:tc(this,e,n,!0)}iterChanges(e,n=!1){ec(this,e,n)}get desc(){return cn.create(this.sections)}filter(e){let n=[],i=[],r=[],s=new Gr(this);e:for(let o=0,a=0;;){let l=o==e.length?1e9:e[o++];for(;a<l||a==l&&s.len==0;){if(s.done)break e;let u=Math.min(s.len,l-a);tt(r,u,-1);let d=s.ins==-1?-1:s.off==0?s.ins:0;tt(n,u,d),d>0&&Gn(i,n,s.text),s.forward(u),a+=u}let c=e[o++];for(;a<c;){if(s.done)break e;let u=Math.min(s.len,c-a);tt(n,u,-1),tt(r,u,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(u),a+=u}}return{changes:new We(n,i),filtered:cn.create(r)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let i=this.sections[n],r=this.sections[n+1];r<0?e.push(i):r==0?e.push([i]):e.push([i].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,i){let r=[],s=[],o=0,a=null;function l(u=!1){if(!u&&!r.length)return;o<n&&tt(r,n-o,-1);let d=new We(r,s);a=a?a.compose(d.map(a)):d,r=[],s=[],o=0}function c(u){if(Array.isArray(u))for(let d of u)c(d);else if(u instanceof We){if(u.length!=n)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${n})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:d,to:p=d,insert:f}=u;if(d>p||d<0||p>n)throw new RangeError(`Invalid change range ${d} to ${p} (in doc of length ${n})`);let h=f?typeof f=="string"?fe.of(f.split(i||Kl)):f:fe.empty,m=h.length;if(d==p&&m==0)return;d<o&&l(),d>o&&tt(r,d-o,-1),tt(r,p-d,m),Gn(s,r,h),o=p}}return c(e),l(!a),a}static empty(e){return new We(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],i=[];for(let r=0;r<e.length;r++){let s=e[r];if(typeof s=="number")n.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)n.push(s[0],0);else{for(;i.length<r;)i.push(fe.empty);i[r]=fe.of(s.slice(1)),n.push(s[0],i[r].length)}}}return new We(n,i)}static createSet(e,n){return new We(e,n)}}function tt(t,e,n,i=!1){if(e==0&&n<=0)return;let r=t.length-2;r>=0&&n<=0&&n==t[r+1]?t[r]+=e:e==0&&t[r]==0?t[r+1]+=n:i?(t[r]+=e,t[r+1]+=n):t.push(e,n)}function Gn(t,e,n){if(n.length==0)return;let i=e.length-2>>1;if(i<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<i;)t.push(fe.empty);t.push(n)}}function ec(t,e,n){let i=t.inserted;for(let r=0,s=0,o=0;o<t.sections.length;){let a=t.sections[o++],l=t.sections[o++];if(l<0)r+=a,s+=a;else{let c=r,u=s,d=fe.empty;for(;c+=a,u+=l,l&&i&&(d=d.append(i[o-2>>1])),!(n||o==t.sections.length||t.sections[o+1]<0);)a=t.sections[o++],l=t.sections[o++];e(r,c,s,u,d),r=c,s=u}}}function tc(t,e,n,i=!1){let r=[],s=i?[]:null,o=new Gr(t),a=new Gr(e);for(let l=-1;;)if(o.ins==-1&&a.ins==-1){let c=Math.min(o.len,a.len);tt(r,c,-1),o.forward(c),a.forward(c)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!n))){let c=a.len;for(tt(r,a.ins,-1);c;){let u=Math.min(o.len,c);o.ins>=0&&l<o.i&&o.len<=u&&(tt(r,0,o.ins),s&&Gn(s,r,o.text),l=o.i),o.forward(u),c-=u}a.next()}else if(o.ins>=0){let c=0,u=o.len;for(;u;)if(a.ins==-1){let d=Math.min(u,a.len);c+=d,u-=d,a.forward(d)}else if(a.ins==0&&a.len<u)u-=a.len,a.next();else break;tt(r,c,l<o.i?o.ins:0),s&&l<o.i&&Gn(s,r,o.text),l=o.i,o.forward(o.len-u)}else{if(o.done&&a.done)return s?We.createSet(r,s):cn.create(r);throw new Error("Mismatched change set lengths")}}function Uf(t,e,n=!1){let i=[],r=n?[]:null,s=new Gr(t),o=new Gr(e);for(let a=!1;;){if(s.done&&o.done)return r?We.createSet(i,r):cn.create(i);if(s.ins==0)tt(i,s.len,0,a),s.next();else if(o.len==0&&!o.done)tt(i,0,o.ins,a),r&&Gn(r,i,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,o.len),c=i.length;if(s.ins==-1){let u=o.ins==-1?-1:o.off?0:o.ins;tt(i,l,u,a),r&&u&&Gn(r,i,o.text)}else o.ins==-1?(tt(i,s.off?0:s.len,l,a),r&&Gn(r,i,s.textBit(l))):(tt(i,s.off?0:s.len,o.off?0:o.ins,a),r&&!o.off&&Gn(r,i,o.text));a=(s.ins>l||o.ins>=0&&o.len>l)&&(a||i.length>c),s.forward2(l),o.forward(l)}}}}class Gr{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?fe.empty:e[n]}textBit(e){let{inserted:n}=this.set,i=this.i-2>>1;return i>=n.length&&!e?fe.empty:n[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Ti{constructor(e,n,i){this.from=e,this.to=n,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,n):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new Ti(i,r,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return R.range(e,n);let i=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return R.range(this.anchor,i)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return R.range(e.anchor,e.head)}static create(e,n,i){return new Ti(e,n,i)}}class R{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:R.create(this.ranges.map(i=>i.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new R([this.main],0)}addRange(e,n=!0){return R.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let i=this.ranges.slice();return i[n]=e,R.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new R(e.ranges.map(n=>Ti.fromJSON(n)),e.main)}static single(e,n=e){return new R([R.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;r<e.length;r++){let s=e[r];if(s.empty?s.from<=i:s.from<i)return R.normalized(e.slice(),n);i=s.to}return new R(e,n)}static cursor(e,n=0,i,r){return Ti.create(e,e,(n==0?0:n<0?8:16)|(i==null?7:Math.min(6,i))|(r??16777215)<<6)}static range(e,n,i,r){let s=(i??16777215)<<6|(r==null?7:Math.min(6,r));return n<e?Ti.create(n,e,48|s):Ti.create(e,n,(n>e?8:0)|s)}static normalized(e,n=0){let i=e[n];e.sort((r,s)=>r.from-s.from),n=e.indexOf(i);for(let r=1;r<e.length;r++){let s=e[r],o=e[r-1];if(s.empty?s.from<=o.to:s.from<o.to){let a=o.from,l=Math.max(s.to,o.to);r<=n&&n--,e.splice(--r,2,s.anchor>s.head?R.range(l,a):R.range(a,l))}}return new R(e,n)}}function Ff(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let nc=0;class te{constructor(e,n,i,r,s){this.combine=e,this.compareInput=n,this.compare=i,this.isStatic=r,this.id=nc++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new te(e.combine||(n=>n),e.compareInput||((n,i)=>n===i),e.compare||(e.combine?(n,i)=>n===i:ic),!!e.static,e.enables)}of(e){return new xo([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new xo(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new xo(e,this,2,n)}from(e,n){return n||(n=i=>i),this.compute([e],i=>n(i.field(e)))}}function ic(t,e){return t==e||t.length==e.length&&t.every((n,i)=>n===e[i])}class xo{constructor(e,n,i,r){this.dependencies=e,this.facet=n,this.type=i,this.value=r,this.id=nc++}dynamicSlot(e){var n;let i=this.value,r=this.facet.compareInput,s=this.id,o=e[s]>>1,a=this.type==2,l=!1,c=!1,u=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?c=!0:((n=e[d.id])!==null&&n!==void 0?n:1)&1||u.push(e[d.id]);return{create(d){return d.values[o]=i(d),1},update(d,p){if(l&&p.docChanged||c&&(p.docChanged||p.selection)||rc(d,u)){let f=i(d);if(a?!Gf(f,d.values[o],r):!r(f,d.values[o]))return d.values[o]=f,1}return 0},reconfigure:(d,p)=>{let f,h=p.config.address[s];if(h!=null){let m=So(p,h);if(this.dependencies.every(g=>g instanceof te?p.facet(g)===d.facet(g):g instanceof Ut?p.field(g,!1)==d.field(g,!1):!0)||(a?Gf(f=i(d),m,r):r(f=i(d),m)))return d.values[o]=m,0}else f=i(d);return d.values[o]=f,1}}}}function Gf(t,e,n){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!n(t[i],e[i]))return!1;return!0}function rc(t,e){let n=!1;for(let i of e)Jr(t,i)&1&&(n=!0);return n}function eP(t,e,n){let i=n.map(l=>t[l.id]),r=n.map(l=>l.type),s=i.filter(l=>!(l&1)),o=t[e.id]>>1;function a(l){let c=[];for(let u=0;u<i.length;u++){let d=So(l,i[u]);if(r[u]==2)for(let p of d)c.push(p);else c.push(d)}return e.combine(c)}return{create(l){for(let c of i)Jr(l,c);return l.values[o]=a(l),1},update(l,c){if(!rc(l,s))return 0;let u=a(l);return e.compare(u,l.values[o])?0:(l.values[o]=u,1)},reconfigure(l,c){let u=rc(l,i),d=c.config.facets[e.id],p=c.facet(e);if(d&&!u&&ic(n,d))return l.values[o]=p,0;let f=a(l);return e.compare(f,p)?(l.values[o]=p,0):(l.values[o]=f,1)}}}const Hf=te.define({static:!0});class Ut{constructor(e,n,i,r,s){this.id=e,this.createF=n,this.updateF=i,this.compareF=r,this.spec=s,this.provides=void 0}static define(e){let n=new Ut(nc++,e.create,e.update,e.compare||((i,r)=>i===r),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(Hf).find(i=>i.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:i=>(i.values[n]=this.create(i),1),update:(i,r)=>{let s=i.values[n],o=this.updateF(s,r);return this.compareF(s,o)?0:(i.values[n]=o,1)},reconfigure:(i,r)=>r.config.address[this.id]!=null?(i.values[n]=r.field(this),0):(i.values[n]=this.create(i),1)}}init(e){return[this,Hf.of({field:this,create:e})]}get extension(){return this}}const Qi={lowest:4,low:3,default:2,high:1,highest:0};function Hr(t){return e=>new Jf(e,t)}const bo={highest:Hr(Qi.highest),high:Hr(Qi.high),default:Hr(Qi.default),low:Hr(Qi.low),lowest:Hr(Qi.lowest)};class Jf{constructor(e,n){this.inner=e,this.prec=n}}class yo{of(e){return new sc(this,e)}reconfigure(e){return yo.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class sc{constructor(e,n){this.compartment=e,this.inner=n}}class wo{constructor(e,n,i,r,s,o){for(this.base=e,this.compartments=n,this.dynamicSlots=i,this.address=r,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,i){let r=[],s=Object.create(null),o=new Map;for(let p of tP(e,n,o))p instanceof Ut?r.push(p):(s[p.facet.id]||(s[p.facet.id]=[])).push(p);let a=Object.create(null),l=[],c=[];for(let p of r)a[p.id]=c.length<<1,c.push(f=>p.slot(f));let u=i==null?void 0:i.config.facets;for(let p in s){let f=s[p],h=f[0].facet,m=u&&u[p]||[];if(f.every(g=>g.type==0))if(a[h.id]=l.length<<1|1,ic(m,f))l.push(i.facet(h));else{let g=h.combine(f.map(O=>O.value));l.push(i&&h.compare(g,i.facet(h))?i.facet(h):g)}else{for(let g of f)g.type==0?(a[g.id]=l.length<<1|1,l.push(g.value)):(a[g.id]=c.length<<1,c.push(O=>g.dynamicSlot(O)));a[h.id]=c.length<<1,c.push(g=>eP(g,h,f))}}let d=c.map(p=>p(a));return new wo(e,o,d,a,l,s)}}function tP(t,e,n){let i=[[],[],[],[],[]],r=new Map;function s(o,a){let l=r.get(o);if(l!=null){if(l<=a)return;let c=i[l].indexOf(o);c>-1&&i[l].splice(c,1),o instanceof sc&&n.delete(o.compartment)}if(r.set(o,a),Array.isArray(o))for(let c of o)s(c,a);else if(o instanceof sc){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;n.set(o.compartment,c),s(c,a)}else if(o instanceof Jf)s(o.inner,o.prec);else if(o instanceof Ut)i[a].push(o),o.provides&&s(o.provides,a);else if(o instanceof xo)i[a].push(o),o.facet.extensions&&s(o.facet.extensions,Qi.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,a)}}return s(t,Qi.default),i.reduce((o,a)=>o.concat(a))}function Jr(t,e){if(e&1)return 2;let n=e>>1,i=t.status[n];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;t.status[n]=4;let r=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|r}function So(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const Kf=te.define(),oc=te.define({combine:t=>t.some(e=>e),static:!0}),eh=te.define({combine:t=>t.length?t[0]:void 0,static:!0}),th=te.define(),nh=te.define(),ih=te.define(),rh=te.define({combine:t=>t.length?t[0]:!1});class Ft{constructor(e,n){this.type=e,this.value=n}static define(){return new nP}}class nP{of(e){return new Ft(this,e)}}class iP{constructor(e){this.map=e}of(e){return new Te(this,e)}}class Te{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Te(this.type,n)}is(e){return this.type==e}static define(e={}){return new iP(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let i=[];for(let r of e){let s=r.map(n);s&&i.push(s)}return i}}Te.reconfigure=Te.define(),Te.appendConfig=Te.define();class Le{constructor(e,n,i,r,s,o){this.startState=e,this.changes=n,this.selection=i,this.effects=r,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Ff(i,n.newLength),s.some(a=>a.type==Le.time)||(this.annotations=s.concat(Le.time.of(Date.now())))}static create(e,n,i,r,s,o){return new Le(e,n,i,r,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(Le.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}Le.time=Ft.define(),Le.userEvent=Ft.define(),Le.addToHistory=Ft.define(),Le.remote=Ft.define();function rP(t,e){let n=[];for(let i=0,r=0;;){let s,o;if(i<t.length&&(r==e.length||e[r]>=t[i]))s=t[i++],o=t[i++];else if(r<e.length)s=e[r++],o=e[r++];else return n;!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function sh(t,e,n){var i;let r,s,o;return n?(r=e.changes,s=We.empty(e.changes.length),o=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(s):(i=t.selection)===null||i===void 0?void 0:i.map(r),effects:Te.mapEffects(t.effects,r).concat(Te.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function ac(t,e,n){let i=e.selection,r=tr(e.annotations);return e.userEvent&&(r=r.concat(Le.userEvent.of(e.userEvent))),{changes:e.changes instanceof We?e.changes:We.of(e.changes||[],n,t.facet(eh)),selection:i&&(i instanceof R?i:R.single(i.anchor,i.head)),effects:tr(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function oh(t,e,n){let i=ac(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(n=!1);let o=!!e[s].sequential;i=sh(i,ac(t,e[s],o?i.changes.newLength:t.doc.length),o)}let r=Le.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return oP(n?sP(r):r)}function sP(t){let e=t.startState,n=!0;for(let r of e.facet(th)){let s=r(t);if(s===!1){n=!1;break}Array.isArray(s)&&(n=n===!0?s:rP(n,s))}if(n!==!0){let r,s;if(n===!1)s=t.changes.invertedDesc,r=We.empty(e.doc.length);else{let o=t.changes.filter(n);r=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}t=Le.create(e,r,t.selection&&t.selection.map(s),Te.mapEffects(t.effects,s),t.annotations,t.scrollIntoView)}let i=e.facet(nh);for(let r=i.length-1;r>=0;r--){let s=i[r](t);s instanceof Le?t=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Le?t=s[0]:t=oh(e,tr(s),!1)}return t}function oP(t){let e=t.startState,n=e.facet(ih),i=t;for(let r=n.length-1;r>=0;r--){let s=n[r](t);s&&Object.keys(s).length&&(i=sh(i,ac(e,s,t.changes.newLength),!0))}return i==t?t:Le.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}const aP=[];function tr(t){return t==null?aP:Array.isArray(t)?t:[t]}var jt=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(jt||(jt={}));const lP=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let lc;try{lc=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function cP(t){if(lc)return lc.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||lP.test(n)))return!0}return!1}function uP(t){return e=>{if(!/\S/.test(e))return jt.Space;if(cP(e))return jt.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return jt.Word;return jt.Other}}class ve{constructor(e,n,i,r,s,o){this.config=e,this.doc=n,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)Jr(this,a<<1);this.computeSlot=null}field(e,n=!0){let i=this.config.address[e.id];if(i==null){if(n)throw new RangeError("Field is not present in this state");return}return Jr(this,i),So(this,i)}update(...e){return oh(this,e,!0)}applyTransaction(e){let n=this.config,{base:i,compartments:r}=n;for(let a of e.effects)a.is(yo.reconfigure)?(n&&(r=new Map,n.compartments.forEach((l,c)=>r.set(c,l)),n=null),r.set(a.value.compartment,a.value.extension)):a.is(Te.reconfigure)?(n=null,i=a.value):a.is(Te.appendConfig)&&(n=null,i=tr(i).concat(a.value));let s;n?s=e.startState.values.slice():(n=wo.resolve(i,r,this),s=new ve(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let o=e.startState.facet(oc)?e.newSelection:e.newSelection.asSingle();new ve(n,e.newDoc,o,s,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:R.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,i=e(n.ranges[0]),r=this.changes(i.changes),s=[i.range],o=tr(i.effects);for(let a=1;a<n.ranges.length;a++){let l=e(n.ranges[a]),c=this.changes(l.changes),u=c.map(r);for(let p=0;p<a;p++)s[p]=s[p].map(u);let d=r.mapDesc(c,!0);s.push(l.range.map(d)),r=r.compose(u),o=Te.mapEffects(o,u).concat(Te.mapEffects(tr(l.effects),d))}return{changes:r,selection:R.create(s,n.mainIndex),effects:o}}changes(e=[]){return e instanceof We?e:We.of(e,this.doc.length,this.facet(ve.lineSeparator))}toText(e){return fe.of(e.split(this.facet(ve.lineSeparator)||Kl))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(Jr(this,n),So(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let r=e[i];r instanceof Ut&&this.config.address[r.id]!=null&&(n[i]=r.spec.toJSON(this.field(e[i]),this))}return n}static fromJSON(e,n={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(i){for(let s in i)if(Object.prototype.hasOwnProperty.call(e,s)){let o=i[s],a=e[s];r.push(o.init(l=>o.spec.fromJSON(a,l)))}}return ve.create({doc:e.doc,selection:R.fromJSON(e.selection),extensions:n.extensions?r.concat([n.extensions]):r})}static create(e={}){let n=wo.resolve(e.extensions||[],new Map),i=e.doc instanceof fe?e.doc:fe.of((e.doc||"").split(n.staticFacet(ve.lineSeparator)||Kl)),r=e.selection?e.selection instanceof R?e.selection:R.single(e.selection.anchor,e.selection.head):R.single(0);return Ff(r,i.length),n.staticFacet(oc)||(r=r.asSingle()),new ve(n,i,r,n.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(ve.tabSize)}get lineBreak(){return this.facet(ve.lineSeparator)||`
46
+ `}get readOnly(){return this.facet(rh)}phrase(e,...n){for(let i of this.facet(ve.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>n.length?i:n[s-1]})),e}languageDataAt(e,n,i=-1){let r=[];for(let s of this.facet(Kf))for(let o of s(this,n,i))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return uP(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:i,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-i,a=e-i;for(;o>0;){let l=ct(n,o,!1);if(s(n.slice(l,o))!=jt.Word)break;o=l}for(;a<r;){let l=ct(n,a);if(s(n.slice(a,l))!=jt.Word)break;a=l}return o==a?null:R.range(o+i,a+i)}}ve.allowMultipleSelections=oc,ve.tabSize=te.define({combine:t=>t.length?t[0]:4}),ve.lineSeparator=eh,ve.readOnly=rh,ve.phrases=te.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every(r=>t[r]==e[r])}}),ve.languageData=Kf,ve.changeFilter=th,ve.transactionFilter=nh,ve.transactionExtender=ih,yo.reconfigure=Te.define();function Po(t,e,n={}){let i={};for(let r of t)for(let s of Object.keys(r)){let o=r[s],a=i[s];if(a===void 0)i[s]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(n,s))i[s]=n[s](a,o);else throw new Error("Config merge conflict for field "+s)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Ci{eq(e){return this==e}range(e,n=e){return cc.create(e,n,this)}}Ci.prototype.startSide=Ci.prototype.endSide=0,Ci.prototype.point=!1,Ci.prototype.mapMode=et.TrackDel;let cc=class t1{constructor(e,n,i){this.from=e,this.to=n,this.value=i}static create(e,n,i){return new t1(e,n,i)}};function uc(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class dc{constructor(e,n,i,r){this.from=e,this.to=n,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,n,i,r=0){let s=i?this.to:this.from;for(let o=r,a=s.length;;){if(o==a)return o;let l=o+a>>1,c=s[l]-e||(i?this.value[l].endSide:this.value[l].startSide)-n;if(l==o)return c>=0?o:a;c>=0?a=l:o=l+1}}between(e,n,i,r){for(let s=this.findIndex(n,-1e9,!0),o=this.findIndex(i,1e9,!1,s);s<o;s++)if(r(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,n){let i=[],r=[],s=[],o=-1,a=-1;for(let l=0;l<this.value.length;l++){let c=this.value[l],u=this.from[l]+e,d=this.to[l]+e,p,f;if(u==d){let h=n.mapPos(u,c.startSide,c.mapMode);if(h==null||(p=f=h,c.startSide!=c.endSide&&(f=n.mapPos(u,c.endSide),f<p)))continue}else if(p=n.mapPos(u,c.startSide),f=n.mapPos(d,c.endSide),p>f||p==f&&c.startSide>0&&c.endSide<=0)continue;(f-p||c.endSide-c.startSide)<0||(o<0&&(o=p),c.point&&(a=Math.max(a,f-p)),i.push(c),r.push(p-o),s.push(f-o))}return{mapped:i.length?new dc(r,s,i,a):null,pos:o}}}class Oe{constructor(e,n,i,r){this.chunkPos=e,this.chunk=n,this.nextLayer=i,this.maxPoint=r}static create(e,n,i,r){return new Oe(e,n,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:i=!1,filterFrom:r=0,filterTo:s=this.length}=e,o=e.filter;if(n.length==0&&!o)return this;if(i&&(n=n.slice().sort(uc)),this.isEmpty)return n.length?Oe.of(n):this;let a=new lh(this,null,-1).goto(0),l=0,c=[],u=new nr;for(;a.value||l<n.length;)if(l<n.length&&(a.from-n[l].from||a.startSide-n[l].value.startSide)>=0){let d=n[l++];u.addInner(d.from,d.to,d.value)||c.push(d)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(a.chunkIndex)<n[l].from)&&(!o||r>this.chunkEnd(a.chunkIndex)||s<this.chunkPos[a.chunkIndex])&&u.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||r>a.to||s<a.from||o(a.from,a.to,a.value))&&(u.addInner(a.from,a.to,a.value)||c.push(cc.create(a.from,a.to,a.value))),a.next());return u.finishInner(this.nextLayer.isEmpty&&!c.length?Oe.empty:this.nextLayer.update({add:c,filter:o,filterFrom:r,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],i=[],r=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],l=this.chunk[o],c=e.touchesRange(a,a+l.length);if(c===!1)r=Math.max(r,l.maxPoint),n.push(l),i.push(e.mapPos(a));else if(c===!0){let{mapped:u,pos:d}=l.map(a,e);u&&(r=Math.max(r,u.maxPoint),n.push(u),i.push(d))}}let s=this.nextLayer.map(e);return n.length==0?s:new Oe(i,n,s||Oe.empty,r)}between(e,n,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r];if(n>=s&&e<=s+o.length&&o.between(s,e-s,n-s,i)===!1)return}this.nextLayer.between(e,n,i)}}iter(e=0){return Kr.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Kr.from(e).goto(n)}static compare(e,n,i,r,s=-1){let o=e.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=s),a=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=s),l=ah(o,a,i),c=new es(o,l,s),u=new es(a,l,s);i.iterGaps((d,p,f)=>ch(c,d,u,p,f,r)),i.empty&&i.length==0&&ch(c,0,u,0,0,r)}static eq(e,n,i=0,r){r==null&&(r=1e9-1);let s=e.filter(u=>!u.isEmpty&&n.indexOf(u)<0),o=n.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let a=ah(s,o),l=new es(s,a,0).goto(i),c=new es(o,a,0).goto(i);for(;;){if(l.to!=c.to||!fc(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}static spans(e,n,i,r,s=-1){let o=new es(e,null,s).goto(n),a=n,l=o.openStart;for(;;){let c=Math.min(o.to,i);if(o.point){let u=o.activeForPoint(o.to),d=o.pointFrom<n?u.length+1:o.point.startSide<0?u.length:Math.min(u.length,l);r.point(a,c,o.point,u,d,o.pointRank),l=Math.min(o.openEnd(c),u.length)}else c>a&&(r.span(a,c,o.active,l),l=o.openEnd(c));if(o.to>i)return l+(o.point&&o.to>i?1:0);a=o.to,o.next()}}static of(e,n=!1){let i=new nr;for(let r of e instanceof cc?[e]:n?dP(e):e)i.add(r.from,r.to,r.value);return i.finish()}static join(e){if(!e.length)return Oe.empty;let n=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let r=e[i];r!=Oe.empty;r=r.nextLayer)n=new Oe(r.chunkPos,r.chunk,n,Math.max(r.maxPoint,n.maxPoint));return n}}Oe.empty=new Oe([],[],null,-1);function dP(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let i=t[n];if(uc(e,i)>0)return t.slice().sort(uc);e=i}return t}Oe.empty.nextLayer=Oe.empty;class nr{finishChunk(e){this.chunks.push(new dc(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,i){this.addInner(e,n,i)||(this.nextLayer||(this.nextLayer=new nr)).add(e,n,i)}addInner(e,n,i){let r=e-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=n,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let i=n.value.length-1;return this.last=n.value[i],this.lastFrom=n.from[i]+e,this.lastTo=n.to[i]+e,!0}finish(){return this.finishInner(Oe.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=Oe.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function ah(t,e,n){let i=new Map;for(let s of t)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&i.set(s.chunk[o],s.chunkPos[o]);let r=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let a=i.get(s.chunk[o]);a!=null&&(n?n.mapPos(a):a)==s.chunkPos[o]&&!(n!=null&&n.touchesRange(a,a+s.chunk[o].length))&&r.add(s.chunk[o])}return r}class lh{constructor(e,n,i,r=0){this.layer=e,this.skip=n,this.minPoint=i,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,i){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!i||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],i=e+n.from[this.rangeIndex];if(this.from=i,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Kr{constructor(e){this.heap=e}static from(e,n=null,i=-1){let r=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=i&&r.push(new lh(o,n,i,s));return r.length==1?r[0]:new Kr(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let i of this.heap)i.goto(e,n);for(let i=this.heap.length>>1;i>=0;i--)pc(this.heap,i);return this.next(),this}forward(e,n){for(let i of this.heap)i.forward(e,n);for(let i=this.heap.length>>1;i>=0;i--)pc(this.heap,i);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),pc(this.heap,0)}}}function pc(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let r=t[i];if(i+1<t.length&&r.compare(t[i+1])>=0&&(r=t[i+1],i++),n.compare(r)<0)break;t[i]=n,t[e]=r,e=i}}class es{constructor(e,n,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Kr.from(e,n,i)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){ko(this.active,e),ko(this.activeTo,e),ko(this.activeRank,e),this.minActive=uh(this.active,this.activeTo)}addActive(e){let n=0,{value:i,to:r,rank:s}=this.cursor;for(;n<this.activeRank.length&&(s-this.activeRank[n]||r-this.activeTo[n])>0;)n++;$o(this.active,n,i),$o(this.activeTo,n,r),$o(this.activeRank,n,s),e&&$o(e,n,this.cursor.from),this.minActive=uh(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&ko(i,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(i),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let r=i.length-1;r>=0&&i[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&n.push(this.active[i]);return n.reverse()}openEnd(e){let n=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)n++;return n}}function ch(t,e,n,i,r,s){t.goto(e),n.goto(i);let o=i+r,a=i,l=i-e;for(;;){let c=t.to+l-n.to||t.endSide-n.endSide,u=c<0?t.to+l:n.to,d=Math.min(u,o);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&fc(t.activeForPoint(t.to),n.activeForPoint(n.to))||s.comparePoint(a,d,t.point,n.point):d>a&&!fc(t.active,n.active)&&s.compareRange(a,d,t.active,n.active),u>o)break;a=u,c<=0&&t.next(),c>=0&&n.next()}}function fc(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function ko(t,e){for(let n=e,i=t.length-1;n<i;n++)t[n]=t[n+1];t.pop()}function $o(t,e,n){for(let i=t.length-1;i>=e;i--)t[i+1]=t[i];t[e]=n}function uh(t,e){let n=-1,i=1e9;for(let r=0;r<e.length;r++)(e[r]-i||t[r].endSide-t[n].endSide)<0&&(n=r,i=e[r]);return n}function ts(t,e,n=t.length){let i=0;for(let r=0;r<n;)t.charCodeAt(r)==9?(i+=e-i%e,r++):(i++,r=ct(t,r));return i}function pP(t,e,n,i){for(let r=0,s=0;;){if(s>=e)return r;if(r==t.length)break;s+=t.charCodeAt(r)==9?n-s%n:1,r=ct(t,r)}return i===!0?-1:t.length}const hc="ͼ",dh=typeof Symbol>"u"?"__"+hc:Symbol.for(hc),mc=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),ph=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Hn{constructor(e,n){this.rules=[];let{finish:i}=n||{};function r(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,a,l,c){let u=[],d=/^@(\w+)\b/.exec(o[0]),p=d&&d[1]=="keyframes";if(d&&a==null)return l.push(o[0]+";");for(let f in a){let h=a[f];if(/&/.test(f))s(f.split(/,\s*/).map(m=>o.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),h,l);else if(h&&typeof h=="object"){if(!d)throw new RangeError("The value of a property ("+f+") should be a primitive value.");s(r(f),h,u,p)}else h!=null&&u.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+h+";")}(u.length||p)&&l.push((i&&!d&&!c?o.map(i):o).join(", ")+" {"+u.join(" ")+"}")}for(let o in e)s(r(o),e[o],this.rules)}getRules(){return this.rules.join(`
47
+ `)}static newName(){let e=ph[dh]||1;return ph[dh]=e+1,hc+e.toString(36)}static mount(e,n,i){let r=e[mc],s=i&&i.nonce;r?s&&r.setNonce(s):r=new fP(e,s),r.mount(Array.isArray(n)?n:[n],e)}}let fh=new Map;class fP{constructor(e,n){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=fh.get(i);if(s)return e[mc]=s;this.sheet=new r.CSSStyleSheet,fh.set(i,this)}else this.styleTag=i.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[mc]=this}mount(e,n){let i=this.sheet,r=0,s=0;for(let o=0;o<e.length;o++){let a=e[o],l=this.modules.indexOf(a);if(l<s&&l>-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,a),i)for(let c=0;c<a.rules.length;c++)i.insertRule(a.rules[c],r++)}else{for(;s<l;)r+=this.modules[s++].rules.length;r+=a.rules.length,s++}}if(i)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{let o="";for(let l=0;l<this.modules.length;l++)o+=this.modules[l].getRules()+`
48
+ `;this.styleTag.textContent=o;let a=n.head||n;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var Jn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ns={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},hP=typeof navigator<"u"&&/Mac/.test(navigator.platform),mP=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Je=0;Je<10;Je++)Jn[48+Je]=Jn[96+Je]=String(Je);for(var Je=1;Je<=24;Je++)Jn[Je+111]="F"+Je;for(var Je=65;Je<=90;Je++)Jn[Je]=String.fromCharCode(Je+32),ns[Je]=String.fromCharCode(Je);for(var gc in Jn)ns.hasOwnProperty(gc)||(ns[gc]=Jn[gc]);function gP(t){var e=hP&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||mP&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?ns:Jn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function To(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function vc(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function vP(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Qo(t,e){if(!e.anchorNode)return!1;try{return vc(t,e.anchorNode)}catch{return!1}}function is(t){return t.nodeType==3?ji(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function rs(t,e,n,i){return n?hh(t,e,n,i,-1)||hh(t,e,n,i,1):!1}function Ei(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function Co(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function hh(t,e,n,i,r){for(;;){if(t==n&&e==i)return!0;if(e==(r<0?0:Dn(t))){if(t.nodeName=="DIV")return!1;let s=t.parentNode;if(!s||s.nodeType!=1)return!1;e=Ei(t)+(r<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=r<0?Dn(t):0}else return!1}}function Dn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Oc(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function OP(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function mh(t,e){let n=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}function xP(t,e,n,i,r,s,o,a){let l=t.ownerDocument,c=l.defaultView||window;for(let u=t,d=!1;u&&!d;)if(u.nodeType==1){let p,f=u==l.body,h=1,m=1;if(f)p=OP(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let v=u.getBoundingClientRect();({scaleX:h,scaleY:m}=mh(u,v)),p={left:v.left,right:v.left+u.clientWidth*h,top:v.top,bottom:v.top+u.clientHeight*m}}let g=0,O=0;if(r=="nearest")e.top<p.top?(O=-(p.top-e.top+o),n>0&&e.bottom>p.bottom+O&&(O=e.bottom-p.bottom+O+o)):e.bottom>p.bottom&&(O=e.bottom-p.bottom+o,n<0&&e.top-O<p.top&&(O=-(p.top+O-e.top+o)));else{let v=e.bottom-e.top,x=p.bottom-p.top;O=(r=="center"&&v<=x?e.top+v/2-x/2:r=="start"||r=="center"&&n<0?e.top-o:e.bottom-x+o)-p.top}if(i=="nearest"?e.left<p.left?(g=-(p.left-e.left+s),n>0&&e.right>p.right+g&&(g=e.right-p.right+g+s)):e.right>p.right&&(g=e.right-p.right+s,n<0&&e.left<p.left+g&&(g=-(p.left+g-e.left+s))):g=(i=="center"?e.left+(e.right-e.left)/2-(p.right-p.left)/2:i=="start"==a?e.left-s:e.right-(p.right-p.left)+s)-p.left,g||O)if(f)c.scrollBy(g,O);else{let v=0,x=0;if(O){let b=u.scrollTop;u.scrollTop+=O/m,x=(u.scrollTop-b)*m}if(g){let b=u.scrollLeft;u.scrollLeft+=g/h,v=(u.scrollLeft-b)*h}e={left:e.left-v,top:e.top-x,right:e.right-v,bottom:e.bottom-x},v&&Math.abs(v-g)<1&&(i="nearest"),x&&Math.abs(x-O)<1&&(r="nearest")}if(f)break;u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function bP(t){let e=t.ownerDocument;for(let n=t.parentNode;n&&n!=e.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class yP{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:i}=e;this.set(n,Math.min(e.anchorOffset,n?Dn(n):0),i,Math.min(e.focusOffset,i?Dn(i):0))}set(e,n,i,r){this.anchorNode=e,this.anchorOffset=n,this.focusNode=i,this.focusOffset=r}}let ir=null;function gh(t){if(t.setActive)return t.setActive();if(ir)return t.focus(ir);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(ir==null?{get preventScroll(){return ir={preventScroll:!0},!0}}:void 0),!ir){ir=!1;for(let n=0;n<e.length;){let i=e[n++],r=e[n++],s=e[n++];i.scrollTop!=r&&(i.scrollTop=r),i.scrollLeft!=s&&(i.scrollLeft=s)}}}let vh;function ji(t,e,n=e){let i=vh||(vh=document.createRange());return i.setEnd(t,n),i.setStart(t,e),i}function rr(t,e,n,i){let r={key:e,code:e,keyCode:n,which:n,cancelable:!0};i&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=i);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,t.dispatchEvent(s);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function wP(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function Oh(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function SP(t,e){let n=e.focusNode,i=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=i)return!1;for(i=Math.min(i,Dn(n));;)if(i){if(n.nodeType!=1)return!1;let r=n.childNodes[i-1];r.contentEditable=="false"?i--:(n=r,i=Dn(n))}else{if(n==t)return!0;i=Ei(n),n=n.parentNode}}function xh(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function bh(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i>0)return{node:n,offset:i};if(n.nodeType==1&&i>0){if(n.contentEditable=="false")return null;n=n.childNodes[i-1],i=Dn(n)}else if(n.parentNode&&!Co(n))i=Ei(n),n=n.parentNode;else return null}}function yh(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i<n.nodeValue.length)return{node:n,offset:i};if(n.nodeType==1&&i<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[i],i=0}else if(n.parentNode&&!Co(n))i=Ei(n)+1,n=n.parentNode;else return null}}class nt{constructor(e,n,i=!0){this.node=e,this.offset=n,this.precise=i}static before(e,n){return new nt(e.parentNode,Ei(e),n)}static after(e,n){return new nt(e.parentNode,Ei(e)+1,n)}}const xc=[];class we{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let i of this.children){if(i==e)return n;n+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let i=this.dom,r=null,s;for(let o of this.children){if(o.flags&7){if(!o.dom&&(s=r?r.nextSibling:i.firstChild)){let a=we.get(s);(!a||!a.parent&&a.canReuseDOM(o))&&o.reuseDOM(s)}o.sync(e,n),o.flags&=-8}if(s=r?r.nextSibling:i.firstChild,n&&!n.written&&n.node==i&&s!=o.dom&&(n.written=!0),o.dom.parentNode==i)for(;s&&s!=o.dom;)s=wh(s);else i.insertBefore(o.dom,s);r=o.dom}for(s=r?r.nextSibling:i.firstChild,s&&n&&n.node==i&&(n.written=!0);s;)s=wh(s)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,n),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let i;if(e==this.dom)i=this.dom.childNodes[n];else{let r=Dn(e)==0?0:n==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;r==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?r=-1:r=1),e=s}r<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!we.get(i);)i=i.nextSibling;if(!i)return this.length;for(let r=0,s=0;;r++){let o=this.children[r];if(o.dom==i)return s;s+=o.length+o.breakAfter}}domBoundsAround(e,n,i=0){let r=-1,s=-1,o=-1,a=-1;for(let l=0,c=i,u=i;l<this.children.length;l++){let d=this.children[l],p=c+d.length;if(c<e&&p>n)return d.domBoundsAround(e,n,c);if(p>=e&&r==-1&&(r=l,s=c),c>n&&d.dom.parentNode==this.dom){o=l,a=u;break}u=p,c=p+d.breakAfter}return{from:s,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,i=xc){this.markDirty();for(let r=e;r<n;r++){let s=this.children[r];s.parent==this&&i.indexOf(s)<0&&s.destroy()}this.children.splice(e,n-e,...i);for(let r=0;r<i.length;r++)i[r].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Sh(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,i,r,s,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}we.prototype.breakAfter=0;function wh(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class Sh{constructor(e,n,i){this.children=e,this.pos=n,this.i=i,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Ph(t,e,n,i,r,s,o,a,l){let{children:c}=t,u=c.length?c[e]:null,d=s.length?s[s.length-1]:null,p=d?d.breakAfter:o;if(!(e==i&&u&&!o&&!p&&s.length<2&&u.merge(n,r,s.length?d:null,n==0,a,l))){if(i<c.length){let f=c[i];f&&(r<f.length||f.breakAfter&&(d!=null&&d.breakAfter))?(e==i&&(f=f.split(r),r=0),!p&&d&&f.merge(0,r,d,!0,0,l)?s[s.length-1]=f:((r||f.children.length&&!f.children[0].length)&&f.merge(0,r,null,!1,0,l),s.push(f))):f!=null&&f.breakAfter&&(d?d.breakAfter=1:o=1),i++}for(u&&(u.breakAfter=o,n>0&&(!o&&s.length&&u.merge(n,u.length,s[0],!1,a,0)?u.breakAfter=s.shift().breakAfter:(n<u.length||u.children.length&&u.children[u.children.length-1].length==0)&&u.merge(n,u.length,null,!1,a,0),e++));e<i&&s.length;)if(c[i-1].become(s[s.length-1]))i--,s.pop(),l=s.length?0:a;else if(c[e].become(s[0]))e++,s.shift(),a=s.length?0:l;else break;!s.length&&e&&i<c.length&&!c[e-1].breakAfter&&c[i].merge(0,0,c[e-1],!1,a,l)&&e--,(e<i||s.length)&&t.replaceChildren(e,i,s)}}function kh(t,e,n,i,r,s){let o=t.childCursor(),{i:a,off:l}=o.findPos(n,1),{i:c,off:u}=o.findPos(e,-1),d=e-n;for(let p of i)d+=p.length;t.length+=d,Ph(t,c,u,a,l,i,0,r,s)}let kt=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},bc=typeof document<"u"?document:{documentElement:{style:{}}};const yc=/Edge\/(\d+)/.exec(kt.userAgent),$h=/MSIE \d/.test(kt.userAgent),wc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(kt.userAgent),Eo=!!($h||wc||yc),Th=!Eo&&/gecko\/(\d+)/i.test(kt.userAgent),Sc=!Eo&&/Chrome\/(\d+)/.exec(kt.userAgent),Qh="webkitFontSmoothing"in bc.documentElement.style,Ch=!Eo&&/Apple Computer/.test(kt.vendor),Eh=Ch&&(/Mobile\/\w+/.test(kt.userAgent)||kt.maxTouchPoints>2);var J={mac:Eh||/Mac/.test(kt.platform),windows:/Win/.test(kt.platform),linux:/Linux|X11/.test(kt.platform),ie:Eo,ie_version:$h?bc.documentMode||6:wc?+wc[1]:yc?+yc[1]:0,gecko:Th,gecko_version:Th?+(/Firefox\/(\d+)/.exec(kt.userAgent)||[0,0])[1]:0,chrome:!!Sc,chrome_version:Sc?+Sc[1]:0,ios:Eh,android:/Android\b/.test(kt.userAgent),webkit:Qh,safari:Ch,webkit_version:Qh?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:bc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const PP=256;class Gt extends we{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,i){return this.flags&8||i&&(!(i instanceof Gt)||this.length-(n-e)+i.length>PP||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new Gt(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new nt(this.dom,e)}domBoundsAround(e,n,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return kP(this.dom,e,n)}}class Mn extends we{constructor(e,n=[],i=0){super(),this.mark=e,this.children=n,this.length=i;for(let r of n)r.setParent(this)}setAttrs(e){if(Oh(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,i,r,s,o){return i&&(!(i instanceof Mn&&i.mark.eq(this.mark))||e&&s<=0||n<this.length&&o<=0)?!1:(kh(this,e,n,i?i.children.slice():[],s-1,o-1),this.markDirty(),!0)}split(e){let n=[],i=0,r=-1,s=0;for(let a of this.children){let l=i+a.length;l>e&&n.push(i<e?a.split(e-i):a),r<0&&i>=e&&(r=s),i=l,s++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new Mn(this.mark,n,o)}domAtPos(e){return jh(this,e)}coordsAt(e,n){return Dh(this,e,n)}}function kP(t,e,n){let i=t.nodeValue.length;e>i&&(e=i);let r=e,s=e,o=0;e==0&&n<0||e==i&&n>=0?J.chrome||J.gecko||(e?(r--,o=1):s<i&&(s++,o=-1)):n<0?r--:s<i&&s++;let a=ji(t,r,s).getClientRects();if(!a.length)return null;let l=a[(o?o<0:n>=0)?0:a.length-1];return J.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,c=>c.width)||l),o?Oc(l,o<0):l||null}class Ai extends we{static create(e,n,i){return new Ai(e,n,i)}constructor(e,n,i){super(),this.widget=e,this.length=n,this.side=i,this.prevWidget=null}split(e){let n=Ai.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,i,r,s,o){return i&&(!(i instanceof Ai)||!this.widget.compare(i.widget)||e>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}become(e){return e instanceof Ai&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return fe.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,i=n&&n.state.doc,r=this.posAtStart;return i?i.slice(r,r+this.length):fe.empty}domAtPos(e){return(this.length?e==0:this.side>0)?nt.before(this.dom):nt.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);if(i)return i;let r=this.dom.getClientRects(),s=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?r.length-1:0;s=r[a],!(e>0?a==0:a==r.length-1||s.top<s.bottom);a+=o?-1:1);return Oc(s,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class sr extends we{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof sr&&e.side==this.side}split(){return new sr(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?nt.before(this.dom):nt.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return fe.empty}get isHidden(){return!0}}Gt.prototype.children=Ai.prototype.children=sr.prototype.children=xc;function jh(t,e){let n=t.dom,{children:i}=t,r=0;for(let s=0;r<i.length;r++){let o=i[r],a=s+o.length;if(!(a==s&&o.getSide()<=0)){if(e>s&&e<a&&o.dom.parentNode==n)return o.domAtPos(e-s);if(e<=s)break;s=a}}for(let s=r;s>0;s--){let o=i[s-1];if(o.dom.parentNode==n)return o.domAtPos(o.length)}for(let s=r;s<i.length;s++){let o=i[s];if(o.dom.parentNode==n)return o.domAtPos(0)}return new nt(n,0)}function Ah(t,e,n){let i,{children:r}=t;n>0&&e instanceof Mn&&r.length&&(i=r[r.length-1])instanceof Mn&&i.mark.eq(e.mark)?Ah(i,e.children[0],n-1):(r.push(e),e.setParent(t)),t.length+=e.length}function Dh(t,e,n){let i=null,r=-1,s=null,o=-1;function a(c,u){for(let d=0,p=0;d<c.children.length&&p<=u;d++){let f=c.children[d],h=p+f.length;h>=u&&(f.children.length?a(f,u-p):(!s||s.isHidden&&n>0)&&(h>u||p==h&&f.getSide()>0)?(s=f,o=u-p):(p<u||p==h&&f.getSide()<0&&!f.isHidden)&&(i=f,r=u-p)),p=h}}a(t,e);let l=(n<0?i:s)||i||s;return l?l.coordsAt(Math.max(0,l==i?r:o),n):$P(t)}function $P(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=is(e);return n[n.length-1]||null}function Pc(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const Mh=Object.create(null);function kc(t,e,n){if(t==e)return!0;t||(t=Mh),e||(e=Mh);let i=Object.keys(t),r=Object.keys(e);if(i.length-(n&&i.indexOf(n)>-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let s of i)if(s!=n&&(r.indexOf(s)==-1||t[s]!==e[s]))return!1;return!0}function $c(t,e,n){let i=!1;if(e)for(let r in e)n&&r in n||(i=!0,r=="style"?t.style.cssText="":t.removeAttribute(r));if(n)for(let r in n)e&&e[r]==n[r]||(i=!0,r=="style"?t.style.cssText=n[r]:t.setAttribute(r,n[r]));return i}function TP(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let i=t.attributes[n];e[i.name]=i.value}return e}class qe extends we{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,i,r,s,o){if(i){if(!(i instanceof qe))return!1;this.dom||i.transferDOM(this)}return r&&this.setDeco(i?i.attrs:null),kh(this,e,n,i?i.children.slice():[],s,o),!0}split(e){let n=new qe;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i,off:r}=this.childPos(e);r&&(n.append(this.children[i].split(r),0),this.children[i].merge(r,this.children[i].length,null,!1,0,0),i++);for(let s=i;s<this.children.length;s++)n.append(this.children[s],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){kc(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){Ah(this,e,n)}addLineDeco(e){let n=e.spec.attributes,i=e.spec.class;n&&(this.attrs=Pc(n,this.attrs||{})),i&&(this.attrs=Pc({class:i},this.attrs||{}))}domAtPos(e){return jh(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var i;this.dom?this.flags&4&&(Oh(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&($c(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let r=this.dom.lastChild;for(;r&&we.get(r)instanceof Mn;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((i=we.get(r))===null||i===void 0?void 0:i.isEditable)==!1&&(!J.ios||!this.children.some(s=>s instanceof Gt))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let i of this.children){if(!(i instanceof Gt)||/[^ -~]/.test(i.text))return null;let r=is(i.dom);if(r.length!=1)return null;e+=r[0].width,n=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let i=Dh(this,e,n);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,s=i.bottom-i.top;if(Math.abs(s-r.lineHeight)<2&&r.textHeight<s){let o=(s-r.textHeight)/2;return{top:i.top+o,bottom:i.bottom-o,left:i.left,right:i.left}}}return i}become(e){return!1}covers(){return!0}static find(e,n){for(let i=0,r=0;i<e.children.length;i++){let s=e.children[i],o=r+s.length;if(o>=n){if(s instanceof qe)return s;if(o>n)break}r=o+s.breakAfter}return null}}class Kn extends we{constructor(e,n,i){super(),this.widget=e,this.length=n,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,n,i,r,s,o){return i&&(!(i instanceof Kn)||!this.widget.compare(i.widget)||e>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?nt.before(this.dom):nt.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let i=new Kn(this.widget,n,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return xc}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):fe.empty}domBoundsAround(){return null}become(e){return e instanceof Kn&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){return this.widget.coordsAt(this.dom,e,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:i}=this.deco;return n==i?!1:e<0?n<0:i>0}}class or{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Ht=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Ht||(Ht={}));class ue extends Ci{constructor(e,n,i,r){super(),this.startSide=e,this.endSide=n,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return new ss(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return n+=i&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new ei(e,n,n,i,e.widget||null,!1)}static replace(e){let n=!!e.block,i,r;if(e.isBlockGap)i=-5e8,r=4e8;else{let{start:s,end:o}=Rh(e,n);i=(s?n?-3e8:-1:5e8)-1,r=(o?n?2e8:1:-6e8)+1}return new ei(e,i,r,n,e.widget||null,!0)}static line(e){return new os(e)}static set(e,n=!1){return Oe.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}ue.none=Oe.empty;class ss extends ue{constructor(e){let{start:n,end:i}=Rh(e);super(n?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,i;return this==e||e instanceof ss&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&kc(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}ss.prototype.point=!1;class os extends ue{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof os&&this.spec.class==e.spec.class&&kc(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}os.prototype.mapMode=et.TrackBefore,os.prototype.point=!0;class ei extends ue{constructor(e,n,i,r,s,o){super(n,i,s,e),this.block=r,this.isReplace=o,this.mapMode=r?n<=0?et.TrackBefore:et.TrackAfter:et.TrackDel}get type(){return this.startSide!=this.endSide?Ht.WidgetRange:this.startSide<=0?Ht.WidgetBefore:Ht.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof ei&&QP(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}ei.prototype.point=!0;function Rh(t,e=!1){let{inclusiveStart:n,inclusiveEnd:i}=t;return n==null&&(n=t.inclusive),i==null&&(i=t.inclusive),{start:n??e,end:i??e}}function QP(t,e){return t==e||!!(t&&e&&t.compare(e))}function Tc(t,e,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=t?n[r]=Math.max(n[r],e):n.push(t,e)}class as{constructor(e,n,i,r){this.doc=e,this.pos=n,this.end=i,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Kn&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new qe),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(jo(new sr(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Kn)&&this.getLine()}buildText(e,n,i){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-i)),this.getLine().append(jo(new Gt(this.text.slice(this.textOff,this.textOff+r)),n),i),this.atCursorPos=!0,this.textOff+=r,e-=r,i=0}}span(e,n,i,r){this.buildText(n-e,i,r),this.pos=n,this.openStart<0&&(this.openStart=r)}point(e,n,i,r,s,o){if(this.disallowBlockEffectsFor[o]&&i instanceof ei){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=n-e;if(i instanceof ei)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Kn(i.widget||ar.block,a,i));else{let l=Ai.create(i.widget||ar.inline,a,a?0:i.startSide),c=this.atCursorPos&&!l.isEditable&&s<=r.length&&(e<n||i.startSide>0),u=!l.isEditable&&(e<n||s>r.length||i.startSide<=0),d=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),c&&(d.append(jo(new sr(1),r),s),s=r.length+Math.max(0,s-r.length)),d.append(jo(l,r),s),this.atCursorPos=u,this.pendingBuffer=u?e<n||s>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s)}static build(e,n,i,r,s){let o=new as(e,n,i,s);return o.openEnd=Oe.spans(r,n,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function jo(t,e){for(let n of e)t=new Mn(n,[t],t.length);return t}class ar extends or{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ar.inline=new ar("span"),ar.block=new ar("div");var ze=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(ze||(ze={}));const Di=ze.LTR,Qc=ze.RTL;function _h(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const CP=_h("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),EP=_h("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Cc=Object.create(null),un=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);Cc[e]=n,Cc[n]=-e}function Ih(t){return t<=247?CP[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?EP[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const jP=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class ti{get dir(){return this.level%2?Qc:Di}constructor(e,n,i){this.from=e,this.to=n,this.level=i}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,i,r){let s=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=n&&a.to>=n){if(a.level==i)return o;(s<0||(r!=0?r<0?a.from<n:a.to>n:e[s].level>a.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}function Zh(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let i=t[n],r=e[n];if(i.from!=r.from||i.to!=r.to||i.direction!=r.direction||!Zh(i.inner,r.inner))return!1}return!0}const Se=[];function AP(t,e,n,i,r){for(let s=0;s<=i.length;s++){let o=s?i[s-1].to:e,a=s<i.length?i[s].from:n,l=s?256:r;for(let c=o,u=l,d=l;c<a;c++){let p=Ih(t.charCodeAt(c));p==512?p=u:p==8&&d==4&&(p=16),Se[c]=p==4?2:p,p&7&&(d=p),u=p}for(let c=o,u=l,d=l;c<a;c++){let p=Se[c];if(p==128)c<a-1&&u==Se[c+1]&&u&24?p=Se[c]=u:Se[c]=256;else if(p==64){let f=c+1;for(;f<a&&Se[f]==64;)f++;let h=c&&u==8||f<n&&Se[f]==8?d==1?1:8:256;for(let m=c;m<f;m++)Se[m]=h;c=f-1}else p==8&&d==1&&(Se[c]=1);u=p,p&7&&(d=p)}}}function DP(t,e,n,i,r){let s=r==1?2:1;for(let o=0,a=0,l=0;o<=i.length;o++){let c=o?i[o-1].to:e,u=o<i.length?i[o].from:n;for(let d=c,p,f,h;d<u;d++)if(f=Cc[p=t.charCodeAt(d)])if(f<0){for(let m=a-3;m>=0;m-=3)if(un[m+1]==-f){let g=un[m+2],O=g&2?r:g&4?g&1?s:r:0;O&&(Se[d]=Se[un[m]]=O),a=m;break}}else{if(un.length==189)break;un[a++]=d,un[a++]=p,un[a++]=l}else if((h=Se[d])==2||h==1){let m=h==r;l=m?0:1;for(let g=a-3;g>=0;g-=3){let O=un[g+2];if(O&2)break;if(m)un[g+2]|=2;else{if(O&4)break;un[g+2]|=4}}}}}function MP(t,e,n,i){for(let r=0,s=i;r<=n.length;r++){let o=r?n[r-1].to:t,a=r<n.length?n[r].from:e;for(let l=o;l<a;){let c=Se[l];if(c==256){let u=l+1;for(;;)if(u==a){if(r==n.length)break;u=n[r++].to,a=r<n.length?n[r].from:e}else if(Se[u]==256)u++;else break;let d=s==1,p=(u<e?Se[u]:i)==1,f=d==p?d?1:2:i;for(let h=u,m=r,g=m?n[m-1].to:t;h>l;)h==g&&(h=n[--m].from,g=m?n[m-1].to:t),Se[--h]=f;l=u}else s=c,l++}}}function Ec(t,e,n,i,r,s,o){let a=i%2?2:1;if(i%2==r%2)for(let l=e,c=0;l<n;){let u=!0,d=!1;if(c==s.length||l<s[c].from){let m=Se[l];m!=a&&(u=!1,d=m==16)}let p=!u&&a==1?[]:null,f=u?i:i+1,h=l;e:for(;;)if(c<s.length&&h==s[c].from){if(d)break e;let m=s[c];if(!u)for(let g=m.to,O=c+1;;){if(g==n)break e;if(O<s.length&&s[O].from==g)g=s[O++].to;else{if(Se[g]==a)break e;break}}if(c++,p)p.push(m);else{m.from>l&&o.push(new ti(l,m.from,f));let g=m.direction==Di!=!(f%2);jc(t,g?i+1:i,r,m.inner,m.from,m.to,o),l=m.to}h=m.to}else{if(h==n||(u?Se[h]!=a:Se[h]==a))break;h++}p?Ec(t,l,h,i+1,r,p,o):l<h&&o.push(new ti(l,h,f)),l=h}else for(let l=n,c=s.length;l>e;){let u=!0,d=!1;if(!c||l>s[c-1].to){let m=Se[l-1];m!=a&&(u=!1,d=m==16)}let p=!u&&a==1?[]:null,f=u?i:i+1,h=l;e:for(;;)if(c&&h==s[c-1].to){if(d)break e;let m=s[--c];if(!u)for(let g=m.from,O=c;;){if(g==e)break e;if(O&&s[O-1].to==g)g=s[--O].from;else{if(Se[g-1]==a)break e;break}}if(p)p.push(m);else{m.to<l&&o.push(new ti(m.to,l,f));let g=m.direction==Di!=!(f%2);jc(t,g?i+1:i,r,m.inner,m.from,m.to,o),l=m.from}h=m.from}else{if(h==e||(u?Se[h-1]!=a:Se[h-1]==a))break;h--}p?Ec(t,h,l,i+1,r,p,o):h<l&&o.push(new ti(h,l,f)),l=h}}function jc(t,e,n,i,r,s,o){let a=e%2?2:1;AP(t,r,s,i,a),DP(t,r,s,i,a),MP(r,s,i,a),Ec(t,r,s,e,n,i,o)}function RP(t,e,n){if(!t)return[new ti(0,0,e==Qc?1:0)];if(e==Di&&!n.length&&!jP.test(t))return Nh(t.length);if(n.length)for(;t.length>Se.length;)Se[Se.length]=256;let i=[],r=e==Di?0:1;return jc(t,r,r,n,0,t.length,i),i}function Nh(t){return[new ti(0,t,0)]}let Lh="";function _P(t,e,n,i,r){var s;let o=i.head-t.from,a=ti.find(e,o,(s=i.bidiLevel)!==null&&s!==void 0?s:-1,i.assoc),l=e[a],c=l.side(r,n);if(o==c){let p=a+=r?1:-1;if(p<0||p>=e.length)return null;l=e[a=p],o=l.side(!r,n),c=l.side(r,n)}let u=ct(t.text,o,l.forward(r,n));(u<l.from||u>l.to)&&(u=c),Lh=t.text.slice(Math.min(o,u),Math.max(o,u));let d=a==(r?e.length-1:0)?null:e[a+(r?1:-1)];return d&&u==c&&d.level+(r?0:1)<l.level?R.cursor(d.side(!r,n)+t.from,d.forward(r,n)?1:-1,d.level):R.cursor(u+t.from,l.forward(r,n)?-1:1,l.level)}function IP(t,e,n){for(let i=e;i<n;i++){let r=Ih(t.charCodeAt(i));if(r==1)return Di;if(r==2||r==4)return Qc}return Di}const Xh=te.define(),Vh=te.define(),Wh=te.define(),qh=te.define(),Ac=te.define(),zh=te.define(),Yh=te.define(),Bh=te.define({combine:t=>t.some(e=>e)}),ZP=te.define({combine:t=>t.some(e=>e)}),Uh=te.define();class lr{constructor(e,n="nearest",i="nearest",r=5,s=5,o=!1){this.range=e,this.y=n,this.x=i,this.yMargin=r,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new lr(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new lr(R.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Ao=Te.define({map:(t,e)=>t.map(e)});function dn(t,e,n){let i=t.facet(qh);i.length?i[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const Do=te.define({combine:t=>t.length?t[0]:!0});let NP=0;const ls=te.define();class At{constructor(e,n,i,r,s){this.id=e,this.create=n,this.domEventHandlers=i,this.domEventObservers=r,this.extension=s(this)}static define(e,n){const{eventHandlers:i,eventObservers:r,provide:s,decorations:o}=n||{};return new At(NP++,e,i,r,a=>{let l=[ls.of(a)];return o&&l.push(cs.of(c=>{let u=c.plugin(a);return u?o(u):ue.none})),s&&l.push(s(a)),l})}static fromClass(e,n){return At.define(i=>new e(i),n)}}class Dc{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(i){if(dn(n.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){dn(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(i){dn(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Fh=te.define(),Mc=te.define(),cs=te.define(),Gh=te.define(),Rc=te.define(),Hh=te.define();function Jh(t,e){let n=t.state.facet(Hh);if(!n.length)return n;let i=n.map(s=>s instanceof Function?s(t):s),r=[];return Oe.spans(i,e.from,e.to,{point(){},span(s,o,a,l){let c=s-e.from,u=o-e.from,d=r;for(let p=a.length-1;p>=0;p--,l--){let f=a[p].spec.bidiIsolate,h;if(f==null&&(f=IP(e.text,c,u)),l>0&&d.length&&(h=d[d.length-1]).to==c&&h.direction==f)h.to=u,d=h.inner;else{let m={from:c,to:u,direction:f,inner:[]};d.push(m),d=m.inner}}}}),r}const Kh=te.define();function em(t){let e=0,n=0,i=0,r=0;for(let s of t.state.facet(Kh)){let o=s(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(r=Math.max(r,o.bottom)))}return{left:e,right:n,top:i,bottom:r}}const us=te.define();class Dt{constructor(e,n,i,r){this.fromA=e,this.toA=n,this.fromB=i,this.toB=r}join(e){return new Dt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,i=this;for(;n>0;n--){let r=e[n-1];if(!(r.fromA>i.toA)){if(r.toA<i.fromA)break;i=i.join(r),e.splice(n-1,1)}}return e.splice(n,0,i),e}static extendWithRanges(e,n){if(n.length==0)return e;let i=[];for(let r=0,s=0,o=0,a=0;;r++){let l=r==e.length?null:e[r],c=o-a,u=l?l.fromB:1e9;for(;s<n.length&&n[s]<u;){let d=n[s],p=n[s+1],f=Math.max(a,d),h=Math.min(u,p);if(f<=h&&new Dt(f+c,h+c,f,h).addToSet(i),p>u)break;s+=2}if(!l)return i;new Dt(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),o=l.toA,a=l.toB}}}class Mo{constructor(e,n,i){this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=We.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,o,a,l)=>r.push(new Dt(s,o,a,l))),this.changedRanges=r}static create(e,n,i){return new Mo(e,n,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class tm extends we{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new qe],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Dt(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:u})=>u<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let r=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?r=this.domChanged.newSel.head:!YP(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?XP(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:u}=this.hasComposition;i=new Dt(c,u,e.changes.mapPos(c,-1),e.changes.mapPos(u,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(J.ie||J.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),l=qP(o,a,e.changes);return i=Dt.extendWithRanges(i,l),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=J.chrome||J.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||r.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof Kn&&o.widget instanceof nm&&s.push(o.dom);r.updateGaps(s)}updateChildren(e,n,i){let r=i?i.range.addToSet(e.slice()):e,s=this.childCursor(n);for(let o=r.length-1;;o--){let a=o>=0?r[o]:null;if(!a)break;let{fromA:l,toA:c,fromB:u,toB:d}=a,p,f,h,m;if(i&&i.range.fromB<d&&i.range.toB>u){let b=as.build(this.view.state.doc,u,i.range.fromB,this.decorations,this.dynamicDecorationMap),w=as.build(this.view.state.doc,i.range.toB,d,this.decorations,this.dynamicDecorationMap);f=b.breakAtStart,h=b.openStart,m=w.openEnd;let y=this.compositionView(i);w.breakAtStart?y.breakAfter=1:w.content.length&&y.merge(y.length,y.length,w.content[0],!1,w.openStart,0)&&(y.breakAfter=w.content[0].breakAfter,w.content.shift()),b.content.length&&y.merge(0,0,b.content[b.content.length-1],!0,0,b.openEnd)&&b.content.pop(),p=b.content.concat(y).concat(w.content)}else({content:p,breakAtStart:f,openStart:h,openEnd:m}=as.build(this.view.state.doc,u,d,this.decorations,this.dynamicDecorationMap));let{i:g,off:O}=s.findPos(c,1),{i:v,off:x}=s.findPos(l,-1);Ph(this,v,x,g,O,p,f,h,m)}i&&this.fixCompositionDOM(i)}compositionView(e){let n=new Gt(e.text.nodeValue);n.flags|=8;for(let{deco:r}of e.marks)n=new Mn(r,[n],n.length);let i=new qe;return i.append(n,0),i}fixCompositionDOM(e){let n=(s,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=we.get(s);a&&a!=o&&(a.dom=null),o.setDOM(s)},i=this.childPos(e.range.fromB,1),r=this.children[i.i];n(e.line,r);for(let s=e.marks.length-1;s>=-1;s--)i=r.childPos(i.off,1),r=r.children[i.i],n(s>=0?e.marks[s].node:e.text,r)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,s=!r&&Qo(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||n||s))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(J.gecko&&a.empty&&!this.hasComposition&&LP(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=c=new nt(d,0),o=!0}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!rs(l.node,l.offset,u.anchorNode,u.anchorOffset)||!rs(c.node,c.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,a))&&(this.view.observer.ignore(()=>{J.android&&J.chrome&&this.dom.contains(u.focusNode)&&zP(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=To(this.view.root);if(d)if(a.empty){if(J.gecko){let p=VP(l.node,l.offset);if(p&&p!=3){let f=(p==1?bh:yh)(l.node,l.offset);f&&(l=new nt(f.node,f.offset))}}d.collapse(l.node,l.offset),a.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=a.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(c.node,c.offset)}catch{}}else{let p=document.createRange();a.anchor>a.head&&([l,c]=[c,l]),p.setEnd(c.node,c.offset),p.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(p)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new nt(u.anchorNode,u.anchorOffset),this.impreciseHead=c.precise?null:new nt(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&rs(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,i=To(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!i||!n.empty||!n.assoc||!i.modify)return;let o=qe.find(this,n.head);if(!o)return;let a=o.posAtStart;if(n.head==a||n.head==a+o.length)return;let l=this.coordsAt(n.head,-1),c=this.coordsAt(n.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(n.head+n.assoc);i.collapse(u.node,u.offset),i.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let d=e.observer.selectionRange;e.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&i.collapse(r,s)}moveToLine(e){let n=this.dom,i;if(e.node!=n)return e;for(let r=e.offset;!i&&r<n.childNodes.length;r++){let s=we.get(n.childNodes[r]);s instanceof qe&&(i=s.domAtPos(0))}for(let r=e.offset-1;!i&&r>=0;r--){let s=we.get(n.childNodes[r]);s instanceof qe&&(i=s.domAtPos(s.length))}return i?new nt(i.node,i.offset,!0):e}nearest(e){for(let n=e;n;){let i=we.get(n);if(i&&i.rootView==this)return i;n=n.parentNode}return null}posFromDOM(e,n){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,n)+i.posAtStart}domAtPos(e){let{i:n,off:i}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let r=this.children[n];if(i<r.length||r instanceof qe)break;n++,i=0}return this.children[n].domAtPos(i)}coordsAt(e,n){let i=null,r=0;for(let s=this.length,o=this.children.length-1;o>=0;o--){let a=this.children[o],l=s-a.breakAfter,c=l-a.length;if(l<e)break;c<=e&&(c<e||a.covers(-1))&&(l>e||a.covers(1))&&(!i||a instanceof qe&&!(i instanceof qe&&n>=0))&&(i=a,r=c),s=c}return i?i.coordsAt(e-r,n):null}coordsForChar(e){let{i:n,off:i}=this.childPos(e,1),r=this.children[n];if(!(r instanceof qe))return null;for(;r.children.length;){let{i:a,off:l}=r.childPos(i,1);for(;;a++){if(a==r.children.length)return null;if((r=r.children[a]).length)break}i=l}if(!(r instanceof Gt))return null;let s=ct(r.text,i);if(s==i)return null;let o=ji(r.dom,i,s).getClientRects();for(let a=0;a<o.length;a++){let l=o[a];if(a==o.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let n=[],{from:i,to:r}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==ze.LTR;for(let c=0,u=0;u<this.children.length;u++){let d=this.children[u],p=c+d.length;if(p>r)break;if(c>=i){let f=d.dom.getBoundingClientRect();if(n.push(f.height),o){let h=d.dom.lastChild,m=h?is(h):[];if(m.length){let g=m[m.length-1],O=l?g.right-f.left:f.right-g.left;O>a&&(a=O,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=p)}}}c=p+d.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?ze.RTL:ze.LTR}measureTextSize(){for(let s of this.children)if(s instanceof qe){let o=s.measureTextSize();if(o)return o}let e=document.createElement("div"),n,i,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=is(e.firstChild)[0];n=e.getBoundingClientRect().height,i=s?s.width/27:7,r=s?s.height:n,e.remove()}),{lineHeight:n,charWidth:i,textHeight:r}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new Sh(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let i=0,r=0;;r++){let s=r==n.viewports.length?null:n.viewports[r],o=s?s.from-1:this.length;if(o>i){let a=(n.lineBlockAt(o).bottom-n.lineBlockAt(i).top)/this.view.scaleY;e.push(ue.replace({widget:new nm(a),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!s)break;i=s.to+1}return ue.set(e)}updateDeco(){let e=0,n=this.view.state.facet(cs).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),i=!1,r=this.view.state.facet(Gh).map((s,o)=>{let a=typeof s=="function";return a&&(i=!0),a?s(this.view):s});for(r.length&&(this.dynamicDecorationMap[e++]=i,n.push(Oe.join(r))),this.decorations=[...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(Uh))try{if(c(this.view,e.range,e))return!0}catch(u){dn(this.view.state,u,"scroll handler")}let{range:n}=e,i=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),r;if(!i)return;!n.empty&&(r=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let s=em(this.view),o={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;xP(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==ze.LTR)}}function LP(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}class nm extends or{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function im(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let i=bh(n.focusNode,n.focusOffset),r=yh(n.focusNode,n.focusOffset),s=i||r;if(r&&i&&r.node!=i.node){let a=we.get(r.node);if(!a||a instanceof Gt&&a.text!=r.node.nodeValue)s=r;else if(t.docView.lastCompositionAfterCursor){let l=we.get(i.node);!l||l instanceof Gt&&l.text!=i.node.nodeValue||(s=r)}}if(t.docView.lastCompositionAfterCursor=s!=i,!s)return null;let o=e-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}function XP(t,e,n){let i=im(t,n);if(!i)return null;let{node:r,from:s,to:o}=i,a=r.nodeValue;if(/[\n\r]/.test(a)||t.state.doc.sliceString(i.from,i.to)!=a)return null;let l=e.invertedDesc,c=new Dt(l.mapPos(s),l.mapPos(o),s,o),u=[];for(let d=r.parentNode;;d=d.parentNode){let p=we.get(d);if(p instanceof Mn)u.push({node:d,deco:p.mark});else{if(p instanceof qe||d.nodeName=="DIV"&&d.parentNode==t.contentDOM)return{range:c,text:r,marks:u,line:d};if(d!=t.contentDOM)u.push({node:d,deco:new ss({inclusive:!0,attributes:TP(d),tagName:d.tagName.toLowerCase()})});else return null}}}function VP(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let WP=class{constructor(){this.changes=[]}compareRange(e,n){Tc(e,n,this.changes)}comparePoint(e,n){Tc(e,n,this.changes)}};function qP(t,e,n){let i=new WP;return Oe.compare(t,e,n,i),i.changes}function zP(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function YP(t,e){let n=!1;return e&&t.iterChangedRanges((i,r)=>{i<e.to&&r>e.from&&(n=!0)}),n}function BP(t,e,n=1){let i=t.charCategorizer(e),r=t.doc.lineAt(e),s=e-r.from;if(r.length==0)return R.cursor(e);s==0?n=1:s==r.length&&(n=-1);let o=s,a=s;n<0?o=ct(r.text,s,!1):a=ct(r.text,s);let l=i(r.text.slice(o,a));for(;o>0;){let c=ct(r.text,o,!1);if(i(r.text.slice(c,o))!=l)break;o=c}for(;a<r.length;){let c=ct(r.text,a);if(i(r.text.slice(a,c))!=l)break;a=c}return R.range(o+r.from,a+r.from)}function UP(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function FP(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function _c(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function rm(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function sm(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Ic(t,e,n){let i,r,s,o,a=!1,l,c,u,d;for(let h=t.firstChild;h;h=h.nextSibling){let m=is(h);for(let g=0;g<m.length;g++){let O=m[g];r&&_c(r,O)&&(O=rm(sm(O,r.bottom),r.top));let v=UP(e,O),x=FP(n,O);if(v==0&&x==0)return h.nodeType==3?om(h,e,n):Ic(h,e,n);if(!i||o>x||o==x&&s>v){i=h,r=O,s=v,o=x;let b=x?n<O.top?-1:1:v?e<O.left?-1:1:0;a=!b||(b>0?g<m.length-1:g>0)}v==0?n>O.bottom&&(!u||u.bottom<O.bottom)?(l=h,u=O):n<O.top&&(!d||d.top>O.top)&&(c=h,d=O):u&&_c(u,O)?u=sm(u,O.bottom):d&&_c(d,O)&&(d=rm(d,O.top))}}if(u&&u.bottom>=n?(i=l,r=u):d&&d.top<=n&&(i=c,r=d),!i)return{node:t,offset:0};let p=Math.max(r.left,Math.min(r.right,e));if(i.nodeType==3)return om(i,p,n);if(a&&i.contentEditable!="false")return Ic(i,p,n);let f=Array.prototype.indexOf.call(t.childNodes,i)+(e>=(r.left+r.right)/2?1:0);return{node:t,offset:f}}function om(t,e,n){let i=t.nodeValue.length,r=-1,s=1e9,o=0;for(let a=0;a<i;a++){let l=ji(t,a,a+1).getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(u.top==u.bottom)continue;o||(o=e-u.left);let d=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&d<s){let p=e>=(u.left+u.right)/2,f=p;if((J.chrome||J.gecko)&&ji(t,a).getBoundingClientRect().left==u.right&&(f=!p),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),s=d}}}return{node:t,offset:r>-1?r:o>0?t.nodeValue.length:0}}function am(t,e,n,i=-1){var r,s;let o=t.contentDOM.getBoundingClientRect(),a=o.top+t.viewState.paddingTop,l,{docHeight:c}=t.viewState,{x:u,y:d}=e,p=d-a;if(p<0)return 0;if(p>c)return t.state.doc.length;for(let b=t.viewState.heightOracle.textHeight/2,w=!1;l=t.elementAtHeight(p),l.type!=Ht.Text;)for(;p=i>0?l.bottom+b:l.top-b,!(p>=0&&p<=c);){if(w)return n?null:0;w=!0,i=-i}d=a+p;let f=l.from;if(f<t.viewport.from)return t.viewport.from==0?0:n?null:lm(t,o,l,u,d);if(f>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:lm(t,o,l,u,d);let h=t.dom.ownerDocument,m=t.root.elementFromPoint?t.root:h,g=m.elementFromPoint(u,d);g&&!t.contentDOM.contains(g)&&(g=null),g||(u=Math.max(o.left+1,Math.min(o.right-1,u)),g=m.elementFromPoint(u,d),g&&!t.contentDOM.contains(g)&&(g=null));let O,v=-1;if(g&&((r=t.docView.nearest(g))===null||r===void 0?void 0:r.isEditable)!=!1){if(h.caretPositionFromPoint){let b=h.caretPositionFromPoint(u,d);b&&({offsetNode:O,offset:v}=b)}else if(h.caretRangeFromPoint){let b=h.caretRangeFromPoint(u,d);b&&({startContainer:O,startOffset:v}=b,(!t.contentDOM.contains(O)||J.safari&&GP(O,v,u)||J.chrome&&HP(O,v,u))&&(O=void 0))}}if(!O||!t.docView.dom.contains(O)){let b=qe.find(t.docView,f);if(!b)return p>l.top+l.height/2?l.to:l.from;({node:O,offset:v}=Ic(b.dom,u,d))}let x=t.docView.nearest(O);if(!x)return null;if(x.isWidget&&((s=x.dom)===null||s===void 0?void 0:s.nodeType)==1){let b=x.dom.getBoundingClientRect();return e.y<b.top||e.y<=b.bottom&&e.x<=(b.left+b.right)/2?x.posAtStart:x.posAtEnd}else return x.localPosFromDOM(O,v)+x.posAtStart}function lm(t,e,n,i,r){let s=Math.round((i-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let a=t.viewState.heightOracle.textHeight,l=Math.floor((r-n.top-(t.defaultLineHeight-a)*.5)/a);s+=l*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(n.from,n.to);return n.from+pP(o,s,t.state.tabSize)}function GP(t,e,n){let i;if(t.nodeType!=3||e!=(i=t.nodeValue.length))return!1;for(let r=t.nextSibling;r;r=r.nextSibling)if(r.nodeType!=1||r.nodeName!="BR")return!1;return ji(t,i-1,i).getBoundingClientRect().left>n}function HP(t,e,n){if(e!=0)return!1;for(let r=t;;){let s=r.parentNode;if(!s||s.nodeType!=1||s.firstChild!=r)return!1;if(s.classList.contains("cm-line"))break;r=s}let i=t.nodeType==1?t.getBoundingClientRect():ji(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}function JP(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let i of n.type)if(i.to>e||i.to==e&&(i.to==n.to||i.type==Ht.Text))return i}return n}function KP(t,e,n,i){let r=JP(t,e.head),s=!i||r.type!=Ht.Text||!(t.lineWrapping||r.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(s){let o=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:n==(a==ze.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(l!=null)return R.cursor(l,n?-1:1)}return R.cursor(n?r.to:r.from,n?-1:1)}function cm(t,e,n,i){let r=t.state.doc.lineAt(e.head),s=t.bidiSpans(r),o=t.textDirectionAt(r.from);for(let a=e,l=null;;){let c=_P(r,s,o,a,n),u=Lh;if(!c){if(r.number==(n?t.state.doc.lines:1))return a;u=`
49
+ `,r=t.state.doc.line(r.number+(n?1:-1)),s=t.bidiSpans(r),c=t.visualLineSide(r,!n)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function ek(t,e,n){let i=t.state.charCategorizer(e),r=i(n);return s=>{let o=i(s);return r==jt.Space&&(r=o),r==o}}function tk(t,e,n,i){let r=e.head,s=n?1:-1;if(r==(n?t.state.doc.length:0))return R.cursor(r,e.assoc);let o=e.goalColumn,a,l=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(r,e.assoc||-1),u=t.documentTop;if(c)o==null&&(o=c.left-l.left),a=s<0?c.top:c.bottom;else{let f=t.viewState.lineBlockAt(r);o==null&&(o=Math.min(l.right-l.left,t.defaultCharacterWidth*(r-f.from))),a=(s<0?f.top:f.bottom)+u}let d=l.left+o,p=i??t.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let h=a+(p+f)*s,m=am(t,{x:d,y:h},!1,s);if(h<l.top||h>l.bottom||(s<0?m<r:m>r)){let g=t.docView.coordsForChar(m),O=!g||h<g.top?-1:1;return R.cursor(m,O,void 0,o)}}}function Ro(t,e,n){for(;;){let i=0;for(let r of t)r.between(e-1,e+1,(s,o,a)=>{if(e>s&&e<o){let l=i||n||(e-s<o-e?-1:1);e=l<0?s:o,i=l}});if(!i)return e}}function Zc(t,e,n){let i=Ro(t.state.facet(Rc).map(r=>r(t)),n.from,e.head>n.from?-1:1);return i==n.from?n:R.cursor(i,i<n.from?1:-1)}class nk{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,J.safari&&e.contentDOM.addEventListener("input",()=>null),J.gecko&&Ok(e.contentDOM.ownerDocument)}handleEvent(e){!uk(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,n);for(let r of i.handlers){if(n.defaultPrevented)break;if(r(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=ik(e),i=this.handlers,r=this.view.contentDOM;for(let s in n)if(s!="scroll"){let o=!n[s].handlers.length,a=i[s];a&&o!=!a.handlers.length&&(r.removeEventListener(s,this.handleEvent),a=null),a||r.addEventListener(s,this.handleEvent,{passive:o})}for(let s in i)s!="scroll"&&!n[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&pm.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),J.android&&J.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return J.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=dm.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||rk.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,rr(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:J.safari&&!J.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function um(t,e){return(n,i)=>{try{return e.call(t,i,n)}catch(r){dn(n.state,r)}}}function ik(t){let e=Object.create(null);function n(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let r=i.spec;if(r&&r.domEventHandlers)for(let s in r.domEventHandlers){let o=r.domEventHandlers[s];o&&n(s).handlers.push(um(i.value,o))}if(r&&r.domEventObservers)for(let s in r.domEventObservers){let o=r.domEventObservers[s];o&&n(s).observers.push(um(i.value,o))}}for(let i in Jt)n(i).handlers.push(Jt[i]);for(let i in Mt)n(i).observers.push(Mt[i]);return e}const dm=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],rk="dthko",pm=[16,17,18,20,91,92,224,225],_o=6;function Io(t){return Math.max(0,t)*.7+8}function sk(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class ok{constructor(e,n,i,r){this.view=e,this.startEvent=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=bP(e.contentDOM),this.atoms=e.state.facet(Rc).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(ve.allowMultipleSelections)&&ak(e,n),this.dragging=ck(e,n)&&wm(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var n;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&sk(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let i=0,r=0,s=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=em(this.view);e.clientX-o.left<=s.left+_o?i=-Io(s.left-e.clientX):e.clientX+o.right>=s.right-_o&&(i=Io(e.clientX-s.right)),e.clientY-o.top<=s.top+_o?r=-Io(s.top-e.clientY):e.clientY+o.bottom>=s.bottom-_o&&(r=Io(e.clientY-s.bottom)),this.setScrollSpeed(i,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],s=null;if(r.empty){let o=Ro(this.atoms,r.from,0);o!=r.from&&(s=R.cursor(o,-1))}else{let o=Ro(this.atoms,r.from,-1),a=Ro(this.atoms,r.to,1);(o!=r.from||a!=r.to)&&(s=R.range(r.from==r.anchor?o:a,r.from==r.head?o:a))}s&&(n||(n=e.ranges.slice()),n[i]=s)}return n?R.create(n,e.mainIndex):e}select(e){let{view:n}=this,i=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function ak(t,e){let n=t.state.facet(Xh);return n.length?n[0](e):J.mac?e.metaKey:e.ctrlKey}function lk(t,e){let n=t.state.facet(Vh);return n.length?n[0](e):J.mac?!e.altKey:!e.ctrlKey}function ck(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let i=To(t.root);if(!i||i.rangeCount==0)return!0;let r=i.getRangeAt(0).getClientRects();for(let s=0;s<r.length;s++){let o=r[s];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function uk(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,i;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(i=we.get(n))&&i.ignoreEvent(e))return!1;return!0}const Jt=Object.create(null),Mt=Object.create(null),fm=J.ie&&J.ie_version<15||J.ios&&J.webkit_version<604;function dk(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),hm(t,n.value)},50)}function hm(t,e){let{state:n}=t,i,r=1,s=n.toText(e),o=s.lines==n.selection.ranges.length;if(Nc!=null&&n.selection.ranges.every(l=>l.empty)&&Nc==s.toString()){let l=-1;i=n.changeByRange(c=>{let u=n.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;let d=n.toText((o?s.line(r++).text:e)+n.lineBreak);return{changes:{from:u.from,insert:d},range:R.cursor(c.from+d.length)}})}else o?i=n.changeByRange(l=>{let c=s.line(r++);return{changes:{from:l.from,to:l.to,insert:c.text},range:R.cursor(l.from+c.length)}}):i=n.replaceSelection(s);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Mt.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},Jt.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1),Mt.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},Mt.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},Jt.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(Wh))if(n=i(t,e),n)break;if(!n&&e.button==0&&(n=hk(t,e)),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new ok(t,e,n,i)),i&&t.observer.ignore(()=>gh(t.contentDOM));let r=t.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}return!1};function mm(t,e,n,i){if(i==1)return R.cursor(e,n);if(i==2)return BP(t.state,e,n);{let r=qe.find(t.docView,e),s=t.state.doc.lineAt(r?r.posAtEnd:e),o=r?r.posAtStart:s.from,a=r?r.posAtEnd:s.to;return a<t.state.doc.length&&a==s.to&&a++,R.range(o,a)}}let gm=(t,e)=>t>=e.top&&t<=e.bottom,vm=(t,e,n)=>gm(e,n)&&t>=n.left&&t<=n.right;function pk(t,e,n,i){let r=qe.find(t.docView,e);if(!r)return 1;let s=e-r.posAtStart;if(s==0)return 1;if(s==r.length)return-1;let o=r.coordsAt(s,-1);if(o&&vm(n,i,o))return-1;let a=r.coordsAt(s,1);return a&&vm(n,i,a)?1:o&&gm(i,o)?-1:1}function Om(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:pk(t,n,e.clientX,e.clientY)}}const fk=J.ie&&J.ie_version<=11;let xm=null,bm=0,ym=0;function wm(t){if(!fk)return t.detail;let e=xm,n=ym;return xm=t,ym=Date.now(),bm=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(bm+1)%3:1}function hk(t,e){let n=Om(t,e),i=wm(e),r=t.state.selection;return{update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),r=r.map(s.changes))},get(s,o,a){let l=Om(t,s),c,u=mm(t,l.pos,l.bias,i);if(n.pos!=l.pos&&!o){let d=mm(t,n.pos,n.bias,i),p=Math.min(d.from,u.from),f=Math.max(d.to,u.to);u=p<u.from?R.range(p,f):R.range(f,p)}return o?r.replaceRange(r.main.extend(u.from,u.to)):a&&i==1&&r.ranges.length>1&&(c=mk(r,l.pos))?c:a?r.addRange(u):R.create([u])}}}function mk(t,e){for(let n=0;n<t.ranges.length;n++){let{from:i,to:r}=t.ranges[n];if(i<=e&&r>=e)return R.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}Jt.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let s=r.posAtStart,o=s+r.length;(s>=n.to||o<=n.from)&&(n=R.range(s,o))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1},Jt.dragend=t=>(t.inputState.draggedContent=null,!1);function Sm(t,e,n,i){if(!n)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=t.inputState,o=i&&s&&lk(t,e)?{from:s.from,to:s.to}:null,a={from:r,insert:n},l=t.state.changes(o?[o,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Jt.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let i=Array(n.length),r=0,s=()=>{++r==n.length&&Sm(t,e,i.filter(o=>o!=null).join(t.state.lineBreak),!1)};for(let o=0;o<n.length;o++){let a=new FileReader;a.onerror=s,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(i[o]=a.result),s()},a.readAsText(n[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return Sm(t,e,i,!0),!0}return!1},Jt.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=fm?null:e.clipboardData;return n?(hm(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(dk(t),!1)};function gk(t,e){let n=t.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),t.focus()},50)}function vk(t){let e=[],n=[],i=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),n.push(r));if(!e.length){let r=-1;for(let{from:s}of t.selection.ranges){let o=t.doc.lineAt(s);o.number>r&&(e.push(o.text),n.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),r=o.number}i=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:i}}let Nc=null;Jt.copy=Jt.cut=(t,e)=>{let{text:n,ranges:i,linewise:r}=vk(t.state);if(!n&&!r)return!1;Nc=r?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=fm?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(gk(t,n),!1)};const Pm=Ft.define();function km(t,e){let n=[];for(let i of t.facet(Yh)){let r=i(t,e);r&&n.push(r)}return n?t.update({effects:n,annotations:Pm.of(!0)}):null}function $m(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=km(t.state,e);n?t.dispatch(n):t.update([])}},10)}Mt.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),$m(t)},Mt.blur=t=>{t.observer.clearSelectionRange(),$m(t)},Mt.compositionstart=Mt.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},Mt.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,J.chrome&&J.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)},Mt.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},Jt.beforeinput=(t,e)=>{var n;let i;if(J.chrome&&J.android&&(i=dm.find(r=>r.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let r=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return J.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),J.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Mt.compositionend(t,e),20),!1};const Tm=new Set;function Ok(t){Tm.has(t)||(Tm.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const Qm=["pre-wrap","normal","pre-line","break-spaces"];class xk{constructor(e){this.lineWrapping=e,this.doc=fe.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,n){let i=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((n-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Qm.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let i=0;i<e.length;i++){let r=e[i];r<0?i++:this.heightSamples[Math.floor(r*10)]||(n=!0,this.heightSamples[Math.floor(r*10)]=!0)}return n}refresh(e,n,i,r,s,o){let a=Qm.indexOf(e)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=n,this.charWidth=i,this.textHeight=r,this.lineLength=s,l){this.heightSamples={};for(let c=0;c<o.length;c++){let u=o[c];u<0?c++:this.heightSamples[Math.floor(u*10)]=!0}}return l}}class bk{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class pn{constructor(e,n,i,r,s){this.from=e,this.length=n,this.top=i,this.height=r,this._content=s}get type(){return typeof this._content=="number"?Ht.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof ei?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new pn(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var Qe=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(Qe||(Qe={}));const Zo=.001;class ut{constructor(e,n,i=2){this.length=e,this.height=n,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,n){this.height!=n&&(Math.abs(this.height-n)>Zo&&(e.heightChanged=!0),this.height=n)}replace(e,n,i){return ut.of(i)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,i,r){let s=this,o=i.doc;for(let a=r.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:u,toB:d}=r[a],p=s.lineAt(l,Qe.ByPosNoHeight,i.setDoc(n),0,0),f=p.to>=c?p:s.lineAt(c,Qe.ByPosNoHeight,i,0,0);for(d+=f.to-c,c=f.to;a>0&&p.from<=r[a-1].toA;)l=r[a-1].fromA,u=r[a-1].fromB,a--,l<p.from&&(p=s.lineAt(l,Qe.ByPosNoHeight,i,0,0));u+=p.from-l,l=p.from;let h=Lc.build(i.setDoc(o),e,u,d);s=s.replace(l,c,h)}return s.updateHeight(i,0)}static empty(){return new $t(0,0)}static of(e){if(e.length==1)return e[0];let n=0,i=e.length,r=0,s=0;for(;;)if(n==i)if(r>s*2){let a=e[n-1];a.break?e.splice(--n,1,a.left,null,a.right):e.splice(--n,1,a.left,a.right),i+=1+a.break,r-=a.size}else if(s>r*2){let a=e[i];a.break?e.splice(i,1,a.left,null,a.right):e.splice(i,1,a.left,a.right),i+=2+a.break,s-=a.size}else break;else if(r<s){let a=e[n++];a&&(r+=a.size)}else{let a=e[--i];a&&(s+=a.size)}let o=0;return e[n-1]==null?(o=1,n--):e[n]==null&&(o=1,i++),new yk(ut.of(e.slice(0,n)),o,ut.of(e.slice(i)))}}ut.prototype.size=1;class Cm extends ut{constructor(e,n,i){super(e,n),this.deco=i}blockAt(e,n,i,r){return new pn(r,this.length,i,this.height,this.deco||0)}lineAt(e,n,i,r,s){return this.blockAt(0,i,r,s)}forEachLine(e,n,i,r,s,o){e<=s+this.length&&n>=s&&o(this.blockAt(0,i,r,s))}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class $t extends Cm{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,i,r){return new pn(r,this.length,i,this.height,this.breaks)}replace(e,n,i){let r=i[0];return i.length==1&&(r instanceof $t||r instanceof Ke&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof Ke?r=new $t(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):ut.of(i)}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more?this.setHeight(e,r.heights[r.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Ke extends ut{constructor(e){super(e,0)}heightMetrics(e,n){let i=e.doc.lineAt(n).number,r=e.doc.lineAt(n+this.length).number,s=r-i+1,o,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*s);o=l/s,this.length>s+1&&(a=(this.height-l)/(this.length-s-1))}else o=this.height/s;return{firstLine:i,lastLine:r,perLine:o,perChar:a}}blockAt(e,n,i,r){let{firstLine:s,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(n,r);if(n.lineWrapping){let c=r+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),u=n.doc.lineAt(c),d=a+u.length*l,p=Math.max(i,e-d/2);return new pn(u.from,u.length,p,d,0)}else{let c=Math.max(0,Math.min(o-s,Math.floor((e-i)/a))),{from:u,length:d}=n.doc.line(s+c);return new pn(u,d,i+a*c,a,0)}}lineAt(e,n,i,r,s){if(n==Qe.ByHeight)return this.blockAt(e,i,r,s);if(n==Qe.ByPosNoHeight){let{from:f,to:h}=i.doc.lineAt(e);return new pn(f,h-f,0,0,0)}let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(i,s),c=i.doc.lineAt(e),u=a+c.length*l,d=c.number-o,p=r+a*d+l*(c.from-s-d);return new pn(c.from,c.length,Math.max(r,Math.min(p,r+this.height-u)),u,0)}forEachLine(e,n,i,r,s,o){e=Math.max(e,s),n=Math.min(n,s+this.length);let{firstLine:a,perLine:l,perChar:c}=this.heightMetrics(i,s);for(let u=e,d=r;u<=n;){let p=i.doc.lineAt(u);if(u==e){let h=p.number-a;d+=l*h+c*(e-s-h)}let f=l+c*p.length;o(new pn(p.from,p.length,d,f,0)),d+=f,u=p.to+1}}replace(e,n,i){let r=this.length-n;if(r>0){let s=i[i.length-1];s instanceof Ke?i[i.length-1]=new Ke(s.length+r):i.push(null,new Ke(r-1))}if(e>0){let s=i[0];s instanceof Ke?i[0]=new Ke(e+s.length):i.unshift(new Ke(e-1),null)}return ut.of(i)}decomposeLeft(e,n){n.push(new Ke(e-1),null)}decomposeRight(e,n){n.push(null,new Ke(this.length-e-1))}updateHeight(e,n=0,i=!1,r){let s=n+this.length;if(r&&r.from<=n+this.length&&r.more){let o=[],a=Math.max(n,r.from),l=-1;for(r.from>n&&o.push(new Ke(r.from-n-1).updateHeight(e,n));a<=s&&r.more;){let u=e.doc.lineAt(a).length;o.length&&o.push(null);let d=r.heights[r.index++];l==-1?l=d:Math.abs(d-l)>=Zo&&(l=-2);let p=new $t(u,d);p.outdated=!1,o.push(p),a+=u+1}a<=s&&o.push(null,new Ke(s-a).updateHeight(e,a));let c=ut.of(o);return(l<0||Math.abs(c.height-this.height)>=Zo||Math.abs(l-this.heightMetrics(e,n).perLine)>=Zo)&&(e.heightChanged=!0),c}else(i||this.outdated)&&(this.setHeight(e,e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class yk extends ut{constructor(e,n,i){super(e.length+n+i.length,e.height+i.height,n|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,n,i,r){let s=i+this.left.height;return e<s?this.left.blockAt(e,n,i,r):this.right.blockAt(e,n,s,r+this.left.length+this.break)}lineAt(e,n,i,r,s){let o=r+this.left.height,a=s+this.left.length+this.break,l=n==Qe.ByHeight?e<o:e<a,c=l?this.left.lineAt(e,n,i,r,s):this.right.lineAt(e,n,i,o,a);if(this.break||(l?c.to<a:c.from>a))return c;let u=n==Qe.ByPosNoHeight?Qe.ByPosNoHeight:Qe.ByPos;return l?c.join(this.right.lineAt(a,u,i,o,a)):this.left.lineAt(a,u,i,r,s).join(c)}forEachLine(e,n,i,r,s,o){let a=r+this.left.height,l=s+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,n,i,r,s,o),n>=l&&this.right.forEachLine(e,n,i,a,l,o);else{let c=this.lineAt(l,Qe.ByPos,i,r,s);e<c.from&&this.left.forEachLine(e,c.from-1,i,r,s,o),c.to>=e&&c.from<=n&&o(c),n>c.to&&this.right.forEachLine(c.to+1,n,i,a,l,o)}}replace(e,n,i){let r=this.left.length+this.break;if(n<r)return this.balanced(this.left.replace(e,n,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,n-r,i));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let a of i)s.push(a);if(e>0&&Em(s,o-1),n<this.length){let a=s.length;this.decomposeRight(n,s),Em(s,a)}return ut.of(s)}decomposeLeft(e,n){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(i++,e>=i&&n.push(null)),e>i&&this.right.decomposeLeft(e-i,n)}decomposeRight(e,n){let i=this.left.length,r=i+this.break;if(e>=r)return this.right.decomposeRight(e-r,n);e<i&&this.left.decomposeRight(e,n),this.break&&e<r&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?ut.of(this.break?[e,null,n]:[e,n]):(this.left=e,this.right=n,this.height=e.height+n.height,this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,i=!1,r){let{left:s,right:o}=this,a=n+s.length+this.break,l=null;return r&&r.from<=n+s.length&&r.more?l=s=s.updateHeight(e,n,i,r):s.updateHeight(e,n,i),r&&r.from<=a+o.length&&r.more?l=o=o.updateHeight(e,a,i,r):o.updateHeight(e,a,i),l?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Em(t,e){let n,i;t[e]==null&&(n=t[e-1])instanceof Ke&&(i=t[e+1])instanceof Ke&&t.splice(e-1,3,new Ke(n.length+1+i.length))}const wk=5;class Lc{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let i=Math.min(n,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof $t?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new $t(i-this.pos,-1)),this.writtenTo=i,n>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,i){if(e<n||i.heightRelevant){let r=i.widget?i.widget.estimatedHeight:0,s=i.widget?i.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=n-e;i.block?this.addBlock(new Cm(o,r,i)):(o||s||r>=wk)&&this.addLineDeco(r,s,o)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new $t(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let i=new Ke(n-e);return this.oracle.doc.lineAt(e).to==n&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof $t)return e;let n=new $t(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=n,this.writtenTo=this.pos=this.pos+i}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof $t)&&!this.isCovered?this.nodes.push(new $t(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let r of this.nodes)r instanceof $t&&r.updateHeight(this.oracle,i),i+=r?r.length:1;return this.nodes}static build(e,n,i,r){let s=new Lc(i,e);return Oe.spans(n,i,r,s,0),s.finish(i)}}function Sk(t,e,n){let i=new Pk;return Oe.compare(t,e,n,i,0),i.changes}class Pk{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,i,r){(e<n||i&&i.heightRelevant||r&&r.heightRelevant)&&Tc(e,n,this.changes,5)}}function kk(t,e){let n=t.getBoundingClientRect(),i=t.ownerDocument,r=i.defaultView||window,s=Math.max(0,n.left),o=Math.min(r.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(r.innerHeight,n.bottom);for(let c=t.parentNode;c&&c!=i.body;)if(c.nodeType==1){let u=c,d=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&d.overflow!="visible"){let p=u.getBoundingClientRect();s=Math.max(s,p.left),o=Math.min(o,p.right),a=Math.max(a,p.top),l=c==t.parentNode?p.bottom:Math.min(l,p.bottom)}c=d.position=="absolute"||d.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-n.left,right:Math.max(s,o)-n.left,top:a-(n.top+e),bottom:Math.max(a,l)-(n.top+e)}}function $k(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class Xc{constructor(e,n,i){this.from=e,this.to=n,this.size=i}static same(e,n){if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=n[i];if(r.from!=s.from||r.to!=s.to||r.size!=s.size)return!1}return!0}draw(e,n){return ue.replace({widget:new Tk(this.size*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class Tk extends or{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class jm{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Am,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=ze.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(Mc).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new xk(n),this.stateDeco=e.facet(cs).filter(i=>typeof i!="function"),this.heightMap=ut.empty().applyChanges(this.stateDeco,fe.empty,this.heightOracle.setDoc(e.doc),[new Dt(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ue.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let i=0;i<=1;i++){let r=i?n.head:n.anchor;if(!e.some(({from:s,to:o})=>r>=s&&r<=o)){let{from:s,to:o}=this.lineBlockAt(r);e.push(new No(s,o))}}this.viewports=e.sort((i,r)=>i.from-r.from),this.scaler=this.heightMap.height<=7e6?Am:new Ek(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:ds(e,this.scaler))})}update(e,n=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(cs).filter(u=>typeof u!="function");let r=e.changedRanges,s=Dt.extendWithRanges(r,Sk(i,this.stateDeco,e?e.changes:We.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=o&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let c=!e.changes.empty||e.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(ZP)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,i=window.getComputedStyle(n),r=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?ze.RTL:ze.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),a=n.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,u=0;if(a.width&&a.height){let{scaleX:b,scaleY:w}=mh(n,a);(b>.005&&Math.abs(this.scaleX-b)>.005||w>.005&&Math.abs(this.scaleY-w)>.005)&&(this.scaleX=b,this.scaleY=w,c|=8,o=l=!0)}let d=(parseInt(i.paddingTop)||0)*this.scaleY,p=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=p)&&(this.paddingTop=d,this.paddingBottom=p,c|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=xh(e.scrollDOM);let h=(this.printing?$k:kk)(n,this.paddingTop),m=h.top-this.pixelViewport.top,g=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width;if((this.contentDOMWidth!=v||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,c|=8),l){let b=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(b)&&(o=!0),o||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){let{lineHeight:w,charWidth:y,textHeight:k}=e.docView.measureTextSize();o=w>0&&r.refresh(s,w,y,k,v/y,b),o&&(e.docView.minWidth=0,c|=8)}m>0&&g>0?u=Math.max(m,g):m<0&&g<0&&(u=Math.min(m,g)),r.heightChanged=!1;for(let w of this.viewports){let y=w.from==this.viewport.from?b:e.docView.measureVisibleLineHeights(w);this.heightMap=(o?ut.empty().applyChanges(this.stateDeco,fe.empty,this.heightOracle,[new Dt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new bk(w.from,y))}r.heightChanged&&(c|=2)}let x=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return x&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(c&2||x)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new No(r.lineAt(o-i*1e3,Qe.ByHeight,s,0,0).from,r.lineAt(a+(1-i)*1e3,Qe.ByHeight,s,0,0).to);if(n){let{head:c}=n.range;if(c<l.from||c>l.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=r.lineAt(c,Qe.ByPos,s,0,0),p;n.y=="center"?p=(d.top+d.bottom)/2-u/2:n.y=="start"||n.y=="nearest"&&c<l.from?p=d.top:p=d.bottom-u,l=new No(r.lineAt(p-1e3/2,Qe.ByHeight,s,0,0).from,r.lineAt(p+u+1e3/2,Qe.ByHeight,s,0,0).to)}}return l}mapViewport(e,n){let i=n.mapPos(e.from,-1),r=n.mapPos(e.to,1);return new No(this.heightMap.lineAt(i,Qe.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,Qe.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},i=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,Qe.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(n,Qe.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(e==0||r<=o-Math.max(10,Math.min(-i,250)))&&(n==this.state.doc.length||s>=a+Math.max(10,Math.min(i,250)))&&r>o-2*1e3&&s<a+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let i=[];for(let r of e)n.touchesRange(r.from,r.to)||i.push(new Xc(n.mapPos(r.from),n.mapPos(r.to),r.size));return i}ensureLineGaps(e,n){let i=this.heightOracle.lineWrapping,r=i?1e4:2e3,s=r>>1,o=r<<1;if(this.defaultTextDirection!=ze.LTR&&!i)return[];let a=[],l=(c,u,d,p)=>{if(u-c<s)return;let f=this.state.selection.main,h=[f.from];f.empty||h.push(f.to);for(let g of h)if(g>c&&g<u){l(c,g-10,d,p),l(g+10,u,d,p);return}let m=Ck(e,g=>g.from>=d.from&&g.to<=d.to&&Math.abs(g.from-c)<s&&Math.abs(g.to-u)<s&&!h.some(O=>g.from<O&&g.to>O));if(!m){if(u<d.to&&n&&i&&n.visibleRanges.some(g=>g.from<=u&&g.to>=u)){let g=n.moveToLineBoundary(R.cursor(u),!1,!0).head;g>c&&(u=g)}m=new Xc(c,u,this.gapSize(d,c,u,p))}a.push(m)};for(let c of this.viewportLines){if(c.length<o)continue;let u=Qk(c.from,c.to,this.stateDeco);if(u.total<o)continue;let d=this.scrollTarget?this.scrollTarget.range.head:null,p,f;if(i){let h=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,m,g;if(d!=null){let O=Xo(u,d),v=((this.visibleBottom-this.visibleTop)/2+h)/c.height;m=O-v,g=O+v}else m=(this.visibleTop-c.top-h)/c.height,g=(this.visibleBottom-c.top+h)/c.height;p=Lo(u,m),f=Lo(u,g)}else{let h=u.total*this.heightOracle.charWidth,m=r*this.heightOracle.charWidth,g,O;if(d!=null){let v=Xo(u,d),x=((this.pixelViewport.right-this.pixelViewport.left)/2+m)/h;g=v-x,O=v+x}else g=(this.pixelViewport.left-m)/h,O=(this.pixelViewport.right+m)/h;p=Lo(u,g),f=Lo(u,O)}p>c.from&&l(c.from,p,c,u),f<c.to&&l(f,c.to,c,u)}return a}gapSize(e,n,i,r){let s=Xo(r,i)-Xo(r,n);return this.heightOracle.lineWrapping?e.height*s:r.total*this.heightOracle.charWidth*s}updateLineGaps(e){Xc.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=ue.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];Oe.spans(e,this.viewport.from,this.viewport.to,{span(r,s){n.push({from:r,to:s})},point(){}},20);let i=n.length!=this.visibleRanges.length||this.visibleRanges.some((r,s)=>r.from!=n[s].from||r.to!=n[s].to);return this.visibleRanges=n,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||ds(this.heightMap.lineAt(e,Qe.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return ds(this.heightMap.lineAt(this.scaler.fromDOM(e),Qe.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return ds(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class No{constructor(e,n){this.from=e,this.to=n}}function Qk(t,e,n){let i=[],r=t,s=0;return Oe.spans(n,t,e,{span(){},point(o,a){o>r&&(i.push({from:r,to:o}),s+=o-r),r=a}},20),r<e&&(i.push({from:r,to:e}),s+=e-r),{total:s,ranges:i}}function Lo({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let i=Math.floor(t*n);for(let r=0;;r++){let{from:s,to:o}=e[r],a=o-s;if(i<=a)return s+i;i-=a}}function Xo(t,e){let n=0;for(let{from:i,to:r}of t.ranges){if(e<=r){n+=e-i;break}n+=r-i}return n/t.total}function Ck(t,e){for(let n of t)if(e(n))return n}const Am={toDOM(t){return t},fromDOM(t){return t},scale:1};class Ek{constructor(e,n,i){let r=0,s=0,o=0;this.viewports=i.map(({from:a,to:l})=>{let c=n.lineAt(a,Qe.ByPos,e,0,0).top,u=n.lineAt(l,Qe.ByPos,e,0,0).bottom;return r+=u-c,{from:a,to:l,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(n.height-r);for(let a of this.viewports)a.domTop=o+(a.top-s)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),s=a.bottom}toDOM(e){for(let n=0,i=0,r=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.top)return r+(e-i)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);i=s.bottom,r=s.domBottom}}fromDOM(e){for(let n=0,i=0,r=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.domTop)return i+(e-r)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);i=s.bottom,r=s.domBottom}}}function ds(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),i=e.toDOM(t.bottom);return new pn(t.from,t.length,n,i-n,Array.isArray(t._content)?t._content.map(r=>ds(r,e)):t._content)}const Vo=te.define({combine:t=>t.join(" ")}),Vc=te.define({combine:t=>t.indexOf(!0)>-1}),Wc=Hn.newName(),Dm=Hn.newName(),Mm=Hn.newName(),Rm={"&light":"."+Dm,"&dark":"."+Mm};function qc(t,e,n){return new Hn(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,r=>{if(r=="&")return t;if(!n||!n[r])throw new RangeError(`Unsupported selector: ${r}`);return n[r]}):t+" "+i}})}const jk=qc("."+Wc,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Rm),ps="￿";class Ak{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(ve.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=ps}readRange(e,n){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let s=this.text.length;this.readNode(r);let o=r.nextSibling;if(o==n)break;let a=we.get(r),l=we.get(o);(a&&l?a.breakAfter:(a?a.breakAfter:Co(r))||Co(o)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>s)&&this.lineBreak(),r=o}return this.findPointBefore(i,n),this}readTextNode(e){let n=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,n.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,a;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(a=r.exec(n))&&(s=a.index,o=a[0].length),this.append(n.slice(i,s<0?n.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);i=s+o}}readNode(e){if(e.cmIgnore)return;let n=we.get(e),i=n&&n.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==n&&(i.pos=this.text.length)}findPointInside(e,n){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Dk(e,i.node,i.offset)?n:0))}}function Dk(t,e,n){for(;;){if(!e||n<Dn(e))return!1;if(e==t)return!0;n=Ei(e)+1,e=e.parentNode}}class _m{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class Mk{constructor(e,n,i,r){this.typeOver=r,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,i,0))){let a=s||o?[]:Ik(e),l=new Ak(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Zk(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=s&&s.node==a.focusNode&&s.offset==a.focusOffset||!vc(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),c=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!vc(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),u=e.viewport;if((J.ios||J.chrome)&&e.state.selection.main.empty&&l!=c&&(u.from>0||u.to<e.state.doc.length)){let d=Math.min(l,c),p=Math.max(l,c),f=u.from-d,h=u.to-p;(f==0||f==1||d==0)&&(h==0||h==-1||p==e.state.doc.length)&&(l=0,c=e.state.doc.length)}this.newSel=R.single(c,l)}}}function Im(t,e){let n,{newSel:i}=e,r=t.state.selection.main,s=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,l=r.from,c=null;(s===8||J.android&&e.text.length<a-o)&&(l=r.to,c="end");let u=_k(t.state.doc.sliceString(o,a,ps),e.text,l-o,c);u&&(J.chrome&&s==13&&u.toB==u.from+2&&e.text.slice(u.from,u.toB)==ps+ps&&u.toB--,n={from:o+u.from,to:o+u.toA,insert:fe.of(e.text.slice(u.from,u.toB).split(ps))})}else i&&(!t.hasFocus&&t.state.facet(Do)||i.main.eq(r))&&(i=null);if(!n&&!i)return!1;if(!n&&e.typeOver&&!r.empty&&i&&i.main.empty?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,r.to))}:(J.mac||J.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(i&&n.insert.length==2&&(i=R.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:fe.of([" "])}):J.chrome&&n&&n.from==n.to&&n.from==r.head&&n.insert.toString()==`
50
+ `&&t.lineWrapping&&(i&&(i=R.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:fe.of([" "])}),n){if(J.ios&&t.inputState.flushIOSKey(n)||J.android&&(n.to==r.to&&(n.from==r.from||n.from==r.from-1&&t.state.sliceDoc(n.from,r.from)==" ")&&n.insert.length==1&&n.insert.lines==2&&rr(t.contentDOM,"Enter",13)||(n.from==r.from-1&&n.to==r.to&&n.insert.length==0||s==8&&n.insert.length<n.to-n.from&&n.to>r.head)&&rr(t.contentDOM,"Backspace",8)||n.from==r.from&&n.to==r.to+1&&n.insert.length==0&&rr(t.contentDOM,"Delete",46)))return!0;let o=n.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a,l=()=>a||(a=Rk(t,n,i));return t.state.facet(zh).some(c=>c(t,n.from,n.to,o,l))||t.dispatch(l()),!0}else if(i&&!i.main.eq(r)){let o=!1,a="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(o=!0),a=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:o,userEvent:a}),!0}else return!1}function Rk(t,e,n){let i,r=t.state,s=r.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let a=s.from<e.from?r.sliceDoc(s.from,e.from):"",l=s.to>e.to?r.sliceDoc(e.to,s.to):"";i=r.replaceSelection(t.state.toText(a+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let a=r.changes(e),l=n&&n.main.to<=a.newLength?n.main:void 0;if(r.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let c=t.state.sliceDoc(e.from,e.to),u,d=n&&im(t,n.main.head);if(d){let h=e.insert.length-(e.to-e.from);u={from:d.from,to:d.to-h}}else u=t.state.doc.lineAt(s.head);let p=s.to-e.to,f=s.to-s.from;i=r.changeByRange(h=>{if(h.from==s.from&&h.to==s.to)return{changes:a,range:l||h.map(a)};let m=h.to-p,g=m-c.length;if(h.to-h.from!=f||t.state.sliceDoc(g,m)!=c||h.to>=u.from&&h.from<=u.to)return{range:h};let O=r.changes({from:g,to:m,insert:e.insert}),v=h.to-s.to;return{changes:O,range:l?R.range(Math.max(0,l.anchor+v),Math.max(0,l.head+v)):h.map(O)}})}else i={changes:a,selection:l&&r.selection.replaceRange(l)}}let o="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,o+=".compose",t.inputState.compositionFirstChange&&(o+=".start",t.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:o,scrollIntoView:!0})}function _k(t,e,n,i){let r=Math.min(t.length,e.length),s=0;for(;s<r&&t.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&t.length==e.length)return null;let o=t.length,a=e.length;for(;o>0&&a>0&&t.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(i=="end"){let l=Math.max(0,s-Math.min(o,a));n-=o+l-s}if(o<s&&t.length<e.length){let l=n<=s&&n>=o?s-n:0;s-=l,a=s+(a-o),o=s}else if(a<s){let l=n<=s&&n>=a?s-n:0;s-=l,o=s+(o-a),a=s}return{from:s,toA:o,toB:a}}function Ik(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}=t.observer.selectionRange;return n&&(e.push(new _m(n,i)),(r!=n||s!=i)&&e.push(new _m(r,s))),e}function Zk(t,e){if(t.length==0)return null;let n=t[0].pos,i=t.length==2?t[1].pos:n;return n>-1&&i>-1?R.single(n+e,i+e):null}const Nk={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},zc=J.ie&&J.ie_version<=11;class Lk{constructor(e){this.view=e,this.active=!1,this.selectionRange=new yP,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let i of n)this.queue.push(i);(J.ie&&J.ie_version<=11||J.ios&&e.composing)&&n.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),zc&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,i)=>n!=e[i]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,r=this.selectionRange;if(i.state.facet(Do)?i.root.activeElement!=this.dom:!Qo(i.dom,r))return;let s=r.anchorNode&&i.docView.nearest(r.anchorNode);if(s&&s.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(J.ie&&J.ie_version<=11||J.android&&J.chrome)&&!i.state.selection.main.empty&&r.focusNode&&rs(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=To(e.root);if(!n)return!1;let i=J.safari&&e.root.nodeType==11&&vP(this.dom.ownerDocument)==this.dom&&Xk(this.view,n)||n;if(!i||this.selectionRange.eq(i))return!1;let r=Qo(this.dom,i);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&SP(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let i=this.dom;i;)if(i.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=n)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Nk),zc&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),zc&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var i;if(!this.delayedAndroidKey){let r=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&rr(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,i=-1,r=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(r=!0),n==-1?{from:n,to:i}=o:(n=Math.min(o.from,n),i=Math.max(o.to,i)))}return{from:n,to:i,typeOver:r}}readChange(){let{from:e,to:n,typeOver:i}=this.processRecords(),r=this.selectionChanged&&Qo(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new Mk(this.view,e,n,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let i=this.view.state,r=Im(this.view,n);return this.view.state==i&&this.view.update([]),r}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let i=Zm(n,e.previousSibling||e.target.previousSibling,-1),r=Zm(n,e.nextSibling||e.target.nextSibling,1);return{from:i?n.posAfter(i):n.posAtStart,to:r?n.posBefore(r):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,n,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Zm(t,e,n){for(;e;){let i=we.get(e);if(i&&i.parent==t)return i;let r=e.parentNode;e=r!=t.dom?r:n>0?e.nextSibling:e.previousSibling}return null}function Nm(t,e){let n=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor);return rs(o.node,o.offset,r,s)&&([n,i,r,s]=[r,s,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}}function Xk(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Nm(t,r)}let n=null;function i(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),n?Nm(t,n):null}class ne{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(i=>i.forEach(r=>n(r,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||wP(e.parent)||document,this.viewState=new jm(e.state||ve.create(e)),e.scrollTo&&e.scrollTo.is(Ao)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ls).map(i=>new Dc(i));for(let i of this.plugins)i.update(this);this.observer=new Lk(this),this.inputState=new nk(this),this.inputState.ensureHandlers(this.plugins),this.docView=new tm(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let n=e.length==1&&e[0]instanceof Le?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,i=!1,r,s=this.state;for(let p of e){if(p.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=p.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,a=0,l=null;e.some(p=>p.annotation(Pm))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=km(s,o),l||(a=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(ve.phrases)!=this.state.facet(ve.phrases))return this.setState(s);r=Mo.create(this,s,e),r.flags|=a;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let p of e){if(d&&(d=d.map(p.changes)),p.scrollIntoView){let{main:f}=p.state.selection;d=new lr(f.empty?f:R.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of p.effects)f.is(Ao)&&(d=f.value.clip(this.state))}this.viewState.update(r,d),this.bidiCache=Wo.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),n=this.docView.update(r),this.state.facet(us)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(p=>p.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(Vo)!=r.state.facet(Vo)&&(this.viewState.mustMeasureContent=!0),(n||i||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!r.empty)for(let p of this.state.facet(Ac))try{p(r)}catch(f){dn(this.state,f,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!Im(this,u)&&c.force&&rr(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new jm(e),this.plugins=e.facet(ls).map(i=>new Dc(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new tm(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(ls),i=e.state.facet(ls);if(n!=i){let r=[];for(let s of i){let o=n.indexOf(s);if(o<0)r.push(new Dc(s));else{let a=this.plugins[o];a.mustUpdate=e,r.push(a)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);n!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(i){dn(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,i=this.scrollDOM,r=i.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(xh(i))s=-1,o=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(r);s=f.from,o=f.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(f=>{try{return f.read(this)}catch(h){return dn(this.state,h),Lm}}),d=Mo.create(this,this.state,[]),p=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),p=this.docView.update(d),p&&this.docViewUpdate());for(let f=0;f<c.length;f++)if(u[f]!=Lm)try{let h=c[f];h.write&&h.write(u[f],this)}catch(h){dn(this.state,h)}if(p&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let h=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(h>1||h<-1){r=r+h,i.scrollTop=r/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let a of this.state.facet(Ac))a(n)}get themeClasses(){return Wc+" "+(this.state.facet(Vc)?Mm:Dm)+" "+this.state.facet(Vo)}updateAttrs(){let e=Xm(this,Fh,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Do)?"true":"false",class:"cm-content",style:`${J.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),Xm(this,Mc,n);let i=this.observer.ignore(()=>{let r=$c(this.contentDOM,this.contentAttrs,n),s=$c(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=n,i}showAnnouncements(e){let n=!0;for(let i of e)for(let r of i.effects)if(r.is(ne.announce)){n&&(this.announceDOM.textContent=""),n=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(us);let e=this.state.facet(ne.cspNonce);Hn.mount(this.root,this.styleModules.concat(jk).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(i=>i.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,i){return Zc(this,e,cm(this,e,n,i))}moveByGroup(e,n){return Zc(this,e,cm(this,e,n,i=>ek(this,e.head,i)))}visualLineSide(e,n){let i=this.bidiSpans(e),r=this.textDirectionAt(e.from),s=i[n?i.length-1:0];return R.cursor(s.side(n,r)+e.from,s.forward(!n,r)?1:-1)}moveToLineBoundary(e,n,i=!0){return KP(this,e,n,i)}moveVertically(e,n,i){return Zc(this,e,tk(this,e,n,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),am(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let i=this.docView.coordsAt(e,n);if(!i||i.left==i.right)return i;let r=this.state.doc.lineAt(e),s=this.bidiSpans(r),o=s[ti.find(s,e-r.from,-1,n)];return Oc(i,o.dir==ze.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Bh)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Vk)return Nh(e.length);let n=this.textDirectionAt(e.from),i;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==n&&(s.fresh||Zh(s.isolates,i=Jh(this,e))))return s.order;i||(i=Jh(this,e));let r=RP(e.text,n,i);return this.bidiCache.push(new Wo(e.from,e.to,n,i,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||J.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{gh(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return Ao.of(new lr(typeof e=="number"?R.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return Ao.of(new lr(R.cursor(i.from),"start","start",i.top-e,n,!0))}static domEventHandlers(e){return At.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return At.define(()=>({}),{eventObservers:e})}static theme(e,n){let i=Hn.newName(),r=[Vo.of(i),us.of(qc(`.${i}`,e))];return n&&n.dark&&r.push(Vc.of(!0)),r}static baseTheme(e){return bo.lowest(us.of(qc("."+Wc,e,Rm)))}static findFromDOM(e){var n;let i=e.querySelector(".cm-content"),r=i&&we.get(i)||we.get(e);return((n=r==null?void 0:r.rootView)===null||n===void 0?void 0:n.view)||null}}ne.styleModule=us,ne.inputHandler=zh,ne.scrollHandler=Uh,ne.focusChangeEffect=Yh,ne.perLineTextDirection=Bh,ne.exceptionSink=qh,ne.updateListener=Ac,ne.editable=Do,ne.mouseSelectionStyle=Wh,ne.dragMovesSelection=Vh,ne.clickAddsSelectionRange=Xh,ne.decorations=cs,ne.outerDecorations=Gh,ne.atomicRanges=Rc,ne.bidiIsolatedRanges=Hh,ne.scrollMargins=Kh,ne.darkTheme=Vc,ne.cspNonce=te.define({combine:t=>t.length?t[0]:""}),ne.contentAttributes=Mc,ne.editorAttributes=Fh,ne.lineWrapping=ne.contentAttributes.of({class:"cm-lineWrapping"}),ne.announce=Te.define();const Vk=4096,Lm={};class Wo{constructor(e,n,i,r,s,o){this.from=e,this.to=n,this.dir=i,this.isolates=r,this.fresh=s,this.order=o}static update(e,n){if(n.empty&&!e.some(s=>s.fresh))return e;let i=[],r=e.length?e[e.length-1].dir:ze.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir==r&&!n.touchesRange(o.from,o.to)&&i.push(new Wo(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return i}}function Xm(t,e,n){for(let i=t.state.facet(e),r=i.length-1;r>=0;r--){let s=i[r],o=typeof s=="function"?s(t):s;o&&Pc(o,n)}return n}const Wk=J.mac?"mac":J.windows?"win":J.linux?"linux":"key";function qk(t,e){const n=t.split(/-(?!$)/);let i=n[n.length-1];i=="Space"&&(i=" ");let r,s,o,a;for(let l=0;l<n.length-1;++l){const c=n[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))s=!0;else if(/^s(hift)?$/i.test(c))o=!0;else if(/^mod$/i.test(c))e=="mac"?a=!0:s=!0;else throw new Error("Unrecognized modifier name: "+c)}return r&&(i="Alt-"+i),s&&(i="Ctrl-"+i),a&&(i="Meta-"+i),o&&(i="Shift-"+i),i}function qo(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const zk=bo.default(ne.domEventHandlers({keydown(t,e){return Fk(Yk(e.state),t,e,"editor")}})),zo=te.define({enables:zk}),Vm=new WeakMap;function Yk(t){let e=t.facet(zo),n=Vm.get(e);return n||Vm.set(e,n=Uk(e.reduce((i,r)=>i.concat(r),[]))),n}let ni=null;const Bk=4e3;function Uk(t,e=Wk){let n=Object.create(null),i=Object.create(null),r=(o,a)=>{let l=i[o];if(l==null)i[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,a,l,c,u)=>{var d,p;let f=n[o]||(n[o]=Object.create(null)),h=a.split(/ (?!$)/).map(O=>qk(O,e));for(let O=1;O<h.length;O++){let v=h.slice(0,O).join(" ");r(v,!0),f[v]||(f[v]={preventDefault:!0,stopPropagation:!1,run:[x=>{let b=ni={view:x,prefix:v,scope:o};return setTimeout(()=>{ni==b&&(ni=null)},Bk),!0}]})}let m=h.join(" ");r(m,!1);let g=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((p=(d=f._any)===null||d===void 0?void 0:d.run)===null||p===void 0?void 0:p.slice())||[]});l&&g.run.push(l),c&&(g.preventDefault=!0),u&&(g.stopPropagation=!0)};for(let o of t){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of a){let u=n[c]||(n[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let d in u)u[d].run.push(o.any)}let l=o[e]||o.key;if(l)for(let c of a)s(c,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(c,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return n}function Fk(t,e,n,i){let r=gP(e),s=ln(r,0),o=er(s)==r.length&&r!=" ",a="",l=!1,c=!1,u=!1;ni&&ni.view==n&&ni.scope==i&&(a=ni.prefix+" ",pm.indexOf(e.keyCode)<0&&(c=!0,ni=null));let d=new Set,p=g=>{if(g){for(let O of g.run)if(!d.has(O)&&(d.add(O),O(n,e)))return g.stopPropagation&&(u=!0),!0;g.preventDefault&&(g.stopPropagation&&(u=!0),c=!0)}return!1},f=t[i],h,m;return f&&(p(f[a+qo(r,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(J.windows&&e.ctrlKey&&e.altKey)&&(h=Jn[e.keyCode])&&h!=r?(p(f[a+qo(h,e,!0)])||e.shiftKey&&(m=ns[e.keyCode])!=r&&m!=h&&p(f[a+qo(m,e,!1)]))&&(l=!0):o&&e.shiftKey&&p(f[a+qo(r,e,!0)])&&(l=!0),!l&&p(f._any)&&(l=!0)),c&&(l=!0),l&&u&&e.stopPropagation(),l}const Gk=!J.ios,Wm={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Gk&&(Wm[".cm-line"].caretColor="transparent !important",Wm[".cm-content"]={caretColor:"transparent !important"});function qm(t,e,n,i,r){e.lastIndex=0;for(let s=t.iterRange(n,i),o=n,a;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;a=e.exec(s.value);)r(o+a.index,a)}function Hk(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let i=[];for(let{from:r,to:s}of n)r=Math.max(t.state.doc.lineAt(r).from,r-e),s=Math.min(t.state.doc.lineAt(s).to,s+e),i.length&&i[i.length-1].to>=r?i[i.length-1].to=s:i.push({from:r,to:s});return i}class Jk{constructor(e){const{regexp:n,decoration:i,decorate:r,boundary:s,maxLength:o=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,r)this.addMatch=(a,l,c,u)=>r(u,c,c+a[0].length,a,l);else if(typeof i=="function")this.addMatch=(a,l,c,u)=>{let d=i(a,l,c);d&&u(c,c+a[0].length,d)};else if(i)this.addMatch=(a,l,c,u)=>u(c,c+a[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(e){let n=new nr,i=n.add.bind(n);for(let{from:r,to:s}of Hk(e,this.maxLength))qm(e.state.doc,this.regexp,r,s,(o,a)=>this.addMatch(a,e,o,i));return n.finish()}updateDeco(e,n){let i=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,o,a,l)=>{l>e.view.viewport.from&&a<e.view.viewport.to&&(i=Math.min(a,i),r=Math.max(l,r))}),e.viewportChanged||r-i>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,n.map(e.changes),i,r):n}updateRange(e,n,i,r){for(let s of e.visibleRanges){let o=Math.max(s.from,i),a=Math.min(s.to,r);if(a>o){let l=e.state.doc.lineAt(o),c=l.to<a?e.state.doc.lineAt(a):l,u=Math.max(s.from,l.from),d=Math.min(s.to,c.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){u=o;break}for(;a<c.to;a++)if(this.boundary.test(c.text[a-c.from])){d=a;break}}let p=[],f,h=(m,g,O)=>p.push(O.range(m,g));if(l==c)for(this.regexp.lastIndex=u-l.from;(f=this.regexp.exec(l.text))&&f.index<d-l.from;)this.addMatch(f,e,f.index+l.from,h);else qm(e.state.doc,this.regexp,u,d,(m,g)=>this.addMatch(g,e,m,h));n=n.update({filterFrom:u,filterTo:d,filter:(m,g)=>m<u||g>d,add:p})}}return n}}const Yc=/x/.unicode!=null?"gu":"g",Kk=new RegExp(`[\0-\b
51
+ --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Yc),e$={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Bc=null;function t$(){var t;if(Bc==null&&typeof document<"u"&&document.body){let e=document.body.style;Bc=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Bc||!1}const Yo=te.define({combine(t){let e=Po(t,{render:null,specialChars:Kk,addSpecialChars:null});return(e.replaceTabs=!t$())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Yc)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Yc)),e}});function n$(t={}){return[Yo.of(t),i$()]}let zm=null;function i$(){return zm||(zm=At.fromClass(class{constructor(t){this.view=t,this.decorations=ue.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(Yo)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Jk({regexp:t.specialChars,decoration:(e,n,i)=>{let{doc:r}=n.state,s=ln(e[0],0);if(s==9){let o=r.lineAt(i),a=n.state.tabSize,l=ts(o.text,a,i-o.from);return ue.replace({widget:new a$((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=ue.replace({widget:new o$(t,s)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(Yo);t.startState.facet(Yo)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const r$="•";function s$(t){return t>=32?r$:t==10?"␤":String.fromCharCode(9216+t)}class o$ extends or{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=s$(this.code),i=e.state.phrase("Control character")+" "+(e$[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,n);if(r)return r;let s=document.createElement("span");return s.textContent=n,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class a$ extends or{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function l$(){return u$}const c$=ue.line({class:"cm-activeLine"}),u$=At.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let i of t.state.selection.ranges){let r=t.lineBlockAt(i.head);r.from>e&&(n.push(c$.range(r.from)),e=r.from)}return ue.set(n)}},{decorations:t=>t.decorations});class Mi extends Ci{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Mi.prototype.elementClass="",Mi.prototype.toDOM=void 0,Mi.prototype.mapMode=et.TrackBefore,Mi.prototype.startSide=Mi.prototype.endSide=-1,Mi.prototype.point=!0;const Uc=te.define(),Bo=te.define(),Fc=te.define({combine:t=>t.some(e=>e)});function d$(t){let e=[p$];return t&&t.fixed===!1&&e.push(Fc.of(!0)),e}const p$=At.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Bo).map(e=>new Bm(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Fc),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,i=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(i<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(Fc)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=Oe.iter(this.view.state.facet(Uc),this.view.viewport.from),i=[],r=this.gutters.map(s=>new f$(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(s.type)){let o=!0;for(let a of s.type)if(a.type==Ht.Text&&o){Gc(n,i,a.from);for(let l of r)l.line(this.view,a,i);o=!1}else if(a.widget)for(let l of r)l.widget(this.view,a)}else if(s.type==Ht.Text){Gc(n,i,s.from);for(let o of r)o.line(this.view,s,i)}else if(s.widget)for(let o of r)o.widget(this.view,s);for(let s of r)s.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Bo),n=t.state.facet(Bo),i=t.docChanged||t.heightChanged||t.viewportChanged||!Oe.eq(t.startState.facet(Uc),t.state.facet(Uc),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let r of this.gutters)r.update(t)&&(i=!0);else{i=!0;let r=[];for(let s of n){let o=e.indexOf(s);o<0?r.push(new Bm(this.view,s)):(this.gutters[o].update(t),r.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),r.indexOf(s)<0&&s.destroy();for(let s of r)this.dom.appendChild(s.dom);this.gutters=r}return i}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>ne.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==ze.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function Ym(t){return Array.isArray(t)?t:[t]}function Gc(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class f${constructor(e,n,i){this.gutter=e,this.height=i,this.i=0,this.cursor=Oe.iter(e.markers,n.from)}addElement(e,n,i){let{gutter:r}=this,s=(n.top-this.height)/e.scaleY,o=n.height/e.scaleY;if(this.i==r.elements.length){let a=new Um(e,o,s,i);r.elements.push(a),r.dom.appendChild(a.dom)}else r.elements[this.i].update(e,o,s,i);this.height=n.bottom,this.i++}line(e,n,i){let r=[];Gc(this.cursor,r,n.from),i.length&&(r=r.concat(i));let s=this.gutter.config.lineMarker(e,n,r);s&&r.unshift(s);let o=this.gutter;r.length==0&&!o.config.renderEmptyElements||this.addElement(e,n,r)}widget(e,n){let i=this.gutter.config.widgetMarker(e,n.widget,n);i&&this.addElement(e,n,[i])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class Bm{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in n.domEventHandlers)this.dom.addEventListener(i,r=>{let s=r.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=r.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);n.domEventHandlers[i](e,a,r)&&r.preventDefault()});this.markers=Ym(n.markers(e)),n.initialSpacer&&(this.spacer=new Um(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=Ym(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let i=e.view.viewport;return!Oe.eq(this.markers,n,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Um{constructor(e,n,i,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,i,r)}update(e,n,i,r){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),h$(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,n){let i="cm-gutterElement",r=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<n.length?n[s++]:null,c=!1;if(l){let u=l.elementClass;u&&(i+=" "+u);for(let d=o;d<this.markers.length;d++)if(this.markers[d].compare(l)){a=d,c=!0;break}}else a=this.markers.length;for(;o<a;){let u=this.markers[o++];if(u.toDOM){u.destroy(r);let d=r.nextSibling;r.remove(),r=d}}if(!l)break;l.toDOM&&(c?r=r.nextSibling:this.dom.insertBefore(l.toDOM(e),r)),c&&o++}this.dom.className=i,this.markers=n}destroy(){this.setMarkers(null,[])}}function h$(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const m$=te.define(),cr=te.define({combine(t){return Po(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let i=Object.assign({},e);for(let r in n){let s=i[r],o=n[r];i[r]=s?(a,l,c)=>s(a,l,c)||o(a,l,c):o}return i}})}});class Hc extends Mi{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Jc(t,e){return t.state.facet(cr).formatNumber(e,t.state)}const g$=Bo.compute([cr],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(m$)},lineMarker(e,n,i){return i.some(r=>r.toDOM)?null:new Hc(Jc(e,e.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(cr)!=e.state.facet(cr),initialSpacer(e){return new Hc(Jc(e,Fm(e.state.doc.lines)))},updateSpacer(e,n){let i=Jc(n.view,Fm(n.view.state.doc.lines));return i==e.number?e:new Hc(i)},domEventHandlers:t.facet(cr).domEventHandlers}));function v$(t={}){return[cr.of(t),d$(),g$]}function Fm(t){let e=9;for(;e<t;)e=e*10+9;return e}const Gm=1024;let O$=0;class Rt{constructor(e,n){this.from=e,this.to=n}}class ce{constructor(e={}){this.id=O$++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=dt.match(e)),n=>{let i=e(n);return i===void 0?null:[this,i]}}}ce.closedBy=new ce({deserialize:t=>t.split(" ")}),ce.openedBy=new ce({deserialize:t=>t.split(" ")}),ce.group=new ce({deserialize:t=>t.split(" ")}),ce.isolate=new ce({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),ce.contextHash=new ce({perNode:!0}),ce.lookAhead=new ce({perNode:!0}),ce.mounted=new ce({perNode:!0});class fs{constructor(e,n,i){this.tree=e,this.overlay=n,this.parser=i}static get(e){return e&&e.props&&e.props[ce.mounted.id]}}const x$=Object.create(null);class dt{constructor(e,n,i,r=0){this.name=e,this.props=n,this.id=i,this.flags=r}static define(e){let n=e.props&&e.props.length?Object.create(null):x$,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new dt(e.name||"",n,e.id,i);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(ce.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let r of i.split(" "))n[r]=e[i];return i=>{for(let r=i.prop(ce.group),s=-1;s<(r?r.length:0);s++){let o=n[s<0?i.name:r[s]];if(o)return o}}}}dt.none=new dt("",Object.create(null),0,8);class Kc{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let i of this.types){let r=null;for(let s of e){let o=s(i);o&&(r||(r=Object.assign({},i.props)),r[o[0].id]=o[1])}n.push(r?new dt(i.name,r,i.id,i.flags):i)}return new Kc(n)}}const Uo=new WeakMap,Hm=new WeakMap;var ke;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(ke||(ke={}));let Xe=class df{constructor(e,n,i,r,s){if(this.type=e,this.children=n,this.positions=i,this.length=r,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let e=fs.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let i of this.children){let r=i.toString();r&&(n&&(n+=","),n+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new Fo(this.topNode,e)}cursorAt(e,n=0,i=0){let r=Uo.get(this)||this.topNode,s=new Fo(r);return s.moveTo(e,n),Uo.set(this,s._tree),s}get topNode(){return new it(this,0,0,null)}resolve(e,n=0){let i=hs(Uo.get(this)||this.topNode,e,n,!1);return Uo.set(this,i),i}resolveInner(e,n=0){let i=hs(Hm.get(this)||this.topNode,e,n,!0);return Hm.set(this,i),i}resolveStack(e,n=0){return w$(this,e,n)}iterate(e){let{enter:n,leave:i,from:r=0,to:s=this.length}=e,o=e.mode||0,a=(o&ke.IncludeAnonymous)>0;for(let l=this.cursor(o|ke.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=r&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&i&&(a||!l.type.isAnonymous)&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:iu(dt.none,this.children,this.positions,0,this.children.length,0,this.length,(n,i,r)=>new df(this.type,n,i,r,this.propValues),e.makeTree||((n,i,r)=>new df(dt.none,n,i,r)))}static build(e){return S$(e)}};Xe.empty=new Xe(dt.none,[],[],0);class eu{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new eu(this.buffer,this.index)}}class ii{constructor(e,n,i){this.buffer=e,this.length=n,this.set=i}get type(){return dt.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],i=this.buffer[e+3],r=this.set.types[n],s=r.name;if(/\W/.test(s)&&!r.isError&&(s=JSON.stringify(s)),e+=4,i==e)return s;let o=[];for(;e<i;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,n,i,r,s){let{buffer:o}=this,a=-1;for(let l=e;l!=n&&!(Jm(s,r,o[l+1],o[l+2])&&(a=l,i>0));l=o[l+3]);return a}slice(e,n,i){let r=this.buffer,s=new Uint16Array(n-e),o=0;for(let a=e,l=0;a<n;){s[l++]=r[a++],s[l++]=r[a++]-i;let c=s[l++]=r[a++]-i;s[l++]=r[a++]-e,o=Math.max(o,c)}return new ii(s,o,this.set)}}function Jm(t,e,n,i){switch(t){case-2:return n<e;case-1:return i>=e&&n<e;case 0:return n<e&&i>e;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function hs(t,e,n,i){for(var r;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let o=!i&&t instanceof it&&t.index<0?null:t.parent;if(!o)return t;t=o}let s=i?0:ke.IgnoreOverlays;if(i)for(let o=t,a=o.parent;a;o=a,a=o.parent)o instanceof it&&o.index<0&&((r=a.enter(e,n,s))===null||r===void 0?void 0:r.from)!=o.from&&(t=a);for(;;){let o=t.enter(e,n,s);if(!o)return t;t=o}}class Km{cursor(e=0){return new Fo(this,e)}getChild(e,n=null,i=null){let r=eg(this,e,n,i);return r.length?r[0]:null}getChildren(e,n=null,i=null){return eg(this,e,n,i)}resolve(e,n=0){return hs(this,e,n,!1)}resolveInner(e,n=0){return hs(this,e,n,!0)}matchContext(e){return tu(this,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),i=this;for(;n;){let r=n.lastChild;if(!r||r.to!=n.to)break;r.type.isError&&r.from==r.to?(i=n,n=r.prevSibling):n=r}return i}get node(){return this}get next(){return this.parent}}class it extends Km{constructor(e,n,i,r){super(),this._tree=e,this.from=n,this.index=i,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,i,r,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=n>0?a.length:-1;e!=c;e+=n){let u=a[e],d=l[e]+o.from;if(Jm(r,i,d,d+u.length)){if(u instanceof ii){if(s&ke.ExcludeBuffers)continue;let p=u.findChild(0,u.buffer.length,n,i-d,r);if(p>-1)return new fn(new b$(o,u,e,d),null,p)}else if(s&ke.IncludeAnonymous||!u.type.isAnonymous||nu(u)){let p;if(!(s&ke.IgnoreMounts)&&(p=fs.get(u))&&!p.overlay)return new it(p.tree,d,e,o);let f=new it(u,d,e,o);return s&ke.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(n<0?u.children.length-1:0,n,i,r)}}}if(s&ke.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+n:e=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,i=0){let r;if(!(i&ke.IgnoreOverlays)&&(r=fs.get(this._tree))&&r.overlay){let s=e-this.from;for(let{from:o,to:a}of r.overlay)if((n>0?o<=s:o<s)&&(n<0?a>=s:a>s))return new it(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function eg(t,e,n,i){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(n!=null){for(let o=!1;!o;)if(o=r.type.is(n),!r.nextSibling())return s}for(;;){if(i!=null&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return i==null?s:[]}}function tu(t,e,n=e.length-1){for(let i=t.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class b${constructor(e,n,i,r){this.parent=e,this.buffer=n,this.index=i,this.start=r}}class fn extends Km{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,i){super(),this.context=e,this._parent=n,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,n,i){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.context.start,i);return s<0?null:new fn(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,i=0){if(i&ke.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return s<0?null:new fn(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new fn(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new fn(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:i}=this.context,r=this.index+4,s=i.buffer[this.index+3];if(s>r){let o=i.buffer[this.index+1];e.push(i.slice(r,s,o)),n.push(0)}return new Xe(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function tg(t){if(!t.length)return null;let e=0,n=t[0];for(let s=1;s<t.length;s++){let o=t[s];(o.from>n.from||o.to<n.to)&&(n=o,e=s)}let i=n instanceof it&&n.index<0?null:n.parent,r=t.slice();return i?r[e]=i:r.splice(e,1),new y$(r,n)}class y${constructor(e,n){this.heads=e,this.node=n}get next(){return tg(this.heads)}}function w$(t,e,n){let i=t.resolveInner(e,n),r=null;for(let s=i instanceof it?i:i.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(r||(r=[i])).push(o.resolve(e,n)),s=o}else{let o=fs.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let a=new it(o.tree,o.overlay[0].from+s.from,-1,s);(r||(r=[i])).push(hs(a,e,n,!1))}}return r?tg(r):i}class Fo{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof it)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:i,buffer:r}=this.buffer;return this.type=n||r.set.types[r.buffer[e]],this.from=i+r.buffer[e+1],this.to=i+r.buffer[e+2],!0}yield(e){return e?e instanceof it?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,i,this.mode));let{buffer:r}=this.buffer,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.buffer.start,i);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,i=this.mode){return this.buffer?i&ke.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ke.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&ke.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,i=this.stack.length-1;if(e<0){let r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(n.findChild(r,this.index,-1,0,4))}else{let r=n.buffer[this.index+3];if(r<(i<0?n.buffer.length:n.buffer[this.stack[i]+3]))return this.yieldBuf(r)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,i,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(r.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:i}=r)}else({index:n,_parent:i}=this._tree);for(;i;{index:n,_parent:i}=i)if(n>-1)for(let s=n+e,o=e<0?-1:i._tree.children.length;s!=o;s+=e){let a=i._tree.children[s];if(this.mode&ke.IncludeAnonymous||a instanceof ii||!a.type.isAnonymous||nu(a))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,i=0;if(e&&e.context==this.buffer)e:for(let r=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;n=o,i=s+1;break e}r=this.stack[--s]}for(let r=i;r<this.stack.length;r++)n=new fn(this.buffer,n,this.stack[r]);return this.bufferNode=new fn(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let i=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(r=!0)}for(;r&&n&&n(this),r=this.type.isAnonymous,!this.nextSibling();){if(!i)return;this.parent(),i--,r=!0}}}matchContext(e){if(!this.buffer)return tu(this.node,e);let{buffer:n}=this.buffer,{types:i}=n.set;for(let r=e.length-1,s=this.stack.length-1;r>=0;s--){if(s<0)return tu(this.node,e,r);let o=i[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function nu(t){return t.children.some(e=>e instanceof ii||!e.type.isAnonymous||nu(e))}function S$(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:r=Gm,reused:s=[],minRepeatType:o=i.types.length}=t,a=Array.isArray(n)?new eu(n,n.length):n,l=i.types,c=0,u=0;function d(w,y,k,T,E,C){let{id:M,start:Z,end:q,size:N}=a,_=u;for(;N<0;)if(a.next(),N==-1){let B=s[M];k.push(B),T.push(Z-w);return}else if(N==-3){c=M;return}else if(N==-4){u=M;return}else throw new RangeError(`Unrecognized record size: ${N}`);let G=l[M],ee,le,he=Z-w;if(q-Z<=r&&(le=g(a.pos-y,E))){let B=new Uint16Array(le.size-le.skip),A=a.pos-le.size,V=B.length;for(;a.pos>A;)V=O(le.start,B,V);ee=new ii(B,q-le.start,i),he=le.start-w}else{let B=a.pos-N;a.next();let A=[],V=[],X=M>=o?M:-1,D=0,W=q;for(;a.pos>B;)X>=0&&a.id==X&&a.size>=0?(a.end<=W-r&&(h(A,V,Z,D,a.end,W,X,_),D=A.length,W=a.end),a.next()):C>2500?p(Z,B,A,V):d(Z,B,A,V,X,C+1);if(X>=0&&D>0&&D<A.length&&h(A,V,Z,D,Z,W,X,_),A.reverse(),V.reverse(),X>-1&&D>0){let se=f(G);ee=iu(G,A,V,0,A.length,0,q-Z,se,se)}else ee=m(G,A,V,q-Z,_-q)}k.push(ee),T.push(he)}function p(w,y,k,T){let E=[],C=0,M=-1;for(;a.pos>y;){let{id:Z,start:q,end:N,size:_}=a;if(_>4)a.next();else{if(M>-1&&q<M)break;M<0&&(M=N-r),E.push(Z,q,N),C++,a.next()}}if(C){let Z=new Uint16Array(C*4),q=E[E.length-2];for(let N=E.length-3,_=0;N>=0;N-=3)Z[_++]=E[N],Z[_++]=E[N+1]-q,Z[_++]=E[N+2]-q,Z[_++]=_;k.push(new ii(Z,E[2]-q,i)),T.push(q-w)}}function f(w){return(y,k,T)=>{let E=0,C=y.length-1,M,Z;if(C>=0&&(M=y[C])instanceof Xe){if(!C&&M.type==w&&M.length==T)return M;(Z=M.prop(ce.lookAhead))&&(E=k[C]+M.length+Z)}return m(w,y,k,T,E)}}function h(w,y,k,T,E,C,M,Z){let q=[],N=[];for(;w.length>T;)q.push(w.pop()),N.push(y.pop()+k-E);w.push(m(i.types[M],q,N,C-E,Z-C)),y.push(E-k)}function m(w,y,k,T,E=0,C){if(c){let M=[ce.contextHash,c];C=C?[M].concat(C):[M]}if(E>25){let M=[ce.lookAhead,E];C=C?[M].concat(C):[M]}return new Xe(w,y,k,T,C)}function g(w,y){let k=a.fork(),T=0,E=0,C=0,M=k.end-r,Z={size:0,start:0,skip:0};e:for(let q=k.pos-w;k.pos>q;){let N=k.size;if(k.id==y&&N>=0){Z.size=T,Z.start=E,Z.skip=C,C+=4,T+=4,k.next();continue}let _=k.pos-N;if(N<0||_<q||k.start<M)break;let G=k.id>=o?4:0,ee=k.start;for(k.next();k.pos>_;){if(k.size<0)if(k.size==-3)G+=4;else break e;else k.id>=o&&(G+=4);k.next()}E=ee,T+=N,C+=G}return(y<0||T==w)&&(Z.size=T,Z.start=E,Z.skip=C),Z.size>4?Z:void 0}function O(w,y,k){let{id:T,start:E,end:C,size:M}=a;if(a.next(),M>=0&&T<o){let Z=k;if(M>4){let q=a.pos-(M-4);for(;a.pos>q;)k=O(w,y,k)}y[--k]=Z,y[--k]=C-w,y[--k]=E-w,y[--k]=T}else M==-3?c=T:M==-4&&(u=T);return k}let v=[],x=[];for(;a.pos>0;)d(t.start||0,t.bufferStart||0,v,x,-1,0);let b=(e=t.length)!==null&&e!==void 0?e:v.length?x[0]+v[0].length:0;return new Xe(l[t.topID],v.reverse(),x.reverse(),b)}const ng=new WeakMap;function Go(t,e){if(!t.isAnonymous||e instanceof ii||e.type!=t)return 1;let n=ng.get(e);if(n==null){n=1;for(let i of e.children){if(i.type!=t||!(i instanceof Xe)){n=1;break}n+=Go(t,i)}ng.set(e,n)}return n}function iu(t,e,n,i,r,s,o,a,l){let c=0;for(let h=i;h<r;h++)c+=Go(t,e[h]);let u=Math.ceil(c*1.5/8),d=[],p=[];function f(h,m,g,O,v){for(let x=g;x<O;){let b=x,w=m[x],y=Go(t,h[x]);for(x++;x<O;x++){let k=Go(t,h[x]);if(y+k>=u)break;y+=k}if(x==b+1){if(y>u){let k=h[b];f(k.children,k.positions,0,k.children.length,m[b]+v);continue}d.push(h[b])}else{let k=m[x-1]+h[x-1].length-w;d.push(iu(t,h,m,b,x,w,k,null,l))}p.push(w+v-s)}}return f(e,n,i,r,0),(a||l)(d,p,o)}class ig{constructor(){this.map=new WeakMap}setBuffer(e,n,i){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(n,i)}getBuffer(e,n){let i=this.map.get(e);return i&&i.get(n)}set(e,n){e instanceof fn?this.setBuffer(e.context.buffer,e.index,n):e instanceof it&&this.map.set(e.tree,n)}get(e){return e instanceof fn?this.getBuffer(e.context.buffer,e.index):e instanceof it?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Rn{constructor(e,n,i,r,s=!1,o=!1){this.from=e,this.to=n,this.tree=i,this.offset=r,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],i=!1){let r=[new Rn(0,e.length,e,0,!1,i)];for(let s of n)s.to>e.length&&r.push(s);return r}static applyChanges(e,n,i=128){if(!n.length)return e;let r=[],s=1,o=e.length?e[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,d=u?u.fromA:1e9;if(d-l>=i)for(;o&&o.from<d;){let p=o;if(l>=p.from||d<=p.to||c){let f=Math.max(p.from,l)-c,h=Math.min(p.to,d)-c;p=f>=h?null:new Rn(f,h,p.tree,p.offset+c,a>0,!!u)}if(p&&r.push(p),o.to>d)break;o=s<e.length?e[s++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return r}}class rg{startParse(e,n,i){return typeof e=="string"&&(e=new P$(e)),i=i?i.length?i.map(r=>new Rt(r.from,r.to)):[new Rt(0,0)]:[new Rt(0,e.length)],this.createParse(e,n||[],i)}parse(e,n,i){let r=this.startParse(e,n,i);for(;;){let s=r.advance();if(s)return s}}}class P${constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}function k$(t){return(e,n,i,r)=>new T$(e,t,n,i,r)}class sg{constructor(e,n,i,r,s){this.parser=e,this.parse=n,this.overlay=i,this.target=r,this.from=s}}function og(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class $${constructor(e,n,i,r,s,o,a){this.parser=e,this.predicate=n,this.mounts=i,this.index=r,this.start=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const ru=new ce({perNode:!0});class T${constructor(e,n,i,r,s){this.nest=n,this.input=i,this.fragments=r,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let i=this.baseParse.advance();if(!i)return null;if(this.baseParse=null,this.baseTree=i,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let i=this.baseTree;return this.stoppedAt!=null&&(i=new Xe(i.type,i.children,i.positions,i.length,i.propValues.concat([[ru,this.stoppedAt]]))),i}let e=this.inner[this.innerDone],n=e.parse.advance();if(n){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[ce.mounted.id]=new fs(n,e.overlay,e.parser),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<e&&(e=Math.min(e,this.inner[n].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(e)}startInner(){let e=new E$(this.fragments),n=null,i=null,r=new Fo(new it(this.baseTree,this.ranges[0].from,0,null),ke.IncludeAnonymous|ke.IgnoreMounts);e:for(let s,o;;){let a=!0,l;if(this.stoppedAt!=null&&r.from>=this.stoppedAt)a=!1;else if(e.hasNode(r)){if(n){let c=n.mounts.find(u=>u.frag.from<=r.from&&u.frag.to>=r.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,p=u.to+c.pos;d>=r.from&&p<=r.to&&!n.ranges.some(f=>f.from<p&&f.to>d)&&n.ranges.push({from:d,to:p})}}a=!1}else if(i&&(o=Q$(i.ranges,r.from,r.to)))a=o!=2;else if(!r.type.isAnonymous&&(s=this.nest(r,this.input))&&(r.from<r.to||!s.overlay)){r.tree||C$(r);let c=e.findMounts(r.from,s.parser);if(typeof s.overlay=="function")n=new $$(s.parser,s.overlay,c,this.inner.length,r.from,r.tree,n);else{let u=cg(this.ranges,s.overlay||(r.from<r.to?[new Rt(r.from,r.to)]:[]));u.length&&og(u),(u.length||!s.overlay)&&this.inner.push(new sg(s.parser,u.length?s.parser.startParse(this.input,ug(c,u),u):s.parser.startParse(""),s.overlay?s.overlay.map(d=>new Rt(d.from-r.from,d.to-r.from)):null,r.tree,u.length?u[0].from:r.from)),s.overlay?u.length&&(i={ranges:u,depth:0,prev:i}):a=!1}}else n&&(l=n.predicate(r))&&(l===!0&&(l=new Rt(r.from,r.to)),l.from<l.to&&n.ranges.push(l));if(a&&r.firstChild())n&&n.depth++,i&&i.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(n&&!--n.depth){let c=cg(this.ranges,n.ranges);c.length&&(og(c),this.inner.splice(n.index,0,new sg(n.parser,n.parser.startParse(this.input,ug(n.mounts,c),c),n.ranges.map(u=>new Rt(u.from-n.start,u.to-n.start)),n.target,c[0].from))),n=n.prev}i&&!--i.depth&&(i=i.prev)}}}}function Q$(t,e,n){for(let i of t){if(i.from>=n)break;if(i.to>e)return i.from<=e&&i.to>=n?2:1}return 0}function ag(t,e,n,i,r,s){if(e<n){let o=t.buffer[e+1];i.push(t.slice(e,n,o)),r.push(o-s)}}function C$(t){let{node:e}=t,n=[],i=e.context.buffer;do n.push(t.index),t.parent();while(!t.tree);let r=t.tree,s=r.children.indexOf(i),o=r.children[s],a=o.buffer,l=[s];function c(u,d,p,f,h,m){let g=n[m],O=[],v=[];ag(o,u,g,O,v,f);let x=a[g+1],b=a[g+2];l.push(O.length);let w=m?c(g+4,a[g+3],o.set.types[a[g]],x,b-x,m-1):e.toTree();return O.push(w),v.push(x-f),ag(o,a[g+3],d,O,v,f),new Xe(p,O,v,h)}r.children[s]=c(0,a.length,dt.none,0,o.length,n.length-1);for(let u of l){let d=t.tree.children[u],p=t.tree.positions[u];t.yield(new it(d,p+t.from,u,t._tree))}}class lg{constructor(e,n){this.offset=n,this.done=!1,this.cursor=e.cursor(ke.IncludeAnonymous|ke.IgnoreMounts)}moveTo(e){let{cursor:n}=this,i=e-this.offset;for(;!this.done&&n.from<i;)n.to>=e&&n.enter(i,1,ke.IgnoreOverlays|ke.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==e.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof Xe)n=n.children[0];else break}return!1}}let E$=class{constructor(e){var n;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let i=this.curFrag=e[0];this.curTo=(n=i.tree.prop(ru))!==null&&n!==void 0?n:i.to,this.inner=new lg(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(e=n.tree.prop(ru))!==null&&e!==void 0?e:n.to,this.inner=new lg(n.tree,-n.offset)}}findMounts(e,n){var i;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(i=s.tree)===null||i===void 0?void 0:i.prop(ce.mounted);if(o&&o.parser==n)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=s.to)break;l.tree==this.curFrag.tree&&r.push({frag:l,pos:s.from-l.offset,mount:o})}}}return r}};function cg(t,e){let n=null,i=e;for(let r=1,s=0;r<t.length;r++){let o=t[r-1].to,a=t[r].from;for(;s<i.length;s++){let l=i[s];if(l.from>=a)break;l.to<=o||(n||(i=n=e.slice()),l.from<o?(n[s]=new Rt(l.from,o),l.to>a&&n.splice(s+1,0,new Rt(a,l.to))):l.to>a?n[s--]=new Rt(a,l.to):n.splice(s--,1))}}return i}function j$(t,e,n,i){let r=0,s=0,o=!1,a=!1,l=-1e9,c=[];for(;;){let u=r==t.length?1e9:o?t[r].to:t[r].from,d=s==e.length?1e9:a?e[s].to:e[s].from;if(o!=a){let p=Math.max(l,n),f=Math.min(u,d,i);p<f&&c.push(new Rt(p,f))}if(l=Math.min(u,d),l==1e9)break;u==l&&(o?(o=!1,r++):o=!0),d==l&&(a?(a=!1,s++):a=!0)}return c}function ug(t,e){let n=[];for(let{pos:i,mount:r,frag:s}of t){let o=i+(r.overlay?r.overlay[0].from:0),a=o+r.tree.length,l=Math.max(s.from,o),c=Math.min(s.to,a);if(r.overlay){let u=r.overlay.map(p=>new Rt(p.from+i,p.to+i)),d=j$(e,u,l,c);for(let p=0,f=l;;p++){let h=p==d.length,m=h?c:d[p].from;if(m>f&&n.push(new Rn(f,m,r.tree,-o,s.from>=f||s.openStart,s.to<=m||s.openEnd)),h)break;f=d[p].to}}else n.push(new Rn(l,c,r.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return n}let A$=0;class hn{constructor(e,n,i){this.set=e,this.base=n,this.modified=i,this.id=A$++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let n=new hn([],null,[]);if(n.set.push(n),e)for(let i of e.set)n.set.push(i);return n}static defineModifier(){let e=new Ho;return n=>n.modified.indexOf(e)>-1?n:Ho.get(n.base||n,n.modified.concat(e).sort((i,r)=>i.id-r.id))}}let D$=0;class Ho{constructor(){this.instances=[],this.id=D$++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(a=>a.base==e&&M$(n,a.modified));if(i)return i;let r=[],s=new hn(r,e,n);for(let a of n)a.instances.push(s);let o=R$(n);for(let a of e.set)if(!a.modified.length)for(let l of o)r.push(Ho.get(a,l));return s}}function M$(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}function R$(t){let e=[[]];for(let n=0;n<t.length;n++)for(let i=0,r=e.length;i<r;i++)e.push(e[i].concat(t[n]));return e.sort((n,i)=>i.length-n.length)}function Jo(t){let e=Object.create(null);for(let n in t){let i=t[n];Array.isArray(i)||(i=[i]);for(let r of n.split(" "))if(r){let s=[],o=2,a=r;for(let d=0;;){if(a=="..."&&d>0&&d+3==r.length){o=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!p)throw new RangeError("Invalid path: "+r);if(s.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),d+=p[0].length,d==r.length)break;let f=r[d++];if(d==r.length&&f=="!"){o=0;break}if(f!="/")throw new RangeError("Invalid path: "+r);a=r.slice(d)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+r);let u=new Ko(i,o,l>0?s.slice(0,l):null);e[c]=u.sort(e[c])}}return dg.add(e)}const dg=new ce;class Ko{constructor(e,n,i,r){this.tags=e,this.mode=n,this.context=i,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Ko.empty=new Ko([],2,null);function pg(t,e){let n=Object.create(null);for(let s of t)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:i,all:r=null}=e||{};return{style:s=>{let o=r;for(let a of s)for(let l of a.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:i}}function _$(t,e){let n=null;for(let i of t){let r=i.style(e);r&&(n=n?n+" "+r:r)}return n}function fg(t,e,n,i=0,r=t.length){let s=new I$(i,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),i,r,"",s.highlighters),s.flush(r)}class I${constructor(e,n,i){this.at=e,this.highlighters=n,this.span=i,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,i,r,s){let{type:o,from:a,to:l}=e;if(a>=i||l<=n)return;o.isTop&&(s=this.highlighters.filter(f=>!f.scope||f.scope(o)));let c=r,u=Z$(e)||Ko.empty,d=_$(s,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(r+=(r?" ":"")+d)),this.startSpan(Math.max(n,a),c),u.opaque)return;let p=e.tree&&e.tree.prop(ce.mounted);if(p&&p.overlay){let f=e.node.enter(p.overlay[0].from+a,1),h=this.highlighters.filter(g=>!g.scope||g.scope(p.tree.type)),m=e.firstChild();for(let g=0,O=a;;g++){let v=g<p.overlay.length?p.overlay[g]:null,x=v?v.from+a:l,b=Math.max(n,O),w=Math.min(i,x);if(b<w&&m)for(;e.from<w&&(this.highlightRange(e,b,w,r,s),this.startSpan(Math.min(w,e.to),c),!(e.to>=x||!e.nextSibling())););if(!v||x>i)break;O=v.to+a,O>n&&(this.highlightRange(f.cursor(),Math.max(n,v.from+a),Math.min(i,O),"",h),this.startSpan(Math.min(i,O),c))}m&&e.parent()}else if(e.firstChild()){p&&(r="");do if(!(e.to<=n)){if(e.from>=i)break;this.highlightRange(e,n,i,r,s),this.startSpan(Math.min(i,e.to),c)}while(e.nextSibling());e.parent()}}}function Z$(t){let e=t.type.prop(dg);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const z=hn.define,ea=z(),ri=z(),hg=z(ri),mg=z(ri),si=z(),ta=z(si),su=z(si),mn=z(),Ri=z(mn),gn=z(),vn=z(),ou=z(),ms=z(ou),na=z(),Q={comment:ea,lineComment:z(ea),blockComment:z(ea),docComment:z(ea),name:ri,variableName:z(ri),typeName:hg,tagName:z(hg),propertyName:mg,attributeName:z(mg),className:z(ri),labelName:z(ri),namespace:z(ri),macroName:z(ri),literal:si,string:ta,docString:z(ta),character:z(ta),attributeValue:z(ta),number:su,integer:z(su),float:z(su),bool:z(si),regexp:z(si),escape:z(si),color:z(si),url:z(si),keyword:gn,self:z(gn),null:z(gn),atom:z(gn),unit:z(gn),modifier:z(gn),operatorKeyword:z(gn),controlKeyword:z(gn),definitionKeyword:z(gn),moduleKeyword:z(gn),operator:vn,derefOperator:z(vn),arithmeticOperator:z(vn),logicOperator:z(vn),bitwiseOperator:z(vn),compareOperator:z(vn),updateOperator:z(vn),definitionOperator:z(vn),typeOperator:z(vn),controlOperator:z(vn),punctuation:ou,separator:z(ou),bracket:ms,angleBracket:z(ms),squareBracket:z(ms),paren:z(ms),brace:z(ms),content:mn,heading:Ri,heading1:z(Ri),heading2:z(Ri),heading3:z(Ri),heading4:z(Ri),heading5:z(Ri),heading6:z(Ri),contentSeparator:z(mn),list:z(mn),quote:z(mn),emphasis:z(mn),strong:z(mn),link:z(mn),monospace:z(mn),strikethrough:z(mn),inserted:z(),deleted:z(),changed:z(),invalid:z(),meta:na,documentMeta:z(na),annotation:z(na),processingInstruction:z(na),definition:hn.defineModifier(),constant:hn.defineModifier(),function:hn.defineModifier(),standard:hn.defineModifier(),local:hn.defineModifier(),special:hn.defineModifier()};pg([{tag:Q.link,class:"tok-link"},{tag:Q.heading,class:"tok-heading"},{tag:Q.emphasis,class:"tok-emphasis"},{tag:Q.strong,class:"tok-strong"},{tag:Q.keyword,class:"tok-keyword"},{tag:Q.atom,class:"tok-atom"},{tag:Q.bool,class:"tok-bool"},{tag:Q.url,class:"tok-url"},{tag:Q.labelName,class:"tok-labelName"},{tag:Q.inserted,class:"tok-inserted"},{tag:Q.deleted,class:"tok-deleted"},{tag:Q.literal,class:"tok-literal"},{tag:Q.string,class:"tok-string"},{tag:Q.number,class:"tok-number"},{tag:[Q.regexp,Q.escape,Q.special(Q.string)],class:"tok-string2"},{tag:Q.variableName,class:"tok-variableName"},{tag:Q.local(Q.variableName),class:"tok-variableName tok-local"},{tag:Q.definition(Q.variableName),class:"tok-variableName tok-definition"},{tag:Q.special(Q.variableName),class:"tok-variableName2"},{tag:Q.definition(Q.propertyName),class:"tok-propertyName tok-definition"},{tag:Q.typeName,class:"tok-typeName"},{tag:Q.namespace,class:"tok-namespace"},{tag:Q.className,class:"tok-className"},{tag:Q.macroName,class:"tok-macroName"},{tag:Q.propertyName,class:"tok-propertyName"},{tag:Q.operator,class:"tok-operator"},{tag:Q.comment,class:"tok-comment"},{tag:Q.meta,class:"tok-meta"},{tag:Q.invalid,class:"tok-invalid"},{tag:Q.punctuation,class:"tok-punctuation"}]);var au;const ur=new ce;function gg(t){return te.define({combine:t?e=>e.concat(t):void 0})}const lu=new ce;class Kt{constructor(e,n,i=[],r=""){this.data=e,this.name=r,ve.prototype.hasOwnProperty("tree")||Object.defineProperty(ve.prototype,"tree",{get(){return Ue(this)}}),this.parser=n,this.extension=[fr.of(this),ve.languageData.of((s,o,a)=>{let l=vg(s,o,a),c=l.type.prop(ur);if(!c)return[];let u=s.facet(c),d=l.type.prop(lu);if(d){let p=l.resolve(o-l.from,a);for(let f of d)if(f.test(p,s)){let h=s.facet(f.facet);return f.type=="replace"?h:h.concat(u)}}return u})].concat(i)}isActiveAt(e,n,i=-1){return vg(e,n,i).type.prop(ur)==this.data}findRegions(e){let n=e.facet(fr);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let i=[],r=(s,o)=>{if(s.prop(ur)==this.data){i.push({from:o,to:o+s.length});return}let a=s.prop(ce.mounted);if(a){if(a.tree.prop(ur)==this.data){if(a.overlay)for(let l of a.overlay)i.push({from:l.from+o,to:l.to+o});else i.push({from:o,to:o+s.length});return}else if(a.overlay){let l=i.length;if(r(a.tree,a.overlay[0].from+o),i.length>l)return}}for(let l=0;l<s.children.length;l++){let c=s.children[l];c instanceof Xe&&r(c,s.positions[l]+o)}};return r(Ue(e),0),i}get allowsNesting(){return!0}}Kt.setState=Te.define();function vg(t,e,n){let i=t.facet(fr),r=Ue(t).topNode;if(!i||i.allowsNesting)for(let s=r;s;s=s.enter(e,n,ke.ExcludeBuffers))s.type.isTop&&(r=s);return r}class dr extends Kt{constructor(e,n,i){super(e,n,[],i),this.parser=n}static define(e){let n=gg(e.languageData);return new dr(n,e.parser.configure({props:[ur.add(i=>i.isTop?n:void 0)]}),e.name)}configure(e,n){return new dr(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ue(t){let e=t.field(Kt.state,!1);return e?e.tree:Xe.empty}class N${constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let i=this.cursorPos-this.string.length;return e<i||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-i,n-i)}}let gs=null;class ia{constructor(e,n,i=[],r,s,o,a,l){this.parser=e,this.state=n,this.fragments=i,this.tree=r,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,n,i){return new ia(e,n,[],Xe.empty,0,i,[],null)}startParse(){return this.parser.startParse(new N$(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Xe.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(Rn.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=r,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(Rn.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=gs;gs=this;try{return e()}finally{gs=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=Og(e,n.from,n.to);return e}changes(e,n){let{fragments:i,tree:r,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((c,u,d,p)=>l.push({fromA:c,toA:u,fromB:d,toB:p})),i=Rn.applyChanges(i,l),r=Xe.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let u=e.mapPos(c.from,1),d=e.mapPos(c.to,-1);u<d&&a.push({from:u,to:d})}}}return new ia(this.parser,n,i,r,s,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:r,to:s}=this.skipped[i];r<e.to&&s>e.from&&(this.fragments=Og(this.fragments,r,s),this.skipped.splice(i--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends rg{createParse(n,i,r){let s=r[0].from,o=r[r.length-1].to;return{parsedPos:s,advance(){let l=gs;if(l){for(let c of r)l.tempSkipped.push(c);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new Xe(dt.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return gs}}function Og(t,e,n){return Rn.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class pr{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,i)||n.takeTree(),new pr(n)}static init(e){let n=Math.min(3e3,e.doc.length),i=ia.create(e.facet(fr).parser,e,{from:0,to:n});return i.work(20,n)||i.takeTree(),new pr(i)}}Kt.state=Ut.define({create:pr.init,update(t,e){for(let n of e.effects)if(n.is(Kt.setState))return n.value;return e.startState.facet(fr)!=e.state.facet(fr)?pr.init(e.state):t.apply(e)}});let xg=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(xg=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const cu=typeof navigator<"u"&&(!((au=navigator.scheduling)===null||au===void 0)&&au.isInputPending)?()=>navigator.scheduling.isInputPending():null,L$=At.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(Kt.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Kt.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=xg(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:r}}=this.view,s=i.field(Kt.state);if(s.tree==s.context.tree&&s.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!cu?Math.max(25,e.timeRemaining()-5):1e9),a=s.context.treeLen<r&&i.doc.length>r+1e3,l=s.context.work(()=>cu&&cu()||Date.now()>o,r+(a?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Kt.setState.of(new pr(s.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>dn(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),fr=te.define({combine(t){return t.length?t[0]:null},enables:t=>[Kt.state,L$,ne.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class uu{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const X$=te.define(),ra=te.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function sa(t){let e=t.facet(ra);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function oa(t,e){let n="",i=t.tabSize,r=t.facet(ra)[0];if(r==" "){for(;e>=i;)n+=" ",e-=i;r=" "}for(let s=0;s<e;s++)n+=r;return n}function bg(t,e){t instanceof ve&&(t=new aa(t));for(let i of t.state.facet(X$)){let r=i(t,e);if(r!==void 0)return r}let n=Ue(t.state);return n.length>=e?V$(t,n,e):null}class aa{constructor(e,n={}){this.state=e,this.options=n,this.unit=sa(e)}lineAt(e,n=1){let i=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return r!=null&&r>=i.from&&r<=i.to?s&&r==e?{text:"",from:e}:(n<0?r<e:r<=e)?{text:i.text.slice(r-i.from),from:r}:{text:i.text.slice(0,r-i.from),from:i.from}:i}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:r}=this.lineAt(e,n);return i.slice(e-r,Math.min(i.length,e+100-r))}column(e,n=1){let{text:i,from:r}=this.lineAt(e,n),s=this.countColumn(i,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(s+=o-this.countColumn(i,i.search(/\S|$/))),s}countColumn(e,n=e.length){return ts(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:i,from:r}=this.lineAt(e,n),s=this.options.overrideIndentation;if(s){let o=s(r);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const la=new ce;function V$(t,e,n){let i=e.resolveStack(n),r=i.node.enterUnfinishedNodesBefore(n);if(r!=i.node){let s=[];for(let o=r;o!=i.node;o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)i={node:s[o],next:i}}return yg(i,t,n)}function yg(t,e,n){for(let i=t;i;i=i.next){let r=q$(i.node);if(r)return r(du.create(e,n,i))}return 0}function W$(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function q$(t){let e=t.type.prop(la);if(e)return e;let n=t.firstChild,i;if(n&&(i=n.type.prop(ce.closedBy))){let r=t.lastChild,s=r&&i.indexOf(r.name)>-1;return o=>wg(o,!0,1,void 0,s&&!W$(o)?r.from:void 0)}return t.parent==null?z$:null}function z$(){return 0}class du extends aa{constructor(e,n,i){super(e.state,e.options),this.base=e,this.pos=n,this.context=i}get node(){return this.context.node}static create(e,n,i){return new du(e,n,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(n.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(Y$(i,e))break;n=this.state.doc.lineAt(i.from)}return this.lineIndent(n.from)}continue(){return yg(this.context.next,this.base,this.pos)}}function Y$(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function B$(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let r=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),o=r==null||r<=s.from?s.to:Math.min(s.to,r);for(let a=n.to;;){let l=e.childAfter(a);if(!l||l==i)return null;if(!l.type.isSkipped)return l.from<o?n:null;a=l.to}}function U$({closing:t,align:e=!0,units:n=1}){return i=>wg(i,e,n,t)}function wg(t,e,n,i,r){let s=t.textAfter,o=s.match(/^\s*/)[0].length,a=i&&s.slice(o,o+i.length)==i||r==t.pos+o,l=e?B$(t):null;return l?a?t.column(l.from):t.column(l.to):t.baseIndent+(a?0:t.unit*n)}const F$=t=>t.baseIndent;function ca({except:t,units:e=1}={}){return n=>{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}const pu=new ce;function Sg(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}class ua{constructor(e,n){this.specs=e;let i;function r(a){let l=Hn.newName();return(i||(i=Object.create(null)))["."+l]=a,l}const s=typeof n.all=="string"?n.all:n.all?r(n.all):void 0,o=n.scope;this.scope=o instanceof Kt?a=>a.prop(ur)==o.data:o?a=>a==o:void 0,this.style=pg(e.map(a=>({tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=i?new Hn(i):null,this.themeType=n.themeType}static define(e,n){return new ua(e,n||{})}}const fu=te.define(),Pg=te.define({combine(t){return t.length?[t[0]]:null}});function hu(t){let e=t.facet(fu);return e.length?e:t.facet(Pg)}function G$(t,e){let n=[J$],i;return t instanceof ua&&(t.module&&n.push(ne.styleModule.of(t.module)),i=t.themeType),e!=null&&e.fallback?n.push(Pg.of(t)):i?n.push(fu.computeN([ne.darkTheme],r=>r.facet(ne.darkTheme)==(i=="dark")?[t]:[])):n.push(fu.of(t)),n}class H${constructor(e){this.markCache=Object.create(null),this.tree=Ue(e.state),this.decorations=this.buildDeco(e,hu(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=Ue(e.state),i=hu(e.state),r=i!=hu(e.startState),{viewport:s}=e.view,o=e.changes.mapPos(this.decoratedTo,1);n.length<s.to&&!r&&n.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(n!=this.tree||e.viewportChanged||r)&&(this.tree=n,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=s.to)}buildDeco(e,n){if(!n||!this.tree.length)return ue.none;let i=new nr;for(let{from:r,to:s}of e.visibleRanges)fg(this.tree,n,(o,a,l)=>{i.add(o,a,this.markCache[l]||(this.markCache[l]=ue.mark({class:l})))},r,s);return i.finish()}}const J$=bo.high(At.fromClass(H$,{decorations:t=>t.decorations})),K$=ne.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),kg=1e4,$g="()[]{}",Tg=te.define({combine(t){return Po(t,{afterCursor:!0,brackets:$g,maxScanDistance:kg,renderMatch:nT})}}),eT=ue.mark({class:"cm-matchingBracket"}),tT=ue.mark({class:"cm-nonmatchingBracket"});function nT(t){let e=[],n=t.matched?eT:tT;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const iT=[Ut.define({create(){return ue.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(Tg);for(let r of e.state.selection.ranges){if(!r.empty)continue;let s=On(e.state,r.head,-1,i)||r.head>0&&On(e.state,r.head-1,1,i)||i.afterCursor&&(On(e.state,r.head,1,i)||r.head<e.state.doc.length&&On(e.state,r.head+1,-1,i));s&&(n=n.concat(i.renderMatch(s,e.state)))}return ue.set(n,!0)},provide:t=>ne.decorations.from(t)}),K$];function rT(t={}){return[Tg.of(t),iT]}const Qg=new ce;function mu(t,e,n){let i=t.prop(e<0?ce.openedBy:ce.closedBy);if(i)return i;if(t.name.length==1){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function gu(t){let e=t.type.prop(Qg);return e?e(t.node):t}function On(t,e,n,i={}){let r=i.maxScanDistance||kg,s=i.brackets||$g,o=Ue(t),a=o.resolveInner(e,n);for(let l=a;l;l=l.parent){let c=mu(l.type,n,s);if(c&&l.from<l.to){let u=gu(l);if(u&&(n>0?e>=u.from&&e<u.to:e>u.from&&e<=u.to))return sT(t,e,n,l,u,c,s)}}return oT(t,e,n,o,a.type,r,s)}function sT(t,e,n,i,r,s,o){let a=i.parent,l={from:r.from,to:r.to},c=0,u=a==null?void 0:a.cursor();if(u&&(n<0?u.childBefore(i.from):u.childAfter(i.to)))do if(n<0?u.to<=i.from:u.from>=i.to){if(c==0&&s.indexOf(u.type.name)>-1&&u.from<u.to){let d=gu(u);return{start:l,end:d?{from:d.from,to:d.to}:void 0,matched:!0}}else if(mu(u.type,n,o))c++;else if(mu(u.type,-n,o)){if(c==0){let d=gu(u);return{start:l,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}c--}}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}function oT(t,e,n,i,r,s,o){let a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?e-1:e,to:n>0?e+1:e},u=t.doc.iterRange(e,n>0?t.doc.length:0),d=0;for(let p=0;!u.next().done&&p<=s;){let f=u.value;n<0&&(p+=f.length);let h=e+p*n;for(let m=n>0?0:f.length-1,g=n>0?f.length:-1;m!=g;m+=n){let O=o.indexOf(f[m]);if(!(O<0||i.resolveInner(h+m,1).type!=r))if(O%2==0==n>0)d++;else{if(d==1)return{start:c,end:{from:h+m,to:h+m+1},matched:O>>1==l>>1};d--}}n>0&&(p+=f.length)}return u.done?{start:c,matched:!1}:null}const aT=Object.create(null),Cg=[dt.none],Eg=[],jg=Object.create(null),lT=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])lT[t]=cT(aT,e);function vu(t,e){Eg.indexOf(t)>-1||(Eg.push(t),console.warn(e))}function cT(t,e){let n=[];for(let a of e.split(" ")){let l=[];for(let c of a.split(".")){let u=t[c]||Q[c];u?typeof u=="function"?l.length?l=l.map(u):vu(c,`Modifier ${c} used at start of tag`):l.length?vu(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:vu(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),r=i+" "+n.map(a=>a.id),s=jg[r];if(s)return s.id;let o=jg[r]=dt.define({id:Cg.length,name:i,props:[Jo({[i]:n})]});return Cg.push(o),o.id}ze.RTL,ze.LTR;function Ag(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function uT(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let s=1;s<r.length;s++)n[r[s]]=!0}let i=Ag(e)+Ag(n)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function dT(t){let e=t.map(r=>typeof r=="string"?{label:r}:r),[n,i]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:uT(e);return r=>{let s=r.matchBefore(i);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:n}:null}}function pT(t,e){return n=>{for(let i=Ue(n.state).resolveInner(n.pos,-1);i;i=i.parent){if(t.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(n)}}const fT=Ft.define(),hT=ne.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class mT{constructor(e,n,i,r){this.field=e,this.line=n,this.from=i,this.to=r}}class Ou{constructor(e,n,i){this.field=e,this.from=n,this.to=i}map(e){let n=e.mapPos(this.from,-1,et.TrackDel),i=e.mapPos(this.to,1,et.TrackDel);return n==null||i==null?null:new Ou(this.field,n,i)}}class xu{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let i=[],r=[n],s=e.doc.lineAt(n),o=/^\s*/.exec(s.text)[0];for(let l of this.lines){if(i.length){let c=o,u=/^\t*/.exec(l)[0].length;for(let d=0;d<u;d++)c+=e.facet(ra);r.push(n+c.length-u),l=c+l.slice(u)}i.push(l),n+=l.length+1}let a=this.fieldPositions.map(l=>new Ou(l.field,r[l.line]+l.from,r[l.line]+l.to));return{text:i,ranges:a}}static parse(e){let n=[],i=[],r=[],s;for(let o of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let a=s[1]?+s[1]:null,l=s[2]||s[3]||"",c=-1;for(let u=0;u<n.length;u++)(a!=null?n[u].seq==a:l&&n[u].name==l)&&(c=u);if(c<0){let u=0;for(;u<n.length&&(a==null||n[u].seq!=null&&n[u].seq<a);)u++;n.splice(u,0,{seq:a,name:l}),c=u;for(let d of r)d.field>=c&&d.field++}r.push(new mT(c,i.length,s.index,s.index+l.length)),o=o.slice(0,s.index)+l+o.slice(s.index+s[0].length)}for(let a;a=/\\([{}])/.exec(o);){o=o.slice(0,a.index)+a[1]+o.slice(a.index+a[0].length);for(let l of r)l.line==i.length&&l.from>a.index&&(l.from--,l.to--)}i.push(o)}return new xu(i,r)}}let gT=ue.widget({widget:new class extends or{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),vT=ue.mark({class:"cm-snippetField"});class hr{constructor(e,n){this.ranges=e,this.active=n,this.deco=ue.set(e.map(i=>(i.from==i.to?gT:vT).range(i.from,i.to)))}map(e){let n=[];for(let i of this.ranges){let r=i.map(e);if(!r)return null;n.push(r)}return new hr(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(i=>i.field==this.active&&i.from<=n.from&&i.to>=n.to))}}const vs=Te.define({map(t,e){return t&&t.map(e)}}),OT=Te.define(),Os=Ut.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(vs))return n.value;if(n.is(OT)&&t)return new hr(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>ne.decorations.from(t,e=>e?e.deco:ue.none)});function bu(t,e){return R.create(t.filter(n=>n.field==e).map(n=>R.range(n.from,n.to)))}function xT(t){let e=xu.parse(t);return(n,i,r,s)=>{let{text:o,ranges:a}=e.instantiate(n.state,r),l={changes:{from:r,to:s,insert:fe.of(o)},scrollIntoView:!0,annotations:i?[fT.of(i),Le.userEvent.of("input.complete")]:void 0};if(a.length&&(l.selection=bu(a,0)),a.some(c=>c.field>0)){let c=new hr(a,0),u=l.effects=[vs.of(c)];n.state.field(Os,!1)===void 0&&u.push(Te.appendConfig.of([Os,yT,wT,hT]))}n.dispatch(n.state.update(l))}}function Dg(t){return({state:e,dispatch:n})=>{let i=e.field(Os,!1);if(!i||t<0&&i.active==0)return!1;let r=i.active+t,s=t>0&&!i.ranges.some(o=>o.field==r+t);return n(e.update({selection:bu(i.ranges,r),effects:vs.of(s?null:new hr(i.ranges,r)),scrollIntoView:!0})),!0}}const bT=[{key:"Tab",run:Dg(1),shift:Dg(-1)},{key:"Escape",run:({state:t,dispatch:e})=>t.field(Os,!1)?(e(t.update({effects:vs.of(null)})),!0):!1}],Mg=te.define({combine(t){return t.length?t[0]:bT}}),yT=bo.highest(zo.compute([Mg],t=>t.facet(Mg)));function Ot(t,e){return Object.assign(Object.assign({},e),{apply:xT(t)})}const wT=ne.domEventHandlers({mousedown(t,e){let n=e.state.field(Os,!1),i;if(!n||(i=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let r=n.ranges.find(s=>s.from<=i&&s.to>=i);return!r||r.field==n.active?!1:(e.dispatch({selection:bu(n.ranges,r.field),effects:vs.of(n.ranges.some(s=>s.field>r.field)?new hr(n.ranges,r.field):null),scrollIntoView:!0}),!0)}}),xs={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},_i=Te.define({map(t,e){let n=e.mapPos(t,-1,et.TrackAfter);return n??void 0}}),yu=new class extends Ci{};yu.startSide=1,yu.endSide=-1;const Rg=Ut.define({create(){return Oe.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:i=>i>=n.from&&i<=n.to})}for(let n of e.effects)n.is(_i)&&(t=t.update({add:[yu.range(n.value,n.value+1)]}));return t}});function ST(){return[kT,Rg]}const wu="()[]{}<>";function _g(t){for(let e=0;e<wu.length;e+=2)if(wu.charCodeAt(e)==t)return wu.charAt(e+1);return KS(t<128?t:t+1)}function Ig(t,e){return t.languageDataAt("closeBrackets",e)[0]||xs}const PT=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),kT=ne.inputHandler.of((t,e,n,i)=>{if((PT?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let r=t.state.selection.main;if(i.length>2||i.length==2&&er(ln(i,0))==1||e!=r.from||n!=r.to)return!1;let s=TT(t.state,i);return s?(t.dispatch(s),!0):!1}),$T=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=Ig(t,t.selection.main.head).brackets||xs.brackets,r=null,s=t.changeByRange(o=>{if(o.empty){let a=QT(t.doc,o.head);for(let l of i)if(l==a&&da(t.doc,o.head)==_g(ln(l,0)))return{changes:{from:o.head-l.length,to:o.head+l.length},range:R.cursor(o.head-l.length)}}return{range:r=o}});return r||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function TT(t,e){let n=Ig(t,t.selection.main.head),i=n.brackets||xs.brackets;for(let r of i){let s=_g(ln(r,0));if(e==r)return s==r?jT(t,r,i.indexOf(r+r+r)>-1,n):CT(t,r,s,n.before||xs.before);if(e==s&&Zg(t,t.selection.main.from))return ET(t,r,s)}return null}function Zg(t,e){let n=!1;return t.field(Rg).between(0,t.doc.length,i=>{i==e&&(n=!0)}),n}function da(t,e){let n=t.sliceString(e,e+2);return n.slice(0,er(ln(n,0)))}function QT(t,e){let n=t.sliceString(e-2,e);return er(ln(n,0))==n.length?n:n.slice(1)}function CT(t,e,n,i){let r=null,s=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:n,from:o.to}],effects:_i.of(o.to+e.length),range:R.range(o.anchor+e.length,o.head+e.length)};let a=da(t.doc,o.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:e+n,from:o.head},effects:_i.of(o.head+e.length),range:R.cursor(o.head+e.length)}:{range:r=o}});return r?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function ET(t,e,n){let i=null,r=t.changeByRange(s=>s.empty&&da(t.doc,s.head)==n?{changes:{from:s.head,to:s.head+n.length,insert:n},range:R.cursor(s.head+n.length)}:i={range:s});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function jT(t,e,n,i){let r=i.stringPrefixes||xs.stringPrefixes,s=null,o=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:_i.of(a.to+e.length),range:R.range(a.anchor+e.length,a.head+e.length)};let l=a.head,c=da(t.doc,l),u;if(c==e){if(Ng(t,l))return{changes:{insert:e+e,from:l},effects:_i.of(l+e.length),range:R.cursor(l+e.length)};if(Zg(t,l)){let p=n&&t.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+p.length,insert:p},range:R.cursor(l+p.length)}}}else{if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(u=Lg(t,l-2*e.length,r))>-1&&Ng(t,u))return{changes:{insert:e+e+e+e,from:l},effects:_i.of(l+e.length),range:R.cursor(l+e.length)};if(t.charCategorizer(l)(c)!=jt.Word&&Lg(t,l,r)>-1&&!AT(t,l,e,r))return{changes:{insert:e+e,from:l},effects:_i.of(l+e.length),range:R.cursor(l+e.length)}}return{range:s=a}});return s?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Ng(t,e){let n=Ue(t).resolveInner(e+1);return n.parent&&n.from==e}function AT(t,e,n,i){let r=Ue(t).resolveInner(e,-1),s=i.reduce((o,a)=>Math.max(o,a.length),0);for(let o=0;o<5;o++){let a=t.sliceDoc(r.from,Math.min(r.to,r.from+n.length+s)),l=a.indexOf(n);if(!l||l>-1&&i.indexOf(a.slice(0,l))>-1){let u=r.firstChild;for(;u&&u.from==r.from&&u.to-u.from>n.length+l;){if(t.sliceDoc(u.to-n.length,u.to)==n)return!1;u=u.firstChild}return!0}let c=r.to==e&&r.parent;if(!c)break;r=c}return!1}function Lg(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=jt.Word)return e;for(let r of n){let s=e-r.length;if(t.sliceDoc(s,e)==r&&i(t.sliceDoc(s-1,s))!=jt.Word)return s}return-1}const DT=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),i=Pu(t.state,n.from);return i.line?MT(t):i.block?_T(t):!1};function Su(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=t(e,n);return r?(i(n.update(r)),!0):!1}}const MT=Su(NT,0),RT=Su(Xg,0),_T=Su((t,e)=>Xg(t,e,ZT(e)),0);function Pu(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const bs=50;function IT(t,{open:e,close:n},i,r){let s=t.sliceDoc(i-bs,i),o=t.sliceDoc(r,r+bs),a=/\s*$/.exec(s)[0].length,l=/^\s*/.exec(o)[0].length,c=s.length-a;if(s.slice(c-e.length,c)==e&&o.slice(l,l+n.length)==n)return{open:{pos:i-a,margin:a&&1},close:{pos:r+l,margin:l&&1}};let u,d;r-i<=2*bs?u=d=t.sliceDoc(i,r):(u=t.sliceDoc(i,i+bs),d=t.sliceDoc(r-bs,r));let p=/^\s*/.exec(u)[0].length,f=/\s*$/.exec(d)[0].length,h=d.length-f-n.length;return u.slice(p,p+e.length)==e&&d.slice(h,h+n.length)==n?{open:{pos:i+p+e.length,margin:/\s/.test(u.charAt(p+e.length))?1:0},close:{pos:r-f-n.length,margin:/\s/.test(d.charAt(h-1))?1:0}}:null}function ZT(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),r=n.to<=i.to?i:t.doc.lineAt(n.to),s=e.length-1;s>=0&&e[s].to>i.from?e[s].to=r.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return e}function Xg(t,e,n=e.selection.ranges){let i=n.map(s=>Pu(e,s.from).block);if(!i.every(s=>s))return null;let r=n.map((s,o)=>IT(e,i[o],s.from,s.to));if(t!=2&&!r.every(s=>s))return{changes:e.changes(n.map((s,o)=>r[o]?[]:[{from:s.from,insert:i[o].open+" "},{from:s.to,insert:" "+i[o].close}]))};if(t!=1&&r.some(s=>s)){let s=[];for(let o=0,a;o<r.length;o++)if(a=r[o]){let l=i[o],{open:c,close:u}=a;s.push({from:c.pos-l.open.length,to:c.pos+c.margin},{from:u.pos-u.margin,to:u.pos+l.close.length})}return{changes:s}}return null}function NT(t,e,n=e.selection.ranges){let i=[],r=-1;for(let{from:s,to:o}of n){let a=i.length,l=1e9,c=Pu(e,s).line;if(c){for(let u=s;u<=o;){let d=e.doc.lineAt(u);if(d.from>r&&(s==o||o>d.from)){r=d.from;let p=/^\s*/.exec(d.text)[0].length,f=p==d.length,h=d.text.slice(p,p+c.length)==c?p:-1;p<d.text.length&&p<l&&(l=p),i.push({line:d,comment:h,token:c,indent:p,empty:f,single:!1})}u=d.to+1}if(l<1e9)for(let u=a;u<i.length;u++)i[u].indent<i[u].line.text.length&&(i[u].indent=l);i.length==a+1&&(i[a].single=!0)}}if(t!=2&&i.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:a,token:l,indent:c,empty:u,single:d}of i)(d||!u)&&s.push({from:a.from+c,insert:l+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(t!=1&&i.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:a,token:l}of i)if(a>=0){let c=o.from+a,u=c+l.length;o.text[u-o.from]==" "&&u++,s.push({from:c,to:u})}return{changes:s}}return null}const ku=Ft.define(),LT=Ft.define(),XT=te.define(),Vg=te.define({combine(t){return Po(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(i,r)=>e(i,r)||n(i,r)})}}),Wg=Ut.define({create(){return xn.empty},update(t,e){let n=e.state.facet(Vg),i=e.annotation(ku);if(i){let l=xt.fromTransaction(e,i.selection),c=i.side,u=c==0?t.undone:t.done;return l?u=fa(u,u.length,n.minDepth,l):u=Yg(u,e.startState.selection),new xn(c==0?i.rest:u,c==0?u:i.rest)}let r=e.annotation(LT);if((r=="full"||r=="before")&&(t=t.isolate()),e.annotation(Le.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let s=xt.fromTransaction(e),o=e.annotation(Le.time),a=e.annotation(Le.userEvent);return s?t=t.addChanges(s,o,a,n,e):e.selection&&(t=t.addSelection(e.startState.selection,o,a,n.newGroupDelay)),(r=="full"||r=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new xn(t.done.map(xt.fromJSON),t.undone.map(xt.fromJSON))}});function VT(t={}){return[Wg,Vg.of(t),ne.domEventHandlers({beforeinput(e,n){let i=e.inputType=="historyUndo"?qg:e.inputType=="historyRedo"?$u:null;return i?(e.preventDefault(),i(n)):!1}})]}function pa(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let r=n.field(Wg,!1);if(!r)return!1;let s=r.pop(t,n,e);return s?(i(s),!0):!1}}const qg=pa(0,!1),$u=pa(1,!1),WT=pa(0,!0),qT=pa(1,!0);class xt{constructor(e,n,i,r,s){this.changes=e,this.effects=n,this.mapped=i,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new xt(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new xt(e.changes&&We.fromJSON(e.changes),[],e.mapped&&cn.fromJSON(e.mapped),e.startSelection&&R.fromJSON(e.startSelection),e.selectionsAfter.map(R.fromJSON))}static fromTransaction(e,n){let i=_t;for(let r of e.startState.facet(XT)){let s=r(e);s.length&&(i=i.concat(s))}return!i.length&&e.changes.empty?null:new xt(e.changes.invert(e.startState.doc),i,void 0,n||e.startState.selection,_t)}static selection(e){return new xt(void 0,_t,void 0,void 0,e)}}function fa(t,e,n,i){let r=e+1>n+20?e-n-1:0,s=t.slice(r,e);return s.push(i),s}function zT(t,e){let n=[],i=!1;return t.iterChangedRanges((r,s)=>n.push(r,s)),e.iterChangedRanges((r,s,o,a)=>{for(let l=0;l<n.length;){let c=n[l++],u=n[l++];a>=c&&o<=u&&(i=!0)}}),i}function YT(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,i)=>n.empty!=e.ranges[i].empty).length===0}function zg(t,e){return t.length?e.length?t.concat(e):t:e}const _t=[],BT=200;function Yg(t,e){if(t.length){let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-BT));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),fa(t,t.length-1,1e9,n.setSelAfter(i)))}else return[xt.selection([e])]}function UT(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function Tu(t,e){if(!t.length)return t;let n=t.length,i=_t;for(;n;){let r=FT(t[n-1],e,i);if(r.changes&&!r.changes.empty||r.effects.length){let s=t.slice(0,n);return s[n-1]=r,s}else e=r.mapped,n--,i=r.selectionsAfter}return i.length?[xt.selection(i)]:_t}function FT(t,e,n){let i=zg(t.selectionsAfter.length?t.selectionsAfter.map(a=>a.map(e)):_t,n);if(!t.changes)return xt.selection(i);let r=t.changes.map(e),s=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(s):s;return new xt(r,Te.mapEffects(t.effects,e),o,t.startSelection.map(s),i)}const GT=/^(input\.type|delete)($|\.)/;class xn{constructor(e,n,i=0,r=void 0){this.done=e,this.undone=n,this.prevTime=i,this.prevUserEvent=r}isolate(){return this.prevTime?new xn(this.done,this.undone):this}addChanges(e,n,i,r,s){let o=this.done,a=o[o.length-1];return a&&a.changes&&!a.changes.empty&&e.changes&&(!i||GT.test(i))&&(!a.selectionsAfter.length&&n-this.prevTime<r.newGroupDelay&&r.joinToEvent(s,zT(a.changes,e.changes))||i=="input.type.compose")?o=fa(o,o.length-1,r.minDepth,new xt(e.changes.compose(a.changes),zg(e.effects,a.effects),a.mapped,a.startSelection,_t)):o=fa(o,o.length,r.minDepth,e),new xn(o,_t,n,i)}addSelection(e,n,i,r){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:_t;return s.length>0&&n-this.prevTime<r&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&YT(s[s.length-1],e)?this:new xn(Yg(this.done,e),this.undone,n,i)}addMapping(e){return new xn(Tu(this.done,e),Tu(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,i){let r=e==0?this.done:this.undone;if(r.length==0)return null;let s=r[r.length-1],o=s.selectionsAfter[0]||n.selection;if(i&&s.selectionsAfter.length)return n.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:ku.of({side:e,rest:UT(r),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let a=r.length==1?_t:r.slice(0,r.length-1);return s.mapped&&(a=Tu(a,s.mapped)),n.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:ku.of({side:e,rest:a,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}xn.empty=new xn(_t,_t);const HT=[{key:"Mod-z",run:qg,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:$u,preventDefault:!0},{linux:"Ctrl-Shift-z",run:$u,preventDefault:!0},{key:"Mod-u",run:WT,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:qT,preventDefault:!0}];function mr(t,e){return R.create(t.ranges.map(e),t.mainIndex)}function bn(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function en({state:t,dispatch:e},n){let i=mr(t.selection,n);return i.eq(t.selection,!0)?!1:(e(bn(t,i)),!0)}function ha(t,e){return R.cursor(e?t.to:t.from)}function Bg(t,e){return en(t,n=>n.empty?t.moveByChar(n,e):ha(n,e))}function rt(t){return t.textDirectionAt(t.state.selection.main.head)==ze.LTR}const Ug=t=>Bg(t,!rt(t)),Fg=t=>Bg(t,rt(t));function Gg(t,e){return en(t,n=>n.empty?t.moveByGroup(n,e):ha(n,e))}const JT=t=>Gg(t,!rt(t)),KT=t=>Gg(t,rt(t));function eQ(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function ma(t,e,n){let i=Ue(t).resolveInner(e.head),r=n?ce.closedBy:ce.openedBy;for(let l=e.head;;){let c=n?i.childAfter(l):i.childBefore(l);if(!c)break;eQ(t,c,r)?i=c:l=n?c.to:c.from}let s=i.type.prop(r),o,a;return s&&(o=n?On(t,i.from,1):On(t,i.to,-1))&&o.matched?a=n?o.end.to:o.end.from:a=n?i.to:i.from,R.cursor(a,n?-1:1)}const tQ=t=>en(t,e=>ma(t.state,e,!rt(t))),nQ=t=>en(t,e=>ma(t.state,e,rt(t)));function Hg(t,e){return en(t,n=>{if(!n.empty)return ha(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}const Jg=t=>Hg(t,!1),Kg=t=>Hg(t,!0);function ev(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,i=0,r;if(e){for(let s of t.state.facet(ne.scrollMargins)){let o=s(t);o!=null&&o.top&&(n=Math.max(o==null?void 0:o.top,n)),o!=null&&o.bottom&&(i=Math.max(o==null?void 0:o.bottom,i))}r=t.scrollDOM.clientHeight-n-i}else r=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:i,selfScroll:e,height:Math.max(t.defaultLineHeight,r-5)}}function tv(t,e){let n=ev(t),{state:i}=t,r=mr(i.selection,o=>o.empty?t.moveVertically(o,e,n.height):ha(o,e));if(r.eq(i.selection))return!1;let s;if(n.selfScroll){let o=t.coordsAtPos(i.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+n.marginTop,c=a.bottom-n.marginBottom;o&&o.top>l&&o.bottom<c&&(s=ne.scrollIntoView(r.main.head,{y:"start",yMargin:o.top-l}))}return t.dispatch(bn(i,r),{effects:s}),!0}const nv=t=>tv(t,!1),Qu=t=>tv(t,!0);function oi(t,e,n){let i=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,n);if(r.head==e.head&&r.head!=(n?i.to:i.from)&&(r=t.moveToLineBoundary(e,n,!1)),!n&&r.head==i.from&&i.length){let s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(r=R.cursor(i.from+s))}return r}const iQ=t=>en(t,e=>oi(t,e,!0)),rQ=t=>en(t,e=>oi(t,e,!1)),sQ=t=>en(t,e=>oi(t,e,!rt(t))),oQ=t=>en(t,e=>oi(t,e,rt(t))),aQ=t=>en(t,e=>R.cursor(t.lineBlockAt(e.head).from,1)),lQ=t=>en(t,e=>R.cursor(t.lineBlockAt(e.head).to,-1));function cQ(t,e,n){let i=!1,r=mr(t.selection,s=>{let o=On(t,s.head,-1)||On(t,s.head,1)||s.head>0&&On(t,s.head-1,1)||s.head<t.doc.length&&On(t,s.head+1,-1);if(!o||!o.end)return s;i=!0;let a=o.start.from==s.head?o.end.to:o.end.from;return n?R.range(s.anchor,a):R.cursor(a)});return i?(e(bn(t,r)),!0):!1}const uQ=({state:t,dispatch:e})=>cQ(t,e,!1);function It(t,e){let n=mr(t.state.selection,i=>{let r=e(i);return R.range(i.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(bn(t.state,n)),!0)}function iv(t,e){return It(t,n=>t.moveByChar(n,e))}const rv=t=>iv(t,!rt(t)),sv=t=>iv(t,rt(t));function ov(t,e){return It(t,n=>t.moveByGroup(n,e))}const dQ=t=>ov(t,!rt(t)),pQ=t=>ov(t,rt(t)),fQ=t=>It(t,e=>ma(t.state,e,!rt(t))),hQ=t=>It(t,e=>ma(t.state,e,rt(t)));function av(t,e){return It(t,n=>t.moveVertically(n,e))}const lv=t=>av(t,!1),cv=t=>av(t,!0);function uv(t,e){return It(t,n=>t.moveVertically(n,e,ev(t).height))}const dv=t=>uv(t,!1),pv=t=>uv(t,!0),mQ=t=>It(t,e=>oi(t,e,!0)),gQ=t=>It(t,e=>oi(t,e,!1)),vQ=t=>It(t,e=>oi(t,e,!rt(t))),OQ=t=>It(t,e=>oi(t,e,rt(t))),xQ=t=>It(t,e=>R.cursor(t.lineBlockAt(e.head).from)),bQ=t=>It(t,e=>R.cursor(t.lineBlockAt(e.head).to)),fv=({state:t,dispatch:e})=>(e(bn(t,{anchor:0})),!0),hv=({state:t,dispatch:e})=>(e(bn(t,{anchor:t.doc.length})),!0),mv=({state:t,dispatch:e})=>(e(bn(t,{anchor:t.selection.main.anchor,head:0})),!0),gv=({state:t,dispatch:e})=>(e(bn(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),yQ=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),wQ=({state:t,dispatch:e})=>{let n=va(t).map(({from:i,to:r})=>R.range(i,Math.min(r+1,t.doc.length)));return e(t.update({selection:R.create(n),userEvent:"select"})),!0},SQ=({state:t,dispatch:e})=>{let n=mr(t.selection,i=>{var r;let s=Ue(t).resolveStack(i.from,1);for(let o=s;o;o=o.next){let{node:a}=o;if((a.from<i.from&&a.to>=i.to||a.to>i.to&&a.from<=i.from)&&(!((r=a.parent)===null||r===void 0)&&r.parent))return R.range(a.to,a.from)}return i});return e(bn(t,n)),!0},PQ=({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=R.create([n.main]):n.main.empty||(i=R.create([R.cursor(n.main.head)])),i?(e(bn(t,i)),!0):!1};function ys(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,r=i.changeByRange(s=>{let{from:o,to:a}=s;if(o==a){let l=e(s);l<o?(n="delete.backward",l=ga(t,l,!1)):l>o&&(n="delete.forward",l=ga(t,l,!0)),o=Math.min(o,l),a=Math.max(a,l)}else o=ga(t,o,!1),a=ga(t,a,!0);return o==a?{range:s}:{changes:{from:o,to:a},range:R.cursor(o,o<s.head?-1:1)}});return r.changes.empty?!1:(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?ne.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ga(t,e,n){if(t instanceof ne)for(let i of t.state.facet(ne.atomicRanges).map(r=>r(t)))i.between(e,e,(r,s)=>{r<e&&s>e&&(e=n?s:r)});return e}const vv=(t,e,n)=>ys(t,i=>{let r=i.from,{state:s}=t,o=s.doc.lineAt(r),a,l;if(n&&!e&&r>o.from&&r<o.from+200&&!/[^ \t]/.test(a=o.text.slice(0,r-o.from))){if(a[a.length-1]==" ")return r-1;let c=ts(a,s.tabSize),u=c%sa(s)||sa(s);for(let d=0;d<u&&a[a.length-1-d]==" ";d++)r--;l=r}else l=ct(o.text,r-o.from,e,e)+o.from,l==r&&o.number!=(e?s.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(l-o.from,r-o.from))&&(l=ct(o.text,l-o.from,!1,!1)+o.from);return l}),Cu=t=>vv(t,!1,!0),Ov=t=>vv(t,!0,!1),xv=(t,e)=>ys(t,n=>{let i=n.head,{state:r}=t,s=r.doc.lineAt(i),o=r.charCategorizer(i);for(let a=null;;){if(i==(e?s.to:s.from)){i==n.head&&s.number!=(e?r.doc.lines:1)&&(i+=e?1:-1);break}let l=ct(s.text,i-s.from,e)+s.from,c=s.text.slice(Math.min(i,l)-s.from,Math.max(i,l)-s.from),u=o(c);if(a!=null&&u!=a)break;(c!=" "||i!=n.head)&&(a=u),i=l}return i}),Eu=t=>xv(t,!1),kQ=t=>xv(t,!0),$Q=t=>ys(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),TQ=t=>ys(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),QQ=t=>ys(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),CQ=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:fe.of(["",""])},range:R.cursor(i.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},EQ=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{if(!i.empty||i.from==0||i.from==t.doc.length)return{range:i};let r=i.from,s=t.doc.lineAt(r),o=r==s.from?r-1:ct(s.text,r-s.from,!1)+s.from,a=r==s.to?r+1:ct(s.text,r-s.from,!0)+s.from;return{changes:{from:o,to:a,insert:t.doc.slice(r,a).append(t.doc.slice(o,r))},range:R.cursor(a)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function va(t){let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.from),s=t.doc.lineAt(i.to);if(!i.empty&&i.to==s.from&&(s=t.doc.lineAt(i.to-1)),n>=r.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(i)}else e.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return e}function bv(t,e,n){if(t.readOnly)return!1;let i=[],r=[];for(let s of va(t)){if(n?s.to==t.doc.length:s.from==0)continue;let o=t.doc.lineAt(n?s.to+1:s.from-1),a=o.length+1;if(n){i.push({from:s.to,to:o.to},{from:s.from,insert:o.text+t.lineBreak});for(let l of s.ranges)r.push(R.range(Math.min(t.doc.length,l.anchor+a),Math.min(t.doc.length,l.head+a)))}else{i.push({from:o.from,to:s.from},{from:s.to,insert:t.lineBreak+o.text});for(let l of s.ranges)r.push(R.range(l.anchor-a,l.head-a))}}return i.length?(e(t.update({changes:i,scrollIntoView:!0,selection:R.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const jQ=({state:t,dispatch:e})=>bv(t,e,!1),AQ=({state:t,dispatch:e})=>bv(t,e,!0);function yv(t,e,n){if(t.readOnly)return!1;let i=[];for(let r of va(t))n?i.push({from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}):i.push({from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const DQ=({state:t,dispatch:e})=>yv(t,e,!1),MQ=({state:t,dispatch:e})=>yv(t,e,!0),RQ=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(va(e).map(({from:r,to:s})=>(r>0?r--:s<e.doc.length&&s++,{from:r,to:s}))),i=mr(e.selection,r=>{let s;if(t.lineWrapping){let o=t.lineBlockAt(r.head),a=t.coordsAtPos(r.head,r.assoc||1);a&&(s=o.bottom+t.documentTop-a.bottom+t.defaultLineHeight/2)}return t.moveVertically(r,!0,s)}).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function _Q(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Ue(t).resolveInner(e),i=n.childBefore(e),r=n.childAfter(e),s;return i&&r&&i.to<=e&&r.from>=e&&(s=i.type.prop(ce.closedBy))&&s.indexOf(r.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}const IQ=wv(!1),ZQ=wv(!0);function wv(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(r=>{let{from:s,to:o}=r,a=e.doc.lineAt(s),l=!t&&s==o&&_Q(e,s);t&&(s=o=(o<=a.to?a:e.doc.lineAt(o)).to);let c=new aa(e,{simulateBreak:s,simulateDoubleBreak:!!l}),u=bg(c,s);for(u==null&&(u=ts(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<a.to&&/\s/.test(a.text[o-a.from]);)o++;l?{from:s,to:o}=l:s>a.from&&s<a.from+100&&!/\S/.test(a.text.slice(0,s))&&(s=a.from);let d=["",oa(e,u)];return l&&d.push(oa(e,c.lineIndent(a.from,-1))),{changes:{from:s,to:o,insert:fe.of(d)},range:R.cursor(s+1+d[1].length)}});return n(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function ju(t,e){let n=-1;return t.changeByRange(i=>{let r=[];for(let o=i.from;o<=i.to;){let a=t.doc.lineAt(o);a.number>n&&(i.empty||i.to>a.from)&&(e(a,r,i),n=a.number),o=a.to+1}let s=t.changes(r);return{changes:r,range:R.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}})}const NQ=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new aa(t,{overrideIndentation:s=>{let o=n[s];return o??-1}}),r=ju(t,(s,o,a)=>{let l=bg(i,s.from);if(l==null)return;/\S/.test(s.text)||(l=0);let c=/^\s*/.exec(s.text)[0],u=oa(t,l);(c!=u||a.from<s.from+c.length)&&(n[s.from]=l,o.push({from:s.from,to:s.from+c.length,insert:u}))});return r.changes.empty||e(t.update(r,{userEvent:"indent"})),!0},Sv=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(ju(t,(n,i)=>{i.push({from:n.from,insert:t.facet(ra)})}),{userEvent:"input.indent"})),!0),Pv=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(ju(t,(n,i)=>{let r=/^\s*/.exec(n.text)[0];if(!r)return;let s=ts(r,t.tabSize),o=0,a=oa(t,Math.max(0,s-sa(t)));for(;o<r.length&&o<a.length&&r.charCodeAt(o)==a.charCodeAt(o);)o++;i.push({from:n.from+o,to:n.from+r.length,insert:a.slice(o)})}),{userEvent:"delete.dedent"})),!0),LQ=[{key:"Ctrl-b",run:Ug,shift:rv,preventDefault:!0},{key:"Ctrl-f",run:Fg,shift:sv},{key:"Ctrl-p",run:Jg,shift:lv},{key:"Ctrl-n",run:Kg,shift:cv},{key:"Ctrl-a",run:aQ,shift:xQ},{key:"Ctrl-e",run:lQ,shift:bQ},{key:"Ctrl-d",run:Ov},{key:"Ctrl-h",run:Cu},{key:"Ctrl-k",run:$Q},{key:"Ctrl-Alt-h",run:Eu},{key:"Ctrl-o",run:CQ},{key:"Ctrl-t",run:EQ},{key:"Ctrl-v",run:Qu}],XQ=[{key:"ArrowLeft",run:Ug,shift:rv,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:JT,shift:dQ,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:sQ,shift:vQ,preventDefault:!0},{key:"ArrowRight",run:Fg,shift:sv,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:KT,shift:pQ,preventDefault:!0},{mac:"Cmd-ArrowRight",run:oQ,shift:OQ,preventDefault:!0},{key:"ArrowUp",run:Jg,shift:lv,preventDefault:!0},{mac:"Cmd-ArrowUp",run:fv,shift:mv},{mac:"Ctrl-ArrowUp",run:nv,shift:dv},{key:"ArrowDown",run:Kg,shift:cv,preventDefault:!0},{mac:"Cmd-ArrowDown",run:hv,shift:gv},{mac:"Ctrl-ArrowDown",run:Qu,shift:pv},{key:"PageUp",run:nv,shift:dv},{key:"PageDown",run:Qu,shift:pv},{key:"Home",run:rQ,shift:gQ,preventDefault:!0},{key:"Mod-Home",run:fv,shift:mv},{key:"End",run:iQ,shift:mQ,preventDefault:!0},{key:"Mod-End",run:hv,shift:gv},{key:"Enter",run:IQ},{key:"Mod-a",run:yQ},{key:"Backspace",run:Cu,shift:Cu},{key:"Delete",run:Ov},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Eu},{key:"Mod-Delete",mac:"Alt-Delete",run:kQ},{mac:"Mod-Backspace",run:TQ},{mac:"Mod-Delete",run:QQ}].concat(LQ.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),VQ=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:tQ,shift:fQ},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:nQ,shift:hQ},{key:"Alt-ArrowUp",run:jQ},{key:"Shift-Alt-ArrowUp",run:DQ},{key:"Alt-ArrowDown",run:AQ},{key:"Shift-Alt-ArrowDown",run:MQ},{key:"Escape",run:PQ},{key:"Mod-Enter",run:ZQ},{key:"Alt-l",mac:"Ctrl-l",run:wQ},{key:"Mod-i",run:SQ,preventDefault:!0},{key:"Mod-[",run:Pv},{key:"Mod-]",run:Sv},{key:"Mod-Alt-\\",run:NQ},{key:"Shift-Mod-k",run:RQ},{key:"Shift-Mod-\\",run:uQ},{key:"Mod-/",run:DT},{key:"Alt-A",run:RT}].concat(XQ);(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var t=window.document,e=[],n=null,i=null;function r(v){this.time=v.time,this.target=v.target,this.rootBounds=f(v.rootBounds),this.boundingClientRect=f(v.boundingClientRect),this.intersectionRect=f(v.intersectionRect||p()),this.isIntersecting=!!v.intersectionRect;var x=this.boundingClientRect,b=x.width*x.height,w=this.intersectionRect,y=w.width*w.height;b?this.intersectionRatio=Number((y/b).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(v,x){var b=x||{};if(typeof v!="function")throw new Error("callback must be a function");if(b.root&&b.root.nodeType!=1)throw new Error("root must be an Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=v,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(b.rootMargin),this.thresholds=this._initThresholds(b.threshold),this.root=b.root||null,this.rootMargin=this._rootMarginValues.map(function(w){return w.value+w.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(v,x){!v||!x?i=p():i=h(v,x),e.forEach(function(b){b._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,i=null},s.prototype.observe=function(v){var x=this._observationTargets.some(function(b){return b.element==v});if(!x){if(!(v&&v.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:v,entry:null}),this._monitorIntersections(v.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(v){this._observationTargets=this._observationTargets.filter(function(x){return x.element!=v}),this._unmonitorIntersections(v.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var v=this._queuedEntries.slice();return this._queuedEntries=[],v},s.prototype._initThresholds=function(v){var x=v||[0];return Array.isArray(x)||(x=[x]),x.sort().filter(function(b,w,y){if(typeof b!="number"||isNaN(b)||b<0||b>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return b!==y[w-1]})},s.prototype._parseRootMargin=function(v){var x=v||"0px",b=x.split(/\s+/).map(function(w){var y=/^(-?\d*\.?\d+)(px|%)$/.exec(w);if(!y)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(y[1]),unit:y[2]}});return b[1]=b[1]||b[0],b[2]=b[2]||b[0],b[3]=b[3]||b[1],b},s.prototype._monitorIntersections=function(v){var x=v.defaultView;if(x&&this._monitoringDocuments.indexOf(v)==-1){var b=this._checkForIntersections,w=null,y=null;if(this.POLL_INTERVAL?w=x.setInterval(b,this.POLL_INTERVAL):(l(x,"resize",b,!0),l(v,"scroll",b,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in x&&(y=new x.MutationObserver(b),y.observe(v,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(v),this._monitoringUnsubscribes.push(function(){var T=v.defaultView;T&&(w&&T.clearInterval(w),c(T,"resize",b,!0)),c(v,"scroll",b,!0),y&&y.disconnect()}),v!=(this.root&&this.root.ownerDocument||t)){var k=O(v);k&&this._monitorIntersections(k.ownerDocument)}}},s.prototype._unmonitorIntersections=function(v){var x=this._monitoringDocuments.indexOf(v);if(x!=-1){var b=this.root&&this.root.ownerDocument||t,w=this._observationTargets.some(function(T){var E=T.element.ownerDocument;if(E==v)return!0;for(;E&&E!=b;){var C=O(E);if(E=C&&C.ownerDocument,E==v)return!0}return!1});if(!w){var y=this._monitoringUnsubscribes[x];if(this._monitoringDocuments.splice(x,1),this._monitoringUnsubscribes.splice(x,1),y(),v!=b){var k=O(v);k&&this._unmonitorIntersections(k.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var v=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var x=0;x<v.length;x++)v[x]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!i)){var v=this._rootIsInDom(),x=v?this._getRootRect():p();this._observationTargets.forEach(function(b){var w=b.element,y=d(w),k=this._rootContainsTarget(w),T=b.entry,E=v&&k&&this._computeTargetAndRootIntersection(w,y,x),C=b.entry=new r({time:o(),target:w,boundingClientRect:y,rootBounds:n&&!this.root?null:x,intersectionRect:E});T?v&&k?this._hasCrossedThreshold(T,C)&&this._queuedEntries.push(C):T&&T.isIntersecting&&this._queuedEntries.push(C):this._queuedEntries.push(C)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(v,x,b){if(window.getComputedStyle(v).display!="none"){for(var w=x,y=g(v),k=!1;!k&&y;){var T=null,E=y.nodeType==1?window.getComputedStyle(y):{};if(E.display=="none")return null;if(y==this.root||y.nodeType==9)if(k=!0,y==this.root||y==t)n&&!this.root?!i||i.width==0&&i.height==0?(y=null,T=null,w=null):T=i:T=b;else{var C=g(y),M=C&&d(C),Z=C&&this._computeTargetAndRootIntersection(C,M,b);M&&Z?(y=C,T=h(M,Z)):(y=null,w=null)}else{var q=y.ownerDocument;y!=q.body&&y!=q.documentElement&&E.overflow!="visible"&&(T=d(y))}if(T&&(w=u(T,w)),!w)break;y=y&&g(y)}return w}},s.prototype._getRootRect=function(){var v;if(this.root)v=d(this.root);else{var x=t.documentElement,b=t.body;v={top:0,left:0,right:x.clientWidth||b.clientWidth,width:x.clientWidth||b.clientWidth,bottom:x.clientHeight||b.clientHeight,height:x.clientHeight||b.clientHeight}}return this._expandRectByRootMargin(v)},s.prototype._expandRectByRootMargin=function(v){var x=this._rootMarginValues.map(function(w,y){return w.unit=="px"?w.value:w.value*(y%2?v.width:v.height)/100}),b={top:v.top-x[0],right:v.right+x[1],bottom:v.bottom+x[2],left:v.left-x[3]};return b.width=b.right-b.left,b.height=b.bottom-b.top,b},s.prototype._hasCrossedThreshold=function(v,x){var b=v&&v.isIntersecting?v.intersectionRatio||0:-1,w=x.isIntersecting?x.intersectionRatio||0:-1;if(b!==w)for(var y=0;y<this.thresholds.length;y++){var k=this.thresholds[y];if(k==b||k==w||k<b!=k<w)return!0}},s.prototype._rootIsInDom=function(){return!this.root||m(t,this.root)},s.prototype._rootContainsTarget=function(v){return m(this.root||t,v)&&(!this.root||this.root.ownerDocument==v.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var v=e.indexOf(this);v!=-1&&e.splice(v,1)};function o(){return window.performance&&performance.now&&performance.now()}function a(v,x){var b=null;return function(){b||(b=setTimeout(function(){v(),b=null},x))}}function l(v,x,b,w){typeof v.addEventListener=="function"?v.addEventListener(x,b,w||!1):typeof v.attachEvent=="function"&&v.attachEvent("on"+x,b)}function c(v,x,b,w){typeof v.removeEventListener=="function"?v.removeEventListener(x,b,w||!1):typeof v.detatchEvent=="function"&&v.detatchEvent("on"+x,b)}function u(v,x){var b=Math.max(v.top,x.top),w=Math.min(v.bottom,x.bottom),y=Math.max(v.left,x.left),k=Math.min(v.right,x.right),T=k-y,E=w-b;return T>=0&&E>=0&&{top:b,bottom:w,left:y,right:k,width:T,height:E}||null}function d(v){var x;try{x=v.getBoundingClientRect()}catch{}return x?(x.width&&x.height||(x={top:x.top,right:x.right,bottom:x.bottom,left:x.left,width:x.right-x.left,height:x.bottom-x.top}),x):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(v){return!v||"x"in v?v:{top:v.top,y:v.top,bottom:v.bottom,left:v.left,x:v.left,right:v.right,width:v.width,height:v.height}}function h(v,x){var b=x.top-v.top,w=x.left-v.left;return{top:b,left:w,height:x.height,width:x.width,bottom:b+x.height,right:w+x.width}}function m(v,x){for(var b=x;b;){if(b==v)return!0;b=g(b)}return!1}function g(v){var x=v.parentNode;return v.nodeType==9&&v!=t?O(v):x&&x.nodeType==11&&x.host?x.host:x&&x.assignedSlot?x.assignedSlot.parentNode:x}function O(v){try{return v.defaultView&&v.defaultView.frameElement||null}catch{return null}}window.IntersectionObserver=s,window.IntersectionObserverEntry=r})();const WQ=P[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"];function qQ(t,e={}){const{root:n=null,pollInterval:i=null,useMutationObserver:r=!1,rootMargin:s="0px 0px 0px 0px",threshold:o=0,initialIsIntersecting:a=!1}=e,[l,c]=U.useState(()=>({boundingClientRect:null,intersectionRatio:0,intersectionRect:null,isIntersecting:a,rootBounds:null,target:null,time:0})),[u,d]=U.useState(()=>$v({root:n,pollInterval:i,useMutationObserver:r,rootMargin:s,threshold:o}));return U.useEffect(()=>{const p=$v({root:n,pollInterval:i,useMutationObserver:r,rootMargin:s,threshold:o});d(p)},[n,s,i,r,JSON.stringify(o)]),WQ(()=>{const p=t&&"current"in t?t.current:t;if(!u||!p)return;let f=!1;u.observer.observe(p);const h=m=>{if(!f)for(let g=0;g<m.length;g++){const O=m[g];O.target===p&&c(O)}};return u.subscribe(h),()=>{f=!0,u.observer.unobserve(p),u.unsubscribe(h)}},[t,u]),l}function zQ({root:t=null,pollInterval:e=null,useMutationObserver:n=!1,rootMargin:i="0px 0px 0px 0px",threshold:r=0}){const s=new Set;if(typeof IntersectionObserver>"u")return null;const o=new IntersectionObserver(a=>{for(const l of s)l(a,o)},{root:t,rootMargin:i,threshold:r});return o.POLL_INTERVAL=e,o.USE_MUTATION_OBSERVER=n,{observer:o,getListeners(){return s},subscribe:a=>s.add(a),unsubscribe:a=>s.delete(a)}}const kv=new Map;function $v(t){const{root:e,...n}=t,i=JSON.stringify(n);let r=kv.get(e);return r||(r={},kv.set(e,r)),r[i]?r[i]:r[i]=zQ(t)}class Oa{constructor(e,n,i,r,s,o,a,l,c,u=0,d){this.p=e,this.stack=n,this.state=i,this.reducePos=r,this.pos=s,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,i=0){let r=e.parser.context;return new Oa(e,[],n,i,i,0,[],0,r?new Tv(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let i=e>>19,r=e&65535,{parser:s}=this.p,o=s.dynamicPrecedence(r);if(o&&(this.score+=o),i==0){this.pushState(s.getGoto(this.state,r,!0),this.reducePos),r<s.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),this.reduceContext(r,this.reducePos);return}let a=this.stack.length-(i-1)*3-(e&262144?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from,c=this.reducePos-l;c>=2e3&&!(!((n=this.p.parser.nodeSet.types[r])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let u=a?this.stack[a-1]:0,d=this.bufferBase+this.buffer.length-u;if(r<s.minRepeatTerm||e&131072){let p=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,p,d+4,!0)}if(e&262144)this.state=this.stack[a];else{let p=this.stack[a-3];this.state=s.getGoto(p,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,n,i,r=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(n==i)return;if(o.buffer[a-2]>=n){o.buffer[a-2]=i;return}}}if(!s||this.pos==i)this.buffer.push(e,n,i,r);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,r>4&&(r-=4);this.buffer[o]=e,this.buffer[o+1]=n,this.buffer[o+2]=i,this.buffer[o+3]=r}}shift(e,n,i,r){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(n,i),n<=this.p.parser.maxNode&&this.buffer.push(n,i,r,4);else{let s=e,{parser:o}=this.p;(r>this.pos||n<=o.maxNode)&&(this.pos=r,o.stateFlag(s,1)||(this.reducePos=r)),this.pushState(s,i),this.shiftContext(n,i),n<=o.maxNode&&this.buffer.push(n,i,r,4)}}apply(e,n,i,r){e&65536?this.reduce(e):this.shift(e,n,i,r)}useNode(e,n){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(n,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let i=e.buffer.slice(n),r=e.bufferBase+n;for(;e&&r==e.bufferBase;)e=e.parent;return new Oa(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,i?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new YQ(this);;){let i=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(i==0)return!1;if(!(i&65536))return!0;n.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let r=[];for(let s=0,o;s<n.length;s+=2)(o=n[s+1])!=this.state&&this.p.parser.hasAction(o,e)&&r.push(n[s],o);if(this.stack.length<120)for(let s=0;r.length<8&&s<n.length;s+=2){let o=n[s+1];r.some((a,l)=>l&1&&a==o)||r.push(n[s],o)}n=r}let i=[];for(let r=0;r<n.length&&i.length<4;r+=2){let s=n[r+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(n[r],this.pos),o.reducePos=this.pos,o.score-=200,i.push(o)}return i}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if(!(n&65536))return!1;if(!e.validAction(this.state,n)){let i=n>>19,r=n&65535,s=this.stack.length-i*3;if(s<0||e.getGoto(this.stack[s],r,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],i=(r,s)=>{if(!n.includes(r))return n.push(r),e.allActions(r,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-s;if(a>1){let l=o&65535,c=this.stack.length-a*3;if(c>=0&&e.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=i(o,s+1);if(a!=null)return a}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new Tv(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Tv{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class YQ{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=r}}class xa{constructor(e,n,i){this.stack=e,this.pos=n,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new xa(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new xa(this.stack,this.pos,this.index)}}function ws(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let i=0,r=0;i<t.length;){let s=0;for(;;){let o=t.charCodeAt(i++),a=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),s+=l,a)break;s*=46}n?n[r++]=s:n=new e(s)}return n}class ba{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Qv=new ba;class BQ{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Qv,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let i=this.range,r=this.rangeIndex,s=this.pos+e;for(;s<i.from;){if(!r)return null;let o=this.ranges[--r];s-=i.from-o.to,i=o}for(;n<0?s>i.to:s>=i.to;){if(r==this.ranges.length-1)return null;let o=this.ranges[++r];s+=o.from-i.to,i=o}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,i,r;if(n>=0&&n<this.chunk.length)i=this.pos+e,r=this.chunk.charCodeAt(n);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(i=s,i>=this.chunk2Pos&&i<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(i-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=i;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=i),i+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-i)),r=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),r}acceptToken(e,n=0){let i=n?this.resolveOffset(n,-1):this.pos;if(i==null||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,n){this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=Qv,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let i="";for(let r of this.ranges){if(r.from>=n)break;r.to>e&&(i+=this.input.read(Math.max(r.from,e),Math.min(r.to,n)))}return i}}class gr{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:i}=n.p;Cv(this.data,e,n,this.id,i.data,i.tokenPrecTable)}}gr.prototype.contextual=gr.prototype.fallback=gr.prototype.extend=!1;class ya{constructor(e,n,i){this.precTable=n,this.elseToken=i,this.data=typeof e=="string"?ws(e):e}token(e,n){let i=e.pos,r=0;for(;;){let s=e.next<0,o=e.resolveOffset(1,1);if(Cv(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||r++,o==null)break;e.reset(o,e.token)}r&&(e.reset(i,e.token),e.acceptToken(this.elseToken,r))}}ya.prototype.contextual=gr.prototype.fallback=gr.prototype.extend=!1;class tn{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function Cv(t,e,n,i,r,s){let o=0,a=1<<i,{dialect:l}=n.p.parser;e:for(;a&t[o];){let c=t[o+1];for(let f=o+3;f<c;f+=2)if((t[f+1]&a)>0){let h=t[f];if(l.allows(h)&&(e.token.value==-1||e.token.value==h||UQ(h,e.token.value,r,s))){e.acceptToken(h);break}}let u=e.next,d=0,p=t[o+2];if(e.next<0&&p>d&&t[c+p*3-3]==65535){o=t[c+p*3-1];continue e}for(;d<p;){let f=d+p>>1,h=c+f+(f<<1),m=t[h],g=t[h+1]||65536;if(u<m)p=f;else if(u>=g)d=f+1;else{o=t[h+2],e.advance();continue e}}break}}function Ev(t,e,n){for(let i=e,r;(r=t[i])!=65535;i++)if(r==n)return i-e;return-1}function UQ(t,e,n,i){let r=Ev(n,i,e);return r<0||Ev(n,i,t)<r}const Tt=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let Au=null;function jv(t,e,n){let i=t.cursor(ke.IncludeAnonymous);for(i.moveTo(e);;)if(!(n<0?i.childBefore(e):i.childAfter(e)))for(;;){if((n<0?i.to<e:i.from>e)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}class FQ{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?jv(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?jv(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let i=this.trees[n],r=this.index[n];if(r==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=i.children[r],o=this.start[n]+i.positions[r];if(o>e)return this.nextStart=o,null;if(s instanceof Xe){if(o==e){if(o<this.safeFrom)return null;let a=o+s.length;if(a<=this.safeTo){let l=s.prop(ce.lookAhead);if(!l||a+l<this.fragment.to)return s}}this.index[n]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+s.length}}}class GQ{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new ba)}getActions(e){let n=0,i=null,{parser:r}=e.p,{tokenizers:s}=r,o=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let c=0;c<s.length;c++){if(!(1<<c&o))continue;let u=s[c],d=this.tokens[c];if(!(i&&!u.fallback)&&((u.contextual||d.start!=e.pos||d.mask!=o||d.context!=a)&&(this.updateCachedToken(d,u,e),d.mask=o,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=n;if(d.extended>-1&&(n=this.addActions(e,d.extended,d.end,n)),n=this.addActions(e,d.value,d.end,n),!u.extend&&(i=d,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&e.setLookAhead(l),!i&&e.pos==this.stream.end&&(i=new ba,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,n=this.addActions(e,i.value,i.end,n)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new ba,{pos:i,p:r}=e;return n.start=i,n.end=Math.min(i+1,r.stream.end),n.value=i==r.stream.end?r.parser.eofTerm:0,n}updateCachedToken(e,n,i){let r=this.stream.clipPos(i.pos);if(n.token(this.stream.reset(r,e),i),e.value>-1){let{parser:s}=i.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==e.value){let a=s.specializers[o](this.stream.read(e.start,e.end),i);if(a>=0&&i.p.parser.dialect.allows(a>>1)){a&1?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,n,i,r){for(let s=0;s<r;s+=3)if(this.actions[s]==e)return r;return this.actions[r++]=e,this.actions[r++]=n,this.actions[r++]=i,r}addActions(e,n,i,r){let{state:s}=e,{parser:o}=e.p,{data:a}=o;for(let l=0;l<2;l++)for(let c=o.stateSlot(s,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=_n(a,c+2);else{r==0&&a[c+1]==2&&(r=this.putAction(_n(a,c+2),n,i,r));break}a[c]==n&&(r=this.putAction(_n(a,c+1),n,i,r))}return r}}class HQ{constructor(e,n,i,r){this.parser=e,this.input=n,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new BQ(n,r),this.tokens=new GQ(e,this.stream),this.topTerm=e.top[1];let{from:s}=r[0];this.stacks=[Oa.start(this,e.top[0],s)],this.fragments=i.length&&this.stream.end-s>e.bufferLength*4?new FQ(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,i=this.stacks=[],r,s;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let a=e[o];for(;;){if(this.tokens.mainToken=null,a.pos>n)i.push(a);else{if(this.advanceStack(a,i,e))continue;{r||(r=[],s=[]),r.push(a);let l=this.tokens.getMainToken(a);s.push(l.value,l.end)}}break}}if(!i.length){let o=r&&KQ(r);if(o)return Tt&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Tt&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&r){let o=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,s,i);if(o)return Tt&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((a,l)=>l.score-a.score);i.length>o;)i.pop();i.some(a=>a.reducePos>n)&&this.recovering--}else if(i.length>1){e:for(let o=0;o<i.length-1;o++){let a=i[o];for(let l=o+1;l<i.length;l++){let c=i[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)i.splice(l--,1);else{i.splice(o--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let o=1;o<i.length;o++)i[o].pos<this.minStackPos&&(this.minStackPos=i[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,n,i){let r=e.pos,{parser:s}=this,o=Tt?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,u=c?e.curContext.hash:0;for(let d=this.fragments.nodeAt(r);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?s.getGoto(e.state,d.type.id):-1;if(p>-1&&d.length&&(!c||(d.prop(ce.contextHash)||0)==u))return e.useNode(d,p),Tt&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(d.type.id)})`),!0;if(!(d instanceof Xe)||d.children.length==0||d.positions[0]>0)break;let f=d.children[0];if(f instanceof Xe&&d.positions[0]==0)d=f;else break}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),Tt&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let c=0;c<l.length;){let u=l[c++],d=l[c++],p=l[c++],f=c==l.length||!i,h=f?e:e.split(),m=this.tokens.mainToken;if(h.apply(u,d,m?m.start:h.pos,p),Tt&&console.log(o+this.stackID(h)+` (via ${u&65536?`reduce of ${s.getName(u&65535)}`:"shift"} for ${s.getName(d)} @ ${r}${h==e?"":", split"})`),f)return!0;h.pos>r?n.push(h):i.push(h)}return!1}advanceFully(e,n){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return Av(e,n),!0}}runRecovery(e,n,i){let r=null,s=!1;for(let o=0;o<e.length;o++){let a=e[o],l=n[o<<1],c=n[(o<<1)+1],u=Tt?this.stackID(a)+" -> ":"";if(a.deadEnd&&(s||(s=!0,a.restart(),Tt&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,i))))continue;let d=a.split(),p=u;for(let f=0;d.forceReduce()&&f<10&&(Tt&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)Tt&&(p=this.stackID(d)+" -> ");for(let f of a.recoverByInsert(l))Tt&&console.log(u+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,i);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),Tt&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),Av(a,i)):(!r||r.score<a.score)&&(r=a)}return r}stackToTree(e){return e.close(),Xe.build({buffer:xa.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(Au||(Au=new WeakMap)).get(e);return n||Au.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function Av(t,e){for(let n=0;n<e.length;n++){let i=e[n];if(i.pos==t.pos&&i.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class JQ{constructor(e,n,i){this.source=e,this.flags=n,this.disabled=i}allows(e){return!this.disabled||this.disabled[e]==0}}const Du=t=>t;class Dv{constructor(e){this.start=e.start,this.shift=e.shift||Du,this.reduce=e.reduce||Du,this.reuse=e.reuse||Du,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class vr extends rg{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let a=0;a<e.repeatNodeCount;a++)n.push("");let i=Object.keys(e.topRules).map(a=>e.topRules[a][1]),r=[];for(let a=0;a<n.length;a++)r.push([]);function s(a,l,c){r[a].push([l,l.deserialize(String(c))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=ce[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)s(u,l,a[c++]);else{let d=a[c+-u];for(let p=-u;p>0;p--)s(a[c++],l,d);c++}}}this.nodeSet=new Kc(n.map((a,l)=>dt.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:r[l],top:i.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Gm;let o=ws(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(Mv),this.states=ws(e.states,Uint32Array),this.data=ws(e.stateData),this.goto=ws(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new gr(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,i){let r=new HQ(this,e,n,i);for(let s of this.wrappers)r=s(r,e,n,i);return r}getGoto(e,n,i=!1){let r=this.goto;if(n>=r[0])return-1;for(let s=r[n+1];;){let o=r[s++],a=o&1,l=r[s++];if(a&&i)return l;for(let c=s+(o>>1);s<c;s++)if(r[s]==e)return l;if(a)return-1}}hasAction(e,n){let i=this.data;for(let r=0;r<2;r++)for(let s=this.stateSlot(e,r?2:1),o;;s+=3){if((o=i[s])==65535)if(i[s+1]==1)o=i[s=_n(i,s+2)];else{if(i[s+1]==2)return _n(i,s+2);break}if(o==n||o==0)return _n(i,s+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,i=>i==n?!0:null)}allActions(e,n){let i=this.stateSlot(e,4),r=i?n(i):void 0;for(let s=this.stateSlot(e,1);r==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=_n(this.data,s+2);else break;r=n(_n(this.data,s+1))}return r}nextStates(e){let n=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=_n(this.data,i+2);else break;if(!(this.data[i+2]&1)){let r=this.data[i+1];n.some((s,o)=>o&1&&s==r)||n.push(this.data[i],r)}}return n}configure(e){let n=Object.assign(Object.create(vr.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=i}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(i=>{let r=e.tokenizers.find(s=>s.from==i);return r?r.to:i})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((i,r)=>{let s=e.specializers.find(a=>a.from==i.external);if(!s)return i;let o=Object.assign(Object.assign({},i),{external:s.to});return n.specializers[r]=Mv(o),o})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),i=n.map(()=>!1);if(e)for(let s of e.split(" ")){let o=n.indexOf(s);o>=0&&(i[o]=!0)}let r=null;for(let s=0;s<n.length;s++)if(!i[s])for(let o=this.dialects[n[s]],a;(a=this.data[o++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[a]=1;return new JQ(e,i,r)}static deserialize(e){return new vr(e)}}function _n(t,e){return t[e]|t[e+1]<<16}function KQ(t){let e=null;for(let n of t){let i=n.p.stoppedAt;(n.pos==n.p.stream.end||i!=null&&n.pos>i)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function Mv(t){if(t.external){let e=t.extend?1:0;return(n,i)=>t.external(n,i)<<1|e}return t.get}const eC=99,Rv=1,tC=100,nC=101,_v=2,Iv=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],iC=58,rC=40,Zv=95,sC=91,wa=45,oC=46,aC=35,lC=37,cC=38,uC=92,dC=10;function Ss(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function Nv(t){return t>=48&&t<=57}const pC=new tn((t,e)=>{for(let n=!1,i=0,r=0;;r++){let{next:s}=t;if(Ss(s)||s==wa||s==Zv||n&&Nv(s))!n&&(s!=wa||r>0)&&(n=!0),i===r&&s==wa&&i++,t.advance();else if(s==uC&&t.peek(1)!=dC)t.advance(),t.next>-1&&t.advance(),n=!0;else{n&&t.acceptToken(s==rC?tC:i==2&&e.canShift(_v)?_v:nC);break}}}),fC=new tn(t=>{if(Iv.includes(t.peek(-1))){let{next:e}=t;(Ss(e)||e==Zv||e==aC||e==oC||e==sC||e==iC&&Ss(t.peek(1))||e==wa||e==cC)&&t.acceptToken(eC)}}),hC=new tn(t=>{if(!Iv.includes(t.peek(-1))){let{next:e}=t;if(e==lC&&(t.advance(),t.acceptToken(Rv)),Ss(e)){do t.advance();while(Ss(t.next)||Nv(t.next));t.acceptToken(Rv)}}}),mC=Jo({"AtKeyword import charset namespace keyframes media supports":Q.definitionKeyword,"from to selector":Q.keyword,NamespaceName:Q.namespace,KeyframeName:Q.labelName,KeyframeRangeName:Q.operatorKeyword,TagName:Q.tagName,ClassName:Q.className,PseudoClassName:Q.constant(Q.className),IdName:Q.labelName,"FeatureName PropertyName":Q.propertyName,AttributeName:Q.attributeName,NumberLiteral:Q.number,KeywordQuery:Q.keyword,UnaryQueryOp:Q.operatorKeyword,"CallTag ValueName":Q.atom,VariableName:Q.variableName,Callee:Q.operatorKeyword,Unit:Q.unit,"UniversalSelector NestingSelector":Q.definitionOperator,MatchOp:Q.compareOperator,"ChildOp SiblingOp, LogicOp":Q.logicOperator,BinOp:Q.arithmeticOperator,Important:Q.modifier,Comment:Q.blockComment,ColorLiteral:Q.color,"ParenthesizedContent StringLiteral":Q.string,":":Q.punctuation,"PseudoOp #":Q.derefOperator,"; ,":Q.separator,"( )":Q.paren,"[ ]":Q.squareBracket,"{ }":Q.brace}),gC={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},vC={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},OC={__proto__:null,not:132,only:132},xC=vr.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX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!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources:[mC],skippedNodes:[0,3,87],repeatNodeCount:11,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}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c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[fC,hC,pC,1,2,3,4,new ya("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:t=>gC[t]||-1},{term:58,get:t=>vC[t]||-1},{term:101,get:t=>OC[t]||-1}],tokenPrec:1200});let Mu=null;function Ru(){if(!Mu&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],n=new Set;for(let i in t)i!="cssText"&&i!="cssFloat"&&typeof t[i]=="string"&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),n.has(i)||(e.push(i),n.add(i)));Mu=e.sort().map(i=>({type:"property",label:i}))}return Mu||[]}const Lv=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),Xv=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),bC=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),ai=/^(\w[\w-]*|-\w[\w-]*|)$/,yC=/^-(-[\w-]*)?$/;function wC(t,e){var n;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let i=(n=t.parent)===null||n===void 0?void 0:n.firstChild;return(i==null?void 0:i.name)!="Callee"?!1:e.sliceString(i.from,i.to)=="var"}const Vv=new ig,SC=["Declaration"];function PC(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function Wv(t,e,n){if(e.to-e.from>4096){let i=Vv.get(e);if(i)return i;let r=[],s=new Set,o=e.cursor(ke.IncludeAnonymous);if(o.firstChild())do for(let a of Wv(t,o.node,n))s.has(a.label)||(s.add(a.label),r.push(a));while(o.nextSibling());return Vv.set(e,r),r}else{let i=[],r=new Set;return e.cursor().iterate(s=>{var o;if(n(s)&&s.matchContext(SC)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let a=t.sliceString(s.from,s.to);r.has(a)||(r.add(a),i.push({label:a,type:"variable"}))}}),i}}const kC=(t=>e=>{let{state:n,pos:i}=e,r=Ue(n).resolveInner(i,-1),s=r.type.isError&&r.from==r.to-1&&n.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(s||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:Ru(),validFor:ai};if(r.name=="ValueName")return{from:r.from,options:Xv,validFor:ai};if(r.name=="PseudoClassName")return{from:r.from,options:Lv,validFor:ai};if(t(r)||(e.explicit||s)&&wC(r,n.doc))return{from:t(r)||s?r.from:i,options:Wv(n.doc,PC(r),t),validFor:yC};if(r.name=="TagName"){for(let{parent:l}=r;l;l=l.parent)if(l.name=="Block")return{from:r.from,options:Ru(),validFor:ai};return{from:r.from,options:bC,validFor:ai}}if(!e.explicit)return null;let o=r.resolve(i),a=o.childBefore(i);return a&&a.name==":"&&o.name=="PseudoClassSelector"?{from:i,options:Lv,validFor:ai}:a&&a.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:i,options:Xv,validFor:ai}:o.name=="Block"||o.name=="Styles"?{from:i,options:Ru(),validFor:ai}:null})(t=>t.name=="VariableName"),Sa=dr.define({name:"css",parser:xC.configure({props:[la.add({Declaration:ca()}),pu.add({"Block KeyframeList":Sg})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function qv(){return new uu(Sa,Sa.data.of({autocomplete:kC}))}const $C=54,TC=1,QC=55,CC=2,EC=56,jC=3,zv=4,AC=5,Pa=6,Yv=7,Bv=8,Uv=9,Fv=10,DC=11,MC=12,RC=13,_u=57,_C=14,Gv=58,Hv=20,IC=22,Jv=23,ZC=24,Iu=26,Kv=27,NC=28,LC=31,XC=34,VC=36,WC=37,qC=0,zC=1,YC={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},BC={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},eO={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function UC(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function tO(t){return t==9||t==10||t==13||t==32}let nO=null,iO=null,rO=0;function Zu(t,e){let n=t.pos+e;if(rO==n&&iO==t)return nO;let i=t.peek(e);for(;tO(i);)i=t.peek(++e);let r="";for(;UC(i);)r+=String.fromCharCode(i),i=t.peek(++e);return iO=t,rO=n,nO=r?r.toLowerCase():i==FC||i==GC?void 0:null}const sO=60,ka=62,Nu=47,FC=63,GC=33,HC=45;function oO(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let n=0;n<t.length;n++)this.hash+=(this.hash<<4)+t.charCodeAt(n)+(t.charCodeAt(n)<<8)}const JC=[Pa,Fv,Yv,Bv,Uv],KC=new Dv({start:null,shift(t,e,n,i){return JC.indexOf(e)>-1?new oO(Zu(i,1)||"",t):t},reduce(t,e){return e==Hv&&t?t.parent:t},reuse(t,e,n,i){let r=e.type.id;return r==Pa||r==VC?new oO(Zu(i,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),eE=new tn((t,e)=>{if(t.next!=sO){t.next<0&&e.context&&t.acceptToken(_u);return}t.advance();let n=t.next==Nu;n&&t.advance();let i=Zu(t,0);if(i===void 0)return;if(!i)return t.acceptToken(n?_C:Pa);let r=e.context?e.context.name:null;if(n){if(i==r)return t.acceptToken(DC);if(r&&BC[r])return t.acceptToken(_u,-2);if(e.dialectEnabled(qC))return t.acceptToken(MC);for(let s=e.context;s;s=s.parent)if(s.name==i)return;t.acceptToken(RC)}else{if(i=="script")return t.acceptToken(Yv);if(i=="style")return t.acceptToken(Bv);if(i=="textarea")return t.acceptToken(Uv);if(YC.hasOwnProperty(i))return t.acceptToken(Fv);r&&eO[r]&&eO[r][i]?t.acceptToken(_u,-1):t.acceptToken(Pa)}},{contextual:!0}),tE=new tn(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(Gv);break}if(t.next==HC)e++;else if(t.next==ka&&e>=2){n>=3&&t.acceptToken(Gv,-2);break}else e=0;t.advance()}});function nE(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const iE=new tn((t,e)=>{if(t.next==Nu&&t.peek(1)==ka){let n=e.dialectEnabled(zC)||nE(e.context);t.acceptToken(n?AC:zv,2)}else t.next==ka&&t.acceptToken(zv,1)});function Lu(t,e,n){let i=2+t.length;return new tn(r=>{for(let s=0,o=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(e);break}if(s==0&&r.next==sO||s==1&&r.next==Nu||s>=2&&s<i&&r.next==t.charCodeAt(s-2))s++,o++;else if((s==2||s==i)&&tO(r.next))o++;else if(s==i&&r.next==ka){a>o?r.acceptToken(e,-o):r.acceptToken(n,-(o-2));break}else if((r.next==10||r.next==13)&&a){r.acceptToken(e,1);break}else s=o=0;r.advance()}})}const rE=Lu("script",$C,TC),sE=Lu("style",QC,CC),oE=Lu("textarea",EC,jC),aE=Jo({"Text RawText":Q.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Q.angleBracket,TagName:Q.tagName,"MismatchedCloseTag/TagName":[Q.tagName,Q.invalid],AttributeName:Q.attributeName,"AttributeValue UnquotedAttributeValue":Q.attributeValue,Is:Q.definitionOperator,"EntityReference CharacterReference":Q.character,Comment:Q.blockComment,ProcessingInst:Q.processingInstruction,DoctypeDecl:Q.documentMeta}),lE=vr.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-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`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:KC,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[aE],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1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!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[rE,sE,oE,iE,eE,tE,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:509},tokenPrec:511});function aO(t,e){let n=Object.create(null);for(let i of t.getChildren(Jv)){let r=i.getChild(ZC),s=i.getChild(Iu)||i.getChild(Kv);r&&(n[e.read(r.from,r.to)]=s?s.type.id==Iu?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return n}function lO(t,e){let n=t.getChild(IC);return n?e.read(n.from,n.to):" "}function Xu(t,e,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=aO(t.node.parent.firstChild,e))))return{parser:r.parser};return null}function cO(t=[],e=[]){let n=[],i=[],r=[],s=[];for(let a of t)(a.tag=="script"?n:a.tag=="style"?i:a.tag=="textarea"?r:s).push(a);let o=e.length?Object.create(null):null;for(let a of e)(o[a.name]||(o[a.name]=[])).push(a);return k$((a,l)=>{let c=a.type.id;if(c==NC)return Xu(a,l,n);if(c==LC)return Xu(a,l,i);if(c==XC)return Xu(a,l,r);if(c==Hv&&s.length){let u=a.node,d=u.firstChild,p=d&&lO(d,l),f;if(p){for(let h of s)if(h.tag==p&&(!h.attrs||h.attrs(f||(f=aO(u,l))))){let m=u.lastChild,g=m.type.id==WC?m.from:u.to;if(g>d.to)return{parser:h.parser,overlay:[{from:d.to,to:g}]}}}}if(o&&c==Jv){let u=a.node,d;if(d=u.firstChild){let p=o[l.read(d.from,d.to)];if(p)for(let f of p){if(f.tagName&&f.tagName!=lO(u.parent,l))continue;let h=u.lastChild;if(h.type.id==Iu){let m=h.from+1,g=h.lastChild,O=h.to-(g&&g.isError?0:1);if(O>m)return{parser:f.parser,overlay:[{from:m,to:O}]}}else if(h.type.id==Kv)return{parser:f.parser,overlay:[{from:h.from,to:h.to}]}}}}return null})}const cE=310,uO=1,uE=2,dE=3,pE=311,fE=313,hE=314,mE=4,gE=5,vE=0,Vu=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],dO=125,OE=59,Wu=47,xE=42,bE=43,yE=45,wE=60,SE=44,PE=new Dv({start:!1,shift(t,e){return e==mE||e==gE||e==fE?t:e==hE},strict:!1}),kE=new tn((t,e)=>{let{next:n}=t;(n==dO||n==-1||e.context)&&t.acceptToken(pE)},{contextual:!0,fallback:!0}),$E=new tn((t,e)=>{let{next:n}=t,i;Vu.indexOf(n)>-1||n==Wu&&((i=t.peek(1))==Wu||i==xE)||n!=dO&&n!=OE&&n!=-1&&!e.context&&t.acceptToken(cE)},{contextual:!0}),TE=new tn((t,e)=>{let{next:n}=t;if((n==bE||n==yE)&&(t.advance(),n==t.next)){t.advance();let i=!e.context&&e.canShift(uO);t.acceptToken(i?uO:uE)}},{contextual:!0});function qu(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}const QE=new tn((t,e)=>{if(t.next!=wE||!e.dialectEnabled(vE)||(t.advance(),t.next==Wu))return;let n=0;for(;Vu.indexOf(t.next)>-1;)t.advance(),n++;if(qu(t.next,!0)){for(t.advance(),n++;qu(t.next,!1);)t.advance(),n++;for(;Vu.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==SE)return;for(let i=0;;i++){if(i==7){if(!qu(t.next,!0))return;break}if(t.next!="extends".charCodeAt(i))break;t.advance(),n++}}t.acceptToken(dE,-n)}),CE=Jo({"get set async static":Q.modifier,"for while do if else switch try catch finally return throw break continue default case":Q.controlKeyword,"in of await yield void typeof delete instanceof":Q.operatorKeyword,"let var const using function class extends":Q.definitionKeyword,"import export from":Q.moduleKeyword,"with debugger as new":Q.keyword,TemplateString:Q.special(Q.string),super:Q.atom,BooleanLiteral:Q.bool,this:Q.self,null:Q.null,Star:Q.modifier,VariableName:Q.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Q.function(Q.variableName),VariableDefinition:Q.definition(Q.variableName),Label:Q.labelName,PropertyName:Q.propertyName,PrivatePropertyName:Q.special(Q.propertyName),"CallExpression/MemberExpression/PropertyName":Q.function(Q.propertyName),"FunctionDeclaration/VariableDefinition":Q.function(Q.definition(Q.variableName)),"ClassDeclaration/VariableDefinition":Q.definition(Q.className),PropertyDefinition:Q.definition(Q.propertyName),PrivatePropertyDefinition:Q.definition(Q.special(Q.propertyName)),UpdateOp:Q.updateOperator,"LineComment Hashbang":Q.lineComment,BlockComment:Q.blockComment,Number:Q.number,String:Q.string,Escape:Q.escape,ArithOp:Q.arithmeticOperator,LogicOp:Q.logicOperator,BitOp:Q.bitwiseOperator,CompareOp:Q.compareOperator,RegExp:Q.regexp,Equals:Q.definitionOperator,Arrow:Q.function(Q.punctuation),": Spread":Q.punctuation,"( )":Q.paren,"[ ]":Q.squareBracket,"{ }":Q.brace,"InterpolationStart InterpolationEnd":Q.special(Q.brace),".":Q.derefOperator,", ;":Q.separator,"@":Q.meta,TypeName:Q.typeName,TypeDefinition:Q.definition(Q.typeName),"type enum interface implements namespace module declare":Q.definitionKeyword,"abstract global Privacy readonly override":Q.modifier,"is keyof unique infer":Q.operatorKeyword,JSXAttributeValue:Q.attributeValue,JSXText:Q.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Q.angleBracket,"JSXIdentifier JSXNameSpacedName":Q.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Q.attributeName,"JSXBuiltin/JSXIdentifier":Q.standard(Q.tagName)}),EE={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:154,yield:163,await:167,class:172,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:288,keyof:341,unique:345,infer:351,is:387,abstract:407,implements:409,type:411,let:414,var:416,using:419,interface:425,enum:429,namespace:435,module:437,declare:441,global:445,for:464,of:473,while:476,with:480,do:484,if:488,else:490,switch:494,case:500,try:506,catch:510,finally:514,return:518,throw:522,break:526,continue:530,debugger:534},jE={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:391},AE={__proto__:null,"<":145},DE=vr.deserialize({version:14,states:"$=dO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DzO0fQ^O'#ESOOQ?Mr'#E['#E[O1PQWO'#EXOOQO'#Em'#EmOOQO'#If'#IfO1XQWO'#GnO1dQWO'#ElO1iQWO'#ElO3kQ?NdO'#JjO6[Q?NdO'#JkO6xQWO'#F[O6}Q&jO'#FrOOQ?Mr'#Fd'#FdO7YO,YO'#FdO7hQ7[O'#FyO9UQWO'#FxOOQ?Mr'#Jk'#JkOOQ?Mp'#Jj'#JjO9ZQWO'#GrOOQU'#KW'#KWO9fQWO'#ISO9kQ?MxO'#ITOOQU'#JX'#JXOOQU'#IX'#IXQ`Q^OOO`Q^OOO9sQMnO'#DsO9zQ^O'#EOO:RQ^O'#EQO9aQWO'#GnO:YQ7[O'#CnO:hQWO'#EkO:sQWO'#EvO:xQ7[O'#FcO;gQWO'#GnOOQO'#KX'#KXO;lQWO'#KXO;zQWO'#GvO;zQWO'#GwO;zQWO'#GyO9aQWO'#G|O<qQWO'#HPO>YQWO'#CdO>jQWO'#H]O>rQWO'#HcO>rQWO'#HeO`Q^O'#HgO>rQWO'#HiO>rQWO'#HlO>wQWO'#HrO>|Q?MyO'#HxO%[Q^O'#HzO?XQ?MyO'#H|O?dQ?MyO'#IOO9kQ?MxO'#IQO?oQ?NdO'#ChO@qQ`O'#DiQOQWOOO%[Q^O'#EQOAXQWO'#ETO:YQ7[O'#EkOAdQW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.S(d(eQ.W(fQ0k+XQ2}.TU3O.U.V.XS6l3P3QR8p6md#^W#W#Z%f(P(Y*W+U-}/hr#gZm#h#i#l%c(d(e(f+X.T.U.V.X3P3Q6mS*Z$y*_Q/o*[Q1y,iQ2a-PQ4S/kQ6Z2XQ7Z4TQ8h6[T<R'U+VV#aW%f*WU#`W%f*WS(Q#W(YU(V#Z+U/hS-U'U+VT-x(P-}V'Z!e%g*XQ$lfR)u$qT)j$l)kR3z/PT*]$y*_T*e$|*WQ0o+bQ3S.`Q5i1fQ6q3WQ8S5lQ8s6pQ9b8RQ9t8rQ:V9dQ:_9vQ:d:WR:g:`nqOXst!Z#d%k&o&q&r&t,m,r2P2SQ&i!VR,b&ftmOXst!U!V!Z#d%k&f&o&q&r&t,m,r2P2SR,i&lT%jm,iR1`,RR,a&dQ&S|R+y&TR+o%}T&m!W&pT&n!W&pT2R,r2S",nodeNames:"⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:373,context:PE,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,202,206,210,211,213,216,219,229,231,237,239,241,243,246,252,258,260,262,264,266,268,269,"Statement",-33,12,13,28,31,32,38,48,51,52,54,59,67,69,76,80,82,84,85,107,108,117,118,135,138,140,141,142,143,145,146,165,166,168,"Expression",-23,27,29,33,37,39,41,169,171,173,174,176,177,178,180,181,182,184,185,186,196,198,200,201,"Type",-3,88,100,106,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",73,"(",158,"JSXStartCloseTag"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#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO([~~",141,333),new ya("j~RQYZXz{^~^O'y~~aP!P!Qd~iO'z~~",25,316)],topRules:{Script:[0,6],SingleExpression:[1,270],SingleClassItem:[2,271]},dialects:{jsx:0,ts:14840},dynamicPrecedences:{70:1,80:1,82:1,166:1,194:1},specialized:[{term:320,get:t=>EE[t]||-1},{term:335,get:t=>jE[t]||-1},{term:71,get:t=>AE[t]||-1}],tokenPrec:14864}),pO=[Ot("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ot("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ot("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ot("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ot("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ot(`try {
52
+ \${}
53
+ } catch (\${error}) {
54
+ \${}
55
+ }`,{label:"try",detail:"/ catch block",type:"keyword"}),Ot("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Ot(`if (\${}) {
56
+ \${}
57
+ } else {
58
+ \${}
59
+ }`,{label:"if",detail:"/ else block",type:"keyword"}),Ot(`class \${name} {
60
+ constructor(\${params}) {
61
+ \${}
62
+ }
63
+ }`,{label:"class",detail:"definition",type:"keyword"}),Ot('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ot('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],ME=pO.concat([Ot("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ot("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ot("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),fO=new ig,hO=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Ps(t){return(e,n)=>{let i=e.node.getChild("VariableDefinition");return i&&n(i,t),!0}}const RE=["FunctionDeclaration"],_E={FunctionDeclaration:Ps("function"),ClassDeclaration:Ps("class"),ClassExpression:()=>!0,EnumDeclaration:Ps("constant"),TypeAliasDeclaration:Ps("type"),NamespaceDeclaration:Ps("namespace"),VariableDefinition(t,e){t.matchContext(RE)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function mO(t,e){let n=fO.get(e);if(n)return n;let i=[],r=!0;function s(o,a){let l=t.sliceString(o.from,o.to);i.push({label:l,type:a})}return e.cursor(ke.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let a=_E[o.name];if(a&&a(o,s)||hO.has(o.name))return!1}else if(o.to-o.from>8192){for(let a of mO(t,o.node))i.push(a);return!1}}),fO.set(e,i),i}const gO=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,vO=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function IE(t){let e=Ue(t.state).resolveInner(t.pos,-1);if(vO.indexOf(e.name)>-1)return null;let n=e.name=="VariableName"||e.to-e.from<20&&gO.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let i=[];for(let r=e;r;r=r.parent)hO.has(r.name)&&(i=i.concat(mO(t.state.doc,r)));return{options:i,from:n?e.from:t.pos,validFor:gO}}const yn=dr.define({name:"javascript",parser:DE.configure({props:[la.add({IfStatement:ca({except:/^\s*({|else\b)/}),TryStatement:ca({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:F$,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:i?1:2)*t.unit},Block:U$({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":ca({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),pu.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Sg,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),OO={test:t=>/^JSX/.test(t.name),facet:gg({commentTokens:{block:{open:"{/*",close:"*/}"}}})},xO=yn.configure({dialect:"ts"},"typescript"),bO=yn.configure({dialect:"jsx",props:[lu.add(t=>t.isTop?[OO]:void 0)]}),yO=yn.configure({dialect:"jsx ts",props:[lu.add(t=>t.isTop?[OO]:void 0)]},"typescript");let wO=t=>({label:t,type:"keyword"});const SO="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(wO),ZE=SO.concat(["declare","implements","private","protected","public"].map(wO));function zu(t={}){let e=t.jsx?t.typescript?yO:bO:t.typescript?xO:yn,n=t.typescript?ME.concat(ZE):pO.concat(SO);return new uu(e,[yn.data.of({autocomplete:pT(vO,dT(n))}),yn.data.of({autocomplete:IE}),t.jsx?XE:[]])}function NE(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function PO(t,e,n=t.length){for(let i=e==null?void 0:e.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return t.sliceString(i.from,Math.min(i.to,n));return""}const LE=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),XE=ne.inputHandler.of((t,e,n,i,r)=>{if((LE?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||i!=">"&&i!="/"||!yn.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(l=>{var c;let{head:u}=l,d=Ue(o).resolveInner(u-1,-1),p;if(d.name=="JSXStartTag"&&(d=d.parent),!(o.doc.sliceString(u-1,u)!=i||d.name=="JSXAttributeValue"&&d.to>u)){if(i==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:u,insert:"</>"}};if(i=="/"&&d.name=="JSXStartCloseTag"){let f=d.parent,h=f.parent;if(h&&f.from==u-2&&((p=PO(o.doc,h.firstChild,u))||((c=h.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let m=`${p}>`;return{range:R.cursor(u+m.length,-1),changes:{from:u,insert:m}}}}else if(i==">"){let f=NE(d);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(u,u+2))&&(p=PO(o.doc,f,u)))return{range:l,changes:{from:u,insert:`</${p}>`}}}}return{range:l}});return a.changes.empty?!1:(t.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),ks=["_blank","_self","_top","_parent"],Yu=["ascii","utf-8","utf-16","latin1","latin1"],Bu=["get","post","put","delete"],Uu=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qt=["true","false"],K={},VE={a:{attrs:{href:null,ping:null,type:null,media:null,target:ks,hreflang:null}},abbr:K,address:K,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:K,aside:K,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:K,base:{attrs:{href:null,target:ks}},bdi:K,bdo:K,blockquote:{attrs:{cite:null}},body:K,br:K,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Uu,formmethod:Bu,formnovalidate:["novalidate"],formtarget:ks,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:K,center:K,cite:K,code:K,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:K,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:K,div:K,dl:K,dt:K,em:K,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:K,figure:K,footer:K,form:{attrs:{action:null,name:null,"accept-charset":Yu,autocomplete:["on","off"],enctype:Uu,method:Bu,novalidate:["novalidate"],target:ks}},h1:K,h2:K,h3:K,h4:K,h5:K,h6:K,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:K,hgroup:K,hr:K,html:{attrs:{manifest:null}},i:K,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Uu,formmethod:Bu,formnovalidate:["novalidate"],formtarget:ks,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:K,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:K,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:K,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Yu,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:K,noscript:K,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:K,param:{attrs:{name:null,value:null}},pre:K,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:K,rt:K,ruby:K,samp:K,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Yu}},section:K,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:K,source:{attrs:{src:null,type:null,media:null}},span:K,strong:K,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:K,summary:K,sup:K,table:K,tbody:K,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:K,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:K,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:K,time:{attrs:{datetime:null}},title:K,tr:K,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:K,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:K},kO={accesskey:null,class:null,contenteditable:Qt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Qt,autocorrect:Qt,autocapitalize:Qt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Qt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qt,"aria-hidden":Qt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qt,"aria-multiselectable":Qt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qt,"aria-relevant":null,"aria-required":Qt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},$O="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of $O)kO[t]=null;class $a{constructor(e,n){this.tags=Object.assign(Object.assign({},VE),e),this.globalAttrs=Object.assign(Object.assign({},kO),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}$a.default=new $a;function Or(t,e,n=t.length){if(!e)return"";let i=e.firstChild,r=i&&i.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,n)):""}function xr(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function TO(t,e,n){let i=n.tags[Or(t,xr(e))];return(i==null?void 0:i.children)||n.allTags}function Fu(t,e){let n=[];for(let i=xr(e);i&&!i.type.isTop;i=xr(i.parent)){let r=Or(t,i);if(r&&i.lastChild.name=="CloseTag")break;r&&n.indexOf(r)<0&&(e.name=="EndTag"||e.from>=i.firstChild.to)&&n.push(r)}return n}const QO=/^[:\-\.\w\u00b7-\uffff]*$/;function CO(t,e,n,i,r){let s=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",o=xr(n,!0);return{from:i,to:r,options:TO(t.doc,o,e).map(a=>({label:a,type:"type"})).concat(Fu(t.doc,n).map((a,l)=>({label:"/"+a,apply:"/"+a+s,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function EO(t,e,n,i){let r=/\s*>/.test(t.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:Fu(t.doc,e).map((s,o)=>({label:s,apply:s+r,type:"type",boost:99-o})),validFor:QO}}function WE(t,e,n,i){let r=[],s=0;for(let o of TO(t.doc,n,e))r.push({label:"<"+o,type:"type"});for(let o of Fu(t.doc,n))r.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function qE(t,e,n,i,r){let s=xr(n),o=s?e.tags[Or(t.doc,s)]:null,a=o&&o.attrs?Object.keys(o.attrs):[],l=o&&o.globalAttrs===!1?a:a.length?a.concat(e.globalAttrNames):e.globalAttrNames;return{from:i,to:r,options:l.map(c=>({label:c,type:"property"})),validFor:QO}}function zE(t,e,n,i,r){var s;let o=(s=n.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),a=[],l;if(o){let c=t.sliceDoc(o.from,o.to),u=e.globalAttrs[c];if(!u){let d=xr(n),p=d?e.tags[Or(t.doc,d)]:null;u=(p==null?void 0:p.attrs)&&p.attrs[c]}if(u){let d=t.sliceDoc(i,r).toLowerCase(),p='"',f='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",f=t.sliceDoc(r,r+1)==d[0]?"":d[0],d=d.slice(1),i++):l=/^[^\s<>='"]*$/;for(let h of u)a.push({label:h,apply:p+h+f,type:"constant"})}}return{from:i,to:r,options:a,validFor:l}}function YE(t,e){let{state:n,pos:i}=e,r=Ue(n).resolveInner(i,-1),s=r.resolve(i);for(let o=i,a;s==r&&(a=r.childBefore(o));){let l=a.lastChild;if(!l||!l.type.isError||l.from<l.to)break;s=r=a,o=l.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?EO(n,r,r.from,i):CO(n,t,r,r.from,i):r.name=="StartTag"?CO(n,t,r,i,i):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?EO(n,r,i,i):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?qE(n,t,r,r.name=="AttributeName"?r.from:i,i):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?zE(n,t,r,r.name=="Is"?i:r.from,i):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?WE(n,t,r,i):null}function BE(t){let{extraTags:e,extraGlobalAttributes:n}=t,i=n||e?new $a(e,n):$a.default;return r=>YE(i,r)}const UE=yn.parser.configure({top:"SingleExpression"}),jO=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:xO.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:bO.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:yO.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:UE},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:yn.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:Sa.parser}],AO=[{name:"style",parser:Sa.parser.configure({top:"Styles"})}].concat($O.map(t=>({name:t,parser:yn.parser}))),DO=dr.define({name:"html",parser:lE.configure({props:[la.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,n;for(let i=t.node;;){let r=i.lastChild;if(!r||r.name!="Element"||r.to!=i.to)break;e=i=r}return e&&!((n=e.lastChild)&&(n.name=="CloseTag"||n.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),pu.add({Element(t){let e=t.firstChild,n=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:n.name=="CloseTag"?n.from:t.to}}}),Qg.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Ta=DO.configure({wrap:cO(jO,AO)});function FE(t={}){let e="",n;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(n=cO((t.nestedLanguages||[]).concat(jO),(t.nestedAttributes||[]).concat(AO)));let i=n?DO.configure({wrap:n,dialect:e}):e?Ta.configure({dialect:e}):Ta;return new uu(i,[Ta.data.of({autocomplete:BE(t)}),t.autoCloseTags!==!1?GE:[],zu().support,qv().support])}const MO=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),GE=ne.inputHandler.of((t,e,n,i,r)=>{if(t.composing||t.state.readOnly||e!=n||i!=">"&&i!="/"||!Ta.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(l=>{var c,u,d;let p=o.doc.sliceString(l.from-1,l.to)==i,{head:f}=l,h=Ue(o).resolveInner(f,-1),m;if(p&&i==">"&&h.name=="EndTag"){let g=h.parent;if(((u=(c=g.parent)===null||c===void 0?void 0:c.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(m=Or(o.doc,g.parent,f))&&!MO.has(m)){let O=f+(o.doc.sliceString(f,f+1)===">"?1:0),v=`</${m}>`;return{range:l,changes:{from:f,to:O,insert:v}}}}else if(p&&i=="/"&&h.name=="IncompleteCloseTag"){let g=h.parent;if(h.from==f-2&&((d=g.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(m=Or(o.doc,g,f))&&!MO.has(m)){let O=f+(o.doc.sliceString(f,f+1)===">"?1:0),v=`${m}>`;return{range:R.cursor(f+v.length,-1),changes:{from:f,to:O,insert:v}}}}return{range:l}});return a.changes.empty?!1:(t.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var RO=function(){function t(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function HE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var li=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],JE=function(){RO(t,null,[{key:"escapeForHtml",value:function(n){return new t().escapeForHtml(n)}},{key:"linkify",value:function(n){return new t().linkify(n)}},{key:"ansiToHtml",value:function(n,i){return new t().ansiToHtml(n,i)}},{key:"ansiToJson",value:function(n,i){return new t().ansiToJson(n,i)}},{key:"ansiToText",value:function(n){return new t().ansiToText(n)}}]);function t(){HE(this,t),this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}return RO(t,[{key:"setupPalette",value:function(){this.PALETTE_COLORS=[];for(var n=0;n<2;++n)for(var i=0;i<8;++i)this.PALETTE_COLORS.push(li[n][i].color);for(var r=[0,95,135,175,215,255],s=function(p,f,h){return r[p]+", "+r[f]+", "+r[h]},o=0;o<6;++o)for(var a=0;a<6;++a)for(var l=0;l<6;++l)this.PALETTE_COLORS.push(s(o,a,l));for(var c=8,u=0;u<24;++u,c+=10)this.PALETTE_COLORS.push(s(c,c,c))}},{key:"escapeForHtml",value:function(n){return n.replace(/[&<>\"]/gm,function(i){return i=="&"?"&amp;":i=='"'?"&quot;":i=="<"?"&lt;":i==">"?"&gt;":""})}},{key:"linkify",value:function(n){return n.replace(/(https?:\/\/[^\s]+)/gm,function(i){return'<a href="'+i+'">'+i+"</a>"})}},{key:"ansiToHtml",value:function(n,i){return this.process(n,i,!0)}},{key:"ansiToJson",value:function(n,i){return i=i||{},i.json=!0,i.clearLine=!1,this.process(n,i,!0)}},{key:"ansiToText",value:function(n){return this.process(n,{},!1)}},{key:"process",value:function(n,i,r){var s=this,o=this,a=n.split(/\033\[/),l=a.shift();i==null&&(i={}),i.clearLine=/\r/.test(n);var c=a.map(function(d){return s.processChunk(d,i,r)});if(i&&i.json){var u=o.processChunkJson("");return u.content=l,u.clearLine=i.clearLine,c.unshift(u),i.remove_empty&&(c=c.filter(function(d){return!d.isEmpty()})),c}else c.unshift(l);return c.join("")}},{key:"processChunkJson",value:function(n,i,r){i=typeof i>"u"?{}:i;var s=i.use_classes=typeof i.use_classes<"u"&&i.use_classes,o=i.key=s?"class":"color",a={content:n,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:i.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:function(){return!a.content}},l=n.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!l)return a;a.content=l[4];var c=l[2].split(";");if(l[1]!==""||l[3]!=="m"||!r)return a;for(var u=this;c.length>0;){var d=c.shift(),p=parseInt(d);if(isNaN(p)||p===0)u.fg=u.bg=null,u.decorations=[];else if(p===1)u.decorations.push("bold");else if(p===2)u.decorations.push("dim");else if(p===3)u.decorations.push("italic");else if(p===4)u.decorations.push("underline");else if(p===5)u.decorations.push("blink");else if(p===7)u.decorations.push("reverse");else if(p===8)u.decorations.push("hidden");else if(p===9)u.decorations.push("strikethrough");else if(p===21)u.removeDecoration("bold");else if(p===22)u.removeDecoration("bold"),u.removeDecoration("dim");else if(p===23)u.removeDecoration("italic");else if(p===24)u.removeDecoration("underline");else if(p===25)u.removeDecoration("blink");else if(p===27)u.removeDecoration("reverse");else if(p===28)u.removeDecoration("hidden");else if(p===29)u.removeDecoration("strikethrough");else if(p===39)u.fg=null;else if(p===49)u.bg=null;else if(p>=30&&p<38)u.fg=li[0][p%10][o];else if(p>=90&&p<98)u.fg=li[1][p%10][o];else if(p>=40&&p<48)u.bg=li[0][p%10][o];else if(p>=100&&p<108)u.bg=li[1][p%10][o];else if(p===38||p===48){var f=p===38;if(c.length>=1){var h=c.shift();if(h==="5"&&c.length>=1){var m=parseInt(c.shift());if(m>=0&&m<=255)if(!s)this.PALETTE_COLORS||u.setupPalette(),f?u.fg=this.PALETTE_COLORS[m]:u.bg=this.PALETTE_COLORS[m];else{var g=m>=16?"ansi-palette-"+m:li[m>7?1:0][m%8].class;f?u.fg=g:u.bg=g}}else if(h==="2"&&c.length>=3){var O=parseInt(c.shift()),v=parseInt(c.shift()),x=parseInt(c.shift());if(O>=0&&O<=255&&v>=0&&v<=255&&x>=0&&x<=255){var b=O+", "+v+", "+x;s?f?(u.fg="ansi-truecolor",u.fg_truecolor=b):(u.bg="ansi-truecolor",u.bg_truecolor=b):f?u.fg=b:u.bg=b}}}}}return u.fg===null&&u.bg===null&&u.decorations.length===0||(a.fg=u.fg,a.bg=u.bg,a.fg_truecolor=u.fg_truecolor,a.bg_truecolor=u.bg_truecolor,a.decorations=u.decorations,a.decoration=u.decorations.slice(-1).pop()||null,a.was_processed=!0),a}},{key:"processChunk",value:function(n,i,r){var s=this;i=i||{};var o=this.processChunkJson(n,i,r),a=i.use_classes;if(o.decorations=o.decorations.filter(function(f){if(f==="reverse"){o.fg||(o.fg=li[0][7][a?"class":"color"]),o.bg||(o.bg=li[0][0][a?"class":"color"]);var h=o.fg;o.fg=o.bg,o.bg=h;var m=o.fg_truecolor;return o.fg_truecolor=o.bg_truecolor,o.bg_truecolor=m,o.isInverted=!0,!1}return!0}),i.json)return o;if(o.isEmpty())return"";if(!o.was_processed)return o.content;var l=[],c=[],u=[],d={},p=function(h){var m=[],g=void 0;for(g in h)h.hasOwnProperty(g)&&m.push("data-"+g+'="'+s.escapeForHtml(h[g])+'"');return m.length>0?" "+m.join(" "):""};return o.isInverted&&(d["ansi-is-inverted"]="true"),o.fg&&(a?(l.push(o.fg+"-fg"),o.fg_truecolor!==null&&(d["ansi-truecolor-fg"]=o.fg_truecolor,o.fg_truecolor=null)):l.push("color:rgb("+o.fg+")")),o.bg&&(a?(l.push(o.bg+"-bg"),o.bg_truecolor!==null&&(d["ansi-truecolor-bg"]=o.bg_truecolor,o.bg_truecolor=null)):l.push("background-color:rgb("+o.bg+")")),o.decorations.forEach(function(f){if(a){c.push("ansi-"+f);return}f==="bold"?c.push("font-weight:bold"):f==="dim"?c.push("opacity:0.5"):f==="italic"?c.push("font-style:italic"):f==="hidden"?c.push("visibility:hidden"):f==="strikethrough"?u.push("line-through"):u.push(f)}),u.length&&c.push("text-decoration:"+u.join(" ")),a?'<span class="'+l.concat(c).join(" ")+'"'+p(d)+">"+o.content+"</span>":'<span style="'+l.concat(c).join(";")+'"'+p(d)+">"+o.content+"</span>"}},{key:"removeDecoration",value:function(n){var i=this.decorations.indexOf(n);i>=0&&this.decorations.splice(i,1)}}]),t}(),KE=JE;const e2=uo(KE);var Gu={exports:{}};function Hu(t){if(!t)return"";if(!/\r/.test(t))return t;for(t=t.replace(/\r+\n/gm,`
64
+ `);/\r./.test(t);)t=t.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(e,n,i){return i+n.slice(i.length)});return t}function t2(t){for(var e=0,n=0;n<t.length;n++)t[e].length<=t[n].length&&(e=n);return e}function _O(t){if(!/\r/.test(t))return t;for(var e=t.split("\r"),n=[];e.length>0;){var i=t2(e);n.push(e[i]),e=e.slice(i+1)}return n.join("\r")}function n2(t){if(!t)return"";if(!/\r/.test(t))return t;if(!/\n/.test(t))return _O(t);t=t.replace(/\r+\n/gm,`
65
+ `);var e=t.lastIndexOf(`
66
+ `);return Hu(t.slice(0,e))+`
67
+ `+_O(t.slice(e+1))}Gu.exports=Hu;var i2=Gu.exports.escapeCarriageReturn=Hu;Gu.exports.escapeCarriageReturnSafe=n2;var Ju={exports:{}};Ju.exports,function(t){var e=function(){var n=String.fromCharCode,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,c){if(!s[l]){s[l]={};for(var u=0;u<l.length;u++)s[l][l.charAt(u)]=u}return s[l][c]}var a={compressToBase64:function(l){if(l==null)return"";var c=a._compress(l,6,function(u){return i.charAt(u)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:a._decompress(l.length,32,function(c){return o(i,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":a._compress(l,15,function(c){return n(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:a._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=a.compress(l),u=new Uint8Array(c.length*2),d=0,p=c.length;d<p;d++){var f=c.charCodeAt(d);u[d*2]=f>>>8,u[d*2+1]=f%256}return u},decompressFromUint8Array:function(l){if(l==null)return a.decompress(l);for(var c=new Array(l.length/2),u=0,d=c.length;u<d;u++)c[u]=l[u*2]*256+l[u*2+1];var p=[];return c.forEach(function(f){p.push(n(f))}),a.decompress(p.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":a._compress(l,6,function(c){return r.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),a._decompress(l.length,32,function(c){return o(r,l.charAt(c))}))},compress:function(l){return a._compress(l,16,function(c){return n(c)})},_compress:function(l,c,u){if(l==null)return"";var d,p,f={},h={},m="",g="",O="",v=2,x=3,b=2,w=[],y=0,k=0,T;for(T=0;T<l.length;T+=1)if(m=l.charAt(T),Object.prototype.hasOwnProperty.call(f,m)||(f[m]=x++,h[m]=!0),g=O+m,Object.prototype.hasOwnProperty.call(f,g))O=g;else{if(Object.prototype.hasOwnProperty.call(h,O)){if(O.charCodeAt(0)<256){for(d=0;d<b;d++)y=y<<1,k==c-1?(k=0,w.push(u(y)),y=0):k++;for(p=O.charCodeAt(0),d=0;d<8;d++)y=y<<1|p&1,k==c-1?(k=0,w.push(u(y)),y=0):k++,p=p>>1}else{for(p=1,d=0;d<b;d++)y=y<<1|p,k==c-1?(k=0,w.push(u(y)),y=0):k++,p=0;for(p=O.charCodeAt(0),d=0;d<16;d++)y=y<<1|p&1,k==c-1?(k=0,w.push(u(y)),y=0):k++,p=p>>1}v--,v==0&&(v=Math.pow(2,b),b++),delete h[O]}else for(p=f[O],d=0;d<b;d++)y=y<<1|p&1,k==c-1?(k=0,w.push(u(y)),y=0):k++,p=p>>1;v--,v==0&&(v=Math.pow(2,b),b++),f[g]=x++,O=String(m)}if(O!==""){if(Object.prototype.hasOwnProperty.call(h,O)){if(O.charCodeAt(0)<256){for(d=0;d<b;d++)y=y<<1,k==c-1?(k=0,w.push(u(y)),y=0):k++;for(p=O.charCodeAt(0),d=0;d<8;d++)y=y<<1|p&1,k==c-1?(k=0,w.push(u(y)),y=0):k++,p=p>>1}else{for(p=1,d=0;d<b;d++)y=y<<1|p,k==c-1?(k=0,w.push(u(y)),y=0):k++,p=0;for(p=O.charCodeAt(0),d=0;d<16;d++)y=y<<1|p&1,k==c-1?(k=0,w.push(u(y)),y=0):k++,p=p>>1}v--,v==0&&(v=Math.pow(2,b),b++),delete h[O]}else for(p=f[O],d=0;d<b;d++)y=y<<1|p&1,k==c-1?(k=0,w.push(u(y)),y=0):k++,p=p>>1;v--,v==0&&(v=Math.pow(2,b),b++)}for(p=2,d=0;d<b;d++)y=y<<1|p&1,k==c-1?(k=0,w.push(u(y)),y=0):k++,p=p>>1;for(;;)if(y=y<<1,k==c-1){w.push(u(y));break}else k++;return w.join("")},decompress:function(l){return l==null?"":l==""?null:a._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var d=[],p=4,f=4,h=3,m="",g=[],O,v,x,b,w,y,k,T={val:u(0),position:c,index:1};for(O=0;O<3;O+=1)d[O]=O;for(x=0,w=Math.pow(2,2),y=1;y!=w;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=c,T.val=u(T.index++)),x|=(b>0?1:0)*y,y<<=1;switch(x){case 0:for(x=0,w=Math.pow(2,8),y=1;y!=w;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=c,T.val=u(T.index++)),x|=(b>0?1:0)*y,y<<=1;k=n(x);break;case 1:for(x=0,w=Math.pow(2,16),y=1;y!=w;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=c,T.val=u(T.index++)),x|=(b>0?1:0)*y,y<<=1;k=n(x);break;case 2:return""}for(d[3]=k,v=k,g.push(k);;){if(T.index>l)return"";for(x=0,w=Math.pow(2,h),y=1;y!=w;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=c,T.val=u(T.index++)),x|=(b>0?1:0)*y,y<<=1;switch(k=x){case 0:for(x=0,w=Math.pow(2,8),y=1;y!=w;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=c,T.val=u(T.index++)),x|=(b>0?1:0)*y,y<<=1;d[f++]=n(x),k=f-1,p--;break;case 1:for(x=0,w=Math.pow(2,16),y=1;y!=w;)b=T.val&T.position,T.position>>=1,T.position==0&&(T.position=c,T.val=u(T.index++)),x|=(b>0?1:0)*y,y<<=1;d[f++]=n(x),k=f-1,p--;break;case 2:return g.join("")}if(p==0&&(p=Math.pow(2,h),h++),d[k])m=d[k];else if(k===f)m=v+v.charAt(0);else return null;g.push(m),d[f++]=v+m.charAt(0),p--,v=m,p==0&&(p=Math.pow(2,h),h++)}}};return a}();t!=null?t.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})}(Ju);var r2=Ju.exports;const s2=uo(r2);var j=function(){return j=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},j.apply(this,arguments)};function Ye(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}function Qa(t,e,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(t,e||[])).next())})}function Ca(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function st(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}var bt=function(t){return S.jsx("svg",j({fill:"currentColor",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg"},t))},o2=function(){return S.jsxs(bt,{viewBox:"0 0 48 48",children:[S.jsx("title",{children:"Sign in"}),S.jsx("path",{d:"M9 42q-1.2 0-2.1-.9Q6 40.2 6 39V9q0-1.2.9-2.1Q7.8 6 9 6h14.55v3H9v30h14.55v3Zm24.3-9.25-2.15-2.15 5.1-5.1h-17.5v-3h17.4l-5.1-5.1 2.15-2.15 8.8 8.8Z"})]})},a2=function(){return S.jsxs(bt,{viewBox:"0 0 48 48",children:[S.jsx("title",{children:"Sign out"}),S.jsx("path",{d:"M9 42q-1.2 0-2.1-.9Q6 40.2 6 39V9q0-1.2.9-2.1Q7.8 6 9 6h14.55v3H9v30h14.55v3Zm24.3-9.25-2.15-2.15 5.1-5.1h-17.5v-3h17.4l-5.1-5.1 2.15-2.15 8.8 8.8Z"})]})},Ea=function(){return S.jsxs(bt,{fill:"none",stroke:"currentColor",children:[S.jsx("title",{children:"Restart script"}),S.jsx("path",{d:"M8 2C4.68629 2 2 4.68629 2 8C2 10.0946 3.07333 11.9385 4.7 13.0118",strokeLinecap:"round"}),S.jsx("path",{d:"M14.0005 7.9998C14.0005 5.82095 12.8391 3.91335 11.1016 2.8623",strokeLinecap:"round"}),S.jsx("path",{d:"M14.0003 2.3335H11.167C10.8908 2.3335 10.667 2.55735 10.667 2.8335V5.66683",strokeLinecap:"round"}),S.jsx("path",{d:"M1.99967 13.6665L4.83301 13.6665C5.10915 13.6665 5.33301 13.4426 5.33301 13.1665L5.33301 10.3332",strokeLinecap:"round"}),S.jsx("path",{d:"M10 10L12 12L10 14",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{d:"M14.667 14L12.667 14",strokeLinecap:"round",strokeLinejoin:"round"})]})},l2=function(){return S.jsxs(bt,{children:[S.jsx("title",{children:"Run sandbox"}),S.jsx("path",{d:"M11.0792 8.1078C11.2793 8.25007 11.27 8.55012 11.0616 8.67981L6.02535 11.8135C5.79638 11.956 5.5 11.7913 5.5 11.5216L5.5 8.40703L5.5 4.80661C5.5 4.52735 5.81537 4.36463 6.04296 4.52647L11.0792 8.1078Z"})]})},c2=function(){return S.jsxs(bt,{children:[S.jsx("title",{children:"Click to go back"}),S.jsx("path",{d:"M9.64645 12.3536C9.84171 12.5488 10.1583 12.5488 10.3536 12.3536C10.5488 12.1583 10.5488 11.8417 10.3536 11.6464L9.64645 12.3536ZM10.3536 4.35355C10.5488 4.15829 10.5488 3.84171 10.3536 3.64644C10.1583 3.45118 9.84171 3.45118 9.64645 3.64644L10.3536 4.35355ZM6.07072 7.92929L5.71716 7.57573L6.07072 7.92929ZM10.3536 11.6464L6.42427 7.71716L5.71716 8.42426L9.64645 12.3536L10.3536 11.6464ZM6.42427 8.28284L10.3536 4.35355L9.64645 3.64644L5.71716 7.57573L6.42427 8.28284ZM6.42427 7.71716C6.58048 7.87337 6.58048 8.12663 6.42427 8.28284L5.71716 7.57573C5.48285 7.81005 5.48285 8.18995 5.71716 8.42426L6.42427 7.71716Z"})]})},u2=function(){return S.jsxs(bt,{children:[S.jsx("title",{children:"Click to go forward"}),S.jsx("path",{d:"M6.35355 3.64645C6.15829 3.45118 5.84171 3.45118 5.64645 3.64645C5.45118 3.84171 5.45118 4.15829 5.64645 4.35355L6.35355 3.64645ZM5.64645 11.6464C5.45118 11.8417 5.45118 12.1583 5.64645 12.3536C5.84171 12.5488 6.15829 12.5488 6.35355 12.3536L5.64645 11.6464ZM9.92929 8.07071L10.2828 8.42426L9.92929 8.07071ZM5.64645 4.35355L9.57574 8.28284L10.2828 7.57574L6.35355 3.64645L5.64645 4.35355ZM9.57574 7.71716L5.64645 11.6464L6.35355 12.3536L10.2828 8.42426L9.57574 7.71716ZM9.57574 8.28284C9.41952 8.12663 9.41953 7.87337 9.57574 7.71716L10.2828 8.42426C10.5172 8.18995 10.5172 7.81005 10.2828 7.57574L9.57574 8.28284Z"})]})},IO=function(){return S.jsxs(bt,{children:[S.jsx("title",{children:"Refresh preview"}),S.jsx("path",{clipRule:"evenodd",d:"M3.83325 7.99992C3.83325 5.69867 5.69853 3.83325 7.99934 3.83325C9.81246 3.83325 11.3563 4.99195 11.9285 6.61097C11.9396 6.6425 11.9536 6.67221 11.97 6.69992H8.80005C8.52391 6.69992 8.30005 6.92378 8.30005 7.19992C8.30005 7.47606 8.52391 7.69992 8.80005 7.69992H12.5667C12.8981 7.69992 13.1667 7.43129 13.1667 7.09992V3.33325C13.1667 3.05711 12.9429 2.83325 12.6667 2.83325C12.3906 2.83325 12.1667 3.05711 12.1667 3.33325V4.94608C11.2268 3.66522 9.7106 2.83325 7.99934 2.83325C5.14613 2.83325 2.83325 5.14651 2.83325 7.99992C2.83325 10.8533 5.14613 13.1666 7.99934 13.1666C9.91218 13.1666 11.5815 12.1266 12.474 10.5836C12.6123 10.3446 12.5306 10.0387 12.2915 9.90044C12.0525 9.76218 11.7466 9.84387 11.6084 10.0829C10.8873 11.3296 9.54072 12.1666 7.99934 12.1666C5.69853 12.1666 3.83325 10.3012 3.83325 7.99992Z",fillRule:"evenodd"})]})},d2=function(){return S.jsxs(bt,{fill:"none",stroke:"currentColor",children:[S.jsx("title",{children:"Clean"}),S.jsx("circle",{cx:"7.99998",cy:"8.00004",r:"4.66667",strokeLinecap:"round"}),S.jsx("path",{d:"M4.66669 4.66663L11.3334 11.3333"})]})},p2=function(){return S.jsxs(bt,{fill:"none",stroke:"currentColor",children:[S.jsx("title",{children:"Open on CodeSandbox"}),S.jsx("path",{d:"M6.66665 3.33337H4.33331C3.78103 3.33337 3.33331 3.78109 3.33331 4.33337V11.6667C3.33331 12.219 3.78103 12.6667 4.33331 12.6667H11.6666C12.2189 12.6667 12.6666 12.219 12.6666 11.6667V9.33337",strokeLinecap:"round"}),S.jsx("path",{d:"M10 3.33337H12.5667C12.6219 3.33337 12.6667 3.37815 12.6667 3.43337V6.00004",strokeLinecap:"round"}),S.jsx("path",{d:"M7.33331 8.66668L12.5333 3.46667",strokeLinecap:"round"})]})},ZO=function(){return S.jsxs(bt,{children:[S.jsx("title",{children:"Directory"}),S.jsx("path",{d:"M12.5526 12.6667H3.66675C3.2922 12.6667 2.96575 12.4608 2.79442 12.156L3.81072 8.0908C3.92201 7.64563 4.32199 7.33333 4.78086 7.33333H13.386C14.0365 7.33333 14.5139 7.94472 14.3561 8.57587L13.5228 11.9092C13.4115 12.3544 13.0115 12.6667 12.5526 12.6667Z",fill:"currentColor"}),S.jsx("path",{d:"M13.3334 6.63333V6.33333C13.3334 5.78105 12.8857 5.33333 12.3334 5.33333H8.30286C8.10543 5.33333 7.91242 5.2749 7.74816 5.16538L6.25201 4.16795C6.08774 4.05844 5.89473 4 5.69731 4H3.66675C3.11446 4 2.66675 4.44772 2.66675 5L2.66675 11.6667C2.66675 12.219 3.11446 12.6667 3.66675 12.6667H12.5526C13.0115 12.6667 13.4115 12.3544 13.5228 11.9092L14.3561 8.57587C14.5139 7.94472 14.0365 7.33333 13.386 7.33333H4.78086C4.32199 7.33333 3.92201 7.64563 3.81072 8.0908L2.75008 12.3333",fill:"none",stroke:"currentColor",strokeLinecap:"round"})]})},f2=function(){return S.jsxs(bt,{children:[S.jsx("title",{children:"Directory"}),S.jsx("path",{d:"M12.3334 12.6667H3.66675C3.11446 12.6667 2.66675 12.219 2.66675 11.6667V5C2.66675 4.44772 3.11446 4 3.66675 4H5.69731C5.89473 4 6.08774 4.05844 6.25201 4.16795L7.74816 5.16538C7.91242 5.2749 8.10543 5.33333 8.30286 5.33333H12.3334C12.8857 5.33333 13.3334 5.78105 13.3334 6.33333V11.6667C13.3334 12.219 12.8857 12.6667 12.3334 12.6667Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round"})]})},NO=function(){return S.jsxs(bt,{fill:"currentColor",children:[S.jsx("title",{children:"File"}),S.jsx("path",{clipRule:"evenodd",d:"M4.5 4.33325C4.5 4.05711 4.72386 3.83325 5 3.83325H8.16675V6.56659C8.16675 6.89795 8.43538 7.16658 8.76675 7.16658H11.5V12.3333C11.5 12.6094 11.2761 12.8333 11 12.8333H5C4.72386 12.8333 4.5 12.6094 4.5 12.3333V4.33325ZM12.5 6.67568C12.5001 6.67265 12.5001 6.66962 12.5001 6.66658C12.5001 6.66355 12.5001 6.66052 12.5 6.65749V6.41413C12.5 6.01631 12.342 5.63478 12.0607 5.35347L9.97978 3.27259C9.69848 2.99129 9.31694 2.83325 8.91912 2.83325H8.66675H5C4.17157 2.83325 3.5 3.50483 3.5 4.33325V12.3333C3.5 13.1617 4.17157 13.8333 5 13.8333H11C11.8284 13.8333 12.5 13.1617 12.5 12.3333V6.67568ZM9.16675 3.89888C9.20518 3.92078 9.24085 3.94787 9.27267 3.9797L11.3536 6.06058C11.3854 6.09243 11.4125 6.12813 11.4344 6.16658H9.16675V3.89888Z",fillRule:"evenodd"})]})},LO=function(){return S.jsxs(bt,{stroke:"currentColor",children:[S.jsx("title",{children:"Close file"}),S.jsx("path",{d:"M12 4L4 12",strokeLinecap:"round"}),S.jsx("path",{d:"M4 4L12 12",strokeLinecap:"round"})]})},h2=function(){return S.jsxs(bt,{children:[S.jsx("title",{children:"Open browser console"}),S.jsx("path",{d:"M5.65871 3.62037C5.44905 3.44066 5.1334 3.46494 4.95368 3.6746C4.77397 3.88427 4.79825 4.19992 5.00792 4.37963L5.65871 3.62037ZM5.00792 11.6204C4.79825 11.8001 4.77397 12.1157 4.95368 12.3254C5.1334 12.5351 5.44905 12.5593 5.65871 12.3796L5.00792 11.6204ZM9.9114 7.92407L10.2368 7.54445L9.9114 7.92407ZM5.00792 4.37963L9.586 8.3037L10.2368 7.54445L5.65871 3.62037L5.00792 4.37963ZM9.586 7.6963L5.00792 11.6204L5.65871 12.3796L10.2368 8.45555L9.586 7.6963ZM9.586 8.3037C9.39976 8.14407 9.39976 7.85594 9.586 7.6963L10.2368 8.45555C10.5162 8.2161 10.5162 7.7839 10.2368 7.54445L9.586 8.3037Z"}),S.jsx("path",{d:"M10 11.5C9.72386 11.5 9.5 11.7239 9.5 12C9.5 12.2761 9.72386 12.5 10 12.5V11.5ZM14.6667 12.5C14.9428 12.5 15.1667 12.2761 15.1667 12C15.1667 11.7239 14.9428 11.5 14.6667 11.5V12.5ZM10 12.5H14.6667V11.5H10V12.5Z"})]})},Ku,br={colors:{surface1:"#ffffff",surface2:"#EFEFEF",surface3:"#F3F3F3",disabled:"#C5C5C5",base:"#323232",clickable:"#808080",hover:"#4D4D4D",accent:"#3973E0",error:"#EA3323",errorSurface:"#FCF1F0",warning:"#6A4516",warningSurface:"#FEF2C0"},syntax:{plain:"#151515",comment:{color:"#999",fontStyle:"italic"},keyword:"#7C5AE3",tag:"#0971F1",punctuation:"#3B3B3B",definition:"#85A600",property:"#3B3B3B",static:"#3B3B3B",string:"#2E6BD0"},font:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'"Fira Mono", "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace',size:"13px",lineHeight:"20px"}},ed={colors:{surface1:"#151515",surface2:"#252525",surface3:"#2F2F2F",disabled:"#4D4D4D",base:"#808080",clickable:"#999999",hover:"#C5C5C5",accent:"#E5E5E5",error:"#FFB4A6",errorSurface:"#690000",warning:"#E7C400",warningSurface:"#3A3000"},syntax:{plain:"#FFFFFF",comment:{color:"#757575",fontStyle:"italic"},keyword:"#77B7D7",tag:"#DFAB5C",punctuation:"#ffffff",definition:"#86D9CA",property:"#77B7D7",static:"#C64640",string:"#977CDC"},font:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'"Fira Mono", "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace',size:"13px",lineHeight:"20px"}},m2={light:br,dark:ed,auto:typeof window<"u"&&!((Ku=window==null?void 0:window.matchMedia)===null||Ku===void 0)&&Ku.call(window,"(prefers-color-scheme: dark)").matches?ed:br},ja=function(t){var e=t.lastIndexOf("/");return t.slice(e+1)},g2=function(t,e){var n=(t[0]==="/"?t.slice(1):t).split("/"),i=[];if(n.length===1)i.unshift(n[0]);else for(var r=0;r<e.length;r++)for(var s=e[r].split("/"),o=1;o<=n.length;o++){var a=n[n.length-o],l=s[s.length-o];if(i.length<o&&i.unshift(a),a!==l)break}return i.length<n.length&&i.unshift(".."),i.join("/")},XO=function(t){var e=0,n=0,i=0;if(t.startsWith("#")){if(t.length<7)return!0;e=parseInt(t.substr(1,2),16),n=parseInt(t.substr(3,2),16),i=parseInt(t.substr(5,2),16)}else{var r=t.replace("rgb(","").replace("rgba(","").replace(")","").split(",");if(r.length<3)return!0;e=parseInt(r[0],10),n=parseInt(r[1],10),i=parseInt(r[2],10)}var s=(e*299+n*587+i*114)/1e3;return s<128},v2=0,Aa=function(){var t=+(Date.now().toString(10).substr(0,4)+v2++);return t.toString(16)},$s,be="sp",O2=($s=IS({prefix:be}),$s.createTheme),Y=$s.css;$s.getCssText;var VO=$s.keyframes,x2={space:new Array(11).fill(" ").reduce(function(t,e,n){var i;return j(j({},t),(i={},i[n+1]="".concat((n+1)*4,"px"),i))},{}),border:{radius:"4px"},layout:{height:"300px",headerHeight:"40px"},transitions:{default:"150ms ease"},zIndices:{base:"1",overlay:"2",top:"3"}},b2=function(t){var e=Object.entries(t.syntax),n=e.reduce(function(i,r){var s,o=r[0],a=r[1],l=(s={},s["color-".concat(o)]=a,s);return typeof a=="object"&&(l=Object.entries(a).reduce(function(c,u){var d,p=u[0],f=u[1];return j(j({},c),(d={},d["".concat(p,"-").concat(o)]=f,d))},{})),j(j({},i),l)},{});return j(j({},x2),{colors:t.colors,font:t.font,syntax:n})},y2=function(t){var e,n,i,r,s;t===void 0&&(t="light");var o="default";if(typeof t=="string"){var a=m2[t];if(!a)throw new Error("[sandpack-react]: invalid theme '".concat(t,"' provided."));return{theme:a,id:t,mode:XO(a.colors.surface1)?"dark":"light"}}var l=XO((n=(e=t==null?void 0:t.colors)===null||e===void 0?void 0:e.surface1)!==null&&n!==void 0?n:br.colors.surface1)?"dark":"light",c=l==="dark"?ed:br,u=j(j({},c.colors),(i=t==null?void 0:t.colors)!==null&&i!==void 0?i:{}),d=j(j({},c.syntax),(r=t==null?void 0:t.syntax)!==null&&r!==void 0?r:{}),p=j(j({},c.font),(s=t==null?void 0:t.font)!==null&&s!==void 0?s:{}),f={colors:u,syntax:d,font:p},h=t?w2(JSON.stringify(f)):o;return{theme:f,id:"sp-".concat(h),mode:l}},w2=function(t){for(var e=0,n=0;n<t.length;e&=e)e=31*e+t.charCodeAt(n++);return Math.abs(e)},WO=function(){return""};WO.toString=WO;var qO=P.createContext({}),S2=function(t){var e=t.children,n=t.classes;return S.jsx(qO.Provider,{value:n||{},children:e})},Fe=function(){var t=P.useContext(qO);return function(n,i){i===void 0&&(i=[]);var r="".concat(be,"-").concat(n);return P2.apply(void 0,st(st([],i,!1),[r,t[r]],!1))}},P2=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(Boolean).join(" ")},k2=Y({all:"initial",fontSize:"$font$size",fontFamily:"$font$body",display:"block",boxSizing:"border-box",textRendering:"optimizeLegibility",WebkitTapHighlightColor:"transparent",WebkitFontSmoothing:"subpixel-antialiased",variants:{variant:{dark:{colorScheme:"dark"},light:{colorScheme:"light"}}},"@media screen and (min-resolution: 2dppx)":{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"*":{boxSizing:"border-box"},".sp-wrapper:focus":{outline:"0"}}),td=U.createContext({theme:br,id:"light",mode:"light"}),zO=function(t){var e=t.theme,n=t.children,i=t.className,r=Ye(t,["theme","children","className"]),s=U.useState(e),o=s[0],a=s[1],l=y2(o),c=l.theme,u=l.id,d=l.mode,p=Fe(),f=U.useMemo(function(){return O2(u,b2(c))},[c,u]);return U.useEffect(function(){if(e!=="auto"){a(e);return}var h=function(m){var g=m.matches;a(g?"dark":"light")};return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",h),function(){window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",h)}},[e]),S.jsx(td.Provider,{value:{theme:c,id:u,mode:d},children:S.jsx("div",j({className:p("wrapper",[f,k2({variant:d}),i])},r,{children:n}))})};td.Consumer;var _e={"/styles.css":{code:`body {
68
+ font-family: sans-serif;
69
+ -webkit-font-smoothing: auto;
70
+ -moz-font-smoothing: auto;
71
+ -moz-osx-font-smoothing: grayscale;
72
+ font-smoothing: auto;
73
+ text-rendering: optimizeLegibility;
74
+ font-smooth: always;
75
+ -webkit-tap-highlight-color: transparent;
76
+ -webkit-touch-callout: none;
77
+ }
78
+
79
+ h1 {
80
+ font-size: 1.5rem;
81
+ }`}},$2={files:{"/src/styles.css":_e["/styles.css"],"/src/pages/index.astro":{code:`---
82
+ import "../styles.css";
83
+ const data = "world";
84
+ ---
85
+
86
+ <h1>Hello {data}</h1>
87
+
88
+ <style>
89
+ h1 {
90
+ font-size: 1.5rem;
91
+ }
92
+ </style>`},".env":{code:'ASTRO_TELEMETRY_DISABLED="1"'},"/package.json":{code:JSON.stringify({dependencies:{astro:"^1.6.12","esbuild-wasm":"^0.15.16"},scripts:{dev:"astro dev",start:"astro dev",build:"astro build",preview:"astro preview",astro:"astro"}})}},main:"/src/pages/index.astro",environment:"node"},T2={files:j(j({},_e),{"/pages/_app.js":{code:`import '../styles.css'
93
+
94
+ export default function MyApp({ Component, pageProps }) {
95
+ return <Component {...pageProps} />
96
+ }`},"/pages/index.js":{code:`export default function Home({ data }) {
97
+ return (
98
+ <div>
99
+ <h1>Hello {data}</h1>
100
+ </div>
101
+ );
102
+ }
103
+
104
+ export function getServerSideProps() {
105
+ return {
106
+ props: { data: "world" },
107
+ }
108
+ }
109
+ `},"/next.config.js":{code:`/** @type {import('next').NextConfig} */
110
+ const nextConfig = {
111
+ reactStrictMode: true,
112
+ swcMinify: true,
113
+ }
114
+
115
+ module.exports = nextConfig
116
+ `},"/package.json":{code:JSON.stringify({name:"my-app",version:"0.1.0",private:!0,scripts:{dev:"NEXT_TELEMETRY_DISABLED=1 next dev",build:"next build",start:"next start",lint:"next lint"},dependencies:{next:"12.1.6",react:"18.2.0","react-dom":"18.2.0","@next/swc-wasm-nodejs":"12.1.6"}})}}),main:"/pages/index.js",environment:"node"},Q2={files:{"/index.js":{code:`const http = require('http');
117
+
118
+ const hostname = '127.0.0.1';
119
+ const port = 3000;
120
+
121
+ const server = http.createServer((req, res) => {
122
+ res.statusCode = 200;
123
+ res.setHeader('Content-Type', 'text/html');
124
+ res.end('Hello world');
125
+ });
126
+
127
+ server.listen(port, hostname, () => {
128
+ console.log(\`Server running at http://\${hostname}:\${port}/\`);
129
+ });`},"/package.json":{code:JSON.stringify({dependencies:{},scripts:{start:"node index.js"},main:"index.js"})}},main:"/index.js",environment:"node"},C2={files:j(j({},_e),{"/index.js":{code:`import "./styles.css";
130
+
131
+ document.getElementById("app").innerHTML = \`
132
+ <h1>Hello world</h1>
133
+ \`;
134
+ `},"/index.html":{code:`<!DOCTYPE html>
135
+ <html lang="en">
136
+ <head>
137
+ <meta charset="UTF-8" />
138
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
139
+ <title>Vite App</title>
140
+ </head>
141
+ <body>
142
+ <div id="app"></div>
143
+ <script type="module" src="/index.js"><\/script>
144
+ </body>
145
+ </html>
146
+ `},"/package.json":{code:JSON.stringify({scripts:{dev:"vite",build:"vite build",preview:"vite preview"},devDependencies:{vite:"4.1.4","esbuild-wasm":"0.17.12"}})}}),main:"/index.js",environment:"node"},E2={files:j(j({},_e),{"/App.jsx":{code:`export default function App() {
147
+ const data = "world"
148
+
149
+ return <h1>Hello {data}</h1>
150
+ }
151
+ `},"/index.jsx":{code:`import { render } from "preact";
152
+ import "./styles.css";
153
+
154
+ import App from "./App";
155
+
156
+ const root = document.getElementById("root");
157
+ render(<App />, root);
158
+ `},"/index.html":{code:`<!DOCTYPE html>
159
+ <html lang="en">
160
+ <head>
161
+ <meta charset="UTF-8" />
162
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
163
+ <title>Vite App</title>
164
+ </head>
165
+ <body>
166
+ <div id="root"></div>
167
+ <script type="module" src="/index.jsx"><\/script>
168
+ </body>
169
+ </html>
170
+ `},"/package.json":{code:JSON.stringify({scripts:{dev:"vite",build:"vite build",preview:"vite preview"},dependencies:{preact:"^10.16.0"},devDependencies:{"@preact/preset-vite":"^2.5.0",vite:"4.1.4","esbuild-wasm":"0.17.12"}})},"/vite.config.js":{code:`import { defineConfig } from "vite";
171
+ import preact from '@preact/preset-vite'
172
+
173
+ // https://vitejs.dev/config/
174
+ export default defineConfig({
175
+ plugins: [preact()],
176
+ });
177
+ `}}),main:"/App.jsx",environment:"node"},j2={files:j(j({},_e),{"/App.tsx":{code:`export default function App() {
178
+ const data: string = "world"
179
+
180
+ return <h1>Hello {data}</h1>
181
+ }
182
+ `},"/index.tsx":{code:`import { render } from "preact";
183
+ import "./styles.css";
184
+
185
+ import App from "./App";
186
+
187
+ const root = document.getElementById("root") as HTMLElement;
188
+ render(<App />, root);
189
+ `},"/index.html":{code:`<!DOCTYPE html>
190
+ <html lang="en">
191
+ <head>
192
+ <meta charset="UTF-8" />
193
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
194
+ <title>Vite App</title>
195
+ </head>
196
+ <body>
197
+ <div id="root"></div>
198
+ <script type="module" src="/index.tsx"><\/script>
199
+ </body>
200
+ </html>
201
+ `},"/tsconfig.json":{code:JSON.stringify({compilerOptions:{target:"ESNext",useDefineForClassFields:!0,lib:["DOM","DOM.Iterable","ESNext"],allowJs:!1,skipLibCheck:!0,esModuleInterop:!1,allowSyntheticDefaultImports:!0,strict:!0,forceConsistentCasingInFileNames:!0,module:"ESNext",moduleResolution:"Node",resolveJsonModule:!0,isolatedModules:!0,noEmit:!0,jsx:"react-jsx",jsxImportSource:"preact"},include:["src"],references:[{path:"./tsconfig.node.json"}]},null,2)},"/tsconfig.node.json":{code:JSON.stringify({compilerOptions:{composite:!0,module:"ESNext",moduleResolution:"Node",allowSyntheticDefaultImports:!0},include:["vite.config.ts"]},null,2)},"/package.json":{code:JSON.stringify({scripts:{dev:"vite",build:"tsc && vite build",preview:"vite preview"},dependencies:{preact:"^10.16.0"},devDependencies:{"@preact/preset-vite":"^2.5.0",typescript:"^4.9.5",vite:"4.1.4","esbuild-wasm":"^0.17.12"}},null,2)},"/vite-env.d.ts":{code:'/// <reference types="vite/client" />'},"/vite.config.ts":{code:`import { defineConfig } from 'vite'
202
+ import preact from '@preact/preset-vite'
203
+
204
+ // https://vitejs.dev/config/
205
+ export default defineConfig({
206
+ plugins: [preact()],
207
+ })
208
+ `}}),main:"/App.tsx",environment:"node"},A2={files:j(j({},_e),{"/App.jsx":{code:`export default function App() {
209
+ const data = "world"
210
+
211
+ return <h1>Hello {data}</h1>
212
+ }
213
+ `},"/index.jsx":{code:`import { StrictMode } from "react";
214
+ import { createRoot } from "react-dom/client";
215
+ import "./styles.css";
216
+
217
+ import App from "./App";
218
+
219
+ const root = createRoot(document.getElementById("root"));
220
+ root.render(
221
+ <StrictMode>
222
+ <App />
223
+ </StrictMode>
224
+ );`},"/index.html":{code:`<!DOCTYPE html>
225
+ <html lang="en">
226
+ <head>
227
+ <meta charset="UTF-8" />
228
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
229
+ <title>Vite App</title>
230
+ </head>
231
+ <body>
232
+ <div id="root"></div>
233
+ <script type="module" src="/index.jsx"><\/script>
234
+ </body>
235
+ </html>
236
+ `},"/package.json":{code:JSON.stringify({scripts:{dev:"vite",build:"vite build",preview:"vite preview"},dependencies:{react:"^18.2.0","react-dom":"^18.2.0"},devDependencies:{"@vitejs/plugin-react":"3.1.0",vite:"4.1.4","esbuild-wasm":"0.17.12"}})},"/vite.config.js":{code:`import { defineConfig } from "vite";
237
+ import react from "@vitejs/plugin-react";
238
+
239
+ // https://vitejs.dev/config/
240
+ export default defineConfig({
241
+ plugins: [react()],
242
+ });
243
+ `}}),main:"/App.jsx",environment:"node"},D2={files:j(j({},_e),{"/App.tsx":{code:`export default function App() {
244
+ const data: string = "world"
245
+
246
+ return <h1>Hello {data}</h1>
247
+ }
248
+ `},"/index.tsx":{code:`import { StrictMode } from "react";
249
+ import { createRoot } from "react-dom/client";
250
+ import "./styles.css";
251
+
252
+ import App from "./App";
253
+ import React from "react";
254
+
255
+ const root = createRoot(document.getElementById("root") as HTMLElement);
256
+ root.render(
257
+ <StrictMode>
258
+ <App />
259
+ </StrictMode>
260
+ );
261
+ `},"/index.html":{code:`<!DOCTYPE html>
262
+ <html lang="en">
263
+ <head>
264
+ <meta charset="UTF-8" />
265
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
266
+ <title>Vite App</title>
267
+ </head>
268
+ <body>
269
+ <div id="root"></div>
270
+ <script type="module" src="/index.tsx"><\/script>
271
+ </body>
272
+ </html>
273
+ `},"/tsconfig.json":{code:JSON.stringify({compilerOptions:{target:"ESNext",useDefineForClassFields:!0,lib:["DOM","DOM.Iterable","ESNext"],allowJs:!1,skipLibCheck:!0,esModuleInterop:!1,allowSyntheticDefaultImports:!0,strict:!0,forceConsistentCasingInFileNames:!0,module:"ESNext",moduleResolution:"Node",resolveJsonModule:!0,isolatedModules:!0,noEmit:!0,jsx:"react-jsx"},include:["src"],references:[{path:"./tsconfig.node.json"}]},null,2)},"/tsconfig.node.json":{code:JSON.stringify({compilerOptions:{composite:!0,module:"ESNext",moduleResolution:"Node",allowSyntheticDefaultImports:!0},include:["vite.config.ts"]},null,2)},"/package.json":{code:JSON.stringify({scripts:{dev:"vite",build:"tsc && vite build",preview:"vite preview"},dependencies:{react:"^18.2.0","react-dom":"^18.2.0"},devDependencies:{"@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@vitejs/plugin-react":"^3.1.0",typescript:"^4.9.5",vite:"4.1.4","esbuild-wasm":"^0.17.12"}},null,2)},"/vite-env.d.ts":{code:'/// <reference types="vite/client" />'},"/vite.config.ts":{code:`import { defineConfig } from 'vite'
274
+ import react from '@vitejs/plugin-react'
275
+
276
+ // https://vitejs.dev/config/
277
+ export default defineConfig({
278
+ plugins: [react()],
279
+ })
280
+ `}}),main:"/App.tsx",environment:"node"},M2={files:{"/src/styles.css":_e["/styles.css"],"/src/App.svelte":{code:`<script>
281
+ const data = "world";
282
+ <\/script>
283
+
284
+ <h1>Hello {data}</h1>
285
+
286
+ <style>
287
+ h1 {
288
+ font-size: 1.5rem;
289
+ }
290
+ </style>`},"/src/main.js":{code:`import App from './App.svelte'
291
+ import "./styles.css"
292
+
293
+ const app = new App({
294
+ target: document.getElementById('app'),
295
+ })
296
+
297
+ export default app`},"/index.html":{code:`<!DOCTYPE html>
298
+ <html lang="en">
299
+ <head>
300
+ <meta charset="UTF-8" />
301
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
302
+ <title>Vite App</title>
303
+ </head>
304
+ <body>
305
+ <div id="app"></div>
306
+ <script type="module" src="/src/main.js"><\/script>
307
+ </body>
308
+ </html>
309
+ `},"/vite.config.js":{code:`import { defineConfig } from 'vite'
310
+ import { svelte } from '@sveltejs/vite-plugin-svelte'
311
+
312
+ // https://vitejs.dev/config/
313
+ export default defineConfig({
314
+ plugins: [svelte()],
315
+ })`},"/package.json":{code:JSON.stringify({type:"module",scripts:{dev:"vite"},devDependencies:{"@sveltejs/vite-plugin-svelte":"^2.0.2",svelte:"^3.55.1",vite:"4.0.4","esbuild-wasm":"^0.17.12"}})}},main:"/src/App.svelte",environment:"node"},R2={files:{"/src/styles.css":_e["/styles.css"],"/src/App.svelte":{code:`<script lang="ts">
316
+ const data: string = "world";
317
+ <\/script>
318
+
319
+ <h1>Hello {data}</h1>
320
+
321
+ <style>
322
+ h1 {
323
+ font-size: 1.5rem;
324
+ }
325
+ </style>`},"/src/main.ts":{code:`import App from './App.svelte'
326
+ import "./styles.css"
327
+
328
+ const app = new App({
329
+ target: document.getElementById('app'),
330
+ })
331
+
332
+ export default app`},"/index.html":{code:`<!DOCTYPE html>
333
+ <html lang="en">
334
+ <head>
335
+ <meta charset="UTF-8" />
336
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
337
+ <title>Vite App</title>
338
+ </head>
339
+ <body>
340
+ <div id="app"></div>
341
+ <script type="module" src="/src/main.ts"><\/script>
342
+ </body>
343
+ </html>
344
+ `},"/vite-env.d.ts":{code:`/// <reference types="svelte" />
345
+ /// <reference types="vite/client" />`},"svelte.config.js":{code:`import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
346
+
347
+ export default {
348
+ // Consult https://svelte.dev/docs#compile-time-svelte-preprocess
349
+ // for more information about preprocessors
350
+ preprocess: vitePreprocess(),
351
+ }
352
+ `},"/vite.config.ts":{code:`import { defineConfig } from 'vite'
353
+ import { svelte } from '@sveltejs/vite-plugin-svelte'
354
+
355
+ // https://vitejs.dev/config/
356
+ export default defineConfig({
357
+ plugins: [svelte()],
358
+ })`},"tsconfig.json":{code:JSON.stringify({extends:"@tsconfig/svelte/tsconfig.json",compilerOptions:{target:"ESNext",useDefineForClassFields:!0,module:"ESNext",resolveJsonModule:!0,allowJs:!0,checkJs:!0,isolatedModules:!0},include:["src/**/*.d.ts","src/**/*.ts","src/**/*.js","src/**/*.svelte"],references:[{path:"./tsconfig.node.json"}]},null,2)},"tsconfig.node.json":{code:JSON.stringify({compilerOptions:{composite:!0,module:"ESNext",moduleResolution:"Node"},include:["vite.config.ts"]},null,2)},"/package.json":{code:JSON.stringify({type:"module",scripts:{dev:"vite"},devDependencies:{"@sveltejs/vite-plugin-svelte":"^2.0.2","@tsconfig/svelte":"^3.0.0",svelte:"^3.55.1","svelte-check":"^2.10.3",tslib:"^2.5.0",vite:"4.1.4","esbuild-wasm":"^0.17.12"}},null,2)}},main:"/src/App.svelte",environment:"node"},_2={files:{"/src/styles.css":_e["/styles.css"],"/src/App.vue":{code:`<script setup>
359
+ import { ref } from "vue";
360
+
361
+ const data = ref("world");
362
+ <\/script>
363
+
364
+ <template>
365
+ <h1>Hello {{ data }}</h1>
366
+ </template>
367
+
368
+ <style>
369
+ h1 {
370
+ font-size: 1.5rem;
371
+ }
372
+ </style>`},"/src/main.js":{code:`import { createApp } from 'vue'
373
+ import App from './App.vue'
374
+ import "./styles.css"
375
+
376
+ createApp(App).mount('#app')
377
+ `},"/index.html":{code:`<!DOCTYPE html>
378
+ <html lang="en">
379
+ <head>
380
+ <meta charset="UTF-8" />
381
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
382
+ <title>Vite App</title>
383
+ </head>
384
+ <body>
385
+ <div id="app"></div>
386
+ <script type="module" src="/src/main.js"><\/script>
387
+ </body>
388
+ </html>
389
+ `},"/vite.config.js":{code:`import { defineConfig } from 'vite'
390
+ import vue from '@vitejs/plugin-vue'
391
+
392
+ // https://vitejs.dev/config/
393
+ export default defineConfig({
394
+ plugins: [vue()]
395
+ })
396
+ `},"/package.json":{code:JSON.stringify({scripts:{dev:"vite",build:"vite build",preview:"vite preview"},dependencies:{vue:"^3.2.45"},devDependencies:{"@vitejs/plugin-vue":"3.2.0",vite:"4.1.4","esbuild-wasm":"0.17.12"}})}},main:"/src/App.vue",environment:"node"},I2={files:{"/src/styles.css":_e["/styles.css"],"/src/App.vue":{code:`<script setup lang="ts">
397
+ import { ref } from "vue";
398
+
399
+ const data = ref<string>("world");
400
+ <\/script>
401
+
402
+ <template>
403
+ <h1>Hello {{ data }}</h1>
404
+ </template>
405
+
406
+ <style>
407
+ h1 {
408
+ font-size: 1.5rem;
409
+ }
410
+ </style>`},"/src/main.ts":{code:`import { createApp } from 'vue'
411
+ import App from './App.vue'
412
+ import "./styles.css"
413
+
414
+ createApp(App).mount('#app')
415
+ `},"/index.html":{code:`<!DOCTYPE html>
416
+ <html lang="en">
417
+ <head>
418
+ <meta charset="UTF-8" />
419
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
420
+ <title>Vite App</title>
421
+ </head>
422
+ <body>
423
+ <div id="app"></div>
424
+ <script type="module" src="/src/main.ts"><\/script>
425
+ </body>
426
+ </html>
427
+ `},"/vite-env.d.ts":{code:'/// <reference types="vite/client" />'},"/vite.config.ts":{code:`import { defineConfig } from 'vite'
428
+ import vue from '@vitejs/plugin-vue'
429
+
430
+ // https://vitejs.dev/config/
431
+ export default defineConfig({
432
+ plugins: [vue()]
433
+ })
434
+ `},"tsconfig.json":{code:JSON.stringify({compilerOptions:{target:"ESNext",useDefineForClassFields:!0,module:"ESNext",moduleResolution:"Node",strict:!0,jsx:"preserve",resolveJsonModule:!0,isolatedModules:!0,esModuleInterop:!0,lib:["ESNext","DOM"],skipLibCheck:!0,noEmit:!0},include:["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"],references:[{path:"./tsconfig.node.json"}]},null,2)},"tsconfig.node.json":{code:JSON.stringify({compilerOptions:{composite:!0,module:"ESNext",moduleResolution:"Node",allowSyntheticDefaultImports:!0},include:["vite.config.ts"]},null,2)},"/package.json":{code:JSON.stringify({scripts:{dev:"vite",build:"tsc && vite build",preview:"vite preview"},dependencies:{vue:"^3.2.47"},devDependencies:{"@vitejs/plugin-vue":"^4.0.0",vite:"4.1.4","vue-tsc":"^1.2.0",typescript:"^4.9.5","esbuild-wasm":"^0.17.12"}},null,2)}},main:"/src/App.vue",environment:"node"},Z2={files:{"/src/app/app.component.css":_e["/styles.css"],"/src/app/app.component.html":{code:`<div>
435
+ <h1>{{ helloWorld }}</h1>
436
+ </div>
437
+ `},"/src/app/app.component.ts":{code:`import { Component } from "@angular/core";
438
+
439
+ @Component({
440
+ selector: "app-root",
441
+ templateUrl: "./app.component.html",
442
+ styleUrls: ["./app.component.css"]
443
+ })
444
+ export class AppComponent {
445
+ helloWorld = "Hello world";
446
+ }
447
+ `},"/src/app/app.module.ts":{code:`import { BrowserModule } from "@angular/platform-browser";
448
+ import { NgModule } from "@angular/core";
449
+
450
+ import { AppComponent } from "./app.component";
451
+
452
+ @NgModule({
453
+ declarations: [AppComponent],
454
+ imports: [BrowserModule],
455
+ providers: [],
456
+ bootstrap: [AppComponent]
457
+ })
458
+ export class AppModule {}
459
+ `},"/src/index.html":{code:`<!doctype html>
460
+ <html lang="en">
461
+
462
+ <head>
463
+ <meta charset="utf-8">
464
+ <title>Angular</title>
465
+ <base href="/">
466
+
467
+ <meta name="viewport" content="width=device-width, initial-scale=1">
468
+ <link rel="icon" type="image/x-icon" href="favicon.ico">
469
+ </head>
470
+
471
+ <body>
472
+ <app-root></app-root>
473
+ </body>
474
+
475
+ </html>
476
+ `},"/src/main.ts":{code:`import { enableProdMode } from "@angular/core";
477
+ import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
478
+
479
+ import { AppModule } from "./app/app.module";
480
+
481
+ platformBrowserDynamic()
482
+ .bootstrapModule(AppModule)
483
+ .catch(err => console.log(err));
484
+
485
+ `},"/src/polyfills.ts":{code:`import "core-js/proposals/reflect-metadata";
486
+ import "zone.js/dist/zone";
487
+ `},"/package.json":{code:JSON.stringify({dependencies:{"@angular/core":"^11.2.0","@angular/platform-browser":"^11.2.0","@angular/platform-browser-dynamic":"^11.2.0","@angular/common":"^11.2.0","@angular/compiler":"^11.2.0","zone.js":"0.11.3","core-js":"3.8.3",rxjs:"6.6.3"},main:"/src/main.ts"})}},main:"/src/app/app.component.ts",environment:"angular-cli"},N2={files:j(j({},_e),{"/App.js":{code:`export default function App() {
488
+ return <h1>Hello world</h1>
489
+ }
490
+ `},"/index.js":{code:`import React, { StrictMode } from "react";
491
+ import { createRoot } from "react-dom/client";
492
+ import "./styles.css";
493
+
494
+ import App from "./App";
495
+
496
+ const root = createRoot(document.getElementById("root"));
497
+ root.render(
498
+ <StrictMode>
499
+ <App />
500
+ </StrictMode>
501
+ );`},"/public/index.html":{code:`<!DOCTYPE html>
502
+ <html lang="en">
503
+ <head>
504
+ <meta charset="UTF-8">
505
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
506
+ <title>Document</title>
507
+ </head>
508
+ <body>
509
+ <div id="root"></div>
510
+ </body>
511
+ </html>`},"/package.json":{code:JSON.stringify({dependencies:{react:"^18.0.0","react-dom":"^18.0.0","react-scripts":"^5.0.0"},main:"/index.js"})}}),main:"/App.js",environment:"create-react-app"},L2={files:j(j({},_e),{"tsconfig.json":{code:`{
512
+ "include": [
513
+ "./**/*"
514
+ ],
515
+ "compilerOptions": {
516
+ "strict": true,
517
+ "esModuleInterop": true,
518
+ "lib": [ "dom", "es2015" ],
519
+ "jsx": "react-jsx"
520
+ }
521
+ }`},"/App.tsx":{code:`export default function App(): JSX.Element {
522
+ return <h1>Hello world</h1>
523
+ }
524
+ `},"/index.tsx":{code:`import React, { StrictMode } from "react";
525
+ import { createRoot } from "react-dom/client";
526
+ import "./styles.css";
527
+
528
+ import App from "./App";
529
+
530
+ const root = createRoot(document.getElementById("root"));
531
+ root.render(
532
+ <StrictMode>
533
+ <App />
534
+ </StrictMode>
535
+ );`},"/public/index.html":{code:`<!DOCTYPE html>
536
+ <html lang="en">
537
+ <head>
538
+ <meta charset="UTF-8">
539
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
540
+ <title>Document</title>
541
+ </head>
542
+ <body>
543
+ <div id="root"></div>
544
+ </body>
545
+ </html>`},"/package.json":{code:JSON.stringify({dependencies:{react:"^18.0.0","react-dom":"^18.0.0","react-scripts":"^4.0.0"},devDependencies:{"@types/react":"^18.0.0","@types/react-dom":"^18.0.0",typescript:"^4.0.0"},main:"/index.tsx"})}}),main:"/App.tsx",environment:"create-react-app"},X2={files:j(j({},_e),{"/App.tsx":{code:`import { Component } from "solid-js";
546
+
547
+ const App: Component = () => {
548
+ return <h1>Hello world</h1>
549
+ };
550
+
551
+ export default App;`},"/index.tsx":{code:`import { render } from "solid-js/web";
552
+ import App from "./App";
553
+
554
+ import "./styles.css";
555
+
556
+ render(() => <App />, document.getElementById("app"));`},"/index.html":{code:`<html>
557
+ <head>
558
+ <title>Parcel Sandbox</title>
559
+ <meta charset="UTF-8" />
560
+ </head>
561
+ <body>
562
+ <div id="app"></div>
563
+ <script src="src/index.tsx"><\/script>
564
+ </body>
565
+ </html>`},"/package.json":{code:JSON.stringify({dependencies:{"solid-js":"1.3.15"},main:"/index.tsx"})}}),main:"/App.tsx",environment:"solid"},V2={files:j(j({},_e),{"/App.svelte":{code:`<style>
566
+ h1 {
567
+ font-size: 1.5rem;
568
+ }
569
+ </style>
570
+
571
+ <script>
572
+ let name = 'world';
573
+ <\/script>
574
+
575
+ <main>
576
+ <h1>Hello {name}</h1>
577
+ </main>`},"/index.js":{code:`import App from "./App.svelte";
578
+ import "./styles.css";
579
+
580
+ const app = new App({
581
+ target: document.body
582
+ });
583
+
584
+ export default app;
585
+ `},"/public/index.html":{code:`<!DOCTYPE html>
586
+ <html>
587
+ <head>
588
+ <meta charset="utf8" />
589
+ <meta name="viewport" content="width=device-width" />
590
+
591
+ <title>Svelte app</title>
592
+
593
+ <link rel="stylesheet" href="public/bundle.css" />
594
+ </head>
595
+
596
+ <body>
597
+ <script src="bundle.js"><\/script>
598
+ </body>
599
+ </html>`},"/package.json":{code:JSON.stringify({dependencies:{svelte:"^3.0.0"},main:"/index.js"})}}),main:"/App.svelte",environment:"svelte"},W2={files:{"tsconfig.json":{code:`{
600
+ "include": [
601
+ "./**/*"
602
+ ],
603
+ "compilerOptions": {
604
+ "strict": true,
605
+ "esModuleInterop": true,
606
+ "lib": [ "dom", "es2015" ],
607
+ "jsx": "react-jsx"
608
+ }
609
+ }`},"/add.ts":{code:"export const add = (a: number, b: number): number => a + b;"},"/add.test.ts":{code:`import { add } from './add';
610
+
611
+ describe('add', () => {
612
+ test('Commutative Law of Addition', () => {
613
+ expect(add(1, 2)).toBe(add(2, 1));
614
+ });
615
+ });`},"package.json":{code:JSON.stringify({dependencies:{},devDependencies:{typescript:"^4.0.0"},main:"/add.ts"})}},main:"/add.test.ts",environment:"parcel",mode:"tests"},q2={files:j(j({},_e),{"/index.js":{code:`import "./styles.css";
616
+
617
+ document.getElementById("app").innerHTML = \`
618
+ <h1>Hello world</h1>
619
+ \`;
620
+ `},"/index.html":{code:`<!DOCTYPE html>
621
+ <html>
622
+
623
+ <head>
624
+ <title>Parcel Sandbox</title>
625
+ <meta charset="UTF-8" />
626
+ </head>
627
+
628
+ <body>
629
+ <div id="app"></div>
630
+
631
+ <script src="index.js">
632
+ <\/script>
633
+ </body>
634
+
635
+ </html>`},"/package.json":{code:JSON.stringify({dependencies:{},main:"/index.js"})}}),main:"/index.js",environment:"parcel"},z2={files:j(j({},_e),{"tsconfig.json":{code:`{
636
+ "compilerOptions": {
637
+ "strict": true,
638
+ "module": "commonjs",
639
+ "jsx": "preserve",
640
+ "esModuleInterop": true,
641
+ "sourceMap": true,
642
+ "allowJs": true,
643
+ "lib": [
644
+ "es6",
645
+ "dom"
646
+ ],
647
+ "rootDir": "src",
648
+ "moduleResolution": "node"
649
+ }
650
+ }`},"/index.ts":{code:`import "./styles.css";
651
+
652
+ document.getElementById("app").innerHTML = \`
653
+ <h1>Hello world</h1>
654
+ \`;
655
+ `},"/index.html":{code:`<!DOCTYPE html>
656
+ <html>
657
+
658
+ <head>
659
+ <title>Parcel Sandbox</title>
660
+ <meta charset="UTF-8" />
661
+ </head>
662
+
663
+ <body>
664
+ <div id="app"></div>
665
+
666
+ <script src="index.ts">
667
+ <\/script>
668
+ </body>
669
+
670
+ </html>`},"/package.json":{code:JSON.stringify({dependencies:{},devDependencies:{typescript:"^4.0.0"},main:"/index.ts"})}}),main:"/index.ts",environment:"parcel"},Y2={files:{"/src/styles.css":_e["/styles.css"],"/src/App.vue":{code:`<template>
671
+ <h1>Hello {{ msg }}</h1>
672
+ </template>
673
+
674
+ <script setup>
675
+ import { ref } from 'vue';
676
+ const msg = ref('world');
677
+ <\/script>`},"/src/main.js":{code:`import { createApp } from 'vue'
678
+ import App from './App.vue'
679
+ import "./styles.css";
680
+
681
+ createApp(App).mount('#app')
682
+ `},"/public/index.html":{code:`<!DOCTYPE html>
683
+ <html lang="en">
684
+ <head>
685
+ <meta charset="utf-8" />
686
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
687
+ <meta name="viewport" content="width=device-width,initial-scale=1.0" />
688
+ <title>codesandbox</title>
689
+ </head>
690
+ <body>
691
+ <noscript>
692
+ <strong
693
+ >We're sorry but codesandbox doesn't work properly without JavaScript
694
+ enabled. Please enable it to continue.</strong
695
+ >
696
+ </noscript>
697
+ <div id="app"></div>
698
+ <!-- built files will be auto injected -->
699
+ </body>
700
+ </html>
701
+ `},"/package.json":{code:JSON.stringify({name:"vue3",version:"0.1.0",private:!0,main:"/src/main.js",scripts:{serve:"vue-cli-service serve",build:"vue-cli-service build"},dependencies:{"core-js":"^3.26.1",vue:"^3.2.45"},devDependencies:{"@vue/cli-plugin-babel":"^5.0.8","@vue/cli-service":"^5.0.8"}})}},main:"/src/App.vue",environment:"vue-cli"},B2={files:{"/src/styles.css":_e["/styles.css"],"/src/App.vue":{code:`<template>
702
+ <h1>Hello {{ msg }}</h1>
703
+ </template>
704
+
705
+ <script setup lang="ts">
706
+ import { ref } from 'vue';
707
+ const msg = ref<string>('world');
708
+ <\/script>`},"/src/main.ts":{code:`import { createApp } from 'vue'
709
+ import App from './App.vue'
710
+ import "./styles.css";
711
+
712
+ createApp(App).mount('#app')
713
+ `},"/src/shims-vue.d.ts":`/* eslint-disable */
714
+ declare module "*.vue" {
715
+ import type { DefineComponent } from "vue";
716
+ const component: DefineComponent<{}, {}, any>;
717
+ export default component;
718
+ }`,"/public/index.html":{code:`<!DOCTYPE html>
719
+ <html lang="en">
720
+ <head>
721
+ <meta charset="utf-8" />
722
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
723
+ <meta name="viewport" content="width=device-width,initial-scale=1.0" />
724
+ <title>codesandbox</title>
725
+ </head>
726
+ <body>
727
+ <noscript>
728
+ <strong
729
+ >We're sorry but codesandbox doesn't work properly without JavaScript
730
+ enabled. Please enable it to continue.</strong
731
+ >
732
+ </noscript>
733
+ <div id="app"></div>
734
+ <!-- built files will be auto injected -->
735
+ </body>
736
+ </html>
737
+ `},"/package.json":{code:JSON.stringify({name:"vue3-ts",version:"0.1.0",private:!0,main:"/src/main.ts",scripts:{serve:"vue-cli-service serve",build:"vue-cli-service build"},dependencies:{"core-js":"^3.26.1",vue:"^3.2.45"},devDependencies:{"@vue/cli-plugin-babel":"^5.0.8","@vue/cli-plugin-typescript":"^5.0.8","@vue/cli-service":"^5.0.8",typescript:"^4.9.3"}})},"/tsconfig.json":{code:JSON.stringify({compilerOptions:{target:"esnext",module:"esnext",strict:!0,jsx:"preserve",moduleResolution:"node",experimentalDecorators:!0,skipLibCheck:!0,esModuleInterop:!0,allowSyntheticDefaultImports:!0,forceConsistentCasingInFileNames:!0,useDefineForClassFields:!0,sourceMap:!1,baseUrl:".",types:["webpack-env"],paths:{"@/*":["src/*"]},lib:["esnext","dom","dom.iterable","scripthost"]},include:["src/**/*.ts","src/**/*.tsx","src/**/*.vue","tests/**/*.ts","tests/**/*.tsx"],exclude:["node_modules"]})}},main:"/src/App.vue",environment:"vue-cli"},U2={files:j(j({},_e),{"/index.html":{code:`<!DOCTYPE html>
738
+ <html>
739
+
740
+ <head>
741
+ <title>Parcel Sandbox</title>
742
+ <meta charset="UTF-8" />
743
+ <link rel="stylesheet" href="/styles.css" />
744
+ </head>
745
+
746
+ <body>
747
+ <h1>Hello world</h1>
748
+ </body>
749
+
750
+ </html>`},"/package.json":{code:JSON.stringify({dependencies:{},main:"/index.html"})}}),main:"/index.html",environment:"static"},YO={static:U2,angular:Z2,react:N2,"react-ts":L2,solid:X2,svelte:V2,"test-ts":W2,"vanilla-ts":z2,vanilla:q2,vue:Y2,"vue-ts":B2,node:Q2,nextjs:T2,vite:C2,"vite-react":A2,"vite-react-ts":D2,"vite-preact":E2,"vite-preact-ts":j2,"vite-vue":_2,"vite-vue-ts":I2,"vite-svelte":M2,"vite-svelte-ts":R2,astro:$2},nd=function(t){var e,n,i,r,s,o,a=$i(t.files),l=F2({template:t.template,customSetup:t.customSetup,files:a}),c=$i((n=(e=t.options)===null||e===void 0?void 0:e.visibleFiles)!==null&&n!==void 0?n:[]),u=!((i=t.options)===null||i===void 0)&&i.activeFile?BO((r=t.options)===null||r===void 0?void 0:r.activeFile,l.files):void 0;c.length===0&&a&&Object.keys(a).forEach(function(f){var h=a[f];if(typeof h=="string"){c.push(f);return}!u&&h.active&&(u=f,h.hidden===!0&&c.push(f)),h.hidden||c.push(f)}),c.length===0&&(c=[l.main]),l.entry&&!l.files[l.entry]&&(l.entry=BO(l.entry,l.files)),!u&&l.main&&(u=l.main),(!u||!l.files[u])&&(u=c[0]),c.includes(u)||c.push(u);var d=Zf(l.files,(s=l.dependencies)!==null&&s!==void 0?s:{},(o=l.devDependencies)!==null&&o!==void 0?o:{},l.entry),p=c.filter(function(f){return d[f]});return{visibleFiles:p,activeFile:u,files:d,environment:l.environment,shouldUpdatePreview:!0}},BO=function(t,e){var n=$i(e),i=$i(t);if(i in n)return i;if(!t)return null;for(var r=null,s=0,o=[".js",".jsx",".ts",".tsx"];!r&&s<o.length;){var a=i.split(".")[0],l="".concat(a).concat(o[s]);n[l]!==void 0&&(r=l),s++}return r},F2=function(t){var e=t.files,n=t.template,i=t.customSetup;if(!n){if(!i){var r=YO.vanilla;return j(j({},r),{files:j(j({},r.files),Da(e))})}if(!e||Object.keys(e).length===0)throw new Error("[sandpack-react]: without a template, you must pass at least one file");return j(j({},i),{files:Da(e)})}var s=YO[n];if(!s)throw new Error('[sandpack-react]: invalid template "'.concat(n,'" provided'));return!i&&!e?s:{files:Da(j(j({},s.files),e)),dependencies:j(j({},s.dependencies),i==null?void 0:i.dependencies),devDependencies:j(j({},s.devDependencies),i==null?void 0:i.devDependencies),entry:$i(i==null?void 0:i.entry),main:s.main,environment:(i==null?void 0:i.environment)||s.environment}},Da=function(t){return t?Object.keys(t).reduce(function(e,n){return typeof t[n]=="string"?e[n]={code:t[n]}:e[n]=t[n],e},{}):{}},G2=function(t,e){var n=P.useState({editorState:"pristine",teamId:t.teamId}),i=n[0],r=n[1],s=nd(t),o=Pi(s.files,e)?"pristine":"dirty";return o!==i.editorState&&r(function(a){return j(j({},a),{editorState:o})}),i},H2=4e4,J2=function(t,e){var n,i,r,s=t.options,o=t.customSetup,a=t.teamId,l=t.sandboxId;s??(s={}),o??(o={});var c=(s==null?void 0:s.initMode)||"lazy",u=P.useState({startRoute:s==null?void 0:s.startRoute,bundlerState:void 0,error:null,initMode:c,reactDevTools:void 0,status:!((n=s==null?void 0:s.autorun)!==null&&n!==void 0)||n?"initial":"idle"}),d=u[0],p=u[1],f=P.useRef(),h=P.useRef(null),m=P.useRef(null),g=P.useRef({}),O=P.useRef({}),v=P.useRef(null),x=P.useRef({}),b=P.useRef(),w=P.useRef({global:{}}),y=P.useRef(),k=P.useRef(e.environment),T=P.useCallback(function(B,A,V){return Qa(void 0,void 0,void 0,function(){var X,D,W,se,Ee,me,Ge;return Ca(this,function(En){switch(En.label){case 0:return O.current[A]&&O.current[A].destroy(),s??(s={}),o??(o={}),X=(Ee=s==null?void 0:s.bundlerTimeOut)!==null&&Ee!==void 0?Ee:H2,v.current&&clearTimeout(v.current),D=typeof b.current!="function",D&&(v.current=setTimeout(function(){E(),p(function(Et){return j(j({},Et),{status:"timeout"})})},X)),[4,US(B,{files:e.files,template:e.environment},{externalResources:s.externalResources,bundlerURL:s.bundlerURL,startRoute:(me=V==null?void 0:V.startRoute)!==null&&me!==void 0?me:s.startRoute,fileResolver:s.fileResolver,skipEval:(Ge=s.skipEval)!==null&&Ge!==void 0?Ge:!1,logLevel:s.logLevel,showOpenInCodeSandbox:!1,showErrorScreen:!0,showLoadingScreen:!1,reactDevTools:d.reactDevTools,customNpmRegistries:o==null?void 0:o.npmRegistries,teamId:a,sandboxId:l})];case 1:return W=En.sent(),typeof b.current!="function"&&(b.current=W.listen(N)),x.current[A]=x.current[A]||{},w.current[A]&&(Object.keys(w.current[A]).forEach(function(Et){var qn=w.current[A][Et],bi=W.listen(qn);x.current[A][Et]=bi}),w.current[A]={}),se=Object.entries(w.current.global),se.forEach(function(Et){var qn=Et[0],bi=Et[1],_r=W.listen(bi);x.current[A][qn]=_r}),O.current[A]=W,[2]}})})},[e.environment,e.files,d.reactDevTools]),E=P.useCallback(function(){Object.keys(O.current).map(q),typeof b.current=="function"&&(b.current(),b.current=void 0)},[]),C=P.useCallback(function(){return Qa(void 0,void 0,void 0,function(){return Ca(this,function(B){switch(B.label){case 0:return[4,Promise.all(Object.entries(g.current).map(function(A){var V=A[0],X=A[1],D=X.iframe,W=X.clientPropsOverride,se=W===void 0?{}:W;return Qa(void 0,void 0,void 0,function(){return Ca(this,function(Ee){switch(Ee.label){case 0:return[4,T(D,V,se)];case 1:return Ee.sent(),[2]}})})}))];case 1:return B.sent(),p(function(A){return j(j({},A),{error:null,status:"running"})}),[2]}})})},[T]);f.current=function(B){B.some(function(A){return A.isIntersecting})?C():E()};var M=P.useCallback(function(){var B,A,V,X=(B=s==null?void 0:s.autorun)!==null&&B!==void 0?B:!0;if(X){var D=(A=s==null?void 0:s.initModeObserverOptions)!==null&&A!==void 0?A:{rootMargin:"1000px 0px"};h.current&&m.current&&((V=h.current)===null||V===void 0||V.unobserve(m.current)),m.current&&d.initMode==="lazy"?(h.current=new IntersectionObserver(function(W){var se,Ee;W.some(function(me){return me.isIntersecting})&&W.some(function(me){return me.isIntersecting})&&m.current&&((se=f.current)===null||se===void 0||se.call(f,W),(Ee=h.current)===null||Ee===void 0||Ee.unobserve(m.current))},D),h.current.observe(m.current)):m.current&&d.initMode==="user-visible"?(h.current=new IntersectionObserver(function(W){var se;(se=f.current)===null||se===void 0||se.call(f,W)},D),h.current.observe(m.current)):C()}},[s==null?void 0:s.autorun,s==null?void 0:s.initModeObserverOptions,C,d.initMode,E]),Z=P.useCallback(function(B,A,V){return Qa(void 0,void 0,void 0,function(){return Ca(this,function(X){switch(X.label){case 0:return g.current[A]={iframe:B,clientPropsOverride:V},d.status!=="running"?[3,2]:[4,T(B,A,V)];case 1:X.sent(),X.label=2;case 2:return[2]}})})},[T,d.status]),q=function(B){var A,V,X=O.current[B];X?(X.destroy(),(A=X.iframe.contentWindow)===null||A===void 0||A.location.replace("about:blank"),X.iframe.removeAttribute("src"),delete O.current[B]):delete g.current[B],v.current&&clearTimeout(v.current);var D=Object.values((V=x.current[B])!==null&&V!==void 0?V:{});D.forEach(function(se){var Ee=Object.values(se);Ee.forEach(function(me){return me()})});var W=Object.keys(O.current).length>0?"running":"idle";p(function(se){return j(j({},se),{status:W})})},N=function(B){B.type==="start"?p(function(A){return j(j({},A),{error:null})}):B.type==="state"?p(function(A){return j(j({},A),{bundlerState:B.state})}):B.type==="done"&&!B.compilatonError||B.type==="connected"?(v.current&&clearTimeout(v.current),p(function(A){return j(j({},A),{error:null})})):B.type==="action"&&B.action==="show-error"?(v.current&&clearTimeout(v.current),p(function(A){return j(j({},A),{error:Nf(B)})})):B.type==="action"&&B.action==="notification"&&B.notificationType==="error"&&p(function(A){return j(j({},A),{error:{message:B.title}})})},_=function(B){p(function(A){return j(j({},A),{reactDevTools:B})})},G=(i=s==null?void 0:s.recompileMode)!==null&&i!==void 0?i:"delayed",ee=(r=s==null?void 0:s.recompileDelay)!==null&&r!==void 0?r:200,le=function(B,A){if(d.status!=="running"){console.warn("[sandpack-react]: dispatch cannot be called while in idle mode");return}A?O.current[A].dispatch(B):Object.values(O.current).forEach(function(V){V.dispatch(B)})},he=function(B,A){if(A)if(O.current[A]){var V=O.current[A].listen(B);return V}else{var X=Aa();w.current[A]=w.current[A]||{},x.current[A]=x.current[A]||{},w.current[A][X]=B;var V=function(){w.current[A][X]?delete w.current[A][X]:x.current[A][X]&&(x.current[A][X](),delete x.current[A][X])};return V}else{var D=Aa();w.current.global[D]=B;var W=Object.values(O.current),se=W.map(function(me){return me.listen(B)}),V=function(){se.forEach(function(me){return me()}),delete w.current.global[D],Object.values(x.current).forEach(function(me){var Ge;(Ge=me==null?void 0:me[D])===null||Ge===void 0||Ge.call(me)})};return V}};return P.useEffect(function(){if(!(d.status!=="running"||!e.shouldUpdatePreview)){if(k.current!==e.environment&&(k.current=e.environment,Object.entries(O.current).forEach(function(A){var V=A[0],X=A[1];Z(X.iframe,V)})),G==="immediate"&&Object.values(O.current).forEach(function(A){A.status==="done"&&A.updateSandbox({files:e.files,template:e.environment})}),G==="delayed"){if(typeof window>"u")return;window.clearTimeout(y.current),y.current=window.setTimeout(function(){Object.values(O.current).forEach(function(A){A.status==="done"&&A.updateSandbox({files:e.files,template:e.environment})})},ee)}return function(){window.clearTimeout(y.current)}}},[e.files,e.environment,e.shouldUpdatePreview,ee,G,Z,d.status]),P.useEffect(function(){c!==d.initMode&&(p(function(A){return j(j({},A),{initMode:c})}),M())},[c,M,d.initMode]),P.useEffect(function(){return function(){typeof b.current=="function"&&b.current(),v.current&&clearTimeout(v.current),y.current&&clearTimeout(y.current),h.current&&h.current.disconnect()}},[]),[d,{clients:O.current,initializeSandpackIframe:M,runSandpack:C,registerBundler:Z,unregisterBundler:q,registerReactDevTools:_,addListener:he,dispatchMessage:le,lazyAnchorRef:m,unsubscribeClientListenersRef:x,queuedListenersRef:w}]},K2=function(t){var e=nd(t),n=P.useState(e),i=n[0],r=n[1],s=P.useRef(!1);P.useEffect(function(){s.current?r(nd(t)):s.current=!0},[t.files,t.customSetup,t.template]);var o=function(l,c,u){u===void 0&&(u=!0),r(function(d){var p,f=d.files;return typeof l=="string"&&typeof c=="string"?f=j(j({},f),(p={},p[l]={code:c},p)):typeof l=="object"&&(f=j(j({},f),Da(l))),j(j({},d),{files:$i(f),shouldUpdatePreview:u})})},a={openFile:function(l){r(function(c){var u=c.visibleFiles,d=Ye(c,["visibleFiles"]),p=u.includes(l)?u:st(st([],u,!0),[l],!1);return j(j({},d),{activeFile:l,visibleFiles:p})})},resetFile:function(l){r(function(c){var u;return j(j({},c),{files:j(j({},c.files),(u={},u[l]=e.files[l],u))})})},resetAllFiles:function(){r(function(l){return j(j({},l),{files:e.files})})},setActiveFile:function(l){i.files[l]&&r(function(c){return j(j({},c),{activeFile:l})})},updateCurrentFile:function(l,c){c===void 0&&(c=!0),o(i.activeFile,l,c)},updateFile:o,addFile:o,closeFile:function(l){i.visibleFiles.length!==1&&r(function(c){var u=c.visibleFiles,d=c.activeFile,p=Ye(c,["visibleFiles","activeFile"]),f=u.indexOf(l),h=u.filter(function(m){return m!==l});return j(j({},p),{activeFile:l===d?f===0?u[1]:u[f-1]:d,visibleFiles:h})})},deleteFile:function(l,c){c===void 0&&(c=!0),r(function(u){var d=u.visibleFiles,p=u.files,f=u.activeFile,h=Ye(u,["visibleFiles","files","activeFile"]),m=j({},p);delete m[l];var g=d.filter(function(x){return x!==l}),O=g.length===0;if(O){var v=Object.keys(p)[Object.keys(p).length-1];return j(j({},h),{visibleFiles:[v],activeFile:v,files:m,shouldUpdatePreview:c})}return j(j({},h),{visibleFiles:g,activeFile:l===f?g[g.length-1]:f,files:m,shouldUpdatePreview:c})})}};return[j(j({},i),{visibleFilesFromProps:e.visibleFiles}),a]},id=U.createContext(null),ej=function(t){var e,n,i=t.children,r=t.options,s=t.style,o=t.className,a=t.theme,l=K2(t),c=l[0],u=l[1],d=J2(t,c),p=d[0],f=d[1],h=f.dispatchMessage,m=f.addListener,g=Ye(f,["dispatchMessage","addListener"]),O=G2(t,c.files);return U.useEffect(function(){g.initializeSandpackIframe()},[]),S.jsx(id.Provider,{value:j(j(j(j(j(j({},c),p),O),u),g),{autoReload:(n=(e=t.options)===null||e===void 0?void 0:e.autoReload)!==null&&n!==void 0?n:!0,listen:m,dispatch:h}),children:S.jsx(S2,{classes:r==null?void 0:r.classes,children:S.jsx(zO,{className:o,style:s,theme:a,children:i})})})};id.Consumer;function Ce(){var t=U.useContext(id);if(t===null)throw new Error('[sandpack-react]: "useSandpack" must be wrapped by a "SandpackProvider"');var e=t.dispatch,n=t.listen,i=Ye(t,["dispatch","listen"]);return{sandpack:j({},i),dispatch:e,listen:n}}var rd=function(){var t,e,n,i=Ce().sandpack;return{code:(t=i.files[i.activeFile])===null||t===void 0?void 0:t.code,readOnly:(n=(e=i.files[i.activeFile])===null||e===void 0?void 0:e.readOnly)!==null&&n!==void 0?n:!1,updateCode:i.updateCurrentFile}},Ts,Ma,sd,In=Y({svg:{margin:"auto"}}),pt=Y((Ts={appearance:"none",outline:"none",display:"flex",alignItems:"center",fontSize:"inherit",fontFamily:"inherit",backgroundColor:"transparent",transition:"color $default, background $default",cursor:"pointer",color:"$colors$clickable",border:0,textDecoration:"none","&:disabled":{color:"$colors$disabled"},"&:hover:not(:disabled,[data-active='true'])":{color:"$colors$hover"},'&[data-active="true"]':{color:"$colors$accent"},svg:{minWidth:"$space$4",width:"$space$4",height:"$space$4"}},Ts["&.".concat(In)]={padding:"$space$1",height:"$space$7",display:"flex"},Ts["&.".concat(In,"&:not(:has(span))")]={width:"$space$7"},Ts["&.".concat(In,"&:has(svg + span)")]={paddingRight:"$space$3",paddingLeft:"$space$2",gap:"$space$1"},Ts)),Ii=Y({backgroundColor:"$colors$surface2",borderRadius:"99999px",border:"1px solid $colors$surface3",'&[data-active="true"]':{color:"$colors$surface1",background:"$colors$accent"},"&:hover:not(:disabled,[data-active='true'])":{backgroundColor:"$colors$surface3"}}),tj=Y({padding:0}),od=VO({"0%":{opacity:0},"100%":{opacity:1}}),Qs=Y({position:"absolute",bottom:"0",left:"0",right:"0",top:"0",margin:"0",overflow:"auto",height:"100%",zIndex:"$top"}),UO=Y((Ma={whiteSpace:"pre-wrap",padding:"$space$10",backgroundColor:"$colors$surface1",display:"flex",gap:"$space$2",flexDirection:"column"},Ma[".".concat(pt)]={width:"auto",gap:"$space$2",padding:"0 $space$3 0 $space$2",marginTop:"$space$1"},Ma.variants={solidBg:{true:{backgroundColor:"$colors$errorSurface"}}},Ma)),ad=Y((sd={padding:"$space$10",backgroundColor:"$colors$surface1"},sd[".".concat(pt)]={marginTop:"$space$6",width:"auto",gap:"$space$2",padding:"0 $space$3 0 $space$2"},sd)),ci=Y({animation:"".concat(od," 150ms ease"),color:"$colors$error",display:"flex",flexDirection:"column",gap:"$space$3",variants:{errorCode:{true:{fontFamily:"$font$mono"}}},a:{color:"inherit"},p:{margin:0}}),ld,nj=Y({borderBottom:"1px solid $colors$surface2",background:"$colors$surface1"}),ij=Y({padding:"0 $space$2",overflow:"auto",display:"flex",flexWrap:"nowrap",alignItems:"stretch",minHeight:"40px",marginBottom:"-1px"}),FO=Y({padding:"0 $space$1 0 $space$1",borderRadius:"$border$radius",marginLeft:"$space$1",width:"$space$5",visibility:"hidden",svg:{width:"$space$3",height:"$space$3",display:"block",position:"relative",top:1}}),rj=Y((ld={padding:"0 $space$2",height:"$layout$headerHeight",whiteSpace:"nowrap","&:focus":{outline:"none"}},ld["&:hover > .".concat(FO)]={visibility:"unset"},ld)),cd=function(t){var e=t.closableTabs,n=t.className,i=Ye(t,["closableTabs","className"]),r=Ce().sandpack,s=Fe(),o=r.activeFile,a=r.visibleFiles,l=r.setActiveFile,c=function(d){d.stopPropagation();var p=d.target.closest("[data-active]"),f=p==null?void 0:p.getAttribute("title");f&&r.closeFile(f)},u=function(d){var p=ja(d),f=a.reduce(function(h,m){if(m===d)return h;var g=ja(m);return g===p&&h.push(m),h},[]);return f.length===0?p:g2(d,f)};return S.jsx("div",j({className:s("tabs",[nj,n]),translate:"no"},i,{children:S.jsx("div",{"aria-label":"Select active file",className:s("tabs-scrollable-container",[ij]),role:"tablist",children:a.map(function(d){return S.jsxs("button",{"aria-selected":d===o,className:s("tab-button",[pt,rj]),"data-active":d===o,onClick:function(){return l(d)},role:"tab",title:d,type:"button",children:[u(d),e&&a.length>1&&S.jsx("span",{className:s("close-button",[FO]),onClick:c,children:S.jsx(LO,{})})]},d)})})}))},Cs=function(t){var e=t.onClick,n=t.className,i=t.children,r=Fe();return S.jsx("button",{className:r("button",[r("icon-standalone"),pt,In,Ii,n]),onClick:e,type:"button",children:i})},sj=Y({position:"absolute",bottom:"$space$2",right:"$space$2",paddingRight:"$space$3"}),GO=function(t){t.className;var e=t.onClick,n=Ye(t,["className","onClick"]),i=Ce().sandpack;return S.jsxs(Cs,j({className:sj.toString(),onClick:function(r){i.runSandpack(),e==null||e(r)}},n,{children:[S.jsx(l2,{}),S.jsx("span",{children:"Run"})]}))},ud,HO=Y((ud={display:"flex",flexDirection:"column",width:"100%",position:"relative",backgroundColor:"$colors$surface1",gap:1},ud["&:has(.".concat(be,"-stack)")]={backgroundColor:"$colors$surface2"},ud)),Es=function(t){var e=t.className,n=Ye(t,["className"]),i=Fe();return S.jsx("div",j({className:i("stack",[HO,e])},n))},oj=function(){var t=U.useContext(td),e=t.theme,n=t.id,i=t.mode;return{theme:e,themeId:n,themeMode:i}},JO=function(t,e){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length;i++)if(t[i]!==e[i]){n=!1;break}return n},dd=function(t,e){var n=e.line,i=e.column;return t.line(n).from+(i??0)-1},aj=function(){return ne.theme({"&":{backgroundColor:"var(--".concat(be,"-colors-surface1)"),color:"var(--".concat(be,"-syntax-color-plain)"),height:"100%"},".cm-matchingBracket, .cm-nonmatchingBracket, &.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{color:"inherit",backgroundColor:"rgba(128,128,128,.25)",backgroundBlendMode:"difference"},"&.cm-editor.cm-focused":{outline:"none"},".cm-activeLine":{backgroundColor:"var(--".concat(be,"-colors-surface3)"),borderRadius:"var(--".concat(be,"-border-radius)")},".cm-errorLine":{backgroundColor:"var(--".concat(be,"-colors-errorSurface)"),borderRadius:"var(--".concat(be,"-border-radius)")},".cm-content":{caretColor:"var(--".concat(be,"-colors-accent)"),padding:"0 var(--".concat(be,"-space-4)")},".cm-scroller":{fontFamily:"var(--".concat(be,"-font-mono)"),lineHeight:"var(--".concat(be,"-font-lineHeight)")},".cm-gutters":{backgroundColor:"var(--".concat(be,"-colors-surface1)"),color:"var(--".concat(be,"-colors-disabled)"),border:"none",paddingLeft:"var(--".concat(be,"-space-1)")},".cm-gutter.cm-lineNumbers":{fontSize:".6em"},".cm-lineNumbers .cm-gutterElement":{lineHeight:"var(--".concat(be,"-font-lineHeight)"),minWidth:"var(--".concat(be,"-space-5)")},".cm-content .cm-line":{paddingLeft:"var(--".concat(be,"-space-1)")},".cm-content.cm-readonly .cm-line":{paddingLeft:0}})},wn=function(t){return"".concat(be,"-syntax-").concat(t)},lj=function(){var t=["string","plain","comment","keyword","definition","punctuation","property","tag","static"];return t.reduce(function(e,n){var i;return j(j({},e),(i={},i[".".concat(wn(n))]={color:"$syntax$color$".concat(n),fontStyle:"$syntax$fontStyle$".concat(n)},i))},{})},cj=function(t){return ua.define([{tag:Q.link,textDecoration:"underline"},{tag:Q.emphasis,fontStyle:"italic"},{tag:Q.strong,fontWeight:"bold"},{tag:Q.keyword,class:wn("keyword")},{tag:[Q.atom,Q.number,Q.bool],class:wn("static")},{tag:Q.variableName,class:wn("plain")},{tag:Q.standard(Q.tagName),class:wn("tag")},{tag:[Q.function(Q.variableName),Q.definition(Q.function(Q.variableName)),Q.tagName],class:wn("definition")},{tag:Q.propertyName,class:wn("property")},{tag:[Q.literal,Q.inserted],class:wn(t.syntax.string?"string":"static")},{tag:Q.punctuation,class:wn("punctuation")},{tag:[Q.comment,Q.quote],class:wn("comment")}])},uj=function(t,e,n){if(!t&&!e)return"javascript";var i=e;if(!i&&t){var r=t.lastIndexOf(".");i=t.slice(r+1)}for(var s=0,o=n;s<o.length;s++){var a=o[s];if(i===a.name||a.extensions.includes(i||""))return a.name}switch(i){case"ts":case"tsx":return"typescript";case"html":case"svelte":case"vue":case"astro":return"html";case"css":case"less":case"scss":return"css";case"js":case"jsx":case"json":default:return"javascript"}},dj=function(t,e){for(var n={javascript:zu({jsx:!0,typescript:!1}),typescript:zu({jsx:!0,typescript:!0}),html:FE(),css:qv()},i=0,r=e;i<r.length;i++){var s=r[i];if(t===s.name)return s.language}return n[t]},KO=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return U.useCallback(function(n){return t.forEach(function(i){if(i){if(typeof i=="function")return i(n);i.current=n}})},t)};function pj(t){return At.fromClass(function(){function e(n){this.decorations=this.getDecoration(n)}return e.prototype.update=function(n){},e.prototype.getDecoration=function(n){if(!t)return ue.none;var i=t.map(function(r){var s,o,a,l=ue.line({attributes:{class:(s=r.className)!==null&&s!==void 0?s:""}}),c=ue.mark({class:(o=r.className)!==null&&o!==void 0?o:"",attributes:(a=r.elementAttributes)!==null&&a!==void 0?a:void 0}),u=dd(n.state.doc,{line:r.line,column:r.startColumn})+1;if(r.startColumn&&r.endColumn){var d=dd(n.state.doc,{line:r.line,column:r.endColumn})+1;return c.range(u,d)}return l.range(u)});return ue.set(i)},e}(),{decorations:function(e){return e.decorations}})}function fj(){return mj}var hj=ue.line({attributes:{class:"cm-errorLine"}}),mj=At.fromClass(function(){function t(){this.decorations=ue.none}return t.prototype.update=function(e){var n=this;e.transactions.forEach(function(i){var r=i.annotation("show-error");if(r!==void 0){var s=dd(e.view.state.doc,{line:r})+1;n.decorations=ue.set([hj.range(s)])}else i.annotation("remove-errors")&&(n.decorations=ue.none)})},t}(),{decorations:function(t){return t.decorations}}),Ra,pd,fd=Y({margin:"0",display:"block",fontFamily:"$font$mono",fontSize:"$font$size",color:"$syntax$color$plain",lineHeight:"$font$lineHeight"}),ex=Y(lj()),tx=Y((Ra={flex:1,position:"relative",overflow:"auto",background:"$colors$surface1",".cm-scroller":{padding:"$space$4 0"}},Ra[".".concat(fd)]={padding:"$space$4 0"},Ra["@media screen and (max-width: 768px)"]={"@supports (-webkit-overflow-scrolling: touch)":{".cm-content":{fontSize:"16px"}}},Ra)),nx=Y({margin:"0",outline:"none",height:"100%"}),gj=Y((pd={fontFamily:"$font$mono",fontSize:"0.8em",position:"absolute",right:"$space$2",bottom:"$space$2",zIndex:"$top",color:"$colors$clickable",backgroundColor:"$colors$surface2",borderRadius:"99999px",padding:"calc($space$1 / 2) $space$2"},pd["& + .".concat(pt)]={right:"calc($space$11 * 2)"},pd)),vj=function(t){var e=t.langSupport,n=t.highlightTheme,i=t.code,r=i===void 0?"":i,s=e.language.parser.parse(r),o=0,a=[],l=function(c,u){if(c>o){var d=r.slice(o,c);a.push(u?P.createElement("span",{children:d,className:u,key:"".concat(c).concat(o)}):d),o=c}};return fg(s,n,function(c,u,d){l(c,""),l(u,d)}),o<r.length&&(r!=null&&r.includes(`
751
+ `))&&a.push(`
752
+
753
+ `),a},hd=U.forwardRef(function(t,e){var n=t.code,i=n===void 0?"":n,r=t.filePath,s=t.fileType,o=t.onCodeUpdate,a=t.showLineNumbers,l=a===void 0?!1:a,c=t.showInlineErrors,u=c===void 0?!1:c,d=t.wrapContent,p=d===void 0?!1:d,f=t.editorState,h=f===void 0?"pristine":f,m=t.readOnly,g=m===void 0?!1:m,O=t.showReadOnly,v=O===void 0?!0:O,x=t.decorators,b=t.initMode,w=b===void 0?"lazy":b,y=t.extensions,k=y===void 0?[]:y,T=t.extensionsKeymap,E=T===void 0?[]:T,C=t.additionalLanguages,M=C===void 0?[]:C,Z=U.useRef(null),q=KO(Z,e),N=U.useRef(),_=oj(),G=_.theme,ee=_.themeId,le=U.useState(i),he=le[0],B=le[1],A=U.useState(w==="immediate"),V=A[0],X=A[1],D=Fe(),W=Ce(),se=W.listen,Ee=W.sandpack.autoReload,me=U.useRef([]),Ge=U.useRef([]),En=qQ(Z,{rootMargin:"600px 0px",threshold:.2}).isIntersecting;U.useImperativeHandle(e,function(){return{getCodemirror:function(){return N.current}}}),U.useEffect(function(){var De=w==="lazy"||w==="user-visible";De&&En&&X(!0)},[w,En]);var Et=uj(r,s,M),qn=dj(Et,M),bi=cj(G),_r=vj({langSupport:qn,highlightTheme:bi,code:i}),yi=U.useMemo(function(){return x&&x.sort(function(De,je){return De.line-je.line})},[x]);U.useEffect(function(){if(!(!Z.current||!V)){var De=[{key:"Tab",run:function(He){var Yt,jn;Sv(He);var zn=E.find(function(Yn){var wi=Yn.key;return wi==="Tab"});return(jn=(Yt=zn==null?void 0:zn.run)===null||Yt===void 0?void 0:Yt.call(zn,He))!==null&&jn!==void 0?jn:!0}},{key:"Shift-Tab",run:function(He){var Yt,jn,zn=He.state,Yn=He.dispatch;Pv({state:zn,dispatch:Yn});var wi=E.find(function(Il){var Zl=Il.key;return Zl==="Shift-Tab"});return(jn=(Yt=wi==null?void 0:wi.run)===null||Yt===void 0?void 0:Yt.call(wi,St))!==null&&jn!==void 0?jn:!0}},{key:"Escape",run:function(){return g||Z.current&&Z.current.focus(),!0}},{key:"mod-Backspace",run:Eu}],je=st(st([n$(),VT(),ST()],k,!0),[zo.of(st(st(st(st(st([],$T,!0),VQ,!0),HT,!0),De,!0),E,!0)),qn,aj(),G$(bi)],!1);g?(je.push(ve.readOnly.of(!0)),je.push(ne.editable.of(!1))):(je.push(rT()),je.push(l$())),yi&&je.push(pj(yi)),p&&je.push(ne.lineWrapping),l&&je.push(v$()),u&&je.push(fj());var at=Z.current,wt=at.querySelector(".sp-pre-placeholder");wt&&at.removeChild(wt);var St=new ne({doc:i,extensions:je,parent:at,dispatch:function(He){if(St.update([He]),He.docChanged){var Yt=He.newDoc.sliceString(0,He.newDoc.length);B(Yt),o==null||o(Yt)}}});return St.contentDOM.setAttribute("data-gramm","false"),St.contentDOM.setAttribute("data-lt-active","false"),St.contentDOM.setAttribute("aria-label",r?"Code Editor for ".concat(ja(r)):"Code Editor"),g?St.contentDOM.classList.add("cm-readonly"):St.contentDOM.setAttribute("tabIndex","-1"),N.current=St,function(){var He;(He=N.current)===null||He===void 0||He.destroy()}}},[V,l,p,ee,yi,g,Ee]),U.useEffect(function(){var je=N.current,at=!JO(k,me.current)||!JO(E,Ge.current);je&&at&&(je.dispatch({effects:Te.appendConfig.of(k)}),je.dispatch({effects:Te.appendConfig.of(zo.of(st([],E,!0)))}),me.current=k,Ge.current=E)},[k,E]),U.useEffect(function(){N.current&&h==="dirty"&&window.matchMedia("(min-width: 768px)").matches&&N.current.contentDOM.focus()},[]),U.useEffect(function(){if(N.current&&typeof i=="string"&&i!==he){var De=N.current,je=De.state.selection.ranges.some(function(wt){var St=wt.to,He=wt.from;return St>i.length||He>i.length})?R.cursor(i.length):De.state.selection,at={from:0,to:De.state.doc.length,insert:i};De.dispatch({changes:at,selection:je})}},[i]),U.useEffect(function(){if(u){var je=se(function(at){var wt=N.current;at.type==="success"?wt==null||wt.dispatch({annotations:[new Ft("remove-errors",!0)]}):at.type==="action"&&at.action==="show-error"&&at.path===r&&at.line&&(wt==null||wt.dispatch({annotations:[new Ft("show-error",at.line)]}))});return function(){return je()}}},[se,u]);var Ir=function(De){De.key==="Enter"&&N.current&&(De.preventDefault(),N.current.contentDOM.focus())},lo=function(){var De=4;return l&&(De+=6),g||(De+=1),"var(--".concat(be,"-space-").concat(De,")")};return g?S.jsxs(S.Fragment,{children:[S.jsx("pre",{ref:q,className:D("cm",[D(h),D(Et),nx,ex]),translate:"no",children:S.jsx("code",{className:D("pre-placeholder",[fd]),style:{marginLeft:lo()},children:_r})}),g&&v&&S.jsx("span",j({className:D("read-only",[gj])},{},{children:"Read-only"}))]}):S.jsx("div",{ref:q,"aria-autocomplete":"list","aria-label":r?"Code Editor for ".concat(ja(r)):"Code Editor","aria-multiline":"true",className:D("cm",[D(h),D(Et),nx,ex]),onKeyDown:Ir,role:"textbox",tabIndex:0,translate:"no",suppressHydrationWarning:!0,children:S.jsx("pre",{className:D("pre-placeholder",[fd]),style:{marginLeft:lo()},children:_r})})});P.forwardRef(function(t,e){var n=t.showTabs,i=t.showLineNumbers,r=i===void 0?!1:i,s=t.showInlineErrors,o=s===void 0?!1:s,a=t.showRunButton,l=a===void 0?!0:a,c=t.wrapContent,u=c===void 0?!1:c,d=t.closableTabs,p=d===void 0?!1:d,f=t.initMode,h=t.extensions,m=t.extensionsKeymap,g=t.readOnly,O=t.showReadOnly,v=t.additionalLanguages,x=t.className,b=Ye(t,["showTabs","showLineNumbers","showInlineErrors","showRunButton","wrapContent","closableTabs","initMode","extensions","extensionsKeymap","readOnly","showReadOnly","additionalLanguages","className"]),w=Ce().sandpack,y=rd(),k=y.code,T=y.updateCode,E=y.readOnly,C=w.activeFile,M=w.status,Z=w.editorState,q=n??w.visibleFiles.length>1,N=Fe(),_=function(G,ee){ee===void 0&&(ee=!0),T(G,ee)};return S.jsxs(Es,j({className:N("editor",[x])},b,{children:[q&&S.jsx(cd,{closableTabs:p}),S.jsxs("div",{className:N("code-editor",[tx]),children:[S.jsx(hd,{ref:e,additionalLanguages:v,code:k,editorState:Z,extensions:h,extensionsKeymap:m,filePath:C,initMode:f||w.initMode,onCodeUpdate:function(G){var ee;return _(G,(ee=w.autoReload)!==null&&ee!==void 0?ee:!0)},readOnly:g||E,showInlineErrors:o,showLineNumbers:r,showReadOnly:O,wrapContent:u},C),l&&(!w.autoReload||M==="idle")?S.jsx(GO,{}):null]})]}))}),U.forwardRef(function(t,e){var n=t.showTabs,i=t.showLineNumbers,r=t.decorators,s=t.code,o=t.initMode,a=t.wrapContent,l=t.additionalLanguages,c=Ye(t,["showTabs","showLineNumbers","decorators","code","initMode","wrapContent","additionalLanguages"]),u=Ce().sandpack,d=rd().code,p=Fe(),f=n??u.visibleFiles.length>1;return S.jsxs(Es,j({className:p("editor-viewer")},c,{children:[f?S.jsx(cd,{}):null,S.jsx("div",{className:p("code-editor",[tx]),children:S.jsx(hd,{ref:e,additionalLanguages:l,code:s??d,decorators:r,filePath:u.activeFile,initMode:o||u.initMode,showLineNumbers:i,showReadOnly:!1,wrapContent:a,readOnly:!0})}),u.status==="idle"?S.jsx(GO,{}):null]}))});var _a,Ia,Oj=Y((_a={border:"1px solid $colors$surface2",display:"flex",flexWrap:"wrap",alignItems:"stretch",borderRadius:"$border$radius",overflow:"hidden",position:"relative",backgroundColor:"$colors$surface2",gap:1},_a["> .".concat(HO)]={flexGrow:1,flexShrink:1,flexBasis:"0",height:"$layout$height",overflow:"hidden","@media print":{height:"auto",display:"block"},"@media screen and (max-width: 768px)":(Ia={},Ia["&:not(.".concat(be,"-preview, .").concat(be,"-editor, .").concat(be,"-preset-column)")]={height:"calc($layout$height / 2)"},Ia.minWidth="100%;",Ia)},_a["> .".concat(be,"-file-explorer")]={flex:.2,minWidth:200,"@media screen and (max-width: 768px)":{flex:1}},_a)),xj=U.forwardRef(function(t,e){var n=t.children,i=t.className,r=Ye(t,["children","className"]),s=Ce().sandpack,o=Fe(),a=KO(s.lazyAnchorRef,e);return S.jsx("div",j({ref:a,className:o("layout",[Oj,i])},r,{children:n}))}),bj=function(){var t,e=Ce().sandpack,n=e.error;return(t=n==null?void 0:n.message)!==null&&t!==void 0?t:null},ix=200,yj=function(t,e){var n=Ce(),i=n.sandpack,r=n.listen,s=U.useState("LOADING"),o=s[0],a=s[1];return U.useEffect(function(){var l=r(function(c){c.type==="start"&&c.firstLoad===!0&&a("LOADING"),c.type==="done"&&a(function(u){return u==="LOADING"?"PRE_FADING":"HIDDEN"})},t);return function(){l()}},[t,i.status==="idle"]),U.useEffect(function(){var l;return o==="PRE_FADING"&&!e?a("FADING"):o==="FADING"&&(l=setTimeout(function(){return a("HIDDEN")},ix)),function(){clearTimeout(l)}},[o,e]),i.status==="timeout"?"TIMEOUT":i.status!=="running"?"HIDDEN":o},wj=function(t){var e=Ce().dispatch;return{refresh:function(){return e({type:"refresh"},t)},back:function(){return e({type:"urlback"},t)},forward:function(){return e({type:"urlforward"},t)}}},rx=function(t){var e=Ce(),n=e.sandpack,i=e.listen,r=e.dispatch,s=U.useRef(null),o=U.useRef(Aa());U.useEffect(function(){var l=s.current,c=o.current;return l!==null&&n.registerBundler(l,c,t),function(){return n.unregisterBundler(c)}},[]);var a=function(){return n.clients[o.current]||null};return{sandpack:n,getClient:a,clientId:o.current,iframe:s,listen:function(l){return i(l,o.current)},dispatch:function(l){return r(l,o.current)}}},md=function(t){var e=Ce().dispatch;return{restart:function(){return e({type:"shell/restart"},t)},openPreview:function(){return e({type:"shell/openPreview"},t)}}},Sj=function(t,e){var n;switch(t.state){case"downloading_manifest":return"[1/3] Downloading manifest";case"downloaded_module":return"[2/3] Downloaded ".concat(t.name," (").concat(e-t.totalPending,"/").concat(e,")");case"starting_command":return"[3/3] Starting command";case"command_running":return'[3/3] Running "'.concat((n=t.command)===null||n===void 0?void 0:n.trim(),'"')}},sx=function(t){var e=U.useState(!1),n=e[0],i=e[1],r=U.useState(),s=r[0],o=r[1],a=U.useState(null),l=a[0],c=a[1],u=t==null?void 0:t.timeout,d=t==null?void 0:t.clientId,p=Ce().listen;return U.useEffect(function(){var f,h=p(function(m){m.type==="start"&&m.firstLoad&&i(!1),u&&(f=setTimeout(function(){c(null)},u)),m.type==="shell/progress"&&!n&&(!s&&m.data.state==="downloaded_module"&&o(m.data.totalPending),s!==void 0&&c(Sj(m.data,s))),m.type==="done"&&m.compilatonError===!1&&(c(null),i(!0),clearTimeout(f))},d);return function(){f&&clearTimeout(f),h()}},[d,n,s,u]),l},Pj=400*2,ox=function(t){var e=t.clientId,n=t.maxMessageCount,i=n===void 0?Pj:n;t.resetOnPreviewRestart;var r=U.useState([]),s=r[0],o=r[1],a=Ce().listen;return U.useEffect(function(){var l=a(function(c){c.type==="start"?o([]):c.type==="stdout"&&c.payload.data&&c.payload.data.trim()&&o(function(u){for(var d=st(st([],u,!0),[{data:c.payload.data,id:Aa()}],!1);d.length>i;)d.shift();return d})},e);return l},[i,e]),{logs:s,reset:function(){return o([])}}},kj=function(t){var e=t.replace("[sandpack-client]: ","");if(/process.exit/.test(e)){var n=e.match(/process.exit\((\d+)\)/);return n?Number(n[1])===0?"Server is not running, would you like to start it again?":"Server has crashed with status code ".concat(n[1],", would you like to restart the server?"):e}return e},$j=function(t){var e=t.children,n=t.className,i=Ye(t,["children","className"]),r=bj(),s=md().restart,o=Fe(),a=Ce().sandpack,l=a.runSandpack,c=a.teamId,u=Ce().dispatch;if(!r&&!e)return null;var d=r==null?void 0:r.startsWith("[sandpack-client]"),p=r==null?void 0:r.includes("NPM_REGISTRY_UNAUTHENTICATED_REQUEST"),f=function(){c&&u({type:"sign-in",teamId:c})};return p?S.jsxs("div",j({className:o("overlay",[o("error"),Qs,ad,n])},t,{children:[S.jsx("p",{className:o("error-message",[ci]),children:S.jsx("strong",{children:"Unable to fetch required dependency."})}),S.jsx("div",{className:o("error-message",[ci]),children:S.jsxs("p",{children:["Authentication required. Please sign in to your account (make sure to allow pop-ups to this page) and try again. If the issue persists, contact"," ",S.jsx("a",{href:"mailto:hello@codesandbox.io?subject=Sandpack Timeout Error",children:"support"})," ","for further assistance."]})}),S.jsx("div",{children:S.jsxs("button",{className:o("button",[pt,In,Ii]),onClick:f,children:[S.jsx(o2,{}),S.jsx("span",{children:"Sign in"})]})})]})):d&&r?S.jsx("div",j({className:o("overlay",[o("error"),Qs,ad,n])},i,{children:S.jsxs("div",{className:o("error-message",[ci]),children:[S.jsx("p",{className:o("error-title",[Y({fontWeight:"bold"})]),children:"Couldn't connect to server"}),S.jsx("p",{children:kj(r)}),S.jsx("div",{children:S.jsxs("button",{className:o("button",[o("icon-standalone"),pt,In,Ii]),onClick:function(){s(),l()},title:"Restart script",type:"button",children:[S.jsx(Ea,{})," ",S.jsx("span",{children:"Restart"})]})})]})})):S.jsxs("div",j({className:o("overlay",[o("error"),Qs,UO({solidBg:!0}),n]),translate:"no"},i,{children:[S.jsx("p",{className:o("error-message",[ci]),children:S.jsx("strong",{children:"Something went wrong"})}),S.jsx("p",{className:o("error-message",[ci({errorCode:!0})]),children:r||e})]}))};function Tj(t,e){return e===void 0&&(e=!1),t=i2(Aj(t)),e2.ansiToJson(t,{json:!0,remove_empty:!0,use_classes:e})}function Qj(t){var e="";return t.bg&&(e+="".concat(t.bg,"-bg ")),t.fg&&(e+="".concat(t.fg,"-fg ")),t.decoration&&(e+="ansi-".concat(t.decoration," ")),e===""?null:(e=e.substring(0,e.length-1),e)}function Cj(t){var e={};switch(t.bg&&(e.backgroundColor="rgb(".concat(t.bg,")")),t.fg&&(e.color="rgb(".concat(t.fg,")")),t.decoration){case"bold":e.fontWeight="bold";break;case"dim":e.opacity="0.5";break;case"italic":e.fontStyle="italic";break;case"hidden":e.visibility="hidden";break;case"strikethrough":e.textDecoration="line-through";break;case"underline":e.textDecoration="underline";break;case"blink":e.textDecoration="blink";break}return e}function Ej(t,e,n,i){var r=e?null:Cj(n),s=e?Qj(n):null;if(!t)return U.createElement("span",{style:r,key:i,className:s},n.content);for(var o=[],a=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g,l=0,c;(c=a.exec(n.content))!==null;){var u=c[1],d=c[2],p=c.index+u.length;p>l&&o.push(n.content.substring(l,p));var f=d.startsWith("www.")?"http://".concat(d):d;o.push(U.createElement("a",{key:l,href:f,target:"_blank"},"".concat(d))),l=a.lastIndex}return l<n.content.length&&o.push(n.content.substring(l)),U.createElement("span",{style:r,key:i,className:s},o)}function jj(t){var e=t.className,n=t.useClasses,i=t.children,r=t.linkify;return U.createElement("code",{className:e},Tj(i??"",n??!1).map(Ej.bind(null,r??!1,n??!1)))}function Aj(t){var e=t;do t=e,e=t.replace(/[^\n]\x08/gm,"");while(e.length<t.length);return t}var ax=function(t){var e=t.data,n=Fe();return S.jsx(S.Fragment,{children:e.map(function(i){var r=i.data,s=i.id;return S.jsx("div",{className:n("console-item",[Dj]),children:S.jsx(jj,{children:r})},s)})})},Dj=Y({width:"100%",padding:"$space$3 $space$2",fontSize:".85em",position:"relative",whiteSpace:"pre","&:not(:first-child):after":{content:"",position:"absolute",top:0,left:0,right:0,height:1,background:"$colors$surface3"}}),Mj=function(t){return s2.compressToBase64(JSON.stringify(t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},lx="https://codesandbox.io/api/v1/sandboxes/define",Rj=function(t,e){var n=Object.keys(t).reduce(function(i,r){var s,o=r.replace("/",""),a={content:t[r].code,isBinary:!1};return j(j({},i),(s={},s[o]=a,s))},{});return Mj(j({files:n},e?{template:e}:null))},_j=function(t){var e,n,i,r=t.children,s=Ye(t,["children"]),o=Ce().sandpack,a=U.useRef(null),l=U.useState(),c=l[0],u=l[1];return U.useEffect(function(){var p=setTimeout(function(){var f=Rj(o.files,o.environment),h=new URLSearchParams({parameters:f,query:new URLSearchParams({file:o.activeFile,utm_medium:"sandpack"}).toString()});u(h)},600);return function(){clearTimeout(p)}},[o.activeFile,o.environment,o.files]),((i=(n=(e=c==null?void 0:c.get)===null||e===void 0?void 0:e.call(c,"parameters"))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>1500?S.jsxs("button",j({onClick:function(){var d;return(d=a.current)===null||d===void 0?void 0:d.submit()},title:"Open in CodeSandbox",type:"button"},s,{children:[S.jsxs("form",{ref:a,action:lx,method:"POST",style:{visibility:"hidden"},target:"_blank",children:[S.jsx("input",{name:"environment",type:"hidden",value:o.environment==="node"?"server":o.environment}),Array.from(c,function(d){var p=d[0],f=d[1];return S.jsx("input",{name:p,type:"hidden",value:f},p)})]}),r]})):S.jsx("a",j({href:"".concat(lx,"?").concat(c==null?void 0:c.toString(),"&environment=").concat(o.environment==="node"?"server":o.environment),rel:"noreferrer noopener",target:"_blank",title:"Open in CodeSandbox"},s,{children:r}))},cx=function(){var t=Fe();return S.jsxs(_j,{className:t("button",[t("icon-standalone"),pt,In,Ii]),children:[S.jsx(p2,{}),S.jsx("span",{children:"Open Sandbox"})]})},Zi,gd=Y({transform:"translate(-4px, 9px) scale(0.13, 0.13)","*":{position:"absolute",width:"96px",height:"96px"}}),Ij=Y((Zi={position:"absolute",right:"$space$2",bottom:"$space$2",zIndex:"$top",width:"32px",height:"32px",borderRadius:"$border$radius"},Zi[".".concat(gd)]={display:"flex"},Zi[".sp-button.".concat(pt)]={display:"none"},Zi["&:hover .sp-button.".concat(pt)]={display:"flex"},Zi["&:hover .sp-button.".concat(pt," > span")]={display:"none"},Zi["&:hover .".concat(gd)]={display:"none"},Zi)),Zj=VO({"0%":{transform:"rotateX(-25.5deg) rotateY(45deg)"},"100%":{transform:"rotateX(-25.5deg) rotateY(405deg)"}}),Nj=Y({animation:"".concat(Zj," 1s linear infinite"),animationFillMode:"forwards",transformStyle:"preserve-3d",transform:"rotateX(-25.5deg) rotateY(45deg)","*":{border:"10px solid $colors$clickable",borderRadius:"8px",background:"$colors$surface1"},".top":{transform:"rotateX(90deg) translateZ(44px)",transformOrigin:"50% 50%"},".bottom":{transform:"rotateX(-90deg) translateZ(44px)",transformOrigin:"50% 50%"},".front":{transform:"rotateY(0deg) translateZ(44px)",transformOrigin:"50% 50%"},".back":{transform:"rotateY(-180deg) translateZ(44px)",transformOrigin:"50% 50%"},".left":{transform:"rotateY(-90deg) translateZ(44px)",transformOrigin:"50% 50%"},".right":{transform:"rotateY(90deg) translateZ(44px)",transformOrigin:"50% 50%"}}),Lj=function(t){var e=t.className,n=t.showOpenInCodeSandbox,i=Ye(t,["className","showOpenInCodeSandbox"]),r=Fe();return S.jsxs("div",j({className:r("cube-wrapper",[Ij,e]),title:"Open in CodeSandbox"},i,{children:[n&&S.jsx(cx,{}),S.jsx("div",{className:r("cube",[gd]),children:S.jsxs("div",{className:r("sides",[Nj]),children:[S.jsx("div",{className:"top"}),S.jsx("div",{className:"right"}),S.jsx("div",{className:"bottom"}),S.jsx("div",{className:"left"}),S.jsx("div",{className:"front"}),S.jsx("div",{className:"back"})]})})]}))},Xj=Y({backgroundColor:"$colors$surface1"}),Vj=function(t){var e=t.clientId,n=t.loading,i=t.className,r=t.style,s=t.showOpenInCodeSandbox,o=Ye(t,["clientId","loading","className","style","showOpenInCodeSandbox"]),a=Fe(),l=Ce().sandpack,c=l.runSandpack,u=l.environment,d=U.useState(!1),p=d[0],f=d[1],h=yj(e,n),m=sx({clientId:e}),g=ox({clientId:e}).logs;if(U.useEffect(function(){var v;return m!=null&&m.includes("Running")&&(v=setTimeout(function(){f(!0)},3e3)),function(){v&&clearTimeout(v)}},[m]),h==="HIDDEN")return null;if(h==="TIMEOUT")return S.jsx("div",j({className:a("overlay",[a("error"),Qs,UO,ad,i])},o,{children:S.jsxs("div",{className:a("error-message",[ci]),children:[S.jsx("p",{className:a("error-title",[Y({fontWeight:"bold"})]),children:"Couldn't connect to server"}),S.jsx("div",{className:a("error-message",[ci]),children:S.jsxs("p",{children:["This means sandpack cannot connect to the runtime or your network is having some issues. Please check the network tab in your browser and try again. If the problem persists, report it via"," ",S.jsx("a",{href:"mailto:hello@codesandbox.io?subject=Sandpack Timeout Error",children:"email"})," ","or submit an issue on"," ",S.jsx("a",{href:"https://github.com/codesandbox/sandpack/issues",rel:"noreferrer noopener",target:"_blank",children:"GitHub."})]})}),S.jsxs("p",{className:a("error-message",[ci({errorCode:!0})]),children:["ENV: ",u,S.jsx("br",{}),"ERROR: TIME_OUT"]}),S.jsx("div",{children:S.jsxs("button",{className:a("button",[a("icon-standalone"),pt,In,Ii]),onClick:c,title:"Restart script",type:"button",children:[S.jsx(Ea,{})," ",S.jsx("span",{children:"Try again"})]})})]})}));var O=h==="LOADING"||h==="PRE_FADING";return S.jsxs(S.Fragment,{children:[S.jsxs("div",j({className:a("overlay",[a("loading"),Qs,Xj,i]),style:j(j({},r),{opacity:O?1:0,transition:"opacity ".concat(ix,"ms ease-out")})},o,{children:[p&&S.jsx("div",{className:Wj.toString(),children:S.jsx(ax,{data:g})}),S.jsx(Lj,{showOpenInCodeSandbox:s})]})),m&&S.jsx("div",{className:qj.toString(),children:S.jsx("p",{children:m})})]})},Wj=Y({position:"absolute",left:0,right:0,bottom:"$space$8",overflow:"auto",opacity:.5,overflowX:"hidden"}),qj=Y({position:"absolute",left:"$space$5",bottom:"$space$4",zIndex:"$top",color:"$colors$clickable",animation:"".concat(od," 150ms ease"),fontFamily:"$font$mono",fontSize:".8em",width:"75%",p:{whiteSpace:"nowrap",margin:0,textOverflow:"ellipsis",overflow:"hidden"}}),zj=function(t){var e=t.clientId,n=sx({timeout:3e3,clientId:e});return n?S.jsx("div",{className:Yj.toString(),children:S.jsx("p",{children:n})}):null},Yj=Y({position:"absolute",left:"$space$5",bottom:"$space$4",zIndex:"$top",color:"$colors$clickable",animation:"".concat(od," 150ms ease"),fontFamily:"$font$mono",fontSize:".8em",width:"75%",p:{whiteSpace:"nowrap",margin:0,textOverflow:"ellipsis",overflow:"hidden"}});Y({borderRadius:"0",width:"100%",padding:0,marginBottom:"$space$2",span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},svg:{marginRight:"$space$1"}}),Y({padding:"$space$3",overflow:"auto",height:"100%"});var Bj=function(t){var e=t.match(/(https?:\/\/.*?)\//);return e&&e[1]?[e[1],t.replace(e[1],"")]:[t,"/"]},Uj=Y({display:"flex",alignItems:"center",height:"$layout$headerHeight",borderBottom:"1px solid $colors$surface2",padding:"$space$3 $space$2",background:"$colors$surface1"}),Fj=Y({backgroundColor:"$colors$surface2",color:"$colors$clickable",padding:"$space$1 $space$3",borderRadius:"99999px",border:"1px solid $colors$surface2",height:"24px",lineHeight:"24px",fontSize:"inherit",outline:"none",flex:1,marginLeft:"$space$4",width:"0",transition:"background $transitions$default","&:hover":{backgroundColor:"$colors$surface3"},"&:focus":{backgroundColor:"$surface1",border:"1px solid $colors$accent",color:"$colors$base"}}),Gj=function(t){var e,n=t.clientId,i=t.onURLChange,r=t.className,s=t.startRoute,o=Ye(t,["clientId","onURLChange","className","startRoute"]),a=U.useState(""),l=a[0],c=a[1],u=Ce(),d=u.sandpack,p=u.dispatch,f=u.listen,h=U.useState((e=s??d.startRoute)!==null&&e!==void 0?e:"/"),m=h[0],g=h[1],O=U.useState(!1),v=O[0],x=O[1],b=U.useState(!1),w=b[0],y=b[1],k=Fe();U.useEffect(function(){var N=f(function(_){if(_.type==="urlchange"){var G=_.url,ee=_.back,le=_.forward,he=Bj(G),B=he[0],A=he[1];c(B),g(A),x(ee),y(le)}},n);return function(){return N()}},[]);var T=function(N){var _=N.target.value.startsWith("/")?N.target.value:"/".concat(N.target.value);g(_)},E=function(N){N.code==="Enter"&&(N.preventDefault(),N.stopPropagation(),typeof i=="function"&&i(l+N.currentTarget.value))},C=function(){p({type:"refresh"})},M=function(){p({type:"urlback"})},Z=function(){p({type:"urlforward"})},q=k("button",[k("icon"),pt,tj,Y({minWidth:"$space$6",justifyContent:"center"})]);return S.jsxs("div",j({className:k("navigator",[Uj,r])},o,{children:[S.jsx("button",{"aria-label":"Go back one page",className:q,disabled:!v,onClick:M,type:"button",children:S.jsx(c2,{})}),S.jsx("button",{"aria-label":"Go forward one page",className:q,disabled:!w,onClick:Z,type:"button",children:S.jsx(u2,{})}),S.jsx("button",{"aria-label":"Refresh page",className:q,onClick:C,type:"button",children:S.jsx(IO,{})}),S.jsx("input",{"aria-label":"Current Sandpack URL",className:k("input",[Fj]),name:"Current Sandpack URL",onChange:T,onKeyDown:E,type:"text",value:m})]}))},vd,Hj=Y((vd={flex:1,display:"flex",flexDirection:"column",background:"white",overflow:"auto",position:"relative"},vd[".".concat(be,"-bridge-frame")]={border:0,position:"absolute",left:"$space$2",bottom:"$space$2",zIndex:"$top",height:12,width:"30%",mixBlendMode:"multiply",pointerEvents:"none"},vd)),Jj=Y({border:"0",outline:"0",width:"100%",height:"100%",minHeight:"160px",maxHeight:"2000px",flex:1}),Kj=Y({display:"flex",position:"absolute",bottom:"$space$2",right:"$space$2",zIndex:"$overlay",gap:"$space$2"}),eA=U.forwardRef(function(t,e){var n=t.showNavigator,i=n===void 0?!1:n,r=t.showRefreshButton,s=r===void 0?!0:r,o=t.showOpenInCodeSandbox,a=o===void 0?!0:o,l=t.showSandpackErrorOverlay,c=l===void 0?!0:l;t.showOpenNewtab;var u=t.showRestartButton,d=u===void 0?!0:u,p=t.actionsChildren,f=p===void 0?S.jsx(S.Fragment,{}):p,h=t.children,m=t.className,g=t.startRoute,O=g===void 0?"/":g,v=Ye(t,["showNavigator","showRefreshButton","showOpenInCodeSandbox","showSandpackErrorOverlay","showOpenNewtab","showRestartButton","actionsChildren","children","className","startRoute"]),x=rx({startRoute:O}),b=x.sandpack,w=x.listen,y=x.iframe,k=x.getClient,T=x.clientId,E=x.dispatch,C=U.useState(null),M=C[0],Z=C[1],q=b.status,N=wj(T).refresh,_=md(T).restart,G=Fe();U.useEffect(function(){var le=w(function(he){he.type==="resize"&&Z(he.height)});return le},[]),U.useImperativeHandle(e,function(){return{clientId:T,getClient:k}},[k,T]);var ee=function(le){y.current&&(y.current.src=le)};return S.jsxs(Es,j({className:G("preview",[m])},v,{children:[i&&S.jsx(Gj,{clientId:T,onURLChange:ee,startRoute:O}),S.jsxs("div",{className:G("preview-container",[Hj]),children:[S.jsx("iframe",{ref:y,className:G("preview-iframe",[Jj]),style:{height:M||void 0},title:"Sandpack Preview"}),S.jsxs("div",{className:G("preview-actions",[Kj]),children:[f,d&&b.environment==="node"&&S.jsx(Cs,{onClick:_,children:S.jsx(Ea,{})}),!i&&s&&q==="running"&&S.jsx(Cs,{onClick:N,children:S.jsx(IO,{})}),b.teamId&&S.jsx("button",{className:G("button",[G("icon-standalone"),pt,In,Ii]),onClick:function(){return E({type:"sign-out"})},title:"Sign out",type:"button",children:S.jsx(a2,{})}),a&&S.jsx(cx,{})]}),S.jsx(Vj,{clientId:T,showOpenInCodeSandbox:a}),c&&S.jsx($j,{}),h]})]}))}),Od;Y((Od={display:"flex",flexDirection:"column",width:"100%",position:"relative",overflow:"auto",minHeight:"160px",flex:1},Od[".".concat(be,"-stack")]={height:"100%"},Od)),Y({justifyContent:"space-between",borderBottom:"1px solid $colors$surface2",padding:"0 $space$2",fontFamily:"$font$mono",height:"$layout$headerHeight",minHeight:"$layout$headerHeight",overflowX:"auto",whiteSpace:"nowrap"}),Y({display:"flex",flexDirection:"row",alignItems:"center",gap:"$space$2"});var Za=Y({variants:{status:{pass:{color:"var(--test-pass)"},fail:{color:"var(--test-fail)"},skip:{color:"var(--test-skip)"},title:{color:"var(--test-title)"}}}});Za({status:"pass"}),Za({status:"fail"}),Za({status:"skip"}),Za({status:"title"});var xd=Y({variants:{status:{pass:{background:"var(--test-pass)",color:"$colors$surface1"},fail:{background:"var(--test-fail)",color:"$colors$surface1"},run:{background:"var(--test-run)",color:"$colors$surface1"}}}});xd({status:"run"}),xd({status:"pass"}),xd({status:"fail"}),Y({marginLeft:"$space$4"}),Y({marginBottom:"$space$2",color:"$colors$clickable"}),Y({marginBottom:"$space$2",color:"$colors$hover"}),Y({marginLeft:"$space$2"}),Y({marginRight:"$space$2"}),Y({color:"$colors$hover",marginBottom:"$space$2"}),Y({marginLeft:"$space$4"}),Y({color:"$colors$hover",fontSize:"$font$size",padding:"$space$2",whiteSpace:"pre-wrap"}),Y({display:"flex",flexDirection:"row",alignItems:"center",marginBottom:"$space$2"}),Y({marginBottom:"$space$2"}),Y({fontWeight:"bold"}),Y({borderRadius:"calc($border$radius / 2)"}),Y({padding:"$space$1 $space$2",fontFamily:"$font$mono",textTransform:"uppercase",marginRight:"$space$2"}),Y({fontFamily:"$font$mono",cursor:"pointer",display:"inline-block"}),Y({color:"$colors$clickable",textDecorationStyle:"dotted",textDecorationLine:"underline"}),Y({color:"$colors$hover",fontWeight:"bold",textDecorationStyle:"dotted",textDecorationLine:"underline"}),Y({marginBottom:"$space$2"}),Y({fontWeight:"bold",color:"$colors$hover",whiteSpace:"pre-wrap"}),Y({fontWeight:"bold",color:"$colors$clickable"}),Y({display:"flex",position:"absolute",bottom:"$space$2",right:"$space$2",zIndex:"$overlay","> *":{marginLeft:"$space$2"}}),Y({padding:"$space$4",height:"100%",overflow:"auto",display:"flex",flexDirection:"column",position:"relative",fontFamily:"$font$mono"}),Y({fontWeight:"bold",color:"$colors$base"});var tA=["SyntaxError: ","Error in sandbox:"],nA={id:"random",method:"clear",data:["Console was cleared"]},ux="@t",dx="#@t",px="@r",fx=1e4,hx=2,bd=400,iA=bd*2,yd=function(){var e=eval;return e("this")}(),rA=typeof ArrayBuffer=="function",sA=typeof Map=="function",oA=typeof Set=="function",js;(function(t){t[t.infinity=0]="infinity",t[t.minusInfinity=1]="minusInfinity",t[t.minusZero=2]="minusZero"})(js||(js={}));var mx={Arithmetic:function(t){return t===js.infinity?1/0:t===js.minusInfinity?-1/0:t===js.minusZero?-0:t},HTMLElement:function(t){var e=document.implementation.createHTMLDocument("sandbox");try{var n=e.createElement(t.tagName);n.innerHTML=t.innerHTML;for(var i=0,r=Object.keys(t.attributes);i<r.length;i++){var s=r[i];try{n.setAttribute(s,t.attributes[s])}catch{}}return n}catch{return t}},Function:function(t){var e=function(){};return Object.defineProperty(e,"toString",{value:function(){return"function ".concat(t.name,"() {").concat(t.body,"}")}}),e},"[[NaN]]":function(){return NaN},"[[undefined]]":function(){},"[[Date]]":function(t){var e=new Date;return e.setTime(t),e},"[[RegExp]]":function(t){return new RegExp(t.src,t.flags)},"[[Error]]":function(t){var e=yd[t.name]||Error,n=new e(t.message);return n.stack=t.stack,n},"[[ArrayBuffer]]":function(t){if(rA){var e=new ArrayBuffer(t.length),n=new Int8Array(e);return n.set(t),e}return t},"[[TypedArray]]":function(t){return typeof yd[t.ctorName]=="function"?new yd[t.ctorName](t.arr):t.arr},"[[Map]]":function(t){if(sA){for(var e=new Map,n=0;n<t.length;n+=2)e.set(t[n],t[n+1]);return e}for(var i=[],r=0;r<t.length;r+=2)i.push([t[n],t[n+1]]);return i},"[[Set]]":function(t){if(oA){for(var e=new Set,n=0;n<t.length;n++)e.add(t[n]);return e}return t}},wd=function(t){var e;if(typeof t=="string"||typeof t=="number"||t===null)return t;if(Array.isArray(t))return t.map(wd);if(typeof t=="object"&&ux in t){var n=t[ux],i=mx[n];return i(t.data)}else if(typeof t=="object"&&dx in t){var n=t[dx],i=mx[n];return i(t.data)}else if(typeof t=="object"&&((e=t.constructor)===null||e===void 0?void 0:e.name)==="NodeList"){var r={};return Object.entries(t).forEach(function(s){var o=s[0],a=s[1];r[o]=wd(a)}),r}return t},aA=function(t,e,n){var i=t.reduce(function(r,s,o){return"".concat(r).concat(o?", ":"").concat(As(s,e,n))},"");return"[".concat(i,"]")},lA=function(t,e,n){var i=t.constructor.name!=="Object"?"".concat(t.constructor.name," "):"";if(n>hx)return i;var r=Object.entries(t),s=Object.entries(t).reduce(function(o,a,l){var c=a[0],u=a[1],d=l===0?"":", ",p=r.length>10?`
754
+ `:"",f=As(u,e,n);return l===bd?o+p+"...":l>bd?o:o+"".concat(d).concat(p).concat(c,": ")+f},"");return"".concat(i,"{ ").concat(s).concat(r.length>10?`
755
+ `:" ","}")},As=function(t,e,n){var i;n===void 0&&(n=0);try{var r=wd(t);if(Array.isArray(r))return aA(r,e,n+1);switch(typeof r){case"string":return'"'.concat(r,'"').slice(0,fx);case"number":case"function":case"symbol":return r.toString();case"boolean":return String(r);case"undefined":return"undefined";case"object":default:if(r instanceof RegExp||r instanceof Error||r instanceof Date)return r.toString();if(r===null)return String(null);if(r instanceof HTMLElement)return r.outerHTML.slice(0,fx);if(Object.entries(r).length===0)return"{}";if(px in r){if(n>hx)return"Unable to print information";var s=e[r[px]];return As(s,e,n+1)}if(((i=r.constructor)===null||i===void 0?void 0:i.name)==="NodeList"){var o=r.length,a=new Array(o).fill(null).map(function(l,c){return As(r[c],e)});return"NodeList(".concat(r.length,")[").concat(a,"]")}return lA(r,e,n+1)}}catch{return"Unable to print information"}},cA=function(t){switch(t){case"warn":return"warning";case"clear":return"clear";case"error":return"error";case"log":case"info":default:return"info"}},Na,uA=function(t){var e=t.data,n=Fe();return S.jsx(S.Fragment,{children:e.map(function(i,r,s){var o=i.data,a=i.id,l=i.method;return o&&Array.isArray(o)?S.jsx(U.Fragment,{children:o.map(function(c,u){var d=s.slice(r,s.length);return S.jsx("div",{className:n("console-item",[dA({variant:cA(l)})]),children:S.jsx(hd,{code:l==="clear"?c:As(c,d),fileType:"js",initMode:"user-visible",showReadOnly:!1,readOnly:!0,wrapContent:!0})},"".concat(a,"-").concat(u))})},a):null})})},dA=Y((Na={width:"100%",padding:"$space$3 $space$2",fontSize:".8em",position:"relative","&:not(:first-child):after":{content:"",position:"absolute",top:0,left:0,right:0,height:1,background:"$colors$surface3"},".sp-cm":{padding:0},".cm-editor":{background:"none"},".cm-content":{padding:0}},Na[".".concat(be,"-pre-placeholder")]={margin:"0 !important",fontSize:"1em"},Na.variants={variant:{error:{color:"$colors$error",background:"$colors$errorSurface","&:not(:first-child):after":{background:"$colors$error",opacity:.07}},warning:{color:"$colors$warning",background:"$colors$warningSurface","&:not(:first-child):after":{background:"$colors$warning",opacity:.07}},clear:{fontStyle:"italic"},info:{}}},Na)),pA=Y({justifyContent:"space-between",borderBottom:"1px solid $colors$surface2",padding:"0 $space$2",fontFamily:"$font$mono",height:"$layout$headerHeight",minHeight:"$layout$headerHeight",overflowX:"auto",whiteSpace:"nowrap"}),gx=Y({display:"flex",flexDirection:"row",alignItems:"center",gap:"$space$2"}),fA=function(t){var e=t.currentTab,n=t.setCurrentTab,i=t.node,r=Fe(),s=r("console-header-button",[pt,Ii,Y({padding:"$space$1 $space$3"})]);return S.jsxs("div",{className:r("console-header",[pA,gx]),children:[S.jsxs("p",{className:r("console-header-title",[Y({lineHeight:1,margin:0,color:"$colors$base",fontSize:"$font$size",display:"flex",alignItems:"center",gap:"$space$2"})]),children:[S.jsx(h2,{}),S.jsx("span",{children:"Terminal"})]}),i&&S.jsxs("div",{className:r("console-header-actions",[gx]),children:[S.jsx("button",{className:s,"data-active":e==="server",onClick:function(){return n("server")},type:"button",children:"Server"}),S.jsx("button",{className:s,"data-active":e==="client",onClick:function(){return n("client")},type:"button",children:"Client"})]})]})},hA=function(t){var e=t.clientId,n=t.maxMessageCount,i=n===void 0?iA:n,r=t.showSyntaxError,s=r===void 0?!1:r,o=t.resetOnPreviewRestart,a=o===void 0?!1:o,l=U.useState([]),c=l[0],u=l[1],d=Ce().listen;return U.useEffect(function(){var p=d(function(f){if(a&&f.type==="start")u([]);else if(f.type==="console"&&f.codesandbox){var h=Array.isArray(f.log)?f.log:[f.log];if(h.find(function(g){var O=g.method;return O==="clear"}))return u([nA]);var m=s?h:h.filter(function(g){var O,v,x,b=(x=(v=(O=g==null?void 0:g.data)===null||O===void 0?void 0:O.filter)===null||v===void 0?void 0:v.call(O,function(w){if(typeof w!="string")return!0;var y=tA.filter(function(k){return w.startsWith(k)});return y.length===0}))!==null&&x!==void 0?x:[];return b.length>0});if(!m)return;u(function(g){for(var O=st(st([],g,!0),m,!0).filter(function(v,x,b){return x===b.findIndex(function(w){return w.id===v.id})});O.length>i;)O.shift();return O})}},e);return p},[s,i,e,a]),{logs:c,reset:function(){return u([])}}},mA=U.forwardRef(function(t,e){var n,i=t.showHeader,r=i===void 0?!0:i,s=t.showSyntaxError,o=s===void 0?!1:s,a=t.maxMessageCount,l=t.onLogsChange,c=t.className;t.showSetupProgress;var u=t.showResetConsoleButton,d=u===void 0?!0:u,p=t.showRestartButton,f=p===void 0?!0:p,h=t.resetOnPreviewRestart,m=h===void 0?!1:h,g=t.actionsChildren,O=g===void 0?S.jsx(S.Fragment,{}):g,v=t.standalone,x=v===void 0?!1:v,b=Ye(t,["showHeader","showSyntaxError","maxMessageCount","onLogsChange","className","showSetupProgress","showResetConsoleButton","showRestartButton","resetOnPreviewRestart","actionsChildren","standalone"]),w=Ce().sandpack.environment,y=rx(),k=y.iframe,T=y.clientId,E=md().restart,C=U.useState(w==="node"?"server":"client"),M=C[0],Z=C[1],q=x?T:void 0,N=hA({maxMessageCount:a,showSyntaxError:o,resetOnPreviewRestart:m,clientId:q}),_=N.logs,G=N.reset,ee=ox({maxMessageCount:a,resetOnPreviewRestart:m,clientId:q}),le=ee.logs,he=ee.reset,B=U.useRef(null);U.useEffect(function(){l==null||l(_),B.current&&(B.current.scrollTop=B.current.scrollHeight)},[l,_,le,M]);var A=M==="server",V=w==="node";U.useImperativeHandle(e,function(){return{reset:function(){G(),he()}}});var X=Fe();return S.jsxs(Es,j({className:X("console",[Y((n={height:"100%",background:"$surface1",iframe:{display:"none"}},n[".".concat(be,"-bridge-frame")]={display:"block",border:0,position:"absolute",left:"$space$2",bottom:"$space$2",zIndex:"$top",height:12,width:"30%",mixBlendMode:"multiply",pointerEvents:"none"},n)),c])},b,{children:[r&&V&&S.jsx(fA,{currentTab:M,node:V,setCurrentTab:Z}),S.jsx("div",{ref:B,className:X("console-list",[Y({overflow:"auto",scrollBehavior:"smooth"})]),children:A?S.jsx(ax,{data:le}):S.jsx(uA,{data:_})}),S.jsxs("div",{className:X("console-actions",[Y({position:"absolute",bottom:"$space$2",right:"$space$2",display:"flex",gap:"$space$2"})]),children:[O,f&&A&&S.jsx(Cs,{onClick:function(){E(),G(),he()},children:S.jsx(Ea,{})}),d&&S.jsx(Cs,{onClick:function(){M==="client"?G():he()},children:S.jsx(d2,{})})]}),x&&S.jsxs(S.Fragment,{children:[S.jsx(zj,{clientId:q}),S.jsx("iframe",{ref:k})]})]}))});Y({position:"absolute",zIndex:"$top",variants:{direction:{vertical:{right:0,left:0,height:10,cursor:"ns-resize"},horizontal:{top:0,bottom:0,width:10,cursor:"ew-resize"}}},"@media screen and (max-width: 768px)":{display:"none"}}),Y({position:"relative",strong:{background:"$colors$clickable",color:"$colors$surface1",minWidth:12,height:12,padding:"0 2px",borderRadius:12,fontSize:8,lineHeight:"12px",position:"absolute",top:0,right:0,fontWeight:"normal"}}),Y({width:"100%",overflow:"hidden"}),Y({flexDirection:"row-reverse","@media screen and (max-width: 768px)":{flexFlow:"wrap-reverse !important",flexDirection:"initial"}});const gA={html:"html",css:"css",js:"javascript",jsx:"javascript",ts:"typescript",tsx:"javascript",json:"json",md:"markdown",txt:"plaintext",vue:"vue"},vA=t=>{const{code:e,updateCode:n}=rd(),{sandpack:i}=Ce(),r=gA[i.activeFile.split(".").pop()??"js"];return t.editorFiles.current=i,S.jsxs(Es,{style:{height:"100vh",margin:0},children:[S.jsx(cd,{closableTabs:!0}),S.jsx("div",{style:{flex:1,paddingTop:8,minWidth:600,background:"#1e1e1e"},children:S.jsx(cS,{width:"100%",height:"100%",language:r,theme:"vs-dark",defaultValue:e,onChange:s=>n(s||"")},i.activeFile)})]})};function OA(t){return t.reduceRight((e,n)=>({[n]:e}),null)}function Sd(t,e,n,i){var s,o,a,l,c,u;const r=Object.assign({},e);for(const d in n)r[d]||(r[d]={}),typeof n[d]=="object"?((s=Object.keys((e==null?void 0:e[d])||{}))==null?void 0:s.length)===0&&((o=Object.keys((n==null?void 0:n[d])||{}))==null?void 0:o.length)===0?r[d]=(a=t[`${d}`])==null?void 0:a.code:((l=Object.keys((e==null?void 0:e[d])||{}))==null?void 0:l.length)===0?r[d]=Object.entries(n[d]).reduce((p,[f,h])=>{var m;return h!==null?p[f]=Sd(t,r[d],h,i):p[f]=(m=t[`${d}/${f}`])==null?void 0:m.code,p},{}):((c=Object.keys((n==null?void 0:n[d])||{}))==null?void 0:c.length)===0?r[d]=e[d]:r[d]=Sd(t,r[d],n[d],i):r[d]=(u=t[`${i}`])==null?void 0:u.code;return r}const vx=(t,e)=>Object.fromEntries(Object.entries(t).filter(([n])=>!e.includes(n))),Ds=(t,e={})=>{const n=typeof e=="string"?{[e]:""}:e??{};return Object.keys({...t,...n}).reduce((r,s)=>{const o=s.split("/").splice(1),a=OA(o);return r=Sd(t,r,a,s),r},{})},Ni=(t,e)=>{let n="",i=e.find(({id:r})=>r===t.parent);return i&&(n=`${Ni(i,e)}/${n}`),n+=`${t.text}`,n},yr=(t,e="/",n=[])=>{for(let i in t)if(t.hasOwnProperty(i)){const r=i;let s=Ni({id:"",parent:e,text:r,droppable:!1,data:{path:""}},n);const o={id:s,parent:e,text:r,data:{path:`/${s}`},droppable:!1};typeof t[i]=="object"&&t[i]!==null?(o.droppable=!0,n.push(o),yr(t[i],s,n)):n.push(o)}return n},Ox=t=>{var n,i,r;let e="";try{e=(i=JSON.parse((n=t["/package.json"])==null?void 0:n.code))==null?void 0:i.main}catch{const o=/\"main\"\s*:\s*\"([^"]+)\"/.exec((r=t["/package.json"])==null?void 0:r.code);e=(o==null?void 0:o[1])??""}return e};function xA(t,e){const n=[];for(let i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&n.push(i);return n}function xx(t,e){let n={};for(let i=0;i<(e==null?void 0:e.length);i++){let r=e[i],s=Ni(r,e);n[`/${s}`]=t[`${r.data.path}`],r.droppable&&!n[`/${s}`]&&(n[`/${s}`]={code:".emptyDir",hidden:!0},n[`/${s}/`]={code:".emptyDir",hidden:!0}),r.data.path=`/${s}`}return n}const bx=P.createContext(null),yx=()=>{const t=P.useContext(bx);if(!t)throw Error("<SandpackFileTree/> must be used inside a <SandpackFilesProvider>, you may be looking for <SandpackFileExplorer/>?");return t},bA=({children:t,onMoveFile:e})=>{const{sandpack:n}=Ce(),[i,r]=P.useState(()=>yr(Ds({...n.files}))),[s,o]=P.useState([]),a=async f=>{var b,w;const h=(w=JSON.parse((b=n.files["/package.json"])==null?void 0:b.code))==null?void 0:w.main,m=typeof f=="string"?[f]:f;if(m.includes(h))return;const g={...n.files},O=(y,k)=>{const T=[];return(k==null?void 0:k.filter(({parent:C})=>C===y)).forEach(C=>{T.push(Ni(C,k)),C.id!=="/"&&C.id!==y&&T.push(...O(C.id,k))}),T},v=m.map(async y=>{if(y.endsWith("/")){const T=y.substring(0,y.length-1),E=T.substring(1);n.deleteFile(`${T}`),delete g[T],O(E,i).forEach(M=>{n.deleteFile(`/${M}`),delete g[`/${M}`]})}n.deleteFile(y),delete g[y]});await Promise.all(v);const x=vx(g,m);r(yr(Ds(x)))},l=async f=>{for(let O in f)(n.files[O]||n.files[O.endsWith("/")?O.substring(0,O.length-1):`${O}/`])&&delete f[O];n.addFile(f);const h=Object.keys(n.files).filter(O=>O.includes("addDir")||O.includes("addFile")),m=Object.keys(f);if(m.filter(O=>O.includes("addDir")||O.includes("addFile")).length){const O=yr(Ds({...n.files},f));r(O);const v=Object.keys(f)[0].substring(1),x=c({childId:v,tree:O});o(b=>Array.from(new Set([...b,...x])))}else{await a(h);const O=vx({...n.files},h);r(yr(Ds(O,f))),m.forEach(v=>{v.endsWith("/")||n.openFile(v)})}},c=({childId:f,tree:h})=>{var O;const m=[],g=(O=h.find(({id:v})=>v===f))==null?void 0:O.parent;return!g||g==="/"||(m.push(`${g}`),m.push(...c({childId:g,tree:h}))),m},p={addFile:l,treeData:i,setTreeData:r,buildPath:Ni,deleteFile:a,onFileMoved:async({node:f,newTree:h})=>{const m={...n.files},g=xx(m,i),O=xx(m,h),v=xA(g,O),x=v.map(k=>{a(k)});await Promise.all(x),n.addFile(O);const b=v.reduce((k,T)=>{var C,M,Z,q,N;const E=`/${Ni({parent:((C=f.dropTarget)==null?void 0:C.id)??"/",text:(M=f==null?void 0:f.dragSource)==null?void 0:M.text},h)}`;return k[T]=`${E}${T.substring(T.indexOf((Z=f==null?void 0:f.dragSource)==null?void 0:Z.id)+((N=(q=f==null?void 0:f.dragSource)==null?void 0:q.id)==null?void 0:N.length))}`,k},{});e==null||e(b);const w=n.activeFile;let y=n.activeFile;n.visibleFiles.forEach(k=>{b[k]&&(n.openFile(b[k]),w===k&&(y=b[k]))}),n.setActiveFile(y)},moveFiles:async f=>{const h={...n.files};for(let x in f)h[x]&&(h[f[x]]=h[x]);const m=Object.keys(f).map(x=>{h[x]&&(delete h[x],a(x))});await Promise.all(m),n.addFile(h);const g=n.activeFile;let O=n.activeFile;n.visibleFiles.forEach(x=>{f[x]&&(n.openFile(f[x]),g===x&&(O=x))}),n.setActiveFile(O);const v=yr(Ds({...h}));r(v)},openDirs:s,setOpenDirs:o};return S.jsx(bx.Provider,{value:p,children:t})};function wx(t){let e=null;return()=>(e==null&&(e=t()),e)}function yA(t,e){return t.filter(n=>n!==e)}function wA(t,e){const n=new Set,i=s=>n.add(s);t.forEach(i),e.forEach(i);const r=[];return n.forEach(s=>r.push(s)),r}class SA{enter(e){const n=this.entered.length,i=r=>this.isNodeInDocument(r)&&(!r.contains||r.contains(e));return this.entered=wA(this.entered.filter(i),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=yA(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class PA{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(i=>{const r=this.config.exposeProperties[i];r!=null&&(n[i]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Sx="__NATIVE_FILE__",Px="__NATIVE_URL__",kx="__NATIVE_TEXT__",$x="__NATIVE_HTML__",Tx=Object.freeze(Object.defineProperty({__proto__:null,FILE:Sx,HTML:$x,TEXT:kx,URL:Px},Symbol.toStringTag,{value:"Module"}));function Pd(t,e,n){const i=e.reduce((r,s)=>r||t.getData(s),"");return i??n}const kd={[Sx]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[$x]:{exposeProperties:{html:(t,e)=>Pd(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[Px]:{exposeProperties:{urls:(t,e)=>Pd(t,e,"").split(`
756
+ `),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[kx]:{exposeProperties:{text:(t,e)=>Pd(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function kA(t,e){const n=kd[t];if(!n)throw new Error(`native type ${t} has no configuration`);const i=new PA(n);return i.loadDataTransfer(e),i}function $d(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(kd).filter(n=>{const i=kd[n];return i!=null&&i.matchesTypes?i.matchesTypes.some(r=>e.indexOf(r)>-1):!1})[0]||null}const $A=wx(()=>/firefox/i.test(navigator.userAgent)),Qx=wx(()=>!!window.safari);class Cx{interpolate(e){const{xs:n,ys:i,c1s:r,c2s:s,c3s:o}=this;let a=n.length-1;if(e===n[a])return i[a];let l=0,c=o.length-1,u;for(;l<=c;){u=Math.floor(.5*(l+c));const f=n[u];if(f<e)l=u+1;else if(f>e)c=u-1;else return i[u]}a=Math.max(0,c);const d=e-n[a],p=d*d;return i[a]+r[a]*d+s[a]*p+o[a]*d*p}constructor(e,n){const{length:i}=e,r=[];for(let f=0;f<i;f++)r.push(f);r.sort((f,h)=>e[f]<e[h]?-1:1);const s=[],o=[];let a,l;for(let f=0;f<i-1;f++)a=e[f+1]-e[f],l=n[f+1]-n[f],s.push(a),o.push(l/a);const c=[o[0]];for(let f=0;f<s.length-1;f++){const h=o[f],m=o[f+1];if(h*m<=0)c.push(0);else{a=s[f];const g=s[f+1],O=a+g;c.push(3*O/((O+g)/h+(O+a)/m))}}c.push(o[o.length-1]);const u=[],d=[];let p;for(let f=0;f<c.length-1;f++){p=o[f];const h=c[f],m=1/s[f],g=h+c[f+1]-p-p;u.push((p-h-g)*m),d.push(g*m*m)}this.xs=e,this.ys=n,this.c1s=c,this.c2s=u,this.c3s=d}}const TA=1;function Ex(t){const e=t.nodeType===TA?t:t.parentElement;if(!e)return null;const{top:n,left:i}=e.getBoundingClientRect();return{x:i,y:n}}function La(t){return{x:t.clientX,y:t.clientY}}function QA(t){var e;return t.nodeName==="IMG"&&($A()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function CA(t,e,n,i){let r=t?e.width:n,s=t?e.height:i;return Qx()&&t&&(s/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:s}}function EA(t,e,n,i,r){const s=QA(e),a=Ex(s?t:e),l={x:n.x-a.x,y:n.y-a.y},{offsetWidth:c,offsetHeight:u}=t,{anchorX:d,anchorY:p}=i,{dragPreviewWidth:f,dragPreviewHeight:h}=CA(s,e,c,u),m=()=>{let y=new Cx([0,.5,1],[l.y,l.y/u*h,l.y+h-u]).interpolate(p);return Qx()&&s&&(y+=(window.devicePixelRatio-1)*h),y},g=()=>new Cx([0,.5,1],[l.x,l.x/c*f,l.x+f-c]).interpolate(d),{offsetX:O,offsetY:v}=r,x=O===0||O,b=v===0||v;return{x:x?O:g(),y:b?v:m()}}let jA=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function AA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){AA(t,r,n[r])})}return t}class DA{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,i){return this.sourcePreviewNodeOptions.set(e,i),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,i){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,i);const r=o=>this.handleDragStart(o,e),s=o=>this.handleSelectStart(o);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",r),n.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",r),n.removeEventListener("selectstart",s),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const i=o=>this.handleDragEnter(o,e),r=o=>this.handleDragOver(o,e),s=o=>this.handleDrop(o,e);return n.addEventListener("dragenter",i),n.addEventListener("dragover",r),n.addEventListener("drop",s),()=>{n.removeEventListener("dragenter",i),n.removeEventListener("dragover",r),n.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return jx({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return jx({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Tx).some(n=>Tx[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=kA(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=r=>{const s=this.sourceNodes.get(r);return s&&Ex(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=r=>!!(r&&this.document&&this.document.body&&this.document.body.contains(r)),this.endDragIfSourceWasRemovedFromDOM=()=>{const r=this.currentDragSourceNode;r==null||this.isNodeInDocument(r)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=r=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(r||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=r=>{if(r.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const o=La(r);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:o});const{dataTransfer:a}=r,l=$d(a);if(this.monitor.isDragging()){if(a&&typeof a.setDragImage=="function"){const u=this.monitor.getSourceId(),d=this.sourceNodes.get(u),p=this.sourcePreviewNodes.get(u)||d;if(p){const{anchorX:f,anchorY:h,offsetX:m,offsetY:g}=this.getCurrentSourcePreviewNodeOptions(),x=EA(d,p,o,{anchorX:f,anchorY:h},{offsetX:m,offsetY:g});a.setDragImage(p,x.x,x.y)}}try{a==null||a.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(r.target);const{captureDraggingState:c}=this.getCurrentSourcePreviewNodeOptions();c?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(a&&!a.types&&(r.target&&!r.target.hasAttribute||!r.target.hasAttribute("draggable")))return;r.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=r=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(r.dataTransfer)}if(!this.enterLeaveCounter.enter(r.target)||this.monitor.isDragging())return;const{dataTransfer:a}=r,l=$d(a);l&&this.beginDragNativeItem(l,a)},this.handleTopDragEnter=r=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=r.altKey,s.length>0&&this.actions.hover(s,{clientOffset:La(r)}),s.some(a=>this.monitor.canDropOnTarget(a))&&(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=r=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(r.dataTransfer)}},this.handleTopDragOver=r=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect="none");return}this.altKeyPressed=r.altKey,this.lastClientOffset=La(r),this.scheduleHover(s),(s||[]).some(a=>this.monitor.canDropOnTarget(a))?(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?r.preventDefault():(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=r=>{this.isDraggingNativeItem()&&r.preventDefault(),this.enterLeaveCounter.leave(r.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=r=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;r.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(r.dataTransfer)}else $d(r.dataTransfer)&&r.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=r=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:La(r)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=r=>{const s=r.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(r.preventDefault(),s.dragDrop()))},this.options=new jA(n,i),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new SA(this.isNodeInDocument)}}let Xa;function MA(){return Xa||(Xa=new Image,Xa.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Xa}const RA=function(e,n,i){return new DA(e,n,i)};var Li=[],_A=function(){return Li.some(function(t){return t.activeTargets.length>0})},IA=function(){return Li.some(function(t){return t.skippedTargets.length>0})},Ax="ResizeObserver loop completed with undelivered notifications.",ZA=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Ax}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Ax),window.dispatchEvent(t)},Ms;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ms||(Ms={}));var Xi=function(t){return Object.freeze(t)},NA=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Xi(this)}return t}(),Dx=function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Xi(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,s=e.right,o=e.bottom,a=e.left,l=e.width,c=e.height;return{x:n,y:i,top:r,right:s,bottom:o,left:a,width:l,height:c}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Td=function(t){return t instanceof SVGElement&&"getBBox"in t},Mx=function(t){if(Td(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,s=r.offsetWidth,o=r.offsetHeight;return!(s||o||t.getClientRects().length)},Rx=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},LA=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Rs=typeof window<"u"?window:{},Va=new WeakMap,_x=/auto|scroll/,XA=/^tb|vertical/,VA=/msie|trident/i.test(Rs.navigator&&Rs.navigator.userAgent),Sn=function(t){return parseFloat(t||"0")},wr=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new NA((n?e:t)||0,(n?t:e)||0)},Ix=Xi({devicePixelContentBoxSize:wr(),borderBoxSize:wr(),contentBoxSize:wr(),contentRect:new Dx(0,0,0,0)}),Zx=function(t,e){if(e===void 0&&(e=!1),Va.has(t)&&!e)return Va.get(t);if(Mx(t))return Va.set(t,Ix),Ix;var n=getComputedStyle(t),i=Td(t)&&t.ownerSVGElement&&t.getBBox(),r=!VA&&n.boxSizing==="border-box",s=XA.test(n.writingMode||""),o=!i&&_x.test(n.overflowY||""),a=!i&&_x.test(n.overflowX||""),l=i?0:Sn(n.paddingTop),c=i?0:Sn(n.paddingRight),u=i?0:Sn(n.paddingBottom),d=i?0:Sn(n.paddingLeft),p=i?0:Sn(n.borderTopWidth),f=i?0:Sn(n.borderRightWidth),h=i?0:Sn(n.borderBottomWidth),m=i?0:Sn(n.borderLeftWidth),g=d+c,O=l+u,v=m+f,x=p+h,b=a?t.offsetHeight-x-t.clientHeight:0,w=o?t.offsetWidth-v-t.clientWidth:0,y=r?g+v:0,k=r?O+x:0,T=i?i.width:Sn(n.width)-y-w,E=i?i.height:Sn(n.height)-k-b,C=T+g+w+v,M=E+O+b+x,Z=Xi({devicePixelContentBoxSize:wr(Math.round(T*devicePixelRatio),Math.round(E*devicePixelRatio),s),borderBoxSize:wr(C,M,s),contentBoxSize:wr(T,E,s),contentRect:new Dx(d,l,T,E)});return Va.set(t,Z),Z},Nx=function(t,e,n){var i=Zx(t,n),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case Ms.DEVICE_PIXEL_CONTENT_BOX:return o;case Ms.BORDER_BOX:return r;default:return s}},WA=function(){function t(e){var n=Zx(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Xi([n.borderBoxSize]),this.contentBoxSize=Xi([n.contentBoxSize]),this.devicePixelContentBoxSize=Xi([n.devicePixelContentBoxSize])}return t}(),Lx=function(t){if(Mx(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},qA=function(){var t=1/0,e=[];Li.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(c){var u=new WA(c.target),d=Lx(c.target);a.push(u),c.lastReportedSize=Nx(c.target,c.observedBox),d<t&&(t=d)}),e.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},Xx=function(t){Li.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Lx(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},zA=function(){var t=0;for(Xx(t);_A();)t=qA(),Xx(t);return IA()&&ZA(),t>0},Qd,Vx=[],YA=function(){return Vx.splice(0).forEach(function(t){return t()})},BA=function(t){if(!Qd){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return YA()}).observe(n,i),Qd=function(){n.textContent="".concat(e?e--:e++)}}Vx.push(t),Qd()},UA=function(t){BA(function(){requestAnimationFrame(t)})},Wa=0,FA=function(){return!!Wa},GA=250,HA={attributes:!0,characterData:!0,childList:!0,subtree:!0},Wx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],qx=function(t){return t===void 0&&(t=0),Date.now()+t},Cd=!1,JA=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=GA),!Cd){Cd=!0;var i=qx(e);UA(function(){var r=!1;try{r=zA()}finally{if(Cd=!1,e=i-qx(),!FA())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,HA)};document.body?n():Rs.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Wx.forEach(function(n){return Rs.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Wx.forEach(function(n){return Rs.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Ed=new JA,zx=function(t){!Wa&&t>0&&Ed.start(),Wa+=t,!Wa&&Ed.stop()},KA=function(t){return!Td(t)&&!LA(t)&&getComputedStyle(t).display==="inline"},eD=function(){function t(e,n){this.target=e,this.observedBox=n||Ms.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Nx(this.target,this.observedBox,!0);return KA(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),tD=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),qa=new WeakMap,Yx=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},za=function(){function t(){}return t.connect=function(e,n){var i=new tD(e,n);qa.set(e,i)},t.observe=function(e,n,i){var r=qa.get(e),s=r.observationTargets.length===0;Yx(r.observationTargets,n)<0&&(s&&Li.push(r),r.observationTargets.push(new eD(n,i&&i.box)),zx(1),Ed.schedule())},t.unobserve=function(e,n){var i=qa.get(e),r=Yx(i.observationTargets,n),s=i.observationTargets.length===1;r>=0&&(s&&Li.splice(Li.indexOf(i),1),i.observationTargets.splice(r,1),zx(-1))},t.disconnect=function(e){var n=this,i=qa.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),nD=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");za.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Rx(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");za.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Rx(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");za.unobserve(this,e)},t.prototype.disconnect=function(){za.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}(),jd=function(t,e){return jd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},jd(t,e)};function Bx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");jd(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var L=function(){return L=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},L.apply(this,arguments)};function Zt(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}function Be(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,s=[],o;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Pn(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var Ux="production",Fx=typeof process>"u"||process.env===void 0?Ux:process.env.NODE_ENV||Ux,Zn=function(t){return{isEnabled:function(e){return t.some(function(n){return!!e[n]})}}},_s={measureLayout:Zn(["layout","layoutId","drag"]),animation:Zn(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Zn(["exit"]),drag:Zn(["drag","dragControls"]),focus:Zn(["whileFocus"]),hover:Zn(["whileHover","onHoverStart","onHoverEnd"]),tap:Zn(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Zn(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Zn(["whileInView","onViewportEnter","onViewportLeave"])};function iD(t){for(var e in t)t[e]!==null&&(e==="projectionNodeConstructor"?_s.projectionNodeConstructor=t[e]:_s[e].Component=t[e])}var Is=function(){},Nt=function(){};process.env.NODE_ENV!=="production"&&(Is=function(t,e){!t&&typeof console<"u"&&console.warn(e)},Nt=function(t,e){if(!t)throw new Error(e)});var Gx=P.createContext({strict:!1}),Hx=Object.keys(_s),rD=Hx.length;function sD(t,e,n){var i=[],r=P.useContext(Gx);if(!e)return null;Fx!=="production"&&n&&r.strict&&Nt(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var s=0;s<rD;s++){var o=Hx[s],a=_s[o],l=a.isEnabled,c=a.Component;l(t)&&c&&i.push(U.createElement(c,L({key:o},t,{visualElement:e})))}return i}var Ad=P.createContext({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),Ya=P.createContext({});function oD(){return P.useContext(Ya).visualElement}var Ba=P.createContext(null),Sr=typeof document<"u",Jx=Sr?P.useLayoutEffect:P.useEffect,Dd={current:null},Kx=!1;function aD(){if(Kx=!0,!!Sr)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return Dd.current=t.matches};t.addListener(e),e()}else Dd.current=!1}function lD(){!Kx&&aD();var t=Be(P.useState(Dd.current),1),e=t[0];return e}function cD(){var t=lD(),e=P.useContext(Ad).reducedMotion;return e==="never"?!1:e==="always"?!0:t}function uD(t,e,n,i){var r=P.useContext(Gx),s=oD(),o=P.useContext(Ba),a=cD(),l=P.useRef(void 0);i||(i=r.renderer),!l.current&&i&&(l.current=i(t,{visualState:e,parent:s,props:n,presenceId:o==null?void 0:o.id,blockInitialAnimation:(o==null?void 0:o.initial)===!1,shouldReduceMotion:a}));var c=l.current;return Jx(function(){c==null||c.syncRender()}),P.useEffect(function(){var u;(u=c==null?void 0:c.animationState)===null||u===void 0||u.animateChanges()}),Jx(function(){return function(){return c==null?void 0:c.notifyUnmount()}},[]),c}function Pr(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function dD(t,e,n){return P.useCallback(function(i){var r;i&&((r=t.mount)===null||r===void 0||r.call(t,i)),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Pr(n)&&(n.current=i))},[e])}function eb(t){return Array.isArray(t)}function nn(t){return typeof t=="string"||eb(t)}function pD(t){var e={};return t.forEachValue(function(n,i){return e[i]=n.get()}),e}function fD(t){var e={};return t.forEachValue(function(n,i){return e[i]=n.getVelocity()}),e}function tb(t,e,n,i,r){var s;return i===void 0&&(i={}),r===void 0&&(r={}),typeof e=="function"&&(e=e(n??t.custom,i,r)),typeof e=="string"&&(e=(s=t.variants)===null||s===void 0?void 0:s[e]),typeof e=="function"&&(e=e(n??t.custom,i,r)),e}function Ua(t,e,n){var i=t.getProps();return tb(i,e,n??i.custom,pD(t),fD(t))}function Fa(t){var e;return typeof((e=t.animate)===null||e===void 0?void 0:e.start)=="function"||nn(t.initial)||nn(t.animate)||nn(t.whileHover)||nn(t.whileDrag)||nn(t.whileTap)||nn(t.whileFocus)||nn(t.exit)}function nb(t){return!!(Fa(t)||t.variants)}function hD(t,e){if(Fa(t)){var n=t.initial,i=t.animate;return{initial:n===!1||nn(n)?n:void 0,animate:nn(i)?i:void 0}}return t.inherit!==!1?e:{}}function mD(t){var e=hD(t,P.useContext(Ya)),n=e.initial,i=e.animate;return P.useMemo(function(){return{initial:n,animate:i}},[ib(n),ib(i)])}function ib(t){return Array.isArray(t)?t.join(" "):t}function Ga(t){var e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}var Zs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gD=1;function vD(){return Ga(function(){if(Zs.hasEverUpdated)return gD++})}var rb=P.createContext({}),sb=P.createContext({});function OD(t,e,n,i){var r,s=e.layoutId,o=e.layout,a=e.drag,l=e.dragConstraints,c=e.layoutScroll,u=P.useContext(sb);!i||!n||n!=null&&n.projection||(n.projection=new i(t,n.getLatestValues(),(r=n.parent)===null||r===void 0?void 0:r.projection),n.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||l&&Pr(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof o=="string"?o:"both",initialPromotionConfig:u,layoutScroll:c}))}var xD=function(t){Bx(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},e.prototype.componentDidUpdate=function(){},e.prototype.updateProps=function(){var n=this.props,i=n.visualElement,r=n.props;i&&i.setProps(r)},e.prototype.render=function(){return this.props.children},e}(P.Component);function bD(t){var e=t.preloadedFeatures,n=t.createVisualElement,i=t.projectionNodeConstructor,r=t.useRender,s=t.useVisualState,o=t.Component;e&&iD(e);function a(l,c){var u=yD(l);l=L(L({},l),{layoutId:u});var d=P.useContext(Ad),p=null,f=mD(l),h=d.isStatic?void 0:vD(),m=s(l,d.isStatic);return!d.isStatic&&Sr&&(f.visualElement=uD(o,m,L(L({},d),l),n),OD(h,l,f.visualElement,i||_s.projectionNodeConstructor),p=sD(l,f.visualElement,e)),U.createElement(xD,{visualElement:f.visualElement,props:L(L({},d),l)},p,U.createElement(Ya.Provider,{value:f},r(o,l,h,dD(m,f.visualElement,c),m,d.isStatic,f.visualElement)))}return P.forwardRef(a)}function yD(t){var e,n=t.layoutId,i=(e=P.useContext(rb))===null||e===void 0?void 0:e.id;return i&&n!==void 0?i+"-"+n:n}function wD(t){function e(i,r){return r===void 0&&(r={}),bD(t(i,r))}if(typeof Proxy>"u")return e;var n=new Map;return new Proxy(e,{get:function(i,r){return n.has(r)||n.set(r,e(r)),n.get(r)}})}var SD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Md(t){return typeof t!="string"||t.includes("-")?!1:!!(SD.indexOf(t)>-1||/[A-Z]/.test(t))}var Ha={};function PD(t){Object.assign(Ha,t)}var Rd=["","X","Y","Z"],kD=["translate","scale","rotate","skew"],Ns=["transformPerspective","x","y","z"];kD.forEach(function(t){return Rd.forEach(function(e){return Ns.push(t+e)})});function $D(t,e){return Ns.indexOf(t)-Ns.indexOf(e)}var TD=new Set(Ns);function Ls(t){return TD.has(t)}var QD=new Set(["originX","originY","originZ"]);function ob(t){return QD.has(t)}function ab(t,e){var n=e.layout,i=e.layoutId;return Ls(t)||ob(t)||(n||i!==void 0)&&(!!Ha[t]||t==="opacity")}var Nn=function(t){return!!(t!==null&&typeof t=="object"&&t.getVelocity)},CD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ED(t,e,n,i){var r=t.transform,s=t.transformKeys,o=e.enableHardwareAcceleration,a=o===void 0?!0:o,l=e.allowTransformNone,c=l===void 0?!0:l,u="";s.sort($D);for(var d=!1,p=s.length,f=0;f<p;f++){var h=s[f];u+="".concat(CD[h]||h,"(").concat(r[h],") "),h==="z"&&(d=!0)}return!d&&a?u+="translateZ(0)":u=u.trim(),i?u=i(r,n?"":u):c&&n&&(u="none"),u}function jD(t){var e=t.originX,n=e===void 0?"50%":e,i=t.originY,r=i===void 0?"50%":i,s=t.originZ,o=s===void 0?0:s;return"".concat(n," ").concat(r," ").concat(o)}function lb(t){return t.startsWith("--")}var AD=function(t,e){return e&&typeof t=="number"?e.transform(t):t};const cb=(t,e)=>n=>Math.max(Math.min(n,e),t),Xs=t=>t%1?Number(t.toFixed(5)):t,Vs=/(-)?([\d]*\.?[\d])+/g,_d=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,DD=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Ws(t){return typeof t=="string"}const Vi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},qs=Object.assign(Object.assign({},Vi),{transform:cb(0,1)}),Ja=Object.assign(Object.assign({},Vi),{default:1}),zs=t=>({test:e=>Ws(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ui=zs("deg"),kn=zs("%"),ie=zs("px"),MD=zs("vh"),RD=zs("vw"),ub=Object.assign(Object.assign({},kn),{parse:t=>kn.parse(t)/100,transform:t=>kn.transform(t*100)}),Id=(t,e)=>n=>!!(Ws(n)&&DD.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),db=(t,e,n)=>i=>{if(!Ws(i))return i;const[r,s,o,a]=i.match(Vs);return{[t]:parseFloat(r),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Wi={test:Id("hsl","hue"),parse:db("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+kn.transform(Xs(e))+", "+kn.transform(Xs(n))+", "+Xs(qs.transform(i))+")"},_D=cb(0,255),Zd=Object.assign(Object.assign({},Vi),{transform:t=>Math.round(_D(t))}),di={test:Id("rgb","red"),parse:db("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Zd.transform(t)+", "+Zd.transform(e)+", "+Zd.transform(n)+", "+Xs(qs.transform(i))+")"};function ID(t){let e="",n="",i="",r="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),r=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),r=t.substr(4,1),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Nd={test:Id("#"),parse:ID,transform:di.transform},ft={test:t=>di.test(t)||Nd.test(t)||Wi.test(t),parse:t=>di.test(t)?di.parse(t):Wi.test(t)?Wi.parse(t):Nd.parse(t),transform:t=>Ws(t)?t:t.hasOwnProperty("red")?di.transform(t):Wi.transform(t)},pb="${c}",fb="${n}";function ZD(t){var e,n,i,r;return isNaN(t)&&Ws(t)&&((n=(e=t.match(Vs))===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0)+((r=(i=t.match(_d))===null||i===void 0?void 0:i.length)!==null&&r!==void 0?r:0)>0}function hb(t){typeof t=="number"&&(t=`${t}`);const e=[];let n=0;const i=t.match(_d);i&&(n=i.length,t=t.replace(_d,pb),e.push(...i.map(ft.parse)));const r=t.match(Vs);return r&&(t=t.replace(Vs,fb),e.push(...r.map(Vi.parse))),{values:e,numColors:n,tokenised:t}}function mb(t){return hb(t).values}function gb(t){const{values:e,numColors:n,tokenised:i}=hb(t),r=e.length;return s=>{let o=i;for(let a=0;a<r;a++)o=o.replace(a<n?pb:fb,a<n?ft.transform(s[a]):Xs(s[a]));return o}}const ND=t=>typeof t=="number"?0:t;function LD(t){const e=mb(t);return gb(t)(e.map(ND))}const Ln={test:ZD,parse:mb,createTransformer:gb,getAnimatableNone:LD},XD=new Set(["brightness","contrast","saturate","opacity"]);function VD(t){let[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Vs)||[];if(!i)return t;const r=n.replace(i,"");let s=XD.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+r+")"}const WD=/([a-z-]*)\(.*?\)/g,Ld=Object.assign(Object.assign({},Ln),{getAnimatableNone:t=>{const e=t.match(WD);return e?e.map(VD).join(" "):t}});var vb=L(L({},Vi),{transform:Math.round}),Ob={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,size:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,rotate:ui,rotateX:ui,rotateY:ui,rotateZ:ui,scale:Ja,scaleX:Ja,scaleY:Ja,scaleZ:Ja,skew:ui,skewX:ui,skewY:ui,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:qs,originX:ub,originY:ub,originZ:ie,zIndex:vb,fillOpacity:qs,strokeOpacity:qs,numOctaves:vb};function Xd(t,e,n,i){var r,s=t.style,o=t.vars,a=t.transform,l=t.transformKeys,c=t.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var f in e){var h=e[f];if(lb(f)){o[f]=h;continue}var m=Ob[f],g=AD(h,m);if(Ls(f)){if(u=!0,a[f]=g,l.push(f),!p)continue;h!==((r=m.default)!==null&&r!==void 0?r:0)&&(p=!1)}else ob(f)?(c[f]=g,d=!0):s[f]=g}u?s.transform=ED(t,n,p,i):i?s.transform=i({},""):!e.transform&&s.transform&&(s.transform="none"),d&&(s.transformOrigin=jD(c))}var Vd=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function xb(t,e,n){for(var i in e)!Nn(e[i])&&!ab(i,n)&&(t[i]=e[i])}function qD(t,e,n){var i=t.transformTemplate;return P.useMemo(function(){var r=Vd();Xd(r,e,{enableHardwareAcceleration:!n},i);var s=r.vars,o=r.style;return L(L({},s),o)},[e])}function zD(t,e,n){var i=t.style||{},r={};return xb(r,i,t),Object.assign(r,qD(t,e,n)),t.transformValues&&(r=t.transformValues(r)),r}function YD(t,e,n){var i={},r=zD(t,e,n);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":"pan-".concat(t.drag==="x"?"y":"x")),i.style=r,i}var BD=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Ka(t){return BD.has(t)}var bb=function(t){return!Ka(t)};function UD(t){t&&(bb=function(e){return e.startsWith("on")?!Ka(e):t(e)})}try{UD(require("@emotion/is-prop-valid").default)}catch{}function FD(t,e,n){var i={};for(var r in t)(bb(r)||n===!0&&Ka(r)||!e&&!Ka(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}function yb(t,e,n){return typeof t=="string"?t:ie.transform(e+n*t)}function GD(t,e,n){var i=yb(e,t.x,t.width),r=yb(n,t.y,t.height);return"".concat(i," ").concat(r)}var HD={offset:"stroke-dashoffset",array:"stroke-dasharray"},JD={offset:"strokeDashoffset",array:"strokeDasharray"};function KD(t,e,n,i,r){n===void 0&&(n=1),i===void 0&&(i=0),r===void 0&&(r=!0),t.pathLength=1;var s=r?HD:JD;t[s.offset]=ie.transform(-i);var o=ie.transform(e),a=ie.transform(n);t[s.array]="".concat(o," ").concat(a)}function Wd(t,e,n,i){var r=e.attrX,s=e.attrY,o=e.originX,a=e.originY,l=e.pathLength,c=e.pathSpacing,u=c===void 0?1:c,d=e.pathOffset,p=d===void 0?0:d,f=Zt(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Xd(t,f,n,i),t.attrs=t.style,t.style={};var h=t.attrs,m=t.style,g=t.dimensions;h.transform&&(g&&(m.transform=h.transform),delete h.transform),g&&(o!==void 0||a!==void 0||m.transform)&&(m.transformOrigin=GD(g,o!==void 0?o:.5,a!==void 0?a:.5)),r!==void 0&&(h.x=r),s!==void 0&&(h.y=s),l!==void 0&&KD(h,l,u,p,!1)}var wb=function(){return L(L({},Vd()),{attrs:{}})};function eM(t,e){var n=P.useMemo(function(){var r=wb();return Wd(r,e,{enableHardwareAcceleration:!1},t.transformTemplate),L(L({},r.attrs),{style:L({},r.style)})},[e]);if(t.style){var i={};xb(i,t.style,t),n.style=L(L({},i),n.style)}return n}function tM(t){t===void 0&&(t=!1);var e=function(n,i,r,s,o,a){var l=o.latestValues,c=Md(n)?eM:YD,u=c(i,l,a),d=FD(i,typeof n=="string",t),p=L(L(L({},d),u),{ref:s});return r&&(p["data-projection-id"]=r),P.createElement(n,p)};return e}var nM=/([a-z])([A-Z])/g,iM="$1-$2",Sb=function(t){return t.replace(nM,iM).toLowerCase()};function Pb(t,e,n,i){var r=e.style,s=e.vars;Object.assign(t.style,r,i&&i.getProjectionStyles(n));for(var o in s)t.style.setProperty(o,s[o])}var kb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function $b(t,e,n,i){Pb(t,e,void 0,i);for(var r in e.attrs)t.setAttribute(kb.has(r)?r:Sb(r),e.attrs[r])}function qd(t){var e=t.style,n={};for(var i in e)(Nn(e[i])||ab(i,t))&&(n[i]=e[i]);return n}function Tb(t){var e=qd(t);for(var n in t)if(Nn(t[n])){var i=n==="x"||n==="y"?"attr"+n.toUpperCase():n;e[i]=t[n]}return e}function zd(t){return typeof t=="object"&&typeof t.start=="function"}var Ys=function(t){return Array.isArray(t)},rM=function(t){return!!(t&&typeof t=="object"&&t.mix&&t.toValue)},Qb=function(t){return Ys(t)?t[t.length-1]||0:t};function el(t){var e=Nn(t)?t.get():t;return rM(e)?e.toValue():e}function Cb(t,e,n,i){var r=t.scrapeMotionValuesFromProps,s=t.createRenderState,o=t.onMount,a={latestValues:sM(e,n,i,r),renderState:s()};return o&&(a.mount=function(l){return o(e,l,a)}),a}var Eb=function(t){return function(e,n){var i=P.useContext(Ya),r=P.useContext(Ba);return n?Cb(t,e,i,r):Ga(function(){return Cb(t,e,i,r)})}};function sM(t,e,n,i){var r={},s=(n==null?void 0:n.initial)===!1,o=i(t);for(var a in o)r[a]=el(o[a]);var l=t.initial,c=t.animate,u=Fa(t),d=nb(t);e&&d&&!u&&t.inherit!==!1&&(l??(l=e.initial),c??(c=e.animate));var p=s||l===!1,f=p?c:l;if(f&&typeof f!="boolean"&&!zd(f)){var h=Array.isArray(f)?f:[f];h.forEach(function(m){var g=tb(t,m);if(g){var O=g.transitionEnd;g.transition;var v=Zt(g,["transitionEnd","transition"]);for(var x in v){var b=v[x];if(Array.isArray(b)){var w=p?b.length-1:0;b=b[w]}b!==null&&(r[x]=b)}for(var x in O)r[x]=O[x]}})}return r}var oM={useVisualState:Eb({scrapeMotionValuesFromProps:Tb,createRenderState:wb,onMount:function(t,e,n){var i=n.renderState,r=n.latestValues;try{i.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{i.dimensions={x:0,y:0,width:0,height:0}}Wd(i,r,{enableHardwareAcceleration:!1},t.transformTemplate),$b(e,i)}})},aM={useVisualState:Eb({scrapeMotionValuesFromProps:qd,createRenderState:Vd})};function lM(t,e,n,i,r){var s=e.forwardMotionProps,o=s===void 0?!1:s,a=Md(t)?oM:aM;return L(L({},a),{preloadedFeatures:n,useRender:tM(o),createVisualElement:i,projectionNodeConstructor:r,Component:t})}var $e;(function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"})($e||($e={}));function tl(t,e,n,i){return i===void 0&&(i={passive:!0}),t.addEventListener(e,n,i),function(){return t.removeEventListener(e,n)}}function Yd(t,e,n,i){P.useEffect(function(){var r=t.current;if(n&&r)return tl(r,e,n,i)},[t,e,n,i])}function cM(t){var e=t.whileFocus,n=t.visualElement,i=function(){var s;(s=n.animationState)===null||s===void 0||s.setActive($e.Focus,!0)},r=function(){var s;(s=n.animationState)===null||s===void 0||s.setActive($e.Focus,!1)};Yd(n,"focus",e?i:void 0),Yd(n,"blur",e?r:void 0)}function jb(t){return typeof PointerEvent<"u"&&t instanceof PointerEvent?t.pointerType==="mouse":t instanceof MouseEvent}function Ab(t){var e=!!t.touches;return e}function uM(t){return function(e){var n=e instanceof MouseEvent,i=!n||n&&e.button===0;i&&t(e)}}var dM={pageX:0,pageY:0};function pM(t,e){e===void 0&&(e="page");var n=t.touches[0]||t.changedTouches[0],i=n||dM;return{x:i[e+"X"],y:i[e+"Y"]}}function fM(t,e){return e===void 0&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function Bd(t,e){return e===void 0&&(e="page"),{point:Ab(t)?pM(t,e):fM(t,e)}}var Db=function(t,e){e===void 0&&(e=!1);var n=function(i){return t(i,Bd(i))};return e?uM(n):n},hM=function(){return Sr&&window.onpointerdown===null},mM=function(){return Sr&&window.ontouchstart===null},gM=function(){return Sr&&window.onmousedown===null},vM={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},OM={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Mb(t){return hM()?t:mM()?OM[t]:gM()?vM[t]:t}function kr(t,e,n,i){return tl(t,Mb(e),Db(n,e==="pointerdown"),i)}function nl(t,e,n,i){return Yd(t,Mb(e),n&&Db(n,e==="pointerdown"),i)}function Rb(t){var e=null;return function(){var n=function(){e=null};return e===null?(e=t,n):!1}}var _b=Rb("dragHorizontal"),Ib=Rb("dragVertical");function Zb(t){var e=!1;if(t==="y")e=Ib();else if(t==="x")e=_b();else{var n=_b(),i=Ib();n&&i?e=function(){n(),i()}:(n&&n(),i&&i())}return e}function Nb(){var t=Zb(!0);return t?(t(),!1):!0}function Lb(t,e,n){return function(i,r){var s;!jb(i)||Nb()||((s=t.animationState)===null||s===void 0||s.setActive($e.Hover,e),n==null||n(i,r))}}function xM(t){var e=t.onHoverStart,n=t.onHoverEnd,i=t.whileHover,r=t.visualElement;nl(r,"pointerenter",e||i?Lb(r,!0,e):void 0,{passive:!e}),nl(r,"pointerleave",n||i?Lb(r,!1,n):void 0,{passive:!n})}var Xb=function(t,e){return e?t===e?!0:Xb(t,e.parentElement):!1};function Vb(t){return P.useEffect(function(){return function(){return t()}},[])}const il=(t,e,n)=>Math.min(Math.max(n,t),e),Ud=.001,bM=.01,Wb=10,yM=.05,wM=1;function SM({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let r,s;Is(t<=Wb*1e3,"Spring duration must be 10 seconds or less");let o=1-e;o=il(yM,wM,o),t=il(bM,Wb,t/1e3),o<1?(r=c=>{const u=c*o,d=u*t,p=u-n,f=Fd(c,o),h=Math.exp(-d);return Ud-p/f*h},s=c=>{const d=c*o*t,p=d*n+n,f=Math.pow(o,2)*Math.pow(c,2)*t,h=Math.exp(-d),m=Fd(Math.pow(c,2),o);return(-r(c)+Ud>0?-1:1)*((p-f)*h)/m}):(r=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-Ud+u*d},s=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=kM(r,s,a);if(t=t*1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:o*2*Math.sqrt(i*c),duration:t}}}const PM=12;function kM(t,e,n){let i=n;for(let r=1;r<PM;r++)i=i-t(i)/e(i);return i}function Fd(t,e){return t*Math.sqrt(1-e*e)}const $M=["duration","bounce"],TM=["stiffness","damping","mass"];function qb(t,e){return e.some(n=>t[n]!==void 0)}function QM(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!qb(t,TM)&&qb(t,$M)){const n=SM(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function Gd(t){var{from:e=0,to:n=1,restSpeed:i=2,restDelta:r}=t,s=Zt(t,["from","to","restSpeed","restDelta"]);const o={done:!1,value:e};let{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=QM(s),f=zb,h=zb;function m(){const g=u?-(u/1e3):0,O=n-e,v=l/(2*Math.sqrt(a*c)),x=Math.sqrt(a/c)/1e3;if(r===void 0&&(r=Math.min(Math.abs(n-e)/100,.4)),v<1){const b=Fd(x,v);f=w=>{const y=Math.exp(-v*x*w);return n-y*((g+v*x*O)/b*Math.sin(b*w)+O*Math.cos(b*w))},h=w=>{const y=Math.exp(-v*x*w);return v*x*y*(Math.sin(b*w)*(g+v*x*O)/b+O*Math.cos(b*w))-y*(Math.cos(b*w)*(g+v*x*O)-b*O*Math.sin(b*w))}}else if(v===1)f=b=>n-Math.exp(-x*b)*(O+(g+x*O)*b);else{const b=x*Math.sqrt(v*v-1);f=w=>{const y=Math.exp(-v*x*w),k=Math.min(b*w,300);return n-y*((g+v*x*O)*Math.sinh(k)+b*O*Math.cosh(k))/b}}}return m(),{next:g=>{const O=f(g);if(p)o.done=g>=d;else{const v=h(g)*1e3,x=Math.abs(v)<=i,b=Math.abs(n-O)<=r;o.done=x&&b}return o.value=o.done?n:O,o},flipTarget:()=>{u=-u,[e,n]=[n,e],m()}}}Gd.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const zb=t=>0,Bs=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Ae=(t,e,n)=>-n*t+n*e+t;function Hd(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Yb({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,s=0,o=0;if(!e)r=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=Hd(l,a,t+1/3),s=Hd(l,a,t),o=Hd(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}const CM=(t,e,n)=>{const i=t*t,r=e*e;return Math.sqrt(Math.max(0,n*(r-i)+i))},EM=[Nd,di,Wi],Bb=t=>EM.find(e=>e.test(t)),Ub=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,Fb=(t,e)=>{let n=Bb(t),i=Bb(e);Nt(!!n,Ub(t)),Nt(!!i,Ub(e));let r=n.parse(t),s=i.parse(e);n===Wi&&(r=Yb(r),n=di),i===Wi&&(s=Yb(s),i=di);const o=Object.assign({},r);return a=>{for(const l in o)l!=="alpha"&&(o[l]=CM(r[l],s[l],a));return o.alpha=Ae(r.alpha,s.alpha,a),n.transform(o)}},Jd=t=>typeof t=="number",jM=(t,e)=>n=>e(t(n)),rl=(...t)=>t.reduce(jM);function Gb(t,e){return Jd(t)?n=>Ae(t,e,n):ft.test(t)?Fb(t,e):Kb(t,e)}const Hb=(t,e)=>{const n=[...t],i=n.length,r=t.map((s,o)=>Gb(s,e[o]));return s=>{for(let o=0;o<i;o++)n[o]=r[o](s);return n}},AM=(t,e)=>{const n=Object.assign(Object.assign({},t),e),i={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(i[r]=Gb(t[r],e[r]));return r=>{for(const s in i)n[s]=i[s](r);return n}};function Jb(t){const e=Ln.parse(t),n=e.length;let i=0,r=0,s=0;for(let o=0;o<n;o++)i||typeof e[o]=="number"?i++:e[o].hue!==void 0?s++:r++;return{parsed:e,numNumbers:i,numRGB:r,numHSL:s}}const Kb=(t,e)=>{const n=Ln.createTransformer(e),i=Jb(t),r=Jb(e);return i.numHSL===r.numHSL&&i.numRGB===r.numRGB&&i.numNumbers>=r.numNumbers?rl(Hb(i.parsed,r.parsed),n):(Is(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?e:t}`)},DM=(t,e)=>n=>Ae(t,e,n);function MM(t){if(typeof t=="number")return DM;if(typeof t=="string")return ft.test(t)?Fb:Kb;if(Array.isArray(t))return Hb;if(typeof t=="object")return AM}function RM(t,e,n){const i=[],r=n||MM(t[0]),s=t.length-1;for(let o=0;o<s;o++){let a=r(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]:e;a=rl(l,a)}i.push(a)}return i}function _M([t,e],[n]){return i=>n(Bs(t,e,i))}function IM(t,e){const n=t.length,i=n-1;return r=>{let s=0,o=!1;if(r<=t[0]?o=!0:r>=t[i]&&(s=i-1,o=!0),!o){let l=1;for(;l<n&&!(t[l]>r||l===i);l++);s=l-1}const a=Bs(t[s],t[s+1],r);return e[s](a)}}function e0(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const s=t.length;Nt(s===e.length,"Both input and output ranges must be the same length"),Nt(!i||!Array.isArray(i)||i.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const o=RM(e,i,r),a=s===2?_M(t,o):IM(t,o);return n?l=>a(il(t[0],t[s-1],l)):a}const sl=t=>e=>1-t(1-e),Kd=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ZM=t=>e=>Math.pow(e,t),t0=t=>e=>e*e*((t+1)*e-t),NM=t=>{const e=t0(t);return n=>(n*=2)<1?.5*e(n):.5*(2-Math.pow(2,-10*(n-1)))},n0=1.525,LM=4/11,XM=8/11,VM=9/10,ep=t=>t,tp=ZM(2),WM=sl(tp),i0=Kd(tp),r0=t=>1-Math.sin(Math.acos(t)),np=sl(r0),qM=Kd(np),ip=t0(n0),zM=sl(ip),YM=Kd(ip),BM=NM(n0),UM=4356/361,FM=35442/1805,GM=16061/1805,ol=t=>{if(t===1||t===0)return t;const e=t*t;return t<LM?7.5625*e:t<XM?9.075*e-9.9*t+3.4:t<VM?UM*e-FM*t+GM:10.8*t*t-20.52*t+10.72},HM=sl(ol),JM=t=>t<.5?.5*(1-ol(1-t*2)):.5*ol(t*2-1)+.5;function KM(t,e){return t.map(()=>e||i0).splice(0,t.length-1)}function e5(t){const e=t.length;return t.map((n,i)=>i!==0?i/(e-1):0)}function t5(t,e){return t.map(n=>n*e)}function al({from:t=0,to:e=1,ease:n,offset:i,duration:r=300}){const s={done:!1,value:t},o=Array.isArray(e)?e:[t,e],a=t5(i&&i.length===o.length?i:e5(o),r);function l(){return e0(a,o,{ease:Array.isArray(n)?n:KM(o,n)})}let c=l();return{next:u=>(s.value=c(u),s.done=u>=r,s),flipTarget:()=>{o.reverse(),c=l()}}}function n5({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:r=.5,modifyTarget:s}){const o={done:!1,value:e};let a=n*t;const l=e+a,c=s===void 0?l:s(l);return c!==l&&(a=c-e),{next:u=>{const d=-a*Math.exp(-u/i);return o.done=!(d>r||d<-r),o.value=o.done?c:c+d,o},flipTarget:()=>{}}}const s0={keyframes:al,spring:Gd,decay:n5};function i5(t){if(Array.isArray(t.to))return al;if(s0[t.type])return s0[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?al:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Gd:al}const o0=1/60*1e3,r5=typeof performance<"u"?()=>performance.now():()=>Date.now(),a0=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(r5()),o0);function s5(t){let e=[],n=[],i=0,r=!1,s=!1;const o=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const d=u&&r,p=d?e:n;return c&&o.add(l),p.indexOf(l)===-1&&(p.push(l),d&&r&&(i=e.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),o.delete(l)},process:l=>{if(r){s=!0;return}if(r=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let c=0;c<i;c++){const u=e[c];u(l),o.has(u)&&(a.schedule(u),t())}r=!1,s&&(s=!1,a.process(l))}};return a}const o5=40;let rp=!0,Us=!1,sp=!1;const $r={delta:0,timestamp:0},Fs=["read","update","preRender","render","postRender"],ll=Fs.reduce((t,e)=>(t[e]=s5(()=>Us=!0),t),{}),$n=Fs.reduce((t,e)=>{const n=ll[e];return t[e]=(i,r=!1,s=!1)=>(Us||l5(),n.schedule(i,r,s)),t},{}),Tr=Fs.reduce((t,e)=>(t[e]=ll[e].cancel,t),{}),op=Fs.reduce((t,e)=>(t[e]=()=>ll[e].process($r),t),{}),a5=t=>ll[t].process($r),l0=t=>{Us=!1,$r.delta=rp?o0:Math.max(Math.min(t-$r.timestamp,o5),1),$r.timestamp=t,sp=!0,Fs.forEach(a5),sp=!1,Us&&(rp=!1,a0(l0))},l5=()=>{Us=!0,rp=!0,sp||a0(l0)},cl=()=>$r;function c0(t,e,n=0){return t-e-n}function c5(t,e,n=0,i=!0){return i?c0(e+-t,e,n):e-(t-e)+n}function u5(t,e,n,i){return i?t>=e+n:t<=-n}const d5=t=>{const e=({delta:n})=>t(n);return{start:()=>$n.update(e,!0),stop:()=>Tr.update(e)}};function u0(t){var e,n,{from:i,autoplay:r=!0,driver:s=d5,elapsed:o=0,repeat:a=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:f,onUpdate:h}=t,m=Zt(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:g}=m,O,v=0,x=m.duration,b,w=!1,y=!0,k;const T=i5(m);!((n=(e=T).needsInterpolation)===null||n===void 0)&&n.call(e,i,g)&&(k=e0([0,100],[i,g],{clamp:!1}),i=0,g=100);const E=T(Object.assign(Object.assign({},m),{from:i,to:g}));function C(){v++,l==="reverse"?(y=v%2===0,o=c5(o,x,c,y)):(o=c0(o,x,c),l==="mirror"&&E.flipTarget()),w=!1,f&&f()}function M(){O.stop(),p&&p()}function Z(N){if(y||(N=-N),o+=N,!w){const _=E.next(Math.max(0,o));b=_.value,k&&(b=k(b)),w=y?_.done:o<=0}h==null||h(b),w&&(v===0&&(x??(x=o)),v<a?u5(o,x,c,y)&&C():M())}function q(){u==null||u(),O=s(Z),O.start()}return r&&q(),{stop:()=>{d==null||d(),O.stop()}}}function d0(t,e){return e?t*(1e3/e):0}function p5({from:t=0,velocity:e=0,min:n,max:i,power:r=.8,timeConstant:s=750,bounceStiffness:o=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:f}){let h;function m(x){return n!==void 0&&x<n||i!==void 0&&x>i}function g(x){return n===void 0?i:i===void 0||Math.abs(n-x)<Math.abs(i-x)?n:i}function O(x){h==null||h.stop(),h=u0(Object.assign(Object.assign({},x),{driver:u,onUpdate:b=>{var w;d==null||d(b),(w=x.onUpdate)===null||w===void 0||w.call(x,b)},onComplete:p,onStop:f}))}function v(x){O(Object.assign({type:"spring",stiffness:o,damping:a,restDelta:l},x))}if(m(t))v({from:t,velocity:e,to:g(t)});else{let x=r*e+t;typeof c<"u"&&(x=c(x));const b=g(x),w=b===n?-1:1;let y,k;const T=E=>{y=k,k=E,e=d0(E-y,cl().delta),(w===1&&E>b||w===-1&&E<b)&&v({from:E,to:b,velocity:e})};O({type:"decay",from:t,velocity:e,timeConstant:s,power:r,restDelta:l,modifyTarget:c,onUpdate:m(x)?T:void 0})}return{stop:()=>h==null?void 0:h.stop()}}const ap=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),p0=t=>ap(t)&&t.hasOwnProperty("z"),ul=(t,e)=>Math.abs(t-e);function f0(t,e){if(Jd(t)&&Jd(e))return ul(t,e);if(ap(t)&&ap(e)){const n=ul(t.x,e.x),i=ul(t.y,e.y),r=p0(t)&&p0(e)?ul(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(r,2))}}const h0=(t,e)=>1-3*e+3*t,m0=(t,e)=>3*e-6*t,g0=t=>3*t,dl=(t,e,n)=>((h0(e,n)*t+m0(e,n))*t+g0(e))*t,v0=(t,e,n)=>3*h0(e,n)*t*t+2*m0(e,n)*t+g0(e),f5=1e-7,h5=10;function m5(t,e,n,i,r){let s,o,a=0;do o=e+(n-e)/2,s=dl(o,i,r)-t,s>0?n=o:e=o;while(Math.abs(s)>f5&&++a<h5);return o}const g5=8,v5=.001;function O5(t,e,n,i){for(let r=0;r<g5;++r){const s=v0(e,n,i);if(s===0)return e;const o=dl(e,n,i)-t;e-=o/s}return e}const pl=11,fl=1/(pl-1);function x5(t,e,n,i){if(t===e&&n===i)return ep;const r=new Float32Array(pl);for(let o=0;o<pl;++o)r[o]=dl(o*fl,t,n);function s(o){let a=0,l=1;const c=pl-1;for(;l!==c&&r[l]<=o;++l)a+=fl;--l;const u=(o-r[l])/(r[l+1]-r[l]),d=a+u*fl,p=v0(d,t,n);return p>=v5?O5(o,d,t,n):p===0?d:m5(o,a,a+fl,t,n)}return o=>o===0||o===1?o:dl(s(o),e,i)}function b5(t){var e=t.onTap,n=t.onTapStart,i=t.onTapCancel,r=t.whileTap,s=t.visualElement,o=e||n||i||r,a=P.useRef(!1),l=P.useRef(null),c={passive:!(n||e||i||h)};function u(){var m;(m=l.current)===null||m===void 0||m.call(l),l.current=null}function d(){var m;return u(),a.current=!1,(m=s.animationState)===null||m===void 0||m.setActive($e.Tap,!1),!Nb()}function p(m,g){d()&&(Xb(s.getInstance(),m.target)?e==null||e(m,g):i==null||i(m,g))}function f(m,g){d()&&(i==null||i(m,g))}function h(m,g){var O;u(),!a.current&&(a.current=!0,l.current=rl(kr(window,"pointerup",p,c),kr(window,"pointercancel",f,c)),(O=s.animationState)===null||O===void 0||O.setActive($e.Tap,!0),n==null||n(m,g))}nl(s,"pointerdown",o?h:void 0,c),Vb(u)}var O0=new Set;function x0(t,e,n){t||O0.has(e)||(console.warn(e),n&&console.warn(n),O0.add(e))}var lp=new WeakMap,cp=new WeakMap,y5=function(t){var e;(e=lp.get(t.target))===null||e===void 0||e(t)},w5=function(t){t.forEach(y5)};function S5(t){var e=t.root,n=Zt(t,["root"]),i=e||document;cp.has(i)||cp.set(i,{});var r=cp.get(i),s=JSON.stringify(n);return r[s]||(r[s]=new IntersectionObserver(w5,L({root:e},n))),r[s]}function P5(t,e,n){var i=S5(e);return lp.set(t,n),i.observe(t),function(){lp.delete(t),i.unobserve(t)}}function k5(t){var e=t.visualElement,n=t.whileInView,i=t.onViewportEnter,r=t.onViewportLeave,s=t.viewport,o=s===void 0?{}:s,a=P.useRef({hasEnteredView:!1,isInView:!1}),l=!!(n||i||r);o.once&&a.current.hasEnteredView&&(l=!1);var c=typeof IntersectionObserver>"u"?Q5:T5;c(l,a.current,e,o)}var $5={some:0,all:1};function T5(t,e,n,i){var r=i.root,s=i.margin,o=i.amount,a=o===void 0?"some":o,l=i.once;P.useEffect(function(){if(t){var c={root:r==null?void 0:r.current,rootMargin:s,threshold:typeof a=="number"?a:$5[a]},u=function(d){var p,f=d.isIntersecting;if(e.isInView!==f&&(e.isInView=f,!(l&&!f&&e.hasEnteredView))){f&&(e.hasEnteredView=!0),(p=n.animationState)===null||p===void 0||p.setActive($e.InView,f);var h=n.getProps(),m=f?h.onViewportEnter:h.onViewportLeave;m==null||m(d)}};return P5(n.getInstance(),c,u)}},[t,r,s,a])}function Q5(t,e,n,i){var r=i.fallback,s=r===void 0?!0:r;P.useEffect(function(){!t||!s||(Fx!=="production"&&x0(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var o;e.hasEnteredView=!0;var a=n.getProps().onViewportEnter;a==null||a(null),(o=n.animationState)===null||o===void 0||o.setActive($e.InView,!0)}))},[t])}var pi=function(t){return function(e){return t(e),null}},C5={inView:pi(k5),tap:pi(b5),focus:pi(cM),hover:pi(xM)},E5=0,j5=function(){return E5++},A5=function(){return Ga(j5)};function b0(){var t=P.useContext(Ba);if(t===null)return[!0,null];var e=t.isPresent,n=t.onExitComplete,i=t.register,r=A5();P.useEffect(function(){return i(r)},[]);var s=function(){return n==null?void 0:n(r)};return!e&&n?[!1,s]:[!0]}function y0(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var hl=function(t){return t*1e3},w0={linear:ep,easeIn:tp,easeInOut:i0,easeOut:WM,circIn:r0,circInOut:qM,circOut:np,backIn:ip,backInOut:YM,backOut:zM,anticipate:BM,bounceIn:HM,bounceInOut:JM,bounceOut:ol},S0=function(t){if(Array.isArray(t)){Nt(t.length===4,"Cubic bezier arrays must contain four numerical values.");var e=Be(t,4),n=e[0],i=e[1],r=e[2],s=e[3];return x5(n,i,r,s)}else if(typeof t=="string")return Nt(w0[t]!==void 0,"Invalid easing type '".concat(t,"'")),w0[t];return t},D5=function(t){return Array.isArray(t)&&typeof t[0]!="number"},P0=function(t,e){return t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&Ln.test(e)&&!e.startsWith("url("))},qi=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},ml=function(t){return{type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}},up=function(){return{type:"keyframes",ease:"linear",duration:.3}},M5=function(t){return{type:"keyframes",duration:.8,values:t}},k0={x:qi,y:qi,z:qi,rotate:qi,rotateX:qi,rotateY:qi,rotateZ:qi,scaleX:ml,scaleY:ml,scale:ml,opacity:up,backgroundColor:up,color:up,default:ml},R5=function(t,e){var n;return Ys(e)?n=M5:n=k0[t]||k0.default,L({to:e},n(e))},_5=L(L({},Ob),{color:ft,backgroundColor:ft,outlineColor:ft,fill:ft,stroke:ft,borderColor:ft,borderTopColor:ft,borderRightColor:ft,borderBottomColor:ft,borderLeftColor:ft,filter:Ld,WebkitFilter:Ld}),dp=function(t){return _5[t]};function pp(t,e){var n,i=dp(t);return i!==Ld&&(i=Ln),(n=i.getAnimatableNone)===null||n===void 0?void 0:n.call(i,e)}function I5(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=Zt(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}var $0=!1;function Z5(t){var e=t.ease,n=t.times,i=t.yoyo,r=t.flip,s=t.loop,o=Zt(t,["ease","times","yoyo","flip","loop"]),a=L({},o);return n&&(a.offset=n),o.duration&&(a.duration=hl(o.duration)),o.repeatDelay&&(a.repeatDelay=hl(o.repeatDelay)),e&&(a.ease=D5(e)?e.map(S0):S0(e)),o.type==="tween"&&(a.type="keyframes"),(i||s||r)&&(Is(!$0,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),$0=!0,i?a.repeatType="reverse":s?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=s||i||r||o.repeat),o.type!=="spring"&&(a.type="keyframes"),a}function N5(t,e){var n,i,r=fp(t,e)||{};return(i=(n=r.delay)!==null&&n!==void 0?n:t.delay)!==null&&i!==void 0?i:0}function L5(t){return Array.isArray(t.to)&&t.to[0]===null&&(t.to=Pn([],Be(t.to),!1),t.to[0]=t.from),t}function X5(t,e,n){var i;return Array.isArray(e.to)&&((i=t.duration)!==null&&i!==void 0||(t.duration=.8)),L5(e),I5(t)||(t=L(L({},t),R5(n,e.to))),L(L({},e),Z5(t))}function V5(t,e,n,i,r){var s,o=fp(i,t),a=(s=o.from)!==null&&s!==void 0?s:e.get(),l=P0(t,n);a==="none"&&l&&typeof n=="string"?a=pp(t,n):T0(a)&&typeof n=="string"?a=Q0(n):!Array.isArray(n)&&T0(n)&&typeof a=="string"&&(n=Q0(a));var c=P0(t,a);Is(c===l,"You are trying to animate ".concat(t,' from "').concat(a,'" to "').concat(n,'". ').concat(a," is not an animatable value - to enable this animation set ").concat(a," to a value animatable to ").concat(n," via the `style` property."));function u(){var p={from:a,to:n,velocity:e.getVelocity(),onComplete:r,onUpdate:function(f){return e.set(f)}};return o.type==="inertia"||o.type==="decay"?p5(L(L({},p),o)):u0(L(L({},X5(o,p,t)),{onUpdate:function(f){var h;p.onUpdate(f),(h=o.onUpdate)===null||h===void 0||h.call(o,f)},onComplete:function(){var f;p.onComplete(),(f=o.onComplete)===null||f===void 0||f.call(o)}}))}function d(){var p,f,h=Qb(n);return e.set(h),r(),(p=o==null?void 0:o.onUpdate)===null||p===void 0||p.call(o,h),(f=o==null?void 0:o.onComplete)===null||f===void 0||f.call(o),{stop:function(){}}}return!c||!l||o.type===!1?d:u}function T0(t){return t===0||typeof t=="string"&&parseFloat(t)===0&&t.indexOf(" ")===-1}function Q0(t){return typeof t=="number"?0:pp("",t)}function fp(t,e){return t[e]||t.default||t}function hp(t,e,n,i){return i===void 0&&(i={}),e.start(function(r){var s,o,a=V5(t,e,n,i,r),l=N5(i,t),c=function(){return o=a()};return l?s=window.setTimeout(c,hl(l)):c(),function(){clearTimeout(s),o==null||o.stop()}})}var W5=function(t){return/^\-?\d*\.?\d+$/.test(t)},q5=function(t){return/^0[^.\s]+$/.test(t)};function mp(t,e){t.indexOf(e)===-1&&t.push(e)}function gp(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Gs=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(e){var n=this;return mp(this.subscriptions,e),function(){return gp(n.subscriptions,e)}},t.prototype.notify=function(e,n,i){var r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,i);else for(var s=0;s<r;s++){var o=this.subscriptions[s];o&&o(e,n,i)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),z5=function(t){return!isNaN(parseFloat(t))},Y5=function(){function t(e){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Gs,this.velocityUpdateSubscribers=new Gs,this.renderSubscribers=new Gs,this.canTrackVelocity=!1,this.updateAndNotify=function(i,r){r===void 0&&(r=!0),n.prev=n.current,n.current=i;var s=cl(),o=s.delta,a=s.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,$n.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),r&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return $n.postRender(n.velocityCheck)},this.velocityCheck=function(i){var r=i.timestamp;r!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=z5(this.current)}return t.prototype.onChange=function(e){return this.updateSubscribers.add(e)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},t.prototype.attach=function(e){this.passiveEffect=e},t.prototype.set=function(e,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?d0(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(e){var n=this;return this.stop(),new Promise(function(i){n.hasAnimated=!0,n.stopAnimation=e(i)}).then(function(){return n.clearAnimation()})},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function Qr(t){return new Y5(t)}var C0=function(t){return function(e){return e.test(t)}},B5={test:function(t){return t==="auto"},parse:function(t){return t}},E0=[Vi,ie,kn,ui,RD,MD,B5],Hs=function(t){return E0.find(C0(t))},U5=Pn(Pn([],Be(E0),!1),[ft,Ln],!1),F5=function(t){return U5.find(C0(t))};function G5(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Qr(n))}function H5(t,e){var n=Ua(t,e),i=n?t.makeTargetAnimatable(n,!1):{},r=i.transitionEnd,s=r===void 0?{}:r;i.transition;var o=Zt(i,["transitionEnd","transition"]);o=L(L({},o),s);for(var a in o){var l=Qb(o[a]);G5(t,a,l)}}function J5(t,e,n){var i,r,s,o,a=Object.keys(e).filter(function(f){return!t.hasValue(f)}),l=a.length;if(l)for(var c=0;c<l;c++){var u=a[c],d=e[u],p=null;Array.isArray(d)&&(p=d[0]),p===null&&(p=(r=(i=n[u])!==null&&i!==void 0?i:t.readValue(u))!==null&&r!==void 0?r:e[u]),p!=null&&(typeof p=="string"&&(W5(p)||q5(p))?p=parseFloat(p):!F5(p)&&Ln.test(d)&&(p=pp(u,d)),t.addValue(u,Qr(p)),(s=(o=n)[u])!==null&&s!==void 0||(o[u]=p),t.setBaseTarget(u,p))}}function K5(t,e){if(e){var n=e[t]||e.default||e;return n.from}}function eR(t,e,n){var i,r,s={};for(var o in t)s[o]=(i=K5(o,e))!==null&&i!==void 0?i:(r=n.getValue(o))===null||r===void 0?void 0:r.get();return s}function tR(t,e,n){n===void 0&&(n={}),t.notifyAnimationStart(e);var i;if(Array.isArray(e)){var r=e.map(function(o){return vp(t,o,n)});i=Promise.all(r)}else if(typeof e=="string")i=vp(t,e,n);else{var s=typeof e=="function"?Ua(t,e,n.custom):e;i=j0(t,s,n)}return i.then(function(){return t.notifyAnimationComplete(e)})}function vp(t,e,n){var i;n===void 0&&(n={});var r=Ua(t,e,n.custom),s=(r||{}).transition,o=s===void 0?t.getDefaultTransition()||{}:s;n.transitionOverride&&(o=n.transitionOverride);var a=r?function(){return j0(t,r,n)}:function(){return Promise.resolve()},l=!((i=t.variantChildren)===null||i===void 0)&&i.size?function(f){f===void 0&&(f=0);var h=o.delayChildren,m=h===void 0?0:h,g=o.staggerChildren,O=o.staggerDirection;return nR(t,e,m+f,g,O,n)}:function(){return Promise.resolve()},c=o.when;if(c){var u=Be(c==="beforeChildren"?[a,l]:[l,a],2),d=u[0],p=u[1];return d().then(p)}else return Promise.all([a(),l(n.delay)])}function j0(t,e,n){var i,r=n===void 0?{}:n,s=r.delay,o=s===void 0?0:s,a=r.transitionOverride,l=r.type,c=t.makeTargetAnimatable(e),u=c.transition,d=u===void 0?t.getDefaultTransition():u,p=c.transitionEnd,f=Zt(c,["transition","transitionEnd"]);a&&(d=a);var h=[],m=l&&((i=t.animationState)===null||i===void 0?void 0:i.getState()[l]);for(var g in f){var O=t.getValue(g),v=f[g];if(!(!O||v===void 0||m&&rR(m,g))){var x=L({delay:o},d);t.shouldReduceMotion&&Ls(g)&&(x=L(L({},x),{type:!1,delay:0}));var b=hp(g,O,v,x);h.push(b)}}return Promise.all(h).then(function(){p&&H5(t,p)})}function nR(t,e,n,i,r,s){n===void 0&&(n=0),i===void 0&&(i=0),r===void 0&&(r=1);var o=[],a=(t.variantChildren.size-1)*i,l=r===1?function(c){return c===void 0&&(c=0),c*i}:function(c){return c===void 0&&(c=0),a-c*i};return Array.from(t.variantChildren).sort(iR).forEach(function(c,u){o.push(vp(c,e,L(L({},s),{delay:n+l(u)})).then(function(){return c.notifyAnimationComplete(e)}))}),Promise.all(o)}function iR(t,e){return t.sortNodePosition(e)}function rR(t,e){var n=t.protectedKeys,i=t.needsAnimating,r=n.hasOwnProperty(e)&&i[e]!==!0;return i[e]=!1,r}var Op=[$e.Animate,$e.InView,$e.Focus,$e.Hover,$e.Tap,$e.Drag,$e.Exit],sR=Pn([],Be(Op),!1).reverse(),oR=Op.length;function aR(t){return function(e){return Promise.all(e.map(function(n){var i=n.animation,r=n.options;return tR(t,i,r)}))}}function lR(t){var e=aR(t),n=uR(),i={},r=!0,s=function(u,d){var p=Ua(t,d);if(p){p.transition;var f=p.transitionEnd,h=Zt(p,["transition","transitionEnd"]);u=L(L(L({},u),h),f)}return u};function o(u){return i[u]!==void 0}function a(u){e=u(t)}function l(u,d){for(var p,f=t.getProps(),h=t.getVariantContext(!0)||{},m=[],g=new Set,O={},v=1/0,x=function(k){var T=sR[k],E=n[T],C=(p=f[T])!==null&&p!==void 0?p:h[T],M=nn(C),Z=T===d?E.isActive:null;Z===!1&&(v=k);var q=C===h[T]&&C!==f[T]&&M;if(q&&r&&t.manuallyAnimateOnMount&&(q=!1),E.protectedKeys=L({},O),!E.isActive&&Z===null||!C&&!E.prevProp||zd(C)||typeof C=="boolean")return"continue";var N=cR(E.prevProp,C),_=N||T===d&&E.isActive&&!q&&M||k>v&&M,G=Array.isArray(C)?C:[C],ee=G.reduce(s,{});Z===!1&&(ee={});var le=E.prevResolvedValues,he=le===void 0?{}:le,B=L(L({},he),ee),A=function(W){_=!0,g.delete(W),E.needsAnimating[W]=!0};for(var V in B){var X=ee[V],D=he[V];O.hasOwnProperty(V)||(X!==D?Ys(X)&&Ys(D)?!y0(X,D)||N?A(V):E.protectedKeys[V]=!0:X!==void 0?A(V):g.add(V):X!==void 0&&g.has(V)?A(V):E.protectedKeys[V]=!0)}E.prevProp=C,E.prevResolvedValues=ee,E.isActive&&(O=L(L({},O),ee)),r&&t.blockInitialAnimation&&(_=!1),_&&!q&&m.push.apply(m,Pn([],Be(G.map(function(W){return{animation:W,options:L({type:T},u)}})),!1))},b=0;b<oR;b++)x(b);if(i=L({},O),g.size){var w={};g.forEach(function(k){var T=t.getBaseTarget(k);T!==void 0&&(w[k]=T)}),m.push({animation:w})}var y=!!m.length;return r&&f.initial===!1&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(m):Promise.resolve()}function c(u,d,p){var f;if(n[u].isActive===d)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(function(g){var O;return(O=g.animationState)===null||O===void 0?void 0:O.setActive(u,d)}),n[u].isActive=d;var h=l(p,u);for(var m in n)n[m].protectedKeys={};return h}return{isAnimated:o,animateChanges:l,setActive:c,setAnimateFunction:a,getState:function(){return n}}}function cR(t,e){return typeof e=="string"?e!==t:eb(e)?!y0(e,t):!1}function zi(t){return t===void 0&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uR(){var t;return t={},t[$e.Animate]=zi(!0),t[$e.InView]=zi(),t[$e.Hover]=zi(),t[$e.Tap]=zi(),t[$e.Drag]=zi(),t[$e.Focus]=zi(),t[$e.Exit]=zi(),t}var dR={animation:pi(function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=lR(e)),zd(n)&&P.useEffect(function(){return n.subscribe(e)},[n])}),exit:pi(function(t){var e=t.custom,n=t.visualElement,i=Be(b0(),2),r=i[0],s=i[1],o=P.useContext(Ba);P.useEffect(function(){var a,l;n.isPresent=r;var c=(a=n.animationState)===null||a===void 0?void 0:a.setActive($e.Exit,!r,{custom:(l=o==null?void 0:o.custom)!==null&&l!==void 0?l:e});!r&&(c==null||c.then(s))},[r])})},A0=function(){function t(e,n,i){var r=this,s=i===void 0?{}:i,o=s.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var p=bp(r.lastMoveEventInfo,r.history),f=r.startEvent!==null,h=f0(p.offset,{x:0,y:0})>=3;if(!(!f&&!h)){var m=p.point,g=cl().timestamp;r.history.push(L(L({},m),{timestamp:g}));var O=r.handlers,v=O.onStart,x=O.onMove;f||(v&&v(r.lastMoveEvent,p),r.startEvent=r.lastMoveEvent),x&&x(r.lastMoveEvent,p)}}},this.handlePointerMove=function(p,f){if(r.lastMoveEvent=p,r.lastMoveEventInfo=xp(f,r.transformPagePoint),jb(p)&&p.buttons===0){r.handlePointerUp(p,f);return}$n.update(r.updatePoint,!0)},this.handlePointerUp=function(p,f){r.end();var h=r.handlers,m=h.onEnd,g=h.onSessionEnd,O=bp(xp(f,r.transformPagePoint),r.history);r.startEvent&&m&&m(p,O),g&&g(p,O)},!(Ab(e)&&e.touches.length>1)){this.handlers=n,this.transformPagePoint=o;var a=Bd(e),l=xp(a,this.transformPagePoint),c=l.point,u=cl().timestamp;this.history=[L(L({},c),{timestamp:u})];var d=n.onSessionStart;d&&d(e,bp(l,this.history)),this.removeListeners=rl(kr(window,"pointermove",this.handlePointerMove),kr(window,"pointerup",this.handlePointerUp),kr(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(e){this.handlers=e},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),Tr.update(this.updatePoint)},t}();function xp(t,e){return e?{point:e(t.point)}:t}function D0(t,e){return{x:t.x-e.x,y:t.y-e.y}}function bp(t,e){var n=t.point;return{point:n,delta:D0(n,M0(e)),offset:D0(n,pR(e)),velocity:fR(e,.1)}}function pR(t){return t[0]}function M0(t){return t[t.length-1]}function fR(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,i=null,r=M0(t);n>=0&&(i=t[n],!(r.timestamp-i.timestamp>hl(e)));)n--;if(!i)return{x:0,y:0};var s=(r.timestamp-i.timestamp)/1e3;if(s===0)return{x:0,y:0};var o={x:(r.x-i.x)/s,y:(r.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Xn(t){return t.max-t.min}function R0(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=.01),f0(t,e)<n}function _0(t,e,n,i){i===void 0&&(i=.5),t.origin=i,t.originPoint=Ae(e.min,e.max,t.origin),t.scale=Xn(n)/Xn(e),(R0(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Ae(n.min,n.max,t.origin)-t.originPoint,(R0(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Js(t,e,n,i){_0(t.x,e.x,n.x,i==null?void 0:i.originX),_0(t.y,e.y,n.y,i==null?void 0:i.originY)}function I0(t,e,n){t.min=n.min+e.min,t.max=t.min+Xn(e)}function hR(t,e,n){I0(t.x,e.x,n.x),I0(t.y,e.y,n.y)}function Z0(t,e,n){t.min=e.min-n.min,t.max=t.min+Xn(e)}function Ks(t,e,n){Z0(t.x,e.x,n.x),Z0(t.y,e.y,n.y)}function mR(t,e,n){var i=e.min,r=e.max;return i!==void 0&&t<i?t=n?Ae(i,t,n.min):Math.max(t,i):r!==void 0&&t>r&&(t=n?Ae(r,t,n.max):Math.min(t,r)),t}function N0(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function gR(t,e){var n=e.top,i=e.left,r=e.bottom,s=e.right;return{x:N0(t.x,i,s),y:N0(t.y,n,r)}}function L0(t,e){var n,i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&(n=Be([r,i],2),i=n[0],r=n[1]),{min:i,max:r}}function vR(t,e){return{x:L0(t.x,e.x),y:L0(t.y,e.y)}}function OR(t,e){var n=.5,i=Xn(t),r=Xn(e);return r>i?n=Bs(e.min,e.max-i,t.min):i>r&&(n=Bs(t.min,t.max-r,e.min)),il(0,1,n)}function xR(t,e){var n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}var yp=.35;function bR(t){return t===void 0&&(t=yp),t===!1?t=0:t===!0&&(t=yp),{x:X0(t,"left","right"),y:X0(t,"top","bottom")}}function X0(t,e,n){return{min:V0(t,e),max:V0(t,n)}}function V0(t,e){var n;return typeof t=="number"?t:(n=t[e])!==null&&n!==void 0?n:0}var W0=function(){return{translate:0,scale:1,origin:0,originPoint:0}},eo=function(){return{x:W0(),y:W0()}},q0=function(){return{min:0,max:0}},ot=function(){return{x:q0(),y:q0()}};function Tn(t){return[t("x"),t("y")]}function z0(t){var e=t.top,n=t.left,i=t.right,r=t.bottom;return{x:{min:n,max:i},y:{min:e,max:r}}}function yR(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function wR(t,e){if(!e)return t;var n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function wp(t){return t===void 0||t===1}function Y0(t){var e=t.scale,n=t.scaleX,i=t.scaleY;return!wp(e)||!wp(n)||!wp(i)}function fi(t){return Y0(t)||B0(t.x)||B0(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function B0(t){return t&&t!=="0%"}function gl(t,e,n){var i=t-n,r=e*i;return n+r}function U0(t,e,n,i,r){return r!==void 0&&(t=gl(t,r,i)),gl(t,n,i)+e}function Sp(t,e,n,i,r){e===void 0&&(e=0),n===void 0&&(n=1),t.min=U0(t.min,e,n,i,r),t.max=U0(t.max,e,n,i,r)}function F0(t,e){var n=e.x,i=e.y;Sp(t.x,n.translate,n.scale,n.originPoint),Sp(t.y,i.translate,i.scale,i.originPoint)}function SR(t,e,n,i){var r,s;i===void 0&&(i=!1);var o=n.length;if(o){e.x=e.y=1;for(var a,l,c=0;c<o;c++)a=n[c],l=a.projectionDelta,((s=(r=a.instance)===null||r===void 0?void 0:r.style)===null||s===void 0?void 0:s.display)!=="contents"&&(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Cr(t,{x:-a.scroll.x,y:-a.scroll.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,F0(t,l)),i&&fi(a.latestValues)&&Cr(t,a.latestValues))}}function hi(t,e){t.min=t.min+e,t.max=t.max+e}function G0(t,e,n){var i=Be(n,3),r=i[0],s=i[1],o=i[2],a=e[o]!==void 0?e[o]:.5,l=Ae(t.min,t.max,a);Sp(t,e[r],e[s],l,e.scale)}var PR=["x","scaleX","originX"],kR=["y","scaleY","originY"];function Cr(t,e){G0(t.x,e,PR),G0(t.y,e,kR)}function H0(t,e){return z0(wR(t.getBoundingClientRect(),e))}function $R(t,e,n){var i=H0(t,n),r=e.scroll;return r&&(hi(i.x,r.x),hi(i.y,r.y)),i}var TR=new WeakMap,QR=function(){function t(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ot(),this.visualElement=e}return t.prototype.start=function(e,n){var i=this,r=n===void 0?{}:n,s=r.snapToCursor,o=s===void 0?!1:s;if(this.visualElement.isPresent!==!1){var a=function(d){i.stopAnimation(),o&&i.snapToCursor(Bd(d,"page").point)},l=function(d,p){var f,h=i.getProps(),m=h.drag,g=h.dragPropagation,O=h.onDragStart;m&&!g&&(i.openGlobalLock&&i.openGlobalLock(),i.openGlobalLock=Zb(m),!i.openGlobalLock)||(i.isDragging=!0,i.currentDirection=null,i.resolveConstraints(),i.visualElement.projection&&(i.visualElement.projection.isAnimationBlocked=!0,i.visualElement.projection.target=void 0),Tn(function(v){var x,b,w=i.getAxisMotionValue(v).get()||0;if(kn.test(w)){var y=(b=(x=i.visualElement.projection)===null||x===void 0?void 0:x.layout)===null||b===void 0?void 0:b.actual[v];if(y){var k=Xn(y);w=k*(parseFloat(w)/100)}}i.originPoint[v]=w}),O==null||O(d,p),(f=i.visualElement.animationState)===null||f===void 0||f.setActive($e.Drag,!0))},c=function(d,p){var f=i.getProps(),h=f.dragPropagation,m=f.dragDirectionLock,g=f.onDirectionLock,O=f.onDrag;if(!(!h&&!i.openGlobalLock)){var v=p.offset;if(m&&i.currentDirection===null){i.currentDirection=CR(v),i.currentDirection!==null&&(g==null||g(i.currentDirection));return}i.updateAxis("x",p.point,v),i.updateAxis("y",p.point,v),i.visualElement.syncRender(),O==null||O(d,p)}},u=function(d,p){return i.stop(d,p)};this.panSession=new A0(e,{onSessionStart:a,onStart:l,onMove:c,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(e,n){var i=this.isDragging;if(this.cancel(),!!i){var r=n.velocity;this.startAnimation(r);var s=this.getProps().onDragEnd;s==null||s(e,n)}},t.prototype.cancel=function(){var e,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(e=this.panSession)===null||e===void 0||e.end(),this.panSession=void 0;var i=this.getProps().dragPropagation;!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive($e.Drag,!1)},t.prototype.updateAxis=function(e,n,i){var r=this.getProps().drag;if(!(!i||!vl(e,r,this.currentDirection))){var s=this.getAxisMotionValue(e),o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=mR(o,this.constraints[e],this.elastic[e])),s.set(o)}},t.prototype.resolveConstraints=function(){var e=this,n=this.getProps(),i=n.dragConstraints,r=n.dragElastic,s=(this.visualElement.projection||{}).layout,o=this.constraints;i&&Pr(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&s?this.constraints=gR(s.actual,i):this.constraints=!1,this.elastic=bR(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Tn(function(a){e.getAxisMotionValue(a)&&(e.constraints[a]=xR(s.actual[a],e.constraints[a]))})},t.prototype.resolveRefConstraints=function(){var e=this.getProps(),n=e.dragConstraints,i=e.onMeasureDragConstraints;if(!n||!Pr(n))return!1;var r=n.current;Nt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var s=this.visualElement.projection;if(!s||!s.layout)return!1;var o=$R(r,s.root,this.visualElement.getTransformPagePoint()),a=vR(s.layout.actual,o);if(i){var l=i(yR(a));this.hasMutatedConstraints=!!l,l&&(a=z0(l))}return a},t.prototype.startAnimation=function(e){var n=this,i=this.getProps(),r=i.drag,s=i.dragMomentum,o=i.dragElastic,a=i.dragTransition,l=i.dragSnapToOrigin,c=i.onDragTransitionEnd,u=this.constraints||{},d=Tn(function(p){var f;if(vl(p,r,n.currentDirection)){var h=(f=u==null?void 0:u[p])!==null&&f!==void 0?f:{};l&&(h={min:0,max:0});var m=o?200:1e6,g=o?40:1e7,O=L(L({type:"inertia",velocity:s?e[p]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10},a),h);return n.startAxisValueAnimation(p,O)}});return Promise.all(d).then(c)},t.prototype.startAxisValueAnimation=function(e,n){var i=this.getAxisMotionValue(e);return hp(e,i,0,n)},t.prototype.stopAnimation=function(){var e=this;Tn(function(n){return e.getAxisMotionValue(n).stop()})},t.prototype.getAxisMotionValue=function(e){var n,i,r="_drag"+e.toUpperCase(),s=this.visualElement.getProps()[r];return s||this.visualElement.getValue(e,(i=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[e])!==null&&i!==void 0?i:0)},t.prototype.snapToCursor=function(e){var n=this;Tn(function(i){var r=n.getProps().drag;if(vl(i,r,n.currentDirection)){var s=n.visualElement.projection,o=n.getAxisMotionValue(i);if(s&&s.layout){var a=s.layout.actual[i],l=a.min,c=a.max;o.set(e[i]-Ae(l,c,.5))}}})},t.prototype.scalePositionWithinConstraints=function(){var e=this,n,i=this.getProps(),r=i.drag,s=i.dragConstraints,o=this.visualElement.projection;if(!(!Pr(s)||!o||!this.constraints)){this.stopAnimation();var a={x:0,y:0};Tn(function(c){var u=e.getAxisMotionValue(c);if(u){var d=u.get();a[c]=OR({min:d,max:d},e.constraints[c])}});var l=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=l?l({},""):"none",(n=o.root)===null||n===void 0||n.updateScroll(),o.updateLayout(),this.resolveConstraints(),Tn(function(c){if(vl(c,r,null)){var u=e.getAxisMotionValue(c),d=e.constraints[c],p=d.min,f=d.max;u.set(Ae(p,f,a[c]))}})}},t.prototype.addListeners=function(){var e=this,n;TR.set(this.visualElement,this);var i=this.visualElement.getInstance(),r=kr(i,"pointerdown",function(c){var u=e.getProps(),d=u.drag,p=u.dragListener,f=p===void 0?!0:p;d&&f&&e.start(c)}),s=function(){var c=e.getProps().dragConstraints;Pr(c)&&(e.constraints=e.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",s);o&&!o.layout&&((n=o.root)===null||n===void 0||n.updateScroll(),o.updateLayout()),s();var l=tl(window,"resize",function(){return e.scalePositionWithinConstraints()});return o.addEventListener("didUpdate",function(c){var u=c.delta,d=c.hasLayoutChanged;e.isDragging&&d&&(Tn(function(p){var f=e.getAxisMotionValue(p);f&&(e.originPoint[p]+=u[p].translate,f.set(f.get()+u[p].translate))}),e.visualElement.syncRender())}),function(){l(),r(),a()}},t.prototype.getProps=function(){var e=this.visualElement.getProps(),n=e.drag,i=n===void 0?!1:n,r=e.dragDirectionLock,s=r===void 0?!1:r,o=e.dragPropagation,a=o===void 0?!1:o,l=e.dragConstraints,c=l===void 0?!1:l,u=e.dragElastic,d=u===void 0?yp:u,p=e.dragMomentum,f=p===void 0?!0:p;return L(L({},e),{drag:i,dragDirectionLock:s,dragPropagation:a,dragConstraints:c,dragElastic:d,dragMomentum:f})},t}();function vl(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function CR(t,e){e===void 0&&(e=10);var n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}function ER(t){var e=t.dragControls,n=t.visualElement,i=Ga(function(){return new QR(n)});P.useEffect(function(){return e&&e.subscribe(i)},[i,e]),P.useEffect(function(){return i.addListeners()},[i])}function jR(t){var e=t.onPan,n=t.onPanStart,i=t.onPanEnd,r=t.onPanSessionStart,s=t.visualElement,o=e||n||i||r,a=P.useRef(null),l=P.useContext(Ad).transformPagePoint,c={onSessionStart:r,onStart:n,onMove:e,onEnd:function(d,p){a.current=null,i&&i(d,p)}};P.useEffect(function(){a.current!==null&&a.current.updateHandlers(c)});function u(d){a.current=new A0(d,c,{transformPagePoint:l})}nl(s,"pointerdown",o&&u),Vb(function(){return a.current&&a.current.end()})}var AR={pan:pi(jR),drag:pi(ER)},Ol=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function DR(){var t=Ol.map(function(){return new Gs}),e={},n={clearAllListeners:function(){return t.forEach(function(i){return i.clear()})},updatePropListeners:function(i){Ol.forEach(function(r){var s,o="on"+r,a=i[o];(s=e[r])===null||s===void 0||s.call(e),a&&(e[r]=n[o](a))})}};return t.forEach(function(i,r){n["on"+Ol[r]]=function(s){return i.add(s)},n["notify"+Ol[r]]=function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return i.notify.apply(i,Pn([],Be(s),!1))}}),n}function MR(t,e,n){var i;for(var r in e){var s=e[r],o=n[r];if(Nn(s))t.addValue(r,s),process.env.NODE_ENV==="development"&&x0(s.version==="6.5.1","Attempting to mix Framer Motion versions ".concat(s.version," with 6.5.1 may not work as expected."));else if(Nn(o))t.addValue(r,Qr(s));else if(o!==s)if(t.hasValue(r)){var a=t.getValue(r);!a.hasAnimated&&a.set(s)}else t.addValue(r,Qr((i=t.getStaticValue(r))!==null&&i!==void 0?i:s))}for(var r in n)e[r]===void 0&&t.removeValue(r);return e}var J0=function(t){var e=t.treeType,n=e===void 0?"":e,i=t.build,r=t.getBaseTarget,s=t.makeTargetAnimatable,o=t.measureViewportBox,a=t.render,l=t.readValueFromInstance,c=t.removeValueFromRenderState,u=t.sortNodePosition,d=t.scrapeMotionValuesFromProps;return function(p,f){var h=p.parent,m=p.props,g=p.presenceId,O=p.blockInitialAnimation,v=p.visualState,x=p.shouldReduceMotion;f===void 0&&(f={});var b=!1,w=v.latestValues,y=v.renderState,k,T=DR(),E=new Map,C=new Map,M={},Z=L({},w),q;function N(){!k||!b||(_(),a(k,y,m.style,X.projection))}function _(){i(X,y,w,f,m)}function G(){T.notifyUpdate(w)}function ee(D,W){var se=W.onChange(function(me){w[D]=me,m.onUpdate&&$n.update(G,!1,!0)}),Ee=W.onRenderRequest(X.scheduleRender);C.set(D,function(){se(),Ee()})}var le=d(m);for(var he in le){var B=le[he];w[he]!==void 0&&Nn(B)&&B.set(w[he],!1)}var A=Fa(m),V=nb(m),X=L(L({treeType:n,current:null,depth:h?h.depth+1:0,parent:h,children:new Set,presenceId:g,shouldReduceMotion:x,variantChildren:V?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(h!=null&&h.isMounted()),blockInitialAnimation:O,isMounted:function(){return!!k},mount:function(D){b=!0,k=X.current=D,X.projection&&X.projection.mount(D),V&&h&&!A&&(q=h==null?void 0:h.addVariantChild(X)),E.forEach(function(W,se){return ee(se,W)}),h==null||h.children.add(X),X.setProps(m)},unmount:function(){var D;(D=X.projection)===null||D===void 0||D.unmount(),Tr.update(G),Tr.render(N),C.forEach(function(W){return W()}),q==null||q(),h==null||h.children.delete(X),T.clearAllListeners(),k=void 0,b=!1},addVariantChild:function(D){var W,se=X.getClosestVariantNode();if(se)return(W=se.variantChildren)===null||W===void 0||W.add(D),function(){return se.variantChildren.delete(D)}},sortNodePosition:function(D){return!u||n!==D.treeType?0:u(X.getInstance(),D.getInstance())},getClosestVariantNode:function(){return V?X:h==null?void 0:h.getClosestVariantNode()},getLayoutId:function(){return m.layoutId},getInstance:function(){return k},getStaticValue:function(D){return w[D]},setStaticValue:function(D,W){return w[D]=W},getLatestValues:function(){return w},setVisibility:function(D){X.isVisible!==D&&(X.isVisible=D,X.scheduleRender())},makeTargetAnimatable:function(D,W){return W===void 0&&(W=!0),s(X,D,m,W)},measureViewportBox:function(){return o(k,m)},addValue:function(D,W){X.hasValue(D)&&X.removeValue(D),E.set(D,W),w[D]=W.get(),ee(D,W)},removeValue:function(D){var W;E.delete(D),(W=C.get(D))===null||W===void 0||W(),C.delete(D),delete w[D],c(D,y)},hasValue:function(D){return E.has(D)},getValue:function(D,W){var se=E.get(D);return se===void 0&&W!==void 0&&(se=Qr(W),X.addValue(D,se)),se},forEachValue:function(D){return E.forEach(D)},readValue:function(D){var W;return(W=w[D])!==null&&W!==void 0?W:l(k,D,f)},setBaseTarget:function(D,W){Z[D]=W},getBaseTarget:function(D){if(r){var W=r(m,D);if(W!==void 0&&!Nn(W))return W}return Z[D]}},T),{build:function(){return _(),y},scheduleRender:function(){$n.render(N,!1,!0)},syncRender:N,setProps:function(D){(D.transformTemplate||m.transformTemplate)&&X.scheduleRender(),m=D,T.updatePropListeners(D),M=MR(X,d(m),M)},getProps:function(){return m},getVariant:function(D){var W;return(W=m.variants)===null||W===void 0?void 0:W[D]},getDefaultTransition:function(){return m.transition},getTransformPagePoint:function(){return m.transformPagePoint},getVariantContext:function(D){if(D===void 0&&(D=!1),D)return h==null?void 0:h.getVariantContext();if(!A){var W=(h==null?void 0:h.getVariantContext())||{};return m.initial!==void 0&&(W.initial=m.initial),W}for(var se={},Ee=0;Ee<RR;Ee++){var me=K0[Ee],Ge=m[me];(nn(Ge)||Ge===!1)&&(se[me]=Ge)}return se}});return X}},K0=Pn(["initial"],Be(Op),!1),RR=K0.length;function Pp(t){return typeof t=="string"&&t.startsWith("var(--")}var ey=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function _R(t){var e=ey.exec(t);if(!e)return[,];var n=Be(e,3),i=n[1],r=n[2];return[i,r]}var IR=4;function kp(t,e,n){n===void 0&&(n=1),Nt(n<=IR,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));var i=Be(_R(t),2),r=i[0],s=i[1];if(r){var o=window.getComputedStyle(e).getPropertyValue(r);return o?o.trim():Pp(s)?kp(s,e,n+1):s}}function ZR(t,e,n){var i,r=Zt(e,[]),s=t.getInstance();if(!(s instanceof Element))return{target:r,transitionEnd:n};n&&(n=L({},n)),t.forEachValue(function(c){var u=c.get();if(Pp(u)){var d=kp(u,s);d&&c.set(d)}});for(var o in r){var a=r[o];if(Pp(a)){var l=kp(a,s);l&&(r[o]=l,n&&((i=n[o])!==null&&i!==void 0||(n[o]=a)))}}return{target:r,transitionEnd:n}}var NR=new Set(["width","height","top","left","right","bottom","x","y"]),ty=function(t){return NR.has(t)},LR=function(t){return Object.keys(t).some(ty)},ny=function(t,e){t.set(e,!1),t.set(e)},xl=function(t){return t===Vi||t===ie},iy;(function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"})(iy||(iy={}));var ry=function(t,e){return parseFloat(t.split(", ")[e])},sy=function(t,e){return function(n,i){var r=i.transform;if(r==="none"||!r)return 0;var s=r.match(/^matrix3d\((.+)\)$/);if(s)return ry(s[1],e);var o=r.match(/^matrix\((.+)\)$/);return o?ry(o[1],t):0}},XR=new Set(["x","y","z"]),VR=Ns.filter(function(t){return!XR.has(t)});function WR(t){var e=[];return VR.forEach(function(n){var i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.syncRender(),e}var oy={width:function(t,e){var n=t.x,i=e.paddingLeft,r=i===void 0?"0":i,s=e.paddingRight,o=s===void 0?"0":s;return n.max-n.min-parseFloat(r)-parseFloat(o)},height:function(t,e){var n=t.y,i=e.paddingTop,r=i===void 0?"0":i,s=e.paddingBottom,o=s===void 0?"0":s;return n.max-n.min-parseFloat(r)-parseFloat(o)},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,i=e.top;return parseFloat(i)+(n.max-n.min)},right:function(t,e){var n=t.x,i=e.left;return parseFloat(i)+(n.max-n.min)},x:sy(4,13),y:sy(5,14)},qR=function(t,e,n){var i=e.measureViewportBox(),r=e.getInstance(),s=getComputedStyle(r),o=s.display,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(function(c){a[c]=oy[c](i,s)}),e.syncRender();var l=e.measureViewportBox();return n.forEach(function(c){var u=e.getValue(c);ny(u,a[c]),t[c]=oy[c](l,s)}),t},zR=function(t,e,n,i){n===void 0&&(n={}),i===void 0&&(i={}),e=L({},e),i=L({},i);var r=Object.keys(e).filter(ty),s=[],o=!1,a=[];if(r.forEach(function(u){var d=t.getValue(u);if(t.hasValue(u)){var p=n[u],f=Hs(p),h=e[u],m;if(Ys(h)){var g=h.length,O=h[0]===null?1:0;p=h[O],f=Hs(p);for(var v=O;v<g;v++)m?Nt(Hs(h[v])===m,"All keyframes must be of the same type"):(m=Hs(h[v]),Nt(m===f||xl(f)&&xl(m),"Keyframes must be of the same dimension as the current value"))}else m=Hs(h);if(f!==m)if(xl(f)&&xl(m)){var x=d.get();typeof x=="string"&&d.set(parseFloat(x)),typeof h=="string"?e[u]=parseFloat(h):Array.isArray(h)&&m===ie&&(e[u]=h.map(parseFloat))}else f!=null&&f.transform&&(m!=null&&m.transform)&&(p===0||h===0)?p===0?d.set(m.transform(p)):e[u]=f.transform(h):(o||(s=WR(t),o=!0),a.push(u),i[u]=i[u]!==void 0?i[u]:e[u],ny(d,h))}}),a.length){var l=a.indexOf("height")>=0?window.pageYOffset:null,c=qR(e,t,a);return s.length&&s.forEach(function(u){var d=Be(u,2),p=d[0],f=d[1];t.getValue(p).set(f)}),t.syncRender(),l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:i}}else return{target:e,transitionEnd:i}};function YR(t,e,n,i){return LR(e)?zR(t,e,n,i):{target:e,transitionEnd:i}}var BR=function(t,e,n,i){var r=ZR(t,e,i);return e=r.target,i=r.transitionEnd,YR(t,e,n,i)};function UR(t){return window.getComputedStyle(t)}var ay={treeType:"dom",readValueFromInstance:function(t,e){if(Ls(e)){var n=dp(e);return n&&n.default||0}else{var i=UR(t);return(lb(e)?i.getPropertyValue(e):i[e])||0}},sortNodePosition:function(t,e){return t.compareDocumentPosition(e)&2?1:-1},getBaseTarget:function(t,e){var n;return(n=t.style)===null||n===void 0?void 0:n[e]},measureViewportBox:function(t,e){var n=e.transformPagePoint;return H0(t,n)},resetTransform:function(t,e,n){var i=n.transformTemplate;e.style.transform=i?i({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,i=e.style;delete n[t],delete i[t]},makeTargetAnimatable:function(t,e,n,i){var r=n.transformValues;i===void 0&&(i=!0);var s=e.transition,o=e.transitionEnd,a=Zt(e,["transition","transitionEnd"]),l=eR(a,s||{},t);if(r&&(o&&(o=r(o)),a&&(a=r(a)),l&&(l=r(l))),i){J5(t,a,l);var c=BR(t,a,l,o);o=c.transitionEnd,a=c.target}return L({transition:s,transitionEnd:o},a)},scrapeMotionValuesFromProps:qd,build:function(t,e,n,i,r){t.isVisible!==void 0&&(e.style.visibility=t.isVisible?"visible":"hidden"),Xd(e,n,i,r.transformTemplate)},render:Pb},FR=J0(ay),GR=J0(L(L({},ay),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return Ls(e)?((n=dp(e))===null||n===void 0?void 0:n.default)||0:(e=kb.has(e)?e:Sb(e),t.getAttribute(e))},scrapeMotionValuesFromProps:Tb,build:function(t,e,n,i,r){Wd(e,n,i,r.transformTemplate)},render:$b})),HR=function(t,e){return Md(t)?GR(e,{enableHardwareAcceleration:!1}):FR(e,{enableHardwareAcceleration:!0})};function ly(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var to={correct:function(t,e){if(!e.target)return t;if(typeof t=="string")if(ie.test(t))t=parseFloat(t);else return t;var n=ly(t,e.target.x),i=ly(t,e.target.y);return"".concat(n,"% ").concat(i,"%")}},cy="_$css",JR={correct:function(t,e){var n=e.treeScale,i=e.projectionDelta,r=t,s=t.includes("var("),o=[];s&&(t=t.replace(ey,function(m){return o.push(m),cy}));var a=Ln.parse(t);if(a.length>5)return r;var l=Ln.createTransformer(t),c=typeof a[0]!="number"?1:0,u=i.x.scale*n.x,d=i.y.scale*n.y;a[0+c]/=u,a[1+c]/=d;var p=Ae(u,d,.5);typeof a[2+c]=="number"&&(a[2+c]/=p),typeof a[3+c]=="number"&&(a[3+c]/=p);var f=l(a);if(s){var h=0;f=f.replace(cy,function(){var m=o[h];return h++,m})}return f}},KR=function(t){Bx(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){var n=this,i=this.props,r=i.visualElement,s=i.layoutGroup,o=i.switchLayoutGroup,a=i.layoutId,l=r.projection;PD(t_),l&&(s!=null&&s.group&&s.group.add(l),o!=null&&o.register&&a&&o.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",function(){n.safeToRemove()}),l.setOptions(L(L({},l.options),{onExitComplete:function(){return n.safeToRemove()}}))),Zs.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(n){var i=this,r=this.props,s=r.layoutDependency,o=r.visualElement,a=r.drag,l=r.isPresent,c=o.projection;return c&&(c.isPresent=l,a||n.layoutDependency!==s||s===void 0?c.willUpdate():this.safeToRemove(),n.isPresent!==l&&(l?c.promote():c.relegate()||$n.postRender(function(){var u;!((u=c.getStack())===null||u===void 0)&&u.members.length||i.safeToRemove()}))),null},e.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var n=this.props,i=n.visualElement,r=n.layoutGroup,s=n.switchLayoutGroup,o=i.projection;o&&(o.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(o),s!=null&&s.deregister&&s.deregister(o))},e.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},e.prototype.render=function(){return null},e}(P.Component);function e_(t){var e=Be(b0(),2),n=e[0],i=e[1],r=P.useContext(rb);return P.createElement(KR,L({},t,{layoutGroup:r,switchLayoutGroup:P.useContext(sb),isPresent:n,safeToRemove:i}))}var t_={borderRadius:L(L({},to),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:to,borderTopRightRadius:to,borderBottomLeftRadius:to,borderBottomRightRadius:to,boxShadow:JR},n_={measureLayout:e_};function i_(t,e,n){n===void 0&&(n={});var i=Nn(t)?t:Qr(t);return hp("",i,e,n),{stop:function(){return i.stop()},isAnimating:function(){return i.isAnimating()}}}var uy=["TopLeft","TopRight","BottomLeft","BottomRight"],r_=uy.length,dy=function(t){return typeof t=="string"?parseFloat(t):t},py=function(t){return typeof t=="number"||ie.test(t)};function s_(t,e,n,i,r,s){var o,a,l,c;r?(t.opacity=Ae(0,(o=n.opacity)!==null&&o!==void 0?o:1,o_(i)),t.opacityExit=Ae((a=e.opacity)!==null&&a!==void 0?a:1,0,a_(i))):s&&(t.opacity=Ae((l=e.opacity)!==null&&l!==void 0?l:1,(c=n.opacity)!==null&&c!==void 0?c:1,i));for(var u=0;u<r_;u++){var d="border".concat(uy[u],"Radius"),p=fy(e,d),f=fy(n,d);if(!(p===void 0&&f===void 0)){p||(p=0),f||(f=0);var h=p===0||f===0||py(p)===py(f);h?(t[d]=Math.max(Ae(dy(p),dy(f),i),0),(kn.test(f)||kn.test(p))&&(t[d]+="%")):t[d]=f}}(e.rotate||n.rotate)&&(t.rotate=Ae(e.rotate||0,n.rotate||0,i))}function fy(t,e){var n;return(n=t[e])!==null&&n!==void 0?n:t.borderRadius}var o_=hy(0,.5,np),a_=hy(.5,.95,ep);function hy(t,e,n){return function(i){return i<t?0:i>e?1:n(Bs(t,e,i))}}function my(t,e){t.min=e.min,t.max=e.max}function rn(t,e){my(t.x,e.x),my(t.y,e.y)}function gy(t,e,n,i,r){return t-=e,t=gl(t,1/n,i),r!==void 0&&(t=gl(t,1/r,i)),t}function l_(t,e,n,i,r,s,o){if(e===void 0&&(e=0),n===void 0&&(n=1),i===void 0&&(i=.5),s===void 0&&(s=t),o===void 0&&(o=t),kn.test(e)){e=parseFloat(e);var a=Ae(o.min,o.max,e/100);e=a-o.min}if(typeof e=="number"){var l=Ae(s.min,s.max,i);t===s&&(l-=e),t.min=gy(t.min,e,n,l,r),t.max=gy(t.max,e,n,l,r)}}function vy(t,e,n,i,r){var s=Be(n,3),o=s[0],a=s[1],l=s[2];l_(t,e[o],e[a],e[l],e.scale,i,r)}var c_=["x","scaleX","originX"],u_=["y","scaleY","originY"];function Oy(t,e,n,i){vy(t.x,e,c_,n==null?void 0:n.x,i==null?void 0:i.x),vy(t.y,e,u_,n==null?void 0:n.y,i==null?void 0:i.y)}function xy(t){return t.translate===0&&t.scale===1}function by(t){return xy(t.x)&&xy(t.y)}function yy(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}var d_=function(){function t(){this.members=[]}return t.prototype.add=function(e){mp(this.members,e),e.scheduleRender()},t.prototype.remove=function(e){if(gp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},t.prototype.relegate=function(e){var n=this.members.findIndex(function(o){return e===o});if(n===0)return!1;for(var i,r=n;r>=0;r--){var s=this.members[r];if(s.isPresent!==!1){i=s;break}}return i?(this.promote(i),!0):!1},t.prototype.promote=function(e,n){var i,r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),!((i=e.root)===null||i===void 0)&&i.isUpdating&&(e.isLayoutDirty=!0);var s=e.options.crossfade;s===!1&&r.hide()}},t.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var n,i,r,s,o;(i=(n=e.options).onExitComplete)===null||i===void 0||i.call(n),(o=(r=e.resumingFrom)===null||r===void 0?void 0:(s=r.options).onExitComplete)===null||o===void 0||o.call(s)})},t.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}(),p_="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function wy(t,e,n){var i=t.x.translate/e.x,r=t.y.translate/e.y,s="translate3d(".concat(i,"px, ").concat(r,"px, 0) ");if(s+="scale(".concat(1/e.x,", ").concat(1/e.y,") "),n){var o=n.rotate,a=n.rotateX,l=n.rotateY;o&&(s+="rotate(".concat(o,"deg) ")),a&&(s+="rotateX(".concat(a,"deg) ")),l&&(s+="rotateY(".concat(l,"deg) "))}var c=t.x.scale*e.x,u=t.y.scale*e.y;return s+="scale(".concat(c,", ").concat(u,")"),s===p_?"none":s}var f_=function(t,e){return t.depth-e.depth},h_=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(e){mp(this.children,e),this.isDirty=!0},t.prototype.remove=function(e){gp(this.children,e),this.isDirty=!0},t.prototype.forEach=function(e){this.isDirty&&this.children.sort(f_),this.isDirty=!1,this.children.forEach(e)},t}(),Sy=1e3;function Py(t){var e=t.attachResizeListener,n=t.defaultParent,i=t.measureScroll,r=t.checkIsScrollRoot,s=t.resetTransform;return function(){function o(a,l,c){var u=this;l===void 0&&(l={}),c===void 0&&(c=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){u.isUpdating&&(u.isUpdating=!1,u.clearAllSnapshots())},this.updateProjection=function(){u.nodes.forEach(b_),u.nodes.forEach(y_)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=a,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?Pn(Pn([],Be(c.path),!1),[c],!1):[],this.parent=c,this.depth=c?c.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(var d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new h_)}return o.prototype.addEventListener=function(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Gs),this.eventHandlers.get(a).add(l)},o.prototype.notifyListeners=function(a){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];var u=this.eventHandlers.get(a);u==null||u.notify.apply(u,Pn([],Be(l),!1))},o.prototype.hasListeners=function(a){return this.eventHandlers.has(a)},o.prototype.registerPotentialNode=function(a,l){this.potentialNodes.set(a,l)},o.prototype.mount=function(a,l){var c=this,u;if(l===void 0&&(l=!1),!this.instance){this.isSVG=a instanceof SVGElement&&a.tagName!=="svg",this.instance=a;var d=this.options,p=d.layoutId,f=d.layout,h=d.visualElement;if(h&&!h.getInstance()&&h.mount(a),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),l&&(f||p)&&(this.isLayoutDirty=!0),e){var m,g=function(){return c.root.updateBlockedByResize=!1};e(a,function(){c.root.updateBlockedByResize=!0,clearTimeout(m),m=window.setTimeout(g,250),Zs.hasAnimatedSinceResize&&(Zs.hasAnimatedSinceResize=!1,c.nodes.forEach(x_))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&h&&(p||f)&&this.addEventListener("didUpdate",function(O){var v,x,b,w,y,k=O.delta,T=O.hasLayoutChanged,E=O.hasRelativeTargetChanged,C=O.layout;if(c.isTreeAnimationBlocked()){c.target=void 0,c.relativeTarget=void 0;return}var M=(x=(v=c.options.transition)!==null&&v!==void 0?v:h.getDefaultTransition())!==null&&x!==void 0?x:$_,Z=h.getProps(),q=Z.onLayoutAnimationStart,N=Z.onLayoutAnimationComplete,_=!c.targetLayout||!yy(c.targetLayout,C)||E,G=!T&&E;if(!((b=c.resumeFrom)===null||b===void 0)&&b.instance||G||T&&(_||!c.currentAnimation)){c.resumeFrom&&(c.resumingFrom=c.resumeFrom,c.resumingFrom.resumingFrom=void 0),c.setAnimationOrigin(k,G);var ee=L(L({},fp(M,"layout")),{onPlay:q,onComplete:N});h.shouldReduceMotion&&(ee.delay=0,ee.type=!1),c.startAnimation(ee)}else!T&&c.animationProgress===0&&c.finishAnimation(),c.isLead()&&((y=(w=c.options).onExitComplete)===null||y===void 0||y.call(w));c.targetLayout=C})}},o.prototype.unmount=function(){var a,l;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(l=this.parent)===null||l===void 0||l.children.delete(this),this.instance=void 0,Tr.preRender(this.updateProjection)},o.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},o.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},o.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},o.prototype.isTreeAnimationBlocked=function(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1},o.prototype.startUpdate=function(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(w_))},o.prototype.willUpdate=function(a){var l,c,u;if(a===void 0&&(a=!0),this.root.isUpdateBlocked()){(c=(l=this.options).onExitComplete)===null||c===void 0||c.call(l);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var d=0;d<this.path.length;d++){var p=this.path[d];p.shouldResetTransform=!0,p.updateScroll()}var f=this.options,h=f.layoutId,m=f.layout;if(!(h===void 0&&!m)){var g=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;this.prevTransformTemplateValue=g==null?void 0:g(this.latestValues,""),this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}}},o.prototype.didUpdate=function(){var a=this.isUpdateBlocked();if(a){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ky);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(T_),this.potentialNodes.clear()),this.nodes.forEach(O_),this.nodes.forEach(m_),this.nodes.forEach(g_),this.clearAllSnapshots(),op.update(),op.preRender(),op.render())},o.prototype.clearAllSnapshots=function(){this.nodes.forEach(v_),this.sharedNodes.forEach(S_)},o.prototype.scheduleUpdateProjection=function(){$n.preRender(this.updateProjection,!1,!0)},o.prototype.scheduleCheckAfterUnmount=function(){var a=this;$n.postRender(function(){a.isLayoutDirty?a.root.didUpdate():a.root.checkUpdateFailed()})},o.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var a=this.measure(),l=this.removeTransform(this.removeElementScroll(a));Cy(l),this.snapshot={measured:a,layout:l,latestValues:{}}}},o.prototype.updateLayout=function(){var a;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var l=0;l<this.path.length;l++){var c=this.path[l];c.updateScroll()}var u=this.measure();Cy(u);var d=this.layout;this.layout={measured:u,actual:this.removeElementScroll(u)},this.layoutCorrected=ot(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(a=this.options.visualElement)===null||a===void 0||a.notifyLayoutMeasure(this.layout.actual,d==null?void 0:d.actual)}},o.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=r(this.instance),this.scroll=i(this.instance))},o.prototype.resetTransform=function(){var a;if(s){var l=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!by(this.projectionDelta),u=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate,d=u==null?void 0:u(this.latestValues,""),p=d!==this.prevTransformTemplateValue;l&&(c||fi(this.latestValues)||p)&&(s(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}},o.prototype.measure=function(){var a=this.options.visualElement;if(!a)return ot();var l=a.measureViewportBox(),c=this.root.scroll;return c&&(hi(l.x,c.x),hi(l.y,c.y)),l},o.prototype.removeElementScroll=function(a){var l=ot();rn(l,a);for(var c=0;c<this.path.length;c++){var u=this.path[c],d=u.scroll,p=u.options,f=u.isScrollRoot;if(u!==this.root&&d&&p.layoutScroll){if(f){rn(l,a);var h=this.root.scroll;h&&(hi(l.x,-h.x),hi(l.y,-h.y))}hi(l.x,d.x),hi(l.y,d.y)}}return l},o.prototype.applyTransform=function(a,l){l===void 0&&(l=!1);var c=ot();rn(c,a);for(var u=0;u<this.path.length;u++){var d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Cr(c,{x:-d.scroll.x,y:-d.scroll.y}),fi(d.latestValues)&&Cr(c,d.latestValues)}return fi(this.latestValues)&&Cr(c,this.latestValues),c},o.prototype.removeTransform=function(a){var l,c=ot();rn(c,a);for(var u=0;u<this.path.length;u++){var d=this.path[u];if(d.instance&&fi(d.latestValues)){Y0(d.latestValues)&&d.updateSnapshot();var p=ot(),f=d.measure();rn(p,f),Oy(c,d.latestValues,(l=d.snapshot)===null||l===void 0?void 0:l.layout,p)}}return fi(this.latestValues)&&Oy(c,this.latestValues),c},o.prototype.setTargetDelta=function(a){this.targetDelta=a,this.root.scheduleUpdateProjection()},o.prototype.setOptions=function(a){var l;this.options=L(L(L({},this.options),a),{crossfade:(l=a.crossfade)!==null&&l!==void 0?l:!0})},o.prototype.clearMeasurements=function(){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},o.prototype.resolveTargetDelta=function(){var a,l=this.options,c=l.layout,u=l.layoutId;!this.layout||!(c||u)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=ot(),this.relativeTargetOrigin=ot(),Ks(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),rn(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ot(),this.targetWithTransforms=ot()),this.relativeTarget&&this.relativeTargetOrigin&&(!((a=this.relativeParent)===null||a===void 0)&&a.target)?hR(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):rn(this.target,this.layout.actual),F0(this.target,this.targetDelta)):rn(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=ot(),this.relativeTargetOrigin=ot(),Ks(this.relativeTargetOrigin,this.target,this.relativeParent.target),rn(this.relativeTarget,this.relativeTargetOrigin)))))},o.prototype.getClosestProjectingParent=function(){if(!(!this.parent||fi(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},o.prototype.calcProjection=function(){var a,l=this.options,c=l.layout,u=l.layoutId;if(this.isTreeAnimating=!!(!((a=this.parent)===null||a===void 0)&&a.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(c||u))){var d=this.getLead();rn(this.layoutCorrected,this.layout.actual),SR(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==d);var p=d.target;if(p){this.projectionDelta||(this.projectionDelta=eo(),this.projectionDeltaWithTransform=eo());var f=this.treeScale.x,h=this.treeScale.y,m=this.projectionTransform;Js(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=wy(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==f||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}}},o.prototype.hide=function(){this.isVisible=!1},o.prototype.show=function(){this.isVisible=!0},o.prototype.scheduleRender=function(a){var l,c,u;a===void 0&&(a=!0),(c=(l=this.options).scheduleRender)===null||c===void 0||c.call(l),a&&((u=this.getStack())===null||u===void 0||u.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},o.prototype.setAnimationOrigin=function(a,l){var c=this,u;l===void 0&&(l=!1);var d=this.snapshot,p=(d==null?void 0:d.latestValues)||{},f=L({},this.latestValues),h=eo();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!l;var m=ot(),g=d==null?void 0:d.isShared,O=(((u=this.getStack())===null||u===void 0?void 0:u.members.length)||0)<=1,v=!!(g&&!O&&this.options.crossfade===!0&&!this.path.some(k_));this.animationProgress=0,this.mixTargetDelta=function(x){var b,w=x/1e3;$y(h.x,a.x,w),$y(h.y,a.y,w),c.setTargetDelta(h),c.relativeTarget&&c.relativeTargetOrigin&&c.layout&&(!((b=c.relativeParent)===null||b===void 0)&&b.layout)&&(Ks(m,c.layout.actual,c.relativeParent.layout.actual),P_(c.relativeTarget,c.relativeTargetOrigin,m,w)),g&&(c.animationValues=f,s_(f,p,c.latestValues,w,v,O)),c.root.scheduleUpdateProjection(),c.scheduleRender(),c.animationProgress=w},this.mixTargetDelta(0)},o.prototype.startAnimation=function(a){var l=this,c,u;this.notifyListeners("animationStart"),(c=this.currentAnimation)===null||c===void 0||c.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(Tr.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$n.update(function(){Zs.hasAnimatedSinceResize=!0,l.currentAnimation=i_(0,Sy,L(L({},a),{onUpdate:function(d){var p;l.mixTargetDelta(d),(p=a.onUpdate)===null||p===void 0||p.call(a,d)},onComplete:function(){var d;(d=a.onComplete)===null||d===void 0||d.call(a),l.completeAnimation()}})),l.resumingFrom&&(l.resumingFrom.currentAnimation=l.currentAnimation),l.pendingAnimation=void 0})},o.prototype.completeAnimation=function(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},o.prototype.finishAnimation=function(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,Sy),this.currentAnimation.stop()),this.completeAnimation()},o.prototype.applyTransformsToTarget=function(){var a=this.getLead(),l=a.targetWithTransforms,c=a.target,u=a.layout,d=a.latestValues;!l||!c||!u||(rn(l,c),Cr(l,d),Js(this.projectionDeltaWithTransform,this.layoutCorrected,l,d))},o.prototype.registerSharedNode=function(a,l){var c,u,d;this.sharedNodes.has(a)||this.sharedNodes.set(a,new d_);var p=this.sharedNodes.get(a);p.add(l),l.promote({transition:(c=l.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(d=(u=l.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||d===void 0?void 0:d.call(u,l)})},o.prototype.isLead=function(){var a=this.getStack();return a?a.lead===this:!0},o.prototype.getLead=function(){var a,l=this.options.layoutId;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this},o.prototype.getPrevLead=function(){var a,l=this.options.layoutId;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0},o.prototype.getStack=function(){var a=this.options.layoutId;if(a)return this.root.sharedNodes.get(a)},o.prototype.promote=function(a){var l=a===void 0?{}:a,c=l.needsReset,u=l.transition,d=l.preserveFollowOpacity,p=this.getStack();p&&p.promote(this,d),c&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})},o.prototype.relegate=function(){var a=this.getStack();return a?a.relegate(this):!1},o.prototype.resetRotation=function(){var a=this.options.visualElement;if(a){for(var l=!1,c={},u=0;u<Rd.length;u++){var d=Rd[u],p="rotate"+d;a.getStaticValue(p)&&(l=!0,c[p]=a.getStaticValue(p),a.setStaticValue(p,0))}if(l){a==null||a.syncRender();for(var p in c)a.setStaticValue(p,c[p]);a.scheduleRender()}}},o.prototype.getProjectionStyles=function(a){var l,c,u,d,p,f;a===void 0&&(a={});var h={};if(!this.instance||this.isSVG)return h;if(this.isVisible)h.visibility="";else return{visibility:"hidden"};var m=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=el(a.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;var g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){var O={};return this.options.layoutId&&(O.opacity=(c=this.latestValues.opacity)!==null&&c!==void 0?c:1,O.pointerEvents=el(a.pointerEvents)||""),this.hasProjected&&!fi(this.latestValues)&&(O.transform=m?m({},""):"none",this.hasProjected=!1),O}var v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),h.transform=wy(this.projectionDeltaWithTransform,this.treeScale,v),m&&(h.transform=m(v,h.transform));var x=this.projectionDelta,b=x.x,w=x.y;h.transformOrigin="".concat(b.origin*100,"% ").concat(w.origin*100,"% 0"),g.animationValues?h.opacity=g===this?(d=(u=v.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=g===this?(p=v.opacity)!==null&&p!==void 0?p:"":(f=v.opacityExit)!==null&&f!==void 0?f:0;for(var y in Ha)if(v[y]!==void 0){var k=Ha[y],T=k.correct,E=k.applyTo,C=T(v[y],g);if(E)for(var M=E.length,Z=0;Z<M;Z++)h[E[Z]]=C;else h[y]=C}return this.options.layoutId&&(h.pointerEvents=g===this?el(a.pointerEvents)||"":"none"),h},o.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},o.prototype.resetTree=function(){this.root.nodes.forEach(function(a){var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(ky),this.root.sharedNodes.clear()},o}()}function m_(t){t.updateLayout()}function g_(t){var e,n,i,r,s=(n=(e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)!==null&&n!==void 0?n:t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){var o=t.layout,a=o.actual,l=o.measured;t.options.animationType==="size"?Tn(function(v){var x=s.isShared?s.measured[v]:s.layout[v],b=Xn(x);x.min=a[v].min,x.max=x.min+b}):t.options.animationType==="position"&&Tn(function(v){var x=s.isShared?s.measured[v]:s.layout[v],b=Xn(a[v]);x.max=x.min+b});var c=eo();Js(c,a,s.layout);var u=eo();s.isShared?Js(u,t.applyTransform(l,!0),s.measured):Js(u,a,s.layout);var d=!by(c),p=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){var f=t.relativeParent,h=f.snapshot,m=f.layout;if(h&&m){var g=ot();Ks(g,s.layout,h.layout);var O=ot();Ks(O,a,m.actual),yy(g,O)||(p=!0)}}t.notifyListeners("didUpdate",{layout:a,snapshot:s,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else t.isLead()&&((r=(i=t.options).onExitComplete)===null||r===void 0||r.call(i));t.options.transition=void 0}function v_(t){t.clearSnapshot()}function ky(t){t.clearMeasurements()}function O_(t){var e=t.options.visualElement;e!=null&&e.getProps().onBeforeLayoutMeasure&&e.notifyBeforeLayoutMeasure(),t.resetTransform()}function x_(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function b_(t){t.resolveTargetDelta()}function y_(t){t.calcProjection()}function w_(t){t.resetRotation()}function S_(t){t.removeLeadSnapshot()}function $y(t,e,n){t.translate=Ae(e.translate,0,n),t.scale=Ae(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ty(t,e,n,i){t.min=Ae(e.min,n.min,i),t.max=Ae(e.max,n.max,i)}function P_(t,e,n,i){Ty(t.x,e.x,n.x,i),Ty(t.y,e.y,n.y,i)}function k_(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}var $_={duration:.45,ease:[.4,0,.1,1]};function T_(t,e){for(var n=t.root,i=t.path.length-1;i>=0;i--)if(t.path[i].instance){n=t.path[i];break}var r=n&&n!==t.root?n.instance:document,s=r.querySelector('[data-projection-id="'.concat(e,'"]'));s&&t.mount(s,!0)}function Qy(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Cy(t){Qy(t.x),Qy(t.y)}var Q_=Py({attachResizeListener:function(t,e){return tl(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),$p={current:void 0},C_=Py({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!$p.current){var t=new Q_(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),$p.current=t}return $p.current},resetTransform:function(t,e){t.style.transform=e??"none"},checkIsScrollRoot:function(t){return window.getComputedStyle(t).position==="fixed"}}),E_=L(L(L(L({},dR),C5),AR),n_),j_=wD(function(t,e){return lM(t,e,E_,HR,C_)});function Tp(t,e,n){var i,r,s,o,a;e==null&&(e=100);function l(){var u=Date.now()-o;u<e&&u>=0?i=setTimeout(l,e-u):(i=null,n||(a=t.apply(s,r),s=r=null))}var c=function(){s=this,r=arguments,o=Date.now();var u=n&&!i;return i||(i=setTimeout(l,e)),u&&(a=t.apply(s,r),s=r=null),a};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(a=t.apply(s,r),s=r=null,clearTimeout(i),i=null)},c}Tp.debounce=Tp;var A_=Tp;const Ey=uo(A_);function D_(t){let{debounce:e,scroll:n,polyfill:i,offsetSize:r}=t===void 0?{debounce:0,scroll:!1,offsetSize:!1}:t;const s=i||(typeof window>"u"?class{}:window.ResizeObserver);if(!s)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,a]=P.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=P.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o}),c=e?typeof e=="number"?e:e.scroll:null,u=e?typeof e=="number"?e:e.resize:null,d=P.useRef(!1);P.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[p,f,h]=P.useMemo(()=>{const v=()=>{if(!l.current.element)return;const{left:x,top:b,width:w,height:y,bottom:k,right:T,x:E,y:C}=l.current.element.getBoundingClientRect(),M={left:x,top:b,width:w,height:y,bottom:k,right:T,x:E,y:C};l.current.element instanceof HTMLElement&&r&&(M.height=l.current.element.offsetHeight,M.width=l.current.element.offsetWidth),Object.freeze(M),d.current&&!I_(l.current.lastBounds,M)&&a(l.current.lastBounds=M)};return[v,u?Ey(v,u):v,c?Ey(v,c):v]},[a,r,c,u]);function m(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(v=>v.removeEventListener("scroll",h,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function g(){l.current.element&&(l.current.resizeObserver=new s(h),l.current.resizeObserver.observe(l.current.element),n&&l.current.scrollContainers&&l.current.scrollContainers.forEach(v=>v.addEventListener("scroll",h,{capture:!0,passive:!0})))}const O=v=>{!v||v===l.current.element||(m(),l.current.element=v,l.current.scrollContainers=jy(v),g())};return R_(h,!!n),M_(f),P.useEffect(()=>{m(),g()},[n,h,f]),P.useEffect(()=>m,[]),[O,o,p]}function M_(t){P.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function R_(t,e){P.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function jy(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:i,overflowY:r}=window.getComputedStyle(t);return[n,i,r].some(s=>s==="auto"||s==="scroll")&&e.push(t),[...e,...jy(t.parentElement)]}const __=["x","y","top","bottom","left","right","width","height"],I_=(t,e)=>__.every(n=>t[n]===e[n]),Ay=P.createContext({dragDropManager:void 0});function Lt(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Dy=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Qp=function(){return Math.random().toString(36).substring(7).split("").join(".")},My={INIT:"@@redux/INIT"+Qp(),REPLACE:"@@redux/REPLACE"+Qp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qp()}};function Z_(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function N_(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(V_(t))return"date";if(X_(t))return"error";var n=L_(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function L_(t){return typeof t.constructor=="function"?t.constructor.name:null}function X_(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function V_(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Er(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=N_(t)),e}function Ry(t,e,n){var i;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Lt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Lt(1):"Expected the enhancer to be a function. Instead, received: '"+Er(n)+"'");return n(Ry)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Lt(2):"Expected the root reducer to be a function. Instead, received: '"+Er(t)+"'");var r=t,s=e,o=[],a=o,l=!1;function c(){a===o&&(a=o.slice())}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?Lt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function d(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Lt(4):"Expected the listener to be a function. Instead, received: '"+Er(m)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?Lt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var g=!0;return c(),a.push(m),function(){if(g){if(l)throw new Error(process.env.NODE_ENV==="production"?Lt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,c();var v=a.indexOf(m);a.splice(v,1),o=null}}}function p(m){if(!Z_(m))throw new Error(process.env.NODE_ENV==="production"?Lt(7):"Actions must be plain objects. Instead, the actual type was: '"+Er(m)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?Lt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?Lt(9):"Reducers may not dispatch actions.");try{l=!0,s=r(s,m)}finally{l=!1}for(var g=o=a,O=0;O<g.length;O++){var v=g[O];v()}return m}function f(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Lt(10):"Expected the nextReducer to be a function. Instead, received: '"+Er(m));r=m,p({type:My.REPLACE})}function h(){var m,g=d;return m={subscribe:function(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?Lt(11):"Expected the observer to be an object. Instead, received: '"+Er(v)+"'");function x(){v.next&&v.next(u())}x();var b=g(x);return{unsubscribe:b}}},m[Dy]=function(){return this},m}return p({type:My.INIT}),i={dispatch:p,subscribe:d,getState:u,replaceReducer:f},i[Dy]=h,i}function oe(t,e,...n){if(W_()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let i;if(e===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;i=new Error(e.replace(/%s/g,function(){return n[r++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}function W_(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function q_(t,e,n){return e.split(".").reduce((i,r)=>i&&i[r]?i[r]:n||null,t)}function z_(t,e){return t.filter(n=>n!==e)}function _y(t){return typeof t=="object"}function Y_(t,e){const n=new Map,i=s=>{n.set(s,n.has(s)?n.get(s)+1:1)};t.forEach(i),e.forEach(i);const r=[];return n.forEach((s,o)=>{s===1&&r.push(o)}),r}function B_(t,e){return t.filter(n=>e.indexOf(n)>-1)}const Cp="dnd-core/INIT_COORDS",bl="dnd-core/BEGIN_DRAG",Ep="dnd-core/PUBLISH_DRAG_SOURCE",yl="dnd-core/HOVER",wl="dnd-core/DROP",Sl="dnd-core/END_DRAG";function Iy(t,e){return{type:Cp,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const U_={type:Cp,payload:{clientOffset:null,sourceClientOffset:null}};function F_(t){return function(n=[],i={publishSource:!0}){const{publishSource:r=!0,clientOffset:s,getSourceClientOffset:o}=i,a=t.getMonitor(),l=t.getRegistry();t.dispatch(Iy(s)),G_(n,a,l);const c=K_(n,a);if(c==null){t.dispatch(U_);return}let u=null;if(s){if(!o)throw new Error("getSourceClientOffset must be defined");H_(o),u=o(c)}t.dispatch(Iy(s,u));const p=l.getSource(c).beginDrag(a,c);if(p==null)return;J_(p),l.pinSource(c);const f=l.getSourceType(c);return{type:bl,payload:{itemType:f,item:p,sourceId:c,clientOffset:s||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function G_(t,e,n){oe(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(i){oe(n.getSource(i),"Expected sourceIds to be registered.")})}function H_(t){oe(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function J_(t){oe(_y(t),"Item must be an object.")}function K_(t,e){let n=null;for(let i=t.length-1;i>=0;i--)if(e.canDragSource(t[i])){n=t[i];break}return n}function e3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function t3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){e3(t,r,n[r])})}return t}function n3(t){return function(n={}){const i=t.getMonitor(),r=t.getRegistry();i3(i),o3(i).forEach((o,a)=>{const l=r3(o,a,r,i),c={type:wl,payload:{dropResult:t3({},n,l)}};t.dispatch(c)})}}function i3(t){oe(t.isDragging(),"Cannot call drop while not dragging."),oe(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function r3(t,e,n,i){const r=n.getTarget(t);let s=r?r.drop(i,t):void 0;return s3(s),typeof s>"u"&&(s=e===0?{}:i.getDropResult()),s}function s3(t){oe(typeof t>"u"||_y(t),"Drop result must either be an object or undefined.")}function o3(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function a3(t){return function(){const n=t.getMonitor(),i=t.getRegistry();l3(n);const r=n.getSourceId();return r!=null&&(i.getSource(r,!0).endDrag(n,r),i.unpinSource()),{type:Sl}}}function l3(t){oe(t.isDragging(),"Cannot call endDrag while not dragging.")}function jp(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function c3(t){return function(n,{clientOffset:i}={}){u3(n);const r=n.slice(0),s=t.getMonitor(),o=t.getRegistry(),a=s.getItemType();return p3(r,o,a),d3(r,s,o),f3(r,s,o),{type:yl,payload:{targetIds:r,clientOffset:i||null}}}}function u3(t){oe(Array.isArray(t),"Expected targetIds to be an array.")}function d3(t,e,n){oe(e.isDragging(),"Cannot call hover while not dragging."),oe(!e.didDrop(),"Cannot call hover after drop.");for(let i=0;i<t.length;i++){const r=t[i];oe(t.lastIndexOf(r)===i,"Expected targetIds to be unique in the passed array.");const s=n.getTarget(r);oe(s,"Expected targetIds to be registered.")}}function p3(t,e,n){for(let i=t.length-1;i>=0;i--){const r=t[i],s=e.getTargetType(r);jp(s,n)||t.splice(i,1)}}function f3(t,e,n){t.forEach(function(i){n.getTarget(i).hover(e,i)})}function h3(t){return function(){if(t.getMonitor().isDragging())return{type:Ep}}}function m3(t){return{beginDrag:F_(t),publishDragSource:h3(t),hover:c3(t),drop:n3(t),endDrag:a3(t)}}class g3{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function i(s){return(...o)=>{const a=s.apply(e,o);typeof a<"u"&&n(a)}}const r=m3(this);return Object.keys(r).reduce((s,o)=>{const a=r[o];return s[o]=i(a),s},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const i=this.store.getState().refCount>0;this.backend&&(i&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!i&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function v3(t,e){return{x:t.x+e.x,y:t.y+e.y}}function Zy(t,e){return{x:t.x-e.x,y:t.y-e.y}}function O3(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:i}=t;return!e||!n||!i?null:Zy(v3(e,i),n)}function x3(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:Zy(e,n)}const no=[],Ap=[];no.__IS_NONE__=!0,Ap.__IS_ALL__=!0;function b3(t,e){return t===no?!1:t===Ap||typeof e>"u"?!0:B_(e,t).length>0}class y3{subscribeToStateChange(e,n={}){const{handlerIds:i}=n;oe(typeof e=="function","listener must be a function."),oe(typeof i>"u"||Array.isArray(i),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;const s=()=>{const o=this.store.getState(),a=o.stateId;try{a===r||a===r+1&&!b3(o.dirtyHandlerIds,i)||e()}finally{r=a}};return this.store.subscribe(s)}subscribeToOffsetChange(e){oe(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const i=()=>{const r=this.store.getState().dragOffset;r!==n&&(n=r,e())};return this.store.subscribe(i)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return oe(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(oe(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const i=this.registry.getTargetType(e),r=this.getItemType();return jp(i,r)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(oe(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const i=this.registry.getSourceType(e),r=this.getItemType();return i!==r?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:i}=n;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),s=this.getItemType();if(s&&!jp(r,s))return!1;const o=this.getTargetIds();if(!o.length)return!1;const a=o.indexOf(e);return i?a===o.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return O3(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return x3(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const Ny=typeof global<"u"?global:self,Ly=Ny.MutationObserver||Ny.WebKitMutationObserver;function Xy(t){return function(){const n=setTimeout(r,0),i=setInterval(r,50);function r(){clearTimeout(n),clearInterval(i),t()}}}function w3(t){let e=1;const n=new Ly(t),i=document.createTextNode("");return n.observe(i,{characterData:!0}),function(){e=-e,i.data=e}}const S3=typeof Ly=="function"?w3:Xy;class P3{enqueueTask(e){const{queue:n,requestFlush:i}=this;n.length||(i(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let i=0,r=e.length-this.index;i<r;i++)e[i]=e[i+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=S3(this.flush),this.requestErrorThrow=Xy(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class k3{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class $3{create(e){const n=this.freeTasks,i=n.length?n.pop():new k3(this.onError,r=>n[n.length]=r);return i.task=e,i}constructor(e){this.onError=e,this.freeTasks=[]}}const Vy=new P3,T3=new $3(Vy.registerPendingError);function Q3(t){Vy.enqueueTask(T3.create(t))}const Dp="dnd-core/ADD_SOURCE",Mp="dnd-core/ADD_TARGET",Rp="dnd-core/REMOVE_SOURCE",Pl="dnd-core/REMOVE_TARGET";function C3(t){return{type:Dp,payload:{sourceId:t}}}function E3(t){return{type:Mp,payload:{targetId:t}}}function j3(t){return{type:Rp,payload:{sourceId:t}}}function A3(t){return{type:Pl,payload:{targetId:t}}}function D3(t){oe(typeof t.canDrag=="function","Expected canDrag to be a function."),oe(typeof t.beginDrag=="function","Expected beginDrag to be a function."),oe(typeof t.endDrag=="function","Expected endDrag to be a function.")}function M3(t){oe(typeof t.canDrop=="function","Expected canDrop to be a function."),oe(typeof t.hover=="function","Expected hover to be a function."),oe(typeof t.drop=="function","Expected beginDrag to be a function.")}function _p(t,e){if(e&&Array.isArray(t)){t.forEach(n=>_p(n,!1));return}oe(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Xt;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Xt||(Xt={}));let R3=0;function _3(){return R3++}function I3(t){const e=_3().toString();switch(t){case Xt.SOURCE:return`S${e}`;case Xt.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Wy(t){switch(t[0]){case"S":return Xt.SOURCE;case"T":return Xt.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function qy(t,e){const n=t.entries();let i=!1;do{const{done:r,value:[,s]}=n.next();if(s===e)return!0;i=!!r}while(!i);return!1}class Z3{addSource(e,n){_p(e),D3(n);const i=this.addHandler(Xt.SOURCE,e,n);return this.store.dispatch(C3(i)),i}addTarget(e,n){_p(e,!0),M3(n);const i=this.addHandler(Xt.TARGET,e,n);return this.store.dispatch(E3(i)),i}containsHandler(e){return qy(this.dragSources,e)||qy(this.dropTargets,e)}getSource(e,n=!1){return oe(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return oe(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return oe(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return oe(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Wy(e)===Xt.SOURCE}isTargetId(e){return Wy(e)===Xt.TARGET}removeSource(e){oe(this.getSource(e),"Expected an existing source."),this.store.dispatch(j3(e)),Q3(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){oe(this.getTarget(e),"Expected an existing target."),this.store.dispatch(A3(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);oe(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){oe(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,i){const r=I3(e);return this.types.set(r,n),e===Xt.SOURCE?this.dragSources.set(r,i):e===Xt.TARGET&&this.dropTargets.set(r,i),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const N3=(t,e)=>t===e;function L3(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function X3(t,e,n=N3){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!n(t[i],e[i]))return!1;return!0}function V3(t=no,e){switch(e.type){case yl:break;case Dp:case Mp:case Pl:case Rp:return no;case bl:case Ep:case Sl:case wl:default:return Ap}const{targetIds:n=[],prevTargetIds:i=[]}=e.payload,r=Y_(n,i);if(!(r.length>0||!X3(n,i)))return no;const o=i[i.length-1],a=n[n.length-1];return o!==a&&(o&&r.push(o),a&&r.push(a)),r}function W3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){W3(t,r,n[r])})}return t}const zy={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function z3(t=zy,e){const{payload:n}=e;switch(e.type){case Cp:case bl:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case yl:return L3(t.clientOffset,n.clientOffset)?t:q3({},t,{clientOffset:n.clientOffset});case Sl:case wl:return zy;default:return t}}function Y3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){Y3(t,r,n[r])})}return t}const B3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function U3(t=B3,e){const{payload:n}=e;switch(e.type){case bl:return jr({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Ep:return jr({},t,{isSourcePublic:!0});case yl:return jr({},t,{targetIds:n.targetIds});case Pl:return t.targetIds.indexOf(n.targetId)===-1?t:jr({},t,{targetIds:z_(t.targetIds,n.targetId)});case wl:return jr({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Sl:return jr({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function F3(t=0,e){switch(e.type){case Dp:case Mp:return t+1;case Rp:case Pl:return t-1;default:return t}}function G3(t=0){return t+1}function H3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){H3(t,r,n[r])})}return t}function K3(t={},e){return{dirtyHandlerIds:V3(t.dirtyHandlerIds,{type:e.type,payload:J3({},e.payload,{prevTargetIds:q_(t,"dragOperation.targetIds",[])})}),dragOffset:z3(t.dragOffset,e),refCount:F3(t.refCount,e),dragOperation:U3(t.dragOperation,e),stateId:G3(t.stateId)}}function eI(t,e=void 0,n={},i=!1){const r=tI(i),s=new y3(r,new Z3(r)),o=new g3(r,s),a=t(o,e,n);return o.receiveBackend(a),o}function tI(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Ry(K3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function nI(t,e){if(t==null)return{};var n=iI(t,e),i,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function iI(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}let Yy=0;const kl=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var rI=P.memo(function(e){var{children:n}=e,i=nI(e,["children"]);const[r,s]=sI(i);return P.useEffect(()=>{if(s){const o=By();return++Yy,()=>{--Yy===0&&(o[kl]=null)}}},[]),S.jsx(Ay.Provider,{value:r,children:n})});function sI(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=oI(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function oI(t,e=By(),n,i){const r=e;return r[kl]||(r[kl]={dragDropManager:eI(t,e,n,i)}),r[kl]}function By(){return typeof global<"u"?global:window}var aI=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,r,s;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(r=i;r--!==0;)if(!t(e[r],n[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(s=Object.keys(e),i=s.length,i!==Object.keys(n).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[r]))return!1;for(r=i;r--!==0;){var o=s[r];if(!t(e[o],n[o]))return!1}return!0}return e!==e&&n!==n};const lI=uo(aI),Yi=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Uy(t,e,n){const[i,r]=P.useState(()=>e(t)),s=P.useCallback(()=>{const o=e(t);lI(i,o)||(r(o),n&&n())},[i,t,n]);return Yi(s),[i,s]}function cI(t,e,n){const[i,r]=Uy(t,e,n);return Yi(function(){const o=t.getHandlerId();if(o!=null)return t.subscribeToStateChange(r,{handlerIds:[o]})},[t,r]),i}function Fy(t,e,n){return cI(e,t||(()=>({})),()=>n.reconnect())}function Gy(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),P.useMemo(()=>typeof t=="function"?t():t,n)}function uI(t){return P.useMemo(()=>t.hooks.dragSource(),[t])}function dI(t){return P.useMemo(()=>t.hooks.dragPreview(),[t])}let Ip=!1,Zp=!1;class pI{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){oe(!Ip,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ip=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ip=!1}}isDragging(){if(!this.sourceId)return!1;oe(!Zp,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Zp=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Zp=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Np=!1;class fI{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;oe(!Np,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Np=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Np=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function hI(t,e,n){const i=n.getRegistry(),r=i.addTarget(t,e);return[r,()=>i.removeTarget(r)]}function mI(t,e,n){const i=n.getRegistry(),r=i.addSource(t,e);return[r,()=>i.removeSource(r)]}function Lp(t,e,n,i){let r=n?n.call(i,t,e):void 0;if(r!==void 0)return!!r;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const s=Object.keys(t),o=Object.keys(e);if(s.length!==o.length)return!1;const a=Object.prototype.hasOwnProperty.bind(e);for(let l=0;l<s.length;l++){const c=s[l];if(!a(c))return!1;const u=t[c],d=e[c];if(r=n?n.call(i,u,d,c):void 0,r===!1||r===void 0&&u!==d)return!1}return!0}function Xp(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function gI(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function vI(t){return(e=null,n=null)=>{if(!P.isValidElement(e)){const s=e;return t(s,n),s}const i=e;return gI(i),OI(i,n?s=>t(s,n):t)}}function Hy(t){const e={};return Object.keys(t).forEach(n=>{const i=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const r=vI(i);e[n]=()=>r}}),e}function Jy(t,e){typeof t=="function"?t(e):t.current=e}function OI(t,e){const n=t.ref;return oe(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?P.cloneElement(t,{ref:i=>{Jy(n,i),Jy(e,i)}}):P.cloneElement(t,{ref:e})}class xI{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,i=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Lp(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Lp(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Hy({dragSource:(n,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,Xp(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,Xp(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class bI{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Lp(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Hy({dropTarget:(n,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,Xp(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Vn(){const{dragDropManager:t}=P.useContext(Ay);return oe(t!=null,"Expected drag drop context"),t}function yI(t,e){const n=Vn(),i=P.useMemo(()=>new xI(n.getBackend()),[n]);return Yi(()=>(i.dragSourceOptions=t||null,i.reconnect(),()=>i.disconnectDragSource()),[i,t]),Yi(()=>(i.dragPreviewOptions=e||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,e]),i}function wI(){const t=Vn();return P.useMemo(()=>new pI(t),[t])}class SI{beginDrag(){const e=this.spec,n=this.monitor;let i=null;return typeof e.item=="object"?i=e.item:typeof e.item=="function"?i=e.item(n):i={},i??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const i=this.spec,r=this.monitor,{isDragging:s}=i;return s?s(r):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,i=this.connector,{end:r}=e;r&&r(n.getItem(),n),i.reconnect()}constructor(e,n,i){this.spec=e,this.monitor=n,this.connector=i}}function PI(t,e,n){const i=P.useMemo(()=>new SI(t,e,n),[e,n]);return P.useEffect(()=>{i.spec=t},[t]),i}function kI(t){return P.useMemo(()=>{const e=t.type;return oe(e!=null,"spec.type must be defined"),e},[t])}function $I(t,e,n){const i=Vn(),r=PI(t,e,n),s=kI(t);Yi(function(){if(s!=null){const[a,l]=mI(s,r,i);return e.receiveHandlerId(a),n.receiveHandlerId(a),l}},[i,e,n,r,s])}function TI(t,e){const n=Gy(t,e);oe(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const i=wI(),r=yI(n.options,n.previewOptions);return $I(n,i,r),[Fy(n.collect,i,r),uI(r),dI(r)]}function QI(t){const n=Vn().getMonitor(),[i,r]=Uy(n,t);return P.useEffect(()=>n.subscribeToOffsetChange(r)),P.useEffect(()=>n.subscribeToStateChange(r)),i}function CI(t){return P.useMemo(()=>t.hooks.dropTarget(),[t])}function EI(t){const e=Vn(),n=P.useMemo(()=>new bI(e.getBackend()),[e]);return Yi(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function jI(){const t=Vn();return P.useMemo(()=>new fI(t),[t])}function AI(t){const{accept:e}=t;return P.useMemo(()=>(oe(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class DI{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function MI(t,e){const n=P.useMemo(()=>new DI(t,e),[e]);return P.useEffect(()=>{n.spec=t},[t]),n}function RI(t,e,n){const i=Vn(),r=MI(t,e),s=AI(t);Yi(function(){const[a,l]=hI(s,r,i);return e.receiveHandlerId(a),n.receiveHandlerId(a),l},[i,e,r,n,s.map(o=>o.toString()).join("|")])}function Ky(t,e){const n=Gy(t,e),i=jI(),r=EI(n.options);return RI(n,i,r),[Fy(n.collect,i,r),CI(r)]}function Vp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _I(t,e,n){II(t,e),e.set(t,n)}function II(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $l(t,e){var n=ew(t,e,"get");return ZI(t,n)}function ZI(t,e){return e.get?e.get.call(t):e.value}function NI(t,e,n){var i=ew(t,e,"set");return LI(t,i,n),n}function ew(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function LI(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}var Ar=new WeakMap;class XI{constructor(){_I(this,Ar,{writable:!0,value:void 0}),Vp(this,"register",e=>{$l(this,Ar).push(e)}),Vp(this,"unregister",e=>{let n;for(;(n=$l(this,Ar).indexOf(e))!==-1;)$l(this,Ar).splice(n,1)}),Vp(this,"backendChanged",e=>{for(const n of $l(this,Ar))n.backendChanged(e)}),NI(this,Ar,[])}}function sn(t,e,n){VI(t,e),e.set(t,n)}function VI(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ae(t,e){var n=tw(t,e,"get");return WI(t,n)}function WI(t,e){return e.get?e.get.call(t):e.value}function Dr(t,e,n){var i=tw(t,e,"set");return qI(t,i,n),n}function tw(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function qI(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}var Vt=new WeakMap,Tl=new WeakMap,Wt=new WeakMap,mi=new WeakMap,Bi=new WeakMap,nw=new WeakMap,iw=new WeakMap,rw=new WeakMap,Wp=new WeakMap,qp=new WeakMap,Ql=new WeakMap;class Mr{constructor(e,n,i){if(sn(this,Vt,{writable:!0,value:void 0}),sn(this,Tl,{writable:!0,value:void 0}),sn(this,Wt,{writable:!0,value:void 0}),sn(this,mi,{writable:!0,value:void 0}),sn(this,Bi,{writable:!0,value:void 0}),sn(this,nw,{writable:!0,value:(r,s,o)=>{var a,l;if(!o.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(o)));const c=o.backend(r,s,o.options);let u=o.id;const d=!o.id&&c&&c.constructor;if(d&&(u=c.constructor.name),u)d&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
757
+ This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(o),`
758
+ see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(ae(this,Wt)[u])throw new Error(`You must specify a unique 'id' property in your Backend entry:
759
+ `.concat(JSON.stringify(o)," (conflicts with: ").concat(JSON.stringify(ae(this,Wt)[u]),")"));return{id:u,instance:c,preview:(a=o.preview)!==null&&a!==void 0?a:!1,transition:o.transition,skipDispatchOnTransition:(l=o.skipDispatchOnTransition)!==null&&l!==void 0?l:!1}}}),Qn(this,"setup",()=>{if(!(typeof window>"u")){if(Mr.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Mr.isSetUp=!0,ae(this,iw).call(this,window),ae(this,Wt)[ae(this,Vt)].instance.setup()}}),Qn(this,"teardown",()=>{typeof window>"u"||(Mr.isSetUp=!1,ae(this,rw).call(this,window),ae(this,Wt)[ae(this,Vt)].instance.teardown())}),Qn(this,"connectDragSource",(r,s,o)=>ae(this,Ql).call(this,"connectDragSource",r,s,o)),Qn(this,"connectDragPreview",(r,s,o)=>ae(this,Ql).call(this,"connectDragPreview",r,s,o)),Qn(this,"connectDropTarget",(r,s,o)=>ae(this,Ql).call(this,"connectDropTarget",r,s,o)),Qn(this,"profile",()=>ae(this,Wt)[ae(this,Vt)].instance.profile()),Qn(this,"previewEnabled",()=>ae(this,Wt)[ae(this,Vt)].preview),Qn(this,"previewsList",()=>ae(this,Tl)),Qn(this,"backendsList",()=>ae(this,mi)),sn(this,iw,{writable:!0,value:r=>{ae(this,mi).forEach(s=>{s.transition&&r.addEventListener(s.transition.event,ae(this,Wp))})}}),sn(this,rw,{writable:!0,value:r=>{ae(this,mi).forEach(s=>{s.transition&&r.removeEventListener(s.transition.event,ae(this,Wp))})}}),sn(this,Wp,{writable:!0,value:r=>{const s=ae(this,Vt);if(ae(this,mi).some(a=>a.id!==ae(this,Vt)&&a.transition&&a.transition.check(r)?(Dr(this,Vt,a.id),!0):!1),ae(this,Vt)!==s){var o;ae(this,Wt)[s].instance.teardown(),Object.keys(ae(this,Bi)).forEach(u=>{const d=ae(this,Bi)[u];d.unsubscribe(),d.unsubscribe=ae(this,qp).call(this,d.func,...d.args)}),ae(this,Tl).backendChanged(this);const a=ae(this,Wt)[ae(this,Vt)];if(a.instance.setup(),a.skipDispatchOnTransition)return;const l=r.constructor,c=new l(r.type,r);(o=r.target)===null||o===void 0||o.dispatchEvent(c)}}}),sn(this,qp,{writable:!0,value:(r,s,o,a)=>ae(this,Wt)[ae(this,Vt)].instance[r](s,o,a)}),sn(this,Ql,{writable:!0,value:(r,s,o,a)=>{const l="".concat(r,"_").concat(s),c=ae(this,qp).call(this,r,s,o,a);return ae(this,Bi)[l]={func:r,args:[s,o,a],unsubscribe:c},()=>{ae(this,Bi)[l].unsubscribe(),delete ae(this,Bi)[l]}}}),!i||!i.backends||i.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
760
+ see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Dr(this,Tl,new XI),Dr(this,Wt,{}),Dr(this,mi,[]),i.backends.forEach(r=>{const s=ae(this,nw).call(this,e,n,r);ae(this,Wt)[s.id]=s,ae(this,mi).push(s)}),Dr(this,Vt,ae(this,mi)[0].id),Dr(this,Bi,{})}}Qn(Mr,"isSetUp",!1);const zI=(t,e,n)=>new Mr(t,e,n),sw=(t,e)=>({event:t,check:e}),YI=sw("touchstart",t=>{const e=t;return e.touches!==null&&e.touches!==void 0}),BI=sw("pointerdown",t=>t.pointerType=="mouse");var gi;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(gi||(gi={}));class UI{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,i,r;return(r=(i=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&i!==void 0?i:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&r!==void 0?r:0}get delayMouseStart(){var e,n,i,r;return(r=(i=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&i!==void 0?i:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&r!==void 0?r:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function FI(t,e,n,i){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(i-e),2))}function GI(t,e,n,i,r){if(!r)return!1;const s=Math.atan2(i-e,n-t)*180/Math.PI+180;for(let o=0;o<r.length;++o){const a=r[o];if(a&&(a.start==null||s>=a.start)&&(a.end==null||s<=a.end))return!0}return!1}const HI={Left:1,Right:2,Center:4},JI={Left:0,Center:1,Right:2};function zp(t){return t.button===void 0||t.button===JI.Left}function KI(t){return t.buttons===void 0||(t.buttons&HI.Left)===0}function ow(t){return!!t.targetTouches}const eZ=1;function tZ(t){const e=t.nodeType===eZ?t:t.parentElement;if(!e)return;const{top:n,left:i}=e.getBoundingClientRect();return{x:i,y:n}}function nZ(t,e){if(t.targetTouches.length===1)return Cl(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return Cl(t.touches[0])}function Cl(t,e){return ow(t)?nZ(t,e):{x:t.clientX,y:t.clientY}}const aw=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),io={[gi.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[gi.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[gi.keyboard]:{keydown:"keydown"}};class ro{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(oe(!ro.isSetUp,"Cannot have two Touch backends at the same time."),ro.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(ro.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,n,i,r=!1){const s=aw?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(o){const a=io[o][n];a&&e.addEventListener(a,i,s)})}removeEventListener(e,n,i,r=!1){const s=aw?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(o){const a=io[o][n];a&&e.removeEventListener(a,i,s)})}connectDragSource(e,n){const i=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",i),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",i)}}connectDragPreview(e,n,i){return this.sourcePreviewNodeOptions.set(e,i),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const i=this.options.rootElement;if(!this.document||!i)return()=>{};const r=s=>{if(!this.document||!i||!this.monitor.isDragging())return;let o;switch(s.type){case io.mouse.move:o={x:s.clientX,y:s.clientY};break;case io.touch.move:var a,l;o={x:((a=s.touches[0])===null||a===void 0?void 0:a.clientX)||0,y:((l=s.touches[0])===null||l===void 0?void 0:l.clientY)||0};break}const c=o!=null?this.document.elementFromPoint(o.x,o.y):void 0,u=c&&n.contains(c);if(c===n||u)return this.handleMove(s,e)};return this.addEventListener(this.document.body,"move",r),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",r))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,i){this.getSourceClientOffset=r=>{const s=this.sourceNodes.get(r);return s&&tZ(s)},this.handleTopMoveStartCapture=r=>{zp(r)&&(this.moveStartSourceIds=[])},this.handleMoveStart=r=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(r)},this.handleTopMoveStart=r=>{if(!zp(r))return;const s=Cl(r);s&&(ow(r)&&(this.lastTargetTouchFallback=r.targetTouches[0]),this._mouseClientOffset=s),this.waitingForDelay=!1},this.handleTopMoveStartDelay=r=>{if(!zp(r))return;const s=r.type===io.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,r),s),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(r,s)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(s)},this.handleTopMove=r=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:s,dragOverTargetIds:o}=this,a=this.options.enableHoverOutsideTarget,l=Cl(r,this.lastTargetTouchFallback);if(!l)return;if(this._isScrolling||!this.monitor.isDragging()&&GI(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&s&&FI(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(s,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),r.cancelable&&r.preventDefault();const u=(o||[]).map(h=>this.targetNodes.get(h)).filter(h=>!!h),d=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(l.x,l.y,u):this.document.elementsFromPoint(l.x,l.y),p=[];for(const h in d){if(!d.hasOwnProperty(h))continue;let m=d[h];for(m!=null&&p.push(m);m;)m=m.parentElement,m&&p.indexOf(m)===-1&&p.push(m)}const f=p.filter(h=>u.indexOf(h)>-1).map(h=>this._getDropTargetId(h)).filter(h=>!!h).filter((h,m,g)=>g.indexOf(h)===m);if(a)for(const h in this.targetNodes){const m=this.targetNodes.get(h);if(c&&m&&m.contains(c)&&f.indexOf(h)===-1){f.unshift(h);break}}f.reverse(),this.actions.hover(f,{clientOffset:l})},this._getDropTargetId=r=>{const s=this.targetNodes.keys();let o=s.next();for(;o.done===!1;){const a=o.value;if(r===this.targetNodes.get(a))return a;o=s.next()}},this.handleTopMoveEndCapture=r=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!KI(r)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}r.cancelable&&r.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=r=>{r.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new UI(i,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(gi.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(gi.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(gi.keyboard)}}const iZ=function(e,n={},i={}){return new ro(e,n,i)};var qt=function(){return qt=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},qt.apply(this,arguments)};function ht(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}function rZ(t){var e=t.isVisible,n=t.ease,i=n===void 0?"easeIn":n,r=t.duration,s=t.variants,o=s===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:s,a=t.children,l=D_({polyfill:nD}),c=l[0],u=l[1].height,d=P.useState(e),p=d[0],f=d[1],h=P.useState(e),m=h[0],g=h[1],O=P.useState(!1),v=O[0],x=O[1],b=function(){x(!1),e||f(!1)};return P.useEffect(function(){x(!0),e?f(!0):g(!1)},[e]),P.useEffect(function(){p&&g(!0)},[u]),P.createElement(j_.div,{style:v?{overflow:"hidden"}:void 0,onAnimationComplete:b,initial:m?"open":"close",animate:m?"open":"close",inherit:!1,variants:o,transition:{ease:i,duration:sZ(u,r)}},P.createElement("div",{ref:c},p&&a))}function sZ(t,e){if(e)return e;if(!t)return 0;var n=t/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var oZ=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},so=function(t,e){return t.find(function(n){return n.id===e})},lw=function(t,e,n){if(n===0)return!1;var i=t.find(function(r){return r.id===n});return i===void 0?!1:i.parent===e?!0:lw(t,e,i.parent)},Yp=function(t){return t.id!==void 0&&t.parent!==void 0&&t.text!==void 0},vi=function(t,e,n){var i=n.tree,r=n.rootId,s=n.canDrop;if(t===null){if(e===r)return!0;var o=i.find(function(u){return u.id===e});return!!(o&&o.droppable)}else{var a=Yp(t)?t.id:null;if(s){var l=s(a,e);if(l!==void 0)return l}if(a===e)return!1;var c=i.find(function(d){return d.id===a}),o=i.find(function(d){return d.id===e});return c===void 0||a===null?e===r||!!(o!=null&&o.droppable):o===void 0?c.parent!==0:c.parent===e||!o.droppable?!1:!lw(i,a,e)}},aZ=function(t,e,n){return t.map(function(i){return i.id===e?qt(qt({},i),{parent:n}):i})},cw=function(t,e,n){if(n===0)return 0;var i=t.filter(function(r){return r.parent===e});return i[n]?t.findIndex(function(r){return r.id===i[n].id}):t.findIndex(function(r){return r.id===i[n-1].id})+1},lZ=function(t,e){return t.findIndex(function(n){return n.id===e})},uw=function(t,e,n,i){var r=lZ(t,e),s=cw(t,n,i);return s=s>r?s-1:s,[r,s]},cZ=function(t,e,n){var i=e<0?t.length+e:e;if(i>=0&&i<t.length){var r=n<0?t.length+n:n,s=t.splice(e,1)[0];t.splice(r,0,s)}},uZ=function(t,e,n,i){var r=uw(t,e,n,i),s=r[0],o=r[1],a=ht([],t,!0);return cZ(a,s,o),a.map(function(l){return l.id===e?qt(qt({},l),{parent:n}):l})},dZ=function(t,e){var n=t.getBoundingClientRect(),i=n.top+n.height/2;return e>i?"down":"up"},Bp=function(t,e){var n="",i=0;return t.forEach(function(r,s){var o,a=dZ(r,((o=e.getClientOffset())===null||o===void 0?void 0:o.y)||0);n===""?n=a:n!==a&&(n=a,i=s),s===t.length-1&&a==="down"&&(i=s+1)}),i},dw=function(t,e,n){var i=e.closest('[role="list"]'),r=i==null?void 0:i.querySelectorAll(':scope > [role="listitem"]');return r?Bp(r,n):null},pZ=function(t,e,n){var i=t.getBoundingClientRect(),r=n.dropTargetOffset,s=i.top+r,o=i.bottom-r;return e>o?"lower":e<s?"upper":"middle"},Up=function(t,e,n,i){var r;if(!e)return null;if(t===null){var s=e.querySelectorAll(':scope > [role="listitem"]');return{id:i.rootId,index:Bp(s,n)}}var o=n.getItem(),a=e.querySelector('[role="list"]'),l=pZ(e,((r=n.getClientOffset())===null||r===void 0?void 0:r.y)||0,i);if(a){if(l==="upper")if(vi(o,t.parent,i)){var c=dw(t,e,n);return c===null?null:{id:t.parent,index:c}}else return{id:t.id,index:0};var s=a.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:Bp(s,n)}}else{if(l==="middle")return{id:t.id,index:0};if(vi(o,t.parent,i)){var c=dw(t,e,n);return c===null?null:{id:t.parent,index:c}}return null}},fZ=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:RA,options:t.html5,transition:BI},{id:"touch",backend:iZ,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:YI}]}},El=function(t,e){return t.some(function(n){return n.parent===e})},pw=P.createContext({}),hZ=function(t){var e=SZ(t.tree,t.initialOpen),n=e[0],i=e[1],r=i.handleToggle,s=i.handleCloseAll,o=i.handleOpenAll,a=i.handleOpen,l=i.handleClose;P.useImperativeHandle(t.treeRef,function(){return{open:function(f){return a(f,t.onChangeOpen)},close:function(f){return l(f,t.onChangeOpen)},openAll:function(){return o(t.onChangeOpen)},closeAll:function(){return s(t.onChangeOpen)}}});var c=Vn().getMonitor(),u=t.canDrop,d=t.canDrag,p=qt(qt({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(f,h,m){if(f){var g={dragSourceId:f.id,dropTargetId:h,dragSource:f,dropTarget:so(t.tree,h),monitor:c},O=t.tree;if(so(O,f.id)||(O=ht(ht([],O,!0),[f],!1)),t.sort===!1){var v=uw(O,f.id,h,m),x=v[1];g.destinationIndex=x,g.relativeIndex=m,t.onDrop(uZ(O,f.id,h,m),g);return}t.onDrop(aZ(O,f.id,h),g)}else{var g={dropTargetId:h,dropTarget:so(t.tree,h),monitor:c};t.sort===!1&&(g.destinationIndex=cw(t.tree,h,m),g.relativeIndex=m),t.onDrop(t.tree,g)}},canDrop:u?function(f,h){return u(t.tree,{dragSourceId:f??void 0,dropTargetId:h,dragSource:c.getItem(),dropTarget:so(t.tree,h),monitor:c})}:void 0,canDrag:d?function(f){return d(so(t.tree,f))}:void 0,onToggle:function(f){return r(f,t.onChangeOpen)}});return P.createElement(pw.Provider,{value:p},t.children)},fw=P.createContext({}),mZ={isLock:!1},gZ=function(t){var e=P.useState(mZ.isLock),n=e[0],i=e[1];return P.createElement(fw.Provider,{value:{isLock:n,lock:function(){return i(!0)},unlock:function(){return i(!1)}}},t.children)},oo=P.createContext({}),jl={dropTargetId:void 0,index:void 0},vZ=function(t){var e=P.useState(jl.dropTargetId),n=e[0],i=e[1],r=P.useState(jl.index),s=r[0],o=r[1],a=function(c,u){i(c),o(u)},l=function(){i(jl.dropTargetId),o(jl.index)};return P.createElement(oo.Provider,{value:{dropTargetId:n,index:s,showPlaceholder:a,hidePlaceholder:l}},t.children)},OZ=function(t){return P.createElement(hZ,qt({},t),P.createElement(gZ,null,P.createElement(vZ,null,t.children)))},xZ=function(t){var e=P.useContext(fw);P.useEffect(function(){if(t.current){var n=t.current,i=function(u){var d=u.target;(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement)&&e.lock()},r=function(u){var d=u.target;(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement)&&e.unlock()},s=function(u){return i(u)},o=function(u){return r(u)},a=function(u){return i(u)},l=function(u){return r(u)},c=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return c.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",s),n.addEventListener("mouseout",o),n.addEventListener("focusin",a),n.addEventListener("focusout",l),function(){c.disconnect(),n.removeEventListener("mouseover",s),n.removeEventListener("mouseout",o),n.removeEventListener("focusin",a),n.removeEventListener("focusout",l)}}},[t,e]),P.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},Al={TREE_ITEM:Symbol()},hw=null,mw=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(hw=n)}},gw=function(t){return mw(t)},vw=function(t){return mw(t)},bZ=function(t,e){var n=Oi();P.useEffect(function(){var a=e.current;return a==null||a.addEventListener("dragstart",gw),a==null||a.addEventListener("touchstart",vw,{passive:!0}),function(){a==null||a.removeEventListener("dragstart",gw),a==null||a.removeEventListener("touchstart",vw)}},[e]);var i=TI({type:Al.TREE_ITEM,item:function(a){var l=qt({ref:e},t);return n.onDragStart&&n.onDragStart(l,a),l},end:function(a,l){var c=a;n.onDragEnd&&n.onDragEnd(c,l)},canDrag:function(){var a=n.canDrag;return hw!==e.current?!1:a?a(t.id):!0},collect:function(a){return{isDragging:a.isDragging()}}}),r=i[0].isDragging,s=i[1],o=i[2];return[r,s,o]},yZ=function(t){var e=Oi(),n=P.useContext(oo),i=Ky({accept:ht([Al.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(l,c){var u=e.rootId,d=e.onDrop,p=n.dropTargetId,f=n.index;c.isOver({shallow:!0})&&p!==void 0&&f!==void 0&&d(Yp(l)?l:null,u,f),n.hidePlaceholder()},canDrop:function(l,c){var u=e.rootId;return c.isOver({shallow:!0})?l===void 0?!1:vi(l,u,e):!1},hover:function(l,c){if(c.isOver({shallow:!0})){var u=e.rootId,d=n.dropTargetId,p=n.index,f=n.showPlaceholder,h=n.hidePlaceholder,m=Up(null,t.current,c,e);if(m===null||!vi(l,u,e)){h();return}(m.id!==d||m.index!==p)&&f(m.id,m.index)}},collect:function(l){var c=l.getItem();return{isOver:l.isOver({shallow:!0})&&l.canDrop(),dragSource:c}}}),r=i[0],s=r.isOver,o=r.dragSource,a=i[1];return[s,o,a]},wZ=function(t,e){var n=Oi(),i=P.useContext(oo),r=Ky({accept:ht([Al.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(c,u){var d=i.dropTargetId,p=i.index;u.isOver({shallow:!0})&&d!==void 0&&p!==void 0&&n.onDrop(Yp(c)?c:null,d,p),i.hidePlaceholder()},canDrop:function(c,u){if(u.isOver({shallow:!0})){var d=Up(t,e.current,u,n);return d===null?!1:vi(c,d.id,n)}return!1},hover:function(c,u){if(u.isOver({shallow:!0})){var d=i.dropTargetId,p=i.index,f=i.showPlaceholder,h=i.hidePlaceholder,m=Up(t,e.current,u,n);if(m===null||!vi(c,m.id,n)){h();return}(m.id!==d||m.index!==p)&&f(m.id,m.index)}},collect:function(c){var u=c.getItem();return{isOver:c.isOver({shallow:!0})&&c.canDrop(),dragSource:u}}}),s=r[0],o=s.isOver,a=s.dragSource,l=r[1];return[o,a,l]},SZ=function(t,e){var n=P.useMemo(function(){return e===!0?t.filter(function(d){return El(t,d.id)}).map(function(d){return d.id}):Array.isArray(e)?e:[]},[e]),i=P.useState(n),r=i[0],s=i[1];P.useEffect(function(){return s(n)},[e]);var o=function(d,p){var f=r.includes(d)?r.filter(function(h){return h!==d}):ht(ht([],r,!0),[d],!1);s(f),p&&p(f)},a=function(d){s([]),d&&d([])},l=function(d){var p=t.filter(function(f){return El(t,f.id)}).map(function(f){return f.id});s(p),d&&d(p)},c=function(d,p){var f=[];if(Array.isArray(d)){var h=t.filter(function(m){return d.includes(m.id)&&El(t,m.id)});f=ht(ht([],r,!0),h.map(function(m){return m.id}),!0).filter(function(m,g,O){return O.indexOf(m)===g})}else f=r.includes(d)?r:ht(ht([],r,!0),[d],!1);s(f),p&&p(f)},u=function(d,p){var f=r.filter(function(h){return Array.isArray(d)?!d.includes(h):h!==d});s(f),p&&p(f)};return[r,{handleToggle:o,handleCloseAll:a,handleOpenAll:l,handleOpen:c,handleClose:u}]},PZ=function(){return QI(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===Al.TREE_ITEM}})},Oi=function(){var t=P.useContext(pw);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},kZ=function(t,e){var n=Oi(),i=n.rootId,r=n.rootProps,s=n.classes,o=(s==null?void 0:s.container)||"";return e&&(s!=null&&s.dropTarget)&&(o="".concat(o," ").concat(s.dropTarget)),t===i&&(s!=null&&s.root)&&(o="".concat(o," ").concat(s.root)),t===i&&(r!=null&&r.className)&&(o="".concat(o," ").concat(r.className)),o=o.trim(),o},$Z=function(t,e,n){e.current?n(e):n(t),P.useEffect(function(){e.current?n(e):n(t)},[e.current])},TZ=function(t){var e=Oi(),n=P.useContext(oo),i=P.useRef(null),r=P.useRef(null),s=e.tree.find(function(T){return T.id===t.id}),o=e.openIds,a=e.classes,l=e.enableAnimateExpand,c=o.includes(t.id),u=bZ(s,i),d=u[0],p=u[1],f=u[2],h=wZ(s,i),m=h[0],g=h[1],O=h[2];$Z(i,r,p),vi(g,t.id,e)&&O(i),P.useEffect(function(){e.dragPreviewRender?f(MA(),{captureDraggingState:!0}):r.current&&f(i)},[f,e.dragPreviewRender]),xZ(i);var v=function(){return e.onToggle(s.id)},x=e.listItemComponent,b=(a==null?void 0:a.listItem)||"";m&&(a!=null&&a.dropTarget)&&(b="".concat(b," ").concat(a.dropTarget)),d&&(a!=null&&a.draggingSource)&&(b="".concat(b," ").concat(a.draggingSource));var w=e.canDrag?e.canDrag(t.id):!0,y=n.dropTargetId===t.id,k={depth:t.depth,isOpen:c,isDragging:d,isDropTarget:y,draggable:w,hasChild:El(e.tree,t.id),containerRef:i,handleRef:r,onToggle:v};return P.createElement(x,{ref:i,className:b,role:"listitem"},e.render(s,k),l&&k.hasChild&&P.createElement(rZ,{isVisible:c},P.createElement(Fp,{parentId:t.id,depth:t.depth+1})),!l&&k.hasChild&&c&&P.createElement(Fp,{parentId:t.id,depth:t.depth+1}))},Ow=function(t){var e=Oi(),n=e.placeholderRender,i=e.placeholderComponent,r=e.classes,s=P.useContext(oo),o=Vn(),a=o.getMonitor(),l=a.getItem();if(!n||!l)return null;var c=t.dropTargetId===s.dropTargetId&&(t.index===s.index||t.index===void 0&&t.listCount===s.index);return c?P.createElement(i,{className:(r==null?void 0:r.placeholder)||""},n(l,{depth:t.depth})):null},Fp=function(t){var e=Oi(),n=P.useRef(null),i=e.tree.filter(function(m){return m.parent===t.parentId}),r=i,s=typeof e.sort=="function"?e.sort:oZ;if(e.insertDroppableFirst){var o=i.filter(function(m){return m.droppable}),a=i.filter(function(m){return!m.droppable});e.sort===!1?r=ht(ht([],o,!0),a,!0):(o=o.sort(s),a=a.sort(s),r=ht(ht([],o,!0),a,!0))}else e.sort!==!1&&(r=i.sort(s));var l=yZ(n),c=l[0],u=l[1],d=l[2];t.parentId===e.rootId&&vi(u,e.rootId,e)&&d(n);var p=kZ(t.parentId,c),f=e.rootProps||{},h=e.listComponent;return P.createElement(h,qt({ref:n,role:"list"},f,{className:p}),r.map(function(m,g){return P.createElement(P.Fragment,{key:m.id},P.createElement(Ow,{depth:t.depth,listCount:r.length,dropTargetId:t.parentId,index:g}),P.createElement(TZ,{id:m.id,depth:t.depth}))}),P.createElement(Ow,{depth:t.depth,listCount:r.length,dropTargetId:t.parentId}))},QZ={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},CZ=function(t){var e=t.clientOffset;if(!e)return{};var n=e.x,i=e.y,r="translate(".concat(n,"px, ").concat(i,"px)");return{pointerEvents:"none",transform:r}},EZ=function(){var t=Oi(),e=PZ(),n=e.isDragging,i=e.clientOffset;return!n||!i?null:P.createElement("div",{style:QZ},P.createElement("div",{style:CZ(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function jZ(t,e){return P.createElement(OZ,qt({},t,{treeRef:e}),t.dragPreviewRender&&P.createElement(EZ,null),P.createElement(Fp,{parentId:t.rootId,depth:0}))}var AZ=P.forwardRef(jZ);const DZ=({onSubmit:t,onBlur:e,isDirectory:n,files:i,currentPath:r="/"})=>{const[s,o]=P.useState(""),a=P.useRef(null),[l,c]=P.useState(!1);P.useEffect(()=>{s&&(i[`${r}/${s}`]||i[`${r}/${s}/`])?c(!0):c(!1)},[s]);const u=f=>{f.preventDefault()},d=()=>{if(s){let f=s;n&&!s.endsWith("/")?f=`${s}/`:s.endsWith("/")&&(f=s.substring(0,-1)),t(f),o("")}else e()},p=f=>{if(l)return;let h=s;n&&!s.endsWith("/")?h=`${s}/`:s.endsWith("/")&&(h=s.substring(0,-1)),f.key==="Enter"&&(f.preventDefault(),t(h),o("")),f.key==="Escape"&&(f.preventDefault(),d())};return S.jsxs("form",{ref:a,onSubmit:u,children:[S.jsx("label",{children:S.jsx("input",{style:{maxWidth:"100%",border:`1px solid ${l?"red":"inherit"}`},onBlur:d,maxLength:35,autoFocus:!0,placeholder:`${n?"Directory name":"File name"}`,name:"name",type:"text",value:s,onChange:f=>o(f.target.value),onKeyDown:p})}),l?S.jsx("span",{style:{display:"block",maxWidth:"100%",background:"var(--sp-colors-errorSurface)",color:"var(--sp-colors-error)",borderRadius:"3px"},children:"File or Directory already exists"}):null]})},xw=({dir:t})=>{const{sandpack:e}=Ce(),{addFile:n}=yx();return S.jsx("span",{style:{cursor:"pointer"},onClick:()=>{const i=e.activeFile.split("/").slice(0,-1).join("/");n({[`${i}/${t?"addDir":"addFile"}`]:{code:".emptyDir",hidden:!0}})},children:t?S.jsx(ZO,{}):S.jsx(NO,{})})},MZ=()=>{const{treeData:t,addFile:e,deleteFile:n,onFileMoved:i,setTreeData:r,openDirs:s,setOpenDirs:o}=yx(),{sandpack:a}=Ce(),l=["/package.json"],c=async(d,p)=>{var m,g,O,v;const f=Ox(a.files),h=`/${Ni({parent:p.dropTargetId,text:((m=p==null?void 0:p.dragSource)==null?void 0:m.text)||p.dragSourceId},d)}`;a.files[h],!([...l,f].includes(((O=(g=p==null?void 0:p.dragSource)==null?void 0:g.data)==null?void 0:O.path)||"")||((v=p.dragSource)==null?void 0:v.parent)===p.dropTargetId||a.files[h])&&(await i({newTree:d,node:p}),r(d))},u=Ox(a.files);return S.jsx(S.Fragment,{children:S.jsx(rI,{backend:zI,options:fZ(),children:S.jsxs("div",{style:{minHeight:"100%",maxHeight:"100%",height:"var(--sp-layout-height)",minWidth:"200px",overflowY:"auto",overflowX:"hidden",position:"relative",display:"flex",flexDirection:"column",padding:"var(--sp-space-1) var(--sp-space-3)",backgroundColor:"var(--sp-colors-surface1, #011627)"},children:[S.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:"40px"},children:[S.jsx("span",{children:"Files"}),S.jsxs("div",{style:{display:"flex"},children:[S.jsx(xw,{}),S.jsx(xw,{dir:!0})]})]}),S.jsx(AZ,{tree:t.filter(({text:d})=>!!d),rootId:"/",onDrop:c,rootProps:{style:{listStyle:"none",padding:"0",height:"100%"}},classes:{root:"test"},enableAnimateExpand:!0,insertDroppableFirst:!0,sort:!0,initialOpen:s,render:(d,{depth:p,isOpen:f})=>{var h,m,g,O;return d.text?S.jsxs("div",{style:{marginLeft:p*10,display:"flex",justifyContent:"space-between",maxWidth:"300px",overflow:"hidden",padding:"var(--sp-space-1) 0",transition:"color var(--sp-transitions-default), background var(--sp-transitions-default)"},children:[d.text.includes("addFile")||d.text.includes("addDir")?S.jsx(DZ,{files:a.files,onBlur:()=>{var v;return n(`${(v=d==null?void 0:d.data)==null?void 0:v.path}`)},isDirectory:d.text.includes("addDir"),currentPath:(h=d==null?void 0:d.data)==null?void 0:h.path.split("/").slice(0,-1).join("/"),onSubmit:async v=>{var w;const b=`${(w=d==null?void 0:d.data)==null?void 0:w.path.split("/").slice(0,-1).join("/")}/${v}`;await e({[b]:{code:d.text.includes("addDir")?".emptyDir":`// ${v}`,hidden:d.text.includes("addDir")}})}}):null,d.text&&!d.text.includes("addFile")&&!d.text.includes("addDir")?S.jsxs(S.Fragment,{children:[d.droppable?S.jsxs("span",{style:{color:"var(--sp-colors-clickable)",display:"flex",cursor:"pointer"},onClick:()=>{o(f?v=>v.filter(x=>x!==d.id):v=>[...v,d.id])},children:[f?S.jsx(ZO,{}):S.jsx(f2,{}),d.text,f?"[-] ":"[+] "]}):S.jsxs("span",{style:{display:"flex"},children:[S.jsx("span",{style:{minWidth:"16px",minHeight:"16px"},children:S.jsx(NO,{})}),S.jsx("span",{style:{textOverflow:"ellipsis",maxWidth:"200px",overflow:"hidden",cursor:"pointer",color:`${((m=d==null?void 0:d.data)==null?void 0:m.path)===a.activeFile?"var(--sp-colors-accent)":"var(--sp-colors-clickable)"}`,display:"flex"},onClick:()=>{var v;return a.openFile((v=d==null?void 0:d.data)==null?void 0:v.path)},children:d.text})]}),[u,"/package.json"].includes(((g=d==null?void 0:d.data)==null?void 0:g.path)??"")?S.jsx("span",{style:{color:"var(--sp-colors-warning)"},children:((O=d==null?void 0:d.data)==null?void 0:O.path)===u?"entry":""}):S.jsx("button",{style:{background:"none",border:"none",cursor:"pointer"},onClick:async()=>{var v;await n(`${(v=d==null?void 0:d.data)==null?void 0:v.path}${d.droppable?"/":""}`)},children:S.jsx(LO,{})})]}):null]},d.id):S.jsx(S.Fragment,{})}})]})})})},RZ=()=>S.jsx("div",{style:{minWidth:150,maxWidth:"300px",overflow:"hidden"},children:S.jsx(MZ,{})}),_Z=t=>S.jsx(bA,{...t,children:S.jsx(RZ,{})}),IZ=({type:t="react",children:e,showConsole:n=!0,files:i,className:r,style:s,...o})=>{const a=P.useRef();return S.jsxs("div",{className:r,style:s,...o,children:[e,S.jsx("button",{onClick:()=>{console.log(a.current)},children:"点击"}),S.jsx(ej,{template:t,theme:"dark",files:i,children:S.jsx(zO,{children:S.jsxs(xj,{children:[S.jsx(_Z,{}),S.jsx(vA,{editorFiles:a}),S.jsxs("div",{children:[S.jsx(eA,{style:{height:n?"60vh":"100vh"},showOpenInCodeSandbox:!1}),n?S.jsx(mA,{style:{height:"40vh",width:"40vw"}}):""]})]})})})]})};var ZZ=Object.create,Gp=Object.defineProperty,NZ=Object.getOwnPropertyDescriptor,bw=Object.getOwnPropertyNames,LZ=Object.getPrototypeOf,XZ=Object.prototype.hasOwnProperty,VZ=(t,e,n)=>e in t?Gp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Cn=(t,e)=>function(){return e||(0,t[bw(t)[0]])((e={exports:{}}).exports,e),e.exports},WZ=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of bw(e))!XZ.call(t,r)&&r!==n&&Gp(t,r,{get:()=>e[r],enumerable:!(i=NZ(e,r))||i.enumerable});return t},Rr=(t,e,n)=>(n=t!=null?ZZ(LZ(t)):{},WZ(e||!t||!t.__esModule?Gp(n,"default",{value:t,enumerable:!0}):n,t)),qZ=(t,e,n)=>(VZ(t,typeof e!="symbol"?e+"":e,n),n),Hp=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},zt=(t,e,n)=>(Hp(t,e,"read from private field"),n?n.call(t):e.get(t)),Ui=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},ao=(t,e,n,i)=>(Hp(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),on=(t,e,n)=>(Hp(t,e,"access private method"),n),yw=Cn({"../../node_modules/.pnpm/cuid@2.1.8/node_modules/cuid/lib/pad.js"(t,e){e.exports=function(i,r){var s="000000000"+i;return s.substr(s.length-r)}}}),zZ=Cn({"../../node_modules/.pnpm/cuid@2.1.8/node_modules/cuid/lib/fingerprint.browser.js"(t,e){var n=yw(),i=typeof window=="object"?window:self,r=Object.keys(i).length,s=navigator.mimeTypes?navigator.mimeTypes.length:0,o=n((s+navigator.userAgent.length).toString(36)+r.toString(36),4);e.exports=function(){return o}}}),YZ=Cn({"../../node_modules/.pnpm/cuid@2.1.8/node_modules/cuid/lib/getRandomValue.browser.js"(t,e){var n,i=typeof window<"u"&&(window.crypto||window.msCrypto)||typeof self<"u"&&self.crypto;i?(r=Math.pow(2,32)-1,n=function(){return Math.abs(i.getRandomValues(new Uint32Array(1))[0]/r)}):n=Math.random;var r;e.exports=n}}),ww=Cn({"../../node_modules/.pnpm/cuid@2.1.8/node_modules/cuid/index.js"(t,e){var n=zZ(),i=yw(),r=YZ(),s=0,o=4,a=36,l=Math.pow(a,o);function c(){return i((r()*l<<0).toString(a),o)}function u(){return s=s<l?s:0,s++,s-1}function d(){var p="c",f=new Date().getTime().toString(a),h=i(u().toString(a),o),m=n(),g=c()+c();return p+f+h+m+g}d.slug=function(){var f=new Date().getTime().toString(36),h=u().toString(36).slice(-4),m=n().slice(0,1)+n().slice(-1),g=c().slice(-2);return f.slice(-2)+h+m+g},d.isCuid=function(f){return typeof f!="string"?!1:!!f.startsWith("c")},d.isSlug=function(f){if(typeof f!="string")return!1;var h=f.length;return h>=7&&h<=10},d.fingerprint=n,e.exports=d}}),Sw=Cn({"../../node_modules/.pnpm/@open-draft+deferred-promise@2.1.0/node_modules/@open-draft/deferred-promise/build/createDeferredExecutor.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createDeferredExecutor=void 0;function e(){const n=(i,r)=>{n.state="pending",n.resolve=s=>{if(n.state!=="pending")return;n.result=s;const o=a=>(n.state="fulfilled",a);return i(s instanceof Promise?s:Promise.resolve(s).then(o))},n.reject=s=>{if(n.state==="pending")return queueMicrotask(()=>{n.state="rejected"}),r(n.rejectionReason=s)}};return n}t.createDeferredExecutor=e}}),BZ=Cn({"../../node_modules/.pnpm/@open-draft+deferred-promise@2.1.0/node_modules/@open-draft/deferred-promise/build/DeferredPromise.js"(t){var i,r,Ll,o;Object.defineProperty(t,"__esModule",{value:!0}),t.DeferredPromise=void 0;var e=Sw(),n=(o=class extends Promise{constructor(l=null){const c=(0,e.createDeferredExecutor)();super((u,d)=>{c(u,d),l==null||l(c.resolve,c.reject)});uf(this,r);uf(this,i,void 0);Ze(this,"resolve");Ze(this,"reject");e1(this,i,c),this.resolve=co(this,i).resolve,this.reject=co(this,i).reject}get state(){return co(this,i).state}get rejectionReason(){return co(this,i).rejectionReason}then(l,c){return Nl(this,r,Ll).call(this,super.then(l,c))}catch(l){return Nl(this,r,Ll).call(this,super.catch(l))}finally(l){return Nl(this,r,Ll).call(this,super.finally(l))}},i=new WeakMap,r=new WeakSet,Ll=function(l){return Object.defineProperties(l,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})},o);t.DeferredPromise=n}}),Jp=Cn({"../../node_modules/.pnpm/@open-draft+deferred-promise@2.1.0/node_modules/@open-draft/deferred-promise/build/index.js"(t){var e=t&&t.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(r,s);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(i,o,a)}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),n=t&&t.__exportStar||function(i,r){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,i,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Sw(),t),n(BZ(),t)}}),Pw=Cn({"../../node_modules/.pnpm/strict-event-emitter@0.4.3/node_modules/strict-event-emitter/lib/MemoryLeakError.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryLeakError=void 0;var e=class extends Error{constructor(i,r,s){super(`Possible EventEmitter memory leak detected. ${s} ${r.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`);Ze(this,"emitter");Ze(this,"type");Ze(this,"count");this.emitter=i,this.type=r,this.count=s,this.name="MaxListenersExceededWarning"}};t.MemoryLeakError=e}}),UZ=Cn({"../../node_modules/.pnpm/strict-event-emitter@0.4.3/node_modules/strict-event-emitter/lib/Emitter.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=void 0;var e=Pw(),n,i,r,s,o,a,l,c,u,d,p,f=class{constructor(){Ui(this,s),Ui(this,a),Ui(this,c),Ui(this,d),Ui(this,n,void 0),Ui(this,i,void 0),Ui(this,r,void 0),ao(this,n,new Map),ao(this,i,f.defaultMaxListeners),ao(this,r,!1)}static listenerCount(m,g){return m.listenerCount(g)}setMaxListeners(m){return ao(this,i,m),this}getMaxListeners(){return zt(this,i)}eventNames(){return Array.from(zt(this,n).keys())}emit(m,...g){const O=on(this,s,o).call(this,m);return O.forEach(v=>{v.apply(this,g)}),O.length>0}addListener(m,g){on(this,d,p).call(this,"newListener",m,g);const O=on(this,s,o).call(this,m).concat(g);if(zt(this,n).set(m,O),zt(this,i)>0&&this.listenerCount(m)>zt(this,i)&&!zt(this,r)){ao(this,r,!0);const v=new e.MemoryLeakError(this,m,this.listenerCount(m));console.warn(v)}return this}on(m,g){return this.addListener(m,g)}once(m,g){return this.addListener(m,on(this,c,u).call(this,m,g))}prependListener(m,g){const O=on(this,s,o).call(this,m);if(O.length>0){const v=[g].concat(O);zt(this,n).set(m,v)}else zt(this,n).set(m,O.concat(g));return this}prependOnceListener(m,g){return this.prependListener(m,on(this,c,u).call(this,m,g))}removeListener(m,g){const O=on(this,s,o).call(this,m);return O.length>0&&(on(this,a,l).call(this,O,g),zt(this,n).set(m,O),on(this,d,p).call(this,"removeListener",m,g)),this}off(m,g){return this.removeListener(m,g)}removeAllListeners(m){return m?zt(this,n).delete(m):zt(this,n).clear(),this}listeners(m){return Array.from(on(this,s,o).call(this,m))}listenerCount(m){return on(this,s,o).call(this,m).length}rawListeners(m){return this.listeners(m)}},h=f;n=new WeakMap,i=new WeakMap,r=new WeakMap,s=new WeakSet,o=function(m){return zt(this,n).get(m)||[]},a=new WeakSet,l=function(m,g){const O=m.indexOf(g);return O>-1&&m.splice(O,1),[]},c=new WeakSet,u=function(m,g){const O=(...v)=>{this.removeListener(m,O),g.apply(this,v)};return O},d=new WeakSet,p=function(m,g,O){this.emit(m,g,O)},qZ(h,"defaultMaxListeners",10),t.Emitter=h}}),FZ=Cn({"../../node_modules/.pnpm/strict-event-emitter@0.4.3/node_modules/strict-event-emitter/lib/index.js"(t){var e=t&&t.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(r,s);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(i,o,a)}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),n=t&&t.__exportStar||function(i,r){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,i,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(UZ(),t),n(Pw(),t)}}),GZ=Rr(ww()),HZ=/(%?)(%([sdjo]))/g;function JZ(t,e){switch(e){case"s":return t;case"d":case"i":return Number(t);case"j":return JSON.stringify(t);case"o":{if(typeof t=="string")return t;const n=JSON.stringify(t);return n==="{}"||n==="[]"||/^\[object .+?\]$/.test(n)?t:n}}}function Ct(t,...e){if(e.length===0)return t;let n=0,i=t.replace(HZ,(r,s,o,a)=>{const l=e[n],c=JZ(l,a);return s?r:(n++,c)});return n<e.length&&(i+=` ${e.slice(n).join(" ")}`),i=i.replace(/%{2,2}/g,"%"),i}var KZ=2;function eN(t){if(!t.stack)return;const e=t.stack.split(`
761
+ `);e.splice(1,KZ),t.stack=e.join(`
762
+ `)}var tN=class extends Error{constructor(t,...e){super(t),this.message=t,this.name="Invariant Violation",this.message=Ct(t,...e),eN(this)}},Wn=(t,e,...n)=>{if(!t)throw new tN(e,...n)};Wn.as=(t,e,n,...i)=>{if(!e)throw t.prototype.name!=null?new t(Ct(n,i)):t(Ct(n,i))};var Kp=Rr(Jp()),nN=window.localStorage.CSB_EMULATOR_DEBUG,iN="\x1B[0m",rN="\x1B[32;1m",sN="\x1B[31m",oN="\x1B[34m",aN="\x1B[33;1m",lN="\x1B[35;1m",kw="\x1B[36;1m",cN={preview:aN,emulator:lN,runtime:kw,bridge:oN,"runtime:worker":kw};function $w(t){return function(n,...i){if(nN==="true"){const r=()=>n.includes("sender")?`${rN}sender`:n.includes("receiver")?`${sN}receiver`:"",s=n.replace(/\[.+\]:/,"");console.debug(`${cN[t]}${t}:${r()}${iN}:${s}`,...i)}}}var xi=$w("emulator"),uN=class{constructor(t){Ze(this,"emitter");Ze(this,"channel");Ze(this,"receiverPort");Ze(this,"receiverReadyPromise");this.target=t,this.emitter=new EventTarget,this.channel=new MessageChannel,this.receiverPort=this.channel.port1;const e=new Kp.DeferredPromise,n=i=>{i.data.type==="internal/ready"&&(xi("[message-sender]: runtime is ready"),e.resolve())};window.addEventListener("message",n),e.then(()=>{window.removeEventListener("message",n)}),this.receiverReadyPromise=e,this.receiverPort.onmessage=i=>{const r=i.data;r.type!=null&&(xi('[message-sender]: emitting "%s" event...',r.type,r.payload),this.emitter.dispatchEvent(new MessageEvent(r.type,{data:r.payload})))}}async handshake(){const t=new Kp.DeferredPromise;await this.receiverReadyPromise,xi("[message-sender]: sending handshake"),this.target.postMessage({type:"internal/handshake"},"*",[this.channel.port2]),this.on("internal/handshake/done",()=>{t.resolve(),clearTimeout(e)});const e=setTimeout(()=>{t.reject(new Error("MessageSender: Handshake timeout"))},5e3);return t}on(t,e,n){xi('[message-sender]: add listener "%s"',t),this.emitter.addEventListener(t,i=>{i instanceof MessageEvent&&e(i)},n)}off(t,e,n){this.emitter.removeEventListener(t,e,n)}async send(t,...e){const n=new Kp.DeferredPromise,i=(0,GZ.default)(),r=e[0]||{};xi('[message-sender]: send "%s" (%s)',t,i,r),this.receiverPort.postMessage({type:t,payload:{operationId:i,payload:r}}),xi('[message-sender]: adding done listener for "%s" (%s)',t,i);const s=a=>{const{data:l}=a;if(l.operationId===i){const c=l.listenerPayload||{};xi('[message-sender]: resolving "%s (%s) promise!',t,i),n.resolve({...c,operationId:l.operationId})}},o=a=>{const{data:l}=a;l.operationId===i&&(xi('[message-sender]: rejecting "%s (%s) promise!',t,i),n.reject(l.error))};return this.on("internal/operation/done",s),this.on("internal/operation/failed",o),n.finally(()=>{this.emitter.removeEventListener("internal/operation/done",s),this.emitter.removeEventListener("internal/operation/failed",o)})}},Tw=Rr(Jp()),dN=Rr(ww()),pN=class{constructor(t){this.channel=t}async init(t){await this.channel.send("fs/init",{files:t})}async readFile(t,e){const n=await this.channel.send("fs/readFile",{path:t,encoding:e}).catch(i=>{throw new Error(Ct('Failed to read file at path "%s"',t),{cause:i})});if(!n)throw new Error("File not found");return n.data}async writeFile(t,e,n){let i,r=!1;typeof n=="object"?(i=n.encoding,r=!!n.recursive):typeof n=="string"&&(i=n),await this.channel.send("fs/writeFile",{path:t,content:e,encoding:i,recursive:r}).catch(s=>{throw new Error(Ct('Failed to write file at path "%s"',t),{cause:s})})}async readdir(t){const e=await this.channel.send("fs/readdir",{path:t}).catch(n=>{throw new Error(Ct('Failed to read directory at path "%s"',t),{cause:n})});if(!e)throw new Error("Directory not found");return e.data}async mkdir(t,e){const n=!!(e!=null&&e.recursive);await this.channel.send("fs/mkdir",{path:t,recursive:n}).catch(i=>{throw new Error(Ct('Failed to make directory at path "%s"',t),{cause:i})})}async stat(t){const e=await this.channel.send("fs/stat",{path:t}).catch(n=>{throw new Error(Ct('Failed to stat file at path "%s"',t),{cause:n})});if(!e)throw new Error("File not found");return e.data}async rm(t,e){const{force:n,recursive:i}=e||{};await this.channel.send("fs/rm",{path:t,force:n,recursive:i}).catch(r=>{throw new Error(Ct('Failed to remove file at path "%s"',t),{cause:r})})}async watch(t,e,n){const i=(0,dN.default)();return await this.channel.send("fs/watch",{watcherId:i,includes:t,excludes:e}),this.channel.on("fs/watch-event",({data:r})=>{if(r.watcherId===i&&n){const s={...r};delete s.watcherId,n(s)}}),{dispose:()=>this.channel.send("fs/unwatch",{watcherId:i})}}},Qw=Rr(FZ()),fN=class{constructor(t){this.channel=t}create(){return new hN(this.channel)}},hN=class{constructor(t){Ze(this,"id");Ze(this,"state");Ze(this,"stdout");Ze(this,"stderr");Ze(this,"stdin");this.channel=t,this.state="running",this.stdout=new Qw.Emitter,this.stderr=new Qw.Emitter,this.stdin={write:e=>{if(!this.id)throw new Error("Failed to write to stdin, no process is currently running");return this.channel.send("shell/stdin",{data:e,workerId:this.id})}},this.forwardStdEvents()}forwardStdEvents(){this.channel.on("worker/tty",t=>{const{data:e}=t;if(e.workerId===this.id)switch(e.payload.type){case"out":{this.stdout.emit("data",e.payload.data);break}case"err":{this.stderr.emit("data",e.payload.data);break}}})}async runCommand(t,e,n={}){Wn(!this.id,'Failed to run "runCommand" on a ShellProcess: there is already a process running.');const i=await this.channel.send("shell/runCommand",{command:t,args:e,options:n});return Wn(i,'Failed to run "runCommand" on a ShellProcess: was not able to retrieve a running process.'),this.id=i.id,this.state="running",i}async on(t,e){switch(t){case"progress":{this.channel.on("worker/progress",({data:n})=>{e(n.status)});return}case"exit":{this.channel.on("worker/exit",({data:n})=>{n.workerId===this.id&&e(n.exitCode,n.error)});return}}}async kill(){Wn(this.id,'Failed to run "kill" on a ShellProcess: there is no process running. Did you forget to run it?'),this.state="idle",await this.channel.send("shell/exit",{id:this.id}).catch(t=>{throw new Error(Ct('Failed to kill shell with ID "%s"',this.id),{cause:t})}),this.id=void 0}},mN=Rr(Jp()),gN=2e4,vN=class{constructor(t){this.channel=t}async waitFor(t,e,n=gN){const i=new mN.DeferredPromise,r=setTimeout(()=>{i.reject()},n),s=await this.channel.send("preview/get/info",t).catch(a=>{i.reject(new Error(Ct('Failed to look up preview information for shell ID "%s" (port: %d)',t.sourceShellId,t.port)))}),o=s&&e(s);return o&&i.resolve({url:s.url,port:s.port,sourceShellId:s.sourceShellId}),this.channel.on("preview/port/ready",({data:a})=>{!o&&e(a)&&i.resolve({url:a.url,port:a.port,sourceShellId:a.sourceShellId})}),i.finally(()=>{clearTimeout(r)})}async getByShellId(t,e){return this.waitFor({sourceShellId:t},n=>n.sourceShellId===t,e).catch(n=>{throw new Error(Ct('Failed to get shell by ID "%s"',t),{cause:n})})}async waitForPort(t,e){return this.waitFor({port:t},n=>n.port===t,e).catch(n=>{throw new Error(Ct("Failed to await port %d",t),{cause:n})})}},ON="https://nodebox-runtime.codesandbox.io",Dl=$w("emulator"),xN=class{constructor(t){Ze(this,"channel",null);Ze(this,"isConnected");Ze(this,"url");Ze(this,"fileSystemApi",null);Ze(this,"shellApi",null);Ze(this,"previewApi",null);this.options=t,Wn(this.options.iframe,'Failed to create a Nodebox: expected "iframe" argument to be a reference to an <iframe> element but got %j',this.options.iframe),this.url=this.options.runtimeUrl||ON,this.isConnected=!1}async connect(){const{iframe:t,cdnUrl:e}=this.options;Dl("[message-sender]: Connecting to node emulator...");const n=new Tw.DeferredPromise;this.url||n.reject(new Error("Nodebox URL is missing. Did you forget to provide it when creating this Nodebox instance?")),Wn(t.contentWindow,"Failed to create a MessageChannel with the Nodebox iframe: no content window found"),this.channel=new uN(t.contentWindow);const i=new Tw.DeferredPromise;return t.setAttribute("src",this.url),t.addEventListener("load",()=>{i.resolve()},{once:!0}),t.addEventListener("error",r=>{i.reject(r.error)},{once:!0}),await i,Dl("[message-sender]: IFrame loaded..."),await this.channel.handshake(),Dl("[message-sender]: Handshake completed..."),this.channel.send("connect",{cdnUrl:e}),this.channel.on("runtime/ready",()=>{n.resolve()}),n.then(()=>{Dl("[message-sender]: Connected to runtime..."),this.isConnected=!0})}get fs(){return Wn(this.isConnected,'Failed to access the File System API: consumer is not connected. Did you forget to run "connect()"?'),this.fileSystemApi?this.fileSystemApi:(this.fileSystemApi=new pN(this.channel),this.fileSystemApi)}get shell(){return Wn(this.isConnected,'Failed to access the Shell API: consumer is not connected. Did you forget to run "connect()"?'),this.shellApi?this.shellApi:(this.shellApi=new fN(this.channel),this.shellApi)}get preview(){return Wn(this.isConnected,'Failed to access the Preview API: consumer is not connected. Did you forget to run "connect()"?'),this.previewApi?this.previewApi:(this.previewApi=new vN(this.channel),this.previewApi)}},bN="INJECT_AND_INVOKE",yN="PREVIEW_LOADED",ef=function(){function t(e,n,i){i===void 0&&(i={}),this.status="idle",this.options=i,this.sandboxSetup=n,this.iframeSelector=e}return t.prototype.updateOptions=function(e){Pi(this.options,e)||(this.options=e,this.updateSandbox())},t.prototype.updateSandbox=function(e,n){throw e===void 0&&(e=this.sandboxSetup),Error("Method not implemented")},t.prototype.destroy=function(){throw Error("Method not implemented")},t.prototype.dispatch=function(e){throw Error("Method not implemented")},t.prototype.listen=function(e){throw Error("Method not implemented")},t}(),Cw=function(){function t(){this.listeners={},this.listenersCount=0,this.channelId=Math.floor(Math.random()*1e6),this.listeners=[]}return t.prototype.cleanup=function(){this.listeners={},this.listenersCount=0},t.prototype.dispatch=function(e){Object.values(this.listeners).forEach(function(n){return n(e)})},t.prototype.listener=function(e){var n=this;if(typeof e!="function")return function(){};var i=this.listenersCount;return this.listeners[i]=e,this.listenersCount++,function(){delete n.listeners[i]}},t}();function Ew(t){return/[a-zA-Z.]/.test(t)}function jw(t){return/[a-zA-Z]/.test(t)}function wN(t){return/\s/.test(t)}function Aw(t){return/[&|]/.test(t)}function Dw(t){return/-/.test(t)}function SN(t){return/["']/.test(t)}function Mw(t){return jw(t)&&t===t.toUpperCase()}var yt;(function(t){t.OR="OR",t.AND="AND",t.PIPE="PIPE",t.Command="Command",t.Argument="Argument",t.String="String",t.EnvVar="EnvVar"})(yt||(yt={}));var PN=new Map([["&&",{type:yt.AND}],["||",{type:yt.OR}],["|",{type:yt.PIPE}],["-",{type:yt.Argument}]]);function kN(t){var e=0,n=[];function i(){for(var c="";Ew(t[e])&&e<t.length;)c+=t[e],e++;return{type:yt.Command,value:c}}function r(){for(var c="";Aw(t[e])&&e<t.length;)c+=t[e],e++;return PN.get(c)}function s(){for(var c="";(Dw(t[e])||jw(t[e]))&&e<t.length;)c+=t[e],e++;return{type:yt.Argument,value:c}}function o(){var c=t[e],u=t[e];for(e++;t[e]!==c&&e<t.length;)u+=t[e],e++;return u+=t[e],e++,{type:yt.String,value:u}}function a(){for(var c={},u=function(){for(var d="",p="";t[e]!=="="&&e<t.length;)d+=t[e],e++;for(t[e]==="="&&e++;t[e]!==" "&&e<t.length;)p+=t[e],e++;c[d]=p};Mw(t[e])&&e<t.length;)u(),e++;return{type:yt.EnvVar,value:c}}for(;e<t.length;){var l=t[e];if(wN(l)){e++;continue}switch(!0){case Mw(l):n.push(a());break;case Ew(l):n.push(i());break;case Aw(l):n.push(r());break;case Dw(l):n.push(s());break;case SN(l):n.push(o());break;default:throw new Error("Unknown character: ".concat(l))}}return n}var $N=0;function Rw(){var t=Date.now(),e=Math.round(Math.random()*1e4),n=$N+=1;return(+"".concat(t).concat(e).concat(n)).toString(16)}var Ml=function(t){return typeof t=="string"?new TextEncoder().encode(t):t},tf=function(t){return typeof t=="string"?t:new TextDecoder().decode(t)},_w=function(t){return Object.entries(t).reduce(function(e,n){var i=n[0],r=n[1];return e[i]=Ml(r.code),e},{})},TN=function(t){var e={},n=["dev","start"];try{e=JSON.parse(t).scripts}catch(o){throw ki("Could not parse package.json file: "+o.message)}Fl(e,"Failed to start. Please provide a `start` or `dev` script on the package.json");for(var i=function(o){if(n[o]in e){var a=n[o],l=e[a],c={},u="",d=[];return kN(l).forEach(function(p){var f=u==="";p.type===yt.EnvVar&&(c=p.value),p.type===yt.Command&&f&&(u=p.value),(p.type===yt.Argument||!f&&p.type===yt.Command)&&d.push(p.value)}),{value:[u,d,{env:c}]}}},r=0;r<n.length;r++){var s=i(r);if(typeof s=="object")return s.value}throw ki("Failed to start. Please provide a `start` or `dev` script on the package.json")},Iw=function(t){return typeof t=="string"?t:typeof t=="object"&&"message"in t?t.message:ki("The server could not be reached. Make sure that the node script is running and that a port has been started.")},Zw=`var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e={},n={};!function(t){t.__esModule=!0,t.default=["log","debug","info","warn","error","table","clear","time","timeEnd","count","assert","command","result"]}(n);var a,o={},i={};(a=i).__esModule=!0,a.default=function(){var t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+"-"+Date.now()};var u={},s={__esModule:!0};s.update=s.state=void 0,s.update=function(t){s.state=t};var f={},c={};!function(r){var e=t&&t.__assign||function(){return e=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var a in r=arguments[e])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},e.apply(this,arguments)};r.__esModule=!0,r.initialState=void 0,r.initialState={timings:{},count:{}};var n=function(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()};r.default=function(t,a){var o,i,u;switch(void 0===t&&(t=r.initialState),a.type){case"COUNT":var s=t.count[a.name]||0;return e(e({},t),{count:e(e({},t.count),(o={},o[a.name]=s+1,o))});case"TIME_START":return e(e({},t),{timings:e(e({},t.timings),(i={},i[a.name]={start:n()},i))});case"TIME_END":var f=t.timings[a.name],c=n(),l=c-f.start;return e(e({},t),{timings:e(e({},t.timings),(u={},u[a.name]=e(e({},f),{end:c,time:l}),u))});default:return t}}}(c),function(r){var e=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};r.__esModule=!0;var n=e(c),a=s;r.default=function(t){a.update(n.default(a.state,t))}}(f);var l={__esModule:!0};l.timeEnd=l.timeStart=l.count=void 0,l.count=function(t){return{type:"COUNT",name:t}},l.timeStart=function(t){return{type:"TIME_START",name:t}},l.timeEnd=function(t){return{type:"TIME_END",name:t}};var d=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};u.__esModule=!0,u.stop=u.start=void 0;var p=s,h=d(f),m=l;u.start=function(t){h.default(m.timeStart(t))},u.stop=function(t){var r=null===p.state||void 0===p.state?void 0:p.state.timings[t];return r&&!r.end?(h.default(m.timeEnd(t)),{method:"log",data:[t+": "+p.state.timings[t].time+"ms"]}):{method:"warn",data:["Timer '"+t+"' does not exist"]}};var y={},v=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};y.__esModule=!0,y.increment=void 0;var _=s,b=v(f),g=l;y.increment=function(t){return b.default(g.count(t)),{method:"log",data:[t+": "+_.state.count[t]]}};var M={},T=t&&t.__spreadArrays||function(){for(var t=0,r=0,e=arguments.length;r<e;r++)t+=arguments[r].length;var n=Array(t),a=0;for(r=0;r<e;r++)for(var o=arguments[r],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n};M.__esModule=!0,M.test=void 0,M.test=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return!t&&(0===r.length&&r.push("console.assert"),{method:"error",data:T(["Assertion failed:"],r)})},function(r){var e=t&&t.__assign||function(){return e=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var a in r=arguments[e])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},e.apply(this,arguments)},n=t&&t.__createBinding||(Object.create?function(t,r,e,n){void 0===n&&(n=e),Object.defineProperty(t,n,{enumerable:!0,get:function(){return r[e]}})}:function(t,r,e,n){void 0===n&&(n=e),t[n]=r[e]}),a=t&&t.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r}),o=t&&t.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&n(r,t,e);return a(r,t),r},s=t&&t.__spreadArrays||function(){for(var t=0,r=0,e=arguments.length;r<e;r++)t+=arguments[r].length;var n=Array(t),a=0;for(r=0;r<e;r++)for(var o=arguments[r],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n},f=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};r.__esModule=!0;var c=f(i),l=o(u),d=o(y),p=o(M);r.default=function(t,r,n){var a=n||c.default();switch(t){case"clear":return{method:t,id:a};case"count":return!!(o="string"==typeof r[0]?r[0]:"default")&&e(e({},d.increment(o)),{id:a});case"time":case"timeEnd":var o;return!!(o="string"==typeof r[0]?r[0]:"default")&&("time"===t?(l.start(o),!1):e(e({},l.stop(o)),{id:a}));case"assert":if(0!==r.length){var i=p.test.apply(p,s([r[0]],r.slice(1)));if(i)return e(e({},i),{id:a})}return!1;case"error":return{method:t,id:a,data:r.map((function(t){try{return t.stack||t}catch(r){return t}}))};default:return{method:t,id:a,data:r}}}}(o);var S={},O={};!function(t){var r;t.__esModule=!0,function(t){t[t.infinity=0]="infinity",t[t.minusInfinity=1]="minusInfinity",t[t.minusZero=2]="minusZero"}(r||(r={})),t.default={type:"Arithmetic",lookup:Number,shouldTransform:function(t,r){return"number"===t&&(r===1/0||r===-1/0||function(t){return 1/t==-1/0}(r))},toSerializable:function(t){return t===1/0?r.infinity:t===-1/0?r.minusInfinity:r.minusZero},fromSerializable:function(t){return t===r.infinity?1/0:t===r.minusInfinity?-1/0:t===r.minusZero?-0:t}}}(O);var w={};!function(t){t.__esModule=!0,t.default={type:"Function",lookup:Function,shouldTransform:function(t,r){return"function"==typeof r},toSerializable:function(t){var r="";try{r=t.toString().substring(r.indexOf("{")+1,r.lastIndexOf("}"))}catch(t){}return{name:t.name,body:r,proto:Object.getPrototypeOf(t).constructor.name}},fromSerializable:function(t){try{var r=function(){};return"string"==typeof t.name&&Object.defineProperty(r,"name",{value:t.name,writable:!1}),"string"==typeof t.body&&Object.defineProperty(r,"body",{value:t.body,writable:!1}),"string"==typeof t.proto&&(r.constructor={name:t.proto}),r}catch(r){return t}}}}(w);var A={};!function(t){var r;function e(t){for(var r={},e=0,n=t.attributes;e<n.length;e++){var a=n[e];r[a.name]=a.value}return r}t.__esModule=!0,t.default={type:"HTMLElement",shouldTransform:function(t,r){return r&&r.children&&"string"==typeof r.innerHTML&&"string"==typeof r.tagName},toSerializable:function(t){return{tagName:t.tagName.toLowerCase(),attributes:e(t),innerHTML:t.innerHTML}},fromSerializable:function(t){try{var e=(r||(r=document.implementation.createHTMLDocument("sandbox"))).createElement(t.tagName);e.innerHTML=t.innerHTML;for(var n=0,a=Object.keys(t.attributes);n<a.length;n++){var o=a[n];try{e.setAttribute(o,t.attributes[o])}catch(t){}}return e}catch(r){return t}}}}(A);var j={};!function(r){var e=t&&t.__assign||function(){return e=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var a in r=arguments[e])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},e.apply(this,arguments)};r.__esModule=!0,r.default={type:"Map",shouldTransform:function(t,r){return r&&r.constructor&&"Map"===r.constructor.name},toSerializable:function(t){var r={};return t.forEach((function(t,e){var n="object"==typeof e?JSON.stringify(e):e;r[n]=t})),{name:"Map",body:r,proto:Object.getPrototypeOf(t).constructor.name}},fromSerializable:function(t){var r=t.body,n=e({},r);return"string"==typeof t.proto&&(n.constructor={name:t.proto}),n}}}(j);var z={};!function(t){t.__esModule=!0;var r="@t",e=/^#*@(t|r)$/,n=(0,eval)("this"),a="function"==typeof ArrayBuffer,o="function"==typeof Map,i="function"==typeof Set,u=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"],s=Array.prototype.slice,f={serialize:function(t){return JSON.stringify(t)},deserialize:function(t){return JSON.parse(t)}},c=function(){function t(t,r){this.references=t,this.transforms=r,this.transformsMap=this._makeTransformsMap(),this.circularCandidates=[],this.circularCandidatesDescrs=[],this.circularRefCount=0}return t._createRefMark=function(t){var r=Object.create(null);return r["@r"]=t,r},t.prototype._createCircularCandidate=function(t,r,e){this.circularCandidates.push(t),this.circularCandidatesDescrs.push({parent:r,key:e,refIdx:-1})},t.prototype._applyTransform=function(t,e,n,a){var o=Object.create(null),i=a.toSerializable(t);return"object"==typeof i&&this._createCircularCandidate(t,e,n),o[r]=a.type,o.data=this._handleValue((function(){return i}),e,n),o},t.prototype._handleArray=function(t){for(var r=[],e=function(e){r[e]=n._handleValue((function(){return t[e]}),r,e)},n=this,a=0;a<t.length;a++)e(a);return r},t.prototype._handlePlainObject=function(t){var r,n,a=Object.create(null),o=function(r){if(Reflect.has(t,r)){var n=e.test(r)?"#"+r:r;a[n]=i._handleValue((function(){return t[r]}),a,n)}},i=this;for(var u in t)o(u);var s=null===(n=null===(r=null==t?void 0:t.__proto__)||void 0===r?void 0:r.constructor)||void 0===n?void 0:n.name;return s&&"Object"!==s&&(a.constructor={name:s}),a},t.prototype._handleObject=function(t,r,e){return this._createCircularCandidate(t,r,e),Array.isArray(t)?this._handleArray(t):this._handlePlainObject(t)},t.prototype._ensureCircularReference=function(r){var e=this.circularCandidates.indexOf(r);if(e>-1){var n=this.circularCandidatesDescrs[e];return-1===n.refIdx&&(n.refIdx=n.parent?++this.circularRefCount:0),t._createRefMark(n.refIdx)}return null},t.prototype._handleValue=function(t,r,e){try{var n=t(),a=typeof n,o="object"===a&&null!==n;if(o){var i=this._ensureCircularReference(n);if(i)return i}var u=this._findTransform(a,n);return u?this._applyTransform(n,r,e,u):o?this._handleObject(n,r,e):n}catch(t){try{return this._handleValue((function(){return t instanceof Error?t:new Error(t)}),r,e)}catch(t){return null}}},t.prototype._makeTransformsMap=function(){if(o){var t=new Map;return this.transforms.forEach((function(r){r.lookup&&t.set(r.lookup,r)})),t}},t.prototype._findTransform=function(t,r){if(o&&r&&r.constructor&&(null==(a=this.transformsMap.get(r.constructor))?void 0:a.shouldTransform(t,r)))return a;for(var e=0,n=this.transforms;e<n.length;e++){var a;if((a=n[e]).shouldTransform(t,r))return a}},t.prototype.transform=function(){for(var r=this,e=[this._handleValue((function(){return r.references}),null,null)],n=0,a=this.circularCandidatesDescrs;n<a.length;n++){var o=a[n];o.refIdx>0&&(e[o.refIdx]=o.parent[o.key],o.parent[o.key]=t._createRefMark(o.refIdx))}return e},t}(),l=function(){function t(t,r){this.activeTransformsStack=[],this.visitedRefs=Object.create(null),this.references=t,this.transformMap=r}return t.prototype._handlePlainObject=function(t){var r=Object.create(null);for(var n in"constructor"in t&&(t.constructor&&"string"==typeof t.constructor.name||(t.constructor={name:"Object"})),t)t.hasOwnProperty(n)&&(this._handleValue(t[n],t,n),e.test(n)&&(r[n.substring(1)]=t[n],delete t[n]));for(var a in r)t[a]=r[a]},t.prototype._handleTransformedObject=function(t,e,n){var a=t[r],o=this.transformMap[a];if(!o)throw new Error("Can't find transform for \\""+a+'" type.');this.activeTransformsStack.push(t),this._handleValue(t.data,t,"data"),this.activeTransformsStack.pop(),e[n]=o.fromSerializable(t.data)},t.prototype._handleCircularSelfRefDuringTransform=function(t,r,e){var n=this.references;Object.defineProperty(r,e,{val:void 0,configurable:!0,enumerable:!0,get:function(){return void 0===this.val&&(this.val=n[t]),this.val},set:function(t){this.val=t}})},t.prototype._handleCircularRef=function(t,r,e){this.activeTransformsStack.includes(this.references[t])?this._handleCircularSelfRefDuringTransform(t,r,e):(this.visitedRefs[t]||(this.visitedRefs[t]=!0,this._handleValue(this.references[t],this.references,t)),r[e]=this.references[t])},t.prototype._handleValue=function(t,e,n){if("object"==typeof t&&null!==t){var a=t["@r"];if(void 0!==a)this._handleCircularRef(a,e,n);else if(t[r])this._handleTransformedObject(t,e,n);else if(Array.isArray(t))for(var o=0;o<t.length;o++)this._handleValue(t[o],t,o);else this._handlePlainObject(t)}},t.prototype.transform=function(){return this.visitedRefs[0]=!0,this._handleValue(this.references[0],this.references,0),this.references[0]},t}(),d=[{type:"[[NaN]]",shouldTransform:function(t,r){return"number"===t&&isNaN(r)},toSerializable:function(){return""},fromSerializable:function(){return NaN}},{type:"[[undefined]]",shouldTransform:function(t){return"undefined"===t},toSerializable:function(){return""},fromSerializable:function(){}},{type:"[[Date]]",lookup:Date,shouldTransform:function(t,r){return r instanceof Date},toSerializable:function(t){return t.getTime()},fromSerializable:function(t){var r=new Date;return r.setTime(t),r}},{type:"[[RegExp]]",lookup:RegExp,shouldTransform:function(t,r){return r instanceof RegExp},toSerializable:function(t){var r={src:t.source,flags:""};return t.globalThis&&(r.flags+="g"),t.ignoreCase&&(r.flags+="i"),t.multiline&&(r.flags+="m"),r},fromSerializable:function(t){return new RegExp(t.src,t.flags)}},{type:"[[Error]]",lookup:Error,shouldTransform:function(t,r){return r instanceof Error},toSerializable:function(t){var r,e;return t.stack||null===(e=(r=Error).captureStackTrace)||void 0===e||e.call(r,t),{name:t.name,message:t.message,stack:t.stack}},fromSerializable:function(t){var r=new(n[t.name]||Error)(t.message);return r.stack=t.stack,r}},{type:"[[ArrayBuffer]]",lookup:a&&ArrayBuffer,shouldTransform:function(t,r){return a&&r instanceof ArrayBuffer},toSerializable:function(t){var r=new Int8Array(t);return s.call(r)},fromSerializable:function(t){if(a){var r=new ArrayBuffer(t.length);return new Int8Array(r).set(t),r}return t}},{type:"[[TypedArray]]",shouldTransform:function(t,r){if(a)return ArrayBuffer.isView(r)&&!(r instanceof DataView);for(var e=0,o=u;e<o.length;e++){var i=o[e];if("function"==typeof n[i]&&r instanceof n[i])return!0}return!1},toSerializable:function(t){return{ctorName:t.constructor.name,arr:s.call(t)}},fromSerializable:function(t){return"function"==typeof n[t.ctorName]?new n[t.ctorName](t.arr):t.arr}},{type:"[[Map]]",lookup:o&&Map,shouldTransform:function(t,r){return o&&r instanceof Map},toSerializable:function(t){var r=[];return t.forEach((function(t,e){r.push(e),r.push(t)})),r},fromSerializable:function(t){if(o){for(var r=new Map,e=0;e<t.length;e+=2)r.set(t[e],t[e+1]);return r}for(var n=[],a=0;a<t.length;a+=2)n.push([t[e],t[e+1]]);return n}},{type:"[[Set]]",lookup:i&&Set,shouldTransform:function(t,r){return i&&r instanceof Set},toSerializable:function(t){var r=[];return t.forEach((function(t){r.push(t)})),r},fromSerializable:function(t){if(i){for(var r=new Set,e=0;e<t.length;e++)r.add(t[e]);return r}return t}}],p=function(){function t(t){this.transforms=[],this.transformsMap=Object.create(null),this.serializer=t||f,this.addTransforms(d)}return t.prototype.addTransforms=function(t){for(var r=0,e=t=Array.isArray(t)?t:[t];r<e.length;r++){var n=e[r];if(this.transformsMap[n.type])throw new Error('Transform with type "'+n.type+'" was already added.');this.transforms.push(n),this.transformsMap[n.type]=n}return this},t.prototype.removeTransforms=function(t){for(var r=0,e=t=Array.isArray(t)?t:[t];r<e.length;r++){var n=e[r],a=this.transforms.indexOf(n);a>-1&&this.transforms.splice(a,1),delete this.transformsMap[n.type]}return this},t.prototype.encode=function(t){var r=new c(t,this.transforms).transform();return this.serializer.serialize(r)},t.prototype.decode=function(t){var r=this.serializer.deserialize(t);return new l(r,this.transformsMap).transform()},t}();t.default=p}(z);var E=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};S.__esModule=!0,S.Decode=P=S.Encode=void 0;var k=E(O),C=E(w),D=E(A),I=E(j),N=E(z),R=[D.default,C.default,k.default,I.default],x=new N.default;x.addTransforms(R);var P=S.Encode=function(t){return JSON.parse(x.encode(t))};S.Decode=function(t){return x.decode(JSON.stringify(t))},function(r){var e=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};r.__esModule=!0;var a=e(n),i=e(o),u=S;r.default=function(t,r,e){void 0===e&&(e=!0);for(var n=t,o={pointers:{},src:{npm:"https://npmjs.com/package/console-feed",github:"https://github.com/samdenty99/console-feed"}},s=function(t){var a=n[t];n[t]=function(){a.apply(this,arguments);var n=[].slice.call(arguments);setTimeout((function(){var a=i.default(t,n);if(a){var o=a;e&&(o=u.Encode(a)),r(o,a)}}))},o.pointers[t]=a},f=0,c=a.default;f<c.length;f++)s(c[f]);return n.feed=o,n}}(e),r(e)(window.console,(function(t){var r=P(t);parent.postMessage({type:"console",codesandbox:!0,log:Array.isArray(r)?r[0]:r,channelId:scope.channelId},"*")}));
763
+ `;function QN(t,e){return gt(this,void 0,void 0,function(){var n,i,r,s,o;return vt(this,function(a){return n=t.contentWindow,Fn(n,"Failed to await preview iframe: no content window found"),i=9e4,r=20,s=0,[2,new Promise(function(l,c){var u=function(){var d=function(){clearTimeout(o),s=r,l(),t.removeEventListener("load",d)};if(s>=r){c(ki("Could not able to connect to preview."));return}t.setAttribute("src",e),o=setTimeout(function(){u(),t.removeEventListener("load",d)},i),s=s+1,t.addEventListener("load",d)};t.addEventListener("error",function(){return c(new Error("Iframe error"))}),t.addEventListener("abort",function(){return c(new Error("Aborted"))}),u()})]})})}var CN=function(t,e){t.style.border="0",t.style.width=e.width||"100%",t.style.height=e.height||"100%",t.style.overflow="hidden",t.allow="cross-origin-isolated"};function EN(t){var e=t.scope,n=window.history.__proto__,i=[],r=0,s=function(l){parent.postMessage({type:"urlchange",url:l,back:r>0,forward:r<i.length-1,channelId:e.channelId},"*")};function o(l,c){i.splice(r+1),i.push({url:l,state:c}),r=i.length-1}Object.assign(window.history,{go:function(l){var c=r+l;if(c>=0&&c<=i.length-1){r=c;var u=i[r],d=u.url,p=u.state;n.replaceState.call(window.history,p,"",d);var f=document.location.href;s(f),window.dispatchEvent(new PopStateEvent("popstate",{state:p}))}},back:function(){window.history.go(-1)},forward:function(){window.history.go(1)},pushState:function(l,c,u){n.replaceState.call(window.history,l,c,u),o(u,l),s(document.location.href)},replaceState:function(l,c,u){n.replaceState.call(window.history,l,c,u),i[r]={state:l,url:u},s(document.location.href)}});function a(l){var c=l.data;c.type==="urlback"?history.back():c.type==="urlforward"?history.forward():c.type==="refresh"&&document.location.reload()}window.addEventListener("message",a)}function jN(t){var e=t.scope,n=0;function i(){if(typeof window>"u")return 0;var a=document.body,l=document.documentElement;return Math.max(a.scrollHeight,a.offsetHeight,l.offsetHeight)}function r(){var a=i();n!==a&&window.parent.postMessage({type:"resize",height:a,codesandbox:!0,channelId:e.channelId},"*"),n=a}r();var s,o=new MutationObserver(function(){s===void 0&&(r(),s=setTimeout(function(){s=void 0},300))});o.observe(document,{attributes:!0,childList:!0,subtree:!0}),setInterval(r,300)}var AN=[{code:EN.toString(),id:"historyListener"},{code:"function consoleHook({ scope }) {"+Zw+`
764
+ };`,id:"consoleHook"},{code:jN.toString(),id:"watchResize"}],DN=function(t,e){AN.forEach(function(n){var i,r=n.code,s=n.id,o={uid:s,type:bN,code:"exports.activate = ".concat(r),scope:{channelId:e}};(i=t.contentWindow)===null||i===void 0||i.postMessage(o,"*")})},MN=function(t){Hl(e,t);function e(n,i,r){r===void 0&&(r={});var s=t.call(this,n,i,Me(Me({},r),{bundlerURL:r.bundlerURL}))||this;return s._modulesCache=new Map,s.messageChannelId=Rw(),s._initPromise=null,s.emitter=new Cw,s.manageIframes(n),s.emulator=new xN({iframe:s.emulatorIframe,runtimeUrl:s.options.bundlerURL}),s.updateSandbox(i),s}return e.prototype._init=function(n){return gt(this,void 0,void 0,function(){return vt(this,function(i){switch(i.label){case 0:return[4,this.emulator.connect()];case 1:return i.sent(),[4,this.emulator.fs.init(n)];case 2:return i.sent(),[4,this.globalListeners()];case 3:return i.sent(),[2]}})})},e.prototype.compile=function(n){return gt(this,void 0,void 0,function(){var i,r;return vt(this,function(s){switch(s.label){case 0:return s.trys.push([0,5,,6]),this.status="initializing",this.dispatch({type:"start",firstLoad:!0}),this._initPromise||(this._initPromise=this._init(n)),[4,this._initPromise];case 1:return s.sent(),this.dispatch({type:"connected"}),[4,this.createShellProcessFromTask(n)];case 2:return i=s.sent().id,[4,this.createPreviewURLFromId(i)];case 3:return s.sent(),[4,this.setLocationURLIntoIFrame()];case 4:return s.sent(),this.dispatchDoneMessage(),[3,6];case 5:return r=s.sent(),this.dispatch({type:"action",action:"notification",notificationType:"error",title:Iw(r)}),this.dispatch({type:"done",compilatonError:!0}),[3,6];case 6:return[2]}})})},e.prototype.createShellProcessFromTask=function(n){return gt(this,void 0,void 0,function(){var i,r,s=this;return vt(this,function(o){switch(o.label){case 0:return i=tf(n["/package.json"]),this.emulatorCommand=TN(i),this.emulatorShellProcess=this.emulator.shell.create(),[4,this.emulatorShellProcess.on("exit",function(a){s.dispatch({type:"action",action:"notification",notificationType:"error",title:ki("Error: process.exit(".concat(a,") called."))})})];case 1:return o.sent(),[4,this.emulatorShellProcess.on("progress",function(a){var l,c;if(a.state==="command_running"||a.state==="starting_command"){s.dispatch({type:"shell/progress",data:Me(Me({},a),{command:[(l=s.emulatorCommand)===null||l===void 0?void 0:l[0],(c=s.emulatorCommand)===null||c===void 0?void 0:c[1].join(" ")].join(" ")})}),s.status="installing-dependencies";return}s.dispatch({type:"shell/progress",data:a})})];case 2:return o.sent(),this.emulatorShellProcess.stdout.on("data",function(a){s.dispatch({type:"stdout",payload:{data:a,type:"out"}})}),this.emulatorShellProcess.stderr.on("data",function(a){s.dispatch({type:"stdout",payload:{data:a,type:"err"}})}),[4,(r=this.emulatorShellProcess).runCommand.apply(r,this.emulatorCommand)];case 3:return[2,o.sent()]}})})},e.prototype.createPreviewURLFromId=function(n){var i;return gt(this,void 0,void 0,function(){var r;return vt(this,function(s){switch(s.label){case 0:return this.iframePreviewUrl=void 0,[4,this.emulator.preview.getByShellId(n)];case 1:return r=s.sent().url,this.iframePreviewUrl=r+((i=this.options.startRoute)!==null&&i!==void 0?i:""),[2]}})})},e.prototype.manageIframes=function(n){var i;if(typeof n=="string"){var r=document.querySelector(n);Fn(r,"The element '".concat(n,"' was not found")),this.iframe=document.createElement("iframe"),r==null||r.appendChild(this.iframe)}else this.iframe=n;CN(this.iframe,this.options),Fn(this.iframe.parentNode,"The given iframe does not have a parent."),this.emulatorIframe=document.createElement("iframe"),this.emulatorIframe.classList.add("sp-bridge-frame"),(i=this.iframe.parentNode)===null||i===void 0||i.appendChild(this.emulatorIframe)},e.prototype.setLocationURLIntoIFrame=function(){return gt(this,void 0,void 0,function(){return vt(this,function(n){switch(n.label){case 0:return this.iframePreviewUrl?[4,QN(this.iframe,this.iframePreviewUrl)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.dispatchDoneMessage=function(){this.status="done",this.dispatch({type:"done",compilatonError:!1}),this.iframePreviewUrl&&this.dispatch({type:"urlchange",url:this.iframePreviewUrl,back:!1,forward:!1})},e.prototype.globalListeners=function(){return gt(this,void 0,void 0,function(){var n=this;return vt(this,function(i){switch(i.label){case 0:return window.addEventListener("message",function(r){r.data.type===yN&&DN(n.iframe,n.messageChannelId),r.data.type==="urlchange"&&r.data.channelId===n.messageChannelId?n.dispatch({type:"urlchange",url:r.data.url,back:r.data.back,forward:r.data.forward}):r.data.channelId===n.messageChannelId&&n.dispatch(r.data)}),[4,this.emulator.fs.watch(["*"],[".next","node_modules","build","dist","vendor",".config",".vuepress"],function(r){return gt(n,void 0,void 0,function(){var s,o,a,l,c,u,d;return vt(this,function(p){switch(p.label){case 0:return r?(s=r,o="newPath"in s?s.newPath:"path"in s?s.path:"",[4,this.emulator.fs.stat(o)]):[2];case 1:if(a=p.sent().type,a!=="file")return[2,null];p.label=2;case 2:switch(p.trys.push([2,10,,11]),l=s.type,l){case"change":return[3,3];case"create":return[3,3];case"remove":return[3,5];case"rename":return[3,6];case"close":return[3,8]}return[3,9];case 3:return[4,this.emulator.fs.readFile(s.path,"utf8")];case 4:return c=p.sent(),this.dispatch({type:"fs/change",path:s.path,content:c}),this._modulesCache.set(s.path,Ml(c)),[3,9];case 5:return this.dispatch({type:"fs/remove",path:s.path}),this._modulesCache.delete(s.path),[3,9];case 6:return this.dispatch({type:"fs/remove",path:s.oldPath}),this._modulesCache.delete(s.oldPath),[4,this.emulator.fs.readFile(s.newPath,"utf8")];case 7:return u=p.sent(),this.dispatch({type:"fs/change",path:s.newPath,content:u}),this._modulesCache.set(s.newPath,Ml(u)),[3,9];case 8:return[3,9];case 9:return[3,11];case 10:return d=p.sent(),this.dispatch({type:"action",action:"notification",notificationType:"error",title:Iw(d)}),[3,11];case 11:return[2]}})})})];case 1:return i.sent(),[2]}})})},e.prototype.restartShellProcess=function(){var n;return gt(this,void 0,void 0,function(){return vt(this,function(i){switch(i.label){case 0:return this.emulatorShellProcess&&this.emulatorCommand?(this.dispatch({type:"start",firstLoad:!0}),this.status="initializing",[4,this.emulatorShellProcess.kill()]):[3,3];case 1:return i.sent(),(n=this.iframe)===null||n===void 0||n.removeAttribute("attr"),this.emulator.fs.rm("/node_modules/.vite",{recursive:!0,force:!0}),[4,this.compile(Object.fromEntries(this._modulesCache))];case 2:i.sent(),i.label=3;case 3:return[2]}})})},e.prototype.updateSandbox=function(n){var i=this,r,s=_w(n.files);if(((r=this.emulatorShellProcess)===null||r===void 0?void 0:r.state)==="running"){Object.entries(s).forEach(function(o){var a=o[0],l=o[1];(!i._modulesCache.get(a)||tf(l)!==tf(i._modulesCache.get(a)))&&i.emulator.fs.writeFile(a,l,{recursive:!0})});return}this.dispatch({codesandbox:!0,modules:s,template:n.template,type:"compile"}),Object.entries(s).forEach(function(o){var a=o[0],l=o[1];i._modulesCache.set(a,Ml(l))})},e.prototype.dispatch=function(n){var i,r;return gt(this,void 0,void 0,function(){var s;return vt(this,function(o){switch(o.label){case 0:switch(s=n.type,s){case"compile":return[3,1];case"refresh":return[3,2];case"urlback":return[3,4];case"urlforward":return[3,4];case"shell/restart":return[3,5];case"shell/openPreview":return[3,6]}return[3,7];case 1:return this.compile(n.modules),[3,8];case 2:return[4,this.setLocationURLIntoIFrame()];case 3:return o.sent(),[3,8];case 4:return(r=(i=this.iframe)===null||i===void 0?void 0:i.contentWindow)===null||r===void 0||r.postMessage(n,"*"),[3,8];case 5:return this.restartShellProcess(),[3,8];case 6:return window.open(this.iframePreviewUrl,"_blank"),[3,8];case 7:this.emitter.dispatch(n),o.label=8;case 8:return[2]}})})},e.prototype.listen=function(n){return this.emitter.listener(n)},e.prototype.destroy=function(){this.emulatorIframe.remove(),this.emitter.cleanup()},e}(ef);const RN=Object.freeze(Object.defineProperty({__proto__:null,SandpackNode:MN},Symbol.toStringTag,{value:"Module"}));var _N=Object.create,Rl=Object.defineProperty,IN=Object.getOwnPropertyDescriptor,Nw=Object.getOwnPropertyNames,ZN=Object.getPrototypeOf,NN=Object.prototype.hasOwnProperty,Lw=(t,e)=>function(){return e||(0,t[Nw(t)[0]])((e={exports:{}}).exports,e),e.exports},LN=(t,e)=>{for(var n in e)Rl(t,n,{get:e[n],enumerable:!0})},Xw=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Nw(e))!NN.call(t,r)&&r!==n&&Rl(t,r,{get:()=>e[r],enumerable:!(i=IN(e,r))||i.enumerable});return t},XN=(t,e,n)=>(n=t!=null?_N(ZN(t)):{},Xw(e||!t||!t.__esModule?Rl(n,"default",{value:t,enumerable:!0}):n,t)),VN=t=>Xw(Rl({},"__esModule",{value:!0}),t),WN=Lw({"node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/db.json"(t,e){e.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}}}),qN=Lw({"node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js"(t,e){e.exports=WN()}}),Vw={};LN(Vw,{PreviewController:()=>HN,getExtension:()=>zw,joinFilepath:()=>qw,normalizeFilepath:()=>nf});var zN=VN(Vw),_l="$CSB_RELAY",YN=XN(qN()),Ww=new Map,BN=Object.entries(YN.default);for(const[t,e]of BN){const n=e.extensions;if(n!=null&&n.length)for(const i of n)Ww.set(i,t)}var UN=Ww,FN=0;function GN(){const t=Date.now(),e=Math.round(Math.random()*1e4),n=FN+=1;return(+`${t}${e}${n}`).toString(16)}function nf(t){return"/"+t.split("/").filter(Boolean).join("/")}function qw(t,e){return nf(t+"/"+e)}function zw(t){const e=t.split(".");return e.length<=1?"":e[e.length-1]}var HN=class{constructor(t){this.initPromise=null,this.baseUrl=new URL(t.baseUrl),this.getFileContent=t.getFileContent,this.indexFiles=t.indexFiles??["index.html","index.html"]}async getIndexAtPath(t){for(const e of this.indexFiles)try{return await this.getFileContent(qw(t,e))}catch{}throw new Error("No index file not found")}async handleWorkerRequest(t){if(!this.initPromise)throw new Error("Init promise is null");const[e,n]=await this.initPromise;try{const i=nf(new URL(t.url,e).pathname);let r=null;const s={};try{r=await this.getFileContent(i)}catch{}if(r==null&&(r=await this.getIndexAtPath(i),s["Content-Type"]="text/html; charset=utf-8"),r==null)throw new Error("File not found");if(!s["Content-Type"]){const a=zw(i),l=UN.get(a);l&&(s["Content-Type"]=l)}const o={$channel:_l,$type:"preview/response",id:t.id,headers:s,status:200,body:r};n.postMessage(o)}catch{const r={$channel:_l,$type:"preview/response",id:t.id,headers:{"Content-Type":"text/html; charset=utf-8"},status:404,body:"File not found"};n.postMessage(r)}}getRelayUrl(t){const e=new URL(t);return e.pathname="/__csb_relay/",e.toString()}async _initPreview(){const t=GN(),e=new URL(this.baseUrl);e.hostname=t+"-"+e.hostname,e.pathname="/";const n=this.getRelayUrl(e.toString()),i=document.createElement("iframe");i.setAttribute("src",n.toString()),i.style.display="none",document.body.appendChild(i);const r=new MessageChannel,s=i.contentWindow;if(!s)throw new Error("Could not get iframe contentWindow");return new Promise(o=>{const a=r.port1;a.onmessage=l=>{if(typeof l.data=="object"&&l.data.$channel===_l)switch(l.data.$type){case"preview/ready":o([e.toString(),a,i]);break;case"preview/request":this.handleWorkerRequest(l.data);break}},i.onload=()=>{const l={$channel:_l,$type:"preview/init"};s.postMessage(l,"*",[r.port2])}})}initPreview(){return this.initPromise||(this.initPromise=this._initPreview()),this.initPromise.then(t=>t[0])}destroy(){this.initPromise&&(this.initPromise.then(e=>{e[1].close();const n=this.getRelayUrl(e[0]);document.body.querySelectorAll(`src="${n}"`).forEach(r=>r.remove())}),this.initPromise=null)}},JN=function(t,e,n){var i=t.exec(e);if(i&&i.length>=1){var r=i.index+i[0].length,s=e.substring(0,r),o=e.substring(r);return s+n+o}},Yw=function(t){return typeof t=="string"?t:new TextDecoder().decode(t)},KN=function(t){var e=Yw(t),n=new DOMParser,i=n.parseFromString(e,"text/html");i.documentElement.getAttribute("lang")||i.documentElement.setAttribute("lang","en");var r=i.documentElement.outerHTML;return`<!DOCTYPE html>
765
+ `.concat(r)},eL=function(t){Hl(e,t);function e(n,i,r){r===void 0&&(r={});var s,o=t.call(this,n,i,r)||this;if(o.files=new Map,o.status="initializing",o.emitter=new Cw,o.previewController=new zN.PreviewController({baseUrl:(s=r.bundlerURL)!==null&&s!==void 0?s:"https://preview.sandpack-static-server.codesandbox.io",getFileContent:function(l){var c=o.files.get(l);if(!c)throw new Error("File not found");if(l.endsWith(".html")||l.endsWith(".htm"))try{c=KN(c),c=o.injectProtocolScript(c),c=o.injectExternalResources(c,r.externalResources),c=o.injectScriptIntoHead(c,{script:Zw,scope:{channelId:Rw()}})}catch(u){console.error("Runtime injection failed",u)}return c}}),typeof n=="string"){o.selector=n;var a=document.querySelector(n);o.element=a,o.iframe=document.createElement("iframe")}else o.element=n,o.iframe=n;return o.iframe.getAttribute("sandbox")||(o.iframe.setAttribute("sandbox","allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-downloads allow-pointer-lock"),o.iframe.setAttribute("allow","accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-write;")),o.eventListener=o.eventListener.bind(o),typeof window<"u"&&window.addEventListener("message",o.eventListener),o.updateSandbox(),o}return e.prototype.injectContentIntoHead=function(n,i){var r;return n=Yw(n),n=(r=JN(/<head[^<>]*>/g,n,`
766
+ `+i))!==null&&r!==void 0?r:i+`
767
+ `+n,n},e.prototype.injectProtocolScript=function(n){var i=`<script>
768
+ window.addEventListener("message", (message) => {
769
+ if(message.data.type === "refresh") {
770
+ window.location.reload();
771
+ }
772
+ })
773
+ <\/script>`;return this.injectContentIntoHead(n,i)},e.prototype.injectExternalResources=function(n,i){i===void 0&&(i=[]);var r=i.map(function(s){var o=s.match(/\.([^.]*)$/),a=o==null?void 0:o[1];if(a==="css"||s.includes("fonts.googleapis"))return'<link rel="stylesheet" href="'.concat(s,'">');if(a==="js")return'<script src="'.concat(s,'"><\/script>');throw new Error("Unable to determine file type for external resource: ".concat(s))}).join(`
774
+ `);return this.injectContentIntoHead(n,r)},e.prototype.injectScriptIntoHead=function(n,i){var r=i.script,s=i.scope,o=s===void 0?{}:s,a=`
775
+ <script>
776
+ const scope = `.concat(JSON.stringify(o),`;
777
+ `).concat(r,`
778
+ <\/script>
779
+ `).trim();return this.injectContentIntoHead(n,a)},e.prototype.updateSandbox=function(n,i){n===void 0&&(n=this.sandboxSetup);var r=_w(n.files);this.dispatch({codesandbox:!0,modules:r,template:n.template,type:"compile"})},e.prototype.compile=function(n){return gt(this,void 0,void 0,function(){var i;return vt(this,function(r){switch(r.label){case 0:return this.files=new Map(Object.entries(n)),[4,this.previewController.initPreview()];case 1:return i=r.sent(),this.iframe.setAttribute("src",i),this.status="done",this.dispatch({type:"done",compilatonError:!1}),this.dispatch({type:"urlchange",url:i,back:!1,forward:!1}),[2]}})})},e.prototype.eventListener=function(n){if(n.source===this.iframe.contentWindow){var i=n.data;i.codesandbox&&this.dispatch(i)}},e.prototype.dispatch=function(n){var i;switch(n.type){case"compile":this.compile(n.modules);break;default:(i=this.iframe.contentWindow)===null||i===void 0||i.postMessage(n,"*"),this.emitter.dispatch(n)}},e.prototype.listen=function(n){return this.emitter.listener(n)},e.prototype.destroy=function(){this.emitter.cleanup(),typeof window<"u"&&window.removeEventListener("message",this.eventListener)},e}(ef);const tL=Object.freeze(Object.defineProperty({__proto__:null,SandpackStatic:eL},Symbol.toStringTag,{value:"Module"}));var nL=function(){function t(e,n,i){var r=this;this.type=e,this.handleMessage=n,this.protocol=i,this._disposeMessageListener=this.protocol.channelListen(function(s){return gt(r,void 0,void 0,function(){var o,a,c,l,c;return vt(this,function(u){switch(u.label){case 0:if(!(s.type===this.getTypeId()&&s.method))return[3,4];o=s,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.handleMessage(o)];case 2:return a=u.sent(),c={type:this.getTypeId(),msgId:o.msgId,result:a},this.protocol.dispatch(c),[3,4];case 3:return l=u.sent(),c={type:this.getTypeId(),msgId:o.msgId,error:{message:l.message}},this.protocol.dispatch(c),[3,4];case 4:return[2]}})})})}return t.prototype.getTypeId=function(){return"protocol-".concat(this.type)},t.prototype.dispose=function(){this._disposeMessageListener()},t}(),iL=function(){function t(e,n){this.globalListeners={},this.globalListenersCount=0,this.channelListeners={},this.channelListenersCount=0,this.channelId=Math.floor(Math.random()*1e6),this.frameWindow=e.contentWindow,this.origin=n,this.globalListeners=[],this.channelListeners=[],this.eventListener=this.eventListener.bind(this),typeof window<"u"&&window.addEventListener("message",this.eventListener)}return t.prototype.cleanup=function(){window.removeEventListener("message",this.eventListener),this.globalListeners={},this.channelListeners={},this.globalListenersCount=0,this.channelListenersCount=0},t.prototype.register=function(){this.frameWindow&&this.frameWindow.postMessage({type:"register-frame",origin:document.location.origin,id:this.channelId},this.origin)},t.prototype.dispatch=function(e){this.frameWindow&&this.frameWindow.postMessage(Me({$id:this.channelId,codesandbox:!0},e),this.origin)},t.prototype.globalListen=function(e){var n=this;if(typeof e!="function")return function(){};var i=this.globalListenersCount;return this.globalListeners[i]=e,this.globalListenersCount++,function(){delete n.globalListeners[i]}},t.prototype.channelListen=function(e){var n=this;if(typeof e!="function")return function(){};var i=this.channelListenersCount;return this.channelListeners[i]=e,this.channelListenersCount++,function(){delete n.channelListeners[i]}},t.prototype.eventListener=function(e){if(e.source===this.frameWindow){var n=e.data;n.codesandbox&&(Object.values(this.globalListeners).forEach(function(i){return i(n)}),n.$id===this.channelId&&Object.values(this.channelListeners).forEach(function(i){return i(n)}))}},t}(),rL=50;function sL(t,e){if(!t)return"static";var n=t.dependencies,i=n===void 0?{}:n,r=t.devDependencies,s=r===void 0?{}:r,o=vo(vo([],Object.keys(i),!0),Object.keys(s),!0),a=Object.keys(e),l=["@adonisjs/framework","@adonisjs/core"];if(o.some(function(h){return l.indexOf(h)>-1}))return"adonis";var c=["nuxt","nuxt-edge","nuxt-ts","nuxt-ts-edge","nuxt3"];if(o.some(function(h){return c.indexOf(h)>-1}))return"nuxt";if(o.indexOf("next")>-1)return"next";var u=["apollo-server","apollo-server-express","apollo-server-hapi","apollo-server-koa","apollo-server-lambda","apollo-server-micro"];if(o.some(function(h){return u.indexOf(h)>-1}))return"apollo";if(o.indexOf("mdx-deck")>-1)return"mdx-deck";if(o.indexOf("gridsome")>-1)return"gridsome";if(o.indexOf("vuepress")>-1)return"vuepress";if(o.indexOf("ember-cli")>-1)return"ember";if(o.indexOf("sapper")>-1)return"sapper";if(o.indexOf("gatsby")>-1)return"gatsby";if(o.indexOf("quasar")>-1)return"quasar";if(o.indexOf("@docusaurus/core")>-1)return"docusaurus";if(o.indexOf("remix")>-1)return"remix";if(o.indexOf("astro")>-1)return"node";if(a.some(function(h){return h.endsWith(".re")}))return"reason";var d=["parcel-bundler","parcel"];if(o.some(function(h){return d.indexOf(h)>-1}))return"parcel";var p=["@dojo/core","@dojo/framework"];if(o.some(function(h){return p.indexOf(h)>-1}))return"@dojo/cli-create-app";if(o.indexOf("@nestjs/core")>-1||o.indexOf("@nestjs/common")>-1)return"nest";if(o.indexOf("react-styleguidist")>-1)return"styleguidist";if(o.indexOf("react-scripts")>-1)return"create-react-app";if(o.indexOf("react-scripts-ts")>-1)return"create-react-app-typescript";if(o.indexOf("@angular/core")>-1)return"angular-cli";if(o.indexOf("preact-cli")>-1)return"preact-cli";if(o.indexOf("@sveltech/routify")>-1||o.indexOf("@roxi/routify")>-1||o.indexOf("vite")>-1||o.indexOf("@frontity/core")>-1)return"node";if(o.indexOf("svelte")>-1)return"svelte";if(o.indexOf("vue")>-1)return"vue-cli";if(o.indexOf("cx")>-1)return"cxjs";var f=["express","koa","nodemon","ts-node","@tensorflow/tfjs-node","webpack-dev-server","snowpack"];if(o.some(function(h){return f.indexOf(h)>-1})||Object.keys(i).length>=rL)return"node"}var rf,oL="https://".concat((rf="2.13.8")===null||rf===void 0?void 0:rf.replace(/\./g,"-"),"-sandpack.codesandbox.io/"),aL=function(t){Hl(e,t);function e(n,i,r){r===void 0&&(r={});var s=t.call(this,n,i,r)||this;if(s.getTranspilerContext=function(){return new Promise(function(a){var l=s.listen(function(c){c.type==="transpiler-context"&&(a(c.data),l())});s.dispatch({type:"get-transpiler-context"})})},s.bundlerURL=r.bundlerURL||oL,r.teamId&&(s.bundlerURL=s.bundlerURL.replace("https://","https://"+r.teamId+"-")+"?cache=".concat(Date.now())),s.bundlerState=void 0,s.errors=[],s.status="initializing",typeof n=="string"){s.selector=n;var o=document.querySelector(n);Fn(o,"The element '".concat(n,"' was not found")),s.element=o,s.iframe=document.createElement("iframe"),s.initializeElement()}else s.element=n,s.iframe=n;return s.iframe.getAttribute("sandbox")||(s.iframe.setAttribute("sandbox","allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-downloads allow-pointer-lock"),s.iframe.setAttribute("allow","accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-write;")),s.setLocationURLIntoIFrame(),s.iframeProtocol=new iL(s.iframe,s.bundlerURL),s.unsubscribeGlobalListener=s.iframeProtocol.globalListen(function(a){a.type!=="initialized"||!s.iframe.contentWindow||(s.iframeProtocol.register(),s.options.fileResolver&&(s.fileResolverProtocol=new nL("fs",function(l){return gt(s,void 0,void 0,function(){return vt(this,function(c){if(l.method==="isFile")return[2,this.options.fileResolver.isFile(l.params[0])];if(l.method==="readFile")return[2,this.options.fileResolver.readFile(l.params[0])];throw new Error("Method not supported")})})},s.iframeProtocol)),s.updateSandbox(s.sandboxSetup,!0))}),s.unsubscribeChannelListener=s.iframeProtocol.channelListen(function(a){switch(a.type){case"start":{s.errors=[];break}case"status":{s.status=a.status;break}case"action":{a.action==="show-error"&&(s.errors=vo(vo([],s.errors,!0),[Nf(a)],!1));break}case"done":{s.status="done";break}case"state":{s.bundlerState=a.state;break}}}),s}return e.prototype.setLocationURLIntoIFrame=function(){var n,i=this.options.startRoute?new URL(this.options.startRoute,this.bundlerURL).toString():this.bundlerURL;(n=this.iframe.contentWindow)===null||n===void 0||n.location.replace(i),this.iframe.src=i},e.prototype.destroy=function(){this.unsubscribeChannelListener(),this.unsubscribeGlobalListener(),this.iframeProtocol.cleanup()},e.prototype.updateOptions=function(n){Pi(this.options,n)||(this.options=n,this.updateSandbox())},e.prototype.updateSandbox=function(n,i){var r,s,o,a;n===void 0&&(n=this.sandboxSetup),this.sandboxSetup=Me(Me({},this.sandboxSetup),n);var l=this.getFiles(),c=Object.keys(l).reduce(function(p,f){var h;return Me(Me({},p),(h={},h[f]={code:l[f].code,path:f},h))},{}),u=JSON.parse(If(this.sandboxSetup.dependencies,this.sandboxSetup.devDependencies,this.sandboxSetup.entry));try{u=JSON.parse(l["/package.json"].code)}catch(p){console.error(ki("could not parse package.json file: "+p.message))}var d=Object.keys(l).reduce(function(p,f){var h;return Me(Me({},p),(h={},h[f]={content:l[f].code,path:f},h))},{});this.dispatch(Me(Me({},this.options),{type:"compile",codesandbox:!0,version:3,isInitializationCompile:i,modules:c,reactDevTools:this.options.reactDevTools,externalResources:this.options.externalResources||[],hasFileResolver:!!this.options.fileResolver,disableDependencyPreprocessing:this.sandboxSetup.disableDependencyPreprocessing,template:this.sandboxSetup.template||sL(u,d),showOpenInCodeSandbox:(r=this.options.showOpenInCodeSandbox)!==null&&r!==void 0?r:!0,showErrorScreen:(s=this.options.showErrorScreen)!==null&&s!==void 0?s:!0,showLoadingScreen:(o=this.options.showLoadingScreen)!==null&&o!==void 0?o:!1,skipEval:this.options.skipEval||!1,clearConsoleDisabled:!this.options.clearConsoleOnFirstCompile,logLevel:(a=this.options.logLevel)!==null&&a!==void 0?a:Jl.Info,customNpmRegistries:this.options.customNpmRegistries,teamId:this.options.teamId,sandboxId:this.options.sandboxId}))},e.prototype.dispatch=function(n){n.type==="refresh"&&this.setLocationURLIntoIFrame(),this.iframeProtocol.dispatch(n)},e.prototype.listen=function(n){return this.iframeProtocol.channelListen(n)},e.prototype.getCodeSandboxURL=function(){var n=this.getFiles(),i=Object.keys(n).reduce(function(r,s){var o;return Me(Me({},r),(o={},o[s.replace("/","")]={content:n[s].code,isBinary:!1},o))},{});return fetch("https://codesandbox.io/api/v1/sandboxes/define?json=1",{method:"POST",body:JSON.stringify({files:i}),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(r){return r.json()}).then(function(r){return{sandboxId:r.sandbox_id,editorUrl:"https://codesandbox.io/s/".concat(r.sandbox_id),embedUrl:"https://codesandbox.io/embed/".concat(r.sandbox_id)}})},e.prototype.getFiles=function(){var n=this.sandboxSetup;return n.files["/package.json"]===void 0?Zf(n.files,n.dependencies,n.devDependencies,n.entry):this.sandboxSetup.files},e.prototype.initializeElement=function(){this.iframe.style.border="0",this.iframe.style.width=this.options.width||"100%",this.iframe.style.height=this.options.height||"100%",this.iframe.style.overflow="hidden",Fn(this.element.parentNode,"The given iframe does not have a parent."),this.element.parentNode.replaceChild(this.iframe,this.element)},e}(ef);const lL=Object.freeze(Object.defineProperty({__proto__:null,SandpackRuntime:aL},Symbol.toStringTag,{value:"Module"}));xe.Editor=IZ,Object.defineProperty(xe,Symbol.toStringTag,{value:"Module"})});