@structured-field/widget-editor 1.0.3 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/structured-widget-editor.css +1 -1
- package/dist/structured-widget-editor.esm.js +351 -104
- package/dist/structured-widget-editor.esm.js.map +1 -1
- package/dist/structured-widget-editor.iife.js +5 -5
- package/dist/structured-widget-editor.js +4 -4
- package/dist/structured-widget-editor.js.map +1 -1
- package/package.json +5 -1
- package/src/editors/ArrayEditor.vue +69 -8
- package/src/editors/NullableEditor.vue +4 -2
- package/src/editors/ObjectEditor.vue +34 -3
- package/src/editors/RelationEditor.vue +5 -3
- package/src/editors/SchemaEditor.vue +13 -0
- package/src/editors/SfIcon.vue +45 -0
- package/src/scss/components/editors.scss +92 -0
- package/src/scss/components/form.scss +6 -1
- package/src/scss/main.scss +3 -3
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/* @structured-field/widget-editor – IIFE bundle with embedded CSS */
|
|
2
|
-
(function(){var s=document.createElement("style");s.textContent=".structured-field-editor{width:100%;border-radius:4px;font-size:.8125rem}.structured-field-editor *,.structured-field-editor *::before,.structured-field-editor *::after{box-sizing:border-box}.structured-field-editor .sf-label{display:block;font-weight:600;margin-bottom:4px;text-transform:capitalize;color:var(--body-quiet-color, #666);font-size:.8125rem}.structured-field-editor .sf-label.required::after{content:\" *\";color:var(--error-fg, #ba2121)}.structured-field-editor .sf-input{display:block;width:100%;padding:6px 8px;border:1px solid var(--border-color, #ccc);border-radius:4px;background:var(--body-bg, #fff);color:var(--body-fg, #333);font-size:.8125rem;font-family:inherit;transition:border-color .15s}.structured-field-editor .sf-input:focus{outline:none;border-color:var(--primary, #79aec8);box-shadow:0 0 0 2px rgba(121,174,200,.2)}.structured-field-editor .sf-textarea{resize:vertical;min-height:60px}.structured-field-editor .sf-select{appearance:auto;cursor:pointer}.structured-field-editor .sf-checkbox{margin-right:6px;accent-color:var(--primary, #79aec8)}.structured-field-editor .sf-checkbox-label{display:flex;align-items:center;font-weight:normal;cursor:pointer;padding:6px 0}.structured-field-editor .sf-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;background:var(--object-tools-bg, #888);color:var(--object-tools-fg, #fff);font-weight:400;font-size:.6875rem;text-transform:uppercase;letter-spacing:.5px;border-radius:15px;border:none;cursor:pointer;transition:background-color .15s}.structured-field-editor .sf-btn:hover{background-color:var(--object-tools-hover-bg, #666)}.structured-field-editor .sf-btn i{font-size:.6rem}.structured-field-editor .sf-btn-sm{padding:2px 8px;font-size:.625rem}.structured-field-editor .sf-btn-add{background:var(--object-tools-bg, #888);color:var(--object-tools-fg, #fff)}.structured-field-editor .sf-btn-danger{background:var(--delete-button-bg, #ba2121);color:var(--delete-button-fg, #fff)}.structured-field-editor .sf-btn-danger:hover{background:#a41515}.structured-field-editor .sf-error{color:var(--error-fg, #ba2121);font-size:.75rem;margin-top:2px}.structured-field-editor .errors .sf-input{border-color:var(--error-fg, #ba2121)}.structured-field-editor .errorlist{margin:4px 0 0 0;padding:0;list-style:none;color:var(--error-fg, #ba2121);font-size:.75rem}.structured-field-editor .errorlist li{padding:2px 0}.form-row{overflow:visible !important}.structured-field-editor .sf-field{margin-bottom:12px}.structured-field-editor .sf-field-boolean{margin-bottom:8px}.structured-field-editor .sf-object:not(.sf-object-root){border:1px solid var(--border-color, #ccc);border-radius:4px;padding:12px;margin-bottom:12px;background:var(--body-bg, #fff)}.structured-field-editor .sf-object-title{font-weight:600;font-size:.8125rem;color:var(--body-fg, #333);text-transform:capitalize;padding:0 4px}.structured-field-editor .sf-object-fields{display:flex;flex-direction:column}.structured-field-editor .sf-array{margin-bottom:12px}.structured-field-editor .sf-array-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.structured-field-editor .sf-array-header .sf-label{margin-bottom:0}.structured-field-editor .sf-array-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;background:var(--darkened-bg, #f0f0f0);border-radius:10px;font-size:.6875rem;font-weight:600;color:var(--body-quiet-color, #666)}.structured-field-editor .sf-array-items{display:flex;flex-direction:column;gap:8px}.structured-field-editor .sf-array-item{border:1px solid var(--border-color, #ccc);border-radius:4px;background:var(--darkened-bg, #f8f8f8);overflow:hidden}.structured-field-editor .sf-array-item-header{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;background:var(--darkened-bg, #f0f0f0);border-bottom:1px solid var(--border-color, #ccc)}.structured-field-editor .sf-array-item-index{font-size:.6875rem;font-weight:600;color:var(--body-quiet-color, #666)}.structured-field-editor .sf-array-item-actions{display:flex;gap:4px}.structured-field-editor .sf-array-item-body{padding:10px}.structured-field-editor .sf-array-item-body>.sf-object.sf-object-root,.structured-field-editor .sf-array-item-body>.sf-object:not(.sf-object-root){border:none;padding:0;margin:0;background:rgba(0,0,0,0)}.structured-field-editor .sf-nullable{margin-bottom:12px}.structured-field-editor .sf-nullable-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.structured-field-editor .sf-nullable-header .sf-label{margin-bottom:0}.structured-field-editor .sf-nullable-body{padding-left:0}.structured-field-editor .sf-nullable-body:not(:empty){border:1px solid var(--border-color, #ccc);border-radius:4px;padding:12px;margin-top:4px;background:var(--body-bg, #fff)}.structured-field-editor .sf-union{margin-bottom:12px}.structured-field-editor .sf-union-body{border:1px solid var(--border-color, #ccc);border-radius:4px;padding:12px;margin-top:8px;background:var(--body-bg, #fff)}.structured-field-editor .sf-union-body>.sf-object{border:none;padding:0;margin:0;background:rgba(0,0,0,0)}.structured-field-editor .sf-relation{position:relative}.structured-field-editor .sf-relation-wrapper{display:flex;flex-direction:column;gap:6px}.structured-field-editor .sf-relation-selected{display:flex;flex-wrap:wrap;gap:6px}.structured-field-editor .sf-relation-selected:empty{display:none}.structured-field-editor .sf-relation-tag{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:var(--darkened-bg, #f0f0f0);border:1px solid var(--border-color, #ccc);border-radius:4px;font-size:.8125rem;color:var(--body-fg, #333);max-width:100%}.structured-field-editor .sf-relation-tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.structured-field-editor .sf-relation-tag-remove{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:50%;background:rgba(0,0,0,0);color:var(--body-quiet-color, #666);cursor:pointer;font-size:.6875rem;flex-shrink:0;transition:color .15s,background .15s}.structured-field-editor .sf-relation-tag-remove:hover{color:var(--error-fg, #ba2121);background:rgba(186,33,33,.1)}.structured-field-editor .sf-relation-search{position:relative}.structured-field-editor .sf-relation-input{padding-left:28px;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:8px center;background-size:14px}.structured-field-editor .sf-relation-dropdown{position:absolute;top:100%;left:0;right:0;z-index:1000;max-height:240px;overflow-y:auto;background:var(--body-bg, #fff);border:1px solid var(--border-color, #ccc);border-top:none;border-radius:0 0 4px 4px;box-shadow:0 4px 12px rgba(0,0,0,.1)}.structured-field-editor .sf-relation-dropdown-item{padding:8px 12px;cursor:pointer;font-size:.8125rem;color:var(--body-fg, #333);transition:background .1s;border-bottom:1px solid var(--hairline-color, #eee)}.structured-field-editor .sf-relation-dropdown-item:last-child{border-bottom:none}.structured-field-editor .sf-relation-dropdown-item:hover,.structured-field-editor .sf-relation-dropdown-item.highlighted{background:var(--selected-bg, #e4e4e4)}.structured-field-editor .sf-relation-dropdown-empty{padding:12px;text-align:center;color:var(--body-quiet-color, #999);font-size:.8125rem;font-style:italic}.structured-field-editor .sf-relation-dropdown-more{padding:8px 12px;text-align:center;cursor:pointer;font-size:.75rem;color:var(--link-fg, #417690);font-weight:600;border-top:1px solid var(--hairline-color, #eee);transition:background .1s}.structured-field-editor .sf-relation-dropdown-more:hover{background:var(--darkened-bg, #f0f0f0)}";document.head.appendChild(s)})();
|
|
2
|
+
(function(){var s=document.createElement("style");s.textContent=".structured-field-editor{width:100%;border-radius:4px;font-size:.8125rem}.structured-field-editor *,.structured-field-editor *::before,.structured-field-editor *::after{box-sizing:border-box}.structured-field-editor .sf-label{display:block;font-weight:600;margin-bottom:4px;text-transform:capitalize;color:var(--body-quiet-color, #666);font-size:.8125rem}.structured-field-editor .sf-label.required::after{content:\" *\";color:var(--error-fg, #ba2121)}.structured-field-editor .sf-input{display:block;width:100%;padding:6px 8px;border:1px solid var(--border-color, #ccc);border-radius:4px;background:var(--body-bg, #fff);color:var(--body-fg, #333);font-size:.8125rem;font-family:inherit;transition:border-color .15s}.structured-field-editor .sf-input:focus{outline:none;border-color:var(--primary, #79aec8);box-shadow:0 0 0 2px rgba(121,174,200,.2)}.structured-field-editor .sf-textarea{resize:vertical;min-height:60px}.structured-field-editor .sf-select{appearance:none;cursor:pointer;padding-right:28px;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12'%3E%3Cpath fill='%23888' d='M12 15L5 8h14z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:right 8px center;background-size:12px 12px}.structured-field-editor .sf-checkbox{margin-right:6px;accent-color:var(--primary, #79aec8)}.structured-field-editor .sf-checkbox-label{display:flex;align-items:center;font-weight:normal;cursor:pointer;padding:6px 0}.structured-field-editor .sf-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;background:var(--object-tools-bg, #888);color:var(--object-tools-fg, #fff);font-weight:400;font-size:.6875rem;text-transform:uppercase;letter-spacing:.5px;border-radius:15px;border:none;cursor:pointer;transition:background-color .15s}.structured-field-editor .sf-btn:hover{background-color:var(--object-tools-hover-bg, #666)}.structured-field-editor .sf-btn i{font-size:.6rem}.structured-field-editor .sf-btn-sm{padding:2px 8px;font-size:.625rem}.structured-field-editor .sf-btn-add{background:var(--object-tools-bg, #888);color:var(--object-tools-fg, #fff)}.structured-field-editor .sf-btn-danger{background:var(--delete-button-bg, #ba2121);color:var(--delete-button-fg, #fff)}.structured-field-editor .sf-btn-danger:hover{background:#a41515}.structured-field-editor .sf-error{color:var(--error-fg, #ba2121);font-size:.75rem;margin-top:2px}.structured-field-editor .errors .sf-input{border-color:var(--error-fg, #ba2121)}.structured-field-editor .errorlist{margin:4px 0 0 0;padding:0;list-style:none;color:var(--error-fg, #ba2121);font-size:.75rem}.structured-field-editor .errorlist li{padding:2px 0}.form-row{overflow:visible !important}.structured-field-editor .sf-field{margin-bottom:12px}.structured-field-editor .sf-field-boolean{margin-bottom:8px}.structured-field-editor .sf-object:not(.sf-object-root){border:1px solid var(--border-color, #ccc);border-radius:4px;padding:12px;margin-bottom:12px;background:var(--body-bg, #fff)}.structured-field-editor .sf-object:not(.sf-object-root).sf-object-collapsed{padding:0}.structured-field-editor .sf-object-title{display:flex;align-items:center;gap:6px;font-weight:600;font-size:.8125rem;color:var(--body-fg, #333);text-transform:capitalize;padding:0 4px}.structured-field-editor .sf-object-title-text{flex-shrink:0}.structured-field-editor .sf-object-summary{font-weight:400;font-size:.75rem;color:var(--body-quiet-color, #888);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}.structured-field-editor .sf-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;background:rgba(0,0,0,0);cursor:pointer;color:var(--body-quiet-color, #888);border-radius:3px;flex-shrink:0}.structured-field-editor .sf-collapse-btn:hover{background:var(--darkened-bg, #f0f0f0);color:var(--body-fg, #333)}.structured-field-editor .sf-object-fields{display:flex;flex-direction:column}.structured-field-editor .sf-array{margin-bottom:12px}.structured-field-editor .sf-array-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.structured-field-editor .sf-array-header .sf-label{margin-bottom:0}.structured-field-editor .sf-array-collapse-toggle{margin-left:auto;display:inline-flex;align-items:center;cursor:pointer;color:var(--body-quiet-color, #aaa);line-height:0}.structured-field-editor .sf-array-collapse-toggle:hover{color:var(--body-fg, #333)}.structured-field-editor .sf-array-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;background:var(--darkened-bg, #f0f0f0);border-radius:10px;font-size:.6875rem;font-weight:600;color:var(--body-quiet-color, #666)}.structured-field-editor .sf-array-items{display:flex;flex-direction:column;gap:8px}.structured-field-editor .sf-array-item{border:1px solid var(--border-color, #ccc);border-radius:4px;background:var(--darkened-bg, #f8f8f8);overflow:hidden}.structured-field-editor .sf-array-item[draggable=true]{cursor:grab}.structured-field-editor .sf-array-item.sf-dragging{opacity:.4}.structured-field-editor .sf-array-item.sf-drag-over{outline:2px solid var(--primary-color, #3b82f6);outline-offset:-2px}.structured-field-editor .sf-array-item-header{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;background:var(--darkened-bg, #f0f0f0);border-bottom:1px solid var(--border-color, #ccc)}.structured-field-editor .sf-array-item-left{display:flex;align-items:center;gap:6px}.structured-field-editor .sf-drag-handle{display:inline-flex;align-items:center;color:var(--body-quiet-color, #aaa);cursor:grab;padding:0 2px;line-height:0}.structured-field-editor .sf-drag-handle:active{cursor:grabbing}.structured-field-editor .sf-drag-handle:hover{color:var(--body-fg, #555)}.structured-field-editor .sf-array-item-index{font-size:.6875rem;font-weight:600;color:var(--body-quiet-color, #666)}.structured-field-editor .sf-array-item-actions{display:flex;gap:4px}.structured-field-editor .sf-array-item-body{padding:10px}.structured-field-editor .sf-array-item-body>.sf-object.sf-object-root,.structured-field-editor .sf-array-item-body>.sf-object:not(.sf-object-root){border:none;padding:0;margin:0;background:rgba(0,0,0,0)}.structured-field-editor .sf-nullable{margin-bottom:12px}.structured-field-editor .sf-nullable-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.structured-field-editor .sf-nullable-header .sf-label{margin-bottom:0}.structured-field-editor .sf-nullable-body{padding-left:0}.structured-field-editor .sf-nullable-body:not(:empty){border:1px solid var(--border-color, #ccc);border-radius:4px;padding:12px;margin-top:4px;background:var(--body-bg, #fff)}.structured-field-editor .sf-union{margin-bottom:12px}.structured-field-editor .sf-union-body{border:1px solid var(--border-color, #ccc);border-radius:4px;padding:12px;margin-top:8px;background:var(--body-bg, #fff)}.structured-field-editor .sf-union-body>.sf-object{border:none;padding:0;margin:0;background:rgba(0,0,0,0)}.structured-field-editor .sf-relation{position:relative}.structured-field-editor .sf-relation-wrapper{display:flex;flex-direction:column;gap:6px}.structured-field-editor .sf-relation-selected{display:flex;flex-wrap:wrap;gap:6px}.structured-field-editor .sf-relation-selected:empty{display:none}.structured-field-editor .sf-relation-tag{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:var(--darkened-bg, #f0f0f0);border:1px solid var(--border-color, #ccc);border-radius:4px;font-size:.8125rem;color:var(--body-fg, #333);max-width:100%}.structured-field-editor .sf-relation-tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.structured-field-editor .sf-relation-tag-remove{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:50%;background:rgba(0,0,0,0);color:var(--body-quiet-color, #666);cursor:pointer;font-size:.6875rem;flex-shrink:0;transition:color .15s,background .15s}.structured-field-editor .sf-relation-tag-remove:hover{color:var(--error-fg, #ba2121);background:rgba(186,33,33,.1)}.structured-field-editor .sf-relation-search{position:relative}.structured-field-editor .sf-relation-input{padding-left:28px;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:8px center;background-size:14px}.structured-field-editor .sf-relation-dropdown{position:absolute;top:100%;left:0;right:0;z-index:1000;max-height:240px;overflow-y:auto;background:var(--body-bg, #fff);border:1px solid var(--border-color, #ccc);border-top:none;border-radius:0 0 4px 4px;box-shadow:0 4px 12px rgba(0,0,0,.1)}.structured-field-editor .sf-relation-dropdown-item{padding:8px 12px;cursor:pointer;font-size:.8125rem;color:var(--body-fg, #333);transition:background .1s;border-bottom:1px solid var(--hairline-color, #eee)}.structured-field-editor .sf-relation-dropdown-item:last-child{border-bottom:none}.structured-field-editor .sf-relation-dropdown-item:hover,.structured-field-editor .sf-relation-dropdown-item.highlighted{background:var(--selected-bg, #e4e4e4)}.structured-field-editor .sf-relation-dropdown-empty{padding:12px;text-align:center;color:var(--body-quiet-color, #999);font-size:.8125rem;font-style:italic}.structured-field-editor .sf-relation-dropdown-more{padding:8px 12px;text-align:center;cursor:pointer;font-size:.75rem;color:var(--link-fg, #417690);font-weight:600;border-top:1px solid var(--hairline-color, #eee);transition:background .1s}.structured-field-editor .sf-relation-dropdown-more:hover{background:var(--darkened-bg, #f0f0f0)}";document.head.appendChild(s)})();
|
|
3
3
|
var StructuredWidgetEditor=function(e){"use strict";var t={name:"StringEditor",props:{schema:{type:Object,required:!0},modelValue:{default:""},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},isLong(){return this.schema.maxLength>255||"textarea"===this.schema.format},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};
|
|
4
4
|
/**
|
|
5
5
|
* @vue/shared v3.5.30
|
|
6
6
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
7
7
|
* @license MIT
|
|
8
|
-
**/function n(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const s={},r=[],
|
|
8
|
+
**/function n(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const s={},r=[],o=()=>{},i=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,d=(e,t)=>h.call(e,t),p=Array.isArray,f=e=>"[object Map]"===k(e),m=e=>"[object Set]"===k(e),g=e=>"[object Date]"===k(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,_=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,S=e=>(b(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,k=e=>x.call(e),C=e=>"[object Object]"===k(e),E=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,w=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},V=/-\w/g,O=A(e=>e.replace(V,e=>e.slice(1).toUpperCase())),P=/\B([A-Z])/g,j=A(e=>e.replace(P,"-$1").toLowerCase()),I=A(e=>e.charAt(0).toUpperCase()+e.slice(1)),$=A(e=>e?`on${I(e)}`:""),D=(e,t)=>!Object.is(e,t),R=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},T=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},F=e=>{const t=parseFloat(e);return isNaN(t)?e:t},M=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let N;const U=()=>N||(N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function L(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=y(s)?B(s):L(s);if(r)for(const e in r)t[e]=r[e]}return t}if(y(e)||b(e))return e}const q=/;(?![^(]*\))/g,z=/:([^]+)/,W=/\/\*[^]*?\*\//g;function B(e){const t={};return e.replace(W,"").split(q).forEach(e=>{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const s=H(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const K=n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Z(e){return!!e||""===e}function Q(e,t){if(e===t)return!0;let n=g(e),s=g(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=_(e),s=_(t),n||s)return e===t;if(n=p(e),s=p(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Q(e[s],t[s]);return n}(e,t);if(n=b(e),s=b(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!Q(e[n],t[n]))return!1}}return String(e)===String(t)}const J=e=>!(!e||!0!==e.__v_isRef),G=e=>y(e)?e:null==e?"":p(e)||b(e)&&(e.toString===x||!v(e.toString))?J(e)?G(e.value):JSON.stringify(e,X,2):String(e),X=(e,t)=>J(t)?X(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],s)=>(e[Y(t,s)+" =>"]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Y(e))}:_(t)?Y(t):!b(t)||p(t)||C(t)?t:String(t),Y=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
|
|
9
9
|
/**
|
|
10
10
|
* @vue/reactivity v3.5.30
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
13
|
**/
|
|
14
|
-
let ee,te;class ne{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ee,!e&&ee&&(this.index=(ee.scopes||(ee.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=ee;try{return ee=this,e()}finally{ee=t}}}on(){1===++this._on&&(this.prevScope=ee,ee=this)}off(){this._on>0&&0===--this._on&&(ee=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const se=new WeakSet;class re{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ee&&ee.active&&ee.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,se.has(this)&&(se.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ae(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Se(this),he(this);const e=te,t=ve;te=this,ve=!0;try{return this.fn()}finally{de(this),te=e,ve=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)me(e);this.deps=this.depsTail=void 0,Se(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?se.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){pe(this)&&this.run()}get dirty(){return pe(this)}}let ie,oe,le=0;function ae(e,t=!1){if(e.flags|=8,t)return e.next=oe,void(oe=e);e.next=ie,ie=e}function ce(){le++}function ue(){if(--le>0)return;if(oe){let e=oe;for(oe=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ie;){let t=ie;for(ie=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function he(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function de(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n&&(n=e),me(s),ge(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function pe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fe(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===xe)return;if(e.globalVersion=xe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!pe(e)))return;e.flags|=2;const t=e.dep,n=te,s=ve;te=e,ve=!0;try{he(e);const n=e.fn(e._value);(0===t.version||T(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{te=n,ve=s,de(e),e.flags&=-3}}function me(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)me(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ge(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ve=!0;const ye=[];function _e(){ye.push(ve),ve=!1}function be(){const e=ye.pop();ve=void 0===e||e}function Se(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=te;te=void 0;try{t()}finally{te=e}}}let xe=0;class ke{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ee{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!te||!ve||te===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==te)t=this.activeLink=new ke(te,this),te.deps?(t.prevDep=te.depsTail,te.depsTail.nextDep=t,te.depsTail=t):te.deps=te.depsTail=t,we(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=te.depsTail,t.nextDep=void 0,te.depsTail.nextDep=t,te.depsTail=t,te.deps===t&&(te.deps=e)}return t}trigger(e){this.version++,xe++,this.notify(e)}notify(e){ce();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ue()}}}function we(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)we(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ce=new WeakMap,Ve=Symbol(""),Ae=Symbol(""),Oe=Symbol("");function Pe(e,t,n){if(ve&&te){let t=Ce.get(e);t||Ce.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Ee),s.map=t,s.key=n),s.track()}}function je(e,t,n,s,r,i){const o=Ce.get(e);if(!o)return void xe++;const l=e=>{e&&e.trigger()};if(ce(),"clear"===t)o.forEach(l);else{const r=p(e),i=r&&w(n);if(r&&"length"===n){const e=Number(s);o.forEach((t,n)=>{("length"===n||n===Oe||!_(n)&&n>=e)&&l(t)})}else switch((void 0!==n||o.has(void 0))&&l(o.get(n)),i&&l(o.get(Oe)),t){case"add":r?i&&l(o.get("length")):(l(o.get(Ve)),f(e)&&l(o.get(Ae)));break;case"delete":r||(l(o.get(Ve)),f(e)&&l(o.get(Ae)));break;case"set":f(e)&&l(o.get(Ve))}}ue()}function Re(e){const t=vt(e);return t===e?t:(Pe(t,0,Oe),mt(e)?t:t.map(yt))}function $e(e){return Pe(e=vt(e),0,Oe),e}function Te(e,t){return ft(e)?pt(e)?_t(yt(t)):_t(t):yt(t)}const Fe={__proto__:null,[Symbol.iterator](){return Ie(this,Symbol.iterator,e=>Te(this,e))},concat(...e){return Re(this).concat(...e.map(e=>p(e)?Re(e):e))},entries(){return Ie(this,"entries",e=>(e[1]=Te(this,e[1]),e))},every(e,t){return Ne(this,"every",e,t,void 0,arguments)},filter(e,t){return Ne(this,"filter",e,t,e=>e.map(e=>Te(this,e)),arguments)},find(e,t){return Ne(this,"find",e,t,e=>Te(this,e),arguments)},findIndex(e,t){return Ne(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ne(this,"findLast",e,t,e=>Te(this,e),arguments)},findLastIndex(e,t){return Ne(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ne(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ue(this,"includes",e)},indexOf(...e){return Ue(this,"indexOf",e)},join(e){return Re(this).join(e)},lastIndexOf(...e){return Ue(this,"lastIndexOf",e)},map(e,t){return Ne(this,"map",e,t,void 0,arguments)},pop(){return Le(this,"pop")},push(...e){return Le(this,"push",e)},reduce(e,...t){return De(this,"reduce",e,t)},reduceRight(e,...t){return De(this,"reduceRight",e,t)},shift(){return Le(this,"shift")},some(e,t){return Ne(this,"some",e,t,void 0,arguments)},splice(...e){return Le(this,"splice",e)},toReversed(){return Re(this).toReversed()},toSorted(e){return Re(this).toSorted(e)},toSpliced(...e){return Re(this).toSpliced(...e)},unshift(...e){return Le(this,"unshift",e)},values(){return Ie(this,"values",e=>Te(this,e))}};function Ie(e,t,n){const s=$e(e),r=s[t]();return s===e||mt(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}const Me=Array.prototype;function Ne(e,t,n,s,r,i){const o=$e(e),l=o!==e&&!mt(e),a=o[t];if(a!==Me[t]){const t=a.apply(e,i);return l?yt(t):t}let c=n;o!==e&&(l?c=function(t,s){return n.call(this,Te(e,t),s,e)}:n.length>2&&(c=function(t,s){return n.call(this,t,s,e)}));const u=a.call(o,c,s);return l&&r?r(u):u}function De(e,t,n,s){const r=$e(e),i=r!==e&&!mt(e);let o=n,l=!1;r!==e&&(i?(l=0===s.length,o=function(t,s,r){return l&&(l=!1,t=Te(e,t)),n.call(this,t,Te(e,s),r,e)}):n.length>3&&(o=function(t,s,r){return n.call(this,t,s,r,e)}));const a=r[t](o,...s);return l?Te(e,a):a}function Ue(e,t,n){const s=vt(e);Pe(s,0,Oe);const r=s[t](...n);return-1!==r&&!1!==r||!gt(n[0])?r:(n[0]=vt(n[0]),s[t](...n))}function Le(e,t,n=[]){_e(),ce();const s=vt(e)[t].apply(e,n);return ue(),be(),s}const qe=n("__proto__,__v_isRef,__isVue"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_));function We(e){_(e)||(e=String(e));const t=vt(this);return Pe(t,0,e),t.hasOwnProperty(e)}class Be{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?at:lt:r?ot:it).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=p(e);if(!s){let e;if(i&&(e=Fe[t]))return e;if("hasOwnProperty"===t)return We}const o=Reflect.get(e,t,bt(e)?e:n);if(_(t)?ze.has(t):qe(t))return o;if(s||Pe(e,0,t),r)return o;if(bt(o)){const e=i&&w(t)?o:o.value;return s&&b(e)?ht(e):e}return b(o)?s?ht(o):ut(o):o}}class He extends Be{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];const i=p(e)&&w(t);if(!this._isShallow){const e=ft(r);if(mt(n)||ft(n)||(r=vt(r),n=vt(n)),!i&&bt(r)&&!bt(n))return e||(r.value=n),!0}const o=i?Number(t)<e.length:d(e,t),l=Reflect.set(e,t,n,bt(e)?e:s);return e===vt(s)&&(o?T(n,r)&&je(e,"set",t,n):je(e,"add",t,n)),l}deleteProperty(e,t){const n=d(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&je(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return _(t)&&ze.has(t)||Pe(e,0,t),n}ownKeys(e){return Pe(e,0,p(e)?"length":Ve),Reflect.ownKeys(e)}}class Ke extends Be{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ze=new He,Qe=new Ke,Je=new He(!0),Ge=e=>e,Xe=e=>Reflect.getPrototypeOf(e);function Ye(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function et(e,t){const n={get(n){const s=this.__v_raw,r=vt(s),i=vt(n);e||(T(n,i)&&Pe(r,0,n),Pe(r,0,i));const{has:o}=Xe(r),l=t?Ge:e?_t:yt;return o.call(r,n)?l(s.get(n)):o.call(r,i)?l(s.get(i)):void(s!==r&&s.get(n))},get size(){const t=this.__v_raw;return!e&&Pe(vt(t),0,Ve),t.size},has(t){const n=this.__v_raw,s=vt(n),r=vt(t);return e||(T(t,r)&&Pe(s,0,t),Pe(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,i=r.__v_raw,o=vt(i),l=t?Ge:e?_t:yt;return!e&&Pe(o,0,Ve),i.forEach((e,t)=>n.call(s,l(e),l(t),r))}};c(n,e?{add:Ye("add"),set:Ye("set"),delete:Ye("delete"),clear:Ye("clear")}:{add(e){const n=vt(this),s=Xe(n),r=vt(e),i=t||mt(e)||ft(e)?e:r;return s.has.call(n,i)||T(e,i)&&s.has.call(n,e)||T(r,i)&&s.has.call(n,r)||(n.add(i),je(n,"add",i,i)),this},set(e,n){t||mt(n)||ft(n)||(n=vt(n));const s=vt(this),{has:r,get:i}=Xe(s);let o=r.call(s,e);o||(e=vt(e),o=r.call(s,e));const l=i.call(s,e);return s.set(e,n),o?T(n,l)&&je(s,"set",e,n):je(s,"add",e,n),this},delete(e){const t=vt(this),{has:n,get:s}=Xe(t);let r=n.call(t,e);r||(e=vt(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i},clear(){const e=vt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,i=vt(r),o=f(i),l="entries"===e||e===Symbol.iterator&&o,a="keys"===e&&o,u=r[e](...s),h=n?Ge:t?_t:yt;return!t&&Pe(i,0,a?Ae:Ve),c(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[h(e[0]),h(e[1])]:h(e),done:t}}})}}(s,e,t)}),n}function tt(e,t){const n=et(e,t);return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(d(n,s)&&s in t?n:t,s,r)}const nt={get:tt(!1,!1)},st={get:tt(!1,!0)},rt={get:tt(!0,!1)},it=new WeakMap,ot=new WeakMap,lt=new WeakMap,at=new WeakMap;function ct(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>k(e).slice(8,-1))(e))}function ut(e){return ft(e)?e:dt(e,!1,Ze,nt,it)}function ht(e){return dt(e,!0,Qe,rt,lt)}function dt(e,t,n,s,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=ct(e);if(0===i)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,2===i?s:n);return r.set(e,l),l}function pt(e){return ft(e)?pt(e.__v_raw):!(!e||!e.__v_isReactive)}function ft(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function gt(e){return!!e&&!!e.__v_raw}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}const yt=e=>b(e)?ut(e):e,_t=e=>b(e)?ht(e):e;function bt(e){return!!e&&!0===e.__v_isRef}function St(e){return bt(e)?e.value:e}const xt={get:(e,t,n)=>"__v_raw"===t?e:St(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return bt(r)&&!bt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function kt(e){return pt(e)?e:new Proxy(e,xt)}class Et{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ee(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&te!==this)return ae(this,!0),!0}get value(){const e=this.dep.track();return fe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const wt={},Ct=new WeakMap;let Vt;function At(e,t,n=s){const{immediate:r,deep:o,once:l,scheduler:a,augmentJob:c,call:h}=n,d=e=>o?e:mt(e)||!1===o||0===o?Ot(e,1):Ot(e);let f,m,g,y,_=!1,b=!1;if(bt(e)?(m=()=>e.value,_=mt(e)):pt(e)?(m=()=>d(e),_=!0):p(e)?(b=!0,_=e.some(e=>pt(e)||mt(e)),m=()=>e.map(e=>bt(e)?e.value:pt(e)?d(e):v(e)?h?h(e,2):e():void 0)):m=v(e)?t?h?()=>h(e,2):e:()=>{if(g){_e();try{g()}finally{be()}}const t=Vt;Vt=f;try{return h?h(e,3,[y]):e(y)}finally{Vt=t}}:i,t&&o){const e=m,t=!0===o?1/0:o;m=()=>Ot(e(),t)}const S=ee,x=()=>{f.stop(),S&&S.active&&u(S.effects,f)};if(l&&t){const e=t;t=(...t)=>{e(...t),x()}}let k=b?new Array(e.length).fill(wt):wt;const E=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(o||_||(b?e.some((e,t)=>T(e,k[t])):T(e,k))){g&&g();const n=Vt;Vt=f;try{const n=[e,k===wt?void 0:b&&k[0]===wt?[]:k,y];k=e,h?h(t,3,n):t(...n)}finally{Vt=n}}}else f.run()};return c&&c(E),f=new re(m),f.scheduler=a?()=>a(E,!1):E,y=e=>function(e,t=!1,n=Vt){if(n){let t=Ct.get(n);t||Ct.set(n,t=[]),t.push(e)}}(e,!1,f),g=f.onStop=()=>{const e=Ct.get(f);if(e){if(h)h(e,4);else for(const t of e)t();Ct.delete(f)}},t?r?E(!0):k=f.run():a?a(E.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function Ot(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,bt(e))Ot(e.value,t,n);else if(p(e))for(let s=0;s<e.length;s++)Ot(e[s],t,n);else if(m(e)||f(e))e.forEach(e=>{Ot(e,t,n)});else if(E(e)){for(const s in e)Ot(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ot(e[s],t,n)}return e}
|
|
14
|
+
let ee,te;class ne{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ee,!e&&ee&&(this.index=(ee.scopes||(ee.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=ee;try{return ee=this,e()}finally{ee=t}}}on(){1===++this._on&&(this.prevScope=ee,ee=this)}off(){this._on>0&&0===--this._on&&(ee=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const se=new WeakSet;class re{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ee&&ee.active&&ee.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,se.has(this)&&(se.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ae(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Se(this),he(this);const e=te,t=ve;te=this,ve=!0;try{return this.fn()}finally{de(this),te=e,ve=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)me(e);this.deps=this.depsTail=void 0,Se(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?se.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){pe(this)&&this.run()}get dirty(){return pe(this)}}let oe,ie,le=0;function ae(e,t=!1){if(e.flags|=8,t)return e.next=ie,void(ie=e);e.next=oe,oe=e}function ce(){le++}function ue(){if(--le>0)return;if(ie){let e=ie;for(ie=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;oe;){let t=oe;for(oe=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function he(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function de(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n&&(n=e),me(s),ge(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function pe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fe(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===xe)return;if(e.globalVersion=xe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!pe(e)))return;e.flags|=2;const t=e.dep,n=te,s=ve;te=e,ve=!0;try{he(e);const n=e.fn(e._value);(0===t.version||D(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{te=n,ve=s,de(e),e.flags&=-3}}function me(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)me(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ge(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ve=!0;const ye=[];function _e(){ye.push(ve),ve=!1}function be(){const e=ye.pop();ve=void 0===e||e}function Se(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=te;te=void 0;try{t()}finally{te=e}}}let xe=0;class ke{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ce{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!te||!ve||te===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==te)t=this.activeLink=new ke(te,this),te.deps?(t.prevDep=te.depsTail,te.depsTail.nextDep=t,te.depsTail=t):te.deps=te.depsTail=t,Ee(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=te.depsTail,t.nextDep=void 0,te.depsTail.nextDep=t,te.depsTail=t,te.deps===t&&(te.deps=e)}return t}trigger(e){this.version++,xe++,this.notify(e)}notify(e){ce();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ue()}}}function Ee(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ee(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const we=new WeakMap,Ae=Symbol(""),Ve=Symbol(""),Oe=Symbol("");function Pe(e,t,n){if(ve&&te){let t=we.get(e);t||we.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Ce),s.map=t,s.key=n),s.track()}}function je(e,t,n,s,r,o){const i=we.get(e);if(!i)return void xe++;const l=e=>{e&&e.trigger()};if(ce(),"clear"===t)i.forEach(l);else{const r=p(e),o=r&&E(n);if(r&&"length"===n){const e=Number(s);i.forEach((t,n)=>{("length"===n||n===Oe||!_(n)&&n>=e)&&l(t)})}else switch((void 0!==n||i.has(void 0))&&l(i.get(n)),o&&l(i.get(Oe)),t){case"add":r?o&&l(i.get("length")):(l(i.get(Ae)),f(e)&&l(i.get(Ve)));break;case"delete":r||(l(i.get(Ae)),f(e)&&l(i.get(Ve)));break;case"set":f(e)&&l(i.get(Ae))}}ue()}function Ie(e){const t=vt(e);return t===e?t:(Pe(t,0,Oe),mt(e)?t:t.map(yt))}function $e(e){return Pe(e=vt(e),0,Oe),e}function De(e,t){return ft(e)?pt(e)?_t(yt(t)):_t(t):yt(t)}const Re={__proto__:null,[Symbol.iterator](){return Te(this,Symbol.iterator,e=>De(this,e))},concat(...e){return Ie(this).concat(...e.map(e=>p(e)?Ie(e):e))},entries(){return Te(this,"entries",e=>(e[1]=De(this,e[1]),e))},every(e,t){return Me(this,"every",e,t,void 0,arguments)},filter(e,t){return Me(this,"filter",e,t,e=>e.map(e=>De(this,e)),arguments)},find(e,t){return Me(this,"find",e,t,e=>De(this,e),arguments)},findIndex(e,t){return Me(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Me(this,"findLast",e,t,e=>De(this,e),arguments)},findLastIndex(e,t){return Me(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Me(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ue(this,"includes",e)},indexOf(...e){return Ue(this,"indexOf",e)},join(e){return Ie(this).join(e)},lastIndexOf(...e){return Ue(this,"lastIndexOf",e)},map(e,t){return Me(this,"map",e,t,void 0,arguments)},pop(){return Le(this,"pop")},push(...e){return Le(this,"push",e)},reduce(e,...t){return Ne(this,"reduce",e,t)},reduceRight(e,...t){return Ne(this,"reduceRight",e,t)},shift(){return Le(this,"shift")},some(e,t){return Me(this,"some",e,t,void 0,arguments)},splice(...e){return Le(this,"splice",e)},toReversed(){return Ie(this).toReversed()},toSorted(e){return Ie(this).toSorted(e)},toSpliced(...e){return Ie(this).toSpliced(...e)},unshift(...e){return Le(this,"unshift",e)},values(){return Te(this,"values",e=>De(this,e))}};function Te(e,t,n){const s=$e(e),r=s[t]();return s===e||mt(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}const Fe=Array.prototype;function Me(e,t,n,s,r,o){const i=$e(e),l=i!==e&&!mt(e),a=i[t];if(a!==Fe[t]){const t=a.apply(e,o);return l?yt(t):t}let c=n;i!==e&&(l?c=function(t,s){return n.call(this,De(e,t),s,e)}:n.length>2&&(c=function(t,s){return n.call(this,t,s,e)}));const u=a.call(i,c,s);return l&&r?r(u):u}function Ne(e,t,n,s){const r=$e(e),o=r!==e&&!mt(e);let i=n,l=!1;r!==e&&(o?(l=0===s.length,i=function(t,s,r){return l&&(l=!1,t=De(e,t)),n.call(this,t,De(e,s),r,e)}):n.length>3&&(i=function(t,s,r){return n.call(this,t,s,r,e)}));const a=r[t](i,...s);return l?De(e,a):a}function Ue(e,t,n){const s=vt(e);Pe(s,0,Oe);const r=s[t](...n);return-1!==r&&!1!==r||!gt(n[0])?r:(n[0]=vt(n[0]),s[t](...n))}function Le(e,t,n=[]){_e(),ce();const s=vt(e)[t].apply(e,n);return ue(),be(),s}const qe=n("__proto__,__v_isRef,__isVue"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_));function We(e){_(e)||(e=String(e));const t=vt(this);return Pe(t,0,e),t.hasOwnProperty(e)}class Be{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?at:lt:r?it:ot).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=p(e);if(!s){let e;if(o&&(e=Re[t]))return e;if("hasOwnProperty"===t)return We}const i=Reflect.get(e,t,bt(e)?e:n);if(_(t)?ze.has(t):qe(t))return i;if(s||Pe(e,0,t),r)return i;if(bt(i)){const e=o&&E(t)?i:i.value;return s&&b(e)?ht(e):e}return b(i)?s?ht(i):ut(i):i}}class He extends Be{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];const o=p(e)&&E(t);if(!this._isShallow){const e=ft(r);if(mt(n)||ft(n)||(r=vt(r),n=vt(n)),!o&&bt(r)&&!bt(n))return e||(r.value=n),!0}const i=o?Number(t)<e.length:d(e,t),l=Reflect.set(e,t,n,bt(e)?e:s);return e===vt(s)&&(i?D(n,r)&&je(e,"set",t,n):je(e,"add",t,n)),l}deleteProperty(e,t){const n=d(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&je(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return _(t)&&ze.has(t)||Pe(e,0,t),n}ownKeys(e){return Pe(e,0,p(e)?"length":Ae),Reflect.ownKeys(e)}}class Ke extends Be{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ze=new He,Qe=new Ke,Je=new He(!0),Ge=e=>e,Xe=e=>Reflect.getPrototypeOf(e);function Ye(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function et(e,t){const n={get(n){const s=this.__v_raw,r=vt(s),o=vt(n);e||(D(n,o)&&Pe(r,0,n),Pe(r,0,o));const{has:i}=Xe(r),l=t?Ge:e?_t:yt;return i.call(r,n)?l(s.get(n)):i.call(r,o)?l(s.get(o)):void(s!==r&&s.get(n))},get size(){const t=this.__v_raw;return!e&&Pe(vt(t),0,Ae),t.size},has(t){const n=this.__v_raw,s=vt(n),r=vt(t);return e||(D(t,r)&&Pe(s,0,t),Pe(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,o=r.__v_raw,i=vt(o),l=t?Ge:e?_t:yt;return!e&&Pe(i,0,Ae),o.forEach((e,t)=>n.call(s,l(e),l(t),r))}};c(n,e?{add:Ye("add"),set:Ye("set"),delete:Ye("delete"),clear:Ye("clear")}:{add(e){const n=vt(this),s=Xe(n),r=vt(e),o=t||mt(e)||ft(e)?e:r;return s.has.call(n,o)||D(e,o)&&s.has.call(n,e)||D(r,o)&&s.has.call(n,r)||(n.add(o),je(n,"add",o,o)),this},set(e,n){t||mt(n)||ft(n)||(n=vt(n));const s=vt(this),{has:r,get:o}=Xe(s);let i=r.call(s,e);i||(e=vt(e),i=r.call(s,e));const l=o.call(s,e);return s.set(e,n),i?D(n,l)&&je(s,"set",e,n):je(s,"add",e,n),this},delete(e){const t=vt(this),{has:n,get:s}=Xe(t);let r=n.call(t,e);r||(e=vt(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&je(t,"delete",e,void 0),o},clear(){const e=vt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,o=vt(r),i=f(o),l="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,u=r[e](...s),h=n?Ge:t?_t:yt;return!t&&Pe(o,0,a?Ve:Ae),c(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[h(e[0]),h(e[1])]:h(e),done:t}}})}}(s,e,t)}),n}function tt(e,t){const n=et(e,t);return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(d(n,s)&&s in t?n:t,s,r)}const nt={get:tt(!1,!1)},st={get:tt(!1,!0)},rt={get:tt(!0,!1)},ot=new WeakMap,it=new WeakMap,lt=new WeakMap,at=new WeakMap;function ct(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>k(e).slice(8,-1))(e))}function ut(e){return ft(e)?e:dt(e,!1,Ze,nt,ot)}function ht(e){return dt(e,!0,Qe,rt,lt)}function dt(e,t,n,s,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=ct(e);if(0===o)return e;const i=r.get(e);if(i)return i;const l=new Proxy(e,2===o?s:n);return r.set(e,l),l}function pt(e){return ft(e)?pt(e.__v_raw):!(!e||!e.__v_isReactive)}function ft(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function gt(e){return!!e&&!!e.__v_raw}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}const yt=e=>b(e)?ut(e):e,_t=e=>b(e)?ht(e):e;function bt(e){return!!e&&!0===e.__v_isRef}function St(e){return bt(e)?e.value:e}const xt={get:(e,t,n)=>"__v_raw"===t?e:St(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return bt(r)&&!bt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function kt(e){return pt(e)?e:new Proxy(e,xt)}class Ct{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ce(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&te!==this)return ae(this,!0),!0}get value(){const e=this.dep.track();return fe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Et={},wt=new WeakMap;let At;function Vt(e,t,n=s){const{immediate:r,deep:i,once:l,scheduler:a,augmentJob:c,call:h}=n,d=e=>i?e:mt(e)||!1===i||0===i?Ot(e,1):Ot(e);let f,m,g,y,_=!1,b=!1;if(bt(e)?(m=()=>e.value,_=mt(e)):pt(e)?(m=()=>d(e),_=!0):p(e)?(b=!0,_=e.some(e=>pt(e)||mt(e)),m=()=>e.map(e=>bt(e)?e.value:pt(e)?d(e):v(e)?h?h(e,2):e():void 0)):m=v(e)?t?h?()=>h(e,2):e:()=>{if(g){_e();try{g()}finally{be()}}const t=At;At=f;try{return h?h(e,3,[y]):e(y)}finally{At=t}}:o,t&&i){const e=m,t=!0===i?1/0:i;m=()=>Ot(e(),t)}const S=ee,x=()=>{f.stop(),S&&S.active&&u(S.effects,f)};if(l&&t){const e=t;t=(...t)=>{e(...t),x()}}let k=b?new Array(e.length).fill(Et):Et;const C=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(i||_||(b?e.some((e,t)=>D(e,k[t])):D(e,k))){g&&g();const n=At;At=f;try{const n=[e,k===Et?void 0:b&&k[0]===Et?[]:k,y];k=e,h?h(t,3,n):t(...n)}finally{At=n}}}else f.run()};return c&&c(C),f=new re(m),f.scheduler=a?()=>a(C,!1):C,y=e=>function(e,t=!1,n=At){if(n){let t=wt.get(n);t||wt.set(n,t=[]),t.push(e)}}(e,!1,f),g=f.onStop=()=>{const e=wt.get(f);if(e){if(h)h(e,4);else for(const t of e)t();wt.delete(f)}},t?r?C(!0):k=f.run():a?a(C.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function Ot(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,bt(e))Ot(e.value,t,n);else if(p(e))for(let s=0;s<e.length;s++)Ot(e[s],t,n);else if(m(e)||f(e))e.forEach(e=>{Ot(e,t,n)});else if(C(e)){for(const s in e)Ot(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ot(e[s],t,n)}return e}
|
|
15
15
|
/**
|
|
16
16
|
* @vue/runtime-core v3.5.30
|
|
17
17
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
18
|
* @license MIT
|
|
19
|
-
**/function Pt(e,t,n,s){try{return s?e(...s):e()}catch(e){Rt(e,t,n)}}function jt(e,t,n,s){if(v(e)){const r=Pt(e,t,n,s);return r&&S(r)&&r.catch(e=>{Rt(e,t,n)}),r}if(p(e)){const r=[];for(let i=0;i<e.length;i++)r.push(jt(e[i],t,n,s));return r}}function Rt(e,t,n,r=!0){t&&t.vnode;const{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||s;if(t){let s=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const t=s.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;s=s.parent}if(i)return _e(),Pt(i,null,10,[e,r,o]),void be()}!function(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,r,o)}const $t=[];let Tt=-1;const Ft=[];let It=null,Mt=0;const Nt=Promise.resolve();let Dt=null;function Ut(e){const t=Dt||Nt;return e?t.then(this?e.bind(this):e):t}function Lt(e){if(!(1&e.flags)){const t=Bt(e),n=$t[$t.length-1];!n||!(2&e.flags)&&t>=Bt(n)?$t.push(e):$t.splice(function(e){let t=Tt+1,n=$t.length;for(;t<n;){const s=t+n>>>1,r=$t[s],i=Bt(r);i<e||i===e&&2&r.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,qt()}}function qt(){Dt||(Dt=Nt.then(Ht))}function zt(e,t,n=Tt+1){for(;n<$t.length;n++){const t=$t[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;$t.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Wt(e){if(Ft.length){const e=[...new Set(Ft)].sort((e,t)=>Bt(e)-Bt(t));if(Ft.length=0,It)return void It.push(...e);for(It=e,Mt=0;Mt<It.length;Mt++){const e=It[Mt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}It=null,Mt=0}}const Bt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Ht(e){try{for(Tt=0;Tt<$t.length;Tt++){const e=$t[Tt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Pt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Tt<$t.length;Tt++){const e=$t[Tt];e&&(e.flags&=-2)}Tt=-1,$t.length=0,Wt(),Dt=null,($t.length||Ft.length)&&Ht()}}let Kt=null,Zt=null;function Qt(e){const t=Kt;return Kt=e,Zt=e&&e.type.__scopeId||null,t}function Jt(e,t){if(null===Kt)return e;const n=Sr(Kt),r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,o,l,a=s]=t[e];i&&(v(i)&&(i={mounted:i,updated:i}),i.deep&&Ot(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Gt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[s];a&&(_e(),jt(a,n,8,[e.el,l,e,t]),be())}}function Xt(e,t,n=!1){const s=hr();if(s||ss){let r=ss?ss._context.provides:s?null==s.parent||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(s&&s.proxy):t}}const Yt=Symbol.for("v-scx");function en(e,t,n){return tn(e,t,n)}function tn(e,t,n=s){const{immediate:r,deep:o,flush:l,once:a}=n,u=c({},n),h=t&&r||!t&&"post"!==l;let d;if(vr)if("sync"===l){const e=Xt(Yt);d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!h){const e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}const p=ur;u.call=(e,t,n)=>jt(e,p,t,n);let f=!1;"post"===l?u.scheduler=e=>{As(e,p&&p.suspense)}:"sync"!==l&&(f=!0,u.scheduler=(e,t)=>{t?e():Lt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=At(e,t,u);return vr&&(d?d.push(m):h&&m()),m}function nn(e,t,n){const s=this.proxy,r=y(e)?e.includes(".")?sn(s,e):()=>s[e]:e.bind(s,s);let i;v(t)?i=t:(i=t.handler,n=t);const o=fr(this),l=tn(r,i.bind(s),n);return o(),l}function sn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const rn=Symbol("_vte"),on=Symbol("_leaveCb");function ln(e,t){6&e.shapeFlag&&e.component?(e.transition=t,ln(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function an(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const un=new WeakMap;function hn(e,t,n,r,i=!1){if(p(e))return void e.forEach((e,s)=>hn(e,t&&(p(t)?t[s]:t),n,r,i));if(pn(r)&&!i)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&hn(e,t,n,r.component.subTree));const l=4&r.shapeFlag?Sr(r.component):r.el,a=i?null:l,{i:c,r:h}=e,f=t&&t.r,m=c.refs===s?c.refs={}:c.refs,g=c.setupState,_=vt(g),b=g===s?o:e=>!cn(m,e)&&d(_,e),S=(e,t)=>!t||!cn(m,t);if(null!=f&&f!==h)if(dn(t),y(f))m[f]=null,b(f)&&(g[f]=null);else if(bt(f)){const e=t;S(0,e.k)&&(f.value=null),e.k&&(m[e.k]=null)}if(v(h))Pt(h,c,12,[a,m]);else{const t=y(h),s=bt(h);if(t||s){const r=()=>{if(e.f){const n=t?b(h)?g[h]:m[h]:S()||!e.k?h.value:m[e.k];if(i)p(n)&&u(n,l);else if(p(n))n.includes(l)||n.push(l);else if(t)m[h]=[l],b(h)&&(g[h]=m[h]);else{const t=[l];S(0,e.k)&&(h.value=t),e.k&&(m[e.k]=t)}}else t?(m[h]=a,b(h)&&(g[h]=a)):s&&(S(0,e.k)&&(h.value=a),e.k&&(m[e.k]=a))};if(a){const t=()=>{r(),un.delete(e)};t.id=-1,un.set(e,t),As(t,n)}else dn(e),r()}}}function dn(e){const t=un.get(e);t&&(t.flags|=8,un.delete(e))}U().requestIdleCallback,U().cancelIdleCallback;const pn=e=>!!e.type.__asyncLoader,fn=e=>e.type.__isKeepAlive;function mn(e,t){vn(e,"a",t)}function gn(e,t){vn(e,"da",t)}function vn(e,t,n=ur){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(_n(t,s,n),n){let e=n.parent;for(;e&&e.parent;)fn(e.parent.vnode)&&yn(s,t,n,e),e=e.parent}}function yn(e,t,n,s){const r=_n(t,e,s,!0);Cn(()=>{u(s[t],r)},n)}function _n(e,t,n=ur,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{_e();const r=fr(n),i=jt(t,n,e,s);return r(),be(),i});return s?r.unshift(i):r.push(i),i}}const bn=e=>(t,n=ur)=>{vr&&"sp"!==e||_n(e,(...e)=>t(...e),n)},Sn=bn("bm"),xn=bn("m"),kn=bn("bu"),En=bn("u"),wn=bn("bum"),Cn=bn("um"),Vn=bn("sp"),An=bn("rtg"),On=bn("rtc");function Pn(e,t=ur){_n("ec",e,t)}const jn="components";function Rn(e,t){return Tn(jn,e,!0,t)||e}const $n=Symbol.for("v-ndc");function Tn(e,t,n=!0,s=!1){const r=Kt||ur;if(r){const n=r.type;{const e=xr(n,!1);if(e&&(e===t||e===O(t)||e===R(O(t))))return n}const i=Fn(r[e]||n[e],t)||Fn(r.appContext[e],t);return!i&&s?n:i}}function Fn(e,t){return e&&(e[t]||e[O(t)]||e[R(O(t))])}function In(e,t,n,s){let r;const i=n,o=p(e);if(o||y(e)){let n=!1,s=!1;o&&pt(e)&&(n=!mt(e),s=ft(e),e=$e(e)),r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(n?s?_t(yt(e[o])):yt(e[o]):e[o],o,void 0,i)}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i)}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,i));else{const n=Object.keys(e);r=new Array(n.length);for(let s=0,o=n.length;s<o;s++){const o=n[s];r[s]=t(e[o],o,s,i)}}else r=[];return r}const Mn=e=>e?gr(e)?Sr(e):Mn(e.parent):null,Nn=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mn(e.parent),$root:e=>Mn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hn(e),$forceUpdate:e=>e.f||(e.f=()=>{Lt(e.update)}),$nextTick:e=>e.n||(e.n=Ut.bind(e.proxy)),$watch:e=>nn.bind(e)}),Dn=(e,t)=>e!==s&&!e.__isScriptSetup&&d(e,t),Un={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:l,type:a,appContext:c}=e;if("$"!==t[0]){const e=l[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Dn(r,t))return l[t]=1,r[t];if(i!==s&&d(i,t))return l[t]=2,i[t];if(d(o,t))return l[t]=3,o[t];if(n!==s&&d(n,t))return l[t]=4,n[t];qn&&(l[t]=0)}}const u=Nn[t];let h,p;return u?("$attrs"===t&&Pe(e.attrs,0,""),u(e)):(h=a.__cssModules)&&(h=h[t])?h:n!==s&&d(n,t)?(l[t]=4,n[t]):(p=c.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Dn(i,t)?(i[t]=n,!0):r!==s&&d(r,t)?(r[t]=n,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:o,type:l}},a){let c;return!!(n[a]||e!==s&&"$"!==a[0]&&d(e,a)||Dn(t,a)||d(o,a)||d(r,a)||d(Nn,a)||d(i.config.globalProperties,a)||(c=l.__cssModules)&&c[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ln(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let qn=!0;function zn(e){const t=Hn(e),n=e.proxy,s=e.ctx;qn=!1,t.beforeCreate&&Wn(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:a,provide:c,inject:u,created:h,beforeMount:d,mounted:f,beforeUpdate:m,updated:g,activated:y,deactivated:_,beforeDestroy:S,beforeUnmount:x,destroyed:k,unmounted:E,render:w,renderTracked:C,renderTriggered:V,errorCaptured:A,serverPrefetch:O,expose:P,inheritAttrs:j,components:R,directives:$,filters:T}=t;if(u&&function(e,t){p(e)&&(e=Jn(e));for(const n in e){const s=e[n];let r;r=b(s)?"default"in s?Xt(s.from||n,s.default,!0):Xt(s.from||n):Xt(s),bt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,s,null),l)for(const e in l){const t=l[e];v(t)&&(s[e]=t.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=ut(t))}if(qn=!0,o)for(const e in o){const t=o[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,a=kr({get:r,set:l});Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(a)for(const e in a)Bn(a[e],s,n,e);if(c){const e=v(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(ur){let n=ur.provides;const s=ur.parent&&ur.parent.provides;s===n&&(n=ur.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function F(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(h&&Wn(h,e,"c"),F(Sn,d),F(xn,f),F(kn,m),F(En,g),F(mn,y),F(gn,_),F(Pn,A),F(On,C),F(An,V),F(wn,x),F(Cn,E),F(Vn,O),p(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===i&&(e.render=w),null!=j&&(e.inheritAttrs=j),R&&(e.components=R),$&&(e.directives=$),O&&an(e)}function Wn(e,t,n){jt(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bn(e,t,n,s){let r=s.includes(".")?sn(n,s):()=>n[s];if(y(e)){const n=t[e];v(n)&&en(r,n)}else if(v(e))en(r,e.bind(n));else if(b(e))if(p(e))e.forEach(e=>Bn(e,t,n,s));else{const s=v(e.handler)?e.handler.bind(n):t[e.handler];v(s)&&en(r,s,e)}}function Hn(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:r.length||n||s?(a={},r.length&&r.forEach(e=>Kn(a,e,o,!0)),Kn(a,t,o)):a=t,b(t)&&i.set(t,a),a}function Kn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Kn(e,i,n,!0),r&&r.forEach(t=>Kn(e,t,n,!0));for(const r in t)if(s&&"expose"===r);else{const s=Zn[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Zn={data:Qn,props:Yn,emits:Yn,methods:Xn,computed:Xn,beforeCreate:Gn,created:Gn,beforeMount:Gn,mounted:Gn,beforeUpdate:Gn,updated:Gn,beforeDestroy:Gn,beforeUnmount:Gn,destroyed:Gn,unmounted:Gn,activated:Gn,deactivated:Gn,errorCaptured:Gn,serverPrefetch:Gn,components:Xn,directives:Xn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const s in t)n[s]=Gn(e[s],t[s]);return n},provide:Qn,inject:function(e,t){return Xn(Jn(e),Jn(t))}};function Qn(e,t){return t?e?function(){return c(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function Jn(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Gn(e,t){return e?[...new Set([].concat(e,t))]:t}function Xn(e,t){return e?c(Object.create(null),e,t):t}function Yn(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:c(Object.create(null),Ln(e),Ln(null!=t?t:{})):t}function es(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ts=0;function ns(e,t){return function(t,n=null){v(t)||(t=c({},t)),null==n||b(n)||(n=null);const s=es(),r=new WeakSet,i=[];let o=!1;const l=s.app={_uid:ts++,_component:t,_props:n,_container:null,_context:s,_instance:null,version:Er,get config(){return s.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&v(e.install)?(r.add(e),e.install(l,...t)):v(e)&&(r.add(e),e(l,...t))),l),mixin:e=>(s.mixins.includes(e)||s.mixins.push(e),l),component:(e,t)=>t?(s.components[e]=t,l):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,l):s.directives[e],mount(r,i,a){if(!o){const i=l._ceVNode||er(t,n);return i.appContext=s,!0===a?a="svg":!1===a&&(a=void 0),e(i,r,a),o=!0,l._container=r,r.__vue_app__=l,Sr(i.component)}},onUnmount(e){i.push(e)},unmount(){o&&(jt(i,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,l),runWithContext(e){const t=ss;ss=l;try{return e()}finally{ss=t}}};return l}}let ss=null;function rs(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||s;let i=n;const o=t.startsWith("update:"),l=o&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${j(t)}Modifiers`])(r,t.slice(7));let a;l&&(l.trim&&(i=n.map(e=>y(e)?e.trim():e)),l.number&&(i=n.map(M)));let c=r[a=$(t)]||r[a=$(O(t))];!c&&o&&(c=r[a=$(j(t))]),c&&jt(c,e,6,i);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,jt(u,e,6,i)}}const is=new WeakMap;function os(e,t,n=!1){const s=n?is:t.emitsCache,r=s.get(e);if(void 0!==r)return r;const i=e.emits;let o={},l=!1;if(!v(e)){const s=e=>{const n=os(e,t,!0);n&&(l=!0,c(o,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return i||l?(p(i)?i.forEach(e=>o[e]=null):c(o,i),b(e)&&s.set(e,o),o):(b(e)&&s.set(e,null),null)}function ls(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,j(t))||d(e,t))}function as(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:u,renderCache:h,props:d,data:p,setupState:f,ctx:m,inheritAttrs:g}=e,v=Qt(e);let y,_;try{if(4&n.shapeFlag){const e=r||s,t=e;y=rr(u.call(t,e,h,d,f,p,m)),_=l}else{const e=t;0,y=rr(e.length>1?e(d,{attrs:l,slots:o,emit:c}):e(d,null)),_=t.props?l:cs(l)}}catch(t){Ls.length=0,Rt(t,e,1),y=er(Ds)}let b=y;if(_&&!1!==g){const e=Object.keys(_),{shapeFlag:t}=b;e.length&&7&t&&(i&&e.some(a)&&(_=us(_,i)),b=tr(b,_,!1,!0))}return n.dirs&&(b=tr(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&ln(b,n.transition),y=b,Qt(v),y}const cs=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},us=(e,t)=>{const n={};for(const s in e)a(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function hs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(ds(t,e,i)&&!ls(n,i))return!0}return!1}function ds(e,t,n){const s=e[n],r=t[n];return"style"===n&&b(s)&&b(r)?!Q(s,r):s!==r}const ps={},fs=()=>Object.create(ps),ms=e=>Object.getPrototypeOf(e)===ps;function gs(e,t,n,s=!1){const r={},i=fs();e.propsDefaults=Object.create(null),vs(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=s?r:dt(r,!1,Je,st,ot):e.type.props?e.props=r:e.props=i,e.attrs=i}function vs(e,t,n,r){const[i,o]=e.propsOptions;let l,a=!1;if(t)for(let s in t){if(C(s))continue;const c=t[s];let u;i&&d(i,u=O(s))?o&&o.includes(u)?(l||(l={}))[u]=c:n[u]=c:ls(e.emitsOptions,s)||s in r&&c===r[s]||(r[s]=c,a=!0)}if(o){const t=vt(n),r=l||s;for(let s=0;s<o.length;s++){const l=o[s];n[l]=ys(i,t,l,r[l],e,!d(r,l))}}return a}function ys(e,t,n,s,r,i){const o=e[n];if(null!=o){const e=d(o,"default");if(e&&void 0===s){const e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){const{propsDefaults:i}=r;if(n in i)s=i[n];else{const o=fr(r);s=i[n]=e.call(null,t),o()}}else s=e;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!e?s=!1:!o[1]||""!==s&&s!==j(n)||(s=!0))}return s}const _s=new WeakMap;function bs(e,t,n=!1){const i=n?_s:t.propsCache,o=i.get(e);if(o)return o;const l=e.props,a={},u=[];let h=!1;if(!v(e)){const s=e=>{h=!0;const[n,s]=bs(e,t,!0);c(a,n),s&&u.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!l&&!h)return b(e)&&i.set(e,r),r;if(p(l))for(let e=0;e<l.length;e++){const t=O(l[e]);Ss(t)&&(a[t]=s)}else if(l)for(const e in l){const t=O(e);if(Ss(t)){const n=l[e],s=a[t]=p(n)||v(n)?{type:n}:c({},n),r=s.type;let i=!1,o=!0;if(p(r))for(let e=0;e<r.length;++e){const t=r[e],n=v(t)&&t.name;if("Boolean"===n){i=!0;break}"String"===n&&(o=!1)}else i=v(r)&&"Boolean"===r.name;s[0]=i,s[1]=o,(i||d(s,"default"))&&u.push(t)}}const f=[a,u];return b(e)&&i.set(e,f),f}function Ss(e){return"$"!==e[0]&&!C(e)}const xs=e=>"_"===e||"_ctx"===e||"$stable"===e,ks=e=>p(e)?e.map(rr):[rr(e)],Es=(e,t,n)=>{if(t._n)return t;const s=function(e,t=Kt){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&Bs(-1);const r=Qt(t);let i;try{i=e(...s)}finally{Qt(r),n._d&&Bs(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>ks(t(...e)),n);return s._c=!1,s},ws=(e,t,n)=>{const s=e._ctx;for(const n in e){if(xs(n))continue;const r=e[n];if(v(r))t[n]=Es(0,r,s);else if(null!=r){const e=ks(r);t[n]=()=>e}}},Cs=(e,t)=>{const n=ks(t);e.slots.default=()=>n},Vs=(e,t,n)=>{for(const s in t)!n&&xs(s)||(e[s]=t[s])},As=function(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):(p(n=e)?Ft.push(...n):It&&-1===n.id?It.splice(Mt+1,0,n):1&n.flags||(Ft.push(n),n.flags|=1),qt());var n};function Os(e){return function(e){U().__VUE__=!0;const{insert:t,remove:n,patchProp:o,createElement:l,createText:a,createComment:c,setText:u,setElementText:h,parentNode:p,nextSibling:f,setScopeId:m=i,insertStaticContent:g}=e,v=(e,t,n,s=null,r=null,i=null,o=void 0,l=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Js(e,t)&&(s=X(e),K(e,r,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=t;switch(c){case Ns:y(e,t,n,s);break;case Ds:_(e,t,n,s);break;case Us:null==e&&b(t,n,s,o);break;case Ms:T(e,t,n,s,r,i,o,l,a);break;default:1&h?E(e,t,n,s,r,i,o,l,a):6&h?M(e,t,n,s,r,i,o,l,a):(64&h||128&h)&&c.process(e,t,n,s,r,i,o,l,a,te)}null!=u&&r?hn(u,e&&e.ref,i,t||e,!t):null==u&&e&&null!=e.ref&&hn(e.ref,null,i,e,!0)},y=(e,n,s,r)=>{if(null==e)t(n.el=a(n.children),s,r);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},_=(e,n,s,r)=>{null==e?t(n.el=c(n.children||""),s,r):n.el=e.el},b=(e,t,n,s)=>{[e.el,e.anchor]=g(e.children,t,n,s,e.el,e.anchor)},x=({el:e,anchor:n},s,r)=>{let i;for(;e&&e!==n;)i=f(e),t(e,s,r),e=i;t(n,s,r)},k=({el:e,anchor:t})=>{let s;for(;e&&e!==t;)s=f(e),n(e),e=s;n(t)},E=(e,t,n,s,r,i,o,l,a)=>{if("svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e)w(t,n,s,r,i,o,l,a);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),P(e,t,r,i,o,l,a)}finally{n&&n._endPatch()}}},w=(e,n,s,r,i,a,c,u)=>{let d,p;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=l(e.type,a,f&&f.is,f),8&m?h(d,e.children):16&m&&A(e.children,d,null,r,i,Ps(e,a),c,u),v&&Gt(e,null,r,"created"),V(d,e,e.scopeId,c,r),f){for(const e in f)"value"===e||C(e)||o(d,e,null,f[e],a,r);"value"in f&&o(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&lr(p,r,e)}v&&Gt(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,g);y&&g.beforeEnter(d),t(d,n,s),((p=f&&f.onVnodeMounted)||y||v)&&As(()=>{p&&lr(p,r,e),y&&g.enter(d),v&&Gt(e,null,r,"mounted")},i)},V=(e,t,n,s,r)=>{if(n&&m(e,n),s)for(let t=0;t<s.length;t++)m(e,s[t]);if(r){let n=r.subTree;if(t===n||Is(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;V(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,s,r,i,o,l,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=l?ir(e[c]):rr(e[c]);v(null,a,t,n,s,r,i,o,l)}},P=(e,t,n,r,i,l,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&js(n,!1),(g=m.onVnodeBeforeUpdate)&&lr(g,n,t,e),p&&Gt(t,e,n,"beforeUpdate"),n&&js(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),d?R(e.dynamicChildren,d,c,n,r,Ps(t,i),l):a||z(e,t,c,null,n,r,Ps(t,i),l,!1),u>0){if(16&u)$(c,f,m,n,i);else if(2&u&&f.class!==m.class&&o(c,"class",null,m.class,i),4&u&&o(c,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t],r=f[s],l=m[s];l===r&&"value"!==s||o(c,s,r,l,i,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else a||null!=d||$(c,f,m,n,i);((g=m.onVnodeUpdated)||p)&&As(()=>{g&&lr(g,n,t,e),p&&Gt(t,e,n,"updated")},r)},R=(e,t,n,s,r,i,o)=>{for(let l=0;l<t.length;l++){const a=e[l],c=t[l],u=a.el&&(a.type===Ms||!Js(a,c)||198&a.shapeFlag)?p(a.el):n;v(a,c,u,null,s,r,i,o,!0)}},$=(e,t,n,r,i)=>{if(t!==n){if(t!==s)for(const s in t)C(s)||s in n||o(e,s,t[s],null,i,r);for(const s in n){if(C(s))continue;const l=n[s],a=t[s];l!==a&&"value"!==s&&o(e,s,a,l,i,r)}"value"in n&&o(e,"value",t.value,n.value,i)}},T=(e,n,s,r,i,o,l,c,u)=>{const h=n.el=e?e.el:a(""),d=n.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=n;m&&(c=c?c.concat(m):m),null==e?(t(h,s,r),t(d,s,r),A(n.children||[],s,d,i,o,l,c,u)):p>0&&64&p&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(R(e.dynamicChildren,f,s,i,o,l,c),(null!=n.key||i&&n===i.subTree)&&Rs(e,n,!0)):z(e,n,s,d,i,o,l,c,u)},M=(e,t,n,s,r,i,o,l,a)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,o,a):N(t,n,s,r,i,o,a):D(e,t,a)},N=(e,t,n,r,i,o,l)=>{const a=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ar,o={uid:cr++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bs(r,i),emitsOptions:os(r,i),emit:null,emitted:null,propsDefaults:s,inheritAttrs:r.inheritAttrs,ctx:s,data:s,props:s,attrs:s,slots:s,refs:s,setupState:s,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=rs.bind(null,o),e.ce&&e.ce(o);return o}(e,r,i);if(fn(e)&&(a.ctx.renderer=te),function(e,t=!1,n=!1){t&&pr(t);const{props:s,children:r}=e.vnode,i=gr(e);gs(e,s,i,t),((e,t,n)=>{const s=e.slots=fs();if(32&e.vnode.shapeFlag){const e=t._;e?(Vs(s,t,n),n&&I(s,"_",e,!0)):ws(t,s)}else t&&Cs(e,t)})(e,r,n||t);const o=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Un);const{setup:s}=n;if(s){_e();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,br),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=fr(e),i=Pt(s,e,0,[e.props,n]),o=S(i);if(be(),r(),!o&&!e.sp||pn(e)||an(e),o){if(i.then(mr,mr),t)return i.then(t=>{yr(e,t)}).catch(t=>{Rt(t,e,0)});e.asyncDep=i}else yr(e,i)}else _r(e)}(e,t):void 0;t&&pr(!1)}(a,!1,l),a.asyncDep){if(i&&i.registerDep(a,L,l),!e.el){const s=a.subTree=er(Ds);_(null,s,t,n),e.placeholder=s.el}}else L(a,e,t,n,i,o,l)},D=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!l||l&&l.$stable)||s!==o&&(s?!o||hs(s,o,c):!!o);if(1024&a)return!0;if(16&a)return s?hs(s,o,c):!!o;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(ds(o,s,n)&&!ls(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void q(s,t,n);s.next=t,s.update()}else t.el=e.el,s.vnode=t},L=(e,t,n,s,r,i,o)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:l,vnode:a}=e;{const n=$s(e);if(n)return t&&(t.el=a.el,q(e,t,o)),void n.asyncDep.then(()=>{As(()=>{e.isUnmounted||c()},r)})}let u,h=t;js(e,!1),t?(t.el=a.el,q(e,t,o)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&lr(u,l,t,a),js(e,!0);const d=as(e),f=e.subTree;e.subTree=d,v(f,d,p(f.el),X(f),e,r,i),t.el=d.el,null===h&&function({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,d.el),s&&As(s,r),(u=t.props&&t.props.onVnodeUpdated)&&As(()=>lr(u,l,t,a),r)}else{let o;const{el:l,props:a}=t,{bm:c,m:u,parent:h,root:d,type:p}=e,f=pn(t);js(e,!1),c&&F(c),!f&&(o=a&&a.onVnodeBeforeMount)&&lr(o,h,t),js(e,!0);{d.ce&&d.ce._hasShadowRoot()&&d.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const o=e.subTree=as(e);v(null,o,n,s,e,r,i),t.el=o.el}if(u&&As(u,r),!f&&(o=a&&a.onVnodeMounted)){const e=t;As(()=>lr(o,h,e),r)}(256&t.shapeFlag||h&&pn(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&As(e.a,r),e.isMounted=!0,t=n=s=null}};e.scope.on();const a=e.effect=new re(l);e.scope.off();const c=e.update=a.run.bind(a),u=e.job=a.runIfDirty.bind(a);u.i=e,u.id=e.uid,a.scheduler=()=>Lt(u),js(e,!0),c()},q=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=vt(r),[a]=e.propsOptions;let c=!1;if(!(s||o>0)||16&o){let s;vs(e,t,r,i)&&(c=!0);for(const i in l)t&&(d(t,i)||(s=j(i))!==i&&d(t,s))||(a?!n||void 0===n[i]&&void 0===n[s]||(r[i]=ys(a,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&d(t,e)||(delete i[e],c=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let o=n[s];if(ls(e.emitsOptions,o))continue;const u=t[o];if(a)if(d(i,o))u!==i[o]&&(i[o]=u,c=!0);else{const t=O(o);r[t]=ys(a,l,t,u,e,!1)}else u!==i[o]&&(i[o]=u,c=!0)}}c&&je(e.attrs,"set","")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=s;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:Vs(i,t,n):(o=!t.$stable,ws(t,i)),l=t}else t&&(Cs(e,t),l={default:1});if(o)for(const e in i)xs(e)||null!=l[e]||delete i[e]})(e,t.children,n),_e(),zt(e),be()},z=(e,t,n,s,r,i,o,l,a=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void B(c,d,n,s,r,i,o,l,a);if(256&p)return void W(c,d,n,s,r,i,o,l,a)}8&f?(16&u&&G(c,r,i),d!==c&&h(n,d)):16&u?16&f?B(c,d,n,s,r,i,o,l,a):G(c,r,i,!0):(8&u&&h(n,""),16&f&&A(d,n,s,r,i,o,l,a))},W=(e,t,n,s,i,o,l,a,c)=>{t=t||r;const u=(e=e||r).length,h=t.length,d=Math.min(u,h);let p;for(p=0;p<d;p++){const s=t[p]=c?ir(t[p]):rr(t[p]);v(e[p],s,n,null,i,o,l,a,c)}u>h?G(e,i,o,!0,!1,d):A(t,n,s,i,o,l,a,c,d)},B=(e,t,n,s,i,o,l,a,c)=>{let u=0;const h=t.length;let d=e.length-1,p=h-1;for(;u<=d&&u<=p;){const s=e[u],r=t[u]=c?ir(t[u]):rr(t[u]);if(!Js(s,r))break;v(s,r,n,null,i,o,l,a,c),u++}for(;u<=d&&u<=p;){const s=e[d],r=t[p]=c?ir(t[p]):rr(t[p]);if(!Js(s,r))break;v(s,r,n,null,i,o,l,a,c),d--,p--}if(u>d){if(u<=p){const e=p+1,r=e<h?t[e].el:s;for(;u<=p;)v(null,t[u]=c?ir(t[u]):rr(t[u]),n,r,i,o,l,a,c),u++}}else if(u>p)for(;u<=d;)K(e[u],i,o,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?ir(t[u]):rr(t[u]);null!=e.key&&g.set(e.key,u)}let y,_=0;const b=p-m+1;let S=!1,x=0;const k=new Array(b);for(u=0;u<b;u++)k[u]=0;for(u=f;u<=d;u++){const s=e[u];if(_>=b){K(s,i,o,!0);continue}let r;if(null!=s.key)r=g.get(s.key);else for(y=m;y<=p;y++)if(0===k[y-m]&&Js(s,t[y])){r=y;break}void 0===r?K(s,i,o,!0):(k[r-m]=u+1,r>=x?x=r:S=!0,v(s,t[r],n,null,i,o,l,a,c),_++)}const E=S?function(e){const t=e.slice(),n=[0];let s,r,i,o,l;const a=e.length;for(s=0;s<a;s++){const a=e[s];if(0!==a){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<a?i=l+1:o=l;a<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}i=n.length,o=n[i-1];for(;i-- >0;)n[i]=o,o=t[o];return n}(k):r;for(y=E.length-1,u=b-1;u>=0;u--){const e=m+u,r=t[e],d=t[e+1],p=e+1<h?d.el||Fs(d):s;0===k[u]?v(null,r,n,p,i,o,l,a,c):S&&(y<0||u!==E[y]?H(r,n,p,2):y--)}}},H=(e,s,r,i,o=null)=>{const{el:l,type:a,transition:c,children:u,shapeFlag:h}=e;if(6&h)return void H(e.component.subTree,s,r,i);if(128&h)return void e.suspense.move(s,r,i);if(64&h)return void a.move(e,s,r,te);if(a===Ms){t(l,s,r);for(let e=0;e<u.length;e++)H(u[e],s,r,i);return void t(e.anchor,s,r)}if(a===Us)return void x(e,s,r);if(2!==i&&1&h&&c)if(0===i)c.beforeEnter(l),t(l,s,r),As(()=>c.enter(l),o);else{const{leave:i,delayLeave:o,afterLeave:a}=c,u=()=>{e.ctx.isUnmounted?n(l):t(l,s,r)},h=()=>{l._isLeaving&&l[on](!0),i(l,()=>{u(),a&&a()})};o?o(l,u,h):h()}else t(l,s,r)},K=(e,t,n,s=!1,r=!1)=>{const{type:i,props:o,ref:l,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:d,cacheIndex:p}=e;if(-2===h&&(r=!1),null!=l&&(_e(),hn(l,null,n,e,!0),be()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,m=!pn(e);let g;if(m&&(g=o&&o.onVnodeBeforeUnmount)&&lr(g,t,e),6&u)J(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);f&&Gt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,te,s):c&&!c.hasOnce&&(i!==Ms||h>0&&64&h)?G(c,t,n,!1,!0):(i===Ms&&384&h||!r&&16&u)&&G(a,t,n),s&&Z(e)}(m&&(g=o&&o.onVnodeUnmounted)||f)&&As(()=>{g&&lr(g,t,e),f&&Gt(e,null,t,"unmounted")},n)},Z=e=>{const{type:t,el:s,anchor:r,transition:i}=e;if(t===Ms)return void Q(s,r);if(t===Us)return void k(e);const o=()=>{n(s),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:n}=i,r=()=>t(s,o);n?n(e.el,o,r):r()}else o()},Q=(e,t)=>{let s;for(;e!==t;)s=f(e),n(e),e=s;n(t)},J=(e,t,n)=>{const{bum:s,scope:r,job:i,subTree:o,um:l,m:a,a:c}=e;Ts(a),Ts(c),s&&F(s),r.stop(),i&&(i.flags|=8,K(o,e,t,n)),l&&As(l,t),As(()=>{e.isUnmounted=!0},t)},G=(e,t,n,s=!1,r=!1,i=0)=>{for(let o=i;o<e.length;o++)K(e[o],t,n,s,r)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[rn];return n?f(n):t};let Y=!1;const ee=(e,t,n)=>{let s;null==e?t._vnode&&(K(t._vnode,null,null,!0),s=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Y||(Y=!0,zt(s),Wt(),Y=!1)},te={p:v,um:K,m:H,r:Z,mt:N,mc:A,pc:z,pbc:R,n:X,o:e};let se;return{render:ee,hydrate:se,createApp:ns(ee)}}(e)}function Ps({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function js({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rs(e,t,n=!1){const s=e.children,r=t.children;if(p(s)&&p(r))for(let e=0;e<s.length;e++){const t=s[e];let i=r[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=r[e]=ir(r[e]),i.el=t.el),n||-2===i.patchFlag||Rs(t,i)),i.type===Ns&&(-1===i.patchFlag&&(i=r[e]=ir(i)),i.el=t.el),i.type!==Ds||i.el||(i.el=t.el)}}function $s(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$s(t)}function Ts(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Fs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Fs(t.subTree):null}const Is=e=>e.__isSuspense;const Ms=Symbol.for("v-fgt"),Ns=Symbol.for("v-txt"),Ds=Symbol.for("v-cmt"),Us=Symbol.for("v-stc"),Ls=[];let qs=null;function zs(e=!1){Ls.push(qs=e?null:[])}let Ws=1;function Bs(e,t=!1){Ws+=e,e<0&&qs&&t&&(qs.hasOnce=!0)}function Hs(e){return e.dynamicChildren=Ws>0?qs||r:null,Ls.pop(),qs=Ls[Ls.length-1]||null,Ws>0&&qs&&qs.push(e),e}function Ks(e,t,n,s,r,i){return Hs(Ys(e,t,n,s,r,i,!0))}function Zs(e,t,n,s,r){return Hs(er(e,t,n,s,r,!0))}function Qs(e){return!!e&&!0===e.__v_isVNode}function Js(e,t){return e.type===t.type&&e.key===t.key}const Gs=({key:e})=>null!=e?e:null,Xs=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||bt(e)||v(e)?{i:Kt,r:e,k:t,f:!!n}:e:null);function Ys(e,t=null,n=null,s=0,r=null,i=(e===Ms?0:1),o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gs(t),ref:t&&Xs(t),scopeId:Zt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Kt};return l?(or(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=y(n)?8:16),Ws>0&&!o&&qs&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&qs.push(a),a}const er=function(e,t=null,n=null,s=0,r=null,i=!1){e&&e!==$n||(e=Ds);if(Qs(e)){const s=tr(e,t,!0);return n&&or(s,n),Ws>0&&!i&&qs&&(6&s.shapeFlag?qs[qs.indexOf(e)]=s:qs.push(s)),s.patchFlag=-2,s}o=e,v(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=function(e){return e?gt(e)||ms(e)?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=H(e)),b(n)&&(gt(n)&&!p(n)&&(n=c({},n)),t.style=L(n))}const l=y(e)?1:Is(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:v(e)?2:0;return Ys(e,t,n,s,r,l,i,!0)};function tr(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:c}=e,u=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=H([t.class,s.class]));else if("style"===e)t.style=L([t.style,s.style]);else if(l(e)){const n=t[e],r=s[e];!r||n===r||p(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Gs(u),ref:t&&t.ref?n&&i?p(i)?i.concat(Xs(t)):[i,Xs(t)]:Xs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ms?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tr(e.ssContent),ssFallback:e.ssFallback&&tr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&ln(h,c.clone(h)),h}function nr(e=" ",t=0){return er(Ns,null,e,t)}function sr(e="",t=!1){return t?(zs(),Zs(Ds,null,e)):er(Ds,null,e)}function rr(e){return null==e||"boolean"==typeof e?er(Ds):p(e)?er(Ms,null,e.slice()):Qs(e)?ir(e):er(Ns,null,String(e))}function ir(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:tr(e)}function or(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),or(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||ms(t)?3===s&&Kt&&(1===Kt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Kt}}else v(t)?(t={default:t,_ctx:Kt},n=32):(t=String(t),64&s?(n=16,t=[nr(t)]):n=8);e.children=t,e.shapeFlag|=n}function lr(e,t,n,s=null){jt(e,t,7,[n,s])}const ar=es();let cr=0;let ur=null;const hr=()=>ur||Kt;let dr,pr;{const e=U(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach(t=>t(e)):s[0](e)}};dr=t("__VUE_INSTANCE_SETTERS__",e=>ur=e),pr=t("__VUE_SSR_SETTERS__",e=>vr=e)}const fr=e=>{const t=ur;return dr(e),e.scope.on(),()=>{e.scope.off(),dr(t)}},mr=()=>{ur&&ur.scope.off(),dr(null)};function gr(e){return 4&e.vnode.shapeFlag}let vr=!1;function yr(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=kt(t)),_r(e)}function _r(e,t,n){const s=e.type;e.render||(e.render=s.render||i);{const t=fr(e);_e();try{zn(e)}finally{be(),t()}}}const br={get:(e,t)=>(Pe(e,0,""),e[t])};function Sr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(kt((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&I(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in Nn?Nn[n](e):void 0,has:(e,t)=>t in e||t in Nn})):e.proxy;var t}function xr(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const kr=(e,t)=>{const n=function(e,t,n=!1){let s,r;return v(e)?s=e:(s=e.get,r=e.set),new Et(s,r,n)}(e,0,vr);return n},Er="3.5.30";
|
|
19
|
+
**/function Pt(e,t,n,s){try{return s?e(...s):e()}catch(e){It(e,t,n)}}function jt(e,t,n,s){if(v(e)){const r=Pt(e,t,n,s);return r&&S(r)&&r.catch(e=>{It(e,t,n)}),r}if(p(e)){const r=[];for(let o=0;o<e.length;o++)r.push(jt(e[o],t,n,s));return r}}function It(e,t,n,r=!0){t&&t.vnode;const{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||s;if(t){let s=t.parent;const r=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const t=s.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;s=s.parent}if(o)return _e(),Pt(o,null,10,[e,r,i]),void be()}!function(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,r,i)}const $t=[];let Dt=-1;const Rt=[];let Tt=null,Ft=0;const Mt=Promise.resolve();let Nt=null;function Ut(e){const t=Nt||Mt;return e?t.then(this?e.bind(this):e):t}function Lt(e){if(!(1&e.flags)){const t=Bt(e),n=$t[$t.length-1];!n||!(2&e.flags)&&t>=Bt(n)?$t.push(e):$t.splice(function(e){let t=Dt+1,n=$t.length;for(;t<n;){const s=t+n>>>1,r=$t[s],o=Bt(r);o<e||o===e&&2&r.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,qt()}}function qt(){Nt||(Nt=Mt.then(Ht))}function zt(e,t,n=Dt+1){for(;n<$t.length;n++){const t=$t[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;$t.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Wt(e){if(Rt.length){const e=[...new Set(Rt)].sort((e,t)=>Bt(e)-Bt(t));if(Rt.length=0,Tt)return void Tt.push(...e);for(Tt=e,Ft=0;Ft<Tt.length;Ft++){const e=Tt[Ft];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Tt=null,Ft=0}}const Bt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Ht(e){try{for(Dt=0;Dt<$t.length;Dt++){const e=$t[Dt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Pt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Dt<$t.length;Dt++){const e=$t[Dt];e&&(e.flags&=-2)}Dt=-1,$t.length=0,Wt(),Nt=null,($t.length||Rt.length)&&Ht()}}let Kt=null,Zt=null;function Qt(e){const t=Kt;return Kt=e,Zt=e&&e.type.__scopeId||null,t}function Jt(e,t){if(null===Kt)return e;const n=xr(Kt),r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[o,i,l,a=s]=t[e];o&&(v(o)&&(o={mounted:o,updated:o}),o.deep&&Ot(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Gt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let a=l.dir[s];a&&(_e(),jt(a,n,8,[e.el,l,e,t]),be())}}function Xt(e,t,n=!1){const s=dr();if(s||ss){let r=ss?ss._context.provides:s?null==s.parent||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(s&&s.proxy):t}}const Yt=Symbol.for("v-scx");function en(e,t,n){return tn(e,t,n)}function tn(e,t,n=s){const{immediate:r,deep:i,flush:l,once:a}=n,u=c({},n),h=t&&r||!t&&"post"!==l;let d;if(yr)if("sync"===l){const e=Xt(Yt);d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!h){const e=()=>{};return e.stop=o,e.resume=o,e.pause=o,e}const p=hr;u.call=(e,t,n)=>jt(e,p,t,n);let f=!1;"post"===l?u.scheduler=e=>{Vs(e,p&&p.suspense)}:"sync"!==l&&(f=!0,u.scheduler=(e,t)=>{t?e():Lt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=Vt(e,t,u);return yr&&(d?d.push(m):h&&m()),m}function nn(e,t,n){const s=this.proxy,r=y(e)?e.includes(".")?sn(s,e):()=>s[e]:e.bind(s,s);let o;v(t)?o=t:(o=t.handler,n=t);const i=mr(this),l=tn(r,o.bind(s),n);return i(),l}function sn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const rn=Symbol("_vte"),on=Symbol("_leaveCb");function ln(e,t){6&e.shapeFlag&&e.component?(e.transition=t,ln(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function an(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const un=new WeakMap;function hn(e,t,n,r,o=!1){if(p(e))return void e.forEach((e,s)=>hn(e,t&&(p(t)?t[s]:t),n,r,o));if(pn(r)&&!o)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&hn(e,t,n,r.component.subTree));const l=4&r.shapeFlag?xr(r.component):r.el,a=o?null:l,{i:c,r:h}=e,f=t&&t.r,m=c.refs===s?c.refs={}:c.refs,g=c.setupState,_=vt(g),b=g===s?i:e=>!cn(m,e)&&d(_,e),S=(e,t)=>!t||!cn(m,t);if(null!=f&&f!==h)if(dn(t),y(f))m[f]=null,b(f)&&(g[f]=null);else if(bt(f)){const e=t;S(0,e.k)&&(f.value=null),e.k&&(m[e.k]=null)}if(v(h))Pt(h,c,12,[a,m]);else{const t=y(h),s=bt(h);if(t||s){const r=()=>{if(e.f){const n=t?b(h)?g[h]:m[h]:S()||!e.k?h.value:m[e.k];if(o)p(n)&&u(n,l);else if(p(n))n.includes(l)||n.push(l);else if(t)m[h]=[l],b(h)&&(g[h]=m[h]);else{const t=[l];S(0,e.k)&&(h.value=t),e.k&&(m[e.k]=t)}}else t?(m[h]=a,b(h)&&(g[h]=a)):s&&(S(0,e.k)&&(h.value=a),e.k&&(m[e.k]=a))};if(a){const t=()=>{r(),un.delete(e)};t.id=-1,un.set(e,t),Vs(t,n)}else dn(e),r()}}}function dn(e){const t=un.get(e);t&&(t.flags|=8,un.delete(e))}U().requestIdleCallback,U().cancelIdleCallback;const pn=e=>!!e.type.__asyncLoader,fn=e=>e.type.__isKeepAlive;function mn(e,t){vn(e,"a",t)}function gn(e,t){vn(e,"da",t)}function vn(e,t,n=hr){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(_n(t,s,n),n){let e=n.parent;for(;e&&e.parent;)fn(e.parent.vnode)&&yn(s,t,n,e),e=e.parent}}function yn(e,t,n,s){const r=_n(t,e,s,!0);wn(()=>{u(s[t],r)},n)}function _n(e,t,n=hr,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{_e();const r=mr(n),o=jt(t,n,e,s);return r(),be(),o});return s?r.unshift(o):r.push(o),o}}const bn=e=>(t,n=hr)=>{yr&&"sp"!==e||_n(e,(...e)=>t(...e),n)},Sn=bn("bm"),xn=bn("m"),kn=bn("bu"),Cn=bn("u"),En=bn("bum"),wn=bn("um"),An=bn("sp"),Vn=bn("rtg"),On=bn("rtc");function Pn(e,t=hr){_n("ec",e,t)}const jn="components";function In(e,t){return Dn(jn,e,!0,t)||e}const $n=Symbol.for("v-ndc");function Dn(e,t,n=!0,s=!1){const r=Kt||hr;if(r){const n=r.type;{const e=kr(n,!1);if(e&&(e===t||e===O(t)||e===I(O(t))))return n}const o=Rn(r[e]||n[e],t)||Rn(r.appContext[e],t);return!o&&s?n:o}}function Rn(e,t){return e&&(e[t]||e[O(t)]||e[I(O(t))])}function Tn(e,t,n,s){let r;const o=n,i=p(e);if(i||y(e)){let n=!1,s=!1;i&&pt(e)&&(n=!mt(e),s=ft(e),e=$e(e)),r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(n?s?_t(yt(e[i])):yt(e[i]):e[i],i,void 0,o)}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,o)}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,o));else{const n=Object.keys(e);r=new Array(n.length);for(let s=0,i=n.length;s<i;s++){const i=n[s];r[s]=t(e[i],i,s,o)}}else r=[];return r}const Fn=e=>e?vr(e)?xr(e):Fn(e.parent):null,Mn=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Fn(e.parent),$root:e=>Fn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hn(e),$forceUpdate:e=>e.f||(e.f=()=>{Lt(e.update)}),$nextTick:e=>e.n||(e.n=Ut.bind(e.proxy)),$watch:e=>nn.bind(e)}),Nn=(e,t)=>e!==s&&!e.__isScriptSetup&&d(e,t),Un={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:a,appContext:c}=e;if("$"!==t[0]){const e=l[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Nn(r,t))return l[t]=1,r[t];if(o!==s&&d(o,t))return l[t]=2,o[t];if(d(i,t))return l[t]=3,i[t];if(n!==s&&d(n,t))return l[t]=4,n[t];qn&&(l[t]=0)}}const u=Mn[t];let h,p;return u?("$attrs"===t&&Pe(e.attrs,0,""),u(e)):(h=a.__cssModules)&&(h=h[t])?h:n!==s&&d(n,t)?(l[t]=4,n[t]):(p=c.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Nn(o,t)?(o[t]=n,!0):r!==s&&d(r,t)?(r[t]=n,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:i,type:l}},a){let c;return!!(n[a]||e!==s&&"$"!==a[0]&&d(e,a)||Nn(t,a)||d(i,a)||d(r,a)||d(Mn,a)||d(o.config.globalProperties,a)||(c=l.__cssModules)&&c[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ln(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let qn=!0;function zn(e){const t=Hn(e),n=e.proxy,s=e.ctx;qn=!1,t.beforeCreate&&Wn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:a,provide:c,inject:u,created:h,beforeMount:d,mounted:f,beforeUpdate:m,updated:g,activated:y,deactivated:_,beforeDestroy:S,beforeUnmount:x,destroyed:k,unmounted:C,render:E,renderTracked:w,renderTriggered:A,errorCaptured:V,serverPrefetch:O,expose:P,inheritAttrs:j,components:I,directives:$,filters:D}=t;if(u&&function(e,t){p(e)&&(e=Jn(e));for(const n in e){const s=e[n];let r;r=b(s)?"default"in s?Xt(s.from||n,s.default,!0):Xt(s.from||n):Xt(s),bt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,s,null),l)for(const e in l){const t=l[e];v(t)&&(s[e]=t.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=ut(t))}if(qn=!0,i)for(const e in i){const t=i[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):o,l=!v(t)&&v(t.set)?t.set.bind(n):o,a=Cr({get:r,set:l});Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(a)for(const e in a)Bn(a[e],s,n,e);if(c){const e=v(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(hr){let n=hr.provides;const s=hr.parent&&hr.parent.provides;s===n&&(n=hr.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function R(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(h&&Wn(h,e,"c"),R(Sn,d),R(xn,f),R(kn,m),R(Cn,g),R(mn,y),R(gn,_),R(Pn,V),R(On,w),R(Vn,A),R(En,x),R(wn,C),R(An,O),p(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===o&&(e.render=E),null!=j&&(e.inheritAttrs=j),I&&(e.components=I),$&&(e.directives=$),O&&an(e)}function Wn(e,t,n){jt(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bn(e,t,n,s){let r=s.includes(".")?sn(n,s):()=>n[s];if(y(e)){const n=t[e];v(n)&&en(r,n)}else if(v(e))en(r,e.bind(n));else if(b(e))if(p(e))e.forEach(e=>Bn(e,t,n,s));else{const s=v(e.handler)?e.handler.bind(n):t[e.handler];v(s)&&en(r,s,e)}}function Hn(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:r.length||n||s?(a={},r.length&&r.forEach(e=>Kn(a,e,i,!0)),Kn(a,t,i)):a=t,b(t)&&o.set(t,a),a}function Kn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Kn(e,o,n,!0),r&&r.forEach(t=>Kn(e,t,n,!0));for(const r in t)if(s&&"expose"===r);else{const s=Zn[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Zn={data:Qn,props:Yn,emits:Yn,methods:Xn,computed:Xn,beforeCreate:Gn,created:Gn,beforeMount:Gn,mounted:Gn,beforeUpdate:Gn,updated:Gn,beforeDestroy:Gn,beforeUnmount:Gn,destroyed:Gn,unmounted:Gn,activated:Gn,deactivated:Gn,errorCaptured:Gn,serverPrefetch:Gn,components:Xn,directives:Xn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const s in t)n[s]=Gn(e[s],t[s]);return n},provide:Qn,inject:function(e,t){return Xn(Jn(e),Jn(t))}};function Qn(e,t){return t?e?function(){return c(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function Jn(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Gn(e,t){return e?[...new Set([].concat(e,t))]:t}function Xn(e,t){return e?c(Object.create(null),e,t):t}function Yn(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:c(Object.create(null),Ln(e),Ln(null!=t?t:{})):t}function es(){return{app:null,config:{isNativeTag:i,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ts=0;function ns(e,t){return function(t,n=null){v(t)||(t=c({},t)),null==n||b(n)||(n=null);const s=es(),r=new WeakSet,o=[];let i=!1;const l=s.app={_uid:ts++,_component:t,_props:n,_container:null,_context:s,_instance:null,version:Er,get config(){return s.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&v(e.install)?(r.add(e),e.install(l,...t)):v(e)&&(r.add(e),e(l,...t))),l),mixin:e=>(s.mixins.includes(e)||s.mixins.push(e),l),component:(e,t)=>t?(s.components[e]=t,l):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,l):s.directives[e],mount(r,o,a){if(!i){const o=l._ceVNode||er(t,n);return o.appContext=s,!0===a?a="svg":!1===a&&(a=void 0),e(o,r,a),i=!0,l._container=r,r.__vue_app__=l,xr(o.component)}},onUnmount(e){o.push(e)},unmount(){i&&(jt(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,l),runWithContext(e){const t=ss;ss=l;try{return e()}finally{ss=t}}};return l}}let ss=null;function rs(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||s;let o=n;const i=t.startsWith("update:"),l=i&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${j(t)}Modifiers`])(r,t.slice(7));let a;l&&(l.trim&&(o=n.map(e=>y(e)?e.trim():e)),l.number&&(o=n.map(F)));let c=r[a=$(t)]||r[a=$(O(t))];!c&&i&&(c=r[a=$(j(t))]),c&&jt(c,e,6,o);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,jt(u,e,6,o)}}const os=new WeakMap;function is(e,t,n=!1){const s=n?os:t.emitsCache,r=s.get(e);if(void 0!==r)return r;const o=e.emits;let i={},l=!1;if(!v(e)){const s=e=>{const n=is(e,t,!0);n&&(l=!0,c(i,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return o||l?(p(o)?o.forEach(e=>i[e]=null):c(i,o),b(e)&&s.set(e,i),i):(b(e)&&s.set(e,null),null)}function ls(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,j(t))||d(e,t))}function as(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:u,renderCache:h,props:d,data:p,setupState:f,ctx:m,inheritAttrs:g}=e,v=Qt(e);let y,_;try{if(4&n.shapeFlag){const e=r||s,t=e;y=or(u.call(t,e,h,d,f,p,m)),_=l}else{const e=t;0,y=or(e.length>1?e(d,{attrs:l,slots:i,emit:c}):e(d,null)),_=t.props?l:cs(l)}}catch(t){Ls.length=0,It(t,e,1),y=er(Ns)}let b=y;if(_&&!1!==g){const e=Object.keys(_),{shapeFlag:t}=b;e.length&&7&t&&(o&&e.some(a)&&(_=us(_,o)),b=tr(b,_,!1,!0))}return n.dirs&&(b=tr(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&ln(b,n.transition),y=b,Qt(v),y}const cs=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},us=(e,t)=>{const n={};for(const s in e)a(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function hs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(ds(t,e,o)&&!ls(n,o))return!0}return!1}function ds(e,t,n){const s=e[n],r=t[n];return"style"===n&&b(s)&&b(r)?!Q(s,r):s!==r}const ps={},fs=()=>Object.create(ps),ms=e=>Object.getPrototypeOf(e)===ps;function gs(e,t,n,s=!1){const r={},o=fs();e.propsDefaults=Object.create(null),vs(e,t,r,o);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=s?r:dt(r,!1,Je,st,it):e.type.props?e.props=r:e.props=o,e.attrs=o}function vs(e,t,n,r){const[o,i]=e.propsOptions;let l,a=!1;if(t)for(let s in t){if(w(s))continue;const c=t[s];let u;o&&d(o,u=O(s))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:ls(e.emitsOptions,s)||s in r&&c===r[s]||(r[s]=c,a=!0)}if(i){const t=vt(n),r=l||s;for(let s=0;s<i.length;s++){const l=i[s];n[l]=ys(o,t,l,r[l],e,!d(r,l))}}return a}function ys(e,t,n,s,r,o){const i=e[n];if(null!=i){const e=d(i,"default");if(e&&void 0===s){const e=i.default;if(i.type!==Function&&!i.skipFactory&&v(e)){const{propsDefaults:o}=r;if(n in o)s=o[n];else{const i=mr(r);s=o[n]=e.call(null,t),i()}}else s=e;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!e?s=!1:!i[1]||""!==s&&s!==j(n)||(s=!0))}return s}const _s=new WeakMap;function bs(e,t,n=!1){const o=n?_s:t.propsCache,i=o.get(e);if(i)return i;const l=e.props,a={},u=[];let h=!1;if(!v(e)){const s=e=>{h=!0;const[n,s]=bs(e,t,!0);c(a,n),s&&u.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!l&&!h)return b(e)&&o.set(e,r),r;if(p(l))for(let e=0;e<l.length;e++){const t=O(l[e]);Ss(t)&&(a[t]=s)}else if(l)for(const e in l){const t=O(e);if(Ss(t)){const n=l[e],s=a[t]=p(n)||v(n)?{type:n}:c({},n),r=s.type;let o=!1,i=!0;if(p(r))for(let e=0;e<r.length;++e){const t=r[e],n=v(t)&&t.name;if("Boolean"===n){o=!0;break}"String"===n&&(i=!1)}else o=v(r)&&"Boolean"===r.name;s[0]=o,s[1]=i,(o||d(s,"default"))&&u.push(t)}}const f=[a,u];return b(e)&&o.set(e,f),f}function Ss(e){return"$"!==e[0]&&!w(e)}const xs=e=>"_"===e||"_ctx"===e||"$stable"===e,ks=e=>p(e)?e.map(or):[or(e)],Cs=(e,t,n)=>{if(t._n)return t;const s=function(e,t=Kt){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&Bs(-1);const r=Qt(t);let o;try{o=e(...s)}finally{Qt(r),n._d&&Bs(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>ks(t(...e)),n);return s._c=!1,s},Es=(e,t,n)=>{const s=e._ctx;for(const n in e){if(xs(n))continue;const r=e[n];if(v(r))t[n]=Cs(0,r,s);else if(null!=r){const e=ks(r);t[n]=()=>e}}},ws=(e,t)=>{const n=ks(t);e.slots.default=()=>n},As=(e,t,n)=>{for(const s in t)!n&&xs(s)||(e[s]=t[s])},Vs=function(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):(p(n=e)?Rt.push(...n):Tt&&-1===n.id?Tt.splice(Ft+1,0,n):1&n.flags||(Rt.push(n),n.flags|=1),qt());var n};function Os(e){return function(e){U().__VUE__=!0;const{insert:t,remove:n,patchProp:i,createElement:l,createText:a,createComment:c,setText:u,setElementText:h,parentNode:p,nextSibling:f,setScopeId:m=o,insertStaticContent:g}=e,v=(e,t,n,s=null,r=null,o=null,i=void 0,l=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Js(e,t)&&(s=X(e),K(e,r,o,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=t;switch(c){case Ms:y(e,t,n,s);break;case Ns:_(e,t,n,s);break;case Us:null==e&&b(t,n,s,i);break;case Fs:D(e,t,n,s,r,o,i,l,a);break;default:1&h?C(e,t,n,s,r,o,i,l,a):6&h?F(e,t,n,s,r,o,i,l,a):(64&h||128&h)&&c.process(e,t,n,s,r,o,i,l,a,te)}null!=u&&r?hn(u,e&&e.ref,o,t||e,!t):null==u&&e&&null!=e.ref&&hn(e.ref,null,o,e,!0)},y=(e,n,s,r)=>{if(null==e)t(n.el=a(n.children),s,r);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},_=(e,n,s,r)=>{null==e?t(n.el=c(n.children||""),s,r):n.el=e.el},b=(e,t,n,s)=>{[e.el,e.anchor]=g(e.children,t,n,s,e.el,e.anchor)},x=({el:e,anchor:n},s,r)=>{let o;for(;e&&e!==n;)o=f(e),t(e,s,r),e=o;t(n,s,r)},k=({el:e,anchor:t})=>{let s;for(;e&&e!==t;)s=f(e),n(e),e=s;n(t)},C=(e,t,n,s,r,o,i,l,a)=>{if("svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e)E(t,n,s,r,o,i,l,a);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),P(e,t,r,o,i,l,a)}finally{n&&n._endPatch()}}},E=(e,n,s,r,o,a,c,u)=>{let d,p;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=l(e.type,a,f&&f.is,f),8&m?h(d,e.children):16&m&&V(e.children,d,null,r,o,Ps(e,a),c,u),v&&Gt(e,null,r,"created"),A(d,e,e.scopeId,c,r),f){for(const e in f)"value"===e||w(e)||i(d,e,null,f[e],a,r);"value"in f&&i(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&ar(p,r,e)}v&&Gt(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(o,g);y&&g.beforeEnter(d),t(d,n,s),((p=f&&f.onVnodeMounted)||y||v)&&Vs(()=>{p&&ar(p,r,e),y&&g.enter(d),v&&Gt(e,null,r,"mounted")},o)},A=(e,t,n,s,r)=>{if(n&&m(e,n),s)for(let t=0;t<s.length;t++)m(e,s[t]);if(r){let n=r.subTree;if(t===n||Ts(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;A(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},V=(e,t,n,s,r,o,i,l,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=l?ir(e[c]):or(e[c]);v(null,a,t,n,s,r,o,i,l)}},P=(e,t,n,r,o,l,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&js(n,!1),(g=m.onVnodeBeforeUpdate)&&ar(g,n,t,e),p&&Gt(t,e,n,"beforeUpdate"),n&&js(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),d?I(e.dynamicChildren,d,c,n,r,Ps(t,o),l):a||z(e,t,c,null,n,r,Ps(t,o),l,!1),u>0){if(16&u)$(c,f,m,n,o);else if(2&u&&f.class!==m.class&&i(c,"class",null,m.class,o),4&u&&i(c,"style",f.style,m.style,o),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t],r=f[s],l=m[s];l===r&&"value"!==s||i(c,s,r,l,o,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else a||null!=d||$(c,f,m,n,o);((g=m.onVnodeUpdated)||p)&&Vs(()=>{g&&ar(g,n,t,e),p&&Gt(t,e,n,"updated")},r)},I=(e,t,n,s,r,o,i)=>{for(let l=0;l<t.length;l++){const a=e[l],c=t[l],u=a.el&&(a.type===Fs||!Js(a,c)||198&a.shapeFlag)?p(a.el):n;v(a,c,u,null,s,r,o,i,!0)}},$=(e,t,n,r,o)=>{if(t!==n){if(t!==s)for(const s in t)w(s)||s in n||i(e,s,t[s],null,o,r);for(const s in n){if(w(s))continue;const l=n[s],a=t[s];l!==a&&"value"!==s&&i(e,s,a,l,o,r)}"value"in n&&i(e,"value",t.value,n.value,o)}},D=(e,n,s,r,o,i,l,c,u)=>{const h=n.el=e?e.el:a(""),d=n.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=n;m&&(c=c?c.concat(m):m),null==e?(t(h,s,r),t(d,s,r),V(n.children||[],s,d,o,i,l,c,u)):p>0&&64&p&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(I(e.dynamicChildren,f,s,o,i,l,c),(null!=n.key||o&&n===o.subTree)&&Is(e,n,!0)):z(e,n,s,d,o,i,l,c,u)},F=(e,t,n,s,r,o,i,l,a)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,i,a):M(t,n,s,r,o,i,a):N(e,t,a)},M=(e,t,n,r,o,i,l)=>{const a=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||cr,i={uid:ur++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bs(r,o),emitsOptions:is(r,o),emit:null,emitted:null,propsDefaults:s,inheritAttrs:r.inheritAttrs,ctx:s,data:s,props:s,attrs:s,slots:s,refs:s,setupState:s,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i},i.root=t?t.root:i,i.emit=rs.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o);if(fn(e)&&(a.ctx.renderer=te),function(e,t=!1,n=!1){t&&fr(t);const{props:s,children:r}=e.vnode,o=vr(e);gs(e,s,o,t),((e,t,n)=>{const s=e.slots=fs();if(32&e.vnode.shapeFlag){const e=t._;e?(As(s,t,n),n&&T(s,"_",e,!0)):Es(t,s)}else t&&ws(e,t)})(e,r,n||t);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Un);const{setup:s}=n;if(s){_e();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Sr),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=mr(e),o=Pt(s,e,0,[e.props,n]),i=S(o);if(be(),r(),!i&&!e.sp||pn(e)||an(e),i){if(o.then(gr,gr),t)return o.then(t=>{_r(e,t)}).catch(t=>{It(t,e,0)});e.asyncDep=o}else _r(e,o)}else br(e)}(e,t):void 0;t&&fr(!1)}(a,!1,l),a.asyncDep){if(o&&o.registerDep(a,L,l),!e.el){const s=a.subTree=er(Ns);_(null,s,t,n),e.placeholder=s.el}}else L(a,e,t,n,o,i,l)},N=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!l||l&&l.$stable)||s!==i&&(s?!i||hs(s,i,c):!!i);if(1024&a)return!0;if(16&a)return s?hs(s,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(ds(i,s,n)&&!ls(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void q(s,t,n);s.next=t,s.update()}else t.el=e.el,s.vnode=t},L=(e,t,n,s,r,o,i)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:l,vnode:a}=e;{const n=$s(e);if(n)return t&&(t.el=a.el,q(e,t,i)),void n.asyncDep.then(()=>{Vs(()=>{e.isUnmounted||c()},r)})}let u,h=t;js(e,!1),t?(t.el=a.el,q(e,t,i)):t=a,n&&R(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ar(u,l,t,a),js(e,!0);const d=as(e),f=e.subTree;e.subTree=d,v(f,d,p(f.el),X(f),e,r,o),t.el=d.el,null===h&&function({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,d.el),s&&Vs(s,r),(u=t.props&&t.props.onVnodeUpdated)&&Vs(()=>ar(u,l,t,a),r)}else{let i;const{el:l,props:a}=t,{bm:c,m:u,parent:h,root:d,type:p}=e,f=pn(t);js(e,!1),c&&R(c),!f&&(i=a&&a.onVnodeBeforeMount)&&ar(i,h,t),js(e,!0);{d.ce&&d.ce._hasShadowRoot()&&d.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const i=e.subTree=as(e);v(null,i,n,s,e,r,o),t.el=i.el}if(u&&Vs(u,r),!f&&(i=a&&a.onVnodeMounted)){const e=t;Vs(()=>ar(i,h,e),r)}(256&t.shapeFlag||h&&pn(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&Vs(e.a,r),e.isMounted=!0,t=n=s=null}};e.scope.on();const a=e.effect=new re(l);e.scope.off();const c=e.update=a.run.bind(a),u=e.job=a.runIfDirty.bind(a);u.i=e,u.id=e.uid,a.scheduler=()=>Lt(u),js(e,!0),c()},q=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=vt(r),[a]=e.propsOptions;let c=!1;if(!(s||i>0)||16&i){let s;vs(e,t,r,o)&&(c=!0);for(const o in l)t&&(d(t,o)||(s=j(o))!==o&&d(t,s))||(a?!n||void 0===n[o]&&void 0===n[s]||(r[o]=ys(a,l,o,void 0,e,!0)):delete r[o]);if(o!==l)for(const e in o)t&&d(t,e)||(delete o[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let i=n[s];if(ls(e.emitsOptions,i))continue;const u=t[i];if(a)if(d(o,i))u!==o[i]&&(o[i]=u,c=!0);else{const t=O(i);r[t]=ys(a,l,t,u,e,!1)}else u!==o[i]&&(o[i]=u,c=!0)}}c&&je(e.attrs,"set","")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=s;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:As(o,t,n):(i=!t.$stable,Es(t,o)),l=t}else t&&(ws(e,t),l={default:1});if(i)for(const e in o)xs(e)||null!=l[e]||delete o[e]})(e,t.children,n),_e(),zt(e),be()},z=(e,t,n,s,r,o,i,l,a=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void B(c,d,n,s,r,o,i,l,a);if(256&p)return void W(c,d,n,s,r,o,i,l,a)}8&f?(16&u&&G(c,r,o),d!==c&&h(n,d)):16&u?16&f?B(c,d,n,s,r,o,i,l,a):G(c,r,o,!0):(8&u&&h(n,""),16&f&&V(d,n,s,r,o,i,l,a))},W=(e,t,n,s,o,i,l,a,c)=>{t=t||r;const u=(e=e||r).length,h=t.length,d=Math.min(u,h);let p;for(p=0;p<d;p++){const s=t[p]=c?ir(t[p]):or(t[p]);v(e[p],s,n,null,o,i,l,a,c)}u>h?G(e,o,i,!0,!1,d):V(t,n,s,o,i,l,a,c,d)},B=(e,t,n,s,o,i,l,a,c)=>{let u=0;const h=t.length;let d=e.length-1,p=h-1;for(;u<=d&&u<=p;){const s=e[u],r=t[u]=c?ir(t[u]):or(t[u]);if(!Js(s,r))break;v(s,r,n,null,o,i,l,a,c),u++}for(;u<=d&&u<=p;){const s=e[d],r=t[p]=c?ir(t[p]):or(t[p]);if(!Js(s,r))break;v(s,r,n,null,o,i,l,a,c),d--,p--}if(u>d){if(u<=p){const e=p+1,r=e<h?t[e].el:s;for(;u<=p;)v(null,t[u]=c?ir(t[u]):or(t[u]),n,r,o,i,l,a,c),u++}}else if(u>p)for(;u<=d;)K(e[u],o,i,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?ir(t[u]):or(t[u]);null!=e.key&&g.set(e.key,u)}let y,_=0;const b=p-m+1;let S=!1,x=0;const k=new Array(b);for(u=0;u<b;u++)k[u]=0;for(u=f;u<=d;u++){const s=e[u];if(_>=b){K(s,o,i,!0);continue}let r;if(null!=s.key)r=g.get(s.key);else for(y=m;y<=p;y++)if(0===k[y-m]&&Js(s,t[y])){r=y;break}void 0===r?K(s,o,i,!0):(k[r-m]=u+1,r>=x?x=r:S=!0,v(s,t[r],n,null,o,i,l,a,c),_++)}const C=S?function(e){const t=e.slice(),n=[0];let s,r,o,i,l;const a=e.length;for(s=0;s<a;s++){const a=e[s];if(0!==a){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<a?o=l+1:i=l;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}o=n.length,i=n[o-1];for(;o-- >0;)n[o]=i,i=t[i];return n}(k):r;for(y=C.length-1,u=b-1;u>=0;u--){const e=m+u,r=t[e],d=t[e+1],p=e+1<h?d.el||Rs(d):s;0===k[u]?v(null,r,n,p,o,i,l,a,c):S&&(y<0||u!==C[y]?H(r,n,p,2):y--)}}},H=(e,s,r,o,i=null)=>{const{el:l,type:a,transition:c,children:u,shapeFlag:h}=e;if(6&h)return void H(e.component.subTree,s,r,o);if(128&h)return void e.suspense.move(s,r,o);if(64&h)return void a.move(e,s,r,te);if(a===Fs){t(l,s,r);for(let e=0;e<u.length;e++)H(u[e],s,r,o);return void t(e.anchor,s,r)}if(a===Us)return void x(e,s,r);if(2!==o&&1&h&&c)if(0===o)c.beforeEnter(l),t(l,s,r),Vs(()=>c.enter(l),i);else{const{leave:o,delayLeave:i,afterLeave:a}=c,u=()=>{e.ctx.isUnmounted?n(l):t(l,s,r)},h=()=>{l._isLeaving&&l[on](!0),o(l,()=>{u(),a&&a()})};i?i(l,u,h):h()}else t(l,s,r)},K=(e,t,n,s=!1,r=!1)=>{const{type:o,props:i,ref:l,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:d,cacheIndex:p}=e;if(-2===h&&(r=!1),null!=l&&(_e(),hn(l,null,n,e,!0),be()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,m=!pn(e);let g;if(m&&(g=i&&i.onVnodeBeforeUnmount)&&ar(g,t,e),6&u)J(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);f&&Gt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,te,s):c&&!c.hasOnce&&(o!==Fs||h>0&&64&h)?G(c,t,n,!1,!0):(o===Fs&&384&h||!r&&16&u)&&G(a,t,n),s&&Z(e)}(m&&(g=i&&i.onVnodeUnmounted)||f)&&Vs(()=>{g&&ar(g,t,e),f&&Gt(e,null,t,"unmounted")},n)},Z=e=>{const{type:t,el:s,anchor:r,transition:o}=e;if(t===Fs)return void Q(s,r);if(t===Us)return void k(e);const i=()=>{n(s),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:n}=o,r=()=>t(s,i);n?n(e.el,i,r):r()}else i()},Q=(e,t)=>{let s;for(;e!==t;)s=f(e),n(e),e=s;n(t)},J=(e,t,n)=>{const{bum:s,scope:r,job:o,subTree:i,um:l,m:a,a:c}=e;Ds(a),Ds(c),s&&R(s),r.stop(),o&&(o.flags|=8,K(i,e,t,n)),l&&Vs(l,t),Vs(()=>{e.isUnmounted=!0},t)},G=(e,t,n,s=!1,r=!1,o=0)=>{for(let i=o;i<e.length;i++)K(e[i],t,n,s,r)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[rn];return n?f(n):t};let Y=!1;const ee=(e,t,n)=>{let s;null==e?t._vnode&&(K(t._vnode,null,null,!0),s=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Y||(Y=!0,zt(s),Wt(),Y=!1)},te={p:v,um:K,m:H,r:Z,mt:M,mc:V,pc:z,pbc:I,n:X,o:e};let se;return{render:ee,hydrate:se,createApp:ns(ee)}}(e)}function Ps({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function js({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Is(e,t,n=!1){const s=e.children,r=t.children;if(p(s)&&p(r))for(let e=0;e<s.length;e++){const t=s[e];let o=r[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=r[e]=ir(r[e]),o.el=t.el),n||-2===o.patchFlag||Is(t,o)),o.type===Ms&&(-1===o.patchFlag&&(o=r[e]=ir(o)),o.el=t.el),o.type!==Ns||o.el||(o.el=t.el)}}function $s(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$s(t)}function Ds(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Rs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Rs(t.subTree):null}const Ts=e=>e.__isSuspense;const Fs=Symbol.for("v-fgt"),Ms=Symbol.for("v-txt"),Ns=Symbol.for("v-cmt"),Us=Symbol.for("v-stc"),Ls=[];let qs=null;function zs(e=!1){Ls.push(qs=e?null:[])}let Ws=1;function Bs(e,t=!1){Ws+=e,e<0&&qs&&t&&(qs.hasOnce=!0)}function Hs(e){return e.dynamicChildren=Ws>0?qs||r:null,Ls.pop(),qs=Ls[Ls.length-1]||null,Ws>0&&qs&&qs.push(e),e}function Ks(e,t,n,s,r,o){return Hs(Ys(e,t,n,s,r,o,!0))}function Zs(e,t,n,s,r){return Hs(er(e,t,n,s,r,!0))}function Qs(e){return!!e&&!0===e.__v_isVNode}function Js(e,t){return e.type===t.type&&e.key===t.key}const Gs=({key:e})=>null!=e?e:null,Xs=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||bt(e)||v(e)?{i:Kt,r:e,k:t,f:!!n}:e:null);function Ys(e,t=null,n=null,s=0,r=null,o=(e===Fs?0:1),i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gs(t),ref:t&&Xs(t),scopeId:Zt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Kt};return l?(lr(a,n),128&o&&e.normalize(a)):n&&(a.shapeFlag|=y(n)?8:16),Ws>0&&!i&&qs&&(a.patchFlag>0||6&o)&&32!==a.patchFlag&&qs.push(a),a}const er=function(e,t=null,n=null,s=0,r=null,o=!1){e&&e!==$n||(e=Ns);if(Qs(e)){const s=tr(e,t,!0);return n&&lr(s,n),Ws>0&&!o&&qs&&(6&s.shapeFlag?qs[qs.indexOf(e)]=s:qs.push(s)),s.patchFlag=-2,s}i=e,v(i)&&"__vccOpts"in i&&(e=e.__vccOpts);var i;if(t){t=function(e){return e?gt(e)||ms(e)?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=H(e)),b(n)&&(gt(n)&&!p(n)&&(n=c({},n)),t.style=L(n))}const l=y(e)?1:Ts(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:v(e)?2:0;return Ys(e,t,n,s,r,l,o,!0)};function tr(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:a,transition:c}=e,u=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=H([t.class,s.class]));else if("style"===e)t.style=L([t.style,s.style]);else if(l(e)){const n=t[e],r=s[e];!r||n===r||p(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Gs(u),ref:t&&t.ref?n&&o?p(o)?o.concat(Xs(t)):[o,Xs(t)]:Xs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fs?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tr(e.ssContent),ssFallback:e.ssFallback&&tr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&ln(h,c.clone(h)),h}function nr(e=" ",t=0){return er(Ms,null,e,t)}function sr(e,t){const n=er(Us,null,e);return n.staticCount=t,n}function rr(e="",t=!1){return t?(zs(),Zs(Ns,null,e)):er(Ns,null,e)}function or(e){return null==e||"boolean"==typeof e?er(Ns):p(e)?er(Fs,null,e.slice()):Qs(e)?ir(e):er(Ms,null,String(e))}function ir(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:tr(e)}function lr(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),lr(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||ms(t)?3===s&&Kt&&(1===Kt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Kt}}else v(t)?(t={default:t,_ctx:Kt},n=32):(t=String(t),64&s?(n=16,t=[nr(t)]):n=8);e.children=t,e.shapeFlag|=n}function ar(e,t,n,s=null){jt(e,t,7,[n,s])}const cr=es();let ur=0;let hr=null;const dr=()=>hr||Kt;let pr,fr;{const e=U(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach(t=>t(e)):s[0](e)}};pr=t("__VUE_INSTANCE_SETTERS__",e=>hr=e),fr=t("__VUE_SSR_SETTERS__",e=>yr=e)}const mr=e=>{const t=hr;return pr(e),e.scope.on(),()=>{e.scope.off(),pr(t)}},gr=()=>{hr&&hr.scope.off(),pr(null)};function vr(e){return 4&e.vnode.shapeFlag}let yr=!1;function _r(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=kt(t)),br(e)}function br(e,t,n){const s=e.type;e.render||(e.render=s.render||o);{const t=mr(e);_e();try{zn(e)}finally{be(),t()}}}const Sr={get:(e,t)=>(Pe(e,0,""),e[t])};function xr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(kt((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&T(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in Mn?Mn[n](e):void 0,has:(e,t)=>t in e||t in Mn})):e.proxy;var t}function kr(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const Cr=(e,t)=>{const n=function(e,t,n=!1){let s,r;return v(e)?s=e:(s=e.get,r=e.set),new Ct(s,r,n)}(e,0,yr);return n},Er="3.5.30";
|
|
20
20
|
/**
|
|
21
21
|
* @vue/runtime-dom v3.5.30
|
|
22
22
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
23
23
|
* @license MIT
|
|
24
24
|
**/
|
|
25
|
-
let wr;const Cr="undefined"!=typeof window&&window.trustedTypes;if(Cr)try{wr=Cr.createPolicy("vue",{createHTML:e=>e})}catch(e){}const Vr=wr?e=>wr.createHTML(e):e=>e,Ar="undefined"!=typeof document?document:null,Or=Ar&&Ar.createElement("template"),Pr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r="svg"===t?Ar.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ar.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Ar.createElement(e,{is:n}):Ar.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ar.createTextNode(e),createComment:e=>Ar.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ar.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Or.innerHTML=Vr("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const r=Or.content;if("svg"===s||"mathml"===s){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jr=Symbol("_vtc");const Rr=Symbol("_vod"),$r=Symbol("_vsh"),Tr={name:"show",beforeMount(e,{value:t},{transition:n}){e[Rr]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Fr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Fr(e,!0),s.enter(e)):s.leave(e,()=>{Fr(e,!1)}):Fr(e,t))},beforeUnmount(e,{value:t}){Fr(e,t)}};function Fr(e,t){e.style.display=t?e[Rr]:"none",e[$r]=!t}const Ir=Symbol(""),Mr=/(?:^|;)\s*display\s*:/;const Nr=/\s*!important$/;function Dr(e,t,n){if(p(n))n.forEach(n=>Dr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=Lr[t];if(n)return n;let s=O(t);if("filter"!==s&&s in e)return Lr[t]=s;s=R(s);for(let n=0;n<Ur.length;n++){const r=Ur[n]+s;if(r in e)return Lr[t]=r}return t}(e,t);Nr.test(n)?e.setProperty(j(s),n.replace(Nr,""),"important"):e[s]=n}}const Ur=["Webkit","Moz","ms"],Lr={};const qr="http://www.w3.org/1999/xlink";function zr(e,t,n,s,r,i=K(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(qr,t.slice(6,t.length)):e.setAttributeNS(qr,t,n):null==n||i&&!Z(n)?e.removeAttribute(t):e.setAttribute(t,i?"":_(n)?String(n):n)}function Wr(e,t,n,s,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Vr(n):n));const i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){const s="OPTION"===i?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return s===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let o=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=Z(n):null==n&&"string"===s?(n="",o=!0):"number"===s&&(n=0,o=!0)}try{e[t]=n}catch(e){}o&&e.removeAttribute(r||t)}function Br(e,t,n,s){e.addEventListener(t,n,s)}const Hr=Symbol("_vei");function Kr(e,t,n,s,r=null){const i=e[Hr]||(e[Hr]={}),o=i[t];if(s&&o)o.value=s;else{const[n,l]=function(e){let t;if(Zr.test(e)){let n;for(t={};n=e.match(Zr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):j(e.slice(2));return[n,t]}(t);if(s){const o=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();jt(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Gr(),n}(s,r);Br(e,n,o,l)}else o&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,o,l),i[t]=void 0)}}const Zr=/(?:Once|Passive|Capture)$/;let Qr=0;const Jr=Promise.resolve(),Gr=()=>Qr||(Jr.then(()=>Qr=0),Qr=Date.now());const Xr=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Yr={};const ei="undefined"!=typeof HTMLElement?HTMLElement:class{};class ti extends ei{constructor(e,t={},n=mi){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==mi?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(c({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof ti){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Ut(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:s}=e;let r;if(n&&!p(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=N(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,this._resolveProps(e),this.shadowRoot&&this._applyStyles(s),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>St(t[e])})}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Yr;const s=O(e);t&&this._numberProps&&this._numberProps[s]&&(n=N(n)),this._setProp(s,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,s=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Yr?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),s&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(j(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(j(e),t+""):t||this.removeAttribute(j(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),fi(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=er(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,E(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),j(e)!==e&&t(j(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const s=this._nonce,r=this.shadowRoot,i=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let o=null;for(let l=e.length-1;l>=0;l--){const a=document.createElement("style");s&&a.setAttribute("nonce",s),a.textContent=e[l],r.insertBefore(a,o||i),o=a,0===l&&(n||this._styleAnchors.set(this._def,a),t&&this._styleAnchors.set(t,a))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const s=e[n],r=s.getAttribute("name")||"default",i=this._slots[r],o=s.parentNode;if(i)for(const e of i){if(t&&1===e.nodeType){const n=t+"-s",s=document.createTreeWalker(e,1);let r;for(e.setAttribute(n,"");r=s.nextNode();)r.setAttribute(n,"")}o.insertBefore(e,s)}else for(;s.firstChild;)o.insertBefore(s.firstChild,s);o.removeChild(s)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}const ni=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>F(t,e):t};function si(e){e.target.composing=!0}function ri(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ii=Symbol("_assign");function oi(e,t,n){return t&&(e=e.trim()),n&&(e=M(e)),e}const li={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ii]=ni(r);const i=s||r.props&&"number"===r.props.type;Br(e,t?"change":"input",t=>{t.target.composing||e[ii](oi(e.value,n,i))}),(n||i)&&Br(e,"change",()=>{e.value=oi(e.value,n,i)}),t||(Br(e,"compositionstart",si),Br(e,"compositionend",ri),Br(e,"change",ri))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[ii]=ni(o),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:M(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ai=["ctrl","shift","alt","meta"],ci={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ai.some(n=>e[`${n}Key`]&&!t.includes(n))},ui=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(n,...s)=>{for(let e=0;e<t.length;e++){const s=ci[t[e]];if(s&&s(n,t))return}return e(n,...s)})},hi=c({patchProp:(e,t,n,s,r,i)=>{const o="svg"===r;"class"===t?function(e,t,n){const s=e[jr];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,o):"style"===t?function(e,t,n){const s=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Dr(s,t,"")}else for(const e in t)null==n[e]&&Dr(s,e,"");for(const e in n)"display"===e&&(i=!0),Dr(s,e,n[e])}else if(r){if(t!==n){const e=s[Ir];e&&(n+=";"+e),s.cssText=n,i=Mr.test(n)}}else t&&e.removeAttribute("style");Rr in e&&(e[Rr]=i?s.display:"",e[$r]&&(s.display="none"))}(e,n,s):l(t)?a(t)||Kr(e,t,0,s,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&Xr(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Xr(t)&&y(n))return!1;return t in e}(e,t,s,o))?(Wr(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||zr(e,t,s,o,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=O(t);return Array.isArray(n)?n.some(e=>O(e)===s):Object.keys(n).some(e=>O(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(s)))?Wr(e,O(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),zr(e,t,s,o))}},Pr);let di;function pi(){return di||(di=Os(hi))}const fi=(...e)=>{pi().render(...e)},mi=(...e)=>{const t=pi().createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){if(y(e)){return document.querySelector(e)}return e}(e);if(!s)return;const r=t._component;v(r)||r.render||r.template||(r.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const i=n(s,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};const gi=["value","placeholder"],vi=["value","placeholder"],yi={key:2,class:"errorlist"};t.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),i.isLong?(zs(),Ks("textarea",{key:0,class:"sf-input sf-textarea",rows:"3",value:n.modelValue,placeholder:n.schema.placeholder||"",onInput:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},null,40,gi)):(zs(),Ks("input",{key:1,type:"text",class:"sf-input",value:null!=n.modelValue?String(n.modelValue):"",placeholder:n.schema.placeholder||"",onInput:t[1]||(t[1]=t=>e.$emit("update:modelValue",t.target.value))},null,40,vi)),i.fieldErrors.length?(zs(),Ks("ul",yi,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},t.__file="src/editors/StringEditor.vue";var _i={name:"NumberEditor",props:{schema:{type:Object,required:!0},modelValue:{default:0},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onInput(e){const t=e.target.value;""===t?this.$emit("update:modelValue",0):this.$emit("update:modelValue","integer"===this.schema.type?parseInt(t,10):parseFloat(t))}}};const bi=["step","min","max","value"],Si={key:0,class:"errorlist"};_i.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),Ys("input",{type:"number",class:"sf-input",step:"integer"===n.schema.type?"1":"any",min:null!=n.schema.minimum?String(n.schema.minimum):void 0,max:null!=n.schema.maximum?String(n.schema.maximum):void 0,value:null!=n.modelValue?n.modelValue:"",onInput:t[0]||(t[0]=(...e)=>i.onInput&&i.onInput(...e))},null,40,bi),i.fieldErrors.length?(zs(),Ks("ul",Si,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},_i.__file="src/editors/NumberEditor.vue";var xi={name:"BooleanEditor",props:{schema:{type:Object,required:!0},modelValue:{default:!1},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const ki={class:"sf-checkbox-label"},Ei=["checked"],wi={key:0,class:"errorlist"};xi.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field sf-field-boolean",{errors:i.fieldErrors.length}])},[Ys("label",ki,[Ys("input",{type:"checkbox",class:"sf-checkbox",checked:!!n.modelValue,onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.checked))},null,40,Ei),nr(" "+G(i.title),1)]),i.fieldErrors.length?(zs(),Ks("ul",wi,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},xi.__file="src/editors/BooleanEditor.vue";var Ci={name:"SelectEditor",props:{schema:{type:Object,required:!0},modelValue:{default:""},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Vi=["value"],Ai=["value"],Oi={key:0,class:"errorlist"};Ci.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),Ys("select",{class:"sf-input sf-select",value:null!=n.modelValue?String(n.modelValue):"",onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},[(zs(!0),Ks(Ms,null,In(n.schema.enum||[],e=>(zs(),Ks("option",{key:e,value:String(e)},G(e),9,Ai))),128))],40,Vi),i.fieldErrors.length?(zs(),Ks("ul",Oi,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},Ci.__file="src/editors/SelectEditor.vue";var Pi={name:"HiddenEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{resolvedValue(){return"const"in this.schema?this.schema.const:this.schema.enum&&1===this.schema.enum.length?this.schema.enum[0]:this.modelValue}},mounted(){this.resolvedValue!==this.modelValue&&this.$emit("update:modelValue",this.resolvedValue)},methods:{getValue(){return this.resolvedValue}}};const ji={style:{display:"none"}};Pi.render=function(e,t,n,s,r,i){return zs(),Ks("div",ji)},Pi.__file="src/editors/HiddenEditor.vue";var Ri={name:"ObjectEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=ko},props:{schema:{type:Object,required:!0},modelValue:{default:()=>({})},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],computed:{isRoot(){return 0===this.path.length},title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onChildChange(e,t){const n={...this.modelValue||{},[e]:t};this.$emit("update:modelValue",n)}}};const $i={key:0,class:"sf-object sf-object-root"},Ti={class:"sf-object-fields"},Fi={key:1,class:"sf-object"},Ii={class:"sf-object-title"},Mi={class:"sf-object-fields"};function Ni(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Ni);const t={};for(const n of Object.keys(e))t[n]=Ni(e[n]);return t}function Di(e){if("default"in e)return Ni(e.default);if("object"===e.type){const t={};for(const[n,s]of Object.entries(e.properties||{}))"default"in s?t[n]=Ni(s.default):"string"===s.type?t[n]="":"integer"===s.type||"number"===s.type?t[n]=0:"boolean"===s.type?t[n]=!1:"array"===s.type&&(t[n]=[]);return t}return"array"===e.type?[]:"string"===e.type?"":"integer"===e.type||"number"===e.type?0:"boolean"!==e.type&&("relation"===e.type&&e.multiple?[]:null)}Ri.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return i.isRoot?(zs(),Ks("div",$i,[Ys("div",Ti,[sr(' {{ schema.properties }}\n <span v-for="(propSchema, key) in schema.properties" :key="key">\n {{ key }}: {{ form.resolveSchema(propSchema) }}\n </span> '),(zs(!0),Ks(Ms,null,In(n.schema.properties||{},(e,t)=>(zs(),Zs(o,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>i.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))])])):(zs(),Ks("fieldset",Fi,[Ys("legend",Ii,G(i.title),1),Ys("div",Mi,[(zs(!0),Ks(Ms,null,In(n.schema.properties||{},(e,t)=>(zs(),Zs(o,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>i.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))])]))},Ri.__file="src/editors/ObjectEditor.vue";let Ui=0;var Li={name:"ArrayEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=ko},props:{schema:{type:Object,required:!0},modelValue:{default:()=>[]},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){return{items:(Array.isArray(this.modelValue)?this.modelValue:[]).map(e=>({_key:Ui++,value:e}))}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},itemSchema(){return this.form.resolveSchema(this.schema.items||{})},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",addItem(){const e=Di(this.itemSchema);this.items.push({_key:Ui++,value:e}),this.emitValue()},removeItem(e){this.items.splice(e,1),this.emitValue()},moveItem(e,t){const n=e+t;if(n<0||n>=this.items.length)return;const s=this.items[e];this.items.splice(e,1,this.items[n]),this.items.splice(n,1,s),this.emitValue()},onItemChange(e,t){this.items[e].value=t,this.emitValue()},emitValue(){this.$emit("update:modelValue",this.items.map(e=>e.value))}}};const qi={class:"sf-array-header"},zi={class:"sf-label"},Wi={class:"sf-array-count"},Bi={class:"sf-array-items"},Hi={class:"sf-array-item-header"},Ki={class:"sf-array-item-index"},Zi={class:"sf-array-item-actions"},Qi=["onClick"],Ji=["onClick"],Gi=["onClick"],Xi={class:"sf-array-item-body"},Yi={key:0,class:"errorlist"};Li.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return zs(),Ks("div",{class:H(["sf-array",{errors:i.fieldErrors.length}])},[Ys("div",qi,[Ys("span",zi,G(i.title),1),Ys("span",Wi,G(r.items.length),1),Ys("button",{type:"button",class:"sf-btn sf-btn-add",onClick:t[0]||(t[0]=e=>i.addItem())},[...t[1]||(t[1]=[Ys("i",{class:"fas fa-plus"},null,-1),nr(" Add ",-1)])])]),Ys("div",Bi,[(zs(!0),Ks(Ms,null,In(r.items,(e,s)=>(zs(),Ks("div",{key:e._key,class:"sf-array-item"},[Ys("div",Hi,[Ys("span",Ki,"#"+G(s+1),1),Ys("div",Zi,[s>0?(zs(),Ks("button",{key:0,type:"button",class:"sf-btn sf-btn-sm",onClick:e=>i.moveItem(s,-1)},[...t[2]||(t[2]=[Ys("i",{class:"fas fa-arrow-up"},null,-1)])],8,Qi)):sr("v-if",!0),Ys("button",{type:"button",class:"sf-btn sf-btn-sm",onClick:e=>i.moveItem(s,1)},[...t[3]||(t[3]=[Ys("i",{class:"fas fa-arrow-down"},null,-1)])],8,Ji),Ys("button",{type:"button",class:"sf-btn sf-btn-sm sf-btn-danger",onClick:e=>i.removeItem(s)},[...t[4]||(t[4]=[Ys("i",{class:"fas fa-times"},null,-1)])],8,Gi)])]),Ys("div",Xi,[er(o,{schema:i.itemSchema,"model-value":e.value,path:[...n.path,String(s)],form:n.form,"onUpdate:modelValue":e=>i.onItemChange(s,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"])])]))),128))]),i.fieldErrors.length?(zs(),Ks("ul",Yi,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},Li.__file="src/editors/ArrayEditor.vue";var eo={name:"NullableEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=ko},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){return{isNull:null===this.modelValue||void 0===this.modelValue}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},innerSchema(){const e={...this.schema};return delete e._nullable,e},toggleClass(){return this.isNull?"sf-btn sf-btn-sm sf-btn-add":"sf-btn sf-btn-sm sf-btn-danger"},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},watch:{modelValue(e){this.isNull=null==e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",toggle(){this.isNull?(this.isNull=!1,this.$emit("update:modelValue",Di(this.innerSchema))):(this.isNull=!0,this.$emit("update:modelValue",null))}}};const to={class:"sf-nullable-header"},no={class:"sf-nullable-body"},so={key:0,class:"errorlist"};eo.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return zs(),Ks("div",{class:H(["sf-nullable",{errors:i.fieldErrors.length}])},[Ys("div",to,[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),Ys("button",{type:"button",class:H(i.toggleClass),onClick:t[0]||(t[0]=(...e)=>i.toggle&&i.toggle(...e))},[r.isNull?(zs(),Ks(Ms,{key:0},[t[2]||(t[2]=Ys("i",{class:"fas fa-plus"},null,-1)),t[3]||(t[3]=nr(" Add ",-1))],64)):(zs(),Ks(Ms,{key:1},[t[4]||(t[4]=Ys("i",{class:"fas fa-times"},null,-1)),t[5]||(t[5]=nr(" Remove ",-1))],64))],2)]),Ys("div",no,[r.isNull?sr("v-if",!0):(zs(),Zs(o,{key:0,schema:i.innerSchema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]))]),i.fieldErrors.length?(zs(),Ks("ul",so,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},eo.__file="src/editors/NullableEditor.vue";var ro={name:"UnionEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=ko},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){const e=this.schema.discriminator.propertyName,t=this.schema.discriminator.mapping;return{discriminatorProp:e,mapping:t,currentType:this.modelValue?this.modelValue[e]:Object.keys(t)[0]}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},typeKeys(){return Object.keys(this.mapping)},currentSchema(){const e=this.mapping[this.currentType];return this.form.resolveSchema({$ref:e})},innerValue(){if(this.modelValue&&this.modelValue[this.discriminatorProp]===this.currentType)return this.modelValue;const e=Di(this.currentSchema);return e[this.discriminatorProp]=this.currentType,e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onTypeChange(e){this.currentType=e.target.value;const t=Di(this.currentSchema);t[this.discriminatorProp]=this.currentType,this.$emit("update:modelValue",t)},onInnerChange(e){e&&(e[this.discriminatorProp]=this.currentType),this.$emit("update:modelValue",e)}}};const io={class:"sf-union"},oo={class:"sf-field"},lo={class:"sf-label"},ao=["value"],co=["value"],uo={class:"sf-union-body"};ro.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return zs(),Ks("div",io,[Ys("div",oo,[Ys("label",lo,G(i.title),1),Ys("select",{class:"sf-input sf-select",value:r.currentType,onChange:t[0]||(t[0]=(...e)=>i.onTypeChange&&i.onTypeChange(...e))},[(zs(!0),Ks(Ms,null,In(i.typeKeys,e=>(zs(),Ks("option",{key:e,value:e},G(i.humanize(e)),9,co))),128))],40,ao)]),Ys("div",uo,[(zs(),Zs(o,{key:r.currentType,schema:i.currentSchema,"model-value":i.innerValue,path:n.path,form:n.form,"onUpdate:modelValue":i.onInnerChange},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))])])},ro.__file="src/editors/UnionEditor.vue";var ho={name:"RelationEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){const e=!!this.schema.multiple,t=this.modelValue;let n;return n=e?Array.isArray(t)?[...t]:[]:t?[t]:[],{isMultiple:e,allowClear:this.schema.options?.select2?.allowClear??!0,placeholder:this.schema.options?.select2?.placeholder||"Search...",searchUrl:this.schema.options?.select2?.ajax?.url||"",selected:n,dropdownVisible:!1,searchResults:[],currentPage:1,hasMore:!1,loading:!1,highlightIndex:-1,searchQuery:""}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},showSearch(){return!(!this.isMultiple&&this.selected.length>0)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]},filteredResults(){const e=new Set(this.selected.map(e=>`${e.id}-${e.model||""}`));return this.searchResults.filter(t=>!e.has(`${t.id}-${t.model||""}`))}},created(){this._doSearch=function(e,t){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>e.apply(this,s),t)}}(e=>this.fetchResults(e,1),300),this._onDocClick=e=>{this.$refs.root&&!this.$refs.root.contains(e.target)&&this.closeDropdown()}},mounted(){document.addEventListener("click",this._onDocClick)},beforeUnmount(){document.removeEventListener("click",this._onDocClick)},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",getDisplayName(e){if(!e)return"";for(const t of["__str__","name","title","label"])if(e[t])return String(e[t]);return`#${e.id||"?"}`},itemKey:e=>`${e.id}-${e.model||""}`,onSearchInput(){this._doSearch(this.searchQuery)},openDropdown(){this.dropdownVisible||(this.dropdownVisible=!0,this.fetchResults(this.searchQuery,1))},closeDropdown(){this.dropdownVisible=!1,this.highlightIndex=-1},async fetchResults(e,t){if(this.searchUrl){this.loading=!0,this.currentPage=t;try{const n=new URL(this.searchUrl,window.location.origin);n.searchParams.set("_q",e||""),n.searchParams.set("page",String(t));const s=await fetch(n,{credentials:"same-origin"});if(!s.ok)return;const r=await s.json();this.searchResults=1===t?r.items||[]:this.searchResults.concat(r.items||[]),this.hasMore=r.more}finally{this.loading=!1}}},handleKeyDown(e){this.filteredResults.length&&("ArrowDown"===e.key?(e.preventDefault(),this.highlightIndex=Math.min(this.highlightIndex+1,this.filteredResults.length-1)):"ArrowUp"===e.key?(e.preventDefault(),this.highlightIndex=Math.max(this.highlightIndex-1,0)):"Enter"===e.key?(e.preventDefault(),this.highlightIndex>=0&&this.highlightIndex<this.filteredResults.length&&this.selectItem(this.filteredResults[this.highlightIndex])):"Escape"===e.key&&this.closeDropdown())},selectItem(e){this.isMultiple?this.selected.push(e):this.selected=[e],this.searchQuery="",this.highlightIndex=-1,this.closeDropdown(),this.emitValue()},removeItem(e){this.selected=this.selected.filter(t=>!(t.id===e.id&&(t.model||"")===(e.model||""))),this.emitValue()},emitValue(){this.isMultiple?this.$emit("update:modelValue",[...this.selected]):this.$emit("update:modelValue",this.selected[0]||null)}}};const po={class:"sf-relation-wrapper"},fo={key:0,class:"sf-relation-selected"},mo={class:"sf-relation-tag-text"},go=["onClick"],vo={class:"sf-relation-search"},yo=["placeholder"],_o={class:"sf-relation-dropdown"},bo={key:0,class:"sf-relation-dropdown-empty"},So=["onClick"],xo={key:0,class:"errorlist"};ho.render=function(e,t,n,s,r,i){return zs(),Ks("div",{class:H(["sf-field sf-relation",{errors:i.fieldErrors.length}]),ref:"root"},[Ys("label",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),Ys("div",po,[sr(" Selected items "),r.selected.length?(zs(),Ks("div",fo,[(zs(!0),Ks(Ms,null,In(r.selected,e=>(zs(),Ks("div",{key:i.itemKey(e),class:"sf-relation-tag"},[Ys("span",mo,G(i.getDisplayName(e)),1),r.isMultiple||r.allowClear?(zs(),Ks("button",{key:0,type:"button",class:"sf-relation-tag-remove",onClick:ui(t=>i.removeItem(e),["stop"])},[...t[5]||(t[5]=[Ys("i",{class:"fas fa-times"},null,-1)])],8,go)):sr("v-if",!0)]))),128))])):sr("v-if",!0),sr(" Search box "),Jt(Ys("div",vo,[Jt(Ys("input",{ref:"searchInput",type:"text",class:"sf-input sf-relation-input",placeholder:r.placeholder,autocomplete:"off","onUpdate:modelValue":t[0]||(t[0]=e=>r.searchQuery=e),onInput:t[1]||(t[1]=(...e)=>i.onSearchInput&&i.onSearchInput(...e)),onFocus:t[2]||(t[2]=(...e)=>i.openDropdown&&i.openDropdown(...e)),onKeydown:t[3]||(t[3]=(...e)=>i.handleKeyDown&&i.handleKeyDown(...e))},null,40,yo),[[li,r.searchQuery]]),sr(" Dropdown "),Jt(Ys("div",_o,[0!==i.filteredResults.length||r.loading?sr("v-if",!0):(zs(),Ks("div",bo," No results found ")),(zs(!0),Ks(Ms,null,In(i.filteredResults,(e,t)=>(zs(),Ks("div",{key:i.itemKey(e),class:H(["sf-relation-dropdown-item",{highlighted:t===r.highlightIndex}]),onClick:t=>i.selectItem(e)},G(i.getDisplayName(e)),11,So))),128)),r.hasMore?(zs(),Ks("div",{key:1,class:"sf-relation-dropdown-more",onClick:t[4]||(t[4]=e=>i.fetchResults(r.searchQuery,r.currentPage+1))}," Load more... ")):sr("v-if",!0)],512),[[Tr,r.dropdownVisible]])],512),[[Tr,i.showSearch]])]),i.fieldErrors.length?(zs(),Ks("ul",xo,[(zs(!0),Ks(Ms,null,In(i.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):sr("v-if",!0)],2)},ho.__file="src/editors/RelationEditor.vue";var ko={name:"SchemaEditor",components:{StringEditor:t,NumberEditor:_i,BooleanEditor:xi,SelectEditor:Ci,HiddenEditor:Pi,ObjectEditor:Ri,ArrayEditor:Li,NullableEditor:eo,UnionEditor:ro,RelationEditor:ho},props:{schema:{type:Object,required:!0},modelValue:{default:void 0},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],computed:{editorComponent(){const e=this.schema;return this.path.length>12?"StringEditor":"relation"===e.type?"RelationEditor":e.oneOf&&e.discriminator?"UnionEditor":"const"in e||e.enum&&1===e.enum.length&&"string"===e.type?"HiddenEditor":e._nullable?"NullableEditor":"object"===e.type&&e.properties?"ObjectEditor":"array"===e.type?"ArrayEditor":e.enum?"SelectEditor":"boolean"===e.type?"BooleanEditor":"number"===e.type||"integer"===e.type?"NumberEditor":"StringEditor"}}};ko.render=function(e,t,n,s,r,i){return zs(),Zs((o=i.editorComponent,y(o)?Tn(jn,o,!1)||o:o||$n),{schema:n.schema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]);var o},ko.__file="src/editors/SchemaEditor.vue";var Eo={name:"SchemaForm",components:{SchemaEditor:ko},props:{schema:{type:[Object,String],default:()=>({})},initialData:{default:void 0},errors:{type:Object,default:()=>({})}},emits:["change"],expose:["getValue"],data(){const e="string"==typeof this.schema?JSON.parse(this.schema):this.schema;return{rootSchema:e,defs:e.$defs||e.definitions||{},currentValue:null!=this.initialData?Ni(this.initialData):void 0}},computed:{resolvedSchema(){return this.resolveSchema(this.rootSchema)},formApi(){return{resolveSchema:e=>this.resolveSchema(e),getSchemaAtPath:e=>this.getSchemaAtPath(e),getErrorsForPath:e=>this.getErrorsForPath(e)}}},watch:{schema:{handler(e){const t="string"==typeof e?JSON.parse(e):e;this.rootSchema=t,this.defs=t.$defs||t.definitions||{}},deep:!0},initialData:{handler(e){this.currentValue=null!=e?Ni(e):void 0},deep:!0}},methods:{resolveSchema(e){if(!e)return{type:"string"};if(e.$ref){const t=e.$ref.replace(/^#\/\$defs\//,"").replace(/^#\/definitions\//,""),n=this.defs[t];if(!n)return{type:"string",title:t};const{$ref:s,...r}=e;return{...this.resolveSchema(n),...r}}if(e.anyOf){const t=e.anyOf.filter(e=>"null"!==e.type);if(e.anyOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}if(e.oneOf&&e.discriminator)return e;if(e.oneOf){const t=e.oneOf.filter(e=>"null"!==e.type);if(e.oneOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}return e},getSchemaAtPath(e){let t=this.resolveSchema(this.rootSchema);for(const n of e){if(!t)return null;if(t.properties&&t.properties[n])t=this.resolveSchema(t.properties[n]);else{if(!t.items)return null;t=this.resolveSchema(t.items)}}return t},onValueChange(e){this.currentValue=e,this.$emit("change",e)},getErrorsForPath(e){if(!this.errors||"object"!=typeof this.errors)return[];const t=e.join(".");return this.errors[t]||[]},getValue(){return this.currentValue}}};const wo={class:"structured-field-editor"};Eo.render=function(e,t,n,s,r,i){const o=Rn("SchemaEditor");return zs(),Ks("div",wo,[i.resolvedSchema?(zs(),Zs(o,{key:0,schema:i.resolvedSchema,"model-value":r.currentValue,path:[],form:i.formApi,"onUpdate:modelValue":i.onValueChange},null,8,["schema","model-value","form","onUpdate:modelValue"])):sr("v-if",!0)])},Eo.__file="src/SchemaForm.vue";const Co=function(e,t,n){let s=function(e,t){return v(e)?(()=>c({name:e.name},t,{setup:e}))():e}(e,t);E(s)&&(s=c({},s,t));class r extends ti{constructor(e){super(s,e,n)}}return r.def=s,r}({...Eo,shadowRoot:!1});return e.ArrayEditor=Li,e.BooleanEditor=xi,e.HiddenEditor=Pi,e.NullableEditor=eo,e.NumberEditor=_i,e.ObjectEditor=Ri,e.RelationEditor=ho,e.SchemaEditor=ko,e.SchemaForm=Eo,e.SchemaFormElement=Co,e.SelectEditor=Ci,e.StringEditor=t,e.UnionEditor=ro,e.registerCustomElement=function(e="schema-form"){customElements.get(e)||customElements.define(e,Co)},e}({});
|
|
25
|
+
let wr;const Ar="undefined"!=typeof window&&window.trustedTypes;if(Ar)try{wr=Ar.createPolicy("vue",{createHTML:e=>e})}catch(e){}const Vr=wr?e=>wr.createHTML(e):e=>e,Or="undefined"!=typeof document?document:null,Pr=Or&&Or.createElement("template"),jr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r="svg"===t?Or.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Or.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Or.createElement(e,{is:n}):Or.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>Or.createTextNode(e),createComment:e=>Or.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Or.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==o&&(r=r.nextSibling););else{Pr.innerHTML=Vr("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const r=Pr.content;if("svg"===s||"mathml"===s){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ir=Symbol("_vtc");const $r=Symbol("_vod"),Dr=Symbol("_vsh"),Rr={name:"show",beforeMount(e,{value:t},{transition:n}){e[$r]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Tr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Tr(e,!0),s.enter(e)):s.leave(e,()=>{Tr(e,!1)}):Tr(e,t))},beforeUnmount(e,{value:t}){Tr(e,t)}};function Tr(e,t){e.style.display=t?e[$r]:"none",e[Dr]=!t}const Fr=Symbol(""),Mr=/(?:^|;)\s*display\s*:/;const Nr=/\s*!important$/;function Ur(e,t,n){if(p(n))n.forEach(n=>Ur(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=qr[t];if(n)return n;let s=O(t);if("filter"!==s&&s in e)return qr[t]=s;s=I(s);for(let n=0;n<Lr.length;n++){const r=Lr[n]+s;if(r in e)return qr[t]=r}return t}(e,t);Nr.test(n)?e.setProperty(j(s),n.replace(Nr,""),"important"):e[s]=n}}const Lr=["Webkit","Moz","ms"],qr={};const zr="http://www.w3.org/1999/xlink";function Wr(e,t,n,s,r,o=K(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(zr,t.slice(6,t.length)):e.setAttributeNS(zr,t,n):null==n||o&&!Z(n)?e.removeAttribute(t):e.setAttribute(t,o?"":_(n)?String(n):n)}function Br(e,t,n,s,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Vr(n):n));const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const s="OPTION"===o?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return s===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let i=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=Z(n):null==n&&"string"===s?(n="",i=!0):"number"===s&&(n=0,i=!0)}try{e[t]=n}catch(e){}i&&e.removeAttribute(r||t)}function Hr(e,t,n,s){e.addEventListener(t,n,s)}const Kr=Symbol("_vei");function Zr(e,t,n,s,r=null){const o=e[Kr]||(e[Kr]={}),i=o[t];if(s&&i)i.value=s;else{const[n,l]=function(e){let t;if(Qr.test(e)){let n;for(t={};n=e.match(Qr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):j(e.slice(2));return[n,t]}(t);if(s){const i=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();jt(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Xr(),n}(s,r);Hr(e,n,i,l)}else i&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,i,l),o[t]=void 0)}}const Qr=/(?:Once|Passive|Capture)$/;let Jr=0;const Gr=Promise.resolve(),Xr=()=>Jr||(Gr.then(()=>Jr=0),Jr=Date.now());const Yr=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const eo={};const to="undefined"!=typeof HTMLElement?HTMLElement:class{};class no extends to{constructor(e,t={},n=vo){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==vo?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(c({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof no){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Ut(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:s}=e;let r;if(n&&!p(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=M(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,this._resolveProps(e),this.shadowRoot&&this._applyStyles(s),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>St(t[e])})}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):eo;const s=O(e);t&&this._numberProps&&this._numberProps[s]&&(n=M(n)),this._setProp(s,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,s=!1){if(t!==this._props[e]&&(this._dirty=!0,t===eo?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),s&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(j(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(j(e),t+""):t||this.removeAttribute(j(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),go(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=er(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,C(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),j(e)!==e&&t(j(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const s=this._nonce,r=this.shadowRoot,o=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let i=null;for(let l=e.length-1;l>=0;l--){const a=document.createElement("style");s&&a.setAttribute("nonce",s),a.textContent=e[l],r.insertBefore(a,i||o),i=a,0===l&&(n||this._styleAnchors.set(this._def,a),t&&this._styleAnchors.set(t,a))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const s=e[n],r=s.getAttribute("name")||"default",o=this._slots[r],i=s.parentNode;if(o)for(const e of o){if(t&&1===e.nodeType){const n=t+"-s",s=document.createTreeWalker(e,1);let r;for(e.setAttribute(n,"");r=s.nextNode();)r.setAttribute(n,"")}i.insertBefore(e,s)}else for(;s.firstChild;)i.insertBefore(s.firstChild,s);i.removeChild(s)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}const so=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>R(t,e):t};function ro(e){e.target.composing=!0}function oo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const io=Symbol("_assign");function lo(e,t,n){return t&&(e=e.trim()),n&&(e=F(e)),e}const ao={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[io]=so(r);const o=s||r.props&&"number"===r.props.type;Hr(e,t?"change":"input",t=>{t.target.composing||e[io](lo(e.value,n,o))}),(n||o)&&Hr(e,"change",()=>{e.value=lo(e.value,n,o)}),t||(Hr(e,"compositionstart",ro),Hr(e,"compositionend",oo),Hr(e,"change",oo))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[io]=so(i),e.composing)return;const l=null==t?"":t;if((!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:F(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},co=["ctrl","shift","alt","meta"],uo={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>co.some(n=>e[`${n}Key`]&&!t.includes(n))},ho=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(n,...s)=>{for(let e=0;e<t.length;e++){const s=uo[t[e]];if(s&&s(n,t))return}return e(n,...s)})},po=c({patchProp:(e,t,n,s,r,o)=>{const i="svg"===r;"class"===t?function(e,t,n){const s=e[Ir];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,i):"style"===t?function(e,t,n){const s=e.style,r=y(n);let o=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Ur(s,t,"")}else for(const e in t)null==n[e]&&Ur(s,e,"");for(const e in n)"display"===e&&(o=!0),Ur(s,e,n[e])}else if(r){if(t!==n){const e=s[Fr];e&&(n+=";"+e),s.cssText=n,o=Mr.test(n)}}else t&&e.removeAttribute("style");$r in e&&(e[$r]=o?s.display:"",e[Dr]&&(s.display="none"))}(e,n,s):l(t)?a(t)||Zr(e,t,0,s,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&Yr(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Yr(t)&&y(n))return!1;return t in e}(e,t,s,i))?(Br(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Wr(e,t,s,i,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=O(t);return Array.isArray(n)?n.some(e=>O(e)===s):Object.keys(n).some(e=>O(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(s)))?Br(e,O(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Wr(e,t,s,i))}},jr);let fo;function mo(){return fo||(fo=Os(po))}const go=(...e)=>{mo().render(...e)},vo=(...e)=>{const t=mo().createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){if(y(e)){return document.querySelector(e)}return e}(e);if(!s)return;const r=t._component;v(r)||r.render||r.template||(r.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const o=n(s,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};const yo=["value","placeholder"],_o=["value","placeholder"],bo={key:2,class:"errorlist"};t.render=function(e,t,n,s,r,o){return zs(),Ks("div",{class:H(["sf-field",{errors:o.fieldErrors.length}])},[Ys("label",{class:H(["sf-label",{required:o.isRequired}])},G(o.title),3),o.isLong?(zs(),Ks("textarea",{key:0,class:"sf-input sf-textarea",rows:"3",value:n.modelValue,placeholder:n.schema.placeholder||"",onInput:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},null,40,yo)):(zs(),Ks("input",{key:1,type:"text",class:"sf-input",value:null!=n.modelValue?String(n.modelValue):"",placeholder:n.schema.placeholder||"",onInput:t[1]||(t[1]=t=>e.$emit("update:modelValue",t.target.value))},null,40,_o)),o.fieldErrors.length?(zs(),Ks("ul",bo,[(zs(!0),Ks(Fs,null,Tn(o.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):rr("v-if",!0)],2)},t.__file="src/editors/StringEditor.vue";var So={name:"NumberEditor",props:{schema:{type:Object,required:!0},modelValue:{default:0},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onInput(e){const t=e.target.value;""===t?this.$emit("update:modelValue",0):this.$emit("update:modelValue","integer"===this.schema.type?parseInt(t,10):parseFloat(t))}}};const xo=["step","min","max","value"],ko={key:0,class:"errorlist"};So.render=function(e,t,n,s,r,o){return zs(),Ks("div",{class:H(["sf-field",{errors:o.fieldErrors.length}])},[Ys("label",{class:H(["sf-label",{required:o.isRequired}])},G(o.title),3),Ys("input",{type:"number",class:"sf-input",step:"integer"===n.schema.type?"1":"any",min:null!=n.schema.minimum?String(n.schema.minimum):void 0,max:null!=n.schema.maximum?String(n.schema.maximum):void 0,value:null!=n.modelValue?n.modelValue:"",onInput:t[0]||(t[0]=(...e)=>o.onInput&&o.onInput(...e))},null,40,xo),o.fieldErrors.length?(zs(),Ks("ul",ko,[(zs(!0),Ks(Fs,null,Tn(o.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):rr("v-if",!0)],2)},So.__file="src/editors/NumberEditor.vue";var Co={name:"BooleanEditor",props:{schema:{type:Object,required:!0},modelValue:{default:!1},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Eo={class:"sf-checkbox-label"},wo=["checked"],Ao={key:0,class:"errorlist"};Co.render=function(e,t,n,s,r,o){return zs(),Ks("div",{class:H(["sf-field sf-field-boolean",{errors:o.fieldErrors.length}])},[Ys("label",Eo,[Ys("input",{type:"checkbox",class:"sf-checkbox",checked:!!n.modelValue,onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.checked))},null,40,wo),nr(" "+G(o.title),1)]),o.fieldErrors.length?(zs(),Ks("ul",Ao,[(zs(!0),Ks(Fs,null,Tn(o.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):rr("v-if",!0)],2)},Co.__file="src/editors/BooleanEditor.vue";var Vo={name:"SelectEditor",props:{schema:{type:Object,required:!0},modelValue:{default:""},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Oo=["value"],Po=["value"],jo={key:0,class:"errorlist"};Vo.render=function(e,t,n,s,r,o){return zs(),Ks("div",{class:H(["sf-field",{errors:o.fieldErrors.length}])},[Ys("label",{class:H(["sf-label",{required:o.isRequired}])},G(o.title),3),Ys("select",{class:"sf-input sf-select",value:null!=n.modelValue?String(n.modelValue):"",onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},[(zs(!0),Ks(Fs,null,Tn(n.schema.enum||[],e=>(zs(),Ks("option",{key:e,value:String(e)},G(e),9,Po))),128))],40,Oo),o.fieldErrors.length?(zs(),Ks("ul",jo,[(zs(!0),Ks(Fs,null,Tn(o.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):rr("v-if",!0)],2)},Vo.__file="src/editors/SelectEditor.vue";var Io={name:"HiddenEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{resolvedValue(){return"const"in this.schema?this.schema.const:this.schema.enum&&1===this.schema.enum.length?this.schema.enum[0]:this.modelValue}},mounted(){this.resolvedValue!==this.modelValue&&this.$emit("update:modelValue",this.resolvedValue)},methods:{getValue(){return this.resolvedValue}}};const $o={style:{display:"none"}};Io.render=function(e,t,n,s,r,o){return zs(),Ks("div",$o)},Io.__file="src/editors/HiddenEditor.vue";var Do={name:"SfIcon",props:{name:{type:String,required:!0},size:{type:[Number,String],default:14}}};const Ro=["width","height"],To={key:4,points:"6 9 12 15 18 9"},Fo={key:5,points:"18 15 12 9 6 15"};Do.render=function(e,t,n,s,r,o){return zs(),Ks("svg",{class:"sf-icon",width:n.size,height:n.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},["plus"===n.name?(zs(),Ks(Fs,{key:0},[t[0]||(t[0]=Ys("line",{x1:"12",y1:"5",x2:"12",y2:"19"},null,-1)),t[1]||(t[1]=Ys("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1))],64)):"times"===n.name?(zs(),Ks(Fs,{key:1},[t[2]||(t[2]=Ys("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)),t[3]||(t[3]=Ys("line",{x1:"6",y1:"18",x2:"18",y2:"6"},null,-1))],64)):"arrow-up"===n.name?(zs(),Ks(Fs,{key:2},[t[4]||(t[4]=Ys("line",{x1:"12",y1:"19",x2:"12",y2:"5"},null,-1)),t[5]||(t[5]=Ys("polyline",{points:"5 12 12 5 19 12"},null,-1))],64)):"arrow-down"===n.name?(zs(),Ks(Fs,{key:3},[t[6]||(t[6]=Ys("line",{x1:"12",y1:"5",x2:"12",y2:"19"},null,-1)),t[7]||(t[7]=Ys("polyline",{points:"19 12 12 19 5 12"},null,-1))],64)):"chevron-down"===n.name?(zs(),Ks("polyline",To)):"chevron-up"===n.name?(zs(),Ks("polyline",Fo)):"grip"===n.name?(zs(),Ks(Fs,{key:6},[t[8]||(t[8]=sr('<circle cx="9" cy="7" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="7" r="1" fill="currentColor" stroke="none"></circle><circle cx="9" cy="12" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="12" r="1" fill="currentColor" stroke="none"></circle><circle cx="9" cy="17" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="17" r="1" fill="currentColor" stroke="none"></circle>',6))],64)):rr("v-if",!0)],8,Ro)},Do.__file="src/editors/SfIcon.vue";var Mo={name:"ObjectEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=Di,this.$options.components.SfIcon=Do},props:{schema:{type:Object,required:!0},modelValue:{default:()=>({})},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data:()=>({collapsed:!1}),computed:{isRoot(){return 0===this.path.length},title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},summary(){const e=this.modelValue||{},t=[];for(const n of Object.keys(this.schema.properties||{})){if(t.length>=3)break;const s=e[n];null!=s&&""!==s&&"object"!=typeof s&&t.push(String(s))}return t.join(" · ")}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",collapse(){this.collapsed=!0},expand(){this.collapsed=!1},onChildChange(e,t){const n={...this.modelValue||{},[e]:t};this.$emit("update:modelValue",n)}}};const No={key:0,class:"sf-object sf-object-root"},Uo={class:"sf-object-fields"},Lo={class:"sf-object-title"},qo=["aria-label"],zo={class:"sf-object-title-text"},Wo={key:0,class:"sf-object-summary"},Bo={class:"sf-object-fields"};function Ho(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Ho);const t={};for(const n of Object.keys(e))t[n]=Ho(e[n]);return t}function Ko(e){if("default"in e)return Ho(e.default);if("object"===e.type){const t={};for(const[n,s]of Object.entries(e.properties||{}))"default"in s?t[n]=Ho(s.default):"string"===s.type?t[n]="":"integer"===s.type||"number"===s.type?t[n]=0:"boolean"===s.type?t[n]=!1:"array"===s.type&&(t[n]=[]);return t}return"array"===e.type?[]:"string"===e.type?"":"integer"===e.type||"number"===e.type?0:"boolean"!==e.type&&("relation"===e.type&&e.multiple?[]:null)}Mo.render=function(e,t,n,s,r,o){const i=In("SchemaEditor"),l=In("SfIcon");return o.isRoot?(zs(),Ks("div",No,[Ys("div",Uo,[(zs(!0),Ks(Fs,null,Tn(n.schema.properties||{},(e,t)=>(zs(),Zs(i,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>o.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))])])):(zs(),Ks("fieldset",{key:1,class:H(["sf-object",{"sf-object-collapsed":r.collapsed}])},[Ys("legend",Lo,[Ys("button",{type:"button",class:"sf-collapse-btn","aria-label":r.collapsed?"Expand":"Collapse",onClick:t[0]||(t[0]=e=>r.collapsed=!r.collapsed)},[er(l,{name:r.collapsed?"chevron-down":"chevron-up",size:12},null,8,["name"])],8,qo),Ys("span",zo,G(o.title),1),r.collapsed&&o.summary?(zs(),Ks("span",Wo,G(o.summary),1)):rr("v-if",!0)]),Jt(Ys("div",Bo,[(zs(!0),Ks(Fs,null,Tn(n.schema.properties||{},(e,t)=>(zs(),Zs(i,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>o.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))],512),[[Rr,!r.collapsed]])],2))},Mo.__file="src/editors/ObjectEditor.vue";let Zo=0;var Qo={name:"ArrayEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=Di,this.$options.components.SfIcon=Do},props:{schema:{type:Object,required:!0},modelValue:{default:()=>[]},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){return{items:(Array.isArray(this.modelValue)?this.modelValue:[]).map(e=>({_key:Zo++,value:e})),dragSourceIndex:null,dragOverIndex:null,allCollapsed:!1}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},itemSchema(){return this.form.resolveSchema(this.schema.items||{})},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",addItem(){const e=Ko(this.itemSchema);this.items.push({_key:Zo++,value:e}),this.emitValue()},removeItem(e){this.items.splice(e,1),this.emitValue()},moveItem(e,t){const n=e+t;if(n<0||n>=this.items.length)return;const s=this.items[e];this.items.splice(e,1,this.items[n]),this.items.splice(n,1,s),this.emitValue()},onItemChange(e,t){this.items[e].value=t,this.emitValue()},onDragStart(e,t){this.dragSourceIndex=e,t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",String(e))},onDragOver(e){null!==this.dragSourceIndex&&e!==this.dragSourceIndex&&(this.dragOverIndex=e)},onDragLeave(e){this.dragOverIndex===e&&(this.dragOverIndex=null)},onDrop(e){if(null===this.dragSourceIndex||this.dragSourceIndex===e)return;const t=this.items.splice(this.dragSourceIndex,1)[0];this.items.splice(e,0,t),this.dragSourceIndex=null,this.dragOverIndex=null,this.emitValue()},onDragEnd(){this.dragSourceIndex=null,this.dragOverIndex=null},toggleCollapseAll(){this.allCollapsed=!this.allCollapsed;const e=this.$refs.itemEditors;if(!e)return;const t=Array.isArray(e)?e:[e];this.allCollapsed?t.forEach(e=>e?.collapseAll?.()):t.forEach(e=>e?.expandAll?.())},emitValue(){this.$emit("update:modelValue",this.items.map(e=>e.value))}}};const Jo={class:"sf-array-header"},Go={class:"sf-label"},Xo={class:"sf-array-count"},Yo=["title"],ei={class:"sf-array-items"},ti=["onDragstart","onDragover","onDragleave","onDrop"],ni={class:"sf-array-item-header"},si={class:"sf-array-item-left"},ri={class:"sf-drag-handle",title:"Drag to reorder"},oi={class:"sf-array-item-index"},ii={class:"sf-array-item-actions"},li=["onClick"],ai=["onClick"],ci=["onClick"],ui=["onDrop"],hi={key:0,class:"errorlist"};Qo.render=function(e,t,n,s,r,o){const i=In("SfIcon"),l=In("SchemaEditor");return zs(),Ks("div",{class:H(["sf-array",{errors:o.fieldErrors.length}])},[Ys("div",Jo,[Ys("span",Go,G(o.title),1),Ys("span",Xo,G(r.items.length),1),Ys("button",{type:"button",class:"sf-btn sf-btn-add",onClick:t[0]||(t[0]=e=>o.addItem())},[er(i,{name:"plus"}),t[4]||(t[4]=nr(" Add ",-1))]),r.items.length?(zs(),Ks("span",{key:0,class:"sf-array-collapse-toggle",title:r.allCollapsed?"Expand all":"Collapse all",onClick:t[1]||(t[1]=(...e)=>o.toggleCollapseAll&&o.toggleCollapseAll(...e))},[er(i,{name:r.allCollapsed?"chevron-down":"chevron-up"},null,8,["name"])],8,Yo)):rr("v-if",!0)]),Ys("div",ei,[(zs(!0),Ks(Fs,null,Tn(r.items,(e,s)=>(zs(),Ks("div",{key:e._key,class:H(["sf-array-item",{"sf-drag-over":r.dragOverIndex===s,"sf-dragging":r.dragSourceIndex===s}]),draggable:"true",onDragstart:e=>o.onDragStart(s,e),onDragover:ho(e=>o.onDragOver(s),["prevent"]),onDragleave:e=>o.onDragLeave(s),onDrop:ho(e=>o.onDrop(s),["prevent"]),onDragend:t[3]||(t[3]=(...e)=>o.onDragEnd&&o.onDragEnd(...e))},[Ys("div",ni,[Ys("div",si,[Ys("span",ri,[er(i,{name:"grip"})]),Ys("span",oi,"#"+G(s+1),1)]),Ys("div",ii,[s>0?(zs(),Ks("button",{key:0,type:"button",class:"sf-btn sf-btn-sm",onClick:e=>o.moveItem(s,-1)},[er(i,{name:"arrow-up"})],8,li)):rr("v-if",!0),s<r.items.length-1?(zs(),Ks("button",{key:1,type:"button",class:"sf-btn sf-btn-sm",onClick:e=>o.moveItem(s,1)},[er(i,{name:"arrow-down"})],8,ai)):rr("v-if",!0),Ys("button",{type:"button",class:"sf-btn sf-btn-sm sf-btn-danger",onClick:e=>o.removeItem(s)},[er(i,{name:"times"})],8,ci)])]),Ys("div",{class:"sf-array-item-body",onDragover:t[2]||(t[2]=ho(()=>{},["prevent"])),onDrop:ho(e=>o.onDrop(s),["prevent"])},[er(l,{ref_for:!0,ref:"itemEditors",schema:o.itemSchema,"model-value":e.value,path:[...n.path,String(s)],form:n.form,"onUpdate:modelValue":e=>o.onItemChange(s,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"])],40,ui)],42,ti))),128))]),o.fieldErrors.length?(zs(),Ks("ul",hi,[(zs(!0),Ks(Fs,null,Tn(o.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):rr("v-if",!0)],2)},Qo.__file="src/editors/ArrayEditor.vue";var di={name:"NullableEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=Di,this.$options.components.SfIcon=Do},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){return{isNull:null===this.modelValue||void 0===this.modelValue}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},innerSchema(){const e={...this.schema};return delete e._nullable,e},toggleClass(){return this.isNull?"sf-btn sf-btn-sm sf-btn-add":"sf-btn sf-btn-sm sf-btn-danger"},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},watch:{modelValue(e){this.isNull=null==e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",toggle(){this.isNull?(this.isNull=!1,this.$emit("update:modelValue",Ko(this.innerSchema))):(this.isNull=!0,this.$emit("update:modelValue",null))}}};const pi={class:"sf-nullable-header"},fi={class:"sf-nullable-body"},mi={key:0,class:"errorlist"};di.render=function(e,t,n,s,r,o){const i=In("SfIcon"),l=In("SchemaEditor");return zs(),Ks("div",{class:H(["sf-nullable",{errors:o.fieldErrors.length}])},[Ys("div",pi,[Ys("label",{class:H(["sf-label",{required:o.isRequired}])},G(o.title),3),Ys("button",{type:"button",class:H(o.toggleClass),onClick:t[0]||(t[0]=(...e)=>o.toggle&&o.toggle(...e))},[r.isNull?(zs(),Ks(Fs,{key:0},[er(i,{name:"plus"}),t[2]||(t[2]=nr(" Add ",-1))],64)):(zs(),Ks(Fs,{key:1},[er(i,{name:"times"}),t[3]||(t[3]=nr(" Remove ",-1))],64))],2)]),Ys("div",fi,[r.isNull?rr("v-if",!0):(zs(),Zs(l,{key:0,schema:o.innerSchema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]))]),o.fieldErrors.length?(zs(),Ks("ul",mi,[(zs(!0),Ks(Fs,null,Tn(o.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):rr("v-if",!0)],2)},di.__file="src/editors/NullableEditor.vue";var gi={name:"UnionEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=Di},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){const e=this.schema.discriminator.propertyName,t=this.schema.discriminator.mapping;return{discriminatorProp:e,mapping:t,currentType:this.modelValue?this.modelValue[e]:Object.keys(t)[0]}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},typeKeys(){return Object.keys(this.mapping)},currentSchema(){const e=this.mapping[this.currentType];return this.form.resolveSchema({$ref:e})},innerValue(){if(this.modelValue&&this.modelValue[this.discriminatorProp]===this.currentType)return this.modelValue;const e=Ko(this.currentSchema);return e[this.discriminatorProp]=this.currentType,e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onTypeChange(e){this.currentType=e.target.value;const t=Ko(this.currentSchema);t[this.discriminatorProp]=this.currentType,this.$emit("update:modelValue",t)},onInnerChange(e){e&&(e[this.discriminatorProp]=this.currentType),this.$emit("update:modelValue",e)}}};const vi={class:"sf-union"},yi={class:"sf-field"},_i={class:"sf-label"},bi=["value"],Si=["value"],xi={class:"sf-union-body"};gi.render=function(e,t,n,s,r,o){const i=In("SchemaEditor");return zs(),Ks("div",vi,[Ys("div",yi,[Ys("label",_i,G(o.title),1),Ys("select",{class:"sf-input sf-select",value:r.currentType,onChange:t[0]||(t[0]=(...e)=>o.onTypeChange&&o.onTypeChange(...e))},[(zs(!0),Ks(Fs,null,Tn(o.typeKeys,e=>(zs(),Ks("option",{key:e,value:e},G(o.humanize(e)),9,Si))),128))],40,bi)]),Ys("div",xi,[(zs(),Zs(i,{key:r.currentType,schema:o.currentSchema,"model-value":o.innerValue,path:n.path,form:n.form,"onUpdate:modelValue":o.onInnerChange},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))])])},gi.__file="src/editors/UnionEditor.vue";var ki={name:"RelationEditor",components:{SfIcon:Do},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){const e=!!this.schema.multiple,t=this.modelValue;let n;return n=e?Array.isArray(t)?[...t]:[]:t?[t]:[],{isMultiple:e,allowClear:this.schema.options?.select2?.allowClear??!0,placeholder:this.schema.options?.select2?.placeholder||"Search...",searchUrl:this.schema.options?.select2?.ajax?.url||"",selected:n,dropdownVisible:!1,searchResults:[],currentPage:1,hasMore:!1,loading:!1,highlightIndex:-1,searchQuery:""}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},showSearch(){return!(!this.isMultiple&&this.selected.length>0)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]},filteredResults(){const e=new Set(this.selected.map(e=>this.itemKey(e)));return this.searchResults.filter(t=>!e.has(this.itemKey(t)))}},created(){this._doSearch=function(e,t){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>e.apply(this,s),t)}}(e=>this.fetchResults(e,1),300),this._onDocClick=e=>{this.$refs.root&&!this.$refs.root.contains(e.target)&&this.closeDropdown()}},mounted(){document.addEventListener("click",this._onDocClick)},beforeUnmount(){document.removeEventListener("click",this._onDocClick)},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",getDisplayName(e){if(!e)return"";for(const t of["__str__","name","title","label"])if(e[t])return String(e[t]);return`#${e.id||"?"}`},itemKey:e=>`${e.id}-${e.model||""}`,onSearchInput(){this._doSearch(this.searchQuery)},openDropdown(){this.dropdownVisible||(this.dropdownVisible=!0,this.fetchResults(this.searchQuery,1))},closeDropdown(){this.dropdownVisible=!1,this.highlightIndex=-1},async fetchResults(e,t){if(this.searchUrl){this.loading=!0,this.currentPage=t;try{const n=new URL(this.searchUrl,window.location.origin);n.searchParams.set("_q",e||""),n.searchParams.set("page",String(t));const s=await fetch(n,{credentials:"same-origin"});if(!s.ok)return;const r=await s.json();this.searchResults=1===t?r.items||[]:this.searchResults.concat(r.items||[]),this.hasMore=r.more}finally{this.loading=!1}}},handleKeyDown(e){this.filteredResults.length&&("ArrowDown"===e.key?(e.preventDefault(),this.highlightIndex=Math.min(this.highlightIndex+1,this.filteredResults.length-1)):"ArrowUp"===e.key?(e.preventDefault(),this.highlightIndex=Math.max(this.highlightIndex-1,0)):"Enter"===e.key?(e.preventDefault(),this.highlightIndex>=0&&this.highlightIndex<this.filteredResults.length&&this.selectItem(this.filteredResults[this.highlightIndex])):"Escape"===e.key&&this.closeDropdown())},selectItem(e){this.isMultiple?this.selected.push(e):this.selected=[e],this.searchQuery="",this.highlightIndex=-1,this.closeDropdown(),this.emitValue()},removeItem(e){this.selected=this.selected.filter(t=>!(t.id===e.id&&(t.model||"")===(e.model||""))),this.emitValue()},emitValue(){this.isMultiple?this.$emit("update:modelValue",[...this.selected]):this.$emit("update:modelValue",this.selected[0]||null)}}};const Ci={class:"sf-relation-wrapper"},Ei={key:0,class:"sf-relation-selected"},wi={class:"sf-relation-tag-text"},Ai=["onClick"],Vi={class:"sf-relation-search"},Oi=["placeholder"],Pi={class:"sf-relation-dropdown"},ji={key:0,class:"sf-relation-dropdown-empty"},Ii=["onClick"],$i={key:0,class:"errorlist"};ki.render=function(e,t,n,s,r,o){const i=In("SfIcon");return zs(),Ks("div",{class:H(["sf-field sf-relation",{errors:o.fieldErrors.length}]),ref:"root"},[Ys("label",{class:H(["sf-label",{required:o.isRequired}])},G(o.title),3),Ys("div",Ci,[rr(" Selected items "),r.selected.length?(zs(),Ks("div",Ei,[(zs(!0),Ks(Fs,null,Tn(r.selected,e=>(zs(),Ks("div",{key:o.itemKey(e),class:"sf-relation-tag"},[Ys("span",wi,G(o.getDisplayName(e)),1),r.isMultiple||r.allowClear?(zs(),Ks("button",{key:0,type:"button",class:"sf-relation-tag-remove",onClick:ho(t=>o.removeItem(e),["stop"])},[er(i,{name:"times"})],8,Ai)):rr("v-if",!0)]))),128))])):rr("v-if",!0),rr(" Search box "),Jt(Ys("div",Vi,[Jt(Ys("input",{ref:"searchInput",type:"text",class:"sf-input sf-relation-input",placeholder:r.placeholder,autocomplete:"off","onUpdate:modelValue":t[0]||(t[0]=e=>r.searchQuery=e),onInput:t[1]||(t[1]=(...e)=>o.onSearchInput&&o.onSearchInput(...e)),onFocus:t[2]||(t[2]=(...e)=>o.openDropdown&&o.openDropdown(...e)),onKeydown:t[3]||(t[3]=(...e)=>o.handleKeyDown&&o.handleKeyDown(...e))},null,40,Oi),[[ao,r.searchQuery]]),rr(" Dropdown "),Jt(Ys("div",Pi,[0!==o.filteredResults.length||r.loading?rr("v-if",!0):(zs(),Ks("div",ji," No results found ")),(zs(!0),Ks(Fs,null,Tn(o.filteredResults,(e,t)=>(zs(),Ks("div",{key:o.itemKey(e),class:H(["sf-relation-dropdown-item",{highlighted:t===r.highlightIndex}]),onClick:t=>o.selectItem(e)},G(o.getDisplayName(e)),11,Ii))),128)),r.hasMore?(zs(),Ks("div",{key:1,class:"sf-relation-dropdown-more",onClick:t[4]||(t[4]=e=>o.fetchResults(r.searchQuery,r.currentPage+1))}," Load more... ")):rr("v-if",!0)],512),[[Rr,r.dropdownVisible]])],512),[[Rr,o.showSearch]])]),o.fieldErrors.length?(zs(),Ks("ul",$i,[(zs(!0),Ks(Fs,null,Tn(o.fieldErrors,(e,t)=>(zs(),Ks("li",{key:t},G(e),1))),128))])):rr("v-if",!0)],2)},ki.__file="src/editors/RelationEditor.vue";var Di={name:"SchemaEditor",components:{StringEditor:t,NumberEditor:So,BooleanEditor:Co,SelectEditor:Vo,HiddenEditor:Io,ObjectEditor:Mo,ArrayEditor:Qo,NullableEditor:di,UnionEditor:gi,RelationEditor:ki},props:{schema:{type:Object,required:!0},modelValue:{default:void 0},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],methods:{collapseAll(){const e=this.$refs.editor;e?.collapse&&e.collapse(),e?.collapseAll&&e.collapseAll()},expandAll(){const e=this.$refs.editor;e?.expand&&e.expand(),e?.expandAll&&e.expandAll()}},computed:{editorComponent(){const e=this.schema;return this.path.length>12?"StringEditor":"relation"===e.type?"RelationEditor":e.oneOf&&e.discriminator?"UnionEditor":"const"in e||e.enum&&1===e.enum.length&&"string"===e.type?"HiddenEditor":e._nullable?"NullableEditor":"object"===e.type&&e.properties?"ObjectEditor":"array"===e.type?"ArrayEditor":e.enum?"SelectEditor":"boolean"===e.type?"BooleanEditor":"number"===e.type||"integer"===e.type?"NumberEditor":"StringEditor"}}};Di.render=function(e,t,n,s,r,o){return zs(),Zs((i=o.editorComponent,y(i)?Dn(jn,i,!1)||i:i||$n),{ref:"editor",schema:n.schema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]);var i},Di.__file="src/editors/SchemaEditor.vue";var Ri={name:"SchemaForm",components:{SchemaEditor:Di},props:{schema:{type:[Object,String],default:()=>({})},initialData:{default:void 0},errors:{type:Object,default:()=>({})}},emits:["change"],expose:["getValue"],data(){const e="string"==typeof this.schema?JSON.parse(this.schema):this.schema;return{rootSchema:e,defs:e.$defs||e.definitions||{},currentValue:null!=this.initialData?Ho(this.initialData):void 0}},computed:{resolvedSchema(){return this.resolveSchema(this.rootSchema)},formApi(){return{resolveSchema:e=>this.resolveSchema(e),getSchemaAtPath:e=>this.getSchemaAtPath(e),getErrorsForPath:e=>this.getErrorsForPath(e)}}},watch:{schema:{handler(e){const t="string"==typeof e?JSON.parse(e):e;this.rootSchema=t,this.defs=t.$defs||t.definitions||{}},deep:!0},initialData:{handler(e){this.currentValue=null!=e?Ho(e):void 0},deep:!0}},methods:{resolveSchema(e){if(!e)return{type:"string"};if(e.$ref){const t=e.$ref.replace(/^#\/\$defs\//,"").replace(/^#\/definitions\//,""),n=this.defs[t];if(!n)return{type:"string",title:t};const{$ref:s,...r}=e;return{...this.resolveSchema(n),...r}}if(e.anyOf){const t=e.anyOf.filter(e=>"null"!==e.type);if(e.anyOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}if(e.oneOf&&e.discriminator)return e;if(e.oneOf){const t=e.oneOf.filter(e=>"null"!==e.type);if(e.oneOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}return e},getSchemaAtPath(e){let t=this.resolveSchema(this.rootSchema);for(const n of e){if(!t)return null;if(t.properties&&t.properties[n])t=this.resolveSchema(t.properties[n]);else{if(!t.items)return null;t=this.resolveSchema(t.items)}}return t},onValueChange(e){this.currentValue=e,this.$emit("change",e)},getErrorsForPath(e){if(!this.errors||"object"!=typeof this.errors)return[];const t=e.join(".");return this.errors[t]||[]},getValue(){return this.currentValue}}};const Ti={class:"structured-field-editor"};Ri.render=function(e,t,n,s,r,o){const i=In("SchemaEditor");return zs(),Ks("div",Ti,[o.resolvedSchema?(zs(),Zs(i,{key:0,schema:o.resolvedSchema,"model-value":r.currentValue,path:[],form:o.formApi,"onUpdate:modelValue":o.onValueChange},null,8,["schema","model-value","form","onUpdate:modelValue"])):rr("v-if",!0)])},Ri.__file="src/SchemaForm.vue";const Fi=function(e,t,n){let s=function(e,t){return v(e)?(()=>c({name:e.name},t,{setup:e}))():e}(e,t);C(s)&&(s=c({},s,t));class r extends no{constructor(e){super(s,e,n)}}return r.def=s,r}({...Ri,shadowRoot:!1});return e.ArrayEditor=Qo,e.BooleanEditor=Co,e.HiddenEditor=Io,e.NullableEditor=di,e.NumberEditor=So,e.ObjectEditor=Mo,e.RelationEditor=ki,e.SchemaEditor=Di,e.SchemaForm=Ri,e.SchemaFormElement=Fi,e.SelectEditor=Vo,e.StringEditor=t,e.UnionEditor=gi,e.registerCustomElement=function(e="schema-form"){customElements.get(e)||customElements.define(e,Fi)},e}({});
|
|
26
26
|
//# sourceMappingURL=structured-widget-editor.js.map
|