diff --git a/assets/IconRssLine-CYM7kQpO.js b/assets/IconRssLine-ozT-I_fC.js similarity index 95% rename from assets/IconRssLine-CYM7kQpO.js rename to assets/IconRssLine-ozT-I_fC.js index 074ed94..23ecaab 100644 --- a/assets/IconRssLine-CYM7kQpO.js +++ b/assets/IconRssLine-ozT-I_fC.js @@ -1 +1 @@ -import{r as c,R as r,S as s}from"./index-Co1on5ja.js";var o;class e extends c.Component{constructor(...a){super(...a),this.ref=null,this.handleRef=t=>{const n=this.props.elementRef;this.ref=t,typeof n=="function"&&n(t)}}render(){return r.createElement(s,Object.assign({},this.props,{name:"IconRss",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),o||(o=r.createElement("path",{d:"M1616.875 1813.333c-27.627-820.266-689.92-1482.56-1510.187-1510.186V107.52c928.213 27.733 1678.08 777.6 1705.813 1705.813h-195.626ZM53.355 0H.02v408.853h53.334c803.733 0 1457.706 653.974 1457.706 1457.814V1920h408.96v-53.333C1920.021 837.44 1082.581 0 53.355 0Zm933.984 1813.333c-26.667-473.493-407.147-853.973-880.64-880.746V736.853c581.226 27.094 1049.28 495.254 1076.373 1076.48H987.339ZM53.365 628.907H.032v408.853h53.333c456.96 0 828.8 371.947 828.8 828.907V1920h408.854v-53.333c0-682.454-555.2-1237.76-1237.654-1237.76ZM267.19 1812.288c-88 0-159.573-71.573-159.573-159.467 0-87.893 71.573-159.466 159.573-159.466 87.894 0 159.467 71.573 159.467 159.466 0 87.894-71.573 159.467-159.467 159.467m0-425.6c-146.773 0-266.24 119.36-266.24 266.133 0 146.774 119.467 266.134 266.24 266.134 146.774 0 266.134-119.36 266.134-266.134 0-146.773-119.36-266.133-266.134-266.133",fillRule:"evenodd"})))}}e.glyphName="rss";e.variant="Line";e.displayName="IconRssLine";e.propTypes={...s.propTypes};e.allowedProps=[...s.allowedProps];export{e as I}; +import{r as c,R as r,S as s}from"./index-mQ6522B8.js";var o;class e extends c.Component{constructor(...a){super(...a),this.ref=null,this.handleRef=t=>{const n=this.props.elementRef;this.ref=t,typeof n=="function"&&n(t)}}render(){return r.createElement(s,Object.assign({},this.props,{name:"IconRss",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),o||(o=r.createElement("path",{d:"M1616.875 1813.333c-27.627-820.266-689.92-1482.56-1510.187-1510.186V107.52c928.213 27.733 1678.08 777.6 1705.813 1705.813h-195.626ZM53.355 0H.02v408.853h53.334c803.733 0 1457.706 653.974 1457.706 1457.814V1920h408.96v-53.333C1920.021 837.44 1082.581 0 53.355 0Zm933.984 1813.333c-26.667-473.493-407.147-853.973-880.64-880.746V736.853c581.226 27.094 1049.28 495.254 1076.373 1076.48H987.339ZM53.365 628.907H.032v408.853h53.333c456.96 0 828.8 371.947 828.8 828.907V1920h408.854v-53.333c0-682.454-555.2-1237.76-1237.654-1237.76ZM267.19 1812.288c-88 0-159.573-71.573-159.573-159.467 0-87.893 71.573-159.466 159.573-159.466 87.894 0 159.467 71.573 159.467 159.466 0 87.894-71.573 159.467-159.467 159.467m0-425.6c-146.773 0-266.24 119.36-266.24 266.133 0 146.774 119.467 266.134 266.24 266.134 146.774 0 266.134-119.36 266.134-266.134 0-146.773-119.36-266.133-266.134-266.133",fillRule:"evenodd"})))}}e.glyphName="rss";e.variant="Line";e.displayName="IconRssLine";e.propTypes={...s.propTypes};e.allowedProps=[...s.allowedProps];export{e as I}; diff --git a/assets/Mdtoui-BnFmcABV.js b/assets/Mdtoui-DyL4rrif.js similarity index 85% rename from assets/Mdtoui-BnFmcABV.js rename to assets/Mdtoui-DyL4rrif.js index 711efd8..5f91cd1 100644 --- a/assets/Mdtoui-BnFmcABV.js +++ b/assets/Mdtoui-DyL4rrif.js @@ -1,6 +1,6 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BRRUuwsQ.js","assets/index-DUk1PrHv.js","assets/index-Co1on5ja.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-BjY6S8Vl.js","assets/index-DyahzNCb.js","assets/index-Dh55QiP4.js","assets/index-BAR0q47n.js","assets/index-CdS0NUpT.js","assets/IconRssLine-CYM7kQpO.js"])))=>i.map(i=>d[i]); -import{f as fs,P as be,T as Xn,w as ta,t as na,r as te,h as ra,i as ia,p as aa,V as ua,k as Mr,l as ds,j as z,_ as ke,R as ms}from"./index-Co1on5ja.js";import{C as ps,s as _s}from"./RenderTopNavBar-BjY6S8Vl.js";import{a as $e}from"./index-DUk1PrHv.js";const Es=(e,t)=>{const n=t.size,r=t.delimiter,i=t.spacing,u=r!=="none",a=i!=="none";fs(!(u&&a),"[List] `itemSpacing` has no effect inside Lists with the `delimiter` prop set to anything other than `none`.");const o={small:{fontSize:e.fontSizeSmall},medium:{fontSize:e.fontSizeMedium},large:{fontSize:e.fontSizeLarge}},l={"xxx-small":{marginTop:e.spacingXXXSmall,marginBottom:e.spacingXXXSmall},"xx-small":{marginTop:e.spacingXXSmall,marginBottom:e.spacingXXSmall},"x-small":{marginTop:e.spacingXSmall,marginBottom:e.spacingXSmall},small:{marginTop:e.spacingSmall,marginBottom:e.spacingSmall},medium:{marginTop:e.spacingMedium,marginBottom:e.spacingMedium},large:{marginTop:e.spacingLarge,marginBottom:e.spacingLarge},"x-large":{marginTop:e.spacingXLarge,marginBottom:e.spacingXLarge},"xx-large":{marginTop:e.spacingXXLarge,marginBottom:e.spacingXXLarge},none:{}},c={dashed:{listStylePosition:"inside","&:not(:first-of-type)":{borderTop:e.delimiterDashedBorder}},solid:{listStylePosition:"inside","&:not(:first-of-type)":{borderTop:e.delimiterSolidBorder}},none:{}};return{listItem:{label:"listItem",fontWeight:e.fontWeight,fontFamily:e.fontFamily,lineHeight:e.lineHeight,color:e.color,padding:0,...o[n],...a&&!u&&l[i],...u&&c[r],"&:first-of-type":{marginTop:"0"},"&:last-of-type":{marginBottom:"0"}}}},gs=e=>{var t,n,r;const i=e.borders,u=e.colors,a=e.spacing,o=e.typography,l=e.key,c={canvas:{color:e["ic-brand-font-color-dark"]}};return{...{fontFamily:o==null?void 0:o.fontFamily,fontWeight:o==null?void 0:o.fontWeightNormal,lineHeight:o==null?void 0:o.lineHeight,fontSizeSmall:o==null?void 0:o.fontSizeSmall,fontSizeMedium:o==null?void 0:o.fontSizeMedium,fontSizeLarge:o==null?void 0:o.fontSizeLarge,color:u==null||(t=u.contrasts)===null||t===void 0?void 0:t.grey125125,spacingXXXSmall:a==null?void 0:a.xxxSmall,spacingXXSmall:a==null?void 0:a.xxSmall,spacingXSmall:a==null?void 0:a.xSmall,spacingSmall:a==null?void 0:a.small,spacingMedium:a==null?void 0:a.medium,spacingLarge:a==null?void 0:a.large,spacingXLarge:a==null?void 0:a.xLarge,spacingXXLarge:a==null?void 0:a.xxLarge,delimiterDashedBorder:`${i==null?void 0:i.widthSmall} dashed ${u==null||(n=u.contrasts)===null||n===void 0?void 0:n.grey1214}`,delimiterSolidBorder:`${i==null?void 0:i.widthSmall} solid ${u==null||(r=u.contrasts)===null||r===void 0?void 0:r.grey1214}`},...c[l]}},bs={children:be.oneOfType([be.node,be.func]).isRequired,delimiter:be.oneOf(["none","dashed","solid"]),size:be.oneOf(["small","medium","large"]),margin:Xn.spacing,padding:Xn.spacing,spacing:be.oneOf(["none","xxx-small","xx-small","x-small","small","medium","large","x-large","xx-large"]),elementRef:be.func},Ts=["children","delimiter","size","margin","padding","spacing","elementRef"],As=["delimiter","spacing","size","margin","padding","elementRef","children","styles"];var Br,Fr,Kt,Je;let sa=(Br=ta(Es,gs),Fr=na(),Br(Kt=Fr(Kt=(Je=class extends te.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=n=>{const r=this.props.elementRef;this.ref=n,typeof r=="function"&&r(n)}}componentDidMount(){var t,n;(t=(n=this.props).makeStyles)===null||t===void 0||t.call(n)}componentDidUpdate(){var t,n;(t=(n=this.props).makeStyles)===null||t===void 0||t.call(n)}render(){const t=this.props;t.delimiter,t.spacing,t.size;const n=t.margin,r=t.padding;t.elementRef;const i=t.children,u=t.styles,a=ra(t,As);return ia(ua,Object.assign({},aa(a),{css:u==null?void 0:u.listItem,as:"li",margin:n,padding:r,maxWidth:"100%",elementRef:this.handleRef}),i)}},Je.displayName="ListItem",Je.componentId="List.Item",Je.propTypes=bs,Je.allowedProps=Ts,Je.defaultProps={padding:"none",spacing:"none",delimiter:"none",size:"medium"},Je))||Kt)||Kt);const Cs=(e,t)=>{const n=t.isUnstyled,i=t.as==="ol";return{list:{label:"list",paddingInlineStart:e.listPadding,paddingInlineEnd:0,...i&&{listStyleType:"none",paddingInlineStart:`calc(${e.listPadding} / 2)`,paddingInlineEnd:0,counterReset:"ol-counter","&>li::before":{fontWeight:e.orderedNumberFontWeight,counterIncrement:"ol-counter",content:'counters(ol-counter, ".") "."',marginInlineEnd:e.orderedNumberMargin,marginInlineStart:0}},...n&&{listStyleType:"none",paddingInlineStart:0}}}},ks=e=>{const t=e.spacing,n=e.typography;return{...{listPadding:t==null?void 0:t.large,orderedNumberFontWeight:n==null?void 0:n.fontWeightBold,orderedNumberMargin:t==null?void 0:t.xSmall}}},Is={children:ps.oneOf([sa]),as:be.oneOf(["ul","ol"]),delimiter:be.oneOf(["none","dashed","solid"]),isUnstyled:be.bool,margin:Xn.spacing,size:be.oneOf(["small","medium","large"]),itemSpacing:be.oneOf(["none","xxx-small","xx-small","x-small","small","medium","large","x-large","xx-large"]),elementRef:be.func},ys=["children","as","delimiter","isUnstyled","margin","size","itemSpacing","elementRef"],Ns=["as","margin","isUnstyled","elementRef","styles"];var Hr,Ur,$t,Ye;let Nt=(Hr=ta(Cs,ks),Ur=na(),Hr($t=Ur($t=(Ye=class extends te.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=n=>{const r=this.props.elementRef;this.ref=n,typeof r=="function"&&r(n)}}componentDidMount(){var t,n;(t=(n=this.props).makeStyles)===null||t===void 0||t.call(n)}componentDidUpdate(){var t,n;(t=(n=this.props).makeStyles)===null||t===void 0||t.call(n)}renderChildren(){return te.Children.map(this.props.children,t=>{if(t)return _s(t,{isUnstyled:this.props.isUnstyled,delimiter:this.props.delimiter,size:this.props.size,spacing:this.props.itemSpacing})})}render(){const t=this.props,n=t.as,r=t.margin;t.isUnstyled,t.elementRef;const i=t.styles,u=ra(t,Ns);return ia(ua,Object.assign({},aa(u),{css:i==null?void 0:i.list,as:n,margin:r,elementRef:this.handleRef,display:"block"}),this.renderChildren())}},Ye.displayName="List",Ye.componentId="List",Ye.propTypes=Is,Ye.allowedProps=ys,Ye.defaultProps={as:"ul",delimiter:"none",isUnstyled:!1,size:"medium",itemSpacing:"none"},Ye.Item=sa,Ye))||$t)||$t);function vr(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,u=!1;for(;!u;){r===-1&&(r=n.length,u=!0);const a=n.slice(i,r).trim();(a||!u)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function oa(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xs=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ss=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Rs={};function zr(e,t){return(Rs.jsx?Ss:xs).test(e)}const Ls=/[ \t\n\f\r]/g;function Os(e){return typeof e=="object"?e.type==="text"?Yr(e.value):!1:Yr(e)}function Yr(e){return e.replace(Ls,"")===""}class qt{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}qt.prototype.property={};qt.prototype.normal={};qt.prototype.space=null;function la(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&Bs.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(jr,Us);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!jr.test(u)){let a=u.replace(Fs,Hs);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=lr}return new i(r,t)}function Hs(e){return"-"+e.toLowerCase()}function Us(e){return e.charAt(1).toUpperCase()}const vs={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},jt=la([fa,ha,pa,_a,Ps],"html"),Xe=la([fa,ha,pa,_a,Ms],"svg");function Vr(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ea(e){return e.join(" ").trim()}var ga={},Wr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zs=/\n/g,Ys=/^\s*/,qs=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,js=/^:\s*/,Vs=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ws=/^[;\s]*/,Xs=/^\s+|\s+$/g,Qs=` -`,Xr="/",Qr="*",et="",Gs="comment",Ks="declaration",$s=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(T){var I=T.match(zs);I&&(n+=I.length);var R=T.lastIndexOf(Qs);r=~R?T.length-R:r+T.length}function u(){var T={line:n,column:r};return function(I){return I.position=new a(T),c(),I}}function a(T){this.start=T,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function o(T){var I=new Error(t.source+":"+n+":"+r+": "+T);if(I.reason=T,I.filename=t.source,I.line=n,I.column=r,I.source=e,!t.silent)throw I}function l(T){var I=T.exec(e);if(I){var R=I[0];return i(R),e=e.slice(R.length),I}}function c(){l(Ys)}function h(T){var I;for(T=T||[];I=f();)I!==!1&&T.push(I);return T}function f(){var T=u();if(!(Xr!=e.charAt(0)||Qr!=e.charAt(1))){for(var I=2;et!=e.charAt(I)&&(Qr!=e.charAt(I)||Xr!=e.charAt(I+1));)++I;if(I+=2,et===e.charAt(I-1))return o("End of comment missing");var R=e.slice(2,I-2);return r+=2,i(R),e=e.slice(I),r+=2,T({type:Gs,comment:R})}}function E(){var T=u(),I=l(qs);if(I){if(f(),!l(js))return o("property missing ':'");var R=l(Vs),y=T({type:Ks,property:Gr(I[0].replace(Wr,et)),value:R?Gr(R[0].replace(Wr,et)):et});return l(Ws),y}}function p(){var T=[];h(T);for(var I;I=E();)I!==!1&&(T.push(I),h(T));return T}return c(),p()};function Gr(e){return e?e.replace(Xs,et):et}var Js=Mr&&Mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ga,"__esModule",{value:!0});var Zs=Js($s);function eo(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Zs.default)(e),i=typeof t=="function";return r.forEach(function(u){if(u.type==="declaration"){var a=u.property,o=u.value;i?t(a,o,u):o&&(n=n||{},n[a]=o)}}),n}var Kr=ga.default=eo;const to=Kr.default||Kr,gn=ba("end"),Pe=ba("start");function ba(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function no(e){const t=Pe(e),n=gn(e);if(t&&n)return{start:t,end:n}}function wt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?$r(e.position):"start"in e||"end"in e?$r(e):"line"in e||"column"in e?Gn(e):""}function Gn(e){return Jr(e&&e.line)+":"+Jr(e&&e.column)}function $r(e){return Gn(e&&e.start)+"-"+Gn(e&&e.end)}function Jr(e){return e&&typeof e=="number"?e:1}class fe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",u={},a=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof t=="string"?i=t:!u.cause&&t&&(a=!0,i=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?u.ruleId=r:(u.source=r.slice(0,l),u.ruleId=r.slice(l+1))}if(!u.place&&u.ancestors&&u.ancestors){const l=u.ancestors[u.ancestors.length-1];l&&(u.place=l.position)}const o=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=wt(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=a&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual,this.expected,this.note,this.url}}fe.prototype.file="";fe.prototype.name="";fe.prototype.reason="";fe.prototype.message="";fe.prototype.stack="";fe.prototype.column=void 0;fe.prototype.line=void 0;fe.prototype.ancestors=void 0;fe.prototype.cause=void 0;fe.prototype.fatal=void 0;fe.prototype.place=void 0;fe.prototype.ruleId=void 0;fe.prototype.source=void 0;const cr={}.hasOwnProperty,ro=new Map,io=/[A-Z]/g,ao=/-([a-z])/g,uo=new Set(["table","tbody","thead","tfoot","tr"]),so=new Set(["td","th"]),Ta="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function oo(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Eo(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=_o(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Xe:jt,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=Aa(i,e,void 0);return u&&typeof u!="string"?u:i.create(e,i.Fragment,{children:u||void 0},void 0)}function Aa(e,t,n){if(t.type==="element")return lo(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return co(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fo(e,t,n);if(t.type==="mdxjsEsm")return ho(e,t);if(t.type==="root")return mo(e,t,n);if(t.type==="text")return po(e,t)}function lo(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Xe,e.schema=i),e.ancestors.push(t);const u=ka(e,t.tagName,!1),a=go(e,t);let o=fr(e,t);return uo.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!Os(l):!0})),Ca(e,a,u,t),hr(a,o),e.ancestors.pop(),e.schema=r,e.create(t,u,a,n)}function co(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}zt(e,t.position)}function ho(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);zt(e,t.position)}function fo(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Xe,e.schema=i),e.ancestors.push(t);const u=t.name===null?e.Fragment:ka(e,t.name,!0),a=bo(e,t),o=fr(e,t);return Ca(e,a,u,t),hr(a,o),e.ancestors.pop(),e.schema=r,e.create(t,u,a,n)}function mo(e,t,n){const r={};return hr(r,fr(e,t)),e.create(t,e.Fragment,r,n)}function po(e,t){return t.value}function Ca(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function hr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _o(e,t,n){return r;function r(i,u,a,o){const c=Array.isArray(a.children)?n:t;return o?c(u,a,o):c(u,a)}}function Eo(e,t){return n;function n(r,i,u,a){const o=Array.isArray(u.children),l=Pe(r);return t(i,u,a,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function go(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&cr.call(t.properties,i)){const u=To(e,i,t.properties[i]);if(u){const[a,o]=u;e.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&so.has(t.tagName)?r=o:n[a]=o}}if(r){const u=n.style||(n.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function bo(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const u=r.data.estree.body[0];u.type;const a=u.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else zt(e,t.position);else{const i=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,u=e.evaluater.evaluateExpression(o.expression)}else zt(e,t.position);else u=r.value===null?!0:r.value;n[i]=u}return n}function fr(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ro;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);u0?(Ce(e,e.length,0,t),e):t}const ti={}.hasOwnProperty;function ya(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Le(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const me=Qe(/[A-Za-z]/),he=Qe(/[\dA-Za-z]/),Lo=Qe(/[#-'*+\--9=?A-Z^-~]/);function hn(e){return e!==null&&(e<32||e===127)}const Kn=Qe(/\d/),Oo=Qe(/[\dA-Fa-f]/),wo=Qe(/[!-/:-@[-`{-~]/);function F(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function j(e){return e===-2||e===-1||e===32}const bn=Qe(new RegExp("\\p{P}|\\p{S}","u")),rt=Qe(/\s/);function Qe(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function bt(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&u<57344){const o=e.charCodeAt(n+1);u<56320&&o>56319&&o<57344?(a=String.fromCharCode(u,o),i=1):a="�"}else a=String.fromCharCode(u);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function X(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let u=0;return a;function a(l){return j(l)?(e.enter(n),o(l)):t(l)}function o(l){return j(l)&&u++a))return;const V=t.events.length;let ee=V,G,k;for(;ee--;)if(t.events[ee][0]==="exit"&&t.events[ee][1].type==="chunkFlow"){if(G){k=t.events[ee][1].end;break}G=!0}for(y(r),S=V;SD;){const U=n[H];t.containerState=U[1],U[0].exit.call(t,e)}n.length=D}function w(){i.write([null]),u=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Fo(e,t,n){return X(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function fn(e){if(e===null||J(e)||rt(e))return 1;if(bn(e))return 2}function Tn(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),E=Object.assign({},e[n][1].start);ri(f,-l),ri(E,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:E},u={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ae(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ae(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",u,t]]),c=Ae(c,Tn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Ae(c,[["exit",u,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,c=Ae(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,Ce(e,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n0&&j(S)?X(e,w,"linePrefix",u+1)(S):w(S)}function w(S){return S===null||F(S)?e.check(ii,I,H)(S):(e.enter("codeFlowValue"),D(S))}function D(S){return S===null||F(S)?(e.exit("codeFlowValue"),w(S)):(e.consume(S),D)}function H(S){return e.exit("codeFenced"),t(S)}function U(S,V,ee){let G=0;return k;function k(Q){return S.enter("lineEnding"),S.consume(Q),S.exit("lineEnding"),M}function M(Q){return S.enter("codeFencedFence"),j(Q)?X(S,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):B(Q)}function B(Q){return Q===o?(S.enter("codeFencedFenceSequence"),K(Q)):ee(Q)}function K(Q){return Q===o?(G++,S.consume(Q),K):G>=a?(S.exit("codeFencedFenceSequence"),j(Q)?X(S,re,"whitespace")(Q):re(Q)):ee(Q)}function re(Q){return Q===null||F(Q)?(S.exit("codeFencedFence"),V(Q)):ee(Q)}}}function Go(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u)}function u(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const On={name:"codeIndented",tokenize:$o},Ko={tokenize:Jo,partial:!0};function $o(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),X(e,u,"linePrefix",5)(c)}function u(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):F(c)?e.attempt(Ko,a,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||F(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function Jo(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):F(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):X(e,u,"linePrefix",5)(a)}function u(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):F(a)?i(a):n(a)}}const Zo={name:"codeText",tokenize:nl,resolve:el,previous:tl};function el(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&xt(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),xt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Oa(e,t,n,r,i,u,a,o,l){const c=l||Number.POSITIVE_INFINITY;let h=0;return f;function f(y){return y===60?(e.enter(r),e.enter(i),e.enter(u),e.consume(y),e.exit(u),E):y===null||y===32||y===41||hn(y)?n(y):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),I(y))}function E(y){return y===62?(e.enter(u),e.consume(y),e.exit(u),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(o),E(y)):y===null||y===60||F(y)?n(y):(e.consume(y),y===92?T:p)}function T(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function I(y){return!h&&(y===null||y===41||J(y))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(y)):h999||p===null||p===91||p===93&&!l||p===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(u),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):F(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||F(p)||o++>999?(e.exit("chunkString"),h(p)):(e.consume(p),l||(l=!j(p)),p===92?E:f)}function E(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function Da(e,t,n,r,i,u){let a;return o;function o(E){return E===34||E===39||E===40?(e.enter(r),e.enter(i),e.consume(E),e.exit(i),a=E===40?41:E,l):n(E)}function l(E){return E===a?(e.enter(i),e.consume(E),e.exit(i),e.exit(r),t):(e.enter(u),c(E))}function c(E){return E===a?(e.exit(u),l(a)):E===null?n(E):F(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),X(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(E))}function h(E){return E===a||E===null||F(E)?(e.exit("chunkString"),c(E)):(e.consume(E),E===92?f:h)}function f(E){return E===a||E===92?(e.consume(E),h):h(E)}}function Dt(e,t){let n;return r;function r(i){return F(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):j(i)?X(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const cl={name:"definition",tokenize:fl},hl={tokenize:dl,partial:!0};function fl(e,t,n){const r=this;let i;return u;function u(p){return e.enter("definition"),a(p)}function a(p){return wa.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return J(p)?Dt(e,c)(p):c(p)}function c(p){return Oa(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(hl,f,f)(p)}function f(p){return j(p)?X(e,E,"whitespace")(p):E(p)}function E(p){return p===null||F(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function dl(e,t,n){return r;function r(o){return J(o)?Dt(e,i)(o):n(o)}function i(o){return Da(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function u(o){return j(o)?X(e,a,"whitespace")(o):a(o)}function a(o){return o===null||F(o)?t(o):n(o)}}const ml={name:"hardBreakEscape",tokenize:pl};function pl(e,t,n){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),i}function i(u){return F(u)?(e.exit("hardBreakEscape"),t(u)):n(u)}}const _l={name:"headingAtx",tokenize:gl,resolve:El};function El(e,t){let n=e.length-2,r=3,i,u;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ce(e,r,n-r+1,[["enter",i,t],["enter",u,t],["exit",u,t],["exit",i,t]])),e}function gl(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),u(h)}function u(h){return e.enter("atxHeadingSequence"),a(h)}function a(h){return h===35&&r++<6?(e.consume(h),a):h===null||J(h)?(e.exit("atxHeadingSequence"),o(h)):n(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),l(h)):h===null||F(h)?(e.exit("atxHeading"),t(h)):j(h)?X(e,o,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function l(h){return h===35?(e.consume(h),l):(e.exit("atxHeadingSequence"),o(h))}function c(h){return h===null||h===35||J(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),c)}}const bl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ui=["pre","script","style","textarea"],Tl={name:"htmlFlow",tokenize:Il,resolveTo:kl,concrete:!0},Al={tokenize:Nl,partial:!0},Cl={tokenize:yl,partial:!0};function kl(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Il(e,t,n){const r=this;let i,u,a,o,l;return c;function c(b){return h(b)}function h(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),f}function f(b){return b===33?(e.consume(b),E):b===47?(e.consume(b),u=!0,I):b===63?(e.consume(b),i=3,r.interrupt?t:g):me(b)?(e.consume(b),a=String.fromCharCode(b),R):n(b)}function E(b){return b===45?(e.consume(b),i=2,p):b===91?(e.consume(b),i=5,o=0,T):me(b)?(e.consume(b),i=4,r.interrupt?t:g):n(b)}function p(b){return b===45?(e.consume(b),r.interrupt?t:g):n(b)}function T(b){const xe="CDATA[";return b===xe.charCodeAt(o++)?(e.consume(b),o===xe.length?r.interrupt?t:B:T):n(b)}function I(b){return me(b)?(e.consume(b),a=String.fromCharCode(b),R):n(b)}function R(b){if(b===null||b===47||b===62||J(b)){const xe=b===47,Ge=a.toLowerCase();return!xe&&!u&&ui.includes(Ge)?(i=1,r.interrupt?t(b):B(b)):bl.includes(a.toLowerCase())?(i=6,xe?(e.consume(b),y):r.interrupt?t(b):B(b)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):u?w(b):D(b))}return b===45||he(b)?(e.consume(b),a+=String.fromCharCode(b),R):n(b)}function y(b){return b===62?(e.consume(b),r.interrupt?t:B):n(b)}function w(b){return j(b)?(e.consume(b),w):k(b)}function D(b){return b===47?(e.consume(b),k):b===58||b===95||me(b)?(e.consume(b),H):j(b)?(e.consume(b),D):k(b)}function H(b){return b===45||b===46||b===58||b===95||he(b)?(e.consume(b),H):U(b)}function U(b){return b===61?(e.consume(b),S):j(b)?(e.consume(b),U):D(b)}function S(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),l=b,V):j(b)?(e.consume(b),S):ee(b)}function V(b){return b===l?(e.consume(b),l=null,G):b===null||F(b)?n(b):(e.consume(b),V)}function ee(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||J(b)?U(b):(e.consume(b),ee)}function G(b){return b===47||b===62||j(b)?D(b):n(b)}function k(b){return b===62?(e.consume(b),M):n(b)}function M(b){return b===null||F(b)?B(b):j(b)?(e.consume(b),M):n(b)}function B(b){return b===45&&i===2?(e.consume(b),ce):b===60&&i===1?(e.consume(b),oe):b===62&&i===4?(e.consume(b),Ne):b===63&&i===3?(e.consume(b),g):b===93&&i===5?(e.consume(b),Be):F(b)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Al,Fe,K)(b)):b===null||F(b)?(e.exit("htmlFlowData"),K(b)):(e.consume(b),B)}function K(b){return e.check(Cl,re,Fe)(b)}function re(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Q}function Q(b){return b===null||F(b)?K(b):(e.enter("htmlFlowData"),B(b))}function ce(b){return b===45?(e.consume(b),g):B(b)}function oe(b){return b===47?(e.consume(b),a="",ye):B(b)}function ye(b){if(b===62){const xe=a.toLowerCase();return ui.includes(xe)?(e.consume(b),Ne):B(b)}return me(b)&&a.length<8?(e.consume(b),a+=String.fromCharCode(b),ye):B(b)}function Be(b){return b===93?(e.consume(b),g):B(b)}function g(b){return b===62?(e.consume(b),Ne):b===45&&i===2?(e.consume(b),g):B(b)}function Ne(b){return b===null||F(b)?(e.exit("htmlFlowData"),Fe(b)):(e.consume(b),Ne)}function Fe(b){return e.exit("htmlFlow"),t(b)}}function yl(e,t,n){const r=this;return i;function i(a){return F(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):n(a)}function u(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Nl(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Vt,t,n)}}const xl={name:"htmlText",tokenize:Sl};function Sl(e,t,n){const r=this;let i,u,a;return o;function o(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),l}function l(g){return g===33?(e.consume(g),c):g===47?(e.consume(g),U):g===63?(e.consume(g),D):me(g)?(e.consume(g),ee):n(g)}function c(g){return g===45?(e.consume(g),h):g===91?(e.consume(g),u=0,T):me(g)?(e.consume(g),w):n(g)}function h(g){return g===45?(e.consume(g),p):n(g)}function f(g){return g===null?n(g):g===45?(e.consume(g),E):F(g)?(a=f,oe(g)):(e.consume(g),f)}function E(g){return g===45?(e.consume(g),p):f(g)}function p(g){return g===62?ce(g):g===45?E(g):f(g)}function T(g){const Ne="CDATA[";return g===Ne.charCodeAt(u++)?(e.consume(g),u===Ne.length?I:T):n(g)}function I(g){return g===null?n(g):g===93?(e.consume(g),R):F(g)?(a=I,oe(g)):(e.consume(g),I)}function R(g){return g===93?(e.consume(g),y):I(g)}function y(g){return g===62?ce(g):g===93?(e.consume(g),y):I(g)}function w(g){return g===null||g===62?ce(g):F(g)?(a=w,oe(g)):(e.consume(g),w)}function D(g){return g===null?n(g):g===63?(e.consume(g),H):F(g)?(a=D,oe(g)):(e.consume(g),D)}function H(g){return g===62?ce(g):D(g)}function U(g){return me(g)?(e.consume(g),S):n(g)}function S(g){return g===45||he(g)?(e.consume(g),S):V(g)}function V(g){return F(g)?(a=V,oe(g)):j(g)?(e.consume(g),V):ce(g)}function ee(g){return g===45||he(g)?(e.consume(g),ee):g===47||g===62||J(g)?G(g):n(g)}function G(g){return g===47?(e.consume(g),ce):g===58||g===95||me(g)?(e.consume(g),k):F(g)?(a=G,oe(g)):j(g)?(e.consume(g),G):ce(g)}function k(g){return g===45||g===46||g===58||g===95||he(g)?(e.consume(g),k):M(g)}function M(g){return g===61?(e.consume(g),B):F(g)?(a=M,oe(g)):j(g)?(e.consume(g),M):G(g)}function B(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,K):F(g)?(a=B,oe(g)):j(g)?(e.consume(g),B):(e.consume(g),re)}function K(g){return g===i?(e.consume(g),i=void 0,Q):g===null?n(g):F(g)?(a=K,oe(g)):(e.consume(g),K)}function re(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||J(g)?G(g):(e.consume(g),re)}function Q(g){return g===47||g===62||J(g)?G(g):n(g)}function ce(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function oe(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),ye}function ye(g){return j(g)?X(e,Be,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):Be(g)}function Be(g){return e.enter("htmlTextData"),a(g)}}const pr={name:"labelEnd",tokenize:Pl,resolveTo:Dl,resolveAll:wl},Rl={tokenize:Ml},Ll={tokenize:Bl},Ol={tokenize:Fl};function wl(e){let t=-1;for(;++t=3&&(c===null||F(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),j(c)?X(e,o,"whitespace")(c):o(c))}}const _e={name:"list",tokenize:Wl,continuation:{tokenize:Xl},exit:Gl},jl={tokenize:Kl,partial:!0},Vl={tokenize:Ql,partial:!0};function Wl(e,t,n){const r=this,i=r.events[r.events.length-1];let u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(p){const T=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Kn(p)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(sn,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Kn(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Vt,r.interrupt?n:h,e.attempt(jl,E,f))}function h(p){return r.containerState.initialBlankLine=!0,u++,E(p)}function f(p){return j(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),E):n(p)}function E(p){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Xl(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Vt,i,u);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,t,"listItemIndent",r.containerState.size+1)(o)}function u(o){return r.containerState.furtherBlankLines||!j(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Vl,t,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(_e,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Ql(e,t,n){const r=this;return X(e,i,"listItemIndent",r.containerState.size+1);function i(u){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(u):n(u)}}function Gl(e){e.exit(this.containerState.type)}function Kl(e,t,n){const r=this;return X(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(u){const a=r.events[r.events.length-1];return!j(u)&&a&&a[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}const si={name:"setextUnderline",tokenize:Jl,resolveTo:$l};function $l(e,t){let n=e.length,r,i,u;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!u&&e[n][1].type==="definition"&&(u=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",u?(e.splice(i,0,["enter",a,t]),e.splice(u+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[u][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function Jl(e,t,n){const r=this;let i;return u;function u(c){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),j(c)?X(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||F(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Zl={tokenize:ec};function ec(e){const t=this,n=e.attempt(Vt,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(al,i)),"linePrefix")));return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tc={resolveAll:Ma()},nc=Pa("string"),rc=Pa("text");function Pa(e){return{tokenize:t,resolveAll:Ma(e==="text"?ic:void 0)};function t(n){const r=this,i=this.parser.constructs[e],u=n.attempt(i,a,o);return a;function a(h){return c(h)?u(h):o(h)}function o(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),l}function l(h){return c(h)?(n.exit("data"),u(h)):(n.consume(h),l)}function c(h){if(h===null)return!0;const f=i[h];let E=-1;if(f)for(;++E-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}u>0&&a.push(e[i].slice(0,u))}return a}function sc(e,t){let n=-1;const r=[];let i;for(;++ni.map(i=>d[i]); +import{f as fs,P as be,T as Xn,w as ta,t as na,r as te,h as ra,i as ia,p as aa,V as ua,k as Mr,l as ds,j as z,_ as ke,R as ms}from"./index-mQ6522B8.js";import{C as ps,s as _s}from"./RenderTopNavBar-m0KU5Oph.js";import{a as $e}from"./index-Bj11N7g7.js";const Es=(e,t)=>{const n=t.size,r=t.delimiter,i=t.spacing,u=r!=="none",a=i!=="none";fs(!(u&&a),"[List] `itemSpacing` has no effect inside Lists with the `delimiter` prop set to anything other than `none`.");const o={small:{fontSize:e.fontSizeSmall},medium:{fontSize:e.fontSizeMedium},large:{fontSize:e.fontSizeLarge}},l={"xxx-small":{marginTop:e.spacingXXXSmall,marginBottom:e.spacingXXXSmall},"xx-small":{marginTop:e.spacingXXSmall,marginBottom:e.spacingXXSmall},"x-small":{marginTop:e.spacingXSmall,marginBottom:e.spacingXSmall},small:{marginTop:e.spacingSmall,marginBottom:e.spacingSmall},medium:{marginTop:e.spacingMedium,marginBottom:e.spacingMedium},large:{marginTop:e.spacingLarge,marginBottom:e.spacingLarge},"x-large":{marginTop:e.spacingXLarge,marginBottom:e.spacingXLarge},"xx-large":{marginTop:e.spacingXXLarge,marginBottom:e.spacingXXLarge},none:{}},c={dashed:{listStylePosition:"inside","&:not(:first-of-type)":{borderTop:e.delimiterDashedBorder}},solid:{listStylePosition:"inside","&:not(:first-of-type)":{borderTop:e.delimiterSolidBorder}},none:{}};return{listItem:{label:"listItem",fontWeight:e.fontWeight,fontFamily:e.fontFamily,lineHeight:e.lineHeight,color:e.color,padding:0,...o[n],...a&&!u&&l[i],...u&&c[r],"&:first-of-type":{marginTop:"0"},"&:last-of-type":{marginBottom:"0"}}}},gs=e=>{var t,n,r;const i=e.borders,u=e.colors,a=e.spacing,o=e.typography,l=e.key,c={canvas:{color:e["ic-brand-font-color-dark"]}};return{...{fontFamily:o==null?void 0:o.fontFamily,fontWeight:o==null?void 0:o.fontWeightNormal,lineHeight:o==null?void 0:o.lineHeight,fontSizeSmall:o==null?void 0:o.fontSizeSmall,fontSizeMedium:o==null?void 0:o.fontSizeMedium,fontSizeLarge:o==null?void 0:o.fontSizeLarge,color:u==null||(t=u.contrasts)===null||t===void 0?void 0:t.grey125125,spacingXXXSmall:a==null?void 0:a.xxxSmall,spacingXXSmall:a==null?void 0:a.xxSmall,spacingXSmall:a==null?void 0:a.xSmall,spacingSmall:a==null?void 0:a.small,spacingMedium:a==null?void 0:a.medium,spacingLarge:a==null?void 0:a.large,spacingXLarge:a==null?void 0:a.xLarge,spacingXXLarge:a==null?void 0:a.xxLarge,delimiterDashedBorder:`${i==null?void 0:i.widthSmall} dashed ${u==null||(n=u.contrasts)===null||n===void 0?void 0:n.grey1214}`,delimiterSolidBorder:`${i==null?void 0:i.widthSmall} solid ${u==null||(r=u.contrasts)===null||r===void 0?void 0:r.grey1214}`},...c[l]}},bs={children:be.oneOfType([be.node,be.func]).isRequired,delimiter:be.oneOf(["none","dashed","solid"]),size:be.oneOf(["small","medium","large"]),margin:Xn.spacing,padding:Xn.spacing,spacing:be.oneOf(["none","xxx-small","xx-small","x-small","small","medium","large","x-large","xx-large"]),elementRef:be.func},Ts=["children","delimiter","size","margin","padding","spacing","elementRef"],As=["delimiter","spacing","size","margin","padding","elementRef","children","styles"];var Br,Fr,Kt,Je;let sa=(Br=ta(Es,gs),Fr=na(),Br(Kt=Fr(Kt=(Je=class extends te.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=n=>{const r=this.props.elementRef;this.ref=n,typeof r=="function"&&r(n)}}componentDidMount(){var t,n;(t=(n=this.props).makeStyles)===null||t===void 0||t.call(n)}componentDidUpdate(){var t,n;(t=(n=this.props).makeStyles)===null||t===void 0||t.call(n)}render(){const t=this.props;t.delimiter,t.spacing,t.size;const n=t.margin,r=t.padding;t.elementRef;const i=t.children,u=t.styles,a=ra(t,As);return ia(ua,Object.assign({},aa(a),{css:u==null?void 0:u.listItem,as:"li",margin:n,padding:r,maxWidth:"100%",elementRef:this.handleRef}),i)}},Je.displayName="ListItem",Je.componentId="List.Item",Je.propTypes=bs,Je.allowedProps=Ts,Je.defaultProps={padding:"none",spacing:"none",delimiter:"none",size:"medium"},Je))||Kt)||Kt);const Cs=(e,t)=>{const n=t.isUnstyled,i=t.as==="ol";return{list:{label:"list",paddingInlineStart:e.listPadding,paddingInlineEnd:0,...i&&{listStyleType:"none",paddingInlineStart:`calc(${e.listPadding} / 2)`,paddingInlineEnd:0,counterReset:"ol-counter","&>li::before":{fontWeight:e.orderedNumberFontWeight,counterIncrement:"ol-counter",content:'counters(ol-counter, ".") "."',marginInlineEnd:e.orderedNumberMargin,marginInlineStart:0}},...n&&{listStyleType:"none",paddingInlineStart:0}}}},ks=e=>{const t=e.spacing,n=e.typography;return{...{listPadding:t==null?void 0:t.large,orderedNumberFontWeight:n==null?void 0:n.fontWeightBold,orderedNumberMargin:t==null?void 0:t.xSmall}}},Is={children:ps.oneOf([sa]),as:be.oneOf(["ul","ol"]),delimiter:be.oneOf(["none","dashed","solid"]),isUnstyled:be.bool,margin:Xn.spacing,size:be.oneOf(["small","medium","large"]),itemSpacing:be.oneOf(["none","xxx-small","xx-small","x-small","small","medium","large","x-large","xx-large"]),elementRef:be.func},ys=["children","as","delimiter","isUnstyled","margin","size","itemSpacing","elementRef"],Ns=["as","margin","isUnstyled","elementRef","styles"];var Hr,Ur,$t,Ye;let Nt=(Hr=ta(Cs,ks),Ur=na(),Hr($t=Ur($t=(Ye=class extends te.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=n=>{const r=this.props.elementRef;this.ref=n,typeof r=="function"&&r(n)}}componentDidMount(){var t,n;(t=(n=this.props).makeStyles)===null||t===void 0||t.call(n)}componentDidUpdate(){var t,n;(t=(n=this.props).makeStyles)===null||t===void 0||t.call(n)}renderChildren(){return te.Children.map(this.props.children,t=>{if(t)return _s(t,{isUnstyled:this.props.isUnstyled,delimiter:this.props.delimiter,size:this.props.size,spacing:this.props.itemSpacing})})}render(){const t=this.props,n=t.as,r=t.margin;t.isUnstyled,t.elementRef;const i=t.styles,u=ra(t,Ns);return ia(ua,Object.assign({},aa(u),{css:i==null?void 0:i.list,as:n,margin:r,elementRef:this.handleRef,display:"block"}),this.renderChildren())}},Ye.displayName="List",Ye.componentId="List",Ye.propTypes=Is,Ye.allowedProps=ys,Ye.defaultProps={as:"ul",delimiter:"none",isUnstyled:!1,size:"medium",itemSpacing:"none"},Ye.Item=sa,Ye))||$t)||$t);function vr(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,u=!1;for(;!u;){r===-1&&(r=n.length,u=!0);const a=n.slice(i,r).trim();(a||!u)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function oa(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xs=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ss=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Rs={};function zr(e,t){return(Rs.jsx?Ss:xs).test(e)}const Ls=/[ \t\n\f\r]/g;function Os(e){return typeof e=="object"?e.type==="text"?Yr(e.value):!1:Yr(e)}function Yr(e){return e.replace(Ls,"")===""}class qt{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}qt.prototype.property={};qt.prototype.normal={};qt.prototype.space=null;function la(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&Bs.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(jr,Us);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!jr.test(u)){let a=u.replace(Fs,Hs);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=lr}return new i(r,t)}function Hs(e){return"-"+e.toLowerCase()}function Us(e){return e.charAt(1).toUpperCase()}const vs={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},jt=la([fa,ha,pa,_a,Ps],"html"),Xe=la([fa,ha,pa,_a,Ms],"svg");function Vr(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ea(e){return e.join(" ").trim()}var ga={},Wr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zs=/\n/g,Ys=/^\s*/,qs=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,js=/^:\s*/,Vs=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ws=/^[;\s]*/,Xs=/^\s+|\s+$/g,Qs=` +`,Xr="/",Qr="*",et="",Gs="comment",Ks="declaration",$s=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(T){var I=T.match(zs);I&&(n+=I.length);var R=T.lastIndexOf(Qs);r=~R?T.length-R:r+T.length}function u(){var T={line:n,column:r};return function(I){return I.position=new a(T),c(),I}}function a(T){this.start=T,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function o(T){var I=new Error(t.source+":"+n+":"+r+": "+T);if(I.reason=T,I.filename=t.source,I.line=n,I.column=r,I.source=e,!t.silent)throw I}function l(T){var I=T.exec(e);if(I){var R=I[0];return i(R),e=e.slice(R.length),I}}function c(){l(Ys)}function h(T){var I;for(T=T||[];I=f();)I!==!1&&T.push(I);return T}function f(){var T=u();if(!(Xr!=e.charAt(0)||Qr!=e.charAt(1))){for(var I=2;et!=e.charAt(I)&&(Qr!=e.charAt(I)||Xr!=e.charAt(I+1));)++I;if(I+=2,et===e.charAt(I-1))return o("End of comment missing");var R=e.slice(2,I-2);return r+=2,i(R),e=e.slice(I),r+=2,T({type:Gs,comment:R})}}function E(){var T=u(),I=l(qs);if(I){if(f(),!l(js))return o("property missing ':'");var R=l(Vs),y=T({type:Ks,property:Gr(I[0].replace(Wr,et)),value:R?Gr(R[0].replace(Wr,et)):et});return l(Ws),y}}function p(){var T=[];h(T);for(var I;I=E();)I!==!1&&(T.push(I),h(T));return T}return c(),p()};function Gr(e){return e?e.replace(Xs,et):et}var Js=Mr&&Mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ga,"__esModule",{value:!0});var Kr=ga.default=eo,Zs=Js($s);function eo(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Zs.default)(e),i=typeof t=="function";return r.forEach(function(u){if(u.type==="declaration"){var a=u.property,o=u.value;i?t(a,o,u):o&&(n=n||{},n[a]=o)}}),n}const to=Kr.default||Kr,gn=ba("end"),Pe=ba("start");function ba(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function no(e){const t=Pe(e),n=gn(e);if(t&&n)return{start:t,end:n}}function wt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?$r(e.position):"start"in e||"end"in e?$r(e):"line"in e||"column"in e?Gn(e):""}function Gn(e){return Jr(e&&e.line)+":"+Jr(e&&e.column)}function $r(e){return Gn(e&&e.start)+"-"+Gn(e&&e.end)}function Jr(e){return e&&typeof e=="number"?e:1}class fe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",u={},a=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof t=="string"?i=t:!u.cause&&t&&(a=!0,i=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?u.ruleId=r:(u.source=r.slice(0,l),u.ruleId=r.slice(l+1))}if(!u.place&&u.ancestors&&u.ancestors){const l=u.ancestors[u.ancestors.length-1];l&&(u.place=l.position)}const o=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=wt(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=a&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual,this.expected,this.note,this.url}}fe.prototype.file="";fe.prototype.name="";fe.prototype.reason="";fe.prototype.message="";fe.prototype.stack="";fe.prototype.column=void 0;fe.prototype.line=void 0;fe.prototype.ancestors=void 0;fe.prototype.cause=void 0;fe.prototype.fatal=void 0;fe.prototype.place=void 0;fe.prototype.ruleId=void 0;fe.prototype.source=void 0;const cr={}.hasOwnProperty,ro=new Map,io=/[A-Z]/g,ao=/-([a-z])/g,uo=new Set(["table","tbody","thead","tfoot","tr"]),so=new Set(["td","th"]),Ta="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function oo(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Eo(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=_o(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Xe:jt,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=Aa(i,e,void 0);return u&&typeof u!="string"?u:i.create(e,i.Fragment,{children:u||void 0},void 0)}function Aa(e,t,n){if(t.type==="element")return lo(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return co(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fo(e,t,n);if(t.type==="mdxjsEsm")return ho(e,t);if(t.type==="root")return mo(e,t,n);if(t.type==="text")return po(e,t)}function lo(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Xe,e.schema=i),e.ancestors.push(t);const u=ka(e,t.tagName,!1),a=go(e,t);let o=fr(e,t);return uo.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!Os(l):!0})),Ca(e,a,u,t),hr(a,o),e.ancestors.pop(),e.schema=r,e.create(t,u,a,n)}function co(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}zt(e,t.position)}function ho(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);zt(e,t.position)}function fo(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Xe,e.schema=i),e.ancestors.push(t);const u=t.name===null?e.Fragment:ka(e,t.name,!0),a=bo(e,t),o=fr(e,t);return Ca(e,a,u,t),hr(a,o),e.ancestors.pop(),e.schema=r,e.create(t,u,a,n)}function mo(e,t,n){const r={};return hr(r,fr(e,t)),e.create(t,e.Fragment,r,n)}function po(e,t){return t.value}function Ca(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function hr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _o(e,t,n){return r;function r(i,u,a,o){const c=Array.isArray(a.children)?n:t;return o?c(u,a,o):c(u,a)}}function Eo(e,t){return n;function n(r,i,u,a){const o=Array.isArray(u.children),l=Pe(r);return t(i,u,a,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function go(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&cr.call(t.properties,i)){const u=To(e,i,t.properties[i]);if(u){const[a,o]=u;e.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&so.has(t.tagName)?r=o:n[a]=o}}if(r){const u=n.style||(n.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function bo(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const u=r.data.estree.body[0];u.type;const a=u.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else zt(e,t.position);else{const i=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,u=e.evaluater.evaluateExpression(o.expression)}else zt(e,t.position);else u=r.value===null?!0:r.value;n[i]=u}return n}function fr(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ro;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);u0?(Ce(e,e.length,0,t),e):t}const ti={}.hasOwnProperty;function ya(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Le(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const me=Qe(/[A-Za-z]/),he=Qe(/[\dA-Za-z]/),Lo=Qe(/[#-'*+\--9=?A-Z^-~]/);function hn(e){return e!==null&&(e<32||e===127)}const Kn=Qe(/\d/),Oo=Qe(/[\dA-Fa-f]/),wo=Qe(/[!-/:-@[-`{-~]/);function F(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function j(e){return e===-2||e===-1||e===32}const bn=Qe(new RegExp("\\p{P}|\\p{S}","u")),rt=Qe(/\s/);function Qe(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function bt(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&u<57344){const o=e.charCodeAt(n+1);u<56320&&o>56319&&o<57344?(a=String.fromCharCode(u,o),i=1):a="�"}else a=String.fromCharCode(u);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function X(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let u=0;return a;function a(l){return j(l)?(e.enter(n),o(l)):t(l)}function o(l){return j(l)&&u++a))return;const V=t.events.length;let ee=V,G,k;for(;ee--;)if(t.events[ee][0]==="exit"&&t.events[ee][1].type==="chunkFlow"){if(G){k=t.events[ee][1].end;break}G=!0}for(y(r),S=V;SD;){const U=n[H];t.containerState=U[1],U[0].exit.call(t,e)}n.length=D}function w(){i.write([null]),u=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Fo(e,t,n){return X(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function fn(e){if(e===null||J(e)||rt(e))return 1;if(bn(e))return 2}function Tn(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),E=Object.assign({},e[n][1].start);ri(f,-l),ri(E,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:E},u={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ae(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ae(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",u,t]]),c=Ae(c,Tn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Ae(c,[["exit",u,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,c=Ae(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,Ce(e,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n0&&j(S)?X(e,w,"linePrefix",u+1)(S):w(S)}function w(S){return S===null||F(S)?e.check(ii,I,H)(S):(e.enter("codeFlowValue"),D(S))}function D(S){return S===null||F(S)?(e.exit("codeFlowValue"),w(S)):(e.consume(S),D)}function H(S){return e.exit("codeFenced"),t(S)}function U(S,V,ee){let G=0;return k;function k(Q){return S.enter("lineEnding"),S.consume(Q),S.exit("lineEnding"),M}function M(Q){return S.enter("codeFencedFence"),j(Q)?X(S,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):B(Q)}function B(Q){return Q===o?(S.enter("codeFencedFenceSequence"),K(Q)):ee(Q)}function K(Q){return Q===o?(G++,S.consume(Q),K):G>=a?(S.exit("codeFencedFenceSequence"),j(Q)?X(S,re,"whitespace")(Q):re(Q)):ee(Q)}function re(Q){return Q===null||F(Q)?(S.exit("codeFencedFence"),V(Q)):ee(Q)}}}function Go(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u)}function u(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const On={name:"codeIndented",tokenize:$o},Ko={tokenize:Jo,partial:!0};function $o(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),X(e,u,"linePrefix",5)(c)}function u(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):F(c)?e.attempt(Ko,a,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||F(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function Jo(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):F(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):X(e,u,"linePrefix",5)(a)}function u(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):F(a)?i(a):n(a)}}const Zo={name:"codeText",tokenize:nl,resolve:el,previous:tl};function el(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&xt(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),xt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Oa(e,t,n,r,i,u,a,o,l){const c=l||Number.POSITIVE_INFINITY;let h=0;return f;function f(y){return y===60?(e.enter(r),e.enter(i),e.enter(u),e.consume(y),e.exit(u),E):y===null||y===32||y===41||hn(y)?n(y):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),I(y))}function E(y){return y===62?(e.enter(u),e.consume(y),e.exit(u),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(o),E(y)):y===null||y===60||F(y)?n(y):(e.consume(y),y===92?T:p)}function T(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function I(y){return!h&&(y===null||y===41||J(y))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(y)):h999||p===null||p===91||p===93&&!l||p===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(u),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):F(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||F(p)||o++>999?(e.exit("chunkString"),h(p)):(e.consume(p),l||(l=!j(p)),p===92?E:f)}function E(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function Da(e,t,n,r,i,u){let a;return o;function o(E){return E===34||E===39||E===40?(e.enter(r),e.enter(i),e.consume(E),e.exit(i),a=E===40?41:E,l):n(E)}function l(E){return E===a?(e.enter(i),e.consume(E),e.exit(i),e.exit(r),t):(e.enter(u),c(E))}function c(E){return E===a?(e.exit(u),l(a)):E===null?n(E):F(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),X(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(E))}function h(E){return E===a||E===null||F(E)?(e.exit("chunkString"),c(E)):(e.consume(E),E===92?f:h)}function f(E){return E===a||E===92?(e.consume(E),h):h(E)}}function Dt(e,t){let n;return r;function r(i){return F(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):j(i)?X(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const cl={name:"definition",tokenize:fl},hl={tokenize:dl,partial:!0};function fl(e,t,n){const r=this;let i;return u;function u(p){return e.enter("definition"),a(p)}function a(p){return wa.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return J(p)?Dt(e,c)(p):c(p)}function c(p){return Oa(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(hl,f,f)(p)}function f(p){return j(p)?X(e,E,"whitespace")(p):E(p)}function E(p){return p===null||F(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function dl(e,t,n){return r;function r(o){return J(o)?Dt(e,i)(o):n(o)}function i(o){return Da(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function u(o){return j(o)?X(e,a,"whitespace")(o):a(o)}function a(o){return o===null||F(o)?t(o):n(o)}}const ml={name:"hardBreakEscape",tokenize:pl};function pl(e,t,n){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),i}function i(u){return F(u)?(e.exit("hardBreakEscape"),t(u)):n(u)}}const _l={name:"headingAtx",tokenize:gl,resolve:El};function El(e,t){let n=e.length-2,r=3,i,u;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ce(e,r,n-r+1,[["enter",i,t],["enter",u,t],["exit",u,t],["exit",i,t]])),e}function gl(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),u(h)}function u(h){return e.enter("atxHeadingSequence"),a(h)}function a(h){return h===35&&r++<6?(e.consume(h),a):h===null||J(h)?(e.exit("atxHeadingSequence"),o(h)):n(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),l(h)):h===null||F(h)?(e.exit("atxHeading"),t(h)):j(h)?X(e,o,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function l(h){return h===35?(e.consume(h),l):(e.exit("atxHeadingSequence"),o(h))}function c(h){return h===null||h===35||J(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),c)}}const bl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ui=["pre","script","style","textarea"],Tl={name:"htmlFlow",tokenize:Il,resolveTo:kl,concrete:!0},Al={tokenize:Nl,partial:!0},Cl={tokenize:yl,partial:!0};function kl(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Il(e,t,n){const r=this;let i,u,a,o,l;return c;function c(b){return h(b)}function h(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),f}function f(b){return b===33?(e.consume(b),E):b===47?(e.consume(b),u=!0,I):b===63?(e.consume(b),i=3,r.interrupt?t:g):me(b)?(e.consume(b),a=String.fromCharCode(b),R):n(b)}function E(b){return b===45?(e.consume(b),i=2,p):b===91?(e.consume(b),i=5,o=0,T):me(b)?(e.consume(b),i=4,r.interrupt?t:g):n(b)}function p(b){return b===45?(e.consume(b),r.interrupt?t:g):n(b)}function T(b){const xe="CDATA[";return b===xe.charCodeAt(o++)?(e.consume(b),o===xe.length?r.interrupt?t:B:T):n(b)}function I(b){return me(b)?(e.consume(b),a=String.fromCharCode(b),R):n(b)}function R(b){if(b===null||b===47||b===62||J(b)){const xe=b===47,Ge=a.toLowerCase();return!xe&&!u&&ui.includes(Ge)?(i=1,r.interrupt?t(b):B(b)):bl.includes(a.toLowerCase())?(i=6,xe?(e.consume(b),y):r.interrupt?t(b):B(b)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):u?w(b):D(b))}return b===45||he(b)?(e.consume(b),a+=String.fromCharCode(b),R):n(b)}function y(b){return b===62?(e.consume(b),r.interrupt?t:B):n(b)}function w(b){return j(b)?(e.consume(b),w):k(b)}function D(b){return b===47?(e.consume(b),k):b===58||b===95||me(b)?(e.consume(b),H):j(b)?(e.consume(b),D):k(b)}function H(b){return b===45||b===46||b===58||b===95||he(b)?(e.consume(b),H):U(b)}function U(b){return b===61?(e.consume(b),S):j(b)?(e.consume(b),U):D(b)}function S(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),l=b,V):j(b)?(e.consume(b),S):ee(b)}function V(b){return b===l?(e.consume(b),l=null,G):b===null||F(b)?n(b):(e.consume(b),V)}function ee(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||J(b)?U(b):(e.consume(b),ee)}function G(b){return b===47||b===62||j(b)?D(b):n(b)}function k(b){return b===62?(e.consume(b),M):n(b)}function M(b){return b===null||F(b)?B(b):j(b)?(e.consume(b),M):n(b)}function B(b){return b===45&&i===2?(e.consume(b),ce):b===60&&i===1?(e.consume(b),oe):b===62&&i===4?(e.consume(b),Ne):b===63&&i===3?(e.consume(b),g):b===93&&i===5?(e.consume(b),Be):F(b)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Al,Fe,K)(b)):b===null||F(b)?(e.exit("htmlFlowData"),K(b)):(e.consume(b),B)}function K(b){return e.check(Cl,re,Fe)(b)}function re(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Q}function Q(b){return b===null||F(b)?K(b):(e.enter("htmlFlowData"),B(b))}function ce(b){return b===45?(e.consume(b),g):B(b)}function oe(b){return b===47?(e.consume(b),a="",ye):B(b)}function ye(b){if(b===62){const xe=a.toLowerCase();return ui.includes(xe)?(e.consume(b),Ne):B(b)}return me(b)&&a.length<8?(e.consume(b),a+=String.fromCharCode(b),ye):B(b)}function Be(b){return b===93?(e.consume(b),g):B(b)}function g(b){return b===62?(e.consume(b),Ne):b===45&&i===2?(e.consume(b),g):B(b)}function Ne(b){return b===null||F(b)?(e.exit("htmlFlowData"),Fe(b)):(e.consume(b),Ne)}function Fe(b){return e.exit("htmlFlow"),t(b)}}function yl(e,t,n){const r=this;return i;function i(a){return F(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):n(a)}function u(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Nl(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Vt,t,n)}}const xl={name:"htmlText",tokenize:Sl};function Sl(e,t,n){const r=this;let i,u,a;return o;function o(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),l}function l(g){return g===33?(e.consume(g),c):g===47?(e.consume(g),U):g===63?(e.consume(g),D):me(g)?(e.consume(g),ee):n(g)}function c(g){return g===45?(e.consume(g),h):g===91?(e.consume(g),u=0,T):me(g)?(e.consume(g),w):n(g)}function h(g){return g===45?(e.consume(g),p):n(g)}function f(g){return g===null?n(g):g===45?(e.consume(g),E):F(g)?(a=f,oe(g)):(e.consume(g),f)}function E(g){return g===45?(e.consume(g),p):f(g)}function p(g){return g===62?ce(g):g===45?E(g):f(g)}function T(g){const Ne="CDATA[";return g===Ne.charCodeAt(u++)?(e.consume(g),u===Ne.length?I:T):n(g)}function I(g){return g===null?n(g):g===93?(e.consume(g),R):F(g)?(a=I,oe(g)):(e.consume(g),I)}function R(g){return g===93?(e.consume(g),y):I(g)}function y(g){return g===62?ce(g):g===93?(e.consume(g),y):I(g)}function w(g){return g===null||g===62?ce(g):F(g)?(a=w,oe(g)):(e.consume(g),w)}function D(g){return g===null?n(g):g===63?(e.consume(g),H):F(g)?(a=D,oe(g)):(e.consume(g),D)}function H(g){return g===62?ce(g):D(g)}function U(g){return me(g)?(e.consume(g),S):n(g)}function S(g){return g===45||he(g)?(e.consume(g),S):V(g)}function V(g){return F(g)?(a=V,oe(g)):j(g)?(e.consume(g),V):ce(g)}function ee(g){return g===45||he(g)?(e.consume(g),ee):g===47||g===62||J(g)?G(g):n(g)}function G(g){return g===47?(e.consume(g),ce):g===58||g===95||me(g)?(e.consume(g),k):F(g)?(a=G,oe(g)):j(g)?(e.consume(g),G):ce(g)}function k(g){return g===45||g===46||g===58||g===95||he(g)?(e.consume(g),k):M(g)}function M(g){return g===61?(e.consume(g),B):F(g)?(a=M,oe(g)):j(g)?(e.consume(g),M):G(g)}function B(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,K):F(g)?(a=B,oe(g)):j(g)?(e.consume(g),B):(e.consume(g),re)}function K(g){return g===i?(e.consume(g),i=void 0,Q):g===null?n(g):F(g)?(a=K,oe(g)):(e.consume(g),K)}function re(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||J(g)?G(g):(e.consume(g),re)}function Q(g){return g===47||g===62||J(g)?G(g):n(g)}function ce(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function oe(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),ye}function ye(g){return j(g)?X(e,Be,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):Be(g)}function Be(g){return e.enter("htmlTextData"),a(g)}}const pr={name:"labelEnd",tokenize:Pl,resolveTo:Dl,resolveAll:wl},Rl={tokenize:Ml},Ll={tokenize:Bl},Ol={tokenize:Fl};function wl(e){let t=-1;for(;++t=3&&(c===null||F(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),j(c)?X(e,o,"whitespace")(c):o(c))}}const _e={name:"list",tokenize:Wl,continuation:{tokenize:Xl},exit:Gl},jl={tokenize:Kl,partial:!0},Vl={tokenize:Ql,partial:!0};function Wl(e,t,n){const r=this,i=r.events[r.events.length-1];let u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(p){const T=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Kn(p)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(sn,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Kn(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Vt,r.interrupt?n:h,e.attempt(jl,E,f))}function h(p){return r.containerState.initialBlankLine=!0,u++,E(p)}function f(p){return j(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),E):n(p)}function E(p){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Xl(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Vt,i,u);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,t,"listItemIndent",r.containerState.size+1)(o)}function u(o){return r.containerState.furtherBlankLines||!j(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Vl,t,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(_e,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Ql(e,t,n){const r=this;return X(e,i,"listItemIndent",r.containerState.size+1);function i(u){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(u):n(u)}}function Gl(e){e.exit(this.containerState.type)}function Kl(e,t,n){const r=this;return X(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(u){const a=r.events[r.events.length-1];return!j(u)&&a&&a[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}const si={name:"setextUnderline",tokenize:Jl,resolveTo:$l};function $l(e,t){let n=e.length,r,i,u;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!u&&e[n][1].type==="definition"&&(u=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",u?(e.splice(i,0,["enter",a,t]),e.splice(u+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[u][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function Jl(e,t,n){const r=this;let i;return u;function u(c){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),j(c)?X(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||F(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Zl={tokenize:ec};function ec(e){const t=this,n=e.attempt(Vt,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(al,i)),"linePrefix")));return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tc={resolveAll:Ma()},nc=Pa("string"),rc=Pa("text");function Pa(e){return{tokenize:t,resolveAll:Ma(e==="text"?ic:void 0)};function t(n){const r=this,i=this.parser.constructs[e],u=n.attempt(i,a,o);return a;function a(h){return c(h)?u(h):o(h)}function o(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),l}function l(h){return c(h)?(n.exit("data"),u(h)):(n.consume(h),l)}function c(h){if(h===null)return!0;const f=i[h];let E=-1;if(f)for(;++E-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}u>0&&a.push(e[i].slice(0,u))}return a}function sc(e,t){let n=-1;const r=[];let i;for(;++n0){const Se=v.tokenStack[v.tokenStack.length-1];(Se[1]||li).call(v,void 0,Se[0])}for(P.position={start:qe(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:qe(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${u}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),c+=l.move(")"),a(),c}function np(){return"!"}zu.peek=rp;function zu(e,t,n,r){const i=e.referenceType,u=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const c=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const h=n.stack;n.stack=[],a=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=h,u(),i==="full"||!c||c!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function rp(){return"!"}Yu.peek=ip;function Yu(e,t,n){let r=e.value||"",i="`",u=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u\u007F]/.test(e.url))}ju.peek=ap;function ju(e,t,n,r){const i=xr(n),u=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let o,l;if(qu(e,n)){const h=n.stack;n.stack=[],o=n.enter("autolink");let f=a.move("<");return f+=a.move(n.containerPhrasing(e,{before:f,after:">",...a.current()})),f+=a.move(">"),o(),n.stack=h,f}o=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${u}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),o(),c}function ap(e,t,n){return qu(e,n)?"<":"["}Vu.peek=up;function Vu(e,t,n,r){const i=e.referenceType,u=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const h=n.stack;n.stack=[],a=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=h,u(),i==="full"||!c||c!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function up(){return"["}function Sr(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function sp(e){const t=Sr(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function op(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Wu(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function lp(e,t,n,r){const i=n.enter("list"),u=n.bulletCurrent;let a=e.ordered?op(n):Sr(n);const o=e.ordered?a==="."?")":".":sp(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Wu(n)===a&&h){let f=-1;for(;++f-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+u);let a=u.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=n.createTracker(r);o.move(u+" ".repeat(a-u.length)),o.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),h);return l(),c;function h(f,E,p){return E?(p?"":" ".repeat(a))+f:(p?u:u+" ".repeat(a-u.length))+f}}function fp(e,t,n,r){const i=n.enter("paragraph"),u=n.enter("phrasing"),a=n.containerPhrasing(e,r);return u(),i(),a}const dp=Cn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function mp(e,t,n,r){return(e.children.some(function(a){return dp(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function pp(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Xu.peek=_p;function Xu(e,t,n,r){const i=pp(n),u=n.enter("strong"),a=n.createTracker(r);let o=a.move(i+i);return o+=a.move(n.containerPhrasing(e,{before:o,after:i,...a.current()})),o+=a.move(i+i),u(),o}function _p(e,t,n){return n.options.strong||"*"}function Ep(e,t,n,r){return n.safe(e.value,r)}function gp(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function bp(e,t,n){const r=(Wu(n)+(n.options.ruleSpaces?" ":"")).repeat(gp(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Qu={blockquote:Ym,break:Ki,code:Qm,definition:Km,emphasis:Hu,hardBreak:Ki,heading:ep,html:Uu,image:vu,imageReference:zu,inlineCode:Yu,link:ju,linkReference:Vu,list:lp,listItem:hp,paragraph:fp,root:mp,strong:Xu,text:Ep,thematicBreak:bp};function Tp(){return{enter:{table:Ap,tableData:$i,tableHeader:$i,tableRow:kp},exit:{codeText:Ip,table:Cp,tableData:Wn,tableHeader:Wn,tableRow:Wn}}}function Ap(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Cp(e){this.exit(e),this.data.inTable=void 0}function kp(e){this.enter({type:"tableRow",children:[]},e)}function Wn(e){this.exit(e)}function $i(e){this.enter({type:"tableCell",children:[]},e)}function Ip(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,yp));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function yp(e,t){return t==="|"?t:e}function Np(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:a,tableCell:l,tableRow:o}};function a(p,T,I,R){return c(h(p,I,R),p.align)}function o(p,T,I,R){const y=f(p,I,R),w=c([y]);return w.slice(0,w.indexOf(` -`))}function l(p,T,I,R){const y=I.enter("tableCell"),w=I.enter("phrasing"),D=I.containerPhrasing(p,{...R,before:u,after:u});return w(),y(),D}function c(p,T){return Um(p,{align:T,alignDelimiters:r,padding:n,stringLength:i})}function h(p,T,I){const R=p.children;let y=-1;const w=[],D=T.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const jp={tokenize:Jp,partial:!0};function Vp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gp,continuation:{tokenize:Kp},exit:$p}},text:{91:{name:"gfmFootnoteCall",tokenize:Qp},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Wp,resolveTo:Xp}}}}function Wp(e,t,n){const r=this;let i=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!a||!a._balanced)return n(l);const c=Le(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!u.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Xp(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",u,t],["enter",a,t],["exit",a,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Qp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,a;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(u>999||f===93&&!a||f===null||f===91||J(f))return n(f);if(f===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return i.includes(Le(r.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return J(f)||(a=!0),u++,e.consume(f),f===92?h:c}function h(f){return f===91||f===92||f===93?(e.consume(f),u++,c):c(f)}}function Gp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,a=0,o;return l;function l(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(T)}function h(T){if(a>999||T===93&&!o||T===null||T===91||J(T))return n(T);if(T===93){e.exit("chunkString");const I=e.exit("gfmFootnoteDefinitionLabelString");return u=Le(r.sliceSerialize(I)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return J(T)||(o=!0),a++,e.consume(T),T===92?f:h}function f(T){return T===91||T===92||T===93?(e.consume(T),a++,h):h(T)}function E(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),i.includes(u)||i.push(u),X(e,p,"gfmFootnoteDefinitionWhitespace")):n(T)}function p(T){return t(T)}}function Kp(e,t,n){return e.check(Vt,t,e.attempt(jp,t,n))}function $p(e){e.exit("gfmFootnoteDefinition")}function Jp(e,t,n){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",5);function i(u){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(u):n(u)}}function Zp(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,o){let l=-1;for(;++l1?l(T):(a.consume(T),f++,p);if(f<2&&!n)return l(T);const R=a.exit("strikethroughSequenceTemporary"),y=fn(T);return R._open=!y||y===2&&!!I,R._close=!I||I===2&&!!y,o(T)}}}class e1{constructor(){this.map=[]}add(t,n,r){t1(this,t,n,r)}consume(t){if(this.map.sort(function(u,a){return u[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function t1(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const re=r.events[M][1].type;if(re==="lineEnding"||re==="linePrefix")M--;else break}const B=M>-1?r.events[M][1].type:null,K=B==="tableHead"||B==="tableRow"?S:l;return K===S&&r.parser.lazy[r.now().line]?n(k):K(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),c(k)}function c(k){return k===124||(a=!0,u+=1),h(k)}function h(k){return k===null?n(k):F(k)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):n(k):j(k)?X(e,h,"whitespace")(k):(u+=1,a&&(a=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),a=!0,h):(e.enter("data"),f(k)))}function f(k){return k===null||k===124||J(k)?(e.exit("data"),h(k)):(e.consume(k),k===92?E:f)}function E(k){return k===92||k===124?(e.consume(k),f):f(k)}function p(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),a=!1,j(k)?X(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):T(k))}function T(k){return k===45||k===58?R(k):k===124?(a=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),I):U(k)}function I(k){return j(k)?X(e,R,"whitespace")(k):R(k)}function R(k){return k===58?(u+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),y):k===45?(u+=1,y(k)):k===null||F(k)?H(k):U(k)}function y(k){return k===45?(e.enter("tableDelimiterFiller"),w(k)):U(k)}function w(k){return k===45?(e.consume(k),w):k===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(k))}function D(k){return j(k)?X(e,H,"whitespace")(k):H(k)}function H(k){return k===124?T(k):k===null||F(k)?!a||i!==u?U(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):U(k)}function U(k){return n(k)}function S(k){return e.enter("tableRow"),V(k)}function V(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),V):k===null||F(k)?(e.exit("tableRow"),t(k)):j(k)?X(e,V,"whitespace")(k):(e.enter("data"),ee(k))}function ee(k){return k===null||k===124||J(k)?(e.exit("data"),V(k)):(e.consume(k),k===92?G:ee)}function G(k){return k===92||k===124?(e.consume(k),ee):ee(k)}}function a1(e,t){let n=-1,r=!0,i=0,u=[0,0,0,0],a=[0,0,0,0],o=!1,l=0,c,h,f;const E=new e1;for(;++nn[2]+1){const T=n[2]+1,I=n[3]-n[2]-1;e.add(T,I,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(u.end=Object.assign({},dt(t.events,i)),e.add(i,0,[["exit",u,t]]),u=void 0),u}function Zi(e,t,n,r,i){const u=[],a=dt(t.events,n);i&&(i.end=Object.assign({},a),u.push(["exit",i,t])),r.end=Object.assign({},a),u.push(["exit",r,t]),e.add(n+1,0,u)}function dt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const u1={name:"tasklistCheck",tokenize:o1};function s1(){return{text:{91:u1}}}function o1(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),u)}function u(l){return J(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return F(l)?t(l):j(l)?e.check({tokenize:l1},t,n)(l):n(l)}}function l1(e,t,n){return X(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function c1(e){return ya([Mp(),Vp(),Zp(e),r1(),s1()])}const h1={};function R1(e){const t=this,n=e||h1,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(c1(n)),u.push(Op()),a.push(wp(n))}const L1=["strong","summary","blockquote","details","table","tbody","thead","h1","h2","h3","h4","h5","h6","input","ul","li","div","pre","ul","ol","li","br","em","hr","td","th","tr","a","img","p","del","span","code","button","mark"],f1=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Alert}))),d1=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Avatar}))),m1=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Button}))),p1=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Byline}))),_1=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Checkbox}))),ct=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Heading}))),E1=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Img}))),g1=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Link}))),b1=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.SourceCodeEditor}))),ht=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Text}))),T1=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.ToggleDetails}))),an=te.lazy(()=>ke(()=>import("./index-BRRUuwsQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.View}))),un=e=>te.Children.map(e.children,t=>typeof t!="string"?t:null),ea=e=>{var t,n;return((n=(t=e==null?void 0:e.style)==null?void 0:t.textAlign)==null?void 0:n.replace(/\b(left|right)\b/,r=>r==="left"?"start":"end"))??"start"},O1={hr:({node:e,...t})=>z.jsx(an,{as:e==null?void 0:e.tagName,shadow:"topmost",borderWidth:"small",margin:"small none",padding:"none",borderColor:"primary",...t}),a:({node:e,...t})=>z.jsx(g1,{to:e.href,...t}),button:({node:e,...t})=>z.jsx(m1,{withBackground:!1,...t}),p:({node:e,...t})=>z.jsx(ht,{as:e.tagName,...t}),em:({node:e,...t})=>z.jsx(ht,{fontStyle:"italic",...t}),strong:({node:e,...t})=>z.jsx(ht,{weight:"bold",...t}),span:({node:e,...t})=>z.jsx(ht,{as:e.tagName,...t}),code:({node:e,...t})=>z.jsx(ht,{as:e.tagName,...t}),del:({node:e,...t})=>z.jsx(ht,{as:e.tagName,...t}),blockquote:({node:e,...t})=>{t={...t,children:un(t)};const n=/\[\!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/,r={NOTE:"info",TIP:"success",IMPORTANT:"info",WARNING:"warning",CAUTION:"error"},i=te.Children.toArray(t.children)[0];let u,a;ms.isValidElement(i)?[u,a]=i.props.children.split("--",2):[u,a]=i.toString().split("--",2);const o=u.match(n);return o?z.jsx(f1,{variant:r[o[1]],children:u.replace(`${o[0]}`,"")}):z.jsx(p1,{description:u,title:a,margin:"medium 0",...t,children:a?z.jsx(d1,{name:a}):z.jsx(z.Fragment,{})})},h1:({node:e,...t})=>z.jsx(ct,{margin:"none none medium",level:e.tagName,...t}),h2:({node:e,...t})=>z.jsx(ct,{margin:"small none",level:e.tagName,...t}),h3:({node:e,...t})=>z.jsx(ct,{margin:"small none",level:e.tagName,...t}),h4:({node:e,...t})=>z.jsx(ct,{level:e.tagName,...t}),h5:({node:e,...t})=>z.jsx(ct,{level:e.tagName,...t}),h6:({node:e,...t})=>z.jsx(ct,{as:"h6",...t}),img:({node:e,...t})=>z.jsx(E1,{src:e.src,...t}),div:({node:e,...t})=>z.jsx(an,{as:e.tagName,...t}),pre:({node:e,...t})=>{if(e.children.length===1&&e.children[0].tagName==="code"){let n=e.children[0].children[0].value;return n.endsWith(` +`))}function l(p,T,I,R){const y=I.enter("tableCell"),w=I.enter("phrasing"),D=I.containerPhrasing(p,{...R,before:u,after:u});return w(),y(),D}function c(p,T){return Um(p,{align:T,alignDelimiters:r,padding:n,stringLength:i})}function h(p,T,I){const R=p.children;let y=-1;const w=[],D=T.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const jp={tokenize:Jp,partial:!0};function Vp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gp,continuation:{tokenize:Kp},exit:$p}},text:{91:{name:"gfmFootnoteCall",tokenize:Qp},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Wp,resolveTo:Xp}}}}function Wp(e,t,n){const r=this;let i=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!a||!a._balanced)return n(l);const c=Le(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!u.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Xp(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",u,t],["enter",a,t],["exit",a,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Qp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,a;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(u>999||f===93&&!a||f===null||f===91||J(f))return n(f);if(f===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return i.includes(Le(r.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return J(f)||(a=!0),u++,e.consume(f),f===92?h:c}function h(f){return f===91||f===92||f===93?(e.consume(f),u++,c):c(f)}}function Gp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,a=0,o;return l;function l(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(T)}function h(T){if(a>999||T===93&&!o||T===null||T===91||J(T))return n(T);if(T===93){e.exit("chunkString");const I=e.exit("gfmFootnoteDefinitionLabelString");return u=Le(r.sliceSerialize(I)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return J(T)||(o=!0),a++,e.consume(T),T===92?f:h}function f(T){return T===91||T===92||T===93?(e.consume(T),a++,h):h(T)}function E(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),i.includes(u)||i.push(u),X(e,p,"gfmFootnoteDefinitionWhitespace")):n(T)}function p(T){return t(T)}}function Kp(e,t,n){return e.check(Vt,t,e.attempt(jp,t,n))}function $p(e){e.exit("gfmFootnoteDefinition")}function Jp(e,t,n){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",5);function i(u){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(u):n(u)}}function Zp(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,o){let l=-1;for(;++l1?l(T):(a.consume(T),f++,p);if(f<2&&!n)return l(T);const R=a.exit("strikethroughSequenceTemporary"),y=fn(T);return R._open=!y||y===2&&!!I,R._close=!I||I===2&&!!y,o(T)}}}class e1{constructor(){this.map=[]}add(t,n,r){t1(this,t,n,r)}consume(t){if(this.map.sort(function(u,a){return u[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function t1(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const re=r.events[M][1].type;if(re==="lineEnding"||re==="linePrefix")M--;else break}const B=M>-1?r.events[M][1].type:null,K=B==="tableHead"||B==="tableRow"?S:l;return K===S&&r.parser.lazy[r.now().line]?n(k):K(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),c(k)}function c(k){return k===124||(a=!0,u+=1),h(k)}function h(k){return k===null?n(k):F(k)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):n(k):j(k)?X(e,h,"whitespace")(k):(u+=1,a&&(a=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),a=!0,h):(e.enter("data"),f(k)))}function f(k){return k===null||k===124||J(k)?(e.exit("data"),h(k)):(e.consume(k),k===92?E:f)}function E(k){return k===92||k===124?(e.consume(k),f):f(k)}function p(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),a=!1,j(k)?X(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):T(k))}function T(k){return k===45||k===58?R(k):k===124?(a=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),I):U(k)}function I(k){return j(k)?X(e,R,"whitespace")(k):R(k)}function R(k){return k===58?(u+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),y):k===45?(u+=1,y(k)):k===null||F(k)?H(k):U(k)}function y(k){return k===45?(e.enter("tableDelimiterFiller"),w(k)):U(k)}function w(k){return k===45?(e.consume(k),w):k===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(k))}function D(k){return j(k)?X(e,H,"whitespace")(k):H(k)}function H(k){return k===124?T(k):k===null||F(k)?!a||i!==u?U(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):U(k)}function U(k){return n(k)}function S(k){return e.enter("tableRow"),V(k)}function V(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),V):k===null||F(k)?(e.exit("tableRow"),t(k)):j(k)?X(e,V,"whitespace")(k):(e.enter("data"),ee(k))}function ee(k){return k===null||k===124||J(k)?(e.exit("data"),V(k)):(e.consume(k),k===92?G:ee)}function G(k){return k===92||k===124?(e.consume(k),ee):ee(k)}}function a1(e,t){let n=-1,r=!0,i=0,u=[0,0,0,0],a=[0,0,0,0],o=!1,l=0,c,h,f;const E=new e1;for(;++nn[2]+1){const T=n[2]+1,I=n[3]-n[2]-1;e.add(T,I,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(u.end=Object.assign({},dt(t.events,i)),e.add(i,0,[["exit",u,t]]),u=void 0),u}function Zi(e,t,n,r,i){const u=[],a=dt(t.events,n);i&&(i.end=Object.assign({},a),u.push(["exit",i,t])),r.end=Object.assign({},a),u.push(["exit",r,t]),e.add(n+1,0,u)}function dt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const u1={name:"tasklistCheck",tokenize:o1};function s1(){return{text:{91:u1}}}function o1(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),u)}function u(l){return J(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return F(l)?t(l):j(l)?e.check({tokenize:l1},t,n)(l):n(l)}}function l1(e,t,n){return X(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function c1(e){return ya([Mp(),Vp(),Zp(e),r1(),s1()])}const h1={};function R1(e){const t=this,n=e||h1,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(c1(n)),u.push(Op()),a.push(wp(n))}const L1=["strong","summary","blockquote","details","table","tbody","thead","h1","h2","h3","h4","h5","h6","input","ul","li","div","pre","ul","ol","li","br","em","hr","td","th","tr","a","img","p","del","span","code","button","mark"],f1=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Alert}))),d1=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Avatar}))),m1=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Button}))),p1=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Byline}))),_1=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Checkbox}))),ct=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Heading}))),E1=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Img}))),g1=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Link}))),b1=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.SourceCodeEditor}))),ht=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Text}))),T1=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.ToggleDetails}))),an=te.lazy(()=>ke(()=>import("./index-CF_0tldh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.View}))),un=e=>te.Children.map(e.children,t=>typeof t!="string"?t:null),ea=e=>{var t,n;return((n=(t=e==null?void 0:e.style)==null?void 0:t.textAlign)==null?void 0:n.replace(/\b(left|right)\b/,r=>r==="left"?"start":"end"))??"start"},O1={hr:({node:e,...t})=>z.jsx(an,{as:e==null?void 0:e.tagName,shadow:"topmost",borderWidth:"small",margin:"small none",padding:"none",borderColor:"primary",...t}),a:({node:e,...t})=>z.jsx(g1,{to:e.href,...t}),button:({node:e,...t})=>z.jsx(m1,{withBackground:!1,...t}),p:({node:e,...t})=>z.jsx(ht,{as:e.tagName,...t}),em:({node:e,...t})=>z.jsx(ht,{fontStyle:"italic",...t}),strong:({node:e,...t})=>z.jsx(ht,{weight:"bold",...t}),span:({node:e,...t})=>z.jsx(ht,{as:e.tagName,...t}),code:({node:e,...t})=>z.jsx(ht,{as:e.tagName,...t}),del:({node:e,...t})=>z.jsx(ht,{as:e.tagName,...t}),blockquote:({node:e,...t})=>{t={...t,children:un(t)};const n=/\[\!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/,r={NOTE:"info",TIP:"success",IMPORTANT:"info",WARNING:"warning",CAUTION:"error"},i=te.Children.toArray(t.children)[0];let u,a;ms.isValidElement(i)?[u,a]=i.props.children.split("--",2):[u,a]=i.toString().split("--",2);const o=u.match(n);return o?z.jsx(f1,{variant:r[o[1]],children:u.replace(`${o[0]}`,"")}):z.jsx(p1,{description:u,title:a,margin:"medium 0",...t,children:a?z.jsx(d1,{name:a}):z.jsx(z.Fragment,{})})},h1:({node:e,...t})=>z.jsx(ct,{margin:"none none medium",level:e.tagName,...t}),h2:({node:e,...t})=>z.jsx(ct,{margin:"small none",level:e.tagName,...t}),h3:({node:e,...t})=>z.jsx(ct,{margin:"small none",level:e.tagName,...t}),h4:({node:e,...t})=>z.jsx(ct,{level:e.tagName,...t}),h5:({node:e,...t})=>z.jsx(ct,{level:e.tagName,...t}),h6:({node:e,...t})=>z.jsx(ct,{as:"h6",...t}),img:({node:e,...t})=>z.jsx(E1,{src:e.src,...t}),div:({node:e,...t})=>z.jsx(an,{as:e.tagName,...t}),pre:({node:e,...t})=>{if(e.children.length===1&&e.children[0].tagName==="code"){let n=e.children[0].children[0].value;return n.endsWith(` `)&&(n=n.slice(0,-1)),z.jsx(b1,{label:"Code",lineNumbers:!0,foldGutter:!0,editable:!0,readOnly:!0,defaultValue:n})}return z.jsx(an,{as:e.tagName,...t})},ul:({node:e,...t})=>{t={...t,children:un(t)};const{children:n,...r}=t,i=(r==null?void 0:r.className)==="contains-task-list"||!1;return z.jsx(Nt,{isUnstyled:i,...r,children:te.Children.map(n,u=>{const{children:a,...o}=u.props;if(i&&a){let l=!1;return z.jsx(Nt.Item,{margin:"0 0 small small",...o,children:te.Children.map(a,c=>{var h,f,E;if(((h=c==null?void 0:c.props)==null?void 0:h.type)==="checkbox"&&(l=((f=c==null?void 0:c.props)==null?void 0:f.checked)??!1),((E=c==null?void 0:c.props)==null?void 0:E.type)!=="checkbox"&&c!==" "&&c!=="[ ]"&&c!=="[X]")return z.jsx(_1,{label:c,disabled:!0,defaultChecked:l})})},u.key)}return z.jsx(Nt.Item,{...u.props},u.key)})})},ol:({node:e,...t})=>{t={...t,children:un(t)};const{children:n,...r}=t;return z.jsx(Nt,{as:e.tagName,...r,children:te.Children.map(n,i=>z.jsx(Nt.Item,{...i.props},i.key))})},input:({node:e,...t})=>z.jsx(e.tagName,{...t}),details:({node:e,...t})=>{t={...t,children:un(t)};const n=t.children.shift();return z.jsx(T1,{summary:n,children:z.jsx(an,{display:"block",padding:"small",...t})})},table:({node:e,...t})=>{const{children:n,...r}=t;return z.jsx($e,{margin:"medium none",hover:!0,caption:"",...r,children:te.Children.map(n,i=>{const{children:u,...a}=i.props;return i.type==="thead"?z.jsx($e.Head,{...a,children:te.Children.map(u,o=>{const{children:l,...c}=o.props;return z.jsx($e.Row,{...c,children:te.Children.map(l,h=>z.jsx($e.ColHeader,{id:h.key,textAlign:ea(h.props),...h.props},h.key))})})}):z.jsx($e.Body,{...a,children:te.Children.map(u,o=>{const{children:l,...c}=o.props;return z.jsx($e.Row,{...c,children:te.Children.map(l,h=>z.jsx($e.Cell,{textAlign:ea(h.props),...h.props}))})})})})})}};export{Nt as L,N1 as M,S1 as a,x1 as b,L1 as c,O1 as d,sa as e,R1 as r}; diff --git a/assets/RenderTopNavBar-BjY6S8Vl.js b/assets/RenderTopNavBar-m0KU5Oph.js similarity index 99% rename from assets/RenderTopNavBar-BjY6S8Vl.js rename to assets/RenderTopNavBar-m0KU5Oph.js index 00ec4b0..46e50e1 100644 --- a/assets/RenderTopNavBar-BjY6S8Vl.js +++ b/assets/RenderTopNavBar-m0KU5Oph.js @@ -1,4 +1,4 @@ -import{R as b,v as bn,z as A,A as ee,B as Pe,C as Ie,D as gn,m as R,r as w,P as a,w as M,h as q,q as xe,i as h,p as ae,l as so,f as F,E as xt,F as Zs,s as ve,t as D,G as Yr,T as oe,V as z,o as U,S as E,H as Zr,I as Yn,J as Qs,K as Js,j as $,M as vo,N as ea}from"./index-Co1on5ja.js";function W(o,e={}){return typeof o=="function"?o.prototype&&o.prototype.isReactComponent?b.createElement(o,e):o(e):o}function vn(o){if(Array.isArray(o)){const e=o.slice(0);for(let t=0;t{if(e==null)return!1;const n=ta(o,e);return n.length===1||t===n[0]}).reduce((e,t)=>{if(typeof t!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return e===null?t:function(...i){e.apply(this,i),t.apply(this,i)}},null)}function ta(o,e){const t=[];return o.forEach((n,i)=>{n===e&&t.push(i)}),t}function Qr(o){const e=`${o}`,t=e.match(/[\d.\-\+]*\s*(.*)/);return[parseFloat(e),t&&t.length>0?t[1]:""]}function na(o){if(!o||typeof o=="number")return o;const e=Qr(o),t=bn(e,2),n=t[0],i=t[1];return i==="ms"?n:i==="s"?n*1e3:n}function we(o,e,t,n){const i=o===window||o===document?o:A(o);return i==null||i.addEventListener(e,t,n),{remove(){i==null||i.removeEventListener(e,t,n)}}}function oa(o,e){const t=o&&A(o),n=e&&A(e);return!t||!n?!1:!(t instanceof Window)&&!(n instanceof Window)?t.contains(n):Jr(t,n)}function Jr(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentNode}return!1}const tn=ee?oa:Jr;function j(o){const e={top:0,bottom:0,left:0,right:0,height:0,width:0};if(!ee)return e;const t=o&&A(o);if(!t)return e;if(t===window)return{left:window.pageXOffset,top:window.pageYOffset,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth+window.pageXOffset,bottom:window.innerHeight+window.pageYOffset};const n=o===document?document:Pe(t),i=n&&n.documentElement;if(!i||!tn(i,t))return e;const r=t.getBoundingClientRect();let s;for(s in e)e[s]=r[s];if(n!==document&&n.defaultView){const l=n.defaultView.frameElement;if(l){const d=j(l);e.top+=d.top,e.bottom+=d.top,e.left+=d.left,e.right+=d.left}}return{top:e.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||0),left:e.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(e.width==null?t.offsetWidth:e.width)||0,height:(e.height==null?t.offsetHeight:e.height)||0,right:n.body.clientWidth-e.width-e.left,bottom:n.body.clientHeight-e.height-e.top}}const qe=function(){let o;if(ee&&window.requestAnimationFrame&&window.cancelAnimationFrame)o=e=>{const t=window.requestAnimationFrame(e);return{cancel:()=>window.cancelAnimationFrame(t)}};else{let e=new Date().getTime();o=t=>{const n=new Date().getTime(),i=Math.max(0,16-(n-e)),r=setTimeout(t,i);return e=n,{cancel:()=>clearTimeout(r)}}}return o}();function ia(o,e){const t=A(o),n=[];let i=j(t)||{},r=!1;function s(){if(!r){const l=j(t)||{};(l.top!==i.top||l.left!==i.left||l.right!==i.right||l.bottom!==i.bottom||l.width!==i.width||l.height!==i.height)&&typeof e=="function"&&e(l),i=l,n.push(qe(s))}}return s(),{remove(){r=!0,n.forEach(l=>l.cancel())}}}function ra(o){return!!(o.tagName.includes("-")&&customElements.get(o.tagName.toLowerCase()))}function en(o){const e=(o||document).activeElement;return e&&ra(e)?e.shadowRoot.activeElement:e}function Ot(o){const e=o&&A(o),t=en();return!!e&&(t===e||tn(e,t))}const mo=["a[href]","frame","iframe","object","input:not([type=hidden])","select","textarea","button","*[tabindex]",'[contenteditable="true"]'].join(",");function ao(o,e,t){const n=o&&A(o);if(!n||typeof n.querySelectorAll!="function")return[];let i=Array.from(n.querySelectorAll(mo));return t&&n.matches(mo)&&(i=[...i,n]),i.filter(r=>typeof e=="function"?e(r)&&bo(r):bo(r))}function sa(o){return Ie(o).display==="none"}function aa(o){var e,t;const n=["fixed","absolute"];return!!(n.includes((e=o.style.position)===null||e===void 0?void 0:e.toLowerCase())||n.includes((t=Ie(o).getPropertyValue("position"))===null||t===void 0?void 0:t.toLowerCase()))}function la(o){let e=o;for(;e&&!(e===document.body||e instanceof ShadowRoot);){if(sa(e))return!1;if(aa(e))break;e=e.parentNode}return!0}function bo(o){return!o.disabled&&la(o)}function lo(o,e){return ao(o,t=>!da(t.getAttribute("tabindex")),e)}function da(o){return!isNaN(o)&&o<0}const ca={toArray:()=>[],contains:()=>!1,add:()=>{},remove:()=>{}};function yo(o){const e=A(o);if(!e)return ca;const t={toArray(){return[...e.classList]},contains:()=>!1,add:()=>{},remove:()=>{}};return t.add=n=>e.classList.add(n),t.remove=n=>e.classList.remove(n),t.contains=n=>e.classList.contains(n),t}const _o=new WeakMap;function wo(o,e=!1){var t;if(!ee)return 16;const n=o||((t=Pe(o))===null||t===void 0?void 0:t.documentElement),i=_o.get(n);if(!e&&i)return i;const r=parseInt(Ie(n).getPropertyValue("font-size"));return _o.set(n,r),r}function ua(o){const e=[];if(!ee)return e;const t=o&&A(o);if(t){let n=t;for(;(n=n.parentNode)&&n&&n.nodeType===1&&n.tagName!=="BODY";){const i=Ie(n),r=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("-moz-transform")||i.getPropertyValue("-ms-transform")||i.getPropertyValue("-o-transform")||i.getPropertyValue("transform")||"none",s=r==="none"||r==="matrix(1, 0, 0, 1, 0, 0)";(i.position!=="static"||!s)&&e.push(n)}e.push(Pe(t).body)}return e}function es(o){const e=[];if(!ee)return e;const t=o&&A(o);if(t){const i=(Ie(t)||{}).position;if(i==="fixed")return[t.ownerDocument];let r=t;for(;r&&r.nodeType===1&&(r=r.parentNode);){let l;try{l=Ie(r)}catch{}if(typeof l>"u"||l===null)return e.push(r),e;const d=l,c=d.overflow,u=d.overflowX,p=d.overflowY;/(auto|scroll|overlay)/.test(c+p+u)&&(i!=="absolute"||["relative","absolute","fixed"].indexOf(l.position)>=0)&&e.push(r)}const s=t.ownerDocument;s&&(e.push(s.body),s!==document&&e.push(s.defaultView))}return e}function So(o,e){const t=e.currentTarget,n=e.relatedTarget;(!n||n!==t&&!tn(t,n))&&o(e)}function mn(o){const e=o&&A(o);return e?en()===e:!1}function Jn(o,e=!0){const t=o&&A(o);if(t===window||t===document||t===document.body)return!0;const n=t.parentNode;if(t.nodeType===3)return Jn(n,e);const i=t?Ie(t):{};if(i.display==="none"||i.visibility==="hidden"||i.opacity==="0")return!1;if(i.overflow==="hidden"&&i.position==="absolute"&&i.clip!=="auto"){const r=i.clip.substring(5).slice(0,-1).split(", ");let s=!0;if(r.forEach(l=>{l!=="0px"&&(s=!1)}),s)return!1}return e&&n?Jn(n):!0}function pa(o,e){const t=A(e)||document;if(ee){const n=gn(t);return n&&n.matchMedia(o)}return null}function J(o,e){if(!o||typeof o=="number")return o;const t=Qr(o),n=bn(t,2),i=n[0],r=n[1];if(r==="rem")return i*wo();if(r==="em"){const s=ee?document.body:null;return i*wo(e||s)}else return i}const ha=Object.prototype.hasOwnProperty;function Dn(o,e){if(Co(o,e))return!0;if(typeof o!="object"||o===null||typeof e!="object"||e===null)return!1;const t=Object.keys(o),n=Object.keys(e);if(t.length!==n.length)return!1;for(let i=0;i{d.indexOf("on")===0&&(typeof e[d]=="function"||typeof o.props[d]=="function")&&(l[d]=L(o.props[d],e[d]))}),i==null||n==null?b.cloneElement(o,l,...t):(R(r,`Cloning an element with a ref that will be overwritten because the ref is not a function. Use a composable callback-style ref instead. Ignoring ref: ${i}`),b.cloneElement(o,{...l,ref(d){s?n(d):n.current=d,i(d)}},...t))}function Ge(o,e={}){const t=w.Children.count(o);return t===0?null:typeof o=="string"&&o.length>0||t>1?b.createElement("span",e,o):ne(Array.isArray(o)?o[0]:o,e)}const fa=()=>o=>o;function Io(o){return typeof o=="string"?o:o.displayName||o.name}function ts({props:o={},interactionTypes:e=["disabled","readonly"]}={}){const t=o.interaction,n=o.disabled,i=o.readOnly;return t||(e.includes("disabled")&&n?"disabled":e.includes("readonly")&&i?"readonly":"enabled")}function X(o,e=[]){return o&&o.type?e.map(n=>Io(n)).indexOf(Io(o.type))>=0:!1}function ko(o){return function(e,t,n,i="",r=""){const s=e[t];return s===null||typeof s>"u"?new Error(`The prop \`${t}\` is marked as required in \`${n}\`, but its value is \`${s}\``):o(e,t,n,i,r)}}const K={oneOf(o){function e(t,n,i){const r=b.Children.toArray(t[n]),s=o.map(l=>l&&et(l));for(let l=0;l{const c=et(d);return r[c]=0,c});for(let d=0;d{r[d]>1&&l.push(`${r[d]} children of type ${d}`),r[d]===0&&l.push(`0 children of type ${d}`)}),l.length>0?new Error(`Expected exactly one of each ${s.join(", ")} in ${n} but found:${l.join(` +import{R as b,v as bn,z as A,A as ee,B as Pe,C as Ie,D as gn,m as R,r as w,P as a,w as M,h as q,q as xe,i as h,p as ae,l as so,f as F,E as xt,F as Zs,s as ve,t as D,G as Yr,T as oe,V as z,o as U,S as E,H as Zr,I as Yn,J as Qs,K as Js,j as $,M as vo,N as ea}from"./index-mQ6522B8.js";function W(o,e={}){return typeof o=="function"?o.prototype&&o.prototype.isReactComponent?b.createElement(o,e):o(e):o}function vn(o){if(Array.isArray(o)){const e=o.slice(0);for(let t=0;t{if(e==null)return!1;const n=ta(o,e);return n.length===1||t===n[0]}).reduce((e,t)=>{if(typeof t!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return e===null?t:function(...i){e.apply(this,i),t.apply(this,i)}},null)}function ta(o,e){const t=[];return o.forEach((n,i)=>{n===e&&t.push(i)}),t}function Qr(o){const e=`${o}`,t=e.match(/[\d.\-\+]*\s*(.*)/);return[parseFloat(e),t&&t.length>0?t[1]:""]}function na(o){if(!o||typeof o=="number")return o;const e=Qr(o),t=bn(e,2),n=t[0],i=t[1];return i==="ms"?n:i==="s"?n*1e3:n}function we(o,e,t,n){const i=o===window||o===document?o:A(o);return i==null||i.addEventListener(e,t,n),{remove(){i==null||i.removeEventListener(e,t,n)}}}function oa(o,e){const t=o&&A(o),n=e&&A(e);return!t||!n?!1:!(t instanceof Window)&&!(n instanceof Window)?t.contains(n):Jr(t,n)}function Jr(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentNode}return!1}const tn=ee?oa:Jr;function j(o){const e={top:0,bottom:0,left:0,right:0,height:0,width:0};if(!ee)return e;const t=o&&A(o);if(!t)return e;if(t===window)return{left:window.pageXOffset,top:window.pageYOffset,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth+window.pageXOffset,bottom:window.innerHeight+window.pageYOffset};const n=o===document?document:Pe(t),i=n&&n.documentElement;if(!i||!tn(i,t))return e;const r=t.getBoundingClientRect();let s;for(s in e)e[s]=r[s];if(n!==document&&n.defaultView){const l=n.defaultView.frameElement;if(l){const d=j(l);e.top+=d.top,e.bottom+=d.top,e.left+=d.left,e.right+=d.left}}return{top:e.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||0),left:e.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(e.width==null?t.offsetWidth:e.width)||0,height:(e.height==null?t.offsetHeight:e.height)||0,right:n.body.clientWidth-e.width-e.left,bottom:n.body.clientHeight-e.height-e.top}}const qe=function(){let o;if(ee&&window.requestAnimationFrame&&window.cancelAnimationFrame)o=e=>{const t=window.requestAnimationFrame(e);return{cancel:()=>window.cancelAnimationFrame(t)}};else{let e=new Date().getTime();o=t=>{const n=new Date().getTime(),i=Math.max(0,16-(n-e)),r=setTimeout(t,i);return e=n,{cancel:()=>clearTimeout(r)}}}return o}();function ia(o,e){const t=A(o),n=[];let i=j(t)||{},r=!1;function s(){if(!r){const l=j(t)||{};(l.top!==i.top||l.left!==i.left||l.right!==i.right||l.bottom!==i.bottom||l.width!==i.width||l.height!==i.height)&&typeof e=="function"&&e(l),i=l,n.push(qe(s))}}return s(),{remove(){r=!0,n.forEach(l=>l.cancel())}}}function ra(o){return!!(o.tagName.includes("-")&&customElements.get(o.tagName.toLowerCase()))}function en(o){const e=(o||document).activeElement;return e&&ra(e)?e.shadowRoot.activeElement:e}function Ot(o){const e=o&&A(o),t=en();return!!e&&(t===e||tn(e,t))}const mo=["a[href]","frame","iframe","object","input:not([type=hidden])","select","textarea","button","*[tabindex]",'[contenteditable="true"]'].join(",");function ao(o,e,t){const n=o&&A(o);if(!n||typeof n.querySelectorAll!="function")return[];let i=Array.from(n.querySelectorAll(mo));return t&&n.matches(mo)&&(i=[...i,n]),i.filter(r=>typeof e=="function"?e(r)&&bo(r):bo(r))}function sa(o){return Ie(o).display==="none"}function aa(o){var e,t;const n=["fixed","absolute"];return!!(n.includes((e=o.style.position)===null||e===void 0?void 0:e.toLowerCase())||n.includes((t=Ie(o).getPropertyValue("position"))===null||t===void 0?void 0:t.toLowerCase()))}function la(o){let e=o;for(;e&&!(e===document.body||e instanceof ShadowRoot);){if(sa(e))return!1;if(aa(e))break;e=e.parentNode}return!0}function bo(o){return!o.disabled&&la(o)}function lo(o,e){return ao(o,t=>!da(t.getAttribute("tabindex")),e)}function da(o){return!isNaN(o)&&o<0}const ca={toArray:()=>[],contains:()=>!1,add:()=>{},remove:()=>{}};function yo(o){const e=A(o);if(!e)return ca;const t={toArray(){return[...e.classList]},contains:()=>!1,add:()=>{},remove:()=>{}};return t.add=n=>e.classList.add(n),t.remove=n=>e.classList.remove(n),t.contains=n=>e.classList.contains(n),t}const _o=new WeakMap;function wo(o,e=!1){var t;if(!ee)return 16;const n=o||((t=Pe(o))===null||t===void 0?void 0:t.documentElement),i=_o.get(n);if(!e&&i)return i;const r=parseInt(Ie(n).getPropertyValue("font-size"));return _o.set(n,r),r}function ua(o){const e=[];if(!ee)return e;const t=o&&A(o);if(t){let n=t;for(;(n=n.parentNode)&&n&&n.nodeType===1&&n.tagName!=="BODY";){const i=Ie(n),r=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("-moz-transform")||i.getPropertyValue("-ms-transform")||i.getPropertyValue("-o-transform")||i.getPropertyValue("transform")||"none",s=r==="none"||r==="matrix(1, 0, 0, 1, 0, 0)";(i.position!=="static"||!s)&&e.push(n)}e.push(Pe(t).body)}return e}function es(o){const e=[];if(!ee)return e;const t=o&&A(o);if(t){const i=(Ie(t)||{}).position;if(i==="fixed")return[t.ownerDocument];let r=t;for(;r&&r.nodeType===1&&(r=r.parentNode);){let l;try{l=Ie(r)}catch{}if(typeof l>"u"||l===null)return e.push(r),e;const d=l,c=d.overflow,u=d.overflowX,p=d.overflowY;/(auto|scroll|overlay)/.test(c+p+u)&&(i!=="absolute"||["relative","absolute","fixed"].indexOf(l.position)>=0)&&e.push(r)}const s=t.ownerDocument;s&&(e.push(s.body),s!==document&&e.push(s.defaultView))}return e}function So(o,e){const t=e.currentTarget,n=e.relatedTarget;(!n||n!==t&&!tn(t,n))&&o(e)}function mn(o){const e=o&&A(o);return e?en()===e:!1}function Jn(o,e=!0){const t=o&&A(o);if(t===window||t===document||t===document.body)return!0;const n=t.parentNode;if(t.nodeType===3)return Jn(n,e);const i=t?Ie(t):{};if(i.display==="none"||i.visibility==="hidden"||i.opacity==="0")return!1;if(i.overflow==="hidden"&&i.position==="absolute"&&i.clip!=="auto"){const r=i.clip.substring(5).slice(0,-1).split(", ");let s=!0;if(r.forEach(l=>{l!=="0px"&&(s=!1)}),s)return!1}return e&&n?Jn(n):!0}function pa(o,e){const t=A(e)||document;if(ee){const n=gn(t);return n&&n.matchMedia(o)}return null}function J(o,e){if(!o||typeof o=="number")return o;const t=Qr(o),n=bn(t,2),i=n[0],r=n[1];if(r==="rem")return i*wo();if(r==="em"){const s=ee?document.body:null;return i*wo(e||s)}else return i}const ha=Object.prototype.hasOwnProperty;function Dn(o,e){if(Co(o,e))return!0;if(typeof o!="object"||o===null||typeof e!="object"||e===null)return!1;const t=Object.keys(o),n=Object.keys(e);if(t.length!==n.length)return!1;for(let i=0;i{d.indexOf("on")===0&&(typeof e[d]=="function"||typeof o.props[d]=="function")&&(l[d]=L(o.props[d],e[d]))}),i==null||n==null?b.cloneElement(o,l,...t):(R(r,`Cloning an element with a ref that will be overwritten because the ref is not a function. Use a composable callback-style ref instead. Ignoring ref: ${i}`),b.cloneElement(o,{...l,ref(d){s?n(d):n.current=d,i(d)}},...t))}function Ge(o,e={}){const t=w.Children.count(o);return t===0?null:typeof o=="string"&&o.length>0||t>1?b.createElement("span",e,o):ne(Array.isArray(o)?o[0]:o,e)}const fa=()=>o=>o;function Io(o){return typeof o=="string"?o:o.displayName||o.name}function ts({props:o={},interactionTypes:e=["disabled","readonly"]}={}){const t=o.interaction,n=o.disabled,i=o.readOnly;return t||(e.includes("disabled")&&n?"disabled":e.includes("readonly")&&i?"readonly":"enabled")}function X(o,e=[]){return o&&o.type?e.map(n=>Io(n)).indexOf(Io(o.type))>=0:!1}function ko(o){return function(e,t,n,i="",r=""){const s=e[t];return s===null||typeof s>"u"?new Error(`The prop \`${t}\` is marked as required in \`${n}\`, but its value is \`${s}\``):o(e,t,n,i,r)}}const K={oneOf(o){function e(t,n,i){const r=b.Children.toArray(t[n]),s=o.map(l=>l&&et(l));for(let l=0;l{const c=et(d);return r[c]=0,c});for(let d=0;d{r[d]>1&&l.push(`${r[d]} children of type ${d}`),r[d]===0&&l.push(`0 children of type ${d}`)}),l.length>0?new Error(`Expected exactly one of each ${s.join(", ")} in ${n} but found:${l.join(` `)}`):null}},enforceOrder(...o){function e(r,s){for(let l=0;ln(r,l)).join(` `)}function n(r,s){const l=s.map(d=>d?et(d):"??").map(d=>` <${d} />`).join(` diff --git a/assets/error-LDYVdH-U.js b/assets/error-BPtHapzG.js similarity index 92% rename from assets/error-LDYVdH-U.js rename to assets/error-BPtHapzG.js index 13896f9..2d8b018 100644 --- a/assets/error-LDYVdH-U.js +++ b/assets/error-BPtHapzG.js @@ -1 +1 @@ -import{a as _,x as w,y as R,j as s,V as j}from"./index-Co1on5ja.js";import{c as f,a as y,g as k,L as N,T as E,R as b,b as B}from"./RenderTopNavBar-BjY6S8Vl.js";import{B as T}from"./index-Dh55QiP4.js";const L={awkward:{EN:"Well, this is awkward.",ES_LA:"Esto es incómodo.",PT_BR:"Isso é constrangedor.",DE:"Das ist peinlich."},not_your_fault:{EN:"I'm not sure what happened, but I'm pretty sure it's not your fault.",ES_LA:"No estoy seguro de qué pasó, pero estoy bastante seguro de que no es tu culpa.",PT_BR:"Não tenho certeza do que aconteceu, mas tenho certeza de que não é sua culpa.",DE:"Ich bin mir nicht sicher, was passiert ist, aber ich bin mir ziemlich sicher, dass es nicht deine Schuld ist."},uhm:{EN:"Uhm...",ES_LA:"Ehm...",PT_BR:"Hã...",DE:"Ähm..."},class_dismissed:{EN:"class dismissed",ES_LA:"clase despedida",PT_BR:"classe dispensada",DE:"Klasse entlassen"},unknown_error:{EN:"An unknown error occurred.",ES_LA:"Ocurrió un error desconocido.",PT_BR:"Ocorreu um erro desconhecido.",DE:"Ein unbekannter Fehler ist aufgetreten."}};function x(){const e=f.c(24),a=_().language;let g,r;e[0]!==a?(r=y(a),g=k(L,r),e[0]=a,e[1]=g,e[2]=r):(g=e[1],r=e[2]);const t=g,i=w();let n;R(i)?n=`${i.status} ${i.statusText}`:i instanceof Error?n=i.message:typeof i=="string"?n=i:(console.error(i),n=t.unknown_error);let o;e[3]!==r?(o=s.jsx(b,{language:r}),e[3]=r,e[4]=o):o=e[4];let l;e[5]!==n?(l=s.jsx(E,{as:"p",children:s.jsx("i",{children:n})}),e[5]=n,e[6]=l):l=e[6];let d;e[7]!==t.class_dismissed?(d=s.jsx(N,{href:"./#/",children:t.class_dismissed}),e[7]=t.class_dismissed,e[8]=d):d=e[8];let c;e[9]!==t.uhm||e[10]!==d?(c=s.jsxs(E,{as:"p",children:[t.uhm," ",d,"."]}),e[9]=t.uhm,e[10]=d,e[11]=c):c=e[11];let u;e[12]!==l||e[13]!==c?(u=s.jsxs(s.Fragment,{children:[l,c]}),e[12]=l,e[13]=c,e[14]=u):u=e[14];let m;e[15]!==t.awkward||e[16]!==u?(m=s.jsx(j,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:s.jsx(T,{size:"medium",heading:t.awkward,headingAs:"h1",message:u})}),e[15]=t.awkward,e[16]=u,e[17]=m):m=e[17];let h;e[18]!==r?(h=s.jsx(B,{language:r}),e[18]=r,e[19]=h):h=e[19];let p;return e[20]!==o||e[21]!==m||e[22]!==h?(p=s.jsxs(s.Fragment,{children:[o,m,h]}),e[20]=o,e[21]=m,e[22]=h,e[23]=p):p=e[23],p}x.displayName="Route.Error";function S(){const e=f.c(1);let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(x,{}),e[0]=a):a=e[0],a}S.displayName="Error.ErrorPage";export{x as Component,S as ErrorBoundary}; +import{a as _,x as w,y as R,j as s,V as j}from"./index-mQ6522B8.js";import{c as f,a as y,g as k,L as N,T as E,R as b,b as B}from"./RenderTopNavBar-m0KU5Oph.js";import{B as T}from"./index-DoB2bFAj.js";const L={awkward:{EN:"Well, this is awkward.",ES_LA:"Esto es incómodo.",PT_BR:"Isso é constrangedor.",DE:"Das ist peinlich."},not_your_fault:{EN:"I'm not sure what happened, but I'm pretty sure it's not your fault.",ES_LA:"No estoy seguro de qué pasó, pero estoy bastante seguro de que no es tu culpa.",PT_BR:"Não tenho certeza do que aconteceu, mas tenho certeza de que não é sua culpa.",DE:"Ich bin mir nicht sicher, was passiert ist, aber ich bin mir ziemlich sicher, dass es nicht deine Schuld ist."},uhm:{EN:"Uhm...",ES_LA:"Ehm...",PT_BR:"Hã...",DE:"Ähm..."},class_dismissed:{EN:"class dismissed",ES_LA:"clase despedida",PT_BR:"classe dispensada",DE:"Klasse entlassen"},unknown_error:{EN:"An unknown error occurred.",ES_LA:"Ocurrió un error desconocido.",PT_BR:"Ocorreu um erro desconhecido.",DE:"Ein unbekannter Fehler ist aufgetreten."}};function x(){const e=f.c(24),a=_().language;let g,r;e[0]!==a?(r=y(a),g=k(L,r),e[0]=a,e[1]=g,e[2]=r):(g=e[1],r=e[2]);const t=g,i=w();let n;R(i)?n=`${i.status} ${i.statusText}`:i instanceof Error?n=i.message:typeof i=="string"?n=i:(console.error(i),n=t.unknown_error);let o;e[3]!==r?(o=s.jsx(b,{language:r}),e[3]=r,e[4]=o):o=e[4];let l;e[5]!==n?(l=s.jsx(E,{as:"p",children:s.jsx("i",{children:n})}),e[5]=n,e[6]=l):l=e[6];let d;e[7]!==t.class_dismissed?(d=s.jsx(N,{href:"./#/",children:t.class_dismissed}),e[7]=t.class_dismissed,e[8]=d):d=e[8];let c;e[9]!==t.uhm||e[10]!==d?(c=s.jsxs(E,{as:"p",children:[t.uhm," ",d,"."]}),e[9]=t.uhm,e[10]=d,e[11]=c):c=e[11];let u;e[12]!==l||e[13]!==c?(u=s.jsxs(s.Fragment,{children:[l,c]}),e[12]=l,e[13]=c,e[14]=u):u=e[14];let m;e[15]!==t.awkward||e[16]!==u?(m=s.jsx(j,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:s.jsx(T,{size:"medium",heading:t.awkward,headingAs:"h1",message:u})}),e[15]=t.awkward,e[16]=u,e[17]=m):m=e[17];let h;e[18]!==r?(h=s.jsx(B,{language:r}),e[18]=r,e[19]=h):h=e[19];let p;return e[20]!==o||e[21]!==m||e[22]!==h?(p=s.jsxs(s.Fragment,{children:[o,m,h]}),e[20]=o,e[21]=m,e[22]=h,e[23]=p):p=e[23],p}x.displayName="Route.Error";function S(){const e=f.c(1);let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(x,{}),e[0]=a):a=e[0],a}S.displayName="Error.ErrorPage";export{x as Component,S as ErrorBoundary}; diff --git a/assets/index-DUk1PrHv.js b/assets/index-Bj11N7g7.js similarity index 99% rename from assets/index-DUk1PrHv.js rename to assets/index-Bj11N7g7.js index ec342d9..297e779 100644 --- a/assets/index-DUk1PrHv.js +++ b/assets/index-Bj11N7g7.js @@ -1,2 +1,2 @@ -import{k as Jt,l as Qt,r as v,R as H,S as F,P as s,w as M,m as Mt,o as L,i as m,h as B,n as Ve,q as zt,s as ii,f as eo,t as Oi,p as Je,V as G,v as Qe,T as io}from"./index-Co1on5ja.js";import{C as ke,S as Ce,m as P,s as Ne,h as Et,i as to,j as oo,k as We,l as Bt,n as ie,P as Re,O as ye,o as Hi,p as Mi,q as so,r as no}from"./RenderTopNavBar-BjY6S8Vl.js";var di={exports:{}};(function(n,e){(function(i,t){var o="1.0.38",r="",p="?",u="function",f="undefined",g="object",b="string",O="major",l="model",d="name",a="type",c="vendor",h="version",A="architecture",z="console",y="mobile",w="tablet",S="smarttv",R="wearable",W="embedded",Se=500,Oe="Amazon",se="Apple",He="ASUS",Me="BlackBerry",X="Browser",De="Chrome",Zt="Edge",Te="Firefox",qe="Google",$i="Huawei",ti="LG",oi="Microsoft",xi="Motorola",ze="Opera",Ge="Samsung",Ri="Sharp",je="Sony",si="Xiaomi",ni="Zebra",ki="Facebook",Ci="Chromium OS",Ii="Mac OS",Yt=function(x,C){var $={};for(var I in x)C[I]&&C[I].length%2===0?$[I]=C[I].concat(x[I]):$[I]=x[I];return $},Ue=function(x){for(var C={},$=0;$0?k.length===2?typeof k[1]==u?this[k[0]]=k[1].call(this,U):this[k[0]]=k[1]:k.length===3?typeof k[1]===u&&!(k[1].exec&&k[1].test)?this[k[0]]=U?k[1].call(this,U,k[2]):t:this[k[0]]=U?U.replace(k[1],k[2]):t:k.length===4&&(this[k[0]]=U?k[3].call(this,U.replace(k[1],k[2])):t):this[k]=U||t;$+=2}},li=function(x,C){for(var $ in C)if(typeof C[$]===g&&C[$].length>0){for(var I=0;I2&&(_[l]="iPad",_[a]=w),_},this.getEngine=function(){var _={};return _[d]=t,_[h]=t,Be.call(_,I,j.engine),_},this.getOS=function(){var _={};return _[d]=t,_[h]=t,Be.call(_,I,j.os),k&&!_[d]&&K&&K.platform&&K.platform!="Unknown"&&(_[d]=K.platform.replace(/chrome os/i,Ci).replace(/macos/i,Ii)),_},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return I},this.setUA=function(_){return I=typeof _===b&&_.length>Se?ri(_,Se):_,this},this.setUA(I),this};N.VERSION=o,N.BROWSER=Ue([d,h,O]),N.CPU=Ue([A]),N.DEVICE=Ue([l,c,a,z,y,S,w,R,W]),N.ENGINE=N.OS=Ue([d,h]),n.exports&&(e=n.exports=N),e.UAParser=N;var _e=typeof i!==f&&(i.jQuery||i.Zepto);if(_e&&!_e.ua){var Ze=new N;_e.ua=Ze.getResult(),_e.ua.get=function(){return Ze.getUA()},_e.ua.set=function(x){Ze.setUA(x);var C=Ze.getResult();for(var $ in C)_e.ua[$]=C[$]}}})(typeof window=="object"?window:Jt)})(di,di.exports);var ro=di.exports;const lo=Qt(ro),ao=()=>new lo().getResult().browser,po=()=>ao().name==="Safari";var zi;class Ie extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconArrowOpenDown",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),zi||(zi=H.createElement("path",{d:"m.153 526.146 92.168-92.299 867.767 867.636 867.636-867.636 92.429 92.299-960.065 959.935z",fillRule:"evenodd"})))}}Ie.glyphName="arrow-open-down";Ie.variant="Line";Ie.displayName="IconArrowOpenDownLine";Ie.propTypes={...F.propTypes};Ie.allowedProps=[...F.allowedProps];var Ei;class Ae extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconArrowOpenUp",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Ei||(Ei=H.createElement("path",{d:"m.153 1393.854 92.168 92.299 867.767-867.636 867.636 867.636 92.429-92.299L960.088 433.92z",fillRule:"evenodd"})))}}Ae.glyphName="arrow-open-up";Ae.variant="Line";Ae.displayName="IconArrowOpenUpLine";Ae.propTypes={...F.propTypes};Ae.allowedProps=[...F.allowedProps];var Bi;class te extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconCheck",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Bi||(Bi=H.createElement("path",{d:"M1827.701 303.065 698.835 1431.801 92.299 825.266 0 917.564 698.835 1616.4 1919.869 395.234z",fillRule:"evenodd"})))}}te.glyphName="check";te.variant="Line";te.displayName="IconCheckLine";te.propTypes={...F.propTypes};te.allowedProps=[...F.allowedProps];var Wi;class Le extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconMiniArrowDouble",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Wi||(Wi=H.createElement("path",{d:"M1319.1 790.054 1020.06 355.79c-33.165-48.165-87.553-47.273-120.104 0L600.92 790.054c-33.166 48.165-12.581 87.21 46.116 87.21h625.944c58.64 0 78.67-39.938 46.12-87.21ZM600.634 1129.94l299.035 434.27c33.167 48.16 87.554 47.27 120.101 0l299.04-434.27c33.17-48.16 12.58-87.21-46.12-87.21H646.75c-58.636 0-78.668 39.94-46.116 87.21Z"})))}}Le.glyphName="mini-arrow-double";Le.variant="Line";Le.displayName="IconMiniArrowDoubleLine";Le.propTypes={...F.propTypes};Le.allowedProps=[...F.allowedProps];var Vi;class Fe extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconMiniArrowDown",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Vi||(Vi=H.createElement("path",{d:"M994.034 1226.26c-18.796 27.296-49.269 27.3-68.067 0L574.893 716.424C556.096 689.128 567.713 667 600.852 667h718.297c33.133 0 44.757 22.125 25.959 49.424L994.034 1226.26Z",fillRule:"evenodd"})))}}Fe.glyphName="mini-arrow-down";Fe.variant="Line";Fe.displayName="IconMiniArrowDownLine";Fe.propTypes={...F.propTypes};Fe.allowedProps=[...F.allowedProps];var Ni;class Pe extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconMiniArrowUp",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Ni||(Ni=H.createElement("path",{d:"M994.034 694.296c-18.796-27.296-49.269-27.3-68.067 0l-351.074 509.836c-18.797 27.296-7.18 49.424 25.959 49.424h718.297c33.133 0 44.757-22.125 25.959-49.424L994.034 694.296Z",fillRule:"evenodd"})))}}Pe.glyphName="mini-arrow-up";Pe.variant="Line";Pe.displayName="IconMiniArrowUpLine";Pe.propTypes={...F.propTypes};Pe.allowedProps=[...F.allowedProps];const co=(n,e)=>{const i=e.vAlign,t=e.textAlign,o=e.rowSpacing,r=e.colSpacing,p=e.isLastRow,u=e.isLastCol,f=e.startAt,g=e.visualDebug,b={small:{marginBottom:n.spacingSmall},medium:{marginBottom:n.spacingMedium},large:{marginBottom:n.spacingLarge},none:{marginBottom:0}},O=()=>{const S={small:{paddingLeft:`calc(${n.spacingSmall} / 2)`,paddingRight:`calc(${n.spacingSmall} / 2)`},medium:{paddingLeft:`calc(${n.spacingMedium} / 2)`,paddingRight:`calc(${n.spacingMedium} / 2)`},large:{paddingLeft:`calc(${n.spacingLarge} / 2)`,paddingRight:`calc(${n.spacingLarge} / 2)`},none:{}},R={top:{alignSelf:"flex-start"},middle:{alignSelf:"center"},bottom:{alignSelf:"flex-end"},stretch:{alignSelf:"stretch"}},W={start:{textAlign:"start"},end:{textAlign:"end"},center:{textAlign:"center"},inherit:{textAlign:"inherit"}};return{flexGrow:1,flexShrink:1,flexBasis:"0%",marginBottom:0,boxSizing:"border-box",...r&&S[r],...i&&R[i],...t&&W[t]}},l=()=>{const S=["small","medium","large","x-large",null];return S.slice(S.indexOf(f))},d=S=>l().includes(S),a=S=>{let R=e.width;if(R)return R&&typeof R=="object"&&(R=R[S==="x-large"?"xLarge":S]),R},c=S=>{let R=e.offset;if(R)return R&&typeof R=="object"&&(R=R[S==="x-large"?"xLarge":S]),R},h=(S="1")=>{switch(S){case"auto":return{flexGrow:0,flexShrink:0,flexBasis:"auto"};case 12:return{flex:"0 0 100%"};default:return{flexGrow:0,flexShrink:0,flexBasis:`calc(${S} / 12 * 99.999%)`,maxWidth:`calc(${S} / 12 * 99.999%)`}}},A=(S="1")=>{switch(S){case"auto":case 12:return{};default:return{marginInlineStart:`calc(${S} / 12 * 99.999%)`,marginInlineEnd:0}}},z=S=>f&&f===S?{...O()}:{},y=S=>{const R=a(S),W=c(S);return d(S)?{...R&&h(R),...W&&A(W)}:{}},w=S=>({...z(S),...y(S)});return{gridCol:{label:"gridCol",display:"block",boxSizing:"border-box",textAlign:"inherit",minWidth:"0.0625rem",...o&&b[o],...p&&u&&{marginBottom:0},...w("small"),[`@media screen and (${n.mediumMin})`]:{...w("medium")},[`@media screen and (${n.largeMin})`]:{...w("large")},[`@media screen and (${n.xLargeMin})`]:{...w("x-large")},...g&&{outline:"0.0625rem dashed red"}}}},uo=n=>{const e=n.spacing,i=n.media;return{...{spacingSmall:e==null?void 0:e.small,spacingMedium:e==null?void 0:e.medium,spacingLarge:e==null?void 0:e.large,...i}}},Z=s.oneOfType([s.number,s.oneOf(["auto"])]),ho={children:s.node,colSpacing:s.oneOf(["none","small","medium","large"]),rowSpacing:s.oneOf(["none","small","medium","large"]),textAlign:s.oneOf(["start","end","center","inherit"]),hAlign:s.oneOf(["start","center","end","space-around","space-between"]),vAlign:s.oneOf(["top","middle","bottom","stretch"]),startAt:s.oneOf(["small","medium","large","x-large",null]),visualDebug:s.bool,width:s.oneOfType([Z,s.shape({small:Z,medium:Z,large:Z,xLarge:Z})]),offset:s.oneOfType([Z,s.shape({small:Z,medium:Z,large:Z,xLarge:Z})]),isLastRow:s.bool,isLastCol:s.bool,elementRef:s.func},fo=["children","colSpacing","rowSpacing","textAlign","hAlign","vAlign","startAt","visualDebug","width","offset","isLastRow","isLastCol","elementRef"];var Di,Ti,ne;let _i=(Di=M(co,uo),Di(Ti=(ne=class Wt extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}widthCheck(){const e=this.props.width;let i=!1;e&&(typeof e=="number"&&e<=0&&(i=!0),typeof e=="object"&&Object.keys(e).forEach(t=>{typeof e[t]=="number"&&e[t]<=0&&(i=!0)})),i&&Mt(!1,"Col width must be positive!")}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i),this.widthCheck()}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i),this.widthCheck()}render(){const e=this.props,i=e.children,t=e.styles,o=L(this.props,Wt.allowedProps);return m("span",Object.assign({},o,{ref:this.handleRef,css:t==null?void 0:t.gridCol}),i)}},ne.displayName="GridCol",ne.componentId="Grid.Col",ne.propTypes=ho,ne.allowedProps=fo,ne.defaultProps={textAlign:"inherit",children:null,isLastCol:!1,isLastRow:!1},ne))||Ti);const go=(n,e)=>{const i=e.hAlign,t=e.vAlign,o=e.rowSpacing,r=e.colSpacing,p=e.isLastRow,u=e.startAt,f=e.visualDebug,g=()=>{const O={center:{justifyContent:"center"},start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"},"space-around":{justifyContent:"space-around"},"space-between":{justifyContent:"space-between"}},l={top:{alignItems:"flex-start"},middle:{alignItems:"center"},bottom:{alignItems:"flex-end"},stretch:{alignItems:"stretch"}},d={small:{margin:`0 calc(-1 * ${n.spacingSmall} / 2)`},medium:{margin:`0 calc(-1 * ${n.spacingMedium} / 2)`},large:{margin:`0 calc(-1 * ${n.spacingLarge} / 2)`},none:{}},a={small:{marginBottom:n.spacingSmall},medium:{marginBottom:n.spacingMedium},large:{marginBottom:n.spacingLarge},none:{marginBottom:0}};return{display:"flex",flexFlow:"row nowrap",...i&&O[i],...t&&l[t],...r&&d[r],...o&&a[o],...p&&{marginBottom:0}}},b=O=>u&&u===O?{...g()}:{};return{gridRow:{label:"gridRow",display:"block",boxSizing:"border-box",...b("small"),[`@media screen and (${n.mediumMin})`]:{...b("medium")},[`@media screen and (${n.largeMin})`]:{...b("large")},[`@media screen and (${n.xLargeMin})`]:{...b("x-large")},...f&&{outline:"0.0625rem dashed blue"}}}},mo=n=>{const e=n.spacing,i=n.media;return{...{spacingSmall:e==null?void 0:e.small,spacingMedium:e==null?void 0:e.medium,spacingLarge:e==null?void 0:e.large,...i}}},bo={children:ke.oneOf([_i,Ce]),rowSpacing:s.oneOf(["none","small","medium","large"]),colSpacing:s.oneOf(["none","small","medium","large"]),hAlign:s.oneOf(["start","center","end","space-around","space-between"]),vAlign:s.oneOf(["top","middle","bottom","stretch"]),startAt:s.oneOf(["small","medium","large","x-large",null]),visualDebug:s.bool,isLastRow:s.bool},vo=["children","rowSpacing","colSpacing","hAlign","vAlign","startAt","visualDebug","isLastRow"],yo=["styles","makeStyles"],wo=["styles"];var qi,Gi,re;let pi=(qi=M(go,mo),qi(Gi=(re=class ci extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}renderChildren(){const e=this.props;e.styles,e.makeStyles;const i=B(e,yo);return v.Children.map(this.props.children,(t,o)=>P(t,[_i])?Ne(t,{...Ve(i,ci.allowedProps),...t.props,isLastRow:i.isLastRow,isLastCol:o+1===v.Children.count(this.props.children)}):t)}render(){const e=this.props,i=e.styles,t=B(e,wo),o=L(t,ci.allowedProps);return m("span",Object.assign({},o,{css:i==null?void 0:i.gridRow,ref:this.handleRef}),this.renderChildren())}},re.displayName="GridRow",re.componentId="Grid.Row",re.propTypes=bo,re.allowedProps=vo,re.defaultProps={children:null,isLastRow:!1},re))||Gi);const So=(n,e)=>{const i=e.startAt,t=e.visualDebug,o=r=>i&&i===r?{boxSizing:"border-box"}:{};return{grid:{label:"grid",display:"block",...o("small"),[`@media screen and (${n.mediumMin})`]:{...o("medium")},[`@media screen and (${n.largeMin})`]:{...o("large")},[`@media screen and (${n.xLargeMin})`]:{...o("x-large")},...t&&{outline:"0.0625rem dashed red"}}}},Oo=n=>{const e=n.spacing,i=n.media;return{...{spacingSmall:e==null?void 0:e.small,spacingMedium:e==null?void 0:e.medium,spacingLarge:e==null?void 0:e.large,...i}}},_o={children:ke.oneOf([pi,Ce]),colSpacing:s.oneOf(["none","small","medium","large"]),rowSpacing:s.oneOf(["none","small","medium","large"]),hAlign:s.oneOf(["start","center","end","space-around","space-between"]),vAlign:s.oneOf(["top","middle","bottom","stretch"]),startAt:s.oneOf(["small","medium","large","x-large",null]),visualDebug:s.bool},$o=["children","colSpacing","rowSpacing","hAlign","vAlign","startAt","visualDebug"],xo=["styles","makeStyles"],Ro=["styles"];var ji,Ui,J;let D=(ji=M(So,Oo),ji(Ui=(J=class ui extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}renderChildren(){const e=this.props;e.styles,e.makeStyles;const i=B(e,xo),t=v.Children.toArray(this.props.children);return t.map((o,r)=>P(o,[pi])?Ne(o,{...Ve(i,ui.allowedProps),...o.props,isLastRow:r+1===t.length}):o)}render(){const e=this.props,i=e.styles,t=B(e,Ro),o=L(t,ui.allowedProps);return m("span",Object.assign({},o,{css:i==null?void 0:i.grid,ref:this.handleRef}),this.renderChildren())}},J.displayName="Grid",J.componentId="Grid",J.propTypes=_o,J.allowedProps=$o,J.defaultProps={colSpacing:"medium",rowSpacing:"medium",hAlign:"start",startAt:"small",vAlign:"top",visualDebug:!1,children:null},J.Row=pi,J.Col=_i,J))||Ui);const ko=(n,e)=>{const i=e.children,o={all:"initial",display:"block",...Et(i)&&{color:n.color,fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,lineHeight:n.lineHeight,margin:0,textAlign:"inherit"}};return{formFieldLabel:{label:"formFieldLabel",...o,"&:is(label)":o,"&:-webkit-any(label)":o}}},Co=n=>{var e;const i=n.colors,t=n.typography,o=n.key,r={canvas:{color:n["ic-brand-font-color-dark"]}};return{...{color:i==null||(e=i.contrasts)===null||e===void 0?void 0:e.grey125125,fontFamily:t==null?void 0:t.fontFamily,fontWeight:t==null?void 0:t.fontWeightBold,fontSize:t==null?void 0:t.fontSizeMedium,lineHeight:t==null?void 0:t.lineHeightFit},...r[o]}},Io={children:s.node.isRequired,as:s.elementType},Ao=["as","children"];var Zi,Yi,le;let Lo=(Zi=M(ko,Co),Zi(Yi=(le=class hi extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=zt(hi,this.props),i=this.props,t=i.styles,o=i.children;return m(e,Object.assign({},L(this.props,hi.allowedProps),{css:t==null?void 0:t.formFieldLabel,ref:this.handleRef}),o)}},le.displayName="FormFieldLabel",le.componentId="FormFieldLabel",le.propTypes=Io,le.allowedProps=Ao,le.defaultProps={as:"span"},le))||Yi);const Fo=(n,e)=>{const i=e.variant,t={hint:{color:n.colorHint},error:{color:n.colorError},success:{color:n.colorSuccess},"screenreader-only":{}};return{formFieldMessage:{label:"formFieldMessage",fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,lineHeight:n.lineHeight,display:"block",...t[i]}}},Po=n=>{var e,i,t;const o=n.colors,r=n.typography,p=n.key,u={canvas:{colorHint:n["ic-brand-font-color-dark"]}};return{...{colorHint:o==null||(e=o.contrasts)===null||e===void 0?void 0:e.grey125125,colorError:o==null||(i=o.contrasts)===null||i===void 0?void 0:i.red4570,colorSuccess:o==null||(t=o.contrasts)===null||t===void 0?void 0:t.green4570,fontFamily:r==null?void 0:r.fontFamily,fontWeight:r==null?void 0:r.fontWeightNormal,fontSize:r==null?void 0:r.fontSizeSmall,lineHeight:r==null?void 0:r.lineHeight},...u[p]}},Vt=s.oneOf(["error","hint","success","screenreader-only"]),Nt=s.node,we={message:s.shape({type:Vt,text:Nt})},Ho={variant:Vt,children:Nt},Mo=["variant","children"];var Xi,Ki,ae;let zo=(Xi=M(Fo,Po),Xi(Ki=(ae=class extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=this.props,i=e.children,t=e.styles;return this.props.variant!=="screenreader-only"?m("span",{css:t==null?void 0:t.formFieldMessage,ref:this.handleRef},i):m(Ce,{elementRef:this.handleRef},i)}},ae.displayName="FormFieldMessage",ae.componentId="FormFieldMessage",ae.propTypes=Ho,ae.allowedProps=Mo,ae.defaultProps={variant:"hint"},ae))||Ki);const Eo=n=>({formFieldMessages:{label:"formFieldMessages",padding:0,display:"block",margin:`calc(-1 * ${n.topMargin}) 0 0 0`},message:{label:"formFieldMessages__message",display:"block"}}),Bo=n=>{const e=n.spacing;return{...{topMargin:e==null?void 0:e.xxSmall}}},Wo={messages:s.arrayOf(we.message)},Vo=["messages"];var Ji,Qi,de;let et=(Ji=M(Eo,Bo),Ji(Qi=(de=class Dt extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=this.props,i=e.messages,t=e.styles;return i&&i.length>0?m("span",Object.assign({css:t==null?void 0:t.formFieldMessages},L(this.props,Dt.allowedProps),{ref:this.handleRef}),i.map((o,r)=>m("span",{key:`error${r}`,css:t==null?void 0:t.message},m(zo,{variant:o.type},o.text)))):null}},de.displayName="FormFieldMessages",de.componentId="FormFieldMessages",de.propTypes=Wo,de.allowedProps=Vo,de.defaultProps={},de))||Qi);const No=(n,e)=>({formFieldLayout:{label:"formFieldLayout",all:"initial",border:"0",padding:"0",margin:"0",minWidth:"0",direction:"inherit",textAlign:"start",opacity:"inherit",display:"block",width:"100%",...e.inline&&{display:"inline-block",verticalAlign:"middle",width:"auto"}}}),Do={label:s.node.isRequired,id:s.string,as:s.elementType,messages:s.arrayOf(we.message),messagesId:s.string,children:s.node,inline:s.bool,layout:s.oneOf(["stacked","inline"]),labelAlign:s.oneOf(["start","end"]),vAlign:s.oneOf(["top","middle","bottom"]),width:s.string,inputContainerRef:s.func,elementRef:s.func},To=["label","id","as","messages","messagesId","children","inline","layout","labelAlign","width","inputContainerRef","elementRef"],qo=["makeStyles","styles"];var it,tt,Ye,pe;let ei=(it=ii(),tt=M(No,null),it(Ye=tt(Ye=(pe=class fi extends v.Component{constructor(e){super(e),this._messagesId=void 0,this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)},this.handleInputContainerRef=i=>{typeof this.props.inputContainerRef=="function"&&this.props.inputContainerRef(i)},this._messagesId=e.messagesId||e.deterministicId(),eo(typeof e.width<"u"||!e.inline||e.layout!=="inline",`[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'. +import{k as Jt,l as Qt,r as v,R as H,S as F,P as s,w as M,m as Mt,o as L,i as m,h as B,n as Ve,q as zt,s as ii,f as eo,t as Oi,p as Je,V as G,v as Qe,T as io}from"./index-mQ6522B8.js";import{C as ke,S as Ce,m as P,s as Ne,h as Et,i as to,j as oo,k as We,l as Bt,n as ie,P as Re,O as ye,o as Hi,p as Mi,q as so,r as no}from"./RenderTopNavBar-m0KU5Oph.js";var di={exports:{}};(function(n,e){(function(i,t){var o="1.0.38",r="",p="?",u="function",f="undefined",g="object",b="string",O="major",l="model",d="name",a="type",c="vendor",h="version",A="architecture",z="console",y="mobile",w="tablet",S="smarttv",R="wearable",W="embedded",Se=500,Oe="Amazon",se="Apple",He="ASUS",Me="BlackBerry",X="Browser",De="Chrome",Zt="Edge",Te="Firefox",qe="Google",$i="Huawei",ti="LG",oi="Microsoft",xi="Motorola",ze="Opera",Ge="Samsung",Ri="Sharp",je="Sony",si="Xiaomi",ni="Zebra",ki="Facebook",Ci="Chromium OS",Ii="Mac OS",Yt=function(x,C){var $={};for(var I in x)C[I]&&C[I].length%2===0?$[I]=C[I].concat(x[I]):$[I]=x[I];return $},Ue=function(x){for(var C={},$=0;$0?k.length===2?typeof k[1]==u?this[k[0]]=k[1].call(this,U):this[k[0]]=k[1]:k.length===3?typeof k[1]===u&&!(k[1].exec&&k[1].test)?this[k[0]]=U?k[1].call(this,U,k[2]):t:this[k[0]]=U?U.replace(k[1],k[2]):t:k.length===4&&(this[k[0]]=U?k[3].call(this,U.replace(k[1],k[2])):t):this[k]=U||t;$+=2}},li=function(x,C){for(var $ in C)if(typeof C[$]===g&&C[$].length>0){for(var I=0;I2&&(_[l]="iPad",_[a]=w),_},this.getEngine=function(){var _={};return _[d]=t,_[h]=t,Be.call(_,I,j.engine),_},this.getOS=function(){var _={};return _[d]=t,_[h]=t,Be.call(_,I,j.os),k&&!_[d]&&K&&K.platform&&K.platform!="Unknown"&&(_[d]=K.platform.replace(/chrome os/i,Ci).replace(/macos/i,Ii)),_},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return I},this.setUA=function(_){return I=typeof _===b&&_.length>Se?ri(_,Se):_,this},this.setUA(I),this};N.VERSION=o,N.BROWSER=Ue([d,h,O]),N.CPU=Ue([A]),N.DEVICE=Ue([l,c,a,z,y,S,w,R,W]),N.ENGINE=N.OS=Ue([d,h]),n.exports&&(e=n.exports=N),e.UAParser=N;var _e=typeof i!==f&&(i.jQuery||i.Zepto);if(_e&&!_e.ua){var Ze=new N;_e.ua=Ze.getResult(),_e.ua.get=function(){return Ze.getUA()},_e.ua.set=function(x){Ze.setUA(x);var C=Ze.getResult();for(var $ in C)_e.ua[$]=C[$]}}})(typeof window=="object"?window:Jt)})(di,di.exports);var ro=di.exports;const lo=Qt(ro),ao=()=>new lo().getResult().browser,po=()=>ao().name==="Safari";var zi;class Ie extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconArrowOpenDown",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),zi||(zi=H.createElement("path",{d:"m.153 526.146 92.168-92.299 867.767 867.636 867.636-867.636 92.429 92.299-960.065 959.935z",fillRule:"evenodd"})))}}Ie.glyphName="arrow-open-down";Ie.variant="Line";Ie.displayName="IconArrowOpenDownLine";Ie.propTypes={...F.propTypes};Ie.allowedProps=[...F.allowedProps];var Ei;class Ae extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconArrowOpenUp",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Ei||(Ei=H.createElement("path",{d:"m.153 1393.854 92.168 92.299 867.767-867.636 867.636 867.636 92.429-92.299L960.088 433.92z",fillRule:"evenodd"})))}}Ae.glyphName="arrow-open-up";Ae.variant="Line";Ae.displayName="IconArrowOpenUpLine";Ae.propTypes={...F.propTypes};Ae.allowedProps=[...F.allowedProps];var Bi;class te extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconCheck",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Bi||(Bi=H.createElement("path",{d:"M1827.701 303.065 698.835 1431.801 92.299 825.266 0 917.564 698.835 1616.4 1919.869 395.234z",fillRule:"evenodd"})))}}te.glyphName="check";te.variant="Line";te.displayName="IconCheckLine";te.propTypes={...F.propTypes};te.allowedProps=[...F.allowedProps];var Wi;class Le extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconMiniArrowDouble",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Wi||(Wi=H.createElement("path",{d:"M1319.1 790.054 1020.06 355.79c-33.165-48.165-87.553-47.273-120.104 0L600.92 790.054c-33.166 48.165-12.581 87.21 46.116 87.21h625.944c58.64 0 78.67-39.938 46.12-87.21ZM600.634 1129.94l299.035 434.27c33.167 48.16 87.554 47.27 120.101 0l299.04-434.27c33.17-48.16 12.58-87.21-46.12-87.21H646.75c-58.636 0-78.668 39.94-46.116 87.21Z"})))}}Le.glyphName="mini-arrow-double";Le.variant="Line";Le.displayName="IconMiniArrowDoubleLine";Le.propTypes={...F.propTypes};Le.allowedProps=[...F.allowedProps];var Vi;class Fe extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconMiniArrowDown",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Vi||(Vi=H.createElement("path",{d:"M994.034 1226.26c-18.796 27.296-49.269 27.3-68.067 0L574.893 716.424C556.096 689.128 567.713 667 600.852 667h718.297c33.133 0 44.757 22.125 25.959 49.424L994.034 1226.26Z",fillRule:"evenodd"})))}}Fe.glyphName="mini-arrow-down";Fe.variant="Line";Fe.displayName="IconMiniArrowDownLine";Fe.propTypes={...F.propTypes};Fe.allowedProps=[...F.allowedProps];var Ni;class Pe extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(F,Object.assign({},this.props,{name:"IconMiniArrowUp",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Ni||(Ni=H.createElement("path",{d:"M994.034 694.296c-18.796-27.296-49.269-27.3-68.067 0l-351.074 509.836c-18.797 27.296-7.18 49.424 25.959 49.424h718.297c33.133 0 44.757-22.125 25.959-49.424L994.034 694.296Z",fillRule:"evenodd"})))}}Pe.glyphName="mini-arrow-up";Pe.variant="Line";Pe.displayName="IconMiniArrowUpLine";Pe.propTypes={...F.propTypes};Pe.allowedProps=[...F.allowedProps];const co=(n,e)=>{const i=e.vAlign,t=e.textAlign,o=e.rowSpacing,r=e.colSpacing,p=e.isLastRow,u=e.isLastCol,f=e.startAt,g=e.visualDebug,b={small:{marginBottom:n.spacingSmall},medium:{marginBottom:n.spacingMedium},large:{marginBottom:n.spacingLarge},none:{marginBottom:0}},O=()=>{const S={small:{paddingLeft:`calc(${n.spacingSmall} / 2)`,paddingRight:`calc(${n.spacingSmall} / 2)`},medium:{paddingLeft:`calc(${n.spacingMedium} / 2)`,paddingRight:`calc(${n.spacingMedium} / 2)`},large:{paddingLeft:`calc(${n.spacingLarge} / 2)`,paddingRight:`calc(${n.spacingLarge} / 2)`},none:{}},R={top:{alignSelf:"flex-start"},middle:{alignSelf:"center"},bottom:{alignSelf:"flex-end"},stretch:{alignSelf:"stretch"}},W={start:{textAlign:"start"},end:{textAlign:"end"},center:{textAlign:"center"},inherit:{textAlign:"inherit"}};return{flexGrow:1,flexShrink:1,flexBasis:"0%",marginBottom:0,boxSizing:"border-box",...r&&S[r],...i&&R[i],...t&&W[t]}},l=()=>{const S=["small","medium","large","x-large",null];return S.slice(S.indexOf(f))},d=S=>l().includes(S),a=S=>{let R=e.width;if(R)return R&&typeof R=="object"&&(R=R[S==="x-large"?"xLarge":S]),R},c=S=>{let R=e.offset;if(R)return R&&typeof R=="object"&&(R=R[S==="x-large"?"xLarge":S]),R},h=(S="1")=>{switch(S){case"auto":return{flexGrow:0,flexShrink:0,flexBasis:"auto"};case 12:return{flex:"0 0 100%"};default:return{flexGrow:0,flexShrink:0,flexBasis:`calc(${S} / 12 * 99.999%)`,maxWidth:`calc(${S} / 12 * 99.999%)`}}},A=(S="1")=>{switch(S){case"auto":case 12:return{};default:return{marginInlineStart:`calc(${S} / 12 * 99.999%)`,marginInlineEnd:0}}},z=S=>f&&f===S?{...O()}:{},y=S=>{const R=a(S),W=c(S);return d(S)?{...R&&h(R),...W&&A(W)}:{}},w=S=>({...z(S),...y(S)});return{gridCol:{label:"gridCol",display:"block",boxSizing:"border-box",textAlign:"inherit",minWidth:"0.0625rem",...o&&b[o],...p&&u&&{marginBottom:0},...w("small"),[`@media screen and (${n.mediumMin})`]:{...w("medium")},[`@media screen and (${n.largeMin})`]:{...w("large")},[`@media screen and (${n.xLargeMin})`]:{...w("x-large")},...g&&{outline:"0.0625rem dashed red"}}}},uo=n=>{const e=n.spacing,i=n.media;return{...{spacingSmall:e==null?void 0:e.small,spacingMedium:e==null?void 0:e.medium,spacingLarge:e==null?void 0:e.large,...i}}},Z=s.oneOfType([s.number,s.oneOf(["auto"])]),ho={children:s.node,colSpacing:s.oneOf(["none","small","medium","large"]),rowSpacing:s.oneOf(["none","small","medium","large"]),textAlign:s.oneOf(["start","end","center","inherit"]),hAlign:s.oneOf(["start","center","end","space-around","space-between"]),vAlign:s.oneOf(["top","middle","bottom","stretch"]),startAt:s.oneOf(["small","medium","large","x-large",null]),visualDebug:s.bool,width:s.oneOfType([Z,s.shape({small:Z,medium:Z,large:Z,xLarge:Z})]),offset:s.oneOfType([Z,s.shape({small:Z,medium:Z,large:Z,xLarge:Z})]),isLastRow:s.bool,isLastCol:s.bool,elementRef:s.func},fo=["children","colSpacing","rowSpacing","textAlign","hAlign","vAlign","startAt","visualDebug","width","offset","isLastRow","isLastCol","elementRef"];var Di,Ti,ne;let _i=(Di=M(co,uo),Di(Ti=(ne=class Wt extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}widthCheck(){const e=this.props.width;let i=!1;e&&(typeof e=="number"&&e<=0&&(i=!0),typeof e=="object"&&Object.keys(e).forEach(t=>{typeof e[t]=="number"&&e[t]<=0&&(i=!0)})),i&&Mt(!1,"Col width must be positive!")}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i),this.widthCheck()}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i),this.widthCheck()}render(){const e=this.props,i=e.children,t=e.styles,o=L(this.props,Wt.allowedProps);return m("span",Object.assign({},o,{ref:this.handleRef,css:t==null?void 0:t.gridCol}),i)}},ne.displayName="GridCol",ne.componentId="Grid.Col",ne.propTypes=ho,ne.allowedProps=fo,ne.defaultProps={textAlign:"inherit",children:null,isLastCol:!1,isLastRow:!1},ne))||Ti);const go=(n,e)=>{const i=e.hAlign,t=e.vAlign,o=e.rowSpacing,r=e.colSpacing,p=e.isLastRow,u=e.startAt,f=e.visualDebug,g=()=>{const O={center:{justifyContent:"center"},start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"},"space-around":{justifyContent:"space-around"},"space-between":{justifyContent:"space-between"}},l={top:{alignItems:"flex-start"},middle:{alignItems:"center"},bottom:{alignItems:"flex-end"},stretch:{alignItems:"stretch"}},d={small:{margin:`0 calc(-1 * ${n.spacingSmall} / 2)`},medium:{margin:`0 calc(-1 * ${n.spacingMedium} / 2)`},large:{margin:`0 calc(-1 * ${n.spacingLarge} / 2)`},none:{}},a={small:{marginBottom:n.spacingSmall},medium:{marginBottom:n.spacingMedium},large:{marginBottom:n.spacingLarge},none:{marginBottom:0}};return{display:"flex",flexFlow:"row nowrap",...i&&O[i],...t&&l[t],...r&&d[r],...o&&a[o],...p&&{marginBottom:0}}},b=O=>u&&u===O?{...g()}:{};return{gridRow:{label:"gridRow",display:"block",boxSizing:"border-box",...b("small"),[`@media screen and (${n.mediumMin})`]:{...b("medium")},[`@media screen and (${n.largeMin})`]:{...b("large")},[`@media screen and (${n.xLargeMin})`]:{...b("x-large")},...f&&{outline:"0.0625rem dashed blue"}}}},mo=n=>{const e=n.spacing,i=n.media;return{...{spacingSmall:e==null?void 0:e.small,spacingMedium:e==null?void 0:e.medium,spacingLarge:e==null?void 0:e.large,...i}}},bo={children:ke.oneOf([_i,Ce]),rowSpacing:s.oneOf(["none","small","medium","large"]),colSpacing:s.oneOf(["none","small","medium","large"]),hAlign:s.oneOf(["start","center","end","space-around","space-between"]),vAlign:s.oneOf(["top","middle","bottom","stretch"]),startAt:s.oneOf(["small","medium","large","x-large",null]),visualDebug:s.bool,isLastRow:s.bool},vo=["children","rowSpacing","colSpacing","hAlign","vAlign","startAt","visualDebug","isLastRow"],yo=["styles","makeStyles"],wo=["styles"];var qi,Gi,re;let pi=(qi=M(go,mo),qi(Gi=(re=class ci extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}renderChildren(){const e=this.props;e.styles,e.makeStyles;const i=B(e,yo);return v.Children.map(this.props.children,(t,o)=>P(t,[_i])?Ne(t,{...Ve(i,ci.allowedProps),...t.props,isLastRow:i.isLastRow,isLastCol:o+1===v.Children.count(this.props.children)}):t)}render(){const e=this.props,i=e.styles,t=B(e,wo),o=L(t,ci.allowedProps);return m("span",Object.assign({},o,{css:i==null?void 0:i.gridRow,ref:this.handleRef}),this.renderChildren())}},re.displayName="GridRow",re.componentId="Grid.Row",re.propTypes=bo,re.allowedProps=vo,re.defaultProps={children:null,isLastRow:!1},re))||Gi);const So=(n,e)=>{const i=e.startAt,t=e.visualDebug,o=r=>i&&i===r?{boxSizing:"border-box"}:{};return{grid:{label:"grid",display:"block",...o("small"),[`@media screen and (${n.mediumMin})`]:{...o("medium")},[`@media screen and (${n.largeMin})`]:{...o("large")},[`@media screen and (${n.xLargeMin})`]:{...o("x-large")},...t&&{outline:"0.0625rem dashed red"}}}},Oo=n=>{const e=n.spacing,i=n.media;return{...{spacingSmall:e==null?void 0:e.small,spacingMedium:e==null?void 0:e.medium,spacingLarge:e==null?void 0:e.large,...i}}},_o={children:ke.oneOf([pi,Ce]),colSpacing:s.oneOf(["none","small","medium","large"]),rowSpacing:s.oneOf(["none","small","medium","large"]),hAlign:s.oneOf(["start","center","end","space-around","space-between"]),vAlign:s.oneOf(["top","middle","bottom","stretch"]),startAt:s.oneOf(["small","medium","large","x-large",null]),visualDebug:s.bool},$o=["children","colSpacing","rowSpacing","hAlign","vAlign","startAt","visualDebug"],xo=["styles","makeStyles"],Ro=["styles"];var ji,Ui,J;let D=(ji=M(So,Oo),ji(Ui=(J=class ui extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}renderChildren(){const e=this.props;e.styles,e.makeStyles;const i=B(e,xo),t=v.Children.toArray(this.props.children);return t.map((o,r)=>P(o,[pi])?Ne(o,{...Ve(i,ui.allowedProps),...o.props,isLastRow:r+1===t.length}):o)}render(){const e=this.props,i=e.styles,t=B(e,Ro),o=L(t,ui.allowedProps);return m("span",Object.assign({},o,{css:i==null?void 0:i.grid,ref:this.handleRef}),this.renderChildren())}},J.displayName="Grid",J.componentId="Grid",J.propTypes=_o,J.allowedProps=$o,J.defaultProps={colSpacing:"medium",rowSpacing:"medium",hAlign:"start",startAt:"small",vAlign:"top",visualDebug:!1,children:null},J.Row=pi,J.Col=_i,J))||Ui);const ko=(n,e)=>{const i=e.children,o={all:"initial",display:"block",...Et(i)&&{color:n.color,fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,lineHeight:n.lineHeight,margin:0,textAlign:"inherit"}};return{formFieldLabel:{label:"formFieldLabel",...o,"&:is(label)":o,"&:-webkit-any(label)":o}}},Co=n=>{var e;const i=n.colors,t=n.typography,o=n.key,r={canvas:{color:n["ic-brand-font-color-dark"]}};return{...{color:i==null||(e=i.contrasts)===null||e===void 0?void 0:e.grey125125,fontFamily:t==null?void 0:t.fontFamily,fontWeight:t==null?void 0:t.fontWeightBold,fontSize:t==null?void 0:t.fontSizeMedium,lineHeight:t==null?void 0:t.lineHeightFit},...r[o]}},Io={children:s.node.isRequired,as:s.elementType},Ao=["as","children"];var Zi,Yi,le;let Lo=(Zi=M(ko,Co),Zi(Yi=(le=class hi extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=zt(hi,this.props),i=this.props,t=i.styles,o=i.children;return m(e,Object.assign({},L(this.props,hi.allowedProps),{css:t==null?void 0:t.formFieldLabel,ref:this.handleRef}),o)}},le.displayName="FormFieldLabel",le.componentId="FormFieldLabel",le.propTypes=Io,le.allowedProps=Ao,le.defaultProps={as:"span"},le))||Yi);const Fo=(n,e)=>{const i=e.variant,t={hint:{color:n.colorHint},error:{color:n.colorError},success:{color:n.colorSuccess},"screenreader-only":{}};return{formFieldMessage:{label:"formFieldMessage",fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,lineHeight:n.lineHeight,display:"block",...t[i]}}},Po=n=>{var e,i,t;const o=n.colors,r=n.typography,p=n.key,u={canvas:{colorHint:n["ic-brand-font-color-dark"]}};return{...{colorHint:o==null||(e=o.contrasts)===null||e===void 0?void 0:e.grey125125,colorError:o==null||(i=o.contrasts)===null||i===void 0?void 0:i.red4570,colorSuccess:o==null||(t=o.contrasts)===null||t===void 0?void 0:t.green4570,fontFamily:r==null?void 0:r.fontFamily,fontWeight:r==null?void 0:r.fontWeightNormal,fontSize:r==null?void 0:r.fontSizeSmall,lineHeight:r==null?void 0:r.lineHeight},...u[p]}},Vt=s.oneOf(["error","hint","success","screenreader-only"]),Nt=s.node,we={message:s.shape({type:Vt,text:Nt})},Ho={variant:Vt,children:Nt},Mo=["variant","children"];var Xi,Ki,ae;let zo=(Xi=M(Fo,Po),Xi(Ki=(ae=class extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=this.props,i=e.children,t=e.styles;return this.props.variant!=="screenreader-only"?m("span",{css:t==null?void 0:t.formFieldMessage,ref:this.handleRef},i):m(Ce,{elementRef:this.handleRef},i)}},ae.displayName="FormFieldMessage",ae.componentId="FormFieldMessage",ae.propTypes=Ho,ae.allowedProps=Mo,ae.defaultProps={variant:"hint"},ae))||Ki);const Eo=n=>({formFieldMessages:{label:"formFieldMessages",padding:0,display:"block",margin:`calc(-1 * ${n.topMargin}) 0 0 0`},message:{label:"formFieldMessages__message",display:"block"}}),Bo=n=>{const e=n.spacing;return{...{topMargin:e==null?void 0:e.xxSmall}}},Wo={messages:s.arrayOf(we.message)},Vo=["messages"];var Ji,Qi,de;let et=(Ji=M(Eo,Bo),Ji(Qi=(de=class Dt extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{this.ref=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=this.props,i=e.messages,t=e.styles;return i&&i.length>0?m("span",Object.assign({css:t==null?void 0:t.formFieldMessages},L(this.props,Dt.allowedProps),{ref:this.handleRef}),i.map((o,r)=>m("span",{key:`error${r}`,css:t==null?void 0:t.message},m(zo,{variant:o.type},o.text)))):null}},de.displayName="FormFieldMessages",de.componentId="FormFieldMessages",de.propTypes=Wo,de.allowedProps=Vo,de.defaultProps={},de))||Qi);const No=(n,e)=>({formFieldLayout:{label:"formFieldLayout",all:"initial",border:"0",padding:"0",margin:"0",minWidth:"0",direction:"inherit",textAlign:"start",opacity:"inherit",display:"block",width:"100%",...e.inline&&{display:"inline-block",verticalAlign:"middle",width:"auto"}}}),Do={label:s.node.isRequired,id:s.string,as:s.elementType,messages:s.arrayOf(we.message),messagesId:s.string,children:s.node,inline:s.bool,layout:s.oneOf(["stacked","inline"]),labelAlign:s.oneOf(["start","end"]),vAlign:s.oneOf(["top","middle","bottom"]),width:s.string,inputContainerRef:s.func,elementRef:s.func},To=["label","id","as","messages","messagesId","children","inline","layout","labelAlign","width","inputContainerRef","elementRef"],qo=["makeStyles","styles"];var it,tt,Ye,pe;let ei=(it=ii(),tt=M(No,null),it(Ye=tt(Ye=(pe=class fi extends v.Component{constructor(e){super(e),this._messagesId=void 0,this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)},this.handleInputContainerRef=i=>{typeof this.props.inputContainerRef=="function"&&this.props.inputContainerRef(i)},this._messagesId=e.messagesId||e.deterministicId(),eo(typeof e.width<"u"||!e.inline||e.layout!=="inline",`[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'. This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`)}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}get hasVisibleLabel(){return this.props.label&&Et(this.props.label)}get hasMessages(){return this.props.messages&&this.props.messages.length>0}get elementType(){return zt(fi,this.props)}get inlineContainerAndLabel(){return this.props.inline&&this.props.layout==="inline"}renderLabel(){return this.hasVisibleLabel?m(D.Col,{textAlign:this.props.labelAlign,width:this.inlineContainerAndLabel?"auto":3},m(Lo,{"aria-hidden":this.elementType==="fieldset"?"true":void 0},this.props.label)):this.elementType!=="fieldset"?this.props.label:null}renderLegend(){return m(Ce,{as:"legend"},this.props.label,this.hasMessages&&m(et,{messages:this.props.messages}))}renderVisibleMessages(){return this.hasMessages?m(D.Row,null,m(D.Col,{offset:this.inlineContainerAndLabel?void 0:3,textAlign:this.inlineContainerAndLabel?"end":void 0},m(et,{id:this._messagesId,messages:this.props.messages}))):null}render(){const e=this.elementType,i=this.props;i.makeStyles;const t=i.styles,o=B(i,qo),r=o.width,p=o.layout,u=o.children;return m(e,Object.assign({},L(o,[...fi.allowedProps,...D.allowedProps]),{css:t==null?void 0:t.formFieldLayout,style:{width:r},"aria-describedby":this.hasMessages?this._messagesId:void 0,ref:this.handleRef}),this.elementType==="fieldset"&&this.renderLegend(),m(D,Object.assign({rowSpacing:"small",colSpacing:"small",startAt:p==="inline"&&this.hasVisibleLabel?"medium":null},Ve(o,D.allowedProps)),m(D.Row,null,this.renderLabel(),m(D.Col,{width:this.inlineContainerAndLabel?"auto":void 0,elementRef:this.handleInputContainerRef},u)),this.renderVisibleMessages()))}},pe.displayName="FormFieldLayout",pe.componentId="FormFieldLayout",pe.propTypes=Do,pe.allowedProps=To,pe.defaultProps={inline:!1,layout:"stacked",as:"label",labelAlign:"end"},pe))||Ye)||Ye);const Go={label:s.node.isRequired,id:s.string.isRequired,messages:s.arrayOf(we.message),messagesId:s.string,children:s.node,inline:s.bool,layout:s.oneOf(["stacked","inline"]),labelAlign:s.oneOf(["start","end"]),vAlign:s.oneOf(["top","middle","bottom"]),width:s.string,inputContainerRef:s.func,elementRef:s.func},jo=["label","id","messages","messagesId","children","inline","layout","labelAlign","vAlign","width","inputContainerRef","elementRef"];class oe extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}render(){return H.createElement(ei,Object.assign({},L(this.props,oe.allowedProps),Ve(this.props,ei.allowedProps),{label:this.props.label,vAlign:this.props.vAlign,as:"label",htmlFor:this.props.id,elementRef:this.handleRef}))}}oe.displayName="FormField";oe.componentId="FormField";oe.propTypes=Go;oe.allowedProps=jo;oe.defaultProps={inline:!1,layout:"stacked",labelAlign:"end",vAlign:"middle"};const Uo=(n,e,i)=>{const t=e.disabled,o=i.invalid;return{formFieldGroup:{label:"formFieldGroup",border:`${n.borderWidth} ${n.borderStyle} ${n.borderColor}`,borderRadius:n.borderRadius,display:"block",...o&&{borderColor:n.errorBorderColor,padding:n.errorFieldsPadding},...t&&{opacity:.6,cursor:"not-allowed",pointerEvents:"none"}}}},Zo=n=>{var e;const i=n.borders,t=n.colors,o=n.spacing;return{...{borderWidth:i==null?void 0:i.widthSmall,borderStyle:i==null?void 0:i.style,borderColor:"transparent",borderRadius:i==null?void 0:i.radiusMedium,errorBorderColor:t==null||(e=t.contrasts)===null||e===void 0?void 0:e.red4570,errorFieldsPadding:o==null?void 0:o.xSmall}}},Yo={description:s.node.isRequired,as:s.elementType,messages:s.arrayOf(we.message),messagesId:s.string,disabled:s.bool,children:s.node,layout:s.oneOf(["stacked","columns","inline"]),rowSpacing:s.oneOf(["none","small","medium","large"]),colSpacing:s.oneOf(["none","small","medium","large"]),vAlign:s.oneOf(["top","middle","bottom"]),startAt:s.oneOf(["small","medium","large","x-large",null]),elementRef:s.func},Xo=["description","as","messages","messagesId","disabled","children","layout","rowSpacing","colSpacing","vAlign","startAt","elementRef"],Ko=["styles","makeStyles"];var ot,st,ce;let rn=(ot=M(Uo,Zo),ot(st=(ce=class Tt extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i,this.makeStylesVariables)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i,this.makeStylesVariables)}get makeStylesVariables(){return{invalid:this.invalid}}get invalid(){return!!this.props.messages&&this.props.messages.findIndex(e=>e.type==="error")>=0}renderColumns(){return v.Children.map(this.props.children,(e,i)=>e?m(D.Col,{width:e.props&&e.props.width?"auto":void 0,key:i},e):null)}renderChildren(){return m(D,{colSpacing:this.props.colSpacing,rowSpacing:this.props.rowSpacing,vAlign:this.props.vAlign,startAt:this.props.startAt||(this.props.layout==="columns"?"medium":null)},m(D.Row,null,this.renderColumns()))}renderFields(){const e=this.props.styles;return m("span",{key:"fields",css:e==null?void 0:e.formFieldGroup},this.renderChildren())}render(){const e=this.props;e.styles,e.makeStyles;const i=B(e,Ko);return m(ei,Object.assign({},L(i,Tt.allowedProps),Ve(i,ei.allowedProps),{vAlign:i.vAlign,layout:i.layout==="inline"?"inline":"stacked",label:i.description,"aria-disabled":i.disabled?"true":void 0,"aria-invalid":this.invalid?"true":void 0,elementRef:this.handleRef}),this.renderFields())}},ce.displayName="FormFieldGroup",ce.componentId="FormFieldGroup",ce.propTypes=Yo,ce.allowedProps=Xo,ce.defaultProps={as:"fieldset",disabled:!1,rowSpacing:"medium",colSpacing:"small",vAlign:"middle"},ce))||st);const Jo=(n,e,i)=>{const t=e.size,o=e.textAlign,r=e.shouldNotWrap,p=i.disabled,u=i.invalid,f=i.focused,g=i.beforeElementHasWidth,b=i.afterElementHasWidth,O={small:{fontSize:n.smallFontSize,height:`calc(${n.smallHeight} - (2 * ${n.borderWidth}))`,lineHeight:`calc(${n.smallHeight} - (2 * ${n.borderWidth}))`},medium:{fontSize:n.mediumFontSize,height:`calc(${n.mediumHeight} - (2 * ${n.borderWidth}))`,lineHeight:`calc(${n.mediumHeight} - (2 * ${n.borderWidth}))`},large:{fontSize:n.largeFontSize,height:`calc(${n.largeHeight} - (2 * ${n.borderWidth}))`,lineHeight:`calc(${n.largeHeight} - (2 * ${n.borderWidth}))`}},l=p?{cursor:"not-allowed",pointerEvents:"none",opacity:"0.5"}:{},d=f?{opacity:1,transform:"scale(1)"}:{opacity:0,transform:"scale(0.95)"},a=u?{borderColor:n.errorBorderColor}:{},c=u&&f?{borderColor:n.errorBorderColor}:{},h={all:"initial","&::-ms-clear":{display:"none"},WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",appearance:"none",margin:0,width:"100%",display:"block",boxSizing:"border-box",outline:"none",fontFamily:n.fontFamily,fontWeight:n.fontWeight,color:n.color,padding:`0 ${n.padding}`,background:"transparent",border:"none",verticalAlign:"baseline",'&[autocomplete="off"]::-webkit-contacts-auto-fill-button':{display:"none !important"},"&:focus":{boxShadow:"initial"},"&::placeholder":{color:n.placeholderColor},...O[t],textAlign:o},A={boxSizing:"border-box",fontFamily:n.fontFamily,maxWidth:"100%",overflow:"visible",unicodeBidi:"isolate"},z={...A,display:"flex",alignItems:"center",justifyContent:"flex-start",flexDirection:"row"},y={...A,flexShrink:0};return{textInput:{label:"textInput",...h,"&:is(input)[type]":h,"&:-webkit-any(input)[type]":h},facade:{label:"textInput__facade",position:"relative",display:"block",boxSizing:"border-box",border:`${n.borderWidth} ${n.borderStyle} ${n.borderColor}`,borderRadius:n.borderRadius,background:n.background,color:n.color,"&::before":{content:'""',pointerEvents:"none",position:"absolute",display:"block",boxSizing:"border-box",top:"-0.25rem",bottom:"-0.25rem",left:"-0.25rem",right:"-0.25rem",border:`${n.focusOutlineWidth} ${n.focusOutlineStyle} ${n.focusOutlineColor}`,borderRadius:`calc(${n.borderRadius} * 1.5)`,transition:"all 0.2s",...d,...c},...l,...a},layout:{label:"textInput__layout",...z,...!r&&{flexWrap:"wrap"}},beforeElement:{label:"textInput__beforeElement",...y,paddingInlineStart:n.padding,...g===!1&&{paddingInlineStart:0}},innerWrapper:{label:"textInput__innerWrapper",...y,minWidth:"0.0625rem",flexShrink:1,flexGrow:1},inputLayout:{label:"textInput__inputLayout",...z},afterElement:{marginTop:"-1px",marginBottom:"-1px",label:"textInput__afterElement",...y,paddingInlineEnd:n.padding,...b===!1&&{paddingInlineEnd:0}}}},Qo=n=>{var e,i,t,o,r,p,u;const f=n.colors,g=n.typography,b=n.borders,O=n.spacing,l=n.forms,d=n.key,a={canvas:{color:n["ic-brand-font-color-dark"],focusOutlineColor:n["ic-brand-primary"]}};return{...{fontFamily:g==null?void 0:g.fontFamily,fontWeight:g==null?void 0:g.fontWeightNormal,borderWidth:b==null?void 0:b.widthSmall,borderStyle:b==null?void 0:b.style,borderColor:f==null||(e=f.contrasts)===null||e===void 0?void 0:e.grey1214,borderRadius:b==null?void 0:b.radiusMedium,color:f==null||(i=f.contrasts)===null||i===void 0?void 0:i.grey125125,background:f==null||(t=f.contrasts)===null||t===void 0?void 0:t.white1010,padding:O==null?void 0:O.small,focusOutlineWidth:b==null?void 0:b.widthMedium,focusOutlineStyle:b==null?void 0:b.style,focusOutlineColor:f==null||(o=f.contrasts)===null||o===void 0?void 0:o.blue4570,errorBorderColor:f==null||(r=f.contrasts)===null||r===void 0?void 0:r.red4570,errorOutlineColor:f==null||(p=f.contrasts)===null||p===void 0?void 0:p.red4570,placeholderColor:f==null||(u=f.contrasts)===null||u===void 0?void 0:u.grey4570,smallFontSize:g==null?void 0:g.fontSizeSmall,smallHeight:l==null?void 0:l.inputHeightSmall,mediumFontSize:g==null?void 0:g.fontSizeMedium,mediumHeight:l==null?void 0:l.inputHeightMedium,largeFontSize:g==null?void 0:g.fontSizeLarge,largeHeight:l==null?void 0:l.inputHeightLarge},...a[d]}},es={renderLabel:s.oneOfType([s.node,s.func]),type:s.oneOf(["text","email","url","tel","search","password"]),id:s.string,value:to(s.string),defaultValue:s.string,interaction:s.oneOf(["enabled","disabled","readonly"]),messages:s.arrayOf(we.message),size:s.oneOf(["small","medium","large"]),textAlign:s.oneOf(["start","center"]),width:s.string,htmlSize:s.number,display:s.oneOf(["inline-block","block"]),shouldNotWrap:s.bool,placeholder:s.string,isRequired:s.bool,elementRef:s.func,inputRef:s.func,inputContainerRef:s.func,renderBeforeInput:s.oneOfType([s.node,s.func]),renderAfterInput:s.oneOfType([s.node,s.func]),onChange:s.func,onBlur:s.func,onFocus:s.func},is=["renderLabel","type","id","value","defaultValue","interaction","messages","size","textAlign","width","htmlSize","display","shouldNotWrap","placeholder","isRequired","elementRef","inputRef","inputContainerRef","renderBeforeInput","renderAfterInput","onChange","onBlur","onFocus"],ts=["type","size","htmlSize","display","textAlign","placeholder","value","defaultValue","isRequired","onFocus"];var nt,rt,lt,$e,ue;let os=(nt=ii(),rt=M(Jo,Qo),lt=Oi(),nt($e=rt($e=lt($e=(ue=class extends v.Component{constructor(e){super(e),this.ref=null,this._input=null,this._beforeElement=null,this._afterElement=null,this._defaultId=void 0,this._messagesId=void 0,this._focusListener=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)},this.makeStyleProps=()=>{const i=this.interaction,t=this.state,o=t.hasFocus,r=t.beforeElementHasWidth,p=t.afterElementHasWidth;return{disabled:i==="disabled",invalid:this.invalid,focused:o,beforeElementHasWidth:r,afterElementHasWidth:p}},this.handleInputRef=i=>{this._input=i,typeof this.props.inputRef=="function"&&this.props.inputRef(i)},this.handleChange=i=>{typeof this.props.onChange=="function"&&this.props.onChange(i,i.target.value)},this.handleBlur=i=>{typeof this.props.onBlur=="function"&&this.props.onBlur(i),this.setState({hasFocus:!1})},this.handleFocus=i=>{typeof this.props.onFocus=="function"&&this.props.onFocus(i),this.setState({hasFocus:!0})},this.state={hasFocus:!1,beforeElementHasWidth:void 0,afterElementHasWidth:void 0},this._defaultId=e.deterministicId(),this._messagesId=e.deterministicId("TextInput-messages")}componentDidMount(){var e,i;this._input&&(this._focusListener=oo(this._input,"focus",this.handleFocus),this.setState({beforeElementHasWidth:this.getElementHasWidth(this._beforeElement),afterElementHasWidth:this.getElementHasWidth(this._afterElement)})),(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i,this.makeStyleProps())}componentWillUnmount(){this._focusListener&&this._focusListener.remove()}componentDidUpdate(e){var i,t;e.renderBeforeInput!==this.props.renderBeforeInput&&this.setState({beforeElementHasWidth:this.getElementHasWidth(this._beforeElement)}),e.renderAfterInput!==this.props.renderAfterInput&&this.setState({afterElementHasWidth:this.getElementHasWidth(this._afterElement)}),We({props:e})!=="disabled"&&We({props:this.props})==="disabled"&&this.setState({hasFocus:!1}),(i=(t=this.props).makeStyles)===null||i===void 0||i.call(t,this.makeStyleProps())}focus(){var e;(e=this._input)===null||e===void 0||e.focus()}get interaction(){return We({props:this.props})}get hasMessages(){return!!this.props.messages&&this.props.messages.length>0}get invalid(){return!!this.props.messages&&this.props.messages.findIndex(e=>e.type==="error")>=0}get focused(){return Bt(this._input)}get value(){var e;return(e=this._input)===null||e===void 0?void 0:e.value}get id(){return this.props.id||this._defaultId}renderInput(){var e;const i=this.props,t=i.type;i.size;const o=i.htmlSize;i.display,i.textAlign;const r=i.placeholder,p=i.value,u=i.defaultValue,f=i.isRequired;i.onFocus;const g=B(i,ts),b=Je(g),O=this.interaction;let l="";return b["aria-describedby"]&&(l=`${b["aria-describedby"]}`),this.hasMessages&&(l=l!==""?`${l} ${this._messagesId}`:this._messagesId),m("input",Object.assign({},b,{css:(e=this.props.styles)===null||e===void 0?void 0:e.textInput,defaultValue:u,value:p,placeholder:r,ref:this.handleInputRef,type:t,id:this.id,required:f,"aria-invalid":this.invalid?"true":void 0,disabled:O==="disabled",readOnly:O==="readonly","aria-describedby":l!==""?l:void 0,size:o,onChange:this.handleChange,onBlur:this.handleBlur}))}getElementHasWidth(e){if(!e)return;const i=getComputedStyle(e),t=i.width,o=i.paddingInlineStart,r=i.paddingInlineEnd;return t==="auto"||t===""?!0:parseFloat(t)-parseFloat(o)-parseFloat(r)>0}render(){const e=this.props,i=e.width,t=e.display,o=e.renderLabel,r=e.renderBeforeInput,p=e.renderAfterInput,u=e.messages,f=e.inputContainerRef,g=e.styles,b=r?ie(r):null,O=p?ie(p):null,l=!!b||!!O;return m(oe,{id:this.id,label:ie(o),messagesId:this._messagesId,messages:u,inline:t==="inline-block",width:i,inputContainerRef:f,layout:this.props.layout,elementRef:this.handleRef},m("span",{css:g==null?void 0:g.facade},l?m("div",null,m("span",{css:g==null?void 0:g.layout},b&&m("span",{css:g==null?void 0:g.beforeElement,ref:d=>{this._beforeElement=d}},b),m("span",{css:g==null?void 0:g.innerWrapper},m("span",{css:g==null?void 0:g.inputLayout},m("span",{css:g==null?void 0:g.innerWrapper},this.renderInput()),O&&m("span",{css:g==null?void 0:g.afterElement,ref:d=>{this._afterElement=d}},O))))):this.renderInput()))}},ue.displayName="TextInput",ue.componentId="TextInput",ue.allowedProps=is,ue.propTypes=es,ue.defaultProps={type:"text",interaction:void 0,isRequired:!1,display:"block",shouldNotWrap:!1,size:"medium",textAlign:"start",messages:[]},ue))||$e)||$e)||$e);const ss=(n,e)=>{const i=e.size,t={small:{fontSize:n.smallIconSize},medium:{fontSize:n.mediumIconSize},large:{fontSize:n.largeIconSize}};return{select:{label:"select",fontSize:n.fontSize,fontFamily:n.fontFamily,fontWeight:n.fontWeight,color:n.color},icon:{label:"select__icon",...t[i]},assistiveText:{label:"select__assistiveText",display:"none"}}},ns=n=>{var e,i;const t=n.colors,o=n.typography;return{...{fontSize:o==null?void 0:o.fontSizeMedium,fontFamily:o==null?void 0:o.fontFamily,fontWeight:o==null?void 0:o.fontWeightNormal,smallIconSize:o==null?void 0:o.fontSizeXSmall,mediumIconSize:o==null?void 0:o.fontSizeSmall,largeIconSize:o==null?void 0:o.fontSizeMedium,color:t==null||(e=t.contrasts)===null||e===void 0?void 0:e.grey125125,background:t==null||(i=t.contrasts)===null||i===void 0?void 0:i.white1010}}},rs={id:s.string.isRequired,isHighlighted:s.bool,isSelected:s.bool,isDisabled:s.bool,renderBeforeLabel:s.oneOfType([s.node,s.func]),renderAfterLabel:s.oneOfType([s.node,s.func]),children:s.node},ls=["id","isHighlighted","isSelected","isDisabled","renderBeforeLabel","renderAfterLabel","children"];let T=class extends v.Component{render(){return null}};T.displayName="Option";T.componentId="Select.Option";T.allowedProps=ls;T.propTypes=rs;T.defaultProps={isHighlighted:!1,isSelected:!1,isDisabled:!1};const as={renderLabel:s.oneOfType([s.node,s.func]).isRequired,children:ke.oneOf([T])},ds=["renderLabel","children"];let V=class extends v.Component{render(){return null}};V.displayName="Group";V.componentId="Select.Group";V.allowedProps=ds;V.propTypes=as;V.defaultProps={};const ps={renderLabel:s.oneOfType([s.node,s.func]).isRequired,inputValue:s.string,id:s.string,size:s.oneOf(["small","medium","large"]),assistiveText:s.string,placeholder:s.string,interaction:s.oneOf(["enabled","disabled","readonly"]),isRequired:s.bool,isInline:s.bool,width:s.string,htmlSize:s.number,visibleOptionsCount:s.number,optionsMaxHeight:s.string,optionsMaxWidth:s.string,messages:s.arrayOf(we.message),placement:Re.placement,constrain:Re.constrain,mountNode:Re.mountNode,onFocus:s.func,onBlur:s.func,onInputChange:s.func,isShowingOptions:s.bool,onRequestShowOptions:s.func,onRequestHideOptions:s.func,onRequestHighlightOption:s.func,onRequestSelectOption:s.func,inputRef:s.func,listRef:s.func,renderBeforeInput:s.oneOfType([s.node,s.func]),renderAfterInput:s.oneOfType([s.node,s.func]),children:ke.oneOf([V,T]),shouldNotWrap:s.bool,scrollToHighlightedOption:s.bool},cs=["renderLabel","inputValue","isShowingOptions","id","size","assistiveText","placeholder","interaction","isRequired","isInline","width","htmlSize","visibleOptionsCount","optionsMaxHeight","optionsMaxWidth","messages","placement","constrain","mountNode","onFocus","onBlur","onInputChange","onRequestShowOptions","onRequestHideOptions","onRequestHighlightOption","onRequestSelectOption","inputRef","listRef","renderBeforeInput","renderAfterInput","children","shouldNotWrap","scrollToHighlightedOption"],us=["id","renderLabel","children"],hs=["renderLabel","inputValue","placeholder","isRequired","shouldNotWrap","size","isInline","width","htmlSize","messages","renderBeforeInput","renderAfterInput","onFocus","onBlur","onInputChange","onRequestHideOptions"],fs=["ref"];var at,dt,pt,xe,Q,ct,ut,ht,ft;const qt=v.memo(function(e){const i=e.optionsItemProps,t=e.children;return m(ye.Item,Object.assign({as:"li"},i),t)},(n,e)=>n.selectOption.props.isHighlighted===e.selectOption.props.isHighlighted&&n.selectOption.props.isSelected===e.selectOption.props.isSelected&&n.selectOption.props.isDisabled===e.selectOption.props.isDisabled&&n.selectOption.props.children===e.selectOption.props.children&&n.selectOption.props.id===e.selectOption.props.id&&n.selectOption.props.renderBeforeLabel===e.selectOption.props.renderBeforeLabel&&n.selectOption.props.renderAfterLabel===e.selectOption.props.renderAfterLabel&&n.children===e.children);qt.displayName="Item";let Xe=(at=ii(),dt=M(ss,ns),pt=Oi(),at(xe=dt(xe=pt(xe=(Q=class Gt extends v.Component{constructor(...e){super(...e),this.state={hasInputRef:!1},this.ref=null,this._input=null,this._defaultId=this.props.deterministicId(),this._inputContainer=null,this._listView=null,this._optionIds=[],this._optionHeight=36,this.handleInputRef=i=>{var t,o;this.state.hasInputRef||this.setState({hasInputRef:!0}),this._input=i,(t=(o=this.props).inputRef)===null||t===void 0||t.call(o,i)},this.handleListRef=i=>{var t,o;(t=(o=this.props).listRef)===null||t===void 0||t.call(o,i),i&&i.querySelector('[role="option"]')&&(this._optionHeight=i.querySelector('[role="option"]').offsetHeight)},this.handleInputContainerRef=i=>{this._inputContainer=i}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i),this.props.scrollToHighlightedOption&&requestAnimationFrame(()=>this.scrollToOption(this.highlightedOptionId))}focus(){this._input&&this._input.focus()}get childrenArray(){return v.Children.toArray(this.props.children)}getGroupChildrenArray(e){return v.Children.toArray(e.props.children)}get focused(){return this._input?Bt(this._input):!1}get id(){return this.props.id||this._defaultId}get width(){return this._inputContainer?this._inputContainer.offsetWidth:void 0}get interaction(){return We({props:this.props})}get highlightedOptionId(){let e;return this.childrenArray.forEach(i=>{P(i,[V])?this.getGroupChildrenArray(i).forEach(t=>{t.props.isHighlighted&&(e=t.props.id)}):i.props.isHighlighted&&(e=i.props.id)}),e}get selectedOptionId(){const e=[];if(this.childrenArray.forEach(i=>{P(i,[V])?this.getGroupChildrenArray(i).forEach(t=>{t.props.isSelected&&e.push(t.props.id)}):i.props.isSelected&&e.push(i.props.id)}),e.length===1)return e[0];if(e.length!==0)return e}scrollToOption(e){if(this._listView){const i=this._listView.querySelector(`[id="${e}"]`);if(!i)return;const t=i.parentNode,o=Hi(this._listView).top,r=Hi(t).top,p=o+this._listView.clientHeight,u=r+(t?t.clientHeight:0);u>p?this._listView.scrollTop+=u-p:r{t==null||t(p);const u=this.selectedOptionId;u&&!Array.isArray(u)&&this.highlightOption(p,u)},onRequestHideOptions:p=>{o==null||o(p)},onRequestHighlightOption:(p,{id:u,direction:f})=>{if(!i)return;const g=this.highlightedOptionId;let b=this._optionIds.indexOf(u)>-1?u:void 0;if(!b)if(!g)b=this._optionIds[0];else{const O=this._optionIds.indexOf(g);b=O>-1?this._optionIds[O+f]:void 0}b&&this.highlightOption(p,b)},onRequestHighlightFirstOption:p=>{this.highlightOption(p,this._optionIds[0])},onRequestHighlightLastOption:p=>{this.highlightOption(p,this._optionIds[this._optionIds.length-1])},onRequestSelectOption:(p,{id:u})=>{u&&this._optionIds.indexOf(u)!==-1&&(r==null||r(p,{id:u}))}}:{}}renderOption(e,i){const t=i.getOptionProps,o=i.getDisabledOptionProps,r=e.props,p=r.id,u=r.isDisabled,f=r.isHighlighted,g=r.isSelected,b=r.renderBeforeLabel,O=r.renderAfterLabel,l=r.children,d=c=>{var h;return typeof c=="function"&&!(c!=null&&(h=c.prototype)!==null&&h!==void 0&&h.isReactComponent)?c.bind(null,{id:p,isDisabled:u,isSelected:g,isHighlighted:f,children:l}):c};let a={...L(e.props,[...T.allowedProps,...ye.Item.allowedProps]),...t({id:p}),renderBeforeLabel:d(b),renderAfterLabel:d(O)};return g?a.variant="selected":f&&(a.variant="highlighted"),u?(a.variant="disabled",a={...a,...o()}):this._optionIds.push(p),m(qt,{optionsItemProps:a,selectOption:e},l)}renderGroup(e,i){const t=i.getOptionProps,o=i.getDisabledOptionProps,r=i.isFirstChild,p=i.isLastChild,u=i.afterGroup,f=e.props,g=f.id,b=f.renderLabel,O=f.children,l=B(f,us),d=[];return!r&&!u&&d.push(ct||(ct=m(ye.Separator,null))),d.push(m(ye,Object.assign({id:g,as:"ul",role:"group",renderLabel:b},L(l,[...ye.allowedProps,...V.allowedProps])),v.Children.map(O,a=>this.renderOption(a,{getOptionProps:t,getDisabledOptionProps:o})))),p||d.push(ut||(ut=m(ye.Separator,null))),d}renderList(e){const i=e.getListProps,t=e.getOptionProps,o=e.getDisabledOptionProps,r=this.props,p=r.isShowingOptions,u=r.optionsMaxWidth,f=r.optionsMaxHeight,g=r.visibleOptionsCount,b=r.children;let O=!1;const l=p?{display:"block",overflowY:"auto",maxHeight:f||this._optionHeight*g,maxWidth:u||this.width,background:"primary",elementRef:d=>this._listView=d}:{maxHeight:0};return m(G,l,m(ye,i({as:"ul",elementRef:this.handleListRef}),p?v.Children.map(b,(d,a)=>{if(!(!d||!P(d,[V,T]))){if(P(d,[T]))return O=!1,this.renderOption(d,{getOptionProps:t,getDisabledOptionProps:o});if(P(d,[V])){const c=O;return O=!0,this.renderGroup(d,{getOptionProps:t,getDisabledOptionProps:o,isFirstChild:a===0,isLastChild:a===v.Children.count(b)-1,afterGroup:c})}}}):null))}renderIcon(){const e=this.props,i=e.styles,t=e.isShowingOptions;return m("span",{css:i==null?void 0:i.icon},t?ht||(ht=m(Ae,{inline:!1})):ft||(ft=m(Ie,{inline:!1})))}renderInput(e){const i=e.getInputProps,t=e.getTriggerProps,o=this.props,r=o.renderLabel,p=o.inputValue,u=o.placeholder,f=o.isRequired,g=o.shouldNotWrap,b=o.size,O=o.isInline,l=o.width,d=o.htmlSize,a=o.messages,c=o.renderBeforeInput,h=o.renderAfterInput,A=o.onFocus,z=o.onBlur,y=o.onInputChange,w=o.onRequestHideOptions,S=B(o,hs),R=this.interaction,W=L(S,Gt.allowedProps),Se=t({...W}),Oe=Se.ref,se=B(Se,fs),He=typeof y<"u",Me=He?{}:{role:po()?"button":"combobox",title:p,"aria-autocomplete":void 0,"aria-readonly":!0};W.autoComplete&&(Me.autoComplete=W.autoComplete);const X={id:this.id,renderLabel:r,placeholder:u,size:b,width:l,htmlSize:d,messages:a,value:p,inputRef:Mi(Oe,this.handleInputRef),inputContainerRef:this.handleInputContainerRef,interaction:R==="enabled"&&!He?"readonly":R,isRequired:f,shouldNotWrap:g,display:O?"inline-block":"block",renderBeforeInput:c,renderAfterInput:h||this.renderIcon(),onChange:typeof y=="function"?y:p?()=>{}:void 0,onFocus:A,onBlur:Mi(z,w),...Me};return m(os,Object.assign({},se,i(X)))}render(){const e=this.props,i=e.constrain,t=e.placement,o=e.mountNode,r=e.assistiveText,p=e.isShowingOptions,u=e.styles;this._optionIds=[];const f=this.highlightedOptionId,g=this.selectedOptionId;return m(so,Object.assign({highlightedOptionId:f,isShowingOptions:p,selectedOptionId:g},this.getEventHandlers()),({getRootProps:b,getInputProps:O,getTriggerProps:l,getListProps:d,getOptionProps:a,getDisabledOptionProps:c,getDescriptionProps:h})=>m("span",Object.assign({},b({css:u==null?void 0:u.select}),{ref:A=>this.ref=A}),this.renderInput({getInputProps:O,getTriggerProps:l}),m("span",Object.assign({},h(),{css:u==null?void 0:u.assistiveText}),r),m(no,{constrain:i,placement:t,mountNode:o,positionTarget:this._inputContainer,isShowingContent:p,shouldReturnFocus:!1,withArrow:!1},this.renderList({getListProps:d,getOptionProps:a,getDisabledOptionProps:c}))))}},Q.displayName="Select",Q.componentId="Select",Q.allowedProps=cs,Q.propTypes=ps,Q.defaultProps={inputValue:"",isShowingOptions:!1,size:"medium",interaction:void 0,isRequired:!1,isInline:!1,visibleOptionsCount:8,placement:"bottom stretch",constrain:"window",shouldNotWrap:!1,scrollToHighlightedOption:!0},Q.Option=T,Q.Group=V,Q))||xe)||xe)||xe);const gs={id:s.string.isRequired,value:s.oneOfType([s.string,s.number]).isRequired,isDisabled:s.bool,renderBeforeLabel:s.oneOfType([s.node,s.func]),renderAfterLabel:s.oneOfType([s.node,s.func]),children:s.string},ms=["id","value","isDisabled","renderBeforeLabel","renderAfterLabel","children"];class q extends v.Component{render(){return null}}q.displayName="Option";q.componentId="SimpleSelect.Option";q.allowedProps=ms;q.propTypes=gs;q.defaultProps={isDisabled:!1};const bs={renderLabel:s.oneOfType([s.node,s.func]).isRequired,children:ke.oneOf([q])},vs=["renderLabel","children"];class Y extends v.Component{render(){return null}}Y.displayName="Group";Y.componentId="SimpleSelect.Group";Y.allowedProps=vs;Y.propTypes=bs;Y.defaultProps={};const ys={renderLabel:s.oneOfType([s.node,s.func]).isRequired,value:s.oneOfType([s.string,s.number]),defaultValue:s.string,id:s.string,size:s.oneOf(["small","medium","large"]),assistiveText:s.string,placeholder:s.string,interaction:s.oneOf(["enabled","disabled","readonly"]),isRequired:s.bool,isInline:s.bool,width:s.string,visibleOptionsCount:s.number,optionsMaxHeight:s.string,optionsMaxWidth:s.string,messages:s.arrayOf(we.message),placement:Re.placement,constrain:Re.constrain,mountNode:Re.mountNode,onChange:s.func,onFocus:s.func,onBlur:s.func,onShowOptions:s.func,onHideOptions:s.func,inputRef:s.func,listRef:s.func,renderEmptyOption:s.oneOfType([s.node,s.func]),renderBeforeInput:s.oneOfType([s.node,s.func]),renderAfterInput:s.oneOfType([s.node,s.func]),children:ke.oneOf([Y,q])},ws=["renderLabel","value","defaultValue","id","size","assistiveText","placeholder","interaction","isRequired","isInline","width","visibleOptionsCount","optionsMaxHeight","optionsMaxWidth","messages","placement","constrain","mountNode","onChange","onFocus","onBlur","onShowOptions","onHideOptions","inputRef","listRef","renderEmptyOption","renderBeforeInput","renderAfterInput","children"],Ss=["id","value","children","renderBeforeLabel","renderAfterLabel"],Os=["id","renderLabel","children"],_s=["renderLabel","value","defaultValue","id","size","assistiveText","placeholder","interaction","isRequired","isInline","width","optionsMaxWidth","optionsMaxHeight","visibleOptionsCount","messages","placement","constrain","mountNode","inputRef","listRef","renderEmptyOption","renderBeforeInput","renderAfterInput","onFocus","onBlur","onShowOptions","onHideOptions","children"];var gt,mt,Ke,ee;let bt=(gt=ii(),mt=Oi(),gt(Ke=mt(Ke=(ee=class extends v.Component{constructor(e){super(e),this.ref=null,this._emptyOptionId=void 0,this.getOption=(t,o)=>{const r=v.Children.toArray(this.props.children);let p;for(let u=0;u{this.ref=t},this.handleBlur=t=>{this.setState({highlightedOptionId:void 0}),typeof this.props.onBlur=="function"&&this.props.onBlur(t)},this.handleShowOptions=t=>{this.setState({isShowingOptions:!0}),typeof this.props.onShowOptions=="function"&&this.props.onShowOptions(t)},this.handleHideOptions=t=>{this.setState(o=>{const r=this.getOption("id",o.selectedOptionId);return{isShowingOptions:!1,highlightedOptionId:void 0,inputValue:r?r.props.children:""}}),typeof this.props.onHideOptions=="function"&&this.props.onHideOptions(t)},this.handleHighlightOption=(t,{id:o})=>{if(o===this._emptyOptionId)return;const r=this.getOption("id",o),p=r==null?void 0:r.props.children,u=t.type==="keydown"?p:this.state.inputValue;this.setState({highlightedOptionId:o,inputValue:u})},this.handleSelectOption=(t,{id:o})=>{if(o===this._emptyOptionId){this.setState({isShowingOptions:!1});return}const r=this.getOption("id",o),p=r&&r.props.value;this.isControlled?this.setState({isShowingOptions:!1}):this.setState(u=>({isShowingOptions:!1,selectedOptionId:o,inputValue:r?r.props.children:u.inputValue})),r&&typeof this.props.onChange=="function"&&this.props.onChange(t,{value:p,id:o}),typeof this.props.onHideOptions=="function"&&this.props.onHideOptions(t)};const i=this.getInitialOption(e);this.state={inputValue:i?i.props.children:"",isShowingOptions:!1,highlightedOptionId:void 0,selectedOptionId:i?i.props.id:void 0},this._emptyOptionId=e.deterministicId("Select-EmptyOption")}get _select(){return this.ref}focus(){this.ref&&this.ref.focus()}get focused(){return this.ref?this.ref.focused:!1}get id(){return this.ref?this.ref.id:void 0}get isControlled(){return typeof this.props.value<"u"}get interaction(){return We({props:this.props})}componentDidUpdate(e){if(this.props.value!==e.value){let i=this.getOption("value",this.props.value);typeof this.props.value>"u"&&(i=this.getOption("value",e.value)),this.setState({inputValue:i?i.props.children:"",selectedOptionId:i?i.props.id:""})}}getInitialOption(e){const i=e.value,t=e.defaultValue,o=i||t;return typeof o=="string"||typeof o=="number"?this.getOption("value",o):this.getFirstOption()}getOptionLabelById(e){const i=this.getOption("id",e);return i?i.props.children:""}getFirstOption(){const e=v.Children.toArray(this.props.children);let i;for(let t=0;tP(i,[q])?this.renderOption(i):P(i,[Y])?this.renderGroup(i):null).filter(i=>!!i),e.length===0?this.renderEmptyOption():e}renderEmptyOption(){return H.createElement(Xe.Option,{id:this._emptyOptionId,isHighlighted:!1,isSelected:!1},ie(this.props.renderEmptyOption))}renderOption(e){const i=e.props,t=i.id,o=i.value,r=i.children,p=i.renderBeforeLabel,u=i.renderAfterLabel,f=B(i,Ss),g=e.props.isDisabled,b=t===this.state.selectedOptionId,O=t===this.state.highlightedOptionId,l=d=>{var a;return typeof d=="function"&&!(d!=null&&(a=d.prototype)!==null&&a!==void 0&&a.isReactComponent)?d.bind(null,{id:t,isDisabled:g,isSelected:b,isHighlighted:O,children:r}):d};return H.createElement(Xe.Option,Object.assign({id:t,value:o,key:e.key||t,isHighlighted:t===this.state.highlightedOptionId,isSelected:t===this.state.selectedOptionId,isDisabled:e.props.isDisabled,renderBeforeLabel:l(p),renderAfterLabel:l(u)},Je(f)),r)}renderGroup(e){const i=e.props,t=i.id,o=i.renderLabel,r=i.children,p=B(i,Os);return H.createElement(Xe.Group,Object.assign({renderLabel:o,key:e.key||t},Je(p)),v.Children.map(r,u=>this.renderOption(u)))}render(){const e=this.props,i=e.renderLabel;e.value,e.defaultValue;const t=e.id,o=e.size,r=e.assistiveText,p=e.placeholder;e.interaction;const u=e.isRequired,f=e.isInline,g=e.width,b=e.optionsMaxWidth,O=e.optionsMaxHeight,l=e.visibleOptionsCount,d=e.messages,a=e.placement,c=e.constrain,h=e.mountNode,A=e.inputRef,z=e.listRef;e.renderEmptyOption;const y=e.renderBeforeInput,w=e.renderAfterInput,S=e.onFocus;e.onBlur,e.onShowOptions,e.onHideOptions,e.children;const R=B(e,_s);return H.createElement(Xe,Object.assign({renderLabel:i,inputValue:this.state.inputValue,isShowingOptions:this.state.isShowingOptions,id:t,size:o,assistiveText:r,placeholder:p,interaction:this.interaction,isRequired:u,isInline:f,width:g,optionsMaxWidth:b,optionsMaxHeight:O,visibleOptionsCount:l,messages:d,placement:a,constrain:c,mountNode:h,ref:this.handleRef,inputRef:A,listRef:z,renderBeforeInput:y,renderAfterInput:w,onFocus:S,onBlur:this.handleBlur,onRequestShowOptions:this.handleShowOptions,onRequestHideOptions:this.handleHideOptions,onRequestHighlightOption:this.handleHighlightOption,onRequestSelectOption:this.handleSelectOption},Je(R)),this.renderChildren())}},ee.displayName="SimpleSelect",ee.componentId="SimpleSelect",ee.Option=q,ee.Group=Y,ee.allowedProps=ws,ee.propTypes=ys,ee.defaultProps={size:"medium",isRequired:!1,isInline:!1,visibleOptionsCount:8,placement:"bottom stretch",constrain:"window",renderEmptyOption:"---"},ee))||Ke)||Ke);const $s=(n,e)=>{const i=e.layout;return{table:{label:"table",fontSize:n.fontSize,fontFamily:n.fontFamily,fontWeight:n.fontWeight,color:n.color,background:n.background,display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,...i==="fixed"&&{tableLayout:"fixed"},caption:{textAlign:"start"}}}},xs=n=>{var e,i;const t=n.colors,o=n.typography,r=n.key,p={canvas:{color:n["ic-brand-font-color-dark"]}};return{...{fontSize:o==null?void 0:o.fontSizeMedium,fontFamily:o==null?void 0:o.fontFamily,fontWeight:o==null?void 0:o.fontWeightNormal,color:t==null||(e=t.contrasts)===null||e===void 0?void 0:e.grey125125,background:t==null||(i=t.contrasts)===null||i===void 0?void 0:i.white1010},...p[r]}},Rs=n=>({head:{label:"head",fontSize:n.fontSize,fontFamily:n.fontFamily,fontWeight:n.fontWeight,color:n.color,background:n.background}}),ks=n=>{var e,i;const t=n.colors,o=n.typography;return{...{fontSize:o==null?void 0:o.fontSizeMedium,fontFamily:o==null?void 0:o.fontFamily,fontWeight:o==null?void 0:o.fontWeightNormal,color:t==null||(e=t.contrasts)===null||e===void 0?void 0:e.grey125125,background:t==null||(i=t.contrasts)===null||i===void 0?void 0:i.white1010}}},Cs=(n,e)=>{const i=e.hover,t=e.isStacked;return{row:{label:"row",fontSize:n.fontSize,fontFamily:n.fontFamily,fontWeight:n.fontWeight,color:n.color,background:n.background,boxSizing:"border-box",borderBottomStyle:"solid",borderBottomWidth:"0.0625rem",borderBottomColor:n.borderColor,...i&&{borderLeft:"0.1875rem solid transparent",borderRight:"0.1875rem solid transparent","&:hover":{borderLeftColor:n.hoverBorderColor,borderRightColor:n.hoverBorderColor}},...t&&{padding:n.padding}}}},Is=n=>{var e,i,t,o;const r=n.colors,p=n.typography,u=n.spacing,f=n.key,g={canvas:{hoverBorderColor:n["ic-brand-primary"]}};return{...{fontSize:p==null?void 0:p.fontSizeMedium,fontFamily:p==null?void 0:p.fontFamily,fontWeight:p==null?void 0:p.fontWeightNormal,color:r==null||(e=r.contrasts)===null||e===void 0?void 0:e.grey125125,background:r==null||(i=r.contrasts)===null||i===void 0?void 0:i.white1010,borderColor:r==null||(t=r.contrasts)===null||t===void 0?void 0:t.grey1214,hoverBorderColor:r==null||(o=r.contrasts)===null||o===void 0?void 0:o.blue4570,padding:`${u==null?void 0:u.xSmall} 0`},...g[f]}},As={children:s.node,hover:s.bool,isStacked:s.bool,headers:s.arrayOf(s.oneOfType([s.node,s.func]))},Ls=["children","hover","isStacked","headers"];var vt,yt,he;let gi=(vt=M(Cs,Is),vt(yt=(he=class mi extends v.Component{componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=this.props,i=e.children,t=e.styles,o=e.isStacked,r=e.headers;return m(G,Object.assign({},G.omitViewProps(L(this.props,mi.allowedProps),mi),{as:o?"div":"tr",css:t==null?void 0:t.row,role:o?"row":void 0}),v.Children.toArray(i).filter(Boolean).map((p,u)=>Ne(p,{key:p.props.name,isStacked:o,header:r&&r[u]})))}},he.displayName="Row",he.componentId="Table.Row",he.allowedProps=Ls,he.propTypes=As,he.defaultProps={children:null},he))||yt);const Fs=(n,e)=>{const i=e.onRequestSort,t=e.textAlign,o={color:n.color,fontSize:n.fontSize,fontFamily:n.fontFamily,fontWeight:"bold",lineHeight:n.lineHeight,padding:n.padding},r={start:{flexDirection:"row"},center:{justifyContent:"center"},end:{flexDirection:"row-reverse"}};return{colHeader:{label:"colHeader",background:n.background,verticalAlign:"middle",boxSizing:"border-box",...!i&&o,textAlign:t},button:{label:"colHeader__button",...o,display:"flex",alignItems:"center",boxSizing:"border-box",border:"none",width:"100%",height:"100%",background:"transparent",cursor:"pointer",outline:"none","&::-moz-focus-inner":{border:0},"&:focus":{outline:`${n.focusOutlineWidth} ${n.focusOutlineStyle} ${n.focusOutlineColor}`},...r[t]},buttonContent:{label:"colHeader__buttonContent",display:"flex",alignItems:"center"}}},Ps=n=>{var e,i,t,o;const r=n.typography,p=n.colors,u=n.borders,f=n.spacing;return{...{fontSize:r==null?void 0:r.fontSizeMedium,fontFamily:r==null?void 0:r.fontFamily,color:p==null||(e=p.contrasts)===null||e===void 0?void 0:e.grey125125,background:p==null||(i=p.contrasts)===null||i===void 0?void 0:i.white1010,borderColor:p==null||(t=p.contrasts)===null||t===void 0?void 0:t.grey1214,lineHeight:r==null?void 0:r.lineHeightCondensed,padding:`${f==null?void 0:f.xSmall} ${f==null?void 0:f.small}`,focusOutlineColor:p==null||(o=p.contrasts)===null||o===void 0?void 0:o.blue4570,focusOutlineWidth:u==null?void 0:u.widthMedium,focusOutlineStyle:u==null?void 0:u.style}}},Hs={isStacked:s.bool,id:s.string.isRequired,stackedSortByLabel:s.string,children:s.oneOfType([s.node,s.func]),width:s.oneOfType([s.string,s.number]),textAlign:s.oneOf(["start","center","end"]),sortDirection:s.oneOf(["none","ascending","descending"]),onRequestSort:s.func,scope:s.oneOf(["row","col","rowgroup","colgroup","auto"])},Ms=["id","isStacked","stackedSortByLabel","children","width","textAlign","sortDirection","onRequestSort","scope"];var wt,St,fe,Ot,_t;let bi=(wt=M(Fs,Ps),wt(St=(fe=class jt extends v.Component{constructor(...e){super(...e),this.handleClick=i=>{const t=this.props,o=t.id,r=t.onRequestSort;r&&r(i,{id:o})}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}renderSortArrow(){const e=this.props,i=e.sortDirection,t=e.onRequestSort;if(i==="ascending")return Ot||(Ot=m(Pe,null));if(i==="descending")return _t||(_t=m(Fe,null));if(t)return m(Le,{css:{opacity:"30%"}})}render(){const e=this.props,i=e.onRequestSort,t=e.width,o=e.children,r=e.sortDirection,p=e.scope,u=e.styles;return m("th",Object.assign({},L(this.props,jt.allowedProps),{css:u==null?void 0:u.colHeader,style:{width:t},scope:p,"aria-sort":r}),i&&m("button",{onClick:this.handleClick,css:u==null?void 0:u.button},m("div",{css:u==null?void 0:u.buttonContent},ie(o),this.renderSortArrow())),!i&&o,!i&&this.renderSortArrow())}},fe.displayName="ColHeader",fe.componentId="Table.ColHeader",fe.allowedProps=Ms,fe.propTypes=Hs,fe.defaultProps={textAlign:"start",sortDirection:"none",children:null,scope:"col"},fe))||St);const zs={children:s.node,hover:s.bool,isStacked:s.bool,renderSortLabel:s.oneOfType([s.node,s.func])},Es=["children","hover","isStacked","renderSortLabel"];var $t,xt,ge,Rt;let Bs=($t=M(Rs,ks),$t(xt=(ge=class Ut extends v.Component{get isSortable(){const e=v.Children.toArray(this.props.children),i=Qe(e,1),t=i[0];let o=!1;return t&&v.Children.forEach(t.props.children,r=>{P(r,[bi])&&r.props.onRequestSort&&(o=!0)}),o}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;this.isSortable&&typeof this.props.renderSortLabel>"u"&&Mt(!1,"[Table.Head] The `renderSortLabel` prop should be provided when Table is sortable."),(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}renderSelect(){const e=this.props,i=e.children,t=e.renderSortLabel,o=v.Children.toArray(i),r=Qe(o,1),p=r[0];if(!P(p,[gi]))return null;const u=[],f={};let g,b=0;if(v.Children.forEach(p.props.children,l=>{if(b+=1,P(l,[bi])){const d=l.props,a=d.id,c=d.stackedSortByLabel,h=d.sortDirection,A=d.onRequestSort,z=c||a;A&&(u.push({id:a,label:z}),f[a]=A,h!=="none"&&(g=a))}}),!u.length)return null;const O=(l,{value:d})=>{d&&typeof f[d]=="function"&&f[d](l,{id:`${d}`})};return m("div",{role:"rowgroup"},m("div",{role:"row"},m("div",{role:"cell","aria-colspan":b},m(bt,{renderLabel:t?ie(t):Rt||(Rt=m(Ce,null)),renderBeforeInput:g&&te,value:g,onChange:O},u.map(({id:l,label:d})=>m(bt.Option,{id:l,key:l,value:l,renderBeforeLabel:l===g?te:()=>m(te,{style:{color:"transparent"}})},d))))))}render(){const e=this.props,i=e.children,t=e.isStacked,o=e.styles;return t?this.renderSelect():m("thead",Object.assign({},L(this.props,Ut.allowedProps),{css:o==null?void 0:o.head}),v.Children.map(i,r=>P(r,[gi])?r:null))}},ge.displayName="Head",ge.componentId="Table.Head",ge.allowedProps=Es,ge.propTypes=zs,ge.defaultProps={children:null},ge))||xt);const Ws=n=>({body:{label:"body",fontSize:n.fontSize,fontFamily:n.fontFamily,fontWeight:n.fontWeight,color:n.color,background:n.background}}),Vs=n=>{var e,i;const t=n.colors,o=n.typography;return{...{fontSize:o==null?void 0:o.fontSizeMedium,fontFamily:o==null?void 0:o.fontFamily,fontWeight:o==null?void 0:o.fontWeightNormal,color:t==null||(e=t.contrasts)===null||e===void 0?void 0:e.grey125125,background:t==null||(i=t.contrasts)===null||i===void 0?void 0:i.white1010}}},Ns={children:s.node,hover:s.bool,isStacked:s.bool,headers:s.arrayOf(s.oneOfType([s.node,s.func]))},Ds=["children","hover","isStacked","headers"];var kt,Ct,me;let Ts=(kt=M(Ws,Vs),kt(Ct=(me=class vi extends v.Component{componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=this.props,i=e.children,t=e.hover,o=e.isStacked,r=e.headers,p=e.styles;return m(G,Object.assign({},G.omitViewProps(L(this.props,vi.allowedProps),vi),{as:o?"div":"tbody",css:p==null?void 0:p.body,role:o?"rowgroup":void 0}),v.Children.map(i,u=>Ne(u,{key:u.props.name,hover:t,isStacked:o,headers:r})))}},me.displayName="Body",me.componentId="Table.Body",me.allowedProps=Ds,me.propTypes=Ns,me.defaultProps={children:null},me))||Ct);const qs=(n,e)=>{const i=e.textAlign;return{rowHeader:{label:"rowHeader",fontSize:n.fontSize,fontFamily:n.fontFamily,fontWeight:"bold",color:n.color,background:n.background,boxSizing:"border-box",verticalAlign:"middle",lineHeight:n.lineHeight,padding:n.padding,...i&&{textAlign:i}}}},Gs=n=>{var e,i,t;const o=n.colors,r=n.typography,p=n.spacing;return{...{fontSize:r==null?void 0:r.fontSizeMedium,fontFamily:r==null?void 0:r.fontFamily,fontWeight:r==null?void 0:r.fontWeightNormal,color:o==null||(e=o.contrasts)===null||e===void 0?void 0:e.grey125125,background:o==null||(i=o.contrasts)===null||i===void 0?void 0:i.white1010,borderColor:o==null||(t=o.contrasts)===null||t===void 0?void 0:t.grey4570,lineHeight:r==null?void 0:r.lineHeightCondensed,padding:`${p==null?void 0:p.xSmall} ${p==null?void 0:p.small}`}}},js={children:s.oneOfType([s.node,s.func]),isStacked:s.bool,textAlign:s.oneOf(["start","center","end"])},Us=["children","isStacked","textAlign"];var It,At,be;let Zs=(It=M(qs,Gs),It(At=(be=class yi extends v.Component{componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=this.props,i=e.children,t=e.isStacked,o=e.styles;return m(G,Object.assign({},G.omitViewProps(L(this.props,yi.allowedProps),yi),{as:t?"div":"th",css:o==null?void 0:o.rowHeader,scope:"row",role:t?"rowheader":void 0}),ie(i))}},be.displayName="RowHeader",be.componentId="Table.RowHeader",be.allowedProps=Us,be.propTypes=js,be.defaultProps={textAlign:"start",children:null},be))||At);const Ys=(n,e)=>{const i=e.textAlign;return{cell:{label:"cell",fontSize:n.fontSize,fontFamily:n.fontFamily,fontWeight:n.fontWeight,color:n.color,background:n.background,boxSizing:"border-box",verticalAlign:"middle",lineHeight:n.lineHeight,padding:n.padding,...i&&{textAlign:i}}}},Xs=n=>{var e,i,t;const o=n.colors,r=n.typography,p=n.spacing;return{...{fontSize:r==null?void 0:r.fontSizeMedium,fontFamily:r==null?void 0:r.fontFamily,fontWeight:r==null?void 0:r.fontWeightNormal,color:o==null||(e=o.contrasts)===null||e===void 0?void 0:e.grey125125,background:o==null||(i=o.contrasts)===null||i===void 0?void 0:i.white1010,borderColor:o==null||(t=o.contrasts)===null||t===void 0?void 0:t.grey1214,lineHeight:r==null?void 0:r.lineHeightCondensed,padding:`${p==null?void 0:p.xSmall} ${p==null?void 0:p.small}`}}},Ks={children:s.oneOfType([s.node,s.func]),isStacked:s.bool,header:s.oneOfType([s.node,s.func]),textAlign:s.oneOf(["start","center","end"])},Js=["children","isStacked","header","textAlign"];var Lt,Ft,ve;let Qs=(Lt=M(Ys,Xs),Lt(Ft=(ve=class wi extends v.Component{componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}render(){const e=this.props,i=e.children,t=e.styles,o=e.isStacked,r=e.header;return m(G,Object.assign({},G.omitViewProps(L(this.props,wi.allowedProps),wi),{as:o?"div":"td",css:t==null?void 0:t.cell,role:o?"cell":void 0}),r&&ie(r),r&&": ",ie(i))}},ve.displayName="Cell",ve.componentId="Table.Cell",ve.allowedProps=Js,ve.propTypes=Ks,ve.defaultProps={textAlign:"start",children:null},ve))||Ft);const en={caption:s.node.isRequired,children:s.node,margin:io.spacing,elementRef:s.func,hover:s.bool,layout:s.oneOf(["auto","fixed","stacked"])},tn=["caption","children","margin","elementRef","hover","layout"];var Pt,Ht,E;let cn=(Pt=M($s,xs),Pt(Ht=(E=class Si extends v.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const t=this.props.elementRef;this.ref=i,typeof t=="function"&&t(i)}}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}getHeaders(){const e=this.props.children,i=v.Children.toArray(e),t=Qe(i,1),o=t[0],r=v.Children.toArray(o.props.children),p=Qe(r,1),u=p[0];if(u)return v.Children.map(u.props.children,f=>f.props.children)}render(){const e=this.props,i=e.margin,t=e.layout,o=e.caption,r=e.children,p=e.hover,u=e.styles,f=t==="stacked",g=f?this.getHeaders():void 0;return m(G,Object.assign({},G.omitViewProps(L(this.props,Si.allowedProps),Si),{as:f?"div":"table",margin:i,elementRef:this.handleRef,css:u==null?void 0:u.table,role:f?"table":void 0,"aria-label":f?o:void 0}),!f&&m("caption",null,m(Ce,null,o)),v.Children.map(r,b=>Ne(b,{key:b.props.name,isStacked:f,hover:p,headers:g})))}},E.displayName="Table",E.componentId="Table",E.allowedProps=tn,E.propTypes=en,E.defaultProps={children:null,hover:!1,layout:"auto"},E.Head=Bs,E.Body=Ts,E.Row=gi,E.ColHeader=bi,E.RowHeader=Zs,E.Cell=Qs,E))||Ht);export{rn as F,D as G,Ie as I,bt as S,os as T,cn as a,we as b,et as c,Xe as d,Ae as e,oe as f,Lo as g,zo as h,ei as i,pi as j,_i as k,te as l,Le as m,Fe as n,Pe as o}; diff --git a/assets/index-DyahzNCb.js b/assets/index-C2NLSIw_.js similarity index 99% rename from assets/index-DyahzNCb.js rename to assets/index-C2NLSIw_.js index 7f5b8a6..68ca02e 100644 --- a/assets/index-DyahzNCb.js +++ b/assets/index-C2NLSIw_.js @@ -1,4 +1,4 @@ -import{P as t,T as re,w as D,t as E,r as y,h as ae,p as de,R as $,S as I,s as H,o as W,i as h,n as oe,Y as ce}from"./index-Co1on5ja.js";import{b as ue,F as A}from"./index-DUk1PrHv.js";import{w as ge,k as pe,B as he,i as L,p as fe,l as ie,m as ve,s as be,A as me,a3 as ye}from"./RenderTopNavBar-BjY6S8Vl.js";const Se={children:t.node,type:t.oneOf(["button","submit","reset"]),size:t.oneOf(["small","medium","large"]),elementRef:t.func,as:t.elementType,interaction:t.oneOf(["enabled","disabled","readonly"]),color:t.oneOf(["primary","primary-inverse","secondary","success","danger"]),focusColor:t.oneOf(["info","inverse"]),display:t.oneOf(["inline-block","block"]),textAlign:t.oneOf(["start","center"]),withBackground:t.bool,margin:re.spacing,cursor:t.string,href:t.string,renderIcon:t.oneOfType([t.node,t.func]),onClick:t.func},xe=["as","children","color","cursor","display","elementRef","focusColor","href","interaction","margin","renderIcon","size","textAlign","type","withBackground","onClick"],_e=["children","type","size","as","color","focusColor","display","textAlign","withBackground","margin","cursor","href","renderIcon"];var V,N,F,S;let Ce=(V=D(null,ge),N=E(),V(F=N(F=(S=class extends y.Component{constructor(...e){super(...e),this._buttonComponent=null,this.ref=null,this.handleElementRef=i=>{const l=this.props.elementRef;this.ref=i,typeof l=="function"&&l(i)},this.handleButtonRef=i=>{this._buttonComponent=i}}get focused(){return this._buttonComponent&&this._buttonComponent.focused}focus(){this._buttonComponent&&this._buttonComponent.focus()}render(){const e=this.props,i=e.children,l=e.type,n=e.size,a=e.as,d=e.color,s=e.focusColor,r=e.display,c=e.textAlign,f=e.withBackground,v=e.margin,b=e.cursor,p=e.href,u=e.renderIcon,m=ae(e,_e),w=pe({props:m}),g=this.props.themeOverride,M={...de(m),type:l,size:n,elementRef:this.handleElementRef,ref:this.handleButtonRef,as:a,color:d,interaction:w,focusColor:s,display:r,textAlign:c,withBackground:f,margin:v,cursor:b,href:p,renderIcon:u,themeOverride:g};return $.createElement(he,M,i)}},S.displayName="Button",S.componentId="Button",S.propTypes=Se,S.allowedProps=xe,S.defaultProps={type:"button",size:"medium",as:"button",interaction:void 0,color:"secondary",display:"inline-block",textAlign:"center",withBackground:!0,margin:"0",cursor:"pointer"},S))||F)||F);var j;class B extends y.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const l=this.props.elementRef;this.ref=i,typeof l=="function"&&l(i)}}render(){return $.createElement(I,Object.assign({},this.props,{name:"IconCopy",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),j||(j=$.createElement("path",{d:"M0 1919.887h1467.88V452.008H0v1467.88ZM1354.965 564.922v1242.051H112.914V564.922h1242.051ZM1920 0v1467.992h-338.741v-113.027h225.827V112.914H565.035V338.74H452.008V0H1920ZM338.741 1016.93h790.397V904.016H338.74v112.914Zm0 451.062h790.397v-113.027H338.74v113.027Zm0-225.588h564.57v-112.913H338.74v112.913Z",fillRule:"evenodd"})))}}B.glyphName="copy";B.variant="Line";B.displayName="IconCopyLine";B.propTypes={...I.propTypes};B.allowedProps=[...I.allowedProps];var G;class R extends y.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const l=this.props.elementRef;this.ref=i,typeof l=="function"&&l(i)}}render(){return $.createElement(I,Object.assign({},this.props,{name:"IconX",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),G||(G=$.createElement("path",{d:"M797.32 985.882 344.772 1438.43l188.561 188.562 452.549-452.549 452.548 452.549 188.562-188.562-452.549-452.548 452.549-452.549-188.562-188.561L985.882 797.32 533.333 344.772 344.772 533.333z"})))}}R.glyphName="x";R.variant="Solid";R.displayName="IconXSolid";R.propTypes={...I.propTypes};R.allowedProps=[...I.allowedProps];const ke={expanded:L(t.bool,"onToggle","defaultExpanded"),defaultExpanded:t.bool,onToggle:t.func,children:t.func,render:t.func},ze=["expanded","defaultExpanded","onToggle","children","render"];var Z,q,k;const $e=({expanded:o})=>({expanded:!o});let X=(Z=H(),Z(q=(k=class extends y.Component{constructor(e){super(e),this._contentId=void 0,this.handleToggle=i=>{this.isControlled()||this.setState($e),this.props.onToggle(i,!this.expanded)},this.state={expanded:this.isControlled(e)?e.expanded:e.defaultExpanded},this._contentId=e.deterministicId()}get expanded(){return this.isControlled()?this.props.expanded:this.state.expanded}isControlled(e=this.props){return typeof e.expanded=="boolean"}static getDerivedStateFromProps(e,i){return typeof e.expanded=="boolean"&&e.expanded!==i.expanded?{expanded:e.expanded}:null}render(){const e=this.props,i=e.children,l=e.render,n=l===void 0?i:l;return typeof n=="function"?n({expanded:this.expanded,getToggleProps:(a={})=>({"aria-controls":this._contentId,"aria-expanded":this.expanded,onClick:fe(this.handleToggle,a.onClick),...a}),getDetailsProps:()=>({id:this._contentId})}):null}},k.displayName="Expandable",k.propTypes=ke,k.allowedProps=ze,k.defaultProps={defaultExpanded:!1,onToggle:function(){},children:null},k))||q);const Ie=(o,e)=>{const i=e.disabled,l=e.variant,n=e.context,a=e.size,d=e.inline,s=p=>`[class$=-radioInput__input]:${p} + [class$=-radioInput__control] &`,r={success:{backgroundColor:o.toggleBackgroundSuccess},danger:{backgroundColor:o.toggleBackgroundDanger},warning:{backgroundColor:o.toggleBackgroundWarning},off:{backgroundColor:o.toggleBackgroundOff}},c={simple:{base:{boxSizing:"border-box",display:"block",position:"relative",marginInlineEnd:o.simpleFacadeMarginEnd,marginInlineStart:"0",flexShrink:0,minWidth:"1rem",transition:"all 0.2s ease-out",borderRadius:"100%",border:`${o.borderWidth} solid ${o.borderColor}`,background:o.background,"&::before":{content:'""',position:"absolute",top:"-0.375rem",left:"-0.375rem",width:"calc(100% + 0.75rem)",height:"calc(100% + 0.75rem)",boxSizing:"border-box",borderRadius:"100%",border:`${o.focusBorderWidth} ${o.focusBorderStyle} ${o.focusBorderColor}`,transition:"all 0.2s",transform:"scale(0.75)",opacity:0,pointerEvents:"none"},[s("hover")]:{borderColor:o.hoverBorderColor},[s("focus")]:{background:o.background,"&::before":{transform:"scale(1)",opacity:1}}},small:{width:o.simpleFacadeSmallSize,height:o.simpleFacadeSmallSize,[s("checked")]:{background:o.background,boxShadow:`inset 0 0 0 ${o.simpleCheckedInsetSmall} ${o.hoverBorderColor}`,borderColor:o.hoverBorderColor}},medium:{width:o.simpleFacadeMediumSize,height:o.simpleFacadeMediumSize,[s("checked")]:{background:o.background,boxShadow:`inset 0 0 0 ${o.simpleCheckedInsetMedium} ${o.hoverBorderColor}`,borderColor:o.hoverBorderColor}},large:{width:o.simpleFacadeLargeSize,height:o.simpleFacadeLargeSize,[s("checked")]:{background:o.background,boxShadow:`inset 0 0 0 ${o.simpleCheckedInsetLarge} ${o.hoverBorderColor}`,borderColor:o.hoverBorderColor}}},toggle:{base:{boxSizing:"border-box",visibility:"hidden",display:"block",position:"absolute",zIndex:1,top:"0",left:"0",width:"100%",height:"100%",boxShadow:o.toggleShadow,borderRadius:o.toggleBorderRadius,...r[n],"&::before":{content:'""',position:"absolute",top:"-0.25rem",left:"-0.25rem",width:"calc(100% + 0.5rem)",height:"calc(100% + 0.5rem)",boxSizing:"border-box",borderRadius:`calc(${o.toggleBorderRadius} + 0.0625rem)`,border:`${o.focusBorderWidth} ${o.focusBorderStyle} ${o.focusBorderColor}`,transition:"all 0.2s",transform:"scale(0.75)",opacity:0},[s("checked")]:{visibility:"visible"},[s("focus")]:{"&::before":{opacity:1,transform:"scale(1)"}}},small:{},medium:{},large:{}}},f={simple:{base:{display:"flex",alignItems:"flex-start"},small:{},medium:{},large:{}},toggle:{base:{display:"block",userSelect:"none",boxSizing:"border-box",position:"relative"},small:{padding:"0 0.5rem",height:o.toggleSmallHeight},medium:{padding:"0 0.875rem",height:o.toggleMediumHeight},large:{padding:"0 1rem",height:o.toggleLargeHeight}}},v={simple:{base:{},small:{fontSize:o.simpleFontSizeSmall},medium:{fontSize:o.simpleFontSizeMedium},large:{fontSize:o.simpleFontSizeLarge}},toggle:{base:{position:"relative",zIndex:1,textTransform:"uppercase",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",lineHeight:1,display:"flex",alignItems:"center",minWidth:"0.0625rem",[s("checked")]:{color:o.toggleHandleText},[s("focus")]:{textDecoration:"underline"}},small:{fontSize:o.toggleSmallFontSize,height:o.toggleSmallHeight,svg:{fontSize:`calc(${o.toggleSmallFontSize} + 0.375rem)`}},medium:{fontSize:o.toggleMediumFontSize,height:o.toggleMediumHeight,svg:{fontSize:`calc(${o.toggleMediumFontSize} + 0.375rem)`}},large:{fontSize:o.toggleLargeFontSize,height:o.toggleLargeHeight,svg:{fontSize:`calc(${o.toggleLargeFontSize} + 0.375rem)`}}}},b={padding:"0",margin:"0",fontSize:"inherit",lineHeight:"inherit",width:"auto",position:"absolute",top:"0",left:"0",opacity:1e-4};return{radioInput:{label:"radioInput",position:"relative",width:"100%",...i&&{opacity:.5},...d&&{display:"inline-block",verticalAlign:"middle",width:"auto"},"&:hover":{cursor:"default",...i&&{cursor:"not-allowed"}}},input:{label:"radioInput__input",...b,'&:is(input)[type="radio"]':b,'&:-webkit-any(input)[type="radio"]':b},control:{label:"radioInput__control",all:"initial",display:"block",direction:"inherit",textAlign:"start",...f[l].base,...f[l][a]},facade:{label:"radioInput__facade",...c[l].base,...c[l][a]},label:{label:"radioInput__label",flex:"1 1 auto",color:o.labelColor,fontFamily:o.labelFontFamily,fontWeight:o.labelFontWeight,lineHeight:o.labelLineHeight,...v[l].base,...v[l][a],cursor:"default"}}},we=o=>{var e,i,l,n,a,d,s,r,c,f,v;const b=o.spacing,p=o.borders,u=o.colors,m=o.forms,w=o.shadows,g=o.typography,M=o.key,ne={canvas:{focusBorderColor:o["ic-brand-primary"],hoverBorderColor:o["ic-brand-font-color-dark"],labelColor:o["ic-brand-font-color-dark"]},"canvas-high-contrast":{toggleBackgroundOff:u==null||(e=u.contrasts)===null||e===void 0?void 0:e.grey125125}};return{...{labelColor:u==null||(i=u.contrasts)===null||i===void 0?void 0:i.grey125125,labelFontFamily:g==null?void 0:g.fontFamily,labelFontWeight:g==null?void 0:g.fontWeightNormal,labelLineHeight:g==null?void 0:g.lineHeightCondensed,background:u==null||(l=u.contrasts)===null||l===void 0?void 0:l.white1010,borderWidth:p==null?void 0:p.widthSmall,borderColor:u==null||(n=u.contrasts)===null||n===void 0?void 0:n.grey1214,hoverBorderColor:u==null||(a=u.contrasts)===null||a===void 0?void 0:a.grey125125,controlSize:"0.1875rem",focusBorderColor:u==null||(d=u.contrasts)===null||d===void 0?void 0:d.blue4570,focusBorderWidth:p==null?void 0:p.widthMedium,focusBorderStyle:p==null?void 0:p.style,simpleFacadeSmallSize:"1rem",simpleFacadeMediumSize:"1.25rem",simpleFacadeLargeSize:"1.75rem",simpleCheckedInsetSmall:"0.1875rem",simpleCheckedInsetMedium:"0.25rem",simpleCheckedInsetLarge:"0.375rem",simpleFontSizeSmall:g==null?void 0:g.fontSizeSmall,simpleFontSizeMedium:g==null?void 0:g.fontSizeMedium,simpleFontSizeLarge:g==null?void 0:g.fontSizeLarge,simpleFacadeMarginEnd:b==null?void 0:b.xSmall,toggleBorderRadius:p==null?void 0:p.radiusSmall,toggleBorderWidth:p==null?void 0:p.widthLarge,toggleBackgroundSuccess:u==null||(s=u.contrasts)===null||s===void 0?void 0:s.green4570,toggleBackgroundOff:u==null||(r=u.contrasts)===null||r===void 0?void 0:r.green4570,toggleBackgroundDanger:u==null||(c=u.contrasts)===null||c===void 0?void 0:c.orange4570,toggleBackgroundWarning:u==null||(f=u.contrasts)===null||f===void 0?void 0:f.orange4570,toggleHandleText:u==null||(v=u.contrasts)===null||v===void 0?void 0:v.white1010,toggleSmallHeight:m==null?void 0:m.inputHeightSmall,toggleMediumHeight:m==null?void 0:m.inputHeightMedium,toggleLargeHeight:m==null?void 0:m.inputHeightLarge,toggleShadow:w==null?void 0:w.depth1,toggleSmallFontSize:g==null?void 0:g.fontSizeXSmall,toggleMediumFontSize:g==null?void 0:g.fontSizeSmall,toggleLargeFontSize:g==null?void 0:g.fontSizeMedium},...ne[M]}},Be={label:t.node.isRequired,value:t.oneOfType([t.string,t.number]),id:t.string,name:t.string,checked:t.bool,disabled:t.bool,readOnly:t.bool,variant:t.oneOf(["simple","toggle"]),size:t.oneOf(["small","medium","large"]),context:t.oneOf(["success","warning","danger","off"]),inline:t.bool,onClick:t.func,onChange:t.func},Re=["label","value","id","name","checked","disabled","readOnly","variant","size","context","inline","onClick","onChange"];var U,Y,J,z,x;let Fe=(U=H(),Y=D(Ie,we),J=E(),U(z=Y(z=J(z=(x=class te extends y.Component{constructor(e){super(e),this.ref=null,this._defaultId=void 0,this._input=null,this.handleClick=i=>{if(this.props.disabled||this.props.readOnly){i.preventDefault();return}typeof this.props.onClick=="function"&&this.props.onClick(i)},this.handleChange=i=>{if(this.props.disabled||this.props.readOnly){i.preventDefault();return}typeof this.props.checked>"u"&&this.setState({checked:!this.state.checked}),typeof this.props.onChange=="function"&&this.props.onChange(i)},typeof e.checked>"u"&&(this.state={checked:!1}),this._defaultId=e.deterministicId()}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}focus(){var e;(e=this._input)===null||e===void 0||e.focus()}get id(){return this.props.id||this._defaultId}get focused(){return ie(this._input)}get checked(){return typeof this.props.checked>"u"?this.state.checked:this.props.checked}render(){const e=this.props,i=e.disabled,l=e.readOnly,n=e.label,a=e.value,d=e.name,s=e.styles,r=W(this.props,te.allowedProps);return h("div",{css:s==null?void 0:s.radioInput,ref:c=>{this.ref=c}},h("input",Object.assign({},r,{id:this.id,ref:c=>{this._input=c},value:a,name:d,checked:this.checked,type:"radio",css:s==null?void 0:s.input,disabled:i||l,"aria-disabled":i||l?"true":void 0,onChange:this.handleChange,onClick:this.handleClick})),h("label",{css:s==null?void 0:s.control,htmlFor:this.id},h("span",{css:s==null?void 0:s.facade,"aria-hidden":"true"}),h("span",{css:s==null?void 0:s.label},n)))}},x.displayName="RadioInput",x.componentId="RadioInput",x.allowedProps=Re,x.propTypes=Be,x.defaultProps={variant:"simple",size:"medium",disabled:!1,inline:!1,context:"success",readOnly:!1},x))||z)||z)||z);const Oe={name:t.string.isRequired,description:t.node.isRequired,defaultValue:t.oneOfType([t.string,t.number]),value:L(t.oneOfType([t.string,t.number])),onChange:t.func,disabled:t.bool,readOnly:t.bool,messages:t.arrayOf(ue.message),children:t.node,variant:t.oneOf(["simple","toggle"]),size:t.oneOf(["small","medium","large"]),layout:t.oneOf(["stacked","columns","inline"])},Pe=["name","description","defaultValue","value","onChange","disabled","readOnly","messages","children","variant","size","layout"];var K,Q,O,_;let Ze=(K=H(),Q=E(),K(O=Q(O=(_=class le extends y.Component{constructor(e){super(e),this.ref=null,this._messagesId=void 0,this.handleRef=i=>{this.ref=i},this.handleChange=i=>{const l=i.target.value;if(this.props.disabled||this.props.readOnly){i.preventDefault();return}typeof this.props.value>"u"&&this.setState({value:l}),typeof this.props.onChange=="function"&&this.props.onChange(i,l)},typeof e.value>"u"&&(this.state={value:e.defaultValue}),this._messagesId=e.deterministicId("RadioInputGroup-messages")}get hasMessages(){return!!this.props.messages&&this.props.messages.length>0}get value(){return typeof this.props.value>"u"?this.state.value:this.props.value}renderChildren(){const e=this.props,i=e.children,l=e.name,n=e.variant,a=e.size,d=e.disabled,s=e.readOnly;return y.Children.map(i,(r,c)=>{if(ve(r,[Fe])){const f=this.value===r.props.value,v=!this.value&&c===0;return be(r,{name:l,disabled:d||r.props.disabled,variant:n,size:a,checked:f,onChange:this.handleChange,readOnly:s||r.props.readOnly,width:r.props.width||"auto","aria-describedby":this.hasMessages?this._messagesId:void 0,tabIndex:f||v?0:-1,label:r.props.label})}else return r})}render(){const e=this.props,i=e.variant,l=e.layout,n=e.description;return $.createElement(A,Object.assign({},W(this.props,le.allowedProps),oe(this.props,A.allowedProps),{description:n,layout:l==="columns"&&i==="toggle"?"stacked":l,vAlign:i==="toggle"?"middle":"top",rowSpacing:"small",colSpacing:i==="toggle"?"none":"small",startAt:i==="toggle"?"small":void 0,messagesId:this._messagesId,elementRef:this.handleRef}),this.renderChildren())}},_.displayName="RadioInputGroup",_.componentId="RadioInputGroup",_.allowedProps=Pe,_.propTypes=Oe,_.defaultProps={disabled:!1,variant:"simple",size:"medium",layout:"stacked",readOnly:!1},_))||O)||O);const Ee=ce` +import{P as t,T as re,w as D,t as E,r as y,h as ae,p as de,R as $,S as I,s as H,o as W,i as h,n as oe,Y as ce}from"./index-mQ6522B8.js";import{b as ue,F as A}from"./index-Bj11N7g7.js";import{w as ge,k as pe,B as he,i as L,p as fe,l as ie,m as ve,s as be,A as me,a3 as ye}from"./RenderTopNavBar-m0KU5Oph.js";const Se={children:t.node,type:t.oneOf(["button","submit","reset"]),size:t.oneOf(["small","medium","large"]),elementRef:t.func,as:t.elementType,interaction:t.oneOf(["enabled","disabled","readonly"]),color:t.oneOf(["primary","primary-inverse","secondary","success","danger"]),focusColor:t.oneOf(["info","inverse"]),display:t.oneOf(["inline-block","block"]),textAlign:t.oneOf(["start","center"]),withBackground:t.bool,margin:re.spacing,cursor:t.string,href:t.string,renderIcon:t.oneOfType([t.node,t.func]),onClick:t.func},xe=["as","children","color","cursor","display","elementRef","focusColor","href","interaction","margin","renderIcon","size","textAlign","type","withBackground","onClick"],_e=["children","type","size","as","color","focusColor","display","textAlign","withBackground","margin","cursor","href","renderIcon"];var V,N,F,S;let Ce=(V=D(null,ge),N=E(),V(F=N(F=(S=class extends y.Component{constructor(...e){super(...e),this._buttonComponent=null,this.ref=null,this.handleElementRef=i=>{const l=this.props.elementRef;this.ref=i,typeof l=="function"&&l(i)},this.handleButtonRef=i=>{this._buttonComponent=i}}get focused(){return this._buttonComponent&&this._buttonComponent.focused}focus(){this._buttonComponent&&this._buttonComponent.focus()}render(){const e=this.props,i=e.children,l=e.type,n=e.size,a=e.as,d=e.color,s=e.focusColor,r=e.display,c=e.textAlign,f=e.withBackground,v=e.margin,b=e.cursor,p=e.href,u=e.renderIcon,m=ae(e,_e),w=pe({props:m}),g=this.props.themeOverride,M={...de(m),type:l,size:n,elementRef:this.handleElementRef,ref:this.handleButtonRef,as:a,color:d,interaction:w,focusColor:s,display:r,textAlign:c,withBackground:f,margin:v,cursor:b,href:p,renderIcon:u,themeOverride:g};return $.createElement(he,M,i)}},S.displayName="Button",S.componentId="Button",S.propTypes=Se,S.allowedProps=xe,S.defaultProps={type:"button",size:"medium",as:"button",interaction:void 0,color:"secondary",display:"inline-block",textAlign:"center",withBackground:!0,margin:"0",cursor:"pointer"},S))||F)||F);var j;class B extends y.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const l=this.props.elementRef;this.ref=i,typeof l=="function"&&l(i)}}render(){return $.createElement(I,Object.assign({},this.props,{name:"IconCopy",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),j||(j=$.createElement("path",{d:"M0 1919.887h1467.88V452.008H0v1467.88ZM1354.965 564.922v1242.051H112.914V564.922h1242.051ZM1920 0v1467.992h-338.741v-113.027h225.827V112.914H565.035V338.74H452.008V0H1920ZM338.741 1016.93h790.397V904.016H338.74v112.914Zm0 451.062h790.397v-113.027H338.74v113.027Zm0-225.588h564.57v-112.913H338.74v112.913Z",fillRule:"evenodd"})))}}B.glyphName="copy";B.variant="Line";B.displayName="IconCopyLine";B.propTypes={...I.propTypes};B.allowedProps=[...I.allowedProps];var G;class R extends y.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=i=>{const l=this.props.elementRef;this.ref=i,typeof l=="function"&&l(i)}}render(){return $.createElement(I,Object.assign({},this.props,{name:"IconX",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),G||(G=$.createElement("path",{d:"M797.32 985.882 344.772 1438.43l188.561 188.562 452.549-452.549 452.548 452.549 188.562-188.562-452.549-452.548 452.549-452.549-188.562-188.561L985.882 797.32 533.333 344.772 344.772 533.333z"})))}}R.glyphName="x";R.variant="Solid";R.displayName="IconXSolid";R.propTypes={...I.propTypes};R.allowedProps=[...I.allowedProps];const ke={expanded:L(t.bool,"onToggle","defaultExpanded"),defaultExpanded:t.bool,onToggle:t.func,children:t.func,render:t.func},ze=["expanded","defaultExpanded","onToggle","children","render"];var Z,q,k;const $e=({expanded:o})=>({expanded:!o});let X=(Z=H(),Z(q=(k=class extends y.Component{constructor(e){super(e),this._contentId=void 0,this.handleToggle=i=>{this.isControlled()||this.setState($e),this.props.onToggle(i,!this.expanded)},this.state={expanded:this.isControlled(e)?e.expanded:e.defaultExpanded},this._contentId=e.deterministicId()}get expanded(){return this.isControlled()?this.props.expanded:this.state.expanded}isControlled(e=this.props){return typeof e.expanded=="boolean"}static getDerivedStateFromProps(e,i){return typeof e.expanded=="boolean"&&e.expanded!==i.expanded?{expanded:e.expanded}:null}render(){const e=this.props,i=e.children,l=e.render,n=l===void 0?i:l;return typeof n=="function"?n({expanded:this.expanded,getToggleProps:(a={})=>({"aria-controls":this._contentId,"aria-expanded":this.expanded,onClick:fe(this.handleToggle,a.onClick),...a}),getDetailsProps:()=>({id:this._contentId})}):null}},k.displayName="Expandable",k.propTypes=ke,k.allowedProps=ze,k.defaultProps={defaultExpanded:!1,onToggle:function(){},children:null},k))||q);const Ie=(o,e)=>{const i=e.disabled,l=e.variant,n=e.context,a=e.size,d=e.inline,s=p=>`[class$=-radioInput__input]:${p} + [class$=-radioInput__control] &`,r={success:{backgroundColor:o.toggleBackgroundSuccess},danger:{backgroundColor:o.toggleBackgroundDanger},warning:{backgroundColor:o.toggleBackgroundWarning},off:{backgroundColor:o.toggleBackgroundOff}},c={simple:{base:{boxSizing:"border-box",display:"block",position:"relative",marginInlineEnd:o.simpleFacadeMarginEnd,marginInlineStart:"0",flexShrink:0,minWidth:"1rem",transition:"all 0.2s ease-out",borderRadius:"100%",border:`${o.borderWidth} solid ${o.borderColor}`,background:o.background,"&::before":{content:'""',position:"absolute",top:"-0.375rem",left:"-0.375rem",width:"calc(100% + 0.75rem)",height:"calc(100% + 0.75rem)",boxSizing:"border-box",borderRadius:"100%",border:`${o.focusBorderWidth} ${o.focusBorderStyle} ${o.focusBorderColor}`,transition:"all 0.2s",transform:"scale(0.75)",opacity:0,pointerEvents:"none"},[s("hover")]:{borderColor:o.hoverBorderColor},[s("focus")]:{background:o.background,"&::before":{transform:"scale(1)",opacity:1}}},small:{width:o.simpleFacadeSmallSize,height:o.simpleFacadeSmallSize,[s("checked")]:{background:o.background,boxShadow:`inset 0 0 0 ${o.simpleCheckedInsetSmall} ${o.hoverBorderColor}`,borderColor:o.hoverBorderColor}},medium:{width:o.simpleFacadeMediumSize,height:o.simpleFacadeMediumSize,[s("checked")]:{background:o.background,boxShadow:`inset 0 0 0 ${o.simpleCheckedInsetMedium} ${o.hoverBorderColor}`,borderColor:o.hoverBorderColor}},large:{width:o.simpleFacadeLargeSize,height:o.simpleFacadeLargeSize,[s("checked")]:{background:o.background,boxShadow:`inset 0 0 0 ${o.simpleCheckedInsetLarge} ${o.hoverBorderColor}`,borderColor:o.hoverBorderColor}}},toggle:{base:{boxSizing:"border-box",visibility:"hidden",display:"block",position:"absolute",zIndex:1,top:"0",left:"0",width:"100%",height:"100%",boxShadow:o.toggleShadow,borderRadius:o.toggleBorderRadius,...r[n],"&::before":{content:'""',position:"absolute",top:"-0.25rem",left:"-0.25rem",width:"calc(100% + 0.5rem)",height:"calc(100% + 0.5rem)",boxSizing:"border-box",borderRadius:`calc(${o.toggleBorderRadius} + 0.0625rem)`,border:`${o.focusBorderWidth} ${o.focusBorderStyle} ${o.focusBorderColor}`,transition:"all 0.2s",transform:"scale(0.75)",opacity:0},[s("checked")]:{visibility:"visible"},[s("focus")]:{"&::before":{opacity:1,transform:"scale(1)"}}},small:{},medium:{},large:{}}},f={simple:{base:{display:"flex",alignItems:"flex-start"},small:{},medium:{},large:{}},toggle:{base:{display:"block",userSelect:"none",boxSizing:"border-box",position:"relative"},small:{padding:"0 0.5rem",height:o.toggleSmallHeight},medium:{padding:"0 0.875rem",height:o.toggleMediumHeight},large:{padding:"0 1rem",height:o.toggleLargeHeight}}},v={simple:{base:{},small:{fontSize:o.simpleFontSizeSmall},medium:{fontSize:o.simpleFontSizeMedium},large:{fontSize:o.simpleFontSizeLarge}},toggle:{base:{position:"relative",zIndex:1,textTransform:"uppercase",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",lineHeight:1,display:"flex",alignItems:"center",minWidth:"0.0625rem",[s("checked")]:{color:o.toggleHandleText},[s("focus")]:{textDecoration:"underline"}},small:{fontSize:o.toggleSmallFontSize,height:o.toggleSmallHeight,svg:{fontSize:`calc(${o.toggleSmallFontSize} + 0.375rem)`}},medium:{fontSize:o.toggleMediumFontSize,height:o.toggleMediumHeight,svg:{fontSize:`calc(${o.toggleMediumFontSize} + 0.375rem)`}},large:{fontSize:o.toggleLargeFontSize,height:o.toggleLargeHeight,svg:{fontSize:`calc(${o.toggleLargeFontSize} + 0.375rem)`}}}},b={padding:"0",margin:"0",fontSize:"inherit",lineHeight:"inherit",width:"auto",position:"absolute",top:"0",left:"0",opacity:1e-4};return{radioInput:{label:"radioInput",position:"relative",width:"100%",...i&&{opacity:.5},...d&&{display:"inline-block",verticalAlign:"middle",width:"auto"},"&:hover":{cursor:"default",...i&&{cursor:"not-allowed"}}},input:{label:"radioInput__input",...b,'&:is(input)[type="radio"]':b,'&:-webkit-any(input)[type="radio"]':b},control:{label:"radioInput__control",all:"initial",display:"block",direction:"inherit",textAlign:"start",...f[l].base,...f[l][a]},facade:{label:"radioInput__facade",...c[l].base,...c[l][a]},label:{label:"radioInput__label",flex:"1 1 auto",color:o.labelColor,fontFamily:o.labelFontFamily,fontWeight:o.labelFontWeight,lineHeight:o.labelLineHeight,...v[l].base,...v[l][a],cursor:"default"}}},we=o=>{var e,i,l,n,a,d,s,r,c,f,v;const b=o.spacing,p=o.borders,u=o.colors,m=o.forms,w=o.shadows,g=o.typography,M=o.key,ne={canvas:{focusBorderColor:o["ic-brand-primary"],hoverBorderColor:o["ic-brand-font-color-dark"],labelColor:o["ic-brand-font-color-dark"]},"canvas-high-contrast":{toggleBackgroundOff:u==null||(e=u.contrasts)===null||e===void 0?void 0:e.grey125125}};return{...{labelColor:u==null||(i=u.contrasts)===null||i===void 0?void 0:i.grey125125,labelFontFamily:g==null?void 0:g.fontFamily,labelFontWeight:g==null?void 0:g.fontWeightNormal,labelLineHeight:g==null?void 0:g.lineHeightCondensed,background:u==null||(l=u.contrasts)===null||l===void 0?void 0:l.white1010,borderWidth:p==null?void 0:p.widthSmall,borderColor:u==null||(n=u.contrasts)===null||n===void 0?void 0:n.grey1214,hoverBorderColor:u==null||(a=u.contrasts)===null||a===void 0?void 0:a.grey125125,controlSize:"0.1875rem",focusBorderColor:u==null||(d=u.contrasts)===null||d===void 0?void 0:d.blue4570,focusBorderWidth:p==null?void 0:p.widthMedium,focusBorderStyle:p==null?void 0:p.style,simpleFacadeSmallSize:"1rem",simpleFacadeMediumSize:"1.25rem",simpleFacadeLargeSize:"1.75rem",simpleCheckedInsetSmall:"0.1875rem",simpleCheckedInsetMedium:"0.25rem",simpleCheckedInsetLarge:"0.375rem",simpleFontSizeSmall:g==null?void 0:g.fontSizeSmall,simpleFontSizeMedium:g==null?void 0:g.fontSizeMedium,simpleFontSizeLarge:g==null?void 0:g.fontSizeLarge,simpleFacadeMarginEnd:b==null?void 0:b.xSmall,toggleBorderRadius:p==null?void 0:p.radiusSmall,toggleBorderWidth:p==null?void 0:p.widthLarge,toggleBackgroundSuccess:u==null||(s=u.contrasts)===null||s===void 0?void 0:s.green4570,toggleBackgroundOff:u==null||(r=u.contrasts)===null||r===void 0?void 0:r.green4570,toggleBackgroundDanger:u==null||(c=u.contrasts)===null||c===void 0?void 0:c.orange4570,toggleBackgroundWarning:u==null||(f=u.contrasts)===null||f===void 0?void 0:f.orange4570,toggleHandleText:u==null||(v=u.contrasts)===null||v===void 0?void 0:v.white1010,toggleSmallHeight:m==null?void 0:m.inputHeightSmall,toggleMediumHeight:m==null?void 0:m.inputHeightMedium,toggleLargeHeight:m==null?void 0:m.inputHeightLarge,toggleShadow:w==null?void 0:w.depth1,toggleSmallFontSize:g==null?void 0:g.fontSizeXSmall,toggleMediumFontSize:g==null?void 0:g.fontSizeSmall,toggleLargeFontSize:g==null?void 0:g.fontSizeMedium},...ne[M]}},Be={label:t.node.isRequired,value:t.oneOfType([t.string,t.number]),id:t.string,name:t.string,checked:t.bool,disabled:t.bool,readOnly:t.bool,variant:t.oneOf(["simple","toggle"]),size:t.oneOf(["small","medium","large"]),context:t.oneOf(["success","warning","danger","off"]),inline:t.bool,onClick:t.func,onChange:t.func},Re=["label","value","id","name","checked","disabled","readOnly","variant","size","context","inline","onClick","onChange"];var U,Y,J,z,x;let Fe=(U=H(),Y=D(Ie,we),J=E(),U(z=Y(z=J(z=(x=class te extends y.Component{constructor(e){super(e),this.ref=null,this._defaultId=void 0,this._input=null,this.handleClick=i=>{if(this.props.disabled||this.props.readOnly){i.preventDefault();return}typeof this.props.onClick=="function"&&this.props.onClick(i)},this.handleChange=i=>{if(this.props.disabled||this.props.readOnly){i.preventDefault();return}typeof this.props.checked>"u"&&this.setState({checked:!this.state.checked}),typeof this.props.onChange=="function"&&this.props.onChange(i)},typeof e.checked>"u"&&(this.state={checked:!1}),this._defaultId=e.deterministicId()}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i)}focus(){var e;(e=this._input)===null||e===void 0||e.focus()}get id(){return this.props.id||this._defaultId}get focused(){return ie(this._input)}get checked(){return typeof this.props.checked>"u"?this.state.checked:this.props.checked}render(){const e=this.props,i=e.disabled,l=e.readOnly,n=e.label,a=e.value,d=e.name,s=e.styles,r=W(this.props,te.allowedProps);return h("div",{css:s==null?void 0:s.radioInput,ref:c=>{this.ref=c}},h("input",Object.assign({},r,{id:this.id,ref:c=>{this._input=c},value:a,name:d,checked:this.checked,type:"radio",css:s==null?void 0:s.input,disabled:i||l,"aria-disabled":i||l?"true":void 0,onChange:this.handleChange,onClick:this.handleClick})),h("label",{css:s==null?void 0:s.control,htmlFor:this.id},h("span",{css:s==null?void 0:s.facade,"aria-hidden":"true"}),h("span",{css:s==null?void 0:s.label},n)))}},x.displayName="RadioInput",x.componentId="RadioInput",x.allowedProps=Re,x.propTypes=Be,x.defaultProps={variant:"simple",size:"medium",disabled:!1,inline:!1,context:"success",readOnly:!1},x))||z)||z)||z);const Oe={name:t.string.isRequired,description:t.node.isRequired,defaultValue:t.oneOfType([t.string,t.number]),value:L(t.oneOfType([t.string,t.number])),onChange:t.func,disabled:t.bool,readOnly:t.bool,messages:t.arrayOf(ue.message),children:t.node,variant:t.oneOf(["simple","toggle"]),size:t.oneOf(["small","medium","large"]),layout:t.oneOf(["stacked","columns","inline"])},Pe=["name","description","defaultValue","value","onChange","disabled","readOnly","messages","children","variant","size","layout"];var K,Q,O,_;let Ze=(K=H(),Q=E(),K(O=Q(O=(_=class le extends y.Component{constructor(e){super(e),this.ref=null,this._messagesId=void 0,this.handleRef=i=>{this.ref=i},this.handleChange=i=>{const l=i.target.value;if(this.props.disabled||this.props.readOnly){i.preventDefault();return}typeof this.props.value>"u"&&this.setState({value:l}),typeof this.props.onChange=="function"&&this.props.onChange(i,l)},typeof e.value>"u"&&(this.state={value:e.defaultValue}),this._messagesId=e.deterministicId("RadioInputGroup-messages")}get hasMessages(){return!!this.props.messages&&this.props.messages.length>0}get value(){return typeof this.props.value>"u"?this.state.value:this.props.value}renderChildren(){const e=this.props,i=e.children,l=e.name,n=e.variant,a=e.size,d=e.disabled,s=e.readOnly;return y.Children.map(i,(r,c)=>{if(ve(r,[Fe])){const f=this.value===r.props.value,v=!this.value&&c===0;return be(r,{name:l,disabled:d||r.props.disabled,variant:n,size:a,checked:f,onChange:this.handleChange,readOnly:s||r.props.readOnly,width:r.props.width||"auto","aria-describedby":this.hasMessages?this._messagesId:void 0,tabIndex:f||v?0:-1,label:r.props.label})}else return r})}render(){const e=this.props,i=e.variant,l=e.layout,n=e.description;return $.createElement(A,Object.assign({},W(this.props,le.allowedProps),oe(this.props,A.allowedProps),{description:n,layout:l==="columns"&&i==="toggle"?"stacked":l,vAlign:i==="toggle"?"middle":"top",rowSpacing:"small",colSpacing:i==="toggle"?"none":"small",startAt:i==="toggle"?"small":void 0,messagesId:this._messagesId,elementRef:this.handleRef}),this.renderChildren())}},_.displayName="RadioInputGroup",_.componentId="RadioInputGroup",_.allowedProps=Pe,_.propTypes=Oe,_.defaultProps={disabled:!1,variant:"simple",size:"medium",layout:"stacked",readOnly:!1},_))||O)||O);const Ee=ce` to { opacity: 1; }`,Me=(o,e,i)=>{const l=e.fluidWidth,n=e.iconPosition,a=e.size,d=e.variant,s=i.animate,r=n==="end"&&(d==="filled"||l),c=l?{display:"block",width:"100%"}:{},f={start:{marginInlineEnd:o.iconMargin,marginInlineStart:0},end:{marginInlineStart:o.iconMargin,marginInlineEnd:0}},v={small:{fontSize:o.fontSizeSmall},medium:{fontSize:o.fontSizeMedium},large:{fontSize:o.fontSizeLarge}},b={small:{fontSize:o.smallIconSize},medium:{fontSize:o.mediumIconSize},large:{fontSize:o.largeIconSize}},p=n==="start"&&!l?{small:{paddingInlineStart:`calc(${o.smallIconSize} + ${o.togglePadding})`,paddingInlineEnd:"0"},medium:{paddingInlineStart:`calc(${o.mediumIconSize} + ${o.togglePadding})`,paddingInlineEnd:"0"},large:{paddingInlineStart:`calc(${o.largeIconSize} + ${o.togglePadding})`,paddingInlineEnd:"0"}}:{small:{},medium:{},large:{}};return{toggleDetails:{label:"toggleDetails",fontFamily:o.fontFamily,fontWeight:o.fontWeight,lineHeight:o.lineHeight},summary:{label:"toggleDetails__summary",position:"relative",display:"flex",alignItems:"center",boxSizing:"border-box",textAlign:"start"},summaryText:{label:"toggleDetails__summaryText",minWidth:"0.0625rem",flexGrow:1,...r?{flex:1}:{}},toggle:{label:"toggleDetails__toggle",fontFamily:o.fontFamily,appearance:"none",cursor:"pointer",userSelect:"none",touchAction:"manipulation",position:"relative",overflow:"visible",boxSizing:"border-box",padding:"0",margin:"0",outline:"none",border:"none",background:"transparent",color:o.textColor,"&::-moz-focus-inner":{padding:"0",margin:"0"},"&::before":{content:'""',position:"absolute",top:"-0.375rem",left:"-0.375rem",right:"-0.375rem",bottom:"-0.375rem",border:`${o.toggleBorderWidth} ${o.toggleBorderStyle} ${o.toggleFocusBorderColor}`,borderRadius:`calc(${o.toggleBorderRadius} * 1.5)`,opacity:0,pointerEvents:"none"},"&:focus":{"&::before":{opacity:1}},"&:focus, &:hover, &:active":{textDecoration:"none",color:o.textColor},textDecoration:"none",...c,...v[a]},icon:{label:"toggleDetails__icon","& > svg":{display:"block"},...f[n],...b[a]},details:{label:"toggleDetails__details",boxSizing:"border-box",paddingTop:o.togglePadding,color:o.textColor,...v[a],...p[a]},content:s?{label:"toggleDetails__content",opacity:.01,animationName:Ee,animationFillMode:"forwards",animationDuration:".3s"}:{}}},De=o=>{var e,i,l,n,a;const d=o.colors,s=o.spacing,r=o.borders,c=o.typography,f=o.key,v={canvas:{toggleFocusBorderColor:o["ic-brand-primary"],iconColor:o["ic-brand-font-color-dark"],textColor:o["ic-brand-font-color-dark"]}};return{...{fontFamily:c==null?void 0:c.fontFamily,fontWeight:c==null?void 0:c.fontWeightNormal,lineHeight:c==null?void 0:c.lineHeight,textColor:d==null||(e=d.contrasts)===null||e===void 0?void 0:e.grey125125,fontSizeSmall:c==null?void 0:c.fontSizeSmall,fontSizeMedium:c==null?void 0:c.fontSizeMedium,fontSizeLarge:c==null?void 0:c.fontSizeLarge,smallIconSize:"0.5rem",mediumIconSize:"0.75rem",largeIconSize:"1rem",iconMargin:s==null?void 0:s.xxSmall,iconColor:d==null||(i=d.contrasts)===null||i===void 0?void 0:i.grey125125,togglePadding:s==null?void 0:s.xxSmall,toggleBorderRadius:r==null?void 0:r.radiusMedium,toggleBorderWidth:r==null?void 0:r.widthMedium,toggleBorderStyle:r==null?void 0:r.style,toggleFocusBorderColor:d==null||(l=d.contrasts)===null||l===void 0?void 0:l.blue4570,filledBackgroundColor:d==null||(n=d.contrasts)===null||n===void 0?void 0:n.grey1111,filledBorderWidth:r==null?void 0:r.widthSmall,filledBorderStyle:r==null?void 0:r.style,filledBorderColor:d==null||(a=d.contrasts)===null||a===void 0?void 0:a.grey1214,filledBorderRadius:r==null?void 0:r.radiusMedium,filledPadding:s==null?void 0:s.small},...v[f]}},He={variant:t.oneOf(["default","filled"]),summary:t.node.isRequired,expanded:L(t.bool,"onToggle","defaultExpanded"),defaultExpanded:t.bool,onToggle:t.func,icon:t.func,iconExpanded:t.func,iconPosition:t.oneOf(["start","end"]),fluidWidth:t.bool,children:t.node,size:t.oneOf(["small","medium","large"])},We=["variant","summary","expanded","defaultExpanded","onToggle","icon","iconExpanded","iconPosition","fluidWidth","children","size"];var T,ee,P,C;let qe=(T=D(Me,De),ee=E(),T(P=ee(P=(C=class se extends y.Component{constructor(...e){super(...e),this.ref=null,this._button=null,this.getButtonRef=i=>this._button=i,this.handleToggle=(i,l)=>{var n,a;typeof this.props.onToggle=="function"&&this.props.onToggle(i,l),(n=(a=this.props).makeStyles)===null||n===void 0||n.call(a,{animate:!0})}}get focused(){return ie(this._button)}focus(){var e;(e=this._button)===null||e===void 0||e.focus()}componentDidMount(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i,{animate:!1})}componentDidUpdate(){var e,i;(e=(i=this.props).makeStyles)===null||e===void 0||e.call(i,{animate:!0})}renderSummary(e){var i,l;const n=this.props,a=n.summary,d=n.iconPosition;return h("span",{css:(i=this.props.styles)===null||i===void 0?void 0:i.summary},d==="start"&&this.renderIcon(e),h("span",{css:(l=this.props.styles)===null||l===void 0?void 0:l.summaryText},a),d==="end"&&this.renderIcon(e))}renderToggle(e,i){const l=this.props.variant,n={...W(this.props,se.allowedProps),...e,children:this.renderSummary(i)},a=this.renderSummary(i);if(l==="filled")return h(Ce,Object.assign({},n,{display:"block",textAlign:"start",elementRef:this.getButtonRef}),a);if(n.href){var d;return h("a",Object.assign({},n,{css:(d=this.props.styles)===null||d===void 0?void 0:d.toggle,ref:this.getButtonRef}),a)}else{var s;return h("button",Object.assign({},n,{type:"button",css:(s=this.props.styles)===null||s===void 0?void 0:s.toggle,ref:this.getButtonRef}),a)}}renderIcon(e){var i;const l=e?this.props.iconExpanded:this.props.icon;return this.props.children&&l?h("span",{css:(i=this.props.styles)===null||i===void 0?void 0:i.icon},h(l,null)):null}renderDetails(e,i){var l;const n=this.props.children,a=e?{display:"block"}:{display:"none"};return h("div",Object.assign({},i,{css:[(l=this.props.styles)===null||l===void 0?void 0:l.details,a]}),n&&e&&this.renderContent())}renderContent(){var e;return h("div",{css:(e=this.props.styles)===null||e===void 0?void 0:e.content},this.props.children)}render(){return h(X,Object.assign({},oe(this.props,X.allowedProps),{onToggle:this.handleToggle}),({expanded:e,getToggleProps:i,getDetailsProps:l})=>{var n;return h("div",{css:(n=this.props.styles)===null||n===void 0?void 0:n.toggleDetails,ref:a=>{this.ref=a}},this.renderToggle(i(),e),this.renderDetails(e,l()))})}},C.displayName="ToggleDetails",C.componentId="ToggleDetails",C.allowedProps=We,C.propTypes=He,C.defaultProps={variant:"default",size:"medium",fluidWidth:!1,icon:me,iconExpanded:ye,iconPosition:"start",defaultExpanded:!1,children:null},C))||P)||P);export{Ce as B,X as E,R as I,Ze as R,qe as T,Fe as a,B as b}; diff --git a/assets/index-BRRUuwsQ.js b/assets/index-CF_0tldh.js similarity index 99% rename from assets/index-BRRUuwsQ.js rename to assets/index-CF_0tldh.js index 4edb333..91759c0 100644 --- a/assets/index-BRRUuwsQ.js +++ b/assets/index-CF_0tldh.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.node-DYwPqidn.js","assets/index-Co1on5ja.js","assets/index-TCIaF8cn.css","assets/index-CWqBbHNF.js"])))=>i.map(i=>d[i]); -import{S as Fb,b as s1,c as gy,F as FM,T as Q2,d as TM,I as dN,e as ON,f as oe}from"./index-DUk1PrHv.js";import{g as N$,i as C$,h as B$,G as w$,k as S$,j as I$,l as x$,m as T$,n as _$,o as P$,a as E$}from"./index-DUk1PrHv.js";import{A as yy,r as a,R as r,O as hN,k as uN,l as AN,Q as r0,U as fN,W as qN,X as mN,P as i,h as n0,q as se,p as c0,S as n,T as p0,w as I,t as x,i as O,s as m0,f as M0,V as E,F as vN,Y as ie,o as J,n as q1,H as RN,_ as jb,m as ne,v as tM,E as Te,G as WN,Z as gN,$ as yN,z as pM,C as LN}from"./index-Co1on5ja.js";import{a3 as $$,a4 as H$,a5 as k$,a6 as V$,a7 as Z$,a1 as D$,I as F$,a0 as j$,a2 as U$}from"./index-Co1on5ja.js";import{j as z0,t as NN,u as CN,S as x0,v as U1,k as mo,B as Ab,w as BN,P as j0,f as _e,n as Q,x as F,y as G1,s as d0,C as L0,z as Ly,I as vM,A as Pe,p as A0,D as Ny,i as N0,l as vo,m as f0,E as m1,T as jM,r as Ro,F as aa,q as wN,o as J2,G as fb,J as te,K as Cy,M as MM,N as bM,Q as qb,U as zM,V as SN,h as mb,W as By,X as IN,Y as xN,Z as vb,_ as TN,$ as Ub,a0 as Gb,a1 as _N,a2 as PN,a3 as EN}from"./RenderTopNavBar-BjY6S8Vl.js";import{a4 as Y$,a5 as K$,H as Q$,ac as J$,ai as eH,ad as oH,ae as tH,af as pH,ag as nH,ah as rH,a6 as sH,L as iH,O as lH,a7 as cH,a8 as aH,a9 as MH,aa as bH,ab as zH}from"./RenderTopNavBar-BjY6S8Vl.js";import{I as wy,B as dM,E as Yb}from"./index-DyahzNCb.js";import{b as OH,a as hH,R as uH,T as AH}from"./index-DyahzNCb.js";import{B as qH}from"./index-Dh55QiP4.js";import{I as $0}from"./index-BAR0q47n.js";import{a as vH}from"./index-BAR0q47n.js";import{L as WH,e as gH}from"./Mdtoui-BnFmcABV.js";import{S as LH}from"./index-CdS0NUpT.js";import{I as CH}from"./IconRssLine-CYM7kQpO.js";const Sy=(()=>{{const p=function(){return o=>o};return p.deprecatePropValues=()=>()=>null,p.warnDeprecatedProps=()=>{},p.warnDeprecatedComponent=()=>{},p.changedPackageWarning=()=>"",p}})(),Wo={keyboard:"keyboard",pointer:"pointer"};let I0=[],K2=[],go=Wo.keyboard,_M=0;const OM={},b1=p=>{p.target.nodeName.toLowerCase()!=="html"&&(Rb(go,Wo.pointer),I0.forEach(o=>o.remove()))},Rb=(p,o)=>{p!==o&&(go=o,Object.keys(OM).forEach(e=>OM[e](p,o)))},XN=()=>{Rb(go,Wo.keyboard)},PM=()=>{Rb(go,Wo.pointer)},$N=()=>{I0.length===0&&(I0.push(z0(document,"mousemove",b1,!0)),I0.push(z0(document,"mousedown",b1,!0)),I0.push(z0(document,"mouseup",b1,!0)),I0.push(z0(document,"pointermove",b1,!0)),I0.push(z0(document,"pointerdown",b1,!0)),I0.push(z0(document,"pointerup",b1,!0)),I0.push(z0(document,"touchmove",b1,!0)),I0.push(z0(document,"touchstart",b1,!0)),I0.push(z0(document,"touchend",b1,!0)))},HN=()=>{K2.length===0&&(K2.push(z0(document,"keydown",XN,!0)),K2.push(z0(document,"mousedown",PM,!0)),K2.push(z0(document,"pointerdown",PM,!0)),K2.push(z0(document,"touchstart",PM,!0)))},kN=()=>{I0.forEach(p=>p.remove()),I0=[],K2.forEach(p=>p.remove()),K2=[]},VN=p=>{const o=p.onInputModeChange,e=_M++;return typeof o=="function"&&(OM[e]=o),yy&&(HN(),$N()),{isKeyboardMode:()=>go===Wo.keyboard,remove:()=>{_M===1&&kN(),delete OM[e],_M--}}},yo=a.createContext({locale:void 0,timezone:void 0}),MX=({children:p,locale:o,timezone:e})=>r.createElement(yo.Provider,{value:{locale:o,timezone:e}},NN(p));var Iy={exports:{}},xy={exports:{}};//! moment.js +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.node-BvqdCM4E.js","assets/index-mQ6522B8.js","assets/index-TCIaF8cn.css","assets/index-Ce10LxbF.js"])))=>i.map(i=>d[i]); +import{S as Fb,b as s1,c as gy,F as FM,T as Q2,d as TM,I as dN,e as ON,f as oe}from"./index-Bj11N7g7.js";import{g as N$,i as C$,h as B$,G as w$,k as S$,j as I$,l as x$,m as T$,n as _$,o as P$,a as E$}from"./index-Bj11N7g7.js";import{A as yy,r as a,R as r,O as hN,k as uN,l as AN,Q as r0,U as fN,W as qN,X as mN,P as i,h as n0,q as se,p as c0,S as n,T as p0,w as I,t as x,i as O,s as m0,f as M0,V as E,F as vN,Y as ie,o as J,n as q1,H as RN,_ as jb,m as ne,v as tM,E as Te,G as WN,Z as gN,$ as yN,z as pM,C as LN}from"./index-mQ6522B8.js";import{a3 as $$,a4 as H$,a5 as k$,a6 as V$,a7 as Z$,a1 as D$,I as F$,a0 as j$,a2 as U$}from"./index-mQ6522B8.js";import{j as z0,t as NN,u as CN,S as x0,v as U1,k as mo,B as Ab,w as BN,P as j0,f as _e,n as Q,x as F,y as G1,s as d0,C as L0,z as Ly,I as vM,A as Pe,p as A0,D as Ny,i as N0,l as vo,m as f0,E as m1,T as jM,r as Ro,F as aa,q as wN,o as J2,G as fb,J as te,K as Cy,M as MM,N as bM,Q as qb,U as zM,V as SN,h as mb,W as By,X as IN,Y as xN,Z as vb,_ as TN,$ as Ub,a0 as Gb,a1 as _N,a2 as PN,a3 as EN}from"./RenderTopNavBar-m0KU5Oph.js";import{a4 as Y$,a5 as K$,H as Q$,ac as J$,ai as eH,ad as oH,ae as tH,af as pH,ag as nH,ah as rH,a6 as sH,L as iH,O as lH,a7 as cH,a8 as aH,a9 as MH,aa as bH,ab as zH}from"./RenderTopNavBar-m0KU5Oph.js";import{I as wy,B as dM,E as Yb}from"./index-C2NLSIw_.js";import{b as OH,a as hH,R as uH,T as AH}from"./index-C2NLSIw_.js";import{B as qH}from"./index-DoB2bFAj.js";import{I as $0}from"./index-hytSvzuk.js";import{a as vH}from"./index-hytSvzuk.js";import{L as WH,e as gH}from"./Mdtoui-DyL4rrif.js";import{S as LH}from"./index-Deq60h-B.js";import{I as CH}from"./IconRssLine-ozT-I_fC.js";const Sy=(()=>{{const p=function(){return o=>o};return p.deprecatePropValues=()=>()=>null,p.warnDeprecatedProps=()=>{},p.warnDeprecatedComponent=()=>{},p.changedPackageWarning=()=>"",p}})(),Wo={keyboard:"keyboard",pointer:"pointer"};let I0=[],K2=[],go=Wo.keyboard,_M=0;const OM={},b1=p=>{p.target.nodeName.toLowerCase()!=="html"&&(Rb(go,Wo.pointer),I0.forEach(o=>o.remove()))},Rb=(p,o)=>{p!==o&&(go=o,Object.keys(OM).forEach(e=>OM[e](p,o)))},XN=()=>{Rb(go,Wo.keyboard)},PM=()=>{Rb(go,Wo.pointer)},$N=()=>{I0.length===0&&(I0.push(z0(document,"mousemove",b1,!0)),I0.push(z0(document,"mousedown",b1,!0)),I0.push(z0(document,"mouseup",b1,!0)),I0.push(z0(document,"pointermove",b1,!0)),I0.push(z0(document,"pointerdown",b1,!0)),I0.push(z0(document,"pointerup",b1,!0)),I0.push(z0(document,"touchmove",b1,!0)),I0.push(z0(document,"touchstart",b1,!0)),I0.push(z0(document,"touchend",b1,!0)))},HN=()=>{K2.length===0&&(K2.push(z0(document,"keydown",XN,!0)),K2.push(z0(document,"mousedown",PM,!0)),K2.push(z0(document,"pointerdown",PM,!0)),K2.push(z0(document,"touchstart",PM,!0)))},kN=()=>{I0.forEach(p=>p.remove()),I0=[],K2.forEach(p=>p.remove()),K2=[]},VN=p=>{const o=p.onInputModeChange,e=_M++;return typeof o=="function"&&(OM[e]=o),yy&&(HN(),$N()),{isKeyboardMode:()=>go===Wo.keyboard,remove:()=>{_M===1&&kN(),delete OM[e],_M--}}},yo=a.createContext({locale:void 0,timezone:void 0}),MX=({children:p,locale:o,timezone:e})=>r.createElement(yo.Provider,{value:{locale:o,timezone:e}},NN(p));var Iy={exports:{}},xy={exports:{}};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT @@ -20,7 +20,7 @@ w.version="2.30.1";ZN(s0);w.fn=N;w.min=SB;w.max=IB;w.now=xB;w.utc=i1;w.unix=lS;w }`,TI=(p,o)=>{const e=o.type,t=o.variant,s=o.placement,l=s===void 0?"":s,c=o.standalone,M=o.pulse,b=l.indexOf("top")>-1,z=l.indexOf("bottom")>-1,d=l.indexOf("start")>-1,u=l.indexOf("end")>-1,h=l.indexOf("center")>-1,A={danger:{badge:{color:p.color,backgroundColor:p.colorDanger},pulseBorder:{borderColor:p.colorDanger}},success:{badge:{color:p.color,backgroundColor:p.colorSuccess},pulseBorder:{borderColor:p.colorSuccess}},primary:{badge:{color:p.color,backgroundColor:p.colorPrimary},pulseBorder:{borderColor:p.colorPrimary}},inverse:{badge:{color:p.colorInverse,backgroundColor:p.color},pulseBorder:{borderColor:p.color}}},f={...b&&{top:`calc(-1 * ${p.countOffset})`},...z&&{bottom:`calc(-1 * ${p.countOffset})`},...d&&{insetInlineStart:`calc(-1 * ${p.countOffset})`,insetInlineEnd:"auto"},...u&&{insetInlineEnd:`calc(-1 * ${p.countOffset})`,insetInlineStart:"auto"},...h&&{...(u||d)&&{top:`calc(50% - (${p.size} / 2))`},...d&&{insetInlineStart:"auto",insetInlineEnd:`calc(100% - ${p.countOffset})`},...u&&{insetInlineEnd:"auto",insetInlineStart:`calc(100% - ${p.countOffset})`}}},R={...b&&{top:p.notificationOffset},...z&&{bottom:p.notificationOffset},...d&&{insetInlineStart:p.notificationOffset,insetInlineEnd:"auto"},...u&&{insetInlineEnd:p.notificationOffset,insetInlineStart:"auto"},...h&&{...(u||d)&&{top:`calc(50% - (${p.sizeNotification} / 2))`},...d&&{insetInlineStart:`calc(-1 * ${p.sizeNotification} / 2)`,insetInlineEnd:"auto"},...u&&{insetInlineEnd:`calc(-1 * ${p.sizeNotification} / 2)`,insetInlineStart:"auto"}}},y={count:f,notification:R},m={count:{lineHeight:p.size,minWidth:p.size,paddingInlineStart:p.padding,paddingInlineEnd:p.padding},notification:{width:p.sizeNotification,height:p.sizeNotification}};return{badge:{label:"badge",fontFamily:p.fontFamily,fontWeight:p.fontWeight,boxSizing:"border-box",pointerEvents:"none",textAlign:"center",fontSize:p.fontSize,whiteSpace:"nowrap",borderRadius:p.borderRadius,...A[t].badge,...M&&{position:"relative","&::before":{content:'""',width:"calc(100% + 0.5rem)",height:"calc(100% + 0.5rem)",borderRadius:p.borderRadius,position:"absolute",top:"-0.25rem",insetInlineEnd:"auto",insetInlineStart:"-0.25rem",boxSizing:"border-box",border:`${p.pulseBorderThickness} solid`,opacity:0,transform:"scale(0.75)",animationName:xI,animationDuration:"1s",animationIterationCount:"4",animationDirection:"alternate",...A[t].pulseBorder}},...m[e],...!c&&{position:"absolute",zIndex:p.notificationZIndex,...y[e]}},wrapper:{label:"badge__wrapper",position:"relative",boxSizing:"border-box",svg:{display:"block"}}}},_I=p=>{var o,e,t,s,l;const c=p.borders,M=p.colors,b=p.spacing,z=p.typography,d=p.stacking,u=p.key,h={canvas:{colorPrimary:p["ic-brand-primary"]}};return{...{fontFamily:z==null?void 0:z.fontFamily,fontWeight:z==null?void 0:z.fontWeightNormal,color:M==null||(o=M.contrasts)===null||o===void 0?void 0:o.white1010,fontSize:z==null?void 0:z.fontSizeXSmall,colorDanger:M==null||(e=M.contrasts)===null||e===void 0?void 0:e.red4570,colorSuccess:M==null||(t=M.contrasts)===null||t===void 0?void 0:t.green4570,colorPrimary:M==null||(s=M.contrasts)===null||s===void 0?void 0:s.blue4570,colorInverse:M==null||(l=M.contrasts)===null||l===void 0?void 0:l.grey4570,size:"1.25rem",countOffset:"0.5rem",notificationOffset:"0.125rem",notificationZIndex:d==null?void 0:d.above,sizeNotification:b==null?void 0:b.small,borderRadius:"999rem",padding:b==null?void 0:b.xxSmall,pulseBorderThickness:c==null?void 0:c.widthMedium},...h[u]}},PI={count:i.number,countUntil:i.number,children:i.element,type:i.oneOf(["count","notification"]),standalone:i.bool,pulse:i.bool,variant:i.oneOf(["primary","success","danger","inverse"]),placement:j0.placement,display:i.oneOf(["inline-block","block"]),margin:p0.spacing,elementRef:i.func,formatOverflowText:i.func,formatOutput:i.func,as:i.elementType},EI=["count","countUntil","children","type","standalone","pulse","variant","placement","display","margin","elementRef","formatOverflowText","formatOutput","as"];var MR,bR,zR,be,s2;let qX=(MR=m0(),bR=I(TI,_I),zR=x(),MR(be=bR(be=zR(be=(s2=class extends a.Component{constructor(o){super(o),this._defaultId=void 0,this.ref=null,this.handleRef=e=>{const t=this.props.elementRef;this.ref=e,typeof t=="function"&&t(e)},this._defaultId=this.props.deterministicId()}componentDidMount(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}componentDidUpdate(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}countOverflow(){const o=this.props,e=o.count,t=o.countUntil;return t&&e&&t>1&&e>=t}renderOutput(){const o=this.props,e=o.count,t=o.countUntil,s=o.formatOverflowText,l=o.formatOutput,c=o.type;let M=(e||"").toString();return e&&t&&s&&c==="count"&&this.countOverflow()&&(M=s(e,t)),typeof l=="function"?l(M):c==="count"?M:null}renderBadge(){const o=this.props,e=o.count,t=o.margin,s=o.standalone,l=o.type,c=o.styles;return O(E,Object.assign({margin:s?t:"none",css:c==null?void 0:c.badge,title:l==="count"&&this.countOverflow()?e==null?void 0:e.toString():"",id:s?void 0:this._defaultId,display:s?"inline-block":"block"},s&&{elementRef:this.handleRef}),this.renderOutput())}renderChildren(){return a.Children.map(this.props.children,o=>d0(o,{"aria-describedby":this._defaultId}))}render(){const o=this.props,e=o.margin,t=o.standalone,s=o.display,l=o.as,c=o.styles;return t?this.renderBadge():O(E,{as:l,margin:e,elementRef:this.handleRef,css:c==null?void 0:c.wrapper,display:s},this.renderChildren(),this.renderBadge())}},s2.displayName="Badge",s2.componentId="Badge",s2.propTypes=PI,s2.allowedProps=EI,s2.defaultProps={standalone:!1,type:"count",variant:"primary",display:"inline-block",pulse:!1,placement:"top end",elementRef:()=>{},formatOverflowText:(p,o)=>`${o-1} +`},s2))||be)||be)||be);const XI=(p,o)=>{const e=o.alignContent,t=o.size,s={top:{alignItems:"flex-start"},center:{alignItems:"center"}},l={display:"flex",background:p.background,margin:0,padding:0,fontFamily:p.fontFamily,...s[e]},c={color:p.color,margin:0,padding:0};return{byline:{label:"byline",...l,"&:is(figure)":l,"&:-webkit-any(figure)":l},figure:{label:"byline__figure",marginInlineStart:0,marginInlineEnd:p.figureMargin},caption:{label:"byline__caption",...c,"&:is(figcaption)":c,"&:-webkit-any(figcaption)":c},title:{label:"byline__title",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"block",margin:p.titleMargin,fontSize:p.titleFontSize,fontWeight:p.titleFontWeight,lineHeight:p.titleLineHeight},description:{label:"byline__description",fontSize:p.descriptionFontSize,lineHeight:p.descriptionLineHeight,fontWeight:p.descriptionFontWeight},maxWidth:t&&p[t]}},$I=p=>{var o,e;const t=p.colors,s=p.spacing,l=p.typography,c=p.breakpoints,M=p.key,b={canvas:{color:p["ic-brand-font-color-dark"]}};return{...{fontFamily:l==null?void 0:l.fontFamily,background:t==null||(o=t.contrasts)===null||o===void 0?void 0:o.white1010,color:t==null||(e=t.contrasts)===null||e===void 0?void 0:e.grey125125,figureMargin:s==null?void 0:s.small,titleMargin:`0 0 ${s==null?void 0:s.xSmall} 0`,titleFontSize:l==null?void 0:l.fontSizeLarge,titleFontWeight:l==null?void 0:l.fontWeightNormal,titleLineHeight:l==null?void 0:l.lineHeightFit,descriptionFontSize:l==null?void 0:l.fontSizeMedium,descriptionFontWeight:l==null?void 0:l.fontWeightNormal,descriptionLineHeight:l==null?void 0:l.lineHeightCondensed,small:c==null?void 0:c.small,medium:c==null?void 0:c.medium,large:c==null?void 0:c.large},...b[M]}},HI={children:i.node.isRequired,title:i.node,description:i.oneOfType([i.string,i.node]),alignContent:i.oneOf(["top","center"]),margin:p0.spacing,size:i.oneOf(["small","medium","large"]),elementRef:i.func},kI=["alignContent","children","description","elementRef","margin","size","title"];var dR,OR,i2;let vX=(dR=I(XI,$I),dR(OR=(i2=class pb extends a.Component{constructor(...o){super(...o),this.ref=null,this.handleRef=e=>{const t=this.props.elementRef;this.ref=e,typeof t=="function"&&t(e)}}componentDidMount(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}componentDidUpdate(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}render(){var o,e,t,s,l,c;const M=E.omitViewProps(J(this.props,pb.allowedProps),pb);return O(E,Object.assign({},M,{elementRef:this.handleRef,css:(o=this.props.styles)===null||o===void 0?void 0:o.byline,as:"figure",margin:this.props.margin,maxWidth:(e=this.props.styles)===null||e===void 0?void 0:e.maxWidth}),O("div",{css:(t=this.props.styles)===null||t===void 0?void 0:t.figure},this.props.children),O("figcaption",{css:(s=this.props.styles)===null||s===void 0?void 0:s.caption},this.props.title&&O("span",{css:(l=this.props.styles)===null||l===void 0?void 0:l.title},this.props.title),this.props.description&&O("div",{css:(c=this.props.styles)===null||c===void 0?void 0:c.description},this.props.description)))}},i2.displayName="Byline",i2.componentId="Byline",i2.propTypes=HI,i2.allowedProps=kI,i2.defaultProps={alignContent:"center"},i2))||OR);const VI=(p,o)=>{const e=o.withYearPicker;return{navigation:{label:"calendar__navigation",textAlign:"center",color:p.color,background:p.background,fontFamily:p.fontFamily,fontSize:p.fontSize,fontWeight:p.fontWeight,marginBottom:e?p.navWithYearMargin:p.navMargin},navigationWithButtons:{label:"calendar__navigation--withButtons",display:"flex",alignItems:"center",justifyContent:"space-between"},weekdayHeader:{label:"calendar__weekdayHeader",textAlign:"center",maxWidth:p.maxHeaderWidth},yearPicker:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:p.yearPickerMargin}}},ZI=p=>{var o,e;const t=p.colors,s=p.typography,l=p.spacing,c=p.key,M={canvas:{color:p["ic-brand-font-color-dark"]}};return{...{fontSize:s==null?void 0:s.fontSizeMedium,fontFamily:s==null?void 0:s.fontFamily,fontWeight:s==null?void 0:s.fontWeightNormal,color:t==null||(o=t.contrasts)===null||o===void 0?void 0:o.grey125125,background:t==null||(e=t.contrasts)===null||e===void 0?void 0:e.white1010,navMargin:l==null?void 0:l.small,navWithYearMargin:l==null?void 0:l.xSmall,yearPickerMargin:l==null?void 0:l.mediumSmall,maxHeaderWidth:l==null?void 0:l.medium},...M[c]}},DI=(p,o,e)=>{const t=o.isOutsideMonth,s=o.isSelected,l=o.isToday,c=e.isDisabled;return{calendarDay:{label:"calendarDay",padding:0},day:{label:"calendarDay__day",display:"flex",alignItems:"center",justifyContent:"center",background:p.background,color:p.color,fontSize:p.fontSize,textDecoration:"none",lineHeight:1,height:p.height,minWidth:p.minWidth,border:"none",margin:0,...t&&{color:p.outsideMonthColor},...s&&{background:p.selectedBackground,borderRadius:p.selectedBorderRadius,color:p.selectedColor},...l&&!s&&{background:p.todayBackground,borderRadius:p.todayBorderRadius,color:p.todayColor},...c&&{opacity:.5}}}},FI=p=>{var o,e,t,s,l,c,M;const b=p.borders,z=p.colors,d=p.typography,u=p.spacing,h=p.forms,A=p.key,f={canvas:{color:p["ic-brand-font-color-dark"],todayBackground:p["ic-brand-primary"]}};return{...{color:z==null||(o=z.contrasts)===null||o===void 0?void 0:o.grey125125,background:z==null||(e=z.contrasts)===null||e===void 0?void 0:e.white1010,fontSize:d==null?void 0:d.fontSizeMedium,padding:u==null?void 0:u.xxSmall,height:h==null?void 0:h.inputHeightSmall,minWidth:h==null?void 0:h.inputHeightSmall,outsideMonthColor:z==null||(t=z.contrasts)===null||t===void 0?void 0:t.grey4570,selectedBackground:z==null||(s=z.contrasts)===null||s===void 0?void 0:s.green4570,selectedColor:z==null||(l=z.contrasts)===null||l===void 0?void 0:l.white1010,selectedBorderRadius:b==null?void 0:b.radiusMedium,todayBackground:z==null||(c=z.contrasts)===null||c===void 0?void 0:c.blue4570,todayColor:z==null||(M=z.contrasts)===null||M===void 0?void 0:M.white1010,todayBorderRadius:h==null?void 0:h.inputHeightSmall},...f[A]}},jI={children:i.oneOfType([i.node,i.func]),date:Ao.iso8601.isRequired,label:i.string.isRequired,interaction:i.oneOf(["enabled","disabled"]),isSelected:i.bool,isToday:i.bool,isOutsideMonth:i.bool,onClick:i.func,onKeyDown:i.func,elementRef:i.func,as:i.elementType},UI=["children","date","label","interaction","isSelected","isToday","isOutsideMonth","onClick","onKeyDown","elementRef","as"],GI=["children","label","interaction","isOutsideMonth","isSelected","isToday","onClick","onKeyDown","as","styles"];var hR,uR,ha,l2;let IL=(hR=I(DI,FI),uR=x(),hR(ha=uR(ha=(l2=class iM extends a.Component{constructor(...o){super(...o),this.ref=null,this.handleClick=e=>{const t=this.props,s=t.onClick,l=t.date;typeof s=="function"&&s(e,{date:l})},this.handleKeyDown=e=>{const t=this.props,s=t.onKeyDown,l=t.date;typeof s=="function"&&s(e,{date:l})},this.handleElementRef=e=>{const t=this.props.elementRef;this.ref=e,typeof t=="function"&&t(e)}}componentDidMount(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e,this.makeStylesVariables)}componentDidUpdate(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e,this.makeStylesVariables)}get makeStylesVariables(){return{isDisabled:this.isDisabled}}get isDisabled(){return this.props.interaction==="disabled"}get elementType(){return this.props.as||se(iM,this.props)}shouldApplyAriaSelected(){const o=this.props.role;return!!o&&["option","gridcell"].indexOf(o)>-1}render(){const o=this.props,e=o.children,t=o.label;o.interaction,o.isOutsideMonth;const s=o.isSelected,l=o.isToday,c=o.onClick,M=o.onKeyDown;o.as;const b=o.styles,z=n0(o,GI),d=this.elementType,u=this.isDisabled,h=E.omitViewProps(J(z,iM.allowedProps),iM);return O(E,Object.assign({},h,{as:d,css:b==null?void 0:b.calendarDay,display:"inline-block",margin:"xxx-small",borderWidth:"none",borderColor:"transparent",background:"transparent",cursor:d==="button"||d==="a"?u?"not-allowed":"pointer":"auto",disabled:u,"aria-current":l?"date":void 0,"aria-selected":this.shouldApplyAriaSelected()?s?"true":"false":void 0,onClick:c&&this.handleClick,onKeyDown:M&&this.handleKeyDown,elementRef:this.handleElementRef}),O("span",{css:b==null?void 0:b.day},O(h0,{alt:t},Q(e))))}},l2.displayName="Day",l2.componentId="Calendar.Day",l2.propTypes=jI,l2.allowedProps=UI,l2.defaultProps={interaction:"enabled",isSelected:!1,isToday:!1,isOutsideMonth:!1},l2))||ha)||ha);const YI={as:i.elementType,children:L0.oneOf([IL]),currentDate:i.string,disabledDates:i.oneOfType([i.array,i.func]),locale:i.string,onDateSelected:i.func,onRequestRenderNextMonth:i.func,onRequestRenderPrevMonth:i.func,renderNavigationLabel:i.oneOfType([i.node,i.func]),renderNextMonthButton:i.oneOfType([i.node,i.func]),renderPrevMonthButton:i.oneOfType([i.node,i.func]),renderWeekdayLabels:i.arrayOf(i.oneOfType([i.node,i.func])),role:i.oneOf(["table","listbox"]),selectedDate:i.string,timezone:i.string,visibleMonth:i.string,withYearPicker:i.object},KI=["as","children","currentDate","disabledDates","locale","onDateSelected","onRequestRenderNextMonth","onRequestRenderPrevMonth","renderNavigationLabel","renderNextMonthButton","renderPrevMonthButton","renderWeekdayLabels","role","selectedDate","timezone","visibleMonth"];var AR,fR,ua,e1,qR,mR;let fo=(AR=I(VI,ZI),fR=x(),AR(ua=fR(ua=(e1=class Y2 extends a.Component{constructor(o){super(o),this.ref=null,this._weekdayHeaderIds=(this.props.renderWeekdayLabels||this.defaultWeekdays).reduce((e,t,s)=>({...e,[s]:Ly(`weekday-header-${s}`)}),{}),this.handleRef=e=>{this.ref=e},this.calculateState=(e,t,s)=>{const l=this.props.visibleMonth||s;return{visibleMonth:l?k.parse(l,e,t):k.now(e,t),today:s?k.parse(s,e,t):k.now(e,t)}},this.renderMonthNavigationButtons=()=>{const e=this.props,t=e.renderNextMonthButton,s=e.renderPrevMonthButton;return{prevButton:s?Q(s):qR||(qR=O($0,{size:"small",withBackground:!1,withBorder:!1,renderIcon:O(vM,{color:"primary"}),screenReaderLabel:"Previous month"})),nextButton:t?Q(t):mR||(mR=O($0,{size:"small",withBackground:!1,withBorder:!1,renderIcon:O(Pe,{color:"primary"}),screenReaderLabel:"Next month"}))}},this.handleMonthChange=e=>t=>{const s=this.props,l=s.onRequestRenderNextMonth,c=s.onRequestRenderPrevMonth,b=this.state.visibleMonth.clone();if(e==="prev"){if(!this.hasPrevMonth)return;if(c){c(t,b.subtract({months:1}).format("YYYY-MM"));return}b.subtract({months:1})}else{if(!this.hasNextMonth)return;if(l){l(t,b.add({months:1}).format("YYYY-MM"));return}b.add({months:1})}this.setState({visibleMonth:b})},this.handleYearChange=(e,t)=>{const s=this.props.withYearPicker,c=this.state.visibleMonth.clone();if(s!=null&&s.onRequestYearChange){s.onRequestYearChange(e,t);return}c.year(t),this.setState({visibleMonth:c})},this.handleDayClick=(e,{date:t})=>{if(this.props.onDateSelected){const s=k.parse(t,this.locale(),this.timezone());this.props.onDateSelected(s.toISOString(),s,e)}},this.state=this.calculateState(this.locale(),this.timezone(),o.currentDate)}componentDidMount(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}componentDidUpdate(o){var e,t;(e=(t=this.props).makeStyles)===null||e===void 0||e.call(t),(o.locale!==this.props.locale||o.timezone!==this.props.timezone||o.visibleMonth!==this.props.visibleMonth)&&this.setState(()=>({...this.calculateState(this.locale(),this.timezone(),this.props.currentDate)}))}get role(){return this.props.role==="listbox"?this.props.role:void 0}get hasPrevMonth(){return!this.props.withYearPicker||this.props.withYearPicker&&Number(this.state.visibleMonth.clone().subtract({months:1}).format("YYYY"))>=this.props.withYearPicker.startYear}get hasNextMonth(){return!this.props.withYearPicker||this.props.withYearPicker&&Number(this.state.visibleMonth.clone().add({months:1}).format("YYYY"))<=this.props.withYearPicker.endYear}renderHeader(){const o=this.props,e=o.renderNavigationLabel,t=o.styles,s=o.withYearPicker,l=this.state.visibleMonth,c=this.renderMonthNavigationButtons(),M=c.prevButton,b=c.nextButton,z=(h,A)=>d0(h,{onClick:A0(h.props.onClick,A)}),d=[t==null?void 0:t.navigation,...M||b?[t==null?void 0:t.navigationWithButtons]:[]],u=[];if(s){const h=s.startYear,A=s.endYear;for(let f=A;f>=h;f--)u.push(f)}return O("div",null,O("div",{css:d},M&&z(M,this.handleMonthChange("prev")),e?Q(e):O("span",null,O("div",null,l.format("MMMM")),s?null:O("div",null,l.format("YYYY"))),b&&z(b,this.handleMonthChange("next"))),s?O("div",{css:t==null?void 0:t.yearPicker},O(Fb,{width:"90px",renderLabel:"",assistiveText:s.screenReaderLabel,value:Number(l.format("YYYY")),onChange:(h,{value:A})=>this.handleYearChange(h,Number(A))},u.map(h=>O(Fb.Option,{key:h,id:`opt-${h}`,value:h},`${h}`)))):null)}renderBody(){return O("table",{role:this.role},O("thead",null,this.renderWeekdayHeaders()),O("tbody",null,this.renderDays()))}renderWeekdayHeaders(){const o=this.props.styles,e=this.props.renderWeekdayLabels||this.defaultWeekdays,t=e.length;return M0(t===7,`[Calendar] \`renderWeekdayLabels\` should be an array with 7 labels (one for each weekday). ${t} provided.`),O("tr",null,e.map((s,l)=>O("th",{key:l,scope:"col",css:o==null?void 0:o.weekdayHeader,id:this._weekdayHeaderIds[l]},Q(s))))}get defaultWeekdays(){const o=k.getLocalDayNamesOfTheWeek(this.locale(),"short"),e=k.getLocalDayNamesOfTheWeek(this.locale(),"long");return[O(h0,{key:1,alt:e[0]},o[0]),O(h0,{key:2,alt:e[1]},o[1]),O(h0,{key:3,alt:e[2]},o[2]),O(h0,{key:4,alt:e[3]},o[3]),O(h0,{key:5,alt:e[4]},o[4]),O(h0,{key:6,alt:e[5]},o[5]),O(h0,{key:7,alt:e[6]},o[6])]}renderDays(){const o=this.props.children,e=a.Children.toArray(o||this.renderDefaultdays()),t=e.length,s=this.role==="listbox"?"presentation":void 0;return M0(t===Y2.DAY_COUNT,`[Calendar] should have exactly ${Y2.DAY_COUNT} children. ${t} provided.`),e.reduce((l,c,M)=>{const b=Math.floor(M/7);return l[b]||l.push([]),l[b].push(c),l},[]).map(l=>O("tr",{key:`row${l[0].props.date}`,role:s},l.map((c,M)=>O("td",{key:c.props.date,role:s},s==="presentation"?d0(c,{"aria-describedby":this._weekdayHeaderIds[M]}):c))))}locale(){return this.props.locale?this.props.locale:this.context&&this.context.locale?this.context.locale:wo.browserLocale()}timezone(){return this.props.timezone?this.props.timezone:this.context&&this.context.timezone?this.context.timezone:k.browserTimeZone()}isDisabledDate(o){const e=this.props.disabledDates;if(!e)return!1;if(Array.isArray(e)){for(const t of e)if(o.isSame(t,"day"))return!0;return!1}return e(o.toISOString())}renderDefaultdays(){const o=this.props.selectedDate,e=this.state,t=e.visibleMonth,s=e.today,l=k.getFirstDayOfWeek(t.clone().startOf("month")),c=[];for(let M=0;M{const b=M.toISOString();return O(Y2.Day,{key:b,date:b,isSelected:o?M.isSame(o,"day"):!1,isToday:M.isSame(s,"day"),isOutsideMonth:!M.isSame(t,"month"),label:M.format("D MMMM YYYY"),onClick:this.handleDayClick,interaction:this.isDisabledDate(M)?"disabled":"enabled"},M.format("DD"))})}render(){const o=E.omitViewProps(J(this.props,Y2.allowedProps),Y2);return O(E,Object.assign({},o,{as:this.props.as,display:"inline-block",padding:"small",background:"primary",elementRef:this.handleRef}),this.renderHeader(),this.renderBody())}},e1.displayName="Calendar",e1.componentId="Calendar",e1.contextType=yo,e1.Day=IL,e1.DAY_COUNT=42,e1.propTypes=YI,e1.allowedProps=KI,e1.defaultProps={as:"span",role:"table"},e1))||ua)||ua);const QI=(p,o)=>{const e=o.size,t=o.checked,s=o.focused,l=o.hovered,c=o.indeterminate,M=t||c,b={small:{label:{fontSize:p.labelFontSizeSmall},facade:{fontSize:p.iconSizeSmall,width:p.facadeSizeSmall,height:p.facadeSizeSmall}},medium:{label:{fontSize:p.labelFontSizeMedium},facade:{fontSize:p.iconSizeMedium,width:p.facadeSizeMedium,height:p.facadeSizeMedium}},large:{label:{fontSize:p.labelFontSizeLarge},facade:{fontSize:p.iconSizeLarge,width:p.facadeSizeLarge,height:p.facadeSizeLarge}}};return{checkboxFacade:{label:"checkboxFacade",display:"flex",alignItems:"flex-start"},facade:{label:"checkboxFacade__facade",color:p.color,background:p.background,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",flexShrink:0,transition:"all 0.2s",border:`${p.borderWidth} solid ${p.borderColor}`,borderRadius:p.borderRadius,marginInlineEnd:p.marginRight,marginInlineStart:"0",padding:p.padding,...b[e].facade,"&::before":{content:'""',position:"absolute",top:"-0.3125rem",bottom:"-0.3125rem",left:"-0.3125rem",right:"-0.3125rem",boxSizing:"border-box",borderRadius:`calc(${p.borderRadius} * 1.5)`,border:`${p.focusBorderWidth} ${p.focusBorderStyle} ${p.focusBorderColor}`,transition:"all 0.2s",transform:"scale(0.75)",opacity:0,pointerEvents:"none",...s&&{transform:"scale(1)",opacity:1}},...M&&{background:p.checkedBackground,borderColor:p.checkedBorderColor},...l&&{borderColor:p.hoverBorderColor}},label:{label:"checkboxFacade__label",flex:"1 1 auto",minWidth:"0.0625rem",color:p.labelColor,fontFamily:p.labelFontFamily,fontWeight:p.labelFontWeight,lineHeight:p.labelLineHeight,...b[e].label,...M&&{color:p.checkedLabelColor}}}},JI=p=>{var o,e,t,s,l,c,M,b,z;const d=p.colors,u=p.borders,h=p.spacing,A=p.typography,f=p.key,R={canvas:{focusBorderColor:p["ic-brand-primary"],labelColor:p["ic-brand-font-color-dark"],checkedLabelColor:p["ic-brand-font-color-dark"],checkedBackground:p["ic-brand-font-color-dark"],checkedBorderColor:p["ic-brand-font-color-dark"],hoverBorderColor:p["ic-brand-font-color-dark"]}};return{...{color:d==null||(o=d.contrasts)===null||o===void 0?void 0:o.white1010,borderWidth:u==null?void 0:u.widthSmall,borderColor:d==null||(e=d.contrasts)===null||e===void 0?void 0:e.grey1214,borderRadius:u==null?void 0:u.radiusMedium,background:d==null||(t=d.contrasts)===null||t===void 0?void 0:t.white1010,marginRight:h==null?void 0:h.xSmall,padding:h==null?void 0:h.xxxSmall,checkedBackground:d==null||(s=d.contrasts)===null||s===void 0?void 0:s.grey125125,checkedBorderColor:d==null||(l=d.contrasts)===null||l===void 0?void 0:l.grey125125,hoverBorderColor:d==null||(c=d.contrasts)===null||c===void 0?void 0:c.grey125125,focusBorderColor:d==null||(M=d.contrasts)===null||M===void 0?void 0:M.blue4570,focusBorderWidth:u==null?void 0:u.widthMedium,focusBorderStyle:u==null?void 0:u.style,labelColor:d==null||(b=d.contrasts)===null||b===void 0?void 0:b.grey125125,checkedLabelColor:d==null||(z=d.contrasts)===null||z===void 0?void 0:z.grey125125,labelFontFamily:A==null?void 0:A.fontFamily,labelFontWeight:A==null?void 0:A.fontWeightNormal,labelLineHeight:A==null?void 0:A.lineHeightCondensed,facadeSizeSmall:"1rem",facadeSizeMedium:"1.25rem",facadeSizeLarge:"1.75rem",labelFontSizeSmall:A==null?void 0:A.fontSizeSmall,labelFontSizeMedium:A==null?void 0:A.fontSizeMedium,labelFontSizeLarge:A==null?void 0:A.fontSizeLarge,iconSizeSmall:"0.625rem",iconSizeMedium:"0.75rem",iconSizeLarge:"1rem"},...R[f]}},ex={children:i.node.isRequired,checked:i.bool,focused:i.bool,hovered:i.bool,size:i.oneOf(["small","medium","large"]),indeterminate:i.bool},ox=["children","checked","focused","hovered","size","indeterminate"];var vR,RR,c2,WR,gR;let tx=(vR=I(QI,JI),vR(RR=(c2=class extends a.Component{constructor(...o){super(...o),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}componentDidUpdate(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}renderIcon(){return this.props.indeterminate?WR||(WR=O(n,{viewBox:"0 0 1920 1920",inline:!1},O("rect",{x:"140",y:"820",width:"1640",height:"280"}))):this.props.checked?gR||(gR=O(ae,{inline:!1})):null}render(){const o=this.props,e=o.children,t=o.styles;return O("span",{css:t==null?void 0:t.checkboxFacade,ref:this.handleRef},O("span",{css:t==null?void 0:t.facade,"aria-hidden":"true"},this.renderIcon()),O("span",{css:t==null?void 0:t.label},e))}},c2.displayName="CheckboxFacade",c2.componentId="CheckboxFacade",c2.propTypes=ex,c2.allowedProps=ox,c2.defaultProps={checked:!1,focused:!1,hovered:!1,size:"medium",indeterminate:!1},c2))||RR);const px=(p,o)=>{const e=o.size,t=o.checked,s=o.focused,l=o.labelPlacement,c={start:{facade:{marginInlineEnd:"0",marginInlineStart:p.marginStart},label:{textAlign:"end"}},end:{facade:{marginInlineEnd:p.marginEnd,marginInlineStart:"0"},label:{}},top:{facade:{marginTop:p.marginVertical},label:{display:"block"}}},M={small:{fontSize:p.labelFontSizeSmall},medium:{fontSize:p.labelFontSizeMedium},large:{fontSize:p.labelFontSizeLarge}};return{toggleFacade:{label:"toggleFacade",display:"flex",alignItems:"center",...l==="top"&&{display:"block"}},facade:{label:"toggleFacade__facade",background:p.background,borderColor:p.borderColor,cursor:"pointer",display:"inline-block",userSelect:"none",position:"relative",borderRadius:"3rem",verticalAlign:"middle",boxShadow:`inset 0 0 0 ${p.borderWidth} ${p.borderColor}`,height:p.toggleSize,width:`calc(${p.toggleSize} * 1.5)`,...c[l].facade,...t&&{background:p.checkedBackground,boxShadow:"none"},"&::before":{content:'""',position:"absolute",top:"-0.25rem",left:"-0.25rem",width:"calc(100% + 0.5rem)",height:"calc(100% + 0.5rem)",boxSizing:"border-box",borderRadius:p.borderRadius,border:`${p.focusBorderWidth} ${p.focusBorderStyle} ${p.focusOutlineColor}`,transition:"all 0.2s",transform:"scale(0.75)",opacity:0,pointerEvents:"none",...s&&{transform:"scale(1)",opacity:1}}},icon:{label:"toggleFacade__icon",display:"block",textAlign:"center",position:"absolute",top:"0",insetInlineStart:"0",insetInlineEnd:"auto",transition:"all 0.2s",transform:"translate3d(0, 0, 0)",fontSize:"0.875rem",height:p.toggleSize,width:p.toggleSize,...t&&{transform:"translate3d(50%, 0, 0)",'[dir="rtl"] &':{transform:"translate3d(-50%, 0, 0)"}}},iconToggle:{label:"toggleFacade__iconToggle",position:"relative",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center","&::before":{content:'""',position:"absolute",top:p.borderWidth,left:p.borderWidth,height:`calc(100% - (${p.borderWidth} * 2))`,width:`calc(100% - (${p.borderWidth} * 2))`,background:p.toggleBackground,boxShadow:p.toggleShadow,borderRadius:"100%"}},iconSVG:{label:"toggleFacade__iconSVG",display:"block",color:p.uncheckedIconColor,position:"relative",zIndex:1,...t&&{color:p.checkedIconColor}},label:{label:"toggleFacade__label",flex:1,minWidth:"0.0625rem",color:p.labelColor,fontFamily:p.labelFontFamily,fontWeight:p.labelFontWeight,lineHeight:p.labelLineHeight,...M[e],...c[l].label}}},nx=p=>{var o,e,t,s,l,c,M,b,z,d,u;const h=p.colors,A=p.borders,f=p.forms,R=p.shadows,y=p.spacing,m=p.typography,_=p.key,$={canvas:{focusOutlineColor:p["ic-brand-primary"],labelColor:p["ic-brand-font-color-dark"]},"canvas-high-contrast":{background:h==null||(o=h.contrasts)===null||o===void 0?void 0:o.grey125125,borderColor:h==null||(e=h.contrasts)===null||e===void 0?void 0:e.grey125125}};return{...{color:h==null||(t=h.contrasts)===null||t===void 0?void 0:t.white1010,background:h==null||(s=h.contrasts)===null||s===void 0?void 0:s.grey1111,borderColor:h==null||(l=h.contrasts)===null||l===void 0?void 0:l.grey1214,borderWidth:A==null?void 0:A.widthSmall,borderRadius:"4rem",marginEnd:y==null?void 0:y.small,marginStart:y==null?void 0:y.small,marginVertical:y==null?void 0:y.xSmall,checkedBackground:h==null||(c=h.contrasts)===null||c===void 0?void 0:c.green4570,uncheckedIconColor:h==null||(M=h.contrasts)===null||M===void 0?void 0:M.grey125125,checkedIconColor:h==null||(b=h.contrasts)===null||b===void 0?void 0:b.green4570,focusOutlineColor:h==null||(z=h.contrasts)===null||z===void 0?void 0:z.blue4570,focusBorderWidth:A==null?void 0:A.widthMedium,focusBorderStyle:A==null?void 0:A.style,toggleBackground:h==null||(d=h.contrasts)===null||d===void 0?void 0:d.white1010,toggleShadow:R==null?void 0:R.depth1,toggleSize:f==null?void 0:f.inputHeightSmall,labelColor:h==null||(u=h.contrasts)===null||u===void 0?void 0:u.grey125125,labelFontFamily:m==null?void 0:m.fontFamily,labelFontWeight:m==null?void 0:m.fontWeightNormal,labelLineHeight:m==null?void 0:m.lineHeightCondensed,labelFontSizeSmall:m==null?void 0:m.fontSizeSmall,labelFontSizeMedium:m==null?void 0:m.fontSizeMedium,labelFontSizeLarge:m==null?void 0:m.fontSizeLarge},...$[_]}},rx={children:i.node.isRequired,checked:i.bool,disabled:i.bool,readOnly:i.bool,focused:i.bool,size:i.oneOf(["small","medium","large"]),labelPlacement:i.oneOf(["top","start","end"])},sx=["children","checked","disabled","readOnly","focused","size","labelPlacement"];var yR,LR,a2;let ix=(yR=I(px,nx),yR(LR=(a2=class extends a.Component{constructor(...o){super(...o),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}componentDidUpdate(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}renderIcon(){const o=this.props,e=o.styles;return o.checked?O(Ny,{css:e==null?void 0:e.iconSVG}):O(wy,{css:e==null?void 0:e.iconSVG})}renderLabel(){const o=this.props,e=o.children,t=o.styles;return O("span",{css:t==null?void 0:t.label},e)}render(){const o=this.props,e=o.labelPlacement,t=o.styles;return O("span",{css:t==null?void 0:t.toggleFacade,ref:this.handleRef},(e==="top"||e==="start")&&this.renderLabel(),O("span",{css:t==null?void 0:t.facade,"aria-hidden":"true"},O("span",{css:t==null?void 0:t.icon},O("span",{css:t==null?void 0:t.iconToggle},this.renderIcon()))),e==="end"&&this.renderLabel())}},a2.displayName="ToggleFacade",a2.componentId="ToggleFacade",a2.propTypes=rx,a2.allowedProps=sx,a2.defaultProps={checked:!1,focused:!1,size:"medium",disabled:!1,readOnly:!1,labelPlacement:"end"},a2))||LR);const lx=(p,o)=>{const e=o.inline;return{checkbox:{label:"checkbox",position:"relative",width:"100%",...o.disabled&&{cursor:"not-allowed",pointerEvents:"none",opacity:.5},...e&&{display:"inline-block",verticalAlign:"middle",width:"auto"}},input:{label:"checkbox__input",padding:0,margin:0,fontSize:"inherit",lineHeight:"inherit",width:"auto",position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",opacity:1e-4},control:{label:"checkbox__control",all:"initial",display:"block",direction:"inherit",textAlign:"start"}}},cx={label:i.node.isRequired,id:i.string,value:i.oneOfType([i.string,i.number]),messages:i.arrayOf(s1.message),defaultChecked:i.bool,checked:N0(i.bool,"onChange","defaultChecked"),onChange:i.func,onKeyDown:i.func,onFocus:i.func,onBlur:i.func,onMouseOver:i.func,onMouseOut:i.func,disabled:i.bool,readOnly:i.bool,indeterminate:i.bool,size:i.oneOf(["small","medium","large"]),variant:i.oneOf(["simple","toggle"]),inline:i.bool,labelPlacement:i.oneOf(["top","start","end"])},ax=["label","id","value","messages","defaultChecked","checked","onChange","onKeyDown","onFocus","onBlur","onMouseOver","onMouseOut","disabled","readOnly","indeterminate","size","variant","inline","labelPlacement"];var NR,CR,BR,ze,M2;let xL=(NR=m0(),CR=I(lx,null),BR=x(),NR(ze=CR(ze=BR(ze=(M2=class TL extends a.Component{constructor(o){super(o),this._defaultId=void 0,this._input=null,this.ref=null,this.handleRef=e=>{this.ref=e},this.handleChange=e=>{const t=this.props,s=t.onChange,l=t.disabled,c=t.checked,M=t.readOnly;if(l||M){e.preventDefault();return}typeof c>"u"&&this.setState({checked:!this.state.checked}),typeof s=="function"&&s(e)},this.handleKeyDown=e=>{this.props.variant==="toggle"&&e.keyCode===F.codes.enter&&(this._input&&this._input.click(),e.preventDefault())},this.handleFocus=()=>{this.setState({focused:!0})},this.handleBlur=()=>{this.setState({focused:!1})},this.handleMouseOver=()=>{!this.props.disabled&&this.setState({hovered:!0})},this.handleMouseOut=()=>{this.setState({hovered:!1})},this.state={focused:!1,hovered:!1,checked:typeof o.checked>"u"?!!o.defaultChecked:void 0},typeof o.checked>"u"&&(this.state.checked=!!o.defaultChecked),this._defaultId=o.deterministicId()}componentDidMount(){var o,e;this._input&&(this._input.indeterminate=this.props.indeterminate),(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}componentDidUpdate(o){var e,t;o.indeterminate!==this.props.indeterminate&&this._input&&(this._input.indeterminate=this.props.indeterminate||!1),(e=(t=this.props).makeStyles)===null||e===void 0||e.call(t)}get id(){return this.props.id||this._defaultId}get checked(){return typeof this.props.checked>"u"?this.state.checked:this.props.checked}get focused(){return vo(this._input)}focus(){this._input&&this._input.focus()}renderFacade(){const o=this.props,e=o.size,t=o.disabled,s=o.variant,l=o.label,c=o.readOnly,M=o.indeterminate,b=o.labelPlacement,z=o.themeOverride,d=this.state,u=d.hovered,h=d.focused;return M0(!(s==="simple"&&b!=="end"),"[Checkbox] The `simple` variant does not support the `labelPlacement` property. Use the `toggle` variant instead."),s==="toggle"?O(ix,{disabled:t,size:e,focused:h,checked:this.checked,readOnly:c,labelPlacement:b,themeOverride:z},l):O(tx,{size:e,hovered:u,focused:h,checked:this.checked,indeterminate:M,themeOverride:z},l)}renderMessages(){const o=this.props.messages;return o&&o.length>0?O(E,{display:"block",margin:"small 0 0"},O(gy,{messages:o})):null}render(){const o=this.props,e=o.disabled,t=o.readOnly,s=o.value,l=o.onKeyDown,c=o.onFocus,M=o.onBlur,b=o.onMouseOver,z=o.onMouseOut,d=o.indeterminate,u=o.variant,h=o.styles,A=J(this.props,TL.allowedProps);return M0(!(u==="toggle"&&d),"[Checkbox] The `toggle` variant does not support the `indeterminate` property. Use the `simple` variant instead."),O("div",{css:h==null?void 0:h.checkbox,onMouseOver:A0(b,this.handleMouseOver),onMouseOut:A0(z,this.handleMouseOut),ref:this.handleRef},O("input",Object.assign({},A,{id:this.id,value:s,type:"checkbox",ref:f=>{this._input=f},disabled:e||t,"aria-checked":d?"mixed":void 0,css:h==null?void 0:h.input,onChange:this.handleChange,onKeyDown:A0(l,this.handleKeyDown),onFocus:A0(c,this.handleFocus),onBlur:A0(M,this.handleBlur),checked:this.checked})),O("label",{htmlFor:this.id,css:h==null?void 0:h.control},this.renderFacade(),this.renderMessages()))}},M2.displayName="Checkbox",M2.componentId="Checkbox",M2.propTypes=cx,M2.allowedProps=ax,M2.defaultProps={size:"medium",variant:"simple",disabled:!1,inline:!1,indeterminate:!1,readOnly:!1,labelPlacement:"end"},M2))||ze)||ze)||ze);const Mx={name:i.string.isRequired,description:i.node.isRequired,defaultValue:i.array,value:N0(i.array),onChange:i.func,disabled:i.bool,readOnly:i.bool,messages:i.arrayOf(s1.message),children:L0.oneOf([xL]),size:i.oneOf(["small","medium","large"]),layout:i.oneOf(["stacked","columns","inline"])},bx=["name","description","defaultValue","value","onChange","disabled","readOnly","messages","children","size","layout"];var wR,SR,Aa,b2;let gX=(wR=m0(),SR=x(),wR(Aa=SR(Aa=(b2=class _L extends a.Component{constructor(o){super(o),this._messagesId=void 0,this.ref=null,this.handleRef=e=>{this.ref=e},this.handleChange=e=>{const t=this.value;if(this.props.disabled||this.props.readOnly){e.preventDefault();return}e.target.checked?t.push(e.target.value):t.splice(t.indexOf(e.target.value),1),typeof this.props.value>"u"&&this.setState({value:t}),typeof this.props.onChange=="function"&&this.props.onChange(t)},typeof o.value>"u"&&(this.state={value:o.defaultValue||[]}),this._messagesId=o.deterministicId()}get hasMessages(){return this.props.messages&&this.props.messages.length>0}get value(){return typeof this.props.value>"u"?[...this.state.value]:[...this.props.value]}renderChildren(){const o=this.props,e=o.children,t=o.name,s=o.size,l=o.disabled,c=o.readOnly;return a.Children.map(e,M=>f0(M,[xL])?d0(M,{key:`${M.props.name}`,name:t,label:M.props.label,disabled:l||M.props.disabled,readOnly:c||M.props.readOnly,size:s,checked:this.value.indexOf(M.props.value)>-1,onChange:this.handleChange,width:M.props.width||"auto","aria-describedby":this.hasMessages?this._messagesId:void 0}):M)}render(){return r.createElement(FM,Object.assign({},J(this.props,_L.allowedProps),q1(this.props,FM.allowedProps),{description:this.props.description,rowSpacing:"small",vAlign:"top",messagesId:this._messagesId,elementRef:this.handleRef}),this.renderChildren())}},b2.displayName="CheckboxGroup",b2.componentId="CheckboxGroup",b2.propTypes=Mx,b2.allowedProps=bx,b2.defaultProps={disabled:!1,readOnly:!1,size:"medium",layout:"stacked",children:null},b2))||Aa)||Aa);const IR=ie` 0% {} 50% { background-color: transparent; } - 100% {}`,zx=(p,o)=>{const e=o.attachment,t={top:{borderBottomLeftRadius:0,borderBottomRightRadius:0,marginTop:"0.25rem"},bottom:{borderTopLeftRadius:0,borderTopRightRadius:0,marginBottom:"0.25rem"}};return{codeEditor:{label:"codeEditor"},globalStyles:{".CodeMirror":{direction:"ltr",position:"relative",overflow:"hidden",background:p.background,height:"auto",fontFamily:p.fontFamily,fontSize:p.fontSize,borderRadius:p.borderRadius,border:p.border,color:p.color,lineHeight:1.4375,minHeight:"1.4375rem",marginBottom:"1rem",...e&&t[e]},".CodeMirror-lines":{padding:`${p.verticalPadding} 0`,cursor:"text",minHeight:"0.0625rem"},".CodeMirror pre":{padding:`0 ${p.horizontalPadding}`,borderRadius:"0",borderWidth:"0",background:"transparent",fontFamily:"inherit",fontSize:"inherit",margin:"0",whiteSpace:"pre",wordWrap:"normal",lineHeight:"inherit",color:"inherit",zIndex:`calc(${p.zIndex} + 3)`,position:"relative",overflow:"visible",WebkitTapHighlightColor:"transparent",fontVariantLigatures:"contextual"},".CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler":{background:p.background},".CodeMirror-cursor":{borderLeft:`0.0625rem solid ${p.cursorColor}`,borderRight:"none",width:"0",position:"absolute",pointerEvents:"none"},".CodeMirror-cursors":{visibility:"hidden",position:"relative",zIndex:`calc(${p.zIndex} + 4)`},".CodeMirror-dragcursors":{visibility:"visible"},".CodeMirror-focused .CodeMirror-cursors":{visibility:"visible"},".CodeMirror-crosshair":{cursor:"crosshair"},".cm-fat-cursor .CodeMirror-cursor":{width:"auto",border:"0 !important",background:p.fatCursorBackground},".cm-fat-cursor .CodeMirror-cursors":{zIndex:`calc(${p.zIndex} + 2)`},".CodeMirror .CodeMirror-secondarycursor":{borderLeft:`0.0625rem solid ${p.secondaryCursorColor}`},".cm-fat-cursor-mark":{background:p.fatCursorMarkBackground,animation:`${IR} 1.06s steps(1) infinite`},".cm-animate-fat-cursor":{width:"auto",border:"0",animation:`${IR} 1.06s steps(1) infinite`,backgroundColor:p.fatCursorBackground},".cm-tab":{display:"inline-block",textDecoration:"inherit"},".CodeMirror-rulers":{position:"absolute",left:"0",right:"0",top:"-50px",bottom:"-20px",overflow:"hidden"},".CodeMirror-ruler":{borderLeft:`0.0625rem solid ${p.rulerColor}`,top:"0",bottom:"0",position:"absolute"},"div.CodeMirror span.CodeMirror-matchingbracket":{outline:`0.0625rem solid ${p.matchingBracketOutline}`},"div.CodeMirror span.CodeMirror-nonmatchingbracket":{color:p.nonMatchingBracketColor},".CodeMirror-matchingtag":{background:p.matchingTagBackground},"div.CodeMirror-activeline-background":{background:p.activeLineBackground},".CodeMirror-scroll":{overflow:"scroll !important",marginBottom:"-30px",marginRight:"-30px",paddingBottom:"30px",height:"100%",outline:"none",position:"relative"},".CodeMirror-sizer":{position:"relative",borderRight:"30px solid transparent"},".CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler":{position:"absolute",zIndex:`calc(${p.zIndex} + 7)`,display:"none"},".CodeMirror-vscrollbar":{right:"0",top:"0",overflowX:"hidden",overflowY:"scroll"},".CodeMirror-hscrollbar":{bottom:"0",left:"0",overflowY:"hidden",overflowX:"scroll"},".CodeMirror-scrollbar-filler":{right:"0",bottom:"0"},".CodeMirror-gutter-filler":{left:"0",bottom:"0"},".CodeMirror-gutters":{borderTopLeftRadius:p.borderRadius,borderBottomLeftRadius:p.borderRadius,borderRight:`0.0625rem solid ${p.gutterBorder}`,overflow:"hidden",background:p.gutterBackground,whiteSpace:"nowrap",position:"absolute",left:"0",top:"0",minHeight:"100%",zIndex:`calc(${p.zIndex} + 4)`},".CodeMirror-linenumber":{padding:"0 0.1875rem 0 0.3125rem",minWidth:"1.25rem",textAlign:"right",color:p.lineNumberColor,whiteSpace:"nowrap"},".CodeMirror-guttermarker":{color:p.gutterMarkerColor},".CodeMirror-guttermarker-subtle":{color:p.gutterMarkerSubtleColor},".CodeMirror-gutter":{whiteSpace:"normal",height:"100%",display:"inline-block",verticalAlign:"top",marginBottom:"-30px"},".CodeMirror-gutter-wrapper":{position:"absolute",zIndex:`calc(${p.zIndex} + 5)`,background:"none !important",border:"none !important"},".CodeMirror-gutter-background":{position:"absolute",top:"0",bottom:"0",zIndex:`calc(${p.zIndex} + 5)`},".CodeMirror-gutter-elt":{position:"absolute",cursor:"default",zIndex:`calc(${p.zIndex} + 5)`},".CodeMirror-gutter-wrapper ::selection":{backgroundColor:"transparent"},".CodeMirror-wrap pre":{wordWrap:"break-word",whiteSpace:"pre-wrap",wordBreak:"normal"},".CodeMirror-linebackground":{position:"absolute",left:"0",right:"0",top:"0",bottom:"0",zIndex:`calc(${p.zIndex} + 1)`},".CodeMirror-linewidget":{position:"relative",zIndex:`calc(${p.zIndex} + 3)`,padding:"0.1px"},".CodeMirror-rtl pre":{direction:"rtl"},".CodeMirror-code":{outline:"none"},".CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber":{boxSizing:"content-box"},".CodeMirror-measure":{position:"absolute",width:"100%",height:"0",overflow:"hidden",visibility:"hidden"},".CodeMirror-measure pre":{position:"static"},".CodeMirror-selected, .CodeMirror-focused .CodeMirror-selected, .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection":{background:p.selectedBackground},".cm-searching":{background:p.searchingBackground},".cm-force-border":{paddingRight:"0.1px"},"@media print":{".CodeMirror .CodeMirror-cursors":{visibility:"hidden"}},".cm-tab-wrap-hack::after":{content:'""'},".CodeMirror-selectedtext":{background:"none"},".CodeMirror-focused":{boxShadow:p.focusBoxShadow,borderColor:p.focusBorderColor},".cm-keyword":{color:p.keywordColor,fontWeight:"bold"},".cm-atom":{color:p.atomColor},".cm-number":{color:p.numberColor},".cm-def":{color:p.defColor},"span.cm-variable-2, span.cm-tag":{color:p.tagColor},"span.cm-variable-3, span.cm-def, span.cm-type":{color:p.typeColor},".cm-variable":{color:p.variableColor},".cm-property":{color:p.propertyColor},".cm-qualifier":{color:p.qualifierColor},".cm-operator":{color:p.operatorColor},".cm-comment":{color:p.commentColor,fontWeight:"normal"},".cm-string":{color:p.stringColor,fontStyle:"italic"},".cm-string-2":{color:p.secondaryStringColor},".cm-meta":{color:p.metaColor},".cm-builtin":{color:p.builtInColor},".cm-tag":{color:p.tagColor},".cm-attribute":{color:p.attributeColor},".cm-header":{color:p.headerColor},".cm-hr":{color:p.hrColor},".cm-link":{color:p.linkColor,fontStyle:"italic",textDecoration:"none"},".cm-error":{}}}},dx=p=>{var o,e,t,s,l,c,M,b,z,d,u,h,A,f,R,y,m,_,$,P,j,K,C,L,X,w0,g0,V0,_0,v0,K0,R0,N1,c1,Q0,J1,C0,S0,a1,J0,e2,Z0,e0,y0;const v=p.colors,M1=p.borders,C1=p.spacing,P0=p.typography,q=p.stacking;return{...{fontFamily:P0==null?void 0:P0.fontFamilyMonospace,fontSize:P0==null?void 0:P0.fontSizeSmall,background:v==null||(o=v.contrasts)===null||o===void 0?void 0:o.grey1111,border:`${M1==null?void 0:M1.widthSmall} solid ${v==null||(e=v.contrasts)===null||e===void 0?void 0:e.grey1111}`,borderRadius:M1==null?void 0:M1.radiusMedium,focusBorderColor:v==null||(t=v.contrasts)===null||t===void 0?void 0:t.blue4570,focusBoxShadow:`inset 0 0 0 1px ${v==null||(s=v.contrasts)===null||s===void 0?void 0:s.white1010}`,horizontalPadding:C1==null?void 0:C1.xSmall,verticalPadding:C1==null?void 0:C1.xxSmall,color:v==null||(l=v.contrasts)===null||l===void 0?void 0:l.grey125125,lineNumberColor:v==null||(c=v.contrasts)===null||c===void 0?void 0:c.grey4570,gutterBorder:v==null||(M=v.contrasts)===null||M===void 0?void 0:M.grey1111,gutterBackground:v==null||(b=v.contrasts)===null||b===void 0?void 0:b.grey1214,gutterMarkerColor:v==null||(z=v.contrasts)===null||z===void 0?void 0:z.blue4570,gutterMarkerSubtleColor:v==null||(d=v.contrasts)===null||d===void 0?void 0:d.grey4570,cursorColor:v==null||(u=v.contrasts)===null||u===void 0?void 0:u.grey125125,secondaryCursorColor:v==null||(h=v.contrasts)===null||h===void 0?void 0:h.grey4570,rulerColor:v==null||(A=v.contrasts)===null||A===void 0?void 0:A.grey4570,matchingBracketOutline:v==null||(f=v.contrasts)===null||f===void 0?void 0:f.grey4570,nonMatchingBracketColor:v==null||(R=v.contrasts)===null||R===void 0?void 0:R.red4570,matchingTagBackground:"rgba(255, 150, 0, 0.3)",activeLineBackground:v==null||(y=v.contrasts)===null||y===void 0?void 0:y.grey1214,selectedBackground:v==null||(m=v.contrasts)===null||m===void 0?void 0:m.grey1424,fatCursorBackground:v==null||(_=v.contrasts)===null||_===void 0?void 0:_.green4570,fatCursorMarkBackground:"rgba(20, 255, 20, 0.5)",searchingBackground:"rgba(255, 255, 0, 0.4)",zIndex:q==null?void 0:q.above,quoteColor:v==null||($=v.contrasts)===null||$===void 0?void 0:$.green4570,headerColor:v==null||(P=v.contrasts)===null||P===void 0?void 0:P.orange4570,negativeColor:v==null||(j=v.contrasts)===null||j===void 0?void 0:j.red4570,positiveColor:v==null||(K=v.contrasts)===null||K===void 0?void 0:K.green4570,keywordColor:v==null||(C=v.contrasts)===null||C===void 0?void 0:C.blue4570,atomColor:v==null||(L=v.contrasts)===null||L===void 0?void 0:L.orange4570,numberColor:v==null||(X=v.contrasts)===null||X===void 0?void 0:X.orange4570,defColor:v==null||(w0=v.contrasts)===null||w0===void 0?void 0:w0.grey125125,variableColor:v==null||(g0=v.contrasts)===null||g0===void 0?void 0:g0.blue4570,secondaryVariableColor:v==null||(V0=v.contrasts)===null||V0===void 0?void 0:V0.orange4570,typeColor:v==null||(_0=v.contrasts)===null||_0===void 0?void 0:_0.blue4570,commentColor:v==null||(v0=v.contrasts)===null||v0===void 0?void 0:v0.grey4570,stringColor:v==null||(K0=v.contrasts)===null||K0===void 0?void 0:K0.blue4570,secondaryStringColor:v==null||(R0=v.contrasts)===null||R0===void 0?void 0:R0.red4570,metaColor:v==null||(N1=v.contrasts)===null||N1===void 0?void 0:N1.grey125125,qualifierColor:v==null||(c1=v.contrasts)===null||c1===void 0?void 0:c1.green4570,builtInColor:v==null||(Q0=v.contrasts)===null||Q0===void 0?void 0:Q0.orange4570,bracketColor:v==null||(J1=v.contrasts)===null||J1===void 0?void 0:J1.grey4570,tagColor:v==null||(C0=v.contrasts)===null||C0===void 0?void 0:C0.green4570,attributeColor:v==null||(S0=v.contrasts)===null||S0===void 0?void 0:S0.blue4570,hrColor:v==null||(a1=v.contrasts)===null||a1===void 0?void 0:a1.grey4570,linkColor:v==null||(J0=v.contrasts)===null||J0===void 0?void 0:J0.blue4570,errorColor:v==null||(e2=v.contrasts)===null||e2===void 0?void 0:e2.red4570,propertyColor:v==null||(Z0=v.contrasts)===null||Z0===void 0?void 0:Z0.blue5782,nodeColor:v==null||(e0=v.contrasts)===null||e0===void 0?void 0:e0.orange4570,operatorColor:v==null||(y0=v.contrasts)===null||y0===void 0?void 0:y0.grey125125}}},Ox={label:i.string.isRequired,language:i.oneOf(["sh","js","json","javascript","jsx","shell","css","html","markdown","yaml","yml","bash"]),readOnly:i.bool,onChange:i.func,options:i.object,attachment:i.oneOf(["bottom","top"]),value:i.string},hx=["label","language","readOnly","onChange","options","attachment","value"],ux=["value","label","attachment","readOnly","onChange","styles"];var xR,TR,_R,PR,B1,z2;const Ax=a.lazy(()=>typeof navigator>"u"||typeof global<"u"&&global.PREVENT_CODEMIRROR_RENDER===!0?jb(()=>import("./index.node-DYwPqidn.js"),__vite__mapDeps([0,1,2])):jb(()=>import("./index-CWqBbHNF.js"),__vite__mapDeps([3,1,2])));let yX=(xR=m0(),TR=I(zx,dx),_R=x(),PR=Sy("[TBD]",null,"This component is deprecated and will be removed in a later version. Use instead, which is the wrapper for the newer version of the CodeMirror code editor."),xR(B1=TR(B1=_R(B1=PR(B1=(z2=class extends a.Component{constructor(o){super(o),this._id=void 0,this.codeMirror=void 0,this.ref=void 0,this.editor=void 0,this._id=o.deterministicId(),this.ref=a.createRef(),this.editor=a.createRef(),this.codeMirror=a.createRef()}componentDidMount(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}componentDidUpdate(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}focus(){this.codeMirror&&this.codeMirror.focus()}get mode(){const o=this.props.language;return o==="json"||o==="js"?"jsx":o==="sh"?"shell":o==="html"?"htmlmixed":o==="yml"?"yaml":o}get options(){return{...this.props.options,readOnly:this.props.readOnly,mode:this.mode,extraKeys:this.props.readOnly?{Tab:!1,"Shift-Tab":!1}:{}}}render(){const o=this.props,e=o.value,t=o.label;o.attachment,o.readOnly;const s=o.onChange,l=o.styles,c=n0(o,ux);return O("div",{css:l==null?void 0:l.codeEditor,ref:this.ref},O(a.Suspense,null,O(RN,{styles:l==null?void 0:l.globalStyles}),O("label",{htmlFor:this._id},O(x0,null,t),O(Ax,Object.assign({},c0(c),{id:this._id,options:this.options,value:e,onBeforeChange:(M,b,z)=>{s==null||s(z)},ref:this.codeMirror,editorDidMount:M=>{this.editor.current=M},editorWillUnmount:()=>{this.editor.current.display.wrapper.remove(),this.codeMirror.current&&(this.codeMirror.current.hydrated=!1)}})))))}},z2.displayName="CodeEditor",z2.componentId="CodeEditor",z2.propTypes=Ox,z2.allowedProps=hx,z2.defaultProps={language:"jsx",readOnly:!1,options:{styleActiveLine:!0}},z2))||B1)||B1)||B1)||B1);const fx=(p,o)=>{const e=o.a*.4,t=1-e,s=1-t*(1-t);return`rgba( + 100% {}`,zx=(p,o)=>{const e=o.attachment,t={top:{borderBottomLeftRadius:0,borderBottomRightRadius:0,marginTop:"0.25rem"},bottom:{borderTopLeftRadius:0,borderTopRightRadius:0,marginBottom:"0.25rem"}};return{codeEditor:{label:"codeEditor"},globalStyles:{".CodeMirror":{direction:"ltr",position:"relative",overflow:"hidden",background:p.background,height:"auto",fontFamily:p.fontFamily,fontSize:p.fontSize,borderRadius:p.borderRadius,border:p.border,color:p.color,lineHeight:1.4375,minHeight:"1.4375rem",marginBottom:"1rem",...e&&t[e]},".CodeMirror-lines":{padding:`${p.verticalPadding} 0`,cursor:"text",minHeight:"0.0625rem"},".CodeMirror pre":{padding:`0 ${p.horizontalPadding}`,borderRadius:"0",borderWidth:"0",background:"transparent",fontFamily:"inherit",fontSize:"inherit",margin:"0",whiteSpace:"pre",wordWrap:"normal",lineHeight:"inherit",color:"inherit",zIndex:`calc(${p.zIndex} + 3)`,position:"relative",overflow:"visible",WebkitTapHighlightColor:"transparent",fontVariantLigatures:"contextual"},".CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler":{background:p.background},".CodeMirror-cursor":{borderLeft:`0.0625rem solid ${p.cursorColor}`,borderRight:"none",width:"0",position:"absolute",pointerEvents:"none"},".CodeMirror-cursors":{visibility:"hidden",position:"relative",zIndex:`calc(${p.zIndex} + 4)`},".CodeMirror-dragcursors":{visibility:"visible"},".CodeMirror-focused .CodeMirror-cursors":{visibility:"visible"},".CodeMirror-crosshair":{cursor:"crosshair"},".cm-fat-cursor .CodeMirror-cursor":{width:"auto",border:"0 !important",background:p.fatCursorBackground},".cm-fat-cursor .CodeMirror-cursors":{zIndex:`calc(${p.zIndex} + 2)`},".CodeMirror .CodeMirror-secondarycursor":{borderLeft:`0.0625rem solid ${p.secondaryCursorColor}`},".cm-fat-cursor-mark":{background:p.fatCursorMarkBackground,animation:`${IR} 1.06s steps(1) infinite`},".cm-animate-fat-cursor":{width:"auto",border:"0",animation:`${IR} 1.06s steps(1) infinite`,backgroundColor:p.fatCursorBackground},".cm-tab":{display:"inline-block",textDecoration:"inherit"},".CodeMirror-rulers":{position:"absolute",left:"0",right:"0",top:"-50px",bottom:"-20px",overflow:"hidden"},".CodeMirror-ruler":{borderLeft:`0.0625rem solid ${p.rulerColor}`,top:"0",bottom:"0",position:"absolute"},"div.CodeMirror span.CodeMirror-matchingbracket":{outline:`0.0625rem solid ${p.matchingBracketOutline}`},"div.CodeMirror span.CodeMirror-nonmatchingbracket":{color:p.nonMatchingBracketColor},".CodeMirror-matchingtag":{background:p.matchingTagBackground},"div.CodeMirror-activeline-background":{background:p.activeLineBackground},".CodeMirror-scroll":{overflow:"scroll !important",marginBottom:"-30px",marginRight:"-30px",paddingBottom:"30px",height:"100%",outline:"none",position:"relative"},".CodeMirror-sizer":{position:"relative",borderRight:"30px solid transparent"},".CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler":{position:"absolute",zIndex:`calc(${p.zIndex} + 7)`,display:"none"},".CodeMirror-vscrollbar":{right:"0",top:"0",overflowX:"hidden",overflowY:"scroll"},".CodeMirror-hscrollbar":{bottom:"0",left:"0",overflowY:"hidden",overflowX:"scroll"},".CodeMirror-scrollbar-filler":{right:"0",bottom:"0"},".CodeMirror-gutter-filler":{left:"0",bottom:"0"},".CodeMirror-gutters":{borderTopLeftRadius:p.borderRadius,borderBottomLeftRadius:p.borderRadius,borderRight:`0.0625rem solid ${p.gutterBorder}`,overflow:"hidden",background:p.gutterBackground,whiteSpace:"nowrap",position:"absolute",left:"0",top:"0",minHeight:"100%",zIndex:`calc(${p.zIndex} + 4)`},".CodeMirror-linenumber":{padding:"0 0.1875rem 0 0.3125rem",minWidth:"1.25rem",textAlign:"right",color:p.lineNumberColor,whiteSpace:"nowrap"},".CodeMirror-guttermarker":{color:p.gutterMarkerColor},".CodeMirror-guttermarker-subtle":{color:p.gutterMarkerSubtleColor},".CodeMirror-gutter":{whiteSpace:"normal",height:"100%",display:"inline-block",verticalAlign:"top",marginBottom:"-30px"},".CodeMirror-gutter-wrapper":{position:"absolute",zIndex:`calc(${p.zIndex} + 5)`,background:"none !important",border:"none !important"},".CodeMirror-gutter-background":{position:"absolute",top:"0",bottom:"0",zIndex:`calc(${p.zIndex} + 5)`},".CodeMirror-gutter-elt":{position:"absolute",cursor:"default",zIndex:`calc(${p.zIndex} + 5)`},".CodeMirror-gutter-wrapper ::selection":{backgroundColor:"transparent"},".CodeMirror-wrap pre":{wordWrap:"break-word",whiteSpace:"pre-wrap",wordBreak:"normal"},".CodeMirror-linebackground":{position:"absolute",left:"0",right:"0",top:"0",bottom:"0",zIndex:`calc(${p.zIndex} + 1)`},".CodeMirror-linewidget":{position:"relative",zIndex:`calc(${p.zIndex} + 3)`,padding:"0.1px"},".CodeMirror-rtl pre":{direction:"rtl"},".CodeMirror-code":{outline:"none"},".CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber":{boxSizing:"content-box"},".CodeMirror-measure":{position:"absolute",width:"100%",height:"0",overflow:"hidden",visibility:"hidden"},".CodeMirror-measure pre":{position:"static"},".CodeMirror-selected, .CodeMirror-focused .CodeMirror-selected, .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection":{background:p.selectedBackground},".cm-searching":{background:p.searchingBackground},".cm-force-border":{paddingRight:"0.1px"},"@media print":{".CodeMirror .CodeMirror-cursors":{visibility:"hidden"}},".cm-tab-wrap-hack::after":{content:'""'},".CodeMirror-selectedtext":{background:"none"},".CodeMirror-focused":{boxShadow:p.focusBoxShadow,borderColor:p.focusBorderColor},".cm-keyword":{color:p.keywordColor,fontWeight:"bold"},".cm-atom":{color:p.atomColor},".cm-number":{color:p.numberColor},".cm-def":{color:p.defColor},"span.cm-variable-2, span.cm-tag":{color:p.tagColor},"span.cm-variable-3, span.cm-def, span.cm-type":{color:p.typeColor},".cm-variable":{color:p.variableColor},".cm-property":{color:p.propertyColor},".cm-qualifier":{color:p.qualifierColor},".cm-operator":{color:p.operatorColor},".cm-comment":{color:p.commentColor,fontWeight:"normal"},".cm-string":{color:p.stringColor,fontStyle:"italic"},".cm-string-2":{color:p.secondaryStringColor},".cm-meta":{color:p.metaColor},".cm-builtin":{color:p.builtInColor},".cm-tag":{color:p.tagColor},".cm-attribute":{color:p.attributeColor},".cm-header":{color:p.headerColor},".cm-hr":{color:p.hrColor},".cm-link":{color:p.linkColor,fontStyle:"italic",textDecoration:"none"},".cm-error":{}}}},dx=p=>{var o,e,t,s,l,c,M,b,z,d,u,h,A,f,R,y,m,_,$,P,j,K,C,L,X,w0,g0,V0,_0,v0,K0,R0,N1,c1,Q0,J1,C0,S0,a1,J0,e2,Z0,e0,y0;const v=p.colors,M1=p.borders,C1=p.spacing,P0=p.typography,q=p.stacking;return{...{fontFamily:P0==null?void 0:P0.fontFamilyMonospace,fontSize:P0==null?void 0:P0.fontSizeSmall,background:v==null||(o=v.contrasts)===null||o===void 0?void 0:o.grey1111,border:`${M1==null?void 0:M1.widthSmall} solid ${v==null||(e=v.contrasts)===null||e===void 0?void 0:e.grey1111}`,borderRadius:M1==null?void 0:M1.radiusMedium,focusBorderColor:v==null||(t=v.contrasts)===null||t===void 0?void 0:t.blue4570,focusBoxShadow:`inset 0 0 0 1px ${v==null||(s=v.contrasts)===null||s===void 0?void 0:s.white1010}`,horizontalPadding:C1==null?void 0:C1.xSmall,verticalPadding:C1==null?void 0:C1.xxSmall,color:v==null||(l=v.contrasts)===null||l===void 0?void 0:l.grey125125,lineNumberColor:v==null||(c=v.contrasts)===null||c===void 0?void 0:c.grey4570,gutterBorder:v==null||(M=v.contrasts)===null||M===void 0?void 0:M.grey1111,gutterBackground:v==null||(b=v.contrasts)===null||b===void 0?void 0:b.grey1214,gutterMarkerColor:v==null||(z=v.contrasts)===null||z===void 0?void 0:z.blue4570,gutterMarkerSubtleColor:v==null||(d=v.contrasts)===null||d===void 0?void 0:d.grey4570,cursorColor:v==null||(u=v.contrasts)===null||u===void 0?void 0:u.grey125125,secondaryCursorColor:v==null||(h=v.contrasts)===null||h===void 0?void 0:h.grey4570,rulerColor:v==null||(A=v.contrasts)===null||A===void 0?void 0:A.grey4570,matchingBracketOutline:v==null||(f=v.contrasts)===null||f===void 0?void 0:f.grey4570,nonMatchingBracketColor:v==null||(R=v.contrasts)===null||R===void 0?void 0:R.red4570,matchingTagBackground:"rgba(255, 150, 0, 0.3)",activeLineBackground:v==null||(y=v.contrasts)===null||y===void 0?void 0:y.grey1214,selectedBackground:v==null||(m=v.contrasts)===null||m===void 0?void 0:m.grey1424,fatCursorBackground:v==null||(_=v.contrasts)===null||_===void 0?void 0:_.green4570,fatCursorMarkBackground:"rgba(20, 255, 20, 0.5)",searchingBackground:"rgba(255, 255, 0, 0.4)",zIndex:q==null?void 0:q.above,quoteColor:v==null||($=v.contrasts)===null||$===void 0?void 0:$.green4570,headerColor:v==null||(P=v.contrasts)===null||P===void 0?void 0:P.orange4570,negativeColor:v==null||(j=v.contrasts)===null||j===void 0?void 0:j.red4570,positiveColor:v==null||(K=v.contrasts)===null||K===void 0?void 0:K.green4570,keywordColor:v==null||(C=v.contrasts)===null||C===void 0?void 0:C.blue4570,atomColor:v==null||(L=v.contrasts)===null||L===void 0?void 0:L.orange4570,numberColor:v==null||(X=v.contrasts)===null||X===void 0?void 0:X.orange4570,defColor:v==null||(w0=v.contrasts)===null||w0===void 0?void 0:w0.grey125125,variableColor:v==null||(g0=v.contrasts)===null||g0===void 0?void 0:g0.blue4570,secondaryVariableColor:v==null||(V0=v.contrasts)===null||V0===void 0?void 0:V0.orange4570,typeColor:v==null||(_0=v.contrasts)===null||_0===void 0?void 0:_0.blue4570,commentColor:v==null||(v0=v.contrasts)===null||v0===void 0?void 0:v0.grey4570,stringColor:v==null||(K0=v.contrasts)===null||K0===void 0?void 0:K0.blue4570,secondaryStringColor:v==null||(R0=v.contrasts)===null||R0===void 0?void 0:R0.red4570,metaColor:v==null||(N1=v.contrasts)===null||N1===void 0?void 0:N1.grey125125,qualifierColor:v==null||(c1=v.contrasts)===null||c1===void 0?void 0:c1.green4570,builtInColor:v==null||(Q0=v.contrasts)===null||Q0===void 0?void 0:Q0.orange4570,bracketColor:v==null||(J1=v.contrasts)===null||J1===void 0?void 0:J1.grey4570,tagColor:v==null||(C0=v.contrasts)===null||C0===void 0?void 0:C0.green4570,attributeColor:v==null||(S0=v.contrasts)===null||S0===void 0?void 0:S0.blue4570,hrColor:v==null||(a1=v.contrasts)===null||a1===void 0?void 0:a1.grey4570,linkColor:v==null||(J0=v.contrasts)===null||J0===void 0?void 0:J0.blue4570,errorColor:v==null||(e2=v.contrasts)===null||e2===void 0?void 0:e2.red4570,propertyColor:v==null||(Z0=v.contrasts)===null||Z0===void 0?void 0:Z0.blue5782,nodeColor:v==null||(e0=v.contrasts)===null||e0===void 0?void 0:e0.orange4570,operatorColor:v==null||(y0=v.contrasts)===null||y0===void 0?void 0:y0.grey125125}}},Ox={label:i.string.isRequired,language:i.oneOf(["sh","js","json","javascript","jsx","shell","css","html","markdown","yaml","yml","bash"]),readOnly:i.bool,onChange:i.func,options:i.object,attachment:i.oneOf(["bottom","top"]),value:i.string},hx=["label","language","readOnly","onChange","options","attachment","value"],ux=["value","label","attachment","readOnly","onChange","styles"];var xR,TR,_R,PR,B1,z2;const Ax=a.lazy(()=>typeof navigator>"u"||typeof global<"u"&&global.PREVENT_CODEMIRROR_RENDER===!0?jb(()=>import("./index.node-BvqdCM4E.js"),__vite__mapDeps([0,1,2])):jb(()=>import("./index-Ce10LxbF.js"),__vite__mapDeps([3,1,2])));let yX=(xR=m0(),TR=I(zx,dx),_R=x(),PR=Sy("[TBD]",null,"This component is deprecated and will be removed in a later version. Use instead, which is the wrapper for the newer version of the CodeMirror code editor."),xR(B1=TR(B1=_R(B1=PR(B1=(z2=class extends a.Component{constructor(o){super(o),this._id=void 0,this.codeMirror=void 0,this.ref=void 0,this.editor=void 0,this._id=o.deterministicId(),this.ref=a.createRef(),this.editor=a.createRef(),this.codeMirror=a.createRef()}componentDidMount(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}componentDidUpdate(){var o,e;(o=(e=this.props).makeStyles)===null||o===void 0||o.call(e)}focus(){this.codeMirror&&this.codeMirror.focus()}get mode(){const o=this.props.language;return o==="json"||o==="js"?"jsx":o==="sh"?"shell":o==="html"?"htmlmixed":o==="yml"?"yaml":o}get options(){return{...this.props.options,readOnly:this.props.readOnly,mode:this.mode,extraKeys:this.props.readOnly?{Tab:!1,"Shift-Tab":!1}:{}}}render(){const o=this.props,e=o.value,t=o.label;o.attachment,o.readOnly;const s=o.onChange,l=o.styles,c=n0(o,ux);return O("div",{css:l==null?void 0:l.codeEditor,ref:this.ref},O(a.Suspense,null,O(RN,{styles:l==null?void 0:l.globalStyles}),O("label",{htmlFor:this._id},O(x0,null,t),O(Ax,Object.assign({},c0(c),{id:this._id,options:this.options,value:e,onBeforeChange:(M,b,z)=>{s==null||s(z)},ref:this.codeMirror,editorDidMount:M=>{this.editor.current=M},editorWillUnmount:()=>{this.editor.current.display.wrapper.remove(),this.codeMirror.current&&(this.codeMirror.current.hydrated=!1)}})))))}},z2.displayName="CodeEditor",z2.componentId="CodeEditor",z2.propTypes=Ox,z2.allowedProps=hx,z2.defaultProps={language:"jsx",readOnly:!1,options:{styleActiveLine:!0}},z2))||B1)||B1)||B1)||B1);const fx=(p,o)=>{const e=o.a*.4,t=1-e,s=1-t*(1-t);return`rgba( ${o.r*e/s+p.r*t*(1-e)/s}, ${o.g*e/s+p.g*t*(1-e)/s}, ${o.b*e/s+p.b*t*(1-e)/s}, diff --git a/assets/index-CWqBbHNF.js b/assets/index-Ce10LxbF.js similarity index 50% rename from assets/index-CWqBbHNF.js rename to assets/index-Ce10LxbF.js index d4a113b..73613fc 100644 --- a/assets/index-CWqBbHNF.js +++ b/assets/index-Ce10LxbF.js @@ -1,24 +1,24 @@ -import{k as Su,l as Cu,R as ga}from"./index-Co1on5ja.js";var wa={exports:{}};(function(Tt,_){(function(x,W){Tt.exports=W()})(Su,function(){var x=navigator.userAgent,W=navigator.platform,k=/gecko\/\d/i.test(x),y=/MSIE \d/.test(x),C=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(x),q=/Edge\/(\d+)/.exec(x),T=y||C||q,se=T&&(y?document.documentMode||6:+(q||C)[1]),ie=!q&&/WebKit\//.test(x),ve=ie&&/Qt\/\d+\.\d+/.test(x),ee=!q&&/Chrome\/(\d+)/.exec(x),j=ee&&+ee[1],E=/Opera\//.test(x),K=/Apple Computer/.test(navigator.vendor),ce=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(x),ue=/PhantomJS/.test(x),te=K&&(/Mobile\/\w+/.test(x)||navigator.maxTouchPoints>2),Q=/Android/.test(x),fe=te||Q||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(x),De=te||/Mac/.test(W),Ge=/\bCrOS\b/.test(x),nt=/win/i.test(W),Pe=E&&x.match(/Version\/(\d*\.\d*)/);Pe&&(Pe=Number(Pe[1])),Pe&&Pe>=15&&(E=!1,ie=!0);var He=De&&(ve||E&&(Pe==null||Pe<12.11)),pe=k||T&&se>=9;function I(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var We=function(e,t){var i=e.className,r=I(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Y(e,t){return D(e).appendChild(t)}function c(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=i-l%i,o=a+1}}var he=function(){this.id=null,this.f=null,this.time=0,this.handler=re(this.onTimeout,this)};he.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},he.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(l,t-n);if(n+=o-r,n+=i-n%i,r=o+1,n>=t)return r}}var Ke=[""];function ot(e){for(;Ke.length<=e;)Ke.push(ye(Ke)+" ");return Ke[e]}function ye(e){return e[e.length-1]}function Ce(e,t){for(var i=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||Le.test(e))}function Xt(e,t){return t?t.source.indexOf("\\w")>-1&&at(e)?!0:t.test(e):at(e)}function Wi(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Yt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Xe(e){return e.charCodeAt(0)>=768&&Yt.test(e)}function ir(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var n=(t+i)/2,o=r<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:i;e(o)?i=o:t=o+r}}function nr(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,o=0;ot||t==i&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",o),n=!0)}n||r(t,i,"ltr")}var yr=null;function or(e,t,i){var r;yr=null;for(var n=0;nt)return n;o.to==t&&(o.from!=o.to&&i=="before"?r=n:yr=n),o.from==t&&(o.from!=o.to&&i!="before"?r=n:yr=n)}return r??yr}var mn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,d,g){this.level=u,this.from=d,this.to=g}return function(u,d){var g=d=="ltr"?"L":"R";if(u.length==0||d=="ltr"&&!r.test(u))return!1;for(var b=u.length,m=[],L=0;L-1&&(r[t]=n.slice(0,o).concat(n.slice(o+1)))}}}function Re(e,t){var i=$t(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n0}function Et(e){e.prototype.on=function(t,i){le(this,t,i)},e.prototype.off=function(t,i){st(this,t,i)}}function ut(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Er(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function gt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function lr(e){ut(e),Er(e)}function ni(e){return e.target||e.srcElement}function Nt(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),De&&e.ctrlKey&&t==1&&(t=3),t}var xn=function(){if(T&&se<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),Nr;function zi(e){if(Nr==null){var t=c("span","​");Y(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Nr=t.offsetWidth<=1&&t.offsetHeight>2&&!(T&&se<8))}var i=Nr?c("span","​"):c("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var oi;function ar(e){if(oi!=null)return oi;var t=Y(e,document.createTextNode("AخA")),i=N(t,0,1).getBoundingClientRect(),r=N(t,1,2).getBoundingClientRect();return D(e),!i||i.left==i.right?!1:oi=r.right-i.right<3}var Ft=` +import{k as Du,l as Mu,R as va}from"./index-mQ6522B8.js";var po={exports:{}},ma;function Gt(){return ma||(ma=1,function(Tt,_){(function(x,W){Tt.exports=W()})(Du,function(){var x=navigator.userAgent,W=navigator.platform,k=/gecko\/\d/i.test(x),y=/MSIE \d/.test(x),C=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(x),q=/Edge\/(\d+)/.exec(x),T=y||C||q,se=T&&(y?document.documentMode||6:+(q||C)[1]),ie=!q&&/WebKit\//.test(x),ve=ie&&/Qt\/\d+\.\d+/.test(x),ee=!q&&/Chrome\/(\d+)/.exec(x),j=ee&&+ee[1],E=/Opera\//.test(x),K=/Apple Computer/.test(navigator.vendor),ce=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(x),ue=/PhantomJS/.test(x),te=K&&(/Mobile\/\w+/.test(x)||navigator.maxTouchPoints>2),Q=/Android/.test(x),fe=te||Q||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(x),De=te||/Mac/.test(W),Ge=/\bCrOS\b/.test(x),nt=/win/i.test(W),Pe=E&&x.match(/Version\/(\d*\.\d*)/);Pe&&(Pe=Number(Pe[1])),Pe&&Pe>=15&&(E=!1,ie=!0);var He=De&&(ve||E&&(Pe==null||Pe<12.11)),pe=k||T&&se>=9;function I(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var We=function(e,t){var i=e.className,r=I(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Y(e,t){return D(e).appendChild(t)}function c(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=i-l%i,o=a+1}}var he=function(){this.id=null,this.f=null,this.time=0,this.handler=re(this.onTimeout,this)};he.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},he.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(l,t-n);if(n+=o-r,n+=i-n%i,r=o+1,n>=t)return r}}var Ke=[""];function ot(e){for(;Ke.length<=e;)Ke.push(ye(Ke)+" ");return Ke[e]}function ye(e){return e[e.length-1]}function Ce(e,t){for(var i=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||Le.test(e))}function Xt(e,t){return t?t.source.indexOf("\\w")>-1&&at(e)?!0:t.test(e):at(e)}function Wi(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Yt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Xe(e){return e.charCodeAt(0)>=768&&Yt.test(e)}function ir(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var n=(t+i)/2,o=r<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:i;e(o)?i=o:t=o+r}}function nr(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,o=0;ot||t==i&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",o),n=!0)}n||r(t,i,"ltr")}var yr=null;function or(e,t,i){var r;yr=null;for(var n=0;nt)return n;o.to==t&&(o.from!=o.to&&i=="before"?r=n:yr=n),o.from==t&&(o.from!=o.to&&i!="before"?r=n:yr=n)}return r??yr}var mn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,d,g){this.level=u,this.from=d,this.to=g}return function(u,d){var g=d=="ltr"?"L":"R";if(u.length==0||d=="ltr"&&!r.test(u))return!1;for(var b=u.length,m=[],L=0;L-1&&(r[t]=n.slice(0,o).concat(n.slice(o+1)))}}}function Re(e,t){var i=$t(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n0}function Et(e){e.prototype.on=function(t,i){le(this,t,i)},e.prototype.off=function(t,i){st(this,t,i)}}function ut(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Er(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function gt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function lr(e){ut(e),Er(e)}function ni(e){return e.target||e.srcElement}function Nt(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),De&&e.ctrlKey&&t==1&&(t=3),t}var xn=function(){if(T&&se<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),Nr;function zi(e){if(Nr==null){var t=c("span","​");Y(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Nr=t.offsetWidth<=1&&t.offsetHeight>2&&!(T&&se<8))}var i=Nr?c("span","​"):c("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var oi;function ar(e){if(oi!=null)return oi;var t=Y(e,document.createTextNode("AخA")),i=N(t,0,1).getBoundingClientRect(),r=N(t,1,2).getBoundingClientRect();return D(e),!i||i.left==i.right?!1:oi=r.right-i.right<3}var Ft=` b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(` -`,t);n==-1&&(n=e.length);var o=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),l=o.indexOf("\r");l!=-1?(i.push(o.slice(0,l)),t+=l+1):(i.push(o),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},sr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Bi=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ot=null;function yn(e){if(Ot!=null)return Ot;var t=Y(e,c("span","x")),i=t.getBoundingClientRect(),r=N(t,0,1).getBoundingClientRect();return Ot=Math.abs(i.left-r.left)>1}var Or={},Pt={};function Ht(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Or[e]=t}function br(e,t){Pt[e]=t}function Pr(e){if(typeof e=="string"&&Pt.hasOwnProperty(e))e=Pt[e];else if(e&&typeof e.name=="string"&&Pt.hasOwnProperty(e.name)){var t=Pt[e.name];typeof t=="string"&&(t={name:t}),e=M(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Pr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Pr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Hr(e,t){t=Pr(t);var i=Or[t.name];if(!i)return Hr(e,"text/plain");var r=i(e,t);if(ur.hasOwnProperty(t.name)){var n=ur[t.name];for(var o in n)n.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=n[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var ur={};function Wr(e,t){var i=ur.hasOwnProperty(e)?ur[e]:ur[e]={};ge(t,i)}function _t(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function li(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Ir(e,t,i){return e.startState?e.startState(t,i):!0}var qe=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};qe.prototype.eol=function(){return this.pos>=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.post},qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},qe.prototype.backUp=function(e){this.pos-=e},qe.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function V(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],o=n.chunkSize();if(t=e.first&&ti?S(i,V(e,i).text.length):Ca(t,V(e,t.line).text.length)}function Ca(e,t){var i=e.ch;return i==null||i>t?S(e.line,t):i<0?S(e.line,0):e}function mo(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},qt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},qt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},qt.fromSaved=function(e,t,i){return t instanceof Ri?new qt(e,_t(e.mode,t.state),i,t.lookAhead):new qt(e,_t(e.mode,t),i)},qt.prototype.save=function(e){var t=e!==!1?_t(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ri(t,this.maxLookAhead):t};function xo(e,t,i,r){var n=[e.state.modeGen],o={};Co(e,t.text,e.doc.mode,i,function(u,d){return n.push(u,d)},o,r);for(var l=i.state,a=function(u){i.baseTokens=n;var d=e.state.overlays[u],g=1,b=0;i.state=!0,Co(e,t.text,d.mode,i,function(m,L){for(var F=g;bm&&n.splice(g,1,m,n[g+1],H),g+=2,b=Math.min(m,H)}if(L)if(d.opaque)n.splice(F,g-F,m,"overlay "+L),g=F+2;else for(;Fe.options.maxHighlightLength&&_t(e.doc.mode,r.state),o=xo(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function si(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new qt(r,!0,t);var o=La(e,t,i),l=o>r.first&&V(r,o-1).stateAfter,a=l?qt.fromSaved(r,l,o):new qt(r,Ir(r.mode),o);return r.iter(o,t,function(s){bn(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var ko=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function wo(e,t,i,r){var n=e.doc,o=n.mode,l;t=me(n,t);var a=V(n,t.line),s=si(e,t.line,i),u=new qe(a.text,e.options.tabSize,s),d;for(r&&(d=[]);(r||u.pose.options.maxHighlightLength?(a=!1,l&&bn(e,t,r,d.pos),d.pos=t.length,g=null):g=So(kn(i,d,r.state,b),o),b){var m=b[0].name;m&&(g="m-"+(g?m+" "+g:m))}if(!a||u!=g){for(;sl;--a){if(a<=o.first)return o.first;var s=V(o,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Ri?u.lookAhead:0)<=o.modeFrontier))return a;var d=xe(s.text,null,e.options.tabSize);(n==null||r>d)&&(n=a-1,r=d)}return n}function Ta(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontieri;r--){var n=V(e,r).stateAfter;if(n&&(!(n instanceof Ri)||r+n.lookAhead=t:o.to>t);(r||(r=[])).push(new _i(l,o.from,s?null:o.to))}}return r}function Na(e,t,i){var r;if(e)for(var n=0;n=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!i||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var $=0;$0)){var d=[s,1],g=G(u.from,a.from),b=G(u.to,a.to);(g<0||!l.inclusiveLeft&&!g)&&d.push({from:u.from,to:a.from}),(b>0||!l.inclusiveRight&&!b)&&d.push({from:a.to,to:u.to}),n.splice.apply(n,d),s+=d.length-3}}return n}function Do(e){var t=e.markedSpans;if(t){for(var i=0;it)&&(!r||Sn(r,o.marker)<0)&&(r=o.marker)}return r}function Eo(e,t,i,r,n){var o=V(e,t),l=Jt&&o.markedSpans;if(l)for(var a=0;a=0&&g<=0||d<=0&&g>=0)&&(d<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?G(u.to,i)>=0:G(u.to,i)>0)||d>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?G(u.from,r)<=0:G(u.from,r)<0)))return!0}}}function Wt(e){for(var t;t=Fo(e);)e=t.find(-1,!0).line;return e}function Ha(e){for(var t;t=Ki(e);)e=t.find(1,!0).line;return e}function Wa(e){for(var t,i;t=Ki(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Cn(e,t){var i=V(e,t),r=Wt(i);return i==r?t:f(r)}function No(e,t){if(t>e.lastLine())return t;var i=V(e,t),r;if(!fr(e,i))return t;for(;r=Ki(i);)i=r.find(1,!0).line;return f(i)+1}function fr(e,t){var i=Jt&&t.markedSpans;if(i){for(var r=void 0,n=0;nt.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var Br=function(e,t,i){this.text=e,Mo(this,t),this.height=i?i(this):1};Br.prototype.lineNo=function(){return f(this)},Et(Br);function Ia(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Do(e),Mo(e,i);var n=r?r(e):1;n!=e.height&&Dt(e,n)}function za(e){e.parent=null,Do(e)}var Ba={},Ra={};function Oo(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Ra:Ba;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Po(e,t){var i=U("span",null,null,ie?"padding-right: .1px":null),r={pre:U("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var o=n?t.rest[n-1]:t.line,l=void 0;r.pos=0,r.addToken=qa,ar(e.display.measure)&&(l=Se(o,e.doc.direction))&&(r.addToken=Ka(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&f(o);Ua(o,r,yo(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=wt(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=wt(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(zi(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Re(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=wt(r.pre.className,r.textClass||"")),r}function _a(e){var t=c("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function qa(e,t,i,r,n,o,l){if(t){var a=e.splitSpaces?ja(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,d;if(!s.test(t))e.col+=t.length,d=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,d),T&&se<9&&(u=!0),e.pos+=t.length;else{d=document.createDocumentFragment();for(var g=0;;){s.lastIndex=g;var b=s.exec(t),m=b?b.index-g:t.length-g;if(m){var L=document.createTextNode(a.slice(g,g+m));T&&se<9?d.appendChild(c("span",[L])):d.appendChild(L),e.map.push(e.pos,e.pos+m,L),e.col+=m,e.pos+=m}if(!b)break;g+=m+1;var F=void 0;if(b[0]==" "){var H=e.cm.options.tabSize,B=H-e.col%H;F=d.appendChild(c("span",ot(B),"cm-tab")),F.setAttribute("role","presentation"),F.setAttribute("cm-text"," "),e.col+=B}else b[0]=="\r"||b[0]==` -`?(F=d.appendChild(c("span",b[0]=="\r"?"␍":"␤","cm-invalidchar")),F.setAttribute("cm-text",b[0]),e.col+=1):(F=e.cm.options.specialCharPlaceholder(b[0]),F.setAttribute("cm-text",b[0]),T&&se<9?d.appendChild(c("span",[F])):d.appendChild(F),e.col+=1);e.map.push(e.pos,e.pos+1,F),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,i||r||n||u||o||l){var X=i||"";r&&(X+=r),n&&(X+=n);var R=c("span",[d],X,o);if(l)for(var $ in l)l.hasOwnProperty($)&&$!="style"&&$!="class"&&R.setAttribute($,l[$]);return e.content.appendChild(R)}e.content.appendChild(d)}}function ja(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",n=0;nu&&g.from<=u));b++);if(g.to>=d)return e(i,r,n,o,l,a,s);e(i,r.slice(0,g.to-u),n,o,null,a,s),o=null,r=r.slice(g.to-u),u=g.to}}}function Ho(e,t,i,r){var n=!r&&i.widgetNode;n&&e.map.push(e.pos,e.pos+t,n),!r&&e.cm.display.input.needsContentAttribute&&(n||(n=e.content.appendChild(document.createElement("span"))),n.setAttribute("cm-marker",i.id)),n&&(e.cm.display.input.setUneditable(n),e.content.appendChild(n)),e.pos+=t,e.trailingSpace=!1}function Ua(e,t,i){var r=e.markedSpans,n=e.text,o=0;if(!r){for(var l=1;ls||be.collapsed&&ne.to==s&&ne.from==s)){if(ne.to!=null&&ne.to!=s&&m>ne.to&&(m=ne.to,F=""),be.className&&(L+=" "+be.className),be.css&&(b=(b?b+";":"")+be.css),be.startStyle&&ne.from==s&&(H+=" "+be.startStyle),be.endStyle&&ne.to==m&&($||($=[])).push(be.endStyle,ne.to),be.title&&((X||(X={})).title=be.title),be.attributes)for(var Ne in be.attributes)(X||(X={}))[Ne]=be.attributes[Ne];be.collapsed&&(!B||Sn(B.marker,be)<0)&&(B=ne)}else ne.from>s&&m>ne.from&&(m=ne.from)}if($)for(var rt=0;rt<$.length;rt+=2)$[rt+1]==m&&(F+=" "+$[rt]);if(!B||B.from==s)for(var Be=0;Be=a)break;for(var Lt=Math.min(a,m);;){if(d){var yt=s+d.length;if(!B){var Ye=yt>Lt?d.slice(0,Lt-s):d;t.addToken(t,Ye,g?g+L:L,H,s+Ye.length==m?F:"",b,X)}if(yt>=Lt){d=d.slice(Lt-s),s=Lt;break}s=yt,H=""}d=n.slice(o,o=i[u++]),g=Oo(i[u++],t.cm.options)}}}function Wo(e,t,i){this.line=t,this.rest=Wa(t),this.size=this.rest?f(ye(this.rest))-i+1:1,this.node=this.text=null,this.hidden=fr(e,t)}function Gi(e,t,i){for(var r=[],n,o=t;o2&&o.push((s.bottom+u.top)/2-i.top)}}o.push(i.bottom-i.top)}}function jo(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;ri)return{map:e.measure.maps[n],cache:e.measure.caches[n],before:!0}}}function rs(e,t){t=Wt(t);var i=f(t),r=e.display.externalMeasured=new Wo(e.doc,t,i);r.lineN=i;var n=r.built=Po(e,r);return r.text=n.pre,Y(e.display.lineMeasure,n.pre),r}function Ko(e,t,i,r){return Kt(e,_r(e,t),i,r)}function Fn(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(o=s-a,n=o-1,t>=s&&(l="right")),n!=null){if(r=e[u+2],a==s&&i==(r.insertLeft?"left":"right")&&(l=i),i=="left"&&n==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],l="left";if(i=="right"&&n==s-a)for(;u=0&&(i=e[n]).left==i.right;n--);return i}function ns(e,t,i,r){var n=Go(t.map,i,r),o=n.node,l=n.start,a=n.end,s=n.collapse,u;if(o.nodeType==3){for(var d=0;d<4;d++){for(;l&&Xe(t.line.text.charAt(n.coverStart+l));)--l;for(;n.coverStart+a0&&(s=r="right");var g;e.options.lineWrapping&&(g=o.getClientRects()).length>1?u=g[r=="right"?g.length-1:0]:u=o.getBoundingClientRect()}if(T&&se<9&&!l&&(!u||!u.left&&!u.right)){var b=o.parentNode.getClientRects()[0];b?u={left:b.left,right:b.left+jr(e.display),top:b.top,bottom:b.bottom}:u=Uo}for(var m=u.top-t.rect.top,L=u.bottom-t.rect.top,F=(m+L)/2,H=t.view.measure.heights,B=0;B=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function d(L,F,H){var B=a[F],X=B.level==1;return l(H?L-1:L,X!=H)}var g=or(a,s,u),b=yr,m=d(s,g,u=="before");return b!=null&&(m.other=d(s,b,u!="before")),m}function Qo(e,t){var i=0;t=me(e.doc,t),e.options.lineWrapping||(i=jr(e.display)*t.ch);var r=V(e.doc,t.line),n=Qt(r)+Xi(e.display);return{left:i,right:i,top:n,bottom:n+r.height}}function Nn(e,t,i,r,n){var o=S(e,t,i);return o.xRel=n,r&&(o.outside=r),o}function On(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Nn(r.first,0,null,-1,-1);var n=p(r,i),o=r.first+r.size-1;if(n>o)return Nn(r.first+r.size-1,V(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=V(r,n);;){var a=ls(e,l,n,t,i),s=Pa(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==n)return u;l=V(r,n=u.line)}}function Vo(e,t,i,r){r-=En(t);var n=t.text.length,o=Rt(function(l){return Kt(e,i,l-1).bottom<=r},n,0);return n=Rt(function(l){return Kt(e,i,l).top>r},o,n),{begin:o,end:n}}function el(e,t,i,r){i||(i=_r(e,t));var n=Yi(e,t,Kt(e,i,r),"line").top;return Vo(e,t,i,n)}function Pn(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function ls(e,t,i,r,n){n-=Qt(t);var o=_r(e,t),l=En(t),a=0,s=t.text.length,u=!0,d=Se(t,e.doc.direction);if(d){var g=(e.options.lineWrapping?ss:as)(e,t,i,o,d,r,n);u=g.level!=1,a=u?g.from:g.to-1,s=u?g.to:g.from-1}var b=null,m=null,L=Rt(function(ae){var ne=Kt(e,o,ae);return ne.top+=l,ne.bottom+=l,Pn(ne,r,n,!1)?(ne.top<=n&&ne.left<=r&&(b=ae,m=ne),!0):!1},a,s),F,H,B=!1;if(m){var X=r-m.left=$.bottom?1:0}return L=ir(t.text,L,1),Nn(i,L,H,B,r-F)}function as(e,t,i,r,n,o,l){var a=Rt(function(g){var b=n[g],m=b.level!=1;return Pn(It(e,S(i,m?b.to:b.from,m?"before":"after"),"line",t,r),o,l,!0)},0,n.length-1),s=n[a];if(a>0){var u=s.level!=1,d=It(e,S(i,u?s.from:s.to,u?"after":"before"),"line",t,r);Pn(d,o,l,!0)&&d.top>l&&(s=n[a-1])}return s}function ss(e,t,i,r,n,o,l){var a=Vo(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var d=null,g=null,b=0;b=u||m.to<=s)){var L=m.level!=1,F=Kt(e,r,L?Math.min(u,m.to)-1:Math.max(s,m.from)).right,H=FH)&&(d=m,g=H)}}return d||(d=n[n.length-1]),d.fromu&&(d={from:d.from,to:u,level:d.level}),d}var wr;function qr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wr==null){wr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wr.appendChild(document.createTextNode("x")),wr.appendChild(c("br"));wr.appendChild(document.createTextNode("x"))}Y(e.measure,wr);var i=wr.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),D(e.measure),i||1}function jr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),i=c("pre",[t],"CodeMirror-line-like");Y(e.measure,i);var r=t.getBoundingClientRect(),n=(r.right-r.left)/10;return n>2&&(e.cachedCharWidth=n),n||10}function Hn(e){for(var t=e.display,i={},r={},n=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;i[a]=o.offsetLeft+o.clientLeft+n,r[a]=o.clientWidth}return{fixedPos:Wn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Wn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function tl(e){var t=qr(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/jr(e.display)-3);return function(n){if(fr(e.doc,n))return 0;var o=0;if(n.widgets)for(var l=0;l0&&(u=V(e.doc,s.line).text).length==s.ch){var d=xe(u,u.length,e.options.tabSize)-u.length;s=S(s.line,Math.max(0,Math.round((o-qo(e.display).left)/jr(e.display))-d))}return s}function Cr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,r=0;rt)&&(n.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=n.viewTo)Jt&&Cn(e.doc,t)n.viewFrom?hr(e):(n.viewFrom+=r,n.viewTo+=r);else if(t<=n.viewFrom&&i>=n.viewTo)hr(e);else if(t<=n.viewFrom){var o=Zi(e,i,i+r,1);o?(n.view=n.view.slice(o.index),n.viewFrom=o.lineN,n.viewTo+=r):hr(e)}else if(i>=n.viewTo){var l=Zi(e,t,t,-1);l?(n.view=n.view.slice(0,l.index),n.viewTo=l.lineN):hr(e)}else{var a=Zi(e,t,t,-1),s=Zi(e,i,i+r,1);a&&s?(n.view=n.view.slice(0,a.index).concat(Gi(e,a.lineN,s.lineN)).concat(n.view.slice(s.index)),n.viewTo+=r):hr(e)}var u=n.externalMeasured;u&&(i=n.lineN&&t=r.viewTo)){var o=r.view[Cr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);J(l,i)==-1&&l.push(i)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zi(e,t,i,r){var n=Cr(e,t),o,l=e.display.view;if(!Jt||i==e.doc.first+e.doc.size)return{index:n,lineN:i};for(var a=e.display.viewFrom,s=0;s0){if(n==l.length-1)return null;o=a+l[n].size-t,n++}else o=a-t;t+=o,i+=o}for(;Cn(e.doc,i)!=i;){if(n==(r<0?0:l.length-1))return null;i+=r*l[n-(r<0?1:0)].size,n+=r}return{index:n,lineN:i}}function us(e,t,i){var r=e.display,n=r.view;n.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Gi(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Gi(e,t,r.viewFrom).concat(r.view):r.viewFromi&&(r.view=r.view.slice(0,Cr(e,i)))),r.viewTo=i}function rl(e){for(var t=e.display.view,i=0,r=0;r=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(r.other){var a=i.appendChild(c("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Ji(e,t){return e.top-t.top||e.left-t.left}function fs(e,t,i){var r=e.display,n=e.doc,o=document.createDocumentFragment(),l=qo(e.display),a=l.left,s=Math.max(r.sizerWidth,kr(e)-r.sizer.offsetLeft)-l.right,u=n.direction=="ltr";function d(R,$,ae,ne){$<0&&($=0),$=Math.round($),ne=Math.round(ne),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+R+`px; +`,t);n==-1&&(n=e.length);var o=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),l=o.indexOf("\r");l!=-1?(i.push(o.slice(0,l)),t+=l+1):(i.push(o),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},sr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Bi=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ot=null;function yn(e){if(Ot!=null)return Ot;var t=Y(e,c("span","x")),i=t.getBoundingClientRect(),r=N(t,0,1).getBoundingClientRect();return Ot=Math.abs(i.left-r.left)>1}var Or={},Pt={};function Ht(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Or[e]=t}function br(e,t){Pt[e]=t}function Pr(e){if(typeof e=="string"&&Pt.hasOwnProperty(e))e=Pt[e];else if(e&&typeof e.name=="string"&&Pt.hasOwnProperty(e.name)){var t=Pt[e.name];typeof t=="string"&&(t={name:t}),e=M(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Pr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Pr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Hr(e,t){t=Pr(t);var i=Or[t.name];if(!i)return Hr(e,"text/plain");var r=i(e,t);if(ur.hasOwnProperty(t.name)){var n=ur[t.name];for(var o in n)n.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=n[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var ur={};function Wr(e,t){var i=ur.hasOwnProperty(e)?ur[e]:ur[e]={};ge(t,i)}function _t(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function li(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Ir(e,t,i){return e.startState?e.startState(t,i):!0}var qe=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};qe.prototype.eol=function(){return this.pos>=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.post},qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},qe.prototype.backUp=function(e){this.pos-=e},qe.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function V(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],o=n.chunkSize();if(t=e.first&&ti?S(i,V(e,i).text.length):Ma(t,V(e,t.line).text.length)}function Ma(e,t){var i=e.ch;return i==null||i>t?S(e.line,t):i<0?S(e.line,0):e}function xo(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},qt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},qt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},qt.fromSaved=function(e,t,i){return t instanceof Ri?new qt(e,_t(e.mode,t.state),i,t.lookAhead):new qt(e,_t(e.mode,t),i)},qt.prototype.save=function(e){var t=e!==!1?_t(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ri(t,this.maxLookAhead):t};function yo(e,t,i,r){var n=[e.state.modeGen],o={};Lo(e,t.text,e.doc.mode,i,function(u,d){return n.push(u,d)},o,r);for(var l=i.state,a=function(u){i.baseTokens=n;var d=e.state.overlays[u],g=1,b=0;i.state=!0,Lo(e,t.text,d.mode,i,function(m,L){for(var F=g;bm&&n.splice(g,1,m,n[g+1],H),g+=2,b=Math.min(m,H)}if(L)if(d.opaque)n.splice(F,g-F,m,"overlay "+L),g=F+2;else for(;Fe.options.maxHighlightLength&&_t(e.doc.mode,r.state),o=yo(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function si(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new qt(r,!0,t);var o=Aa(e,t,i),l=o>r.first&&V(r,o-1).stateAfter,a=l?qt.fromSaved(r,l,o):new qt(r,Ir(r.mode),o);return r.iter(o,t,function(s){bn(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var wo=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function So(e,t,i,r){var n=e.doc,o=n.mode,l;t=me(n,t);var a=V(n,t.line),s=si(e,t.line,i),u=new qe(a.text,e.options.tabSize,s),d;for(r&&(d=[]);(r||u.pose.options.maxHighlightLength?(a=!1,l&&bn(e,t,r,d.pos),d.pos=t.length,g=null):g=Co(kn(i,d,r.state,b),o),b){var m=b[0].name;m&&(g="m-"+(g?m+" "+g:m))}if(!a||u!=g){for(;sl;--a){if(a<=o.first)return o.first;var s=V(o,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Ri?u.lookAhead:0)<=o.modeFrontier))return a;var d=xe(s.text,null,e.options.tabSize);(n==null||r>d)&&(n=a-1,r=d)}return n}function Fa(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontieri;r--){var n=V(e,r).stateAfter;if(n&&(!(n instanceof Ri)||r+n.lookAhead=t:o.to>t);(r||(r=[])).push(new _i(l,o.from,s?null:o.to))}}return r}function Wa(e,t,i){var r;if(e)for(var n=0;n=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!i||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var $=0;$0)){var d=[s,1],g=G(u.from,a.from),b=G(u.to,a.to);(g<0||!l.inclusiveLeft&&!g)&&d.push({from:u.from,to:a.from}),(b>0||!l.inclusiveRight&&!b)&&d.push({from:a.to,to:u.to}),n.splice.apply(n,d),s+=d.length-3}}return n}function Mo(e){var t=e.markedSpans;if(t){for(var i=0;it)&&(!r||Sn(r,o.marker)<0)&&(r=o.marker)}return r}function No(e,t,i,r,n){var o=V(e,t),l=Jt&&o.markedSpans;if(l)for(var a=0;a=0&&g<=0||d<=0&&g>=0)&&(d<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?G(u.to,i)>=0:G(u.to,i)>0)||d>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?G(u.from,r)<=0:G(u.from,r)<0)))return!0}}}function Wt(e){for(var t;t=Eo(e);)e=t.find(-1,!0).line;return e}function Ba(e){for(var t;t=Ki(e);)e=t.find(1,!0).line;return e}function Ra(e){for(var t,i;t=Ki(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Cn(e,t){var i=V(e,t),r=Wt(i);return i==r?t:f(r)}function Oo(e,t){if(t>e.lastLine())return t;var i=V(e,t),r;if(!fr(e,i))return t;for(;r=Ki(i);)i=r.find(1,!0).line;return f(i)+1}function fr(e,t){var i=Jt&&t.markedSpans;if(i){for(var r=void 0,n=0;nt.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var Br=function(e,t,i){this.text=e,Ao(this,t),this.height=i?i(this):1};Br.prototype.lineNo=function(){return f(this)},Et(Br);function _a(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Mo(e),Ao(e,i);var n=r?r(e):1;n!=e.height&&Dt(e,n)}function qa(e){e.parent=null,Mo(e)}var ja={},Ka={};function Po(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Ka:ja;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Ho(e,t){var i=U("span",null,null,ie?"padding-right: .1px":null),r={pre:U("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var o=n?t.rest[n-1]:t.line,l=void 0;r.pos=0,r.addToken=Ga,ar(e.display.measure)&&(l=Se(o,e.doc.direction))&&(r.addToken=Ya(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&f(o);$a(o,r,bo(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=wt(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=wt(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(zi(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Re(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=wt(r.pre.className,r.textClass||"")),r}function Ua(e){var t=c("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ga(e,t,i,r,n,o,l){if(t){var a=e.splitSpaces?Xa(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,d;if(!s.test(t))e.col+=t.length,d=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,d),T&&se<9&&(u=!0),e.pos+=t.length;else{d=document.createDocumentFragment();for(var g=0;;){s.lastIndex=g;var b=s.exec(t),m=b?b.index-g:t.length-g;if(m){var L=document.createTextNode(a.slice(g,g+m));T&&se<9?d.appendChild(c("span",[L])):d.appendChild(L),e.map.push(e.pos,e.pos+m,L),e.col+=m,e.pos+=m}if(!b)break;g+=m+1;var F=void 0;if(b[0]==" "){var H=e.cm.options.tabSize,B=H-e.col%H;F=d.appendChild(c("span",ot(B),"cm-tab")),F.setAttribute("role","presentation"),F.setAttribute("cm-text"," "),e.col+=B}else b[0]=="\r"||b[0]==` +`?(F=d.appendChild(c("span",b[0]=="\r"?"␍":"␤","cm-invalidchar")),F.setAttribute("cm-text",b[0]),e.col+=1):(F=e.cm.options.specialCharPlaceholder(b[0]),F.setAttribute("cm-text",b[0]),T&&se<9?d.appendChild(c("span",[F])):d.appendChild(F),e.col+=1);e.map.push(e.pos,e.pos+1,F),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,i||r||n||u||o||l){var X=i||"";r&&(X+=r),n&&(X+=n);var R=c("span",[d],X,o);if(l)for(var $ in l)l.hasOwnProperty($)&&$!="style"&&$!="class"&&R.setAttribute($,l[$]);return e.content.appendChild(R)}e.content.appendChild(d)}}function Xa(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",n=0;nu&&g.from<=u));b++);if(g.to>=d)return e(i,r,n,o,l,a,s);e(i,r.slice(0,g.to-u),n,o,null,a,s),o=null,r=r.slice(g.to-u),u=g.to}}}function Wo(e,t,i,r){var n=!r&&i.widgetNode;n&&e.map.push(e.pos,e.pos+t,n),!r&&e.cm.display.input.needsContentAttribute&&(n||(n=e.content.appendChild(document.createElement("span"))),n.setAttribute("cm-marker",i.id)),n&&(e.cm.display.input.setUneditable(n),e.content.appendChild(n)),e.pos+=t,e.trailingSpace=!1}function $a(e,t,i){var r=e.markedSpans,n=e.text,o=0;if(!r){for(var l=1;ls||be.collapsed&&ne.to==s&&ne.from==s)){if(ne.to!=null&&ne.to!=s&&m>ne.to&&(m=ne.to,F=""),be.className&&(L+=" "+be.className),be.css&&(b=(b?b+";":"")+be.css),be.startStyle&&ne.from==s&&(H+=" "+be.startStyle),be.endStyle&&ne.to==m&&($||($=[])).push(be.endStyle,ne.to),be.title&&((X||(X={})).title=be.title),be.attributes)for(var Ne in be.attributes)(X||(X={}))[Ne]=be.attributes[Ne];be.collapsed&&(!B||Sn(B.marker,be)<0)&&(B=ne)}else ne.from>s&&m>ne.from&&(m=ne.from)}if($)for(var rt=0;rt<$.length;rt+=2)$[rt+1]==m&&(F+=" "+$[rt]);if(!B||B.from==s)for(var Be=0;Be=a)break;for(var Lt=Math.min(a,m);;){if(d){var yt=s+d.length;if(!B){var Ye=yt>Lt?d.slice(0,Lt-s):d;t.addToken(t,Ye,g?g+L:L,H,s+Ye.length==m?F:"",b,X)}if(yt>=Lt){d=d.slice(Lt-s),s=Lt;break}s=yt,H=""}d=n.slice(o,o=i[u++]),g=Po(i[u++],t.cm.options)}}}function Io(e,t,i){this.line=t,this.rest=Ra(t),this.size=this.rest?f(ye(this.rest))-i+1:1,this.node=this.text=null,this.hidden=fr(e,t)}function Gi(e,t,i){for(var r=[],n,o=t;o2&&o.push((s.bottom+u.top)/2-i.top)}}o.push(i.bottom-i.top)}}function Ko(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;ri)return{map:e.measure.maps[n],cache:e.measure.caches[n],before:!0}}}function ls(e,t){t=Wt(t);var i=f(t),r=e.display.externalMeasured=new Io(e.doc,t,i);r.lineN=i;var n=r.built=Ho(e,r);return r.text=n.pre,Y(e.display.lineMeasure,n.pre),r}function Uo(e,t,i,r){return Kt(e,_r(e,t),i,r)}function Fn(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(o=s-a,n=o-1,t>=s&&(l="right")),n!=null){if(r=e[u+2],a==s&&i==(r.insertLeft?"left":"right")&&(l=i),i=="left"&&n==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],l="left";if(i=="right"&&n==s-a)for(;u=0&&(i=e[n]).left==i.right;n--);return i}function ss(e,t,i,r){var n=Xo(t.map,i,r),o=n.node,l=n.start,a=n.end,s=n.collapse,u;if(o.nodeType==3){for(var d=0;d<4;d++){for(;l&&Xe(t.line.text.charAt(n.coverStart+l));)--l;for(;n.coverStart+a0&&(s=r="right");var g;e.options.lineWrapping&&(g=o.getClientRects()).length>1?u=g[r=="right"?g.length-1:0]:u=o.getBoundingClientRect()}if(T&&se<9&&!l&&(!u||!u.left&&!u.right)){var b=o.parentNode.getClientRects()[0];b?u={left:b.left,right:b.left+jr(e.display),top:b.top,bottom:b.bottom}:u=Go}for(var m=u.top-t.rect.top,L=u.bottom-t.rect.top,F=(m+L)/2,H=t.view.measure.heights,B=0;B=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function d(L,F,H){var B=a[F],X=B.level==1;return l(H?L-1:L,X!=H)}var g=or(a,s,u),b=yr,m=d(s,g,u=="before");return b!=null&&(m.other=d(s,b,u!="before")),m}function Vo(e,t){var i=0;t=me(e.doc,t),e.options.lineWrapping||(i=jr(e.display)*t.ch);var r=V(e.doc,t.line),n=Qt(r)+Xi(e.display);return{left:i,right:i,top:n,bottom:n+r.height}}function Nn(e,t,i,r,n){var o=S(e,t,i);return o.xRel=n,r&&(o.outside=r),o}function On(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Nn(r.first,0,null,-1,-1);var n=p(r,i),o=r.first+r.size-1;if(n>o)return Nn(r.first+r.size-1,V(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=V(r,n);;){var a=fs(e,l,n,t,i),s=za(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==n)return u;l=V(r,n=u.line)}}function el(e,t,i,r){r-=En(t);var n=t.text.length,o=Rt(function(l){return Kt(e,i,l-1).bottom<=r},n,0);return n=Rt(function(l){return Kt(e,i,l).top>r},o,n),{begin:o,end:n}}function tl(e,t,i,r){i||(i=_r(e,t));var n=Yi(e,t,Kt(e,i,r),"line").top;return el(e,t,i,n)}function Pn(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function fs(e,t,i,r,n){n-=Qt(t);var o=_r(e,t),l=En(t),a=0,s=t.text.length,u=!0,d=Se(t,e.doc.direction);if(d){var g=(e.options.lineWrapping?hs:cs)(e,t,i,o,d,r,n);u=g.level!=1,a=u?g.from:g.to-1,s=u?g.to:g.from-1}var b=null,m=null,L=Rt(function(ae){var ne=Kt(e,o,ae);return ne.top+=l,ne.bottom+=l,Pn(ne,r,n,!1)?(ne.top<=n&&ne.left<=r&&(b=ae,m=ne),!0):!1},a,s),F,H,B=!1;if(m){var X=r-m.left=$.bottom?1:0}return L=ir(t.text,L,1),Nn(i,L,H,B,r-F)}function cs(e,t,i,r,n,o,l){var a=Rt(function(g){var b=n[g],m=b.level!=1;return Pn(It(e,S(i,m?b.to:b.from,m?"before":"after"),"line",t,r),o,l,!0)},0,n.length-1),s=n[a];if(a>0){var u=s.level!=1,d=It(e,S(i,u?s.from:s.to,u?"after":"before"),"line",t,r);Pn(d,o,l,!0)&&d.top>l&&(s=n[a-1])}return s}function hs(e,t,i,r,n,o,l){var a=el(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var d=null,g=null,b=0;b=u||m.to<=s)){var L=m.level!=1,F=Kt(e,r,L?Math.min(u,m.to)-1:Math.max(s,m.from)).right,H=FH)&&(d=m,g=H)}}return d||(d=n[n.length-1]),d.fromu&&(d={from:d.from,to:u,level:d.level}),d}var wr;function qr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wr==null){wr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wr.appendChild(document.createTextNode("x")),wr.appendChild(c("br"));wr.appendChild(document.createTextNode("x"))}Y(e.measure,wr);var i=wr.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),D(e.measure),i||1}function jr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),i=c("pre",[t],"CodeMirror-line-like");Y(e.measure,i);var r=t.getBoundingClientRect(),n=(r.right-r.left)/10;return n>2&&(e.cachedCharWidth=n),n||10}function Hn(e){for(var t=e.display,i={},r={},n=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;i[a]=o.offsetLeft+o.clientLeft+n,r[a]=o.clientWidth}return{fixedPos:Wn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Wn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function rl(e){var t=qr(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/jr(e.display)-3);return function(n){if(fr(e.doc,n))return 0;var o=0;if(n.widgets)for(var l=0;l0&&(u=V(e.doc,s.line).text).length==s.ch){var d=xe(u,u.length,e.options.tabSize)-u.length;s=S(s.line,Math.max(0,Math.round((o-jo(e.display).left)/jr(e.display))-d))}return s}function Cr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,r=0;rt)&&(n.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=n.viewTo)Jt&&Cn(e.doc,t)n.viewFrom?hr(e):(n.viewFrom+=r,n.viewTo+=r);else if(t<=n.viewFrom&&i>=n.viewTo)hr(e);else if(t<=n.viewFrom){var o=Zi(e,i,i+r,1);o?(n.view=n.view.slice(o.index),n.viewFrom=o.lineN,n.viewTo+=r):hr(e)}else if(i>=n.viewTo){var l=Zi(e,t,t,-1);l?(n.view=n.view.slice(0,l.index),n.viewTo=l.lineN):hr(e)}else{var a=Zi(e,t,t,-1),s=Zi(e,i,i+r,1);a&&s?(n.view=n.view.slice(0,a.index).concat(Gi(e,a.lineN,s.lineN)).concat(n.view.slice(s.index)),n.viewTo+=r):hr(e)}var u=n.externalMeasured;u&&(i=n.lineN&&t=r.viewTo)){var o=r.view[Cr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);J(l,i)==-1&&l.push(i)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zi(e,t,i,r){var n=Cr(e,t),o,l=e.display.view;if(!Jt||i==e.doc.first+e.doc.size)return{index:n,lineN:i};for(var a=e.display.viewFrom,s=0;s0){if(n==l.length-1)return null;o=a+l[n].size-t,n++}else o=a-t;t+=o,i+=o}for(;Cn(e.doc,i)!=i;){if(n==(r<0?0:l.length-1))return null;i+=r*l[n-(r<0?1:0)].size,n+=r}return{index:n,lineN:i}}function ds(e,t,i){var r=e.display,n=r.view;n.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Gi(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Gi(e,t,r.viewFrom).concat(r.view):r.viewFromi&&(r.view=r.view.slice(0,Cr(e,i)))),r.viewTo=i}function il(e){for(var t=e.display.view,i=0,r=0;r=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(r.other){var a=i.appendChild(c("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Ji(e,t){return e.top-t.top||e.left-t.left}function ps(e,t,i){var r=e.display,n=e.doc,o=document.createDocumentFragment(),l=jo(e.display),a=l.left,s=Math.max(r.sizerWidth,kr(e)-r.sizer.offsetLeft)-l.right,u=n.direction=="ltr";function d(R,$,ae,ne){$<0&&($=0),$=Math.round($),ne=Math.round(ne),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+R+`px; top: `+$+"px; width: "+(ae??s-R)+`px; - height: `+(ne-$)+"px"))}function g(R,$,ae){var ne=V(n,R),be=ne.text.length,Ne,rt;function Be(Ye,bt){return $i(e,S(R,Ye),"div",ne,bt)}function Lt(Ye,bt,lt){var Je=el(e,ne,null,Ye),$e=bt=="ltr"==(lt=="after")?"left":"right",je=lt=="after"?Je.begin:Je.end-(/\s/.test(ne.text.charAt(Je.end-1))?2:1);return Be(je,$e)[$e]}var yt=Se(ne,n.direction);return nr(yt,$||0,ae??be,function(Ye,bt,lt,Je){var $e=lt=="ltr",je=Be(Ye,$e?"left":"right"),kt=Be(bt-1,$e?"right":"left"),ri=$==null&&Ye==0,xr=ae==null&&bt==be,ct=Je==0,Ut=!yt||Je==yt.length-1;if(kt.top-je.top<=3){var it=(u?ri:xr)&&ct,co=(u?xr:ri)&&Ut,rr=it?a:($e?je:kt).left,Ar=co?s:($e?kt:je).right;d(rr,je.top,Ar-rr,je.bottom)}else{var Fr,dt,ii,ho;$e?(Fr=u&&ri&&ct?a:je.left,dt=u?s:Lt(Ye,lt,"before"),ii=u?a:Lt(bt,lt,"after"),ho=u&&xr&&Ut?s:kt.right):(Fr=u?Lt(Ye,lt,"before"):a,dt=!u&&ri&&ct?s:je.right,ii=!u&&xr&&Ut?a:kt.left,ho=u?Lt(bt,lt,"after"):s),d(Fr,je.top,dt-Fr,je.bottom),je.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Kr(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function nl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||_n(e))}function Rn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Kr(e))},100)}function _n(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Re(e,"focus",e,t),e.state.focused=!0,ze(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),ie&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Bn(e))}function Kr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Re(e,"blur",e,t),e.state.focused=!1,We(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Qi(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),n=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ne.display.sizerWidth){var F=Math.ceil(d/jr(e.display));F>e.display.maxLineLength&&(e.display.maxLineLength=F,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ol(e){if(e.widgets)for(var t=0;t=l&&(o=p(t,Qt(V(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function cs(e,t){if(!_e(e,"scrollCursorIntoView")){var i=e.display,r=i.sizer.getBoundingClientRect(),n=null,o=i.wrapper.ownerDocument;if(t.top+r.top<0?n=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(n=!1),n!=null&&!ue){var l=c("div","​",null,`position: absolute; + height: `+(ne-$)+"px"))}function g(R,$,ae){var ne=V(n,R),be=ne.text.length,Ne,rt;function Be(Ye,bt){return $i(e,S(R,Ye),"div",ne,bt)}function Lt(Ye,bt,lt){var Je=tl(e,ne,null,Ye),$e=bt=="ltr"==(lt=="after")?"left":"right",je=lt=="after"?Je.begin:Je.end-(/\s/.test(ne.text.charAt(Je.end-1))?2:1);return Be(je,$e)[$e]}var yt=Se(ne,n.direction);return nr(yt,$||0,ae??be,function(Ye,bt,lt,Je){var $e=lt=="ltr",je=Be(Ye,$e?"left":"right"),kt=Be(bt-1,$e?"right":"left"),ri=$==null&&Ye==0,xr=ae==null&&bt==be,ct=Je==0,Ut=!yt||Je==yt.length-1;if(kt.top-je.top<=3){var it=(u?ri:xr)&&ct,co=(u?xr:ri)&&Ut,rr=it?a:($e?je:kt).left,Ar=co?s:($e?kt:je).right;d(rr,je.top,Ar-rr,je.bottom)}else{var Fr,dt,ii,ho;$e?(Fr=u&&ri&&ct?a:je.left,dt=u?s:Lt(Ye,lt,"before"),ii=u?a:Lt(bt,lt,"after"),ho=u&&xr&&Ut?s:kt.right):(Fr=u?Lt(Ye,lt,"before"):a,dt=!u&&ri&&ct?s:je.right,ii=!u&&xr&&Ut?a:kt.left,ho=u?Lt(bt,lt,"after"):s),d(Fr,je.top,dt-Fr,je.bottom),je.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Kr(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function ol(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||_n(e))}function Rn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Kr(e))},100)}function _n(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Re(e,"focus",e,t),e.state.focused=!0,ze(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),ie&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Bn(e))}function Kr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Re(e,"blur",e,t),e.state.focused=!1,We(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Qi(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),n=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ne.display.sizerWidth){var F=Math.ceil(d/jr(e.display));F>e.display.maxLineLength&&(e.display.maxLineLength=F,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ll(e){if(e.widgets)for(var t=0;t=l&&(o=p(t,Qt(V(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function gs(e,t){if(!_e(e,"scrollCursorIntoView")){var i=e.display,r=i.sizer.getBoundingClientRect(),n=null,o=i.wrapper.ownerDocument;if(t.top+r.top<0?n=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(n=!1),n!=null&&!ue){var l=c("div","​",null,`position: absolute; top: `+(t.top-i.viewOffset-Xi(e.display))+`px; height: `+(t.bottom-t.top+jt(e)+i.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(n),e.display.lineSpace.removeChild(l)}}}function hs(e,t,i,r){r==null&&(r=0);var n;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?S(t.line,t.ch+1,"before"):t,t=t.ch?S(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=It(e,t),s=!i||i==t?a:It(e,i);n={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=qn(e,n),d=e.doc.scrollTop,g=e.doc.scrollLeft;if(u.scrollTop!=null&&(vi(e,u.scrollTop),Math.abs(e.doc.scrollTop-d)>1&&(l=!0)),u.scrollLeft!=null&&(Lr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-g)>1&&(l=!0)),!l)break}return n}function ds(e,t){var i=qn(e,t);i.scrollTop!=null&&vi(e,i.scrollTop),i.scrollLeft!=null&&Lr(e,i.scrollLeft)}function qn(e,t){var i=e.display,r=qr(e.display);t.top<0&&(t.top=0);var n=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,o=An(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Mn(i),s=t.topa-r;if(t.topn+o){var d=Math.min(t.top,(u?a:t.bottom)-o);d!=n&&(l.scrollTop=d)}var g=e.options.fixedGutter?0:i.gutters.offsetWidth,b=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-g,m=kr(e)-i.gutters.offsetWidth,L=t.right-t.left>m;return L&&(t.right=t.left+m),t.left<10?l.scrollLeft=0:t.leftm+b-3&&(l.scrollLeft=t.right+(L?0:10)-m),l}function jn(e,t){t!=null&&(en(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ur(e){en(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function gi(e,t,i){(t!=null||i!=null)&&en(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function ps(e,t){en(e),e.curOp.scrollToPos=t}function en(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Qo(e,t.from),r=Qo(e,t.to);ll(e,i,r,t.margin)}}function ll(e,t,i,r){var n=qn(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});gi(e,n.scrollLeft,n.scrollTop)}function vi(e,t){Math.abs(e.doc.scrollTop-t)<2||(k||Un(e,{top:t}),al(e,t,!0),k&&Un(e),yi(e,100))}function al(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Lr(e,t,i,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,hl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mi(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+Mn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+jt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Tr=function(e,t,i){this.cm=i;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=n.tabIndex=-1,e(r),e(n),le(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),le(n,"scroll",function(){n.clientWidth&&t(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&se<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var n=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+n)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},Tr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Tr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Tr.prototype.zeroWidthHack=function(){var e=De&&!ce?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new he,this.disableVert=new he},Tr.prototype.enableZeroWidthBar=function(e,t,i){e.style.visibility="";function r(){var n=e.getBoundingClientRect(),o=i=="vert"?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Tr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var xi=function(){};xi.prototype.update=function(){return{bottom:0,right:0}},xi.prototype.setScrollLeft=function(){},xi.prototype.setScrollTop=function(){},xi.prototype.clear=function(){};function Gr(e,t){t||(t=mi(e));var i=e.display.barWidth,r=e.display.barHeight;sl(e,t);for(var n=0;n<4&&i!=e.display.barWidth||r!=e.display.barHeight;n++)i!=e.display.barWidth&&e.options.lineWrapping&&Qi(e),sl(e,mi(e)),i=e.display.barWidth,r=e.display.barHeight}function sl(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var ul={native:Tr,null:xi};function fl(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&We(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ul[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),le(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Lr(e,t):vi(e,t)},e),e.display.scrollbars.addClass&&ze(e.display.wrapper,e.display.scrollbars.addClass)}var gs=0;function Dr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++gs,markArrays:null},Ga(e.curOp)}function Mr(e){var t=e.curOp;t&&Ya(t,function(i){for(var r=0;r=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new tn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function xs(e){e.updatedDisplay=e.mustUpdate&&Kn(e.cm,e.update)}function ys(e){var t=e.cm,i=t.display;e.updatedDisplay&&Qi(t),e.barMeasure=mi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ko(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+jt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-kr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function bs(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var i=+new Date+e.options.workTime,r=si(e,t.highlightFrontier),n=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?_t(t.mode,r.state):null,s=xo(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,d=s.classes;d?o.styleClasses=d:u&&(o.styleClasses=null);for(var g=!l||l.length!=o.styles.length||u!=d&&(!u||!d||u.bgClass!=d.bgClass||u.textClass!=d.textClass),b=0;!g&&bi)return yi(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),n.length&&Ct(e,function(){for(var o=0;o=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&rl(e)==0)return!1;dl(e)&&(hr(e),t.dims=Hn(e));var n=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(n,t.visible.to+e.options.viewportMargin);i.viewFroml&&i.viewTo-l<20&&(l=Math.min(n,i.viewTo)),Jt&&(o=Cn(e.doc,o),l=No(e.doc,l));var a=o!=i.viewFrom||l!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;us(e,o,l),i.viewOffset=Qt(V(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var s=rl(e);if(!a&&s==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var u=Cs(e);return s>4&&(i.lineDiv.style.display="none"),Ts(e,i.updateLineNumbers,t.dims),s>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,Ls(u),D(i.cursorDiv),D(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,a&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,yi(e,400)),i.updateLineNumbers=null,!0}function cl(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==kr(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Mn(e.display)-An(e),i.top)}),t.visible=Vi(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Vi(e.display,e.doc,i));if(!Kn(e,t))break;Qi(e);var n=mi(e);pi(e),Gr(e,n),Xn(e,n),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Un(e,t){var i=new tn(e,t);if(Kn(e,i)){Qi(e),cl(e,i);var r=mi(e);pi(e),Gr(e,r),Xn(e,r),i.finish()}}function Ts(e,t,i){var r=e.display,n=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(L){var F=L.nextSibling;return ie&&De&&e.display.currentWheelTarget==L?L.style.display="none":L.parentNode.removeChild(L),F}for(var s=r.view,u=r.viewFrom,d=0;d-1&&(m=!1),Io(e,g,u,i)),m&&(D(g.lineNumber),g.lineNumber.appendChild(document.createTextNode(P(e.options,u)))),l=g.node.nextSibling}u+=g.size}for(;l;)l=a(l)}function Gn(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Ve(e,"gutterChanged",e)}function Xn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jt(e)+"px"}function hl(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Wn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,n=t.gutters.offsetWidth,o=r+"px",l=0;l=105&&(n.wrapper.style.clipPath="inset(0px)"),n.wrapper.setAttribute("translate","no"),T&&se<8&&(n.gutters.style.zIndex=-1,n.scroller.style.paddingRight=0),!ie&&!(k&&fe)&&(n.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(n.wrapper):e(n.wrapper)),n.viewFrom=n.viewTo=t.first,n.reportedViewFrom=n.reportedViewTo=t.first,n.view=[],n.renderedView=null,n.externalMeasured=null,n.viewOffset=0,n.lastWrapHeight=n.lastWrapWidth=0,n.updateLineNumbers=null,n.nativeBarWidth=n.barHeight=n.barWidth=0,n.scrollbarsClipped=!1,n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null,n.alignWidgets=!1,n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.maxLine=null,n.maxLineLength=0,n.maxLineChanged=!1,n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null,n.shift=!1,n.selForContextMenu=null,n.activeTouch=null,n.gutterSpecs=Yn(r.gutters,r.lineNumbers),pl(n),i.init(n)}var rn=0,er=null;T?er=-.53:k?er=15:ee?er=-.7:K&&(er=-1/3);function gl(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function Ms(e){var t=gl(e);return t.x*=er,t.y*=er,t}function vl(e,t){ee&&j==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=gl(t),r=i.x,n=i.y,o=er;t.deltaMode===0&&(r=t.deltaX,n=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||n&&u){if(n&&De&&ie){e:for(var d=t.target,g=l.view;d!=a;d=d.parentNode)for(var b=0;b=0&&G(e,r.to())<=0)return i}return-1};var Ae=function(e,t){this.anchor=e,this.head=t};Ae.prototype.from=function(){return zr(this.anchor,this.head)},Ae.prototype.to=function(){return vt(this.anchor,this.head)},Ae.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zt(e,t,i){var r=e&&e.options.selectionsMayTouch,n=t[i];t.sort(function(b,m){return G(b.from(),m.from())}),i=J(t,n);for(var o=1;o0:s>=0){var u=zr(a.from(),l.from()),d=vt(a.to(),l.to()),g=a.empty()?l.from()==l.head:a.from()==a.head;o<=i&&--i,t.splice(--o,2,new Ae(g?d:u,g?u:d))}}return new Mt(t,i)}function dr(e,t){return new Mt([new Ae(e,t||e)],0)}function pr(e){return e.text?S(e.from.line+e.text.length-1,ye(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ml(e,t){if(G(e,t.from)<0)return e;if(G(e,t.to)<=0)return pr(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=pr(t).ch-t.to.ch),S(i,r)}function $n(e,t){for(var i=[],r=0;r1&&e.remove(a.line+1,L-1),e.insert(a.line+1,B)}Ve(e,"change",e,t)}function gr(e,t,i){function r(n,o,l){if(n.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),ye(e.done)}function Sl(e,t,i,r){var n=e.history;n.undone.length=0;var o=+new Date,l,a;if((n.lastOp==r||n.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&n.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=Es(n,n.lastOp==r)))a=ye(l.changes),G(t.from,t.to)==0&&G(t.from,a.to)==0?a.to=pr(t):l.changes.push(Qn(e,t));else{var s=ye(n.done);for((!s||!s.ranges)&&on(e.sel,n.done),l={changes:[Qn(e,t)],generation:n.generation},n.done.push(l);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(i),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=o,n.lastOp=n.lastSelOp=r,n.lastOrigin=n.lastSelOrigin=t.origin,a||Re(e,"historyAdded")}function Ns(e,t,i,r){var n=t.charAt(0);return n=="*"||n=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Os(e,t,i,r){var n=e.history,o=r&&r.origin;i==n.lastSelOp||o&&n.lastSelOrigin==o&&(n.lastModTime==n.lastSelTime&&n.lastOrigin==o||Ns(e,o,ye(n.done),t))?n.done[n.done.length-1]=t:on(t,n.done),n.lastSelTime=+new Date,n.lastSelOrigin=o,n.lastSelOp=i,r&&r.clearRedo!==!1&&wl(n.undone)}function on(e,t){var i=ye(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Cl(e,t,i,r){var n=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((n||(n=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function Ps(e){if(!e)return null;for(var t,i=0;i-1&&(ye(a)[g]=u[g],delete u[g])}}return r}function Vn(e,t,i,r){if(r){var n=e.anchor;if(i){var o=G(t,n)<0;o!=G(i,n)<0?(n=t,t=i):o!=G(t,i)<0&&(t=i)}return new Ae(n,t)}else return new Ae(i||t,t)}function ln(e,t,i,r,n){n==null&&(n=e.cm&&(e.cm.display.shift||e.extend)),ft(e,new Mt([Vn(e.sel.primary(),t,i,n)],0),r)}function Tl(e,t,i){for(var r=[],n=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(n&&(Re(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(i){var g=s.find(r<0?1:-1),b=void 0;if((r<0?d:u)&&(g=Nl(e,g,-r,g&&g.line==t.line?o:null)),g&&g.line==t.line&&(b=G(g,i))&&(r<0?b<0:b>0))return Yr(e,g,t,r,n)}var m=s.find(r<0?-1:1);return(r<0?u:d)&&(m=Nl(e,m,r,m.line==t.line?o:null)),m?Yr(e,m,t,r,n):null}}return t}function sn(e,t,i,r,n){var o=r||1,l=Yr(e,t,i,o,n)||!n&&Yr(e,t,i,o,!0)||Yr(e,t,i,-o,n)||!n&&Yr(e,t,i,-o,!0);return l||(e.cantEdit=!0,S(e.first,0))}function Nl(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?me(e,S(t.line-1)):null:i>0&&t.ch==(r||V(e,t.line)).text.length?t.line=0;--n)Hl(e,{from:r[n].from,to:r[n].to,text:n?[""]:t.text,origin:t.origin});else Hl(e,t)}}function Hl(e,t){if(!(t.text.length==1&&t.text[0]==""&&G(t.from,t.to)==0)){var i=$n(e,t);Sl(e,t,i,e.cm?e.cm.curOp.id:NaN),wi(e,t,i,wn(e,t));var r=[];gr(e,function(n,o){!o&&J(r,n.history)==-1&&(Bl(n.history,t),r.push(n.history)),wi(n,t,null,wn(n,t))})}}function un(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!i)){for(var n=e.history,o,l=e.sel,a=t=="undo"?n.done:n.undone,s=t=="undo"?n.undone:n.done,u=0;u=0;--m){var L=b(m);if(L)return L.v}}}}function Wl(e,t){if(t!=0&&(e.first+=t,e.sel=new Mt(Ce(e.sel.ranges,function(n){return new Ae(S(n.anchor.line+t,n.anchor.ch),S(n.head.line+t,n.head.ch))}),e.sel.primIndex),e.cm)){mt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:S(o,V(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Zt(e,t.from,t.to),i||(i=$n(e,t)),e.cm?Is(e.cm,t,r):Jn(e,t,r),an(e,i,Ze),e.cantEdit&&sn(e,S(e.firstLine(),0))&&(e.cantEdit=!1)}}function Is(e,t,i){var r=e.doc,n=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=f(Wt(V(r,o.line))),r.iter(s,l.line+1,function(m){if(m==n.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&At(e),Jn(r,t,i,tl(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(m){var L=Ui(m);L>n.maxLineLength&&(n.maxLine=m,n.maxLineLength=L,n.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),Ta(r,o.line),yi(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?mt(e):o.line==l.line&&t.text.length==1&&!yl(e.doc,t)?cr(e,o.line,"text"):mt(e,o.line,l.line+1,u);var d=St(e,"changes"),g=St(e,"change");if(g||d){var b={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};g&&Ve(e,"change",e,b),d&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(b)}e.display.selForContextMenu=null}function Zr(e,t,i,r,n){var o;r||(r=i),G(r,i)<0&&(o=[r,i],i=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),$r(e,{from:i,to:r,text:t,origin:n})}function Il(e,t,i,r){i1||!(this.children[0]instanceof Ci))){var a=[];this.collapse(a),this.children=[new Ci(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=n.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=d,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&mt(e,r,n+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Fl(e.doc)),e&&Ve(e,"markerCleared",e,this,r,n),t&&Mr(e),this.parent&&this.parent.clear()}},vr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,n=0;n0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=U("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Eo(e,t.line,t,i,o)||t.line!=i.line&&Eo(e,i.line,t,i,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ma()}o.addToHistory&&Sl(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,i.line+1,function(g){s&&o.collapsed&&!s.options.lineWrapping&&Wt(g)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Dt(g,0),Fa(g,new _i(o,a==t.line?t.ch:null,a==i.line?i.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,i.line+1,function(g){fr(e,g)&&Dt(g,0)}),o.clearOnEnter&&le(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Da(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++_l,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)mt(s,t.line,i.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var d=t.line;d<=i.line;d++)cr(s,d,"text");o.atomic&&Fl(s.doc),Ve(s,"markerAdded",s,o)}return o}var Di=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;s--)$r(this,r[s]);a?Ml(this,a):this.cm&&Ur(this.cm)}),undo:tt(function(){un(this,"undo")}),redo:tt(function(){un(this,"redo")}),undoSelection:tt(function(){un(this,"undo",!0)}),redoSelection:tt(function(){un(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r=e.ch)&&t.push(n.marker.parent||n.marker)}return t},findMarks:function(e,t,i){e=me(this,e),t=me(this,t);var r=[],n=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||s.from==null&&n!=e.line||s.from!=null&&n==t.line&&s.from>=t.ch)&&(!i||i(s.marker))&&r.push(s.marker.parent||s.marker)}++n}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;re)return t=e,!0;e-=o,++i}),me(this,S(i,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var d=e.dataTransfer.getData("Text");if(d){var g;if(t.state.draggingText&&!t.state.draggingText.copy&&(g=t.listSelections()),an(t.doc,dr(i,i)),g)for(var b=0;b=0;a--)Zr(e.doc,"",r[a].from,r[a].to,"+delete");Ur(e)})}function to(e,t,i){var r=ir(e.text,t+i,i);return r<0||r>e.text.length?null:r}function ro(e,t,i){var r=to(e,t.ch,i);return r==null?null:new S(t.line,r,i<0?"after":"before")}function io(e,t,i,r,n){if(e){t.doc.direction=="rtl"&&(n=-n);var o=Se(i,t.doc.direction);if(o){var l=n<0?ye(o):o[0],a=n<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var d=_r(t,i);u=n<0?i.text.length-1:0;var g=Kt(t,d,u).top;u=Rt(function(b){return Kt(t,d,b).top==g},n<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=to(i,u,1))}else u=n<0?l.to:l.from;return new S(r,u,s)}}return new S(r,n<0?i.text.length:0,n<0?"before":"after")}function Js(e,t,i,r){var n=Se(t,e.doc.direction);if(!n)return ro(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var o=or(n,i.ch,i.sticky),l=n[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>i.ch:l.from=l.from&&b>=d.begin)){var m=g?"before":"after";return new S(i.line,b,m)}}var L=function(B,X,R){for(var $=function(Ne,rt){return rt?new S(i.line,a(Ne,1),"before"):new S(i.line,Ne,"after")};B>=0&&B0==(ae.level!=1),be=ne?R.begin:a(R.end,-1);if(ae.from<=be&&be0?d.end:a(d.begin,-1);return H!=null&&!(r>0&&H==t.text.length)&&(F=L(r>0?0:n.length-1,r,u(H)),F)?F:null}var Fi={selectAll:Ol,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ze)},killLine:function(e){return Vr(e,function(t){if(t.empty()){var i=V(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)n=new S(n.line,n.ch+1),e.replaceRange(o.charAt(n.ch-1)+o.charAt(n.ch-2),S(n.line,n.ch-2),n,"+transpose");else if(n.line>e.doc.first){var l=V(e.doc,n.line-1).text;l&&(n=new S(n.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),S(n.line-1,l.length-1),n,"+transpose"))}}i.push(new Ae(n,n))}e.setSelections(i)})},newlineAndIndent:function(e){return Ct(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;re&&G(t,this.pos)==0&&i==this.button};var Ni,Oi;function nu(e,t){var i=+new Date;return Oi&&Oi.compare(i,e,t)?(Ni=Oi=null,"triple"):Ni&&Ni.compare(i,e,t)?(Oi=new oo(i,e,t),Ni=null,"double"):(Ni=new oo(i,e,t),Oi=null,"single")}function ia(e){var t=this,i=t.display;if(!(_e(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,Vt(i,e)){ie||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!lo(t,e)){var r=Sr(t,e),n=Nt(e),o=r?nu(r,n):"single";z(t).focus(),n==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&ou(t,n,r,o,e))&&(n==1?r?au(t,r,o,e):ni(e)==i.scroller&&ut(e):n==2?(r&&ln(t.doc,r),setTimeout(function(){return i.input.focus()},20)):n==3&&(pe?t.display.input.onContextMenu(e):Rn(t)))}}}function ou(e,t,i,r,n){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Ei(e,Yl(o,n),n,function(l){if(typeof l=="string"&&(l=Fi[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,i)!=Oe}finally{e.state.suppressEdits=!1}return a})}function lu(e,t,i){var r=e.getOption("configureMouse"),n=r?r(e,t,i):{};if(n.unit==null){var o=Ge?i.shiftKey&&i.metaKey:i.altKey;n.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(n.extend==null||e.doc.extend)&&(n.extend=e.doc.extend||i.shiftKey),n.addNew==null&&(n.addNew=De?i.metaKey:i.ctrlKey),n.moveOnDrag==null&&(n.moveOnDrag=!(De?i.altKey:i.ctrlKey)),n}function au(e,t,i,r){T?setTimeout(re(nl,e),0):e.curOp.focus=Te(Z(e));var n=lu(e,i,r),o=e.doc.sel,l;e.options.dragDrop&&xn&&!e.isReadOnly()&&i=="single"&&(l=o.contains(t))>-1&&(G((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(G(l.to(),t)>0||t.xRel<0)?su(e,r,t,n):uu(e,r,t,n)}function su(e,t,i,r){var n=e.display,o=!1,l=et(e,function(u){ie&&(n.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Rn(e)),st(n.wrapper.ownerDocument,"mouseup",l),st(n.wrapper.ownerDocument,"mousemove",a),st(n.scroller,"dragstart",s),st(n.scroller,"drop",l),o||(ut(u),r.addNew||ln(e.doc,i,null,null,r.extend),ie&&!K||T&&se==9?setTimeout(function(){n.wrapper.ownerDocument.body.focus({preventScroll:!0}),n.input.focus()},20):n.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};ie&&(n.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,le(n.wrapper.ownerDocument,"mouseup",l),le(n.wrapper.ownerDocument,"mousemove",a),le(n.scroller,"dragstart",s),le(n.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return n.input.focus()},20),n.scroller.dragDrop&&n.scroller.dragDrop()}function na(e,t,i){if(i=="char")return new Ae(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Ae(S(t.line,0),me(e.doc,S(t.line+1,0)));var r=i(e,t);return new Ae(r.from,r.to)}function uu(e,t,i,r){T&&Rn(e);var n=e.display,o=e.doc;ut(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(i),a>-1?l=u[a]:l=new Ae(i,i)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new Ae(i,i)),i=Sr(e,t,!0,!0),a=-1;else{var d=na(e,i,r.unit);r.extend?l=Vn(l,d.anchor,d.head,r.extend):l=d}r.addNew?a==-1?(a=u.length,ft(o,zt(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(ft(o,zt(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):eo(o,a,l,pt):(a=0,ft(o,new Mt([l],0),pt),s=o.sel);var g=i;function b(R){if(G(g,R)!=0)if(g=R,r.unit=="rectangle"){for(var $=[],ae=e.options.tabSize,ne=xe(V(o,i.line).text,i.ch,ae),be=xe(V(o,R.line).text,R.ch,ae),Ne=Math.min(ne,be),rt=Math.max(ne,be),Be=Math.min(i.line,R.line),Lt=Math.min(e.lastLine(),Math.max(i.line,R.line));Be<=Lt;Be++){var yt=V(o,Be).text,Ye=Ee(yt,Ne,ae);Ne==rt?$.push(new Ae(S(Be,Ye),S(Be,Ye))):yt.length>Ye&&$.push(new Ae(S(Be,Ye),S(Be,Ee(yt,rt,ae))))}$.length||$.push(new Ae(i,i)),ft(o,zt(e,s.ranges.slice(0,a).concat($),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(R)}else{var bt=l,lt=na(e,R,r.unit),Je=bt.anchor,$e;G(lt.anchor,Je)>0?($e=lt.head,Je=zr(bt.from(),lt.anchor)):($e=lt.anchor,Je=vt(bt.to(),lt.head));var je=s.ranges.slice(0);je[a]=fu(e,new Ae(me(o,Je),$e)),ft(o,zt(e,je,a),pt)}}var m=n.wrapper.getBoundingClientRect(),L=0;function F(R){var $=++L,ae=Sr(e,R,!0,r.unit=="rectangle");if(ae)if(G(ae,g)!=0){e.curOp.focus=Te(Z(e)),b(ae);var ne=Vi(n,o);(ae.line>=ne.to||ae.linem.bottom?20:0;be&&setTimeout(et(e,function(){L==$&&(n.scroller.scrollTop+=be,F(R))}),50)}}function H(R){e.state.selectingText=!1,L=1/0,R&&(ut(R),n.input.focus()),st(n.wrapper.ownerDocument,"mousemove",B),st(n.wrapper.ownerDocument,"mouseup",X),o.history.lastSelOrigin=null}var B=et(e,function(R){R.buttons===0||!Nt(R)?H(R):F(R)}),X=et(e,H);e.state.selectingText=X,le(n.wrapper.ownerDocument,"mousemove",B),le(n.wrapper.ownerDocument,"mouseup",X)}function fu(e,t){var i=t.anchor,r=t.head,n=V(e.doc,i.line);if(G(i,r)==0&&i.sticky==r.sticky)return t;var o=Se(n);if(!o)return t;var l=or(o,i.ch,i.sticky),a=o[l];if(a.from!=i.ch&&a.to!=i.ch)return t;var s=l+(a.from==i.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=i.line)u=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var d=or(o,r.ch,r.sticky),g=d-l||(r.ch-i.ch)*(a.level==1?-1:1);d==s-1||d==s?u=g<0:u=g>0}var b=o[s+(u?-1:0)],m=u==(b.level==1),L=m?b.from:b.to,F=m?"after":"before";return i.ch==L&&i.sticky==F?t:new Ae(new S(i.line,L,F),r)}function oa(e,t,i,r){var n,o;if(t.touches)n=t.touches[0].clientX,o=t.touches[0].clientY;else try{n=t.clientX,o=t.clientY}catch{return!1}if(n>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ut(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!St(e,i))return gt(t);o-=a.top-l.viewOffset;for(var s=0;s=n){var d=p(e.doc,o),g=e.display.gutterSpecs[s];return Re(e,i,e,d,g.className,t),gt(t)}}}function lo(e,t){return oa(e,t,"gutterClick",!0)}function la(e,t){Vt(e.display,t)||cu(e,t)||_e(e,t,"contextmenu")||pe||e.display.input.onContextMenu(t)}function cu(e,t){return St(e,"gutterContextMenu")?oa(e,t,"gutterContextMenu",!1):!1}function aa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),di(e)}var ei={toString:function(){return"CodeMirror.Init"}},sa={},dn={};function hu(e){var t=e.optionHandlers;function i(r,n,o,l){e.defaults[r]=n,o&&(t[r]=l?function(a,s,u){u!=ei&&o(a,s,u)}:o)}e.defineOption=i,e.Init=ei,i("value","",function(r,n){return r.setValue(n)},!0),i("mode",null,function(r,n){r.doc.modeOption=n,Zn(r)},!0),i("indentUnit",2,Zn,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){ki(r),di(r),mt(r)},!0),i("lineSeparator",null,function(r,n){if(r.doc.lineSep=n,!!n){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var d=s.text.indexOf(n,u);if(d==-1)break;u=d+n.length,o.push(S(l,d))}l++});for(var a=o.length-1;a>=0;a--)Zr(r.doc,n,o[a],S(o[a].line,o[a].ch+n.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,n,o){r.state.specialChars=new RegExp(n.source+(n.test(" ")?"":"| "),"g"),o!=ei&&r.refresh()}),i("specialCharPlaceholder",_a,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",fe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,n){return r.getInputField().spellcheck=n},!0),i("autocorrect",!1,function(r,n){return r.getInputField().autocorrect=n},!0),i("autocapitalize",!1,function(r,n){return r.getInputField().autocapitalize=n},!0),i("rtlMoveVisually",!nt),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){aa(r),bi(r)},!0),i("keyMap","default",function(r,n,o){var l=cn(n),a=o!=ei&&cn(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,pu,!0),i("gutters",[],function(r,n){r.display.gutterSpecs=Yn(n,r.options.lineNumbers),bi(r)},!0),i("fixedGutter",!0,function(r,n){r.display.gutters.style.left=n?Wn(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return Gr(r)},!0),i("scrollbarStyle","native",function(r){fl(r),Gr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,n){r.display.gutterSpecs=Yn(r.options.gutters,n),bi(r)},!0),i("firstLineNumber",1,bi,!0),i("lineNumberFormatter",function(r){return r},bi,!0),i("showCursorWhenSelecting",!1,pi,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,n){n=="nocursor"&&(Kr(r),r.display.input.blur()),r.display.input.readOnlyChanged(n)}),i("screenReaderLabel",null,function(r,n){n=n===""?null:n,r.display.input.screenReaderLabelChanged(n)}),i("disableInput",!1,function(r,n){n||r.display.input.reset()},!0),i("dragDrop",!0,du),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,pi,!0),i("singleCursorHeightPerLine",!0,pi,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,ki,!0),i("addModeClass",!1,ki,!0),i("pollInterval",100),i("undoDepth",200,function(r,n){return r.doc.history.undoDepth=n}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,ki,!0),i("moveInputWithCursor",!0,function(r,n){n||r.display.input.resetPosition()}),i("tabindex",null,function(r,n){return r.display.input.getField().tabIndex=n||""}),i("autofocus",null),i("direction","ltr",function(r,n){return r.doc.setDirection(n)},!0),i("phrases",null)}function du(e,t,i){var r=i&&i!=ei;if(!t!=!r){var n=e.display.dragFunctions,o=t?le:st;o(e.display.scroller,"dragstart",n.start),o(e.display.scroller,"dragenter",n.enter),o(e.display.scroller,"dragover",n.over),o(e.display.scroller,"dragleave",n.leave),o(e.display.scroller,"drop",n.drop)}}function pu(e){e.options.lineWrapping?(ze(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(We(e.display.wrapper,"CodeMirror-wrap"),Tn(e)),In(e),mt(e),di(e),setTimeout(function(){return Gr(e)},100)}function Ie(e,t){var i=this;if(!(this instanceof Ie))return new Ie(e,t);this.options=t=t?ge(t):{},ge(sa,t,!1);var r=t.value;typeof r=="string"?r=new xt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var n=new Ie.inputStyles[t.inputStyle](this),o=this.display=new Ds(e,r,n,t);o.wrapper.CodeMirror=this,aa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),fl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new he,keySeq:null,specialChars:null},t.autofocus&&!fe&&o.input.focus(),T&&se<11&&setTimeout(function(){return i.display.input.reset(!0)},20),gu(this),Gs(),Dr(this),this.curOp.forceUpdate=!0,bl(this,r),t.autofocus&&!fe||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&_n(i)},20):Kr(this);for(var l in dn)dn.hasOwnProperty(l)&&dn[l](this,t[l],ei);dl(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}le(t.scroller,"touchstart",function(s){if(!_e(e,s)&&!o(s)&&!lo(e,s)){t.input.ensurePolled(),clearTimeout(i);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),le(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),le(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Vt(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var d=e.coordsChar(t.activeTouch,"page"),g;!u.prev||l(u,u.prev)?g=new Ae(d,d):!u.prev.prev||l(u,u.prev.prev)?g=e.findWordAt(d):g=new Ae(S(d.line,0),me(e.doc,S(d.line+1,0))),e.setSelection(g.anchor,g.head),e.focus(),ut(s)}n()}),le(t.scroller,"touchcancel",n),le(t.scroller,"scroll",function(){t.scroller.clientHeight&&(vi(e,t.scroller.scrollTop),Lr(e,t.scroller.scrollLeft,!0),Re(e,"scroll",e))}),le(t.scroller,"mousewheel",function(s){return vl(e,s)}),le(t.scroller,"DOMMouseScroll",function(s){return vl(e,s)}),le(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){_e(e,s)||lr(s)},over:function(s){_e(e,s)||(Us(e,s),lr(s))},start:function(s){return Ks(e,s)},drop:et(e,js),leave:function(s){_e(e,s)||Kl(e)}};var a=t.input.getField();le(a,"keyup",function(s){return ta.call(e,s)}),le(a,"keydown",et(e,ea)),le(a,"keypress",et(e,ra)),le(a,"focus",function(s){return _n(e,s)}),le(a,"blur",function(s){return Kr(e,s)})}var ao=[];Ie.defineInitHook=function(e){return ao.push(e)};function Pi(e,t,i,r){var n=e.doc,o;i==null&&(i="add"),i=="smart"&&(n.mode.indent?o=si(e,t).state:i="prev");var l=e.options.tabSize,a=V(n,t),s=xe(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],d;if(!r&&!/\S/.test(a.text))d=0,i="not";else if(i=="smart"&&(d=n.mode.indent(o,a.text.slice(u.length),a.text),d==Oe||d>150)){if(!r)return;i="prev"}i=="prev"?t>n.first?d=xe(V(n,t-1).text,null,l):d=0:i=="add"?d=s+e.options.indentUnit:i=="subtract"?d=s-e.options.indentUnit:typeof i=="number"&&(d=s+i),d=Math.max(0,d);var g="",b=0;if(e.options.indentWithTabs)for(var m=Math.floor(d/l);m;--m)b+=l,g+=" ";if(bl,s=Ft(t),u=null;if(a&&r.ranges.length>1)if(Bt&&Bt.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(n),e.display.lineSpace.removeChild(l)}}}function vs(e,t,i,r){r==null&&(r=0);var n;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?S(t.line,t.ch+1,"before"):t,t=t.ch?S(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=It(e,t),s=!i||i==t?a:It(e,i);n={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=qn(e,n),d=e.doc.scrollTop,g=e.doc.scrollLeft;if(u.scrollTop!=null&&(vi(e,u.scrollTop),Math.abs(e.doc.scrollTop-d)>1&&(l=!0)),u.scrollLeft!=null&&(Lr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-g)>1&&(l=!0)),!l)break}return n}function ms(e,t){var i=qn(e,t);i.scrollTop!=null&&vi(e,i.scrollTop),i.scrollLeft!=null&&Lr(e,i.scrollLeft)}function qn(e,t){var i=e.display,r=qr(e.display);t.top<0&&(t.top=0);var n=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,o=An(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Mn(i),s=t.topa-r;if(t.topn+o){var d=Math.min(t.top,(u?a:t.bottom)-o);d!=n&&(l.scrollTop=d)}var g=e.options.fixedGutter?0:i.gutters.offsetWidth,b=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-g,m=kr(e)-i.gutters.offsetWidth,L=t.right-t.left>m;return L&&(t.right=t.left+m),t.left<10?l.scrollLeft=0:t.leftm+b-3&&(l.scrollLeft=t.right+(L?0:10)-m),l}function jn(e,t){t!=null&&(en(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ur(e){en(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function gi(e,t,i){(t!=null||i!=null)&&en(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function xs(e,t){en(e),e.curOp.scrollToPos=t}function en(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Vo(e,t.from),r=Vo(e,t.to);al(e,i,r,t.margin)}}function al(e,t,i,r){var n=qn(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});gi(e,n.scrollLeft,n.scrollTop)}function vi(e,t){Math.abs(e.doc.scrollTop-t)<2||(k||Un(e,{top:t}),sl(e,t,!0),k&&Un(e),yi(e,100))}function sl(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Lr(e,t,i,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,dl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mi(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+Mn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+jt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Tr=function(e,t,i){this.cm=i;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=n.tabIndex=-1,e(r),e(n),le(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),le(n,"scroll",function(){n.clientWidth&&t(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&se<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var n=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+n)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},Tr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Tr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Tr.prototype.zeroWidthHack=function(){var e=De&&!ce?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new he,this.disableVert=new he},Tr.prototype.enableZeroWidthBar=function(e,t,i){e.style.visibility="";function r(){var n=e.getBoundingClientRect(),o=i=="vert"?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Tr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var xi=function(){};xi.prototype.update=function(){return{bottom:0,right:0}},xi.prototype.setScrollLeft=function(){},xi.prototype.setScrollTop=function(){},xi.prototype.clear=function(){};function Gr(e,t){t||(t=mi(e));var i=e.display.barWidth,r=e.display.barHeight;ul(e,t);for(var n=0;n<4&&i!=e.display.barWidth||r!=e.display.barHeight;n++)i!=e.display.barWidth&&e.options.lineWrapping&&Qi(e),ul(e,mi(e)),i=e.display.barWidth,r=e.display.barHeight}function ul(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var fl={native:Tr,null:xi};function cl(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&We(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new fl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),le(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Lr(e,t):vi(e,t)},e),e.display.scrollbars.addClass&&ze(e.display.wrapper,e.display.scrollbars.addClass)}var ys=0;function Dr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ys,markArrays:null},Za(e.curOp)}function Mr(e){var t=e.curOp;t&&Qa(t,function(i){for(var r=0;r=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new tn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ws(e){e.updatedDisplay=e.mustUpdate&&Kn(e.cm,e.update)}function Ss(e){var t=e.cm,i=t.display;e.updatedDisplay&&Qi(t),e.barMeasure=mi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Uo(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+jt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-kr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function Cs(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var i=+new Date+e.options.workTime,r=si(e,t.highlightFrontier),n=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?_t(t.mode,r.state):null,s=yo(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,d=s.classes;d?o.styleClasses=d:u&&(o.styleClasses=null);for(var g=!l||l.length!=o.styles.length||u!=d&&(!u||!d||u.bgClass!=d.bgClass||u.textClass!=d.textClass),b=0;!g&&bi)return yi(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),n.length&&Ct(e,function(){for(var o=0;o=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&il(e)==0)return!1;pl(e)&&(hr(e),t.dims=Hn(e));var n=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(n,t.visible.to+e.options.viewportMargin);i.viewFroml&&i.viewTo-l<20&&(l=Math.min(n,i.viewTo)),Jt&&(o=Cn(e.doc,o),l=Oo(e.doc,l));var a=o!=i.viewFrom||l!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;ds(e,o,l),i.viewOffset=Qt(V(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var s=il(e);if(!a&&s==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var u=Ms(e);return s>4&&(i.lineDiv.style.display="none"),Fs(e,i.updateLineNumbers,t.dims),s>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,As(u),D(i.cursorDiv),D(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,a&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,yi(e,400)),i.updateLineNumbers=null,!0}function hl(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==kr(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Mn(e.display)-An(e),i.top)}),t.visible=Vi(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Vi(e.display,e.doc,i));if(!Kn(e,t))break;Qi(e);var n=mi(e);pi(e),Gr(e,n),Xn(e,n),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Un(e,t){var i=new tn(e,t);if(Kn(e,i)){Qi(e),hl(e,i);var r=mi(e);pi(e),Gr(e,r),Xn(e,r),i.finish()}}function Fs(e,t,i){var r=e.display,n=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(L){var F=L.nextSibling;return ie&&De&&e.display.currentWheelTarget==L?L.style.display="none":L.parentNode.removeChild(L),F}for(var s=r.view,u=r.viewFrom,d=0;d-1&&(m=!1),zo(e,g,u,i)),m&&(D(g.lineNumber),g.lineNumber.appendChild(document.createTextNode(P(e.options,u)))),l=g.node.nextSibling}u+=g.size}for(;l;)l=a(l)}function Gn(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Ve(e,"gutterChanged",e)}function Xn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jt(e)+"px"}function dl(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Wn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,n=t.gutters.offsetWidth,o=r+"px",l=0;l=105&&(n.wrapper.style.clipPath="inset(0px)"),n.wrapper.setAttribute("translate","no"),T&&se<8&&(n.gutters.style.zIndex=-1,n.scroller.style.paddingRight=0),!ie&&!(k&&fe)&&(n.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(n.wrapper):e(n.wrapper)),n.viewFrom=n.viewTo=t.first,n.reportedViewFrom=n.reportedViewTo=t.first,n.view=[],n.renderedView=null,n.externalMeasured=null,n.viewOffset=0,n.lastWrapHeight=n.lastWrapWidth=0,n.updateLineNumbers=null,n.nativeBarWidth=n.barHeight=n.barWidth=0,n.scrollbarsClipped=!1,n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null,n.alignWidgets=!1,n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.maxLine=null,n.maxLineLength=0,n.maxLineChanged=!1,n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null,n.shift=!1,n.selForContextMenu=null,n.activeTouch=null,n.gutterSpecs=Yn(r.gutters,r.lineNumbers),gl(n),i.init(n)}var rn=0,er=null;T?er=-.53:k?er=15:ee?er=-.7:K&&(er=-1/3);function vl(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function Ns(e){var t=vl(e);return t.x*=er,t.y*=er,t}function ml(e,t){ee&&j==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=vl(t),r=i.x,n=i.y,o=er;t.deltaMode===0&&(r=t.deltaX,n=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||n&&u){if(n&&De&&ie){e:for(var d=t.target,g=l.view;d!=a;d=d.parentNode)for(var b=0;b=0&&G(e,r.to())<=0)return i}return-1};var Ae=function(e,t){this.anchor=e,this.head=t};Ae.prototype.from=function(){return zr(this.anchor,this.head)},Ae.prototype.to=function(){return vt(this.anchor,this.head)},Ae.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zt(e,t,i){var r=e&&e.options.selectionsMayTouch,n=t[i];t.sort(function(b,m){return G(b.from(),m.from())}),i=J(t,n);for(var o=1;o0:s>=0){var u=zr(a.from(),l.from()),d=vt(a.to(),l.to()),g=a.empty()?l.from()==l.head:a.from()==a.head;o<=i&&--i,t.splice(--o,2,new Ae(g?d:u,g?u:d))}}return new Mt(t,i)}function dr(e,t){return new Mt([new Ae(e,t||e)],0)}function pr(e){return e.text?S(e.from.line+e.text.length-1,ye(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function xl(e,t){if(G(e,t.from)<0)return e;if(G(e,t.to)<=0)return pr(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=pr(t).ch-t.to.ch),S(i,r)}function $n(e,t){for(var i=[],r=0;r1&&e.remove(a.line+1,L-1),e.insert(a.line+1,B)}Ve(e,"change",e,t)}function gr(e,t,i){function r(n,o,l){if(n.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),ye(e.done)}function Cl(e,t,i,r){var n=e.history;n.undone.length=0;var o=+new Date,l,a;if((n.lastOp==r||n.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&n.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=Hs(n,n.lastOp==r)))a=ye(l.changes),G(t.from,t.to)==0&&G(t.from,a.to)==0?a.to=pr(t):l.changes.push(Qn(e,t));else{var s=ye(n.done);for((!s||!s.ranges)&&on(e.sel,n.done),l={changes:[Qn(e,t)],generation:n.generation},n.done.push(l);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(i),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=o,n.lastOp=n.lastSelOp=r,n.lastOrigin=n.lastSelOrigin=t.origin,a||Re(e,"historyAdded")}function Ws(e,t,i,r){var n=t.charAt(0);return n=="*"||n=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Is(e,t,i,r){var n=e.history,o=r&&r.origin;i==n.lastSelOp||o&&n.lastSelOrigin==o&&(n.lastModTime==n.lastSelTime&&n.lastOrigin==o||Ws(e,o,ye(n.done),t))?n.done[n.done.length-1]=t:on(t,n.done),n.lastSelTime=+new Date,n.lastSelOrigin=o,n.lastSelOp=i,r&&r.clearRedo!==!1&&Sl(n.undone)}function on(e,t){var i=ye(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Ll(e,t,i,r){var n=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((n||(n=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function zs(e){if(!e)return null;for(var t,i=0;i-1&&(ye(a)[g]=u[g],delete u[g])}}return r}function Vn(e,t,i,r){if(r){var n=e.anchor;if(i){var o=G(t,n)<0;o!=G(i,n)<0?(n=t,t=i):o!=G(t,i)<0&&(t=i)}return new Ae(n,t)}else return new Ae(i||t,t)}function ln(e,t,i,r,n){n==null&&(n=e.cm&&(e.cm.display.shift||e.extend)),ft(e,new Mt([Vn(e.sel.primary(),t,i,n)],0),r)}function Dl(e,t,i){for(var r=[],n=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(n&&(Re(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(i){var g=s.find(r<0?1:-1),b=void 0;if((r<0?d:u)&&(g=Ol(e,g,-r,g&&g.line==t.line?o:null)),g&&g.line==t.line&&(b=G(g,i))&&(r<0?b<0:b>0))return Yr(e,g,t,r,n)}var m=s.find(r<0?-1:1);return(r<0?u:d)&&(m=Ol(e,m,r,m.line==t.line?o:null)),m?Yr(e,m,t,r,n):null}}return t}function sn(e,t,i,r,n){var o=r||1,l=Yr(e,t,i,o,n)||!n&&Yr(e,t,i,o,!0)||Yr(e,t,i,-o,n)||!n&&Yr(e,t,i,-o,!0);return l||(e.cantEdit=!0,S(e.first,0))}function Ol(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?me(e,S(t.line-1)):null:i>0&&t.ch==(r||V(e,t.line)).text.length?t.line=0;--n)Wl(e,{from:r[n].from,to:r[n].to,text:n?[""]:t.text,origin:t.origin});else Wl(e,t)}}function Wl(e,t){if(!(t.text.length==1&&t.text[0]==""&&G(t.from,t.to)==0)){var i=$n(e,t);Cl(e,t,i,e.cm?e.cm.curOp.id:NaN),wi(e,t,i,wn(e,t));var r=[];gr(e,function(n,o){!o&&J(r,n.history)==-1&&(Rl(n.history,t),r.push(n.history)),wi(n,t,null,wn(n,t))})}}function un(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!i)){for(var n=e.history,o,l=e.sel,a=t=="undo"?n.done:n.undone,s=t=="undo"?n.undone:n.done,u=0;u=0;--m){var L=b(m);if(L)return L.v}}}}function Il(e,t){if(t!=0&&(e.first+=t,e.sel=new Mt(Ce(e.sel.ranges,function(n){return new Ae(S(n.anchor.line+t,n.anchor.ch),S(n.head.line+t,n.head.ch))}),e.sel.primIndex),e.cm)){mt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:S(o,V(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Zt(e,t.from,t.to),i||(i=$n(e,t)),e.cm?_s(e.cm,t,r):Jn(e,t,r),an(e,i,Ze),e.cantEdit&&sn(e,S(e.firstLine(),0))&&(e.cantEdit=!1)}}function _s(e,t,i){var r=e.doc,n=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=f(Wt(V(r,o.line))),r.iter(s,l.line+1,function(m){if(m==n.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&At(e),Jn(r,t,i,rl(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(m){var L=Ui(m);L>n.maxLineLength&&(n.maxLine=m,n.maxLineLength=L,n.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),Fa(r,o.line),yi(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?mt(e):o.line==l.line&&t.text.length==1&&!bl(e.doc,t)?cr(e,o.line,"text"):mt(e,o.line,l.line+1,u);var d=St(e,"changes"),g=St(e,"change");if(g||d){var b={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};g&&Ve(e,"change",e,b),d&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(b)}e.display.selForContextMenu=null}function Zr(e,t,i,r,n){var o;r||(r=i),G(r,i)<0&&(o=[r,i],i=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),$r(e,{from:i,to:r,text:t,origin:n})}function zl(e,t,i,r){i1||!(this.children[0]instanceof Ci))){var a=[];this.collapse(a),this.children=[new Ci(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=n.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=d,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&mt(e,r,n+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&El(e.doc)),e&&Ve(e,"markerCleared",e,this,r,n),t&&Mr(e),this.parent&&this.parent.clear()}},vr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,n=0;n0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=U("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(No(e,t.line,t,i,o)||t.line!=i.line&&No(e,i.line,t,i,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Na()}o.addToHistory&&Cl(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,i.line+1,function(g){s&&o.collapsed&&!s.options.lineWrapping&&Wt(g)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Dt(g,0),Pa(g,new _i(o,a==t.line?t.ch:null,a==i.line?i.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,i.line+1,function(g){fr(e,g)&&Dt(g,0)}),o.clearOnEnter&&le(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Ea(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ql,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)mt(s,t.line,i.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var d=t.line;d<=i.line;d++)cr(s,d,"text");o.atomic&&El(s.doc),Ve(s,"markerAdded",s,o)}return o}var Di=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;s--)$r(this,r[s]);a?Al(this,a):this.cm&&Ur(this.cm)}),undo:tt(function(){un(this,"undo")}),redo:tt(function(){un(this,"redo")}),undoSelection:tt(function(){un(this,"undo",!0)}),redoSelection:tt(function(){un(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r=e.ch)&&t.push(n.marker.parent||n.marker)}return t},findMarks:function(e,t,i){e=me(this,e),t=me(this,t);var r=[],n=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||s.from==null&&n!=e.line||s.from!=null&&n==t.line&&s.from>=t.ch)&&(!i||i(s.marker))&&r.push(s.marker.parent||s.marker)}++n}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;re)return t=e,!0;e-=o,++i}),me(this,S(i,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var d=e.dataTransfer.getData("Text");if(d){var g;if(t.state.draggingText&&!t.state.draggingText.copy&&(g=t.listSelections()),an(t.doc,dr(i,i)),g)for(var b=0;b=0;a--)Zr(e.doc,"",r[a].from,r[a].to,"+delete");Ur(e)})}function to(e,t,i){var r=ir(e.text,t+i,i);return r<0||r>e.text.length?null:r}function ro(e,t,i){var r=to(e,t.ch,i);return r==null?null:new S(t.line,r,i<0?"after":"before")}function io(e,t,i,r,n){if(e){t.doc.direction=="rtl"&&(n=-n);var o=Se(i,t.doc.direction);if(o){var l=n<0?ye(o):o[0],a=n<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var d=_r(t,i);u=n<0?i.text.length-1:0;var g=Kt(t,d,u).top;u=Rt(function(b){return Kt(t,d,b).top==g},n<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=to(i,u,1))}else u=n<0?l.to:l.from;return new S(r,u,s)}}return new S(r,n<0?i.text.length:0,n<0?"before":"after")}function tu(e,t,i,r){var n=Se(t,e.doc.direction);if(!n)return ro(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var o=or(n,i.ch,i.sticky),l=n[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>i.ch:l.from=l.from&&b>=d.begin)){var m=g?"before":"after";return new S(i.line,b,m)}}var L=function(B,X,R){for(var $=function(Ne,rt){return rt?new S(i.line,a(Ne,1),"before"):new S(i.line,Ne,"after")};B>=0&&B0==(ae.level!=1),be=ne?R.begin:a(R.end,-1);if(ae.from<=be&&be0?d.end:a(d.begin,-1);return H!=null&&!(r>0&&H==t.text.length)&&(F=L(r>0?0:n.length-1,r,u(H)),F)?F:null}var Fi={selectAll:Pl,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ze)},killLine:function(e){return Vr(e,function(t){if(t.empty()){var i=V(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)n=new S(n.line,n.ch+1),e.replaceRange(o.charAt(n.ch-1)+o.charAt(n.ch-2),S(n.line,n.ch-2),n,"+transpose");else if(n.line>e.doc.first){var l=V(e.doc,n.line-1).text;l&&(n=new S(n.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),S(n.line-1,l.length-1),n,"+transpose"))}}i.push(new Ae(n,n))}e.setSelections(i)})},newlineAndIndent:function(e){return Ct(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;re&&G(t,this.pos)==0&&i==this.button};var Ni,Oi;function su(e,t){var i=+new Date;return Oi&&Oi.compare(i,e,t)?(Ni=Oi=null,"triple"):Ni&&Ni.compare(i,e,t)?(Oi=new oo(i,e,t),Ni=null,"double"):(Ni=new oo(i,e,t),Oi=null,"single")}function na(e){var t=this,i=t.display;if(!(_e(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,Vt(i,e)){ie||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!lo(t,e)){var r=Sr(t,e),n=Nt(e),o=r?su(r,n):"single";z(t).focus(),n==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&uu(t,n,r,o,e))&&(n==1?r?cu(t,r,o,e):ni(e)==i.scroller&&ut(e):n==2?(r&&ln(t.doc,r),setTimeout(function(){return i.input.focus()},20)):n==3&&(pe?t.display.input.onContextMenu(e):Rn(t)))}}}function uu(e,t,i,r,n){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Ei(e,$l(o,n),n,function(l){if(typeof l=="string"&&(l=Fi[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,i)!=Oe}finally{e.state.suppressEdits=!1}return a})}function fu(e,t,i){var r=e.getOption("configureMouse"),n=r?r(e,t,i):{};if(n.unit==null){var o=Ge?i.shiftKey&&i.metaKey:i.altKey;n.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(n.extend==null||e.doc.extend)&&(n.extend=e.doc.extend||i.shiftKey),n.addNew==null&&(n.addNew=De?i.metaKey:i.ctrlKey),n.moveOnDrag==null&&(n.moveOnDrag=!(De?i.altKey:i.ctrlKey)),n}function cu(e,t,i,r){T?setTimeout(re(ol,e),0):e.curOp.focus=Te(Z(e));var n=fu(e,i,r),o=e.doc.sel,l;e.options.dragDrop&&xn&&!e.isReadOnly()&&i=="single"&&(l=o.contains(t))>-1&&(G((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(G(l.to(),t)>0||t.xRel<0)?hu(e,r,t,n):du(e,r,t,n)}function hu(e,t,i,r){var n=e.display,o=!1,l=et(e,function(u){ie&&(n.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Rn(e)),st(n.wrapper.ownerDocument,"mouseup",l),st(n.wrapper.ownerDocument,"mousemove",a),st(n.scroller,"dragstart",s),st(n.scroller,"drop",l),o||(ut(u),r.addNew||ln(e.doc,i,null,null,r.extend),ie&&!K||T&&se==9?setTimeout(function(){n.wrapper.ownerDocument.body.focus({preventScroll:!0}),n.input.focus()},20):n.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};ie&&(n.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,le(n.wrapper.ownerDocument,"mouseup",l),le(n.wrapper.ownerDocument,"mousemove",a),le(n.scroller,"dragstart",s),le(n.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return n.input.focus()},20),n.scroller.dragDrop&&n.scroller.dragDrop()}function oa(e,t,i){if(i=="char")return new Ae(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Ae(S(t.line,0),me(e.doc,S(t.line+1,0)));var r=i(e,t);return new Ae(r.from,r.to)}function du(e,t,i,r){T&&Rn(e);var n=e.display,o=e.doc;ut(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(i),a>-1?l=u[a]:l=new Ae(i,i)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new Ae(i,i)),i=Sr(e,t,!0,!0),a=-1;else{var d=oa(e,i,r.unit);r.extend?l=Vn(l,d.anchor,d.head,r.extend):l=d}r.addNew?a==-1?(a=u.length,ft(o,zt(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(ft(o,zt(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):eo(o,a,l,pt):(a=0,ft(o,new Mt([l],0),pt),s=o.sel);var g=i;function b(R){if(G(g,R)!=0)if(g=R,r.unit=="rectangle"){for(var $=[],ae=e.options.tabSize,ne=xe(V(o,i.line).text,i.ch,ae),be=xe(V(o,R.line).text,R.ch,ae),Ne=Math.min(ne,be),rt=Math.max(ne,be),Be=Math.min(i.line,R.line),Lt=Math.min(e.lastLine(),Math.max(i.line,R.line));Be<=Lt;Be++){var yt=V(o,Be).text,Ye=Ee(yt,Ne,ae);Ne==rt?$.push(new Ae(S(Be,Ye),S(Be,Ye))):yt.length>Ye&&$.push(new Ae(S(Be,Ye),S(Be,Ee(yt,rt,ae))))}$.length||$.push(new Ae(i,i)),ft(o,zt(e,s.ranges.slice(0,a).concat($),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(R)}else{var bt=l,lt=oa(e,R,r.unit),Je=bt.anchor,$e;G(lt.anchor,Je)>0?($e=lt.head,Je=zr(bt.from(),lt.anchor)):($e=lt.anchor,Je=vt(bt.to(),lt.head));var je=s.ranges.slice(0);je[a]=pu(e,new Ae(me(o,Je),$e)),ft(o,zt(e,je,a),pt)}}var m=n.wrapper.getBoundingClientRect(),L=0;function F(R){var $=++L,ae=Sr(e,R,!0,r.unit=="rectangle");if(ae)if(G(ae,g)!=0){e.curOp.focus=Te(Z(e)),b(ae);var ne=Vi(n,o);(ae.line>=ne.to||ae.linem.bottom?20:0;be&&setTimeout(et(e,function(){L==$&&(n.scroller.scrollTop+=be,F(R))}),50)}}function H(R){e.state.selectingText=!1,L=1/0,R&&(ut(R),n.input.focus()),st(n.wrapper.ownerDocument,"mousemove",B),st(n.wrapper.ownerDocument,"mouseup",X),o.history.lastSelOrigin=null}var B=et(e,function(R){R.buttons===0||!Nt(R)?H(R):F(R)}),X=et(e,H);e.state.selectingText=X,le(n.wrapper.ownerDocument,"mousemove",B),le(n.wrapper.ownerDocument,"mouseup",X)}function pu(e,t){var i=t.anchor,r=t.head,n=V(e.doc,i.line);if(G(i,r)==0&&i.sticky==r.sticky)return t;var o=Se(n);if(!o)return t;var l=or(o,i.ch,i.sticky),a=o[l];if(a.from!=i.ch&&a.to!=i.ch)return t;var s=l+(a.from==i.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=i.line)u=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var d=or(o,r.ch,r.sticky),g=d-l||(r.ch-i.ch)*(a.level==1?-1:1);d==s-1||d==s?u=g<0:u=g>0}var b=o[s+(u?-1:0)],m=u==(b.level==1),L=m?b.from:b.to,F=m?"after":"before";return i.ch==L&&i.sticky==F?t:new Ae(new S(i.line,L,F),r)}function la(e,t,i,r){var n,o;if(t.touches)n=t.touches[0].clientX,o=t.touches[0].clientY;else try{n=t.clientX,o=t.clientY}catch{return!1}if(n>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ut(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!St(e,i))return gt(t);o-=a.top-l.viewOffset;for(var s=0;s=n){var d=p(e.doc,o),g=e.display.gutterSpecs[s];return Re(e,i,e,d,g.className,t),gt(t)}}}function lo(e,t){return la(e,t,"gutterClick",!0)}function aa(e,t){Vt(e.display,t)||gu(e,t)||_e(e,t,"contextmenu")||pe||e.display.input.onContextMenu(t)}function gu(e,t){return St(e,"gutterContextMenu")?la(e,t,"gutterContextMenu",!1):!1}function sa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),di(e)}var ei={toString:function(){return"CodeMirror.Init"}},ua={},dn={};function vu(e){var t=e.optionHandlers;function i(r,n,o,l){e.defaults[r]=n,o&&(t[r]=l?function(a,s,u){u!=ei&&o(a,s,u)}:o)}e.defineOption=i,e.Init=ei,i("value","",function(r,n){return r.setValue(n)},!0),i("mode",null,function(r,n){r.doc.modeOption=n,Zn(r)},!0),i("indentUnit",2,Zn,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){ki(r),di(r),mt(r)},!0),i("lineSeparator",null,function(r,n){if(r.doc.lineSep=n,!!n){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var d=s.text.indexOf(n,u);if(d==-1)break;u=d+n.length,o.push(S(l,d))}l++});for(var a=o.length-1;a>=0;a--)Zr(r.doc,n,o[a],S(o[a].line,o[a].ch+n.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,n,o){r.state.specialChars=new RegExp(n.source+(n.test(" ")?"":"| "),"g"),o!=ei&&r.refresh()}),i("specialCharPlaceholder",Ua,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",fe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,n){return r.getInputField().spellcheck=n},!0),i("autocorrect",!1,function(r,n){return r.getInputField().autocorrect=n},!0),i("autocapitalize",!1,function(r,n){return r.getInputField().autocapitalize=n},!0),i("rtlMoveVisually",!nt),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){sa(r),bi(r)},!0),i("keyMap","default",function(r,n,o){var l=cn(n),a=o!=ei&&cn(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,xu,!0),i("gutters",[],function(r,n){r.display.gutterSpecs=Yn(n,r.options.lineNumbers),bi(r)},!0),i("fixedGutter",!0,function(r,n){r.display.gutters.style.left=n?Wn(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return Gr(r)},!0),i("scrollbarStyle","native",function(r){cl(r),Gr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,n){r.display.gutterSpecs=Yn(r.options.gutters,n),bi(r)},!0),i("firstLineNumber",1,bi,!0),i("lineNumberFormatter",function(r){return r},bi,!0),i("showCursorWhenSelecting",!1,pi,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,n){n=="nocursor"&&(Kr(r),r.display.input.blur()),r.display.input.readOnlyChanged(n)}),i("screenReaderLabel",null,function(r,n){n=n===""?null:n,r.display.input.screenReaderLabelChanged(n)}),i("disableInput",!1,function(r,n){n||r.display.input.reset()},!0),i("dragDrop",!0,mu),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,pi,!0),i("singleCursorHeightPerLine",!0,pi,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,ki,!0),i("addModeClass",!1,ki,!0),i("pollInterval",100),i("undoDepth",200,function(r,n){return r.doc.history.undoDepth=n}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,ki,!0),i("moveInputWithCursor",!0,function(r,n){n||r.display.input.resetPosition()}),i("tabindex",null,function(r,n){return r.display.input.getField().tabIndex=n||""}),i("autofocus",null),i("direction","ltr",function(r,n){return r.doc.setDirection(n)},!0),i("phrases",null)}function mu(e,t,i){var r=i&&i!=ei;if(!t!=!r){var n=e.display.dragFunctions,o=t?le:st;o(e.display.scroller,"dragstart",n.start),o(e.display.scroller,"dragenter",n.enter),o(e.display.scroller,"dragover",n.over),o(e.display.scroller,"dragleave",n.leave),o(e.display.scroller,"drop",n.drop)}}function xu(e){e.options.lineWrapping?(ze(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(We(e.display.wrapper,"CodeMirror-wrap"),Tn(e)),In(e),mt(e),di(e),setTimeout(function(){return Gr(e)},100)}function Ie(e,t){var i=this;if(!(this instanceof Ie))return new Ie(e,t);this.options=t=t?ge(t):{},ge(ua,t,!1);var r=t.value;typeof r=="string"?r=new xt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var n=new Ie.inputStyles[t.inputStyle](this),o=this.display=new Es(e,r,n,t);o.wrapper.CodeMirror=this,sa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),cl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new he,keySeq:null,specialChars:null},t.autofocus&&!fe&&o.input.focus(),T&&se<11&&setTimeout(function(){return i.display.input.reset(!0)},20),yu(this),Zs(),Dr(this),this.curOp.forceUpdate=!0,kl(this,r),t.autofocus&&!fe||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&_n(i)},20):Kr(this);for(var l in dn)dn.hasOwnProperty(l)&&dn[l](this,t[l],ei);pl(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}le(t.scroller,"touchstart",function(s){if(!_e(e,s)&&!o(s)&&!lo(e,s)){t.input.ensurePolled(),clearTimeout(i);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),le(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),le(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Vt(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var d=e.coordsChar(t.activeTouch,"page"),g;!u.prev||l(u,u.prev)?g=new Ae(d,d):!u.prev.prev||l(u,u.prev.prev)?g=e.findWordAt(d):g=new Ae(S(d.line,0),me(e.doc,S(d.line+1,0))),e.setSelection(g.anchor,g.head),e.focus(),ut(s)}n()}),le(t.scroller,"touchcancel",n),le(t.scroller,"scroll",function(){t.scroller.clientHeight&&(vi(e,t.scroller.scrollTop),Lr(e,t.scroller.scrollLeft,!0),Re(e,"scroll",e))}),le(t.scroller,"mousewheel",function(s){return ml(e,s)}),le(t.scroller,"DOMMouseScroll",function(s){return ml(e,s)}),le(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){_e(e,s)||lr(s)},over:function(s){_e(e,s)||($s(e,s),lr(s))},start:function(s){return Ys(e,s)},drop:et(e,Xs),leave:function(s){_e(e,s)||Ul(e)}};var a=t.input.getField();le(a,"keyup",function(s){return ra.call(e,s)}),le(a,"keydown",et(e,ta)),le(a,"keypress",et(e,ia)),le(a,"focus",function(s){return _n(e,s)}),le(a,"blur",function(s){return Kr(e,s)})}var ao=[];Ie.defineInitHook=function(e){return ao.push(e)};function Pi(e,t,i,r){var n=e.doc,o;i==null&&(i="add"),i=="smart"&&(n.mode.indent?o=si(e,t).state:i="prev");var l=e.options.tabSize,a=V(n,t),s=xe(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],d;if(!r&&!/\S/.test(a.text))d=0,i="not";else if(i=="smart"&&(d=n.mode.indent(o,a.text.slice(u.length),a.text),d==Oe||d>150)){if(!r)return;i="prev"}i=="prev"?t>n.first?d=xe(V(n,t-1).text,null,l):d=0:i=="add"?d=s+e.options.indentUnit:i=="subtract"?d=s-e.options.indentUnit:typeof i=="number"&&(d=s+i),d=Math.max(0,d);var g="",b=0;if(e.options.indentWithTabs)for(var m=Math.floor(d/l);m;--m)b+=l,g+=" ";if(bl,s=Ft(t),u=null;if(a&&r.ranges.length>1)if(Bt&&Bt.text.join(` `)==t){if(r.ranges.length%Bt.text.length==0){u=[];for(var d=0;d=0;b--){var m=r.ranges[b],L=m.from(),F=m.to();m.empty()&&(i&&i>0?L=S(L.line,L.ch-i):e.state.overwrite&&!a?F=S(F.line,Math.min(V(o,F.line).text.length,F.ch+ye(s).length)):a&&Bt&&Bt.lineWise&&Bt.text.join(` `)==s.join(` -`)&&(L=F=S(L.line,0)));var H={from:L,to:F,text:u?u[b%u.length]:s,origin:n||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};$r(e.doc,H),Ve(e,"inputRead",e,H)}t&&!a&&fa(e,t),Ur(e),e.curOp.updateInput<2&&(e.curOp.updateInput=g),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ua(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Ct(t,function(){return so(t,i,0,null,"paste")}),!0}function fa(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var n=i.ranges[r];if(!(n.head.ch>100||r&&i.ranges[r-1].head.line==n.head.line)){var o=e.getModeAt(n.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=Pi(e,n.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(V(e.doc,n.head.line).text.slice(0,n.head.ch))&&(l=Pi(e,n.head.line,"smart"));l&&Ve(e,"electricInput",e,n.head.line)}}}function ca(e){for(var t=[],i=[],r=0;ro&&(Pi(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&Ur(this));else{var s=a.from(),u=a.to(),d=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var g=d;g0&&eo(this.doc,l,new Ae(s,b[l].to()),Ze)}}}),getTokenAt:function(r,n){return wo(this,r,n)},getLineTokens:function(r,n){return wo(this,S(r),n,!0)},getTokenTypeAt:function(r){r=me(this.doc,r);var n=yo(this,V(this.doc,r.line)),o=0,l=(n.length-1)/2,a=r.ch,s;if(a==0)s=n[2];else for(;;){var u=o+l>>1;if((u?n[u*2-1]:0)>=a)l=u;else if(n[u*2+1]s&&(r=s,l=!0),a=V(this.doc,r)}else a=r;return Yi(this,a,{top:0,left:0},n||"page",o||l).top+(l?this.doc.height-Qt(a):0)},defaultTextHeight:function(){return qr(this.display)},defaultCharWidth:function(){return jr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,n,o,l,a){var s=this.display;r=It(this,me(this.doc,r));var u=r.bottom,d=r.left;if(n.style.position="absolute",n.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(n),s.sizer.appendChild(n),l=="over")u=r.top;else if(l=="above"||l=="near"){var g=Math.max(s.wrapper.clientHeight,this.doc.height),b=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+n.offsetHeight>g)&&r.top>n.offsetHeight?u=r.top-n.offsetHeight:r.bottom+n.offsetHeight<=g&&(u=r.bottom),d+n.offsetWidth>b&&(d=b-n.offsetWidth)}n.style.top=u+"px",n.style.left=n.style.right="",a=="right"?(d=s.sizer.clientWidth-n.offsetWidth,n.style.right="0px"):(a=="left"?d=0:a=="middle"&&(d=(s.sizer.clientWidth-n.offsetWidth)/2),n.style.left=d+"px"),o&&ds(this,{left:d,top:u,right:d+n.offsetWidth,bottom:u+n.offsetHeight})},triggerOnKeyDown:ht(ea),triggerOnKeyPress:ht(ra),triggerOnKeyUp:ta,triggerOnMouseDown:ht(ia),execCommand:function(r){if(Fi.hasOwnProperty(r))return Fi[r].call(null,this)},triggerElectric:ht(function(r){fa(this,r)}),findPosH:function(r,n,o,l){var a=1;n<0&&(a=-1,n=-n);for(var s=me(this.doc,r),u=0;u0&&d(o.charAt(l-1));)--l;for(;a.5||this.options.lineWrapping)&&In(this),Re(this,"refresh",this)}),swapDoc:ht(function(r){var n=this.doc;return n.cm=null,this.state.selectingText&&this.state.selectingText(),bl(this,r),di(this),this.display.input.reset(),gi(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Ve(this,"swapDoc",this,n),n}),phrase:function(r){var n=this.options.phrases;return n&&Object.prototype.hasOwnProperty.call(n,r)?n[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Et(e),e.registerHelper=function(r,n,o){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][n]=o},e.registerGlobalHelper=function(r,n,o,l){e.registerHelper(r,n,l),i[r]._global.push({pred:o,val:l})}}function fo(e,t,i,r,n){var o=t,l=i,a=V(e,t.line),s=n&&e.direction=="rtl"?-i:i;function u(){var X=t.line+s;return X=e.first+e.size?!1:(t=new S(X,t.ch,t.sticky),a=V(e,X))}function d(X){var R;if(r=="codepoint"){var $=a.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN($))R=null;else{var ae=i>0?$>=55296&&$<56320:$>=56320&&$<57343;R=new S(t.line,Math.max(0,Math.min(a.text.length,t.ch+i*(ae?2:1))),-i)}}else n?R=Js(e.cm,a,t,i):R=ro(a,t,i);if(R==null)if(!X&&u())t=io(n,e.cm,a,t.line,s);else return!1;else t=R;return!0}if(r=="char"||r=="codepoint")d();else if(r=="column")d(!0);else if(r=="word"||r=="group")for(var g=null,b=r=="group",m=e.cm&&e.cm.getHelper(t,"wordChars"),L=!0;!(i<0&&!d(!L));L=!1){var F=a.text.charAt(t.ch)||` +`)&&(L=F=S(L.line,0)));var H={from:L,to:F,text:u?u[b%u.length]:s,origin:n||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};$r(e.doc,H),Ve(e,"inputRead",e,H)}t&&!a&&ca(e,t),Ur(e),e.curOp.updateInput<2&&(e.curOp.updateInput=g),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function fa(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Ct(t,function(){return so(t,i,0,null,"paste")}),!0}function ca(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var n=i.ranges[r];if(!(n.head.ch>100||r&&i.ranges[r-1].head.line==n.head.line)){var o=e.getModeAt(n.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=Pi(e,n.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(V(e.doc,n.head.line).text.slice(0,n.head.ch))&&(l=Pi(e,n.head.line,"smart"));l&&Ve(e,"electricInput",e,n.head.line)}}}function ha(e){for(var t=[],i=[],r=0;ro&&(Pi(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&Ur(this));else{var s=a.from(),u=a.to(),d=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var g=d;g0&&eo(this.doc,l,new Ae(s,b[l].to()),Ze)}}}),getTokenAt:function(r,n){return So(this,r,n)},getLineTokens:function(r,n){return So(this,S(r),n,!0)},getTokenTypeAt:function(r){r=me(this.doc,r);var n=bo(this,V(this.doc,r.line)),o=0,l=(n.length-1)/2,a=r.ch,s;if(a==0)s=n[2];else for(;;){var u=o+l>>1;if((u?n[u*2-1]:0)>=a)l=u;else if(n[u*2+1]s&&(r=s,l=!0),a=V(this.doc,r)}else a=r;return Yi(this,a,{top:0,left:0},n||"page",o||l).top+(l?this.doc.height-Qt(a):0)},defaultTextHeight:function(){return qr(this.display)},defaultCharWidth:function(){return jr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,n,o,l,a){var s=this.display;r=It(this,me(this.doc,r));var u=r.bottom,d=r.left;if(n.style.position="absolute",n.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(n),s.sizer.appendChild(n),l=="over")u=r.top;else if(l=="above"||l=="near"){var g=Math.max(s.wrapper.clientHeight,this.doc.height),b=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+n.offsetHeight>g)&&r.top>n.offsetHeight?u=r.top-n.offsetHeight:r.bottom+n.offsetHeight<=g&&(u=r.bottom),d+n.offsetWidth>b&&(d=b-n.offsetWidth)}n.style.top=u+"px",n.style.left=n.style.right="",a=="right"?(d=s.sizer.clientWidth-n.offsetWidth,n.style.right="0px"):(a=="left"?d=0:a=="middle"&&(d=(s.sizer.clientWidth-n.offsetWidth)/2),n.style.left=d+"px"),o&&ms(this,{left:d,top:u,right:d+n.offsetWidth,bottom:u+n.offsetHeight})},triggerOnKeyDown:ht(ta),triggerOnKeyPress:ht(ia),triggerOnKeyUp:ra,triggerOnMouseDown:ht(na),execCommand:function(r){if(Fi.hasOwnProperty(r))return Fi[r].call(null,this)},triggerElectric:ht(function(r){ca(this,r)}),findPosH:function(r,n,o,l){var a=1;n<0&&(a=-1,n=-n);for(var s=me(this.doc,r),u=0;u0&&d(o.charAt(l-1));)--l;for(;a.5||this.options.lineWrapping)&&In(this),Re(this,"refresh",this)}),swapDoc:ht(function(r){var n=this.doc;return n.cm=null,this.state.selectingText&&this.state.selectingText(),kl(this,r),di(this),this.display.input.reset(),gi(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Ve(this,"swapDoc",this,n),n}),phrase:function(r){var n=this.options.phrases;return n&&Object.prototype.hasOwnProperty.call(n,r)?n[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Et(e),e.registerHelper=function(r,n,o){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][n]=o},e.registerGlobalHelper=function(r,n,o,l){e.registerHelper(r,n,l),i[r]._global.push({pred:o,val:l})}}function fo(e,t,i,r,n){var o=t,l=i,a=V(e,t.line),s=n&&e.direction=="rtl"?-i:i;function u(){var X=t.line+s;return X=e.first+e.size?!1:(t=new S(X,t.ch,t.sticky),a=V(e,X))}function d(X){var R;if(r=="codepoint"){var $=a.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN($))R=null;else{var ae=i>0?$>=55296&&$<56320:$>=56320&&$<57343;R=new S(t.line,Math.max(0,Math.min(a.text.length,t.ch+i*(ae?2:1))),-i)}}else n?R=tu(e.cm,a,t,i):R=ro(a,t,i);if(R==null)if(!X&&u())t=io(n,e.cm,a,t.line,s);else return!1;else t=R;return!0}if(r=="char"||r=="codepoint")d();else if(r=="column")d(!0);else if(r=="word"||r=="group")for(var g=null,b=r=="group",m=e.cm&&e.cm.getHelper(t,"wordChars"),L=!0;!(i<0&&!d(!L));L=!1){var F=a.text.charAt(t.ch)||` `,H=Xt(F,m)?"w":b&&F==` -`?"n":!b||/\s/.test(F)?null:"p";if(b&&!L&&!H&&(H="s"),g&&g!=H){i<0&&(i=1,d(),t.sticky="after");break}if(H&&(g=H),i>0&&!d(!L))break}var B=sn(e,t,o,l,!0);return Me(o,B)&&(B.hitSide=!0),B}function da(e,t,i,r){var n=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,z(e).innerHeight||n(e).documentElement.clientHeight),s=Math.max(a-.5*qr(e.display),3);l=(i>0?t.bottom:t.top)+i*s}else r=="line"&&(l=i>0?t.bottom+3:t.top-3);for(var u;u=On(e,o,l),!!u.outside;){if(i<0?l<=0:l>=n.height){u.hitSide=!0;break}l+=i*5}return u}var Fe=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new he,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Fe.prototype.init=function(e){var t=this,i=this,r=i.cm,n=i.div=e.lineDiv;n.contentEditable=!0,uo(n,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==n)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}le(n,"paste",function(a){!o(a)||_e(r,a)||ua(a,r)||se<=11&&setTimeout(et(r,function(){return t.updateFromDOM()}),20)}),le(n,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),le(n,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),le(n,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),le(n,"touchstart",function(){return i.forceCompositionEnd()}),le(n,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||_e(r,a))){if(r.somethingSelected())pn({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=ca(r);pn({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Ze),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Bt.text.join(` -`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var d=ha(),g=d.firstChild;uo(g),r.display.lineSpace.insertBefore(d,r.display.lineSpace.firstChild),g.value=Bt.text.join(` -`);var b=Te(de(n));v(g),setTimeout(function(){r.display.lineSpace.removeChild(d),b.focus(),b==n&&i.showPrimarySelection()},50)}}le(n,"copy",l),le(n,"cut",l)},Fe.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Fe.prototype.prepareSelection=function(){var e=il(this.cm,!1);return e.focus=Te(de(this.div))==this.div,e},Fe.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Fe.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fe.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),n=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||n.line=t.display.viewFrom&&pa(t,r)||{node:a[0].measure.map[2],offset:0},u=n.linee.firstLine()&&(r=S(r.line-1,V(e.doc,r.line-1).length)),n.ch==V(e.doc,n.line).text.length&&n.linet.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=Cr(e,r.line))==0?(l=f(t.view[0].line),a=t.view[0].node):(l=f(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Cr(e,n.line),u,d;if(s==t.view.length-1?(u=t.viewTo-1,d=t.lineDiv.lastChild):(u=f(t.view[s+1].line)-1,d=t.view[s+1].node.previousSibling),!a)return!1;for(var g=e.doc.splitLines(xu(e,a,d,l,u)),b=Zt(e.doc,S(l,0),S(u,V(e.doc,u).text.length));g.length>1&&b.length>1;)if(ye(g)==ye(b))g.pop(),b.pop(),u--;else if(g[0]==b[0])g.shift(),b.shift(),l++;else break;for(var m=0,L=0,F=g[0],H=b[0],B=Math.min(F.length,H.length);mr.ch&&X.charCodeAt(X.length-L-1)==R.charCodeAt(R.length-L-1);)m--,L++;g[g.length-1]=X.slice(0,X.length-L).replace(/^\u200b+/,""),g[0]=g[0].slice(m).replace(/\u200b+$/,"");var ae=S(l,m),ne=S(u,b.length?ye(b).length-L:0);if(g.length>1||g[0]||G(ae,ne))return Zr(e.doc,g,ae,ne,"+input"),!0},Fe.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fe.prototype.reset=function(){this.forceCompositionEnd()},Fe.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fe.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Fe.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ct(this.cm,function(){return mt(e.cm)})},Fe.prototype.setUneditable=function(e){e.contentEditable="false"},Fe.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||et(this.cm,so)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Fe.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Fe.prototype.onContextMenu=function(){},Fe.prototype.resetPosition=function(){},Fe.prototype.needsContentAttribute=!0;function pa(e,t){var i=Fn(e,t.line);if(!i||i.hidden)return null;var r=V(e.doc,t.line),n=jo(i,r,t.line),o=Se(r,e.doc.direction),l="left";if(o){var a=or(o,t.ch);l=a%2?"right":"left"}var s=Go(n.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function mu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ti(e,t){return t&&(e.bad=!0),e}function xu(e,t,i,r,n){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(m){return function(L){return L.id==m}}function d(){l&&(o+=a,s&&(o+=a),l=s=!1)}function g(m){m&&(d(),o+=m)}function b(m){if(m.nodeType==1){var L=m.getAttribute("cm-text");if(L){g(L);return}var F=m.getAttribute("cm-marker"),H;if(F){var B=e.findMarks(S(r,0),S(n+1,0),u(+F));B.length&&(H=B[0].find(0))&&g(Zt(e.doc,H.from,H.to).join(a));return}if(m.getAttribute("contenteditable")=="false")return;var X=/^(pre|div|p|li|table|br)$/i.test(m.nodeName);if(!/^br$/i.test(m.nodeName)&&m.textContent.length==0)return;X&&d();for(var R=0;R=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),le(n,"paste",function(l){_e(r,l)||ua(l,r)||(r.state.pasteIncoming=+new Date,i.fastPoll())});function o(l){if(!_e(r,l)){if(r.somethingSelected())pn({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=ca(r);pn({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,Ze):(i.prevInput="",n.value=a.text.join(` -`),v(n))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}le(n,"cut",o),le(n,"copy",o),le(e.scroller,"paste",function(l){if(!(Vt(e,l)||_e(r,l))){if(!n.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,n.dispatchEvent(a)}}),le(e.lineSpace,"selectstart",function(l){Vt(e,l)||ut(l)}),le(n,"compositionstart",function(){var l=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),le(n,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Ue.prototype.createField=function(e){this.wrapper=ha(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;uo(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ue.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ue.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=il(e);if(e.options.moveInputWithCursor){var n=It(e,i.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,n.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,n.left+l.left-o.left))}return r},Ue.prototype.showSelection=function(e){var t=this.cm,i=t.display;Y(i.cursorDiv,e.cursors),Y(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ue.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&v(this.textarea),T&&se>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",T&&se>=9&&(this.hasSelection=null));this.resetting=!1}},Ue.prototype.getField=function(){return this.textarea},Ue.prototype.supportsTouch=function(){return!1},Ue.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!fe||Te(de(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ue.prototype.blur=function(){this.textarea.blur()},Ue.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ue.prototype.receivedFocus=function(){this.slowPoll()},Ue.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ue.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Ue.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||sr(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var n=i.value;if(n==r&&!t.somethingSelected())return!1;if(T&&se>=9&&this.hasSelection===n||De&&/[\uf700-\uf7ff]/.test(n))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=n.charCodeAt(0);if(o==8203&&!r&&(r="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,n.length);l1e3||n.indexOf(` +`?"n":!b||/\s/.test(F)?null:"p";if(b&&!L&&!H&&(H="s"),g&&g!=H){i<0&&(i=1,d(),t.sticky="after");break}if(H&&(g=H),i>0&&!d(!L))break}var B=sn(e,t,o,l,!0);return Me(o,B)&&(B.hitSide=!0),B}function pa(e,t,i,r){var n=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,z(e).innerHeight||n(e).documentElement.clientHeight),s=Math.max(a-.5*qr(e.display),3);l=(i>0?t.bottom:t.top)+i*s}else r=="line"&&(l=i>0?t.bottom+3:t.top-3);for(var u;u=On(e,o,l),!!u.outside;){if(i<0?l<=0:l>=n.height){u.hitSide=!0;break}l+=i*5}return u}var Fe=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new he,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Fe.prototype.init=function(e){var t=this,i=this,r=i.cm,n=i.div=e.lineDiv;n.contentEditable=!0,uo(n,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==n)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}le(n,"paste",function(a){!o(a)||_e(r,a)||fa(a,r)||se<=11&&setTimeout(et(r,function(){return t.updateFromDOM()}),20)}),le(n,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),le(n,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),le(n,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),le(n,"touchstart",function(){return i.forceCompositionEnd()}),le(n,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||_e(r,a))){if(r.somethingSelected())pn({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=ha(r);pn({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Ze),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Bt.text.join(` +`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var d=da(),g=d.firstChild;uo(g),r.display.lineSpace.insertBefore(d,r.display.lineSpace.firstChild),g.value=Bt.text.join(` +`);var b=Te(de(n));v(g),setTimeout(function(){r.display.lineSpace.removeChild(d),b.focus(),b==n&&i.showPrimarySelection()},50)}}le(n,"copy",l),le(n,"cut",l)},Fe.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Fe.prototype.prepareSelection=function(){var e=nl(this.cm,!1);return e.focus=Te(de(this.div))==this.div,e},Fe.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Fe.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fe.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),n=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||n.line=t.display.viewFrom&&ga(t,r)||{node:a[0].measure.map[2],offset:0},u=n.linee.firstLine()&&(r=S(r.line-1,V(e.doc,r.line-1).length)),n.ch==V(e.doc,n.line).text.length&&n.linet.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=Cr(e,r.line))==0?(l=f(t.view[0].line),a=t.view[0].node):(l=f(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Cr(e,n.line),u,d;if(s==t.view.length-1?(u=t.viewTo-1,d=t.lineDiv.lastChild):(u=f(t.view[s+1].line)-1,d=t.view[s+1].node.previousSibling),!a)return!1;for(var g=e.doc.splitLines(wu(e,a,d,l,u)),b=Zt(e.doc,S(l,0),S(u,V(e.doc,u).text.length));g.length>1&&b.length>1;)if(ye(g)==ye(b))g.pop(),b.pop(),u--;else if(g[0]==b[0])g.shift(),b.shift(),l++;else break;for(var m=0,L=0,F=g[0],H=b[0],B=Math.min(F.length,H.length);mr.ch&&X.charCodeAt(X.length-L-1)==R.charCodeAt(R.length-L-1);)m--,L++;g[g.length-1]=X.slice(0,X.length-L).replace(/^\u200b+/,""),g[0]=g[0].slice(m).replace(/\u200b+$/,"");var ae=S(l,m),ne=S(u,b.length?ye(b).length-L:0);if(g.length>1||g[0]||G(ae,ne))return Zr(e.doc,g,ae,ne,"+input"),!0},Fe.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fe.prototype.reset=function(){this.forceCompositionEnd()},Fe.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fe.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Fe.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ct(this.cm,function(){return mt(e.cm)})},Fe.prototype.setUneditable=function(e){e.contentEditable="false"},Fe.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||et(this.cm,so)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Fe.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Fe.prototype.onContextMenu=function(){},Fe.prototype.resetPosition=function(){},Fe.prototype.needsContentAttribute=!0;function ga(e,t){var i=Fn(e,t.line);if(!i||i.hidden)return null;var r=V(e.doc,t.line),n=Ko(i,r,t.line),o=Se(r,e.doc.direction),l="left";if(o){var a=or(o,t.ch);l=a%2?"right":"left"}var s=Xo(n.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function ku(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ti(e,t){return t&&(e.bad=!0),e}function wu(e,t,i,r,n){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(m){return function(L){return L.id==m}}function d(){l&&(o+=a,s&&(o+=a),l=s=!1)}function g(m){m&&(d(),o+=m)}function b(m){if(m.nodeType==1){var L=m.getAttribute("cm-text");if(L){g(L);return}var F=m.getAttribute("cm-marker"),H;if(F){var B=e.findMarks(S(r,0),S(n+1,0),u(+F));B.length&&(H=B[0].find(0))&&g(Zt(e.doc,H.from,H.to).join(a));return}if(m.getAttribute("contenteditable")=="false")return;var X=/^(pre|div|p|li|table|br)$/i.test(m.nodeName);if(!/^br$/i.test(m.nodeName)&&m.textContent.length==0)return;X&&d();for(var R=0;R=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),le(n,"paste",function(l){_e(r,l)||fa(l,r)||(r.state.pasteIncoming=+new Date,i.fastPoll())});function o(l){if(!_e(r,l)){if(r.somethingSelected())pn({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=ha(r);pn({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,Ze):(i.prevInput="",n.value=a.text.join(` +`),v(n))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}le(n,"cut",o),le(n,"copy",o),le(e.scroller,"paste",function(l){if(!(Vt(e,l)||_e(r,l))){if(!n.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,n.dispatchEvent(a)}}),le(e.lineSpace,"selectstart",function(l){Vt(e,l)||ut(l)}),le(n,"compositionstart",function(){var l=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),le(n,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Ue.prototype.createField=function(e){this.wrapper=da(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;uo(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ue.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ue.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=nl(e);if(e.options.moveInputWithCursor){var n=It(e,i.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,n.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,n.left+l.left-o.left))}return r},Ue.prototype.showSelection=function(e){var t=this.cm,i=t.display;Y(i.cursorDiv,e.cursors),Y(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ue.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&v(this.textarea),T&&se>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",T&&se>=9&&(this.hasSelection=null));this.resetting=!1}},Ue.prototype.getField=function(){return this.textarea},Ue.prototype.supportsTouch=function(){return!1},Ue.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!fe||Te(de(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ue.prototype.blur=function(){this.textarea.blur()},Ue.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ue.prototype.receivedFocus=function(){this.slowPoll()},Ue.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ue.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Ue.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||sr(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var n=i.value;if(n==r&&!t.somethingSelected())return!1;if(T&&se>=9&&this.hasSelection===n||De&&/[\uf700-\uf7ff]/.test(n))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=n.charCodeAt(0);if(o==8203&&!r&&(r="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,n.length);l1e3||n.indexOf(` `)>-1?i.value=e.prevInput="":e.prevInput=n,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ue.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ue.prototype.onKeyPress=function(){T&&se>=9&&(this.hasSelection=null),this.fastPoll()},Ue.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,n=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Sr(i,e),l=r.scroller.scrollTop;if(!o||E)return;var a=i.options.resetSelectionOnContextMenu;a&&i.doc.sel.contains(o)==-1&&et(i,ft)(i.doc,dr(o),Ze);var s=n.style.cssText,u=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",n.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+`px; z-index: 1000; background: `+(T?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var g;ie&&(g=n.ownerDocument.defaultView.scrollY),r.input.focus(),ie&&n.ownerDocument.defaultView.scrollTo(null,g),r.input.reset(),i.somethingSelected()||(n.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function b(){if(n.selectionStart!=null){var F=i.somethingSelected(),H="​"+(F?n.value:"");n.value="⇚",n.value=H,t.prevInput=F?"":"​",n.selectionStart=1,n.selectionEnd=H.length,r.selForContextMenu=i.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,n.style.cssText=s,T&&se<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),n.selectionStart!=null)){(!T||T&&se<9)&&b();var F=0,H=function(){r.selForContextMenu==i.doc.sel&&n.selectionStart==0&&n.selectionEnd>0&&t.prevInput=="​"?et(i,Ol)(i):F++<10?r.detectingSelectAll=setTimeout(H,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(H,200)}}if(T&&se>=9&&b(),pe){lr(e);var L=function(){st(window,"mouseup",L),setTimeout(m,20)};le(window,"mouseup",L)}else setTimeout(m,50)},Ue.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ue.prototype.setUneditable=function(){},Ue.prototype.needsContentAttribute=!1;function bu(e,t){if(t=t?ge(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=Te(de(e));t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=a.getValue()}var n;if(e.form&&(le(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;n=o.submit;try{var l=o.submit=function(){r(),o.submit=n,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(st(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=n))}},e.style.display="none";var a=Ie(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function ku(e){e.off=st,e.on=le,e.wheelEventPixels=Ms,e.Doc=xt,e.splitLines=Ft,e.countColumn=xe,e.findColumn=Ee,e.isWordChar=at,e.Pass=Oe,e.signal=Re,e.Line=Br,e.changeEnd=pr,e.scrollbarModel=ul,e.Pos=S,e.cmpPos=G,e.modes=Or,e.mimeModes=Pt,e.resolveMode=Pr,e.getMode=Hr,e.modeExtensions=ur,e.extendMode=Wr,e.copyState=_t,e.startState=Ir,e.innerMode=li,e.commands=Fi,e.keyMap=tr,e.keyName=$l,e.isModifierKey=Xl,e.lookupKey=Qr,e.normalizeKeyMap=Zs,e.StringStream=qe,e.SharedTextMarker=Di,e.TextMarker=vr,e.LineWidget=Ti,e.e_preventDefault=ut,e.e_stopPropagation=Er,e.e_stop=lr,e.addClass=ze,e.contains=oe,e.rmClass=We,e.keyNames=mr}hu(Ie),vu(Ie);var wu="iter insert remove copy getEditor constructor".split(" ");for(var vn in xt.prototype)xt.prototype.hasOwnProperty(vn)&&J(wu,vn)<0&&(Ie.prototype[vn]=function(e){return function(){return e.apply(this.doc,arguments)}}(xt.prototype[vn]));return Et(xt),Ie.inputStyles={textarea:Ue,contenteditable:Fe},Ie.defineMode=function(e){!Ie.defaults.mode&&e!="null"&&(Ie.defaults.mode=e),Ht.apply(this,arguments)},Ie.defineMIME=br,Ie.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ie.defineMIME("text/plain","null"),Ie.defineExtension=function(e,t){Ie.prototype[e]=t},Ie.defineDocExtension=function(e,t){xt.prototype[e]=t},Ie.fromTextArea=bu,ku(Ie),Ie.version="5.65.16",Ie})})(wa);var Gt=wa.exports;const Hi=Cu(Gt);var va={exports:{}},ma;function go(){return ma||(ma=1,function(Tt,_){(function(x){x(Gt)})(function(x){var W={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},k={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};x.defineMode("xml",function(y,C){var q=y.indentUnit,T={},se=C.htmlMode?W:k;for(var ie in se)T[ie]=se[ie];for(var ie in C)T[ie]=C[ie];var ve,ee;function j(c,U){function N(ze){return U.tokenize=ze,ze(c,U)}var oe=c.next();if(oe=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?N(ce("atom","]]>")):null:c.match("--")?N(ce("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),N(ue(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),U.tokenize=ce("meta","?>"),"meta"):(ve=c.eat("/")?"closeTag":"openTag",U.tokenize=E,"tag bracket");if(oe=="&"){var Te;return c.eat("#")?c.eat("x")?Te=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):Te=c.eatWhile(/[\d]/)&&c.eat(";"):Te=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),Te?"atom":"error"}else return c.eatWhile(/[^&<]/),null}j.isInText=!0;function E(c,U){var N=c.next();if(N==">"||N=="/"&&c.eat(">"))return U.tokenize=j,ve=N==">"?"endTag":"selfcloseTag","tag bracket";if(N=="=")return ve="equals",null;if(N=="<"){U.tokenize=j,U.state=Ge,U.tagName=U.tagStart=null;var oe=U.tokenize(c,U);return oe?oe+" tag error":"tag error"}else return/[\'\"]/.test(N)?(U.tokenize=K(N),U.stringStartCol=c.column(),U.tokenize(c,U)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function K(c){var U=function(N,oe){for(;!N.eol();)if(N.next()==c){oe.tokenize=E;break}return"string"};return U.isInAttribute=!0,U}function ce(c,U){return function(N,oe){for(;!N.eol();){if(N.match(U)){oe.tokenize=j;break}N.next()}return c}}function ue(c){return function(U,N){for(var oe;(oe=U.next())!=null;){if(oe=="<")return N.tokenize=ue(c+1),N.tokenize(U,N);if(oe==">")if(c==1){N.tokenize=j;break}else return N.tokenize=ue(c-1),N.tokenize(U,N)}return"meta"}}function te(c){return c&&c.toLowerCase()}function Q(c,U,N){this.prev=c.context,this.tagName=U||"",this.indent=c.indented,this.startOfLine=N,(T.doNotIndent.hasOwnProperty(U)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function fe(c){c.context&&(c.context=c.context.prev)}function De(c,U){for(var N;;){if(!c.context||(N=c.context.tagName,!T.contextGrabbers.hasOwnProperty(te(N))||!T.contextGrabbers[te(N)].hasOwnProperty(te(U))))return;fe(c)}}function Ge(c,U,N){return c=="openTag"?(N.tagStart=U.column(),nt):c=="closeTag"?Pe:Ge}function nt(c,U,N){return c=="word"?(N.tagName=U.current(),ee="tag",I):T.allowMissingTagName&&c=="endTag"?(ee="tag bracket",I(c,U,N)):(ee="error",nt)}function Pe(c,U,N){if(c=="word"){var oe=U.current();return N.context&&N.context.tagName!=oe&&T.implicitlyClosed.hasOwnProperty(te(N.context.tagName))&&fe(N),N.context&&N.context.tagName==oe||T.matchClosing===!1?(ee="tag",He):(ee="tag error",pe)}else return T.allowMissingTagName&&c=="endTag"?(ee="tag bracket",He(c,U,N)):(ee="error",pe)}function He(c,U,N){return c!="endTag"?(ee="error",He):(fe(N),Ge)}function pe(c,U,N){return ee="error",He(c,U,N)}function I(c,U,N){if(c=="word")return ee="attribute",We;if(c=="endTag"||c=="selfcloseTag"){var oe=N.tagName,Te=N.tagStart;return N.tagName=N.tagStart=null,c=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(te(oe))?De(N,oe):(De(N,oe),N.context=new Q(N,oe,Te==N.indented)),Ge}return ee="error",I}function We(c,U,N){return c=="equals"?D:(T.allowMissing||(ee="error"),I(c,U,N))}function D(c,U,N){return c=="string"?Y:c=="word"&&T.allowUnquoted?(ee="string",I):(ee="error",I(c,U,N))}function Y(c,U,N){return c=="string"?Y:I(c,U,N)}return{startState:function(c){var U={tokenize:j,state:Ge,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(U.baseIndent=c),U},token:function(c,U){if(!U.tagName&&c.sol()&&(U.indented=c.indentation()),c.eatSpace())return null;ve=null;var N=U.tokenize(c,U);return(N||ve)&&N!="comment"&&(ee=null,U.state=U.state(ve||N,c,U),ee&&(N=ee=="error"?N+" error":ee)),N},indent:function(c,U,N){var oe=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+q;if(oe&&oe.noIndent)return x.Pass;if(c.tokenize!=E&&c.tokenize!=j)return N?N.match(/^(\s*)/)[0].length:0;if(c.tagName)return T.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+q*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/$/,blockCommentStart:"",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(c){c.state==D&&(c.state=I)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var U=[],N=c.context;N;N=N.prev)U.push(N.tagName);return U.reverse()}}}),x.defineMIME("text/xml","xml"),x.defineMIME("application/xml","xml"),x.mimeModes.hasOwnProperty("text/html")||x.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),va.exports}var xa={exports:{}},ya;function Sa(){return ya||(ya=1,function(Tt,_){(function(x){x(Gt)})(function(x){x.defineMode("javascript",function(W,k){var y=W.indentUnit,C=k.statementIndent,q=k.jsonld,T=k.json||q,se=k.trackScope!==!1,ie=k.typescript,ve=k.wordCharacters||/[\w$\xa1-\uffff]/,ee=function(){function f(Qe){return{type:Qe,style:"keyword"}}var p=f("keyword a"),A=f("keyword b"),P=f("keyword c"),S=f("keyword d"),G=f("operator"),Me={type:"atom",style:"atom"};return{if:f("if"),while:p,with:p,else:A,do:A,try:A,finally:A,return:S,break:S,continue:S,new:f("new"),delete:P,void:P,throw:P,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:G,typeof:G,instanceof:G,true:Me,false:Me,null:Me,undefined:Me,NaN:Me,Infinity:Me,this:f("this"),class:f("class"),super:f("atom"),yield:P,export:f("export"),import:f("import"),extends:P,await:P}}(),j=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function K(f){for(var p=!1,A,P=!1;(A=f.next())!=null;){if(!p){if(A=="/"&&!P)return;A=="["?P=!0:P&&A=="]"&&(P=!1)}p=!p&&A=="\\"}}var ce,ue;function te(f,p,A){return ce=f,ue=A,p}function Q(f,p){var A=f.next();if(A=='"'||A=="'")return p.tokenize=fe(A),p.tokenize(f,p);if(A=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return te("number","number");if(A=="."&&f.match(".."))return te("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(A))return te(A);if(A=="="&&f.eat(">"))return te("=>","operator");if(A=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return te("number","number");if(/\d/.test(A))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),te("number","number");if(A=="/")return f.eat("*")?(p.tokenize=De,De(f,p)):f.eat("/")?(f.skipToEnd(),te("comment","comment")):Dt(f,p,1)?(K(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),te("regexp","string-2")):(f.eat("="),te("operator","operator",f.current()));if(A=="`")return p.tokenize=Ge,Ge(f,p);if(A=="#"&&f.peek()=="!")return f.skipToEnd(),te("meta","meta");if(A=="#"&&f.eatWhile(ve))return te("variable","property");if(A=="<"&&f.match("!--")||A=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),te("comment","comment");if(j.test(A))return(A!=">"||!p.lexical||p.lexical.type!=">")&&(f.eat("=")?(A=="!"||A=="=")&&f.eat("="):/[<>*+\-|&?]/.test(A)&&(f.eat(A),A==">"&&f.eat(A))),A=="?"&&f.eat(".")?te("."):te("operator","operator",f.current());if(ve.test(A)){f.eatWhile(ve);var P=f.current();if(p.lastType!="."){if(ee.propertyIsEnumerable(P)){var S=ee[P];return te(S.type,S.style,P)}if(P=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return te("async","keyword",P)}return te("variable","variable",P)}}function fe(f){return function(p,A){var P=!1,S;if(q&&p.peek()=="@"&&p.match(E))return A.tokenize=Q,te("jsonld-keyword","meta");for(;(S=p.next())!=null&&!(S==f&&!P);)P=!P&&S=="\\";return P||(A.tokenize=Q),te("string","string")}}function De(f,p){for(var A=!1,P;P=f.next();){if(P=="/"&&A){p.tokenize=Q;break}A=P=="*"}return te("comment","comment")}function Ge(f,p){for(var A=!1,P;(P=f.next())!=null;){if(!A&&(P=="`"||P=="$"&&f.eat("{"))){p.tokenize=Q;break}A=!A&&P=="\\"}return te("quasi","string-2",f.current())}var nt="([{}])";function Pe(f,p){p.fatArrowAt&&(p.fatArrowAt=null);var A=f.string.indexOf("=>",f.start);if(!(A<0)){if(ie){var P=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,A));P&&(A=P.index)}for(var S=0,G=!1,Me=A-1;Me>=0;--Me){var Qe=f.string.charAt(Me),vt=nt.indexOf(Qe);if(vt>=0&&vt<3){if(!S){++Me;break}if(--S==0){Qe=="("&&(G=!0);break}}else if(vt>=3&&vt<6)++S;else if(ve.test(Qe))G=!0;else if(/["'\/`]/.test(Qe))for(;;--Me){if(Me==0)return;var zr=f.string.charAt(Me-1);if(zr==Qe&&f.string.charAt(Me-2)!="\\"){Me--;break}}else if(G&&!S){++Me;break}}G&&!S&&(p.fatArrowAt=Me)}}var He={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function pe(f,p,A,P,S,G){this.indented=f,this.column=p,this.type=A,this.prev=S,this.info=G,P!=null&&(this.align=P)}function I(f,p){if(!se)return!1;for(var A=f.localVars;A;A=A.next)if(A.name==p)return!0;for(var P=f.context;P;P=P.prev)for(var A=P.vars;A;A=A.next)if(A.name==p)return!0}function We(f,p,A,P,S){var G=f.cc;for(D.state=f,D.stream=S,D.marked=null,D.cc=G,D.style=p,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var Me=G.length?G.pop():T?J:xe;if(Me(A,P)){for(;G.length&&G[G.length-1].lex;)G.pop()();return D.marked?D.marked:A=="variable"&&I(f,P)?"variable-2":p}}}var D={state:null,column:null,marked:null,cc:null};function Y(){for(var f=arguments.length-1;f>=0;f--)D.cc.push(arguments[f])}function c(){return Y.apply(null,arguments),!0}function U(f,p){for(var A=p;A;A=A.next)if(A.name==f)return!0;return!1}function N(f){var p=D.state;if(D.marked="def",!!se){if(p.context){if(p.lexical.info=="var"&&p.context&&p.context.block){var A=oe(f,p.context);if(A!=null){p.context=A;return}}else if(!U(f,p.localVars)){p.localVars=new wt(f,p.localVars);return}}k.globalVars&&!U(f,p.globalVars)&&(p.globalVars=new wt(f,p.globalVars))}}function oe(f,p){if(p)if(p.block){var A=oe(f,p.prev);return A?A==p.prev?p:new ze(A,p.vars,!0):null}else return U(f,p.vars)?p:new ze(p.prev,new wt(f,p.vars),!1);else return null}function Te(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function ze(f,p,A){this.prev=f,this.vars=p,this.block=A}function wt(f,p){this.name=f,this.next=p}var v=new wt("this",new wt("arguments",null));function h(){D.state.context=new ze(D.state.context,D.state.localVars,!1),D.state.localVars=v}function Z(){D.state.context=new ze(D.state.context,D.state.localVars,!0),D.state.localVars=null}h.lex=Z.lex=!0;function de(){D.state.localVars=D.state.context.vars,D.state.context=D.state.context.prev}de.lex=!0;function z(f,p){var A=function(){var P=D.state,S=P.indented;if(P.lexical.type=="stat")S=P.lexical.indented;else for(var G=P.lexical;G&&G.type==")"&&G.align;G=G.prev)S=G.indented;P.lexical=new pe(S,D.stream.column(),f,null,P.lexical,p)};return A.lex=!0,A}function re(){var f=D.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}re.lex=!0;function ge(f){function p(A){return A==f?c():f==";"||A=="}"||A==")"||A=="]"?Y():c(p)}return p}function xe(f,p){return f=="var"?c(z("vardef",p),Er,ge(";"),re):f=="keyword a"?c(z("form"),Oe,xe,re):f=="keyword b"?c(z("form"),xe,re):f=="keyword d"?D.stream.match(/^\s*$/,!1)?c():c(z("stat"),pt,ge(";"),re):f=="debugger"?c(ge(";")):f=="{"?c(z("}"),Z,Rt,re,de):f==";"?c():f=="if"?(D.state.lexical.info=="else"&&D.state.cc[D.state.cc.length-1]==re&&D.state.cc.pop()(),c(z("form"),Oe,xe,re,Nr)):f=="function"?c(Ft):f=="for"?c(z("form"),Z,zi,xe,de,re):f=="class"||ie&&p=="interface"?(D.marked="keyword",c(z("form",f=="class"?f:p),Or,re)):f=="variable"?ie&&p=="declare"?(D.marked="keyword",c(xe)):ie&&(p=="module"||p=="enum"||p=="type")&&D.stream.match(/^\s*\w/,!1)?(D.marked="keyword",p=="enum"?c(V):p=="type"?c(Bi,ge("operator"),Se,ge(";")):c(z("form"),gt,ge("{"),z("}"),Rt,re,re)):ie&&p=="namespace"?(D.marked="keyword",c(z("form"),J,xe,re)):ie&&p=="abstract"?(D.marked="keyword",c(xe)):c(z("stat"),Le):f=="switch"?c(z("form"),Oe,ge("{"),z("}","switch"),Z,Rt,re,re,de):f=="case"?c(J,ge(":")):f=="default"?c(ge(":")):f=="catch"?c(z("form"),h,he,xe,re,de):f=="export"?c(z("stat"),Pr,re):f=="import"?c(z("stat"),ur,re):f=="async"?c(xe):p=="@"?c(J,xe):Y(z("stat"),J,ge(";"),re)}function he(f){if(f=="(")return c(Ot,ge(")"))}function J(f,p){return Ze(f,p,!1)}function ke(f,p){return Ze(f,p,!0)}function Oe(f){return f!="("?Y():c(z(")"),pt,ge(")"),re)}function Ze(f,p,A){if(D.state.fatArrowAt==D.stream.start){var P=A?Ce:ye;if(f=="(")return c(h,z(")"),Xe(Ot,")"),re,ge("=>"),P,de);if(f=="variable")return Y(h,gt,ge("=>"),P,de)}var S=A?Ee:we;return He.hasOwnProperty(f)?c(S):f=="function"?c(Ft,S):f=="class"||ie&&p=="interface"?(D.marked="keyword",c(z("form"),yn,re)):f=="keyword c"||f=="async"?c(A?ke:J):f=="("?c(z(")"),pt,ge(")"),re,S):f=="operator"||f=="spread"?c(A?ke:J):f=="["?c(z("]"),qe,re,S):f=="{"?ir(Xt,"}",null,S):f=="quasi"?Y(Ke,S):f=="new"?c(w(A)):c()}function pt(f){return f.match(/[;\}\)\],]/)?Y():Y(J)}function we(f,p){return f==","?c(pt):Ee(f,p,!1)}function Ee(f,p,A){var P=A==!1?we:Ee,S=A==!1?J:ke;if(f=="=>")return c(h,A?Ce:ye,de);if(f=="operator")return/\+\+|--/.test(p)||ie&&p=="!"?c(P):ie&&p=="<"&&D.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(z(">"),Xe(Se,">"),re,P):p=="?"?c(J,ge(":"),S):c(S);if(f=="quasi")return Y(Ke,P);if(f!=";"){if(f=="(")return ir(ke,")","call",P);if(f==".")return c(at,P);if(f=="[")return c(z("]"),pt,ge("]"),re,P);if(ie&&p=="as")return D.marked="keyword",c(Se,P);if(f=="regexp")return D.state.lastType=D.marked="operator",D.stream.backUp(D.stream.pos-D.stream.start-1),c(S)}}function Ke(f,p){return f!="quasi"?Y():p.slice(p.length-2)!="${"?c(Ke):c(pt,ot)}function ot(f){if(f=="}")return D.marked="string-2",D.state.tokenize=Ge,c(Ke)}function ye(f){return Pe(D.stream,D.state),Y(f=="{"?xe:J)}function Ce(f){return Pe(D.stream,D.state),Y(f=="{"?xe:ke)}function w(f){return function(p){return p=="."?c(f?M:O):p=="variable"&&ie?c(St,f?Ee:we):Y(f?ke:J)}}function O(f,p){if(p=="target")return D.marked="keyword",c(we)}function M(f,p){if(p=="target")return D.marked="keyword",c(Ee)}function Le(f){return f==":"?c(re,xe):Y(we,ge(";"),re)}function at(f){if(f=="variable")return D.marked="property",c()}function Xt(f,p){if(f=="async")return D.marked="property",c(Xt);if(f=="variable"||D.style=="keyword"){if(D.marked="property",p=="get"||p=="set")return c(Wi);var A;return ie&&D.state.fatArrowAt==D.stream.start&&(A=D.stream.match(/^\s*:\s*/,!1))&&(D.state.fatArrowAt=D.stream.pos+A[0].length),c(Yt)}else{if(f=="number"||f=="string")return D.marked=q?"property":D.style+" property",c(Yt);if(f=="jsonld-keyword")return c(Yt);if(ie&&Te(p))return D.marked="keyword",c(Xt);if(f=="[")return c(J,nr,ge("]"),Yt);if(f=="spread")return c(ke,Yt);if(p=="*")return D.marked="keyword",c(Xt);if(f==":")return Y(Yt)}}function Wi(f){return f!="variable"?Y(Yt):(D.marked="property",c(Ft))}function Yt(f){if(f==":")return c(ke);if(f=="(")return Y(Ft)}function Xe(f,p,A){function P(S,G){if(A?A.indexOf(S)>-1:S==","){var Me=D.state.lexical;return Me.info=="call"&&(Me.pos=(Me.pos||0)+1),c(function(Qe,vt){return Qe==p||vt==p?Y():Y(f)},P)}return S==p||G==p?c():A&&A.indexOf(";")>-1?Y(f):c(ge(p))}return function(S,G){return S==p||G==p?c():Y(f,P)}}function ir(f,p,A){for(var P=3;P"),Se);if(f=="quasi")return Y(st,At)}function Ii(f){if(f=="=>")return c(Se)}function le(f){return f.match(/[\}\)\]]/)?c():f==","||f==";"?c(le):Y($t,le)}function $t(f,p){if(f=="variable"||D.style=="keyword")return D.marked="property",c($t);if(p=="?"||f=="number"||f=="string")return c($t);if(f==":")return c(Se);if(f=="[")return c(ge("variable"),yr,ge("]"),$t);if(f=="(")return Y(sr,$t);if(!f.match(/[;\}\)\],]/))return c()}function st(f,p){return f!="quasi"?Y():p.slice(p.length-2)!="${"?c(st):c(Se,Re)}function Re(f){if(f=="}")return D.marked="string-2",D.state.tokenize=Ge,c(st)}function _e(f,p){return f=="variable"&&D.stream.match(/^\s*[?:]/,!1)||p=="?"?c(_e):f==":"?c(Se):f=="spread"?c(_e):Y(Se)}function At(f,p){if(p=="<")return c(z(">"),Xe(Se,">"),re,At);if(p=="|"||f=="."||p=="&")return c(Se);if(f=="[")return c(Se,ge("]"),At);if(p=="extends"||p=="implements")return D.marked="keyword",c(Se);if(p=="?")return c(Se,ge(":"),Se)}function St(f,p){if(p=="<")return c(z(">"),Xe(Se,">"),re,At)}function Et(){return Y(Se,ut)}function ut(f,p){if(p=="=")return c(Se)}function Er(f,p){return p=="enum"?(D.marked="keyword",c(V)):Y(gt,nr,Nt,xn)}function gt(f,p){if(ie&&Te(p))return D.marked="keyword",c(gt);if(f=="variable")return N(p),c();if(f=="spread")return c(gt);if(f=="[")return ir(ni,"]");if(f=="{")return ir(lr,"}")}function lr(f,p){return f=="variable"&&!D.stream.match(/^\s*:/,!1)?(N(p),c(Nt)):(f=="variable"&&(D.marked="property"),f=="spread"?c(gt):f=="}"?Y():f=="["?c(J,ge("]"),ge(":"),lr):c(ge(":"),gt,Nt))}function ni(){return Y(gt,Nt)}function Nt(f,p){if(p=="=")return c(ke)}function xn(f){if(f==",")return c(Er)}function Nr(f,p){if(f=="keyword b"&&p=="else")return c(z("form","else"),xe,re)}function zi(f,p){if(p=="await")return c(zi);if(f=="(")return c(z(")"),oi,re)}function oi(f){return f=="var"?c(Er,ar):f=="variable"?c(ar):Y(ar)}function ar(f,p){return f==")"?c():f==";"?c(ar):p=="in"||p=="of"?(D.marked="keyword",c(J,ar)):Y(J,ar)}function Ft(f,p){if(p=="*")return D.marked="keyword",c(Ft);if(f=="variable")return N(p),c(Ft);if(f=="(")return c(h,z(")"),Xe(Ot,")"),re,or,xe,de);if(ie&&p=="<")return c(z(">"),Xe(Et,">"),re,Ft)}function sr(f,p){if(p=="*")return D.marked="keyword",c(sr);if(f=="variable")return N(p),c(sr);if(f=="(")return c(h,z(")"),Xe(Ot,")"),re,or,de);if(ie&&p=="<")return c(z(">"),Xe(Et,">"),re,sr)}function Bi(f,p){if(f=="keyword"||f=="variable")return D.marked="type",c(Bi);if(p=="<")return c(z(">"),Xe(Et,">"),re)}function Ot(f,p){return p=="@"&&c(J,Ot),f=="spread"?c(Ot):ie&&Te(p)?(D.marked="keyword",c(Ot)):ie&&f=="this"?c(nr,Nt):Y(gt,nr,Nt)}function yn(f,p){return f=="variable"?Or(f,p):Pt(f,p)}function Or(f,p){if(f=="variable")return N(p),c(Pt)}function Pt(f,p){if(p=="<")return c(z(">"),Xe(Et,">"),re,Pt);if(p=="extends"||p=="implements"||ie&&f==",")return p=="implements"&&(D.marked="keyword"),c(ie?Se:J,Pt);if(f=="{")return c(z("}"),Ht,re)}function Ht(f,p){if(f=="async"||f=="variable"&&(p=="static"||p=="get"||p=="set"||ie&&Te(p))&&D.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return D.marked="keyword",c(Ht);if(f=="variable"||D.style=="keyword")return D.marked="property",c(br,Ht);if(f=="number"||f=="string")return c(br,Ht);if(f=="[")return c(J,nr,ge("]"),br,Ht);if(p=="*")return D.marked="keyword",c(Ht);if(ie&&f=="(")return Y(sr,Ht);if(f==";"||f==",")return c(Ht);if(f=="}")return c();if(p=="@")return c(J,Ht)}function br(f,p){if(p=="!"||p=="?")return c(br);if(f==":")return c(Se,Nt);if(p=="=")return c(ke);var A=D.state.lexical.prev,P=A&&A.info=="interface";return Y(P?sr:Ft)}function Pr(f,p){return p=="*"?(D.marked="keyword",c(Ir,ge(";"))):p=="default"?(D.marked="keyword",c(J,ge(";"))):f=="{"?c(Xe(Hr,"}"),Ir,ge(";")):Y(xe)}function Hr(f,p){if(p=="as")return D.marked="keyword",c(ge("variable"));if(f=="variable")return Y(ke,Hr)}function ur(f){return f=="string"?c():f=="("?Y(J):f=="."?Y(we):Y(Wr,_t,Ir)}function Wr(f,p){return f=="{"?ir(Wr,"}"):(f=="variable"&&N(p),p=="*"&&(D.marked="keyword"),c(li))}function _t(f){if(f==",")return c(Wr,_t)}function li(f,p){if(p=="as")return D.marked="keyword",c(Wr)}function Ir(f,p){if(p=="from")return D.marked="keyword",c(J)}function qe(f){return f=="]"?c():Y(Xe(ke,"]"))}function V(){return Y(z("form"),gt,ge("{"),z("}"),Xe(Zt,"}"),re,re)}function Zt(){return Y(gt,Nt)}function ai(f,p){return f.lastType=="operator"||f.lastType==","||j.test(p.charAt(0))||/[,.]/.test(p.charAt(0))}function Dt(f,p,A){return p.tokenize==Q&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(p.lastType)||p.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(A||0)))}return{startState:function(f){var p={tokenize:Q,lastType:"sof",cc:[],lexical:new pe((f||0)-y,0,"block",!1),localVars:k.localVars,context:k.localVars&&new ze(null,null,!1),indented:f||0};return k.globalVars&&typeof k.globalVars=="object"&&(p.globalVars=k.globalVars),p},token:function(f,p){if(f.sol()&&(p.lexical.hasOwnProperty("align")||(p.lexical.align=!1),p.indented=f.indentation(),Pe(f,p)),p.tokenize!=De&&f.eatSpace())return null;var A=p.tokenize(f,p);return ce=="comment"?A:(p.lastType=ce=="operator"&&(ue=="++"||ue=="--")?"incdec":ce,We(p,A,ce,ue,f))},indent:function(f,p){if(f.tokenize==De||f.tokenize==Ge)return x.Pass;if(f.tokenize!=Q)return 0;var A=p&&p.charAt(0),P=f.lexical,S;if(!/^\s*else\b/.test(p))for(var G=f.cc.length-1;G>=0;--G){var Me=f.cc[G];if(Me==re)P=P.prev;else if(Me!=Nr&&Me!=de)break}for(;(P.type=="stat"||P.type=="form")&&(A=="}"||(S=f.cc[f.cc.length-1])&&(S==we||S==Ee)&&!/^[,\.=+\-*:?[\(]/.test(p));)P=P.prev;C&&P.type==")"&&P.prev.type=="stat"&&(P=P.prev);var Qe=P.type,vt=A==Qe;return Qe=="vardef"?P.indented+(f.lastType=="operator"||f.lastType==","?P.info.length+1:0):Qe=="form"&&A=="{"?P.indented:Qe=="form"?P.indented+y:Qe=="stat"?P.indented+(ai(f,p)?C||y:0):P.info=="switch"&&!vt&&k.doubleIndentSwitch!=!1?P.indented+(/^(?:case|default)\b/.test(p)?y:2*y):P.align?P.column+(vt?0:1):P.indented+(vt?0:y)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:T?null:"/*",blockCommentEnd:T?null:"*/",blockCommentContinue:T?null:" * ",lineComment:T?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:T?"json":"javascript",jsonldMode:q,jsonMode:T,expressionAllowed:Dt,skipExpression:function(f){We(f,"atom","atom","true",new x.StringStream("",2,null))}}}),x.registerHelper("wordChars","javascript",/[\w$]/),x.defineMIME("text/javascript","javascript"),x.defineMIME("text/ecmascript","javascript"),x.defineMIME("application/javascript","javascript"),x.defineMIME("application/x-javascript","javascript"),x.defineMIME("application/ecmascript","javascript"),x.defineMIME("application/json",{name:"javascript",json:!0}),x.defineMIME("application/x-json",{name:"javascript",json:!0}),x.defineMIME("application/manifest+json",{name:"javascript",json:!0}),x.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),x.defineMIME("text/typescript",{name:"javascript",typescript:!0}),x.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),xa.exports}(function(Tt,_){(function(x){x(Gt,go(),Sa())})(function(x){function W(y,C,q,T){this.state=y,this.mode=C,this.depth=q,this.prev=T}function k(y){return new W(x.copyState(y.mode,y.state),y.mode,y.depth,y.prev&&k(y.prev))}x.defineMode("jsx",function(y,C){var q=x.getMode(y,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),T=x.getMode(y,C&&C.base||"javascript");function se(j){var E=j.tagName;j.tagName=null;var K=q.indent(j,"","");return j.tagName=E,K}function ie(j,E){return E.context.mode==q?ve(j,E,E.context):ee(j,E,E.context)}function ve(j,E,K){if(K.depth==2)return j.match(/^.*?\*\//)?K.depth=1:j.skipToEnd(),"comment";if(j.peek()=="{"){q.skipAttribute(K.state);var ce=se(K.state),ue=K.state.context;if(ue&&j.match(/^[^>]*>\s*$/,!1)){for(;ue.prev&&!ue.startOfLine;)ue=ue.prev;ue.startOfLine?ce-=y.indentUnit:K.prev.state.lexical&&(ce=K.prev.state.lexical.indented)}else K.depth==1&&(ce+=y.indentUnit);return E.context=new W(x.startState(T,ce),T,0,E.context),null}if(K.depth==1){if(j.peek()=="<")return q.skipAttribute(K.state),E.context=new W(x.startState(q,se(K.state)),q,0,E.context),null;if(j.match("//"))return j.skipToEnd(),"comment";if(j.match("/*"))return K.depth=2,ie(j,E)}var te=q.token(j,K.state),Q=j.current(),fe;return/\btag\b/.test(te)?/>$/.test(Q)?K.state.context?K.depth=0:E.context=E.context.prev:/^-1&&j.backUp(Q.length-fe),te}function ee(j,E,K){if(j.peek()=="<"&&!j.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&T.expressionAllowed(j,K.state))return E.context=new W(x.startState(q,T.indent(K.state,"","")),q,0,E.context),T.skipExpression(K.state),null;var ce=T.token(j,K.state);if(!ce&&K.depth!=null){var ue=j.current();ue=="{"?K.depth++:ue=="}"&&--K.depth==0&&(E.context=E.context.prev)}return ce}return{startState:function(){return{context:new W(x.startState(T),T)}},copyState:function(j){return{context:k(j.context)}},token:ie,indent:function(j,E,K){return j.context.mode.indent(j.context.state,E,K)},innerMode:function(j){return j.context}}},"xml","javascript"),x.defineMIME("text/jsx","jsx"),x.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(Tt,_){(function(x){x(Gt)})(function(x){x.defineMode("shell",function(){var W={};function k(E,K){for(var ce=0;ce1&&E.eat("$");var ce=E.next();return/['"({]/.test(ce)?(K.tokens[0]=se(ce,ce=="("?"quote":ce=="{"?"def":"string"),j(E,K)):(/\d/.test(ce)||E.eatWhile(/\w/),K.tokens.shift(),"def")};function ee(E){return function(K,ce){return K.sol()&&K.string==E&&ce.tokens.shift(),K.skipToEnd(),"string-2"}}function j(E,K){return(K.tokens[0]||T)(E,K)}return{startState:function(){return{tokens:[]}},token:function(E,K){return j(E,K)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),x.defineMIME("text/x-sh","shell"),x.defineMIME("application/x-sh","shell")})})();var Lu={exports:{}};(function(Tt,_){(function(x){x(Gt)})(function(x){x.defineMode("css",function(pe,I){var We=I.inline;I.propertyKeywords||(I=x.resolveMode("text/css"));var D=pe.indentUnit,Y=I.tokenHooks,c=I.documentTypes||{},U=I.mediaTypes||{},N=I.mediaFeatures||{},oe=I.mediaValueKeywords||{},Te=I.propertyKeywords||{},ze=I.nonStandardPropertyKeywords||{},wt=I.fontProperties||{},v=I.counterDescriptors||{},h=I.colorKeywords||{},Z=I.valueKeywords||{},de=I.allowNested,z=I.lineComment,re=I.supportsAtComponent===!0,ge=pe.highlightNonStandardPropertyKeywords!==!1,xe,he;function J(w,O){return xe=O,w}function ke(w,O){var M=w.next();if(Y[M]){var Le=Y[M](w,O);if(Le!==!1)return Le}if(M=="@")return w.eatWhile(/[\w\\\-]/),J("def",w.current());if(M=="="||(M=="~"||M=="|")&&w.eat("="))return J(null,"compare");if(M=='"'||M=="'")return O.tokenize=Oe(M),O.tokenize(w,O);if(M=="#")return w.eatWhile(/[\w\\\-]/),J("atom","hash");if(M=="!")return w.match(/^\s*\w*/),J("keyword","important");if(/\d/.test(M)||M=="."&&w.eat(/\d/))return w.eatWhile(/[\w.%]/),J("number","unit");if(M==="-"){if(/[\d.]/.test(w.peek()))return w.eatWhile(/[\w.%]/),J("number","unit");if(w.match(/^-[\w\\\-]*/))return w.eatWhile(/[\w\\\-]/),w.match(/^\s*:/,!1)?J("variable-2","variable-definition"):J("variable-2","variable");if(w.match(/^\w+-/))return J("meta","meta")}else return/[,+>*\/]/.test(M)?J(null,"select-op"):M=="."&&w.match(/^-?[_a-z][_a-z0-9-]*/i)?J("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(M)?J(null,M):w.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(w.current())&&(O.tokenize=Ze),J("variable callee","variable")):/[\w\\\-]/.test(M)?(w.eatWhile(/[\w\\\-]/),J("property","word")):J(null,null)}function Oe(w){return function(O,M){for(var Le=!1,at;(at=O.next())!=null;){if(at==w&&!Le){w==")"&&O.backUp(1);break}Le=!Le&&at=="\\"}return(at==w||!Le&&w!=")")&&(M.tokenize=null),J("string","string")}}function Ze(w,O){return w.next(),w.match(/^\s*[\"\')]/,!1)?O.tokenize=null:O.tokenize=Oe(")"),J(null,"(")}function pt(w,O,M){this.type=w,this.indent=O,this.prev=M}function we(w,O,M,Le){return w.context=new pt(M,O.indentation()+(Le===!1?0:D),w.context),M}function Ee(w){return w.context.prev&&(w.context=w.context.prev),w.context.type}function Ke(w,O,M){return Ce[M.context.type](w,O,M)}function ot(w,O,M,Le){for(var at=Le||1;at>0;at--)M.context=M.context.prev;return Ke(w,O,M)}function ye(w){var O=w.current().toLowerCase();Z.hasOwnProperty(O)?he="atom":h.hasOwnProperty(O)?he="keyword":he="variable"}var Ce={};return Ce.top=function(w,O,M){if(w=="{")return we(M,O,"block");if(w=="}"&&M.context.prev)return Ee(M);if(re&&/@component/i.test(w))return we(M,O,"atComponentBlock");if(/^@(-moz-)?document$/i.test(w))return we(M,O,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(w))return we(M,O,"atBlock");if(/^@(font-face|counter-style)/i.test(w))return M.stateArg=w,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(w))return"keyframes";if(w&&w.charAt(0)=="@")return we(M,O,"at");if(w=="hash")he="builtin";else if(w=="word")he="tag";else{if(w=="variable-definition")return"maybeprop";if(w=="interpolation")return we(M,O,"interpolation");if(w==":")return"pseudo";if(de&&w=="(")return we(M,O,"parens")}return M.context.type},Ce.block=function(w,O,M){if(w=="word"){var Le=O.current().toLowerCase();return Te.hasOwnProperty(Le)?(he="property","maybeprop"):ze.hasOwnProperty(Le)?(he=ge?"string-2":"property","maybeprop"):de?(he=O.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(he+=" error","maybeprop")}else return w=="meta"?"block":!de&&(w=="hash"||w=="qualifier")?(he="error","block"):Ce.top(w,O,M)},Ce.maybeprop=function(w,O,M){return w==":"?we(M,O,"prop"):Ke(w,O,M)},Ce.prop=function(w,O,M){if(w==";")return Ee(M);if(w=="{"&&de)return we(M,O,"propBlock");if(w=="}"||w=="{")return ot(w,O,M);if(w=="(")return we(M,O,"parens");if(w=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(O.current()))he+=" error";else if(w=="word")ye(O);else if(w=="interpolation")return we(M,O,"interpolation");return"prop"},Ce.propBlock=function(w,O,M){return w=="}"?Ee(M):w=="word"?(he="property","maybeprop"):M.context.type},Ce.parens=function(w,O,M){return w=="{"||w=="}"?ot(w,O,M):w==")"?Ee(M):w=="("?we(M,O,"parens"):w=="interpolation"?we(M,O,"interpolation"):(w=="word"&&ye(O),"parens")},Ce.pseudo=function(w,O,M){return w=="meta"?"pseudo":w=="word"?(he="variable-3",M.context.type):Ke(w,O,M)},Ce.documentTypes=function(w,O,M){return w=="word"&&c.hasOwnProperty(O.current())?(he="tag",M.context.type):Ce.atBlock(w,O,M)},Ce.atBlock=function(w,O,M){if(w=="(")return we(M,O,"atBlock_parens");if(w=="}"||w==";")return ot(w,O,M);if(w=="{")return Ee(M)&&we(M,O,de?"block":"top");if(w=="interpolation")return we(M,O,"interpolation");if(w=="word"){var Le=O.current().toLowerCase();Le=="only"||Le=="not"||Le=="and"||Le=="or"?he="keyword":U.hasOwnProperty(Le)?he="attribute":N.hasOwnProperty(Le)?he="property":oe.hasOwnProperty(Le)?he="keyword":Te.hasOwnProperty(Le)?he="property":ze.hasOwnProperty(Le)?he=ge?"string-2":"property":Z.hasOwnProperty(Le)?he="atom":h.hasOwnProperty(Le)?he="keyword":he="error"}return M.context.type},Ce.atComponentBlock=function(w,O,M){return w=="}"?ot(w,O,M):w=="{"?Ee(M)&&we(M,O,de?"block":"top",!1):(w=="word"&&(he="error"),M.context.type)},Ce.atBlock_parens=function(w,O,M){return w==")"?Ee(M):w=="{"||w=="}"?ot(w,O,M,2):Ce.atBlock(w,O,M)},Ce.restricted_atBlock_before=function(w,O,M){return w=="{"?we(M,O,"restricted_atBlock"):w=="word"&&M.stateArg=="@counter-style"?(he="variable","restricted_atBlock_before"):Ke(w,O,M)},Ce.restricted_atBlock=function(w,O,M){return w=="}"?(M.stateArg=null,Ee(M)):w=="word"?(M.stateArg=="@font-face"&&!wt.hasOwnProperty(O.current().toLowerCase())||M.stateArg=="@counter-style"&&!v.hasOwnProperty(O.current().toLowerCase())?he="error":he="property","maybeprop"):"restricted_atBlock"},Ce.keyframes=function(w,O,M){return w=="word"?(he="variable","keyframes"):w=="{"?we(M,O,"top"):Ke(w,O,M)},Ce.at=function(w,O,M){return w==";"?Ee(M):w=="{"||w=="}"?ot(w,O,M):(w=="word"?he="tag":w=="hash"&&(he="builtin"),"at")},Ce.interpolation=function(w,O,M){return w=="}"?Ee(M):w=="{"||w==";"?ot(w,O,M):(w=="word"?he="variable":w!="variable"&&w!="("&&w!=")"&&(he="error"),"interpolation")},{startState:function(w){return{tokenize:null,state:We?"block":"top",stateArg:null,context:new pt(We?"block":"top",w||0,null)}},token:function(w,O){if(!O.tokenize&&w.eatSpace())return null;var M=(O.tokenize||ke)(w,O);return M&&typeof M=="object"&&(xe=M[1],M=M[0]),he=M,xe!="comment"&&(O.state=Ce[O.state](xe,w,O)),he},indent:function(w,O){var M=w.context,Le=O&&O.charAt(0),at=M.indent;return M.type=="prop"&&(Le=="}"||Le==")")&&(M=M.prev),M.prev&&(Le=="}"&&(M.type=="block"||M.type=="top"||M.type=="interpolation"||M.type=="restricted_atBlock")?(M=M.prev,at=M.indent):(Le==")"&&(M.type=="parens"||M.type=="atBlock_parens")||Le=="{"&&(M.type=="at"||M.type=="atBlock"))&&(at=Math.max(0,M.indent-D))),at},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:z,fold:"brace"}});function W(pe){for(var I={},We=0;We-1?ve.backUp(E.length-K):E.match(/<\/?$/)&&(ve.backUp(E.length),ve.match(ee,!1)||ve.match(E)),j}var y={};function C(ve){var ee=y[ve];return ee||(y[ve]=new RegExp("\\s+"+ve+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function q(ve,ee){var j=ve.match(C(ee));return j?/^\s*(.*?)\s*$/.exec(j[2])[1]:""}function T(ve,ee){return new RegExp((ee?"^":"")+"","i")}function se(ve,ee){for(var j in ve)for(var E=ee[j]||(ee[j]=[]),K=ve[j],ce=K.length-1;ce>=0;ce--)E.unshift(K[ce])}function ie(ve,ee){for(var j=0;j=0;ue--)E.script.unshift(["type",ce[ue].matches,ce[ue].mode]);function te(Q,fe){var De=j.token(Q,fe.htmlState),Ge=/\btag\b/.test(De),nt;if(Ge&&!/[<>\s\/]/.test(Q.current())&&(nt=fe.htmlState.tagName&&fe.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(nt))fe.inTag=nt+" ";else if(fe.inTag&&Ge&&/>$/.test(Q.current())){var Pe=/^([\S]+) (.*)/.exec(fe.inTag);fe.inTag=null;var He=Q.current()==">"&&ie(E[Pe[1]],Pe[2]),pe=x.getMode(ve,He),I=T(Pe[1],!0),We=T(Pe[1],!1);fe.token=function(D,Y){return D.match(I,!1)?(Y.token=te,Y.localState=Y.localMode=null,null):k(D,We,Y.localMode.token(D,Y.localState))},fe.localMode=pe,fe.localState=x.startState(pe,j.indent(fe.htmlState,"",""))}else fe.inTag&&(fe.inTag+=Q.current(),Q.eol()&&(fe.inTag+=" "));return De}return{startState:function(){var Q=x.startState(j);return{token:te,inTag:null,localMode:null,localState:null,htmlState:Q}},copyState:function(Q){var fe;return Q.localState&&(fe=x.copyState(Q.localMode,Q.localState)),{token:Q.token,inTag:Q.inTag,localMode:Q.localMode,localState:fe,htmlState:x.copyState(j,Q.htmlState)}},token:function(Q,fe){return fe.token(Q,fe)},indent:function(Q,fe,De){return!Q.localMode||/^\s*<\//.test(fe)?j.indent(Q.htmlState,fe,De):Q.localMode.indent?Q.localMode.indent(Q.localState,fe,De):x.Pass},innerMode:function(Q){return{state:Q.localState||Q.htmlState,mode:Q.localMode||j}}}},"xml","javascript","css"),x.defineMIME("text/html","htmlmixed")})})();var ba={exports:{}},ka;function Du(){return ka||(ka=1,function(Tt,_){(function(x){x(Gt)})(function(x){x.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var W=0;W-1&&y.substring(T+1,y.length);if(se)return x.findModeByExtension(se)},x.findModeByName=function(y){y=y.toLowerCase();for(var C=0;C` "'(~:]+/,ce=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ue=/^\s*\[[^\]]+?\]:.*$/,te=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Q=" ";function fe(v,h,Z){return h.f=h.inline=Z,Z(v,h)}function De(v,h,Z){return h.f=h.block=Z,Z(v,h)}function Ge(v){return!v||!/\S/.test(v.string)}function nt(v){if(v.linkTitle=!1,v.linkHref=!1,v.linkText=!1,v.em=!1,v.strong=!1,v.strikethrough=!1,v.quote=0,v.indentedCode=!1,v.f==He){var h=C;if(!h){var Z=x.innerMode(y,v.htmlState);h=Z.mode.name=="xml"&&Z.state.tagStart===null&&!Z.state.context&&Z.state.tokenize.isInText}h&&(v.f=D,v.block=Pe,v.htmlState=null)}return v.trailingSpace=0,v.trailingSpaceNewLine=!1,v.prevLine=v.thisLine,v.thisLine={stream:null},null}function Pe(v,h){var Z=v.column()===h.indentation,de=Ge(h.prevLine.stream),z=h.indentedCode,re=h.prevLine.hr,ge=h.list!==!1,xe=(h.listStack[h.listStack.length-1]||0)+3;h.indentedCode=!1;var he=h.indentation;if(h.indentationDiff===null&&(h.indentationDiff=h.indentation,ge)){for(h.list=null;he=4&&(z||h.prevLine.fencedCodeEnd||h.prevLine.header||de))return v.skipToEnd(),h.indentedCode=!0,T.code;if(v.eatSpace())return null;if(Z&&h.indentation<=xe&&(Oe=v.match(j))&&Oe[1].length<=6)return h.quote=0,h.header=Oe[1].length,h.thisLine.header=!0,k.highlightFormatting&&(h.formatting="header"),h.f=h.inline,I(h);if(h.indentation<=xe&&v.eat(">"))return h.quote=Z?1:h.quote+1,k.highlightFormatting&&(h.formatting="quote"),v.eatSpace(),I(h);if(!ke&&!h.setext&&Z&&h.indentation<=xe&&(Oe=v.match(ve))){var Ze=Oe[1]?"ol":"ul";return h.indentation=he+v.current().length,h.list=!0,h.quote=0,h.listStack.push(h.indentation),h.em=!1,h.strong=!1,h.code=!1,h.strikethrough=!1,k.taskLists&&v.match(ee,!1)&&(h.taskList=!0),h.f=h.inline,k.highlightFormatting&&(h.formatting=["list","list-"+Ze]),I(h)}else{if(Z&&h.indentation<=xe&&(Oe=v.match(ce,!0)))return h.quote=0,h.fencedEndRE=new RegExp(Oe[1]+"+ *$"),h.localMode=k.fencedCodeBlockHighlighting&&q(Oe[2]||k.fencedCodeBlockDefaultMode),h.localMode&&(h.localState=x.startState(h.localMode)),h.f=h.block=pe,k.highlightFormatting&&(h.formatting="code-block"),h.code=-1,I(h);if(h.setext||(!J||!ge)&&!h.quote&&h.list===!1&&!h.code&&!ke&&!ue.test(v.string)&&(Oe=v.lookAhead(1))&&(Oe=Oe.match(E)))return h.setext?(h.header=h.setext,h.setext=0,v.skipToEnd(),k.highlightFormatting&&(h.formatting="header")):(h.header=Oe[0].charAt(0)=="="?1:2,h.setext=h.header),h.thisLine.header=!0,h.f=h.inline,I(h);if(ke)return v.skipToEnd(),h.hr=!0,h.thisLine.hr=!0,T.hr;if(v.peek()==="[")return fe(v,h,oe)}return fe(v,h,h.inline)}function He(v,h){var Z=y.token(v,h.htmlState);if(!C){var de=x.innerMode(y,h.htmlState);(de.mode.name=="xml"&&de.state.tagStart===null&&!de.state.context&&de.state.tokenize.isInText||h.md_inside&&v.current().indexOf(">")>-1)&&(h.f=D,h.block=Pe,h.htmlState=null)}return Z}function pe(v,h){var Z=h.listStack[h.listStack.length-1]||0,de=h.indentation=v.quote?h.push(T.formatting+"-"+v.formatting[Z]+"-"+v.quote):h.push("error"))}if(v.taskOpen)return h.push("meta"),h.length?h.join(" "):null;if(v.taskClosed)return h.push("property"),h.length?h.join(" "):null;if(v.linkHref?h.push(T.linkHref,"url"):(v.strong&&h.push(T.strong),v.em&&h.push(T.em),v.strikethrough&&h.push(T.strikethrough),v.emoji&&h.push(T.emoji),v.linkText&&h.push(T.linkText),v.code&&h.push(T.code),v.image&&h.push(T.image),v.imageAltText&&h.push(T.imageAltText,"link"),v.imageMarker&&h.push(T.imageMarker)),v.header&&h.push(T.header,T.header+"-"+v.header),v.quote&&(h.push(T.quote),!k.maxBlockquoteDepth||k.maxBlockquoteDepth>=v.quote?h.push(T.quote+"-"+v.quote):h.push(T.quote+"-"+k.maxBlockquoteDepth)),v.list!==!1){var de=(v.listStack.length-1)%3;de?de===1?h.push(T.list2):h.push(T.list3):h.push(T.list1)}return v.trailingSpaceNewLine?h.push("trailing-space-new-line"):v.trailingSpace&&h.push("trailing-space-"+(v.trailingSpace%2?"a":"b")),h.length?h.join(" "):null}function We(v,h){if(v.match(K,!0))return I(h)}function D(v,h){var Z=h.text(v,h);if(typeof Z<"u")return Z;if(h.list)return h.list=null,I(h);if(h.taskList){var de=v.match(ee,!0)[1]===" ";return de?h.taskOpen=!0:h.taskClosed=!0,k.highlightFormatting&&(h.formatting="task"),h.taskList=!1,I(h)}if(h.taskOpen=!1,h.taskClosed=!1,h.header&&v.match(/^#+$/,!0))return k.highlightFormatting&&(h.formatting="header"),I(h);var z=v.next();if(h.linkTitle){h.linkTitle=!1;var re=z;z==="("&&(re=")"),re=(re+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ge="^\\s*(?:[^"+re+"\\\\]+|\\\\\\\\|\\\\.)"+re;if(v.match(new RegExp(ge),!0))return T.linkHref}if(z==="`"){var xe=h.formatting;k.highlightFormatting&&(h.formatting="code"),v.eatWhile("`");var he=v.current().length;if(h.code==0&&(!h.quote||he==1))return h.code=he,I(h);if(he==h.code){var J=I(h);return h.code=0,J}else return h.formatting=xe,I(h)}else if(h.code)return I(h);if(z==="\\"&&(v.next(),k.highlightFormatting)){var ke=I(h),Oe=T.formatting+"-escape";return ke?ke+" "+Oe:Oe}if(z==="!"&&v.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return h.imageMarker=!0,h.image=!0,k.highlightFormatting&&(h.formatting="image"),I(h);if(z==="["&&h.imageMarker&&v.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return h.imageMarker=!1,h.imageAltText=!0,k.highlightFormatting&&(h.formatting="image"),I(h);if(z==="]"&&h.imageAltText){k.highlightFormatting&&(h.formatting="image");var ke=I(h);return h.imageAltText=!1,h.image=!1,h.inline=h.f=c,ke}if(z==="["&&!h.image)return h.linkText&&v.match(/^.*?\]/)||(h.linkText=!0,k.highlightFormatting&&(h.formatting="link")),I(h);if(z==="]"&&h.linkText){k.highlightFormatting&&(h.formatting="link");var ke=I(h);return h.linkText=!1,h.inline=h.f=v.match(/\(.*?\)| ?\[.*?\]/,!1)?c:D,ke}if(z==="<"&&v.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){h.f=h.inline=Y,k.highlightFormatting&&(h.formatting="link");var ke=I(h);return ke?ke+=" ":ke="",ke+T.linkInline}if(z==="<"&&v.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){h.f=h.inline=Y,k.highlightFormatting&&(h.formatting="link");var ke=I(h);return ke?ke+=" ":ke="",ke+T.linkEmail}if(k.xml&&z==="<"&&v.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ze=v.string.indexOf(">",v.pos);if(Ze!=-1){var pt=v.string.substring(v.start,Ze);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pt)&&(h.md_inside=!0)}return v.backUp(1),h.htmlState=x.startState(y),De(v,h,He)}if(k.xml&&z==="<"&&v.match(/^\/\w*?>/))return h.md_inside=!1,"tag";if(z==="*"||z==="_"){for(var we=1,Ee=v.pos==1?" ":v.string.charAt(v.pos-2);we<3&&v.eat(z);)we++;var Ke=v.peek()||" ",ot=!/\s/.test(Ke)&&(!te.test(Ke)||/\s/.test(Ee)||te.test(Ee)),ye=!/\s/.test(Ee)&&(!te.test(Ee)||/\s/.test(Ke)||te.test(Ke)),Ce=null,w=null;if(we%2&&(!h.em&&ot&&(z==="*"||!ye||te.test(Ee))?Ce=!0:h.em==z&&ye&&(z==="*"||!ot||te.test(Ke))&&(Ce=!1)),we>1&&(!h.strong&&ot&&(z==="*"||!ye||te.test(Ee))?w=!0:h.strong==z&&ye&&(z==="*"||!ot||te.test(Ke))&&(w=!1)),w!=null||Ce!=null){k.highlightFormatting&&(h.formatting=Ce==null?"strong":w==null?"em":"strong em"),Ce===!0&&(h.em=z),w===!0&&(h.strong=z);var J=I(h);return Ce===!1&&(h.em=!1),w===!1&&(h.strong=!1),J}}else if(z===" "&&(v.eat("*")||v.eat("_"))){if(v.peek()===" ")return I(h);v.backUp(1)}if(k.strikethrough){if(z==="~"&&v.eatWhile(z)){if(h.strikethrough){k.highlightFormatting&&(h.formatting="strikethrough");var J=I(h);return h.strikethrough=!1,J}else if(v.match(/^[^\s]/,!1))return h.strikethrough=!0,k.highlightFormatting&&(h.formatting="strikethrough"),I(h)}else if(z===" "&&v.match("~~",!0)){if(v.peek()===" ")return I(h);v.backUp(2)}}if(k.emoji&&z===":"&&v.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){h.emoji=!0,k.highlightFormatting&&(h.formatting="emoji");var O=I(h);return h.emoji=!1,O}return z===" "&&(v.match(/^ +$/,!1)?h.trailingSpace++:h.trailingSpace&&(h.trailingSpaceNewLine=!0)),I(h)}function Y(v,h){var Z=v.next();if(Z===">"){h.f=h.inline=D,k.highlightFormatting&&(h.formatting="link");var de=I(h);return de?de+=" ":de="",de+T.linkInline}return v.match(/^[^>]+/,!0),T.linkInline}function c(v,h){if(v.eatSpace())return null;var Z=v.next();return Z==="("||Z==="["?(h.f=h.inline=N(Z==="("?")":"]"),k.highlightFormatting&&(h.formatting="link-string"),h.linkHref=!0,I(h)):"error"}var U={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(v){return function(h,Z){var de=h.next();if(de===v){Z.f=Z.inline=D,k.highlightFormatting&&(Z.formatting="link-string");var z=I(Z);return Z.linkHref=!1,z}return h.match(U[v]),Z.linkHref=!0,I(Z)}}function oe(v,h){return v.match(/^([^\]\\]|\\.)*\]:/,!1)?(h.f=Te,v.next(),k.highlightFormatting&&(h.formatting="link"),h.linkText=!0,I(h)):fe(v,h,D)}function Te(v,h){if(v.match("]:",!0)){h.f=h.inline=ze,k.highlightFormatting&&(h.formatting="link");var Z=I(h);return h.linkText=!1,Z}return v.match(/^([^\]\\]|\\.)+/,!0),T.linkText}function ze(v,h){return v.eatSpace()?null:(v.match(/^[^\s]+/,!0),v.peek()===void 0?h.linkTitle=!0:v.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),h.f=h.inline=D,T.linkHref+" url")}var wt={startState:function(){return{f:Pe,prevLine:{stream:null},thisLine:{stream:null},block:Pe,htmlState:null,indentation:0,inline:D,text:We,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(v){return{f:v.f,prevLine:v.prevLine,thisLine:v.thisLine,block:v.block,htmlState:v.htmlState&&x.copyState(y,v.htmlState),indentation:v.indentation,localMode:v.localMode,localState:v.localMode?x.copyState(v.localMode,v.localState):null,inline:v.inline,text:v.text,formatting:!1,linkText:v.linkText,linkTitle:v.linkTitle,linkHref:v.linkHref,code:v.code,em:v.em,strong:v.strong,strikethrough:v.strikethrough,emoji:v.emoji,header:v.header,setext:v.setext,hr:v.hr,taskList:v.taskList,list:v.list,listStack:v.listStack.slice(0),quote:v.quote,indentedCode:v.indentedCode,trailingSpace:v.trailingSpace,trailingSpaceNewLine:v.trailingSpaceNewLine,md_inside:v.md_inside,fencedEndRE:v.fencedEndRE}},token:function(v,h){if(h.formatting=!1,v!=h.thisLine.stream){if(h.header=0,h.hr=!1,v.match(/^\s*$/,!0))return nt(h),null;if(h.prevLine=h.thisLine,h.thisLine={stream:v},h.taskList=!1,h.trailingSpace=0,h.trailingSpaceNewLine=!1,!h.localState&&(h.f=h.block,h.f!=He)){var Z=v.match(/^\s*/,!0)[0].replace(/\t/g,Q).length;if(h.indentation=Z,h.indentationDiff=null,Z>0)return null}}return h.f(v,h)},innerMode:function(v){return v.block==He?{state:v.htmlState,mode:y}:v.localState?{state:v.localState,mode:v.localMode}:{state:v,mode:wt}},indent:function(v,h,Z){return v.block==He&&y.indent?y.indent(v.htmlState,h,Z):v.localState&&v.localMode.indent?v.localMode.indent(v.localState,h,Z):x.Pass},blankLine:nt,getType:I,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return wt},"xml"),x.defineMIME("text/markdown","markdown"),x.defineMIME("text/x-markdown","markdown")})})();(function(Tt,_){(function(x){x(Gt)})(function(x){x.defineMode("yaml",function(){var W=["true","false","on","off","yes","no"],k=new RegExp("\\b(("+W.join(")|(")+"))$","i");return{token:function(y,C){var q=y.peek(),T=C.escaped;if(C.escaped=!1,q=="#"&&(y.pos==0||/\s/.test(y.string.charAt(y.pos-1))))return y.skipToEnd(),"comment";if(y.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(C.literal&&y.indentation()>C.keyCol)return y.skipToEnd(),"string";if(C.literal&&(C.literal=!1),y.sol()){if(C.keyCol=0,C.pair=!1,C.pairStart=!1,y.match("---")||y.match("..."))return"def";if(y.match(/\s*-\s+/))return"meta"}if(y.match(/^(\{|\}|\[|\])/))return q=="{"?C.inlinePairs++:q=="}"?C.inlinePairs--:q=="["?C.inlineList++:C.inlineList--,"meta";if(C.inlineList>0&&!T&&q==",")return y.next(),"meta";if(C.inlinePairs>0&&!T&&q==",")return C.keyCol=0,C.pair=!1,C.pairStart=!1,y.next(),"meta";if(C.pairStart){if(y.match(/^\s*(\||\>)\s*/))return C.literal=!0,"meta";if(y.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(C.inlinePairs==0&&y.match(/^\s*-?[0-9\.\,]+\s?$/)||C.inlinePairs>0&&y.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(y.match(k))return"keyword"}return!C.pair&&y.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)?(C.pair=!0,C.keyCol=y.indentation(),"atom"):C.pair&&y.match(/^:\s*/)?(C.pairStart=!0,"meta"):(C.pairStart=!1,C.escaped=q=="\\",y.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),x.defineMIME("text/x-yaml","yaml"),x.defineMIME("text/yaml","yaml")})})();class Mu extends ga.Component{constructor(_){super(_),this.appliedNext=void 0,this.deferred=void 0,this.editor=void 0,this.emulating=void 0,this.hydrated=void 0,this.initCb=void 0,this.mirror=void 0,this.mounted=void 0,this.ref=void 0,this.shared=void 0,this.appliedNext=!1,this.deferred=null,this.emulating=!1,this.hydrated=!1,this.initCb=()=>{this.props.editorDidConfigure&&this.props.editorDidConfigure(this.editor)},this.mounted=!1}hydrate(_){const x=_&&_.options?_.options:{},W=Object.assign({},Hi.defaults,this.editor.options,x);Object.keys(W).some(y=>this.editor.getOption(y)!==W[y])&&Object.keys(W).forEach(y=>{x.hasOwnProperty(y)&&this.editor.getOption(y)!==W[y]&&(this.editor.setOption(y,W[y]),this.mirror.setOption(y,W[y]))}),this.hydrated||(this.deferred?this.resolveChange(_.value):this.initChange(_.value||"")),this.hydrated=!0}initChange(_){this.emulating=!0;const x=this.editor.getDoc(),W=x.lastLine(),k=x.getLine(x.lastLine()).length;x.replaceRange(_||"",{line:0,ch:0},{line:W,ch:k}),this.mirror.setValue(_),x.clearHistory(),this.mirror.clearHistory(),this.emulating=!1}resolveChange(_){this.emulating=!0;const x=this.editor.getDoc();if(this.deferred.origin==="undo"?x.undo():this.deferred.origin==="redo"?x.redo():x.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),_&&_!==x.getValue()){const W=x.getCursor();x.setValue(_),x.setCursor(W)}this.emulating=!1,this.deferred=null}mirrorChange(_){const x=this.editor.getDoc();return _.origin==="undo"?(x.setHistory(this.mirror.getHistory()),this.mirror.undo()):_.origin==="redo"?(x.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(_.text,_.from,_.to,_.origin),this.mirror.getValue()}componentDidMount(){this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&Hi.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=Hi(this.ref,this.props.options),this.shared=new Au(this.editor,this.props),this.mirror=Hi(()=>{},this.props.options),this.editor.on("electricInput",()=>{this.mirror.setHistory(this.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",()=>{this.mirror.setCursor(this.editor.getDoc().getCursor())}),this.editor.on("beforeChange",(_,x)=>{if(this.emulating)return;x.cancel(),this.deferred=x;const W=this.mirrorChange(this.deferred);this.props.onBeforeChange&&this.props.onBeforeChange(this.editor,this.deferred,W)}),this.editor.on("change",(_,x)=>{this.mounted&&this.props.onChange&&this.props.onChange(this.editor,x,this.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb)}componentDidUpdate(_){const x={cursor:void 0};this.props.value!==_.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(x.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(_,this.props,x),this.appliedNext=!0),this.shared.applyUserDefined(_,x)}componentWillUnmount(){this.props.editorWillUnmount&&this.props.editorWillUnmount(Hi)}shouldComponentUpdate(){return!0}render(){const _=this.props.className?`react-codemirror2 ${this.props.className}`:"react-codemirror2";return ga.createElement("div",{className:_,ref:x=>this.ref=x})}}Mu.displayName="Controlled";class po{static equals(_,x){const W=Object.keys,k=typeof _;return _&&x&&k==="object"&&k===typeof x?W(_).length===W(x).length&&W(_).every(C=>this.equals(_[C],x[C])):_===x}}class Au{constructor(_,x){this.editor=void 0,this.props=void 0,this.editor=_,this.props=x}delegateCursor(_,x,W){const k=this.editor.getDoc();W&&this.editor.focus(),x?k.setCursor(_):k.setCursor(_,void 0,{scroll:!1})}delegateScroll(_){this.editor.scrollTo(_.x,_.y)}delegateSelection(_,x){this.editor.getDoc().setSelections(_),x&&this.editor.focus()}apply(_){_&&_.selection&&_.selection.ranges&&this.delegateSelection(_.selection.ranges,_.selection.focus||!1),_&&_.cursor&&this.delegateCursor(_.cursor,_.autoScroll||!1,this.editor.getOption("autofocus")||!1),_&&_.scroll&&this.delegateScroll(_.scroll)}applyNext(_,x,W){_&&_.selection&&_.selection.ranges&&x&&x.selection&&x.selection.ranges&&!po.equals(_.selection.ranges,x.selection.ranges)&&this.delegateSelection(x.selection.ranges,x.selection.focus||!1),_&&_.cursor&&x&&x.cursor&&!po.equals(_.cursor,x.cursor)&&this.delegateCursor(W.cursor||x.cursor,x.autoScroll||!1,x.autoCursor||!1),_&&_.scroll&&x&&x.scroll&&!po.equals(_.scroll,x.scroll)&&this.delegateScroll(x.scroll)}applyUserDefined(_,x){x&&x.cursor&&this.delegateCursor(x.cursor,_.autoScroll||!1,this.editor.getOption("autofocus")||!1)}wire(_){Object.keys(_||{}).filter(x=>/^on/.test(x)).forEach(x=>{switch(x){case"onBlur":this.editor.on("blur",(W,k)=>{var y,C;(y=(C=this.props).onBlur)===null||y===void 0||y.call(C,this.editor,k)});break;case"onContextMenu":{this.editor.on("contextmenu",(W,k)=>{var y,C;(y=(C=this.props).onContextMenu)===null||y===void 0||y.call(C,this.editor,k)});break}case"onCopy":{this.editor.on("copy",(W,k)=>{var y,C;(y=(C=this.props).onCopy)===null||y===void 0||y.call(C,this.editor,k)});break}case"onCursor":this.editor.on("cursorActivity",()=>{var W,k;(W=(k=this.props).onCursor)===null||W===void 0||W.call(k,this.editor,this.editor.getDoc().getCursor())});break;case"onCursorActivity":this.editor.on("cursorActivity",()=>{var W,k;(W=(k=this.props).onCursorActivity)===null||W===void 0||W.call(k,this.editor)});break;case"onCut":{this.editor.on("cut",(W,k)=>{var y,C;(y=(C=this.props).onCut)===null||y===void 0||y.call(C,this.editor,k)});break}case"onDblClick":{this.editor.on("dblclick",(W,k)=>{var y,C;(y=(C=this.props).onDblClick)===null||y===void 0||y.call(C,this.editor,k)});break}case"onDragEnter":this.editor.on("dragenter",(W,k)=>{var y,C;(y=(C=this.props).onDragEnter)===null||y===void 0||y.call(C,this.editor,k)});break;case"onDragLeave":{this.editor.on("dragleave",(W,k)=>{var y,C;(y=(C=this.props).onDragLeave)===null||y===void 0||y.call(C,this.editor,k)});break}case"onDragOver":this.editor.on("dragover",(W,k)=>{var y,C;(y=(C=this.props).onDragOver)===null||y===void 0||y.call(C,this.editor,k)});break;case"onDragStart":{this.editor.on("dragstart",(W,k)=>{var y,C;(y=(C=this.props).onDragStart)===null||y===void 0||y.call(C,this.editor,k)});break}case"onDrop":this.editor.on("drop",(W,k)=>{var y,C;(y=(C=this.props).onDrop)===null||y===void 0||y.call(C,this.editor,k)});break;case"onFocus":this.editor.on("focus",(W,k)=>{var y,C;(y=(C=this.props).onFocus)===null||y===void 0||y.call(C,this.editor,k)});break;case"onGutterClick":this.editor.on("gutterClick",(W,k,y,C)=>{var q,T;(q=(T=this.props).onGutterClick)===null||q===void 0||q.call(T,this.editor,k,y,C)});break;case"onInputRead":this.editor.on("inputRead",(W,k)=>{var y,C;(y=(C=this.props).onInputRead)===null||y===void 0||y.call(C,this.editor,k)});break;case"onKeyDown":this.editor.on("keydown",(W,k)=>{var y,C;(y=(C=this.props).onKeyDown)===null||y===void 0||y.call(C,this.editor,k)});break;case"onKeyHandled":this.editor.on("keyHandled",(W,k,y)=>{var C,q;(C=(q=this.props).onKeyHandled)===null||C===void 0||C.call(q,this.editor,k,y)});break;case"onKeyPress":this.editor.on("keypress",(W,k)=>{var y,C;(y=(C=this.props).onKeyPress)===null||y===void 0||y.call(C,this.editor,k)});break;case"onKeyUp":this.editor.on("keyup",(W,k)=>{var y,C;(y=(C=this.props).onKeyUp)===null||y===void 0||y.call(C,this.editor,k)});break;case"onMouseDown":{this.editor.on("mousedown",(W,k)=>{var y,C;(y=(C=this.props).onMouseDown)===null||y===void 0||y.call(C,this.editor,k)});break}case"onPaste":{this.editor.on("paste",(W,k)=>{var y,C;(y=(C=this.props).onPaste)===null||y===void 0||y.call(C,this.editor,k)});break}case"onRenderLine":{this.editor.on("renderLine",(W,k,y)=>{var C,q;(C=(q=this.props).onRenderLine)===null||C===void 0||C.call(q,this.editor,k,y)});break}case"onScroll":this.editor.on("scroll",W=>{var k,y;(k=(y=this.props).onScroll)===null||k===void 0||k.call(y,this.editor,this.editor.getScrollInfo())});break;case"onSelection":this.editor.on("beforeSelectionChange",(W,k)=>{var y,C;(y=(C=this.props).onSelection)===null||y===void 0||y.call(C,this.editor,k)});break;case"onTouchStart":{this.editor.on("touchstart",(W,k)=>{var y,C;(y=(C=this.props).onTouchStart)===null||y===void 0||y.call(C,this.editor,k)});break}case"onUpdate":this.editor.on("update",W=>{var k,y;(k=(y=this.props).onUpdate)===null||k===void 0||k.call(y,this.editor)});break;case"onViewportChange":this.editor.on("viewportChange",(W,k,y)=>{var C,q;(C=(q=this.props).onViewportChange)===null||C===void 0||C.call(q,this.editor,k,y)});break}})}}export{Au as Shared,Mu as default}; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var g;ie&&(g=n.ownerDocument.defaultView.scrollY),r.input.focus(),ie&&n.ownerDocument.defaultView.scrollTo(null,g),r.input.reset(),i.somethingSelected()||(n.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function b(){if(n.selectionStart!=null){var F=i.somethingSelected(),H="​"+(F?n.value:"");n.value="⇚",n.value=H,t.prevInput=F?"":"​",n.selectionStart=1,n.selectionEnd=H.length,r.selForContextMenu=i.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,n.style.cssText=s,T&&se<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),n.selectionStart!=null)){(!T||T&&se<9)&&b();var F=0,H=function(){r.selForContextMenu==i.doc.sel&&n.selectionStart==0&&n.selectionEnd>0&&t.prevInput=="​"?et(i,Pl)(i):F++<10?r.detectingSelectAll=setTimeout(H,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(H,200)}}if(T&&se>=9&&b(),pe){lr(e);var L=function(){st(window,"mouseup",L),setTimeout(m,20)};le(window,"mouseup",L)}else setTimeout(m,50)},Ue.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ue.prototype.setUneditable=function(){},Ue.prototype.needsContentAttribute=!1;function Cu(e,t){if(t=t?ge(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=Te(de(e));t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=a.getValue()}var n;if(e.form&&(le(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;n=o.submit;try{var l=o.submit=function(){r(),o.submit=n,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(st(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=n))}},e.style.display="none";var a=Ie(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function Lu(e){e.off=st,e.on=le,e.wheelEventPixels=Ns,e.Doc=xt,e.splitLines=Ft,e.countColumn=xe,e.findColumn=Ee,e.isWordChar=at,e.Pass=Oe,e.signal=Re,e.Line=Br,e.changeEnd=pr,e.scrollbarModel=fl,e.Pos=S,e.cmpPos=G,e.modes=Or,e.mimeModes=Pt,e.resolveMode=Pr,e.getMode=Hr,e.modeExtensions=ur,e.extendMode=Wr,e.copyState=_t,e.startState=Ir,e.innerMode=li,e.commands=Fi,e.keyMap=tr,e.keyName=Zl,e.isModifierKey=Yl,e.lookupKey=Qr,e.normalizeKeyMap=eu,e.StringStream=qe,e.SharedTextMarker=Di,e.TextMarker=vr,e.LineWidget=Ti,e.e_preventDefault=ut,e.e_stopPropagation=Er,e.e_stop=lr,e.addClass=ze,e.contains=oe,e.rmClass=We,e.keyNames=mr}vu(Ie),bu(Ie);var Tu="iter insert remove copy getEditor constructor".split(" ");for(var vn in xt.prototype)xt.prototype.hasOwnProperty(vn)&&J(Tu,vn)<0&&(Ie.prototype[vn]=function(e){return function(){return e.apply(this.doc,arguments)}}(xt.prototype[vn]));return Et(xt),Ie.inputStyles={textarea:Ue,contenteditable:Fe},Ie.defineMode=function(e){!Ie.defaults.mode&&e!="null"&&(Ie.defaults.mode=e),Ht.apply(this,arguments)},Ie.defineMIME=br,Ie.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ie.defineMIME("text/plain","null"),Ie.defineExtension=function(e,t){Ie.prototype[e]=t},Ie.defineDocExtension=function(e,t){xt.prototype[e]=t},Ie.fromTextArea=Cu,Lu(Ie),Ie.version="5.65.16",Ie})}(po)),po.exports}var Au=Gt();const Hi=Mu(Au);var xa={exports:{}},ya;function vo(){return ya||(ya=1,function(Tt,_){(function(x){x(Gt())})(function(x){var W={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},k={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};x.defineMode("xml",function(y,C){var q=y.indentUnit,T={},se=C.htmlMode?W:k;for(var ie in se)T[ie]=se[ie];for(var ie in C)T[ie]=C[ie];var ve,ee;function j(c,U){function N(ze){return U.tokenize=ze,ze(c,U)}var oe=c.next();if(oe=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?N(ce("atom","]]>")):null:c.match("--")?N(ce("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),N(ue(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),U.tokenize=ce("meta","?>"),"meta"):(ve=c.eat("/")?"closeTag":"openTag",U.tokenize=E,"tag bracket");if(oe=="&"){var Te;return c.eat("#")?c.eat("x")?Te=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):Te=c.eatWhile(/[\d]/)&&c.eat(";"):Te=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),Te?"atom":"error"}else return c.eatWhile(/[^&<]/),null}j.isInText=!0;function E(c,U){var N=c.next();if(N==">"||N=="/"&&c.eat(">"))return U.tokenize=j,ve=N==">"?"endTag":"selfcloseTag","tag bracket";if(N=="=")return ve="equals",null;if(N=="<"){U.tokenize=j,U.state=Ge,U.tagName=U.tagStart=null;var oe=U.tokenize(c,U);return oe?oe+" tag error":"tag error"}else return/[\'\"]/.test(N)?(U.tokenize=K(N),U.stringStartCol=c.column(),U.tokenize(c,U)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function K(c){var U=function(N,oe){for(;!N.eol();)if(N.next()==c){oe.tokenize=E;break}return"string"};return U.isInAttribute=!0,U}function ce(c,U){return function(N,oe){for(;!N.eol();){if(N.match(U)){oe.tokenize=j;break}N.next()}return c}}function ue(c){return function(U,N){for(var oe;(oe=U.next())!=null;){if(oe=="<")return N.tokenize=ue(c+1),N.tokenize(U,N);if(oe==">")if(c==1){N.tokenize=j;break}else return N.tokenize=ue(c-1),N.tokenize(U,N)}return"meta"}}function te(c){return c&&c.toLowerCase()}function Q(c,U,N){this.prev=c.context,this.tagName=U||"",this.indent=c.indented,this.startOfLine=N,(T.doNotIndent.hasOwnProperty(U)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function fe(c){c.context&&(c.context=c.context.prev)}function De(c,U){for(var N;;){if(!c.context||(N=c.context.tagName,!T.contextGrabbers.hasOwnProperty(te(N))||!T.contextGrabbers[te(N)].hasOwnProperty(te(U))))return;fe(c)}}function Ge(c,U,N){return c=="openTag"?(N.tagStart=U.column(),nt):c=="closeTag"?Pe:Ge}function nt(c,U,N){return c=="word"?(N.tagName=U.current(),ee="tag",I):T.allowMissingTagName&&c=="endTag"?(ee="tag bracket",I(c,U,N)):(ee="error",nt)}function Pe(c,U,N){if(c=="word"){var oe=U.current();return N.context&&N.context.tagName!=oe&&T.implicitlyClosed.hasOwnProperty(te(N.context.tagName))&&fe(N),N.context&&N.context.tagName==oe||T.matchClosing===!1?(ee="tag",He):(ee="tag error",pe)}else return T.allowMissingTagName&&c=="endTag"?(ee="tag bracket",He(c,U,N)):(ee="error",pe)}function He(c,U,N){return c!="endTag"?(ee="error",He):(fe(N),Ge)}function pe(c,U,N){return ee="error",He(c,U,N)}function I(c,U,N){if(c=="word")return ee="attribute",We;if(c=="endTag"||c=="selfcloseTag"){var oe=N.tagName,Te=N.tagStart;return N.tagName=N.tagStart=null,c=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(te(oe))?De(N,oe):(De(N,oe),N.context=new Q(N,oe,Te==N.indented)),Ge}return ee="error",I}function We(c,U,N){return c=="equals"?D:(T.allowMissing||(ee="error"),I(c,U,N))}function D(c,U,N){return c=="string"?Y:c=="word"&&T.allowUnquoted?(ee="string",I):(ee="error",I(c,U,N))}function Y(c,U,N){return c=="string"?Y:I(c,U,N)}return{startState:function(c){var U={tokenize:j,state:Ge,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(U.baseIndent=c),U},token:function(c,U){if(!U.tagName&&c.sol()&&(U.indented=c.indentation()),c.eatSpace())return null;ve=null;var N=U.tokenize(c,U);return(N||ve)&&N!="comment"&&(ee=null,U.state=U.state(ve||N,c,U),ee&&(N=ee=="error"?N+" error":ee)),N},indent:function(c,U,N){var oe=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+q;if(oe&&oe.noIndent)return x.Pass;if(c.tokenize!=E&&c.tokenize!=j)return N?N.match(/^(\s*)/)[0].length:0;if(c.tagName)return T.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+q*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/$/,blockCommentStart:"",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(c){c.state==D&&(c.state=I)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var U=[],N=c.context;N;N=N.prev)U.push(N.tagName);return U.reverse()}}}),x.defineMIME("text/xml","xml"),x.defineMIME("application/xml","xml"),x.mimeModes.hasOwnProperty("text/html")||x.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xa.exports}var ba={exports:{}},ka;function Ta(){return ka||(ka=1,function(Tt,_){(function(x){x(Gt())})(function(x){x.defineMode("javascript",function(W,k){var y=W.indentUnit,C=k.statementIndent,q=k.jsonld,T=k.json||q,se=k.trackScope!==!1,ie=k.typescript,ve=k.wordCharacters||/[\w$\xa1-\uffff]/,ee=function(){function f(Qe){return{type:Qe,style:"keyword"}}var p=f("keyword a"),A=f("keyword b"),P=f("keyword c"),S=f("keyword d"),G=f("operator"),Me={type:"atom",style:"atom"};return{if:f("if"),while:p,with:p,else:A,do:A,try:A,finally:A,return:S,break:S,continue:S,new:f("new"),delete:P,void:P,throw:P,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:G,typeof:G,instanceof:G,true:Me,false:Me,null:Me,undefined:Me,NaN:Me,Infinity:Me,this:f("this"),class:f("class"),super:f("atom"),yield:P,export:f("export"),import:f("import"),extends:P,await:P}}(),j=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function K(f){for(var p=!1,A,P=!1;(A=f.next())!=null;){if(!p){if(A=="/"&&!P)return;A=="["?P=!0:P&&A=="]"&&(P=!1)}p=!p&&A=="\\"}}var ce,ue;function te(f,p,A){return ce=f,ue=A,p}function Q(f,p){var A=f.next();if(A=='"'||A=="'")return p.tokenize=fe(A),p.tokenize(f,p);if(A=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return te("number","number");if(A=="."&&f.match(".."))return te("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(A))return te(A);if(A=="="&&f.eat(">"))return te("=>","operator");if(A=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return te("number","number");if(/\d/.test(A))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),te("number","number");if(A=="/")return f.eat("*")?(p.tokenize=De,De(f,p)):f.eat("/")?(f.skipToEnd(),te("comment","comment")):Dt(f,p,1)?(K(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),te("regexp","string-2")):(f.eat("="),te("operator","operator",f.current()));if(A=="`")return p.tokenize=Ge,Ge(f,p);if(A=="#"&&f.peek()=="!")return f.skipToEnd(),te("meta","meta");if(A=="#"&&f.eatWhile(ve))return te("variable","property");if(A=="<"&&f.match("!--")||A=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),te("comment","comment");if(j.test(A))return(A!=">"||!p.lexical||p.lexical.type!=">")&&(f.eat("=")?(A=="!"||A=="=")&&f.eat("="):/[<>*+\-|&?]/.test(A)&&(f.eat(A),A==">"&&f.eat(A))),A=="?"&&f.eat(".")?te("."):te("operator","operator",f.current());if(ve.test(A)){f.eatWhile(ve);var P=f.current();if(p.lastType!="."){if(ee.propertyIsEnumerable(P)){var S=ee[P];return te(S.type,S.style,P)}if(P=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return te("async","keyword",P)}return te("variable","variable",P)}}function fe(f){return function(p,A){var P=!1,S;if(q&&p.peek()=="@"&&p.match(E))return A.tokenize=Q,te("jsonld-keyword","meta");for(;(S=p.next())!=null&&!(S==f&&!P);)P=!P&&S=="\\";return P||(A.tokenize=Q),te("string","string")}}function De(f,p){for(var A=!1,P;P=f.next();){if(P=="/"&&A){p.tokenize=Q;break}A=P=="*"}return te("comment","comment")}function Ge(f,p){for(var A=!1,P;(P=f.next())!=null;){if(!A&&(P=="`"||P=="$"&&f.eat("{"))){p.tokenize=Q;break}A=!A&&P=="\\"}return te("quasi","string-2",f.current())}var nt="([{}])";function Pe(f,p){p.fatArrowAt&&(p.fatArrowAt=null);var A=f.string.indexOf("=>",f.start);if(!(A<0)){if(ie){var P=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,A));P&&(A=P.index)}for(var S=0,G=!1,Me=A-1;Me>=0;--Me){var Qe=f.string.charAt(Me),vt=nt.indexOf(Qe);if(vt>=0&&vt<3){if(!S){++Me;break}if(--S==0){Qe=="("&&(G=!0);break}}else if(vt>=3&&vt<6)++S;else if(ve.test(Qe))G=!0;else if(/["'\/`]/.test(Qe))for(;;--Me){if(Me==0)return;var zr=f.string.charAt(Me-1);if(zr==Qe&&f.string.charAt(Me-2)!="\\"){Me--;break}}else if(G&&!S){++Me;break}}G&&!S&&(p.fatArrowAt=Me)}}var He={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function pe(f,p,A,P,S,G){this.indented=f,this.column=p,this.type=A,this.prev=S,this.info=G,P!=null&&(this.align=P)}function I(f,p){if(!se)return!1;for(var A=f.localVars;A;A=A.next)if(A.name==p)return!0;for(var P=f.context;P;P=P.prev)for(var A=P.vars;A;A=A.next)if(A.name==p)return!0}function We(f,p,A,P,S){var G=f.cc;for(D.state=f,D.stream=S,D.marked=null,D.cc=G,D.style=p,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var Me=G.length?G.pop():T?J:xe;if(Me(A,P)){for(;G.length&&G[G.length-1].lex;)G.pop()();return D.marked?D.marked:A=="variable"&&I(f,P)?"variable-2":p}}}var D={state:null,column:null,marked:null,cc:null};function Y(){for(var f=arguments.length-1;f>=0;f--)D.cc.push(arguments[f])}function c(){return Y.apply(null,arguments),!0}function U(f,p){for(var A=p;A;A=A.next)if(A.name==f)return!0;return!1}function N(f){var p=D.state;if(D.marked="def",!!se){if(p.context){if(p.lexical.info=="var"&&p.context&&p.context.block){var A=oe(f,p.context);if(A!=null){p.context=A;return}}else if(!U(f,p.localVars)){p.localVars=new wt(f,p.localVars);return}}k.globalVars&&!U(f,p.globalVars)&&(p.globalVars=new wt(f,p.globalVars))}}function oe(f,p){if(p)if(p.block){var A=oe(f,p.prev);return A?A==p.prev?p:new ze(A,p.vars,!0):null}else return U(f,p.vars)?p:new ze(p.prev,new wt(f,p.vars),!1);else return null}function Te(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function ze(f,p,A){this.prev=f,this.vars=p,this.block=A}function wt(f,p){this.name=f,this.next=p}var v=new wt("this",new wt("arguments",null));function h(){D.state.context=new ze(D.state.context,D.state.localVars,!1),D.state.localVars=v}function Z(){D.state.context=new ze(D.state.context,D.state.localVars,!0),D.state.localVars=null}h.lex=Z.lex=!0;function de(){D.state.localVars=D.state.context.vars,D.state.context=D.state.context.prev}de.lex=!0;function z(f,p){var A=function(){var P=D.state,S=P.indented;if(P.lexical.type=="stat")S=P.lexical.indented;else for(var G=P.lexical;G&&G.type==")"&&G.align;G=G.prev)S=G.indented;P.lexical=new pe(S,D.stream.column(),f,null,P.lexical,p)};return A.lex=!0,A}function re(){var f=D.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}re.lex=!0;function ge(f){function p(A){return A==f?c():f==";"||A=="}"||A==")"||A=="]"?Y():c(p)}return p}function xe(f,p){return f=="var"?c(z("vardef",p),Er,ge(";"),re):f=="keyword a"?c(z("form"),Oe,xe,re):f=="keyword b"?c(z("form"),xe,re):f=="keyword d"?D.stream.match(/^\s*$/,!1)?c():c(z("stat"),pt,ge(";"),re):f=="debugger"?c(ge(";")):f=="{"?c(z("}"),Z,Rt,re,de):f==";"?c():f=="if"?(D.state.lexical.info=="else"&&D.state.cc[D.state.cc.length-1]==re&&D.state.cc.pop()(),c(z("form"),Oe,xe,re,Nr)):f=="function"?c(Ft):f=="for"?c(z("form"),Z,zi,xe,de,re):f=="class"||ie&&p=="interface"?(D.marked="keyword",c(z("form",f=="class"?f:p),Or,re)):f=="variable"?ie&&p=="declare"?(D.marked="keyword",c(xe)):ie&&(p=="module"||p=="enum"||p=="type")&&D.stream.match(/^\s*\w/,!1)?(D.marked="keyword",p=="enum"?c(V):p=="type"?c(Bi,ge("operator"),Se,ge(";")):c(z("form"),gt,ge("{"),z("}"),Rt,re,re)):ie&&p=="namespace"?(D.marked="keyword",c(z("form"),J,xe,re)):ie&&p=="abstract"?(D.marked="keyword",c(xe)):c(z("stat"),Le):f=="switch"?c(z("form"),Oe,ge("{"),z("}","switch"),Z,Rt,re,re,de):f=="case"?c(J,ge(":")):f=="default"?c(ge(":")):f=="catch"?c(z("form"),h,he,xe,re,de):f=="export"?c(z("stat"),Pr,re):f=="import"?c(z("stat"),ur,re):f=="async"?c(xe):p=="@"?c(J,xe):Y(z("stat"),J,ge(";"),re)}function he(f){if(f=="(")return c(Ot,ge(")"))}function J(f,p){return Ze(f,p,!1)}function ke(f,p){return Ze(f,p,!0)}function Oe(f){return f!="("?Y():c(z(")"),pt,ge(")"),re)}function Ze(f,p,A){if(D.state.fatArrowAt==D.stream.start){var P=A?Ce:ye;if(f=="(")return c(h,z(")"),Xe(Ot,")"),re,ge("=>"),P,de);if(f=="variable")return Y(h,gt,ge("=>"),P,de)}var S=A?Ee:we;return He.hasOwnProperty(f)?c(S):f=="function"?c(Ft,S):f=="class"||ie&&p=="interface"?(D.marked="keyword",c(z("form"),yn,re)):f=="keyword c"||f=="async"?c(A?ke:J):f=="("?c(z(")"),pt,ge(")"),re,S):f=="operator"||f=="spread"?c(A?ke:J):f=="["?c(z("]"),qe,re,S):f=="{"?ir(Xt,"}",null,S):f=="quasi"?Y(Ke,S):f=="new"?c(w(A)):c()}function pt(f){return f.match(/[;\}\)\],]/)?Y():Y(J)}function we(f,p){return f==","?c(pt):Ee(f,p,!1)}function Ee(f,p,A){var P=A==!1?we:Ee,S=A==!1?J:ke;if(f=="=>")return c(h,A?Ce:ye,de);if(f=="operator")return/\+\+|--/.test(p)||ie&&p=="!"?c(P):ie&&p=="<"&&D.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(z(">"),Xe(Se,">"),re,P):p=="?"?c(J,ge(":"),S):c(S);if(f=="quasi")return Y(Ke,P);if(f!=";"){if(f=="(")return ir(ke,")","call",P);if(f==".")return c(at,P);if(f=="[")return c(z("]"),pt,ge("]"),re,P);if(ie&&p=="as")return D.marked="keyword",c(Se,P);if(f=="regexp")return D.state.lastType=D.marked="operator",D.stream.backUp(D.stream.pos-D.stream.start-1),c(S)}}function Ke(f,p){return f!="quasi"?Y():p.slice(p.length-2)!="${"?c(Ke):c(pt,ot)}function ot(f){if(f=="}")return D.marked="string-2",D.state.tokenize=Ge,c(Ke)}function ye(f){return Pe(D.stream,D.state),Y(f=="{"?xe:J)}function Ce(f){return Pe(D.stream,D.state),Y(f=="{"?xe:ke)}function w(f){return function(p){return p=="."?c(f?M:O):p=="variable"&&ie?c(St,f?Ee:we):Y(f?ke:J)}}function O(f,p){if(p=="target")return D.marked="keyword",c(we)}function M(f,p){if(p=="target")return D.marked="keyword",c(Ee)}function Le(f){return f==":"?c(re,xe):Y(we,ge(";"),re)}function at(f){if(f=="variable")return D.marked="property",c()}function Xt(f,p){if(f=="async")return D.marked="property",c(Xt);if(f=="variable"||D.style=="keyword"){if(D.marked="property",p=="get"||p=="set")return c(Wi);var A;return ie&&D.state.fatArrowAt==D.stream.start&&(A=D.stream.match(/^\s*:\s*/,!1))&&(D.state.fatArrowAt=D.stream.pos+A[0].length),c(Yt)}else{if(f=="number"||f=="string")return D.marked=q?"property":D.style+" property",c(Yt);if(f=="jsonld-keyword")return c(Yt);if(ie&&Te(p))return D.marked="keyword",c(Xt);if(f=="[")return c(J,nr,ge("]"),Yt);if(f=="spread")return c(ke,Yt);if(p=="*")return D.marked="keyword",c(Xt);if(f==":")return Y(Yt)}}function Wi(f){return f!="variable"?Y(Yt):(D.marked="property",c(Ft))}function Yt(f){if(f==":")return c(ke);if(f=="(")return Y(Ft)}function Xe(f,p,A){function P(S,G){if(A?A.indexOf(S)>-1:S==","){var Me=D.state.lexical;return Me.info=="call"&&(Me.pos=(Me.pos||0)+1),c(function(Qe,vt){return Qe==p||vt==p?Y():Y(f)},P)}return S==p||G==p?c():A&&A.indexOf(";")>-1?Y(f):c(ge(p))}return function(S,G){return S==p||G==p?c():Y(f,P)}}function ir(f,p,A){for(var P=3;P"),Se);if(f=="quasi")return Y(st,At)}function Ii(f){if(f=="=>")return c(Se)}function le(f){return f.match(/[\}\)\]]/)?c():f==","||f==";"?c(le):Y($t,le)}function $t(f,p){if(f=="variable"||D.style=="keyword")return D.marked="property",c($t);if(p=="?"||f=="number"||f=="string")return c($t);if(f==":")return c(Se);if(f=="[")return c(ge("variable"),yr,ge("]"),$t);if(f=="(")return Y(sr,$t);if(!f.match(/[;\}\)\],]/))return c()}function st(f,p){return f!="quasi"?Y():p.slice(p.length-2)!="${"?c(st):c(Se,Re)}function Re(f){if(f=="}")return D.marked="string-2",D.state.tokenize=Ge,c(st)}function _e(f,p){return f=="variable"&&D.stream.match(/^\s*[?:]/,!1)||p=="?"?c(_e):f==":"?c(Se):f=="spread"?c(_e):Y(Se)}function At(f,p){if(p=="<")return c(z(">"),Xe(Se,">"),re,At);if(p=="|"||f=="."||p=="&")return c(Se);if(f=="[")return c(Se,ge("]"),At);if(p=="extends"||p=="implements")return D.marked="keyword",c(Se);if(p=="?")return c(Se,ge(":"),Se)}function St(f,p){if(p=="<")return c(z(">"),Xe(Se,">"),re,At)}function Et(){return Y(Se,ut)}function ut(f,p){if(p=="=")return c(Se)}function Er(f,p){return p=="enum"?(D.marked="keyword",c(V)):Y(gt,nr,Nt,xn)}function gt(f,p){if(ie&&Te(p))return D.marked="keyword",c(gt);if(f=="variable")return N(p),c();if(f=="spread")return c(gt);if(f=="[")return ir(ni,"]");if(f=="{")return ir(lr,"}")}function lr(f,p){return f=="variable"&&!D.stream.match(/^\s*:/,!1)?(N(p),c(Nt)):(f=="variable"&&(D.marked="property"),f=="spread"?c(gt):f=="}"?Y():f=="["?c(J,ge("]"),ge(":"),lr):c(ge(":"),gt,Nt))}function ni(){return Y(gt,Nt)}function Nt(f,p){if(p=="=")return c(ke)}function xn(f){if(f==",")return c(Er)}function Nr(f,p){if(f=="keyword b"&&p=="else")return c(z("form","else"),xe,re)}function zi(f,p){if(p=="await")return c(zi);if(f=="(")return c(z(")"),oi,re)}function oi(f){return f=="var"?c(Er,ar):f=="variable"?c(ar):Y(ar)}function ar(f,p){return f==")"?c():f==";"?c(ar):p=="in"||p=="of"?(D.marked="keyword",c(J,ar)):Y(J,ar)}function Ft(f,p){if(p=="*")return D.marked="keyword",c(Ft);if(f=="variable")return N(p),c(Ft);if(f=="(")return c(h,z(")"),Xe(Ot,")"),re,or,xe,de);if(ie&&p=="<")return c(z(">"),Xe(Et,">"),re,Ft)}function sr(f,p){if(p=="*")return D.marked="keyword",c(sr);if(f=="variable")return N(p),c(sr);if(f=="(")return c(h,z(")"),Xe(Ot,")"),re,or,de);if(ie&&p=="<")return c(z(">"),Xe(Et,">"),re,sr)}function Bi(f,p){if(f=="keyword"||f=="variable")return D.marked="type",c(Bi);if(p=="<")return c(z(">"),Xe(Et,">"),re)}function Ot(f,p){return p=="@"&&c(J,Ot),f=="spread"?c(Ot):ie&&Te(p)?(D.marked="keyword",c(Ot)):ie&&f=="this"?c(nr,Nt):Y(gt,nr,Nt)}function yn(f,p){return f=="variable"?Or(f,p):Pt(f,p)}function Or(f,p){if(f=="variable")return N(p),c(Pt)}function Pt(f,p){if(p=="<")return c(z(">"),Xe(Et,">"),re,Pt);if(p=="extends"||p=="implements"||ie&&f==",")return p=="implements"&&(D.marked="keyword"),c(ie?Se:J,Pt);if(f=="{")return c(z("}"),Ht,re)}function Ht(f,p){if(f=="async"||f=="variable"&&(p=="static"||p=="get"||p=="set"||ie&&Te(p))&&D.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return D.marked="keyword",c(Ht);if(f=="variable"||D.style=="keyword")return D.marked="property",c(br,Ht);if(f=="number"||f=="string")return c(br,Ht);if(f=="[")return c(J,nr,ge("]"),br,Ht);if(p=="*")return D.marked="keyword",c(Ht);if(ie&&f=="(")return Y(sr,Ht);if(f==";"||f==",")return c(Ht);if(f=="}")return c();if(p=="@")return c(J,Ht)}function br(f,p){if(p=="!"||p=="?")return c(br);if(f==":")return c(Se,Nt);if(p=="=")return c(ke);var A=D.state.lexical.prev,P=A&&A.info=="interface";return Y(P?sr:Ft)}function Pr(f,p){return p=="*"?(D.marked="keyword",c(Ir,ge(";"))):p=="default"?(D.marked="keyword",c(J,ge(";"))):f=="{"?c(Xe(Hr,"}"),Ir,ge(";")):Y(xe)}function Hr(f,p){if(p=="as")return D.marked="keyword",c(ge("variable"));if(f=="variable")return Y(ke,Hr)}function ur(f){return f=="string"?c():f=="("?Y(J):f=="."?Y(we):Y(Wr,_t,Ir)}function Wr(f,p){return f=="{"?ir(Wr,"}"):(f=="variable"&&N(p),p=="*"&&(D.marked="keyword"),c(li))}function _t(f){if(f==",")return c(Wr,_t)}function li(f,p){if(p=="as")return D.marked="keyword",c(Wr)}function Ir(f,p){if(p=="from")return D.marked="keyword",c(J)}function qe(f){return f=="]"?c():Y(Xe(ke,"]"))}function V(){return Y(z("form"),gt,ge("{"),z("}"),Xe(Zt,"}"),re,re)}function Zt(){return Y(gt,Nt)}function ai(f,p){return f.lastType=="operator"||f.lastType==","||j.test(p.charAt(0))||/[,.]/.test(p.charAt(0))}function Dt(f,p,A){return p.tokenize==Q&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(p.lastType)||p.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(A||0)))}return{startState:function(f){var p={tokenize:Q,lastType:"sof",cc:[],lexical:new pe((f||0)-y,0,"block",!1),localVars:k.localVars,context:k.localVars&&new ze(null,null,!1),indented:f||0};return k.globalVars&&typeof k.globalVars=="object"&&(p.globalVars=k.globalVars),p},token:function(f,p){if(f.sol()&&(p.lexical.hasOwnProperty("align")||(p.lexical.align=!1),p.indented=f.indentation(),Pe(f,p)),p.tokenize!=De&&f.eatSpace())return null;var A=p.tokenize(f,p);return ce=="comment"?A:(p.lastType=ce=="operator"&&(ue=="++"||ue=="--")?"incdec":ce,We(p,A,ce,ue,f))},indent:function(f,p){if(f.tokenize==De||f.tokenize==Ge)return x.Pass;if(f.tokenize!=Q)return 0;var A=p&&p.charAt(0),P=f.lexical,S;if(!/^\s*else\b/.test(p))for(var G=f.cc.length-1;G>=0;--G){var Me=f.cc[G];if(Me==re)P=P.prev;else if(Me!=Nr&&Me!=de)break}for(;(P.type=="stat"||P.type=="form")&&(A=="}"||(S=f.cc[f.cc.length-1])&&(S==we||S==Ee)&&!/^[,\.=+\-*:?[\(]/.test(p));)P=P.prev;C&&P.type==")"&&P.prev.type=="stat"&&(P=P.prev);var Qe=P.type,vt=A==Qe;return Qe=="vardef"?P.indented+(f.lastType=="operator"||f.lastType==","?P.info.length+1:0):Qe=="form"&&A=="{"?P.indented:Qe=="form"?P.indented+y:Qe=="stat"?P.indented+(ai(f,p)?C||y:0):P.info=="switch"&&!vt&&k.doubleIndentSwitch!=!1?P.indented+(/^(?:case|default)\b/.test(p)?y:2*y):P.align?P.column+(vt?0:1):P.indented+(vt?0:y)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:T?null:"/*",blockCommentEnd:T?null:"*/",blockCommentContinue:T?null:" * ",lineComment:T?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:T?"json":"javascript",jsonldMode:q,jsonMode:T,expressionAllowed:Dt,skipExpression:function(f){We(f,"atom","atom","true",new x.StringStream("",2,null))}}}),x.registerHelper("wordChars","javascript",/[\w$]/),x.defineMIME("text/javascript","javascript"),x.defineMIME("text/ecmascript","javascript"),x.defineMIME("application/javascript","javascript"),x.defineMIME("application/x-javascript","javascript"),x.defineMIME("application/ecmascript","javascript"),x.defineMIME("application/json",{name:"javascript",json:!0}),x.defineMIME("application/x-json",{name:"javascript",json:!0}),x.defineMIME("application/manifest+json",{name:"javascript",json:!0}),x.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),x.defineMIME("text/typescript",{name:"javascript",typescript:!0}),x.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),ba.exports}(function(Tt,_){(function(x){x(Gt(),vo(),Ta())})(function(x){function W(y,C,q,T){this.state=y,this.mode=C,this.depth=q,this.prev=T}function k(y){return new W(x.copyState(y.mode,y.state),y.mode,y.depth,y.prev&&k(y.prev))}x.defineMode("jsx",function(y,C){var q=x.getMode(y,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),T=x.getMode(y,C&&C.base||"javascript");function se(j){var E=j.tagName;j.tagName=null;var K=q.indent(j,"","");return j.tagName=E,K}function ie(j,E){return E.context.mode==q?ve(j,E,E.context):ee(j,E,E.context)}function ve(j,E,K){if(K.depth==2)return j.match(/^.*?\*\//)?K.depth=1:j.skipToEnd(),"comment";if(j.peek()=="{"){q.skipAttribute(K.state);var ce=se(K.state),ue=K.state.context;if(ue&&j.match(/^[^>]*>\s*$/,!1)){for(;ue.prev&&!ue.startOfLine;)ue=ue.prev;ue.startOfLine?ce-=y.indentUnit:K.prev.state.lexical&&(ce=K.prev.state.lexical.indented)}else K.depth==1&&(ce+=y.indentUnit);return E.context=new W(x.startState(T,ce),T,0,E.context),null}if(K.depth==1){if(j.peek()=="<")return q.skipAttribute(K.state),E.context=new W(x.startState(q,se(K.state)),q,0,E.context),null;if(j.match("//"))return j.skipToEnd(),"comment";if(j.match("/*"))return K.depth=2,ie(j,E)}var te=q.token(j,K.state),Q=j.current(),fe;return/\btag\b/.test(te)?/>$/.test(Q)?K.state.context?K.depth=0:E.context=E.context.prev:/^-1&&j.backUp(Q.length-fe),te}function ee(j,E,K){if(j.peek()=="<"&&!j.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&T.expressionAllowed(j,K.state))return E.context=new W(x.startState(q,T.indent(K.state,"","")),q,0,E.context),T.skipExpression(K.state),null;var ce=T.token(j,K.state);if(!ce&&K.depth!=null){var ue=j.current();ue=="{"?K.depth++:ue=="}"&&--K.depth==0&&(E.context=E.context.prev)}return ce}return{startState:function(){return{context:new W(x.startState(T),T)}},copyState:function(j){return{context:k(j.context)}},token:ie,indent:function(j,E,K){return j.context.mode.indent(j.context.state,E,K)},innerMode:function(j){return j.context}}},"xml","javascript"),x.defineMIME("text/jsx","jsx"),x.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(Tt,_){(function(x){x(Gt())})(function(x){x.defineMode("shell",function(){var W={};function k(E,K){for(var ce=0;ce1&&E.eat("$");var ce=E.next();return/['"({]/.test(ce)?(K.tokens[0]=se(ce,ce=="("?"quote":ce=="{"?"def":"string"),j(E,K)):(/\d/.test(ce)||E.eatWhile(/\w/),K.tokens.shift(),"def")};function ee(E){return function(K,ce){return K.sol()&&K.string==E&&ce.tokens.shift(),K.skipToEnd(),"string-2"}}function j(E,K){return(K.tokens[0]||T)(E,K)}return{startState:function(){return{tokens:[]}},token:function(E,K){return j(E,K)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),x.defineMIME("text/x-sh","shell"),x.defineMIME("application/x-sh","shell")})})();var wa={exports:{}},Sa;function Da(){return Sa||(Sa=1,function(Tt,_){(function(x){x(Gt())})(function(x){x.defineMode("css",function(pe,I){var We=I.inline;I.propertyKeywords||(I=x.resolveMode("text/css"));var D=pe.indentUnit,Y=I.tokenHooks,c=I.documentTypes||{},U=I.mediaTypes||{},N=I.mediaFeatures||{},oe=I.mediaValueKeywords||{},Te=I.propertyKeywords||{},ze=I.nonStandardPropertyKeywords||{},wt=I.fontProperties||{},v=I.counterDescriptors||{},h=I.colorKeywords||{},Z=I.valueKeywords||{},de=I.allowNested,z=I.lineComment,re=I.supportsAtComponent===!0,ge=pe.highlightNonStandardPropertyKeywords!==!1,xe,he;function J(w,O){return xe=O,w}function ke(w,O){var M=w.next();if(Y[M]){var Le=Y[M](w,O);if(Le!==!1)return Le}if(M=="@")return w.eatWhile(/[\w\\\-]/),J("def",w.current());if(M=="="||(M=="~"||M=="|")&&w.eat("="))return J(null,"compare");if(M=='"'||M=="'")return O.tokenize=Oe(M),O.tokenize(w,O);if(M=="#")return w.eatWhile(/[\w\\\-]/),J("atom","hash");if(M=="!")return w.match(/^\s*\w*/),J("keyword","important");if(/\d/.test(M)||M=="."&&w.eat(/\d/))return w.eatWhile(/[\w.%]/),J("number","unit");if(M==="-"){if(/[\d.]/.test(w.peek()))return w.eatWhile(/[\w.%]/),J("number","unit");if(w.match(/^-[\w\\\-]*/))return w.eatWhile(/[\w\\\-]/),w.match(/^\s*:/,!1)?J("variable-2","variable-definition"):J("variable-2","variable");if(w.match(/^\w+-/))return J("meta","meta")}else return/[,+>*\/]/.test(M)?J(null,"select-op"):M=="."&&w.match(/^-?[_a-z][_a-z0-9-]*/i)?J("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(M)?J(null,M):w.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(w.current())&&(O.tokenize=Ze),J("variable callee","variable")):/[\w\\\-]/.test(M)?(w.eatWhile(/[\w\\\-]/),J("property","word")):J(null,null)}function Oe(w){return function(O,M){for(var Le=!1,at;(at=O.next())!=null;){if(at==w&&!Le){w==")"&&O.backUp(1);break}Le=!Le&&at=="\\"}return(at==w||!Le&&w!=")")&&(M.tokenize=null),J("string","string")}}function Ze(w,O){return w.next(),w.match(/^\s*[\"\')]/,!1)?O.tokenize=null:O.tokenize=Oe(")"),J(null,"(")}function pt(w,O,M){this.type=w,this.indent=O,this.prev=M}function we(w,O,M,Le){return w.context=new pt(M,O.indentation()+(Le===!1?0:D),w.context),M}function Ee(w){return w.context.prev&&(w.context=w.context.prev),w.context.type}function Ke(w,O,M){return Ce[M.context.type](w,O,M)}function ot(w,O,M,Le){for(var at=Le||1;at>0;at--)M.context=M.context.prev;return Ke(w,O,M)}function ye(w){var O=w.current().toLowerCase();Z.hasOwnProperty(O)?he="atom":h.hasOwnProperty(O)?he="keyword":he="variable"}var Ce={};return Ce.top=function(w,O,M){if(w=="{")return we(M,O,"block");if(w=="}"&&M.context.prev)return Ee(M);if(re&&/@component/i.test(w))return we(M,O,"atComponentBlock");if(/^@(-moz-)?document$/i.test(w))return we(M,O,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(w))return we(M,O,"atBlock");if(/^@(font-face|counter-style)/i.test(w))return M.stateArg=w,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(w))return"keyframes";if(w&&w.charAt(0)=="@")return we(M,O,"at");if(w=="hash")he="builtin";else if(w=="word")he="tag";else{if(w=="variable-definition")return"maybeprop";if(w=="interpolation")return we(M,O,"interpolation");if(w==":")return"pseudo";if(de&&w=="(")return we(M,O,"parens")}return M.context.type},Ce.block=function(w,O,M){if(w=="word"){var Le=O.current().toLowerCase();return Te.hasOwnProperty(Le)?(he="property","maybeprop"):ze.hasOwnProperty(Le)?(he=ge?"string-2":"property","maybeprop"):de?(he=O.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(he+=" error","maybeprop")}else return w=="meta"?"block":!de&&(w=="hash"||w=="qualifier")?(he="error","block"):Ce.top(w,O,M)},Ce.maybeprop=function(w,O,M){return w==":"?we(M,O,"prop"):Ke(w,O,M)},Ce.prop=function(w,O,M){if(w==";")return Ee(M);if(w=="{"&&de)return we(M,O,"propBlock");if(w=="}"||w=="{")return ot(w,O,M);if(w=="(")return we(M,O,"parens");if(w=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(O.current()))he+=" error";else if(w=="word")ye(O);else if(w=="interpolation")return we(M,O,"interpolation");return"prop"},Ce.propBlock=function(w,O,M){return w=="}"?Ee(M):w=="word"?(he="property","maybeprop"):M.context.type},Ce.parens=function(w,O,M){return w=="{"||w=="}"?ot(w,O,M):w==")"?Ee(M):w=="("?we(M,O,"parens"):w=="interpolation"?we(M,O,"interpolation"):(w=="word"&&ye(O),"parens")},Ce.pseudo=function(w,O,M){return w=="meta"?"pseudo":w=="word"?(he="variable-3",M.context.type):Ke(w,O,M)},Ce.documentTypes=function(w,O,M){return w=="word"&&c.hasOwnProperty(O.current())?(he="tag",M.context.type):Ce.atBlock(w,O,M)},Ce.atBlock=function(w,O,M){if(w=="(")return we(M,O,"atBlock_parens");if(w=="}"||w==";")return ot(w,O,M);if(w=="{")return Ee(M)&&we(M,O,de?"block":"top");if(w=="interpolation")return we(M,O,"interpolation");if(w=="word"){var Le=O.current().toLowerCase();Le=="only"||Le=="not"||Le=="and"||Le=="or"?he="keyword":U.hasOwnProperty(Le)?he="attribute":N.hasOwnProperty(Le)?he="property":oe.hasOwnProperty(Le)?he="keyword":Te.hasOwnProperty(Le)?he="property":ze.hasOwnProperty(Le)?he=ge?"string-2":"property":Z.hasOwnProperty(Le)?he="atom":h.hasOwnProperty(Le)?he="keyword":he="error"}return M.context.type},Ce.atComponentBlock=function(w,O,M){return w=="}"?ot(w,O,M):w=="{"?Ee(M)&&we(M,O,de?"block":"top",!1):(w=="word"&&(he="error"),M.context.type)},Ce.atBlock_parens=function(w,O,M){return w==")"?Ee(M):w=="{"||w=="}"?ot(w,O,M,2):Ce.atBlock(w,O,M)},Ce.restricted_atBlock_before=function(w,O,M){return w=="{"?we(M,O,"restricted_atBlock"):w=="word"&&M.stateArg=="@counter-style"?(he="variable","restricted_atBlock_before"):Ke(w,O,M)},Ce.restricted_atBlock=function(w,O,M){return w=="}"?(M.stateArg=null,Ee(M)):w=="word"?(M.stateArg=="@font-face"&&!wt.hasOwnProperty(O.current().toLowerCase())||M.stateArg=="@counter-style"&&!v.hasOwnProperty(O.current().toLowerCase())?he="error":he="property","maybeprop"):"restricted_atBlock"},Ce.keyframes=function(w,O,M){return w=="word"?(he="variable","keyframes"):w=="{"?we(M,O,"top"):Ke(w,O,M)},Ce.at=function(w,O,M){return w==";"?Ee(M):w=="{"||w=="}"?ot(w,O,M):(w=="word"?he="tag":w=="hash"&&(he="builtin"),"at")},Ce.interpolation=function(w,O,M){return w=="}"?Ee(M):w=="{"||w==";"?ot(w,O,M):(w=="word"?he="variable":w!="variable"&&w!="("&&w!=")"&&(he="error"),"interpolation")},{startState:function(w){return{tokenize:null,state:We?"block":"top",stateArg:null,context:new pt(We?"block":"top",w||0,null)}},token:function(w,O){if(!O.tokenize&&w.eatSpace())return null;var M=(O.tokenize||ke)(w,O);return M&&typeof M=="object"&&(xe=M[1],M=M[0]),he=M,xe!="comment"&&(O.state=Ce[O.state](xe,w,O)),he},indent:function(w,O){var M=w.context,Le=O&&O.charAt(0),at=M.indent;return M.type=="prop"&&(Le=="}"||Le==")")&&(M=M.prev),M.prev&&(Le=="}"&&(M.type=="block"||M.type=="top"||M.type=="interpolation"||M.type=="restricted_atBlock")?(M=M.prev,at=M.indent):(Le==")"&&(M.type=="parens"||M.type=="atBlock_parens")||Le=="{"&&(M.type=="at"||M.type=="atBlock"))&&(at=Math.max(0,M.indent-D))),at},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:z,fold:"brace"}});function W(pe){for(var I={},We=0;We-1?ve.backUp(E.length-K):E.match(/<\/?$/)&&(ve.backUp(E.length),ve.match(ee,!1)||ve.match(E)),j}var y={};function C(ve){var ee=y[ve];return ee||(y[ve]=new RegExp("\\s+"+ve+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function q(ve,ee){var j=ve.match(C(ee));return j?/^\s*(.*?)\s*$/.exec(j[2])[1]:""}function T(ve,ee){return new RegExp((ee?"^":"")+"","i")}function se(ve,ee){for(var j in ve)for(var E=ee[j]||(ee[j]=[]),K=ve[j],ce=K.length-1;ce>=0;ce--)E.unshift(K[ce])}function ie(ve,ee){for(var j=0;j=0;ue--)E.script.unshift(["type",ce[ue].matches,ce[ue].mode]);function te(Q,fe){var De=j.token(Q,fe.htmlState),Ge=/\btag\b/.test(De),nt;if(Ge&&!/[<>\s\/]/.test(Q.current())&&(nt=fe.htmlState.tagName&&fe.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(nt))fe.inTag=nt+" ";else if(fe.inTag&&Ge&&/>$/.test(Q.current())){var Pe=/^([\S]+) (.*)/.exec(fe.inTag);fe.inTag=null;var He=Q.current()==">"&&ie(E[Pe[1]],Pe[2]),pe=x.getMode(ve,He),I=T(Pe[1],!0),We=T(Pe[1],!1);fe.token=function(D,Y){return D.match(I,!1)?(Y.token=te,Y.localState=Y.localMode=null,null):k(D,We,Y.localMode.token(D,Y.localState))},fe.localMode=pe,fe.localState=x.startState(pe,j.indent(fe.htmlState,"",""))}else fe.inTag&&(fe.inTag+=Q.current(),Q.eol()&&(fe.inTag+=" "));return De}return{startState:function(){var Q=x.startState(j);return{token:te,inTag:null,localMode:null,localState:null,htmlState:Q}},copyState:function(Q){var fe;return Q.localState&&(fe=x.copyState(Q.localMode,Q.localState)),{token:Q.token,inTag:Q.inTag,localMode:Q.localMode,localState:fe,htmlState:x.copyState(j,Q.htmlState)}},token:function(Q,fe){return fe.token(Q,fe)},indent:function(Q,fe,De){return!Q.localMode||/^\s*<\//.test(fe)?j.indent(Q.htmlState,fe,De):Q.localMode.indent?Q.localMode.indent(Q.localState,fe,De):x.Pass},innerMode:function(Q){return{state:Q.localState||Q.htmlState,mode:Q.localMode||j}}}},"xml","javascript","css"),x.defineMIME("text/html","htmlmixed")})})();var Ca={exports:{}},La;function Fu(){return La||(La=1,function(Tt,_){(function(x){x(Gt())})(function(x){x.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var W=0;W-1&&y.substring(T+1,y.length);if(se)return x.findModeByExtension(se)},x.findModeByName=function(y){y=y.toLowerCase();for(var C=0;C` "'(~:]+/,ce=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ue=/^\s*\[[^\]]+?\]:.*$/,te=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Q=" ";function fe(v,h,Z){return h.f=h.inline=Z,Z(v,h)}function De(v,h,Z){return h.f=h.block=Z,Z(v,h)}function Ge(v){return!v||!/\S/.test(v.string)}function nt(v){if(v.linkTitle=!1,v.linkHref=!1,v.linkText=!1,v.em=!1,v.strong=!1,v.strikethrough=!1,v.quote=0,v.indentedCode=!1,v.f==He){var h=C;if(!h){var Z=x.innerMode(y,v.htmlState);h=Z.mode.name=="xml"&&Z.state.tagStart===null&&!Z.state.context&&Z.state.tokenize.isInText}h&&(v.f=D,v.block=Pe,v.htmlState=null)}return v.trailingSpace=0,v.trailingSpaceNewLine=!1,v.prevLine=v.thisLine,v.thisLine={stream:null},null}function Pe(v,h){var Z=v.column()===h.indentation,de=Ge(h.prevLine.stream),z=h.indentedCode,re=h.prevLine.hr,ge=h.list!==!1,xe=(h.listStack[h.listStack.length-1]||0)+3;h.indentedCode=!1;var he=h.indentation;if(h.indentationDiff===null&&(h.indentationDiff=h.indentation,ge)){for(h.list=null;he=4&&(z||h.prevLine.fencedCodeEnd||h.prevLine.header||de))return v.skipToEnd(),h.indentedCode=!0,T.code;if(v.eatSpace())return null;if(Z&&h.indentation<=xe&&(Oe=v.match(j))&&Oe[1].length<=6)return h.quote=0,h.header=Oe[1].length,h.thisLine.header=!0,k.highlightFormatting&&(h.formatting="header"),h.f=h.inline,I(h);if(h.indentation<=xe&&v.eat(">"))return h.quote=Z?1:h.quote+1,k.highlightFormatting&&(h.formatting="quote"),v.eatSpace(),I(h);if(!ke&&!h.setext&&Z&&h.indentation<=xe&&(Oe=v.match(ve))){var Ze=Oe[1]?"ol":"ul";return h.indentation=he+v.current().length,h.list=!0,h.quote=0,h.listStack.push(h.indentation),h.em=!1,h.strong=!1,h.code=!1,h.strikethrough=!1,k.taskLists&&v.match(ee,!1)&&(h.taskList=!0),h.f=h.inline,k.highlightFormatting&&(h.formatting=["list","list-"+Ze]),I(h)}else{if(Z&&h.indentation<=xe&&(Oe=v.match(ce,!0)))return h.quote=0,h.fencedEndRE=new RegExp(Oe[1]+"+ *$"),h.localMode=k.fencedCodeBlockHighlighting&&q(Oe[2]||k.fencedCodeBlockDefaultMode),h.localMode&&(h.localState=x.startState(h.localMode)),h.f=h.block=pe,k.highlightFormatting&&(h.formatting="code-block"),h.code=-1,I(h);if(h.setext||(!J||!ge)&&!h.quote&&h.list===!1&&!h.code&&!ke&&!ue.test(v.string)&&(Oe=v.lookAhead(1))&&(Oe=Oe.match(E)))return h.setext?(h.header=h.setext,h.setext=0,v.skipToEnd(),k.highlightFormatting&&(h.formatting="header")):(h.header=Oe[0].charAt(0)=="="?1:2,h.setext=h.header),h.thisLine.header=!0,h.f=h.inline,I(h);if(ke)return v.skipToEnd(),h.hr=!0,h.thisLine.hr=!0,T.hr;if(v.peek()==="[")return fe(v,h,oe)}return fe(v,h,h.inline)}function He(v,h){var Z=y.token(v,h.htmlState);if(!C){var de=x.innerMode(y,h.htmlState);(de.mode.name=="xml"&&de.state.tagStart===null&&!de.state.context&&de.state.tokenize.isInText||h.md_inside&&v.current().indexOf(">")>-1)&&(h.f=D,h.block=Pe,h.htmlState=null)}return Z}function pe(v,h){var Z=h.listStack[h.listStack.length-1]||0,de=h.indentation=v.quote?h.push(T.formatting+"-"+v.formatting[Z]+"-"+v.quote):h.push("error"))}if(v.taskOpen)return h.push("meta"),h.length?h.join(" "):null;if(v.taskClosed)return h.push("property"),h.length?h.join(" "):null;if(v.linkHref?h.push(T.linkHref,"url"):(v.strong&&h.push(T.strong),v.em&&h.push(T.em),v.strikethrough&&h.push(T.strikethrough),v.emoji&&h.push(T.emoji),v.linkText&&h.push(T.linkText),v.code&&h.push(T.code),v.image&&h.push(T.image),v.imageAltText&&h.push(T.imageAltText,"link"),v.imageMarker&&h.push(T.imageMarker)),v.header&&h.push(T.header,T.header+"-"+v.header),v.quote&&(h.push(T.quote),!k.maxBlockquoteDepth||k.maxBlockquoteDepth>=v.quote?h.push(T.quote+"-"+v.quote):h.push(T.quote+"-"+k.maxBlockquoteDepth)),v.list!==!1){var de=(v.listStack.length-1)%3;de?de===1?h.push(T.list2):h.push(T.list3):h.push(T.list1)}return v.trailingSpaceNewLine?h.push("trailing-space-new-line"):v.trailingSpace&&h.push("trailing-space-"+(v.trailingSpace%2?"a":"b")),h.length?h.join(" "):null}function We(v,h){if(v.match(K,!0))return I(h)}function D(v,h){var Z=h.text(v,h);if(typeof Z<"u")return Z;if(h.list)return h.list=null,I(h);if(h.taskList){var de=v.match(ee,!0)[1]===" ";return de?h.taskOpen=!0:h.taskClosed=!0,k.highlightFormatting&&(h.formatting="task"),h.taskList=!1,I(h)}if(h.taskOpen=!1,h.taskClosed=!1,h.header&&v.match(/^#+$/,!0))return k.highlightFormatting&&(h.formatting="header"),I(h);var z=v.next();if(h.linkTitle){h.linkTitle=!1;var re=z;z==="("&&(re=")"),re=(re+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ge="^\\s*(?:[^"+re+"\\\\]+|\\\\\\\\|\\\\.)"+re;if(v.match(new RegExp(ge),!0))return T.linkHref}if(z==="`"){var xe=h.formatting;k.highlightFormatting&&(h.formatting="code"),v.eatWhile("`");var he=v.current().length;if(h.code==0&&(!h.quote||he==1))return h.code=he,I(h);if(he==h.code){var J=I(h);return h.code=0,J}else return h.formatting=xe,I(h)}else if(h.code)return I(h);if(z==="\\"&&(v.next(),k.highlightFormatting)){var ke=I(h),Oe=T.formatting+"-escape";return ke?ke+" "+Oe:Oe}if(z==="!"&&v.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return h.imageMarker=!0,h.image=!0,k.highlightFormatting&&(h.formatting="image"),I(h);if(z==="["&&h.imageMarker&&v.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return h.imageMarker=!1,h.imageAltText=!0,k.highlightFormatting&&(h.formatting="image"),I(h);if(z==="]"&&h.imageAltText){k.highlightFormatting&&(h.formatting="image");var ke=I(h);return h.imageAltText=!1,h.image=!1,h.inline=h.f=c,ke}if(z==="["&&!h.image)return h.linkText&&v.match(/^.*?\]/)||(h.linkText=!0,k.highlightFormatting&&(h.formatting="link")),I(h);if(z==="]"&&h.linkText){k.highlightFormatting&&(h.formatting="link");var ke=I(h);return h.linkText=!1,h.inline=h.f=v.match(/\(.*?\)| ?\[.*?\]/,!1)?c:D,ke}if(z==="<"&&v.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){h.f=h.inline=Y,k.highlightFormatting&&(h.formatting="link");var ke=I(h);return ke?ke+=" ":ke="",ke+T.linkInline}if(z==="<"&&v.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){h.f=h.inline=Y,k.highlightFormatting&&(h.formatting="link");var ke=I(h);return ke?ke+=" ":ke="",ke+T.linkEmail}if(k.xml&&z==="<"&&v.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ze=v.string.indexOf(">",v.pos);if(Ze!=-1){var pt=v.string.substring(v.start,Ze);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pt)&&(h.md_inside=!0)}return v.backUp(1),h.htmlState=x.startState(y),De(v,h,He)}if(k.xml&&z==="<"&&v.match(/^\/\w*?>/))return h.md_inside=!1,"tag";if(z==="*"||z==="_"){for(var we=1,Ee=v.pos==1?" ":v.string.charAt(v.pos-2);we<3&&v.eat(z);)we++;var Ke=v.peek()||" ",ot=!/\s/.test(Ke)&&(!te.test(Ke)||/\s/.test(Ee)||te.test(Ee)),ye=!/\s/.test(Ee)&&(!te.test(Ee)||/\s/.test(Ke)||te.test(Ke)),Ce=null,w=null;if(we%2&&(!h.em&&ot&&(z==="*"||!ye||te.test(Ee))?Ce=!0:h.em==z&&ye&&(z==="*"||!ot||te.test(Ke))&&(Ce=!1)),we>1&&(!h.strong&&ot&&(z==="*"||!ye||te.test(Ee))?w=!0:h.strong==z&&ye&&(z==="*"||!ot||te.test(Ke))&&(w=!1)),w!=null||Ce!=null){k.highlightFormatting&&(h.formatting=Ce==null?"strong":w==null?"em":"strong em"),Ce===!0&&(h.em=z),w===!0&&(h.strong=z);var J=I(h);return Ce===!1&&(h.em=!1),w===!1&&(h.strong=!1),J}}else if(z===" "&&(v.eat("*")||v.eat("_"))){if(v.peek()===" ")return I(h);v.backUp(1)}if(k.strikethrough){if(z==="~"&&v.eatWhile(z)){if(h.strikethrough){k.highlightFormatting&&(h.formatting="strikethrough");var J=I(h);return h.strikethrough=!1,J}else if(v.match(/^[^\s]/,!1))return h.strikethrough=!0,k.highlightFormatting&&(h.formatting="strikethrough"),I(h)}else if(z===" "&&v.match("~~",!0)){if(v.peek()===" ")return I(h);v.backUp(2)}}if(k.emoji&&z===":"&&v.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){h.emoji=!0,k.highlightFormatting&&(h.formatting="emoji");var O=I(h);return h.emoji=!1,O}return z===" "&&(v.match(/^ +$/,!1)?h.trailingSpace++:h.trailingSpace&&(h.trailingSpaceNewLine=!0)),I(h)}function Y(v,h){var Z=v.next();if(Z===">"){h.f=h.inline=D,k.highlightFormatting&&(h.formatting="link");var de=I(h);return de?de+=" ":de="",de+T.linkInline}return v.match(/^[^>]+/,!0),T.linkInline}function c(v,h){if(v.eatSpace())return null;var Z=v.next();return Z==="("||Z==="["?(h.f=h.inline=N(Z==="("?")":"]"),k.highlightFormatting&&(h.formatting="link-string"),h.linkHref=!0,I(h)):"error"}var U={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(v){return function(h,Z){var de=h.next();if(de===v){Z.f=Z.inline=D,k.highlightFormatting&&(Z.formatting="link-string");var z=I(Z);return Z.linkHref=!1,z}return h.match(U[v]),Z.linkHref=!0,I(Z)}}function oe(v,h){return v.match(/^([^\]\\]|\\.)*\]:/,!1)?(h.f=Te,v.next(),k.highlightFormatting&&(h.formatting="link"),h.linkText=!0,I(h)):fe(v,h,D)}function Te(v,h){if(v.match("]:",!0)){h.f=h.inline=ze,k.highlightFormatting&&(h.formatting="link");var Z=I(h);return h.linkText=!1,Z}return v.match(/^([^\]\\]|\\.)+/,!0),T.linkText}function ze(v,h){return v.eatSpace()?null:(v.match(/^[^\s]+/,!0),v.peek()===void 0?h.linkTitle=!0:v.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),h.f=h.inline=D,T.linkHref+" url")}var wt={startState:function(){return{f:Pe,prevLine:{stream:null},thisLine:{stream:null},block:Pe,htmlState:null,indentation:0,inline:D,text:We,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(v){return{f:v.f,prevLine:v.prevLine,thisLine:v.thisLine,block:v.block,htmlState:v.htmlState&&x.copyState(y,v.htmlState),indentation:v.indentation,localMode:v.localMode,localState:v.localMode?x.copyState(v.localMode,v.localState):null,inline:v.inline,text:v.text,formatting:!1,linkText:v.linkText,linkTitle:v.linkTitle,linkHref:v.linkHref,code:v.code,em:v.em,strong:v.strong,strikethrough:v.strikethrough,emoji:v.emoji,header:v.header,setext:v.setext,hr:v.hr,taskList:v.taskList,list:v.list,listStack:v.listStack.slice(0),quote:v.quote,indentedCode:v.indentedCode,trailingSpace:v.trailingSpace,trailingSpaceNewLine:v.trailingSpaceNewLine,md_inside:v.md_inside,fencedEndRE:v.fencedEndRE}},token:function(v,h){if(h.formatting=!1,v!=h.thisLine.stream){if(h.header=0,h.hr=!1,v.match(/^\s*$/,!0))return nt(h),null;if(h.prevLine=h.thisLine,h.thisLine={stream:v},h.taskList=!1,h.trailingSpace=0,h.trailingSpaceNewLine=!1,!h.localState&&(h.f=h.block,h.f!=He)){var Z=v.match(/^\s*/,!0)[0].replace(/\t/g,Q).length;if(h.indentation=Z,h.indentationDiff=null,Z>0)return null}}return h.f(v,h)},innerMode:function(v){return v.block==He?{state:v.htmlState,mode:y}:v.localState?{state:v.localState,mode:v.localMode}:{state:v,mode:wt}},indent:function(v,h,Z){return v.block==He&&y.indent?y.indent(v.htmlState,h,Z):v.localState&&v.localMode.indent?v.localMode.indent(v.localState,h,Z):x.Pass},blankLine:nt,getType:I,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return wt},"xml"),x.defineMIME("text/markdown","markdown"),x.defineMIME("text/x-markdown","markdown")})})();(function(Tt,_){(function(x){x(Gt())})(function(x){x.defineMode("yaml",function(){var W=["true","false","on","off","yes","no"],k=new RegExp("\\b(("+W.join(")|(")+"))$","i");return{token:function(y,C){var q=y.peek(),T=C.escaped;if(C.escaped=!1,q=="#"&&(y.pos==0||/\s/.test(y.string.charAt(y.pos-1))))return y.skipToEnd(),"comment";if(y.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(C.literal&&y.indentation()>C.keyCol)return y.skipToEnd(),"string";if(C.literal&&(C.literal=!1),y.sol()){if(C.keyCol=0,C.pair=!1,C.pairStart=!1,y.match("---")||y.match("..."))return"def";if(y.match(/\s*-\s+/))return"meta"}if(y.match(/^(\{|\}|\[|\])/))return q=="{"?C.inlinePairs++:q=="}"?C.inlinePairs--:q=="["?C.inlineList++:C.inlineList--,"meta";if(C.inlineList>0&&!T&&q==",")return y.next(),"meta";if(C.inlinePairs>0&&!T&&q==",")return C.keyCol=0,C.pair=!1,C.pairStart=!1,y.next(),"meta";if(C.pairStart){if(y.match(/^\s*(\||\>)\s*/))return C.literal=!0,"meta";if(y.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(C.inlinePairs==0&&y.match(/^\s*-?[0-9\.\,]+\s?$/)||C.inlinePairs>0&&y.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(y.match(k))return"keyword"}return!C.pair&&y.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)?(C.pair=!0,C.keyCol=y.indentation(),"atom"):C.pair&&y.match(/^:\s*/)?(C.pairStart=!0,"meta"):(C.pairStart=!1,C.escaped=q=="\\",y.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),x.defineMIME("text/x-yaml","yaml"),x.defineMIME("text/yaml","yaml")})})();class Eu extends va.Component{constructor(_){super(_),this.appliedNext=void 0,this.deferred=void 0,this.editor=void 0,this.emulating=void 0,this.hydrated=void 0,this.initCb=void 0,this.mirror=void 0,this.mounted=void 0,this.ref=void 0,this.shared=void 0,this.appliedNext=!1,this.deferred=null,this.emulating=!1,this.hydrated=!1,this.initCb=()=>{this.props.editorDidConfigure&&this.props.editorDidConfigure(this.editor)},this.mounted=!1}hydrate(_){const x=_&&_.options?_.options:{},W=Object.assign({},Hi.defaults,this.editor.options,x);Object.keys(W).some(y=>this.editor.getOption(y)!==W[y])&&Object.keys(W).forEach(y=>{x.hasOwnProperty(y)&&this.editor.getOption(y)!==W[y]&&(this.editor.setOption(y,W[y]),this.mirror.setOption(y,W[y]))}),this.hydrated||(this.deferred?this.resolveChange(_.value):this.initChange(_.value||"")),this.hydrated=!0}initChange(_){this.emulating=!0;const x=this.editor.getDoc(),W=x.lastLine(),k=x.getLine(x.lastLine()).length;x.replaceRange(_||"",{line:0,ch:0},{line:W,ch:k}),this.mirror.setValue(_),x.clearHistory(),this.mirror.clearHistory(),this.emulating=!1}resolveChange(_){this.emulating=!0;const x=this.editor.getDoc();if(this.deferred.origin==="undo"?x.undo():this.deferred.origin==="redo"?x.redo():x.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),_&&_!==x.getValue()){const W=x.getCursor();x.setValue(_),x.setCursor(W)}this.emulating=!1,this.deferred=null}mirrorChange(_){const x=this.editor.getDoc();return _.origin==="undo"?(x.setHistory(this.mirror.getHistory()),this.mirror.undo()):_.origin==="redo"?(x.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(_.text,_.from,_.to,_.origin),this.mirror.getValue()}componentDidMount(){this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&Hi.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=Hi(this.ref,this.props.options),this.shared=new Nu(this.editor,this.props),this.mirror=Hi(()=>{},this.props.options),this.editor.on("electricInput",()=>{this.mirror.setHistory(this.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",()=>{this.mirror.setCursor(this.editor.getDoc().getCursor())}),this.editor.on("beforeChange",(_,x)=>{if(this.emulating)return;x.cancel(),this.deferred=x;const W=this.mirrorChange(this.deferred);this.props.onBeforeChange&&this.props.onBeforeChange(this.editor,this.deferred,W)}),this.editor.on("change",(_,x)=>{this.mounted&&this.props.onChange&&this.props.onChange(this.editor,x,this.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb)}componentDidUpdate(_){const x={cursor:void 0};this.props.value!==_.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(x.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(_,this.props,x),this.appliedNext=!0),this.shared.applyUserDefined(_,x)}componentWillUnmount(){this.props.editorWillUnmount&&this.props.editorWillUnmount(Hi)}shouldComponentUpdate(){return!0}render(){const _=this.props.className?`react-codemirror2 ${this.props.className}`:"react-codemirror2";return va.createElement("div",{className:_,ref:x=>this.ref=x})}}Eu.displayName="Controlled";class go{static equals(_,x){const W=Object.keys,k=typeof _;return _&&x&&k==="object"&&k===typeof x?W(_).length===W(x).length&&W(_).every(C=>this.equals(_[C],x[C])):_===x}}class Nu{constructor(_,x){this.editor=void 0,this.props=void 0,this.editor=_,this.props=x}delegateCursor(_,x,W){const k=this.editor.getDoc();W&&this.editor.focus(),x?k.setCursor(_):k.setCursor(_,void 0,{scroll:!1})}delegateScroll(_){this.editor.scrollTo(_.x,_.y)}delegateSelection(_,x){this.editor.getDoc().setSelections(_),x&&this.editor.focus()}apply(_){_&&_.selection&&_.selection.ranges&&this.delegateSelection(_.selection.ranges,_.selection.focus||!1),_&&_.cursor&&this.delegateCursor(_.cursor,_.autoScroll||!1,this.editor.getOption("autofocus")||!1),_&&_.scroll&&this.delegateScroll(_.scroll)}applyNext(_,x,W){_&&_.selection&&_.selection.ranges&&x&&x.selection&&x.selection.ranges&&!go.equals(_.selection.ranges,x.selection.ranges)&&this.delegateSelection(x.selection.ranges,x.selection.focus||!1),_&&_.cursor&&x&&x.cursor&&!go.equals(_.cursor,x.cursor)&&this.delegateCursor(W.cursor||x.cursor,x.autoScroll||!1,x.autoCursor||!1),_&&_.scroll&&x&&x.scroll&&!go.equals(_.scroll,x.scroll)&&this.delegateScroll(x.scroll)}applyUserDefined(_,x){x&&x.cursor&&this.delegateCursor(x.cursor,_.autoScroll||!1,this.editor.getOption("autofocus")||!1)}wire(_){Object.keys(_||{}).filter(x=>/^on/.test(x)).forEach(x=>{switch(x){case"onBlur":this.editor.on("blur",(W,k)=>{var y,C;(y=(C=this.props).onBlur)===null||y===void 0||y.call(C,this.editor,k)});break;case"onContextMenu":{this.editor.on("contextmenu",(W,k)=>{var y,C;(y=(C=this.props).onContextMenu)===null||y===void 0||y.call(C,this.editor,k)});break}case"onCopy":{this.editor.on("copy",(W,k)=>{var y,C;(y=(C=this.props).onCopy)===null||y===void 0||y.call(C,this.editor,k)});break}case"onCursor":this.editor.on("cursorActivity",()=>{var W,k;(W=(k=this.props).onCursor)===null||W===void 0||W.call(k,this.editor,this.editor.getDoc().getCursor())});break;case"onCursorActivity":this.editor.on("cursorActivity",()=>{var W,k;(W=(k=this.props).onCursorActivity)===null||W===void 0||W.call(k,this.editor)});break;case"onCut":{this.editor.on("cut",(W,k)=>{var y,C;(y=(C=this.props).onCut)===null||y===void 0||y.call(C,this.editor,k)});break}case"onDblClick":{this.editor.on("dblclick",(W,k)=>{var y,C;(y=(C=this.props).onDblClick)===null||y===void 0||y.call(C,this.editor,k)});break}case"onDragEnter":this.editor.on("dragenter",(W,k)=>{var y,C;(y=(C=this.props).onDragEnter)===null||y===void 0||y.call(C,this.editor,k)});break;case"onDragLeave":{this.editor.on("dragleave",(W,k)=>{var y,C;(y=(C=this.props).onDragLeave)===null||y===void 0||y.call(C,this.editor,k)});break}case"onDragOver":this.editor.on("dragover",(W,k)=>{var y,C;(y=(C=this.props).onDragOver)===null||y===void 0||y.call(C,this.editor,k)});break;case"onDragStart":{this.editor.on("dragstart",(W,k)=>{var y,C;(y=(C=this.props).onDragStart)===null||y===void 0||y.call(C,this.editor,k)});break}case"onDrop":this.editor.on("drop",(W,k)=>{var y,C;(y=(C=this.props).onDrop)===null||y===void 0||y.call(C,this.editor,k)});break;case"onFocus":this.editor.on("focus",(W,k)=>{var y,C;(y=(C=this.props).onFocus)===null||y===void 0||y.call(C,this.editor,k)});break;case"onGutterClick":this.editor.on("gutterClick",(W,k,y,C)=>{var q,T;(q=(T=this.props).onGutterClick)===null||q===void 0||q.call(T,this.editor,k,y,C)});break;case"onInputRead":this.editor.on("inputRead",(W,k)=>{var y,C;(y=(C=this.props).onInputRead)===null||y===void 0||y.call(C,this.editor,k)});break;case"onKeyDown":this.editor.on("keydown",(W,k)=>{var y,C;(y=(C=this.props).onKeyDown)===null||y===void 0||y.call(C,this.editor,k)});break;case"onKeyHandled":this.editor.on("keyHandled",(W,k,y)=>{var C,q;(C=(q=this.props).onKeyHandled)===null||C===void 0||C.call(q,this.editor,k,y)});break;case"onKeyPress":this.editor.on("keypress",(W,k)=>{var y,C;(y=(C=this.props).onKeyPress)===null||y===void 0||y.call(C,this.editor,k)});break;case"onKeyUp":this.editor.on("keyup",(W,k)=>{var y,C;(y=(C=this.props).onKeyUp)===null||y===void 0||y.call(C,this.editor,k)});break;case"onMouseDown":{this.editor.on("mousedown",(W,k)=>{var y,C;(y=(C=this.props).onMouseDown)===null||y===void 0||y.call(C,this.editor,k)});break}case"onPaste":{this.editor.on("paste",(W,k)=>{var y,C;(y=(C=this.props).onPaste)===null||y===void 0||y.call(C,this.editor,k)});break}case"onRenderLine":{this.editor.on("renderLine",(W,k,y)=>{var C,q;(C=(q=this.props).onRenderLine)===null||C===void 0||C.call(q,this.editor,k,y)});break}case"onScroll":this.editor.on("scroll",W=>{var k,y;(k=(y=this.props).onScroll)===null||k===void 0||k.call(y,this.editor,this.editor.getScrollInfo())});break;case"onSelection":this.editor.on("beforeSelectionChange",(W,k)=>{var y,C;(y=(C=this.props).onSelection)===null||y===void 0||y.call(C,this.editor,k)});break;case"onTouchStart":{this.editor.on("touchstart",(W,k)=>{var y,C;(y=(C=this.props).onTouchStart)===null||y===void 0||y.call(C,this.editor,k)});break}case"onUpdate":this.editor.on("update",W=>{var k,y;(k=(y=this.props).onUpdate)===null||k===void 0||k.call(y,this.editor)});break;case"onViewportChange":this.editor.on("viewportChange",(W,k,y)=>{var C,q;(C=(q=this.props).onViewportChange)===null||C===void 0||C.call(q,this.editor,k,y)});break}})}}export{Nu as Shared,Eu as default}; diff --git a/assets/index-Co1on5ja.js b/assets/index-Co1on5ja.js deleted file mode 100644 index dd0c720..0000000 --- a/assets/index-Co1on5ja.js +++ /dev/null @@ -1,91 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdownBrand-DngqaaW6.js","assets/RenderTopNavBar-BjY6S8Vl.js","assets/Mdtoui-BnFmcABV.js","assets/index-DUk1PrHv.js","assets/redirectTo-BI9YwaQV.js","assets/index-Dh55QiP4.js","assets/links-BB4989Yr.js","assets/index-DyahzNCb.js","assets/index-BAR0q47n.js","assets/mdui-yfbR4PDq.js","assets/index-CdS0NUpT.js","assets/releases-DNm8mqBV.js","assets/IconRssLine-CYM7kQpO.js","assets/error-LDYVdH-U.js"])))=>i.map(i=>d[i]); -function af(e,t){for(var a=0;an[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function a(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(l){if(l.ep)return;l.ep=!0;const i=a(l);fetch(l.href,i)}})();const Dy="modulepreload",$y=function(e){return"/"+e},Vd={},Ot=function(t,a,n){let l=Promise.resolve();if(a&&a.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),r=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.all(a.map(u=>{if(u=$y(u),u in Vd)return;Vd[u]=!0;const o=u.endsWith(".css"),c=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const s=document.createElement("link");if(s.rel=o?"stylesheet":Dy,o||(s.as="script",s.crossOrigin=""),s.href=u,r&&s.setAttribute("nonce",r),document.head.appendChild(s),o)return new Promise((d,f)=>{s.addEventListener("load",d),s.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${u}`)))})}))}return l.then(()=>t()).catch(i=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=i,window.dispatchEvent(r),!r.defaultPrevented)throw i})};var G9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Y9(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var a=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(a,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),a}var tm={exports:{}},Fu={};/** - * @license React - * react-jsx-runtime.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var zy=Symbol.for("react.transitional.element"),Ny=Symbol.for("react.fragment");function am(e,t,a){var n=null;if(a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),"key"in t){a={};for(var l in t)l!=="key"&&(a[l]=t[l])}else a=t;return t=a.ref,{$$typeof:zy,type:e,key:n,ref:t!==void 0?t:null,props:a}}Fu.Fragment=Ny;Fu.jsx=am;Fu.jsxs=am;tm.exports=Fu;var je=tm.exports,nm={exports:{}},W={};/** - * @license React - * react.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var nf=Symbol.for("react.transitional.element"),Ly=Symbol.for("react.portal"),Uy=Symbol.for("react.fragment"),Hy=Symbol.for("react.strict_mode"),By=Symbol.for("react.profiler"),jy=Symbol.for("react.consumer"),Vy=Symbol.for("react.context"),Gy=Symbol.for("react.forward_ref"),Yy=Symbol.for("react.suspense"),qy=Symbol.for("react.memo"),lm=Symbol.for("react.lazy"),Gd=Symbol.iterator;function ky(e){return e===null||typeof e!="object"?null:(e=Gd&&e[Gd]||e["@@iterator"],typeof e=="function"?e:null)}var im={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rm=Object.assign,um={};function Gl(e,t,a){this.props=e,this.context=t,this.refs=um,this.updater=a||im}Gl.prototype.isReactComponent={};Gl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Gl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function om(){}om.prototype=Gl.prototype;function lf(e,t,a){this.props=e,this.context=t,this.refs=um,this.updater=a||im}var rf=lf.prototype=new om;rf.constructor=lf;rm(rf,Gl.prototype);rf.isPureReactComponent=!0;var Yd=Array.isArray,Oe={H:null,A:null,T:null,S:null},cm=Object.prototype.hasOwnProperty;function uf(e,t,a,n,l,i,r){return a=r.ref,{$$typeof:nf,type:e,key:t,ref:a!==void 0?a:null,props:r}}function Xy(e,t){return uf(e.type,t,null,void 0,void 0,void 0,e.props)}function of(e){return typeof e=="object"&&e!==null&&e.$$typeof===nf}function Zy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var qd=/\/+/g;function Go(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zy(""+e.key):t.toString(36)}function kd(){}function Qy(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(kd,kd):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function nl(e,t,a,n,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(i){case"bigint":case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case nf:case Ly:r=!0;break;case lm:return r=e._init,nl(r(e._payload),t,a,n,l)}}if(r)return l=l(e),r=n===""?"."+Go(e,0):n,Yd(l)?(a="",r!=null&&(a=r.replace(qd,"$&/")+"/"),nl(l,t,a,"",function(c){return c})):l!=null&&(of(l)&&(l=Xy(l,a+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(qd,"$&/")+"/")+r)),t.push(l)),1;r=0;var u=n===""?".":n+":";if(Yd(e))for(var o=0;o>>1,ge=z[k];if(0>>1;kl(it,q))mtl(Kt,it)?(z[k]=Kt,z[mt]=q,k=mt):(z[k]=it,z[bt]=q,k=bt);else if(mtl(Kt,q))z[k]=Kt,z[mt]=q,k=mt;else break e}}return Y}function l(z,Y){var q=z.sortIndex-Y.sortIndex;return q!==0?q:z.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var r=Date,u=r.now();e.unstable_now=function(){return r.now()-u}}var o=[],c=[],s=1,d=null,f=3,y=!1,C=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function v(z){for(var Y=a(c);Y!==null;){if(Y.callback===null)n(c);else if(Y.startTime<=z)n(c),Y.sortIndex=Y.expirationTime,t(o,Y);else break;Y=a(c)}}function E(z){if(S=!1,v(z),!C)if(a(o)!==null)C=!0,ve();else{var Y=a(c);Y!==null&&et(E,Y.startTime-z)}}var x=!1,$=-1,D=5,g=-1;function A(){return!(e.unstable_now()-gz&&A());){var k=d.callback;if(typeof k=="function"){d.callback=null,f=d.priorityLevel;var ge=k(d.expirationTime<=z);if(z=e.unstable_now(),typeof ge=="function"){d.callback=ge,v(z),Y=!0;break t}d===a(o)&&n(o),v(z)}else n(o);d=a(o)}if(d!==null)Y=!0;else{var Tt=a(c);Tt!==null&&et(E,Tt.startTime-z),Y=!1}}break e}finally{d=null,f=q,y=!1}Y=void 0}}finally{Y?j():x=!1}}}var j;if(typeof m=="function")j=function(){m(L)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,De=K.port2;K.port1.onmessage=L,j=function(){De.postMessage(null)}}else j=function(){T(L,0)};function ve(){x||(x=!0,j())}function et(z,Y){$=T(function(){z(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){C||y||(C=!0,ve())},e.unstable_forceFrameRate=function(z){0>z||125k?(z.sortIndex=q,t(c,z),a(o)===null&&z===a(c)&&(S?(h($),$=-1):S=!0,et(E,q-k))):(z.sortIndex=ge,t(o,z),C||y||(C=!0,ve())),z},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(z){var Y=f;return function(){var q=f;f=Y;try{return z.apply(this,arguments)}finally{f=q}}}})(dm);fm.exports=dm;var Jy=fm.exports,mm={exports:{}},dt={};/** - * @license React - * react-dom.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Wy=_;function hm(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vm)}catch(e){console.error(e)}}vm(),mm.exports=dt;var cf=mm.exports;const pm=Vl(cf),eg=af({__proto__:null,default:pm},[cf]);/** - * @license React - * react-dom-client.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ye=Jy,ym=_,tg=cf;function w(e){var t="https://react.dev/errors/"+e;if(1)":-1l||o[n]!==c[l]){var s=` -`+o[n].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=n&&0<=l);break}}}finally{qo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Si(a):""}function rg(e){switch(e.tag){case 26:case 27:case 5:return Si(e.type);case 16:return Si("Lazy");case 13:return Si("Suspense");case 19:return Si("SuspenseList");case 0:case 15:return e=ko(e.type,!1),e;case 11:return e=ko(e.type.render,!1),e;case 1:return e=ko(e.type,!0),e;default:return""}}function Kd(e){try{var t="";do t+=rg(e),e=e.return;while(e);return t}catch(a){return` -Error generating stack: `+a.message+` -`+a.stack}}function Yl(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Rm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Pd(e){if(Yl(e)!==e)throw Error(w(188))}function ug(e){var t=e.alternate;if(!t){if(t=Yl(e),t===null)throw Error(w(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var i=l.alternate;if(i===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===a)return Pd(l),e;if(i===n)return Pd(l),t;i=i.sibling}throw Error(w(188))}if(a.return!==n.return)a=l,n=i;else{for(var r=!1,u=l.child;u;){if(u===a){r=!0,a=l,n=i;break}if(u===n){r=!0,n=l,a=i;break}u=u.sibling}if(!r){for(u=i.child;u;){if(u===a){r=!0,a=i,n=l;break}if(u===n){r=!0,n=i,a=l;break}u=u.sibling}if(!r)throw Error(w(189))}}if(a.alternate!==n)throw Error(w(190))}if(a.tag!==3)throw Error(w(188));return a.stateNode.current===a?e:t}function Cm(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Cm(e),t!==null)return t;e=e.sibling}return null}var Ei=Array.isArray,Se=tg.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,En={pending:!1,data:null,method:null,action:null},as=[],ol=-1;function oa(e){return{current:e}}function Xe(e){0>ol||(e.current=as[ol],as[ol]=null,ol--)}function Ae(e,t){ol++,as[ol]=e.current,e.current=t}var ta=oa(null),Yi=oa(null),Pa=oa(null),ns=oa(null);function yu(e,t){switch(Ae(Pa,t),Ae(Yi,e),Ae(ta,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?K1(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=K1(e),t=Uv(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Xe(ta),Ae(ta,t)}function Ml(){Xe(ta),Xe(Yi),Xe(Pa)}function ls(e){e.memoizedState!==null&&Ae(ns,e);var t=ta.current,a=Uv(t,e.type);t!==a&&(Ae(Yi,e),Ae(ta,a))}function gu(e){Yi.current===e&&(Xe(ta),Xe(Yi)),ns.current===e&&(Xe(ns),qu._currentValue=En)}var is=Object.prototype.hasOwnProperty,df=Ye.unstable_scheduleCallback,Xo=Ye.unstable_cancelCallback,og=Ye.unstable_shouldYield,cg=Ye.unstable_requestPaint,aa=Ye.unstable_now,sg=Ye.unstable_getCurrentPriorityLevel,mf=Ye.unstable_ImmediatePriority,Am=Ye.unstable_UserBlockingPriority,bu=Ye.unstable_NormalPriority,fg=Ye.unstable_LowPriority,_m=Ye.unstable_IdlePriority,dg=Ye.log,mg=Ye.unstable_setDisableYieldValue,sr=null,At=null;function hg(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(sr,e,void 0,(e.current.flags&128)===128)}catch{}}function Qa(e){if(typeof dg=="function"&&mg(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(sr,e)}catch{}}var Ht=Math.clz32?Math.clz32:yg,vg=Math.log,pg=Math.LN2;function yg(e){return e>>>=0,e===0?32:31-(vg(e)/pg|0)|0}var $r=128,zr=4194304;function Ri(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Su(e,t){var a=e.pendingLanes;if(a===0)return 0;var n=0,l=e.suspendedLanes;e=e.pingedLanes;var i=a&134217727;return i!==0?(a=i&~l,a!==0?n=Ri(a):(e&=i,e!==0&&(n=Ri(e)))):(a&=~l,a!==0?n=Ri(a):e!==0&&(n=Ri(e))),n===0?0:t!==0&&t!==n&&!(t&l)&&(l=n&-n,e=t&-t,l>=e||l===32&&(e&4194176)!==0)?t:n}function gg(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wm(e,t){return e.errorRecoveryDisabledLanes&t?0:(e=e.pendingLanes&-536870913,e!==0?e:e&536870912?536870912:0)}function Tm(){var e=$r;return $r<<=1,!($r&4194176)&&($r=128),e}function Om(){var e=zr;return zr<<=1,!(zr&62914560)&&(zr=4194304),e}function Zo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function bg(e,t,a){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,i=e.hiddenUpdates;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Wd={},Fd={};function Ag(e){return is.call(Fd,e)?!0:is.call(Wd,e)?!1:Cg.test(e)?Fd[e]=!0:(Wd[e]=!0,!1)}function eu(e,t,a){if(Ag(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Nr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function da(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _g(e){var t=Lm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(r){n=""+r,i.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(r){n=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eu(e){e._valueTracker||(e._valueTracker=_g(e))}function Um(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Lm(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Ru(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var wg=/[\n"\\]/g;function Nt(e){return e.replace(wg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function us(e,t,a,n,l,i,r,u){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?os(e,r,Dt(t)):a!=null?os(e,r,Dt(a)):n!=null&&e.removeAttribute("value"),l==null&&i!=null&&(e.defaultChecked=!!i),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.name=""+Dt(u):e.removeAttribute("name")}function Hm(e,t,a,n,l,i,r,u){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,u||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=u?e.checked:!!n,e.defaultChecked=!!n,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r)}function os(e,t,a){t==="number"&&Ru(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Sl(e,t,a,n){if(e=e.options,t){t={};for(var l=0;l=Oi),i1=" ",r1=!1;function km(e,t){switch(e){case"keyup":return e2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sl=!1;function a2(e,t){switch(e){case"compositionend":return Xm(t);case"keypress":return t.which!==32?null:(r1=!0,i1);case"textInput":return e=t.data,e===i1&&r1?null:e;default:return null}}function n2(e,t){if(sl)return e==="compositionend"||!bf&&km(e,t)?(e=Ym(),au=yf=Ka=null,sl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=f1(a)}}function Pm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jm(){for(var e=window,t=Ru();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ru(e.document)}return t}function Sf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function f2(e){var t=Jm(),a=e.focusedElem,n=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&Pm(a.ownerDocument.documentElement,a)){if(n!==null&&Sf(a)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=a.textContent.length,i=Math.min(n.start,l);n=n.end===void 0?i:Math.min(n.end,l),!e.extend&&i>n&&(l=n,n=i,i=l),l=d1(a,i);var r=d1(a,n);l&&r&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(r.node,r.offset)):(t.setEnd(r.node,r.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,fl=null,fs=null,xi=null,ds=!1;function m1(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ds||fl==null||fl!==Ru(n)||(n=fl,"selectionStart"in n&&Sf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),xi&&Zi(xi,n)||(xi=n,n=Bu(fs,"onSelect"),0>=r,l-=r,Sa=1<<32-Ht(t)+l|a<g?(A=D,D=null):A=D.sibling;var L=f(h,D,v[g],E);if(L===null){D===null&&(D=A);break}e&&D&&L.alternate===null&&t(h,D),m=i(L,m,g),$===null?x=L:$.sibling=L,$=L,D=A}if(g===v.length)return a(h,D),le&&mn(h,g),x;if(D===null){for(;gg?(A=D,D=null):A=D.sibling;var j=f(h,D,L.value,E);if(j===null){D===null&&(D=A);break}e&&D&&j.alternate===null&&t(h,D),m=i(j,m,g),$===null?x=j:$.sibling=j,$=j,D=A}if(L.done)return a(h,D),le&&mn(h,g),x;if(D===null){for(;!L.done;g++,L=v.next())L=d(h,L.value,E),L!==null&&(m=i(L,m,g),$===null?x=L:$.sibling=L,$=L);return le&&mn(h,g),x}for(D=n(D);!L.done;g++,L=v.next())L=y(D,h,g,L.value,E),L!==null&&(e&&L.alternate!==null&&D.delete(L.key===null?g:L.key),m=i(L,m,g),$===null?x=L:$.sibling=L,$=L);return e&&D.forEach(function(K){return t(h,K)}),le&&mn(h,g),x}function T(h,m,v,E){if(typeof v=="object"&&v!==null&&v.type===ul&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Dr:e:{for(var x=v.key,$=m;$!==null;){if($.key===x){if(x=v.type,x===ul){if($.tag===7){a(h,$.sibling),m=l($,v.props.children),m.return=h,h=m;break e}}else if($.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ga&&S1(x)===$.type){a(h,$.sibling),m=l($,v.props),ui(h,$,m,v),m.return=h,h=m;break e}a(h,$);break}else t(h,$);$=$.sibling}v.type===ul?(m=An(v.props.children,h.mode,E,v.key),m.return=h,h=m):(E=ou(v.type,v.key,v.props,null,h.mode,E),ui(h,m,E,v),E.return=h,h=E)}return r(h);case bi:e:{for($=v.key;m!==null;){if(m.key===$)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){a(h,m.sibling),m=l(m,v.children||[]),m.return=h,h=m;break e}else{a(h,m);break}else t(h,m);m=m.sibling}m=mc(v,h.mode,E),m.return=h,h=m}return r(h);case Ga:return $=v._init,v=$(v._payload),T(h,m,v,E)}if(Ei(v))return C(h,m,v,E);if(ni(v)){if($=ni(v),typeof $!="function")throw Error(w(150));return v=$.call(v),S(h,m,v,E)}if(typeof v.then=="function")return T(h,m,Hr(v),E);if(v.$$typeof===ba)return T(h,m,Vr(h,v,E),E);Br(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,m!==null&&m.tag===6?(a(h,m.sibling),m=l(m,v),m.return=h,h=m):(a(h,m),m=dc(v,h.mode,E),m.return=h,h=m),r(h)):a(h,m)}return function(h,m,v,E){try{Ki=0;var x=T(h,m,v,E);return Rl=null,x}catch(D){if(D===Di)throw D;var $=Ut(29,D,null,h.mode);return $.lanes=E,$.return=h,$}finally{}}}var Tn=uh(!0),oh=uh(!1),$l=oa(null),wu=oa(0);function E1(e,t){e=Ma,Ae(wu,e),Ae($l,t),Ma=e|t.baseLanes}function vs(){Ae(wu,Ma),Ae($l,$l.current)}function _f(){Ma=wu.current,Xe($l),Xe(wu)}var ia=oa(null),na=null;function qa(e){var t=e.alternate;Ae(Ge,Ge.current&1),Ae(ia,e),na===null&&(t===null||$l.current!==null||t.memoizedState!==null)&&(na=e)}function ch(e){if(e.tag===22){if(Ae(Ge,Ge.current),Ae(ia,e),na===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(na=e)}}else ka()}function ka(){Ae(Ge,Ge.current),Ae(ia,ia.current)}function Ra(e){Xe(ia),na===e&&(na=null),Xe(Ge)}var Ge=oa(0);function Tu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var p2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},y2=Ye.unstable_scheduleCallback,g2=Ye.unstable_NormalPriority,Ve={$$typeof:ba,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wf(){return{controller:new p2,data:new Map,refCount:0}}function mr(e){e.refCount--,e.refCount===0&&y2(g2,function(){e.controller.abort()})}var zi=null,ps=0,zl=0,Cl=null;function b2(e,t){if(zi===null){var a=zi=[];ps=0,zl=Wf(),Cl={status:"pending",value:void 0,then:function(n){a.push(n)}}}return ps++,t.then(R1,R1),t}function R1(){if(zi!==null&&--ps===0){Cl!==null&&(Cl.status="fulfilled");var e=zi;zi=null,zl=0,Cl=null;for(var t=0;ti?i:8;var r=Z.T,u={};Z.T=u,jf(e,!1,t,a);try{var o=l(),c=Z.S;if(c!==null&&c(u,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var s=S2(o,n);wl(e,t,s)}else wl(e,t,n)}catch(d){wl(e,t,{then:function(){},status:"rejected",reason:d})}finally{Se.p=i,Z.T=r}}function _2(){}function bs(e,t,a,n){if(e.tag!==5)throw Error(w(476));var l=Uh(e).queue;Lh(e,l,t,En,a===null?_2:function(){return Hh(e),a(n)})}function Uh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:En,baseState:En,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:En},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hh(e){var t=Uh(e).next.queue;wl(e,t,{})}function Bf(){return lt(qu)}function Bh(){return Be().memoizedState}function jh(){return Be().memoizedState}function w2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=_a();e=Aa(a);var n=Ja(t,e,a);n!==null&&(ft(n,t,a),Li(n,t,a)),t={cache:wf()},e.payload=t;return}t=t.return}}function T2(e,t,a){var n=_a();a={lane:n,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},co(e)?Vh(t,a):(a=Rf(e,t,a,n),a!==null&&(ft(a,e,n),Gh(a,t,n)))}function wl(e,t,a){var n=_a(),l={lane:n,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(co(e))Vh(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var r=t.lastRenderedState,u=i(r,a);if(l.hasEagerState=!0,l.eagerState=u,Bt(u,r)){io(e,t,l,0),he===null&&lo();return}}catch{}finally{}a=Rf(e,t,l,n),a!==null&&(ft(a,e,n),Gh(a,t,n))}}function jf(e,t,a,n){if(n={lane:2,revertLane:Wf(),action:n,hasEagerState:!1,eagerState:null,next:null},co(e)){if(t)throw Error(w(479))}else t=Rf(e,a,n,2),t!==null&&ft(t,e,2)}function co(e){var t=e.alternate;return e===F||t!==null&&t===F}function Vh(e,t){Al=Ou=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Gh(e,t,a){if(a&4194176){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,xm(e,a)}}var ra={readContext:lt,use:uo,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e};ra.useCacheRefresh=$e;ra.useMemoCache=$e;ra.useHostTransitionStatus=$e;ra.useFormState=$e;ra.useActionState=$e;ra.useOptimistic=$e;var jn={readContext:lt,use:uo,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:w1,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ru(4194308,4,xh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){ru(4,2,e,t)},useMemo:function(e,t){var a=ht();t=t===void 0?null:t;var n=e();return On&&(Qa(!0),e(),Qa(!1)),a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=ht();if(a!==void 0){var l=a(t);On&&(Qa(!0),a(t),Qa(!1))}else l=t;return n.memoizedState=n.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},n.queue=e,e=e.dispatch=T2.bind(null,F,e),[n.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,a=wl.bind(null,F,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Uf,useDeferredValue:function(e,t){var a=ht();return Hf(a,e,t)},useTransition:function(){var e=ys(!1);return e=Lh.bind(null,F,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=F,l=ht();if(le){if(a===void 0)throw Error(w(407));a=a()}else{if(a=t(),he===null)throw Error(w(349));ie&60||hh(n,t,a)}l.memoizedState=a;var i={value:a,getSnapshot:t};return l.queue=i,w1(ph.bind(null,n,i,e),[e]),n.flags|=2048,Nl(9,vh.bind(null,n,i,a,t),{destroy:void 0},null),a},useId:function(){var e=ht(),t=he.identifierPrefix;if(le){var a=Ea,n=Sa;a=(n&~(1<<32-Ht(n)-1)).toString(32)+a,t=":"+t+"R"+a,a=Mu++,0 title"))),Fe(l,n,a),l[nt]=e,ke(l),n=l;break e;case"link":var i=e0("link","href",t).get(n+(a.href||""));if(i){for(var r=0;r<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof n.is=="string"?l.createElement("select",{is:n.is}):l.createElement("select"),n.multiple?e.multiple=!0:n.size&&(e.size=n.size);break;default:e=typeof n.is=="string"?l.createElement(a,{is:n.is}):l.createElement(a)}}e[nt]=t,e[st]=n;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=e;e:switch(Fe(e,a,n),a){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&va(t)}}return _e(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&va(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(w(166));if(e=Pa.current,ri(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=ot,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[nt]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Lv(e.nodeValue,a)),e||wn(t)}else e=ju(e).createTextNode(n),e[nt]=t,t.stateNode=e}return _e(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=ri(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(w(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(w(317));l[nt]=t}else dr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),l=!1}else kt!==null&&(Ns(kt),kt=null),l=!0;if(!l)return t.flags&256?(Ra(t),t):(Ra(t),null)}if(Ra(t),t.flags&128)return t.lanes=a,t;if(a=n!==null,e=e!==null&&e.memoizedState!==null,a){n=t.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool);var i=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==l&&(n.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Gr(t,t.updateQueue),_e(t),null;case 4:return Ml(),e===null&&Ff(t.stateNode.containerInfo),_e(t),null;case 10:return Ca(t.type),_e(t),null;case 19:if(Xe(Ge),l=t.memoizedState,l===null)return _e(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)oi(l,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Tu(e),i!==null){for(t.flags|=128,oi(l,!1),e=i.updateQueue,t.updateQueue=e,Gr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)bv(a,e),a=a.sibling;return Ae(Ge,Ge.current&1|2),t.child}e=e.sibling}l.tail!==null&&aa()>Nu&&(t.flags|=128,n=!0,oi(l,!1),t.lanes=4194304)}else{if(!n)if(e=Tu(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Gr(t,e),oi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!le)return _e(t),null}else 2*aa()-l.renderingStartTime>Nu&&a!==536870912&&(t.flags|=128,n=!0,oi(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=aa(),t.sibling=null,e=Ge.current,Ae(Ge,n?e&1|2:e&1),t):(_e(t),null);case 22:case 23:return Ra(t),_f(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?a&536870912&&!(t.flags&128)&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),a=t.updateQueue,a!==null&&Gr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Xe(Cn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ca(Ve),_e(t),null;case 25:return null}throw Error(w(156,t.tag))}function N2(e,t){switch(Af(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(Ve),Ml(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gu(t),null;case 13:if(Ra(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xe(Ge),null;case 4:return Ml(),null;case 10:return Ca(t.type),null;case 22:case 23:return Ra(t),_f(),e!==null&&Xe(Cn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ca(Ve),null;case 25:return null;default:return null}}function Ev(e,t){switch(Af(t),t.tag){case 3:Ca(Ve),Ml();break;case 26:case 27:case 5:gu(t);break;case 4:Ml();break;case 13:Ra(t);break;case 19:Xe(Ge);break;case 10:Ca(t.type);break;case 22:case 23:Ra(t),_f(),e!==null&&Xe(Cn);break;case 24:Ca(Ve)}}var L2={getCacheForType:function(e){var t=lt(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},U2=typeof WeakMap=="function"?WeakMap:Map,oe=0,he=null,ee=null,ie=0,we=0,xt=null,Zf=!1,Ma=0,xe=0,xa=0,Xl=0,Qf=0,vt=0,ji=null,Xt=null,Ul=!1,zu=!1,Kf=0,Nu=1/0,Ji=null,Fa=null,Yr=!1,hn=null,Vi=0,Ds=0,$s=null,Gi=0,zs=null;function _a(){if(oe&2&&ie!==0)return ie&-ie;if(Z.T!==null){var e=zl;return e!==0?e:Wf()}return $m()}function Rv(){vt===0&&(vt=!(ie&536870912)||le?Tm():536870912);var e=ia.current;return e!==null&&(e.flags|=32),vt}function ft(e,t,a){(e===he&&we===2||e.cancelPendingCommit!==null)&&(Gn(e,0),ea(e,ie,vt)),vr(e,a),(!(oe&2)||e!==he)&&(e===he&&(!(oe&2)&&(Xl|=a),xe===4&&ea(e,ie,vt)),pt(e))}function Cv(e,t){if(oe&6)throw Error(w(327));var a=e.callbackNode;if(Tl()&&e.callbackNode!==a)return null;var n=Su(e,e===he?ie:0);if(n===0)return null;var l=(n&60)===0&&(n&e.expiredLanes)===0&&!t;if(t=l?V2(e,n):Lu(e,n),t!==0){var i=l;do{if(t===6)ea(e,n,0);else{if(l=e.current.alternate,i&&!H2(l)){t=Lu(e,n),i=!1;continue}if(t===2){i=n;var r=wm(e,i);if(r!==0&&(n=r,t=Av(e,i,r),i=!1,t!==2))continue}if(t===1){Gn(e,0),ea(e,n,0);break}e.finishedWork=l,e.finishedLanes=n;e:{switch(i=e,t){case 0:case 1:throw Error(w(345));case 4:if((n&4194176)===n){ea(i,n,vt);break e}break;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(w(329))}if((n&62914560)===n&&(t=Kf+300-aa(),10a?32:a,Z.T=null,hn===null)var i=!1;else{a=$s,$s=null;var r=hn,u=Vi;if(hn=null,Vi=0,oe&6)throw Error(w(331));var o=oe;if(oe|=4,yv(r.current),hv(r,r.current,u,a),oe=o,pr(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(sr,r)}catch{}i=!0}return i}finally{Se.p=l,Z.T=n,xv(e,t)}}return!1}function Y1(e,t,a){t=Lt(a,t),t=Ss(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(vr(e,2),pt(e))}function ye(e,t,a){if(e.tag===3)Y1(e,e,a);else for(;t!==null;){if(t.tag===3){Y1(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Fa===null||!Fa.has(n))){e=Lt(a,e),a=Xh(2),n=Ja(t,a,2),n!==null&&(Zh(a,n,t,e),vr(n,2),pt(n));break}}t=t.return}}function hc(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new U2;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(a)||(Zf=!0,l.add(a),e=q2.bind(null,e,t,a),t.then(e,e))}function q2(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,oe&2?Ul=!0:oe&4&&(zu=!0),Jf(),he===e&&(ie&a)===a&&(xe===4||xe===3&&(ie&62914560)===ie&&300>aa()-Kf?!(oe&2)&&Gn(e,0):Qf|=a),pt(e)}function Dv(e,t){t===0&&(t=Om()),e=an(e,t),e!==null&&(vr(e,t),pt(e))}function k2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Dv(e,a)}function X2(e,t){var a=0;switch(e.tag){case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(w(314))}n!==null&&n.delete(t),Dv(e,a)}function Jf(){if(50"u"?null:document;function jv(e,t,a){var n=Zl;if(n&&typeof t=="string"&&t){var l=Nt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),W1.has(l)||(W1.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),Fe(t,"link",e),ke(t),n.head.appendChild(t)))}}function cb(e){Da.D(e),jv("dns-prefetch",e,null)}function sb(e,t){Da.C(e,t),jv("preconnect",e,t)}function fb(e,t,a){Da.L(e,t,a);var n=Zl;if(n&&e&&t){var l='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Nt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Nt(a.imageSizes)+'"]')):l+='[href="'+Nt(e)+'"]';var i=l;switch(t){case"style":i=Hl(e);break;case"script":i=Ql(e)}jt.has(i)||(e=Ee({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),jt.set(i,e),n.querySelector(l)!==null||t==="style"&&n.querySelector(yr(i))||t==="script"&&n.querySelector(gr(i))||(t=n.createElement("link"),Fe(t,"link",e),ke(t),n.head.appendChild(t)))}}function db(e,t){Da.m(e,t);var a=Zl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Nt(n)+'"][href="'+Nt(e)+'"]',i=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ql(e)}if(!jt.has(i)&&(e=Ee({rel:"modulepreload",href:e},t),jt.set(i,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(gr(i)))return}n=a.createElement("link"),Fe(n,"link",e),ke(n),a.head.appendChild(n)}}}function mb(e,t,a){Da.S(e,t,a);var n=Zl;if(n&&e){var l=bl(n).hoistableStyles,i=Hl(e);t=t||"default";var r=l.get(i);if(!r){var u={loading:0,preload:null};if(r=n.querySelector(yr(i)))u.loading=5;else{e=Ee({rel:"stylesheet",href:e,"data-precedence":t},a),(a=jt.get(i))&&If(e,a);var o=r=n.createElement("link");ke(o),Fe(o,"link",e),o._p=new Promise(function(c,s){o.onload=c,o.onerror=s}),o.addEventListener("load",function(){u.loading|=1}),o.addEventListener("error",function(){u.loading|=2}),u.loading|=4,cu(r,t,n)}r={type:"stylesheet",instance:r,count:1,state:u},l.set(i,r)}}}function hb(e,t){Da.X(e,t);var a=Zl;if(a&&e){var n=bl(a).hoistableScripts,l=Ql(e),i=n.get(l);i||(i=a.querySelector(gr(l)),i||(e=Ee({src:e,async:!0},t),(t=jt.get(l))&&ed(e,t),i=a.createElement("script"),ke(i),Fe(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(l,i))}}function vb(e,t){Da.M(e,t);var a=Zl;if(a&&e){var n=bl(a).hoistableScripts,l=Ql(e),i=n.get(l);i||(i=a.querySelector(gr(l)),i||(e=Ee({src:e,async:!0,type:"module"},t),(t=jt.get(l))&&ed(e,t),i=a.createElement("script"),ke(i),Fe(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(l,i))}}function F1(e,t,a,n){var l=(l=Pa.current)?Vu(l):null;if(!l)throw Error(w(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Hl(a.href),a=bl(l).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Hl(a.href);var i=bl(l).hoistableStyles,r=i.get(e);if(r||(l=l.ownerDocument||l,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,r),(i=l.querySelector(yr(e)))&&!i._p&&(r.instance=i,r.state.loading=5),jt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},jt.set(e,a),i||pb(l,e,a,r.state))),t&&n===null)throw Error(w(528,""));return r}if(t&&n!==null)throw Error(w(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ql(a),a=bl(l).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(w(444,e))}}function Hl(e){return'href="'+Nt(e)+'"'}function yr(e){return'link[rel="stylesheet"]['+e+"]"}function Vv(e){return Ee({},e,{"data-precedence":e.precedence,precedence:null})}function pb(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Fe(t,"link",a),ke(t),e.head.appendChild(t))}function Ql(e){return'[src="'+Nt(e)+'"]'}function gr(e){return"script[async]"+e}function I1(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Nt(a.href)+'"]');if(n)return t.instance=n,ke(n),n;var l=Ee({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ke(n),Fe(n,"style",l),cu(n,a.precedence,e),t.instance=n;case"stylesheet":l=Hl(a.href);var i=e.querySelector(yr(l));if(i)return t.state.loading|=4,t.instance=i,ke(i),i;n=Vv(a),(l=jt.get(l))&&If(n,l),i=(e.ownerDocument||e).createElement("link"),ke(i);var r=i;return r._p=new Promise(function(u,o){r.onload=u,r.onerror=o}),Fe(i,"link",n),t.state.loading|=4,cu(i,a.precedence,e),t.instance=i;case"script":return i=Ql(a.src),(l=e.querySelector(gr(i)))?(t.instance=l,ke(l),l):(n=a,(l=jt.get(i))&&(n=Ee({},a),ed(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),ke(l),Fe(l,"link",n),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(w(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,cu(n,a.precedence,e));return t.instance}function cu(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,i=l,r=0;r title"):null)}function yb(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gv(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Ii=null;function gb(){}function bb(e,t,a){if(Ii===null)throw Error(w(475));var n=Ii;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var l=Hl(a.href),i=e.querySelector(yr(l));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(n.count++,n=Gu.bind(n),e.then(n,n)),t.state.loading|=4,t.instance=i,ke(i);return}i=e.ownerDocument||e,a=Vv(a),(l=jt.get(l))&&If(a,l),i=i.createElement("link"),ke(i);var r=i;r._p=new Promise(function(u,o){r.onload=u,r.onerror=o}),Fe(i,"link",a),t.instance=i}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(n.count++,t=Gu.bind(n),e.addEventListener("load",t),e.addEventListener("error",t))}}function Sb(){if(Ii===null)throw Error(w(475));var e=Ii;return e.stylesheets&&e.count===0&&qs(e,e.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kv)}catch(e){console.error(e)}}Kv(),sm.exports=Iu;var Pv=sm.exports;const Jv=Vl(Pv),q9=af({__proto__:null,default:Jv},[Pv]);/** - * @remix-run/router v1.19.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xb(){return Math.random().toString(36).substr(2,8)}function o0(e,t){return{usr:e.state,key:e.key,idx:t}}function nr(e,t,a,n){return a===void 0&&(a=null),Te({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$a(t):t,{state:a,key:t&&t.key||n||xb()})}function $n(e){let{pathname:t="/",search:a="",hash:n=""}=e;return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function $a(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substr(a),e=e.substr(0,a));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Db(e,t,a,n){n===void 0&&(n={});let{window:l=document.defaultView,v5Compat:i=!1}=n,r=l.history,u=Le.Pop,o=null,c=s();c==null&&(c=0,r.replaceState(Te({},r.state,{idx:c}),""));function s(){return(r.state||{idx:null}).idx}function d(){u=Le.Pop;let T=s(),h=T==null?null:T-c;c=T,o&&o({action:u,location:S.location,delta:h})}function f(T,h){u=Le.Push;let m=nr(S.location,T,h);a&&a(m,T),c=s()+1;let v=o0(m,c),E=S.createHref(m);try{r.pushState(v,"",E)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;l.location.assign(E)}i&&o&&o({action:u,location:S.location,delta:1})}function y(T,h){u=Le.Replace;let m=nr(S.location,T,h);a&&a(m,T),c=s();let v=o0(m,c),E=S.createHref(m);r.replaceState(v,"",E),i&&o&&o({action:u,location:S.location,delta:0})}function C(T){let h=l.location.origin!=="null"?l.location.origin:l.location.href,m=typeof T=="string"?T:$n(T);return m=m.replace(/ $/,"%20"),I(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let S={get action(){return u},get location(){return e(l,r)},listen(T){if(o)throw new Error("A history only accepts one active listener");return l.addEventListener(u0,d),o=T,()=>{l.removeEventListener(u0,d),o=null}},createHref(T){return t(l,T)},createURL:C,encodeLocation(T){let h=C(T);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:y,go(T){return r.go(T)}};return S}var de;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(de||(de={}));const $b=new Set(["lazy","caseSensitive","path","id","index","children"]);function zb(e){return e.index===!0}function lr(e,t,a,n){return a===void 0&&(a=[]),n===void 0&&(n={}),e.map((l,i)=>{let r=[...a,String(i)],u=typeof l.id=="string"?l.id:r.join("-");if(I(l.index!==!0||!l.children,"Cannot specify children on an index route"),I(!n[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),zb(l)){let o=Te({},l,t(l),{id:u});return n[u]=o,o}else{let o=Te({},l,t(l),{id:u,children:void 0});return n[u]=o,l.children&&(o.children=lr(l.children,t,r,n)),o}})}function vn(e,t,a){return a===void 0&&(a="/"),du(e,t,a,!1)}function du(e,t,a,n){let l=typeof t=="string"?$a(t):t,i=Kl(l.pathname||"/",a);if(i==null)return null;let r=Wv(e);Lb(r);let u=null;for(let o=0;u==null&&o{let o={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:r,route:i};o.relativePath.startsWith("/")&&(I(o.relativePath.startsWith(n),'Absolute route path "'+o.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),o.relativePath=o.relativePath.slice(n.length));let c=wa([n,o.relativePath]),s=a.concat(o);i.children&&i.children.length>0&&(I(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Wv(i.children,t,s,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Yb(c,i.index),routesMeta:s})};return e.forEach((i,r)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,r);else for(let o of Fv(i.path))l(i,r,o)}),t}function Fv(e){let t=e.split("/");if(t.length===0)return[];let[a,...n]=t,l=a.endsWith("?"),i=a.replace(/\?$/,"");if(n.length===0)return l?[i,""]:[i];let r=Fv(n.join("/")),u=[];return u.push(...r.map(o=>o===""?i:[i,o].join("/"))),l&&u.push(...r),u.map(o=>e.startsWith("/")&&o===""?"/":o)}function Lb(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:qb(t.routesMeta.map(n=>n.childrenIndex),a.routesMeta.map(n=>n.childrenIndex)))}const Ub=/^:[\w-]+$/,Hb=3,Bb=2,jb=1,Vb=10,Gb=-2,c0=e=>e==="*";function Yb(e,t){let a=e.split("/"),n=a.length;return a.some(c0)&&(n+=Gb),t&&(n+=Bb),a.filter(l=>!c0(l)).reduce((l,i)=>l+(Ub.test(i)?Hb:i===""?jb:Vb),n)}function qb(e,t){return e.length===t.length&&e.slice(0,-1).every((n,l)=>n===t[l])?e[e.length-1]-t[t.length-1]:0}function kb(e,t,a){a===void 0&&(a=!1);let{routesMeta:n}=e,l={},i="/",r=[];for(let u=0;u{let{paramName:f,isOptional:y}=s;if(f==="*"){let S=u[d]||"";r=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const C=u[d];return y&&!C?c[f]=void 0:c[f]=(C||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:r,pattern:e}}function Xb(e,t,a){t===void 0&&(t=!1),a===void 0&&(a=!0),Dn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(r,u,o)=>(n.push({paramName:u,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),n]}function Zb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Kl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,n=e.charAt(a);return n&&n!=="/"?null:e.slice(a)||"/"}function Qb(e,t){t===void 0&&(t="/");let{pathname:a,search:n="",hash:l=""}=typeof e=="string"?$a(e):e;return{pathname:a?a.startsWith("/")?a:Kb(a,t):t,search:Jb(n),hash:Wb(l)}}function Kb(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function Rc(e,t,a,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+a+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Iv(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function id(e,t){let a=Iv(e);return t?a.map((n,l)=>l===a.length-1?n.pathname:n.pathnameBase):a.map(n=>n.pathnameBase)}function rd(e,t,a,n){n===void 0&&(n=!1);let l;typeof e=="string"?l=$a(e):(l=Te({},e),I(!l.pathname||!l.pathname.includes("?"),Rc("?","pathname","search",l)),I(!l.pathname||!l.pathname.includes("#"),Rc("#","pathname","hash",l)),I(!l.search||!l.search.includes("#"),Rc("#","search","hash",l)));let i=e===""||l.pathname==="",r=i?"/":l.pathname,u;if(r==null)u=a;else{let d=t.length-1;if(!n&&r.startsWith("..")){let f=r.split("/");for(;f[0]==="..";)f.shift(),d-=1;l.pathname=f.join("/")}u=d>=0?t[d]:"/"}let o=Qb(l,u),c=r&&r!=="/"&&r.endsWith("/"),s=(i||r===".")&&a.endsWith("/");return!o.pathname.endsWith("/")&&(c||s)&&(o.pathname+="/"),o}const wa=e=>e.join("/").replace(/\/\/+/g,"/"),Pb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Jb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Wb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Zu{constructor(t,a,n,l){l===void 0&&(l=!1),this.status=t,this.statusText=a||"",this.internal=l,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function yo(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ep=["post","put","patch","delete"],Fb=new Set(ep),Ib=["get",...ep],e4=new Set(Ib),t4=new Set([301,302,303,307,308]),a4=new Set([307,308]),Cc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},n4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},si={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ud=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,l4=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),tp="remix-router-transitions";function i4(e){const t=e.window?e.window:typeof window<"u"?window:void 0,a=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!a;I(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let p=e.detectErrorBoundary;l=b=>({hasErrorBoundary:p(b)})}else l=l4;let i={},r=lr(e.routes,l,void 0,i),u,o=e.basename||"/",c=e.unstable_dataStrategy||s4,s=e.unstable_patchRoutesOnNavigation,d=Te({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,y=new Set,C=1e3,S=new Set,T=null,h=null,m=null,v=e.hydrationData!=null,E=vn(r,e.history.location,o),x=null;if(E==null&&!s){let p=ut(404,{pathname:e.history.location.pathname}),{matches:b,route:R}=S0(r);E=b,x={[R.id]:p}}E&&!e.hydrationData&&_r(E,r,e.history.location.pathname).active&&(E=null);let $;if(E)if(E.some(p=>p.route.lazy))$=!1;else if(!E.some(p=>p.route.loader))$=!0;else if(d.v7_partialHydration){let p=e.hydrationData?e.hydrationData.loaderData:null,b=e.hydrationData?e.hydrationData.errors:null,R=O=>O.route.loader?typeof O.route.loader=="function"&&O.route.loader.hydrate===!0?!1:p&&p[O.route.id]!==void 0||b&&b[O.route.id]!==void 0:!0;if(b){let O=E.findIndex(U=>b[U.route.id]!==void 0);$=E.slice(0,O+1).every(R)}else $=E.every(R)}else $=e.hydrationData!=null;else if($=!1,E=[],d.v7_partialHydration){let p=_r(null,r,e.history.location.pathname);p.active&&p.matches&&(E=p.matches)}let D,g={historyAction:e.history.action,location:e.history.location,matches:E,initialized:$,navigation:Cc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},A=Le.Pop,L=!1,j,K=!1,De=new Map,ve=null,et=!1,z=!1,Y=[],q=new Set,k=new Map,ge=0,Tt=-1,bt=new Map,it=new Set,mt=new Map,Kt=new Map,ca=new Set,on=new Map,cn=new Map,my=new Map,Ho=!1;function hy(){if(f=e.history.listen(p=>{let{action:b,location:R,delta:O}=p;if(Ho){Ho=!1;return}Dn(cn.size===0||O!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let U=Ld({currentLocation:g.location,nextLocation:R,historyAction:b});if(U&&O!=null){Ho=!0,e.history.go(O*-1),Cr(U,{state:"blocked",location:R,proceed(){Cr(U,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),e.history.go(O)},reset(){let B=new Map(g.blockers);B.set(U,si),rt({blockers:B})}});return}return sn(b,R)}),a){C4(t,De);let p=()=>A4(t,De);t.addEventListener("pagehide",p),ve=()=>t.removeEventListener("pagehide",p)}return g.initialized||sn(Le.Pop,g.location,{initialHydration:!0}),D}function vy(){f&&f(),ve&&ve(),y.clear(),j&&j.abort(),g.fetchers.forEach((p,b)=>Rr(b)),g.blockers.forEach((p,b)=>Nd(b))}function py(p){return y.add(p),()=>y.delete(p)}function rt(p,b){b===void 0&&(b={}),g=Te({},g,p);let R=[],O=[];d.v7_fetcherPersist&&g.fetchers.forEach((U,B)=>{U.state==="idle"&&(ca.has(B)?O.push(B):R.push(B))}),[...y].forEach(U=>U(g,{deletedFetchers:O,unstable_viewTransitionOpts:b.viewTransitionOpts,unstable_flushSync:b.flushSync===!0})),d.v7_fetcherPersist&&(R.forEach(U=>g.fetchers.delete(U)),O.forEach(U=>Rr(U)))}function kn(p,b,R){var O,U;let{flushSync:B}=R===void 0?{}:R,G=g.actionData!=null&&g.navigation.formMethod!=null&&qt(g.navigation.formMethod)&&g.navigation.state==="loading"&&((O=p.state)==null?void 0:O._isRedirect)!==!0,N;b.actionData?Object.keys(b.actionData).length>0?N=b.actionData:N=null:G?N=g.actionData:N=null;let X=b.loaderData?g0(g.loaderData,b.loaderData,b.matches||[],b.errors):g.loaderData,V=g.blockers;V.size>0&&(V=new Map(V),V.forEach((ue,pe)=>V.set(pe,si)));let Q=L===!0||g.navigation.formMethod!=null&&qt(g.navigation.formMethod)&&((U=p.state)==null?void 0:U._isRedirect)!==!0;u&&(r=u,u=void 0),et||A===Le.Pop||(A===Le.Push?e.history.push(p,p.state):A===Le.Replace&&e.history.replace(p,p.state));let se;if(A===Le.Pop){let ue=De.get(g.location.pathname);ue&&ue.has(p.pathname)?se={currentLocation:g.location,nextLocation:p}:De.has(p.pathname)&&(se={currentLocation:p,nextLocation:g.location})}else if(K){let ue=De.get(g.location.pathname);ue?ue.add(p.pathname):(ue=new Set([p.pathname]),De.set(g.location.pathname,ue)),se={currentLocation:g.location,nextLocation:p}}rt(Te({},b,{actionData:N,loaderData:X,historyAction:A,location:p,initialized:!0,navigation:Cc,revalidation:"idle",restoreScrollPosition:Hd(p,b.matches||g.matches),preventScrollReset:Q,blockers:V}),{viewTransitionOpts:se,flushSync:B===!0}),A=Le.Pop,L=!1,K=!1,et=!1,z=!1,Y=[]}async function Td(p,b){if(typeof p=="number"){e.history.go(p);return}let R=Zs(g.location,g.matches,o,d.v7_prependBasename,p,d.v7_relativeSplatPath,b==null?void 0:b.fromRouteId,b==null?void 0:b.relative),{path:O,submission:U,error:B}=f0(d.v7_normalizeFormMethod,!1,R,b),G=g.location,N=nr(g.location,O,b&&b.state);N=Te({},N,e.history.encodeLocation(N));let X=b&&b.replace!=null?b.replace:void 0,V=Le.Push;X===!0?V=Le.Replace:X===!1||U!=null&&qt(U.formMethod)&&U.formAction===g.location.pathname+g.location.search&&(V=Le.Replace);let Q=b&&"preventScrollReset"in b?b.preventScrollReset===!0:void 0,se=(b&&b.unstable_flushSync)===!0,ue=Ld({currentLocation:G,nextLocation:N,historyAction:V});if(ue){Cr(ue,{state:"blocked",location:N,proceed(){Cr(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:N}),Td(p,b)},reset(){let pe=new Map(g.blockers);pe.set(ue,si),rt({blockers:pe})}});return}return await sn(V,N,{submission:U,pendingError:B,preventScrollReset:Q,replace:b&&b.replace,enableViewTransition:b&&b.unstable_viewTransition,flushSync:se})}function yy(){if(Bo(),rt({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){sn(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}sn(A||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function sn(p,b,R){j&&j.abort(),j=null,A=p,et=(R&&R.startUninterruptedRevalidation)===!0,Ty(g.location,g.matches),L=(R&&R.preventScrollReset)===!0,K=(R&&R.enableViewTransition)===!0;let O=u||r,U=R&&R.overrideNavigation,B=vn(O,b,o),G=(R&&R.flushSync)===!0,N=_r(B,O,b.pathname);if(N.active&&N.matches&&(B=N.matches),!B){let{error:re,notFoundMatches:Qe,route:ze}=jo(b.pathname);kn(b,{matches:Qe,loaderData:{},errors:{[ze.id]:re}},{flushSync:G});return}if(g.initialized&&!z&&p4(g.location,b)&&!(R&&R.submission&&qt(R.submission.formMethod))){kn(b,{matches:B},{flushSync:G});return}j=new AbortController;let X=Wn(e.history,b,j.signal,R&&R.submission),V;if(R&&R.pendingError)V=[gl(B).route.id,{type:de.error,error:R.pendingError}];else if(R&&R.submission&&qt(R.submission.formMethod)){let re=await gy(X,b,R.submission,B,N.active,{replace:R.replace,flushSync:G});if(re.shortCircuited)return;if(re.pendingActionResult){let[Qe,ze]=re.pendingActionResult;if(Rt(ze)&&yo(ze.error)&&ze.error.status===404){j=null,kn(b,{matches:re.matches,loaderData:{},errors:{[Qe]:ze.error}});return}}B=re.matches||B,V=re.pendingActionResult,U=Ac(b,R.submission),G=!1,N.active=!1,X=Wn(e.history,X.url,X.signal)}let{shortCircuited:Q,matches:se,loaderData:ue,errors:pe}=await by(X,b,B,N.active,U,R&&R.submission,R&&R.fetcherSubmission,R&&R.replace,R&&R.initialHydration===!0,G,V);Q||(j=null,kn(b,Te({matches:se||B},b0(V),{loaderData:ue,errors:pe})))}async function gy(p,b,R,O,U,B){B===void 0&&(B={}),Bo();let G=E4(b,R);if(rt({navigation:G},{flushSync:B.flushSync===!0}),U){let V=await wr(O,b.pathname,p.signal);if(V.type==="aborted")return{shortCircuited:!0};if(V.type==="error"){let{boundaryId:Q,error:se}=Ar(b.pathname,V);return{matches:V.partialMatches,pendingActionResult:[Q,{type:de.error,error:se}]}}else if(V.matches)O=V.matches;else{let{notFoundMatches:Q,error:se,route:ue}=jo(b.pathname);return{matches:Q,pendingActionResult:[ue.id,{type:de.error,error:se}]}}}let N,X=wi(O,b);if(!X.route.action&&!X.route.lazy)N={type:de.error,error:ut(405,{method:p.method,pathname:b.pathname,routeId:X.route.id})};else if(N=(await ti("action",p,[X],O))[0],p.signal.aborted)return{shortCircuited:!0};if(Sn(N)){let V;return B&&B.replace!=null?V=B.replace:V=v0(N.response.headers.get("Location"),new URL(p.url),o)===g.location.pathname+g.location.search,await ei(p,N,{submission:R,replace:V}),{shortCircuited:!0}}if(bn(N))throw ut(400,{type:"defer-action"});if(Rt(N)){let V=gl(O,X.route.id);return(B&&B.replace)!==!0&&(A=Le.Push),{matches:O,pendingActionResult:[V.route.id,N]}}return{matches:O,pendingActionResult:[X.route.id,N]}}async function by(p,b,R,O,U,B,G,N,X,V,Q){let se=U||Ac(b,B),ue=B||G||A0(se),pe=!et&&(!d.v7_partialHydration||!X);if(O){if(pe){let Me=Od(Q);rt(Te({navigation:se},Me!==void 0?{actionData:Me}:{}),{flushSync:V})}let P=await wr(R,b.pathname,p.signal);if(P.type==="aborted")return{shortCircuited:!0};if(P.type==="error"){let{boundaryId:Me,error:St}=Ar(b.pathname,P);return{matches:P.partialMatches,loaderData:{},errors:{[Me]:St}}}else if(P.matches)R=P.matches;else{let{error:Me,notFoundMatches:St,route:Re}=jo(b.pathname);return{matches:St,loaderData:{},errors:{[Re.id]:Me}}}}let re=u||r,[Qe,ze]=d0(e.history,g,R,ue,b,d.v7_partialHydration&&X===!0,d.v7_skipActionErrorRevalidation,z,Y,q,ca,mt,it,re,o,Q);if(Vo(P=>!(R&&R.some(Me=>Me.route.id===P))||Qe&&Qe.some(Me=>Me.route.id===P)),Tt=++ge,Qe.length===0&&ze.length===0){let P=$d();return kn(b,Te({matches:R,loaderData:{},errors:Q&&Rt(Q[1])?{[Q[0]]:Q[1].error}:null},b0(Q),P?{fetchers:new Map(g.fetchers)}:{}),{flushSync:V}),{shortCircuited:!0}}if(pe){let P={};if(!O){P.navigation=se;let Me=Od(Q);Me!==void 0&&(P.actionData=Me)}ze.length>0&&(P.fetchers=Sy(ze)),rt(P,{flushSync:V})}ze.forEach(P=>{k.has(P.key)&&Na(P.key),P.controller&&k.set(P.key,P.controller)});let ai=()=>ze.forEach(P=>Na(P.key));j&&j.signal.addEventListener("abort",ai);let{loaderResults:La,fetcherResults:Xn}=await Md(g.matches,R,Qe,ze,p);if(p.signal.aborted)return{shortCircuited:!0};j&&j.signal.removeEventListener("abort",ai),ze.forEach(P=>k.delete(P.key));let Zn=E0([...La,...Xn]);if(Zn){if(Zn.idx>=Qe.length){let P=ze[Zn.idx-Qe.length].key;it.add(P)}return await ei(p,Zn.result,{replace:N}),{shortCircuited:!0}}let{loaderData:Qn,errors:Pt}=y0(g,R,Qe,La,Q,ze,Xn,on);on.forEach((P,Me)=>{P.subscribe(St=>{(St||P.done)&&on.delete(Me)})}),d.v7_partialHydration&&X&&g.errors&&Object.entries(g.errors).filter(P=>{let[Me]=P;return!Qe.some(St=>St.route.id===Me)}).forEach(P=>{let[Me,St]=P;Pt=Object.assign(Pt||{},{[Me]:St})});let Tr=$d(),Or=zd(Tt),Mr=Tr||Or||ze.length>0;return Te({matches:R,loaderData:Qn,errors:Pt},Mr?{fetchers:new Map(g.fetchers)}:{})}function Od(p){if(p&&!Rt(p[1]))return{[p[0]]:p[1].data};if(g.actionData)return Object.keys(g.actionData).length===0?null:g.actionData}function Sy(p){return p.forEach(b=>{let R=g.fetchers.get(b.key),O=fi(void 0,R?R.data:void 0);g.fetchers.set(b.key,O)}),new Map(g.fetchers)}function Ey(p,b,R,O){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");k.has(p)&&Na(p);let U=(O&&O.unstable_flushSync)===!0,B=u||r,G=Zs(g.location,g.matches,o,d.v7_prependBasename,R,d.v7_relativeSplatPath,b,O==null?void 0:O.relative),N=vn(B,G,o),X=_r(N,B,G);if(X.active&&X.matches&&(N=X.matches),!N){sa(p,b,ut(404,{pathname:G}),{flushSync:U});return}let{path:V,submission:Q,error:se}=f0(d.v7_normalizeFormMethod,!0,G,O);if(se){sa(p,b,se,{flushSync:U});return}let ue=wi(N,V);if(L=(O&&O.preventScrollReset)===!0,Q&&qt(Q.formMethod)){Ry(p,b,V,ue,N,X.active,U,Q);return}mt.set(p,{routeId:b,path:V}),Cy(p,b,V,ue,N,X.active,U,Q)}async function Ry(p,b,R,O,U,B,G,N){Bo(),mt.delete(p);function X(Re){if(!Re.route.action&&!Re.route.lazy){let fa=ut(405,{method:N.formMethod,pathname:R,routeId:b});return sa(p,b,fa,{flushSync:G}),!0}return!1}if(!B&&X(O))return;let V=g.fetchers.get(p);za(p,R4(N,V),{flushSync:G});let Q=new AbortController,se=Wn(e.history,R,Q.signal,N);if(B){let Re=await wr(U,R,se.signal);if(Re.type==="aborted")return;if(Re.type==="error"){let{error:fa}=Ar(R,Re);sa(p,b,fa,{flushSync:G});return}else if(Re.matches){if(U=Re.matches,O=wi(U,R),X(O))return}else{sa(p,b,ut(404,{pathname:R}),{flushSync:G});return}}k.set(p,Q);let ue=ge,re=(await ti("action",se,[O],U))[0];if(se.signal.aborted){k.get(p)===Q&&k.delete(p);return}if(d.v7_fetcherPersist&&ca.has(p)){if(Sn(re)||Rt(re)){za(p,Va(void 0));return}}else{if(Sn(re))if(k.delete(p),Tt>ue){za(p,Va(void 0));return}else return it.add(p),za(p,fi(N)),ei(se,re,{fetcherSubmission:N});if(Rt(re)){sa(p,b,re.error);return}}if(bn(re))throw ut(400,{type:"defer-action"});let Qe=g.navigation.location||g.location,ze=Wn(e.history,Qe,Q.signal),ai=u||r,La=g.navigation.state!=="idle"?vn(ai,g.navigation.location,o):g.matches;I(La,"Didn't find any matches after fetcher action");let Xn=++ge;bt.set(p,Xn);let Zn=fi(N,re.data);g.fetchers.set(p,Zn);let[Qn,Pt]=d0(e.history,g,La,N,Qe,!1,d.v7_skipActionErrorRevalidation,z,Y,q,ca,mt,it,ai,o,[O.route.id,re]);Pt.filter(Re=>Re.key!==p).forEach(Re=>{let fa=Re.key,jd=g.fetchers.get(fa),xy=fi(void 0,jd?jd.data:void 0);g.fetchers.set(fa,xy),k.has(fa)&&Na(fa),Re.controller&&k.set(fa,Re.controller)}),rt({fetchers:new Map(g.fetchers)});let Tr=()=>Pt.forEach(Re=>Na(Re.key));Q.signal.addEventListener("abort",Tr);let{loaderResults:Or,fetcherResults:Mr}=await Md(g.matches,La,Qn,Pt,ze);if(Q.signal.aborted)return;Q.signal.removeEventListener("abort",Tr),bt.delete(p),k.delete(p),Pt.forEach(Re=>k.delete(Re.key));let P=E0([...Or,...Mr]);if(P){if(P.idx>=Qn.length){let Re=Pt[P.idx-Qn.length].key;it.add(Re)}return ei(ze,P.result)}let{loaderData:Me,errors:St}=y0(g,g.matches,Qn,Or,void 0,Pt,Mr,on);if(g.fetchers.has(p)){let Re=Va(re.data);g.fetchers.set(p,Re)}zd(Xn),g.navigation.state==="loading"&&Xn>Tt?(I(A,"Expected pending action"),j&&j.abort(),kn(g.navigation.location,{matches:La,loaderData:Me,errors:St,fetchers:new Map(g.fetchers)})):(rt({errors:St,loaderData:g0(g.loaderData,Me,La,St),fetchers:new Map(g.fetchers)}),z=!1)}async function Cy(p,b,R,O,U,B,G,N){let X=g.fetchers.get(p);za(p,fi(N,X?X.data:void 0),{flushSync:G});let V=new AbortController,Q=Wn(e.history,R,V.signal);if(B){let re=await wr(U,R,Q.signal);if(re.type==="aborted")return;if(re.type==="error"){let{error:Qe}=Ar(R,re);sa(p,b,Qe,{flushSync:G});return}else if(re.matches)U=re.matches,O=wi(U,R);else{sa(p,b,ut(404,{pathname:R}),{flushSync:G});return}}k.set(p,V);let se=ge,pe=(await ti("loader",Q,[O],U))[0];if(bn(pe)&&(pe=await rp(pe,Q.signal,!0)||pe),k.get(p)===V&&k.delete(p),!Q.signal.aborted){if(ca.has(p)){za(p,Va(void 0));return}if(Sn(pe))if(Tt>se){za(p,Va(void 0));return}else{it.add(p),await ei(Q,pe);return}if(Rt(pe)){sa(p,b,pe.error);return}I(!bn(pe),"Unhandled fetcher deferred data"),za(p,Va(pe.data))}}async function ei(p,b,R){let{submission:O,fetcherSubmission:U,replace:B}=R===void 0?{}:R;b.response.headers.has("X-Remix-Revalidate")&&(z=!0);let G=b.response.headers.get("Location");I(G,"Expected a Location header on the redirect Response"),G=v0(G,new URL(p.url),o);let N=nr(g.location,G,{_isRedirect:!0});if(a){let pe=!1;if(b.response.headers.has("X-Remix-Reload-Document"))pe=!0;else if(ud.test(G)){const re=e.history.createURL(G);pe=re.origin!==t.location.origin||Kl(re.pathname,o)==null}if(pe){B?t.location.replace(G):t.location.assign(G);return}}j=null;let X=B===!0||b.response.headers.has("X-Remix-Replace")?Le.Replace:Le.Push,{formMethod:V,formAction:Q,formEncType:se}=g.navigation;!O&&!U&&V&&Q&&se&&(O=A0(g.navigation));let ue=O||U;if(a4.has(b.response.status)&&ue&&qt(ue.formMethod))await sn(X,N,{submission:Te({},ue,{formAction:G}),preventScrollReset:L});else{let pe=Ac(N,O);await sn(X,N,{overrideNavigation:pe,fetcherSubmission:U,preventScrollReset:L})}}async function ti(p,b,R,O){try{let U=await f4(c,p,b,R,O,i,l);return await Promise.all(U.map((B,G)=>{if(g4(B)){let N=B.result;return{type:de.redirect,response:h4(N,b,R[G].route.id,O,o,d.v7_relativeSplatPath)}}return m4(B)}))}catch(U){return R.map(()=>({type:de.error,error:U}))}}async function Md(p,b,R,O,U){let[B,...G]=await Promise.all([R.length?ti("loader",U,R,b):[],...O.map(N=>{if(N.matches&&N.match&&N.controller){let X=Wn(e.history,N.path,N.controller.signal);return ti("loader",X,[N.match],N.matches).then(V=>V[0])}else return Promise.resolve({type:de.error,error:ut(404,{pathname:N.path})})})]);return await Promise.all([C0(p,R,B,B.map(()=>U.signal),!1,g.loaderData),C0(p,O.map(N=>N.match),G,O.map(N=>N.controller?N.controller.signal:null),!0)]),{loaderResults:B,fetcherResults:G}}function Bo(){z=!0,Y.push(...Vo()),mt.forEach((p,b)=>{k.has(b)&&(q.add(b),Na(b))})}function za(p,b,R){R===void 0&&(R={}),g.fetchers.set(p,b),rt({fetchers:new Map(g.fetchers)},{flushSync:(R&&R.flushSync)===!0})}function sa(p,b,R,O){O===void 0&&(O={});let U=gl(g.matches,b);Rr(p),rt({errors:{[U.route.id]:R},fetchers:new Map(g.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function xd(p){return d.v7_fetcherPersist&&(Kt.set(p,(Kt.get(p)||0)+1),ca.has(p)&&ca.delete(p)),g.fetchers.get(p)||n4}function Rr(p){let b=g.fetchers.get(p);k.has(p)&&!(b&&b.state==="loading"&&bt.has(p))&&Na(p),mt.delete(p),bt.delete(p),it.delete(p),ca.delete(p),q.delete(p),g.fetchers.delete(p)}function Ay(p){if(d.v7_fetcherPersist){let b=(Kt.get(p)||0)-1;b<=0?(Kt.delete(p),ca.add(p)):Kt.set(p,b)}else Rr(p);rt({fetchers:new Map(g.fetchers)})}function Na(p){let b=k.get(p);I(b,"Expected fetch controller: "+p),b.abort(),k.delete(p)}function Dd(p){for(let b of p){let R=xd(b),O=Va(R.data);g.fetchers.set(b,O)}}function $d(){let p=[],b=!1;for(let R of it){let O=g.fetchers.get(R);I(O,"Expected fetcher: "+R),O.state==="loading"&&(it.delete(R),p.push(R),b=!0)}return Dd(p),b}function zd(p){let b=[];for(let[R,O]of bt)if(O0}function _y(p,b){let R=g.blockers.get(p)||si;return cn.get(p)!==b&&cn.set(p,b),R}function Nd(p){g.blockers.delete(p),cn.delete(p)}function Cr(p,b){let R=g.blockers.get(p)||si;I(R.state==="unblocked"&&b.state==="blocked"||R.state==="blocked"&&b.state==="blocked"||R.state==="blocked"&&b.state==="proceeding"||R.state==="blocked"&&b.state==="unblocked"||R.state==="proceeding"&&b.state==="unblocked","Invalid blocker state transition: "+R.state+" -> "+b.state);let O=new Map(g.blockers);O.set(p,b),rt({blockers:O})}function Ld(p){let{currentLocation:b,nextLocation:R,historyAction:O}=p;if(cn.size===0)return;cn.size>1&&Dn(!1,"A router only supports one blocker at a time");let U=Array.from(cn.entries()),[B,G]=U[U.length-1],N=g.blockers.get(B);if(!(N&&N.state==="proceeding")&&G({currentLocation:b,nextLocation:R,historyAction:O}))return B}function jo(p){let b=ut(404,{pathname:p}),R=u||r,{matches:O,route:U}=S0(R);return Vo(),{notFoundMatches:O,route:U,error:b}}function Ar(p,b){return{boundaryId:gl(b.partialMatches).route.id,error:ut(400,{type:"route-discovery",pathname:p,message:b.error!=null&&"message"in b.error?b.error:String(b.error)})}}function Vo(p){let b=[];return on.forEach((R,O)=>{(!p||p(O))&&(R.cancel(),b.push(O),on.delete(O))}),b}function wy(p,b,R){if(T=p,m=b,h=R||null,!v&&g.navigation===Cc){v=!0;let O=Hd(g.location,g.matches);O!=null&&rt({restoreScrollPosition:O})}return()=>{T=null,m=null,h=null}}function Ud(p,b){return h&&h(p,b.map(O=>Nb(O,g.loaderData)))||p.key}function Ty(p,b){if(T&&m){let R=Ud(p,b);T[R]=m()}}function Hd(p,b){if(T){let R=Ud(p,b),O=T[R];if(typeof O=="number")return O}return null}function _r(p,b,R){if(s){if(S.has(R))return{active:!1,matches:p};if(p){if(Object.keys(p[0].params).length>0)return{active:!0,matches:du(b,R,o,!0)}}else return{active:!0,matches:du(b,R,o,!0)||[]}}return{active:!1,matches:null}}async function wr(p,b,R){let O=p;for(;;){let U=u==null,B=u||r;try{await c4(s,b,O,B,i,l,my,R)}catch(X){return{type:"error",error:X,partialMatches:O}}finally{U&&(r=[...r])}if(R.aborted)return{type:"aborted"};let G=vn(B,b,o);if(G)return Bd(b,S),{type:"success",matches:G};let N=du(B,b,o,!0);if(!N||O.length===N.length&&O.every((X,V)=>X.route.id===N[V].route.id))return Bd(b,S),{type:"success",matches:null};O=N}}function Bd(p,b){if(b.size>=C){let R=b.values().next().value;b.delete(R)}b.add(p)}function Oy(p){i={},u=lr(p,l,void 0,i)}function My(p,b){let R=u==null;np(p,b,u||r,i,l),R&&(r=[...r],rt({}))}return D={get basename(){return o},get future(){return d},get state(){return g},get routes(){return r},get window(){return t},initialize:hy,subscribe:py,enableScrollRestoration:wy,navigate:Td,fetch:Ey,revalidate:yy,createHref:p=>e.history.createHref(p),encodeLocation:p=>e.history.encodeLocation(p),getFetcher:xd,deleteFetcher:Ay,dispose:vy,getBlocker:_y,deleteBlocker:Nd,patchRoutes:My,_internalFetchControllers:k,_internalActiveDeferreds:on,_internalSetRoutes:Oy},D}function r4(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Zs(e,t,a,n,l,i,r,u){let o,c;if(r){o=[];for(let d of t)if(o.push(d),d.route.id===r){c=d;break}}else o=t,c=t[t.length-1];let s=rd(l||".",id(o,i),Kl(e.pathname,a)||e.pathname,u==="path");return l==null&&(s.search=e.search,s.hash=e.hash),(l==null||l===""||l===".")&&c&&c.route.index&&!od(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n&&a!=="/"&&(s.pathname=s.pathname==="/"?a:wa([a,s.pathname])),$n(s)}function f0(e,t,a,n){if(!n||!r4(n))return{path:a};if(n.formMethod&&!S4(n.formMethod))return{path:a,error:ut(405,{method:n.formMethod})};let l=()=>({path:a,error:ut(400,{type:"invalid-body"})}),i=n.formMethod||"get",r=e?i.toUpperCase():i.toLowerCase(),u=lp(a);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!qt(r))return l();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,C)=>{let[S,T]=C;return""+y+S+"="+T+` -`},""):String(n.body);return{path:a,submission:{formMethod:r,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!qt(r))return l();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:a,submission:{formMethod:r,formAction:u,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return l()}}}I(typeof FormData=="function","FormData is not available in this environment");let o,c;if(n.formData)o=Qs(n.formData),c=n.formData;else if(n.body instanceof FormData)o=Qs(n.body),c=n.body;else if(n.body instanceof URLSearchParams)o=n.body,c=p0(o);else if(n.body==null)o=new URLSearchParams,c=new FormData;else try{o=new URLSearchParams(n.body),c=p0(o)}catch{return l()}let s={formMethod:r,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(qt(s.formMethod))return{path:a,submission:s};let d=$a(a);return t&&d.search&&od(d.search)&&o.append("index",""),d.search="?"+o,{path:$n(d),submission:s}}function u4(e,t){let a=e;if(t){let n=e.findIndex(l=>l.route.id===t);n>=0&&(a=e.slice(0,n))}return a}function d0(e,t,a,n,l,i,r,u,o,c,s,d,f,y,C,S){let T=S?Rt(S[1])?S[1].error:S[1].data:void 0,h=e.createURL(t.location),m=e.createURL(l),v=S&&Rt(S[1])?S[0]:void 0,E=v?u4(a,v):a,x=S?S[1].statusCode:void 0,$=r&&x&&x>=400,D=E.filter((A,L)=>{let{route:j}=A;if(j.lazy)return!0;if(j.loader==null)return!1;if(i)return typeof j.loader!="function"||j.loader.hydrate?!0:t.loaderData[j.id]===void 0&&(!t.errors||t.errors[j.id]===void 0);if(o4(t.loaderData,t.matches[L],A)||o.some(ve=>ve===A.route.id))return!0;let K=t.matches[L],De=A;return m0(A,Te({currentUrl:h,currentParams:K.params,nextUrl:m,nextParams:De.params},n,{actionResult:T,actionStatus:x,defaultShouldRevalidate:$?!1:u||h.pathname+h.search===m.pathname+m.search||h.search!==m.search||ap(K,De)}))}),g=[];return d.forEach((A,L)=>{if(i||!a.some(et=>et.route.id===A.routeId)||s.has(L))return;let j=vn(y,A.path,C);if(!j){g.push({key:L,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let K=t.fetchers.get(L),De=wi(j,A.path),ve=!1;f.has(L)?ve=!1:c.has(L)?(c.delete(L),ve=!0):K&&K.state!=="idle"&&K.data===void 0?ve=u:ve=m0(De,Te({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:a[a.length-1].params},n,{actionResult:T,actionStatus:x,defaultShouldRevalidate:$?!1:u})),ve&&g.push({key:L,routeId:A.routeId,path:A.path,matches:j,match:De,controller:new AbortController})}),[D,g]}function o4(e,t,a){let n=!t||a.route.id!==t.route.id,l=e[a.route.id]===void 0;return n||l}function ap(e,t){let a=e.route.path;return e.pathname!==t.pathname||a!=null&&a.endsWith("*")&&e.params["*"]!==t.params["*"]}function m0(e,t){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(t);if(typeof a=="boolean")return a}return t.defaultShouldRevalidate}async function c4(e,t,a,n,l,i,r,u){let o=[t,...a.map(c=>c.route.id)].join("-");try{let c=r.get(o);c||(c=e({path:t,matches:a,patch:(s,d)=>{u.aborted||np(s,d,n,l,i)}}),r.set(o,c)),c&&y4(c)&&await c}finally{r.delete(o)}}function np(e,t,a,n,l){if(e){var i;let r=n[e];I(r,"No route found to patch children into: routeId = "+e);let u=lr(t,l,[e,"patch",String(((i=r.children)==null?void 0:i.length)||"0")],n);r.children?r.children.push(...u):r.children=u}else{let r=lr(t,l,["patch",String(a.length||"0")],n);a.push(...r)}}async function h0(e,t,a){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let l=a[e.id];I(l,"No route found in manifest");let i={};for(let r in n){let o=l[r]!==void 0&&r!=="hasErrorBoundary";Dn(!o,'Route "'+l.id+'" has a static property "'+r+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+r+'" will be ignored.')),!o&&!$b.has(r)&&(i[r]=n[r])}Object.assign(l,i),Object.assign(l,Te({},t(l),{lazy:void 0}))}function s4(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function f4(e,t,a,n,l,i,r,u){let o=n.reduce((d,f)=>d.add(f.route.id),new Set),c=new Set,s=await e({matches:l.map(d=>{let f=o.has(d.route.id);return Te({},d,{shouldLoad:f,resolve:C=>(c.add(d.route.id),f?d4(t,a,d,i,r,C,u):Promise.resolve({type:de.data,result:void 0}))})}),request:a,params:l[0].params,context:u});return l.forEach(d=>I(c.has(d.route.id),'`match.resolve()` was not called for route id "'+d.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),s.filter((d,f)=>o.has(l[f].route.id))}async function d4(e,t,a,n,l,i,r){let u,o,c=s=>{let d,f=new Promise((S,T)=>d=T);o=()=>d(),t.signal.addEventListener("abort",o);let y=S=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+a.route.id+"]"))):s({request:t,params:a.params,context:r},...S!==void 0?[S]:[]),C;return i?C=i(S=>y(S)):C=(async()=>{try{return{type:"data",result:await y()}}catch(S){return{type:"error",result:S}}})(),Promise.race([C,f])};try{let s=a.route[e];if(a.route.lazy)if(s){let d,[f]=await Promise.all([c(s).catch(y=>{d=y}),h0(a.route,l,n)]);if(d!==void 0)throw d;u=f}else if(await h0(a.route,l,n),s=a.route[e],s)u=await c(s);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw ut(405,{method:t.method,pathname:f,routeId:a.route.id})}else return{type:de.data,result:void 0};else if(s)u=await c(s);else{let d=new URL(t.url),f=d.pathname+d.search;throw ut(404,{pathname:f})}I(u.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+a.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(s){return{type:de.error,result:s}}finally{o&&t.signal.removeEventListener("abort",o)}return u}async function m4(e){let{result:t,type:a}=e;if(ip(t)){let c;try{let s=t.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(s){return{type:de.error,error:s}}return a===de.error?{type:de.error,error:new Zu(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:de.data,data:c,statusCode:t.status,headers:t.headers}}if(a===de.error){if(R0(t)){var n;if(t.data instanceof Error){var l;return{type:de.error,error:t.data,statusCode:(l=t.init)==null?void 0:l.status}}t=new Zu(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:de.error,error:t,statusCode:yo(t)?t.status:void 0}}if(b4(t)){var i,r;return{type:de.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((r=t.init)==null?void 0:r.headers)&&new Headers(t.init.headers)}}if(R0(t)){var u,o;return{type:de.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:de.data,data:t}}function h4(e,t,a,n,l,i){let r=e.headers.get("Location");if(I(r,"Redirects returned/thrown from loaders/actions must have a Location header"),!ud.test(r)){let u=n.slice(0,n.findIndex(o=>o.route.id===a)+1);r=Zs(new URL(t.url),u,l,!0,r,i),e.headers.set("Location",r)}return e}function v0(e,t,a){if(ud.test(e)){let n=e,l=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=Kl(l.pathname,a)!=null;if(l.origin===t.origin&&i)return l.pathname+l.search+l.hash}return e}function Wn(e,t,a,n){let l=e.createURL(lp(t)).toString(),i={signal:a};if(n&&qt(n.formMethod)){let{formMethod:r,formEncType:u}=n;i.method=r.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(n.json)):u==="text/plain"?i.body=n.text:u==="application/x-www-form-urlencoded"&&n.formData?i.body=Qs(n.formData):i.body=n.formData}return new Request(l,i)}function Qs(e){let t=new URLSearchParams;for(let[a,n]of e.entries())t.append(a,typeof n=="string"?n:n.name);return t}function p0(e){let t=new FormData;for(let[a,n]of e.entries())t.append(a,n);return t}function v4(e,t,a,n,l,i){let r={},u=null,o,c=!1,s={},d=n&&Rt(n[1])?n[1].error:void 0;return a.forEach((f,y)=>{let C=t[y].route.id;if(I(!Sn(f),"Cannot handle redirect results in processLoaderData"),Rt(f)){let S=f.error;d!==void 0&&(S=d,d=void 0),u=u||{};{let T=gl(e,C);u[T.route.id]==null&&(u[T.route.id]=S)}r[C]=void 0,c||(c=!0,o=yo(f.error)?f.error.status:500),f.headers&&(s[C]=f.headers)}else bn(f)?(l.set(C,f.deferredData),r[C]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!c&&(o=f.statusCode),f.headers&&(s[C]=f.headers)):(r[C]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(o=f.statusCode),f.headers&&(s[C]=f.headers))}),d!==void 0&&n&&(u={[n[0]]:d},r[n[0]]=void 0),{loaderData:r,errors:u,statusCode:o||200,loaderHeaders:s}}function y0(e,t,a,n,l,i,r,u){let{loaderData:o,errors:c}=v4(t,a,n,l,u);for(let s=0;sn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function S0(e){let t=e.length===1?e[0]:e.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ut(e,t){let{pathname:a,routeId:n,method:l,type:i,message:r}=t===void 0?{}:t,u="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(u="Bad Request",i==="route-discovery"?o='Unable to match URL "'+a+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+r):l&&a&&n?o="You made a "+l+' request to "'+a+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?o="defer() is not supported in actions":i==="invalid-body"&&(o="Unable to encode submission body")):e===403?(u="Forbidden",o='Route "'+n+'" does not match URL "'+a+'"'):e===404?(u="Not Found",o='No route matches URL "'+a+'"'):e===405&&(u="Method Not Allowed",l&&a&&n?o="You made a "+l.toUpperCase()+' request to "'+a+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":l&&(o='Invalid request method "'+l.toUpperCase()+'"')),new Zu(e||500,u,new Error(o),!0)}function E0(e){for(let t=e.length-1;t>=0;t--){let a=e[t];if(Sn(a))return{result:a,idx:t}}}function lp(e){let t=typeof e=="string"?$a(e):e;return $n(Te({},t,{hash:""}))}function p4(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function y4(e){return typeof e=="object"&&e!=null&&"then"in e}function g4(e){return ip(e.result)&&t4.has(e.result.status)}function bn(e){return e.type===de.deferred}function Rt(e){return e.type===de.error}function Sn(e){return(e&&e.type)===de.redirect}function R0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function b4(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function ip(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function S4(e){return e4.has(e.toLowerCase())}function qt(e){return Fb.has(e.toLowerCase())}async function C0(e,t,a,n,l,i){for(let r=0;rd.route.id===o.route.id),s=c!=null&&!ap(c,o)&&(i&&i[o.route.id])!==void 0;if(bn(u)&&(l||s)){let d=n[r];I(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await rp(u,d,l).then(f=>{f&&(a[r]=f||a[r])})}}}async function rp(e,t,a){if(a===void 0&&(a=!1),!await e.deferredData.resolveData(t)){if(a)try{return{type:de.data,data:e.deferredData.unwrappedData}}catch(l){return{type:de.error,error:l}}return{type:de.data,data:e.deferredData.data}}}function od(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function wi(e,t){let a=typeof t=="string"?$a(t).search:t.search;if(e[e.length-1].route.index&&od(a||""))return e[e.length-1];let n=Iv(e);return n[n.length-1]}function A0(e){let{formMethod:t,formAction:a,formEncType:n,text:l,formData:i,json:r}=e;if(!(!t||!a||!n)){if(l!=null)return{formMethod:t,formAction:a,formEncType:n,formData:void 0,json:void 0,text:l};if(i!=null)return{formMethod:t,formAction:a,formEncType:n,formData:i,json:void 0,text:void 0};if(r!==void 0)return{formMethod:t,formAction:a,formEncType:n,formData:void 0,json:r,text:void 0}}}function Ac(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function E4(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function fi(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function R4(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Va(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function C4(e,t){try{let a=e.sessionStorage.getItem(tp);if(a){let n=JSON.parse(a);for(let[l,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(l,new Set(i||[]))}}catch{}}function A4(e,t){if(t.size>0){let a={};for(let[n,l]of t)a[n]=[...l];try{e.sessionStorage.setItem(tp,JSON.stringify(a))}catch(n){Dn(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** - * React Router v6.26.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Qu(){return Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),_.useCallback(function(c,s){if(s===void 0&&(s={}),!u.current)return;if(typeof c=="number"){n.go(c);return}let d=rd(c,JSON.parse(r),i,s.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:wa([t,d.pathname])),(s.replace?n.replace:n.push)(d,s.state,s)},[t,n,r,i,e])}function k9(){let{matches:e}=_.useContext(un),t=e[e.length-1];return t?t.params:{}}function sp(e,t){let{relative:a}=t===void 0?{}:t,{future:n}=_.useContext(Yn),{matches:l}=_.useContext(un),{pathname:i}=bo(),r=JSON.stringify(id(l,n.v7_relativeSplatPath));return _.useMemo(()=>rd(e,JSON.parse(r),i,a==="path"),[e,r,i,a])}function O4(e,t,a,n){br()||I(!1);let{navigator:l}=_.useContext(Yn),{matches:i}=_.useContext(un),r=i[i.length-1],u=r?r.params:{};r&&r.pathname;let o=r?r.pathnameBase:"/";r&&r.route;let c=bo(),s;s=c;let d=s.pathname||"/",f=d;if(o!=="/"){let S=o.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=vn(e,{pathname:f});return z4(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:wa([o,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?o:wa([o,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,a,n)}function M4(){let e=U4(),t=yo(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),a?_.createElement("pre",{style:l},a):null,null)}const x4=_.createElement(M4,null);class D4 extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){console.error("React Router caught the following error during render",t,a)}render(){return this.state.error!==void 0?_.createElement(un.Provider,{value:this.props.routeContext},_.createElement(op.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $4(e){let{routeContext:t,match:a,children:n}=e,l=_.useContext(go);return l&&l.static&&l.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=a.route.id),_.createElement(un.Provider,{value:t},n)}function z4(e,t,a,n){var l;if(t===void 0&&(t=[]),a===void 0&&(a=null),n===void 0&&(n=null),e==null){var i;if(!a)return null;if(a.errors)e=a.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let r=e,u=(l=a)==null?void 0:l.errors;if(u!=null){let s=r.findIndex(d=>d.route.id&&(u==null?void 0:u[d.route.id])!==void 0);s>=0||I(!1),r=r.slice(0,Math.min(r.length,s+1))}let o=!1,c=-1;if(a&&n&&n.v7_partialHydration)for(let s=0;s=0?r=r.slice(0,c+1):r=[r[0]];break}}}return r.reduceRight((s,d,f)=>{let y,C=!1,S=null,T=null;a&&(y=u&&d.route.id?u[d.route.id]:void 0,S=d.route.errorElement||x4,o&&(c<0&&f===0?(C=!0,T=null):c===f&&(C=!0,T=d.route.hydrateFallbackElement||null)));let h=t.concat(r.slice(0,f+1)),m=()=>{let v;return y?v=S:C?v=T:d.route.Component?v=_.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=s,_.createElement($4,{match:d,routeContext:{outlet:s,matches:h,isDataRoute:a!=null},children:v})};return a&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?_.createElement(D4,{location:a.location,revalidation:a.revalidation,component:S,error:y,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var fp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fp||{}),Bl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Bl||{});function N4(e){let t=_.useContext(go);return t||I(!1),t}function dp(e){let t=_.useContext(up);return t||I(!1),t}function L4(e){let t=_.useContext(un);return t||I(!1),t}function sd(e){let t=L4(),a=t.matches[t.matches.length-1];return a.route.id||I(!1),a.route.id}function X9(){let e=dp(Bl.UseLoaderData),t=sd(Bl.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function U4(){var e;let t=_.useContext(op),a=dp(Bl.UseRouteError),n=sd(Bl.UseRouteError);return t!==void 0?t:(e=a.errors)==null?void 0:e[n]}function H4(){let{router:e}=N4(fp.UseNavigateStable),t=sd(Bl.UseNavigateStable),a=_.useRef(!1);return cp(()=>{a.current=!0}),_.useCallback(function(l,i){i===void 0&&(i={}),a.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Qu({fromRouteId:t},i)))},[e,t])}function B4(e){let{basename:t="/",children:a=null,location:n,navigationType:l=Le.Pop,navigator:i,static:r=!1,future:u}=e;br()&&I(!1);let o=t.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:o,navigator:i,static:r,future:Qu({v7_relativeSplatPath:!1},u)}),[o,u,i,r]);typeof n=="string"&&(n=$a(n));let{pathname:s="/",search:d="",hash:f="",state:y=null,key:C="default"}=n,S=_.useMemo(()=>{let T=Kl(s,o);return T==null?null:{location:{pathname:T,search:d,hash:f,state:y,key:C},navigationType:l}},[o,s,d,f,y,C,l]);return S==null?null:_.createElement(Yn.Provider,{value:c},_.createElement(cd.Provider,{children:a,value:S}))}new Promise(()=>{});function j4(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.26.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(a[l]=e[l]);return a}function G4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Y4(e,t){return e.button===0&&(!t||t==="_self")&&!G4(e)}const q4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],k4="6";try{window.__reactRouterVersion=k4}catch{}function X4(e,t){return i4({basename:void 0,future:ir({},void 0,{v7_prependBasename:!0}),history:Mb({window:void 0}),hydrationData:Z4(),routes:e,mapRouteProperties:j4,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Z4(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ir({},t,{errors:Q4(t.errors)})),t}function Q4(e){if(!e)return null;let t=Object.entries(e),a={};for(let[n,l]of t)if(l&&l.__type==="RouteErrorResponse")a[n]=new Zu(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let i=window[l.__subType];if(typeof i=="function")try{let r=new i(l.message);r.stack="",a[n]=r}catch{}}if(a[n]==null){let i=new Error(l.message);i.stack="",a[n]=i}}else a[n]=l;return a}const K4=_.createContext({isTransitioning:!1}),P4=_.createContext(new Map),J4="startTransition",_0=Wc[J4],W4="flushSync",w0=eg[W4];function F4(e){_0?_0(e):e()}function di(e){w0?w0(e):e()}class I4{constructor(){this.status="pending",this.promise=new Promise((t,a)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",a(n))}})}}function e3(e){let{fallbackElement:t,router:a,future:n}=e,[l,i]=_.useState(a.state),[r,u]=_.useState(),[o,c]=_.useState({isTransitioning:!1}),[s,d]=_.useState(),[f,y]=_.useState(),[C,S]=_.useState(),T=_.useRef(new Map),{v7_startTransition:h}=n||{},m=_.useCallback(g=>{h?F4(g):g()},[h]),v=_.useCallback((g,A)=>{let{deletedFetchers:L,unstable_flushSync:j,unstable_viewTransitionOpts:K}=A;L.forEach(ve=>T.current.delete(ve)),g.fetchers.forEach((ve,et)=>{ve.data!==void 0&&T.current.set(et,ve.data)});let De=a.window==null||a.window.document==null||typeof a.window.document.startViewTransition!="function";if(!K||De){j?di(()=>i(g)):m(()=>i(g));return}if(j){di(()=>{f&&(s&&s.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:K.currentLocation,nextLocation:K.nextLocation})});let ve=a.window.document.startViewTransition(()=>{di(()=>i(g))});ve.finished.finally(()=>{di(()=>{d(void 0),y(void 0),u(void 0),c({isTransitioning:!1})})}),di(()=>y(ve));return}f?(s&&s.resolve(),f.skipTransition(),S({state:g,currentLocation:K.currentLocation,nextLocation:K.nextLocation})):(u(g),c({isTransitioning:!0,flushSync:!1,currentLocation:K.currentLocation,nextLocation:K.nextLocation}))},[a.window,f,s,T,m]);_.useLayoutEffect(()=>a.subscribe(v),[a,v]),_.useEffect(()=>{o.isTransitioning&&!o.flushSync&&d(new I4)},[o]),_.useEffect(()=>{if(s&&r&&a.window){let g=r,A=s.promise,L=a.window.document.startViewTransition(async()=>{m(()=>i(g)),await A});L.finished.finally(()=>{d(void 0),y(void 0),u(void 0),c({isTransitioning:!1})}),y(L)}},[m,r,s,a.window]),_.useEffect(()=>{s&&r&&l.location.key===r.location.key&&s.resolve()},[s,f,l.location,r]),_.useEffect(()=>{!o.isTransitioning&&C&&(u(C.state),c({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),S(void 0))},[o.isTransitioning,C]),_.useEffect(()=>{},[]);let E=_.useMemo(()=>({createHref:a.createHref,encodeLocation:a.encodeLocation,go:g=>a.navigate(g),push:(g,A,L)=>a.navigate(g,{state:A,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(g,A,L)=>a.navigate(g,{replace:!0,state:A,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[a]),x=a.basename||"/",$=_.useMemo(()=>({router:a,navigator:E,static:!1,basename:x}),[a,E,x]),D=_.useMemo(()=>({v7_relativeSplatPath:a.future.v7_relativeSplatPath}),[a.future.v7_relativeSplatPath]);return _.createElement(_.Fragment,null,_.createElement(go.Provider,{value:$},_.createElement(up.Provider,{value:l},_.createElement(P4.Provider,{value:T.current},_.createElement(K4.Provider,{value:o},_.createElement(B4,{basename:x,location:l.location,navigationType:l.historyAction,navigator:E,future:D},l.initialized||a.future.v7_partialHydration?_.createElement(t3,{routes:a.routes,future:a.future,state:l}):t))))),null)}const t3=_.memo(a3);function a3(e){let{routes:t,future:a,state:n}=e;return O4(t,void 0,n,a)}const n3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",l3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z9=_.forwardRef(function(t,a){let{onClick:n,relative:l,reloadDocument:i,replace:r,state:u,target:o,to:c,preventScrollReset:s,unstable_viewTransition:d}=t,f=V4(t,q4),{basename:y}=_.useContext(Yn),C,S=!1;if(typeof c=="string"&&l3.test(c)&&(C=c,n3))try{let v=new URL(window.location.href),E=c.startsWith("//")?new URL(v.protocol+c):new URL(c),x=Kl(E.pathname,y);E.origin===v.origin&&x!=null?c=x+E.search+E.hash:S=!0}catch{}let T=_4(c,{relative:l}),h=i3(c,{replace:r,state:u,target:o,preventScrollReset:s,relative:l,unstable_viewTransition:d});function m(v){n&&n(v),v.defaultPrevented||h(v)}return _.createElement("a",ir({},f,{href:C||T,onClick:S||i?n:m,ref:a,target:o}))});var T0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(T0||(T0={}));var O0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(O0||(O0={}));function i3(e,t){let{target:a,replace:n,state:l,preventScrollReset:i,relative:r,unstable_viewTransition:u}=t===void 0?{}:t,o=w4(),c=bo(),s=sp(e,{relative:r});return _.useCallback(d=>{if(Y4(d,a)){d.preventDefault();let f=n!==void 0?n:$n(c)===$n(s);o(e,{replace:f,state:l,preventScrollReset:i,relative:r,unstable_viewTransition:u})}},[c,o,s,n,l,a,e,i,r,u])}var r3=!1;function u3(e){if(e.sheet)return e.sheet;for(var t=0;t0?Pe(Pl,--yt):0,jl--,He===10&&(jl=1,Eo--),He}function _t(){return He=yt2||ur(He)>3?"":" "}function S3(e,t){for(;--t&&_t()&&!(He<48||He>102||He>57&&He<65||He>70&&He<97););return Sr(e,mu()+(t<6&&la()==32&&_t()==32))}function Ps(e){for(;_t();)switch(He){case e:return yt;case 34:case 39:e!==34&&e!==39&&Ps(He);break;case 40:e===41&&Ps(e);break;case 92:_t();break}return yt}function E3(e,t){for(;_t()&&e+He!==57;)if(e+He===84&&la()===47)break;return"/*"+Sr(t,yt-1)+"*"+So(e===47?e:_t())}function R3(e){for(;!ur(la());)_t();return Sr(e,yt)}function C3(e){return gp(vu("",null,null,null,[""],e=yp(e),0,[0],e))}function vu(e,t,a,n,l,i,r,u,o){for(var c=0,s=0,d=r,f=0,y=0,C=0,S=1,T=1,h=1,m=0,v="",E=l,x=i,$=n,D=v;T;)switch(C=m,m=_t()){case 40:if(C!=108&&Pe(D,d-1)==58){Ks(D+=ne(hu(m),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:D+=hu(m);break;case 9:case 10:case 13:case 32:D+=b3(C);break;case 92:D+=S3(mu()-1,7);continue;case 47:switch(la()){case 42:case 47:Qr(A3(E3(_t(),mu()),t,a),o);break;default:D+="/"}break;case 123*S:u[c++]=Wt(D)*h;case 125*S:case 59:case 0:switch(m){case 0:case 125:T=0;case 59+s:h==-1&&(D=ne(D,/\f/g,"")),y>0&&Wt(D)-d&&Qr(y>32?x0(D+";",n,a,d-1):x0(ne(D," ","")+";",n,a,d-2),o);break;case 59:D+=";";default:if(Qr($=M0(D,t,a,c,s,l,u,v,E=[],x=[],d),i),m===123)if(s===0)vu(D,t,$,$,E,i,d,u,x);else switch(f===99&&Pe(D,3)===110?100:f){case 100:case 108:case 109:case 115:vu(e,$,$,n&&Qr(M0(e,$,$,0,0,l,u,v,l,E=[],d),x),l,x,d,u,n?E:x);break;default:vu(D,$,$,$,[""],x,0,u,x)}}c=s=y=0,S=h=1,v=D="",d=r;break;case 58:d=1+Wt(D),y=C;default:if(S<1){if(m==123)--S;else if(m==125&&S++==0&&g3()==125)continue}switch(D+=So(m),m*S){case 38:h=s>0?1:(D+="\f",-1);break;case 44:u[c++]=(Wt(D)-1)*h,h=1;break;case 64:la()===45&&(D+=hu(_t())),f=la(),s=d=Wt(v=D+=R3(mu())),m++;break;case 45:C===45&&Wt(D)==2&&(S=0)}}return i}function M0(e,t,a,n,l,i,r,u,o,c,s){for(var d=l-1,f=l===0?i:[""],y=md(f),C=0,S=0,T=0;C0?f[h]+" "+m:ne(m,/&\f/g,f[h])))&&(o[T++]=v);return Ro(e,t,a,l===0?fd:u,o,c,s)}function A3(e,t,a){return Ro(e,t,a,mp,So(y3()),rr(e,2,-2),0)}function x0(e,t,a,n){return Ro(e,t,a,dd,rr(e,0,n),rr(e,n+1,-1),n)}function Ol(e,t){for(var a="",n=md(e),l=0;l6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Ku+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ks(e,"stretch")?Sp(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,Wt(e)-3-(~Ks(e,"!important")&&10))){case 107:return ne(e,":",":"+ae)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ae+e+tt+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+tt+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+tt+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+tt+e+e}return e}var z3=function(t,a,n,l){if(t.length>-1&&!t.return)switch(t.type){case dd:t.return=Sp(t.value,t.length);break;case hp:return Ol([mi(t,{value:ne(t.value,"@","@"+ae)})],l);case fd:if(t.length)return p3(t.props,function(i){switch(v3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ol([mi(t,{props:[ne(i,/:(read-\w+)/,":"+Ku+"$1")]})],l);case"::placeholder":return Ol([mi(t,{props:[ne(i,/:(plac\w+)/,":"+ae+"input-$1")]}),mi(t,{props:[ne(i,/:(plac\w+)/,":"+Ku+"$1")]}),mi(t,{props:[ne(i,/:(plac\w+)/,tt+"input-$1")]})],l)}return""})}},N3=[z3],L3=function(t){var a=t.key;if(a==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var l=t.stylisPlugins||N3,i={},r,u=[];r=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),h=1;h=4;++n,l-=4)a=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var I3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},e5=!1,t5=/[A-Z]|^ms/g,a5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tp=function(t){return t.charCodeAt(1)===45},U0=function(t){return t!=null&&typeof t!="boolean"},_c=bp(function(e){return Tp(e)?e:e.replace(t5,"-$&").toLowerCase()}),H0=function(t,a){switch(t){case"animation":case"animationName":if(typeof a=="string")return a.replace(a5,function(n,l,i){return Ft={name:l,styles:i,next:Ft},l})}return I3[t]!==1&&!Tp(t)&&typeof a=="number"&&a!==0?a+"px":a},n5="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function or(e,t,a){if(a==null)return"";var n=a;if(n.__emotion_styles!==void 0)return n;switch(typeof a){case"boolean":return"";case"object":{var l=a;if(l.anim===1)return Ft={name:l.name,styles:l.styles,next:Ft},l.name;var i=a;if(i.styles!==void 0){var r=i.next;if(r!==void 0)for(;r!==void 0;)Ft={name:r.name,styles:r.styles,next:Ft},r=r.next;var u=i.styles+";";return u}return l5(e,t,a)}case"function":{if(e!==void 0){var o=Ft,c=a(e);return Ft=o,or(e,t,c)}break}}var s=a;return s}function l5(e,t,a){var n="";if(Array.isArray(a))for(var l=0;la=>{if(typeof e=="function"){const n=a.displayName||a.name,l=e(a,...t);return l.displayName=n,l}else return a}}function Np(e,t,a,n,...l){}const zn=(e,t,...a)=>Np("error",!0,e,t,...a),Pu=(e,t,...a)=>Np("warn",!0,e,t,...a);var R5=function e(t,a){if(t===a)return!0;if(t&&a&&typeof t=="object"&&typeof a=="object"){if(t.constructor!==a.constructor)return!1;var n,l,i;if(Array.isArray(t)){if(n=t.length,n!=a.length)return!1;for(l=n;l--!==0;)if(!e(t[l],a[l]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(a).length)return!1;for(l=n;l--!==0;)if(!Object.prototype.hasOwnProperty.call(a,i[l]))return!1;for(l=n;l--!==0;){var r=i[l];if(!e(t[r],a[r]))return!1}return!0}return t!==t&&a!==a};const C5=Vl(R5),A5=(e,t)=>(t.has(e)?t.set(e,t.get(e)+1):t.set(e,0),`${e}_${t.get(e)}`),_5=Object.prototype.hasOwnProperty;function Lp(e){if(typeof e!="object")return!0;for(const t in e)if(_5.call(e,t))return!1;return!0}function Up(...e){let t={};return e.forEach(a=>{t=Hp(t,a)}),t}function Hp(e,t){if(wc(t)){const a=[...Object.keys(t),...Object.getOwnPropertySymbols(t)],n={...e};return a.forEach(l=>{wc(e[l])&&wc(t[l])?n[l]=Hp(e[l],t[l]):Tc(t[l])&&Tc(e[l])?n[l]=[...new Set([...e[l],...t[l]])]:Tc(e[l])?n[l]=[...new Set([...e[l],t[l]])]:n[l]=t[l]}),n}else return{...e}}function wc(e){return e&&(typeof e=="object"||typeof e=="function")&&!Array.isArray(e)}function Tc(e){return Array.isArray(e)}function w5(e){if(Array.isArray(e))return e}function T5(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,l,i,r,u=[],o=!0,c=!1;try{if(i=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=i.call(a)).done)&&(u.push(n.value),u.length!==t);o=!0);}catch(s){c=!0,l=s}finally{try{if(!o&&a.return!=null&&(r=a.return(),Object(r)!==r))return}finally{if(c)throw l}}return u}}function V0(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a!!e&&e.ref!==void 0,$5=e=>!!e&&e.current!==void 0;function Er(e){const t=typeof e=="function"?e():e;if(t&&t===document)return document.documentElement;if(t instanceof Element||t===window||t&&typeof t.nodeType<"u")return t;if(t){const a=t;if(D5(a)){const n=$5(a.ref)?a.ref.current:a.ref;return n instanceof HTMLElement?n:Er(n)}else return a.constructor.componentId?a.constructor.componentId:a.constructor.name,pm.findDOMNode(t)}}const No=!!(typeof window<"u"&&window.document&&window.document.createElement);function z5(e){const t=e&&Er(e);let a;t&&"ownerDocument"in t&&(a=t.ownerDocument);const n=No?window.document:void 0;return a||n}function N5(e){const t=e&&Er(e),a=z5(t);return a&&a.defaultView}function L5(e,t){let a={};if(No){const n=e&&Er(e);if(n){const l=N5(e);a=l?l.getComputedStyle(n,t):{}}}return a}function Bp(e){return e.replace(/-([a-z])/g,t=>t[1].toUpperCase())}const U5=["borders","breakpoints","colors","forms","media","shadows","spacing","stacking","transitions","typography"],jp=e=>{if(Array.isArray(e)||typeof e=="function")throw new Error;try{return"key"in e&&U5.every(t=>t in e)}catch{throw new Error}};function H5(e,t,a){var n,l;return t.as&&t.as!==((n=e.defaultProps)===null||n===void 0?void 0:n.as)?t.as:typeof a=="function"?a():t.href?"a":t.to?(Pu(!t.as,`[${e.displayName}] \`as\` prop should be provided when using \`to\``),"a"):typeof t.onClick=="function"?"button":((l=e.defaultProps)===null||l===void 0?void 0:l.as)||"span"}function Vp(e,t,a){const n=Array.isArray(t)?t:Object.keys(t||{}),l=a?n.concat(a):n;return j5(e,l)}const B5=Object.prototype.hasOwnProperty,j5=(e,t)=>{const a={};for(const n in e)n==="theme"||n==="children"||n==="className"||n==="style"||n==="styles"||n==="makeStyles"||n==="themeOverride"||n==="deterministicId"||t.includes(n)||!B5.call(e,n)||(a[n]=e[n]);return a};var V5=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,G5=bp(function(e){return V5.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Y5(e){const t={};return Object.keys(e).filter(a=>G5(a)&&a!=="style"&&a!=="className"&&a!=="children"&&a!=="styles"&&a!=="makeStyles"&&a!=="deterministicId").forEach(a=>{t[a]=e[a]}),t}function Gp(e,t,a){const n=Array.isArray(t)?t:Object.keys(t||{}),l=a?n.concat(a):n;return q5(e,l)}function q5(e,t){const a={},n=t.length;let l=-1,i;for(;++lCe.createElement(qp.Provider,{value:t},e),Z5=zo(e=>{const t=_.forwardRef((a,n)=>{const l=e.componentId||e.displayName||e.name,i=_.useContext(qp),r=(u=l)=>A5(u,i);return a.deterministicId&&Pu(!1,`Manually passing the "deterministicId" property is not allowed on the ${l} component. -`,a.deterministicId),Ce.createElement(e,Object.assign({ref:n,deterministicId:r},a))});return bd(t,e),t.propTypes=e.propTypes,t.defaultProps=e.defaultProps,t.allowedProps=e.allowedProps,t.originalType=e.originalType||e,t});function Q5(e,t){if(e==null)return{};var a={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;a[n]=e[n]}return a}function Nn(e,t){if(e==null)return{};var a,n,l=Q5(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{if(hi)return hi;if(No){const e=document.documentElement;return Kr=e.getAttribute("dir"),hi=Kr||L5(e).direction,Oc||(Oc=new MutationObserver(()=>{const t=e.getAttribute("dir");t&&t!==Kr&&(Kr=hi=t)}),Oc.observe(e,{attributes:!0})),hi}};function P5(e){if(No)return K5()}const Fs=_.createContext(P5()||"ltr"),Lo={ltr:"ltr",rtl:"rtl"},J5=["forwardedRef"],Rd=zo(e=>{class t extends Ce.Component{render(){const l=this.props,i=l.forwardedRef,r=Nn(l,J5);return Ce.createElement(Fs.Consumer,null,u=>Ce.createElement(e,Object.assign({ref:i,dir:u},r)))}}t.displayName="TextDirectionContextConsumerComponent";const a=_.forwardRef((n,l)=>Ce.createElement(t,Object.assign({},n,{forwardedRef:l})));return bd(a,e),a.defaultProps=e.defaultProps,a.propTypes=e.propTypes,a.allowedProps=e.allowedProps,a.originalType=e.originalType||e,a});Rd.DIRECTION=Lo;const W5=H.oneOf(["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"]),F5=Object.freeze({radiusSmall:"0.125rem",radiusMedium:"0.25rem",radiusLarge:"0.5rem",widthSmall:"0.0625rem",widthMedium:"0.125rem",widthLarge:"0.25rem",style:"solid"}),I5=Object.freeze({duration:"300ms",timing:"ease-in-out"}),e7=Object.freeze({fontFamily:'LatoWeb, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif',fontFamilyMonospace:'Menlo, Consolas, Monaco, "Andale Mono", monospace',fontSizeXSmall:"0.75rem",fontSizeSmall:"0.875rem",fontSizeMedium:"1rem",fontSizeLarge:"1.375rem",fontSizeXLarge:"1.75rem",fontSizeXXLarge:"2.375rem",fontWeightLight:300,fontWeightNormal:400,fontWeightBold:700,lineHeight:1.5,lineHeightFit:1.125,lineHeightCondensed:1.25,lineHeightDouble:2,letterSpacingNormal:0,letterSpacingCondensed:"-0.0625rem",letterSpacingExpanded:"0.0625rem"}),t7=Object.freeze({xxxSmall:"0.125rem",xxSmall:"0.375rem",xSmall:"0.5rem",small:"0.75rem",mediumSmall:"1rem",medium:"1.5rem",large:"2.25rem",xLarge:"3rem",xxLarge:"3.75rem"}),a7=Object.freeze({inputHeightSmall:"1.75rem",inputHeightMedium:"2.375rem",inputHeightLarge:"3rem"}),n7=.0625,pa={xxSmall:8,xSmall:16,small:30,medium:48,tablet:48,large:62,desktop:64,xLarge:75},pu=Object.freeze({xxSmall:`${pa.xxSmall}em`,xSmall:`${pa.xSmall}em`,small:`${pa.small}em`,medium:`${pa.medium}em`,tablet:`${pa.tablet}em`,large:`${pa.large}em`,desktop:`${pa.desktop}em`,xLarge:`${pa.xLarge}em`,maxWidth:`${pa.large-n7}em`}),l7=Object.freeze({mediumMin:`min-width: ${pu.medium}`,largeMin:`min-width: ${pu.large}`,xLargeMin:`min-width: ${pu.xLarge}`}),Fn=["0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)","0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)","0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)"],i7=Object.freeze({depth1:Fn[0],depth2:Fn[1],depth3:Fn[2],resting:Fn[0],above:Fn[1],topmost:Fn[2]}),r7=Object.freeze({topmost:9999,above:1,below:-1,deepest:-9999}),u7={borders:F5,transitions:I5,typography:e7,spacing:t7,forms:a7,media:l7,breakpoints:pu,shadows:i7,stacking:r7},o7=["key","description"],c7=["key","description","use"],s7="@@themeRegistryDefaultTheme",Ju="__GLOBAL_THEME_REGISTRY__";globalThis[Ju]?Cd(f7(globalThis[Ju])):Xp();function kp(){return{currentThemeKey:null,themes:{},registered:[]}}function f7(e){const t=kp();if(typeof e>"u")return t;let a=!0;return Object.keys(t).forEach(n=>{typeof e[n]>"u"&&(a=!1)}),zn(a,"[theme-registry] Invalid global theme registry!"),e}function Uo(){return globalThis[Ju]}function Cd(e){globalThis[Ju]=e}function Xp(){Cd(kp())}function d7(){const e=Uo(),t=e.currentThemeKey;if(t)return e.themes[t]}function m7(e,t){const a=Uo(),n=a.themes[e];n||e!==s7&&zn(n,`[theme-registry] Could not find theme: '${e}' in the registry.`),a.currentThemeKey=e;const l=Up(n,t);return a.themes[e]=l,l}function h7(e){const t=e.key,a=e.description,n=Nn(e,o7),l={key:t,description:a,...n,use(i){m7(t,(i==null?void 0:i.overrides)||{})}};return new Proxy(l,{get(i,r){i.key,i.description,i.use;const u=Nn(i,c7);return r==="variables"?u:Reflect.get(i,r)}})}function v7(e){const t=Uo();if(e.key&&t.themes[e.key])return t.themes[e.key];{if(!jp(e))throw zn(!1,`[theme-registry] The theme provided to 'registerTheme' is not a valid theme object! -For it to be valid some properties have to be present, check out https://instructure.design/#canvas as a reference.`),new Error;const a=h7(e);return t.themes[a.key]=a,t.registered.push(a.key),a}}const Ad={getRegistry:Uo,clearRegistry:Xp,setRegistry:Cd,registerTheme:v7,getCurrentTheme:d7},be={white:"#FFFFFF",white10op75:"#FFFFFFBF",grey11:"#F2F4F4",grey12:"#E8EAEC",grey14:"#D7DADE",grey24:"#9EA6AD",grey45:"#6A7883",grey57:"#586874",grey70:"#4A5B68",grey82:"#3F515E",grey100:"#334451",grey100op75:"#334451BF",grey125:"#273540",blue12:"#E0EBF5",blue45:"#2B7ABC",blue57:"#0E68B3",blue70:"#0A5A9E",blue82:"#09508C",green12:"#DCEEE4",green45:"#03893D",green57:"#027634",green70:"#02672D",green82:"#015B28",orange12:"#FCE5D9",orange30:"#F06E26",orange45:"#CF4A00",orange57:"#B34000",orange70:"#9C3800",orange82:"#8B3200",red12:"#FCE4E5",red45:"#E62429",red57:"#C71F23",red70:"#AE1B1F",red82:"#9B181C"},p7=e=>({surfacePagePrimary:e==null?void 0:e.white1010,surfacePageSecondary:e==null?void 0:e.grey1111,surfaceCardPrimary:e==null?void 0:e.white1010,surfaceCardSecondary:e==null?void 0:e.grey1111,surfaceDark:e==null?void 0:e.grey100100,textTitle:e==null?void 0:e.grey125125,textDescription:e==null?void 0:e.grey125125,textBody:e==null?void 0:e.grey125125,textTimestamp:e==null?void 0:e.grey5782,textAuthor:e==null?void 0:e.grey5782,textDatapoint:e==null?void 0:e.grey5782,textLink:e==null?void 0:e.blue5782,textPlaceholder:e==null?void 0:e.grey2424,textSuccess:e==null?void 0:e.green5782,textWarning:e==null?void 0:e.orange5782,textError:e==null?void 0:e.red5782,lineStroke:e==null?void 0:e.grey1424,lineDivider:e==null?void 0:e.grey1214,surfaceOverlayGrey:e==null?void 0:e.grey100100op75,surfaceOverlayWhite:e==null?void 0:e.white1010op75,surfaceAttention:e==null?void 0:e.blue4570,surfaceSuccess:e==null?void 0:e.green4570,surfaceWarning:e==null?void 0:e.orange4570,surfaceError:e==null?void 0:e.red4570,surfaceDivider:e==null?void 0:e.grey1214,textSurfaceColored:e==null?void 0:e.white1010,iconDefault:e==null?void 0:e.grey125125,iconSuccess:e==null?void 0:e.green4570,iconWarning:e==null?void 0:e.orange4570,iconError:e==null?void 0:e.red4570,iconSurfaceColored:e==null?void 0:e.white1010,lineConnector:e==null?void 0:e.grey1424}),Zp={white1010:be.white,white1010op75:be.white10op75,grey1111:be.grey11,grey1214:be.grey12,grey1424:be.grey14,grey2424:be.grey24,grey4570:be.grey45,grey5782:be.grey57,grey100100:be.grey100,grey100100op75:be.grey100op75,grey125125:be.grey125,blue1212:be.blue12,blue4570:be.blue45,blue5782:be.blue57,green1212:be.green12,green4570:be.green45,green5782:be.green57,orange1212:be.orange12,orange3045:be.orange30,orange4570:be.orange45,orange5782:be.orange57,red1212:be.red12,red4570:be.red45,red5782:be.red57},y7=p7(Zp),J={primitives:be,contrasts:Zp,ui:y7};var Mc,xc,Dc,$c,zc,Nc,Lc,Uc,Hc,Bc,jc,Vc,Gc;const g7="canvas",b7={"ic-brand-primary":J==null||(Mc=J.contrasts)===null||Mc===void 0?void 0:Mc.blue4570,"ic-brand-font-color-dark":J==null||(xc=J.contrasts)===null||xc===void 0?void 0:xc.grey125125,"ic-link-color":J==null||(Dc=J.contrasts)===null||Dc===void 0?void 0:Dc.blue4570,"ic-link-decoration":"none","ic-brand-button--primary-bgd":J==null||($c=J.contrasts)===null||$c===void 0?void 0:$c.blue4570,"ic-brand-button--primary-text":J==null||(zc=J.contrasts)===null||zc===void 0?void 0:zc.white1010,"ic-brand-button--secondary-bgd":J==null||(Nc=J.contrasts)===null||Nc===void 0?void 0:Nc.grey125125,"ic-brand-button--secondary-text":J==null||(Lc=J.contrasts)===null||Lc===void 0?void 0:Lc.white1010,"ic-brand-global-nav-bgd":J==null||(Uc=J.contrasts)===null||Uc===void 0?void 0:Uc.grey100100,"ic-global-nav-link-hover":J==null||(Hc=J.contrasts)===null||Hc===void 0?void 0:Hc.grey125125,"ic-brand-global-nav-ic-icon-svg-fill":J==null||(Bc=J.contrasts)===null||Bc===void 0?void 0:Bc.white1010,"ic-brand-global-nav-ic-icon-svg-fill--active":J==null||(jc=J.contrasts)===null||jc===void 0?void 0:jc.blue4570,"ic-brand-global-nav-menu-item__text-color":J==null||(Vc=J.contrasts)===null||Vc===void 0?void 0:Vc.white1010,"ic-brand-global-nav-menu-item__text-color--active":J==null||(Gc=J.contrasts)===null||Gc===void 0?void 0:Gc.blue4570},S7={key:g7,...u7,colors:J,...b7},_d=Ad.registerTheme(S7),E7=e=>(t={})=>{var a,n;try{if(jp(e))return e}catch{e={}}let l;Object.keys(t).length===0?l=Ad.getCurrentTheme()||_d:l=t;const i=l.key,r=((a=e)===null||a===void 0||(n=a.themeOverrides)===null||n===void 0?void 0:n[i])||e.themeOverrides||{};return Up(l,e,r)};function Qp({children:e,theme:t={},dir:a,instanceCounterMap:n,as:l}){const i=a||_.useContext(Fs);let r=Ce.createElement(X5,{instanceCounterMap:n},Ce.createElement(f5,{theme:E7(t)},Ce.createElement(Fs.Provider,{value:i},e)));if(a){const u=l||"span";r=Ce.createElement(u,{dir:i},r)}return r}Qp.propTypes={children:H.node,theme:H.object,dir:H.oneOf(["ltr","rtl"]),instanceCounterMap:H.instanceOf(Map),as:H.string};const R7=(e,t,a,n,l)=>{const i=t,r=a,u=n,o=u.themeOverride,c=e,s=c.componentOverrides;let d={},f={};return s&&(d=i&&s[i]||r&&s[r]||{}),o&&(typeof o=="function"?f=o(l||{},e):f=o),{...d,...f}},C7=()=>{let e=o5();if(Lp(e)){const t=Ad.getCurrentTheme();if(t)return t;e=_d}return e},Yc={styles:{},makeStyles:()=>{}},wd=zo((e,t,a)=>{const n=e.displayName||e.name,l=_.forwardRef((i,r)=>{const u=C7();i.styles&&Pu(!1,`Manually passing the "styles" property is not allowed on the ${n} component. Using the default styles calculated by the @withStyle decorator instead. -`,i.styles),i.makeStyles&&Pu(!1,`Manually passing the "makeStyles" property is not allowed on the ${n} component. Styles are calculated by the @withStyle decorator.`);const o={...e.defaultProps,...i,...Yc};let c=typeof a=="function"?a(u):{};const s=R7(u,n,e.componentId,o,c);c={...c,...s};const d=_.useState(t?t(c,o,{}):{}),f=x5(d,2),y=f[0],C=f[1],S=T=>{const h=t(c,o,T);C5(h,y)||C(h)};return Ce.createElement(e,Object.assign({ref:r},i,{makeStyles:S,styles:y,themeOverride:s}))});return bd(l,e),l.originalType=e.originalType||e,l.propTypes=e.propTypes,l.defaultProps=e.defaultProps,l.allowedProps=e.allowedProps,l.generateComponentTheme=a,e.defaultProps={...e.defaultProps,makeStyles:Yc.makeStyles,styles:Yc.styles},l}),qn={SHADOW_TYPES:{resting:"resting",above:"above",topmost:"topmost",none:"none"},STACKING_TYPES:{deepest:"deepest",below:"below",resting:"resting",above:"above",topmost:"topmost"},BORDER_WIDTHS:{0:"0",none:"none",small:"small",medium:"medium",large:"large"},BORDER_RADII:{0:"0",none:"none",small:"small",medium:"medium",large:"large",circle:"circle",pill:"pill"},BACKGROUNDS:{default:"default",inverse:"inverse",transparent:"transparent"},SIZES:{xSmall:"x-small",small:"small",medium:"medium",large:"large",xLarge:"x-large"},SPACING:{0:"0",none:"none",auto:"auto",xxxSmall:"xxx-small",xxSmall:"xx-small",xSmall:"x-small",small:"small",mediumSmall:"mediumSmall",medium:"medium",large:"large",xLarge:"x-large",xxLarge:"xx-large"}},A7=qn.SHADOW_TYPES,_7=qn.STACKING_TYPES,w7=qn.BORDER_WIDTHS,T7=qn.BORDER_RADII,O7=qn.BACKGROUNDS,M7=qn.SIZES,x7=qn.SPACING,In={shadow:H.oneOf(Object.values(A7)),stacking:H.oneOf(Object.values(_7)),borderWidth:qc(Object.values(w7)),borderRadius:qc(Object.values(T7)),background:H.oneOf(Object.values(O7)),size:H.oneOf(Object.values(M7)),spacing:qc(Object.values(x7))};function qc(e){return function(t,a,n,l){const i=t[a];if(typeof i>"u")return null;if(typeof i!="string")return new Error(`Invalid ${l} \`${a}\` of type \`${typeof i}\` supplied to \`${n}\`, expected a string.`);const r=i.split(" "),u=r.length;if(u>0&&u<5){for(let o=0;o{a[Bp(`${e}-${String(n)}`)]=t[n]}),a}function Wu(e,t,a,n){if(!(typeof a!="string"||Lp(t)))return a.split(" ").map(l=>{if(l==="auto"||l==="0")return l;if(l==="none")return"0";if(l==="circle")return"100%";if(l==="pill")return"999em";const i=Bp(`${n}-${l}`),r=t[i];return zn(typeof r<"u",`[${e}] '${i}' is an invalid '${n}' value.`),r||"0"}).join(" ").trim()}function Is(e){if(typeof e!="string")return;const t=e.split(" ");if(t.length===4){var a=[t[3],t[1]];t[1]=a[0],t[3]=a[1]}return t.join(" ")}function D7(e){if(typeof e!="string")return;const t=e.split(" ");if(t.length===2){var a=[t[1],t[0]];t[0]=a[0],t[1]=a[1]}if(t.length===3&&t.push(t[1]),t.length===4){var n=[t[1],t[0],t[3],t[2]];t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3]}return t.join(" ")}let ef=!0;try{var kc,Xc;ef=!((kc=process)!==null&&kc!==void 0&&(Xc=kc.env)!==null&&Xc!==void 0&&Xc.ALWAYS_APPEND_UI_TESTABLE_LOCATORS)}catch(e){if(e instanceof ReferenceError)ef=!1;else throw e}const Kp=ef?()=>e=>e:zo(e=>{const a={attribute:"data-cid",value:e.displayName||e.name},n=`[${a.attribute}~="${a.value}"]`;class l extends e{constructor(...r){super(...r),this._testableUnmounted=void 0,this._locatorTimeout=void 0}componentDidMount(){this._testableUnmounted=!1,super.componentDidMount&&super.componentDidMount(),this.appendLocatorAttribute()}componentDidUpdate(r,u,o){super.componentDidUpdate&&super.componentDidUpdate(r,u,o),this.appendLocatorAttribute()}componentWillUnmount(){this._testableUnmounted=!0,super.componentWillUnmount&&super.componentWillUnmount(),this._locatorTimeout&&clearTimeout(this._locatorTimeout)}appendLocatorAttribute(){this._locatorTimeout=setTimeout(()=>{let r;if(!this._testableUnmounted){try{r=this.DOMNode||Er(this)}catch{}if(r){const u=r.getAttribute(a.attribute),o=typeof u=="string"?u.split(/\s+/):[];o.includes(a.value)||o.push(a.value),r.setAttribute(a.attribute,o.join(" "))}}})}}return l.selector=n,l}),$7=({borderRadius:e,borderWidth:t,dir:a,theme:n})=>{const l=a===Lo.rtl;return{borderRadius:Wu("View",n,l?D7(e):e,"borderRadius"),borderWidth:Wu("View",n,l?Is(t):t,"borderWidth")}},z7=({margin:e,padding:t,dir:a,theme:n})=>{const l=a===Lo.rtl;return{margin:Wu("View",n,l?Is(e):e,"margin"),padding:Wu("View",n,l?Is(t):t,"padding")}},N7=({insetBlockStart:e,insetBlockEnd:t,insetInlineStart:a,insetInlineEnd:n,dir:l})=>{const i=l===Lo.rtl;return{...{top:e,insetBlockStart:e},...{bottom:t,insetBlockEnd:t},...{left:i?n:a,right:i?a:n}}},L7=({cursor:e,style:t})=>{const a=Gp(t||{},{},["top","left","position","display","transform","overflow","minWidth","minHeight","filter","flexBasis","backgroundImage","pointerEvents"]);return e&&(a.cursor=e),a},U7=(e,t)=>typeof t!="string"?!1:t.trim().split(" ").every(a=>e===a),H7=e=>{const t="focusRing--radius",a=(e||"").trim().split(" ")[0];if(U7(a,e)){const n=l=>`${l.charAt(0).toUpperCase()}${l.slice(1)}`;if(["small","medium","large"].includes(a))return`${t}${n(a)}`;if(["circle","pill"].includes(a))return`${t}Inherit`}return`${t}None`},B7=e=>{const t=e.position,a=e.display,n=e.focusPosition,l=e.withFocusOutline;return typeof l>"u"||l&&(zn(a==="inline"||t==="relative","[View] the focus outline will only show if the `position` prop is `relative`."),zn(a!=="inline"||n==="inset","[View] when display is set to `inline` the focus outline will only show if `focusPosition` is set to `inset`.")),l},j7=e=>{const t=e.borderWidth;return t&&t!=="0"&&t!=="none"},V7=(e,t)=>{const a=e.focusColor,n=e.focusPosition,l=e.position,i=e.shouldAnimateFocus,r=e.borderRadius,u=B7(e),o=typeof u>"u",c={offset:{top:`calc(${t.focusOutlineOffset} * -1)`,left:`calc(${t.focusOutlineOffset} * -1)`,right:`calc(${t.focusOutlineOffset} * -1)`,bottom:`calc(${t.focusOutlineOffset}* -1)`},inset:{top:`calc(${t.focusOutlineInset} * -1)`,left:`calc(${t.focusOutlineInset} * -1)`,right:`calc(${t.focusOutlineInset} * -1)`,bottom:`calc(${t.focusOutlineInset} * -1)`}},s={info:t.focusColorInfo,inverse:t.focusColorInverse,success:t.focusColorSuccess,danger:t.focusColorDanger};if(l==="relative"){const d=H7(r),f={"focusRing--radiusInherit":"inherit","focusRing--radiusNone":0},y={offset:{"focusRing--radiusSmall":{borderRadius:`calc(${t.borderRadiusSmall} + (${t.focusOutlineOffset} - ${t.focusOutlineWidth}))`},"focusRing--radiusMedium":{borderRadius:`calc(${t.borderRadiusMedium} + (${t.focusOutlineOffset} - ${t.focusOutlineWidth}))`},"focusRing--radiusLarge":{borderRadius:`calc(${t.borderRadiusLarge} + (${t.focusOutlineOffset} - ${t.focusOutlineWidth}))`}},inset:{"focusRing--radiusSmall":{borderRadius:`calc(${t.borderRadiusSmall} - (${t.focusOutlineInset} + ${t.focusOutlineWidth}))`},"focusRing--radiusMedium":{borderRadius:`calc(${t.borderRadiusMedium} - (${t.focusOutlineInset} + ${t.focusOutlineWidth}))`},"focusRing--radiusLarge":{borderRadius:`calc(${t.borderRadiusLarge} - (${t.focusOutlineInset} + ${t.focusOutlineWidth}))`}}};return{"&::before":{pointerEvents:"none",content:'""',position:"absolute",borderStyle:t.focusOutlineStyle,borderWidth:t.focusOutlineWidth,borderColor:s[a],opacity:0,borderRadius:f[d],...y[n][d],...c[n],...i?{transition:"all 0.2s",transform:"scale(0.95)"}:{},...u?{opacity:1,transform:"scale(1)"}:{}},"&:focus":{outline:"none","&::before":{...o?{opacity:1,transform:"scale(1)"}:{}}}}}return{"&::before":{borderStyle:"none"},outlineStyle:"none",outlineColor:s[a],...u?{outlineWidth:t.focusOutlineWidth,outlineStyle:t.focusOutlineStyle}:{},"&:focus":{...o?{outlineWidth:t.focusOutlineWidth,outlineStyle:t.focusOutlineStyle}:{}}}},G7=(e,t)=>{const a=t.borderRadius,n=t.borderWidth,l=t.margin,i=t.padding,r=t.position,u=t.display,o=t.focusPosition,c=t.textAlign,s=t.borderColor,d=t.background,f=t.stacking,y=t.shadow,C=t.overflowY,S=t.overflowX,T=t.overscrollBehavior,h=t.insetBlockEnd,m=t.insetBlockStart,v=t.insetInlineEnd,E=t.insetInlineStart,x=t.width,$=t.height,D=t.minWidth,g=t.minHeight,A=t.maxWidth,L=t.maxHeight,j=t.withVisualDebug,K=t.dir,De=$7({theme:e,borderRadius:a,borderWidth:n,dir:K}),ve=z7({margin:l,padding:i,theme:e,dir:K}),et=N7({dir:K,insetBlockEnd:h,insetBlockStart:m,insetInlineEnd:v,insetInlineStart:E}),z=r==="relative"||u==="inline"&&o==="inset",Y={inline:{label:"view--inline",display:"inline"},block:{label:"view--block",display:"block"},"inline-block":{label:"view--inlineBlock",display:"inline-block",verticalAlign:"middle"},flex:{label:"view--flex",display:"flex"},"inline-flex":{label:"view--inlineFlex",display:"inline-flex",verticalAlign:"middle"},auto:{}},q={start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},k={transparent:{borderColor:e.borderColorTransparent},primary:{borderColor:e.borderColorPrimary},secondary:{borderColor:e.borderColorSecondary},brand:{borderColor:e.borderColorBrand},info:{borderColor:e.borderColorInfo},success:{borderColor:e.borderColorSuccess},warning:{borderColor:e.borderColorWarning},alert:{borderColor:e.borderColorAlert},danger:{borderColor:e.borderColorDanger}},ge={transparent:{color:e.color,background:"none"},primary:{color:e.color,background:e.backgroundPrimary},secondary:{color:e.color,background:e.backgroundSecondary},"primary-inverse":{color:e.colorPrimaryInverse,background:e.backgroundPrimaryInverse},brand:{color:e.colorPrimaryInverse,background:e.backgroundBrand},info:{color:e.colorPrimaryInverse,background:e.backgroundInfo},alert:{color:e.colorPrimaryInverse,background:e.backgroundAlert},success:{color:e.colorPrimaryInverse,background:e.backgroundSuccess},danger:{color:e.colorPrimaryInverse,background:e.backgroundDanger},warning:{color:e.colorPrimaryInverse,background:e.backgroundWarning}},Tt={topmost:{zIndex:e.stackingTopmost},above:{zIndex:e.stackingAbove},resting:{},below:{zIndex:e.stackingBelow},deepest:{zIndex:e.stackingDeepest}},bt={topmost:{boxShadow:e.shadowTopmost},resting:{boxShadow:e.shadowResting},above:{boxShadow:e.shadowAbove},none:{}},it=V7(t,e);return{view:{label:"view",boxSizing:"border-box",fontFamily:e.fontFamily,maxWidth:"100%",overflow:"visible",...Y[u],...d&&ge[d],...f&&Tt[f],...y&&bt[y],...c&&q[c],overflowX:S&&S!=="visible"?S:"",overflowY:C&&C!=="visible"?C:"",position:r!=="static"?r:"",overscrollBehavior:T||"auto",...j?{outline:`0.0625rem dashed ${e.debugOutlineColor}`}:{},...j7(t)?{borderStyle:e.borderStyle,...k[s]}:{},...z?it:{}},inlineStyles:{"&&&&&&&&&&":{...ve,...De,...et,width:x,height:$,minWidth:D,minHeight:g,maxWidth:A,maxHeight:L,...L7(t)}}}},Y7=e=>{var t,a,n,l,i,r,u,o,c,s,d,f,y,C,S,T,h,m,v,E,x,$,D,g;const A=e.colors,L=e.typography,j=e.borders,K=e.breakpoints,De=e.spacing,ve=e.shadows,et=e.stacking,z=e.key,Y={canvas:{color:e["ic-brand-font-color-dark"],focusColorInfo:e["ic-brand-primary"],backgroundBrand:e["ic-brand-primary"],backgroundInfo:e["ic-brand-primary"],borderColorBrand:e["ic-brand-primary"],borderColorInfo:e["ic-brand-primary"]}};return{...{fontFamily:L==null?void 0:L.fontFamily,color:A==null||(t=A.contrasts)===null||t===void 0?void 0:t.grey125125,colorPrimaryInverse:A==null||(a=A.contrasts)===null||a===void 0?void 0:a.white1010,borderColorPrimary:A==null||(n=A.contrasts)===null||n===void 0?void 0:n.grey1214,borderColorSecondary:A==null||(l=A.contrasts)===null||l===void 0?void 0:l.grey4570,borderColorSuccess:A==null||(i=A.contrasts)===null||i===void 0?void 0:i.grey4570,borderColorBrand:A==null||(r=A.contrasts)===null||r===void 0?void 0:r.blue4570,borderColorInfo:A==null||(u=A.contrasts)===null||u===void 0?void 0:u.blue4570,borderColorAlert:A==null||(o=A.contrasts)===null||o===void 0?void 0:o.blue4570,borderColorWarning:A==null||(c=A.contrasts)===null||c===void 0?void 0:c.orange4570,borderColorDanger:A==null||(s=A.contrasts)===null||s===void 0?void 0:s.red4570,borderColorTransparent:"transparent",debugOutlineColor:A==null||(d=A.contrasts)===null||d===void 0?void 0:d.red4570,backgroundPrimary:A==null||(f=A.contrasts)===null||f===void 0?void 0:f.white1010,backgroundSecondary:A==null||(y=A.contrasts)===null||y===void 0?void 0:y.grey1111,backgroundPrimaryInverse:A==null||(C=A.contrasts)===null||C===void 0?void 0:C.grey125125,backgroundBrand:A==null||(S=A.contrasts)===null||S===void 0?void 0:S.blue4570,backgroundInfo:A==null||(T=A.contrasts)===null||T===void 0?void 0:T.blue4570,backgroundAlert:A==null||(h=A.contrasts)===null||h===void 0?void 0:h.blue4570,backgroundSuccess:A==null||(m=A.contrasts)===null||m===void 0?void 0:m.grey4570,backgroundDanger:A==null||(v=A.contrasts)===null||v===void 0?void 0:v.red4570,backgroundWarning:A==null||(E=A.contrasts)===null||E===void 0?void 0:E.orange4570,arrowSize:"0.5rem",focusOutlineStyle:j==null?void 0:j.style,focusOutlineWidth:j==null?void 0:j.widthMedium,focusOutlineOffset:"0.3125rem",focusOutlineInset:"0rem",focusColorInfo:A==null||(x=A.contrasts)===null||x===void 0?void 0:x.blue4570,focusColorDanger:A==null||($=A.contrasts)===null||$===void 0?void 0:$.red4570,focusColorSuccess:A==null||(D=A.contrasts)===null||D===void 0?void 0:D.green4570,focusColorInverse:A==null||(g=A.contrasts)===null||g===void 0?void 0:g.white1010,xSmallMaxWidth:K==null?void 0:K.xSmall,smallMaxWidth:K==null?void 0:K.small,mediumMaxWidth:K==null?void 0:K.medium,largeMaxWidth:K==null?void 0:K.large,...vi("margin",De),...vi("padding",De),...vi("shadow",ve),...vi("stacking",et),...vi("border",j)},...Y[z]}},q7={as:H.elementType,elementRef:H.func,display:H.oneOf(["auto","inline","block","inline-block","flex","inline-flex"]),overflowX:H.oneOf(["auto","hidden","visible"]),overflowY:H.oneOf(["auto","hidden","visible"]),margin:In.spacing,padding:In.spacing,height:H.oneOfType([H.string,H.number]),width:H.oneOfType([H.string,H.number]),maxHeight:H.oneOfType([H.string,H.number]),maxWidth:H.oneOfType([H.string,H.number]),minHeight:H.oneOfType([H.string,H.number]),minWidth:H.oneOfType([H.string,H.number]),children:H.node,textAlign:H.oneOf(["start","center","end"]),borderWidth:In.borderWidth,borderRadius:In.borderRadius,borderColor:H.oneOf(["transparent","primary","secondary","brand","info","success","warning","alert","danger"]),background:H.oneOf(["transparent","primary","secondary","primary-inverse","brand","info","alert","success","danger","warning"]),shadow:In.shadow,stacking:In.stacking,cursor:W5,position:H.oneOf(["static","absolute","relative","sticky","fixed"]),insetInlineStart:H.string,insetInlineEnd:H.string,insetBlockStart:H.string,insetBlockEnd:H.string,withFocusOutline:H.bool,focusPosition:H.oneOf(["offset","inset"]),focusColor:H.oneOf(["info","inverse","success","danger"]),shouldAnimateFocus:H.bool,withVisualDebug:H.bool,dir:H.oneOf(Object.values(Rd.DIRECTION)),overscrollBehavior:H.oneOf(["auto","contain","none"])},k7=["as","background","borderColor","borderRadius","borderWidth","children","cursor","dir","display","elementRef","focusColor","focusPosition","height","insetBlockEnd","insetBlockStart","insetInlineEnd","insetInlineStart","margin","maxHeight","maxWidth","minHeight","minWidth","overflowX","overflowY","overscrollBehavior","padding","position","shadow","shouldAnimateFocus","stacking","textAlign","width","withFocusOutline","withVisualDebug"],X7=["children","textAlign","background","display","withVisualDebug","width","height","minWidth","minHeight","maxWidth","maxHeight","overflowX","overflowY","stacking","shadow","position","focusPosition","focusColor","shouldAnimateFocus","borderColor","className","overscrollBehavior","styles","makeStyles"];var G0,Y0,Pr,ya;let Z7=(G0=Rd(),Y0=wd(G7,Y7),G0(Pr=Y0(Pr=(ya=class Pp extends _.Component{get _element(){return this.ref}constructor(t){super(t),this.spanMarginVerified=void 0,this.ref=null,this.handleElementRef=a=>{typeof this.props.elementRef=="function"&&this.props.elementRef(a),this.ref=a},this.spanMarginVerified=!1}componentDidMount(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}componentDidUpdate(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}render(){const t=this.props,a=t.children;t.textAlign,t.background,t.display,t.withVisualDebug,t.width,t.height,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight,t.overflowX,t.overflowY,t.stacking,t.shadow,t.position,t.focusPosition,t.focusColor,t.shouldAnimateFocus,t.borderColor;const n=t.className;t.overscrollBehavior;const l=t.styles;t.makeStyles;const i=Nn(t,X7),r=H5(Pp,this.props);return pn(r,Object.assign({},Y5(i),{className:n,css:[l==null?void 0:l.view,l==null?void 0:l.inlineStyles],ref:this.handleElementRef}),a)}},ya.displayName="View",ya.componentId="View",ya.allowedProps=k7,ya.propTypes=q7,ya.defaultProps={display:"auto",overflowX:"visible",overflowY:"visible",withVisualDebug:!1,borderColor:"primary",position:"static",focusPosition:"offset",focusColor:"info",shouldAnimateFocus:!0,overscrollBehavior:"auto"},ya.omitViewProps=(e,t)=>{const a=[...ya.allowedProps,"styles","makeStyles","themeOverride"];let n=!0;try{n=!1}catch(l){if(l instanceof ReferenceError)n=!1;else throw l}return n&&Object.keys(Gp(e,a)).forEach(l=>{zn(!1,`[${t.name}] prop '${l}' is not allowed.`)}),Vp(e,a)},ya))||Pr)||Pr);const Q7=(e,t)=>{const a=t.inline,n=t.color,l={inherit:{color:"inherit"},primary:{color:e.primaryColor},secondary:{color:e.secondaryColor},"primary-inverse":{color:e.primaryInverseColor},"secondary-inverse":{color:e.secondaryInverseColor},success:{color:e.successColor},brand:{color:e.brandColor},warning:{color:e.warningColor},error:{color:e.errorColor},alert:{color:e.alertColor},auto:{}};return{inlineSVG:{label:"inlineSVG",fill:"currentColor",display:a?"inline-block":"block",overflow:"visible",...l[n]}}},K7=e=>{var t,a,n,l,i,r,u,o,c;const s=e.colors,d=e.key,f={canvas:{primaryColor:e["ic-brand-font-color-dark"],brandColor:e["ic-brand-primary"]}};return{...{primaryInverseColor:s==null||(t=s.contrasts)===null||t===void 0?void 0:t.white1010,primaryColor:s==null||(a=s.contrasts)===null||a===void 0?void 0:a.grey125125,secondaryColor:s==null||(n=s.contrasts)===null||n===void 0?void 0:n.grey4570,secondaryInverseColor:s==null||(l=s.contrasts)===null||l===void 0?void 0:l.grey1111,warningColor:s==null||(i=s.contrasts)===null||i===void 0?void 0:i.orange4570,brandColor:s==null||(r=s.contrasts)===null||r===void 0?void 0:r.blue4570,errorColor:s==null||(u=s.contrasts)===null||u===void 0?void 0:u.red4570,alertColor:s==null||(o=s.contrasts)===null||o===void 0?void 0:o.blue4570,successColor:s==null||(c=s.contrasts)===null||c===void 0?void 0:c.green4570},...f[d]}},P7={children:H.node,src:H.string,title:H.string,description:H.string,focusable:H.bool,width:H.oneOfType([H.string,H.number]),height:H.oneOfType([H.string,H.number]),inline:H.bool,color:H.oneOf(["inherit","primary","secondary","primary-inverse","secondary-inverse","success","error","alert","warning","brand","auto"]),elementRef:H.func},J7=["children","src","title","description","focusable","width","height","inline","color","elementRef"],W7=["style","title","description","focusable","children","src","styles"];var q0,k0,X0,el,Ha;let Jp=(q0=Z5(),k0=wd(Q7,K7),X0=Kp(),q0(el=k0(el=X0(el=(Ha=class tf extends _.Component{constructor(t){super(t),this.titleId=void 0,this.descId=void 0,this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)},this.titleId=t.deterministicId("InlineSVG-title"),this.descId=t.deterministicId("InlineSVG-desc")}componentDidMount(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}componentDidUpdate(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}get role(){return this.props.title?"img":"presentation"}renderTitle(){const t=this.props.title;return t?pn("title",{id:this.titleId},t):null}renderDesc(t){return t?pn("desc",{id:this.descId},t):null}get labelledBy(){const t=[];return this.props.title&&t.push(this.titleId),this.props.description&&t.push(this.descId),t.length>0?t.join(" "):void 0}renderContent(){if(this.props.src){const t=tf.prepareSrc(this.props.src);return pn("g",{role:"presentation",dangerouslySetInnerHTML:{__html:t}})}else return pn("g",{role:"presentation"},this.props.children)}render(){const t=this.props,a=t.style,n=t.title,l=t.description,i=t.focusable;t.children;const r=t.src,u=t.styles,o=Nn(t,W7),c=this.props.width==="auto"?void 0:this.props.width,s=this.props.height==="auto"?void 0:this.props.height;return pn("svg",Object.assign({},F7(r),Vp(this.props,tf.allowedProps,["inline"]),{style:{...a,width:c,height:s},width:c,height:s,"aria-hidden":n?void 0:"true","aria-labelledby":this.labelledBy,role:this.role,focusable:i?"true":"false",css:u==null?void 0:u.inlineSVG,className:o.className,ref:this.handleRef}),this.renderTitle(),this.renderDesc(l),this.renderContent())}},Ha.displayName="InlineSVG",Ha.componentId="InlineSVG",Ha.allowedProps=J7,Ha.propTypes=P7,Ha.defaultProps={focusable:!1,src:"",title:"",description:"",inline:!0,width:"1em",height:"1em",color:"inherit"},Ha.prepareSrc=e=>{const a=/]*>((.|[\n\r])*)<\/svg>/.exec(e);return a?a[1]:e},Ha))||el)||el)||el);function F7(e){const t={},a=/]*)\s*>/,n=/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g;if(typeof e=="string"){const l=a.exec(e),i=l?l[1]:"",r=["xmlns","xmlns:xlink","version"];let u=n.exec(i);for(;u!=null;)r.indexOf(u[1])===-1&&(t[u[1]]=u[2]||(u[3]?u[3]:u[4]?u[4]:u[5])||u[1]),u=n.exec(i)}return t}const I7=(e,t)=>{const a=t.rotate,n=t.size,l=t.bidirectional,i={0:{},90:{transform:"rotate(90deg)"},180:{transform:"rotate(180deg)"},270:{transform:"rotate(270deg)"}},r={0:{transform:"scale3d(-1, 1, 1)"},90:{transform:"scale3d(-1, 1, 1) rotate(90deg)"},180:{transform:"scale3d(-1, 1, 1) rotate(180deg)"},270:{transform:"scale3d(-1, 1, 1) rotate(270deg)"}},u={"x-small":{fontSize:e.sizeXSmall},small:{fontSize:e.sizeSmall},medium:{fontSize:e.sizeMedium},large:{fontSize:e.sizeLarge},"x-large":{fontSize:e.sizeXLarge}};return{svgIcon:{label:"svgIcon",verticalAlign:"middle",lineHeight:1,width:"1em",height:"1em",...i[a],...n&&u[n],...l&&{'[dir="rtl"] &':r[a]}}}},eS=()=>({...{sizeXSmall:"1.125rem",sizeSmall:"2rem",sizeMedium:"3rem",sizeLarge:"5rem",sizeXLarge:"10rem"}}),tS={...Jp.propTypes,rotate:H.oneOf(["0","90","180","270"]),size:H.oneOf(["x-small","small","medium","large","x-large"]),bidirectional:H.bool},aS=["children","src","title","description","focusable","width","height","inline","color","elementRef","rotate","size","bidirectional"],nS=["rotate","className","themeOverride","size","bidirectional","makeStyles","styles"],lS=["sizeXSmall","sizeSmall","sizeMedium","sizeLarge","sizeXLarge"];var Z0,Q0,Jr,dn;let Ie=(Z0=wd(I7,eS),Q0=Kp(),Z0(Jr=Q0(Jr=(dn=class extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}componentDidMount(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}componentDidUpdate(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}render(){const t=this.props,a=t.rotate,n=t.className,l=t.themeOverride;t.size,t.bidirectional,t.makeStyles;const i=t.styles,r=Nn(t,nS),u=l;u.sizeXSmall,u.sizeSmall,u.sizeMedium,u.sizeLarge,u.sizeXLarge;const o=Nn(u,lS);return pn(Jp,Object.assign({},r,{themeOverride:o,rotate:a,css:i==null?void 0:i.svgIcon,className:n,elementRef:this.handleRef}))}},dn.displayName="SVGIcon",dn.componentId="SVGIcon",dn.allowedProps=aS,dn.propTypes=tS,dn.defaultProps={rotate:"0",bidirectional:!1},dn))||Jr)||Jr);var K0;class Jl extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconCanvasLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),K0||(K0=Ce.createElement("path",{d:"M958.568 277.97C1100.42 277.97 1216.48 171.94 1233.67 34.3881 1146.27 12.8955 1054.57 0 958.568 0 864.001 0 770.867 12.8955 683.464 34.3881 700.658 171.94 816.718 277.97 958.568 277.97ZM35.8207 682.031C173.373 699.225 279.403 815.285 279.403 957.136 279.403 1098.99 173.373 1215.05 35.8207 1232.24 12.8953 1144.84 1.43262 1051.7 1.43262 957.136 1.43262 862.569 12.8953 769.434 35.8207 682.031ZM528.713 957.142C528.713 1005.41 489.581 1044.55 441.31 1044.55 393.038 1044.55 353.907 1005.41 353.907 957.142 353.907 908.871 393.038 869.74 441.31 869.74 489.581 869.74 528.713 908.871 528.713 957.142ZM1642.03 957.136C1642.03 1098.99 1748.06 1215.05 1885.61 1232.24 1908.54 1144.84 1920 1051.7 1920 957.136 1920 862.569 1908.54 769.434 1885.61 682.031 1748.06 699.225 1642.03 815.285 1642.03 957.136ZM1567.51 957.142C1567.51 1005.41 1528.38 1044.55 1480.11 1044.55 1431.84 1044.55 1392.71 1005.41 1392.71 957.142 1392.71 908.871 1431.84 869.74 1480.11 869.74 1528.38 869.74 1567.51 908.871 1567.51 957.142ZM958.568 1640.6C816.718 1640.6 700.658 1746.63 683.464 1884.18 770.867 1907.11 864.001 1918.57 958.568 1918.57 1053.14 1918.57 1146.27 1907.11 1233.67 1884.18 1216.48 1746.63 1100.42 1640.6 958.568 1640.6ZM1045.98 1480.11C1045.98 1528.38 1006.85 1567.51 958.575 1567.51 910.304 1567.51 871.172 1528.38 871.172 1480.11 871.172 1431.84 910.304 1392.71 958.575 1392.71 1006.85 1392.71 1045.98 1431.84 1045.98 1480.11ZM1045.98 439.877C1045.98 488.148 1006.85 527.28 958.575 527.28 910.304 527.28 871.172 488.148 871.172 439.877 871.172 391.606 910.304 352.474 958.575 352.474 1006.85 352.474 1045.98 391.606 1045.98 439.877ZM1441.44 1439.99C1341.15 1540.29 1333.98 1697.91 1418.52 1806.8 1579 1712.23 1713.68 1577.55 1806.82 1418.5 1699.35 1332.53 1541.74 1339.7 1441.44 1439.99ZM1414.21 1325.37C1414.21 1373.64 1375.08 1412.77 1326.8 1412.77 1278.53 1412.77 1239.4 1373.64 1239.4 1325.37 1239.4 1277.1 1278.53 1237.97 1326.8 1237.97 1375.08 1237.97 1414.21 1277.1 1414.21 1325.37ZM478.577 477.145C578.875 376.846 586.039 219.234 501.502 110.339 341.024 204.906 206.338 339.592 113.203 498.637 220.666 584.607 378.278 576.01 478.577 477.145ZM679.155 590.32C679.155 638.591 640.024 677.723 591.752 677.723 543.481 677.723 504.349 638.591 504.349 590.32 504.349 542.048 543.481 502.917 591.752 502.917 640.024 502.917 679.155 542.048 679.155 590.32ZM1440 475.712C1540.3 576.01 1697.91 583.174 1806.8 498.637 1712.24 338.159 1577.55 203.473 1418.51 110.339 1332.54 217.801 1341.13 375.413 1440 475.712ZM1414.21 590.32C1414.21 638.591 1375.08 677.723 1326.8 677.723 1278.53 677.723 1239.4 638.591 1239.4 590.32 1239.4 542.048 1278.53 502.917 1326.8 502.917 1375.08 502.917 1414.21 542.048 1414.21 590.32ZM477.145 1438.58C376.846 1338.28 219.234 1331.12 110.339 1415.65 204.906 1576.13 339.593 1710.82 498.637 1805.39 584.607 1696.49 577.443 1538.88 477.145 1438.58ZM679.155 1325.37C679.155 1373.64 640.024 1412.77 591.752 1412.77 543.481 1412.77 504.349 1373.64 504.349 1325.37 504.349 1277.1 543.481 1237.97 591.752 1237.97 640.024 1237.97 679.155 1277.1 679.155 1325.37Z"})))}}Jl.glyphName="canvas-logo";Jl.variant="Line";Jl.displayName="IconCanvasLogoLine";Jl.propTypes={...Ie.propTypes};Jl.allowedProps=[...Ie.allowedProps];var P0;class Wl extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconElevateLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),P0||(P0=Ce.createElement("path",{d:"M1070.45 53.9152C1104.97 88.4365 1124.36 135.258 1124.36 184.078L1123.51 1188.09C1123.74 1229.1 1110.25 1269.01 1085.18 1301.47 1060.11 1333.93 1024.9 1357.08 985.16 1367.22 945.419 1377.35 903.428 1373.91 865.87 1357.43 828.312 1340.95 797.346 1312.38 777.899 1276.28 763.314 1249.19 755.85 1218.85 756.21 1188.09V184.078C756.21 135.258 775.603 88.4365 810.124 53.9152 844.646 19.3939 891.467 0 940.288 0 989.108 0 1035.93 19.3939 1070.45 53.9152ZM161.091 1320.33C194.624 1353.7 240.009 1372.44 287.319 1372.44 310.767 1372.44 333.985 1367.81 355.644 1358.83 377.304 1349.85 396.98 1336.69 413.547 1320.1 430.113 1303.5 443.246 1283.8 452.193 1262.13 461.141 1240.45 465.726 1217.23 465.689 1193.78L463.406 359.01 106.666 741.15 108.378 1194.35C108.605 1241.67 127.558 1286.96 161.091 1320.33ZM1592.41 1372.44C1639.74 1372.51 1685.17 1353.81 1718.72 1320.42 1752.27 1287.02 1771.2 1241.69 1771.35 1194.35L1773.06 741.15 1416.33 359.01 1414.32 1193.78C1414.29 1217.21 1418.87 1240.41 1427.79 1262.06 1436.72 1283.71 1449.83 1303.41 1466.37 1319.99 1482.9 1336.58 1502.55 1349.75 1524.17 1358.75 1545.8 1367.75 1568.99 1372.4 1592.41 1372.44ZM1123.46 1752.39C1126.77 1716.09 1119.25 1679.61 1101.83 1647.56 1090.29 1626.27 1074.66 1607.47 1055.85 1592.22 1037.03 1576.97 1015.39 1565.59 992.163 1558.73 968.939 1551.86 944.588 1549.64 920.506 1552.2 896.423 1554.76 873.083 1562.05 851.822 1573.65 819.782 1591.06 793.627 1617.59 776.661 1649.87 759.697 1682.14 752.685 1718.73 756.513 1754.99 760.341 1791.25 774.837 1825.57 798.168 1853.59 821.499 1881.62 852.616 1902.09 887.585 1912.44 922.554 1922.77 959.804 1922.51 994.623 1911.68 1029.44 1900.84 1060.27 1879.94 1083.2 1851.58 1106.13 1823.23 1120.14 1788.71 1123.46 1752.39Z"})))}}Wl.glyphName="elevate-logo";Wl.variant="Line";Wl.displayName="IconElevateLogoLine";Wl.propTypes={...Ie.propTypes};Wl.allowedProps=[...Ie.allowedProps];var J0;class Fl extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconImpactLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),J0||(J0=Ce.createElement("path",{d:"M910.001 203.918C910.001 163.587 921.96 124.161 944.366 90.6273 966.773 57.0931 998.621 30.9565 1035.88 15.5225 1073.14.0883516 1114.15-3.9499 1153.7 3.91831 1193.26 11.7866 1229.59 31.2078 1258.11 59.7263 1286.63 88.2447 1306.05 124.579 1313.92 164.135 1321.78 203.692 1317.75 244.693 1302.32 281.954 1286.88 319.215 1260.74 351.062 1227.21 373.47 1193.68 395.876 1154.25 407.836 1113.92 407.836 1087.13 407.869 1060.6 402.617 1035.84 392.38 1011.09 382.144 988.596 367.124 969.654 348.182 950.712 329.241 935.692 306.748 925.457 281.993 915.22 257.237 909.967 230.706 910.001 203.918ZM167.424 913.308 458.311 622.422H1045.04L460.789 1206.68C421.886 1245.58 369.124 1267.44 314.107 1267.44 259.09 1267.44 206.327 1245.58 167.424 1206.68 128.522 1167.77 106.667 1115.01 106.667 1059.99 106.667 1004.97 128.522 952.211 167.424 913.308ZM1738.81 1027.77 1454.11 1313.21H867.136L1444.7 734.406C1483.6 695.405 1536.4 673.455 1591.49 673.386 1646.57 673.316 1699.43 695.132 1738.43 734.034 1777.43 772.936 1799.38 825.739 1799.45 880.826 1799.52 935.911 1777.71 988.769 1738.81 1027.77ZM587.075 1602.79C564.668 1636.33 552.709 1675.75 552.709 1716.08 552.709 1770.16 574.192 1822.02 612.435 1860.27 650.677 1898.51 702.543 1920 756.627 1920 796.957 1920 836.382 1908.04 869.917 1885.63 903.451 1863.23 929.588 1831.38 945.021 1794.12 960.456 1756.85 964.494 1715.85 956.625 1676.29 948.758 1636.74 929.336 1600.4 900.817 1571.89 872.299 1543.37 835.965 1523.94 796.409 1516.08 756.853 1508.21 715.851 1512.25 678.59 1527.69 641.329 1543.12 609.481 1569.25 587.075 1602.79Z"})))}}Fl.glyphName="impact-logo";Fl.variant="Line";Fl.displayName="IconImpactLogoLine";Fl.propTypes={...Ie.propTypes};Fl.allowedProps=[...Ie.allowedProps];var W0;class Ln extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconInstructureLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),W0||(W0=Ce.createElement("path",{d:"M1448.57 288.052 1084.46 502.746 1448.55 718.026 1813.23 502.732 1448.57 288.052ZM959.965 429.191 1323.92 214.589 959.988 0 596.032 214.602 959.965 429.191ZM835.499 502.732 471.388 288.038 106.704 502.732 471.388 718.026 835.499 502.732ZM106.667 1416.54 960 1920 1813.33 1416.54 960 913.07 106.667 1416.54Z"})))}}Ln.glyphName="instructure-logo";Ln.variant="Line";Ln.displayName="IconInstructureLogoLine";Ln.propTypes={...Ie.propTypes};Ln.allowedProps=[...Ie.allowedProps];var F0;class Il extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconMasteryLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),F0||(F0=Ce.createElement("path",{d:"M672.274 547.699V889.681L371.706 760.866C332.318 747.272 297.441 723.083 270.907 690.958 244.373 658.833 227.209 620.015 221.301 578.769 215.392 537.524 220.969 495.447 237.417 457.164 253.866 418.883 280.55 385.876 314.537 361.771 348.524 337.668 388.498 323.399 430.066 320.536 471.634 317.672 513.187 326.323 550.158 345.538 587.13 364.753 618.089 393.788 639.632 429.453 661.176 465.119 672.47 506.033 672.274 547.699ZM959.895 1550.52C1013.45 1550.76 1065.35 1531.95 1106.32 1497.47 1147.3 1462.98 1174.68 1415.06 1183.6 1362.25 1192.51 1309.44 1182.37 1255.17 1154.98 1209.16 1127.6 1163.13 1084.75 1128.34 1034.08 1110.97L733.516 982.161V1324.15C733.584 1384.17 757.456 1441.7 799.895 1484.15 842.335 1526.59 899.876 1550.46 959.895 1550.52ZM226.887 1097.53C182.052 1097.47 138.21 1110.72 100.908 1135.6 63.6045 1160.47 34.5168 1195.85 17.3245 1237.26.13224 1278.67-4.39211 1324.24 4.32386 1368.21 13.0399 1412.19 34.6045 1452.61 66.2896 1484.32 97.9747 1516.04 138.356 1537.65 182.325 1546.42 226.295 1555.19 271.876 1550.71 313.303 1533.57 354.73 1516.42 390.14 1487.37 415.054 1450.1 439.968 1412.82 453.266 1368.99 453.266 1324.16 453.199 1264.12 429.335 1206.55 386.902 1164.08 344.47 1121.59 286.929 1097.66 226.887 1097.53ZM1693.14 1550.52C1746.69 1550.76 1798.6 1531.95 1839.57 1497.47 1880.54 1462.98 1907.93 1415.06 1916.85 1362.25 1925.75 1309.44 1915.62 1255.17 1888.23 1209.16 1860.85 1163.13 1818 1128.34 1767.33 1110.97L1466.51 982.161V1324.15C1466.64 1384.19 1490.57 1441.72 1533.05 1484.16 1575.53 1526.59 1633.1 1550.46 1693.14 1550.52ZM1405.53 547.689V889.671L1104.7 760.856C1065.35 747.221 1030.51 723.005 1004.02 690.865 977.527 658.724 960.404 619.905 954.531 578.67 948.656 537.434 954.261 495.378 970.726 457.12 987.192 418.861 1013.88 385.879 1047.87 361.798 1081.85 337.716 1121.81 323.465 1163.37 320.611 1204.92 317.757 1246.46 326.408 1283.41 345.617 1320.37 364.825 1351.33 393.847 1372.86 429.495 1394.41 465.143 1405.71 506.038 1405.53 547.689Z"})))}}Il.glyphName="mastery-logo";Il.variant="Line";Il.displayName="IconMasteryLogoLine";Il.propTypes={...Ie.propTypes};Il.allowedProps=[...Ie.allowedProps];const iS="isp-site",rS="5.0.1+1724690382",uS="https://inst.bid/#/",oS="module",cS={dev:"vite","biome:check":"pnpm lint && pnpm check && pnpm format","biome:apply":"pnpm lint:apply && pnpm check:apply && pnpm format:apply",build:"pnpm build:preview && pnpm build:git","build:git":'git add . && git commit -m "Build v$npm_package_version" && git push',"build:js":"vite build","build:preview":"pnpm biome:apply && pnpm sec && pnpm build:version && pnpm build:ts && pnpm build:js","build:ts":"tsc","build:version":`node-jq -r '.version=$ARGS.positional[0]+"+"+$ARGS.positional[1]' package.json --args "$(pnpm -s env:semver)" "$(date +%s)" | sponge package.json`,check:"biome check","check:apply":"biome check --write","env:package":"node-jq '.' package.json","env:biome":"biome rage","env:buildtime":`date -r $(node-jq -r '(.version | split("+"))[1]' package.json)`,"env:semver":`node-jq -r '(.version | split("+"))[0]' package.json`,"env:version":'echo "$npm_package_version"',format:"biome format","format:apply":"biome format --write",lint:"biome lint","lint:apply":"biome lint --write",preview:"pnpm build:preview && vite preview",push:`pnpm build && {pnpm tag || printf "git tag already exists.\r -";} && gh-pages -t -m "Deploy v$(pnpm -s env:version)" -d dist`,sec:"pnpm sec:audit && pnpm sec:scan","sec:audit":"snyk test && pnpm audit","sec:scan":"snyk code test",tag:"git tag isp-site-v$(pnpm -s env:semver) && git push origin isp-site-v$(pnpm -s env:semver)"},sS={"@instructure/browserslist-config-canvas-lms":"^2.0.0","@instructure/ui":"10.2.0","gh-pages":"^6.1.1",react:"19.0.0-rc-b57d2823-20240822","react-dom":"19.0.0-rc-b57d2823-20240822","react-markdown":"^9.0.1","react-router-dom":"^6.26.1","rehype-raw":"^7.0.0","remark-gemoji":"^8.0.0","remark-gfm":"^4.0.0"},fS={"@babel/plugin-syntax-import-attributes":"^7.24.7","@biomejs/biome":"1.8.3","@instructure/shared-types":"^9.6.0","@octokit/types":"^13.5.0","@types/react":"npm:types-react@19.0.0-rc.0","@types/react-dom":"npm:types-react-dom@19.0.0-rc.0","@vitejs/plugin-react":"^4.3.1","babel-plugin-react-compiler":"0.0.0-experimental-7d62301-20240822","node-jq":"^4.4.0",snyk:"^1.1292.4","snyk-policy":"^3.0.0",typescript:"^5.5.4",vite:"^5.4.2"},dS={node:">=22.6.0",pnpm:">=9.7.0"},mS="pnpm@9.8.0+sha512.8e4c3550fb500e808dbc30bb0ce4dd1eb614e30b1c55245f211591ec2cdf9c611cabd34e1364b42f564bd54b3945ed0f49d61d1bbf2ec9bd74b866fcdc723276",hS={overrides:{react:"^19.0.0-rc-d48603a5-20240813","react-dom":"^19.0.0-rc-d48603a5-20240813","@instructure/ui-test-sandbox>sinon":"^17.0.1","gh-pages>globby":"11.1.0","node-jq>tempfile":"^5.0.0","bin-build>tempfile":"^5.0.0","bin-build>download":"^8.0.0","download>got":"^14.4.1"}},vS=["extends @instructure/browserslist-config-canvas-lms"],pS={name:iS,version:rS,homepage:uS,private:!0,type:oS,scripts:cS,dependencies:sS,devDependencies:fS,engines:dS,packageManager:mS,pnpm:hS,browserslist:vS},M={owner:"instructure",repo:"instructure-compliance-packages",branch:"main",url:pS.homepage.replace("/#/",""),gh:"https://github.com",api:"https://api.github.com",raw:"https://raw.githubusercontent.com"},Ba=`${M.raw}/${M.owner}/${M.repo}/${M.branch}/README`,yS=["Instructure","Canvas","Mastery","Elevate","Impact","LearnPlatform","Intelligent Insights","Parchment"],J9=[...yS,"Canvas LMS","Canvas Mobile","Canvas Studio","Canvas Credentials","Canvas Catalog","Canvas Commons","Canvas Data","Mastery Connect","Mastery Item Bank","Mastery View Assessments","Elevate Data Quality","Elevate Data Sync","Elevate Standards Alignment","Learn Platform"],gS=[{brandName:"Instructure",get title(){return this.brandName.toLowerCase()},route:"/",readme:`${Ba}.md`,color:"#287A9F",Icon:Ln},{brandName:"Canvas",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ba}-${this.brandName}.md`},color:"#E72429",Icon:Jl},{brandName:"Mastery",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ba}-${this.brandName}.md`},color:"#24A159",Icon:Il},{brandName:"Elevate",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ba}-${this.brandName}.md`},color:"#0097D3",Icon:Wl},{brandName:"Impact",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ba}-${this.brandName}.md`},color:"#F76400",Icon:Fl},{brandName:"LearnPlatform",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ba}-${this.brandName}.md`},color:"#0077CC",Icon:()=>je.jsxs(Ie,{viewBox:"0 0 300 300",size:"small",color:"primary-inverse",height:"2.5rem",width:"2.5rem",children:[je.jsx("path",{d:"M191.431 212.736H205.086C204.961 212.34 204.846 211.974 204.738 211.63C204.404 210.567 204.135 209.713 203.834 208.81C199.852 198.417 195.964 187.986 192.171 177.517C181.493 149.012 170.872 120.497 160.309 91.9733C159.911 90.214 158.223 89.0597 156.44 89.3276C151.091 89.4698 145.743 89.5267 140.423 89.3276C138.432 89 136.546 90.3293 136.184 92.3147C121.657 131.422 107.129 170.519 92.6017 209.607C92.414 210.136 92.2467 210.686 92.0507 211.329C91.9201 211.759 91.7767 212.23 91.606 212.765C93.7973 212.765 95.9464 212.748 98.0664 212.732C102.222 212.701 106.265 212.67 110.297 212.765C112.402 212.935 113.17 211.94 113.824 210.091C115.474 205.226 117.167 200.375 118.859 195.525C120.552 190.675 122.245 185.824 123.895 180.959C124.199 179.276 125.788 178.141 127.479 178.399H168.729C170.418 178.138 172.011 179.255 172.342 180.931C173.799 185.14 175.307 189.334 176.814 193.524C178.251 197.519 179.687 201.511 181.076 205.51C182.365 209.107 183.012 210.914 184.295 211.821C185.589 212.736 187.531 212.736 191.431 212.736ZM148.417 109.213C154.145 126.092 159.977 143.351 165.913 160.989H131.121L148.417 109.213Z"}),je.jsx("path",{d:"M225 110.209V114.191H207.931V133.707H203.522V114.191H186.453V110.209H203.522V90.8069H207.732V110.209H225Z"}),je.jsx("path",{d:"M219.488 246.567C178.123 277.109 121.739 277.405 80.0539 247.301L86.1316 238.9C47.7742 211.418 31.5805 162.32 46.069 117.435L55.9454 119.307C69.5589 79.1029 107.372 52.0989 149.847 52.2484V13C90.0696 13.0663 37.1326 51.5854 18.7192 108.414C0.305744 165.242 20.6036 227.455 68.998 262.519C117.392 297.583 182.877 297.523 231.207 262.37C279.537 227.218 299.72 164.967 281.203 108.173L272.111 111.134C289.714 164.146 271.022 222.449 225.87 255.373"}),je.jsx("path",{d:"M219.488 246.567C178.123 277.109 121.739 277.405 80.0539 247.301L86.1316 238.9C47.7742 211.418 31.5805 162.32 46.069 117.435L55.9454 119.307C69.5589 79.1029 107.372 52.0989 149.847 52.2484V13C90.0696 13.0663 37.1326 51.5854 18.7192 108.414C0.305744 165.242 20.6036 227.455 68.998 262.519C117.392 297.583 182.877 297.523 231.207 262.37C279.537 227.218 299.72 164.967 281.203 108.173L272.111 111.134C289.714 164.146 271.022 222.449 225.87 255.373"})]})},{brandName:"Intelligent Insights",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title.replace(/ /g,"-")}`},get readme(){return`${Ba}-${this.brandName.replace(/ /g,"-")}.md`},color:"#287A9F",Icon:Ln},{brandName:"Parchment",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ba}-${this.brandName}.md`},color:"#0093b2",Icon:()=>je.jsxs(Ie,{viewBox:"0 -3 29 31.68",size:"small",color:"primary-inverse",height:"2.5rem",width:"2.5rem",children:[je.jsx("polygon",{points:"26.87 21.98 2.44 21.98 2.44 2.44 19.54 2.44 19.54 0 0 0 0 24.43 29.31 24.43 29.31 9.77 26.87 9.77"}),je.jsx("rect",{x:"26.87",y:"4.89",width:"2.44",height:"2.44"}),je.jsx("rect",{x:"21.98",width:"2.44",height:"2.44"}),je.jsx("rect",{x:"26.87",width:"2.44",height:"2.44"}),je.jsxs("g",{children:[je.jsx("path",{d:"M9.38,13.2c-.5,0-.62.37-.62.71v1.53c0,.4.23.69.66.69.36,0,.55-.21.55-.69v-1.53c0-.42-.13-.71-.58-.71Z"}),je.jsx("path",{d:"M9.15,11.01c-2.36,0-4.27,1.91-4.27,4.27s1.91,4.27,4.27,4.27,4.27-1.91,4.27-4.27-1.91-4.27-4.27-4.27ZM10.86,15.4c0,.81-.54,1.44-1.27,1.44-.31,0-.84-.14-.84-.38v1.87c0,.14-.18.23-.3.23h-.3c-.13,0-.31-.08-.31-.23v-5.53c0-.14.18-.28.31-.28h.31c.13,0,.29.13.29.28v.05c0-.18.44-.36.8-.36.8,0,1.31.5,1.31,1.48v1.43Z"})]})]})}],bS=`${M.raw}/${M.owner}/${M.repo}`,tl=`${bS}/${M.branch}`,SS=[{title:"CAIQ",from:"/aws/caiq/dl",to:`${tl}/Amazon%20Web%20Services/AWS%20CAIQ.pdf`},{title:"Cyber Essentials+ Certificate",from:"/aws/ce/dl",to:`${tl}/Amazon%20Web%20Services/AWS%20Cyber%20Essentials%20Plus%20Certificate.pdf`},{title:"CSA Star Level 2 Certificate",from:"/aws/csa/dl",to:`${tl}/Amazon%20Web%20Services/AWS%20CSA%20Star%20Certification.pdf`},{title:"ISO 27001 Certificate",from:"/aws/iso/dl",to:`${tl}/Amazon%20Web%20Services/AWS%20ISO%2027001%20Certificate.pdf`},{title:"ISO 9001 Certificate",from:"/aws/iso9001/dl",to:`${tl}/Amazon%20Web%20Services/AWS%20ISO%209001%20Certificate.pdf`},{title:"SOC 3 Report",from:"/aws/soc/dl",to:`${tl}/Amazon%20Web%20Services/AWS%20SOC%203.pdf`}],ES=SS.map(e=>({...e,lang:"EN"})),RS={brand:"AWS",links:ES},Wp="canvas-catalog",CS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,AS=`${M.raw}/${M.owner}/${M.repo}`,al=`${AS}/${Wp}`,_S=[{title:"Compliance Package",from:"/canvas/catalog/dl",to:`${CS}/${Wp}.zip`},{title:"PCI AOC SAQ",from:"/canvas/catalog/aoc/dl",to:`${al}/Canvas%20Catalog/2024_Instructure_PCI_DSS_Summary.pdf`},{title:"Architecture Paper",from:"/canvas/catalog/architecture/dl",to:`${al}/Canvas%20Catalog/Canvas%20Catalog%20Architecture.pdf`},{title:"HECVAT Lite",from:"/canvas/catalog/hecvat/dl",to:`${al}/Canvas%20Catalog/Canvas%20Catalog%20HECVAT%20Lite.xlsx`},{title:"PCI Shared Responsibility Matrix",from:"/canvas/catalog/pci/dl",to:`${al}/Canvas%20Catalog/Canvas%20Catalog%20PCI%20Responsibility%20Matrix.pdf`},{title:"TX-RAMP Certification",from:"/canvas/catalog/tx-ramp/dl",to:`${al}/Canvas%20Catalog/Canvas%20Catalog%20TX-RAMP%20Provisional%20Certificate.pdf`},{title:"Payment Redirector",from:"/canvas/catalog/payments/dl",to:`${al}/Canvas%20Catalog/Catalog%20Payment%20Redirector.png`},{title:"Home (HE)",from:"/canvas/catalog",to:"https://www.instructure.com/higher-education/products/canvas/canvas-catalog/"},{title:"Home (K12)",from:"/canvas/catalog/k12",to:"https://www.instructure.com/k12/products/canvas/canvas-catalog/"},{title:"Guides",from:"/canvas/catalog/guides",to:"https://community.canvaslms.com/t5/Canvas-Catalog/ct-p/canvas_catalog"},{title:"Release Notes",from:"/canvas/catalog/releases",to:"https://community.canvaslms.com/t5/Catalog-Releases/ct-p/catalog_releases"},{title:"API",from:"/canvas/catalog/api",to:"https://api.catalog.instructure.com/api/docs"}],wS=_S.map(e=>({...e,lang:"EN"})),TS={brand:"Canvas Catalog",links:wS},OS=[{title:"Home",from:"/canvas/commons",to:"https://lor.instructure.com/"},{title:"Guides",from:"/canvas/commons/guides",to:"https://community.canvaslms.com/t5/Canvas-Commons/tkb-p/commons"},{title:"API",from:"/canvas/commons/api",to:"https://lor.instructure.com/docs/api/"}],MS=OS.map(e=>({...e,lang:"EN"})),xS={brand:"Canvas Commons",links:MS},Fp="canvas-credentials",DS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,$S=`${M.raw}/${M.owner}/${M.repo}`,Wr=`${$S}/${Fp}`,zS=[{title:"Compliance Package",from:"/canvas/credentials/dl",to:`${DS}/${Fp}.zip`},{title:"VPAT",from:"/canvas/credentials/vpat/dl",to:`${Wr}/Canvas%20Credentials/Canvas%20Credentials%20(formerly%20Badgr)%20VPAT.pdf`},{title:"Architecture Paper",from:"/canvas/credentials/architecture/dl",to:`${Wr}/Canvas%20Credentials/Canvas%20Credentials%20Architecture.pdf`},{title:"HECVAT",from:"/canvas/credentials/hecvat/dl",to:`${Wr}/Canvas%20Credentials/Canvas%20Credentials%20HECVAT%20Full.xlsx`},{title:"TX-RAMP Certification",from:"/canvas/credentials/tx-ramp/dl",to:`${Wr}/Canvas%20Credentials/Canvas%20Credentials%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Home (HE)",from:"/canvas/credentials",to:"https://www.instructure.com/higher-education/products/canvas/canvas-credentials-digital-badges/"},{title:"Home (K12)",from:"/canvas/credentials/k12",to:"https://www.instructure.com/k12/products/canvas/canvas-credentials-digital-badges/"},{title:"Guides",from:"/canvas/credentials/guides",to:"https://community.canvaslms.com/t5/Canvas-Credentials-Badges-Badgr/ct-p/canvas-credentials-badges"},{title:"Release Notes",from:"/canvas/credentials/releases",to:"https://community.canvaslms.com/t5/Badges-Credentials-Releases/tkb-p/badges-release"},{title:"API",from:"/canvas/credentials/api",to:"https://api.badgr.io/docs/v2/"}],NS=zS.map(e=>({...e,lang:"EN"})),Ip="canvas-credentials-ES_LA",LS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,US=`${M.raw}/${M.owner}/${M.repo}`,Fr=`${US}/${Ip}`,HS=[{title:"Compliance Package",from:"/es-la/canvas/credentials/dl",to:`${LS}/${Ip}.zip`},{title:"VPAT",from:"/es-la/canvas/credentials/vpat/dl",to:`${Fr}/Canvas%20Credentials/Canvas%20Credentials%20(formerly%20Badgr)%20VPAT.pdf`},{title:"Papel de Arquitectura",from:"/es-la/canvas/credentials/arquitectura/dl",to:`${Fr}/Canvas%20Credentials/Canvas%20Credentials%20Architecture_ES.pdf`},{title:"HECVAT",from:"/es-la/canvas/credentials/hecvat/dl",to:`${Fr}/Canvas%20Credentials/Canvas%20Credentials%20HECVAT%20Full.xlsx`},{title:"Certificado de Nivel 2 de TX-RAMP",from:"/es-la/canvas/credentials/tx-ramp/dl",to:`${Fr}/Canvas%20Credentials/Canvas%20Credentials%20TX-RAMP%20Level%202%20Certification.pdf`}],BS=HS.map(e=>({...e,lang:"ES_LA"})),ey="canvas-credentials-PT_BR",jS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,VS=`${M.raw}/${M.owner}/${M.repo}`,Ir=`${VS}/${ey}`,GS=[{title:"Compliance Package",from:"/pt-br/canvas/credentials/dl",to:`${jS}/${ey}.zip`},{title:"VPAT",from:"/pt-br/canvas/credentials/vpat/dl",to:`${Ir}/Canvas%20Credentials/Canvas%20Credentials%20(formerly%20Badgr)%20VPAT.pdf`},{title:"Papel de Arquitectura",from:"/pt-br/canvas/credentials/arquitectura/dl",to:`${Ir}/Canvas%20Credentials/Canvas%20Credentials%20Architecture_PT.pdf`},{title:"HECVAT",from:"/pt-br/canvas/credentials/hecvat/dl",to:`${Ir}/Canvas%20Credentials/Canvas%20Credentials%20HECVAT%20Full.xlsx`},{title:"Certificado de Nível 2 de TX-RAMP",from:"/pt-br/canvas/credentials/tx-ramp/dl",to:`${Ir}/Canvas%20Credentials/Canvas%20Credentials%20TX-RAMP%20Level%202%20Certification.pdf`}],YS=GS.map(e=>({...e,lang:"PT_BR"})),qS={brand:"Canvas Credentials",links:[...NS,...BS,...YS]},kS=[{title:"Guides",from:"/canvas/data/guides",to:"https://community.canvaslms.com/t5/Canvas-Data-Users/gh-p/data"},{title:"API",from:"/canvas/data/api",to:"https://portal.inshosteddata.com/docs"}],XS=kS.map(e=>({...e,lang:"EN"})),ZS={brand:"Canvas Data",links:XS},QS=[{title:"Startseite",from:"/de/canvas/lms",to:"https://www.instructure.com/de/hochschule/produkt/canvas/canvas-lms/"},{title:"Handbücher",from:"/de/canvas/handbuch",to:"https://community.canvaslms.com/t5/Ressourcen-auf-Deutsch-German/ct-p/german_resources"}],KS=QS.map(e=>({...e,lang:"DE"})),ty="canvas-lms",PS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,JS=`${M.raw}/${M.owner}/${M.repo}`,pi=`${JS}/${ty}`,WS=[{title:"Compliance Package",from:"/canvas/lms/dl",to:`${PS}/${ty}.zip`},{title:"Architecture Paper",from:"/canvas/lms/architecture/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20Architecture.pdf`},{title:"HECVAT",from:"/canvas/lms/hecvat/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20HECVAT%20Full.xlsx`},{title:"K12CVAT",from:"/canvas/lms/k12cvat/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20K12CVAT%20Full.xlsx`},{title:"SOC 3 Report",from:"/canvas/lms/soc/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20SOC%203.pdf`},{title:"TX-RAMP Level 2 Certificate",from:"/canvas/lms/txramp/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Home (HE)",from:"/canvas/lms",to:"https://www.instructure.com/higher-education/products/canvas/canvas-lms/"},{title:"Home (K12)",from:"/canvas/lms/k12",to:"https://www.instructure.com/k12/products/canvas/canvas-lms/"},{title:"VPAT",from:"/canvas/lms/vpat",to:"https://www.instructure.com/products/canvas/accessibility/"},{title:"Guides",from:"/canvas/lms/guides",to:"https://community.canvaslms.com/t5/Canvas-Guides/ct-p/canvas_guides/"},{title:"Release Notes",from:"/canvas/lms/releases",to:"https://community.canvaslms.com/t5/Canvas-Releases/tkb-p/canvas-release"},{title:"API",from:"/canvas/lms/api",to:"https://canvas.instructure.com/doc/api/index.html"}],FS=WS.map(e=>({...e,lang:"EN"})),ay="canvas-lms-ES_LA",IS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,e6=`${M.raw}/${M.owner}/${M.repo}`,yi=`${e6}/${ay}`,t6=[{title:"Compliance Package",from:"/es-la/canvas/lms/dl",to:`${IS}/${ay}.zip`},{title:"Papel de Arquitectura",from:"/es-la/canvas/lms/arquitectura/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20Architecture_ES.pdf`},{title:"HECVAT",from:"/es-la/canvas/lms/hecvat/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20HECVAT%20Full.xlsx`},{title:"K12CVAT",from:"/es-la/canvas/lms/k12cvat/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20K-12CVAT-Lite.xlsx`},{title:"Informe SOC 3",from:"/es-la/canvas/lms/soc/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20SOC%203.pdf`},{title:"Certificado de Nivel 2 de TX-RAMP",from:"/es-la/canvas/lms/txramp/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Página de inicio (HE)",from:"/es-la/canvas/lms",to:"https://www.instructure.com/es/canvas/educacion-superior/"},{title:"Página de inicio (K12)",from:"/es-la/canvas/lms/basica",to:"https://www.instructure.com/es/educacion-basica/"},{title:"Guías",from:"/es-la/canvas/guias",to:"https://community.canvaslms.com/t5/Recursos-en-Espa%C3%B1ol-Spanish/ct-p/espanol_resources"},{title:"Notas de implementación",from:"/es-la/canvas/lms/publicacion",to:"https://community.canvaslms.com/t5/Espa%C3%B1ol/tkb-p/canvas-release-espanol"}],a6=t6.map(e=>({...e,lang:"ES_LA"})),ny="canvas-lms-PT_BR",n6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,l6=`${M.raw}/${M.owner}/${M.repo}`,gi=`${l6}/${ny}`,i6=[{title:"Compliance Package",from:"/pt-br/canvas/lms/dl",to:`${n6}/${ny}.zip`},{title:"Papel de Arquitetura",from:"/pt-br/canvas/lms/arquitetura/dl",to:`${gi}/Canvas%20LMS/Canvas%20LMS%20Architecture_PT.pdf`},{title:"HECVAT",from:"/pt-br/canvas/lms/hecvat/dl",to:`${gi}/Canvas%20LMS/Canvas%20LMS%20HECVAT%20Full.xlsx`},{title:"K12CVAT",from:"/pt-br/canvas/lms/k12cvat/dl",to:`${gi}/Canvas%20LMS/Canvas%20LMS%20K-12CVAT-Lite.xlsx`},{title:"Relatório SOC 3",from:"/pt-br/canvas/lms/soc/dl",to:`${gi}/Canvas%20LMS/Canvas%20LMS%20SOC%203.pdf`},{title:"Certificado de Nível 2 do TX-RAMP",from:"/pt-br/canvas/lms/txramp/dl",to:`${gi}/Canvas%20LMS/Canvas%20LMS%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Página inicial (HE)",from:"/canvas/lms/pt",to:"https://www.instructure.com/pt-br/canvas/ensino-superior/"},{title:"Página inicial (K12)",from:"/canvas/lms/pt/basica",to:"https://www.instructure.com/pt-br/ensino-fundamental-e-medio/"},{title:"Guias",from:"/pt-br/canvas/guias",to:"https://community.canvaslms.com/t5/Recursos-en-Espa%C3%B1ol-Spanish/ct-p/espanol_resources"},{title:"Notas de lançamento (Canvas LMS)",from:"/canvas/lms/lancamentos",to:"https://community.canvaslms.com/t5/Portugues/tkb-p/canvas-release-portugues"}],r6=i6.map(e=>({...e,lang:"PT_BR"})),u6={brand:"Canvas LMS",links:[...FS,...a6,...r6,...KS]},o6=[{title:"Mobile Apps (Android)",from:"/canvas/mobile/android",to:"https://play.google.com/store/apps/developer?id=Instructure"},{title:"Mobile Apps (iOS)",from:"/canvas/mobile/ios",to:"https://apps.apple.com/us/developer/instructure-inc/id418441198"},{title:"Release Notes",from:"/canvas/mobile/releases",to:"https://community.canvaslms.com/t5/Canvas-Mobile-Releases/tkb-p/CanvasMobileReleases"},{title:"Guides",from:"/canvas/mobile/guides",to:"https://community.canvaslms.com/t5/Canvas-Mobile-Users/gh-p/mobile"}],c6=o6.map(e=>({...e,lang:"EN"})),s6={brand:"Canvas Mobile",links:c6},ly="canvas-studio",f6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,d6=`${M.raw}/${M.owner}/${M.repo}`,I0=`${d6}/${ly}`,m6=[{title:"Compliance Package",from:"/canvas/studio/dl",to:`${f6}/${ly}.zip`},{title:"Architecture Paper",from:"/canvas/studio/architecture/dl",to:`${I0}/Canvas%20Studio/Canvas%20Studio%20Architecture.pdf`},{title:"HECVAT",from:"/canvas/studio/hecvat/dl",to:`${I0}/Canvas%20Studio/Canvas%20Studio%20HECVAT%20Lite.xlsx`},{title:"Home (HE)",from:"/canvas/studio",to:"https://www.instructure.com/higher-education/products/canvas/canvas-studio/"},{title:"Home (K12)",from:"/canvas/studio/k12",to:"https://www.instructure.com/k12/products/canvas/canvas-studio/"},{title:"VPAT",from:"/canvas/studio/vpat",to:"https://www.instructure.com/accessibility/canvas/canvas-studio-vpat/"},{title:"Guides",from:"/canvas/studio/guides",to:"https://community.canvaslms.com/t5/Canvas-Studio/ct-p/studio_guides"},{title:"Release Notes",from:"/canvas/studio/releases",to:"https://community.canvaslms.com/t5/Studio-Releases/ct-p/studio_releases"},{title:"API",from:"/canvas/studio/api",to:"https://canvas.instructuremedia.com/api/public/docs/#/"}],h6=m6.map(e=>({...e,lang:"EN"})),v6={brand:"Canvas Studio",links:h6},p6=[{title:"Gemeinschaft",from:"/de/canvas/gemeinschaft",to:"https://community.canvaslms.com/t5/Ressourcen-auf-Deutsch-German/ct-p/german_resources"}],y6=p6.map(e=>({...e,lang:"DE"})),g6="canvas-lms",b6=`${M.raw}/${M.owner}/${M.repo}`,S6=`${b6}/${g6}`,E6=[{title:"Security Audit Report",from:"/canvas/audit/dl",to:`${S6}/Canvas%20LMS/Canvas%20Security%20Audit%20Report.pdf`},{title:"Try Canvas (FFT)",from:"/canvas/try",to:"https://www.instructure.com/try-canvas"},{title:"Community",from:"/canvas/community",to:"https://community.canvaslms.com/t5/Canvas/ct-p/canvas"},{title:"Roadmap",from:"/canvas/roadmap",to:"https://community.canvaslms.com/t5/Canvas-Product-Roadmap/ct-p/canvas-product-roadmap"},{title:"Ideas",from:"/canvas/ideas",to:"https://community.canvaslms.com/t5/Canvas-Ideas-and-Themes/ct-p/canvas-ideas-themes?tab=identified"}],R6=E6.map(e=>({...e,lang:"EN"})),C6=[{title:"Communidad",from:"/es-la/canvas/lms/communidad",to:"https://community.canvaslms.com/t5/Recursos-en-Espa%C3%B1ol-Spanish/ct-p/espanol_resources"}],A6=C6.map(e=>({...e,lang:"ES_LA"})),_6=[{title:"Comunidade",from:"/pt-br/canvas/comunidade",to:"https://community.canvaslms.com/t5/Recursos-em-Portugu%C3%AAs-Portuguese/ct-p/portuguese_resources"}],w6=_6.map(e=>({...e,lang:"PT_BR"})),T6={brand:"Canvas",links:[...R6,...A6,...w6,...y6]},O6=[{title:"Home",from:"/elevate/dataquality",to:"https://www.instructure.com/k12/products/elevate/elevate-data-quality/"},{title:"Guides",from:"/elevate/dataquality/guides",to:"https://community.canvaslms.com/t5/Elevate-Data-Quality/ct-p/certify"}],M6=O6.map(e=>({...e,lang:"EN"})),x6={brand:"Elevate Data Quality",links:M6},D6=[{title:"Guides",from:"/elevate/datasync/guides",to:"https://community.canvaslms.com/t5/Elevate-Data-Sync/ct-p/elevate_data_sync"}],$6=D6.map(e=>({...e,lang:"EN"})),z6={brand:"Elevate Data Sync",links:$6},iy="elevate-standards-alignment",N6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,L6=`${M.raw}/${M.owner}/${M.repo}`,U6=`${L6}/${iy}`,H6=[{title:"Compliance Package",from:"/elevate/standards-alignment/dl",to:`${N6}/${iy}.zip`},{title:"HECVAT Lite",from:"/elevate/standards-alignment/hecvat/dl",to:`${U6}/Elevate%20Standards%20Alignment/Elevate%20Standards%20Alignment%20HECVAT%20Lite.xlsx`},{title:"Home",from:"/elevate/standards-alignment",to:"https://www.instructure.com/corporate-education/products/elevate/elevate-standards-alignment"},{title:"Release Notes",from:"/elevate/standards-alignment/releases",to:"https://community.canvaslms.com/t5/Elevate-Standards-Alignment/tkb-p/esa_releases"},{title:"Guides",from:"/elevate/standards-alignment/guides",to:"https://community.canvaslms.com/t5/Elevate-Standards-Alignment/tkb-p/ab_basics"},{title:"Standards",from:"/elevate/standards-alignment/standards",to:"https://community.canvaslms.com/t5/Elevate-Standards-Alignment/ct-p/ab_standards"}],B6=H6.map(e=>({...e,lang:"EN"})),j6={brand:"Elevate Standards Alignment",links:B6},V6=[{title:"Community",from:"/elevate/community",to:"https://community.canvaslms.com/t5/Elevate/ct-p/elevate"},{title:"Roadmap",from:"/elevate/roadmap",to:"https://community.canvaslms.com/t5/Elevate-Product-Roadmap/ct-p/elevate-product-roadmap"}],G6=V6.map(e=>({...e,lang:"EN"})),Y6={brand:"Elevate",links:G6},ry="impact",q6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,k6=`${M.raw}/${M.owner}/${M.repo}`,Zc=`${k6}/${ry}`,X6=[{title:"Compliance Package",from:"/impact/dl",to:`${q6}/${ry}.zip`},{title:"Architecture Paper",from:"/impact/architecture/dl",to:`${Zc}/Impact/Impact%20Architecture.pdf`},{title:"HECVAT",from:"/impact/hecvat/dl",to:`${Zc}/Impact/Impact%20by%20Instructure%20HECVAT%20Full.xlsx`},{title:"TX-RAMP Level 2 Certification",from:"/impact/tx-ramp/dl",to:`${Zc}/Impact/Impact%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Home (HE)",from:"/impact/he",to:"https://www.instructure.com/higher-education/products/impact/"},{title:"Home (K12)",from:"/impact/k12",to:"https://www.instructure.com/k12/products/impact/"},{title:"Community",from:"/impact/community",to:"https://community.canvaslms.com/t5/Impact/ct-p/impact"},{title:"Guides",from:"/impact/guides",to:"https://community.canvaslms.com/t5/Impact-Guides/tkb-p/impact_guides"},{title:"Release Notes",from:"/impact/releases",to:"https://community.canvaslms.com/t5/Impact-Releases/ct-p/impact_releases"}],Z6=X6.map(e=>({...e,lang:"EN"})),uy="impact-ES_LA",Q6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,K6=`${M.raw}/${M.owner}/${M.repo}`,Qc=`${K6}/${uy}`,P6=[{title:"Compliance Package",from:"/es-la/impact/dl",to:`${Q6}/${uy}.zip`},{title:"Papel de Arquitectura",from:"/es-la/impact/arquitectura/dl",to:`${Qc}/Impact/Impact%20Architecture_ES.pdf`},{title:"HECVAT",from:"/es-la/impact/hecvat/dl",to:`${Qc}/Impact/Impact%20by%20Instructure%20HECVAT%20Full.xlsx`},{title:"Certificado de Nivel 2 de TX-RAMP",from:"/es-la/impact/tx-ramp/dl",to:`${Qc}/Impact/Impact%20TX-RAMP%20Level%202%20Certification.pdf`}],J6=P6.map(e=>({...e,lang:"ES_LA"})),oy="impact-PT_BR",W6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,F6=`${M.raw}/${M.owner}/${M.repo}`,Kc=`${F6}/${oy}`,I6=[{title:"Compliance Package",from:"/pt-br/impact/dl",to:`${W6}/${oy}.zip`},{title:"Papel de Arquitetura",from:"/pt-br/impact/arquitetura/dl",to:`${Kc}/Impact/Impact%20Architecture_PT.pdf`},{title:"HECVAT",from:"/pt-br/impact/hecvat/dl",to:`${Kc}/Impact/Impact%20by%20Instructure%20HECVAT%20Full.xlsx`},{title:"Certificado de Nível 2 do TX-RAMP",from:"/pt-br/impact/tx-ramp/dl",to:`${Kc}/Impact/Impact%20TX-RAMP%20Level%202%20Certification.pdf`}],e9=I6.map(e=>({...e,lang:"PT_BR"})),t9={brand:"Impact",links:[...Z6,...J6,...e9]},a9=[{title:"Startseite",from:"/de/home",to:"https://www.instructure.com/de"},{title:"Kontakt",from:"/de/kontakt",to:"https://www.instructure.com/de/contact-us"}],n9=a9.map(e=>({...e,lang:"DE"})),l9=`${M.raw}/${M.owner}/${M.repo}`,Jt=`${l9}/${M.branch}`,i9=[{title:"Security White Paper",from:"/security/dl",to:`${Jt}/Instructure/Instructure%20Security%20Overview.pdf`},{title:"Business Continuity White Paper",from:"/bc/dl",to:`${Jt}/Instructure/Instructure%20Business%20Continuity%20%26%20Disaster%20Recovery.pdf`},{title:"CAIQ",from:"/caiq/dl",to:`${Jt}/Instructure/Instructure%20ESG%20Report%20FY2023.pdf`},{title:"CSA Star Certificate",from:"/csa/dl",to:`${Jt}/Instructure/Instructure%20CSA%20STAR%20Certificate.pdf`},{title:"Cyber Essentials+ Certificate",from:"/ce/dl",to:`${Jt}/Instructure/Instructure%20Cyber%20Essentials%20Plus.pdf`},{title:"Environmental, Social, and Governance Report",from:"/esg/dl",to:`${Jt}/Instructure/Instructure%20ESG%20Report%20FY2023.pdf`},{title:"Instructure, Inc. Certificate of Insurance",from:"/coi/dl",to:`${Jt}/Instructure/Instructure%20Inc%20COI.pdf`},{title:"Instructure Global Certificate of Insurance",from:"/coi-global/dl",to:`${Jt}/Instructure/Instructure%20Global%20COI.pdf`},{title:"ISO 27001 Certificate",from:"/iso/dl",to:`${Jt}/Instructure/Instructure%20ISO%2027001%20Compliance%20Certificate.pdf`},{title:"Quality Assurance Program",from:"/qa/dl",to:`${Jt}/Instructure/Instructure%20Quality%20Assurance%20Program.pdf`},{title:"Home",from:"/home",to:"https://www.instructure.com/"},{title:"Roadmap",from:"/roadmap",to:"https://community.canvaslms.com/t5/Instructure-Roadmap/ct-p/instructure-roadmap/"},{title:"Accessibility",from:"/a11y",to:"https://www.instructure.com/accessibility/"},{title:"Contact",from:"/contact",to:"https://www.instructure.com/contact-us/"},{title:"Privacy",from:"/privacy",to:"https://www.instructure.com/canvas/privacy/"},{title:"Security",from:"/security",to:"https://www.instructure.com/products/canvas/security/"},{title:"Trust Center",from:"/trust",to:"https://www.instructure.com/trust-center/"},{title:"Community",from:"/community",to:"https://community.canvaslms.com/"},{title:"Terms & Conditions",from:"/tos",to:"https://www.instructure.com/policies/master-terms-conditions/"},{title:"Global Terms & Conditions",from:"/tos/global",to:"https://www.instructure.com/policies/global/master-terms-and-conditions/"},{title:"Acceptable Use Policy",from:"/aup",to:"https://www.instructure.com/policies/acceptable-use/"},{title:"Data Privacy Addendum",from:"/dpa",to:"https://www.instructure.com/policies/data-processing/"},{title:"Investor Relations",from:"/investors",to:"https://ir.instructure.com/overview/default.aspx"},{title:"Status",from:"/status",to:"https://status.instructure.com/"},{title:"CSA Star Registration",from:"/csa",to:"https://cloudsecurityalliance.org/star/registry/instructure/"},{title:"1EdTech Registrations",from:"/1edtech",to:"https://site.imsglobal.org/certifications?query=instructure"},{title:"Our Story",from:"/story",to:"https://www.instructure.com/about/our-story"},{title:"Study Hall",from:"/resources",to:"https://www.instructure.com/resources/"},{title:"EduAppCenter",from:"/apps",to:"https://www.eduappcenter.com/"},{title:"ESG Report (online)",from:"/esg",to:"https://instructure.com/esg-report"}],r9=i9.map(e=>({...e,lang:"EN"})),u9=[{title:"Página de inicio",from:"/es-la/home",to:"https://www.instructure.com/es/"},{title:"Contáctenos",from:"/es-la/contactenos",to:"https://www.instructure.com/es/contactenos/"},{title:"Privacidad",from:"/es-la/privicidad",to:"https://www.instructure.com/es/canvas/privacidad/"},{title:"Seguridad",from:"/es-la/seguridad",to:"https://www.instructure.com/es/canvas/seguridad/"},{title:"Nuestra Historia",from:"/es-la/historia",to:"https://www.instructure.com/es/sobre/nuestra-historia"}],o9=u9.map(e=>({...e,lang:"ES_LA"})),c9=[{title:"Pagina inicial",from:"/pt-br/home",to:"https://www.instructure.com/pt-br/"},{title:"Contato",from:"/pt-br/contato",to:"https://www.instructure.com/pt-br/contato/"},{title:"Privacidade",from:"/pt-br/privacidade",to:"https://www.instructure.com/pt-br/canvas/privacidade/"},{title:"Segurança",from:"/pt-br/seguranca",to:"https://www.instructure.com/pt-br/canvas/seguranca/"},{title:"Nossa História",from:"/pt-br/historia",to:"https://www.instructure.com/pt-br/sobre/nossa-historia"}],s9=c9.map(e=>({...e,lang:"PT_BR"})),f9={brand:"Instructure",links:[...r9,...o9,...s9,...n9]},cy="intelligent-insights",d9=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,m9=`${M.raw}/${M.owner}/${M.repo}`,Pc=`${m9}/${cy}`,h9=[{title:"Compliance Package",from:"/intelligent-insights/dl",to:`${d9}/${cy}.zip`},{title:"Architecture Paper",from:"/intelligent-insights/architecture/dl",to:`${Pc}/Intelligent%20Insights/Intelligent%20Insights%20Architecture%20Overview.pdf`},{title:"HECVAT",from:"/intelligent-insights/hecvat/dl",to:`${Pc}/Intelligent%20Insights/Intelligent%20Insights%20HECVAT%20Lite.xlsx`},{title:"Data Sheet",from:"/intelligent-insights/data/dl",to:`${Pc}/Intelligent%20Insights/Intelligent%20Insights%20Data%20Sheet.pdf`},{title:"Home",from:"/intelligent-insights/home",to:"https://www.instructure.com/products/intelligent-insights"},{title:"Community",from:"/intelligent-insights/community",to:"https://community.canvaslms.com/t5/Intelligent-Insights/ct-p/intelligent_insights"},{title:"Guides",from:"/intelligent-insights/guides",to:"https://community.canvaslms.com/t5/Intelligent-Insights-Guides/tkb-p/intelligent_insights_guides"},{title:"Release Notes",from:"/intelligent-insights/releases",to:"https://community.canvaslms.com/t5/Intelligent-Insight-Release/tkb-p/intelligent_insights_releases"}],v9=h9.map(e=>({...e,lang:"EN"})),p9={brand:"Intelligent Insights",links:v9},sy="learnplatform",y9=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,g9=`${M.raw}/${M.owner}/${M.repo}`,Jc=`${g9}/${sy}`,b9=[{title:"Compliance Package",from:"/learnplatform/dl",to:`${y9}/${sy}.zip`},{title:"EdTech Top 40 Report",from:"/learnplatform/top40/dl",to:`${Jc}/LearnPlatform/EdTech%20Top%2040.pdf`},{title:"Architecture Paper",from:"/learnplatform/architecture/dl",to:`${Jc}/LearnPlatform/LearnPlatform%20Architecture%20Overview.pdf`},{title:"HECVAT Lite",from:"/learnplatform/hecvat/dl",to:`${Jc}/LearnPlatform/LearnPlatform%20HECVAT%20Lite.xlsx`},{title:"Home",from:"/learnplatform",to:"https://www.instructure.com/k12/products/learnplatform/"},{title:"Terms of Service",from:"/learnplatform/tos",to:"https://www.instructure.com/policies/learnplatform-terms-of-service/"},{title:"Privacy",from:"/learnplatform/privacy",to:"https://www.instructure.com/policies/privacy-learnplatform/"},{title:"Data Processing Agreement",from:"/learnplatform/dpa",to:"https://www.instructure.com/policies/learnplatform-data-processing-agreement/"},{title:"Statement of Neutrality",from:"/learnplatform/neutrality",to:"https://www.instructure.com/policies/learnplatform-neutrality/"}],S9=b9.map(e=>({...e,lang:"EN"})),E9={brand:"Learnplatform",links:S9},fy="mastery-connect",R9=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,C9=`${M.raw}/${M.owner}/${M.repo}`,em=`${C9}/${fy}`,A9=[{title:"Compliance Package",from:"/mastery/connect/dl",to:`${R9}/${fy}.zip`},{title:"Architecture Paper",from:"/mastery/connect/architecture/dl",to:`${em}/Mastery%20Connect/Mastery%20Connect%20Architecture.pdf`},{title:"HECVAT Lite",from:"/mastery/connect/hecvat/dl",to:`${em}/Mastery%20Connect/Mastery%20Connect%20HECVAT%20Lite.xlsx`},{title:"Home",from:"/mastery/connect",to:"https://www.instructure.com/k12/products/mastery/mastery-connect"},{title:"Guides",from:"/mastery/connect/guides",to:"https://community.canvaslms.com/t5/Mastery-Connect/ct-p/masteryconnect"},{title:"Release Notes",from:"/mastery/connect/releases",to:"https://community.canvaslms.com/t5/Mastery-Connect-Releases/tkb-p/masteryconnect"},{title:"API",from:"/mastery/connect/api",to:"https://docs.google.com/document/d/19TxyeRzF6nyJDY6ej2dZozbE87JdUygw"},{title:"Mobile App (Android)",from:"/mastery/connect/android",to:"https://play.google.com/store/apps/dev?id=8869528477632015729&hl=EN&gl=US"},{title:"Mobile App (iOS)",from:"/canvas/lms/ios",to:"https://apps.apple.com/us/developer/masteryconnect/id413937396"}],_9=A9.map(e=>({...e,lang:"EN"})),w9={brand:"Mastery Connect",links:_9},T9=[{title:"Home",from:"/mastery/itembank",to:"https://www.instructure.com/k12/products/mastery/mastery-item-bank/"},{title:"Guides",from:"/mastery/itembank/guides",to:"https://community.canvaslms.com/t5/Mastery-Item-Bank/ct-p/mastery-item-bank/"}],O9=T9.map(e=>({...e,lang:"EN"})),M9={brand:"Mastery Item Bank",links:O9},x9=[{title:"Formatives Home",from:"/mastery/view/formative",to:"https://www.instructure.com/k12/products/mastery/mastery-view-formative-assessments/"},{title:"Predictives Home",from:"/mastery/view/predictive",to:"https://www.instructure.com/k12/products/mastery/mastery-view-predictive-assessments/"}],D9=x9.map(e=>({...e,lang:"EN"})),$9={brand:"Mastery View Assessments",links:D9},z9=[{title:"Community",from:"/mastery/community",to:"https://community.canvaslms.com/t5/Mastery/ct-p/mastery"},{title:"Roadmap",from:"/mastery/roadmap",to:"https://community.canvaslms.com/t5/Mastery-Product-Roadmap/ct-p/mastery-product-roadmap"}],N9=z9.map(e=>({...e,lang:"EN"})),L9={brand:"Mastery",links:N9},U9=[],H9=U9.map(e=>({...e,lang:"EN"})),B9={brand:"Parchment",links:H9},j9=[RS,f9,T6,u6,s6,v6,TS,xS,ZS,qS,L9,w9,M9,$9,t9,Y6,j6,x6,z6,E9,p9,B9],dy=document.getElementById("root");if(!dy)throw new Error("Root element not found");const V9=()=>{const e=[];for(const a of gS)e.push({path:`${a.route}`,lazy:()=>Ot(()=>import("./markdownBrand-DngqaaW6.js"),__vite__mapDeps([0,1,2,3])),loader:()=>({readme:a.readme,brand:a.brandName}),children:[{path:":language",lazy:()=>Ot(()=>import("./markdownBrand-DngqaaW6.js"),__vite__mapDeps([0,1,2,3])),loader:()=>({readme:a.readme,brand:a.brandName})}]});for(const a of j9)for(const n of a.links)e.push({path:n.from,lazy:()=>Ot(()=>import("./redirectTo-BI9YwaQV.js"),__vite__mapDeps([4,1,5])),loader:()=>({path:n.from,brand:a.brand,url:n.to}),children:[{path:":language",lazy:()=>Ot(()=>import("./redirectTo-BI9YwaQV.js"),__vite__mapDeps([4,1,5])),loader:()=>({path:n.from,brand:a.brand,url:n.to})}]});e.push({path:"/links",lazy:()=>Ot(()=>import("./links-BB4989Yr.js"),__vite__mapDeps([6,1,7,3,8])),children:[{path:":language",lazy:()=>Ot(()=>import("./links-BB4989Yr.js"),__vite__mapDeps([6,1,7,3,8]))}]}),e.push({path:"/mdui",lazy:()=>Ot(()=>import("./mdui-yfbR4PDq.js"),__vite__mapDeps([9,1,2,3,10,8])),children:[{path:":language",lazy:()=>Ot(()=>import("./mdui-yfbR4PDq.js"),__vite__mapDeps([9,1,2,3,10,8]))}]}),e.push({path:"/releases",lazy:()=>Ot(()=>import("./releases-DNm8mqBV.js"),__vite__mapDeps([11,1,2,3,12])),children:[{path:":language",lazy:()=>Ot(()=>import("./releases-DNm8mqBV.js"),__vite__mapDeps([11,1,2,3,12]))}]}),e.push({path:"*",lazy:()=>Ot(()=>import("./error-LDYVdH-U.js"),__vite__mapDeps([13,1,5])),children:[{path:":language",lazy:()=>Ot(()=>import("./error-LDYVdH-U.js"),__vite__mapDeps([13,1,5]))}]});const t=X4(e);return je.jsx(Ce.StrictMode,{children:je.jsx(Qp,{theme:_d,children:je.jsx(Z7,{as:"div",minHeight:"100vh",position:"relative",children:je.jsx(e3,{router:t})})})})};Jv.createRoot(dy).render(je.jsx(_.StrictMode,{children:je.jsx(V9,{})}));export{vi as $,No as A,z5 as B,L5 as C,N5 as D,Rd as E,pm as F,C5 as G,Q9 as H,Qp as I,A5 as J,k5 as K,j9 as L,gS as M,Z9 as N,Y9 as O,H as P,be as Q,Ce as R,Ie as S,In as T,p7 as U,Z7 as V,Ad as W,u7 as X,K9 as Y,Wu as Z,Ot as _,k9 as a,Fs as a0,Jp as a1,_d as a2,Jl as a3,Wl as a4,Fl as a5,Ln as a6,Il as a7,cf as b,q9 as c,yS as d,J9 as e,zn as f,M as g,Nn as h,pn as i,je as j,G9 as k,Vl as l,Pu as m,Gp as n,Vp as o,Y5 as p,H5 as q,_ as r,Z5 as s,Kp as t,X9 as u,x5 as v,wd as w,U4 as x,yo as y,Er as z}; diff --git a/assets/index-CdS0NUpT.js b/assets/index-Deq60h-B.js similarity index 99% rename from assets/index-CdS0NUpT.js rename to assets/index-Deq60h-B.js index 977cada..589d187 100644 --- a/assets/index-CdS0NUpT.js +++ b/assets/index-Deq60h-B.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Co1on5ja.js","assets/index-TCIaF8cn.css"])))=>i.map(i=>d[i]); -import{R as st,_ as qp,F as zp,r as sf,v as _p,P as j,s as Lp,w as Bp,E as Up,t as Ip,G as jp,h as Np,i as In,p as Gp,o as Fp}from"./index-Co1on5ja.js";import{T as Hp,I as Kp,e as Jp}from"./index-DUk1PrHv.js";import{a as em,I as ma}from"./index-BAR0q47n.js";import{i as tm,Q as im,S as nm}from"./RenderTopNavBar-BjY6S8Vl.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]=Qi(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),ot.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Qi(this,e,t);let i=[];return this.decompose(e,t,i,0),ot.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),r=new on(this),s=new on(e);for(let o=t,l=t;;){if(r.next(o),s.next(o),o=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(l+=r.value.length,r.done||l>=i)return!0}}iter(e=1){return new on(this,e)}iterRange(e,t=this.length){return new of(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new lf(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 ne(e):ot.from(ne.split(e,[]))}}class ne extends B{constructor(e,t=rm(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let s=0;;s++){let o=this.text[s],l=r+o.length;if((t?i:l)>=e)return new sm(r,l,i,o);r=l+1,i++}}decompose(e,t,i,r){let s=e<=0&&t>=this.length?this:new ne(ga(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let o=i.pop(),l=br(s.text,o.text.slice(),0,s.length);if(l.length<=32)i.push(new ne(l,o.length+s.length));else{let a=l.length>>1;i.push(new ne(l.slice(0,a)),new ne(l.slice(a)))}}else i.push(s)}replace(e,t,i){if(!(i instanceof ne))return super.replace(e,t,i);[e,t]=Qi(this,e,t);let r=br(this.text,br(i.text,ga(this.text,0,e)),t),s=this.length+i.length-(t-e);return r.length<=32?new ne(r,s):ot.from(ne.split(r,[]),s)}sliceString(e,t=this.length,i=` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-mQ6522B8.js","assets/index-TCIaF8cn.css"])))=>i.map(i=>d[i]); +import{R as st,_ as qp,F as zp,r as sf,v as _p,P as j,s as Lp,w as Bp,E as Up,t as Ip,G as jp,h as Np,i as In,p as Gp,o as Fp}from"./index-mQ6522B8.js";import{T as Hp,I as Kp,e as Jp}from"./index-Bj11N7g7.js";import{a as em,I as ma}from"./index-hytSvzuk.js";import{i as tm,Q as im,S as nm}from"./RenderTopNavBar-m0KU5Oph.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]=Qi(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),ot.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Qi(this,e,t);let i=[];return this.decompose(e,t,i,0),ot.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),r=new on(this),s=new on(e);for(let o=t,l=t;;){if(r.next(o),s.next(o),o=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(l+=r.value.length,r.done||l>=i)return!0}}iter(e=1){return new on(this,e)}iterRange(e,t=this.length){return new of(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new lf(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 ne(e):ot.from(ne.split(e,[]))}}class ne extends B{constructor(e,t=rm(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let s=0;;s++){let o=this.text[s],l=r+o.length;if((t?i:l)>=e)return new sm(r,l,i,o);r=l+1,i++}}decompose(e,t,i,r){let s=e<=0&&t>=this.length?this:new ne(ga(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let o=i.pop(),l=br(s.text,o.text.slice(),0,s.length);if(l.length<=32)i.push(new ne(l,o.length+s.length));else{let a=l.length>>1;i.push(new ne(l.slice(0,a)),new ne(l.slice(a)))}}else i.push(s)}replace(e,t,i){if(!(i instanceof ne))return super.replace(e,t,i);[e,t]=Qi(this,e,t);let r=br(this.text,br(i.text,ga(this.text,0,e)),t),s=this.length+i.length-(t-e);return r.length<=32?new ne(r,s):ot.from(ne.split(r,[]),s)}sliceString(e,t=this.length,i=` `){[e,t]=Qi(this,e,t);let r="";for(let s=0,o=0;s<=t&&oe&&o&&(r+=i),es&&(r+=l.slice(Math.max(0,e-s),t-s)),s=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let s of e)i.push(s),r+=s.length+1,i.length==32&&(t.push(new ne(i,r)),i=[],r=-1);return r>-1&&t.push(new ne(i,r)),t}}class ot 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,r){for(let s=0;;s++){let o=this.children[s],l=r+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,r);r=l+1,i=a+1}}decompose(e,t,i,r){for(let s=0,o=0;o<=t&&s=o){let h=r&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if([e,t]=Qi(this,e,t),i.lines=s&&t<=l){let a=o.replace(e-s,t-s,i),h=this.lines-o.lines+a.lines;if(a.lines>4&&a.lines>h>>6){let c=this.children.slice();return c[r]=a,new ot(c,this.length-(t-e)+i.length)}return super.replace(s,l,a)}s=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` `){[e,t]=Qi(this,e,t);let r="";for(let s=0,o=0;se&&s&&(r+=i),eo&&(r+=l.sliceString(e-o,t-o,i)),o=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ot))return 0;let i=0,[r,s,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,s+=t){if(r==o||s==l)return i;let a=this.children[r],h=e.children[s];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let O of e)O.flatten(d);return new ne(d,t)}let r=Math.max(32,i>>5),s=r<<1,o=r>>1,l=[],a=0,h=-1,c=[];function f(d){let O;if(d.lines>s&&d instanceof ot)for(let m of d.children)f(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof ne&&a&&(O=c[c.length-1])instanceof ne&&d.lines+O.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new ne(O.text.concat(d.text),O.length+1+d.length)):(a+d.lines>r&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:ot.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new ot(l,t)}}B.empty=new ne([""],0);function rm(n){let e=-1;for(let t of n)e+=t.length+1;return e}function br(n,e,t=0,i=1e9){for(let r=0,s=0,o=!0;s=t&&(a>i&&(l=l.slice(0,i-r)),r0?1:(e instanceof ne?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],s=this.offsets[i],o=s>>1,l=r instanceof ne?r.text.length:r.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((s&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` `,this;e--}else if(r instanceof ne){let a=r.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=r.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 ne?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 of{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new on(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:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class lf{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=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=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(B.prototype[Symbol.iterator]=function(){return this.iter()},on.prototype[Symbol.iterator]=of.prototype[Symbol.iterator]=lf.prototype[Symbol.iterator]=function(){return this});let sm=class{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}};function Qi(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}let mi="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;nn)return mi[e-1]<=n;return!1}function ba(n){return n>=127462&&n<=127487}const Sa=8205;function me(n,e,t=!0,i=!0){return(t?af:lm)(n,e,i)}function af(n,e,t){if(e==n.length)return e;e&&hf(n.charCodeAt(e))&&cf(n.charCodeAt(e-1))&&e--;let i=ue(n,e);for(e+=ze(i);e=0&&ba(ue(n,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function lm(n,e,t){for(;e>0;){let i=af(n,e-2,t);if(i=56320&&n<57344}function cf(n){return n>=55296&&n<56320}function ue(n,e){let t=n.charCodeAt(e);if(!cf(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return hf(i)?(t-55296<<10)+(i-56320)+65536:t}function pl(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function ze(n){return n<65536?1:2}const oo=/\r\n?|\n/;var Oe=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Oe||(Oe={}));class ft{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return s+(e-r);s+=l}else{if(i!=Oe.Simple&&h>=e&&(i==Oe.TrackDel&&re||i==Oe.TrackBefore&&re))return null;if(h>e||h==e&&t<0&&!l)return e==r||t<0?s:s+a;s+=a}r=h}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,t=e){for(let i=0,r=0;i=0&&r<=t&&l>=e)return rt?"cover":!0;r=l}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}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 ft(e)}static create(e){return new ft(e)}}class he extends ft{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 lo(this,(t,i,r,s,o)=>e=e.replace(r,r+(i-t),o),!1),e}mapDesc(e,t=!1){return ao(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,s=0;r=0){t[r]=l,t[r+1]=o;let a=r>>1;for(;i.length0&&Tt(i,t,s.text),s.forward(c),l+=c}let h=e[o++];for(;l>1].toJSON()))}return e}static of(e,t,i){let r=[],s=[],o=0,l=null;function a(c=!1){if(!c&&!r.length)return;ou||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let O=d?typeof d=="string"?B.of(d.split(i||oo)):d:B.empty,m=O.length;if(f==u&&m==0)return;fo&&ge(r,f-o,-1),ge(r,u-f,m),Tt(s,r,O),o=u}}return h(e),a(!l),l}static empty(e){return new he(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let r=0;rl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;i.length=0&&t<=0&&t==n[r+1]?n[r]+=e:e==0&&n[r]==0?n[r+1]+=t:i?(n[r]+=e,n[r+1]+=t):n.push(e,t)}function Tt(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(r,h,s,c,f),r=h,s=c}}}function ao(n,e,t,i=!1){let r=[],s=i?[]:null,o=new dn(n),l=new dn(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);ge(r,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len=0&&a=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>h),s.forward2(a),o.forward(a)}}}}class dn{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>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 Gt{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,r;return this.empty?i=r=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new Gt(i,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return y.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return y.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 y.range(e.anchor,e.head)}static create(e,t,i){return new Gt(e,t,i)}}class y{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:y.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;ie.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 y(e.ranges.map(t=>Gt.fromJSON(t)),e.main)}static single(e,t=e){return new y([y.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,r=0;re?8:0)|s)}static normalized(e,t=0){let i=e[t];e.sort((r,s)=>r.from-s.from),t=e.indexOf(i);for(let r=1;rs.head?y.range(a,l):y.range(l,a))}}return new y(e,t)}}function uf(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let ml=0;class Z{constructor(e,t,i,r,s){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=r,this.id=ml++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new Z(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:gl),!!e.static,e.enables)}of(e){return new Sr([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Sr(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Sr(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function gl(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Sr{constructor(e,t,i,r){this.dependencies=e,this.facet=t,this.type=i,this.value=r,this.id=ml++}dynamicSlot(e){var t;let i=this.value,r=this.facet.compareInput,s=this.id,o=e[s]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:((t=e[f.id])!==null&&t!==void 0?t:1)&1||c.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||ho(f,c)){let d=i(f);if(l?!ya(d,f.values[o],r):!r(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,O=u.config.address[s];if(O!=null){let m=Rr(u,O);if(this.dependencies.every(g=>g instanceof Z?u.facet(g)===f.facet(g):g instanceof ce?u.field(g,!1)==f.field(g,!1):!0)||(l?ya(d=i(f),m,r):r(d=i(f),m)))return f.values[o]=m,0}else d=i(f);return f.values[o]=d,1}}}}function ya(n,e,t){if(n.length!=e.length)return!1;for(let i=0;in[a.id]),r=t.map(a=>a.type),s=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let h=[];for(let c=0;ci===r),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(ka).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,r)=>{let s=i.values[t],o=this.updateF(s,r);return this.compareF(s,o)?0:(i.values[t]=o,1)},reconfigure:(i,r)=>r.config.address[this.id]!=null?(i.values[t]=r.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,ka.of({field:this,create:e})]}get extension(){return this}}const jt={lowest:4,low:3,default:2,high:1,highest:0};function Bi(n){return e=>new df(e,n)}const kt={highest:Bi(jt.highest),high:Bi(jt.high),default:Bi(jt.default),low:Bi(jt.low),lowest:Bi(jt.lowest)};class df{constructor(e,t){this.inner=e,this.prec=t}}class ls{of(e){return new co(this,e)}reconfigure(e){return ls.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class co{constructor(e,t){this.compartment=e,this.inner=t}}class Tr{constructor(e,t,i,r,s,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=r,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let r=[],s=Object.create(null),o=new Map;for(let u of hm(e,t,o))u instanceof ce?r.push(u):(s[u.facet.id]||(s[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of r)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i==null?void 0:i.config.facets;for(let u in s){let d=s[u],O=d[0].facet,m=c&&c[u]||[];if(d.every(g=>g.type==0))if(l[O.id]=a.length<<1|1,gl(m,d))a.push(i.facet(O));else{let g=O.combine(d.map(b=>b.value));a.push(i&&O.compare(g,i.facet(O))?i.facet(O):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(b=>g.dynamicSlot(b)));l[O.id]=h.length<<1,h.push(g=>am(g,O,d))}}let f=h.map(u=>u(l));return new Tr(e,o,f,l,a,s)}}function hm(n,e,t){let i=[[],[],[],[],[]],r=new Map;function s(o,l){let a=r.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof co&&t.delete(o.compartment)}if(r.set(o,l),Array.isArray(o))for(let h of o)s(h,l);else if(o instanceof co){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),s(h,l)}else if(o instanceof df)s(o.inner,o.prec);else if(o instanceof ce)i[l].push(o),o.provides&&s(o.provides,l);else if(o instanceof Sr)i[l].push(o),o.facet.extensions&&s(o.facet.extensions,jt.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(h,l)}}return s(n,jt.default),i.reduce((o,l)=>o.concat(l))}function ln(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 r=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|r}function Rr(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Of=Z.define(),fo=Z.define({combine:n=>n.some(e=>e),static:!0}),pf=Z.define({combine:n=>n.length?n[0]:void 0,static:!0}),mf=Z.define(),gf=Z.define(),bf=Z.define(),Sf=Z.define({combine:n=>n.length?n[0]:!1});class xt{constructor(e,t){this.type=e,this.value=t}static define(){return new cm}}class cm{of(e){return new xt(this,e)}}class fm{constructor(e){this.map=e}of(e){return new M(this,e)}}class M{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 M(this.type,t)}is(e){return this.type==e}static define(e={}){return new fm(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let r of e){let s=r.map(t);s&&i.push(s)}return i}}M.reconfigure=M.define();M.appendConfig=M.define();class se{constructor(e,t,i,r,s,o){this.startState=e,this.changes=t,this.selection=i,this.effects=r,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,i&&uf(i,t.newLength),s.some(l=>l.type==se.time)||(this.annotations=s.concat(se.time.of(Date.now())))}static create(e,t,i,r,s,o){return new se(e,t,i,r,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let 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(se.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}se.time=xt.define();se.userEvent=xt.define();se.addToHistory=xt.define();se.remote=xt.define();function um(n,e){let t=[];for(let i=0,r=0;;){let s,o;if(i=n[i]))s=n[i++],o=n[i++];else if(r=0;r--){let s=i[r](n);s instanceof se?n=s:Array.isArray(s)&&s.length==1&&s[0]instanceof se?n=s[0]:n=kf(e,gi(s),!1)}return n}function Om(n){let e=n.startState,t=e.facet(bf),i=n;for(let r=t.length-1;r>=0;r--){let s=t[r](n);s&&Object.keys(s).length&&(i=yf(i,uo(e,s,n.changes.newLength),!0))}return i==n?n:se.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const pm=[];function gi(n){return n==null?pm:Array.isArray(n)?n:[n]}var te=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(te||(te={}));const mm=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Oo;try{Oo=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function gm(n){if(Oo)return Oo.test(n);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||mm.test(t)))return!0}return!1}function bm(n){return e=>{if(!/\S/.test(e))return te.Space;if(gm(e))return te.Word;for(let t=0;t-1)return te.Word;return te.Other}}class Y{constructor(e,t,i,r,s,o){this.config=e,this.doc=t,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let l=0;lr.set(h,a)),t=null),r.set(l.value.compartment,l.value.extension)):l.is(M.reconfigure)?(t=null,i=l.value):l.is(M.appendConfig)&&(t=null,i=gi(i).concat(l.value));let s;t?s=e.startState.values.slice():(t=Tr.resolve(i,r,this),s=new Y(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=e.startState.facet(fo)?e.newSelection:e.newSelection.asSingle();new Y(t,e.newDoc,o,s,(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:y.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),r=this.changes(i.changes),s=[i.range],o=gi(i.effects);for(let l=1;lo.spec.fromJSON(l,a)))}}return Y.create({doc:e.doc,selection:y.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=Tr.resolve(e.extensions||[],new Map),i=e.doc instanceof B?e.doc:B.of((e.doc||"").split(t.staticFacet(Y.lineSeparator)||oo)),r=e.selection?e.selection instanceof y?e.selection:y.single(e.selection.anchor,e.selection.head):y.single(0);return uf(r,i.length),t.staticFacet(fo)||(r=r.asSingle()),new Y(t,i,r,t.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(Y.tabSize)}get lineBreak(){return this.facet(Y.lineSeparator)||` @@ -29,4 +29,4 @@ import{R as st,_ as qp,F as zp,r as sf,v as _p,P as j,s as Lp,w as Bp,E as Up,t `+e.scrub();for(let i of e.markers)t.marks.push(i)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}moveRangeI(){for(;this.rangeI=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=tw;if(t.end=e,e>=this.to)t.text="";else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let i=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].tothis.to?i.slice(0,this.to-e):i}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,i=0){this.block=os.create(e,i,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,i=0){this.startContext(this.parser.getNodeType(e),t,i)}addNode(e,t,i){typeof e=="number"&&(e=new D(this.parser.nodeSet.types[e],Ei,Ei,(i??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(fl(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?gp(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let i of e.parsers)if(i.finish(this,e))return;let t=fl(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(Q.Paragraph,e.content.length),e.start)}elt(e,t,i,r){return typeof e=="string"?_(this.parser.getNodeType(e),t,i,r):new yp(e,t)}get buffer(){return new Sp(this.parser.nodeSet)}}function gp(n,e,t,i,r){let s=n[e].to,o=[],l=[],a=t.from+i;function h(c,f){for(;f?c>=s:c>s;){let u=n[e+1].from-s;i+=u,c+=u,e++,s=n[e].to}}for(let c=t.firstChild;c;c=c.nextSibling){h(c.from+i,!0);let f=c.from+i,u,d=r.get(c.tree);d?u=d:c.to+i>s?(u=gp(n,e,c,i,r),h(c.to+i,!1)):u=c.toTree(),o.push(u),l.push(f-a)}return h(t.to+i,!1),new D(t.type,o,l,t.to+i-a,t.tree?t.tree.propValues:void 0)}class ks extends us{constructor(e,t,i,r,s,o,l,a,h){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=i,this.blockNames=r,this.endLeafBlock=s,this.skipContextMarkup=o,this.inlineParsers=l,this.inlineNames=a,this.wrappers=h,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,t,i){let r=new iw(this,e,t,i);for(let s of this.wrappers)r=s(r,e,t,i);return r}configure(e){let t=hl(e);if(!t)return this;let{nodeSet:i,skipContextMarkup:r}=this,s=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),l=this.blockNames.slice(),a=this.inlineParsers.slice(),h=this.inlineNames.slice(),c=this.endLeafBlock.slice(),f=this.wrappers;if(Ki(t.defineNodes)){r=Object.assign({},r);let u=i.types.slice(),d;for(let O of t.defineNodes){let{name:m,block:g,composite:b,style:S}=typeof O=="string"?{name:O}:O;if(u.some(k=>k.name==m))continue;b&&(r[u.length]=(k,C,v)=>b(C,v,k.value));let x=u.length,w=b?["Block","BlockContext"]:g?x>=Q.ATXHeading1&&x<=Q.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;u.push(le.define({id:x,name:m,props:w&&[[X.group,w]]})),S&&(d||(d={}),Array.isArray(S)||S instanceof Ne?d[m]=S:Object.assign(d,S))}i=new Yi(u),d&&(i=i.extend(oi(d)))}if(Ki(t.props)&&(i=i.extend(...t.props)),Ki(t.remove))for(let u of t.remove){let d=this.blockNames.indexOf(u),O=this.inlineNames.indexOf(u);d>-1&&(s[d]=o[d]=void 0),O>-1&&(a[O]=void 0)}if(Ki(t.parseBlock))for(let u of t.parseBlock){let d=l.indexOf(u.name);if(d>-1)s[d]=u.parse,o[d]=u.leaf;else{let O=u.before?mr(l,u.before):u.after?mr(l,u.after)+1:l.length-1;s.splice(O,0,u.parse),o.splice(O,0,u.leaf),l.splice(O,0,u.name)}u.endLeaf&&c.push(u.endLeaf)}if(Ki(t.parseInline))for(let u of t.parseInline){let d=h.indexOf(u.name);if(d>-1)a[d]=u.parse;else{let O=u.before?mr(h,u.before):u.after?mr(h,u.after)+1:h.length-1;a.splice(O,0,u.parse),h.splice(O,0,u.name)}}return t.wrap&&(f=f.concat(t.wrap)),new ks(i,s,o,l,c,r,a,h,f)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let i=new rw(this,e,t);e:for(let r=t;r=0){r=l;continue e}}r++}return i.resolveMarkers(0)}}function Ki(n){return n!=null&&n.length>0}function hl(n){if(!Array.isArray(n))return n;if(n.length==0)return null;let e=hl(n[0]);if(n.length==1)return e;let t=hl(n.slice(1));if(!t||!e)return e||t;let i=(o,l)=>(o||Ei).concat(l||Ei),r=e.wrap,s=t.wrap;return{props:i(e.props,t.props),defineNodes:i(e.defineNodes,t.defineNodes),parseBlock:i(e.parseBlock,t.parseBlock),parseInline:i(e.parseInline,t.parseInline),remove:i(e.remove,t.remove),wrap:r?s?(o,l,a,h)=>r(s(o,l,a,h),l,a,h):r:s}}function mr(n,e){let t=n.indexOf(e);if(t<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return t}let bp=[le.none];for(let n=1,e;e=Q[n];n++)bp[n]=le.define({id:n,name:e,props:n>=Q.Escape?[]:[[X.group,n in ap?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const Ei=[];class Sp{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,i,r=0){return this.content.push(e,t,i,4+r*4),this}writeElements(e,t=0){for(let i of e)i.writeTo(this,t);return this}finish(e,t){return D.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}}class Mn{constructor(e,t,i,r=Ei){this.type=e,this.from=t,this.to=i,this.children=r}writeTo(e,t){let i=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-i)}toTree(e){return new Sp(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}}class yp{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Ei}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}}function _(n,e,t,i){return new Mn(n,e,t,i)}const kp={resolve:"Emphasis",mark:"EmphasisMark"},xp={resolve:"Emphasis",mark:"EmphasisMark"},di={},cl={};class qe{constructor(e,t,i,r){this.type=e,this.from=t,this.to=i,this.side=r}}const Yc="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Wn=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Wn=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const no={Escape(n,e,t){if(e!=92||t==n.end-1)return-1;let i=n.char(t+1);for(let r=0;r]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(i);if(r)return n.append(_(Q.Autolink,t,t+1+r[0].length,[_(Q.LinkMark,t,t+1),_(Q.URL,t+1,t+r[0].length),_(Q.LinkMark,t+r[0].length,t+1+r[0].length)]));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(i);if(s)return n.append(_(Q.Comment,t,t+1+s[0].length));let o=/^\?[^]*?\?>/.exec(i);if(o)return n.append(_(Q.ProcessingInstruction,t,t+1+o[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(i);return l?n.append(_(Q.HTMLTag,t,t+1+l[0].length)):-1},Emphasis(n,e,t){if(e!=95&&e!=42)return-1;let i=t+1;for(;n.char(i)==e;)i++;let r=n.slice(t-1,t),s=n.slice(i,i+1),o=Wn.test(r),l=Wn.test(s),a=/\s|^$/.test(r),h=/\s|^$/.test(s),c=!h&&(!l||a||o),f=!a&&(!o||h||l),u=c&&(e==42||!f||o),d=f&&(e==42||!c||l);return n.append(new qe(e==95?kp:xp,t,i,(u?1:0)|(d?2:0)))},HardBreak(n,e,t){if(e==92&&n.char(t+1)==10)return n.append(_(Q.HardBreak,t,t+2));if(e==32){let i=t+1;for(;n.char(i)==32;)i++;if(n.char(i)==10&&i>=t+2)return n.append(_(Q.HardBreak,t,i+1))}return-1},Link(n,e,t){return e==91?n.append(new qe(di,t,t+1,1)):-1},Image(n,e,t){return e==33&&n.char(t+1)==91?n.append(new qe(cl,t,t+2,1)):-1},LinkEnd(n,e,t){if(e!=93)return-1;for(let i=n.parts.length-1;i>=0;i--){let r=n.parts[i];if(r instanceof qe&&(r.type==di||r.type==cl)){if(!r.side||n.skipSpace(r.to)==t&&!/[(\[]/.test(n.slice(t+1,t+2)))return n.parts[i]=null,-1;let s=n.takeContent(i),o=n.parts[i]=nw(n,s,r.type==di?Q.Link:Q.Image,r.from,t+1);if(r.type==di)for(let l=0;le?_(Q.URL,e+t,s+t):s==n.length?null:!1}}function Qp(n,e,t){let i=n.charCodeAt(e);if(i!=39&&i!=34&&i!=40)return!1;let r=i==40?41:i;for(let s=e+1,o=!1;s=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,i,r,s){return this.append(new qe(e,t,i,(r?1:0)|(s?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof qe&&(t.type==di||t.type==cl))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let i=e;i=e;a--){let m=this.parts[a];if(m instanceof qe&&m.side&1&&m.type==r.type&&!(s&&(r.side&1||m.side&2)&&(m.to-m.from+o)%3==0&&((m.to-m.from)%3||o%3))){l=m;break}}if(!l)continue;let h=r.type.resolve,c=[],f=l.from,u=r.to;if(s){let m=Math.min(2,l.to-l.from,o);f=l.to-m,u=r.from+m,h=m==1?"Emphasis":"StrongEmphasis"}l.type.mark&&c.push(this.elt(l.type.mark,f,l.to));for(let m=a+1;m=0;t--){let i=this.parts[t];if(i instanceof qe&&i.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return fn(this.text,e-this.offset)+this.offset}elt(e,t,i,r){return typeof e=="string"?_(this.parser.getNodeType(e),t,i,r):new yp(e,t)}}function fl(n,e){if(!e.length)return n;if(!n.length)return e;let t=n.slice(),i=0;for(let r of e){for(;i(e?e-1:0))return!1;if(this.fragmentEnd<0){let s=this.fragment.to;for(;s>0&&this.input.read(s-1,s)!=` -`;)s--;this.fragmentEnd=s?s-1:0}let i=this.cursor;i||(i=this.cursor=this.fragment.tree.cursor(),i.firstChild());let r=e+this.fragment.offset;for(;i.to<=r;)if(!i.parent())return!1;for(;;){if(i.from>=r)return this.fragment.from<=t;if(!i.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(X.contextHash)==e}takeNodes(e){let t=this.cursor,i=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,o=s,l=e.block.children.length,a=o,h=l;for(;;){if(t.to-i>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let c=$p(t.from-i,e.ranges);if(t.to-i<=e.ranges[e.rangeI].to)e.addNode(t.tree,c);else{let f=new D(e.parser.nodeSet.types[Q.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,t.tree),e.addNode(f,c)}if(t.type.is("Block")&&(sw.indexOf(t.type.id)<0?(o=t.to-i,l=e.block.children.length):(o=a,l=h,a=t.to-i,h=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>l;)e.block.children.pop(),e.block.positions.pop();return o-s}}function $p(n,e){let t=n;for(let i=1;ipr[n]),Object.keys(pr).map(n=>Jx[n]),Object.keys(pr),ew,ap,Object.keys(no).map(n=>no[n]),Object.keys(no),[]);function hw(n,e,t){let i=[];for(let r=n.firstChild,s=e;;r=r.nextSibling){let o=r?r.from:t;if(o>s&&i.push({from:s,to:o}),!r)break;s=r.to}return i}function cw(n){let{codeParser:e,htmlParser:t}=n;return{wrap:Vu((r,s)=>{let o=r.type.id;if(e&&(o==Q.CodeBlock||o==Q.FencedCode)){let l="";if(o==Q.FencedCode){let h=r.node.getChild(Q.CodeInfo);h&&(l=s.read(h.from,h.to))}let a=e(l);if(a)return{parser:a,overlay:h=>h.type.id==Q.CodeText}}else if(t&&(o==Q.HTMLBlock||o==Q.HTMLTag))return{parser:t,overlay:hw(r.node,r.from,r.to)};return null})}}const fw={resolve:"Strikethrough",mark:"StrikethroughMark"},uw={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":p.strikethrough}},{name:"StrikethroughMark",style:p.processingInstruction}],parseInline:[{name:"Strikethrough",parse(n,e,t){if(e!=126||n.char(t+1)!=126||n.char(t+2)==126)return-1;let i=n.slice(t-1,t),r=n.slice(t+2,t+3),s=/\s|^$/.test(i),o=/\s|^$/.test(r),l=Wn.test(i),a=Wn.test(r);return n.addDelimiter(fw,t,t+2,!o&&(!a||s||l),!s&&(!l||o||a))},after:"Emphasis"}]};function un(n,e,t=0,i,r=0){let s=0,o=!0,l=-1,a=-1,h=!1,c=()=>{i.push(n.elt("TableCell",r+l,r+a,n.parser.parseInline(e.slice(l,a),r+l)))};for(let f=t;f-1)&&s++,o=!1,i&&(l>-1&&c(),i.push(n.elt("TableDelimiter",f+r,f+r+1))),l=a=-1):(h||u!=32&&u!=9)&&(l<0&&(l=f),a=f+1),h=!h&&u==92}return l>-1&&(s++,i&&c()),s}function Dc(n,e){for(let t=e;tr instanceof qc)||!Dc(e.text,e.basePos))return!1;let i=n.scanLine(n.absoluteLineEnd+1).text;return vp.test(i)&&un(n,e.text,e.basePos)==un(n,i,e.basePos)},before:"SetextHeading"}]};class Ow{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const pw={defineNodes:[{name:"Task",block:!0,style:p.list},{name:"TaskMarker",style:p.atom}],parseBlock:[{name:"TaskList",leaf(n,e){return/^\[[ xX]\][ \t]/.test(e.content)&&n.parentType().name=="ListItem"?new Ow:null},after:"SetextHeading"}]},zc=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,_c=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,mw=/[\w-]+\.[\w-]+($|\/)/,Lc=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Bc=/\/[a-zA-Z\d@.]+/gy;function Uc(n,e,t,i){let r=0;for(let s=e;s-1)return-1;let i=e+t[0].length;for(;;){let r=n[i-1],s;if(/[?!.,:*_~]/.test(r)||r==")"&&Uc(n,e,i,")")>Uc(n,e,i,"("))i--;else if(r==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(n.slice(e,i))))i=e+s.index;else break}return i}function Ic(n,e){Lc.lastIndex=e;let t=Lc.exec(n);if(!t)return-1;let i=t[0][t[0].length-1];return i=="_"||i=="-"?-1:e+t[0].length-(i=="."?1:0)}const bw={parseInline:[{name:"Autolink",parse(n,e,t){let i=t-n.offset;zc.lastIndex=i;let r=zc.exec(n.text),s=-1;if(!r)return-1;if(r[1]||r[2]){if(s=gw(n.text,i+r[0].length),s>-1&&n.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(n.text.slice(i,s));s=i+o[0].length}}else r[3]?s=Ic(n.text,i):(s=Ic(n.text,i+r[0].length),s>-1&&r[0]=="xmpp:"&&(Bc.lastIndex=s,r=Bc.exec(n.text),r&&(s=r.index+r[0].length)));return s<0?-1:(n.addElement(n.elt("URL",t,s+n.offset)),s+n.offset)}}]},Sw=[dw,pw,uw,bw];function Cp(n,e,t){return(i,r,s)=>{if(r!=n||i.char(s+1)==n)return-1;let o=[i.elt(t,s,s+1)];for(let l=s+1;l"}}}),Tp=new X,Rp=aw.configure({props:[li.add(n=>!n.is("Block")||n.is("Document")||ul(n)!=null||ww(n)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),Tp.add(ul),qi.add({Document:()=>null}),Xt.add({Document:Zp})]});function ul(n){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(n.name);return e?+e[1]:void 0}function ww(n){return n.name=="OrderedList"||n.name=="BulletList"}function Qw(n,e){let t=n;for(;;){let i=t.nextSibling,r;if(!i||(r=ul(i.type))!=null&&r<=e)break;t=i}return t.to}const Pw=Bu.of((n,e,t)=>{for(let i=F(n).resolveInner(t,-1);i&&!(i.fromt)return{from:t,to:s}}return null});function ua(n){return new Ee(Zp,n,[Pw],"markdown")}const $w=ua(Rp),vw=Rp.configure([Sw,kw,yw,xw,{props:[li.add({Table:(n,e)=>({from:e.doc.lineAt(n.from).to,to:n.to})})]}]),Ap=ua(vw);function Cw(n,e){return t=>{if(t&&n){let i=null;if(t=/\S*/.exec(t)[0],typeof n=="function"?i=n(t):i=zr.matchLanguageName(n,t,!0),i instanceof zr)return i.support?i.support.language.parser:ii.getSkippingParser(i.load());if(i)return i.parser}return e?e.parser:null}}class gr{constructor(e,t,i,r,s,o,l){this.node=e,this.from=t,this.to=i,this.spaceBefore=r,this.spaceAfter=s,this.type=o,this.item=l}blank(e,t=!0){let i=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;i.length0;r--)i+=" ";return i+(t?this.spaceAfter:"")}}marker(e,t){let i=this.node.name=="OrderedList"?String(+Mp(this.item,e)[2]+t):"";return this.spaceBefore+i+this.type+this.spaceAfter}}function Xp(n,e){let t=[];for(let r=n;r&&r.name!="Document";r=r.parent)(r.name=="ListItem"||r.name=="Blockquote"||r.name=="FencedCode")&&t.push(r);let i=[];for(let r=t.length-1;r>=0;r--){let s=t[r],o,l=e.lineAt(s.from),a=s.from-l.from;if(s.name=="FencedCode")i.push(new gr(s,a,a,"","","",null));else if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(l.text.slice(a))))i.push(new gr(s,a,a+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(l.text.slice(a)))){let h=o[3],c=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),c-=4),i.push(new gr(s.parent,a,a+c,o[1],h,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(l.text.slice(a)))){let h=o[4],c=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),c-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),i.push(new gr(s.parent,a,a+c,o[1],h,f,s))}}return i}function Mp(n,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(n.from,n.from+10))}function ro(n,e,t,i=0){for(let r=-1,s=n;;){if(s.name=="ListItem"){let l=Mp(s,e),a=+l[2];if(r>=0){if(a!=r+1)return;t.push({from:s.from+l[1].length,to:s.from+l[0].length,insert:String(r+2+i)})}r=a}let o=s.nextSibling;if(!o)break;s=o}}function da(n,e){let t=/^[ \t]*/.exec(n)[0].length;if(!t||e.facet(Di)!=" ")return n;let i=Ge(n,4,t),r="";for(let s=i;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+n.slice(t)}const Zw=({state:n,dispatch:e})=>{let t=F(n),{doc:i}=n,r=null,s=n.changeByRange(o=>{if(!o.empty||!Ap.isActiveAt(n,o.from))return r={range:o};let l=o.from,a=i.lineAt(l),h=Xp(t.resolveInner(l,-1),i);for(;h.length&&h[h.length-1].from>l-a.from;)h.pop();if(!h.length)return r={range:o};let c=h[h.length-1];if(c.to-c.spaceAfter.length>l-a.from)return r={range:o};let f=l>=c.to-c.spaceAfter.length&&!/\S/.test(a.text.slice(c.to));if(c.item&&f){let g=c.node.firstChild,b=c.node.getChild("ListItem","ListItem");if(g.to>=l||b&&b.to0&&!/[^\s>]/.test(i.lineAt(a.from-1).text)){let S=h.length>1?h[h.length-2]:null,x,w="";S&&S.item?(x=a.from+S.from,w=S.marker(i,1)):x=a.from+(S?S.to:0);let k=[{from:x,to:l,insert:w}];return c.node.name=="OrderedList"&&ro(c.item,i,k,-2),S&&S.node.name=="OrderedList"&&ro(S.item,i,k),{range:y.cursor(x+w.length),changes:k}}else{let S=Nc(h,n,a);return{range:y.cursor(l+S.length+1),changes:{from:a.from,insert:S+n.lineBreak}}}}if(c.node.name=="Blockquote"&&f&&a.from){let g=i.lineAt(a.from-1),b=/>\s*$/.exec(g.text);if(b&&b.index==c.from){let S=n.changes([{from:g.from+b.index,to:g.to},{from:a.from+c.from,to:a.to}]);return{range:o.map(S),changes:S}}}let u=[];c.node.name=="OrderedList"&&ro(c.item,i,u);let d=c.item&&c.item.from]*/.exec(a.text)[0].length>=c.to)for(let g=0,b=h.length-1;g<=b;g++)O+=g==b&&!d?h[g].marker(i,1):h[g].blank(ga.from&&/\s/.test(a.text.charAt(m-a.from-1));)m--;return O=da(O,n),Tw(c.node,n.doc)&&(O=Nc(h,n,a)+n.lineBreak+O),u.push({from:m,to:l,insert:n.lineBreak+O}),{range:y.cursor(m+O.length+1),changes:u}});return r?!1:(e(n.update(s,{scrollIntoView:!0,userEvent:"input"})),!0)};function jc(n){return n.name=="QuoteMark"||n.name=="ListMark"}function Tw(n,e){if(n.name!="OrderedList"&&n.name!="BulletList")return!1;let t=n.firstChild,i=n.getChild("ListItem","ListItem");if(!i)return!1;let r=e.lineAt(t.to),s=e.lineAt(i.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1){let t=F(n),i=null,r=n.changeByRange(s=>{let o=s.from,{doc:l}=n;if(s.empty&&Ap.isActiveAt(n,s.from)){let a=l.lineAt(o),h=Xp(Rw(t,o),l);if(h.length){let c=h[h.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(o-a.from>f&&!/\S/.test(a.text.slice(f,o-a.from)))return{range:y.cursor(a.from+f),changes:{from:a.from+f,to:o}};if(o-a.from==f&&(!c.item||a.from<=c.item.from||!/\S/.test(a.text.slice(0,c.to)))){let u=a.from+c.from;if(c.item&&c.node.from1&&n.eat("$");var t=n.next();return/['"({]/.test(t)?(e.tokens[0]=xs(t,t=="("?"quote":t=="{"?"def":"string"),Vi(n,e)):(/\d/.test(t)||n.eatWhile(/\w/),e.tokens.shift(),"def")};function Lw(n){return function(e,t){return e.sol()&&e.string==n&&t.tokens.shift(),e.skipToEnd(),"string.special"}}function Vi(n,e){return(e.tokens[0]||zw)(n,e)}const Bw={name:"shell",startState:function(){return{tokens:[]}},token:function(n,e){return Vi(n,e)},languageData:{autocomplete:Wp.concat(Ep,Vp),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}};var Uw=["true","false","on","off","yes","no"],Iw=new RegExp("\\b(("+Uw.join(")|(")+"))$","i");const jw={name:"yaml",token:function(n,e){var t=n.peek(),i=e.escaped;if(e.escaped=!1,t=="#"&&(n.pos==0||/\s/.test(n.string.charAt(n.pos-1))))return n.skipToEnd(),"comment";if(n.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(e.literal&&n.indentation()>e.keyCol)return n.skipToEnd(),"string";if(e.literal&&(e.literal=!1),n.sol()){if(e.keyCol=0,e.pair=!1,e.pairStart=!1,n.match("---")||n.match("..."))return"def";if(n.match(/^\s*-\s+/))return"meta"}if(n.match(/^(\{|\}|\[|\])/))return t=="{"?e.inlinePairs++:t=="}"?e.inlinePairs--:t=="["?e.inlineList++:e.inlineList--,"meta";if(e.inlineList>0&&!i&&t==",")return n.next(),"meta";if(e.inlinePairs>0&&!i&&t==",")return e.keyCol=0,e.pair=!1,e.pairStart=!1,n.next(),"meta";if(e.pairStart){if(n.match(/^\s*(\||\>)\s*/))return e.literal=!0,"meta";if(n.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(e.inlinePairs==0&&n.match(/^\s*-?[0-9\.\,]+\s?$/)||e.inlinePairs>0&&n.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(n.match(Iw))return"keyword"}return!e.pair&&n.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(e.pair=!0,e.keyCol=n.indentation(),"atom"):e.pair&&n.match(/^:\s*/)?(e.pairStart=!0,"meta"):(e.pairStart=!1,e.escaped=t=="\\",n.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}};var Gc,Fc,Hc;function Kc({view:n,searchConfig:e}){const t=sf.useState(""),i=_p(t,2),r=i[0],s=i[1],o=(u,d)=>{s(d),l(d)},l=u=>{n.dispatch({effects:Ai.of(new Il({search:u}))})},a=u=>{u.key==="Enter"&&(u.shiftKey?f():c())},h=u=>{u.key==="Escape"&&Gl(n)},c=()=>{l(r),Cn(n)},f=()=>{l(r),Zn(n)};return st.createElement(Hp,{renderLabel:"",inputRef:u=>{setTimeout(()=>u==null?void 0:u.focus(),0)},size:"small",display:"inline-block",width:"20rem",placeholder:e.placeholder,onChange:o,onKeyDown:a,onKeyUp:h,renderBeforeInput:Gc||(Gc=st.createElement(em,{size:"x-small"})),renderAfterInput:st.createElement("span",null,st.createElement(ma,{size:"small",withBorder:!1,withBackground:!1,onClick:c,screenReaderLabel:e.nextResultLabel},Fc||(Fc=st.createElement(Kp,null))),st.createElement(ma,{size:"small",withBorder:!1,withBackground:!1,onClick:f,screenReaderLabel:e.prevResultLabel},Hc||(Hc=st.createElement(Jp,null))))})}function Nw(n){return n?kS({createPanel:e=>{var t;const i=document.createElement("div");return i.style.padding="8px",Number(st.version.split(".")[0])>=18?qp(()=>import("./index-Co1on5ja.js").then(s=>s.c),__vite__mapDeps([0,1])).then(s=>{s.createRoot(i).render(t||(t=st.createElement(Kc,{view:e,searchConfig:n})))}).catch(s=>{}):zp.render(st.createElement(Kc,{view:e,searchConfig:n}),i),{dom:i}}}):[]}const Gw=(n,e)=>{const t=e.attachment,i=e.height,r=e.width,s={top:{borderBottomLeftRadius:0,borderBottomRightRadius:0},bottom:{borderTopLeftRadius:0,borderTopRightRadius:0}},o={top:{marginBottom:0,marginTop:"0.25rem"},bottom:{borderTopLeftRadius:0,borderTopRightRadius:0,marginBottom:"0.25rem"}},l=1.4375;return{codeEditor:{label:"codeEditor",position:"relative",boxSizing:"border-box",height:i||"auto",width:r},label:{label:"label",height:"100%",width:"100%"},codeEditorContainer:{label:"codeEditorContainer",height:"100%",width:"100%",borderColor:n==null?void 0:n.borderColor,borderStyle:"solid",borderWidth:n==null?void 0:n.borderWidth,borderRadius:n.borderRadius,marginBottom:"1rem",...t&&{...o[t],...s[t]}},theme:{"&":{overflow:"hidden",background:n.background,fontFamily:n.fontFamily,fontSize:n.fontSize,color:n.color,border:0,height:"100%",width:"100%",minHeight:`${l}rem`,lineHeight:l,borderRadius:n.borderRadius,...t&&{...s[t]}},"&.cm-editor.cm-focused":{outline:`${n==null?void 0:n.borderWidth} solid ${n==null?void 0:n.focusBorderColor}`},".cm-content":{padding:`${n.verticalPadding} 0`},".cm-scroller":{fontFamily:n.fontFamily,lineHeight:1.4375},".cm-gutters":{background:n.gutterBackground,borderColor:n.borderColor},".cm-line":{padding:`0 ${n.horizontalPadding}`},".cm-selectionBackground":{background:"transparent"},".cm-focused .cm-selectionBackground":{background:"#d7d4f0"},".cm-placeholder":{color:"#707070"}},highlightStyle:[{tag:p.link,textDecoration:"underline"},{tag:p.heading,textDecoration:"underline",fontWeight:"bold"},{tag:p.emphasis,fontStyle:"italic"},{tag:p.strong,fontWeight:"bold"},{tag:p.strikethrough,textDecoration:"line-through"},{tag:p.keyword,color:"#708"},{tag:[p.atom,p.bool,p.url,p.contentSeparator,p.labelName],color:"#219"},{tag:[p.literal,p.inserted],color:"#164"},{tag:[p.string,p.deleted],color:"#a11"},{tag:p.definition(p.variableName),color:"#00f"},{tag:p.local(p.variableName),color:"#30a"},{tag:p.className,color:"#167"},{tag:[p.special(p.variableName),p.macroName],color:"#256"},{tag:p.definition(p.propertyName),color:"#00c"},{tag:p.comment,color:"#940"},{tag:p.meta,color:"#757075"},{tag:[p.regexp,p.escape,p.special(p.string)],color:"#d13b00"},{tag:[p.typeName,p.namespace],color:"#008051"},{tag:p.invalid,color:"#e60000"}]}},Fw=n=>{var e,t,i,r,s;const o=n.colors,l=n.borders,a=n.typography,h=n.spacing;return{...{fontFamily:a==null?void 0:a.fontFamilyMonospace,fontSize:a==null?void 0:a.fontSizeSmall,background:o==null||(e=o.contrasts)===null||e===void 0?void 0:e.white1010,color:o==null||(t=o.contrasts)===null||t===void 0?void 0:t.grey125125,gutterBackground:o==null||(i=o.contrasts)===null||i===void 0?void 0:i.grey1111,borderWidth:l==null?void 0:l.widthSmall,borderColor:o==null||(r=o.contrasts)===null||r===void 0?void 0:r.grey1214,borderRadius:l==null?void 0:l.radiusMedium,focusBorderColor:o==null||(s=o.contrasts)===null||s===void 0?void 0:s.blue4570,horizontalPadding:h==null?void 0:h.xSmall,verticalPadding:h==null?void 0:h.xxSmall}}},Jc=[{key:"ArrowLeft",run:ea,shift:ia,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Yd,shift:Jd},{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:qd,shift:tO},{mac:"Cmd-ArrowLeft",run:Gd,shift:hO},{key:"Home",run:Id,shift:oO},{key:"ArrowRight",run:Jl,shift:ta,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Vd,shift:Kd},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Dd,shift:eO},{mac:"Cmd-ArrowRight",run:Nd,shift:aO},{key:"End",run:jd,shift:lO},{key:"Delete",run:Kr},{key:"Mod-Delete",mac:"Alt-Delete",run:na},{key:"Backspace",run:Jr,shift:Jr},{key:"Mod-Backspace",mac:"Alt-Backspace",run:uO},{mac:"Mod-Delete",run:fy},{mac:"Mod-Backspace",run:dO}],Hw={label:j.string.isRequired,language:j.oneOf(["sh","js","json","javascript","jsx","shell","css","html","markdown","yaml","yml","bash"]),readOnly:j.bool,editable:j.bool,lineNumbers:j.bool,foldGutter:j.bool,highlightActiveLineGutter:j.bool,highlightActiveLine:j.bool,lineWrapping:j.bool,autofocus:j.bool,spellcheck:j.bool,direction:j.oneOf(["ltr","rtl"]),rtlMoveVisually:j.bool,indentOnLoad:j.bool,indentWithTab:j.bool,indentUnit:j.string,defaultValue:j.string,value:tm(j.string,"onChange","defaultValue"),onChange:j.func,onFocus:j.func,onBlur:j.func,attachment:j.oneOf(["bottom","top"]),height:j.string,width:j.string,elementRef:j.func,containerRef:j.func,searchConfig:j.object},Kw=["label","language","readOnly","editable","lineNumbers","foldGutter","highlightActiveLineGutter","highlightActiveLine","lineWrapping","autofocus","spellcheck","direction","rtlMoveVisually","indentOnLoad","indentWithTab","indentUnit","defaultValue","value","onChange","onFocus","onBlur","attachment","height","width","elementRef","containerRef","searchConfig"],Jw=["label","styles"];var ef,tf,nf,rf,Pt,It;let fQ=(ef=Lp(),tf=Bp(Gw,Fw),nf=Up(),rf=Ip(),ef(Pt=tf(Pt=nf(Pt=rf(Pt=(It=class Dp extends sf.Component{addAnimationFrame(e){typeof e=="function"&&this._raf.push(im(e))}cancelAnimationFrames(){this._raf.forEach(e=>e.cancel()),this._raf=[]}focus(){this.addAnimationFrame(()=>{var e;(e=this._editorView)===null||e===void 0||e.focus()})}get hasFocus(){var e;return(e=this._editorView)===null||e===void 0?void 0:e.hasFocus}selectAll(){this._editorView&&this.addAnimationFrame(()=>{var e;this.dispatchViewSelection({anchor:0,head:(e=this.currentDocValue)===null||e===void 0?void 0:e.length})})}deselectAll(){this._editorView&&this.addAnimationFrame(()=>{this.dispatchViewSelection({anchor:0,head:0})})}indentCurrentSelection(){this.addAnimationFrame(()=>{this._editorView&&gO({state:this._editorView.state,dispatch:e=>{var t;(t=this._editorView)===null||t===void 0||t.update([e])}})})}indentAll(){this.addAnimationFrame(()=>{this._editorView&&this.currentDocValue&&this.indentCodeRange(0,this.currentDocValue.length)})}indentCodeRange(e,t){this.addAnimationFrame(()=>{this._editorView&&this.currentDocValue&&this.dispatchViewChanges({changes:kb(this._editorView.state,e,t)})})}dispatchViewEffects(e){!this._editorView||!e||this._editorView.dispatch({effects:e})}dispatchViewChanges({changes:e,selection:t,userEvent:i}){!this._editorView||!e||this._editorView.dispatch({changes:e,...t?{selection:t}:void 0,...i?{userEvent:i}:void 0})}dispatchViewSelection(e){!this._editorView||!e||this._editorView.dispatch({selection:e})}get currentDocValue(){var e;return(e=this._editorView)===null||e===void 0?void 0:e.state.doc}get isControlled(){return typeof this.props.value=="string"}constructor(e){super(e),this._id=void 0,this.ref=null,this._containerRef=void 0,this._editorView=void 0,this._raf=[],this._newSelectionAfterValueChange=void 0,this.handleRef=t=>{const i=this.props.elementRef;this.ref=t,typeof i=="function"&&i(t)},this.handleContainerRef=t=>{const i=this.props.containerRef;this._containerRef=t||void 0,typeof i=="function"&&i(t)},this._id=e.deterministicId()}componentDidMount(){var e,t;const i=this.props,r=i.value,s=i.defaultValue,o=i.autofocus,l=i.indentOnLoad;(e=(t=this.props).makeStyles)===null||e===void 0||e.call(t);const a=Y.create({doc:r||s,extensions:this.extensions});this._editorView=new $({state:a,parent:this._containerRef}),o&&this.focus(),l&&this.indentAll()}componentWillUnmount(){var e;(e=this._editorView)===null||e===void 0||e.destroy(),this.cancelAnimationFrames()}componentDidUpdate(e){var t,i;(t=(i=this.props).makeStyles)===null||t===void 0||t.call(i),this._editorView&&(this.props.value!==e.value&&this.refreshEditorValue(),this.shouldUpdateExtensions(e)&&this.refreshExtensions())}shouldUpdateExtensions(e){const t=["styles","themeOverride","language","readOnly","editable","lineNumbers","highlightActiveLineGutter","foldGutter","lineWrapping","autofocus","spellcheck","direction","dir","rtlMoveVisually","indentOnLoad","indentWithTab","indentUnit","highlightActiveLine","attachment"];for(const i of t)if(!jp(this.props[i],e[i]))return!0;return!1}get direction(){return this.props.direction||this.props.dir}get extensions(){const e=[...this.baseExtensions,this.languageExtension,this.onChangeExtension,this.focusListenerExtension,this.announceLineNumberExtension];return this.themeExtension&&e.push(this.themeExtension),this.props.lineNumbers&&e.push(N0()),this.props.highlightActiveLine&&e.push(y0()),this.props.highlightActiveLineGutter&&e.push(H0()),this.props.foldGutter&&e.push(Lb()),this.props.lineWrapping&&e.push($.lineWrapping),this.props.editable===!1&&e.push($.editable.of(!1)),this.props.readOnly&&e.push(Y.readOnly.of(!0)),this.props.spellcheck&&e.push($.contentAttributes.of({spellcheck:"true"})),this.direction&&e.push($.contentAttributes.of({dir:this.direction})),this.props.indentUnit&&e.push(Di.of(this.props.indentUnit)),e}get baseExtensions(){return[O0(),BS(),n0(),a0(),Y.allowMultipleSelections.of(!0),Mh(jb,{fallback:!0}),e1(),N1(),sS(),$0(),Z0(),uS(),Rb(),Nw(this.props.searchConfig),Yn.of(this.keymaps)]}get keymaps(){const e=[...K1,...this.commandKeybinding,...JS,...Db,...yd,...Ey,...this.props.searchConfig?AS:[]];return this.props.indentWithTab&&e.push(vy),e}get commandKeybinding(){const e=this.props.rtlMoveVisually;if(this.direction==="rtl"&&!e){const t=Jc.map(r=>r.key?r.key:r.mac?r.mac:r);return[...sc.filter(r=>r.key?t.indexOf(r.key)<0:r.mac?t.indexOf(r.mac)<0:!1),...Jc]}return sc}get themeExtension(){const e=this.props.styles;if(!(e!=null&&e.theme)||!e.highlightStyle)return;const t=$.theme(e==null?void 0:e.theme),i=Mh(_n.define(e==null?void 0:e.highlightStyle));return[t,i]}get languageExtension(){switch(this.props.language){case"json":return qw();case"js":case"jsx":case"javascript":return rl({jsx:!0,typescript:!0});case"html":return lp({matchClosingTags:!0,autoCloseTags:!0});case"css":return KO();case"markdown":return Mw();case"sh":case"shell":case"bash":return Br.define(Bw);case"yml":case"yaml":return Br.define(jw);default:return rl({jsx:!0,typescript:!0})}}callOnChangeHandler(e){const t=this.props,i=t.onChange,r=t.value;this.addAnimationFrame(()=>{typeof i=="function"&&e!==r&&i(e)})}get onChangeExtension(){return Y.changeFilter.of(e=>{if(!this._editorView)return!1;if(e.docChanged){const t=e.newDoc.toString();if(this.isControlled)return t!==this.props.value?(this._newSelectionAfterValueChange=e.selection,this.cancelAnimationFrames(),this.callOnChangeHandler(t),!1):!0;this.callOnChangeHandler(t)}return!0})}get focusListenerExtension(){const e=this.props,t=e.onFocus,i=e.onBlur;return $.updateListener.of(r=>{r.focusChanged&&this._editorView&&(this.hasFocus?typeof t=="function"&&t():typeof i=="function"&&i())})}get announceLineNumberExtension(){return Y.transactionExtender.of(e=>{const t=e.selection,i=e.startState.selection.main;if(t&&t.main.empty&&i.empty){const r=e.startState.doc.lineAt(i.head),s=e.newDoc.lineAt(t.main.head);if(r.number!=s.number)return{effects:$.announce.of(e.startState.phrase("line ")+s.number+".")}}return null})}refreshExtensions(){this.dispatchViewEffects(M.reconfigure.of(this.extensions))}refreshEditorValue(){if(!this._editorView)return;const e=this.props.value,t=this._editorView.state.doc.toString();if(typeof e<"u"&&t!==e){let i;const r=e.length-t.length;r===1?i="input.type":r===-1&&(i="delete.backward"),this.dispatchViewChanges({changes:{from:0,to:t.length,insert:e||""},selection:this._newSelectionAfterValueChange,userEvent:i}),this._newSelectionAfterValueChange=void 0}this.props.indentOnLoad&&this.indentAll()}render(){const e=this.props,t=e.label,i=e.styles,r=Np(e,Jw);return In("div",Object.assign({ref:this.handleRef,css:i==null?void 0:i.codeEditor},Gp(Fp(r,Dp.allowedProps))),In("label",{css:i==null?void 0:i.label,htmlFor:this._id},In(nm,null,t),In("div",{ref:this.handleContainerRef,css:i==null?void 0:i.codeEditorContainer})))}},It.displayName="SourceCodeEditor",It.componentId="SourceCodeEditor",It.propTypes=Hw,It.allowedProps=Kw,It.defaultProps={language:"jsx",readOnly:!1,editable:!0,lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1,lineWrapping:!1,autofocus:!1,spellcheck:!1,rtlMoveVisually:!0,indentOnLoad:!1,indentWithTab:!1,defaultValue:"",height:"auto"},It))||Pt)||Pt)||Pt)||Pt);export{fQ as S}; +`;)s--;this.fragmentEnd=s?s-1:0}let i=this.cursor;i||(i=this.cursor=this.fragment.tree.cursor(),i.firstChild());let r=e+this.fragment.offset;for(;i.to<=r;)if(!i.parent())return!1;for(;;){if(i.from>=r)return this.fragment.from<=t;if(!i.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(X.contextHash)==e}takeNodes(e){let t=this.cursor,i=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,o=s,l=e.block.children.length,a=o,h=l;for(;;){if(t.to-i>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let c=$p(t.from-i,e.ranges);if(t.to-i<=e.ranges[e.rangeI].to)e.addNode(t.tree,c);else{let f=new D(e.parser.nodeSet.types[Q.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,t.tree),e.addNode(f,c)}if(t.type.is("Block")&&(sw.indexOf(t.type.id)<0?(o=t.to-i,l=e.block.children.length):(o=a,l=h,a=t.to-i,h=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>l;)e.block.children.pop(),e.block.positions.pop();return o-s}}function $p(n,e){let t=n;for(let i=1;ipr[n]),Object.keys(pr).map(n=>Jx[n]),Object.keys(pr),ew,ap,Object.keys(no).map(n=>no[n]),Object.keys(no),[]);function hw(n,e,t){let i=[];for(let r=n.firstChild,s=e;;r=r.nextSibling){let o=r?r.from:t;if(o>s&&i.push({from:s,to:o}),!r)break;s=r.to}return i}function cw(n){let{codeParser:e,htmlParser:t}=n;return{wrap:Vu((r,s)=>{let o=r.type.id;if(e&&(o==Q.CodeBlock||o==Q.FencedCode)){let l="";if(o==Q.FencedCode){let h=r.node.getChild(Q.CodeInfo);h&&(l=s.read(h.from,h.to))}let a=e(l);if(a)return{parser:a,overlay:h=>h.type.id==Q.CodeText}}else if(t&&(o==Q.HTMLBlock||o==Q.HTMLTag))return{parser:t,overlay:hw(r.node,r.from,r.to)};return null})}}const fw={resolve:"Strikethrough",mark:"StrikethroughMark"},uw={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":p.strikethrough}},{name:"StrikethroughMark",style:p.processingInstruction}],parseInline:[{name:"Strikethrough",parse(n,e,t){if(e!=126||n.char(t+1)!=126||n.char(t+2)==126)return-1;let i=n.slice(t-1,t),r=n.slice(t+2,t+3),s=/\s|^$/.test(i),o=/\s|^$/.test(r),l=Wn.test(i),a=Wn.test(r);return n.addDelimiter(fw,t,t+2,!o&&(!a||s||l),!s&&(!l||o||a))},after:"Emphasis"}]};function un(n,e,t=0,i,r=0){let s=0,o=!0,l=-1,a=-1,h=!1,c=()=>{i.push(n.elt("TableCell",r+l,r+a,n.parser.parseInline(e.slice(l,a),r+l)))};for(let f=t;f-1)&&s++,o=!1,i&&(l>-1&&c(),i.push(n.elt("TableDelimiter",f+r,f+r+1))),l=a=-1):(h||u!=32&&u!=9)&&(l<0&&(l=f),a=f+1),h=!h&&u==92}return l>-1&&(s++,i&&c()),s}function Dc(n,e){for(let t=e;tr instanceof qc)||!Dc(e.text,e.basePos))return!1;let i=n.scanLine(n.absoluteLineEnd+1).text;return vp.test(i)&&un(n,e.text,e.basePos)==un(n,i,e.basePos)},before:"SetextHeading"}]};class Ow{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const pw={defineNodes:[{name:"Task",block:!0,style:p.list},{name:"TaskMarker",style:p.atom}],parseBlock:[{name:"TaskList",leaf(n,e){return/^\[[ xX]\][ \t]/.test(e.content)&&n.parentType().name=="ListItem"?new Ow:null},after:"SetextHeading"}]},zc=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,_c=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,mw=/[\w-]+\.[\w-]+($|\/)/,Lc=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Bc=/\/[a-zA-Z\d@.]+/gy;function Uc(n,e,t,i){let r=0;for(let s=e;s-1)return-1;let i=e+t[0].length;for(;;){let r=n[i-1],s;if(/[?!.,:*_~]/.test(r)||r==")"&&Uc(n,e,i,")")>Uc(n,e,i,"("))i--;else if(r==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(n.slice(e,i))))i=e+s.index;else break}return i}function Ic(n,e){Lc.lastIndex=e;let t=Lc.exec(n);if(!t)return-1;let i=t[0][t[0].length-1];return i=="_"||i=="-"?-1:e+t[0].length-(i=="."?1:0)}const bw={parseInline:[{name:"Autolink",parse(n,e,t){let i=t-n.offset;zc.lastIndex=i;let r=zc.exec(n.text),s=-1;if(!r)return-1;if(r[1]||r[2]){if(s=gw(n.text,i+r[0].length),s>-1&&n.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(n.text.slice(i,s));s=i+o[0].length}}else r[3]?s=Ic(n.text,i):(s=Ic(n.text,i+r[0].length),s>-1&&r[0]=="xmpp:"&&(Bc.lastIndex=s,r=Bc.exec(n.text),r&&(s=r.index+r[0].length)));return s<0?-1:(n.addElement(n.elt("URL",t,s+n.offset)),s+n.offset)}}]},Sw=[dw,pw,uw,bw];function Cp(n,e,t){return(i,r,s)=>{if(r!=n||i.char(s+1)==n)return-1;let o=[i.elt(t,s,s+1)];for(let l=s+1;l"}}}),Tp=new X,Rp=aw.configure({props:[li.add(n=>!n.is("Block")||n.is("Document")||ul(n)!=null||ww(n)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),Tp.add(ul),qi.add({Document:()=>null}),Xt.add({Document:Zp})]});function ul(n){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(n.name);return e?+e[1]:void 0}function ww(n){return n.name=="OrderedList"||n.name=="BulletList"}function Qw(n,e){let t=n;for(;;){let i=t.nextSibling,r;if(!i||(r=ul(i.type))!=null&&r<=e)break;t=i}return t.to}const Pw=Bu.of((n,e,t)=>{for(let i=F(n).resolveInner(t,-1);i&&!(i.fromt)return{from:t,to:s}}return null});function ua(n){return new Ee(Zp,n,[Pw],"markdown")}const $w=ua(Rp),vw=Rp.configure([Sw,kw,yw,xw,{props:[li.add({Table:(n,e)=>({from:e.doc.lineAt(n.from).to,to:n.to})})]}]),Ap=ua(vw);function Cw(n,e){return t=>{if(t&&n){let i=null;if(t=/\S*/.exec(t)[0],typeof n=="function"?i=n(t):i=zr.matchLanguageName(n,t,!0),i instanceof zr)return i.support?i.support.language.parser:ii.getSkippingParser(i.load());if(i)return i.parser}return e?e.parser:null}}class gr{constructor(e,t,i,r,s,o,l){this.node=e,this.from=t,this.to=i,this.spaceBefore=r,this.spaceAfter=s,this.type=o,this.item=l}blank(e,t=!0){let i=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;i.length0;r--)i+=" ";return i+(t?this.spaceAfter:"")}}marker(e,t){let i=this.node.name=="OrderedList"?String(+Mp(this.item,e)[2]+t):"";return this.spaceBefore+i+this.type+this.spaceAfter}}function Xp(n,e){let t=[];for(let r=n;r&&r.name!="Document";r=r.parent)(r.name=="ListItem"||r.name=="Blockquote"||r.name=="FencedCode")&&t.push(r);let i=[];for(let r=t.length-1;r>=0;r--){let s=t[r],o,l=e.lineAt(s.from),a=s.from-l.from;if(s.name=="FencedCode")i.push(new gr(s,a,a,"","","",null));else if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(l.text.slice(a))))i.push(new gr(s,a,a+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(l.text.slice(a)))){let h=o[3],c=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),c-=4),i.push(new gr(s.parent,a,a+c,o[1],h,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(l.text.slice(a)))){let h=o[4],c=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),c-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),i.push(new gr(s.parent,a,a+c,o[1],h,f,s))}}return i}function Mp(n,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(n.from,n.from+10))}function ro(n,e,t,i=0){for(let r=-1,s=n;;){if(s.name=="ListItem"){let l=Mp(s,e),a=+l[2];if(r>=0){if(a!=r+1)return;t.push({from:s.from+l[1].length,to:s.from+l[0].length,insert:String(r+2+i)})}r=a}let o=s.nextSibling;if(!o)break;s=o}}function da(n,e){let t=/^[ \t]*/.exec(n)[0].length;if(!t||e.facet(Di)!=" ")return n;let i=Ge(n,4,t),r="";for(let s=i;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+n.slice(t)}const Zw=({state:n,dispatch:e})=>{let t=F(n),{doc:i}=n,r=null,s=n.changeByRange(o=>{if(!o.empty||!Ap.isActiveAt(n,o.from))return r={range:o};let l=o.from,a=i.lineAt(l),h=Xp(t.resolveInner(l,-1),i);for(;h.length&&h[h.length-1].from>l-a.from;)h.pop();if(!h.length)return r={range:o};let c=h[h.length-1];if(c.to-c.spaceAfter.length>l-a.from)return r={range:o};let f=l>=c.to-c.spaceAfter.length&&!/\S/.test(a.text.slice(c.to));if(c.item&&f){let g=c.node.firstChild,b=c.node.getChild("ListItem","ListItem");if(g.to>=l||b&&b.to0&&!/[^\s>]/.test(i.lineAt(a.from-1).text)){let S=h.length>1?h[h.length-2]:null,x,w="";S&&S.item?(x=a.from+S.from,w=S.marker(i,1)):x=a.from+(S?S.to:0);let k=[{from:x,to:l,insert:w}];return c.node.name=="OrderedList"&&ro(c.item,i,k,-2),S&&S.node.name=="OrderedList"&&ro(S.item,i,k),{range:y.cursor(x+w.length),changes:k}}else{let S=Nc(h,n,a);return{range:y.cursor(l+S.length+1),changes:{from:a.from,insert:S+n.lineBreak}}}}if(c.node.name=="Blockquote"&&f&&a.from){let g=i.lineAt(a.from-1),b=/>\s*$/.exec(g.text);if(b&&b.index==c.from){let S=n.changes([{from:g.from+b.index,to:g.to},{from:a.from+c.from,to:a.to}]);return{range:o.map(S),changes:S}}}let u=[];c.node.name=="OrderedList"&&ro(c.item,i,u);let d=c.item&&c.item.from]*/.exec(a.text)[0].length>=c.to)for(let g=0,b=h.length-1;g<=b;g++)O+=g==b&&!d?h[g].marker(i,1):h[g].blank(ga.from&&/\s/.test(a.text.charAt(m-a.from-1));)m--;return O=da(O,n),Tw(c.node,n.doc)&&(O=Nc(h,n,a)+n.lineBreak+O),u.push({from:m,to:l,insert:n.lineBreak+O}),{range:y.cursor(m+O.length+1),changes:u}});return r?!1:(e(n.update(s,{scrollIntoView:!0,userEvent:"input"})),!0)};function jc(n){return n.name=="QuoteMark"||n.name=="ListMark"}function Tw(n,e){if(n.name!="OrderedList"&&n.name!="BulletList")return!1;let t=n.firstChild,i=n.getChild("ListItem","ListItem");if(!i)return!1;let r=e.lineAt(t.to),s=e.lineAt(i.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1){let t=F(n),i=null,r=n.changeByRange(s=>{let o=s.from,{doc:l}=n;if(s.empty&&Ap.isActiveAt(n,s.from)){let a=l.lineAt(o),h=Xp(Rw(t,o),l);if(h.length){let c=h[h.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(o-a.from>f&&!/\S/.test(a.text.slice(f,o-a.from)))return{range:y.cursor(a.from+f),changes:{from:a.from+f,to:o}};if(o-a.from==f&&(!c.item||a.from<=c.item.from||!/\S/.test(a.text.slice(0,c.to)))){let u=a.from+c.from;if(c.item&&c.node.from1&&n.eat("$");var t=n.next();return/['"({]/.test(t)?(e.tokens[0]=xs(t,t=="("?"quote":t=="{"?"def":"string"),Vi(n,e)):(/\d/.test(t)||n.eatWhile(/\w/),e.tokens.shift(),"def")};function Lw(n){return function(e,t){return e.sol()&&e.string==n&&t.tokens.shift(),e.skipToEnd(),"string.special"}}function Vi(n,e){return(e.tokens[0]||zw)(n,e)}const Bw={name:"shell",startState:function(){return{tokens:[]}},token:function(n,e){return Vi(n,e)},languageData:{autocomplete:Wp.concat(Ep,Vp),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}};var Uw=["true","false","on","off","yes","no"],Iw=new RegExp("\\b(("+Uw.join(")|(")+"))$","i");const jw={name:"yaml",token:function(n,e){var t=n.peek(),i=e.escaped;if(e.escaped=!1,t=="#"&&(n.pos==0||/\s/.test(n.string.charAt(n.pos-1))))return n.skipToEnd(),"comment";if(n.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(e.literal&&n.indentation()>e.keyCol)return n.skipToEnd(),"string";if(e.literal&&(e.literal=!1),n.sol()){if(e.keyCol=0,e.pair=!1,e.pairStart=!1,n.match("---")||n.match("..."))return"def";if(n.match(/^\s*-\s+/))return"meta"}if(n.match(/^(\{|\}|\[|\])/))return t=="{"?e.inlinePairs++:t=="}"?e.inlinePairs--:t=="["?e.inlineList++:e.inlineList--,"meta";if(e.inlineList>0&&!i&&t==",")return n.next(),"meta";if(e.inlinePairs>0&&!i&&t==",")return e.keyCol=0,e.pair=!1,e.pairStart=!1,n.next(),"meta";if(e.pairStart){if(n.match(/^\s*(\||\>)\s*/))return e.literal=!0,"meta";if(n.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(e.inlinePairs==0&&n.match(/^\s*-?[0-9\.\,]+\s?$/)||e.inlinePairs>0&&n.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(n.match(Iw))return"keyword"}return!e.pair&&n.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(e.pair=!0,e.keyCol=n.indentation(),"atom"):e.pair&&n.match(/^:\s*/)?(e.pairStart=!0,"meta"):(e.pairStart=!1,e.escaped=t=="\\",n.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}};var Gc,Fc,Hc;function Kc({view:n,searchConfig:e}){const t=sf.useState(""),i=_p(t,2),r=i[0],s=i[1],o=(u,d)=>{s(d),l(d)},l=u=>{n.dispatch({effects:Ai.of(new Il({search:u}))})},a=u=>{u.key==="Enter"&&(u.shiftKey?f():c())},h=u=>{u.key==="Escape"&&Gl(n)},c=()=>{l(r),Cn(n)},f=()=>{l(r),Zn(n)};return st.createElement(Hp,{renderLabel:"",inputRef:u=>{setTimeout(()=>u==null?void 0:u.focus(),0)},size:"small",display:"inline-block",width:"20rem",placeholder:e.placeholder,onChange:o,onKeyDown:a,onKeyUp:h,renderBeforeInput:Gc||(Gc=st.createElement(em,{size:"x-small"})),renderAfterInput:st.createElement("span",null,st.createElement(ma,{size:"small",withBorder:!1,withBackground:!1,onClick:c,screenReaderLabel:e.nextResultLabel},Fc||(Fc=st.createElement(Kp,null))),st.createElement(ma,{size:"small",withBorder:!1,withBackground:!1,onClick:f,screenReaderLabel:e.prevResultLabel},Hc||(Hc=st.createElement(Jp,null))))})}function Nw(n){return n?kS({createPanel:e=>{var t;const i=document.createElement("div");return i.style.padding="8px",Number(st.version.split(".")[0])>=18?qp(()=>import("./index-mQ6522B8.js").then(s=>s.c),__vite__mapDeps([0,1])).then(s=>{s.createRoot(i).render(t||(t=st.createElement(Kc,{view:e,searchConfig:n})))}).catch(s=>{}):zp.render(st.createElement(Kc,{view:e,searchConfig:n}),i),{dom:i}}}):[]}const Gw=(n,e)=>{const t=e.attachment,i=e.height,r=e.width,s={top:{borderBottomLeftRadius:0,borderBottomRightRadius:0},bottom:{borderTopLeftRadius:0,borderTopRightRadius:0}},o={top:{marginBottom:0,marginTop:"0.25rem"},bottom:{borderTopLeftRadius:0,borderTopRightRadius:0,marginBottom:"0.25rem"}},l=1.4375;return{codeEditor:{label:"codeEditor",position:"relative",boxSizing:"border-box",height:i||"auto",width:r},label:{label:"label",height:"100%",width:"100%"},codeEditorContainer:{label:"codeEditorContainer",height:"100%",width:"100%",borderColor:n==null?void 0:n.borderColor,borderStyle:"solid",borderWidth:n==null?void 0:n.borderWidth,borderRadius:n.borderRadius,marginBottom:"1rem",...t&&{...o[t],...s[t]}},theme:{"&":{overflow:"hidden",background:n.background,fontFamily:n.fontFamily,fontSize:n.fontSize,color:n.color,border:0,height:"100%",width:"100%",minHeight:`${l}rem`,lineHeight:l,borderRadius:n.borderRadius,...t&&{...s[t]}},"&.cm-editor.cm-focused":{outline:`${n==null?void 0:n.borderWidth} solid ${n==null?void 0:n.focusBorderColor}`},".cm-content":{padding:`${n.verticalPadding} 0`},".cm-scroller":{fontFamily:n.fontFamily,lineHeight:1.4375},".cm-gutters":{background:n.gutterBackground,borderColor:n.borderColor},".cm-line":{padding:`0 ${n.horizontalPadding}`},".cm-selectionBackground":{background:"transparent"},".cm-focused .cm-selectionBackground":{background:"#d7d4f0"},".cm-placeholder":{color:"#707070"}},highlightStyle:[{tag:p.link,textDecoration:"underline"},{tag:p.heading,textDecoration:"underline",fontWeight:"bold"},{tag:p.emphasis,fontStyle:"italic"},{tag:p.strong,fontWeight:"bold"},{tag:p.strikethrough,textDecoration:"line-through"},{tag:p.keyword,color:"#708"},{tag:[p.atom,p.bool,p.url,p.contentSeparator,p.labelName],color:"#219"},{tag:[p.literal,p.inserted],color:"#164"},{tag:[p.string,p.deleted],color:"#a11"},{tag:p.definition(p.variableName),color:"#00f"},{tag:p.local(p.variableName),color:"#30a"},{tag:p.className,color:"#167"},{tag:[p.special(p.variableName),p.macroName],color:"#256"},{tag:p.definition(p.propertyName),color:"#00c"},{tag:p.comment,color:"#940"},{tag:p.meta,color:"#757075"},{tag:[p.regexp,p.escape,p.special(p.string)],color:"#d13b00"},{tag:[p.typeName,p.namespace],color:"#008051"},{tag:p.invalid,color:"#e60000"}]}},Fw=n=>{var e,t,i,r,s;const o=n.colors,l=n.borders,a=n.typography,h=n.spacing;return{...{fontFamily:a==null?void 0:a.fontFamilyMonospace,fontSize:a==null?void 0:a.fontSizeSmall,background:o==null||(e=o.contrasts)===null||e===void 0?void 0:e.white1010,color:o==null||(t=o.contrasts)===null||t===void 0?void 0:t.grey125125,gutterBackground:o==null||(i=o.contrasts)===null||i===void 0?void 0:i.grey1111,borderWidth:l==null?void 0:l.widthSmall,borderColor:o==null||(r=o.contrasts)===null||r===void 0?void 0:r.grey1214,borderRadius:l==null?void 0:l.radiusMedium,focusBorderColor:o==null||(s=o.contrasts)===null||s===void 0?void 0:s.blue4570,horizontalPadding:h==null?void 0:h.xSmall,verticalPadding:h==null?void 0:h.xxSmall}}},Jc=[{key:"ArrowLeft",run:ea,shift:ia,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Yd,shift:Jd},{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:qd,shift:tO},{mac:"Cmd-ArrowLeft",run:Gd,shift:hO},{key:"Home",run:Id,shift:oO},{key:"ArrowRight",run:Jl,shift:ta,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Vd,shift:Kd},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Dd,shift:eO},{mac:"Cmd-ArrowRight",run:Nd,shift:aO},{key:"End",run:jd,shift:lO},{key:"Delete",run:Kr},{key:"Mod-Delete",mac:"Alt-Delete",run:na},{key:"Backspace",run:Jr,shift:Jr},{key:"Mod-Backspace",mac:"Alt-Backspace",run:uO},{mac:"Mod-Delete",run:fy},{mac:"Mod-Backspace",run:dO}],Hw={label:j.string.isRequired,language:j.oneOf(["sh","js","json","javascript","jsx","shell","css","html","markdown","yaml","yml","bash"]),readOnly:j.bool,editable:j.bool,lineNumbers:j.bool,foldGutter:j.bool,highlightActiveLineGutter:j.bool,highlightActiveLine:j.bool,lineWrapping:j.bool,autofocus:j.bool,spellcheck:j.bool,direction:j.oneOf(["ltr","rtl"]),rtlMoveVisually:j.bool,indentOnLoad:j.bool,indentWithTab:j.bool,indentUnit:j.string,defaultValue:j.string,value:tm(j.string,"onChange","defaultValue"),onChange:j.func,onFocus:j.func,onBlur:j.func,attachment:j.oneOf(["bottom","top"]),height:j.string,width:j.string,elementRef:j.func,containerRef:j.func,searchConfig:j.object},Kw=["label","language","readOnly","editable","lineNumbers","foldGutter","highlightActiveLineGutter","highlightActiveLine","lineWrapping","autofocus","spellcheck","direction","rtlMoveVisually","indentOnLoad","indentWithTab","indentUnit","defaultValue","value","onChange","onFocus","onBlur","attachment","height","width","elementRef","containerRef","searchConfig"],Jw=["label","styles"];var ef,tf,nf,rf,Pt,It;let fQ=(ef=Lp(),tf=Bp(Gw,Fw),nf=Up(),rf=Ip(),ef(Pt=tf(Pt=nf(Pt=rf(Pt=(It=class Dp extends sf.Component{addAnimationFrame(e){typeof e=="function"&&this._raf.push(im(e))}cancelAnimationFrames(){this._raf.forEach(e=>e.cancel()),this._raf=[]}focus(){this.addAnimationFrame(()=>{var e;(e=this._editorView)===null||e===void 0||e.focus()})}get hasFocus(){var e;return(e=this._editorView)===null||e===void 0?void 0:e.hasFocus}selectAll(){this._editorView&&this.addAnimationFrame(()=>{var e;this.dispatchViewSelection({anchor:0,head:(e=this.currentDocValue)===null||e===void 0?void 0:e.length})})}deselectAll(){this._editorView&&this.addAnimationFrame(()=>{this.dispatchViewSelection({anchor:0,head:0})})}indentCurrentSelection(){this.addAnimationFrame(()=>{this._editorView&&gO({state:this._editorView.state,dispatch:e=>{var t;(t=this._editorView)===null||t===void 0||t.update([e])}})})}indentAll(){this.addAnimationFrame(()=>{this._editorView&&this.currentDocValue&&this.indentCodeRange(0,this.currentDocValue.length)})}indentCodeRange(e,t){this.addAnimationFrame(()=>{this._editorView&&this.currentDocValue&&this.dispatchViewChanges({changes:kb(this._editorView.state,e,t)})})}dispatchViewEffects(e){!this._editorView||!e||this._editorView.dispatch({effects:e})}dispatchViewChanges({changes:e,selection:t,userEvent:i}){!this._editorView||!e||this._editorView.dispatch({changes:e,...t?{selection:t}:void 0,...i?{userEvent:i}:void 0})}dispatchViewSelection(e){!this._editorView||!e||this._editorView.dispatch({selection:e})}get currentDocValue(){var e;return(e=this._editorView)===null||e===void 0?void 0:e.state.doc}get isControlled(){return typeof this.props.value=="string"}constructor(e){super(e),this._id=void 0,this.ref=null,this._containerRef=void 0,this._editorView=void 0,this._raf=[],this._newSelectionAfterValueChange=void 0,this.handleRef=t=>{const i=this.props.elementRef;this.ref=t,typeof i=="function"&&i(t)},this.handleContainerRef=t=>{const i=this.props.containerRef;this._containerRef=t||void 0,typeof i=="function"&&i(t)},this._id=e.deterministicId()}componentDidMount(){var e,t;const i=this.props,r=i.value,s=i.defaultValue,o=i.autofocus,l=i.indentOnLoad;(e=(t=this.props).makeStyles)===null||e===void 0||e.call(t);const a=Y.create({doc:r||s,extensions:this.extensions});this._editorView=new $({state:a,parent:this._containerRef}),o&&this.focus(),l&&this.indentAll()}componentWillUnmount(){var e;(e=this._editorView)===null||e===void 0||e.destroy(),this.cancelAnimationFrames()}componentDidUpdate(e){var t,i;(t=(i=this.props).makeStyles)===null||t===void 0||t.call(i),this._editorView&&(this.props.value!==e.value&&this.refreshEditorValue(),this.shouldUpdateExtensions(e)&&this.refreshExtensions())}shouldUpdateExtensions(e){const t=["styles","themeOverride","language","readOnly","editable","lineNumbers","highlightActiveLineGutter","foldGutter","lineWrapping","autofocus","spellcheck","direction","dir","rtlMoveVisually","indentOnLoad","indentWithTab","indentUnit","highlightActiveLine","attachment"];for(const i of t)if(!jp(this.props[i],e[i]))return!0;return!1}get direction(){return this.props.direction||this.props.dir}get extensions(){const e=[...this.baseExtensions,this.languageExtension,this.onChangeExtension,this.focusListenerExtension,this.announceLineNumberExtension];return this.themeExtension&&e.push(this.themeExtension),this.props.lineNumbers&&e.push(N0()),this.props.highlightActiveLine&&e.push(y0()),this.props.highlightActiveLineGutter&&e.push(H0()),this.props.foldGutter&&e.push(Lb()),this.props.lineWrapping&&e.push($.lineWrapping),this.props.editable===!1&&e.push($.editable.of(!1)),this.props.readOnly&&e.push(Y.readOnly.of(!0)),this.props.spellcheck&&e.push($.contentAttributes.of({spellcheck:"true"})),this.direction&&e.push($.contentAttributes.of({dir:this.direction})),this.props.indentUnit&&e.push(Di.of(this.props.indentUnit)),e}get baseExtensions(){return[O0(),BS(),n0(),a0(),Y.allowMultipleSelections.of(!0),Mh(jb,{fallback:!0}),e1(),N1(),sS(),$0(),Z0(),uS(),Rb(),Nw(this.props.searchConfig),Yn.of(this.keymaps)]}get keymaps(){const e=[...K1,...this.commandKeybinding,...JS,...Db,...yd,...Ey,...this.props.searchConfig?AS:[]];return this.props.indentWithTab&&e.push(vy),e}get commandKeybinding(){const e=this.props.rtlMoveVisually;if(this.direction==="rtl"&&!e){const t=Jc.map(r=>r.key?r.key:r.mac?r.mac:r);return[...sc.filter(r=>r.key?t.indexOf(r.key)<0:r.mac?t.indexOf(r.mac)<0:!1),...Jc]}return sc}get themeExtension(){const e=this.props.styles;if(!(e!=null&&e.theme)||!e.highlightStyle)return;const t=$.theme(e==null?void 0:e.theme),i=Mh(_n.define(e==null?void 0:e.highlightStyle));return[t,i]}get languageExtension(){switch(this.props.language){case"json":return qw();case"js":case"jsx":case"javascript":return rl({jsx:!0,typescript:!0});case"html":return lp({matchClosingTags:!0,autoCloseTags:!0});case"css":return KO();case"markdown":return Mw();case"sh":case"shell":case"bash":return Br.define(Bw);case"yml":case"yaml":return Br.define(jw);default:return rl({jsx:!0,typescript:!0})}}callOnChangeHandler(e){const t=this.props,i=t.onChange,r=t.value;this.addAnimationFrame(()=>{typeof i=="function"&&e!==r&&i(e)})}get onChangeExtension(){return Y.changeFilter.of(e=>{if(!this._editorView)return!1;if(e.docChanged){const t=e.newDoc.toString();if(this.isControlled)return t!==this.props.value?(this._newSelectionAfterValueChange=e.selection,this.cancelAnimationFrames(),this.callOnChangeHandler(t),!1):!0;this.callOnChangeHandler(t)}return!0})}get focusListenerExtension(){const e=this.props,t=e.onFocus,i=e.onBlur;return $.updateListener.of(r=>{r.focusChanged&&this._editorView&&(this.hasFocus?typeof t=="function"&&t():typeof i=="function"&&i())})}get announceLineNumberExtension(){return Y.transactionExtender.of(e=>{const t=e.selection,i=e.startState.selection.main;if(t&&t.main.empty&&i.empty){const r=e.startState.doc.lineAt(i.head),s=e.newDoc.lineAt(t.main.head);if(r.number!=s.number)return{effects:$.announce.of(e.startState.phrase("line ")+s.number+".")}}return null})}refreshExtensions(){this.dispatchViewEffects(M.reconfigure.of(this.extensions))}refreshEditorValue(){if(!this._editorView)return;const e=this.props.value,t=this._editorView.state.doc.toString();if(typeof e<"u"&&t!==e){let i;const r=e.length-t.length;r===1?i="input.type":r===-1&&(i="delete.backward"),this.dispatchViewChanges({changes:{from:0,to:t.length,insert:e||""},selection:this._newSelectionAfterValueChange,userEvent:i}),this._newSelectionAfterValueChange=void 0}this.props.indentOnLoad&&this.indentAll()}render(){const e=this.props,t=e.label,i=e.styles,r=Np(e,Jw);return In("div",Object.assign({ref:this.handleRef,css:i==null?void 0:i.codeEditor},Gp(Fp(r,Dp.allowedProps))),In("label",{css:i==null?void 0:i.label,htmlFor:this._id},In(nm,null,t),In("div",{ref:this.handleContainerRef,css:i==null?void 0:i.codeEditorContainer})))}},It.displayName="SourceCodeEditor",It.componentId="SourceCodeEditor",It.propTypes=Hw,It.allowedProps=Kw,It.defaultProps={language:"jsx",readOnly:!1,editable:!0,lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1,lineWrapping:!1,autofocus:!1,spellcheck:!1,rtlMoveVisually:!0,indentOnLoad:!1,indentWithTab:!1,defaultValue:"",height:"auto"},It))||Pt)||Pt)||Pt)||Pt);export{fQ as S}; diff --git a/assets/index-Dh55QiP4.js b/assets/index-DoB2bFAj.js similarity index 97% rename from assets/index-Dh55QiP4.js rename to assets/index-DoB2bFAj.js index 6b27195..b7cab1f 100644 --- a/assets/index-Dh55QiP4.js +++ b/assets/index-DoB2bFAj.js @@ -1 +1 @@ -import{P as a,T as _,w as z,r as $,i as b,q as B,V as m,o as x}from"./index-Co1on5ja.js";import{H,n as w}from"./RenderTopNavBar-BjY6S8Vl.js";const O=(e,o)=>{const i=o.size,s=o.href,d=o.onClick,r=o.disabled,c=o.hero,u=o.heading,h=s||d,v={small:{billboard:{padding:e.paddingSmall},hero:{fontSize:"3rem"},message:{fontSize:e.messageFontSizeSmall},heading:{...c&&{margin:`${e.mediumMargin} 0 0`}}},medium:{billboard:{padding:e.paddingMedium},hero:{fontSize:"5rem"},message:{fontSize:e.messageFontSizeMedium},heading:{}},large:{billboard:{padding:e.paddingLarge},hero:{fontSize:"10rem"},message:{fontSize:e.messageFontSizeLarge},heading:{}}},g=h?{appearance:"none",boxSizing:"border-box",cursor:"pointer",userSelect:"none",touchAction:"manipulation",width:"100%",margin:"0",border:`${e.buttonBorderWidth} ${e.buttonBorderStyle} transparent`,borderRadius:e.buttonBorderRadius,background:e.backgroundColor,textDecoration:"none","&:hover":{borderStyle:e.buttonHoverBorderStyle},"&:hover, &:focus":{textDecoration:"none",outline:"none",borderColor:e.iconHoverColor,"& [class$=-billboard__hero]":{color:e.iconHoverColor}},"&:active":{background:e.clickableActiveBg,borderColor:e.iconHoverColor,"& [class$=-billboard__hero], & [class$=-billboard__message]":{color:e.clickableActiveText}}}:{backgroundColor:e.backgroundColor};return{billboard:{label:"billboard",boxSizing:"border-box",position:"relative",fontFamily:e.fontFamily,marginLeft:"auto",marginRight:"auto",textAlign:"center",display:"block",...v[i].billboard,...g,...r&&{cursor:"not-allowed",pointerEvents:"none",opacity:.5}},content:{label:"billboard__content",display:"block"},hero:{label:"billboard__hero",display:"block",color:e.iconColor,...v[i].hero,"& > img, & > svg":{maxWidth:"100%",display:"block",margin:"0 auto"},"& > img":{height:"auto"}},heading:{label:"billboard__heading",display:"block",...c&&{margin:`${e.largeMargin} 0 0`},...v[i].heading},message:{label:"billboard__message",display:"block",color:h?e.messageColorClickable:e.messageColor,...(c||u)&&{margin:`${e.mediumMargin} 0 0`},...v[i].message}}},R=e=>{var o,i,s,d,r,c,u,h,v;const g=e.borders,l=e.colors,n=e.spacing,t=e.typography,k=e.key,C={canvas:{iconHoverColor:e["ic-link-color"],messageColorClickable:e["ic-link-color"],clickableActiveBg:e["ic-brand-primary"]}};return{...{fontFamily:t==null?void 0:t.fontFamily,paddingSmall:n==null?void 0:n.small,paddingMedium:n==null?void 0:n.medium,paddingLarge:n==null?void 0:n.medium,iconColor:l==null||(o=l.contrasts)===null||o===void 0?void 0:o.grey4570,mediumMargin:n==null?void 0:n.small,largeMargin:n==null?void 0:n.medium,iconHoverColor:l==null||(i=l.contrasts)===null||i===void 0?void 0:i.blue4570,backgroundColor:l==null||(s=l.contrasts)===null||s===void 0?void 0:s.white1010,iconHoverColorInverse:l==null||(d=l.contrasts)===null||d===void 0?void 0:d.white1010,buttonBorderWidth:g==null?void 0:g.widthMedium,buttonBorderRadius:g==null?void 0:g.radiusLarge,messageColor:l==null||(r=l.contrasts)===null||r===void 0?void 0:r.blue4570,messageColorClickable:l==null||(c=l.contrasts)===null||c===void 0?void 0:c.blue4570,messageColorInverse:l==null||(u=l.contrasts)===null||u===void 0?void 0:u.grey1111,messageFontSizeSmall:t==null?void 0:t.fontSizeSmall,messageFontSizeMedium:t==null?void 0:t.fontSizeMedium,messageFontSizeLarge:t==null?void 0:t.fontSizeLarge,clickableActiveBg:l==null||(h=l.contrasts)===null||h===void 0?void 0:h.blue4570,clickableActiveText:l==null||(v=l.contrasts)===null||v===void 0?void 0:v.white1010,buttonBorderStyle:g==null?void 0:g.style,buttonHoverBorderStyle:"dashed"},...C[k]}},A={hero:a.oneOfType([a.element,a.func]),size:a.oneOf(["small","medium","large"]),as:a.elementType,elementRef:a.func,heading:a.string,headingAs:a.oneOf(["h1","h2","h3","span"]),headingLevel:a.oneOf(["h1","h2","h3","h4"]),message:a.oneOfType([a.node,a.func]),onClick:a.func,href:a.string,disabled:a.bool,readOnly:a.bool,margin:_.spacing},L=["hero","size","as","elementRef","heading","headingAs","headingLevel","message","onClick","href","disabled","readOnly","margin"];var y,S,p;let V=(y=z(O,R),y(S=(p=class f extends $.Component{constructor(...o){super(...o),this.ref=null,this.handleRef=i=>{const s=this.props.elementRef;this.ref=i,typeof s=="function"&&s(i)},this.handleClick=i=>{const s=this.props,d=s.readOnly,r=s.onClick;d?(i.preventDefault(),i.stopPropagation()):typeof r=="function"&&r(i)}}componentDidMount(){var o,i;(o=(i=this.props).makeStyles)===null||o===void 0||o.call(i)}componentDidUpdate(){var o,i;(o=(i=this.props).makeStyles)===null||o===void 0||o.call(i)}renderHeading(){const o=this.props,i=o.headingLevel,s=o.headingAs,d=o.heading,r=o.styles;return b("span",{css:r==null?void 0:r.heading},b(H,{level:i,as:s,color:"primary"},d))}get SVGIconSize(){const o=this.props.size;return o==="small"?"medium":o==="large"?"x-large":"large"}renderHero(){return typeof this.props.hero=="function"?this.props.hero(this.SVGIconSize):this.props.hero}renderContent(){const o=this.props,i=o.heading,s=o.message,d=o.hero,r=o.styles;return b("span",{css:r==null?void 0:r.content},d&&b("span",{css:r==null?void 0:r.hero},this.renderHero()),i&&this.renderHeading(),s&&b("span",{css:r==null?void 0:r.message},w(s)))}render(){const o=this.props,i=o.href,s=o.disabled,d=o.readOnly,r=o.margin,c=o.styles,u=B(f,this.props);return b(m,{as:"div",margin:r},b(m,Object.assign({},x(this.props,[...f.allowedProps,...m.allowedProps]),{type:u==="button"?"button":void 0,as:u,elementRef:this.handleRef,css:c==null?void 0:c.billboard,href:i,onClick:this.handleClick,disabled:s,"aria-disabled":s||d?"true":void 0}),this.renderContent()))}},p.displayName="Billboard",p.componentId="Billboard",p.propTypes=A,p.allowedProps=L,p.defaultProps={disabled:!1,readOnly:!1,size:"medium",headingAs:"span",headingLevel:"h1",as:"span",elementRef:()=>{}},p))||S);export{V as B}; +import{P as a,T as _,w as z,r as $,i as b,q as B,V as m,o as x}from"./index-mQ6522B8.js";import{H,n as w}from"./RenderTopNavBar-m0KU5Oph.js";const O=(e,o)=>{const i=o.size,s=o.href,d=o.onClick,r=o.disabled,c=o.hero,u=o.heading,h=s||d,v={small:{billboard:{padding:e.paddingSmall},hero:{fontSize:"3rem"},message:{fontSize:e.messageFontSizeSmall},heading:{...c&&{margin:`${e.mediumMargin} 0 0`}}},medium:{billboard:{padding:e.paddingMedium},hero:{fontSize:"5rem"},message:{fontSize:e.messageFontSizeMedium},heading:{}},large:{billboard:{padding:e.paddingLarge},hero:{fontSize:"10rem"},message:{fontSize:e.messageFontSizeLarge},heading:{}}},g=h?{appearance:"none",boxSizing:"border-box",cursor:"pointer",userSelect:"none",touchAction:"manipulation",width:"100%",margin:"0",border:`${e.buttonBorderWidth} ${e.buttonBorderStyle} transparent`,borderRadius:e.buttonBorderRadius,background:e.backgroundColor,textDecoration:"none","&:hover":{borderStyle:e.buttonHoverBorderStyle},"&:hover, &:focus":{textDecoration:"none",outline:"none",borderColor:e.iconHoverColor,"& [class$=-billboard__hero]":{color:e.iconHoverColor}},"&:active":{background:e.clickableActiveBg,borderColor:e.iconHoverColor,"& [class$=-billboard__hero], & [class$=-billboard__message]":{color:e.clickableActiveText}}}:{backgroundColor:e.backgroundColor};return{billboard:{label:"billboard",boxSizing:"border-box",position:"relative",fontFamily:e.fontFamily,marginLeft:"auto",marginRight:"auto",textAlign:"center",display:"block",...v[i].billboard,...g,...r&&{cursor:"not-allowed",pointerEvents:"none",opacity:.5}},content:{label:"billboard__content",display:"block"},hero:{label:"billboard__hero",display:"block",color:e.iconColor,...v[i].hero,"& > img, & > svg":{maxWidth:"100%",display:"block",margin:"0 auto"},"& > img":{height:"auto"}},heading:{label:"billboard__heading",display:"block",...c&&{margin:`${e.largeMargin} 0 0`},...v[i].heading},message:{label:"billboard__message",display:"block",color:h?e.messageColorClickable:e.messageColor,...(c||u)&&{margin:`${e.mediumMargin} 0 0`},...v[i].message}}},R=e=>{var o,i,s,d,r,c,u,h,v;const g=e.borders,l=e.colors,n=e.spacing,t=e.typography,k=e.key,C={canvas:{iconHoverColor:e["ic-link-color"],messageColorClickable:e["ic-link-color"],clickableActiveBg:e["ic-brand-primary"]}};return{...{fontFamily:t==null?void 0:t.fontFamily,paddingSmall:n==null?void 0:n.small,paddingMedium:n==null?void 0:n.medium,paddingLarge:n==null?void 0:n.medium,iconColor:l==null||(o=l.contrasts)===null||o===void 0?void 0:o.grey4570,mediumMargin:n==null?void 0:n.small,largeMargin:n==null?void 0:n.medium,iconHoverColor:l==null||(i=l.contrasts)===null||i===void 0?void 0:i.blue4570,backgroundColor:l==null||(s=l.contrasts)===null||s===void 0?void 0:s.white1010,iconHoverColorInverse:l==null||(d=l.contrasts)===null||d===void 0?void 0:d.white1010,buttonBorderWidth:g==null?void 0:g.widthMedium,buttonBorderRadius:g==null?void 0:g.radiusLarge,messageColor:l==null||(r=l.contrasts)===null||r===void 0?void 0:r.blue4570,messageColorClickable:l==null||(c=l.contrasts)===null||c===void 0?void 0:c.blue4570,messageColorInverse:l==null||(u=l.contrasts)===null||u===void 0?void 0:u.grey1111,messageFontSizeSmall:t==null?void 0:t.fontSizeSmall,messageFontSizeMedium:t==null?void 0:t.fontSizeMedium,messageFontSizeLarge:t==null?void 0:t.fontSizeLarge,clickableActiveBg:l==null||(h=l.contrasts)===null||h===void 0?void 0:h.blue4570,clickableActiveText:l==null||(v=l.contrasts)===null||v===void 0?void 0:v.white1010,buttonBorderStyle:g==null?void 0:g.style,buttonHoverBorderStyle:"dashed"},...C[k]}},A={hero:a.oneOfType([a.element,a.func]),size:a.oneOf(["small","medium","large"]),as:a.elementType,elementRef:a.func,heading:a.string,headingAs:a.oneOf(["h1","h2","h3","span"]),headingLevel:a.oneOf(["h1","h2","h3","h4"]),message:a.oneOfType([a.node,a.func]),onClick:a.func,href:a.string,disabled:a.bool,readOnly:a.bool,margin:_.spacing},L=["hero","size","as","elementRef","heading","headingAs","headingLevel","message","onClick","href","disabled","readOnly","margin"];var y,S,p;let V=(y=z(O,R),y(S=(p=class f extends $.Component{constructor(...o){super(...o),this.ref=null,this.handleRef=i=>{const s=this.props.elementRef;this.ref=i,typeof s=="function"&&s(i)},this.handleClick=i=>{const s=this.props,d=s.readOnly,r=s.onClick;d?(i.preventDefault(),i.stopPropagation()):typeof r=="function"&&r(i)}}componentDidMount(){var o,i;(o=(i=this.props).makeStyles)===null||o===void 0||o.call(i)}componentDidUpdate(){var o,i;(o=(i=this.props).makeStyles)===null||o===void 0||o.call(i)}renderHeading(){const o=this.props,i=o.headingLevel,s=o.headingAs,d=o.heading,r=o.styles;return b("span",{css:r==null?void 0:r.heading},b(H,{level:i,as:s,color:"primary"},d))}get SVGIconSize(){const o=this.props.size;return o==="small"?"medium":o==="large"?"x-large":"large"}renderHero(){return typeof this.props.hero=="function"?this.props.hero(this.SVGIconSize):this.props.hero}renderContent(){const o=this.props,i=o.heading,s=o.message,d=o.hero,r=o.styles;return b("span",{css:r==null?void 0:r.content},d&&b("span",{css:r==null?void 0:r.hero},this.renderHero()),i&&this.renderHeading(),s&&b("span",{css:r==null?void 0:r.message},w(s)))}render(){const o=this.props,i=o.href,s=o.disabled,d=o.readOnly,r=o.margin,c=o.styles,u=B(f,this.props);return b(m,{as:"div",margin:r},b(m,Object.assign({},x(this.props,[...f.allowedProps,...m.allowedProps]),{type:u==="button"?"button":void 0,as:u,elementRef:this.handleRef,css:c==null?void 0:c.billboard,href:i,onClick:this.handleClick,disabled:s,"aria-disabled":s||d?"true":void 0}),this.renderContent()))}},p.displayName="Billboard",p.componentId="Billboard",p.propTypes=A,p.allowedProps=L,p.defaultProps={disabled:!1,readOnly:!1,size:"medium",headingAs:"span",headingLevel:"h1",as:"span",elementRef:()=>{}},p))||S);export{V as B}; diff --git a/assets/index-BAR0q47n.js b/assets/index-hytSvzuk.js similarity index 95% rename from assets/index-BAR0q47n.js rename to assets/index-hytSvzuk.js index 9d02f7b..de16b39 100644 --- a/assets/index-BAR0q47n.js +++ b/assets/index-hytSvzuk.js @@ -1 +1 @@ -import{r as d,R as c,S as i,P as r,T as S,w as L,t as z,h as x,p as E}from"./index-Co1on5ja.js";import{w as j,B as N,S as Z}from"./RenderTopNavBar-BjY6S8Vl.js";var l;class s extends d.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=o=>{const n=this.props.elementRef;this.ref=o,typeof n=="function"&&n(o)}}render(){return c.createElement(i,Object.assign({},this.props,{name:"IconSearch",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),l||(l=c.createElement("path",{d:"M790.588 1468.235c-373.722 0-677.647-303.924-677.647-677.647 0-373.722 303.925-677.647 677.647-677.647 373.723 0 677.647 303.925 677.647 677.647 0 373.723-303.924 677.647-677.647 677.647Zm596.781-160.715c120.396-138.692 193.807-319.285 193.807-516.932C1581.176 354.748 1226.428 0 790.588 0S0 354.748 0 790.588s354.748 790.588 790.588 790.588c197.647 0 378.24-73.411 516.932-193.807l516.028 516.142 79.963-79.963-516.142-516.028Z",fillRule:"evenodd"})))}}s.glyphName="search";s.variant="Line";s.displayName="IconSearchLine";s.propTypes={...i.propTypes};s.allowedProps=[...i.allowedProps];const q={children:r.oneOfType([r.node,r.func]),renderIcon:r.oneOfType([r.node,r.func]),screenReaderLabel:r.string.isRequired,type:r.oneOf(["button","submit","reset"]),size:r.oneOf(["small","medium","large"]),elementRef:r.func,as:r.elementType,interaction:r.oneOf(["enabled","disabled","readonly"]),color:r.oneOf(["primary","primary-inverse","secondary","success","danger"]),focusColor:r.oneOf(["info","inverse"]),shape:r.oneOf(["rectangle","circle"]),withBackground:r.bool,withBorder:r.bool,margin:S.spacing,cursor:r.string,href:r.string,onClick:r.func},G=["as","children","color","cursor","elementRef","focusColor","href","interaction","margin","renderIcon","screenReaderLabel","shape","size","type","withBackground","withBorder","onClick"],M=["children","renderIcon","screenReaderLabel","type","size","elementRef","as","interaction","color","focusColor","shape","withBackground","withBorder","margin","cursor","href"];var p,h,a,t;let $=(p=L(null,j),h=z(),p(a=h(a=(t=class extends d.Component{constructor(...e){super(...e),this._baseButton=null,this.ref=null,this.handleRef=o=>{const n=this.props.elementRef;this.ref=o,typeof n=="function"&&n(o)}}get focused(){return this._baseButton&&this._baseButton.focused}focus(){this._baseButton&&this._baseButton.focus()}render(){const e=this.props,o=e.children,n=e.renderIcon,f=e.screenReaderLabel,m=e.type,B=e.size;e.elementRef;const g=e.as,y=e.interaction,b=e.color,R=e.focusColor,w=e.shape,I=e.withBackground,_=e.withBorder,C=e.margin,O=e.cursor,T=e.href,v=x(e,M),P=this.props.themeOverride;return c.createElement(N,Object.assign({},E(v),{type:m,size:B,elementRef:this.handleRef,as:g,interaction:y,color:b,focusColor:R,shape:w,withBackground:I,withBorder:_,margin:C,cursor:O,href:T,renderIcon:o||n,themeOverride:P,ref:k=>{this._baseButton=k}}),c.createElement(Z,null,f))}},t.displayName="IconButton",t.componentId="IconButton",t.propTypes=q,t.allowedProps=G,t.defaultProps={type:"button",size:"medium",as:"button",interaction:void 0,color:"secondary",shape:"rectangle",withBackground:!0,withBorder:!0,margin:"0",cursor:"pointer"},t))||a)||a);export{$ as I,s as a}; +import{r as d,R as c,S as i,P as r,T as S,w as L,t as z,h as x,p as E}from"./index-mQ6522B8.js";import{w as j,B as N,S as Z}from"./RenderTopNavBar-m0KU5Oph.js";var l;class s extends d.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=o=>{const n=this.props.elementRef;this.ref=o,typeof n=="function"&&n(o)}}render(){return c.createElement(i,Object.assign({},this.props,{name:"IconSearch",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),l||(l=c.createElement("path",{d:"M790.588 1468.235c-373.722 0-677.647-303.924-677.647-677.647 0-373.722 303.925-677.647 677.647-677.647 373.723 0 677.647 303.925 677.647 677.647 0 373.723-303.924 677.647-677.647 677.647Zm596.781-160.715c120.396-138.692 193.807-319.285 193.807-516.932C1581.176 354.748 1226.428 0 790.588 0S0 354.748 0 790.588s354.748 790.588 790.588 790.588c197.647 0 378.24-73.411 516.932-193.807l516.028 516.142 79.963-79.963-516.142-516.028Z",fillRule:"evenodd"})))}}s.glyphName="search";s.variant="Line";s.displayName="IconSearchLine";s.propTypes={...i.propTypes};s.allowedProps=[...i.allowedProps];const q={children:r.oneOfType([r.node,r.func]),renderIcon:r.oneOfType([r.node,r.func]),screenReaderLabel:r.string.isRequired,type:r.oneOf(["button","submit","reset"]),size:r.oneOf(["small","medium","large"]),elementRef:r.func,as:r.elementType,interaction:r.oneOf(["enabled","disabled","readonly"]),color:r.oneOf(["primary","primary-inverse","secondary","success","danger"]),focusColor:r.oneOf(["info","inverse"]),shape:r.oneOf(["rectangle","circle"]),withBackground:r.bool,withBorder:r.bool,margin:S.spacing,cursor:r.string,href:r.string,onClick:r.func},G=["as","children","color","cursor","elementRef","focusColor","href","interaction","margin","renderIcon","screenReaderLabel","shape","size","type","withBackground","withBorder","onClick"],M=["children","renderIcon","screenReaderLabel","type","size","elementRef","as","interaction","color","focusColor","shape","withBackground","withBorder","margin","cursor","href"];var p,h,a,t;let $=(p=L(null,j),h=z(),p(a=h(a=(t=class extends d.Component{constructor(...e){super(...e),this._baseButton=null,this.ref=null,this.handleRef=o=>{const n=this.props.elementRef;this.ref=o,typeof n=="function"&&n(o)}}get focused(){return this._baseButton&&this._baseButton.focused}focus(){this._baseButton&&this._baseButton.focus()}render(){const e=this.props,o=e.children,n=e.renderIcon,f=e.screenReaderLabel,m=e.type,B=e.size;e.elementRef;const g=e.as,y=e.interaction,b=e.color,R=e.focusColor,w=e.shape,I=e.withBackground,_=e.withBorder,C=e.margin,O=e.cursor,T=e.href,v=x(e,M),P=this.props.themeOverride;return c.createElement(N,Object.assign({},E(v),{type:m,size:B,elementRef:this.handleRef,as:g,interaction:y,color:b,focusColor:R,shape:w,withBackground:I,withBorder:_,margin:C,cursor:O,href:T,renderIcon:o||n,themeOverride:P,ref:k=>{this._baseButton=k}}),c.createElement(Z,null,f))}},t.displayName="IconButton",t.componentId="IconButton",t.propTypes=q,t.allowedProps=G,t.defaultProps={type:"button",size:"medium",as:"button",interaction:void 0,color:"secondary",shape:"rectangle",withBackground:!0,withBorder:!0,margin:"0",cursor:"pointer"},t))||a)||a);export{$ as I,s as a}; diff --git a/assets/index-mQ6522B8.js b/assets/index-mQ6522B8.js new file mode 100644 index 0000000..30750bc --- /dev/null +++ b/assets/index-mQ6522B8.js @@ -0,0 +1,90 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdownBrand-Br3i6gcd.js","assets/RenderTopNavBar-m0KU5Oph.js","assets/Mdtoui-DyL4rrif.js","assets/index-Bj11N7g7.js","assets/redirectTo-CRmRN8sY.js","assets/index-DoB2bFAj.js","assets/links-DsZEkKJf.js","assets/index-C2NLSIw_.js","assets/index-hytSvzuk.js","assets/mdui-D4r40FkK.js","assets/index-Deq60h-B.js","assets/releases-DavYsqrR.js","assets/IconRssLine-ozT-I_fC.js","assets/error-BPtHapzG.js"])))=>i.map(i=>d[i]); +function Is(e,t){for(var a=0;an[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function a(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(l){if(l.ep)return;l.ep=!0;const i=a(l);fetch(l.href,i)}})();const My="modulepreload",Dy=function(e){return"/"+e},Ud={},Ot=function(t,a,n){let l=Promise.resolve();if(a&&a.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),r=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.all(a.map(u=>{if(u=Dy(u),u in Ud)return;Ud[u]=!0;const o=u.endsWith(".css"),c=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const s=document.createElement("link");if(s.rel=o?"stylesheet":My,o||(s.as="script",s.crossOrigin=""),s.href=u,r&&s.setAttribute("nonce",r),document.head.appendChild(s),o)return new Promise((d,f)=>{s.addEventListener("load",d),s.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${u}`)))})}))}return l.then(()=>t()).catch(i=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=i,window.dispatchEvent(r),!r.defaultPrevented)throw i})};var V8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function G8(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var a=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(a,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),a}var F0={exports:{}},Fu={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xy=Symbol.for("react.transitional.element"),$y=Symbol.for("react.fragment");function I0(e,t,a){var n=null;if(a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),"key"in t){a={};for(var l in t)l!=="key"&&(a[l]=t[l])}else a=t;return t=a.ref,{$$typeof:xy,type:e,key:n,ref:t!==void 0?t:null,props:a}}Fu.Fragment=$y;Fu.jsx=I0;Fu.jsxs=I0;F0.exports=Fu;var je=F0.exports,eh={exports:{}},W={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ef=Symbol.for("react.transitional.element"),zy=Symbol.for("react.portal"),Ny=Symbol.for("react.fragment"),Uy=Symbol.for("react.strict_mode"),Ly=Symbol.for("react.profiler"),Hy=Symbol.for("react.consumer"),By=Symbol.for("react.context"),jy=Symbol.for("react.forward_ref"),Vy=Symbol.for("react.suspense"),Gy=Symbol.for("react.memo"),th=Symbol.for("react.lazy"),Ld=Symbol.iterator;function Yy(e){return e===null||typeof e!="object"?null:(e=Ld&&e[Ld]||e["@@iterator"],typeof e=="function"?e:null)}var ah={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nh=Object.assign,lh={};function jl(e,t,a){this.props=e,this.context=t,this.refs=lh,this.updater=a||ah}jl.prototype.isReactComponent={};jl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ih(){}ih.prototype=jl.prototype;function tf(e,t,a){this.props=e,this.context=t,this.refs=lh,this.updater=a||ah}var af=tf.prototype=new ih;af.constructor=tf;nh(af,jl.prototype);af.isPureReactComponent=!0;var Hd=Array.isArray,Oe={H:null,A:null,T:null,S:null},rh=Object.prototype.hasOwnProperty;function nf(e,t,a,n,l,i,r){return a=r.ref,{$$typeof:ef,type:e,key:t,ref:a!==void 0?a:null,props:r}}function qy(e,t){return nf(e.type,t,null,void 0,void 0,void 0,e.props)}function lf(e){return typeof e=="object"&&e!==null&&e.$$typeof===ef}function ky(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Bd=/\/+/g;function Go(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ky(""+e.key):t.toString(36)}function jd(){}function Xy(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(jd,jd):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function al(e,t,a,n,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(i){case"bigint":case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case ef:case zy:r=!0;break;case th:return r=e._init,al(r(e._payload),t,a,n,l)}}if(r)return l=l(e),r=n===""?"."+Go(e,0):n,Hd(l)?(a="",r!=null&&(a=r.replace(Bd,"$&/")+"/"),al(l,t,a,"",function(c){return c})):l!=null&&(lf(l)&&(l=qy(l,a+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(Bd,"$&/")+"/")+r)),t.push(l)),1;r=0;var u=n===""?".":n+":";if(Hd(e))for(var o=0;o>>1,ye=z[k];if(0>>1;kl(it,q))htl(Kt,it)?(z[k]=Kt,z[ht]=q,k=ht):(z[k]=it,z[bt]=q,k=bt);else if(htl(Kt,q))z[k]=Kt,z[ht]=q,k=ht;else break e}}return Y}function l(z,Y){var q=z.sortIndex-Y.sortIndex;return q!==0?q:z.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var r=Date,u=r.now();e.unstable_now=function(){return r.now()-u}}var o=[],c=[],s=1,d=null,f=3,y=!1,C=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;function v(z){for(var Y=a(c);Y!==null;){if(Y.callback===null)n(c);else if(Y.startTime<=z)n(c),Y.sortIndex=Y.expirationTime,t(o,Y);else break;Y=a(c)}}function E(z){if(S=!1,v(z),!C)if(a(o)!==null)C=!0,me();else{var Y=a(c);Y!==null&&et(E,Y.startTime-z)}}var D=!1,$=-1,x=5,g=-1;function A(){return!(e.unstable_now()-gz&&A());){var k=d.callback;if(typeof k=="function"){d.callback=null,f=d.priorityLevel;var ye=k(d.expirationTime<=z);if(z=e.unstable_now(),typeof ye=="function"){d.callback=ye,v(z),Y=!0;break t}d===a(o)&&n(o),v(z)}else n(o);d=a(o)}if(d!==null)Y=!0;else{var Tt=a(c);Tt!==null&&et(E,Tt.startTime-z),Y=!1}}break e}finally{d=null,f=q,y=!1}Y=void 0}}finally{Y?j():D=!1}}}var j;if(typeof h=="function")j=function(){h(U)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,xe=K.port2;K.port1.onmessage=U,j=function(){xe.postMessage(null)}}else j=function(){T(U,0)};function me(){D||(D=!0,j())}function et(z,Y){$=T(function(){z(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){C||y||(C=!0,me())},e.unstable_forceFrameRate=function(z){0>z||125k?(z.sortIndex=q,t(c,z),a(o)===null&&z===a(c)&&(S?(m($),$=-1):S=!0,et(E,q-k))):(z.sortIndex=ye,t(o,z),C||y||(C=!0,me())),z},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(z){var Y=f;return function(){var q=f;f=Y;try{return z.apply(this,arguments)}finally{f=q}}}})(ch);oh.exports=ch;var Ky=oh.exports,sh={exports:{}},dt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function fh(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dh)}catch(e){console.error(e)}}dh(),sh.exports=dt;var rf=sh.exports;const hh=Bl(rf),Wy=Is({__proto__:null,default:hh},[rf]);/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ye=Ky,mh=_,Fy=rf;function w(e){var t="https://react.dev/errors/"+e;if(1l||o[n]!==c[l]){var s=` +`+o[n].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=n&&0<=l);break}}}finally{qo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?bi(a):""}function lg(e){switch(e.tag){case 26:case 27:case 5:return bi(e.type);case 16:return bi("Lazy");case 13:return bi("Suspense");case 19:return bi("SuspenseList");case 0:case 15:return e=ko(e.type,!1),e;case 11:return e=ko(e.type.render,!1),e;case 1:return e=ko(e.type,!0),e;default:return""}}function Xd(e){try{var t="";do t+=lg(e),e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}function Vl(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function bh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zd(e){if(Vl(e)!==e)throw Error(w(188))}function ig(e){var t=e.alternate;if(!t){if(t=Vl(e),t===null)throw Error(w(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var i=l.alternate;if(i===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===a)return Zd(l),e;if(i===n)return Zd(l),t;i=i.sibling}throw Error(w(188))}if(a.return!==n.return)a=l,n=i;else{for(var r=!1,u=l.child;u;){if(u===a){r=!0,a=l,n=i;break}if(u===n){r=!0,n=l,a=i;break}u=u.sibling}if(!r){for(u=i.child;u;){if(u===a){r=!0,a=i,n=l;break}if(u===n){r=!0,n=i,a=l;break}u=u.sibling}if(!r)throw Error(w(189))}}if(a.alternate!==n)throw Error(w(190))}if(a.tag!==3)throw Error(w(188));return a.stateNode.current===a?e:t}function Sh(e){return e=ig(e),e!==null?Eh(e):null}function Eh(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Eh(e),t!==null)return t;e=e.sibling}return null}var Si=Array.isArray,Se=Fy.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ti={pending:!1,data:null,method:null,action:null},Ic=[],rl=-1;function oa(e){return{current:e}}function Xe(e){0>rl||(e.current=Ic[rl],Ic[rl]=null,rl--)}function Ae(e,t){rl++,Ic[rl]=e.current,e.current=t}var ta=oa(null),Yi=oa(null),Ka=oa(null),es=oa(null),yu={$$typeof:Xa,Provider:null,Consumer:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gu(e,t){switch(Ae(Ka,t),Ae(Yi,e),Ae(ta,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?X1(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=X1(e),t=Nv(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Xe(ta),Ae(ta,t)}function Tl(){Xe(ta),Xe(Yi),Xe(Ka)}function ts(e){e.memoizedState!==null&&Ae(es,e);var t=ta.current,a=Nv(t,e.type);t!==a&&(Ae(Yi,e),Ae(ta,a))}function bu(e){Yi.current===e&&(Xe(ta),Xe(Yi)),es.current===e&&(Xe(es),yu._currentValue=null)}var as=Object.prototype.hasOwnProperty,uf=Ye.unstable_scheduleCallback,Xo=Ye.unstable_cancelCallback,rg=Ye.unstable_shouldYield,ug=Ye.unstable_requestPaint,aa=Ye.unstable_now,og=Ye.unstable_getCurrentPriorityLevel,of=Ye.unstable_ImmediatePriority,Rh=Ye.unstable_UserBlockingPriority,Su=Ye.unstable_NormalPriority,cg=Ye.unstable_LowPriority,Ch=Ye.unstable_IdlePriority,sg=Ye.log,fg=Ye.unstable_setDisableYieldValue,sr=null,At=null;function dg(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(sr,e,void 0,(e.current.flags&128)===128)}catch{}}function Za(e){if(typeof sg=="function"&&fg(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(sr,e)}catch{}}var Ht=Math.clz32?Math.clz32:vg,hg=Math.log,mg=Math.LN2;function vg(e){return e>>>=0,e===0?32:31-(hg(e)/mg|0)|0}var zr=128,Nr=4194304;function Ei(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Eu(e,t){var a=e.pendingLanes;if(a===0)return 0;var n=0,l=e.suspendedLanes;e=e.pingedLanes;var i=a&134217727;return i!==0?(a=i&~l,a!==0?n=Ei(a):(e&=i,e!==0&&(n=Ei(e)))):(a&=~l,a!==0?n=Ei(a):e!==0&&(n=Ei(e))),n===0?0:t!==0&&t!==n&&!(t&l)&&(l=n&-n,e=t&-t,l>=e||l===32&&(e&4194176)!==0)?t:n}function pg(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ah(e,t){return e.errorRecoveryDisabledLanes&t?0:(e=e.pendingLanes&-536870913,e!==0?e:e&536870912?536870912:0)}function _h(){var e=zr;return zr<<=1,!(zr&4194176)&&(zr=128),e}function wh(){var e=Nr;return Nr<<=1,!(Nr&62914560)&&(Nr=4194304),e}function Zo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function yg(e,t,a){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,i=e.hiddenUpdates;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Kd={},Pd={};function Rg(e){return as.call(Pd,e)?!0:as.call(Kd,e)?!1:Eg.test(e)?Pd[e]=!0:(Kd[e]=!0,!1)}function eu(e,t,a){if(Rg(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Qo(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function da(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cg(e){var t=zh(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(r){n=""+r,i.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(r){n=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ru(e){e._valueTracker||(e._valueTracker=Cg(e))}function Nh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=zh(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Cu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ag=/[\n"\\]/g;function Nt(e){return e.replace(Ag,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ls(e,t,a,n,l,i,r,u){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xt(t)):e.value!==""+xt(t)&&(e.value=""+xt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?is(e,r,xt(t)):a!=null?is(e,r,xt(a)):n!=null&&e.removeAttribute("value"),l==null&&i!=null&&(e.defaultChecked=!!i),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.name=""+xt(u):e.removeAttribute("name")}function Uh(e,t,a,n,l,i,r,u){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;a=a!=null?""+xt(a):"",t=t!=null?""+xt(t):a,u||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=u?e.checked:!!n,e.defaultChecked=!!n,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r)}function is(e,t,a){t==="number"&&Cu(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function gl(e,t,a,n){if(e=e.options,t){t={};for(var l=0;l=Oi),a1=" ",n1=!1;function Yh(e,t){switch(e){case"keyup":return Fg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ol=!1;function e2(e,t){switch(e){case"compositionend":return qh(t);case"keypress":return t.which!==32?null:(n1=!0,a1);case"textInput":return e=t.data,e===a1&&n1?null:e;default:return null}}function t2(e,t){if(ol)return e==="compositionend"||!mf&&Yh(e,t)?(e=Vh(),au=df=Qa=null,ol=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=o1(a)}}function Qh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kh(){for(var e=window,t=Cu();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Cu(e.document)}return t}function vf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function c2(e){var t=Kh(),a=e.focusedElem,n=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&Qh(a.ownerDocument.documentElement,a)){if(n!==null&&vf(a)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=a.textContent.length,i=Math.min(n.start,l);n=n.end===void 0?i:Math.min(n.end,l),!e.extend&&i>n&&(l=n,n=i,i=l),l=c1(a,i);var r=c1(a,n);l&&r&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(r.node,r.offset)):(t.setEnd(r.node,r.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,cl=null,os=null,Di=null,cs=!1;function s1(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cs||cl==null||cl!==Cu(n)||(n=cl,"selectionStart"in n&&vf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Di&&Zi(Di,n)||(Di=n,n=ju(os,"onSelect"),0>=r,l-=r,ba=1<<32-Ht(t)+l|a<g?(A=x,x=null):A=x.sibling;var U=f(m,x,v[g],E);if(U===null){x===null&&(x=A);break}e&&x&&U.alternate===null&&t(m,x),h=i(U,h,g),$===null?D=U:$.sibling=U,$=U,x=A}if(g===v.length)return a(m,x),le&&hn(m,g),D;if(x===null){for(;gg?(A=x,x=null):A=x.sibling;var j=f(m,x,U.value,E);if(j===null){x===null&&(x=A);break}e&&x&&j.alternate===null&&t(m,x),h=i(j,h,g),$===null?D=j:$.sibling=j,$=j,x=A}if(U.done)return a(m,x),le&&hn(m,g),D;if(x===null){for(;!U.done;g++,U=v.next())U=d(m,U.value,E),U!==null&&(h=i(U,h,g),$===null?D=U:$.sibling=U,$=U);return le&&hn(m,g),D}for(x=n(x);!U.done;g++,U=v.next())U=y(x,m,g,U.value,E),U!==null&&(e&&U.alternate!==null&&x.delete(U.key===null?g:U.key),h=i(U,h,g),$===null?D=U:$.sibling=U,$=U);return e&&x.forEach(function(K){return t(m,K)}),le&&hn(m,g),D}function T(m,h,v,E){if(typeof v=="object"&&v!==null&&v.type===gi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case xr:e:{for(var D=v.key,$=h;$!==null;){if($.key===D){if(D=v.type,D===gi){if($.tag===7){a(m,$.sibling),h=l($,v.props.children),h.return=m,m=h;break e}}else if($.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===dn&&y1(D)===$.type){a(m,$.sibling),h=l($,v.props),ii(m,$,h,v),h.return=m,m=h;break e}a(m,$);break}else t(m,$);$=$.sibling}v.type===gi?(h=Cn(v.props.children,m.mode,E,v.key),h.return=m,m=h):(E=ou(v.type,v.key,v.props,null,m.mode,E),ii(m,h,E,v),E.return=m,m=E)}return r(m);case $r:e:{for($=v.key;h!==null;){if(h.key===$)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){a(m,h.sibling),h=l(h,v.children||[]),h.return=m,m=h;break e}else{a(m,h);break}else t(m,h);h=h.sibling}h=mc(v,m.mode,E),h.return=m,m=h}return r(m);case dn:return $=v._init,v=$(v._payload),T(m,h,v,E)}if(Si(v))return C(m,h,v,E);if(ti(v)){if($=ti(v),typeof $!="function")throw Error(w(150));return v=$.call(v),S(m,h,v,E)}if(typeof v.then=="function")return T(m,h,Hr(v),E);if(v.$$typeof===Xa)return T(m,h,Vr(m,v,E),E);Br(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,h!==null&&h.tag===6?(a(m,h.sibling),h=l(h,v),h.return=m,m=h):(a(m,h),h=hc(v,m.mode,E),h.return=m,m=h),r(m)):a(m,h)}return function(m,h,v,E){try{Ki=0;var D=T(m,h,v,E);return Sl=null,D}catch(x){if(x===xi)throw x;var $=Lt(29,x,null,m.mode);return $.lanes=E,$.return=m,$}finally{}}}var wn=im(!0),rm=im(!1),Dl=oa(null),Tu=oa(0);function g1(e,t){e=Oa,Ae(Tu,e),Ae(Dl,t),Oa=e|t.baseLanes}function ds(){Ae(Tu,Oa),Ae(Dl,Dl.current)}function Sf(){Oa=Tu.current,Xe(Dl),Xe(Tu)}var ia=oa(null),na=null;function Ga(e){var t=e.alternate;Ae(Ge,Ge.current&1),Ae(ia,e),na===null&&(t===null||Dl.current!==null||t.memoizedState!==null)&&(na=e)}function um(e){if(e.tag===22){if(Ae(Ge,Ge.current),Ae(ia,e),na===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(na=e)}}else Ya()}function Ya(){Ae(Ge,Ge.current),Ae(ia,ia.current)}function Ea(e){Xe(ia),na===e&&(na=null),Xe(Ge)}var Ge=oa(0);function Ou(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var m2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},v2=Ye.unstable_scheduleCallback,p2=Ye.unstable_NormalPriority,Ve={$$typeof:Xa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ef(){return{controller:new m2,data:new Map,refCount:0}}function hr(e){e.refCount--,e.refCount===0&&v2(p2,function(){e.controller.abort()})}var zi=null,hs=0,xl=0,El=null;function y2(e,t){if(zi===null){var a=zi=[];hs=0,xl=Zf(),El={status:"pending",value:void 0,then:function(n){a.push(n)}}}return hs++,t.then(b1,b1),t}function b1(){if(zi!==null&&--hs===0){El!==null&&(El.status="fulfilled");var e=zi;zi=null,xl=0,El=null;for(var t=0;ti?i:8;var r=Z.T,u={};Z.T=u,Nf(e,!1,t,a);try{var o=l(),c=Z.S;if(c!==null&&c(u,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var s=g2(o,n);Al(e,t,s)}else Al(e,t,n)}catch(d){Al(e,t,{then:function(){},status:"rejected",reason:d})}finally{Se.p=i,Z.T=r}}function C2(){}function ps(e,t,a,n){if(e.tag!==5)throw Error(w(476));var l=Nm(e).queue;zm(e,l,t,Ti,a===null?C2:function(){return Um(e),a(n)})}function Nm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ti,baseState:Ti,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:Ti},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Um(e){var t=Nm(e).next.queue;Al(e,t,{})}function zf(){var e=lt(yu);return e!==null?e:Ti}function Lm(){return Be().memoizedState}function Hm(){return Be().memoizedState}function A2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Aa();e=Ca(a);var n=Pa(t,e,a);n!==null&&(ft(n,t,a),Ui(n,t,a)),t={cache:Ef()},e.payload=t;return}t=t.return}}function _2(e,t,a){var n=Aa();a={lane:n,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},co(e)?Bm(t,a):(a=yf(e,t,a,n),a!==null&&(ft(a,e,n),jm(a,t,n)))}function Al(e,t,a){var n=Aa(),l={lane:n,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(co(e))Bm(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var r=t.lastRenderedState,u=i(r,a);if(l.hasEagerState=!0,l.eagerState=u,Bt(u,r)){io(e,t,l,0),he===null&&lo();return}}catch{}finally{}a=yf(e,t,l,n),a!==null&&(ft(a,e,n),jm(a,t,n))}}function Nf(e,t,a,n){if(n={lane:2,revertLane:Zf(),action:n,hasEagerState:!1,eagerState:null,next:null},co(e)){if(t)throw Error(w(479))}else t=yf(e,a,n,2),t!==null&&ft(t,e,2)}function co(e){var t=e.alternate;return e===F||t!==null&&t===F}function Bm(e,t){Rl=Mu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function jm(e,t,a){if(a&4194176){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Oh(e,a)}}var ra={readContext:lt,use:uo,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e};ra.useCacheRefresh=$e;ra.useMemoCache=$e;ra.useHostTransitionStatus=$e;ra.useFormState=$e;ra.useActionState=$e;ra.useOptimistic=$e;var Bn={readContext:lt,use:uo,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:C1,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ru(4194308,4,Om.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){ru(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var n=e();return Tn&&(Za(!0),e(),Za(!1)),a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=mt();if(a!==void 0){var l=a(t);Tn&&(Za(!0),a(t),Za(!1))}else l=t;return n.memoizedState=n.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},n.queue=e,e=e.dispatch=_2.bind(null,F,e),[n.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=ms(e);var t=e.queue,a=Al.bind(null,F,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:xf,useDeferredValue:function(e,t){var a=mt();return $f(a,e,t)},useTransition:function(){var e=ms(!1);return e=zm.bind(null,F,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=F,l=mt();if(le){if(a===void 0)throw Error(w(407));a=a()}else{if(a=t(),he===null)throw Error(w(349));ie&60||dm(n,t,a)}l.memoizedState=a;var i={value:a,getSnapshot:t};return l.queue=i,C1(mm.bind(null,n,i,e),[e]),n.flags|=2048,$l(9,hm.bind(null,n,i,a,t),{destroy:void 0},null),a},useId:function(){var e=mt(),t=he.identifierPrefix;if(le){var a=Sa,n=ba;a=(n&~(1<<32-Ht(n)-1)).toString(32)+a,t=":"+t+"R"+a,a=Du++,0 title"))),Fe(l,n,a),l[nt]=e,ke(l),n=l;break e;case"link":var i=W1("link","href",t).get(n+(a.href||""));if(i){for(var r=0;r<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof n.is=="string"?l.createElement("select",{is:n.is}):l.createElement("select"),n.multiple?e.multiple=!0:n.size&&(e.size=n.size);break;default:e=typeof n.is=="string"?l.createElement(a,{is:n.is}):l.createElement(a)}}e[nt]=t,e[st]=n;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=e;e:switch(Fe(e,a,n),a){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&va(t)}}return _e(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&va(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(w(166));if(e=Ka.current,li(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=ot,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[nt]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||zv(e.nodeValue,a)),e||_n(t)}else e=Vu(e).createTextNode(n),e[nt]=t,t.stateNode=e}return _e(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=li(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(w(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(w(317));l[nt]=t}else dr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),l=!1}else kt!==null&&(xs(kt),kt=null),l=!0;if(!l)return t.flags&256?(Ea(t),t):(Ea(t),null)}if(Ea(t),t.flags&128)return t.lanes=a,t;if(a=n!==null,e=e!==null&&e.memoizedState!==null,a){n=t.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool);var i=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==l&&(n.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Gr(t,t.updateQueue),_e(t),null;case 4:return Tl(),e===null&&Qf(t.stateNode.containerInfo),_e(t),null;case 10:return Ra(t.type),_e(t),null;case 19:if(Xe(Ge),l=t.memoizedState,l===null)return _e(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)ri(l,!1);else{if(De!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Ou(e),i!==null){for(t.flags|=128,ri(l,!1),e=i.updateQueue,t.updateQueue=e,Gr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)yv(a,e),a=a.sibling;return Ae(Ge,Ge.current&1|2),t.child}e=e.sibling}l.tail!==null&&aa()>Uu&&(t.flags|=128,n=!0,ri(l,!1),t.lanes=4194304)}else{if(!n)if(e=Ou(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Gr(t,e),ri(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!le)return _e(t),null}else 2*aa()-l.renderingStartTime>Uu&&a!==536870912&&(t.flags|=128,n=!0,ri(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=aa(),t.sibling=null,e=Ge.current,Ae(Ge,n?e&1|2:e&1),t):(_e(t),null);case 22:case 23:return Ea(t),Sf(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?a&536870912&&!(t.flags&128)&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),a=t.updateQueue,a!==null&&Gr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Xe(Rn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ra(Ve),_e(t),null;case 25:return null}throw Error(w(156,t.tag))}function $2(e,t){switch(bf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ra(Ve),Tl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bu(t),null;case 13:if(Ea(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xe(Ge),null;case 4:return Tl(),null;case 10:return Ra(t.type),null;case 22:case 23:return Ea(t),Sf(),e!==null&&Xe(Rn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ra(Ve),null;case 25:return null;default:return null}}function bv(e,t){switch(bf(t),t.tag){case 3:Ra(Ve),Tl();break;case 26:case 27:case 5:bu(t);break;case 4:Tl();break;case 13:Ea(t);break;case 19:Xe(Ge);break;case 10:Ra(t.type);break;case 22:case 23:Ea(t),Sf(),e!==null&&Xe(Rn);break;case 24:Ra(Ve)}}var z2={getCacheForType:function(e){var t=lt(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},N2=typeof WeakMap=="function"?WeakMap:Map,oe=0,he=null,ee=null,ie=0,we=0,Dt=null,Gf=!1,Oa=0,De=0,Ma=0,ql=0,Yf=0,vt=0,ji=null,Xt=null,Nl=!1,Nu=!1,qf=0,Uu=1/0,Ji=null,Wa=null,Yr=!1,mn=null,Vi=0,Os=0,Ms=null,Gi=0,Ds=null;function Aa(){if(oe&2&&ie!==0)return ie&-ie;if(Z.T!==null){var e=xl;return e!==0?e:Zf()}return Dh()}function Sv(){vt===0&&(vt=!(ie&536870912)||le?_h():536870912);var e=ia.current;return e!==null&&(e.flags|=32),vt}function ft(e,t,a){(e===he&&we===2||e.cancelPendingCommit!==null)&&(Vn(e,0),ea(e,ie,vt)),vr(e,a),(!(oe&2)||e!==he)&&(e===he&&(!(oe&2)&&(ql|=a),De===4&&ea(e,ie,vt)),pt(e))}function Ev(e,t){if(oe&6)throw Error(w(327));var a=e.callbackNode;if(_l()&&e.callbackNode!==a)return null;var n=Eu(e,e===he?ie:0);if(n===0)return null;var l=(n&60)===0&&(n&e.expiredLanes)===0&&!t;if(t=l?B2(e,n):Lu(e,n),t!==0){var i=l;do{if(t===6)ea(e,n,0);else{if(l=e.current.alternate,i&&!U2(l)){t=Lu(e,n),i=!1;continue}if(t===2){i=n;var r=Ah(e,i);if(r!==0&&(n=r,t=Rv(e,i,r),i=!1,t!==2))continue}if(t===1){Vn(e,0),ea(e,n,0);break}e.finishedWork=l,e.finishedLanes=n;e:{switch(i=e,t){case 0:case 1:throw Error(w(345));case 4:if((n&4194176)===n){ea(i,n,vt);break e}break;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(w(329))}if((n&62914560)===n&&(t=qf+300-aa(),10a?32:a,Z.T=null,mn===null)var i=!1;else{a=Ms,Ms=null;var r=mn,u=Vi;if(mn=null,Vi=0,oe&6)throw Error(w(331));var o=oe;if(oe|=4,vv(r.current),dv(r,r.current,u,a),oe=o,pr(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(sr,r)}catch{}i=!0}return i}finally{Se.p=l,Z.T=n,Ov(e,t)}}return!1}function j1(e,t,a){t=Ut(a,t),t=ys(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(vr(e,2),pt(e))}function pe(e,t,a){if(e.tag===3)j1(e,e,a);else for(;t!==null;){if(t.tag===3){j1(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Wa===null||!Wa.has(n))){e=Ut(a,e),a=qm(2),n=Pa(t,a,2),n!==null&&(km(a,n,t,e),vr(n,2),pt(n));break}}t=t.return}}function vc(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new N2;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(a)||(Gf=!0,l.add(a),e=G2.bind(null,e,t,a),t.then(e,e))}function G2(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,oe&2?Nl=!0:oe&4&&(Nu=!0),Xf(),he===e&&(ie&a)===a&&(De===4||De===3&&(ie&62914560)===ie&&300>aa()-qf?!(oe&2)&&Vn(e,0):Yf|=a),pt(e)}function Mv(e,t){t===0&&(t=wh()),e=tn(e,t),e!==null&&(vr(e,t),pt(e))}function Y2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Mv(e,a)}function q2(e,t){var a=0;switch(e.tag){case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(w(314))}n!==null&&n.delete(t),Mv(e,a)}function Xf(){if(50"u"?null:document;function Hv(e,t,a){var n=kl;if(n&&typeof t=="string"&&t){var l=Nt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),K1.has(l)||(K1.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),Fe(t,"link",e),ke(t),n.head.appendChild(t)))}}function ub(e){Da.D(e),Hv("dns-prefetch",e,null)}function ob(e,t){Da.C(e,t),Hv("preconnect",e,t)}function cb(e,t,a){Da.L(e,t,a);var n=kl;if(n&&e&&t){var l='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Nt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Nt(a.imageSizes)+'"]')):l+='[href="'+Nt(e)+'"]';var i=l;switch(t){case"style":i=Ul(e);break;case"script":i=Xl(e)}jt.has(i)||(e=Ee({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),jt.set(i,e),n.querySelector(l)!==null||t==="style"&&n.querySelector(yr(i))||t==="script"&&n.querySelector(gr(i))||(t=n.createElement("link"),Fe(t,"link",e),ke(t),n.head.appendChild(t)))}}function sb(e,t){Da.m(e,t);var a=kl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Nt(n)+'"][href="'+Nt(e)+'"]',i=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Xl(e)}if(!jt.has(i)&&(e=Ee({rel:"modulepreload",href:e},t),jt.set(i,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(gr(i)))return}n=a.createElement("link"),Fe(n,"link",e),ke(n),a.head.appendChild(n)}}}function fb(e,t,a){Da.S(e,t,a);var n=kl;if(n&&e){var l=yl(n).hoistableStyles,i=Ul(e);t=t||"default";var r=l.get(i);if(!r){var u={loading:0,preload:null};if(r=n.querySelector(yr(i)))u.loading=5;else{e=Ee({rel:"stylesheet",href:e,"data-precedence":t},a),(a=jt.get(i))&&Kf(e,a);var o=r=n.createElement("link");ke(o),Fe(o,"link",e),o._p=new Promise(function(c,s){o.onload=c,o.onerror=s}),o.addEventListener("load",function(){u.loading|=1}),o.addEventListener("error",function(){u.loading|=2}),u.loading|=4,cu(r,t,n)}r={type:"stylesheet",instance:r,count:1,state:u},l.set(i,r)}}}function db(e,t){Da.X(e,t);var a=kl;if(a&&e){var n=yl(a).hoistableScripts,l=Xl(e),i=n.get(l);i||(i=a.querySelector(gr(l)),i||(e=Ee({src:e,async:!0},t),(t=jt.get(l))&&Pf(e,t),i=a.createElement("script"),ke(i),Fe(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(l,i))}}function hb(e,t){Da.M(e,t);var a=kl;if(a&&e){var n=yl(a).hoistableScripts,l=Xl(e),i=n.get(l);i||(i=a.querySelector(gr(l)),i||(e=Ee({src:e,async:!0,type:"module"},t),(t=jt.get(l))&&Pf(e,t),i=a.createElement("script"),ke(i),Fe(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(l,i))}}function P1(e,t,a,n){var l=(l=Ka.current)?Gu(l):null;if(!l)throw Error(w(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ul(a.href),a=yl(l).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ul(a.href);var i=yl(l).hoistableStyles,r=i.get(e);if(r||(l=l.ownerDocument||l,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,r),(i=l.querySelector(yr(e)))&&!i._p&&(r.instance=i,r.state.loading=5),jt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},jt.set(e,a),i||mb(l,e,a,r.state))),t&&n===null)throw Error(w(528,""));return r}if(t&&n!==null)throw Error(w(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xl(a),a=yl(l).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(w(444,e))}}function Ul(e){return'href="'+Nt(e)+'"'}function yr(e){return'link[rel="stylesheet"]['+e+"]"}function Bv(e){return Ee({},e,{"data-precedence":e.precedence,precedence:null})}function mb(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Fe(t,"link",a),ke(t),e.head.appendChild(t))}function Xl(e){return'[src="'+Nt(e)+'"]'}function gr(e){return"script[async]"+e}function J1(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Nt(a.href)+'"]');if(n)return t.instance=n,ke(n),n;var l=Ee({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ke(n),Fe(n,"style",l),cu(n,a.precedence,e),t.instance=n;case"stylesheet":l=Ul(a.href);var i=e.querySelector(yr(l));if(i)return t.state.loading|=4,t.instance=i,ke(i),i;n=Bv(a),(l=jt.get(l))&&Kf(n,l),i=(e.ownerDocument||e).createElement("link"),ke(i);var r=i;return r._p=new Promise(function(u,o){r.onload=u,r.onerror=o}),Fe(i,"link",n),t.state.loading|=4,cu(i,a.precedence,e),t.instance=i;case"script":return i=Xl(a.src),(l=e.querySelector(gr(i)))?(t.instance=l,ke(l),l):(n=a,(l=jt.get(i))&&(n=Ee({},a),Pf(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),ke(l),Fe(l,"link",n),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(w(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,cu(n,a.precedence,e));return t.instance}function cu(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,i=l,r=0;r title"):null)}function vb(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jv(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Ii=null;function pb(){}function yb(e,t,a){if(Ii===null)throw Error(w(475));var n=Ii;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var l=Ul(a.href),i=e.querySelector(yr(l));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(n.count++,n=Yu.bind(n),e.then(n,n)),t.state.loading|=4,t.instance=i,ke(i);return}i=e.ownerDocument||e,a=Bv(a),(l=jt.get(l))&&Kf(a,l),i=i.createElement("link"),ke(i);var r=i;r._p=new Promise(function(u,o){r.onload=u,r.onerror=o}),Fe(i,"link",a),t.instance=i}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(n.count++,t=Yu.bind(n),e.addEventListener("load",t),e.addEventListener("error",t))}}function gb(){if(Ii===null)throw Error(w(475));var e=Ii;return e.stylesheets&&e.count===0&&Vs(e,e.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zv)}catch(e){console.error(e)}}Zv(),uh.exports=Iu;var Qv=uh.exports;const Kv=Bl(Qv),Y8=Is({__proto__:null,default:Kv},[Qv]);/** + * @remix-run/router v1.19.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Mb(){return Math.random().toString(36).substr(2,8)}function i0(e,t){return{usr:e.state,key:e.key,idx:t}}function nr(e,t,a,n){return a===void 0&&(a=null),Te({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xa(t):t,{state:a,key:t&&t.key||n||Mb()})}function xn(e){let{pathname:t="/",search:a="",hash:n=""}=e;return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function xa(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substr(a),e=e.substr(0,a));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Db(e,t,a,n){n===void 0&&(n={});let{window:l=document.defaultView,v5Compat:i=!1}=n,r=l.history,u=Ue.Pop,o=null,c=s();c==null&&(c=0,r.replaceState(Te({},r.state,{idx:c}),""));function s(){return(r.state||{idx:null}).idx}function d(){u=Ue.Pop;let T=s(),m=T==null?null:T-c;c=T,o&&o({action:u,location:S.location,delta:m})}function f(T,m){u=Ue.Push;let h=nr(S.location,T,m);a&&a(h,T),c=s()+1;let v=i0(h,c),E=S.createHref(h);try{r.pushState(v,"",E)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;l.location.assign(E)}i&&o&&o({action:u,location:S.location,delta:1})}function y(T,m){u=Ue.Replace;let h=nr(S.location,T,m);a&&a(h,T),c=s();let v=i0(h,c),E=S.createHref(h);r.replaceState(v,"",E),i&&o&&o({action:u,location:S.location,delta:0})}function C(T){let m=l.location.origin!=="null"?l.location.origin:l.location.href,h=typeof T=="string"?T:xn(T);return h=h.replace(/ $/,"%20"),I(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let S={get action(){return u},get location(){return e(l,r)},listen(T){if(o)throw new Error("A history only accepts one active listener");return l.addEventListener(l0,d),o=T,()=>{l.removeEventListener(l0,d),o=null}},createHref(T){return t(l,T)},createURL:C,encodeLocation(T){let m=C(T);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:y,go(T){return r.go(T)}};return S}var fe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fe||(fe={}));const xb=new Set(["lazy","caseSensitive","path","id","index","children"]);function $b(e){return e.index===!0}function lr(e,t,a,n){return a===void 0&&(a=[]),n===void 0&&(n={}),e.map((l,i)=>{let r=[...a,String(i)],u=typeof l.id=="string"?l.id:r.join("-");if(I(l.index!==!0||!l.children,"Cannot specify children on an index route"),I(!n[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),$b(l)){let o=Te({},l,t(l),{id:u});return n[u]=o,o}else{let o=Te({},l,t(l),{id:u,children:void 0});return n[u]=o,l.children&&(o.children=lr(l.children,t,r,n)),o}})}function vn(e,t,a){return a===void 0&&(a="/"),du(e,t,a,!1)}function du(e,t,a,n){let l=typeof t=="string"?xa(t):t,i=Zl(l.pathname||"/",a);if(i==null)return null;let r=Pv(e);Nb(r);let u=null;for(let o=0;u==null&&o{let o={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:r,route:i};o.relativePath.startsWith("/")&&(I(o.relativePath.startsWith(n),'Absolute route path "'+o.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),o.relativePath=o.relativePath.slice(n.length));let c=_a([n,o.relativePath]),s=a.concat(o);i.children&&i.children.length>0&&(I(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Pv(i.children,t,s,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Gb(c,i.index),routesMeta:s})};return e.forEach((i,r)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,r);else for(let o of Jv(i.path))l(i,r,o)}),t}function Jv(e){let t=e.split("/");if(t.length===0)return[];let[a,...n]=t,l=a.endsWith("?"),i=a.replace(/\?$/,"");if(n.length===0)return l?[i,""]:[i];let r=Jv(n.join("/")),u=[];return u.push(...r.map(o=>o===""?i:[i,o].join("/"))),l&&u.push(...r),u.map(o=>e.startsWith("/")&&o===""?"/":o)}function Nb(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:Yb(t.routesMeta.map(n=>n.childrenIndex),a.routesMeta.map(n=>n.childrenIndex)))}const Ub=/^:[\w-]+$/,Lb=3,Hb=2,Bb=1,jb=10,Vb=-2,r0=e=>e==="*";function Gb(e,t){let a=e.split("/"),n=a.length;return a.some(r0)&&(n+=Vb),t&&(n+=Hb),a.filter(l=>!r0(l)).reduce((l,i)=>l+(Ub.test(i)?Lb:i===""?Bb:jb),n)}function Yb(e,t){return e.length===t.length&&e.slice(0,-1).every((n,l)=>n===t[l])?e[e.length-1]-t[t.length-1]:0}function qb(e,t,a){a===void 0&&(a=!1);let{routesMeta:n}=e,l={},i="/",r=[];for(let u=0;u{let{paramName:f,isOptional:y}=s;if(f==="*"){let S=u[d]||"";r=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const C=u[d];return y&&!C?c[f]=void 0:c[f]=(C||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:r,pattern:e}}function kb(e,t,a){t===void 0&&(t=!1),a===void 0&&(a=!0),Dn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(r,u,o)=>(n.push({paramName:u,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),n]}function Xb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Zl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,n=e.charAt(a);return n&&n!=="/"?null:e.slice(a)||"/"}function Zb(e,t){t===void 0&&(t="/");let{pathname:a,search:n="",hash:l=""}=typeof e=="string"?xa(e):e;return{pathname:a?a.startsWith("/")?a:Qb(a,t):t,search:Pb(n),hash:Jb(l)}}function Qb(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function Cc(e,t,a,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+a+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Wv(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function ed(e,t){let a=Wv(e);return t?a.map((n,l)=>l===a.length-1?n.pathname:n.pathnameBase):a.map(n=>n.pathnameBase)}function td(e,t,a,n){n===void 0&&(n=!1);let l;typeof e=="string"?l=xa(e):(l=Te({},e),I(!l.pathname||!l.pathname.includes("?"),Cc("?","pathname","search",l)),I(!l.pathname||!l.pathname.includes("#"),Cc("#","pathname","hash",l)),I(!l.search||!l.search.includes("#"),Cc("#","search","hash",l)));let i=e===""||l.pathname==="",r=i?"/":l.pathname,u;if(r==null)u=a;else{let d=t.length-1;if(!n&&r.startsWith("..")){let f=r.split("/");for(;f[0]==="..";)f.shift(),d-=1;l.pathname=f.join("/")}u=d>=0?t[d]:"/"}let o=Zb(l,u),c=r&&r!=="/"&&r.endsWith("/"),s=(i||r===".")&&a.endsWith("/");return!o.pathname.endsWith("/")&&(c||s)&&(o.pathname+="/"),o}const _a=e=>e.join("/").replace(/\/\/+/g,"/"),Kb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Pb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Jb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Zu{constructor(t,a,n,l){l===void 0&&(l=!1),this.status=t,this.statusText=a||"",this.internal=l,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function yo(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Fv=["post","put","patch","delete"],Wb=new Set(Fv),Fb=["get",...Fv],Ib=new Set(Fb),e4=new Set([301,302,303,307,308]),t4=new Set([307,308]),Ac={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},a4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ci={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ad=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,n4=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Iv="remix-router-transitions";function l4(e){const t=e.window?e.window:typeof window<"u"?window:void 0,a=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!a;I(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let p=e.detectErrorBoundary;l=b=>({hasErrorBoundary:p(b)})}else l=n4;let i={},r=lr(e.routes,l,void 0,i),u,o=e.basename||"/",c=e.unstable_dataStrategy||c4,s=e.unstable_patchRoutesOnNavigation,d=Te({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,y=new Set,C=1e3,S=new Set,T=null,m=null,h=null,v=e.hydrationData!=null,E=vn(r,e.history.location,o),D=null;if(E==null&&!s){let p=ut(404,{pathname:e.history.location.pathname}),{matches:b,route:R}=y0(r);E=b,D={[R.id]:p}}E&&!e.hydrationData&&_r(E,r,e.history.location.pathname).active&&(E=null);let $;if(E)if(E.some(p=>p.route.lazy))$=!1;else if(!E.some(p=>p.route.loader))$=!0;else if(d.v7_partialHydration){let p=e.hydrationData?e.hydrationData.loaderData:null,b=e.hydrationData?e.hydrationData.errors:null,R=O=>O.route.loader?typeof O.route.loader=="function"&&O.route.loader.hydrate===!0?!1:p&&p[O.route.id]!==void 0||b&&b[O.route.id]!==void 0:!0;if(b){let O=E.findIndex(L=>b[L.route.id]!==void 0);$=E.slice(0,O+1).every(R)}else $=E.every(R)}else $=e.hydrationData!=null;else if($=!1,E=[],d.v7_partialHydration){let p=_r(null,r,e.history.location.pathname);p.active&&p.matches&&(E=p.matches)}let x,g={historyAction:e.history.action,location:e.history.location,matches:E,initialized:$,navigation:Ac,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},A=Ue.Pop,U=!1,j,K=!1,xe=new Map,me=null,et=!1,z=!1,Y=[],q=new Set,k=new Map,ye=0,Tt=-1,bt=new Map,it=new Set,ht=new Map,Kt=new Map,ca=new Set,un=new Map,on=new Map,fy=new Map,Ho=!1;function dy(){if(f=e.history.listen(p=>{let{action:b,location:R,delta:O}=p;if(Ho){Ho=!1;return}Dn(on.size===0||O!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let L=Dd({currentLocation:g.location,nextLocation:R,historyAction:b});if(L&&O!=null){Ho=!0,e.history.go(O*-1),Cr(L,{state:"blocked",location:R,proceed(){Cr(L,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),e.history.go(O)},reset(){let B=new Map(g.blockers);B.set(L,ci),rt({blockers:B})}});return}return cn(b,R)}),a){R4(t,xe);let p=()=>C4(t,xe);t.addEventListener("pagehide",p),me=()=>t.removeEventListener("pagehide",p)}return g.initialized||cn(Ue.Pop,g.location,{initialHydration:!0}),x}function hy(){f&&f(),me&&me(),y.clear(),j&&j.abort(),g.fetchers.forEach((p,b)=>Rr(b)),g.blockers.forEach((p,b)=>Md(b))}function my(p){return y.add(p),()=>y.delete(p)}function rt(p,b){b===void 0&&(b={}),g=Te({},g,p);let R=[],O=[];d.v7_fetcherPersist&&g.fetchers.forEach((L,B)=>{L.state==="idle"&&(ca.has(B)?O.push(B):R.push(B))}),[...y].forEach(L=>L(g,{deletedFetchers:O,unstable_viewTransitionOpts:b.viewTransitionOpts,unstable_flushSync:b.flushSync===!0})),d.v7_fetcherPersist&&(R.forEach(L=>g.fetchers.delete(L)),O.forEach(L=>Rr(L)))}function qn(p,b,R){var O,L;let{flushSync:B}=R===void 0?{}:R,G=g.actionData!=null&&g.navigation.formMethod!=null&&qt(g.navigation.formMethod)&&g.navigation.state==="loading"&&((O=p.state)==null?void 0:O._isRedirect)!==!0,N;b.actionData?Object.keys(b.actionData).length>0?N=b.actionData:N=null:G?N=g.actionData:N=null;let X=b.loaderData?v0(g.loaderData,b.loaderData,b.matches||[],b.errors):g.loaderData,V=g.blockers;V.size>0&&(V=new Map(V),V.forEach((ue,ve)=>V.set(ve,ci)));let Q=U===!0||g.navigation.formMethod!=null&&qt(g.navigation.formMethod)&&((L=p.state)==null?void 0:L._isRedirect)!==!0;u&&(r=u,u=void 0),et||A===Ue.Pop||(A===Ue.Push?e.history.push(p,p.state):A===Ue.Replace&&e.history.replace(p,p.state));let se;if(A===Ue.Pop){let ue=xe.get(g.location.pathname);ue&&ue.has(p.pathname)?se={currentLocation:g.location,nextLocation:p}:xe.has(p.pathname)&&(se={currentLocation:p,nextLocation:g.location})}else if(K){let ue=xe.get(g.location.pathname);ue?ue.add(p.pathname):(ue=new Set([p.pathname]),xe.set(g.location.pathname,ue)),se={currentLocation:g.location,nextLocation:p}}rt(Te({},b,{actionData:N,loaderData:X,historyAction:A,location:p,initialized:!0,navigation:Ac,revalidation:"idle",restoreScrollPosition:$d(p,b.matches||g.matches),preventScrollReset:Q,blockers:V}),{viewTransitionOpts:se,flushSync:B===!0}),A=Ue.Pop,U=!1,K=!1,et=!1,z=!1,Y=[]}async function Rd(p,b){if(typeof p=="number"){e.history.go(p);return}let R=qs(g.location,g.matches,o,d.v7_prependBasename,p,d.v7_relativeSplatPath,b==null?void 0:b.fromRouteId,b==null?void 0:b.relative),{path:O,submission:L,error:B}=o0(d.v7_normalizeFormMethod,!1,R,b),G=g.location,N=nr(g.location,O,b&&b.state);N=Te({},N,e.history.encodeLocation(N));let X=b&&b.replace!=null?b.replace:void 0,V=Ue.Push;X===!0?V=Ue.Replace:X===!1||L!=null&&qt(L.formMethod)&&L.formAction===g.location.pathname+g.location.search&&(V=Ue.Replace);let Q=b&&"preventScrollReset"in b?b.preventScrollReset===!0:void 0,se=(b&&b.unstable_flushSync)===!0,ue=Dd({currentLocation:G,nextLocation:N,historyAction:V});if(ue){Cr(ue,{state:"blocked",location:N,proceed(){Cr(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:N}),Rd(p,b)},reset(){let ve=new Map(g.blockers);ve.set(ue,ci),rt({blockers:ve})}});return}return await cn(V,N,{submission:L,pendingError:B,preventScrollReset:Q,replace:b&&b.replace,enableViewTransition:b&&b.unstable_viewTransition,flushSync:se})}function vy(){if(Bo(),rt({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){cn(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}cn(A||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function cn(p,b,R){j&&j.abort(),j=null,A=p,et=(R&&R.startUninterruptedRevalidation)===!0,_y(g.location,g.matches),U=(R&&R.preventScrollReset)===!0,K=(R&&R.enableViewTransition)===!0;let O=u||r,L=R&&R.overrideNavigation,B=vn(O,b,o),G=(R&&R.flushSync)===!0,N=_r(B,O,b.pathname);if(N.active&&N.matches&&(B=N.matches),!B){let{error:re,notFoundMatches:Qe,route:ze}=jo(b.pathname);qn(b,{matches:Qe,loaderData:{},errors:{[ze.id]:re}},{flushSync:G});return}if(g.initialized&&!z&&v4(g.location,b)&&!(R&&R.submission&&qt(R.submission.formMethod))){qn(b,{matches:B},{flushSync:G});return}j=new AbortController;let X=Jn(e.history,b,j.signal,R&&R.submission),V;if(R&&R.pendingError)V=[pl(B).route.id,{type:fe.error,error:R.pendingError}];else if(R&&R.submission&&qt(R.submission.formMethod)){let re=await py(X,b,R.submission,B,N.active,{replace:R.replace,flushSync:G});if(re.shortCircuited)return;if(re.pendingActionResult){let[Qe,ze]=re.pendingActionResult;if(Rt(ze)&&yo(ze.error)&&ze.error.status===404){j=null,qn(b,{matches:re.matches,loaderData:{},errors:{[Qe]:ze.error}});return}}B=re.matches||B,V=re.pendingActionResult,L=_c(b,R.submission),G=!1,N.active=!1,X=Jn(e.history,X.url,X.signal)}let{shortCircuited:Q,matches:se,loaderData:ue,errors:ve}=await yy(X,b,B,N.active,L,R&&R.submission,R&&R.fetcherSubmission,R&&R.replace,R&&R.initialHydration===!0,G,V);Q||(j=null,qn(b,Te({matches:se||B},p0(V),{loaderData:ue,errors:ve})))}async function py(p,b,R,O,L,B){B===void 0&&(B={}),Bo();let G=S4(b,R);if(rt({navigation:G},{flushSync:B.flushSync===!0}),L){let V=await wr(O,b.pathname,p.signal);if(V.type==="aborted")return{shortCircuited:!0};if(V.type==="error"){let{boundaryId:Q,error:se}=Ar(b.pathname,V);return{matches:V.partialMatches,pendingActionResult:[Q,{type:fe.error,error:se}]}}else if(V.matches)O=V.matches;else{let{notFoundMatches:Q,error:se,route:ue}=jo(b.pathname);return{matches:Q,pendingActionResult:[ue.id,{type:fe.error,error:se}]}}}let N,X=_i(O,b);if(!X.route.action&&!X.route.lazy)N={type:fe.error,error:ut(405,{method:p.method,pathname:b.pathname,routeId:X.route.id})};else if(N=(await Il("action",p,[X],O))[0],p.signal.aborted)return{shortCircuited:!0};if(Sn(N)){let V;return B&&B.replace!=null?V=B.replace:V=d0(N.response.headers.get("Location"),new URL(p.url),o)===g.location.pathname+g.location.search,await Fl(p,N,{submission:R,replace:V}),{shortCircuited:!0}}if(bn(N))throw ut(400,{type:"defer-action"});if(Rt(N)){let V=pl(O,X.route.id);return(B&&B.replace)!==!0&&(A=Ue.Push),{matches:O,pendingActionResult:[V.route.id,N]}}return{matches:O,pendingActionResult:[X.route.id,N]}}async function yy(p,b,R,O,L,B,G,N,X,V,Q){let se=L||_c(b,B),ue=B||G||E0(se),ve=!et&&(!d.v7_partialHydration||!X);if(O){if(ve){let Me=Cd(Q);rt(Te({navigation:se},Me!==void 0?{actionData:Me}:{}),{flushSync:V})}let P=await wr(R,b.pathname,p.signal);if(P.type==="aborted")return{shortCircuited:!0};if(P.type==="error"){let{boundaryId:Me,error:St}=Ar(b.pathname,P);return{matches:P.partialMatches,loaderData:{},errors:{[Me]:St}}}else if(P.matches)R=P.matches;else{let{error:Me,notFoundMatches:St,route:Re}=jo(b.pathname);return{matches:St,loaderData:{},errors:{[Re.id]:Me}}}}let re=u||r,[Qe,ze]=c0(e.history,g,R,ue,b,d.v7_partialHydration&&X===!0,d.v7_skipActionErrorRevalidation,z,Y,q,ca,ht,it,re,o,Q);if(Vo(P=>!(R&&R.some(Me=>Me.route.id===P))||Qe&&Qe.some(Me=>Me.route.id===P)),Tt=++ye,Qe.length===0&&ze.length===0){let P=Td();return qn(b,Te({matches:R,loaderData:{},errors:Q&&Rt(Q[1])?{[Q[0]]:Q[1].error}:null},p0(Q),P?{fetchers:new Map(g.fetchers)}:{}),{flushSync:V}),{shortCircuited:!0}}if(ve){let P={};if(!O){P.navigation=se;let Me=Cd(Q);Me!==void 0&&(P.actionData=Me)}ze.length>0&&(P.fetchers=gy(ze)),rt(P,{flushSync:V})}ze.forEach(P=>{k.has(P.key)&&za(P.key),P.controller&&k.set(P.key,P.controller)});let ei=()=>ze.forEach(P=>za(P.key));j&&j.signal.addEventListener("abort",ei);let{loaderResults:Na,fetcherResults:kn}=await Ad(g.matches,R,Qe,ze,p);if(p.signal.aborted)return{shortCircuited:!0};j&&j.signal.removeEventListener("abort",ei),ze.forEach(P=>k.delete(P.key));let Xn=g0([...Na,...kn]);if(Xn){if(Xn.idx>=Qe.length){let P=ze[Xn.idx-Qe.length].key;it.add(P)}return await Fl(p,Xn.result,{replace:N}),{shortCircuited:!0}}let{loaderData:Zn,errors:Pt}=m0(g,R,Qe,Na,Q,ze,kn,un);un.forEach((P,Me)=>{P.subscribe(St=>{(St||P.done)&&un.delete(Me)})}),d.v7_partialHydration&&X&&g.errors&&Object.entries(g.errors).filter(P=>{let[Me]=P;return!Qe.some(St=>St.route.id===Me)}).forEach(P=>{let[Me,St]=P;Pt=Object.assign(Pt||{},{[Me]:St})});let Tr=Td(),Or=Od(Tt),Mr=Tr||Or||ze.length>0;return Te({matches:R,loaderData:Zn,errors:Pt},Mr?{fetchers:new Map(g.fetchers)}:{})}function Cd(p){if(p&&!Rt(p[1]))return{[p[0]]:p[1].data};if(g.actionData)return Object.keys(g.actionData).length===0?null:g.actionData}function gy(p){return p.forEach(b=>{let R=g.fetchers.get(b.key),O=si(void 0,R?R.data:void 0);g.fetchers.set(b.key,O)}),new Map(g.fetchers)}function by(p,b,R,O){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");k.has(p)&&za(p);let L=(O&&O.unstable_flushSync)===!0,B=u||r,G=qs(g.location,g.matches,o,d.v7_prependBasename,R,d.v7_relativeSplatPath,b,O==null?void 0:O.relative),N=vn(B,G,o),X=_r(N,B,G);if(X.active&&X.matches&&(N=X.matches),!N){sa(p,b,ut(404,{pathname:G}),{flushSync:L});return}let{path:V,submission:Q,error:se}=o0(d.v7_normalizeFormMethod,!0,G,O);if(se){sa(p,b,se,{flushSync:L});return}let ue=_i(N,V);if(U=(O&&O.preventScrollReset)===!0,Q&&qt(Q.formMethod)){Sy(p,b,V,ue,N,X.active,L,Q);return}ht.set(p,{routeId:b,path:V}),Ey(p,b,V,ue,N,X.active,L,Q)}async function Sy(p,b,R,O,L,B,G,N){Bo(),ht.delete(p);function X(Re){if(!Re.route.action&&!Re.route.lazy){let fa=ut(405,{method:N.formMethod,pathname:R,routeId:b});return sa(p,b,fa,{flushSync:G}),!0}return!1}if(!B&&X(O))return;let V=g.fetchers.get(p);$a(p,E4(N,V),{flushSync:G});let Q=new AbortController,se=Jn(e.history,R,Q.signal,N);if(B){let Re=await wr(L,R,se.signal);if(Re.type==="aborted")return;if(Re.type==="error"){let{error:fa}=Ar(R,Re);sa(p,b,fa,{flushSync:G});return}else if(Re.matches){if(L=Re.matches,O=_i(L,R),X(O))return}else{sa(p,b,ut(404,{pathname:R}),{flushSync:G});return}}k.set(p,Q);let ue=ye,re=(await Il("action",se,[O],L))[0];if(se.signal.aborted){k.get(p)===Q&&k.delete(p);return}if(d.v7_fetcherPersist&&ca.has(p)){if(Sn(re)||Rt(re)){$a(p,ja(void 0));return}}else{if(Sn(re))if(k.delete(p),Tt>ue){$a(p,ja(void 0));return}else return it.add(p),$a(p,si(N)),Fl(se,re,{fetcherSubmission:N});if(Rt(re)){sa(p,b,re.error);return}}if(bn(re))throw ut(400,{type:"defer-action"});let Qe=g.navigation.location||g.location,ze=Jn(e.history,Qe,Q.signal),ei=u||r,Na=g.navigation.state!=="idle"?vn(ei,g.navigation.location,o):g.matches;I(Na,"Didn't find any matches after fetcher action");let kn=++ye;bt.set(p,kn);let Xn=si(N,re.data);g.fetchers.set(p,Xn);let[Zn,Pt]=c0(e.history,g,Na,N,Qe,!1,d.v7_skipActionErrorRevalidation,z,Y,q,ca,ht,it,ei,o,[O.route.id,re]);Pt.filter(Re=>Re.key!==p).forEach(Re=>{let fa=Re.key,Nd=g.fetchers.get(fa),Oy=si(void 0,Nd?Nd.data:void 0);g.fetchers.set(fa,Oy),k.has(fa)&&za(fa),Re.controller&&k.set(fa,Re.controller)}),rt({fetchers:new Map(g.fetchers)});let Tr=()=>Pt.forEach(Re=>za(Re.key));Q.signal.addEventListener("abort",Tr);let{loaderResults:Or,fetcherResults:Mr}=await Ad(g.matches,Na,Zn,Pt,ze);if(Q.signal.aborted)return;Q.signal.removeEventListener("abort",Tr),bt.delete(p),k.delete(p),Pt.forEach(Re=>k.delete(Re.key));let P=g0([...Or,...Mr]);if(P){if(P.idx>=Zn.length){let Re=Pt[P.idx-Zn.length].key;it.add(Re)}return Fl(ze,P.result)}let{loaderData:Me,errors:St}=m0(g,g.matches,Zn,Or,void 0,Pt,Mr,un);if(g.fetchers.has(p)){let Re=ja(re.data);g.fetchers.set(p,Re)}Od(kn),g.navigation.state==="loading"&&kn>Tt?(I(A,"Expected pending action"),j&&j.abort(),qn(g.navigation.location,{matches:Na,loaderData:Me,errors:St,fetchers:new Map(g.fetchers)})):(rt({errors:St,loaderData:v0(g.loaderData,Me,Na,St),fetchers:new Map(g.fetchers)}),z=!1)}async function Ey(p,b,R,O,L,B,G,N){let X=g.fetchers.get(p);$a(p,si(N,X?X.data:void 0),{flushSync:G});let V=new AbortController,Q=Jn(e.history,R,V.signal);if(B){let re=await wr(L,R,Q.signal);if(re.type==="aborted")return;if(re.type==="error"){let{error:Qe}=Ar(R,re);sa(p,b,Qe,{flushSync:G});return}else if(re.matches)L=re.matches,O=_i(L,R);else{sa(p,b,ut(404,{pathname:R}),{flushSync:G});return}}k.set(p,V);let se=ye,ve=(await Il("loader",Q,[O],L))[0];if(bn(ve)&&(ve=await lp(ve,Q.signal,!0)||ve),k.get(p)===V&&k.delete(p),!Q.signal.aborted){if(ca.has(p)){$a(p,ja(void 0));return}if(Sn(ve))if(Tt>se){$a(p,ja(void 0));return}else{it.add(p),await Fl(Q,ve);return}if(Rt(ve)){sa(p,b,ve.error);return}I(!bn(ve),"Unhandled fetcher deferred data"),$a(p,ja(ve.data))}}async function Fl(p,b,R){let{submission:O,fetcherSubmission:L,replace:B}=R===void 0?{}:R;b.response.headers.has("X-Remix-Revalidate")&&(z=!0);let G=b.response.headers.get("Location");I(G,"Expected a Location header on the redirect Response"),G=d0(G,new URL(p.url),o);let N=nr(g.location,G,{_isRedirect:!0});if(a){let ve=!1;if(b.response.headers.has("X-Remix-Reload-Document"))ve=!0;else if(ad.test(G)){const re=e.history.createURL(G);ve=re.origin!==t.location.origin||Zl(re.pathname,o)==null}if(ve){B?t.location.replace(G):t.location.assign(G);return}}j=null;let X=B===!0||b.response.headers.has("X-Remix-Replace")?Ue.Replace:Ue.Push,{formMethod:V,formAction:Q,formEncType:se}=g.navigation;!O&&!L&&V&&Q&&se&&(O=E0(g.navigation));let ue=O||L;if(t4.has(b.response.status)&&ue&&qt(ue.formMethod))await cn(X,N,{submission:Te({},ue,{formAction:G}),preventScrollReset:U});else{let ve=_c(N,O);await cn(X,N,{overrideNavigation:ve,fetcherSubmission:L,preventScrollReset:U})}}async function Il(p,b,R,O){try{let L=await s4(c,p,b,R,O,i,l);return await Promise.all(L.map((B,G)=>{if(y4(B)){let N=B.result;return{type:fe.redirect,response:h4(N,b,R[G].route.id,O,o,d.v7_relativeSplatPath)}}return d4(B)}))}catch(L){return R.map(()=>({type:fe.error,error:L}))}}async function Ad(p,b,R,O,L){let[B,...G]=await Promise.all([R.length?Il("loader",L,R,b):[],...O.map(N=>{if(N.matches&&N.match&&N.controller){let X=Jn(e.history,N.path,N.controller.signal);return Il("loader",X,[N.match],N.matches).then(V=>V[0])}else return Promise.resolve({type:fe.error,error:ut(404,{pathname:N.path})})})]);return await Promise.all([S0(p,R,B,B.map(()=>L.signal),!1,g.loaderData),S0(p,O.map(N=>N.match),G,O.map(N=>N.controller?N.controller.signal:null),!0)]),{loaderResults:B,fetcherResults:G}}function Bo(){z=!0,Y.push(...Vo()),ht.forEach((p,b)=>{k.has(b)&&(q.add(b),za(b))})}function $a(p,b,R){R===void 0&&(R={}),g.fetchers.set(p,b),rt({fetchers:new Map(g.fetchers)},{flushSync:(R&&R.flushSync)===!0})}function sa(p,b,R,O){O===void 0&&(O={});let L=pl(g.matches,b);Rr(p),rt({errors:{[L.route.id]:R},fetchers:new Map(g.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function _d(p){return d.v7_fetcherPersist&&(Kt.set(p,(Kt.get(p)||0)+1),ca.has(p)&&ca.delete(p)),g.fetchers.get(p)||a4}function Rr(p){let b=g.fetchers.get(p);k.has(p)&&!(b&&b.state==="loading"&&bt.has(p))&&za(p),ht.delete(p),bt.delete(p),it.delete(p),ca.delete(p),q.delete(p),g.fetchers.delete(p)}function Ry(p){if(d.v7_fetcherPersist){let b=(Kt.get(p)||0)-1;b<=0?(Kt.delete(p),ca.add(p)):Kt.set(p,b)}else Rr(p);rt({fetchers:new Map(g.fetchers)})}function za(p){let b=k.get(p);I(b,"Expected fetch controller: "+p),b.abort(),k.delete(p)}function wd(p){for(let b of p){let R=_d(b),O=ja(R.data);g.fetchers.set(b,O)}}function Td(){let p=[],b=!1;for(let R of it){let O=g.fetchers.get(R);I(O,"Expected fetcher: "+R),O.state==="loading"&&(it.delete(R),p.push(R),b=!0)}return wd(p),b}function Od(p){let b=[];for(let[R,O]of bt)if(O0}function Cy(p,b){let R=g.blockers.get(p)||ci;return on.get(p)!==b&&on.set(p,b),R}function Md(p){g.blockers.delete(p),on.delete(p)}function Cr(p,b){let R=g.blockers.get(p)||ci;I(R.state==="unblocked"&&b.state==="blocked"||R.state==="blocked"&&b.state==="blocked"||R.state==="blocked"&&b.state==="proceeding"||R.state==="blocked"&&b.state==="unblocked"||R.state==="proceeding"&&b.state==="unblocked","Invalid blocker state transition: "+R.state+" -> "+b.state);let O=new Map(g.blockers);O.set(p,b),rt({blockers:O})}function Dd(p){let{currentLocation:b,nextLocation:R,historyAction:O}=p;if(on.size===0)return;on.size>1&&Dn(!1,"A router only supports one blocker at a time");let L=Array.from(on.entries()),[B,G]=L[L.length-1],N=g.blockers.get(B);if(!(N&&N.state==="proceeding")&&G({currentLocation:b,nextLocation:R,historyAction:O}))return B}function jo(p){let b=ut(404,{pathname:p}),R=u||r,{matches:O,route:L}=y0(R);return Vo(),{notFoundMatches:O,route:L,error:b}}function Ar(p,b){return{boundaryId:pl(b.partialMatches).route.id,error:ut(400,{type:"route-discovery",pathname:p,message:b.error!=null&&"message"in b.error?b.error:String(b.error)})}}function Vo(p){let b=[];return un.forEach((R,O)=>{(!p||p(O))&&(R.cancel(),b.push(O),un.delete(O))}),b}function Ay(p,b,R){if(T=p,h=b,m=R||null,!v&&g.navigation===Ac){v=!0;let O=$d(g.location,g.matches);O!=null&&rt({restoreScrollPosition:O})}return()=>{T=null,h=null,m=null}}function xd(p,b){return m&&m(p,b.map(O=>zb(O,g.loaderData)))||p.key}function _y(p,b){if(T&&h){let R=xd(p,b);T[R]=h()}}function $d(p,b){if(T){let R=xd(p,b),O=T[R];if(typeof O=="number")return O}return null}function _r(p,b,R){if(s){if(S.has(R))return{active:!1,matches:p};if(p){if(Object.keys(p[0].params).length>0)return{active:!0,matches:du(b,R,o,!0)}}else return{active:!0,matches:du(b,R,o,!0)||[]}}return{active:!1,matches:null}}async function wr(p,b,R){let O=p;for(;;){let L=u==null,B=u||r;try{await o4(s,b,O,B,i,l,fy,R)}catch(X){return{type:"error",error:X,partialMatches:O}}finally{L&&(r=[...r])}if(R.aborted)return{type:"aborted"};let G=vn(B,b,o);if(G)return zd(b,S),{type:"success",matches:G};let N=du(B,b,o,!0);if(!N||O.length===N.length&&O.every((X,V)=>X.route.id===N[V].route.id))return zd(b,S),{type:"success",matches:null};O=N}}function zd(p,b){if(b.size>=C){let R=b.values().next().value;b.delete(R)}b.add(p)}function wy(p){i={},u=lr(p,l,void 0,i)}function Ty(p,b){let R=u==null;tp(p,b,u||r,i,l),R&&(r=[...r],rt({}))}return x={get basename(){return o},get future(){return d},get state(){return g},get routes(){return r},get window(){return t},initialize:dy,subscribe:my,enableScrollRestoration:Ay,navigate:Rd,fetch:by,revalidate:vy,createHref:p=>e.history.createHref(p),encodeLocation:p=>e.history.encodeLocation(p),getFetcher:_d,deleteFetcher:Ry,dispose:hy,getBlocker:Cy,deleteBlocker:Md,patchRoutes:Ty,_internalFetchControllers:k,_internalActiveDeferreds:un,_internalSetRoutes:wy},x}function i4(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function qs(e,t,a,n,l,i,r,u){let o,c;if(r){o=[];for(let d of t)if(o.push(d),d.route.id===r){c=d;break}}else o=t,c=t[t.length-1];let s=td(l||".",ed(o,i),Zl(e.pathname,a)||e.pathname,u==="path");return l==null&&(s.search=e.search,s.hash=e.hash),(l==null||l===""||l===".")&&c&&c.route.index&&!nd(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n&&a!=="/"&&(s.pathname=s.pathname==="/"?a:_a([a,s.pathname])),xn(s)}function o0(e,t,a,n){if(!n||!i4(n))return{path:a};if(n.formMethod&&!b4(n.formMethod))return{path:a,error:ut(405,{method:n.formMethod})};let l=()=>({path:a,error:ut(400,{type:"invalid-body"})}),i=n.formMethod||"get",r=e?i.toUpperCase():i.toLowerCase(),u=ap(a);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!qt(r))return l();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,C)=>{let[S,T]=C;return""+y+S+"="+T+` +`},""):String(n.body);return{path:a,submission:{formMethod:r,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!qt(r))return l();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:a,submission:{formMethod:r,formAction:u,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return l()}}}I(typeof FormData=="function","FormData is not available in this environment");let o,c;if(n.formData)o=ks(n.formData),c=n.formData;else if(n.body instanceof FormData)o=ks(n.body),c=n.body;else if(n.body instanceof URLSearchParams)o=n.body,c=h0(o);else if(n.body==null)o=new URLSearchParams,c=new FormData;else try{o=new URLSearchParams(n.body),c=h0(o)}catch{return l()}let s={formMethod:r,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(qt(s.formMethod))return{path:a,submission:s};let d=xa(a);return t&&d.search&&nd(d.search)&&o.append("index",""),d.search="?"+o,{path:xn(d),submission:s}}function r4(e,t){let a=e;if(t){let n=e.findIndex(l=>l.route.id===t);n>=0&&(a=e.slice(0,n))}return a}function c0(e,t,a,n,l,i,r,u,o,c,s,d,f,y,C,S){let T=S?Rt(S[1])?S[1].error:S[1].data:void 0,m=e.createURL(t.location),h=e.createURL(l),v=S&&Rt(S[1])?S[0]:void 0,E=v?r4(a,v):a,D=S?S[1].statusCode:void 0,$=r&&D&&D>=400,x=E.filter((A,U)=>{let{route:j}=A;if(j.lazy)return!0;if(j.loader==null)return!1;if(i)return typeof j.loader!="function"||j.loader.hydrate?!0:t.loaderData[j.id]===void 0&&(!t.errors||t.errors[j.id]===void 0);if(u4(t.loaderData,t.matches[U],A)||o.some(me=>me===A.route.id))return!0;let K=t.matches[U],xe=A;return s0(A,Te({currentUrl:m,currentParams:K.params,nextUrl:h,nextParams:xe.params},n,{actionResult:T,actionStatus:D,defaultShouldRevalidate:$?!1:u||m.pathname+m.search===h.pathname+h.search||m.search!==h.search||ep(K,xe)}))}),g=[];return d.forEach((A,U)=>{if(i||!a.some(et=>et.route.id===A.routeId)||s.has(U))return;let j=vn(y,A.path,C);if(!j){g.push({key:U,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let K=t.fetchers.get(U),xe=_i(j,A.path),me=!1;f.has(U)?me=!1:c.has(U)?(c.delete(U),me=!0):K&&K.state!=="idle"&&K.data===void 0?me=u:me=s0(xe,Te({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:a[a.length-1].params},n,{actionResult:T,actionStatus:D,defaultShouldRevalidate:$?!1:u})),me&&g.push({key:U,routeId:A.routeId,path:A.path,matches:j,match:xe,controller:new AbortController})}),[x,g]}function u4(e,t,a){let n=!t||a.route.id!==t.route.id,l=e[a.route.id]===void 0;return n||l}function ep(e,t){let a=e.route.path;return e.pathname!==t.pathname||a!=null&&a.endsWith("*")&&e.params["*"]!==t.params["*"]}function s0(e,t){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(t);if(typeof a=="boolean")return a}return t.defaultShouldRevalidate}async function o4(e,t,a,n,l,i,r,u){let o=[t,...a.map(c=>c.route.id)].join("-");try{let c=r.get(o);c||(c=e({path:t,matches:a,patch:(s,d)=>{u.aborted||tp(s,d,n,l,i)}}),r.set(o,c)),c&&p4(c)&&await c}finally{r.delete(o)}}function tp(e,t,a,n,l){if(e){var i;let r=n[e];I(r,"No route found to patch children into: routeId = "+e);let u=lr(t,l,[e,"patch",String(((i=r.children)==null?void 0:i.length)||"0")],n);r.children?r.children.push(...u):r.children=u}else{let r=lr(t,l,["patch",String(a.length||"0")],n);a.push(...r)}}async function f0(e,t,a){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let l=a[e.id];I(l,"No route found in manifest");let i={};for(let r in n){let o=l[r]!==void 0&&r!=="hasErrorBoundary";Dn(!o,'Route "'+l.id+'" has a static property "'+r+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+r+'" will be ignored.')),!o&&!xb.has(r)&&(i[r]=n[r])}Object.assign(l,i),Object.assign(l,Te({},t(l),{lazy:void 0}))}function c4(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function s4(e,t,a,n,l,i,r,u){let o=n.reduce((d,f)=>d.add(f.route.id),new Set),c=new Set,s=await e({matches:l.map(d=>{let f=o.has(d.route.id);return Te({},d,{shouldLoad:f,resolve:C=>(c.add(d.route.id),f?f4(t,a,d,i,r,C,u):Promise.resolve({type:fe.data,result:void 0}))})}),request:a,params:l[0].params,context:u});return l.forEach(d=>I(c.has(d.route.id),'`match.resolve()` was not called for route id "'+d.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),s.filter((d,f)=>o.has(l[f].route.id))}async function f4(e,t,a,n,l,i,r){let u,o,c=s=>{let d,f=new Promise((S,T)=>d=T);o=()=>d(),t.signal.addEventListener("abort",o);let y=S=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+a.route.id+"]"))):s({request:t,params:a.params,context:r},...S!==void 0?[S]:[]),C;return i?C=i(S=>y(S)):C=(async()=>{try{return{type:"data",result:await y()}}catch(S){return{type:"error",result:S}}})(),Promise.race([C,f])};try{let s=a.route[e];if(a.route.lazy)if(s){let d,[f]=await Promise.all([c(s).catch(y=>{d=y}),f0(a.route,l,n)]);if(d!==void 0)throw d;u=f}else if(await f0(a.route,l,n),s=a.route[e],s)u=await c(s);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw ut(405,{method:t.method,pathname:f,routeId:a.route.id})}else return{type:fe.data,result:void 0};else if(s)u=await c(s);else{let d=new URL(t.url),f=d.pathname+d.search;throw ut(404,{pathname:f})}I(u.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+a.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(s){return{type:fe.error,result:s}}finally{o&&t.signal.removeEventListener("abort",o)}return u}async function d4(e){let{result:t,type:a}=e;if(np(t)){let c;try{let s=t.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(s){return{type:fe.error,error:s}}return a===fe.error?{type:fe.error,error:new Zu(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:fe.data,data:c,statusCode:t.status,headers:t.headers}}if(a===fe.error){if(b0(t)){var n;if(t.data instanceof Error){var l;return{type:fe.error,error:t.data,statusCode:(l=t.init)==null?void 0:l.status}}t=new Zu(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:fe.error,error:t,statusCode:yo(t)?t.status:void 0}}if(g4(t)){var i,r;return{type:fe.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((r=t.init)==null?void 0:r.headers)&&new Headers(t.init.headers)}}if(b0(t)){var u,o;return{type:fe.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:fe.data,data:t}}function h4(e,t,a,n,l,i){let r=e.headers.get("Location");if(I(r,"Redirects returned/thrown from loaders/actions must have a Location header"),!ad.test(r)){let u=n.slice(0,n.findIndex(o=>o.route.id===a)+1);r=qs(new URL(t.url),u,l,!0,r,i),e.headers.set("Location",r)}return e}function d0(e,t,a){if(ad.test(e)){let n=e,l=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=Zl(l.pathname,a)!=null;if(l.origin===t.origin&&i)return l.pathname+l.search+l.hash}return e}function Jn(e,t,a,n){let l=e.createURL(ap(t)).toString(),i={signal:a};if(n&&qt(n.formMethod)){let{formMethod:r,formEncType:u}=n;i.method=r.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(n.json)):u==="text/plain"?i.body=n.text:u==="application/x-www-form-urlencoded"&&n.formData?i.body=ks(n.formData):i.body=n.formData}return new Request(l,i)}function ks(e){let t=new URLSearchParams;for(let[a,n]of e.entries())t.append(a,typeof n=="string"?n:n.name);return t}function h0(e){let t=new FormData;for(let[a,n]of e.entries())t.append(a,n);return t}function m4(e,t,a,n,l,i){let r={},u=null,o,c=!1,s={},d=n&&Rt(n[1])?n[1].error:void 0;return a.forEach((f,y)=>{let C=t[y].route.id;if(I(!Sn(f),"Cannot handle redirect results in processLoaderData"),Rt(f)){let S=f.error;d!==void 0&&(S=d,d=void 0),u=u||{};{let T=pl(e,C);u[T.route.id]==null&&(u[T.route.id]=S)}r[C]=void 0,c||(c=!0,o=yo(f.error)?f.error.status:500),f.headers&&(s[C]=f.headers)}else bn(f)?(l.set(C,f.deferredData),r[C]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!c&&(o=f.statusCode),f.headers&&(s[C]=f.headers)):(r[C]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(o=f.statusCode),f.headers&&(s[C]=f.headers))}),d!==void 0&&n&&(u={[n[0]]:d},r[n[0]]=void 0),{loaderData:r,errors:u,statusCode:o||200,loaderHeaders:s}}function m0(e,t,a,n,l,i,r,u){let{loaderData:o,errors:c}=m4(t,a,n,l,u);for(let s=0;sn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function y0(e){let t=e.length===1?e[0]:e.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ut(e,t){let{pathname:a,routeId:n,method:l,type:i,message:r}=t===void 0?{}:t,u="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(u="Bad Request",i==="route-discovery"?o='Unable to match URL "'+a+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+r):l&&a&&n?o="You made a "+l+' request to "'+a+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?o="defer() is not supported in actions":i==="invalid-body"&&(o="Unable to encode submission body")):e===403?(u="Forbidden",o='Route "'+n+'" does not match URL "'+a+'"'):e===404?(u="Not Found",o='No route matches URL "'+a+'"'):e===405&&(u="Method Not Allowed",l&&a&&n?o="You made a "+l.toUpperCase()+' request to "'+a+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":l&&(o='Invalid request method "'+l.toUpperCase()+'"')),new Zu(e||500,u,new Error(o),!0)}function g0(e){for(let t=e.length-1;t>=0;t--){let a=e[t];if(Sn(a))return{result:a,idx:t}}}function ap(e){let t=typeof e=="string"?xa(e):e;return xn(Te({},t,{hash:""}))}function v4(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function p4(e){return typeof e=="object"&&e!=null&&"then"in e}function y4(e){return np(e.result)&&e4.has(e.result.status)}function bn(e){return e.type===fe.deferred}function Rt(e){return e.type===fe.error}function Sn(e){return(e&&e.type)===fe.redirect}function b0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function g4(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function np(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function b4(e){return Ib.has(e.toLowerCase())}function qt(e){return Wb.has(e.toLowerCase())}async function S0(e,t,a,n,l,i){for(let r=0;rd.route.id===o.route.id),s=c!=null&&!ep(c,o)&&(i&&i[o.route.id])!==void 0;if(bn(u)&&(l||s)){let d=n[r];I(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await lp(u,d,l).then(f=>{f&&(a[r]=f||a[r])})}}}async function lp(e,t,a){if(a===void 0&&(a=!1),!await e.deferredData.resolveData(t)){if(a)try{return{type:fe.data,data:e.deferredData.unwrappedData}}catch(l){return{type:fe.error,error:l}}return{type:fe.data,data:e.deferredData.data}}}function nd(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function _i(e,t){let a=typeof t=="string"?xa(t).search:t.search;if(e[e.length-1].route.index&&nd(a||""))return e[e.length-1];let n=Wv(e);return n[n.length-1]}function E0(e){let{formMethod:t,formAction:a,formEncType:n,text:l,formData:i,json:r}=e;if(!(!t||!a||!n)){if(l!=null)return{formMethod:t,formAction:a,formEncType:n,formData:void 0,json:void 0,text:l};if(i!=null)return{formMethod:t,formAction:a,formEncType:n,formData:i,json:void 0,text:void 0};if(r!==void 0)return{formMethod:t,formAction:a,formEncType:n,formData:void 0,json:r,text:void 0}}}function _c(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function S4(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function si(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function E4(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ja(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function R4(e,t){try{let a=e.sessionStorage.getItem(Iv);if(a){let n=JSON.parse(a);for(let[l,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(l,new Set(i||[]))}}catch{}}function C4(e,t){if(t.size>0){let a={};for(let[n,l]of t)a[n]=[...l];try{e.sessionStorage.setItem(Iv,JSON.stringify(a))}catch(n){Dn(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.26.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Qu(){return Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),_.useCallback(function(c,s){if(s===void 0&&(s={}),!u.current)return;if(typeof c=="number"){n.go(c);return}let d=td(c,JSON.parse(r),i,s.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:_a([t,d.pathname])),(s.replace?n.replace:n.push)(d,s.state,s)},[t,n,r,i,e])}function q8(){let{matches:e}=_.useContext(rn),t=e[e.length-1];return t?t.params:{}}function op(e,t){let{relative:a}=t===void 0?{}:t,{future:n}=_.useContext(Gn),{matches:l}=_.useContext(rn),{pathname:i}=bo(),r=JSON.stringify(ed(l,n.v7_relativeSplatPath));return _.useMemo(()=>td(e,JSON.parse(r),i,a==="path"),[e,r,i,a])}function T4(e,t,a,n){br()||I(!1);let{navigator:l}=_.useContext(Gn),{matches:i}=_.useContext(rn),r=i[i.length-1],u=r?r.params:{};r&&r.pathname;let o=r?r.pathnameBase:"/";r&&r.route;let c=bo(),s;s=c;let d=s.pathname||"/",f=d;if(o!=="/"){let S=o.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=vn(e,{pathname:f});return $4(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:_a([o,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?o:_a([o,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,a,n)}function O4(){let e=U4(),t=yo(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),a?_.createElement("pre",{style:l},a):null,null)}const M4=_.createElement(O4,null);class D4 extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){console.error("React Router caught the following error during render",t,a)}render(){return this.state.error!==void 0?_.createElement(rn.Provider,{value:this.props.routeContext},_.createElement(rp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function x4(e){let{routeContext:t,match:a,children:n}=e,l=_.useContext(go);return l&&l.static&&l.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=a.route.id),_.createElement(rn.Provider,{value:t},n)}function $4(e,t,a,n){var l;if(t===void 0&&(t=[]),a===void 0&&(a=null),n===void 0&&(n=null),e==null){var i;if(!a)return null;if(a.errors)e=a.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let r=e,u=(l=a)==null?void 0:l.errors;if(u!=null){let s=r.findIndex(d=>d.route.id&&(u==null?void 0:u[d.route.id])!==void 0);s>=0||I(!1),r=r.slice(0,Math.min(r.length,s+1))}let o=!1,c=-1;if(a&&n&&n.v7_partialHydration)for(let s=0;s=0?r=r.slice(0,c+1):r=[r[0]];break}}}return r.reduceRight((s,d,f)=>{let y,C=!1,S=null,T=null;a&&(y=u&&d.route.id?u[d.route.id]:void 0,S=d.route.errorElement||M4,o&&(c<0&&f===0?(C=!0,T=null):c===f&&(C=!0,T=d.route.hydrateFallbackElement||null)));let m=t.concat(r.slice(0,f+1)),h=()=>{let v;return y?v=S:C?v=T:d.route.Component?v=_.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=s,_.createElement(x4,{match:d,routeContext:{outlet:s,matches:m,isDataRoute:a!=null},children:v})};return a&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?_.createElement(D4,{location:a.location,revalidation:a.revalidation,component:S,error:y,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var cp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cp||{}),Ll=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ll||{});function z4(e){let t=_.useContext(go);return t||I(!1),t}function sp(e){let t=_.useContext(ip);return t||I(!1),t}function N4(e){let t=_.useContext(rn);return t||I(!1),t}function id(e){let t=N4(),a=t.matches[t.matches.length-1];return a.route.id||I(!1),a.route.id}function k8(){let e=sp(Ll.UseLoaderData),t=id(Ll.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function U4(){var e;let t=_.useContext(rp),a=sp(Ll.UseRouteError),n=id(Ll.UseRouteError);return t!==void 0?t:(e=a.errors)==null?void 0:e[n]}function L4(){let{router:e}=z4(cp.UseNavigateStable),t=id(Ll.UseNavigateStable),a=_.useRef(!1);return up(()=>{a.current=!0}),_.useCallback(function(l,i){i===void 0&&(i={}),a.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Qu({fromRouteId:t},i)))},[e,t])}function H4(e){let{basename:t="/",children:a=null,location:n,navigationType:l=Ue.Pop,navigator:i,static:r=!1,future:u}=e;br()&&I(!1);let o=t.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:o,navigator:i,static:r,future:Qu({v7_relativeSplatPath:!1},u)}),[o,u,i,r]);typeof n=="string"&&(n=xa(n));let{pathname:s="/",search:d="",hash:f="",state:y=null,key:C="default"}=n,S=_.useMemo(()=>{let T=Zl(s,o);return T==null?null:{location:{pathname:T,search:d,hash:f,state:y,key:C},navigationType:l}},[o,s,d,f,y,C,l]);return S==null?null:_.createElement(Gn.Provider,{value:c},_.createElement(ld.Provider,{children:a,value:S}))}new Promise(()=>{});function B4(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(a[l]=e[l]);return a}function V4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function G4(e,t){return e.button===0&&(!t||t==="_self")&&!V4(e)}const Y4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],q4="6";try{window.__reactRouterVersion=q4}catch{}function k4(e,t){return l4({basename:void 0,future:ir({},void 0,{v7_prependBasename:!0}),history:Ob({window:void 0}),hydrationData:X4(),routes:e,mapRouteProperties:B4,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function X4(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ir({},t,{errors:Z4(t.errors)})),t}function Z4(e){if(!e)return null;let t=Object.entries(e),a={};for(let[n,l]of t)if(l&&l.__type==="RouteErrorResponse")a[n]=new Zu(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let i=window[l.__subType];if(typeof i=="function")try{let r=new i(l.message);r.stack="",a[n]=r}catch{}}if(a[n]==null){let i=new Error(l.message);i.stack="",a[n]=i}}else a[n]=l;return a}const Q4=_.createContext({isTransitioning:!1}),K4=_.createContext(new Map),P4="startTransition",R0=Fc[P4],J4="flushSync",C0=Wy[J4];function W4(e){R0?R0(e):e()}function fi(e){C0?C0(e):e()}class F4{constructor(){this.status="pending",this.promise=new Promise((t,a)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",a(n))}})}}function I4(e){let{fallbackElement:t,router:a,future:n}=e,[l,i]=_.useState(a.state),[r,u]=_.useState(),[o,c]=_.useState({isTransitioning:!1}),[s,d]=_.useState(),[f,y]=_.useState(),[C,S]=_.useState(),T=_.useRef(new Map),{v7_startTransition:m}=n||{},h=_.useCallback(g=>{m?W4(g):g()},[m]),v=_.useCallback((g,A)=>{let{deletedFetchers:U,unstable_flushSync:j,unstable_viewTransitionOpts:K}=A;U.forEach(me=>T.current.delete(me)),g.fetchers.forEach((me,et)=>{me.data!==void 0&&T.current.set(et,me.data)});let xe=a.window==null||a.window.document==null||typeof a.window.document.startViewTransition!="function";if(!K||xe){j?fi(()=>i(g)):h(()=>i(g));return}if(j){fi(()=>{f&&(s&&s.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:K.currentLocation,nextLocation:K.nextLocation})});let me=a.window.document.startViewTransition(()=>{fi(()=>i(g))});me.finished.finally(()=>{fi(()=>{d(void 0),y(void 0),u(void 0),c({isTransitioning:!1})})}),fi(()=>y(me));return}f?(s&&s.resolve(),f.skipTransition(),S({state:g,currentLocation:K.currentLocation,nextLocation:K.nextLocation})):(u(g),c({isTransitioning:!0,flushSync:!1,currentLocation:K.currentLocation,nextLocation:K.nextLocation}))},[a.window,f,s,T,h]);_.useLayoutEffect(()=>a.subscribe(v),[a,v]),_.useEffect(()=>{o.isTransitioning&&!o.flushSync&&d(new F4)},[o]),_.useEffect(()=>{if(s&&r&&a.window){let g=r,A=s.promise,U=a.window.document.startViewTransition(async()=>{h(()=>i(g)),await A});U.finished.finally(()=>{d(void 0),y(void 0),u(void 0),c({isTransitioning:!1})}),y(U)}},[h,r,s,a.window]),_.useEffect(()=>{s&&r&&l.location.key===r.location.key&&s.resolve()},[s,f,l.location,r]),_.useEffect(()=>{!o.isTransitioning&&C&&(u(C.state),c({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),S(void 0))},[o.isTransitioning,C]),_.useEffect(()=>{},[]);let E=_.useMemo(()=>({createHref:a.createHref,encodeLocation:a.encodeLocation,go:g=>a.navigate(g),push:(g,A,U)=>a.navigate(g,{state:A,preventScrollReset:U==null?void 0:U.preventScrollReset}),replace:(g,A,U)=>a.navigate(g,{replace:!0,state:A,preventScrollReset:U==null?void 0:U.preventScrollReset})}),[a]),D=a.basename||"/",$=_.useMemo(()=>({router:a,navigator:E,static:!1,basename:D}),[a,E,D]),x=_.useMemo(()=>({v7_relativeSplatPath:a.future.v7_relativeSplatPath}),[a.future.v7_relativeSplatPath]);return _.createElement(_.Fragment,null,_.createElement(go.Provider,{value:$},_.createElement(ip.Provider,{value:l},_.createElement(K4.Provider,{value:T.current},_.createElement(Q4.Provider,{value:o},_.createElement(H4,{basename:D,location:l.location,navigationType:l.historyAction,navigator:E,future:x},l.initialized||a.future.v7_partialHydration?_.createElement(e5,{routes:a.routes,future:a.future,state:l}):t))))),null)}const e5=_.memo(t5);function t5(e){let{routes:t,future:a,state:n}=e;return T4(t,void 0,n,a)}const a5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",n5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,X8=_.forwardRef(function(t,a){let{onClick:n,relative:l,reloadDocument:i,replace:r,state:u,target:o,to:c,preventScrollReset:s,unstable_viewTransition:d}=t,f=j4(t,Y4),{basename:y}=_.useContext(Gn),C,S=!1;if(typeof c=="string"&&n5.test(c)&&(C=c,a5))try{let v=new URL(window.location.href),E=c.startsWith("//")?new URL(v.protocol+c):new URL(c),D=Zl(E.pathname,y);E.origin===v.origin&&D!=null?c=D+E.search+E.hash:S=!0}catch{}let T=A4(c,{relative:l}),m=l5(c,{replace:r,state:u,target:o,preventScrollReset:s,relative:l,unstable_viewTransition:d});function h(v){n&&n(v),v.defaultPrevented||m(v)}return _.createElement("a",ir({},f,{href:C||T,onClick:S||i?n:h,ref:a,target:o}))});var A0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(A0||(A0={}));var _0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_0||(_0={}));function l5(e,t){let{target:a,replace:n,state:l,preventScrollReset:i,relative:r,unstable_viewTransition:u}=t===void 0?{}:t,o=_4(),c=bo(),s=op(e,{relative:r});return _.useCallback(d=>{if(G4(d,a)){d.preventDefault();let f=n!==void 0?n:xn(c)===xn(s);o(e,{replace:f,state:l,preventScrollReset:i,relative:r,unstable_viewTransition:u})}},[c,o,s,n,l,a,e,i,r,u])}var i5=!1;function r5(e){if(e.sheet)return e.sheet;for(var t=0;t0?Pe(Ql,--yt):0,Hl--,He===10&&(Hl=1,Eo--),He}function _t(){return He=yt2||ur(He)>3?"":" "}function b5(e,t){for(;--t&&_t()&&!(He<48||He>102||He>57&&He<65||He>70&&He<97););return Sr(e,hu()+(t<6&&la()==32&&_t()==32))}function Zs(e){for(;_t();)switch(He){case e:return yt;case 34:case 39:e!==34&&e!==39&&Zs(He);break;case 40:e===41&&Zs(e);break;case 92:_t();break}return yt}function S5(e,t){for(;_t()&&e+He!==57;)if(e+He===84&&la()===47)break;return"/*"+Sr(t,yt-1)+"*"+So(e===47?e:_t())}function E5(e){for(;!ur(la());)_t();return Sr(e,yt)}function R5(e){return pp(vu("",null,null,null,[""],e=vp(e),0,[0],e))}function vu(e,t,a,n,l,i,r,u,o){for(var c=0,s=0,d=r,f=0,y=0,C=0,S=1,T=1,m=1,h=0,v="",E=l,D=i,$=n,x=v;T;)switch(C=h,h=_t()){case 40:if(C!=108&&Pe(x,d-1)==58){Xs(x+=ne(mu(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:x+=mu(h);break;case 9:case 10:case 13:case 32:x+=g5(C);break;case 92:x+=b5(hu()-1,7);continue;case 47:switch(la()){case 42:case 47:Qr(C5(S5(_t(),hu()),t,a),o);break;default:x+="/"}break;case 123*S:u[c++]=Wt(x)*m;case 125*S:case 59:case 0:switch(h){case 0:case 125:T=0;case 59+s:m==-1&&(x=ne(x,/\f/g,"")),y>0&&Wt(x)-d&&Qr(y>32?T0(x+";",n,a,d-1):T0(ne(x," ","")+";",n,a,d-2),o);break;case 59:x+=";";default:if(Qr($=w0(x,t,a,c,s,l,u,v,E=[],D=[],d),i),h===123)if(s===0)vu(x,t,$,$,E,i,d,u,D);else switch(f===99&&Pe(x,3)===110?100:f){case 100:case 108:case 109:case 115:vu(e,$,$,n&&Qr(w0(e,$,$,0,0,l,u,v,l,E=[],d),D),l,D,d,u,n?E:D);break;default:vu(x,$,$,$,[""],D,0,u,D)}}c=s=y=0,S=m=1,v=x="",d=r;break;case 58:d=1+Wt(x),y=C;default:if(S<1){if(h==123)--S;else if(h==125&&S++==0&&y5()==125)continue}switch(x+=So(h),h*S){case 38:m=s>0?1:(x+="\f",-1);break;case 44:u[c++]=(Wt(x)-1)*m,m=1;break;case 64:la()===45&&(x+=mu(_t())),f=la(),s=d=Wt(v=x+=E5(hu())),h++;break;case 45:C===45&&Wt(x)==2&&(S=0)}}return i}function w0(e,t,a,n,l,i,r,u,o,c,s){for(var d=l-1,f=l===0?i:[""],y=od(f),C=0,S=0,T=0;C0?f[m]+" "+h:ne(h,/&\f/g,f[m])))&&(o[T++]=v);return Ro(e,t,a,l===0?rd:u,o,c,s)}function C5(e,t,a){return Ro(e,t,a,fp,So(p5()),rr(e,2,-2),0)}function T0(e,t,a,n){return Ro(e,t,a,ud,rr(e,0,n),rr(e,n+1,-1),n)}function wl(e,t){for(var a="",n=od(e),l=0;l6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Ku+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xs(e,"stretch")?gp(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,Wt(e)-3-(~Xs(e,"!important")&&10))){case 107:return ne(e,":",":"+ae)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ae+e+tt+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+tt+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+tt+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+tt+e+e}return e}var $5=function(t,a,n,l){if(t.length>-1&&!t.return)switch(t.type){case ud:t.return=gp(t.value,t.length);break;case dp:return wl([di(t,{value:ne(t.value,"@","@"+ae)})],l);case rd:if(t.length)return v5(t.props,function(i){switch(m5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wl([di(t,{props:[ne(i,/:(read-\w+)/,":"+Ku+"$1")]})],l);case"::placeholder":return wl([di(t,{props:[ne(i,/:(plac\w+)/,":"+ae+"input-$1")]}),di(t,{props:[ne(i,/:(plac\w+)/,":"+Ku+"$1")]}),di(t,{props:[ne(i,/:(plac\w+)/,tt+"input-$1")]})],l)}return""})}},z5=[$5],N5=function(t){var a=t.key;if(a==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var l=t.stylisPlugins||z5,i={},r,u=[];r=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),m=1;m=4;++n,l-=4)a=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var F5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},I5=!1,e3=/[A-Z]|^ms/g,t3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_p=function(t){return t.charCodeAt(1)===45},z0=function(t){return t!=null&&typeof t!="boolean"},wc=yp(function(e){return _p(e)?e:e.replace(e3,"-$&").toLowerCase()}),N0=function(t,a){switch(t){case"animation":case"animationName":if(typeof a=="string")return a.replace(t3,function(n,l,i){return Ft={name:l,styles:i,next:Ft},l})}return F5[t]!==1&&!_p(t)&&typeof a=="number"&&a!==0?a+"px":a},a3="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function or(e,t,a){if(a==null)return"";var n=a;if(n.__emotion_styles!==void 0)return n;switch(typeof a){case"boolean":return"";case"object":{var l=a;if(l.anim===1)return Ft={name:l.name,styles:l.styles,next:Ft},l.name;var i=a;if(i.styles!==void 0){var r=i.next;if(r!==void 0)for(;r!==void 0;)Ft={name:r.name,styles:r.styles,next:Ft},r=r.next;var u=i.styles+";";return u}return n3(e,t,a)}case"function":{if(e!==void 0){var o=Ft,c=a(e);return Ft=o,or(e,t,c)}break}}var s=a;return s}function n3(e,t,a){var n="";if(Array.isArray(a))for(var l=0;la=>{if(typeof e=="function"){const n=a.displayName||a.name,l=e(a,...t);return l.displayName=n,l}else return a}}function $p(e,t,a,n,...l){}const $n=(e,t,...a)=>$p("error",!0,e,t,...a),Pu=(e,t,...a)=>$p("warn",!0,e,t,...a);var E3=function e(t,a){if(t===a)return!0;if(t&&a&&typeof t=="object"&&typeof a=="object"){if(t.constructor!==a.constructor)return!1;var n,l,i;if(Array.isArray(t)){if(n=t.length,n!=a.length)return!1;for(l=n;l--!==0;)if(!e(t[l],a[l]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(a).length)return!1;for(l=n;l--!==0;)if(!Object.prototype.hasOwnProperty.call(a,i[l]))return!1;for(l=n;l--!==0;){var r=i[l];if(!e(t[r],a[r]))return!1}return!0}return t!==t&&a!==a};const R3=Bl(E3),C3=(e,t)=>(t.has(e)?t.set(e,t.get(e)+1):t.set(e,0),`${e}_${t.get(e)}`),A3=Object.prototype.hasOwnProperty;function zp(e){if(typeof e!="object")return!0;for(const t in e)if(A3.call(e,t))return!1;return!0}function Np(...e){let t={};return e.forEach(a=>{t=Up(t,a)}),t}function Up(e,t){if(Tc(t)){const a=[...Object.keys(t),...Object.getOwnPropertySymbols(t)],n={...e};return a.forEach(l=>{Tc(e[l])&&Tc(t[l])?n[l]=Up(e[l],t[l]):Oc(t[l])&&Oc(e[l])?n[l]=[...new Set([...e[l],...t[l]])]:Oc(e[l])?n[l]=[...new Set([...e[l],t[l]])]:n[l]=t[l]}),n}else return{...e}}function Tc(e){return e&&(typeof e=="object"||typeof e=="function")&&!Array.isArray(e)}function Oc(e){return Array.isArray(e)}function _3(e){if(Array.isArray(e))return e}function w3(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,l,i,r,u=[],o=!0,c=!1;try{if(i=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=i.call(a)).done)&&(u.push(n.value),u.length!==t);o=!0);}catch(s){c=!0,l=s}finally{try{if(!o&&a.return!=null&&(r=a.return(),Object(r)!==r))return}finally{if(c)throw l}}return u}}function H0(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a!!e&&e.ref!==void 0,x3=e=>!!e&&e.current!==void 0;function Er(e){const t=typeof e=="function"?e():e;if(t&&t===document)return document.documentElement;if(t instanceof Element||t===window||t&&typeof t.nodeType<"u")return t;if(t){const a=t;if(D3(a)){const n=x3(a.ref)?a.ref.current:a.ref;return n instanceof HTMLElement?n:Er(n)}else return a.constructor.componentId?a.constructor.componentId:a.constructor.name,hh.findDOMNode(t)}}const No=!!(typeof window<"u"&&window.document&&window.document.createElement);function $3(e){const t=e&&Er(e);let a;t&&"ownerDocument"in t&&(a=t.ownerDocument);const n=No?window.document:void 0;return a||n}function z3(e){const t=e&&Er(e),a=$3(t);return a&&a.defaultView}function N3(e,t){let a={};if(No){const n=e&&Er(e);if(n){const l=z3(e);a=l?l.getComputedStyle(n,t):{}}}return a}function Lp(e){return e.replace(/-([a-z])/g,t=>t[1].toUpperCase())}const U3=["borders","breakpoints","colors","forms","media","shadows","spacing","stacking","transitions","typography"],Hp=e=>{if(Array.isArray(e)||typeof e=="function")throw new Error;try{return"key"in e&&U3.every(t=>t in e)}catch{throw new Error}};function L3(e,t,a){var n,l;return t.as&&t.as!==((n=e.defaultProps)===null||n===void 0?void 0:n.as)?t.as:typeof a=="function"?a():t.href?"a":t.to?(Pu(!t.as,`[${e.displayName}] \`as\` prop should be provided when using \`to\``),"a"):typeof t.onClick=="function"?"button":((l=e.defaultProps)===null||l===void 0?void 0:l.as)||"span"}function Bp(e,t,a){const n=Array.isArray(t)?t:Object.keys(t||{}),l=a?n.concat(a):n;return B3(e,l)}const H3=Object.prototype.hasOwnProperty,B3=(e,t)=>{const a={};for(const n in e)n==="theme"||n==="children"||n==="className"||n==="style"||n==="styles"||n==="makeStyles"||n==="themeOverride"||n==="deterministicId"||t.includes(n)||!H3.call(e,n)||(a[n]=e[n]);return a};var j3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,V3=yp(function(e){return j3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function G3(e){const t={};return Object.keys(e).filter(a=>V3(a)&&a!=="style"&&a!=="className"&&a!=="children"&&a!=="styles"&&a!=="makeStyles"&&a!=="deterministicId").forEach(a=>{t[a]=e[a]}),t}function jp(e,t,a){const n=Array.isArray(t)?t:Object.keys(t||{}),l=a?n.concat(a):n;return Y3(e,l)}function Y3(e,t){const a={},n=t.length;let l=-1,i;for(;++lCe.createElement(Gp.Provider,{value:t},e),X3=zo(e=>{const t=_.forwardRef((a,n)=>{const l=e.componentId||e.displayName||e.name,i=_.useContext(Gp),r=(u=l)=>C3(u,i);return a.deterministicId&&Pu(!1,`Manually passing the "deterministicId" property is not allowed on the ${l} component. +`,a.deterministicId),Ce.createElement(e,Object.assign({ref:n,deterministicId:r},a))});return md(t,e),t.propTypes=e.propTypes,t.defaultProps=e.defaultProps,t.allowedProps=e.allowedProps,t.originalType=e.originalType||e,t});function Z3(e,t){if(e==null)return{};var a={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;a[n]=e[n]}return a}function zn(e,t){if(e==null)return{};var a,n,l=Z3(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{if(hi)return hi;if(No){const e=document.documentElement;return Kr=e.getAttribute("dir"),hi=Kr||N3(e).direction,Mc||(Mc=new MutationObserver(()=>{const t=e.getAttribute("dir");t&&t!==Kr&&(Kr=hi=t)}),Mc.observe(e,{attributes:!0})),hi}};function K3(e){if(No)return Q3()}const Ps=_.createContext(K3()||"ltr"),Uo={ltr:"ltr",rtl:"rtl"},P3=["forwardedRef"],yd=zo(e=>{class t extends Ce.Component{render(){const l=this.props,i=l.forwardedRef,r=zn(l,P3);return Ce.createElement(Ps.Consumer,null,u=>Ce.createElement(e,Object.assign({ref:i,dir:u},r)))}}t.displayName="TextDirectionContextConsumerComponent";const a=_.forwardRef((n,l)=>Ce.createElement(t,Object.assign({},n,{forwardedRef:l})));return md(a,e),a.defaultProps=e.defaultProps,a.propTypes=e.propTypes,a.allowedProps=e.allowedProps,a.originalType=e.originalType||e,a});yd.DIRECTION=Uo;const J3=H.oneOf(["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"]),W3=Object.freeze({radiusSmall:"0.125rem",radiusMedium:"0.25rem",radiusLarge:"0.5rem",widthSmall:"0.0625rem",widthMedium:"0.125rem",widthLarge:"0.25rem",style:"solid"}),F3=Object.freeze({duration:"300ms",timing:"ease-in-out"}),I3=Object.freeze({fontFamily:'LatoWeb, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif',fontFamilyMonospace:'Menlo, Consolas, Monaco, "Andale Mono", monospace',fontSizeXSmall:"0.75rem",fontSizeSmall:"0.875rem",fontSizeMedium:"1rem",fontSizeLarge:"1.375rem",fontSizeXLarge:"1.75rem",fontSizeXXLarge:"2.375rem",fontWeightLight:300,fontWeightNormal:400,fontWeightBold:700,lineHeight:1.5,lineHeightFit:1.125,lineHeightCondensed:1.25,lineHeightDouble:2,letterSpacingNormal:0,letterSpacingCondensed:"-0.0625rem",letterSpacingExpanded:"0.0625rem"}),e7=Object.freeze({xxxSmall:"0.125rem",xxSmall:"0.375rem",xSmall:"0.5rem",small:"0.75rem",mediumSmall:"1rem",medium:"1.5rem",large:"2.25rem",xLarge:"3rem",xxLarge:"3.75rem"}),t7=Object.freeze({inputHeightSmall:"1.75rem",inputHeightMedium:"2.375rem",inputHeightLarge:"3rem"}),a7=.0625,pa={xxSmall:8,xSmall:16,small:30,medium:48,tablet:48,large:62,desktop:64,xLarge:75},pu=Object.freeze({xxSmall:`${pa.xxSmall}em`,xSmall:`${pa.xSmall}em`,small:`${pa.small}em`,medium:`${pa.medium}em`,tablet:`${pa.tablet}em`,large:`${pa.large}em`,desktop:`${pa.desktop}em`,xLarge:`${pa.xLarge}em`,maxWidth:`${pa.large-a7}em`}),n7=Object.freeze({mediumMin:`min-width: ${pu.medium}`,largeMin:`min-width: ${pu.large}`,xLargeMin:`min-width: ${pu.xLarge}`}),Wn=["0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)","0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)","0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)"],l7=Object.freeze({depth1:Wn[0],depth2:Wn[1],depth3:Wn[2],resting:Wn[0],above:Wn[1],topmost:Wn[2]}),i7=Object.freeze({topmost:9999,above:1,below:-1,deepest:-9999}),r7={borders:W3,transitions:F3,typography:I3,spacing:e7,forms:t7,media:n7,breakpoints:pu,shadows:l7,stacking:i7},u7=["key","description"],o7=["key","description","use"],c7="@@themeRegistryDefaultTheme",Ju="__GLOBAL_THEME_REGISTRY__";globalThis[Ju]?gd(s7(globalThis[Ju])):qp();function Yp(){return{currentThemeKey:null,themes:{},registered:[]}}function s7(e){const t=Yp();if(typeof e>"u")return t;let a=!0;return Object.keys(t).forEach(n=>{typeof e[n]>"u"&&(a=!1)}),$n(a,"[theme-registry] Invalid global theme registry!"),e}function Lo(){return globalThis[Ju]}function gd(e){globalThis[Ju]=e}function qp(){gd(Yp())}function f7(){const e=Lo(),t=e.currentThemeKey;if(t)return e.themes[t]}function d7(e,t){const a=Lo(),n=a.themes[e];n||e!==c7&&$n(n,`[theme-registry] Could not find theme: '${e}' in the registry.`),a.currentThemeKey=e;const l=Np(n,t);return a.themes[e]=l,l}function h7(e){const t=e.key,a=e.description,n=zn(e,u7),l={key:t,description:a,...n,use(i){d7(t,(i==null?void 0:i.overrides)||{})}};return new Proxy(l,{get(i,r){i.key,i.description,i.use;const u=zn(i,o7);return r==="variables"?u:Reflect.get(i,r)}})}function m7(e){const t=Lo();if(e.key&&t.themes[e.key])return t.themes[e.key];{if(!Hp(e))throw $n(!1,`[theme-registry] The theme provided to 'registerTheme' is not a valid theme object! +For it to be valid some properties have to be present, check out https://instructure.design/#canvas as a reference.`),new Error;const a=h7(e);return t.themes[a.key]=a,t.registered.push(a.key),a}}const bd={getRegistry:Lo,clearRegistry:qp,setRegistry:gd,registerTheme:m7,getCurrentTheme:f7},ge={white:"#FFFFFF",white10op75:"#FFFFFFBF",grey11:"#F2F4F4",grey12:"#E8EAEC",grey14:"#D7DADE",grey24:"#9EA6AD",grey45:"#6A7883",grey57:"#586874",grey70:"#4A5B68",grey82:"#3F515E",grey100:"#334451",grey100op75:"#334451BF",grey125:"#273540",blue12:"#E0EBF5",blue45:"#2B7ABC",blue57:"#0E68B3",blue70:"#0A5A9E",blue82:"#09508C",green12:"#DCEEE4",green45:"#03893D",green57:"#027634",green70:"#02672D",green82:"#015B28",orange12:"#FCE5D9",orange30:"#F06E26",orange45:"#CF4A00",orange57:"#B34000",orange70:"#9C3800",orange82:"#8B3200",red12:"#FCE4E5",red45:"#E62429",red57:"#C71F23",red70:"#AE1B1F",red82:"#9B181C"},v7=e=>({surfacePagePrimary:e==null?void 0:e.white1010,surfacePageSecondary:e==null?void 0:e.grey1111,surfaceCardPrimary:e==null?void 0:e.white1010,surfaceCardSecondary:e==null?void 0:e.grey1111,surfaceDark:e==null?void 0:e.grey100100,textTitle:e==null?void 0:e.grey125125,textDescription:e==null?void 0:e.grey125125,textBody:e==null?void 0:e.grey125125,textTimestamp:e==null?void 0:e.grey5782,textAuthor:e==null?void 0:e.grey5782,textDatapoint:e==null?void 0:e.grey5782,textLink:e==null?void 0:e.blue5782,textPlaceholder:e==null?void 0:e.grey2424,textSuccess:e==null?void 0:e.green5782,textWarning:e==null?void 0:e.orange5782,textError:e==null?void 0:e.red5782,lineStroke:e==null?void 0:e.grey1424,lineDivider:e==null?void 0:e.grey1214,surfaceOverlayGrey:e==null?void 0:e.grey100100op75,surfaceOverlayWhite:e==null?void 0:e.white1010op75,surfaceAttention:e==null?void 0:e.blue4570,surfaceSuccess:e==null?void 0:e.green4570,surfaceWarning:e==null?void 0:e.orange4570,surfaceError:e==null?void 0:e.red4570,surfaceDivider:e==null?void 0:e.grey1214,textSurfaceColored:e==null?void 0:e.white1010,iconDefault:e==null?void 0:e.grey125125,iconSuccess:e==null?void 0:e.green4570,iconWarning:e==null?void 0:e.orange4570,iconError:e==null?void 0:e.red4570,iconSurfaceColored:e==null?void 0:e.white1010,lineConnector:e==null?void 0:e.grey1424}),kp={white1010:ge.white,white1010op75:ge.white10op75,grey1111:ge.grey11,grey1214:ge.grey12,grey1424:ge.grey14,grey2424:ge.grey24,grey4570:ge.grey45,grey5782:ge.grey57,grey100100:ge.grey100,grey100100op75:ge.grey100op75,grey125125:ge.grey125,blue1212:ge.blue12,blue4570:ge.blue45,blue5782:ge.blue57,green1212:ge.green12,green4570:ge.green45,green5782:ge.green57,orange1212:ge.orange12,orange3045:ge.orange30,orange4570:ge.orange45,orange5782:ge.orange57,red1212:ge.red12,red4570:ge.red45,red5782:ge.red57},p7=v7(kp),J={primitives:ge,contrasts:kp,ui:p7};var Dc,xc,$c,zc,Nc,Uc,Lc,Hc,Bc,jc,Vc,Gc,Yc;const y7="canvas",g7={"ic-brand-primary":J==null||(Dc=J.contrasts)===null||Dc===void 0?void 0:Dc.blue4570,"ic-brand-font-color-dark":J==null||(xc=J.contrasts)===null||xc===void 0?void 0:xc.grey125125,"ic-link-color":J==null||($c=J.contrasts)===null||$c===void 0?void 0:$c.blue4570,"ic-link-decoration":"none","ic-brand-button--primary-bgd":J==null||(zc=J.contrasts)===null||zc===void 0?void 0:zc.blue4570,"ic-brand-button--primary-text":J==null||(Nc=J.contrasts)===null||Nc===void 0?void 0:Nc.white1010,"ic-brand-button--secondary-bgd":J==null||(Uc=J.contrasts)===null||Uc===void 0?void 0:Uc.grey125125,"ic-brand-button--secondary-text":J==null||(Lc=J.contrasts)===null||Lc===void 0?void 0:Lc.white1010,"ic-brand-global-nav-bgd":J==null||(Hc=J.contrasts)===null||Hc===void 0?void 0:Hc.grey100100,"ic-global-nav-link-hover":J==null||(Bc=J.contrasts)===null||Bc===void 0?void 0:Bc.grey125125,"ic-brand-global-nav-ic-icon-svg-fill":J==null||(jc=J.contrasts)===null||jc===void 0?void 0:jc.white1010,"ic-brand-global-nav-ic-icon-svg-fill--active":J==null||(Vc=J.contrasts)===null||Vc===void 0?void 0:Vc.blue4570,"ic-brand-global-nav-menu-item__text-color":J==null||(Gc=J.contrasts)===null||Gc===void 0?void 0:Gc.white1010,"ic-brand-global-nav-menu-item__text-color--active":J==null||(Yc=J.contrasts)===null||Yc===void 0?void 0:Yc.blue4570},b7={key:y7,...r7,colors:J,...g7},Sd=bd.registerTheme(b7),S7=e=>(t={})=>{var a,n;try{if(Hp(e))return e}catch{e={}}let l;Object.keys(t).length===0?l=bd.getCurrentTheme()||Sd:l=t;const i=l.key,r=((a=e)===null||a===void 0||(n=a.themeOverrides)===null||n===void 0?void 0:n[i])||e.themeOverrides||{};return Np(l,e,r)};function Xp({children:e,theme:t={},dir:a,instanceCounterMap:n,as:l}){const i=a||_.useContext(Ps);let r=Ce.createElement(k3,{instanceCounterMap:n},Ce.createElement(s3,{theme:S7(t)},Ce.createElement(Ps.Provider,{value:i},e)));if(a){const u=l||"span";r=Ce.createElement(u,{dir:i},r)}return r}Xp.propTypes={children:H.node,theme:H.object,dir:H.oneOf(["ltr","rtl"]),instanceCounterMap:H.instanceOf(Map),as:H.string};const E7=(e,t,a,n,l)=>{const i=t,r=a,u=n,o=u.themeOverride,c=e,s=c.componentOverrides;let d={},f={};return s&&(d=i&&s[i]||r&&s[r]||{}),o&&(typeof o=="function"?f=o(l||{},e):f=o),{...d,...f}},R7=()=>{let e=u3();if(zp(e)){const t=bd.getCurrentTheme();if(t)return t;e=Sd}return e},qc={styles:{},makeStyles:()=>{}},Ed=zo((e,t,a)=>{const n=e.displayName||e.name,l=_.forwardRef((i,r)=>{const u=R7();i.styles&&Pu(!1,`Manually passing the "styles" property is not allowed on the ${n} component. Using the default styles calculated by the @withStyle decorator instead. +`,i.styles),i.makeStyles&&Pu(!1,`Manually passing the "makeStyles" property is not allowed on the ${n} component. Styles are calculated by the @withStyle decorator.`);const o={...e.defaultProps,...i,...qc};let c=typeof a=="function"?a(u):{};const s=E7(u,n,e.componentId,o,c);c={...c,...s};const d=_.useState(t?t(c,o,{}):{}),f=M3(d,2),y=f[0],C=f[1],S=T=>{const m=t(c,o,T);R3(m,y)||C(m)};return Ce.createElement(e,Object.assign({ref:r},i,{makeStyles:S,styles:y,themeOverride:s}))});return md(l,e),l.originalType=e.originalType||e,l.propTypes=e.propTypes,l.defaultProps=e.defaultProps,l.allowedProps=e.allowedProps,l.generateComponentTheme=a,e.defaultProps={...e.defaultProps,makeStyles:qc.makeStyles,styles:qc.styles},l}),Yn={SHADOW_TYPES:{resting:"resting",above:"above",topmost:"topmost",none:"none"},STACKING_TYPES:{deepest:"deepest",below:"below",resting:"resting",above:"above",topmost:"topmost"},BORDER_WIDTHS:{0:"0",none:"none",small:"small",medium:"medium",large:"large"},BORDER_RADII:{0:"0",none:"none",small:"small",medium:"medium",large:"large",circle:"circle",pill:"pill"},BACKGROUNDS:{default:"default",inverse:"inverse",transparent:"transparent"},SIZES:{xSmall:"x-small",small:"small",medium:"medium",large:"large",xLarge:"x-large"},SPACING:{0:"0",none:"none",auto:"auto",xxxSmall:"xxx-small",xxSmall:"xx-small",xSmall:"x-small",small:"small",mediumSmall:"mediumSmall",medium:"medium",large:"large",xLarge:"x-large",xxLarge:"xx-large"}},C7=Yn.SHADOW_TYPES,A7=Yn.STACKING_TYPES,_7=Yn.BORDER_WIDTHS,w7=Yn.BORDER_RADII,T7=Yn.BACKGROUNDS,O7=Yn.SIZES,M7=Yn.SPACING,Fn={shadow:H.oneOf(Object.values(C7)),stacking:H.oneOf(Object.values(A7)),borderWidth:kc(Object.values(_7)),borderRadius:kc(Object.values(w7)),background:H.oneOf(Object.values(T7)),size:H.oneOf(Object.values(O7)),spacing:kc(Object.values(M7))};function kc(e){return function(t,a,n,l){const i=t[a];if(typeof i>"u")return null;if(typeof i!="string")return new Error(`Invalid ${l} \`${a}\` of type \`${typeof i}\` supplied to \`${n}\`, expected a string.`);const r=i.split(" "),u=r.length;if(u>0&&u<5){for(let o=0;o{a[Lp(`${e}-${String(n)}`)]=t[n]}),a}function Wu(e,t,a,n){if(!(typeof a!="string"||zp(t)))return a.split(" ").map(l=>{if(l==="auto"||l==="0")return l;if(l==="none")return"0";if(l==="circle")return"100%";if(l==="pill")return"999em";const i=Lp(`${n}-${l}`),r=t[i];return $n(typeof r<"u",`[${e}] '${i}' is an invalid '${n}' value.`),r||"0"}).join(" ").trim()}function Js(e){if(typeof e!="string")return;const t=e.split(" ");if(t.length===4){var a=[t[3],t[1]];t[1]=a[0],t[3]=a[1]}return t.join(" ")}function D7(e){if(typeof e!="string")return;const t=e.split(" ");if(t.length===2){var a=[t[1],t[0]];t[0]=a[0],t[1]=a[1]}if(t.length===3&&t.push(t[1]),t.length===4){var n=[t[1],t[0],t[3],t[2]];t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3]}return t.join(" ")}let Ws=!0;try{var Xc,Zc;Ws=!((Xc=process)!==null&&Xc!==void 0&&(Zc=Xc.env)!==null&&Zc!==void 0&&Zc.ALWAYS_APPEND_UI_TESTABLE_LOCATORS)}catch(e){if(e instanceof ReferenceError)Ws=!1;else throw e}const Zp=Ws?()=>e=>e:zo(e=>{const a={attribute:"data-cid",value:e.displayName||e.name},n=`[${a.attribute}~="${a.value}"]`;class l extends e{constructor(...r){super(...r),this._testableUnmounted=void 0,this._locatorTimeout=void 0}componentDidMount(){this._testableUnmounted=!1,super.componentDidMount&&super.componentDidMount(),this.appendLocatorAttribute()}componentDidUpdate(r,u,o){super.componentDidUpdate&&super.componentDidUpdate(r,u,o),this.appendLocatorAttribute()}componentWillUnmount(){this._testableUnmounted=!0,super.componentWillUnmount&&super.componentWillUnmount(),this._locatorTimeout&&clearTimeout(this._locatorTimeout)}appendLocatorAttribute(){this._locatorTimeout=setTimeout(()=>{let r;if(!this._testableUnmounted){try{r=this.DOMNode||Er(this)}catch{}if(r){const u=r.getAttribute(a.attribute),o=typeof u=="string"?u.split(/\s+/):[];o.includes(a.value)||o.push(a.value),r.setAttribute(a.attribute,o.join(" "))}}})}}return l.selector=n,l}),x7=({borderRadius:e,borderWidth:t,dir:a,theme:n})=>{const l=a===Uo.rtl;return{borderRadius:Wu("View",n,l?D7(e):e,"borderRadius"),borderWidth:Wu("View",n,l?Js(t):t,"borderWidth")}},$7=({margin:e,padding:t,dir:a,theme:n})=>{const l=a===Uo.rtl;return{margin:Wu("View",n,l?Js(e):e,"margin"),padding:Wu("View",n,l?Js(t):t,"padding")}},z7=({insetBlockStart:e,insetBlockEnd:t,insetInlineStart:a,insetInlineEnd:n,dir:l})=>{const i=l===Uo.rtl;return{...{top:e,insetBlockStart:e},...{bottom:t,insetBlockEnd:t},...{left:i?n:a,right:i?a:n}}},N7=({cursor:e,style:t})=>{const a=jp(t||{},{},["top","left","position","display","transform","overflow","minWidth","minHeight","filter","flexBasis","backgroundImage","pointerEvents"]);return e&&(a.cursor=e),a},U7=(e,t)=>typeof t!="string"?!1:t.trim().split(" ").every(a=>e===a),L7=e=>{const t="focusRing--radius",a=(e||"").trim().split(" ")[0];if(U7(a,e)){const n=l=>`${l.charAt(0).toUpperCase()}${l.slice(1)}`;if(["small","medium","large"].includes(a))return`${t}${n(a)}`;if(["circle","pill"].includes(a))return`${t}Inherit`}return`${t}None`},H7=e=>{const t=e.position,a=e.display,n=e.focusPosition,l=e.withFocusOutline;return typeof l>"u"||l&&($n(a==="inline"||t==="relative","[View] the focus outline will only show if the `position` prop is `relative`."),$n(a!=="inline"||n==="inset","[View] when display is set to `inline` the focus outline will only show if `focusPosition` is set to `inset`.")),l},B7=e=>{const t=e.borderWidth;return t&&t!=="0"&&t!=="none"},j7=(e,t)=>{const a=e.focusColor,n=e.focusPosition,l=e.position,i=e.shouldAnimateFocus,r=e.borderRadius,u=H7(e),o=typeof u>"u",c={offset:{top:`calc(${t.focusOutlineOffset} * -1)`,left:`calc(${t.focusOutlineOffset} * -1)`,right:`calc(${t.focusOutlineOffset} * -1)`,bottom:`calc(${t.focusOutlineOffset}* -1)`},inset:{top:`calc(${t.focusOutlineInset} * -1)`,left:`calc(${t.focusOutlineInset} * -1)`,right:`calc(${t.focusOutlineInset} * -1)`,bottom:`calc(${t.focusOutlineInset} * -1)`}},s={info:t.focusColorInfo,inverse:t.focusColorInverse,success:t.focusColorSuccess,danger:t.focusColorDanger};if(l==="relative"){const d=L7(r),f={"focusRing--radiusInherit":"inherit","focusRing--radiusNone":0},y={offset:{"focusRing--radiusSmall":{borderRadius:`calc(${t.borderRadiusSmall} + (${t.focusOutlineOffset} - ${t.focusOutlineWidth}))`},"focusRing--radiusMedium":{borderRadius:`calc(${t.borderRadiusMedium} + (${t.focusOutlineOffset} - ${t.focusOutlineWidth}))`},"focusRing--radiusLarge":{borderRadius:`calc(${t.borderRadiusLarge} + (${t.focusOutlineOffset} - ${t.focusOutlineWidth}))`}},inset:{"focusRing--radiusSmall":{borderRadius:`calc(${t.borderRadiusSmall} - (${t.focusOutlineInset} + ${t.focusOutlineWidth}))`},"focusRing--radiusMedium":{borderRadius:`calc(${t.borderRadiusMedium} - (${t.focusOutlineInset} + ${t.focusOutlineWidth}))`},"focusRing--radiusLarge":{borderRadius:`calc(${t.borderRadiusLarge} - (${t.focusOutlineInset} + ${t.focusOutlineWidth}))`}}};return{"&::before":{pointerEvents:"none",content:'""',position:"absolute",borderStyle:t.focusOutlineStyle,borderWidth:t.focusOutlineWidth,borderColor:s[a],opacity:0,borderRadius:f[d],...y[n][d],...c[n],...i?{transition:"all 0.2s",transform:"scale(0.95)"}:{},...u?{opacity:1,transform:"scale(1)"}:{}},"&:focus":{outline:"none","&::before":{...o?{opacity:1,transform:"scale(1)"}:{}}}}}return{"&::before":{borderStyle:"none"},outlineStyle:"none",outlineColor:s[a],...u?{outlineWidth:t.focusOutlineWidth,outlineStyle:t.focusOutlineStyle}:{},"&:focus":{...o?{outlineWidth:t.focusOutlineWidth,outlineStyle:t.focusOutlineStyle}:{}}}},V7=(e,t)=>{const a=t.borderRadius,n=t.borderWidth,l=t.margin,i=t.padding,r=t.position,u=t.display,o=t.focusPosition,c=t.textAlign,s=t.borderColor,d=t.background,f=t.stacking,y=t.shadow,C=t.overflowY,S=t.overflowX,T=t.overscrollBehavior,m=t.insetBlockEnd,h=t.insetBlockStart,v=t.insetInlineEnd,E=t.insetInlineStart,D=t.width,$=t.height,x=t.minWidth,g=t.minHeight,A=t.maxWidth,U=t.maxHeight,j=t.withVisualDebug,K=t.dir,xe=x7({theme:e,borderRadius:a,borderWidth:n,dir:K}),me=$7({margin:l,padding:i,theme:e,dir:K}),et=z7({dir:K,insetBlockEnd:m,insetBlockStart:h,insetInlineEnd:v,insetInlineStart:E}),z=r==="relative"||u==="inline"&&o==="inset",Y={inline:{label:"view--inline",display:"inline"},block:{label:"view--block",display:"block"},"inline-block":{label:"view--inlineBlock",display:"inline-block",verticalAlign:"middle"},flex:{label:"view--flex",display:"flex"},"inline-flex":{label:"view--inlineFlex",display:"inline-flex",verticalAlign:"middle"},auto:{}},q={start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},k={transparent:{borderColor:e.borderColorTransparent},primary:{borderColor:e.borderColorPrimary},secondary:{borderColor:e.borderColorSecondary},brand:{borderColor:e.borderColorBrand},info:{borderColor:e.borderColorInfo},success:{borderColor:e.borderColorSuccess},warning:{borderColor:e.borderColorWarning},alert:{borderColor:e.borderColorAlert},danger:{borderColor:e.borderColorDanger}},ye={transparent:{color:e.color,background:"none"},primary:{color:e.color,background:e.backgroundPrimary},secondary:{color:e.color,background:e.backgroundSecondary},"primary-inverse":{color:e.colorPrimaryInverse,background:e.backgroundPrimaryInverse},brand:{color:e.colorPrimaryInverse,background:e.backgroundBrand},info:{color:e.colorPrimaryInverse,background:e.backgroundInfo},alert:{color:e.colorPrimaryInverse,background:e.backgroundAlert},success:{color:e.colorPrimaryInverse,background:e.backgroundSuccess},danger:{color:e.colorPrimaryInverse,background:e.backgroundDanger},warning:{color:e.colorPrimaryInverse,background:e.backgroundWarning}},Tt={topmost:{zIndex:e.stackingTopmost},above:{zIndex:e.stackingAbove},resting:{},below:{zIndex:e.stackingBelow},deepest:{zIndex:e.stackingDeepest}},bt={topmost:{boxShadow:e.shadowTopmost},resting:{boxShadow:e.shadowResting},above:{boxShadow:e.shadowAbove},none:{}},it=j7(t,e);return{view:{label:"view",boxSizing:"border-box",fontFamily:e.fontFamily,maxWidth:"100%",overflow:"visible",...Y[u],...d&&ye[d],...f&&Tt[f],...y&&bt[y],...c&&q[c],overflowX:S&&S!=="visible"?S:"",overflowY:C&&C!=="visible"?C:"",position:r!=="static"?r:"",overscrollBehavior:T||"auto",...j?{outline:`0.0625rem dashed ${e.debugOutlineColor}`}:{},...B7(t)?{borderStyle:e.borderStyle,...k[s]}:{},...z?it:{}},inlineStyles:{"&&&&&&&&&&":{...me,...xe,...et,width:D,height:$,minWidth:x,minHeight:g,maxWidth:A,maxHeight:U,...N7(t)}}}},G7=e=>{var t,a,n,l,i,r,u,o,c,s,d,f,y,C,S,T,m,h,v,E,D,$,x,g;const A=e.colors,U=e.typography,j=e.borders,K=e.breakpoints,xe=e.spacing,me=e.shadows,et=e.stacking,z=e.key,Y={canvas:{color:e["ic-brand-font-color-dark"],focusColorInfo:e["ic-brand-primary"],backgroundBrand:e["ic-brand-primary"],backgroundInfo:e["ic-brand-primary"],borderColorBrand:e["ic-brand-primary"],borderColorInfo:e["ic-brand-primary"]}};return{...{fontFamily:U==null?void 0:U.fontFamily,color:A==null||(t=A.contrasts)===null||t===void 0?void 0:t.grey125125,colorPrimaryInverse:A==null||(a=A.contrasts)===null||a===void 0?void 0:a.white1010,borderColorPrimary:A==null||(n=A.contrasts)===null||n===void 0?void 0:n.grey1214,borderColorSecondary:A==null||(l=A.contrasts)===null||l===void 0?void 0:l.grey4570,borderColorSuccess:A==null||(i=A.contrasts)===null||i===void 0?void 0:i.grey4570,borderColorBrand:A==null||(r=A.contrasts)===null||r===void 0?void 0:r.blue4570,borderColorInfo:A==null||(u=A.contrasts)===null||u===void 0?void 0:u.blue4570,borderColorAlert:A==null||(o=A.contrasts)===null||o===void 0?void 0:o.blue4570,borderColorWarning:A==null||(c=A.contrasts)===null||c===void 0?void 0:c.orange4570,borderColorDanger:A==null||(s=A.contrasts)===null||s===void 0?void 0:s.red4570,borderColorTransparent:"transparent",debugOutlineColor:A==null||(d=A.contrasts)===null||d===void 0?void 0:d.red4570,backgroundPrimary:A==null||(f=A.contrasts)===null||f===void 0?void 0:f.white1010,backgroundSecondary:A==null||(y=A.contrasts)===null||y===void 0?void 0:y.grey1111,backgroundPrimaryInverse:A==null||(C=A.contrasts)===null||C===void 0?void 0:C.grey125125,backgroundBrand:A==null||(S=A.contrasts)===null||S===void 0?void 0:S.blue4570,backgroundInfo:A==null||(T=A.contrasts)===null||T===void 0?void 0:T.blue4570,backgroundAlert:A==null||(m=A.contrasts)===null||m===void 0?void 0:m.blue4570,backgroundSuccess:A==null||(h=A.contrasts)===null||h===void 0?void 0:h.grey4570,backgroundDanger:A==null||(v=A.contrasts)===null||v===void 0?void 0:v.red4570,backgroundWarning:A==null||(E=A.contrasts)===null||E===void 0?void 0:E.orange4570,arrowSize:"0.5rem",focusOutlineStyle:j==null?void 0:j.style,focusOutlineWidth:j==null?void 0:j.widthMedium,focusOutlineOffset:"0.3125rem",focusOutlineInset:"0rem",focusColorInfo:A==null||(D=A.contrasts)===null||D===void 0?void 0:D.blue4570,focusColorDanger:A==null||($=A.contrasts)===null||$===void 0?void 0:$.red4570,focusColorSuccess:A==null||(x=A.contrasts)===null||x===void 0?void 0:x.green4570,focusColorInverse:A==null||(g=A.contrasts)===null||g===void 0?void 0:g.white1010,xSmallMaxWidth:K==null?void 0:K.xSmall,smallMaxWidth:K==null?void 0:K.small,mediumMaxWidth:K==null?void 0:K.medium,largeMaxWidth:K==null?void 0:K.large,...mi("margin",xe),...mi("padding",xe),...mi("shadow",me),...mi("stacking",et),...mi("border",j)},...Y[z]}},Y7={as:H.elementType,elementRef:H.func,display:H.oneOf(["auto","inline","block","inline-block","flex","inline-flex"]),overflowX:H.oneOf(["auto","hidden","visible"]),overflowY:H.oneOf(["auto","hidden","visible"]),margin:Fn.spacing,padding:Fn.spacing,height:H.oneOfType([H.string,H.number]),width:H.oneOfType([H.string,H.number]),maxHeight:H.oneOfType([H.string,H.number]),maxWidth:H.oneOfType([H.string,H.number]),minHeight:H.oneOfType([H.string,H.number]),minWidth:H.oneOfType([H.string,H.number]),children:H.node,textAlign:H.oneOf(["start","center","end"]),borderWidth:Fn.borderWidth,borderRadius:Fn.borderRadius,borderColor:H.oneOf(["transparent","primary","secondary","brand","info","success","warning","alert","danger"]),background:H.oneOf(["transparent","primary","secondary","primary-inverse","brand","info","alert","success","danger","warning"]),shadow:Fn.shadow,stacking:Fn.stacking,cursor:J3,position:H.oneOf(["static","absolute","relative","sticky","fixed"]),insetInlineStart:H.string,insetInlineEnd:H.string,insetBlockStart:H.string,insetBlockEnd:H.string,withFocusOutline:H.bool,focusPosition:H.oneOf(["offset","inset"]),focusColor:H.oneOf(["info","inverse","success","danger"]),shouldAnimateFocus:H.bool,withVisualDebug:H.bool,dir:H.oneOf(Object.values(yd.DIRECTION)),overscrollBehavior:H.oneOf(["auto","contain","none"])},q7=["as","background","borderColor","borderRadius","borderWidth","children","cursor","dir","display","elementRef","focusColor","focusPosition","height","insetBlockEnd","insetBlockStart","insetInlineEnd","insetInlineStart","margin","maxHeight","maxWidth","minHeight","minWidth","overflowX","overflowY","overscrollBehavior","padding","position","shadow","shouldAnimateFocus","stacking","textAlign","width","withFocusOutline","withVisualDebug"],k7=["children","textAlign","background","display","withVisualDebug","width","height","minWidth","minHeight","maxWidth","maxHeight","overflowX","overflowY","stacking","shadow","position","focusPosition","focusColor","shouldAnimateFocus","borderColor","className","overscrollBehavior","styles","makeStyles"];var B0,j0,Pr,ya;let X7=(B0=yd(),j0=Ed(V7,G7),B0(Pr=j0(Pr=(ya=class Qp extends _.Component{get _element(){return this.ref}constructor(t){super(t),this.spanMarginVerified=void 0,this.ref=null,this.handleElementRef=a=>{typeof this.props.elementRef=="function"&&this.props.elementRef(a),this.ref=a},this.spanMarginVerified=!1}componentDidMount(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}componentDidUpdate(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}render(){const t=this.props,a=t.children;t.textAlign,t.background,t.display,t.withVisualDebug,t.width,t.height,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight,t.overflowX,t.overflowY,t.stacking,t.shadow,t.position,t.focusPosition,t.focusColor,t.shouldAnimateFocus,t.borderColor;const n=t.className;t.overscrollBehavior;const l=t.styles;t.makeStyles;const i=zn(t,k7),r=L3(Qp,this.props);return pn(r,Object.assign({},G3(i),{className:n,css:[l==null?void 0:l.view,l==null?void 0:l.inlineStyles],ref:this.handleElementRef}),a)}},ya.displayName="View",ya.componentId="View",ya.allowedProps=q7,ya.propTypes=Y7,ya.defaultProps={display:"auto",overflowX:"visible",overflowY:"visible",withVisualDebug:!1,borderColor:"primary",position:"static",focusPosition:"offset",focusColor:"info",shouldAnimateFocus:!0,overscrollBehavior:"auto"},ya.omitViewProps=(e,t)=>{const a=[...ya.allowedProps,"styles","makeStyles","themeOverride"];let n=!0;try{n=!1}catch(l){if(l instanceof ReferenceError)n=!1;else throw l}return n&&Object.keys(jp(e,a)).forEach(l=>{$n(!1,`[${t.name}] prop '${l}' is not allowed.`)}),Bp(e,a)},ya))||Pr)||Pr);const Z7=(e,t)=>{const a=t.inline,n=t.color,l={inherit:{color:"inherit"},primary:{color:e.primaryColor},secondary:{color:e.secondaryColor},"primary-inverse":{color:e.primaryInverseColor},"secondary-inverse":{color:e.secondaryInverseColor},success:{color:e.successColor},brand:{color:e.brandColor},warning:{color:e.warningColor},error:{color:e.errorColor},alert:{color:e.alertColor},auto:{}};return{inlineSVG:{label:"inlineSVG",fill:"currentColor",display:a?"inline-block":"block",overflow:"visible",...l[n]}}},Q7=e=>{var t,a,n,l,i,r,u,o,c;const s=e.colors,d=e.key,f={canvas:{primaryColor:e["ic-brand-font-color-dark"],brandColor:e["ic-brand-primary"]}};return{...{primaryInverseColor:s==null||(t=s.contrasts)===null||t===void 0?void 0:t.white1010,primaryColor:s==null||(a=s.contrasts)===null||a===void 0?void 0:a.grey125125,secondaryColor:s==null||(n=s.contrasts)===null||n===void 0?void 0:n.grey4570,secondaryInverseColor:s==null||(l=s.contrasts)===null||l===void 0?void 0:l.grey1111,warningColor:s==null||(i=s.contrasts)===null||i===void 0?void 0:i.orange4570,brandColor:s==null||(r=s.contrasts)===null||r===void 0?void 0:r.blue4570,errorColor:s==null||(u=s.contrasts)===null||u===void 0?void 0:u.red4570,alertColor:s==null||(o=s.contrasts)===null||o===void 0?void 0:o.blue4570,successColor:s==null||(c=s.contrasts)===null||c===void 0?void 0:c.green4570},...f[d]}},K7={children:H.node,src:H.string,title:H.string,description:H.string,focusable:H.bool,width:H.oneOfType([H.string,H.number]),height:H.oneOfType([H.string,H.number]),inline:H.bool,color:H.oneOf(["inherit","primary","secondary","primary-inverse","secondary-inverse","success","error","alert","warning","brand","auto"]),elementRef:H.func},P7=["children","src","title","description","focusable","width","height","inline","color","elementRef"],J7=["style","title","description","focusable","children","src","styles"];var V0,G0,Y0,In,La;let Kp=(V0=X3(),G0=Ed(Z7,Q7),Y0=Zp(),V0(In=G0(In=Y0(In=(La=class Fs extends _.Component{constructor(t){super(t),this.titleId=void 0,this.descId=void 0,this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)},this.titleId=t.deterministicId("InlineSVG-title"),this.descId=t.deterministicId("InlineSVG-desc")}componentDidMount(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}componentDidUpdate(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}get role(){return this.props.title?"img":"presentation"}renderTitle(){const t=this.props.title;return t?pn("title",{id:this.titleId},t):null}renderDesc(t){return t?pn("desc",{id:this.descId},t):null}get labelledBy(){const t=[];return this.props.title&&t.push(this.titleId),this.props.description&&t.push(this.descId),t.length>0?t.join(" "):void 0}renderContent(){if(this.props.src){const t=Fs.prepareSrc(this.props.src);return pn("g",{role:"presentation",dangerouslySetInnerHTML:{__html:t}})}else return pn("g",{role:"presentation"},this.props.children)}render(){const t=this.props,a=t.style,n=t.title,l=t.description,i=t.focusable;t.children;const r=t.src,u=t.styles,o=zn(t,J7),c=this.props.width==="auto"?void 0:this.props.width,s=this.props.height==="auto"?void 0:this.props.height;return pn("svg",Object.assign({},W7(r),Bp(this.props,Fs.allowedProps,["inline"]),{style:{...a,width:c,height:s},width:c,height:s,"aria-hidden":n?void 0:"true","aria-labelledby":this.labelledBy,role:this.role,focusable:i?"true":"false",css:u==null?void 0:u.inlineSVG,className:o.className,ref:this.handleRef}),this.renderTitle(),this.renderDesc(l),this.renderContent())}},La.displayName="InlineSVG",La.componentId="InlineSVG",La.allowedProps=P7,La.propTypes=K7,La.defaultProps={focusable:!1,src:"",title:"",description:"",inline:!0,width:"1em",height:"1em",color:"inherit"},La.prepareSrc=e=>{const a=/]*>((.|[\n\r])*)<\/svg>/.exec(e);return a?a[1]:e},La))||In)||In)||In);function W7(e){const t={},a=/]*)\s*>/,n=/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g;if(typeof e=="string"){const l=a.exec(e),i=l?l[1]:"",r=["xmlns","xmlns:xlink","version"];let u=n.exec(i);for(;u!=null;)r.indexOf(u[1])===-1&&(t[u[1]]=u[2]||(u[3]?u[3]:u[4]?u[4]:u[5])||u[1]),u=n.exec(i)}return t}const F7=(e,t)=>{const a=t.rotate,n=t.size,l=t.bidirectional,i={0:{},90:{transform:"rotate(90deg)"},180:{transform:"rotate(180deg)"},270:{transform:"rotate(270deg)"}},r={0:{transform:"scale3d(-1, 1, 1)"},90:{transform:"scale3d(-1, 1, 1) rotate(90deg)"},180:{transform:"scale3d(-1, 1, 1) rotate(180deg)"},270:{transform:"scale3d(-1, 1, 1) rotate(270deg)"}},u={"x-small":{fontSize:e.sizeXSmall},small:{fontSize:e.sizeSmall},medium:{fontSize:e.sizeMedium},large:{fontSize:e.sizeLarge},"x-large":{fontSize:e.sizeXLarge}};return{svgIcon:{label:"svgIcon",verticalAlign:"middle",lineHeight:1,width:"1em",height:"1em",...i[a],...n&&u[n],...l&&{'[dir="rtl"] &':r[a]}}}},I7=()=>({...{sizeXSmall:"1.125rem",sizeSmall:"2rem",sizeMedium:"3rem",sizeLarge:"5rem",sizeXLarge:"10rem"}}),eS={...Kp.propTypes,rotate:H.oneOf(["0","90","180","270"]),size:H.oneOf(["x-small","small","medium","large","x-large"]),bidirectional:H.bool},tS=["children","src","title","description","focusable","width","height","inline","color","elementRef","rotate","size","bidirectional"],aS=["rotate","className","themeOverride","size","bidirectional","makeStyles","styles"],nS=["sizeXSmall","sizeSmall","sizeMedium","sizeLarge","sizeXLarge"];var q0,k0,Jr,fn;let Ie=(q0=Ed(F7,I7),k0=Zp(),q0(Jr=k0(Jr=(fn=class extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}componentDidMount(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}componentDidUpdate(){var t,a;(t=(a=this.props).makeStyles)===null||t===void 0||t.call(a)}render(){const t=this.props,a=t.rotate,n=t.className,l=t.themeOverride;t.size,t.bidirectional,t.makeStyles;const i=t.styles,r=zn(t,aS),u=l;u.sizeXSmall,u.sizeSmall,u.sizeMedium,u.sizeLarge,u.sizeXLarge;const o=zn(u,nS);return pn(Kp,Object.assign({},r,{themeOverride:o,rotate:a,css:i==null?void 0:i.svgIcon,className:n,elementRef:this.handleRef}))}},fn.displayName="SVGIcon",fn.componentId="SVGIcon",fn.allowedProps=tS,fn.propTypes=eS,fn.defaultProps={rotate:"0",bidirectional:!1},fn))||Jr)||Jr);var X0;class Kl extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconCanvasLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),X0||(X0=Ce.createElement("path",{d:"M958.568 277.97C1100.42 277.97 1216.48 171.94 1233.67 34.3881 1146.27 12.8955 1054.57 0 958.568 0 864.001 0 770.867 12.8955 683.464 34.3881 700.658 171.94 816.718 277.97 958.568 277.97ZM35.8207 682.031C173.373 699.225 279.403 815.285 279.403 957.136 279.403 1098.99 173.373 1215.05 35.8207 1232.24 12.8953 1144.84 1.43262 1051.7 1.43262 957.136 1.43262 862.569 12.8953 769.434 35.8207 682.031ZM528.713 957.142C528.713 1005.41 489.581 1044.55 441.31 1044.55 393.038 1044.55 353.907 1005.41 353.907 957.142 353.907 908.871 393.038 869.74 441.31 869.74 489.581 869.74 528.713 908.871 528.713 957.142ZM1642.03 957.136C1642.03 1098.99 1748.06 1215.05 1885.61 1232.24 1908.54 1144.84 1920 1051.7 1920 957.136 1920 862.569 1908.54 769.434 1885.61 682.031 1748.06 699.225 1642.03 815.285 1642.03 957.136ZM1567.51 957.142C1567.51 1005.41 1528.38 1044.55 1480.11 1044.55 1431.84 1044.55 1392.71 1005.41 1392.71 957.142 1392.71 908.871 1431.84 869.74 1480.11 869.74 1528.38 869.74 1567.51 908.871 1567.51 957.142ZM958.568 1640.6C816.718 1640.6 700.658 1746.63 683.464 1884.18 770.867 1907.11 864.001 1918.57 958.568 1918.57 1053.14 1918.57 1146.27 1907.11 1233.67 1884.18 1216.48 1746.63 1100.42 1640.6 958.568 1640.6ZM1045.98 1480.11C1045.98 1528.38 1006.85 1567.51 958.575 1567.51 910.304 1567.51 871.172 1528.38 871.172 1480.11 871.172 1431.84 910.304 1392.71 958.575 1392.71 1006.85 1392.71 1045.98 1431.84 1045.98 1480.11ZM1045.98 439.877C1045.98 488.148 1006.85 527.28 958.575 527.28 910.304 527.28 871.172 488.148 871.172 439.877 871.172 391.606 910.304 352.474 958.575 352.474 1006.85 352.474 1045.98 391.606 1045.98 439.877ZM1441.44 1439.99C1341.15 1540.29 1333.98 1697.91 1418.52 1806.8 1579 1712.23 1713.68 1577.55 1806.82 1418.5 1699.35 1332.53 1541.74 1339.7 1441.44 1439.99ZM1414.21 1325.37C1414.21 1373.64 1375.08 1412.77 1326.8 1412.77 1278.53 1412.77 1239.4 1373.64 1239.4 1325.37 1239.4 1277.1 1278.53 1237.97 1326.8 1237.97 1375.08 1237.97 1414.21 1277.1 1414.21 1325.37ZM478.577 477.145C578.875 376.846 586.039 219.234 501.502 110.339 341.024 204.906 206.338 339.592 113.203 498.637 220.666 584.607 378.278 576.01 478.577 477.145ZM679.155 590.32C679.155 638.591 640.024 677.723 591.752 677.723 543.481 677.723 504.349 638.591 504.349 590.32 504.349 542.048 543.481 502.917 591.752 502.917 640.024 502.917 679.155 542.048 679.155 590.32ZM1440 475.712C1540.3 576.01 1697.91 583.174 1806.8 498.637 1712.24 338.159 1577.55 203.473 1418.51 110.339 1332.54 217.801 1341.13 375.413 1440 475.712ZM1414.21 590.32C1414.21 638.591 1375.08 677.723 1326.8 677.723 1278.53 677.723 1239.4 638.591 1239.4 590.32 1239.4 542.048 1278.53 502.917 1326.8 502.917 1375.08 502.917 1414.21 542.048 1414.21 590.32ZM477.145 1438.58C376.846 1338.28 219.234 1331.12 110.339 1415.65 204.906 1576.13 339.593 1710.82 498.637 1805.39 584.607 1696.49 577.443 1538.88 477.145 1438.58ZM679.155 1325.37C679.155 1373.64 640.024 1412.77 591.752 1412.77 543.481 1412.77 504.349 1373.64 504.349 1325.37 504.349 1277.1 543.481 1237.97 591.752 1237.97 640.024 1237.97 679.155 1277.1 679.155 1325.37Z"})))}}Kl.glyphName="canvas-logo";Kl.variant="Line";Kl.displayName="IconCanvasLogoLine";Kl.propTypes={...Ie.propTypes};Kl.allowedProps=[...Ie.allowedProps];var Z0;class Pl extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconElevateLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Z0||(Z0=Ce.createElement("path",{d:"M1070.45 53.9152C1104.97 88.4365 1124.36 135.258 1124.36 184.078L1123.51 1188.09C1123.74 1229.1 1110.25 1269.01 1085.18 1301.47 1060.11 1333.93 1024.9 1357.08 985.16 1367.22 945.419 1377.35 903.428 1373.91 865.87 1357.43 828.312 1340.95 797.346 1312.38 777.899 1276.28 763.314 1249.19 755.85 1218.85 756.21 1188.09V184.078C756.21 135.258 775.603 88.4365 810.124 53.9152 844.646 19.3939 891.467 0 940.288 0 989.108 0 1035.93 19.3939 1070.45 53.9152ZM161.091 1320.33C194.624 1353.7 240.009 1372.44 287.319 1372.44 310.767 1372.44 333.985 1367.81 355.644 1358.83 377.304 1349.85 396.98 1336.69 413.547 1320.1 430.113 1303.5 443.246 1283.8 452.193 1262.13 461.141 1240.45 465.726 1217.23 465.689 1193.78L463.406 359.01 106.666 741.15 108.378 1194.35C108.605 1241.67 127.558 1286.96 161.091 1320.33ZM1592.41 1372.44C1639.74 1372.51 1685.17 1353.81 1718.72 1320.42 1752.27 1287.02 1771.2 1241.69 1771.35 1194.35L1773.06 741.15 1416.33 359.01 1414.32 1193.78C1414.29 1217.21 1418.87 1240.41 1427.79 1262.06 1436.72 1283.71 1449.83 1303.41 1466.37 1319.99 1482.9 1336.58 1502.55 1349.75 1524.17 1358.75 1545.8 1367.75 1568.99 1372.4 1592.41 1372.44ZM1123.46 1752.39C1126.77 1716.09 1119.25 1679.61 1101.83 1647.56 1090.29 1626.27 1074.66 1607.47 1055.85 1592.22 1037.03 1576.97 1015.39 1565.59 992.163 1558.73 968.939 1551.86 944.588 1549.64 920.506 1552.2 896.423 1554.76 873.083 1562.05 851.822 1573.65 819.782 1591.06 793.627 1617.59 776.661 1649.87 759.697 1682.14 752.685 1718.73 756.513 1754.99 760.341 1791.25 774.837 1825.57 798.168 1853.59 821.499 1881.62 852.616 1902.09 887.585 1912.44 922.554 1922.77 959.804 1922.51 994.623 1911.68 1029.44 1900.84 1060.27 1879.94 1083.2 1851.58 1106.13 1823.23 1120.14 1788.71 1123.46 1752.39Z"})))}}Pl.glyphName="elevate-logo";Pl.variant="Line";Pl.displayName="IconElevateLogoLine";Pl.propTypes={...Ie.propTypes};Pl.allowedProps=[...Ie.allowedProps];var Q0;class Jl extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconImpactLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),Q0||(Q0=Ce.createElement("path",{d:"M910.001 203.918C910.001 163.587 921.96 124.161 944.366 90.6273 966.773 57.0931 998.621 30.9565 1035.88 15.5225 1073.14.0883516 1114.15-3.9499 1153.7 3.91831 1193.26 11.7866 1229.59 31.2078 1258.11 59.7263 1286.63 88.2447 1306.05 124.579 1313.92 164.135 1321.78 203.692 1317.75 244.693 1302.32 281.954 1286.88 319.215 1260.74 351.062 1227.21 373.47 1193.68 395.876 1154.25 407.836 1113.92 407.836 1087.13 407.869 1060.6 402.617 1035.84 392.38 1011.09 382.144 988.596 367.124 969.654 348.182 950.712 329.241 935.692 306.748 925.457 281.993 915.22 257.237 909.967 230.706 910.001 203.918ZM167.424 913.308 458.311 622.422H1045.04L460.789 1206.68C421.886 1245.58 369.124 1267.44 314.107 1267.44 259.09 1267.44 206.327 1245.58 167.424 1206.68 128.522 1167.77 106.667 1115.01 106.667 1059.99 106.667 1004.97 128.522 952.211 167.424 913.308ZM1738.81 1027.77 1454.11 1313.21H867.136L1444.7 734.406C1483.6 695.405 1536.4 673.455 1591.49 673.386 1646.57 673.316 1699.43 695.132 1738.43 734.034 1777.43 772.936 1799.38 825.739 1799.45 880.826 1799.52 935.911 1777.71 988.769 1738.81 1027.77ZM587.075 1602.79C564.668 1636.33 552.709 1675.75 552.709 1716.08 552.709 1770.16 574.192 1822.02 612.435 1860.27 650.677 1898.51 702.543 1920 756.627 1920 796.957 1920 836.382 1908.04 869.917 1885.63 903.451 1863.23 929.588 1831.38 945.021 1794.12 960.456 1756.85 964.494 1715.85 956.625 1676.29 948.758 1636.74 929.336 1600.4 900.817 1571.89 872.299 1543.37 835.965 1523.94 796.409 1516.08 756.853 1508.21 715.851 1512.25 678.59 1527.69 641.329 1543.12 609.481 1569.25 587.075 1602.79Z"})))}}Jl.glyphName="impact-logo";Jl.variant="Line";Jl.displayName="IconImpactLogoLine";Jl.propTypes={...Ie.propTypes};Jl.allowedProps=[...Ie.allowedProps];var K0;class Nn extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconInstructureLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),K0||(K0=Ce.createElement("path",{d:"M1448.57 288.052 1084.46 502.746 1448.55 718.026 1813.23 502.732 1448.57 288.052ZM959.965 429.191 1323.92 214.589 959.988 0 596.032 214.602 959.965 429.191ZM835.499 502.732 471.388 288.038 106.704 502.732 471.388 718.026 835.499 502.732ZM106.667 1416.54 960 1920 1813.33 1416.54 960 913.07 106.667 1416.54Z"})))}}Nn.glyphName="instructure-logo";Nn.variant="Line";Nn.displayName="IconInstructureLogoLine";Nn.propTypes={...Ie.propTypes};Nn.allowedProps=[...Ie.allowedProps];var P0;class Wl extends _.Component{constructor(...t){super(...t),this.ref=null,this.handleRef=a=>{const n=this.props.elementRef;this.ref=a,typeof n=="function"&&n(a)}}render(){return Ce.createElement(Ie,Object.assign({},this.props,{name:"IconMasteryLogo",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),P0||(P0=Ce.createElement("path",{d:"M672.274 547.699V889.681L371.706 760.866C332.318 747.272 297.441 723.083 270.907 690.958 244.373 658.833 227.209 620.015 221.301 578.769 215.392 537.524 220.969 495.447 237.417 457.164 253.866 418.883 280.55 385.876 314.537 361.771 348.524 337.668 388.498 323.399 430.066 320.536 471.634 317.672 513.187 326.323 550.158 345.538 587.13 364.753 618.089 393.788 639.632 429.453 661.176 465.119 672.47 506.033 672.274 547.699ZM959.895 1550.52C1013.45 1550.76 1065.35 1531.95 1106.32 1497.47 1147.3 1462.98 1174.68 1415.06 1183.6 1362.25 1192.51 1309.44 1182.37 1255.17 1154.98 1209.16 1127.6 1163.13 1084.75 1128.34 1034.08 1110.97L733.516 982.161V1324.15C733.584 1384.17 757.456 1441.7 799.895 1484.15 842.335 1526.59 899.876 1550.46 959.895 1550.52ZM226.887 1097.53C182.052 1097.47 138.21 1110.72 100.908 1135.6 63.6045 1160.47 34.5168 1195.85 17.3245 1237.26.13224 1278.67-4.39211 1324.24 4.32386 1368.21 13.0399 1412.19 34.6045 1452.61 66.2896 1484.32 97.9747 1516.04 138.356 1537.65 182.325 1546.42 226.295 1555.19 271.876 1550.71 313.303 1533.57 354.73 1516.42 390.14 1487.37 415.054 1450.1 439.968 1412.82 453.266 1368.99 453.266 1324.16 453.199 1264.12 429.335 1206.55 386.902 1164.08 344.47 1121.59 286.929 1097.66 226.887 1097.53ZM1693.14 1550.52C1746.69 1550.76 1798.6 1531.95 1839.57 1497.47 1880.54 1462.98 1907.93 1415.06 1916.85 1362.25 1925.75 1309.44 1915.62 1255.17 1888.23 1209.16 1860.85 1163.13 1818 1128.34 1767.33 1110.97L1466.51 982.161V1324.15C1466.64 1384.19 1490.57 1441.72 1533.05 1484.16 1575.53 1526.59 1633.1 1550.46 1693.14 1550.52ZM1405.53 547.689V889.671L1104.7 760.856C1065.35 747.221 1030.51 723.005 1004.02 690.865 977.527 658.724 960.404 619.905 954.531 578.67 948.656 537.434 954.261 495.378 970.726 457.12 987.192 418.861 1013.88 385.879 1047.87 361.798 1081.85 337.716 1121.81 323.465 1163.37 320.611 1204.92 317.757 1246.46 326.408 1283.41 345.617 1320.37 364.825 1351.33 393.847 1372.86 429.495 1394.41 465.143 1405.71 506.038 1405.53 547.689Z"})))}}Wl.glyphName="mastery-logo";Wl.variant="Line";Wl.displayName="IconMasteryLogoLine";Wl.propTypes={...Ie.propTypes};Wl.allowedProps=[...Ie.allowedProps];const lS="isp-site",iS="5.0.1+1724942027",rS="https://inst.bid/#/",uS="module",oS={dev:"vite","biome:check":"pnpm lint && pnpm check && pnpm format","biome:apply":"pnpm lint:apply && pnpm check:apply && pnpm format:apply",build:"pnpm build:preview && pnpm build:git","build:git":'git add . && git commit -m "Build v$npm_package_version" && git push',"build:js":"vite build","build:preview":"pnpm biome:apply && pnpm sec && pnpm build:version && pnpm build:ts && pnpm build:js","build:ts":"tsc","build:version":`node-jq -r '.version=$ARGS.positional[0]+"+"+$ARGS.positional[1]' package.json --args "$(pnpm -s env:semver)" "$(date +%s)" | sponge package.json`,check:"biome check","check:apply":"biome check --write","env:package":"node-jq '.' package.json","env:biome":"biome rage","env:buildtime":`date -r $(node-jq -r '(.version | split("+"))[1]' package.json)`,"env:semver":`node-jq -r '(.version | split("+"))[0]' package.json`,"env:version":'echo "$npm_package_version"',format:"biome format","format:apply":"biome format --write",lint:"biome lint","lint:apply":"biome lint --write",preview:"pnpm build:preview && vite preview",push:`pnpm build && {pnpm tag || printf "git tag already exists.\r +";} && gh-pages -t -m "Deploy v$(pnpm -s env:version)" -d dist`,sec:"pnpm sec:audit && pnpm sec:scan","sec:audit":"snyk test && pnpm audit","sec:scan":"snyk code test",tag:"git tag isp-site-v$(pnpm -s env:semver) && git push origin isp-site-v$(pnpm -s env:semver)"},cS={"@instructure/browserslist-config-canvas-lms":"^2.0.0","@instructure/ui":"10.2.0","gh-pages":"^6.1.1",react:"19.0.0-rc-7771d3a7-20240827","react-dom":"19.0.0-rc-7771d3a7-20240827","react-markdown":"^9.0.1","react-router-dom":"^6.26.1","rehype-raw":"^7.0.0","remark-gemoji":"^8.0.0","remark-gfm":"^4.0.0"},sS={"@babel/plugin-syntax-import-attributes":"^7.25.6","@biomejs/biome":"1.8.3","@instructure/shared-types":"^9.6.0","@octokit/types":"^13.5.0","@types/react":"npm:types-react@19.0.0-rc.0","@types/react-dom":"npm:types-react-dom@19.0.0-rc.0","@vitejs/plugin-react":"^4.3.1","babel-plugin-react-compiler":"0.0.0-experimental-03b7aef-20240827","node-jq":"^4.4.0",snyk:"^1.1293.0","snyk-policy":"^3.0.0",typescript:"^5.5.4",vite:"^5.4.2"},fS={node:">=22.6.0",pnpm:">=9.7.0"},dS="pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1",hS={overrides:{react:"^19.0.0-rc-d48603a5-20240813","react-dom":"^19.0.0-rc-d48603a5-20240813","@instructure/ui-test-sandbox>sinon":"^17.0.1","gh-pages>globby":"11.1.0","node-jq>tempfile":"^5.0.0","bin-build>tempfile":"^5.0.0","bin-build>download":"^8.0.0","download>got":"^14.4.1"}},mS=["extends @instructure/browserslist-config-canvas-lms"],vS={name:lS,version:iS,homepage:rS,private:!0,type:uS,scripts:oS,dependencies:cS,devDependencies:sS,engines:fS,packageManager:dS,pnpm:hS,browserslist:mS},M={owner:"instructure",repo:"instructure-compliance-packages",branch:"main",url:vS.homepage.replace("/#/",""),gh:"https://github.com",api:"https://api.github.com",raw:"https://raw.githubusercontent.com"},Ha=`${M.raw}/${M.owner}/${M.repo}/${M.branch}/README`,pS=["Instructure","Canvas","Mastery","Elevate","Impact","LearnPlatform","Intelligent Insights","Parchment"],P8=[...pS,"Canvas LMS","Canvas Mobile","Canvas Studio","Canvas Credentials","Canvas Catalog","Canvas Commons","Canvas Data","Mastery Connect","Mastery Item Bank","Mastery View Assessments","Elevate Data Quality","Elevate Data Sync","Elevate Standards Alignment","Learn Platform"],yS=[{brandName:"Instructure",get title(){return this.brandName.toLowerCase()},route:"/",readme:`${Ha}.md`,color:"#287A9F",Icon:Nn},{brandName:"Canvas",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ha}-${this.brandName}.md`},color:"#E72429",Icon:Kl},{brandName:"Mastery",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ha}-${this.brandName}.md`},color:"#24A159",Icon:Wl},{brandName:"Elevate",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ha}-${this.brandName}.md`},color:"#0097D3",Icon:Pl},{brandName:"Impact",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ha}-${this.brandName}.md`},color:"#F76400",Icon:Jl},{brandName:"LearnPlatform",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ha}-${this.brandName}.md`},color:"#0077CC",Icon:()=>je.jsxs(Ie,{viewBox:"0 0 300 300",size:"small",color:"primary-inverse",height:"2.5rem",width:"2.5rem",children:[je.jsx("path",{d:"M191.431 212.736H205.086C204.961 212.34 204.846 211.974 204.738 211.63C204.404 210.567 204.135 209.713 203.834 208.81C199.852 198.417 195.964 187.986 192.171 177.517C181.493 149.012 170.872 120.497 160.309 91.9733C159.911 90.214 158.223 89.0597 156.44 89.3276C151.091 89.4698 145.743 89.5267 140.423 89.3276C138.432 89 136.546 90.3293 136.184 92.3147C121.657 131.422 107.129 170.519 92.6017 209.607C92.414 210.136 92.2467 210.686 92.0507 211.329C91.9201 211.759 91.7767 212.23 91.606 212.765C93.7973 212.765 95.9464 212.748 98.0664 212.732C102.222 212.701 106.265 212.67 110.297 212.765C112.402 212.935 113.17 211.94 113.824 210.091C115.474 205.226 117.167 200.375 118.859 195.525C120.552 190.675 122.245 185.824 123.895 180.959C124.199 179.276 125.788 178.141 127.479 178.399H168.729C170.418 178.138 172.011 179.255 172.342 180.931C173.799 185.14 175.307 189.334 176.814 193.524C178.251 197.519 179.687 201.511 181.076 205.51C182.365 209.107 183.012 210.914 184.295 211.821C185.589 212.736 187.531 212.736 191.431 212.736ZM148.417 109.213C154.145 126.092 159.977 143.351 165.913 160.989H131.121L148.417 109.213Z"}),je.jsx("path",{d:"M225 110.209V114.191H207.931V133.707H203.522V114.191H186.453V110.209H203.522V90.8069H207.732V110.209H225Z"}),je.jsx("path",{d:"M219.488 246.567C178.123 277.109 121.739 277.405 80.0539 247.301L86.1316 238.9C47.7742 211.418 31.5805 162.32 46.069 117.435L55.9454 119.307C69.5589 79.1029 107.372 52.0989 149.847 52.2484V13C90.0696 13.0663 37.1326 51.5854 18.7192 108.414C0.305744 165.242 20.6036 227.455 68.998 262.519C117.392 297.583 182.877 297.523 231.207 262.37C279.537 227.218 299.72 164.967 281.203 108.173L272.111 111.134C289.714 164.146 271.022 222.449 225.87 255.373"}),je.jsx("path",{d:"M219.488 246.567C178.123 277.109 121.739 277.405 80.0539 247.301L86.1316 238.9C47.7742 211.418 31.5805 162.32 46.069 117.435L55.9454 119.307C69.5589 79.1029 107.372 52.0989 149.847 52.2484V13C90.0696 13.0663 37.1326 51.5854 18.7192 108.414C0.305744 165.242 20.6036 227.455 68.998 262.519C117.392 297.583 182.877 297.523 231.207 262.37C279.537 227.218 299.72 164.967 281.203 108.173L272.111 111.134C289.714 164.146 271.022 222.449 225.87 255.373"})]})},{brandName:"Intelligent Insights",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title.replace(/ /g,"-")}`},get readme(){return`${Ha}-${this.brandName.replace(/ /g,"-")}.md`},color:"#287A9F",Icon:Nn},{brandName:"Parchment",get title(){return this.brandName.toLowerCase()},get route(){return`/${this.title}`},get readme(){return`${Ha}-${this.brandName}.md`},color:"#0093b2",Icon:()=>je.jsxs(Ie,{viewBox:"0 -3 29 31.68",size:"small",color:"primary-inverse",height:"2.5rem",width:"2.5rem",children:[je.jsx("polygon",{points:"26.87 21.98 2.44 21.98 2.44 2.44 19.54 2.44 19.54 0 0 0 0 24.43 29.31 24.43 29.31 9.77 26.87 9.77"}),je.jsx("rect",{x:"26.87",y:"4.89",width:"2.44",height:"2.44"}),je.jsx("rect",{x:"21.98",width:"2.44",height:"2.44"}),je.jsx("rect",{x:"26.87",width:"2.44",height:"2.44"}),je.jsxs("g",{children:[je.jsx("path",{d:"M9.38,13.2c-.5,0-.62.37-.62.71v1.53c0,.4.23.69.66.69.36,0,.55-.21.55-.69v-1.53c0-.42-.13-.71-.58-.71Z"}),je.jsx("path",{d:"M9.15,11.01c-2.36,0-4.27,1.91-4.27,4.27s1.91,4.27,4.27,4.27,4.27-1.91,4.27-4.27-1.91-4.27-4.27-4.27ZM10.86,15.4c0,.81-.54,1.44-1.27,1.44-.31,0-.84-.14-.84-.38v1.87c0,.14-.18.23-.3.23h-.3c-.13,0-.31-.08-.31-.23v-5.53c0-.14.18-.28.31-.28h.31c.13,0,.29.13.29.28v.05c0-.18.44-.36.8-.36.8,0,1.31.5,1.31,1.48v1.43Z"})]})]})}],gS=`${M.raw}/${M.owner}/${M.repo}`,el=`${gS}/${M.branch}`,bS=[{title:"CAIQ",from:"/aws/caiq/dl",to:`${el}/Amazon%20Web%20Services/AWS%20CAIQ.pdf`},{title:"Cyber Essentials+ Certificate",from:"/aws/ce/dl",to:`${el}/Amazon%20Web%20Services/AWS%20Cyber%20Essentials%20Plus%20Certificate.pdf`},{title:"CSA Star Level 2 Certificate",from:"/aws/csa/dl",to:`${el}/Amazon%20Web%20Services/AWS%20CSA%20Star%20Certification.pdf`},{title:"ISO 27001 Certificate",from:"/aws/iso/dl",to:`${el}/Amazon%20Web%20Services/AWS%20ISO%2027001%20Certificate.pdf`},{title:"ISO 9001 Certificate",from:"/aws/iso9001/dl",to:`${el}/Amazon%20Web%20Services/AWS%20ISO%209001%20Certificate.pdf`},{title:"SOC 3 Report",from:"/aws/soc/dl",to:`${el}/Amazon%20Web%20Services/AWS%20SOC%203.pdf`}],SS=bS.map(e=>({...e,lang:"EN"})),ES={brand:"AWS",links:SS},Pp="canvas-catalog",RS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,CS=`${M.raw}/${M.owner}/${M.repo}`,tl=`${CS}/${Pp}`,AS=[{title:"Compliance Package",from:"/canvas/catalog/dl",to:`${RS}/${Pp}.zip`},{title:"PCI AOC SAQ",from:"/canvas/catalog/aoc/dl",to:`${tl}/Canvas%20Catalog/2024_Instructure_PCI_DSS_Summary.pdf`},{title:"Architecture Paper",from:"/canvas/catalog/architecture/dl",to:`${tl}/Canvas%20Catalog/Canvas%20Catalog%20Architecture.pdf`},{title:"HECVAT Lite",from:"/canvas/catalog/hecvat/dl",to:`${tl}/Canvas%20Catalog/Canvas%20Catalog%20HECVAT%20Lite.xlsx`},{title:"PCI Shared Responsibility Matrix",from:"/canvas/catalog/pci/dl",to:`${tl}/Canvas%20Catalog/Canvas%20Catalog%20PCI%20Responsibility%20Matrix.pdf`},{title:"TX-RAMP Certification",from:"/canvas/catalog/tx-ramp/dl",to:`${tl}/Canvas%20Catalog/Canvas%20Catalog%20TX-RAMP%20Provisional%20Certificate.pdf`},{title:"Payment Redirector",from:"/canvas/catalog/payments/dl",to:`${tl}/Canvas%20Catalog/Catalog%20Payment%20Redirector.png`},{title:"Home (HE)",from:"/canvas/catalog",to:"https://www.instructure.com/higher-education/products/canvas/canvas-catalog/"},{title:"Home (K12)",from:"/canvas/catalog/k12",to:"https://www.instructure.com/k12/products/canvas/canvas-catalog/"},{title:"Guides",from:"/canvas/catalog/guides",to:"https://community.canvaslms.com/t5/Canvas-Catalog/ct-p/canvas_catalog"},{title:"Release Notes",from:"/canvas/catalog/releases",to:"https://community.canvaslms.com/t5/Catalog-Releases/ct-p/catalog_releases"},{title:"API",from:"/canvas/catalog/api",to:"https://api.catalog.instructure.com/api/docs"}],_S=AS.map(e=>({...e,lang:"EN"})),wS={brand:"Canvas Catalog",links:_S},TS=[{title:"Home",from:"/canvas/commons",to:"https://lor.instructure.com/"},{title:"Guides",from:"/canvas/commons/guides",to:"https://community.canvaslms.com/t5/Canvas-Commons/tkb-p/commons"},{title:"API",from:"/canvas/commons/api",to:"https://lor.instructure.com/docs/api/"}],OS=TS.map(e=>({...e,lang:"EN"})),MS={brand:"Canvas Commons",links:OS},Jp="canvas-credentials",DS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,xS=`${M.raw}/${M.owner}/${M.repo}`,Wr=`${xS}/${Jp}`,$S=[{title:"Compliance Package",from:"/canvas/credentials/dl",to:`${DS}/${Jp}.zip`},{title:"VPAT",from:"/canvas/credentials/vpat/dl",to:`${Wr}/Canvas%20Credentials/Canvas%20Credentials%20(formerly%20Badgr)%20VPAT.pdf`},{title:"Architecture Paper",from:"/canvas/credentials/architecture/dl",to:`${Wr}/Canvas%20Credentials/Canvas%20Credentials%20Architecture.pdf`},{title:"HECVAT",from:"/canvas/credentials/hecvat/dl",to:`${Wr}/Canvas%20Credentials/Canvas%20Credentials%20HECVAT%20Full.xlsx`},{title:"TX-RAMP Certification",from:"/canvas/credentials/tx-ramp/dl",to:`${Wr}/Canvas%20Credentials/Canvas%20Credentials%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Home (HE)",from:"/canvas/credentials",to:"https://www.instructure.com/higher-education/products/canvas/canvas-credentials-digital-badges/"},{title:"Home (K12)",from:"/canvas/credentials/k12",to:"https://www.instructure.com/k12/products/canvas/canvas-credentials-digital-badges/"},{title:"Guides",from:"/canvas/credentials/guides",to:"https://community.canvaslms.com/t5/Canvas-Credentials-Badges-Badgr/ct-p/canvas-credentials-badges"},{title:"Release Notes",from:"/canvas/credentials/releases",to:"https://community.canvaslms.com/t5/Badges-Credentials-Releases/tkb-p/badges-release"},{title:"API",from:"/canvas/credentials/api",to:"https://api.badgr.io/docs/v2/"}],zS=$S.map(e=>({...e,lang:"EN"})),Wp="canvas-credentials-ES_LA",NS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,US=`${M.raw}/${M.owner}/${M.repo}`,Fr=`${US}/${Wp}`,LS=[{title:"Compliance Package",from:"/es-la/canvas/credentials/dl",to:`${NS}/${Wp}.zip`},{title:"VPAT",from:"/es-la/canvas/credentials/vpat/dl",to:`${Fr}/Canvas%20Credentials/Canvas%20Credentials%20(formerly%20Badgr)%20VPAT.pdf`},{title:"Papel de Arquitectura",from:"/es-la/canvas/credentials/arquitectura/dl",to:`${Fr}/Canvas%20Credentials/Canvas%20Credentials%20Architecture_ES.pdf`},{title:"HECVAT",from:"/es-la/canvas/credentials/hecvat/dl",to:`${Fr}/Canvas%20Credentials/Canvas%20Credentials%20HECVAT%20Full.xlsx`},{title:"Certificado de Nivel 2 de TX-RAMP",from:"/es-la/canvas/credentials/tx-ramp/dl",to:`${Fr}/Canvas%20Credentials/Canvas%20Credentials%20TX-RAMP%20Level%202%20Certification.pdf`}],HS=LS.map(e=>({...e,lang:"ES_LA"})),Fp="canvas-credentials-PT_BR",BS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,jS=`${M.raw}/${M.owner}/${M.repo}`,Ir=`${jS}/${Fp}`,VS=[{title:"Compliance Package",from:"/pt-br/canvas/credentials/dl",to:`${BS}/${Fp}.zip`},{title:"VPAT",from:"/pt-br/canvas/credentials/vpat/dl",to:`${Ir}/Canvas%20Credentials/Canvas%20Credentials%20(formerly%20Badgr)%20VPAT.pdf`},{title:"Papel de Arquitectura",from:"/pt-br/canvas/credentials/arquitectura/dl",to:`${Ir}/Canvas%20Credentials/Canvas%20Credentials%20Architecture_PT.pdf`},{title:"HECVAT",from:"/pt-br/canvas/credentials/hecvat/dl",to:`${Ir}/Canvas%20Credentials/Canvas%20Credentials%20HECVAT%20Full.xlsx`},{title:"Certificado de Nível 2 de TX-RAMP",from:"/pt-br/canvas/credentials/tx-ramp/dl",to:`${Ir}/Canvas%20Credentials/Canvas%20Credentials%20TX-RAMP%20Level%202%20Certification.pdf`}],GS=VS.map(e=>({...e,lang:"PT_BR"})),YS={brand:"Canvas Credentials",links:[...zS,...HS,...GS]},qS=[{title:"Guides",from:"/canvas/data/guides",to:"https://community.canvaslms.com/t5/Canvas-Data-Users/gh-p/data"},{title:"API",from:"/canvas/data/api",to:"https://portal.inshosteddata.com/docs"}],kS=qS.map(e=>({...e,lang:"EN"})),XS={brand:"Canvas Data",links:kS},ZS=[{title:"Startseite",from:"/de/canvas/lms",to:"https://www.instructure.com/de/hochschule/produkt/canvas/canvas-lms/"},{title:"Handbücher",from:"/de/canvas/handbuch",to:"https://community.canvaslms.com/t5/Ressourcen-auf-Deutsch-German/ct-p/german_resources"}],QS=ZS.map(e=>({...e,lang:"DE"})),Ip="canvas-lms",KS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,PS=`${M.raw}/${M.owner}/${M.repo}`,vi=`${PS}/${Ip}`,JS=[{title:"Compliance Package",from:"/canvas/lms/dl",to:`${KS}/${Ip}.zip`},{title:"Architecture Paper",from:"/canvas/lms/architecture/dl",to:`${vi}/Canvas%20LMS/Canvas%20LMS%20Architecture.pdf`},{title:"HECVAT",from:"/canvas/lms/hecvat/dl",to:`${vi}/Canvas%20LMS/Canvas%20LMS%20HECVAT%20Full.xlsx`},{title:"K12CVAT",from:"/canvas/lms/k12cvat/dl",to:`${vi}/Canvas%20LMS/Canvas%20LMS%20K12CVAT%20Full.xlsx`},{title:"SOC 3 Report",from:"/canvas/lms/soc/dl",to:`${vi}/Canvas%20LMS/Canvas%20LMS%20SOC%203.pdf`},{title:"TX-RAMP Level 2 Certificate",from:"/canvas/lms/txramp/dl",to:`${vi}/Canvas%20LMS/Canvas%20LMS%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Home (HE)",from:"/canvas/lms",to:"https://www.instructure.com/higher-education/products/canvas/canvas-lms/"},{title:"Home (K12)",from:"/canvas/lms/k12",to:"https://www.instructure.com/k12/products/canvas/canvas-lms/"},{title:"VPAT",from:"/canvas/lms/vpat",to:"https://www.instructure.com/products/canvas/accessibility/"},{title:"Guides",from:"/canvas/lms/guides",to:"https://community.canvaslms.com/t5/Canvas-Guides/ct-p/canvas_guides/"},{title:"Release Notes",from:"/canvas/lms/releases",to:"https://community.canvaslms.com/t5/Canvas-Releases/tkb-p/canvas-release"},{title:"API",from:"/canvas/lms/api",to:"https://canvas.instructure.com/doc/api/index.html"}],WS=JS.map(e=>({...e,lang:"EN"})),ey="canvas-lms-ES_LA",FS=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,IS=`${M.raw}/${M.owner}/${M.repo}`,pi=`${IS}/${ey}`,e6=[{title:"Compliance Package",from:"/es-la/canvas/lms/dl",to:`${FS}/${ey}.zip`},{title:"Papel de Arquitectura",from:"/es-la/canvas/lms/arquitectura/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20Architecture_ES.pdf`},{title:"HECVAT",from:"/es-la/canvas/lms/hecvat/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20HECVAT%20Full.xlsx`},{title:"K12CVAT",from:"/es-la/canvas/lms/k12cvat/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20K-12CVAT-Lite.xlsx`},{title:"Informe SOC 3",from:"/es-la/canvas/lms/soc/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20SOC%203.pdf`},{title:"Certificado de Nivel 2 de TX-RAMP",from:"/es-la/canvas/lms/txramp/dl",to:`${pi}/Canvas%20LMS/Canvas%20LMS%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Página de inicio (HE)",from:"/es-la/canvas/lms",to:"https://www.instructure.com/es/canvas/educacion-superior/"},{title:"Página de inicio (K12)",from:"/es-la/canvas/lms/basica",to:"https://www.instructure.com/es/educacion-basica/"},{title:"Guías",from:"/es-la/canvas/guias",to:"https://community.canvaslms.com/t5/Recursos-en-Espa%C3%B1ol-Spanish/ct-p/espanol_resources"},{title:"Notas de implementación",from:"/es-la/canvas/lms/publicacion",to:"https://community.canvaslms.com/t5/Espa%C3%B1ol/tkb-p/canvas-release-espanol"}],t6=e6.map(e=>({...e,lang:"ES_LA"})),ty="canvas-lms-PT_BR",a6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,n6=`${M.raw}/${M.owner}/${M.repo}`,yi=`${n6}/${ty}`,l6=[{title:"Compliance Package",from:"/pt-br/canvas/lms/dl",to:`${a6}/${ty}.zip`},{title:"Papel de Arquitetura",from:"/pt-br/canvas/lms/arquitetura/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20Architecture_PT.pdf`},{title:"HECVAT",from:"/pt-br/canvas/lms/hecvat/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20HECVAT%20Full.xlsx`},{title:"K12CVAT",from:"/pt-br/canvas/lms/k12cvat/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20K-12CVAT-Lite.xlsx`},{title:"Relatório SOC 3",from:"/pt-br/canvas/lms/soc/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20SOC%203.pdf`},{title:"Certificado de Nível 2 do TX-RAMP",from:"/pt-br/canvas/lms/txramp/dl",to:`${yi}/Canvas%20LMS/Canvas%20LMS%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Página inicial (HE)",from:"/canvas/lms/pt",to:"https://www.instructure.com/pt-br/canvas/ensino-superior/"},{title:"Página inicial (K12)",from:"/canvas/lms/pt/basica",to:"https://www.instructure.com/pt-br/ensino-fundamental-e-medio/"},{title:"Guias",from:"/pt-br/canvas/guias",to:"https://community.canvaslms.com/t5/Recursos-en-Espa%C3%B1ol-Spanish/ct-p/espanol_resources"},{title:"Notas de lançamento (Canvas LMS)",from:"/canvas/lms/lancamentos",to:"https://community.canvaslms.com/t5/Portugues/tkb-p/canvas-release-portugues"}],i6=l6.map(e=>({...e,lang:"PT_BR"})),r6={brand:"Canvas LMS",links:[...WS,...t6,...i6,...QS]},u6=[{title:"Mobile Apps (Android)",from:"/canvas/mobile/android",to:"https://play.google.com/store/apps/developer?id=Instructure"},{title:"Mobile Apps (iOS)",from:"/canvas/mobile/ios",to:"https://apps.apple.com/us/developer/instructure-inc/id418441198"},{title:"Release Notes",from:"/canvas/mobile/releases",to:"https://community.canvaslms.com/t5/Canvas-Mobile-Releases/tkb-p/CanvasMobileReleases"},{title:"Guides",from:"/canvas/mobile/guides",to:"https://community.canvaslms.com/t5/Canvas-Mobile-Users/gh-p/mobile"}],o6=u6.map(e=>({...e,lang:"EN"})),c6={brand:"Canvas Mobile",links:o6},ay="canvas-studio",s6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,f6=`${M.raw}/${M.owner}/${M.repo}`,J0=`${f6}/${ay}`,d6=[{title:"Compliance Package",from:"/canvas/studio/dl",to:`${s6}/${ay}.zip`},{title:"Architecture Paper",from:"/canvas/studio/architecture/dl",to:`${J0}/Canvas%20Studio/Canvas%20Studio%20Architecture.pdf`},{title:"HECVAT",from:"/canvas/studio/hecvat/dl",to:`${J0}/Canvas%20Studio/Canvas%20Studio%20HECVAT%20Lite.xlsx`},{title:"Home (HE)",from:"/canvas/studio",to:"https://www.instructure.com/higher-education/products/canvas/canvas-studio/"},{title:"Home (K12)",from:"/canvas/studio/k12",to:"https://www.instructure.com/k12/products/canvas/canvas-studio/"},{title:"VPAT",from:"/canvas/studio/vpat",to:"https://www.instructure.com/accessibility/canvas/canvas-studio-vpat/"},{title:"Guides",from:"/canvas/studio/guides",to:"https://community.canvaslms.com/t5/Canvas-Studio/ct-p/studio_guides"},{title:"Release Notes",from:"/canvas/studio/releases",to:"https://community.canvaslms.com/t5/Studio-Releases/ct-p/studio_releases"},{title:"API",from:"/canvas/studio/api",to:"https://canvas.instructuremedia.com/api/public/docs/#/"}],h6=d6.map(e=>({...e,lang:"EN"})),m6={brand:"Canvas Studio",links:h6},v6=[{title:"Gemeinschaft",from:"/de/canvas/gemeinschaft",to:"https://community.canvaslms.com/t5/Ressourcen-auf-Deutsch-German/ct-p/german_resources"}],p6=v6.map(e=>({...e,lang:"DE"})),y6="canvas-lms",g6=`${M.raw}/${M.owner}/${M.repo}`,b6=`${g6}/${y6}`,S6=[{title:"Security Audit Report",from:"/canvas/audit/dl",to:`${b6}/Canvas%20LMS/Canvas%20Security%20Audit%20Report.pdf`},{title:"Try Canvas (FFT)",from:"/canvas/try",to:"https://www.instructure.com/try-canvas"},{title:"Community",from:"/canvas/community",to:"https://community.canvaslms.com/t5/Canvas/ct-p/canvas"},{title:"Roadmap",from:"/canvas/roadmap",to:"https://community.canvaslms.com/t5/Canvas-Product-Roadmap/ct-p/canvas-product-roadmap"},{title:"Ideas",from:"/canvas/ideas",to:"https://community.canvaslms.com/t5/Canvas-Ideas-and-Themes/ct-p/canvas-ideas-themes?tab=identified"}],E6=S6.map(e=>({...e,lang:"EN"})),R6=[{title:"Communidad",from:"/es-la/canvas/lms/communidad",to:"https://community.canvaslms.com/t5/Recursos-en-Espa%C3%B1ol-Spanish/ct-p/espanol_resources"}],C6=R6.map(e=>({...e,lang:"ES_LA"})),A6=[{title:"Comunidade",from:"/pt-br/canvas/comunidade",to:"https://community.canvaslms.com/t5/Recursos-em-Portugu%C3%AAs-Portuguese/ct-p/portuguese_resources"}],_6=A6.map(e=>({...e,lang:"PT_BR"})),w6={brand:"Canvas",links:[...E6,...C6,..._6,...p6]},T6=[{title:"Home",from:"/elevate/dataquality",to:"https://www.instructure.com/k12/products/elevate/elevate-data-quality/"},{title:"Guides",from:"/elevate/dataquality/guides",to:"https://community.canvaslms.com/t5/Elevate-Data-Quality/ct-p/certify"}],O6=T6.map(e=>({...e,lang:"EN"})),M6={brand:"Elevate Data Quality",links:O6},D6=[{title:"Guides",from:"/elevate/datasync/guides",to:"https://community.canvaslms.com/t5/Elevate-Data-Sync/ct-p/elevate_data_sync"}],x6=D6.map(e=>({...e,lang:"EN"})),$6={brand:"Elevate Data Sync",links:x6},ny="elevate-standards-alignment",z6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,N6=`${M.raw}/${M.owner}/${M.repo}`,U6=`${N6}/${ny}`,L6=[{title:"Compliance Package",from:"/elevate/standards-alignment/dl",to:`${z6}/${ny}.zip`},{title:"HECVAT Lite",from:"/elevate/standards-alignment/hecvat/dl",to:`${U6}/Elevate%20Standards%20Alignment/Elevate%20Standards%20Alignment%20HECVAT%20Lite.xlsx`},{title:"Home",from:"/elevate/standards-alignment",to:"https://www.instructure.com/corporate-education/products/elevate/elevate-standards-alignment"},{title:"Release Notes",from:"/elevate/standards-alignment/releases",to:"https://community.canvaslms.com/t5/Elevate-Standards-Alignment/tkb-p/esa_releases"},{title:"Guides",from:"/elevate/standards-alignment/guides",to:"https://community.canvaslms.com/t5/Elevate-Standards-Alignment/tkb-p/ab_basics"},{title:"Standards",from:"/elevate/standards-alignment/standards",to:"https://community.canvaslms.com/t5/Elevate-Standards-Alignment/ct-p/ab_standards"}],H6=L6.map(e=>({...e,lang:"EN"})),B6={brand:"Elevate Standards Alignment",links:H6},j6=[{title:"Community",from:"/elevate/community",to:"https://community.canvaslms.com/t5/Elevate/ct-p/elevate"},{title:"Roadmap",from:"/elevate/roadmap",to:"https://community.canvaslms.com/t5/Elevate-Product-Roadmap/ct-p/elevate-product-roadmap"}],V6=j6.map(e=>({...e,lang:"EN"})),G6={brand:"Elevate",links:V6},ly="impact",Y6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,q6=`${M.raw}/${M.owner}/${M.repo}`,Qc=`${q6}/${ly}`,k6=[{title:"Compliance Package",from:"/impact/dl",to:`${Y6}/${ly}.zip`},{title:"Architecture Paper",from:"/impact/architecture/dl",to:`${Qc}/Impact/Impact%20Architecture.pdf`},{title:"HECVAT",from:"/impact/hecvat/dl",to:`${Qc}/Impact/Impact%20by%20Instructure%20HECVAT%20Full.xlsx`},{title:"TX-RAMP Level 2 Certification",from:"/impact/tx-ramp/dl",to:`${Qc}/Impact/Impact%20TX-RAMP%20Level%202%20Certification.pdf`},{title:"Home (HE)",from:"/impact/he",to:"https://www.instructure.com/higher-education/products/impact/"},{title:"Home (K12)",from:"/impact/k12",to:"https://www.instructure.com/k12/products/impact/"},{title:"Community",from:"/impact/community",to:"https://community.canvaslms.com/t5/Impact/ct-p/impact"},{title:"Guides",from:"/impact/guides",to:"https://community.canvaslms.com/t5/Impact-Guides/tkb-p/impact_guides"},{title:"Release Notes",from:"/impact/releases",to:"https://community.canvaslms.com/t5/Impact-Releases/ct-p/impact_releases"}],X6=k6.map(e=>({...e,lang:"EN"})),iy="impact-ES_LA",Z6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,Q6=`${M.raw}/${M.owner}/${M.repo}`,Kc=`${Q6}/${iy}`,K6=[{title:"Compliance Package",from:"/es-la/impact/dl",to:`${Z6}/${iy}.zip`},{title:"Papel de Arquitectura",from:"/es-la/impact/arquitectura/dl",to:`${Kc}/Impact/Impact%20Architecture_ES.pdf`},{title:"HECVAT",from:"/es-la/impact/hecvat/dl",to:`${Kc}/Impact/Impact%20by%20Instructure%20HECVAT%20Full.xlsx`},{title:"Certificado de Nivel 2 de TX-RAMP",from:"/es-la/impact/tx-ramp/dl",to:`${Kc}/Impact/Impact%20TX-RAMP%20Level%202%20Certification.pdf`}],P6=K6.map(e=>({...e,lang:"ES_LA"})),ry="impact-PT_BR",J6=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,W6=`${M.raw}/${M.owner}/${M.repo}`,Pc=`${W6}/${ry}`,F6=[{title:"Compliance Package",from:"/pt-br/impact/dl",to:`${J6}/${ry}.zip`},{title:"Papel de Arquitetura",from:"/pt-br/impact/arquitetura/dl",to:`${Pc}/Impact/Impact%20Architecture_PT.pdf`},{title:"HECVAT",from:"/pt-br/impact/hecvat/dl",to:`${Pc}/Impact/Impact%20by%20Instructure%20HECVAT%20Full.xlsx`},{title:"Certificado de Nível 2 do TX-RAMP",from:"/pt-br/impact/tx-ramp/dl",to:`${Pc}/Impact/Impact%20TX-RAMP%20Level%202%20Certification.pdf`}],I6=F6.map(e=>({...e,lang:"PT_BR"})),e8={brand:"Impact",links:[...X6,...P6,...I6]},t8=[{title:"Startseite",from:"/de/home",to:"https://www.instructure.com/de"},{title:"Kontakt",from:"/de/kontakt",to:"https://www.instructure.com/de/contact-us"}],a8=t8.map(e=>({...e,lang:"DE"})),n8=`${M.raw}/${M.owner}/${M.repo}`,Jt=`${n8}/${M.branch}`,l8=[{title:"Security White Paper",from:"/security/dl",to:`${Jt}/Instructure/Instructure%20Security%20Overview.pdf`},{title:"Business Continuity White Paper",from:"/bc/dl",to:`${Jt}/Instructure/Instructure%20Business%20Continuity%20%26%20Disaster%20Recovery.pdf`},{title:"CAIQ",from:"/caiq/dl",to:`${Jt}/Instructure/Instructure%20ESG%20Report%20FY2023.pdf`},{title:"CSA Star Certificate",from:"/csa/dl",to:`${Jt}/Instructure/Instructure%20CSA%20STAR%20Certificate.pdf`},{title:"Cyber Essentials+ Certificate",from:"/ce/dl",to:`${Jt}/Instructure/Instructure%20Cyber%20Essentials%20Plus.pdf`},{title:"Environmental, Social, and Governance Report",from:"/esg/dl",to:`${Jt}/Instructure/Instructure%20ESG%20Report%20FY2023.pdf`},{title:"Instructure, Inc. Certificate of Insurance",from:"/coi/dl",to:`${Jt}/Instructure/Instructure%20Inc%20COI.pdf`},{title:"Instructure Global Certificate of Insurance",from:"/coi-global/dl",to:`${Jt}/Instructure/Instructure%20Global%20COI.pdf`},{title:"ISO 27001 Certificate",from:"/iso/dl",to:`${Jt}/Instructure/Instructure%20ISO%2027001%20Compliance%20Certificate.pdf`},{title:"Quality Assurance Program",from:"/qa/dl",to:`${Jt}/Instructure/Instructure%20Quality%20Assurance%20Program.pdf`},{title:"Home",from:"/home",to:"https://www.instructure.com/"},{title:"Roadmap",from:"/roadmap",to:"https://community.canvaslms.com/t5/Instructure-Roadmap/ct-p/instructure-roadmap/"},{title:"Accessibility",from:"/a11y",to:"https://www.instructure.com/accessibility/"},{title:"Contact",from:"/contact",to:"https://www.instructure.com/contact-us/"},{title:"Privacy",from:"/privacy",to:"https://www.instructure.com/canvas/privacy/"},{title:"Security",from:"/security",to:"https://www.instructure.com/products/canvas/security/"},{title:"Trust Center",from:"/trust",to:"https://www.instructure.com/trust-center/"},{title:"Community",from:"/community",to:"https://community.canvaslms.com/"},{title:"Terms & Conditions",from:"/tos",to:"https://www.instructure.com/policies/master-terms-conditions/"},{title:"Global Terms & Conditions",from:"/tos/global",to:"https://www.instructure.com/policies/global/master-terms-and-conditions/"},{title:"Acceptable Use Policy",from:"/aup",to:"https://www.instructure.com/policies/acceptable-use/"},{title:"Data Privacy Addendum",from:"/dpa",to:"https://www.instructure.com/policies/data-processing/"},{title:"Investor Relations",from:"/investors",to:"https://ir.instructure.com/overview/default.aspx"},{title:"Status",from:"/status",to:"https://status.instructure.com/"},{title:"CSA Star Registration",from:"/csa",to:"https://cloudsecurityalliance.org/star/registry/instructure/"},{title:"1EdTech Registrations",from:"/1edtech",to:"https://site.imsglobal.org/certifications?query=instructure"},{title:"Our Story",from:"/story",to:"https://www.instructure.com/about/our-story"},{title:"Study Hall",from:"/resources",to:"https://www.instructure.com/resources/"},{title:"EduAppCenter",from:"/apps",to:"https://www.eduappcenter.com/"},{title:"ESG Report (online)",from:"/esg",to:"https://instructure.com/esg-report"}],i8=l8.map(e=>({...e,lang:"EN"})),r8=[{title:"Página de inicio",from:"/es-la/home",to:"https://www.instructure.com/es/"},{title:"Contáctenos",from:"/es-la/contactenos",to:"https://www.instructure.com/es/contactenos/"},{title:"Privacidad",from:"/es-la/privicidad",to:"https://www.instructure.com/es/canvas/privacidad/"},{title:"Seguridad",from:"/es-la/seguridad",to:"https://www.instructure.com/es/canvas/seguridad/"},{title:"Nuestra Historia",from:"/es-la/historia",to:"https://www.instructure.com/es/sobre/nuestra-historia"}],u8=r8.map(e=>({...e,lang:"ES_LA"})),o8=[{title:"Pagina inicial",from:"/pt-br/home",to:"https://www.instructure.com/pt-br/"},{title:"Contato",from:"/pt-br/contato",to:"https://www.instructure.com/pt-br/contato/"},{title:"Privacidade",from:"/pt-br/privacidade",to:"https://www.instructure.com/pt-br/canvas/privacidade/"},{title:"Segurança",from:"/pt-br/seguranca",to:"https://www.instructure.com/pt-br/canvas/seguranca/"},{title:"Nossa História",from:"/pt-br/historia",to:"https://www.instructure.com/pt-br/sobre/nossa-historia"}],c8=o8.map(e=>({...e,lang:"PT_BR"})),s8={brand:"Instructure",links:[...i8,...u8,...c8,...a8]},uy="intelligent-insights",f8=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,d8=`${M.raw}/${M.owner}/${M.repo}`,Jc=`${d8}/${uy}`,h8=[{title:"Compliance Package",from:"/intelligent-insights/dl",to:`${f8}/${uy}.zip`},{title:"Architecture Paper",from:"/intelligent-insights/architecture/dl",to:`${Jc}/Intelligent%20Insights/Intelligent%20Insights%20Architecture%20Overview.pdf`},{title:"HECVAT",from:"/intelligent-insights/hecvat/dl",to:`${Jc}/Intelligent%20Insights/Intelligent%20Insights%20HECVAT%20Lite.xlsx`},{title:"Data Sheet",from:"/intelligent-insights/data/dl",to:`${Jc}/Intelligent%20Insights/Intelligent%20Insights%20Data%20Sheet.pdf`},{title:"Home",from:"/intelligent-insights/home",to:"https://www.instructure.com/products/intelligent-insights"},{title:"Community",from:"/intelligent-insights/community",to:"https://community.canvaslms.com/t5/Intelligent-Insights/ct-p/intelligent_insights"},{title:"Guides",from:"/intelligent-insights/guides",to:"https://community.canvaslms.com/t5/Intelligent-Insights-Guides/tkb-p/intelligent_insights_guides"},{title:"Release Notes",from:"/intelligent-insights/releases",to:"https://community.canvaslms.com/t5/Intelligent-Insight-Release/tkb-p/intelligent_insights_releases"}],m8=h8.map(e=>({...e,lang:"EN"})),v8={brand:"Intelligent Insights",links:m8},oy="learnplatform",p8=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,y8=`${M.raw}/${M.owner}/${M.repo}`,Wc=`${y8}/${oy}`,g8=[{title:"Compliance Package",from:"/learnplatform/dl",to:`${p8}/${oy}.zip`},{title:"EdTech Top 40 Report",from:"/learnplatform/top40/dl",to:`${Wc}/LearnPlatform/EdTech%20Top%2040.pdf`},{title:"Architecture Paper",from:"/learnplatform/architecture/dl",to:`${Wc}/LearnPlatform/LearnPlatform%20Architecture%20Overview.pdf`},{title:"HECVAT Lite",from:"/learnplatform/hecvat/dl",to:`${Wc}/LearnPlatform/LearnPlatform%20HECVAT%20Lite.xlsx`},{title:"Home",from:"/learnplatform",to:"https://www.instructure.com/k12/products/learnplatform/"},{title:"Terms of Service",from:"/learnplatform/tos",to:"https://www.instructure.com/policies/learnplatform-terms-of-service/"},{title:"Privacy",from:"/learnplatform/privacy",to:"https://www.instructure.com/policies/privacy-learnplatform/"},{title:"Data Processing Agreement",from:"/learnplatform/dpa",to:"https://www.instructure.com/policies/learnplatform-data-processing-agreement/"},{title:"Statement of Neutrality",from:"/learnplatform/neutrality",to:"https://www.instructure.com/policies/learnplatform-neutrality/"},{title:"Utah BOE",from:"/learnplatform/utah",to:"https://www.instructure.com/k12/products/learnplatform/"}],b8=g8.map(e=>({...e,lang:"EN"})),S8={brand:"Learnplatform",links:b8},cy="mastery-connect",E8=`${M.gh}/${M.owner}/${M.repo}/archive/refs/heads`,R8=`${M.raw}/${M.owner}/${M.repo}`,W0=`${R8}/${cy}`,C8=[{title:"Compliance Package",from:"/mastery/connect/dl",to:`${E8}/${cy}.zip`},{title:"Architecture Paper",from:"/mastery/connect/architecture/dl",to:`${W0}/Mastery%20Connect/Mastery%20Connect%20Architecture.pdf`},{title:"HECVAT Lite",from:"/mastery/connect/hecvat/dl",to:`${W0}/Mastery%20Connect/Mastery%20Connect%20HECVAT%20Lite.xlsx`},{title:"Home",from:"/mastery/connect",to:"https://www.instructure.com/k12/products/mastery/mastery-connect"},{title:"Guides",from:"/mastery/connect/guides",to:"https://community.canvaslms.com/t5/Mastery-Connect/ct-p/masteryconnect"},{title:"Release Notes",from:"/mastery/connect/releases",to:"https://community.canvaslms.com/t5/Mastery-Connect-Releases/tkb-p/masteryconnect"},{title:"API",from:"/mastery/connect/api",to:"https://docs.google.com/document/d/19TxyeRzF6nyJDY6ej2dZozbE87JdUygw"},{title:"Mobile App (Android)",from:"/mastery/connect/android",to:"https://play.google.com/store/apps/dev?id=8869528477632015729&hl=EN&gl=US"},{title:"Mobile App (iOS)",from:"/canvas/lms/ios",to:"https://apps.apple.com/us/developer/masteryconnect/id413937396"}],A8=C8.map(e=>({...e,lang:"EN"})),_8={brand:"Mastery Connect",links:A8},w8=[{title:"Home",from:"/mastery/itembank",to:"https://www.instructure.com/k12/products/mastery/mastery-item-bank/"},{title:"Guides",from:"/mastery/itembank/guides",to:"https://community.canvaslms.com/t5/Mastery-Item-Bank/ct-p/mastery-item-bank/"}],T8=w8.map(e=>({...e,lang:"EN"})),O8={brand:"Mastery Item Bank",links:T8},M8=[{title:"Formatives Home",from:"/mastery/view/formative",to:"https://www.instructure.com/k12/products/mastery/mastery-view-formative-assessments/"},{title:"Predictives Home",from:"/mastery/view/predictive",to:"https://www.instructure.com/k12/products/mastery/mastery-view-predictive-assessments/"}],D8=M8.map(e=>({...e,lang:"EN"})),x8={brand:"Mastery View Assessments",links:D8},$8=[{title:"Community",from:"/mastery/community",to:"https://community.canvaslms.com/t5/Mastery/ct-p/mastery"},{title:"Roadmap",from:"/mastery/roadmap",to:"https://community.canvaslms.com/t5/Mastery-Product-Roadmap/ct-p/mastery-product-roadmap"}],z8=$8.map(e=>({...e,lang:"EN"})),N8={brand:"Mastery",links:z8},U8=[],L8=U8.map(e=>({...e,lang:"EN"})),H8={brand:"Parchment",links:L8},B8=[ES,s8,w6,r6,c6,m6,wS,MS,XS,YS,N8,_8,O8,x8,e8,G6,B6,M6,$6,S8,v8,H8],sy=document.getElementById("root");if(!sy)throw new Error("Root element not found");const j8=()=>{const e=[];for(const a of yS)e.push({path:`${a.route}`,lazy:()=>Ot(()=>import("./markdownBrand-Br3i6gcd.js"),__vite__mapDeps([0,1,2,3])),loader:()=>({readme:a.readme,brand:a.brandName}),children:[{path:":language",lazy:()=>Ot(()=>import("./markdownBrand-Br3i6gcd.js"),__vite__mapDeps([0,1,2,3])),loader:()=>({readme:a.readme,brand:a.brandName})}]});for(const a of B8)for(const n of a.links)e.push({path:n.from,lazy:()=>Ot(()=>import("./redirectTo-CRmRN8sY.js"),__vite__mapDeps([4,1,5])),loader:()=>({path:n.from,brand:a.brand,url:n.to}),children:[{path:":language",lazy:()=>Ot(()=>import("./redirectTo-CRmRN8sY.js"),__vite__mapDeps([4,1,5])),loader:()=>({path:n.from,brand:a.brand,url:n.to})}]});e.push({path:"/links",lazy:()=>Ot(()=>import("./links-DsZEkKJf.js"),__vite__mapDeps([6,1,7,3,8])),children:[{path:":language",lazy:()=>Ot(()=>import("./links-DsZEkKJf.js"),__vite__mapDeps([6,1,7,3,8]))}]}),e.push({path:"/mdui",lazy:()=>Ot(()=>import("./mdui-D4r40FkK.js"),__vite__mapDeps([9,1,2,3,10,8])),children:[{path:":language",lazy:()=>Ot(()=>import("./mdui-D4r40FkK.js"),__vite__mapDeps([9,1,2,3,10,8]))}]}),e.push({path:"/releases",lazy:()=>Ot(()=>import("./releases-DavYsqrR.js"),__vite__mapDeps([11,1,2,3,12])),children:[{path:":language",lazy:()=>Ot(()=>import("./releases-DavYsqrR.js"),__vite__mapDeps([11,1,2,3,12]))}]}),e.push({path:"*",lazy:()=>Ot(()=>import("./error-BPtHapzG.js"),__vite__mapDeps([13,1,5])),children:[{path:":language",lazy:()=>Ot(()=>import("./error-BPtHapzG.js"),__vite__mapDeps([13,1,5]))}]});const t=k4(e);return je.jsx(Ce.StrictMode,{children:je.jsx(Xp,{theme:Sd,children:je.jsx(X7,{as:"div",minHeight:"100vh",position:"relative",children:je.jsx(I4,{router:t})})})})};Kv.createRoot(sy).render(je.jsx(_.StrictMode,{children:je.jsx(j8,{})}));export{mi as $,No as A,$3 as B,N3 as C,z3 as D,yd as E,hh as F,R3 as G,Z8 as H,Xp as I,C3 as J,q3 as K,B8 as L,yS as M,X8 as N,G8 as O,H as P,ge as Q,Ce as R,Ie as S,Fn as T,v7 as U,X7 as V,bd as W,r7 as X,Q8 as Y,Wu as Z,Ot as _,q8 as a,Ps as a0,Kp as a1,Sd as a2,Kl as a3,Pl as a4,Jl as a5,Nn as a6,Wl as a7,rf as b,Y8 as c,pS as d,P8 as e,$n as f,M as g,zn as h,pn as i,je as j,V8 as k,Bl as l,Pu as m,jp as n,Bp as o,G3 as p,L3 as q,_ as r,X3 as s,Zp as t,k8 as u,M3 as v,Ed as w,U4 as x,yo as y,Er as z}; diff --git a/assets/index.node-DYwPqidn.js b/assets/index.node-BvqdCM4E.js similarity index 80% rename from assets/index.node-DYwPqidn.js rename to assets/index.node-BvqdCM4E.js index 0fc8beb..a99586b 100644 --- a/assets/index.node-DYwPqidn.js +++ b/assets/index.node-BvqdCM4E.js @@ -1 +1 @@ -import{r as n}from"./index-Co1on5ja.js";class o extends n.Component{constructor(e){super(e)}hydrate(){}initChange(){}resolveChange(){}mirrorChange(){}componentDidMount(){}componentDidUpdate(){}componentWillUnmount(){}shouldComponentUpdate(){return!1}render(){return null}}o.displayName="Controlled";export{o as default}; +import{r as n}from"./index-mQ6522B8.js";class o extends n.Component{constructor(e){super(e)}hydrate(){}initChange(){}resolveChange(){}mirrorChange(){}componentDidMount(){}componentDidUpdate(){}componentWillUnmount(){}shouldComponentUpdate(){return!1}render(){return null}}o.displayName="Controlled";export{o as default}; diff --git a/assets/links-BB4989Yr.js b/assets/links-BB4989Yr.js deleted file mode 100644 index 7cc6afc..0000000 --- a/assets/links-BB4989Yr.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-LDYVdH-U.js","assets/index-Co1on5ja.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-BjY6S8Vl.js","assets/index-Dh55QiP4.js"])))=>i.map(i=>d[i]); -import{a as ve,r as d,d as ee,e as ue,L as ge,j as t,_ as Ue,g as De,V as le}from"./index-Co1on5ja.js";import{c as Ne,a as Fe,g as Ie,H as fe,T as pe,d as He,e as me,R as $e,L as ze,f as Ke,b as Ve}from"./RenderTopNavBar-BjY6S8Vl.js";import{B as We,R as he,a as k,I as Me,T as qe,b as Oe}from"./index-DyahzNCb.js";import{T as Qe,F as Ze,a as p}from"./index-DUk1PrHv.js";import{I as xe,a as Ge}from"./index-BAR0q47n.js";const Je={header:{EN:"Redirect Links",ES_LA:"Enlaces de Redirección",PT_BR:"Links de Redirecionamento",DE:"Weiterleitungslinks"},description:{EN:"This page provides a collection of shortened URLs for use in RFP responses. Each row has a short URL and the original URL. Click on the copy icon and the short URL will be added to your clipboard.",ES_LA:"Esta página proporciona una colección de URL abreviadas para usar en las respuestas a RFP. Cada fila tiene una URL corta y la URL original. Haga clic en la copia y la URL corta se agregará a su portapapeles.",PT_BR:"Esta página fornece uma coleção de URLs abreviados para uso em respostas de RFP. Cada linha possui um URL curto e o URL original. Clique na cópia ícone e o URL curto serão adicionados à sua área de transferência.",DE:"Diese Seite bietet eine Sammlung verkürzter URLs zur Verwendung in RFP-Antworten. Jede Zeile enthält eine Kurz-URL und die Original-URL. Klicken Sie auf die Kopie-Symbol und die Kurz-URL wird Ihrer Zwischenablage hinzugefügt."},filters:{EN:"Filters",ES_LA:"Filtros",PT_BR:"Filtros",DE:"filter"},toggleShow:{EN:"Show filters",ES_LA:"Mostrar filtros",PT_BR:"Mostrar filtros",DE:"Filter anzeigen"},toggleHide:{EN:"Hide filters",ES_LA:"Ocultar filtros",PT_BR:"Ocultar filtros",DE:"Filter ausblenden"},search:{EN:"Search",ES_LA:"Buscar",PT_BR:"Procurar",DE:"Suche"},clearSearch:{EN:"Clear search",ES_LA:"Borrar búsqueda",PT_BR:"Limpar pesquisa",DE:"Suche löschen"},placeholder:{EN:"community",ES_LA:"comunidad",PT_BR:"comunidade",DE:"Gemeinschaft"},brands:{EN:"Brands",ES_LA:"Marcas",PT_BR:"Marcas",DE:"Marken"},products:{EN:"Products",ES_LA:"Productos",PT_BR:"Produtos",DE:"Produkte"},language:{EN:"Language",ES_LA:"Idioma",PT_BR:"Idioma",DE:"Sprache"},title:{EN:"Title",ES_LA:"Título",PT_BR:"Título",DE:"Titel"},link:{EN:"Link",ES_LA:"Enlace",PT_BR:"Link",DE:"Link"},copy:{EN:"Copy",ES_LA:"Copiar",PT_BR:"Copiar",DE:"Kopieren"},copy_url:{EN:"Copy URL to clipboard",ES_LA:"Copiar URL al portapapeles",PT_BR:"Copiar URL para a área de transferência",DE:"Kopieren Sie die URL in die Zwischenablage"},copy_error:{EN:"Error copying to clipboard",ES_LA:"Error al copiar al portapapeles",PT_BR:"Erro ao copiar para a área de transferência",DE:"Fehler beim Kopieren in die Zwischenablage"}};function Xe(){const e=Ne.c(94),w=ve().language;let F,o;e[0]!==w?(o=Fe(w),F=Ie(Je,o),e[0]=w,e[1]=F,e[2]=o):(F=e[1],o=e[2]);const l=F;let I;e[3]===Symbol.for("react.memo_cache_sentinel")?(I=De.url.replace("https://",""),e[3]=I):I=e[3];const te=I;let H;e[4]!==l.toggleShow?(H={expanded:!1,text:l.toggleShow},e[4]=l.toggleShow,e[5]=H):H=e[5];const[i,Ee]=d.useState(H);let $;e[6]!==i.expanded||e[7]!==l.toggleShow||e[8]!==l.toggleHide?($=()=>{const r=i.expanded?l.toggleShow:l.toggleHide;Ee({expanded:!i.expanded,text:r})},e[6]=i.expanded,e[7]=l.toggleShow,e[8]=l.toggleHide,e[9]=$):$=e[9];const h=$,[u,Le]=d.useState(""),g=(r,a)=>{Le(a),q(se,a,ne,A)};let z;e[10]!==g?(z=r=>{r.stopPropagation(),g(r,"")},e[10]=g,e[11]=z):z=e[11];const ae=z;let K;e[12]!==u.search.length||e[13]!==l.clearSearch||e[14]!==ae?(K=()=>u.search.length?t.jsx(xe,{type:"button",size:"small",withBackground:!1,withBorder:!1,screenReaderLabel:l.clearSearch,onClick:ae,children:t.jsx(Me,{})}):null,e[12]=u.search.length,e[13]=l.clearSearch,e[14]=ae,e[15]=K):K=e[15];const re=K;let V;e[16]!==o?(V=[o],e[16]=o,e[17]=V):V=e[17];const[Re,Se]=d.useState(V),se=Re,oe=(r,a)=>{const s=[];a==="all"?(s.push(...me),U(r,"all")):s.push(...me.filter(n=>n.toUpperCase().includes(a.toUpperCase()))),Se(s),q(s,u,ne,A)},[ye,je]=d.useState("all"),A=ye,[v,be]=d.useState(ee),U=(r,a)=>{a==="all"||ee.includes(a)?je(a):console.error(`Invalid value for setActiveProduct: ${a}`),q(se,u,ne,a)},[W,Ce]=d.useState("all"),[_e,Be]=d.useState(ue),ne=_e,ie=(r,a)=>{const s=[];a==="all"?s.push("AWS",...ue):s.push(...["AWS",...ue].filter(n=>n.toLowerCase().includes(a.toLowerCase()))),Ce(a),Be(s),U(r,"all"),be(s),q(se,u,s,"all")};let f;e[18]!==o?(f=ge.map(r=>({...r,links:r.links.filter(a=>a.lang.toUpperCase()===o)})),e[18]=o,e[19]=f):f=e[19];let M;e[20]!==f?(M={list:f},e[20]=f,e[21]=M):M=e[21];const[ce,Pe]=d.useState(M),q=(r,a,s,n)=>{const N=ge.map(c=>({...c,links:c.links.filter(de=>`${`${c.brand} ${de.title}`}`.toLowerCase().includes(a.toLowerCase())).filter(de=>r.includes(de.lang.toUpperCase()))})).filter(c=>c.links.length>0).filter(c=>s.includes(c.brand)).filter(c=>n!=="all"?c.brand===v[0]||c.brand===n:!0);Pe({list:N})};let O;e[22]!==l.copy_error?(O=async function(a){try{await navigator.clipboard.writeText(a)}catch(s){const n=s;let N=l.copy_error;n instanceof Error?N=n.message:typeof n=="string"&&(N=n),console.error(N)}},e[22]=l.copy_error,e[23]=O):O=e[23];const D=O;let m;e[24]!==o?(m=t.jsx($e,{language:o}),e[24]=o,e[25]=m):m=e[25];let x;e[26]!==l.header?(x=t.jsx(fe,{level:"h1",children:l.header}),e[26]=l.header,e[27]=x):x=e[27];let E;e[28]!==l.description?(E=t.jsx(pe,{as:"p",children:l.description}),e[28]=l.description,e[29]=E):E=e[29];let L;e[30]!==h||e[31]!==i.text?(L=t.jsx(We,{onClick:h,children:i.text}),e[30]=h,e[31]=i.text,e[32]=L):L=e[32];const Te=l.filters,ke=i.expanded;let Q;e[33]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx(Ge,{inline:!1}),e[33]=Q):Q=e[33];let R;e[34]!==l.search||e[35]!==l.placeholder||e[36]!==g||e[37]!==re||e[38]!==u?(R=t.jsx(Qe,{type:"search",renderLabel:l.search,placeholder:l.placeholder,onChange:g,renderBeforeInput:Q,renderAfterInput:re,value:u}),e[34]=l.search,e[35]=l.placeholder,e[36]=g,e[37]=re,e[38]=u,e[39]=R):R=e[39];const we=l.brands;let Z,G;e[40]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(k,{value:"all",label:"All",context:"off"},"all"),G=["AWS",...ee].map(ll),e[40]=Z,e[41]=G):(Z=e[40],G=e[41]);let S;e[42]!==l.brands||e[43]!==ie?(S=t.jsxs(he,{name:"brand",description:we,defaultValue:"all",layout:"columns",variant:"toggle",onChange:ie,children:[Z,G]}),e[42]=l.brands,e[43]=ie,e[44]=S):S=e[44];let y;e[45]!==W||e[46]!==v||e[47]!==U||e[48]!==A||e[49]!==l?(y=W!=="all"&&v.length>1&&t.jsxs(he,{name:"product",description:l.products,defaultValue:"all",layout:"columns",variant:"toggle",onChange:U,children:[t.jsx(k,{value:"all",label:"All",context:"off",id:"allProducts",checked:A==="all"},"all"),v.filter(r=>r!==W).map(el)]}),e[45]=W,e[46]=v,e[47]=U,e[48]=A,e[49]=l,e[50]=y):y=e[50];const Ae=l.language;let J,X;e[51]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(k,{value:"all",label:"All",context:"off"},"all"),X=He.map(Ye),e[51]=J,e[52]=X):(J=e[51],X=e[52]);let j;e[53]!==l.language||e[54]!==o||e[55]!==oe?(j=t.jsxs(he,{name:"language",description:Ae,defaultValue:o,layout:"columns",variant:"toggle",onChange:oe,children:[J,X]}),e[53]=l.language,e[54]=o,e[55]=oe,e[56]=j):j=e[56];let b;e[57]!==R||e[58]!==S||e[59]!==y||e[60]!==j?(b=t.jsx(le,{as:"div",margin:"large none none",children:t.jsx("form",{name:"searchFilters",autoComplete:"off",children:t.jsxs(Ze,{label:"",description:"",layout:"stacked",children:[R,S,y,j]})})}),e[57]=R,e[58]=S,e[59]=y,e[60]=j,e[61]=b):b=e[61];let C;e[62]!==l.filters||e[63]!==h||e[64]!==i.expanded||e[65]!==b?(C=t.jsx(qe,{id:"toggleFilters",summary:Te,onToggle:h,expanded:ke,children:b}),e[62]=l.filters,e[63]=h,e[64]=i.expanded,e[65]=b,e[66]=C):C=e[66];let _;e[67]!==x||e[68]!==E||e[69]!==L||e[70]!==C?(_=t.jsxs(le,{as:"div",margin:"none none x-large",children:[x,E,L,C]}),e[67]=x,e[68]=E,e[69]=L,e[70]=C,e[71]=_):_=e[71];let B;if(e[72]!==l.title||e[73]!==l.link||e[74]!==l.copy||e[75]!==l.copy_url||e[76]!==D||e[77]!==ce.list){let r;e[79]!==l.title||e[80]!==l.link||e[81]!==l.copy||e[82]!==l.copy_url||e[83]!==D?(r=a=>{if(a.links.length){const s=a.brand;return t.jsxs(le,{as:"div",margin:"none none xx-large",children:[t.jsx(fe,{level:ee.includes(s)?"h2":"h3",id:s,children:s}),t.jsxs(p,{hover:!0,caption:s,children:[t.jsx(p.Head,{children:t.jsxs(p.Row,{children:[t.jsx(p.ColHeader,{id:"Title",width:"25%",children:l.title}),t.jsx(p.ColHeader,{id:"URLs",children:l.link})]})}),t.jsx(p.Body,{children:a.links.map(n=>t.jsxs(p.Row,{children:[t.jsx(p.Cell,{children:t.jsx(pe,{children:n.title})}),t.jsxs(p.Cell,{children:[t.jsx(ze,{href:`https://${te}${n.from}`,children:`${te}${n.from}`}),"  ",t.jsx(Ke,{renderTip:l.copy,on:["hover","focus"],placement:"top",color:"primary-inverse",children:t.jsx(xe,{withBackground:!1,withBorder:!1,screenReaderLabel:l.copy_url,onClick:()=>{D(`https://${te}${n.from}`)},children:t.jsx(Oe,{})})}),t.jsx("br",{}),t.jsx(pe,{size:"small",color:"secondary",children:n.to.split("?")[0]})]})]},n.title))})]})]},s)}return null},e[79]=l.title,e[80]=l.link,e[81]=l.copy,e[82]=l.copy_url,e[83]=D,e[84]=r):r=e[84],B=ce.list.map(r),e[72]=l.title,e[73]=l.link,e[74]=l.copy,e[75]=l.copy_url,e[76]=D,e[77]=ce.list,e[78]=B}else B=e[78];let P;e[85]!==_||e[86]!==B?(P=t.jsxs(le,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:[_,B]}),e[85]=_,e[86]=B,e[87]=P):P=e[87];let T;e[88]!==o?(T=t.jsx(Ve,{language:o}),e[88]=o,e[89]=T):T=e[89];let Y;return e[90]!==m||e[91]!==P||e[92]!==T?(Y=t.jsxs(t.Fragment,{children:[m,P,T]}),e[90]=m,e[91]=P,e[92]=T,e[93]=Y):Y=e[93],Y}function Ye(e){return t.jsx(k,{value:e.code,label:e.local,context:"off"},e.code)}function el(e){return t.jsx(k,{value:e,label:e,context:"off"},e)}function ll(e){return t.jsx(k,{value:e,label:e,context:"off"},e)}Xe.displayName="Route.Links";function tl(){const e=d.lazy(()=>Ue(()=>import("./error-LDYVdH-U.js"),__vite__mapDeps([0,1,2,3,4])).then(w=>({default:w.Component})));return t.jsx(d.Suspense,{fallback:t.jsx("h1",{children:"Error."}),children:t.jsx(e,{})})}tl.displayName="Error.Links";export{Xe as Component,tl as ErrorBoundary}; diff --git a/assets/links-DsZEkKJf.js b/assets/links-DsZEkKJf.js new file mode 100644 index 0000000..1fda263 --- /dev/null +++ b/assets/links-DsZEkKJf.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-BPtHapzG.js","assets/index-mQ6522B8.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-m0KU5Oph.js","assets/index-DoB2bFAj.js"])))=>i.map(i=>d[i]); +import{a as we,r as d,d as X,e as ie,L as ue,j as t,_ as Ae,g as ve,V as Y}from"./index-mQ6522B8.js";import{c as Ue,a as De,g as Ne,H as pe,T as ce,d as Fe,e as he,R as Ie,L as He,f as $e,b as ze}from"./RenderTopNavBar-m0KU5Oph.js";import{B as Ke,R as de,a as T,I as Ve,T as We,b as Me}from"./index-C2NLSIw_.js";import{T as qe,F as Oe,a as u}from"./index-Bj11N7g7.js";import{I as ge,a as Qe}from"./index-hytSvzuk.js";const Ze={header:{EN:"Redirect Links",ES_LA:"Enlaces de Redirección",PT_BR:"Links de Redirecionamento",DE:"Weiterleitungslinks"},description:{EN:"This page provides a collection of shortened URLs for use in RFP responses. Each row has a short URL and the original URL. Click on the copy icon and the short URL will be added to your clipboard.",ES_LA:"Esta página proporciona una colección de URL abreviadas para usar en las respuestas a RFP. Cada fila tiene una URL corta y la URL original. Haga clic en la copia y la URL corta se agregará a su portapapeles.",PT_BR:"Esta página fornece uma coleção de URLs abreviados para uso em respostas de RFP. Cada linha possui um URL curto e o URL original. Clique na cópia ícone e o URL curto serão adicionados à sua área de transferência.",DE:"Diese Seite bietet eine Sammlung verkürzter URLs zur Verwendung in RFP-Antworten. Jede Zeile enthält eine Kurz-URL und die Original-URL. Klicken Sie auf die Kopie-Symbol und die Kurz-URL wird Ihrer Zwischenablage hinzugefügt."},filters:{EN:"Filters",ES_LA:"Filtros",PT_BR:"Filtros",DE:"filter"},toggleShow:{EN:"Show filters",ES_LA:"Mostrar filtros",PT_BR:"Mostrar filtros",DE:"Filter anzeigen"},toggleHide:{EN:"Hide filters",ES_LA:"Ocultar filtros",PT_BR:"Ocultar filtros",DE:"Filter ausblenden"},search:{EN:"Search",ES_LA:"Buscar",PT_BR:"Procurar",DE:"Suche"},clearSearch:{EN:"Clear search",ES_LA:"Borrar búsqueda",PT_BR:"Limpar pesquisa",DE:"Suche löschen"},placeholder:{EN:"community",ES_LA:"comunidad",PT_BR:"comunidade",DE:"Gemeinschaft"},brands:{EN:"Brands",ES_LA:"Marcas",PT_BR:"Marcas",DE:"Marken"},products:{EN:"Products",ES_LA:"Productos",PT_BR:"Produtos",DE:"Produkte"},language:{EN:"Language",ES_LA:"Idioma",PT_BR:"Idioma",DE:"Sprache"},title:{EN:"Title",ES_LA:"Título",PT_BR:"Título",DE:"Titel"},link:{EN:"Link",ES_LA:"Enlace",PT_BR:"Link",DE:"Link"},copy:{EN:"Copy",ES_LA:"Copiar",PT_BR:"Copiar",DE:"Kopieren"},copy_url:{EN:"Copy URL to clipboard",ES_LA:"Copiar URL al portapapeles",PT_BR:"Copiar URL para a área de transferência",DE:"Kopieren Sie die URL in die Zwischenablage"},copy_error:{EN:"Error copying to clipboard",ES_LA:"Error al copiar al portapapeles",PT_BR:"Erro ao copiar para a área de transferência",DE:"Fehler beim Kopieren in die Zwischenablage"}};function Ge(){const e=Ue.c(88),k=we().language;let N,o;e[0]!==k?(o=De(k),N=Ne(Ze,o),e[0]=k,e[1]=N,e[2]=o):(N=e[1],o=e[2]);const l=N;let F;e[3]===Symbol.for("react.memo_cache_sentinel")?(F=ve.url.replace("https://",""),e[3]=F):F=e[3];const ee=F;let I;e[4]!==l.toggleShow?(I={expanded:!1,text:l.toggleShow},e[4]=l.toggleShow,e[5]=I):I=e[5];const[i,fe]=d.useState(I);let H;e[6]!==i.expanded||e[7]!==l.toggleShow||e[8]!==l.toggleHide?(H=()=>{const r=i.expanded?l.toggleShow:l.toggleHide;fe({expanded:!i.expanded,text:r})},e[6]=i.expanded,e[7]=l.toggleShow,e[8]=l.toggleHide,e[9]=H):H=e[9];const h=H,[p,me]=d.useState(""),$=(r,a)=>{me(a),W(te,a,re,w)},xe=r=>{r.stopPropagation(),$(r,"")},le=()=>p.search.length?t.jsx(ge,{type:"button",size:"small",withBackground:!1,withBorder:!1,screenReaderLabel:l.clearSearch,onClick:xe,children:t.jsx(Ve,{})}):null;let z;e[10]!==o?(z=[o],e[10]=o,e[11]=z):z=e[11];const[Ee,Le]=d.useState(z),te=Ee,ae=(r,a)=>{const s=[];a==="all"?(s.push(...he),v(r,"all")):s.push(...he.filter(n=>n.toUpperCase().includes(a.toUpperCase()))),Le(s),W(s,p,re,w)},[Re,Se]=d.useState("all"),w=Re,[A,ye]=d.useState(X),v=(r,a)=>{a==="all"||X.includes(a)?Se(a):console.error(`Invalid value for setActiveProduct: ${a}`),W(te,p,re,a)},[K,je]=d.useState("all"),[be,Ce]=d.useState(ie),re=be,se=(r,a)=>{const s=[];a==="all"?s.push("AWS",...ie):s.push(...["AWS",...ie].filter(n=>n.toLowerCase().includes(a.toLowerCase()))),je(a),Ce(s),v(r,"all"),ye(s),W(te,p,s,"all")};let g;e[12]!==o?(g=ue.map(r=>({...r,links:r.links.filter(a=>a.lang.toUpperCase()===o)})),e[12]=o,e[13]=g):g=e[13];let V;e[14]!==g?(V={list:g},e[14]=g,e[15]=V):V=e[15];const[oe,_e]=d.useState(V),W=(r,a,s,n)=>{const D=ue.map(c=>({...c,links:c.links.filter(ne=>`${`${c.brand} ${ne.title}`}`.toLowerCase().includes(a.toLowerCase())).filter(ne=>r.includes(ne.lang.toUpperCase()))})).filter(c=>c.links.length>0).filter(c=>s.includes(c.brand)).filter(c=>n!=="all"?c.brand===A[0]||c.brand===n:!0);_e({list:D})};let M;e[16]!==l.copy_error?(M=async function(a){try{await navigator.clipboard.writeText(a)}catch(s){const n=s;let D=l.copy_error;n instanceof Error?D=n.message:typeof n=="string"&&(D=n),console.error(D)}},e[16]=l.copy_error,e[17]=M):M=e[17];const U=M;let f;e[18]!==o?(f=t.jsx(Ie,{language:o}),e[18]=o,e[19]=f):f=e[19];let m;e[20]!==l.header?(m=t.jsx(pe,{level:"h1",children:l.header}),e[20]=l.header,e[21]=m):m=e[21];let x;e[22]!==l.description?(x=t.jsx(ce,{as:"p",children:l.description}),e[22]=l.description,e[23]=x):x=e[23];let E;e[24]!==h||e[25]!==i.text?(E=t.jsx(Ke,{onClick:h,children:i.text}),e[24]=h,e[25]=i.text,e[26]=E):E=e[26];const Be=l.filters,Pe=i.expanded;let q;e[27]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(Qe,{inline:!1}),e[27]=q):q=e[27];let L;e[28]!==l.search||e[29]!==l.placeholder||e[30]!==$||e[31]!==le||e[32]!==p?(L=t.jsx(qe,{type:"search",renderLabel:l.search,placeholder:l.placeholder,onChange:$,renderBeforeInput:q,renderAfterInput:le,value:p}),e[28]=l.search,e[29]=l.placeholder,e[30]=$,e[31]=le,e[32]=p,e[33]=L):L=e[33];const Te=l.brands;let O,Q;e[34]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(T,{value:"all",label:"All",context:"off"},"all"),Q=["AWS",...X].map(Ye),e[34]=O,e[35]=Q):(O=e[34],Q=e[35]);let R;e[36]!==l.brands||e[37]!==se?(R=t.jsxs(de,{name:"brand",description:Te,defaultValue:"all",layout:"columns",variant:"toggle",onChange:se,children:[O,Q]}),e[36]=l.brands,e[37]=se,e[38]=R):R=e[38];let S;e[39]!==K||e[40]!==A||e[41]!==v||e[42]!==w||e[43]!==l?(S=K!=="all"&&A.length>1&&t.jsxs(de,{name:"product",description:l.products,defaultValue:"all",layout:"columns",variant:"toggle",onChange:v,children:[t.jsx(T,{value:"all",label:"All",context:"off",id:"allProducts",checked:w==="all"},"all"),A.filter(r=>r!==K).map(Xe)]}),e[39]=K,e[40]=A,e[41]=v,e[42]=w,e[43]=l,e[44]=S):S=e[44];const ke=l.language;let Z,G;e[45]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(T,{value:"all",label:"All",context:"off"},"all"),G=Fe.map(Je),e[45]=Z,e[46]=G):(Z=e[45],G=e[46]);let y;e[47]!==l.language||e[48]!==o||e[49]!==ae?(y=t.jsxs(de,{name:"language",description:ke,defaultValue:o,layout:"columns",variant:"toggle",onChange:ae,children:[Z,G]}),e[47]=l.language,e[48]=o,e[49]=ae,e[50]=y):y=e[50];let j;e[51]!==L||e[52]!==R||e[53]!==S||e[54]!==y?(j=t.jsx(Y,{as:"div",margin:"large none none",children:t.jsx("form",{name:"searchFilters",autoComplete:"off",children:t.jsxs(Oe,{label:"",description:"",layout:"stacked",children:[L,R,S,y]})})}),e[51]=L,e[52]=R,e[53]=S,e[54]=y,e[55]=j):j=e[55];let b;e[56]!==l.filters||e[57]!==h||e[58]!==i.expanded||e[59]!==j?(b=t.jsx(We,{id:"toggleFilters",summary:Be,onToggle:h,expanded:Pe,children:j}),e[56]=l.filters,e[57]=h,e[58]=i.expanded,e[59]=j,e[60]=b):b=e[60];let C;e[61]!==m||e[62]!==x||e[63]!==E||e[64]!==b?(C=t.jsxs(Y,{as:"div",margin:"none none x-large",children:[m,x,E,b]}),e[61]=m,e[62]=x,e[63]=E,e[64]=b,e[65]=C):C=e[65];let _;if(e[66]!==l.title||e[67]!==l.link||e[68]!==l.copy||e[69]!==l.copy_url||e[70]!==U||e[71]!==oe.list){let r;e[73]!==l.title||e[74]!==l.link||e[75]!==l.copy||e[76]!==l.copy_url||e[77]!==U?(r=a=>{if(a.links.length){const s=a.brand;return t.jsxs(Y,{as:"div",margin:"none none xx-large",children:[t.jsx(pe,{level:X.includes(s)?"h2":"h3",id:s,children:s}),t.jsxs(u,{hover:!0,caption:s,children:[t.jsx(u.Head,{children:t.jsxs(u.Row,{children:[t.jsx(u.ColHeader,{id:"Title",width:"25%",children:l.title}),t.jsx(u.ColHeader,{id:"URLs",children:l.link})]})}),t.jsx(u.Body,{children:a.links.map(n=>t.jsxs(u.Row,{children:[t.jsx(u.Cell,{children:t.jsx(ce,{children:n.title})}),t.jsxs(u.Cell,{children:[t.jsx(He,{href:`https://${ee}${n.from}`,children:`${ee}${n.from}`}),"  ",t.jsx($e,{renderTip:l.copy,on:["hover","focus"],placement:"top",color:"primary-inverse",children:t.jsx(ge,{withBackground:!1,withBorder:!1,screenReaderLabel:l.copy_url,onClick:()=>{U(`https://${ee}${n.from}`)},children:t.jsx(Me,{})})}),t.jsx("br",{}),t.jsx(ce,{size:"small",color:"secondary",children:n.to.split("?")[0]})]})]},n.title))})]})]},s)}return null},e[73]=l.title,e[74]=l.link,e[75]=l.copy,e[76]=l.copy_url,e[77]=U,e[78]=r):r=e[78],_=oe.list.map(r),e[66]=l.title,e[67]=l.link,e[68]=l.copy,e[69]=l.copy_url,e[70]=U,e[71]=oe.list,e[72]=_}else _=e[72];let B;e[79]!==C||e[80]!==_?(B=t.jsxs(Y,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:[C,_]}),e[79]=C,e[80]=_,e[81]=B):B=e[81];let P;e[82]!==o?(P=t.jsx(ze,{language:o}),e[82]=o,e[83]=P):P=e[83];let J;return e[84]!==f||e[85]!==B||e[86]!==P?(J=t.jsxs(t.Fragment,{children:[f,B,P]}),e[84]=f,e[85]=B,e[86]=P,e[87]=J):J=e[87],J}function Je(e){return t.jsx(T,{value:e.code,label:e.local,context:"off"},e.code)}function Xe(e){return t.jsx(T,{value:e,label:e,context:"off"},e)}function Ye(e){return t.jsx(T,{value:e,label:e,context:"off"},e)}Ge.displayName="Route.Links";function el(){const e=d.lazy(()=>Ae(()=>import("./error-BPtHapzG.js"),__vite__mapDeps([0,1,2,3,4])).then(k=>({default:k.Component})));return t.jsx(d.Suspense,{fallback:t.jsx("h1",{children:"Error."}),children:t.jsx(e,{})})}el.displayName="Error.Links";export{Ge as Component,el as ErrorBoundary}; diff --git a/assets/markdownBrand-DngqaaW6.js b/assets/markdownBrand-Br3i6gcd.js similarity index 88% rename from assets/markdownBrand-DngqaaW6.js rename to assets/markdownBrand-Br3i6gcd.js index d1045ba..1c9b6f7 100644 --- a/assets/markdownBrand-DngqaaW6.js +++ b/assets/markdownBrand-Br3i6gcd.js @@ -1,9 +1,9 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-LDYVdH-U.js","assets/index-Co1on5ja.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-BjY6S8Vl.js","assets/index-Dh55QiP4.js"])))=>i.map(i=>d[i]); -import{g as B,r as g,j as d,u as F,a as H,b as q,_ as K,V as D}from"./index-Co1on5ja.js";import{g as N,c as v,a as X,R as J,b as Q}from"./RenderTopNavBar-BjY6S8Vl.js";import{r as G,a as I,b as O,M as U,c as V,d as M}from"./Mdtoui-BnFmcABV.js";import"./index-DUk1PrHv.js";const W={fetch_fail:{EN:"Didn't fetch text correctly.",ES_LA:"No se obtuvo el texto correctamente.",PT_BR:"Não buscou o texto corretamente.",DE:"Text nicht korrekt abgerufen."},download:{EN:"Download",ES_LA:"Descargar",PT_BR:"Baixar",DE:"Herunterladen"},explore:{EN:"Explore",ES_LA:"Explorar",PT_BR:"Explorar",DE:"Erkunden"},error:{EN:"An error occurred fetching package contents.",ES_LA:"Ocurrió un error al obtener el contenido del paquete.",PT_BR:"Ocorreu um erro ao buscar o conteúdo do pacote.",DE:"Beim Abrufen des Paketinhalts ist ein Fehler aufgetreten."}},T={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_VERSION:"5.0.1+1724690382"};async function Y(e,t,r){const c=`${B.api}/repos/${e}/${t}/git/trees/${r}?recursive=1`;try{const s=await(await fetch(c,{method:"GET",headers:{Accept:"application/vnd.github.v3+json",Authorization:T!=null&&T.GITHUB_TOKEN?"token undefined":"","X-GitHub-Api-Version":"2022-11-28"}})).json();return{...s,tree:s.tree.sort(Z)}}catch(n){n instanceof Error?console.error(`Error: ${n.message}`):console.error(`An unexpected error occurred: ${n}`)}}function Z(e,t){const r=o=>{const l=o.toLocaleUpperCase(),u=c.findIndex(a=>l.startsWith(a.toLocaleUpperCase()));return u!==-1?u:c.length},c=["Google Cloud Platform","Amazon Web Services","Instructure"],n=r(e.path),s=r(t.path);return n!==s?s-n:e.path.localeCompare(t.path)}function ee(e,t,r,c,n){var m;const o=N(W,n),l=e.tree.filter(i=>i.type==="tree"),u=e.tree.filter(i=>i.type==="blob").filter(i=>i.path!==".gitignore");let a=`
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-BPtHapzG.js","assets/index-mQ6522B8.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-m0KU5Oph.js","assets/index-DoB2bFAj.js"])))=>i.map(i=>d[i]); +import{g as B,r as g,j as d,u as F,a as H,b as q,_ as K,V as D}from"./index-mQ6522B8.js";import{g as N,c as v,a as X,R as J,b as Q}from"./RenderTopNavBar-m0KU5Oph.js";import{r as G,a as I,b as O,M as U,c as V,d as M}from"./Mdtoui-DyL4rrif.js";import"./index-Bj11N7g7.js";const W={fetch_fail:{EN:"Didn't fetch text correctly.",ES_LA:"No se obtuvo el texto correctamente.",PT_BR:"Não buscou o texto corretamente.",DE:"Text nicht korrekt abgerufen."},download:{EN:"Download",ES_LA:"Descargar",PT_BR:"Baixar",DE:"Herunterladen"},explore:{EN:"Explore",ES_LA:"Explorar",PT_BR:"Explorar",DE:"Erkunden"},error:{EN:"An error occurred fetching package contents.",ES_LA:"Ocurrió un error al obtener el contenido del paquete.",PT_BR:"Ocorreu um erro ao buscar o conteúdo do pacote.",DE:"Beim Abrufen des Paketinhalts ist ein Fehler aufgetreten."}},T={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_VERSION:"5.0.1+1724942027"};async function Y(e,t,r){const c=`${B.api}/repos/${e}/${t}/git/trees/${r}?recursive=1`;try{const s=await(await fetch(c,{method:"GET",headers:{Accept:"application/vnd.github.v3+json",Authorization:T!=null&&T.GITHUB_TOKEN?"token undefined":"","X-GitHub-Api-Version":"2022-11-28"}})).json();return{...s,tree:s.tree.sort(Z)}}catch(n){n instanceof Error?console.error(`Error: ${n.message}`):console.error(`An unexpected error occurred: ${n}`)}}function Z(e,t){const r=o=>{const l=o.toLocaleUpperCase(),u=c.findIndex(a=>l.startsWith(a.toLocaleUpperCase()));return u!==-1?u:c.length},c=["Google Cloud Platform","Amazon Web Services","Instructure"],n=r(e.path),s=r(t.path);return n!==s?s-n:e.path.localeCompare(t.path)}function ee(e,t,r,c,n){var m;const o=N(W,n),l=e.tree.filter(i=>i.type==="tree"),u=e.tree.filter(i=>i.type==="blob").filter(i=>i.path!==".gitignore");let a=`
🕵️ ${o.explore}\r \r `;for(const[i,f]of l.entries()){a+=`| ${f.path} |\r | ---------------- |`;for(const p of u)f!=null&&f.path&&((m=p==null?void 0:p.path)!=null&&m.startsWith(f.path))&&(a+=`\r | [${p.path.replace(`${f.path}/`,"")}](${encodeURI(`${B.raw}/${t}/${r}/${c}/${p.path}`)}) |`);i~l.indexOf(e)).toString();if(o){const l=await Y(n,s,o);if(l)return ee(l,n,s,o,c)}return null}const re=e=>{const t=v.c(9),{brand:r,branch:c,l:n}=e,[s,o]=g.useState(null);let l,u;t[0]!==r||t[1]!==c||t[2]!==n?(l=()=>{te(r.toLowerCase().replace(/\s/g,"-"),c,n).then(f=>o(f)).catch(f=>console.error(f))},u=[r,c,n],t[0]=r,t[1]=c,t[2]=n,t[3]=l,t[4]=u):(l=t[3],u=t[4]),g.useEffect(l,u);let a,m;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=[G,I],m=[O],t[5]=a,t[6]=m):(a=t[5],m=t[6]);let i;return t[7]!==s?(i=d.jsx(U,{remarkPlugins:a,rehypePlugins:m,allowedElements:V,components:M,children:s}),t[7]=s,t[8]=i):i=t[8],i};function oe(){const e=v.c(39),{readme:t,brand:r}=F(),c=H().language;let n,s,o;e[0]!==c?(o=X(c),s=N(W,o),n=o.toUpperCase(),e[0]=c,e[1]=n,e[2]=s,e[3]=o):(n=e[1],s=e[2],o=e[3]);const l=`.markdown .lang { display: none; } .markdown .lang.${n} { display: inherit; }`,u=t,[a,m]=g.useState("Loading..."),[i,f]=g.useState(!1);let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[4]=p):p=e[4];const[S,z]=g.useState(p);let R;e[5]!==r||e[6]!==u||e[7]!==s.fetch_fail?(R=()=>{document.title=`${r} Compliance Packages`,fetch(u).then(h=>h.ok?h.text():Promise.reject(s.fetch_fail)).then(h=>{m(h)}).catch(h=>console.error(h))},e[5]=r,e[6]=u,e[7]=s.fetch_fail,e[8]=R):R=e[8],g.useEffect(R);let k,w;e[9]!==a?(k=()=>{a&&(z(Array.from(document.querySelectorAll(".contents"))),f(!0))},w=[a],e[9]=a,e[10]=k,e[11]=w):(k=e[10],w=e[11]),g.useEffect(k,w);let E;e[12]!==i||e[13]!==S||e[14]!==r||e[15]!==o?(E=i&&(S==null?void 0:S.map(h=>q.createPortal(d.jsx(re,{brand:r,branch:h,l:o}),h))),e[12]=i,e[13]=S,e[14]=r,e[15]=o,e[16]=E):E=e[16];let x;e[17]!==r||e[18]!==o?(x=d.jsx(J,{brand:r,language:o}),e[17]=r,e[18]=o,e[19]=x):x=e[19];let y;e[20]!==l?(y=d.jsx("style",{children:l}),e[20]=l,e[21]=y):y=e[21];const L=`${r.toLowerCase().replace(/\s/g,"-")} markdown`;let j,A;e[22]===Symbol.for("react.memo_cache_sentinel")?(j=[G,I],A=[O],e[22]=j,e[23]=A):(j=e[22],A=e[23]);let b;e[24]!==a?(b=d.jsx(U,{remarkPlugins:j,rehypePlugins:A,allowedElements:V,components:M,children:a}),e[24]=a,e[25]=b):b=e[25];let P;e[26]!==L||e[27]!==b?(P=d.jsx(D,{as:"div",className:L,children:b}),e[26]=L,e[27]=b,e[28]=P):P=e[28];let _;e[29]!==y||e[30]!==P?(_=d.jsxs(D,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:[y,P]}),e[29]=y,e[30]=P,e[31]=_):_=e[31];let $;e[32]!==o?($=d.jsx(Q,{language:o}),e[32]=o,e[33]=$):$=e[33];let C;return e[34]!==E||e[35]!==x||e[36]!==_||e[37]!==$?(C=d.jsxs(d.Fragment,{children:[E,x,_,$]}),e[34]=E,e[35]=x,e[36]=_,e[37]=$,e[38]=C):C=e[38],C}oe.displayName="Route.MarkdownBrand";function ne(){const e=g.lazy(()=>K(()=>import("./error-LDYVdH-U.js"),__vite__mapDeps([0,1,2,3,4])).then(t=>({default:t.Component})));return d.jsx(g.Suspense,{fallback:d.jsx("h1",{children:"Error."}),children:d.jsx(e,{})})}ne.displayName="Error.MarkdownBrand";export{oe as Component,ne as ErrorBoundary}; +`)}return a+="
",a}async function te(e,t,r){const c=r,n=B.owner,s=B.repo,o=[...t.classList].filter(l=>~l.indexOf(e)).toString();if(o){const l=await Y(n,s,o);if(l)return ee(l,n,s,o,c)}return null}const re=e=>{const t=v.c(9),{brand:r,branch:c,l:n}=e,[s,o]=g.useState(null);let l,u;t[0]!==r||t[1]!==c||t[2]!==n?(l=()=>{te(r.toLowerCase().replace(/\s/g,"-"),c,n).then(f=>o(f)).catch(f=>console.error(f))},u=[r,c,n],t[0]=r,t[1]=c,t[2]=n,t[3]=l,t[4]=u):(l=t[3],u=t[4]),g.useEffect(l,u);let a,m;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=[G,I],m=[O],t[5]=a,t[6]=m):(a=t[5],m=t[6]);let i;return t[7]!==s?(i=d.jsx(U,{remarkPlugins:a,rehypePlugins:m,allowedElements:V,components:M,children:s}),t[7]=s,t[8]=i):i=t[8],i};function oe(){const e=v.c(39),{readme:t,brand:r}=F(),c=H().language;let n,s,o;e[0]!==c?(o=X(c),s=N(W,o),n=o.toUpperCase(),e[0]=c,e[1]=n,e[2]=s,e[3]=o):(n=e[1],s=e[2],o=e[3]);const l=`.markdown .lang { display: none; } .markdown .lang.${n} { display: inherit; }`,u=t,[a,m]=g.useState("Loading..."),[i,f]=g.useState(!1);let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[4]=p):p=e[4];const[S,z]=g.useState(p);let R;e[5]!==r||e[6]!==u||e[7]!==s.fetch_fail?(R=()=>{document.title=`${r} Compliance Packages`,fetch(u).then(h=>h.ok?h.text():Promise.reject(s.fetch_fail)).then(h=>{m(h)}).catch(h=>console.error(h))},e[5]=r,e[6]=u,e[7]=s.fetch_fail,e[8]=R):R=e[8],g.useEffect(R);let k,w;e[9]!==a?(k=()=>{a&&(z(Array.from(document.querySelectorAll(".contents"))),f(!0))},w=[a],e[9]=a,e[10]=k,e[11]=w):(k=e[10],w=e[11]),g.useEffect(k,w);let E;e[12]!==i||e[13]!==S||e[14]!==r||e[15]!==o?(E=i&&(S==null?void 0:S.map(h=>q.createPortal(d.jsx(re,{brand:r,branch:h,l:o}),h))),e[12]=i,e[13]=S,e[14]=r,e[15]=o,e[16]=E):E=e[16];let x;e[17]!==r||e[18]!==o?(x=d.jsx(J,{brand:r,language:o}),e[17]=r,e[18]=o,e[19]=x):x=e[19];let y;e[20]!==l?(y=d.jsx("style",{children:l}),e[20]=l,e[21]=y):y=e[21];const L=`${r.toLowerCase().replace(/\s/g,"-")} markdown`;let j,A;e[22]===Symbol.for("react.memo_cache_sentinel")?(j=[G,I],A=[O],e[22]=j,e[23]=A):(j=e[22],A=e[23]);let b;e[24]!==a?(b=d.jsx(U,{remarkPlugins:j,rehypePlugins:A,allowedElements:V,components:M,children:a}),e[24]=a,e[25]=b):b=e[25];let P;e[26]!==L||e[27]!==b?(P=d.jsx(D,{as:"div",className:L,children:b}),e[26]=L,e[27]=b,e[28]=P):P=e[28];let _;e[29]!==y||e[30]!==P?(_=d.jsxs(D,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:[y,P]}),e[29]=y,e[30]=P,e[31]=_):_=e[31];let $;e[32]!==o?($=d.jsx(Q,{language:o}),e[32]=o,e[33]=$):$=e[33];let C;return e[34]!==E||e[35]!==x||e[36]!==_||e[37]!==$?(C=d.jsxs(d.Fragment,{children:[E,x,_,$]}),e[34]=E,e[35]=x,e[36]=_,e[37]=$,e[38]=C):C=e[38],C}oe.displayName="Route.MarkdownBrand";function ne(){const e=g.lazy(()=>K(()=>import("./error-BPtHapzG.js"),__vite__mapDeps([0,1,2,3,4])).then(t=>({default:t.Component})));return d.jsx(g.Suspense,{fallback:d.jsx("h1",{children:"Error."}),children:d.jsx(e,{})})}ne.displayName="Error.MarkdownBrand";export{oe as Component,ne as ErrorBoundary}; diff --git a/assets/mdui-yfbR4PDq.js b/assets/mdui-D4r40FkK.js similarity index 93% rename from assets/mdui-yfbR4PDq.js rename to assets/mdui-D4r40FkK.js index 18b4faf..a94ae84 100644 --- a/assets/mdui-yfbR4PDq.js +++ b/assets/mdui-D4r40FkK.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-LDYVdH-U.js","assets/index-Co1on5ja.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-BjY6S8Vl.js","assets/index-Dh55QiP4.js"])))=>i.map(i=>d[i]); -import{a as T,r as m,j as n,V as _,_ as C}from"./index-Co1on5ja.js";import{c as v,a as S,g as A,R,b as N}from"./RenderTopNavBar-BjY6S8Vl.js";import{M,c as I,d as L,r as P,a as B,b as H}from"./Mdtoui-BnFmcABV.js";import{G as k}from"./index-DUk1PrHv.js";import{S as G}from"./index-CdS0NUpT.js";import"./index-BAR0q47n.js";const D={loading:{EN:"Loading...",ES_LA:"Cargando...",PT_BR:"Carregando...",DE:"Wird geladen..."},markdown_source:{EN:"Markdown Source",ES_LA:"Fuente de Markdown",PT_BR:"Fonte de Markdown",DE:"Markdown-Quelle"},try_editor:{EN:"Try editing the markdown below.",ES_LA:"Intenta editar el markdown abajo.",PT_BR:"Tente editar o markdown abaixo.",DE:"Versuche den Markdown unten zu bearbeiten."},close:{EN:"Close",ES_LA:"Cerrar",PT_BR:"Fechar",DE:"Schließen"}},x=`# Markdown to Instructure UI +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-BPtHapzG.js","assets/index-mQ6522B8.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-m0KU5Oph.js","assets/index-DoB2bFAj.js"])))=>i.map(i=>d[i]); +import{a as T,r as m,j as n,V as _,_ as C}from"./index-mQ6522B8.js";import{c as v,a as S,g as A,R,b as N}from"./RenderTopNavBar-m0KU5Oph.js";import{M,c as I,d as L,r as P,a as B,b as H}from"./Mdtoui-DyL4rrif.js";import{G as k}from"./index-Bj11N7g7.js";import{S as G}from"./index-Deq60h-B.js";import"./index-hytSvzuk.js";const D={loading:{EN:"Loading...",ES_LA:"Cargando...",PT_BR:"Carregando...",DE:"Wird geladen..."},markdown_source:{EN:"Markdown Source",ES_LA:"Fuente de Markdown",PT_BR:"Fonte de Markdown",DE:"Markdown-Quelle"},try_editor:{EN:"Try editing the markdown below.",ES_LA:"Intenta editar el markdown abajo.",PT_BR:"Tente editar o markdown abaixo.",DE:"Versuche den Markdown unten zu bearbeiten."},close:{EN:"Close",ES_LA:"Cerrar",PT_BR:"Fechar",DE:"Schließen"}},x=`# Markdown to Instructure UI > [!NOTE] > Try editing the markdown on this page. @@ -118,4 +118,4 @@ Text style: *italic* **bold** ~struck~ **Bacon** ipsum dolor amet beef ribs porchetta shank prosciutto burgdoggen sirloin pork belly pancetta picanha drumstick shoulder meatloaf. Sausage ground round flank shank venison, turducken frankfurter sirloin landjaeger jerky bresaola swine picanha. Buffalo shank short ribs rump swine tail, meatloaf capicola venison pork loin cupim. Buffalo spare ribs ribeye sausage. Ground round porchetta cow, landjaeger pork belly jowl picanha salami. Pork belly pancetta spare ribs swine t-bone, meatloaf bresaola kielbasa pastrami burgdoggen turkey sausage ham hock. Ribeye shank tenderloin beef ribs tail venison drumstick tongue pastrami. -Shank spare ribs sausage landjaeger strip steak jerky, fatback salami tenderloin ball tip pastrami pork. Meatball tri-tip ham tongue, beef ribs chuck boudin short ribs pork burgdoggen spare ribs shankle bacon picanha. Burgdoggen pork meatball boudin venison tenderloin tail pork loin short loin chicken. Salami pork loin shankle bresaola, ground round pork pork belly beef ribs flank tongue biltong pastrami cow. Hamburger cupim sausage tri-tip. Ham rump shoulder, ground round sausage flank hamburger spare ribs picanha bacon chuck strip steak.`;function U(){const e=v.c(24),d=T().language;let u,t;e[0]!==d?(t=S(d),u=A(D,t),e[0]=d,e[1]=u,e[2]=t):(u=e[1],t=e[2]);const y=u;m.useEffect(F);const[a,j]=m.useState(`${y.loading}`);let c,g;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{j(x)},g=[x],e[3]=c,e[4]=g):(c=e[3],g=e[4]),m.useEffect(c,g);let r;e[5]!==t?(r=n.jsx(R,{language:t}),e[5]=t,e[6]=r):r=e[6];let h,p;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=[P,B],p=[H],e[7]=h,e[8]=p):(h=e[7],p=e[8]);let o;e[9]!==a?(o=n.jsx(k.Col,{children:n.jsx(M,{remarkPlugins:h,rehypePlugins:p,allowedElements:I,components:L,children:a})}),e[9]=a,e[10]=o):o=e[10];const w=`${y.markdown_source}`;let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=E=>{j(E)},e[11]=b):b=e[11];let i;e[12]!==w||e[13]!==a?(i=n.jsx(k.Col,{children:n.jsx(G,{label:w,language:"markdown",readOnly:!1,editable:!0,lineNumbers:!0,foldGutter:!0,highlightActiveLineGutter:!0,highlightActiveLine:!0,lineWrapping:!0,value:a,onChange:b})}),e[12]=w,e[13]=a,e[14]=i):i=e[14];let s;e[15]!==o||e[16]!==i?(s=n.jsx(_,{id:"main",className:"mdui",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"100vw",margin:"0 auto",children:n.jsx(k,{startAt:"large",children:n.jsxs(k.Row,{children:[o,i]})})}),e[15]=o,e[16]=i,e[17]=s):s=e[17];let l;e[18]!==t?(l=n.jsx(N,{language:t}),e[18]=t,e[19]=l):l=e[19];let f;return e[20]!==r||e[21]!==s||e[22]!==l?(f=n.jsxs(n.Fragment,{children:[r,s,l]}),e[20]=r,e[21]=s,e[22]=l,e[23]=f):f=e[23],f}function F(){document.title="Markdown to Instructure UI"}U.displayName="Route.MDUI";function O(){const e=m.lazy(()=>C(()=>import("./error-LDYVdH-U.js"),__vite__mapDeps([0,1,2,3,4])).then(d=>({default:d.Component})));return n.jsx(m.Suspense,{fallback:n.jsx("h1",{children:"Error."}),children:n.jsx(e,{})})}O.displayName="Error.Releases";export{U as Component,O as ErrorBoundary}; +Shank spare ribs sausage landjaeger strip steak jerky, fatback salami tenderloin ball tip pastrami pork. Meatball tri-tip ham tongue, beef ribs chuck boudin short ribs pork burgdoggen spare ribs shankle bacon picanha. Burgdoggen pork meatball boudin venison tenderloin tail pork loin short loin chicken. Salami pork loin shankle bresaola, ground round pork pork belly beef ribs flank tongue biltong pastrami cow. Hamburger cupim sausage tri-tip. Ham rump shoulder, ground round sausage flank hamburger spare ribs picanha bacon chuck strip steak.`;function U(){const e=v.c(24),d=T().language;let u,t;e[0]!==d?(t=S(d),u=A(D,t),e[0]=d,e[1]=u,e[2]=t):(u=e[1],t=e[2]);const y=u;m.useEffect(F);const[a,j]=m.useState(`${y.loading}`);let c,g;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{j(x)},g=[x],e[3]=c,e[4]=g):(c=e[3],g=e[4]),m.useEffect(c,g);let r;e[5]!==t?(r=n.jsx(R,{language:t}),e[5]=t,e[6]=r):r=e[6];let h,p;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=[P,B],p=[H],e[7]=h,e[8]=p):(h=e[7],p=e[8]);let o;e[9]!==a?(o=n.jsx(k.Col,{children:n.jsx(M,{remarkPlugins:h,rehypePlugins:p,allowedElements:I,components:L,children:a})}),e[9]=a,e[10]=o):o=e[10];const w=`${y.markdown_source}`;let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=E=>{j(E)},e[11]=b):b=e[11];let i;e[12]!==w||e[13]!==a?(i=n.jsx(k.Col,{children:n.jsx(G,{label:w,language:"markdown",readOnly:!1,editable:!0,lineNumbers:!0,foldGutter:!0,highlightActiveLineGutter:!0,highlightActiveLine:!0,lineWrapping:!0,value:a,onChange:b})}),e[12]=w,e[13]=a,e[14]=i):i=e[14];let s;e[15]!==o||e[16]!==i?(s=n.jsx(_,{id:"main",className:"mdui",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"100vw",margin:"0 auto",children:n.jsx(k,{startAt:"large",children:n.jsxs(k.Row,{children:[o,i]})})}),e[15]=o,e[16]=i,e[17]=s):s=e[17];let l;e[18]!==t?(l=n.jsx(N,{language:t}),e[18]=t,e[19]=l):l=e[19];let f;return e[20]!==r||e[21]!==s||e[22]!==l?(f=n.jsxs(n.Fragment,{children:[r,s,l]}),e[20]=r,e[21]=s,e[22]=l,e[23]=f):f=e[23],f}function F(){document.title="Markdown to Instructure UI"}U.displayName="Route.MDUI";function O(){const e=m.lazy(()=>C(()=>import("./error-BPtHapzG.js"),__vite__mapDeps([0,1,2,3,4])).then(d=>({default:d.Component})));return n.jsx(m.Suspense,{fallback:n.jsx("h1",{children:"Error."}),children:n.jsx(e,{})})}O.displayName="Error.Releases";export{U as Component,O as ErrorBoundary}; diff --git a/assets/redirectTo-BI9YwaQV.js b/assets/redirectTo-CRmRN8sY.js similarity index 86% rename from assets/redirectTo-BI9YwaQV.js rename to assets/redirectTo-CRmRN8sY.js index 61c84bc..8497ad1 100644 --- a/assets/redirectTo-BI9YwaQV.js +++ b/assets/redirectTo-CRmRN8sY.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-LDYVdH-U.js","assets/index-Co1on5ja.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-BjY6S8Vl.js","assets/index-Dh55QiP4.js"])))=>i.map(i=>d[i]); -import{u as D,a as B,r as k,_ as L,j as o,V as y}from"./index-Co1on5ja.js";import{c as N,a as P,g as S,T as j,L as T,R as A,b}from"./RenderTopNavBar-BjY6S8Vl.js";import{B as v}from"./index-Dh55QiP4.js";const $={downloading:{EN:"Downloading",ES_LA:"Descargando",PT_BR:"Baixando",DE:"Herunterladen"},redirecting:{EN:"Redirecting",ES_LA:"Redirigiendo",PT_BR:"Redirecionando",DE:"Weiterleitung"},youre_downloading_the:{EN:"You're downloading the",ES_LA:"¡Estás descargando el paquete de cumplimiento de",PT_BR:"Você está baixando o pacote de conformidade do",DE:"Sie laden das"},youre_downloading_a:{EN:"You're downloading a document from the",ES_LA:"Estás descargando un documento del paquete de cumplimiento de",PT_BR:"Você está baixando um documento do pacote de conformidade do",DE:"Sie laden ein Dokument aus dem"},compliance_package:{EN:"compliance package!",ES_LA:"!",PT_BR:"!",DE:"-Compliance-Paket herunter!"},didnt_work:{EN:"Didn't work?",ES_LA:"¿No funcionó?",PT_BR:"Não funcionou?",DE:"Hat nicht funktioniert?"},try_again:{EN:"Try again",ES_LA:"Inténtalo de nuevo",PT_BR:"Tente novamente",DE:"Versuchen Sie es erneut"},redirecting_to:{EN:"Redirecting you to",ES_LA:"Redirigiéndote a",PT_BR:"Redirecionando você para",DE:"Weiterleitung zu"}};function V(){const e=N.c(32),{path:E,brand:s,url:i}=D(),h=B().language;let l,a;e[0]!==h?(a=P(h),l=S($,a),e[0]=h,e[1]=l,e[2]=a):(l=e[1],a=e[2]);const n=l;let c;e[3]!==i?(c=i.split("?"),e[3]=i,e[4]=c):c=e[4];const x=c[0];let u;e[5]!==i?(u=i.slice(-4),e[5]=i,e[6]=u):u=e[6];const f=u,g=E.slice(-3)==="/dl";let _;e[7]!==i?(_=()=>{window.location.href=i},e[7]=i,e[8]=_):_=e[8],k.useEffect(_);let m;e[9]!==g||e[10]!==f||e[11]!==n.youre_downloading_the||e[12]!==n.compliance_package||e[13]!==n.youre_downloading_a||e[14]!==n.didnt_work||e[15]!==n.try_again||e[16]!==n.redirecting_to||e[17]!==s||e[18]!==i||e[19]!==x?(m=()=>g?o.jsxs(y,{as:"div",children:[o.jsx(j,{children:f===".zip"?`${n.youre_downloading_the} ${s} ${n.compliance_package}`:`${n.youre_downloading_a} ${s} ${n.compliance_package}`}),o.jsx("br",{}),o.jsxs(j,{size:"x-small",children:[n.didnt_work," ",o.jsx(T,{href:i,children:n.try_again})]})]}):o.jsx(y,{as:"div",children:o.jsxs(j,{children:[n.redirecting_to," ",o.jsx(T,{href:i,children:x})]})}),e[9]=g,e[10]=f,e[11]=n.youre_downloading_the,e[12]=n.compliance_package,e[13]=n.youre_downloading_a,e[14]=n.didnt_work,e[15]=n.try_again,e[16]=n.redirecting_to,e[17]=s,e[18]=i,e[19]=x,e[20]=m):m=e[20];const R=m;let t;e[21]!==a?(t=o.jsx(A,{language:a}),e[21]=a,e[22]=t):t=e[22];const w=g?n.downloading:n.redirecting;let r;e[23]!==w||e[24]!==R?(r=o.jsx(y,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:o.jsx(v,{size:"medium",heading:w,headingAs:"h1",message:R})}),e[23]=w,e[24]=R,e[25]=r):r=e[25];let d;e[26]!==a?(d=o.jsx(b,{language:a}),e[26]=a,e[27]=d):d=e[27];let p;return e[28]!==t||e[29]!==r||e[30]!==d?(p=o.jsxs(o.Fragment,{children:[t,r,d]}),e[28]=t,e[29]=r,e[30]=d,e[31]=p):p=e[31],p}V.displayName="Route.Redirect";function z(){const e=k.lazy(()=>L(()=>import("./error-LDYVdH-U.js"),__vite__mapDeps([0,1,2,3,4])).then(E=>({default:E.Component})));return o.jsx(k.Suspense,{fallback:o.jsx("h1",{children:"Error."}),children:o.jsx(e,{})})}z.displayName="Error.Redirect";export{V as Component,z as ErrorBoundary}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-BPtHapzG.js","assets/index-mQ6522B8.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-m0KU5Oph.js","assets/index-DoB2bFAj.js"])))=>i.map(i=>d[i]); +import{u as D,a as B,r as k,_ as L,j as o,V as y}from"./index-mQ6522B8.js";import{c as N,a as P,g as S,T as j,L as T,R as A,b}from"./RenderTopNavBar-m0KU5Oph.js";import{B as v}from"./index-DoB2bFAj.js";const $={downloading:{EN:"Downloading",ES_LA:"Descargando",PT_BR:"Baixando",DE:"Herunterladen"},redirecting:{EN:"Redirecting",ES_LA:"Redirigiendo",PT_BR:"Redirecionando",DE:"Weiterleitung"},youre_downloading_the:{EN:"You're downloading the",ES_LA:"¡Estás descargando el paquete de cumplimiento de",PT_BR:"Você está baixando o pacote de conformidade do",DE:"Sie laden das"},youre_downloading_a:{EN:"You're downloading a document from the",ES_LA:"Estás descargando un documento del paquete de cumplimiento de",PT_BR:"Você está baixando um documento do pacote de conformidade do",DE:"Sie laden ein Dokument aus dem"},compliance_package:{EN:"compliance package!",ES_LA:"!",PT_BR:"!",DE:"-Compliance-Paket herunter!"},didnt_work:{EN:"Didn't work?",ES_LA:"¿No funcionó?",PT_BR:"Não funcionou?",DE:"Hat nicht funktioniert?"},try_again:{EN:"Try again",ES_LA:"Inténtalo de nuevo",PT_BR:"Tente novamente",DE:"Versuchen Sie es erneut"},redirecting_to:{EN:"Redirecting you to",ES_LA:"Redirigiéndote a",PT_BR:"Redirecionando você para",DE:"Weiterleitung zu"}};function V(){const e=N.c(32),{path:E,brand:s,url:i}=D(),h=B().language;let l,a;e[0]!==h?(a=P(h),l=S($,a),e[0]=h,e[1]=l,e[2]=a):(l=e[1],a=e[2]);const n=l;let c;e[3]!==i?(c=i.split("?"),e[3]=i,e[4]=c):c=e[4];const x=c[0];let u;e[5]!==i?(u=i.slice(-4),e[5]=i,e[6]=u):u=e[6];const f=u,g=E.slice(-3)==="/dl";let _;e[7]!==i?(_=()=>{window.location.href=i},e[7]=i,e[8]=_):_=e[8],k.useEffect(_);let m;e[9]!==g||e[10]!==f||e[11]!==n.youre_downloading_the||e[12]!==n.compliance_package||e[13]!==n.youre_downloading_a||e[14]!==n.didnt_work||e[15]!==n.try_again||e[16]!==n.redirecting_to||e[17]!==s||e[18]!==i||e[19]!==x?(m=()=>g?o.jsxs(y,{as:"div",children:[o.jsx(j,{children:f===".zip"?`${n.youre_downloading_the} ${s} ${n.compliance_package}`:`${n.youre_downloading_a} ${s} ${n.compliance_package}`}),o.jsx("br",{}),o.jsxs(j,{size:"x-small",children:[n.didnt_work," ",o.jsx(T,{href:i,children:n.try_again})]})]}):o.jsx(y,{as:"div",children:o.jsxs(j,{children:[n.redirecting_to," ",o.jsx(T,{href:i,children:x})]})}),e[9]=g,e[10]=f,e[11]=n.youre_downloading_the,e[12]=n.compliance_package,e[13]=n.youre_downloading_a,e[14]=n.didnt_work,e[15]=n.try_again,e[16]=n.redirecting_to,e[17]=s,e[18]=i,e[19]=x,e[20]=m):m=e[20];const R=m;let t;e[21]!==a?(t=o.jsx(A,{language:a}),e[21]=a,e[22]=t):t=e[22];const w=g?n.downloading:n.redirecting;let r;e[23]!==w||e[24]!==R?(r=o.jsx(y,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:o.jsx(v,{size:"medium",heading:w,headingAs:"h1",message:R})}),e[23]=w,e[24]=R,e[25]=r):r=e[25];let d;e[26]!==a?(d=o.jsx(b,{language:a}),e[26]=a,e[27]=d):d=e[27];let p;return e[28]!==t||e[29]!==r||e[30]!==d?(p=o.jsxs(o.Fragment,{children:[t,r,d]}),e[28]=t,e[29]=r,e[30]=d,e[31]=p):p=e[31],p}V.displayName="Route.Redirect";function z(){const e=k.lazy(()=>L(()=>import("./error-BPtHapzG.js"),__vite__mapDeps([0,1,2,3,4])).then(E=>({default:E.Component})));return o.jsx(k.Suspense,{fallback:o.jsx("h1",{children:"Error."}),children:o.jsx(e,{})})}z.displayName="Error.Redirect";export{V as Component,z as ErrorBoundary}; diff --git a/assets/releases-DNm8mqBV.js b/assets/releases-DavYsqrR.js similarity index 83% rename from assets/releases-DNm8mqBV.js rename to assets/releases-DavYsqrR.js index 9ce2f85..d9757cb 100644 --- a/assets/releases-DNm8mqBV.js +++ b/assets/releases-DavYsqrR.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-LDYVdH-U.js","assets/index-Co1on5ja.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-BjY6S8Vl.js","assets/index-Dh55QiP4.js"])))=>i.map(i=>d[i]); -import{g as f,a as k,r as x,j as t,_ as A,V as w}from"./index-Co1on5ja.js";import{c as L,a as T,g as V,H as D,R as N,L as I,b as v}from"./RenderTopNavBar-BjY6S8Vl.js";import{r as B,a as G,b as C,M as O,c as H,d as M}from"./Mdtoui-BnFmcABV.js";import{I as U}from"./IconRssLine-CYM7kQpO.js";import"./index-DUk1PrHv.js";const W={releases:{EN:"Releases",ES_LA:"Versiones",PT_BR:"Lançamentos",DE:"Veröffentlichungen"},loading:{EN:"Loading...",ES_LA:"Cargando...",PT_BR:"Carregando...",DE:"Wird geladen..."},subscribe:{EN:"Subscribe",ES_LA:"Suscríbete",PT_BR:"Inscreva-se",DE:"Abonnieren Sie"}},$={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_VERSION:"5.0.1+1724690382"};async function z(e,r){const a=`${f.api}/repos/${e}/${r}/releases`;try{const n=await(await fetch(a,{method:"GET",headers:{Accept:"application/vnd.github.v3+json",Authorization:$!=null&&$.VITE_GITHUB_TOKEN?"token undefined":"","X-GitHub-Api-Version":"2022-11-28"}})).json();return n.length>3?`${n.slice(0,3).map(S).join(`\r +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/error-BPtHapzG.js","assets/index-mQ6522B8.js","assets/index-TCIaF8cn.css","assets/RenderTopNavBar-m0KU5Oph.js","assets/index-DoB2bFAj.js"])))=>i.map(i=>d[i]); +import{g as f,a as k,r as x,j as t,_ as A,V as w}from"./index-mQ6522B8.js";import{c as L,a as T,g as V,H as D,R as N,L as I,b as v}from"./RenderTopNavBar-m0KU5Oph.js";import{r as B,a as G,b as C,M as O,c as H,d as M}from"./Mdtoui-DyL4rrif.js";import{I as U}from"./IconRssLine-ozT-I_fC.js";import"./index-Bj11N7g7.js";const W={releases:{EN:"Releases",ES_LA:"Versiones",PT_BR:"Lançamentos",DE:"Veröffentlichungen"},loading:{EN:"Loading...",ES_LA:"Cargando...",PT_BR:"Carregando...",DE:"Wird geladen..."},subscribe:{EN:"Subscribe",ES_LA:"Suscríbete",PT_BR:"Inscreva-se",DE:"Abonnieren Sie"}},$={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_VERSION:"5.0.1+1724942027"};async function z(e,r){const a=`${f.api}/repos/${e}/${r}/releases`;try{const n=await(await fetch(a,{method:"GET",headers:{Accept:"application/vnd.github.v3+json",Authorization:$!=null&&$.VITE_GITHUB_TOKEN?"token undefined":"","X-GitHub-Api-Version":"2022-11-28"}})).json();return n.length>3?`${n.slice(0,3).map(S).join(`\r \r `).slice(0,-3)}---\r \r @@ -13,4 +13,4 @@ import{g as f,a as k,r as x,j as t,_ as A,V as w}from"./index-Co1on5ja.js";impor ${e.body}\r ----`}async function F(){const e=f.owner,r=f.repo;return z(e,r)}function K(){const e=L.c(32),r=k().language;let a,s,n,l;e[0]!==r?(n=T(r),s=V(W,n),l=`https://github.com/${f.owner}/${f.repo}/releases.atom`,a=n.toUpperCase(),e[0]=r,e[1]=a,e[2]=s,e[3]=n,e[4]=l):(a=e[1],s=e[2],n=e[3],l=e[4]);const j=`.markdown .lang { display: none; } .markdown .lang.${a} { display: inherit; }`,[y,P]=x.useState(`${s.loading}`);let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{F().then(_=>{P(_)}).catch(_=>console.error(_))},e[5]=p):p=e[5],x.useEffect(p);let o;e[6]!==n?(o=t.jsx(N,{language:n}),e[6]=n,e[7]=o):o=e[7];let i;e[8]!==s.subscribe?(i=t.jsx(U,{size:"small",color:"warning",title:s.subscribe}),e[8]=s.subscribe,e[9]=i):i=e[9];let c;e[10]!==l||e[11]!==i?(c=t.jsx(I,{href:l,children:i}),e[10]=l,e[11]=i,e[12]=c):c=e[12];let d;e[13]!==c||e[14]!==s.releases?(d=t.jsxs(D,{level:"h1",children:[c," ",s.releases]}),e[13]=c,e[14]=s.releases,e[15]=d):d=e[15];let m;e[16]!==j?(m=t.jsx("style",{children:j}),e[16]=j,e[17]=m):m=e[17];let E,b;e[18]===Symbol.for("react.memo_cache_sentinel")?(E=[B,G],b=[C],e[18]=E,e[19]=b):(E=e[18],b=e[19]);let u;e[20]!==y?(u=t.jsx(w,{as:"div",className:"markdown",children:t.jsx(O,{remarkPlugins:E,rehypePlugins:b,allowedElements:H,components:M,children:y})}),e[20]=y,e[21]=u):u=e[21];let g;e[22]!==d||e[23]!==m||e[24]!==u?(g=t.jsxs(w,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:[d,m,u]}),e[22]=d,e[23]=m,e[24]=u,e[25]=g):g=e[25];let h;e[26]!==n?(h=t.jsx(v,{language:n}),e[26]=n,e[27]=h):h=e[27];let R;return e[28]!==o||e[29]!==g||e[30]!==h?(R=t.jsxs(t.Fragment,{children:[o,g,h]}),e[28]=o,e[29]=g,e[30]=h,e[31]=R):R=e[31],R}K.displayName="Route.Releases";function X(){const e=x.lazy(()=>A(()=>import("./error-LDYVdH-U.js"),__vite__mapDeps([0,1,2,3,4])).then(r=>({default:r.Component})));return t.jsx(x.Suspense,{fallback:t.jsx("h1",{children:"Error."}),children:t.jsx(e,{})})}X.displayName="Error.Releases";export{K as Component,X as ErrorBoundary}; +---`}async function F(){const e=f.owner,r=f.repo;return z(e,r)}function K(){const e=L.c(32),r=k().language;let a,s,n,l;e[0]!==r?(n=T(r),s=V(W,n),l=`https://github.com/${f.owner}/${f.repo}/releases.atom`,a=n.toUpperCase(),e[0]=r,e[1]=a,e[2]=s,e[3]=n,e[4]=l):(a=e[1],s=e[2],n=e[3],l=e[4]);const j=`.markdown .lang { display: none; } .markdown .lang.${a} { display: inherit; }`,[y,P]=x.useState(`${s.loading}`);let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{F().then(_=>{P(_)}).catch(_=>console.error(_))},e[5]=p):p=e[5],x.useEffect(p);let o;e[6]!==n?(o=t.jsx(N,{language:n}),e[6]=n,e[7]=o):o=e[7];let i;e[8]!==s.subscribe?(i=t.jsx(U,{size:"small",color:"warning",title:s.subscribe}),e[8]=s.subscribe,e[9]=i):i=e[9];let c;e[10]!==l||e[11]!==i?(c=t.jsx(I,{href:l,children:i}),e[10]=l,e[11]=i,e[12]=c):c=e[12];let d;e[13]!==c||e[14]!==s.releases?(d=t.jsxs(D,{level:"h1",children:[c," ",s.releases]}),e[13]=c,e[14]=s.releases,e[15]=d):d=e[15];let m;e[16]!==j?(m=t.jsx("style",{children:j}),e[16]=j,e[17]=m):m=e[17];let E,b;e[18]===Symbol.for("react.memo_cache_sentinel")?(E=[B,G],b=[C],e[18]=E,e[19]=b):(E=e[18],b=e[19]);let u;e[20]!==y?(u=t.jsx(w,{as:"div",className:"markdown",children:t.jsx(O,{remarkPlugins:E,rehypePlugins:b,allowedElements:H,components:M,children:y})}),e[20]=y,e[21]=u):u=e[21];let g;e[22]!==d||e[23]!==m||e[24]!==u?(g=t.jsxs(w,{id:"main",as:"div",padding:"medium medium xx-large",minWidth:"20rem",maxWidth:"59.25rem",margin:"0 auto",children:[d,m,u]}),e[22]=d,e[23]=m,e[24]=u,e[25]=g):g=e[25];let h;e[26]!==n?(h=t.jsx(v,{language:n}),e[26]=n,e[27]=h):h=e[27];let R;return e[28]!==o||e[29]!==g||e[30]!==h?(R=t.jsxs(t.Fragment,{children:[o,g,h]}),e[28]=o,e[29]=g,e[30]=h,e[31]=R):R=e[31],R}K.displayName="Route.Releases";function X(){const e=x.lazy(()=>A(()=>import("./error-BPtHapzG.js"),__vite__mapDeps([0,1,2,3,4])).then(r=>({default:r.Component})));return t.jsx(x.Suspense,{fallback:t.jsx("h1",{children:"Error."}),children:t.jsx(e,{})})}X.displayName="Error.Releases";export{K as Component,X as ErrorBoundary}; diff --git a/index.html b/index.html index 62f1d21..cc5d52d 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + @@ -16,7 +16,7 @@ Instructure Compliance Packages - +