@camera.ui/server 0.0.64 → 0.0.65
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/README.md +29 -0
- package/dist/interface/assets/main.BJSPOiOB.0.0.65.css +1 -0
- package/dist/interface/index.html +44 -44
- package/dist/interface/js/{@primeuix.BkBDkSvZ.0.0.64.js → @primeuix.bRNqZjQz.0.0.65.js} +43 -43
- package/dist/interface/js/{@primevue.CmI9gDHB.0.0.64.js → @primevue.nr37tGdz.0.0.65.js} +8 -8
- package/dist/interface/js/@tanstack.BlGunTa7.0.0.65.js +1 -0
- package/dist/interface/js/{@vee-validate.C7vvUs8h.0.0.64.js → @vee-validate.CM3rjqgU.0.0.65.js} +1 -1
- package/dist/interface/js/{@vueuse.CrzNw-Ap.0.0.64.js → @vueuse.CT4ArM_v.0.0.65.js} +1 -1
- package/dist/interface/js/{Adminpanel.Cr9cLAVO.0.0.64.js → Adminpanel.Hao0o9sq.0.0.65.js} +1 -1
- package/dist/interface/js/{Camera.PUrVh71A.0.0.64.js → Camera.DlM_BanJ.0.0.65.js} +1 -1
- package/dist/interface/js/{Cameras.BOIq1uuW.0.0.64.js → Cameras.Cvg5uMvR.0.0.65.js} +3 -3
- package/dist/interface/js/Cammesh.C7rHisuG.0.0.65.js +1 -0
- package/dist/interface/js/Camview.BRwFhhGH.0.0.65.js +1 -0
- package/dist/interface/js/Config.DD7ZQYIb.0.0.65.js +2 -0
- package/dist/interface/js/Console.QIMOqe_j.0.0.65.js +4 -0
- package/dist/interface/js/{CuiConsole.IQ_54YIe.0.0.64.js → CuiConsole.DFTuJye2.0.0.65.js} +1 -1
- package/dist/interface/js/{CuiPluginCard.Dxq5PA3u.0.0.64.js → CuiPluginCard.DbxiKfJr.0.0.65.js} +2 -2
- package/dist/interface/js/{CuiTimeline.Dvg-A_D3.0.0.64.js → CuiTimeline.CoOU089I.0.0.65.js} +1 -1
- package/dist/interface/js/{FirstSteps.D21zB4I8.0.0.64.js → FirstSteps.cJvnvd0p.0.0.65.js} +1 -1
- package/dist/interface/js/{Plugin.CfcJolDg.0.0.64.js → Plugin.BeWKpCW0.0.0.65.js} +1 -1
- package/dist/interface/js/{Plugins.BDGFT4rc.0.0.64.js → Plugins.B2csFQ62.0.0.65.js} +1 -1
- package/dist/interface/js/Recordings.QK0SFOP1.0.0.65.js +1 -0
- package/dist/interface/js/{Settings.n1QgVCKo.0.0.64.js → Settings.BcPlqzDA.0.0.65.js} +1 -1
- package/dist/interface/js/{SettingsAccount.DKOD5pn9.0.0.64.js → SettingsAccount.CT1-o1T3.0.0.65.js} +1 -1
- package/dist/interface/js/SettingsAppearance.Ch77J-K9.0.0.65.js +1 -0
- package/dist/interface/js/{SettingsAppearance.vue_vue_type_script_setup_true_lang.CdbksPIo.0.0.64.js → SettingsAppearance.vue_vue_type_script_setup_true_lang.Dasx97LK.0.0.65.js} +1 -1
- package/dist/interface/js/{SettingsBackup.B6E4lHe4.0.0.64.js → SettingsBackup.Vq3t50X5.0.0.65.js} +1 -1
- package/dist/interface/js/SettingsRecordings.BySo0NsX.0.0.65.js +1 -0
- package/dist/interface/js/{SettingsRemote.f8St_CxB.0.0.64.js → SettingsRemote.KojIuybJ.0.0.65.js} +1 -1
- package/dist/interface/js/{SettingsSystem.DT9sW8Bn.0.0.64.js → SettingsSystem.YAXxE6CS.0.0.65.js} +1 -1
- package/dist/interface/js/{SettingsUsers.B4zh8W2n.0.0.64.js → SettingsUsers.CMKXsKiJ.0.0.65.js} +1 -1
- package/dist/interface/js/{VersionsHandler.vue_vue_type_script_setup_true_lang.B3uSmbkC.0.0.64.js → VersionsHandler.vue_vue_type_script_setup_true_lang.Cf81Fg_-.0.0.65.js} +1 -1
- package/dist/interface/js/{ace-builds.o3mMMRPR.0.0.64.js → ace-builds.BXuWnsHa.0.0.65.js} +57 -56
- package/dist/interface/js/ace.config.Ckh2Op_e.0.0.65.js +1 -0
- package/dist/interface/js/{backup.DO1-cZ9-.0.0.64.js → backup.DjiTbs1Q.0.0.65.js} +1 -1
- package/dist/interface/js/{chart.js.C8Mk0WY-.0.0.64.js → chart.js.COWP81wl.0.0.65.js} +1 -1
- package/dist/interface/js/{close-circle.JtgTH15k.0.0.64.js → close-circle.Bt0DolDf.0.0.65.js} +1 -1
- package/dist/interface/js/{dnd-core.Bx9xaNPa.0.0.64.js → dnd-core.CIZI_Pnh.0.0.65.js} +1 -1
- package/dist/interface/js/{draggabilly.D5Tqj-Pe.0.0.64.js → draggabilly.jXME3Xl7.0.0.65.js} +1 -1
- package/dist/interface/js/{engine.io-client.QoXAw3T2.0.0.64.js → engine.io-client.Bwq6EbBZ.0.0.65.js} +1 -1
- package/dist/interface/js/{fast-deep-equal.BCDE3b5h.0.0.64.js → fast-deep-equal.wMnqc5nP.0.0.65.js} +1 -1
- package/dist/interface/js/{highlight.js.Cl8NtSQj.0.0.64.js → highlight.js.BJ--bJsY.0.0.65.js} +1 -1
- package/dist/interface/js/{linkify-it.C7Vybjuw.0.0.64.js → linkify-it.BgSGKsum.0.0.65.js} +1 -1
- package/dist/interface/js/main.DteM3Tyw.0.0.65.js +31 -0
- package/dist/interface/js/{markdown-it.DORLzL2K.0.0.64.js → markdown-it.CC2C4XG8.0.0.65.js} +1 -1
- package/dist/interface/js/{nprogress.CnzttbPh.0.0.64.js → nprogress.Y-YIR5w8.0.0.65.js} +1 -1
- package/dist/interface/js/{pinia.9X0kaQsa.0.0.64.js → pinia.B3xyHOOv.0.0.65.js} +2 -2
- package/dist/interface/js/primevue.NVdW9OqK.0.0.65.js +142 -0
- package/dist/interface/js/{qrcode.JP5fcfb-.0.0.64.js → qrcode.BsXR3CD9.0.0.65.js} +1 -1
- package/dist/interface/js/{react-dnd-touch-backend.creckxB4.0.0.64.js → react-dnd-touch-backend.C5TP3QMu.0.0.65.js} +1 -1
- package/dist/interface/js/{refresh-rounded.BkvK54dd.0.0.64.js → refresh-rounded.DOZ-DEFG.0.0.65.js} +1 -1
- package/dist/interface/js/{rxjs.Bn5s3PW8.0.0.64.js → rxjs.CUmmYmXR.0.0.65.js} +1 -1
- package/dist/interface/js/{socket.io-client.DfD_gFzU.0.0.64.js → socket.io-client.Bd1Z4yya.0.0.65.js} +1 -1
- package/dist/interface/js/{socket.io-parser.bDxrXN8d.0.0.64.js → socket.io-parser.Brq8Mynw.0.0.65.js} +1 -1
- package/dist/interface/js/{system.CyLB9Qia.0.0.64.js → system.Ch6phD20.0.0.65.js} +1 -1
- package/dist/interface/js/{trash-fill.DVgSz9-h.0.0.64.js → trash-fill.CK6-EpFr.0.0.65.js} +1 -1
- package/dist/interface/js/{unidragger.sbyCyCtI.0.0.64.js → unidragger.BlS0U2Yu.0.0.65.js} +1 -1
- package/dist/interface/js/{vee-validate.Y46tSO5P.0.0.64.js → vee-validate.Ba-stGSk.0.0.65.js} +1 -1
- package/dist/interface/js/{vue-chartjs.CNgApzKN.0.0.64.js → vue-chartjs._SToXEZB.0.0.65.js} +1 -1
- package/dist/interface/js/{vue-i18n.DT9DWshi.0.0.64.js → vue-i18n.Bdweqx4L.0.0.65.js} +1 -1
- package/dist/interface/js/{vue-inline-svg.DNIHHt2R.0.0.64.js → vue-inline-svg.dmm7rA4k.0.0.65.js} +1 -1
- package/dist/interface/js/{vue-router.Ct6ui15G.0.0.64.js → vue-router.BnioVTWI.0.0.65.js} +1 -1
- package/dist/interface/js/vue-zoomable.BYLfof9a.0.0.65.js +1 -0
- package/dist/interface/js/{vue3-dnd.DRABWH33.0.0.64.js → vue3-dnd.BltUqrfR.0.0.65.js} +1 -1
- package/dist/interface/js/{zoom-out.CTXHwELe.0.0.64.js → zoom-out.B7PvyI4N.0.0.65.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +12 -12
- package/dist/server/requirements.txt +1 -1
- package/dist/server/src/api/controllers/cameras.controller.d.ts +1 -0
- package/dist/server/src/api/controllers/cameras.controller.js +27 -0
- package/dist/server/src/api/controllers/cameras.controller.js.map +1 -1
- package/dist/server/src/api/database/index.js +10 -2
- package/dist/server/src/api/database/index.js.map +1 -1
- package/dist/server/src/api/go2rtc/api/streams.d.ts +2 -0
- package/dist/server/src/api/go2rtc/api/streams.js +44 -0
- package/dist/server/src/api/go2rtc/api/streams.js.map +1 -1
- package/dist/server/src/api/routes/cameras.routes.js +6 -0
- package/dist/server/src/api/routes/cameras.routes.js.map +1 -1
- package/dist/server/src/api/schemas/go2rtc.schema.d.ts +8 -0
- package/dist/server/src/api/schemas/go2rtc.schema.js +6 -0
- package/dist/server/src/api/schemas/go2rtc.schema.js.map +1 -1
- package/dist/server/src/api/services/cameras.service.d.ts +1 -0
- package/dist/server/src/api/services/cameras.service.js +38 -8
- package/dist/server/src/api/services/cameras.service.js.map +1 -1
- package/dist/server/src/camera/controller.d.ts +1 -3
- package/dist/server/src/camera/controller.js +5 -11
- package/dist/server/src/camera/controller.js.map +1 -1
- package/dist/server/src/camera/device.d.ts +1 -1
- package/dist/server/src/camera/device.js +2 -2
- package/dist/server/src/camera/device.js.map +1 -1
- package/dist/server/src/camera/frameWorker.js +17 -2
- package/dist/server/src/camera/frameWorker.js.map +1 -1
- package/dist/server/src/camera/iou.js +13 -14
- package/dist/server/src/camera/iou.js.map +1 -1
- package/dist/server/src/camera/utils.js.map +1 -1
- package/dist/server/src/decoder/wasm/build/decoder.js +4 -4
- package/dist/server/src/decoder/wasm/build/decoder.wasm +0 -0
- package/dist/server/src/services/config/index.js +11 -0
- package/dist/server/src/services/config/index.js.map +1 -1
- package/dist/server/src/services/config/types.d.ts +4 -0
- package/package.json +12 -12
- package/dist/interface/assets/main.B-DXUtPa.0.0.64.css +0 -1
- package/dist/interface/assets/mode-json.Br7xisR1.0.0.64.js +0 -275
- package/dist/interface/assets/worker-json.DgwNIOck.0.0.64.js +0 -1626
- package/dist/interface/js/@tanstack.a3M2yFKp.0.0.64.js +0 -1
- package/dist/interface/js/Cammesh.DzbbmpBq.0.0.64.js +0 -1
- package/dist/interface/js/Camview.DBZOlAZ1.0.0.64.js +0 -1
- package/dist/interface/js/Config.CN7_wXsV.0.0.64.js +0 -2
- package/dist/interface/js/Console.BmVLvya9.0.0.64.js +0 -4
- package/dist/interface/js/Recordings.i1TKNg0g.0.0.64.js +0 -1
- package/dist/interface/js/SettingsAppearance.DC-07_Te.0.0.64.js +0 -1
- package/dist/interface/js/SettingsRecordings.DpSe0tNQ.0.0.64.js +0 -1
- package/dist/interface/js/ace.config.DPCh40Y7.0.0.64.js +0 -1
- package/dist/interface/js/main.Bbw0FMaK.0.0.64.js +0 -31
- package/dist/interface/js/primevue.biDzr1tV.0.0.64.js +0 -142
- package/dist/interface/js/vue-zoomable.D6Sv0QVL.0.0.64.js +0 -1
- package/dist/server/src/camera/session.d.ts +0 -37
- package/dist/server/src/camera/session.js +0 -160
- package/dist/server/src/camera/session.js.map +0 -1
- /package/dist/interface/assets/{@xterm.DYP7pi_n.0.0.64.css → @xterm.DYP7pi_n.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.BKek2EMH.0.0.64.css → Adminpanel.BKek2EMH.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Cameras.BDWZJqPN.0.0.64.css → Cameras.BDWZJqPN.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Camview.Cvhuou6V.0.0.64.css → Camview.Cvhuou6V.0.0.65.css} +0 -0
- /package/dist/interface/assets/{CuiConsole.DCYyxdVg.0.0.64.css → CuiConsole.DCYyxdVg.0.0.65.css} +0 -0
- /package/dist/interface/assets/{CuiPluginCard.yF8V0SZY.0.0.64.css → CuiPluginCard.yF8V0SZY.0.0.65.css} +0 -0
- /package/dist/interface/assets/{CuiTimeline.BkIwlYtw.0.0.64.css → CuiTimeline.BkIwlYtw.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Plugin.DJElsAn5.0.0.64.css → Plugin.DJElsAn5.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Plugins.BwPlcRrV.0.0.64.css → Plugins.BwPlcRrV.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Settings.CkgfRkQr.0.0.64.css → Settings.CkgfRkQr.0.0.65.css} +0 -0
- /package/dist/interface/assets/{SettingsAccount.CDZT7gN-.0.0.64.css → SettingsAccount.CDZT7gN-.0.0.65.css} +0 -0
- /package/dist/interface/assets/{SettingsBackup.CX0rT0QJ.0.0.64.css → SettingsBackup.CX0rT0QJ.0.0.65.css} +0 -0
- /package/dist/interface/assets/{highlight.Ch2EwETz.0.0.64.css → highlight.Ch2EwETz.0.0.65.css} +0 -0
- /package/dist/interface/assets/{logo-256.BCQk9H1-.0.0.64.png → logo-256.BCQk9H1-.0.0.65.png} +0 -0
- /package/dist/interface/assets/{logo-512.DLKVOU2S.0.0.64.png → logo-512.DLKVOU2S.0.0.65.png} +0 -0
- /package/dist/interface/assets/{logo.DmEiRk0z.0.0.64.png → logo.DmEiRk0z.0.0.65.png} +0 -0
- /package/dist/interface/assets/{mode-yaml.CIYL8U3d.0.0.64.js → mode-yaml.CIYL8U3d.0.0.65.js} +0 -0
- /package/dist/interface/assets/{worker-base.jEXLGV2h.0.0.64.js → worker-base.jEXLGV2h.0.0.65.js} +0 -0
- /package/dist/interface/assets/{worker-yaml.B3uUYINB.0.0.64.js → worker-yaml.B3uUYINB.0.0.65.js} +0 -0
- /package/dist/interface/js/{@babel.l0sNRNKZ.0.0.64.js → @babel.l0sNRNKZ.0.0.65.js} +0 -0
- /package/dist/interface/js/{@intlify.BIbPqCER.0.0.64.js → @intlify.BIbPqCER.0.0.65.js} +0 -0
- /package/dist/interface/js/{@kurkle.D8fDXNIl.0.0.64.js → @kurkle.D8fDXNIl.0.0.65.js} +0 -0
- /package/dist/interface/js/{@react-dnd.CcwRs9xb.0.0.64.js → @react-dnd.CcwRs9xb.0.0.65.js} +0 -0
- /package/dist/interface/js/{@socket.io.Dkula2eQ.0.0.64.js → @socket.io.Dkula2eQ.0.0.65.js} +0 -0
- /package/dist/interface/js/{@vue.BxBKarQv.0.0.64.js → @vue.BxBKarQv.0.0.65.js} +0 -0
- /package/dist/interface/js/{@xterm.qQMvi5Sq.0.0.64.js → @xterm.tD6mXzBA.0.0.65.js} +0 -0
- /package/dist/interface/js/{axios.DHr9lByg.0.0.64.js → axios.DHr9lByg.0.0.65.js} +0 -0
- /package/dist/interface/js/{birpc.l0sNRNKZ.0.0.64.js → birpc.l0sNRNKZ.0.0.65.js} +0 -0
- /package/dist/interface/js/{compare-versions.DqEOhma6.0.0.64.js → compare-versions.DqEOhma6.0.0.65.js} +0 -0
- /package/dist/interface/js/{dijkstrajs.C00ieaqj.0.0.64.js → dijkstrajs.C00ieaqj.0.0.65.js} +0 -0
- /package/dist/interface/js/{engine.io-parser.BiEtp6m2.0.0.64.js → engine.io-parser.BiEtp6m2.0.0.65.js} +0 -0
- /package/dist/interface/js/{entities.C20TfXL6.0.0.64.js → entities.C20TfXL6.0.0.65.js} +0 -0
- /package/dist/interface/js/{ev-emitter.X5f1qa-c.0.0.64.js → ev-emitter.X5f1qa-c.0.0.65.js} +0 -0
- /package/dist/interface/js/{get-size.D1dS-IaP.0.0.64.js → get-size.D1dS-IaP.0.0.65.js} +0 -0
- /package/dist/interface/js/{hookable.l0sNRNKZ.0.0.64.js → hookable.l0sNRNKZ.0.0.65.js} +0 -0
- /package/dist/interface/js/{mdurl.k9Sl0PQj.0.0.64.js → mdurl.k9Sl0PQj.0.0.65.js} +0 -0
- /package/dist/interface/js/{perfect-debounce.l0sNRNKZ.0.0.64.js → perfect-debounce.l0sNRNKZ.0.0.65.js} +0 -0
- /package/dist/interface/js/{primelocale.Bga3dOQu.0.0.64.js → primelocale.Bga3dOQu.0.0.65.js} +0 -0
- /package/dist/interface/js/{punycode.js.Dj65hjkv.0.0.64.js → punycode.js.Dj65hjkv.0.0.65.js} +0 -0
- /package/dist/interface/js/{react-dnd-html5-backend.1HQjlkwI.0.0.64.js → react-dnd-html5-backend.1HQjlkwI.0.0.65.js} +0 -0
- /package/dist/interface/js/{redux.BFxtlG_c.0.0.64.js → redux.BFxtlG_c.0.0.65.js} +0 -0
- /package/dist/interface/js/{tslib.9k7AwCpt.0.0.64.js → tslib.9k7AwCpt.0.0.65.js} +0 -0
- /package/dist/interface/js/{uc.micro.kMc2yuuw.0.0.64.js → uc.micro.kMc2yuuw.0.0.65.js} +0 -0
- /package/dist/interface/js/{uuid.C6aID195.0.0.64.js → uuid.C6aID195.0.0.65.js} +0 -0
- /package/dist/interface/js/{vue.l0sNRNKZ.0.0.64.js → vue.l0sNRNKZ.0.0.65.js} +0 -0
- /package/dist/interface/js/{zod.2bfLsWMZ.0.0.64.js → zod.2bfLsWMZ.0.0.65.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as te}from"./@xterm.
|
|
1
|
+
import{g as te}from"./@xterm.tD6mXzBA.0.0.65.js";import{r as ee}from"./dijkstrajs.C00ieaqj.0.0.65.js";var V={},Q,Bt;function ne(){return Bt||(Bt=1,Q=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Q}var $={},F={},At;function v(){if(At)return F;At=1;let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return F.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},F.getSymbolTotalCodewords=function(n){return o[n]},F.getBCHDigit=function(u){let n=0;for(;u!==0;)n++,u>>>=1;return n},F.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');r=n},F.isKanjiModeEnabled=function(){return typeof r<"u"},F.toSJIS=function(n){return r(n)},F}var W={},Rt;function wt(){return Rt||(Rt=1,function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(u){if(typeof u!="string")throw new Error("Param is not a string");switch(u.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+u)}}r.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},r.from=function(n,t){if(r.isValid(n))return n;try{return o(n)}catch{return t}}}(W)),W}var Z,pt;function re(){if(pt)return Z;pt=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const u=Math.floor(o/8);return(this.buffer[u]>>>7-o%8&1)===1},put:function(o,u){for(let n=0;n<u;n++)this.putBit((o>>>u-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const u=Math.floor(this.length/8);this.buffer.length<=u&&this.buffer.push(0),o&&(this.buffer[u]|=128>>>this.length%8),this.length++}},Z=r,Z}var X,It;function oe(){if(It)return X;It=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,u,n,t){const e=o*this.size+u;this.data[e]=n,t&&(this.reservedBit[e]=!0)},r.prototype.get=function(o,u){return this.data[o*this.size+u]},r.prototype.xor=function(o,u,n){this.data[o*this.size+u]^=n},r.prototype.isReserved=function(o,u){return this.reservedBit[o*this.size+u]},X=r,X}var x={},Tt;function ie(){return Tt||(Tt=1,function(r){const o=v().getSymbolSize;r.getRowColCoords=function(n){if(n===1)return[];const t=Math.floor(n/7)+2,e=o(n),i=e===145?26:Math.ceil((e-13)/(2*t-2))*2,a=[e-7];for(let s=1;s<t-1;s++)a[s]=a[s-1]-i;return a.push(6),a.reverse()},r.getPositions=function(n){const t=[],e=r.getRowColCoords(n),i=e.length;for(let a=0;a<i;a++)for(let s=0;s<i;s++)a===0&&s===0||a===0&&s===i-1||a===i-1&&s===0||t.push([e[a],e[s]]);return t}}(x)),x}var tt={},Nt;function ue(){if(Nt)return tt;Nt=1;const r=v().getSymbolSize,o=7;return tt.getPositions=function(n){const t=r(n);return[[0,0],[t-o,0],[0,t-o]]},tt}var et={},Mt;function se(){return Mt||(Mt=1,function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const e=t.size;let i=0,a=0,s=0,c=null,E=null;for(let p=0;p<e;p++){a=s=0,c=E=null;for(let y=0;y<e;y++){let f=t.get(p,y);f===c?a++:(a>=5&&(i+=o.N1+(a-5)),c=f,a=1),f=t.get(y,p),f===E?s++:(s>=5&&(i+=o.N1+(s-5)),E=f,s=1)}a>=5&&(i+=o.N1+(a-5)),s>=5&&(i+=o.N1+(s-5))}return i},r.getPenaltyN2=function(t){const e=t.size;let i=0;for(let a=0;a<e-1;a++)for(let s=0;s<e-1;s++){const c=t.get(a,s)+t.get(a,s+1)+t.get(a+1,s)+t.get(a+1,s+1);(c===4||c===0)&&i++}return i*o.N2},r.getPenaltyN3=function(t){const e=t.size;let i=0,a=0,s=0;for(let c=0;c<e;c++){a=s=0;for(let E=0;E<e;E++)a=a<<1&2047|t.get(c,E),E>=10&&(a===1488||a===93)&&i++,s=s<<1&2047|t.get(E,c),E>=10&&(s===1488||s===93)&&i++}return i*o.N3},r.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let s=0;s<i;s++)e+=t.data[s];return Math.abs(Math.ceil(e*100/i/5)-10)*o.N4};function u(n,t,e){switch(n){case r.Patterns.PATTERN000:return(t+e)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return e%3===0;case r.Patterns.PATTERN011:return(t+e)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case r.Patterns.PATTERN101:return t*e%2+t*e%3===0;case r.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case r.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}r.applyMask=function(t,e){const i=e.size;for(let a=0;a<i;a++)for(let s=0;s<i;s++)e.isReserved(s,a)||e.xor(s,a,u(t,s,a))},r.getBestMask=function(t,e){const i=Object.keys(r.Patterns).length;let a=0,s=1/0;for(let c=0;c<i;c++){e(c),r.applyMask(c,t);const E=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(c,t),E<s&&(s=E,a=c)}return a}}(et)),et}var Y={},St;function Gt(){if(St)return Y;St=1;const r=wt(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Y.getBlocksCount=function(t,e){switch(e){case r.L:return o[(t-1)*4+0];case r.M:return o[(t-1)*4+1];case r.Q:return o[(t-1)*4+2];case r.H:return o[(t-1)*4+3];default:return}},Y.getTotalCodewordsCount=function(t,e){switch(e){case r.L:return u[(t-1)*4+0];case r.M:return u[(t-1)*4+1];case r.Q:return u[(t-1)*4+2];case r.H:return u[(t-1)*4+3];default:return}},Y}var nt={},H={},Pt;function ae(){if(Pt)return H;Pt=1;const r=new Uint8Array(512),o=new Uint8Array(256);return function(){let n=1;for(let t=0;t<255;t++)r[t]=n,o[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)r[t]=r[t-255]}(),H.log=function(n){if(n<1)throw new Error("log("+n+")");return o[n]},H.exp=function(n){return r[n]},H.mul=function(n,t){return n===0||t===0?0:r[o[n]+o[t]]},H}var bt;function ce(){return bt||(bt=1,function(r){const o=ae();r.mul=function(n,t){const e=new Uint8Array(n.length+t.length-1);for(let i=0;i<n.length;i++)for(let a=0;a<t.length;a++)e[i+a]^=o.mul(n[i],t[a]);return e},r.mod=function(n,t){let e=new Uint8Array(n);for(;e.length-t.length>=0;){const i=e[0];for(let s=0;s<t.length;s++)e[s]^=o.mul(t[s],i);let a=0;for(;a<e.length&&e[a]===0;)a++;e=e.slice(a)}return e},r.generateECPolynomial=function(n){let t=new Uint8Array([1]);for(let e=0;e<n;e++)t=r.mul(t,new Uint8Array([1,o.exp(e)]));return t}}(nt)),nt}var rt,Lt;function le(){if(Lt)return rt;Lt=1;const r=ce();function o(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(n){this.degree=n,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(n.length+this.degree);t.set(n);const e=r.mod(t,this.genPoly),i=this.degree-e.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(e,i),a}return e},rt=o,rt}var ot={},it={},ut={},Dt;function Qt(){return Dt||(Dt=1,ut.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),ut}var L={},qt;function $t(){if(qt)return L;qt=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+u+`)(?:.|[\r
|
|
2
2
|
]))+`;L.KANJI=new RegExp(u,"g"),L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),L.BYTE=new RegExp(n,"g"),L.NUMERIC=new RegExp(r,"g"),L.ALPHANUMERIC=new RegExp(o,"g");const t=new RegExp("^"+u+"$"),e=new RegExp("^"+r+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return L.testKanji=function(s){return t.test(s)},L.testNumeric=function(s){return e.test(s)},L.testAlphanumeric=function(s){return i.test(s)},L}var Ut;function k(){return Ut||(Ut=1,function(r){const o=Qt(),u=$t();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(e,i){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!o.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?e.ccBits[0]:i<27?e.ccBits[1]:e.ccBits[2]},r.getBestModeForData=function(e){return u.testNumeric(e)?r.NUMERIC:u.testAlphanumeric(e)?r.ALPHANUMERIC:u.testKanji(e)?r.KANJI:r.BYTE},r.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},r.isValid=function(e){return e&&e.bit&&e.ccBits};function n(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}r.from=function(e,i){if(r.isValid(e))return e;try{return n(e)}catch{return i}}}(it)),it}var Ft;function fe(){return Ft||(Ft=1,function(r){const o=v(),u=Gt(),n=wt(),t=k(),e=Qt(),i=7973,a=o.getBCHDigit(i);function s(y,f,M){for(let S=1;S<=40;S++)if(f<=r.getCapacity(S,M,y))return S}function c(y,f){return t.getCharCountIndicator(y,f)+4}function E(y,f){let M=0;return y.forEach(function(S){const b=c(S.mode,f);M+=b+S.getBitsLength()}),M}function p(y,f){for(let M=1;M<=40;M++)if(E(y,M)<=r.getCapacity(M,f,t.MIXED))return M}r.from=function(f,M){return e.isValid(f)?parseInt(f,10):M},r.getCapacity=function(f,M,S){if(!e.isValid(f))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=t.BYTE);const b=o.getSymbolTotalCodewords(f),I=u.getTotalCodewordsCount(f,M),N=(b-I)*8;if(S===t.MIXED)return N;const R=N-c(S,f);switch(S){case t.NUMERIC:return Math.floor(R/10*3);case t.ALPHANUMERIC:return Math.floor(R/11*2);case t.KANJI:return Math.floor(R/13);case t.BYTE:default:return Math.floor(R/8)}},r.getBestVersionForData=function(f,M){let S;const b=n.from(M,n.M);if(Array.isArray(f)){if(f.length>1)return p(f,b);if(f.length===0)return 1;S=f[0]}else S=f;return s(S.mode,S.getLength(),b)},r.getEncodedBits=function(f){if(!e.isValid(f)||f<7)throw new Error("Invalid QR Code version");let M=f<<12;for(;o.getBCHDigit(M)-a>=0;)M^=i<<o.getBCHDigit(M)-a;return f<<12|M}}(ot)),ot}var st={},vt;function de(){if(vt)return st;vt=1;const r=v(),o=1335,u=21522,n=r.getBCHDigit(o);return st.getEncodedBits=function(e,i){const a=e.bit<<3|i;let s=a<<10;for(;r.getBCHDigit(s)-n>=0;)s^=o<<r.getBCHDigit(s)-n;return(a<<10|s)^u},st}var at={},ct,kt;function ge(){if(kt)return ct;kt=1;const r=k();function o(u){this.mode=r.NUMERIC,this.data=u.toString()}return o.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(n){let t,e,i;for(t=0;t+3<=this.data.length;t+=3)e=this.data.substr(t,3),i=parseInt(e,10),n.put(i,10);const a=this.data.length-t;a>0&&(e=this.data.substr(t),i=parseInt(e,10),n.put(i,a*3+1))},ct=o,ct}var lt,zt;function he(){if(zt)return lt;zt=1;const r=k(),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(n){this.mode=r.ALPHANUMERIC,this.data=n}return u.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let i=o.indexOf(this.data[e])*45;i+=o.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},lt=u,lt}var ft,Vt;function me(){if(Vt)return ft;Vt=1;const r=k();function o(u){this.mode=r.BYTE,typeof u=="string"?this.data=new TextEncoder().encode(u):this.data=new Uint8Array(u)}return o.getBitsLength=function(n){return n*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(u){for(let n=0,t=this.data.length;n<t;n++)u.put(this.data[n],8)},ft=o,ft}var dt,Kt;function we(){if(Kt)return dt;Kt=1;const r=k(),o=v();function u(n){this.mode=r.KANJI,this.data=n}return u.getBitsLength=function(t){return t*13},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=o.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
3
3
|
Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}},dt=u,dt}var Ht;function Ce(){return Ht||(Ht=1,function(r){const o=k(),u=ge(),n=he(),t=me(),e=we(),i=$t(),a=v(),s=ee();function c(I){return unescape(encodeURIComponent(I)).length}function E(I,N,R){const B=[];let P;for(;(P=I.exec(R))!==null;)B.push({data:P[0],index:P.index,mode:N,length:P[0].length});return B}function p(I){const N=E(i.NUMERIC,o.NUMERIC,I),R=E(i.ALPHANUMERIC,o.ALPHANUMERIC,I);let B,P;return a.isKanjiModeEnabled()?(B=E(i.BYTE,o.BYTE,I),P=E(i.KANJI,o.KANJI,I)):(B=E(i.BYTE_KANJI,o.BYTE,I),P=[]),N.concat(R,B,P).sort(function(w,m){return w.index-m.index}).map(function(w){return{data:w.data,mode:w.mode,length:w.length}})}function y(I,N){switch(N){case o.NUMERIC:return u.getBitsLength(I);case o.ALPHANUMERIC:return n.getBitsLength(I);case o.KANJI:return e.getBitsLength(I);case o.BYTE:return t.getBitsLength(I)}}function f(I){return I.reduce(function(N,R){const B=N.length-1>=0?N[N.length-1]:null;return B&&B.mode===R.mode?(N[N.length-1].data+=R.data,N):(N.push(R),N)},[])}function M(I){const N=[];for(let R=0;R<I.length;R++){const B=I[R];switch(B.mode){case o.NUMERIC:N.push([B,{data:B.data,mode:o.ALPHANUMERIC,length:B.length},{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.ALPHANUMERIC:N.push([B,{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.KANJI:N.push([B,{data:B.data,mode:o.BYTE,length:c(B.data)}]);break;case o.BYTE:N.push([{data:B.data,mode:o.BYTE,length:c(B.data)}])}}return N}function S(I,N){const R={},B={start:{}};let P=["start"];for(let d=0;d<I.length;d++){const w=I[d],m=[];for(let l=0;l<w.length;l++){const A=w[l],g=""+d+l;m.push(g),R[g]={node:A,lastCount:0},B[g]={};for(let C=0;C<P.length;C++){const h=P[C];R[h]&&R[h].node.mode===A.mode?(B[h][g]=y(R[h].lastCount+A.length,A.mode)-y(R[h].lastCount,A.mode),R[h].lastCount+=A.length):(R[h]&&(R[h].lastCount=A.length),B[h][g]=y(A.length,A.mode)+4+o.getCharCountIndicator(A.mode,N))}}P=m}for(let d=0;d<P.length;d++)B[P[d]].end=0;return{map:B,table:R}}function b(I,N){let R;const B=o.getBestModeForData(I);if(R=o.from(N,B),R!==o.BYTE&&R.bit<B.bit)throw new Error('"'+I+'" cannot be encoded with mode '+o.toString(R)+`.
|
|
4
4
|
Suggested mode is: `+o.toString(B));switch(R===o.KANJI&&!a.isKanjiModeEnabled()&&(R=o.BYTE),R){case o.NUMERIC:return new u(I);case o.ALPHANUMERIC:return new n(I);case o.KANJI:return new e(I);case o.BYTE:return new t(I)}}r.fromArray=function(N){return N.reduce(function(R,B){return typeof B=="string"?R.push(b(B,null)):B.data&&R.push(b(B.data,B.mode)),R},[])},r.fromString=function(N,R){const B=p(N,a.isKanjiModeEnabled()),P=M(B),d=S(P,R),w=s.find_path(d.map,"start","end"),m=[];for(let l=1;l<w.length-1;l++)m.push(d.table[w[l]].node);return r.fromArray(f(m))},r.rawSplit=function(N){return r.fromArray(p(N,a.isKanjiModeEnabled()))}}(at)),at}var Jt;function Ee(){if(Jt)return $;Jt=1;const r=v(),o=wt(),u=re(),n=oe(),t=ie(),e=ue(),i=se(),a=Gt(),s=le(),c=fe(),E=de(),p=k(),y=Ce();function f(d,w){const m=d.size,l=e.getPositions(w);for(let A=0;A<l.length;A++){const g=l[A][0],C=l[A][1];for(let h=-1;h<=7;h++)if(!(g+h<=-1||m<=g+h))for(let T=-1;T<=7;T++)C+T<=-1||m<=C+T||(h>=0&&h<=6&&(T===0||T===6)||T>=0&&T<=6&&(h===0||h===6)||h>=2&&h<=4&&T>=2&&T<=4?d.set(g+h,C+T,!0,!0):d.set(g+h,C+T,!1,!0))}}function M(d){const w=d.size;for(let m=8;m<w-8;m++){const l=m%2===0;d.set(m,6,l,!0),d.set(6,m,l,!0)}}function S(d,w){const m=t.getPositions(w);for(let l=0;l<m.length;l++){const A=m[l][0],g=m[l][1];for(let C=-2;C<=2;C++)for(let h=-2;h<=2;h++)C===-2||C===2||h===-2||h===2||C===0&&h===0?d.set(A+C,g+h,!0,!0):d.set(A+C,g+h,!1,!0)}}function b(d,w){const m=d.size,l=c.getEncodedBits(w);let A,g,C;for(let h=0;h<18;h++)A=Math.floor(h/3),g=h%3+m-8-3,C=(l>>h&1)===1,d.set(A,g,C,!0),d.set(g,A,C,!0)}function I(d,w,m){const l=d.size,A=E.getEncodedBits(w,m);let g,C;for(g=0;g<15;g++)C=(A>>g&1)===1,g<6?d.set(g,8,C,!0):g<8?d.set(g+1,8,C,!0):d.set(l-15+g,8,C,!0),g<8?d.set(8,l-g-1,C,!0):g<9?d.set(8,15-g-1+1,C,!0):d.set(8,15-g-1,C,!0);d.set(l-8,8,1,!0)}function N(d,w){const m=d.size;let l=-1,A=m-1,g=7,C=0;for(let h=m-1;h>0;h-=2)for(h===6&&h--;;){for(let T=0;T<2;T++)if(!d.isReserved(A,h-T)){let U=!1;C<w.length&&(U=(w[C]>>>g&1)===1),d.set(A,h-T,U),g--,g===-1&&(C++,g=7)}if(A+=l,A<0||m<=A){A-=l,l=-l;break}}}function R(d,w,m){const l=new u;m.forEach(function(T){l.put(T.mode.bit,4),l.put(T.getLength(),p.getCharCountIndicator(T.mode,d)),T.write(l)});const A=r.getSymbolTotalCodewords(d),g=a.getTotalCodewordsCount(d,w),C=(A-g)*8;for(l.getLengthInBits()+4<=C&&l.put(0,4);l.getLengthInBits()%8!==0;)l.putBit(0);const h=(C-l.getLengthInBits())/8;for(let T=0;T<h;T++)l.put(T%2?17:236,8);return B(l,d,w)}function B(d,w,m){const l=r.getSymbolTotalCodewords(w),A=a.getTotalCodewordsCount(w,m),g=l-A,C=a.getBlocksCount(w,m),h=l%C,T=C-h,U=Math.floor(l/C),K=Math.floor(g/C),Zt=K+1,Ct=U-K,Xt=new s(Ct);let _=0;const J=new Array(C),Et=new Array(C);let O=0;const xt=new Uint8Array(d.buffer);for(let z=0;z<C;z++){const G=z<T?K:Zt;J[z]=xt.slice(_,_+G),Et[z]=Xt.encode(J[z]),_+=G,O=Math.max(O,G)}const j=new Uint8Array(l);let yt=0,D,q;for(D=0;D<O;D++)for(q=0;q<C;q++)D<J[q].length&&(j[yt++]=J[q][D]);for(D=0;D<Ct;D++)for(q=0;q<C;q++)j[yt++]=Et[q][D];return j}function P(d,w,m,l){let A;if(Array.isArray(d))A=y.fromArray(d);else if(typeof d=="string"){let U=w;if(!U){const K=y.rawSplit(d);U=c.getBestVersionForData(K,m)}A=y.fromString(d,U||40)}else throw new Error("Invalid data");const g=c.getBestVersionForData(A,m);if(!g)throw new Error("The amount of data is too big to be stored in a QR Code");if(!w)w=g;else if(w<g)throw new Error(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as M}from"./@react-dnd.CcwRs9xb.0.0.64.js";var l;(function(s){s.mouse="mouse",s.touch="touch",s.keyboard="keyboard"})(l||(l={}));class N{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get delayMouseStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,o){this.args=e,this.context=o}}function w(s,e,o,n){return Math.sqrt(Math.pow(Math.abs(o-s),2)+Math.pow(Math.abs(n-e),2))}function C(s,e,o,n,t){if(!t)return!1;const i=Math.atan2(n-e,o-s)*180/Math.PI+180;for(let a=0;a<t.length;++a){const r=t[a];if(r&&(r.start==null||i>=r.start)&&(r.end==null||i<=r.end))return!0}return!1}const x={Left:1},D={Left:0};function b(s){return s.button===void 0||s.button===D.Left}function L(s){return s.buttons===void 0||(s.buttons&x.Left)===0}function y(s){return!!s.targetTouches}const P=1;function _(s){const e=s.nodeType===P?s:s.parentElement;if(!e)return;const{top:o,left:n}=e.getBoundingClientRect();return{x:n,y:o}}function k(s,e){if(s.targetTouches.length===1)return S(s.targetTouches[0]);if(e&&s.touches.length===1&&s.touches[0].target===e.target)return S(s.touches[0])}function S(s,e){return y(s)?k(s,e):{x:s.clientX,y:s.clientY}}const T=(()=>{let s=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return s=!0,!0}}))}catch{}return s})(),v={[l.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[l.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[l.keyboard]:{keydown:"keydown"}};class f{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(M(!f.isSetUp,"Cannot have two Touch backends at the same time."),f.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(f.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.addEventListener(r,n,i)})}removeEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.removeEventListener(r,n,i)})}connectDragSource(e,o){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,o),this.addEventListener(o,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(o,"start",n)}}connectDragPreview(e,o,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,o),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,o){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const t=i=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(i.type){case v.mouse.move:a={x:i.clientX,y:i.clientY};break;case v.touch.move:var r,d;a={x:((r=i.touches[0])===null||r===void 0?void 0:r.clientX)||0,y:((d=i.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const c=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,g=c&&o.contains(c);if(c===o||g)return this.handleMove(i,e)};return this.addEventListener(this.document.body,"move",t),this.targetNodes.set(e,o),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",t))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,o,n){this.getSourceClientOffset=t=>{const i=this.sourceNodes.get(t);return i&&_(i)},this.handleTopMoveStartCapture=t=>{b(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!b(t))return;const i=S(t);i&&(y(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!b(t))return;const i=t.type===v.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,t),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(t,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=t=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,r=this.options.enableHoverOutsideTarget,d=S(t,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&C(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&w(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),t.cancelable&&t.preventDefault();const g=(a||[]).map(u=>this.targetNodes.get(u)).filter(u=>!!u),E=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,g):this.document.elementsFromPoint(d.x,d.y),p=[];for(const u in E){if(!E.hasOwnProperty(u))continue;let h=E[u];for(h!=null&&p.push(h);h;)h=h.parentElement,h&&p.indexOf(h)===-1&&p.push(h)}const m=p.filter(u=>g.indexOf(u)>-1).map(u=>this._getDropTargetId(u)).filter(u=>!!u).filter((u,h,O)=>O.indexOf(u)===h);if(r)for(const u in this.targetNodes){const h=this.targetNodes.get(u);if(c&&h&&h.contains(c)&&m.indexOf(u)===-1){m.unshift(u);break}}m.reverse(),this.actions.hover(m,{clientOffset:d})},this._getDropTargetId=t=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const r=a.value;if(t===this.targetNodes.get(r))return r;a=i.next()}},this.handleTopMoveEndCapture=t=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!L(t)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}t.cancelable&&t.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=t=>{t.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new N(n,o),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(l.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(l.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(l.keyboard)}}const A=function(e,o={},n={}){return new f(e,o,n)};export{A as T};
|
|
1
|
+
import{i as M}from"./@react-dnd.CcwRs9xb.0.0.65.js";var l;(function(s){s.mouse="mouse",s.touch="touch",s.keyboard="keyboard"})(l||(l={}));class N{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get delayMouseStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,o){this.args=e,this.context=o}}function w(s,e,o,n){return Math.sqrt(Math.pow(Math.abs(o-s),2)+Math.pow(Math.abs(n-e),2))}function C(s,e,o,n,t){if(!t)return!1;const i=Math.atan2(n-e,o-s)*180/Math.PI+180;for(let a=0;a<t.length;++a){const r=t[a];if(r&&(r.start==null||i>=r.start)&&(r.end==null||i<=r.end))return!0}return!1}const x={Left:1},D={Left:0};function b(s){return s.button===void 0||s.button===D.Left}function L(s){return s.buttons===void 0||(s.buttons&x.Left)===0}function y(s){return!!s.targetTouches}const P=1;function _(s){const e=s.nodeType===P?s:s.parentElement;if(!e)return;const{top:o,left:n}=e.getBoundingClientRect();return{x:n,y:o}}function k(s,e){if(s.targetTouches.length===1)return S(s.targetTouches[0]);if(e&&s.touches.length===1&&s.touches[0].target===e.target)return S(s.touches[0])}function S(s,e){return y(s)?k(s,e):{x:s.clientX,y:s.clientY}}const T=(()=>{let s=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return s=!0,!0}}))}catch{}return s})(),v={[l.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[l.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[l.keyboard]:{keydown:"keydown"}};class f{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(M(!f.isSetUp,"Cannot have two Touch backends at the same time."),f.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(f.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.addEventListener(r,n,i)})}removeEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.removeEventListener(r,n,i)})}connectDragSource(e,o){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,o),this.addEventListener(o,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(o,"start",n)}}connectDragPreview(e,o,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,o),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,o){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const t=i=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(i.type){case v.mouse.move:a={x:i.clientX,y:i.clientY};break;case v.touch.move:var r,d;a={x:((r=i.touches[0])===null||r===void 0?void 0:r.clientX)||0,y:((d=i.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const c=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,g=c&&o.contains(c);if(c===o||g)return this.handleMove(i,e)};return this.addEventListener(this.document.body,"move",t),this.targetNodes.set(e,o),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",t))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,o,n){this.getSourceClientOffset=t=>{const i=this.sourceNodes.get(t);return i&&_(i)},this.handleTopMoveStartCapture=t=>{b(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!b(t))return;const i=S(t);i&&(y(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!b(t))return;const i=t.type===v.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,t),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(t,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=t=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,r=this.options.enableHoverOutsideTarget,d=S(t,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&C(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&w(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),t.cancelable&&t.preventDefault();const g=(a||[]).map(u=>this.targetNodes.get(u)).filter(u=>!!u),E=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,g):this.document.elementsFromPoint(d.x,d.y),p=[];for(const u in E){if(!E.hasOwnProperty(u))continue;let h=E[u];for(h!=null&&p.push(h);h;)h=h.parentElement,h&&p.indexOf(h)===-1&&p.push(h)}const m=p.filter(u=>g.indexOf(u)>-1).map(u=>this._getDropTargetId(u)).filter(u=>!!u).filter((u,h,O)=>O.indexOf(u)===h);if(r)for(const u in this.targetNodes){const h=this.targetNodes.get(u);if(c&&h&&h.contains(c)&&m.indexOf(u)===-1){m.unshift(u);break}}m.reverse(),this.actions.hover(m,{clientOffset:d})},this._getDropTargetId=t=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const r=a.value;if(t===this.targetNodes.get(r))return r;a=i.next()}},this.handleTopMoveEndCapture=t=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!L(t)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}t.cancelable&&t.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=t=>{t.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new N(n,o),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(l.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(l.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(l.keyboard)}}const A=function(e,o={},n={}){return new f(e,o,n)};export{A as T};
|
package/dist/interface/js/{refresh-rounded.BkvK54dd.0.0.64.js → refresh-rounded.DOZ-DEFG.0.0.65.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as t,c as n,d as o,e as r}from"./@vue.BxBKarQv.0.0.
|
|
1
|
+
import{F as t,c as n,d as o,e as r}from"./@vue.BxBKarQv.0.0.65.js";const a={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function l(s,e){return o(),n("svg",a,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M18 10h-4V6a2 2 0 0 0-4 0l.071 4H6a2 2 0 0 0 0 4l4.071-.071L10 18a2 2 0 0 0 4 0v-4.071L18 14a2 2 0 0 0 0-4"},null,-1)]))}const u=t({name:"typcn-plus",render:l}),i={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function c(s,e){return o(),n("svg",i,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20"},null,-1)]))}const d=t({name:"material-symbols-refresh-rounded",render:c});export{d as _,u as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{_ as E,a as v,b as d,c as O}from"./tslib.9k7AwCpt.0.0.
|
|
1
|
+
import{_ as E,a as v,b as d,c as O}from"./tslib.9k7AwCpt.0.0.65.js";function f(e){return typeof e=="function"}function M(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var b=M(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
2
2
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
3
3
|
`):"",this.name="UnsubscriptionError",this.errors=r}});function P(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var m=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=E(s),c=a.next();!c.done;c=a.next()){var U=c.value;U.remove(this)}}catch(u){t={error:u}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var S=this.initialTeardown;if(f(S))try{S()}catch(u){i=u instanceof b?u.errors:[u]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=E(g),l=p.next();!l.done;l=p.next()){var F=l.value;try{_(F)}catch(u){i=i??[],u instanceof b?i=v(v([],d(i)),d(u.errors)):i.push(u)}}}catch(u){n={error:u}}finally{try{l&&!l.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new b(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)_(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&P(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&P(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();m.EMPTY;function T(e){return e instanceof m||e&&"closed"in e&&f(e.remove)&&f(e.add)&&f(e.unsubscribe)}function _(e){f(e)?e():e.unsubscribe()}var R={Promise:void 0},Y={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,v([e,t],d(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function j(e){Y.setTimeout(function(){throw e})}function x(){}function k(e){e()}var w=function(e){O(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,T(r)&&r.add(n)):n.destination=I,n}return t.create=function(r,n,o){return new y(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(m),B=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){h(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){h(n)}else h(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){h(r)}},e}(),y=function(e){O(t,e);function t(r,n,o){var i=e.call(this)||this,s;return f(r)||!r?s={next:r??void 0,error:n??void 0,complete:o??void 0}:s=r,i.destination=new B(s),i}return t}(w);function h(e){j(e)}function H(e){throw e}var I={closed:!0,next:x,error:H,complete:x},V=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function q(e){return e}function D(e){return e.length===0?q:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var L=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=J(t)?t:new y(t,r,n);return k(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=A(r),new r(function(o,i){var s=new y({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[V]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return D(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=A(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function A(e){var t;return(t=e??R.Promise)!==null&&t!==void 0?t:Promise}function G(e){return e&&f(e.next)&&f(e.error)&&f(e.complete)}function J(e){return e&&e instanceof w||G(e)&&T(e)}export{L as O};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as k,i as b,S as v,n as E}from"./engine.io-client.QoXAw3T2.0.0.64.js";import"./engine.io-parser.BiEtp6m2.0.0.64.js";import{E as _}from"./@socket.io.Dkula2eQ.0.0.64.js";import{P as c,p as O}from"./socket.io-parser.bDxrXN8d.0.0.64.js";function w(i,t="",e){let s=i;e=e||typeof location<"u"&&location,i==null&&(i=e.protocol+"//"+e.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=e.protocol+i:i=e.host+i),/^(https?|wss?):\/\//.test(i)||(typeof e<"u"?i=e.protocol+"//"+i:i="https://"+i),s=k(i)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+t,s.href=s.protocol+"://"+o+(e&&e.port===s.port?"":":"+s.port),s}function a(i,t,e){return i.on(t,e),function(){i.off(t,e)}}const L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class y extends _{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[a(t,"open",this.onopen.bind(this)),a(t,"packet",this.onpacket.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,n,o;if(L.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const r={type:c.EVENT,data:e};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const m=this.ids++,g=e.pop();this._registerAckCallback(m,g),r.id=m}const h=(n=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||n===void 0?void 0:n.writable,f=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!h||(f?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){var s;const n=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(n===void 0){this.acks[t]=e;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===t&&this.sendBuffer.splice(h,1);e.call(this,new Error("operation has timed out"))},n),r=(...h)=>{this.io.clearTimeoutFn(o),e.apply(this,h)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...e){return new Promise((s,n)=>{const o=(r,h)=>r?n(r):s(h);o.withError=!0,e.push(o),this.emit(t,...e)})}_addToQueue(t){let e;typeof t[t.length-1]=="function"&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...o)=>s!==this._queue[0]?void 0:(n!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(n)):(this._queue.shift(),e&&e(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case c.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(t);break;case c.ACK:case c.BINARY_ACK:this.onack(t);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:c.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function u(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}u.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*i);i=(Math.floor(t*10)&1)==0?i-e:i+e}return Math.min(i,this.max)|0};u.prototype.reset=function(){this.attempts=0};u.prototype.setMin=function(i){this.ms=i};u.prototype.setMax=function(i){this.max=i};u.prototype.setJitter=function(i){this.jitter=i};class p extends _{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,b(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((s=e.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new u({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const n=e.parser||O;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new v(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=a(e,"open",function(){s.onopen(),t&&t()}),o=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),t?t(h):this.maybeReconnectOnOpen()},r=a(e,"error",o);if(this._timeout!==!1){const h=this._timeout,f=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),e.close()},h);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(n),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(a(t,"ping",this.onping.bind(this)),a(t,"data",this.ondata.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this)),a(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){E(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new y(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e)if(this.nsps[s].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const d={};function l(i,t){typeof i=="object"&&(t=i,i=void 0),t=t||{};const e=w(i,t.path||"/socket.io"),s=e.source,n=e.id,o=e.path,r=d[n]&&o in d[n].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||r;let f;return h?f=new p(s,t):(d[n]||(d[n]=new p(s,t)),f=d[n]),e.query&&!t.query&&(t.query=e.queryKey),f.socket(e.path,t)}Object.assign(l,{Manager:p,Socket:y,io:l,connect:l});export{p as M};
|
|
1
|
+
import{p as k,i as b,S as v,n as E}from"./engine.io-client.Bwq6EbBZ.0.0.65.js";import"./engine.io-parser.BiEtp6m2.0.0.65.js";import{E as _}from"./@socket.io.Dkula2eQ.0.0.65.js";import{P as c,p as O}from"./socket.io-parser.Brq8Mynw.0.0.65.js";function w(i,t="",e){let s=i;e=e||typeof location<"u"&&location,i==null&&(i=e.protocol+"//"+e.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=e.protocol+i:i=e.host+i),/^(https?|wss?):\/\//.test(i)||(typeof e<"u"?i=e.protocol+"//"+i:i="https://"+i),s=k(i)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+t,s.href=s.protocol+"://"+o+(e&&e.port===s.port?"":":"+s.port),s}function a(i,t,e){return i.on(t,e),function(){i.off(t,e)}}const L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class y extends _{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[a(t,"open",this.onopen.bind(this)),a(t,"packet",this.onpacket.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,n,o;if(L.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const r={type:c.EVENT,data:e};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const m=this.ids++,g=e.pop();this._registerAckCallback(m,g),r.id=m}const h=(n=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||n===void 0?void 0:n.writable,f=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!h||(f?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){var s;const n=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(n===void 0){this.acks[t]=e;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===t&&this.sendBuffer.splice(h,1);e.call(this,new Error("operation has timed out"))},n),r=(...h)=>{this.io.clearTimeoutFn(o),e.apply(this,h)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...e){return new Promise((s,n)=>{const o=(r,h)=>r?n(r):s(h);o.withError=!0,e.push(o),this.emit(t,...e)})}_addToQueue(t){let e;typeof t[t.length-1]=="function"&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...o)=>s!==this._queue[0]?void 0:(n!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(n)):(this._queue.shift(),e&&e(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case c.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(t);break;case c.ACK:case c.BINARY_ACK:this.onack(t);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:c.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function u(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}u.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*i);i=(Math.floor(t*10)&1)==0?i-e:i+e}return Math.min(i,this.max)|0};u.prototype.reset=function(){this.attempts=0};u.prototype.setMin=function(i){this.ms=i};u.prototype.setMax=function(i){this.max=i};u.prototype.setJitter=function(i){this.jitter=i};class p extends _{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,b(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((s=e.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new u({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const n=e.parser||O;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new v(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=a(e,"open",function(){s.onopen(),t&&t()}),o=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),t?t(h):this.maybeReconnectOnOpen()},r=a(e,"error",o);if(this._timeout!==!1){const h=this._timeout,f=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),e.close()},h);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(n),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(a(t,"ping",this.onping.bind(this)),a(t,"data",this.ondata.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this)),a(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){E(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new y(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e)if(this.nsps[s].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const d={};function l(i,t){typeof i=="object"&&(t=i,i=void 0),t=t||{};const e=w(i,t.path||"/socket.io"),s=e.source,n=e.id,o=e.path,r=d[n]&&o in d[n].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||r;let f;return h?f=new p(s,t):(d[n]||(d[n]=new p(s,t)),f=d[n]),e.query&&!t.query&&(t.query=e.queryKey),f.socket(e.path,t)}Object.assign(l,{Manager:p,Socket:y,io:l,connect:l});export{p as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as N}from"./@socket.io.Dkula2eQ.0.0.
|
|
1
|
+
import{E as N}from"./@socket.io.Dkula2eQ.0.0.65.js";const A=typeof ArrayBuffer=="function",E=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,y=Object.prototype.toString,d=typeof Blob=="function"||typeof Blob<"u"&&y.call(Blob)==="[object BlobConstructor]",g=typeof File=="function"||typeof File<"u"&&y.call(File)==="[object FileConstructor]";function a(e){return A&&(e instanceof ArrayBuffer||E(e))||d&&e instanceof Blob||g&&e instanceof File}function u(e,r){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1}if(a(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return u(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&u(e[t]))return!0;return!1}function w(e){const r=[],t=e.data,n=e;return n.data=f(t,r),n.attachments=r.length,{packet:n,buffers:r}}function f(e,r){if(!e)return e;if(a(e)){const t={_placeholder:!0,num:r.length};return r.push(e),t}else if(Array.isArray(e)){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=f(e[n],r);return t}else if(typeof e=="object"&&!(e instanceof Date)){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=f(e[n],r));return t}return e}function B(e,r){return e.data=l(e.data,r),delete e.attachments,e}function l(e,r){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<r.length)return r[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let t=0;t<e.length;t++)e[t]=l(e[t],r);else if(typeof e=="object")for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=l(e[t],r));return e}const C=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],R=5;var i;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(i||(i={}));class O{constructor(r){this.replacer=r}encode(r){return(r.type===i.EVENT||r.type===i.ACK)&&u(r)?this.encodeAsBinary({type:r.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let t=""+r.type;return(r.type===i.BINARY_EVENT||r.type===i.BINARY_ACK)&&(t+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(t+=r.nsp+","),r.id!=null&&(t+=r.id),r.data!=null&&(t+=JSON.stringify(r.data,this.replacer)),t}encodeAsBinary(r){const t=w(r),n=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(n),o}}function p(e){return Object.prototype.toString.call(e)==="[object Object]"}class h extends N{constructor(r){super(),this.reviver=r}add(r){let t;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(r);const n=t.type===i.BINARY_EVENT;n||t.type===i.BINARY_ACK?(t.type=n?i.EVENT:i.ACK,this.reconstructor=new m(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(a(r)||r.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(r),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let t=0;const n={type:Number(r.charAt(0))};if(i[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===i.BINARY_EVENT||n.type===i.BINARY_ACK){const s=t+1;for(;r.charAt(++t)!=="-"&&t!=r.length;);const c=r.substring(s,t);if(c!=Number(c)||r.charAt(t)!=="-")throw new Error("Illegal attachments");n.attachments=Number(c)}if(r.charAt(t+1)==="/"){const s=t+1;for(;++t&&!(r.charAt(t)===","||t===r.length););n.nsp=r.substring(s,t)}else n.nsp="/";const o=r.charAt(t+1);if(o!==""&&Number(o)==o){const s=t+1;for(;++t;){const c=r.charAt(t);if(c==null||Number(c)!=c){--t;break}if(t===r.length)break}n.id=Number(r.substring(s,t+1))}if(r.charAt(++t)){const s=this.tryParse(r.substr(t));if(h.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,t){switch(r){case i.CONNECT:return p(t);case i.DISCONNECT:return t===void 0;case i.CONNECT_ERROR:return typeof t=="string"||p(t);case i.EVENT:case i.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&C.indexOf(t[0])===-1);case i.ACK:case i.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class m{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const t=B(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const V=Object.freeze(Object.defineProperty({__proto__:null,Decoder:h,Encoder:O,get PacketType(){return i},protocol:R},Symbol.toStringTag,{value:"Module"}));export{i as P,V as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var y=Object.defineProperty;var i=(t,e,n)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var a=(t,e,n)=>i(t,typeof e!="symbol"?e+"":e,n);import{c as m,
|
|
1
|
+
var y=Object.defineProperty;var i=(t,e,n)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var a=(t,e,n)=>i(t,typeof e!="symbol"?e+"":e,n);import{c as m,a2 as s}from"./main.DteM3Tyw.0.0.65.js";import{u as d,a as o,b as r}from"./@tanstack.BlGunTa7.0.0.65.js";import{u as l}from"./vue-i18n.Bdweqx4L.0.0.65.js";import{r as p}from"./@vue.BxBKarQv.0.0.65.js";const h=async()=>(await s.get("/system")).data,g=async t=>(await s.patch("/system",t)).data,f=async({serverData:t})=>(await s.post("/system/update",t)).data,v=async({signal:t})=>(await s.get("/system/version",{signal:t})).data,Q=async()=>(await s.delete("/system/log")).data,w=async({signal:t})=>(await s.get("/system/log/download",{signal:t})).data,S=async()=>(await s.post("/system/cert",{responseType:"arraybuffer"})).data,q=async({signal:t})=>(await s.get("/system/go2rtc",{signal:t})).data,F=async()=>(await s.put("/system/restart")).data,_=async()=>(await s.put("/system/restart/go2rtc")).data,b=async()=>(await s.put("/system/reset")).data;class G{constructor(){a(this,"_queryClient",d());a(this,"t",l().t);a(this,"toast",m());a(this,"queryActivator",p([{name:"downloadLogQuery",enabled:!0},{name:"getGo2RtcInfoQuery",enabled:!0},{name:"checkVersionQuery",enabled:!0},{name:"getSystemInfoQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getSystemInfoQuery(){return o({queryKey:["system"],queryFn:h})}patchSystemInfoQuery(){return r({mutationFn:g,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["system"],exact:!0}),this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_updated"),life:3e3})}})}updateServerQuery(){return r({mutationFn:f,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_updated"),life:3e3})}})}downloadLogQuery(){return o({queryKey:["logs","system"],queryFn:({signal:e})=>w({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="downloadLogQuery"&&e.enabled)})}downloadCertQuery(){return r({mutationFn:S})}clearLogQuery(){return r({mutationFn:Q,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["logs","system"],exact:!0}),this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.log_cleared"),life:3e3})}})}checkVersionQuery(){return o({queryKey:["version"],queryFn:({signal:e})=>v({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="checkVersionQuery"&&e.enabled)})}getGo2RtcInfoQuery(){return o({queryKey:["go2rtc"],queryFn:({signal:e})=>q({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getGo2RtcInfoQuery"&&e.enabled)})}restartGo2RtcQuery(){return r({mutationFn:_,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.go2rtc_restarted"),life:3e3})}})}restartServerQuery(){return r({mutationFn:F,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_restarted"),life:3e3})}})}resetServerQuery(){return r({mutationFn:b,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_resetted"),life:3e3})}})}toggleQueryActivator(e,n){const c=this.queryActivator.value.find(u=>u.name===e);c&&(c.enabled=n)}}export{G as S,S as d,F as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as a,c as o,d as l,e as r}from"./@vue.BxBKarQv.0.0.
|
|
1
|
+
import{F as a,c as o,d as l,e as r}from"./@vue.BxBKarQv.0.0.65.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function t(s,e){return l(),o("svg",n,e[0]||(e[0]=[r("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8.106 2.553A1 1 0 0 1 9 2h6a1 1 0 0 1 .894.553L17.618 6H20a1 1 0 1 1 0 2h-1v11a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V8H4a1 1 0 0 1 0-2h2.382zM14.382 4l1 2H8.618l1-2zM11 11a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0zm4 0a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0z","clip-rule":"evenodd"},null,-1)]))}const i=a({name:"iconamoon-trash-fill",render:t});export{i as T};
|
package/dist/interface/js/{vee-validate.Y46tSO5P.0.0.64.js → vee-validate.Ba-stGSk.0.0.65.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as tn,v as be,Q as rn,a3 as Pe,r as le,b as we,k as E,A as m,h as P,o as An,f as Be,w as Ve,a as Gn,i as En,C as Kn,n as se,z as Yn,a4 as Qn,g as Re,a5 as Je}from"./@vue.BxBKarQv.0.0.
|
|
1
|
+
import{B as tn,v as be,Q as rn,a3 as Pe,r as le,b as we,k as E,A as m,h as P,o as An,f as Be,w as Ve,a as Gn,i as En,C as Kn,n as se,z as Yn,a4 as Qn,g as Re,a5 as Je}from"./@vue.BxBKarQv.0.0.65.js";/**
|
|
2
2
|
* vee-validate v4.15.0
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as P,B as T}from"./chart.js.
|
|
1
|
+
import{C as P,B as T}from"./chart.js.COWP81wl.0.0.65.js";import{B as O,z as C,a3 as D,a6 as j,r as q,o as A,a7 as K,w as R,D as h,a8 as w,n as U}from"./@vue.BxBKarQv.0.0.65.js";const L={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},k={ariaLabel:{type:String},ariaDescribedby:{type:String}},z={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...L,...k},N=j[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function u(t){return w(t)?h(t):t}function $(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return w(e)?new Proxy(t,{}):t}function E(t,e){const s=t.options;s&&e&&Object.assign(s,e)}function B(t,e){t.labels=e}function S(t,e,s){const o=[];t.datasets=e.map(n=>{const a=t.datasets.find(c=>c[s]===n[s]);return!a||!n.data||o.includes(a)?{...n}:(o.push(a),Object.assign(a,n),a)})}function F(t,e){const s={labels:[],datasets:[]};return B(s,t.labels),S(s,t.datasets,e),s}const G=O({props:z,setup(t,e){let{expose:s,slots:o}=e;const n=q(null),a=C(null);s({chart:a});const c=()=>{if(!n.value)return;const{type:r,data:p,options:y,plugins:f,datasetIdKey:v}=t,b=F(p,v),i=$(b,p);a.value=new P(n.value,{type:r,data:i,options:{...y},plugins:f})},d=()=>{const r=h(a.value);r&&(t.destroyDelay>0?setTimeout(()=>{r.destroy(),a.value=null},t.destroyDelay):(r.destroy(),a.value=null))},I=r=>{r.update(t.updateMode)};return A(c),K(d),R([()=>t.options,()=>t.data],(r,p)=>{let[y,f]=r,[v,b]=p;const i=h(a.value);if(!i)return;let g=!1;if(y){const l=u(y),m=u(v);l&&l!==m&&(E(i,l),g=!0)}if(f){const l=u(f.labels),m=u(b.labels),x=u(f.datasets),M=u(b.datasets);l!==m&&(B(i.config.data,l),g=!0),x&&x!==M&&(S(i.config.data,x,t.datasetIdKey),g=!0)}g&&U(()=>{I(i)})},{deep:!0}),()=>D("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:n},[D("p",{},[o.default?o.default():""])])}});function H(t,e){return P.register(e),O({props:L,setup(s,o){let{expose:n}=o;const a=C(null),c=d=>{a.value=d==null?void 0:d.chart};return n({chart:a}),()=>D(G,N({ref:c},{type:t,...s}))}})}const V=H("bar",T);export{V as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as kt,i as L,m as M,a as k,b as d,D as Ve,d as y,e as Z,f as U,u as H,g as ee,h as P,j as N,k as q,l as te,n as ht,o as p,p as de,q as Ee,r as G,s as Q,A as Ot,t as Nt,v as yt,N as pt,w as xe,x as Ie,C as Pt,y as Fe,z as Le,M as Re,B as Te,E as ve,F as ke,G as he,H as Mt,I as St,J as Dt,K as Ct,L as At,O as Wt,P as Ut,Q as j,R as Vt,S as xt,T as wt}from"./@intlify.BIbPqCER.0.0.
|
|
1
|
+
import{c as kt,i as L,m as M,a as k,b as d,D as Ve,d as y,e as Z,f as U,u as H,g as ee,h as P,j as N,k as q,l as te,n as ht,o as p,p as de,q as Ee,r as G,s as Q,A as Ot,t as Nt,v as yt,N as pt,w as xe,x as Ie,C as Pt,y as Fe,z as Le,M as Re,B as Te,E as ve,F as ke,G as he,H as Mt,I as St,J as Dt,K as Ct,L as At,O as Wt,P as Ut,Q as j,R as Vt,S as xt,T as wt}from"./@intlify.BIbPqCER.0.0.65.js";import{y as $t,r as Ht,z as Yt,k as Y,w as ne,f as jt,B as ie,g as B,a3 as we,X as $e,i as Gt,o as Bt,a7 as Xt,R as zt,a9 as Jt}from"./@vue.BxBKarQv.0.0.65.js";/*!
|
|
2
2
|
* vue-i18n v11.1.5
|
|
3
3
|
* (c) 2025 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
package/dist/interface/js/{vue-inline-svg.DNIHHt2R.0.0.64.js → vue-inline-svg.dmm7rA4k.0.0.65.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as M,aa as P,r as x,w as $,n as N,M as C,d as G,a3 as H}from"./@vue.BxBKarQv.0.0.
|
|
1
|
+
import{B as M,aa as P,r as x,w as $,n as N,M as C,d as G,a3 as H}from"./@vue.BxBKarQv.0.0.65.js";const h={};function O(n){return n.getIsPending!==void 0}function _(n){if(O(n))return n;let l=!0,r=n.then(t=>(l=!1,t),t=>{throw l=!1,t});return r.getIsPending=function(){return l},r}function A(n){let l={};const r=n.attributes;if(!r)return l;for(let t=r.length-1;t>=0;t--)l[r[t].name]=r[t].value;return l}function D(n){return Object.keys(n).reduce((l,r)=>(n[r]!==!1&&n[r]!==null&&n[r]!==void 0&&(l[r]=n[r]),l),{})}function V(n,l){const{class:r,style:t,...d}=A(n),{class:p,style:o,...m}=D(l);return{class:[r,p],style:[t,o],...d,...m}}const F=M({inheritAttrs:!1,__name:"InlineSvg",props:{src:{},title:{default:void 0},transformSource:{type:Function,default:n=>n},keepDuringLoading:{type:Boolean,default:!0},uniqueIds:{type:[Boolean,String],default:!1},uniqueIdsBase:{default:""}},emits:["loaded","unloaded","error"],setup(n,{expose:l,emit:r}){const t=n,d=r,p=P(),o=x(),m=x(),w=x(),I=Math.random().toString(36).substring(2);l({svgElSource:o,request:w}),$(()=>t.src,e=>{y(e)}),y(t.src);function k(e){if(e=e.cloneNode(!0),t.uniqueIds){const u=typeof t.uniqueIds=="string"?t.uniqueIds:I;e=B(e,u,t.uniqueIdsBase)}return e=t.transformSource(e),t.title&&q(e,t.title),e.innerHTML}function y(e){h[e]||(h[e]=E(e)),o.value&&h[e].getIsPending()&&!t.keepDuringLoading&&(o.value=null,d("unloaded")),h[e].then(u=>{o.value=u,N(()=>{d("loaded",m.value)})}).catch(u=>{o.value&&(o.value=void 0,d("unloaded")),delete h[e],d("error",u)})}function E(e){return _(new Promise((u,a)=>{const s=new XMLHttpRequest;s.open("GET",e,!0),w.value=s,s.onload=()=>{if(s.status>=200&&s.status<400)try{let v=new DOMParser().parseFromString(s.responseText,"text/xml").getElementsByTagName("svg")[0];v?u(v):a(new Error('Loaded file is not valid SVG"'))}catch(v){a(v)}else a(new Error("Error loading SVG"))},s.onerror=a,s.send()}))}const S=()=>o.value?H("svg",{...V(o.value,p),innerHTML:k(o.value),ref:m}):null;function q(e,u){const a=e.getElementsByTagName("title");if(a.length)a[0].textContent=u;else{const s=document.createElementNS("http://www.w3.org/2000/svg","title");s.textContent=u,e.insertBefore(s,e.firstChild)}}function B(e,u,a=""){const s=["id","href","xlink:href","xlink:role","xlink:arcrole"],v=["href","xlink:href"],T=(c,g)=>v.includes(c)&&(g?!g.includes("#"):!1);return[...e.children].forEach(c=>{var g;if((g=c.attributes)!=null&&g.length){const b=Object.values(c.attributes).map(f=>{const i=/url\((.*?)\)/.exec(f.value);return i!=null&&i[1]&&(f.value=f.value.replace(i[0],`url(${a}${i[1]}_${u})`)),f});s.forEach(f=>{const i=b.find(L=>L.name===f);i&&!T(f,i.value)&&(i.value=`${i.value}_${u}`)})}return c.children.length?B(c,u,a):c}),e}return(e,u)=>(G(),C(S))}});export{F as R};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as z,z as ot,B as Ve,h as W,s as st,b as it,k as N,a3 as qe,a5 as le,r as ct,w as at,n as lt}from"./@vue.BxBKarQv.0.0.
|
|
1
|
+
import{i as z,z as ot,B as Ve,h as W,s as st,b as it,k as N,a3 as qe,a5 as le,r as ct,w as at,n as lt}from"./@vue.BxBKarQv.0.0.65.js";/*!
|
|
2
2
|
* vue-router v4.5.1
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as Z,r as w,k as b,c as E,w as _,o as S,d as g,G as B,M as D,O as Y,h,P as X,e as p,$ as y,ab as C}from"./@vue.BxBKarQv.0.0.65.js";const M={class:"controll"},j={class:"controll__item controll__item--circle"},L={class:"controll__pan controll__item--circle__inner"},T={class:"controll__pan__up controll__item--circle__inner__up"},O={class:"controll__pan__right controll__item--circle__inner__right"},$={class:"controll__pan__down controll__item--circle__inner__down"},H={class:"controll__pan__left controll__item--circle__inner__left"},W={class:"controll__home controll__item controll__item--list-item"},I={class:"controll__zoom-in controll__item controll__item--list-item"},U={class:"controll__zoom-in controll__item controll__item--list-item"},V=Z({__name:"ControlButtons",emits:["buttondown","buttonup"],setup(o,{emit:l}){const u=l;function r(a,n){u("buttondown",{key:n})}function e(a,n){u("buttonup",{key:n})}return(a,n)=>(g(),E("div",{id:"v-zoomable-control-btns",class:"controll__buttons",onDblclick:n[31]||(n[31]=y(()=>{},["stop"])),onMousedown:n[32]||(n[32]=y(()=>{},["stop"]))},[p("ul",M,[p("li",j,[p("ul",L,[p("li",T,[p("a",{onPointerdown:n[0]||(n[0]=t=>r(t,"pan-up")),onPointerup:n[1]||(n[1]=t=>e(t,"pan-up")),onPointercancel:n[2]||(n[2]=t=>e(t,"pan-up")),onPointerleave:n[3]||(n[3]=t=>e(t,"pan-up")),onContextmenu:n[4]||(n[4]=y(()=>{},["prevent"]))},n[33]||(n[33]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-up"},[p("polyline",{points:"18 15 12 9 6 15"})],-1)]),32)]),p("li",O,[p("a",{onPointerdown:n[5]||(n[5]=t=>r(t,"pan-right")),onPointerup:n[6]||(n[6]=t=>e(t,"pan-right")),onPointercancel:n[7]||(n[7]=t=>e(t,"pan-right")),onPointerleave:n[8]||(n[8]=t=>e(t,"pan-right")),onContextmenu:n[9]||(n[9]=y(()=>{},["prevent"]))},n[34]||(n[34]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-right"},[p("polyline",{points:"9 18 15 12 9 6"})],-1)]),32)]),p("li",$,[p("a",{onPointerdown:n[10]||(n[10]=t=>r(t,"pan-down")),onPointerup:n[11]||(n[11]=t=>e(t,"pan-down")),onPointercancel:n[12]||(n[12]=t=>e(t,"pan-down")),onPointerleave:n[13]||(n[13]=t=>e(t,"pan-down")),onContextmenu:n[14]||(n[14]=y(()=>{},["prevent"]))},n[35]||(n[35]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-down"},[p("polyline",{points:"6 9 12 15 18 9"})],-1)]),32)]),p("li",H,[p("a",{onPointerdown:n[15]||(n[15]=t=>r(t,"pan-left")),onPointercancel:n[16]||(n[16]=t=>e(t,"pan-left")),onPointerup:n[17]||(n[17]=t=>e(t,"pan-left")),onPointerleave:n[18]||(n[18]=t=>e(t,"pan-left")),onContextmenu:n[19]||(n[19]=y(()=>{},["prevent"]))},n[36]||(n[36]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-left"},[p("polyline",{points:"15 18 9 12 15 6"})],-1)]),32)])])]),p("li",W,[p("a",{onPointerdown:n[20]||(n[20]=t=>r(t,"home"))},n[37]||(n[37]=[C('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minimize-2" data-v-3ba139de><polyline points="4 14 10 14 10 20" data-v-3ba139de></polyline><polyline points="20 10 14 10 14 4" data-v-3ba139de></polyline><line x1="14" y1="10" x2="21" y2="3" data-v-3ba139de></line><line x1="3" y1="21" x2="10" y2="14" data-v-3ba139de></line></svg>',1)]),32)]),p("li",I,[p("a",{onPointerdown:n[21]||(n[21]=t=>r(t,"zoom-in")),onPointerup:n[22]||(n[22]=t=>e(t,"zoom-in")),onPointercancel:n[23]||(n[23]=t=>e(t,"zoom-in")),onPointerleave:n[24]||(n[24]=t=>e(t,"zoom-in")),onContextmenu:n[25]||(n[25]=y(()=>{},["prevent"]))},n[38]||(n[38]=[C('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-zoom-in" data-v-3ba139de><circle cx="11" cy="11" r="8" data-v-3ba139de></circle><line x1="21" y1="21" x2="16.65" y2="16.65" data-v-3ba139de></line><line x1="11" y1="8" x2="11" y2="14" data-v-3ba139de></line><line x1="8" y1="11" x2="14" y2="11" data-v-3ba139de></line></svg>',1)]),32)]),p("li",U,[p("a",{onPointerdown:n[26]||(n[26]=t=>r(t,"zoom-out")),onPointerup:n[27]||(n[27]=t=>e(t,"zoom-out")),onPointercancel:n[28]||(n[28]=t=>e(t,"zoom-out")),onPointerleave:n[29]||(n[29]=t=>e(t,"zoom-out")),onContextmenu:n[30]||(n[30]=y(()=>{},["prevent"]))},n[39]||(n[39]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-zoom-out"},[p("circle",{cx:"11",cy:"11",r:"8"}),p("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),p("line",{x1:"8",y1:"11",x2:"14",y2:"11"})],-1)]),32)])])],32))}}),N=(o,l)=>{const u=o.__vccOpts||o;for(const[r,e]of l)u[r]=e;return u},q=N(V,[["__scopeId","data-v-3ba139de"]]);function G(){let o=0;function l(r,e,a,n){r(),o=window.setTimeout(()=>{o=window.setInterval(()=>{e()},n)},a)}function u(){o&&(window.clearInterval(o),o=0)}return{startHold:l,clearHold:u}}const x="control-btn";function R({props:o,transform:l}){let u=G();function r(c){u.startHold(()=>{l.changeZoom(c*o.buttonZoomStep*.5,x)},()=>{l.changeZoom(c*o.buttonZoomStep*.5,x)},300,50)}function e(c){if(!o.disabled)switch(c.key){case"home":t();break;case"zoom-in":r(1);break;case"zoom-out":r(-1);break;case"pan-left":n({x:1,y:0});break;case"pan-right":n({x:-1,y:0});break;case"pan-up":n({x:0,y:1});break;case"pan-down":n({x:0,y:-1});break}}function a(c){u.clearHold()}function n(c){u.startHold(()=>{l.changePan(c.x*o.buttonPanStep,c.y*o.buttonPanStep,x)},()=>{l.changePan(c.x*o.buttonPanStep,c.y*o.buttonPanStep,x)},300,50)}function t(){l.goHome(x)}return{onButtonDown:e,onButtonUp:a}}function A({props:o,transform:l}){let u={x:0,y:0};function r(n){o.disabled||n.pointerType!=="mouse"||!o.mouseEnabled||(u={x:n.clientX,y:n.clientY},document.addEventListener("pointermove",a,{passive:!1}),document.addEventListener("pointerup",function(t){document.removeEventListener("pointermove",a)}),document.addEventListener("pointerleave",function(t){document.removeEventListener("pointermove",a)}),document.addEventListener("pointercancel",function(t){document.removeEventListener("pointermove",a)}))}function e(n){if(o.disabled||!o.dblClickEnabled||!o.zoomEnabled)return;const t={x:n.clientX,y:n.clientY};l.changeZoom(o.dblClickZoomStep,"dblClick",t)}function a(n){if(o.disabled||!o.panEnabled||n.pointerType!=="mouse"||!o.mouseEnabled)return;let t={x:n.clientX-u.x,y:n.clientY-u.y};l.changePan(t.x,t.y,n.pointerType),u={x:n.clientX,y:n.clientY},n.preventDefault()}return{onPointerDown:r,onDblClick:e}}function F({props:o,transform:l}){let u=w({}),r=w(0),e=null;function a(c){if(o.disabled||!o.touchEnabled||!o.panEnabled&&!o.zoomEnabled||(c.preventDefault(),c.touches.length<1))return;const i=c.touches.item(0);if(!i)return;let d=0,s={x:i.clientX,y:i.clientY};if(c.touches.length===2){const v=c.touches.item(1);let f=n({x:i?i.clientX:0,y:i?i.clientY:0},{x:v?v.clientX:0,y:v?v.clientY:0});r.value<=0?(r.value=f.distance,d=0):(d=f.distance/r.value*l.zoom.value-l.zoom.value,r.value=f.distance),s=f.center}if(o.zoomEnabled&&l.changeZoom(d,"touch",s),e===null){e={x:s.x,y:s.y};return}const m={x:s.x-e.x,y:s.y-e.y};o.panEnabled&&l.changePan(m.x,m.y,"touch"),e={x:s.x,y:s.y}}function n(c,i){let d=Math.sqrt(Math.pow(c.x-i.x,2)+Math.pow(c.y-i.y,2)),s={x:(c.x+i.x)/2,y:(c.y+i.y)/2};return{distance:d,center:s}}function t(c){o.disabled||!o.touchEnabled||(e=null,document.addEventListener("touchmove",a,{passive:!1}),document.addEventListener("touchend",function(i){c.touches.length<2&&(r.value=-1),document.removeEventListener("touchmove",a)}))}return{onTouchStart:t,touchCount:b(()=>Object.keys(u.value).length)}}function J({props:o,onChange:l,container:u,target:r}){const e=w({x:0,y:0}),a=w(0);S(()=>{a.value=o.minZoom,e.value={x:o.pan!=null?o.pan.x:o.initialPanX,y:o.pan!=null?o.pan.y:o.initialPanY},o.zoom?a.value=o.zoom:o.initialZoom>=o.minZoom&&o.initialZoom<=o.maxZoom&&(a.value=o.initialZoom)}),_(()=>o.zoom,()=>{isNaN(o.zoom)||(a.value=o.zoom)}),_(()=>o.pan,()=>{o.pan&&(e.value.x=o.pan.x,e.value.y=o.pan.y)},{deep:!0});function n(i,d,s){if(isNaN(i)||i===0)return;const m=a.value;let v=a.value+i;if(v>o.maxZoom?v=o.maxZoom:v<o.minZoom&&(v=o.minZoom),Math.abs(m-v)<1e-4)return;if(a.value=v,o.zoomOrigin==="center"&&(s=k(u.value)),o.zoomOrigin!=="content-center"){s||(s=k(u.value));const P=K(u.value,e.value),z={x:(v-m)*((P.x-s.x)/m),y:(v-m)*((P.y-s.y)/m)};t(z.x,z.y,"zoom")}let f={zoom:v,delta:{zoom:i,pan:{x:0,y:0}},pan:{x:e.value.x,y:e.value.y,deltaX:0,deltaY:0},type:d};l("zoom",f)}function t(i,d,s){isNaN(i)&&(i=0),isNaN(d)&&(d=0),e.value={x:e.value.x+i,y:e.value.y+d};let m={zoom:a.value,delta:{zoom:0,pan:{x:i,y:d}},pan:{x:e.value.x,y:e.value.y,deltaX:i,deltaY:d},type:s};l("panned",m)}function c(i){a.value=o.initialZoom,l("zoom",{zoom:a.value,pan:{x:e.value.x,y:e.value.y,deltaX:0,deltaY:0},type:i});let d={x:o.initialPanX-e.value.x,y:o.initialPanY-e.value.y};e.value={x:o.initialPanX,y:o.initialPanY},l("panned",{zoom:a.value,pan:{x:e.value.x,y:e.value.y,deltaX:d.x,deltaY:d.y},type:i})}return{zoom:b(()=>a.value),pan:b(()=>e.value),setZoom:i=>{a.value=i},setPan:i=>{e.value=i},changeZoom:n,changePan:t,goHome:c}}function k(o){const l=o.getBoundingClientRect();return{x:l.left+l.width/2,y:l.top+l.height/2}}function K(o,l){const u=k(o);return{x:u.x+l.x,y:u.y+l.y}}function Q({props:o,transform:l}){function u(r){if(o.disabled||!o.wheelEnabled||!o.zoomEnabled)return;const e=Math.abs(r.deltaY)>0?r.deltaY:r.deltaX,a=o.wheelZoomStep*-1*e/Math.abs(e),n={x:r.clientX,y:r.clientY};l.changeZoom(a,"wheel",n),r.preventDefault()}return{onWheel:u}}function nn({props:o,onChange:l,container:u,target:r}){const e=J({props:o,onChange:l,container:u,target:r}),a=F({props:o,transform:e}),n=Q({props:o,transform:e}),t=A({props:o,transform:e}),c=R({props:o,transform:e});return{zoom:e.zoom,pan:e.pan,setZoom:e.setZoom,setPan:e.setPan,onWheel:n.onWheel,onTouchStart:a.onTouchStart,onButtonUp:c.onButtonUp,onButtonDown:c.onButtonDown,onPointerDown:t.onPointerDown,onDblClick:t.onDblClick}}const on=Z({__name:"VueZoomable",props:{zoom:{type:Number,default:null},pan:{type:Object,default:null},selector:{type:String,default:"* > *"},maxZoom:{type:Number,default:3},minZoom:{type:Number,default:.5},initialPanX:{type:Number,default:0},initialPanY:{type:Number,default:0},initialZoom:{type:Number,default:.5},dblClickZoomStep:{type:Number,default:.4},wheelZoomStep:{type:Number,default:.4},panEnabled:{type:Boolean,default:!0},zoomEnabled:{type:Boolean,default:!0},mouseEnabled:{type:Boolean,default:!0},touchEnabled:{type:Boolean,default:!0},dblClickEnabled:{type:Boolean,default:!0},wheelEnabled:{type:Boolean,default:!0},enableControlButton:{type:Boolean,default:!0},buttonPanStep:{type:Number,default:15},buttonZoomStep:{type:Number,default:.1},disabled:{type:Boolean,default:!1},zoomOrigin:{type:String,default:"pointer"}},emits:["panned","zoom","update:zoom","update:pan"],setup(o,{emit:l}){let u=l,r=o,e=w(),a=b(()=>{var d;return(d=e.value)==null?void 0:d.querySelector(r.selector)}),n=nn({props:r,onChange:t,container:e,target:a});function t(d,s){d==="zoom"?u("update:zoom",s.zoom):d==="panned"&&u("update:pan",s.pan),u(d,s)}let c=b(()=>`translate(${n.pan.value.x}px, ${n.pan.value.y}px) scale(${n.zoom.value})`);function i(){a.value&&(a.value.style.transform=c.value,a.value.style.transformOrigin="center center",a.value.style.transition="transform 0.07s ease-out",a.value.style.transformBox="fill-box")}return _(c,()=>{i()},{flush:"post"}),S(()=>{i()}),(d,s)=>(g(),E("div",{ref_key:"container",ref:e,class:X(d.$style.container),onDblclick:s[0]||(s[0]=(...m)=>h(n).onDblClick&&h(n).onDblClick(...m)),onPointerdown:s[1]||(s[1]=(...m)=>h(n).onPointerDown&&h(n).onPointerDown(...m)),onWheel:s[2]||(s[2]=(...m)=>h(n).onWheel&&h(n).onWheel(...m)),onTouchstart:s[3]||(s[3]=(...m)=>h(n).onTouchStart&&h(n).onTouchStart(...m))},[B(d.$slots,"default",{},void 0,!0),B(d.$slots,"buttons",{},()=>[h(r).enableControlButton?(g(),D(q,{key:0,onButtondown:h(n).onButtonDown,onButtonup:h(n).onButtonUp},null,8,["onButtondown","onButtonup"])):Y("",!0)],!0)],34))}}),en="_container_irdvc_2",tn="_buttons_irdvc_11",an={container:en,buttons:tn},ln={$style:an},un=N(on,[["__cssModules",ln],["__scopeId","data-v-fce7d501"]]);export{un as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R}from"./dnd-core.Bx9xaNPa.0.0.64.js";import{i as E,a5 as x,B as j,a7 as N,f as U,h as o,k as l,C as f,r as F,b as V}from"./@vue.BxBKarQv.0.0.64.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.64.js";import{e as P}from"./fast-deep-equal.BCDE3b5h.0.0.64.js";function b(t,r,e){return Array.isArray(t)?(t.length=Math.max(t.length,r),t.splice(r,1,e),e):(t[r]=e,e)}var M=Symbol.for("DndContextType");function W(t){x(M,t)}function Y(){return E(M)}function T(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function B(t){if(Array.isArray(t))return t}function L(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t,r){return B(t)||L(t,r)||z(t,r)||G()}function z(t,r){if(t){if(typeof t=="string")return T(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return T(t,r)}}var S=0,p=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function X(t){return"manager"in t&&t.manager}function J(t){if(X(t)){var r=t.manager;return[r,!1]}var e=K(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function K(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A(),e=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=r;return i[p]||(i[p]=R(t,r,e,n)),i[p]}function A(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:window}const rt=j({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(r,e){var n=e.slots,i=q(J(r),2),a=i[0],u=i[1];u&&++S,N(function(){if(u){var s=A();--S===0&&(s[p]=null)}}),W(a);var c;return function(){var s;return(c=(s=n.default)===null||s===void 0?void 0:s.call(n))!==null&&c!==void 0?c:null}}});function Q(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var D=!1,y=!1,Z=function(){function t(e){Q(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.sourceId=n},r.getHandlerId=function(){return this.sourceId},r.canDrag=function(){g(!D,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return D=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{D=!1}},r.isDragging=function(){if(!this.sourceId)return!1;g(!y,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{y=!1}},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.isDraggingSource=function(n){return this.internalMonitor.isDraggingSource(n)},r.isOverTarget=function(n,i){return this.internalMonitor.isOverTarget(n,i)},r.getTargetIds=function(){return this.internalMonitor.getTargetIds()},r.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},r.getSourceId=function(){return this.internalMonitor.getSourceId()},r.subscribeToOffsetChange=function(n){return this.internalMonitor.subscribeToOffsetChange(n)},r.canDragSource=function(n){return this.internalMonitor.canDragSource(n)},r.canDropOnTarget=function(n){return this.internalMonitor.canDropOnTarget(n)},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();function ee(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var m=!1,te=function(){function t(e){ee(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.targetId=n},r.getHandlerId=function(){return this.targetId},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.canDrop=function(){if(!this.targetId)return!1;g(!m,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return m=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{m=!1}},r.isOver=function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}(),re=function(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t};function ne(t){return t?t.__v_isVNode===!0:!1}function ie(t){return t?t.__v_skip:!1}function oe(t){return ne(t)&&re(t.type)!=="symbol"}function ae(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}function ue(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(ie(r)&&ae(),!oe(r)){var n=r;return t(n,e),n}}}function k(t){var r={};return Object.keys(t).forEach(function(e){var n=t[e];if(e.endsWith("Ref"))r[e]=t[e];else{var i=ue(n);r[e]=function(){return i}}}),r}function ce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function se(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function le(t,r,e){return r&&se(t.prototype,r),t}var fe=function(){function t(e){var n=this;ce(this,t),this.hooks=k({dragSource:function(i,a){n.clearDragSource(),n.dragSourceOptions=a||null,n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,a){n.clearDragPreview(),n.dragPreviewOptions=a||null,n.dragPreviewNode=i,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}var r=t.prototype;return r.receiveHandlerId=function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())},r.reconnect=function(){var n=this.reconnectDragSource();this.reconnectDragPreview(n)},r.reconnectDragSource=function(){var n=this.dragSource,i=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return i&&this.disconnectDragSource(),this.handlerId?n?(i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),i):(this.lastConnectedDragSource=n,i):i},r.reconnectDragPreview=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.dragPreview,a=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(a&&this.disconnectDragPreview(),!!this.handlerId){if(!i){this.lastConnectedDragPreview=i;return}a&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=i,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,i,this.dragPreviewOptions))}},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!C(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!C(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},le(t,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),t}();function ge(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function de(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function he(t,r,e){return r&&de(t.prototype,r),t}var pe=function(){function t(e){var n=this;ge(this,t),this.hooks=k({dropTarget:function(i,a){n.clearDropTarget(),n.dropTargetOptions=a,U(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var r=t.prototype;return r.reconnect=function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var i=this.dropTarget;if(this.handlerId){if(!i){this.lastConnectedDropTarget=i;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=i,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,i,this.dropTargetOptions))}},r.receiveHandlerId=function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!C(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},he(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),t}();function ve(t,r,e){var n=o(e).getRegistry(),i=n.addTarget(o(t),o(r));return[i,function(){return n.removeTarget(i)}]}function De(t,r,e){var n=e.getRegistry(),i=n.addSource(t,r);return[i,function(){return n.removeSource(i)}]}function ye(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var me=function(){function t(e,n,i){ye(this,t),this.spec=e,this.monitor=n,this.connector=i}var r=t.prototype;return r.beginDrag=function(){var n=this.spec,i=this.monitor,a=null;return typeof n.item=="object"?a=n.item:typeof n.item=="function"?a=n.item(i):a={},a??null},r.canDrag=function(){var n=this.spec,i=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(i):!0},r.isDragging=function(n,i){var a=this.spec,u=this.monitor,c=a.isDragging;return c?c(u):i===n.getSourceId()},r.endDrag=function(){var n=this.spec,i=this.monitor,a=this.connector,u=n.end;u&&u(i.getItem(),i),a.reconnect()},t}();function Ce(t,r,e){var n=l(function(){return new me(o(t),o(r),o(e))});return f(function(){n.value.spec=o(t)}),n}function d(){var t=Y();return g(t!=null,"Expected drag drop context"),t}function Ie(t){return l(function(){var r=o(t).type;return g(r!=null,"spec.type must be defined"),r})}function O(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function be(t){if(Array.isArray(t))return t}function Te(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Se(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oe(t,r){return be(t)||Te(t,r)||we(t,r)||Se()}function we(t,r){if(t){if(typeof t=="string")return O(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return O(t,r)}}function _e(t,r,e){var n=d(),i=Ce(t,r,e),a=Ie(t);f(function(c){if(o(a)!=null){var s=Oe(De(o(a),o(i),o(n)),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)}})}function H(t){return l(function(){return typeof t=="function"?t():t})}function Pe(){var t=d();return l(function(){return new Z(o(t))})}function Me(t,r){var e=d(),n=l(function(){return new fe(o(e).getBackend())});return f(function(i){n.value.dragSourceOptions=o(t)||null,o(n).reconnect(),i(function(){n.value.disconnectDragSource()})}),f(function(i){n.value.dragPreviewOptions=o(r)||null,o(n).reconnect(),i(function(){n.value.disconnectDragPreview()})}),n}function Ae(t,r,e){var n=F(o(r)(o(t))),i=function(){var a=o(r)(o(t));P(n.value,a)||(n.value=a,e&&e())};return f(i),[n,i]}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ke(t){if(Array.isArray(t))return t}function He(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,r){return ke(t)||He(t,r)||Ee(t,r)||$e()}function Ee(t,r){if(t){if(typeof t=="string")return w(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return w(t,r)}}function xe(t,r,e){var n=Re(Ae(t,r,e),2),i=n[0],a=n[1];return f(function(c){var s=o(t).getHandlerId();s!=null&&c(o(t).subscribeToStateChange(a,{handlerIds:[s]}))}),i}function $(t,r,e){var n=function(){return{}};return xe(r,t||n,function(){return o(e).reconnect()})}function I(t,r){var e=V({el:null,options:o(r)});f(function(){t(e)},{flush:"post"});var n=function(i,a){b(e,"el",i);var u=o(r)||a;return P(e.options,u)||b(e,"options",u),o(i)};return n}function je(t,r){return I(function(e){o(t).hooks.dragSource()(e.el,e.options)},l(function(){return o(r).options}))}function Ne(t,r){return I(function(e){o(t).hooks.dragPreview()(e.el,e.options)},l(function(){return o(r).previewOptions}))}function nt(t){var r=H(t),e=Pe(),n=Me(l(function(){return o(r).options}),l(function(){return o(r).previewOptions}));return _e(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),je(n,r),Ne(n,r)]}function Ue(t){return l(function(){var r=o(t).accept;return g(r!=null,"accept must be defined"),Array.isArray(r)?r:[r]})}function Fe(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var Ve=function(){function t(e,n){Fe(this,t),this.spec=e,this.monitor=n}var r=t.prototype;return r.canDrop=function(){var n=this.spec,i=this.monitor;return n.canDrop?n.canDrop(i.getItem(),i):!0},r.hover=function(){var n=this.spec,i=this.monitor;n.hover&&n.hover(i.getItem(),i)},r.drop=function(){var n=this.spec,i=this.monitor;if(n.drop)return n.drop(i.getItem(),i)},t}();function We(t,r){var e=l(function(){return new Ve(o(t),o(r))});return f(function(){e.value.spec=o(t)}),e}function _(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Ye(t){if(Array.isArray(t))return t}function Be(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ge(t,r){return Ye(t)||Be(t,r)||qe(t,r)||Le()}function qe(t,r){if(t){if(typeof t=="string")return _(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _(t,r)}}function ze(t,r,e){var n=d(),i=We(t,r),a=Ue(t);f(function(c){var s=Ge(ve(a,i,n),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)})}function Xe(){var t=d();return l(function(){return new te(o(t))})}function Je(t){var r=d(),e=l(function(){return new pe(o(r).getBackend())});return f(function(n){e.value.dropTargetOptions=o(t)||null,e.value.reconnect(),n(function(){return e.value.disconnectDropTarget()})}),e}function Ke(t,r){return I(function(e){o(t).hooks.dropTarget()(e.el,e.options)},l(function(){return o(r).options}))}function it(t){var r=H(t),e=Xe(),n=Je(l(function(){return o(r).options}));return ze(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Ke(n,r)]}export{rt as D,it as a,nt as u};
|
|
1
|
+
import{c as R}from"./dnd-core.CIZI_Pnh.0.0.65.js";import{i as E,a5 as x,B as j,a7 as N,f as U,h as o,k as l,C as f,r as F,b as V}from"./@vue.BxBKarQv.0.0.65.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.65.js";import{e as P}from"./fast-deep-equal.wMnqc5nP.0.0.65.js";function b(t,r,e){return Array.isArray(t)?(t.length=Math.max(t.length,r),t.splice(r,1,e),e):(t[r]=e,e)}var M=Symbol.for("DndContextType");function W(t){x(M,t)}function Y(){return E(M)}function T(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function B(t){if(Array.isArray(t))return t}function L(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t,r){return B(t)||L(t,r)||z(t,r)||G()}function z(t,r){if(t){if(typeof t=="string")return T(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return T(t,r)}}var S=0,p=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function X(t){return"manager"in t&&t.manager}function J(t){if(X(t)){var r=t.manager;return[r,!1]}var e=K(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function K(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A(),e=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=r;return i[p]||(i[p]=R(t,r,e,n)),i[p]}function A(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:window}const rt=j({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(r,e){var n=e.slots,i=q(J(r),2),a=i[0],u=i[1];u&&++S,N(function(){if(u){var s=A();--S===0&&(s[p]=null)}}),W(a);var c;return function(){var s;return(c=(s=n.default)===null||s===void 0?void 0:s.call(n))!==null&&c!==void 0?c:null}}});function Q(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var D=!1,y=!1,Z=function(){function t(e){Q(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.sourceId=n},r.getHandlerId=function(){return this.sourceId},r.canDrag=function(){g(!D,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return D=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{D=!1}},r.isDragging=function(){if(!this.sourceId)return!1;g(!y,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{y=!1}},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.isDraggingSource=function(n){return this.internalMonitor.isDraggingSource(n)},r.isOverTarget=function(n,i){return this.internalMonitor.isOverTarget(n,i)},r.getTargetIds=function(){return this.internalMonitor.getTargetIds()},r.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},r.getSourceId=function(){return this.internalMonitor.getSourceId()},r.subscribeToOffsetChange=function(n){return this.internalMonitor.subscribeToOffsetChange(n)},r.canDragSource=function(n){return this.internalMonitor.canDragSource(n)},r.canDropOnTarget=function(n){return this.internalMonitor.canDropOnTarget(n)},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();function ee(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var m=!1,te=function(){function t(e){ee(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.targetId=n},r.getHandlerId=function(){return this.targetId},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.canDrop=function(){if(!this.targetId)return!1;g(!m,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return m=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{m=!1}},r.isOver=function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}(),re=function(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t};function ne(t){return t?t.__v_isVNode===!0:!1}function ie(t){return t?t.__v_skip:!1}function oe(t){return ne(t)&&re(t.type)!=="symbol"}function ae(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}function ue(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(ie(r)&&ae(),!oe(r)){var n=r;return t(n,e),n}}}function k(t){var r={};return Object.keys(t).forEach(function(e){var n=t[e];if(e.endsWith("Ref"))r[e]=t[e];else{var i=ue(n);r[e]=function(){return i}}}),r}function ce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function se(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function le(t,r,e){return r&&se(t.prototype,r),t}var fe=function(){function t(e){var n=this;ce(this,t),this.hooks=k({dragSource:function(i,a){n.clearDragSource(),n.dragSourceOptions=a||null,n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,a){n.clearDragPreview(),n.dragPreviewOptions=a||null,n.dragPreviewNode=i,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}var r=t.prototype;return r.receiveHandlerId=function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())},r.reconnect=function(){var n=this.reconnectDragSource();this.reconnectDragPreview(n)},r.reconnectDragSource=function(){var n=this.dragSource,i=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return i&&this.disconnectDragSource(),this.handlerId?n?(i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),i):(this.lastConnectedDragSource=n,i):i},r.reconnectDragPreview=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.dragPreview,a=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(a&&this.disconnectDragPreview(),!!this.handlerId){if(!i){this.lastConnectedDragPreview=i;return}a&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=i,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,i,this.dragPreviewOptions))}},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!C(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!C(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},le(t,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),t}();function ge(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function de(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function he(t,r,e){return r&&de(t.prototype,r),t}var pe=function(){function t(e){var n=this;ge(this,t),this.hooks=k({dropTarget:function(i,a){n.clearDropTarget(),n.dropTargetOptions=a,U(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var r=t.prototype;return r.reconnect=function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var i=this.dropTarget;if(this.handlerId){if(!i){this.lastConnectedDropTarget=i;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=i,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,i,this.dropTargetOptions))}},r.receiveHandlerId=function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!C(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},he(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),t}();function ve(t,r,e){var n=o(e).getRegistry(),i=n.addTarget(o(t),o(r));return[i,function(){return n.removeTarget(i)}]}function De(t,r,e){var n=e.getRegistry(),i=n.addSource(t,r);return[i,function(){return n.removeSource(i)}]}function ye(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var me=function(){function t(e,n,i){ye(this,t),this.spec=e,this.monitor=n,this.connector=i}var r=t.prototype;return r.beginDrag=function(){var n=this.spec,i=this.monitor,a=null;return typeof n.item=="object"?a=n.item:typeof n.item=="function"?a=n.item(i):a={},a??null},r.canDrag=function(){var n=this.spec,i=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(i):!0},r.isDragging=function(n,i){var a=this.spec,u=this.monitor,c=a.isDragging;return c?c(u):i===n.getSourceId()},r.endDrag=function(){var n=this.spec,i=this.monitor,a=this.connector,u=n.end;u&&u(i.getItem(),i),a.reconnect()},t}();function Ce(t,r,e){var n=l(function(){return new me(o(t),o(r),o(e))});return f(function(){n.value.spec=o(t)}),n}function d(){var t=Y();return g(t!=null,"Expected drag drop context"),t}function Ie(t){return l(function(){var r=o(t).type;return g(r!=null,"spec.type must be defined"),r})}function O(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function be(t){if(Array.isArray(t))return t}function Te(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Se(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oe(t,r){return be(t)||Te(t,r)||we(t,r)||Se()}function we(t,r){if(t){if(typeof t=="string")return O(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return O(t,r)}}function _e(t,r,e){var n=d(),i=Ce(t,r,e),a=Ie(t);f(function(c){if(o(a)!=null){var s=Oe(De(o(a),o(i),o(n)),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)}})}function H(t){return l(function(){return typeof t=="function"?t():t})}function Pe(){var t=d();return l(function(){return new Z(o(t))})}function Me(t,r){var e=d(),n=l(function(){return new fe(o(e).getBackend())});return f(function(i){n.value.dragSourceOptions=o(t)||null,o(n).reconnect(),i(function(){n.value.disconnectDragSource()})}),f(function(i){n.value.dragPreviewOptions=o(r)||null,o(n).reconnect(),i(function(){n.value.disconnectDragPreview()})}),n}function Ae(t,r,e){var n=F(o(r)(o(t))),i=function(){var a=o(r)(o(t));P(n.value,a)||(n.value=a,e&&e())};return f(i),[n,i]}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ke(t){if(Array.isArray(t))return t}function He(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,r){return ke(t)||He(t,r)||Ee(t,r)||$e()}function Ee(t,r){if(t){if(typeof t=="string")return w(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return w(t,r)}}function xe(t,r,e){var n=Re(Ae(t,r,e),2),i=n[0],a=n[1];return f(function(c){var s=o(t).getHandlerId();s!=null&&c(o(t).subscribeToStateChange(a,{handlerIds:[s]}))}),i}function $(t,r,e){var n=function(){return{}};return xe(r,t||n,function(){return o(e).reconnect()})}function I(t,r){var e=V({el:null,options:o(r)});f(function(){t(e)},{flush:"post"});var n=function(i,a){b(e,"el",i);var u=o(r)||a;return P(e.options,u)||b(e,"options",u),o(i)};return n}function je(t,r){return I(function(e){o(t).hooks.dragSource()(e.el,e.options)},l(function(){return o(r).options}))}function Ne(t,r){return I(function(e){o(t).hooks.dragPreview()(e.el,e.options)},l(function(){return o(r).previewOptions}))}function nt(t){var r=H(t),e=Pe(),n=Me(l(function(){return o(r).options}),l(function(){return o(r).previewOptions}));return _e(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),je(n,r),Ne(n,r)]}function Ue(t){return l(function(){var r=o(t).accept;return g(r!=null,"accept must be defined"),Array.isArray(r)?r:[r]})}function Fe(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var Ve=function(){function t(e,n){Fe(this,t),this.spec=e,this.monitor=n}var r=t.prototype;return r.canDrop=function(){var n=this.spec,i=this.monitor;return n.canDrop?n.canDrop(i.getItem(),i):!0},r.hover=function(){var n=this.spec,i=this.monitor;n.hover&&n.hover(i.getItem(),i)},r.drop=function(){var n=this.spec,i=this.monitor;if(n.drop)return n.drop(i.getItem(),i)},t}();function We(t,r){var e=l(function(){return new Ve(o(t),o(r))});return f(function(){e.value.spec=o(t)}),e}function _(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Ye(t){if(Array.isArray(t))return t}function Be(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ge(t,r){return Ye(t)||Be(t,r)||qe(t,r)||Le()}function qe(t,r){if(t){if(typeof t=="string")return _(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _(t,r)}}function ze(t,r,e){var n=d(),i=We(t,r),a=Ue(t);f(function(c){var s=Ge(ve(a,i,n),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)})}function Xe(){var t=d();return l(function(){return new te(o(t))})}function Je(t){var r=d(),e=l(function(){return new pe(o(r).getBackend())});return f(function(n){e.value.dropTargetOptions=o(t)||null,e.value.reconnect(),n(function(){return e.value.disconnectDropTarget()})}),e}function Ke(t,r){return I(function(e){o(t).hooks.dropTarget()(e.el,e.options)},l(function(){return o(r).options}))}function it(t){var r=H(t),e=Xe(),n=Je(l(function(){return o(r).options}));return ze(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Ke(n,r)]}export{rt as D,it as a,nt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as e,c as n,d as t,e as r}from"./@vue.BxBKarQv.0.0.
|
|
1
|
+
import{F as e,c as n,d as t,e as r}from"./@vue.BxBKarQv.0.0.65.js";const a={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function i(s,o){return t(),n("svg",a,o[0]||(o[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0-14 0m4 0h6m-3-3v6m11 8l-6-6"},null,-1)]))}const c=e({name:"tabler-zoom-in",render:i}),l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function m(s,o){return t(),n("svg",l,o[0]||(o[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0-14 0m4 0h6m8 11l-6-6"},null,-1)]))}const u=e({name:"tabler-zoom-out",render:m});export{u as Z,c as a};
|