@camera.ui/server 0.0.1
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/assets/@babel-l0sNRNKZ.js +1 -0
- package/dist/interface/assets/@camera.ui-2NVnv26v.js +8 -0
- package/dist/interface/assets/@intlify-Ck2ZoCVz.js +15 -0
- package/dist/interface/assets/@mdi-C-QA1nE3.js +1 -0
- package/dist/interface/assets/@popperjs-BQBsAJpH.js +1 -0
- package/dist/interface/assets/@react-dnd-CcwRs9xb.js +1 -0
- package/dist/interface/assets/@socket.io-Dkula2eQ.js +1 -0
- package/dist/interface/assets/@tanstack-BqH4GyO-.js +1 -0
- package/dist/interface/assets/@vee-validate-DCBdnGo-.js +5 -0
- package/dist/interface/assets/@vue-C7-KaDG4.js +17 -0
- package/dist/interface/assets/@vueform-arggO0eF.js +1 -0
- package/dist/interface/assets/@vueform-h7tNX9p6.css +1 -0
- package/dist/interface/assets/@vueuse-C3WMTDqL.js +1 -0
- package/dist/interface/assets/@xterm-B4Ga69iL.js +9 -0
- package/dist/interface/assets/@xterm-CGrrDQr5.css +32 -0
- package/dist/interface/assets/Account-B_tHnXoX.css +1 -0
- package/dist/interface/assets/Account-gJpkf0nE.js +1 -0
- package/dist/interface/assets/Adminpanel-B_SY1GJM.css +0 -0
- package/dist/interface/assets/Adminpanel-Bge9nu5N.js +1 -0
- package/dist/interface/assets/Appearance-D22q-X_I.js +1 -0
- package/dist/interface/assets/Backup-DBv9xFPh.css +1 -0
- package/dist/interface/assets/Backup-pJm6s10G.js +1 -0
- package/dist/interface/assets/Camera-BgO2yRjb.js +1 -0
- package/dist/interface/assets/Camera-CWiLco3W.css +1 -0
- package/dist/interface/assets/Cameras-BM3vSM_R.css +1 -0
- package/dist/interface/assets/Cameras-DjeKruR_.js +1 -0
- package/dist/interface/assets/Camview-DfzlprzN.js +1 -0
- package/dist/interface/assets/Camview-vUAs5YHU.css +1 -0
- package/dist/interface/assets/Config-BKIOIkjC.js +1 -0
- package/dist/interface/assets/Config-DAiKsG7W.css +1 -0
- package/dist/interface/assets/Console-BsyX2S3R.css +1 -0
- package/dist/interface/assets/Console-Caz7y-T0.js +4 -0
- package/dist/interface/assets/FirstSteps-DNHhyDSw.css +1 -0
- package/dist/interface/assets/FirstSteps-mQK4XFTs.js +1 -0
- package/dist/interface/assets/NewCamera-B9t-0NCc.js +448 -0
- package/dist/interface/assets/NewCamera-CHMgUDbC.css +1 -0
- package/dist/interface/assets/Plugin-BSHKKjrl.css +1 -0
- package/dist/interface/assets/Plugin-Di_bBsg-.js +1 -0
- package/dist/interface/assets/Plugins-BsMITags.css +1 -0
- package/dist/interface/assets/Plugins-DhmzMNuO.js +1 -0
- package/dist/interface/assets/Recordings-Bu53bSBp.js +1 -0
- package/dist/interface/assets/Recordings-XY20w8yp.js +1 -0
- package/dist/interface/assets/Settings-JES2wb8p.css +1 -0
- package/dist/interface/assets/Settings-gGRBRVST.js +1 -0
- package/dist/interface/assets/System-ZDrcLNk0.js +1 -0
- package/dist/interface/assets/User-BXColIbU.css +1 -0
- package/dist/interface/assets/User-D4vEhhzi.js +1 -0
- package/dist/interface/assets/VConfigEditor.vue_vue_type_script_setup_true_lang-CXFI-IeE.js +2 -0
- package/dist/interface/assets/VConsole-BHo3xprq.js +1 -0
- package/dist/interface/assets/VConsole-f-nUkOuD.css +1 -0
- package/dist/interface/assets/VPlayer-D3KhRfx-.css +1 -0
- package/dist/interface/assets/VPlayer-YdRn97Bs.js +1 -0
- package/dist/interface/assets/VPluginCard--3bx6UJb.js +4 -0
- package/dist/interface/assets/VPluginCard-BJYMuCLk.css +1 -0
- package/dist/interface/assets/ace-builds-CigWTak4.js +956 -0
- package/dist/interface/assets/axios--Jv2L996.js +6 -0
- package/dist/interface/assets/dijkstrajs-D_NXgYpA.js +1 -0
- package/dist/interface/assets/dnd-core-SnWOpY0X.js +1 -0
- package/dist/interface/assets/draggabilly-Arakw9Dk.js +6 -0
- package/dist/interface/assets/encode-utf8-Cn5aGd7v.js +1 -0
- package/dist/interface/assets/engine.io-client-DBBxzneW.js +1 -0
- package/dist/interface/assets/engine.io-parser-BiEtp6m2.js +1 -0
- package/dist/interface/assets/entities-C20TfXL6.js +1 -0
- package/dist/interface/assets/ev-emitter-CXYwG0eJ.js +1 -0
- package/dist/interface/assets/fast-deep-equal-5pvsDbwX.js +1 -0
- package/dist/interface/assets/get-size-D1dS-IaP.js +5 -0
- package/dist/interface/assets/highlight-DgoK_Xib.css +1 -0
- package/dist/interface/assets/highlight.js-TxRCSjhv.js +2 -0
- package/dist/interface/assets/linkify-it-DmNjr4Kv.js +1 -0
- package/dist/interface/assets/logo-256-BCQk9H1-.png +0 -0
- package/dist/interface/assets/logo-512-DLKVOU2S.png +0 -0
- package/dist/interface/assets/logo-DmEiRk0z.png +0 -0
- package/dist/interface/assets/main-B3IVLctZ.css +1 -0
- package/dist/interface/assets/main-C4rYiRNz.js +2 -0
- package/dist/interface/assets/markdown-it-DI8MEbma.js +15 -0
- package/dist/interface/assets/mdurl-k9Sl0PQj.js +2 -0
- package/dist/interface/assets/mode-json-Br7xisR1.js +275 -0
- package/dist/interface/assets/mode-yaml-CIYL8U3d.js +395 -0
- package/dist/interface/assets/nprogress-DSyAi0LF.js +2 -0
- package/dist/interface/assets/pinia-D8MtiGcH.js +5 -0
- package/dist/interface/assets/plugins-Bf03y242.js +1 -0
- package/dist/interface/assets/punycode.js-Dj65hjkv.js +1 -0
- package/dist/interface/assets/qrcode-CGiDONbL.js +8 -0
- package/dist/interface/assets/react-dnd-html5-backend-1HQjlkwI.js +2 -0
- package/dist/interface/assets/react-dnd-touch-backend-NgACaG8W.js +1 -0
- package/dist/interface/assets/redux-CuxFRhX_.js +1 -0
- package/dist/interface/assets/rxjs-B53o3e_J.js +3 -0
- package/dist/interface/assets/socket.io-client-Bq_SHkin.js +1 -0
- package/dist/interface/assets/socket.io-parser-BBkuslX-.js +1 -0
- package/dist/interface/assets/system-BONnDA4y.js +1 -0
- package/dist/interface/assets/tslib-9k7AwCpt.js +1 -0
- package/dist/interface/assets/uc.micro-kMc2yuuw.js +1 -0
- package/dist/interface/assets/ui-CNpIJotI.js +1 -0
- package/dist/interface/assets/unidragger-BYtqgAQ0.js +5 -0
- package/dist/interface/assets/utils-BvINh1mj.js +1 -0
- package/dist/interface/assets/uuid-DvF23Exx.js +1 -0
- package/dist/interface/assets/v-calendar-CtSuDYZU.css +1 -0
- package/dist/interface/assets/v-calendar-uh0aTGqP.js +1 -0
- package/dist/interface/assets/vee-validate-D3FqbChK.js +5 -0
- package/dist/interface/assets/vue-i18n-1AU8MPys.js +5 -0
- package/dist/interface/assets/vue-inline-svg-2DDwYW6V.js +1 -0
- package/dist/interface/assets/vue-l0sNRNKZ.js +1 -0
- package/dist/interface/assets/vue-router-DfeQ8s4I.js +5 -0
- package/dist/interface/assets/vue3-dnd-BwxcSU9Z.js +1 -0
- package/dist/interface/assets/vue3-toastify-DTY1DMRs.css +1 -0
- package/dist/interface/assets/vue3-toastify-Ul-rf53I.js +1 -0
- package/dist/interface/assets/vuetify-B__3Y-at.css +5 -0
- package/dist/interface/assets/vuetify-_-Oqac3B.js +5 -0
- package/dist/interface/assets/zod-BaF2dDCd.js +1 -0
- package/dist/interface/browserconfig.xml +11 -0
- package/dist/interface/fonts/Inter/Inter-Regular.ttf +0 -0
- package/dist/interface/index.html +377 -0
- package/dist/interface/manifest.webmanifest +1 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-1136x640.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-1334x750.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-1792x828.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2048x1536.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2160x1620.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2208x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2224x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2388x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2436x1125.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2532x1170.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2556x1179.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2688x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2732x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2778x1284.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2796x1290.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-1136x640.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-1334x750.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-1792x828.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2048x1536.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2160x1620.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2208x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2224x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2388x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2436x1125.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2532x1170.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2556x1179.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2688x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2732x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2778x1284.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2796x1290.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1125x2436.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1170x2532.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1179x2556.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1242x2208.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1242x2688.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1284x2778.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1290x2796.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1536x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1620x2160.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1668x2224.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1668x2388.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-2048x2732.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-640x1136.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-750x1334.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-828x1792.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1125x2436.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1170x2532.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1179x2556.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1242x2208.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1242x2688.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1284x2778.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1290x2796.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1536x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1620x2160.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1668x2224.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1668x2388.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-2048x2732.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-640x1136.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-750x1334.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-828x1792.png +0 -0
- package/dist/interface/pwa/apple-touch-icon-180x180.png +0 -0
- package/dist/interface/pwa/favicon-16.ico +0 -0
- package/dist/interface/pwa/favicon-32.ico +0 -0
- package/dist/interface/pwa/favicon-48.ico +0 -0
- package/dist/interface/pwa/favicon-64.ico +0 -0
- package/dist/interface/pwa/logo.svg +1 -0
- package/dist/interface/pwa/maskable-icon-1240x600.png +0 -0
- package/dist/interface/pwa/maskable-icon-512x512.png +0 -0
- package/dist/interface/pwa/maskable-icon-620x300.png +0 -0
- package/dist/interface/pwa/pwa-1024x1024.png +0 -0
- package/dist/interface/pwa/pwa-120x120.png +0 -0
- package/dist/interface/pwa/pwa-144x144.png +0 -0
- package/dist/interface/pwa/pwa-152x152.png +0 -0
- package/dist/interface/pwa/pwa-167x167.png +0 -0
- package/dist/interface/pwa/pwa-180x180.png +0 -0
- package/dist/interface/pwa/pwa-192x192.png +0 -0
- package/dist/interface/pwa/pwa-24x24.png +0 -0
- package/dist/interface/pwa/pwa-300x300.png +0 -0
- package/dist/interface/pwa/pwa-36x36.png +0 -0
- package/dist/interface/pwa/pwa-48x48.png +0 -0
- package/dist/interface/pwa/pwa-50x50.png +0 -0
- package/dist/interface/pwa/pwa-64x64.png +0 -0
- package/dist/interface/pwa/pwa-72x72.png +0 -0
- package/dist/interface/pwa/pwa-88x88.png +0 -0
- package/dist/interface/pwa/pwa-96x96.png +0 -0
- package/dist/interface/registerSW.js +1 -0
- package/dist/interface/robots.txt +2 -0
- package/dist/interface/sw.js +1 -0
- package/dist/interface/workbox-3e911b1d.js +1 -0
- package/dist/server/bin/cui-service.d.ts +43 -0
- package/dist/server/bin/cui-service.js +472 -0
- package/dist/server/bin/cui-service.js.map +1 -0
- package/dist/server/bin/cui.d.ts +2 -0
- package/dist/server/bin/cui.js +8 -0
- package/dist/server/bin/cui.js.map +1 -0
- package/dist/server/bin/installer/base.d.ts +16 -0
- package/dist/server/bin/installer/base.js +41 -0
- package/dist/server/bin/installer/base.js.map +1 -0
- package/dist/server/bin/installer/darwin.d.ts +49 -0
- package/dist/server/bin/installer/darwin.js +200 -0
- package/dist/server/bin/installer/darwin.js.map +1 -0
- package/dist/server/bin/installer/freebsd.d.ts +61 -0
- package/dist/server/bin/installer/freebsd.js +252 -0
- package/dist/server/bin/installer/freebsd.js.map +1 -0
- package/dist/server/bin/installer/linux.d.ts +92 -0
- package/dist/server/bin/installer/linux.js +386 -0
- package/dist/server/bin/installer/linux.js.map +1 -0
- package/dist/server/bin/installer/win32.d.ts +37 -0
- package/dist/server/bin/installer/win32.js +158 -0
- package/dist/server/bin/installer/win32.js.map +1 -0
- package/dist/server/package.json +142 -0
- package/dist/server/requirements.txt +13 -0
- package/dist/server/src/api/controllers/api.controller.d.ts +6 -0
- package/dist/server/src/api/controllers/api.controller.js +11 -0
- package/dist/server/src/api/controllers/api.controller.js.map +1 -0
- package/dist/server/src/api/controllers/auth.controller.d.ts +20 -0
- package/dist/server/src/api/controllers/auth.controller.js +263 -0
- package/dist/server/src/api/controllers/auth.controller.js.map +1 -0
- package/dist/server/src/api/controllers/backup.controller.d.ts +10 -0
- package/dist/server/src/api/controllers/backup.controller.js +52 -0
- package/dist/server/src/api/controllers/backup.controller.js.map +1 -0
- package/dist/server/src/api/controllers/cameras.controller.d.ts +34 -0
- package/dist/server/src/api/controllers/cameras.controller.js +522 -0
- package/dist/server/src/api/controllers/cameras.controller.js.map +1 -0
- package/dist/server/src/api/controllers/config.controller.d.ts +14 -0
- package/dist/server/src/api/controllers/config.controller.js +89 -0
- package/dist/server/src/api/controllers/config.controller.js.map +1 -0
- package/dist/server/src/api/controllers/files.controller.d.ts +8 -0
- package/dist/server/src/api/controllers/files.controller.js +28 -0
- package/dist/server/src/api/controllers/files.controller.js.map +1 -0
- package/dist/server/src/api/controllers/frameWorkers.controller.d.ts +16 -0
- package/dist/server/src/api/controllers/frameWorkers.controller.js +85 -0
- package/dist/server/src/api/controllers/frameWorkers.controller.js.map +1 -0
- package/dist/server/src/api/controllers/plugins.controller.d.ts +59 -0
- package/dist/server/src/api/controllers/plugins.controller.js +1178 -0
- package/dist/server/src/api/controllers/plugins.controller.js.map +1 -0
- package/dist/server/src/api/controllers/system.controller.d.ts +14 -0
- package/dist/server/src/api/controllers/system.controller.js +149 -0
- package/dist/server/src/api/controllers/system.controller.js.map +1 -0
- package/dist/server/src/api/controllers/users.controller.d.ts +28 -0
- package/dist/server/src/api/controllers/users.controller.js +463 -0
- package/dist/server/src/api/controllers/users.controller.js.map +1 -0
- package/dist/server/src/api/database/index.d.ts +34 -0
- package/dist/server/src/api/database/index.js +185 -0
- package/dist/server/src/api/database/index.js.map +1 -0
- package/dist/server/src/api/database/migration.d.ts +12 -0
- package/dist/server/src/api/database/migration.js +47 -0
- package/dist/server/src/api/database/migration.js.map +1 -0
- package/dist/server/src/api/database/types.d.ts +209 -0
- package/dist/server/src/api/database/types.js +2 -0
- package/dist/server/src/api/database/types.js.map +1 -0
- package/dist/server/src/api/go2rtc/api/application.d.ts +9 -0
- package/dist/server/src/api/go2rtc/api/application.js +38 -0
- package/dist/server/src/api/go2rtc/api/application.js.map +1 -0
- package/dist/server/src/api/go2rtc/api/config.d.ts +8 -0
- package/dist/server/src/api/go2rtc/api/config.js +44 -0
- package/dist/server/src/api/go2rtc/api/config.js.map +1 -0
- package/dist/server/src/api/go2rtc/api/index.d.ts +1 -0
- package/dist/server/src/api/go2rtc/api/index.js +28 -0
- package/dist/server/src/api/go2rtc/api/index.js.map +1 -0
- package/dist/server/src/api/go2rtc/api/snapshot.d.ts +8 -0
- package/dist/server/src/api/go2rtc/api/snapshot.js +34 -0
- package/dist/server/src/api/go2rtc/api/snapshot.js.map +1 -0
- package/dist/server/src/api/go2rtc/api/streams.d.ts +10 -0
- package/dist/server/src/api/go2rtc/api/streams.js +67 -0
- package/dist/server/src/api/go2rtc/api/streams.js.map +1 -0
- package/dist/server/src/api/go2rtc/index.d.ts +13 -0
- package/dist/server/src/api/go2rtc/index.js +25 -0
- package/dist/server/src/api/go2rtc/index.js.map +1 -0
- package/dist/server/src/api/go2rtc/queue.d.ts +10 -0
- package/dist/server/src/api/go2rtc/queue.js +38 -0
- package/dist/server/src/api/go2rtc/queue.js.map +1 -0
- package/dist/server/src/api/go2rtc/types.d.ts +60 -0
- package/dist/server/src/api/go2rtc/types.js +2 -0
- package/dist/server/src/api/go2rtc/types.js.map +1 -0
- package/dist/server/src/api/index.d.ts +20 -0
- package/dist/server/src/api/index.js +233 -0
- package/dist/server/src/api/index.js.map +1 -0
- package/dist/server/src/api/middlewares/authPermission.middleware.d.ts +5 -0
- package/dist/server/src/api/middlewares/authPermission.middleware.js +28 -0
- package/dist/server/src/api/middlewares/authPermission.middleware.js.map +1 -0
- package/dist/server/src/api/middlewares/authValidation.middleware.d.ts +4 -0
- package/dist/server/src/api/middlewares/authValidation.middleware.js +129 -0
- package/dist/server/src/api/middlewares/authValidation.middleware.js.map +1 -0
- package/dist/server/src/api/middlewares/pagination.middleware.d.ts +3 -0
- package/dist/server/src/api/middlewares/pagination.middleware.js +65 -0
- package/dist/server/src/api/middlewares/pagination.middleware.js.map +1 -0
- package/dist/server/src/api/middlewares/socketAuth.middleware.d.ts +41 -0
- package/dist/server/src/api/middlewares/socketAuth.middleware.js +81 -0
- package/dist/server/src/api/middlewares/socketAuth.middleware.js.map +1 -0
- package/dist/server/src/api/plugins/cameraui.plugin.d.ts +11 -0
- package/dist/server/src/api/plugins/cameraui.plugin.js +6 -0
- package/dist/server/src/api/plugins/cameraui.plugin.js.map +1 -0
- package/dist/server/src/api/plugins/database.plugin.d.ts +11 -0
- package/dist/server/src/api/plugins/database.plugin.js +12 -0
- package/dist/server/src/api/plugins/database.plugin.js.map +1 -0
- package/dist/server/src/api/plugins/go2rtc.plugin.d.ts +11 -0
- package/dist/server/src/api/plugins/go2rtc.plugin.js +11 -0
- package/dist/server/src/api/plugins/go2rtc.plugin.js.map +1 -0
- package/dist/server/src/api/plugins/logger.plugin.d.ts +7 -0
- package/dist/server/src/api/plugins/logger.plugin.js +29 -0
- package/dist/server/src/api/plugins/logger.plugin.js.map +1 -0
- package/dist/server/src/api/plugins/socket.plugin.d.ts +11 -0
- package/dist/server/src/api/plugins/socket.plugin.js +12 -0
- package/dist/server/src/api/plugins/socket.plugin.js.map +1 -0
- package/dist/server/src/api/plugins/system.plugin.d.ts +21 -0
- package/dist/server/src/api/plugins/system.plugin.js +33 -0
- package/dist/server/src/api/plugins/system.plugin.js.map +1 -0
- package/dist/server/src/api/plugins/useragent.plugin.d.ts +8 -0
- package/dist/server/src/api/plugins/useragent.plugin.js +10 -0
- package/dist/server/src/api/plugins/useragent.plugin.js.map +1 -0
- package/dist/server/src/api/routes/api.routes.d.ts +2 -0
- package/dist/server/src/api/routes/api.routes.js +6 -0
- package/dist/server/src/api/routes/api.routes.js.map +1 -0
- package/dist/server/src/api/routes/auth.routes.d.ts +2 -0
- package/dist/server/src/api/routes/auth.routes.js +47 -0
- package/dist/server/src/api/routes/auth.routes.js.map +1 -0
- package/dist/server/src/api/routes/backup.routes.d.ts +2 -0
- package/dist/server/src/api/routes/backup.routes.js +23 -0
- package/dist/server/src/api/routes/backup.routes.js.map +1 -0
- package/dist/server/src/api/routes/cameras.routes.d.ts +2 -0
- package/dist/server/src/api/routes/cameras.routes.js +181 -0
- package/dist/server/src/api/routes/cameras.routes.js.map +1 -0
- package/dist/server/src/api/routes/config.routes.d.ts +2 -0
- package/dist/server/src/api/routes/config.routes.js +55 -0
- package/dist/server/src/api/routes/config.routes.js.map +1 -0
- package/dist/server/src/api/routes/files.routes.d.ts +2 -0
- package/dist/server/src/api/routes/files.routes.js +12 -0
- package/dist/server/src/api/routes/files.routes.js.map +1 -0
- package/dist/server/src/api/routes/frameWorkers.routes.d.ts +2 -0
- package/dist/server/src/api/routes/frameWorkers.routes.js +33 -0
- package/dist/server/src/api/routes/frameWorkers.routes.js.map +1 -0
- package/dist/server/src/api/routes/index.d.ts +6 -0
- package/dist/server/src/api/routes/index.js +32 -0
- package/dist/server/src/api/routes/index.js.map +1 -0
- package/dist/server/src/api/routes/plugins.routes.d.ts +2 -0
- package/dist/server/src/api/routes/plugins.routes.js +339 -0
- package/dist/server/src/api/routes/plugins.routes.js.map +1 -0
- package/dist/server/src/api/routes/system.routes.d.ts +2 -0
- package/dist/server/src/api/routes/system.routes.js +43 -0
- package/dist/server/src/api/routes/system.routes.js.map +1 -0
- package/dist/server/src/api/routes/users.routes.d.ts +2 -0
- package/dist/server/src/api/routes/users.routes.js +139 -0
- package/dist/server/src/api/routes/users.routes.js.map +1 -0
- package/dist/server/src/api/schemas/backup.schema.d.ts +118 -0
- package/dist/server/src/api/schemas/backup.schema.js +75 -0
- package/dist/server/src/api/schemas/backup.schema.js.map +1 -0
- package/dist/server/src/api/schemas/cameras.schema.d.ts +932 -0
- package/dist/server/src/api/schemas/cameras.schema.js +271 -0
- package/dist/server/src/api/schemas/cameras.schema.js.map +1 -0
- package/dist/server/src/api/schemas/config.schema.d.ts +202 -0
- package/dist/server/src/api/schemas/config.schema.js +68 -0
- package/dist/server/src/api/schemas/config.schema.js.map +1 -0
- package/dist/server/src/api/schemas/go2rtc.schema.d.ts +703 -0
- package/dist/server/src/api/schemas/go2rtc.schema.js +188 -0
- package/dist/server/src/api/schemas/go2rtc.schema.js.map +1 -0
- package/dist/server/src/api/schemas/plugins.schema.d.ts +72 -0
- package/dist/server/src/api/schemas/plugins.schema.js +103 -0
- package/dist/server/src/api/schemas/plugins.schema.js.map +1 -0
- package/dist/server/src/api/schemas/users.schema.d.ts +1008 -0
- package/dist/server/src/api/schemas/users.schema.js +151 -0
- package/dist/server/src/api/schemas/users.schema.js.map +1 -0
- package/dist/server/src/api/services/auth.service.d.ts +19 -0
- package/dist/server/src/api/services/auth.service.js +115 -0
- package/dist/server/src/api/services/auth.service.js.map +1 -0
- package/dist/server/src/api/services/backup.service.d.ts +11 -0
- package/dist/server/src/api/services/backup.service.js +108 -0
- package/dist/server/src/api/services/backup.service.js.map +1 -0
- package/dist/server/src/api/services/cameras.service.d.ts +55 -0
- package/dist/server/src/api/services/cameras.service.js +700 -0
- package/dist/server/src/api/services/cameras.service.js.map +1 -0
- package/dist/server/src/api/services/plugins.service.d.ts +25 -0
- package/dist/server/src/api/services/plugins.service.js +145 -0
- package/dist/server/src/api/services/plugins.service.js.map +1 -0
- package/dist/server/src/api/services/users.service.d.ts +25 -0
- package/dist/server/src/api/services/users.service.js +197 -0
- package/dist/server/src/api/services/users.service.js.map +1 -0
- package/dist/server/src/api/types/index.d.ts +580 -0
- package/dist/server/src/api/types/index.js +9 -0
- package/dist/server/src/api/types/index.js.map +1 -0
- package/dist/server/src/api/utils/cert.d.ts +11 -0
- package/dist/server/src/api/utils/cert.js +411 -0
- package/dist/server/src/api/utils/cert.js.map +1 -0
- package/dist/server/src/api/utils/constants.d.ts +15 -0
- package/dist/server/src/api/utils/constants.js +17 -0
- package/dist/server/src/api/utils/constants.js.map +1 -0
- package/dist/server/src/api/utils/fetch.d.ts +2 -0
- package/dist/server/src/api/utils/fetch.js +24 -0
- package/dist/server/src/api/utils/fetch.js.map +1 -0
- package/dist/server/src/api/utils/moveFiles.d.ts +1 -0
- package/dist/server/src/api/utils/moveFiles.js +38 -0
- package/dist/server/src/api/utils/moveFiles.js.map +1 -0
- package/dist/server/src/api/utils/parse.d.ts +2 -0
- package/dist/server/src/api/utils/parse.js +12 -0
- package/dist/server/src/api/utils/parse.js.map +1 -0
- package/dist/server/src/api/websocket/index.d.ts +15 -0
- package/dist/server/src/api/websocket/index.js +69 -0
- package/dist/server/src/api/websocket/index.js.map +1 -0
- package/dist/server/src/api/websocket/nsp/frameWorker.d.ts +13 -0
- package/dist/server/src/api/websocket/nsp/frameWorker.js +29 -0
- package/dist/server/src/api/websocket/nsp/frameWorker.js.map +1 -0
- package/dist/server/src/api/websocket/nsp/logs.d.ts +11 -0
- package/dist/server/src/api/websocket/nsp/logs.js +113 -0
- package/dist/server/src/api/websocket/nsp/logs.js.map +1 -0
- package/dist/server/src/api/websocket/nsp/metrics.d.ts +38 -0
- package/dist/server/src/api/websocket/nsp/metrics.js +266 -0
- package/dist/server/src/api/websocket/nsp/metrics.js.map +1 -0
- package/dist/server/src/api/websocket/nsp/notifications.d.ts +11 -0
- package/dist/server/src/api/websocket/nsp/notifications.js +35 -0
- package/dist/server/src/api/websocket/nsp/notifications.js.map +1 -0
- package/dist/server/src/api/websocket/nsp/plugins.d.ts +13 -0
- package/dist/server/src/api/websocket/nsp/plugins.js +29 -0
- package/dist/server/src/api/websocket/nsp/plugins.js.map +1 -0
- package/dist/server/src/api/websocket/nsp/server.d.ts +9 -0
- package/dist/server/src/api/websocket/nsp/server.js +48 -0
- package/dist/server/src/api/websocket/nsp/server.js.map +1 -0
- package/dist/server/src/api/websocket/nsp/status.d.ts +26 -0
- package/dist/server/src/api/websocket/nsp/status.js +59 -0
- package/dist/server/src/api/websocket/nsp/status.js.map +1 -0
- package/dist/server/src/api/websocket/types.d.ts +86 -0
- package/dist/server/src/api/websocket/types.js +2 -0
- package/dist/server/src/api/websocket/types.js.map +1 -0
- package/dist/server/src/api.d.ts +43 -0
- package/dist/server/src/api.js +90 -0
- package/dist/server/src/api.js.map +1 -0
- package/dist/server/src/camera/controller.d.ts +41 -0
- package/dist/server/src/camera/controller.js +220 -0
- package/dist/server/src/camera/controller.js.map +1 -0
- package/dist/server/src/camera/device.d.ts +18 -0
- package/dist/server/src/camera/device.js +21 -0
- package/dist/server/src/camera/device.js.map +1 -0
- package/dist/server/src/camera/index.d.ts +121 -0
- package/dist/server/src/camera/index.js +643 -0
- package/dist/server/src/camera/index.js.map +1 -0
- package/dist/server/src/camera/interfaces/camera.d.ts +11 -0
- package/dist/server/src/camera/interfaces/camera.js +31 -0
- package/dist/server/src/camera/interfaces/camera.js.map +1 -0
- package/dist/server/src/camera/interfaces/prebuffer.d.ts +11 -0
- package/dist/server/src/camera/interfaces/prebuffer.js +26 -0
- package/dist/server/src/camera/interfaces/prebuffer.js.map +1 -0
- package/dist/server/src/camera/interfaces/ptz.d.ts +13 -0
- package/dist/server/src/camera/interfaces/ptz.js +47 -0
- package/dist/server/src/camera/interfaces/ptz.js.map +1 -0
- package/dist/server/src/camera/polygon.d.ts +6 -0
- package/dist/server/src/camera/polygon.js +151 -0
- package/dist/server/src/camera/polygon.js.map +1 -0
- package/dist/server/src/camera/streaming/peer-connection.d.ts +46 -0
- package/dist/server/src/camera/streaming/peer-connection.js +150 -0
- package/dist/server/src/camera/streaming/peer-connection.js.map +1 -0
- package/dist/server/src/camera/streaming/webrtc-connection.d.ts +34 -0
- package/dist/server/src/camera/streaming/webrtc-connection.js +152 -0
- package/dist/server/src/camera/streaming/webrtc-connection.js.map +1 -0
- package/dist/server/src/camera/streaming/werift-session.d.ts +31 -0
- package/dist/server/src/camera/streaming/werift-session.js +168 -0
- package/dist/server/src/camera/streaming/werift-session.js.map +1 -0
- package/dist/server/src/camera/types.d.ts +202 -0
- package/dist/server/src/camera/types.js +7 -0
- package/dist/server/src/camera/types.js.map +1 -0
- package/dist/server/src/camera/videoFrame.d.ts +24 -0
- package/dist/server/src/camera/videoFrame.js +105 -0
- package/dist/server/src/camera/videoFrame.js.map +1 -0
- package/dist/server/src/decoder/ffmpeg.d.ts +2 -0
- package/dist/server/src/decoder/ffmpeg.js +61 -0
- package/dist/server/src/decoder/ffmpeg.js.map +1 -0
- package/dist/server/src/decoder/index.d.ts +11 -0
- package/dist/server/src/decoder/index.js +32 -0
- package/dist/server/src/decoder/index.js.map +1 -0
- package/dist/server/src/decoder/types.d.ts +156 -0
- package/dist/server/src/decoder/types.js +2 -0
- package/dist/server/src/decoder/types.js.map +1 -0
- package/dist/server/src/decoder/worker.d.ts +42 -0
- package/dist/server/src/decoder/worker.js +273 -0
- package/dist/server/src/decoder/worker.js.map +1 -0
- package/dist/server/src/go2rtc/index.d.ts +25 -0
- package/dist/server/src/go2rtc/index.js +211 -0
- package/dist/server/src/go2rtc/index.js.map +1 -0
- package/dist/server/src/go2rtc/types.d.ts +14 -0
- package/dist/server/src/go2rtc/types.js +73 -0
- package/dist/server/src/go2rtc/types.js.map +1 -0
- package/dist/server/src/index.d.ts +16 -0
- package/dist/server/src/index.js +5 -0
- package/dist/server/src/index.js.map +1 -0
- package/dist/server/src/main.d.ts +18 -0
- package/dist/server/src/main.js +118 -0
- package/dist/server/src/main.js.map +1 -0
- package/dist/server/src/nats/constants.d.ts +1 -0
- package/dist/server/src/nats/constants.js +2 -0
- package/dist/server/src/nats/constants.js.map +1 -0
- package/dist/server/src/nats/index.d.ts +35 -0
- package/dist/server/src/nats/index.js +150 -0
- package/dist/server/src/nats/index.js.map +1 -0
- package/dist/server/src/nats/messageQueue.d.ts +17 -0
- package/dist/server/src/nats/messageQueue.js +148 -0
- package/dist/server/src/nats/messageQueue.js.map +1 -0
- package/dist/server/src/nats/proxy/cameraDevice.d.ts +30 -0
- package/dist/server/src/nats/proxy/cameraDevice.js +252 -0
- package/dist/server/src/nats/proxy/cameraDevice.js.map +1 -0
- package/dist/server/src/nats/proxy/deviceManager.d.ts +16 -0
- package/dist/server/src/nats/proxy/deviceManager.js +110 -0
- package/dist/server/src/nats/proxy/deviceManager.js.map +1 -0
- package/dist/server/src/nats/proxy/index.d.ts +2 -0
- package/dist/server/src/nats/proxy/index.js +3 -0
- package/dist/server/src/nats/proxy/index.js.map +1 -0
- package/dist/server/src/nats/server.d.ts +38 -0
- package/dist/server/src/nats/server.js +325 -0
- package/dist/server/src/nats/server.js.map +1 -0
- package/dist/server/src/nats/types.d.ts +125 -0
- package/dist/server/src/nats/types.js +11 -0
- package/dist/server/src/nats/types.js.map +1 -0
- package/dist/server/src/nats/utils.d.ts +4 -0
- package/dist/server/src/nats/utils.js +12 -0
- package/dist/server/src/nats/utils.js.map +1 -0
- package/dist/server/src/nats/websocket.d.ts +27 -0
- package/dist/server/src/nats/websocket.js +214 -0
- package/dist/server/src/nats/websocket.js.map +1 -0
- package/dist/server/src/plugins/index.d.ts +32 -0
- package/dist/server/src/plugins/index.js +326 -0
- package/dist/server/src/plugins/index.js.map +1 -0
- package/dist/server/src/plugins/interfaces/audioDetection.d.ts +7 -0
- package/dist/server/src/plugins/interfaces/audioDetection.js +4 -0
- package/dist/server/src/plugins/interfaces/audioDetection.js.map +1 -0
- package/dist/server/src/plugins/interfaces/base.d.ts +6 -0
- package/dist/server/src/plugins/interfaces/base.js +3 -0
- package/dist/server/src/plugins/interfaces/base.js.map +1 -0
- package/dist/server/src/plugins/interfaces/motionDetection.d.ts +6 -0
- package/dist/server/src/plugins/interfaces/motionDetection.js +4 -0
- package/dist/server/src/plugins/interfaces/motionDetection.js.map +1 -0
- package/dist/server/src/plugins/interfaces/objectDetection.d.ts +7 -0
- package/dist/server/src/plugins/interfaces/objectDetection.js +4 -0
- package/dist/server/src/plugins/interfaces/objectDetection.js.map +1 -0
- package/dist/server/src/plugins/plugin.d.ts +42 -0
- package/dist/server/src/plugins/plugin.js +207 -0
- package/dist/server/src/plugins/plugin.js.map +1 -0
- package/dist/server/src/plugins/types.d.ts +181 -0
- package/dist/server/src/plugins/types.js +18 -0
- package/dist/server/src/plugins/types.js.map +1 -0
- package/dist/server/src/plugins/worker.d.ts +35 -0
- package/dist/server/src/plugins/worker.js +309 -0
- package/dist/server/src/plugins/worker.js.map +1 -0
- package/dist/server/src/polyglot/node/decoder/child.d.ts +1 -0
- package/dist/server/src/polyglot/node/decoder/child.js +703 -0
- package/dist/server/src/polyglot/node/decoder/child.js.map +1 -0
- package/dist/server/src/polyglot/node/decoder/imageUtils.d.ts +24 -0
- package/dist/server/src/polyglot/node/decoder/imageUtils.js +203 -0
- package/dist/server/src/polyglot/node/decoder/imageUtils.js.map +1 -0
- package/dist/server/src/polyglot/node/decoder/reader.d.ts +5 -0
- package/dist/server/src/polyglot/node/decoder/reader.js +41 -0
- package/dist/server/src/polyglot/node/decoder/reader.js.map +1 -0
- package/dist/server/src/polyglot/node/decoder/wasm/build/decoder.d.ts +144 -0
- package/dist/server/src/polyglot/node/decoder/wasm/build/decoder.js +65 -0
- package/dist/server/src/polyglot/node/decoder/wasm/build/decoder.wasm +0 -0
- package/dist/server/src/polyglot/node/decoder/wasm/test/imageUtils.py +106 -0
- package/dist/server/src/polyglot/node/plugins/api.d.ts +37 -0
- package/dist/server/src/polyglot/node/plugins/api.js +34 -0
- package/dist/server/src/polyglot/node/plugins/api.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/cameraStorage.d.ts +108 -0
- package/dist/server/src/polyglot/node/plugins/cameraStorage.js +310 -0
- package/dist/server/src/polyglot/node/plugins/cameraStorage.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/child.d.ts +25 -0
- package/dist/server/src/polyglot/node/plugins/child.js +206 -0
- package/dist/server/src/polyglot/node/plugins/child.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/config.d.ts +104 -0
- package/dist/server/src/polyglot/node/plugins/config.js +213 -0
- package/dist/server/src/polyglot/node/plugins/config.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/logger.d.ts +16 -0
- package/dist/server/src/polyglot/node/plugins/logger.js +128 -0
- package/dist/server/src/polyglot/node/plugins/logger.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +75 -0
- package/dist/server/src/polyglot/node/plugins/proxy/cameraDevice.js +474 -0
- package/dist/server/src/polyglot/node/plugins/proxy/cameraDevice.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/proxy/deviceManager.d.ts +49 -0
- package/dist/server/src/polyglot/node/plugins/proxy/deviceManager.js +194 -0
- package/dist/server/src/polyglot/node/plugins/proxy/deviceManager.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/proxy/index.d.ts +2 -0
- package/dist/server/src/polyglot/node/plugins/proxy/index.js +3 -0
- package/dist/server/src/polyglot/node/plugins/proxy/index.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/proxy/messageQueue.d.ts +20 -0
- package/dist/server/src/polyglot/node/plugins/proxy/messageQueue.js +152 -0
- package/dist/server/src/polyglot/node/plugins/proxy/messageQueue.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/schema.d.ts +280 -0
- package/dist/server/src/polyglot/node/plugins/schema.js +719 -0
- package/dist/server/src/polyglot/node/plugins/schema.js.map +1 -0
- package/dist/server/src/polyglot/node/plugins/storageController.d.ts +28 -0
- package/dist/server/src/polyglot/node/plugins/storageController.js +38 -0
- package/dist/server/src/polyglot/node/plugins/storageController.js.map +1 -0
- package/dist/server/src/polyglot/python/camera/interfaces/camera.py +26 -0
- package/dist/server/src/polyglot/python/camera/interfaces/prebuffer.py +25 -0
- package/dist/server/src/polyglot/python/camera/interfaces/ptz.py +38 -0
- package/dist/server/src/polyglot/python/camera/polygon.py +173 -0
- package/dist/server/src/polyglot/python/camera/video_frame.py +196 -0
- package/dist/server/src/polyglot/python/camera_ui_types/__init__.py +1221 -0
- package/dist/server/src/polyglot/python/decoder/child.py +922 -0
- package/dist/server/src/polyglot/python/decoder/image_utils.py +149 -0
- package/dist/server/src/polyglot/python/decoder/typings.py +99 -0
- package/dist/server/src/polyglot/python/plugins/camera_storage.py +459 -0
- package/dist/server/src/polyglot/python/plugins/child.py +267 -0
- package/dist/server/src/polyglot/python/plugins/config_service.py +180 -0
- package/dist/server/src/polyglot/python/plugins/constants.py +2 -0
- package/dist/server/src/polyglot/python/plugins/logger.py +111 -0
- package/dist/server/src/polyglot/python/plugins/plugin_api.py +114 -0
- package/dist/server/src/polyglot/python/plugins/proxy/camera_device.py +1722 -0
- package/dist/server/src/polyglot/python/plugins/proxy/device_manager.py +265 -0
- package/dist/server/src/polyglot/python/plugins/proxy/message_queue.py +213 -0
- package/dist/server/src/polyglot/python/plugins/schema.py +392 -0
- package/dist/server/src/polyglot/python/plugins/storage_controller.py +57 -0
- package/dist/server/src/polyglot/python/plugins/typings.py +248 -0
- package/dist/server/src/polyglot/python/utilities/object_path.py +187 -0
- package/dist/server/src/polyglot/python/utilities/packer.py +11 -0
- package/dist/server/src/polyglot/python/utilities/task.py +25 -0
- package/dist/server/src/polyglot/python/utilities/thread.py +10 -0
- package/dist/server/src/polyglot/python/utilities/utils.py +48 -0
- package/dist/server/src/services/config/constants.d.ts +4 -0
- package/dist/server/src/services/config/constants.js +58 -0
- package/dist/server/src/services/config/constants.js.map +1 -0
- package/dist/server/src/services/config/index.d.ts +54 -0
- package/dist/server/src/services/config/index.js +288 -0
- package/dist/server/src/services/config/index.js.map +1 -0
- package/dist/server/src/services/config/types.d.ts +162 -0
- package/dist/server/src/services/config/types.js +11 -0
- package/dist/server/src/services/config/types.js.map +1 -0
- package/dist/server/src/services/logger/index.d.ts +30 -0
- package/dist/server/src/services/logger/index.js +179 -0
- package/dist/server/src/services/logger/index.js.map +1 -0
- package/dist/server/src/types.d.ts +4 -0
- package/dist/server/src/types.js +2 -0
- package/dist/server/src/types.js.map +1 -0
- package/dist/server/src/utils/packer.d.ts +2 -0
- package/dist/server/src/utils/packer.js +17 -0
- package/dist/server/src/utils/packer.js.map +1 -0
- package/dist/server/src/utils/pythonInstaller.d.ts +48 -0
- package/dist/server/src/utils/pythonInstaller.js +465 -0
- package/dist/server/src/utils/pythonInstaller.js.map +1 -0
- package/dist/server/src/utils/subscribed.d.ts +9 -0
- package/dist/server/src/utils/subscribed.js +17 -0
- package/dist/server/src/utils/subscribed.js.map +1 -0
- package/dist/server/src/utils/utils.d.ts +10 -0
- package/dist/server/src/utils/utils.js +165 -0
- package/dist/server/src/utils/utils.js.map +1 -0
- package/package.json +142 -0
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
|
2
|
+
var oop = require("../lib/oop");
|
|
3
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
4
|
+
var YamlHighlightRules = function () {
|
|
5
|
+
this.$rules = {
|
|
6
|
+
"start": [
|
|
7
|
+
{
|
|
8
|
+
token: "comment",
|
|
9
|
+
regex: "#.*$"
|
|
10
|
+
}, {
|
|
11
|
+
token: "list.markup",
|
|
12
|
+
regex: /^(?:-{3}|\.{3})\s*(?=#|$)/
|
|
13
|
+
}, {
|
|
14
|
+
token: "list.markup",
|
|
15
|
+
regex: /^\s*[\-?](?:$|\s)/
|
|
16
|
+
}, {
|
|
17
|
+
token: "constant",
|
|
18
|
+
regex: "!![\\w//]+"
|
|
19
|
+
}, {
|
|
20
|
+
token: "constant.language",
|
|
21
|
+
regex: "[&\\*][a-zA-Z0-9-_]+"
|
|
22
|
+
}, {
|
|
23
|
+
token: ["meta.tag", "keyword"],
|
|
24
|
+
regex: /^(\s*\w[^\s:]*?)(:(?=\s|$))/
|
|
25
|
+
}, {
|
|
26
|
+
token: ["meta.tag", "keyword"],
|
|
27
|
+
regex: /(\w[^\s:]*?)(\s*:(?=\s|$))/
|
|
28
|
+
}, {
|
|
29
|
+
token: "keyword.operator",
|
|
30
|
+
regex: "<<\\w*:\\w*"
|
|
31
|
+
}, {
|
|
32
|
+
token: "keyword.operator",
|
|
33
|
+
regex: "-\\s*(?=[{])"
|
|
34
|
+
}, {
|
|
35
|
+
token: "string", // single line
|
|
36
|
+
regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
|
37
|
+
}, {
|
|
38
|
+
token: "string", // multi line string start
|
|
39
|
+
regex: /[|>][-+\d]*(?:$|\s+(?:$|#))/,
|
|
40
|
+
onMatch: function (val, state, stack, line) {
|
|
41
|
+
line = line.replace(/ #.*/, "");
|
|
42
|
+
var indent = /^ *((:\s*)?-(\s*[^|>])?)?/.exec(line)[0]
|
|
43
|
+
.replace(/\S\s*$/, "").length;
|
|
44
|
+
var indentationIndicator = parseInt(/\d+[\s+-]*$/.exec(line));
|
|
45
|
+
if (indentationIndicator) {
|
|
46
|
+
indent += indentationIndicator - 1;
|
|
47
|
+
this.next = "mlString";
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.next = "mlStringPre";
|
|
51
|
+
}
|
|
52
|
+
if (!stack.length) {
|
|
53
|
+
stack.push(this.next);
|
|
54
|
+
stack.push(indent);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
stack[0] = this.next;
|
|
58
|
+
stack[1] = indent;
|
|
59
|
+
}
|
|
60
|
+
return this.token;
|
|
61
|
+
},
|
|
62
|
+
next: "mlString"
|
|
63
|
+
}, {
|
|
64
|
+
token: "string", // single quoted string
|
|
65
|
+
regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
|
66
|
+
}, {
|
|
67
|
+
token: "constant.numeric", // float
|
|
68
|
+
regex: /(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)$/
|
|
69
|
+
}, {
|
|
70
|
+
token: "constant.numeric", // other number
|
|
71
|
+
regex: /[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/
|
|
72
|
+
}, {
|
|
73
|
+
token: "constant.language.boolean",
|
|
74
|
+
regex: "\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"
|
|
75
|
+
}, {
|
|
76
|
+
token: "paren.lparen",
|
|
77
|
+
regex: "[[({]"
|
|
78
|
+
}, {
|
|
79
|
+
token: "paren.rparen",
|
|
80
|
+
regex: "[\\])}]"
|
|
81
|
+
}, {
|
|
82
|
+
token: "text",
|
|
83
|
+
regex: /[^\s,:\[\]\{\}]+/
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"mlStringPre": [
|
|
87
|
+
{
|
|
88
|
+
token: "indent",
|
|
89
|
+
regex: /^ *$/
|
|
90
|
+
}, {
|
|
91
|
+
token: "indent",
|
|
92
|
+
regex: /^ */,
|
|
93
|
+
onMatch: function (val, state, stack) {
|
|
94
|
+
var curIndent = stack[1];
|
|
95
|
+
if (curIndent >= val.length) {
|
|
96
|
+
this.next = "start";
|
|
97
|
+
stack.shift();
|
|
98
|
+
stack.shift();
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
stack[1] = val.length - 1;
|
|
102
|
+
this.next = stack[0] = "mlString";
|
|
103
|
+
}
|
|
104
|
+
return this.token;
|
|
105
|
+
},
|
|
106
|
+
next: "mlString"
|
|
107
|
+
}, {
|
|
108
|
+
defaultToken: "string"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"mlString": [
|
|
112
|
+
{
|
|
113
|
+
token: "indent",
|
|
114
|
+
regex: /^ *$/
|
|
115
|
+
}, {
|
|
116
|
+
token: "indent",
|
|
117
|
+
regex: /^ */,
|
|
118
|
+
onMatch: function (val, state, stack) {
|
|
119
|
+
var curIndent = stack[1];
|
|
120
|
+
if (curIndent >= val.length) {
|
|
121
|
+
this.next = "start";
|
|
122
|
+
stack.splice(0);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
this.next = "mlString";
|
|
126
|
+
}
|
|
127
|
+
return this.token;
|
|
128
|
+
},
|
|
129
|
+
next: "mlString"
|
|
130
|
+
}, {
|
|
131
|
+
token: "string",
|
|
132
|
+
regex: '.+'
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
};
|
|
136
|
+
this.normalizeRules();
|
|
137
|
+
};
|
|
138
|
+
oop.inherits(YamlHighlightRules, TextHighlightRules);
|
|
139
|
+
exports.YamlHighlightRules = YamlHighlightRules;
|
|
140
|
+
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module){"use strict";
|
|
144
|
+
var Range = require("../range").Range;
|
|
145
|
+
var MatchingBraceOutdent = function () { };
|
|
146
|
+
(function () {
|
|
147
|
+
this.checkOutdent = function (line, input) {
|
|
148
|
+
if (!/^\s+$/.test(line))
|
|
149
|
+
return false;
|
|
150
|
+
return /^\s*\}/.test(input);
|
|
151
|
+
};
|
|
152
|
+
this.autoOutdent = function (doc, row) {
|
|
153
|
+
var line = doc.getLine(row);
|
|
154
|
+
var match = line.match(/^(\s*\})/);
|
|
155
|
+
if (!match)
|
|
156
|
+
return 0;
|
|
157
|
+
var column = match[1].length;
|
|
158
|
+
var openBracePos = doc.findMatchingBracket({ row: row, column: column });
|
|
159
|
+
if (!openBracePos || openBracePos.row == row)
|
|
160
|
+
return 0;
|
|
161
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
|
162
|
+
doc.replace(new Range(row, 0, row, column - 1), indent);
|
|
163
|
+
};
|
|
164
|
+
this.$getIndent = function (line) {
|
|
165
|
+
return line.match(/^\s*/)[0];
|
|
166
|
+
};
|
|
167
|
+
}).call(MatchingBraceOutdent.prototype);
|
|
168
|
+
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
|
169
|
+
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module){"use strict";
|
|
173
|
+
var oop = require("../../lib/oop");
|
|
174
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
|
175
|
+
var Range = require("../../range").Range;
|
|
176
|
+
var FoldMode = exports.FoldMode = function () { };
|
|
177
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
|
178
|
+
(function () {
|
|
179
|
+
this.commentBlock = function (session, row) {
|
|
180
|
+
var re = /\S/;
|
|
181
|
+
var line = session.getLine(row);
|
|
182
|
+
var startLevel = line.search(re);
|
|
183
|
+
if (startLevel == -1 || line[startLevel] != "#")
|
|
184
|
+
return;
|
|
185
|
+
var startColumn = line.length;
|
|
186
|
+
var maxRow = session.getLength();
|
|
187
|
+
var startRow = row;
|
|
188
|
+
var endRow = row;
|
|
189
|
+
while (++row < maxRow) {
|
|
190
|
+
line = session.getLine(row);
|
|
191
|
+
var level = line.search(re);
|
|
192
|
+
if (level == -1)
|
|
193
|
+
continue;
|
|
194
|
+
if (line[level] != "#")
|
|
195
|
+
break;
|
|
196
|
+
endRow = row;
|
|
197
|
+
}
|
|
198
|
+
if (endRow > startRow) {
|
|
199
|
+
var endColumn = session.getLine(endRow).length;
|
|
200
|
+
return new Range(startRow, startColumn, endRow, endColumn);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
this.getFoldWidgetRange = function (session, foldStyle, row) {
|
|
204
|
+
var range = this.indentationBlock(session, row);
|
|
205
|
+
if (range)
|
|
206
|
+
return range;
|
|
207
|
+
range = this.commentBlock(session, row);
|
|
208
|
+
if (range)
|
|
209
|
+
return range;
|
|
210
|
+
};
|
|
211
|
+
this.getFoldWidget = function (session, foldStyle, row) {
|
|
212
|
+
var line = session.getLine(row);
|
|
213
|
+
var indent = line.search(/\S/);
|
|
214
|
+
var next = session.getLine(row + 1);
|
|
215
|
+
var prev = session.getLine(row - 1);
|
|
216
|
+
var prevIndent = prev.search(/\S/);
|
|
217
|
+
var nextIndent = next.search(/\S/);
|
|
218
|
+
if (indent == -1) {
|
|
219
|
+
session.foldWidgets[row - 1] = prevIndent != -1 && prevIndent < nextIndent ? "start" : "";
|
|
220
|
+
return "";
|
|
221
|
+
}
|
|
222
|
+
if (prevIndent == -1) {
|
|
223
|
+
if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
|
|
224
|
+
session.foldWidgets[row - 1] = "";
|
|
225
|
+
session.foldWidgets[row + 1] = "";
|
|
226
|
+
return "start";
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
|
|
230
|
+
if (session.getLine(row - 2).search(/\S/) == -1) {
|
|
231
|
+
session.foldWidgets[row - 1] = "start";
|
|
232
|
+
session.foldWidgets[row + 1] = "";
|
|
233
|
+
return "";
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
if (prevIndent != -1 && prevIndent < indent)
|
|
237
|
+
session.foldWidgets[row - 1] = "start";
|
|
238
|
+
else
|
|
239
|
+
session.foldWidgets[row - 1] = "";
|
|
240
|
+
if (indent < nextIndent)
|
|
241
|
+
return "start";
|
|
242
|
+
else
|
|
243
|
+
return "";
|
|
244
|
+
};
|
|
245
|
+
}).call(FoldMode.prototype);
|
|
246
|
+
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
ace.define("ace/mode/folding/yaml",["require","exports","module","ace/lib/oop","ace/mode/folding/coffee","ace/range"], function(require, exports, module){"use strict";
|
|
250
|
+
var oop = require("../../lib/oop");
|
|
251
|
+
var CoffeeFoldMode = require("./coffee").FoldMode;
|
|
252
|
+
var Range = require("../../range").Range;
|
|
253
|
+
var FoldMode = exports.FoldMode = function () { };
|
|
254
|
+
oop.inherits(FoldMode, CoffeeFoldMode);
|
|
255
|
+
(function () {
|
|
256
|
+
this.getFoldWidgetRange = function (session, foldStyle, row) {
|
|
257
|
+
var re = /\S/;
|
|
258
|
+
var line = session.getLine(row);
|
|
259
|
+
var startLevel = line.search(re);
|
|
260
|
+
var isCommentFold = line[startLevel] === "#";
|
|
261
|
+
var isDashFold = line[startLevel] === "-";
|
|
262
|
+
if (startLevel == -1)
|
|
263
|
+
return;
|
|
264
|
+
var startColumn = line.length;
|
|
265
|
+
var maxRow = session.getLength();
|
|
266
|
+
var startRow = row;
|
|
267
|
+
var endRow = row;
|
|
268
|
+
if (isCommentFold) {
|
|
269
|
+
var range = this.commentBlock(session, row);
|
|
270
|
+
if (range)
|
|
271
|
+
return range;
|
|
272
|
+
}
|
|
273
|
+
else if (isDashFold) {
|
|
274
|
+
var range = this.indentationBlock(session, row);
|
|
275
|
+
if (range)
|
|
276
|
+
return range;
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
while (++row < maxRow) {
|
|
280
|
+
var line = session.getLine(row);
|
|
281
|
+
var level = line.search(re);
|
|
282
|
+
if (level == -1)
|
|
283
|
+
continue;
|
|
284
|
+
if (level <= startLevel && line[startLevel] !== '-') {
|
|
285
|
+
var token = session.getTokenAt(row, 0);
|
|
286
|
+
if (!token || token.type !== "string")
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
endRow = row;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
if (endRow > startRow) {
|
|
293
|
+
var endColumn = session.getLine(endRow).length;
|
|
294
|
+
return new Range(startRow, startColumn, endRow, endColumn);
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
this.getFoldWidget = function (session, foldStyle, row) {
|
|
298
|
+
var line = session.getLine(row);
|
|
299
|
+
var indent = line.search(/\S/);
|
|
300
|
+
var next = session.getLine(row + 1);
|
|
301
|
+
var prev = session.getLine(row - 1);
|
|
302
|
+
var prevIndent = prev.search(/\S/);
|
|
303
|
+
var nextIndent = next.search(/\S/);
|
|
304
|
+
var lineStartsWithDash = line[indent] === '-';
|
|
305
|
+
if (indent == -1) {
|
|
306
|
+
session.foldWidgets[row - 1] = prevIndent != -1 && prevIndent < nextIndent ? "start" : "";
|
|
307
|
+
return "";
|
|
308
|
+
}
|
|
309
|
+
if (prevIndent == -1) {
|
|
310
|
+
if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
|
|
311
|
+
session.foldWidgets[row - 1] = "";
|
|
312
|
+
session.foldWidgets[row + 1] = "";
|
|
313
|
+
return "start";
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
|
|
317
|
+
if (session.getLine(row - 2).search(/\S/) == -1) {
|
|
318
|
+
session.foldWidgets[row - 1] = "start";
|
|
319
|
+
session.foldWidgets[row + 1] = "";
|
|
320
|
+
return "";
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if (prevIndent != -1 && prevIndent < indent) {
|
|
324
|
+
session.foldWidgets[row - 1] = "start";
|
|
325
|
+
}
|
|
326
|
+
else if (prevIndent != -1 && (prevIndent == indent && lineStartsWithDash)) {
|
|
327
|
+
session.foldWidgets[row - 1] = "start";
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
session.foldWidgets[row - 1] = "";
|
|
331
|
+
}
|
|
332
|
+
if (indent < nextIndent)
|
|
333
|
+
return "start";
|
|
334
|
+
else
|
|
335
|
+
return "";
|
|
336
|
+
};
|
|
337
|
+
}).call(FoldMode.prototype);
|
|
338
|
+
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/yaml","ace/worker/worker_client"], function(require, exports, module){"use strict";
|
|
342
|
+
var oop = require("../lib/oop");
|
|
343
|
+
var TextMode = require("./text").Mode;
|
|
344
|
+
var YamlHighlightRules = require("./yaml_highlight_rules").YamlHighlightRules;
|
|
345
|
+
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
|
346
|
+
var FoldMode = require("./folding/yaml").FoldMode;
|
|
347
|
+
var WorkerClient = require("../worker/worker_client").WorkerClient;
|
|
348
|
+
var Mode = function () {
|
|
349
|
+
this.HighlightRules = YamlHighlightRules;
|
|
350
|
+
this.$outdent = new MatchingBraceOutdent();
|
|
351
|
+
this.foldingRules = new FoldMode();
|
|
352
|
+
this.$behaviour = this.$defaultBehaviour;
|
|
353
|
+
};
|
|
354
|
+
oop.inherits(Mode, TextMode);
|
|
355
|
+
(function () {
|
|
356
|
+
this.lineCommentStart = ["#"];
|
|
357
|
+
this.getNextLineIndent = function (state, line, tab) {
|
|
358
|
+
var indent = this.$getIndent(line);
|
|
359
|
+
if (state == "start") {
|
|
360
|
+
var match = line.match(/^.*[\{\(\[]\s*$/);
|
|
361
|
+
if (match) {
|
|
362
|
+
indent += tab;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return indent;
|
|
366
|
+
};
|
|
367
|
+
this.checkOutdent = function (state, line, input) {
|
|
368
|
+
return this.$outdent.checkOutdent(line, input);
|
|
369
|
+
};
|
|
370
|
+
this.autoOutdent = function (state, doc, row) {
|
|
371
|
+
this.$outdent.autoOutdent(doc, row);
|
|
372
|
+
};
|
|
373
|
+
this.createWorker = function (session) {
|
|
374
|
+
var worker = new WorkerClient(["ace"], "ace/mode/yaml_worker", "YamlWorker");
|
|
375
|
+
worker.attachToDocument(session.getDocument());
|
|
376
|
+
worker.on("annotate", function (results) {
|
|
377
|
+
session.setAnnotations(results.data);
|
|
378
|
+
});
|
|
379
|
+
worker.on("terminate", function () {
|
|
380
|
+
session.clearAnnotations();
|
|
381
|
+
});
|
|
382
|
+
return worker;
|
|
383
|
+
};
|
|
384
|
+
this.$id = "ace/mode/yaml";
|
|
385
|
+
}).call(Mode.prototype);
|
|
386
|
+
exports.Mode = Mode;
|
|
387
|
+
|
|
388
|
+
}); (function() {
|
|
389
|
+
ace.require(["ace/mode/yaml"], function(m) {
|
|
390
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
391
|
+
module.exports = m;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
})();
|
|
395
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as w,g as x}from"./@xterm-B4Ga69iL.js";var C={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
2
|
+
* @license MIT */(function(k,N){(function(t,i){k.exports=i()})(w,function(){var t={};t.version="0.2.0";var i=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};t.configure=function(r){var e,n;for(e in r)n=r[e],n!==void 0&&r.hasOwnProperty(e)&&(i[e]=n);return this},t.status=null,t.set=function(r){var e=t.isStarted();r=m(r,i.minimum,1),t.status=r===1?null:r;var n=t.render(!e),o=n.querySelector(i.barSelector),a=i.speed,f=i.easing;return n.offsetWidth,T(function(s){i.positionUsing===""&&(i.positionUsing=t.getPositioningCSS()),g(o,P(r,a,f)),r===1?(g(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){g(n,{transition:"all "+a+"ms linear",opacity:0}),setTimeout(function(){t.remove(),s()},a)},a)):setTimeout(s,a)}),this},t.isStarted=function(){return typeof t.status=="number"},t.start=function(){t.status||t.set(0);var r=function(){setTimeout(function(){t.status&&(t.trickle(),r())},i.trickleSpeed)};return i.trickle&&r(),this},t.done=function(r){return!r&&!t.status?this:t.inc(.3+.5*Math.random()).set(1)},t.inc=function(r){var e=t.status;return e?(typeof r!="number"&&(r=(1-e)*m(Math.random()*e,.1,.95)),e=m(e+r,0,.994),t.set(e)):t.start()},t.trickle=function(){return t.inc(Math.random()*i.trickleRate)},function(){var r=0,e=0;t.promise=function(n){return!n||n.state()==="resolved"?this:(e===0&&t.start(),r++,e++,n.always(function(){e--,e===0?(r=0,t.done()):t.set((r-e)/r)}),this)}}(),t.render=function(r){if(t.isRendered())return document.getElementById("nprogress");h(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=i.template;var n=e.querySelector(i.barSelector),o=r?"-100":p(t.status||0),a=document.querySelector(i.parent),f;return g(n,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),i.showSpinner||(f=e.querySelector(i.spinnerSelector),f&&b(f)),a!=document.body&&h(a,"nprogress-custom-parent"),a.appendChild(e),e},t.remove=function(){S(document.documentElement,"nprogress-busy"),S(document.querySelector(i.parent),"nprogress-custom-parent");var r=document.getElementById("nprogress");r&&b(r)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var r=document.body.style,e="WebkitTransform"in r?"Webkit":"MozTransform"in r?"Moz":"msTransform"in r?"ms":"OTransform"in r?"O":"";return e+"Perspective"in r?"translate3d":e+"Transform"in r?"translate":"margin"};function m(r,e,n){return r<e?e:r>n?n:r}function p(r){return(-1+r)*100}function P(r,e,n){var o;return i.positionUsing==="translate3d"?o={transform:"translate3d("+p(r)+"%,0,0)"}:i.positionUsing==="translate"?o={transform:"translate("+p(r)+"%,0)"}:o={"margin-left":p(r)+"%"},o.transition="all "+e+"ms "+n,o}var T=function(){var r=[];function e(){var n=r.shift();n&&n(e)}return function(n){r.push(n),r.length==1&&e()}}(),g=function(){var r=["Webkit","O","Moz","ms"],e={};function n(s){return s.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(u,c){return c.toUpperCase()})}function o(s){var u=document.body.style;if(s in u)return s;for(var c=r.length,d=s.charAt(0).toUpperCase()+s.slice(1),l;c--;)if(l=r[c]+d,l in u)return l;return s}function a(s){return s=n(s),e[s]||(e[s]=o(s))}function f(s,u,c){u=a(u),s.style[u]=c}return function(s,u){var c=arguments,d,l;if(c.length==2)for(d in u)l=u[d],l!==void 0&&u.hasOwnProperty(d)&&f(s,d,l);else f(s,c[1],c[2])}}();function y(r,e){var n=typeof r=="string"?r:v(r);return n.indexOf(" "+e+" ")>=0}function h(r,e){var n=v(r),o=n+e;y(n,e)||(r.className=o.substring(1))}function S(r,e){var n=v(r),o;y(r,e)&&(o=n.replace(" "+e+" "," "),r.className=o.substring(1,o.length-1))}function v(r){return(" "+(r.className||"")+" ").replace(/\s+/gi," ")}function b(r){r&&r.parentNode&&r.parentNode.removeChild(r)}return t})})(C);var E=C.exports;const U=x(E);export{U as n};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{A as B,r as M,G as z,a as $,w as T,b as tt,i as E,H as W,I as D,h as et,B as st,s as nt,o as ot,z as ct,t as rt,c as ut}from"./@vue-C7-KaDG4.js";var at=!1;/*!
|
|
2
|
+
* pinia v2.2.0
|
|
3
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/let J;const p=t=>J=t,K=Symbol();function L(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var x;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(x||(x={}));function St(){const t=B(!0),o=t.run(()=>M({}));let s=[],e=[];const r=z({install(u){p(r),r._a=u,u.provide(K,r),u.config.globalProperties.$pinia=r,e.forEach(f=>s.push(f)),e=[]},use(u){return!this._a&&!at?e.push(u):s.push(u),this},_p:s,_a:null,_e:t,_s:new Map,state:o});return r}const q=()=>{};function H(t,o,s,e=q){t.push(o);const r=()=>{const u=t.indexOf(o);u>-1&&(t.splice(u,1),e())};return!s&&nt()&&ot(r),r}function P(t,...o){t.slice().forEach(s=>{s(...o)})}const ft=t=>t(),V=Symbol(),k=Symbol();function O(t,o){t instanceof Map&&o instanceof Map?o.forEach((s,e)=>t.set(e,s)):t instanceof Set&&o instanceof Set&&o.forEach(t.add,t);for(const s in o){if(!o.hasOwnProperty(s))continue;const e=o[s],r=t[s];L(r)&&L(e)&&t.hasOwnProperty(s)&&!E(e)&&!W(e)?t[s]=O(r,e):t[s]=e}return t}const it=Symbol();function lt(t){return!L(t)||!t.hasOwnProperty(it)}const{assign:y}=Object;function ht(t){return!!(E(t)&&t.effect)}function bt(t,o,s,e){const{state:r,actions:u,getters:f}=o,a=s.state.value[t];let C;function b(){a||(s.state.value[t]=r?r():{});const v=rt(s.state.value[t]);return y(v,u,Object.keys(f||{}).reduce((S,_)=>(S[_]=z(ut(()=>{p(s);const m=s._s.get(t);return f[_].call(m,m)})),S),{}))}return C=G(t,b,o,s,e,!0),C}function G(t,o,s={},e,r,u){let f;const a=y({actions:{}},s),C={deep:!0};let b,v,S=[],_=[],m;const d=e.state.value[t];!u&&!d&&(e.state.value[t]={}),M({});let N;function A(c){let n;b=v=!1,typeof c=="function"?(c(e.state.value[t]),n={type:x.patchFunction,storeId:t,events:m}):(O(e.state.value[t],c),n={type:x.patchObject,payload:c,storeId:t,events:m});const i=N=Symbol();ct().then(()=>{N===i&&(b=!0)}),v=!0,P(S,n,e.state.value[t])}const Q=u?function(){const{state:n}=s,i=n?n():{};this.$patch(j=>{y(j,i)})}:q;function U(){f.stop(),S=[],_=[],e._s.delete(t)}const F=(c,n="")=>{if(V in c)return c[k]=n,c;const i=function(){p(e);const j=Array.from(arguments),w=[],I=[];function Y(l){w.push(l)}function Z(l){I.push(l)}P(_,{args:j,name:i[k],store:h,after:Y,onError:Z});let R;try{R=c.apply(this&&this.$id===t?this:h,j)}catch(l){throw P(I,l),l}return R instanceof Promise?R.then(l=>(P(w,l),l)).catch(l=>(P(I,l),Promise.reject(l))):(P(w,R),R)};return i[V]=!0,i[k]=n,i},X={_p:e,$id:t,$onAction:H.bind(null,_),$patch:A,$reset:Q,$subscribe(c,n={}){const i=H(S,c,n.detached,()=>j()),j=f.run(()=>T(()=>e.state.value[t],w=>{(n.flush==="sync"?v:b)&&c({storeId:t,type:x.direct,events:m},w)},y({},C,n)));return i},$dispose:U},h=tt(X);e._s.set(t,h);const g=(e._a&&e._a.runWithContext||ft)(()=>e._e.run(()=>(f=B()).run(()=>o({action:F}))));for(const c in g){const n=g[c];if(E(n)&&!ht(n)||W(n))u||(d&<(n)&&(E(n)?n.value=d[c]:O(n,d[c])),e.state.value[t][c]=n);else if(typeof n=="function"){const i=F(n,c);g[c]=i,a.actions[c]=n}}return y(h,g),y(D(h),g),Object.defineProperty(h,"$state",{get:()=>e.state.value[t],set:c=>{A(n=>{y(n,c)})}}),e._p.forEach(c=>{y(h,f.run(()=>c({store:h,app:e._a,pinia:e,options:a})))}),d&&u&&s.hydrate&&s.hydrate(h.$state,d),b=!0,v=!0,h}function _t(t,o,s){let e,r;const u=typeof o=="function";typeof t=="string"?(e=t,r=u?s:o):(r=t,e=t.id);function f(a,C){const b=et();return a=a||(b?$(K,null):null),a&&p(a),a=J,a._s.has(e)||(u?G(e,o,r,a):bt(e,r,a)),a._s.get(e)}return f.$id=e,f}function mt(t){{t=D(t);const o={};for(const s in t){const e=t[s];(E(e)||W(e))&&(o[s]=st(t,s))}return o}}export{St as c,_t as d,mt as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var y=Object.defineProperty;var p=(t,n,e)=>n in t?y(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var g=(t,n,e)=>p(t,typeof n!="symbol"?n+"":n,e);import{i as o}from"./vue3-toastify-Ul-rf53I.js";import{i as l,x as s}from"./main-C4rYiRNz.js";import{u as d,b as i,a as r}from"./@tanstack-BqH4GyO-.js";import{r as m,u}from"./@vue-C7-KaDG4.js";const P=async({pluginData:t})=>(await s.post("/plugins",t)).data,Q=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}`,{signal:n})).data,b=async({pluginname:t,signal:n})=>(await s.get(`/plugins/${t}/versions`,{signal:n})).data,h=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/update`,{signal:n})).data,q=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/logo`,{signal:n})).data,F=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/schema`,{signal:n})).data,w=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/config`,{signal:n})).data,f=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/contract`,{signal:n})).data,v=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/readme`,{signal:n})).data,C=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/changelog`,{signal:n})).data,K=async({pluginName:t,signal:n})=>(await s.get(`/plugins/${t}/release`,{signal:n})).data,_=async({pluginName:t,parameter:n,signal:e})=>(await s.get(`/plugins/${t}/interface`,{params:n,signal:e})).data,$=async({parameter:t,signal:n})=>(await s.get("/plugins",{params:t,signal:n})).data,A=async({parameter:t,signal:n})=>(await s.get("/plugins/extensions",{params:t,signal:n})).data,S=async({query:t,parameter:n,signal:e})=>(await s.get("/plugins/search",{params:{...t,...n},signal:e})).data,L=async({pluginName:t})=>(await s.put(`/plugins/${t}/enable`)).data,x=async({pluginName:t,configData:n})=>(await s.patch(`/plugins/${t}/config`,n)).data,R=async({pluginName:t})=>(await s.put(`/plugins/${t}/disable`)).data,N=async({pluginName:t})=>(await s.put(`/plugins/${t}/start`)).data,I=async({pluginName:t})=>(await s.put(`/plugins/${t}/stop`)).data,J=async({pluginName:t})=>(await s.put(`/plugins/${t}/restart`)).data,E=async({pluginName:t,formData:n})=>(await s.post(`/plugins/${t}/detect/motion`,n,{responseType:"arraybuffer"})).data,U=async({pluginName:t,formData:n})=>(await s.post(`/plugins/${t}/detect/objects`,n)).data,V=async({pluginName:t,formData:n})=>(await s.post(`/plugins/${t}/detect/audio`,n)).data,j=async({pluginName:t,actionId:n,payload:e})=>(await s.post(`/plugins/${t}/submit`,{actionId:n,payload:e})).data,D=async({pluginName:t,removeStorage:n})=>(await s.delete(`/plugins/${t}`,{params:{removeStorage:n}})).data,M=async()=>(await s.delete("/plugins")).data;class G{constructor(){g(this,"_queryClient",d());g(this,"queryActivator",m([{name:"getPluginQuery",enabled:!0},{name:"getPluginsQuery",enabled:!0},{name:"getPluginsExtensionsQuery",enabled:!0},{name:"searchPluginsQuery",enabled:!0},{name:"getPluginVersionsQuery",enabled:!0},{name:"getPluginUpdateQuery",enabled:!0},{name:"getPluginLogoQuery",enabled:!0},{name:"getPluginSchemaQuery",enabled:!0},{name:"getPluginConfigJsonQuery",enabled:!0},{name:"getPluginContractQuery",enabled:!0},{name:"getPluginReadmeQuery",enabled:!0},{name:"getPluginReleaseQuery",enabled:!0},{name:"getPluginInterfaceQuery",enabled:!0},{name:"getPluginChangelogQuery",enabled:!0}]))}get queryClient(){return this._queryClient}installPluginQuery(){return i({mutationFn:P,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),o.success(l.global.t("components.toast.plugin_added"))}})}getPluginQuery(n){return r({queryKey:["plugins",n],queryFn:({signal:e})=>Q({pluginName:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginQuery"&&e.enabled)})}getPluginsQuery(n){return r({queryKey:["pluginsList",n],queryFn:({signal:e})=>$({parameter:u(n),signal:e}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginsQuery"&&e.enabled)})}getPluginsExtensionsQuery(n){return r({queryKey:["extensionsList",n],queryFn:({signal:e})=>A({parameter:u(n),signal:e}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginsExtensionsQuery"&&e.enabled)})}searchPluginsQuery(n,e){return r({queryKey:["pluginsSearch",n,e],queryFn:({signal:a})=>S({query:u(n),parameter:u(e),signal:a}),placeholderData:a=>a,enabled:()=>this.queryActivator.value.some(a=>a.name==="searchPluginsQuery"&&a.enabled)})}getPluginVersionsQuery(n){return r({queryKey:["plugins",n,"versions"],queryFn:({signal:e})=>b({pluginname:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginVersionsQuery"&&e.enabled)})}getPluginUpdateQuery(n){return r({queryKey:["plugins",n,"update"],queryFn:({signal:e})=>h({pluginName:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginUpdateQuery"&&e.enabled)})}getPluginLogoQuery(n){return r({queryKey:["plugins",n,"logo"],queryFn:({signal:e})=>q({pluginName:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginLogoQuery"&&e.enabled)})}getPluginSchemaQuery(n){return r({queryKey:["plugins",n,"schema"],queryFn:({signal:e})=>F({pluginName:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginSchemaQuery"&&e.enabled)})}getPluginConfigJsonQuery(n){return r({queryKey:["plugins",n,"config"],queryFn:({signal:e})=>w({pluginName:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginConfigJsonQuery"&&e.enabled)})}getPluginContractQuery(n){return r({queryKey:["plugins",n,"contract"],queryFn:({signal:e})=>f({pluginName:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginContractQuery"&&e.enabled)})}getPluginReadmeQuery(n){return r({queryKey:["plugins",n,"readme"],queryFn:({signal:e})=>v({pluginName:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginReadmeQuery"&&e.enabled)})}getPluginReleaseQuery(n){return r({queryKey:["plugins",n,"release"],queryFn:({signal:e})=>K({pluginName:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginReleaseQuery"&&e.enabled)})}getPluginInterfaceQuery(n,e){return r({queryKey:["plugins",n,"interface",e],queryFn:({signal:a})=>_({pluginName:u(n),parameter:e,signal:a}),enabled:()=>this.queryActivator.value.some(a=>a.name==="getPluginInterfaceQuery"&&a.enabled)})}getPluginChangelogQuery(n){return r({queryKey:["plugins",n,"changelog"],queryFn:({signal:e})=>C({pluginName:u(n),signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getPluginChangelogQuery"&&e.enabled)})}patchPluginConfigQuery(){return i({mutationFn:x,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_config_updated"))}})}startPluginQuery(){return i({mutationFn:N,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_started"))}})}stopPluginQuery(){return i({mutationFn:I,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_stopped"))}})}restartPluginQuery(){return i({mutationFn:J,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_restarted"))}})}detectMotionQuery(){return i({mutationFn:E})}detectObjectsQuery(){return i({mutationFn:U})}detectAudioQuery(){return i({mutationFn:V})}actionButtonQuery(){return i({mutationFn:j,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_request_sent"))}})}enablePluginQuery(){return i({mutationFn:L,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_enabled"))}})}disablePluginQuery(){return i({mutationFn:R,onSuccess:async(n,e)=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),await this._queryClient.refetchQueries({queryKey:["plugins",e.pluginName]}),o.success(l.global.t("components.toast.plugin_disabled"))}})}uninstallPluginQuery(){return i({mutationFn:D,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),o.success(l.global.t("components.toast.plugin_removed"))}})}uninstallPluginsQuery(){return i({mutationFn:M,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["pluginsList"]}),o.success(l.global.t("components.toast.plugins_removed"))}})}toggleQueryActivator(n,e){const a=this.queryActivator.value.find(c=>c.name===n);a&&(a.enabled=e)}}export{G as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const M="-",B=/^xn--/,S=/[^\0-\x7F]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=35,u=Math.floor,g=String.fromCharCode;function d(t){throw new RangeError(D[t])}function E(t,n){const o=[];let e=t.length;for(;e--;)o[e]=n(t[e]);return o}function m(t,n){const o=t.split("@");let e="";o.length>1&&(e=o[0]+"@",t=o[1]),t=t.replace(T,".");const s=t.split("."),c=E(s,n).join(".");return e+c}function v(t){const n=[];let o=0;const e=t.length;for(;o<e;){const s=t.charCodeAt(o++);if(s>=55296&&s<=56319&&o<e){const c=t.charCodeAt(o++);(c&64512)==56320?n.push(((s&1023)<<10)+(c&1023)+65536):(n.push(s),o--)}else n.push(s)}return n}const L=t=>String.fromCodePoint(...t),N=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36},I=function(t,n){return t+22+75*(t<26)-((n!=0)<<5)},F=function(t,n,o){let e=0;for(t=o?u(t/700):t>>1,t+=u(t/n);t>C*26>>1;e+=36)t=u(t/C);return u(e+(C+1)*t/(t+38))},A=function(t){const n=[],o=t.length;let e=0,s=128,c=72,l=t.lastIndexOf(M);l<0&&(l=0);for(let i=0;i<l;++i)t.charCodeAt(i)>=128&&d("not-basic"),n.push(t.charCodeAt(i));for(let i=l>0?l+1:0;i<o;){const r=e;for(let a=1,f=36;;f+=36){i>=o&&d("invalid-input");const x=N(t.charCodeAt(i++));x>=36&&d("invalid-input"),x>u((2147483647-e)/a)&&d("overflow"),e+=x*a;const p=f<=c?1:f>=c+26?26:f-c;if(x<p)break;const b=36-p;a>u(2147483647/b)&&d("overflow"),a*=b}const h=n.length+1;c=F(e-r,h,r==0),u(e/h)>2147483647-s&&d("overflow"),s+=u(e/h),e%=h,n.splice(e++,0,s)}return String.fromCodePoint(...n)},k=function(t){const n=[];t=v(t);const o=t.length;let e=128,s=0,c=72;for(const r of t)r<128&&n.push(g(r));const l=n.length;let i=l;for(l&&n.push(M);i<o;){let r=2147483647;for(const a of t)a>=e&&a<r&&(r=a);const h=i+1;r-e>u((2147483647-s)/h)&&d("overflow"),s+=(r-e)*h,e=r;for(const a of t)if(a<e&&++s>2147483647&&d("overflow"),a===e){let f=s;for(let x=36;;x+=36){const p=x<=c?1:x>=c+26?26:x-c;if(f<p)break;const b=f-p,w=36-p;n.push(g(I(p+b%w,0))),f=u(b/w)}n.push(g(I(f,0))),c=F(s,h,i===l),s=0,++i}++s,++e}return n.join("")},j=function(t){return m(t,function(n){return B.test(n)?A(n.slice(4).toLowerCase()):n})},O=function(t){return m(t,function(n){return S.test(n)?"xn--"+k(n):n})},V={version:"2.3.1",ucs2:{decode:v,encode:L},decode:A,encode:k,toASCII:O,toUnicode:j};export{V as p};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{e as bt}from"./encode-utf8-Cn5aGd7v.js";import{d as Pt}from"./dijkstrajs-D_NXgYpA.js";var O={},Rt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},dt={},N={};let it;const Lt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];N.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};N.getSymbolTotalCodewords=function(t){return Lt[t]};N.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};N.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');it=t};N.isKanjiModeEnabled=function(){return typeof it<"u"};N.toSJIS=function(t){return it(t)};var G={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return t(o)}catch{return n}}})(G);function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i<t;i++)this.putBit((e>>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Ut=ht;function K(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}K.prototype.set=function(e,t,i,o){const n=e*this.size+t;this.data[n]=i,o&&(this.reservedBit[n]=!0)};K.prototype.get=function(e,t){return this.data[e*this.size+t]};K.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};K.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Dt=K,wt={};(function(e){const t=N.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,r=t(o),s=r===145?26:Math.ceil((r-13)/(2*n-2))*2,c=[r-7];for(let u=1;u<n-1;u++)c[u]=c[u-1]-s;return c.push(6),c.reverse()},e.getPositions=function(o){const n=[],r=e.getRowColCoords(o),s=r.length;for(let c=0;c<s;c++)for(let u=0;u<s;u++)c===0&&u===0||c===0&&u===s-1||c===s-1&&u===0||n.push([r[c],r[u]]);return n}})(wt);var mt={};const Ft=N.getSymbolSize,at=7;mt.getPositions=function(t){const i=Ft(t);return[[0,0],[i-at,0],[0,i-at]]};var Et={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const r=n.size;let s=0,c=0,u=0,l=null,a=null;for(let A=0;A<r;A++){c=u=0,l=a=null;for(let w=0;w<r;w++){let g=n.get(A,w);g===l?c++:(c>=5&&(s+=t.N1+(c-5)),l=g,c=1),g=n.get(w,A),g===a?u++:(u>=5&&(s+=t.N1+(u-5)),a=g,u=1)}c>=5&&(s+=t.N1+(c-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(n){const r=n.size;let s=0;for(let c=0;c<r-1;c++)for(let u=0;u<r-1;u++){const l=n.get(c,u)+n.get(c,u+1)+n.get(c+1,u)+n.get(c+1,u+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(n){const r=n.size;let s=0,c=0,u=0;for(let l=0;l<r;l++){c=u=0;for(let a=0;a<r;a++)c=c<<1&2047|n.get(l,a),a>=10&&(c===1488||c===93)&&s++,u=u<<1&2047|n.get(a,l),a>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(n){let r=0;const s=n.data.length;for(let u=0;u<s;u++)r+=n.data[u];return Math.abs(Math.ceil(r*100/s/5)-10)*t.N4};function i(o,n,r){switch(o){case e.Patterns.PATTERN000:return(n+r)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return r%3===0;case e.Patterns.PATTERN011:return(n+r)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case e.Patterns.PATTERN101:return n*r%2+n*r%3===0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(n,r){const s=r.size;for(let c=0;c<s;c++)for(let u=0;u<s;u++)r.isReserved(u,c)||r.xor(u,c,i(n,u,c))},e.getBestMask=function(n,r){const s=Object.keys(e.Patterns).length;let c=0,u=1/0;for(let l=0;l<s;l++){r(l),e.applyMask(l,n);const a=e.getPenaltyN1(n)+e.getPenaltyN2(n)+e.getPenaltyN3(n)+e.getPenaltyN4(n);e.applyMask(l,n),a<u&&(u=a,c=l)}return c}})(Et);var j={};const R=G,J=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Y=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];j.getBlocksCount=function(t,i){switch(i){case R.L:return J[(t-1)*4+0];case R.M:return J[(t-1)*4+1];case R.Q:return J[(t-1)*4+2];case R.H:return J[(t-1)*4+3];default:return}};j.getTotalCodewordsCount=function(t,i){switch(i){case R.L:return Y[(t-1)*4+0];case R.M:return Y[(t-1)*4+1];case R.Q:return Y[(t-1)*4+2];case R.H:return Y[(t-1)*4+3];default:return}};var Ct={},v={};const V=new Uint8Array(512),$=new Uint8Array(256);(function(){let t=1;for(let i=0;i<255;i++)V[i]=t,$[t]=i,t<<=1,t&256&&(t^=285);for(let i=255;i<512;i++)V[i]=V[i-255]})();v.log=function(t){if(t<1)throw new Error("log("+t+")");return $[t]};v.exp=function(t){return V[t]};v.mul=function(t,i){return t===0||i===0?0:V[$[t]+$[i]]};(function(e){const t=v;e.mul=function(o,n){const r=new Uint8Array(o.length+n.length-1);for(let s=0;s<o.length;s++)for(let c=0;c<n.length;c++)r[s+c]^=t.mul(o[s],n[c]);return r},e.mod=function(o,n){let r=new Uint8Array(o);for(;r.length-n.length>=0;){const s=r[0];for(let u=0;u<n.length;u++)r[u]^=t.mul(n[u],s);let c=0;for(;c<r.length&&r[c]===0;)c++;r=r.slice(c)}return r},e.generateECPolynomial=function(o){let n=new Uint8Array([1]);for(let r=0;r<o;r++)n=e.mul(n,new Uint8Array([1,t.exp(r)]));return n}})(Ct);const yt=Ct;function st(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}st.prototype.initialize=function(t){this.degree=t,this.genPoly=yt.generateECPolynomial(this.degree)};st.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const o=yt.mod(i,this.genPoly),n=this.degree-o.length;if(n>0){const r=new Uint8Array(this.degree);return r.set(o,n),r}return o};var kt=st,Bt={},L={},ut={};ut.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const At="[0-9]+",zt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Vt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
|
|
2
|
+
]))+`;S.KANJI=new RegExp(H,"g");S.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");S.BYTE=new RegExp(Vt,"g");S.NUMERIC=new RegExp(At,"g");S.ALPHANUMERIC=new RegExp(zt,"g");const Ht=new RegExp("^"+H+"$"),Kt=new RegExp("^"+At+"$"),Jt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");S.testKanji=function(t){return Ht.test(t)};S.testNumeric=function(t){return Kt.test(t)};S.testAlphanumeric=function(t){return Jt.test(t)};(function(e){const t=ut,i=S;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(r,s){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?r.ccBits[0]:s<27?r.ccBits[1]:r.ccBits[2]},e.getBestModeForData=function(r){return i.testNumeric(r)?e.NUMERIC:i.testAlphanumeric(r)?e.ALPHANUMERIC:i.testKanji(r)?e.KANJI:e.BYTE},e.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},e.isValid=function(r){return r&&r.bit&&r.ccBits};function o(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(r,s){if(e.isValid(r))return r;try{return o(r)}catch{return s}}})(L);(function(e){const t=N,i=j,o=G,n=L,r=ut,s=7973,c=t.getBCHDigit(s);function u(w,g,E){for(let C=1;C<=40;C++)if(g<=e.getCapacity(C,E,w))return C}function l(w,g){return n.getCharCountIndicator(w,g)+4}function a(w,g){let E=0;return w.forEach(function(C){const p=l(C.mode,g);E+=p+C.getBitsLength()}),E}function A(w,g){for(let E=1;E<=40;E++)if(a(w,E)<=e.getCapacity(E,g,n.MIXED))return E}e.from=function(g,E){return r.isValid(g)?parseInt(g,10):E},e.getCapacity=function(g,E,C){if(!r.isValid(g))throw new Error("Invalid QR Code version");typeof C>"u"&&(C=n.BYTE);const p=t.getSymbolTotalCodewords(g),h=i.getTotalCodewordsCount(g,E),m=(p-h)*8;if(C===n.MIXED)return m;const d=m-l(C,g);switch(C){case n.NUMERIC:return Math.floor(d/10*3);case n.ALPHANUMERIC:return Math.floor(d/11*2);case n.KANJI:return Math.floor(d/13);case n.BYTE:default:return Math.floor(d/8)}},e.getBestVersionForData=function(g,E){let C;const p=o.from(E,o.M);if(Array.isArray(g)){if(g.length>1)return A(g,p);if(g.length===0)return 1;C=g[0]}else C=g;return u(C.mode,C.getLength(),p)},e.getEncodedBits=function(g){if(!r.isValid(g)||g<7)throw new Error("Invalid QR Code version");let E=g<<12;for(;t.getBCHDigit(E)-c>=0;)E^=s<<t.getBCHDigit(E)-c;return g<<12|E}})(Bt);var It={};const et=N,pt=1335,Yt=21522,ft=et.getBCHDigit(pt);It.getEncodedBits=function(t,i){const o=t.bit<<3|i;let n=o<<10;for(;et.getBCHDigit(n)-ft>=0;)n^=pt<<et.getBCHDigit(n)-ft;return(o<<10|n)^Yt};var Nt={};const $t=L;function U(e){this.mode=$t.NUMERIC,this.data=e.toString()}U.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(t){let i,o,n;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),n=parseInt(o,10),t.put(n,10);const r=this.data.length-i;r>0&&(o=this.data.substr(i),n=parseInt(o,10),t.put(n,r*3+1))};var _t=U;const Ot=L,W=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function D(e){this.mode=Ot.ALPHANUMERIC,this.data=e}D.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=W.indexOf(this.data[i])*45;o+=W.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(W.indexOf(this.data[i]),6)};var Gt=D;const jt=bt,vt=L;function F(e){this.mode=vt.BYTE,typeof e=="string"&&(e=jt(e)),this.data=new Uint8Array(e)}F.getBitsLength=function(t){return t*8};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)};var Qt=F;const qt=L,Wt=N;function k(e){this.mode=qt.KANJI,this.data=e}k.getBitsLength=function(t){return t*13};k.prototype.getLength=function(){return this.data.length};k.prototype.getBitsLength=function(){return k.getBitsLength(this.data.length)};k.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=Wt.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
3
|
+
Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var Zt=k;(function(e){const t=L,i=_t,o=Gt,n=Qt,r=Zt,s=S,c=N,u=Pt;function l(h){return unescape(encodeURIComponent(h)).length}function a(h,m,d){const f=[];let y;for(;(y=h.exec(d))!==null;)f.push({data:y[0],index:y.index,mode:m,length:y[0].length});return f}function A(h){const m=a(s.NUMERIC,t.NUMERIC,h),d=a(s.ALPHANUMERIC,t.ALPHANUMERIC,h);let f,y;return c.isKanjiModeEnabled()?(f=a(s.BYTE,t.BYTE,h),y=a(s.KANJI,t.KANJI,h)):(f=a(s.BYTE_KANJI,t.BYTE,h),y=[]),m.concat(d,f,y).sort(function(I,T){return I.index-T.index}).map(function(I){return{data:I.data,mode:I.mode,length:I.length}})}function w(h,m){switch(m){case t.NUMERIC:return i.getBitsLength(h);case t.ALPHANUMERIC:return o.getBitsLength(h);case t.KANJI:return r.getBitsLength(h);case t.BYTE:return n.getBitsLength(h)}}function g(h){return h.reduce(function(m,d){const f=m.length-1>=0?m[m.length-1]:null;return f&&f.mode===d.mode?(m[m.length-1].data+=d.data,m):(m.push(d),m)},[])}function E(h){const m=[];for(let d=0;d<h.length;d++){const f=h[d];switch(f.mode){case t.NUMERIC:m.push([f,{data:f.data,mode:t.ALPHANUMERIC,length:f.length},{data:f.data,mode:t.BYTE,length:f.length}]);break;case t.ALPHANUMERIC:m.push([f,{data:f.data,mode:t.BYTE,length:f.length}]);break;case t.KANJI:m.push([f,{data:f.data,mode:t.BYTE,length:l(f.data)}]);break;case t.BYTE:m.push([{data:f.data,mode:t.BYTE,length:l(f.data)}])}}return m}function C(h,m){const d={},f={start:{}};let y=["start"];for(let B=0;B<h.length;B++){const I=h[B],T=[];for(let P=0;P<I.length;P++){const M=I[P],z=""+B+P;T.push(z),d[z]={node:M,lastCount:0},f[z]={};for(let q=0;q<y.length;q++){const b=y[q];d[b]&&d[b].node.mode===M.mode?(f[b][z]=w(d[b].lastCount+M.length,M.mode)-w(d[b].lastCount,M.mode),d[b].lastCount+=M.length):(d[b]&&(d[b].lastCount=M.length),f[b][z]=w(M.length,M.mode)+4+t.getCharCountIndicator(M.mode,m))}}y=T}for(let B=0;B<y.length;B++)f[y[B]].end=0;return{map:f,table:d}}function p(h,m){let d;const f=t.getBestModeForData(h);if(d=t.from(m,f),d!==t.BYTE&&d.bit<f.bit)throw new Error('"'+h+'" cannot be encoded with mode '+t.toString(d)+`.
|
|
4
|
+
Suggested mode is: `+t.toString(f));switch(d===t.KANJI&&!c.isKanjiModeEnabled()&&(d=t.BYTE),d){case t.NUMERIC:return new i(h);case t.ALPHANUMERIC:return new o(h);case t.KANJI:return new r(h);case t.BYTE:return new n(h)}}e.fromArray=function(m){return m.reduce(function(d,f){return typeof f=="string"?d.push(p(f,null)):f.data&&d.push(p(f.data,f.mode)),d},[])},e.fromString=function(m,d){const f=A(m,c.isKanjiModeEnabled()),y=E(f),B=C(y,d),I=u.find_path(B.map,"start","end"),T=[];for(let P=1;P<I.length-1;P++)T.push(B.table[I[P]].node);return e.fromArray(g(T))},e.rawSplit=function(m){return e.fromArray(A(m,c.isKanjiModeEnabled()))}})(Nt);const Q=N,Z=G,Xt=Ut,xt=Dt,te=wt,ee=mt,nt=Et,ot=j,ne=kt,_=Bt,oe=It,re=L,X=Nt;function ie(e,t){const i=e.size,o=ee.getPositions(t);for(let n=0;n<o.length;n++){const r=o[n][0],s=o[n][1];for(let c=-1;c<=7;c++)if(!(r+c<=-1||i<=r+c))for(let u=-1;u<=7;u++)s+u<=-1||i<=s+u||(c>=0&&c<=6&&(u===0||u===6)||u>=0&&u<=6&&(c===0||c===6)||c>=2&&c<=4&&u>=2&&u<=4?e.set(r+c,s+u,!0,!0):e.set(r+c,s+u,!1,!0))}}function se(e){const t=e.size;for(let i=8;i<t-8;i++){const o=i%2===0;e.set(i,6,o,!0),e.set(6,i,o,!0)}}function ue(e,t){const i=te.getPositions(t);for(let o=0;o<i.length;o++){const n=i[o][0],r=i[o][1];for(let s=-2;s<=2;s++)for(let c=-2;c<=2;c++)s===-2||s===2||c===-2||c===2||s===0&&c===0?e.set(n+s,r+c,!0,!0):e.set(n+s,r+c,!1,!0)}}function ce(e,t){const i=e.size,o=_.getEncodedBits(t);let n,r,s;for(let c=0;c<18;c++)n=Math.floor(c/3),r=c%3+i-8-3,s=(o>>c&1)===1,e.set(n,r,s,!0),e.set(r,n,s,!0)}function x(e,t,i){const o=e.size,n=oe.getEncodedBits(t,i);let r,s;for(r=0;r<15;r++)s=(n>>r&1)===1,r<6?e.set(r,8,s,!0):r<8?e.set(r+1,8,s,!0):e.set(o-15+r,8,s,!0),r<8?e.set(8,o-r-1,s,!0):r<9?e.set(8,15-r-1+1,s,!0):e.set(8,15-r-1,s,!0);e.set(o-8,8,1,!0)}function le(e,t){const i=e.size;let o=-1,n=i-1,r=7,s=0;for(let c=i-1;c>0;c-=2)for(c===6&&c--;;){for(let u=0;u<2;u++)if(!e.isReserved(n,c-u)){let l=!1;s<t.length&&(l=(t[s]>>>r&1)===1),e.set(n,c-u,l),r--,r===-1&&(s++,r=7)}if(n+=o,n<0||i<=n){n-=o,o=-o;break}}}function ae(e,t,i){const o=new Xt;i.forEach(function(u){o.put(u.mode.bit,4),o.put(u.getLength(),re.getCharCountIndicator(u.mode,e)),u.write(o)});const n=Q.getSymbolTotalCodewords(e),r=ot.getTotalCodewordsCount(e,t),s=(n-r)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const c=(s-o.getLengthInBits())/8;for(let u=0;u<c;u++)o.put(u%2?17:236,8);return fe(o,e,t)}function fe(e,t,i){const o=Q.getSymbolTotalCodewords(t),n=ot.getTotalCodewordsCount(t,i),r=o-n,s=ot.getBlocksCount(t,i),c=o%s,u=s-c,l=Math.floor(o/s),a=Math.floor(r/s),A=a+1,w=l-a,g=new ne(w);let E=0;const C=new Array(s),p=new Array(s);let h=0;const m=new Uint8Array(e.buffer);for(let I=0;I<s;I++){const T=I<u?a:A;C[I]=m.slice(E,E+T),p[I]=g.encode(C[I]),E+=T,h=Math.max(h,T)}const d=new Uint8Array(o);let f=0,y,B;for(y=0;y<h;y++)for(B=0;B<s;B++)y<C[B].length&&(d[f++]=C[B][y]);for(y=0;y<w;y++)for(B=0;B<s;B++)d[f++]=p[B][y];return d}function ge(e,t,i,o){let n;if(Array.isArray(e))n=X.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){const a=X.rawSplit(e);l=_.getBestVersionForData(a,i)}n=X.fromString(e,l||40)}else throw new Error("Invalid data");const r=_.getBestVersionForData(n,i);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=r;else if(t<r)throw new Error(`
|
|
5
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
+
Minimum version required to store current data is: `+r+`.
|
|
7
|
+
`);const s=ae(t,i,n),c=Q.getSymbolSize(t),u=new xt(c);return ie(u,t),se(u),ue(u,t),x(u,i,0),t>=7&&ce(u,t),le(u,s),isNaN(o)&&(o=nt.getBestMask(u,x.bind(null,u,i))),nt.applyMask(o,u),x(u,i,o),{modules:u,version:t,errorCorrectionLevel:i,maskPattern:o,segments:n}}dt.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let o=Z.M,n,r;return typeof i<"u"&&(o=Z.from(i.errorCorrectionLevel,Z.M),n=_.from(i.version),r=nt.from(i.maskPattern),i.toSJISFunc&&Q.setToSJISFunction(i.toSJISFunc)),ge(t,n,o,r)};var Tt={},ct={};(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(r){return[r,r]}))),o.length===6&&o.push("F","F");const n=parseInt(o.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const n=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,r=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:r,scale:r?4:s,margin:n,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,n){return n.width&&n.width>=o+n.margin*2?n.width/(o+n.margin*2):n.scale},e.getImageWidth=function(o,n){const r=e.getScale(o,n);return Math.floor((o+n.margin*2)*r)},e.qrToImageData=function(o,n,r){const s=n.modules.size,c=n.modules.data,u=e.getScale(s,r),l=Math.floor((s+r.margin*2)*u),a=r.margin*u,A=[r.color.light,r.color.dark];for(let w=0;w<l;w++)for(let g=0;g<l;g++){let E=(w*l+g)*4,C=r.color.light;if(w>=a&&g>=a&&w<l-a&&g<l-a){const p=Math.floor((w-a)/u),h=Math.floor((g-a)/u);C=A[c[p*s+h]?1:0]}o[E++]=C.r,o[E++]=C.g,o[E++]=C.b,o[E]=C.a}}})(ct);(function(e){const t=ct;function i(n,r,s){n.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=s,r.width=s,r.style.height=s+"px",r.style.width=s+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(r,s,c){let u=c,l=s;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(l=o()),u=t.getOptions(u);const a=t.getImageWidth(r.modules.size,u),A=l.getContext("2d"),w=A.createImageData(a,a);return t.qrToImageData(w.data,r,u),i(A,l,a),A.putImageData(w,0,0),l},e.renderToDataURL=function(r,s,c){let u=c;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const l=e.render(r,s,u),a=u.type||"image/png",A=u.rendererOpts||{};return l.toDataURL(a,A.quality)}})(Tt);var Mt={};const de=ct;function gt(e,t){const i=e.a/255,o=t+'="'+e.hex+'"';return i<1?o+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':o}function tt(e,t,i){let o=e+t;return typeof i<"u"&&(o+=" "+i),o}function he(e,t,i){let o="",n=0,r=!1,s=0;for(let c=0;c<e.length;c++){const u=Math.floor(c%t),l=Math.floor(c/t);!u&&!r&&(r=!0),e[c]?(s++,c>0&&u>0&&e[c-1]||(o+=r?tt("M",u+i,.5+l+i):tt("m",n,0),n=0,r=!1),u+1<t&&e[c+1]||(o+=tt("h",s),s=0)):n++}return o}Mt.render=function(t,i,o){const n=de.getOptions(i),r=t.modules.size,s=t.modules.data,c=r+n.margin*2,u=n.color.light.a?"<path "+gt(n.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",l="<path "+gt(n.color.dark,"stroke")+' d="'+he(s,r,n.margin)+'"/>',a='viewBox="0 0 '+c+" "+c+'"',w='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+a+' shape-rendering="crispEdges">'+u+l+`</svg>
|
|
8
|
+
`;return typeof o=="function"&&o(null,w),w};const we=Rt,rt=dt,St=Tt,me=Mt;function lt(e,t,i,o,n){const r=[].slice.call(arguments,1),s=r.length,c=typeof r[s-1]=="function";if(!c&&!we())throw new Error("Callback required as last argument");if(c){if(s<2)throw new Error("Too few arguments provided");s===2?(n=i,i=t,t=o=void 0):s===3&&(t.getContext&&typeof n>"u"?(n=o,o=void 0):(n=o,o=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=o=void 0):s===2&&!t.getContext&&(o=i,i=t,t=void 0),new Promise(function(u,l){try{const a=rt.create(i,o);u(e(a,t,o))}catch(a){l(a)}})}try{const u=rt.create(i,o);n(null,e(u,t,o))}catch(u){n(u)}}O.create=rt.create;O.toCanvas=lt.bind(null,St.render);O.toDataURL=lt.bind(null,St.renderToDataURL);O.toString=lt.bind(null,function(e,t,i){return me.render(e,i)});export{O as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function C(n){let e=null;return()=>(e==null&&(e=n()),e)}function F(n,e){return n.filter(t=>t!==e)}function X(n,e){const t=new Set,i=s=>t.add(s);n.forEach(i),e.forEach(i);const r=[];return t.forEach(s=>r.push(s)),r}class j{enter(e){const t=this.entered.length,i=r=>this.isNodeInDocument(r)&&(!r.contains||r.contains(e));return this.entered=X(this.entered.filter(i),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=F(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class z{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(i=>{const r=this.config.exposeProperties[i];r!=null&&(t[i]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const P="__NATIVE_FILE__",b="__NATIVE_URL__",x="__NATIVE_TEXT__",_="__NATIVE_HTML__",I=Object.freeze(Object.defineProperty({__proto__:null,FILE:P,HTML:_,TEXT:x,URL:b},Symbol.toStringTag,{value:"Module"}));function N(n,e,t){const i=e.reduce((r,s)=>r||n.getData(s),"");return i??t}const w={[P]:{exposeProperties:{files:n=>Array.prototype.slice.call(n.files),items:n=>n.items,dataTransfer:n=>n},matchesTypes:["Files"]},[_]:{exposeProperties:{html:(n,e)=>N(n,e,""),dataTransfer:n=>n},matchesTypes:["Html","text/html"]},[b]:{exposeProperties:{urls:(n,e)=>N(n,e,"").split(`
|
|
2
|
+
`),dataTransfer:n=>n},matchesTypes:["Url","text/uri-list"]},[x]:{exposeProperties:{text:(n,e)=>N(n,e,""),dataTransfer:n=>n},matchesTypes:["Text","text/plain"]}};function B(n,e){const t=w[n];if(!t)throw new Error(`native type ${n} has no configuration`);const i=new z(t);return i.loadDataTransfer(e),i}function S(n){if(!n)return null;const e=Array.prototype.slice.call(n.types||[]);return Object.keys(w).filter(t=>{const i=w[t];return i!=null&&i.matchesTypes?i.matchesTypes.some(r=>e.indexOf(r)>-1):!1})[0]||null}const Y=C(()=>/firefox/i.test(navigator.userAgent)),M=C(()=>!!window.safari);class y{interpolate(e){const{xs:t,ys:i,c1s:r,c2s:s,c3s:d}=this;let o=t.length-1;if(e===t[o])return i[o];let c=0,u=d.length-1,h;for(;c<=u;){h=Math.floor(.5*(c+u));const a=t[h];if(a<e)c=h+1;else if(a>e)u=h-1;else return i[h]}o=Math.max(0,u);const f=e-t[o],l=f*f;return i[o]+r[o]*f+s[o]*l+d[o]*f*l}constructor(e,t){const{length:i}=e,r=[];for(let a=0;a<i;a++)r.push(a);r.sort((a,g)=>e[a]<e[g]?-1:1);const s=[],d=[];let o,c;for(let a=0;a<i-1;a++)o=e[a+1]-e[a],c=t[a+1]-t[a],s.push(o),d.push(c/o);const u=[d[0]];for(let a=0;a<s.length-1;a++){const g=d[a],v=d[a+1];if(g*v<=0)u.push(0);else{o=s[a];const p=s[a+1],m=o+p;u.push(3*m/((m+p)/g+(m+o)/v))}}u.push(d[d.length-1]);const h=[],f=[];let l;for(let a=0;a<u.length-1;a++){l=d[a];const g=u[a],v=1/s[a],p=g+u[a+1]-l-l;h.push((l-g-p)*v),f.push(p*v*v)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=h,this.c3s=f}}const k=1;function H(n){const e=n.nodeType===k?n:n.parentElement;if(!e)return null;const{top:t,left:i}=e.getBoundingClientRect();return{x:i,y:t}}function E(n){return{x:n.clientX,y:n.clientY}}function U(n){var e;return n.nodeName==="IMG"&&(Y()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(n)))}function W(n,e,t,i){let r=n?e.width:t,s=n?e.height:i;return M()&&n&&(s/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:s}}function V(n,e,t,i,r){const s=U(e),o=H(s?n:e),c={x:t.x-o.x,y:t.y-o.y},{offsetWidth:u,offsetHeight:h}=n,{anchorX:f,anchorY:l}=i,{dragPreviewWidth:a,dragPreviewHeight:g}=W(s,e,u,h),v=()=>{let O=new y([0,.5,1],[c.y,c.y/h*g,c.y+g-h]).interpolate(l);return M()&&s&&(O+=(window.devicePixelRatio-1)*g),O},p=()=>new y([0,.5,1],[c.x,c.x/u*a,c.x+a-u]).interpolate(f),{offsetX:m,offsetY:D}=r,T=m===0||m,R=D===0||D;return{x:T?m:p(),y:R?D:v()}}class K{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function q(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function L(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),i.forEach(function(r){q(n,r,t[r])})}return n}class ${profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)===null||t===void 0||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,i){return this.sourcePreviewNodeOptions.set(e,i),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,i){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,i);const r=d=>this.handleDragStart(d,e),s=d=>this.handleSelectStart(d);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const i=d=>this.handleDragEnter(d,e),r=d=>this.handleDragOver(d,e),s=d=>this.handleDrop(d,e);return t.addEventListener("dragenter",i),t.addEventListener("dragover",r),t.addEventListener("drop",s),()=>{t.removeEventListener("dragenter",i),t.removeEventListener("dragover",r),t.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return L({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return L({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(I).some(t=>I[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=B(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=r=>{const s=this.sourceNodes.get(r);return s&&H(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=r=>!!(r&&this.document&&this.document.body&&this.document.body.contains(r)),this.endDragIfSourceWasRemovedFromDOM=()=>{const r=this.currentDragSourceNode;r==null||this.isNodeInDocument(r)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=r=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(r||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=r=>{if(r.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const d=E(r);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:d});const{dataTransfer:o}=r,c=S(o);if(this.monitor.isDragging()){if(o&&typeof o.setDragImage=="function"){const h=this.monitor.getSourceId(),f=this.sourceNodes.get(h),l=this.sourcePreviewNodes.get(h)||f;if(l){const{anchorX:a,anchorY:g,offsetX:v,offsetY:p}=this.getCurrentSourcePreviewNodeOptions(),T=V(f,l,d,{anchorX:a,anchorY:g},{offsetX:v,offsetY:p});o.setDragImage(l,T.x,T.y)}}try{o==null||o.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(r.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(o&&!o.types&&(r.target&&!r.target.hasAttribute||!r.target.hasAttribute("draggable")))return;r.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=r=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(r.dataTransfer)}if(!this.enterLeaveCounter.enter(r.target)||this.monitor.isDragging())return;const{dataTransfer:o}=r,c=S(o);c&&this.beginDragNativeItem(c,o)},this.handleTopDragEnter=r=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=r.altKey,s.length>0&&this.actions.hover(s,{clientOffset:E(r)}),s.some(o=>this.monitor.canDropOnTarget(o))&&(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=r=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(r.dataTransfer)}},this.handleTopDragOver=r=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect="none");return}this.altKeyPressed=r.altKey,this.lastClientOffset=E(r),this.scheduleHover(s),(s||[]).some(o=>this.monitor.canDropOnTarget(o))?(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?r.preventDefault():(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=r=>{this.isDraggingNativeItem()&&r.preventDefault(),this.enterLeaveCounter.leave(r.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=r=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;r.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(r.dataTransfer)}else S(r.dataTransfer)&&r.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=r=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:E(r)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=r=>{const s=r.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(r.preventDefault(),s.dragDrop()))},this.options=new K(t,i),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new j(this.isNodeInDocument)}}const G=function(e,t,i){return new $(e,t,i)};export{G as H};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as O}from"./@react-dnd-CcwRs9xb.js";var l;(function(o){o.mouse="mouse",o.touch="touch",o.keyboard="keyboard"})(l||(l={}));class M{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,s,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&n!==void 0?n:(s=this.args)===null||s===void 0?void 0:s.delay)!==null&&t!==void 0?t:0}get delayMouseStart(){var e,s,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&n!==void 0?n:(s=this.args)===null||s===void 0?void 0:s.delay)!==null&&t!==void 0?t:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,s){this.args=e,this.context=s}}function N(o,e,s,n){return Math.sqrt(Math.pow(Math.abs(s-o),2)+Math.pow(Math.abs(n-e),2))}function w(o,e,s,n,t){if(!t)return!1;const i=Math.atan2(n-e,s-o)*180/Math.PI+180;for(let a=0;a<t.length;++a){const r=t[a];if(r&&(r.start==null||i>=r.start)&&(r.end==null||i<=r.end))return!0}return!1}const C={Left:1,Right:2,Center:4},x={Left:0,Center:1,Right:2};function T(o){return o.button===void 0||o.button===x.Left}function D(o){return o.buttons===void 0||(o.buttons&C.Left)===0}function b(o){return!!o.targetTouches}const L=1;function P(o){const e=o.nodeType===L?o:o.parentElement;if(!e)return;const{top:s,left:n}=e.getBoundingClientRect();return{x:n,y:s}}function _(o,e){if(o.targetTouches.length===1)return S(o.targetTouches[0]);if(e&&o.touches.length===1&&o.touches[0].target===e.target)return S(o.touches[0])}function S(o,e){return b(o)?_(o,e):{x:o.clientX,y:o.clientY}}const v={[l.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[l.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[l.keyboard]:{keydown:"keydown"}};class g{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(O(!g.isSetUp,"Cannot have two Touch backends at the same time."),g.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(g.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,s,n,t=!1){const i=t;this.listenerTypes.forEach(function(a){const r=v[a][s];r&&e.addEventListener(r,n,i)})}removeEventListener(e,s,n,t=!1){const i=t;this.listenerTypes.forEach(function(a){const r=v[a][s];r&&e.removeEventListener(r,n,i)})}connectDragSource(e,s){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,s),this.addEventListener(s,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(s,"start",n)}}connectDragPreview(e,s,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,s),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,s){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const t=i=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(i.type){case v.mouse.move:a={x:i.clientX,y:i.clientY};break;case v.touch.move:var r,h;a={x:((r=i.touches[0])===null||r===void 0?void 0:r.clientX)||0,y:((h=i.touches[0])===null||h===void 0?void 0:h.clientY)||0};break}const c=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,f=c&&s.contains(c);if(c===s||f)return this.handleMove(i,e)};return this.addEventListener(this.document.body,"move",t),this.targetNodes.set(e,s),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",t))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,s,n){this.getSourceClientOffset=t=>{const i=this.sourceNodes.get(t);return i&&P(i)},this.handleTopMoveStartCapture=t=>{T(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!T(t))return;const i=S(t);i&&(b(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!T(t))return;const i=t.type===v.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,t),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(t,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=t=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,r=this.options.enableHoverOutsideTarget,h=S(t,this.lastTargetTouchFallback);if(!h)return;if(this._isScrolling||!this.monitor.isDragging()&&w(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,h.x,h.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&N(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,h.x,h.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),t.cancelable&&t.preventDefault();const f=(a||[]).map(u=>this.targetNodes.get(u)).filter(u=>!!u),E=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(h.x,h.y,f):this.document.elementsFromPoint(h.x,h.y),p=[];for(const u in E){if(!E.hasOwnProperty(u))continue;let d=E[u];for(d!=null&&p.push(d);d;)d=d.parentElement,d&&p.indexOf(d)===-1&&p.push(d)}const m=p.filter(u=>f.indexOf(u)>-1).map(u=>this._getDropTargetId(u)).filter(u=>!!u).filter((u,d,y)=>y.indexOf(u)===d);if(r)for(const u in this.targetNodes){const d=this.targetNodes.get(u);if(c&&d&&d.contains(c)&&m.indexOf(u)===-1){m.unshift(u);break}}m.reverse(),this.actions.hover(m,{clientOffset:h})},this._getDropTargetId=t=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const r=a.value;if(t===this.targetNodes.get(r))return r;a=i.next()}},this.handleTopMoveEndCapture=t=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!D(t)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}t.cancelable&&t.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=t=>{t.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new M(n,s),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(l.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(l.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(l.keyboard)}}const k=function(e,s={},n={}){return new g(e,s,n)};export{k as T};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var N=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),l=function(){return Math.random().toString(36).substring(7).split("").join(".")},g={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function m(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function I(t,e,i){var b;if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(n(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(n(1));return i(I)(t,e)}if(typeof t!="function")throw new Error(n(2));var w=t,p=e,c=[],u=c,s=!1;function v(){u===c&&(u=c.slice())}function E(){if(s)throw new Error(n(3));return p}function O(r){if(typeof r!="function")throw new Error(n(4));if(s)throw new Error(n(5));var f=!0;return v(),u.push(r),function(){if(f){if(s)throw new Error(n(6));f=!1,v();var o=u.indexOf(r);u.splice(o,1),c=null}}}function y(r){if(!m(r))throw new Error(n(7));if(typeof r.type>"u")throw new Error(n(8));if(s)throw new Error(n(9));try{s=!0,p=w(p,r)}finally{s=!1}for(var f=c=u,a=0;a<f.length;a++){var o=f[a];o()}return r}function d(r){if(typeof r!="function")throw new Error(n(10));w=r,y({type:g.REPLACE})}function x(){var r,f=O;return r={subscribe:function(o){if(typeof o!="object"||o===null)throw new Error(n(11));function h(){o.next&&o.next(E())}h();var P=f(h);return{unsubscribe:P}}},r[N]=function(){return this},r}return y({type:g.INIT}),b={dispatch:y,subscribe:O,getState:E,replaceReducer:d},b[N]=x,b}export{I as c};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{_ as E,a as y,b as m,c as f}from"./tslib-9k7AwCpt.js";function l(e){return typeof e=="function"}function D(e){var r=function(n){Error.call(n),n.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var _=D(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
2
|
+
`+t.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function S(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var p=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,t,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=E(s),c=u.next();!c.done;c=u.next()){var w=c.value;w.remove(this)}}catch(a){r={error:a}}finally{try{c&&!c.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else s.remove(this);var P=this.initialTeardown;if(l(P))try{P()}catch(a){o=a instanceof _?a.errors:[a]}var O=this._finalizers;if(O){this._finalizers=null;try{for(var d=E(O),h=d.next();!h.done;h=d.next()){var B=h.value;try{j(B)}catch(a){o=o??[],a instanceof _?o=y(y([],m(o)),m(a.errors)):o.push(a)}}}catch(a){n={error:a}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}}if(o)throw new _(o)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)j(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&S(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&S(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),F=p.EMPTY;function M(e){return e instanceof p||e&&"closed"in e&&l(e.remove)&&l(e.add)&&l(e.unsubscribe)}function j(e){l(e)?e():e.unsubscribe()}var R={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Y={setTimeout:function(e,r){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return setTimeout.apply(void 0,y([e,r],m(t)))},clearTimeout:function(e){var r=Y.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function H(e){Y.setTimeout(function(){throw e})}function C(){}function b(e){e()}var V=function(e){f(r,e);function r(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,M(t)&&t.add(n)):n.destination=L,n}return r.create=function(t,n,i){return new A(t,n,i)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(p),G=Function.prototype.bind;function g(e,r){return G.call(e,r)}var J=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(n){v(n)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(n){v(n)}else v(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){v(t)}},e}(),A=function(e){f(r,e);function r(t,n,i){var o=e.call(this)||this,s;if(l(t)||!t)s={next:t??void 0,error:n??void 0,complete:i??void 0};else{var u;o&&R.useDeprecatedNextContext?(u=Object.create(t),u.unsubscribe=function(){return o.unsubscribe()},s={next:t.next&&g(t.next,u),error:t.error&&g(t.error,u),complete:t.complete&&g(t.complete,u)}):s=t}return o.destination=new J(s),o}return r}(V);function v(e){H(e)}function K(e){throw e}var L={closed:!0,next:C,error:K,complete:C},Q=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function W(e){return e}function X(e){return e.length===0?W:e.length===1?e[0]:function(t){return e.reduce(function(n,i){return i(n)},t)}}var I=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,n){var i=this,o=$(r)?r:new A(r,t,n);return b(function(){var s=i,u=s.operator,c=s.source;o.add(u?u.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var n=this;return t=T(t),new t(function(i,o){var s=new A({next:function(u){try{r(u)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},e.prototype[Q]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return X(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=T(r),new r(function(n,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(r){return new e(r)},e}();function T(e){var r;return(r=e??R.Promise)!==null&&r!==void 0?r:Promise}function Z(e){return e&&l(e.next)&&l(e.error)&&l(e.complete)}function $(e){return e&&e instanceof V||Z(e)&&M(e)}var z=D(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),N=function(e){f(r,e);function r(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var n=new U(this,this);return n.operator=t,n},r.prototype._throwIfClosed=function(){if(this.closed)throw new z},r.prototype.next=function(t){var n=this;b(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=E(n.currentObservers),u=s.next();!u.done;u=s.next()){var c=u.value;c.next(t)}}catch(w){i={error:w}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},r.prototype.error=function(t){var n=this;b(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var i=n.observers;i.length;)i.shift().error(t)}})},r.prototype.complete=function(){var t=this;b(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var n=this,i=this,o=i.hasError,s=i.isStopped,u=i.observers;return o||s?F:(this.currentObservers=null,u.push(t),new p(function(){n.currentObservers=null,S(u,t)}))},r.prototype._checkFinalizedStatuses=function(t){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?t.error(o):s&&t.complete()},r.prototype.asObservable=function(){var t=new I;return t.source=this,t},r.create=function(t,n){return new U(t,n)},r}(I),U=function(e){f(r,e);function r(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return r.prototype.next=function(t){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,t)},r.prototype.error=function(t){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,t)},r.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},r.prototype._subscribe=function(t){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&i!==void 0?i:F},r}(N),tt={now:function(){return Date.now()},delegate:void 0},rt=function(e){f(r,e);function r(t,n){return e.call(this)||this}return r.prototype.schedule=function(t,n){return this},r}(p),x={setInterval:function(e,r){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return setInterval.apply(void 0,y([e,r],m(t)))},clearInterval:function(e){var r=x.delegate;return((r==null?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0},et=function(e){f(r,e);function r(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.pending=!1,i}return r.prototype.schedule=function(t,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=t;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},r.prototype.requestAsyncId=function(t,n,i){return i===void 0&&(i=0),x.setInterval(t.flush.bind(t,this),i)},r.prototype.recycleAsyncId=function(t,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&x.clearInterval(n)},r.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(t,n){var i=!1,o;try{this.work(t)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},r.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,i=t.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,S(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},r}(rt),k=function(){function e(r,t){t===void 0&&(t=e.now),this.schedulerActionCtor=r,this.now=t}return e.prototype.schedule=function(r,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,r).schedule(n,t)},e.now=tt.now,e}(),nt=function(e){f(r,e);function r(t,n){n===void 0&&(n=k.now);var i=e.call(this,t,n)||this;return i.actions=[],i._active=!1,i}return r.prototype.flush=function(t){var n=this.actions;if(this._active){n.push(t);return}var i;this._active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,i){for(;t=n.shift();)t.unsubscribe();throw i}},r}(k),q=new nt(et),it=q;function ot(e){return e&&l(e.schedule)}function st(e){return e instanceof Date&&!isNaN(e)}function ut(e,r,t){e===void 0&&(e=0),t===void 0&&(t=it);var n=-1;return r!=null&&(ot(r)?t=r:n=r),new I(function(i){var o=st(e)?+e-t.now():e;o<0&&(o=0);var s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function at(e,r){return e===void 0&&(e=0),r===void 0&&(r=q),e<0&&(e=0),ut(e,e,r)}export{I as O,N as S,at as i};
|