@codernote/record-tree 2.5.2 → 2.5.3

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.
Files changed (2) hide show
  1. package/dist/index.js +324 -315
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.color-panel[data-v-d2cde42f]{background:#fff;border:1px solid #f2f2f2;width:164px;padding:5px 5px 0}.color-panel ul[data-v-d2cde42f]{list-style-type:none;margin:0}.color-panel ul li[data-v-d2cde42f]{display:inline-block;margin:0 5px;width:20px;height:20px;border-radius:100%;border:1px solid #f2f2f2;display:inline-flex;align-items:center;justify-content:center}.node-complex[data-v-d8fa8371]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-d8fa8371]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-d8fa8371]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-d8fa8371]{display:block}.node-image img[data-v-d8fa8371]{outline:none}.node-audio[data-v-d8fa8371]{width:300px}.node-audio audio[data-v-d8fa8371]{width:300px;outline:none}.node-video video[data-v-d8fa8371]{outline:none;-o-object-fit:cover;object-fit:cover;background-color:#000}.node-del[data-v-d8fa8371]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-d8fa8371]:before,.node-del[data-v-d8fa8371]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-d8fa8371]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-d8fa8371]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-d8fa8371]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-d8fa8371]{flex:1}.node-file-left h6[data-v-d8fa8371]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-d8fa8371]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-d8fa8371]{color:#52a770;font-size:14px}@keyframes blinkBorder-d8fa8371{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-d8fa8371]:focus{animation:blinkBorder-d8fa8371 1s infinite}.fullscreen-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-d8fa8371]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-c2e5c561]{display:flex;align-items:center;position:relative;padding-bottom:8px}.node-div>div[data-v-c2e5c561]{flex:1}.node-icon[data-v-c2e5c561]{touch-action:manipulation;position:relative;width:21px;height:21px;border-radius:100%;box-sizing:border-box;border:5px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-with-children[data-v-c2e5c561]:before{content:"";position:absolute;top:-20px;right:-30px;bottom:-10px;left:-20px;z-index:5}.node-icon-todo[data-v-c2e5c561]{border-radius:0}.node-icon .node-circle[data-v-c2e5c561]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-finished[data-v-c2e5c561]{text-decoration:line-through;color:#999}.node-ul[data-v-598a57e3]{display:grid;grid-template-rows:1fr;transition:.25s grid-template-rows ease}.node-ul ul[data-v-598a57e3]{background-color:#fff;margin:0;padding:0;list-style:none;overflow:hidden}.node-li[data-v-598a57e3]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-598a57e3] .sublevel .node-li{margin-left:15px}[data-v-598a57e3] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-598a57e3] .drag-over-center{background-color:#eee}[data-v-598a57e3] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>.node-ul[data-v-598a57e3]{grid-template-rows:0fr}[data-v-598a57e3] .collapsed .node-icon .node-line{display:none}[data-v-598a57e3] .collapsed.has-child>.node-div>.node-icon{background-color:#ddd}.tree-title[data-v-598a57e3]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-598a57e3] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-598a57e3] .node-li.dragging .node-icon .node-line{display:none}[data-v-598a57e3] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-598a57e3] .has-child>.node-div>.node-icon:hover .node-line{background-color:var(--line-color)}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-popper-content-item.active{background:#f2f2f2}.record-tree-title-bar{position:relative;display:flex;margin-bottom:10px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-title .node-text{margin-left:0!important}.record-tree-title-bar .popper{transform:translate3d(0,22px,0)!important}.record-tree-title-finished{text-decoration:line-through;color:#999}.record-audio[data-v-e59bd63b]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-e59bd63b]{width:300px;height:40px}.record-audio .audio-item[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e59bd63b]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e59bd63b]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e59bd63b]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-e59bd63b]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e59bd63b]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e59bd63b]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e59bd63b]{margin-right:10px}.record-audio .main[data-v-e59bd63b]{display:flex;align-items:center}.record-audio .duration[data-v-e59bd63b]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e59bd63b]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e59bd63b]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e59bd63b]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-e59bd63b]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e59bd63b]{margin-right:10px}.record-video[data-v-9c809fcc]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-9c809fcc]{width:300px}.buttons[data-v-9c809fcc]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-9c809fcc]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-9c809fcc]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-9c809fcc]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-9c809fcc]{border:1px solid #eee}.buttons .oper[data-v-9c809fcc]{margin-right:10px}.wrap[data-v-9c809fcc]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-9c809fcc]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-69fc6ef1]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-69fc6ef1]{width:200px}.img-item[data-v-69fc6ef1]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-69fc6ef1]{width:200px}.record-content[data-v-69fc6ef1]{display:flex}.buttons[data-v-69fc6ef1]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-69fc6ef1]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-69fc6ef1]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-69fc6ef1]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-69fc6ef1]{border:1px solid #eee}.buttons .oper[data-v-69fc6ef1]{margin-right:10px}.wrap[data-v-69fc6ef1]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-69fc6ef1]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .node-icon{margin-right:8px;border:3px solid #fff}.record-tree-mobile .node-icon .node-circle{width:10px;height:10px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;padding-right:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree.record-tree-nobar{padding-bottom:0}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd;align-items:center}.record-tree-option-left{display:flex;flex:1;overflow:hidden}.record-tree-option-left-fixed{display:flex;position:relative;align-items:center;padding:0 10px}.record-tree-option-left-fixed:after{content:"";position:absolute;right:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-left-scroll{display:flex;padding:0 10px;flex:1;overflow-x:scroll;align-items:center}.record-tree-option-left-scroll::-webkit-scrollbar{display:none}.record-tree-option-right{display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:16px;position:relative}.record-tree-option-right:before{content:"";position:absolute;left:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{flex:1;border:none;outline:none;word-break:break-all;overflow:hidden;-webkit-user-select:text;-moz-user-select:text;user-select:text}.record-tree .node-text a{color:#0076ff;cursor:pointer}.record-tree .node-text mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.record-tree .node-text p{line-height:1.3}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}.tiptap p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { openBlock as st, createElementBlock as ft, createElementVNode as tt, createVNode as xt, unref as $e, Fragment as p0, renderList as b0, normalizeStyle as Gt, reactive as Ma, ref as ct, withModifiers as It, normalizeClass as Ot, createCommentVNode as kt, toDisplayString as l0, nextTick as Pt, watch as u0, onMounted as F0, onBeforeUnmount as Ta, createBlock as qt, onUnmounted as f0, computed as o0, resolveComponent as Ra, createSlots as Ca, withCtx as w0, pushScopeId as ka, popScopeId as Aa } from "vue";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.color-panel[data-v-d2cde42f]{background:#fff;border:1px solid #f2f2f2;width:164px;padding:5px 5px 0}.color-panel ul[data-v-d2cde42f]{list-style-type:none;margin:0}.color-panel ul li[data-v-d2cde42f]{display:inline-block;margin:0 5px;width:20px;height:20px;border-radius:100%;border:1px solid #f2f2f2;display:inline-flex;align-items:center;justify-content:center}.node-complex[data-v-d8fa8371]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-d8fa8371]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-d8fa8371]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-d8fa8371]{display:block}.node-image img[data-v-d8fa8371]{outline:none}.node-audio[data-v-d8fa8371]{width:300px}.node-audio audio[data-v-d8fa8371]{width:300px;outline:none}.node-video video[data-v-d8fa8371]{outline:none;-o-object-fit:cover;object-fit:cover;background-color:#000}.node-del[data-v-d8fa8371]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-d8fa8371]:before,.node-del[data-v-d8fa8371]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-d8fa8371]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-d8fa8371]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-d8fa8371]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-d8fa8371]{flex:1}.node-file-left h6[data-v-d8fa8371]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-d8fa8371]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-d8fa8371]{color:#52a770;font-size:14px}@keyframes blinkBorder-d8fa8371{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-d8fa8371]:focus{animation:blinkBorder-d8fa8371 1s infinite}.fullscreen-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-d8fa8371]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-c2e5c561]{display:flex;align-items:center;position:relative;padding-bottom:8px}.node-div>div[data-v-c2e5c561]{flex:1}.node-icon[data-v-c2e5c561]{touch-action:manipulation;position:relative;width:21px;height:21px;border-radius:100%;box-sizing:border-box;border:5px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-with-children[data-v-c2e5c561]:before{content:"";position:absolute;top:-20px;right:-30px;bottom:-10px;left:-20px;z-index:5}.node-icon-todo[data-v-c2e5c561]{border-radius:0}.node-icon .node-circle[data-v-c2e5c561]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-finished[data-v-c2e5c561]{text-decoration:line-through;color:#999}.node-ul[data-v-598a57e3]{display:grid;grid-template-rows:1fr;transition:.25s grid-template-rows ease}.node-ul ul[data-v-598a57e3]{background-color:#fff;margin:0;padding:0;list-style:none;overflow:hidden}.node-li[data-v-598a57e3]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-598a57e3] .sublevel .node-li{margin-left:15px}[data-v-598a57e3] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-598a57e3] .drag-over-center{background-color:#eee}[data-v-598a57e3] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>.node-ul[data-v-598a57e3]{grid-template-rows:0fr}[data-v-598a57e3] .collapsed .node-icon .node-line{display:none}[data-v-598a57e3] .collapsed.has-child>.node-div>.node-icon{background-color:#ddd}.tree-title[data-v-598a57e3]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-598a57e3] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-598a57e3] .node-li.dragging .node-icon .node-line{display:none}[data-v-598a57e3] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-598a57e3] .has-child>.node-div>.node-icon:hover .node-line{background-color:var(--line-color)}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-popper-content-item.active{background:#f2f2f2}.record-tree-title-bar{position:relative;display:flex;margin-bottom:10px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-title .node-text{margin-left:0!important}.record-tree-title-bar .popper{transform:translate3d(0,22px,0)!important}.record-tree-title-finished{text-decoration:line-through;color:#999}.record-audio[data-v-e59bd63b]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-e59bd63b]{width:300px;height:40px}.record-audio .audio-item[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e59bd63b]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e59bd63b]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e59bd63b]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-e59bd63b]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e59bd63b]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e59bd63b]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e59bd63b]{margin-right:10px}.record-audio .main[data-v-e59bd63b]{display:flex;align-items:center}.record-audio .duration[data-v-e59bd63b]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e59bd63b]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e59bd63b]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e59bd63b]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-e59bd63b]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e59bd63b]{margin-right:10px}.record-video[data-v-9c809fcc]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-9c809fcc]{width:300px}.buttons[data-v-9c809fcc]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-9c809fcc]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-9c809fcc]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-9c809fcc]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-9c809fcc]{border:1px solid #eee}.buttons .oper[data-v-9c809fcc]{margin-right:10px}.wrap[data-v-9c809fcc]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-9c809fcc]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-69fc6ef1]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-69fc6ef1]{width:200px}.img-item[data-v-69fc6ef1]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-69fc6ef1]{width:200px}.record-content[data-v-69fc6ef1]{display:flex}.buttons[data-v-69fc6ef1]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-69fc6ef1]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-69fc6ef1]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-69fc6ef1]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-69fc6ef1]{border:1px solid #eee}.buttons .oper[data-v-69fc6ef1]{margin-right:10px}.wrap[data-v-69fc6ef1]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-69fc6ef1]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .node-icon{margin-right:8px;border:3px solid #fff}.record-tree-mobile .node-icon .node-circle{width:10px;height:10px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;padding-right:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree.record-tree-nobar{padding-bottom:0}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd;align-items:center}.record-tree-option-left{display:flex;flex:1;overflow:hidden}.record-tree-option-left-fixed{display:flex;position:relative;align-items:center;padding:0 10px}.record-tree-option-left-fixed:after{content:"";position:absolute;right:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-left-scroll{display:flex;padding:0 10px;flex:1;overflow-x:scroll;align-items:center}.record-tree-option-left-scroll::-webkit-scrollbar{display:none}.record-tree-option-right{display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:16px;position:relative}.record-tree-option-right:before{content:"";position:absolute;left:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{flex:1;border:none;outline:none;word-break:break-all;overflow:hidden;-webkit-user-select:text;-moz-user-select:text;user-select:text}.record-tree .node-text a{color:#0076ff;cursor:pointer}.record-tree .node-text mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.record-tree .node-text p{line-height:1.3}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}.tiptap p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.top-bar{display:flex}.top-bar-left{flex:1}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import { openBlock as st, createElementBlock as ft, createElementVNode as tt, createVNode as xt, unref as $e, Fragment as p0, renderList as b0, normalizeStyle as Gt, reactive as Ma, ref as ct, withModifiers as It, normalizeClass as Ot, createCommentVNode as kt, toDisplayString as l0, nextTick as Vt, watch as u0, onMounted as F0, onBeforeUnmount as Ta, createBlock as qt, onUnmounted as f0, computed as o0, resolveComponent as Ra, createSlots as Ca, withCtx as w0, pushScopeId as ka, popScopeId as Aa } from "vue";
3
3
  import na from "vue3-popper";
4
4
  import Bt from "vue-inline-svg";
5
5
  import { detectDeviceType as N0, truncateString as Ba, formatBytes as Ea, getTag as ia, isTodoTag as sa, getExt as D0, getTagStyle as oa, uuid as Ut, getTagStyleById as Da, parseMimeType as la, getSize as ua, oss as ca } from "@codernote/utils";
@@ -30,15 +30,15 @@ const qa = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
30
30
  lock: ir,
31
31
  unlock: sr
32
32
  }, Jt = (w, Z) => {
33
- const ae = w.__vccOpts || w;
33
+ const re = w.__vccOpts || w;
34
34
  for (const [b, le] of Z)
35
- ae[b] = le;
36
- return ae;
35
+ re[b] = le;
36
+ return re;
37
37
  }, or = { class: "color-panel" }, lr = ["onClick"], ur = {
38
38
  __name: "index",
39
39
  emits: ["change"],
40
40
  setup(w, { emit: Z }) {
41
- const ae = Z, b = [
41
+ const re = Z, b = [
42
42
  // "#ffffff", // 白色
43
43
  "#ebebeb",
44
44
  // 浅灰色
@@ -69,7 +69,7 @@ const qa = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
69
69
  // "#ff0080", // 粉红色
70
70
  // "#0080ff", // 深蓝色
71
71
  ], le = (F) => {
72
- ae("change", F);
72
+ re("change", F);
73
73
  };
74
74
  return (F, _e) => (st(), ft("div", or, [
75
75
  tt("ul", null, [
@@ -98,15 +98,15 @@ const qa = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
98
98
  function fr(w) {
99
99
  return w && w.uuid ? document.getElementById(w.uuid) : null;
100
100
  }
101
- function Vt(w, Z = !1) {
102
- const ae = fr(w), b = ".node-text";
103
- if (!ae)
101
+ function Pt(w, Z = !1) {
102
+ const re = fr(w), b = ".node-text";
103
+ if (!re)
104
104
  return null;
105
105
  if (Z) {
106
- const le = ae.querySelectorAll(b);
106
+ const le = re.querySelectorAll(b);
107
107
  return le[le.length - 1];
108
108
  }
109
- return ae.classList.contains(b.substring(1)) ? ae : ae == null ? void 0 : ae.querySelector(b);
109
+ return re.classList.contains(b.substring(1)) ? re : re == null ? void 0 : re.querySelector(b);
110
110
  }
111
111
  function s0() {
112
112
  if (document.activeElement && document.activeElement.classList.contains("holder-right"))
@@ -114,12 +114,12 @@ function s0() {
114
114
  let w = window.getSelection();
115
115
  return w.rangeCount > 0 && w.getRangeAt(0).startOffset || 0;
116
116
  }
117
- function Qt(w, Z = 0, ae = !1) {
117
+ function Qt(w, Z = 0, re = !1) {
118
118
  if (!w)
119
119
  return;
120
120
  const b = w.querySelectorAll(".holder");
121
121
  if (b.length) {
122
- (ae || Z > 0 ? b[1] : b[0]).focus();
122
+ (re || Z > 0 ? b[1] : b[0]).focus();
123
123
  return;
124
124
  }
125
125
  if (!w.isContentEditable) {
@@ -130,7 +130,7 @@ function Qt(w, Z = 0, ae = !1) {
130
130
  le.removeAllRanges();
131
131
  try {
132
132
  let _e = w;
133
- if (w.childNodes.length > 0 ? _e = w.childNodes[0] : (ae || Z > 0) && (_e = document.createTextNode(""), w.appendChild(_e)), ae)
133
+ if (w.childNodes.length > 0 ? _e = w.childNodes[0] : (re || Z > 0) && (_e = document.createTextNode(""), w.appendChild(_e)), re)
134
134
  F.selectNodeContents(_e), F.collapse(!1);
135
135
  else {
136
136
  const N = Math.min(Z, _e.length || 0);
@@ -149,10 +149,10 @@ function fa(w = !0) {
149
149
  const Z = document.querySelector(".record-tree-options");
150
150
  if (!Z)
151
151
  return;
152
- const ae = window.visualViewport.height, b = () => {
153
- window.visualViewport.height < ae && (Z.style.display = "none", setTimeout(() => {
152
+ const re = window.visualViewport.height, b = () => {
153
+ window.visualViewport.height < re && (Z.style.display = "none", setTimeout(() => {
154
154
  if (Z.style.display = "", w) {
155
- const F = ht.currentId, _e = Vt({ uuid: F });
155
+ const F = ht.currentId, _e = Pt({ uuid: F });
156
156
  dr(_e) || _e.scrollIntoView({
157
157
  behavior: "smooth",
158
158
  block: "center"
@@ -193,8 +193,8 @@ const vr = ["contenteditable"], hr = {
193
193
  }
194
194
  },
195
195
  emits: ["remove", "change", "keydown", "focus"],
196
- setup(w, { expose: Z, emit: ae }) {
197
- const b = ht.isMobile, le = ae, F = w, _e = ct(), N = ct(), we = ct(), he = ct(), be = ct();
196
+ setup(w, { expose: Z, emit: re }) {
197
+ const b = ht.isMobile, le = re, F = w, _e = ct(), N = ct(), we = ct(), he = ct(), be = ct();
198
198
  Z({
199
199
  focus: () => {
200
200
  _e.value.focus();
@@ -206,12 +206,12 @@ const vr = ["contenteditable"], hr = {
206
206
  function xe(Q) {
207
207
  const ve = s0();
208
208
  if (Q.key === "ArrowLeft" && ve > 0) {
209
- Pt(() => {
209
+ Vt(() => {
210
210
  Qt(Q.currentTarget, 0);
211
211
  });
212
212
  return;
213
213
  }
214
- Q.key === "ArrowRight" && ve === 0 && Pt(() => {
214
+ Q.key === "ArrowRight" && ve === 0 && Vt(() => {
215
215
  Qt(Q.currentTarget, 1 / 0, !0);
216
216
  }), le("keydown", Q);
217
217
  }
@@ -230,7 +230,7 @@ const vr = ["contenteditable"], hr = {
230
230
  function Ae(Q) {
231
231
  if (Q.currentTarget !== N.value)
232
232
  return;
233
- const ve = Q.clientX, re = Q.clientY, te = parseInt(
233
+ const ve = Q.clientX, ae = Q.clientY, te = parseInt(
234
234
  document.defaultView.getComputedStyle(we.value).width,
235
235
  10
236
236
  ), Ce = parseInt(
@@ -239,7 +239,7 @@ const vr = ["contenteditable"], hr = {
239
239
  ), Pe = te / Ce;
240
240
  let Ue = te, et = Ce;
241
241
  const Le = (Ie) => {
242
- let He = te + Ie.clientX - ve, Me = Ce + Ie.clientY - re;
242
+ let He = te + Ie.clientX - ve, Me = Ce + Ie.clientY - ae;
243
243
  const { origWidth: Ve, origHeight: Qe } = F.data.size || {};
244
244
  Ve && Qe && (He = Math.min(He, Ve), Me = Math.min(Me, Qe)), He = Math.max(He, 50), Me = Math.max(Me, 50), He / Me > Pe ? (Ue = Me * Pe, et = Me, we.value.style.height = et + "px", we.value.style.width = Ue + "px") : (Ue = He, et = He / Pe, we.value.style.width = He + "px", we.value.style.height = et + "px");
245
245
  }, M = () => {
@@ -374,8 +374,8 @@ const vr = ["contenteditable"], hr = {
374
374
  addCommands() {
375
375
  return {
376
376
  removeEmptyTextStyle: () => ({ state: w, commands: Z }) => {
377
- const ae = Pa(w, this.type);
378
- return Object.entries(ae).some(([, le]) => !!le) ? !0 : Z.unsetMark(this.name);
377
+ const re = Pa(w, this.type);
378
+ return Object.entries(re).some(([, le]) => !!le) ? !0 : Z.unsetMark(this.name);
379
379
  }
380
380
  };
381
381
  }
@@ -470,10 +470,10 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
470
470
  Y0();
471
471
  const Z = w.target.innerText;
472
472
  if (L0[Z]) {
473
- const ae = document.createElement("div");
474
- ae.classList.add(da);
473
+ const re = document.createElement("div");
474
+ re.classList.add(da);
475
475
  const { top: b, left: le, width: F } = w.target.getBoundingClientRect();
476
- ae.innerText = L0[Z](), ae.style.top = `${b}px`, ae.style.left = `${le + parseInt(F / 2)}px`, document.body.appendChild(ae);
476
+ re.innerText = L0[Z](), re.style.top = `${b}px`, re.style.left = `${le + parseInt(F / 2)}px`, document.body.appendChild(re);
477
477
  }
478
478
  }
479
479
  }, Q0 = (w) => {
@@ -517,8 +517,8 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
517
517
  }
518
518
  },
519
519
  emits: ["change", "keydown", "focus", "blur"],
520
- setup(w, { expose: Z, emit: ae }) {
521
- const b = ct(), le = w, F = ae, _e = ct(!1), N = Ia({
520
+ setup(w, { expose: Z, emit: re }) {
521
+ const b = ct(), le = w, F = re, _e = ct(!1), N = Ia({
522
522
  content: le.content,
523
523
  editable: !le.readOnly,
524
524
  enableInputRules: !1,
@@ -545,7 +545,7 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
545
545
  class: ["node-text"]
546
546
  },
547
547
  handleKeyDown(I, ee) {
548
- const { selection: Ae, doc: R } = I.state, { from: Q, to: ve } = Ae, re = R.content.size - 1, te = Q === 1 && ve === 1, Ce = Q === re && ve === re;
548
+ const { selection: Ae, doc: R } = I.state, { from: Q, to: ve } = Ae, ae = R.content.size - 1, te = Q === 1 && ve === 1, Ce = Q === ae && ve === ae;
549
549
  return ht.pos = Q, // 回车,缩进,光标上下移动
550
550
  ["Enter", "Tab", "ArrowUp", "ArrowDown"].includes(ee.key) || // 行首生效: 删除,和光标左移到上一行仅在
551
551
  ["Backspace", "ArrowLeft"].includes(ee.key) && te || // 行尾生效:光标右移到下一行
@@ -644,8 +644,8 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
644
644
  }
645
645
  },
646
646
  emits: ["change", "keydown", "focus", "remove"],
647
- setup(w, { expose: Z, emit: ae }) {
648
- const b = ct(null), le = ct(null), F = w, _e = ae;
647
+ setup(w, { expose: Z, emit: re }) {
648
+ const b = ct(null), le = ct(null), F = w, _e = re;
649
649
  function N(xe) {
650
650
  _e("keydown", xe);
651
651
  }
@@ -666,8 +666,8 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
666
666
  const Q = new RegExp(`^(${R}[::])`), ve = new RegExp(`([::]${R})$`);
667
667
  if (Q.test(ee) || ve.test(ee)) {
668
668
  Ae = Ae.replace(Q, "").replace(ve, "");
669
- const re = F.tags.find((te) => te.name === R);
670
- q.tag_id = re.created_at, q.text = Ae && `<p>${Ae}</p>`;
669
+ const ae = F.tags.find((te) => te.name === R);
670
+ q.tag_id = ae.created_at, q.text = Ae && `<p>${Ae}</p>`;
671
671
  }
672
672
  }), _e("change", q);
673
673
  }
@@ -740,19 +740,19 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
740
740
  "enter"
741
741
  ],
742
742
  setup(w, { emit: Z }) {
743
- const ae = w, b = Z;
743
+ const re = w, b = Z;
744
744
  let le = 0, F = null;
745
745
  const _e = ct(null);
746
746
  F0(() => {
747
- c0[ae.node.uuid] = _e.value;
747
+ c0[re.node.uuid] = _e.value;
748
748
  }), f0(() => {
749
- delete c0[ae.node.uuid];
749
+ delete c0[re.node.uuid];
750
750
  });
751
751
  const N = o0(() => {
752
- const te = ia(ae.node.tag_id, ae.tags);
752
+ const te = ia(re.node.tag_id, re.tags);
753
753
  return te.created_at ? te : null;
754
754
  }), we = o0(() => sa(N.value)), he = o0(() => {
755
- const te = D0(ae.node);
755
+ const te = D0(re.node);
756
756
  return we.value && te.finished;
757
757
  });
758
758
  function be() {
@@ -760,13 +760,13 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
760
760
  clearTimeout(F);
761
761
  const Pe = 500;
762
762
  Ce < Pe && Ce > 0 ? (le = 0, b("change", {
763
- ...ae.node,
764
- collapsed: !ae.node.collapsed
763
+ ...re.node,
764
+ collapsed: !re.node.collapsed
765
765
  })) : (F = setTimeout(() => {
766
766
  if (we.value) {
767
- const Ue = D0(ae.node);
768
- re({
769
- ...ae.node,
767
+ const Ue = D0(re.node);
768
+ ae({
769
+ ...re.node,
770
770
  ext: {
771
771
  ...Ue,
772
772
  finished: !Ue.finished
@@ -776,7 +776,7 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
776
776
  }, Pe), le = te);
777
777
  }
778
778
  function Ee() {
779
- const te = ae.node;
779
+ const te = re.node;
780
780
  ht.currentId = te.uuid, ht.isMobile && fa();
781
781
  }
782
782
  function Ye(te, ...Ce) {
@@ -810,14 +810,14 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
810
810
  }
811
811
  function xe(te) {
812
812
  var Pe;
813
- const Ce = ae.node;
813
+ const Ce = re.node;
814
814
  te.preventDefault(), !((Pe = Ce.children) != null && Pe.length) && (b("toPrevFocus", Ce, !0), ve());
815
815
  }
816
816
  function q(te) {
817
- b("tab", te, ae.node);
817
+ b("tab", te, re.node);
818
818
  }
819
819
  function I(te) {
820
- const Ce = ae.node;
820
+ const Ce = re.node;
821
821
  if (te.ctrlKey) {
822
822
  b("change", {
823
823
  ...Ce,
@@ -827,30 +827,30 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
827
827
  text: "",
828
828
  uuid: Ut()
829
829
  };
830
- Ce.children ? Ce.children.unshift(Pe) : Ce.children = [Pe], re(), Pt(() => {
830
+ Ce.children ? Ce.children.unshift(Pe) : Ce.children = [Pe], ae(), Vt(() => {
831
831
  b("toFocus", Pe);
832
832
  });
833
833
  } else
834
834
  b("enter", Ce);
835
835
  }
836
836
  function ee(te) {
837
- const Ce = ae.node;
837
+ const Ce = re.node;
838
838
  te.currentTarget && (ht.pos = null, b("toPrevFocus", Ce, !0));
839
839
  }
840
840
  function Ae(te) {
841
- const Ce = ae.node;
841
+ const Ce = re.node;
842
842
  te.currentTarget && (ht.pos = 0, b("toNextFocus", Ce, !0, !0));
843
843
  }
844
844
  function R() {
845
- b("toNextFocus", ae.node, !1, !0);
845
+ b("toNextFocus", re.node, !1, !0);
846
846
  }
847
847
  function Q() {
848
- b("toPrevFocus", ae.node);
848
+ b("toPrevFocus", re.node);
849
849
  }
850
850
  function ve() {
851
- b("remove", ae.node);
851
+ b("remove", re.node);
852
852
  }
853
- function re(te = ae.node) {
853
+ function ae(te = re.node) {
854
854
  b("change", te);
855
855
  }
856
856
  return (te, Ce) => (st(), ft("div", kr, [
@@ -881,7 +881,7 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
881
881
  readOnly: w.readOnly,
882
882
  data: w.node,
883
883
  tags: w.tags,
884
- onChange: re,
884
+ onChange: ae,
885
885
  onKeydown: Ye,
886
886
  onFocus: Ee,
887
887
  onRemove: ve
@@ -891,7 +891,7 @@ const ha = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
891
891
  }, J0 = /* @__PURE__ */ Jt(Ar, [["__scopeId", "data-v-c2e5c561"]]);
892
892
  function ma(w) {
893
893
  var _e;
894
- let ae = (((_e = w.target) == null ? void 0 : _e.querySelector(".node-div")) || w.target).getBoundingClientRect(), b = w.clientY, le = ae.top + ae.height / 3, F = ae.top + ae.height / 3 * 2;
894
+ let re = (((_e = w.target) == null ? void 0 : _e.querySelector(".node-div")) || w.target).getBoundingClientRect(), b = w.clientY, le = re.top + re.height / 3, F = re.top + re.height / 3 * 2;
895
895
  return b < le ? "top" : b < F ? "center" : "bottom";
896
896
  }
897
897
  function Br(w) {
@@ -904,17 +904,17 @@ function I0() {
904
904
  }
905
905
  function Er(w, Z) {
906
906
  var _e;
907
- const ae = w.currentTarget, b = ht.dragId ? document.getElementById(ht.dragId) : null;
908
- if (!ae || ht.dragId === Z.uuid || b != null && b.querySelector(`[id="${Z.uuid}"]`)) {
907
+ const re = w.currentTarget, b = ht.dragId ? document.getElementById(ht.dragId) : null;
908
+ if (!re || ht.dragId === Z.uuid || b != null && b.querySelector(`[id="${Z.uuid}"]`)) {
909
909
  w.dataTransfer.dropEffect = "none";
910
910
  return;
911
911
  }
912
912
  I0();
913
- const le = ma(w), F = (_e = ae.querySelector(".node-div")) == null ? void 0 : _e.classList;
913
+ const le = ma(w), F = (_e = re.querySelector(".node-div")) == null ? void 0 : _e.classList;
914
914
  F && F.add(`drag-over-${le}`);
915
915
  }
916
916
  function Dr(w) {
917
- const ae = new DOMParser().parseFromString(w, "text/html"), b = ae.querySelector("img"), le = ae.querySelector("video"), F = ae.querySelector("audio");
917
+ const re = new DOMParser().parseFromString(w, "text/html"), b = re.querySelector("img"), le = re.querySelector("video"), F = re.querySelector("audio");
918
918
  return b ? {
919
919
  type: "image",
920
920
  content: b.src
@@ -926,10 +926,10 @@ function Dr(w) {
926
926
  content: F.src
927
927
  } : null;
928
928
  }
929
- function O0(w, Z, ae = !0) {
929
+ function O0(w, Z, re = !0) {
930
930
  var b;
931
931
  return (b = Z.children) != null && b.length ? Z.children.some(
932
- (le) => le.uuid === w.uuid || (ae ? O0(w, le) : !1)
932
+ (le) => le.uuid === w.uuid || (re ? O0(w, le) : !1)
933
933
  ) : !1;
934
934
  }
935
935
  const Lr = {
@@ -991,9 +991,9 @@ const Lr = {
991
991
  "fileUpload",
992
992
  "change"
993
993
  ],
994
- setup(w, { expose: Z, emit: ae }) {
995
- const b = w, le = ae;
996
- Z({ appendNode: re, updateNode: te, head: ve, addFiles: Q });
994
+ setup(w, { expose: Z, emit: re }) {
995
+ const b = w, le = re;
996
+ Z({ appendNode: ae, updateNode: te, head: ve, addFiles: Q });
997
997
  let F = null;
998
998
  u0(
999
999
  () => b.nodes,
@@ -1031,7 +1031,7 @@ const Lr = {
1031
1031
  )
1032
1032
  return;
1033
1033
  let Qe = [...b.nodes];
1034
- if (Qe.find((Ke) => Ke.uuid === Me.uuid) ? Qe = Qe.filter((Ke) => Ke.uuid !== Me.uuid) : K0.emit("dragEnd"), ht.dragId = null, Ve === "center" && (Ie.collapsed = !1, Ie.children ? Ie.children.push(Me) : Ie.children = [Me], Pt(() => {
1034
+ if (Qe.find((Ke) => Ke.uuid === Me.uuid) ? Qe = Qe.filter((Ke) => Ke.uuid !== Me.uuid) : K0.emit("dragEnd"), ht.dragId = null, Ve === "center" && (Ie.collapsed = !1, Ie.children ? Ie.children.push(Me) : Ie.children = [Me], Vt(() => {
1035
1035
  Le(Qe);
1036
1036
  })), Ve === "top") {
1037
1037
  const Ke = Qe.findIndex((Fe) => Fe === Ie);
@@ -1057,8 +1057,8 @@ const Lr = {
1057
1057
  Qe.collapsed && (Qe.collapsed = !1), Qe.children ? Qe.children.push(Ie) : Qe.children = [Ie], He.splice(Me, 1), Le(He);
1058
1058
  } else
1059
1059
  M.target.focus();
1060
- Pt(() => {
1061
- Qt(Vt(Ie), Ve);
1060
+ Vt(() => {
1061
+ Qt(Pt(Ie), Ve);
1062
1062
  });
1063
1063
  }
1064
1064
  function Ee(M) {
@@ -1088,8 +1088,8 @@ const Lr = {
1088
1088
  }
1089
1089
  function I(M) {
1090
1090
  const Ie = b.nodes.findIndex((Ve) => Ve.uuid === M.uuid), He = [...b.nodes], Me = { text: "", uuid: Ut() };
1091
- He.splice(Ie + 1, 0, Me), Le(He), Pt(() => {
1092
- const Ve = Vt(Me);
1091
+ He.splice(Ie + 1, 0, Me), Le(He), Vt(() => {
1092
+ const Ve = Pt(Me);
1093
1093
  Ve == null || Ve.focus();
1094
1094
  });
1095
1095
  }
@@ -1100,7 +1100,7 @@ const Lr = {
1100
1100
  if (Me === 0)
1101
1101
  le("focusPrev", Ie);
1102
1102
  else {
1103
- const Qe = b.nodes[Me - 1], Ke = ((Ve = Qe.children) == null ? void 0 : Ve.length) && !Qe.collapsed, Fe = Vt(Qe, Ke), A = Ie || He === 1 / 0;
1103
+ const Qe = b.nodes[Me - 1], Ke = ((Ve = Qe.children) == null ? void 0 : Ve.length) && !Qe.collapsed, Fe = Pt(Qe, Ke), A = Ie || He === 1 / 0;
1104
1104
  Qt(
1105
1105
  Fe,
1106
1106
  A ? Fe.innerText.length : He,
@@ -1112,18 +1112,18 @@ const Lr = {
1112
1112
  var Qe;
1113
1113
  const Me = s0(), Ve = b.nodes.findIndex((Ke) => Ke === M);
1114
1114
  if (He && ((Qe = M.children) != null && Qe.length) && !M.collapsed) {
1115
- const Ke = Vt(M.children[0]);
1115
+ const Ke = Pt(M.children[0]);
1116
1116
  Qt(Ke, Ie ? 0 : Me);
1117
1117
  } else if (Ve + 1 >= b.nodes.length)
1118
1118
  le("focusNext", !0);
1119
1119
  else {
1120
- const Ke = Vt(b.nodes[Ve + 1]);
1120
+ const Ke = Pt(b.nodes[Ve + 1]);
1121
1121
  Qt(Ke, Ie ? 0 : Me);
1122
1122
  }
1123
1123
  }
1124
1124
  function R(M, Ie = !1) {
1125
1125
  let He = s0();
1126
- const Me = Vt(M);
1126
+ const Me = Pt(M);
1127
1127
  Qt(Me, He, Ie);
1128
1128
  }
1129
1129
  function Q(M, Ie, He = 0) {
@@ -1143,14 +1143,14 @@ const Lr = {
1143
1143
  }
1144
1144
  }
1145
1145
  function ve(M = !1) {
1146
- const Ie = Vt(b.nodes[0]);
1146
+ const Ie = Pt(b.nodes[0]);
1147
1147
  if (M && Ie) {
1148
1148
  const He = Ie.querySelector(".holder-right");
1149
1149
  He ? He.focus() : Ie.focus();
1150
1150
  }
1151
1151
  return Ie;
1152
1152
  }
1153
- function re(M, Ie = !1, He = b.nodes) {
1153
+ function ae(M, Ie = !1, He = b.nodes) {
1154
1154
  const Me = ht.currentId, Ve = [...He];
1155
1155
  if (!Ie && (!Me || !document.getElementById(Me))) {
1156
1156
  const Ke = Ve[Ve.length - 1];
@@ -1170,7 +1170,7 @@ const Lr = {
1170
1170
  } else
1171
1171
  Ve.forEach((Ke) => {
1172
1172
  var Fe;
1173
- (Fe = Ke.children) != null && Fe.length && (Ke.children = re(M, !0, Ke.children));
1173
+ (Fe = Ke.children) != null && Fe.length && (Ke.children = ae(M, !0, Ke.children));
1174
1174
  });
1175
1175
  return Ie || Le(Ve), Ve;
1176
1176
  }
@@ -1314,7 +1314,7 @@ const Lr = {
1314
1314
  "input",
1315
1315
  "file"
1316
1316
  ],
1317
- setup(w, { expose: Z, emit: ae }) {
1317
+ setup(w, { expose: Z, emit: re }) {
1318
1318
  const b = {
1319
1319
  show: !0,
1320
1320
  // tag总开关,false时取消tag所有功能
@@ -1328,30 +1328,30 @@ const Lr = {
1328
1328
  // 图标定位left值
1329
1329
  tagT: "3px"
1330
1330
  // 图标定位top值
1331
- }, le = ct(null), F = w, _e = ae;
1331
+ }, le = ct(null), F = w, _e = re;
1332
1332
  Z({ focus: Ye });
1333
1333
  const N = ct(null), we = N0() === "mobile", he = ct(!1), be = o0(() => {
1334
1334
  try {
1335
- const re = JSON.parse(F.note.title);
1336
- if (typeof re != "object")
1335
+ const ae = JSON.parse(F.note.title);
1336
+ if (typeof ae != "object")
1337
1337
  throw new Error();
1338
- return re;
1338
+ return ae;
1339
1339
  } catch {
1340
1340
  return {
1341
1341
  text: F.note.title
1342
1342
  };
1343
1343
  }
1344
1344
  }), Ee = o0(() => {
1345
- const re = ia(F.note.tag_id, F.tags), te = D0(F.note);
1346
- return sa(re) && te.finished;
1345
+ const ae = ia(F.note.tag_id, F.tags), te = D0(F.note);
1346
+ return sa(ae) && te.finished;
1347
1347
  });
1348
1348
  u0(
1349
1349
  () => {
1350
- var re;
1351
- return (re = F.note) == null ? void 0 : re.title;
1350
+ var ae;
1351
+ return (ae = F.note) == null ? void 0 : ae.title;
1352
1352
  },
1353
- (re) => {
1354
- const te = (re || "").replace(/^<p><\/p>$/, "");
1353
+ (ae) => {
1354
+ const te = (ae || "").replace(/^<p><\/p>$/, "");
1355
1355
  he.value = !te;
1356
1356
  },
1357
1357
  { immediate: !0 }
@@ -1360,23 +1360,23 @@ const Lr = {
1360
1360
  }), f0(() => {
1361
1361
  delete c0.tree_title;
1362
1362
  });
1363
- function Ye(re = "end") {
1364
- le.value.dispatch("focus", re);
1363
+ function Ye(ae = "end") {
1364
+ le.value.dispatch("focus", ae);
1365
1365
  }
1366
- function xe(re) {
1367
- const te = { ...F.note }, Ce = +re.created_at;
1366
+ function xe(ae) {
1367
+ const te = { ...F.note }, Ce = +ae.created_at;
1368
1368
  te.tag_id === Ce ? delete te.tag_id : te.tag_id = Ce, _e("change", te.title, te);
1369
1369
  }
1370
1370
  function q() {
1371
1371
  ht.currentId = "tree_title", we && fa(!1);
1372
1372
  }
1373
- function I(re) {
1374
- if (re.type)
1375
- _e("change", JSON.stringify(re));
1373
+ function I(ae) {
1374
+ if (ae.type)
1375
+ _e("change", JSON.stringify(ae));
1376
1376
  else {
1377
1377
  const te = { ...F.note };
1378
- re.tag_id && (te.tag_id = re.tag_id), Pt(() => {
1379
- _e("change", re.text, te);
1378
+ ae.tag_id && (te.tag_id = ae.tag_id), Vt(() => {
1379
+ _e("change", ae.text, te);
1380
1380
  });
1381
1381
  }
1382
1382
  }
@@ -1385,35 +1385,35 @@ const Lr = {
1385
1385
  Ye();
1386
1386
  }, 200);
1387
1387
  }
1388
- function Ae(re) {
1389
- re.preventDefault(), F.enableDbEnter ? N.value ? (clearTimeout(N.value), N.value = null, _e("dbEnter")) : N.value = setTimeout(() => {
1388
+ function Ae(ae) {
1389
+ ae.preventDefault(), F.enableDbEnter ? N.value ? (clearTimeout(N.value), N.value = null, _e("dbEnter")) : N.value = setTimeout(() => {
1390
1390
  N.value = null, _e("focusContent");
1391
1391
  }, 180) : _e("focusContent");
1392
1392
  }
1393
- function R(re, ...te) {
1394
- switch (re.key) {
1393
+ function R(ae, ...te) {
1394
+ switch (ae.key) {
1395
1395
  case "Enter":
1396
1396
  case "ArrowDown":
1397
- re.preventDefault(), Ae(re, ...te);
1397
+ ae.preventDefault(), Ae(ae, ...te);
1398
1398
  break;
1399
1399
  default:
1400
- if (!((re.ctrlKey || re.metaKey) && (re.key === "v" || re.key === "V")))
1401
- return re.preventDefault(), !1;
1400
+ if (!((ae.ctrlKey || ae.metaKey) && (ae.key === "v" || ae.key === "V")))
1401
+ return ae.preventDefault(), !1;
1402
1402
  break;
1403
1403
  }
1404
1404
  }
1405
- function Q(re) {
1406
- if (re.clipboardData) {
1407
- const te = re.clipboardData.items;
1408
- Array.from(te).some((Pe) => Pe.kind === "file") ? (re.preventDefault(), he.value ? ve(re.clipboardData.files[0]) : _e("file", re.clipboardData.files)) : re.clipboardData.getData("text") && (he.value = !1, setTimeout(() => {
1409
- _e("input", re.target.textContent);
1405
+ function Q(ae) {
1406
+ if (ae.clipboardData) {
1407
+ const te = ae.clipboardData.items;
1408
+ Array.from(te).some((Pe) => Pe.kind === "file") ? (ae.preventDefault(), he.value ? ve(ae.clipboardData.files[0]) : _e("file", ae.clipboardData.files)) : ae.clipboardData.getData("text") && (he.value = !1, setTimeout(() => {
1409
+ _e("input", ae.target.textContent);
1410
1410
  }, 0));
1411
1411
  }
1412
1412
  }
1413
- async function ve(re) {
1414
- const te = la(re.type), Ce = URL.createObjectURL(re);
1413
+ async function ve(ae) {
1414
+ const te = la(ae.type), Ce = URL.createObjectURL(ae);
1415
1415
  let Pe = {};
1416
- switch ((te.mainType === "image" || te.mainType === "video") && (Pe = await ua(re, te.mainType)), te.mainType) {
1416
+ switch ((te.mainType === "image" || te.mainType === "video") && (Pe = await ua(ae, te.mainType)), te.mainType) {
1417
1417
  case "image":
1418
1418
  case "audio":
1419
1419
  case "video":
@@ -1426,12 +1426,12 @@ const Lr = {
1426
1426
  default:
1427
1427
  I({
1428
1428
  type: "file",
1429
- name: re.name,
1429
+ name: ae.name,
1430
1430
  content: Ce,
1431
- size: re.size
1431
+ size: ae.size
1432
1432
  });
1433
1433
  }
1434
- ca.uploadFile([re], (Ue, et) => {
1434
+ ca.uploadFile([ae], (Ue, et) => {
1435
1435
  if (et) {
1436
1436
  const Le = et[0];
1437
1437
  Le.code === 0 && I({
@@ -1441,7 +1441,7 @@ const Lr = {
1441
1441
  }
1442
1442
  });
1443
1443
  }
1444
- return (re, te) => (st(), ft("div", Vr, [
1444
+ return (ae, te) => (st(), ft("div", Vr, [
1445
1445
  w.tags.length ? (st(), qt($e(na), { key: 0 }, Ca({
1446
1446
  default: w0(() => [
1447
1447
  tt("span", {
@@ -1516,21 +1516,21 @@ function zr(w) {
1516
1516
  return w;
1517
1517
  var Z = w.default;
1518
1518
  if (typeof Z == "function") {
1519
- var ae = function b() {
1519
+ var re = function b() {
1520
1520
  return this instanceof b ? Reflect.construct(Z, arguments, this.constructor) : Z.apply(this, arguments);
1521
1521
  };
1522
- ae.prototype = Z.prototype;
1522
+ re.prototype = Z.prototype;
1523
1523
  } else
1524
- ae = {};
1525
- return Object.defineProperty(ae, "__esModule", { value: !0 }), Object.keys(w).forEach(function(b) {
1524
+ re = {};
1525
+ return Object.defineProperty(re, "__esModule", { value: !0 }), Object.keys(w).forEach(function(b) {
1526
1526
  var le = Object.getOwnPropertyDescriptor(w, b);
1527
- Object.defineProperty(ae, b, le.get ? le : {
1527
+ Object.defineProperty(re, b, le.get ? le : {
1528
1528
  enumerable: !0,
1529
1529
  get: function() {
1530
1530
  return w[b];
1531
1531
  }
1532
1532
  });
1533
- }), ae;
1533
+ }), re;
1534
1534
  }
1535
1535
  var pa = { exports: {} };
1536
1536
  function qr(w) {
@@ -1544,10 +1544,10 @@ const Gr = {}, jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1544
1544
  var ea;
1545
1545
  function y0() {
1546
1546
  return ea || (ea = 1, function(w, Z) {
1547
- (function(ae, b) {
1547
+ (function(re, b) {
1548
1548
  w.exports = b();
1549
1549
  })(pt, function() {
1550
- var ae = ae || function(b, le) {
1550
+ var re = re || function(b, le) {
1551
1551
  var F;
1552
1552
  if (typeof window < "u" && window.crypto && (F = window.crypto), typeof self < "u" && self.crypto && (F = self.crypto), typeof globalThis < "u" && globalThis.crypto && (F = globalThis.crypto), !F && typeof window < "u" && window.msCrypto && (F = window.msCrypto), !F && typeof pt < "u" && pt.crypto && (F = pt.crypto), !F && typeof qr == "function")
1553
1553
  try {
@@ -1704,15 +1704,15 @@ function y0() {
1704
1704
  * wordArray1.concat(wordArray2);
1705
1705
  */
1706
1706
  concat: function(R) {
1707
- var Q = this.words, ve = R.words, re = this.sigBytes, te = R.sigBytes;
1708
- if (this.clamp(), re % 4)
1707
+ var Q = this.words, ve = R.words, ae = this.sigBytes, te = R.sigBytes;
1708
+ if (this.clamp(), ae % 4)
1709
1709
  for (var Ce = 0; Ce < te; Ce++) {
1710
1710
  var Pe = ve[Ce >>> 2] >>> 24 - Ce % 4 * 8 & 255;
1711
- Q[re + Ce >>> 2] |= Pe << 24 - (re + Ce) % 4 * 8;
1711
+ Q[ae + Ce >>> 2] |= Pe << 24 - (ae + Ce) % 4 * 8;
1712
1712
  }
1713
1713
  else
1714
1714
  for (var Ue = 0; Ue < te; Ue += 4)
1715
- Q[re + Ue >>> 2] = ve[Ue >>> 2];
1715
+ Q[ae + Ue >>> 2] = ve[Ue >>> 2];
1716
1716
  return this.sigBytes += te, this;
1717
1717
  },
1718
1718
  /**
@@ -1772,11 +1772,11 @@ function y0() {
1772
1772
  * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
1773
1773
  */
1774
1774
  stringify: function(R) {
1775
- for (var Q = R.words, ve = R.sigBytes, re = [], te = 0; te < ve; te++) {
1775
+ for (var Q = R.words, ve = R.sigBytes, ae = [], te = 0; te < ve; te++) {
1776
1776
  var Ce = Q[te >>> 2] >>> 24 - te % 4 * 8 & 255;
1777
- re.push((Ce >>> 4).toString(16)), re.push((Ce & 15).toString(16));
1777
+ ae.push((Ce >>> 4).toString(16)), ae.push((Ce & 15).toString(16));
1778
1778
  }
1779
- return re.join("");
1779
+ return ae.join("");
1780
1780
  },
1781
1781
  /**
1782
1782
  * Converts a hex string to a word array.
@@ -1792,8 +1792,8 @@ function y0() {
1792
1792
  * var wordArray = CryptoJS.enc.Hex.parse(hexString);
1793
1793
  */
1794
1794
  parse: function(R) {
1795
- for (var Q = R.length, ve = [], re = 0; re < Q; re += 2)
1796
- ve[re >>> 3] |= parseInt(R.substr(re, 2), 16) << 24 - re % 8 * 4;
1795
+ for (var Q = R.length, ve = [], ae = 0; ae < Q; ae += 2)
1796
+ ve[ae >>> 3] |= parseInt(R.substr(ae, 2), 16) << 24 - ae % 8 * 4;
1797
1797
  return new Ee.init(ve, Q / 2);
1798
1798
  }
1799
1799
  }, q = Ye.Latin1 = {
@@ -1811,11 +1811,11 @@ function y0() {
1811
1811
  * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
1812
1812
  */
1813
1813
  stringify: function(R) {
1814
- for (var Q = R.words, ve = R.sigBytes, re = [], te = 0; te < ve; te++) {
1814
+ for (var Q = R.words, ve = R.sigBytes, ae = [], te = 0; te < ve; te++) {
1815
1815
  var Ce = Q[te >>> 2] >>> 24 - te % 4 * 8 & 255;
1816
- re.push(String.fromCharCode(Ce));
1816
+ ae.push(String.fromCharCode(Ce));
1817
1817
  }
1818
- return re.join("");
1818
+ return ae.join("");
1819
1819
  },
1820
1820
  /**
1821
1821
  * Converts a Latin1 string to a word array.
@@ -1831,8 +1831,8 @@ function y0() {
1831
1831
  * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
1832
1832
  */
1833
1833
  parse: function(R) {
1834
- for (var Q = R.length, ve = [], re = 0; re < Q; re++)
1835
- ve[re >>> 2] |= (R.charCodeAt(re) & 255) << 24 - re % 4 * 8;
1834
+ for (var Q = R.length, ve = [], ae = 0; ae < Q; ae++)
1835
+ ve[ae >>> 2] |= (R.charCodeAt(ae) & 255) << 24 - ae % 4 * 8;
1836
1836
  return new Ee.init(ve, Q);
1837
1837
  }
1838
1838
  }, I = Ye.Utf8 = {
@@ -1911,13 +1911,13 @@ function y0() {
1911
1911
  * var processedData = bufferedBlockAlgorithm._process(!!'flush');
1912
1912
  */
1913
1913
  _process: function(R) {
1914
- var Q, ve = this._data, re = ve.words, te = ve.sigBytes, Ce = this.blockSize, Pe = Ce * 4, Ue = te / Pe;
1914
+ var Q, ve = this._data, ae = ve.words, te = ve.sigBytes, Ce = this.blockSize, Pe = Ce * 4, Ue = te / Pe;
1915
1915
  R ? Ue = b.ceil(Ue) : Ue = b.max((Ue | 0) - this._minBufferSize, 0);
1916
1916
  var et = Ue * Ce, Le = b.min(et * 4, te);
1917
1917
  if (et) {
1918
1918
  for (var M = 0; M < et; M += Ce)
1919
- this._doProcessBlock(re, M);
1920
- Q = re.splice(0, et), ve.sigBytes -= Le;
1919
+ this._doProcessBlock(ae, M);
1920
+ Q = ae.splice(0, et), ve.sigBytes -= Le;
1921
1921
  }
1922
1922
  return new Ee.init(Q, Le);
1923
1923
  },
@@ -2038,18 +2038,18 @@ function y0() {
2038
2038
  var Ae = we.algo = {};
2039
2039
  return we;
2040
2040
  }(Math);
2041
- return ae;
2041
+ return re;
2042
2042
  });
2043
2043
  }(k0)), k0.exports;
2044
2044
  }
2045
2045
  var A0 = { exports: {} }, ta;
2046
2046
  function Xr() {
2047
2047
  return ta || (ta = 1, function(w, Z) {
2048
- (function(ae, b) {
2048
+ (function(re, b) {
2049
2049
  w.exports = b(y0());
2050
- })(pt, function(ae) {
2050
+ })(pt, function(re) {
2051
2051
  return function(b) {
2052
- var le = ae, F = le.lib, _e = F.WordArray, N = F.Hasher, we = le.algo, he = [], be = [];
2052
+ var le = re, F = le.lib, _e = F.WordArray, N = F.Hasher, we = le.algo, he = [], be = [];
2053
2053
  (function() {
2054
2054
  function xe(Ae) {
2055
2055
  for (var R = b.sqrt(Ae), Q = 2; Q <= R; Q++)
@@ -2068,17 +2068,17 @@ function Xr() {
2068
2068
  this._hash = new _e.init(he.slice(0));
2069
2069
  },
2070
2070
  _doProcessBlock: function(xe, q) {
2071
- for (var I = this._hash.words, ee = I[0], Ae = I[1], R = I[2], Q = I[3], ve = I[4], re = I[5], te = I[6], Ce = I[7], Pe = 0; Pe < 64; Pe++) {
2071
+ for (var I = this._hash.words, ee = I[0], Ae = I[1], R = I[2], Q = I[3], ve = I[4], ae = I[5], te = I[6], Ce = I[7], Pe = 0; Pe < 64; Pe++) {
2072
2072
  if (Pe < 16)
2073
2073
  Ee[Pe] = xe[q + Pe] | 0;
2074
2074
  else {
2075
2075
  var Ue = Ee[Pe - 15], et = (Ue << 25 | Ue >>> 7) ^ (Ue << 14 | Ue >>> 18) ^ Ue >>> 3, Le = Ee[Pe - 2], M = (Le << 15 | Le >>> 17) ^ (Le << 13 | Le >>> 19) ^ Le >>> 10;
2076
2076
  Ee[Pe] = et + Ee[Pe - 7] + M + Ee[Pe - 16];
2077
2077
  }
2078
- var Ie = ve & re ^ ~ve & te, He = ee & Ae ^ ee & R ^ Ae & R, Me = (ee << 30 | ee >>> 2) ^ (ee << 19 | ee >>> 13) ^ (ee << 10 | ee >>> 22), Ve = (ve << 26 | ve >>> 6) ^ (ve << 21 | ve >>> 11) ^ (ve << 7 | ve >>> 25), Qe = Ce + Ve + Ie + be[Pe] + Ee[Pe], Ke = Me + He;
2079
- Ce = te, te = re, re = ve, ve = Q + Qe | 0, Q = R, R = Ae, Ae = ee, ee = Qe + Ke | 0;
2078
+ var Ie = ve & ae ^ ~ve & te, He = ee & Ae ^ ee & R ^ Ae & R, Me = (ee << 30 | ee >>> 2) ^ (ee << 19 | ee >>> 13) ^ (ee << 10 | ee >>> 22), Ve = (ve << 26 | ve >>> 6) ^ (ve << 21 | ve >>> 11) ^ (ve << 7 | ve >>> 25), Qe = Ce + Ve + Ie + be[Pe] + Ee[Pe], Ke = Me + He;
2079
+ Ce = te, te = ae, ae = ve, ve = Q + Qe | 0, Q = R, R = Ae, Ae = ee, ee = Qe + Ke | 0;
2080
2080
  }
2081
- I[0] = I[0] + ee | 0, I[1] = I[1] + Ae | 0, I[2] = I[2] + R | 0, I[3] = I[3] + Q | 0, I[4] = I[4] + ve | 0, I[5] = I[5] + re | 0, I[6] = I[6] + te | 0, I[7] = I[7] + Ce | 0;
2081
+ I[0] = I[0] + ee | 0, I[1] = I[1] + Ae | 0, I[2] = I[2] + R | 0, I[3] = I[3] + Q | 0, I[4] = I[4] + ve | 0, I[5] = I[5] + ae | 0, I[6] = I[6] + te | 0, I[7] = I[7] + Ce | 0;
2082
2082
  },
2083
2083
  _doFinalize: function() {
2084
2084
  var xe = this._data, q = xe.words, I = this._nDataBytes * 8, ee = xe.sigBytes * 8;
@@ -2090,18 +2090,18 @@ function Xr() {
2090
2090
  }
2091
2091
  });
2092
2092
  le.SHA256 = N._createHelper(Ye), le.HmacSHA256 = N._createHmacHelper(Ye);
2093
- }(Math), ae.SHA256;
2093
+ }(Math), re.SHA256;
2094
2094
  });
2095
2095
  }(A0)), A0.exports;
2096
2096
  }
2097
2097
  var B0 = { exports: {} }, aa;
2098
2098
  function $r() {
2099
2099
  return aa || (aa = 1, function(w, Z) {
2100
- (function(ae, b) {
2100
+ (function(re, b) {
2101
2101
  w.exports = b(y0());
2102
- })(pt, function(ae) {
2102
+ })(pt, function(re) {
2103
2103
  (function() {
2104
- var b = ae, le = b.lib, F = le.Base, _e = b.enc, N = _e.Utf8, we = b.algo;
2104
+ var b = re, le = b.lib, F = le.Base, _e = b.enc, N = _e.Utf8, we = b.algo;
2105
2105
  we.HMAC = F.extend({
2106
2106
  /**
2107
2107
  * Initializes a newly created HMAC.
@@ -2173,21 +2173,21 @@ function $r() {
2173
2173
  }(B0)), B0.exports;
2174
2174
  }
2175
2175
  (function(w, Z) {
2176
- (function(ae, b, le) {
2176
+ (function(re, b, le) {
2177
2177
  w.exports = b(y0(), Xr(), $r());
2178
- })(pt, function(ae) {
2179
- return ae.HmacSHA256;
2178
+ })(pt, function(re) {
2179
+ return re.HmacSHA256;
2180
2180
  });
2181
2181
  })(pa);
2182
2182
  var Kr = pa.exports;
2183
2183
  const Zr = /* @__PURE__ */ H0(Kr);
2184
2184
  var ba = { exports: {} };
2185
2185
  (function(w, Z) {
2186
- (function(ae, b) {
2186
+ (function(re, b) {
2187
2187
  w.exports = b(y0());
2188
- })(pt, function(ae) {
2188
+ })(pt, function(re) {
2189
2189
  return function() {
2190
- var b = ae, le = b.lib, F = le.WordArray, _e = b.enc;
2190
+ var b = re, le = b.lib, F = le.WordArray, _e = b.enc;
2191
2191
  _e.Base64 = {
2192
2192
  /**
2193
2193
  * Converts a word array to a Base64 string.
@@ -2251,37 +2251,37 @@ var ba = { exports: {} };
2251
2251
  }
2252
2252
  return F.create(Ee, Ye);
2253
2253
  }
2254
- }(), ae.enc.Base64;
2254
+ }(), re.enc.Base64;
2255
2255
  });
2256
2256
  })(ba);
2257
2257
  var Qr = ba.exports;
2258
2258
  const Jr = /* @__PURE__ */ H0(Qr);
2259
2259
  let zt, t0 = "", m0 = "", wa = null;
2260
2260
  function en() {
2261
- var w = "wss://iat-api.xfyun.cn/v2/iat", Z = "iat-api.xfyun.cn", ae = "4f2bbe08d7ee54da888cfd009514e89f", b = "NTc3MWNlNDNiZWFmMGM2Yzk0ZjRlZjdi", le = (/* @__PURE__ */ new Date()).toGMTString(), F = "hmac-sha256", _e = "host date request-line", N = `host: ${Z}
2261
+ var w = "wss://iat-api.xfyun.cn/v2/iat", Z = "iat-api.xfyun.cn", re = "4f2bbe08d7ee54da888cfd009514e89f", b = "NTc3MWNlNDNiZWFmMGM2Yzk0ZjRlZjdi", le = (/* @__PURE__ */ new Date()).toGMTString(), F = "hmac-sha256", _e = "host date request-line", N = `host: ${Z}
2262
2262
  date: ${le}
2263
- GET /v2/iat HTTP/1.1`, we = Zr(N, b), he = Jr.stringify(we), be = `api_key="${ae}", algorithm="${F}", headers="${_e}", signature="${he}"`, Ee = btoa(be);
2263
+ GET /v2/iat HTTP/1.1`, we = Zr(N, b), he = Jr.stringify(we), be = `api_key="${re}", algorithm="${F}", headers="${_e}", signature="${he}"`, Ee = btoa(be);
2264
2264
  return w = `${w}?authorization=${Ee}&date=${le}&host=${Z}`, w;
2265
2265
  }
2266
2266
  function tn(w) {
2267
- for (var Z = "", ae = new Uint8Array(w), b = ae.byteLength, le = 0; le < b; le++)
2268
- Z += String.fromCharCode(ae[le]);
2267
+ for (var Z = "", re = new Uint8Array(w), b = re.byteLength, le = 0; le < b; le++)
2268
+ Z += String.fromCharCode(re[le]);
2269
2269
  return Z;
2270
2270
  }
2271
2271
  function an(w) {
2272
2272
  let Z = JSON.parse(w);
2273
2273
  if (Z.data && Z.data.result) {
2274
- let ae = Z.data.result, b = "", le = ae.ws;
2274
+ let re = Z.data.result, b = "", le = re.ws;
2275
2275
  for (let F = 0; F < le.length; F++)
2276
2276
  b = b + le[F].cw[0].w;
2277
- ae.pgs ? (ae.pgs === "apd" && (t0 = m0), m0 = t0 + b) : t0 = t0 + b, wa(m0 || t0 || "");
2277
+ re.pgs ? (re.pgs === "apd" && (t0 = m0), m0 = t0 + b) : t0 = t0 + b, wa(m0 || t0 || "");
2278
2278
  }
2279
2279
  Z.code === 0 && Z.data.status === 2 && zt.close(), Z.code !== 0 && (zt.close(), console.error(Z));
2280
2280
  }
2281
2281
  function rn(w) {
2282
2282
  const Z = en();
2283
2283
  zt = new WebSocket(Z), zt.onopen = () => {
2284
- var ae = {
2284
+ var re = {
2285
2285
  common: {
2286
2286
  app_id: "c54ef25c"
2287
2287
  },
@@ -2298,17 +2298,17 @@ function rn(w) {
2298
2298
  encoding: "lame"
2299
2299
  }
2300
2300
  };
2301
- zt.send(JSON.stringify(ae)), w();
2302
- }, zt.onmessage = (ae) => {
2303
- an(ae.data);
2304
- }, zt.onerror = (ae) => {
2305
- console.error(ae);
2301
+ zt.send(JSON.stringify(re)), w();
2302
+ }, zt.onmessage = (re) => {
2303
+ an(re.data);
2304
+ }, zt.onerror = (re) => {
2305
+ console.error(re);
2306
2306
  };
2307
2307
  }
2308
2308
  function nn(w, Z) {
2309
2309
  zt = null, t0 = "", m0 = "", wa = Z, rn(() => {
2310
- const ae = new FileReader();
2311
- ae.readAsArrayBuffer(w), ae.onload = (b) => {
2310
+ const re = new FileReader();
2311
+ re.readAsArrayBuffer(w), re.onload = (b) => {
2312
2312
  const le = tn(b.target.result);
2313
2313
  let F = 0;
2314
2314
  for (; F < le.length; ) {
@@ -2326,7 +2326,7 @@ function nn(w, Z) {
2326
2326
  })
2327
2327
  );
2328
2328
  }
2329
- }, ae.onerror = () => {
2329
+ }, re.onerror = () => {
2330
2330
  zt.close();
2331
2331
  };
2332
2332
  });
@@ -2334,9 +2334,9 @@ function nn(w, Z) {
2334
2334
  var ya = { exports: {} };
2335
2335
  (function(w) {
2336
2336
  (function(Z) {
2337
- var ae = typeof window == "object" && !!window.document, b = ae ? window : Object;
2338
- Z(b, ae), w.exports && (w.exports = b.Recorder);
2339
- })(function(Z, ae) {
2337
+ var re = typeof window == "object" && !!window.document, b = re ? window : Object;
2338
+ Z(b, re), w.exports && (w.exports = b.Recorder);
2339
+ })(function(Z, re) {
2340
2340
  var b = function() {
2341
2341
  }, le = function(e) {
2342
2342
  return typeof e == "number";
@@ -2366,12 +2366,12 @@ var ya = { exports: {} };
2366
2366
  F.BindDestroy = function(e, s) {
2367
2367
  I[e] = s;
2368
2368
  }, F.Support = function() {
2369
- if (!ae)
2369
+ if (!re)
2370
2370
  return !1;
2371
2371
  var e = navigator.mediaDevices || {};
2372
2372
  return e[he] || (e = navigator, e[he] || (e[he] = e.webkitGetUserMedia || e.mozGetUserMedia || e.msGetUserMedia)), !(!e[he] || (F.Scope = e, !F.GetContext()));
2373
2373
  }, F.GetContext = function(e) {
2374
- if (!ae)
2374
+ if (!re)
2375
2375
  return null;
2376
2376
  var s = window.AudioContext;
2377
2377
  if (s || (s = window.webkitAudioContext), !s)
@@ -2426,7 +2426,7 @@ var ya = { exports: {} };
2426
2426
  return;
2427
2427
  }
2428
2428
  }, ne = "ScriptProcessor", ye = "audioWorklet", Be = we + " " + ye, ge = "RecProc", W = "MediaRecorder", Te = W + ".WebM.PCM", Oe = C.createScriptProcessor || C.createJavaScriptNode, z = Fe("ZGlf::。由于{1}内部1秒375次回调,在移动端可能会有性能问题导致回调丢失录音变短,PC端无影响,暂不建议开启{1}。", 0, ye), fe = function() {
2429
- i = h.isWorklet = !1, re(h), Ue(Fe("7TU0::Connect采用老的{1},", 0, ne) + Ke.get(
2429
+ i = h.isWorklet = !1, ae(h), Ue(Fe("7TU0::Connect采用老的{1},", 0, ne) + Ke.get(
2430
2430
  F[R] ? Fe("JwCL::但已设置{1}尝试启用{2}", 2) : Fe("VGjB::可设置{1}尝试启用{2}", 2),
2431
2431
  [we + "." + R + "=true", ye]
2432
2432
  ) + de + z, 3);
@@ -2533,14 +2533,14 @@ var ya = { exports: {} };
2533
2533
  k();
2534
2534
  }, ve = function(e) {
2535
2535
  e._na && e._na(), e._ra && e._ra();
2536
- }, re = function(e) {
2536
+ }, ae = function(e) {
2537
2537
  e._na = null, e._n && (e._n.port.postMessage({ kill: !0 }), e._n.disconnect(), e._n = null);
2538
2538
  }, te = function(e) {
2539
2539
  e._ra = null, e._r && (e._r.stop(), e._r = null);
2540
2540
  }, Ce = function(e) {
2541
2541
  e = e || F;
2542
2542
  var s = e == F, d = e.Stream;
2543
- d && (d._m && (d._m.disconnect(), d._m = null), !d._RC && d._c && F.CloseNewCtx(d._c), d._RC = null, d._c = null, d._d && (Pe(d._d.stream), d._d = null), d._p && (d._p.disconnect(), d._p.onaudioprocess = d._p = null), re(d), te(d), s && Pe(d)), e.Stream = 0;
2543
+ d && (d._m && (d._m.disconnect(), d._m = null), !d._RC && d._c && F.CloseNewCtx(d._c), d._RC = null, d._c = null, d._d && (Pe(d._d.stream), d._d = null), d._p && (d._p.disconnect(), d._p.onaudioprocess = d._p = null), ae(d), te(d), s && Pe(d)), e.Stream = 0;
2544
2544
  }, Pe = F.StopS_ = function(e) {
2545
2545
  for (var s = e.getTracks && e.getTracks() || e.audioTracks || [], d = 0; d < s.length; d++) {
2546
2546
  var h = s[d];
@@ -2692,7 +2692,7 @@ var ya = { exports: {} };
2692
2692
  return de == se.O ? d.close() : l = Fe("VtJO::open被中断"), x(l), !0;
2693
2693
  }
2694
2694
  };
2695
- if (!ae) {
2695
+ if (!re) {
2696
2696
  x(Fe.G("NonBrowser-1", ["open"]) + Fe("EMJq::,可尝试使用RecordApp解决方案") + "(" + N + "/tree/master/app-support-sample)");
2697
2697
  return;
2698
2698
  }
@@ -3148,7 +3148,7 @@ var ya = { exports: {} };
3148
3148
  }, Fe = Ke.$T;
3149
3149
  Fe.G = Ke.get, Fe("NonBrowser-1::非浏览器环境,不支持{1}", 1), Fe("IllegalArgs-1::参数错误:{1}", 1), Fe("NeedImport-2::调用{1}需要先导入{2}", 2), Fe("NotSupport-1::不支持:{1}", 1), F.TrafficImgUrl = "//ia.51.la/go1?id=20469973&pvFlag=1";
3150
3150
  var A = F.Traffic = function(e) {
3151
- if (ae) {
3151
+ if (re) {
3152
3152
  e = e ? "/" + we + "/Report/" + e : "";
3153
3153
  var s = F.TrafficImgUrl;
3154
3154
  if (s) {
@@ -3167,28 +3167,28 @@ var ya = { exports: {} };
3167
3167
  var sn = ya.exports;
3168
3168
  const E0 = /* @__PURE__ */ H0(sn);
3169
3169
  (function(w) {
3170
- var Z = typeof window == "object" && !!window.document, ae = Z ? window : Object, b = ae.Recorder, le = b.i18n;
3170
+ var Z = typeof window == "object" && !!window.document, re = Z ? window : Object, b = re.Recorder, le = b.i18n;
3171
3171
  w(b, le, le.$T, Z);
3172
- })(function(w, Z, ae, b) {
3172
+ })(function(w, Z, re, b) {
3173
3173
  var le = "48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000", F = "8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, 320";
3174
3174
  w.prototype.enc_mp3 = {
3175
3175
  stable: !0,
3176
3176
  takeEC: "full",
3177
3177
  getTestMsg: function() {
3178
- return ae("Zm7L::采样率范围:{1};比特率范围:{2}(不同比特率支持的采样率范围不同,小于32kbps时采样率需小于32000)", 0, le, F);
3178
+ return re("Zm7L::采样率范围:{1};比特率范围:{2}(不同比特率支持的采样率范围不同,小于32kbps时采样率需小于32000)", 0, le, F);
3179
3179
  }
3180
3180
  };
3181
3181
  var _e = function(q) {
3182
3182
  var I = q.bitRate, ee = q.sampleRate, Ae = ee;
3183
- if ((" " + F + ",").indexOf(" " + I + ",") == -1 && w.CLog(ae("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + I, F), 3), (" " + le + ",").indexOf(" " + ee + ",") == -1) {
3183
+ if ((" " + F + ",").indexOf(" " + I + ",") == -1 && w.CLog(re("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + I, F), 3), (" " + le + ",").indexOf(" " + ee + ",") == -1) {
3184
3184
  for (var R = le.split(", "), Q = [], ve = 0; ve < R.length; ve++)
3185
3185
  Q.push({ v: +R[ve], s: Math.abs(R[ve] - ee) });
3186
- Q.sort(function(re, te) {
3187
- return re.s - te.s;
3188
- }), Ae = Q[0].v, q.sampleRate = Ae, w.CLog(ae("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Ae, ee, le), 3);
3186
+ Q.sort(function(ae, te) {
3187
+ return ae.s - te.s;
3188
+ }), Ae = Q[0].v, q.sampleRate = Ae, w.CLog(re("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Ae, ee, le), 3);
3189
3189
  }
3190
3190
  }, N = function() {
3191
- return ae.G("NeedImport-2", ["mp3.js", "src/engine/mp3-engine.js"]);
3191
+ return re.G("NeedImport-2", ["mp3.js", "src/engine/mp3-engine.js"]);
3192
3192
  }, we = b && typeof Worker == "function";
3193
3193
  w.prototype.mp3 = function(q, I, ee) {
3194
3194
  var Ae = this, R = Ae.set, Q = q.length;
@@ -3207,12 +3207,12 @@ const E0 = /* @__PURE__ */ H0(sn);
3207
3207
  }
3208
3208
  }
3209
3209
  _e(R);
3210
- var re = new w.lamejs.Mp3Encoder(1, R.sampleRate, R.bitRate), te = 57600, Ce = new Int8Array(5e5), Pe = 0, Ue = 0, et = function() {
3210
+ var ae = new w.lamejs.Mp3Encoder(1, R.sampleRate, R.bitRate), te = 57600, Ce = new Int8Array(5e5), Pe = 0, Ue = 0, et = function() {
3211
3211
  try {
3212
3212
  if (Ue < Q)
3213
- var Le = re.encodeBuffer(q.subarray(Ue, Ue + te));
3213
+ var Le = ae.encodeBuffer(q.subarray(Ue, Ue + te));
3214
3214
  else
3215
- var Le = re.flush();
3215
+ var Le = ae.flush();
3216
3216
  } catch (Ve) {
3217
3217
  console.error(Ve), ee("MP3 Encoder: " + Ve.message);
3218
3218
  return;
@@ -3239,7 +3239,7 @@ const E0 = /* @__PURE__ */ H0(sn);
3239
3239
  he && (w.CLog("mp3Worker Destroy"), he.terminate(), he = null);
3240
3240
  }), w.prototype.mp3_envCheck = function(q, I) {
3241
3241
  var ee = "";
3242
- return I.takeoffEncodeChunk && (Ee() || (ee = ae("yhUs::当前浏览器版本太低,无法实时处理"))), !ee && !w.lamejs && (ee = N()), ee;
3242
+ return I.takeoffEncodeChunk && (Ee() || (ee = re("yhUs::当前浏览器版本太低,无法实时处理"))), !ee && !w.lamejs && (ee = N()), ee;
3243
3243
  }, w.prototype.mp3_start = function(q) {
3244
3244
  return Ee(q);
3245
3245
  };
@@ -3325,7 +3325,7 @@ const E0 = /* @__PURE__ */ H0(sn);
3325
3325
  }), et;
3326
3326
  }, Q, ve = he;
3327
3327
  if (I || !we)
3328
- return w.CLog(ae("k9PT::当前环境不支持Web Worker,mp3实时编码器运行在主线程中"), 3), ve = { postMessage: function(et) {
3328
+ return w.CLog(re("k9PT::当前环境不支持Web Worker,mp3实时编码器运行在主线程中"), 3), ve = { postMessage: function(et) {
3329
3329
  ee({ data: et });
3330
3330
  } }, Q = { wkScope: {
3331
3331
  wk_ctxs: {},
@@ -3334,9 +3334,9 @@ const E0 = /* @__PURE__ */ H0(sn);
3334
3334
  } }, Ae(), R();
3335
3335
  try {
3336
3336
  if (!ve) {
3337
- var re = (ee + "").replace(/[\w\$]+\.onmessage/g, "self.postMessage");
3338
- re = re.replace(/[\w\$]+\.wkScope/g, "wkScope");
3339
- var te = ");wk_lame();self.onmessage=" + re;
3337
+ var ae = (ee + "").replace(/[\w\$]+\.onmessage/g, "self.postMessage");
3338
+ ae = ae.replace(/[\w\$]+\.wkScope/g, "wkScope");
3339
+ var te = ");wk_lame();self.onmessage=" + ae;
3340
3340
  te += ";var wkScope={ wk_ctxs:{},wk_lame:wk_lame", te += ",wk_mp3TrimFix:{rm:" + Ye.rm + ",fn:" + Ye.fn + "} }";
3341
3341
  var Ce = w.lamejs.toString(), Pe = (window.URL || webkitURL).createObjectURL(new Blob(["var wk_lame=(", Ce, te], { type: "text/javascript" }));
3342
3342
  ve = new Worker(Pe), setTimeout(function() {
@@ -3358,7 +3358,7 @@ const E0 = /* @__PURE__ */ H0(sn);
3358
3358
  var I = -1;
3359
3359
  for (var ee in be)
3360
3360
  I++;
3361
- I && w.CLog(ae("fT6M::mp3 worker剩{1}个未stop", 0, I), 3);
3361
+ I && w.CLog(re("fT6M::mp3 worker剩{1}个未stop", 0, I), 3);
3362
3362
  }
3363
3363
  }, w.prototype.mp3_encode = function(q, I) {
3364
3364
  q && q.worker && q.worker.postMessage({
@@ -3373,7 +3373,7 @@ const E0 = /* @__PURE__ */ H0(sn);
3373
3373
  }, q.worker.postMessage({
3374
3374
  action: "complete",
3375
3375
  id: q.id
3376
- })) : ee(ae("mPxH::mp3编码器未start"));
3376
+ })) : ee(re("mPxH::mp3编码器未start"));
3377
3377
  }, w.mp3ReadMeta = function(q, I) {
3378
3378
  var ee = typeof window < "u" && window.parseInt || typeof self < "u" && self.parseInt || parseInt, Ae = new Uint8Array(q[0] || []);
3379
3379
  if (Ae.length < 4)
@@ -3383,22 +3383,22 @@ const E0 = /* @__PURE__ */ H0(sn);
3383
3383
  }, Q = R(0) + R(1), ve = R(2) + R(3);
3384
3384
  if (!/^1{11}/.test(Q))
3385
3385
  return null;
3386
- var re = { "00": 2.5, 10: 2, 11: 1 }[Q.substr(11, 2)], te = { "01": 3 }[Q.substr(13, 2)], Ce = {
3386
+ var ae = { "00": 2.5, 10: 2, 11: 1 }[Q.substr(11, 2)], te = { "01": 3 }[Q.substr(13, 2)], Ce = {
3387
3387
  //lamejs -> Tables.samplerate_table
3388
3388
  1: [44100, 48e3, 32e3],
3389
3389
  2: [22050, 24e3, 16e3],
3390
3390
  "2.5": [11025, 12e3, 8e3]
3391
- }[re];
3391
+ }[ae];
3392
3392
  Ce && (Ce = Ce[ee(ve.substr(4, 2), 2)]);
3393
3393
  var Pe = [
3394
3394
  //lamejs -> Tables.bitrate_table
3395
3395
  [0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160],
3396
3396
  [0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320]
3397
3397
  //MPEG 1
3398
- ][re == 1 ? 1 : 0][ee(ve.substr(0, 4), 2)];
3399
- if (!re || !te || !Pe || !Ce)
3398
+ ][ae == 1 ? 1 : 0][ee(ve.substr(0, 4), 2)];
3399
+ if (!ae || !te || !Pe || !Ce)
3400
3400
  return null;
3401
- for (var Ue = Math.round(I * 8 / Pe), et = te == 1 ? 384 : te == 2 || re == 1 ? 1152 : 576, Le = et / Ce * 1e3, M = Math.floor(et * Pe / 8 / Ce * 1e3), Ie = 0, He = 0, Me = 0; Me < q.length; Me++) {
3401
+ for (var Ue = Math.round(I * 8 / Pe), et = te == 1 ? 384 : te == 2 || ae == 1 ? 1152 : 576, Le = et / Ce * 1e3, M = Math.floor(et * Pe / 8 / Ce * 1e3), Ie = 0, He = 0, Me = 0; Me < q.length; Me++) {
3402
3402
  var Ve = q[Me];
3403
3403
  if (He += Ve.byteLength, He >= M + 3) {
3404
3404
  var Qe = new Uint8Array(Ve), Ke = Ve.byteLength - (He - (M + 3) + 1), Fe = R(Ke, Qe);
@@ -3407,7 +3407,7 @@ const E0 = /* @__PURE__ */ H0(sn);
3407
3407
  }
3408
3408
  }
3409
3409
  return Ie && M++, {
3410
- version: re,
3410
+ version: ae,
3411
3411
  layer: te,
3412
3412
  sampleRate: Ce,
3413
3413
  bitRate: Pe,
@@ -3428,13 +3428,13 @@ const E0 = /* @__PURE__ */ H0(sn);
3428
3428
  return { err: "mp3 unknown format" };
3429
3429
  var Q = Math.round(ee / Ae * 1e3), ve = Math.floor((R.duration - Q) / R.frameDurationFloat);
3430
3430
  if (ve > 0) {
3431
- var re = ve * R.frameSize - (R.hasPadding ? 1 : 0);
3432
- I -= re;
3431
+ var ae = ve * R.frameSize - (R.hasPadding ? 1 : 0);
3432
+ I -= ae;
3433
3433
  for (var te = 0, Ce = [], Pe = 0; Pe < q.length; Pe++) {
3434
3434
  var Ue = q[Pe];
3435
- if (re <= 0)
3435
+ if (ae <= 0)
3436
3436
  break;
3437
- re >= Ue.byteLength ? (re -= Ue.byteLength, Ce.push(Ue), q.splice(Pe, 1), Pe--) : (q[Pe] = Ue.slice(re), te = Ue, re = 0);
3437
+ ae >= Ue.byteLength ? (ae -= Ue.byteLength, Ce.push(Ue), q.splice(Pe, 1), Pe--) : (q[Pe] = Ue.slice(ae), te = Ue, ae = 0);
3438
3438
  }
3439
3439
  var et = this.rm(q, I);
3440
3440
  if (!et) {
@@ -3450,17 +3450,17 @@ const E0 = /* @__PURE__ */ H0(sn);
3450
3450
  }
3451
3451
  }, xe = function(q, I) {
3452
3452
  var ee = "MP3 Info: ";
3453
- (q.sampleRate && q.sampleRate != I.sampleRate || q.bitRate && q.bitRate != I.bitRate) && (w.CLog(ee + ae("uY9i::和设置的不匹配{1},已更新成{2}", 0, "set:" + I.bitRate + "kbps " + I.sampleRate + "hz", "set:" + q.bitRate + "kbps " + q.sampleRate + "hz"), 3, I), I.sampleRate = q.sampleRate, I.bitRate = q.bitRate);
3453
+ (q.sampleRate && q.sampleRate != I.sampleRate || q.bitRate && q.bitRate != I.bitRate) && (w.CLog(ee + re("uY9i::和设置的不匹配{1},已更新成{2}", 0, "set:" + I.bitRate + "kbps " + I.sampleRate + "hz", "set:" + q.bitRate + "kbps " + q.sampleRate + "hz"), 3, I), I.sampleRate = q.sampleRate, I.bitRate = q.bitRate);
3454
3454
  var Ae = q.trimFix;
3455
- Ae ? (ee += ae("iMSm::Fix移除{1}帧", 0, Ae.remove) + " " + Ae.removeDuration + "ms -> " + Ae.duration + "ms", Ae.remove > 2 && (q.err = (q.err ? q.err + ", " : "") + ae("b9zm::移除帧数过多"))) : ee += (q.duration || "-") + "ms", q.err ? w.CLog(ee, 1, q.err, q) : w.CLog(ee, q);
3455
+ Ae ? (ee += re("iMSm::Fix移除{1}帧", 0, Ae.remove) + " " + Ae.removeDuration + "ms -> " + Ae.duration + "ms", Ae.remove > 2 && (q.err = (q.err ? q.err + ", " : "") + re("b9zm::移除帧数过多"))) : ee += (q.duration || "-") + "ms", q.err ? w.CLog(ee, 1, q.err, q) : w.CLog(ee, q);
3456
3456
  };
3457
3457
  });
3458
3458
  (function(w) {
3459
- var Z = typeof window == "object" && !!window.document, ae = Z ? window : Object, b = ae.Recorder;
3459
+ var Z = typeof window == "object" && !!window.document, re = Z ? window : Object, b = re.Recorder;
3460
3460
  w(b);
3461
3461
  })(function(w) {
3462
3462
  function Z() {
3463
- var ae = function(l) {
3463
+ var re = function(l) {
3464
3464
  return Math.log(l) / Math.log(10);
3465
3465
  }, b = function(l) {
3466
3466
  throw new Error("abort(" + l + ")");
@@ -3532,9 +3532,9 @@ const E0 = /* @__PURE__ */ H0(sn);
3532
3532
  };
3533
3533
  var I = {};
3534
3534
  I.SQRT2 = 1.4142135623730951, I.FAST_LOG10 = function(l) {
3535
- return ae(l);
3535
+ return re(l);
3536
3536
  }, I.FAST_LOG10_X = function(l, k) {
3537
- return ae(l) * k;
3537
+ return re(l) * k;
3538
3538
  };
3539
3539
  function ee(l) {
3540
3540
  this.ordinal = l;
@@ -3559,7 +3559,7 @@ const E0 = /* @__PURE__ */ H0(sn);
3559
3559
  return l + "." + k + "." + G;
3560
3560
  };
3561
3561
  }
3562
- function re() {
3562
+ function ae() {
3563
3563
  var l = null;
3564
3564
  this.qupvt = null, this.setModules = function(c) {
3565
3565
  this.qupvt = c, l = c;
@@ -3905,7 +3905,7 @@ const E0 = /* @__PURE__ */ H0(sn);
3905
3905
  }
3906
3906
  };
3907
3907
  var o = [1, 1, 1, 1, 8, 2, 2, 2, 4, 4, 4, 8, 8, 8, 16, 16], T = [1, 2, 4, 8, 1, 2, 4, 8, 2, 4, 8, 2, 4, 8, 4, 8], U = [0, 0, 0, 0, 3, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4], y = [0, 1, 2, 3, 0, 1, 2, 3, 1, 2, 3, 1, 2, 3, 2, 3];
3908
- re.slen1_tab = U, re.slen2_tab = y;
3908
+ ae.slen1_tab = U, ae.slen2_tab = y;
3909
3909
  function f(c, v) {
3910
3910
  for (var _, S = v.tt[1][c], E = v.tt[0][c], a = 0; a < M.scfsi_band.length - 1; a++) {
3911
3911
  for (_ = M.scfsi_band[a]; _ < M.scfsi_band[a + 1] && !(E.scalefac[_] != S.scalefac[_] && S.scalefac[_] >= 0); _++)
@@ -4659,7 +4659,7 @@ const E0 = /* @__PURE__ */ H0(sn);
4659
4659
  if (f.version == 1)
4660
4660
  for (p = 0; p < 2; p++)
4661
4661
  for (u = 0; u < c.channels_out; u++) {
4662
- var _ = v.tt[p][u], S = re.slen1_tab[_.scalefac_compress], E = re.slen2_tab[_.scalefac_compress];
4662
+ var _ = v.tt[p][u], S = ae.slen1_tab[_.scalefac_compress], E = ae.slen2_tab[_.scalefac_compress];
4663
4663
  for (n = 0, B = 0; B < _.sfbdivide; B++)
4664
4664
  _.scalefac[B] != -1 && (Y(c, _.scalefac[B], S), n += S);
4665
4665
  for (; B < _.sfbmax; B++)
@@ -8669,7 +8669,7 @@ const E0 = /* @__PURE__ */ H0(sn);
8669
8669
  }
8670
8670
  B[c] *= n.scalefac_band.s[13] - n.scalefac_band.s[12];
8671
8671
  }
8672
- y.noATH && b(), n.ATH.floor = 10 * ae(o(y, -1));
8672
+ y.noATH && b(), n.ATH.floor = 10 * re(o(y, -1));
8673
8673
  }
8674
8674
  this.iteration_init = function(y) {
8675
8675
  var f = y.internal_flags, p = f.l3_side, u;
@@ -11077,7 +11077,7 @@ const E0 = /* @__PURE__ */ H0(sn);
11077
11077
  }
11078
11078
  function fe(l, k, G) {
11079
11079
  l != 1 && b("fix cc: only supports mono");
11080
- var g = new ge(), pe = new W(), m = new te(), P = new et(), me = new Ce(), Y = new e(), ue = new C(), O = new Ue(), Re = new ve(), L = new z(), H = new Pe(), t = new re(), o = new Te(), T = new Oe();
11080
+ var g = new ge(), pe = new W(), m = new te(), P = new et(), me = new Ce(), Y = new e(), ue = new C(), O = new Ue(), Re = new ve(), L = new z(), H = new Pe(), t = new ae(), o = new Te(), T = new Oe();
11081
11081
  g.setModules(m, P, me, Y, ue, O, Re, L, T), P.setModules(m, T, Re, O), L.setModules(P, Re), me.setModules(g), ue.setModules(P, H, Y, t), Y.setModules(t, H, g.enc.psy), H.setModules(P), t.setModules(Y), O.setModules(g, P, Re), pe.setModules(o, T), o.setModules(Re, L, me);
11082
11082
  var U = g.lame_init();
11083
11083
  U.num_channels = l, U.in_samplerate = k, U.out_samplerate = k, U.brate = G, U.mode = Q.STEREO, U.quality = 3, U.bWriteVbrTag = !1, U.disable_reservoir = !0, U.write_id3tag_automatic = !1, g.lame_init_params(U);
@@ -11096,9 +11096,9 @@ const E0 = /* @__PURE__ */ H0(sn);
11096
11096
  Z(), w.lamejs = Z;
11097
11097
  });
11098
11098
  (function(w) {
11099
- var Z = typeof window == "object" && !!window.document, ae = Z ? window : Object, b = ae.Recorder, le = b.i18n;
11099
+ var Z = typeof window == "object" && !!window.document, re = Z ? window : Object, b = re.Recorder, le = b.i18n;
11100
11100
  w(b, le, le.$T, Z);
11101
- })(function(w, Z, ae, b) {
11101
+ })(function(w, Z, re, b) {
11102
11102
  var le = function(N) {
11103
11103
  return new _e(N);
11104
11104
  }, F = "WaveView", _e = function(N) {
@@ -11135,7 +11135,7 @@ const E0 = /* @__PURE__ */ H0(sn);
11135
11135
  var Ye = we.canvas = N[Ee];
11136
11136
  else {
11137
11137
  if (!b)
11138
- throw new Error(ae.G("NonBrowser-1", [F]));
11138
+ throw new Error(re.G("NonBrowser-1", [F]));
11139
11139
  var xe = N.elem;
11140
11140
  xe && (typeof xe == "string" ? xe = document.querySelector(xe) : xe.length && (xe = xe[0])), xe && (N.width = xe.offsetWidth, N.height = xe.offsetHeight);
11141
11141
  var q = we.elem = document.createElement("div");
@@ -11145,7 +11145,7 @@ const E0 = /* @__PURE__ */ H0(sn);
11145
11145
  }
11146
11146
  var I = N.scale, ee = N.width * I, Ae = N.height * I;
11147
11147
  if (!ee || !Ae)
11148
- throw new Error(ae.G("IllegalArgs-1", [F + " width=0 height=0"]));
11148
+ throw new Error(re.G("IllegalArgs-1", [F + " width=0 height=0"]));
11149
11149
  Ye.width = ee, Ye.height = Ae;
11150
11150
  var R = we.ctx = Ye.getContext("2d");
11151
11151
  we.linear1 = we.genLinear(R, ee, N.linear1), we.linear2 = we.genLinear(R, ee, N.linear2), we.linearBg = we.genLinear(R, Ae, N.linearBg, !0), we._phase = 0;
@@ -11183,11 +11183,11 @@ const E0 = /* @__PURE__ */ H0(sn);
11183
11183
  draw: function(N) {
11184
11184
  var we = this, he = we.set, be = we.ctx, Ee = he.scale, Ye = he.width * Ee, xe = he.height * Ee, q = he.speed / he.fps, I = we._phase -= q, ee = I + q * he.phase, Ae = N / 100, R = we.genPath(2, Ae, I), Q = we.genPath(1.8, Ae, ee);
11185
11185
  be.clearRect(0, 0, Ye, xe), be.beginPath();
11186
- for (var ve = 0, re = 0; re <= Ye; ve++, re += Ee)
11187
- re == 0 ? be.moveTo(re, R[ve]) : be.lineTo(re, R[ve]);
11186
+ for (var ve = 0, ae = 0; ae <= Ye; ve++, ae += Ee)
11187
+ ae == 0 ? be.moveTo(ae, R[ve]) : be.lineTo(ae, R[ve]);
11188
11188
  ve--;
11189
- for (var re = Ye - 1; re >= 0; ve--, re -= Ee)
11190
- be.lineTo(re, Q[ve]);
11189
+ for (var ae = Ye - 1; ae >= 0; ve--, ae -= Ee)
11190
+ be.lineTo(ae, Q[ve]);
11191
11191
  be.closePath(), be.fillStyle = we.linearBg, be.fill(), we.drawPath(Q, we.linear2), we.drawPath(R, we.linear1);
11192
11192
  },
11193
11193
  drawPath: function(N, we) {
@@ -11221,37 +11221,37 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
11221
11221
  },
11222
11222
  emits: ["finish", "cancel"],
11223
11223
  setup(w, { emit: Z }) {
11224
- const ae = w, b = Z, le = ct(null), F = ct(null), _e = ct(!1), N = ct(!1), we = ct(null), he = ct(null), be = ct("00:00"), Ee = ct("100vw"), Ye = ct("");
11224
+ const re = w, b = Z, le = ct(null), F = ct(null), _e = ct(!1), N = ct(!1), we = ct(null), he = ct(null), be = ct("00:00"), Ee = ct("100vw"), Ye = ct("");
11225
11225
  function xe() {
11226
- Ee.value = ht.isMobile || ae.responsive ? "100vw" : `${document.querySelector(".record-tree").clientWidth}px`, le.value = E0({
11226
+ Ee.value = ht.isMobile || re.responsive ? "100vw" : `${document.querySelector(".record-tree").clientWidth}px`, le.value = E0({
11227
11227
  //本配置参数请参考下面的文档,有详细介绍
11228
11228
  type: "mp3",
11229
11229
  sampleRate: 16e3,
11230
11230
  bitRate: 16,
11231
11231
  //mp3格式,指定采样率hz、比特率kbps,其他参数使用默认配置;注意:是数字的参数必须提供数字,不要用字符串;需要使用的type类型,需提前把格式支持文件加载进来,比如使用wav格式需要提前加载wav.js编码引擎
11232
- onProcess: (re, te, Ce, Pe) => {
11232
+ onProcess: (ae, te, Ce, Pe) => {
11233
11233
  be.value = q(Ce), F.value && F.value.input(
11234
- re[re.length - 1],
11234
+ ae[ae.length - 1],
11235
11235
  te,
11236
11236
  Pe
11237
11237
  );
11238
11238
  }
11239
11239
  }), le.value.open(
11240
11240
  () => {
11241
- E0.WaveView && (F.value = E0.WaveView({ elem: ".recwave" }), Pt(() => {
11241
+ E0.WaveView && (F.value = E0.WaveView({ elem: ".recwave" }), Vt(() => {
11242
11242
  F.value.input([0], 0, 16e3), I();
11243
11243
  })), _e.value = !0;
11244
11244
  },
11245
- (re, te) => {
11246
- alert(re, te), console.log((te ? "UserNotAllow" : "") + "无法录音:" + re);
11245
+ (ae, te) => {
11246
+ alert(ae, te), console.log((te ? "UserNotAllow" : "") + "无法录音:" + ae);
11247
11247
  }
11248
11248
  );
11249
11249
  }
11250
11250
  f0(() => {
11251
11251
  le.value.close(), le.value = null, Ye.value = "";
11252
11252
  }), xe();
11253
- function q(re) {
11254
- const te = Math.floor(re / 1e3), Ce = Math.floor(te / 60), Pe = te % 60, Ue = Ce.toString().padStart(2, "0"), et = Pe.toString().padStart(2, "0");
11253
+ function q(ae) {
11254
+ const te = Math.floor(ae / 1e3), Ce = Math.floor(te / 60), Pe = te % 60, Ue = Ce.toString().padStart(2, "0"), et = Pe.toString().padStart(2, "0");
11255
11255
  return `${Ue}:${et}`;
11256
11256
  }
11257
11257
  function I() {
@@ -11259,16 +11259,16 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
11259
11259
  }
11260
11260
  function ee() {
11261
11261
  le.value.stop(
11262
- (re, te) => {
11263
- N.value = !1, we.value = window.URL.createObjectURL(re), be.value = q(te), he.value = re, ht.isMobile && Ae();
11262
+ (ae, te) => {
11263
+ N.value = !1, we.value = window.URL.createObjectURL(ae), be.value = q(te), he.value = ae, ht.isMobile && Ae();
11264
11264
  },
11265
- (re) => {
11266
- console.log("录音失败:" + re), N.value = !1, we.value = null, he.value = null, be.value = "00:00";
11265
+ (ae) => {
11266
+ console.log("录音失败:" + ae), N.value = !1, we.value = null, he.value = null, be.value = "00:00";
11267
11267
  }
11268
11268
  );
11269
11269
  }
11270
11270
  function Ae() {
11271
- const [, re] = he.value.type.split("/"), te = (/* @__PURE__ */ new Date()).getTime(), Ce = `${te}.${re}`, Pe = new File([he.value], Ce, {
11271
+ const [, ae] = he.value.type.split("/"), te = (/* @__PURE__ */ new Date()).getTime(), Ce = `${te}.${ae}`, Pe = new File([he.value], Ce, {
11272
11272
  type: he.value.type,
11273
11273
  lastModified: te
11274
11274
  });
@@ -11281,7 +11281,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
11281
11281
  b("cancel");
11282
11282
  }
11283
11283
  function ve() {
11284
- const [, re] = he.value.type.split("/"), te = (/* @__PURE__ */ new Date()).getTime(), Ce = `${te}.${re}`, Pe = new File([he.value], Ce, {
11284
+ const [, ae] = he.value.type.split("/"), te = (/* @__PURE__ */ new Date()).getTime(), Ce = `${te}.${ae}`, Pe = new File([he.value], Ce, {
11285
11285
  type: he.value.type,
11286
11286
  lastModified: te
11287
11287
  });
@@ -11289,7 +11289,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
11289
11289
  Ye.value = Ue;
11290
11290
  });
11291
11291
  }
11292
- return (re, te) => (st(), ft("div", {
11292
+ return (ae, te) => (st(), ft("div", {
11293
11293
  class: "wrap",
11294
11294
  style: Gt({
11295
11295
  width: Ee.value
@@ -11412,10 +11412,10 @@ var xa = { exports: {} };
11412
11412
  throw "First parameter is required.";
11413
11413
  e = e || {
11414
11414
  type: "video"
11415
- }, e = new ae(A, e);
11415
+ }, e = new re(A, e);
11416
11416
  var s = this;
11417
11417
  function d(W) {
11418
- return e.disableLogs || console.log("RecordRTC version: ", s.version), W && (e = new ae(A, W)), e.disableLogs || console.log("started recording " + e.type + " stream."), ye ? (ye.clearRecordedData(), ye.record(), K("recording"), s.recordingDuration && de(), s) : (h(function() {
11418
+ return e.disableLogs || console.log("RecordRTC version: ", s.version), W && (e = new re(A, W)), e.disableLogs || console.log("started recording " + e.type + " stream."), ye ? (ye.clearRecordedData(), ye.record(), K("recording"), s.recordingDuration && de(), s) : (h(function() {
11419
11419
  s.recordingDuration && de();
11420
11420
  }), s);
11421
11421
  }
@@ -11991,7 +11991,7 @@ var xa = { exports: {} };
11991
11991
  * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
11992
11992
  * @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, getNativeBlob:true, etc.}
11993
11993
  */
11994
- function ae(A, e) {
11994
+ function re(A, e) {
11995
11995
  return !e.recorderType && !e.type && (e.audio && e.video ? e.type = "video" : e.audio && !e.video && (e.type = "audio")), e.recorderType && !e.type && (e.recorderType === M || e.recorderType === Le || typeof Fe < "u" && e.recorderType === Fe ? e.type = "video" : e.recorderType === Me ? e.type = "gif" : e.recorderType === et ? e.type = "audio" : e.recorderType === Ue && (ve(A, "audio").length && ve(A, "video").length || !ve(A, "audio").length && ve(A, "video").length ? e.type = "video" : ve(A, "audio").length && !ve(A, "video").length && (e.type = "audio"))), typeof Ue < "u" && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (e.mimeType || (e.mimeType = "video/webm"), e.type || (e.type = e.mimeType.split("/")[0]), e.bitsPerSecond), e.type || (e.mimeType && (e.type = e.mimeType.split("/")[0]), e.type || (e.type = "audio")), e;
11996
11996
  }
11997
11997
  /**
@@ -12308,7 +12308,7 @@ var xa = { exports: {} };
12308
12308
  return s.kind === (e || "audio");
12309
12309
  });
12310
12310
  }
12311
- function re(A, e) {
12311
+ function ae(A, e) {
12312
12312
  "srcObject" in e ? e.srcObject = A : "mozSrcObject" in e ? e.mozSrcObject = A : e.srcObject = A;
12313
12313
  }
12314
12314
  function te(A, e) {
@@ -12862,7 +12862,7 @@ var xa = { exports: {} };
12862
12862
  }), e.canvas || (e.canvas = {
12863
12863
  width: e.width,
12864
12864
  height: e.height
12865
- }), i.width = e.canvas.width || 320, i.height = e.canvas.height || 240, se = i.getContext("2d"), e.video && e.video instanceof HTMLVideoElement ? (de = e.video.cloneNode(), e.initCallback && e.initCallback()) : (de = document.createElement("video"), re(A, de), de.onloadedmetadata = function() {
12865
+ }), i.width = e.canvas.width || 320, i.height = e.canvas.height || 240, se = i.getContext("2d"), e.video && e.video instanceof HTMLVideoElement ? (de = e.video.cloneNode(), e.initCallback && e.initCallback()) : (de = document.createElement("video"), ae(A, de), de.onloadedmetadata = function() {
12866
12866
  e.initCallback && e.initCallback();
12867
12867
  }, de.width = e.video.width, de.height = e.video.height), de.muted = !0, de.play(), K = (/* @__PURE__ */ new Date()).getTime(), oe = new Ie.Video(), e.disableLogs || (console.log("canvas resolutions", i.width, "*", i.height), console.log("video width/height", de.width || i.width, "*", de.height || i.height)), s(e.frameInterval);
12868
12868
  };
@@ -13456,7 +13456,7 @@ var xa = { exports: {} };
13456
13456
  var se = document.createElement("video");
13457
13457
  se.muted = !0, se.autoplay = !0, se.playsInline = !0, i = !1, se.onloadedmetadata = function() {
13458
13458
  i = !0;
13459
- }, re(A, se), se.play();
13459
+ }, ae(A, se), se.play();
13460
13460
  }
13461
13461
  var de = null, K, oe, ne = this;
13462
13462
  }
@@ -13947,12 +13947,12 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
13947
13947
  },
13948
13948
  emits: ["finish", "cancel"],
13949
13949
  setup(w, { emit: Z }) {
13950
- const ae = w, b = Z, le = ct(null), F = ct(null), _e = ct(!1), N = ct(null), we = ct("100vw"), he = ct(null);
13950
+ const re = w, b = Z, le = ct(null), F = ct(null), _e = ct(!1), N = ct(null), we = ct("100vw"), he = ct(null);
13951
13951
  async function be() {
13952
- we.value = ae.responsive ? "100vw" : `${document.querySelector(".record-tree").clientWidth}px`, F.value = await navigator.mediaDevices.getUserMedia({
13952
+ we.value = re.responsive ? "100vw" : `${document.querySelector(".record-tree").clientWidth}px`, F.value = await navigator.mediaDevices.getUserMedia({
13953
13953
  video: !0,
13954
13954
  audio: !0
13955
- }), Pt(() => {
13955
+ }), Vt(() => {
13956
13956
  xe();
13957
13957
  }), le.value = new wn.RecordRTCPromisesHandler(F.value, {
13958
13958
  type: "video",
@@ -13967,7 +13967,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
13967
13967
  xe(), le.value.startRecording(), _e.value = !0;
13968
13968
  }
13969
13969
  async function Ye() {
13970
- _e.value = !1, await le.value.stopRecording(), N.value = await le.value.getBlob(), le.value.reset(), Pt(() => {
13970
+ _e.value = !1, await le.value.stopRecording(), N.value = await le.value.getBlob(), le.value.reset(), Vt(() => {
13971
13971
  q(), he.value.src = URL.createObjectURL(N.value);
13972
13972
  });
13973
13973
  }
@@ -14057,15 +14057,15 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14057
14057
  },
14058
14058
  emits: ["finish", "cancel"],
14059
14059
  setup(w, { emit: Z }) {
14060
- const ae = w, b = Z, le = ct(null), F = ct(null), _e = ct("100vw"), N = ct(null), we = ct(null);
14060
+ const re = w, b = Z, le = ct(null), F = ct(null), _e = ct("100vw"), N = ct(null), we = ct(null);
14061
14061
  f0(() => {
14062
14062
  var q;
14063
14063
  (q = F.value) == null || q.stop(), F.value = null;
14064
14064
  });
14065
14065
  async function he() {
14066
- _e.value = ae.responsive ? "100vw" : `${document.querySelector(".record-tree").clientWidth}px`, F.value = await navigator.mediaDevices.getUserMedia({
14066
+ _e.value = re.responsive ? "100vw" : `${document.querySelector(".record-tree").clientWidth}px`, F.value = await navigator.mediaDevices.getUserMedia({
14067
14067
  video: !0
14068
- }), Pt(() => {
14068
+ }), Vt(() => {
14069
14069
  N.value && (N.value.srcObject = F.value);
14070
14070
  });
14071
14071
  }
@@ -14147,18 +14147,18 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14147
14147
  })
14148
14148
  ], 4));
14149
14149
  }
14150
- }, Bn = /* @__PURE__ */ Jt(An, [["__scopeId", "data-v-69fc6ef1"]]), En = { class: "record-tree-main" }, Dn = { id: "root_tree" }, Ln = {
14150
+ }, Bn = /* @__PURE__ */ Jt(An, [["__scopeId", "data-v-69fc6ef1"]]), En = { class: "top-bar" }, Dn = { class: "top-bar-left" }, Ln = { class: "record-tree-main" }, In = { id: "root_tree" }, On = {
14151
14151
  key: 0,
14152
14152
  class: "record-tree-options"
14153
- }, In = { class: "record-tree-option-left" }, On = { class: "record-tree-option-left-fixed" }, Fn = { class: "record-tree-option-left-scroll" }, Nn = {
14153
+ }, Fn = { class: "record-tree-option-left" }, Nn = { class: "record-tree-option-left-fixed" }, Yn = { class: "record-tree-option-left-scroll" }, Hn = {
14154
14154
  key: 0,
14155
14155
  class: "record-tree-option-item",
14156
14156
  title: "字体颜色",
14157
14157
  style: { position: "relative" }
14158
- }, Yn = {
14158
+ }, Vn = {
14159
14159
  key: 0,
14160
14160
  class: "record-tree-option-right"
14161
- }, Hn = { style: { display: "none" } }, ra = "KEY_PENDING_NODES", Vn = "tree_title", Jn = {
14161
+ }, Pn = { style: { display: "none" } }, ra = "KEY_PENDING_NODES", Un = "tree_title", ti = {
14162
14162
  __name: "record-tree",
14163
14163
  props: {
14164
14164
  note: {
@@ -14200,6 +14200,10 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14200
14200
  height: {
14201
14201
  type: String,
14202
14202
  default: ""
14203
+ },
14204
+ initialLock: {
14205
+ type: Boolean,
14206
+ default: !1
14203
14207
  }
14204
14208
  },
14205
14209
  emits: [
@@ -14209,10 +14213,10 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14209
14213
  "cancel",
14210
14214
  "dbEnter"
14211
14215
  ],
14212
- setup(w, { expose: Z, emit: ae }) {
14213
- const b = w, le = ae;
14214
- Z({ focusTitle: te, focusContent: re });
14215
- const F = ct([{ text: "", uuid: Ut() }]), _e = ct(null), N = ct(!1), we = ct(!1), he = ct(!1), be = ct(Ut()), Ee = ct(!1), Ye = ct(!1), xe = ct(null), q = ct(null), I = ct(null), ee = ct(null), Ae = ct(null);
14216
+ setup(w, { expose: Z, emit: re }) {
14217
+ const b = w, le = re;
14218
+ Z({ focusTitle: te, focusContent: ae });
14219
+ const F = ct([{ text: "", uuid: Ut() }]), _e = ct(null), N = ct(!1), we = ct(!1), he = ct(!1), be = ct(Ut()), Ee = ct(!1), Ye = ct(b.initialLock), xe = ct(null), q = ct(null), I = ct(null), ee = ct(null), Ae = ct(null);
14216
14220
  u0(
14217
14221
  () => b.note,
14218
14222
  (K, oe) => {
@@ -14244,7 +14248,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14244
14248
  function ve() {
14245
14249
  le("hideHoverNote");
14246
14250
  }
14247
- function re() {
14251
+ function ae() {
14248
14252
  return xe.value.head(!0);
14249
14253
  }
14250
14254
  function te() {
@@ -14284,7 +14288,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14284
14288
  return !(K && (K.type || K.text && K.text !== "<p></p>"));
14285
14289
  }
14286
14290
  function Le(K) {
14287
- re(), xe.value.addFiles(K, F.value[0], -1);
14291
+ ae(), xe.value.addFiles(K, F.value[0], -1);
14288
14292
  }
14289
14293
  function M() {
14290
14294
  le("dbEnter");
@@ -14303,7 +14307,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14303
14307
  shiftKey: !0
14304
14308
  });
14305
14309
  const oe = ht.currentId;
14306
- oe && Vt({ uuid: oe }).dispatchEvent(K);
14310
+ oe && Pt({ uuid: oe }).dispatchEvent(K);
14307
14311
  }
14308
14312
  function Me() {
14309
14313
  let K = new KeyboardEvent("keydown", {
@@ -14313,7 +14317,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14313
14317
  shiftKey: !1
14314
14318
  });
14315
14319
  const oe = ht.currentId;
14316
- oe && Vt({ uuid: oe }).dispatchEvent(K);
14320
+ oe && Pt({ uuid: oe }).dispatchEvent(K);
14317
14321
  }
14318
14322
  function Ve() {
14319
14323
  let K = new KeyboardEvent("keydown", {
@@ -14323,7 +14327,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14323
14327
  shiftKey: !1
14324
14328
  });
14325
14329
  const oe = ht.currentId;
14326
- oe && Vt({ uuid: oe }).dispatchEvent(K);
14330
+ oe && Pt({ uuid: oe }).dispatchEvent(K);
14327
14331
  }
14328
14332
  function Qe() {
14329
14333
  let K = new KeyboardEvent("keydown", {
@@ -14333,7 +14337,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14333
14337
  shiftKey: !1
14334
14338
  });
14335
14339
  const oe = ht.currentId;
14336
- oe && Vt({ uuid: oe }).dispatchEvent(K);
14340
+ oe && Pt({ uuid: oe }).dispatchEvent(K);
14337
14341
  }
14338
14342
  function Ke() {
14339
14343
  return c0[ht.currentId];
@@ -14347,7 +14351,9 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14347
14351
  oe && oe.dispatch("color", K);
14348
14352
  }
14349
14353
  function e() {
14350
- Ye.value = !Ye.value;
14354
+ Ye.value = !Ye.value, Ye.value || Vt(() => {
14355
+ ae();
14356
+ });
14351
14357
  }
14352
14358
  function s() {
14353
14359
  b.note.created_at ? le("complete") : le(Ee.value ? "complete" : "cancel");
@@ -14399,7 +14405,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14399
14405
  hash: be.value
14400
14406
  };
14401
14407
  }
14402
- }), ye = await Promise.all(ne), Be = ht.currentId === Vn;
14408
+ }), ye = await Promise.all(ne), Be = ht.currentId === Un;
14403
14409
  oe ? oe(ye) : ye.forEach((W, Te) => {
14404
14410
  Te === 0 && Be ? Ce(W) : xe.value.appendNode(W);
14405
14411
  });
@@ -14431,7 +14437,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14431
14437
  }
14432
14438
  function de(K) {
14433
14439
  const oe = `${ra}_${K}`, ne = window.localStorage.getItem(oe);
14434
- ne && Pt(() => {
14440
+ ne && Vt(() => {
14435
14441
  const ye = JSON.parse(ne);
14436
14442
  window.localStorage.removeItem(oe), ye.forEach((Be) => {
14437
14443
  Be.uuid ? xe.value.updateNode(Be) : Ce(Be);
@@ -14456,21 +14462,36 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14456
14462
  ),
14457
14463
  onMouseenter: ve
14458
14464
  }, [
14459
- w.showTitle ? (st(), qt($e(Ur), {
14460
- key: 0,
14461
- ref_key: "titleEditor",
14462
- ref: q,
14463
- tags: w.tags,
14464
- readOnly: w.readOnly || Ye.value,
14465
- enableDbEnter: w.enableDbEnter,
14466
- note: w.note,
14467
- onFocusContent: re,
14468
- onChange: Ce,
14469
- onFile: Le,
14470
- onDbEnter: M
14471
- }, null, 8, ["tags", "readOnly", "enableDbEnter", "note"])) : kt("", !0),
14472
14465
  tt("div", En, [
14473
14466
  tt("div", Dn, [
14467
+ w.showTitle ? (st(), qt($e(Ur), {
14468
+ key: 0,
14469
+ ref_key: "titleEditor",
14470
+ ref: q,
14471
+ tags: w.tags,
14472
+ readOnly: w.readOnly || Ye.value,
14473
+ enableDbEnter: w.enableDbEnter,
14474
+ note: w.note,
14475
+ onFocusContent: ae,
14476
+ onChange: Ce,
14477
+ onFile: Le,
14478
+ onDbEnter: M
14479
+ }, null, 8, ["tags", "readOnly", "enableDbEnter", "note"])) : kt("", !0)
14480
+ ]),
14481
+ $e(ht).isMobile ? (st(), ft("div", {
14482
+ key: 0,
14483
+ class: "top-bar-right",
14484
+ onClick: e
14485
+ }, [
14486
+ xt($e(Bt), {
14487
+ src: Ye.value ? $e(At).lock : $e(At).unlock,
14488
+ width: 20,
14489
+ height: 20
14490
+ }, null, 8, ["src"])
14491
+ ])) : kt("", !0)
14492
+ ]),
14493
+ tt("div", Ln, [
14494
+ tt("div", In, [
14474
14495
  xt(Hr, {
14475
14496
  ref_key: "tree",
14476
14497
  ref: xe,
@@ -14487,9 +14508,9 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14487
14508
  ])
14488
14509
  ])
14489
14510
  ], 38),
14490
- w.bar && !w.readOnly ? (st(), ft("div", Ln, [
14491
- tt("div", In, [
14492
- tt("div", On, [
14511
+ w.bar && !w.readOnly ? (st(), ft("div", On, [
14512
+ tt("div", Fn, [
14513
+ tt("div", Nn, [
14493
14514
  tt("div", {
14494
14515
  class: "record-tree-option-item",
14495
14516
  onClick: He,
@@ -14535,7 +14556,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14535
14556
  }, null, 8, ["src"])
14536
14557
  ])
14537
14558
  ]),
14538
- tt("div", Fn, [
14559
+ tt("div", Yn, [
14539
14560
  tt("div", {
14540
14561
  class: "record-tree-option-item",
14541
14562
  onClick: Fe,
@@ -14547,7 +14568,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14547
14568
  height: 20
14548
14569
  }, null, 8, ["src"])
14549
14570
  ]),
14550
- $e(ht).isMobile ? kt("", !0) : (st(), ft("div", Nn, [
14571
+ $e(ht).isMobile ? kt("", !0) : (st(), ft("div", Hn, [
14551
14572
  xt($e(na), {
14552
14573
  placement: "top",
14553
14574
  hover: !0,
@@ -14609,28 +14630,16 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14609
14630
  width: 20,
14610
14631
  height: 20
14611
14632
  }, null, 8, ["src"])
14612
- ]),
14613
- $e(ht).isMobile ? (st(), ft("div", {
14614
- key: 1,
14615
- class: "record-tree-option-item",
14616
- onClick: e,
14617
- title: "只读锁"
14618
- }, [
14619
- xt($e(Bt), {
14620
- src: Ye.value ? $e(At).lock : $e(At).unlock,
14621
- width: 20,
14622
- height: 20
14623
- }, null, 8, ["src"])
14624
- ])) : kt("", !0)
14633
+ ])
14625
14634
  ])
14626
14635
  ]),
14627
- $e(ht).isMobile ? (st(), ft("div", Yn, [
14636
+ $e(ht).isMobile ? (st(), ft("div", Vn, [
14628
14637
  tt("div", {
14629
14638
  class: "record-tree-option-item",
14630
14639
  onClick: It(s, ["stop"])
14631
14640
  }, l0(Ee.value || w.note.created_at ? "完成" : "取消"), 1)
14632
14641
  ])) : kt("", !0),
14633
- tt("div", Hn, [
14642
+ tt("div", Pn, [
14634
14643
  tt("input", {
14635
14644
  type: "file",
14636
14645
  ref_key: "selectFile",
@@ -14680,7 +14689,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
14680
14689
  export {
14681
14690
  bn as RecordAudio,
14682
14691
  Bn as RecordPhoto,
14683
- Jn as RecordTree,
14692
+ ti as RecordTree,
14684
14693
  Sn as RecordVideo,
14685
14694
  Cr as TextEditor
14686
14695
  };