@camera.ui/server 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface/@intlify.Do1-T-x0.0.0.40.js +15 -0
- package/dist/interface/{@tanstack.BoiFrtzX.0.0.39.js → @tanstack.DN6xEWwc.0.0.40.js} +1 -1
- package/dist/interface/{@vee-validate.DOPySfe9.0.0.39.js → @vee-validate.DGExY8om.0.0.40.js} +1 -1
- package/dist/interface/{@vue.BSUQIjRR.0.0.39.js → @vue.PV_2gLoq.0.0.40.js} +1 -1
- package/dist/interface/{@vueform.DURVfBZu.0.0.39.js → @vueform.NhOuWDxV.0.0.40.js} +1 -1
- package/dist/interface/@vueuse.C9nAp_qw.0.0.40.js +1 -0
- package/dist/interface/{@xterm.CD6WS-S3.0.0.39.js → @xterm.oesufn9X.0.0.40.js} +4 -4
- package/dist/interface/{Account.D_eFRBoi.0.0.39.js → Account.BDkqURwa.0.0.40.js} +1 -1
- package/dist/interface/{Adminpanel.BW13-FSk.0.0.39.js → Adminpanel.BnV2YgBI.0.0.40.js} +2 -2
- package/dist/interface/{Appearance.BAartkPK.0.0.39.js → Appearance.Doe36b4o.0.0.40.js} +1 -1
- package/dist/interface/{Backup.B8qRu2Lk.0.0.39.js → Backup.TzSY6VNu.0.0.40.js} +1 -1
- package/dist/interface/{Camera.WCQluB3X.0.0.39.js → Camera.D8oBQGzz.0.0.40.js} +1 -1
- package/dist/interface/{Cameras.BimRRXnv.0.0.39.js → Cameras.okZ80wIv.0.0.40.js} +1 -1
- package/dist/interface/{Camview.jUT1KeFE.0.0.39.js → Camview.bUHs3eEA.0.0.40.js} +1 -1
- package/dist/interface/{Config.D7fPANlt.0.0.39.js → Config.BFoCyyZM.0.0.40.js} +1 -1
- package/dist/interface/{Console.DtTYQDtc.0.0.39.js → Console.DrZjod9p.0.0.40.js} +1 -1
- package/dist/interface/{FirstSteps.DvFz9Ipp.0.0.39.js → FirstSteps.BRAFBtOM.0.0.40.js} +1 -1
- package/dist/interface/{NewCamera.C2Tj9HIr.0.0.39.js → NewCamera.BRR6R8Aq.0.0.40.js} +1 -1
- package/dist/interface/Plugin.XHcOtD_R.0.0.40.js +1 -0
- package/dist/interface/{Plugins.0GLzbC2l.0.0.39.js → Plugins.eTb8FApS.0.0.40.js} +1 -1
- package/dist/interface/Recordings.0cfZFrTe.0.0.40.js +1 -0
- package/dist/interface/Recordings.D50AM95m.0.0.40.js +1 -0
- package/dist/interface/{Settings.CHyfykI9.0.0.39.js → Settings.CzbuyfYr.0.0.40.js} +1 -1
- package/dist/interface/{System.CcBINQYZ.0.0.39.js → System.CKIo2_uX.0.0.40.js} +1 -1
- package/dist/interface/{User.CMafVfud.0.0.39.js → User.CeRd6RLu.0.0.40.js} +1 -1
- package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.DxUPvg7f.0.0.39.js → VConfigEditor.vue_vue_type_script_setup_true_lang.B68gG-Th.0.0.40.js} +2 -2
- package/dist/interface/{VConsole.DDRPOT5i.0.0.39.js → VConsole.BTHoxSrh.0.0.40.js} +1 -1
- package/dist/interface/VPlayer.CD-JtKvf.0.0.40.js +4 -0
- package/dist/interface/{VPluginCard.a7_GwM_6.0.0.39.js → VPluginCard.BskYYx6z.0.0.40.js} +1 -1
- package/dist/interface/{ace-builds.DKOJbQcN.0.0.39.js → ace-builds.IHJvJWwn.0.0.40.js} +4 -4
- package/dist/interface/apexcharts.CChAu4xp.0.0.40.js +838 -0
- package/dist/interface/assets/Plugin.0.0.40.YIpAU1_n.css +1 -0
- package/dist/interface/assets/{VPlayer.0.0.39.yTIux4rl.css → VPlayer.0.0.40.ZIghSLhp.css} +1 -1
- package/dist/interface/axios.CG9kBweI.0.0.40.js +6 -0
- package/dist/interface/{backup.zxQT-QUB.0.0.39.js → backup.DANuXByh.0.0.40.js} +1 -1
- package/dist/interface/dijkstrajs.C00ieaqj.0.0.40.js +1 -0
- package/dist/interface/{dnd-core.DzbP3L03.0.0.39.js → dnd-core.ZmlET4hC.0.0.40.js} +1 -1
- package/dist/interface/draggabilly.DAhNCk3u.0.0.40.js +6 -0
- package/dist/interface/{engine.io-client.CF43lzPG.0.0.39.js → engine.io-client.Cq18b4el.0.0.40.js} +1 -1
- package/dist/interface/ev-emitter.X5f1qa-c.0.0.40.js +1 -0
- package/dist/interface/fast-deep-equal.DrH0s-yy.0.0.40.js +1 -0
- package/dist/interface/highlight.js.ChmOd23J.0.0.40.js +2 -0
- package/dist/interface/index.html +32 -32
- package/dist/interface/{linkify-it.CEUGOmX8.0.0.39.js → linkify-it.C4Rswv8X.0.0.40.js} +1 -1
- package/dist/interface/{main.Cn0OSGo3.0.0.39.js → main.VdZiMYnS.0.0.40.js} +3 -3
- package/dist/interface/{markdown-it.BoMkMmpx.0.0.39.js → markdown-it.BWOplVxV.0.0.40.js} +1 -1
- package/dist/interface/nprogress.BwLMR6Bn.0.0.40.js +2 -0
- package/dist/interface/pinia.Iog12xl6.0.0.40.js +5 -0
- package/dist/interface/{plugins.BX6fkkXi.0.0.39.js → plugins.CnjfokBM.0.0.40.js} +1 -1
- package/dist/interface/qrcode.DP_K3922.0.0.40.js +8 -0
- package/dist/interface/{react-dnd-touch-backend.BZ7RUPLh.0.0.39.js → react-dnd-touch-backend.BKYEIvTJ.0.0.40.js} +1 -1
- package/dist/interface/{rxjs.DSklvEf_.0.0.39.js → rxjs.CZM8Xehd.0.0.40.js} +1 -1
- package/dist/interface/{socket.io-client.B1p1jCy1.0.0.39.js → socket.io-client.BneKYXJS.0.0.40.js} +1 -1
- package/dist/interface/{socket.io-parser.D--34e4A.0.0.39.js → socket.io-parser.BsC63_fg.0.0.40.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/interface/{system.urUBVKEs.0.0.39.js → system.BDb0ERWC.0.0.40.js} +1 -1
- package/dist/interface/unidragger.BhtCwpmU.0.0.40.js +5 -0
- package/dist/interface/{vee-validate.DTyH9YVQ.0.0.39.js → vee-validate.CKoVC6cx.0.0.40.js} +1 -1
- package/dist/interface/vue-i18n.Cb6M-BsS.0.0.40.js +5 -0
- package/dist/interface/{vue-inline-svg.DlaAtqUH.0.0.39.js → vue-inline-svg.Dw0gABtu.0.0.40.js} +1 -1
- package/dist/interface/vue-router.BM3kqO61.0.0.40.js +5 -0
- package/dist/interface/vue3-apexcharts.BQqssCBa.0.0.40.js +1 -0
- package/dist/interface/{vue3-dnd.DI0vFvcT.0.0.39.js → vue3-dnd.CCcL66LF.0.0.40.js} +1 -1
- package/dist/interface/vue3-toastify.Dpy6t0fy.0.0.40.js +1 -0
- package/dist/interface/{vuetify.BVIToxfp.0.0.39.js → vuetify.CkITUpvd.0.0.40.js} +1 -1
- package/dist/server/package.json +14 -14
- package/dist/server/requirements.txt +3 -3
- package/dist/server/src/api/schemas/backup.schema.d.ts +2 -2
- package/dist/server/src/api/schemas/plugins.schema.d.ts +16 -16
- package/dist/server/src/api/websocket/go2rtc.js +1 -1
- package/dist/server/src/api/websocket/go2rtc.js.map +1 -1
- package/package.json +14 -14
- package/dist/interface/@intlify.DA2Uxele.0.0.39.js +0 -15
- package/dist/interface/@vueuse.BbKS6Mm_.0.0.39.js +0 -1
- package/dist/interface/Plugin.DJZOCVcC.0.0.39.js +0 -1
- package/dist/interface/Recordings.BmGJwKCj.0.0.39.js +0 -1
- package/dist/interface/Recordings.CGm8tQJ2.0.0.39.js +0 -1
- package/dist/interface/VPlayer.B6FnraDr.0.0.39.js +0 -4
- package/dist/interface/apexcharts.BNnNkoic.0.0.39.js +0 -795
- package/dist/interface/assets/Plugin.0.0.39.Dr_p_vTx.css +0 -1
- package/dist/interface/axios.A8B9OaBI.0.0.39.js +0 -6
- package/dist/interface/dijkstrajs.D_NXgYpA.0.0.39.js +0 -1
- package/dist/interface/draggabilly.CZQEJIZA.0.0.39.js +0 -6
- package/dist/interface/ev-emitter.MaUUfWbo.0.0.39.js +0 -1
- package/dist/interface/fast-deep-equal.MattxcKw.0.0.39.js +0 -1
- package/dist/interface/highlight.js.CTUlL8NK.0.0.39.js +0 -2
- package/dist/interface/nprogress.IoWBc-2H.0.0.39.js +0 -2
- package/dist/interface/pinia.C6nkSx2n.0.0.39.js +0 -5
- package/dist/interface/qrcode.DcxA8kpR.0.0.39.js +0 -8
- package/dist/interface/unidragger.Cau04amP.0.0.39.js +0 -5
- package/dist/interface/vue-i18n.DMLEf9uA.0.0.39.js +0 -5
- package/dist/interface/vue-router.Dg3VWoln.0.0.39.js +0 -5
- package/dist/interface/vue3-apexcharts.CZjjRQ6m.0.0.39.js +0 -1
- package/dist/interface/vue3-toastify.BuRDCgSx.0.0.39.js +0 -1
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.39.js → @babel.l0sNRNKZ.0.0.40.js} +0 -0
- /package/dist/interface/{@mdi.CbjpODVZ.0.0.39.js → @mdi.CbjpODVZ.0.0.40.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.39.js → @react-dnd.CcwRs9xb.0.0.40.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.39.js → @socket.io.Dkula2eQ.0.0.40.js} +0 -0
- /package/dist/interface/{@turf.l0sNRNKZ.0.0.39.js → @turf.l0sNRNKZ.0.0.40.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.39.CroAHJs8.css → @vueform.0.0.40.CroAHJs8.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.39.CFbL2ovg.css → @xterm.0.0.40.CFbL2ovg.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.39.Bnw6Lbtd.css → Account.0.0.40.Bnw6Lbtd.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.39.a3t1v3MB.css → Adminpanel.0.0.40.a3t1v3MB.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.39.CX0rT0QJ.css → Backup.0.0.40.CX0rT0QJ.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.39.Br9s6-lM.css → Camera.0.0.40.Br9s6-lM.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.39.Buf1Dgce.css → Cameras.0.0.40.Buf1Dgce.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.39.B7Cja2ry.css → Camview.0.0.40.B7Cja2ry.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.39.DNGo2krN.css → Config.0.0.40.DNGo2krN.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.39.Bh8l9QnM.css → Console.0.0.40.Bh8l9QnM.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.39.Mu8VPl13.css → FirstSteps.0.0.40.Mu8VPl13.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.39.C5BFv264.css → NewCamera.0.0.40.C5BFv264.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.39.DXSoO9M1.css → Plugins.0.0.40.DXSoO9M1.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.39.CVmui2kE.css → Settings.0.0.40.CVmui2kE.css} +0 -0
- /package/dist/interface/assets/{User.0.0.39.BiGtIFqt.css → User.0.0.40.BiGtIFqt.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.39.BCqKHpmJ.css → VConsole.0.0.40.BCqKHpmJ.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.39.C8Lj6X-J.css → VPluginCard.0.0.40.C8Lj6X-J.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.39.Ch2EwETz.css → highlight.0.0.40.Ch2EwETz.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.39.BCQk9H1-.png → logo-256.0.0.40.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.39.DLKVOU2S.png → logo-512.0.0.40.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.39.DmEiRk0z.png → logo.0.0.40.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.39.OJngntGT.css → main.0.0.40.OJngntGT.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.39.Br7xisR1.js → mode-json.0.0.40.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.39.CIYL8U3d.js → mode-yaml.0.0.40.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.39.DHXAGmwn.css → vue3-toastify.0.0.40.DHXAGmwn.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.39.BMU5FWcv.css → vuetify.0.0.40.BMU5FWcv.css} +0 -0
- /package/dist/interface/{birpc.l0sNRNKZ.0.0.39.js → birpc.l0sNRNKZ.0.0.40.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.39.js → compare-versions.DqEOhma6.0.0.40.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.39.js → engine.io-parser.BiEtp6m2.0.0.40.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.39.js → entities.C20TfXL6.0.0.40.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.39.js → get-size.D1dS-IaP.0.0.40.js} +0 -0
- /package/dist/interface/{hookable.B8xFkYCm.0.0.39.js → hookable.B8xFkYCm.0.0.40.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.39.js → mdurl.k9Sl0PQj.0.0.40.js} +0 -0
- /package/dist/interface/{perfect-debounce.Cp2ysxOb.0.0.39.js → perfect-debounce.Cp2ysxOb.0.0.40.js} +0 -0
- /package/dist/interface/{point-in-polygon-hao.l0sNRNKZ.0.0.39.js → point-in-polygon-hao.l0sNRNKZ.0.0.40.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.39.js → punycode.js.Dj65hjkv.0.0.40.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.39.js → react-dnd-html5-backend.1HQjlkwI.0.0.40.js} +0 -0
- /package/dist/interface/{redux.BFxtlG_c.0.0.39.js → redux.BFxtlG_c.0.0.40.js} +0 -0
- /package/dist/interface/{sweepline-intersections.l0sNRNKZ.0.0.39.js → sweepline-intersections.l0sNRNKZ.0.0.40.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.39.js → tslib.9k7AwCpt.0.0.40.js} +0 -0
- /package/dist/interface/{types.Cz9TaZAP.0.0.39.js → types.Cz9TaZAP.0.0.40.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.39.js → uc.micro.kMc2yuuw.0.0.40.js} +0 -0
- /package/dist/interface/{utils.mAKpSMLY.0.0.39.js → utils.mAKpSMLY.0.0.40.js} +0 -0
- /package/dist/interface/{uuid.Ch9TGLTe.0.0.39.js → uuid.Ch9TGLTe.0.0.40.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.39.js → vue.l0sNRNKZ.0.0.40.js} +0 -0
- /package/dist/interface/{zod.Bn-rxnIN.0.0.39.js → zod.Bn-rxnIN.0.0.40.js} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as z,D as ot,G as Ve,F as st,c as T,u as Q,N as qe,O as le,r as it,w as ct,n as at,s as lt}from"./@vue.PV_2gLoq.0.0.40.js";/*!
|
|
2
|
+
* vue-router v4.5.0
|
|
3
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const q=typeof document<"u";function Ge(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ut(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ge(e.default)}const P=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=N(o)?o.map(e):e(o)}return n}const F=()=>{},N=Array.isArray,Ke=/#/g,ft=/&/g,ht=/\//g,dt=/=/g,pt=/\?/g,De=/\+/g,mt=/%5B/g,gt=/%5D/g,Ue=/%5E/g,vt=/%60/g,We=/%7B/g,yt=/%7C/g,Qe=/%7D/g,Rt=/%20/g;function ge(e){return encodeURI(""+e).replace(yt,"|").replace(mt,"[").replace(gt,"]")}function Et(e){return ge(e).replace(We,"{").replace(Qe,"}").replace(Ue,"^")}function de(e){return ge(e).replace(De,"%2B").replace(Rt,"+").replace(Ke,"%23").replace(ft,"%26").replace(vt,"`").replace(We,"{").replace(Qe,"}").replace(Ue,"^")}function wt(e){return de(e).replace(dt,"%3D")}function Pt(e){return ge(e).replace(Ke,"%23").replace(pt,"%3F")}function St(e){return e==null?"":Pt(e).replace(ht,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const kt=/\/$/,Ct=e=>e.replace(kt,"");function fe(e,t,n="/"){let r,o={},a="",d="";const g=t.indexOf("#");let i=t.indexOf("?");return g<i&&g>=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,g>-1?g:t.length),o=e(a)),g>-1&&(r=r||t.slice(0,g),d=t.slice(g,t.length)),r=_t(r??t,n),{fullPath:r+(a&&"?")+a+d,path:r,query:o,hash:X(d)}}function bt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ke(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function At(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&G(t.matched[r],n.matched[o])&&Fe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function G(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ot(e[n],t[n]))return!1;return!0}function Ot(e,t){return N(e)?Ce(e,t):N(t)?Ce(t,e):e===t}function Ce(e,t){return N(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _t(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,d,g;for(d=0;d<r.length;d++)if(g=r[d],g!==".")if(g==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(d).join("/")}const H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Z;(function(e){e.pop="pop",e.push="push"})(Z||(Z={}));var Y;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Y||(Y={}));function xt(e){if(!e)if(q){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ct(e)}const Mt=/^[^#]+#/;function It(e,t){return e.replace(Mt,"#")+t}function Nt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const te=()=>({left:window.scrollX,top:window.scrollY});function Tt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Nt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function be(e,t){return(history.state?history.state.position-t:-1)+e}const pe=new Map;function Lt(e,t){pe.set(e,t)}function $t(e){const t=pe.get(e);return pe.delete(e),t}let Ht=()=>location.protocol+"//"+location.host;function Ye(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let g=o.includes(e.slice(a))?e.slice(a).length:1,i=o.slice(g);return i[0]!=="/"&&(i="/"+i),ke(i,"")}return ke(n,e)+r+o}function jt(e,t,n,r){let o=[],a=[],d=null;const g=({state:l})=>{const u=Ye(e,location),w=n.value,S=t.value;let b=0;if(l){if(n.value=u,t.value=l,d&&d===w){d=null;return}b=S?l.position-S.position:0}else r(u);o.forEach(A=>{A(n.value,w,{delta:b,type:Z.pop,direction:b?b>0?Y.forward:Y.back:Y.unknown})})};function i(){d=n.value}function f(l){o.push(l);const u=()=>{const w=o.indexOf(l);w>-1&&o.splice(w,1)};return a.push(u),u}function h(){const{history:l}=window;l.state&&l.replaceState(P({},l.state,{scroll:te()}),"")}function c(){for(const l of a)l();a=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:i,listen:f,destroy:c}}function Ae(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Bt(e){const{history:t,location:n}=window,r={value:Ye(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(i,f,h){const c=e.indexOf("#"),l=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+i:Ht()+e+i;try{t[h?"replaceState":"pushState"](f,"",l),o.value=f}catch(u){console.error(u),n[h?"replace":"assign"](l)}}function d(i,f){const h=P({},t.state,Ae(o.value.back,i,o.value.forward,!0),f,{position:o.value.position});a(i,h,!0),r.value=i}function g(i,f){const h=P({},o.value,t.state,{forward:i,scroll:te()});a(h.current,h,!0);const c=P({},Ae(r.value,i,null),{position:h.position+1},f);a(i,c,!1),r.value=i}return{location:r,state:o,push:g,replace:d}}function zt(e){e=xt(e);const t=Bt(e),n=jt(e,t.state,t.location,t.replace);function r(a,d=!0){d||n.pauseListeners(),history.go(a)}const o=P({location:"",base:e,go:r,createHref:It.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function pn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),zt(e)}function Vt(e){return typeof e=="string"||e&&typeof e=="object"}function Xe(e){return typeof e=="string"||typeof e=="symbol"}const Ze=Symbol("");var Oe;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Oe||(Oe={}));function K(e,t){return P(new Error,{type:e,[Ze]:!0},t)}function L(e,t){return e instanceof Error&&Ze in e&&(t==null||!!(e.type&t))}const _e="[^/]+?",qt={sensitive:!1,strict:!1,start:!0,end:!0},Gt=/[.+*?^${}()[\]/\\]/g;function Kt(e,t){const n=P({},qt,t),r=[];let o=n.start?"^":"";const a=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let c=0;c<f.length;c++){const l=f[c];let u=40+(n.sensitive?.25:0);if(l.type===0)c||(o+="/"),o+=l.value.replace(Gt,"\\$&"),u+=40;else if(l.type===1){const{value:w,repeatable:S,optional:b,regexp:A}=l;a.push({name:w,repeatable:S,optional:b});const E=A||_e;if(E!==_e){u+=10;try{new RegExp(`(${E})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${w}" (${E}): `+I.message)}}let k=S?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;c||(k=b&&f.length<2?`(?:/${k})`:"/"+k),b&&(k+="?"),o+=k,u+=20,b&&(u+=-8),S&&(u+=-20),E===".*"&&(u+=-50)}h.push(u)}r.push(h)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const d=new RegExp(o,n.sensitive?"":"i");function g(f){const h=f.match(d),c={};if(!h)return null;for(let l=1;l<h.length;l++){const u=h[l]||"",w=a[l-1];c[w.name]=u&&w.repeatable?u.split("/"):u}return c}function i(f){let h="",c=!1;for(const l of e){(!c||!h.endsWith("/"))&&(h+="/"),c=!1;for(const u of l)if(u.type===0)h+=u.value;else if(u.type===1){const{value:w,repeatable:S,optional:b}=u,A=w in f?f[w]:"";if(N(A)&&!S)throw new Error(`Provided param "${w}" is an array but it is not repeatable (* or + modifiers)`);const E=N(A)?A.join("/"):A;if(!E)if(b)l.length<2&&(h.endsWith("/")?h=h.slice(0,-1):c=!0);else throw new Error(`Missing required param "${w}"`);h+=E}}return h||"/"}return{re:d,score:r,keys:a,parse:g,stringify:i}}function Dt(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Je(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const a=Dt(r[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-r.length)===1){if(xe(r))return 1;if(xe(o))return-1}return o.length-r.length}function xe(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ut={type:0,value:""},Wt=/[a-zA-Z0-9_]/;function Qt(e){if(!e)return[[]];if(e==="/")return[[Ut]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${f}": ${u}`)}let n=0,r=n;const o=[];let a;function d(){a&&o.push(a),a=[]}let g=0,i,f="",h="";function c(){f&&(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:h,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),f="")}function l(){f+=i}for(;g<e.length;){if(i=e[g++],i==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:i==="/"?(f&&c(),d()):i===":"?(c(),n=1):l();break;case 4:l(),n=r;break;case 1:i==="("?n=2:Wt.test(i)?l():(c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&g--);break;case 2:i===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+i:n=3:h+=i;break;case 3:c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&g--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),c(),d(),o}function Ft(e,t,n){const r=Kt(Qt(e.path),n),o=P(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Yt(e,t){const n=[],r=new Map;t=Te({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function a(c,l,u){const w=!u,S=Ie(c);S.aliasOf=u&&u.record;const b=Te(t,c),A=[S];if("alias"in c){const I=typeof c.alias=="string"?[c.alias]:c.alias;for(const B of I)A.push(Ie(P({},S,{components:u?u.record.components:S.components,path:B,aliasOf:u?u.record:S})))}let E,k;for(const I of A){const{path:B}=I;if(l&&B[0]!=="/"){const $=l.record.path,M=$[$.length-1]==="/"?"":"/";I.path=l.record.path+(B&&M+B)}if(E=Ft(I,l,b),u?u.alias.push(E):(k=k||E,k!==E&&k.alias.push(E),w&&c.name&&!Ne(E)&&d(c.name)),et(E)&&i(E),S.children){const $=S.children;for(let M=0;M<$.length;M++)a($[M],E,u&&u.children[M])}u=u||E}return k?()=>{d(k)}:F}function d(c){if(Xe(c)){const l=r.get(c);l&&(r.delete(c),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(c);l>-1&&(n.splice(l,1),c.record.name&&r.delete(c.record.name),c.children.forEach(d),c.alias.forEach(d))}}function g(){return n}function i(c){const l=Jt(c,n);n.splice(l,0,c),c.record.name&&!Ne(c)&&r.set(c.record.name,c)}function f(c,l){let u,w={},S,b;if("name"in c&&c.name){if(u=r.get(c.name),!u)throw K(1,{location:c});b=u.record.name,w=P(Me(l.params,u.keys.filter(k=>!k.optional).concat(u.parent?u.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),c.params&&Me(c.params,u.keys.map(k=>k.name))),S=u.stringify(w)}else if(c.path!=null)S=c.path,u=n.find(k=>k.re.test(S)),u&&(w=u.parse(S),b=u.record.name);else{if(u=l.name?r.get(l.name):n.find(k=>k.re.test(l.path)),!u)throw K(1,{location:c,currentLocation:l});b=u.record.name,w=P({},l.params,c.params),S=u.stringify(w)}const A=[];let E=u;for(;E;)A.unshift(E.record),E=E.parent;return{name:b,path:S,params:w,matched:A,meta:Zt(A)}}e.forEach(c=>a(c));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:d,clearRoutes:h,getRoutes:g,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ie(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Xt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Xt(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zt(e){return e.reduce((t,n)=>P(t,n.meta),{})}function Te(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Jt(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Je(e,t[a])<0?r=a:n=a+1}const o=en(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function en(e){let t=e;for(;t=t.parent;)if(et(t)&&Je(e,t)===0)return t}function et({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tn(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const a=r[o].replace(De," "),d=a.indexOf("="),g=X(d<0?a:a.slice(0,d)),i=d<0?null:X(a.slice(d+1));if(g in t){let f=t[g];N(f)||(f=t[g]=[f]),f.push(i)}else t[g]=i}return t}function Le(e){let t="";for(let n in e){const r=e[n];if(n=wt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(N(r)?r.map(a=>a&&de(a)):[r&&de(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function nn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=N(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const rn=Symbol(""),$e=Symbol(""),ne=Symbol(""),ve=Symbol(""),me=Symbol("");function W(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function j(e,t,n,r,o,a=d=>d()){const d=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,i)=>{const f=l=>{l===!1?i(K(4,{from:n,to:t})):l instanceof Error?i(l):Vt(l)?i(K(2,{from:t,to:l})):(d&&r.enterCallbacks[o]===d&&typeof l=="function"&&d.push(l),g())},h=a(()=>e.call(r&&r.instances[o],t,n,f));let c=Promise.resolve(h);e.length<3&&(c=c.then(f)),c.catch(l=>i(l))})}function he(e,t,n,r,o=a=>a()){const a=[];for(const d of e)for(const g in d.components){let i=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(Ge(i)){const h=(i.__vccOpts||i)[t];h&&a.push(j(h,n,r,d,g,o))}else{let f=i();a.push(()=>f.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${g}" at "${d.path}"`);const c=ut(h)?h.default:h;d.mods[g]=h,d.components[g]=c;const u=(c.__vccOpts||c)[t];return u&&j(u,n,r,d,g,o)()}))}}return a}function He(e){const t=z(ne),n=z(ve),r=T(()=>{const i=Q(e.to);return t.resolve(i)}),o=T(()=>{const{matched:i}=r.value,{length:f}=i,h=i[f-1],c=n.matched;if(!h||!c.length)return-1;const l=c.findIndex(G.bind(null,h));if(l>-1)return l;const u=je(i[f-2]);return f>1&&je(h)===u&&c[c.length-1].path!==u?c.findIndex(G.bind(null,i[f-2])):l}),a=T(()=>o.value>-1&&ln(n.params,r.value.params)),d=T(()=>o.value>-1&&o.value===n.matched.length-1&&Fe(n.params,r.value.params));function g(i={}){if(an(i)){const f=t[Q(e.replace)?"replace":"push"](Q(e.to)).catch(F);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:a,isExactActive:d,navigate:g}}function on(e){return e.length===1?e[0]:e}const sn=Ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:He,setup(e,{slots:t}){const n=st(He(e)),{options:r}=z(ne),o=T(()=>({[Be(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Be(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&on(t.default(n));return e.custom?a:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),cn=sn;function an(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ln(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!N(o)||o.length!==r.length||r.some((a,d)=>a!==o[d]))return!1}return!0}function je(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Be=(e,t,n)=>e??t??n,un=Ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=z(me),o=T(()=>e.route||r.value),a=z($e,0),d=T(()=>{let f=Q(a);const{matched:h}=o.value;let c;for(;(c=h[f])&&!c.components;)f++;return f}),g=T(()=>o.value.matched[d.value]);le($e,T(()=>d.value+1)),le(rn,g),le(me,o);const i=it();return ct(()=>[i.value,g.value,e.name],([f,h,c],[l,u,w])=>{h&&(h.instances[c]=f,u&&u!==h&&f&&f===l&&(h.leaveGuards.size||(h.leaveGuards=u.leaveGuards),h.updateGuards.size||(h.updateGuards=u.updateGuards))),f&&h&&(!u||!G(h,u)||!l)&&(h.enterCallbacks[c]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,c=g.value,l=c&&c.components[h];if(!l)return ze(n.default,{Component:l,route:f});const u=c.props[h],w=u?u===!0?f.params:typeof u=="function"?u(f):u:null,b=qe(l,P({},w,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(c.instances[h]=null)},ref:i}));return ze(n.default,{Component:b,route:f})||b}}});function ze(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const fn=un;function mn(e){const t=Yt(e.routes,e),n=e.parseQuery||tn,r=e.stringifyQuery||Le,o=e.history,a=W(),d=W(),g=W(),i=ot(H);let f=H;q&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=ue.bind(null,s=>""+s),c=ue.bind(null,St),l=ue.bind(null,X);function u(s,m){let p,v;return Xe(s)?(p=t.getRecordMatcher(s),v=m):v=s,t.addRoute(v,p)}function w(s){const m=t.getRecordMatcher(s);m&&t.removeRoute(m)}function S(){return t.getRoutes().map(s=>s.record)}function b(s){return!!t.getRecordMatcher(s)}function A(s,m){if(m=P({},m||i.value),typeof s=="string"){const y=fe(n,s,m.path),_=t.resolve({path:y.path},m),U=o.createHref(y.fullPath);return P(y,_,{params:l(_.params),hash:X(y.hash),redirectedFrom:void 0,href:U})}let p;if(s.path!=null)p=P({},s,{path:fe(n,s.path,m.path).path});else{const y=P({},s.params);for(const _ in y)y[_]==null&&delete y[_];p=P({},s,{params:c(y)}),m.params=c(m.params)}const v=t.resolve(p,m),C=s.hash||"";v.params=h(l(v.params));const O=bt(r,P({},s,{hash:Et(C),path:v.path})),R=o.createHref(O);return P({fullPath:O,hash:C,query:r===Le?nn(s.query):s.query||{}},v,{redirectedFrom:void 0,href:R})}function E(s){return typeof s=="string"?fe(n,s,i.value.path):P({},s)}function k(s,m){if(f!==s)return K(8,{from:m,to:s})}function I(s){return M(s)}function B(s){return I(P(E(s),{replace:!0}))}function $(s){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:p}=m;let v=typeof p=="function"?p(s):p;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=E(v):{path:v},v.params={}),P({query:s.query,hash:s.hash,params:v.path!=null?{}:s.params},v)}}function M(s,m){const p=f=A(s),v=i.value,C=s.state,O=s.force,R=s.replace===!0,y=$(p);if(y)return M(P(E(y),{state:typeof y=="object"?P({},C,y.state):C,force:O,replace:R}),m||p);const _=p;_.redirectedFrom=m;let U;return!O&&At(r,v,p)&&(U=K(16,{to:_,from:v}),Pe(v,v,!0,!1)),(U?Promise.resolve(U):ye(_,v)).catch(x=>L(x)?L(x,2)?x:ie(x):se(x,_,v)).then(x=>{if(x){if(L(x,2))return M(P({replace:R},E(x.to),{state:typeof x.to=="object"?P({},C,x.to.state):C,force:O}),m||_)}else x=Ee(_,v,!0,R,C);return Re(_,v,x),x})}function tt(s,m){const p=k(s,m);return p?Promise.reject(p):Promise.resolve()}function re(s){const m=ee.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(s):s()}function ye(s,m){let p;const[v,C,O]=hn(s,m);p=he(v.reverse(),"beforeRouteLeave",s,m);for(const y of v)y.leaveGuards.forEach(_=>{p.push(j(_,s,m))});const R=tt.bind(null,s,m);return p.push(R),V(p).then(()=>{p=[];for(const y of a.list())p.push(j(y,s,m));return p.push(R),V(p)}).then(()=>{p=he(C,"beforeRouteUpdate",s,m);for(const y of C)y.updateGuards.forEach(_=>{p.push(j(_,s,m))});return p.push(R),V(p)}).then(()=>{p=[];for(const y of O)if(y.beforeEnter)if(N(y.beforeEnter))for(const _ of y.beforeEnter)p.push(j(_,s,m));else p.push(j(y.beforeEnter,s,m));return p.push(R),V(p)}).then(()=>(s.matched.forEach(y=>y.enterCallbacks={}),p=he(O,"beforeRouteEnter",s,m,re),p.push(R),V(p))).then(()=>{p=[];for(const y of d.list())p.push(j(y,s,m));return p.push(R),V(p)}).catch(y=>L(y,8)?y:Promise.reject(y))}function Re(s,m,p){g.list().forEach(v=>re(()=>v(s,m,p)))}function Ee(s,m,p,v,C){const O=k(s,m);if(O)return O;const R=m===H,y=q?history.state:{};p&&(v||R?o.replace(s.fullPath,P({scroll:R&&y&&y.scroll},C)):o.push(s.fullPath,C)),i.value=s,Pe(s,m,p,R),ie()}let D;function nt(){D||(D=o.listen((s,m,p)=>{if(!Se.listening)return;const v=A(s),C=$(v);if(C){M(P(C,{replace:!0,force:!0}),v).catch(F);return}f=v;const O=i.value;q&&Lt(be(O.fullPath,p.delta),te()),ye(v,O).catch(R=>L(R,12)?R:L(R,2)?(M(P(E(R.to),{force:!0}),v).then(y=>{L(y,20)&&!p.delta&&p.type===Z.pop&&o.go(-1,!1)}).catch(F),Promise.reject()):(p.delta&&o.go(-p.delta,!1),se(R,v,O))).then(R=>{R=R||Ee(v,O,!1),R&&(p.delta&&!L(R,8)?o.go(-p.delta,!1):p.type===Z.pop&&L(R,20)&&o.go(-1,!1)),Re(v,O,R)}).catch(F)}))}let oe=W(),we=W(),J;function se(s,m,p){ie(s);const v=we.list();return v.length?v.forEach(C=>C(s,m,p)):console.error(s),Promise.reject(s)}function rt(){return J&&i.value!==H?Promise.resolve():new Promise((s,m)=>{oe.add([s,m])})}function ie(s){return J||(J=!s,nt(),oe.list().forEach(([m,p])=>s?p(s):m()),oe.reset()),s}function Pe(s,m,p,v){const{scrollBehavior:C}=e;if(!q||!C)return Promise.resolve();const O=!p&&$t(be(s.fullPath,0))||(v||!p)&&history.state&&history.state.scroll||null;return at().then(()=>C(s,m,O)).then(R=>R&&Tt(R)).catch(R=>se(R,s,m))}const ce=s=>o.go(s);let ae;const ee=new Set,Se={currentRoute:i,listening:!0,addRoute:u,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:S,resolve:A,options:e,push:I,replace:B,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:d.add,afterEach:g.add,onError:we.add,isReady:rt,install(s){const m=this;s.component("RouterLink",cn),s.component("RouterView",fn),s.config.globalProperties.$router=m,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(i)}),q&&!ae&&i.value===H&&(ae=!0,I(o.location).catch(C=>{}));const p={};for(const C in H)Object.defineProperty(p,C,{get:()=>i.value[C],enumerable:!0});s.provide(ne,m),s.provide(ve,lt(p)),s.provide(me,i);const v=s.unmount;ee.add(s),s.unmount=function(){ee.delete(s),ee.size<1&&(f=H,D&&D(),D=null,i.value=H,ae=!1,J=!1),v()}}};function V(s){return s.reduce((m,p)=>m.then(()=>re(p)),Promise.resolve())}return Se}function hn(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let d=0;d<a;d++){const g=t.matched[d];g&&(e.matched.find(f=>G(f,g))?r.push(g):n.push(g));const i=e.matched[d];i&&(t.matched.find(f=>G(f,i))||o.push(i))}return[n,r,o]}function gn(){return z(ne)}function vn(e){return z(ve)}export{gn as a,pn as b,mn as c,vn as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as S}from"./apexcharts.CChAu4xp.0.0.40.js";import{G as Y,N as Z,r as w,S as q,C as G,B as J,n as N,L as $,t as F,w as u}from"./@vue.PV_2gLoq.0.0.40.js";import"./@xterm.oesufn9X.0.0.40.js";import"./perfect-debounce.Cp2ysxOb.0.0.40.js";import"./hookable.B8xFkYCm.0.0.40.js";const A=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],f=Y({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:A,setup(o,{emit:b}){const g=w(null),t=w(null),v=e=>e&&typeof e=="object"&&!Array.isArray(e)&&e!=null,y=(e,n)=>{typeof Object.assign!="function"&&function(){Object.assign=function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");let p=Object(a);for(let r=1;r<arguments.length;r++){let c=arguments[r];if(c!=null)for(let m in c)c.hasOwnProperty(m)&&(p[m]=c[m])}return p}}();let s=Object.assign({},e);return v(e)&&v(n)&&Object.keys(n).forEach(a=>{v(n[a])?a in e?s[a]=y(e[a],n[a]):Object.assign(s,{[a]:n[a]}):Object.assign(s,{[a]:n[a]})}),s},i=async()=>{if(await N(),t.value)return;const e={chart:{type:o.type||o.options.chart.type||"line",height:o.height,width:o.width,events:{}},series:o.series},n=o.options.chart?o.options.chart.events:null;A.forEach(a=>{let p=(...r)=>b(a,...r);e.chart.events[a]=(...r)=>{p(...r),n&&n.hasOwnProperty(a)&&n[a](...r)}});const s=y(o.options,e);return t.value=new S(g.value,s),t.value.render()},d=()=>(h(),i()),h=()=>{t.value.destroy(),t.value=null},O=(e,n)=>t.value.updateSeries(e,n),j=(e,n,s,a)=>t.value.updateOptions(e,n,s,a),x=e=>t.value.toggleSeries(e),P=e=>{t.value.showSeries(e)},C=e=>{t.value.hideSeries(e)},M=(e,n)=>t.value.appendSeries(e,n),k=()=>{t.value.resetSeries()},E=(e,n)=>{t.value.toggleDataPointSelection(e,n)},L=e=>t.value.appendData(e),D=(e,n)=>t.value.zoomX(e,n),R=e=>t.value.dataURI(e),X=e=>t.value.setLocale(e),z=(e,n)=>{t.value.addXaxisAnnotation(e,n)},B=(e,n)=>{t.value.addYaxisAnnotation(e,n)},I=(e,n)=>{t.value.addPointAnnotation(e,n)},U=(e,n)=>{t.value.removeAnnotation(e,n)},T=()=>{t.value.clearAnnotations()};q(()=>{window.ApexCharts=S}),G(()=>{g.value=J().proxy.$el,i()}),$(()=>{t.value&&h()});const l=F(o);return u(l.options,()=>{!t.value&&o.options?i():t.value.updateOptions(o.options)}),u(l.series,()=>{!t.value&&o.series?i():t.value.updateSeries(o.series)},{deep:!0}),u(l.type,()=>{d()}),u(l.width,()=>{d()}),u(l.height,()=>{d()}),{chart:t,init:i,refresh:d,destroy:h,updateOptions:j,updateSeries:O,toggleSeries:x,showSeries:P,hideSeries:C,resetSeries:k,zoomX:D,toggleDataPointSelection:E,appendData:L,appendSeries:M,addXaxisAnnotation:z,addYaxisAnnotation:B,addPointAnnotation:I,removeAnnotation:U,clearAnnotations:T,setLocale:X,dataURI:R}},render(){return Z("div",{class:"vue-apexcharts"})}}),H=o=>{o.component(f.name,f)};f.install=H;export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R}from"./dnd-core.DzbP3L03.0.0.39.js";import{a as E,O as x,G as j,R as N,i as U,u as o,c as l,E as f,r as F,F as V}from"./@vue.BSUQIjRR.0.0.39.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.39.js";import{e as P}from"./fast-deep-equal.MattxcKw.0.0.39.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 G(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 B(){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 G(t)||L(t,r)||z(t,r)||B()}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 Ge(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 Be(t,r){return Ye(t)||Ge(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=Be(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,nt as a,it as u};
|
|
1
|
+
import{c as R}from"./dnd-core.ZmlET4hC.0.0.40.js";import{a as E,O as x,G as j,R as N,i as U,u as o,c as l,E as f,r as F,F as V}from"./@vue.PV_2gLoq.0.0.40.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.40.js";import{e as P}from"./fast-deep-equal.DrH0s-yy.0.0.40.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 G(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 B(){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 G(t)||L(t,r)||z(t,r)||B()}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 Ge(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 Be(t,r){return Ye(t)||Ge(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=Be(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,nt as a,it as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F,m as b,I as g,U as At,G as W,c as m,C as ut,n as at,V as dt,R as ct,P as u,r as $,W as Tt,E as j,N as D,Q as _t}from"./@vue.PV_2gLoq.0.0.40.js";const H={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},M={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},f={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ht={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},pt={dangerouslyHTMLString:!1,multiple:!0,position:H.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},It={rtl:!1,newestOnTop:!1,toastClassName:""},mt={...pt,...It};({...pt,type:f.DEFAULT});var s=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(s||{}),J=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(J||{});const Nt={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},Lt={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},Ot={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},bt={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},rt="Toastify--animate Toastify__none-enter";function ft(t,e=!1){var n;let o=Nt;if(!t||typeof t=="string")switch(t){case"flip":o=bt;break;case"zoom":o=Ot;break;case"slide":o=Lt;break}else o=t;if(e)o.enter=rt;else if(o.enter===rt){const i=(n=o.exit.split("__")[1])==null?void 0:n.split("-")[0];o.enter=`Toastify--animate Toastify__${i}-enter`}return o}function Pt(t){return t.containerId||String(t.position)}const Q="will-unmount";function qt(t=H.TOP_RIGHT){return!!document.querySelector(`.${s.CSS_NAMESPACE}__toast-container--${t}`)}function $t(t=H.TOP_RIGHT){return`${s.CSS_NAMESPACE}__toast-container--${t}`}function Bt(t,e,n=!1){const o=[`${s.CSS_NAMESPACE}__toast-container`,`${s.CSS_NAMESPACE}__toast-container--${t}`,n?`${s.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return B(e)?e({position:t,rtl:n,defaultClassName:o}):`${o} ${e||""}`}function Mt(t){var e;const{position:n,containerClassName:o,rtl:i=!1,style:a={}}=t,c=s.CSS_NAMESPACE,S=$t(n),l=document.querySelector(`.${c}`),C=document.querySelector(`.${S}`),y=!!C&&!((e=C.className)!=null&&e.includes(Q)),_=l||document.createElement("div"),p=document.createElement("div");p.className=Bt(n,o,i),p.dataset.testid=`${s.CSS_NAMESPACE}__toast-container--${n}`,p.id=Pt(t);for(const A in a)if(Object.prototype.hasOwnProperty.call(a,A)){const h=a[A];p.style[A]=h}return l||(_.className=s.CSS_NAMESPACE,document.body.appendChild(_)),y||_.appendChild(p),p}function tt(t){var e,n,o;const i=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((n=t.target)==null?void 0:n.id),a=document.getElementById(i);a&&a.removeEventListener("animationend",tt,!1);try{x[i].unmount(),(o=document.getElementById(i))==null||o.remove(),delete x[i],delete d[i]}catch{}}const x=F({});function wt(t,e){const n=document.getElementById(String(e));n&&(x[n.id]=t)}function et(t,e=!0){const n=String(t);if(!x[n])return;const o=document.getElementById(n);o&&o.classList.add(Q),e?(Rt(t),o&&o.addEventListener("animationend",tt,!1)):tt(n),T.items=T.items.filter(i=>i.containerId!==t)}function Ft(t){for(const e in x)et(e,t);T.items=[]}function vt(t,e){const n=document.getElementById(t.toastId);if(n){let o=t;o={...o,...ft(o.transition)};const i=o.appendPosition?`${o.exit}--${o.position}`:o.exit;n.className+=` ${i}`,e&&e(n)}}function Rt(t){for(const e in d)if(e===t)for(const n of d[e]||[])vt(n)}function Ut(t){const e=w().find(n=>n.toastId===t);return e==null?void 0:e.containerId}function st(t){return document.getElementById(t)}function Dt(t){const e=st(t.containerId);return e&&e.classList.contains(Q)}function lt(t){var e;const n=dt(t.content)?g(t.content.props):null;return n??g((e=t.data)!=null?e:{})}function kt(t){return t?T.items.filter(e=>e.containerId===t).length>0:T.items.length>0}function xt(){if(T.items.length>0){const t=T.items.shift();z(t==null?void 0:t.toastContent,t==null?void 0:t.toastProps)}}const d=F({}),T=F({items:[]});function w(){const t=g(d);return Object.values(t).reduce((e,n)=>[...e,...n],[])}function Ht(t){return w().find(e=>e.toastId===t)}function z(t,e={}){if(Dt(e)){const n=st(e.containerId);n&&n.addEventListener("animationend",nt.bind(null,t,e),!1)}else nt(t,e)}function nt(t,e={}){const n=st(e.containerId);n&&n.removeEventListener("animationend",nt.bind(null,t,e),!1);const o=d[e.containerId]||[],i=o.length>0;if(!i&&!qt(e.position)){const a=Mt(e),c=At(re,e);c.mount(a),wt(c,a.id)}i&&!e.updateId&&(e.position=o[0].position),at(()=>{e.updateId?v.update(e):v.add(t,e)})}const v={add(t,e){const{containerId:n=""}=e;n&&(d[n]=d[n]||[],d[n].find(o=>o.toastId===e.toastId)||setTimeout(()=>{var o,i;e.newestOnTop?(o=d[n])==null||o.unshift(e):(i=d[n])==null||i.push(e),e.onOpen&&e.onOpen(lt(e))},e.delay||0))},remove(t){if(t){const e=Ut(t);if(e){const n=d[e];let o=n.find(i=>i.toastId===t);d[e]=n.filter(i=>i.toastId!==t),!d[e].length&&!kt(e)&&et(e,!1),xt(),at(()=>{o!=null&&o.onClose&&(o.onClose(lt(o)),o=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){d[e]=d[e]||[];const n=d[e].find(a=>a.toastId===t.toastId),o=(n==null?void 0:n.position)!==t.position||(n==null?void 0:n.transition)!==t.transition,i={...t,disabledEnterTransition:!o,updateId:void 0};v.dismissForce(t==null?void 0:t.toastId),setTimeout(()=>{r(i.content,i)},t.delay||0)}},clear(t,e=!0){t?et(t,e):Ft(e)},dismissCallback(t){var e;const n=(e=t.currentTarget)==null?void 0:e.id,o=document.getElementById(n);o&&(o.removeEventListener("animationend",v.dismissCallback,!1),setTimeout(()=>{v.remove(n)}))},dismiss(t){if(t){const e=w();for(const n of e)if(n.toastId===t){vt(n,o=>{o.addEventListener("animationend",v.dismissCallback,!1)});break}}},dismissForce(t){if(t){const e=w();for(const n of e)if(n.toastId===t){const o=document.getElementById(t);o&&(o.remove(),o.removeEventListener("animationend",v.dismissCallback,!1),v.remove(t));break}}}},yt=F({}),K=F({});function Et(){return Math.random().toString(36).substring(2,9)}function jt(t){return typeof t=="number"&&!isNaN(t)}function ot(t){return typeof t=="string"}function B(t){return typeof t=="function"}function X(...t){return b(...t)}function G(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof(t==null?void 0:t.type)=="object")}function zt(t={}){yt[`${s.CSS_NAMESPACE}-default-options`]=t}function Gt(){return yt[`${s.CSS_NAMESPACE}-default-options`]||mt}function Vt(){const t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||t?"dark":"light"}var V=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(V||{});const gt={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:H.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:M.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:f.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null}},Kt={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:f.DEFAULT},theme:{type:String,required:!1,default:M.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},Wt=W({name:"ProgressBar",props:Kt,setup(t,{attrs:e}){const n=$(),o=m(()=>t.hide?"true":"false"),i=m(()=>({...e.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),a=m(()=>[`${s.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${s.CSS_NAMESPACE}__progress-bar--controlled`:`${s.CSS_NAMESPACE}__progress-bar--animated`,`${s.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${s.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),c=m(()=>`${a.value} ${(e==null?void 0:e.class)||""}`),S=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),S())},C=m(()=>t.controlledProgress?null:l),y=m(()=>t.controlledProgress?l:null);return j(()=>{n.value&&(S(),n.value.onanimationend=C.value,n.value.ontransitionend=y.value)}),()=>u("div",{ref:n,role:"progressbar","aria-hidden":o.value,"aria-label":"notification timer",class:c.value,style:i.value},null)}}),Qt=W({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:M.AUTO},type:{type:String,required:!1,default:M.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>u("button",{class:`${s.CSS_NAMESPACE}__close-button ${s.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[u("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[u("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),Y=({theme:t,type:e,path:n,...o})=>u("svg",b({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},o),[u("path",{d:n},null)]);function Xt(t){return u(Y,b(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function Yt(t){return u(Y,b(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function Zt(t){return u(Y,b(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function Jt(t){return u(Y,b(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function te(){return u("div",{class:`${s.CSS_NAMESPACE}__spinner`},null)}const it={info:Yt,warning:Xt,success:Zt,error:Jt,spinner:te},ee=t=>t in it;function ne({theme:t,type:e,isLoading:n,icon:o}){let i;const a={theme:t,type:e};return n?i=it.spinner():o===!1?i=void 0:G(o)?i=g(o):B(o)?i=o(a):dt(o)?i=Tt(o,a):ot(o)||jt(o)?i=o:ee(e)&&(i=it[e](a)),i}const oe=()=>{};function ie(t,e,n=s.COLLAPSE_DURATION){const{scrollHeight:o,style:i}=t,a=n;requestAnimationFrame(()=>{i.minHeight="initial",i.height=o+"px",i.transition=`all ${a}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,a)})})}function ae(t){const e=$(!1),n=$(!1),o=$(!1),i=$(V.Enter),a=F({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||s.COLLAPSE_DURATION}),c=a.done||oe,S=m(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=m(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),C=m(()=>t.pauseOnHover?{onMouseenter:N,onMouseleave:I}:{});function y(){const E=S.value.split(" ");p().addEventListener(J.ENTRANCE_ANIMATION_END,I,{once:!0});const L=q=>{const U=p();q.target===U&&(U.dispatchEvent(new Event(J.ENTRANCE_ANIMATION_END)),U.removeEventListener("animationend",L),U.removeEventListener("animationcancel",L),i.value===V.Enter&&q.type!=="animationcancel"&&U.classList.remove(...E))},O=()=>{const q=p();q.classList.add(...E),q.addEventListener("animationend",L),q.addEventListener("animationcancel",L)};t.pauseOnFocusLoss&&A(),O()}function _(){if(!p())return;const E=()=>{const O=p();O.removeEventListener("animationend",E),a.collapse?ie(O,c,a.collapseDuration):c()},L=()=>{const O=p();i.value=V.Exit,O&&(O.className+=` ${l.value}`,O.addEventListener("animationend",E))};n.value||(o.value?E():setTimeout(L))}function p(){return t.toastRef.value}function A(){document.hasFocus()||N(),window.addEventListener("focus",I),window.addEventListener("blur",N)}function h(){window.removeEventListener("focus",I),window.removeEventListener("blur",N)}function I(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function N(){e.value=!1}function R(E){E&&(E.stopPropagation(),E.preventDefault()),n.value=!1}return j(_),j(()=>{const E=w();n.value=E.findIndex(L=>L.toastId===a.toastId)>-1}),j(()=>{t.isLoading!==void 0&&(t.loading.value?N():I())}),ut(y),ct(()=>{t.pauseOnFocusLoss&&h()}),{isIn:n,isRunning:e,hideToast:R,eventHandlers:C}}const se=W({name:"ToastItem",inheritAttrs:!1,props:gt,setup(t){const e=$(),n=m(()=>!!t.isLoading),o=m(()=>t.progress!==void 0&&t.progress!==null),i=m(()=>ne(t)),a=m(()=>[`${s.CSS_NAMESPACE}__toast`,`${s.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${s.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:c,isIn:S,hideToast:l,eventHandlers:C}=ae({toastRef:e,loading:n,done:()=>{v.remove(t.toastId)},...ft(t.transition,t.disabledEnterTransition),...t});return()=>u("div",b({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:y=>{t.closeOnClick&&l(),t.onClick&&t.onClick(y)}},C.value),[u("div",{role:t.role,"data-testid":"toast-body",class:`${s.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[i.value!=null&&u("div",{"data-testid":`toast-icon-${t.type}`,class:[`${s.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${s.CSS_NAMESPACE}--animate-icon ${s.CSS_NAMESPACE}__zoom-enter`].join(" ")},[G(i.value)?D(g(i.value),{theme:t.theme,type:t.type}):B(i.value)?i.value({theme:t.theme,type:t.type}):i.value]),t.contentProps?u("div",{"data-testid":"toast-content"},[D(g(t.content),{contentProps:t.contentProps})]):u("div",{"data-testid":"toast-content"},[G(t.content)?D(g(t.content),{toastProps:g(t),closeToast:l,data:t.data}):B(t.content)?t.content({toastProps:g(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?D("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&u(Qt,{theme:t.theme,closeToast:y=>{y.stopPropagation(),y.preventDefault(),l()}},null),G(t.closeButton)?D(g(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):B(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,u(Wt,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:S.value,type:t.type,hide:t.hideProgressBar,isRunning:c.value,autoClose:t.autoClose,controlledProgress:o.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let k=0;function St(){typeof window>"u"||(k&&window.cancelAnimationFrame(k),k=window.requestAnimationFrame(St),K.lastUrl!==window.location.href&&(K.lastUrl=window.location.href,v.clear()))}const re=W({name:"ToastifyContainer",inheritAttrs:!1,props:gt,setup(t){const e=m(()=>t.containerId),n=m(()=>d[e.value]||[]),o=m(()=>n.value.filter(i=>i.position===t.position));return ut(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(St)}),ct(()=>{typeof window<"u"&&k&&(window.cancelAnimationFrame(k),K.lastUrl="")}),()=>u(_t,null,[o.value.map(i=>{const{toastId:a=""}=i;return u(se,b({key:a},i),null)})])}});let Z=!1;function Ct(){const t=[];return w().forEach(e=>{const n=document.getElementById(e.containerId);n&&!n.classList.contains(Q)&&t.push(e)}),t}function le(t){const e=Ct().length,n=t??0;return n>0&&e+T.items.length>=n}function ue(t){le(t.limit)&&!t.updateId&&T.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function P(t,e,n={}){if(Z)return;n=X(Gt(),{type:e},g(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=Et()),n={...n,content:t,containerId:n.containerId||String(n.position)};const o=Number(n==null?void 0:n.progress);return o<0&&(n.progress=0),o>1&&(n.progress=1),n.theme==="auto"&&(n.theme=Vt()),ue(n),K.lastUrl=window.location.href,n.multiple?T.items.length?n.updateId&&z(t,n):z(t,n):(Z=!0,r.clearAll(void 0,!1),setTimeout(()=>{z(t,n)},0),setTimeout(()=>{Z=!1},390)),n.toastId}const r=(t,e)=>P(t,f.DEFAULT,e);r.info=(t,e)=>P(t,f.DEFAULT,{...e,type:f.INFO});r.error=(t,e)=>P(t,f.DEFAULT,{...e,type:f.ERROR});r.warning=(t,e)=>P(t,f.DEFAULT,{...e,type:f.WARNING});r.warn=r.warning;r.success=(t,e)=>P(t,f.DEFAULT,{...e,type:f.SUCCESS});r.loading=(t,e)=>P(t,f.DEFAULT,X(e,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1}));r.dark=(t,e)=>P(t,f.DEFAULT,X(e,{theme:M.DARK}));r.remove=t=>{t?v.dismiss(t):v.clear()};r.clearAll=(t,e)=>{at(()=>{v.clear(t,e)})};r.isActive=t=>{let e=!1;return e=Ct().findIndex(n=>n.toastId===t)>-1,e};r.update=(t,e={})=>{setTimeout(()=>{const n=Ht(t);if(n){const o=g(n),{content:i}=o,a={...o,...e,toastId:e.toastId||t,updateId:Et()},c=a.render||i;delete a.render,P(c,a.type,a)}},0)};r.done=t=>{r.update(t,{isLoading:!1,progress:1})};r.promise=de;function de(t,{pending:e,error:n,success:o},i){var a,c,S;let l;const C={...i||{},autoClose:!1};e&&(l=ot(e)?r.loading(e,C):r.loading(e.render,{...C,...e}));const y={autoClose:(a=i==null?void 0:i.autoClose)!=null?a:!0,closeOnClick:(c=i==null?void 0:i.closeOnClick)!=null?c:!0,closeButton:(S=i==null?void 0:i.autoClose)!=null?S:null,isLoading:void 0,draggable:null,delay:100},_=(A,h,I)=>{if(h==null){r.remove(l);return}const N={type:A,...y,...i,data:I},R=ot(h)?{render:h}:h;return l?r.update(l,{...N,...R,isLoading:!1}):r(R.render,{...N,...R,isLoading:!1}),I},p=B(t)?t():t;return p.then(A=>{_("success",o,A)}).catch(A=>{_("error",n,A)}),p}r.POSITION=H;r.THEME=M;r.TYPE=f;r.TRANSITIONS=ht;const ce={install(t,e={}){pe(e)}};typeof window<"u"&&(window.Vue3Toastify=ce);function pe(t={}){const e=X(mt,t);zt(e)}export{ce as c,pe as f,r as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as ot,c as b,E as Re,t as Dn,X as ka,Q as oe,D as K,u as Ae,V as pr,Y as Ir,B as Lr,a as de,O as Se,r as W,G as Ar,N as $t,Z as vi,P as u,i as Bt,_ as Va,$ as kt,m as H,A as O,w as Y,n as Ce,S as mi,L as Ye,e as ke,a0 as rt,v as tt,q as Pa,y as pa,o as De,I as we,C as Rt,a1 as Tr,T as _r,M as Er,J as Br,W as Dr,a2 as gi,a3 as Mr,a4 as Fr,a5 as Or,a6 as hi,a7 as xn,a8 as $r,p as ll,a9 as Rr}from"./@vue.BSUQIjRR.0.0.39.js";function D(e,n){return t=>Object.keys(e).reduce((a,l)=>{const o=typeof e[l]=="object"&&e[l]!=null&&!Array.isArray(e[l])?e[l]:{type:e[l]};return t&&l in t?a[l]={...o,default:t[l]}:a[l]=o,n&&!a[l].source&&(a[l].source=n),a},{})}const Q=D({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ue=typeof window<"u",Ia=ue&&"IntersectionObserver"in window,Nr=ue&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function yi(e,n,t){const a=n.length-1;if(a<0)return e===void 0?t:e;for(let l=0;l<a;l++){if(e==null)return t;e=e[n[l]]}return e==null||e[n[a]]===void 0?t:e[n[a]]}function mt(e,n){if(e===n)return!0;if(e instanceof Date&&n instanceof Date&&e.getTime()!==n.getTime()||e!==Object(e)||n!==Object(n))return!1;const t=Object.keys(e);return t.length!==Object.keys(n).length?!1:t.every(a=>mt(e[a],n[a]))}function Vt(e,n,t){return e==null||!n||typeof n!="string"?t:e[n]!==void 0?e[n]:(n=n.replace(/\[(\w+)\]/g,".$1"),n=n.replace(/^\./,""),yi(e,n.split("."),t))}function _e(e,n,t){if(n===!0)return e===void 0?t:e;if(n==null||typeof n=="boolean")return t;if(e!==Object(e)){if(typeof n!="function")return t;const l=n(e,t);return typeof l>"u"?t:l}if(typeof n=="string")return Vt(e,n,t);if(Array.isArray(n))return yi(e,n,t);if(typeof n!="function")return t;const a=n(e,t);return typeof a>"u"?t:a}function _t(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(t,a)=>n+a)}function Z(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${n}`:void 0}function La(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function il(e){let n;return e!==null&&typeof e=="object"&&((n=Object.getPrototypeOf(e))===Object.prototype||n===null)}function bi(e){if(e&&"$el"in e){const n=e.$el;return(n==null?void 0:n.nodeType)===Node.TEXT_NODE?n.nextElementSibling:n}return e}const ol=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),rl=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Si(e){return Object.keys(e)}function qn(e,n){return n.every(t=>e.hasOwnProperty(t))}function Aa(e,n){const t={},a=new Set(Object.keys(e));for(const l of n)a.has(l)&&(t[l]=e[l]);return t}function sa(e,n,t){const a=Object.create(null),l=Object.create(null);for(const i in e)n.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(t!=null&&t.some(o=>o===i))?a[i]=e[i]:l[i]=e[i];return[a,l]}function He(e,n){const t={...e};return n.forEach(a=>delete t[a]),t}function Hr(e,n){const t={};return n.forEach(a=>t[a]=e[a]),t}const Ci=/^on[^a-z]/,Mn=e=>Ci.test(e),zr=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],Wr=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function jr(e){return e.isComposing&&Wr.includes(e.key)}function Ta(e){const[n,t]=sa(e,[Ci]),a=He(n,zr),[l,i]=sa(t,["class","style","id",/^data-/]);return Object.assign(l,n),Object.assign(i,a),[l,i]}function Ve(e){return e==null?[]:Array.isArray(e)?e:[e]}function Gr(e,n){let t=0;const a=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>e(...i),Ae(n))};return a.clear=()=>{clearTimeout(t)},a.immediate=e,a}function Ee(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(n,Math.min(t,e))}function sl(e){const n=e.toString().trim();return n.includes(".")?n.length-n.indexOf(".")-1:0}function ul(e,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+t.repeat(Math.max(0,n-e.length))}function cl(e,n){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,n-e.length))+e}function Ur(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const t=[];let a=0;for(;a<e.length;)t.push(e.substr(a,n)),a+=n;return t}function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const a={};for(const l in e)a[l]=e[l];for(const l in n){const i=e[l],o=n[l];if(il(i)&&il(o)){a[l]=Le(i,o,t);continue}if(t&&Array.isArray(i)&&Array.isArray(o)){a[l]=t(i,o);continue}a[l]=o}return a}function xi(e){return e.map(n=>n.type===oe?xi(n.children):n).flat()}function xt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(xt.cache.has(e))return xt.cache.get(e);const n=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return xt.cache.set(e,n),n}xt.cache=new Map;function Kt(e,n){if(!n||typeof n!="object")return[];if(Array.isArray(n))return n.map(t=>Kt(e,t)).flat(1);if(n.suspense)return Kt(e,n.ssContent);if(Array.isArray(n.children))return n.children.map(t=>Kt(e,t)).flat(1);if(n.component){if(Object.getOwnPropertySymbols(n.component.provides).includes(e))return[n.component];if(n.component.subTree)return Kt(e,n.component.subTree).flat(1)}return[]}function _a(e){const n=ot({}),t=b(e);return Re(()=>{for(const a in t.value)n[a]=t.value[a]},{flush:"sync"}),Dn(n)}function wn(e,n){return e.includes(n)}function wi(e){return e[2].toLowerCase()+e.slice(3)}const Pe=()=>[Function,Array];function dl(e,n){return n="on"+ka(n),!!(e[n]||e[`${n}Once`]||e[`${n}Capture`]||e[`${n}OnceCapture`]||e[`${n}CaptureOnce`])}function Kr(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(Array.isArray(e))for(const l of e)l(...t);else typeof e=="function"&&e(...t)}function Zt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const t=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(a=>`${a}${n?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function ki(e,n,t){let a,l=e.indexOf(document.activeElement);const i=n==="next"?1:-1;do l+=i,a=e[l];while((!a||a.offsetParent==null||!((t==null?void 0:t(a))??!0))&&l<e.length&&l>=0);return a}function Yt(e,n){var a,l,i,o;const t=Zt(e);if(!n)(e===document.activeElement||!e.contains(document.activeElement))&&((a=t[0])==null||a.focus());else if(n==="first")(l=t[0])==null||l.focus();else if(n==="last")(i=t.at(-1))==null||i.focus();else if(typeof n=="number")(o=t[n])==null||o.focus();else{const r=ki(t,n);r?r.focus():Yt(e,n==="next"?"first":"last")}}function vn(e){return e==null||typeof e=="string"&&e.trim()===""}function Yr(){}function kn(e,n){if(!(ue&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${n})`)))return null;try{return!!e&&e.matches(n)}catch{return null}}function Ea(e){return e.some(n=>pr(n)?n.type===Ir?!1:n.type!==oe||Ea(n.children):!0)?e:null}function Zr(e,n){if(!ue||e===0)return n(),()=>{};const t=window.setTimeout(n,e);return()=>window.clearTimeout(t)}function qr(e,n){const t=e.clientX,a=e.clientY,l=n.getBoundingClientRect(),i=l.left,o=l.top,r=l.right,s=l.bottom;return t>=i&&t<=r&&a>=o&&a<=s}function ua(){const e=K(),n=t=>{e.value=t};return Object.defineProperty(n,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}),Object.defineProperty(n,"el",{enumerable:!0,get:()=>bi(e.value)}),n}function ca(e){const n=e.key.length===1,t=!e.ctrlKey&&!e.metaKey&&!e.altKey;return n&&t}const Vi=["top","bottom"],Xr=["start","end","left","right"];function da(e,n){let[t,a]=e.split(" ");return a||(a=wn(Vi,t)?"start":wn(Xr,t)?"top":"center"),{side:fl(t,n),align:fl(a,n)}}function fl(e,n){return e==="start"?n?"right":"left":e==="end"?n?"left":"right":e}function Xn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Qn(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function vl(e){return{side:e.align,align:e.side}}function ml(e){return wn(Vi,e.side)?"y":"x"}class wt{constructor(n){let{x:t,y:a,width:l,height:i}=n;this.x=t,this.y=a,this.width=l,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function gl(e,n){return{x:{before:Math.max(0,n.left-e.left),after:Math.max(0,e.right-n.right)},y:{before:Math.max(0,n.top-e.top),after:Math.max(0,e.bottom-n.bottom)}}}function Pi(e){return Array.isArray(e)?new wt({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Ba(e){const n=e.getBoundingClientRect(),t=getComputedStyle(e),a=t.transform;if(a){let l,i,o,r,s;if(a.startsWith("matrix3d("))l=a.slice(9,-1).split(/, /),i=+l[0],o=+l[5],r=+l[12],s=+l[13];else if(a.startsWith("matrix("))l=a.slice(7,-1).split(/, /),i=+l[0],o=+l[3],r=+l[4],s=+l[5];else return new wt(n);const c=t.transformOrigin,d=n.x-r-(1-i)*parseFloat(c),v=n.y-s-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),f=i?n.width/i:e.offsetWidth+1,m=o?n.height/o:e.offsetHeight+1;return new wt({x:d,y:v,width:f,height:m})}else return new wt(n)}function Ct(e,n,t){if(typeof e.animate>"u")return{finished:Promise.resolve()};let a;try{a=e.animate(n,t)}catch{return{finished:Promise.resolve()}}return typeof a.finished>"u"&&(a.finished=new Promise(l=>{a.onfinish=()=>{l(a)}})),a}const bn=new WeakMap;function Qr(e,n){Object.keys(n).forEach(t=>{if(Mn(t)){const a=wi(t),l=bn.get(e);if(n[t]==null)l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))});else if(!l||![...l].some(i=>i[0]===a&&i[1]===n[t])){e.addEventListener(a,n[t]);const i=l||new Set;i.add([a,n[t]]),bn.has(e)||bn.set(e,i)}}else n[t]==null?e.removeAttribute(t):e.setAttribute(t,n[t])})}function Jr(e,n){Object.keys(n).forEach(t=>{if(Mn(t)){const a=wi(t),l=bn.get(e);l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))})}else e.removeAttribute(t)})}const At=2.4,hl=.2126729,yl=.7151522,bl=.072175,es=.55,ts=.58,ns=.57,as=.62,mn=.03,Sl=1.45,ls=5e-4,is=1.25,os=1.25,Cl=.078,xl=12.82051282051282,gn=.06,wl=.001;function kl(e,n){const t=(e.r/255)**At,a=(e.g/255)**At,l=(e.b/255)**At,i=(n.r/255)**At,o=(n.g/255)**At,r=(n.b/255)**At;let s=t*hl+a*yl+l*bl,c=i*hl+o*yl+r*bl;if(s<=mn&&(s+=(mn-s)**Sl),c<=mn&&(c+=(mn-c)**Sl),Math.abs(c-s)<ls)return 0;let d;if(c>s){const v=(c**es-s**ts)*is;d=v<wl?0:v<Cl?v-v*xl*gn:v-gn}else{const v=(c**as-s**ns)*os;d=v>-wl?0:v>-Cl?v-v*xl*gn:v+gn}return d*100}function rs(e,n){n=Array.isArray(n)?n.slice(0,-1).map(t=>`'${t}'`).join(", ")+` or '${n.at(-1)}'`:`'${n}'`}const Vn=.20689655172413793,ss=e=>e>Vn**3?Math.cbrt(e):e/(3*Vn**2)+4/29,us=e=>e>Vn?e**3:3*Vn**2*(e-4/29);function pi(e){const n=ss,t=n(e[1]);return[116*t-16,500*(n(e[0]/.95047)-t),200*(t-n(e[2]/1.08883))]}function Ii(e){const n=us,t=(e[0]+16)/116;return[n(t+e[1]/500)*.95047,n(t),n(t-e[2]/200)*1.08883]}const cs=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],ds=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,fs=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],vs=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Li(e){const n=Array(3),t=ds,a=cs;for(let l=0;l<3;++l)n[l]=Math.round(Ee(t(a[l][0]*e[0]+a[l][1]*e[1]+a[l][2]*e[2]))*255);return{r:n[0],g:n[1],b:n[2]}}function Da(e){let{r:n,g:t,b:a}=e;const l=[0,0,0],i=vs,o=fs;n=i(n/255),t=i(t/255),a=i(a/255);for(let r=0;r<3;++r)l[r]=o[r][0]*n+o[r][1]*t+o[r][2]*a;return l}function fa(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function ms(e){return fa(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Vl=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,gs={rgb:(e,n,t,a)=>({r:e,g:n,b:t,a}),rgba:(e,n,t,a)=>({r:e,g:n,b:t,a}),hsl:(e,n,t,a)=>Pl({h:e,s:n,l:t,a}),hsla:(e,n,t,a)=>Pl({h:e,s:n,l:t,a}),hsv:(e,n,t,a)=>qt({h:e,s:n,v:t,a}),hsva:(e,n,t,a)=>qt({h:e,s:n,v:t,a})};function et(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Vl.test(e)){const{groups:n}=e.match(Vl),{fn:t,values:a}=n,l=a.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(t)?parseFloat(i)/100:parseFloat(i));return gs[t](...l)}else if(typeof e=="string"){let n=e.startsWith("#")?e.slice(1):e;return[3,4].includes(n.length)?n=n.split("").map(t=>t+t).join(""):[6,8].includes(n.length),ys(n)}else if(typeof e=="object"){if(qn(e,["r","g","b"]))return e;if(qn(e,["h","s","l"]))return qt(Ai(e));if(qn(e,["h","s","v"]))return qt(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
|
1
|
+
import{F as ot,c as b,E as Re,t as Dn,X as ka,Q as oe,D as K,u as Ae,V as pr,Y as Ir,B as Lr,a as de,O as Se,r as W,G as Ar,N as $t,Z as vi,P as u,i as Bt,_ as Va,$ as kt,m as H,A as O,w as Y,n as Ce,S as mi,L as Ye,e as ke,a0 as rt,v as tt,q as Pa,y as pa,o as De,I as we,C as Rt,a1 as Tr,T as _r,M as Er,J as Br,W as Dr,a2 as gi,a3 as Mr,a4 as Fr,a5 as Or,a6 as hi,a7 as xn,a8 as $r,p as ll,a9 as Rr}from"./@vue.PV_2gLoq.0.0.40.js";function D(e,n){return t=>Object.keys(e).reduce((a,l)=>{const o=typeof e[l]=="object"&&e[l]!=null&&!Array.isArray(e[l])?e[l]:{type:e[l]};return t&&l in t?a[l]={...o,default:t[l]}:a[l]=o,n&&!a[l].source&&(a[l].source=n),a},{})}const Q=D({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ue=typeof window<"u",Ia=ue&&"IntersectionObserver"in window,Nr=ue&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function yi(e,n,t){const a=n.length-1;if(a<0)return e===void 0?t:e;for(let l=0;l<a;l++){if(e==null)return t;e=e[n[l]]}return e==null||e[n[a]]===void 0?t:e[n[a]]}function mt(e,n){if(e===n)return!0;if(e instanceof Date&&n instanceof Date&&e.getTime()!==n.getTime()||e!==Object(e)||n!==Object(n))return!1;const t=Object.keys(e);return t.length!==Object.keys(n).length?!1:t.every(a=>mt(e[a],n[a]))}function Vt(e,n,t){return e==null||!n||typeof n!="string"?t:e[n]!==void 0?e[n]:(n=n.replace(/\[(\w+)\]/g,".$1"),n=n.replace(/^\./,""),yi(e,n.split("."),t))}function _e(e,n,t){if(n===!0)return e===void 0?t:e;if(n==null||typeof n=="boolean")return t;if(e!==Object(e)){if(typeof n!="function")return t;const l=n(e,t);return typeof l>"u"?t:l}if(typeof n=="string")return Vt(e,n,t);if(Array.isArray(n))return yi(e,n,t);if(typeof n!="function")return t;const a=n(e,t);return typeof a>"u"?t:a}function _t(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(t,a)=>n+a)}function Z(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${n}`:void 0}function La(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function il(e){let n;return e!==null&&typeof e=="object"&&((n=Object.getPrototypeOf(e))===Object.prototype||n===null)}function bi(e){if(e&&"$el"in e){const n=e.$el;return(n==null?void 0:n.nodeType)===Node.TEXT_NODE?n.nextElementSibling:n}return e}const ol=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),rl=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Si(e){return Object.keys(e)}function qn(e,n){return n.every(t=>e.hasOwnProperty(t))}function Aa(e,n){const t={},a=new Set(Object.keys(e));for(const l of n)a.has(l)&&(t[l]=e[l]);return t}function sa(e,n,t){const a=Object.create(null),l=Object.create(null);for(const i in e)n.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(t!=null&&t.some(o=>o===i))?a[i]=e[i]:l[i]=e[i];return[a,l]}function He(e,n){const t={...e};return n.forEach(a=>delete t[a]),t}function Hr(e,n){const t={};return n.forEach(a=>t[a]=e[a]),t}const Ci=/^on[^a-z]/,Mn=e=>Ci.test(e),zr=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],Wr=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function jr(e){return e.isComposing&&Wr.includes(e.key)}function Ta(e){const[n,t]=sa(e,[Ci]),a=He(n,zr),[l,i]=sa(t,["class","style","id",/^data-/]);return Object.assign(l,n),Object.assign(i,a),[l,i]}function Ve(e){return e==null?[]:Array.isArray(e)?e:[e]}function Gr(e,n){let t=0;const a=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>e(...i),Ae(n))};return a.clear=()=>{clearTimeout(t)},a.immediate=e,a}function Ee(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(n,Math.min(t,e))}function sl(e){const n=e.toString().trim();return n.includes(".")?n.length-n.indexOf(".")-1:0}function ul(e,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+t.repeat(Math.max(0,n-e.length))}function cl(e,n){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,n-e.length))+e}function Ur(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const t=[];let a=0;for(;a<e.length;)t.push(e.substr(a,n)),a+=n;return t}function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const a={};for(const l in e)a[l]=e[l];for(const l in n){const i=e[l],o=n[l];if(il(i)&&il(o)){a[l]=Le(i,o,t);continue}if(t&&Array.isArray(i)&&Array.isArray(o)){a[l]=t(i,o);continue}a[l]=o}return a}function xi(e){return e.map(n=>n.type===oe?xi(n.children):n).flat()}function xt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(xt.cache.has(e))return xt.cache.get(e);const n=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return xt.cache.set(e,n),n}xt.cache=new Map;function Kt(e,n){if(!n||typeof n!="object")return[];if(Array.isArray(n))return n.map(t=>Kt(e,t)).flat(1);if(n.suspense)return Kt(e,n.ssContent);if(Array.isArray(n.children))return n.children.map(t=>Kt(e,t)).flat(1);if(n.component){if(Object.getOwnPropertySymbols(n.component.provides).includes(e))return[n.component];if(n.component.subTree)return Kt(e,n.component.subTree).flat(1)}return[]}function _a(e){const n=ot({}),t=b(e);return Re(()=>{for(const a in t.value)n[a]=t.value[a]},{flush:"sync"}),Dn(n)}function wn(e,n){return e.includes(n)}function wi(e){return e[2].toLowerCase()+e.slice(3)}const Pe=()=>[Function,Array];function dl(e,n){return n="on"+ka(n),!!(e[n]||e[`${n}Once`]||e[`${n}Capture`]||e[`${n}OnceCapture`]||e[`${n}CaptureOnce`])}function Kr(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(Array.isArray(e))for(const l of e)l(...t);else typeof e=="function"&&e(...t)}function Zt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const t=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(a=>`${a}${n?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function ki(e,n,t){let a,l=e.indexOf(document.activeElement);const i=n==="next"?1:-1;do l+=i,a=e[l];while((!a||a.offsetParent==null||!((t==null?void 0:t(a))??!0))&&l<e.length&&l>=0);return a}function Yt(e,n){var a,l,i,o;const t=Zt(e);if(!n)(e===document.activeElement||!e.contains(document.activeElement))&&((a=t[0])==null||a.focus());else if(n==="first")(l=t[0])==null||l.focus();else if(n==="last")(i=t.at(-1))==null||i.focus();else if(typeof n=="number")(o=t[n])==null||o.focus();else{const r=ki(t,n);r?r.focus():Yt(e,n==="next"?"first":"last")}}function vn(e){return e==null||typeof e=="string"&&e.trim()===""}function Yr(){}function kn(e,n){if(!(ue&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${n})`)))return null;try{return!!e&&e.matches(n)}catch{return null}}function Ea(e){return e.some(n=>pr(n)?n.type===Ir?!1:n.type!==oe||Ea(n.children):!0)?e:null}function Zr(e,n){if(!ue||e===0)return n(),()=>{};const t=window.setTimeout(n,e);return()=>window.clearTimeout(t)}function qr(e,n){const t=e.clientX,a=e.clientY,l=n.getBoundingClientRect(),i=l.left,o=l.top,r=l.right,s=l.bottom;return t>=i&&t<=r&&a>=o&&a<=s}function ua(){const e=K(),n=t=>{e.value=t};return Object.defineProperty(n,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}),Object.defineProperty(n,"el",{enumerable:!0,get:()=>bi(e.value)}),n}function ca(e){const n=e.key.length===1,t=!e.ctrlKey&&!e.metaKey&&!e.altKey;return n&&t}const Vi=["top","bottom"],Xr=["start","end","left","right"];function da(e,n){let[t,a]=e.split(" ");return a||(a=wn(Vi,t)?"start":wn(Xr,t)?"top":"center"),{side:fl(t,n),align:fl(a,n)}}function fl(e,n){return e==="start"?n?"right":"left":e==="end"?n?"left":"right":e}function Xn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Qn(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function vl(e){return{side:e.align,align:e.side}}function ml(e){return wn(Vi,e.side)?"y":"x"}class wt{constructor(n){let{x:t,y:a,width:l,height:i}=n;this.x=t,this.y=a,this.width=l,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function gl(e,n){return{x:{before:Math.max(0,n.left-e.left),after:Math.max(0,e.right-n.right)},y:{before:Math.max(0,n.top-e.top),after:Math.max(0,e.bottom-n.bottom)}}}function Pi(e){return Array.isArray(e)?new wt({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Ba(e){const n=e.getBoundingClientRect(),t=getComputedStyle(e),a=t.transform;if(a){let l,i,o,r,s;if(a.startsWith("matrix3d("))l=a.slice(9,-1).split(/, /),i=+l[0],o=+l[5],r=+l[12],s=+l[13];else if(a.startsWith("matrix("))l=a.slice(7,-1).split(/, /),i=+l[0],o=+l[3],r=+l[4],s=+l[5];else return new wt(n);const c=t.transformOrigin,d=n.x-r-(1-i)*parseFloat(c),v=n.y-s-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),f=i?n.width/i:e.offsetWidth+1,m=o?n.height/o:e.offsetHeight+1;return new wt({x:d,y:v,width:f,height:m})}else return new wt(n)}function Ct(e,n,t){if(typeof e.animate>"u")return{finished:Promise.resolve()};let a;try{a=e.animate(n,t)}catch{return{finished:Promise.resolve()}}return typeof a.finished>"u"&&(a.finished=new Promise(l=>{a.onfinish=()=>{l(a)}})),a}const bn=new WeakMap;function Qr(e,n){Object.keys(n).forEach(t=>{if(Mn(t)){const a=wi(t),l=bn.get(e);if(n[t]==null)l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))});else if(!l||![...l].some(i=>i[0]===a&&i[1]===n[t])){e.addEventListener(a,n[t]);const i=l||new Set;i.add([a,n[t]]),bn.has(e)||bn.set(e,i)}}else n[t]==null?e.removeAttribute(t):e.setAttribute(t,n[t])})}function Jr(e,n){Object.keys(n).forEach(t=>{if(Mn(t)){const a=wi(t),l=bn.get(e);l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))})}else e.removeAttribute(t)})}const At=2.4,hl=.2126729,yl=.7151522,bl=.072175,es=.55,ts=.58,ns=.57,as=.62,mn=.03,Sl=1.45,ls=5e-4,is=1.25,os=1.25,Cl=.078,xl=12.82051282051282,gn=.06,wl=.001;function kl(e,n){const t=(e.r/255)**At,a=(e.g/255)**At,l=(e.b/255)**At,i=(n.r/255)**At,o=(n.g/255)**At,r=(n.b/255)**At;let s=t*hl+a*yl+l*bl,c=i*hl+o*yl+r*bl;if(s<=mn&&(s+=(mn-s)**Sl),c<=mn&&(c+=(mn-c)**Sl),Math.abs(c-s)<ls)return 0;let d;if(c>s){const v=(c**es-s**ts)*is;d=v<wl?0:v<Cl?v-v*xl*gn:v-gn}else{const v=(c**as-s**ns)*os;d=v>-wl?0:v>-Cl?v-v*xl*gn:v+gn}return d*100}function rs(e,n){n=Array.isArray(n)?n.slice(0,-1).map(t=>`'${t}'`).join(", ")+` or '${n.at(-1)}'`:`'${n}'`}const Vn=.20689655172413793,ss=e=>e>Vn**3?Math.cbrt(e):e/(3*Vn**2)+4/29,us=e=>e>Vn?e**3:3*Vn**2*(e-4/29);function pi(e){const n=ss,t=n(e[1]);return[116*t-16,500*(n(e[0]/.95047)-t),200*(t-n(e[2]/1.08883))]}function Ii(e){const n=us,t=(e[0]+16)/116;return[n(t+e[1]/500)*.95047,n(t),n(t-e[2]/200)*1.08883]}const cs=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],ds=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,fs=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],vs=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Li(e){const n=Array(3),t=ds,a=cs;for(let l=0;l<3;++l)n[l]=Math.round(Ee(t(a[l][0]*e[0]+a[l][1]*e[1]+a[l][2]*e[2]))*255);return{r:n[0],g:n[1],b:n[2]}}function Da(e){let{r:n,g:t,b:a}=e;const l=[0,0,0],i=vs,o=fs;n=i(n/255),t=i(t/255),a=i(a/255);for(let r=0;r<3;++r)l[r]=o[r][0]*n+o[r][1]*t+o[r][2]*a;return l}function fa(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function ms(e){return fa(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Vl=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,gs={rgb:(e,n,t,a)=>({r:e,g:n,b:t,a}),rgba:(e,n,t,a)=>({r:e,g:n,b:t,a}),hsl:(e,n,t,a)=>Pl({h:e,s:n,l:t,a}),hsla:(e,n,t,a)=>Pl({h:e,s:n,l:t,a}),hsv:(e,n,t,a)=>qt({h:e,s:n,v:t,a}),hsva:(e,n,t,a)=>qt({h:e,s:n,v:t,a})};function et(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Vl.test(e)){const{groups:n}=e.match(Vl),{fn:t,values:a}=n,l=a.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(t)?parseFloat(i)/100:parseFloat(i));return gs[t](...l)}else if(typeof e=="string"){let n=e.startsWith("#")?e.slice(1):e;return[3,4].includes(n.length)?n=n.split("").map(t=>t+t).join(""):[6,8].includes(n.length),ys(n)}else if(typeof e=="object"){if(qn(e,["r","g","b"]))return e;if(qn(e,["h","s","l"]))return qt(Ai(e));if(qn(e,["h","s","v"]))return qt(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
|
2
2
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function qt(e){const{h:n,s:t,v:a,a:l}=e,i=r=>{const s=(r+n/60)%6;return a-a*t*Math.max(Math.min(s,4-s,1),0)},o=[i(5),i(3),i(1)].map(r=>Math.round(r*255));return{r:o[0],g:o[1],b:o[2],a:l}}function Pl(e){return qt(Ai(e))}function Ai(e){const{h:n,s:t,l:a,a:l}=e,i=a+t*Math.min(a,1-a),o=i===0?0:2-2*a/i;return{h:n,s:o,v:i,a:l}}function hn(e){const n=Math.round(e).toString(16);return("00".substr(0,2-n.length)+n).toUpperCase()}function hs(e){let{r:n,g:t,b:a,a:l}=e;return`#${[hn(n),hn(t),hn(a),l!==void 0?hn(Math.round(l*255)):""].join("")}`}function ys(e){e=bs(e);let[n,t,a,l]=Ur(e,2).map(i=>parseInt(i,16));return l=l===void 0?l:l/255,{r:n,g:t,b:a,a:l}}function bs(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(n=>n+n).join("")),e.length!==6&&(e=ul(ul(e,6),8,"F")),e}function Ss(e,n){const t=pi(Da(e));return t[0]=t[0]+n*10,Li(Ii(t))}function Cs(e,n){const t=pi(Da(e));return t[0]=t[0]-n*10,Li(Ii(t))}function xs(e){const n=et(e);return Da(n)[1]}function Ti(e){const n=Math.abs(kl(et(0),et(e)));return Math.abs(kl(et(16777215),et(e)))>Math.min(n,50)?"#fff":"#000"}function be(e,n){const t=Lr();if(!t)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return t}function nt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const n=be(e).type;return xt((n==null?void 0:n.aliasName)||(n==null?void 0:n.name))}let _i=0,Sn=new WeakMap;function ze(){const e=be("getUid");if(Sn.has(e))return Sn.get(e);{const n=_i++;return Sn.set(e,n),n}}ze.reset=()=>{_i=0,Sn=new WeakMap};function ws(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:be("injectSelf");const{provides:t}=n;if(t&&e in t)return t[e]}const Dt=Symbol.for("vuetify:defaults");function ks(e){return W(e)}function Ma(){const e=de(Dt);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function qe(e,n){const t=Ma(),a=W(e),l=b(()=>{if(Ae(n==null?void 0:n.disabled))return t.value;const o=Ae(n==null?void 0:n.scoped),r=Ae(n==null?void 0:n.reset),s=Ae(n==null?void 0:n.root);if(a.value==null&&!(o||r||s))return t.value;let c=Le(a.value,{prev:t.value});if(o)return c;if(r||s){const d=Number(r||1/0);for(let v=0;v<=d&&!(!c||!("prev"in c));v++)c=c.prev;return c&&typeof s=="string"&&s in c&&(c=Le(Le(c,{prev:c}),c[s])),c}return c.prev?Le(c.prev,c):c});return Se(Dt,l),l}function Vs(e,n){var t,a;return typeof((t=e.props)==null?void 0:t[n])<"u"||typeof((a=e.props)==null?void 0:a[xt(n)])<"u"}function Ps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ma();const a=be("useDefaults");if(n=n??a.type.name??a.type.__name,!n)throw new Error("[Vuetify] Could not determine component name");const l=b(()=>{var s;return(s=t.value)==null?void 0:s[e._as??n]}),i=new Proxy(e,{get(s,c){var v,f,m,g,h,y,S;const d=Reflect.get(s,c);return c==="class"||c==="style"?[(v=l.value)==null?void 0:v[c],d].filter(C=>C!=null):typeof c=="string"&&!Vs(a.vnode,c)?((f=l.value)==null?void 0:f[c])!==void 0?(m=l.value)==null?void 0:m[c]:((h=(g=t.value)==null?void 0:g.global)==null?void 0:h[c])!==void 0?(S=(y=t.value)==null?void 0:y.global)==null?void 0:S[c]:d:d}}),o=K();Re(()=>{if(l.value){const s=Object.entries(l.value).filter(c=>{let[d]=c;return d.startsWith(d[0].toUpperCase())});o.value=s.length?Object.fromEntries(s):void 0}else o.value=void 0});function r(){const s=ws(Dt,a);Se(Dt,b(()=>o.value?Le((s==null?void 0:s.value)??{},o.value):s==null?void 0:s.value))}return{props:i,provideSubDefaults:r}}function Nt(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=D(e.props??{},e.name)();const n=Object.keys(e.props).filter(t=>t!=="class"&&t!=="style");e.filterProps=function(a){return Aa(a,n)},e.props._as=String,e.setup=function(a,l){const i=Ma();if(!i.value)return e._setup(a,l);const{props:o,provideSubDefaults:r}=Ps(a,a._as??e.name,i),s=e._setup(o,l);return r(),s}}return e}function z(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n=>(e?Nt:Ar)(n)}function ps(e,n){return n.props=e,n}function Fa(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",t=arguments.length>2?arguments[2]:void 0;return z()({name:t??ka(vi(e.replace(/__/g,"-"))),props:{tag:{type:String,default:n},...Q()},setup(a,l){let{slots:i}=l;return()=>{var o;return $t(a.tag,{class:[e,a.class],style:a.style},(o=i.default)==null?void 0:o.call(i))}}})}function Ei(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const n=e.getRootNode();return n!==document&&n.getRootNode({composed:!0})!==document?null:n}const Xt="cubic-bezier(0.4, 0, 0.2, 1)",Is="cubic-bezier(0.0, 0, 0.2, 1)",Ls="cubic-bezier(0.4, 0, 1, 1)";function pl(e,n,t){return Object.keys(e).filter(a=>Mn(a)&&a.endsWith(n)).reduce((a,l)=>(a[l.slice(0,-n.length)]=i=>e[l](i,t(i)),a),{})}function Bi(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(n?As(e):Oa(e))return e;e=e.parentElement}return document.scrollingElement}function Pn(e,n){const t=[];if(n&&e&&!n.contains(e))return t;for(;e&&(Oa(e)&&t.push(e),e!==n);)e=e.parentElement;return t}function Oa(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return n.overflowY==="scroll"||n.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function As(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return["scroll","auto"].includes(n.overflowY)}function Ts(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function j(e){const n=be("useRender");n.render=e}const Xe=D({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Qe(e){return{dimensionStyles:b(()=>{const t={},a=Z(e.height),l=Z(e.maxHeight),i=Z(e.maxWidth),o=Z(e.minHeight),r=Z(e.minWidth),s=Z(e.width);return a!=null&&(t.height=a),l!=null&&(t.maxHeight=l),i!=null&&(t.maxWidth=i),o!=null&&(t.minHeight=o),r!=null&&(t.minWidth=r),s!=null&&(t.width=s),t})}}function _s(e){return{aspectStyles:b(()=>{const n=Number(e.aspectRatio);return n?{paddingBottom:String(1/n*100)+"%"}:void 0})}}const Di=D({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Q(),...Xe()},"VResponsive"),Il=z()({name:"VResponsive",props:Di(),setup(e,n){let{slots:t}=n;const{aspectStyles:a}=_s(e),{dimensionStyles:l}=Qe(e);return j(()=>{var i;return u("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[l.value,e.style]},[u("div",{class:"v-responsive__sizer",style:a.value},null),(i=t.additional)==null?void 0:i.call(t),t.default&&u("div",{class:["v-responsive__content",e.contentClass]},[t.default()])])}),{}}});function $a(e){return _a(()=>{const n=[],t={};if(e.value.background)if(fa(e.value.background)){if(t.backgroundColor=e.value.background,!e.value.text&&ms(e.value.background)){const a=et(e.value.background);if(a.a==null||a.a===1){const l=Ti(a);t.color=l,t.caretColor=l}}}else n.push(`bg-${e.value.background}`);return e.value.text&&(fa(e.value.text)?(t.color=e.value.text,t.caretColor=e.value.text):n.push(`text-${e.value.text}`)),{colorClasses:n,colorStyles:t}})}function Ne(e,n){const t=b(()=>({text:Bt(e)?e.value:n?e[n]:null})),{colorClasses:a,colorStyles:l}=$a(t);return{textColorClasses:a,textColorStyles:l}}function Be(e,n){const t=b(()=>({background:Bt(e)?e.value:n?e[n]:null})),{colorClasses:a,colorStyles:l}=$a(t);return{backgroundColorClasses:a,backgroundColorStyles:l}}const Me=D({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function We(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt();return{roundedClasses:b(()=>{const a=Bt(e)?e.value:e.rounded,l=Bt(e)?e.value:e.tile,i=[];if(a===!0||a==="")i.push(`${n}--rounded`);else if(typeof a=="string"||a===0)for(const o of String(a).split(" "))i.push(`rounded-${o}`);else(l||a===!1)&&i.push("rounded-0");return i})}}const gt=D({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Ke=(e,n)=>{let{slots:t}=n;const{transition:a,disabled:l,group:i,...o}=e,{component:r=i?Va:kt,...s}=typeof a=="object"?a:{};return $t(r,H(typeof a=="string"?{name:l?"":a}:s,typeof a=="string"?{}:Object.fromEntries(Object.entries({disabled:l,group:i}).filter(c=>{let[d,v]=c;return v!==void 0})),o),t)};function Es(e,n){if(!Ia)return;const t=n.modifiers||{},a=n.value,{handler:l,options:i}=typeof a=="object"?a:{handler:a,options:{}},o=new IntersectionObserver(function(){var v;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;const c=(v=e._observe)==null?void 0:v[n.instance.$.uid];if(!c)return;const d=r.some(f=>f.isIntersecting);l&&(!t.quiet||c.init)&&(!t.once||d||c.init)&&l(d,r,s),d&&t.once?Mi(e,n):c.init=!0},i);e._observe=Object(e._observe),e._observe[n.instance.$.uid]={init:!1,observer:o},o.observe(e)}function Mi(e,n){var a;const t=(a=e._observe)==null?void 0:a[n.instance.$.uid];t&&(t.observer.unobserve(e),delete e._observe[n.instance.$.uid])}const Fi={mounted:Es,unmounted:Mi},Bs=D({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...Di(),...Q(),...Me(),...gt()},"VImg"),Oi=z()({name:"VImg",directives:{intersect:Fi},props:Bs(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,n){let{emit:t,slots:a}=n;const{backgroundColorClasses:l,backgroundColorStyles:i}=Be(O(e,"color")),{roundedClasses:o}=We(e),r=be("VImg"),s=K(""),c=W(),d=K(e.eager?"loading":"idle"),v=K(),f=K(),m=b(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),g=b(()=>m.value.aspect||v.value/f.value||0);Y(()=>e.src,()=>{h(d.value!=="idle")}),Y(g,(A,E)=>{!A&&E&&c.value&&P(c.value)}),mi(()=>h());function h(A){if(!(e.eager&&A)&&!(Ia&&!A&&!e.eager)){if(d.value="loading",m.value.lazySrc){const E=new Image;E.src=m.value.lazySrc,P(E,null)}m.value.src&&Ce(()=>{var E;t("loadstart",((E=c.value)==null?void 0:E.currentSrc)||m.value.src),setTimeout(()=>{var M;if(!r.isUnmounted)if((M=c.value)!=null&&M.complete){if(c.value.naturalWidth||S(),d.value==="error")return;g.value||P(c.value,null),d.value==="loading"&&y()}else g.value||P(c.value),C()})})}}function y(){var A;r.isUnmounted||(C(),P(c.value),d.value="loaded",t("load",((A=c.value)==null?void 0:A.currentSrc)||m.value.src))}function S(){var A;r.isUnmounted||(d.value="error",t("error",((A=c.value)==null?void 0:A.currentSrc)||m.value.src))}function C(){const A=c.value;A&&(s.value=A.currentSrc||A.src)}let L=-1;Ye(()=>{clearTimeout(L)});function P(A){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const M=()=>{if(clearTimeout(L),r.isUnmounted)return;const{naturalHeight:R,naturalWidth:U}=A;R||U?(v.value=U,f.value=R):!A.complete&&d.value==="loading"&&E!=null?L=window.setTimeout(M,E):(A.currentSrc.endsWith(".svg")||A.currentSrc.startsWith("data:image/svg+xml"))&&(v.value=1,f.value=1)};M()}const w=b(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),V=()=>{var M;if(!m.value.src||d.value==="idle")return null;const A=u("img",{class:["v-img__img",w.value],style:{objectPosition:e.position},src:m.value.src,srcset:m.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:c,onLoad:y,onError:S},null),E=(M=a.sources)==null?void 0:M.call(a);return u(Ke,{transition:e.transition,appear:!0},{default:()=>[ke(E?u("picture",{class:"v-img__picture"},[E,A]):A,[[tt,d.value==="loaded"]])]})},_=()=>u(Ke,{transition:e.transition},{default:()=>[m.value.lazySrc&&d.value!=="loaded"&&u("img",{class:["v-img__img","v-img__img--preload",w.value],style:{objectPosition:e.position},src:m.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),x=()=>a.placeholder?u(Ke,{transition:e.transition,appear:!0},{default:()=>[(d.value==="loading"||d.value==="error"&&!a.error)&&u("div",{class:"v-img__placeholder"},[a.placeholder()])]}):null,k=()=>a.error?u(Ke,{transition:e.transition,appear:!0},{default:()=>[d.value==="error"&&u("div",{class:"v-img__error"},[a.error()])]}):null,p=()=>e.gradient?u("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,I=K(!1);{const A=Y(g,E=>{E&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{I.value=!0})}),A())})}return j(()=>{const A=Il.filterProps(e);return ke(u(Il,H({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!I.value},l.value,o.value,e.class],style:[{width:Z(e.width==="auto"?v.value:e.width)},i.value,e.style]},A,{aspectRatio:g.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>u(oe,null,[u(V,null,null),u(_,null,null),u(p,null,null),u(x,null,null),u(k,null,null)]),default:a.default}),[[rt("intersect"),{handler:h,options:e.options},null,{once:!0}]])}),{currentSrc:s,image:c,state:d,naturalWidth:v,naturalHeight:f}}});function $i(e,n){const t=W(),a=K(!1);if(Ia){const l=new IntersectionObserver(i=>{a.value=!!i.find(o=>o.isIntersecting)},n);Ye(()=>{l.disconnect()}),Y(t,(i,o)=>{o&&(l.unobserve(o),a.value=!1),i&&l.observe(i)},{flush:"post"})}return{intersectionRef:t,isIntersecting:a}}function Pt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const t=ua(),a=W();if(ue){const l=new ResizeObserver(i=>{e==null||e(i,l),i.length&&(n==="content"?a.value=i[0].contentRect:a.value=i[0].target.getBoundingClientRect())});Ye(()=>{l.disconnect()}),Y(()=>t.el,(i,o)=>{o&&(l.unobserve(o),a.value=void 0),i&&l.observe(i)},{flush:"post"})}return{resizeRef:t,contentRect:Pa(a)}}const Ds=["x-small","small","default","large","x-large"],Ht=D({size:{type:[String,Number],default:"default"}},"size");function ln(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt();return _a(()=>{let t,a;return wn(Ds,e.size)?t=`${n}--size-${e.size}`:e.size&&(a={width:Z(e.size),height:Z(e.size)}),{sizeClasses:t,sizeStyles:a}})}const me=D({tag:{type:String,default:"div"}},"tag"),Qt=Symbol.for("vuetify:theme"),he=D({theme:String},"theme");function Ll(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function Ms(){var a,l;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ll();const n=Ll();if(!e)return{...n,isDisabled:!0};const t={};for(const[i,o]of Object.entries(e.themes??{})){const r=o.dark||i==="dark"?(a=n.themes)==null?void 0:a.dark:(l=n.themes)==null?void 0:l.light;t[i]=Le(r,o)}return Le(n,{...e,themes:t})}function Fs(e){const n=Ms(e),t=W(n.defaultTheme),a=W(n.themes),l=b(()=>{const d={};for(const[v,f]of Object.entries(a.value)){const m=d[v]={...f,colors:{...f.colors}};if(n.variations)for(const g of n.variations.colors){const h=m.colors[g];if(h)for(const y of["lighten","darken"]){const S=y==="lighten"?Ss:Cs;for(const C of _t(n.variations[y],1))m.colors[`${g}-${y}-${C}`]=hs(S(et(h),C))}}for(const g of Object.keys(m.colors)){if(/^on-[a-z]/.test(g)||m.colors[`on-${g}`])continue;const h=`on-${g}`,y=et(m.colors[g]);m.colors[h]=Ti(y)}}return d}),i=b(()=>l.value[t.value]),o=b(()=>{var g;const d=[];(g=i.value)!=null&&g.dark&&St(d,":root",["color-scheme: dark"]),St(d,":root",Al(i.value));for(const[h,y]of Object.entries(l.value))St(d,`.v-theme--${h}`,[`color-scheme: ${y.dark?"dark":"normal"}`,...Al(y)]);const v=[],f=[],m=new Set(Object.values(l.value).flatMap(h=>Object.keys(h.colors)));for(const h of m)/^on-[a-z]/.test(h)?St(f,`.${h}`,[`color: rgb(var(--v-theme-${h})) !important`]):(St(v,`.bg-${h}`,[`--v-theme-overlay-multiplier: var(--v-theme-${h}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${h})) !important`,`color: rgb(var(--v-theme-on-${h})) !important`]),St(f,`.text-${h}`,[`color: rgb(var(--v-theme-${h})) !important`]),St(f,`.border-${h}`,[`--v-border-color: var(--v-theme-${h})`]));return d.push(...v,...f),d.map((h,y)=>y===0?h:` ${h}`).join("")});function r(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:n.cspNonce||!1}]}}function s(d){if(n.isDisabled)return;const v=d._context.provides.usehead;if(v)if(v.push){const f=v.push(r);ue&&Y(o,()=>{f.patch(r)})}else ue?(v.addHeadObjs(b(r)),Re(()=>v.updateDOM())):v.addHeadObjs(r());else{let m=function(){if(typeof document<"u"&&!f){const g=document.createElement("style");g.type="text/css",g.id="vuetify-theme-stylesheet",n.cspNonce&&g.setAttribute("nonce",n.cspNonce),f=g,document.head.appendChild(f)}f&&(f.innerHTML=o.value)},f=ue?document.getElementById("vuetify-theme-stylesheet"):null;ue?Y(o,m,{immediate:!0}):m()}}const c=b(()=>n.isDisabled?void 0:`v-theme--${t.value}`);return{install:s,isDisabled:n.isDisabled,name:t,themes:a,current:i,computedThemes:l,themeClasses:c,styles:o,global:{name:t,current:i}}}function xe(e){be("provideTheme");const n=de(Qt,null);if(!n)throw new Error("Could not find Vuetify theme injection");const t=b(()=>e.theme??n.name.value),a=b(()=>n.themes.value[t.value]),l=b(()=>n.isDisabled?void 0:`v-theme--${t.value}`),i={...n,name:t,current:a,themeClasses:l};return Se(Qt,i),i}function Os(){be("useTheme");const e=de(Qt,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function St(e,n,t){e.push(`${n} {
|
|
3
3
|
`,...t.map(a=>` ${a};
|
|
4
4
|
`),`}
|
package/dist/server/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camera.ui/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"description": "camera.ui",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/camera.ui)",
|
|
6
6
|
"type": "module",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"publish:alpha": "tsx ../scripts/publish.ts -p ./ -m ./localdeps.txt --cameraui --npm-args --tag alpha"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@camera.ui/common": "^0.0.
|
|
23
|
+
"@camera.ui/common": "^0.0.35",
|
|
24
24
|
"@camera.ui/ffmpeg": "^0.0.5",
|
|
25
25
|
"@camera.ui/go2rtc": "^0.0.29",
|
|
26
26
|
"@camera.ui/nats": "^0.0.14",
|
|
27
|
-
"@camera.ui/plugineer": "^0.0.
|
|
27
|
+
"@camera.ui/plugineer": "^0.0.36",
|
|
28
28
|
"@camera.ui/types": "^0.0.82",
|
|
29
29
|
"@fastify/cors": "^10.0.1",
|
|
30
30
|
"@fastify/formbody": "^8.0.1",
|
|
31
|
-
"@fastify/helmet": "^
|
|
31
|
+
"@fastify/helmet": "^13.0.0",
|
|
32
32
|
"@fastify/multipart": "^9.0.1",
|
|
33
|
-
"@fastify/static": "^8.0.
|
|
33
|
+
"@fastify/static": "^8.0.3",
|
|
34
34
|
"@isaacs/ttlcache": "^1.4.1",
|
|
35
35
|
"@scrypted/node-pty": "1.0.18",
|
|
36
36
|
"adm-zip": "^0.5.16",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"get-port": "^7.1.0",
|
|
46
46
|
"js-yaml": "^4.1.0",
|
|
47
47
|
"jsonwebtoken": "^9.0.2",
|
|
48
|
-
"lmdb": "^3.
|
|
48
|
+
"lmdb": "^3.2.0",
|
|
49
49
|
"msgpackr": "^1.11.2",
|
|
50
50
|
"nats": "^2.28.2",
|
|
51
51
|
"node-forge": "^1.3.1",
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@stylistic/eslint-plugin": "^2.11.0",
|
|
72
|
-
"@types/adm-zip": "^0.5.
|
|
72
|
+
"@types/adm-zip": "^0.5.7",
|
|
73
73
|
"@types/express-useragent": "^1.0.5",
|
|
74
74
|
"@types/fs-extra": "^11.0.4",
|
|
75
75
|
"@types/js-yaml": "^4.0.9",
|
|
76
76
|
"@types/jsonwebtoken": "^9.0.7",
|
|
77
|
-
"@types/node": "^22.
|
|
77
|
+
"@types/node": "^22.10.1",
|
|
78
78
|
"@types/node-forge": "^1.3.11",
|
|
79
79
|
"@types/object-path": "^0.11.4",
|
|
80
80
|
"@types/safe-timers": "^1.1.2",
|
|
@@ -83,16 +83,16 @@
|
|
|
83
83
|
"@types/tar": "^6.1.13",
|
|
84
84
|
"@types/uuid": "^10.0.0",
|
|
85
85
|
"@types/ws": "^8.5.13",
|
|
86
|
-
"@typescript-eslint/parser": "^8.
|
|
86
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
87
87
|
"assemblyscript": "^0.27.31",
|
|
88
88
|
"cpy-cli": "^5.0.0",
|
|
89
89
|
"cross-env": "^7.0.3",
|
|
90
|
-
"eslint": "^9.
|
|
91
|
-
"globals": "^15.
|
|
92
|
-
"prettier": "^3.
|
|
90
|
+
"eslint": "^9.16.0",
|
|
91
|
+
"globals": "^15.13.0",
|
|
92
|
+
"prettier": "^3.4.1",
|
|
93
93
|
"rimraf": "^6.0.1",
|
|
94
|
-
"typescript": "^5.
|
|
95
|
-
"typescript-eslint": "^8.
|
|
94
|
+
"typescript": "^5.7.2",
|
|
95
|
+
"typescript-eslint": "^8.17.0",
|
|
96
96
|
"updates": "^16.4.0"
|
|
97
97
|
},
|
|
98
98
|
"bugs": {
|
|
@@ -203,9 +203,9 @@ export declare const downloadBackupSchema: zod.ZodObject<{
|
|
|
203
203
|
export declare const restoreBackupSchema: zod.ZodObject<{
|
|
204
204
|
upload: zod.ZodType<MultipartFile>;
|
|
205
205
|
}, "strip", zod.ZodTypeAny, {
|
|
206
|
-
upload: MultipartFile
|
|
206
|
+
upload: zod.ZodType<MultipartFile>;
|
|
207
207
|
}, {
|
|
208
|
-
upload: MultipartFile
|
|
208
|
+
upload: zod.ZodType<MultipartFile>;
|
|
209
209
|
}>;
|
|
210
210
|
export type DownloadBackupInput = zod.TypeOf<typeof downloadBackupSchema>;
|
|
211
211
|
export type RestoreBackupInput = zod.TypeOf<typeof restoreBackupSchema>;
|
|
@@ -33,36 +33,36 @@ export declare const detectObjectSchema: zod.ZodObject<{
|
|
|
33
33
|
metadata: zod.ZodType<ImageMetadata>;
|
|
34
34
|
config: zod.ZodType<Record<string, any>>;
|
|
35
35
|
}, "strip", zod.ZodTypeAny, {
|
|
36
|
-
config: Record<string, any
|
|
37
|
-
upload: MultipartFile
|
|
38
|
-
metadata: ImageMetadata
|
|
36
|
+
config: zod.ZodType<Record<string, any>>;
|
|
37
|
+
upload: zod.ZodType<MultipartFile>;
|
|
38
|
+
metadata: zod.ZodType<ImageMetadata>;
|
|
39
39
|
}, {
|
|
40
|
-
config: Record<string, any
|
|
41
|
-
upload: MultipartFile
|
|
42
|
-
metadata: ImageMetadata
|
|
40
|
+
config: zod.ZodType<Record<string, any>>;
|
|
41
|
+
upload: zod.ZodType<MultipartFile>;
|
|
42
|
+
metadata: zod.ZodType<ImageMetadata>;
|
|
43
43
|
}>;
|
|
44
44
|
export declare const detectAudioSchema: zod.ZodObject<{
|
|
45
45
|
upload: zod.ZodType<MultipartFile>;
|
|
46
46
|
metadata: zod.ZodType<AudioMetadata>;
|
|
47
47
|
config: zod.ZodType<Record<string, any>>;
|
|
48
48
|
}, "strip", zod.ZodTypeAny, {
|
|
49
|
-
config: Record<string, any
|
|
50
|
-
upload: MultipartFile
|
|
51
|
-
metadata: AudioMetadata
|
|
49
|
+
config: zod.ZodType<Record<string, any>>;
|
|
50
|
+
upload: zod.ZodType<MultipartFile>;
|
|
51
|
+
metadata: zod.ZodType<AudioMetadata>;
|
|
52
52
|
}, {
|
|
53
|
-
config: Record<string, any
|
|
54
|
-
upload: MultipartFile
|
|
55
|
-
metadata: AudioMetadata
|
|
53
|
+
config: zod.ZodType<Record<string, any>>;
|
|
54
|
+
upload: zod.ZodType<MultipartFile>;
|
|
55
|
+
metadata: zod.ZodType<AudioMetadata>;
|
|
56
56
|
}>;
|
|
57
57
|
export declare const detectMotionSchema: zod.ZodObject<{
|
|
58
58
|
upload: zod.ZodType<MultipartFile>;
|
|
59
59
|
config: zod.ZodType<Record<string, any>>;
|
|
60
60
|
}, "strip", zod.ZodTypeAny, {
|
|
61
|
-
config: Record<string, any
|
|
62
|
-
upload: MultipartFile
|
|
61
|
+
config: zod.ZodType<Record<string, any>>;
|
|
62
|
+
upload: zod.ZodType<MultipartFile>;
|
|
63
63
|
}, {
|
|
64
|
-
config: Record<string, any
|
|
65
|
-
upload: MultipartFile
|
|
64
|
+
config: zod.ZodType<Record<string, any>>;
|
|
65
|
+
upload: zod.ZodType<MultipartFile>;
|
|
66
66
|
}>;
|
|
67
67
|
export type InstallPluginInput = zod.TypeOf<typeof installPluginSchema>;
|
|
68
68
|
export type ActionPluginInput = zod.TypeOf<typeof actionPluginSchema>;
|
|
@@ -33,7 +33,7 @@ export class Go2RTCBridge {
|
|
|
33
33
|
this.logger.error(`Can not connect to go2rtc websocket: ${this.url}`, error);
|
|
34
34
|
});
|
|
35
35
|
this.ws.on('message', async (data) => {
|
|
36
|
-
if (data
|
|
36
|
+
if (Buffer.isBuffer(data)) {
|
|
37
37
|
const jsonString = data.toString('utf8');
|
|
38
38
|
const msg = JSON.parse(jsonString);
|
|
39
39
|
if (msg?.type === 'hls') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go2rtc.js","sourceRoot":"","sources":["../../../../../src/api/websocket/go2rtc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAQ/B,MAAM,OAAO,YAAY;IACf,MAAM,CAAgB;IACtB,MAAM,CAAS;IACf,SAAS,CAAY;IAEtB,EAAE,CAAS;IACX,GAAG,CAAS;IACZ,UAAU,CAAS;IACnB,EAAE,CAAa;IAEf,IAAI,CAAsB;IAEjC,YAAY,EAAU,EAAE,UAAkB,EAAE,GAAW,EAAE,MAAc,EAAE,MAAqB;QAC5F,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,OAAO,CAAY,WAAW,CAAC,CAAC;IAC7D,CAAC;IAEM,OAAO;QACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,4CAA4C,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAE1E,IAAI,CAAC,EAAE,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,EAAE,CAAC,UAAU,GAAG,aAAa,CAAC;QAEnC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;YACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YACvB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;QAC/E,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,IAAS,EAAE,EAAE;YACxC,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"go2rtc.js","sourceRoot":"","sources":["../../../../../src/api/websocket/go2rtc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAQ/B,MAAM,OAAO,YAAY;IACf,MAAM,CAAgB;IACtB,MAAM,CAAS;IACf,SAAS,CAAY;IAEtB,EAAE,CAAS;IACX,GAAG,CAAS;IACZ,UAAU,CAAS;IACnB,EAAE,CAAa;IAEf,IAAI,CAAsB;IAEjC,YAAY,EAAU,EAAE,UAAkB,EAAE,GAAW,EAAE,MAAc,EAAE,MAAqB;QAC5F,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,OAAO,CAAY,WAAW,CAAC,CAAC;IAC7D,CAAC;IAEM,OAAO;QACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,4CAA4C,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAE1E,IAAI,CAAC,EAAE,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,EAAE,CAAC,UAAU,GAAG,aAAa,CAAC;QAEnC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;YACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YACvB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;QAC/E,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,IAAS,EAAE,EAAE;YACxC,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC1B,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gBACzC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;gBAEnC,IAAI,GAAG,EAAE,IAAI,KAAK,KAAK,EAAE,CAAC;oBACxB,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC;gBACvB,CAAC;qBAAM,IAAI,GAAG,EAAE,IAAI,KAAK,eAAe,EAAE,CAAC;oBACzC,IAAI,CAAC,cAAc,EAAE,CAAC;gBACxB,CAAC;gBAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;YAC7D,CAAC;iBAAM,IAAI,IAAI,YAAY,WAAW,EAAE,CAAC;gBACvC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;gBACxD,MAAM,GAAG,GAAG;oBACV,IAAI,EAAE,GAAG,IAAI,SAAS;oBACtB,KAAK,EAAE,IAAI,CAAC,GAAG;oBACf,KAAK,EAAE,IAAI;iBACZ,CAAC;gBAEF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;YAC7D,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAEM,SAAS;QACd,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAClB,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAEM,KAAK,CAAC,OAAiB;QAC5B,IAAI,CAAC,EAAE,EAAE,kBAAkB,EAAE,CAAC;QAC9B,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC;QAEjB,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,IAAI,CAAC,GAAG,qBAAqB,CAAC,CAAC;QAC9E,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;QAClE,CAAC;IACH,CAAC;IAEM,IAAI,CAAC,IAAmB;QAC7B,IAAI,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,EAAE,CAAC;YACrD,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAEM,KAAK,CAAC,cAAc;QACzB,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;YAC3F,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;QACpG,CAAC;QAAC,MAAM,CAAC;YACP,EAAE;QACJ,CAAC;IACH,CAAC;CACF"}
|