@codernote/record-tree 1.5.1 → 1.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.
- package/dist/index.js +79 -77
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-div[data-v-54c80502]{display:flex;align-items:center;position:relative}.node-text[data-v-54c80502]{margin-left:5px;flex:1;border:none;outline:none}.node-icon[data-v-54c80502]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:center;top:0}.node-icon-complex[data-v-54c80502]{align-self:flex-start;top:3px}.node-icon[data-v-54c80502]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-54c80502]:hover{background-color:#ccc}.node-complex[data-v-54c80502]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-54c80502]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-54c80502]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-54c80502]{display:block}.node-image img[data-v-54c80502]{outline:none}.node-audio[data-v-54c80502]{width:300px}.node-audio audio[data-v-54c80502]{width:300px;outline:none}.node-video video[data-v-54c80502]{outline:none}.node-del[data-v-54c80502]{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-54c80502]:before,.node-del[data-v-54c80502]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-54c80502]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-54c80502]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-54c80502]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-54c80502]{flex:1}.node-file-left h6[data-v-54c80502]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-54c80502]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-54c80502]{color:#52a770;font-size:14px}@keyframes blinkBorder-54c80502{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-54c80502]:focus{animation:blinkBorder-54c80502 1s infinite}.resize-handle[data-v-54c80502]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:rgba(255,255,255,.6)}.node-ul[data-v-bc9015c1]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-bc9015c1]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-bc9015c1] .sublevel .node-li{margin-left:15px}[data-v-bc9015c1] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-bc9015c1] .drag-over-center{background-color:#eee}[data-v-bc9015c1] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-bc9015c1]{display:none}[data-v-bc9015c1] .collapsed .node-icon:before{display:none}.tree-title[data-v-bc9015c1]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-bc9015c1] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-bc9015c1] .node-li.dragging .node-icon:before{display:none}[data-v-bc9015c1] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-bc9015c1] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.popper{width:auto;background-color:#fafafa;color:#212121;text-align:center;padding:2px;display:inline-block;border-radius:3px;position:absolute;font-size:14px;font-weight:400;border:1px #ebebeb solid;z-index:200000;box-shadow:#3a3a3a 0 0 6px}.popper .popper__arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.popper[x-placement^=top]{margin-bottom:5px}.popper[x-placement^=top] .popper__arrow{border-width:5px 5px 0 5px;border-color:#fafafa transparent transparent transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper[x-placement^=bottom]{margin-top:5px}.popper[x-placement^=bottom] .popper__arrow{border-width:0 5px 5px 5px;border-color:transparent transparent #fafafa transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper[x-placement^=right]{margin-left:5px}.popper[x-placement^=right] .popper__arrow{border-width:5px 5px 5px 0;border-color:transparent #fafafa transparent transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.popper[x-placement^=left]{margin-right:5px}.popper[x-placement^=left] .popper__arrow{border-width:5px 0 5px 5px;border-color:transparent transparent transparent #fafafa;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}[data-v-7f00d874] .popper{transform:translate3d(0,22px,0)!important}.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-svg{display:inline-block;border-radius:9999px;color:#fff;cursor:pointer}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.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:0px;left:0px;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-placeholder{position:absolute;left:0;top:0;padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%;color:#999;pointer-events:none}.record-audio[data-v-ff2a4982]{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-ff2a4982]{width:300px;height:40px}.record-audio .audio-item[data-v-ff2a4982]{margin-top:10px}.record-audio .buttons[data-v-ff2a4982]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-ff2a4982]{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-ff2a4982]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-ff2a4982]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-ff2a4982]{border:1px solid #eee}.record-audio .buttons .oper[data-v-ff2a4982]{margin-right:10px}.record-audio .main[data-v-ff2a4982]{display:flex;align-items:center}.record-audio .duration[data-v-ff2a4982]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-ff2a4982]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-ff2a4982]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-audio-mobile[data-v-ff2a4982]{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-ff2a4982]{flex:1;height:30px}.record-audio-mobile .oper[data-v-ff2a4982]{margin-right:10px}.record-video[data-v-a9fc7189]{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-a9fc7189]{width:300px}.buttons[data-v-a9fc7189]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-a9fc7189]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-a9fc7189]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-a9fc7189]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-a9fc7189]{border:1px solid #eee}.buttons .oper[data-v-a9fc7189]{margin-right:10px}.wrap[data-v-a9fc7189]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-a9fc7189]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-video[data-v-91883306]{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-91883306]{width:200px}.img-item[data-v-91883306]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-91883306]{width:200px}.record-content[data-v-91883306]{display:flex}.buttons[data-v-91883306]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-91883306]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-91883306]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-91883306]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-91883306]{border:1px solid #eee}.buttons .oper[data-v-91883306]{margin-right:10px}.wrap[data-v-91883306]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-91883306]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-tree-mobile{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0}.record-tree-mobile .record-tree-options{padding:12px 0;background:#fff;border-top:1px dotted #eee;display:flex}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.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-main{padding-left:15px}.record-tree{position:relative;padding-bottom:40px}.record-tree-options{position:fixed;bottom:0px;left:0px;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:rgb(236,236,236)}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-div[data-v-54c80502]{display:flex;align-items:center;position:relative}.node-text[data-v-54c80502]{margin-left:5px;flex:1;border:none;outline:none}.node-icon[data-v-54c80502]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:center;top:0}.node-icon-complex[data-v-54c80502]{align-self:flex-start;top:3px}.node-icon[data-v-54c80502]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-54c80502]:hover{background-color:#ccc}.node-complex[data-v-54c80502]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-54c80502]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-54c80502]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-54c80502]{display:block}.node-image img[data-v-54c80502]{outline:none}.node-audio[data-v-54c80502]{width:300px}.node-audio audio[data-v-54c80502]{width:300px;outline:none}.node-video video[data-v-54c80502]{outline:none}.node-del[data-v-54c80502]{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-54c80502]:before,.node-del[data-v-54c80502]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-54c80502]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-54c80502]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-54c80502]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-54c80502]{flex:1}.node-file-left h6[data-v-54c80502]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-54c80502]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-54c80502]{color:#52a770;font-size:14px}@keyframes blinkBorder-54c80502{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-54c80502]:focus{animation:blinkBorder-54c80502 1s infinite}.resize-handle[data-v-54c80502]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:rgba(255,255,255,.6)}.node-ul[data-v-324f9145]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-324f9145]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-324f9145] .sublevel .node-li{margin-left:15px}[data-v-324f9145] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-324f9145] .drag-over-center{background-color:#eee}[data-v-324f9145] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-324f9145]{display:none}[data-v-324f9145] .collapsed .node-icon:before{display:none}.tree-title[data-v-324f9145]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-324f9145] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-324f9145] .node-li.dragging .node-icon:before{display:none}[data-v-324f9145] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-324f9145] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.popper{width:auto;background-color:#fafafa;color:#212121;text-align:center;padding:2px;display:inline-block;border-radius:3px;position:absolute;font-size:14px;font-weight:400;border:1px #ebebeb solid;z-index:200000;box-shadow:#3a3a3a 0 0 6px}.popper .popper__arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.popper[x-placement^=top]{margin-bottom:5px}.popper[x-placement^=top] .popper__arrow{border-width:5px 5px 0 5px;border-color:#fafafa transparent transparent transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper[x-placement^=bottom]{margin-top:5px}.popper[x-placement^=bottom] .popper__arrow{border-width:0 5px 5px 5px;border-color:transparent transparent #fafafa transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper[x-placement^=right]{margin-left:5px}.popper[x-placement^=right] .popper__arrow{border-width:5px 5px 5px 0;border-color:transparent #fafafa transparent transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.popper[x-placement^=left]{margin-right:5px}.popper[x-placement^=left] .popper__arrow{border-width:5px 0 5px 5px;border-color:transparent transparent transparent #fafafa;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}[data-v-7f00d874] .popper{transform:translate3d(0,22px,0)!important}.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-svg{display:inline-block;border-radius:9999px;color:#fff;cursor:pointer}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.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:0px;left:0px;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-placeholder{position:absolute;left:0;top:0;padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%;color:#999;pointer-events:none}.record-audio[data-v-ff2a4982]{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-ff2a4982]{width:300px;height:40px}.record-audio .audio-item[data-v-ff2a4982]{margin-top:10px}.record-audio .buttons[data-v-ff2a4982]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-ff2a4982]{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-ff2a4982]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-ff2a4982]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-ff2a4982]{border:1px solid #eee}.record-audio .buttons .oper[data-v-ff2a4982]{margin-right:10px}.record-audio .main[data-v-ff2a4982]{display:flex;align-items:center}.record-audio .duration[data-v-ff2a4982]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-ff2a4982]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-ff2a4982]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-audio-mobile[data-v-ff2a4982]{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-ff2a4982]{flex:1;height:30px}.record-audio-mobile .oper[data-v-ff2a4982]{margin-right:10px}.record-video[data-v-a9fc7189]{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-a9fc7189]{width:300px}.buttons[data-v-a9fc7189]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-a9fc7189]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-a9fc7189]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-a9fc7189]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-a9fc7189]{border:1px solid #eee}.buttons .oper[data-v-a9fc7189]{margin-right:10px}.wrap[data-v-a9fc7189]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-a9fc7189]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-video[data-v-91883306]{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-91883306]{width:200px}.img-item[data-v-91883306]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-91883306]{width:200px}.record-content[data-v-91883306]{display:flex}.buttons[data-v-91883306]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-91883306]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-91883306]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-91883306]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-91883306]{border:1px solid #eee}.buttons .oper[data-v-91883306]{margin-right:10px}.wrap[data-v-91883306]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-91883306]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-tree-mobile{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0}.record-tree-mobile .record-tree-options{padding:12px 0;background:#fff;border-top:1px dotted #eee;display:flex}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.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-main{padding-left:15px}.record-tree{position:relative;padding-bottom:40px}.record-tree-options{position:fixed;bottom:0px;left:0px;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:rgb(236,236,236)}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
import { uuid as Ct, detectDeviceType as Ma, byNameFindIcon as wa, icons as ya, getImageSize as Ta, getVideoSize as xa, resizeResource as Aa, parseMimeType as Da, oss as Sa } from "@codernote/utils";
|
|
3
3
|
import Ut from "vue-inline-svg";
|
|
4
4
|
import Na from "vue-popperjs";
|
|
@@ -148,8 +148,8 @@ function kt(h, a, _, p, W, U, $, te) {
|
|
|
148
148
|
var ye = typeof h == "function" ? h.options : h;
|
|
149
149
|
a && (ye.render = a, ye.staticRenderFns = _, ye._compiled = !0), p && (ye.functional = !0), U && (ye._scopeId = "data-v-" + U);
|
|
150
150
|
var Ne;
|
|
151
|
-
if ($ ? (Ne = function(
|
|
152
|
-
|
|
151
|
+
if ($ ? (Ne = function(Oe) {
|
|
152
|
+
Oe = Oe || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !Oe && typeof __VUE_SSR_CONTEXT__ < "u" && (Oe = __VUE_SSR_CONTEXT__), W && W.call(this, Oe), Oe && Oe._registeredComponents && Oe._registeredComponents.add($);
|
|
153
153
|
}, ye._ssrRegister = Ne) : W && (Ne = te ? function() {
|
|
154
154
|
W.call(
|
|
155
155
|
this,
|
|
@@ -223,9 +223,9 @@ const Za = {
|
|
|
223
223
|
), U = p / W;
|
|
224
224
|
let $ = p, te = W;
|
|
225
225
|
const ye = (Le) => {
|
|
226
|
-
let Be = p + Le.clientX - a,
|
|
226
|
+
let Be = p + Le.clientX - a, Oe = W + Le.clientY - _;
|
|
227
227
|
const { origWidth: Ge, origHeight: oe } = this.node.size || {};
|
|
228
|
-
Ge && oe && (Be = Math.min(Be, Ge),
|
|
228
|
+
Ge && oe && (Be = Math.min(Be, Ge), Oe = Math.min(Oe, oe)), Be / Oe > U ? ($ = Oe * U, te = Oe, this.$refs.resource.style.height = te + "px", this.$refs.resource.style.width = $ + "px") : ($ = Be, te = Be / U, this.$refs.resource.style.width = Be + "px", this.$refs.resource.style.height = te + "px");
|
|
229
229
|
}, Ne = () => {
|
|
230
230
|
document.documentElement.removeEventListener(
|
|
231
231
|
"mousemove",
|
|
@@ -613,11 +613,11 @@ const Ka = {
|
|
|
613
613
|
const $ = [...this.nodes];
|
|
614
614
|
let te = $.findIndex((ye) => ye === a);
|
|
615
615
|
U.forEach((ye, Ne) => {
|
|
616
|
-
!a.text && !a.content && Ne === 0 ? $.splice(te, 1, {
|
|
616
|
+
!a.text && !a.content && Ne === 0 ? (ye.uuid = a.uuid, $.splice(te, 1, {
|
|
617
617
|
...ye,
|
|
618
618
|
uuid: a.uuid,
|
|
619
619
|
children: a.children
|
|
620
|
-
}) : $.splice(te + 1, 0, ye), te++;
|
|
620
|
+
})) : $.splice(te + 1, 0, ye), te++;
|
|
621
621
|
}), this.update($);
|
|
622
622
|
};
|
|
623
623
|
this.$emit("fileUpload", p, W);
|
|
@@ -742,7 +742,7 @@ var e0 = function() {
|
|
|
742
742
|
t0,
|
|
743
743
|
!1,
|
|
744
744
|
null,
|
|
745
|
-
"
|
|
745
|
+
"324f9145",
|
|
746
746
|
null,
|
|
747
747
|
null
|
|
748
748
|
);
|
|
@@ -901,7 +901,9 @@ const u0 = {
|
|
|
901
901
|
handleTitlePaste(h) {
|
|
902
902
|
if (h.clipboardData) {
|
|
903
903
|
const a = h.clipboardData.items;
|
|
904
|
-
Array.from(a).some((p) => p.kind === "file")
|
|
904
|
+
Array.from(a).some((p) => p.kind === "file") ? (h.preventDefault(), this.$emit("file", h.clipboardData.files)) : h.clipboardData.getData("text") && (this.titleEmpty = !1, setTimeout(() => {
|
|
905
|
+
this.$emit("input", h.target.textContent);
|
|
906
|
+
}, 0));
|
|
905
907
|
}
|
|
906
908
|
}
|
|
907
909
|
}
|
|
@@ -964,7 +966,7 @@ var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
964
966
|
return typeof e == "number";
|
|
965
967
|
}, U = function(e) {
|
|
966
968
|
return new G(e);
|
|
967
|
-
}, $ = U.LM = "2023-12-24 18:09", te = "https://github.com/xiangyuecn/Recorder", ye = "Recorder", Ne = "getUserMedia", Le = "srcSampleRate", Be = "sampleRate",
|
|
969
|
+
}, $ = U.LM = "2023-12-24 18:09", te = "https://github.com/xiangyuecn/Recorder", ye = "Recorder", Ne = "getUserMedia", Le = "srcSampleRate", Be = "sampleRate", Oe = "bitRate", Ge = "catch", oe = a[ye];
|
|
968
970
|
if (oe && oe.LM == $) {
|
|
969
971
|
oe.CLog(oe.i18n.$T("K8zP::重复导入{1}", 0, ye), 3);
|
|
970
972
|
return;
|
|
@@ -1031,7 +1033,7 @@ var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1031
1033
|
U[Ve] = !0;
|
|
1032
1034
|
var de = "ConnectEnableWorklet";
|
|
1033
1035
|
U[de] = !1;
|
|
1034
|
-
var
|
|
1036
|
+
var Fe = function(e, o) {
|
|
1035
1037
|
var v = e.BufferSize || U.BufferSize, M = e.Stream, S = M._RC || M._c || U.GetContext(!0);
|
|
1036
1038
|
M._c = S;
|
|
1037
1039
|
var V = function(H) {
|
|
@@ -1280,8 +1282,8 @@ var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1280
1282
|
for (var M in e)
|
|
1281
1283
|
v[M] = e[M];
|
|
1282
1284
|
o.set = v;
|
|
1283
|
-
var S = v[
|
|
1284
|
-
(S && !W(S) || V && !W(V)) && o.CLog(De.G("IllegalArgs-1", [De("VtS4::{1}和{2}必须是数值", 0, Be,
|
|
1285
|
+
var S = v[Oe], V = v[Be];
|
|
1286
|
+
(S && !W(S) || V && !W(V)) && o.CLog(De.G("IllegalArgs-1", [De("VtS4::{1}和{2}必须是数值", 0, Be, Oe)]), 1, e), v[Oe] = +S || 16, v[Be] = +V || 16e3, o.state = 0, o._S = 9, o.Sync = { O: 9, C: 9 };
|
|
1285
1287
|
}
|
|
1286
1288
|
U.Sync = {
|
|
1287
1289
|
/*open*/
|
|
@@ -1332,7 +1334,7 @@ var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1332
1334
|
var ce = v.Stream = M.sourceStream;
|
|
1333
1335
|
ce._RC = M.runningContext, ce._call = {};
|
|
1334
1336
|
try {
|
|
1335
|
-
|
|
1337
|
+
Fe(S);
|
|
1336
1338
|
} catch (c) {
|
|
1337
1339
|
at(S), D(De("BTW2::从流中打开录音失败:") + c.message);
|
|
1338
1340
|
return;
|
|
@@ -1363,7 +1365,7 @@ var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1363
1365
|
setTimeout(function() {
|
|
1364
1366
|
c._call = {};
|
|
1365
1367
|
var N = U.Stream;
|
|
1366
|
-
N && (at(), c._call = N._call), U.Stream = c, c._c = se, c._RC = M.runningContext, !pe() && (U.IsOpen() ? (N && v.CLog(De("upb8::发现同时多次调用open"), 1),
|
|
1368
|
+
N && (at(), c._call = N._call), U.Stream = c, c._c = se, c._RC = M.runningContext, !pe() && (U.IsOpen() ? (N && v.CLog(De("upb8::发现同时多次调用open"), 1), Fe(S, 1), s()) : D(De("Q1GA::录音功能无效:无音频流")));
|
|
1367
1369
|
}, 100);
|
|
1368
1370
|
}, ve = function(c) {
|
|
1369
1371
|
var N = c.name || c.message || c.code + ":" + c;
|
|
@@ -1802,17 +1804,17 @@ const aa = sa;
|
|
|
1802
1804
|
var $ = function(oe) {
|
|
1803
1805
|
var ge = oe.bitRate, Re = oe.sampleRate, Ve = Re;
|
|
1804
1806
|
if ((" " + U + ",").indexOf(" " + ge + ",") == -1 && h.CLog(_("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + ge, U), 3), (" " + W + ",").indexOf(" " + Re + ",") == -1) {
|
|
1805
|
-
for (var de = W.split(", "),
|
|
1806
|
-
|
|
1807
|
-
|
|
1807
|
+
for (var de = W.split(", "), Fe = [], ze = 0; ze < de.length; ze++)
|
|
1808
|
+
Fe.push({ v: +de[ze], s: Math.abs(de[ze] - Re) });
|
|
1809
|
+
Fe.sort(function(qe, Je) {
|
|
1808
1810
|
return qe.s - Je.s;
|
|
1809
|
-
}), Ve =
|
|
1811
|
+
}), Ve = Fe[0].v, oe.sampleRate = Ve, h.CLog(_("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Ve, Re, W), 3);
|
|
1810
1812
|
}
|
|
1811
1813
|
}, te = function() {
|
|
1812
1814
|
return _.G("NeedImport-2", ["mp3.js", "src/engine/mp3-engine.js"]);
|
|
1813
1815
|
}, ye = p && typeof Worker == "function";
|
|
1814
1816
|
h.prototype.mp3 = function(oe, ge, Re) {
|
|
1815
|
-
var Ve = this, de = Ve.set,
|
|
1817
|
+
var Ve = this, de = Ve.set, Fe = oe.length;
|
|
1816
1818
|
if (!h.lamejs) {
|
|
1817
1819
|
Re(te());
|
|
1818
1820
|
return;
|
|
@@ -1830,7 +1832,7 @@ const aa = sa;
|
|
|
1830
1832
|
$(de);
|
|
1831
1833
|
var qe = new h.lamejs.Mp3Encoder(1, de.sampleRate, de.bitRate), Je = 57600, at = new Int8Array(5e5), Ke = 0, Ue = 0, Xe = function() {
|
|
1832
1834
|
try {
|
|
1833
|
-
if (Ue <
|
|
1835
|
+
if (Ue < Fe)
|
|
1834
1836
|
var Ee = qe.encodeBuffer(oe.subarray(Ue, Ue + Je));
|
|
1835
1837
|
else
|
|
1836
1838
|
var Ee = qe.flush();
|
|
@@ -1846,10 +1848,10 @@ const aa = sa;
|
|
|
1846
1848
|
}
|
|
1847
1849
|
at.set(Ee, Ke), Ke += G;
|
|
1848
1850
|
}
|
|
1849
|
-
if (Ue <
|
|
1851
|
+
if (Ue < Fe)
|
|
1850
1852
|
Ue += Je, setTimeout(Xe);
|
|
1851
1853
|
else {
|
|
1852
|
-
var it = [at.buffer.slice(0, Ke)], $e =
|
|
1854
|
+
var it = [at.buffer.slice(0, Ke)], $e = Oe.fn(it, Ke, Fe, de.sampleRate);
|
|
1853
1855
|
Ge($e, de), ge(it[0] || new ArrayBuffer(0), "audio/mp3");
|
|
1854
1856
|
}
|
|
1855
1857
|
};
|
|
@@ -1866,7 +1868,7 @@ const aa = sa;
|
|
|
1866
1868
|
};
|
|
1867
1869
|
var Le = { id: 0 }, Be = function(oe, ge) {
|
|
1868
1870
|
var Re = function(Xe) {
|
|
1869
|
-
var Ee = Xe.data, G =
|
|
1871
|
+
var Ee = Xe.data, G = Fe.wkScope.wk_ctxs, Mt = Fe.wkScope.wk_lame, it = Fe.wkScope.wk_mp3TrimFix, $e = G[Ee.id];
|
|
1870
1872
|
if (Ee.action == "init")
|
|
1871
1873
|
G[Ee.id] = {
|
|
1872
1874
|
sampleRate: Ee.sampleRate,
|
|
@@ -1944,21 +1946,21 @@ const aa = sa;
|
|
|
1944
1946
|
x: new Int16Array(5)
|
|
1945
1947
|
//低版本浏览器不支持序列化TypedArray
|
|
1946
1948
|
}), Xe;
|
|
1947
|
-
},
|
|
1949
|
+
}, Fe, ze = Ne;
|
|
1948
1950
|
if (ge || !ye)
|
|
1949
1951
|
return h.CLog(_("k9PT::当前环境不支持Web Worker,mp3实时编码器运行在主线程中"), 3), ze = { postMessage: function(Xe) {
|
|
1950
1952
|
Re({ data: Xe });
|
|
1951
|
-
} },
|
|
1953
|
+
} }, Fe = { wkScope: {
|
|
1952
1954
|
wk_ctxs: {},
|
|
1953
1955
|
wk_lame: h.lamejs,
|
|
1954
|
-
wk_mp3TrimFix:
|
|
1956
|
+
wk_mp3TrimFix: Oe
|
|
1955
1957
|
} }, Ve(), de();
|
|
1956
1958
|
try {
|
|
1957
1959
|
if (!ze) {
|
|
1958
1960
|
var qe = (Re + "").replace(/[\w\$]+\.onmessage/g, "self.postMessage");
|
|
1959
1961
|
qe = qe.replace(/[\w\$]+\.wkScope/g, "wkScope");
|
|
1960
1962
|
var Je = ");wk_lame();self.onmessage=" + qe;
|
|
1961
|
-
Je += ";var wkScope={ wk_ctxs:{},wk_lame:wk_lame", Je += ",wk_mp3TrimFix:{rm:" +
|
|
1963
|
+
Je += ";var wkScope={ wk_ctxs:{},wk_lame:wk_lame", Je += ",wk_mp3TrimFix:{rm:" + Oe.rm + ",fn:" + Oe.fn + "} }";
|
|
1962
1964
|
var at = h.lamejs.toString(), Ke = (window.URL || webkitURL).createObjectURL(new Blob(["var wk_lame=(", at, Je], { type: "text/javascript" }));
|
|
1963
1965
|
ze = new Worker(Ke), setTimeout(function() {
|
|
1964
1966
|
(window.URL || webkitURL).revokeObjectURL(Ke);
|
|
@@ -1989,8 +1991,8 @@ const aa = sa;
|
|
|
1989
1991
|
});
|
|
1990
1992
|
}, h.prototype.mp3_complete = function(oe, ge, Re, Ve) {
|
|
1991
1993
|
var de = this;
|
|
1992
|
-
oe && oe.worker ? (oe.call = function(
|
|
1993
|
-
Ve && de.mp3_stop(oe),
|
|
1994
|
+
oe && oe.worker ? (oe.call = function(Fe) {
|
|
1995
|
+
Ve && de.mp3_stop(oe), Fe.err ? Re(Fe.err) : (Ge(Fe.meta, oe.set), ge(Fe.blob, "audio/mp3"));
|
|
1994
1996
|
}, oe.worker.postMessage({
|
|
1995
1997
|
action: "complete",
|
|
1996
1998
|
id: oe.id
|
|
@@ -2001,10 +2003,10 @@ const aa = sa;
|
|
|
2001
2003
|
return null;
|
|
2002
2004
|
var de = function(R, e) {
|
|
2003
2005
|
return ("0000000" + ((e || Ve)[R] || 0).toString(2)).substr(-8);
|
|
2004
|
-
},
|
|
2005
|
-
if (!/^1{11}/.test(
|
|
2006
|
+
}, Fe = de(0) + de(1), ze = de(2) + de(3);
|
|
2007
|
+
if (!/^1{11}/.test(Fe))
|
|
2006
2008
|
return null;
|
|
2007
|
-
var qe = { "00": 2.5, 10: 2, 11: 1 }[
|
|
2009
|
+
var qe = { "00": 2.5, 10: 2, 11: 1 }[Fe.substr(11, 2)], Je = { "01": 3 }[Fe.substr(13, 2)], at = {
|
|
2008
2010
|
//lamejs -> Tables.samplerate_table
|
|
2009
2011
|
1: [44100, 48e3, 32e3],
|
|
2010
2012
|
2: [22050, 24e3, 16e3],
|
|
@@ -2040,14 +2042,14 @@ const aa = sa;
|
|
|
2040
2042
|
//每帧时长,含小数 ms
|
|
2041
2043
|
};
|
|
2042
2044
|
};
|
|
2043
|
-
var
|
|
2045
|
+
var Oe = {
|
|
2044
2046
|
//minfiy keep name
|
|
2045
2047
|
rm: h.mp3ReadMeta,
|
|
2046
2048
|
fn: function(oe, ge, Re, Ve) {
|
|
2047
2049
|
var de = this.rm(oe, ge);
|
|
2048
2050
|
if (!de)
|
|
2049
2051
|
return { err: "mp3 unknown format" };
|
|
2050
|
-
var
|
|
2052
|
+
var Fe = Math.round(Re / Ve * 1e3), ze = Math.floor((de.duration - Fe) / de.frameDurationFloat);
|
|
2051
2053
|
if (ze > 0) {
|
|
2052
2054
|
var qe = ze * de.frameSize - (de.hasPadding ? 1 : 0);
|
|
2053
2055
|
ge -= qe;
|
|
@@ -2128,13 +2130,13 @@ const aa = sa;
|
|
|
2128
2130
|
H.push(Be(c));
|
|
2129
2131
|
return H;
|
|
2130
2132
|
}
|
|
2131
|
-
function
|
|
2133
|
+
function Oe(c) {
|
|
2132
2134
|
if (c.length == 1)
|
|
2133
2135
|
return new Array(c[0]);
|
|
2134
2136
|
var N = c[0];
|
|
2135
2137
|
c = c.slice(1);
|
|
2136
2138
|
for (var H = [], T = 0; T < N; T++)
|
|
2137
|
-
H.push(
|
|
2139
|
+
H.push(Oe(c));
|
|
2138
2140
|
return H;
|
|
2139
2141
|
}
|
|
2140
2142
|
var Ge = {};
|
|
@@ -2167,13 +2169,13 @@ const aa = sa;
|
|
|
2167
2169
|
this.ordinal = c;
|
|
2168
2170
|
}
|
|
2169
2171
|
de.vbr_off = new de(0), de.vbr_mt = new de(1), de.vbr_rh = new de(2), de.vbr_abr = new de(3), de.vbr_mtrh = new de(4), de.vbr_default = de.vbr_mtrh;
|
|
2170
|
-
function
|
|
2172
|
+
function Fe(c) {
|
|
2171
2173
|
var N = c;
|
|
2172
2174
|
this.ordinal = function() {
|
|
2173
2175
|
return N;
|
|
2174
2176
|
};
|
|
2175
2177
|
}
|
|
2176
|
-
|
|
2178
|
+
Fe.STEREO = new Fe(0), Fe.JOINT_STEREO = new Fe(1), Fe.DUAL_CHANNEL = new Fe(2), Fe.MONO = new Fe(3), Fe.NOT_SET = new Fe(4);
|
|
2177
2179
|
function ze() {
|
|
2178
2180
|
var c = 3, N = 98, H = 4;
|
|
2179
2181
|
this.getLameShortVersion = function() {
|
|
@@ -6822,7 +6824,7 @@ const aa = sa;
|
|
|
6822
6824
|
this.useAdjust = 0, this.aaSensitivityP = 0, this.adjust = 0, this.adjustLimit = 0, this.decay = 0, this.floor = 0, this.l = te(s.SBMAX_l), this.s = te(s.SBMAX_s), this.psfb21 = te(s.PSFB21), this.psfb12 = te(s.PSFB12), this.cb_l = te(s.CBANDS), this.cb_s = te(s.CBANDS), this.eql_w = te(s.BLKSIZE / 2);
|
|
6823
6825
|
}
|
|
6824
6826
|
function bt() {
|
|
6825
|
-
this.class_id = 0, this.num_samples = 0, this.num_channels = 0, this.in_samplerate = 0, this.out_samplerate = 0, this.scale = 0, this.scale_left = 0, this.scale_right = 0, this.analysis = !1, this.bWriteVbrTag = !1, this.decode_only = !1, this.quality = 0, this.mode =
|
|
6827
|
+
this.class_id = 0, this.num_samples = 0, this.num_channels = 0, this.in_samplerate = 0, this.out_samplerate = 0, this.scale = 0, this.scale_left = 0, this.scale_right = 0, this.analysis = !1, this.bWriteVbrTag = !1, this.decode_only = !1, this.quality = 0, this.mode = Fe.STEREO, this.force_ms = !1, this.free_format = !1, this.findReplayGain = !1, this.decode_on_the_fly = !1, this.write_id3tag_automatic = !1, this.brate = 0, this.compression_ratio = 0, this.copyright = 0, this.original = 0, this.extension = 0, this.emphasis = 0, this.error_protection = 0, this.strict_ISO = !1, this.disable_reservoir = !1, this.quant_comp = 0, this.quant_comp_short = 0, this.experimentalY = !1, this.experimentalZ = 0, this.exp_nspsytune = 0, this.preset = 0, this.VBR = null, this.VBR_q_frac = 0, this.VBR_q = 0, this.VBR_mean_bitrate_kbps = 0, this.VBR_min_bitrate_kbps = 0, this.VBR_max_bitrate_kbps = 0, this.VBR_hard_min = 0, this.lowpassfreq = 0, this.highpassfreq = 0, this.lowpasswidth = 0, this.highpasswidth = 0, this.maskingadjust = 0, this.maskingadjust_short = 0, this.ATHonly = !1, this.ATHshort = !1, this.noATH = !1, this.ATHtype = 0, this.ATHcurve = 0, this.ATHlower = 0, this.athaa_type = 0, this.athaa_loudapprox = 0, this.athaa_sensitivity = 0, this.short_blocks = null, this.useTemporal = !1, this.interChRatio = 0, this.msfix = 0, this.tune = !1, this.tune_value_a = 0, this.version = 0, this.encoder_delay = 0, this.encoder_padding = 0, this.framesize = 0, this.frameNum = 0, this.lame_allocated_gfp = 0, this.internal_flags = null;
|
|
6826
6828
|
}
|
|
6827
6829
|
function ft(c) {
|
|
6828
6830
|
var N = c;
|
|
@@ -8365,9 +8367,9 @@ const aa = sa;
|
|
|
8365
8367
|
}
|
|
8366
8368
|
}
|
|
8367
8369
|
this.lame_encode_mp3_frame = function(k, ee, j, fe, E, B) {
|
|
8368
|
-
var t, l =
|
|
8370
|
+
var t, l = Oe([2, 2]);
|
|
8369
8371
|
l[0][0] = new D(), l[0][1] = new D(), l[1][0] = new D(), l[1][1] = new D();
|
|
8370
|
-
var A =
|
|
8372
|
+
var A = Oe([2, 2]);
|
|
8371
8373
|
A[0][0] = new D(), A[0][1] = new D(), A[1][0] = new D(), A[1][1] = new D();
|
|
8372
8374
|
var F, y = [null, null], f = k.internal_flags, w = Ne([2, 4]), u = [0.5, 0.5], I = [[0, 0], [0, 0]], n = [[0, 0], [0, 0]], Y, d, m;
|
|
8373
8375
|
if (y[0] = ee, y[1] = j, f.lame_encode_frame_init == 0 && re(k, y), f.padding = 0, (f.slot_lag -= f.frac_SpF) < 0 && (f.slot_lag += k.out_samplerate, f.padding = 1), f.psymodel != 0) {
|
|
@@ -8388,14 +8390,14 @@ const aa = sa;
|
|
|
8388
8390
|
i
|
|
8389
8391
|
), b != 0)
|
|
8390
8392
|
return -4;
|
|
8391
|
-
for (k.mode ==
|
|
8393
|
+
for (k.mode == Fe.JOINT_STEREO && p(), d = 0; d < f.channels_out; d++) {
|
|
8392
8394
|
var r = f.l3_side.tt[m][d];
|
|
8393
8395
|
r.block_type = i[d], r.mixed_block_flag = 0;
|
|
8394
8396
|
}
|
|
8395
8397
|
}
|
|
8396
8398
|
} else
|
|
8397
8399
|
p();
|
|
8398
|
-
if (g(f), le.mdct_sub48(f, y[0], y[1]), f.mode_ext = s.MPG_MD_LR_LR, k.force_ms ? f.mode_ext = s.MPG_MD_MS_LR : k.mode ==
|
|
8400
|
+
if (g(f), le.mdct_sub48(f, y[0], y[1]), f.mode_ext = s.MPG_MD_LR_LR, k.force_ms ? f.mode_ext = s.MPG_MD_MS_LR : k.mode == Fe.JOINT_STEREO && p(), f.mode_ext == c ? (F = A, Y = n) : (F = l, Y = I), k.analysis && f.pinfo != null && p(), k.VBR == de.vbr_off || k.VBR == de.vbr_abr) {
|
|
8399
8401
|
var Z, L;
|
|
8400
8402
|
for (Z = 0; Z < 18; Z++)
|
|
8401
8403
|
f.nsPsy.pefirbuf[Z] = f.nsPsy.pefirbuf[Z + 1];
|
|
@@ -8938,7 +8940,7 @@ const aa = sa;
|
|
|
8938
8940
|
];
|
|
8939
8941
|
this.L3psycho_anal_ns = function(K, z, q, Se, Te, he, xe, Ae, Ie, We) {
|
|
8940
8942
|
var Ce = K.internal_flags, lt = Ne([2, s.BLKSIZE]), et = Ne([2, 3, s.BLKSIZE_s]), st = te(s.CBANDS + 1), dt = te(s.CBANDS + 1), tt = te(s.CBANDS + 2), Qe = $(2), nt = $(2), wt, je, Ze, He, ut, Lt, Tt, rt, Wt = Ne([2, 576]), At, Bt = $(s.CBANDS + 2), Ft = $(s.CBANDS + 2);
|
|
8941
|
-
for (Ge.fill(Ft, 0), wt = Ce.channels_out, K.mode ==
|
|
8943
|
+
for (Ge.fill(Ft, 0), wt = Ce.channels_out, K.mode == Fe.JOINT_STEREO && (wt = 4), K.VBR == de.vbr_off ? At = Ce.ResvMax == 0 ? 0 : Ce.ResvSize / Ce.ResvMax * 0.5 : K.VBR == de.vbr_rh || K.VBR == de.vbr_mtrh || K.VBR == de.vbr_mt ? At = 0.6 : At = 1, je = 0; je < Ce.channels_out; je++) {
|
|
8942
8944
|
var Ht = z[je], Yt = q + 576 - 350 - B + 192;
|
|
8943
8945
|
for (He = 0; He < 576; He++) {
|
|
8944
8946
|
var Xt, $t;
|
|
@@ -9028,7 +9030,7 @@ const aa = sa;
|
|
|
9028
9030
|
st[Ze] = 0, tt[Ze] = 0;
|
|
9029
9031
|
i(Ce, st, tt, je);
|
|
9030
9032
|
}
|
|
9031
|
-
for ((K.mode ==
|
|
9033
|
+
for ((K.mode == Fe.STEREO || K.mode == Fe.JOINT_STEREO) && p(), K.mode == Fe.JOINT_STEREO && p(), Z(K, nt, We, Qe), je = 0; je < wt; je++) {
|
|
9032
9034
|
var Gt, Zt = 0, pa, ta;
|
|
9033
9035
|
je > 1 ? p() : (Gt = xe, Zt = 0, pa = We[je], ta = Te[Se][je]), pa == s.SHORT_TYPE ? Gt[Zt + je] = ue(ta, Ce.masking_lower) : Gt[Zt + je] = be(ta, Ce.masking_lower), K.analysis && (Ce.pinfo.pe[Se][je] = Gt[Zt + je]);
|
|
9034
9036
|
}
|
|
@@ -9284,7 +9286,7 @@ const aa = sa;
|
|
|
9284
9286
|
var t = 4294479419;
|
|
9285
9287
|
function l(i) {
|
|
9286
9288
|
var r;
|
|
9287
|
-
return i.class_id = t, r = i.internal_flags = new ne(), i.mode =
|
|
9289
|
+
return i.class_id = t, r = i.internal_flags = new ne(), i.mode = Fe.NOT_SET, i.original = 1, i.in_samplerate = 44100, i.num_channels = 2, i.num_samples = -1, i.bWriteVbrTag = !0, i.quality = -1, i.short_blocks = null, r.subblock_gain = -1, i.lowpassfreq = 0, i.highpassfreq = 0, i.lowpasswidth = -1, i.highpasswidth = -1, i.VBR = de.vbr_off, i.VBR_q = 4, i.ATHcurve = -1, i.VBR_mean_bitrate_kbps = 128, i.VBR_min_bitrate_kbps = 0, i.VBR_max_bitrate_kbps = 0, i.VBR_hard_min = 0, r.VBR_min_bitrate = 1, r.VBR_max_bitrate = 13, i.quant_comp = -1, i.quant_comp_short = -1, i.msfix = -1, r.resample_ratio = 1, r.OldValue[0] = 180, r.OldValue[1] = 180, r.CurrentStep[0] = 4, r.CurrentStep[1] = 4, r.masking_lower = 1, r.nsPsy.attackthre = -1, r.nsPsy.attackthre_s = -1, i.scale = -1, i.athaa_type = -1, i.ATHtype = -1, i.athaa_loudapprox = -1, i.athaa_sensitivity = 0, i.useTemporal = null, i.interChRatio = -1, r.mf_samples_to_encode = s.ENCDELAY + s.POSTDELAY, i.encoder_padding = 0, r.mf_size = s.ENCDELAY - s.MDCTDELAY, i.findReplayGain = !1, i.decode_on_the_fly = !1, r.decode_on_the_fly = !1, r.findReplayGain = !1, r.findPeakSample = !1, r.RadioGain = 0, r.AudiophileGain = 0, r.noclipGainChange = 0, r.noclipScale = -1, i.preset = 0, i.write_id3tag_automatic = !0, 0;
|
|
9288
9290
|
}
|
|
9289
9291
|
this.lame_init = function() {
|
|
9290
9292
|
var i = new bt();
|
|
@@ -9436,7 +9438,7 @@ const aa = sa;
|
|
|
9436
9438
|
}
|
|
9437
9439
|
this.lame_init_params = function(i) {
|
|
9438
9440
|
var r = i.internal_flags;
|
|
9439
|
-
if (r.Class_ID = 0, r.ATH == null && (r.ATH = new _t()), r.PSY == null && (r.PSY = new fe()), r.rgdata == null && (r.rgdata = new De()), r.channels_in = i.num_channels, r.channels_in == 1 && (i.mode =
|
|
9441
|
+
if (r.Class_ID = 0, r.ATH == null && (r.ATH = new _t()), r.PSY == null && (r.PSY = new fe()), r.rgdata == null && (r.rgdata = new De()), r.channels_in = i.num_channels, r.channels_in == 1 && (i.mode = Fe.MONO), r.channels_out = i.mode == Fe.MONO ? 1 : 2, r.mode_ext = s.MPG_MD_MS_LR, i.mode == Fe.MONO && (i.force_ms = !1), i.VBR == de.vbr_off && i.VBR_mean_bitrate_kbps != 128 && i.brate == 0 && (i.brate = i.VBR_mean_bitrate_kbps), i.VBR == de.vbr_off || i.VBR == de.vbr_mtrh || i.VBR == de.vbr_mt || (i.free_format = !1), i.VBR == de.vbr_off && i.brate == 0 && p(), i.VBR == de.vbr_off && i.compression_ratio > 0 && p(), i.out_samplerate != 0 && (i.out_samplerate < 16e3 ? (i.VBR_mean_bitrate_kbps = Math.max(
|
|
9440
9442
|
i.VBR_mean_bitrate_kbps,
|
|
9441
9443
|
8
|
|
9442
9444
|
), i.VBR_mean_bitrate_kbps = Math.min(
|
|
@@ -9472,7 +9474,7 @@ const aa = sa;
|
|
|
9472
9474
|
default:
|
|
9473
9475
|
p();
|
|
9474
9476
|
}
|
|
9475
|
-
i.mode ==
|
|
9477
|
+
i.mode == Fe.MONO && (i.VBR == de.vbr_off || i.VBR == de.vbr_abr) && (Z *= 1.5), i.lowpassfreq = Z | 0;
|
|
9476
9478
|
}
|
|
9477
9479
|
switch (i.out_samplerate == 0 && p(), i.lowpassfreq = Math.min(20500, i.lowpassfreq), i.lowpassfreq = Math.min(i.out_samplerate / 2, i.lowpassfreq), i.VBR == de.vbr_off && (i.compression_ratio = i.out_samplerate * 16 * r.channels_out / (1e3 * i.brate)), i.VBR == de.vbr_abr && p(), i.bWriteVbrTag || (i.findReplayGain = !1, i.decode_on_the_fly = !1, r.findPeakSample = !1), r.findReplayGain = i.findReplayGain, r.decode_on_the_fly = i.decode_on_the_fly, r.decode_on_the_fly && (r.findPeakSample = !0), r.findReplayGain && p(), r.decode_on_the_fly && !i.decode_only && p(), r.mode_gr = i.out_samplerate <= 24e3 ? 1 : 2, i.framesize = 576 * r.mode_gr, i.encoder_delay = s.ENCDELAY, r.resample_ratio = i.in_samplerate / i.out_samplerate, i.VBR) {
|
|
9478
9480
|
case de.vbr_mt:
|
|
@@ -9501,7 +9503,7 @@ const aa = sa;
|
|
|
9501
9503
|
i.compression_ratio = i.out_samplerate * 16 * r.channels_out / (1e3 * i.brate);
|
|
9502
9504
|
break;
|
|
9503
9505
|
}
|
|
9504
|
-
i.mode ==
|
|
9506
|
+
i.mode == Fe.NOT_SET && (i.mode = Fe.JOINT_STEREO), i.highpassfreq > 0 ? p() : (r.highpass1 = 0, r.highpass2 = 0), i.lowpassfreq > 0 ? (r.lowpass2 = 2 * i.lowpassfreq, i.lowpasswidth >= 0 ? p() : r.lowpass1 = (1 - 0) * 2 * i.lowpassfreq, r.lowpass1 /= i.out_samplerate, r.lowpass2 /= i.out_samplerate) : p(), u(i), r.samplerate_index = F(i.out_samplerate, i), r.samplerate_index < 0 && p(), i.VBR == de.vbr_off ? i.free_format ? r.bitrate_index = 0 : (i.brate = y(
|
|
9505
9507
|
i.brate,
|
|
9506
9508
|
i.version,
|
|
9507
9509
|
i.out_samplerate
|
|
@@ -9547,7 +9549,7 @@ const aa = sa;
|
|
|
9547
9549
|
break;
|
|
9548
9550
|
}
|
|
9549
9551
|
}
|
|
9550
|
-
return i.VBR != de.vbr_off && p(), i.tune && p(), I(i), i.athaa_type < 0 ? r.ATH.useAdjust = 3 : r.ATH.useAdjust = i.athaa_type, r.ATH.aaSensitivityP = Math.pow(10, i.athaa_sensitivity / -10), i.short_blocks == null && (i.short_blocks = Re.short_block_allowed), i.short_blocks == Re.short_block_allowed && (i.mode ==
|
|
9552
|
+
return i.VBR != de.vbr_off && p(), i.tune && p(), I(i), i.athaa_type < 0 ? r.ATH.useAdjust = 3 : r.ATH.useAdjust = i.athaa_type, r.ATH.aaSensitivityP = Math.pow(10, i.athaa_sensitivity / -10), i.short_blocks == null && (i.short_blocks = Re.short_block_allowed), i.short_blocks == Re.short_block_allowed && (i.mode == Fe.JOINT_STEREO || i.mode == Fe.STEREO) && (i.short_blocks = Re.short_block_coupled), i.quant_comp < 0 && (i.quant_comp = 1), i.quant_comp_short < 0 && (i.quant_comp_short = 0), i.msfix < 0 && (i.msfix = 0), i.exp_nspsytune = i.exp_nspsytune | 1, i.internal_flags.nsPsy.attackthre < 0 && (i.internal_flags.nsPsy.attackthre = Me.NSATTACKTHRE), i.internal_flags.nsPsy.attackthre_s < 0 && (i.internal_flags.nsPsy.attackthre_s = Me.NSATTACKTHRE_S), i.scale < 0 && (i.scale = 1), i.ATHtype < 0 && (i.ATHtype = 4), i.ATHcurve < 0 && (i.ATHcurve = 4), i.athaa_loudapprox < 0 && (i.athaa_loudapprox = 2), i.interChRatio < 0 && (i.interChRatio = 0), i.useTemporal == null && (i.useTemporal = !0), r.slot_lag = r.frac_SpF = 0, i.VBR == de.vbr_off && (r.slot_lag = r.frac_SpF = (i.version + 1) * 72e3 * i.brate % i.out_samplerate | 0), O.iteration_init(i), k.psymodel_init(i), 0;
|
|
9551
9553
|
};
|
|
9552
9554
|
function Y(i, r) {
|
|
9553
9555
|
(i.in_buffer_0 == null || i.in_buffer_nsamples < r) && (i.in_buffer_0 = te(r), i.in_buffer_1 = te(r), i.in_buffer_nsamples = r);
|
|
@@ -9699,7 +9701,7 @@ const aa = sa;
|
|
|
9699
9701
|
var T = new se(), le = new X(), g = new Je(), O = new Xe(), re = new at(), k = new e(), ee = new S(), j = new Ue(), fe = new ze(), E = new P(), B = new Ke(), t = new qe(), l = new ve(), A = new we();
|
|
9700
9702
|
T.setModules(g, O, re, k, ee, j, fe, E, A), O.setModules(g, A, fe, j), E.setModules(O, fe), re.setModules(T), ee.setModules(O, B, k, t), k.setModules(t, B, T.enc.psy), B.setModules(O), t.setModules(k), j.setModules(T, O, fe), le.setModules(l, A), l.setModules(fe, E, re);
|
|
9701
9703
|
var F = T.lame_init();
|
|
9702
|
-
F.num_channels = c, F.in_samplerate = N, F.out_samplerate = N, F.brate = H, F.mode =
|
|
9704
|
+
F.num_channels = c, F.in_samplerate = N, F.out_samplerate = N, F.brate = H, F.mode = Fe.STEREO, F.quality = 3, F.bWriteVbrTag = !1, F.disable_reservoir = !0, F.write_id3tag_automatic = !1, T.lame_init_params(F);
|
|
9703
9705
|
var y = 1152, f = 0 | 1.25 * y + 7200, w = W(f);
|
|
9704
9706
|
this.encodeBuffer = function(u, I) {
|
|
9705
9707
|
c == 1 && (I = u), u.length > y && (y = u.length, f = 0 | 1.25 * y + 7200, w = W(f));
|
|
@@ -9751,7 +9753,7 @@ const aa = sa;
|
|
|
9751
9753
|
ye.set = te = Ne;
|
|
9752
9754
|
var Be = "compatibleCanvas";
|
|
9753
9755
|
if (te[Be])
|
|
9754
|
-
var
|
|
9756
|
+
var Oe = ye.canvas = te[Be];
|
|
9755
9757
|
else {
|
|
9756
9758
|
if (!p)
|
|
9757
9759
|
throw new Error(_.G("NonBrowser-1", [U]));
|
|
@@ -9759,24 +9761,24 @@ const aa = sa;
|
|
|
9759
9761
|
Ge && (typeof Ge == "string" ? Ge = document.querySelector(Ge) : Ge.length && (Ge = Ge[0])), Ge && (te.width = Ge.offsetWidth, te.height = Ge.offsetHeight);
|
|
9760
9762
|
var oe = ye.elem = document.createElement("div");
|
|
9761
9763
|
oe.style.fontSize = 0, oe.innerHTML = '<canvas style="width:100%;height:100%;"/>';
|
|
9762
|
-
var
|
|
9764
|
+
var Oe = ye.canvas = oe.querySelector("canvas");
|
|
9763
9765
|
Ge && (Ge.innerHTML = "", Ge.appendChild(oe));
|
|
9764
9766
|
}
|
|
9765
9767
|
var ge = te.scale, Re = te.width * ge, Ve = te.height * ge;
|
|
9766
9768
|
if (!Re || !Ve)
|
|
9767
9769
|
throw new Error(_.G("IllegalArgs-1", [U + " width=0 height=0"]));
|
|
9768
|
-
|
|
9769
|
-
var de = ye.ctx =
|
|
9770
|
+
Oe.width = Re, Oe.height = Ve;
|
|
9771
|
+
var de = ye.ctx = Oe.getContext("2d");
|
|
9770
9772
|
ye.linear1 = ye.genLinear(de, Re, te.linear1), ye.linear2 = ye.genLinear(de, Re, te.linear2), ye.linearBg = ye.genLinear(de, Ve, te.linearBg, !0), ye._phase = 0;
|
|
9771
9773
|
};
|
|
9772
9774
|
$.prototype = W.prototype = {
|
|
9773
9775
|
genLinear: function(te, ye, Ne, Le) {
|
|
9774
|
-
for (var Be = te.createLinearGradient(0, 0, Le ? 0 : ye, Le ? ye : 0),
|
|
9775
|
-
Be.addColorStop(Ne[
|
|
9776
|
+
for (var Be = te.createLinearGradient(0, 0, Le ? 0 : ye, Le ? ye : 0), Oe = 0; Oe < Ne.length; )
|
|
9777
|
+
Be.addColorStop(Ne[Oe++], Ne[Oe++]);
|
|
9776
9778
|
return Be;
|
|
9777
9779
|
},
|
|
9778
9780
|
genPath: function(te, ye, Ne) {
|
|
9779
|
-
for (var Le = [], Be = this,
|
|
9781
|
+
for (var Le = [], Be = this, Oe = Be.set, Ge = Oe.scale, oe = Oe.width * Ge, ge = Oe.height * Ge / 2, Re = 0; Re <= oe; Re += Ge) {
|
|
9780
9782
|
var Ve = (1 + Math.cos(Math.PI + Re / oe * 2 * Math.PI)) / 2, de = Ve * ge * ye * Math.sin(2 * Math.PI * (Re / oe) * te + Ne) + ge;
|
|
9781
9783
|
Le.push(de);
|
|
9782
9784
|
}
|
|
@@ -9794,27 +9796,27 @@ const aa = sa;
|
|
|
9794
9796
|
var Le = Date.now(), Be = te.drawTime || 0;
|
|
9795
9797
|
if (!(Le - Be < Ne)) {
|
|
9796
9798
|
te.drawTime = Le;
|
|
9797
|
-
for (var
|
|
9799
|
+
for (var Oe = te.sampleRate / ye.fps, Ge = te.pcmData, oe = te.pcmPos, ge = Math.max(0, Math.min(Oe, Ge.length - oe)), Re = 0, Ve = 0; Ve < ge; Ve++, oe++)
|
|
9798
9800
|
Re += Math.abs(Ge[oe]);
|
|
9799
9801
|
te.pcmPos = oe, (ge || !ye.keep) && te.draw(h.PowerLevel(Re, ge)), !ge && Le - te.inputTime > 1300 && (clearInterval(te.timer), te.timer = 0);
|
|
9800
9802
|
}
|
|
9801
9803
|
},
|
|
9802
9804
|
draw: function(te) {
|
|
9803
|
-
var ye = this, Ne = ye.set, Le = ye.ctx, Be = Ne.scale,
|
|
9804
|
-
Le.clearRect(0, 0,
|
|
9805
|
-
for (var ze = 0, qe = 0; qe <=
|
|
9805
|
+
var ye = this, Ne = ye.set, Le = ye.ctx, Be = Ne.scale, Oe = Ne.width * Be, Ge = Ne.height * Be, oe = Ne.speed / Ne.fps, ge = ye._phase -= oe, Re = ge + oe * Ne.phase, Ve = te / 100, de = ye.genPath(2, Ve, ge), Fe = ye.genPath(1.8, Ve, Re);
|
|
9806
|
+
Le.clearRect(0, 0, Oe, Ge), Le.beginPath();
|
|
9807
|
+
for (var ze = 0, qe = 0; qe <= Oe; ze++, qe += Be)
|
|
9806
9808
|
qe == 0 ? Le.moveTo(qe, de[ze]) : Le.lineTo(qe, de[ze]);
|
|
9807
9809
|
ze--;
|
|
9808
|
-
for (var qe =
|
|
9809
|
-
Le.lineTo(qe,
|
|
9810
|
-
Le.closePath(), Le.fillStyle = ye.linearBg, Le.fill(), ye.drawPath(
|
|
9810
|
+
for (var qe = Oe - 1; qe >= 0; ze--, qe -= Be)
|
|
9811
|
+
Le.lineTo(qe, Fe[ze]);
|
|
9812
|
+
Le.closePath(), Le.fillStyle = ye.linearBg, Le.fill(), ye.drawPath(Fe, ye.linear2), ye.drawPath(de, ye.linear1);
|
|
9811
9813
|
},
|
|
9812
9814
|
drawPath: function(te, ye) {
|
|
9813
|
-
var Ne = this, Le = Ne.set, Be = Ne.ctx,
|
|
9815
|
+
var Ne = this, Le = Ne.set, Be = Ne.ctx, Oe = Le.scale, Ge = Le.width * Oe;
|
|
9814
9816
|
Be.beginPath();
|
|
9815
|
-
for (var oe = 0, ge = 0; ge <= Ge; oe++, ge +=
|
|
9817
|
+
for (var oe = 0, ge = 0; ge <= Ge; oe++, ge += Oe)
|
|
9816
9818
|
ge == 0 ? Be.moveTo(ge, te[oe]) : Be.lineTo(ge, te[oe]);
|
|
9817
|
-
Be.lineWidth = Le.lineWidth *
|
|
9819
|
+
Be.lineWidth = Le.lineWidth * Oe, Be.strokeStyle = ye, Be.stroke();
|
|
9818
9820
|
}
|
|
9819
9821
|
}, h[U] = W;
|
|
9820
9822
|
});
|
|
@@ -10547,7 +10549,7 @@ var oa = {}, w0 = {
|
|
|
10547
10549
|
*/
|
|
10548
10550
|
function p(R, e) {
|
|
10549
10551
|
var o;
|
|
10550
|
-
return (oe || Be ||
|
|
10552
|
+
return (oe || Be || Oe) && (o = Xe), typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && !oe && (o = Ue), e.type === "video" && (oe || Oe) && (o = G, typeof De < "u" && typeof ReadableStream < "u" && (o = De)), e.type === "gif" && (o = $e), e.type === "canvas" && (o = Ee), Ke() && o !== Ee && o !== $e && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (ze(R, "video").length || ze(R, "audio").length) && (e.type === "audio" ? typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("audio/webm") && (o = Ue) : typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("video/webm") && (o = Ue)), R instanceof Array && R.length && (o = bt), e.recorderType && (o = e.recorderType), !e.disableLogs && o && o.name && console.log("Using recorderType:", o.name || o.constructor.name), !o && ge && (o = Ue), o;
|
|
10551
10553
|
}
|
|
10552
10554
|
/**
|
|
10553
10555
|
* MRecordRTC runs on top of {@link RecordRTC} to bring multiple recordings in a single place, by providing simple API.
|
|
@@ -10797,7 +10799,7 @@ var oa = {}, w0 = {
|
|
|
10797
10799
|
typeof Ne > "u" && (typeof webkitAudioContext < "u" && (Ne = webkitAudioContext), typeof mozAudioContext < "u" && (Ne = mozAudioContext));
|
|
10798
10800
|
var Le = window.URL;
|
|
10799
10801
|
typeof Le > "u" && typeof webkitURL < "u" && (Le = webkitURL), typeof navigator < "u" && typeof navigator.getUserMedia > "u" && (typeof navigator.webkitGetUserMedia < "u" && (navigator.getUserMedia = navigator.webkitGetUserMedia), typeof navigator.mozGetUserMedia < "u" && (navigator.getUserMedia = navigator.mozGetUserMedia));
|
|
10800
|
-
var Be = navigator.userAgent.indexOf("Edge") !== -1 && (!!navigator.msSaveBlob || !!navigator.msSaveOrOpenBlob),
|
|
10802
|
+
var Be = navigator.userAgent.indexOf("Edge") !== -1 && (!!navigator.msSaveBlob || !!navigator.msSaveOrOpenBlob), Oe = !!window.opera || navigator.userAgent.indexOf("OPR/") !== -1, Ge = navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && "netscape" in window && / rv:/.test(navigator.userAgent), oe = !Oe && !Be && !!navigator.webkitGetUserMedia || Fe() || navigator.userAgent.toLowerCase().indexOf("chrome/") !== -1, ge = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
10801
10803
|
ge && !oe && navigator.userAgent.indexOf("CriOS") !== -1 && (ge = !1, oe = !0);
|
|
10802
10804
|
var Re = window.MediaStream;
|
|
10803
10805
|
typeof Re > "u" && typeof webkitMediaStream < "u" && (Re = webkitMediaStream), typeof Re < "u" && typeof Re.prototype.stop > "u" && (Re.prototype.stop = function() {
|
|
@@ -10837,7 +10839,7 @@ var oa = {}, w0 = {
|
|
|
10837
10839
|
cancelable: !0
|
|
10838
10840
|
}))), Le.revokeObjectURL(S.href);
|
|
10839
10841
|
}
|
|
10840
|
-
function
|
|
10842
|
+
function Fe() {
|
|
10841
10843
|
return !!(typeof window < "u" && typeof window.process == "object" && window.process.type === "renderer" || typeof process < "u" && typeof process.versions == "object" && process.versions.electron || typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Electron") >= 0);
|
|
10842
10844
|
}
|
|
10843
10845
|
function ze(R, e) {
|
|
@@ -10863,7 +10865,7 @@ var oa = {}, w0 = {
|
|
|
10863
10865
|
e(ie);
|
|
10864
10866
|
}, S.readAsArrayBuffer(R);
|
|
10865
10867
|
}
|
|
10866
|
-
typeof a < "u" && (a.invokeSaveAsDialog = de, a.getTracks = ze, a.getSeekableBlob = Je, a.bytesToSize = Ve, a.isElectron =
|
|
10868
|
+
typeof a < "u" && (a.invokeSaveAsDialog = de, a.getTracks = ze, a.getSeekableBlob = Je, a.bytesToSize = Ve, a.isElectron = Fe);
|
|
10867
10869
|
/**
|
|
10868
10870
|
* Storage is a standalone object used by {@link RecordRTC} to store reusable objects e.g. "new AudioContext".
|
|
10869
10871
|
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
@@ -10879,7 +10881,7 @@ var oa = {}, w0 = {
|
|
|
10879
10881
|
if (Ge || ge || Be)
|
|
10880
10882
|
return !0;
|
|
10881
10883
|
var R = navigator.userAgent, e = "" + parseFloat(navigator.appVersion), o = parseInt(navigator.appVersion, 10), v, M;
|
|
10882
|
-
return (oe ||
|
|
10884
|
+
return (oe || Oe) && (v = R.indexOf("Chrome"), e = R.substring(v + 7)), (M = e.indexOf(";")) !== -1 && (e = e.substring(0, M)), (M = e.indexOf(" ")) !== -1 && (e = e.substring(0, M)), o = parseInt("" + e, 10), isNaN(o) && (e = "" + parseFloat(navigator.appVersion), o = parseInt(navigator.appVersion, 10)), o >= 49;
|
|
10883
10885
|
}
|
|
10884
10886
|
/**
|
|
10885
10887
|
* MediaStreamRecorder is an abstraction layer for {@link https://w3c.github.io/mediacapture-record/MediaRecorder.html|MediaRecorder API}. It is used by {@link RecordRTC} to record MediaStream(s) in both Chrome and Firefox.
|
|
@@ -12840,9 +12842,9 @@ const L0 = {
|
|
|
12840
12842
|
}), Sa.uploadFile(h, (W, U) => {
|
|
12841
12843
|
U && U.forEach(($, te) => {
|
|
12842
12844
|
const ye = p[te], Ne = $.data;
|
|
12843
|
-
if (
|
|
12844
|
-
const { pending: Le, hash: Be, ...
|
|
12845
|
-
switch (
|
|
12845
|
+
if ($.code === 0) {
|
|
12846
|
+
const { pending: Le, hash: Be, ...Oe } = ye;
|
|
12847
|
+
switch (Oe.content = Ne.url, console.log(2223, Oe), this.$refs.treeEditor.updateNode(Oe), ye.type) {
|
|
12846
12848
|
case "file":
|
|
12847
12849
|
this.$refs.selectFile.value = "";
|
|
12848
12850
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codernote/record-tree",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"recordrtc": "^5.6.2",
|
|
9
9
|
"vue-inline-svg": "^2.1.3",
|
|
10
10
|
"vue-popperjs": "^2.3.0",
|
|
11
|
-
"@codernote/
|
|
12
|
-
"@codernote/
|
|
11
|
+
"@codernote/tree-editor": "1.0.8",
|
|
12
|
+
"@codernote/utils": "1.4.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@vitejs/plugin-vue2": "^2.3.1",
|