1/*! LICENSE: 2986.b80a5b2e5e.js.LICENSE.txt */ 2"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[2986],{48338(t,e,i){var n=i(68413),r=i(29469),s=i(86573),a=i(9607),l=i(3535),o=i(917),u=i(22544),h=i(89936),c=i(13807),d=i(67851),p=i(80481),f=i(30970),y=i(99388),g=i(14895),v=i(39747),m=i(26291),b=i(20140),k=i(69202),x=i(938),w=i(52407),E=i(72361);let S=n.forwardRef(function(t,e){let{checked:i,className:S,defaultChecked:M,"aria-labelledby":O,form:j,id:C,inputRef:L,name:R,nativeButton:P=!1,onCheckedChange:A,readOnly:K=!1,required:z=!1,disabled:$=!1,render:V,uncheckedValue:N,value:q,style:U,..._}=t,{clearErrors:B}=(0,v.x)(),{state:D,setTouched:H,setDirty:F,validityData:I,setFilled:W,setFocused:G,validationMode:T,disabled:Z,name:J,validation:Q}=(0,y.V$)(),{labelId:X}=(0,m.H)(),Y=Z||$,tt=J??R,te=n.useRef(null),ti=(0,s.a)(te,L,Q.inputRef),tn=n.useRef(null),tr=(0,h.e)(),ts=(0,k.l)({id:C,implicit:!1,controlRef:tn}),ta=P?void 0:ts,[tl,to]=(0,r.q)({controlled:i,default:!!M,name:"Switch",state:"checked"});(0,g.I)(tn,tr,tl,void 0,!Y,R),(0,a.g)(()=>{te.current&&W(te.current.checked)},[W]),(0,w.x)(tl,()=>{B(tt),F(tl!==I.initialValue),W(tl),Q.change(tl)});let{getButtonProps:tu,buttonRef:th}=(0,c.s)({disabled:Y,native:P}),tc=(0,b.B)(O,X,te,!P,ta),td={...Q.getValidationProps(Y),checked:tl,disabled:Y,form:j,id:ta,name:tt,required:z,style:tt?l.a:l.Q,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:ti,onChange(t){if(t.nativeEvent.defaultPrevented)return;if(K)return void t.preventDefault();let e=t.currentTarget.checked,i=(0,x.d)("none",t.nativeEvent);A?.(e,i),i.isCanceled||to(e)},onClick(t){t.stopPropagation()},onFocus(){tn.current?.focus()},...void 0!==q?{value:q}:o.t0},tp=n.useMemo(()=>({...D,checked:tl,disabled:Y,readOnly:K,required:z}),[D,tl,Y,K,z]),tf=(0,u.o)("span",t,{state:tp,ref:[e,tn,th],props:[{id:P?ts:tr,role:"switch","aria-checked":tl,"aria-readonly":K||void 0,"aria-required":z||void 0,"aria-labelledby":tc,onFocus(){Y||G(!0)},onBlur(){let t=te.current;t&&!Y&&(H(!0),G(!1),"onBlur"===T&&Q.commit(t.checked))},onClick(t){if(K||Y)return;t.preventDefault();let e=te.current;e&&(0,f.B)(e,t)}},_,tu,t=>Q.getValidationProps(Y,t)],stateAttributesMapping:p.P});return(0,E.jsxs)(d.u.Provider,{value:tp,children:[tf,!tl&&tt&&void 0!==N&&(0,E.jsx)("input",{type:"hidden",form:j,name:tt,value:N,disabled:Y}),(0,E.jsx)("input",{...td,suppressHydrationWarning:!0})]})});i.d(e,{},{l:S})},67851(t,e,i){var n=i(26288),r=i(68413);let s=r.createContext(void 0);function a(){let t=r.useContext(s);if(void 0===t)throw Error((0,n.A)(63));return t}i.d(e,{b:()=>a},{u:s})},80481(t,e,i){let n={...i(5185).dc,checked:t=>t?{"data-checked":""}:{"data-unchecked":""}};i.d(e,{},{P:n})},38408(t,e,i){var n=i(68413),r=i(67851),s=i(22544),a=i(80481);let l=n.forwardRef(function(t,e){let{render:i,className:n,style:l,...o}=t,u=(0,r.b)();return(0,s.o)("span",t,{state:u,ref:e,stateAttributesMapping:a.P,props:o})});i.d(e,{},{p:l})},48367(t,e,i){i.d(e,{u:()=>c});var n=i(86832);let r=(t,e,i)=>{if(t&&"reportValidity"in t){let r=(0,n.Jt)(i,e);t.setCustomValidity(r&&r.message||""),t.reportValidity()}},s=(t,e)=>{for(let i in e.fields){let n=e.fields[i];n&&n.ref&&"reportValidity"in n.ref?r(n.ref,i,t):n&&n.refs&&n.refs.forEach(e=>r(e,i,t))}},a=(t,e)=>{e.shouldUseNativeValidation&&s(t,e);let i={};for(let r in t){let s=(0,n.Jt)(e.fields,r),a=Object.assign(t[r]||{},{ref:s&&s.refs?s.refs[0]:s&&s.ref});if(l(e.names||Object.keys(t),r)){let t=Object.assign({},(0,n.Jt)(i,r));(0,n.hZ)(t,"root",a),(0,n.hZ)(i,r,t)}else(0,n.hZ)(i,r,a)}return i},l=(t,e)=>{let i=o(e).replace(/[.*+?^${}()|\\]/g,"\\$&");return t.some(t=>o(t).match(`^${i}\\.\\d+`))};function o(t){return t.replace(/[\[\]]/g,"")}function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(null,arguments)}function h(t,e){try{var i=t()}catch(t){return e(t)}return i&&i.then?i.then(void 0,e):i}function c(t,e,i){if(void 0===i&&(i={}),"_zod"in t&&"object"==typeof t._zod)return function(r,l,o){try{return Promise.resolve(h(function(){function n(t){return o.shouldUseNativeValidation&&s({},o),{errors:{},values:i.raw?Object.assign({},r):t}}return"sync"===i.mode?n(t.parse(r,e)):Promise.resolve(t.parseAsync(r,e)).then(n)},function(t){var e;if(!(null==t||null==(e=t._zod)||null==(e=e.traits)||!e.has("$ZodError")))return{values:{},errors:a(function(t,e){for(var i=Object.create(null);t.length;)!function(){var r=t[0],s=r.code,a=r.message,l=r.path.join(".");if(!i[l])if("invalid_union"===r.code&&r.errors.length>0){var o,h,c=r.errors.reduce(function(t,e){return e.length<t.length?e:t})[0];i[l]={message:null!=(o=null==c?void 0:c.message)?o:a,type:null!=(h=null==c?void 0:c.code)?h:s}}else i[l]={message:a,type:s};
2if("invalid_union"===r.code&&r.errors.forEach(function(e){return e.forEach(function(e){return t.push(u({},e,{path:[].concat(r.path,e.path)}))})}),e){var d=i[l].types,p=d&&d[r.code];i[l]=(0,n.Gb)(l,e,i,s,p?[].concat(p,r.message):r.message)}t.shift()}();return i}(t.issues,!o.shouldUseNativeValidation&&"all"===o.criteriaMode),o)};throw t}))}catch(t){return Promise.reject(t)}};if("_def"in t&&"object"==typeof t._def)return function(r,l,o){try{return Promise.resolve(h(function(){return Promise.resolve(t["sync"===i.mode?"parse":"parseAsync"](r,e)).then(function(t){return o.shouldUseNativeValidation&&s({},o),{errors:{},values:i.raw?Object.assign({},r):t}})},function(t){if(Array.isArray(null==t?void 0:t.issues))return{values:{},errors:a(function(t,e){for(var i=Object.create(null);t.length;){var r=t[0],s=r.code,a=r.message,l=r.path.join(".");if(!i[l])if("unionErrors"in r){var o,u,h=r.unionErrors.reduce(function(t,e){return e.errors.length<t.errors.length?e:t}).errors[0];i[l]={message:null!=(o=null==h?void 0:h.message)?o:a,type:null!=(u=null==h?void 0:h.code)?u:s}}else i[l]={message:a,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(e){return e.errors.forEach(function(e){return t.push(e)})}),e){var c=i[l].types,d=c&&c[r.code];i[l]=(0,n.Gb)(l,e,i,s,d?[].concat(d,r.message):r.message)}t.shift()}return i}(t.errors,!o.shouldUseNativeValidation&&"all"===o.criteriaMode),o)};throw t}))}catch(t){return Promise.reject(t)}};throw Error("Invalid input: not a Zod schema")}},55667(t,e,i){i.d(e,{n:()=>h});var n=i(68413),r=i(70889),s=i(67948),a=i(19575),l=i(71597),o=class extends a.Q{#t;#e=void 0;#i;#n;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,l.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#i,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,l.EN)(e.mutationKey)!==(0,l.EN)(this.options.mutationKey)?this.reset():this.#i?.state.status==="pending"&&this.#i.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#i?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#i?.removeObserver(this),this.#i=void 0,this.#r(),this.#s()}mutate(t,e){return this.#n=e,this.#i?.removeObserver(this),this.#i=this.#t.getMutationCache().build(this.#t,this.options),this.#i.addObserver(this),this.#i.execute(t)}#r(){let t=this.#i?.state??(0,r.$)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#s(t){s.jG.batch(()=>{if(this.#n&&this.hasListeners()){let e=this.#e.variables,i=this.#e.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#n.onSuccess?.(t.data,e,i,n)}catch(t){Promise.reject(t)}try{this.#n.onSettled?.(t.data,null,e,i,n)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#n.onError?.(t.error,e,i,n)}catch(t){Promise.reject(t)}try{this.#n.onSettled?.(void 0,t.error,e,i,n)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}},u=i(96962);function h(t,e){let i=(0,u.jE)(e),[r]=n.useState(()=>new o(i,t));n.useEffect(()=>{r.setOptions(t)},[r,t]);let a=n.useSyncExternalStore(n.useCallback(t=>r.subscribe(s.jG.batchCalls(t)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),h=n.useCallback((t,e)=>{r.mutate(t,e).catch(l.lQ)},[r]);if(a.error&&(0,l.GU)(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:h,mutateAsync:a.mutate}}},914(t,e,i){let n=(0,i(9781).A)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);i.d(e,{},{A:n})},52671(t,e,i){let n=(0,i(9781).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);i.d(e,{},{A:n})},1417(t,e,i){let n=(0,i(9781).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);i.d(e,{},{A:n})}
2,99893(t,e,i){let n=(0,i(9781).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);i.d(e,{},{A:n})},66002(t,e,i){let n=(0,i(9781).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);i.d(e,{},{A:n})},60858(t,e,i){let n=[{type:"com",pattern:/\/\/[^\n]*|\/\*[\s\S]*?\*\//},{type:"str",pattern:/`(?:\\.|[^`\\])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'/},{type:"kw",pattern:/\b(?:const|let|var|function|return|import|from|export|default|new|if|else|for|while|class|extends|true|false|null|undefined|async|await|this|void|interface|type|number|string)\b/},{type:"num",pattern:/\d+\.?\d*/},{type:"punc",pattern:/[{}()[\];,.:=>+\-*/%!<>&|?]/}];function r(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}i.d(e,{},{a:(t=[])=>{let e=[...t,...n].map(({type:t,pattern:e})=>({type:t,pattern:RegExp(e.source,e.flags.replace(/[gy]/g,"")+"y")}));return t=>{let i="",n="",s=0,a=()=>{i+=r(n),n=""};for(;s<t.length;){let l=e.find(e=>(e.pattern.lastIndex=s,e.pattern.test(t)));if(!l){n+=t[s],s+=1;continue}l.pattern.lastIndex=s;let[o]=l.pattern.exec(t);0!==o.length?(a(),i+=`<span class="yace-tok yace-tok--${r(l.type).replace(/"/g,""")}">${r(o)}</span>`,s+=o.length):(n+=t[s],s+=1)}return a(),i}}})},73474(t,e,i){let n={position:"relative",boxSizing:"border-box",overflow:"hidden",fontSize:"16px",fontFamily:'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace'},r={lineHeight:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word",background:"none",position:"absolute",width:"100%",height:"100%",zIndex:"1",resize:"none",caretColor:"currentColor",padding:"inherit",outline:"none",fontSize:"inherit",fontFamily:"inherit",letterSpacing:"inherit",boxSizing:"border-box",border:"none",top:"0px",left:"0px",color:"inherit",overflow:"hidden","-webkit-font-smoothing":"antialiased","-webkit-text-fill-color":"transparent"},s={lineHeight:"inherit",position:"relative",whiteSpace:"pre-wrap",wordBreak:"keep-all",padding:"0",width:"100%",margin:"0",pointerEvents:"none",boxSizing:"border-box",overflowWrap:"break-word",fontFamily:"inherit"},a={lineHeight:"inherit",position:"absolute",width:"100%",height:"100%",whiteSpace:"pre-wrap",wordBreak:"keep-all",padding:"inherit",margin:"0",top:"0px",left:"0px",pointerEvents:"none",boxSizing:"border-box",overflowWrap:"break-word",fontFamily:"inherit"},l=t=>c(t);function o(t){let e=Array.isArray(t)?t:[t];return 0===e.length?l:t=>e.reduce((t,e,i)=>e(t,{html:i>0}),t)}class u{constructor(t,e={}){if(this.lines=null,!t)throw Error("selector is not defined");if(this.root=t instanceof Node?t:document.querySelector(t),!this.root)throw Error(`element with "${t}" selector is not exist`);const i={value:"",styles:{},plugins:[],highlighter:l},{highlighters:n,...r}=e;this.options={...i,...r,highlighter:n?o(n):i.highlighter},this.options.value=null==this.options.value?"":String(this.options.value),this.init()}init(){this.textarea=document.createElement("textarea"),this.textarea.setAttribute("spellcheck","false"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocomplete","off"),this.pre=document.createElement("pre");let t=Object.keys(n).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);this.initialRootStyles={};let e=this.root.style;t.forEach(t=>{this.initialRootStyles[t]=e[t]||""}),Object.assign(this.root.style,n,this.options.styles),Object.assign(this.textarea.style,r),Object.assign(this.pre.style,s),this.basePaddingLeft=this.root.style.paddingLeft||"",this.root.appendChild(this.textarea),this.root.appendChild(this.pre),this.addTextareaEvents(),this.update({value:this.options.value}),this.updateLines()}addTextareaEvents(){this.handleEvent=t=>{if("keydown"===t.type&&this.textarea.readOnly||t.isComposing||229===t.keyCode)return;let e=function(t,e){let{value:i,selectionStart:n,selectionEnd:r}=e.target;return t.reduce((t,i)=>({...t,...i(t,e)}),{value:i,selectionStart:n,selectionEnd:r})}(this.options.plugins,t);this.update(e)},this.textarea.addEventListener("input",this.handleEvent),this.textarea.addEventListener("keydown",this.handleEvent),this.textarea.addEventListener("compositionend",this.handleEvent)}update(t){if(!this.textarea)return;let{value:e,selectionStart:i,selectionEnd:n}=t;null!=e&&(e=String(e),null==i&&(i=this.textarea.selectionStart),null==n&&(n=this.textarea.selectionEnd),this.textarea.value!==e&&(this.textarea.value=e)),null!=i&&(this.textarea.selectionStart=i),null!=n&&(this.textarea.selectionEnd=n),e!==this.value&&null!=e&&(this.value=e,this.render(),this.updateCallback&&this.updateCallback(e))}updateOptions(t){if(!this.textarea)return;let{highlighters:e,...i}=t;if(this.options={...this.options,...i,highlighter:e?o(e):this.options.highlighter},t.styles){let e=this.root.style;
2Object.keys(t.styles).forEach(t=>{t in this.initialRootStyles||(this.initialRootStyles[t]=e[t]||"")}),Object.assign(this.root.style,t.styles),("paddingLeft"in t.styles||"padding"in t.styles)&&(this.basePaddingLeft=this.root.style.paddingLeft||"")}this.lines&&!this.options.lineNumbers&&(h(this.lines),this.lines=null,this.root.style.paddingLeft=this.basePaddingLeft),null!=t.value&&this.update({value:t.value}),this.render()}render(){let t=this.options.highlighter(this.value);this.pre.innerHTML=t+"<br/>",this.updateLines()}updateLines(){if(!this.options.lineNumbers)return;this.lines||(this.lines=document.createElement("pre"),this.root.appendChild(this.lines),Object.assign(this.lines.style,a));let t=this.value.split("\n"),e=t.length.toString().length;this.root.style.paddingLeft=`${e+1}ch`,this.lines.innerHTML=t.map((t,i)=>`<span class="yace-line" style="position: absolute; opacity: .3; left: 0; width: ${e}ch; text-align: right">${1+i}</span><span style="color: transparent; pointer-events: none">${c(t)}</span>`).join("\n")}destroy(){this.textarea&&(this.textarea.removeEventListener("input",this.handleEvent),this.textarea.removeEventListener("keydown",this.handleEvent),this.textarea.removeEventListener("compositionend",this.handleEvent),h(this.textarea),h(this.pre),h(this.lines),Object.assign(this.root.style,this.initialRootStyles),Object.assign(this,{textarea:null,pre:null,lines:null,updateCallback:null,handleEvent:null,initialRootStyles:null,options:null,root:null}))}onUpdate(t){this.updateCallback=t}}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function c(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}i.d(e,{F:()=>u})},21112(t,e,i){i.d(e,{},{m:(t={"(":")","[":"]","{":"}"})=>{let e=new Set(Object.values(t));return(i,n)=>{if("keydown"!==n.type||(n.ctrlKey||n.metaKey)&&!n.altKey)return;let{value:r,selectionStart:s,selectionEnd:a}=i,{key:l}=n,o=s===a;if("Backspace"===l&&o&&s>0){let e=t[r[s-1]];if(null!=e&&r[s]===e){n.preventDefault();let t=s-1;return{value:r.slice(0,s-1)+r.slice(s+1),selectionStart:t,selectionEnd:t}}return}if(o&&e.has(l)&&r[s]===l){n.preventDefault();let t=s+1;return{value:r,selectionStart:t,selectionEnd:t}}let u=t[l];if(null==u)return;n.preventDefault();let h=r.slice(s,a);return{value:r.slice(0,s)+l+h+u+r.slice(a),selectionStart:s+1,selectionEnd:a+1}}}})},92813(t,e,i){var n=i(36606);function r(t={}){let e=Math.max(1,null==t.limit?300:t.limit),i=null==t.coalesceMs?300:t.coalesceMs,s=[],a=null,l=null,o=t=>{(s=s.slice(0,a+1)).push(t),s.length>e&&(s=s.slice(s.length-e)),a=s.length-1};return(t,e)=>{let r="keydown"===e.type&&(0,n.m)("ctrl/cmd+z",e),u="keydown"===e.type&&((0,n.m)("ctrl/cmd+shift+z",e)||(0,n.m)("ctrl+y",e));if((r||u)&&e.preventDefault(),null===a)return s=[t],void(a=0);if(r)return l=null,s[a].value!==t.value?o(t):s[a]=t,s[a=Math.max(0,a-1)];if(u)return l=null,s[a].value!==t.value?void o(t):(a=Math.min(s.length-1,a+1),s[a]);if("keydown"===e.type)return s[a].value!==t.value?(l=null,void o(t)):void(s[a]=t);if("input"===e.type){let n=e.timeStamp,r=null!=n&&null!=l&&n-l<=i;if(l=null==n?null:n,r)return void(s[a]=t);o(t)}}}i.d(e,{b:()=>r})},36606(t,e,i){let n={alt:"altKey",control:"ctrlKey",ctrl:"ctrlKey",meta:"metaKey",shift:"shiftKey","ctrl/cmd":"u">typeof window&&window.navigator&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"metaKey":"ctrlKey"},r={add:"="},s={";":"semicolon","=":"equal",",":"comma","-":"minus",".":"period","/":"slash","`":"backquote","[":"bracketleft","\\":"backslash","]":"bracketright","'":"quote"};function a(t,e){var i;let a=t.split("+").reduce((t,e)=>n[e]?(t.modifiers[n[e]]=!0,t):{...t,key:r[e]||e.toLowerCase()},{modifiers:{altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1},key:null}),l=Object.keys(a.modifiers).every(t=>a.modifiers[t]?e[t]:!e[t]);if(!a.key)return l;let o=null!=e.key&&e.key.toLowerCase()===a.key,u=(i=a.key,/^[a-z]$/.test(i)?`key${i}`:/^[0-9]$/.test(i)?`digit${i}`:s[i]||null),h=!e.isComposing&&null!=u&&null!=e.code&&e.code.toLowerCase()===u;return l&&(o||h)}i.d(e,{m:()=>a})},80042(t,e,i){var n=i(36606);function r(t,e,i){let n=i>e&&"\n"===t[i-1]?i-1:i;return t.substring(0,n).split("\n").length-1}i.d(e,{},{M:(t=" ")=>(e,i)=>{let{value:s,selectionStart:a,selectionEnd:l}=e;
2if("keydown"===i.type){if((0,n.m)("shift+tab",i)){i.preventDefault();let e=s.split("\n"),n=s.substring(0,a).split("\n"),o=n.length-1,u=r(s,a,l),h=e.map((e,i)=>i>=o&&i<=u&&e.startsWith(t)?e.substring(t.length):e).join("\n");if(s===h)return;let c=n[o].length,d=e[o].startsWith(t)?Math.min(c,t.length):0,p=s.substring(0,l).split("\n"),f=p.length-1,y=p[f].length,g=f<=u&&e[f].startsWith(t)?Math.max(0,t.length-y):0;return{value:h,selectionStart:a-d,selectionEnd:l-(s.length-h.length)+g}}if((0,n.m)("tab",i)){if(i.preventDefault(),a===l){let e=a+t.length;return{value:s.substring(0,a)+t+s.substring(l),selectionStart:e,selectionEnd:e}}let e=s.substring(0,a).split("\n").length-1,n=r(s,a,l);return{value:s.split("\n").map((i,r)=>r>=e&&r<=n?t+i:i).join("\n"),selectionStart:a+t.length,selectionEnd:l+t.length*(n-e+1)}}}}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.