@camera.ui/server 0.0.69 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface/index.html +44 -44
- package/dist/interface/js/{@primevue.C5r50LKM.0.0.69.js → @primevue.DH9ak_9x.0.0.70.js} +1 -1
- package/dist/interface/js/{@tanstack.ESyaYTt8.0.0.69.js → @tanstack.Dk2rc1Gz.0.0.70.js} +1 -1
- package/dist/interface/js/{@vee-validate.CeUgfPaH.0.0.69.js → @vee-validate.i4o6WINE.0.0.70.js} +1 -1
- package/dist/interface/js/{@vueuse.NhwSnX_y.0.0.69.js → @vueuse.T3qy5Jq4.0.0.70.js} +1 -1
- package/dist/interface/js/{Adminpanel.CR_zSM68.0.0.69.js → Adminpanel.CBQfnvy1.0.0.70.js} +1 -1
- package/dist/interface/js/{Camera.Cc2GMAQz.0.0.69.js → Camera.D39v2Qae.0.0.70.js} +1 -1
- package/dist/interface/js/{Cameras.AVNvfmPx.0.0.69.js → Cameras.BOXzVzD9.0.0.70.js} +1 -1
- package/dist/interface/js/Cammesh.bs93Or8F.0.0.70.js +1 -0
- package/dist/interface/js/{Camview.CTs17jUK.0.0.69.js → Camview.R2Zpw-wS.0.0.70.js} +1 -1
- package/dist/interface/js/{Config.BcnTMnwK.0.0.69.js → Config.D89tTvo2.0.0.70.js} +2 -2
- package/dist/interface/js/{Console.C2u30_a4.0.0.69.js → Console.DX4_ZVPM.0.0.70.js} +1 -1
- package/dist/interface/js/{CuiConsole.C_vx3eur.0.0.69.js → CuiConsole.B-YJZ4uY.0.0.70.js} +1 -1
- package/dist/interface/js/{CuiPluginCard.DXCSR91d.0.0.69.js → CuiPluginCard.CFaLdBEf.0.0.70.js} +1 -1
- package/dist/interface/js/{CuiTimeline.D24_kazZ.0.0.69.js → CuiTimeline.DbPA3XCf.0.0.70.js} +1 -1
- package/dist/interface/js/{FirstSteps.DmFQyph_.0.0.69.js → FirstSteps.BjUQYXwF.0.0.70.js} +1 -1
- package/dist/interface/js/{Plugin.DnLoseHB.0.0.69.js → Plugin.Dl21oK_u.0.0.70.js} +1 -1
- package/dist/interface/js/{Plugins.D6nWkZe3.0.0.69.js → Plugins.DphA9uPk.0.0.70.js} +1 -1
- package/dist/interface/js/Recordings.B2b7JutC.0.0.70.js +1 -0
- package/dist/interface/js/{Settings.CLR_jqKd.0.0.69.js → Settings.D_hL6kBb.0.0.70.js} +1 -1
- package/dist/interface/js/{SettingsAccount.D9QAC8hM.0.0.69.js → SettingsAccount.2ETTD3p8.0.0.70.js} +1 -1
- package/dist/interface/js/SettingsAppearance.DkI9GlMu.0.0.70.js +1 -0
- package/dist/interface/js/{SettingsAppearance.vue_vue_type_script_setup_true_lang.DZQvbT2Y.0.0.69.js → SettingsAppearance.vue_vue_type_script_setup_true_lang.D6sykhe2.0.0.70.js} +1 -1
- package/dist/interface/js/{SettingsBackup.C35jy9a9.0.0.69.js → SettingsBackup.Ce3e31yn.0.0.70.js} +1 -1
- package/dist/interface/js/SettingsRecordings.C_hEpi6y.0.0.70.js +1 -0
- package/dist/interface/js/{SettingsRemote.BrU66scR.0.0.69.js → SettingsRemote.BDp_l894.0.0.70.js} +1 -1
- package/dist/interface/js/{SettingsSystem.DmU4H9b1.0.0.69.js → SettingsSystem.CFjS9i7G.0.0.70.js} +1 -1
- package/dist/interface/js/{SettingsUsers.DQN0jbzy.0.0.69.js → SettingsUsers.BpTad4f8.0.0.70.js} +1 -1
- package/dist/interface/js/{VersionsHandler.vue_vue_type_script_setup_true_lang.Cyp9Qkwy.0.0.69.js → VersionsHandler.vue_vue_type_script_setup_true_lang.MC8r914h.0.0.70.js} +1 -1
- package/dist/interface/js/{ace-builds.D-7Qis2t.0.0.69.js → ace-builds.DPRnfcwI.0.0.70.js} +2 -2
- package/dist/interface/js/{ace.config.ButjQxKc.0.0.69.js → ace.config.DReCZ4VN.0.0.70.js} +1 -1
- package/dist/interface/js/{backup.ZVXbFg1K.0.0.69.js → backup.CqN-DI7C.0.0.70.js} +1 -1
- package/dist/interface/js/{chart.js.Dz1J8kd4.0.0.69.js → chart.js.B5ohq2tj.0.0.70.js} +1 -1
- package/dist/interface/js/{close-circle.DJNW4HfJ.0.0.69.js → close-circle.CMnO5OKl.0.0.70.js} +1 -1
- package/dist/interface/js/{dnd-core.D_qG7vz7.0.0.69.js → dnd-core.DuFbUDJC.0.0.70.js} +1 -1
- package/dist/interface/js/{draggabilly.BoYjrLDK.0.0.69.js → draggabilly.Cuzjcd7v.0.0.70.js} +1 -1
- package/dist/interface/js/{engine.io-client.B5m3FsEv.0.0.69.js → engine.io-client.CnosWdRP.0.0.70.js} +1 -1
- package/dist/interface/js/{fast-deep-equal.IL3J8jAG.0.0.69.js → fast-deep-equal.D0g7BF3f.0.0.70.js} +1 -1
- package/dist/interface/js/{highlight.js.BSQb76p3.0.0.69.js → highlight.js.DTPofZhc.0.0.70.js} +1 -1
- package/dist/interface/js/{linkify-it.DggZxsPz.0.0.69.js → linkify-it.imhCvGRq.0.0.70.js} +1 -1
- package/dist/interface/js/{main.BNZUJnjG.0.0.69.js → main.D2NZuTnM.0.0.70.js} +3 -3
- package/dist/interface/js/{markdown-it.MLL3O76W.0.0.69.js → markdown-it.VQvmcJVu.0.0.70.js} +1 -1
- package/dist/interface/js/{nprogress.BYU1Y2h8.0.0.69.js → nprogress.DuNJBXnf.0.0.70.js} +1 -1
- package/dist/interface/js/{pinia.xXUM0Drf.0.0.69.js → pinia.BeBGFuqK.0.0.70.js} +1 -1
- package/dist/interface/js/{primevue.CYqFPO0y.0.0.69.js → primevue.BVVo-ukB.0.0.70.js} +1 -1
- package/dist/interface/js/{qrcode.D3FbUuTi.0.0.69.js → qrcode.D7KqKQTM.0.0.70.js} +1 -1
- package/dist/interface/js/{react-dnd-touch-backend.ChJx6T3S.0.0.69.js → react-dnd-touch-backend.4hAOsMRp.0.0.70.js} +1 -1
- package/dist/interface/js/{refresh-rounded.DLelUEXh.0.0.69.js → refresh-rounded.BzWz29y2.0.0.70.js} +1 -1
- package/dist/interface/js/{rxjs.AXKlNjX-.0.0.69.js → rxjs.UbFxmZ7q.0.0.70.js} +1 -1
- package/dist/interface/js/{socket.io-client.NZWSNJlD.0.0.69.js → socket.io-client.DC_wUGxw.0.0.70.js} +1 -1
- package/dist/interface/js/{socket.io-parser.3CqTF9_v.0.0.69.js → socket.io-parser.ChgZ8FD_.0.0.70.js} +1 -1
- package/dist/interface/js/{system.AeO3hneo.0.0.69.js → system.Ccn9lMgI.0.0.70.js} +1 -1
- package/dist/interface/js/{trash-fill.CxzXm2nA.0.0.69.js → trash-fill.C8ZgD-Jz.0.0.70.js} +1 -1
- package/dist/interface/js/{unidragger.UylmBmyV.0.0.69.js → unidragger.DahEY3cm.0.0.70.js} +1 -1
- package/dist/interface/js/{vee-validate.CXzK59HL.0.0.69.js → vee-validate.DwwGVNzx.0.0.70.js} +1 -1
- package/dist/interface/js/{vue-chartjs.Dr8dSHCc.0.0.69.js → vue-chartjs.KCIQuea5.0.0.70.js} +1 -1
- package/dist/interface/js/{vue-i18n.BsJO9RBQ.0.0.69.js → vue-i18n.BLwVbi61.0.0.70.js} +1 -1
- package/dist/interface/js/{vue-inline-svg.1baioXR8.0.0.69.js → vue-inline-svg.B52C1cW8.0.0.70.js} +1 -1
- package/dist/interface/js/{vue-router.Cnp23wAe.0.0.69.js → vue-router.BQuUBAAr.0.0.70.js} +1 -1
- package/dist/interface/js/{vue-zoomable.DMxVl9qH.0.0.69.js → vue-zoomable.Cq7IVJt5.0.0.70.js} +1 -1
- package/dist/interface/js/{vue3-dnd.Cre7FigV.0.0.69.js → vue3-dnd.2Dj_EakH.0.0.70.js} +1 -1
- package/dist/interface/js/{zoom-out.BEqLMm84.0.0.69.js → zoom-out.D4ga9c-w.0.0.70.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +3 -3
- package/package.json +3 -3
- package/dist/interface/js/Cammesh.6TFnt2Jx.0.0.69.js +0 -1
- package/dist/interface/js/Recordings.BGcye9TW.0.0.69.js +0 -1
- package/dist/interface/js/SettingsAppearance.Dg_3Nbvy.0.0.69.js +0 -1
- package/dist/interface/js/SettingsRecordings.C5na6ke4.0.0.69.js +0 -1
- /package/dist/interface/assets/{@xterm.DYP7pi_n.0.0.69.css → @xterm.DYP7pi_n.0.0.70.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.BKek2EMH.0.0.69.css → Adminpanel.BKek2EMH.0.0.70.css} +0 -0
- /package/dist/interface/assets/{Cameras.BDWZJqPN.0.0.69.css → Cameras.BDWZJqPN.0.0.70.css} +0 -0
- /package/dist/interface/assets/{Camview.Cvhuou6V.0.0.69.css → Camview.Cvhuou6V.0.0.70.css} +0 -0
- /package/dist/interface/assets/{CuiConsole.DCYyxdVg.0.0.69.css → CuiConsole.DCYyxdVg.0.0.70.css} +0 -0
- /package/dist/interface/assets/{CuiPluginCard.yF8V0SZY.0.0.69.css → CuiPluginCard.yF8V0SZY.0.0.70.css} +0 -0
- /package/dist/interface/assets/{CuiTimeline.BkIwlYtw.0.0.69.css → CuiTimeline.BkIwlYtw.0.0.70.css} +0 -0
- /package/dist/interface/assets/{Plugin.DJElsAn5.0.0.69.css → Plugin.DJElsAn5.0.0.70.css} +0 -0
- /package/dist/interface/assets/{Plugins.BwPlcRrV.0.0.69.css → Plugins.BwPlcRrV.0.0.70.css} +0 -0
- /package/dist/interface/assets/{Settings.CkgfRkQr.0.0.69.css → Settings.CkgfRkQr.0.0.70.css} +0 -0
- /package/dist/interface/assets/{SettingsAccount.CDZT7gN-.0.0.69.css → SettingsAccount.CDZT7gN-.0.0.70.css} +0 -0
- /package/dist/interface/assets/{SettingsBackup.CX0rT0QJ.0.0.69.css → SettingsBackup.CX0rT0QJ.0.0.70.css} +0 -0
- /package/dist/interface/assets/{highlight.Ch2EwETz.0.0.69.css → highlight.Ch2EwETz.0.0.70.css} +0 -0
- /package/dist/interface/assets/{logo-256.BCQk9H1-.0.0.69.png → logo-256.BCQk9H1-.0.0.70.png} +0 -0
- /package/dist/interface/assets/{logo-512.DLKVOU2S.0.0.69.png → logo-512.DLKVOU2S.0.0.70.png} +0 -0
- /package/dist/interface/assets/{logo.DmEiRk0z.0.0.69.png → logo.DmEiRk0z.0.0.70.png} +0 -0
- /package/dist/interface/assets/{main.BmO7mnW4.0.0.69.css → main.BmO7mnW4.0.0.70.css} +0 -0
- /package/dist/interface/assets/{mode-yaml.CIYL8U3d.0.0.69.js → mode-yaml.CIYL8U3d.0.0.70.js} +0 -0
- /package/dist/interface/assets/{worker-base.jEXLGV2h.0.0.69.js → worker-base.jEXLGV2h.0.0.70.js} +0 -0
- /package/dist/interface/assets/{worker-yaml.B3uUYINB.0.0.69.js → worker-yaml.B3uUYINB.0.0.70.js} +0 -0
- /package/dist/interface/js/{@babel.l0sNRNKZ.0.0.69.js → @babel.l0sNRNKZ.0.0.70.js} +0 -0
- /package/dist/interface/js/{@intlify.6ljJeWIl.0.0.69.js → @intlify.6ljJeWIl.0.0.70.js} +0 -0
- /package/dist/interface/js/{@kurkle.D8fDXNIl.0.0.69.js → @kurkle.D8fDXNIl.0.0.70.js} +0 -0
- /package/dist/interface/js/{@primeuix.bRNqZjQz.0.0.69.js → @primeuix.bRNqZjQz.0.0.70.js} +0 -0
- /package/dist/interface/js/{@react-dnd.CcwRs9xb.0.0.69.js → @react-dnd.CcwRs9xb.0.0.70.js} +0 -0
- /package/dist/interface/js/{@socket.io.Dkula2eQ.0.0.69.js → @socket.io.Dkula2eQ.0.0.70.js} +0 -0
- /package/dist/interface/js/{@vue.BsSvBeCe.0.0.69.js → @vue.BsSvBeCe.0.0.70.js} +0 -0
- /package/dist/interface/js/{@xterm.DHnCBlz-.0.0.69.js → @xterm.CJZZM5vf.0.0.70.js} +0 -0
- /package/dist/interface/js/{axios.lj9VQs0f.0.0.69.js → axios.lj9VQs0f.0.0.70.js} +0 -0
- /package/dist/interface/js/{birpc.l0sNRNKZ.0.0.69.js → birpc.l0sNRNKZ.0.0.70.js} +0 -0
- /package/dist/interface/js/{compare-versions.DqEOhma6.0.0.69.js → compare-versions.DqEOhma6.0.0.70.js} +0 -0
- /package/dist/interface/js/{dijkstrajs.C00ieaqj.0.0.69.js → dijkstrajs.C00ieaqj.0.0.70.js} +0 -0
- /package/dist/interface/js/{engine.io-parser.BiEtp6m2.0.0.69.js → engine.io-parser.BiEtp6m2.0.0.70.js} +0 -0
- /package/dist/interface/js/{entities.C20TfXL6.0.0.69.js → entities.C20TfXL6.0.0.70.js} +0 -0
- /package/dist/interface/js/{ev-emitter.X5f1qa-c.0.0.69.js → ev-emitter.X5f1qa-c.0.0.70.js} +0 -0
- /package/dist/interface/js/{get-size.D1dS-IaP.0.0.69.js → get-size.D1dS-IaP.0.0.70.js} +0 -0
- /package/dist/interface/js/{hookable.l0sNRNKZ.0.0.69.js → hookable.l0sNRNKZ.0.0.70.js} +0 -0
- /package/dist/interface/js/{mdurl.k9Sl0PQj.0.0.69.js → mdurl.k9Sl0PQj.0.0.70.js} +0 -0
- /package/dist/interface/js/{perfect-debounce.l0sNRNKZ.0.0.69.js → perfect-debounce.l0sNRNKZ.0.0.70.js} +0 -0
- /package/dist/interface/js/{primelocale.Bga3dOQu.0.0.69.js → primelocale.Bga3dOQu.0.0.70.js} +0 -0
- /package/dist/interface/js/{punycode.js.Dj65hjkv.0.0.69.js → punycode.js.Dj65hjkv.0.0.70.js} +0 -0
- /package/dist/interface/js/{react-dnd-html5-backend.1HQjlkwI.0.0.69.js → react-dnd-html5-backend.1HQjlkwI.0.0.70.js} +0 -0
- /package/dist/interface/js/{redux.BFxtlG_c.0.0.69.js → redux.BFxtlG_c.0.0.70.js} +0 -0
- /package/dist/interface/js/{tslib.9k7AwCpt.0.0.69.js → tslib.9k7AwCpt.0.0.70.js} +0 -0
- /package/dist/interface/js/{uc.micro.kMc2yuuw.0.0.69.js → uc.micro.kMc2yuuw.0.0.70.js} +0 -0
- /package/dist/interface/js/{uuid.C6aID195.0.0.69.js → uuid.C6aID195.0.0.70.js} +0 -0
- /package/dist/interface/js/{vue.l0sNRNKZ.0.0.69.js → vue.l0sNRNKZ.0.0.70.js} +0 -0
- /package/dist/interface/js/{zod.2bfLsWMZ.0.0.69.js → zod.2bfLsWMZ.0.0.70.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as de,a as fe}from"./primevue.
|
|
1
|
+
import{p as de,a as fe}from"./primevue.BVVo-ukB.0.0.70.js";import{_ as me}from"./CuiConsole.B-YJZ4uY.0.0.70.js";import{H as f,t as he,y as ye,j as we,p as _e}from"./highlight.js.DTPofZhc.0.0.70.js";import{M as ke}from"./markdown-it.VQvmcJVu.0.0.70.js";import{f as Qe,h as Pe,a3 as Ve,c as Ce}from"./main.D2NZuTnM.0.0.70.js";import{S as be}from"./system.Ccn9lMgI.0.0.70.js";import{u as Se}from"./vue-i18n.BLwVbi61.0.0.70.js";import{B as Te,t as Le,ac as Re,z as xe,r as P,k as m,i as D,w as x,o as Ne,a7 as Ae,c as V,d as C,h as o,e as N,I as z,R as A,f as Be}from"./@vue.BsSvBeCe.0.0.70.js";const l=u=>"id"in u&&!("type"in u),b=u=>"type"in u,Ie={key:0},je={class:"text-base font-semibold border-b-[1px] border-color mb-3 pb-3"},He=["innerHTML"],Me={key:1},Ee={class:"cui-label"},Fe={key:2,class:"w-full h-full relative"},$e={key:3,class:"w-full h-full p-4 flex items-center justify-center"},Oe=Te({__name:"VersionsHandler",props:{target:{},installVersion:{},isNewPlugin:{type:Boolean}},setup(u,{expose:U}){f.registerLanguage("typescript",he),f.registerLanguage("yaml",ye),f.registerLanguage("json",we),f.registerLanguage("python",_e);const r=new Ve,h=new be,B=Ce(),W=Qe(),{t:c}=Se(),{mdBreakpoint:I}=Pe(),g=D("dialogRef"),y=D("dialogRefProps"),J=u,{target:t,installVersion:i,isNewPlugin:j}=Le(J),w=Re("consoleRef"),v=xe(),a=P(),p=P(!1),d=P(!1),L=P(!1),R=P(!1);r.toggleQueryActivator("getPluginVersionsQuery",!1),r.toggleQueryActivator("getPluginChangelogQuery",!1),h.toggleQueryActivator("checkVersionQuery",!1);const q=m(()=>({pluginversion:a.value||i.value})),{data:G,isFetching:H}=h.checkVersionQuery(),{data:K,isFetching:M}=r.getPluginVersionsQuery(l(t.value)?t.value.pluginName:""),{data:O,isFetching:X,suspense:Y}=r.getPluginChangelogQuery(l(t.value)?t.value.pluginName:"",q),{mutate:Z,isPending:ee}=h.restartServerQuery(),{mutate:te,isPending:ne}=r.restartPluginQuery(),{mutateAsync:oe,isPending:se}=r.installPluginQuery(),{mutateAsync:ae,isPending:le}=h.updateServerQuery(),re=m(()=>M.value||H.value),ie=m(()=>{var e;return!!((e=y.loading)!=null&&e.value||M.value||H.value||X.value||se.value||le.value||ne.value||ee.value)}),E=m(()=>{var e,n;return l(t.value)?((e=K.value)==null?void 0:e.versions)||[]:b(t.value)?((n=G.value)==null?void 0:n.versions.toReversed())||[]:[]}),F=m(()=>{if(l(t.value))return O.value}),ue=m(()=>({fontSize:I.value?12:14}));x(E,e=>{e.length&&(a.value=e[0])},{immediate:!0,deep:!0}),x(p,e=>{e?g.value.data.dialogContentClass="not-md:px-0 h-full md:h-[50vh]":delete g.value.data.dialogContentClass}),x(I,e=>{!e&&(p.value||d.value)&&g.value.options.props&&(g.value.options.props.style.height="60vh",g.value.options.props.style.width="70vh",g.value.options.props.style.maxWidth="100%")});const $=ke("commonmark",{highlight(e,n){if(n&&f.getLanguage(n))try{return'<pre><code class="hljs">'+f.highlight(e,{language:n,ignoreIllegals:!0}).value+"</code></pre>"}catch{}return'<pre><code class="hljs">'+$.utils.escapeHtml(e)+"</code></pre>"}}),ce=()=>{var n,k,S,T;p.value=!0,v.value=W.connectToNamespace("/logs");const e=l(t.value)?`stdout/${t.value.pluginName}`:"stdout/server";(n=v.value)==null||n.socket.on(e,s=>{var Q;(Q=w.value)==null||Q.writeTerminal(s)}),(k=v.value)==null||k.socket.on("stdout",s=>{var Q;(Q=w.value)==null||Q.writeTerminal(s)}),(S=v.value)==null||S.socket.on("disconnect",()=>{var s;(s=w.value)==null||s.writeTerminal(`
|
|
2
2
|
\rWebsocket failed to connect! Is the server running?\r
|
|
3
3
|
\r
|
|
4
4
|
`)}),(T=v.value)==null||T.socket.on("clear-log",()=>{var s;(s=w.value)==null||s.clearTerminal()})},ge=async()=>{if(l(t.value))try{r.toggleQueryActivator("getPluginChangelogQuery",!0);const{isError:e}=await Y();if(e)throw new Error("Failed to fetch changelog");d.value=!0}catch{}else b(t.value)},_=async e=>{if(!d.value&&(await ge(),d.value)){y.confirmText&&(y.confirmText.value=c("components.form.button.continue")),R.value=!0;return}ce();try{l(t.value)?await oe({pluginData:{pluginname:t.value.pluginName,pluginversion:e}}):b(t.value)&&await ae({serverData:{version:e}}),L.value=!0,y.confirmText&&(y.confirmText.value=j.value?c("components.form.button.finish"):c("components.form.button.restart"))}catch(n){B.add({severity:"error",summary:c("components.toast.title_error"),detail:n.message,life:3e3}),console.error(n)}},ve=()=>{l(t.value)?te({pluginName:t.value.pluginName}):b(t.value)&&Z()},pe=async()=>{if(!(L.value&&j.value)){if(L.value){ve();return}return R.value?(R.value=!1,i.value?await _(i.value):a.value&&await _(a.value),null):i.value?(await _(i.value),null):a.value?(await _(a.value),null):(B.add({severity:"error",summary:c("components.toast.title_error"),detail:c("components.toast.no_version_selected"),life:3e3}),null)}};return Ne(()=>{i.value?_(i.value):l(t.value)?r.toggleQueryActivator("getPluginVersionsQuery",!0):b(t.value)&&h.toggleQueryActivator("checkVersionQuery",!0)}),Ae(()=>{var e,n;(n=(e=v.value)==null?void 0:e.end)==null||n.call(e)}),U({isLoading:ie,onConfirm:pe}),(e,n)=>{const k=de,S=me,T=fe;return C(),V("div",null,[o(d)&&o(F)&&!o(p)?(C(),V("div",Ie,[N("h3",je,z(e.$t("components.form.label.changelog")),1),N("div",{class:"markdown-body",innerHTML:o($).render(o(F))},null,8,He)])):!o(i)&&!o(p)&&!o(d)?(C(),V("div",Me,[N("label",Ee,z(e.$t("components.form.label.version")),1),A(k,{modelValue:o(a),"onUpdate:modelValue":n[0]||(n[0]=s=>Be(a)?a.value=s:null),options:o(E),loading:o(re),class:"w-full mt-2"},null,8,["modelValue","options","loading"])])):o(p)?(C(),V("div",Fe,[A(S,{ref_key:"consoleRef",ref:w,options:o(ue),class:"bg-black !w-full"},null,8,["options"])])):(C(),V("div",$e,[A(T,{"stroke-width":"5",class:"w-[30px] h-[30px]"})]))])}}});export{Oe as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Le}from"./@xterm.
|
|
1
|
+
import{g as Le}from"./@xterm.CJZZM5vf.0.0.70.js";function xe(le,de){for(var R=0;R<de.length;R++){const k=de[R];if(typeof k!="string"&&!Array.isArray(k)){for(const z in k)if(z!=="default"&&!(z in le)){const E=Object.getOwnPropertyDescriptor(k,z);E&&Object.defineProperty(le,z,E.get?E:{enumerable:!0,get:()=>k[z]})}}}return Object.freeze(Object.defineProperty(le,Symbol.toStringTag,{value:"Module"}))}var ve={exports:{}},$e;function Te(){return $e||($e=1,function(le,de){(function(){var R="ace",k=function(){return this}();!k&&typeof window<"u"&&(k=window);var z=function(i,o,r){if(typeof i!="string"){z.original?z.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(r=o),z.modules[i]||(z.payloads[i]=r,z.modules[i]=null)};z.modules={},z.payloads={};var E=function(i,o,r){if(typeof o=="string"){var t=l(i,o);if(t!=null)return r&&r(),t}else if(Object.prototype.toString.call(o)==="[object Array]"){for(var e=[],n=0,s=o.length;n<s;++n){var h=l(i,o[n]);if(h==null&&L.original)return;e.push(h)}return r&&r.apply(null,e)||!0}},L=function(i,o){var r=E("",i,o);return r==null&&L.original?L.original.apply(this,arguments):r},A=function(i,o){if(o.indexOf("!")!==-1){var r=o.split("!");return A(i,r[0])+"!"+A(i,r[1])}if(o.charAt(0)=="."){var t=i.split("/").slice(0,-1).join("/");for(o=t+"/"+o;o.indexOf(".")!==-1&&e!=o;){var e=o;o=o.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return o},l=function(i,o){o=A(i,o);var r=z.modules[o];if(!r){if(r=z.payloads[o],typeof r=="function"){var t={},e={id:o,uri:"",exports:t,packaged:!0},n=function(h,f){return E(o,h,f)},s=r(n,t,e);t=s||e.exports,z.modules[o]=t,delete z.payloads[o]}r=z.modules[o]=t||r}return r};function u(i){var o=k;k[i]||(k[i]={}),o=k[i],(!o.define||!o.define.packaged)&&(z.original=o.define,o.define=z,o.define.packaged=!0),(!o.require||!o.require.packaged)&&(L.original=o.require,o.require=L,o.require.packaged=!0)}u(R)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(R,k,z){function E(L,A,l){Object.defineProperty(L,A,{value:l,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||E(String.prototype,"startsWith",function(L,A){return A=A||0,this.lastIndexOf(L,A)===A}),String.prototype.endsWith||E(String.prototype,"endsWith",function(L,A){var l=this;(A===void 0||A>l.length)&&(A=l.length),A-=L.length;var u=l.indexOf(L,A);return u!==-1&&u===A}),String.prototype.repeat||E(String.prototype,"repeat",function(L){for(var A="",l=this;L>0;)L&1&&(A+=l),(L>>=1)&&(l+=l);return A}),String.prototype.includes||E(String.prototype,"includes",function(L,A){return this.indexOf(L,A)!=-1}),Object.assign||(Object.assign=function(L){if(L==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(L),l=1;l<arguments.length;l++){var u=arguments[l];u!=null&&Object.keys(u).forEach(function(i){A[i]=u[i]})}return A}),Object.values||(Object.values=function(L){return Object.keys(L).map(function(A){return L[A]})}),Array.prototype.find||E(Array.prototype,"find",function(L){for(var A=this.length,l=arguments[1],u=0;u<A;u++){var i=this[u];if(L.call(l,i,u,this))return i}}),Array.prototype.findIndex||E(Array.prototype,"findIndex",function(L){for(var A=this.length,l=arguments[1],u=0;u<A;u++){var i=this[u];if(L.call(l,i,u,this))return u}}),Array.prototype.includes||E(Array.prototype,"includes",function(L,A){return this.indexOf(L,A)!=-1}),Array.prototype.fill||E(Array.prototype,"fill",function(L){for(var A=this,l=A.length>>>0,u=arguments[1],i=u>>0,o=i<0?Math.max(l+i,0):Math.min(i,l),r=arguments[2],t=r===void 0?l:r>>0,e=t<0?Math.max(l+t,0):Math.min(t,l);o<e;)A[o]=L,o++;return A}),Array.of||E(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(R,k,z){R("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(R,k,z){k.deepCopy=function E(L){if(typeof L!="object"||!L)return L;var A;if(Array.isArray(L)){A=[];for(var l=0;l<L.length;l++)A[l]=E(L[l]);return A}if(Object.prototype.toString.call(L)!=="[object Object]")return L;A={};for(var l in L)A[l]=E(L[l]);return A}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(R,k,z){k.last=function(A){return A[A.length-1]},k.stringReverse=function(A){return A.split("").reverse().join("")},k.stringRepeat=function(A,l){for(var u="";l>0;)l&1&&(u+=A),(l>>=1)&&(A+=A);return u};var E=/^\s\s*/,L=/\s\s*$/;k.stringTrimLeft=function(A){return A.replace(E,"")},k.stringTrimRight=function(A){return A.replace(L,"")},k.copyObject=function(A){var l={};for(var u in A)l[u]=A[u];return l},k.copyArray=function(A){for(var l=[],u=0,i=A.length;u<i;u++)A[u]&&typeof A[u]=="object"?l[u]=this.copyObject(A[u]):l[u]=A[u];return l},k.deepCopy=R("./deep_copy").deepCopy,k.arrayToMap=function(A){for(var l={},u=0;u<A.length;u++)l[A[u]]=1;return l},k.createMap=function(A){var l=Object.create(null);for(var u in A)l[u]=A[u];return l},k.arrayRemove=function(A,l){for(var u=0;u<=A.length;u++)l===A[u]&&A.splice(u,1)},k.escapeRegExp=function(A){return A.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},k.escapeHTML=function(A){return(""+A).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},k.getMatchOffsets=function(A,l){var u=[];return A.replace(l,function(i){u.push({offset:arguments[arguments.length-2],length:i.length})}),u},k.deferredCall=function(A){var l=null,u=function(){l=null,A()},i=function(o){return i.cancel(),l=setTimeout(u,o||0),i};return i.schedule=i,i.call=function(){return this.cancel(),A(),i},i.cancel=function(){return clearTimeout(l),l=null,i},i.isPending=function(){return l},i},k.delayedCall=function(A,l){var u=null,i=function(){u=null,A()},o=function(r){u==null&&(u=setTimeout(i,r||l))};return o.delay=function(r){u&&clearTimeout(u),u=setTimeout(i,r||l)},o.schedule=o,o.call=function(){this.cancel(),A()},o.cancel=function(){u&&clearTimeout(u),u=null},o.isPending=function(){return u},o},k.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},k.skipEmptyMatch=function(A,l,u){return u&&A.codePointAt(l)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(R,k,z){k.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},k.getOS=function(){return k.isMac?k.OS.MAC:k.isLinux?k.OS.LINUX:k.OS.WINDOWS};var E=typeof navigator=="object"?navigator:{},L=(/mac|win|linux/i.exec(E.platform)||["other"])[0].toLowerCase(),A=E.userAgent||"",l=E.appName||"";k.isWin=L=="win",k.isMac=L=="mac",k.isLinux=L=="linux",k.isIE=l=="Microsoft Internet Explorer"||l.indexOf("MSAppHost")>=0?parseFloat((A.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((A.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),k.isOldIE=k.isIE&&k.isIE<9,k.isGecko=k.isMozilla=A.match(/ Gecko\/\d+/),k.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",k.isWebKit=parseFloat(A.split("WebKit/")[1])||void 0,k.isChrome=parseFloat(A.split(" Chrome/")[1])||void 0,k.isSafari=parseFloat(A.split(" Safari/")[1])&&!k.isChrome||void 0,k.isEdge=parseFloat(A.split(" Edge/")[1])||void 0,k.isAIR=A.indexOf("AdobeAIR")>=0,k.isAndroid=A.indexOf("Android")>=0,k.isChromeOS=A.indexOf(" CrOS ")>=0,k.isIOS=/iPad|iPhone|iPod/.test(A)&&!window.MSStream,k.isIOS&&(k.isMac=!0),k.isMobile=k.isIOS||k.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(R,k,z){var E=R("./useragent"),L="http://www.w3.org/1999/xhtml";k.buildDom=function r(t,e,n){if(typeof t=="string"&&t){var s=document.createTextNode(t);return e&&e.appendChild(s),s}if(!Array.isArray(t))return t&&t.appendChild&&e&&e.appendChild(t),t;if(typeof t[0]!="string"||!t[0]){for(var h=[],f=0;f<t.length;f++){var C=r(t[f],e,n);C&&h.push(C)}return h}var v=document.createElement(t[0]),p=t[1],a=1;p&&typeof p=="object"&&!Array.isArray(p)&&(a=2);for(var f=a;f<t.length;f++)r(t[f],v,n);return a==2&&Object.keys(p).forEach(function(m){var S=p[m];m==="class"?v.className=Array.isArray(S)?S.join(" "):S:typeof S=="function"||m=="value"||m[0]=="$"?v[m]=S:m==="ref"?n&&(n[S]=v):m==="style"?typeof S=="string"&&(v.style.cssText=S):S!=null&&v.setAttribute(m,S)}),e&&e.appendChild(v),v},k.getDocumentHead=function(r){return r||(r=document),r.head||r.getElementsByTagName("head")[0]||r.documentElement},k.createElement=function(r,t){return document.createElementNS?document.createElementNS(t||L,r):document.createElement(r)},k.removeChildren=function(r){r.innerHTML=""},k.createTextNode=function(r,t){var e=t?t.ownerDocument:document;return e.createTextNode(r)},k.createFragment=function(r){var t=r?r.ownerDocument:document;return t.createDocumentFragment()},k.hasCssClass=function(r,t){var e=(r.className+"").split(/\s+/g);return e.indexOf(t)!==-1},k.addCssClass=function(r,t){k.hasCssClass(r,t)||(r.className+=" "+t)},k.removeCssClass=function(r,t){for(var e=r.className.split(/\s+/g);;){var n=e.indexOf(t);if(n==-1)break;e.splice(n,1)}r.className=e.join(" ")},k.toggleCssClass=function(r,t){for(var e=r.className.split(/\s+/g),n=!0;;){var s=e.indexOf(t);if(s==-1)break;n=!1,e.splice(s,1)}return n&&e.push(t),r.className=e.join(" "),n},k.setCssClass=function(r,t,e){e?k.addCssClass(r,t):k.removeCssClass(r,t)},k.hasCssString=function(r,t){var e=0,n;if(t=t||document,n=t.querySelectorAll("style")){for(;e<n.length;)if(n[e++].id===r)return!0}},k.removeElementById=function(r,t){t=t||document,t.getElementById(r)&&t.getElementById(r).remove()};var A,l=[];k.useStrictCSP=function(r){A=r,r==!1?u():l||(l=[])};function u(){var r=l;l=null,r&&r.forEach(function(t){i(t[0],t[1])})}function i(r,t,e){if(!(typeof document>"u")){if(l){if(e)u();else if(e===!1)return l.push([r,t])}if(!A){var n=e;!e||!e.getRootNode?n=document:(n=e.getRootNode(),(!n||n==e)&&(n=document));var s=n.ownerDocument||n;if(t&&k.hasCssString(t,n))return null;t&&(r+=`
|
|
2
2
|
/*# sourceURL=ace/css/`+t+" */");var h=k.createElement("style");h.appendChild(s.createTextNode(r)),t&&(h.id=t),n==s&&(n=k.getDocumentHead(s)),n.insertBefore(h,n.firstChild)}}}if(k.importCssString=i,k.importCssStylsheet=function(r,t){k.buildDom(["link",{rel:"stylesheet",href:r}],k.getDocumentHead(t))},k.scrollbarWidth=function(r){var t=k.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var e=k.createElement("ace_outer"),n=e.style;n.position="absolute",n.left="-10000px",n.overflow="hidden",n.width="200px",n.minWidth="0px",n.height="150px",n.display="block",e.appendChild(t);var s=r&&r.documentElement||document&&document.documentElement;if(!s)return 0;s.appendChild(e);var h=t.offsetWidth;n.overflow="scroll";var f=t.offsetWidth;return h===f&&(f=e.clientWidth),s.removeChild(e),h-f},k.computedStyle=function(r,t){return window.getComputedStyle(r,"")||{}},k.setStyle=function(r,t,e){r[t]!==e&&(r[t]=e)},k.HAS_CSS_ANIMATION=!1,k.HAS_CSS_TRANSFORMS=!1,k.HI_DPI=E.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,E.isChromeOS&&(k.HI_DPI=!1),typeof document<"u"){var o=document.createElement("div");k.HI_DPI&&o.style.transform!==void 0&&(k.HAS_CSS_TRANSFORMS=!0),!E.isEdge&&typeof o.style.animationName<"u"&&(k.HAS_CSS_ANIMATION=!0),o=null}k.HAS_CSS_TRANSFORMS?k.translate=function(r,t,e){r.style.transform="translate("+Math.round(t)+"px, "+Math.round(e)+"px)"}:k.translate=function(r,t,e){r.style.top=Math.round(e)+"px",r.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(R,k,z){/*
|
|
3
3
|
* based on code from:
|
|
4
4
|
*
|
|
@@ -982,7 +982,7 @@ import{g as Le}from"./@xterm.DHnCBlz-.0.0.69.js";function xe(le,de){for(var R=0;
|
|
|
982
982
|
border-left-color: transparent!important;
|
|
983
983
|
top: -5px;
|
|
984
984
|
}
|
|
985
|
-
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(R,k,z){R("./loader_build")(k);var E=R("./lib/dom"),L=R("./range").Range,A=R("./editor").Editor,l=R("./edit_session").EditSession,u=R("./undomanager").UndoManager,i=R("./virtual_renderer").VirtualRenderer;R("./worker/worker_client"),R("./keyboard/hash_handler"),R("./placeholder"),R("./multi_select"),R("./mode/folding/fold_mode"),R("./theme/textmate"),R("./ext/error_marker"),k.config=R("./config"),k.edit=function(r,t){if(typeof r=="string"){var e=r;if(r=document.getElementById(e),!r)throw new Error("ace.edit can't find div #"+e)}if(r&&r.env&&r.env.editor instanceof A)return r.env.editor;var n="";if(r&&/input|textarea/i.test(r.tagName)){var s=r;n=s.value,r=E.createElement("pre"),s.parentNode.replaceChild(r,s)}else r&&(n=r.textContent,r.innerHTML="");var h=k.createEditSession(n),f=new A(new i(r),h,t),C={document:h,editor:f,onResize:f.resize.bind(f,null)};return s&&(C.textarea=s),f.on("destroy",function(){C.editor.container.env=null}),f.container.env=f.env=C,f},k.createEditSession=function(r,t){var e=new l(r,t);return e.setUndoManager(new u),e},k.Range=L,k.Editor=A,k.EditSession=l,k.UndoManager=u,k.VirtualRenderer=i;var o=k.config.version;k.version=o}),function(){ace.require(["ace/ace"],function(R){R&&(R.config.init(!0),R.define=ace.define);var k=function(){return this}();!k&&typeof window<"u"&&(k=window),!k&&typeof self<"u"&&(k=self),k.ace||(k.ace=R);for(var z in R)R.hasOwnProperty(z)&&(k.ace[z]=R[z]);k.ace.default=k.ace,le&&(le.exports=k.ace)})}()}(ve)),ve.exports}var Se=Te();const ke=Le(Se),Ie=xe({__proto__:null,default:ke},[Se]),_e="/assets/mode-yaml.CIYL8U3d.0.0.
|
|
985
|
+
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(R,k,z){R("./loader_build")(k);var E=R("./lib/dom"),L=R("./range").Range,A=R("./editor").Editor,l=R("./edit_session").EditSession,u=R("./undomanager").UndoManager,i=R("./virtual_renderer").VirtualRenderer;R("./worker/worker_client"),R("./keyboard/hash_handler"),R("./placeholder"),R("./multi_select"),R("./mode/folding/fold_mode"),R("./theme/textmate"),R("./ext/error_marker"),k.config=R("./config"),k.edit=function(r,t){if(typeof r=="string"){var e=r;if(r=document.getElementById(e),!r)throw new Error("ace.edit can't find div #"+e)}if(r&&r.env&&r.env.editor instanceof A)return r.env.editor;var n="";if(r&&/input|textarea/i.test(r.tagName)){var s=r;n=s.value,r=E.createElement("pre"),s.parentNode.replaceChild(r,s)}else r&&(n=r.textContent,r.innerHTML="");var h=k.createEditSession(n),f=new A(new i(r),h,t),C={document:h,editor:f,onResize:f.resize.bind(f,null)};return s&&(C.textarea=s),f.on("destroy",function(){C.editor.container.env=null}),f.container.env=f.env=C,f},k.createEditSession=function(r,t){var e=new l(r,t);return e.setUndoManager(new u),e},k.Range=L,k.Editor=A,k.EditSession=l,k.UndoManager=u,k.VirtualRenderer=i;var o=k.config.version;k.version=o}),function(){ace.require(["ace/ace"],function(R){R&&(R.config.init(!0),R.define=ace.define);var k=function(){return this}();!k&&typeof window<"u"&&(k=window),!k&&typeof self<"u"&&(k=self),k.ace||(k.ace=R);for(var z in R)R.hasOwnProperty(z)&&(k.ace[z]=R[z]);k.ace.default=k.ace,le&&(le.exports=k.ace)})}()}(ve)),ve.exports}var Se=Te();const ke=Le(Se),Ie=xe({__proto__:null,default:ke},[Se]),_e="/assets/mode-yaml.CIYL8U3d.0.0.70.js",De="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL3R3aWxpZ2h0LWNzcyIsWyJyZXF1aXJlIiwiZXhwb3J0cyIsIm1vZHVsZSJdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpe21vZHVsZS5leHBvcnRzID0gIi5hY2UtdHdpbGlnaHQgLmFjZV9ndXR0ZXIge1xuICBiYWNrZ3JvdW5kOiAjMjMyMzIzO1xuICBjb2xvcjogI0UyRTJFMlxufVxuXG4uYWNlLXR3aWxpZ2h0IC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzIzMjMyM1xufVxuXG4uYWNlLXR3aWxpZ2h0IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzE0MTQxNDtcbiAgY29sb3I6ICNGOEY4Rjhcbn1cblxuLmFjZS10d2lsaWdodCAuYWNlX2N1cnNvciB7XG4gIGNvbG9yOiAjQTdBN0E3XG59XG5cbi5hY2UtdHdpbGlnaHQgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiByZ2JhKDIyMSwgMjQwLCAyNTUsIDAuMjApXG59XG5cbi5hY2UtdHdpbGlnaHQuYWNlX211bHRpc2VsZWN0IC5hY2Vfc2VsZWN0aW9uLmFjZV9zdGFydCB7XG4gIGJveC1zaGFkb3c6IDAgMCAzcHggMHB4ICMxNDE0MTQ7XG59XG5cbi5hY2UtdHdpbGlnaHQgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zdGVwIHtcbiAgYmFja2dyb3VuZDogcmdiKDEwMiwgODIsIDApXG59XG5cbi5hY2UtdHdpbGlnaHQgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMjUpXG59XG5cbi5hY2UtdHdpbGlnaHQgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9hY3RpdmUtbGluZSB7XG4gIGJhY2tncm91bmQ6IHJnYmEoMjU1LCAyNTUsIDI1NSwgMC4wMzEpXG59XG5cbi5hY2UtdHdpbGlnaHQgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDMxKVxufVxuXG4uYWNlLXR3aWxpZ2h0IC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc2VsZWN0ZWQtd29yZCB7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHJnYmEoMjIxLCAyNDAsIDI1NSwgMC4yMClcbn1cblxuLmFjZS10d2lsaWdodCAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMjUpXG59XG5cbi5hY2UtdHdpbGlnaHQgLmFjZV9rZXl3b3JkLFxuLmFjZS10d2lsaWdodCAuYWNlX21ldGEge1xuICBjb2xvcjogI0NEQTg2OVxufVxuXG4uYWNlLXR3aWxpZ2h0IC5hY2VfY29uc3RhbnQsXG4uYWNlLXR3aWxpZ2h0IC5hY2VfY29uc3RhbnQuYWNlX2NoYXJhY3Rlcixcbi5hY2UtdHdpbGlnaHQgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLmFjZV9lc2NhcGUsXG4uYWNlLXR3aWxpZ2h0IC5hY2VfY29uc3RhbnQuYWNlX290aGVyLFxuLmFjZS10d2lsaWdodCAuYWNlX2hlYWRpbmcsXG4uYWNlLXR3aWxpZ2h0IC5hY2VfbWFya3VwLmFjZV9oZWFkaW5nLFxuLmFjZS10d2lsaWdodCAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50IHtcbiAgY29sb3I6ICNDRjZBNENcbn1cblxuLmFjZS10d2lsaWdodCAuYWNlX2ludmFsaWQuYWNlX2lsbGVnYWwge1xuICBjb2xvcjogI0Y4RjhGODtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSg4NiwgNDUsIDg2LCAwLjc1KVxufVxuXG4uYWNlLXR3aWxpZ2h0IC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lO1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRDJBOEExXG59XG5cbi5hY2UtdHdpbGlnaHQgLmFjZV9zdXBwb3J0IHtcbiAgY29sb3I6ICM5Qjg1OURcbn1cblxuLmFjZS10d2lsaWdodCAuYWNlX2ZvbGQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUM4ODVCO1xuICBib3JkZXItY29sb3I6ICNGOEY4Rjhcbn1cblxuLmFjZS10d2lsaWdodCAuYWNlX3N1cHBvcnQuYWNlX2Z1bmN0aW9uIHtcbiAgY29sb3I6ICNEQUQwODVcbn1cblxuLmFjZS10d2lsaWdodCAuYWNlX2xpc3QsXG4uYWNlLXR3aWxpZ2h0IC5hY2VfbWFya3VwLmFjZV9saXN0LFxuLmFjZS10d2lsaWdodCAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5RUU5OFxufVxuXG4uYWNlLXR3aWxpZ2h0IC5hY2VfZW50aXR5LmFjZV9uYW1lLmFjZV9mdW5jdGlvbixcbi5hY2UtdHdpbGlnaHQgLmFjZV9tZXRhLmFjZV90YWcge1xuICBjb2xvcjogI0FDODg1QlxufVxuXG4uYWNlLXR3aWxpZ2h0IC5hY2Vfc3RyaW5nIHtcbiAgY29sb3I6ICM4RjlENkFcbn1cblxuLmFjZS10d2lsaWdodCAuYWNlX3N0cmluZy5hY2VfcmVnZXhwIHtcbiAgY29sb3I6ICNFOUMwNjJcbn1cblxuLmFjZS10d2lsaWdodCAuYWNlX2NvbW1lbnQge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNUY1QTYwXG59XG5cbi5hY2UtdHdpbGlnaHQgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjNzU4N0E2XG59XG5cbi5hY2UtdHdpbGlnaHQgLmFjZV94bWwtcGUge1xuICBjb2xvcjogIzQ5NDk0OVxufVxuXG4uYWNlLXR3aWxpZ2h0IC5hY2VfaW5kZW50LWd1aWRlIHtcbiAgYmFja2dyb3VuZDogdXJsKGRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBQUVBQUFBQ0NBWUFBQUNaZ2JZbkFBQUFFa2xFUVZRSW1XTVFFUkZwWUxDMXRmMFBBQWdPQW5Qbmh4eWlBQUFBQUVsRlRrU3VRbUNDKSByaWdodCByZXBlYXQteVxufVxuXG4uYWNlLXR3aWxpZ2h0IC5hY2VfaW5kZW50LWd1aWRlLWFjdGl2ZSB7XG4gIGJhY2tncm91bmQ6IHVybChkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFFQUFBQUNDQVlBQUFDWmdiWW5BQUFBRWtsRVFWUUlXMlBRMWRYOXp6Qno1c3ovQUJDY0JGRmVudExsQUFBQUFFbEZUa1N1UW1DQykgcmlnaHQgcmVwZWF0LXk7XG59XG4iOwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvdGhlbWUvdHdpbGlnaHQiLFsicmVxdWlyZSIsImV4cG9ydHMiLCJtb2R1bGUiLCJhY2UvdGhlbWUvdHdpbGlnaHQtY3NzIiwiYWNlL2xpYi9kb20iXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXtleHBvcnRzLmlzRGFyayA9IHRydWU7CmV4cG9ydHMuY3NzQ2xhc3MgPSAiYWNlLXR3aWxpZ2h0IjsKZXhwb3J0cy5jc3NUZXh0ID0gcmVxdWlyZSgiLi90d2lsaWdodC1jc3MiKTsKdmFyIGRvbSA9IHJlcXVpcmUoIi4uL2xpYi9kb20iKTsKZG9tLmltcG9ydENzc1N0cmluZyhleHBvcnRzLmNzc1RleHQsIGV4cG9ydHMuY3NzQ2xhc3MsIGZhbHNlKTsKCn0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvdHdpbGlnaHQiXSwgZnVuY3Rpb24obSkgewogICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG1vZHVsZSA9PSAib2JqZWN0IiAmJiB0eXBlb2YgZXhwb3J0cyA9PSAib2JqZWN0IiAmJiBtb2R1bGUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gbTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgfSkoKTsKICAgICAgICAgICAg",Ne="/assets/worker-base.jEXLGV2h.0.0.70.js",Oe="/assets/worker-yaml.B3uUYINB.0.0.70.js";var ye={exports:{}},Ce;function Ee(){return Ce||(Ce=1,function(le,de){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(R,k,z){var E=R("./lib/dom"),L=R("./lib/oop"),A=R("./lib/event_emitter").EventEmitter,l=R("./lib/lang"),u=R("./range").Range,i=R("./range_list").RangeList,o=R("./keyboard/hash_handler").HashHandler,r=R("./tokenizer").Tokenizer,t=R("./clipboard"),e={CURRENT_WORD:function(a){return a.session.getTextRange(a.session.getWordRange())},SELECTION:function(a,m,S){var $=a.session.getTextRange();return S?$.replace(/\n\r?([ \t]*\S)/g,`
|
|
986
986
|
`+S+"$1"):$},CURRENT_LINE:function(a){return a.session.getLine(a.getCursorPosition().row)},PREV_LINE:function(a){return a.session.getLine(a.getCursorPosition().row-1)},LINE_INDEX:function(a){return a.getCursorPosition().row},LINE_NUMBER:function(a){return a.getCursorPosition().row+1},SOFT_TABS:function(a){return a.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(a){return a.session.getTabSize()},CLIPBOARD:function(a){return t.getText&&t.getText()},FILENAME:function(a){return/[^/\\]*$/.exec(this.FILEPATH(a))[0]},FILENAME_BASE:function(a){return/[^/\\]*$/.exec(this.FILEPATH(a))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(a){return this.FILEPATH(a).replace(/[^/\\]*$/,"")},FILEPATH:function(a){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(a){var m=a.session.$mode||{};return m.blockComment&&m.blockComment.start||""},BLOCK_COMMENT_END:function(a){var m=a.session.$mode||{};return m.blockComment&&m.blockComment.end||""},LINE_COMMENT:function(a){var m=a.session.$mode||{};return m.lineCommentStart||""},CURRENT_YEAR:n.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:n.bind(null,{year:"2-digit"}),CURRENT_MONTH:n.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:n.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:n.bind(null,{month:"short"}),CURRENT_DATE:n.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:n.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:n.bind(null,{weekday:"short"}),CURRENT_HOUR:n.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:n.bind(null,{minute:"2-digit"}),CURRENT_SECOND:n.bind(null,{second:"2-digit"})};e.SELECTED_TEXT=e.SELECTION;function n(a){var m=new Date().toLocaleString("en-us",a);return m.length==1?"0"+m:m}var s=function(){function a(){this.snippetMap={},this.snippetNameMap={},this.variables=e}return a.prototype.getTokenizer=function(){return a.$tokenizer||this.createTokenizer()},a.prototype.createTokenizer=function(){function m(w){return w=w.substr(1),/^\d+$/.test(w)?[{tabstopId:parseInt(w,10)}]:[{text:w}]}function S(w){return"(?:[^\\\\"+w+"]|\\\\.)"}var $={regex:"/("+S("/")+"+)/",onMatch:function(w,T,b){var g=b[0];return g.fmtString=!0,g.guard=w.slice(1,-1),g.flag="",""},next:"formatString"};return a.$tokenizer=new r({start:[{regex:/\\./,onMatch:function(w,T,b){var g=w[1];return(g=="}"&&b.length||"`$\\".indexOf(g)!=-1)&&(w=g),[w]}},{regex:/}/,onMatch:function(w,T,b){return[b.length?b.shift():w]}},{regex:/\$(?:\d+|\w+)/,onMatch:m},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(w,T,b){var g=m(w.substr(1));return b.unshift(g[0]),g},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+S("\\|")+"*\\|",onMatch:function(w,T,b){var g=w.slice(1,-1).replace(/\\[,|\\]|,/g,function(d){return d.length==2?d[1]:"\0"}).split("\0").map(function(d){return{value:d}});return b[0].choices=g,[g[0]]},next:"start"},$,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(w,T,b){return b.length&&b[0].expectElse?(b[0].expectElse=!1,b[0].ifEnd={elseEnd:b[0]},[b[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(w,T,b){var g=w[1];return g=="}"&&b.length||"`$\\".indexOf(g)!=-1?w=g:g=="n"?w=`
|
|
987
987
|
`:g=="t"?w=" ":"ulULE".indexOf(g)!=-1&&(w={changeCase:g,local:g>"a"}),[w]}},{regex:"/\\w*}",onMatch:function(w,T,b){var g=b.shift();return g&&(g.flag=w.slice(1,-1)),this.next=g&&g.tabstopId?"start":"",[g||w]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(w,T,b){return[{text:w.slice(1)}]}},{regex:/\${\w+/,onMatch:function(w,T,b){var g={text:w.slice(2)};return b.unshift(g),[g]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(w,T,b){var g=b.shift();return this.next=g&&g.tabstopId?"start":"",[g||w]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(w,T,b){var g=b[0];return g.formatFunction=w.slice(2,-1),[b.shift()]},next:"formatString"},$,{regex:/:[\?\-+]?/,onMatch:function(w,T,b){w[1]=="+"&&(b[0].ifEnd=b[0]),w[1]=="?"&&(b[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),a.$tokenizer},a.prototype.tokenizeTmSnippet=function(m,S){return this.getTokenizer().getLineTokens(m,S).tokens.map(function($){return $.value||$})},a.prototype.getVariableValue=function(m,S,$){if(/^\d+$/.test(S))return(this.variables.__||{})[S]||"";if(/^[A-Z]\d+$/.test(S))return(this.variables[S[0]+"__"]||{})[S.substr(1)]||"";if(S=S.replace(/^TM_/,""),!this.variables.hasOwnProperty(S))return"";var w=this.variables[S];return typeof w=="function"&&(w=this.variables[S](m,S,$)),w??""},a.prototype.tmStrFormat=function(m,S,$){if(!S.fmt)return m;var w=S.flag||"",T=S.guard;T=new RegExp(T,w.replace(/[^gim]/g,""));var b=typeof S.fmt=="string"?this.tokenizeTmSnippet(S.fmt,"formatString"):S.fmt,g=this,d=m.replace(T,function(){var c=g.variables.__;g.variables.__=[].slice.call(arguments);for(var y=g.resolveVariables(b,$),M="E",x=0;x<y.length;x++){var I=y[x];if(typeof I=="object")if(y[x]="",I.changeCase&&I.local){var _=y[x+1];_&&typeof _=="string"&&(I.changeCase=="u"?y[x]=_[0].toUpperCase():y[x]=_[0].toLowerCase(),y[x+1]=_.substr(1))}else I.changeCase&&(M=I.changeCase);else M=="U"?y[x]=I.toUpperCase():M=="L"&&(y[x]=I.toLowerCase())}return g.variables.__=c,y.join("")});return d},a.prototype.tmFormatFunction=function(m,S,$){return S.formatFunction=="upcase"?m.toUpperCase():S.formatFunction=="downcase"?m.toLowerCase():m},a.prototype.resolveVariables=function(m,S){for(var $=[],w="",T=!0,b=0;b<m.length;b++){var g=m[b];if(typeof g=="string"){$.push(g),g==`
|
|
988
988
|
`?(T=!0,w=""):T&&(w=/^\t*/.exec(g)[0],T=/\S/.test(g));continue}if(g){if(T=!1,g.fmtString){var d=m.indexOf(g,b+1);d==-1&&(d=m.length),g.fmt=m.slice(b+1,d),b=d}if(g.text){var c=this.getVariableValue(S,g.text,w)+"";g.fmtString&&(c=this.tmStrFormat(c,g,S)),g.formatFunction&&(c=this.tmFormatFunction(c,g,S)),c&&!g.ifEnd?($.push(c),y(g)):!c&&g.ifEnd&&y(g.ifEnd)}else g.elseEnd?y(g.elseEnd):(g.tabstopId!=null||g.changeCase!=null)&&$.push(g)}}function y(M){var x=m.indexOf(M,b+1);x!=-1&&(b=x)}return $},a.prototype.getDisplayTextForSnippet=function(m,S){var $=h.call(this,m,S);return $.text},a.prototype.insertSnippetForSelection=function(m,S,$){$===void 0&&($={});var w=h.call(this,m,S,$),T=m.getSelectionRange(),b=m.session.replace(T,w.text),g=new f(m),d=m.inVirtualSelectionMode&&m.selection.index;g.addTabstops(w.tabstops,T.start,b,d)},a.prototype.insertSnippet=function(m,S,$){$===void 0&&($={});var w=this;if(m.inVirtualSelectionMode)return w.insertSnippetForSelection(m,S,$);m.forEachSelection(function(){w.insertSnippetForSelection(m,S,$)},null,{keepOrder:!0}),m.tabstopManager&&m.tabstopManager.tabNext()},a.prototype.$getScope=function(m){var S=m.session.$mode.$id||"";if(S=S.split("/").pop(),S==="html"||S==="php"){S==="php"&&!m.session.$mode.inlinePhp&&(S="html");var $=m.getCursorPosition(),w=m.session.getState($.row);typeof w=="object"&&(w=w[0]),w.substring&&(w.substring(0,3)=="js-"?S="javascript":w.substring(0,4)=="css-"?S="css":w.substring(0,4)=="php-"&&(S="php"))}return S},a.prototype.getActiveScopes=function(m){var S=this.$getScope(m),$=[S],w=this.snippetMap;return w[S]&&w[S].includeScopes&&$.push.apply($,w[S].includeScopes),$.push("_"),$},a.prototype.expandWithTab=function(m,S){var $=this,w=m.forEachSelection(function(){return $.expandSnippetForSelection(m,S)},null,{keepOrder:!0});return w&&m.tabstopManager&&m.tabstopManager.tabNext(),w},a.prototype.expandSnippetForSelection=function(m,S){var $=m.getCursorPosition(),w=m.session.getLine($.row),T=w.substring(0,$.column),b=w.substr($.column),g=this.snippetMap,d;return this.getActiveScopes(m).some(function(c){var y=g[c];return y&&(d=this.findMatchingSnippet(y,T,b)),!!d},this),d?(S&&S.dryRun||(m.session.doc.removeInLine($.row,$.column-d.replaceBefore.length,$.column+d.replaceAfter.length),this.variables.M__=d.matchBefore,this.variables.T__=d.matchAfter,this.insertSnippetForSelection(m,d.content),this.variables.M__=this.variables.T__=null),!0):!1},a.prototype.findMatchingSnippet=function(m,S,$){for(var w=m.length;w--;){var T=m[w];if(!(T.startRe&&!T.startRe.test(S))&&!(T.endRe&&!T.endRe.test($))&&!(!T.startRe&&!T.endRe))return T.matchBefore=T.startRe?T.startRe.exec(S):[""],T.matchAfter=T.endRe?T.endRe.exec($):[""],T.replaceBefore=T.triggerRe?T.triggerRe.exec(S)[0]:"",T.replaceAfter=T.endTriggerRe?T.endTriggerRe.exec($)[0]:"",T}},a.prototype.register=function(m,S){var $=this.snippetMap,w=this.snippetNameMap,T=this;m||(m=[]);function b(c){return c&&!/^\^?\(.*\)\$?$|^\\b$/.test(c)&&(c="(?:"+c+")"),c||""}function g(c,y,M){return c=b(c),y=b(y),c=y+c,c&&c[c.length-1]!="$"&&(c=c+"$"),new RegExp(c)}function d(c){c.scope||(c.scope=S||"_"),S=c.scope,$[S]||($[S]=[],w[S]={});var y=w[S];if(c.name){var M=y[c.name];M&&T.unregister(M),y[c.name]=c}$[S].push(c),c.prefix&&(c.tabTrigger=c.prefix),!c.content&&c.body&&(c.content=Array.isArray(c.body)?c.body.join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,m as l,t as o,w as a,c as r}from"./ace-builds.
|
|
1
|
+
import{b as e,m as l,t as o,w as a,c as r}from"./ace-builds.DPRnfcwI.0.0.70.js";import"./@xterm.CJZZM5vf.0.0.70.js";e.config.setModuleUrl("ace/mode/yaml",l);e.config.setModuleUrl("ace/theme/twilight",o);e.config.setModuleUrl("ace/mode/base",a);e.config.setModuleUrl("ace/mode/yaml_worker",r);e.require("ace/ext/language_tools");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as a}from"./main.
|
|
1
|
+
import{a2 as a}from"./main.D2NZuTnM.0.0.70.js";const r=async s=>(await a.post("/backup/download",{localStorage:s},{responseType:"arraybuffer"})).data,n=async s=>(await a.post("/backup/restore",s)).data;export{r as d,n as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ts=Object.defineProperty;var As=(i,t,e)=>t in i?Ts(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var w=(i,t,e)=>As(i,typeof t!="symbol"?t+"":t,e);import{C as Qi}from"./@kurkle.D8fDXNIl.0.0.
|
|
1
|
+
var Ts=Object.defineProperty;var As=(i,t,e)=>t in i?Ts(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var w=(i,t,e)=>As(i,typeof t!="symbol"?t+"":t,e);import{C as Qi}from"./@kurkle.D8fDXNIl.0.0.70.js";/*!
|
|
2
2
|
* Chart.js v4.5.0
|
|
3
3
|
* https://www.chartjs.org
|
|
4
4
|
* (c) 2025 Chart.js Contributors
|
package/dist/interface/js/{close-circle.DJNW4HfJ.0.0.69.js → close-circle.CMnO5OKl.0.0.70.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as o,c as t,d as n,e as r}from"./@vue.BsSvBeCe.0.0.
|
|
1
|
+
import{F as o,c as t,d as n,e as r}from"./@vue.BsSvBeCe.0.0.70.js";const c={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function s(a,e){return n(),t("svg",c,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12S6.47 2 12 2m3.59 5L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41z"},null,-1)]))}const L=o({name:"mdi-close-circle",render:s});export{L as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j}from"./redux.BFxtlG_c.0.0.69.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.69.js";function H(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function N(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function L(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,c)=>{o===1&&i.push(c)}),i}function k(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function B(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:c}=n,u=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,u,l);const f=W(r,u);if(f==null){t.dispatch(V);return}let b=null;if(o){if(!c)throw new Error("getSourceClientOffset must be defined");F(c),b=c(f)}t.dispatch(_(o,b));const D=l.getSource(f).beginDrag(u,f);if(D==null)return;X(D),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:D,sourceId:f,clientOffset:o||null,sourceClientOffset:b||null,isSourcePublic:!!i}}}}function q(t,e,r){s(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s(r.getSource(n),"Expected sourceIds to be registered.")})}function F(t){s(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X(t){s(U(t),"Item must be an object.")}function W(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){z(t,i,r[i])})}return t}function Q(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Y(n),ee(n).forEach((c,u)=>{const l=Z(c,u,i,n),f={type:y,payload:{dropResult:J({},r,l)}};t.dispatch(f)})}}function Y(t){s(t.isDragging(),"Cannot call drop while not dragging."),s(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Z(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return K(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function K(t){s(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function ee(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function te(t){return function(){const r=t.getMonitor(),n=t.getRegistry();re(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function re(t){s(t.isDragging(),"Cannot call endDrag while not dragging.")}function T(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function ne(t){return function(r,{clientOffset:n}={}){ie(r);const i=r.slice(0),o=t.getMonitor(),c=t.getRegistry(),u=o.getItemType();return se(i,c,u),oe(i,o,c),ce(i,o,c),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ie(t){s(Array.isArray(t),"Expected targetIds to be an array.")}function oe(t,e,r){s(e.isDragging(),"Cannot call hover while not dragging."),s(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s(o,"Expected targetIds to be registered.")}}function se(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);T(o,r)||t.splice(n,1)}}function ce(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ue(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ae(t){return{beginDrag:B(t),publishDragSource:ue(t),hover:ne(t),drop:Q(t),endDrag:te(t)}}class fe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...c)=>{const u=o.apply(e,c);typeof u<"u"&&r(u)}}const i=ae(this);return Object.keys(i).reduce((o,c)=>{const u=i[c];return o[c]=n(u),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function le(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(le(e,n),r)}function ge(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],C=[];g.__IS_NONE__=!0;C.__IS_ALL__=!0;function pe(t,e){return t===g?!1:t===C||typeof e>"u"?!0:k(e,t).length>0}class he{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s(typeof e=="function","listener must be a function."),s(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const c=this.store.getState(),u=c.stateId;try{u===i||u===i+1&&!pe(c.dirtyHandlerIds,n)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return T(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(i,o))return!1;const c=this.getTargetIds();if(!c.length)return!1;const u=c.indexOf(e);return n?u===c.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return de(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ge(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const R="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function ye(t){return{type:R,payload:{sourceId:t}}}function Se(t){return{type:v,payload:{targetId:t}}}function Oe(t){return{type:x,payload:{sourceId:t}}}function be(t){return{type:O,payload:{targetId:t}}}function De(t){s(typeof t.canDrag=="function","Expected canDrag to be a function."),s(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Te(t){s(typeof t.canDrop=="function","Expected canDrop to be a function."),s(typeof t.hover=="function","Expected hover to be a function."),s(typeof t.drop=="function","Expected beginDrag to be a function.")}function m(t,e){if(e&&Array.isArray(t)){t.forEach(r=>m(r,!1));return}s(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var a;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(a||(a={}));let me=0;function Ee(){return me++}function Ie(t){const e=Ee().toString();switch(t){case a.SOURCE:return`S${e}`;case a.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return a.SOURCE;case"T":return a.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ce{addSource(e,r){m(e),De(r);const n=this.addHandler(a.SOURCE,e,r);return this.store.dispatch(ye(n)),n}addTarget(e,r){m(e,!0),Te(r);const n=this.addHandler(a.TARGET,e,r);return this.store.dispatch(Se(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===a.SOURCE}isTargetId(e){return w(e)===a.TARGET}removeSource(e){s(this.getSource(e),"Expected an existing source."),this.store.dispatch(Oe(e)),M(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(be(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ie(e);return this.types.set(i,r),e===a.SOURCE?this.dragSources.set(i,n):e===a.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Re=(t,e)=>t===e;function ve(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xe(t,e,r=Re){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function _e(t=g,e){switch(e.type){case h:break;case R:case v:case O:case x:return g;case p:case I:case S:case y:default:return C}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=L(r,n);if(!(i.length>0||!xe(r,n)))return g;const c=n[n.length-1],u=r[r.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function we(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){we(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ae(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return ve(t.clientOffset,r.clientOffset)?t:Pe({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ue(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ue(t,i,r[i])})}return t}const Ge={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $e(t=Ge,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:N(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function je(t=0,e){switch(e.type){case R:case v:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function He(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){He(t,i,r[i])})}return t}function Le(t={},e){return{dirtyHandlerIds:_e(t.dirtyHandlerIds,{type:e.type,payload:Ne({},e.payload,{prevTargetIds:H(t,"dragOperation.targetIds",[])})}),dragOffset:Ae(t.dragOffset,e),refCount:je(t.refCount,e),dragOperation:$e(t.dragOperation,e),stateId:Me(t.stateId)}}function Fe(t,e=void 0,r={},n=!1){const i=ke(n),o=new he(i,new Ce(i)),c=new fe(i,o),u=t(c,e,r);return c.receiveBackend(u),c}function ke(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j(Le,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}export{Fe as c};
|
|
1
|
+
import{c as j}from"./redux.BFxtlG_c.0.0.70.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.70.js";function H(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function N(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function L(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,c)=>{o===1&&i.push(c)}),i}function k(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function B(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:c}=n,u=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,u,l);const f=W(r,u);if(f==null){t.dispatch(V);return}let b=null;if(o){if(!c)throw new Error("getSourceClientOffset must be defined");F(c),b=c(f)}t.dispatch(_(o,b));const D=l.getSource(f).beginDrag(u,f);if(D==null)return;X(D),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:D,sourceId:f,clientOffset:o||null,sourceClientOffset:b||null,isSourcePublic:!!i}}}}function q(t,e,r){s(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s(r.getSource(n),"Expected sourceIds to be registered.")})}function F(t){s(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X(t){s(U(t),"Item must be an object.")}function W(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){z(t,i,r[i])})}return t}function Q(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Y(n),ee(n).forEach((c,u)=>{const l=Z(c,u,i,n),f={type:y,payload:{dropResult:J({},r,l)}};t.dispatch(f)})}}function Y(t){s(t.isDragging(),"Cannot call drop while not dragging."),s(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Z(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return K(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function K(t){s(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function ee(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function te(t){return function(){const r=t.getMonitor(),n=t.getRegistry();re(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function re(t){s(t.isDragging(),"Cannot call endDrag while not dragging.")}function T(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function ne(t){return function(r,{clientOffset:n}={}){ie(r);const i=r.slice(0),o=t.getMonitor(),c=t.getRegistry(),u=o.getItemType();return se(i,c,u),oe(i,o,c),ce(i,o,c),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ie(t){s(Array.isArray(t),"Expected targetIds to be an array.")}function oe(t,e,r){s(e.isDragging(),"Cannot call hover while not dragging."),s(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s(o,"Expected targetIds to be registered.")}}function se(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);T(o,r)||t.splice(n,1)}}function ce(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ue(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ae(t){return{beginDrag:B(t),publishDragSource:ue(t),hover:ne(t),drop:Q(t),endDrag:te(t)}}class fe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...c)=>{const u=o.apply(e,c);typeof u<"u"&&r(u)}}const i=ae(this);return Object.keys(i).reduce((o,c)=>{const u=i[c];return o[c]=n(u),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function le(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(le(e,n),r)}function ge(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],C=[];g.__IS_NONE__=!0;C.__IS_ALL__=!0;function pe(t,e){return t===g?!1:t===C||typeof e>"u"?!0:k(e,t).length>0}class he{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s(typeof e=="function","listener must be a function."),s(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const c=this.store.getState(),u=c.stateId;try{u===i||u===i+1&&!pe(c.dirtyHandlerIds,n)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return T(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(i,o))return!1;const c=this.getTargetIds();if(!c.length)return!1;const u=c.indexOf(e);return n?u===c.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return de(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ge(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const R="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function ye(t){return{type:R,payload:{sourceId:t}}}function Se(t){return{type:v,payload:{targetId:t}}}function Oe(t){return{type:x,payload:{sourceId:t}}}function be(t){return{type:O,payload:{targetId:t}}}function De(t){s(typeof t.canDrag=="function","Expected canDrag to be a function."),s(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Te(t){s(typeof t.canDrop=="function","Expected canDrop to be a function."),s(typeof t.hover=="function","Expected hover to be a function."),s(typeof t.drop=="function","Expected beginDrag to be a function.")}function m(t,e){if(e&&Array.isArray(t)){t.forEach(r=>m(r,!1));return}s(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var a;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(a||(a={}));let me=0;function Ee(){return me++}function Ie(t){const e=Ee().toString();switch(t){case a.SOURCE:return`S${e}`;case a.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return a.SOURCE;case"T":return a.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ce{addSource(e,r){m(e),De(r);const n=this.addHandler(a.SOURCE,e,r);return this.store.dispatch(ye(n)),n}addTarget(e,r){m(e,!0),Te(r);const n=this.addHandler(a.TARGET,e,r);return this.store.dispatch(Se(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===a.SOURCE}isTargetId(e){return w(e)===a.TARGET}removeSource(e){s(this.getSource(e),"Expected an existing source."),this.store.dispatch(Oe(e)),M(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(be(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ie(e);return this.types.set(i,r),e===a.SOURCE?this.dragSources.set(i,n):e===a.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Re=(t,e)=>t===e;function ve(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xe(t,e,r=Re){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function _e(t=g,e){switch(e.type){case h:break;case R:case v:case O:case x:return g;case p:case I:case S:case y:default:return C}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=L(r,n);if(!(i.length>0||!xe(r,n)))return g;const c=n[n.length-1],u=r[r.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function we(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){we(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ae(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return ve(t.clientOffset,r.clientOffset)?t:Pe({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ue(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ue(t,i,r[i])})}return t}const Ge={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $e(t=Ge,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:N(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function je(t=0,e){switch(e.type){case R:case v:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function He(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){He(t,i,r[i])})}return t}function Le(t={},e){return{dirtyHandlerIds:_e(t.dirtyHandlerIds,{type:e.type,payload:Ne({},e.payload,{prevTargetIds:H(t,"dragOperation.targetIds",[])})}),dragOffset:Ae(t.dragOffset,e),refCount:je(t.refCount,e),dragOperation:$e(t.dragOperation,e),stateId:Me(t.stateId)}}function Fe(t,e=void 0,r={},n=!1){const i=ke(n),o=new he(i,new Ce(i)),c=new fe(i,o),u=t(c,e,r);return c.receiveBackend(u),c}function ke(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j(Le,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}export{Fe as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as $}from"./@xterm.
|
|
1
|
+
import{g as $}from"./@xterm.CJZZM5vf.0.0.70.js";import{r as q}from"./get-size.D1dS-IaP.0.0.70.js";import{r as M}from"./unidragger.DahEY3cm.0.0.70.js";var f={exports:{}};/*!
|
|
2
2
|
* Draggabilly v3.0.0
|
|
3
3
|
* Make that shiz draggable
|
|
4
4
|
* https://draggabilly.desandro.com
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as L,a as O,e as B,b as H,c as U,f as F,p as x}from"./engine.io-parser.BiEtp6m2.0.0.69.js";import{E as y}from"./@socket.io.Dkula2eQ.0.0.69.js";const _=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),I="arraybuffer";function E(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const N=a.setTimeout,A=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=N.bind(a),r.clearTimeoutFn=A.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const W=1.33;function D(r){return typeof r=="string"?M(r):Math.ceil((r.byteLength||r.size)*W)}function M(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function X(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function z(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class J extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends y{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new J(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=X(e);return t.length?"?"+t:""}}class V extends b{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};O(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,B(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=R()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let P=!1;try{P=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const j=P;function $(){}class G extends V{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class h extends y{constructor(e,t,s){super(),this.createRequest=e,w(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=E(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=h.requestsCount++,h.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}h.requestsCount=0;h.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",k);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,k,!1)}}function k(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const K=function(){const r=q({xdomain:!1});return r&&r.responseType!==null}();class Q extends G{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=K&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new h(q,this.uri(),e)}}function q(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||j))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const C=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Y extends b{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=C?{}:E(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;H(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const m=a.WebSocket||a.MozWebSocket;class Z extends Y{createSocket(e,t,s){return C?new m(e,t,s):t?new m(e,t):new m(e)}doWrite(e,t){this.ws.send(t)}}class ee extends b{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=U(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=F();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const te={websocket:Z,webtransport:ee,polling:Q},se=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,re=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S(r){if(r.length>8e3)throw"URI too long";const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=se.exec(r||""),o={},n=14;for(;n--;)o[re[n]]=i[n]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ie(o,o.path),o.queryKey=oe(o,o.query),o}function ie(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function oe(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const g=typeof addEventListener=="function"&&typeof removeEventListener=="function",f=[];g&&addEventListener("offline",()=>{f.forEach(r=>r())},!1);class c extends y{constructor(e,t){if(super(),this.binaryType=I,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=S(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=S(t.host).host);w(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=z(this.opts.query)),g&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=x,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=D(i)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(c.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),g&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=f.indexOf(this._offlineEventListener);s!==-1&&f.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}c.protocol=x;class ne extends c{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(T(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){s||(s=!0,T(),t.close(),t=null)}const n=p=>{const u=new Error("probe error: "+p);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function l(){n("transport closed")}function d(){n("socket closed")}function v(p){t&&p.name!==t.name&&o()}const T=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",l),this.off("close",d),this.off("upgrading",v)};t.once("open",i),t.once("error",n),t.once("close",l),this.once("close",d),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class ce extends ne{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}}export{ce as S,w as i,_ as n,S as p};
|
|
1
|
+
import{d as L,a as O,e as B,b as H,c as U,f as F,p as x}from"./engine.io-parser.BiEtp6m2.0.0.70.js";import{E as y}from"./@socket.io.Dkula2eQ.0.0.70.js";const _=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),I="arraybuffer";function E(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const N=a.setTimeout,A=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=N.bind(a),r.clearTimeoutFn=A.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const W=1.33;function D(r){return typeof r=="string"?M(r):Math.ceil((r.byteLength||r.size)*W)}function M(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function X(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function z(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class J extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends y{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new J(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=X(e);return t.length?"?"+t:""}}class V extends b{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};O(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,B(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=R()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let P=!1;try{P=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const j=P;function $(){}class G extends V{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class h extends y{constructor(e,t,s){super(),this.createRequest=e,w(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=E(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=h.requestsCount++,h.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}h.requestsCount=0;h.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",k);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,k,!1)}}function k(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const K=function(){const r=q({xdomain:!1});return r&&r.responseType!==null}();class Q extends G{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=K&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new h(q,this.uri(),e)}}function q(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||j))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const C=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Y extends b{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=C?{}:E(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;H(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const m=a.WebSocket||a.MozWebSocket;class Z extends Y{createSocket(e,t,s){return C?new m(e,t,s):t?new m(e,t):new m(e)}doWrite(e,t){this.ws.send(t)}}class ee extends b{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=U(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=F();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const te={websocket:Z,webtransport:ee,polling:Q},se=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,re=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S(r){if(r.length>8e3)throw"URI too long";const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=se.exec(r||""),o={},n=14;for(;n--;)o[re[n]]=i[n]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ie(o,o.path),o.queryKey=oe(o,o.query),o}function ie(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function oe(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const g=typeof addEventListener=="function"&&typeof removeEventListener=="function",f=[];g&&addEventListener("offline",()=>{f.forEach(r=>r())},!1);class c extends y{constructor(e,t){if(super(),this.binaryType=I,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=S(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=S(t.host).host);w(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=z(this.opts.query)),g&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=x,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=D(i)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(c.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),g&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=f.indexOf(this._offlineEventListener);s!==-1&&f.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}c.protocol=x;class ne extends c{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(T(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){s||(s=!0,T(),t.close(),t=null)}const n=p=>{const u=new Error("probe error: "+p);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function l(){n("transport closed")}function d(){n("socket closed")}function v(p){t&&p.name!==t.name&&o()}const T=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",l),this.off("close",d),this.off("upgrading",v)};t.once("open",i),t.once("error",n),t.once("close",l),this.once("close",d),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class ce extends ne{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}}export{ce as S,w as i,_ as n,S as p};
|
package/dist/interface/js/{fast-deep-equal.IL3J8jAG.0.0.69.js → fast-deep-equal.D0g7BF3f.0.0.70.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l}from"./@xterm.
|
|
1
|
+
import{g as l}from"./@xterm.CJZZM5vf.0.0.70.js";var o,c;function a(){return c||(c=1,o=function n(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var u,e,f;if(Array.isArray(r)){if(u=r.length,u!=t.length)return!1;for(e=u;e--!==0;)if(!n(r[e],t[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(f=Object.keys(r),u=f.length,u!==Object.keys(t).length)return!1;for(e=u;e--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[e]))return!1;for(e=u;e--!==0;){var s=f[e];if(!n(r[s],t[s]))return!1}return!0}return r!==r&&t!==t}),o}var p=a();const O=l(p);export{O as e};
|
package/dist/interface/js/{highlight.js.BSQb76p3.0.0.69.js → highlight.js.DTPofZhc.0.0.70.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{g as qn}from"./@xterm.DHnCBlz-.0.0.69.js";var Pe,en;function Qn(){if(en)return Pe;en=1;function l(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{const s=e[n],g=typeof s;(g==="object"||g==="function")&&!Object.isFrozen(s)&&l(s)}),e}class N{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function h(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function b(e,...n){const s=Object.create(null);for(const g in e)s[g]=e[g];return n.forEach(function(g){for(const T in g)s[T]=g[T]}),s}const F="</span>",Z=e=>!!e.scope,P=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const s=e.split(".");return[`${n}${s.shift()}`,...s.map((g,T)=>`${g}${"_".repeat(T+1)}`)].join(" ")}return`${n}${e}`};class x{constructor(n,s){this.buffer="",this.classPrefix=s.classPrefix,n.walk(this)}addText(n){this.buffer+=h(n)}openNode(n){if(!Z(n))return;const s=P(n.scope,{prefix:this.classPrefix});this.span(s)}closeNode(n){Z(n)&&(this.buffer+=F)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}const L=(e={})=>{const n={children:[]};return Object.assign(n,e),n};class I{constructor(){this.rootNode=L(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const s=L({scope:n});this.add(s),this.stack.push(s)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,s){return typeof s=="string"?n.addText(s):s.children&&(n.openNode(s),s.children.forEach(g=>this._walk(n,g)),n.closeNode(s)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(s=>typeof s=="string")?n.children=[n.children.join("")]:n.children.forEach(s=>{I._collapse(s)}))}}class U extends I{constructor(n){super(),this.options=n}addText(n){n!==""&&this.add(n)}startScope(n){this.openNode(n)}endScope(){this.closeNode()}__addSublanguage(n,s){const g=n.root;s&&(g.scope=`language:${s}`),this.add(g)}toHTML(){return new x(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function C(e){return e?typeof e=="string"?e:e.source:null}function A(e){return R("(?=",e,")")}function D(e){return R("(?:",e,")*")}function k(e){return R("(?:",e,")?")}function R(...e){return e.map(s=>C(s)).join("")}function G(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function $(...e){return"("+(G(e).capture?"":"?:")+e.map(g=>C(g)).join("|")+")"}function Y(e){return new RegExp(e.toString()+"|").exec("").length-1}function ie(e,n){const s=e&&e.exec(n);return s&&s.index===0}const ge=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function q(e,{joinWith:n}){let s=0;return e.map(g=>{s+=1;const T=s;let y=C(g),a="";for(;y.length>0;){const r=ge.exec(y);if(!r){a+=y;break}a+=y.substring(0,r.index),y=y.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?a+="\\"+String(Number(r[1])+T):(a+=r[0],r[0]==="("&&s++)}return a}).map(g=>`(${g})`).join(n)}const Q=/\b\B/,fe="[a-zA-Z]\\w*",re="[a-zA-Z_]\\w*",de="\\b\\d+(\\.\\d+)?",Ee="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",be="\\b(0b[01]+)",Oe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",we=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=R(n,/.*\b/,e.binary,/\b.*/)),b({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(s,g)=>{s.index!==0&&g.ignoreMatch()}},e)},ee={begin:"\\\\[\\s\\S]",relevance:0},xe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ee]},he={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ee]},Ie={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},m=function(e,n,s={}){const g=b({scope:"comment",begin:e,end:n,contains:[]},s);g.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const T=$("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return g.contains.push({begin:R(/[ ]+/,"(",T,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),g},X=m("//","$"),ne=m("/\\*","\\*/"),ae=m("#","$"),le={scope:"number",begin:de,relevance:0},pe={scope:"number",begin:Ee,relevance:0},ln={scope:"number",begin:be,relevance:0},un={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ee,{begin:/\[/,end:/\]/,relevance:0,contains:[ee]}]},gn={scope:"title",begin:fe,relevance:0},fn={scope:"title",begin:re,relevance:0},dn={begin:"\\.\\s*"+re,relevance:0};var _e=Object.freeze({__proto__:null,APOS_STRING_MODE:xe,BACKSLASH_ESCAPE:ee,BINARY_NUMBER_MODE:ln,BINARY_NUMBER_RE:be,COMMENT:m,C_BLOCK_COMMENT_MODE:ne,C_LINE_COMMENT_MODE:X,C_NUMBER_MODE:pe,C_NUMBER_RE:Ee,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(n,s)=>{s.data._beginMatch=n[1]},"on:end":(n,s)=>{s.data._beginMatch!==n[1]&&s.ignoreMatch()}})},HASH_COMMENT_MODE:ae,IDENT_RE:fe,MATCH_NOTHING_RE:Q,METHOD_GUARD:dn,NUMBER_MODE:le,NUMBER_RE:de,PHRASAL_WORDS_MODE:Ie,QUOTE_STRING_MODE:he,REGEXP_MODE:un,RE_STARTERS_RE:Oe,SHEBANG:we,TITLE_MODE:gn,UNDERSCORE_IDENT_RE:re,UNDERSCORE_TITLE_MODE:fn});function En(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function bn(e,n){e.className!==void 0&&(e.scope=e.className,delete e.className)}function hn(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=En,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function pn(e,n){Array.isArray(e.illegal)&&(e.illegal=$(...e.illegal))}function _n(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Sn(e,n){e.relevance===void 0&&(e.relevance=1)}const Nn=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const s=Object.assign({},e);Object.keys(e).forEach(g=>{delete e[g]}),e.keywords=s.keywords,e.begin=R(s.beforeMatch,A(s.begin)),e.starts={relevance:0,contains:[Object.assign(s,{endsParent:!0})]},e.relevance=0,delete s.beforeMatch},Rn=["of","and","for","in","not","or","if","then","parent","list","value"],An="keyword";function Ue(e,n,s=An){const g=Object.create(null);return typeof e=="string"?T(s,e.split(" ")):Array.isArray(e)?T(s,e):Object.keys(e).forEach(function(y){Object.assign(g,Ue(e[y],n,y))}),g;function T(y,a){n&&(a=a.map(r=>r.toLowerCase())),a.forEach(function(r){const u=r.split("|");g[u[0]]=[y,Tn(u[0],u[1])]})}}function Tn(e,n){return n?Number(n):yn(e)?0:1}function yn(e){return Rn.includes(e.toLowerCase())}const $e={},te=e=>{console.error(e)},He=(e,...n)=>{console.log(`WARN: ${e}`,...n)},ce=(e,n)=>{$e[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),$e[`${e}/${n}`]=!0)},Se=new Error;function Fe(e,n,{key:s}){let g=0;const T=e[s],y={},a={};for(let r=1;r<=n.length;r++)a[r+g]=T[r],y[r+g]=!0,g+=Y(n[r-1]);e[s]=a,e[s]._emit=y,e[s]._multi=!0}function Mn(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw te("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Se;if(typeof e.beginScope!="object"||e.beginScope===null)throw te("beginScope must be object"),Se;Fe(e,e.begin,{key:"beginScope"}),e.begin=q(e.begin,{joinWith:""})}}function On(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw te("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Se;if(typeof e.endScope!="object"||e.endScope===null)throw te("endScope must be object"),Se;Fe(e,e.end,{key:"endScope"}),e.end=q(e.end,{joinWith:""})}}function wn(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function xn(e){wn(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Mn(e),On(e)}function In(e){function n(a,r){return new RegExp(C(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class s{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,r]),this.matchAt+=Y(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(u=>u[1]);this.matcherRe=n(q(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(r);if(!u)return null;const w=u.findIndex((ue,me)=>me>0&&ue!==void 0),M=this.matchIndexes[w];return u.splice(0,w),Object.assign(u,M)}}class g{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const u=new s;return this.rules.slice(r).forEach(([w,M])=>u.addRule(w,M)),u.compile(),this.multiRegexes[r]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,u){this.rules.push([r,u]),u.type==="begin"&&this.count++}exec(r){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let w=u.exec(r);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,w=M.exec(r)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function T(a){const r=new g;return a.contains.forEach(u=>r.addRule(u.begin,{rule:u,type:"begin"})),a.terminatorEnd&&r.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&r.addRule(a.illegal,{type:"illegal"}),r}function y(a,r){const u=a;if(a.isCompiled)return u;[bn,_n,xn,Nn].forEach(M=>M(a,r)),e.compilerExtensions.forEach(M=>M(a,r)),a.__beforeBegin=null,[hn,pn,Sn].forEach(M=>M(a,r)),a.isCompiled=!0;let w=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),w=a.keywords.$pattern,delete a.keywords.$pattern),w=w||/\w+/,a.keywords&&(a.keywords=Ue(a.keywords,e.case_insensitive)),u.keywordPatternRe=n(w,!0),r&&(a.begin||(a.begin=/\B|\b/),u.beginRe=n(u.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(u.endRe=n(u.end)),u.terminatorEnd=C(u.end)||"",a.endsWithParent&&r.terminatorEnd&&(u.terminatorEnd+=(a.end?"|":"")+r.terminatorEnd)),a.illegal&&(u.illegalRe=n(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(M){return Cn(M==="self"?a:M)})),a.contains.forEach(function(M){y(M,u)}),a.starts&&y(a.starts,r),u.matcher=T(u),u}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=b(e.classNameAliases||{}),y(e)}function Ge(e){return e?e.endsWithParent||Ge(e.starts):!1}function Cn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return b(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:Ge(e)?b(e,{starts:e.starts?b(e.starts):null}):Object.isFrozen(e)?b(e):e}var mn="11.11.1";class vn extends Error{constructor(n,s){super(n),this.name="HTMLInjectionError",this.html=s}}const Ce=h,Ke=b,ze=Symbol("nomatch"),Ln=7,We=function(e){const n=Object.create(null),s=Object.create(null),g=[];let T=!0;const y="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:U};function u(t){return r.noHighlightRe.test(t)}function w(t){let o=t.className+" ";o+=t.parentNode?t.parentNode.className:"";const E=r.languageDetectRe.exec(o);if(E){const _=J(E[1]);return _||(He(y.replace("{}",E[1])),He("Falling back to no-highlight mode for this block.",t)),_?E[1]:"no-highlight"}return o.split(/\s+/).find(_=>u(_)||J(_))}function M(t,o,E){let _="",O="";typeof o=="object"?(_=t,E=o.ignoreIllegals,O=o.language):(ce("10.7.0","highlight(lang, code, ...args) has been deprecated."),ce("10.7.0",`Please use highlight(code, options) instead.
|
|
1
|
+
import{g as qn}from"./@xterm.CJZZM5vf.0.0.70.js";var Pe,en;function Qn(){if(en)return Pe;en=1;function l(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{const s=e[n],g=typeof s;(g==="object"||g==="function")&&!Object.isFrozen(s)&&l(s)}),e}class N{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function h(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function b(e,...n){const s=Object.create(null);for(const g in e)s[g]=e[g];return n.forEach(function(g){for(const T in g)s[T]=g[T]}),s}const F="</span>",Z=e=>!!e.scope,P=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const s=e.split(".");return[`${n}${s.shift()}`,...s.map((g,T)=>`${g}${"_".repeat(T+1)}`)].join(" ")}return`${n}${e}`};class x{constructor(n,s){this.buffer="",this.classPrefix=s.classPrefix,n.walk(this)}addText(n){this.buffer+=h(n)}openNode(n){if(!Z(n))return;const s=P(n.scope,{prefix:this.classPrefix});this.span(s)}closeNode(n){Z(n)&&(this.buffer+=F)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}const L=(e={})=>{const n={children:[]};return Object.assign(n,e),n};class I{constructor(){this.rootNode=L(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const s=L({scope:n});this.add(s),this.stack.push(s)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,s){return typeof s=="string"?n.addText(s):s.children&&(n.openNode(s),s.children.forEach(g=>this._walk(n,g)),n.closeNode(s)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(s=>typeof s=="string")?n.children=[n.children.join("")]:n.children.forEach(s=>{I._collapse(s)}))}}class U extends I{constructor(n){super(),this.options=n}addText(n){n!==""&&this.add(n)}startScope(n){this.openNode(n)}endScope(){this.closeNode()}__addSublanguage(n,s){const g=n.root;s&&(g.scope=`language:${s}`),this.add(g)}toHTML(){return new x(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function C(e){return e?typeof e=="string"?e:e.source:null}function A(e){return R("(?=",e,")")}function D(e){return R("(?:",e,")*")}function k(e){return R("(?:",e,")?")}function R(...e){return e.map(s=>C(s)).join("")}function G(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function $(...e){return"("+(G(e).capture?"":"?:")+e.map(g=>C(g)).join("|")+")"}function Y(e){return new RegExp(e.toString()+"|").exec("").length-1}function ie(e,n){const s=e&&e.exec(n);return s&&s.index===0}const ge=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function q(e,{joinWith:n}){let s=0;return e.map(g=>{s+=1;const T=s;let y=C(g),a="";for(;y.length>0;){const r=ge.exec(y);if(!r){a+=y;break}a+=y.substring(0,r.index),y=y.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?a+="\\"+String(Number(r[1])+T):(a+=r[0],r[0]==="("&&s++)}return a}).map(g=>`(${g})`).join(n)}const Q=/\b\B/,fe="[a-zA-Z]\\w*",re="[a-zA-Z_]\\w*",de="\\b\\d+(\\.\\d+)?",Ee="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",be="\\b(0b[01]+)",Oe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",we=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=R(n,/.*\b/,e.binary,/\b.*/)),b({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(s,g)=>{s.index!==0&&g.ignoreMatch()}},e)},ee={begin:"\\\\[\\s\\S]",relevance:0},xe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ee]},he={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ee]},Ie={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},m=function(e,n,s={}){const g=b({scope:"comment",begin:e,end:n,contains:[]},s);g.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const T=$("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return g.contains.push({begin:R(/[ ]+/,"(",T,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),g},X=m("//","$"),ne=m("/\\*","\\*/"),ae=m("#","$"),le={scope:"number",begin:de,relevance:0},pe={scope:"number",begin:Ee,relevance:0},ln={scope:"number",begin:be,relevance:0},un={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ee,{begin:/\[/,end:/\]/,relevance:0,contains:[ee]}]},gn={scope:"title",begin:fe,relevance:0},fn={scope:"title",begin:re,relevance:0},dn={begin:"\\.\\s*"+re,relevance:0};var _e=Object.freeze({__proto__:null,APOS_STRING_MODE:xe,BACKSLASH_ESCAPE:ee,BINARY_NUMBER_MODE:ln,BINARY_NUMBER_RE:be,COMMENT:m,C_BLOCK_COMMENT_MODE:ne,C_LINE_COMMENT_MODE:X,C_NUMBER_MODE:pe,C_NUMBER_RE:Ee,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(n,s)=>{s.data._beginMatch=n[1]},"on:end":(n,s)=>{s.data._beginMatch!==n[1]&&s.ignoreMatch()}})},HASH_COMMENT_MODE:ae,IDENT_RE:fe,MATCH_NOTHING_RE:Q,METHOD_GUARD:dn,NUMBER_MODE:le,NUMBER_RE:de,PHRASAL_WORDS_MODE:Ie,QUOTE_STRING_MODE:he,REGEXP_MODE:un,RE_STARTERS_RE:Oe,SHEBANG:we,TITLE_MODE:gn,UNDERSCORE_IDENT_RE:re,UNDERSCORE_TITLE_MODE:fn});function En(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function bn(e,n){e.className!==void 0&&(e.scope=e.className,delete e.className)}function hn(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=En,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function pn(e,n){Array.isArray(e.illegal)&&(e.illegal=$(...e.illegal))}function _n(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Sn(e,n){e.relevance===void 0&&(e.relevance=1)}const Nn=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const s=Object.assign({},e);Object.keys(e).forEach(g=>{delete e[g]}),e.keywords=s.keywords,e.begin=R(s.beforeMatch,A(s.begin)),e.starts={relevance:0,contains:[Object.assign(s,{endsParent:!0})]},e.relevance=0,delete s.beforeMatch},Rn=["of","and","for","in","not","or","if","then","parent","list","value"],An="keyword";function Ue(e,n,s=An){const g=Object.create(null);return typeof e=="string"?T(s,e.split(" ")):Array.isArray(e)?T(s,e):Object.keys(e).forEach(function(y){Object.assign(g,Ue(e[y],n,y))}),g;function T(y,a){n&&(a=a.map(r=>r.toLowerCase())),a.forEach(function(r){const u=r.split("|");g[u[0]]=[y,Tn(u[0],u[1])]})}}function Tn(e,n){return n?Number(n):yn(e)?0:1}function yn(e){return Rn.includes(e.toLowerCase())}const $e={},te=e=>{console.error(e)},He=(e,...n)=>{console.log(`WARN: ${e}`,...n)},ce=(e,n)=>{$e[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),$e[`${e}/${n}`]=!0)},Se=new Error;function Fe(e,n,{key:s}){let g=0;const T=e[s],y={},a={};for(let r=1;r<=n.length;r++)a[r+g]=T[r],y[r+g]=!0,g+=Y(n[r-1]);e[s]=a,e[s]._emit=y,e[s]._multi=!0}function Mn(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw te("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Se;if(typeof e.beginScope!="object"||e.beginScope===null)throw te("beginScope must be object"),Se;Fe(e,e.begin,{key:"beginScope"}),e.begin=q(e.begin,{joinWith:""})}}function On(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw te("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Se;if(typeof e.endScope!="object"||e.endScope===null)throw te("endScope must be object"),Se;Fe(e,e.end,{key:"endScope"}),e.end=q(e.end,{joinWith:""})}}function wn(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function xn(e){wn(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Mn(e),On(e)}function In(e){function n(a,r){return new RegExp(C(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class s{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,r]),this.matchAt+=Y(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(u=>u[1]);this.matcherRe=n(q(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(r);if(!u)return null;const w=u.findIndex((ue,me)=>me>0&&ue!==void 0),M=this.matchIndexes[w];return u.splice(0,w),Object.assign(u,M)}}class g{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const u=new s;return this.rules.slice(r).forEach(([w,M])=>u.addRule(w,M)),u.compile(),this.multiRegexes[r]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,u){this.rules.push([r,u]),u.type==="begin"&&this.count++}exec(r){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let w=u.exec(r);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,w=M.exec(r)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function T(a){const r=new g;return a.contains.forEach(u=>r.addRule(u.begin,{rule:u,type:"begin"})),a.terminatorEnd&&r.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&r.addRule(a.illegal,{type:"illegal"}),r}function y(a,r){const u=a;if(a.isCompiled)return u;[bn,_n,xn,Nn].forEach(M=>M(a,r)),e.compilerExtensions.forEach(M=>M(a,r)),a.__beforeBegin=null,[hn,pn,Sn].forEach(M=>M(a,r)),a.isCompiled=!0;let w=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),w=a.keywords.$pattern,delete a.keywords.$pattern),w=w||/\w+/,a.keywords&&(a.keywords=Ue(a.keywords,e.case_insensitive)),u.keywordPatternRe=n(w,!0),r&&(a.begin||(a.begin=/\B|\b/),u.beginRe=n(u.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(u.endRe=n(u.end)),u.terminatorEnd=C(u.end)||"",a.endsWithParent&&r.terminatorEnd&&(u.terminatorEnd+=(a.end?"|":"")+r.terminatorEnd)),a.illegal&&(u.illegalRe=n(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(M){return Cn(M==="self"?a:M)})),a.contains.forEach(function(M){y(M,u)}),a.starts&&y(a.starts,r),u.matcher=T(u),u}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=b(e.classNameAliases||{}),y(e)}function Ge(e){return e?e.endsWithParent||Ge(e.starts):!1}function Cn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return b(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:Ge(e)?b(e,{starts:e.starts?b(e.starts):null}):Object.isFrozen(e)?b(e):e}var mn="11.11.1";class vn extends Error{constructor(n,s){super(n),this.name="HTMLInjectionError",this.html=s}}const Ce=h,Ke=b,ze=Symbol("nomatch"),Ln=7,We=function(e){const n=Object.create(null),s=Object.create(null),g=[];let T=!0;const y="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:U};function u(t){return r.noHighlightRe.test(t)}function w(t){let o=t.className+" ";o+=t.parentNode?t.parentNode.className:"";const E=r.languageDetectRe.exec(o);if(E){const _=J(E[1]);return _||(He(y.replace("{}",E[1])),He("Falling back to no-highlight mode for this block.",t)),_?E[1]:"no-highlight"}return o.split(/\s+/).find(_=>u(_)||J(_))}function M(t,o,E){let _="",O="";typeof o=="object"?(_=t,E=o.ignoreIllegals,O=o.language):(ce("10.7.0","highlight(lang, code, ...args) has been deprecated."),ce("10.7.0",`Please use highlight(code, options) instead.
|
|
2
2
|
https://github.com/highlightjs/highlight.js/issues/2277`),O=t,_=o),E===void 0&&(E=!0);const K={code:_,language:O};Re("before:highlight",K);const V=K.result?K.result:ue(K.language,K.code,E);return V.code=K.code,Re("after:highlight",V),V}function ue(t,o,E,_){const O=Object.create(null);function K(i,c){return i.keywords[c]}function V(){if(!f.keywords){v.addText(S);return}let i=0;f.keywordPatternRe.lastIndex=0;let c=f.keywordPatternRe.exec(S),d="";for(;c;){d+=S.substring(i,c.index);const p=W.case_insensitive?c[0].toLowerCase():c[0],B=K(f,p);if(B){const[j,Jn]=B;if(v.addText(d),d="",O[p]=(O[p]||0)+1,O[p]<=Ln&&(ye+=Jn),j.startsWith("_"))d+=c[0];else{const Vn=W.classNameAliases[j]||j;z(c[0],Vn)}}else d+=c[0];i=f.keywordPatternRe.lastIndex,c=f.keywordPatternRe.exec(S)}d+=S.substring(i),v.addText(d)}function Ae(){if(S==="")return;let i=null;if(typeof f.subLanguage=="string"){if(!n[f.subLanguage]){v.addText(S);return}i=ue(f.subLanguage,S,!0,Qe[f.subLanguage]),Qe[f.subLanguage]=i._top}else i=ve(S,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(ye+=i.relevance),v.__addSublanguage(i._emitter,i.language)}function H(){f.subLanguage!=null?Ae():V(),S=""}function z(i,c){i!==""&&(v.startScope(c),v.addText(i),v.endScope())}function Xe(i,c){let d=1;const p=c.length-1;for(;d<=p;){if(!i._emit[d]){d++;continue}const B=W.classNameAliases[i[d]]||i[d],j=c[d];B?z(j,B):(S=j,V(),S=""),d++}}function Je(i,c){return i.scope&&typeof i.scope=="string"&&v.openNode(W.classNameAliases[i.scope]||i.scope),i.beginScope&&(i.beginScope._wrap?(z(S,W.classNameAliases[i.beginScope._wrap]||i.beginScope._wrap),S=""):i.beginScope._multi&&(Xe(i.beginScope,c),S="")),f=Object.create(i,{parent:{value:f}}),f}function Ve(i,c,d){let p=ie(i.endRe,d);if(p){if(i["on:end"]){const B=new N(i);i["on:end"](c,B),B.isMatchIgnored&&(p=!1)}if(p){for(;i.endsParent&&i.parent;)i=i.parent;return i}}if(i.endsWithParent)return Ve(i.parent,c,d)}function Wn(i){return f.matcher.regexIndex===0?(S+=i[0],1):(De=!0,0)}function Zn(i){const c=i[0],d=i.rule,p=new N(d),B=[d.__beforeBegin,d["on:begin"]];for(const j of B)if(j&&(j(i,p),p.isMatchIgnored))return Wn(c);return d.skip?S+=c:(d.excludeBegin&&(S+=c),H(),!d.returnBegin&&!d.excludeBegin&&(S=c)),Je(d,i),d.returnBegin?0:c.length}function Yn(i){const c=i[0],d=o.substring(i.index),p=Ve(f,i,d);if(!p)return ze;const B=f;f.endScope&&f.endScope._wrap?(H(),z(c,f.endScope._wrap)):f.endScope&&f.endScope._multi?(H(),Xe(f.endScope,i)):B.skip?S+=c:(B.returnEnd||B.excludeEnd||(S+=c),H(),B.excludeEnd&&(S=c));do f.scope&&v.closeNode(),!f.skip&&!f.subLanguage&&(ye+=f.relevance),f=f.parent;while(f!==p.parent);return p.starts&&Je(p.starts,i),B.returnEnd?0:c.length}function jn(){const i=[];for(let c=f;c!==W;c=c.parent)c.scope&&i.unshift(c.scope);i.forEach(c=>v.openNode(c))}let Te={};function qe(i,c){const d=c&&c[0];if(S+=i,d==null)return H(),0;if(Te.type==="begin"&&c.type==="end"&&Te.index===c.index&&d===""){if(S+=o.slice(c.index,c.index+1),!T){const p=new Error(`0 width match regex (${t})`);throw p.languageName=t,p.badRule=Te.rule,p}return 1}if(Te=c,c.type==="begin")return Zn(c);if(c.type==="illegal"&&!E){const p=new Error('Illegal lexeme "'+d+'" for mode "'+(f.scope||"<unnamed>")+'"');throw p.mode=f,p}else if(c.type==="end"){const p=Yn(c);if(p!==ze)return p}if(c.type==="illegal"&&d==="")return S+=`
|
|
3
3
|
`,1;if(ke>1e5&&ke>c.index*3)throw new Error("potential infinite loop, way more iterations than matches");return S+=d,d.length}const W=J(t);if(!W)throw te(y.replace("{}",t)),new Error('Unknown language: "'+t+'"');const Xn=In(W);let Be="",f=_||Xn;const Qe={},v=new r.__emitter(r);jn();let S="",ye=0,se=0,ke=0,De=!1;try{if(W.__emitTokens)W.__emitTokens(o,v);else{for(f.matcher.considerAll();;){ke++,De?De=!1:f.matcher.considerAll(),f.matcher.lastIndex=se;const i=f.matcher.exec(o);if(!i)break;const c=o.substring(se,i.index),d=qe(c,i);se=i.index+d}qe(o.substring(se))}return v.finalize(),Be=v.toHTML(),{language:t,value:Be,relevance:ye,illegal:!1,_emitter:v,_top:f}}catch(i){if(i.message&&i.message.includes("Illegal"))return{language:t,value:Ce(o),illegal:!0,relevance:0,_illegalBy:{message:i.message,index:se,context:o.slice(se-100,se+100),mode:i.mode,resultSoFar:Be},_emitter:v};if(T)return{language:t,value:Ce(o),illegal:!1,relevance:0,errorRaised:i,_emitter:v,_top:f};throw i}}function me(t){const o={value:Ce(t),illegal:!1,relevance:0,_top:a,_emitter:new r.__emitter(r)};return o._emitter.addText(t),o}function ve(t,o){o=o||r.languages||Object.keys(n);const E=me(t),_=o.filter(J).filter(je).map(H=>ue(H,t,!1));_.unshift(E);const O=_.sort((H,z)=>{if(H.relevance!==z.relevance)return z.relevance-H.relevance;if(H.language&&z.language){if(J(H.language).supersetOf===z.language)return 1;if(J(z.language).supersetOf===H.language)return-1}return 0}),[K,V]=O,Ae=K;return Ae.secondBest=V,Ae}function Bn(t,o,E){const _=o&&s[o]||E;t.classList.add("hljs"),t.classList.add(`language-${_}`)}function Le(t){let o=null;const E=w(t);if(u(E))return;if(Re("before:highlightElement",{el:t,language:E}),t.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",t);return}if(t.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(t)),r.throwUnescapedHTML))throw new vn("One of your code blocks includes unescaped HTML.",t.innerHTML);o=t;const _=o.textContent,O=E?M(_,{language:E,ignoreIllegals:!0}):ve(_);t.innerHTML=O.value,t.dataset.highlighted="yes",Bn(t,E,O.language),t.result={language:O.language,re:O.relevance,relevance:O.relevance},O.secondBest&&(t.secondBest={language:O.secondBest.language,relevance:O.secondBest.relevance}),Re("after:highlightElement",{el:t,result:O,text:_})}function kn(t){r=Ke(r,t)}const Dn=()=>{Ne(),ce("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Pn(){Ne(),ce("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ze=!1;function Ne(){function t(){Ne()}if(document.readyState==="loading"){Ze||window.addEventListener("DOMContentLoaded",t,!1),Ze=!0;return}document.querySelectorAll(r.cssSelector).forEach(Le)}function Un(t,o){let E=null;try{E=o(e)}catch(_){if(te("Language definition for '{}' could not be registered.".replace("{}",t)),T)te(_);else throw _;E=a}E.name||(E.name=t),n[t]=E,E.rawDefinition=o.bind(null,e),E.aliases&&Ye(E.aliases,{languageName:t})}function $n(t){delete n[t];for(const o of Object.keys(s))s[o]===t&&delete s[o]}function Hn(){return Object.keys(n)}function J(t){return t=(t||"").toLowerCase(),n[t]||n[s[t]]}function Ye(t,{languageName:o}){typeof t=="string"&&(t=[t]),t.forEach(E=>{s[E.toLowerCase()]=o})}function je(t){const o=J(t);return o&&!o.disableAutodetect}function Fn(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=o=>{t["before:highlightBlock"](Object.assign({block:o.el},o))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=o=>{t["after:highlightBlock"](Object.assign({block:o.el},o))})}function Gn(t){Fn(t),g.push(t)}function Kn(t){const o=g.indexOf(t);o!==-1&&g.splice(o,1)}function Re(t,o){const E=t;g.forEach(function(_){_[E]&&_[E](o)})}function zn(t){return ce("10.7.0","highlightBlock will be removed entirely in v12.0"),ce("10.7.0","Please use highlightElement now."),Le(t)}Object.assign(e,{highlight:M,highlightAuto:ve,highlightAll:Ne,highlightElement:Le,highlightBlock:zn,configure:kn,initHighlighting:Dn,initHighlightingOnLoad:Pn,registerLanguage:Un,unregisterLanguage:$n,listLanguages:Hn,getLanguage:J,registerAliases:Ye,autoDetection:je,inherit:Ke,addPlugin:Gn,removePlugin:Kn}),e.debugMode=function(){T=!1},e.safeMode=function(){T=!0},e.versionString=mn,e.regex={concat:R,lookahead:A,either:$,optional:k,anyNumberOfTimes:D};for(const t in _e)typeof _e[t]=="object"&&l(_e[t]);return Object.assign(e,_e),e},oe=We({});return oe.newInstance=()=>We({}),Pe=oe,oe.HighlightJS=oe,oe.default=oe,Pe}var et=Qn();const it=qn(et);function rt(l){const N={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},h={match:/[{}[\],:]/,className:"punctuation",relevance:0},b=["true","false","null"],F={scope:"literal",beginKeywords:b.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:b},contains:[N,h,l.QUOTE_STRING_MODE,F,l.C_NUMBER_MODE,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function at(l){const N=l.regex,h=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),b=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],x={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:b,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},L={className:"meta",begin:/^(>>>|\.\.\.) /},I={className:"subst",begin:/\{/,end:/\}/,keywords:x,illegal:/#/},U={begin:/\{\{/,relevance:0},C={className:"string",contains:[l.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[l.BACKSLASH_ESCAPE,L],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[l.BACKSLASH_ESCAPE,L],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[l.BACKSLASH_ESCAPE,L,U,I]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[l.BACKSLASH_ESCAPE,L,U,I]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[l.BACKSLASH_ESCAPE,U,I]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[l.BACKSLASH_ESCAPE,U,I]},l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},A="[0-9](_?[0-9])*",D=`(\\b(${A}))?\\.(${A})|\\b(${A})\\.`,k=`\\b|${b.join("|")}`,R={className:"number",relevance:0,variants:[{begin:`(\\b(${A})|(${D}))[eE][+-]?(${A})[jJ]?(?=${k})`},{begin:`(${D})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${k})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${k})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${k})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${k})`},{begin:`\\b(${A})[jJ](?=${k})`}]},G={className:"comment",begin:N.lookahead(/# type:/),end:/$/,keywords:x,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},$={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:["self",L,R,C,l.HASH_COMMENT_MODE]}]};return I.contains=[C,R,L],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:x,illegal:/(<\/|\?)|=>/,contains:[L,R,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},C,G,l.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,h],scope:{1:"keyword",3:"title.function"},contains:[$]},{variants:[{match:[/\bclass/,/\s+/,h,/\s*/,/\(\s*/,h,/\s*\)/]},{match:[/\bclass/,/\s+/,h]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[R,$,C]}]}}const Me="[A-Za-z$_][0-9A-Za-z$_]*",nn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],tn=["true","false","null","undefined","NaN","Infinity"],sn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],rn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],an=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],cn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],on=[].concat(an,sn,rn);function nt(l){const N=l.regex,h=(m,{after:X})=>{const ne="</"+m[0].slice(1);return m.input.indexOf(ne,X)!==-1},b=Me,F={begin:"<>",end:"</>"},Z=/<[A-Za-z0-9\\._:-]+\s*\/>/,P={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(m,X)=>{const ne=m[0].length+m.index,ae=m.input[ne];if(ae==="<"||ae===","){X.ignoreMatch();return}ae===">"&&(h(m,{after:ne})||X.ignoreMatch());let le;const pe=m.input.substring(ne);if(le=pe.match(/^\s*=/)){X.ignoreMatch();return}if((le=pe.match(/^\s+extends\s+/))&&le.index===0){X.ignoreMatch();return}}},x={$pattern:Me,keyword:nn,literal:tn,built_in:on,"variable.language":cn},L="[0-9](_?[0-9])*",I=`\\.(${L})`,U="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${U})((${I})|\\.)?|(${I}))[eE][+-]?(${L})\\b`},{begin:`\\b(${U})\\b((${I})\\b|\\.)?|(${I})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},A={className:"subst",begin:"\\$\\{",end:"\\}",keywords:x,contains:[]},D={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},k={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,A],subLanguage:"css"}},R={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,A],subLanguage:"graphql"}},G={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,A]},Y={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:b+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},ie=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,D,k,R,G,{match:/\$\d+/},C];A.contains=ie.concat({begin:/\{/,end:/\}/,keywords:x,contains:["self"].concat(ie)});const ge=[].concat(Y,A.contains),q=ge.concat([{begin:/(\s*)\(/,end:/\)/,keywords:x,contains:["self"].concat(ge)}]),Q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:q},fe={variants:[{match:[/class/,/\s+/,b,/\s+/,/extends/,/\s+/,N.concat(b,"(",N.concat(/\./,b),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,b],scope:{1:"keyword",3:"title.class"}}]},re={relevance:0,match:N.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...sn,...rn]}},de={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Ee={variants:[{match:[/function/,/\s+/,b,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[Q],illegal:/%/},be={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Oe(m){return N.concat("(?!",m.join("|"),")")}const we={match:N.concat(/\b/,Oe([...an,"super","import"].map(m=>`${m}\\s*\\(`)),b,N.lookahead(/\s*\(/)),className:"title.function",relevance:0},ee={begin:N.concat(/\./,N.lookahead(N.concat(b,/(?![0-9A-Za-z$_(])/))),end:b,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xe={match:[/get|set/,/\s+/,b,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},Q]},he="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",Ie={match:[/const|var|let/,/\s+/,b,/\s*/,/=\s*/,/(async\s*)?/,N.lookahead(he)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[Q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:x,exports:{PARAMS_CONTAINS:q,CLASS_REFERENCE:re},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),de,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,D,k,R,G,Y,{match:/\$\d+/},C,re,{scope:"attr",match:b+N.lookahead(":"),relevance:0},Ie,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Y,l.REGEXP_MODE,{className:"function",begin:he,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:q}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:F.begin,end:F.end},{match:Z},{begin:P.begin,"on:begin":P.isTrulyOpeningTag,end:P.end}],subLanguage:"xml",contains:[{begin:P.begin,end:P.end,skip:!0,contains:["self"]}]}]},Ee,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[Q,l.inherit(l.TITLE_MODE,{begin:b,className:"title.function"})]},{match:/\.\.\./,relevance:0},ee,{match:"\\$"+b,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[Q]},we,be,fe,xe,{match:/\$[(.]/}]}}function ct(l){const N=l.regex,h=nt(l),b=Me,F=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],Z={begin:[/namespace/,/\s+/,l.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},P={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:F},contains:[h.exports.CLASS_REFERENCE]},x={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},L=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],I={$pattern:Me,keyword:nn.concat(L),literal:tn,built_in:on.concat(F),"variable.language":cn},U={className:"meta",begin:"@"+b},C=(R,G,$)=>{const Y=R.contains.findIndex(ie=>ie.label===G);if(Y===-1)throw new Error("can not find mode to replace");R.contains.splice(Y,1,$)};Object.assign(h.keywords,I),h.exports.PARAMS_CONTAINS.push(U);const A=h.contains.find(R=>R.scope==="attr"),D=Object.assign({},A,{match:N.concat(b,N.lookahead(/\s*\?:/))});h.exports.PARAMS_CONTAINS.push([h.exports.CLASS_REFERENCE,A,D]),h.contains=h.contains.concat([U,Z,P,D]),C(h,"shebang",l.SHEBANG()),C(h,"use_strict",x);const k=h.contains.find(R=>R.label==="func.def");return k.relevance=0,Object.assign(h,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),h}function ot(l){const N="true false yes no null",h="[\\w#;/?:@&=+$,.~*'()[\\]]+",b={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},F={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},Z={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},P={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[l.BACKSLASH_ESCAPE,F]},x=l.inherit(P,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),A={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},D={end:",",endsWithParent:!0,excludeEnd:!0,keywords:N,relevance:0},k={begin:/\{/,end:/\}/,contains:[D],illegal:"\\n",relevance:0},R={begin:"\\[",end:"\\]",contains:[D],illegal:"\\n",relevance:0},G=[b,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+h},{className:"type",begin:"!<"+h+">"},{className:"type",begin:"!"+h},{className:"type",begin:"!!"+h},{className:"meta",begin:"&"+l.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+l.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},l.HASH_COMMENT_MODE,{beginKeywords:N,keywords:{literal:N}},A,{className:"number",begin:l.C_NUMBER_RE+"\\b",relevance:0},k,R,Z,P],$=[...G];return $.pop(),$.push(x),D.contains=$,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:G}}export{it as H,rt as j,at as p,ct as t,ot as y};
|