build(admin): track the SPA build output so git deploys carry it

assets/admin/build was gitignored, so servers deployed by git pull kept
running a stale admin bundle — the icon picker integration in the tabbar
and floating-button settings pages never reached them. Track the build
directory (rebuild with: cd assets/admin && npm run build) and commit the
current bundle containing the universal icon picker.
This commit is contained in:
kate522 committed 2026-09-06 14:35:15 +08:00
1 parent 2e25894eb5
commit 27d8a9ea71
64 files changed
+15839 -3

No files matched your search

@@ -0,0 +1,48 @@
var Xb=Object.defineProperty;var Eb=(n,e,t)=>e in n?Xb(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var _=(n,e,t)=>Eb(n,typeof e!="symbol"?e+"":e,t);import{r as ce,a as bn,w as Jt,c as it,g as Fc,o as ni,b as an,d as Gc,e as Db,f as _b,F as Op,C as zb,h as qt,p as pp,i as Fr,j as mp,k as Me,T as Yb,t as Bn,n as gp,l as yp,m as Wb,q as jb,s as Ib}from"./vendor-vue.BxZIRU0_.js";function V_(n){let e=".",t="__",i="--",r;if(n){let O=n.blockPrefix;O&&(e=O),O=n.elementPrefix,O&&(t=O),O=n.modifierPrefix,O&&(i=O)}const s={install(O){r=O.c;const p=O.context;p.bem={},p.bem.b=null,p.bem.els=null}};function o(O){let p,m;return{before(g){p=g.bem.b,m=g.bem.els,g.bem.els=null},after(g){g.bem.b=p,g.bem.els=m},$({context:g,props:b}){return O=typeof O=="string"?O:O({context:g,props:b}),g.bem.b=O,`${(b==null?void 0:b.bPrefix)||e}${g.bem.b}`}}}function a(O){let p;return{before(m){p=m.bem.els},after(m){m.bem.els=p},$({context:m,props:g}){return O=typeof O=="string"?O:O({context:m,props:g}),m.bem.els=O.split(",").map(b=>b.trim()),m.bem.els.map(b=>`${(g==null?void 0:g.bPrefix)||e}${m.bem.b}${t}${b}`).join(", ")}}}function l(O){return{$({context:p,props:m}){O=typeof O=="string"?O:O({context:p,props:m});const g=O.split(",").map(v=>v.trim());function b(v){return g.map(S=>`&${(m==null?void 0:m.bPrefix)||e}${p.bem.b}${v!==void 0?`${t}${v}`:""}${i}${S}`).join(", ")}const x=p.bem.els;return x!==null?b(x[0]):b()}}}function c(O){return{$({context:p,props:m}){O=typeof O=="string"?O:O({context:p,props:m});const g=p.bem.els;return`&:not(${(m==null?void 0:m.bPrefix)||e}${p.bem.b}${g!==null&&g.length>0?`${t}${g[0]}`:""}${i}${O})`}}}return Object.assign(s,{cB:((...O)=>r(o(O[0]),O[1],O[2])),cE:((...O)=>r(a(O[0]),O[1],O[2])),cM:((...O)=>r(l(O[0]),O[1],O[2])),cNotM:((...O)=>r(c(O[0]),O[1],O[2]))}),s}function Lb(n){let e=0;for(let t=0;t<n.length;++t)n[t]==="&"&&++e;return e}const bp=/\s*,(?![^(]*\))\s*/g,qb=/\s+/g;function Bb(n,e){const t=[];return e.split(bp).forEach(i=>{let r=Lb(i);if(r){if(r===1){n.forEach(o=>{t.push(i.replace("&",o))});return}}else{n.forEach(o=>{t.push((o&&o+" ")+i)});return}let s=[i];for(;r--;){const o=[];s.forEach(a=>{n.forEach(l=>{o.push(a.replace("&",l))})}),s=o}s.forEach(o=>t.push(o))}),t}function Vb(n,e){const t=[];return e.split(bp).forEach(i=>{n.forEach(r=>{t.push((r&&r+" ")+i)})}),t}function Nb(n){let e=[""];return n.forEach(t=>{t=t&&t.trim(),t&&(t.includes("&")?e=Bb(e,t):e=Vb(e,t))}),e.join(", ").replace(qb," ")}function Oh(n){if(!n)return;const e=n.parentElement;e&&e.removeChild(n)}function Fo(n,e){return(e??document.head).querySelector(`style[cssr-id="${n}"]`)}function Fb(n){const e=document.createElement("style");return e.setAttribute("cssr-id",n),e}function as(n){return n?/^\s*@(s|m)/.test(n):!1}const Gb=/[A-Z]/g;function xp(n){return n.replace(Gb,e=>"-"+e.toLowerCase())}function Ub(n,e=" "){return typeof n=="object"&&n!==null?` {
`+Object.entries(n).map(t=>e+` ${xp(t[0])}: ${t[1]};`).join(`
`)+`
`+e+"}":`: ${n};`}function Hb(n,e,t){return typeof n=="function"?n({context:e.context,props:t}):n}function ph(n,e,t,i){if(!e)return"";const r=Hb(e,t,i);if(!r)return"";if(typeof r=="string")return`${n} {
${r}
}`;const s=Object.keys(r);if(s.length===0)return t.config.keepEmptyBlock?n+` {
}`:"";const o=n?[n+" {"]:[];return s.forEach(a=>{const l=r[a];if(a==="raw"){o.push(`
`+l+`
`);return}a=xp(a),l!=null&&o.push(` ${a}${Ub(l)}`)}),n&&o.push("}"),o.join(`
`)}function Cl(n,e,t){n&&n.forEach(i=>{if(Array.isArray(i))Cl(i,e,t);else if(typeof i=="function"){const r=i(e);Array.isArray(r)?Cl(r,e,t):r&&t(r)}else i&&t(i)})}function wp(n,e,t,i,r){const s=n.$;let o="";if(!s||typeof s=="string")as(s)?o=s:e.push(s);else if(typeof s=="function"){const c=s({context:i.context,props:r});as(c)?o=c:e.push(c)}else if(s.before&&s.before(i.context),!s.$||typeof s.$=="string")as(s.$)?o=s.$:e.push(s.$);else if(s.$){const c=s.$({context:i.context,props:r});as(c)?o=c:e.push(c)}const a=Nb(e),l=ph(a,n.props,i,r);o?t.push(`${o} {`):l.length&&t.push(l),n.children&&Cl(n.children,{context:i.context,props:r},c=>{if(typeof c=="string"){const u=ph(a,{raw:c},i,r);t.push(u)}else wp(c,e,t,i,r)}),e.pop(),o&&t.push("}"),s&&s.after&&s.after(i.context)}function Kb(n,e,t){const i=[];return wp(n,[],i,e,t),i.join(`
`)}function Jb(n){for(var e=0,t,i=0,r=n.length;r>=4;++i,r-=4)t=n.charCodeAt(i)&255|(n.charCodeAt(++i)&255)<<8|(n.charCodeAt(++i)&255)<<16|(n.charCodeAt(++i)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(n.charCodeAt(i+2)&255)<<16;case 2:e^=(n.charCodeAt(i+1)&255)<<8;case 1:e^=n.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function e1(n,e,t,i){const{els:r}=e;if(t===void 0)r.forEach(Oh),e.els=[];else{const s=Fo(t,i);s&&r.includes(s)&&(Oh(s),e.els=r.filter(o=>o!==s))}}function mh(n,e){n.push(e)}function t1(n,e,t,i,r,s,o,a,l){let c;if(t===void 0&&(c=e.render(i),t=Jb(c)),l){l.adapter(t,c??e.render(i));return}a===void 0&&(a=document.head);const u=Fo(t,a);if(u!==null&&!s)return u;const h=u??Fb(t);if(c===void 0&&(c=e.render(i)),h.textContent=c,u!==null)return u;if(o){const f=a.querySelector(`meta[name="${o}"]`);if(f)return a.insertBefore(h,f),mh(e.els,h),h}return r?a.insertBefore(h,a.querySelector("style, link")):a.appendChild(h),mh(e.els,h),h}function n1(n){return Kb(this,this.instance,n)}function i1(n={}){const{id:e,ssr:t,props:i,head:r=!1,force:s=!1,anchorMetaName:o,parent:a}=n;return t1(this.instance,this,e,i,r,s,o,a,t)}function r1(n={}){const{id:e,parent:t}=n;e1(this.instance,this,e,t)}const ls=function(n,e,t,i){return{instance:n,$:e,props:t,children:i,els:[],render:n1,mount:i1,unmount:r1}},s1=function(n,e,t,i){return Array.isArray(e)?ls(n,{$:null},null,e):Array.isArray(t)?ls(n,e,null,t):Array.isArray(i)?ls(n,e,t,i):ls(n,e,t,null)};function o1(n={}){const e={c:((...t)=>s1(e,...t)),use:(t,...i)=>t.install(e,...i),find:Fo,context:{},config:n};return e}function N_(n,e){if(n===void 0)return!1;if(e){const{context:{ids:t}}=e;return t.has(n)}return Fo(n)!==null}let ro=[];const vp=new WeakMap;function a1(){ro.forEach(n=>n(...vp.get(n))),ro=[]}function Sp(n,...e){vp.set(n,e),!ro.includes(n)&&ro.push(n)===1&&requestAnimationFrame(a1)}function l1(n){return n.nodeType===9?null:n.parentNode}function c1(n){if(n===null)return null;const e=l1(n);if(e===null)return null;if(e.nodeType===9)return document.documentElement;if(e.nodeType===1){const{overflow:t,overflowX:i,overflowY:r}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t+r+i))return e}return c1(e)}function F_(n){return typeof n=="string"?document.querySelector(n):typeof n=="function"?n():n}function G_(n,e){let{target:t}=n;for(;t;){if(t.dataset&&t.dataset[e]!==void 0)return!0;t=t.parentElement}return!1}function u1(n){return n.composedPath()[0]||null}function h1(n){if(typeof n=="number")return{"":n.toString()};const e={};return n.split(/ +/).forEach(t=>{if(t==="")return;const[i,r]=t.split(":");r===void 0?e[""]=i:e[i]=r}),e}function U_(n,e){var t;if(n==null)return;const i=h1(n);if(e===void 0)return i[""];if(typeof e=="string")return(t=i[e])!==null&&t!==void 0?t:i[""];if(Array.isArray(e)){for(let r=e.length-1;r>=0;--r){const s=e[r];if(s in i)return i[s]}return i[""]}else{let r,s=-1;return Object.keys(i).forEach(o=>{const a=Number(o);!Number.isNaN(a)&&e>=a&&a>=s&&(s=a,r=i[o])}),r}}function gh(n){return typeof n=="string"?n.endsWith("px")?Number(n.slice(0,n.length-2)):Number(n):n}function Ui(n){if(n!=null)return typeof n=="number"?`${n}px`:n.endsWith("px")?n:`${n}px`}function H_(n,e){const t=n.trim().split(/\s+/g),i={top:t[0]};switch(t.length){case 1:i.right=t[0],i.bottom=t[0],i.left=t[0];break;case 2:i.right=t[1],i.left=t[1],i.bottom=t[0];break;case 3:i.right=t[1],i.bottom=t[2],i.left=t[1];break;case 4:i.right=t[1],i.bottom=t[2],i.left=t[3];break;default:throw new Error("[seemly/getMargin]:"+n+" is not a valid value.")}return e===void 0?i:i[e]}function K_(n,e){const[t,i]=n.split(" ");return{row:t,col:i||t}}const yh={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:" Line truncated
${e}
</style>`}function I1(n,e,t){const{styles:i,ids:r}=t;r.has(n)||i!==null&&(r.add(n),i.push(j1(n,e)))}const L1=typeof document<"u";function Uo(){if(L1)return;const n=Fr(W1,null);if(n!==null)return{adapter:(e,t)=>I1(e,t,n),context:n}}function Qh(n,e){console.error(`[vueuc/${n}]: ${e}`)}const{c:Xt}=o1(),Ho="vueuc-style";function $h(n){return n&-n}class Ap{constructor(e,t){this.l=e,this.min=t;const i=new Array(e+1);for(let r=0;r<e+1;++r)i[r]=0;this.ft=i}add(e,t){if(t===0)return;const{l:i,ft:r}=this;for(e+=1;e<=i;)r[e]+=t,e+=$h(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;const{ft:t,min:i,l:r}=this;if(e>r)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let s=e*i;for(;e>0;)s+=t[e],e-=$h(e);return s}getBound(e){let t=0,i=this.l;for(;i>t;){const r=Math.floor((t+i)/2),s=this.sum(r);if(s>e){i=r;continue}else if(s<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}}function kh(n){return typeof n=="string"?document.querySelector(n):n()||null}const q1=qt({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(n){return{showTeleport:P1(Bn(n,"show")),mergedTo:it(()=>{const{to:e}=n;return e??"body"})}},render(){return this.showTeleport?this.disabled?Al("lazy-teleport",this.$slots):Me(Yb,{disabled:this.disabled,to:this.mergedTo},Al("lazy-teleport",this.$slots)):null}}),hs={top:"bottom",bottom:"top",left:"right",right:"left"},Ph={start:"end",center:"center",end:"start"},$a={top:"height",bottom:"height",left:"width",right:"width"},B1={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},V1={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},N1={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Th={top:!0,bottom:!1,left:!0,right:!1},Ch={top:"end",bottom:"start",left:"end",right:"start"};function F1(n,e,t,i,r,s){if(!r||s)return{placement:n,top:0,left:0};const[o,a]=n.split("-");let l=a??"center",c={top:0,left:0};const u=(d,O,p)=>{let m=0,g=0;const b=t[d]-e[O]-e[d];return b>0&&i&&(p?g=Th[O]?b:-b:m=Th[O]?b:-b),{left:m,top:g}},h=o==="left"||o==="right";if(l!=="center"){const d=N1[n],O=hs[d],p=$a[d];if(t[p]>e[p]){if(e[d]+e[p]<t[p]){const m=(t[p]-e[p])/2;e[d]<m||e[O]<m?e[d]<e[O]?(l=Ph[a],c=u(p,O,h)):c=u(p,d,h):l="center"}}else t[p]<e[p]&&e[O]<0&&e[d]>e[O]&&(l=Ph[a])}else{const d=o==="bottom"||o==="top"?"left":"top",O=hs[d],p=$a[d],m=(t[p]-e[p])/2;(e[d]<m||e[O]<m)&&(e[d]>e[O]?(l=Ch[d],c=u(p,d,h)):(l=Ch[O],c=u(p,O,h)))}let f=o;return e[o]<t[$a[o]]&&e[o]<e[hs[o]]&&(f=hs[o]),{placement:l!=="center"?`${f}-${l}`:f,left:c.left,top:c.top}}function G1(n,e){return e?V1[n]:B1[n]}function U1(n,e,t,i,r,s){if(s)switch(n){case"bottom-start":return{top:`${Math.round(t.top-e.top+t.height)}px`,left:`${Math.round(t.left-e.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(t.top-e.top+t.height)}px`,left:`${Math.round(t.left-e.left+t.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(t.top-e.top)}px`,left:`${Math.round(t.left-e.left)}px`,transform:""};case"top-end":return{top:`${Math.round(t.top-e.top)}px`,left:`${Math.round(t.left-e.left+t.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(t.top-e.top)}px`,left:`${Math.round(t.left-e.left+t.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(t.top-e.top+t.height)}px`,left:`${Math.round(t.left-e.left+t.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(t.top-e.top)}px`,left:`${Math.round(t.left-e.left)}px`,transform:""};case"left-end":return{top:`${Math.round(t.top-e.top+t.height)}px`,left:`${Math.round(t.left-e.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(t.top-e.top)}px`,left:`${Math.round(t.left-e.left+t.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(t.top-e.top+t.height/2)}px`,left:`${Math.round(t.left-e.left+t.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(t.top-e.top+t.height/2)}px`,left:`${Math.round(t.left-e.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(t.top-e.top+t.height)}px`,left:`${Math.round(t.left-e.left+t.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(n){case"bottom-start":return{top:`${Math.round(t.top-e.top+t.hLine truncated
(?:
(?:`+i+":){7}(?:"+i+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+i+":){6}(?:"+t+"|:"+i+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+i+":){5}(?::"+t+"|(?::"+i+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+i+":){4}(?:(?::"+i+"){0,1}:"+t+"|(?::"+i+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+i+":){3}(?:(?::"+i+"){0,2}:"+t+"|(?::"+i+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+i+":){2}(?:(?::"+i+"){0,3}:"+t+"|(?::"+i+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+i+":){1}(?:(?::"+i+"){0,4}:"+t+"|(?::"+i+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+i+"){0,5}:"+t+"|(?::"+i+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+t+"$)|(?:^"+r+"$)"),o=new RegExp("^"+t+"$"),a=new RegExp("^"+r+"$"),l=function(v){return v&&v.exact?s:new RegExp("(?:"+e(v)+t+e(v)+")|(?:"+e(v)+r+e(v)+")","g")};l.v4=function(x){return x&&x.exact?o:new RegExp(""+e(x)+t+e(x),"g")},l.v6=function(x){return x&&x.exact?a:new RegExp(""+e(x)+r+e(x),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",h=l.v4().source,f=l.v6().source,d="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",O="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+u+"(?:localhost|"+h+"|"+f+"|"+d+O+p+")"+m+g;return ys=new RegExp("(?:^"+b+"$)","i"),ys}),Vf={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},hr={integer:function(e){return hr.number(e)&&parseInt(e,10)===e},float:function(e){return hr.number(e)&&!hr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!hr.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Vf.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(TC())},hex:function(e){return typeof e=="string"&&!!e.match(Vf.hex)}},CC=function(e,t,i,r,s){if(e.required&&t===void 0){Jm(e,t,i,r,s);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?hr[a](t)||r.push(st(s.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(st(s.messages.types[a],e.fullField,e.type))},MC=function(e,t,i,r,s){var o=typeof e.len=="number",a=typeof e.min=="number",l=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,h=null,f=typeof t=="number",d=typeof t=="string",O=Array.isArray(t);if(f?h="number":d?h="string":O&&(h="array"),!h)return!1;O&&(u=t.length),d&&(u=t.replace(c,"_").length),o?u!==e.len&&r.push(st(s.messages[h].len,e.fullField,e.len)):a&&!l&&u<e.min?r.push(st(s.messages[h].min,e.fullField,e.min)):l&&!a&&u>e.max?r.push(st(s.messages[h].max,e.fullField,e.max)):a&&l&&(u<e.min||u>e.max)&&r.push(st(s.messages[h].range,e.fullField,e.min,e.max))},ui="enum",AC=function(e,t,i,r,s){e[ui]=Array.isArray(e[ui])?e[ui]:[],e[ui].indexOf(t)===-1&&r.push(st(s.messages[ui],e.fullField,e[ui].join(", ")))},ZC=function(e,t,i,r,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(st(s.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(t)||r.push(st(s.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},F={required:Jm,whitespace:PC,type:CC,range:MC,enum:AC,pattern:ZC},RC=function(e,t,i,r,s){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if($e(t,"string")&&!e.required)return i();F.required(e,t,r,o,s,"string"),$e(t,"string")||(F.type(e,t,r,o,s),F.range(e,t,r,o,s),F.pattern(e,t,r,o,s),e.whitespace===!0&&F.whitespace(e,t,r,o,s))}i(o)},XC=function(e,t,i,r,s){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if($e(t)&&!e.required)return i();F.required(e,t,r,o,s),t!==void 0&&F.type(e,t,r,o,s)}i(o)},EC=function(e,t,i,r,s){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(t===""&&(t=void 0),$e(t)&&!e.required)return i();F.required(e,t,r,o,s),t!==void 0&&(F.type(e,t,r,o,s),F.range(e,t,r,o,s))}i(o)},DC=function(e,t,i,r,s){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if($e(t)&&!e.required)return i();F.required(e,t,r,o,s),t!==void 0&&F.type(e,t,r,o,s)}i(o)},_C=function(e,t,i,r,s){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if($e(t)&&!e.required)return i();F.required(e,t,r,o,s),$e(t)||F.type(e,t,r,o,s)}i(o)},zC=function(e,t,i,r,s){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if($e(t)&&!e.required)return i();F.required(e,t,r,o,s),t!==void 0&&(F.type(e,t,r,o,s),F.range(e,t,r,o,s))}i(o)},YC=function(e,t,i,r,s){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if($e(t)&&!e.required)return i();F.required(e,t,r,o,s),t!==void 0&&(F.type(e,t,r,o,s),F.range(e,t,r,o,s))}i(o)},WC=function(e,t,i,r,s){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(t==null&&!e.required)return i();F.required(e,t,r,o,s,"array"),t!=null&&(F.type(e,t,r,o,s),F.range(e,t,r,o,s))}i(o)},jC=function(e,t,i,r,s){var o=[],a=e.required||!e. Line truncated
`){[e,t]=Xi(this,e,t);let r="";for(let s=0,o=0;s<=t&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>e&&o&&(r+=i),e<l&&t>s&&(r+=a.slice(Math.max(0,e-s),t-s)),s=l+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 ge(i,r)),i=[],r=-1);return r>-1&&t.push(new ge(i,r)),t}}class At extends U{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],a=r+o.length,l=i+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,i,r);r=a+1,i=l+1}}decompose(e,t,i,r){for(let s=0,o=0;o<=t&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(e<=l&&t>=o){let c=r&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!c?i.push(a):a.decompose(e-o,t-o,i,c)}o=l+1}}replace(e,t,i){if([e,t]=Xi(this,e,t),i.lines<this.lines)for(let r=0,s=0;r<this.children.length;r++){let o=this.children[r],a=s+o.length;if(e>=s&&t<=a){let l=o.replace(e-s,t-s,i),c=this.lines-o.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let u=this.children.slice();return u[r]=l,new At(u,this.length-(t-e)+i.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
`){[e,t]=Xi(this,e,t);let r="";for(let s=0,o=0;s<this.children.length&&o<=t;s++){let a=this.children[s],l=o+a.length;o>e&&s&&(r+=i),e<l&&t>o&&(r+=a.sliceString(e-o,t-o,i)),o=l+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof At))return 0;let i=0,[r,s,o,a]=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==a)return i;let l=this.children[r],c=e.children[s];if(l!=c)return i+l.scanIdentical(c,t);i+=l.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 ge(d,t)}let r=Math.max(32,i>>5),s=r<<1,o=r>>1,a=[],l=0,c=-1,u=[];function h(d){let O;if(d.lines>s&&d instanceof At)for(let p of d.children)h(p);else d.lines>o&&(l>o||!l)?(f(),a.push(d)):d instanceof ge&&l&&(O=u[u.length-1])instanceof ge&&d.lines+O.lines<=32?(l+=d.lines,c+=d.length+1,u[u.length-1]=new ge(O.text.concat(d.text),O.length+1+d.length)):(l+d.lines>r&&f(),l+=d.lines,c+=d.length+1,u.push(d))}function f(){l!=0&&(a.push(u.length==1?u[0]:At.from(u,c)),c=-1,l=u.length=0)}for(let d of e)h(d);return f(),a.length==1?a[0]:new At(a,t)}}U.empty=new ge([""],0);function HC(n){let e=-1;for(let t of n)e+=t.length+1;return e}function Bs(n,e,t=0,i=1e9){for(let r=0,s=0,o=!0;s<n.length&&r<=i;s++){let a=n[s],l=r+a.length;l>=t&&(l>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),o?(e[e.length-1]+=a,o=!1):e.push(a)),r=l+1}return e}function Uf(n,e,t){return Bs(n,[""],e,t)}class xr{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ge?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,a=r instanceof ge?r.text.length:r.children.length;if(o==(t>0?a: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 ge){let l=r.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,l.length>Math.max(0,e))return this.value=e==0?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=r.children[o+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof ge?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class rg{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new xr(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 sg{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"&&(U.prototype[Symbol.iterator]=function(){return this.iter()},xr.prototype[Symbol.iterator]=rg.prototype[Symbol.iterator]=sg.prototype[Symbol.iterator]=function(){return this});class KC{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 Xi(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function Te(n,e,t=!0,i=!0){return GC(n,e,t,i)}function JC(n){return n>=56320&&n<57344}function e2(n){return n>=55296&&n<56320}function Ne(n,e){let t=n.charCodeAt(e);if(!e2(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return JC(i)?(t-55296<<10)+(i-56320)+65536:t}function bu(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Zt(n){return n<65536?1:2}const Kl=/\r\n?|\n/;var Ze=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(Ze||(Ze={}));class Wt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let s=this.sections[t++],o=this.sections[t++];o<0?(e(i,r,s),r+=s):r+=o,i+=s}}iterChangedRanges(e,t=!1){Jl(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new Wt(e)}composeDesc(e){return this.empty?e:e.empty?this:og(this,e)}mapDesc(e,t=!1){return e.empty?this:ec(this,e,t)}mapPos(e,t=-1,i=Ze.Simple){let r=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],c=r+a;if(l<0){if(c>e)return s+(e-r);s+=a}else{if(i!=Ze.Simple&&c>=e&&(i==Ze.TrackDel&&r<e&&c>e||i==Ze.TrackBefore&&r<e||i==Ze.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!a)return e==r||t<0?s:s+l;s+=l}r=c}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let s=this.sections[i++],o=this.sections[i++],a=r+s;if(o>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=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 Wt(e)}static create(e){return new Wt(e)}}class Se extends Wt{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 Jl(this,(t,i,r,s,o)=>e=e.replace(r,r+(i-t),o),!1),e}mapDesc(e,t=!1){return ec(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,s=0;r<t.length;r+=2){let o=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=o;let l=r>>1;for(;i.length<l;)i.push(U.empty);i.push(o?e.slice(s,s+o):U.empty)}s+=o}return new Se(t,i)}compose(e){return this.empty?e:e.empty?this:og(this,e,!0)}map(e,t=!1){return e.empty?this:ec(this,e,t,!0)}iterChanges(e,t=!1){Jl(this,e,t)}get desc(){return Wt.cr Line truncated
`}get readOnly(){return this.facet(Og)}phrase(e,...t){for(let i of this.facet(K.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>t.length?i:t[s-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let s of this.facet(cg))for(let o of s(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return h2(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-i,a=e-i;for(;o>0;){let l=Te(t,o,!1);if(s(t.slice(l,o))!=ue.Word)break;o=l}for(;a<r;){let l=Te(t,a);if(s(t.slice(a,l))!=ue.Word)break;a=l}return o==a?null:k.range(o+i,a+i)}}K.allowMultipleSelections=ic;K.tabSize=X.define({combine:n=>n.length?n[0]:4});K.lineSeparator=ug;K.readOnly=Og;K.phrases=X.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(r=>n[r]==e[r])}});K.languageData=cg;K.changeFilter=hg;K.transactionFilter=fg;K.transactionExtender=dg;ia.reconfigure=I.define();function Nt(n,e,t={}){let i={};for(let r of n)for(let s of Object.keys(r)){let o=r[s],a=i[s];if(a===void 0)i[s]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,s))i[s]=t[s](a,o);else throw new Error("Config merge conflict for field "+s)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Sn{eq(e){return this==e}range(e,t=e){return oc.create(e,t,this)}}Sn.prototype.startSide=Sn.prototype.endSide=0;Sn.prototype.point=!1;Sn.prototype.mapMode=Ze.TrackDel;function vu(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let oc=class gg{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new gg(e,t,i)}};function ac(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class Su{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let s=i?this.to:this.from;for(let o=r,a=s.length;;){if(o==a)return o;let l=o+a>>1,c=s[l]-e||(i?this.value[l].endSide:this.value[l].startSide)-t;if(l==o)return c>=0?o:a;c>=0?a=l:o=l+1}}between(e,t,i,r){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,s);s<o;s++)if(r(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let i=[],r=[],s=[],o=-1,a=-1;for(let l=0;l<this.value.length;l++){let c=this.value[l],u=this.from[l]+e,h=this.to[l]+e,f,d;if(u==h){let O=t.mapPos(u,c.startSide,c.mapMode);if(O==null||(f=d=O,c.startSide!=c.endSide&&(d=t.mapPos(u,c.endSide),d<f)))continue}else if(f=t.mapPos(u,c.startSide),d=t.mapPos(h,c.endSide),f>d||f==d&&c.startSide>0&&c.endSide<=0)continue;(d-f||c.endSide-c.startSide)<0||(o<0&&(o=f),c.point&&(a=Math.max(a,d-f)),i.push(c),r.push(f-o),s.push(d-o))}return{mapped:i.length?new Su(r,s,i,a):null,pos:o}}}class N{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new N(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:s=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(ac)),this.isEmpty)return t.length?N.of(t):this;let a=new yg(this,null,-1).goto(0),l=0,c=[],u=new rn;for(;a.value||l<t.length;)if(l<t.length&&(a.from-t[l].from||a.startSide-t[l].value.startSide)>=0){let h=t[l++];u.addInner(h.from,h.to,h.value)||c.push(h)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==t.length||this.chunkEnd(a.chunkIndex)<t[l].from)&&(!o||r>this.chunkEnd(a.chunkIndex)||s<this.chunkPos[a.chunkIndex])&&u.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||r>a.to||s<a.from||o(a.from,a.to,a.value))&&(u.addInner(a.from,a.to,a.value)||c.push(oc.create(a.from,a.to,a.value))),a.next());return u.finishInner(this.nextLayer.isEmpty&&!c.length?N.empty:this.nextLayer.update({add:c,filter:o,filterFrom:r,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],l=this.chunk[o],c=e.touchesRange(a,a+l.length);if(c===!1)r=Math.max(r,l.maxPoint),t.push(l),i.push(e.mapPos(a));else if(c===!0){let{mapped:u,pos:h}=l.map(a,e);u&&(r=Math.max(r,u.maxPoint),t.push(u),i.push(h))}}let s=this.nextLayer.map(e);return t.length==0?s:new N(i,t,s||N.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r];if(t>=s&&e<=s+o.length&&o.between(s,e-s,t-s,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return Zr.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Zr.from(e).goto(t)}static compare(e,t,i,r,s=-1){let o=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),a=t Line truncated
`)}static newName(){let e=nd[td]||1;return nd[td]=e+1,uc+e.toString(36)}static mount(e,t,i){let r=e[hc],s=i&&i.nonce;r?s&&r.setNonce(s):r=new d2(e,s),r.mount(Array.isArray(t)?t:[t],e)}}let id=new Map;class d2{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=id.get(i);if(s)return e[hc]=s;this.sheet=new r.CSSStyleSheet,id.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[hc]=this}mount(e,t){let i=this.sheet,r=0,s=0;for(let o=0;o<e.length;o++){let a=e[o],l=this.modules.indexOf(a);if(l<s&&l>-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,a),i)for(let c=0;c<a.rules.length;c++)i.insertRule(a.rules[c],r++)}else{for(;s<l;)r+=this.modules[s++].rules.length;r+=a.rules.length,s++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let l=0;l<this.modules.length;l++)o+=this.modules[l].getRules()+`
`;this.styleTag.textContent=o;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var $n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Rr={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},O2=typeof navigator<"u"&&/Mac/.test(navigator.platform),p2=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ae=0;Ae<10;Ae++)$n[48+Ae]=$n[96+Ae]=String(Ae);for(var Ae=1;Ae<=24;Ae++)$n[Ae+111]="F"+Ae;for(var Ae=65;Ae<=90;Ae++)$n[Ae]=String.fromCharCode(Ae+32),Rr[Ae]=String.fromCharCode(Ae);for(var Va in $n)Rr.hasOwnProperty(Va)||(Rr[Va]=$n[Va]);function m2(n){var e=O2&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||p2&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Rr:$n)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function ne(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];typeof r=="string"?n.setAttribute(i,r):r!=null&&(n[i]=r)}e++}for(;e<arguments.length;e++)bg(n,arguments[e]);return n}function bg(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)bg(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let je=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},fc=typeof document<"u"?document:{documentElement:{style:{}}};const dc=/Edge\/(\d+)/.exec(je.userAgent),xg=/MSIE \d/.test(je.userAgent),Oc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(je.userAgent),ra=!!(xg||Oc||dc),rd=!ra&&/gecko\/(\d+)/i.test(je.userAgent),Na=!ra&&/Chrome\/(\d+)/.exec(je.userAgent),sd="webkitFontSmoothing"in fc.documentElement.style,pc=!ra&&/Apple Computer/.test(je.vendor),od=pc&&(/Mobile\/\w+/.test(je.userAgent)||je.maxTouchPoints>2);var D={mac:od||/Mac/.test(je.platform),windows:/Win/.test(je.platform),linux:/Linux|X11/.test(je.platform),ie:ra,ie_version:xg?fc.documentMode||6:Oc?+Oc[1]:dc?+dc[1]:0,gecko:rd,gecko_version:rd?+(/Firefox\/(\d+)/.exec(je.userAgent)||[0,0])[1]:0,chrome:!!Na,chrome_version:Na?+Na[1]:0,ios:od,android:/Android\b/.test(je.userAgent),webkit:sd,webkit_version:sd?+(/\bAppleWebKit\/(\d+)/.exec(je.userAgent)||[0,0])[1]:0,safari:pc,safari_version:pc?+(/\bVersion\/(\d+(\.\d+)?)/.exec(je.userAgent)||[0,0])[1]:0,tabSize:fc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Qu(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const yo=Object.create(null);function $u(n,e,t){if(n==e)return!0;n||(n=yo),e||(e=yo);let i=Object.keys(n),r=Object.keys(e);if(i.length-0!=r.length-0)return!1;for(let s of i)if(s!=t&&(r.indexOf(s)==-1||n[s]!==e[s]))return!1;return!0}function g2(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function ad(n,e,t){let i=!1;if(e)for(let r in e)t&&r in t||(i=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(i=!0,r=="style"?n.style.cssText=t[r]:n.setAttribute(r,t[r]));return i}function y2(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class Ft{eq(e){return!1}updateDOM(e,t,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Xe=(function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n})(Xe||(Xe={}));class j extends Sn{constructor(e,t,i,r){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return Line truncated
`,r=n.state.doc.line(r.number+(t?1:-1)),s=n.bidiSpans(r),c=n.visualLineSide(r,!t)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function sM(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return s=>{let o=i(s);return r==ue.Space&&(r=o),r==o}}function oM(n,e,t,i){let r=e.head,s=t?1:-1;if(r==(t?n.state.doc.length:0))return k.cursor(r,e.assoc);let o=e.goalColumn,a,l=n.contentDOM.getBoundingClientRect(),c=n.coordsAtPos(r,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),u=n.documentTop;if(c)o==null&&(o=c.left-l.left),a=s<0?c.top:c.bottom;else{let O=n.viewState.lineBlockAt(r);o==null&&(o=Math.min(l.right-l.left,n.defaultCharacterWidth*(r-O.from))),a=(s<0?O.top:O.bottom)+u}let h=l.left+o,f=n.viewState.heightOracle.textHeight>>1,d=i??f;for(let O=0;;O+=f){let p=a+(d+O)*s,m=Sc(n,{x:h,y:p},!1,s);if(t?p>l.bottom:p<l.top)return k.cursor(m.pos,m.assoc);let g=n.coordsAtPos(m.pos,m.assoc),b=g?(g.top+g.bottom)/2:0;if(!g||(t?b>a:b<a))return k.cursor(m.pos,m.assoc,void 0,o)}}function Qr(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(s,o,a)=>{if(e>s&&e<o){let l=i||t||(e-s<o-e?-1:1);e=l<0?s:o,i=l}});if(!i)return e}}function Gg(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],s=null;if(r.empty){let o=Qr(n,r.from,0);o!=r.from&&(s=k.cursor(o,-1))}else{let o=Qr(n,r.from,-1),a=Qr(n,r.to,1);(o!=r.from||a!=r.to)&&(s=k.range(r.from==r.anchor?o:a,r.from==r.head?o:a))}s&&(t||(t=e.ranges.slice()),t[i]=s)}return t?k.create(t,e.mainIndex):e}function Ka(n,e,t){let i=Qr(n.state.facet(es).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:k.cursor(i,i<t.from?1:-1)}class Rt{constructor(e,t){this.pos=e,this.assoc=t}}function Sc(n,e,t,i){let r=n.contentDOM.getBoundingClientRect(),s=r.top+n.viewState.paddingTop,{x:o,y:a}=e,l=a-s,c;for(;;){if(l<0)return new Rt(0,1);if(l>n.viewState.docHeight)return new Rt(n.state.doc.length,-1);if(c=n.elementAtHeight(l),i==null)break;if(c.type==Xe.Text){if(i<0?c.to<n.viewport.from:c.from>n.viewport.to)break;let f=n.docView.coordsAt(i<0?c.from:c.to,i>0?-1:1);if(f&&(i<0?f.top<=l+s:f.bottom>=l+s))break}let h=n.viewState.heightOracle.textHeight/2;l=i>0?c.bottom+h:c.top-h}if(n.viewport.from>=c.to||n.viewport.to<=c.from){if(t)return null;if(c.type==Xe.Text){let h=iM(n,r,c,o,a);return new Rt(h,h==c.from?1:-1)}}if(c.type!=Xe.Text)return l<(c.top+c.bottom)/2?new Rt(c.from,1):new Rt(c.to,-1);let u=n.docView.lineAt(c.from,2);return(!u||u.length!=c.length)&&(u=n.docView.lineAt(c.from,-2)),new aM(n,o,a,n.textDirectionAt(c.from)).scanTile(u,c.from)}class aM{constructor(e,t,i,r){this.view=e,this.x=t,this.y=i,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[Et.find(r,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[Et.find(r,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:r}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+r.from<t)}scan(e,t,i=!1){let r=0,s=e.length-1,o=new Set,a=this.bidiIn(e[0],e[s]),l,c,u=-1,h=1e9,f;e:for(;r<s;){let O=s-r,p=r+s>>1;t:if(o.has(p)){let g=r+Math.floor(Math.random()*O);for(let b=0;b<O;b++){if(!o.has(g)){p=g;break t}g++,g==s&&(g=r)}break e}o.add(p);let m=t(p);if(m)for(let g=0;g<m.length;g++){let b=m[g],x=0;if(!(b.width==0&&m.length>1)){if(b.bottom<this.y)(!l||l.bottom<b.bottom)&&(l=b),x=1;else if(b.top>this.y)(!c||c.top>b.top)&&(c=b),x=-1;else{let v=b.left>this.x?this.x-b.left:b.right<this.x?this.x-b.right:0,S=Math.abs(v);S<h&&(u=p,h=S,f=b),v&&(x=v<0==(this.baseDir==re.LTR)?-1:1)}x==-1&&(!a||this.baseDirAt(e[p],1))?s=p:x==1&&(!a||this.baseDirAt(e[p+1],-1))&&(r=p+1)}}}if(!f){if(!c&&!l)return{i:e[0],after:!1};let O=l&&(!c||this.y-l.bottom<c.top-this.y)?l:c;return this.y=(O.top+O.bottom)/2,this.scan(e,t,!0)}if(h&&!i){let{top:O,bottom:p}=f;if(l&&l.bottom>(O+O+p)/3)return this.y=l.bottom-1,this.scan(e,t,!0);if(c&&c.top<(O+p+p)/3)return this.y=c.top+1,this.scan(e,t,!0)}let d=(a?this.dirAt(e[u],1):this.baseDir)==re.LTR;return{i:u,after:this.x>(f.left+f.right)/2==d}}scanText(e,t){let i=[];for(let s=0;s<e.length;s=Te(e.text,s))i.push(t+s);i.push(t+e.length);let r=this.scan(i,s=>{let o=i[s]-t,a=i[s+1]-t;return Dr(e.dom,o,a).getClientRects()});return r.after?new Rt(i[r.i+1],-1):new Rt(i[r.i],1)}scanTile(e,t){if(!e.length)return new Rt(t,1);if(e.children.length==1){let a=e.children[0];if(a.isText())return this.scanText(a,t);if(a.isComposite())return this.scanTile(a,t)}let i=[t];for(let a=0,l=t;a<e.children.length;a++)i.push(l+=e.children[a].length);let r=this.scan(i,a=>{let l=e.children[a];return l.flags&48?null:(l.dom.nodeType==1?l.dom:Dr(l.dom,0,l.length)).getClientRects()}),s=e.children[r.i],o=i[r.i];return s.isText()?this.scanText(s,o):s.isComposite()?this.scanTile(s,o):r.after?new Rt(i[r.i+1],-1):new Rt(o,1)}}const di="￿";class lM{constructor(e,t){this.points=e,this. Line truncated
`&&n.lineWrapping&&(i&&(i=k.single(i.main.anchor-1,i.main.head-1)),t={from:s.from,to:s.to,insert:U.of([" "])}),t)return Zu(n,t,i,o);if(i&&!Qo(i,s)){let a=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(a=!0),l=n.inputState.lastSelectionOrigin,l=="select.pointer"&&(i=Gg(r.facet(es).map(c=>c(n)),i))),n.dispatch({selection:i,scrollIntoView:a,userEvent:l}),!0}else return!1}function Zu(n,e,t,i=-1){if(D.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(D.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&n.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Qi(n.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&Qi(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&Qi(n.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,a=()=>o||(o=fM(n,e,t));return n.state.facet(_g).some(l=>l(n,e.from,e.to,s,a))||n.dispatch(a()),!0}function fM(n,e,t){let i,r=n.state,s=r.selection.main,o=-1;if(e.from==e.to&&e.from<s.from||e.from>s.to){let l=e.from<s.from?-1:1,c=l<0?s.from:s.to,u=Qr(r.facet(es).map(h=>h(n)),c,l);e.from==u&&(o=u)}if(o>-1)i={changes:e,selection:k.cursor(e.from+e.insert.length,-1)};else if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let l=s.from<e.from?r.sliceDoc(s.from,e.from):"",c=s.to>e.to?r.sliceDoc(e.to,s.to):"";i=r.replaceSelection(n.state.toText(l+e.insert.sliceString(0,void 0,n.state.lineBreak)+c))}else{let l=r.changes(e),c=t&&t.main.to<=l.newLength?t.main:void 0;if(r.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=s.to+10&&e.to>=s.to-10){let u=n.state.sliceDoc(e.from,e.to),h,f=t&&Fg(n,t.main.head);if(f){let O=e.insert.length-(e.to-e.from);h={from:f.from,to:f.to-O}}else h=n.state.doc.lineAt(s.head);let d=s.to-e.to;i=r.changeByRange(O=>{if(O.from==s.from&&O.to==s.to)return{changes:l,range:c||O.map(l)};let p=O.to-d,m=p-u.length;if(n.state.sliceDoc(m,p)!=u||p>=h.from&&m<=h.to)return{range:O};let g=r.changes({from:m,to:p,insert:e.insert}),b=O.to-s.to;return{changes:g,range:c?k.range(Math.max(0,c.anchor+b),Math.max(0,c.head+b)):O.map(g)}})}else i={changes:l,selection:c&&r.selection.replaceRange(c)}}let a="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,a+=".compose",n.inputState.compositionFirstChange&&(a+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function Kg(n,e,t,i){let r=Math.min(n.length,e.length),s=0;for(;s<r&&n.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&n.length==e.length)return null;let o=n.length,a=e.length;for(;o>0&&a>0&&n.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(i=="end"){let l=Math.max(0,s-Math.min(o,a));t-=o+l-s}if(o<s&&n.length<e.length){let l=t<=s&&t>=o?s-t:0;s-=l,a=s+(a-o),o=s}else if(a<s){let l=t<=s&&t>=a?s-t:0;s-=l,o=s+(o-a),a=s}return{from:s,toA:o,toB:a}}function dM(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:s}=n.observer.selectionRange;return t&&(e.push(new pd(t,i)),(r!=t||s!=i)&&e.push(new pd(r,s))),e}function OM(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?k.single(t+e,i+e):null}function Qo(n,e){return e.head==n.main.head&&e.anchor==n.main.anchor}class pM{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,D.safari&&e.contentDOM.addEventListener("input",()=>null),D.gecko&&MM(e.contentDOM.ownerDocument)}handleEvent(e){!SM(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=mM(e),i=this.handlers,r=this.view.contentDOM; Line truncated
`))};if((D.mac||D.android)&&h.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(h={from:a,to:l,insert:U.of([i.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let f=this.to-this.from+(h.to-h.from+h.insert.length);Zu(e,h,k.single(this.toEditorPos(i.selectionStart,f),this.toEditorPos(i.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),h.from<h.to&&!h.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],s=null;for(let o=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);o<a;o++){let l=e.coordsForChar(o);s=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||s||new DOMRect,r.push(s)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let s of i.getTextFormats()){let o=s.underlineStyle,a=s.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(a)){let l=this.toEditorPos(s.rangeStart),c=this.toEditorPos(s.rangeEnd);if(l<c){let u=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(j.mark({attributes:{style:u}}).range(l,c))}}}e.dispatch({effects:Ig.of(j.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=Er(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((s,o,a,l,c)=>{if(i)return;let u=c.length-(o-s);if(r&&o>=r.to)if(r.from==s&&r.to==o&&r.insert.eq(c)){r=this.pendingContextChange=null,t+=u,this.to+=u;return}else r=null,this.revertPending(e.state);if(s+=t,o+=t,o<=this.from)this.from+=u,this.to+=u;else if(s<this.to){if(s<this.from||o>this.to||this.to-this.from+c.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(o),c.toString()),this.to+=u}t+=u}),r&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class E{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureReque Line truncated
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Cc),OA={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let tl=null;function pA(){var n;if(tl==null&&typeof document<"u"&&document.body){let e=document.body.style;tl=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return tl||!1}const Us=X.define({combine(n){let e=Nt(n,{render:null,specialChars:dA,addSpecialChars:null});return(e.replaceTabs=!pA())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Cc)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Cc)),e}});function mA(n={}){return[Us.of(n),gA()]}let _d=null;function gA(){return _d||(_d=xe.fromClass(class{constructor(n){this.view=n,this.decorations=j.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Us)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new fA({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,s=Ne(e[0],0);if(s==9){let o=r.lineAt(i),a=t.state.tabSize,l=Vi(o.text,a,i-o.from);return j.replace({widget:new wA((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=j.replace({widget:new xA(n,s)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(Us);n.startState.facet(Us)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const yA="•";function bA(n){return n>=32?yA:n==10?"␤":String.fromCharCode(9216+n)}class xA extends Ft{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=bA(this.code),i=e.state.phrase("Control character")+" "+(OA[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let s=document.createElement("span");return s.textContent=t,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class wA extends Ft{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function vA(){return QA}const SA=j.line({class:"cm-activeLine"}),QA=xe.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let r=n.lineBlockAt(i.head);r.from>e&&(t.push(SA.range(r.from)),e=r.from)}return j.set(t)}},{decorations:n=>n.decorations}),Mc=2e3;function $A(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),s=[];if(e.off>Mc||t.off>Mc||e.col<0||t.col<0){let o=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let l=i;l<=r;l++){let c=n.doc.line(l);c.length<=a&&s.push(k.range(c.from+o,c.to+a))}}else{let o=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let l=i;l<=r;l++){let c=n.doc.line(l),u=cc(c.text,o,n.tabSize,!0);if(u<0)s.push(k.cursor(c.to));else{let h=cc(c.text,a,n.tabSize);s.push(k.range(c.from+u,c.from+h))}}}return s}function kA(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function zd(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,s=r>Mc?-1:r==i.length?kA(n,e.clientX):Vi(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:s,off:r}}function PA(n,e){let t=zd(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let s=r.changes.mapPos(r.startState.doc.line(t.line).from),o=r.state.doc.lineAt(s);t={line:o.number,col:t.col,off:Math.min(t.off,o.length)},i=i.map(r.changes)}},get(r,s,o){let a=zd(n,r);if(!a)return i;let l=$A(n.state,t,a);return l.length?o?k.create(l.concat(i.ranges)):k.create(l):i}}:null}function TA(n){let e=(t=>t.altKey&&t.button==0);return E.mouseSelectionStyle.of((t,i)=>e(i)?PA(t,i):null)}const CA={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},MA={style:"cursor: crosshair"};function AA(n={}){let[e,t]=CA[n.key||"Alt"],i=xe.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[i,E.contentAttributes.of(r=>{var s;return!((s=r.plugin(i))===null||s===void 0)&&s.is Line truncated
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new BX(this):new IX(this)}getCursor(e,t=0,i){let r=e.doc?e:K.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?pi(this,r,t,i):Oi(this,r,t,i)}}class Zy{constructor(e){this.spec=e}}function WX(n,e,t){return(i,r,s,o)=>{if(t&&!t(i,r,s,o))return!1;let a=i>=o&&r<=o+s.length?s.slice(i-o,r-o):e.doc.sliceString(i,r);return n(a,e,i,r)}}function Oi(n,e,t,i){let r;return n.wholeWord&&(r=jX(e.doc,e.charCategorizer(e.selection.main.head))),n.test&&(r=WX(n.test,e,r)),new ji(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:s=>s.toLowerCase(),r)}function jX(n,e){return(t,i,r,s)=>((s>t||s+r.length<i)&&(s=Math.max(0,t-2),r=n.sliceString(s,Math.min(n.length,i+2))),(e(Do(r,t-s))!=ue.Word||e(_o(r,t-s))!=ue.Word)&&(e(_o(r,i-s))!=ue.Word||e(Do(r,i-s))!=ue.Word))}class IX extends Zy{constructor(e){super(e)}nextMatch(e,t,i){let r=Oi(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let s=Math.min(e.doc.length,t+this.spec.unquoted.length);r=Oi(this.spec,e,0,s).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let s=Math.max(t,r-1e4-this.spec.unquoted.length),o=Oi(this.spec,e,s,r),a=null;for(;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(s==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=Oi(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let s=Oi(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function LX(n,e,t){return(i,r,s)=>(!t||t(i,r,s))&&n(s[0],e,i,r)}function pi(n,e,t,i){let r;return n.wholeWord&&(r=qX(e.charCategorizer(e.selection.main.head))),n.test&&(r=LX(n.test,e,r)),new Cy(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:r},t,i)}function Do(n,e){return n.slice(Te(n,e,!1),e)}function _o(n,e){return n.slice(e,Te(n,e))}function qX(n){return(e,t,i)=>!i[0].length||(n(Do(i.input,i.index))!=ue.Word||n(_o(i.input,i.index))!=ue.Word)&&(n(_o(i.input,i.index+i[0].length))!=ue.Word||n(Do(i.input,i.index+i[0].length))!=ue.Word)}class BX extends Zy{nextMatch(e,t,i){let r=pi(this.spec,e,i,e.doc.length).next();return r.done&&(r=pi(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let s=Math.max(t,i-r*1e4),o=pi(this.spec,e,s,i),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==t||a.from>s+10))return a;if(s==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let s=+i.slice(0,r);if(s>0&&s<e.match.length)return e.match[s]+i.slice(r)}return t})}matchAll(e,t){let i=pi(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let s=pi(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const jr=I.define(),Uu=I.define(),yn=Ee.define({create(n){return new Ol(Ic(n).create(),null)},update(n,e){for(let t of e.effects)t.is(jr)?n=new Ol(t.value.create(),n.panel):t.is(Uu)&&(n=new Ol(n.query,t.value?Hu:null));return n},provide:n=>_r.from(n,e=>e.panel)});class Ol{constructor(e,t){this.query=e,this.panel=t}}const VX=j.mark({class:"cm-searchMatch"}),NX=j.mark({class:"cm-searchMatch cm-searchMatch-selected"}),FX=xe.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(yn))}update(n){let e=n.state.field(yn);(e!=n.startState.field(yn)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return j.none;let{view:t}=this,i=new rn;for(let r=0,s=t.visibleRanges,o=s.length;r<o;r++){let{from:a,to:l}=s[r];for(;r<o-1&&l>s[r+1].from-500;)l=s[++r].to;n.highlight(t.state,a,l,(c,u)=>{let h=t.state.selection.ranges.some(f=>f.from==c&&f.to==u);i.add(c,u,h?NX:VX)})}return i.finish()}},{decorations:n=>n.decorations});function rs(n){return e=>{let t=e.state.field(yn,!1);return t&&t.query.spec.valid?n(e,t):Ey(e)}}const zo=rs((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=k.single(i.from,i.to),s=n.state.facet(Fi);return n.dispatch({selection:r,effects:[Ku(n,i),s.scrollToMatch(r.main,n)],userEvent:"select.search"}),Xy(n),!0}),Yo=rs((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return Line truncated
\${}
} catch (\${error}) {
\${}
}`,{label:"try",detail:"/ catch block",type:"keyword"}),Ve("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Ve(`if (\${}) {
\${}
} else {
\${}
}`,{label:"if",detail:"/ else block",type:"keyword"}),Ve(`class \${name} {
constructor(\${params}) {
\${}
}
}`,{label:"class",detail:"definition",type:"keyword"}),Ve('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ve('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],g_=gb.concat([Ve("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ve("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ve("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ip=new C0,yb=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function lr(n){return(e,t)=>{let i=e.node.getChild("VariableDefinition");return i&&t(i,n),!0}}const y_=["FunctionDeclaration"],b_={FunctionDeclaration:lr("function"),ClassDeclaration:lr("class"),ClassExpression:()=>!0,EnumDeclaration:lr("constant"),TypeAliasDeclaration:lr("type"),NamespaceDeclaration:lr("namespace"),VariableDefinition(n,e){n.matchContext(y_)||e(n,"variable")},TypeDefinition(n,e){e(n,"type")},__proto__:null};function bb(n,e){let t=ip.get(e);if(t)return t;let i=[],r=!0;function s(o,a){let l=n.sliceString(o.from,o.to);i.push({label:l,type:a})}return e.cursor(ee.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let a=b_[o.name];if(a&&a(o,s)||yb.has(o.name))return!1}else if(o.to-o.from>8192){for(let a of bb(n,o.node))i.push(a);return!1}}),ip.set(e,i),i}const rp=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,xb=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function x_(n){let e=me(n.state).resolveInner(n.pos,-1);if(xb.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&rp.test(n.state.sliceDoc(e.from,e.to));if(!t&&!n.explicit)return null;let i=[];for(let r=e;r;r=r.parent)yb.has(r.name)&&(i=i.concat(bb(n.state.doc,r)));return{options:i,from:t?e.from:n.pos,validFor:rp}}const jt=Yi.define({name:"javascript",parser:m_.configure({props:[Oa.add({IfStatement:Js({except:/^\s*({|else\b)/}),TryStatement:Js({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:EZ,SwitchBody:n=>{let e=n.textAfter,t=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return n.baseIndent+(t?0:i?1:2)*n.unit},Block:XZ({closing:"}"}),ArrowFunction:n=>n.baseIndent+n.unit,"TemplateString BlockComment":()=>null,"Statement Property":Js({except:/^\s*{/}),JSXElement(n){let e=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},JSXEscape(n){let e=/\s*\}/.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},"JSXOpenTag JSXSelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),pa.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":_0,BlockComment(n){return{from:n.from+2,to:n.to-2}},JSXElement(n){let e=n.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let t=n.lastChild;return{from:e.to,to:t.type.isError?n.to:t.from}},"JSXSelfClosingTag JSXOpenTag"(n){var e;let t=(e=n.firstChild)===null||e===void 0?void 0:e.nextSibling,i=n.lastChild;return!t||t.type.isError?null:{from:t.to,to:i.type.isError?n.to:i.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),wb={test:n=>/^JSX/.test(n.name),facet:R0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},vb=jt.configure({dialect:"ts"},"typescript"),Sb=jt.configure({dialect:"jsx",props:[Iu.add(n=>n.isTop?[wb]:void 0)]}),Qb=jt.configure({dialect:"jsx ts",props:[Iu.add(n=>n.isTop?[wb]:void 0)]},"typescript");let $b=n=>({label:n,type:"keyword"});const kb="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map($b),w_=kb.concat(["declare","implements","private","protected","public"].map($b));function v_(n={}){let e=n.jsx?n.typescript?Qb:Sb:n.typescript?vb:jt,t=n.typescript?g_.concat(w_):gb.concat(kb);return new Lu(e,[jt.data.of({autocomplete:iE(xb,zy(t))}),jt.data.of({autocomplete:x_}),n.jsx?$_:[]])}function S_(n){for(;;){if(n.name=="JSXOpenTag"||n.name=="JSXSelfClosingTag"||n.name=="JSXFragmentTag")return n;if(n.name=="JSXEscape"||!n.parent)return null;n=n.parent}}function sp(n,e,t=n.length){for(let i=e==null?void 0:e.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return n.sliceString(i.from,Math.min(i.to,t));return""}const Q_=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),$_=E.inputHandler.of((n,e,t,i,r)=>{if((Q_?n.composing:n.compositionStarted)||n.state.readOnly||e!=t||i!=">"&&i!="/"||!jt.isActiveAt(n.state,e,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(l=>{var c;let{head: Line truncated