arize-phoenix 8.0.1__py3-none-any.whl → 8.2.0__py3-none-any.whl

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.

Potentially problematic release.


This version of arize-phoenix might be problematic. Click here for more details.

Files changed (38) hide show
  1. {arize_phoenix-8.0.1.dist-info → arize_phoenix-8.2.0.dist-info}/METADATA +1 -2
  2. {arize_phoenix-8.0.1.dist-info → arize_phoenix-8.2.0.dist-info}/RECORD +37 -36
  3. phoenix/config.py +32 -6
  4. phoenix/db/models.py +151 -11
  5. phoenix/server/api/context.py +4 -0
  6. phoenix/server/api/dataloaders/__init__.py +4 -0
  7. phoenix/server/api/dataloaders/span_by_id.py +29 -0
  8. phoenix/server/api/dataloaders/span_descendants.py +24 -15
  9. phoenix/server/api/dataloaders/span_fields.py +76 -0
  10. phoenix/server/api/dataloaders/trace_root_spans.py +9 -10
  11. phoenix/server/api/mutations/chat_mutations.py +10 -7
  12. phoenix/server/api/queries.py +2 -2
  13. phoenix/server/api/subscriptions.py +3 -3
  14. phoenix/server/api/types/Annotation.py +4 -1
  15. phoenix/server/api/types/DatasetExample.py +2 -2
  16. phoenix/server/api/types/Project.py +8 -10
  17. phoenix/server/api/types/ProjectSession.py +2 -2
  18. phoenix/server/api/types/Span.py +377 -120
  19. phoenix/server/api/types/SpanIOValue.py +39 -6
  20. phoenix/server/api/types/Trace.py +17 -15
  21. phoenix/server/app.py +4 -0
  22. phoenix/server/prometheus.py +113 -7
  23. phoenix/server/static/.vite/manifest.json +36 -36
  24. phoenix/server/static/assets/{components-B-qgPyHv.js → components-C48uRczp.js} +1 -1
  25. phoenix/server/static/assets/{index-D4KO1IcF.js → index-5klIR86Z.js} +2 -2
  26. phoenix/server/static/assets/{pages-DdcuL3Rh.js → pages-sERWyBWu.js} +326 -326
  27. phoenix/server/static/assets/{vendor-DQp7CrDA.js → vendor-Cqfydjep.js} +117 -117
  28. phoenix/server/static/assets/{vendor-arizeai-C1nEIEQq.js → vendor-arizeai-WnerlUPN.js} +1 -1
  29. phoenix/server/static/assets/{vendor-codemirror-BZXYUIkP.js → vendor-codemirror-D-ZZKLFq.js} +1 -1
  30. phoenix/server/static/assets/{vendor-recharts-BUFpwCVD.js → vendor-recharts-KY97ZPfK.js} +1 -1
  31. phoenix/server/static/assets/{vendor-shiki-C8L-c9jT.js → vendor-shiki-D5K9GnFn.js} +1 -1
  32. phoenix/trace/attributes.py +7 -2
  33. phoenix/version.py +1 -1
  34. phoenix/server/api/helpers/jsonschema.py +0 -135
  35. {arize_phoenix-8.0.1.dist-info → arize_phoenix-8.2.0.dist-info}/WHEEL +0 -0
  36. {arize_phoenix-8.0.1.dist-info → arize_phoenix-8.2.0.dist-info}/entry_points.txt +0 -0
  37. {arize_phoenix-8.0.1.dist-info → arize_phoenix-8.2.0.dist-info}/licenses/IP_NOTICE +0 -0
  38. {arize_phoenix-8.0.1.dist-info → arize_phoenix-8.2.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,4 +1,4 @@
1
- import{E as C,r as h,bv as e,R as L,bw as xr,bx as wr,by as Aa,bz as Cr,bA as Ar,bB as zr,I as N,bC as K,bD as Va,bE as ke,bF as Sr,$ as Be,bG as Pe,bH as za,X as ba,Y as va,bI as kr,bJ as Sa,bK as na,bL as Br,bM as Pr,bN as fa,bO as $a,bP as Rr,bQ as Re,bR as Ie,bS as Ir,bT as Nr,bU as Ta,bV as Wa,bW as Lr,bX as Fr,bY as Or,bZ as Er,b_ as Dr,b$ as Tr,c0 as _r,c1 as Mr,c2 as Hr,c3 as Qr,c4 as Vr,c5 as $r,c6 as Ne,c7 as Wr,c8 as le,c9 as Gr,ca as Yr,cb as Ur,cc as Kr,cd as Xr,ce as te,cf as jr,cg as qr,ch as Jr,ci as Zr,cj as ao,ck as eo,cl as ro,cm as oo,cn as lo,co as to,cp as io,cq as no,cr as Ga,cs as co,ct as so,cu as go,cv as bo,cw as uo,ap as ie,aH as ne}from"./vendor-DQp7CrDA.js";function ce(a,r){(r==null||r>a.length)&&(r=a.length);for(var o=0,l=Array(r);o<r;o++)l[o]=a[o];return l}function Le(a,r){var o=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(o)return(o=o.call(a)).next.bind(o);if(Array.isArray(a)||(o=po(a))||r){o&&(a=o);var l=0;return function(){return l>=a.length?{done:!0}:{done:!1,value:a[l++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{E as C,r as h,bw as e,R as L,bx as xr,by as wr,bz as Aa,bA as Cr,bB as Ar,bC as zr,I as N,bD as K,bE as Va,bF as ke,bG as Sr,$ as Be,bH as Pe,bI as za,X as ba,Y as va,bJ as kr,bK as Sa,bL as na,bM as Br,bN as Pr,bO as fa,bP as $a,bQ as Rr,bR as Re,bS as Ie,bT as Ir,bU as Nr,bV as Ta,bW as Wa,bX as Lr,bY as Fr,bZ as Or,b_ as Er,b$ as Dr,c0 as Tr,c1 as _r,c2 as Mr,c3 as Hr,c4 as Qr,c5 as Vr,c6 as $r,c7 as Ne,c8 as Wr,c9 as le,ca as Gr,cb as Yr,cc as Ur,cd as Kr,ce as Xr,cf as te,cg as jr,ch as qr,ci as Jr,cj as Zr,ck as ao,cl as eo,cm as ro,cn as oo,co as lo,cp as to,cq as io,cr as no,cs as Ga,ct as co,cu as so,cv as go,cw as bo,cx as uo,ap as ie,aH as ne}from"./vendor-Cqfydjep.js";function ce(a,r){(r==null||r>a.length)&&(r=a.length);for(var o=0,l=Array(r);o<r;o++)l[o]=a[o];return l}function Le(a,r){var o=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(o)return(o=o.call(a)).next.bind(o);if(Array.isArray(a)||(o=po(a))||r){o&&(a=o);var l=0;return function(){return l>=a.length?{done:!0}:{done:!1,value:a[l++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(){return f=Object.assign?Object.assign.bind():function(a){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var l in o)({}).hasOwnProperty.call(o,l)&&(a[l]=o[l])}return a},f.apply(null,arguments)}function vo(a,r){a.prototype=Object.create(r.prototype),a.prototype.constructor=a,Ma(a,r)}function fo(a){if(a==null)throw new TypeError("Cannot destructure "+a)}function M(a,r){if(a==null)return{};var o={};for(var l in a)if({}.hasOwnProperty.call(a,l)){if(r.includes(l))continue;o[l]=a[l]}return o}function _a(){_a=function(){return r};var a,r={},o=Object.prototype,l=o.hasOwnProperty,t=Object.defineProperty||function(p,v,y){p[v]=y.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",g=i.toStringTag||"@@toStringTag";function n(p,v,y){return Object.defineProperty(p,v,{value:y,enumerable:!0,configurable:!0,writable:!0}),p[v]}try{n({},"")}catch{n=function(v,y,P){return v[y]=P}}function d(p,v,y,P){var k=v&&v.prototype instanceof I?v:I,O=Object.create(k.prototype),D=new j(P||[]);return t(O,"_invoke",{value:Y(p,y,D)}),O}function b(p,v,y){try{return{type:"normal",arg:p.call(v,y)}}catch(P){return{type:"throw",arg:P}}}r.wrap=d;var u="suspendedStart",x="suspendedYield",m="executing",A="completed",w={};function I(){}function B(){}function S(){}var R={};n(R,s,function(){return this});var E=Object.getPrototypeOf,H=E&&E(E(W([])));H&&H!==o&&l.call(H,s)&&(R=H);var _=S.prototype=I.prototype=Object.create(R);function F(p){["next","throw","return"].forEach(function(v){n(p,v,function(y){return this._invoke(v,y)})})}function $(p,v){function y(k,O,D,Q){var G=b(p[k],p,O);if(G.type!=="throw"){var aa=G.arg,ca=aa.value;return ca&&typeof ca=="object"&&l.call(ca,"__await")?v.resolve(ca.__await).then(function(la){y("next",la,D,Q)},function(la){y("throw",la,D,Q)}):v.resolve(ca).then(function(la){aa.value=la,D(aa)},function(la){return y("throw",la,D,Q)})}Q(G.arg)}var P;t(this,"_invoke",{value:function(k,O){function D(){return new v(function(Q,G){y(k,O,Q,G)})}return P=P?P.then(D,D):D()}})}function Y(p,v,y){var P=u;return function(k,O){if(P===m)throw Error("Generator is already running");if(P===A){if(k==="throw")throw O;return{value:a,done:!0}}for(y.method=k,y.arg=O;;){var D=y.delegate;if(D){var Q=U(D,y);if(Q){if(Q===w)continue;return Q}}if(y.method==="next")y.sent=y._sent=y.arg;else if(y.method==="throw"){if(P===u)throw P=A,y.arg;y.dispatchException(y.arg)}else y.method==="return"&&y.abrupt("return",y.arg);P=m;var G=b(p,v,y);if(G.type==="normal"){if(P=y.done?A:x,G.arg===w)continue;return{value:G.arg,done:y.done}}G.type==="throw"&&(P=A,y.method="throw",y.arg=G.arg)}}}function U(p,v){var y=v.method,P=p.iterator[y];if(P===a)return v.delegate=null,y==="throw"&&p.iterator.return&&(v.method="return",v.arg=a,U(p,v),v.method==="throw")||y!=="return"&&(v.method="throw",v.arg=new TypeError("The iterator does not provide a '"+y+"' method")),w;var k=b(P,p.iterator,v.arg);if(k.type==="throw")return v.method="throw",v.arg=k.arg,v.delegate=null,w;var O=k.arg;return O?O.done?(v[p.resultName]=O.value,v.next=p.nextLoc,v.method!=="return"&&(v.method="next",v.arg=a),v.delegate=null,w):O:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,w)}function X(p){var v={tryLoc:p[0]};1 in p&&(v.catchLoc=p[1]),2 in p&&(v.finallyLoc=p[2],v.afterLoc=p[3]),this.tryEntries.push(v)}function V(p){var v=p.completion||{};v.type="normal",delete v.arg,p.completion=v}function j(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(X,this),this.reset(!0)}function W(p){if(p||p===""){var v=p[s];if(v)return v.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var y=-1,P=function k(){for(;++y<p.length;)if(l.call(p,y))return k.value=p[y],k.done=!1,k;return k.value=a,k.done=!0,k};return P.next=P}}throw new TypeError(typeof p+" is not iterable")}return B.prototype=S,t(_,"constructor",{value:S,configurable:!0}),t(S,"constructor",{value:B,configurable:!0}),B.displayName=n(S,g,"GeneratorFunction"),r.isGeneratorFunction=function(p){var v=typeof p=="function"&&p.constructor;return!!v&&(v===B||(v.displayName||v.name)==="GeneratorFunction")},r.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,S):(p.__proto__=S,n(p,g,"GeneratorFunction")),p.prototype=Object.create(_),p},r.awrap=function(p){return{__await:p}},F($.prototype),n($.prototype,c,function(){return this}),r.AsyncIterator=$,r.async=function(p,v,y,P,k){k===void 0&&(k=Promise);var O=new $(d(p,v,y,P),k);return r.isGeneratorFunction(v)?O:O.next().then(function(D){return D.done?D.value:O.next()})},F(_),n(_,g,"Generator"),n(_,s,function(){return this}),n(_,"toString",function(){return"[object Generator]"}),r.keys=function(p){var v=Object(p),y=[];for(var P in v)y.push(P);return y.reverse(),function k(){for(;y.length;){var O=y.pop();if(O in v)return k.value=O,k.done=!1,k}return k.done=!0,k}},r.values=W,j.prototype={constructor:j,reset:function(p){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(V),!p)for(var v in this)v.charAt(0)==="t"&&l.call(this,v)&&!isNaN(+v.slice(1))&&(this[v]=a)},stop:function(){this.done=!0;var p=this.tryEntries[0].completion;if(p.type==="throw")throw p.arg;return this.rval},dispatchException:function(p){if(this.done)throw p;var v=this;function y(G,aa){return O.type="throw",O.arg=p,v.next=G,aa&&(v.method="next",v.arg=a),!!aa}for(var P=this.tryEntries.length-1;P>=0;--P){var k=this.tryEntries[P],O=k.completion;if(k.tryLoc==="root")return y("end");if(k.tryLoc<=this.prev){var D=l.call(k,"catchLoc"),Q=l.call(k,"finallyLoc");if(D&&Q){if(this.prev<k.catchLoc)return y(k.catchLoc,!0);if(this.prev<k.finallyLoc)return y(k.finallyLoc)}else if(D){if(this.prev<k.catchLoc)return y(k.catchLoc,!0)}else{if(!Q)throw Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return y(k.finallyLoc)}}}},abrupt:function(p,v){for(var y=this.tryEntries.length-1;y>=0;--y){var P=this.tryEntries[y];if(P.tryLoc<=this.prev&&l.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var k=P;break}}k&&(p==="break"||p==="continue")&&k.tryLoc<=v&&v<=k.finallyLoc&&(k=null);var O=k?k.completion:{};return O.type=p,O.arg=v,k?(this.method="next",this.next=k.finallyLoc,w):this.complete(O)},complete:function(p,v){if(p.type==="throw")throw p.arg;return p.type==="break"||p.type==="continue"?this.next=p.arg:p.type==="return"?(this.rval=this.arg=p.arg,this.method="return",this.next="end"):p.type==="normal"&&v&&(this.next=v),w},finish:function(p){for(var v=this.tryEntries.length-1;v>=0;--v){var y=this.tryEntries[v];if(y.finallyLoc===p)return this.complete(y.completion,y.afterLoc),V(y),w}},catch:function(p){for(var v=this.tryEntries.length-1;v>=0;--v){var y=this.tryEntries[v];if(y.tryLoc===p){var P=y.completion;if(P.type==="throw"){var k=P.arg;V(y)}return k}}throw Error("illegal catch attempt")},delegateYield:function(p,v,y){return this.delegate={iterator:W(p),resultName:v,nextLoc:y},this.method==="next"&&(this.arg=a),w}},r}function Ma(a,r){return Ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o},Ma(a,r)}function ua(a,r){return r||(r=a.slice(0)),a.raw=r,a}function po(a,r){if(a){if(typeof a=="string")return ce(a,r);var o={}.toString.call(a).slice(8,-1);return o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set"?Array.from(a):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ce(a,r):void 0}}var mo={name:"9rndb8",styles:":root{--ac-global-dimension-scale-factor:1;--ac-global-dimension-size-0:0px;--ac-global-dimension-size-10:1px;--ac-global-dimension-size-25:2px;--ac-global-dimension-size-30:2px;--ac-global-dimension-size-40:3px;--ac-global-dimension-size-50:4px;--ac-global-dimension-size-65:5px;--ac-global-dimension-size-75:6px;--ac-global-dimension-size-85:7px;--ac-global-dimension-size-100:8px;--ac-global-dimension-size-115:9px;--ac-global-dimension-size-125:10px;--ac-global-dimension-size-130:11px;--ac-global-dimension-size-150:12px;--ac-global-dimension-size-160:13px;--ac-global-dimension-size-175:14px;--ac-global-dimension-size-185:15px;--ac-global-dimension-size-200:16px;--ac-global-dimension-size-225:18px;--ac-global-dimension-size-250:20px;--ac-global-dimension-size-275:22px;--ac-global-dimension-size-300:24px;--ac-global-dimension-size-325:26px;--ac-global-dimension-size-350:28px;--ac-global-dimension-size-400:32px;--ac-global-dimension-size-450:36px;--ac-global-dimension-size-500:40px;--ac-global-dimension-size-550:44px;--ac-global-dimension-size-600:48px;--ac-global-dimension-size-650:52px;--ac-global-dimension-size-675:54px;--ac-global-dimension-size-700:56px;--ac-global-dimension-size-750:60px;--ac-global-dimension-size-800:64px;--ac-global-dimension-size-900:72px;--ac-global-dimension-size-1000:80px;--ac-global-dimension-size-1125:90px;--ac-global-dimension-size-1200:96px;--ac-global-dimension-size-1250:100px;--ac-global-dimension-size-1600:128px;--ac-global-dimension-size-1700:136px;--ac-global-dimension-size-1800:144px;--ac-global-dimension-size-2000:160px;--ac-global-dimension-size-2400:192px;--ac-global-dimension-size-2500:200px;--ac-global-dimension-size-3000:240px;--ac-global-dimension-size-3400:272px;--ac-global-dimension-size-3600:288px;--ac-global-dimension-size-4600:368px;--ac-global-dimension-size-5000:400px;--ac-global-dimension-size-6000:480px;}"},ho={name:"1vqwjre",styles:":root{--ac-global-static-color-white-900:rgba(255, 255, 255, 0.9);--ac-global-static-color-white-700:rgba(255, 255, 255, 0.7);--ac-global-static-color-white-300:rgba(255, 255, 255, 0.3);--ac-global-static-color-black-900:rgba(0, 0, 0, 0.9);--ac-global-static-color-black-700:rgba(0, 0, 0, 0.7);--ac-global-static-color-black-300:rgba(0, 0, 0, 0.3);}"},yo={name:"15o57dn",styles:":root{--ac-global-dimension-static-size-0:0px;--ac-global-dimension-static-size-10:1px;--ac-global-dimension-static-size-25:2px;--ac-global-dimension-static-size-50:4px;--ac-global-dimension-static-size-40:3px;--ac-global-dimension-static-size-65:5px;--ac-global-dimension-static-size-100:8px;--ac-global-dimension-static-size-115:9px;--ac-global-dimension-static-size-125:10px;--ac-global-dimension-static-size-130:11px;--ac-global-dimension-static-size-150:12px;--ac-global-dimension-static-size-160:13px;--ac-global-dimension-static-size-175:14px;--ac-global-dimension-static-size-200:16px;--ac-global-dimension-static-size-225:18px;--ac-global-dimension-static-size-250:20px;--ac-global-dimension-static-size-300:24px;--ac-global-dimension-static-size-400:32px;--ac-global-dimension-static-size-450:36px;--ac-global-dimension-static-size-500:40px;--ac-global-dimension-static-size-550:44px;--ac-global-dimension-static-size-600:48px;--ac-global-dimension-static-size-700:56px;--ac-global-dimension-static-size-800:64px;--ac-global-dimension-static-size-900:72px;--ac-global-dimension-static-size-1000:80px;--ac-global-dimension-static-size-1200:96px;--ac-global-dimension-static-size-1700:136px;--ac-global-dimension-static-size-2400:192px;--ac-global-dimension-static-size-2600:208px;--ac-global-dimension-static-size-3400:272px;--ac-global-dimension-static-size-3600:288px;--ac-global-dimension-static-size-4600:368px;--ac-global-dimension-static-size-5000:400px;--ac-global-dimension-static-size-6000:480px;--ac-global-dimension-static-font-size-50:11px;--ac-global-dimension-static-font-size-75:12px;--ac-global-dimension-static-font-size-100:14px;--ac-global-dimension-static-font-size-150:15px;--ac-global-dimension-static-font-size-200:16px;--ac-global-dimension-static-font-size-300:18px;--ac-global-dimension-static-font-size-400:20px;--ac-global-dimension-static-font-size-500:22px;--ac-global-dimension-static-font-size-600:25px;--ac-global-dimension-static-font-size-700:28px;--ac-global-dimension-static-font-size-800:32px;--ac-global-dimension-static-font-size-900:36px;--ac-global-dimension-static-font-size-1000:40px;--ac-global-dimension-static-percent-50:50%;--ac-global-dimension-static-percent-100:100%;--ac-global-dimension-static-breakpoint-xsmall:304px;--ac-global-dimension-static-breakpoint-small:768px;--ac-global-dimension-static-breakpoint-medium:1280px;--ac-global-dimension-static-breakpoint-large:1768px;--ac-global-dimension-static-breakpoint-xlarge:2160px;--ac-global-dimension-static-grid-columns:12;--ac-global-dimension-static-grid-fluid-width:100%;--ac-global-dimension-static-grid-fixed-max-width:1280px;--ac-global-dimension-font-size-25:10px;--ac-global-dimension-font-size-50:11px;--ac-global-dimension-font-size-75:12px;--ac-global-dimension-font-size-100:14px;--ac-global-dimension-font-size-150:15px;--ac-global-dimension-font-size-200:16px;--ac-global-dimension-font-size-300:18px;--ac-global-dimension-font-size-400:20px;--ac-global-dimension-font-size-500:22px;--ac-global-dimension-font-size-600:25px;--ac-global-dimension-font-size-700:28px;--ac-global-dimension-font-size-800:32px;--ac-global-dimension-font-size-900:36px;--ac-global-dimension-font-size-1000:40px;--ac-global-dimension-font-size-1100:45px;--ac-global-dimension-font-size-1200:50px;--ac-global-dimension-font-size-1300:60px;}"},xo={name:"xwbvnd",styles:`:root,.ac-theme--dark{--ac-global-color-primary:rgb(114, 217, 255);--ac-global-color-primary-900:rgba(114, 217, 255, 0.9);--ac-global-color-primary-700:rgba(114, 217, 255, 0.7);--ac-global-color-primary-500:rgba(114, 217, 255, 0.5);--ac-global-color-primary-300:rgba(114, 217, 255, 0.3);--ac-global-color-gray-900:#181b1f;--ac-global-color-gray-800:#1d2126;--ac-global-color-gray-700:#23282e;--ac-global-color-gray-600:#282e35;--ac-global-color-gray-500:#2f353d;--ac-global-color-gray-400:#3d434a;--ac-global-color-gray-300:#4a5057;--ac-global-color-gray-200:#585d64;--ac-global-color-gray-100:#666b71;--ac-global-color-grey-50-rgb:0,0,0;--ac-global-color-grey-50:rgb(var(--ac-global-color-grey-50-rgb));--ac-global-color-grey-75-rgb:14,14,14;--ac-global-color-grey-75:rgb(var(--ac-global-color-grey-75-rgb));--ac-global-color-grey-100-rgb:29,29,29;--ac-global-color-grey-100:rgb(var(--ac-global-color-grey-100-rgb));--ac-global-color-grey-200-rgb:48,48,48;--ac-global-color-grey-200:rgb(var(--ac-global-color-grey-200-rgb));--ac-global-color-grey-300-rgb:75,75,75;--ac-global-color-grey-300:rgb(var(--ac-global-color-grey-300-rgb));--ac-global-color-grey-400-rgb:106,106,106;--ac-global-color-grey-400:rgb(var(--ac-global-color-grey-400-rgb));--ac-global-color-grey-500-rgb:141,141,141;--ac-global-color-grey-500:rgb(var(--ac-global-color-grey-500-rgb));--ac-global-color-grey-600-rgb:176,176,176;--ac-global-color-grey-600:rgb(var(--ac-global-color-grey-600-rgb));--ac-global-color-grey-700-rgb:208,208,208;--ac-global-color-grey-700:rgb(var(--ac-global-color-grey-700-rgb));--ac-global-color-grey-800-rgb:235,235,235;--ac-global-color-grey-800:rgb(var(--ac-global-color-grey-800-rgb));--ac-global-color-grey-900-rgb:255,255,255;--ac-global-color-grey-900:rgb(var(--ac-global-color-grey-900-rgb));--ac-global-color-red-100-rgb:87,0,0;--ac-global-color-red-100:rgb(var(--ac-global-color-red-100-rgb));--ac-global-color-red-200-rgb:110,0,0;--ac-global-color-red-200:rgb(var(--ac-global-color-red-200-rgb));--ac-global-color-red-300-rgb:138,0,0;--ac-global-color-red-300:rgb(var(--ac-global-color-red-300-rgb));--ac-global-color-red-400-rgb:167,0,0;--ac-global-color-red-400:rgb(var(--ac-global-color-red-400-rgb));--ac-global-color-red-500-rgb:196,7,6;--ac-global-color-red-500:rgb(var(--ac-global-color-red-500-rgb));--ac-global-color-red-600-rgb:221,33,24;--ac-global-color-red-600:rgb(var(--ac-global-color-red-600-rgb));--ac-global-color-red-700-rgb:238,67,49;--ac-global-color-red-700:rgb(var(--ac-global-color-red-700-rgb));--ac-global-color-red-800-rgb:249,99,76;--ac-global-color-red-800:rgb(var(--ac-global-color-red-800-rgb));--ac-global-color-red-900-rgb:255,129,107;--ac-global-color-red-900:rgb(var(--ac-global-color-red-900-rgb));--ac-global-color-red-1000-rgb:255,158,140;--ac-global-color-red-1000:rgb(var(--ac-global-color-red-1000-rgb));--ac-global-color-red-1100-rgb:255,183,169;--ac-global-color-red-1100:rgb(var(--ac-global-color-red-1100-rgb));--ac-global-color-red-1200-rgb:255,205,195;--ac-global-color-red-1200:rgb(var(--ac-global-color-red-1200-rgb));--ac-global-color-red-1300-rgb:255,223,217;--ac-global-color-red-1300:rgb(var(--ac-global-color-red-1300-rgb));--ac-global-color-red-1400-rgb:255,237,234;--ac-global-color-red-1400:rgb(var(--ac-global-color-red-1400-rgb));--ac-global-color-orange-100-rgb:72,24,1;--ac-global-color-orange-100:rgb(var(--ac-global-color-orange-100-rgb));--ac-global-color-orange-200-rgb:92,32,0;--ac-global-color-orange-200:rgb(var(--ac-global-color-orange-200-rgb));--ac-global-color-orange-300-rgb:115,43,0;--ac-global-color-orange-300:rgb(var(--ac-global-color-orange-300-rgb));--ac-global-color-orange-400-rgb:138,55,0;--ac-global-color-orange-400:rgb(var(--ac-global-color-orange-400-rgb));--ac-global-color-orange-500-rgb:162,68,0;--ac-global-color-orange-500:rgb(var(--ac-global-color-orange-500-rgb));--ac-global-color-orange-600-rgb:186,82,0;--ac-global-color-orange-600:rgb(var(--ac-global-color-orange-600-rgb));--ac-global-color-orange-700-rgb:210,98,0;--ac-global-color-orange-700:rgb(var(--ac-global-color-orange-700-rgb));--ac-global-color-orange-800-rgb:232,116,0;--ac-global-color-orange-800:rgb(var(--ac-global-color-orange-800-rgb));--ac-global-color-orange-900-rgb:249,137,23;--ac-global-color-orange-900:rgb(var(--ac-global-color-orange-900-rgb));--ac-global-color-orange-1000-rgb:255,162,59;--ac-global-color-orange-1000:rgb(var(--ac-global-color-orange-1000-rgb));--ac-global-color-orange-1100-rgb:255,188,102;--ac-global-color-orange-1100:rgb(var(--ac-global-color-orange-1100-rgb));--ac-global-color-orange-1200-rgb:253,210,145;--ac-global-color-orange-1200:rgb(var(--ac-global-color-orange-1200-rgb));--ac-global-color-orange-1300-rgb:255,226,181;--ac-global-color-orange-1300:rgb(var(--ac-global-color-orange-1300-rgb));--ac-global-color-orange-1400-rgb:255,239,213;--ac-global-color-orange-1400:rgb(var(--ac-global-color-orange-1400-rgb));--ac-global-color-yellow-100-rgb:53,36,0;--ac-global-color-yellow-100:rgb(var(--ac-global-color-yellow-100-rgb));--ac-global-color-yellow-200-rgb:68,47,0;--ac-global-color-yellow-200:rgb(var(--ac-global-color-yellow-200-rgb));--ac-global-color-yellow-300-rgb:86,62,0;--ac-global-color-yellow-300:rgb(var(--ac-global-color-yellow-300-rgb));--ac-global-color-yellow-400-rgb:103,77,0;--ac-global-color-yellow-400:rgb(var(--ac-global-color-yellow-400-rgb));--ac-global-color-yellow-500-rgb:122,92,0;--ac-global-color-yellow-500:rgb(var(--ac-global-color-yellow-500-rgb));--ac-global-color-yellow-600-rgb:141,108,0;--ac-global-color-yellow-600:rgb(var(--ac-global-color-yellow-600-rgb));--ac-global-color-yellow-700-rgb:161,126,0;--ac-global-color-yellow-700:rgb(var(--ac-global-color-yellow-700-rgb));--ac-global-color-yellow-800-rgb:180,144,0;--ac-global-color-yellow-800:rgb(var(--ac-global-color-yellow-800-rgb));--ac-global-color-yellow-900-rgb:199,162,0;--ac-global-color-yellow-900:rgb(var(--ac-global-color-yellow-900-rgb));--ac-global-color-yellow-1000-rgb:216,181,0;--ac-global-color-yellow-1000:rgb(var(--ac-global-color-yellow-1000-rgb));--ac-global-color-yellow-1100-rgb:233,199,0;--ac-global-color-yellow-1100:rgb(var(--ac-global-color-yellow-1100-rgb));--ac-global-color-yellow-1200-rgb:247,216,4;--ac-global-color-yellow-1200:rgb(var(--ac-global-color-yellow-1200-rgb));--ac-global-color-yellow-1300-rgb:249,233,97;--ac-global-color-yellow-1300:rgb(var(--ac-global-color-yellow-1300-rgb));--ac-global-color-yellow-1400-rgb:252,243,170;--ac-global-color-yellow-1400:rgb(var(--ac-global-color-yellow-1400-rgb));--ac-global-color-chartreuse-100-rgb:32,43,0;--ac-global-color-chartreuse-100:rgb(
3
3
  var(--ac-global-color-chartreuse-100-rgb)
4
4
  );--ac-global-color-chartreuse-200-rgb:42,56,0;--ac-global-color-chartreuse-200:rgb(
@@ -1,4 +1,4 @@
1
- import{cx as ht,cy as yf,cz as bf,cA as xf,cB as Me,cC as Et,cD as kr,cE as cn,cF as vf,cG as Cr,cH as wf,cI as Sf,y as m,x as kf,cJ as Cf,cK as V,cL as qn,r as Se,cM as Af,cN as Mf,cO as Tf,cP as Of,cQ as Ql,cR as Df,cS as Ef,cT as Zl,cU as Pf,cV as ea,cW as Bf}from"./vendor-DQp7CrDA.js";import{m as Rf}from"./vendor-shiki-C8L-c9jT.js";class B{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,t,i){[e,t]=$t(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),$e.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=$t(this,e,t);let i=[];return this.decompose(e,t,i,0),$e.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new ui(this),r=new ui(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new ui(this,e)}iterRange(e,t=this.length){return new ta(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ia(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]?B.empty:e.length<=32?new J(e):$e.from(J.split(e,[]))}}class J extends B{constructor(e,t=Lf(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new If(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new J(oo(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=fn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new J(l,o.length+r.length));else{let a=l.length>>1;i.push(new J(l.slice(0,a)),new J(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof J))return super.replace(e,t,i);[e,t]=$t(this,e,t);let s=fn(this.text,fn(i.text,oo(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new J(s,r):$e.from(J.split(s,[]),r)}sliceString(e,t=this.length,i=`
1
+ import{cy as ht,cz as yf,cA as bf,cB as xf,cC as Me,cD as Et,cE as kr,cF as cn,cG as vf,cH as Cr,cI as wf,cJ as Sf,y as m,x as kf,cK as Cf,cL as V,cM as qn,r as Se,cN as Af,cO as Mf,cP as Tf,cQ as Of,cR as Ql,cS as Df,cT as Ef,cU as Zl,cV as Pf,cW as ea,cX as Bf}from"./vendor-Cqfydjep.js";import{m as Rf}from"./vendor-shiki-D5K9GnFn.js";class B{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,t,i){[e,t]=$t(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),$e.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=$t(this,e,t);let i=[];return this.decompose(e,t,i,0),$e.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new ui(this),r=new ui(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new ui(this,e)}iterRange(e,t=this.length){return new ta(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ia(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]?B.empty:e.length<=32?new J(e):$e.from(J.split(e,[]))}}class J extends B{constructor(e,t=Lf(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new If(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new J(oo(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=fn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new J(l,o.length+r.length));else{let a=l.length>>1;i.push(new J(l.slice(0,a)),new J(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof J))return super.replace(e,t,i);[e,t]=$t(this,e,t);let s=fn(this.text,fn(i.text,oo(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new J(s,r):$e.from(J.split(s,[]),r)}sliceString(e,t=this.length,i=`
2
2
  `){[e,t]=$t(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new J(i,s)),i=[],s=-1);return s>-1&&t.push(new J(i,s)),t}}class $e extends B{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(e<=a&&t>=o){let c=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!c?i.push(l):l.decompose(e-o,t-o,i,c)}o=a+1}}replace(e,t,i){if([e,t]=$t(this,e,t),i.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],l=r+o.length;if(e>=r&&t<=l){let a=o.replace(e-r,t-r,i),c=this.lines-o.lines+a.lines;if(a.lines<c>>4&&a.lines>c>>6){let h=this.children.slice();return h[s]=a,new $e(h,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
3
3
  `){[e,t]=$t(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let l=this.children[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof $e))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],c=e.children[r];if(a!=c)return i+a.scanIdentical(c,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new J(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,c=-1,h=[];function f(d){let p;if(d.lines>r&&d instanceof $e)for(let g of d.children)f(g);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof J&&a&&(p=h[h.length-1])instanceof J&&d.lines+p.lines<=32?(a+=d.lines,c+=d.length+1,h[h.length-1]=new J(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,c+=d.length+1,h.push(d))}function u(){a!=0&&(l.push(h.length==1?h[0]:$e.from(h,c)),c=-1,a=h.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new $e(l,t)}}B.empty=new J([""],0);function Lf(n){let e=-1;for(let t of n)e+=t.length+1;return e}function fn(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r<n.length&&s<=i;r++){let l=n[r],a=s+l.length;a>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),o?(e[e.length-1]+=l,o=!1):e.push(l)),s=a+1}return e}function oo(n,e,t){return fn(n,[""],e,t)}class ui{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof J?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof J?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;e--}else if(s instanceof J){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof J?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ta{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new ui(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.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 ia{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(B.prototype[Symbol.iterator]=function(){return this.iter()},ui.prototype[Symbol.iterator]=ta.prototype[Symbol.iterator]=ia.prototype[Symbol.iterator]=function(){return this});class If{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function $t(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}let Lt="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,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;n<Lt.length;n++)Lt[n]+=Lt[n-1];function Nf(n){for(let e=1;e<Lt.length;e+=2)if(Lt[e]>n)return Lt[e-1]<=n;return!1}function lo(n){return n>=127462&&n<=127487}const ao=8205;function re(n,e,t=!0,i=!0){return(t?na:Ff)(n,e,i)}function na(n,e,t){if(e==n.length)return e;e&&sa(n.charCodeAt(e))&&ra(n.charCodeAt(e-1))&&e--;let i=ne(n,e);for(e+=ke(i);e<n.length;){let s=ne(n,e);if(i==ao||s==ao||t&&Nf(s))e+=ke(s),i=s;else if(lo(s)){let r=0,o=e-2;for(;o>=0&&lo(ne(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Ff(n,e,t){for(;e>0;){let i=na(n,e-2,t);if(i<e)return i;e--}return 0}function sa(n){return n>=56320&&n<57344}function ra(n){return n>=55296&&n<56320}function ne(n,e){let t=n.charCodeAt(e);if(!ra(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return sa(i)?(t-55296<<10)+(i-56320)+65536:t}function Ar(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function ke(n){return n<65536?1:2}const Ps=/\r\n?|\n/;var te=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(te||(te={}));class _e{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(i,s,r),s+=r):s+=o,i+=r}}iterChangedRanges(e,t=!1){Bs(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new _e(e)}composeDesc(e){return this.empty?e:e.empty?this:oa(this,e)}mapDesc(e,t=!1){return e.empty?this:Rs(this,e,t)}mapPos(e,t=-1,i=te.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],c=s+l;if(a<0){if(c>e)return r+(e-s);r+=l}else{if(i!=te.Simple&&c>=e&&(i==te.TrackDel&&s<e&&c>e||i==te.TrackBefore&&s<e||i==te.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=c}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let r=this.sections[i++],o=this.sections[i++],l=s+r;if(o>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new _e(e)}static create(e){return new _e(e)}}class ee extends _e{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Bs(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return Rs(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s<t.length;s+=2){let o=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;i.length<a;)i.push(B.empty);i.push(o?e.slice(r,r+o):B.empty)}r+=o}return new ee(t,i)}compose(e){return this.empty?e:e.empty?this:oa(this,e,!0)}map(e,t=!1){return e.empty?this:Rs(this,e,t,!0)}iterChanges(e,t=!1){Bs(this,e,t)}get desc(){return _e.create(this.sections)}filter(e){let t=[],i=[],s=[],r=new bi(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break e;let h=Math.min(r.len,a-l);oe(s,h,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;oe(t,h,f),f>0&&st(i,t,r.text),r.forward(h),l+=h}let c=e[o++];for(;l<c;){if(r.done)break e;let h=Math.min(r.len,c-l);oe(t,h,-1),oe(s,h,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(h),l+=h}}return{changes:new ee(t,i),filtered:_e.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function a(h=!1){if(!h&&!s.length)return;o<t&&oe(s,t-o,-1);let f=new ee(s,r);l=l?l.compose(f.map(l)):f,s=[],r=[],o=0}function c(h){if(Array.isArray(h))for(let f of h)c(f);else if(h instanceof ee){if(h.length!=t)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);a(),l=l?l.compose(h.map(l)):h}else{let{from:f,to:u=f,insert:d}=h;if(f>u||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?B.of(d.split(i||Ps)):d:B.empty,g=p.length;if(f==u&&g==0)return;f<o&&a(),f>o&&oe(s,f-o,-1),oe(s,u-f,g),st(r,s,p),o=u}}return c(e),a(!l),l}static empty(e){return new ee(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number")t.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length<s;)i.push(B.empty);i[s]=B.of(r.slice(1)),t.push(r[0],i[s].length)}}}return new ee(t,i)}static createSet(e,t){return new ee(e,t)}}function oe(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function st(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(B.empty);n.push(t)}}function Bs(n,e,t){let i=n.inserted;for(let s=0,r=0,o=0;o<n.sections.length;){let l=n.sections[o++],a=n.sections[o++];if(a<0)s+=l,r+=l;else{let c=s,h=r,f=B.empty;for(;c+=l,h+=a,a&&i&&(f=f.append(i[o-2>>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(s,c,r,h,f),s=c,r=h}}}function Rs(n,e,t,i=!1){let s=[],r=i?[]:null,o=new bi(n),l=new bi(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let c=Math.min(o.len,l.len);oe(s,c,-1),o.forward(c),l.forward(c)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!t))){let c=l.len;for(oe(s,l.ins,-1);c;){let h=Math.min(o.len,c);o.ins>=0&&a<o.i&&o.len<=h&&(oe(s,0,o.ins),r&&st(r,s,o.text),a=o.i),o.forward(h),c-=h}l.next()}else if(o.ins>=0){let c=0,h=o.len;for(;h;)if(l.ins==-1){let f=Math.min(h,l.len);c+=f,h-=f,l.forward(f)}else if(l.ins==0&&l.len<h)h-=l.len,l.next();else break;oe(s,c,a<o.i?o.ins:0),r&&a<o.i&&st(r,s,o.text),a=o.i,o.forward(o.len-h)}else{if(o.done&&l.done)return r?ee.createSet(s,r):_e.create(s);throw new Error("Mismatched change set lengths")}}function oa(n,e,t=!1){let i=[],s=t?[]:null,r=new bi(n),o=new bi(e);for(let l=!1;;){if(r.done&&o.done)return s?ee.createSet(i,s):_e.create(i);if(r.ins==0)oe(i,r.len,0,l),r.next();else if(o.len==0&&!o.done)oe(i,0,o.ins,l),s&&st(s,i,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(r.len2,o.len),c=i.length;if(r.ins==-1){let h=o.ins==-1?-1:o.off?0:o.ins;oe(i,a,h,l),s&&h&&st(s,i,o.text)}else o.ins==-1?(oe(i,r.off?0:r.len,a,l),s&&st(s,i,r.textBit(a))):(oe(i,r.off?0:r.len,o.off?0:o.ins,l),s&&!o.off&&st(s,i,o.text));l=(r.ins>a||o.ins>=0&&o.len>a)&&(l||i.length>c),r.forward2(a),o.forward(a)}}}}class bi{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,t=this.i-2>>1;return t>=e.length?B.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?B.empty:t[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 bt{constructor(e,t,i){this.from=e,this.to=t,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,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new bt(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return x.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return x.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!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 x.range(e.anchor,e.head)}static create(e,t,i){return new bt(e,t,i)}}class x{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:x.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!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],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new x([this.main],0)}addRange(e,t=!0){return x.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,x.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 x(e.ranges.map(t=>bt.fromJSON(t)),e.main)}static single(e,t=e){return new x([x.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let r=e[s];if(r.empty?r.from<=i:r.from<i)return x.normalized(e.slice(),t);i=r.to}return new x(e,t)}static cursor(e,t=0,i,s){return bt.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s){let r=(i??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?bt.create(t,e,48|r):bt.create(e,t,(t>e?8:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let r=e[s],o=e[s-1];if(r.empty?r.from<=o.to:r.from<o.to){let l=o.from,a=Math.max(r.to,o.to);s<=t&&t--,e.splice(--s,2,r.anchor>r.head?x.range(a,l):x.range(l,a))}}return new x(e,t)}}function la(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Mr=0;class A{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=Mr++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new A(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Tr),!!e.static,e.enables)}of(e){return new un([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new un(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new un(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Tr(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class un{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=Mr++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,c=!1,h=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?c=!0:((t=e[f.id])!==null&&t!==void 0?t:1)&1||h.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||c&&(u.docChanged||u.selection)||Ls(f,h)){let d=i(f);if(l?!ho(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let g=Cn(u,p);if(this.dependencies.every(y=>y instanceof A?u.facet(y)===f.facet(y):y instanceof Q?u.field(y,!1)==f.field(y,!1):!0)||(l?ho(d=i(f),g,s):s(d=i(f),g)))return f.values[o]=g,0}else d=i(f);return f.values[o]=d,1}}}}function ho(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function Ls(n,e){let t=!1;for(let i of e)di(n,i)&1&&(t=!0);return t}function Vf(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let c=[];for(let h=0;h<i.length;h++){let f=Cn(a,i[h]);if(s[h]==2)for(let u of f)c.push(u);else c.push(f)}return e.combine(c)}return{create(a){for(let c of i)di(a,c);return a.values[o]=l(a),1},update(a,c){if(!Ls(a,r))return 0;let h=l(a);return e.compare(h,a.values[o])?0:(a.values[o]=h,1)},reconfigure(a,c){let h=Ls(a,i),f=c.config.facets[e.id],u=c.facet(e);if(f&&!h&&Tr(t,f))return a.values[o]=u,0;let d=l(a);return e.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const co=A.define({static:!0});class Q{constructor(e,t,i,s,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=r,this.provides=void 0}static define(e){let t=new Q(Mr++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(co).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,co.of({field:this,create:e})]}get extension(){return this}}const gt={lowest:4,low:3,default:2,high:1,highest:0};function ti(n){return e=>new aa(e,n)}const pt={highest:ti(gt.highest),high:ti(gt.high),default:ti(gt.default),low:ti(gt.low),lowest:ti(gt.lowest)};class aa{constructor(e,t){this.inner=e,this.prec=t}}class Kn{of(e){return new Is(this,e)}reconfigure(e){return Kn.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Is{constructor(e,t){this.compartment=e,this.inner=t}}class kn{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of Hf(e,t,o))u instanceof Q?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],c=[];for(let u of s)l[u.id]=c.length<<1,c.push(d=>u.slot(d));let h=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,g=h&&h[u]||[];if(d.every(y=>y.type==0))if(l[p.id]=a.length<<1|1,Tr(g,d))a.push(i.facet(p));else{let y=p.combine(d.map(b=>b.value));a.push(i&&p.compare(y,i.facet(p))?i.facet(p):y)}else{for(let y of d)y.type==0?(l[y.id]=a.length<<1|1,a.push(y.value)):(l[y.id]=c.length<<1,c.push(b=>y.dynamicSlot(b)));l[p.id]=c.length<<1,c.push(y=>Vf(y,p,d))}}let f=c.map(u=>u(l));return new kn(e,o,f,l,a,r)}}function Hf(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let c=i[a].indexOf(o);c>-1&&i[a].splice(c,1),o instanceof Is&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let c of o)r(c,l);else if(o instanceof Is){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;t.set(o.compartment,c),r(c,l)}else if(o instanceof aa)r(o.inner,o.prec);else if(o instanceof Q)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof un)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,gt.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.`);r(c,l)}}return r(n,gt.default),i.reduce((o,l)=>o.concat(l))}function di(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function Cn(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const ha=A.define(),Ns=A.define({combine:n=>n.some(e=>e),static:!0}),ca=A.define({combine:n=>n.length?n[0]:void 0,static:!0}),fa=A.define(),ua=A.define(),da=A.define(),pa=A.define({combine:n=>n.length?n[0]:!1});class Ne{constructor(e,t){this.type=e,this.value=t}static define(){return new Wf}}class Wf{of(e){return new Ne(this,e)}}class $f{constructor(e){this.map=e}of(e){return new D(this,e)}}class D{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new D(this.type,t)}is(e){return this.type==e}static define(e={}){return new $f(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}D.reconfigure=D.define();D.appendConfig=D.define();class Y{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&la(i,t.newLength),r.some(l=>l.type==Y.time)||(this.annotations=r.concat(Y.time.of(Date.now())))}static create(e,t,i,s,r,o){return new Y(e,t,i,s,r,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 t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Y.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}Y.time=Ne.define();Y.userEvent=Ne.define();Y.addToHistory=Ne.define();Y.remote=Ne.define();function zf(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i<n.length&&(s==e.length||e[s]>=n[i]))r=n[i++],o=n[i++];else if(s<e.length)r=e[s++],o=e[s++];else return t;!t.length||t[t.length-1]<r?t.push(r,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function ma(n,e,t){var i;let s,r,o;return t?(s=e.changes,r=ee.empty(e.changes.length),o=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),r=n.changes.mapDesc(e.changes,!0),o=n.changes.compose(s)),{changes:o,selection:e.selection?e.selection.map(r):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:D.mapEffects(n.effects,s).concat(D.mapEffects(e.effects,r)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function Fs(n,e,t){let i=e.selection,s=It(e.annotations);return e.userEvent&&(s=s.concat(Y.userEvent.of(e.userEvent))),{changes:e.changes instanceof ee?e.changes:ee.of(e.changes||[],t,n.facet(ca)),selection:i&&(i instanceof x?i:x.single(i.anchor,i.head)),effects:It(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function ga(n,e,t){let i=Fs(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let r=1;r<e.length;r++){e[r].filter===!1&&(t=!1);let o=!!e[r].sequential;i=ma(i,Fs(n,e[r],o?i.changes.newLength:n.doc.length),o)}let s=Y.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return qf(t?jf(s):s)}function jf(n){let e=n.startState,t=!0;for(let s of e.facet(fa)){let r=s(n);if(r===!1){t=!1;break}Array.isArray(r)&&(t=t===!0?r:zf(t,r))}if(t!==!0){let s,r;if(t===!1)r=n.changes.invertedDesc,s=ee.empty(e.doc.length);else{let o=n.changes.filter(t);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}n=Y.create(e,s,n.selection&&n.selection.map(r),D.mapEffects(n.effects,r),n.annotations,n.scrollIntoView)}let i=e.facet(ua);for(let s=i.length-1;s>=0;s--){let r=i[s](n);r instanceof Y?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof Y?n=r[0]:n=ga(e,It(r),!1)}return n}function qf(n){let e=n.startState,t=e.facet(da),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=ma(i,Fs(e,r,n.changes.newLength),!0))}return i==n?n:Y.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Kf=[];function It(n){return n==null?Kf:Array.isArray(n)?n:[n]}var z=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(z||(z={}));const _f=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Vs;try{Vs=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Jf(n){if(Vs)return Vs.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||_f.test(t)))return!0}return!1}function Uf(n){return e=>{if(!/\S/.test(e))return z.Space;if(Jf(e))return z.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return z.Word;return z.Other}}class P{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)di(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return di(this,i),Cn(this,i)}update(...e){return ga(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(Kn.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,c)=>s.set(c,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(D.reconfigure)?(t=null,i=l.value):l.is(D.appendConfig)&&(t=null,i=It(i).concat(l.value));let r;t?r=e.startState.values.slice():(t=kn.resolve(i,s,this),r=new P(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,c)=>c.reconfigure(a,this),null).values);let o=e.startState.facet(Ns)?e.newSelection:e.newSelection.asSingle();new P(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:x.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=It(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),c=this.changes(a.changes),h=c.map(s);for(let u=0;u<l;u++)r[u]=r[u].map(h);let f=s.mapDesc(c,!0);r.push(a.range.map(f)),s=s.compose(h),o=D.mapEffects(o,h).concat(D.mapEffects(It(a.effects),f))}return{changes:s,selection:x.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof ee?e:ee.of(e,this.doc.length,this.facet(P.lineSeparator))}toText(e){return B.of(e.split(this.facet(P.lineSeparator)||Ps))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(di(this,t),Cn(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof Q&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let r in i)if(Object.prototype.hasOwnProperty.call(e,r)){let o=i[r],l=e[r];s.push(o.init(a=>o.spec.fromJSON(l,a)))}}return P.create({doc:e.doc,selection:x.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=kn.resolve(e.extensions||[],new Map),i=e.doc instanceof B?e.doc:B.of((e.doc||"").split(t.staticFacet(P.lineSeparator)||Ps)),s=e.selection?e.selection instanceof x?e.selection:x.single(e.selection.anchor,e.selection.head):x.single(0);return la(s,i.length),t.staticFacet(Ns)||(s=s.asSingle()),new P(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(P.tabSize)}get lineBreak(){return this.facet(P.lineSeparator)||`
@@ -1,4 +1,4 @@
1
- import{cX as mu,cY as zt,cZ as Wr,c_ as ye,r as B,aY as Wt,c$ as W,d0 as z,d1 as da,d2 as X,R as A,d3 as gu,d4 as Dn,d5 as bu,d6 as xu,d7 as Ou,d8 as Au,d9 as wu,da as Pu,db as Wc,dc as Ti,dd as fi,de as Kc,df as Z,dg as at,dh as ki,di as Ii,dj as rn,dk as _i,dl as Mn,dm as Re,dn as Su,dp as ju,dq as Eu,dr as $u,ds as Tu,dt as ku,du as Iu,dv as Fe,dw as _u,dx as Hr,dy as Cu,dz as Du,dA as Mu,dB as Bu,dC as Nu,dD as Lu,dE as Ru,dF as Fc,dG as zu,dH as Wu,dI as Ku,dJ as Fu,dK as Vu,dL as Xu,dM as De,dN as Gu,dO as Hu,dP as Uu,dQ as Yu,dR as an,dS as Vc,dT as qu,dU as Zu,dV as Ju,dW as Qu,dX as es}from"./vendor-DQp7CrDA.js";var se=function(e){return e===0?0:e>0?1:-1},tt=function(e){return Wr(e)&&e.indexOf("%")===e.length-1},M=function(e){return mu(e)&&!zt(e)},ne=function(e){return M(e)||Wr(e)},ts=0,Xe=function(e){var r=++ts;return"".concat(e||"").concat(r)},fe=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!M(e)&&!Wr(e))return n;var i;if(tt(e)){var o=e.indexOf("%");i=r*parseFloat(e.slice(0,o))/100}else i=+e;return zt(i)&&(i=n),a&&i>r&&(i=r),i},Le=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},rs=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},a=0;a<r;a++)if(!n[e[a]])n[e[a]]=!0;else return!0;return!1},te=function(e,r){return M(e)&&M(r)?function(n){return e+n*(r-e)}:function(){return r}};function on(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):ye(n,e))===r})}var ns=function(e){if(!e||!e.length)return null;for(var r=e.length,n=0,a=0,i=0,o=0,c=1/0,l=-1/0,u=0,s=0,f=0;f<r;f++)u=e[f].cx||0,s=e[f].cy||0,n+=u,a+=s,i+=u*s,o+=u*u,c=Math.min(c,u),l=Math.max(l,u);var d=r*o!==n*n?(r*i-n*a)/(r*o-n*n):0;return{xmin:c,xmax:l,a:d,b:(a-d*n)/r}};function Ot(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}var as=["viewBox","children"],is=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ci=["points","pathLength"],ta={svg:as,polygon:Ci,polyline:Ci},di=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],cn=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(B.isValidElement(e)&&(n=e.props),!Wt(n))return null;var a={};return Object.keys(n).forEach(function(i){di.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},os=function(e,r,n){return function(a){return e(r,n,a),null}},Ve=function(e,r,n){if(!Wt(e)||pa(e)!=="object")return null;var a=null;return Object.keys(e).forEach(function(i){var o=e[i];di.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=os(o,r,n))}),a},cs=["children"],ls=["children"];function Di(t,e){if(t==null)return{};var r=us(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function us(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function va(t){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(t)}var Mi={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ce=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Bi=null,ra=null,pi=function t(e){if(e===Bi&&Array.isArray(ra))return ra;var r=[];return B.Children.forEach(e,function(n){z(n)||(da.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),ra=r,Bi=e,r};function de(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(a){return Ce(a)}):n=[Ce(e)],pi(t).forEach(function(a){var i=ye(a,"type.displayName")||ye(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function he(t,e){var r=de(t,e);return r&&r[0]}var Ni=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,a=r.height;return!(!M(n)||n<=0||!M(a)||a<=0)},ss=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],fs=function(e){return e&&e.type&&Wr(e.type)&&ss.indexOf(e.type)>=0},Xc=function(e){return e&&va(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},ds=function(e,r,n,a){var i,o=(i=ta==null?void 0:ta[a])!==null&&i!==void 0?i:[];return!W(e)&&(a&&o.includes(r)||is.includes(r))||n&&di.includes(r)},R=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(B.isValidElement(e)&&(a=e.props),!Wt(a))return null;var i={};return Object.keys(a).forEach(function(o){var c;ds((c=a)===null||c===void 0?void 0:c[o],o,r,n)&&(i[o]=a[o])}),i},ha=function t(e,r){if(e===r)return!0;var n=B.Children.count(e);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Li(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=e[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!t(i,o))return!1}else if(!Li(i,o))return!1}return!0},Li=function(e,r){if(z(e)&&z(r))return!0;if(!z(e)&&!z(r)){var n=e.props||{},a=n.children,i=Di(n,cs),o=r.props||{},c=o.children,l=Di(o,ls);return a&&c?Ot(i,l)&&ha(a,c):!a&&!c?Ot(i,l):!1}return!1},Ri=function(e,r){var n=[],a={};return pi(e).forEach(function(i,o){if(fs(i))n.push(i);else if(i){var c=Ce(i.type),l=r[c]||{},u=l.handler,s=l.once;if(u&&(!s||!a[c])){var f=u(i,c,o);n.push(f),a[c]=!0}}}),n},ps=function(e){var r=e&&e.type;return r&&Mi[r]?Mi[r]:null},vs=function(e,r){return pi(r).indexOf(e)},hs=["children","width","height","viewBox","className","style","title","desc"];function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ya.apply(this,arguments)}function ys(t,e){if(t==null)return{};var r=ms(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ms(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function ma(t){var e=t.children,r=t.width,n=t.height,a=t.viewBox,i=t.className,o=t.style,c=t.title,l=t.desc,u=ys(t,hs),s=a||{width:r,height:n,x:0,y:0},f=X("recharts-surface",i);return A.createElement("svg",ya({},R(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),A.createElement("title",null,c),A.createElement("desc",null,l),e)}var gs=["children","className"];function ga(){return ga=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ga.apply(this,arguments)}function bs(t,e){if(t==null)return{};var r=xs(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xs(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var H=A.forwardRef(function(t,e){var r=t.children,n=t.className,a=bs(t,gs),i=X("recharts-layer",n);return A.createElement("g",ga({className:i},R(a,!0),{ref:e}),r)}),Se=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function sr(t){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(t)}var Os=["type","size","sizeType"];function ba(){return ba=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ba.apply(this,arguments)}function zi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zi(Object(r),!0).forEach(function(n){As(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function As(t,e,r){return e=ws(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ws(t){var e=Ps(t,"string");return sr(e)=="symbol"?e:String(e)}function Ps(t,e){if(sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ss(t,e){if(t==null)return{};var r=js(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function js(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var Gc={symbolCircle:Wc,symbolCross:Pu,symbolDiamond:wu,symbolSquare:Au,symbolStar:Ou,symbolTriangle:xu,symbolWye:bu},Es=Math.PI/180,$s=function(e){var r="symbol".concat(Dn(e));return Gc[r]||Wc},Ts=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*Es;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},ks=function(e,r){Gc["symbol".concat(Dn(e))]=r},Bn=function(e){var r=e.type,n=r===void 0?"circle":r,a=e.size,i=a===void 0?64:a,o=e.sizeType,c=o===void 0?"area":o,l=Ss(e,Os),u=Wi(Wi({},l),{},{type:n,size:i,sizeType:c}),s=function(){var g=$s(n),O=gu().type(g).size(Ts(i,c,n));return O()},f=u.className,d=u.cx,p=u.cy,m=R(u,!0);return d===+d&&p===+p&&i===+i?A.createElement("path",ba({},m,{className:X("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:s()})):null};Bn.registerSymbol=ks;function wt(t){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(t)}function xa(){return xa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xa.apply(this,arguments)}function Ki(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Is(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ki(Object(r),!0).forEach(function(n){fr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Uc(n.key),n)}}function Ds(t,e,r){return e&&Cs(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ms(t,e,r){return e=ln(e),Bs(t,Hc()?Reflect.construct(e,r||[],ln(t).constructor):e.apply(t,r))}function Bs(t,e){if(e&&(wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ns(t)}function Ns(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hc=function(){return!!t})()}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(t)}function Ls(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oa(t,e)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Oa(t,e)}function fr(t,e,r){return e=Uc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uc(t){var e=Rs(t,"string");return wt(e)=="symbol"?e:String(e)}function Rs(t,e){if(wt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(wt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ae=32,vi=function(t){Ls(e,t);function e(){return _s(this,e),Ms(this,e,arguments)}return Ds(e,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=Ae/2,o=Ae/6,c=Ae/3,l=n.inactive?a:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:Ae,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(c,`
1
+ import{cY as mu,cZ as zt,c_ as Wr,c$ as ye,r as B,aY as Wt,d0 as W,d1 as z,d2 as da,d3 as X,R as A,d4 as gu,d5 as Dn,d6 as bu,d7 as xu,d8 as Ou,d9 as Au,da as wu,db as Pu,dc as Wc,dd as Ti,de as fi,df as Kc,dg as Z,dh as at,di as ki,dj as Ii,dk as rn,dl as _i,dm as Mn,dn as Re,dp as Su,dq as ju,dr as Eu,ds as $u,dt as Tu,du as ku,dv as Iu,dw as Fe,dx as _u,dy as Hr,dz as Cu,dA as Du,dB as Mu,dC as Bu,dD as Nu,dE as Lu,dF as Ru,dG as Fc,dH as zu,dI as Wu,dJ as Ku,dK as Fu,dL as Vu,dM as Xu,dN as De,dO as Gu,dP as Hu,dQ as Uu,dR as Yu,dS as an,dT as Vc,dU as qu,dV as Zu,dW as Ju,dX as Qu,dY as es}from"./vendor-Cqfydjep.js";var se=function(e){return e===0?0:e>0?1:-1},tt=function(e){return Wr(e)&&e.indexOf("%")===e.length-1},M=function(e){return mu(e)&&!zt(e)},ne=function(e){return M(e)||Wr(e)},ts=0,Xe=function(e){var r=++ts;return"".concat(e||"").concat(r)},fe=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!M(e)&&!Wr(e))return n;var i;if(tt(e)){var o=e.indexOf("%");i=r*parseFloat(e.slice(0,o))/100}else i=+e;return zt(i)&&(i=n),a&&i>r&&(i=r),i},Le=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},rs=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},a=0;a<r;a++)if(!n[e[a]])n[e[a]]=!0;else return!0;return!1},te=function(e,r){return M(e)&&M(r)?function(n){return e+n*(r-e)}:function(){return r}};function on(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):ye(n,e))===r})}var ns=function(e){if(!e||!e.length)return null;for(var r=e.length,n=0,a=0,i=0,o=0,c=1/0,l=-1/0,u=0,s=0,f=0;f<r;f++)u=e[f].cx||0,s=e[f].cy||0,n+=u,a+=s,i+=u*s,o+=u*u,c=Math.min(c,u),l=Math.max(l,u);var d=r*o!==n*n?(r*i-n*a)/(r*o-n*n):0;return{xmin:c,xmax:l,a:d,b:(a-d*n)/r}};function Ot(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}var as=["viewBox","children"],is=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ci=["points","pathLength"],ta={svg:as,polygon:Ci,polyline:Ci},di=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],cn=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(B.isValidElement(e)&&(n=e.props),!Wt(n))return null;var a={};return Object.keys(n).forEach(function(i){di.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},os=function(e,r,n){return function(a){return e(r,n,a),null}},Ve=function(e,r,n){if(!Wt(e)||pa(e)!=="object")return null;var a=null;return Object.keys(e).forEach(function(i){var o=e[i];di.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=os(o,r,n))}),a},cs=["children"],ls=["children"];function Di(t,e){if(t==null)return{};var r=us(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function us(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function va(t){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(t)}var Mi={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ce=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Bi=null,ra=null,pi=function t(e){if(e===Bi&&Array.isArray(ra))return ra;var r=[];return B.Children.forEach(e,function(n){z(n)||(da.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),ra=r,Bi=e,r};function de(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(a){return Ce(a)}):n=[Ce(e)],pi(t).forEach(function(a){var i=ye(a,"type.displayName")||ye(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function he(t,e){var r=de(t,e);return r&&r[0]}var Ni=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,a=r.height;return!(!M(n)||n<=0||!M(a)||a<=0)},ss=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],fs=function(e){return e&&e.type&&Wr(e.type)&&ss.indexOf(e.type)>=0},Xc=function(e){return e&&va(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},ds=function(e,r,n,a){var i,o=(i=ta==null?void 0:ta[a])!==null&&i!==void 0?i:[];return!W(e)&&(a&&o.includes(r)||is.includes(r))||n&&di.includes(r)},R=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(B.isValidElement(e)&&(a=e.props),!Wt(a))return null;var i={};return Object.keys(a).forEach(function(o){var c;ds((c=a)===null||c===void 0?void 0:c[o],o,r,n)&&(i[o]=a[o])}),i},ha=function t(e,r){if(e===r)return!0;var n=B.Children.count(e);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Li(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=e[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!t(i,o))return!1}else if(!Li(i,o))return!1}return!0},Li=function(e,r){if(z(e)&&z(r))return!0;if(!z(e)&&!z(r)){var n=e.props||{},a=n.children,i=Di(n,cs),o=r.props||{},c=o.children,l=Di(o,ls);return a&&c?Ot(i,l)&&ha(a,c):!a&&!c?Ot(i,l):!1}return!1},Ri=function(e,r){var n=[],a={};return pi(e).forEach(function(i,o){if(fs(i))n.push(i);else if(i){var c=Ce(i.type),l=r[c]||{},u=l.handler,s=l.once;if(u&&(!s||!a[c])){var f=u(i,c,o);n.push(f),a[c]=!0}}}),n},ps=function(e){var r=e&&e.type;return r&&Mi[r]?Mi[r]:null},vs=function(e,r){return pi(r).indexOf(e)},hs=["children","width","height","viewBox","className","style","title","desc"];function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ya.apply(this,arguments)}function ys(t,e){if(t==null)return{};var r=ms(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ms(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function ma(t){var e=t.children,r=t.width,n=t.height,a=t.viewBox,i=t.className,o=t.style,c=t.title,l=t.desc,u=ys(t,hs),s=a||{width:r,height:n,x:0,y:0},f=X("recharts-surface",i);return A.createElement("svg",ya({},R(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),A.createElement("title",null,c),A.createElement("desc",null,l),e)}var gs=["children","className"];function ga(){return ga=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ga.apply(this,arguments)}function bs(t,e){if(t==null)return{};var r=xs(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xs(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var H=A.forwardRef(function(t,e){var r=t.children,n=t.className,a=bs(t,gs),i=X("recharts-layer",n);return A.createElement("g",ga({className:i},R(a,!0),{ref:e}),r)}),Se=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function sr(t){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(t)}var Os=["type","size","sizeType"];function ba(){return ba=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ba.apply(this,arguments)}function zi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zi(Object(r),!0).forEach(function(n){As(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function As(t,e,r){return e=ws(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ws(t){var e=Ps(t,"string");return sr(e)=="symbol"?e:String(e)}function Ps(t,e){if(sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ss(t,e){if(t==null)return{};var r=js(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function js(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var Gc={symbolCircle:Wc,symbolCross:Pu,symbolDiamond:wu,symbolSquare:Au,symbolStar:Ou,symbolTriangle:xu,symbolWye:bu},Es=Math.PI/180,$s=function(e){var r="symbol".concat(Dn(e));return Gc[r]||Wc},Ts=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*Es;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},ks=function(e,r){Gc["symbol".concat(Dn(e))]=r},Bn=function(e){var r=e.type,n=r===void 0?"circle":r,a=e.size,i=a===void 0?64:a,o=e.sizeType,c=o===void 0?"area":o,l=Ss(e,Os),u=Wi(Wi({},l),{},{type:n,size:i,sizeType:c}),s=function(){var g=$s(n),O=gu().type(g).size(Ts(i,c,n));return O()},f=u.className,d=u.cx,p=u.cy,m=R(u,!0);return d===+d&&p===+p&&i===+i?A.createElement("path",ba({},m,{className:X("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:s()})):null};Bn.registerSymbol=ks;function wt(t){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(t)}function xa(){return xa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xa.apply(this,arguments)}function Ki(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Is(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ki(Object(r),!0).forEach(function(n){fr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Uc(n.key),n)}}function Ds(t,e,r){return e&&Cs(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ms(t,e,r){return e=ln(e),Bs(t,Hc()?Reflect.construct(e,r||[],ln(t).constructor):e.apply(t,r))}function Bs(t,e){if(e&&(wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ns(t)}function Ns(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hc=function(){return!!t})()}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(t)}function Ls(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oa(t,e)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Oa(t,e)}function fr(t,e,r){return e=Uc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uc(t){var e=Rs(t,"string");return wt(e)=="symbol"?e:String(e)}function Rs(t,e){if(wt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(wt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ae=32,vi=function(t){Ls(e,t);function e(){return _s(this,e),Ms(this,e,arguments)}return Ds(e,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=Ae/2,o=Ae/6,c=Ae/3,l=n.inactive?a:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:Ae,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(c,`
2
2
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*c,",").concat(i,`
3
3
  H`).concat(Ae,"M").concat(2*c,",").concat(i,`
4
4
  A`).concat(o,",").concat(o,",0,1,1,").concat(c,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Ae/8,"h").concat(Ae,"v").concat(Ae*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var u=Is({},n);return delete u.legendIcon,A.cloneElement(n.legendIcon,u)}return A.createElement(Bn,{fill:l,cx:i,cy:i,size:Ae,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,c=a.layout,l=a.formatter,u=a.inactiveColor,s={x:0,y:0,width:Ae,height:Ae},f={display:c==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var y=p.formatter||l,g=X(fr(fr({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var O=W(p.value)?null:p.value;Se(!W(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=p.inactive?u:p.color;return A.createElement("li",xa({className:g,style:f,key:"legend-item-".concat(m)},Ve(n.props,p,m)),A.createElement(ma,{width:o,height:o,viewBox:s,style:d},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(O,p,m):O))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}]),e}(B.PureComponent);fr(vi,"displayName","Legend");fr(vi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function Yc(t,e,r){return e===!0?Ti(t,r):W(e)?Ti(t,e):t}function Pt(t){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(t)}var zs=["ref"];function Fi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fi(Object(r),!0).forEach(function(n){Nn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jc(n.key),n)}}function Ks(t,e,r){return e&&Vi(t.prototype,e),r&&Vi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fs(t,e,r){return e=un(e),Vs(t,qc()?Reflect.construct(e,r||[],un(t).constructor):e.apply(t,r))}function Vs(t,e){if(e&&(Pt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zc(t)}function qc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qc=function(){return!!t})()}function un(t){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},un(t)}function Zc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Aa(t,e)}function Aa(t,e){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Aa(t,e)}function Nn(t,e,r){return e=Jc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jc(t){var e=Gs(t,"string");return Pt(e)=="symbol"?e:String(e)}function Gs(t,e){if(Pt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hs(t,e){if(t==null)return{};var r=Us(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Us(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Ys(t){return t.value}function qs(t,e){if(A.isValidElement(t))return A.cloneElement(t,e);if(typeof t=="function")return A.createElement(t,e);e.ref;var r=Hs(e,zs);return A.createElement(vi,r)}var Xi=1,dr=function(t){Xs(e,t);function e(){var r;Ws(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Fs(this,e,[].concat(a)),Nn(Zc(r),"lastBoundingBox",{width:-1,height:-1}),r}return Ks(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>Xi||Math.abs(a.height-this.lastBoundingBox.height)>Xi)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ze({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,c=a.verticalAlign,l=a.margin,u=a.chartWidth,s=a.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(c==="middle"){var m=this.getBBoxSnapshot();d={top:((s||0)-m.height)/2}}else d=c==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Ze(Ze({},f),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,c=a.height,l=a.wrapperStyle,u=a.payloadUniqBy,s=a.payload,f=Ze(Ze({position:"absolute",width:o||"auto",height:c||"auto"},this.getDefaultPosition(l)),l);return A.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},qs(i,Ze(Ze({},this.props),{},{payload:Yc(s,u,Ys)})))}}],[{key:"getWithHeight",value:function(n,a){var i=n.props.layout;return i==="vertical"&&M(n.props.height)?{height:n.props.height}:i==="horizontal"?{width:n.props.width||a}:null}}]),e}(B.PureComponent);Nn(dr,"displayName","Legend");Nn(dr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function pr(t){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(t)}function wa(){return wa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wa.apply(this,arguments)}function Zs(t,e){return tf(t)||ef(t,e)||Qs(t,e)||Js()}function Js(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.