@codernote/record-tree 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +866 -839
  2. package/package.json +1 -1
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-6410090d]{display:flex;align-items:center;position:relative}.node-text[data-v-6410090d]{margin-left:5px;flex:1;border:none;outline:none}.node-icon[data-v-6410090d]{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-6410090d]{align-self:flex-start;top:3px}.node-icon[data-v-6410090d]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-6410090d]:hover{background-color:#ccc}.node-complex[data-v-6410090d]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-6410090d]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-6410090d]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-6410090d]{display:block}.node-image img[data-v-6410090d]{width:auto;max-height:80px;outline:none}.node-audio[data-v-6410090d],.node-video[data-v-6410090d]{width:300px}.node-audio audio[data-v-6410090d]{width:300px;outline:none}.node-video video[data-v-6410090d]{width:300px;outline:none}.node-del[data-v-6410090d]{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-6410090d]:before,.node-del[data-v-6410090d]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-6410090d]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-6410090d]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-6410090d]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-6410090d]{flex:1}.node-file-left h6[data-v-6410090d]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-6410090d]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-6410090d]{color:#52a770;font-size:14px}@keyframes blinkBorder-6410090d{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-6410090d]:focus{animation:blinkBorder-6410090d 1s infinite}.node-ul[data-v-4dcf1f81]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-4dcf1f81]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-4dcf1f81] .sublevel .node-li{margin-left:15px}[data-v-4dcf1f81] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-4dcf1f81] .drag-over-center{background-color:#eee}[data-v-4dcf1f81] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-4dcf1f81]{display:none}[data-v-4dcf1f81] .collapsed .node-icon:before{display:none}.tree-title[data-v-4dcf1f81]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-4dcf1f81] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-4dcf1f81] .node-li.dragging .node-icon:before{display:none}[data-v-4dcf1f81] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-4dcf1f81] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.record-audio[data-v-c2800929]{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}.recwave[data-v-c2800929]{width:300px;height:40px}.audio-item[data-v-c2800929]{margin-top:10px}.buttons[data-v-c2800929]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-c2800929]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-c2800929]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-c2800929]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-c2800929]{border:1px solid #eee}.buttons .oper[data-v-c2800929]{margin-right:10px}.main[data-v-c2800929]{display:flex;align-items:center}.duration[data-v-c2800929]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-c2800929]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-c2800929]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.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)}.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-mobile .record-tree-main{padding-left:0}.record-tree-mobile .record-tree-options{padding:12px 0}.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-main{padding-left:15px}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree{position:relative;padding-bottom:40px}.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-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;padding-left:10px}.record-tree-option-right{padding-right:10px}.record-tree-option-item{margin:0 5px;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.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}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-div[data-v-bd3dcd6b]{display:flex;align-items:center;position:relative}.node-text[data-v-bd3dcd6b]{margin-left:5px;flex:1;border:none;outline:none}.node-icon[data-v-bd3dcd6b]{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-bd3dcd6b]{align-self:flex-start;top:3px}.node-icon[data-v-bd3dcd6b]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-bd3dcd6b]:hover{background-color:#ccc}.node-complex[data-v-bd3dcd6b]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-bd3dcd6b]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-bd3dcd6b]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-bd3dcd6b]{display:block}.node-image img[data-v-bd3dcd6b]{width:auto;max-height:80px;outline:none}.node-audio[data-v-bd3dcd6b],.node-video[data-v-bd3dcd6b]{width:300px}.node-audio audio[data-v-bd3dcd6b]{width:300px;outline:none}.node-video video[data-v-bd3dcd6b]{width:300px;outline:none}.node-del[data-v-bd3dcd6b]{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-bd3dcd6b]:before,.node-del[data-v-bd3dcd6b]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-bd3dcd6b]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-bd3dcd6b]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-bd3dcd6b]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-bd3dcd6b]{flex:1}.node-file-left h6[data-v-bd3dcd6b]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-bd3dcd6b]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-bd3dcd6b]{color:#52a770;font-size:14px}@keyframes blinkBorder-bd3dcd6b{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-bd3dcd6b]:focus{animation:blinkBorder-bd3dcd6b 1s infinite}.node-ul[data-v-e0823576]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-e0823576]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-e0823576] .sublevel .node-li{margin-left:15px}[data-v-e0823576] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-e0823576] .drag-over-center{background-color:#eee}[data-v-e0823576] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-e0823576]{display:none}[data-v-e0823576] .collapsed .node-icon:before{display:none}.tree-title[data-v-e0823576]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-e0823576] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-e0823576] .node-li.dragging .node-icon:before{display:none}[data-v-e0823576] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-e0823576] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.record-audio[data-v-26b984ff]{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-26b984ff]{width:300px;height:40px}.record-audio .audio-item[data-v-26b984ff]{margin-top:10px}.record-audio .buttons[data-v-26b984ff]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-26b984ff]{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-26b984ff]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-26b984ff]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-26b984ff]{border:1px solid #eee}.record-audio .buttons .oper[data-v-26b984ff]{margin-right:10px}.record-audio .main[data-v-26b984ff]{display:flex;align-items:center}.record-audio .duration[data-v-26b984ff]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-26b984ff]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-26b984ff]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-audio-mobile[data-v-26b984ff]{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-26b984ff]{flex:1;height:30px}.record-audio-mobile .oper[data-v-26b984ff]{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)}.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-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-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-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-main{padding-left:15px}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree{position:relative;padding-bottom:40px}.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-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}.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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  import { uuid as Ct, detectDeviceType as g0, byNameFindIcon as w0, icons as y0, parseMimeType as T0, oss as x0 } from "@codernote/utils";
3
3
  import Gt from "vue-inline-svg";
4
4
  import A0 from "vue-popperjs";
@@ -6,8 +6,8 @@ class D0 {
6
6
  constructor() {
7
7
  this.events = {};
8
8
  }
9
- set(r, p) {
10
- this[r] = p;
9
+ set(r, b) {
10
+ this[r] = b;
11
11
  }
12
12
  get(r) {
13
13
  return this[r];
@@ -15,8 +15,8 @@ class D0 {
15
15
  remove(r) {
16
16
  delete this[r];
17
17
  }
18
- on(r, p) {
19
- this.events[r] = p;
18
+ on(r, b) {
19
+ this.events[r] = b;
20
20
  }
21
21
  trigger(r) {
22
22
  this.events[r] && (this.events[r](), delete this.events[r]);
@@ -29,12 +29,12 @@ function kt() {
29
29
  let _ = window.getSelection();
30
30
  return _.rangeCount > 0 && _.getRangeAt(0).startOffset || 0;
31
31
  }
32
- function Rt(_, r = 0, p = !1) {
32
+ function Rt(_, r = 0, b = !1) {
33
33
  if (!_)
34
34
  return;
35
35
  const M = _.querySelectorAll(".holder");
36
36
  if (M.length) {
37
- (p || r > 0 ? M[1] : M[0]).focus();
37
+ (b || r > 0 ? M[1] : M[0]).focus();
38
38
  return;
39
39
  }
40
40
  if (!_.isContentEditable) {
@@ -45,7 +45,7 @@ function Rt(_, r = 0, p = !1) {
45
45
  J.removeAllRanges();
46
46
  try {
47
47
  let re = _;
48
- if (_.childNodes.length > 0 ? re = _.childNodes[0] : (p || r > 0) && (re = document.createTextNode(""), _.appendChild(re)), p)
48
+ if (_.childNodes.length > 0 ? re = _.childNodes[0] : (b || r > 0) && (re = document.createTextNode(""), _.appendChild(re)), b)
49
49
  Z.selectNodeContents(re), Z.collapse(!1);
50
50
  else {
51
51
  const ie = Math.min(r, re.length || 0);
@@ -59,12 +59,12 @@ function Rt(_, r = 0, p = !1) {
59
59
  function S0(_) {
60
60
  const r = window.getSelection();
61
61
  r.removeAllRanges();
62
- const p = document.createRange();
63
- p.setStart(_.childNodes[0], 0), p.setEnd(_.childNodes[0], _.innerText.length), r.addRange(p);
62
+ const b = document.createRange();
63
+ b.setStart(_.childNodes[0], 0), b.setEnd(_.childNodes[0], _.innerText.length), r.addRange(b);
64
64
  }
65
- function p0(_) {
65
+ function M0(_) {
66
66
  var re;
67
- let p = (((re = _.target) == null ? void 0 : re.querySelector(".node-div")) || _.target).getBoundingClientRect(), M = _.clientY, J = p.top + p.height / 3, Z = p.top + p.height / 3 * 2;
67
+ let b = (((re = _.target) == null ? void 0 : re.querySelector(".node-div")) || _.target).getBoundingClientRect(), M = _.clientY, J = b.top + b.height / 3, Z = b.top + b.height / 3 * 2;
68
68
  return M < J ? "top" : M < Z ? "center" : "bottom";
69
69
  }
70
70
  function r0(_) {
@@ -74,12 +74,12 @@ function N0(_) {
74
74
  return _ && _.uuid ? document.getElementById(_.uuid) : null;
75
75
  }
76
76
  function Nt(_, r = !1) {
77
- const p = N0(_), M = ".node-text";
77
+ const b = N0(_), M = ".node-text";
78
78
  if (r) {
79
- const J = p.querySelectorAll(M);
79
+ const J = b.querySelectorAll(M);
80
80
  return J[J.length - 1];
81
81
  }
82
- return p == null ? void 0 : p.querySelector(M);
82
+ return b == null ? void 0 : b.querySelector(M);
83
83
  }
84
84
  function i0() {
85
85
  ["drag-over-top", "drag-over-center", "drag-over-bottom"].forEach((_) => {
@@ -88,17 +88,17 @@ function i0() {
88
88
  }
89
89
  function I0(_, r) {
90
90
  var re;
91
- const p = _.currentTarget, M = St.get("dragId") ? document.getElementById(St.get("dragId")) : null;
92
- if (!p || St.get("dragId") === r.uuid || M != null && M.querySelector(`[id="${r.uuid}"]`)) {
91
+ const b = _.currentTarget, M = St.get("dragId") ? document.getElementById(St.get("dragId")) : null;
92
+ if (!b || St.get("dragId") === r.uuid || M != null && M.querySelector(`[id="${r.uuid}"]`)) {
93
93
  _.dataTransfer.dropEffect = "none";
94
94
  return;
95
95
  }
96
96
  i0();
97
- const J = p0(_), Z = (re = p.querySelector(".node-div")) == null ? void 0 : re.classList;
97
+ const J = M0(_), Z = (re = b.querySelector(".node-div")) == null ? void 0 : re.classList;
98
98
  Z && Z.add(`drag-over-${J}`);
99
99
  }
100
100
  function C0(_) {
101
- const p = new DOMParser().parseFromString(_, "text/html"), M = p.querySelector("img"), J = p.querySelector("video"), Z = p.querySelector("audio");
101
+ const b = new DOMParser().parseFromString(_, "text/html"), M = b.querySelector("img"), J = b.querySelector("video"), Z = b.querySelector("audio");
102
102
  return M ? {
103
103
  type: "image",
104
104
  content: M.src
@@ -111,29 +111,29 @@ function C0(_) {
111
111
  } : null;
112
112
  }
113
113
  function n0(_, r) {
114
- var p;
115
- return (p = r.children) != null && p.length ? r.children.some(
114
+ var b;
115
+ return (b = r.children) != null && b.length ? r.children.some(
116
116
  (M) => M.uuid === _.uuid || n0(_, M)
117
117
  ) : !1;
118
118
  }
119
119
  function R0(_, r = 0) {
120
120
  if (_ === 0)
121
121
  return "0 Bytes";
122
- const p = 1024, M = r < 0 ? 0 : r, J = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], Z = Math.floor(Math.log(_) / Math.log(p));
123
- return parseFloat((_ / Math.pow(p, Z)).toFixed(M)) + " " + J[Z];
122
+ const b = 1024, M = r < 0 ? 0 : r, J = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], Z = Math.floor(Math.log(_) / Math.log(b));
123
+ return parseFloat((_ / Math.pow(b, Z)).toFixed(M)) + " " + J[Z];
124
124
  }
125
125
  function L0(_, r) {
126
126
  if (_.length <= r)
127
127
  return _;
128
- const p = _.length - r + 3;
129
- return "..." + _.substring(p);
128
+ const b = _.length - r + 3;
129
+ return "..." + _.substring(b);
130
130
  }
131
131
  function E0(_) {
132
132
  return (_ || "").replace("contenteditable", "temp");
133
133
  }
134
- function zt(_, r, p, M, J, Z, re, ie) {
134
+ function zt(_, r, b, M, J, Z, re, ie) {
135
135
  var ye = typeof _ == "function" ? _.options : _;
136
- r && (ye.render = r, ye.staticRenderFns = p, ye._compiled = !0), M && (ye.functional = !0), Z && (ye._scopeId = "data-v-" + Z);
136
+ r && (ye.render = r, ye.staticRenderFns = b, ye._compiled = !0), M && (ye.functional = !0), Z && (ye._scopeId = "data-v-" + Z);
137
137
  var Re;
138
138
  if (re ? (Re = function(Ve) {
139
139
  Ve = Ve || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !Ve && typeof __VUE_SSR_CONTEXT__ < "u" && (Ve = __VUE_SSR_CONTEXT__), J && J.call(this, Ve), Ve && Ve._registeredComponents && Ve._registeredComponents.add(re);
@@ -169,6 +169,10 @@ const k0 = {
169
169
  readOnly: {
170
170
  type: Boolean,
171
171
  default: !1
172
+ },
173
+ isMobile: {
174
+ type: Boolean,
175
+ default: !1
172
176
  }
173
177
  },
174
178
  data: function() {
@@ -240,7 +244,7 @@ const k0 = {
240
244
  }
241
245
  },
242
246
  handleBackspace(_) {
243
- var p;
247
+ var b;
244
248
  const r = this.node;
245
249
  if (this.isComplex)
246
250
  _.preventDefault(), this.$emit("toPrevFocus", r, !0), this.remove();
@@ -248,7 +252,7 @@ const k0 = {
248
252
  const M = window.getSelection();
249
253
  let J = M.focusOffset - 1;
250
254
  if (_.target && M && J < 0) {
251
- if (_.preventDefault(), (p = r.children) != null && p.length)
255
+ if (_.preventDefault(), (b = r.children) != null && b.length)
252
256
  return;
253
257
  this.$emit("toPrevFocus", r, !0), this.$emit("remove", r);
254
258
  }
@@ -261,12 +265,12 @@ const k0 = {
261
265
  const r = this.node;
262
266
  if (_.ctrlKey) {
263
267
  this.$emit("collapse", r, !1);
264
- const p = {
268
+ const b = {
265
269
  text: "",
266
270
  uuid: Ct()
267
271
  };
268
- r.children ? r.children.unshift(p) : r.children = [p], this.update(), this.$nextTick(() => {
269
- this.$emit("toFocus", p);
272
+ r.children ? r.children.unshift(b) : r.children = [b], this.update(), this.$nextTick(() => {
273
+ this.$emit("toFocus", b);
270
274
  });
271
275
  } else
272
276
  this.isComposition || this.$emit("enter", r);
@@ -279,20 +283,20 @@ const k0 = {
279
283
  _ && _.focus();
280
284
  },
281
285
  handleArrowLeft(_) {
282
- const r = this.node, p = _.currentTarget, M = kt();
283
- p && (M ? this.$nextTick(() => {
286
+ const r = this.node, b = _.currentTarget, M = kt();
287
+ b && (M ? this.$nextTick(() => {
284
288
  Rt(
285
- p,
289
+ b,
286
290
  M === 1 / 0 ? 0 : M - 1
287
291
  );
288
292
  }) : this.$emit("toPrevFocus", r, !0));
289
293
  },
290
294
  handleArrowRight(_) {
291
- const r = this.node, p = _.currentTarget, M = kt();
292
- if (!p)
295
+ const r = this.node, b = _.currentTarget, M = kt();
296
+ if (!b)
293
297
  return;
294
- const J = M + 1, Z = p.innerText.length;
295
- !M && r.type ? Rt(p, J, !0) : J > Z ? this.$emit("toNextFocus", r, !0, !0) : Rt(p, J);
298
+ const J = M + 1, Z = b.innerText.length;
299
+ !M && r.type ? Rt(b, J, !0) : J > Z ? this.$emit("toNextFocus", r, !0, !0) : Rt(b, J);
296
300
  },
297
301
  handleArrowDown() {
298
302
  this.$emit("toNextFocus", this.node, !1, !0);
@@ -309,13 +313,13 @@ const k0 = {
309
313
  }
310
314
  };
311
315
  var j0 = function() {
312
- var r = this, p = r._self._c;
313
- return p("div", { ref: "row", staticClass: "node-div" }, [p("span", { staticClass: "node-icon", class: {
316
+ var r = this, b = r._self._c;
317
+ return b("div", { ref: "row", staticClass: "node-div" }, [b("span", { staticClass: "node-icon", class: {
314
318
  "node-icon": !0,
315
319
  "node-icon-complex": !!r.node.type
316
320
  }, on: { click: function(M) {
317
321
  return M.stopPropagation(), r.$emit("collapse", r.node);
318
- } } }), r.node.type ? p("div", { ref: "element", staticClass: "node-text", attrs: { contenteditable: !r.readOnly }, on: { compositionstart: function(M) {
322
+ } } }), r.node.type ? b("div", { ref: "element", staticClass: "node-text", attrs: { contenteditable: !r.readOnly }, on: { compositionstart: function(M) {
319
323
  return M.stopPropagation(), r.handleCompositionStart.apply(null, arguments);
320
324
  }, compositionend: function(M) {
321
325
  return M.stopPropagation(), r.handleCompositionEnd.apply(null, arguments);
@@ -325,9 +329,9 @@ var j0 = function() {
325
329
  return M.stopPropagation(), r.handleFocus.apply(null, arguments);
326
330
  }, click: function(M) {
327
331
  return M.stopPropagation(), r.handleFocusHolder.apply(null, arguments);
328
- } } }, [p("div", { class: `node-complex node-${r.node.type}`, attrs: { contenteditable: !1 } }, [p("span", { staticClass: "holder holder-left", attrs: { contenteditable: "true", tabindex: "-1" } }), p("div", { staticClass: "node-element", attrs: { contenteditable: "false" } }, [r.node.type === "image" ? p("img", { attrs: { src: r.node.content, width: "80", height: "80" } }) : r._e(), r.node.type === "audio" ? p("audio", { attrs: { src: r.node.content, controls: "", width: "300" } }) : r._e(), r.node.type === "video" ? p("video", { attrs: { src: r.node.content, controls: "", width: "300" } }) : r._e(), r.node.type === "file" ? p("div", { staticClass: "node-file-wrap", attrs: { contenteditable: !1 } }, [p("div", { staticClass: "node-file-left" }, [p("h6", [r._v(r._s(r.truncateString(r.node.name, 20)))]), p("p", [r._v(r._s(r.formatBytes(r.node.size)))])]), p("div", { staticClass: "node-file-right" }, [p("a", { attrs: { href: r.node.content, download: r.node.name, tabindex: "-1" } }, [r._v("下载")])])]) : r._e(), r.readOnly ? r._e() : p("div", { staticClass: "node-del", on: { click: function(M) {
332
+ } } }, [b("div", { class: `node-complex node-${r.node.type}`, attrs: { contenteditable: !1 } }, [b("span", { staticClass: "holder holder-left", attrs: { contenteditable: "true", tabindex: "-1" } }), b("div", { staticClass: "node-element", attrs: { contenteditable: "false" } }, [r.node.type === "image" ? b("img", { attrs: { src: r.node.content, width: "80", height: "80" } }) : r._e(), r.node.type === "audio" ? b("audio", { attrs: { src: r.node.content, controls: "", width: "300" } }) : r._e(), r.node.type === "video" ? b("video", { attrs: { src: r.node.content, controls: "", width: "300", poster: r.isMobile ? "data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=" : null } }) : r._e(), r.node.type === "file" ? b("div", { staticClass: "node-file-wrap", attrs: { contenteditable: !1 } }, [b("div", { staticClass: "node-file-left" }, [b("h6", [r._v(r._s(r.truncateString(r.node.name, 20)))]), b("p", [r._v(r._s(r.formatBytes(r.node.size)))])]), b("div", { staticClass: "node-file-right" }, [b("a", { attrs: { href: r.node.content, download: r.node.name, tabindex: "-1" } }, [r._v("下载")])])]) : r._e(), r.readOnly ? r._e() : b("div", { staticClass: "node-del", on: { click: function(M) {
329
333
  return M.stopPropagation(), r.remove.apply(null, arguments);
330
- } } })]), p("span", { staticClass: "holder holder-right", attrs: { contenteditable: "true", tabindex: "-1" } })])]) : p("div", { staticClass: "node-text", attrs: { contenteditable: !r.readOnly }, domProps: { innerHTML: r._s(r.readOnly ? r.formatReadOnly(r.node.text) : r.node.text) }, on: { compositionstart: function(M) {
334
+ } } })]), b("span", { staticClass: "holder holder-right", attrs: { contenteditable: "true", tabindex: "-1" } })])]) : b("div", { staticClass: "node-text", attrs: { contenteditable: !r.readOnly }, domProps: { innerHTML: r._s(r.readOnly ? r.formatReadOnly(r.node.text) : r.node.text) }, on: { compositionstart: function(M) {
331
335
  return M.stopPropagation(), r.handleCompositionStart.apply(null, arguments);
332
336
  }, compositionend: function(M) {
333
337
  return M.stopPropagation(), r.handleCompositionEnd.apply(null, arguments);
@@ -346,7 +350,7 @@ var j0 = function() {
346
350
  B0,
347
351
  !1,
348
352
  null,
349
- "6410090d",
353
+ "bd3dcd6b",
350
354
  null,
351
355
  null
352
356
  );
@@ -380,6 +384,10 @@ const F0 = {
380
384
  hash: {
381
385
  type: String,
382
386
  default: ""
387
+ },
388
+ isMobile: {
389
+ type: Boolean,
390
+ default: !1
383
391
  }
384
392
  },
385
393
  data: function() {
@@ -401,8 +409,8 @@ const F0 = {
401
409
  handleDragLeave: i0,
402
410
  handleDragStart(_, r) {
403
411
  _.currentTarget.classList.add("dragging"), _.dataTransfer.setData("dragNode", JSON.stringify(r)), St.on("dragEnd", () => {
404
- const p = this.nodes.filter((M) => M !== r);
405
- this.update(p);
412
+ const b = this.nodes.filter((M) => M !== r);
413
+ this.update(b);
406
414
  }), St.set("dragId", r.uuid);
407
415
  },
408
416
  handleDragEnd(_) {
@@ -410,12 +418,12 @@ const F0 = {
410
418
  },
411
419
  handleDrop(_, r) {
412
420
  _.stopPropagation();
413
- const p = _.dataTransfer.files;
414
- if (i0(), p.length)
415
- this.addFiles(p, r);
421
+ const b = _.dataTransfer.files;
422
+ if (i0(), b.length)
423
+ this.addFiles(b, r);
416
424
  else {
417
425
  let M = _.dataTransfer.getData("dragNode");
418
- const J = p0(_);
426
+ const J = M0(_);
419
427
  try {
420
428
  M = JSON.parse(M);
421
429
  } catch {
@@ -439,18 +447,18 @@ const F0 = {
439
447
  }
440
448
  },
441
449
  handlePaste(_, r) {
442
- const p = _.clipboardData.files;
443
- p.length != 0 && (this.addFiles(p, r), _.preventDefault());
450
+ const b = _.clipboardData.files;
451
+ b.length != 0 && (this.addFiles(b, r), _.preventDefault());
444
452
  },
445
453
  handleTab(_, r) {
446
454
  var Z;
447
455
  _.preventDefault();
448
- const p = [...this.nodes], M = p.findIndex((re) => re === r), J = kt();
456
+ const b = [...this.nodes], M = b.findIndex((re) => re === r), J = kt();
449
457
  if (_.shiftKey)
450
458
  this.$emit("transfer", r);
451
459
  else if (M > 0) {
452
460
  const re = this.nodes[M - 1];
453
- (Z = this.status[re.uuid]) != null && Z.collapsed && (this.status[re.uuid].collapsed = !1), re.children ? re.children.push(r) : re.children = [r], p.splice(M, 1), this.update(p);
461
+ (Z = this.status[re.uuid]) != null && Z.collapsed && (this.status[re.uuid].collapsed = !1), re.children ? re.children.push(r) : re.children = [r], b.splice(M, 1), this.update(b);
454
462
  } else
455
463
  _.target.focus();
456
464
  this.$nextTick(() => {
@@ -458,22 +466,22 @@ const F0 = {
458
466
  });
459
467
  },
460
468
  handleRemove(_) {
461
- const r = this.nodes.filter((p) => p.uuid !== _.uuid);
469
+ const r = this.nodes.filter((b) => b.uuid !== _.uuid);
462
470
  if (!this.allowEmpty && this.nodes.length === 1) {
463
- const p = {
471
+ const b = {
464
472
  text: "",
465
473
  uuid: Ct()
466
474
  };
467
- r.push(p), setTimeout(() => {
468
- this.toFocus(p);
475
+ r.push(b), setTimeout(() => {
476
+ this.toFocus(b);
469
477
  }, 200);
470
478
  }
471
479
  this.update(r);
472
480
  },
473
481
  // 节点跨父级移动
474
482
  handleTransfer(_, r) {
475
- const p = [...this.nodes], M = p.findIndex((Z) => Z === _), J = _.children.findIndex((Z) => Z === r);
476
- _.children.splice(J, 1), p.splice(M + 1, 0, r), this.update(p);
483
+ const b = [...this.nodes], M = b.findIndex((Z) => Z === _), J = _.children.findIndex((Z) => Z === r);
484
+ _.children.splice(J, 1), b.splice(M + 1, 0, r), this.update(b);
477
485
  },
478
486
  handleEnter(_) {
479
487
  this.enableDbEnter ? this.timeout ? (clearTimeout(this.timeout), this.timeout = null, this.handleDbEnter()) : this.timeout = setTimeout(() => {
@@ -484,12 +492,12 @@ const F0 = {
484
492
  this.$emit("dbEnter");
485
493
  },
486
494
  keyEnter(_) {
487
- const r = r0(_), p = this.nodes.findIndex((re) => re.uuid === _.uuid), M = kt(), J = [...this.nodes], Z = { text: "", uuid: Ct() };
495
+ const r = r0(_), b = this.nodes.findIndex((re) => re.uuid === _.uuid), M = kt(), J = [...this.nodes], Z = { text: "", uuid: Ct() };
488
496
  if (r)
489
- J.splice(p + 1, 0, Z);
497
+ J.splice(b + 1, 0, Z);
490
498
  else {
491
499
  let re = _.text.replace(/&nbsp;?/g, " ");
492
- _.text = re.slice(0, M), Z.text = re.slice(M, re.length), J.splice(p + 1, 0, Z);
500
+ _.text = re.slice(0, M), Z.text = re.slice(M, re.length), J.splice(b + 1, 0, Z);
493
501
  }
494
502
  this.update(J), this.$nextTick(() => {
495
503
  const re = Nt(Z);
@@ -499,24 +507,24 @@ const F0 = {
499
507
  // 聚焦上一节点
500
508
  toPrevFocus(_, r = !1) {
501
509
  var J;
502
- let p = kt();
510
+ let b = kt();
503
511
  const M = this.nodes.findIndex((Z) => Z === _);
504
512
  if (M === 0)
505
513
  this.$emit("focusPrev", r);
506
514
  else {
507
- const Z = this.nodes[M - 1], re = ((J = Z.children) == null ? void 0 : J.length) && !this.status[Z.uuid].collapsed, ie = Nt(this.nodes[M - 1], re), ye = r || p === 1 / 0;
515
+ const Z = this.nodes[M - 1], re = ((J = Z.children) == null ? void 0 : J.length) && !this.status[Z.uuid].collapsed, ie = Nt(this.nodes[M - 1], re), ye = r || b === 1 / 0;
508
516
  Rt(
509
517
  ie,
510
- ye ? ie.innerText.length : p,
518
+ ye ? ie.innerText.length : b,
511
519
  ye
512
520
  );
513
521
  }
514
522
  },
515
523
  // 聚焦下一节点
516
- toNextFocus(_, r = !1, p = !1) {
524
+ toNextFocus(_, r = !1, b = !1) {
517
525
  var Z;
518
526
  const M = kt(), J = this.nodes.findIndex((re) => re === _);
519
- if (p && ((Z = _.children) != null && Z.length) && !this.status[_.uuid].collapsed) {
527
+ if (b && ((Z = _.children) != null && Z.length) && !this.status[_.uuid].collapsed) {
520
528
  const re = Nt(_.children[0]);
521
529
  Rt(re, r ? 0 : M);
522
530
  } else if (J + 1 >= this.nodes.length)
@@ -528,9 +536,9 @@ const F0 = {
528
536
  },
529
537
  // 聚焦到指定节点
530
538
  toFocus(_, r = !1) {
531
- let p = kt();
539
+ let b = kt();
532
540
  const M = Nt(_);
533
- Rt(M, p, r);
541
+ Rt(M, b, r);
534
542
  },
535
543
  addFiles(_, r) {
536
544
  if (_) {
@@ -556,8 +564,8 @@ const F0 = {
556
564
  return _ && r && r.focus(), r;
557
565
  },
558
566
  // dfs查找并追加节点
559
- appendNode(_, r = !1, p = this.nodes) {
560
- const M = St.get("currentId"), J = [...p];
567
+ appendNode(_, r = !1, b = this.nodes) {
568
+ const M = St.get("currentId"), J = [...b];
561
569
  if (!r && (!M || !document.getElementById(M))) {
562
570
  J.push(_), this.update(J);
563
571
  return;
@@ -569,8 +577,8 @@ const F0 = {
569
577
  }), r || this.update(J), J;
570
578
  },
571
579
  // dfs查找并更新节点
572
- updateNode(_, r = !1, p = this.nodes) {
573
- const M = [...p], J = M.findIndex((Z) => Z.uuid === _.uuid);
580
+ updateNode(_, r = !1, b = this.nodes) {
581
+ const M = [...b], J = M.findIndex((Z) => Z.uuid === _.uuid);
574
582
  return J >= 0 ? M[J] = _ : M.forEach((Z) => {
575
583
  var re;
576
584
  (re = Z.children) != null && re.length && (Z.children = this.updateNode(_, !0, Z.children));
@@ -584,8 +592,8 @@ const F0 = {
584
592
  let _ = !1;
585
593
  this.nodes.forEach((r) => {
586
594
  if (r.uuid || (r.uuid = Ct(), _ = !0), r0(r) && !r.type) {
587
- const p = C0(r.text);
588
- p && (r.type = p.type, r.content = p.content), _ = !0;
595
+ const b = C0(r.text);
596
+ b && (r.type = b.type, r.content = b.content), _ = !0;
589
597
  }
590
598
  }), _ ? this.update() : this.ensureStatus(this.nodes);
591
599
  },
@@ -603,7 +611,7 @@ const F0 = {
603
611
  // 更新node节点
604
612
  // 用于Node组件触发change
605
613
  handleNodeChange(_) {
606
- const r = this.nodes.map((p) => p.uuid === _.uuid ? _ : p);
614
+ const r = this.nodes.map((b) => b.uuid === _.uuid ? _ : b);
607
615
  this.update(r);
608
616
  },
609
617
  update(_ = this.nodes) {
@@ -612,22 +620,22 @@ const F0 = {
612
620
  }
613
621
  };
614
622
  var U0 = function() {
615
- var r = this, p = r._self._c;
616
- return r.readOnly ? p("ul", { class: {
623
+ var r = this, b = r._self._c;
624
+ return r.readOnly ? b("ul", { class: {
617
625
  "node-ul": !0,
618
626
  readOnly: !0,
619
627
  sublevel: !0
620
628
  } }, r._l(r.filterNodes(r.nodes), function(M) {
621
- return p("li", { key: M.uuid, class: {
629
+ return b("li", { key: M.uuid, class: {
622
630
  "node-li": !0,
623
631
  collapsed: r.status[M.uuid] ? r.status[M.uuid].collapsed : !1,
624
632
  "has-child": !!(M.children || []).length
625
- }, attrs: { id: `${M.uuid}` } }, [p("Node", { attrs: { node: M, readOnly: "" }, on: { collapse: r.handleCollapse } }), (M.children || []).length ? p("tree-editor", { attrs: { nodes: M.children, sublevel: !0 } }) : r._e()], 1);
626
- }), 0) : p("ul", { class: {
633
+ }, attrs: { id: `${M.uuid}` } }, [b("Node", { attrs: { readOnly: "", node: M, isMobile: r.isMobile }, on: { collapse: r.handleCollapse } }), (M.children || []).length ? b("tree-editor", { attrs: { nodes: M.children, sublevel: !0, isMobile: r.isMobile } }) : r._e()], 1);
634
+ }), 0) : b("ul", { class: {
627
635
  "node-ul": !0,
628
636
  sublevel: !0
629
637
  } }, r._l(r.filterNodes(r.nodes), function(M) {
630
- return p("li", { key: M.uuid, ref: "elements", refInFor: !0, class: {
638
+ return b("li", { key: M.uuid, ref: "elements", refInFor: !0, class: {
631
639
  "node-li": !0,
632
640
  collapsed: r.status[M.uuid] ? r.status[M.uuid].collapsed : !1,
633
641
  "has-child": !!(M.children || []).length
@@ -643,19 +651,19 @@ var U0 = function() {
643
651
  return J.stopPropagation(), r.handleDragLeave(J, M);
644
652
  }, paste: function(J) {
645
653
  return J.stopPropagation(), J.preventDefault(), r.handlePaste(J, M);
646
- } } }, [p("Node", { attrs: { node: M }, on: { change: r.handleNodeChange, toPrevFocus: r.toPrevFocus, toNextFocus: r.toNextFocus, toFocus: r.toFocus, collapse: r.handleCollapse, enter: r.handleEnter, tab: r.handleTab, remove: r.handleRemove } }), (M.children || []).length ? p("tree-editor", { attrs: { nodes: M.children, enableDbEnter: r.enableDbEnter, hash: r.hash, allowEmpty: !0, sublevel: !0 }, on: { change: (J) => r.handleChangeChildren(M, J), focusPrev: (J) => r.toFocus(M, J), focusNext: (J) => r.toNextFocus(M, J), transfer: (J) => r.handleTransfer(M, J), fileUpload: (...J) => r.$emit("fileUpload", ...J), dbEnter: r.handleDbEnter } }) : r._e()], 1);
654
+ } } }, [b("Node", { attrs: { node: M, isMobile: r.isMobile }, on: { change: r.handleNodeChange, toPrevFocus: r.toPrevFocus, toNextFocus: r.toNextFocus, toFocus: r.toFocus, collapse: r.handleCollapse, enter: r.handleEnter, tab: r.handleTab, remove: r.handleRemove } }), (M.children || []).length ? b("tree-editor", { attrs: { nodes: M.children, enableDbEnter: r.enableDbEnter, hash: r.hash, isMobile: r.isMobile, allowEmpty: !0, sublevel: !0 }, on: { change: (J) => r.handleChangeChildren(M, J), focusPrev: (J) => r.toFocus(M, J), focusNext: (J) => r.toNextFocus(M, J), transfer: (J) => r.handleTransfer(M, J), fileUpload: (...J) => r.$emit("fileUpload", ...J), dbEnter: r.handleDbEnter } }) : r._e()], 1);
647
655
  }), 0);
648
- }, H0 = [], P0 = /* @__PURE__ */ zt(
656
+ }, P0 = [], H0 = /* @__PURE__ */ zt(
649
657
  F0,
650
658
  U0,
651
- H0,
659
+ P0,
652
660
  !1,
653
661
  null,
654
- "4dcf1f81",
662
+ "e0823576",
655
663
  null,
656
664
  null
657
665
  );
658
- const Q0 = P0.exports, Y0 = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNzA5ODY2MTA5MjI0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQ2NzciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTc0Mi44MzIxNzUgNDYxLjE1NTkwOWgxMjUuMDc2NDY1YTUwLjg0NDA5MSA1MC44NDQwOTEgMCAwIDEgMCAxMDEuNjg4MTgyaC0xMzcuNzg3NDg4bDI3LjQ1NTgwOSAyNy40NTU4MUE1MC44NDQwOTEgNTAuODQ0MDkxIDAgMSAxIDY4NS4zNzgzNTIgNjYwLjk3MzE4OGwtMTA3Ljc4OTQ3NC0xMDYuNzcyNTkyYTUwLjg0NDA5MSA1MC44NDQwOTEgMCAwIDEgMC03MS42OTAxNjlsMTA3Ljc4O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Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s0 = {}, ea = {
678
+ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s0 = {}, ea = {
671
679
  get exports() {
672
680
  return s0;
673
681
  },
@@ -677,9 +685,9 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
677
685
  };
678
686
  (function(_) {
679
687
  (function(r) {
680
- var p = typeof window == "object" && !!window.document, M = p ? window : Object;
681
- r(M, p), _.exports && (_.exports = M.Recorder);
682
- })(function(r, p) {
688
+ var b = typeof window == "object" && !!window.document, M = b ? window : Object;
689
+ r(M, b), _.exports && (_.exports = M.Recorder);
690
+ })(function(r, b) {
683
691
  var M = function() {
684
692
  }, J = function(e) {
685
693
  return typeof e == "number";
@@ -709,12 +717,12 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
709
717
  Z.BindDestroy = function(e, o) {
710
718
  ge[e] = o;
711
719
  }, Z.Support = function() {
712
- if (!p)
720
+ if (!b)
713
721
  return !1;
714
722
  var e = navigator.mediaDevices || {};
715
723
  return e[Re] || (e = navigator, e[Re] || (e[Re] = e.webkitGetUserMedia || e.mozGetUserMedia || e.msGetUserMedia)), !(!e[Re] || (Z.Scope = e, !Z.GetContext()));
716
724
  }, Z.GetContext = function(e) {
717
- if (!p)
725
+ if (!b)
718
726
  return null;
719
727
  var o = window.AudioContext;
720
728
  if (o || (o = window.webkitAudioContext), !o)
@@ -755,39 +763,39 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
755
763
  var ze = function(e, o) {
756
764
  var h = e.BufferSize || Z.BufferSize, m = e.Stream, S = m._RC || m._c || Z.GetContext(!0);
757
765
  m._c = S;
758
- var Y = function(H) {
766
+ var Y = function(P) {
759
767
  var T = m._m = S.createMediaStreamSource(m), oe = S.destination, g = "createMediaStreamDestination";
760
- S[g] && (oe = m._d = S[g]()), T.connect(H), H.connect(oe);
761
- }, D, s, q, te = "", me = m._call, Me = function(H) {
768
+ S[g] && (oe = m._d = S[g]()), T.connect(P), P.connect(oe);
769
+ }, D, s, q, te = "", me = m._call, be = function(P) {
762
770
  for (var T in me) {
763
- for (var oe = H.length, g = new Int16Array(oe), z = 0, ae = 0; ae < oe; ae++) {
764
- var j = Math.max(-1, Math.min(1, H[ae]));
771
+ for (var oe = P.length, g = new Int16Array(oe), z = 0, ae = 0; ae < oe; ae++) {
772
+ var j = Math.max(-1, Math.min(1, P[ae]));
765
773
  j = j < 0 ? j * 32768 : j * 32767, g[ae] = j, z += Math.abs(j);
766
774
  }
767
775
  for (var K in me)
768
776
  me[K](g, z);
769
777
  return;
770
778
  }
771
- }, ne = "ScriptProcessor", ce = "audioWorklet", pe = ye + " " + ce, se = "RecProc", G = "MediaRecorder", ve = G + ".WebM.PCM", we = S.createScriptProcessor || S.createJavaScriptNode, U = De("ZGlf::。由于{1}内部1秒375次回调,在移动端可能会有性能问题导致回调丢失录音变短,PC端无影响,暂不建议开启{1}。", 0, ce), ee = function() {
779
+ }, ne = "ScriptProcessor", ce = "audioWorklet", Me = ye + " " + ce, se = "RecProc", G = "MediaRecorder", ve = G + ".WebM.PCM", we = S.createScriptProcessor || S.createJavaScriptNode, U = De("ZGlf::。由于{1}内部1秒375次回调,在移动端可能会有性能问题导致回调丢失录音变短,PC端无影响,暂不建议开启{1}。", 0, ce), ee = function() {
772
780
  s = m.isWorklet = !1, $e(m), Fe(De("7TU0::Connect采用老的{1},", 0, ne) + ft.get(
773
781
  Z[de] ? De("JwCL::但已设置{1}尝试启用{2}", 2) : De("VGjB::可设置{1}尝试启用{2}", 2),
774
782
  [ye + "." + de + "=true", ce]
775
783
  ) + te + U, 3);
776
- var H = m._p = we.call(S, h, 1, 1);
777
- Y(H), H.onaudioprocess = function(T) {
784
+ var P = m._p = we.call(S, h, 1, 1);
785
+ Y(P), P.onaudioprocess = function(T) {
778
786
  var oe = T.inputBuffer.getChannelData(0);
779
- Me(oe);
787
+ be(oe);
780
788
  };
781
789
  }, c = function() {
782
790
  D = m.isWebM = !1, Ke(m), s = m.isWorklet = !we || Z[de];
783
- var H = window.AudioWorkletNode;
784
- if (!(s && S[ce] && H)) {
791
+ var P = window.AudioWorkletNode;
792
+ if (!(s && S[ce] && P)) {
785
793
  ee();
786
794
  return;
787
795
  }
788
796
  var T = function() {
789
797
  var ae = function(K) {
790
- return K.toString().replace(/^function|DEL_/g, "").replace(/\$RA/g, pe);
798
+ return K.toString().replace(/^function|DEL_/g, "").replace(/\$RA/g, Me);
791
799
  }, j = "class " + se + " extends AudioWorkletProcessor{";
792
800
  return j += "constructor " + ae(function(K) {
793
801
  DEL_super(K);
@@ -808,7 +816,7 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
808
816
  E.pos = l;
809
817
  }
810
818
  return !E.kill;
811
- }), j += '}try{registerProcessor("' + se + '", ' + se + ')}catch(e){$C.error("' + pe + ' Reg Error",e)}', j = j.replace(/\$C\./g, "console."), "data:text/javascript;base64," + btoa(unescape(encodeURIComponent(j)));
819
+ }), j += '}try{registerProcessor("' + se + '", ' + se + ')}catch(e){$C.error("' + Me + ' Reg Error",e)}', j = j.replace(/\$C\./g, "console."), "data:text/javascript;base64," + btoa(unescape(encodeURIComponent(j)));
812
820
  }, oe = function() {
813
821
  return s && m._na;
814
822
  }, g = m._na = function() {
@@ -817,11 +825,11 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
817
825
  }, 500));
818
826
  }, z = function() {
819
827
  if (oe()) {
820
- var ae = m._n = new H(S, se, {
828
+ var ae = m._n = new P(S, se, {
821
829
  processorOptions: { bufferSize: h }
822
830
  });
823
831
  Y(ae), ae.port.onmessage = function(j) {
824
- q && (clearTimeout(q), q = ""), oe() ? Me(j.data.val) : s || Fe(De("XUap::{1}多余回调", 0, ce), 3);
832
+ q && (clearTimeout(q), q = ""), oe() ? be(j.data.val) : s || Fe(De("XUap::{1}多余回调", 0, ce), 3);
825
833
  }, Fe(De("yOta::Connect采用{1},设置{2}可恢复老式{3}", 0, ce, ye + "." + de + "=false", ne) + te + U, 3);
826
834
  }
827
835
  };
@@ -840,9 +848,9 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
840
848
  }
841
849
  });
842
850
  }, N = function() {
843
- var H = window[G], T = "ondataavailable", oe = "audio/webm; codecs=pcm";
851
+ var P = window[G], T = "ondataavailable", oe = "audio/webm; codecs=pcm";
844
852
  D = m.isWebM = Z[Ye];
845
- var g = H && T in H.prototype && H.isTypeSupported(oe);
853
+ var g = P && T in P.prototype && P.isTypeSupported(oe);
846
854
  if (te = g ? "" : De("VwPd::(此浏览器不支持{1})", 0, ve), !o || !D || !g) {
847
855
  c();
848
856
  return;
@@ -855,19 +863,19 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
855
863
  z() && (Fe(De("vHnb::{1}未返回任何音频,降级使用{2}", 0, G, ce), 3), c());
856
864
  }, 500));
857
865
  };
858
- var ae = Object.assign({ mimeType: oe }, Z.ConnectWebMOptions), j = m._r = new H(m, ae), K = m._rd = { sampleRate: S[Oe] };
866
+ var ae = Object.assign({ mimeType: oe }, Z.ConnectWebMOptions), j = m._r = new P(m, ae), K = m._rd = { sampleRate: S[Oe] };
859
867
  j[T] = function(k) {
860
868
  var fe = new FileReader();
861
869
  fe.onloadend = function() {
862
870
  if (z()) {
863
- var E = pt(new Uint8Array(fe.result), K);
871
+ var E = Mt(new Uint8Array(fe.result), K);
864
872
  if (!E)
865
873
  return;
866
874
  if (E == -1) {
867
875
  c();
868
876
  return;
869
877
  }
870
- q && (clearTimeout(q), q = ""), Me(E);
878
+ q && (clearTimeout(q), q = ""), be(E);
871
879
  } else
872
880
  D || Fe(De("O9P7::{1}多余回调", 0, G), 3);
873
881
  }, fe.readAsArrayBuffer(k.data);
@@ -900,57 +908,57 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
900
908
  q = { fn: te ? Z.IIRFilter(!0, o, te) : 0 };
901
909
  }
902
910
  q.sr = o;
903
- var me = q.fn, Me = m.frameNext || [];
911
+ var me = q.fn, be = m.frameNext || [];
904
912
  S || (S = {});
905
913
  var ne = S.frameSize || 1;
906
914
  S.frameType && (ne = S.frameType == "mp3" ? 1152 : 1);
907
915
  var ce = e.length;
908
916
  D > ce + 1 && Fe(De("tlbC::{1}似乎传入了未重置chunk {2}", 0, Y, D + ">" + ce), 3);
909
- for (var pe = 0, se = D; se < ce; se++)
910
- pe += e[se].length;
911
- pe = Math.max(0, pe - Math.floor(s));
917
+ for (var Me = 0, se = D; se < ce; se++)
918
+ Me += e[se].length;
919
+ Me = Math.max(0, Me - Math.floor(s));
912
920
  var G = o / h;
913
- G > 1 ? pe = Math.floor(pe / G) : (G = 1, h = o), pe += Me.length;
914
- for (var ve = new Int16Array(pe), we = 0, se = 0; se < Me.length; se++)
915
- ve[we] = Me[se], we++;
921
+ G > 1 ? Me = Math.floor(Me / G) : (G = 1, h = o), Me += be.length;
922
+ for (var ve = new Int16Array(Me), we = 0, se = 0; se < be.length; se++)
923
+ ve[we] = be[se], we++;
916
924
  for (; D < ce; D++) {
917
- for (var U = e[D], se = s, ee = U.length, c = me && me.Embed, N = 0, H = 0, T = 0, oe = 0, g = 0, z = 0; g < ee; g++, z++) {
918
- if (z < ee && (c ? (T = U[z], oe = c.b0 * T + c.b1 * c.x1 + c.b0 * c.x2 - c.a1 * c.y1 - c.a2 * c.y2, c.x2 = c.x1, c.x1 = T, c.y2 = c.y1, c.y1 = oe) : oe = me ? me(U[z]) : U[z]), N = H, H = oe, z == 0) {
925
+ for (var U = e[D], se = s, ee = U.length, c = me && me.Embed, N = 0, P = 0, T = 0, oe = 0, g = 0, z = 0; g < ee; g++, z++) {
926
+ if (z < ee && (c ? (T = U[z], oe = c.b0 * T + c.b1 * c.x1 + c.b0 * c.x2 - c.a1 * c.y1 - c.a2 * c.y2, c.x2 = c.x1, c.x1 = T, c.y2 = c.y1, c.y1 = oe) : oe = me ? me(U[z]) : U[z]), N = P, P = oe, z == 0) {
919
927
  g--;
920
928
  continue;
921
929
  }
922
930
  var ae = Math.floor(se);
923
931
  if (g == ae) {
924
- var j = Math.ceil(se), K = se - ae, k = N, fe = j < ee ? H : k, E = k + (fe - k) * K;
932
+ var j = Math.ceil(se), K = se - ae, k = N, fe = j < ee ? P : k, E = k + (fe - k) * K;
925
933
  E > 32767 ? E = 32767 : E < -32768 && (E = -32768), ve[we] = E, we++, se += G;
926
934
  }
927
935
  }
928
936
  s = Math.max(0, se - ee);
929
937
  }
930
- Me = null;
938
+ be = null;
931
939
  var B = ve.length % ne;
932
940
  if (B > 0) {
933
941
  var t = (ve.length - B) * 2;
934
- Me = new Int16Array(ve.buffer.slice(t)), ve = new Int16Array(ve.buffer.slice(0, t));
942
+ be = new Int16Array(ve.buffer.slice(t)), ve = new Int16Array(ve.buffer.slice(0, t));
935
943
  }
936
944
  return {
937
945
  index: D,
938
946
  offset: s,
939
947
  filter: q,
940
- frameNext: Me,
948
+ frameNext: be,
941
949
  sampleRate: h,
942
950
  data: ve
943
951
  };
944
952
  }, Z.IIRFilter = function(e, o, h) {
945
953
  var m = 2 * Math.PI * h / o, S = Math.sin(m), Y = Math.cos(m), D = S / 2, s = 1 + D, q = -2 * Y / s, te = (1 - D) / s;
946
954
  if (e)
947
- var me = (1 - Y) / 2 / s, Me = (1 - Y) / s;
955
+ var me = (1 - Y) / 2 / s, be = (1 - Y) / s;
948
956
  else
949
- var me = (1 + Y) / 2 / s, Me = -(1 + Y) / s;
950
- var ne = 0, ce = 0, pe = 0, se = 0, G = 0, ve = function(we) {
951
- return pe = me * we + Me * ne + me * ce - q * se - te * G, ce = ne, ne = we, G = se, se = pe, pe;
957
+ var me = (1 + Y) / 2 / s, be = -(1 + Y) / s;
958
+ var ne = 0, ce = 0, Me = 0, se = 0, G = 0, ve = function(we) {
959
+ return Me = me * we + be * ne + me * ce - q * se - te * G, ce = ne, ne = we, G = se, se = Me, Me;
952
960
  };
953
- return ve.Embed = { x1: 0, x2: 0, y1: 0, y2: 0, b0: me, b1: Me, a1: q, a2: te }, ve;
961
+ return ve.Embed = { x1: 0, x2: 0, y1: 0, y2: 0, b0: me, b1: be, a1: q, a2: te }, ve;
954
962
  }, Z.PowerLevel = function(e, o) {
955
963
  var h = e / o || 0, m;
956
964
  return h < 1251 ? m = Math.round(h / 1250 * 10) : m = Math.round(Math.min(100, Math.max(0, (1 + Math.log(h / 1e4) / Math.log(10)) * 100))), m;
@@ -1029,13 +1037,13 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1029
1037
  h.CLog("open ok, id:" + h.id + " stream:" + h._streamTag), e(), h._SO = 0;
1030
1038
  }, q = S.Sync, te = ++q.O, me = q.C;
1031
1039
  h._O = h._O_ = te, h._SO = h._S;
1032
- var Me = function() {
1040
+ var be = function() {
1033
1041
  if (me != q.C || !h._O) {
1034
1042
  var c = De("dFm8::open被取消");
1035
1043
  return te == q.O ? h.close() : c = De("VtJO::open被中断"), D(c), !0;
1036
1044
  }
1037
1045
  };
1038
- if (!p) {
1046
+ if (!b) {
1039
1047
  D(De.G("NonBrowser-1", ["open"]) + De("EMJq::,可尝试使用RecordApp解决方案") + "(" + ie + "/tree/master/app-support-sample)");
1040
1048
  return;
1041
1049
  }
@@ -1061,7 +1069,7 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1061
1069
  s();
1062
1070
  return;
1063
1071
  }
1064
- var pe = function(c, N) {
1072
+ var Me = function(c, N) {
1065
1073
  try {
1066
1074
  window.top.a;
1067
1075
  } catch {
@@ -1075,7 +1083,7 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1075
1083
  return;
1076
1084
  }
1077
1085
  if (!Z.Support()) {
1078
- pe("", De("COxc::此浏览器不支持录音"));
1086
+ Me("", De("COxc::此浏览器不支持录音"));
1079
1087
  return;
1080
1088
  }
1081
1089
  var se = m.runningContext;
@@ -1084,11 +1092,11 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1084
1092
  setTimeout(function() {
1085
1093
  c._call = {};
1086
1094
  var N = Z.Stream;
1087
- N && (at(), c._call = N._call), Z.Stream = c, c._c = se, c._RC = m.runningContext, !Me() && (Z.IsOpen() ? (N && h.CLog(De("upb8::发现同时多次调用open"), 1), ze(S, 1), s()) : D(De("Q1GA::录音功能无效:无音频流")));
1095
+ N && (at(), c._call = N._call), Z.Stream = c, c._c = se, c._RC = m.runningContext, !be() && (Z.IsOpen() ? (N && h.CLog(De("upb8::发现同时多次调用open"), 1), ze(S, 1), s()) : D(De("Q1GA::录音功能无效:无音频流")));
1088
1096
  }, 100);
1089
1097
  }, ve = function(c) {
1090
1098
  var N = c.name || c.message || c.code + ":" + c;
1091
- h.CLog(De("xEQR::请求录音权限错误"), 1, c), pe(N, De("bDOG::无法录音:") + N);
1099
+ h.CLog(De("xEQR::请求录音权限错误"), 1, c), Me(N, De("bDOG::无法录音:") + N);
1092
1100
  }, we = m.audioTrackSet || {};
1093
1101
  we[Oe] = se[Oe];
1094
1102
  var U = { audio: we };
@@ -1144,24 +1152,24 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1144
1152
  }
1145
1153
  var Y = h[ke], D = e.length, s = Z.PowerLevel(o, D), q = h.buffers, te = q.length;
1146
1154
  q.push(e);
1147
- var me = q, Me = te, ne = Date.now(), ce = Math.round(D / Y * 1e3);
1155
+ var me = q, be = te, ne = Date.now(), ce = Math.round(D / Y * 1e3);
1148
1156
  h.envInLast = ne, h.buffers.length == 1 && (h.envInFirst = ne - ce);
1149
- var pe = h.envInFixTs;
1150
- pe.splice(0, 0, { t: ne, d: ce });
1151
- for (var se = ne, G = 0, ve = 0; ve < pe.length; ve++) {
1152
- var we = pe[ve];
1157
+ var Me = h.envInFixTs;
1158
+ Me.splice(0, 0, { t: ne, d: ce });
1159
+ for (var se = ne, G = 0, ve = 0; ve < Me.length; ve++) {
1160
+ var we = Me[ve];
1153
1161
  if (ne - we.t > 3e3) {
1154
- pe.length = ve;
1162
+ Me.length = ve;
1155
1163
  break;
1156
1164
  }
1157
1165
  se = we.t, G += we.d;
1158
1166
  }
1159
- var U = pe[1], ee = ne - se, c = ee - G;
1160
- if (c > ee / 3 && (U && ee > 1e3 || pe.length >= 6)) {
1167
+ var U = Me[1], ee = ne - se, c = ee - G;
1168
+ if (c > ee / 3 && (U && ee > 1e3 || Me.length >= 6)) {
1161
1169
  var N = ne - U.t - ce;
1162
1170
  if (N > ce / 5) {
1163
- var H = !m.disableEnvInFix;
1164
- if (h.CLog("[" + ne + "]" + ft.get(De(H ? "4Kfd::补偿{1}ms" : "bM5i::未补偿{1}ms", 1), [N]), 3), h.envInFix += N, H) {
1171
+ var P = !m.disableEnvInFix;
1172
+ if (h.CLog("[" + ne + "]" + ft.get(De(P ? "4Kfd::补偿{1}ms" : "bM5i::未补偿{1}ms", 1), [N]), 3), h.envInFix += N, P) {
1165
1173
  var T = new Int16Array(N * Y / 1e3);
1166
1174
  D += T.length, q.push(T);
1167
1175
  }
@@ -1178,7 +1186,7 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1178
1186
  f == null ? F = 1 : (A += f.length, S && f.length && h[m.type + "_encode"](S, f));
1179
1187
  }
1180
1188
  if (F && S) {
1181
- var y = Me;
1189
+ var y = be;
1182
1190
  for (me[0] && (y = 0); y < k; y++)
1183
1191
  me[y] = null;
1184
1192
  }
@@ -1244,7 +1252,7 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1244
1252
  }, te = function(we) {
1245
1253
  m.CLog(De("u8JG::结束录音失败:") + we, 1), o && o(we), q();
1246
1254
  }, me = function(we, U, ee) {
1247
- var c = "blob", N = "arraybuffer", H = "dataType", T = "DefaultDataType", oe = m[H] || Z[T] || c, g = H + "=" + oe, z = we instanceof ArrayBuffer, ae = 0, j = z ? we.byteLength : we.size;
1255
+ var c = "blob", N = "arraybuffer", P = "dataType", T = "DefaultDataType", oe = m[P] || Z[T] || c, g = P + "=" + oe, z = we instanceof ArrayBuffer, ae = 0, j = z ? we.byteLength : we.size;
1248
1256
  if (oe == N ? z || (ae = 1) : oe == c ? typeof Blob != "function" ? ae = De.G("NonBrowser-1", [g]) + De("1skY::,请设置{1}", 0, ye + "." + T + '="' + N + '"') : (z && (we = new Blob([we], { type: U })), we instanceof Blob || (ae = 1), U = we.type || U) : ae = De.G("NotSupport-1", [g]), m.CLog(De("Wv7l::结束录音 编码花{1}ms 音频时长{2}ms 文件大小{3}b", 0, Date.now() - Y, ee, j) + " " + g + "," + U), ae) {
1249
1257
  te(ae != 1 ? ae : De("Vkbd::{1}编码器返回的不是{2}", 0, S.type, oe) + ", " + g);
1250
1258
  return;
@@ -1258,9 +1266,9 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1258
1266
  e && e(we, ee, U), q();
1259
1267
  };
1260
1268
  if (!m.isMock) {
1261
- var Me = m.state == 3;
1262
- if (!m.state || Me) {
1263
- te(De("wf9t::未开始录音") + (Me ? De("Dl2c::,开始录音前无用户交互导致AudioContext未运行") : ""));
1269
+ var be = m.state == 3;
1270
+ if (!m.state || be) {
1271
+ te(De("wf9t::未开始录音") + (be ? De("Dl2c::,开始录音前无用户交互导致AudioContext未运行") : ""));
1264
1272
  return;
1265
1273
  }
1266
1274
  }
@@ -1281,10 +1289,10 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1281
1289
  return;
1282
1290
  }
1283
1291
  }
1284
- var pe = m.engineCtx;
1285
- if (m[S.type + "_complete"] && pe) {
1286
- var ve = Math.round(pe.pcmSize / S[Oe] * 1e3);
1287
- Y = Date.now(), m[S.type + "_complete"](pe, function(U, ee) {
1292
+ var Me = m.engineCtx;
1293
+ if (m[S.type + "_complete"] && Me) {
1294
+ var ve = Math.round(Me.pcmSize / S[Oe] * 1e3);
1295
+ Y = Date.now(), m[S.type + "_complete"](Me, function(U, ee) {
1288
1296
  me(U, ee, ve);
1289
1297
  }, te);
1290
1298
  return;
@@ -1305,42 +1313,42 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1305
1313
  });
1306
1314
  }
1307
1315
  };
1308
- var pt = function(e, o) {
1316
+ var Mt = function(e, o) {
1309
1317
  o.pos || (o.pos = [0], o.tracks = {}, o.bytes = []);
1310
1318
  var h = o.tracks, m = [o.pos[0]], S = function() {
1311
1319
  o.pos[0] = m[0];
1312
1320
  }, Y = o.bytes.length, D = new Uint8Array(Y + e.length);
1313
1321
  if (D.set(o.bytes), D.set(e, Y), o.bytes = D, !o._ht) {
1314
- if (_t(D, m), bt(D, m), !rt(_t(D, m), [24, 83, 128, 103]))
1322
+ if (_t(D, m), pt(D, m), !rt(_t(D, m), [24, 83, 128, 103]))
1315
1323
  return;
1316
1324
  for (_t(D, m); m[0] < D.length; ) {
1317
- var s = _t(D, m), q = bt(D, m), te = [0], me = 0;
1325
+ var s = _t(D, m), q = pt(D, m), te = [0], me = 0;
1318
1326
  if (!q)
1319
1327
  return;
1320
1328
  if (rt(s, [22, 84, 174, 107])) {
1321
1329
  for (; te[0] < q.length; ) {
1322
- var Me = _t(q, te), ne = bt(q, te), ce = [0], pe = { channels: 0, sampleRate: 0 };
1323
- if (rt(Me, [174]))
1330
+ var be = _t(q, te), ne = pt(q, te), ce = [0], Me = { channels: 0, sampleRate: 0 };
1331
+ if (rt(be, [174]))
1324
1332
  for (; ce[0] < ne.length; ) {
1325
- var se = _t(ne, ce), G = bt(ne, ce), ve = [0];
1333
+ var se = _t(ne, ce), G = pt(ne, ce), ve = [0];
1326
1334
  if (rt(se, [215])) {
1327
1335
  var we = qe(G);
1328
- pe.number = we, h[we] = pe;
1336
+ Me.number = we, h[we] = Me;
1329
1337
  } else if (rt(se, [131])) {
1330
1338
  var we = qe(G);
1331
- we == 1 ? pe.type = "video" : we == 2 ? (pe.type = "audio", me || (o.track0 = pe), pe.idx = me++) : pe.type = "Type-" + we;
1339
+ we == 1 ? Me.type = "video" : we == 2 ? (Me.type = "audio", me || (o.track0 = Me), Me.idx = me++) : Me.type = "Type-" + we;
1332
1340
  } else if (rt(se, [134])) {
1333
1341
  for (var U = "", ee = 0; ee < G.length; ee++)
1334
1342
  U += String.fromCharCode(G[ee]);
1335
- pe.codec = U;
1343
+ Me.codec = U;
1336
1344
  } else if (rt(se, [225]))
1337
1345
  for (; ve[0] < G.length; ) {
1338
- var c = _t(G, ve), N = bt(G, ve);
1346
+ var c = _t(G, ve), N = pt(G, ve);
1339
1347
  if (rt(c, [181])) {
1340
- var we = 0, H = new Uint8Array(N.reverse()).buffer;
1341
- N.length == 4 ? we = new Float32Array(H)[0] : N.length == 8 ? we = new Float64Array(H)[0] : Fe("WebM Track !Float", 1, N), pe[Oe] = Math.round(we);
1348
+ var we = 0, P = new Uint8Array(N.reverse()).buffer;
1349
+ N.length == 4 ? we = new Float32Array(P)[0] : N.length == 8 ? we = new Float64Array(P)[0] : Fe("WebM Track !Float", 1, N), Me[Oe] = Math.round(we);
1342
1350
  } else
1343
- rt(c, [98, 100]) ? pe.bitDepth = qe(N) : rt(c, [159]) && (pe.channels = qe(N));
1351
+ rt(c, [98, 100]) ? Me.bitDepth = qe(N) : rt(c, [159]) && (Me.channels = qe(N));
1344
1352
  }
1345
1353
  }
1346
1354
  }
@@ -1354,14 +1362,14 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1354
1362
  if (T.bitDepth == 16 && /FLOAT/i.test(T.codec) && (T.bitDepth = 32, Fe("WebM 16->32 bit", 3)), T[Oe] != o[Oe] || T.bitDepth != 32 || T.channels < 1 || !/(\b|_)PCM\b/i.test(T.codec))
1355
1363
  return o.bytes = [], o.bad || Fe("WebM Track Unexpected", 3, o), o.bad = 1, -1;
1356
1364
  for (var oe = [], g = 0; m[0] < D.length; ) {
1357
- var Me = _t(D, m), ne = bt(D, m);
1365
+ var be = _t(D, m), ne = pt(D, m);
1358
1366
  if (!ne)
1359
1367
  break;
1360
- if (rt(Me, [163])) {
1361
- var z = ne[0] & 15, pe = h[z];
1362
- if (!pe)
1368
+ if (rt(be, [163])) {
1369
+ var z = ne[0] & 15, Me = h[z];
1370
+ if (!Me)
1363
1371
  Fe("WebM !Track" + z, 1, h);
1364
- else if (pe.idx === 0) {
1372
+ else if (Me.idx === 0) {
1365
1373
  for (var ae = new Uint8Array(ne.length - 4), ee = 4; ee < ne.length; ee++)
1366
1374
  ae[ee - 4] = ne[ee];
1367
1375
  oe.push(ae), g += ae.length;
@@ -1374,13 +1382,13 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1374
1382
  j.set(D.subarray(o.pos[0])), o.bytes = j, o.pos[0] = 0;
1375
1383
  for (var ae = new Uint8Array(g), ee = 0, K = 0; ee < oe.length; ee++)
1376
1384
  ae.set(oe[ee], K), K += oe[ee].length;
1377
- var H = new Float32Array(ae.buffer);
1385
+ var P = new Float32Array(ae.buffer);
1378
1386
  if (T.channels > 1) {
1379
- for (var k = [], ee = 0; ee < H.length; )
1380
- k.push(H[ee]), ee += T.channels;
1381
- H = new Float32Array(k);
1387
+ for (var k = [], ee = 0; ee < P.length; )
1388
+ k.push(P[ee]), ee += T.channels;
1389
+ P = new Float32Array(k);
1382
1390
  }
1383
- return H;
1391
+ return P;
1384
1392
  }
1385
1393
  }
1386
1394
  }, rt = function(e, o) {
@@ -1411,7 +1419,7 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1411
1419
  }
1412
1420
  }
1413
1421
  }
1414
- }, bt = function(e, o) {
1422
+ }, pt = function(e, o) {
1415
1423
  var h = _t(e, o, 1);
1416
1424
  if (h) {
1417
1425
  var m = qe(h), S = o[0], Y = [];
@@ -1491,7 +1499,7 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1491
1499
  }, De = ft.$T;
1492
1500
  De.G = ft.get, De("NonBrowser-1::非浏览器环境,不支持{1}", 1), De("IllegalArgs-1::参数错误:{1}", 1), De("NeedImport-2::调用{1}需要先导入{2}", 2), De("NotSupport-1::不支持:{1}", 1), Z.TrafficImgUrl = "//ia.51.la/go1?id=20469973&pvFlag=1";
1493
1501
  var R = Z.Traffic = function(e) {
1494
- if (p) {
1502
+ if (b) {
1495
1503
  e = e ? "/" + ye + "/Report/" + e : "";
1496
1504
  var o = Z.TrafficImgUrl;
1497
1505
  if (o) {
@@ -1509,28 +1517,28 @@ var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1509
1517
  })(ea);
1510
1518
  const a0 = s0;
1511
1519
  (function(_) {
1512
- var r = typeof window == "object" && !!window.document, p = r ? window : Object, M = p.Recorder, J = M.i18n;
1520
+ var r = typeof window == "object" && !!window.document, b = r ? window : Object, M = b.Recorder, J = M.i18n;
1513
1521
  _(M, J, J.$T, r);
1514
- })(function(_, r, p, M) {
1522
+ })(function(_, r, b, M) {
1515
1523
  var J = "48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000", Z = "8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, 320";
1516
1524
  _.prototype.enc_mp3 = {
1517
1525
  stable: !0,
1518
1526
  takeEC: "full",
1519
1527
  getTestMsg: function() {
1520
- return p("Zm7L::采样率范围:{1};比特率范围:{2}(不同比特率支持的采样率范围不同,小于32kbps时采样率需小于32000)", 0, J, Z);
1528
+ return b("Zm7L::采样率范围:{1};比特率范围:{2}(不同比特率支持的采样率范围不同,小于32kbps时采样率需小于32000)", 0, J, Z);
1521
1529
  }
1522
1530
  };
1523
1531
  var re = function(ue) {
1524
1532
  var ge = ue.bitRate, Ce = ue.sampleRate, Ye = Ce;
1525
- if ((" " + Z + ",").indexOf(" " + ge + ",") == -1 && _.CLog(p("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + ge, Z), 3), (" " + J + ",").indexOf(" " + Ce + ",") == -1) {
1533
+ if ((" " + Z + ",").indexOf(" " + ge + ",") == -1 && _.CLog(b("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + ge, Z), 3), (" " + J + ",").indexOf(" " + Ce + ",") == -1) {
1526
1534
  for (var de = J.split(", "), ze = [], Be = 0; Be < de.length; Be++)
1527
1535
  ze.push({ v: +de[Be], s: Math.abs(de[Be] - Ce) });
1528
1536
  ze.sort(function($e, Ke) {
1529
1537
  return $e.s - Ke.s;
1530
- }), Ye = ze[0].v, ue.sampleRate = Ye, _.CLog(p("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Ye, Ce, J), 3);
1538
+ }), Ye = ze[0].v, ue.sampleRate = Ye, _.CLog(b("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Ye, Ce, J), 3);
1531
1539
  }
1532
1540
  }, ie = function() {
1533
- return p.G("NeedImport-2", ["mp3.js", "src/engine/mp3-engine.js"]);
1541
+ return b.G("NeedImport-2", ["mp3.js", "src/engine/mp3-engine.js"]);
1534
1542
  }, ye = M && typeof Worker == "function";
1535
1543
  _.prototype.mp3 = function(ue, ge, Ce) {
1536
1544
  var Ye = this, de = Ye.set, ze = ue.length;
@@ -1562,8 +1570,8 @@ const a0 = s0;
1562
1570
  var V = Le.length;
1563
1571
  if (V > 0) {
1564
1572
  if (Je + V > at.length) {
1565
- var pt = new Int8Array(at.length + Math.max(5e5, V));
1566
- pt.set(at.subarray(0, Je)), at = pt;
1573
+ var Mt = new Int8Array(at.length + Math.max(5e5, V));
1574
+ Mt.set(at.subarray(0, Je)), at = Mt;
1567
1575
  }
1568
1576
  at.set(Le, Je), Je += V;
1569
1577
  }
@@ -1581,13 +1589,13 @@ const a0 = s0;
1581
1589
  Re && (_.CLog("mp3Worker Destroy"), Re.terminate(), Re = null);
1582
1590
  }), _.prototype.mp3_envCheck = function(ue, ge) {
1583
1591
  var Ce = "";
1584
- return ge.takeoffEncodeChunk && (Oe() || (Ce = p("yhUs::当前浏览器版本太低,无法实时处理"))), !Ce && !_.lamejs && (Ce = ie()), Ce;
1592
+ return ge.takeoffEncodeChunk && (Oe() || (Ce = b("yhUs::当前浏览器版本太低,无法实时处理"))), !Ce && !_.lamejs && (Ce = ie()), Ce;
1585
1593
  }, _.prototype.mp3_start = function(ue) {
1586
1594
  return Oe(ue);
1587
1595
  };
1588
1596
  var ke = { id: 0 }, Oe = function(ue, ge) {
1589
1597
  var Ce = function(Xe) {
1590
- var Le = Xe.data, V = ze.wkScope.wk_ctxs, pt = ze.wkScope.wk_lame, rt = ze.wkScope.wk_mp3TrimFix, qe = V[Le.id];
1598
+ var Le = Xe.data, V = ze.wkScope.wk_ctxs, Mt = ze.wkScope.wk_lame, rt = ze.wkScope.wk_mp3TrimFix, qe = V[Le.id];
1591
1599
  if (Le.action == "init")
1592
1600
  V[Le.id] = {
1593
1601
  sampleRate: Le.sampleRate,
@@ -1596,7 +1604,7 @@ const a0 = s0;
1596
1604
  pcmSize: 0,
1597
1605
  memory: new Int8Array(5e5),
1598
1606
  mOffset: 0,
1599
- encObj: new pt.Mp3Encoder(1, Le.sampleRate, Le.bitRate)
1607
+ encObj: new Mt.Mp3Encoder(1, Le.sampleRate, Le.bitRate)
1600
1608
  };
1601
1609
  else if (!qe)
1602
1610
  return;
@@ -1615,19 +1623,19 @@ const a0 = s0;
1615
1623
  case "encode":
1616
1624
  qe.pcmSize += Le.pcm.length;
1617
1625
  try {
1618
- var bt = qe.encObj.encodeBuffer(Le.pcm);
1626
+ var pt = qe.encObj.encodeBuffer(Le.pcm);
1619
1627
  } catch (R) {
1620
1628
  qe.err = R, console.error(R);
1621
1629
  }
1622
- bt && bt.length > 0 && (qe.takeoff ? Be.onmessage({ action: "takeoff", id: Le.id, chunk: bt }) : _t(bt));
1630
+ pt && pt.length > 0 && (qe.takeoff ? Be.onmessage({ action: "takeoff", id: Le.id, chunk: pt }) : _t(pt));
1623
1631
  break;
1624
1632
  case "complete":
1625
1633
  try {
1626
- var bt = qe.encObj.flush();
1634
+ var pt = qe.encObj.flush();
1627
1635
  } catch (R) {
1628
1636
  qe.err = R, console.error(R);
1629
1637
  }
1630
- if (bt && bt.length > 0 && (qe.takeoff ? Be.onmessage({ action: "takeoff", id: Le.id, chunk: bt }) : _t(bt)), qe.err) {
1638
+ if (pt && pt.length > 0 && (qe.takeoff ? Be.onmessage({ action: "takeoff", id: Le.id, chunk: pt }) : _t(pt)), qe.err) {
1631
1639
  Be.onmessage({
1632
1640
  action: Le.action,
1633
1641
  id: Le.id,
@@ -1648,8 +1656,8 @@ const a0 = s0;
1648
1656
  Be.onmessage = function(Le) {
1649
1657
  var V = Le;
1650
1658
  Xe && (V = Le.data);
1651
- var pt = ke[V.id];
1652
- pt && (V.action == "takeoff" ? pt.set.takeoffEncodeChunk(new Uint8Array(V.chunk.buffer)) : (pt.call && pt.call(V), pt.call = null));
1659
+ var Mt = ke[V.id];
1660
+ Mt && (V.action == "takeoff" ? Mt.set.takeoffEncodeChunk(new Uint8Array(V.chunk.buffer)) : (Mt.call && Mt.call(V), Mt.call = null));
1653
1661
  };
1654
1662
  }, de = function() {
1655
1663
  var Xe = { worker: Be, set: ue };
@@ -1667,7 +1675,7 @@ const a0 = s0;
1667
1675
  }), Xe;
1668
1676
  }, ze, Be = Re;
1669
1677
  if (ge || !ye)
1670
- return _.CLog(p("k9PT::当前环境不支持Web Worker,mp3实时编码器运行在主线程中"), 3), Be = { postMessage: function(Xe) {
1678
+ return _.CLog(b("k9PT::当前环境不支持Web Worker,mp3实时编码器运行在主线程中"), 3), Be = { postMessage: function(Xe) {
1671
1679
  Ce({ data: Xe });
1672
1680
  } }, ze = { wkScope: {
1673
1681
  wk_ctxs: {},
@@ -1700,7 +1708,7 @@ const a0 = s0;
1700
1708
  var ge = -1;
1701
1709
  for (var Ce in ke)
1702
1710
  ge++;
1703
- ge && _.CLog(p("fT6M::mp3 worker剩{1}个未stop", 0, ge), 3);
1711
+ ge && _.CLog(b("fT6M::mp3 worker剩{1}个未stop", 0, ge), 3);
1704
1712
  }
1705
1713
  }, _.prototype.mp3_encode = function(ue, ge) {
1706
1714
  ue && ue.worker && ue.worker.postMessage({
@@ -1715,7 +1723,7 @@ const a0 = s0;
1715
1723
  }, ue.worker.postMessage({
1716
1724
  action: "complete",
1717
1725
  id: ue.id
1718
- })) : Ce(p("mPxH::mp3编码器未start"));
1726
+ })) : Ce(b("mPxH::mp3编码器未start"));
1719
1727
  }, _.mp3ReadMeta = function(ue, ge) {
1720
1728
  var Ce = typeof window < "u" && window.parseInt || typeof self < "u" && self.parseInt || parseInt, Ye = new Uint8Array(ue[0] || []);
1721
1729
  if (Ye.length < 4)
@@ -1740,22 +1748,22 @@ const a0 = s0;
1740
1748
  ][$e == 1 ? 1 : 0][Ce(Be.substr(0, 4), 2)];
1741
1749
  if (!$e || !Ke || !Je || !at)
1742
1750
  return null;
1743
- for (var Fe = Math.round(ge * 8 / Je), Xe = Ke == 1 ? 384 : Ke == 2 || $e == 1 ? 1152 : 576, Le = Xe / at * 1e3, V = Math.floor(Xe * Je / 8 / at * 1e3), pt = 0, rt = 0, qe = 0; qe < ue.length; qe++) {
1751
+ for (var Fe = Math.round(ge * 8 / Je), Xe = Ke == 1 ? 384 : Ke == 2 || $e == 1 ? 1152 : 576, Le = Xe / at * 1e3, V = Math.floor(Xe * Je / 8 / at * 1e3), Mt = 0, rt = 0, qe = 0; qe < ue.length; qe++) {
1744
1752
  var _t = ue[qe];
1745
1753
  if (rt += _t.byteLength, rt >= V + 3) {
1746
- var bt = new Uint8Array(_t), ft = _t.byteLength - (rt - (V + 3) + 1), De = de(ft, bt);
1747
- pt = De.charAt(6) == "1";
1754
+ var pt = new Uint8Array(_t), ft = _t.byteLength - (rt - (V + 3) + 1), De = de(ft, pt);
1755
+ Mt = De.charAt(6) == "1";
1748
1756
  break;
1749
1757
  }
1750
1758
  }
1751
- return pt && V++, {
1759
+ return Mt && V++, {
1752
1760
  version: $e,
1753
1761
  layer: Ke,
1754
1762
  sampleRate: at,
1755
1763
  bitRate: Je,
1756
1764
  duration: Fe,
1757
1765
  size: ge,
1758
- hasPadding: pt,
1766
+ hasPadding: Mt,
1759
1767
  frameSize: V,
1760
1768
  frameDurationFloat: Le
1761
1769
  //每帧时长,含小数 ms
@@ -1792,17 +1800,17 @@ const a0 = s0;
1792
1800
  }
1793
1801
  }, Ze = function(ue, ge) {
1794
1802
  var Ce = "MP3 Info: ";
1795
- (ue.sampleRate && ue.sampleRate != ge.sampleRate || ue.bitRate && ue.bitRate != ge.bitRate) && (_.CLog(Ce + p("uY9i::和设置的不匹配{1},已更新成{2}", 0, "set:" + ge.bitRate + "kbps " + ge.sampleRate + "hz", "set:" + ue.bitRate + "kbps " + ue.sampleRate + "hz"), 3, ge), ge.sampleRate = ue.sampleRate, ge.bitRate = ue.bitRate);
1803
+ (ue.sampleRate && ue.sampleRate != ge.sampleRate || ue.bitRate && ue.bitRate != ge.bitRate) && (_.CLog(Ce + b("uY9i::和设置的不匹配{1},已更新成{2}", 0, "set:" + ge.bitRate + "kbps " + ge.sampleRate + "hz", "set:" + ue.bitRate + "kbps " + ue.sampleRate + "hz"), 3, ge), ge.sampleRate = ue.sampleRate, ge.bitRate = ue.bitRate);
1796
1804
  var Ye = ue.trimFix;
1797
- Ye ? (Ce += p("iMSm::Fix移除{1}帧", 0, Ye.remove) + " " + Ye.removeDuration + "ms -> " + Ye.duration + "ms", Ye.remove > 2 && (ue.err = (ue.err ? ue.err + ", " : "") + p("b9zm::移除帧数过多"))) : Ce += (ue.duration || "-") + "ms", ue.err ? _.CLog(Ce, 1, ue.err, ue) : _.CLog(Ce, ue);
1805
+ Ye ? (Ce += b("iMSm::Fix移除{1}帧", 0, Ye.remove) + " " + Ye.removeDuration + "ms -> " + Ye.duration + "ms", Ye.remove > 2 && (ue.err = (ue.err ? ue.err + ", " : "") + b("b9zm::移除帧数过多"))) : Ce += (ue.duration || "-") + "ms", ue.err ? _.CLog(Ce, 1, ue.err, ue) : _.CLog(Ce, ue);
1798
1806
  };
1799
1807
  });
1800
1808
  (function(_) {
1801
- var r = typeof window == "object" && !!window.document, p = r ? window : Object, M = p.Recorder;
1809
+ var r = typeof window == "object" && !!window.document, b = r ? window : Object, M = b.Recorder;
1802
1810
  _(M);
1803
1811
  })(function(_) {
1804
1812
  function r() {
1805
- var p = function(c) {
1813
+ var b = function(c) {
1806
1814
  return Math.log(c) / Math.log(10);
1807
1815
  }, M = function(c) {
1808
1816
  throw new Error("abort(" + c + ")");
@@ -1827,56 +1835,56 @@ const a0 = s0;
1827
1835
  return ie(c[0]);
1828
1836
  var N = c[0];
1829
1837
  c = c.slice(1);
1830
- for (var H = [], T = 0; T < N; T++)
1831
- H.push(Re(c));
1832
- return H;
1838
+ for (var P = [], T = 0; T < N; T++)
1839
+ P.push(Re(c));
1840
+ return P;
1833
1841
  }
1834
1842
  function ke(c) {
1835
1843
  if (c.length == 1)
1836
1844
  return re(c[0]);
1837
1845
  var N = c[0];
1838
1846
  c = c.slice(1);
1839
- for (var H = [], T = 0; T < N; T++)
1840
- H.push(ke(c));
1841
- return H;
1847
+ for (var P = [], T = 0; T < N; T++)
1848
+ P.push(ke(c));
1849
+ return P;
1842
1850
  }
1843
1851
  function Oe(c) {
1844
1852
  if (c.length == 1)
1845
1853
  return Z(c[0]);
1846
1854
  var N = c[0];
1847
1855
  c = c.slice(1);
1848
- for (var H = [], T = 0; T < N; T++)
1849
- H.push(Oe(c));
1850
- return H;
1856
+ for (var P = [], T = 0; T < N; T++)
1857
+ P.push(Oe(c));
1858
+ return P;
1851
1859
  }
1852
1860
  function Ve(c) {
1853
1861
  if (c.length == 1)
1854
1862
  return new Array(c[0]);
1855
1863
  var N = c[0];
1856
1864
  c = c.slice(1);
1857
- for (var H = [], T = 0; T < N; T++)
1858
- H.push(Ve(c));
1859
- return H;
1865
+ for (var P = [], T = 0; T < N; T++)
1866
+ P.push(Ve(c));
1867
+ return P;
1860
1868
  }
1861
1869
  var Ze = {};
1862
- Ze.fill = function(c, N, H, T) {
1870
+ Ze.fill = function(c, N, P, T) {
1863
1871
  if (arguments.length == 2)
1864
1872
  for (var oe = 0; oe < c.length; oe++)
1865
1873
  c[oe] = arguments[1];
1866
1874
  else
1867
- for (var oe = N; oe < H; oe++)
1875
+ for (var oe = N; oe < P; oe++)
1868
1876
  c[oe] = T;
1869
1877
  };
1870
1878
  var ue = {};
1871
- ue.arraycopy = function(c, N, H, T, oe) {
1879
+ ue.arraycopy = function(c, N, P, T, oe) {
1872
1880
  for (var g = N + oe; N < g; )
1873
- H[T++] = c[N++];
1881
+ P[T++] = c[N++];
1874
1882
  };
1875
1883
  var ge = {};
1876
1884
  ge.SQRT2 = 1.4142135623730951, ge.FAST_LOG10 = function(c) {
1877
- return p(c);
1885
+ return b(c);
1878
1886
  }, ge.FAST_LOG10_X = function(c, N) {
1879
- return p(c) * N;
1887
+ return b(c) * N;
1880
1888
  };
1881
1889
  function Ce(c) {
1882
1890
  this.ordinal = c;
@@ -1896,9 +1904,9 @@ const a0 = s0;
1896
1904
  }
1897
1905
  ze.STEREO = new ze(0), ze.JOINT_STEREO = new ze(1), ze.DUAL_CHANNEL = new ze(2), ze.MONO = new ze(3), ze.NOT_SET = new ze(4);
1898
1906
  function Be() {
1899
- var c = 3, N = 98, H = 4;
1907
+ var c = 3, N = 98, P = 4;
1900
1908
  this.getLameShortVersion = function() {
1901
- return c + "." + N + "." + H;
1909
+ return c + "." + N + "." + P;
1902
1910
  };
1903
1911
  }
1904
1912
  function $e() {
@@ -1909,7 +1917,7 @@ const a0 = s0;
1909
1917
  function N(d) {
1910
1918
  this.bits = 0 | d;
1911
1919
  }
1912
- var H = [
1920
+ var P = [
1913
1921
  [0, 0],
1914
1922
  /* 0 bands */
1915
1923
  [0, 0],
@@ -1957,34 +1965,34 @@ const a0 = s0;
1957
1965
  [6, 7]
1958
1966
  /* 22 bands */
1959
1967
  ];
1960
- function T(d, v, b, x, C, a) {
1968
+ function T(d, v, p, x, C, a) {
1961
1969
  var i = 0.5946 / v;
1962
1970
  for (d = d >> 1; d-- != 0; )
1963
- C[a++] = i > b[x++] ? 0 : 1, C[a++] = i > b[x++] ? 0 : 1;
1971
+ C[a++] = i > p[x++] ? 0 : 1, C[a++] = i > p[x++] ? 0 : 1;
1964
1972
  }
1965
- function oe(d, v, b, x, C, a) {
1973
+ function oe(d, v, p, x, C, a) {
1966
1974
  d = d >> 1;
1967
1975
  var i = d % 2;
1968
1976
  for (d = d >> 1; d-- != 0; ) {
1969
- var W, L, Q, le, _e, be, je, Pe;
1970
- W = b[x++] * v, L = b[x++] * v, _e = 0 | W, Q = b[x++] * v, be = 0 | L, le = b[x++] * v, je = 0 | Q, W += c.adj43[_e], Pe = 0 | le, L += c.adj43[be], C[a++] = 0 | W, Q += c.adj43[je], C[a++] = 0 | L, le += c.adj43[Pe], C[a++] = 0 | Q, C[a++] = 0 | le;
1977
+ var W, L, Q, le, _e, pe, je, He;
1978
+ W = p[x++] * v, L = p[x++] * v, _e = 0 | W, Q = p[x++] * v, pe = 0 | L, le = p[x++] * v, je = 0 | Q, W += c.adj43[_e], He = 0 | le, L += c.adj43[pe], C[a++] = 0 | W, Q += c.adj43[je], C[a++] = 0 | L, le += c.adj43[He], C[a++] = 0 | Q, C[a++] = 0 | le;
1971
1979
  }
1972
1980
  if (i != 0) {
1973
- var W, L, _e, be;
1974
- W = b[x++] * v, L = b[x++] * v, _e = 0 | W, be = 0 | L, W += c.adj43[_e], L += c.adj43[be], C[a++] = 0 | W, C[a++] = 0 | L;
1981
+ var W, L, _e, pe;
1982
+ W = p[x++] * v, L = p[x++] * v, _e = 0 | W, pe = 0 | L, W += c.adj43[_e], L += c.adj43[pe], C[a++] = 0 | W, C[a++] = 0 | L;
1975
1983
  }
1976
1984
  }
1977
- function g(d, v, b, x, C) {
1978
- var a, i, W = 0, L, Q = 0, le = 0, _e = 0, be = v, je = 0, Pe = be, Ue = 0, ht = d, vt = 0;
1985
+ function g(d, v, p, x, C) {
1986
+ var a, i, W = 0, L, Q = 0, le = 0, _e = 0, pe = v, je = 0, He = pe, Ue = 0, ht = d, vt = 0;
1979
1987
  for (L = C != null && x.global_gain == C.global_gain, x.block_type == s.SHORT_TYPE ? i = 38 : i = 21, a = 0; a <= i; a++) {
1980
1988
  var ot = -1;
1981
1989
  if ((L || x.block_type == s.NORM_TYPE) && (ot = x.global_gain - (x.scalefac[a] + (x.preflag != 0 ? c.pretab[a] : 0) << x.scalefac_scale + 1) - x.subblock_gain[x.window[a]] * 8), L && C.step[a] == ot)
1982
1990
  Q != 0 && (oe(
1983
1991
  Q,
1984
- b,
1992
+ p,
1985
1993
  ht,
1986
1994
  vt,
1987
- Pe,
1995
+ He,
1988
1996
  Ue
1989
1997
  ), Q = 0), le != 0 && M();
1990
1998
  else {
@@ -1993,21 +2001,21 @@ const a0 = s0;
1993
2001
  var gt;
1994
2002
  gt = x.max_nonzero_coeff - W + 1, Ze.fill(v, x.max_nonzero_coeff, 576, 0), ct = gt, ct < 0 && (ct = 0), a = i + 1;
1995
2003
  }
1996
- if (Q == 0 && le == 0 && (Pe = be, Ue = je, ht = d, vt = _e), C != null && C.sfb_count1 > 0 && a >= C.sfb_count1 && C.step[a] > 0 && ot >= C.step[a] ? (Q != 0 && (oe(
2004
+ if (Q == 0 && le == 0 && (He = pe, Ue = je, ht = d, vt = _e), C != null && C.sfb_count1 > 0 && a >= C.sfb_count1 && C.step[a] > 0 && ot >= C.step[a] ? (Q != 0 && (oe(
1997
2005
  Q,
1998
- b,
2006
+ p,
1999
2007
  ht,
2000
2008
  vt,
2001
- Pe,
2009
+ He,
2002
2010
  Ue
2003
- ), Q = 0, Pe = be, Ue = je, ht = d, vt = _e), le += ct) : (le != 0 && (T(
2011
+ ), Q = 0, He = pe, Ue = je, ht = d, vt = _e), le += ct) : (le != 0 && (T(
2004
2012
  le,
2005
- b,
2013
+ p,
2006
2014
  ht,
2007
2015
  vt,
2008
- Pe,
2016
+ He,
2009
2017
  Ue
2010
- ), le = 0, Pe = be, Ue = je, ht = d, vt = _e), Q += ct), ct <= 0) {
2018
+ ), le = 0, He = pe, Ue = je, ht = d, vt = _e), Q += ct), ct <= 0) {
2011
2019
  le != 0 && M(), Q != 0 && M();
2012
2020
  break;
2013
2021
  }
@@ -2016,52 +2024,52 @@ const a0 = s0;
2016
2024
  }
2017
2025
  Q != 0 && (oe(
2018
2026
  Q,
2019
- b,
2027
+ p,
2020
2028
  ht,
2021
2029
  vt,
2022
- Pe,
2030
+ He,
2023
2031
  Ue
2024
2032
  ), Q = 0), le != 0 && M();
2025
2033
  }
2026
- function z(d, v, b) {
2034
+ function z(d, v, p) {
2027
2035
  var x = 0, C = 0;
2028
2036
  do {
2029
2037
  var a = d[v++], i = d[v++];
2030
2038
  x < a && (x = a), C < i && (C = i);
2031
- } while (v < b);
2039
+ } while (v < p);
2032
2040
  return x < C && (x = C), x;
2033
2041
  }
2034
- function ae(d, v, b, x, C, a) {
2042
+ function ae(d, v, p, x, C, a) {
2035
2043
  var i = V.ht[x].xlen * 65536 + V.ht[C].xlen, W = 0, L;
2036
2044
  do {
2037
2045
  var Q = d[v++], le = d[v++];
2038
2046
  Q != 0 && (Q > 14 && (Q = 15, W += i), Q *= 16), le != 0 && (le > 14 && (le = 15, W += i), Q += le), W += V.largetbl[Q];
2039
- } while (v < b);
2047
+ } while (v < p);
2040
2048
  return L = W & 65535, W >>= 16, W > L && (W = L, x = C), a.bits += W, x;
2041
2049
  }
2042
- function j(d, v, b, x) {
2050
+ function j(d, v, p, x) {
2043
2051
  var C = 0, a = V.ht[1].hlen;
2044
2052
  do {
2045
2053
  var i = d[v + 0] * 2 + d[v + 1];
2046
2054
  v += 2, C += a[i];
2047
- } while (v < b);
2055
+ } while (v < p);
2048
2056
  return x.bits += C, 1;
2049
2057
  }
2050
- function K(d, v, b, x, C) {
2058
+ function K(d, v, p, x, C) {
2051
2059
  var a = 0, i, W = V.ht[x].xlen, L;
2052
2060
  x == 2 ? L = V.table23 : L = V.table56;
2053
2061
  do {
2054
2062
  var Q = d[v + 0] * W + d[v + 1];
2055
2063
  v += 2, a += L[Q];
2056
- } while (v < b);
2064
+ } while (v < p);
2057
2065
  return i = a & 65535, a >>= 16, a > i && (a = i, x++), C.bits += a, x;
2058
2066
  }
2059
- function k(d, v, b, x, C) {
2067
+ function k(d, v, p, x, C) {
2060
2068
  var a = 0, i = 0, W = 0, L = V.ht[x].xlen, Q = V.ht[x].hlen, le = V.ht[x + 1].hlen, _e = V.ht[x + 2].hlen;
2061
2069
  do {
2062
- var be = d[v + 0] * L + d[v + 1];
2063
- v += 2, a += Q[be], i += le[be], W += _e[be];
2064
- } while (v < b);
2070
+ var pe = d[v + 0] * L + d[v + 1];
2071
+ v += 2, a += Q[pe], i += le[pe], W += _e[pe];
2072
+ } while (v < p);
2065
2073
  var je = x;
2066
2074
  return a > i && (a = i, je++), a > W && (a = W, je = x + 2), C.bits += a, je;
2067
2075
  }
@@ -2082,19 +2090,19 @@ const a0 = s0;
2082
2090
  13,
2083
2091
  13
2084
2092
  ];
2085
- function E(d, v, b, x) {
2086
- var C = z(d, v, b);
2093
+ function E(d, v, p, x) {
2094
+ var C = z(d, v, p);
2087
2095
  switch (C) {
2088
2096
  case 0:
2089
2097
  return C;
2090
2098
  case 1:
2091
- return j(d, v, b, x);
2099
+ return j(d, v, p, x);
2092
2100
  case 2:
2093
2101
  case 3:
2094
2102
  return K(
2095
2103
  d,
2096
2104
  v,
2097
- b,
2105
+ p,
2098
2106
  fe[C - 1],
2099
2107
  x
2100
2108
  );
@@ -2113,7 +2121,7 @@ const a0 = s0;
2113
2121
  return k(
2114
2122
  d,
2115
2123
  v,
2116
- b,
2124
+ p,
2117
2125
  fe[C - 1],
2118
2126
  x
2119
2127
  );
@@ -2125,12 +2133,12 @@ const a0 = s0;
2125
2133
  var i;
2126
2134
  for (i = a - 8; i < 24 && !(V.ht[i].linmax >= C); i++)
2127
2135
  ;
2128
- return ae(d, v, b, i, a, x);
2136
+ return ae(d, v, p, i, a, x);
2129
2137
  }
2130
2138
  }
2131
- this.noquant_count_bits = function(d, v, b) {
2139
+ this.noquant_count_bits = function(d, v, p) {
2132
2140
  var x = v.l3_enc, C = Math.min(576, v.max_nonzero_coeff + 2 >> 1 << 1);
2133
- for (b != null && (b.sfb_count1 = 0); C > 1 && !(x[C - 1] | x[C - 2]); C -= 2)
2141
+ for (p != null && (p.sfb_count1 = 0); C > 1 && !(x[C - 1] | x[C - 2]); C -= 2)
2134
2142
  ;
2135
2143
  v.count1 = C;
2136
2144
  for (var a = 0, i = 0; C > 3; C -= 4) {
@@ -2159,54 +2167,54 @@ const a0 = s0;
2159
2167
  var Q = new N(L);
2160
2168
  v.table_select[1] = E(x, a, i, Q), L = Q.bits;
2161
2169
  }
2162
- if (d.use_best_huffman == 2 && M(), b != null && v.block_type == s.NORM_TYPE) {
2170
+ if (d.use_best_huffman == 2 && M(), p != null && v.block_type == s.NORM_TYPE) {
2163
2171
  for (var le = 0; d.scalefac_band.l[le] < v.big_values; )
2164
2172
  le++;
2165
- b.sfb_count1 = le;
2173
+ p.sfb_count1 = le;
2166
2174
  }
2167
2175
  return L;
2168
- }, this.count_bits = function(d, v, b, x) {
2169
- var C = b.l3_enc, a = e.IXMAX_VAL / c.IPOW20(b.global_gain);
2170
- return b.xrpow_max > a ? e.LARGE_BITS : (g(v, C, c.IPOW20(b.global_gain), b, x), d.substep_shaping & 2 && M(), this.noquant_count_bits(d, b, x));
2176
+ }, this.count_bits = function(d, v, p, x) {
2177
+ var C = p.l3_enc, a = e.IXMAX_VAL / c.IPOW20(p.global_gain);
2178
+ return p.xrpow_max > a ? e.LARGE_BITS : (g(v, C, c.IPOW20(p.global_gain), p, x), d.substep_shaping & 2 && M(), this.noquant_count_bits(d, p, x));
2171
2179
  };
2172
- function B(d, v, b, x, C, a, i) {
2180
+ function B(d, v, p, x, C, a, i) {
2173
2181
  for (var W = v.big_values, L = 0; L <= 7 + 15; L++)
2174
2182
  x[L] = e.LARGE_BITS;
2175
2183
  for (var L = 0; L < 16; L++) {
2176
2184
  var Q = d.scalefac_band.l[L + 1];
2177
2185
  if (Q >= W)
2178
2186
  break;
2179
- var le = 0, _e = new N(le), be = E(b, 0, Q, _e);
2187
+ var le = 0, _e = new N(le), pe = E(p, 0, Q, _e);
2180
2188
  le = _e.bits;
2181
2189
  for (var je = 0; je < 8; je++) {
2182
- var Pe = d.scalefac_band.l[L + je + 2];
2183
- if (Pe >= W)
2190
+ var He = d.scalefac_band.l[L + je + 2];
2191
+ if (He >= W)
2184
2192
  break;
2185
2193
  var Ue = le;
2186
2194
  _e = new N(Ue);
2187
- var ht = E(b, Q, Pe, _e);
2188
- Ue = _e.bits, x[L + je] > Ue && (x[L + je] = Ue, C[L + je] = L, a[L + je] = be, i[L + je] = ht);
2195
+ var ht = E(p, Q, He, _e);
2196
+ Ue = _e.bits, x[L + je] > Ue && (x[L + je] = Ue, C[L + je] = L, a[L + je] = pe, i[L + je] = ht);
2189
2197
  }
2190
2198
  }
2191
2199
  }
2192
- function t(d, v, b, x, C, a, i, W) {
2200
+ function t(d, v, p, x, C, a, i, W) {
2193
2201
  for (var L = v.big_values, Q = 2; Q < s.SBMAX_l + 1; Q++) {
2194
2202
  var le = d.scalefac_band.l[Q];
2195
2203
  if (le >= L)
2196
2204
  break;
2197
2205
  var _e = C[Q - 2] + v.count1bits;
2198
- if (b.part2_3_length <= _e)
2206
+ if (p.part2_3_length <= _e)
2199
2207
  break;
2200
- var be = new N(_e), je = E(x, le, L, be);
2201
- _e = be.bits, !(b.part2_3_length <= _e) && (b.assign(v), b.part2_3_length = _e, b.region0_count = a[Q - 2], b.region1_count = Q - 2 - a[Q - 2], b.table_select[0] = i[Q - 2], b.table_select[1] = W[Q - 2], b.table_select[2] = je);
2208
+ var pe = new N(_e), je = E(x, le, L, pe);
2209
+ _e = pe.bits, !(p.part2_3_length <= _e) && (p.assign(v), p.part2_3_length = _e, p.region0_count = a[Q - 2], p.region1_count = Q - 2 - a[Q - 2], p.table_select[0] = i[Q - 2], p.table_select[1] = W[Q - 2], p.table_select[2] = je);
2202
2210
  }
2203
2211
  }
2204
2212
  this.best_huffman_divide = function(d, v) {
2205
- var b = new h(), x = v.l3_enc, C = re(7 + 15 + 1), a = re(7 + 15 + 1), i = re(7 + 15 + 1), W = re(7 + 15 + 1);
2213
+ var p = new h(), x = v.l3_enc, C = re(7 + 15 + 1), a = re(7 + 15 + 1), i = re(7 + 15 + 1), W = re(7 + 15 + 1);
2206
2214
  if (!(v.block_type == s.SHORT_TYPE && d.mode_gr == 1)) {
2207
- b.assign(v), v.block_type == s.NORM_TYPE && (B(d, v, x, C, a, i, W), t(
2215
+ p.assign(v), v.block_type == s.NORM_TYPE && (B(d, v, x, C, a, i, W), t(
2208
2216
  d,
2209
- b,
2217
+ p,
2210
2218
  v,
2211
2219
  x,
2212
2220
  C,
@@ -2214,17 +2222,17 @@ const a0 = s0;
2214
2222
  i,
2215
2223
  W
2216
2224
  ));
2217
- var L = b.big_values;
2225
+ var L = p.big_values;
2218
2226
  if (!(L == 0 || (x[L - 2] | x[L - 1]) > 1) && (L = v.count1 + 2, !(L > 576))) {
2219
- b.assign(v), b.count1 = L;
2220
- for (var Q = 0, le = 0; L > b.big_values; L -= 4) {
2227
+ p.assign(v), p.count1 = L;
2228
+ for (var Q = 0, le = 0; L > p.big_values; L -= 4) {
2221
2229
  var _e = ((x[L - 4] * 2 + x[L - 3]) * 2 + x[L - 2]) * 2 + x[L - 1];
2222
2230
  Q += V.t32l[_e], le += V.t33l[_e];
2223
2231
  }
2224
- if (b.big_values = L, b.count1table_select = 0, Q > le && (Q = le, b.count1table_select = 1), b.count1bits = Q, b.block_type == s.NORM_TYPE)
2232
+ if (p.big_values = L, p.count1table_select = 0, Q > le && (Q = le, p.count1table_select = 1), p.count1bits = Q, p.block_type == s.NORM_TYPE)
2225
2233
  t(
2226
2234
  d,
2227
- b,
2235
+ p,
2228
2236
  v,
2229
2237
  x,
2230
2238
  C,
@@ -2233,15 +2241,15 @@ const a0 = s0;
2233
2241
  W
2234
2242
  );
2235
2243
  else {
2236
- if (b.part2_3_length = Q, Q = d.scalefac_band.l[7 + 1], Q > L && (Q = L), Q > 0) {
2237
- var be = new N(b.part2_3_length);
2238
- b.table_select[0] = E(x, 0, Q, be), b.part2_3_length = be.bits;
2244
+ if (p.part2_3_length = Q, Q = d.scalefac_band.l[7 + 1], Q > L && (Q = L), Q > 0) {
2245
+ var pe = new N(p.part2_3_length);
2246
+ p.table_select[0] = E(x, 0, Q, pe), p.part2_3_length = pe.bits;
2239
2247
  }
2240
2248
  if (L > Q) {
2241
- var be = new N(b.part2_3_length);
2242
- b.table_select[1] = E(x, Q, L, be), b.part2_3_length = be.bits;
2249
+ var pe = new N(p.part2_3_length);
2250
+ p.table_select[1] = E(x, Q, L, pe), p.part2_3_length = pe.bits;
2243
2251
  }
2244
- v.part2_3_length > b.part2_3_length && v.assign(b);
2252
+ v.part2_3_length > p.part2_3_length && v.assign(p);
2245
2253
  }
2246
2254
  }
2247
2255
  }
@@ -2249,28 +2257,28 @@ const a0 = s0;
2249
2257
  var l = [1, 1, 1, 1, 8, 2, 2, 2, 4, 4, 4, 8, 8, 8, 16, 16], A = [1, 2, 4, 8, 1, 2, 4, 8, 2, 4, 8, 2, 4, 8, 4, 8], F = [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];
2250
2258
  $e.slen1_tab = F, $e.slen2_tab = y;
2251
2259
  function f(d, v) {
2252
- for (var b, x = v.tt[1][d], C = v.tt[0][d], a = 0; a < V.scfsi_band.length - 1; a++) {
2253
- for (b = V.scfsi_band[a]; b < V.scfsi_band[a + 1] && !(C.scalefac[b] != x.scalefac[b] && x.scalefac[b] >= 0); b++)
2260
+ for (var p, x = v.tt[1][d], C = v.tt[0][d], a = 0; a < V.scfsi_band.length - 1; a++) {
2261
+ for (p = V.scfsi_band[a]; p < V.scfsi_band[a + 1] && !(C.scalefac[p] != x.scalefac[p] && x.scalefac[p] >= 0); p++)
2254
2262
  ;
2255
- if (b == V.scfsi_band[a + 1]) {
2256
- for (b = V.scfsi_band[a]; b < V.scfsi_band[a + 1]; b++)
2257
- x.scalefac[b] = -1;
2263
+ if (p == V.scfsi_band[a + 1]) {
2264
+ for (p = V.scfsi_band[a]; p < V.scfsi_band[a + 1]; p++)
2265
+ x.scalefac[p] = -1;
2258
2266
  v.scfsi[d][a] = 1;
2259
2267
  }
2260
2268
  }
2261
2269
  var i = 0, W = 0;
2262
- for (b = 0; b < 11; b++)
2263
- x.scalefac[b] != -1 && (W++, i < x.scalefac[b] && (i = x.scalefac[b]));
2264
- for (var L = 0, Q = 0; b < s.SBPSY_l; b++)
2265
- x.scalefac[b] != -1 && (Q++, L < x.scalefac[b] && (L = x.scalefac[b]));
2270
+ for (p = 0; p < 11; p++)
2271
+ x.scalefac[p] != -1 && (W++, i < x.scalefac[p] && (i = x.scalefac[p]));
2272
+ for (var L = 0, Q = 0; p < s.SBPSY_l; p++)
2273
+ x.scalefac[p] != -1 && (Q++, L < x.scalefac[p] && (L = x.scalefac[p]));
2266
2274
  for (var a = 0; a < 16; a++)
2267
2275
  if (i < l[a] && L < A[a]) {
2268
2276
  var le = F[a] * W + y[a] * Q;
2269
2277
  x.part2_length > le && (x.part2_length = le, x.scalefac_compress = a);
2270
2278
  }
2271
2279
  }
2272
- this.best_scalefac_store = function(d, v, b, x) {
2273
- var C = x.tt[v][b], a, i, W, L, Q = 0;
2280
+ this.best_scalefac_store = function(d, v, p, x) {
2281
+ var C = x.tt[v][p], a, i, W, L, Q = 0;
2274
2282
  for (W = 0, a = 0; a < C.sfbmax; a++) {
2275
2283
  var le = C.width[a];
2276
2284
  for (W += le, L = -le; L < 0 && C.l3_enc[L + W] == 0; L++)
@@ -2297,8 +2305,8 @@ const a0 = s0;
2297
2305
  }
2298
2306
  }
2299
2307
  for (i = 0; i < 4; i++)
2300
- x.scfsi[b][i] = 0;
2301
- for (d.mode_gr == 2 && v == 1 && x.tt[0][b].block_type != s.SHORT_TYPE && x.tt[1][b].block_type != s.SHORT_TYPE && (f(b, x), Q = 0), a = 0; a < C.sfbmax; a++)
2308
+ x.scfsi[p][i] = 0;
2309
+ for (d.mode_gr == 2 && v == 1 && x.tt[0][p].block_type != s.SHORT_TYPE && x.tt[1][p].block_type != s.SHORT_TYPE && (f(p, x), Q = 0), a = 0; a < C.sfbmax; a++)
2302
2310
  C.scalefac[a] == -2 && (C.scalefac[a] = 0);
2303
2311
  Q != 0 && (d.mode_gr == 2 ? this.scale_bitcount(C) : this.scale_bitcount_lsf(d, C));
2304
2312
  };
@@ -2355,20 +2363,20 @@ const a0 = s0;
2355
2363
  74
2356
2364
  ];
2357
2365
  this.scale_bitcount = function(d) {
2358
- var v, b, x = 0, C = 0, a, i = d.scalefac;
2366
+ var v, p, x = 0, C = 0, a, i = d.scalefac;
2359
2367
  if (d.block_type == s.SHORT_TYPE)
2360
2368
  a = w, d.mixed_block_flag != 0 && (a = u);
2361
2369
  else if (a = I, d.preflag == 0) {
2362
- for (b = 11; b < s.SBPSY_l && !(i[b] < c.pretab[b]); b++)
2370
+ for (p = 11; p < s.SBPSY_l && !(i[p] < c.pretab[p]); p++)
2363
2371
  ;
2364
- if (b == s.SBPSY_l)
2365
- for (d.preflag = 1, b = 11; b < s.SBPSY_l; b++)
2366
- i[b] -= c.pretab[b];
2367
- }
2368
- for (b = 0; b < d.sfbdivide; b++)
2369
- x < i[b] && (x = i[b]);
2370
- for (; b < d.sfbmax; b++)
2371
- C < i[b] && (C = i[b]);
2372
+ if (p == s.SBPSY_l)
2373
+ for (d.preflag = 1, p = 11; p < s.SBPSY_l; p++)
2374
+ i[p] -= c.pretab[p];
2375
+ }
2376
+ for (p = 0; p < d.sfbdivide; p++)
2377
+ x < i[p] && (x = i[p]);
2378
+ for (; p < d.sfbmax; p++)
2379
+ C < i[p] && (C = i[p]);
2372
2380
  for (d.part2_length = e.LARGE_BITS, v = 0; v < 16; v++)
2373
2381
  x < l[v] && C < A[v] && d.part2_length > a[v] && (d.part2_length = a[v], d.scalefac_compress = v);
2374
2382
  return d.part2_length == e.LARGE_BITS;
@@ -2382,38 +2390,38 @@ const a0 = s0;
2382
2390
  [3, 3, 0, 0]
2383
2391
  ];
2384
2392
  this.scale_bitcount_lsf = function(d, v) {
2385
- var b, x, C, a, i, W, L, Q, le = re(4), _e = v.scalefac;
2386
- for (v.preflag != 0 ? b = 2 : b = 0, L = 0; L < 4; L++)
2393
+ var p, x, C, a, i, W, L, Q, le = re(4), _e = v.scalefac;
2394
+ for (v.preflag != 0 ? p = 2 : p = 0, L = 0; L < 4; L++)
2387
2395
  le[L] = 0;
2388
2396
  if (v.block_type == s.SHORT_TYPE) {
2389
2397
  x = 1;
2390
- var be = c.nr_of_sfb_block[b][x];
2398
+ var pe = c.nr_of_sfb_block[p][x];
2391
2399
  for (Q = 0, C = 0; C < 4; C++)
2392
- for (a = be[C] / 3, L = 0; L < a; L++, Q++)
2400
+ for (a = pe[C] / 3, L = 0; L < a; L++, Q++)
2393
2401
  for (i = 0; i < 3; i++)
2394
2402
  _e[Q * 3 + i] > le[C] && (le[C] = _e[Q * 3 + i]);
2395
2403
  } else {
2396
2404
  x = 0;
2397
- var be = c.nr_of_sfb_block[b][x];
2405
+ var pe = c.nr_of_sfb_block[p][x];
2398
2406
  for (Q = 0, C = 0; C < 4; C++)
2399
- for (a = be[C], L = 0; L < a; L++, Q++)
2407
+ for (a = pe[C], L = 0; L < a; L++, Q++)
2400
2408
  _e[Q] > le[C] && (le[C] = _e[Q]);
2401
2409
  }
2402
2410
  for (W = !1, C = 0; C < 4; C++)
2403
- le[C] > n[b][C] && (W = !0);
2411
+ le[C] > n[p][C] && (W = !0);
2404
2412
  if (!W) {
2405
- var je, Pe, Ue, ht;
2406
- for (v.sfb_partition_table = c.nr_of_sfb_block[b][x], C = 0; C < 4; C++)
2407
- v.slen[C] = P[le[C]];
2408
- switch (je = v.slen[0], Pe = v.slen[1], Ue = v.slen[2], ht = v.slen[3], b) {
2413
+ var je, He, Ue, ht;
2414
+ for (v.sfb_partition_table = c.nr_of_sfb_block[p][x], C = 0; C < 4; C++)
2415
+ v.slen[C] = H[le[C]];
2416
+ switch (je = v.slen[0], He = v.slen[1], Ue = v.slen[2], ht = v.slen[3], p) {
2409
2417
  case 0:
2410
- v.scalefac_compress = (je * 5 + Pe << 4) + (Ue << 2) + ht;
2418
+ v.scalefac_compress = (je * 5 + He << 4) + (Ue << 2) + ht;
2411
2419
  break;
2412
2420
  case 1:
2413
- v.scalefac_compress = 400 + (je * 5 + Pe << 2) + Ue;
2421
+ v.scalefac_compress = 400 + (je * 5 + He << 2) + Ue;
2414
2422
  break;
2415
2423
  case 2:
2416
- v.scalefac_compress = 500 + je * 3 + Pe;
2424
+ v.scalefac_compress = 500 + je * 3 + He;
2417
2425
  break;
2418
2426
  }
2419
2427
  }
@@ -2422,7 +2430,7 @@ const a0 = s0;
2422
2430
  v.part2_length += v.slen[C] * v.sfb_partition_table[C];
2423
2431
  return W;
2424
2432
  };
2425
- var P = [
2433
+ var H = [
2426
2434
  0,
2427
2435
  1,
2428
2436
  2,
@@ -2442,13 +2450,13 @@ const a0 = s0;
2442
2450
  ];
2443
2451
  this.huffman_init = function(d) {
2444
2452
  for (var v = 2; v <= 576; v += 2) {
2445
- for (var b = 0, x; d.scalefac_band.l[++b] < v; )
2453
+ for (var p = 0, x; d.scalefac_band.l[++p] < v; )
2446
2454
  ;
2447
- for (x = H[b][0]; d.scalefac_band.l[x + 1] > v; )
2455
+ for (x = P[p][0]; d.scalefac_band.l[x + 1] > v; )
2448
2456
  x--;
2449
- for (x < 0 && (x = H[b][0]), d.bv_scf[v - 2] = x, x = H[b][1]; d.scalefac_band.l[x + d.bv_scf[v - 2] + 2] > v; )
2457
+ for (x < 0 && (x = P[p][0]), d.bv_scf[v - 2] = x, x = P[p][1]; d.scalefac_band.l[x + d.bv_scf[v - 2] + 2] > v; )
2450
2458
  x--;
2451
- x < 0 && (x = H[b][1]), d.bv_scf[v - 1] = x;
2459
+ x < 0 && (x = P[p][1]), d.bv_scf[v - 1] = x;
2452
2460
  }
2453
2461
  };
2454
2462
  }
@@ -2463,7 +2471,7 @@ const a0 = s0;
2463
2471
  this.setModules = function(g) {
2464
2472
  N = g;
2465
2473
  };
2466
- function H(g, z, ae) {
2474
+ function P(g, z, ae) {
2467
2475
  M();
2468
2476
  }
2469
2477
  var T = [
@@ -2545,25 +2553,25 @@ const a0 = s0;
2545
2553
  }
2546
2554
  switch (g.preset = z, z) {
2547
2555
  case se.V9:
2548
- return H(), z;
2556
+ return P(), z;
2549
2557
  case se.V8:
2550
- return H(), z;
2558
+ return P(), z;
2551
2559
  case se.V7:
2552
- return H(), z;
2560
+ return P(), z;
2553
2561
  case se.V6:
2554
- return H(), z;
2562
+ return P(), z;
2555
2563
  case se.V5:
2556
- return H(), z;
2564
+ return P(), z;
2557
2565
  case se.V4:
2558
- return H(), z;
2566
+ return P(), z;
2559
2567
  case se.V3:
2560
- return H(), z;
2568
+ return P(), z;
2561
2569
  case se.V2:
2562
- return H(), z;
2570
+ return P(), z;
2563
2571
  case se.V1:
2564
- return H(), z;
2572
+ return P(), z;
2565
2573
  case se.V0:
2566
- return H(), z;
2574
+ return P(), z;
2567
2575
  }
2568
2576
  return 8 <= z && z <= 320 ? oe(g, z, ae) : (g.preset = 0, z);
2569
2577
  };
@@ -2572,23 +2580,23 @@ const a0 = s0;
2572
2580
  var c;
2573
2581
  this.setModules = function(N) {
2574
2582
  c = N;
2575
- }, this.ResvFrameBegin = function(N, H) {
2583
+ }, this.ResvFrameBegin = function(N, P) {
2576
2584
  var T = N.internal_flags, oe, g = T.l3_side, z = c.getframebits(N);
2577
- H.bits = (z - T.sideinfo_len * 8) / T.mode_gr;
2585
+ P.bits = (z - T.sideinfo_len * 8) / T.mode_gr;
2578
2586
  var ae = 8 * 256 * T.mode_gr - 8;
2579
2587
  N.brate > 320 ? M() : (oe = 8 * 1440, N.strict_ISO && M()), T.ResvMax = oe - z, T.ResvMax > ae && (T.ResvMax = ae), (T.ResvMax < 0 || N.disable_reservoir) && (T.ResvMax = 0);
2580
- var j = H.bits * T.mode_gr + Math.min(T.ResvSize, T.ResvMax);
2588
+ var j = P.bits * T.mode_gr + Math.min(T.ResvSize, T.ResvMax);
2581
2589
  return j > oe && (j = oe), g.resvDrain_pre = 0, T.pinfo != null && M(), j;
2582
- }, this.ResvMaxBits = function(N, H, T, oe) {
2590
+ }, this.ResvMaxBits = function(N, P, T, oe) {
2583
2591
  var g = N.internal_flags, z, ae = g.ResvSize, j = g.ResvMax;
2584
- oe != 0 && (ae += H), g.substep_shaping & 1 && (j *= 0.9), T.bits = H, ae * 10 > j * 9 ? (z = ae - j * 9 / 10, T.bits += z, g.substep_shaping |= 128) : (z = 0, g.substep_shaping &= 127, !N.disable_reservoir && !(g.substep_shaping & 1) && (T.bits -= 0.1 * H));
2592
+ oe != 0 && (ae += P), g.substep_shaping & 1 && (j *= 0.9), T.bits = P, ae * 10 > j * 9 ? (z = ae - j * 9 / 10, T.bits += z, g.substep_shaping |= 128) : (z = 0, g.substep_shaping &= 127, !N.disable_reservoir && !(g.substep_shaping & 1) && (T.bits -= 0.1 * P));
2585
2593
  var K = ae < g.ResvMax * 6 / 10 ? ae : g.ResvMax * 6 / 10;
2586
2594
  return K -= z, K < 0 && (K = 0), K;
2587
- }, this.ResvAdjust = function(N, H) {
2588
- N.ResvSize -= H.part2_3_length + H.part2_length;
2589
- }, this.ResvFrameEnd = function(N, H) {
2595
+ }, this.ResvAdjust = function(N, P) {
2596
+ N.ResvSize -= P.part2_3_length + P.part2_length;
2597
+ }, this.ResvFrameEnd = function(N, P) {
2590
2598
  var T, oe = N.l3_side;
2591
- N.ResvSize += H * N.mode_gr;
2599
+ N.ResvSize += P * N.mode_gr;
2592
2600
  var g = 0;
2593
2601
  oe.resvDrain_post = 0, oe.resvDrain_pre = 0, (T = N.ResvSize % 8) != 0 && (g += T), T = N.ResvSize - g - N.ResvMax, T > 0 && (g += T);
2594
2602
  {
@@ -2600,7 +2608,7 @@ const a0 = s0;
2600
2608
  }
2601
2609
  Fe.NUMTOCENTRIES = 100, Fe.MAXFRAMESIZE = 2880;
2602
2610
  function Fe() {
2603
- this.setModules = function(H, T, oe) {
2611
+ this.setModules = function(P, T, oe) {
2604
2612
  };
2605
2613
  var c = [
2606
2614
  0,
@@ -2860,13 +2868,13 @@ const a0 = s0;
2860
2868
  32897,
2861
2869
  16448
2862
2870
  ];
2863
- function N(H, T) {
2864
- var oe = T ^ H;
2871
+ function N(P, T) {
2872
+ var oe = T ^ P;
2865
2873
  return T = T >> 8 ^ c[oe & 255], T;
2866
2874
  }
2867
- this.updateMusicCRC = function(H, T, oe, g) {
2875
+ this.updateMusicCRC = function(P, T, oe, g) {
2868
2876
  for (var z = 0; z < g; ++z)
2869
- H[0] = N(T[oe + z], H[0]);
2877
+ P[0] = N(T[oe + z], P[0]);
2870
2878
  };
2871
2879
  }
2872
2880
  Xe.EQ = function(c, N) {
@@ -2875,9 +2883,9 @@ const a0 = s0;
2875
2883
  return !Xe.EQ(c, N);
2876
2884
  };
2877
2885
  function Xe() {
2878
- var c = this, N = null, H = null;
2886
+ var c = this, N = null, P = null;
2879
2887
  this.setModules = function(f, w, u, I) {
2880
- N = u, H = I;
2888
+ N = u, P = I;
2881
2889
  };
2882
2890
  var T = null, oe = 0, g = 0, z = 0;
2883
2891
  this.getframebits = function(f) {
@@ -2914,44 +2922,44 @@ const a0 = s0;
2914
2922
  f.header[f.h_ptr].ptr = I;
2915
2923
  }
2916
2924
  function fe(f, w) {
2917
- var u = f.internal_flags, I, n, P;
2925
+ var u = f.internal_flags, I, n, H;
2918
2926
  if (I = u.l3_side, u.header[u.h_ptr].ptr = 0, Ze.fill(u.header[u.h_ptr].buf, 0, u.sideinfo_len, 0), f.out_samplerate < 16e3 ? k(u, 4094, 12) : k(u, 4095, 12), k(u, f.version, 1), k(u, 4 - 3, 2), k(u, f.error_protection ? 0 : 1, 1), k(u, u.bitrate_index, 4), k(u, u.samplerate_index, 2), k(u, u.padding, 1), k(u, f.extension, 1), k(u, f.mode.ordinal(), 2), k(u, u.mode_ext, 2), k(u, f.copyright, 1), k(u, f.original, 1), k(u, f.emphasis, 2), f.error_protection && k(u, 0, 16), f.version == 1) {
2919
- for (k(u, I.main_data_begin, 9), u.channels_out == 2 ? k(u, I.private_bits, 3) : k(u, I.private_bits, 5), P = 0; P < u.channels_out; P++) {
2927
+ for (k(u, I.main_data_begin, 9), u.channels_out == 2 ? k(u, I.private_bits, 3) : k(u, I.private_bits, 5), H = 0; H < u.channels_out; H++) {
2920
2928
  var d;
2921
2929
  for (d = 0; d < 4; d++)
2922
- k(u, I.scfsi[P][d], 1);
2930
+ k(u, I.scfsi[H][d], 1);
2923
2931
  }
2924
2932
  for (n = 0; n < 2; n++)
2925
- for (P = 0; P < u.channels_out; P++) {
2926
- var v = I.tt[n][P];
2933
+ for (H = 0; H < u.channels_out; H++) {
2934
+ var v = I.tt[n][H];
2927
2935
  k(u, v.part2_3_length + v.part2_length, 12), k(u, v.big_values / 2, 9), k(u, v.global_gain, 8), k(u, v.scalefac_compress, 4), v.block_type != s.NORM_TYPE ? (k(u, 1, 1), k(u, v.block_type, 2), k(u, v.mixed_block_flag, 1), v.table_select[0] == 14 && (v.table_select[0] = 16), k(u, v.table_select[0], 5), v.table_select[1] == 14 && (v.table_select[1] = 16), k(u, v.table_select[1], 5), k(u, v.subblock_gain[0], 3), k(u, v.subblock_gain[1], 3), k(u, v.subblock_gain[2], 3)) : (k(u, 0, 1), v.table_select[0] == 14 && (v.table_select[0] = 16), k(u, v.table_select[0], 5), v.table_select[1] == 14 && (v.table_select[1] = 16), k(u, v.table_select[1], 5), v.table_select[2] == 14 && (v.table_select[2] = 16), k(u, v.table_select[2], 5), k(u, v.region0_count, 4), k(u, v.region1_count, 3)), k(u, v.preflag, 1), k(u, v.scalefac_scale, 1), k(u, v.count1table_select, 1);
2928
2936
  }
2929
2937
  } else
2930
- for (k(u, I.main_data_begin, 8), k(u, I.private_bits, u.channels_out), n = 0, P = 0; P < u.channels_out; P++) {
2931
- var v = I.tt[n][P];
2938
+ for (k(u, I.main_data_begin, 8), k(u, I.private_bits, u.channels_out), n = 0, H = 0; H < u.channels_out; H++) {
2939
+ var v = I.tt[n][H];
2932
2940
  k(u, v.part2_3_length + v.part2_length, 12), k(u, v.big_values / 2, 9), k(u, v.global_gain, 8), k(u, v.scalefac_compress, 9), v.block_type != s.NORM_TYPE ? (k(u, 1, 1), k(u, v.block_type, 2), k(u, v.mixed_block_flag, 1), v.table_select[0] == 14 && (v.table_select[0] = 16), k(u, v.table_select[0], 5), v.table_select[1] == 14 && (v.table_select[1] = 16), k(u, v.table_select[1], 5), k(u, v.subblock_gain[0], 3), k(u, v.subblock_gain[1], 3), k(u, v.subblock_gain[2], 3)) : (k(u, 0, 1), v.table_select[0] == 14 && (v.table_select[0] = 16), k(u, v.table_select[0], 5), v.table_select[1] == 14 && (v.table_select[1] = 16), k(u, v.table_select[1], 5), v.table_select[2] == 14 && (v.table_select[2] = 16), k(u, v.table_select[2], 5), k(u, v.region0_count, 4), k(u, v.region1_count, 3)), k(u, v.scalefac_scale, 1), k(u, v.count1table_select, 1);
2933
2941
  }
2934
2942
  f.error_protection && M();
2935
2943
  {
2936
- var b = u.h_ptr;
2937
- u.h_ptr = b + 1 & ne.MAX_HEADER_BUF - 1, u.header[u.h_ptr].write_timing = u.header[b].write_timing + w, u.h_ptr == u.w_ptr;
2944
+ var p = u.h_ptr;
2945
+ u.h_ptr = p + 1 & ne.MAX_HEADER_BUF - 1, u.header[u.h_ptr].write_timing = u.header[p].write_timing + w, u.h_ptr == u.w_ptr;
2938
2946
  }
2939
2947
  }
2940
2948
  function E(f, w) {
2941
- var u = V.ht[w.count1table_select + 32], I, n = 0, P = w.big_values, d = w.big_values;
2949
+ var u = V.ht[w.count1table_select + 32], I, n = 0, H = w.big_values, d = w.big_values;
2942
2950
  for (I = (w.count1 - w.big_values) / 4; I > 0; --I) {
2943
- var v = 0, b = 0, x;
2944
- x = w.l3_enc[P + 0], x != 0 && (b += 8, w.xr[d + 0] < 0 && v++), x = w.l3_enc[P + 1], x != 0 && (b += 4, v *= 2, w.xr[d + 1] < 0 && v++), x = w.l3_enc[P + 2], x != 0 && (b += 2, v *= 2, w.xr[d + 2] < 0 && v++), x = w.l3_enc[P + 3], x != 0 && (b++, v *= 2, w.xr[d + 3] < 0 && v++), P += 4, d += 4, j(f, v + u.table[b], u.hlen[b]), n += u.hlen[b];
2951
+ var v = 0, p = 0, x;
2952
+ x = w.l3_enc[H + 0], x != 0 && (p += 8, w.xr[d + 0] < 0 && v++), x = w.l3_enc[H + 1], x != 0 && (p += 4, v *= 2, w.xr[d + 1] < 0 && v++), x = w.l3_enc[H + 2], x != 0 && (p += 2, v *= 2, w.xr[d + 2] < 0 && v++), x = w.l3_enc[H + 3], x != 0 && (p++, v *= 2, w.xr[d + 3] < 0 && v++), H += 4, d += 4, j(f, v + u.table[p], u.hlen[p]), n += u.hlen[p];
2945
2953
  }
2946
2954
  return n;
2947
2955
  }
2948
2956
  function B(f, w, u, I, n) {
2949
- var P = V.ht[w], d = 0;
2957
+ var H = V.ht[w], d = 0;
2950
2958
  if (w == 0)
2951
2959
  return d;
2952
2960
  for (var v = u; v < I; v += 2) {
2953
- var b = 0, x = 0, C = P.xlen, a = P.xlen, i = 0, W = n.l3_enc[v], L = n.l3_enc[v + 1];
2954
- if (W != 0 && (n.xr[v] < 0 && i++, b--), w > 15) {
2961
+ var p = 0, x = 0, C = H.xlen, a = H.xlen, i = 0, W = n.l3_enc[v], L = n.l3_enc[v + 1];
2962
+ if (W != 0 && (n.xr[v] < 0 && i++, p--), w > 15) {
2955
2963
  if (W > 14) {
2956
2964
  var Q = W - 15;
2957
2965
  i |= Q << 1, x = C, W = 15;
@@ -2962,7 +2970,7 @@ const a0 = s0;
2962
2970
  }
2963
2971
  a = 16;
2964
2972
  }
2965
- L != 0 && (i <<= 1, n.xr[v + 1] < 0 && i++, b--), W = W * a + L, x -= b, b += P.hlen[W], j(f, P.table[W], b), j(f, i, x), d += b + x;
2973
+ L != 0 && (i <<= 1, n.xr[v + 1] < 0 && i++, p--), W = W * a + L, x -= p, p += H.hlen[W], j(f, H.table[W], p), j(f, i, x), d += p + x;
2966
2974
  }
2967
2975
  return d;
2968
2976
  }
@@ -2979,75 +2987,75 @@ const a0 = s0;
2979
2987
  ), I;
2980
2988
  }
2981
2989
  function l(f, w) {
2982
- var u, I, n, P;
2990
+ var u, I, n, H;
2983
2991
  u = w.big_values;
2984
2992
  var d = w.region0_count + 1;
2985
- return n = f.scalefac_band.l[d], d += w.region1_count + 1, P = f.scalefac_band.l[d], n > u && (n = u), P > u && (P = u), I = B(f, w.table_select[0], 0, n, w), I += B(
2993
+ return n = f.scalefac_band.l[d], d += w.region1_count + 1, H = f.scalefac_band.l[d], n > u && (n = u), H > u && (H = u), I = B(f, w.table_select[0], 0, n, w), I += B(
2986
2994
  f,
2987
2995
  w.table_select[1],
2988
2996
  n,
2989
- P,
2997
+ H,
2990
2998
  w
2991
2999
  ), I += B(
2992
3000
  f,
2993
3001
  w.table_select[2],
2994
- P,
3002
+ H,
2995
3003
  u,
2996
3004
  w
2997
3005
  ), I;
2998
3006
  }
2999
3007
  function A(f) {
3000
- var w, u, I, n, P = 0, d = f.internal_flags, v = d.l3_side;
3008
+ var w, u, I, n, H = 0, d = f.internal_flags, v = d.l3_side;
3001
3009
  if (f.version == 1)
3002
3010
  for (w = 0; w < 2; w++)
3003
3011
  for (u = 0; u < d.channels_out; u++) {
3004
- var b = v.tt[w][u], x = $e.slen1_tab[b.scalefac_compress], C = $e.slen2_tab[b.scalefac_compress];
3005
- for (n = 0, I = 0; I < b.sfbdivide; I++)
3006
- b.scalefac[I] != -1 && (j(d, b.scalefac[I], x), n += x);
3007
- for (; I < b.sfbmax; I++)
3008
- b.scalefac[I] != -1 && (j(d, b.scalefac[I], C), n += C);
3009
- b.block_type == s.SHORT_TYPE ? n += t(d, b) : n += l(d, b), n += E(d, b), P += n;
3012
+ var p = v.tt[w][u], x = $e.slen1_tab[p.scalefac_compress], C = $e.slen2_tab[p.scalefac_compress];
3013
+ for (n = 0, I = 0; I < p.sfbdivide; I++)
3014
+ p.scalefac[I] != -1 && (j(d, p.scalefac[I], x), n += x);
3015
+ for (; I < p.sfbmax; I++)
3016
+ p.scalefac[I] != -1 && (j(d, p.scalefac[I], C), n += C);
3017
+ p.block_type == s.SHORT_TYPE ? n += t(d, p) : n += l(d, p), n += E(d, p), H += n;
3010
3018
  }
3011
3019
  else
3012
3020
  for (w = 0, u = 0; u < d.channels_out; u++) {
3013
- var b = v.tt[w][u], a, i, W = 0;
3014
- if (n = 0, I = 0, i = 0, b.block_type == s.SHORT_TYPE) {
3021
+ var p = v.tt[w][u], a, i, W = 0;
3022
+ if (n = 0, I = 0, i = 0, p.block_type == s.SHORT_TYPE) {
3015
3023
  for (; i < 4; i++) {
3016
- var L = b.sfb_partition_table[i] / 3, Q = b.slen[i];
3024
+ var L = p.sfb_partition_table[i] / 3, Q = p.slen[i];
3017
3025
  for (a = 0; a < L; a++, I++)
3018
3026
  j(
3019
3027
  d,
3020
- Math.max(b.scalefac[I * 3 + 0], 0),
3028
+ Math.max(p.scalefac[I * 3 + 0], 0),
3021
3029
  Q
3022
3030
  ), j(
3023
3031
  d,
3024
- Math.max(b.scalefac[I * 3 + 1], 0),
3032
+ Math.max(p.scalefac[I * 3 + 1], 0),
3025
3033
  Q
3026
3034
  ), j(
3027
3035
  d,
3028
- Math.max(b.scalefac[I * 3 + 2], 0),
3036
+ Math.max(p.scalefac[I * 3 + 2], 0),
3029
3037
  Q
3030
3038
  ), W += 3 * Q;
3031
3039
  }
3032
- n += t(d, b);
3040
+ n += t(d, p);
3033
3041
  } else {
3034
3042
  for (; i < 4; i++) {
3035
- var L = b.sfb_partition_table[i], Q = b.slen[i];
3043
+ var L = p.sfb_partition_table[i], Q = p.slen[i];
3036
3044
  for (a = 0; a < L; a++, I++)
3037
- j(d, Math.max(b.scalefac[I], 0), Q), W += Q;
3045
+ j(d, Math.max(p.scalefac[I], 0), Q), W += Q;
3038
3046
  }
3039
- n += l(d, b);
3047
+ n += l(d, p);
3040
3048
  }
3041
- n += E(d, b), P += W + n;
3049
+ n += E(d, p), H += W + n;
3042
3050
  }
3043
- return P;
3051
+ return H;
3044
3052
  }
3045
3053
  function F() {
3046
3054
  this.total = 0;
3047
3055
  }
3048
3056
  function y(f, w) {
3049
- var u = f.internal_flags, I, n, P;
3050
- return u.w_ptr, P = u.h_ptr - 1, P == -1 && (P = ne.MAX_HEADER_BUF - 1), I = u.header[P].write_timing - oe, w.total = I, I >= 0 && M(), n = c.getframebits(f), I += n, w.total += n, w.total % 8 != 0 ? w.total = 1 + w.total / 8 : w.total = w.total / 8, w.total += g + 1, I;
3057
+ var u = f.internal_flags, I, n, H;
3058
+ return u.w_ptr, H = u.h_ptr - 1, H == -1 && (H = ne.MAX_HEADER_BUF - 1), I = u.header[H].write_timing - oe, w.total = I, I >= 0 && M(), n = c.getframebits(f), I += n, w.total += n, w.total % 8 != 0 ? w.total = 1 + w.total / 8 : w.total = w.total / 8, w.total += g + 1, I;
3051
3059
  }
3052
3060
  this.flush_bitstream = function(f) {
3053
3061
  var w = f.internal_flags, u, I;
@@ -3059,29 +3067,29 @@ const a0 = s0;
3059
3067
  K(f, u.resvDrain_pre), fe(f, I);
3060
3068
  var n = 8 * w.sideinfo_len;
3061
3069
  if (n += A(f), K(f, u.resvDrain_post), n += u.resvDrain_post, u.main_data_begin += (I - n) / 8, y(f, new F()) != w.ResvSize, u.main_data_begin * 8 != w.ResvSize && (w.ResvSize = u.main_data_begin * 8), oe > 1e9) {
3062
- var P;
3063
- for (P = 0; P < ne.MAX_HEADER_BUF; ++P)
3064
- w.header[P].write_timing -= oe;
3070
+ var H;
3071
+ for (H = 0; H < ne.MAX_HEADER_BUF; ++H)
3072
+ w.header[H].write_timing -= oe;
3065
3073
  oe = 0;
3066
3074
  }
3067
3075
  return 0;
3068
3076
  }, this.copy_buffer = function(f, w, u, I, n) {
3069
- var P = g + 1;
3070
- if (P <= 0)
3077
+ var H = g + 1;
3078
+ if (H <= 0)
3071
3079
  return 0;
3072
- if (I != 0 && P > I)
3080
+ if (I != 0 && H > I)
3073
3081
  return -1;
3074
- if (ue.arraycopy(T, 0, w, u, P), g = -1, z = 0, n != 0) {
3082
+ if (ue.arraycopy(T, 0, w, u, H), g = -1, z = 0, n != 0) {
3075
3083
  var d = re(1);
3076
- d[0] = f.nMusicCRC, H.updateMusicCRC(d, w, u, P), f.nMusicCRC = d[0], P > 0 && (f.VBR_seek_table.nBytesWritten += P), f.decode_on_the_fly && M();
3084
+ d[0] = f.nMusicCRC, P.updateMusicCRC(d, w, u, H), f.nMusicCRC = d[0], H > 0 && (f.VBR_seek_table.nBytesWritten += H), f.decode_on_the_fly && M();
3077
3085
  }
3078
- return P;
3086
+ return H;
3079
3087
  }, this.init_bit_stream_w = function(f) {
3080
3088
  T = J(se.LAME_MAXMP3BUFFER), f.h_ptr = f.w_ptr = 0, f.header[f.h_ptr].write_timing = 0, g = -1, z = 0, oe = 0;
3081
3089
  };
3082
3090
  }
3083
- function Le(c, N, H, T) {
3084
- this.xlen = c, this.linmax = N, this.table = H, this.hlen = T;
3091
+ function Le(c, N, P, T) {
3092
+ this.xlen = c, this.linmax = N, this.table = P, this.hlen = T;
3085
3093
  }
3086
3094
  var V = {};
3087
3095
  V.t1HB = [
@@ -6529,7 +6537,7 @@ const a0 = s0;
6529
6537
  [44100, 48e3, 32e3, -1],
6530
6538
  [11025, 12e3, 8e3, -1]
6531
6539
  ], V.scfsi_band = [0, 6, 11, 16, 21];
6532
- function pt(c) {
6540
+ function Mt(c) {
6533
6541
  this.bits = c;
6534
6542
  }
6535
6543
  function rt() {
@@ -6542,17 +6550,17 @@ const a0 = s0;
6542
6550
  function _t() {
6543
6551
  this.useAdjust = 0, this.aaSensitivityP = 0, this.adjust = 0, this.adjustLimit = 0, this.decay = 0, this.floor = 0, this.l = ie(s.SBMAX_l), this.s = ie(s.SBMAX_s), this.psfb21 = ie(s.PSFB21), this.psfb12 = ie(s.PSFB12), this.cb_l = ie(s.CBANDS), this.cb_s = ie(s.CBANDS), this.eql_w = ie(s.BLKSIZE / 2);
6544
6552
  }
6545
- function bt() {
6553
+ function pt() {
6546
6554
  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 = ze.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;
6547
6555
  }
6548
6556
  function ft(c) {
6549
6557
  var N = c;
6550
- this.quantize = N, this.iteration_loop = function(H, T, oe, g) {
6551
- var z = H.internal_flags, ae = ie(m.SFBMAX), j = ie(576), K = re(2), k = 0, fe = z.l3_side, E = new pt(k);
6552
- this.quantize.rv.ResvFrameBegin(H, E), k = E.bits;
6558
+ this.quantize = N, this.iteration_loop = function(P, T, oe, g) {
6559
+ var z = P.internal_flags, ae = ie(m.SFBMAX), j = ie(576), K = re(2), k = 0, fe = z.l3_side, E = new Mt(k);
6560
+ this.quantize.rv.ResvFrameBegin(P, E), k = E.bits;
6553
6561
  for (var B = 0; B < z.mode_gr; B++) {
6554
6562
  this.quantize.qupvt.on_pe(
6555
- H,
6563
+ P,
6556
6564
  T,
6557
6565
  K,
6558
6566
  k,
@@ -6565,12 +6573,12 @@ const a0 = s0;
6565
6573
  10,
6566
6574
  A * 0.1
6567
6575
  ), this.quantize.init_outer_loop(z, F), this.quantize.init_xrpow(z, F, j) && (this.quantize.qupvt.calc_xmin(
6568
- H,
6576
+ P,
6569
6577
  g[B][t],
6570
6578
  F,
6571
6579
  ae
6572
6580
  ), this.quantize.outer_loop(
6573
- H,
6581
+ P,
6574
6582
  F,
6575
6583
  ae,
6576
6584
  j,
@@ -6584,16 +6592,16 @@ const a0 = s0;
6584
6592
  }
6585
6593
  function De() {
6586
6594
  }
6587
- function R(c, N, H, T) {
6595
+ function R(c, N, P, T) {
6588
6596
  this.l = re(1 + s.SBMAX_l), this.s = re(1 + s.SBMAX_s), this.psfb21 = re(1 + s.PSFB21), this.psfb12 = re(1 + s.PSFB12);
6589
6597
  var oe = this.l, g = this.s;
6590
6598
  arguments.length == 4 && (this.arrL = arguments[0], this.arrS = arguments[1], this.arr21 = arguments[2], this.arr12 = arguments[3], ue.arraycopy(this.arrL, 0, oe, 0, Math.min(this.arrL.length, this.l.length)), ue.arraycopy(this.arrS, 0, g, 0, Math.min(this.arrS.length, this.s.length)), ue.arraycopy(this.arr21, 0, this.psfb21, 0, Math.min(this.arr21.length, this.psfb21.length)), ue.arraycopy(this.arr12, 0, this.psfb12, 0, Math.min(this.arr12.length, this.psfb12.length)));
6591
6599
  }
6592
6600
  e.Q_MAX = 256 + 1, e.Q_MAX2 = 116, e.LARGE_BITS = 1e5, e.IXMAX_VAL = 8206;
6593
6601
  function e() {
6594
- var c = null, N = null, H = null;
6602
+ var c = null, N = null, P = null;
6595
6603
  this.setModules = function(y, f, w) {
6596
- c = y, N = f, H = w;
6604
+ c = y, N = f, P = w;
6597
6605
  };
6598
6606
  function T(y) {
6599
6607
  return fe[y + e.Q_MAX2];
@@ -6973,45 +6981,45 @@ const a0 = s0;
6973
6981
  var fe = ie(ae + j + 1), E = ie(ae), B = ie(z), t = ie(z);
6974
6982
  this.adj43 = t;
6975
6983
  function l(y, f) {
6976
- var w = H.ATHformula(f, y);
6984
+ var w = P.ATHformula(f, y);
6977
6985
  return w -= K, w = Math.pow(10, w / 10 + y.ATHlower), w;
6978
6986
  }
6979
6987
  function A(y) {
6980
- for (var f = y.internal_flags.ATH.l, w = y.internal_flags.ATH.psfb21, u = y.internal_flags.ATH.s, I = y.internal_flags.ATH.psfb12, n = y.internal_flags, P = y.out_samplerate, d = 0; d < s.SBMAX_l; d++) {
6981
- var v = n.scalefac_band.l[d], b = n.scalefac_band.l[d + 1];
6988
+ for (var f = y.internal_flags.ATH.l, w = y.internal_flags.ATH.psfb21, u = y.internal_flags.ATH.s, I = y.internal_flags.ATH.psfb12, n = y.internal_flags, H = y.out_samplerate, d = 0; d < s.SBMAX_l; d++) {
6989
+ var v = n.scalefac_band.l[d], p = n.scalefac_band.l[d + 1];
6982
6990
  f[d] = Ye.MAX_VALUE;
6983
- for (var x = v; x < b; x++) {
6984
- var C = x * P / 1152, a = l(y, C);
6991
+ for (var x = v; x < p; x++) {
6992
+ var C = x * H / 1152, a = l(y, C);
6985
6993
  f[d] = Math.min(f[d], a);
6986
6994
  }
6987
6995
  }
6988
6996
  for (var d = 0; d < s.PSFB21; d++) {
6989
- var v = n.scalefac_band.psfb21[d], b = n.scalefac_band.psfb21[d + 1];
6997
+ var v = n.scalefac_band.psfb21[d], p = n.scalefac_band.psfb21[d + 1];
6990
6998
  w[d] = Ye.MAX_VALUE;
6991
- for (var x = v; x < b; x++) {
6992
- var C = x * P / 1152, a = l(y, C);
6999
+ for (var x = v; x < p; x++) {
7000
+ var C = x * H / 1152, a = l(y, C);
6993
7001
  w[d] = Math.min(w[d], a);
6994
7002
  }
6995
7003
  }
6996
7004
  for (var d = 0; d < s.SBMAX_s; d++) {
6997
- var v = n.scalefac_band.s[d], b = n.scalefac_band.s[d + 1];
7005
+ var v = n.scalefac_band.s[d], p = n.scalefac_band.s[d + 1];
6998
7006
  u[d] = Ye.MAX_VALUE;
6999
- for (var x = v; x < b; x++) {
7000
- var C = x * P / 384, a = l(y, C);
7007
+ for (var x = v; x < p; x++) {
7008
+ var C = x * H / 384, a = l(y, C);
7001
7009
  u[d] = Math.min(u[d], a);
7002
7010
  }
7003
7011
  u[d] *= n.scalefac_band.s[d + 1] - n.scalefac_band.s[d];
7004
7012
  }
7005
7013
  for (var d = 0; d < s.PSFB12; d++) {
7006
- var v = n.scalefac_band.psfb12[d], b = n.scalefac_band.psfb12[d + 1];
7014
+ var v = n.scalefac_band.psfb12[d], p = n.scalefac_band.psfb12[d + 1];
7007
7015
  I[d] = Ye.MAX_VALUE;
7008
- for (var x = v; x < b; x++) {
7009
- var C = x * P / 384, a = l(y, C);
7016
+ for (var x = v; x < p; x++) {
7017
+ var C = x * H / 384, a = l(y, C);
7010
7018
  I[d] = Math.min(I[d], a);
7011
7019
  }
7012
7020
  I[d] *= n.scalefac_band.s[13] - n.scalefac_band.s[12];
7013
7021
  }
7014
- y.noATH && M(), n.ATH.floor = 10 * p(l(y, -1));
7022
+ y.noATH && M(), n.ATH.floor = 10 * b(l(y, -1));
7015
7023
  }
7016
7024
  this.iteration_init = function(y) {
7017
7025
  var f = y.internal_flags, w = f.l3_side, u;
@@ -7029,77 +7037,77 @@ const a0 = s0;
7029
7037
  fe[u] = Math.pow(2, (u - 210 - j) * 0.25);
7030
7038
  c.huffman_init(f);
7031
7039
  {
7032
- var I, n, P, d;
7033
- for (u = y.exp_nspsytune >> 2 & 63, u >= 32 && (u -= 64), I = Math.pow(10, u / 4 / 10), u = y.exp_nspsytune >> 8 & 63, u >= 32 && (u -= 64), n = Math.pow(10, u / 4 / 10), u = y.exp_nspsytune >> 14 & 63, u >= 32 && (u -= 64), P = Math.pow(10, u / 4 / 10), u = y.exp_nspsytune >> 20 & 63, u >= 32 && (u -= 64), d = P * Math.pow(10, u / 4 / 10), u = 0; u < s.SBMAX_l; u++) {
7040
+ var I, n, H, d;
7041
+ for (u = y.exp_nspsytune >> 2 & 63, u >= 32 && (u -= 64), I = Math.pow(10, u / 4 / 10), u = y.exp_nspsytune >> 8 & 63, u >= 32 && (u -= 64), n = Math.pow(10, u / 4 / 10), u = y.exp_nspsytune >> 14 & 63, u >= 32 && (u -= 64), H = Math.pow(10, u / 4 / 10), u = y.exp_nspsytune >> 20 & 63, u >= 32 && (u -= 64), d = H * Math.pow(10, u / 4 / 10), u = 0; u < s.SBMAX_l; u++) {
7034
7042
  var v;
7035
- u <= 6 ? v = I : u <= 13 ? v = n : u <= 20 ? v = P : v = d, f.nsPsy.longfact[u] = v;
7043
+ u <= 6 ? v = I : u <= 13 ? v = n : u <= 20 ? v = H : v = d, f.nsPsy.longfact[u] = v;
7036
7044
  }
7037
7045
  for (u = 0; u < s.SBMAX_s; u++) {
7038
7046
  var v;
7039
- u <= 5 ? v = I : u <= 10 ? v = n : u <= 11 ? v = P : v = d, f.nsPsy.shortfact[u] = v;
7047
+ u <= 5 ? v = I : u <= 10 ? v = n : u <= 11 ? v = H : v = d, f.nsPsy.shortfact[u] = v;
7040
7048
  }
7041
7049
  }
7042
7050
  }
7043
7051
  }, this.on_pe = function(y, f, w, u, I, n) {
7044
- var P = y.internal_flags, d = 0, v, b = re(2), x, C = new pt(d), a = N.ResvMaxBits(y, u, C, n);
7052
+ var H = y.internal_flags, d = 0, v, p = re(2), x, C = new Mt(d), a = N.ResvMaxBits(y, u, C, n);
7045
7053
  d = C.bits;
7046
7054
  var i = d + a;
7047
- for (i > ne.MAX_BITS_PER_GRANULE && (i = ne.MAX_BITS_PER_GRANULE), v = 0, x = 0; x < P.channels_out; ++x)
7055
+ for (i > ne.MAX_BITS_PER_GRANULE && (i = ne.MAX_BITS_PER_GRANULE), v = 0, x = 0; x < H.channels_out; ++x)
7048
7056
  w[x] = Math.min(
7049
7057
  ne.MAX_BITS_PER_CHANNEL,
7050
- d / P.channels_out
7051
- ), b[x] = 0 | w[x] * f[I][x] / 700 - w[x], b[x] > u * 3 / 4 && (b[x] = u * 3 / 4), b[x] < 0 && (b[x] = 0), b[x] + w[x] > ne.MAX_BITS_PER_CHANNEL && (b[x] = Math.max(
7058
+ d / H.channels_out
7059
+ ), p[x] = 0 | w[x] * f[I][x] / 700 - w[x], p[x] > u * 3 / 4 && (p[x] = u * 3 / 4), p[x] < 0 && (p[x] = 0), p[x] + w[x] > ne.MAX_BITS_PER_CHANNEL && (p[x] = Math.max(
7052
7060
  0,
7053
7061
  ne.MAX_BITS_PER_CHANNEL - w[x]
7054
- )), v += b[x];
7062
+ )), v += p[x];
7055
7063
  if (v > a)
7056
- for (x = 0; x < P.channels_out; ++x)
7057
- b[x] = a * b[x] / v;
7058
- for (x = 0; x < P.channels_out; ++x)
7059
- w[x] += b[x], a -= b[x];
7060
- for (v = 0, x = 0; x < P.channels_out; ++x)
7064
+ for (x = 0; x < H.channels_out; ++x)
7065
+ p[x] = a * p[x] / v;
7066
+ for (x = 0; x < H.channels_out; ++x)
7067
+ w[x] += p[x], a -= p[x];
7068
+ for (v = 0, x = 0; x < H.channels_out; ++x)
7061
7069
  v += w[x];
7062
7070
  return v > ne.MAX_BITS_PER_GRANULE && M(), i;
7063
7071
  }, this.athAdjust = function(y, f, w) {
7064
- var u = 90.30873362, I = 94.82444863, n = ge.FAST_LOG10_X(f, 10), P = y * y, d = 0;
7065
- return n -= w, P > 1e-20 && (d = 1 + ge.FAST_LOG10_X(P, 10 / u)), d < 0 && (d = 0), n *= d, n += w + u - I, Math.pow(10, 0.1 * n);
7072
+ var u = 90.30873362, I = 94.82444863, n = ge.FAST_LOG10_X(f, 10), H = y * y, d = 0;
7073
+ return n -= w, H > 1e-20 && (d = 1 + ge.FAST_LOG10_X(H, 10 / u)), d < 0 && (d = 0), n *= d, n += w + u - I, Math.pow(10, 0.1 * n);
7066
7074
  }, this.calc_xmin = function(y, f, w, u) {
7067
- var I = 0, n = y.internal_flags, P, d = 0, v = 0, b = n.ATH, x = w.xr, C = y.VBR == de.vbr_mtrh ? 1 : 0, a = n.masking_lower;
7068
- for ((y.VBR == de.vbr_mtrh || y.VBR == de.vbr_mt) && (a = 1), P = 0; P < w.psy_lmax; P++) {
7075
+ var I = 0, n = y.internal_flags, H, d = 0, v = 0, p = n.ATH, x = w.xr, C = y.VBR == de.vbr_mtrh ? 1 : 0, a = n.masking_lower;
7076
+ for ((y.VBR == de.vbr_mtrh || y.VBR == de.vbr_mt) && (a = 1), H = 0; H < w.psy_lmax; H++) {
7069
7077
  var i, W, L, Q, le, _e;
7070
- y.VBR == de.vbr_rh || y.VBR == de.vbr_mtrh ? W = athAdjust(b.adjust, b.l[P], b.floor) : W = b.adjust * b.l[P], le = w.width[P], L = W / le, Q = oe, _e = le >> 1, i = 0;
7078
+ y.VBR == de.vbr_rh || y.VBR == de.vbr_mtrh ? W = athAdjust(p.adjust, p.l[H], p.floor) : W = p.adjust * p.l[H], le = w.width[H], L = W / le, Q = oe, _e = le >> 1, i = 0;
7071
7079
  do {
7072
- var be, je;
7073
- be = x[d] * x[d], i += be, Q += be < L ? be : L, d++, je = x[d] * x[d], i += je, Q += je < L ? je : L, d++;
7080
+ var pe, je;
7081
+ pe = x[d] * x[d], i += pe, Q += pe < L ? pe : L, d++, je = x[d] * x[d], i += je, Q += je < L ? je : L, d++;
7074
7082
  } while (--_e > 0);
7075
- if (i > W && v++, P == s.SBPSY_l && M(), C != 0 && (W = Q), !y.ATHonly) {
7076
- var Pe = f.en.l[P];
7077
- if (Pe > 0) {
7083
+ if (i > W && v++, H == s.SBPSY_l && M(), C != 0 && (W = Q), !y.ATHonly) {
7084
+ var He = f.en.l[H];
7085
+ if (He > 0) {
7078
7086
  var Ue;
7079
- Ue = i * f.thm.l[P] * a / Pe, C != 0 && (Ue *= n.nsPsy.longfact[P]), W < Ue && (W = Ue);
7087
+ Ue = i * f.thm.l[H] * a / He, C != 0 && (Ue *= n.nsPsy.longfact[H]), W < Ue && (W = Ue);
7080
7088
  }
7081
7089
  }
7082
- C != 0 ? u[I++] = W : u[I++] = W * n.nsPsy.longfact[P];
7090
+ C != 0 ? u[I++] = W : u[I++] = W * n.nsPsy.longfact[H];
7083
7091
  }
7084
7092
  var ht = 575;
7085
7093
  if (w.block_type != s.SHORT_TYPE)
7086
7094
  for (var vt = 576; vt-- != 0 && Xe.EQ(x[vt], 0); )
7087
7095
  ht = vt;
7088
7096
  w.max_nonzero_coeff = ht;
7089
- for (var ot = w.sfb_smin; P < w.psymax; ot++, P += 3) {
7097
+ for (var ot = w.sfb_smin; H < w.psymax; ot++, H += 3) {
7090
7098
  var le, ct, gt;
7091
- for (y.VBR == de.vbr_rh || y.VBR == de.vbr_mtrh ? gt = athAdjust(b.adjust, b.s[ot], b.floor) : gt = b.adjust * b.s[ot], le = w.width[P], ct = 0; ct < 3; ct++) {
7099
+ for (y.VBR == de.vbr_rh || y.VBR == de.vbr_mtrh ? gt = athAdjust(p.adjust, p.s[ot], p.floor) : gt = p.adjust * p.s[ot], le = w.width[H], ct = 0; ct < 3; ct++) {
7092
7100
  var i = 0, W, L, Q, _e = le >> 1;
7093
7101
  L = gt / le, Q = oe;
7094
7102
  do {
7095
- var be, je;
7096
- be = x[d] * x[d], i += be, Q += be < L ? be : L, d++, je = x[d] * x[d], i += je, Q += je < L ? je : L, d++;
7103
+ var pe, je;
7104
+ pe = x[d] * x[d], i += pe, Q += pe < L ? pe : L, d++, je = x[d] * x[d], i += je, Q += je < L ? je : L, d++;
7097
7105
  } while (--_e > 0);
7098
7106
  if (i > gt && v++, ot == s.SBPSY_s && M(), C != 0 ? W = Q : W = gt, !y.ATHonly && !y.ATHshort) {
7099
- var Pe = f.en.s[ot][ct];
7100
- if (Pe > 0) {
7107
+ var He = f.en.s[ot][ct];
7108
+ if (He > 0) {
7101
7109
  var Ue;
7102
- Ue = i * f.thm.s[ot][ct] * a / Pe, C != 0 && (Ue *= n.nsPsy.shortfact[ot]), W < Ue && (W = Ue);
7110
+ Ue = i * f.thm.s[ot][ct] * a / He, C != 0 && (Ue *= n.nsPsy.shortfact[ot]), W < Ue && (W = Ue);
7103
7111
  }
7104
7112
  }
7105
7113
  C != 0 ? u[I++] = W : u[I++] = W * n.nsPsy.shortfact[ot];
@@ -7112,7 +7120,7 @@ const a0 = s0;
7112
7120
  this.s = y;
7113
7121
  }
7114
7122
  this.calc_noise_core = function(y, f, w, u) {
7115
- var I = 0, n = f.s, P = y.l3_enc;
7123
+ var I = 0, n = f.s, H = y.l3_enc;
7116
7124
  if (n > y.count1)
7117
7125
  for (; w-- != 0; ) {
7118
7126
  var d;
@@ -7122,36 +7130,36 @@ const a0 = s0;
7122
7130
  var v = ie(2);
7123
7131
  for (v[0] = 0, v[1] = u; w-- != 0; ) {
7124
7132
  var d;
7125
- d = Math.abs(y.xr[n]) - v[P[n]], n++, I += d * d, d = Math.abs(y.xr[n]) - v[P[n]], n++, I += d * d;
7133
+ d = Math.abs(y.xr[n]) - v[H[n]], n++, I += d * d, d = Math.abs(y.xr[n]) - v[H[n]], n++, I += d * d;
7126
7134
  }
7127
7135
  } else
7128
7136
  for (; w-- != 0; ) {
7129
7137
  var d;
7130
- d = Math.abs(y.xr[n]) - B[P[n]] * u, n++, I += d * d, d = Math.abs(y.xr[n]) - B[P[n]] * u, n++, I += d * d;
7138
+ d = Math.abs(y.xr[n]) - B[H[n]] * u, n++, I += d * d, d = Math.abs(y.xr[n]) - B[H[n]] * u, n++, I += d * d;
7131
7139
  }
7132
7140
  return f.s = n, I;
7133
7141
  }, this.calc_noise = function(y, f, w, u, I) {
7134
- var n = 0, P = 0, d, v, b = 0, x = 0, C = 0, a = -20, i = 0, W = y.scalefac, L = 0;
7142
+ var n = 0, H = 0, d, v, p = 0, x = 0, C = 0, a = -20, i = 0, W = y.scalefac, L = 0;
7135
7143
  for (u.over_SSD = 0, d = 0; d < y.psymax; d++) {
7136
7144
  var Q = y.global_gain - (W[L++] + (y.preflag != 0 ? k[d] : 0) << y.scalefac_scale + 1) - y.subblock_gain[y.window[d]] * 8, le = 0;
7137
7145
  if (I != null && I.step[d] == Q)
7138
- le = I.noise[d], i += y.width[d], w[n++] = le / f[P++], le = I.noise_log[d];
7146
+ le = I.noise[d], i += y.width[d], w[n++] = le / f[H++], le = I.noise_log[d];
7139
7147
  else {
7140
7148
  var _e = T(Q);
7141
7149
  if (v = y.width[d] >> 1, i + y.width[d] > y.max_nonzero_coeff) {
7142
- var be;
7143
- be = y.max_nonzero_coeff - i + 1, be > 0 ? v = be >> 1 : v = 0;
7150
+ var pe;
7151
+ pe = y.max_nonzero_coeff - i + 1, pe > 0 ? v = pe >> 1 : v = 0;
7144
7152
  }
7145
7153
  var je = new F(i);
7146
- le = this.calc_noise_core(y, je, v, _e), i = je.s, I != null && (I.step[d] = Q, I.noise[d] = le), le = w[n++] = le / f[P++], le = ge.FAST_LOG10(Math.max(le, 1e-20)), I != null && (I.noise_log[d] = le);
7154
+ le = this.calc_noise_core(y, je, v, _e), i = je.s, I != null && (I.step[d] = Q, I.noise[d] = le), le = w[n++] = le / f[H++], le = ge.FAST_LOG10(Math.max(le, 1e-20)), I != null && (I.noise_log[d] = le);
7147
7155
  }
7148
7156
  if (I != null && (I.global_gain = y.global_gain), C += le, le > 0) {
7149
- var Pe;
7150
- Pe = Math.max(0 | le * 10 + 0.5, 1), u.over_SSD += Pe * Pe, b++, x += le;
7157
+ var He;
7158
+ He = Math.max(0 | le * 10 + 0.5, 1), u.over_SSD += He * He, p++, x += le;
7151
7159
  }
7152
7160
  a = Math.max(a, le);
7153
7161
  }
7154
- return u.over_count = b, u.tot_noise = C, u.over_noise = x, u.max_noise = a, b;
7162
+ return u.over_count = p, u.tot_noise = C, u.over_noise = x, u.max_noise = a, p;
7155
7163
  };
7156
7164
  }
7157
7165
  function o() {
@@ -7163,11 +7171,11 @@ const a0 = s0;
7163
7171
  function N(T) {
7164
7172
  return new Int32Array(T);
7165
7173
  }
7166
- function H(T) {
7174
+ function P(T) {
7167
7175
  return new Float32Array(T);
7168
7176
  }
7169
7177
  this.assign = function(T) {
7170
- c.xr = H(T.xr), c.l3_enc = N(T.l3_enc), c.scalefac = N(T.scalefac), c.xrpow_max = T.xrpow_max, c.part2_3_length = T.part2_3_length, c.big_values = T.big_values, c.count1 = T.count1, c.global_gain = T.global_gain, c.scalefac_compress = T.scalefac_compress, c.block_type = T.block_type, c.mixed_block_flag = T.mixed_block_flag, c.table_select = N(T.table_select), c.subblock_gain = N(T.subblock_gain), c.region0_count = T.region0_count, c.region1_count = T.region1_count, c.preflag = T.preflag, c.scalefac_scale = T.scalefac_scale, c.count1table_select = T.count1table_select, c.part2_length = T.part2_length, c.sfb_lmax = T.sfb_lmax, c.sfb_smin = T.sfb_smin, c.psy_lmax = T.psy_lmax, c.sfbmax = T.sfbmax, c.psymax = T.psymax, c.sfbdivide = T.sfbdivide, c.width = N(T.width), c.window = N(T.window), c.count1bits = T.count1bits, c.sfb_partition_table = T.sfb_partition_table.slice(0), c.slen = N(T.slen), c.max_nonzero_coeff = T.max_nonzero_coeff;
7178
+ c.xr = P(T.xr), c.l3_enc = N(T.l3_enc), c.scalefac = N(T.scalefac), c.xrpow_max = T.xrpow_max, c.part2_3_length = T.part2_3_length, c.big_values = T.big_values, c.count1 = T.count1, c.global_gain = T.global_gain, c.scalefac_compress = T.scalefac_compress, c.block_type = T.block_type, c.mixed_block_flag = T.mixed_block_flag, c.table_select = N(T.table_select), c.subblock_gain = N(T.subblock_gain), c.region0_count = T.region0_count, c.region1_count = T.region1_count, c.preflag = T.preflag, c.scalefac_scale = T.scalefac_scale, c.count1table_select = T.count1table_select, c.part2_length = T.part2_length, c.sfb_lmax = T.sfb_lmax, c.sfb_smin = T.sfb_smin, c.psy_lmax = T.psy_lmax, c.sfbmax = T.sfbmax, c.psymax = T.psymax, c.sfbdivide = T.sfbdivide, c.width = N(T.width), c.window = N(T.window), c.count1bits = T.count1bits, c.sfb_partition_table = T.sfb_partition_table.slice(0), c.slen = N(T.slen), c.max_nonzero_coeff = T.max_nonzero_coeff;
7171
7179
  };
7172
7180
  }
7173
7181
  var m = {};
@@ -7176,9 +7184,9 @@ const a0 = s0;
7176
7184
  this.rv = null;
7177
7185
  var c;
7178
7186
  this.qupvt = null;
7179
- var N, H = new qe(), T;
7187
+ var N, P = new qe(), T;
7180
7188
  this.setModules = function(t, l, A, F) {
7181
- c = l, this.rv = l, N = A, this.qupvt = A, T = F, H.setModules(N, T);
7189
+ c = l, this.rv = l, N = A, this.qupvt = A, T = F, P.setModules(N, T);
7182
7190
  };
7183
7191
  function oe(t, l, A, F) {
7184
7192
  F = 0;
@@ -7218,9 +7226,9 @@ const a0 = s0;
7218
7226
  }
7219
7227
  }
7220
7228
  else
7221
- for (var P = 0; P < 3; P++)
7229
+ for (var H = 0; H < 3; H++)
7222
7230
  for (var y = !1, f = s.PSFB12 - 1; f >= 0 && !y; f--) {
7223
- var w = t.scalefac_band.s[12] * 3 + (t.scalefac_band.s[13] - t.scalefac_band.s[12]) * P + (t.scalefac_band.psfb12[f] - t.scalefac_band.psfb12[0]), u = w + (t.scalefac_band.psfb12[f + 1] - t.scalefac_band.psfb12[f]), d = N.athAdjust(
7231
+ var w = t.scalefac_band.s[12] * 3 + (t.scalefac_band.s[13] - t.scalefac_band.s[12]) * H + (t.scalefac_band.psfb12[f] - t.scalefac_band.psfb12[0]), u = w + (t.scalefac_band.psfb12[f + 1] - t.scalefac_band.psfb12[f]), d = N.athAdjust(
7224
7232
  A.adjust,
7225
7233
  A.psfb12[f],
7226
7234
  A.floor
@@ -7260,10 +7268,10 @@ const a0 = s0;
7260
7268
  function ae(t, l, A, F, y) {
7261
7269
  var f, w = t.CurrentStep[F], u = !1, I = t.OldValue[F], n = z.BINSEARCH_NONE;
7262
7270
  for (l.global_gain = I, A -= l.part2_length; ; ) {
7263
- var P;
7271
+ var H;
7264
7272
  if (f = T.count_bits(t, y, l, null), w == 1 || f == A)
7265
7273
  break;
7266
- f > A ? (n == z.BINSEARCH_DOWN && (u = !0), u && (w /= 2), n = z.BINSEARCH_UP, P = w) : (n == z.BINSEARCH_UP && (u = !0), u && (w /= 2), n = z.BINSEARCH_DOWN, P = -w), l.global_gain += P, l.global_gain < 0 && M(), l.global_gain > 255 && M();
7274
+ f > A ? (n == z.BINSEARCH_DOWN && (u = !0), u && (w /= 2), n = z.BINSEARCH_UP, H = w) : (n == z.BINSEARCH_UP && (u = !0), u && (w /= 2), n = z.BINSEARCH_DOWN, H = -w), l.global_gain += H, l.global_gain < 0 && M(), l.global_gain > 255 && M();
7267
7275
  }
7268
7276
  for (; f > A && l.global_gain < 255; )
7269
7277
  l.global_gain++, f = T.count_bits(t, y, l, null);
@@ -7329,11 +7337,11 @@ const a0 = s0;
7329
7337
  u > 1 ? u = 1 : u *= 0.95;
7330
7338
  break;
7331
7339
  }
7332
- for (var P = 0, I = 0; I < l.sfbmax; I++) {
7340
+ for (var H = 0, I = 0; I < l.sfbmax; I++) {
7333
7341
  var d = l.width[I], v;
7334
- if (P += d, !(A[I] < u)) {
7342
+ if (H += d, !(A[I] < u)) {
7335
7343
  for (f.substep_shaping & 2 && M(), l.scalefac[I]++, v = -d; v < 0; v++)
7336
- F[P + v] *= w, F[P + v] > l.xrpow_max && (l.xrpow_max = F[P + v]);
7344
+ F[H + v] *= w, F[H + v] > l.xrpow_max && (l.xrpow_max = F[H + v]);
7337
7345
  if (f.noise_shaping_amp == 2)
7338
7346
  return;
7339
7347
  }
@@ -7368,9 +7376,9 @@ const a0 = s0;
7368
7376
  l.subblock_gain[f]++;
7369
7377
  var I = t.scalefac_band.l[l.sfb_lmax];
7370
7378
  for (F = l.sfb_lmax + f; F < l.sfbmax; F += 3) {
7371
- var n, P = l.width[F], d = y[F];
7379
+ var n, H = l.width[F], d = y[F];
7372
7380
  if (d = d - (4 >> l.scalefac_scale), d >= 0) {
7373
- y[F] = d, I += P * 3;
7381
+ y[F] = d, I += H * 3;
7374
7382
  continue;
7375
7383
  }
7376
7384
  y[F] = 0;
@@ -7378,16 +7386,16 @@ const a0 = s0;
7378
7386
  var v = 210 + (d << l.scalefac_scale + 1);
7379
7387
  n = N.IPOW20(v);
7380
7388
  }
7381
- I += P * (f + 1);
7382
- for (var b = -P; b < 0; b++)
7383
- A[I + b] *= n, A[I + b] > l.xrpow_max && (l.xrpow_max = A[I + b]);
7384
- I += P * (3 - f - 1);
7389
+ I += H * (f + 1);
7390
+ for (var p = -H; p < 0; p++)
7391
+ A[I + p] *= n, A[I + p] > l.xrpow_max && (l.xrpow_max = A[I + p]);
7392
+ I += H * (3 - f - 1);
7385
7393
  }
7386
7394
  {
7387
7395
  var n = N.IPOW20(202);
7388
7396
  I += l.width[F] * (f + 1);
7389
- for (var b = -l.width[F]; b < 0; b++)
7390
- A[I + b] *= n, A[I + b] > l.xrpow_max && (l.xrpow_max = A[I + b]);
7397
+ for (var p = -l.width[F]; p < 0; p++)
7398
+ A[I + p] *= n, A[I + p] > l.xrpow_max && (l.xrpow_max = A[I + p]);
7391
7399
  }
7392
7400
  }
7393
7401
  }
@@ -7400,16 +7408,16 @@ const a0 = s0;
7400
7408
  return w ? !1 : (f.mode_gr == 2 ? w = T.scale_bitcount(l) : w = T.scale_bitcount_lsf(f, l), w ? (f.noise_shaping > 1 && (Ze.fill(f.pseudohalf, 0), l.scalefac_scale == 0 ? (fe(l, F), w = !1) : l.block_type == s.SHORT_TYPE && f.subblock_gain > 0 && (w = E(f, l, F) || j(l))), w || (f.mode_gr == 2 ? w = T.scale_bitcount(l) : w = T.scale_bitcount_lsf(f, l)), !w) : !0);
7401
7409
  }
7402
7410
  this.outer_loop = function(t, l, A, F, y, f) {
7403
- var w = t.internal_flags, u = new h(), I = ie(576), n = ie(m.SFBMAX), P = new rt(), d, v = new o(), b = 9999999, x = !1, C = !1, a = 0;
7411
+ var w = t.internal_flags, u = new h(), I = ie(576), n = ie(m.SFBMAX), H = new rt(), d, v = new o(), p = 9999999, x = !1, C = !1, a = 0;
7404
7412
  if (ae(w, l, f, y, F), w.noise_shaping == 0)
7405
7413
  return 100;
7406
7414
  N.calc_noise(
7407
7415
  l,
7408
7416
  A,
7409
7417
  n,
7410
- P,
7418
+ H,
7411
7419
  v
7412
- ), P.bits = l.part2_3_length, u.assign(l);
7420
+ ), H.bits = l.part2_3_length, u.assign(l);
7413
7421
  var i = 0;
7414
7422
  for (ue.arraycopy(F, 0, I, 0, 576); !x; ) {
7415
7423
  do {
@@ -7429,13 +7437,13 @@ const a0 = s0;
7429
7437
  u.global_gain++;
7430
7438
  if (u.global_gain > Q)
7431
7439
  break;
7432
- if (P.over_count == 0) {
7440
+ if (H.over_count == 0) {
7433
7441
  for (; (u.part2_3_length = T.count_bits(
7434
7442
  w,
7435
7443
  F,
7436
7444
  u,
7437
7445
  v
7438
- )) > b && u.global_gain <= Q; )
7446
+ )) > p && u.global_gain <= Q; )
7439
7447
  u.global_gain++;
7440
7448
  if (u.global_gain > Q)
7441
7449
  break;
@@ -7446,14 +7454,14 @@ const a0 = s0;
7446
7454
  n,
7447
7455
  W,
7448
7456
  v
7449
- ), W.bits = u.part2_3_length, l.block_type != s.SHORT_TYPE ? d = t.quant_comp : d = t.quant_comp_short, d = K(d, P, W) ? 1 : 0, d != 0)
7450
- b = l.part2_3_length, P = W, l.assign(u), i = 0, ue.arraycopy(F, 0, I, 0, 576);
7451
- else if (w.full_outer_loop == 0 && (++i > L && P.over_count == 0 || w.noise_shaping_amp == 3 && C && i > 30 || w.noise_shaping_amp == 3 && C && u.global_gain - a > 15))
7457
+ ), W.bits = u.part2_3_length, l.block_type != s.SHORT_TYPE ? d = t.quant_comp : d = t.quant_comp_short, d = K(d, H, W) ? 1 : 0, d != 0)
7458
+ p = l.part2_3_length, H = W, l.assign(u), i = 0, ue.arraycopy(F, 0, I, 0, 576);
7459
+ else if (w.full_outer_loop == 0 && (++i > L && H.over_count == 0 || w.noise_shaping_amp == 3 && C && i > 30 || w.noise_shaping_amp == 3 && C && u.global_gain - a > 15))
7452
7460
  break;
7453
7461
  } while (u.global_gain + u.scalefac_scale < 255);
7454
7462
  w.noise_shaping_amp == 3 ? M() : x = !0;
7455
7463
  }
7456
- return t.VBR == de.vbr_rh || t.VBR == de.vbr_mtrh ? ue.arraycopy(I, 0, F, 0, 576) : w.substep_shaping & 1 && M(), P.over_count;
7464
+ return t.VBR == de.vbr_rh || t.VBR == de.vbr_mtrh ? ue.arraycopy(I, 0, F, 0, 576) : w.substep_shaping & 1 && M(), H.over_count;
7457
7465
  }, this.iteration_finish_one = function(t, l, A) {
7458
7466
  var F = t.l3_side, y = F.tt[l][A];
7459
7467
  T.best_scalefac_store(t, l, A, F), t.use_best_huffman == 1 && T.best_huffman_divide(t, y), c.ResvAdjust(t, y);
@@ -7760,7 +7768,7 @@ const a0 = s0;
7760
7768
  9.000838926174497,
7761
7769
  -29.20218120805369
7762
7770
  /* 2.384e-06/2.384e-06 */
7763
- ], N = 12, H = 36, T = [
7771
+ ], N = 12, P = 36, T = [
7764
7772
  [
7765
7773
  2382191739347913e-28,
7766
7774
  6423305872147834e-28,
@@ -7975,22 +7983,22 @@ const a0 = s0;
7975
7983
  function fe(E, B, t) {
7976
7984
  var l, A;
7977
7985
  {
7978
- var F, y, f, w, u, I, n, P;
7979
- F = t[17] - t[9], f = t[15] - t[11], w = t[14] - t[12], u = t[0] + t[8], I = t[1] + t[7], n = t[2] + t[6], P = t[3] + t[5], E[B + 17] = u + n - P - (I - t[4]), A = (u + n - P) * g[12 + 7] + (I - t[4]), l = (F - f - w) * g[12 + 6], E[B + 5] = l + A, E[B + 6] = l - A, y = (t[16] - t[10]) * g[12 + 6], I = I * g[12 + 7] + t[4], l = F * g[12 + 0] + y + f * g[12 + 1] + w * g[12 + 2], A = -u * g[12 + 4] + I - n * g[12 + 5] + P * g[12 + 3], E[B + 1] = l + A, E[B + 2] = l - A, l = F * g[12 + 1] - y - f * g[12 + 2] + w * g[12 + 0], A = -u * g[12 + 5] + I - n * g[12 + 3] + P * g[12 + 4], E[B + 9] = l + A, E[B + 10] = l - A, l = F * g[12 + 2] - y + f * g[12 + 0] - w * g[12 + 1], A = u * g[12 + 3] - I + n * g[12 + 4] - P * g[12 + 5], E[B + 13] = l + A, E[B + 14] = l - A;
7986
+ var F, y, f, w, u, I, n, H;
7987
+ F = t[17] - t[9], f = t[15] - t[11], w = t[14] - t[12], u = t[0] + t[8], I = t[1] + t[7], n = t[2] + t[6], H = t[3] + t[5], E[B + 17] = u + n - H - (I - t[4]), A = (u + n - H) * g[12 + 7] + (I - t[4]), l = (F - f - w) * g[12 + 6], E[B + 5] = l + A, E[B + 6] = l - A, y = (t[16] - t[10]) * g[12 + 6], I = I * g[12 + 7] + t[4], l = F * g[12 + 0] + y + f * g[12 + 1] + w * g[12 + 2], A = -u * g[12 + 4] + I - n * g[12 + 5] + H * g[12 + 3], E[B + 1] = l + A, E[B + 2] = l - A, l = F * g[12 + 1] - y - f * g[12 + 2] + w * g[12 + 0], A = -u * g[12 + 5] + I - n * g[12 + 3] + H * g[12 + 4], E[B + 9] = l + A, E[B + 10] = l - A, l = F * g[12 + 2] - y + f * g[12 + 0] - w * g[12 + 1], A = u * g[12 + 3] - I + n * g[12 + 4] - H * g[12 + 5], E[B + 13] = l + A, E[B + 14] = l - A;
7980
7988
  }
7981
7989
  {
7982
- var d, v, b, x, C, a, i, W;
7983
- d = t[8] - t[0], b = t[6] - t[2], x = t[5] - t[3], C = t[17] + t[9], a = t[16] + t[10], i = t[15] + t[11], W = t[14] + t[12], E[B + 0] = C + i + W + (a + t[13]), l = (C + i + W) * g[12 + 7] - (a + t[13]), A = (d - b + x) * g[12 + 6], E[B + 11] = l + A, E[B + 12] = l - A, v = (t[7] - t[1]) * g[12 + 6], a = t[13] - a * g[12 + 7], l = C * g[12 + 3] - a + i * g[12 + 4] + W * g[12 + 5], A = d * g[12 + 2] + v + b * g[12 + 0] + x * g[12 + 1], E[B + 3] = l + A, E[B + 4] = l - A, l = -C * g[12 + 5] + a - i * g[12 + 3] - W * g[12 + 4], A = d * g[12 + 1] + v - b * g[12 + 2] - x * g[12 + 0], E[B + 7] = l + A, E[B + 8] = l - A, l = -C * g[12 + 4] + a - i * g[12 + 5] - W * g[12 + 3], A = d * g[12 + 0] - v + b * g[12 + 1] - x * g[12 + 2], E[B + 15] = l + A, E[B + 16] = l - A;
7990
+ var d, v, p, x, C, a, i, W;
7991
+ d = t[8] - t[0], p = t[6] - t[2], x = t[5] - t[3], C = t[17] + t[9], a = t[16] + t[10], i = t[15] + t[11], W = t[14] + t[12], E[B + 0] = C + i + W + (a + t[13]), l = (C + i + W) * g[12 + 7] - (a + t[13]), A = (d - p + x) * g[12 + 6], E[B + 11] = l + A, E[B + 12] = l - A, v = (t[7] - t[1]) * g[12 + 6], a = t[13] - a * g[12 + 7], l = C * g[12 + 3] - a + i * g[12 + 4] + W * g[12 + 5], A = d * g[12 + 2] + v + p * g[12 + 0] + x * g[12 + 1], E[B + 3] = l + A, E[B + 4] = l - A, l = -C * g[12 + 5] + a - i * g[12 + 3] - W * g[12 + 4], A = d * g[12 + 1] + v - p * g[12 + 2] - x * g[12 + 0], E[B + 7] = l + A, E[B + 8] = l - A, l = -C * g[12 + 4] + a - i * g[12 + 5] - W * g[12 + 3], A = d * g[12 + 0] - v + p * g[12 + 1] - x * g[12 + 2], E[B + 15] = l + A, E[B + 16] = l - A;
7984
7992
  }
7985
7993
  }
7986
7994
  this.mdct_sub48 = function(E, B, t) {
7987
7995
  for (var l = B, A = 286, F = 0; F < E.channels_out; F++) {
7988
7996
  for (var y = 0; y < E.mode_gr; y++) {
7989
- for (var f, w = E.l3_side.tt[y][F], u = w.xr, I = 0, n = E.sb_sample[F][1 - y], P = 0, d = 0; d < 18 / 2; d++)
7990
- for (K(l, A, n[P]), K(l, A + 32, n[P + 1]), P += 2, A += 64, f = 1; f < 32; f += 2)
7991
- n[P - 1][f] *= -1;
7997
+ for (var f, w = E.l3_side.tt[y][F], u = w.xr, I = 0, n = E.sb_sample[F][1 - y], H = 0, d = 0; d < 18 / 2; d++)
7998
+ for (K(l, A, n[H]), K(l, A + 32, n[H + 1]), H += 2, A += 64, f = 1; f < 32; f += 2)
7999
+ n[H - 1][f] *= -1;
7992
8000
  for (f = 0; f < 32; f++, I += 18) {
7993
- var v = w.block_type, b = E.sb_sample[F][y], x = E.sb_sample[F][1 - y];
8001
+ var v = w.block_type, p = E.sb_sample[F][y], x = E.sb_sample[F][1 - y];
7994
8002
  if (w.mixed_block_flag != 0 && f < 2 && (v = 0), E.amp_filter[f] < 1e-12)
7995
8003
  Ze.fill(
7996
8004
  u,
@@ -8001,13 +8009,13 @@ const a0 = s0;
8001
8009
  else if (E.amp_filter[f] < 1 && M(), v == s.SHORT_TYPE) {
8002
8010
  for (var d = -N / 4; d < 0; d++) {
8003
8011
  var C = T[s.SHORT_TYPE][d + 3];
8004
- u[I + d * 3 + 9] = b[9 + d][j[f]] * C - b[8 - d][j[f]], u[I + d * 3 + 18] = b[14 - d][j[f]] * C + b[15 + d][j[f]], u[I + d * 3 + 10] = b[15 + d][j[f]] * C - b[14 - d][j[f]], u[I + d * 3 + 19] = x[2 - d][j[f]] * C + x[3 + d][j[f]], u[I + d * 3 + 11] = x[3 + d][j[f]] * C - x[2 - d][j[f]], u[I + d * 3 + 20] = x[8 - d][j[f]] * C + x[9 + d][j[f]];
8012
+ u[I + d * 3 + 9] = p[9 + d][j[f]] * C - p[8 - d][j[f]], u[I + d * 3 + 18] = p[14 - d][j[f]] * C + p[15 + d][j[f]], u[I + d * 3 + 10] = p[15 + d][j[f]] * C - p[14 - d][j[f]], u[I + d * 3 + 19] = x[2 - d][j[f]] * C + x[3 + d][j[f]], u[I + d * 3 + 11] = x[3 + d][j[f]] * C - x[2 - d][j[f]], u[I + d * 3 + 20] = x[8 - d][j[f]] * C + x[9 + d][j[f]];
8005
8013
  }
8006
8014
  k(u, I);
8007
8015
  } else {
8008
- for (var a = ie(18), d = -H / 4; d < 0; d++) {
8016
+ for (var a = ie(18), d = -P / 4; d < 0; d++) {
8009
8017
  var i, W;
8010
- i = T[v][d + 27] * x[d + 9][j[f]] + T[v][d + 36] * x[8 - d][j[f]], W = T[v][d + 9] * b[d + 9][j[f]] - T[v][d + 18] * b[8 - d][j[f]], a[d + 9] = i - W * oe[3 + d + 9], a[d + 18] = i * oe[3 + d + 9] + W;
8018
+ i = T[v][d + 27] * x[d + 9][j[f]] + T[v][d + 36] * x[8 - d][j[f]], W = T[v][d + 9] * p[d + 9][j[f]] - T[v][d + 18] * p[8 - d][j[f]], a[d + 9] = i - W * oe[3 + d + 9], a[d + 18] = i * oe[3 + d + 9] + W;
8011
8019
  }
8012
8020
  fe(u, I, a);
8013
8021
  }
@@ -8047,9 +8055,9 @@ const a0 = s0;
8047
8055
  function s() {
8048
8056
  var c = s.MPG_MD_MS_LR, N = null;
8049
8057
  this.psy = null;
8050
- var H = null, T = null;
8058
+ var P = null, T = null;
8051
8059
  this.setModules = function(j, K, k, fe) {
8052
- N = j, this.psy = K, H = K, T = fe;
8060
+ N = j, this.psy = K, P = K, T = fe;
8053
8061
  };
8054
8062
  var oe = new Y();
8055
8063
  function g(j) {
@@ -8090,13 +8098,13 @@ const a0 = s0;
8090
8098
  l[0][0] = new D(), l[0][1] = new D(), l[1][0] = new D(), l[1][1] = new D();
8091
8099
  var A = Ve([2, 2]);
8092
8100
  A[0][0] = new D(), A[0][1] = new D(), A[1][0] = new D(), A[1][1] = new D();
8093
- var F, y = [null, null], f = j.internal_flags, w = Re([2, 4]), u = [0.5, 0.5], I = [[0, 0], [0, 0]], n = [[0, 0], [0, 0]], P, d, v;
8101
+ var F, y = [null, null], f = j.internal_flags, w = Re([2, 4]), u = [0.5, 0.5], I = [[0, 0], [0, 0]], n = [[0, 0], [0, 0]], H, d, v;
8094
8102
  if (y[0] = K, y[1] = k, f.lame_encode_frame_init == 0 && ae(j, y), f.padding = 0, (f.slot_lag -= f.frac_SpF) < 0 && (f.slot_lag += j.out_samplerate, f.padding = 1), f.psymodel != 0) {
8095
- var b, x = [null, null], C = 0, a = re(2);
8103
+ var p, x = [null, null], C = 0, a = re(2);
8096
8104
  for (v = 0; v < f.mode_gr; v++) {
8097
8105
  for (d = 0; d < f.channels_out; d++)
8098
8106
  x[d] = y[d], C = 576 + v * 576 - s.FFTOFFSET;
8099
- if (j.VBR == de.vbr_mtrh || j.VBR == de.vbr_mt ? M() : b = H.L3psycho_anal_ns(
8107
+ if (j.VBR == de.vbr_mtrh || j.VBR == de.vbr_mt ? M() : p = P.L3psycho_anal_ns(
8100
8108
  j,
8101
8109
  x,
8102
8110
  C,
@@ -8107,7 +8115,7 @@ const a0 = s0;
8107
8115
  n[v],
8108
8116
  w[v],
8109
8117
  a
8110
- ), b != 0)
8118
+ ), p != 0)
8111
8119
  return -4;
8112
8120
  for (j.mode == ze.JOINT_STEREO && M(), d = 0; d < f.channels_out; d++) {
8113
8121
  var i = f.l3_side.tt[v][d];
@@ -8116,20 +8124,20 @@ const a0 = s0;
8116
8124
  }
8117
8125
  } else
8118
8126
  M();
8119
- if (g(f), oe.mdct_sub48(f, y[0], y[1]), f.mode_ext = s.MPG_MD_LR_LR, j.force_ms ? f.mode_ext = s.MPG_MD_MS_LR : j.mode == ze.JOINT_STEREO && M(), f.mode_ext == c ? (F = A, P = n) : (F = l, P = I), j.analysis && f.pinfo != null && M(), j.VBR == de.vbr_off || j.VBR == de.vbr_abr) {
8127
+ if (g(f), oe.mdct_sub48(f, y[0], y[1]), f.mode_ext = s.MPG_MD_LR_LR, j.force_ms ? f.mode_ext = s.MPG_MD_MS_LR : j.mode == ze.JOINT_STEREO && M(), f.mode_ext == c ? (F = A, H = n) : (F = l, H = I), j.analysis && f.pinfo != null && M(), j.VBR == de.vbr_off || j.VBR == de.vbr_abr) {
8120
8128
  var W, L;
8121
8129
  for (W = 0; W < 18; W++)
8122
8130
  f.nsPsy.pefirbuf[W] = f.nsPsy.pefirbuf[W + 1];
8123
8131
  for (L = 0, v = 0; v < f.mode_gr; v++)
8124
8132
  for (d = 0; d < f.channels_out; d++)
8125
- L += P[v][d];
8133
+ L += H[v][d];
8126
8134
  for (f.nsPsy.pefirbuf[18] = L, L = f.nsPsy.pefirbuf[9], W = 0; W < 9; W++)
8127
8135
  L += (f.nsPsy.pefirbuf[W] + f.nsPsy.pefirbuf[18 - W]) * s.fircoef[W];
8128
8136
  for (L = 670 * 5 * f.mode_gr * f.channels_out / L, v = 0; v < f.mode_gr; v++)
8129
8137
  for (d = 0; d < f.channels_out; d++)
8130
- P[v][d] *= L;
8138
+ H[v][d] *= L;
8131
8139
  }
8132
- return f.iteration_loop.iteration_loop(j, P, u, F), N.format_bitstream(j), t = N.copy_buffer(f, fe, E, B, 1), j.bWriteVbrTag && T.addVbrFrame(j), j.analysis && f.pinfo != null && M(), z(f), t;
8140
+ return f.iteration_loop.iteration_loop(j, H, u, F), N.format_bitstream(j), t = N.copy_buffer(f, fe, E, B, 1), j.bWriteVbrTag && T.addVbrFrame(j), j.analysis && f.pinfo != null && M(), z(f), t;
8133
8141
  };
8134
8142
  }
8135
8143
  function q() {
@@ -8146,12 +8154,12 @@ const a0 = s0;
8146
8154
  var c = this;
8147
8155
  this.assign = function(N) {
8148
8156
  ue.arraycopy(N.l, 0, c.l, 0, s.SBMAX_l);
8149
- for (var H = 0; H < s.SBMAX_s; H++)
8157
+ for (var P = 0; P < s.SBMAX_s; P++)
8150
8158
  for (var T = 0; T < 3; T++)
8151
- c.s[H][T] = N.s[H][T];
8159
+ c.s[P][T] = N.s[P][T];
8152
8160
  };
8153
8161
  }
8154
- function Me() {
8162
+ function be() {
8155
8163
  this.last_en_subshort = Re([4, 9]), this.lastAttacks = re(4), this.pefirbuf = ie(19), this.longfact = ie(s.SBMAX_l), this.shortfact = ie(s.SBMAX_s), this.attackthre = 0, this.attackthre_s = 0;
8156
8164
  }
8157
8165
  ne.MFSIZE = 3 * 1152 + s.ENCDELAY - s.MDCTDELAY, ne.MAX_HEADER_BUF = 256, ne.MAX_BITS_PER_CHANNEL = 4095, ne.MAX_BITS_PER_GRANULE = 7680, ne.BPC = 320;
@@ -8161,16 +8169,16 @@ const a0 = s0;
8161
8169
  function N() {
8162
8170
  this.write_timing = 0, this.ptr = 0, this.buf = J(c);
8163
8171
  }
8164
- this.header = new Array(ne.MAX_HEADER_BUF), this.h_ptr = 0, this.w_ptr = 0, this.ancillary_flag = 0, this.ResvSize = 0, this.ResvMax = 0, this.scalefac_band = new R(), this.minval_l = ie(s.CBANDS), this.minval_s = ie(s.CBANDS), this.nb_1 = Re([4, s.CBANDS]), this.nb_2 = Re([4, s.CBANDS]), this.nb_s1 = Re([4, s.CBANDS]), this.nb_s2 = Re([4, s.CBANDS]), this.s3_ss = null, this.s3_ll = null, this.decay = 0, this.thm = new Array(4), this.en = new Array(4), this.tot_ener = ie(4), this.loudness_sq = Re([2, 2]), this.loudness_sq_save = ie(2), this.mld_l = ie(s.SBMAX_l), this.mld_s = ie(s.SBMAX_s), this.bm_l = re(s.SBMAX_l), this.bo_l = re(s.SBMAX_l), this.bm_s = re(s.SBMAX_s), this.bo_s = re(s.SBMAX_s), this.npart_l = 0, this.npart_s = 0, this.s3ind = ke([s.CBANDS, 2]), this.s3ind_s = ke([s.CBANDS, 2]), this.numlines_s = re(s.CBANDS), this.numlines_l = re(s.CBANDS), this.rnumlines_l = ie(s.CBANDS), this.mld_cb_l = ie(s.CBANDS), this.mld_cb_s = ie(s.CBANDS), this.numlines_s_num1 = 0, this.numlines_l_num1 = 0, this.pe = ie(4), this.ms_ratio_s_old = 0, this.ms_ratio_l_old = 0, this.ms_ener_ratio_old = 0, this.blocktype_old = re(2), this.nsPsy = new Me(), this.VBR_seek_table = new q(), this.ATH = null, this.PSY = null, this.nogap_total = 0, this.nogap_current = 0, this.decode_on_the_fly = !0, this.findReplayGain = !0, this.findPeakSample = !0, this.PeakSample = 0, this.RadioGain = 0, this.AudiophileGain = 0, this.rgdata = null, this.noclipGainChange = 0, this.noclipScale = 0, this.bitrate_stereoMode_Hist = ke([16, 4 + 1]), this.bitrate_blockType_Hist = ke([16, 4 + 1 + 1]), this.pinfo = null, this.hip = null, this.in_buffer_nsamples = 0, this.in_buffer_0 = null, this.in_buffer_1 = null, this.iteration_loop = null;
8165
- for (var H = 0; H < this.en.length; H++)
8166
- this.en[H] = new me();
8167
- for (var H = 0; H < this.thm.length; H++)
8168
- this.thm[H] = new me();
8169
- for (var H = 0; H < this.header.length; H++)
8170
- this.header[H] = new N();
8172
+ this.header = new Array(ne.MAX_HEADER_BUF), this.h_ptr = 0, this.w_ptr = 0, this.ancillary_flag = 0, this.ResvSize = 0, this.ResvMax = 0, this.scalefac_band = new R(), this.minval_l = ie(s.CBANDS), this.minval_s = ie(s.CBANDS), this.nb_1 = Re([4, s.CBANDS]), this.nb_2 = Re([4, s.CBANDS]), this.nb_s1 = Re([4, s.CBANDS]), this.nb_s2 = Re([4, s.CBANDS]), this.s3_ss = null, this.s3_ll = null, this.decay = 0, this.thm = new Array(4), this.en = new Array(4), this.tot_ener = ie(4), this.loudness_sq = Re([2, 2]), this.loudness_sq_save = ie(2), this.mld_l = ie(s.SBMAX_l), this.mld_s = ie(s.SBMAX_s), this.bm_l = re(s.SBMAX_l), this.bo_l = re(s.SBMAX_l), this.bm_s = re(s.SBMAX_s), this.bo_s = re(s.SBMAX_s), this.npart_l = 0, this.npart_s = 0, this.s3ind = ke([s.CBANDS, 2]), this.s3ind_s = ke([s.CBANDS, 2]), this.numlines_s = re(s.CBANDS), this.numlines_l = re(s.CBANDS), this.rnumlines_l = ie(s.CBANDS), this.mld_cb_l = ie(s.CBANDS), this.mld_cb_s = ie(s.CBANDS), this.numlines_s_num1 = 0, this.numlines_l_num1 = 0, this.pe = ie(4), this.ms_ratio_s_old = 0, this.ms_ratio_l_old = 0, this.ms_ener_ratio_old = 0, this.blocktype_old = re(2), this.nsPsy = new be(), this.VBR_seek_table = new q(), this.ATH = null, this.PSY = null, this.nogap_total = 0, this.nogap_current = 0, this.decode_on_the_fly = !0, this.findReplayGain = !0, this.findPeakSample = !0, this.PeakSample = 0, this.RadioGain = 0, this.AudiophileGain = 0, this.rgdata = null, this.noclipGainChange = 0, this.noclipScale = 0, this.bitrate_stereoMode_Hist = ke([16, 4 + 1]), this.bitrate_blockType_Hist = ke([16, 4 + 1 + 1]), this.pinfo = null, this.hip = null, this.in_buffer_nsamples = 0, this.in_buffer_0 = null, this.in_buffer_1 = null, this.iteration_loop = null;
8173
+ for (var P = 0; P < this.en.length; P++)
8174
+ this.en[P] = new me();
8175
+ for (var P = 0; P < this.thm.length; P++)
8176
+ this.thm[P] = new me();
8177
+ for (var P = 0; P < this.header.length; P++)
8178
+ this.header[P] = new N();
8171
8179
  }
8172
8180
  function ce() {
8173
- var c = ie(s.BLKSIZE), N = ie(s.BLKSIZE_s / 2), H = [
8181
+ var c = ie(s.BLKSIZE), N = ie(s.BLKSIZE_s / 2), P = [
8174
8182
  0.9238795325112867,
8175
8183
  0.3826834323650898,
8176
8184
  0.9951847266721969,
@@ -8192,14 +8200,14 @@ const a0 = s0;
8192
8200
  var w, u, I, n;
8193
8201
  u = g[k + 0] - g[k + A], w = g[k + 0] + g[k + A], n = g[k + F] - g[k + y], I = g[k + F] + g[k + y], g[k + F] = w - I, g[k + 0] = w + I, g[k + y] = u - n, g[k + A] = u + n, u = g[fe + 0] - g[fe + A], w = g[fe + 0] + g[fe + A], n = ge.SQRT2 * g[fe + y], I = ge.SQRT2 * g[fe + F], g[fe + F] = w - I, g[fe + 0] = w + I, g[fe + y] = u - n, g[fe + A] = u + n, fe += K, k += K;
8194
8202
  } while (k < E);
8195
- for (t = H[j + 0], B = H[j + 1], l = 1; l < f; l++) {
8196
- var P, d;
8197
- P = 1 - 2 * B * B, d = 2 * B * t, k = z + l, fe = z + A - l;
8203
+ for (t = P[j + 0], B = P[j + 1], l = 1; l < f; l++) {
8204
+ var H, d;
8205
+ H = 1 - 2 * B * B, d = 2 * B * t, k = z + l, fe = z + A - l;
8198
8206
  do {
8199
- var v, b, x, w, u, C, I, a, n, i;
8200
- b = d * g[k + A] - P * g[fe + A], v = P * g[k + A] + d * g[fe + A], u = g[k + 0] - v, w = g[k + 0] + v, C = g[fe + 0] - b, x = g[fe + 0] + b, b = d * g[k + y] - P * g[fe + y], v = P * g[k + y] + d * g[fe + y], n = g[k + F] - v, I = g[k + F] + v, i = g[fe + F] - b, a = g[fe + F] + b, b = B * I - t * i, v = t * I + B * i, g[k + F] = w - v, g[k + 0] = w + v, g[fe + y] = C - b, g[fe + A] = C + b, b = t * a - B * n, v = B * a + t * n, g[fe + F] = x - v, g[fe + 0] = x + v, g[k + y] = u - b, g[k + A] = u + b, fe += K, k += K;
8207
+ var v, p, x, w, u, C, I, a, n, i;
8208
+ p = d * g[k + A] - H * g[fe + A], v = H * g[k + A] + d * g[fe + A], u = g[k + 0] - v, w = g[k + 0] + v, C = g[fe + 0] - p, x = g[fe + 0] + p, p = d * g[k + y] - H * g[fe + y], v = H * g[k + y] + d * g[fe + y], n = g[k + F] - v, I = g[k + F] + v, i = g[fe + F] - p, a = g[fe + F] + p, p = B * I - t * i, v = t * I + B * i, g[k + F] = w - v, g[k + 0] = w + v, g[fe + y] = C - p, g[fe + A] = C + p, p = t * a - B * n, v = B * a + t * n, g[fe + F] = x - v, g[fe + 0] = x + v, g[k + y] = u - p, g[k + A] = u + p, fe += K, k += K;
8201
8209
  } while (k < E);
8202
- P = t, t = P * H[j + 0] - B * H[j + 1], B = P * H[j + 1] + B * H[j + 0];
8210
+ H = t, t = H * P[j + 0] - B * P[j + 1], B = H * P[j + 1] + B * P[j + 0];
8203
8211
  }
8204
8212
  j += 2;
8205
8213
  } while (K < ae);
@@ -8357,8 +8365,8 @@ const a0 = s0;
8357
8365
  N[z] = 0.5 * (1 - Math.cos(2 * Math.PI * (z + 0.5) / s.BLKSIZE_s));
8358
8366
  };
8359
8367
  }
8360
- function pe() {
8361
- var c = new ce(), N = 2.302585092994046, H = 2, T = 16, oe = 2, g = 16, z = 0.34, ae = 1 / (14752 * 14752) / (s.BLKSIZE / 2), j = 0.01, K = 0.8, k = 0.6, fe = 0.3, E = 3.5, B = 21, t = 0.2302585093;
8368
+ function Me() {
8369
+ var c = new ce(), N = 2.302585092994046, P = 2, T = 16, oe = 2, g = 16, z = 0.34, ae = 1 / (14752 * 14752) / (s.BLKSIZE / 2), j = 0.01, K = 0.8, k = 0.6, fe = 0.3, E = 3.5, B = 21, t = 0.2302585093;
8362
8370
  function l($, O) {
8363
8371
  for (var X = 0, Se = 0; Se < s.BLKSIZE / 2; ++Se)
8364
8372
  X += $[Se] * O.ATH.eql_w[Se];
@@ -8396,7 +8404,7 @@ const a0 = s0;
8396
8404
  0.25119,
8397
8405
  0.11749
8398
8406
  ];
8399
- function P() {
8407
+ function H() {
8400
8408
  w = Math.pow(10, (F + 1) / 16), u = Math.pow(10, (y + 1) / 16), I = Math.pow(10, f / 10);
8401
8409
  }
8402
8410
  var d = [
@@ -8436,7 +8444,7 @@ const a0 = s0;
8436
8444
  1.22321 * 1.22321,
8437
8445
  1.14758 * 1.14758,
8438
8446
  1
8439
- ], b = [
8447
+ ], p = [
8440
8448
  2.35364 * 2.35364,
8441
8449
  2.29259 * 2.29259,
8442
8450
  2.23313 * 2.23313,
@@ -8474,9 +8482,9 @@ const a0 = s0;
8474
8482
  if (he != 0 ? O = Te.ATH.cb_s[X] * Te.ATH.adjust : O = Te.ATH.cb_l[X] * Te.ATH.adjust, $ < I * O) {
8475
8483
  if ($ > O) {
8476
8484
  var Ne, We;
8477
- return Ne = 1, Ae <= 13 && (Ne = b[Ae]), We = ge.FAST_LOG10_X($ / O, 10 / 15), $ * ((d[Ae] - Ne) * We + Ne);
8485
+ return Ne = 1, Ae <= 13 && (Ne = p[Ae]), We = ge.FAST_LOG10_X($ / O, 10 / 15), $ * ((d[Ae] - Ne) * We + Ne);
8478
8486
  }
8479
- return Ae > 13 ? $ : $ * b[Ae];
8487
+ return Ae > 13 ? $ : $ * p[Ae];
8480
8488
  }
8481
8489
  return $ * d[Ae];
8482
8490
  }
@@ -8599,7 +8607,7 @@ const a0 = s0;
8599
8607
  126.1
8600
8608
  /* 241.3 */
8601
8609
  ];
8602
- function be($, O) {
8610
+ function pe($, O) {
8603
8611
  for (var X = 281.0575, Se = 0; Se < s.SBMAX_l - 1; Se++) {
8604
8612
  var Te = $.thm.l[Se];
8605
8613
  if (Te > 0) {
@@ -8620,7 +8628,7 @@ const a0 = s0;
8620
8628
  X[he] = Ae, Se[he] = Ne, Te[he] = Ae * $.rnumlines_l[he];
8621
8629
  }
8622
8630
  }
8623
- function Pe($, O, X, Se) {
8631
+ function He($, O, X, Se) {
8624
8632
  var Te = n.length - 1, he = 0, xe = X[he] + X[he + 1];
8625
8633
  if (xe > 0) {
8626
8634
  var Ae = O[he];
@@ -8658,35 +8666,35 @@ const a0 = s0;
8658
8666
  -0.313819 * 2
8659
8667
  ];
8660
8668
  this.L3psycho_anal_ns = function($, O, X, Se, Te, he, xe, Ae, Ne, We) {
8661
- var Ie = $.internal_flags, lt = Re([2, s.BLKSIZE]), et = Re([2, 3, s.BLKSIZE_s]), st = ie(s.CBANDS + 1), dt = ie(s.CBANDS + 1), tt = ie(s.CBANDS + 2), Qe = re(2), nt = re(2), wt, Ee, Ge, He, ut, Lt, Tt, it, Yt = Re([2, 576]), At, jt = re(s.CBANDS + 2), Ft = re(s.CBANDS + 2);
8669
+ var Ie = $.internal_flags, lt = Re([2, s.BLKSIZE]), et = Re([2, 3, s.BLKSIZE_s]), st = ie(s.CBANDS + 1), dt = ie(s.CBANDS + 1), tt = ie(s.CBANDS + 2), Qe = re(2), nt = re(2), wt, Ee, Ge, Pe, ut, Lt, Tt, it, Yt = Re([2, 576]), At, jt = re(s.CBANDS + 2), Ft = re(s.CBANDS + 2);
8662
8670
  for (Ze.fill(Ft, 0), wt = Ie.channels_out, $.mode == ze.JOINT_STEREO && (wt = 4), $.VBR == de.vbr_off ? At = Ie.ResvMax == 0 ? 0 : Ie.ResvSize / Ie.ResvMax * 0.5 : $.VBR == de.vbr_rh || $.VBR == de.vbr_mtrh || $.VBR == de.vbr_mt ? At = 0.6 : At = 1, Ee = 0; Ee < Ie.channels_out; Ee++) {
8663
- var Ut = O[Ee], Ht = X + 576 - 350 - B + 192;
8664
- for (He = 0; He < 576; He++) {
8671
+ var Ut = O[Ee], Pt = X + 576 - 350 - B + 192;
8672
+ for (Pe = 0; Pe < 576; Pe++) {
8665
8673
  var Xt, qt;
8666
- for (Xt = Ut[Ht + He + 10], qt = 0, ut = 0; ut < (B - 1) / 2 - 1; ut += 2)
8667
- Xt += Ue[ut] * (Ut[Ht + He + ut] + Ut[Ht + He + B - ut]), qt += Ue[ut + 1] * (Ut[Ht + He + ut + 1] + Ut[Ht + He + B - ut - 1]);
8668
- Yt[Ee][He] = Xt + qt;
8674
+ for (Xt = Ut[Pt + Pe + 10], qt = 0, ut = 0; ut < (B - 1) / 2 - 1; ut += 2)
8675
+ Xt += Ue[ut] * (Ut[Pt + Pe + ut] + Ut[Pt + Pe + B - ut]), qt += Ue[ut + 1] * (Ut[Pt + Pe + ut + 1] + Ut[Pt + Pe + B - ut - 1]);
8676
+ Yt[Ee][Pe] = Xt + qt;
8669
8677
  }
8670
8678
  Te[Se][Ee].en.assign(Ie.en[Ee]), Te[Se][Ee].thm.assign(Ie.thm[Ee]), wt > 2 && M();
8671
8679
  }
8672
8680
  for (Ee = 0; Ee < wt; Ee++) {
8673
8681
  var l0, u0, Dt = ie(12), Et = [0, 0, 0, 0], $t = ie(12), c0 = 1, d0, f0 = ie(s.CBANDS), h0 = ie(s.CBANDS), mt = [0, 0, 0, 0], v0 = ie(s.HBLKSIZE), _0 = Re([3, s.HBLKSIZE_s]);
8674
- for (He = 0; He < 3; He++)
8675
- Dt[He] = Ie.nsPsy.last_en_subshort[Ee][He + 6], $t[He] = Dt[He] / Ie.nsPsy.last_en_subshort[Ee][He + 4], Et[0] += Dt[He];
8682
+ for (Pe = 0; Pe < 3; Pe++)
8683
+ Dt[Pe] = Ie.nsPsy.last_en_subshort[Ee][Pe + 6], $t[Pe] = Dt[Pe] / Ie.nsPsy.last_en_subshort[Ee][Pe + 4], Et[0] += Dt[Pe];
8676
8684
  Ee == 2 && M();
8677
8685
  {
8678
- var m0 = Yt[Ee & 1], Pt = 0;
8679
- for (He = 0; He < 9; He++) {
8680
- for (var b0 = Pt + 64, yt = 1; Pt < b0; Pt++)
8681
- yt < Math.abs(m0[Pt]) && (yt = Math.abs(m0[Pt]));
8682
- Ie.nsPsy.last_en_subshort[Ee][He] = Dt[He + 3] = yt, Et[1 + He / 3] += yt, yt > Dt[He + 3 - 2] ? yt = yt / Dt[He + 3 - 2] : Dt[He + 3 - 2] > yt * 10 ? yt = Dt[He + 3 - 2] / (yt * 10) : yt = 0, $t[He + 3] = yt;
8686
+ var m0 = Yt[Ee & 1], Ht = 0;
8687
+ for (Pe = 0; Pe < 9; Pe++) {
8688
+ for (var p0 = Ht + 64, yt = 1; Ht < p0; Ht++)
8689
+ yt < Math.abs(m0[Ht]) && (yt = Math.abs(m0[Ht]));
8690
+ Ie.nsPsy.last_en_subshort[Ee][Pe] = Dt[Pe + 3] = yt, Et[1 + Pe / 3] += yt, yt > Dt[Pe + 3 - 2] ? yt = yt / Dt[Pe + 3 - 2] : Dt[Pe + 3 - 2] > yt * 10 ? yt = Dt[Pe + 3 - 2] / (yt * 10) : yt = 0, $t[Pe + 3] = yt;
8683
8691
  }
8684
8692
  }
8685
- for ($.analysis && M(), d0 = Ee == 3 ? Ie.nsPsy.attackthre_s : Ie.nsPsy.attackthre, He = 0; He < 12; He++)
8686
- mt[He / 3] == 0 && $t[He] > d0 && (mt[He / 3] = He % 3 + 1);
8687
- for (He = 1; He < 4; He++) {
8693
+ for ($.analysis && M(), d0 = Ee == 3 ? Ie.nsPsy.attackthre_s : Ie.nsPsy.attackthre, Pe = 0; Pe < 12; Pe++)
8694
+ mt[Pe / 3] == 0 && $t[Pe] > d0 && (mt[Pe / 3] = Pe % 3 + 1);
8695
+ for (Pe = 1; Pe < 4; Pe++) {
8688
8696
  var Kt;
8689
- Et[He - 1] > Et[He] ? Kt = Et[He - 1] / Et[He] : Kt = Et[He] / Et[He - 1], Kt < 1.7 && (mt[He] = 0, He == 1 && (mt[0] = 0));
8697
+ Et[Pe - 1] > Et[Pe] ? Kt = Et[Pe - 1] / Et[Pe] : Kt = Et[Pe] / Et[Pe - 1], Kt < 1.7 && (mt[Pe] = 0, Pe == 1 && (mt[0] = 0));
8690
8698
  }
8691
8699
  for (mt[0] != 0 && Ie.nsPsy.lastAttacks[Ee] != 0 && (mt[0] = 0), (Ie.nsPsy.lastAttacks[Ee] == 3 || mt[0] + mt[1] + mt[2] + mt[3] != 0) && (c0 = 0, mt[1] != 0 && mt[0] != 0 && (mt[1] = 0), mt[2] != 0 && mt[1] != 0 && (mt[2] = 0), mt[3] != 0 && mt[2] != 0 && (mt[3] = 0)), Ee < 2 ? nt[Ee] = c0 : M(), Ne[Ee] = Ie.tot_ener[Ee], u0 = et, l0 = lt, A(
8692
8700
  $,
@@ -8700,7 +8708,7 @@ const a0 = s0;
8700
8708
  Ee,
8701
8709
  O,
8702
8710
  X
8703
- ), je(Ie, v0, st, f0, h0), Pe(Ie, f0, h0, jt), it = 0; it < 3; it++) {
8711
+ ), je(Ie, v0, st, f0, h0), He(Ie, f0, h0, jt), it = 0; it < 3; it++) {
8704
8712
  var Jt, xt;
8705
8713
  for (i($, _0, dt, tt, Ee, it), C(Ie, dt, tt, Ee, it), Tt = 0; Tt < s.SBMAX_s; Tt++) {
8706
8714
  if (xt = Ie.thm[Ee].s[Tt][it], xt *= K, mt[it] >= 2 || mt[it + 1] == 1) {
@@ -8740,7 +8748,7 @@ const a0 = s0;
8740
8748
  0
8741
8749
  );
8742
8750
  Ot *= 0.158489319246111, Ie.blocktype_old[Ee & 1] == s.SHORT_TYPE ? tt[Ge] = Ot : tt[Ge] = L(
8743
- Math.min(Ot, Math.min(H * Ie.nb_1[Ee][Ge], T * Ie.nb_2[Ee][Ge])),
8751
+ Math.min(Ot, Math.min(P * Ie.nb_1[Ee][Ge], T * Ie.nb_2[Ee][Ge])),
8744
8752
  Ot,
8745
8753
  At
8746
8754
  ), Ie.nb_2[Ee][Ge] = Ie.nb_1[Ee][Ge], Ie.nb_1[Ee][Ge] = Ot;
@@ -8750,8 +8758,8 @@ const a0 = s0;
8750
8758
  a(Ie, st, tt, Ee);
8751
8759
  }
8752
8760
  for (($.mode == ze.STEREO || $.mode == ze.JOINT_STEREO) && M(), $.mode == ze.JOINT_STEREO && M(), W($, nt, We, Qe), Ee = 0; Ee < wt; Ee++) {
8753
- var Vt, Wt = 0, M0, t0;
8754
- Ee > 1 ? M() : (Vt = xe, Wt = 0, M0 = We[Ee], t0 = Te[Se][Ee]), M0 == s.SHORT_TYPE ? Vt[Wt + Ee] = le(t0, Ie.masking_lower) : Vt[Wt + Ee] = be(t0, Ie.masking_lower), $.analysis && (Ie.pinfo.pe[Se][Ee] = Vt[Wt + Ee]);
8761
+ var Vt, Wt = 0, b0, t0;
8762
+ Ee > 1 ? M() : (Vt = xe, Wt = 0, b0 = We[Ee], t0 = Te[Se][Ee]), b0 == s.SHORT_TYPE ? Vt[Wt + Ee] = le(t0, Ie.masking_lower) : Vt[Wt + Ee] = pe(t0, Ie.masking_lower), $.analysis && (Ie.pinfo.pe[Se][Ee] = Vt[Wt + Ee]);
8755
8763
  }
8756
8764
  return 0;
8757
8765
  };
@@ -8779,8 +8787,8 @@ const a0 = s0;
8779
8787
  }
8780
8788
  et[tt] = Ae * Qe;
8781
8789
  for (var Ge = 0; Ge < lt; Ge++) {
8782
- var He, ut, Lt, Tt, it;
8783
- Lt = We[Ge], Tt = We[Ge + 1], He = 0 | Math.floor(0.5 + Ie * (Lt - 0.5)), He < 0 && (He = 0), ut = 0 | Math.floor(0.5 + Ie * (Tt - 0.5)), ut > Ne / 2 && (ut = Ne / 2), X[Ge] = (dt[He] + dt[ut]) / 2, O[Ge] = dt[ut];
8790
+ var Pe, ut, Lt, Tt, it;
8791
+ Lt = We[Ge], Tt = We[Ge + 1], Pe = 0 | Math.floor(0.5 + Ie * (Lt - 0.5)), Pe < 0 && (Pe = 0), ut = 0 | Math.floor(0.5 + Ie * (Tt - 0.5)), ut > Ne / 2 && (ut = Ne / 2), X[Ge] = (dt[Pe] + dt[ut]) / 2, O[Ge] = dt[ut];
8784
8792
  var Yt = st * Tt;
8785
8793
  xe[Ge] = (Yt - et[O[Ge]]) / (et[O[Ge] + 1] - et[O[Ge]]), xe[Ge] < 0 ? xe[Ge] = 0 : xe[Ge] > 1 && (xe[Ge] = 1), it = vt(Ae * We[Ge] * Ie), it = Math.min(it, 15.5) / 15.5, he[Ge] = Math.pow(
8786
8794
  10,
@@ -8917,10 +8925,10 @@ const a0 = s0;
8917
8925
  lt,
8918
8926
  et,
8919
8927
  Se
8920
- ), P(), c.init_fft(O), O.decay = Math.exp(-1 * N / (j * st / 192));
8928
+ ), H(), c.init_fft(O), O.decay = Math.exp(-1 * N / (j * st / 192));
8921
8929
  {
8922
- var He;
8923
- He = E, $.exp_nspsytune & 2 && (He = 1), Math.abs($.msfix) > 0 && (He = $.msfix), $.msfix = He;
8930
+ var Pe;
8931
+ Pe = E, $.exp_nspsytune & 2 && (Pe = 1), Math.abs($.msfix) > 0 && (Pe = $.msfix), $.msfix = Pe;
8924
8932
  for (var ut = 0; ut < O.npart_l; ut++)
8925
8933
  O.s3ind[ut][1] > O.npart_l - 1 && (O.s3ind[ut][1] = O.npart_l - 1);
8926
8934
  }
@@ -8987,11 +8995,11 @@ const a0 = s0;
8987
8995
  function se() {
8988
8996
  var c = this, N = 128 * 1024;
8989
8997
  se.V9 = 410, se.V8 = 420, se.V7 = 430, se.V6 = 440, se.V5 = 450, se.V4 = 460, se.V3 = 470, se.V2 = 480, se.V1 = 490, se.V0 = 500, se.R3MIX = 1e3, se.STANDARD = 1001, se.EXTREME = 1002, se.INSANE = 1003, se.STANDARD_FAST = 1004, se.EXTREME_FAST = 1005, se.MEDIUM = 1006, se.MEDIUM_FAST = 1007;
8990
- var H = 16384 + N;
8991
- se.LAME_MAXMP3BUFFER = H;
8992
- var T, oe, g, z, ae, j = new pe(), K, k;
8993
- this.enc = new s(), this.setModules = function(a, i, W, L, Q, le, _e, be, je) {
8994
- T = a, oe = i, g = W, z = L, ae = Q, K = le, k = be, this.enc.setModules(oe, j, z, K);
8998
+ var P = 16384 + N;
8999
+ se.LAME_MAXMP3BUFFER = P;
9000
+ var T, oe, g, z, ae, j = new Me(), K, k;
9001
+ this.enc = new s(), this.setModules = function(a, i, W, L, Q, le, _e, pe, je) {
9002
+ T = a, oe = i, g = W, z = L, ae = Q, K = le, k = pe, this.enc.setModules(oe, j, z, K);
8995
9003
  };
8996
9004
  function fe() {
8997
9005
  this.mask_adjust = 0, this.mask_adjust_short = 0, this.bo_l_weight = ie(s.SBMAX_l), this.bo_s_weight = ie(s.SBMAX_s);
@@ -9008,7 +9016,7 @@ const a0 = s0;
9008
9016
  return a.class_id = t, i = a.internal_flags = new ne(), a.mode = ze.NOT_SET, a.original = 1, a.in_samplerate = 44100, a.num_channels = 2, a.num_samples = -1, a.bWriteVbrTag = !0, a.quality = -1, a.short_blocks = null, i.subblock_gain = -1, a.lowpassfreq = 0, a.highpassfreq = 0, a.lowpasswidth = -1, a.highpasswidth = -1, a.VBR = de.vbr_off, a.VBR_q = 4, a.ATHcurve = -1, a.VBR_mean_bitrate_kbps = 128, a.VBR_min_bitrate_kbps = 0, a.VBR_max_bitrate_kbps = 0, a.VBR_hard_min = 0, i.VBR_min_bitrate = 1, i.VBR_max_bitrate = 13, a.quant_comp = -1, a.quant_comp_short = -1, a.msfix = -1, i.resample_ratio = 1, i.OldValue[0] = 180, i.OldValue[1] = 180, i.CurrentStep[0] = 4, i.CurrentStep[1] = 4, i.masking_lower = 1, i.nsPsy.attackthre = -1, i.nsPsy.attackthre_s = -1, a.scale = -1, a.athaa_type = -1, a.ATHtype = -1, a.athaa_loudapprox = -1, a.athaa_sensitivity = 0, a.useTemporal = null, a.interChRatio = -1, i.mf_samples_to_encode = s.ENCDELAY + s.POSTDELAY, a.encoder_padding = 0, i.mf_size = s.ENCDELAY - s.MDCTDELAY, a.findReplayGain = !1, a.decode_on_the_fly = !1, i.decode_on_the_fly = !1, i.findReplayGain = !1, i.findPeakSample = !1, i.RadioGain = 0, i.AudiophileGain = 0, i.noclipGainChange = 0, i.noclipScale = -1, a.preset = 0, a.write_id3tag_automatic = !0, 0;
9009
9017
  }
9010
9018
  this.lame_init = function() {
9011
- var a = new bt();
9019
+ var a = new pt();
9012
9020
  return l(a), a.lame_allocated_gfp = 1, a;
9013
9021
  };
9014
9022
  function A(a) {
@@ -9112,8 +9120,8 @@ const a0 = s0;
9112
9120
  }
9113
9121
  i.highpass2 > 0 && M(), i.highpass2 > 0 && M();
9114
9122
  for (var Q = 0; Q < 32; Q++) {
9115
- var _e, be, le = Q / 31;
9116
- i.highpass2 > i.highpass1 ? M() : _e = 1, i.lowpass2 > i.lowpass1 ? be = A((le - i.lowpass1) / (i.lowpass2 - i.lowpass1 + 1e-20)) : be = 1, i.amp_filter[Q] = _e * be;
9123
+ var _e, pe, le = Q / 31;
9124
+ i.highpass2 > i.highpass1 ? M() : _e = 1, i.lowpass2 > i.lowpass1 ? pe = A((le - i.lowpass1) / (i.lowpass2 - i.lowpass1 + 1e-20)) : pe = 1, i.amp_filter[Q] = _e * pe;
9117
9125
  }
9118
9126
  }
9119
9127
  function I(a) {
@@ -9234,21 +9242,21 @@ const a0 = s0;
9234
9242
  for (var le = i.samplerate_index + 3 * a.version + 6 * (a.out_samplerate < 16e3 ? 1 : 0), _e = 0; _e < s.SBMAX_l + 1; _e++)
9235
9243
  i.scalefac_band.l[_e] = z.sfBandIndex[le].l[_e];
9236
9244
  for (var _e = 0; _e < s.PSFB21 + 1; _e++) {
9237
- var be = (i.scalefac_band.l[22] - i.scalefac_band.l[21]) / s.PSFB21, je = i.scalefac_band.l[21] + _e * be;
9245
+ var pe = (i.scalefac_band.l[22] - i.scalefac_band.l[21]) / s.PSFB21, je = i.scalefac_band.l[21] + _e * pe;
9238
9246
  i.scalefac_band.psfb21[_e] = je;
9239
9247
  }
9240
9248
  i.scalefac_band.psfb21[s.PSFB21] = 576;
9241
9249
  for (var _e = 0; _e < s.SBMAX_s + 1; _e++)
9242
9250
  i.scalefac_band.s[_e] = z.sfBandIndex[le].s[_e];
9243
9251
  for (var _e = 0; _e < s.PSFB12 + 1; _e++) {
9244
- var be = (i.scalefac_band.s[13] - i.scalefac_band.s[12]) / s.PSFB12, je = i.scalefac_band.s[12] + _e * be;
9252
+ var pe = (i.scalefac_band.s[13] - i.scalefac_band.s[12]) / s.PSFB12, je = i.scalefac_band.s[12] + _e * pe;
9245
9253
  i.scalefac_band.psfb12[_e] = je;
9246
9254
  }
9247
9255
  i.scalefac_band.psfb12[s.PSFB12] = 192, a.version == 1 ? i.sideinfo_len = i.channels_out == 1 ? 4 + 17 : 4 + 32 : i.sideinfo_len = i.channels_out == 1 ? 4 + 9 : 4 + 17, a.error_protection && (i.sideinfo_len += 2), n(a), i.Class_ID = t;
9248
9256
  {
9249
- var Pe;
9250
- for (Pe = 0; Pe < 19; Pe++)
9251
- i.nsPsy.pefirbuf[Pe] = 700 * i.mode_gr * i.channels_out;
9257
+ var He;
9258
+ for (He = 0; He < 19; He++)
9259
+ i.nsPsy.pefirbuf[He] = 700 * i.mode_gr * i.channels_out;
9252
9260
  a.ATHtype == -1 && (a.ATHtype = 4);
9253
9261
  }
9254
9262
  switch (a.VBR) {
@@ -9268,18 +9276,18 @@ const a0 = s0;
9268
9276
  break;
9269
9277
  }
9270
9278
  }
9271
- return a.VBR != de.vbr_off && M(), a.tune && M(), I(a), a.athaa_type < 0 ? i.ATH.useAdjust = 3 : i.ATH.useAdjust = a.athaa_type, i.ATH.aaSensitivityP = Math.pow(10, a.athaa_sensitivity / -10), a.short_blocks == null && (a.short_blocks = Ce.short_block_allowed), a.short_blocks == Ce.short_block_allowed && (a.mode == ze.JOINT_STEREO || a.mode == ze.STEREO) && (a.short_blocks = Ce.short_block_coupled), a.quant_comp < 0 && (a.quant_comp = 1), a.quant_comp_short < 0 && (a.quant_comp_short = 0), a.msfix < 0 && (a.msfix = 0), a.exp_nspsytune = a.exp_nspsytune | 1, a.internal_flags.nsPsy.attackthre < 0 && (a.internal_flags.nsPsy.attackthre = pe.NSATTACKTHRE), a.internal_flags.nsPsy.attackthre_s < 0 && (a.internal_flags.nsPsy.attackthre_s = pe.NSATTACKTHRE_S), a.scale < 0 && (a.scale = 1), a.ATHtype < 0 && (a.ATHtype = 4), a.ATHcurve < 0 && (a.ATHcurve = 4), a.athaa_loudapprox < 0 && (a.athaa_loudapprox = 2), a.interChRatio < 0 && (a.interChRatio = 0), a.useTemporal == null && (a.useTemporal = !0), i.slot_lag = i.frac_SpF = 0, a.VBR == de.vbr_off && (i.slot_lag = i.frac_SpF = (a.version + 1) * 72e3 * a.brate % a.out_samplerate | 0), z.iteration_init(a), j.psymodel_init(a), 0;
9279
+ return a.VBR != de.vbr_off && M(), a.tune && M(), I(a), a.athaa_type < 0 ? i.ATH.useAdjust = 3 : i.ATH.useAdjust = a.athaa_type, i.ATH.aaSensitivityP = Math.pow(10, a.athaa_sensitivity / -10), a.short_blocks == null && (a.short_blocks = Ce.short_block_allowed), a.short_blocks == Ce.short_block_allowed && (a.mode == ze.JOINT_STEREO || a.mode == ze.STEREO) && (a.short_blocks = Ce.short_block_coupled), a.quant_comp < 0 && (a.quant_comp = 1), a.quant_comp_short < 0 && (a.quant_comp_short = 0), a.msfix < 0 && (a.msfix = 0), a.exp_nspsytune = a.exp_nspsytune | 1, a.internal_flags.nsPsy.attackthre < 0 && (a.internal_flags.nsPsy.attackthre = Me.NSATTACKTHRE), a.internal_flags.nsPsy.attackthre_s < 0 && (a.internal_flags.nsPsy.attackthre_s = Me.NSATTACKTHRE_S), a.scale < 0 && (a.scale = 1), a.ATHtype < 0 && (a.ATHtype = 4), a.ATHcurve < 0 && (a.ATHcurve = 4), a.athaa_loudapprox < 0 && (a.athaa_loudapprox = 2), a.interChRatio < 0 && (a.interChRatio = 0), a.useTemporal == null && (a.useTemporal = !0), i.slot_lag = i.frac_SpF = 0, a.VBR == de.vbr_off && (i.slot_lag = i.frac_SpF = (a.version + 1) * 72e3 * a.brate % a.out_samplerate | 0), z.iteration_init(a), j.psymodel_init(a), 0;
9272
9280
  };
9273
- function P(a, i) {
9281
+ function H(a, i) {
9274
9282
  (a.in_buffer_0 == null || a.in_buffer_nsamples < i) && (a.in_buffer_0 = ie(i), a.in_buffer_1 = ie(i), a.in_buffer_nsamples = i);
9275
9283
  }
9276
9284
  this.lame_encode_flush = function(a, i, W, L) {
9277
- var Q = a.internal_flags, le = Oe([2, 1152]), _e = 0, be, je, Pe, Ue, ht = Q.mf_samples_to_encode - s.POSTDELAY, vt = d(a);
9285
+ var Q = a.internal_flags, le = Oe([2, 1152]), _e = 0, pe, je, He, Ue, ht = Q.mf_samples_to_encode - s.POSTDELAY, vt = d(a);
9278
9286
  if (Q.mf_samples_to_encode < 1)
9279
9287
  return 0;
9280
- for (be = 0, a.in_samplerate != a.out_samplerate && M(), Pe = a.framesize - ht % a.framesize, Pe < 576 && (Pe += a.framesize), a.encoder_padding = Pe, Ue = (ht + Pe) / a.framesize; Ue > 0 && _e >= 0; ) {
9288
+ for (pe = 0, a.in_samplerate != a.out_samplerate && M(), He = a.framesize - ht % a.framesize, He < 576 && (He += a.framesize), a.encoder_padding = He, Ue = (ht + He) / a.framesize; Ue > 0 && _e >= 0; ) {
9281
9289
  var ot = vt - Q.mf_size, ct = a.frameNum;
9282
- ot *= a.in_samplerate, ot /= a.out_samplerate, ot > 1152 && (ot = 1152), ot < 1 && (ot = 1), je = L - be, L == 0 && (je = 0), _e = this.lame_encode_buffer(
9290
+ ot *= a.in_samplerate, ot /= a.out_samplerate, ot > 1152 && (ot = 1152), ot < 1 && (ot = 1), je = L - pe, L == 0 && (je = 0), _e = this.lame_encode_buffer(
9283
9291
  a,
9284
9292
  le[0],
9285
9293
  le[1],
@@ -9287,24 +9295,24 @@ const a0 = s0;
9287
9295
  i,
9288
9296
  W,
9289
9297
  je
9290
- ), W += _e, be += _e, Ue -= ct != a.frameNum ? 1 : 0;
9298
+ ), W += _e, pe += _e, Ue -= ct != a.frameNum ? 1 : 0;
9291
9299
  }
9292
- return Q.mf_samples_to_encode = 0, _e < 0 || (je = L - be, L == 0 && (je = 0), oe.flush_bitstream(a), _e = oe.copy_buffer(
9300
+ return Q.mf_samples_to_encode = 0, _e < 0 || (je = L - pe, L == 0 && (je = 0), oe.flush_bitstream(a), _e = oe.copy_buffer(
9293
9301
  Q,
9294
9302
  i,
9295
9303
  W,
9296
9304
  je,
9297
9305
  1
9298
- ), _e < 0) ? _e : (W += _e, be += _e, je = L - be, L == 0 && (je = 0), a.write_id3tag_automatic && M(), be);
9306
+ ), _e < 0) ? _e : (W += _e, pe += _e, je = L - pe, L == 0 && (je = 0), a.write_id3tag_automatic && M(), pe);
9299
9307
  }, this.lame_encode_buffer = function(a, i, W, L, Q, le, _e) {
9300
- var be = a.internal_flags, je = [null, null];
9301
- if (be.Class_ID != t)
9308
+ var pe = a.internal_flags, je = [null, null];
9309
+ if (pe.Class_ID != t)
9302
9310
  return -3;
9303
9311
  if (L == 0)
9304
9312
  return 0;
9305
- P(be, L), je[0] = be.in_buffer_0, je[1] = be.in_buffer_1;
9306
- for (var Pe = 0; Pe < L; Pe++)
9307
- je[0][Pe] = i[Pe], be.channels_in > 1 && (je[1][Pe] = W[Pe]);
9313
+ H(pe, L), je[0] = pe.in_buffer_0, je[1] = pe.in_buffer_1;
9314
+ for (var He = 0; He < L; He++)
9315
+ je[0][He] = i[He], pe.channels_in > 1 && (je[1][He] = W[He]);
9308
9316
  return v(
9309
9317
  a,
9310
9318
  je[0],
@@ -9320,23 +9328,23 @@ const a0 = s0;
9320
9328
  return i = Math.max(i, 512 + a.framesize - 32), i;
9321
9329
  }
9322
9330
  function v(a, i, W, L, Q, le, _e) {
9323
- var be = a.internal_flags, je = 0, Pe, Ue, ht, vt, ot, ct = [null, null], gt = [null, null];
9324
- if (be.Class_ID != t)
9331
+ var pe = a.internal_flags, je = 0, He, Ue, ht, vt, ot, ct = [null, null], gt = [null, null];
9332
+ if (pe.Class_ID != t)
9325
9333
  return -3;
9326
9334
  if (L == 0)
9327
9335
  return 0;
9328
- if (ot = oe.copy_buffer(be, Q, le, _e, 0), ot < 0)
9336
+ if (ot = oe.copy_buffer(pe, Q, le, _e, 0), ot < 0)
9329
9337
  return ot;
9330
9338
  if (le += ot, je += ot, gt[0] = i, gt[1] = W, Xe.NEQ(a.scale, 0) && Xe.NEQ(a.scale, 1))
9331
9339
  for (Ue = 0; Ue < L; ++Ue)
9332
- gt[0][Ue] *= a.scale, be.channels_out == 2 && (gt[1][Ue] *= a.scale);
9340
+ gt[0][Ue] *= a.scale, pe.channels_out == 2 && (gt[1][Ue] *= a.scale);
9333
9341
  if (Xe.NEQ(a.scale_left, 0) && Xe.NEQ(a.scale_left, 1))
9334
9342
  for (Ue = 0; Ue < L; ++Ue)
9335
9343
  gt[0][Ue] *= a.scale_left;
9336
9344
  if (Xe.NEQ(a.scale_right, 0) && Xe.NEQ(a.scale_right, 1))
9337
9345
  for (Ue = 0; Ue < L; ++Ue)
9338
9346
  gt[1][Ue] *= a.scale_right;
9339
- a.num_channels == 2 && be.channels_out == 1 && M(), vt = d(a), ct[0] = be.mfbuf[0], ct[1] = be.mfbuf[1];
9347
+ a.num_channels == 2 && pe.channels_out == 1 && M(), vt = d(a), ct[0] = pe.mfbuf[0], ct[1] = pe.mfbuf[1];
9340
9348
  for (var It = 0; L > 0; ) {
9341
9349
  var $ = [null, null], O = 0, X = 0;
9342
9350
  $[0] = gt[0], $[1] = gt[1];
@@ -9348,35 +9356,35 @@ const a0 = s0;
9348
9356
  It,
9349
9357
  L,
9350
9358
  Se
9351
- ), O = Se.n_in, X = Se.n_out, be.findReplayGain && !be.decode_on_the_fly && T.AnalyzeSamples(
9352
- be.rgdata,
9359
+ ), O = Se.n_in, X = Se.n_out, pe.findReplayGain && !pe.decode_on_the_fly && T.AnalyzeSamples(
9360
+ pe.rgdata,
9353
9361
  ct[0],
9354
- be.mf_size,
9362
+ pe.mf_size,
9355
9363
  ct[1],
9356
- be.mf_size,
9364
+ pe.mf_size,
9357
9365
  X,
9358
- be.channels_out
9366
+ pe.channels_out
9359
9367
  ) == Ke.GAIN_ANALYSIS_ERROR)
9360
9368
  return -6;
9361
- if (L -= O, It += O, be.channels_out == 2, be.mf_size += X, be.mf_samples_to_encode < 1 && M(), be.mf_samples_to_encode += X, be.mf_size >= vt) {
9369
+ if (L -= O, It += O, pe.channels_out == 2, pe.mf_size += X, pe.mf_samples_to_encode < 1 && M(), pe.mf_samples_to_encode += X, pe.mf_size >= vt) {
9362
9370
  var Te = _e - je;
9363
- if (_e == 0 && (Te = 0), Pe = b(
9371
+ if (_e == 0 && (Te = 0), He = p(
9364
9372
  a,
9365
9373
  ct[0],
9366
9374
  ct[1],
9367
9375
  Q,
9368
9376
  le,
9369
9377
  Te
9370
- ), Pe < 0)
9371
- return Pe;
9372
- for (le += Pe, je += Pe, be.mf_size -= a.framesize, be.mf_samples_to_encode -= a.framesize, ht = 0; ht < be.channels_out; ht++)
9373
- for (Ue = 0; Ue < be.mf_size; Ue++)
9378
+ ), He < 0)
9379
+ return He;
9380
+ for (le += He, je += He, pe.mf_size -= a.framesize, pe.mf_samples_to_encode -= a.framesize, ht = 0; ht < pe.channels_out; ht++)
9381
+ for (Ue = 0; Ue < pe.mf_size; Ue++)
9374
9382
  ct[ht][Ue] = ct[ht][Ue + a.framesize];
9375
9383
  }
9376
9384
  }
9377
9385
  return je;
9378
9386
  }
9379
- function b(a, i, W, L, Q, le) {
9387
+ function p(a, i, W, L, Q, le) {
9380
9388
  var _e = c.enc.lame_encode_mp3_frame(
9381
9389
  a,
9382
9390
  i,
@@ -9396,8 +9404,8 @@ const a0 = s0;
9396
9404
  M();
9397
9405
  else {
9398
9406
  le.n_out = Math.min(a.framesize, Q), le.n_in = le.n_out;
9399
- for (var be = 0; be < le.n_out; ++be)
9400
- i[0][_e.mf_size + be] = W[0][L + be], _e.channels_out == 2 && (i[1][_e.mf_size + be] = W[1][L + be]);
9407
+ for (var pe = 0; pe < le.n_out; ++pe)
9408
+ i[0][_e.mf_size + pe] = W[0][L + pe], _e.channels_out == 2 && (i[1][_e.mf_size + pe] = W[1][L + pe]);
9401
9409
  }
9402
9410
  }
9403
9411
  }
@@ -9406,7 +9414,7 @@ const a0 = s0;
9406
9414
  };
9407
9415
  }
9408
9416
  function ve() {
9409
- this.setModules = function(c, N, H) {
9417
+ this.setModules = function(c, N, P) {
9410
9418
  };
9411
9419
  }
9412
9420
  function we() {
@@ -9415,12 +9423,12 @@ const a0 = s0;
9415
9423
  this.setModules = function(c, N) {
9416
9424
  };
9417
9425
  }
9418
- function ee(c, N, H) {
9426
+ function ee(c, N, P) {
9419
9427
  c != 1 && M("fix cc: only supports mono");
9420
9428
  var T = new se(), oe = new G(), g = new Ke(), z = new Xe(), ae = new at(), j = new e(), K = new S(), k = new Fe(), fe = new Be(), E = new U(), B = new Je(), t = new $e(), l = new ve(), A = new we();
9421
9429
  T.setModules(g, z, ae, j, K, k, fe, E, A), z.setModules(g, A, fe, k), E.setModules(z, fe), ae.setModules(T), K.setModules(z, B, j, t), j.setModules(t, B, T.enc.psy), B.setModules(z), t.setModules(j), k.setModules(T, z, fe), oe.setModules(l, A), l.setModules(fe, E, ae);
9422
9430
  var F = T.lame_init();
9423
- F.num_channels = c, F.in_samplerate = N, F.out_samplerate = N, F.brate = H, F.mode = ze.STEREO, F.quality = 3, F.bWriteVbrTag = !1, F.disable_reservoir = !0, F.write_id3tag_automatic = !1, T.lame_init_params(F);
9431
+ F.num_channels = c, F.in_samplerate = N, F.out_samplerate = N, F.brate = P, F.mode = ze.STEREO, F.quality = 3, F.bWriteVbrTag = !1, F.disable_reservoir = !0, F.write_id3tag_automatic = !1, T.lame_init_params(F);
9424
9432
  var y = 1152, f = 0 | 1.25 * y + 7200, w = J(f);
9425
9433
  this.encodeBuffer = function(u, I) {
9426
9434
  c == 1 && (I = u), u.length > y && (y = u.length, f = 0 | 1.25 * y + 7200, w = J(f));
@@ -9436,9 +9444,9 @@ const a0 = s0;
9436
9444
  r(), _.lamejs = r;
9437
9445
  });
9438
9446
  (function(_) {
9439
- var r = typeof window == "object" && !!window.document, p = r ? window : Object, M = p.Recorder, J = M.i18n;
9447
+ var r = typeof window == "object" && !!window.document, b = r ? window : Object, M = b.Recorder, J = M.i18n;
9440
9448
  _(M, J, J.$T, r);
9441
- })(function(_, r, p, M) {
9449
+ })(function(_, r, b, M) {
9442
9450
  var J = function(ie) {
9443
9451
  return new re(ie);
9444
9452
  }, Z = "WaveView", re = function(ie) {
@@ -9475,7 +9483,7 @@ const a0 = s0;
9475
9483
  var Ve = ye.canvas = ie[Oe];
9476
9484
  else {
9477
9485
  if (!M)
9478
- throw new Error(p.G("NonBrowser-1", [Z]));
9486
+ throw new Error(b.G("NonBrowser-1", [Z]));
9479
9487
  var Ze = ie.elem;
9480
9488
  Ze && (typeof Ze == "string" ? Ze = document.querySelector(Ze) : Ze.length && (Ze = Ze[0])), Ze && (ie.width = Ze.offsetWidth, ie.height = Ze.offsetHeight);
9481
9489
  var ue = ye.elem = document.createElement("div");
@@ -9485,7 +9493,7 @@ const a0 = s0;
9485
9493
  }
9486
9494
  var ge = ie.scale, Ce = ie.width * ge, Ye = ie.height * ge;
9487
9495
  if (!Ce || !Ye)
9488
- throw new Error(p.G("IllegalArgs-1", [Z + " width=0 height=0"]));
9496
+ throw new Error(b.G("IllegalArgs-1", [Z + " width=0 height=0"]));
9489
9497
  Ve.width = Ce, Ve.height = Ye;
9490
9498
  var de = ye.ctx = Ve.getContext("2d");
9491
9499
  ye.linear1 = ye.genLinear(de, Ce, ie.linear1), ye.linear2 = ye.genLinear(de, Ce, ie.linear2), ye.linearBg = ye.genLinear(de, Ye, ie.linearBg, !0), ye._phase = 0;
@@ -9541,15 +9549,21 @@ const a0 = s0;
9541
9549
  });
9542
9550
  const ta = {
9543
9551
  components: { InlineSvg: Gt },
9552
+ props: {
9553
+ isMobile: {
9554
+ type: Boolean,
9555
+ default: !1
9556
+ }
9557
+ },
9544
9558
  created() {
9545
- this.width = `${document.querySelector(".record-tree").clientWidth}px`, this.rec = a0({
9559
+ this.width = this.isMobile ? "100vw" : `${document.querySelector(".record-tree").clientWidth}px`, this.rec = a0({
9546
9560
  //本配置参数请参考下面的文档,有详细介绍
9547
9561
  type: "mp3",
9548
9562
  sampleRate: 16e3,
9549
9563
  bitRate: 16,
9550
9564
  //mp3格式,指定采样率hz、比特率kbps,其他参数使用默认配置;注意:是数字的参数必须提供数字,不要用字符串;需要使用的type类型,需提前把格式支持文件加载进来,比如使用wav格式需要提前加载wav.js编码引擎
9551
- onProcess: (_, r, p, M) => {
9552
- this.duration = this.formatMilliseconds(p), this.wave && this.wave.input(
9565
+ onProcess: (_, r, b, M) => {
9566
+ this.duration = this.formatMilliseconds(b), this.wave && this.wave.input(
9553
9567
  _[_.length - 1],
9554
9568
  r,
9555
9569
  M
@@ -9562,7 +9576,7 @@ const ta = {
9562
9576
  })), this.ready = !0;
9563
9577
  },
9564
9578
  (_, r) => {
9565
- console.log((r ? "UserNotAllow" : "") + "无法录音:" + _);
9579
+ alert(_, r), console.log((r ? "UserNotAllow" : "") + "无法录音:" + _);
9566
9580
  }
9567
9581
  );
9568
9582
  },
@@ -9584,7 +9598,7 @@ const ta = {
9584
9598
  },
9585
9599
  methods: {
9586
9600
  formatMilliseconds(_) {
9587
- const r = Math.floor(_ / 1e3), p = Math.floor(r / 60), M = r % 60, J = p.toString().padStart(2, "0"), Z = M.toString().padStart(2, "0");
9601
+ const r = Math.floor(_ / 1e3), b = Math.floor(r / 60), M = r % 60, J = b.toString().padStart(2, "0"), Z = M.toString().padStart(2, "0");
9588
9602
  return `${J}:${Z}`;
9589
9603
  },
9590
9604
  start() {
@@ -9593,7 +9607,7 @@ const ta = {
9593
9607
  stop() {
9594
9608
  this.rec.stop(
9595
9609
  (_, r) => {
9596
- this.pending = !1, this.url = window.URL.createObjectURL(_), this.duration = this.formatMilliseconds(r), this.blob = _;
9610
+ this.pending = !1, this.url = window.URL.createObjectURL(_), this.duration = this.formatMilliseconds(r), this.blob = _, this.isMobile && this.handleFinish();
9597
9611
  },
9598
9612
  (_) => {
9599
9613
  console.log("录音失败:" + _), this.pending = !1, this.url = null, this.blob = null, this.duration = "00:00";
@@ -9601,7 +9615,7 @@ const ta = {
9601
9615
  );
9602
9616
  },
9603
9617
  handleFinish() {
9604
- const [, _] = this.blob.type.split("/"), r = new Date().getTime(), p = `${r}.${_}`, M = new File([this.blob], p, {
9618
+ const [, _] = this.blob.type.split("/"), r = new Date().getTime(), b = `${r}.${_}`, M = new File([this.blob], b, {
9605
9619
  type: this.blob.type,
9606
9620
  lastModified: r
9607
9621
  });
@@ -9613,21 +9627,21 @@ const ta = {
9613
9627
  }
9614
9628
  };
9615
9629
  var aa = function() {
9616
- var r = this, p = r._self._c;
9617
- return p("div", { staticClass: "wrap", style: {
9630
+ var r = this, b = r._self._c;
9631
+ return b("div", { staticClass: "wrap", style: {
9618
9632
  width: r.width
9619
- } }, [p("div", { staticClass: "record-audio" }, [p("div", { staticClass: "main" }, [p("div", { staticClass: "recwave" }), p("div", { staticClass: "duration" }, [r._v(r._s(r.duration))])]), r.url ? p("audio", { ref: "audio", staticClass: "audio-item", attrs: { src: r.url, controls: "" } }) : r._e(), p("div", { staticClass: "buttons" }, [r.pending ? p("a", { staticClass: "oper", attrs: { title: "停止录制" }, on: { click: r.stop } }, [p("inline-svg", { attrs: { src: r.icon.stop, width: 24, height: 24 } })], 1) : p("a", { staticClass: "oper", attrs: { title: "开始录制" }, on: { click: r.start } }, [p("inline-svg", { attrs: { src: r.icon.record, width: 24, height: 24 } })], 1), p("a", { class: {
9633
+ } }, [r.isMobile ? b("div", { staticClass: "record-audio-mobile" }, [r.pending ? b("a", { staticClass: "oper", attrs: { title: "停止录制" }, on: { click: r.stop } }, [b("inline-svg", { attrs: { src: r.icon.stop, width: 24, height: 24 } })], 1) : b("a", { staticClass: "oper", attrs: { title: "开始录制" }, on: { click: r.start } }, [b("inline-svg", { attrs: { src: r.icon.record, width: 24, height: 24 } })], 1), b("div", { staticClass: "recwave" })]) : b("div", { staticClass: "record-audio" }, [b("div", { staticClass: "main" }, [b("div", { staticClass: "recwave" }), b("div", { staticClass: "duration" }, [r._v(r._s(r.duration))])]), r.url && !r.isMobile ? b("audio", { ref: "audio", staticClass: "audio-item", attrs: { src: r.url, controls: "" } }) : r._e(), b("div", { staticClass: "buttons" }, [r.pending ? b("a", { staticClass: "oper", attrs: { title: "停止录制" }, on: { click: r.stop } }, [b("inline-svg", { attrs: { src: r.icon.stop, width: 24, height: 24 } })], 1) : b("a", { staticClass: "oper", attrs: { title: "开始录制" }, on: { click: r.start } }, [b("inline-svg", { attrs: { src: r.icon.record, width: 24, height: 24 } })], 1), b("a", { class: {
9620
9634
  btn: !0,
9621
9635
  finish: !0,
9622
9636
  disabled: !r.blob
9623
- }, on: { click: r.handleFinish } }, [r._v(" 完成 ")]), p("a", { staticClass: "cancel btn", on: { click: r.handleCancel } }, [r._v("取消")])])]), p("div", { staticClass: "mask", on: { click: r.handleCancel } })]);
9637
+ }, on: { click: r.handleFinish } }, [r._v(" 完成 ")]), b("a", { staticClass: "cancel btn", on: { click: r.handleCancel } }, [r._v("取消")])])]), b("div", { staticClass: "mask", on: { click: r.handleCancel } })]);
9624
9638
  }, ra = [], ia = /* @__PURE__ */ zt(
9625
9639
  ta,
9626
9640
  aa,
9627
9641
  ra,
9628
9642
  !1,
9629
9643
  null,
9630
- "c2800929",
9644
+ "26b984ff",
9631
9645
  null,
9632
9646
  null
9633
9647
  );
@@ -9664,10 +9678,10 @@ var o0 = {}, sa = {
9664
9678
  throw "First parameter is required.";
9665
9679
  e = e || {
9666
9680
  type: "video"
9667
- }, e = new p(R, e);
9681
+ }, e = new b(R, e);
9668
9682
  var o = this;
9669
9683
  function h(G) {
9670
- return e.disableLogs || console.log("RecordRTC version: ", o.version), G && (e = new p(R, G)), e.disableLogs || console.log("started recording " + e.type + " stream."), ce ? (ce.clearRecordedData(), ce.record(), me("recording"), o.recordingDuration && te(), o) : (m(function() {
9684
+ return e.disableLogs || console.log("RecordRTC version: ", o.version), G && (e = new b(R, G)), e.disableLogs || console.log("started recording " + e.type + " stream."), ce ? (ce.clearRecordedData(), ce.record(), me("recording"), o.recordingDuration && te(), o) : (m(function() {
9671
9685
  o.recordingDuration && te();
9672
9686
  }), o);
9673
9687
  }
@@ -9767,13 +9781,13 @@ var o0 = {}, sa = {
9767
9781
  }
9768
9782
  function c(N) {
9769
9783
  try {
9770
- var H = ke.createObjectURL(new Blob([
9784
+ var P = ke.createObjectURL(new Blob([
9771
9785
  N.toString(),
9772
9786
  "this.onmessage = function (eee) {" + N.name + "(eee.data);}"
9773
9787
  ], {
9774
9788
  type: "application/javascript"
9775
- })), T = new Worker(H);
9776
- return ke.revokeObjectURL(H), T;
9789
+ })), T = new Worker(P);
9790
+ return ke.revokeObjectURL(P), T;
9777
9791
  } catch {
9778
9792
  }
9779
9793
  }
@@ -9798,11 +9812,11 @@ var o0 = {}, sa = {
9798
9812
  function me(G) {
9799
9813
  o && (o.state = G, typeof o.onStateChanged.call == "function" ? o.onStateChanged.call(o, G) : o.onStateChanged(G));
9800
9814
  }
9801
- var Me = 'It seems that recorder is destroyed or "startRecording" is not invoked for ' + e.type + " recorder.";
9815
+ var be = 'It seems that recorder is destroyed or "startRecording" is not invoked for ' + e.type + " recorder.";
9802
9816
  function ne() {
9803
- e.disableLogs !== !0 && console.warn(Me);
9817
+ e.disableLogs !== !0 && console.warn(be);
9804
9818
  }
9805
- var ce, pe = {
9819
+ var ce, Me = {
9806
9820
  /**
9807
9821
  * This method starts the recording.
9808
9822
  * @method
@@ -10159,7 +10173,7 @@ var o0 = {}, sa = {
10159
10173
  var G = e.disableLogs;
10160
10174
  e = {
10161
10175
  disableLogs: !0
10162
- }, o.reset(), me("destroyed"), pe = o = null, at.AudioContextConstructor && (at.AudioContextConstructor.close(), at.AudioContextConstructor = null), e.disableLogs = G, e.disableLogs || console.log("RecordRTC is destroyed.");
10176
+ }, o.reset(), me("destroyed"), Me = o = null, at.AudioContextConstructor && (at.AudioContextConstructor.close(), at.AudioContextConstructor = null), e.disableLogs = G, e.disableLogs || console.log("RecordRTC is destroyed.");
10163
10177
  },
10164
10178
  /**
10165
10179
  * RecordRTC version number
@@ -10173,10 +10187,10 @@ var o0 = {}, sa = {
10173
10187
  version: "5.6.2"
10174
10188
  };
10175
10189
  if (!this)
10176
- return o = pe, pe;
10177
- for (var se in pe)
10178
- this[se] = pe[se];
10179
- return o = this, pe;
10190
+ return o = Me, Me;
10191
+ for (var se in Me)
10192
+ this[se] = Me[se];
10193
+ return o = this, Me;
10180
10194
  }
10181
10195
  r.version = "5.6.2", _.exports = r, r.getFromDisk = function(R, e) {
10182
10196
  if (!e)
@@ -10243,7 +10257,7 @@ var o0 = {}, sa = {
10243
10257
  * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
10244
10258
  * @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, getNativeBlob:true, etc.}
10245
10259
  */
10246
- function p(R, e) {
10260
+ function b(R, e) {
10247
10261
  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 === V || e.recorderType === Le || typeof De < "u" && e.recorderType === De ? e.type = "video" : e.recorderType === qe ? e.type = "gif" : e.recorderType === Xe ? e.type = "audio" : e.recorderType === Fe && (Be(R, "audio").length && Be(R, "video").length || !Be(R, "audio").length && Be(R, "video").length ? e.type = "video" : Be(R, "audio").length && !Be(R, "video").length && (e.type = "audio"))), typeof Fe < "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;
10248
10262
  }
10249
10263
  /**
@@ -10262,7 +10276,7 @@ var o0 = {}, sa = {
10262
10276
  */
10263
10277
  function M(R, e) {
10264
10278
  var o;
10265
- return (ue || Oe || Ve) && (o = Xe), typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && !ue && (o = Fe), e.type === "video" && (ue || Ve) && (o = V, typeof De < "u" && typeof ReadableStream < "u" && (o = De)), e.type === "gif" && (o = qe), e.type === "canvas" && (o = Le), Je() && o !== Le && o !== qe && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (Be(R, "video").length || Be(R, "audio").length) && (e.type === "audio" ? typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("audio/webm") && (o = Fe) : typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("video/webm") && (o = Fe)), 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 = Fe), o;
10279
+ return (ue || Oe || Ve) && (o = Xe), typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && !ue && (o = Fe), e.type === "video" && (ue || Ve) && (o = V, typeof De < "u" && typeof ReadableStream < "u" && (o = De)), e.type === "gif" && (o = qe), e.type === "canvas" && (o = Le), Je() && o !== Le && o !== qe && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (Be(R, "video").length || Be(R, "audio").length) && (e.type === "audio" ? typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("audio/webm") && (o = Fe) : typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("video/webm") && (o = Fe)), R instanceof Array && R.length && (o = pt), e.recorderType && (o = e.recorderType), !e.disableLogs && o && o.name && console.log("Using recorderType:", o.name || o.constructor.name), !o && ge && (o = Fe), o;
10266
10280
  }
10267
10281
  /**
10268
10282
  * MRecordRTC runs on top of {@link RecordRTC} to bring multiple recordings in a single place, by providing simple API.
@@ -10440,11 +10454,11 @@ var o0 = {}, sa = {
10440
10454
  J.getFromDisk = r.getFromDisk, J.writeToDisk = r.writeToDisk, typeof r < "u" && (r.MRecordRTC = J);
10441
10455
  var Z = "Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";
10442
10456
  (function(R) {
10443
- R && (typeof window < "u" || typeof Mt > "u" || (Mt.navigator = {
10457
+ R && (typeof window < "u" || typeof bt > "u" || (bt.navigator = {
10444
10458
  userAgent: Z,
10445
10459
  getUserMedia: function() {
10446
10460
  }
10447
- }, Mt.console || (Mt.console = {}), (typeof Mt.console.log > "u" || typeof Mt.console.error > "u") && (Mt.console.error = Mt.console.log = Mt.console.log || function() {
10461
+ }, bt.console || (bt.console = {}), (typeof bt.console.log > "u" || typeof bt.console.error > "u") && (bt.console.error = bt.console.log = bt.console.log || function() {
10448
10462
  console.log(arguments);
10449
10463
  }), typeof document > "u" && (R.document = {
10450
10464
  documentElement: {
@@ -10484,8 +10498,8 @@ var o0 = {}, sa = {
10484
10498
  revokeObjectURL: function() {
10485
10499
  return "";
10486
10500
  }
10487
- }), R.window = Mt));
10488
- })(typeof Mt < "u" ? Mt : null);
10501
+ }), R.window = bt));
10502
+ })(typeof bt < "u" ? bt : null);
10489
10503
  var re = window.requestAnimationFrame;
10490
10504
  if (typeof re > "u") {
10491
10505
  if (typeof webkitRequestAnimationFrame < "u")
@@ -10654,23 +10668,23 @@ var o0 = {}, sa = {
10654
10668
  } catch {
10655
10669
  D = new MediaRecorder(R);
10656
10670
  }
10657
- me.mimeType && !MediaRecorder.isTypeSupported && "canRecordMimeType" in D && D.canRecordMimeType(me.mimeType) === !1 && (e.disableLogs || console.warn("MediaRecorder API seems unable to record mimeType:", me.mimeType)), D.ondataavailable = function(Me) {
10658
- if (Me.data && q.push("ondataavailable: " + Ye(Me.data.size)), typeof e.timeSlice == "number") {
10659
- if (Me.data && Me.data.size && (h.push(Me.data), m(), typeof e.ondataavailable == "function")) {
10660
- var ne = e.getNativeBlob ? Me.data : new Blob([Me.data], {
10671
+ me.mimeType && !MediaRecorder.isTypeSupported && "canRecordMimeType" in D && D.canRecordMimeType(me.mimeType) === !1 && (e.disableLogs || console.warn("MediaRecorder API seems unable to record mimeType:", me.mimeType)), D.ondataavailable = function(be) {
10672
+ if (be.data && q.push("ondataavailable: " + Ye(be.data.size)), typeof e.timeSlice == "number") {
10673
+ if (be.data && be.data.size && (h.push(be.data), m(), typeof e.ondataavailable == "function")) {
10674
+ var ne = e.getNativeBlob ? be.data : new Blob([be.data], {
10661
10675
  type: S(me)
10662
10676
  });
10663
10677
  e.ondataavailable(ne);
10664
10678
  }
10665
10679
  return;
10666
10680
  }
10667
- if (!Me.data || !Me.data.size || Me.data.size < 100 || te.blob) {
10681
+ if (!be.data || !be.data.size || be.data.size < 100 || te.blob) {
10668
10682
  te.recordingCallback && (te.recordingCallback(new Blob([], {
10669
10683
  type: S(me)
10670
10684
  })), te.recordingCallback = null);
10671
10685
  return;
10672
10686
  }
10673
- te.blob = e.getNativeBlob ? Me.data : new Blob([Me.data], {
10687
+ te.blob = e.getNativeBlob ? be.data : new Blob([be.data], {
10674
10688
  type: S(me)
10675
10689
  }), te.recordingCallback && (te.recordingCallback(te.blob), te.recordingCallback = null);
10676
10690
  }, D.onstart = function() {
@@ -10681,8 +10695,8 @@ var o0 = {}, sa = {
10681
10695
  q.push("resumed");
10682
10696
  }, D.onstop = function() {
10683
10697
  q.push("stopped");
10684
- }, D.onerror = function(Me) {
10685
- Me && (Me.name || (Me.name = "UnknownError"), q.push("error: " + Me), e.disableLogs || (Me.name.toString().toLowerCase().indexOf("invalidstate") !== -1 ? console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.", Me) : Me.name.toString().toLowerCase().indexOf("notsupported") !== -1 ? console.error("MIME type (", me.mimeType, ") is not supported.", Me) : Me.name.toString().toLowerCase().indexOf("security") !== -1 ? console.error("MediaRecorder security error", Me) : Me.name === "OutOfMemory" ? console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.", Me) : Me.name === "IllegalStreamModification" ? console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.", Me) : Me.name === "OtherRecordingError" ? console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.", Me) : Me.name === "GenericError" ? console.error("The UA cannot provide the codec or recording option that has been requested.", Me) : console.error("MediaRecorder Error", Me)), function(ne) {
10698
+ }, D.onerror = function(be) {
10699
+ be && (be.name || (be.name = "UnknownError"), q.push("error: " + be), e.disableLogs || (be.name.toString().toLowerCase().indexOf("invalidstate") !== -1 ? console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.", be) : be.name.toString().toLowerCase().indexOf("notsupported") !== -1 ? console.error("MIME type (", me.mimeType, ") is not supported.", be) : be.name.toString().toLowerCase().indexOf("security") !== -1 ? console.error("MediaRecorder security error", be) : be.name === "OutOfMemory" ? console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.", be) : be.name === "IllegalStreamModification" ? console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.", be) : be.name === "OtherRecordingError" ? console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.", be) : be.name === "GenericError" ? console.error("The UA cannot provide the codec or recording option that has been requested.", be) : console.error("MediaRecorder Error", be)), function(ne) {
10686
10700
  if (!te.manuallyStopped && D && D.state === "inactive") {
10687
10701
  delete e.timeslice, D.start(10 * 60 * 1e3);
10688
10702
  return;
@@ -10786,7 +10800,7 @@ var o0 = {}, sa = {
10786
10800
  this.record = function() {
10787
10801
  if (te() === !1)
10788
10802
  throw "Please make sure MediaStream is active.";
10789
- we(), ee = ve = !1, S = !0, typeof e.timeSlice < "u" && H();
10803
+ we(), ee = ve = !1, S = !0, typeof e.timeSlice < "u" && P();
10790
10804
  };
10791
10805
  function me(T, oe) {
10792
10806
  function g(ae, j) {
@@ -10796,8 +10810,8 @@ var o0 = {}, sa = {
10796
10810
  var W = Math.round(C.length * (a / i)), L = [], Q = Number((C.length - 1) / (W - 1));
10797
10811
  L[0] = C[0];
10798
10812
  for (var le = 1; le < W - 1; le++) {
10799
- var _e = le * Q, be = Number(Math.floor(_e)).toFixed(), je = Number(Math.ceil(_e)).toFixed(), Pe = _e - be;
10800
- L[le] = A(C[be], C[je], Pe);
10813
+ var _e = le * Q, pe = Number(Math.floor(_e)).toFixed(), je = Number(Math.ceil(_e)).toFixed(), He = _e - pe;
10814
+ L[le] = A(C[pe], C[je], He);
10801
10815
  }
10802
10816
  return L[W - 1] = C[C.length - 1], L;
10803
10817
  }
@@ -10822,18 +10836,18 @@ var o0 = {}, sa = {
10822
10836
  }
10823
10837
  var w;
10824
10838
  K === 2 && (w = y(k, fe)), K === 1 && (w = k);
10825
- var u = w.length, I = 44 + u * 2, n = new ArrayBuffer(I), P = new DataView(n);
10826
- f(P, 0, "RIFF"), P.setUint32(4, 36 + u * 2, !0), f(P, 8, "WAVE"), f(P, 12, "fmt "), P.setUint32(16, 16, !0), P.setUint16(20, 1, !0), P.setUint16(22, K, !0), P.setUint32(24, E, !0), P.setUint32(28, E * K * 2, !0), P.setUint16(32, K * 2, !0), P.setUint16(34, 16, !0), f(P, 36, "data"), P.setUint32(40, u * 2, !0);
10827
- for (var d = u, v = 44, b = 1, x = 0; x < d; x++)
10828
- P.setInt16(v, w[x] * (32767 * b), !0), v += 2;
10839
+ var u = w.length, I = 44 + u * 2, n = new ArrayBuffer(I), H = new DataView(n);
10840
+ f(H, 0, "RIFF"), H.setUint32(4, 36 + u * 2, !0), f(H, 8, "WAVE"), f(H, 12, "fmt "), H.setUint32(16, 16, !0), H.setUint16(20, 1, !0), H.setUint16(22, K, !0), H.setUint32(24, E, !0), H.setUint32(28, E * K * 2, !0), H.setUint16(32, K * 2, !0), H.setUint16(34, 16, !0), f(H, 36, "data"), H.setUint32(40, u * 2, !0);
10841
+ for (var d = u, v = 44, p = 1, x = 0; x < d; x++)
10842
+ H.setInt16(v, w[x] * (32767 * p), !0), v += 2;
10829
10843
  if (j)
10830
10844
  return j({
10831
10845
  buffer: n,
10832
- view: P
10846
+ view: H
10833
10847
  });
10834
10848
  postMessage({
10835
10849
  buffer: n,
10836
- view: P
10850
+ view: H
10837
10851
  });
10838
10852
  }
10839
10853
  if (T.noWorker) {
@@ -10842,12 +10856,12 @@ var o0 = {}, sa = {
10842
10856
  });
10843
10857
  return;
10844
10858
  }
10845
- var z = Me(g);
10859
+ var z = be(g);
10846
10860
  z.onmessage = function(ae) {
10847
10861
  oe(ae.data.buffer, ae.data.view), ke.revokeObjectURL(z.workerURL), z.terminate();
10848
10862
  }, z.postMessage(T);
10849
10863
  }
10850
- function Me(T) {
10864
+ function be(T) {
10851
10865
  var oe = ke.createObjectURL(new Blob([
10852
10866
  T.toString(),
10853
10867
  ";this.onmessage = function (eee) {" + T.name + "(eee.data);}"
@@ -10875,8 +10889,8 @@ var o0 = {}, sa = {
10875
10889
  AudioContextConstructor: null,
10876
10890
  AudioContext: window.AudioContext || window.webkitAudioContext
10877
10891
  }), (!r.Storage.AudioContextConstructor || r.Storage.AudioContextConstructor.state === "closed") && (r.Storage.AudioContextConstructor = new r.Storage.AudioContext());
10878
- var ne = r.Storage.AudioContextConstructor, ce = ne.createMediaStreamSource(R), pe = [0, 256, 512, 1024, 2048, 4096, 8192, 16384], se = typeof e.bufferSize > "u" ? 4096 : e.bufferSize;
10879
- if (pe.indexOf(se) === -1 && (e.disableLogs || console.log("Legal values for buffer-size are " + JSON.stringify(pe, null, " "))), ne.createJavaScriptNode)
10892
+ var ne = r.Storage.AudioContextConstructor, ce = ne.createMediaStreamSource(R), Me = [0, 256, 512, 1024, 2048, 4096, 8192, 16384], se = typeof e.bufferSize > "u" ? 4096 : e.bufferSize;
10893
+ if (Me.indexOf(se) === -1 && (e.disableLogs || console.log("Legal values for buffer-size are " + JSON.stringify(Me, null, " "))), ne.createJavaScriptNode)
10880
10894
  D = ne.createJavaScriptNode(se, s, s);
10881
10895
  else if (ne.createScriptProcessor)
10882
10896
  D = ne.createScriptProcessor(se, s, s);
@@ -10934,7 +10948,7 @@ var o0 = {}, sa = {
10934
10948
  right: [],
10935
10949
  recordingLength: 0
10936
10950
  };
10937
- function H() {
10951
+ function P() {
10938
10952
  !S || typeof e.ondataavailable != "function" || typeof e.timeSlice > "u" || (N.left.length ? (me({
10939
10953
  desiredSampRate: q,
10940
10954
  sampleRate: G,
@@ -10946,12 +10960,12 @@ var o0 = {}, sa = {
10946
10960
  var g = new Blob([oe], {
10947
10961
  type: "audio/wav"
10948
10962
  });
10949
- e.ondataavailable(g), setTimeout(H, e.timeSlice);
10963
+ e.ondataavailable(g), setTimeout(P, e.timeSlice);
10950
10964
  }), N = {
10951
10965
  left: [],
10952
10966
  right: [],
10953
10967
  recordingLength: 0
10954
- }) : setTimeout(H, e.timeSlice));
10968
+ }) : setTimeout(P, e.timeSlice));
10955
10969
  }
10956
10970
  }
10957
10971
  typeof r < "u" && (r.StereoAudioRecorder = Xe);
@@ -10977,8 +10991,8 @@ var o0 = {}, sa = {
10977
10991
  throw "Please link: https://www.webrtc-experiment.com/screenshot.js";
10978
10992
  e = e || {}, e.frameInterval || (e.frameInterval = 10);
10979
10993
  var o = !1;
10980
- ["captureStream", "mozCaptureStream", "webkitCaptureStream"].forEach(function(pe) {
10981
- pe in document.createElement("canvas") && (o = !0);
10994
+ ["captureStream", "mozCaptureStream", "webkitCaptureStream"].forEach(function(Me) {
10995
+ Me in document.createElement("canvas") && (o = !0);
10982
10996
  });
10983
10997
  var h = (!!window.webkitRTCPeerConnection || !!window.webkitGetUserMedia) && !!window.chrome, m = 50, S = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
10984
10998
  h && S && S[2] && (m = parseInt(S[2], 10)), h && m < 52 && (o = !1), e.useWhammyRecorder && (o = !1);
@@ -10995,24 +11009,24 @@ var o0 = {}, sa = {
10995
11009
  var s;
10996
11010
  this.record = function() {
10997
11011
  if (s = !0, o && !e.useWhammyRecorder) {
10998
- var pe;
10999
- "captureStream" in Y ? pe = Y.captureStream(25) : "mozCaptureStream" in Y ? pe = Y.mozCaptureStream(25) : "webkitCaptureStream" in Y && (pe = Y.webkitCaptureStream(25));
11012
+ var Me;
11013
+ "captureStream" in Y ? Me = Y.captureStream(25) : "mozCaptureStream" in Y ? Me = Y.mozCaptureStream(25) : "webkitCaptureStream" in Y && (Me = Y.webkitCaptureStream(25));
11000
11014
  try {
11001
11015
  var se = new Ce();
11002
- se.addTrack(Be(pe, "video")[0]), pe = se;
11016
+ se.addTrack(Be(Me, "video")[0]), Me = se;
11003
11017
  } catch {
11004
11018
  }
11005
- if (!pe)
11019
+ if (!Me)
11006
11020
  throw "captureStream API are NOT available.";
11007
- D = new Fe(pe, {
11021
+ D = new Fe(Me, {
11008
11022
  mimeType: e.mimeType || "video/webm"
11009
11023
  }), D.record();
11010
11024
  } else
11011
- ce.frames = [], ne = new Date().getTime(), Me();
11025
+ ce.frames = [], ne = new Date().getTime(), be();
11012
11026
  e.initCallback && e.initCallback();
11013
- }, this.getWebPImages = function(pe) {
11027
+ }, this.getWebPImages = function(Me) {
11014
11028
  if (R.nodeName.toLowerCase() !== "canvas") {
11015
- pe();
11029
+ Me();
11016
11030
  return;
11017
11031
  }
11018
11032
  var se = ce.frames.length;
@@ -11021,19 +11035,19 @@ var o0 = {}, sa = {
11021
11035
  e.disableLogs || console.log(we + "/" + se + " frames remaining"), e.onEncodingCallback && e.onEncodingCallback(we, se);
11022
11036
  var U = G.image.toDataURL("image/webp", 1);
11023
11037
  ce.frames[ve].image = U;
11024
- }), e.disableLogs || console.log("Generating WebM"), pe();
11025
- }, this.stop = function(pe) {
11038
+ }), e.disableLogs || console.log("Generating WebM"), Me();
11039
+ }, this.stop = function(Me) {
11026
11040
  s = !1;
11027
11041
  var se = this;
11028
11042
  if (o && D) {
11029
- D.stop(pe);
11043
+ D.stop(Me);
11030
11044
  return;
11031
11045
  }
11032
11046
  this.getWebPImages(function() {
11033
11047
  ce.compile(function(G) {
11034
11048
  e.disableLogs || console.log("Recording finished!"), se.blob = G, se.blob.forEach && (se.blob = new Blob([], {
11035
11049
  type: "video/webm"
11036
- })), pe && pe(se.blob), ce.frames = [];
11050
+ })), Me && Me(se.blob), ce.frames = [];
11037
11051
  });
11038
11052
  });
11039
11053
  };
@@ -11059,18 +11073,18 @@ var o0 = {}, sa = {
11059
11073
  return this.name;
11060
11074
  };
11061
11075
  function me() {
11062
- var pe = document.createElement("canvas"), se = pe.getContext("2d");
11063
- return pe.width = R.width, pe.height = R.height, se.drawImage(R, 0, 0), pe;
11076
+ var Me = document.createElement("canvas"), se = Me.getContext("2d");
11077
+ return Me.width = R.width, Me.height = R.height, se.drawImage(R, 0, 0), Me;
11064
11078
  }
11065
- function Me() {
11079
+ function be() {
11066
11080
  if (q)
11067
- return ne = new Date().getTime(), setTimeout(Me, 500);
11081
+ return ne = new Date().getTime(), setTimeout(be, 500);
11068
11082
  if (R.nodeName.toLowerCase() === "canvas") {
11069
- var pe = new Date().getTime() - ne;
11083
+ var Me = new Date().getTime() - ne;
11070
11084
  ne = new Date().getTime(), ce.frames.push({
11071
11085
  image: me(),
11072
- duration: pe
11073
- }), s && setTimeout(Me, e.frameInterval);
11086
+ duration: Me
11087
+ }), s && setTimeout(be, e.frameInterval);
11074
11088
  return;
11075
11089
  }
11076
11090
  html2canvas(R, {
@@ -11078,15 +11092,15 @@ var o0 = {}, sa = {
11078
11092
  onrendered: function(se) {
11079
11093
  var G = new Date().getTime() - ne;
11080
11094
  if (!G)
11081
- return setTimeout(Me, e.frameInterval);
11095
+ return setTimeout(be, e.frameInterval);
11082
11096
  ne = new Date().getTime(), ce.frames.push({
11083
11097
  image: se.toDataURL("image/webp", 1),
11084
11098
  duration: G
11085
- }), s && setTimeout(Me, e.frameInterval);
11099
+ }), s && setTimeout(be, e.frameInterval);
11086
11100
  }
11087
11101
  });
11088
11102
  }
11089
- var ne = new Date().getTime(), ce = new pt.Video(100);
11103
+ var ne = new Date().getTime(), ce = new Mt.Video(100);
11090
11104
  }
11091
11105
  typeof r < "u" && (r.CanvasRecorder = Le);
11092
11106
  /**
@@ -11116,7 +11130,7 @@ var o0 = {}, sa = {
11116
11130
  height: e.height
11117
11131
  }), s.width = e.canvas.width || 320, s.height = e.canvas.height || 240, q = s.getContext("2d"), e.video && e.video instanceof HTMLVideoElement ? (te = e.video.cloneNode(), e.initCallback && e.initCallback()) : (te = document.createElement("video"), $e(R, te), te.onloadedmetadata = function() {
11118
11132
  e.initCallback && e.initCallback();
11119
- }, te.width = e.video.width, te.height = e.video.height), te.muted = !0, te.play(), me = new Date().getTime(), Me = new pt.Video(), e.disableLogs || (console.log("canvas resolutions", s.width, "*", s.height), console.log("video width/height", te.width || s.width, "*", te.height || s.height)), o(e.frameInterval);
11133
+ }, te.width = e.video.width, te.height = e.video.height), te.muted = !0, te.play(), me = new Date().getTime(), be = new Mt.Video(), e.disableLogs || (console.log("canvas resolutions", s.width, "*", s.height), console.log("video width/height", te.width || s.width, "*", te.height || s.height)), o(e.frameInterval);
11120
11134
  };
11121
11135
  function o(ne) {
11122
11136
  ne = typeof ne < "u" ? ne : 10;
@@ -11125,15 +11139,15 @@ var o0 = {}, sa = {
11125
11139
  return setTimeout(o, ne, ne);
11126
11140
  if (Y)
11127
11141
  return me = new Date().getTime(), setTimeout(o, 100);
11128
- me = new Date().getTime(), te.paused && te.play(), q.drawImage(te, 0, 0, s.width, s.height), Me.frames.push({
11142
+ me = new Date().getTime(), te.paused && te.play(), q.drawImage(te, 0, 0, s.width, s.height), be.frames.push({
11129
11143
  duration: ce,
11130
11144
  image: s.toDataURL("image/webp")
11131
11145
  }), S || setTimeout(o, ne, ne);
11132
11146
  }
11133
11147
  function h(ne) {
11134
- var ce = -1, pe = ne.length;
11148
+ var ce = -1, Me = ne.length;
11135
11149
  (function se() {
11136
- if (ce++, ce === pe) {
11150
+ if (ce++, ce === Me) {
11137
11151
  ne.callback();
11138
11152
  return;
11139
11153
  }
@@ -11142,16 +11156,16 @@ var o0 = {}, sa = {
11142
11156
  }, 1);
11143
11157
  })();
11144
11158
  }
11145
- function m(ne, ce, pe, se, G) {
11159
+ function m(ne, ce, Me, se, G) {
11146
11160
  var ve = document.createElement("canvas");
11147
11161
  ve.width = s.width, ve.height = s.height;
11148
11162
  var we = ve.getContext("2d"), U = [], ee = ce === -1, c = ce && ce > 0 && ce <= ne.length ? ce : ne.length, N = {
11149
11163
  r: 0,
11150
11164
  g: 0,
11151
11165
  b: 0
11152
- }, H = Math.sqrt(
11166
+ }, P = Math.sqrt(
11153
11167
  Math.pow(255, 2) + Math.pow(255, 2) + Math.pow(255, 2)
11154
- ), T = pe && pe >= 0 && pe <= 1 ? pe : 0, oe = se && se >= 0 && se <= 1 ? se : 0, g = !1;
11168
+ ), T = Me && Me >= 0 && Me <= 1 ? Me : 0, oe = se && se >= 0 && se <= 1 ? se : 0, g = !1;
11155
11169
  h({
11156
11170
  length: c,
11157
11171
  functionToLoop: function(z, ae) {
@@ -11174,7 +11188,7 @@ var o0 = {}, sa = {
11174
11188
  }, A = Math.sqrt(
11175
11189
  Math.pow(l.r - N.r, 2) + Math.pow(l.g - N.g, 2) + Math.pow(l.b - N.b, 2)
11176
11190
  );
11177
- A <= H * T && j++;
11191
+ A <= P * T && j++;
11178
11192
  }
11179
11193
  fe();
11180
11194
  }, E.src = ne[ae].image;
@@ -11191,8 +11205,8 @@ var o0 = {}, sa = {
11191
11205
  }, S = !0;
11192
11206
  var ce = this;
11193
11207
  setTimeout(function() {
11194
- m(Me.frames, -1, null, null, function(pe) {
11195
- Me.frames = pe, e.advertisement && e.advertisement.length && (Me.frames = e.advertisement.concat(Me.frames)), Me.compile(function(se) {
11208
+ m(be.frames, -1, null, null, function(Me) {
11209
+ be.frames = Me, e.advertisement && e.advertisement.length && (be.frames = e.advertisement.concat(be.frames)), be.compile(function(se) {
11196
11210
  ce.blob = se, ce.blob.forEach && (ce.blob = new Blob([], {
11197
11211
  type: "video/webm"
11198
11212
  })), ne && ne(ce.blob);
@@ -11209,12 +11223,12 @@ var o0 = {}, sa = {
11209
11223
  S || this.stop(D), D();
11210
11224
  };
11211
11225
  function D() {
11212
- Me.frames = [], S = !0, Y = !1;
11226
+ be.frames = [], S = !0, Y = !1;
11213
11227
  }
11214
11228
  this.name = "WhammyRecorder", this.toString = function() {
11215
11229
  return this.name;
11216
11230
  };
11217
- var s = document.createElement("canvas"), q = s.getContext("2d"), te, me, Me;
11231
+ var s = document.createElement("canvas"), q = s.getContext("2d"), te, me, be;
11218
11232
  }
11219
11233
  typeof r < "u" && (r.WhammyRecorder = V);
11220
11234
  /**
@@ -11230,7 +11244,7 @@ var o0 = {}, sa = {
11230
11244
  * var output = recorder.compile();
11231
11245
  * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
11232
11246
  */
11233
- var pt = function() {
11247
+ var Mt = function() {
11234
11248
  function R(h) {
11235
11249
  this.frames = [], this.duration = h || 1, this.quality = 0.8;
11236
11250
  }
@@ -11308,7 +11322,7 @@ var o0 = {}, sa = {
11308
11322
  id: 22337
11309
11323
  // WritingApp
11310
11324
  }, {
11311
- data: pe(ve.duration),
11325
+ data: Me(ve.duration),
11312
11326
  id: 17545
11313
11327
  // Duration
11314
11328
  }]
@@ -11362,16 +11376,16 @@ var o0 = {}, sa = {
11362
11376
  }]
11363
11377
  }]
11364
11378
  }], ee = 0, c = 0; ee < G.length; ) {
11365
- var N = [], H = 0;
11379
+ var N = [], P = 0;
11366
11380
  do
11367
- N.push(G[ee]), H += G[ee].duration, ee++;
11368
- while (ee < G.length && H < we);
11381
+ N.push(G[ee]), P += G[ee].duration, ee++;
11382
+ while (ee < G.length && P < we);
11369
11383
  var T = 0, oe = {
11370
11384
  id: 524531317,
11371
11385
  // Cluster
11372
11386
  data: S(c, T, N)
11373
11387
  };
11374
- U[1].data.push(oe), c += H;
11388
+ U[1].data.push(oe), c += P;
11375
11389
  }
11376
11390
  return te(U);
11377
11391
  }
@@ -11432,7 +11446,7 @@ var o0 = {}, sa = {
11432
11446
  for (var ve = [], we = 0; we < G.length; we++) {
11433
11447
  var U = G[we].data;
11434
11448
  typeof U == "object" && (U = te(U)), typeof U == "number" && (U = q(U.toString(2))), typeof U == "string" && (U = s(U));
11435
- var ee = U.size || U.byteLength || U.length, c = Math.ceil(Math.ceil(Math.log(ee) / Math.log(2)) / 8), N = ee.toString(2), H = new Array(c * 7 + 7 + 1 - N.length).join("0") + N, T = new Array(c).join("0") + "1" + H;
11449
+ var ee = U.size || U.byteLength || U.length, c = Math.ceil(Math.ceil(Math.log(ee) / Math.log(2)) / 8), N = ee.toString(2), P = new Array(c * 7 + 7 + 1 - N.length).join("0") + N, T = new Array(c).join("0") + "1" + P;
11436
11450
  ve.push(D(G[we].id)), ve.push(q(T)), ve.push(U);
11437
11451
  }
11438
11452
  return new Blob(ve, {
@@ -11448,11 +11462,11 @@ var o0 = {}, sa = {
11448
11462
  }).join("") + G.frame;
11449
11463
  return we;
11450
11464
  }
11451
- function Me(G) {
11465
+ function be(G) {
11452
11466
  for (var ve = G.RIFF[0].WEBP[0], we = ve.indexOf("*"), U = 0, ee = []; U < 4; U++)
11453
11467
  ee[U] = ve.charCodeAt(we + 3 + U);
11454
- var c, N, H;
11455
- return H = ee[1] << 8 | ee[0], c = H & 16383, H = ee[3] << 8 | ee[2], N = H & 16383, {
11468
+ var c, N, P;
11469
+ return P = ee[1] << 8 | ee[0], c = P & 16383, P = ee[3] << 8 | ee[2], N = P & 16383, {
11456
11470
  width: c,
11457
11471
  height: N,
11458
11472
  data: ve,
@@ -11472,7 +11486,7 @@ var o0 = {}, sa = {
11472
11486
  }
11473
11487
  return we;
11474
11488
  }
11475
- function pe(G) {
11489
+ function Me(G) {
11476
11490
  return [].slice.call(
11477
11491
  new Uint8Array(new Float64Array([G]).buffer),
11478
11492
  0
@@ -11481,7 +11495,7 @@ var o0 = {}, sa = {
11481
11495
  }).reverse().join("");
11482
11496
  }
11483
11497
  var se = new m(h.map(function(G) {
11484
- var ve = Me(ce(atob(G.image.slice(23))));
11498
+ var ve = be(ce(atob(G.image.slice(23))));
11485
11499
  return ve.duration = G.duration, ve;
11486
11500
  }));
11487
11501
  postMessage(se);
@@ -11508,7 +11522,7 @@ var o0 = {}, sa = {
11508
11522
  Video: R
11509
11523
  };
11510
11524
  }();
11511
- typeof r < "u" && (r.Whammy = pt);
11525
+ typeof r < "u" && (r.Whammy = Mt);
11512
11526
  /**
11513
11527
  * DiskStorage is a standalone object used by {@link RecordRTC} to store recorded blobs in IndexedDB storage.
11514
11528
  * @summary Writing blobs into IndexedDB.
@@ -11670,22 +11684,22 @@ var o0 = {}, sa = {
11670
11684
  }), e.canvas || (e.canvas = {
11671
11685
  width: e.width,
11672
11686
  height: e.height
11673
- }), Y.width = e.canvas.width || 320, Y.height = e.canvas.height || 240, q.width = e.video.width || 320, q.height = e.video.height || 240), Me = new GIFEncoder(), Me.setRepeat(0), Me.setDelay(e.frameRate || 200), Me.setQuality(e.quality || 10), Me.start(), typeof e.onGifRecordingStarted == "function" && e.onGifRecordingStarted();
11674
- function ce(pe) {
11687
+ }), Y.width = e.canvas.width || 320, Y.height = e.canvas.height || 240, q.width = e.video.width || 320, q.height = e.video.height || 240), be = new GIFEncoder(), be.setRepeat(0), be.setDelay(e.frameRate || 200), be.setQuality(e.quality || 10), be.start(), typeof e.onGifRecordingStarted == "function" && e.onGifRecordingStarted();
11688
+ function ce(Me) {
11675
11689
  if (ne.clearedRecordedData !== !0) {
11676
11690
  if (m)
11677
11691
  return setTimeout(function() {
11678
- ce(pe);
11692
+ ce(Me);
11679
11693
  }, 100);
11680
- te = re(ce), typeof me === void 0 && (me = pe), !(pe - me < 90) && (!h && q.paused && q.play(), h || D.drawImage(q, 0, 0, Y.width, Y.height), e.onGifPreview && e.onGifPreview(Y.toDataURL("image/png")), Me.addFrame(D), me = pe);
11694
+ te = re(ce), typeof me === void 0 && (me = Me), !(Me - me < 90) && (!h && q.paused && q.play(), h || D.drawImage(q, 0, 0, Y.width, Y.height), e.onGifPreview && e.onGifPreview(Y.toDataURL("image/png")), be.addFrame(D), me = Me);
11681
11695
  }
11682
11696
  }
11683
11697
  te = re(ce), e.initCallback && e.initCallback();
11684
11698
  }, this.stop = function(ce) {
11685
11699
  ce = ce || function() {
11686
- }, te && ye(te), this.blob = new Blob([new Uint8Array(Me.stream().bin)], {
11700
+ }, te && ye(te), this.blob = new Blob([new Uint8Array(be.stream().bin)], {
11687
11701
  type: "image/gif"
11688
- }), ce(this.blob), Me.stream().bin = [];
11702
+ }), ce(this.blob), be.stream().bin = [];
11689
11703
  };
11690
11704
  var m = !1;
11691
11705
  this.pause = function() {
@@ -11696,7 +11710,7 @@ var o0 = {}, sa = {
11696
11710
  ne.clearedRecordedData = !0, S();
11697
11711
  };
11698
11712
  function S() {
11699
- Me && (Me.stream().bin = []);
11713
+ be && (be.stream().bin = []);
11700
11714
  }
11701
11715
  this.name = "GifRecorder", this.toString = function() {
11702
11716
  return this.name;
@@ -11710,17 +11724,17 @@ var o0 = {}, sa = {
11710
11724
  s = !0;
11711
11725
  }, $e(R, q), q.play();
11712
11726
  }
11713
- var te = null, me, Me, ne = this;
11727
+ var te = null, me, be, ne = this;
11714
11728
  }
11715
11729
  typeof r < "u" && (r.GifRecorder = qe);
11716
11730
  function _t(R, e) {
11717
11731
  var o = "Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";
11718
11732
  (function(U) {
11719
- typeof r < "u" || U && (typeof window < "u" || typeof Mt > "u" || (Mt.navigator = {
11733
+ typeof r < "u" || U && (typeof window < "u" || typeof bt > "u" || (bt.navigator = {
11720
11734
  userAgent: o,
11721
11735
  getUserMedia: function() {
11722
11736
  }
11723
- }, Mt.console || (Mt.console = {}), (typeof Mt.console.log > "u" || typeof Mt.console.error > "u") && (Mt.console.error = Mt.console.log = Mt.console.log || function() {
11737
+ }, bt.console || (bt.console = {}), (typeof bt.console.log > "u" || typeof bt.console.error > "u") && (bt.console.error = bt.console.log = bt.console.log || function() {
11724
11738
  console.log(arguments);
11725
11739
  }), typeof document > "u" && (U.document = {
11726
11740
  documentElement: {
@@ -11760,8 +11774,8 @@ var o0 = {}, sa = {
11760
11774
  revokeObjectURL: function() {
11761
11775
  return "";
11762
11776
  }
11763
- }), U.window = Mt));
11764
- })(typeof Mt < "u" ? Mt : null), e = e || "multi-streams-mixer";
11777
+ }), U.window = bt));
11778
+ })(typeof bt < "u" ? bt : null), e = e || "multi-streams-mixer";
11765
11779
  var h = [], m = !1, S = document.createElement("canvas"), Y = S.getContext("2d");
11766
11780
  S.style.opacity = 0, S.style.position = "absolute", S.style.zIndex = -1, S.style.top = "-1000em", S.style.left = "-1000em", S.className = e, (document.body || document.documentElement).appendChild(S), this.disableLogs = !1, this.frameInterval = 10, this.width = 360, this.height = 240, this.useGainNode = !0;
11767
11781
  var D = this, s = window.AudioContext;
@@ -11776,7 +11790,7 @@ var o0 = {}, sa = {
11776
11790
  });
11777
11791
  var me = {};
11778
11792
  typeof s < "u" ? me.AudioContext = s : typeof webkitAudioContext < "u" && (me.AudioContext = webkitAudioContext);
11779
- function Me(U, ee) {
11793
+ function be(U, ee) {
11780
11794
  "srcObject" in ee ? ee.srcObject = U : "mozSrcObject" in ee ? ee.mozSrcObject = U : ee.srcObject = U;
11781
11795
  }
11782
11796
  this.startDrawingFrames = function() {
@@ -11785,8 +11799,8 @@ var o0 = {}, sa = {
11785
11799
  function ne() {
11786
11800
  if (!m) {
11787
11801
  var U = h.length, ee = !1, c = [];
11788
- if (h.forEach(function(H) {
11789
- H.stream || (H.stream = {}), H.stream.fullcanvas ? ee = H : c.push(H);
11802
+ if (h.forEach(function(P) {
11803
+ P.stream || (P.stream = {}), P.stream.fullcanvas ? ee = P : c.push(P);
11790
11804
  }), ee)
11791
11805
  S.width = ee.stream.width, S.height = ee.stream.height;
11792
11806
  else if (c.length) {
@@ -11795,18 +11809,18 @@ var o0 = {}, sa = {
11795
11809
  (U === 3 || U === 4) && (N = 2), (U === 5 || U === 6) && (N = 3), (U === 7 || U === 8) && (N = 4), (U === 9 || U === 10) && (N = 5), S.height = c[0].height * N;
11796
11810
  } else
11797
11811
  S.width = D.width || 360, S.height = D.height || 240;
11798
- ee && ee instanceof HTMLVideoElement && ce(ee), c.forEach(function(H, T) {
11799
- ce(H, T);
11812
+ ee && ee instanceof HTMLVideoElement && ce(ee), c.forEach(function(P, T) {
11813
+ ce(P, T);
11800
11814
  }), setTimeout(ne, D.frameInterval);
11801
11815
  }
11802
11816
  }
11803
11817
  function ce(U, ee) {
11804
11818
  if (!m) {
11805
- var c = 0, N = 0, H = U.width, T = U.height;
11806
- ee === 1 && (c = U.width), ee === 2 && (N = U.height), ee === 3 && (c = U.width, N = U.height), ee === 4 && (N = U.height * 2), ee === 5 && (c = U.width, N = U.height * 2), ee === 6 && (N = U.height * 3), ee === 7 && (c = U.width, N = U.height * 3), typeof U.stream.left < "u" && (c = U.stream.left), typeof U.stream.top < "u" && (N = U.stream.top), typeof U.stream.width < "u" && (H = U.stream.width), typeof U.stream.height < "u" && (T = U.stream.height), Y.drawImage(U, c, N, H, T), typeof U.stream.onRender == "function" && U.stream.onRender(Y, c, N, H, T, ee);
11819
+ var c = 0, N = 0, P = U.width, T = U.height;
11820
+ ee === 1 && (c = U.width), ee === 2 && (N = U.height), ee === 3 && (c = U.width, N = U.height), ee === 4 && (N = U.height * 2), ee === 5 && (c = U.width, N = U.height * 2), ee === 6 && (N = U.height * 3), ee === 7 && (c = U.width, N = U.height * 3), typeof U.stream.left < "u" && (c = U.stream.left), typeof U.stream.top < "u" && (N = U.stream.top), typeof U.stream.width < "u" && (P = U.stream.width), typeof U.stream.height < "u" && (T = U.stream.height), Y.drawImage(U, c, N, P, T), typeof U.stream.onRender == "function" && U.stream.onRender(Y, c, N, P, T, ee);
11807
11821
  }
11808
11822
  }
11809
- function pe() {
11823
+ function Me() {
11810
11824
  m = !1;
11811
11825
  var U = se(), ee = G();
11812
11826
  return ee && ee.getTracks().filter(function(c) {
@@ -11846,7 +11860,7 @@ var o0 = {}, sa = {
11846
11860
  }
11847
11861
  function ve(U) {
11848
11862
  var ee = document.createElement("video");
11849
- return Me(U, ee), ee.className = e, ee.muted = !0, ee.volume = 0, ee.width = U.width || D.width || 360, ee.height = U.height || D.height || 240, ee.play(), ee;
11863
+ return be(U, ee), ee.className = e, ee.muted = !0, ee.volume = 0, ee.width = U.width || D.width || 360, ee.height = U.height || D.height || 240, ee.play(), ee;
11850
11864
  }
11851
11865
  this.appendStreams = function(U) {
11852
11866
  if (!U)
@@ -11864,8 +11878,8 @@ var o0 = {}, sa = {
11864
11878
  if (ee.getTracks().filter(function(T) {
11865
11879
  return T.kind === "audio";
11866
11880
  }).length) {
11867
- var H = D.audioContext.createMediaStreamSource(ee);
11868
- D.audioDestination = D.audioContext.createMediaStreamDestination(), H.connect(D.audioDestination), c.addTrack(D.audioDestination.stream.getTracks().filter(function(T) {
11881
+ var P = D.audioContext.createMediaStreamSource(ee);
11882
+ D.audioDestination = D.audioContext.createMediaStreamDestination(), P.connect(D.audioDestination), c.addTrack(D.audioDestination.stream.getTracks().filter(function(T) {
11869
11883
  return T.kind === "audio";
11870
11884
  })[0]);
11871
11885
  }
@@ -11890,7 +11904,7 @@ var o0 = {}, sa = {
11890
11904
  }
11891
11905
  this.name = "MultiStreamsMixer", this.toString = function() {
11892
11906
  return this.name;
11893
- }, this.getMixedStream = pe;
11907
+ }, this.getMixedStream = Me;
11894
11908
  }
11895
11909
  typeof r > "u" && (_.exports = _t);
11896
11910
  /**
@@ -11916,7 +11930,7 @@ var o0 = {}, sa = {
11916
11930
  * @param {MediaStreams} mediaStreams - Array of MediaStreams.
11917
11931
  * @param {object} config - {disableLogs:true, frameInterval: 1, mimeType: "video/webm"}
11918
11932
  */
11919
- function bt(R, e) {
11933
+ function pt(R, e) {
11920
11934
  R = R || [];
11921
11935
  var o = this, h, m;
11922
11936
  e = e || {
@@ -11959,7 +11973,7 @@ var o0 = {}, sa = {
11959
11973
  return this.name;
11960
11974
  };
11961
11975
  }
11962
- typeof r < "u" && (r.MultiStreamRecorder = bt);
11976
+ typeof r < "u" && (r.MultiStreamRecorder = pt);
11963
11977
  /**
11964
11978
  * RecordRTCPromisesHandler adds promises support in {@link RecordRTC}. Try a {@link https://github.com/muaz-khan/RecordRTC/blob/master/simple-demos/RecordRTCPromisesHandler.html|demo here}
11965
11979
  * @summary Promises for {@link RecordRTC}
@@ -12101,11 +12115,11 @@ var o0 = {}, sa = {
12101
12115
  function h() {
12102
12116
  return new ReadableStream({
12103
12117
  start: function(q) {
12104
- var te = document.createElement("canvas"), me = document.createElement("video"), Me = !0;
12118
+ var te = document.createElement("canvas"), me = document.createElement("video"), be = !0;
12105
12119
  me.srcObject = R, me.muted = !0, me.height = e.height, me.width = e.width, me.volume = 0, me.onplaying = function() {
12106
12120
  te.width = e.width, te.height = e.height;
12107
- var ne = te.getContext("2d"), ce = 1e3 / e.frameRate, pe = setInterval(function() {
12108
- if (o && (clearInterval(pe), q.close()), Me && (Me = !1, e.onVideoProcessStarted && e.onVideoProcessStarted()), ne.drawImage(me, 0, 0), q._controlledReadableStream.state !== "closed")
12121
+ var ne = te.getContext("2d"), ce = 1e3 / e.frameRate, Me = setInterval(function() {
12122
+ if (o && (clearInterval(Me), q.close()), be && (be = !1, e.onVideoProcessStarted && e.onVideoProcessStarted()), ne.drawImage(me, 0, 0), q._controlledReadableStream.state !== "closed")
12109
12123
  try {
12110
12124
  q.enqueue(
12111
12125
  ne.getImageData(0, 0, e.width, e.height)
@@ -12122,8 +12136,8 @@ var o0 = {}, sa = {
12122
12136
  if (!e.workerPath && !te) {
12123
12137
  o = !1, fetch(
12124
12138
  "https://unpkg.com/webm-wasm@latest/dist/webm-worker.js"
12125
- ).then(function(Me) {
12126
- Me.arrayBuffer().then(function(ne) {
12139
+ ).then(function(be) {
12140
+ be.arrayBuffer().then(function(ne) {
12127
12141
  S(q, ne);
12128
12142
  });
12129
12143
  });
@@ -12135,8 +12149,8 @@ var o0 = {}, sa = {
12135
12149
  });
12136
12150
  e.workerPath = ke.createObjectURL(me);
12137
12151
  }
12138
- e.workerPath || console.error("workerPath parameter is missing."), m = new Worker(e.workerPath), m.postMessage(e.webAssemblyPath || "https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"), m.addEventListener("message", function(Me) {
12139
- Me.data === "READY" ? (m.postMessage({
12152
+ e.workerPath || console.error("workerPath parameter is missing."), m = new Worker(e.workerPath), m.postMessage(e.webAssemblyPath || "https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"), m.addEventListener("message", function(be) {
12153
+ be.data === "READY" ? (m.postMessage({
12140
12154
  width: e.width,
12141
12155
  height: e.height,
12142
12156
  bitrate: e.bitrate || 1200,
@@ -12150,7 +12164,7 @@ var o0 = {}, sa = {
12150
12164
  }
12151
12165
  m.postMessage(ne.data.buffer, [ne.data.buffer]);
12152
12166
  }
12153
- }))) : Me.data && (Y || s.push(Me.data));
12167
+ }))) : be.data && (Y || s.push(be.data));
12154
12168
  });
12155
12169
  }
12156
12170
  this.record = function() {
@@ -12235,7 +12249,7 @@ const oa = {
12235
12249
  handleFinish() {
12236
12250
  if (!this.blob)
12237
12251
  return;
12238
- const [, _] = this.blob.type.replace(/(;.*$)/, "").split("/"), r = new Date().getTime(), p = `${r}.${_}`, M = new File([this.blob], p, {
12252
+ const [, _] = this.blob.type.replace(/(;.*$)/, "").split("/"), r = new Date().getTime(), b = `${r}.${_}`, M = new File([this.blob], b, {
12239
12253
  type: this.blob.type,
12240
12254
  lastModified: r
12241
12255
  });
@@ -12247,13 +12261,13 @@ const oa = {
12247
12261
  }
12248
12262
  };
12249
12263
  var la = function() {
12250
- var r = this, p = r._self._c;
12251
- return p("div", { staticClass: "wrap", style: {
12264
+ var r = this, b = r._self._c;
12265
+ return b("div", { staticClass: "wrap", style: {
12252
12266
  width: r.width
12253
- } }, [p("div", { staticClass: "record-video" }, [p("video", { ref: "video", staticClass: "video-item", attrs: { volume: 1, controls: "" }, domProps: { muted: !1 } }), p("div", { staticClass: "buttons" }, [r.pending ? p("a", { staticClass: "oper", attrs: { title: "停止录制" }, on: { click: r.stop } }, [p("inline-svg", { attrs: { src: r.icon.stop, width: 24, height: 24 } })], 1) : p("a", { staticClass: "oper", attrs: { title: "开始录制" }, on: { click: r.start } }, [p("inline-svg", { attrs: { src: r.icon.record, width: 24, height: 24 } })], 1), p("a", { staticClass: "btn", class: {
12267
+ } }, [b("div", { staticClass: "record-video" }, [b("video", { ref: "video", staticClass: "video-item", attrs: { volume: 1, controls: "" }, domProps: { muted: !1 } }), b("div", { staticClass: "buttons" }, [r.pending ? b("a", { staticClass: "oper", attrs: { title: "停止录制" }, on: { click: r.stop } }, [b("inline-svg", { attrs: { src: r.icon.stop, width: 24, height: 24 } })], 1) : b("a", { staticClass: "oper", attrs: { title: "开始录制" }, on: { click: r.start } }, [b("inline-svg", { attrs: { src: r.icon.record, width: 24, height: 24 } })], 1), b("a", { staticClass: "btn", class: {
12254
12268
  finish: !0,
12255
12269
  disabled: !r.blob
12256
- }, on: { click: r.handleFinish } }, [r._v("完成")]), p("a", { staticClass: "cancel btn", on: { click: r.handleCancel } }, [r._v("取消")])])]), p("div", { staticClass: "mask", on: { click: r.handleCancel } })]);
12270
+ }, on: { click: r.handleFinish } }, [r._v("完成")]), b("a", { staticClass: "cancel btn", on: { click: r.handleCancel } }, [r._v("取消")])])]), b("div", { staticClass: "mask", on: { click: r.handleCancel } })]);
12257
12271
  }, ua = [], ca = /* @__PURE__ */ zt(
12258
12272
  oa,
12259
12273
  la,
@@ -12296,11 +12310,11 @@ const fa = {
12296
12310
  ), this.url = this.$refs.canvas.toDataURL("image/jpeg");
12297
12311
  },
12298
12312
  handleFinish() {
12299
- const r = `${new Date().getTime()}.jpeg`, p = this.dataURLtoFile(this.url, r);
12300
- this.$emit("finish", [p]), this.$emit("cancel");
12313
+ const r = `${new Date().getTime()}.jpeg`, b = this.dataURLtoFile(this.url, r);
12314
+ this.$emit("finish", [b]), this.$emit("cancel");
12301
12315
  },
12302
12316
  dataURLtoFile(_, r) {
12303
- let p = _.split(","), M = p[0].match(/:(.*?);/)[1], J = atob(p[1]), Z = J.length, re = new Uint8Array(Z);
12317
+ let b = _.split(","), M = b[0].match(/:(.*?);/)[1], J = atob(b[1]), Z = J.length, re = new Uint8Array(Z);
12304
12318
  for (; Z--; )
12305
12319
  re[Z] = J.charCodeAt(Z);
12306
12320
  return new File([re], r, { type: M });
@@ -12311,13 +12325,13 @@ const fa = {
12311
12325
  }
12312
12326
  };
12313
12327
  var ha = function() {
12314
- var r = this, p = r._self._c;
12315
- return p("div", { staticClass: "wrap", style: {
12328
+ var r = this, b = r._self._c;
12329
+ return b("div", { staticClass: "wrap", style: {
12316
12330
  width: r.width
12317
- } }, [p("div", { staticClass: "record-video" }, [p("div", { staticClass: "record-content" }, [p("video", { ref: "video", staticClass: "video-item", attrs: { volume: 0, autoplay: "", controls: "" }, domProps: { muted: !0 } }), p("div", { staticClass: "img-item" }, [r.url ? p("img", { attrs: { src: r.url } }) : r._e()])]), p("canvas", { ref: "canvas", staticStyle: { display: "none" }, attrs: { width: "640", height: "480" } }), p("div", { staticClass: "buttons" }, [r.pending ? r._e() : p("a", { staticClass: "oper", attrs: { title: "拍照" }, on: { click: r.start } }, [p("inline-svg", { attrs: { src: r.icon.photo, width: 24, height: 24 } })], 1), p("a", { staticClass: "btn", class: {
12331
+ } }, [b("div", { staticClass: "record-video" }, [b("div", { staticClass: "record-content" }, [b("video", { ref: "video", staticClass: "video-item", attrs: { volume: 0, autoplay: "", controls: "" }, domProps: { muted: !0 } }), b("div", { staticClass: "img-item" }, [r.url ? b("img", { attrs: { src: r.url } }) : r._e()])]), b("canvas", { ref: "canvas", staticStyle: { display: "none" }, attrs: { width: "640", height: "480" } }), b("div", { staticClass: "buttons" }, [r.pending ? r._e() : b("a", { staticClass: "oper", attrs: { title: "拍照" }, on: { click: r.start } }, [b("inline-svg", { attrs: { src: r.icon.photo, width: 24, height: 24 } })], 1), b("a", { staticClass: "btn", class: {
12318
12332
  finish: !0,
12319
12333
  disabled: !r.url
12320
- }, on: { click: r.handleFinish } }, [r._v("完成")]), p("a", { staticClass: "cancel btn", on: { click: r.handleCancel } }, [r._v("取消")])])]), p("div", { staticClass: "mask", on: { click: r.handleCancel } })]);
12334
+ }, on: { click: r.handleFinish } }, [r._v("完成")]), b("a", { staticClass: "cancel btn", on: { click: r.handleCancel } }, [r._v("取消")])])]), b("div", { staticClass: "mask", on: { click: r.handleCancel } })]);
12321
12335
  }, va = [], _a = /* @__PURE__ */ zt(
12322
12336
  fa,
12323
12337
  ha,
@@ -12329,21 +12343,21 @@ var ha = function() {
12329
12343
  null
12330
12344
  );
12331
12345
  const ma = _a.exports;
12332
- const Ma = {
12346
+ const ba = {
12333
12347
  components: {
12334
12348
  Popper: A0
12335
12349
  }
12336
12350
  };
12337
- var pa = function() {
12338
- var r = this, p = r._self._c;
12339
- return p("Popper", { attrs: { trigger: "hover", options: {
12351
+ var Ma = function() {
12352
+ var r = this, b = r._self._c;
12353
+ return b("Popper", { attrs: { trigger: "hover", options: {
12340
12354
  placement: "bottom",
12341
12355
  modifiers: { offset: { offset: "0px, 22px" } }
12342
- } } }, [r._t("default"), p("span", { attrs: { slot: "reference" }, slot: "reference" }, [r._t("trigger")], 2)], 2);
12343
- }, ba = [], ga = /* @__PURE__ */ zt(
12356
+ } } }, [r._t("default"), b("span", { attrs: { slot: "reference" }, slot: "reference" }, [r._t("trigger")], 2)], 2);
12357
+ }, pa = [], ga = /* @__PURE__ */ zt(
12358
+ ba,
12344
12359
  Ma,
12345
12360
  pa,
12346
- ba,
12347
12361
  !1,
12348
12362
  null,
12349
12363
  "7f00d874",
@@ -12420,7 +12434,7 @@ const ya = {
12420
12434
  curTag() {
12421
12435
  var r;
12422
12436
  const _ = this.tags.find(
12423
- (p) => p.created_at === this.note.tag_id
12437
+ (b) => b.created_at === this.note.tag_id
12424
12438
  );
12425
12439
  return {
12426
12440
  ..._,
@@ -12455,7 +12469,7 @@ const ya = {
12455
12469
  },
12456
12470
  // 根据svg的icon名找到svg实体
12457
12471
  getSvgUrl(_) {
12458
- const r = y0.find((p) => p.name === _.icon);
12472
+ const r = y0.find((b) => b.name === _.icon);
12459
12473
  return (r == null ? void 0 : r.value) || "";
12460
12474
  },
12461
12475
  // 选择tag图标
@@ -12516,9 +12530,9 @@ const ya = {
12516
12530
  cancelable: !0,
12517
12531
  key: "Tab",
12518
12532
  shiftKey: !0
12519
- }), p = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12533
+ }), b = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12520
12534
  const M = St.get("currentId");
12521
- !p && M && (p = Nt({ uuid: M })), p.dispatchEvent(_);
12535
+ !b && M && (b = Nt({ uuid: M })), b.dispatchEvent(_);
12522
12536
  },
12523
12537
  setToChild() {
12524
12538
  var J;
@@ -12527,9 +12541,9 @@ const ya = {
12527
12541
  cancelable: !0,
12528
12542
  key: "Tab",
12529
12543
  shiftKey: !1
12530
- }), p = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12544
+ }), b = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12531
12545
  const M = St.get("currentId");
12532
- !p && M && (p = Nt({ uuid: M })), p.dispatchEvent(_);
12546
+ !b && M && (b = Nt({ uuid: M })), b.dispatchEvent(_);
12533
12547
  },
12534
12548
  setToUp() {
12535
12549
  var J;
@@ -12538,9 +12552,9 @@ const ya = {
12538
12552
  cancelable: !0,
12539
12553
  key: "ArrowUp",
12540
12554
  shiftKey: !1
12541
- }), p = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12555
+ }), b = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12542
12556
  const M = St.get("currentId");
12543
- !p && M && (p = Nt({ uuid: M })), p.dispatchEvent(_);
12557
+ !b && M && (b = Nt({ uuid: M })), b.dispatchEvent(_);
12544
12558
  },
12545
12559
  setToDown() {
12546
12560
  var J;
@@ -12549,17 +12563,26 @@ const ya = {
12549
12563
  cancelable: !0,
12550
12564
  key: "ArrowDown",
12551
12565
  shiftKey: !1
12552
- }), p = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12566
+ }), b = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12553
12567
  const M = St.get("currentId");
12554
- !p && M && (p = Nt({ uuid: M })), p.dispatchEvent(_);
12568
+ !b && M && (b = Nt({ uuid: M })), b.dispatchEvent(_);
12555
12569
  },
12556
12570
  handleComplete() {
12557
12571
  this.$emit(this.modified ? "complete" : "cancel");
12558
12572
  },
12573
+ handleRecordVideo() {
12574
+ this.isMobile ? this.$refs.selectVideo.click() : this.recordVideoVisible = !0;
12575
+ },
12576
+ handleRecordAudio() {
12577
+ this.recordAudioVisible = !0;
12578
+ },
12579
+ handleRecordPhoto() {
12580
+ this.isMobile ? this.$refs.selectPhoto.click() : this.recordPhotoVisible = !0;
12581
+ },
12559
12582
  handleFileUpload(_, r) {
12560
12583
  if (!_.length)
12561
12584
  return;
12562
- const p = Array.from(_).map((M) => {
12585
+ const b = Array.from(_).map((M) => {
12563
12586
  const J = T0(M.type), Z = URL.createObjectURL(M);
12564
12587
  switch (J.mainType) {
12565
12588
  case "image":
@@ -12584,14 +12607,24 @@ const ya = {
12584
12607
  };
12585
12608
  }
12586
12609
  });
12587
- r ? r(p) : p.forEach((M) => {
12610
+ r ? r(b) : b.forEach((M) => {
12588
12611
  this.$refs.treeEditor.appendNode(M);
12589
12612
  }), x0.uploadFile(_, (M, J) => {
12590
12613
  J && J.forEach((Z, re) => {
12591
- const ie = p[re], ye = Z.data;
12614
+ const ie = b[re], ye = Z.data;
12592
12615
  if (Z.code === 0) {
12593
12616
  const { pending: Re, hash: ke, ...Oe } = ie;
12594
- Oe.content = ye.url, this.$refs.treeEditor.updateNode(Oe), ie.type === "file" && (this.$refs.selectFile.value = "");
12617
+ switch (Oe.content = ye.url, this.$refs.treeEditor.updateNode(Oe), ie.type) {
12618
+ case "file":
12619
+ this.$refs.selectFile.value = "";
12620
+ break;
12621
+ case "image":
12622
+ this.$refs.selectPhoto.value = "";
12623
+ break;
12624
+ case "video":
12625
+ this.$refs.selectVideo.value = "";
12626
+ break;
12627
+ }
12595
12628
  }
12596
12629
  });
12597
12630
  });
@@ -12599,33 +12632,33 @@ const ya = {
12599
12632
  }
12600
12633
  };
12601
12634
  var xa = function() {
12602
- var r = this, p = r._self._c;
12603
- return p("div", { class: {
12635
+ var r = this, b = r._self._c;
12636
+ return b("div", { class: {
12604
12637
  "record-tree": !0,
12605
12638
  "record-tree-mobile": r.isMobile
12606
- }, on: { mouseenter: r.hideHoverNote } }, [r._t("default"), p("div", { staticClass: "record-tree-title-bar" }, [r.tags.length ? p("Picker", { scopedSlots: r._u([r.readOnly ? null : { key: "default", fn: function() {
12607
- return [p("div", { staticClass: "record-tree-popper-content", style: { width: r.tagConfig.popW, height: r.tagConfig.popH } }, r._l(r.tags, function(M, J) {
12608
- return p("span", { key: J, staticClass: "record-tree-popper-content-item", on: { click: function(Z) {
12639
+ }, on: { mouseenter: r.hideHoverNote } }, [r._t("default"), b("div", { staticClass: "record-tree-title-bar" }, [r.tags.length ? b("Picker", { scopedSlots: r._u([r.readOnly ? null : { key: "default", fn: function() {
12640
+ return [b("div", { staticClass: "record-tree-popper-content", style: { width: r.tagConfig.popW, height: r.tagConfig.popH } }, r._l(r.tags, function(M, J) {
12641
+ return b("span", { key: J, staticClass: "record-tree-popper-content-item", on: { click: function(Z) {
12609
12642
  return r.tagSelect(M);
12610
- } } }, [r.getSvgUrl(M) ? p("inline-svg", { staticClass: "record-tree-svg", style: { backgroundColor: M.color }, attrs: { src: r.getSvgUrl(M), width: r.tagConfig.tagSize, height: r.tagConfig.tagSize } }) : p("span", { staticClass: "record-tree-empty-icon", style: {
12643
+ } } }, [r.getSvgUrl(M) ? b("inline-svg", { staticClass: "record-tree-svg", style: { backgroundColor: M.color }, attrs: { src: r.getSvgUrl(M), width: r.tagConfig.tagSize, height: r.tagConfig.tagSize } }) : b("span", { staticClass: "record-tree-empty-icon", style: {
12611
12644
  width: r.tagConfig.tagSize + "px",
12612
12645
  height: r.tagConfig.tagSize + "px",
12613
12646
  backgroundColor: M.color
12614
12647
  } })], 1);
12615
12648
  }), 0)];
12616
12649
  }, proxy: !0 }, { key: "trigger", fn: function() {
12617
- return [p("span", { staticClass: "record-tree-popper-reference", style: {
12650
+ return [b("span", { staticClass: "record-tree-popper-reference", style: {
12618
12651
  backgroundColor: r.curTag.color,
12619
12652
  top: r.tagConfig.tagT,
12620
12653
  left: r.tagConfig.tagL
12621
- } }, [r.curTag.icon ? p("inline-svg", { staticClass: "record-tree-svg", attrs: { src: r.curTag.icon, width: r.tagConfig.tagSize, height: r.tagConfig.tagSize } }) : p("span", { staticClass: "record-tree-svg", style: {
12654
+ } }, [r.curTag.icon ? b("inline-svg", { staticClass: "record-tree-svg", attrs: { src: r.curTag.icon, width: r.tagConfig.tagSize, height: r.tagConfig.tagSize } }) : b("span", { staticClass: "record-tree-svg", style: {
12622
12655
  width: r.tagConfig.tagSize + "px",
12623
12656
  height: r.tagConfig.tagSize + "px",
12624
12657
  backgroundColor: r.curTag.color
12625
12658
  } })], 1)];
12626
- }, proxy: !0 }], null, !0) }) : r._e(), r.isMobile && !r.note.title && !r.titleFocus ? p("div", { staticClass: "record-tree-placeholder", on: { click: function(M) {
12659
+ }, proxy: !0 }], null, !0) }) : r._e(), r.isMobile && !r.note.title && !r.titleFocus ? b("div", { staticClass: "record-tree-placeholder", on: { click: function(M) {
12627
12660
  return r.$refs.treeTitle.focus();
12628
- } } }, [r._v(" 点击此处开始编辑 ")]) : r._e(), p("div", { ref: "treeTitle", staticClass: "record-tree-title", attrs: { contenteditable: !r.readOnly, id: "tree_title" }, domProps: { innerHTML: r._s(r.note.title) }, on: { blur: r.titleBlur, click: function(M) {
12661
+ } } }, [r._v(" 点击此处开始编辑 ")]) : r._e(), b("div", { ref: "treeTitle", staticClass: "record-tree-title", attrs: { contenteditable: !r.readOnly, id: "tree_title" }, domProps: { innerHTML: r._s(r.note.title) }, on: { blur: r.titleBlur, click: function(M) {
12629
12662
  M.stopPropagation();
12630
12663
  }, keydown: function(M) {
12631
12664
  return !M.type.indexOf("key") && r._k(M.keyCode, "enter", 13, M.key, "Enter") ? null : (M.preventDefault(), r.handleTitleEnter.apply(null, arguments));
@@ -12635,23 +12668,17 @@ var xa = function() {
12635
12668
  r.titleFocus = !0;
12636
12669
  }, focusout: function(M) {
12637
12670
  r.titleFocus = !1;
12638
- } } })], 1), p("div", { staticClass: "record-tree-main" }, [p("div", { attrs: { id: "root_tree" } }, [p("TreeEditor", { ref: "treeEditor", attrs: { nodes: r.curNodes, readOnly: r.readOnly, enableDbEnter: r.enableDbEnter, hash: r.hash }, on: { change: r.handleChangeNodes, fileUpload: r.handleFileUpload, dbEnter: function(M) {
12671
+ } } })], 1), b("div", { staticClass: "record-tree-main" }, [b("div", { attrs: { id: "root_tree" } }, [b("TreeEditor", { ref: "treeEditor", attrs: { nodes: r.curNodes, readOnly: r.readOnly, enableDbEnter: r.enableDbEnter, hash: r.hash, isMobile: r.isMobile }, on: { change: r.handleChangeNodes, fileUpload: r.handleFileUpload, dbEnter: function(M) {
12639
12672
  return r.$emit("dbEnter");
12640
- } } })], 1)]), r.bar ? p("div", { staticClass: "record-tree-options" }, [p("div", { staticClass: "record-tree-option-left" }, [p("div", { staticClass: "record-tree-option-item", attrs: { title: "左缩进" }, on: { click: r.setToParent } }, [p("inline-svg", { attrs: { src: r.icon.left, width: 20, height: 20 } })], 1), p("div", { staticClass: "record-tree-option-item", attrs: { title: "右缩进" }, on: { click: r.setToChild } }, [p("inline-svg", { attrs: { src: r.icon.right, width: 20, height: 20 } })], 1), p("div", { staticClass: "record-tree-option-item", attrs: { title: "上移" }, on: { click: r.setToUp } }, [p("inline-svg", { attrs: { src: r.icon.up, width: 20, height: 20 } })], 1), p("div", { staticClass: "record-tree-option-item", attrs: { title: "移动" }, on: { click: r.setToDown } }, [p("inline-svg", { attrs: { src: r.icon.down, width: 20, height: 20 } })], 1), p("div", { staticClass: "record-tree-option-item", attrs: { title: "添加附件" }, on: { click: function(M) {
12673
+ } } })], 1)]), r.bar ? b("div", { staticClass: "record-tree-options" }, [b("div", { staticClass: "record-tree-option-left" }, [b("div", { staticClass: "record-tree-option-item", attrs: { title: "左缩进" }, on: { click: r.setToParent } }, [b("inline-svg", { attrs: { src: r.icon.left, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "右缩进" }, on: { click: r.setToChild } }, [b("inline-svg", { attrs: { src: r.icon.right, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "上移" }, on: { click: r.setToUp } }, [b("inline-svg", { attrs: { src: r.icon.up, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "移动" }, on: { click: r.setToDown } }, [b("inline-svg", { attrs: { src: r.icon.down, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "添加附件" }, on: { click: function(M) {
12641
12674
  r.$refs.selectFile && r.$refs.selectFile.click();
12642
- } } }, [p("inline-svg", { attrs: { src: r.icon.attach, width: 20, height: 20 } })], 1), p("div", { staticClass: "record-tree-option-item", attrs: { title: "录制音频" }, on: { click: function(M) {
12643
- r.recordAudioVisible = !0;
12644
- } } }, [p("inline-svg", { attrs: { src: r.icon.audio, width: 20, height: 20 } })], 1), p("div", { staticClass: "record-tree-option-item", attrs: { title: "录制视频" }, on: { click: function(M) {
12645
- r.recordVideoVisible = !0;
12646
- } } }, [p("inline-svg", { attrs: { src: r.icon.video, width: 20, height: 20 } })], 1), p("div", { staticClass: "record-tree-option-item", attrs: { title: "拍照" }, on: { click: function(M) {
12647
- r.recordPhotoVisible = !0;
12648
- } } }, [p("inline-svg", { attrs: { src: r.icon.photo, width: 20, height: 20 } })], 1)]), r.isMobile ? p("div", { staticClass: "record-tree-option-right" }, [p("div", { staticClass: "record-tree-option-item", on: { click: function(M) {
12675
+ } } }, [b("inline-svg", { attrs: { src: r.icon.attach, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "录制音频" }, on: { click: r.handleRecordAudio } }, [b("inline-svg", { attrs: { src: r.icon.audio, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "录制视频" }, on: { click: r.handleRecordVideo } }, [b("inline-svg", { attrs: { src: r.icon.video, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "拍照" }, on: { click: r.handleRecordPhoto } }, [b("inline-svg", { attrs: { src: r.icon.photo, width: 20, height: 20 } })], 1)]), r.isMobile ? b("div", { staticClass: "record-tree-option-right" }, [b("div", { staticClass: "record-tree-option-item", on: { click: function(M) {
12649
12676
  return M.stopPropagation(), r.handleComplete.apply(null, arguments);
12650
- } } }, [r._v(" " + r._s(r.modified || r.note.id ? "完成" : "取消") + " ")])]) : r._e(), p("div", { staticStyle: { display: "none" } }, [p("input", { ref: "selectFile", attrs: { type: "file" }, on: { change: (M) => r.handleFileUpload(M.target.files) } })])]) : r._e(), r.recordAudioVisible ? p("RecordAudio", { on: { finish: r.handleFileUpload, cancel: function(M) {
12677
+ } } }, [r._v(" " + r._s(r.modified || r.note.id ? "完成" : "取消") + " ")])]) : r._e(), b("div", { staticStyle: { display: "none" } }, [b("input", { ref: "selectFile", attrs: { type: "file" }, on: { change: (M) => r.handleFileUpload(M.target.files) } }), b("input", { ref: "selectPhoto", attrs: { type: "file", accept: "image/*", capture: "camera" }, on: { change: (M) => r.handleFileUpload(M.target.files) } }), b("input", { ref: "selectVideo", attrs: { type: "file", accept: "video/*", capture: "camcorder" }, on: { change: (M) => r.handleFileUpload(M.target.files) } })])]) : r._e(), r.recordAudioVisible ? b("RecordAudio", { attrs: { isMobile: r.isMobile }, on: { finish: r.handleFileUpload, cancel: function(M) {
12651
12678
  r.recordAudioVisible = !1;
12652
- } } }) : r._e(), r.recordVideoVisible ? p("RecordVideo", { on: { finish: r.handleFileUpload, cancel: function(M) {
12679
+ } } }) : r._e(), r.recordVideoVisible ? b("RecordVideo", { on: { finish: r.handleFileUpload, cancel: function(M) {
12653
12680
  r.recordVideoVisible = !1;
12654
- } } }) : r._e(), r.recordPhotoVisible ? p("RecordPhoto", { on: { finish: r.handleFileUpload, cancel: function(M) {
12681
+ } } }) : r._e(), r.recordPhotoVisible ? b("RecordPhoto", { on: { finish: r.handleFileUpload, cancel: function(M) {
12655
12682
  r.recordPhotoVisible = !1;
12656
12683
  } } }) : r._e()], 2);
12657
12684
  }, Aa = [], Da = /* @__PURE__ */ zt(