small-package/luci-app-linkease/htdocs/luci-static/linkeasefile/chunk.dc0a1b58.js

21 lines
77 KiB
JavaScript
Raw Normal View History

2022-11-09 20:26:02 +08:00
var ql=Object.defineProperty,Xl=Object.defineProperties;var Ql=Object.getOwnPropertyDescriptors;var Ft=Object.getOwnPropertySymbols;var Zl=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable;var Nt=(e,t,l)=>t in e?ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,ae=(e,t)=>{for(var l in t||(t={}))Zl.call(t,l)&&Nt(e,l,t[l]);if(Ft)for(var l of Ft(t))Jl.call(t,l)&&Nt(e,l,t[l]);return e},Re=(e,t)=>Xl(e,Ql(t));var xe=(e,t,l)=>new Promise((n,s)=>{var i=o=>{try{r(l.next(o))}catch(a){s(a)}},c=o=>{try{r(l.throw(o))}catch(a){s(a)}},r=o=>o.done?n(o.value):Promise.resolve(o.value).then(i,c);r((l=l.apply(e,t)).next())});import{a as Te,bf as en,a$ as Xt,aj as tn,aD as me,n as $,am as Qt,ae as lt,ag as rt,c as it,af as At,bj as Ht,r as x,ak as Je,bv as ln,bw as nn,w as ce,ap as Zt,as as le,o as Ae,e as pe,b1 as Jt,h as ie,q as z,t as Se,x as q,y as _,P as ke,ax as et,A as C,F as j,aW as Ke,z as P,S as Me,I as Oe,a3 as Be,a4 as oe,C as we,L as el,_ as je,R as Le,aC as tl,aE as ll,Y as nl,aF as yt,bu as _e,au as on,j as sn,bx as $t,a2 as Ct,E as wt,aN as an,by as rn,u as ol,a1 as he,bz as sl,v as X,O as Wt,a_ as al,p as nt,b7 as un,bA as St,bB as rl,bC as Ye,bD as ut,ay as T,bE as Mt,bF as Ie,V as Tt,b6 as Ot,Q as Bt,bG as cn,H as il,ar as dn,bd as fn,aG as hn,Z as vn,az as pn,a9 as Pt,aB as mn,aa as zt,a7 as ul,a0 as gn,$ as bn}from"./index.js";import{y as yn,b as Cn,E as wn}from"./chunk.a6a47e72.js";import{d as tt}from"./chunk.22632dc4.js";const Ee=new Map;let Dt;Te&&(document.addEventListener("mousedown",e=>Dt=e),document.addEventListener("mouseup",e=>{for(const t of Ee.values())for(const{documentHandler:l}of t)l(e,Dt)}));function It(e,t){let l=[];return Array.isArray(t.arg)?l=t.arg:en(t.arg)&&l.push(t.arg),function(n,s){const i=t.instance.popperRef,c=n.target,r=s==null?void 0:s.target,o=!t||!t.instance,a=!c||!r,u=e.contains(c)||e.contains(r),h=e===c,d=l.length&&l.some(f=>f==null?void 0:f.contains(c))||l.length&&l.includes(r),p=i&&(i.contains(c)||i.contains(r));o||a||u||h||d||p||t.value(n,s)}}const Sn={beforeMount(e,t){Ee.has(e)||Ee.set(e,[]),Ee.get(e).push({documentHandler:It(e,t),bindingFn:t.value})},updated(e,t){Ee.has(e)||Ee.set(e,[]);const l=Ee.get(e),n=l.findIndex(i=>i.bindingFn===t.oldValue),s={documentHandler:It(e,t),bindingFn:t.value};n>=0?l.splice(n,1,s):l.push(s)},unmounted(e){Ee.delete(e)}};var Vt=!1,Fe,ct,dt,Ue,qe,cl,Xe,ft,ht,vt,dl,pt,mt,fl,hl;function re(){if(!Vt){Vt=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),l=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(pt=/\b(iPhone|iP[ao]d)/.exec(e),mt=/\b(iP[ao]d)/.exec(e),vt=/Android/i.exec(e),fl=/FBAN\/\w+;/i.exec(e),hl=/Mobile/i.exec(e),dl=!!/Win64/.exec(e),t){Fe=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Fe&&document&&document.documentMode&&(Fe=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);cl=n?parseFloat(n[1])+4:Fe,ct=t[2]?parseFloat(t[2]):NaN,dt=t[3]?parseFloat(t[3]):NaN,Ue=t[4]?parseFloat(t[4]):NaN,Ue?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),qe=t&&t[1]?parseFloat(t[1]):NaN):qe=NaN}else Fe=ct=dt=qe=Ue=NaN;if(l){if(l[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Xe=s?parseFloat(s[1].replace("_",".")):!0}else Xe=!1;ft=!!l[2],ht=!!l[3]}else Xe=ft=ht=!1}}var gt={ie:function(){return re()||Fe},ieCompatibilityMode:function(){return re()||cl>Fe},ie64:function(){return gt.ie()&&dl},firefox:function(){return re()||ct},opera:function(){return re()||dt},webkit:function(){return re()||Ue},safari:function(){return gt.webkit()},chrome:function(){return re()||qe},windows:function(){return re()||ft},osx:function(){return re()||Xe},linux:function(){return re()||ht},iphone:function(){return re()||pt},mobile:function(){return re()||pt||mt||vt||hl},nativeApp:function(){return re()||fl},android:function(){return re()||vt},ipad:function(){return re()||mt}},xn=gt,Ge=!!(typeof window<"u"&&window.document&&window.document.createElement),En={canUseDOM:Ge,canUseWorkers:typeof W
2022-10-26 20:27:06 +08:00
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const Fn=function(e,t){if(e&&e.addEventListener){const l=function(n){const s=Ln(n);t&&Reflect.apply(t,this,[n,s])};e.addEventListener("wheel",l,{passive:!0})}},Nn={beforeMount(e,t){Fn(e,t.value)}},An={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:Xt,id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},gl={modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Xt,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},De=()=>{const{form:e,formItem:t}=tn(),l=me("CheckboxGroup",{}),n=$(()=>l&&(l==null?void 0:l.name)==="ElCheckboxGroup"),s=$(()=>t==null?void 0:t.size);return{isGroup:n,checkboxGroup:l,elForm:e,elFormItemSize:s,elFormItem:t}},Hn=(e,{elFormItem:t})=>{const{inputId:l,isLabeledByFormItem:n}=Qt(e,{formItemContext:t});return{isLabeledByFormItem:n,groupId:l}},$n=e=>{const t=x(!1),{emit:l}=le(),{isGroup:n,checkboxGroup:s,elFormItem:i}=De(),c=x(!1);return{model:$({get(){var o,a;return n.value?(o=s.modelValue)==null?void 0:o.value:(a=e.modelValue)!=null?a:t.value},set(o){var a;n.value&&Array.isArray(o)?(c.value=s.max!==void 0&&o.length>s.max.value,c.value===!1&&((a=s==null?void 0:s.changeEvent)==null||a.call(s,o))):(l(lt,o),t.value=o)}}),isGroup:n,isLimitExceeded:c,elFormItem:i}},Wn=(e,t,{model:l})=>{const{isGroup:n,checkboxGroup:s}=De(),i=x(!1),c=Je(s==null?void 0:s.checkboxGroupSize,{prop:!0}),r=$(()=>{const u=l.value;return ln(u)==="[object Boolean]"?u:Array.isArray(u)?u.map(nn).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=Je($(()=>{var u;return n.value?(u=s==null?void 0:s.checkboxGroupSize)==null?void 0:u.value:void 0})),a=$(()=>!!(t.default||e.label));return{isChecked:r,focus:i,size:c,checkboxSize:o,hasOwnLabel:a}},Mn=(e,{model:t,isChecked:l})=>{const{elForm:n,isGroup:s,checkboxGroup:i}=De(),c=$(()=>{var o,a;const u=(o=i.max)==null?void 0:o.value,h=(a=i.min)==null?void 0:a.value;return!!(u||h)&&t.value.length>=u&&!l.value||t.value.length<=h&&l.value});return{isDisabled:$(()=>{var o,a;const u=e.disabled||(n==null?void 0:n.disabled);return(a=s.value?((o=i.disabled)==null?void 0:o.value)||u||c.value:u)!=null?a:!1}),isLimitDisabled:c}},Tn=(e,{model:t})=>{function l(){Array.isArray(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&l()},On=(e,{model:t,isLimitExceeded:l,hasOwnLabel:n,isDisabled:s,isLabeledByFormItem:i})=>{const{elFormItem:c,checkboxGroup:r}=De(),{emit:o}=le();function a(f){var g,b;return f===e.trueLabel||f===!0?(g=e.trueLabel)!=null?g:!0:(b=e.falseLabel)!=null?b:!1}function u(f,g){o("change",a(f),g)}function h(f){if(l.value)return;const g=f.target;o("change",a(g.checked),f)}function d(f){return xe(this,null,function*(){l.value||!n.value&&!s.value&&i.value&&(t.value=a([!1,e.falseLabel].includes(t.value)),yield Ae(),u(t.value,f))})}const p=$(()=>{var f;return((f=r.validateEvent)==null?void 0:f.value)||e.validateEvent});return ce(()=>e.modelValue,()=>{p.value&&(c==null||c.validate("change").catch(f=>Zt()))}),{handleChange:h,onClickRoot:d}},bl={[lt]:e=>rt(e)||it(e)||At(e),change:e=>rt(e)||it(e)||At(e)},Bn={[lt]:e=>Ht(e),change:e=>Ht(e)},yl=(e,t)=>{const{model:l,isGroup:n,isLimitExceeded:s,elFormItem:i}=$n(e),{focus:c,size:r,isChecked:o,checkboxSize:a,hasOwnLabel:u}=Wn(e,t,{model:l}),{isDisabled:h}=Mn(e,{model:l,isChecked:o}),{inputId:d,isLabeledByFormItem:p}=Qt(e,{formItemContext:i,disableIdGeneration:u,disableIdManagement:n}),{handleChange:f,onClickRoot:g}=On(e,{model:l,isLimitExceeded:s,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:p});return Tn(e,{model:l}),{elFormItem:i,inputId:d,isLabeledB
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var Xn=/["'&<>]/,Qn=Zn;function Zn(e){var t=""+e,l=Xn.exec(t);if(!l)return t;var n,s="",i=0,c=0;for(i=l.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}c!==i&&(s+=t.substring(c,i)),c=i+1,s+=n}return c!==i?s+t.substring(c,i):s}const at=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Gt=function(e){return e!==null&&typeof e=="object"},Jn=function(e,t,l,n,s){if(!t&&!n&&(!s||Array.isArray(s)&&!s.length))return e;typeof l=="string"?l=l==="descending"?-1:1:l=l&&l<0?-1:1;const i=n?null:function(r,o){return s?(Array.isArray(s)||(s=[s]),s.map(a=>typeof a=="string"?$t(r,a):a(r,o,e))):(t!=="$key"&&Gt(r)&&"$value"in r&&(r=r.$value),[Gt(r)?$t(r,t):r])},c=function(r,o){if(n)return n(r.value,o.value);for(let a=0,u=r.key.length;a<u;a++){if(r.key[a]<o.key[a])return-1;if(r.key[a]>o.key[a])return 1}return 0};return e.map((r,o)=>({value:r,index:o,key:i?i(r,o):null})).sort((r,o)=>{let a=c(r,o);return a||(a=r.index-o.index),a*+l}).map(r=>r.value)},Sl=function(e,t){let l=null;return e.columns.forEach(n=>{n.id===t&&(l=n)}),l},eo=function(e,t){let l=null;for(let n=0;n<e.columns.length;n++){const s=e.columns[n];if(s.columnKey===t){l=s;break}}return l||on("ElTable",`No column matching with column-key: ${t}`),l},Yt=function(e,t,l){const n=(t.className||"").match(new RegExp(`${l}-table_[^\\s]+`,"gm"));return n?Sl(e,n[0]):null},Z=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const l=t.split(".");let n=e;for(const s of l)n=n[s];return`${n}`}else if(typeof t=="function")return t.call(null,e)},Ne=function(e,t){const l={};return(e||[]).forEach((n,s)=>{l[Z(n,t)]={row:n,index:s}}),l};function to(e,t){const l={};let n;for(n in e)l[n]=e[n];for(n in t)if(_e(t,n)){const s=t[n];typeof s!="undefined"&&(l[n]=s)}return l}function xt(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function xl(e){return e===""||e!==void 0&&(e=xt(e),Number.isNaN(e)&&(e=80)),e}function lo(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function no(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,l)=>(...n)=>t(l(...n)))}function Qe(e,t,l){let n=!1;const s=e.indexOf(t),i=s!==-1,c=()=>{e.push(t),n=!0},r=()=>{e.splice(s,1),n=!0};return typeof l=="boolean"?l&&!i?c():!l&&i&&r():i?r():c(),n}function oo(e,t,l="children",n="hasChildren"){const s=c=>!(Array.isArray(c)&&c.length);function i(c,r,o){t(c,r,o),r.forEach(a=>{if(a[n]){t(a,null,o+1);return}const u=a[l];s(u)||i(a,u,o+1)})}e.forEach(c=>{if(c[n]){t(c,null,0);return}const r=c[l];s(r)||i(c,r,0)})}let Ce;function so(e,t,l,n,s){const{nextZIndex:i}=sn(),c=e==null?void 0:e.dataset.prefix,r=e==null?void 0:e.querySelector(`.${c}-scrollbar__wrap`);function o(){const f=s==="light",g=document.createElement("div");return g.className=`${c}-popper ${f?"is-light":"is-dark"}`,l=Qn(l),g.innerHTML=l,g.style.zIndex=String(i()),e==null||e.appendChild(g),g}function a(){const f=document.createElement("div");return f.className=`${c}-popper__arrow`,f}function u(){h&&h.update()}Ce==null||Ce(),Ce=()=>{try{h&&h.destroy(),d&&(e==null||e.removeChild(d)),t.removeEventListener("mouseenter",u),t.removeEventListener("mouseleave",Ce),r==null||r.removeEventListener("scroll",Ce),Ce=void 0}catch(f){}};let h=null;const d=o(),p=a();return d.appendChild(p),h=yn(t,d,ae({strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:p,padding:10}}]},n)),t.addEventListener("mouseenter",u),t.addEventListener("mouseleave",Ce),r==null||r.addEventListener("scroll",Ce),h}const El=(e,t,l,n)=>{let s=0,i=e;if(n){if(n[e].colSpan>1)return{};for(let o=0;o<e;o++)s+=n[o].colSpan;i=s+n[e].colSpan-1}else s=e;let c;const r=l.states.columns;switch(t){case"left":i<l.states.fixedLeafColumnsLength.value&&(c="left");break;case"right":s>=r.value.length-l.states.rightFixedLeafColumnsLength.value&&(c="right");break;default:i<l.state