PageSourceSearch

https://www.isaaceditor.com/_next/static/chunks/9031.c54facde2958ead3.js

js isaaceditor.com collected 2026-10-07 07:17:08 UTC 15,596 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9031],{22140:(e,t)=>{var r=function(e,t){if(!(this instanceof r))return new r(e,t);this.INITIALIZING=-1,this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,this.url=e,t=t||{},this.headers=t.headers||{},this.payload=void 0!==t.payload?t.payload:"",this.method=t.method||this.payload&&"POST"||"GET",this.withCredentials=!!t.withCredentials,this.FIELD_SEPARATOR=":",this.listeners={},this.xhr=null,this.readyState=this.INITIALIZING,this.progress=0,this.chunk="",this.addEventListener=function(e,t){void 0===this.listeners[e]&&(this.listeners[e]=[]),-1===this.listeners[e].indexOf(t)&&this.listeners[e].push(t)},this.removeEventListener=function(e,t){if(void 0!==this.listeners[e]){var r=[];this.listeners[e].forEach(function(e){e!==t&&r.push(e)}),0===r.length?delete this.listeners[e]:this.listeners[e]=r}},this.dispatchEvent=function(e){if(!e)return!0;e.source=this;var t="on"+e.type;return(!this.hasOwnProperty(t)||(this[t].call(this,e),!e.defaultPrevented))&&(!this.listeners[e.type]||this.listeners[e.type].every(function(t){return t(e),!e.defaultPrevented}))},this._setReadyState=function(e){var t=new CustomEvent("readystatechange");t.readyState=e,this.readyState=e,this.dispatchEvent(t)},this._onStreamFailure=function(e){var t=new CustomEvent("error");t.data=e.currentTarget.response,this.dispatchEvent(t),this.close()},this._onStreamAbort=function(e){this.dispatchEvent(new CustomEvent("abort")),this.close()},this._onStreamProgress=function(e){if(this.xhr){if(200!==this.xhr.status)return void this._onStreamFailure(e);this.readyState==this.CONNECTING&&(this.dispatchEvent(new CustomEvent("open")),this._setReadyState(this.OPEN));var t=this.xhr.responseText.substring(this.progress);this.progress+=t.length,t.split(/(\r\n|\r|\n){2}/g).forEach((function(e){0===e.trim().length?(this.dispatchEvent(this._parseEventChunk(this.chunk.trim())),this.chunk=""):this.chunk+=e}).bind(this))}},this._onStreamLoaded=function(e){this._onStreamProgress(e),this.dispatchEvent(this._parseEventChunk(this.chunk)),this.chunk=""},this._parseEventChunk=function(e){if(!e||0===e.length)return null;var t={id:null,retry:null,data:"",event:"message"};
1e.split(/\n|\r\n|\r/).forEach((function(e){var r=(e=e.trimRight()).indexOf(this.FIELD_SEPARATOR);if(!(r<=0)){var n=e.substring(0,r);if(n in t){var i=e.substring(r+1).trimLeft();"data"===n?t[n]+=i:t[n]=i}}}).bind(this));var r=new CustomEvent(t.event);return r.data=t.data,r.id=t.id,r},this._checkStreamClosed=function(){this.xhr&&this.xhr.readyState===XMLHttpRequest.DONE&&this._setReadyState(this.CLOSED)},this.stream=function(){for(var e in this._setReadyState(this.CONNECTING),this.xhr=new XMLHttpRequest,this.xhr.addEventListener("progress",this._onStreamProgress.bind(this)),this.xhr.addEventListener("load",this._onStreamLoaded.bind(this)),this.xhr.addEventListener("readystatechange",this._checkStreamClosed.bind(this)),this.xhr.addEventListener("error",this._onStreamFailure.bind(this)),this.xhr.addEventListener("abort",this._onStreamAbort.bind(this)),this.xhr.open(this.method,this.url),this.headers)this.xhr.setRequestHeader(e,this.headers[e]);this.xhr.withCredentials=this.withCredentials,this.xhr.send(this.payload)},this.close=function(){this.readyState!==this.CLOSED&&(this.xhr.abort(),this.xhr=null,this._setReadyState(this.CLOSED))}};t.y=r},37321:(e,t,r)=>{"use strict";r.d(t,{uB:()=>O});var n=/[\\\/_+.#"@\[\(\{&]/,i=/[\\\/_+.#"@\[\(\{&]/g,l=/[\s-]/,a=/[\s-]/g;function s(e){return e.toLowerCase().replace(a," ")}var u=r(21033),o=r(12115),c=r(88363),d=r(80998),h=r(2162),f='[cmdk-group=""]',v='[cmdk-group-items=""]',m='[cmdk-item=""]',p="".concat(m,':not([aria-disabled="true"])'),g="cmdk-item-select",E="data-value",b=(e,t,r)=>(function(e,t,r){return function e(t,r,s,u,o,c,d){if(c===r.length)return o===t.length?1:.99;var h=`${o},${c}`;if(void 0!==d[h])return d[h];for(var f,v,m,p,g=u.charAt(c),E=s.indexOf(g,o),b=0;E>=0;)(f=e(t,r,s,u,E+1,c+1,d))>b&&(E===o?f*=1:n.test(t.charAt(E-1))?(f*=.8,(m=t.slice(o,E-1).match(i))&&o>0&&(f*=Math.pow(.999,m.length))):l.test(t.charAt(E-1))?(f*=.9,(p=t.slice(o,E-1).match(a))&&o>0&&(f*=Math.pow(.999,p.length))):(f*=.17,o>0&&(f*=Math.pow(.999,E-o))),t.charAt(E)!==r.charAt(c)&&(f*=.9999)),(f<.1&&s.charAt(E-1)===u.charAt(c+1)||u.charAt(c+1)===u.charAt(c)&&s.charAt(E-1)!==u.charAt(c))&&.1*(v=e(t,r,s,u,E+1,c+2,d))>f&&(f=.1*v),f>b&&(b=f),E=s.indexOf(g,E+1);return d[h]=b,b}(e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,t,s(e),s(t),0,0,{})})(e,t,r),y=o.createContext(void 0),S=()=>o.useContext(y),k=o.createContext(void 0),w=()=>o.useContext(k),C=o.createContext(void 0),x=o.forwardRef((e,t)=>{let r=D(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=D(()=>new Set),i=D(()=>new Map),l=D(()=>new Map),a=D(()=>new Set),s=N(e),{label:u,children:h,value:S,onValueChange:w,filter:C,shouldFilter:x,loop:I,disablePointerSelection:A=!1,vimBindings:R=!0,...L}=e,_=(0,d.B)(),M=(0,d.B)(),O=(0,d.B)(),G=o.useRef(null),F=q();P(()=>{if(void 0!==S){let e=S.trim();r.current.value=e,K.emit()}},[S]),P(()=>{F(6,Z)},[]);let K=o.useMemo(()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,l,a,u;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)U(),H(),F(1,z);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(O);e?e.focus():null==(i=document.getElementById(_))||i.focus()}if(F(7,()=>{var e;r.current.selectedItemId=null==(e=$())?void 0:e.id,K.emit()}),n||F(5,Z),(null==(l=s.current)?void 0:l.value)!==void 0){null==(u=(a=s.current).onValueChange)||u.call(a,null!=t?t:"");return}}K.emit()}},emit:()=>{a.current.forEach(e=>e())}}),[]),V=o.useMemo(()=>({value:(e,t,n)=>{var i;t!==(null==(i=l.current.get(e))?void 0:i.value)&&(l.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,j(t,n)),F(2,()=>{H(),K.emit()}))},item:(e,t)=>(n.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),F(3,()=>{U(),H(),r.current.value||z(),K.emit()}),()=>{l.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=$();F(4,()=>{U(),(null==t?void 0:t.getAttribute("id"))===e&&z(),K.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{l.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:_,inputId:O,labelId:M,listInnerRef:G}),[]);function j(e,t){var n,i;let l=null!=(i=null==(n=s.current)?void 0:n.filter)?i:b;return e?l(e,r.current.search,t):0}function H(){if(!r.current.search||!1===s.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=i.current.get(r),l=0;
1n.forEach(t=>{l=Math.max(e.get(t),l)}),t.push([r,l])});let n=G.current;X().sort((t,r)=>{var n,i;let l=t.getAttribute("id"),a=r.getAttribute("id");return(null!=(n=e.get(a))?n:0)-(null!=(i=e.get(l))?i:0)}).forEach(e=>{let t=e.closest(v);t?t.appendChild(e.parentElement===t?e:e.closest("".concat(v," > *"))):n.appendChild(e.parentElement===n?e:e.closest("".concat(v," > *")))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=G.current)?void 0:t.querySelector("".concat(f,"[").concat(E,'="').concat(encodeURIComponent(e[0]),'"]'));null==r||r.parentElement.appendChild(r)})}function z(){let e=X().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(E);K.setState("value",t||void 0)}function U(){var e,t,a,u;if(!r.current.search||!1===s.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let o=0;for(let i of n.current){let n=j(null!=(t=null==(e=l.current.get(i))?void 0:e.value)?t:"",null!=(u=null==(a=l.current.get(i))?void 0:a.keywords)?u:[]);r.current.filtered.items.set(i,n),n>0&&o++}for(let[e,t]of i.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=o}function Z(){var e,t,r;let n=$();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(f))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function $(){var e;return null==(e=G.current)?void 0:e.querySelector("".concat(m,'[aria-selected="true"]'))}function X(){var e;return Array.from((null==(e=G.current)?void 0:e.querySelectorAll(p))||[])}function J(e){let t=X()[e];t&&K.setState("value",t.getAttribute(E))}function W(e){var t;let r=$(),n=X(),i=n.findIndex(e=>e===r),l=n[i+e];null!=(t=s.current)&&t.loop&&(l=i+e<0?n[n.length-1]:i+e===n.length?n[0]:n[i+e]),l&&K.setState("value",l.getAttribute(E))}function Q(e){let t=$(),r=null==t?void 0:t.closest(f),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,f):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,f))?void 0:r.querySelector(p);n?K.setState("value",n.getAttribute(E)):W(e)}let Y=()=>J(X().length-1),ee=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?Q(1):W(1)},et=e=>{e.preventDefault(),e.metaKey?J(0):e.altKey?Q(-1):W(-1)};return o.createElement(c.sG.div,{ref:t,tabIndex:-1,...L,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=L.onKeyDown)||t.call(L,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":R&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":R&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),J(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=$();if(t){let e=new Event(g);t.dispatchEvent(e)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:V.inputId,id:V.labelId,style:B},u),T(e,e=>o.createElement(k.Provider,{value:K},o.createElement(y.Provider,{value:V},e))))}),I=o.forwardRef((e,t)=>{var r,n;let i=(0,d.B)(),l=o.useRef(null),a=o.useContext(C),s=S(),u=N(e),f=null!=(n=null==(r=u.current)?void 0:r.forceMount)?n:null==a?void 0:a.forceMount;P(()=>{if(!f)return s.item(i,null==a?void 0:a.id)},[f]);let v=F(i,l,[e.value,e.children,l],e.keywords),m=w(),p=G(e=>e.value&&e.value===v.current),E=G(e=>!!f||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function b(){var e,t;y(),null==(t=(e=u.current).onSelect)||t.call(e,v.current)}function y(){m.setState("value",v.current,!0)}if(o.useEffect(()=>{let t=l.current;if(!(!t||e.disabled))return t.addEventListener(g,b),()=>t.removeEventListener(g,b)},[E,e.onSelect,e.disabled]),!E)return null;let{disabled:k,value:x,onSelect:I,forceMount:A,keywords:R,...L}=e;return o.createElement(c.sG.div,{ref:(0,h.t)(l,t),...L,id:i,"cmdk-item":"",role:"option","aria-disabled":!!k,"aria-selected":!!p,"data-disabled":!!k,"data-selected":!!p,onPointerMove:k||s.getDisablePointerSelection()?void 0:y,onClick:k?void 0:b},e.children)}),A=o.forwardRef((e,t)=>
1{let{heading:r,children:n,forceMount:i,...l}=e,a=(0,d.B)(),s=o.useRef(null),u=o.useRef(null),f=(0,d.B)(),v=S(),m=G(e=>!!i||!1===v.filter()||!e.search||e.filtered.groups.has(a));P(()=>v.group(a),[]),F(a,s,[e.value,e.heading,u]);let p=o.useMemo(()=>({id:a,forceMount:i}),[i]);return o.createElement(c.sG.div,{ref:(0,h.t)(s,t),...l,"cmdk-group":"",role:"presentation",hidden:!m||void 0},r&&o.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:f},r),T(e,e=>o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?f:void 0},o.createElement(C.Provider,{value:p},e))))}),R=o.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,i=o.useRef(null),l=G(e=>!e.search);return r||l?o.createElement(c.sG.div,{ref:(0,h.t)(i,t),...n,"cmdk-separator":"",role:"separator"}):null}),L=o.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,i=null!=e.value,l=w(),a=G(e=>e.search),s=G(e=>e.selectedItemId),u=S();return o.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),o.createElement(c.sG.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":s,id:u.inputId,type:"text",value:i?e.value:a,onChange:e=>{i||l.setState("search",e.target.value),null==r||r(e.target.value)}})}),_=o.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...i}=e,l=o.useRef(null),a=o.useRef(null),s=G(e=>e.selectedItemId),u=S();return o.useEffect(()=>{if(a.current&&l.current){let e=a.current,t=l.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),o.createElement(c.sG.div,{ref:(0,h.t)(l,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:u.listId},T(e,e=>o.createElement("div",{ref:(0,h.t)(a,u.listInnerRef),"cmdk-list-sizer":""},e)))}),M=o.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:l,container:a,...s}=e;return o.createElement(u.bL,{open:r,onOpenChange:n},o.createElement(u.ZL,{container:a},o.createElement(u.hJ,{"cmdk-overlay":"",className:i}),o.createElement(u.UC,{"aria-label":e.label,"cmdk-dialog":"",className:l},o.createElement(x,{ref:t,...s}))))}),O=Object.assign(x,{List:_,Item:I,Input:L,Group:A,Separator:R,Dialog:M,Empty:o.forwardRef((e,t)=>G(e=>0===e.filtered.count)?o.createElement(c.sG.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:o.forwardRef((e,t)=>{let{progress:r,children:n,label:i="Loading...",...l}=e;return o.createElement(c.sG.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},T(e,e=>o.createElement("div",{"aria-hidden":!0},e)))})});function N(e){let t=o.useRef(e);return P(()=>{t.current=e}),t}var P="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function D(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function G(e){let t=w(),r=()=>e(t.snapshot());return o.useSyncExternalStore(t.subscribe,r,r)}function F(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=o.useRef(),l=S();return P(()=>{var a;let s=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),u=n.map(e=>e.trim());l.value(e,s,u),null==(a=t.current)||a.setAttribute(E,s),i.current=s}),i}var q=()=>{let[e,t]=o.useState(),r=D(()=>new Map);return P(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function T(e,t){let r,{asChild:n,children:i}=e;return n&&o.isValidElement(i)?o.cloneElement("function"==typeof(r=i.type)?r(i.props):"render"in r?r.render(i.props):i,{ref:i.ref},t(i.props.children)):t(i)}var B={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},62781:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(25379).A)("step-forward",[["line",{x1:"6",x2:"6",y1:"4",y2:"20",key:"fy8qot"}],["polygon",{points:"10,4 20,12 10,20",key:"1mc1pf"}]])},88146:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(25379).A)("library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}
1],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]])}}]);

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.