xframelib 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{Fragment as e,KeepAlive as t,Suspense as n,Transition as r,TransitionGroup as i,computed as o,createBlock as s,createCommentVNode as a,createElementBlock as c,createElementVNode as l,createTextVNode as u,createVNode as f,defineComponent as d,h,markRaw as p,mergeProps as g,nextTick as m,normalizeClass as v,normalizeStyle as y,onErrorCaptured as w,onMounted as b,onUnmounted as S,openBlock as x,reactive as E,ref as C,renderList as k,renderSlot as T,resolveComponent as A,resolveDynamicComponent as M,shallowReactive as z,toDisplayString as O,unref as D,useCssVars as L,useTemplateRef as _,vShow as R,watch as I,withCtx as P,withDirectives as N,withModifiers as B}from"vue";import j from"axios";import{Client as F,ClientContext as W}from"@hprose/rpc-core";import{ByteStream as U,Reader as $,ValueReader as H,Writer as q}from"@hprose/io";import{HttpTransport as G}from"@hprose/rpc-html5";import V,{default as X}from"iconv-lite";import*as Y from"@microsoft/signalr";import K from"qs";import{Icon as Z}from"@iconify/vue";var J=Object.create,Q=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=Object.getOwnPropertyNames,ne=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty,ie=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),oe=(e,t,n)=>(n=null!=e?J(ne(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=te(t),s=0,a=o.length;s<a;s++)i=o[s],re.call(e,i)||void 0===i||Q(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=ee(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Q(n,"default",{value:e,enumerable:!0}),e)),se=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function ae(e){return{all:e=e||new Map,on(t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().map(e=>{e(n)}),r=e.get("*"),r&&r.slice().map(e=>{e(t,n)})}}}var ce=ae();var le,ue,fe={exports:{}},de=fe.exports={};function he(){throw new Error("setTimeout has not been defined")}function pe(){throw new Error("clearTimeout has not been defined")}function ge(e){if(le===setTimeout)return setTimeout(e,0);if((le===he||!le)&&setTimeout)return le=setTimeout,setTimeout(e,0);try{return le(e,0)}catch(t){try{return le.call(null,e,0)}catch(t){return le.call(this,e,0)}}}!function(){try{le="function"==typeof setTimeout?setTimeout:he}catch(e){le=he}try{ue="function"==typeof clearTimeout?clearTimeout:pe}catch(e){ue=pe}}();var me,ve=[],ye=!1,we=-1;function be(){ye&&me&&(ye=!1,me.length?ve=me.concat(ve):we=-1,ve.length&&Se())}function Se(){if(!ye){var e=ge(be);ye=!0;for(var t=ve.length;t;){for(me=ve,ve=[];++we<t;)me&&me[we].run();we=-1,t=ve.length}me=null,ye=!1,function(e){if(ue===clearTimeout)return clearTimeout(e);if((ue===pe||!ue)&&clearTimeout)return ue=clearTimeout,clearTimeout(e);try{return ue(e)}catch(t){try{return ue.call(null,e)}catch(t){return ue.call(this,e)}}}(e)}}function xe(e,t){this.fun=e,this.array=t}function Ee(){}de.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];ve.push(new xe(e,t)),1!==ve.length||ye||ge(Se)},xe.prototype.run=function(){this.fun.apply(null,this.array)},de.title="browser",de.browser=!0,de.env={},de.argv=[],de.version="",de.versions={},de.on=Ee,de.addListener=Ee,de.once=Ee,de.off=Ee,de.removeListener=Ee,de.removeAllListeners=Ee,de.emit=Ee,de.prependListener=Ee,de.prependOnceListener=Ee,de.listeners=function(e){return[]},de.binding=function(e){throw new Error("process.binding is not supported")},de.cwd=function(){return"/"},de.chdir=function(e){throw new Error("process.chdir is not supported")},de.umask=function(){return 0};var Ce=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(fe.exports),ke="bottom",Te="right",Ae="left",Me=["top",ke,Te,Ae],ze="start",Oe="popper",De=Me.reduce(function(e,t){return e.concat([t+"-"+ze,t+"-end"])},[]),Le=[].concat(Me,["auto"]).reduce(function(e,t){return e.concat([t,t+"-"+ze,t+"-end"])},[]),_e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Re(e){return e?(e.nodeName||"").toLowerCase():null}function Ie(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pe(e){return e instanceof Ie(e).Element||e instanceof Element}function Ne(e){return e instanceof Ie(e).HTMLElement||e instanceof HTMLElement}function Be(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ie(e).ShadowRoot||e instanceof ShadowRoot)}var je={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Ne(i)&&Re(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ne(r)&&Re(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Fe(e){return e.split("-")[0]}var We=Math.max,Ue=Math.min,$e=Math.round;function He(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qe(){return!/^((?!chrome|android).)*safari/i.test(He())}function Ge(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ne(e)&&(i=e.offsetWidth>0&&$e(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$e(r.height)/e.offsetHeight||1);var s=(Pe(e)?Ie(e):window).visualViewport,a=!qe()&&n,c=(r.left+(a&&s?s.offsetLeft:0))/i,l=(r.top+(a&&s?s.offsetTop:0))/o,u=r.width/i,f=r.height/o;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function Ve(e){var t=Ge(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Xe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Be(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ye(e){return Ie(e).getComputedStyle(e)}function Ke(e){return["table","td","th"].indexOf(Re(e))>=0}function Ze(e){return((Pe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Je(e){return"html"===Re(e)?e:e.assignedSlot||e.parentNode||(Be(e)?e.host:null)||Ze(e)}function Qe(e){return Ne(e)&&"fixed"!==Ye(e).position?e.offsetParent:null}function et(e){for(var t=Ie(e),n=Qe(e);n&&Ke(n)&&"static"===Ye(n).position;)n=Qe(n);return n&&("html"===Re(n)||"body"===Re(n)&&"static"===Ye(n).position)?t:n||function(e){var t=/firefox/i.test(He());if(/Trident/i.test(He())&&Ne(e)&&"fixed"===Ye(e).position)return null;var n=Je(e);for(Be(n)&&(n=n.host);Ne(n)&&["html","body"].indexOf(Re(n))<0;){var r=Ye(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function tt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nt(e,t,n){return We(e,Ue(t,n))}function rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function it(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ot={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Fe(n.placement),c=tt(a),l=["left","right"].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return rt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:it(e,Me))}(i.padding,n),f=Ve(o),d="y"===c?"top":Ae,h="y"===c?ke:Te,p=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],g=s[c]-n.rects.reference[c],m=et(o),v=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,y=p/2-g/2,w=u[d],b=v-f[l]-u[h],S=v/2-f[l]/2+y,x=nt(w,S,b),E=c;n.modifiersData[r]=((t={})[E]=x,t.centerOffset=x-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Xe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function st(e){return e.split("-")[1]}var at={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ct(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=void 0===d?0:d,p=s.y,g=void 0===p?0:p,m="function"==typeof u?u({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),w=Ae,b="top",S=window;if(l){var x=et(n),E="clientHeight",C="clientWidth";x===Ie(n)&&"static"!==Ye(x=Ze(n)).position&&"absolute"===a&&(E="scrollHeight",C="scrollWidth"),("top"===i||("left"===i||"right"===i)&&"end"===o)&&(b=ke,g-=(f&&x===S&&S.visualViewport?S.visualViewport.height:x[E])-r.height,g*=c?1:-1),"left"!==i&&("top"!==i&&"bottom"!==i||"end"!==o)||(w=Te,h-=(f&&x===S&&S.visualViewport?S.visualViewport.width:x[C])-r.width,h*=c?1:-1)}var k,T=Object.assign({position:a},l&&at),A=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:$e(n*i)/i||0,y:$e(r*i)/i||0}}({x:h,y:g},Ie(n)):{x:h,y:g};return h=A.x,g=A.y,c?Object.assign({},T,((k={})[b]=y?"0":"",k[w]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",k)):Object.assign({},T,((t={})[b]=y?g+"px":"",t[w]=v?h+"px":"",t.transform="",t))}var lt={passive:!0},ut={left:"right",right:"left",bottom:"top",top:"bottom"};function ft(e){return e.replace(/left|right|bottom|top/g,function(e){return ut[e]})}var dt={start:"end",end:"start"};function ht(e){return e.replace(/start|end/g,function(e){return dt[e]})}function pt(e){var t=Ie(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function gt(e){return Ge(Ze(e)).left+pt(e).scrollLeft}function mt(e){var t=Ye(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vt(e){return["html","body","#document"].indexOf(Re(e))>=0?e.ownerDocument.body:Ne(e)&&mt(e)?e:vt(Je(e))}function yt(e,t){var n;void 0===t&&(t=[]);var r=vt(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Ie(r),s=i?[o].concat(o.visualViewport||[],mt(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(yt(Je(s)))}function wt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bt(e,t,n){return"viewport"===t?wt(function(e,t){var n=Ie(e),r=Ze(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var l=qe();(l||!l&&"fixed"===t)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+gt(e),y:c}}(e,n)):Pe(t)?function(e,t){var n=Ge(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):wt(function(e){var t,n=Ze(e),r=pt(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=We(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=We(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+gt(e),c=-r.scrollTop;return"rtl"===Ye(i||n).direction&&(a+=We(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}(Ze(e)))}function St(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Fe(i):null,s=i?st(i):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:a,y:n.y-r.height};break;case ke:t={x:a,y:n.y+n.height};break;case Te:t={x:n.x+n.width,y:c};break;case Ae:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=o?tt(o):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case ze:t[l]=t[l]-(n[u]/2-r[u]/2);break;case"end":t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}function xt(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,s=void 0===o?e.strategy:o,a=n.boundary,c=void 0===a?"clippingParents":a,l=n.rootBoundary,u=void 0===l?"viewport":l,f=n.elementContext,d=void 0===f?Oe:f,h=n.altBoundary,p=void 0!==h&&h,g=n.padding,m=void 0===g?0:g,v=rt("number"!=typeof m?m:it(m,Me)),y="popper"===d?"reference":Oe,w=e.rects.popper,b=e.elements[p?y:d],S=function(e,t,n,r){var i="clippingParents"===t?function(e){var t=yt(Je(e)),n=["absolute","fixed"].indexOf(Ye(e).position)>=0&&Ne(e)?et(e):e;return Pe(n)?t.filter(function(e){return Pe(e)&&Xe(e,n)&&"body"!==Re(e)}):[]}(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(t,n){var i=bt(e,n,r);return t.top=We(i.top,t.top),t.right=Ue(i.right,t.right),t.bottom=Ue(i.bottom,t.bottom),t.left=We(i.left,t.left),t},bt(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Pe(b)?b:b.contextElement||Ze(e.elements.popper),c,u,s),x=Ge(e.elements.reference),E=St({reference:x,element:w,strategy:"absolute",placement:i}),C=wt(Object.assign({},w,E)),k="popper"===d?C:x,T={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},A=e.modifiersData.offset;if("popper"===d&&A){var M=A[i];Object.keys(T).forEach(function(e){var t=["right","bottom"].indexOf(e)>=0?1:-1,n=["top","bottom"].indexOf(e)>=0?"y":"x";T[e]+=M[n]*t})}return T}var Et={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,m=t.options.placement,v=Fe(m)===m,y=c||(v||!p?[ft(m)]:function(e){if("auto"===Fe(e))return[];var t=ft(e);return[ht(e),t,ht(t)]}(m)),w=[m].concat(y).reduce(function(e,n){return e.concat("auto"===Fe(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?Le:c,u=st(r),f=u?a?De:De.filter(function(e){return st(e)===u}):Me,d=f.filter(function(e){return l.indexOf(e)>=0});0===d.length&&(d=f);var h=d.reduce(function(t,n){return t[n]=xt(e,{placement:n,boundary:i,rootBoundary:o,padding:s})[Fe(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:g}):n)},[]),b=t.rects.reference,S=t.rects.popper,x=new Map,E=!0,C=w[0],k=0;k<w.length;k++){var T=w[k],A=Fe(T),M=st(T)===ze,z=["top",ke].indexOf(A)>=0,O=z?"width":"height",D=xt(t,{placement:T,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),L=z?M?Te:Ae:M?ke:"top";b[O]>S[O]&&(L=ft(L));var _=ft(L),R=[];if(o&&R.push(D[A]<=0),a&&R.push(D[L]<=0,D[_]<=0),R.every(function(e){return e})){C=T,E=!1;break}x.set(T,R)}if(E)for(var I=function(e){var t=w.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},P=p?3:1;P>0&&"break"!==I(P);P--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ct(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function kt(e){return["top",Te,ke,Ae].some(function(t){return e[t]>=0})}var Tt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=Le.reduce(function(e,n){return e[n]=function(e,t,n){var r=Fe(e),i=["left","top"].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,["left","right"].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e},{}),a=s[t.placement],c=a.x,l=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}},At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=xt(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),v=Fe(t.placement),y=st(t.placement),w=!y,b=tt(v),S="x"===b?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,T="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(x){if(o){var z,O="y"===b?"top":Ae,D="y"===b?ke:Te,L="y"===b?"height":"width",_=x[b],R=_+m[O],I=_-m[D],P=h?-C[L]/2:0,N="start"===y?E[L]:C[L],B="start"===y?-C[L]:-E[L],j=t.elements.arrow,F=h&&j?Ve(j):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=W[O],$=W[D],H=nt(0,E[L],F[L]),q=w?E[L]/2-P-H-U-T.mainAxis:N-H-U-T.mainAxis,G=w?-E[L]/2+P+H+$+T.mainAxis:B+H+$+T.mainAxis,V=t.elements.arrow&&et(t.elements.arrow),X=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,Y=null!=(z=null==A?void 0:A[b])?z:0,K=_+G-Y,Z=nt(h?Ue(R,_+q-Y-X):R,_,h?We(I,K):I);x[b]=Z,M[b]=Z-_}if(a){var J,Q="x"===b?"top":Ae,ee="x"===b?ke:Te,te=x[S],ne="y"===S?"height":"width",re=te+m[Q],ie=te-m[ee],oe=-1!==["top",Ae].indexOf(v),se=null!=(J=null==A?void 0:A[S])?J:0,ae=oe?re:te-E[ne]-C[ne]-se+T.altAxis,ce=oe?te+E[ne]+C[ne]-se-T.altAxis:ie,le=h&&oe?function(e,t,n){var r=nt(e,t,n);return r>n?n:r}(ae,te,ce):nt(h?ae:re,te,h?ce:ie);x[S]=le,M[S]=le-te}t.modifiersData[r]=M}},requiresIfExists:["offset"]};function Mt(e,t,n){void 0===n&&(n=!1);var r,i,o=Ne(t),s=Ne(t)&&function(e){var t=e.getBoundingClientRect(),n=$e(t.width)/e.offsetWidth||1,r=$e(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Ze(t),c=Ge(e,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==Re(t)||mt(a))&&(l=(r=t)!==Ie(r)&&Ne(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:pt(r)),Ne(t)?((u=Ge(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=gt(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function zt(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function Dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var Lt=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?Ot:i;return function(e,t,n){void 0===n&&(n=o);var i,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(n){var i="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},o,a.options,i),a.scrollParents={reference:Pe(e)?yt(e):e.contextElement?yt(e.contextElement):[],popper:yt(t)};var s,l,d=function(e){var t=zt(e);return _e.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((s=[].concat(r,a.options.modifiers),l=s.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return a.orderedModifiers=d.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:a,name:t,instance:u,options:r});c.push(o||function(){})}}),u.update()},forceUpdate:function(){if(!l){var e=a.elements,t=e.reference,n=e.popper;if(Dt(t,n)){a.rects={reference:Mt(t,et(n),"fixed"===a.options.strategy),popper:Ve(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],o=i.fn,s=i.options,c=void 0===s?{}:s,f=i.name;"function"==typeof o&&(a=o({state:a,options:c,name:f,instance:u})||a)}else a.reset=!1,r=-1}}},update:(i=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(i())})})),s}),destroy:function(){f(),l=!0}};if(!Dt(e,t))return u;function f(){c.forEach(function(e){return e()}),c=[]}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,c=Ie(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(e){e.addEventListener("scroll",n.update,lt)}),a&&c.addEventListener("resize",n.update,lt),function(){o&&l.forEach(function(e){e.removeEventListener("scroll",n.update,lt)}),a&&c.removeEventListener("resize",n.update,lt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=St({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,l={placement:Fe(t.placement),variation:st(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ct(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ct(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},je,Tt,Et,At,ot,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=xt(t,{elementContext:"reference"}),a=xt(t,{altBoundary:!0}),c=Ct(s,r),l=Ct(a,i,o),u=kt(c),f=kt(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),_t='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',Rt="tippy-content",It="tippy-backdrop",Pt="tippy-arrow",Nt="tippy-svg-arrow",Bt={passive:!0,capture:!0},jt=function(){return document.body};function Ft(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Wt(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Ut(e,t){return"function"==typeof e?e.apply(void 0,t):e}function $t(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)};var n}function Ht(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}function qt(e){return[].concat(e)}function Gt(e,t){-1===e.indexOf(t)&&e.push(t)}function Vt(e){return e.split("-")[0]}function Xt(e){return[].slice.call(e)}function Yt(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Kt(){return document.createElement("div")}function Zt(e){return["Element","Fragment"].some(function(t){return Wt(e,t)})}function Jt(e){return Wt(e,"MouseEvent")}function Qt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function en(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function tn(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function nn(e){var t,n=qt(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function rn(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function on(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var sn={isTouch:!1},an=0;function cn(){sn.isTouch||(sn.isTouch=!0,window.performance&&document.addEventListener("mousemove",ln))}function ln(){var e=performance.now();e-an<20&&(sn.isTouch=!1,document.removeEventListener("mousemove",ln)),an=e}function un(){var e=document.activeElement;if(Qt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var fn,dn="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.msCrypto;function hn(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function pn(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function gn(e){return pn("\n %ctippy.js\n\n %c"+pn(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function mn(e){return[gn(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function vn(e,t){var n;e&&!fn.has(t)&&(fn.add(t),(n=console).warn.apply(n,mn(t)))}function yn(e,t){var n;e&&!fn.has(t)&&(fn.add(t),(n=console).error.apply(n,mn(t)))}"production"!==Ce.env.NODE_ENV&&(fn=new Set);var wn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},bn=Object.assign({appendTo:jt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},wn,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Sn=Object.keys(bn);function xn(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=bn[i])?r:o),t},{});return Object.assign({},e,t)}function En(e,t){var n=Object.assign({},t,{content:Ut(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(xn(Object.assign({},bn,{plugins:t}))):Sn).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})}(e,t.plugins));return n.aria=Object.assign({},bn.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Cn(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var n,r,i=(n=Ht(bn,Object.keys(wn)),r=e,!{}.hasOwnProperty.call(n,r));i&&(i=0===t.filter(function(t){return t.name===e}).length),vn(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function kn(e,t){e.innerHTML=t}function Tn(e){var t=Kt();return!0===e?t.className=Pt:(t.className=Nt,Zt(e)?t.appendChild(e):kn(t,e)),t}function An(e,t){Zt(t.content)?(kn(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?kn(e,t.content):e.textContent=t.content)}function Mn(e){var t=e.firstElementChild,n=Xt(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(Rt)}),arrow:n.find(function(e){return e.classList.contains(Pt)||e.classList.contains(Nt)}),backdrop:n.find(function(e){return e.classList.contains(It)})}}function zn(e){var t=Kt(),n=Kt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Kt();function i(n,r){var i=Mn(t),o=i.box,s=i.content,a=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||An(s,e.props),r.arrow?a?n.arrow!==r.arrow&&(o.removeChild(a),o.appendChild(Tn(r.arrow))):o.appendChild(Tn(r.arrow)):a&&o.removeChild(a)}return r.className=Rt,r.setAttribute("data-state","hidden"),An(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}zn.$$tippy=!0;var On=1,Dn=[],Ln=[];function _n(e,t){var n,r,i,o,s,a,c,l,u=En(e,Object.assign({},bn,xn(Yt(t)))),f=!1,d=!1,h=!1,p=!1,g=[],m=$t(V,u.interactiveDebounce),v=On++,y=(l=u.plugins).filter(function(e,t){return l.indexOf(e)===t}),w={id:v,reference:e,popper:Kt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if("production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("setProps")),!w.state.isDestroyed){_("onBeforeUpdate",[w,t]),q();var n=w.props,r=En(e,Object.assign({},n,Yt(t),{ignoreAttributes:!0}));w.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(P(),m=$t(V,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?qt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded"),I(),L(),x&&x(n,r),w.popperInstance&&(Z(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),_("onAfterUpdate",[w,t])}},setContent:function(e){w.setProps({content:e})},show:function(){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("show"));var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=sn.isTouch&&!w.props.touch,i=Ft(w.props.duration,0,bn.duration);if(!(e||t||n||r||M().hasAttribute("disabled")||(_("onShow",[w],!1),!1===w.props.onShow(w)))){if(w.state.isVisible=!0,A()&&(S.style.visibility="visible"),L(),F(),w.state.isMounted||(S.style.transition="none"),A()){var o=O();en([o.box,o.content],0)}a=function(){var e;if(w.state.isVisible&&!p){if(p=!0,S.offsetHeight,S.style.transition=w.props.moveTransition,A()&&w.props.animation){var t=O(),n=t.box,r=t.content;en([n,r],i),tn([n,r],"visible")}R(),I(),Gt(Ln,w),null==(e=w.popperInstance)||e.forceUpdate(),_("onMount",[w]),w.props.animation&&A()&&function(e){U(e,function(){w.state.isShown=!0,_("onShown",[w])})}(i)}},function(){var e,t=w.props.appendTo,n=M();(e=w.props.interactive&&t===jt||"parent"===t?n.parentNode:Ut(t,[n])).contains(S)||e.appendChild(S),w.state.isMounted=!0,Z(),"production"!==Ce.env.NODE_ENV&&vn(w.props.interactive&&t===bn.appendTo&&n.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()}},hide:function(){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("hide"));var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=Ft(w.props.duration,1,bn.duration);if(!(e||t||n)&&(_("onHide",[w],!1),!1!==w.props.onHide(w))){if(w.state.isVisible=!1,w.state.isShown=!1,p=!1,f=!1,A()&&(S.style.visibility="hidden"),P(),W(),L(!0),A()){var i=O(),o=i.box,s=i.content;w.props.animation&&(en([o,s],r),tn([o,s],"hidden"))}R(),I(),w.props.animation?A()&&function(e,t){U(e,function(){!w.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&t()})}(r,w.unmount):w.unmount()}},hideWithInteractivity:function(e){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("hideWithInteractivity")),z().addEventListener("mousemove",m),Gt(Dn,m),m(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("unmount")),w.state.isVisible&&w.hide(),w.state.isMounted&&(J(),Q().forEach(function(e){e._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),Ln=Ln.filter(function(e){return e!==w}),w.state.isMounted=!1,_("onHidden",[w]))},destroy:function(){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("destroy")),w.state.isDestroyed||(w.clearDelayTimeouts(),w.unmount(),q(),delete e._tippy,w.state.isDestroyed=!0,_("onDestroy",[w]))}};if(!u.render)return"production"!==Ce.env.NODE_ENV&&yn(!0,"render() function has not been supplied."),w;var b=u.render(w),S=b.popper,x=b.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+w.id,w.popper=S,e._tippy=w,S._tippy=w;var E=y.map(function(e){return e.fn(w)}),C=e.hasAttribute("aria-expanded");return H(),I(),L(),_("onCreate",[w]),u.showOnCreate&&ee(),S.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&z().addEventListener("mousemove",m)}),w;function k(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function T(){return"hold"===k()[0]}function A(){var e;return!(null==(e=w.props.render)||!e.$$tippy)}function M(){return c||e}function z(){var e=M().parentNode;return e?nn(e):document}function O(){return Mn(S)}function D(e){return w.state.isMounted&&!w.state.isVisible||sn.isTouch||o&&"focus"===o.type?0:Ft(w.props.delay,e?0:1,bn.delay)}function L(e){void 0===e&&(e=!1),S.style.pointerEvents=w.props.interactive&&!e?"":"none",S.style.zIndex=""+w.props.zIndex}function _(e,t,n){var r;void 0===n&&(n=!0),E.forEach(function(n){n[e]&&n[e].apply(n,t)}),n&&(r=w.props)[e].apply(r,t)}function R(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,r=S.id;qt(w.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function I(){!C&&w.props.aria.expanded&&qt(w.props.triggerTarget||e).forEach(function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")})}function P(){z().removeEventListener("mousemove",m),Dn=Dn.filter(function(e){return e!==m})}function N(t){if(!sn.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!w.props.interactive||!on(S,n)){if(qt(w.props.triggerTarget||e).some(function(e){return on(e,n)})){if(sn.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else _("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout(function(){d=!1}),w.state.isMounted||W())}}}function B(){h=!0}function j(){h=!1}function F(){var e=z();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,Bt),e.addEventListener("touchstart",j,Bt),e.addEventListener("touchmove",B,Bt)}function W(){var e=z();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,Bt),e.removeEventListener("touchstart",j,Bt),e.removeEventListener("touchmove",B,Bt)}function U(e,t){var n=O().box;function r(e){e.target===n&&(rn(n,"remove",r),t())}if(0===e)return t();rn(n,"remove",s),rn(n,"add",r),s=r}function $(t,n,r){void 0===r&&(r=!1),qt(w.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})})}function H(){var e;T()&&($("touchstart",G,{passive:!0}),$("touchend",X,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch($(e,G),e){case"mouseenter":$("mouseleave",X);break;case"focus":$(dn?"focusout":"blur",Y);break;case"focusin":$("focusout",Y)}})}function q(){g.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),g=[]}function G(e){var t,n=!1;if(w.state.isEnabled&&!K(e)&&!d){var r="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,I(),!w.state.isVisible&&Jt(e)&&Dn.forEach(function(t){return t(e)}),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||f)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function V(e){var t=e.target,n=M().contains(t)||S.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,s=Vt(i.placement),a=i.modifiersData.offset;if(!a)return!0;var c="bottom"===s?a.top.y:0,l="top"===s?a.bottom.y:0,u="right"===s?a.left.x:0,f="left"===s?a.right.x:0,d=t.top-r+c>o,h=r-t.bottom-l>o,p=t.left-n+u>o,g=n-t.right-f>o;return d||h||p||g})}(Q().concat(S).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}).filter(Boolean),e)&&(P(),te(e))}function X(e){K(e)||w.props.trigger.indexOf("click")>=0&&f||(w.props.interactive?w.hideWithInteractivity(e):te(e))}function Y(e){w.props.trigger.indexOf("focusin")<0&&e.target!==M()||w.props.interactive&&e.relatedTarget&&S.contains(e.relatedTarget)||te(e)}function K(e){return!!sn.isTouch&&T()!==e.type.indexOf("touch")>=0}function Z(){J();var t=w.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,c=A()?Mn(S).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:e,u=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(A()){var n=O().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];A()&&c&&u.push({name:"arrow",options:{element:c,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),w.popperInstance=Lt(l,S,Object.assign({},n,{placement:r,onFirstUpdate:a,modifiers:u}))}function J(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function Q(){return Xt(S.querySelectorAll("[data-tippy-root]"))}function ee(e){w.clearDelayTimeouts(),e&&_("onTrigger",[w,e]),F();var t=D(!0),r=k(),i=r[0],o=r[1];sn.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout(function(){w.show()},t):w.show()}function te(e){if(w.clearDelayTimeouts(),_("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=D(!1);t?r=setTimeout(function(){w.state.isVisible&&w.hide()},t):i=requestAnimationFrame(function(){w.hide()})}}else W()}}function Rn(e,t){void 0===t&&(t={});var n=bn.plugins.concat(t.plugins||[]);"production"!==Ce.env.NODE_ENV&&(function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;yn(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),yn(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),Cn(t,n)),document.addEventListener("touchstart",cn,Bt),window.addEventListener("blur",un);var r=Object.assign({},t,{plugins:n}),i=function(e){return Zt(e)?[e]:function(e){return Wt(e,"NodeList")}(e)?Xt(e):Array.isArray(e)?e:Xt(document.querySelectorAll(e))}(e);if("production"!==Ce.env.NODE_ENV){var o=Zt(r.content),s=i.length>1;vn(o&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var a=i.reduce(function(e,t){var n=t&&_n(t,r);return n&&e.push(n),e},[]);return Zt(e)?a[0]:a}Rn.defaultProps=bn,Rn.setDefaultProps=function(e){"production"!==Ce.env.NODE_ENV&&Cn(e,[]),Object.keys(e).forEach(function(t){bn[t]=e[t]})},Rn.currentInput=sn;var In=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;Ln.forEach(function(e){var t=!1;if(n&&(t=Qt(n)?e.reference===n:e.popper===n.popper),!t){var i=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:i})}})},Pn=Object.assign({},je,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Nn=function(e,t){var n;void 0===t&&(t={}),"production"!==Ce.env.NODE_ENV&&yn(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var r,i=e,o=[],s=[],a=t.overrides,c=[],l=!1;function u(){s=i.map(function(e){return qt(e.props.triggerTarget||e.reference)}).reduce(function(e,t){return e.concat(t)},[])}function f(){o=i.map(function(e){return e.reference})}function d(e){i.forEach(function(t){e?t.enable():t.disable()})}function h(e){return i.map(function(t){var n=t.setProps;return t.setProps=function(i){n(i),t.reference===r&&e.setProps(i)},function(){t.setProps=n}})}function p(e,t){var n=s.indexOf(t);if(t!==r){r=t;var c=(a||[]).concat("content").reduce(function(e,t){return e[t]=i[n].props[t],e},{});e.setProps(Object.assign({},c,{getReferenceClientRect:"function"==typeof c.getReferenceClientRect?c.getReferenceClientRect:function(){var e;return null==(e=o[n])?void 0:e.getBoundingClientRect()}}))}}d(!1),f(),u();var g=Rn(Kt(),Object.assign({},Ht(t,["overrides"]),{plugins:[{fn:function(){return{onDestroy:function(){d(!0)},onHidden:function(){r=null},onClickOutside:function(e){e.props.showOnCreate&&!l&&(l=!0,r=null)},onShow:function(e){e.props.showOnCreate&&!l&&(l=!0,p(e,o[0]))},onTrigger:function(e,t){p(e,t.currentTarget)}}}}].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[Pn])})})),m=g.show;g.show=function(e){if(m(),!r&&null==e)return p(g,o[0]);if(!r||null!=e){if("number"==typeof e)return o[e]&&p(g,o[e]);if(i.indexOf(e)>=0){var t=e.reference;return p(g,t)}return o.indexOf(e)>=0?p(g,e):void 0}},g.showNext=function(){var e=o[0];if(!r)return g.show(0);var t=o.indexOf(r);g.show(o[t+1]||e)},g.showPrevious=function(){var e=o[o.length-1];if(!r)return g.show(e);var t=o.indexOf(r),n=o[t-1]||e;g.show(n)};var v=g.setProps;return g.setProps=function(e){a=e.overrides||a,v(e)},g.setInstances=function(e){d(!0),c.forEach(function(e){return e()}),i=e,d(!1),f(),u(),c=h(g),g.setProps({triggerTarget:s})},c=h(g),g},Bn={mouseover:"mouseenter",focusin:"focus",click:"click"};function jn(e,t){"production"!==Ce.env.NODE_ENV&&yn(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],r=[],i=!1,o=t.target,s=Ht(t,["target"]),a=Object.assign({},s,{trigger:"manual",touch:!1}),c=Object.assign({touch:bn.touch},s,{showOnCreate:!0}),l=Rn(e,a);function u(e){if(e.target&&!i){var n=e.target.closest(o);if(n){var s=n.getAttribute("data-tippy-trigger")||t.trigger||bn.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof c.touch||"touchstart"!==e.type&&s.indexOf(Bn[e.type])<0)){var a=Rn(n,c);a&&(r=r.concat(a))}}}}function f(e,t,r,i){void 0===i&&(i=!1),e.addEventListener(t,r,i),n.push({node:e,eventType:t,handler:r,options:i})}return qt(l).forEach(function(e){var t=e.destroy,o=e.enable,s=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&r.forEach(function(e){e.destroy()}),r=[],n.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),n=[],t()},e.enable=function(){o(),r.forEach(function(e){return e.enable()}),i=!1},e.disable=function(){s(),r.forEach(function(e){return e.disable()}),i=!0},function(e){var t=e.reference;f(t,"touchstart",u,Bt),f(t,"mouseover",u),f(t,"focusin",u),f(t,"click",u)}(e)}),l}var Fn={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return"production"!==Ce.env.NODE_ENV&&yn(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=Mn(e.popper),r=n.box,i=n.content,o=e.props.animateFill?function(){var e=Kt();return e.className=It,tn([e],"hidden"),e}():null;return{onCreate:function(){o&&(r.insertBefore(o,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));i.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,tn([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&tn([o],"hidden")}}}},Wn={clientX:0,clientY:0},Un=[];function $n(e){Wn={clientX:e.clientX,clientY:e.clientY}}var Hn={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=nn(e.props.triggerTarget||t),r=!1,i=!1,o=!0,s=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function c(){n.addEventListener("mousemove",f)}function l(){n.removeEventListener("mousemove",f)}function u(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||t.contains(n.target),i=e.props.followCursor,o=n.clientX,s=n.clientY,a=t.getBoundingClientRect(),c=o-a.left,l=s-a.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=o,r=s;"initial"===i&&(n=e.left+c,r=e.top+l);var a="horizontal"===i?e.top:r,u="vertical"===i?e.right:n,f="horizontal"===i?e.bottom:r,d="vertical"===i?e.left:n;return{width:u-d,height:f-a,top:a,right:u,bottom:f,left:d}}})}function d(){e.props.followCursor&&(Un.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",$n)}(n))}function h(){Un=Un.filter(function(t){return t.instance!==e}),0===Un.filter(function(e){return e.doc===n}).length&&function(e){e.removeEventListener("mousemove",$n)}(n)}return{onCreate:d,onDestroy:h,onBeforeUpdate:function(){s=e.props},onAfterUpdate:function(t,n){var o=n.followCursor;r||void 0!==o&&s.followCursor!==o&&(h(),o?(d(),!e.state.isMounted||i||a()||c()):(l(),u()))},onMount:function(){e.props.followCursor&&!i&&(o&&(f(Wn),o=!1),a()||c())},onTrigger:function(e,t){Jt(t)&&(Wn={clientX:t.clientX,clientY:t.clientY}),i="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),l(),o=!0)}}}},qn={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,r=-1,i=!1,o=[],s={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(i){var s=i.state;e.props.inlinePositioning&&(-1!==o.indexOf(s.placement)&&(o=[]),t!==s.placement&&-1===o.indexOf(s.placement)&&(o.push(s.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,r){if(n.length<2||null===e)return t;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":var i=n[0],o=n[n.length-1],s="top"===e,a=i.top,c=o.bottom,l=s?i.left:o.left,u=s?i.right:o.right;return{top:a,bottom:c,left:l,right:u,width:u-l,height:c-a};case"left":case"right":var f=Math.min.apply(Math,n.map(function(e){return e.left})),d=Math.max.apply(Math,n.map(function(e){return e.right})),h=n.filter(function(t){return"left"===e?t.left===f:t.right===d}),p=h[0].top,g=h[h.length-1].bottom;return{top:p,bottom:g,left:f,right:d,width:d-f,height:g-p};default:return t}}(Vt(e),n.getBoundingClientRect(),Xt(n.getClientRects()),r)}(s.placement)}})),t=s.placement)}};function a(){var t;i||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter(function(e){return e.name!==t.name}),[t])})}}(e.props,s),i=!0,e.setProps(t),i=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(t,n){if(Jt(n)){var i=Xt(e.reference.getClientRects()),o=i.find(function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY}),s=i.indexOf(o);r=s>-1?s:r}},onHidden:function(){r=-1}}}},Gn={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var i=null,o=null;function s(){var a=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,c=r("popper")?n.getBoundingClientRect():null;(a&&Vn(i,a)||c&&Vn(o,c))&&e.popperInstance&&e.popperInstance.update(),i=a,o=c,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function Vn(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}Rn.setDefaultProps({render:zn});var Xn=ie((e,t)=>{var n,r;n=e,r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],i={},o=null;function s(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(){for(var n=this.getLevel(),i=0;i<r.length;i++){var o=r[i];this[o]=i<n?e:this.methodFactory(o,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function l(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function u(r,i,o){return function(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?a:void 0!==console[r]?s(console,r):void 0!==console.log?s(console,"log"):e)}(r)||l.apply(this,arguments)}function f(e,n){var s,a,l,f=this,d="loglevel";function h(){var e;if(typeof window!==t&&d){try{e=window.localStorage[d]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=encodeURIComponent(d),i=n.indexOf(r+"=");-1!==i&&(e=/^([^;]+)/.exec(n.slice(i+r.length+1))[1])}catch(e){}return void 0===f.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==f.levels[t.toUpperCase()]&&(t=f.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=n||u,f.getLevel=function(){return null!=l?l:null!=a?a:s},f.setLevel=function(e,n){return l=p(e),!1!==n&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&d){try{return void(window.localStorage[d]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+n+";"}catch(e){}}}(l),c.call(f)},f.setDefaultLevel=function(e){a=p(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){l=null,function(){if(typeof window!==t&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(o!==f&&(s=p(o.getLevel())),c.call(f),o===f)for(var e in i)i[e].rebuild()},s=p(o?o.getLevel():"WARN");var g=h();null!=g&&(l=p(g)),c.call(f)}(o=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new f(e,o.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=d),o},o.getLoggers=function(){return i},o.default=o,o},"function"==typeof define&&define.amd?define(r):"object"==typeof t&&t.exports?t.exports=r():n.log=r()}),Yn=oe(Xn(),1),Kn={HproseServiceErrorEvent:"HproseServiceError",WebAPIErrorEvent:"WebAPIError",AlertInfoEvent:"AlertInfoEvent",CommonWarnEvent:"CommonWarnEvent",WidgetLoadedEvent:"WidgetLoaded",WidgetLoaded:"WidgetLoaded",WidgetToUnloadEvent:"WidgetToUnloadEvent",WidgetUnLoadedEvent:"WidgetUnLoaded",WidgetLoadedErrorEvent:"WidgetLoadedError",WidgetVisibleChanged:"WidgetVisibleChanged",AxiosRequestErrorEvent:"AxiosRequestErrorEvent",LayoutContainerLoaded:"LayoutContainerLoaded",ModalContainerWidget_LoadModal:"ModalContainerWidget_LoadModal",ModalContainerWidget_CloseModal:"ModalContainerWidget_CloseModal",WidgetClosed:"WidgetClosed"},Zn=class{message;eventBus;constructor(e,t=void 0){e&&(this.message=e),t&&(this.eventBus=t)}msg(e,t=3,n="success"){if(this.message)if("function"==typeof this.message)this.message({type:n,message:e,duration:t});else switch(n){case"info":this.message.info(e,t);break;case"success":this.message.success(e,t);break;case"warning":this.message.warn?this.message.warn(e,t):this.message.warning&&this.message.warning(e,t);break;case"error":this.message.error(e,t)}else{switch(n){case"info":case"success":console.log(e);break;case"warning":console.warn(e);break;case"error":n="dark",console.error(e)}this.eventBus&&this.eventBus.emit(Kn.AlertInfoEvent,{type:n,info:e})}}info(e,t=3){this.msg(e,t,"info")}warn(e,t=3){this.msg(e,t,"warning")}err(e,t=3){this.msg(e,t,"error")}success(e,t=3){this.msg(e,t,"success")}},Jn=globalThis.SysConfig,Qn=!1,er=!1;Function.prototype.promise=function(...e){const t=this;return function(){const n=e||[];return new Promise((e,r)=>{n.push(function(t,n){t?r(t):e(n)}),t.apply(t,n)})}()};var tr={Config:globalThis.SysConfig,EventBus:ce,DefaultProxyClient:null,Axios:j,Message:new Zn(void 0,ce),LayoutMap:new Map,getLayoutManager:e=>{if(!ir.WidgetConfigList||0===ir.WidgetConfigList.length)return;const t=ir.WidgetConfigList.find(t=>t.id===e);if(t){const e=t.layoutID;if(e&&ir.LayoutMap.has(e))return ir.LayoutMap.get(e)}},Logger:e=>{Qn||(Jn.UI.ProductLog?Yn.enableAll():Yn.setDefaultLevel("warn"),Qn=!0);const t=e||"default";return Yn.getLogger(t)},Loading:(e="end")=>{if("end"===e)setTimeout(()=>{document.getElementById("apploading")?.remove()},300),er=!0;else if(e)if(er){const t=`加载Widget:${e}……`;ce.emit("statusmessage",t)}else{const t=document.getElementById("app-loading-info");t&&(t.innerHTML=`正在加载:${e}……`)}}},nr="99,111,110,115,116,32,118,97,108,105,100,75,101,121,115,61,91,39,54,65,50,53,51,65,69,70,54,54,68,48,69,56,65,66,57,54,49,55,49,55,51,49,50,52,50,66,65,70,53,65,39,44,39,66,54,53,48,52,57,53,55,54,55,49,49,56,66,50,70,50,50,48,55,67,66,52,69,70,51,49,51,52,49,65,68,39,44,39,54,66,52,66,57,49,65,67,52,51,56,70,70,57,69,54,65,69,52,68,49,49,70,48,50,70,56,51,50,68,51,52,39,44,39,70,54,69,52,57,50,52,57,57,69,70,57,57,48,65,49,50,66,57,66,57,55,48,66,54,57,68,69,68,49,48,70,39,44,39,57,67,55,55,56,67,66,69,66,56,54,51,70,68,68,52,70,49,66,65,51,56,49,52,50,69,48,52,53,53,69,49,39,44,39,70,66,66,55,57,67,57,66,51,57,53,70,65,70,55,49,53,56,50,50,65,70,52,50,52,57,54,56,70,48,54,67,39,44,39,53,57,51,66,67,70,68,50,54,70,48,53,53,53,65,53,50,57,51,67,68,49,49,56,55,49,56,53,49,68,52,52,39,44,39,50,48,54,55,69,66,51,54,57,55,69,55,49,67,53,49,53,68,68,68,54,49,65,53,52,70,67,57,51,53,53,69,39,44,39,70,52,65,50,68,67,69,65,48,53,56,69,68,52,55,48,53,67,67,52,70,54,69,66,51,70,67,70,48,66,53,66,39,93,59,105,102,40,83,121,115,67,111,110,102,105,103,46,75,69,89,38,38,118,97,108,105,100,75,101,121,115,46,105,110,100,101,120,79,102,40,83,121,115,67,111,110,102,105,103,46,75,69,89,41,62,61,48,41,123,99,111,110,115,111,108,101,46,108,111,103,40,39,117,115,105,110,103,32,97,117,116,104,111,114,105,122,101,100,32,120,102,114,97,109,101,108,105,98,46,84,104,97,110,107,32,121,111,117,33,39,41,59,114,101,116,117,114,110,32,103,108,111,98,79,98,106,125,101,108,115,101,32,105,102,40,33,83,121,115,67,111,110,102,105,103,46,75,69,89,41,123,105,102,40,110,101,119,32,68,97,116,101,40,50,48,50,55,44,49,44,49,41,60,110,101,119,32,68,97,116,101,40,41,41,123,105,102,40,99,111,110,102,105,114,109,40,39,84,104,101,32,88,70,114,97,109,101,108,105,98,32,116,114,105,97,108,32,104,97,115,32,101,120,112,105,114,101,100,46,32,84,111,32,112,117,114,99,104,97,115,101,32,97,32,102,117,108,108,32,118,101,114,115,105,111,110,32,112,108,101,97,115,101,32,99,111,110,116,97,99,116,58,122,111,114,114,111,119,109,64,49,50,54,46,99,111,109,46,32,83,101,108,101,99,116,32,79,75,32,116,111,32,110,97,118,105,103,97,116,101,32,116,111,32,116,104,101,32,103,105,116,104,117,98,46,99,111,109,47,122,111,114,114,111,119,109,32,85,82,76,46,39,41,41,123,108,111,99,97,116,105,111,110,46,104,114,101,102,61,39,104,116,116,112,115,58,47,47,103,105,116,104,117,98,46,99,111,109,47,122,111,114,114,111,119,109,39,125,101,108,115,101,123,116,104,114,111,119,39,84,104,101,32,116,114,105,97,108,32,112,101,114,105,111,100,32,104,97,115,32,101,120,112,105,114,101,100,33,39,59,125,125,101,108,115,101,123,99,111,110,115,111,108,101,46,108,111,103,40,39,84,104,101,32,116,114,105,97,108,32,100,101,97,100,108,105,110,101,32,102,111,114,32,116,104,105,115,32,120,102,114,97,109,101,108,105,98,32,108,105,98,114,97,114,121,32,105,115,32,74,97,110,117,97,114,121,32,49,44,32,50,48,50,55,46,39,41,59,114,101,116,117,114,110,32,103,108,111,98,79,98,106,125,125,116,104,114,111,119,39,84,104,101,32,88,70,114,97,109,101,108,105,98,32,75,69,89,32,105,115,32,105,110,118,97,108,105,100,33,32,84,111,32,112,117,114,99,104,97,115,101,32,97,32,102,117,108,108,32,118,101,114,115,105,111,110,32,112,108,101,97,115,101,32,99,111,110,116,97,99,116,58,122,111,114,114,111,119,109,64,49,50,54,46,99,111,109,32,33,39,59".split(",").map(e=>Number(e));new Function("globObj","isdev",String.fromCharCode(...nr));var rr,ir=tr;!function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.centerBack=2]="centerBack",e[e.centerMain=3]="centerMain",e[e.centerFront=4]="centerFront",e[e.left=5]="left",e[e.right=6]="right"}(rr||(rr={}));var or=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},sr=or(d({name:"SuspenseWithError",setup(){const e=C(null);return w(t=>(e.value="当前页面存在问题,无法渲染……",console.error("onErrorCaptured",t),!0)),{error:e}}}),[["render",function(e,t,r,i,o,a){return e.error?T(e.$slots,"error",{key:0},()=>[u(O(e.error),1)]):(x(),s(n,{key:1},{default:P(()=>[T(e.$slots,"default")]),fallback:P(()=>[T(e.$slots,"fallback",{},()=>[t[0]||(t[0]=l("div",null,"加载中……",-1))])]),_:3}))}]]),ar=d({name:"RouterTransition",__name:"RouterTransition",setup:e=>(e,n)=>{const r=A("router-view");return x(),s(sr,null,{default:P(()=>[f(r,null,{default:P(({Component:e,route:n})=>[(x(),s(t,null,[n.meta.keepAlive?(x(),s(M(e),{key:n.name})):a("",!0)],1024)),n.meta.keepAlive?a("",!0):(x(),s(M(e),{key:n.name}))]),_:1})]),_:1})}}),cr=class{static isNullOrEmpty=e=>null===e||""===e||void 0===e||0===e.length;static isNotEmpty=e=>null!==e&&""!==e&&void 0!==e&&0!==e.length;static toHump(e){return e.replace(/[\-\/\_](\w)/g,(e,t)=>t.toUpperCase()).replace("views","")}static getFileName(e){const t=e.lastIndexOf("/")+1;let n=e.substring(t);return n=decodeURI(n.split("?")[0]),n}static UpperFirst(e){return(e=e.toLowerCase()).replace(/\b\w|\s\w/g,e=>e.toUpperCase())}},lr=class e{hproseURL;client;hproseProxy;static httpTransport;constructor(t){if(t&&!cr.isNullOrEmpty(t)){if(e.httpTransport||(e.httpTransport=new G),this.client=new F(t),!this.client)throw Error("Hprose Client初始化错误");this.hproseURL=t,this.init()}}init(){this.client&&this.client.useServiceAsync().then(e=>{this.hproseProxy=e}).catch(e=>{String(e).indexOf("find this method ~")>0?(this.hproseProxy=this.client?.useService(),console.warn("旧版本不支持useServiceAsync")):ce.emit(Kn.HproseServiceErrorEvent,"初始化默认Hprose!")})}async getProxy(){if(!this.hproseProxy)try{this.client&&(this.hproseProxy=await this.client.useServiceAsync())}catch(e){console.warn(e),this.hproseProxy=this.client?.useService()}return this.hproseProxy}async invoke(e,t,n){if(this.client)return await this.client.invoke(e,t,n)}encode(e,t,n){return this.client?this.client.codec.encode(e,t,n):void 0}decode(e,t){return this.client?this.client.codec.decode(e,t):void 0}},ur=class{prefixKey;storage;constructor(e="",t=globalThis.localStorage){this.prefixKey=e,this.storage=t}getKey(e){return`${this.prefixKey}${e}`.toUpperCase()}set(e,t,n=604800){const r=JSON.stringify({value:t,expire:null!==n?(new Date).getTime()+1e3*n:null});this.storage.setItem(this.getKey(e),r)}get(e,t=null){const n=this.storage.getItem(this.getKey(e));if(n)try{const{value:t,expire:r}=JSON.parse(n);if(null===r||r>=Date.now())return t;this.remove(this.getKey(e))}catch(e){return t}return t}getJsonObject(e){const t=this.storage.getItem(this.getKey(e));if(t)try{const n=JSON.parse(t);if(null===n.expire||n.expire>=Date.now())return n;this.remove(this.getKey(e))}catch(e){return}}remove(e){this.storage.removeItem(this.getKey(e))}clear(){this.storage.clear()}setCookie(e,t,n=604800){document.cookie=`${this.getKey(e)}=${t}; Max-Age=${n}`}getCookie(e){const t=document.cookie.split("; ");for(let n=0,r=t.length;n<r;n++){const r=t[n].split("=");if(r[0]===this.getKey(e))return r[1]}return""}removeCookie(e){this.setCookie(e,1,-1)}clearCookie(){const e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(let t=e.length;t--;)document.cookie=e[t]+"=0;expire="+new Date(0).toUTCString()}},fr=new ur("",globalThis.localStorage),dr="access_token",hr=new ur("user",globalThis.localStorage);function pr(){return hr.get(dr)}function gr(){hr.remove(dr)}function mr(){return pr()?.refresh}var vr=class{hproseClient;hpProxyObj;defaultContext=new W;constructor(e){this.hproseClient=new lr(e),this.hpProxyObj=null}getClientContext(e,t){const n={};t&&(n.requestHeaders=t),n.httpRequestHeaders=e||{};const r=n.httpRequestHeaders,i=pr();return i&&(r.token=i.token),ir.SystemID&&(r.sysid=ir.SystemID,ir.SystemGroup&&(r.sysgroup=ir.SystemGroup)),new W(n)}async getHproseProxy(){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");if(!this.hpProxyObj){const e=await this.hproseClient.getProxy();this.hpProxyObj=e}return this.hpProxyObj||ce.emit(Kn.HproseServiceErrorEvent,"HproseProxy对象为空,无法调用Hprose方法!"),this.hpProxyObj}async hproseInvoke(e,t,n){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");return await this.hproseClient.invoke(e,t,n)}async hproseInvokeContext(e,t,...n){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");const r=pr();return console.log(r,"userToken3"),r&&(t||(t=new W({httpRequestHeaders:{token:r.token}}))),await this.hproseClient.invoke(e,n,t)}async hproseInvokeEncode(e){const t=new U(e).toBytes(),n=await(this.hproseClient.client?.request(t,this.defaultContext));return n?this.hproseClient.client?.codec.decode(n,this.defaultContext):n}encodeRequest(e,...t){const n=(this.hproseClient.client?.codec)?.encode(e,t,this.defaultContext);return U.toString(n)}},yr=ie((e,t)=>{!function(n){if("object"==typeof e)t.exports=n();else if("function"==typeof define&&define.amd)define(n);else{var r;try{r=window}catch(e){r=self}r.SparkMD5=n()}}(function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function a(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function u(){this.reset()}return a(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,s,a,c=this.byteLength,l=t(n,c),u=c;return r!==e&&(u=t(r,c)),l>u?new ArrayBuffer(0):(i=u-l,o=new ArrayBuffer(i),s=new Uint8Array(o),a=new Uint8Array(this,l,i),s.set(a),o)}}(),u.prototype.append=function(e){return this.appendBinary(c(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=l(n)),this.reset(),n},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var r,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,e),s=0;s<16;s+=1)e[s]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},u.hash=function(e,t){return u.hashBinary(c(e),t)},u.hashBinary=function(e,t){var n=a(o(e));return t?l(n):n},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,r,o,s,a=(r=this._buff.buffer,o=e,(s=new Uint8Array(r.byteLength+o.byteLength)).set(new Uint8Array(r)),s.set(new Uint8Array(o),r.byteLength),s),c=a.length;for(this._length+=e.byteLength,t=64;t<=c;t+=64)n(this._hash,i(a.subarray(t-64,t)));return this._buff=t-64<c?new Uint8Array(a.buffer.slice(t-64)):new Uint8Array(0),this},u.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=l(n)),this.reset(),n},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e){var t,n=e.length,r=new ArrayBuffer(n),i=new Uint8Array(r);for(t=0;t<n;t+=1)i[t]=e.charCodeAt(t);return i}(e.buff),u.prototype.setState.call(this,e)},u.ArrayBuffer.prototype.destroy=u.prototype.destroy,u.ArrayBuffer.prototype._finish=u.prototype._finish,u.ArrayBuffer.hash=function(e,t){var r=a(function(e){var t,r,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,i(e.subarray(t-64,t)));for(r=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}(new Uint8Array(e)));return t?l(r):r},u})}),wr=oe(yr(),1),br=Object.prototype.toString;function Sr(e,t){return br.call(e)===`[object ${t}]`}function xr(e){return Sr(e,"Function")}var Er=e=>void 0!==e,Cr=e=>!Er(e);function kr(e){return null===e}function Tr(e){return Cr(e)&&kr(e)}function Ar(e){return Cr(e)||kr(e)}var Mr=e=>null!=e&&null!==e&&Sr(e,"Object");function zr(e){return Sr(e,"Date")}function Or(e){return Sr(e,"Number")}function Dr(e){return Sr(e,"AsyncFunction")}function Lr(e){return Sr(e,"Promise")&&Mr(e)&&xr(e.then)&&xr(e.catch)}function _r(e){return Sr(e,"String")}function Rr(e){return!0===e||!1===e||Sr(e,"Boolean")}function Ir(e){return e&&Array.isArray(e)}var Pr=()=>"undefined"!=typeof window,Nr=e=>"undefined"!=typeof window&&Sr(e,"Window"),Br=e=>br.call(e).startsWith("[object HTML")&&!!e.tagName,jr="undefined"==typeof window;function Fr(e){return e&&["IMAGE","IMG"].includes(e.tagName)}function Wr(e){return null==e||(_r(e)||Ir(e)?0===e.length:!!Mr(e)&&"{}"===JSON.stringify(e))}function Ur(e){return Sr(e,"Error")}function $r(e){return Sr(e,"WeakSet")}function Hr(e){return Sr(e,"WeakMap")}function qr(e){return Sr(e,"Symbol")}function Gr(e){return Sr(e,"Map")}var Vr=e=>/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(e);function Xr(e){return/^\s*[{[]/.test(String(e))}function Yr(e){return e.includes("<kml ")&&e.includes('xmlns="http://www.opengis.net/kml/')}function Kr(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}var Zr=[],Jr=void 0,Qr=class e{static addHandler(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}static removeHandler(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):delete e["on"+t]}static windowResizeHandler(t){e.addHandler(window,"resize",t)}static offWindowResizeHandler(t){e.removeHandler(window,"resize",t)}static fullscreenEnabled(){const e=globalThis.document;return document.fullscreenEnabled||window.fullScreen||e.mozFullscreenEnabled||e.webkitIsFullScreen}static fullScreen(e,t){if(t){const e=globalThis.document;let t=globalThis.document.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitCancelFullScreen;if(void 0!==t&&t)t.call(globalThis.document);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}else{let t=e;t||(t=globalThis.document.documentElement);let n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(void 0!==n&&n)n.call(t);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}}static requestFullScreen(e=globalThis.document.documentElement){let t=e||globalThis.document.documentElement;var n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var r=new window.ActiveXObject("WScript.Shell");null!==r&&r.SendKeys("{F11}")}}static exitFullScreen(){const e=globalThis.document;var t=document.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.webkitExitFullscreen;if(t)t.call(document);else if(void 0!==window.ActiveXObject){var n=new window.ActiveXObject("WScript.Shell");null!==n&&n.SendKeys("{F11}")}}static fullScreenElement(){return globalThis.document.fullscreenElement||globalThis.document.webkitFullscreenElement||globalThis.document.mozFullscreenElement||globalThis.document.msFullscreenElement}static isFullScreen(){return!!e.fullScreenElement()}static onFullScreenChanged(t){let n;"onfullscreenchange"in globalThis.document?n="fullscreenchange":"onwebkitfullscreenchange"in globalThis.document?n="webkitfullscreenchange":"onmozfullscreenchange"in globalThis.document&&(n="mozfullscreenchange"),n?document.addEventListener(n,function(){t(e.isFullScreen())}):document.addEventListener("MSFullscreenChange",function(){t(e.isFullScreen())})}static stringifyCircularHandler(e,t){if("object"==typeof t&&null!==t){if(-1!==Zr.indexOf(t))return;Zr.push(t)}return t}static jsonStringify(t){if(!t)return"";const n=JSON.stringify(t,e.stringifyCircularHandler);return Zr.length=0,n}static jsonParse(t){const n=e.jsonStringify(t);if(n.length>1)return JSON.parse(n)}static getObjectURL(e){let t;const n=window;return null!=n.createObjcectURL?t=n.createOjcectURL(e):null!=globalThis.URL?t=globalThis.URL.createObjectURL(e):null!=globalThis.webkitURL&&(t=globalThis.webkitURL.createObjectURL(e)),t}static getFileShortMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e,o=new wr.default.ArrayBuffer,s=new FileReader;s.onload=function(e){o.append(e.target?.result),t({isOK:!0,data:o.end(!1)})},s.onerror=function(){const e="计算文件简单摘要错误!";console.warn(e),t({isOK:!1,data:e})},function(){const e=2097152>=i.size?i.size:2097152;s.readAsArrayBuffer(r.call(i,0,e))}()}static getFileMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e,o=2097152,s=Math.ceil(i.size/o);let a=0;const c=new wr.default.ArrayBuffer,l=new FileReader;function u(){const e=a*o,t=e+o>=i.size?i.size:e+o;l.readAsArrayBuffer(r.call(i,e,t))}l.onload=function(e){c.append(e.target?.result),a++,a<s?u():t({isOK:!0,data:c.end(!1)})},l.onerror=function(){const e=`${i.name}:计算文件简单摘要错误!`;console.warn(e),t({isOK:!1,data:e})},u()}static MD5(e,t=!1){return wr.default.hash(e,t)}static copyTextByCommand(e){return new Promise((t,n)=>{const r=document.createElement("input");r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),r.remove(),t(!0)})}static copyText=t=>navigator.clipboard?navigator.clipboard.writeText(t).then(function(){return!0},function(e){return!1}):e.copyTextByCommand(t);static copyElementTextByCommand(e){const t=document.createRange();t.selectNode(document.getElementById(e));const n=globalThis.getSelection();n.rangeCount>0&&n.removeAllRanges(),n.addRange(t);try{return document.execCommand("copy"),n.removeRange(t),!0}catch(e){return n.removeRange(t),console.error("Command复制文本错误",e),!1}}static copyElementText(t){if(!navigator.clipboard)return e.copyElementTextByCommand(t);const n=document.createRange();n.selectNode(document.getElementById(t));const r=globalThis.getSelection();return r.rangeCount>0&&r.removeAllRanges(),r.addRange(n),navigator.clipboard.writeText(r).then(function(){return r.removeRange(n),!0},function(e){return r.removeRange(n),console.error("Clipboard复制文本错误",e),!1})}static setGrayMode(t){e.toggleClass(t,"grayMode",document.documentElement)}static toggleClass(e,t,n){const r=n||document.body;let{className:i}=r;i=i.replace(t,""),r.className=e?`${i} ${t} `:i}static setCssVar(e,t,n=document.documentElement){n.style.setProperty(e,t)}static dispatchWindowResize(){const e=new Event("resize");globalThis.dispatchEvent(e)}static dispatchElementEvent(e,t="click",n){let r;if(r=_r(e)?document.getElementById(e):e,r){const e=new Event(t,{bubbles:!0,cancelable:!0});n&&r.addEventListener("ev",e=>{n(e)},!1),r.dispatchEvent(e)}}static getRandomNum(e,t){var n=t-e;return e+Math.round(Math.random()*n)}static merge(e={},t={}){let n,r,i,o;for(e||(e={}),r=0,i=t.length;r<i;r++)for(n in o=t[r],o)e[n]=o[n];return e}static setOptions(e,t){e.hasOwnProperty("options")||(e.options=e.options?Object.create(e.options):{});for(let n in t)e.options[n]=t[n];return e.options}static formatNum(e,t){let n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}static trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}static splitWords(e){return this.trim(e).split(/\s+/)}static emptyImageUrl(){return"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}static debounce(e,t){let n=null;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}static throttle(e,t){let n=0;return(...r)=>{const i=Date.now();i-n>=t&&(e.apply(this,r),n=i)}}static dataURLtoBlob(e){let t=e.split(",");if(!t||0===t.length)return;let n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=r.length,o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}static getElement(e){return"string"==typeof e?document.getElementById(e):e}static getStyle(e,t){let n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){let r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}static create(e,t,n){let r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}static removeElement(e){let t=e.parentNode;t&&t.removeChild(e)}static emptyElement(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static hasClass(e,t){if(void 0!==e.classList)return e.classList.contains(t);let n=this.getClass(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}static addClass(e,t){if(void 0!==e.classList){let n=this.splitWords(t);for(let t=0,r=n.length;t<r;t++)e.classList.add(n[t])}else if(!this.hasClass(e,t)){let n=this.getClass(e);this.setClass(e,(n?n+" ":"")+t)}}static removeClass(e,t){void 0!==e.classList?e.classList.remove(t):this.setClass(e,this.trim((" "+this.getClass(e)+" ").replace(" "+t+" "," ")))}static setClass(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}static getClass(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}static createSvgElement(e,t,n,r){let i=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");i.setAttribute("class","svg-path"),i.setAttribute("width",e),i.setAttribute("height",t),i.setAttribute("viewBox",`0 0 ${e} ${t}`);let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",n),i.appendChild(o),r&&r.appendChild(i),i}static parseDom(e,t=!0,n=""){t=t??!1;let r=document.createElement("div");return r.className=n||"",r.innerHTML=e,t?r:r.childNodes}static createVideoHTML(e,t,n){let r=this.create("video",t,n),i=this.create("source","",r);i.setAttribute("src",e),i.setAttribute("type","video/map4");let o=this.create("source","",r);return o.setAttribute("src",e),o.setAttribute("type","video/quicktime"),r}static readFilePromise(e,t="ArrayBuffer",n="UTF-8"){return new Promise((r,i)=>{const o=new FileReader;switch(t){case"ArrayBuffer":o.readAsArrayBuffer(e);break;case"Text":o.readAsText(e,n);break;case"BinaryString":o.readAsBinaryString(e);break;case"DataURL":case"FileBytes":o.readAsDataURL(e)}o.onload=function(){if(o.result)if("FileBytes"===t){const e=o.result,t=e.indexOf("64,");r(e.substring(t+3))}else r(o.result);else i(o)},o.onerror=function(){i(o)}})}static readFileBytes(e){return this.readFilePromise(e,"FileBytes")}static promisify(e,...t){return function(){return new Promise((n,r)=>{t.push(function(e,t){e?r(e):n(t)}),e.apply(this,t)})}}static wait(e){return new Promise(t=>setTimeout(t,e))}static blockEvent(e){e.preventDefault(),e.stopPropagation()}static bindDropFileHanlder(t,n){if(!t)throw Error("传入Element对象不能为空!");let r;if(_r(t)){let e=document.getElementById(t);if(e)r=e;else{const n=document.getElementsByClassName(t);if(!n||0==n.length)throw Error("未找到对应id或类名的HtmlElement对象!");e=n[0],r=e}}else{if(!Br(t))throw Error("ele参数只能为string 或 Element对象!");r=t}r&&(r.addEventListener("dragenter",this.blockEvent,!1),r.addEventListener("dragover",this.blockEvent,!1),r.addEventListener("drop",function(t){e.blockEvent(t),n(t.dataTransfer.files)},!1))}static getInputElement(){var e=document.activeElement;return!e||"INPUT"!=e.tagName&&"TEXTAREA"!=e.tagName&&"true"!=e.contentEditable?null:e}static guessPasteTextToFileName(e,t){let n,r=t;return _r(e)?r=(Xr(e)?"json":Yr(e)&&"kml")||"text":(Mr(e)&&e.type||Ir(e))&&(r="json"),"text"==r?n="pasted.txt":"kml"==r?n="pasted.kml":"json"==r&&(n="pasted.json"),n}static pasteEventHanlder(e,t){const n=this;if(n.getInputElement())return;n.blockEvent(e);const r=e.clipboardData,i=Array.from(r.types||[]).join(","),o=Array.from(r.items||[]);let s;if(i.includes("text/plain")){const e=r.getData("text/plain");if(":"===e[1])return t(e);if(Vr(e))return t(e);const i=n.guessPasteTextToFileName(e);if(!i||"pasted.txt"===i)return t(e);{const t=new Blob([e]);s=[new File([t],i)]}}else s=o.map(function(e){return"file"==e.kind?e.getAsFile():null});s=s.filter(Boolean),s.length?t(s):t(void 0)}static onPasteHandler(t,n=document){const r=this;Jr=e=>{r.pasteEventHanlder(e,t)},e.addHandler(n,"paste",Jr)}static offPasteHandler(t=document){Jr&&e.removeHandler(t,"paste",Jr)}static loadScript(e){var t=document.createElement("script");t.type="text/javascript",t.src=e,document.head.appendChild(t)}static loadJsCode(e){var t=document.createElement("script");t.type="text/javascript";try{t.appendChild(document.createTextNode(e))}catch(n){t.text=e}document.body.appendChild(t)}static deepCopy(e){return structuredClone(e)}static deepClone=this.deepCopy;static deepClone2(e,t=new WeakMap){if(!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);const n=Array.isArray(e)?[]:{};t.set(e,n);for(let r in e)n[r]=this.deepClone2(e[r],t);return n}},ei=new Map,ti=function(e,t,n){ir.Config?.ServiceURL&&ir.Config?.ServiceURL.DefaultHproseAPI&&(ir.Config.DefaultHproseAPI=ir.Config?.ServiceURL.DefaultHproseAPI,ir.DefaultProxyClient=new vr(ir.Config?.ServiceURL.DefaultHproseAPI));const r=ir.Config.UI.GrayMode;r&&Qr.setGrayMode(r);const i=new Zn(e,ir.EventBus);ir.Message=i,ir.SystemID=t,ir.SystemGroup=n,ir.EventBus.on(Kn.HproseServiceErrorEvent,e=>{const t=`当前后台业务服务不可用!${e}`;console.warn("Hprose请求错误",t)}),ir.EventBus.on(Kn.WebAPIErrorEvent,e=>{const t=`WebAPI后台服务不可用!${e}`;console.warn("WebAPI请求错误",t)}),ir.EventBus.on(Kn.AxiosRequestErrorEvent,e=>{const t=`Http请求'${e.code}'错误: ${e.message}`;console.warn("Http请求错误",t)}),ir.EventBus.on(Kn.CommonWarnEvent,e=>{i.warn(e)})};function ni(e){if(e&&cr.isNotEmpty(e)){if(ei.has(e))return ei.get(e);{const t=new vr(e);return ei.set(e,t),t}}}function ri(e){const t=ni(e);return t&&(ir.DefaultProxyClient=t),t}var ii=class{layoutState;layoutMap=new Map;preConditionMap=new Map;widgetsLoadedSet=new Set;widgetConfigDiction=new Map;_LayoutID;_mapItemRefs;constructor(e,t,n,r){if(this.layoutState=e,this._LayoutID=t,this._mapItemRefs=r,ir.RightWidgetConfigMap){const e=ir.RightWidgetConfigMap.get(t);e&&e.forEach(e=>{if(this.widgetConfigDiction.set(e.id,e),e.afterid)if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}else{const e=ir.WidgetConfigList??n;e&&e.forEach(e=>{if(e.layoutID===t&&(this.widgetConfigDiction.set(e.id,e),e.afterid))if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}}getLayoutID(){return this._LayoutID}getWidgetConfigMap(){return this.widgetConfigDiction}preloadWidgets(){if(this.widgetConfigDiction.size>0)for(const[e,t]of this.widgetConfigDiction)t.preload&&!t.afterid&&this._loadWidget(t)}async loadWidget(e){if(!e)return;let t;if(Mr(e)?t=e:_r(e)&&(t=this.widgetConfigDiction.get(e)),t){if(t.afterid){if(this.isWidgetLoaded(t.afterid))return this._loadWidget(t);{const n=this,r=t.afterid,i=t;function o(e){e.layoutID===n._LayoutID&&e.widgetID===r&&(n._loadWidget(i),ir.EventBus.off(Kn.WidgetLoadedEvent,o))}return ir.EventBus.on(Kn.WidgetLoadedEvent,o),this.loadWidget(t.afterid)}}return this._loadWidget(t)}}loadOtherDependenceWidgets(e){this.preConditionMap.has(e)&&this.preConditionMap.get(e)?.forEach(e=>{e.preload&&this._loadWidget(e)})}_loadWidget(e){if(!this.widgetsLoadedSet.has(e.id))return e.component?e.component().then(t=>{if(t.default){const n=p(t.default);n.widgetConfig=e,e.instance=n,this.getContainerComponents(e.container).set(e.id,n),this.widgetsLoadedSet.add(e.id),m().then(()=>{ir.EventBus.emit(Kn.WidgetLoadedEvent,{layoutID:this._LayoutID,widgetID:e.id}),this.loadOtherDependenceWidgets(e.id)})}}).catch(t=>{ir.Logger().error("加载Widget失败:",e.id,t),ir.EventBus.emit(Kn.WidgetLoadedErrorEvent,e)}):void 0;this.changeWidgetVisible(e.id,!0)}hasDependentWidgets(e){let t=!1;if(this.preConditionMap.has(e)){const n=this.preConditionMap.get(e);if(n)for(const e of n)if(this.isWidgetLoaded(e.id)){t=!0;break}}return t}unloadWidget(e){if(!e)return;if(!this.isWidgetLoaded(e))return;const t=this.getWigetItem(e);if(t){if(this.preConditionMap.has(e)){const t=this.preConditionMap.get(e);if(t)for(const e of t)this.unloadWidget(e.id)}this.getContainerComponents(t.container).delete(e),this.widgetsLoadedSet.delete(e),this._mapItemRefs&&(this.changeWidgetVisible(e,!1),this._mapItemRefs.delete(e)),ir.EventBus.emit(Kn.WidgetUnLoadedEvent,{layoutID:this._LayoutID,widgetID:e})}}isWidgetLoaded(e){return this.widgetsLoadedSet.has(e)}splitTwoContainer(e=!1){const t=this.layoutState.centerMainContainer.value,n=this.layoutState.centerBackContainer.value;e?(t&&(t.style.left="0",t.style.width="100%"),n&&(n.style.width="100%")):(t&&(t.style.left="50%",t.style.width="50%"),n&&(n.style.width="50%"))}getLayoutContainer(e){switch(e){case rr.top:return this.layoutState.topContainer.value;case rr.bottom:return this.layoutState.bottomContainer.value;case rr.left:return this.layoutState.leftContainer.value;case rr.right:return this.layoutState.rightContainer.value;case rr.centerBack:return this.layoutState.centerBackContainer.value;case rr.centerMain:return this.layoutState.centerMainContainer.value;case rr.centerFront:return this.layoutState.centerFrontContainer.value}}changeContainerVisible(e,t=!1){const n=this.getLayoutContainer(e);n&&(n.style.visibility=t?"visible":"hidden")}changeWidgetVisible(e,t=!1){const n=this.getWidgetComponent(e);n&&n.changeVisible&&n.changeVisible(t)}isWidgetVisible(e){const t=this.getWidgetComponent(e);return!!t&&(!t.isShow||t.isShow.value)}getWidgetComponent(e){if(this.widgetsLoadedSet.has(e)&&this._mapItemRefs)return this._mapItemRefs.get(e)}getWigetItem(e){return this.widgetConfigDiction.get(e)}getIWigetConfig(e){return this.getWigetItem(e)}getGroupWigetItems(e){const t=[];for(const[n,r]of this.widgetConfigDiction)r.group===e&&t.push(r);return t}getContainerComponents(e){if(this.layoutMap.has(e))return this.layoutMap.get(e);{const t=z(new Map);return this.layoutMap.set(e,t),t}}getWidgetLoadedIDList(){const e=[];return this.widgetsLoadedSet.forEach(t=>{e.push(t)}),e}unloadAllWidgets(e){const t=[];this.widgetsLoadedSet.forEach(n=>{e&&e.length>0?e.findIndex(e=>e===n)<0&&t.push(n):t.push(n)}),t.forEach(e=>this.unloadWidget(e))}unloadWidgets(e){e&&e.length>0&&e.forEach(e=>{this.unloadWidget(e)})}static getLayoutManager(e,t){if(t){const n=t.find(t=>t.id===e);if(n&&n.layoutID)return ir.LayoutMap.get(n.layoutID)}}dispose(){this.unloadAllWidgets(),this.widgetConfigDiction.clear(),this.widgetsLoadedSet.clear(),this._LayoutID?ir.LayoutMap.delete(this._LayoutID):(ir.LayoutMap.delete(""),ir.LayoutManager=void 0)}},oi=["id"],si=or(d({__name:"layout",props:{widgetConfig:{type:Array,required:!1,default:void 0},layoutID:{type:String,default:"layoutDefault"},layoutStyle:{type:Object},noLeft:{type:Boolean,default:!1},noRight:{type:Boolean,default:!1},noBottom:{type:Boolean,default:!1},noTop:{type:Boolean,default:!1},noFront:{type:Boolean,default:!1},noBack:{type:Boolean,default:!1},noMain:{type:Boolean,default:!1}},emits:["containerLoaded"],setup(t,{emit:n}){const r=t,i=n,u=r.layoutID,d=_("topContainer"),h=_("centerBackContainer"),p=_("centerMainContainer"),m=_("centerFrontContainer"),v=_("bottomContainer"),w=_("leftContainer"),E=_("rightContainer"),C=o(()=>!r.noTop),A=o(()=>!r.noMain),z=o(()=>!r.noBack),O=o(()=>!r.noFront),D=o(()=>!r.noLeft),L=o(()=>!r.noRight),R=o(()=>!r.noBottom),I=new Map,P=(e,t)=>{e&&I.set(t,e)},N=new ii({topContainer:d,centerBackContainer:h,centerMainContainer:p,centerFrontContainer:m,bottomContainer:v,leftContainer:w,rightContainer:E},u,r.widgetConfig,I);function B(e){return N.getContainerComponents(e)}const j=void 0,F=o(()=>C?B(rr.top):j),W=o(()=>A?B(rr.centerMain):j),U=o(()=>z?B(rr.centerBack):j),$=o(()=>O?B(rr.centerFront):j),H=o(()=>D?B(rr.left):j),q=o(()=>L?B(rr.right):j),G=o(()=>R?B(rr.bottom):j);function V(e){const t={...e.widgetConfig};return delete t.component,delete t.instance,delete t.preload,delete t.container,t.afterid&&delete t.afterid,t}const X=o(()=>r.layoutStyle);return N&&(u?ir.LayoutMap.set(u,N):(ir.LayoutManager=N,ir.LayoutMap.set("",N)),i("containerLoaded",{layoutID:u,layoutManager:N}),N.preloadWidgets()),b(()=>{N&&ir.EventBus.emit(Kn.LayoutContainerLoaded,{layoutID:u,layoutManager:N})}),S(()=>{N&&N.dispose()}),(t,n)=>(x(),c("div",{id:r.layoutID,class:"layoutContainer",style:y(X.value)},[C.value?(x(),c("div",{key:0,ref_key:"topContainer",ref:d,class:"topContainer"},[T(t.$slots,"top",{},void 0,!0),(x(!0),c(e,null,k(F.value,([e,t])=>(x(),s(M(t),g({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},V(t)),null,16))),128))],512)):a("",!0),l("div",null,[A.value?(x(),c("div",{key:0,ref_key:"centerMainContainer",ref:p,class:"centerdiv mainContainer"},[T(t.$slots,"main",{},()=>[f(ar)],!0),(x(!0),c(e,null,k(W.value,([e,t])=>(x(),s(M(t),g({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},V(t)),null,16))),128))],512)):a("",!0),z.value?(x(),c("div",{key:1,ref_key:"centerBackContainer",ref:h,class:"centerdiv backContainer"},[T(t.$slots,"back",{},void 0,!0),(x(!0),c(e,null,k(U.value,([e,t])=>(x(),s(M(t),g({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},V(t)),null,16))),128))],512)):a("",!0),O.value?(x(),c("div",{key:2,ref_key:"centerFrontContainer",ref:m,class:"centerdiv centerFrontContainer"},[T(t.$slots,"front",{},void 0,!0),(x(!0),c(e,null,k($.value,([e,t])=>(x(),s(M(t),g({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},V(t)),null,16))),128))],512)):a("",!0),D.value?(x(),c("div",{key:3,ref_key:"leftContainer",ref:w,class:"leftContainer"},[T(t.$slots,"left",{},void 0,!0),(x(!0),c(e,null,k(H.value,([e,t])=>(x(),s(M(t),g({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},V(t)),null,16))),128))],512)):a("",!0),L.value?(x(),c("div",{key:4,ref_key:"rightContainer",ref:E,class:"rightContainer"},[T(t.$slots,"right",{},void 0,!0),(x(!0),c(e,null,k(q.value,([e,t])=>(x(),s(M(t),g({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},V(t)),null,16))),128))],512)):a("",!0)]),R.value?(x(),c("div",{key:1,ref_key:"bottomContainer",ref:v,class:"bottomContainer"},[T(t.$slots,"bottom",{},void 0,!0),(x(!0),c(e,null,k(G.value,([e,t])=>(x(),s(M(t),g({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},V(t)),null,16))),128))],512)):a("",!0),T(t.$slots,"default",{},void 0,!0)],12,oi))}}),[["__scopeId","data-v-329ca633"]]),ai=d({name:"RouterTransition",__name:"RouterTransitionAnimate",props:{enterActive:{default:"animated fadeIn"},leaveActive:{default:"animated fadeOut"}},setup:e=>(n,r)=>{const o=A("router-view");return x(),s(sr,null,{default:P(()=>[f(o,null,{default:P(({Component:n,route:r})=>[f(i,{appear:"","enter-active-class":e.enterActive,"leave-active-class":e.leaveActive},{default:P(()=>[(x(),s(t,null,[r.meta.keepAlive?(x(),s(M(n),{key:r.name})):a("",!0)],1024)),r.meta.keepAlive?a("",!0):(x(),s(M(n),{key:r.name}))]),_:2},1032,["enter-active-class","leave-active-class"])]),_:1})]),_:1})}});function ci(){let e=[];const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var n=0;n<36;n++){const r=Math.floor(16*Math.random());e[n]=t.substring(r,r+1)}e[14]="4";const r=3&Number(e[19])|8;return e[19]=t.substring(r,r+1),e[8]=e[13]=e[18]=e[23]="-",e.join("").toLowerCase()}function li(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})}var ui={},fi=Uint8Array,di=Uint16Array,hi=Int32Array,pi=new fi([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),gi=new fi([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),mi=new fi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vi=function(e,t){for(var n=new di(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new hi(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},yi=vi(pi,2),wi=yi.b,bi=yi.r;wi[28]=258,bi[258]=28;for(var Si=vi(gi,0),xi=Si.b,Ei=Si.r,Ci=new di(32768),ki=0;ki<32768;++ki){var Ti=(43690&ki)>>1|(21845&ki)<<1;Ti=(61680&(Ti=(52428&Ti)>>2|(13107&Ti)<<2))>>4|(3855&Ti)<<4,Ci[ki]=((65280&Ti)>>8|(255&Ti)<<8)>>1}var Ai=function(e,t,n){for(var r=e.length,i=0,o=new di(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new di(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new di(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],f=a[e[i]-1]++<<u,d=f|(1<<u)-1;f<=d;++f)s[Ci[f]>>c]=l}else for(s=new di(r),i=0;i<r;++i)e[i]&&(s[i]=Ci[a[e[i]-1]++]>>15-e[i]);return s},Mi=new fi(288);for(ki=0;ki<144;++ki)Mi[ki]=8;for(ki=144;ki<256;++ki)Mi[ki]=9;for(ki=256;ki<280;++ki)Mi[ki]=7;for(ki=280;ki<288;++ki)Mi[ki]=8;var zi=new fi(32);for(ki=0;ki<32;++ki)zi[ki]=5;var Oi=Ai(Mi,9,0),Di=Ai(Mi,9,1),Li=Ai(zi,5,0),_i=Ai(zi,5,1),Ri=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Ii=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},Pi=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Ni=function(e){return(e+7)/8|0},Bi=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new fi(e.subarray(t,n))},ji=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Fi=function(e,t,n){var r=new Error(t||ji[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Fi),!n)throw r;return r},Wi=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new fi(0);var s=!n,a=s||2!=t.i,c=t.i;s&&(n=new fi(3*i));var l=function(e){var t=n.length;if(e>t){var r=new fi(Math.max(2*t,e));r.set(n),n=r}},u=t.f||0,f=t.p||0,d=t.b||0,h=t.l,p=t.d,g=t.m,m=t.n,v=8*i;do{if(!h){u=Ii(e,f,1);var y=Ii(e,f+1,3);if(f+=3,!y){var w=e[(O=Ni(f)+4)-4]|e[O-3]<<8,b=O+w;if(b>i){c&&Fi(0);break}a&&l(d+w),n.set(e.subarray(O,b),d),t.b=d+=w,t.p=f=8*b,t.f=u;continue}if(1==y)h=Di,p=_i,g=9,m=5;else if(2==y){var S=Ii(e,f,31)+257,x=Ii(e,f+10,15)+4,E=S+Ii(e,f+5,31)+1;f+=14;for(var C=new fi(E),k=new fi(19),T=0;T<x;++T)k[mi[T]]=Ii(e,f+3*T,7);f+=3*x;var A=Ri(k),M=(1<<A)-1,z=Ai(k,A,1);for(T=0;T<E;){var O,D=z[Ii(e,f,M)];if(f+=15&D,(O=D>>4)<16)C[T++]=O;else{var L=0,_=0;for(16==O?(_=3+Ii(e,f,3),f+=2,L=C[T-1]):17==O?(_=3+Ii(e,f,7),f+=3):18==O&&(_=11+Ii(e,f,127),f+=7);_--;)C[T++]=L}}var R=C.subarray(0,S),I=C.subarray(S);g=Ri(R),m=Ri(I),h=Ai(R,g,1),p=Ai(I,m,1)}else Fi(1);if(f>v){c&&Fi(0);break}}a&&l(d+131072);for(var P=(1<<g)-1,N=(1<<m)-1,B=f;;B=f){var j=(L=h[Pi(e,f)&P])>>4;if((f+=15&L)>v){c&&Fi(0);break}if(L||Fi(2),j<256)n[d++]=j;else{if(256==j){B=f,h=null;break}var F=j-254;if(j>264){var W=pi[T=j-257];F=Ii(e,f,(1<<W)-1)+wi[T],f+=W}var U=p[Pi(e,f)&N],$=U>>4;if(U||Fi(3),f+=15&U,I=xi[$],$>3&&(W=gi[$],I+=Pi(e,f)&(1<<W)-1,f+=W),f>v){c&&Fi(0);break}a&&l(d+131072);var H=d+F;if(d<I){var q=o-I,G=Math.min(I,H);for(q+d<0&&Fi(3);d<G;++d)n[d]=r[q+d]}for(;d<H;++d)n[d]=n[d-I]}}t.l=h,t.p=B,t.b=d,t.f=u,h&&(u=1,t.m=g,t.d=p,t.n=m)}while(!u);return d!=n.length&&s?Bi(n,0,d):n.subarray(0,d)},Ui=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},$i=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Hi=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return{t:Zi,l:0};if(1==i){var s=new fi(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,f=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=i-1;)a=n[n[l].f<n[f].f?l++:f++],c=n[l!=u&&n[l].f<n[f].f?l++:f++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var d=o[0].s;for(r=1;r<i;++r)o[r].s>d&&(d=o[r].s);var h=new di(d+1),p=qi(n[u-1],h,0);if(p>t){r=0;var g=0,m=p-t,v=1<<m;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});r<i;++r){var y=o[r].s;if(!(h[y]>t))break;g+=v-(1<<p-h[y]),h[y]=t}for(g>>=m;g>0;){var w=o[r].s;h[w]<t?g-=1<<t-h[w]++-1:++r}for(;r>=0&&g;--r){var b=o[r].s;h[b]==t&&(--h[b],++g)}p=t}return{t:new fi(h),l:p}},qi=function(e,t,n){return-1==e.s?Math.max(qi(e.l,t,n+1),qi(e.r,t,n+1)):t[e.s]=n},Gi=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new di(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return{c:n.subarray(0,r),n:t}},Vi=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Xi=function(e,t,n){var r=n.length,i=Ni(t+2);e[i]=255&r,e[i+1]=r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},Yi=function(e,t,n,r,i,o,s,a,c,l,u){Ui(t,u++,n),++i[256];for(var f=Hi(i,15),d=f.t,h=f.l,p=Hi(o,15),g=p.t,m=p.l,v=Gi(d),y=v.c,w=v.n,b=Gi(g),S=b.c,x=b.n,E=new di(19),C=0;C<y.length;++C)++E[31&y[C]];for(C=0;C<S.length;++C)++E[31&S[C]];for(var k=Hi(E,7),T=k.t,A=k.l,M=19;M>4&&!T[mi[M-1]];--M);var z,O,D,L,_=l+5<<3,R=Vi(i,Mi)+Vi(o,zi)+s,I=Vi(i,d)+Vi(o,g)+s+14+3*M+Vi(E,T)+2*E[16]+3*E[17]+7*E[18];if(c>=0&&_<=R&&_<=I)return Xi(t,u,e.subarray(c,c+l));if(Ui(t,u,1+(I<R)),u+=2,I<R){z=Ai(d,h,0),O=d,D=Ai(g,m,0),L=g;var P=Ai(T,A,0);for(Ui(t,u,w-257),Ui(t,u+5,x-1),Ui(t,u+10,M-4),u+=14,C=0;C<M;++C)Ui(t,u+3*C,T[mi[C]]);u+=3*M;for(var N=[y,S],B=0;B<2;++B){var j=N[B];for(C=0;C<j.length;++C){var F=31&j[C];Ui(t,u,P[F]),u+=T[F],F>15&&(Ui(t,u,j[C]>>5&127),u+=j[C]>>12)}}}else z=Oi,O=Mi,D=Li,L=zi;for(C=0;C<a;++C){var W=r[C];if(W>255){$i(t,u,z[257+(F=W>>18&31)]),u+=O[F+257],F>7&&(Ui(t,u,W>>23&31),u+=pi[F]);var U=31&W;$i(t,u,D[U]),u+=L[U],U>3&&($i(t,u,W>>5&8191),u+=gi[U])}else $i(t,u,z[W]),u+=O[W]}return $i(t,u,z[256]),u+O[256]},Ki=new hi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Zi=new fi(0),Ji=function(e,t,n,r,i,o){var s=o.z||e.length,a=new fi(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),l=o.l,u=7&(o.r||0);if(t){u&&(c[0]=o.r>>3);for(var f=Ki[t-1],d=f>>13,h=8191&f,p=(1<<n)-1,g=o.p||new di(32768),m=o.h||new di(p+1),v=Math.ceil(n/3),y=2*v,w=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&p},b=new hi(25e3),S=new di(288),x=new di(32),E=0,C=0,k=o.i||0,T=0,A=o.w||0,M=0;k+2<s;++k){var z=w(k),O=32767&k,D=m[z];if(g[O]=D,m[z]=O,A<=k){var L=s-k;if((E>7e3||T>24576)&&(L>423||!l)){u=Yi(e,c,0,b,S,x,C,T,M,k-M,u),T=E=C=0,M=k;for(var _=0;_<286;++_)S[_]=0;for(_=0;_<30;++_)x[_]=0}var R=2,I=0,P=h,N=O-D&32767;if(L>2&&z==w(k-N))for(var B=Math.min(d,L)-1,j=Math.min(32767,k),F=Math.min(258,L);N<=j&&--P&&O!=D;){if(e[k+R]==e[k+R-N]){for(var W=0;W<F&&e[k+W]==e[k+W-N];++W);if(W>R){if(R=W,I=N,W>B)break;var U=Math.min(N,W-2),$=0;for(_=0;_<U;++_){var H=k-N+_&32767,q=H-g[H]&32767;q>$&&($=q,D=H)}}}N+=(O=D)-(D=g[O])&32767}if(I){b[T++]=268435456|bi[R]<<18|Ei[I];var G=31&bi[R],V=31&Ei[I];C+=pi[G]+gi[V],++S[257+G],++x[V],A=k+R,++E}else b[T++]=e[k],++S[e[k]]}}for(k=Math.max(k,A);k<s;++k)b[T++]=e[k],++S[e[k]];u=Yi(e,c,l,b,S,x,C,T,M,k-M,u),l||(o.r=7&u|c[u/8|0]<<3,u-=7,o.h=m,o.p=g,o.i=k,o.w=A)}else{for(k=o.w||0;k<s+l;k+=65535){var X=k+65535;X>=s&&(c[u/8|0]=l,X=s),u=Xi(c,u+1,e.subarray(k,X))}o.i=s}return Bi(a,0,r+Ni(u)+i)},Qi=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),eo=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Qi[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}},to=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new fi(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return Ji(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,i)},no=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},ro=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<r.length;++s){var a=r[s],c=o[s];if("function"==typeof a){t+=";"+c+"=";var l=a.toString();if(a.prototype)if(-1!=l.indexOf("[native code]")){var u=l.indexOf(" ",8)+1;t+=l.slice(u,l.indexOf("(",u))}else for(var f in t+=l,a.prototype)t+=";"+c+".prototype."+f+"="+a.prototype[f].toString();else t+=l}else n[c]=a}return t},io=[],oo=function(){return[fi,di,hi,pi,gi,mi,wi,xi,Di,_i,Ci,ji,Ai,Ri,Ii,Pi,Ni,Bi,Fi,Wi,xo,lo,uo]},so=function(){return[fi,di,hi,pi,gi,mi,bi,Ei,Oi,Mi,Li,zi,Ci,Ki,Zi,Ai,Ui,$i,Hi,qi,Gi,Vi,Xi,Yi,Ni,Bi,Ji,to,So,lo]},ao=function(){return[vo,bo,mo,eo,Qi]},co=function(){return[yo,wo]},lo=function(e){return postMessage(e,[e.buffer])},uo=function(e){return e&&{out:e.size&&new fi(e.size),dictionary:e.dictionary}},fo=function(e,t,n,r,i,o){var s=function(e,t,n,r){if(!io[n]){for(var i="",o={},s=e.length-1,a=0;a<s;++a)i=ro(e[a],i,o);io[n]={c:ro(e[s],i,o),e:o}}var c=no({},io[n].e);return function(e,t,n,r,i){var o=new Worker(ui[t]||(ui[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],i(r,null)}else i(null,t)},o.postMessage(n,r),o}(io[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,c,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(c),r)}(n,r,i,function(e,t){s.terminate(),o(e,t)});return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},ho=function(e,t){return e[t]|e[t+1]<<8},po=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},go=function(e,t){return po(e,t)+4294967296*po(e,t+4)},mo=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},vo=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&mo(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},yo=function(e){31==e[0]&&139==e[1]&&8==e[2]||Fi(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=2+(e[10]|e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)},wo=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},bo=function(e){return 10+(e.filename?e.filename.length+1:0)};function So(e,t){return to(e,t||{},0,0)}function xo(e,t){return Wi(e,{i:2},t&&t.out,t&&t.dictionary)}function Eo(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Fi(7),fo(e,t,[so,ao,function(){return[Co]}],function(e){return lo(Co(e.data[0],e.data[1]))},2,n)}function Co(e,t){t||(t={});var n=eo(),r=e.length;n.p(e);var i=to(e,t,bo(t),8),o=i.length;return vo(i,t),mo(i,o-8,n.d()),mo(i,o-4,r),i}function ko(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Fi(7),fo(e,t,[oo,co,function(){return[To]}],function(e){return lo(To(e.data[0],e.data[1]))},3,n)}function To(e,t){var n=yo(e);return n+8>e.length&&Fi(6,"invalid gzip data"),Wi(e.subarray(n,-8),{i:2},t&&t.out||new fi(wo(e)),t&&t.dictionary)}var Ao=function(e,t,n,r){for(var i in e){var o=e[i],s=t+i,a=r;Array.isArray(o)&&(a=no(r,o[1]),o=o[0]),ArrayBuffer.isView(o)?n[s]=[o,a]:(n[s+="/"]=[new fi(0),a],Ao(o,s,n,r))}},Mo="undefined"!=typeof TextEncoder&&new TextEncoder,zo="undefined"!=typeof TextDecoder&&new TextDecoder;try{zo.decode(Zi,{stream:!0})}catch(e){}function Oo(e,t){if(t){for(var n=new fi(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}if(Mo)return Mo.encode(e);var i=e.length,o=new fi(e.length+(e.length>>1)),s=0,a=function(e){o[s++]=e};for(r=0;r<i;++r){if(s+5>o.length){var c=new fi(s+8+(i-r<<1));c.set(o),o=c}var l=e.charCodeAt(r);l<128||t?a(l):l<2048?(a(192|l>>6),a(128|63&l)):l>55295&&l<57344?(a(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++r))>>18),a(128|l>>12&63),a(128|l>>6&63),a(128|63&l)):(a(224|l>>12),a(128|l>>6&63),a(128|63&l))}return Bi(o,0,s)}function Do(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(zo)return zo.decode(e);var i=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:Bi(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}}(e),o=i.s;return(n=i.r).length&&Fi(8),o}var Lo=function(e,t){return t+30+ho(e,t+26)+ho(e,t+28)},_o=function(e,t,n){var r=ho(e,t+28),i=ho(e,t+30),o=Do(e.subarray(t+46,t+46+r),!(2048&ho(e,t+8))),s=t+46+r,a=Ro(e,s,i,n,po(e,t+20),po(e,t+24),po(e,t+42)),c=a[0],l=a[1],u=a[2];return[ho(e,t+10),c,l,o,s+i+ho(e,t+32),u]},Ro=function(e,t,n,r,i,o,s){var a=4294967295==i,c=4294967295==o,l=4294967295==s,u=t+n;if(r&&a+c+l){for(;t+4<u;t+=4+ho(e,t+2))if(1==ho(e,t))return[a?go(e,t+4+8*c):i,c?go(e,t+4):o,l?go(e,t+4+8*(c+a)):s,1];r<2&&Fi(13)}return[i,o,s,0]},Io=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&Fi(9),t+=r+4}return t},Po=function(e,t,n,r,i,o,s,a){var c=r.length,l=n.extra,u=a&&a.length,f=Io(l);mo(e,t,null!=s?33639248:67324752),t+=4,null!=s&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(o<0&&8),e[t++]=i&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var d=new Date(null==n.mtime?Date.now():n.mtime),h=d.getFullYear()-1980;if((h<0||h>119)&&Fi(10),mo(e,t,h<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>1),t+=4,-1!=o&&(mo(e,t,n.crc),mo(e,t+4,o<0?-o-2:o),mo(e,t+8,n.size)),mo(e,t+12,c),mo(e,t+14,f),t+=16,null!=s&&(mo(e,t,u),mo(e,t+6,n.attrs),mo(e,t+10,s),t+=14),e.set(r,t),t+=c,f)for(var p in l){var g=l[p],m=g.length;mo(e,t,+p),mo(e,t+2,m),e.set(g,t+4),t+=4+m}return u&&(e.set(a,t),t+=u),t},No=function(e,t,n,r,i){mo(e,t,101010256),mo(e,t+8,n),mo(e,t+10,n),mo(e,t+12,r),mo(e,t+16,i)};var Bo="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function jo(e){var t={filename:"",directory:"",basename:"",extension:""},n=function(e){return-1==e.indexOf("/")&&-1!=e.indexOf("\\")?"\\":"/"}(e),r=e.split(n),i=r.pop(),o=/\.([a-z][a-z0-9]*)$/i,s=o.test(i)?o.exec(i)[0]:"";return s||i.includes("*")?(t.filename=i,t.extension=s?s.slice(1):"",t.basename=i.slice(0,i.length-s.length),t.directory=r.join(n)):t.directory=i?e:r.join(n),t}function Fo(e){return jo(e).basename}function Wo(e){return jo(e).extension}function Uo(e){var t=jo(e);return t.extension?e.slice(0,e.length-t.extension.length-1):e}function $o(e,t){var n=Uo(e);return t?n+"."+t:n}function Ho(e){var t=Wo(e);return t?Uo(e)+"."+t.toLowerCase():e}function qo(e){return e.reduce(function(e,t,n){return 0===n?Fo(t):Go(e,t)},"")}function Go(e,t){var n;return e&&t&&(n=Vo(e,t).replace(/[-_]$/,"")),n||""}function Vo(e,t){for(var n=0,r=e.length;n<r&&e[n]===t[n];n++);return e.substring(0,n)}var Xo=(e,t)=>{Yo(e,t)};function Yo(e,t){const n=globalThis.URL||globalThis.webkitURL||window,r=new Blob([e]),i=n.createObjectURL(r),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),n.revokeObjectURL(i),setTimeout(function(){n.revokeObjectURL(i),document.body.removeChild(o)},400)}var Ko=(e,t)=>{const n=JSON.stringify(e,null,2);t?Xo(n,t+".json"):ce.emit(Kn.CommonWarnEvent,"参数JsonID不能为空!")},Zo=(e,t,n)=>{e.get(t,{responseType:"blob"}).then(function(e){Xo(e.data,n)}).catch(e=>{console.warn(e),ce.emit(Kn.CommonWarnEvent,"下载文件报错!")})};async function Jo(e,t,n){var r,i=function(e){var t=Wo(e).toLowerCase(),n={};return"kml"==t?n["application/vnd.google-earth.kml+xml"]=[".kml"]:"svg"===t?n["image/svg+xml"]=[".svg"]:"zip"===t?n["application/zip"]=[".zip"]:"txt"===t||"csv"===t||"tsv"===t||"tab"===t?n["text/csv"]=[".csv",".tsv",".tab",".txt"]:"json"===t||"geojson"===t||"topojson"===t?n["application/json"]=[".json",".geojson",".topojson"]:n["application/octet-stream"]=["."+t],{suggestedName:e,types:[{description:"Files",accept:n}]}}(e);try{if(globalThis.showSaveFilePicker){r=await globalThis.showSaveFilePicker(i);var o=await r.createWritable();await o.write(t),await o.close()}}catch(e){return void("SecurityError"==e.name?(console.warn(e.message),n(e.message)):"AbortError"==e.name?n():(console.error(e.name,e.message,e),n("Save failed for an unknown reason")))}n()}var Qo=class e{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==globalThis.document}static encodeGBK(e){const t=X.encode(e,"ISO-8859-1");return X.decode(t,"gbk")}static async saveZipFromFiles(t,n){const r=[];for(let e=0;e<n.length;e++){const t=n[e],i=t.name,o=await Qr.readFilePromise(t,"ArrayBuffer"),s=new Uint8Array(o);r.push({filename:i,content:s})}r.length>0&&e.zipAsync(r,function(e,n){if(e)throw e;Yo(new Blob([n]),t)})}static saveZipFile(t,n){e.zipAsync(n,function(e,n){if(e)throw e;Yo(new Blob([n]),t)})}static saveZipFileSync(t,n){const r=e.zipSync(n);return!!r&&(Yo(new Blob([r]),t),!0)}static unzipSync(t){let n;if(n=t instanceof ArrayBuffer?new Uint8Array(t):t,!e.runningInBrowser())return;const r=function(e,t){for(var n={},r=e.length-22;101010256!=po(e,r);--r)(!r||e.length-r>65558)&&Fi(13);var i=ho(e,r+8);if(!i)return{};var o=po(e,r+16),s=117853008==po(e,r-20);if(s){var a=po(e,r-12);(s=101075792==po(e,a))&&(i=po(e,a+32),o=po(e,a+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=_o(e,o,s),f=u[0],d=u[1],h=u[2],p=u[3],g=u[4],m=u[5],v=Lo(e,m);o=g,c&&!c({name:p,size:d,originalSize:h,compression:f})||(f?8==f?n[p]=xo(e.subarray(v,v+d),{out:new fi(h)}):Fi(14,"unknown compression type "+f):n[p]=Bi(e,v,v+d))}return n}(n,{filter:e.fflateFilter});return e.fflatePostprocess(r)}static async readZipFromFile(t){const n={content:await Qr.readFilePromise(t,"ArrayBuffer"),name:t.name};return e.readZipFile(n)}static async readZipFile(t){const n=await e.unzipAsync.promise(t.content);return Object.keys(n).reduce(function(e,t){return e.push({filename:t,content:n[t]}),e},[])}static unzipAsync(t,n){if(!e.runningInBrowser())throw new Error("Async unzipping only supported in the browser");let r;r=t instanceof ArrayBuffer?new Uint8Array(t):t,function(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Fi(7);var r=[],i=function(){for(var e=0;e<r.length;++e)r[e]()},o={},s=function(e,t){Bo(function(){n(e,t)})};Bo(function(){s=n});for(var a=e.length-22;101010256!=po(e,a);--a)if(!a||e.length-a>65558)return s(Fi(13,0,1),null),i;var c=ho(e,a+8);if(c){var l=c,u=po(e,a+16),f=117853008==po(e,a-20);if(f){var d=po(e,a-12);(f=101075792==po(e,d))&&(l=c=po(e,d+32),u=po(e,d+48))}for(var h=t&&t.filter,p=function(t){var n=_o(e,u,f),a=n[0],l=n[1],d=n[2],p=n[3],g=n[4],m=n[5],v=Lo(e,m);u=g;var y=function(e,t){e?(i(),s(e,null)):(t&&(o[p]=t),--c||s(null,o))};if(!h||h({name:p,size:l,originalSize:d,compression:a}))if(a)if(8==a){var w=e.subarray(v,v+l);if(d<524288||l>.8*d)try{y(null,xo(w,{out:new fi(d)}))}catch(e){y(e,null)}else r.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Fi(7),fo(e,t,[oo],function(e){return lo(xo(e.data[0],uo(e.data[1])))},1,n)}(w,{size:d},y))}else y(Fi(14,"unknown compression type "+a,1),null);else y(null,Bi(e,v,v+l));else y(null,null)},g=0;g<l;++g)p()}else s(null,{})}(r,{filter:e.fflateFilter},function(t,r){t&&n(t),n(null,e.fflatePostprocess(r))})}static zipSync(t){if(!e.runningInBrowser())throw new Error("Async zipping only supported in the browser");return function(e,t){t||(t={});var n={},r=[];Ao(e,"",n,t);var i=0,o=0;for(var s in n){var a=n[s],c=a[0],l=a[1],u=0==l.level?0:8,f=(E=Oo(s)).length,d=l.comment,h=d&&Oo(d),p=h&&h.length,g=Io(l.extra);f>65535&&Fi(11);var m=u?So(c,l):c,v=m.length,y=eo();y.p(c),r.push(no(l,{size:c.length,crc:y.d(),c:m,f:E,m:h,u:f!=s.length||h&&d.length!=p,o:i,compression:u})),i+=30+f+g+v,o+=76+2*(f+g)+(p||0)+v}for(var w=new fi(o+22),b=i,S=o-i,x=0;x<r.length;++x){var E=r[x];Po(w,E.o,E,E.f,E.u,E.c.length);var C=30+E.f.length+Io(E.extra);w.set(E.c,E.o+C),Po(w,i,E,E.f,E.u,E.c.length,E.o,E.m),i+=16+C+(E.m?E.m.length:0)}return No(w,i,r.length,S,b),w}(e.fflatePreprocess(t))}static zipAsync(t,n){!function(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Fi(7);var r={};Ao(e,"",r,t);var i=Object.keys(r),o=i.length,s=0,a=0,c=o,l=new Array(o),u=[],f=function(){for(var e=0;e<u.length;++e)u[e]()},d=function(e,t){Bo(function(){n(e,t)})};Bo(function(){d=n});var h=function(){var e=new fi(a+22),t=s,n=a-s;a=0;for(var r=0;r<c;++r){var i=l[r];try{var o=i.c.length;Po(e,a,i,i.f,i.u,o);var u=30+i.f.length+Io(i.extra),f=a+u;e.set(i.c,f),Po(e,s,i,i.f,i.u,o,a,i.m),s+=16+u+(i.m?i.m.length:0),a=f+o}catch(e){return d(e,null)}}No(e,s,l.length,n,t),d(null,e)};o||h();for(var p=function(e){var t=i[e],n=r[t],c=n[0],p=n[1],g=eo(),m=c.length;g.p(c);var v=Oo(t),y=v.length,w=p.comment,b=w&&Oo(w),S=b&&b.length,x=Io(p.extra),E=0==p.level?0:8,C=function(n,r){if(n)f(),d(n,null);else{var i=r.length;l[e]=no(p,{size:m,crc:g.d(),c:r,f:v,m:b,u:y!=t.length||b&&w.length!=S,compression:E}),s+=30+y+x+i,a+=76+2*(y+x)+(S||0)+i,--o||h()}};if(y>65535&&C(Fi(11,0,1),null),E)if(m<16e4)try{C(null,So(c,p))}catch(e){C(e,null)}else u.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Fi(7),fo(e,t,[so],function(e){return lo(So(e.data[0],e.data[1]))},0,n)}(c,p,C));else C(null,c)},g=0;g<c;++g)p(g)}(e.fflatePreprocess(t),{},n)}static fflateFilter(t){return e.isImportableZipPath(t.name)}static fflatePostprocess(t){return Object.keys(t).reduce(function(n,r){const i=jo(r).filename;return n[e.encodeGBK(i)]=t[r],n},{})}static isImportableZipPath(e){const t=jo(e),n=Wo(e).toLowerCase();return"gz"!=n&&"zip"!=n&&!/^__MACOSX/.test(e)&&"."!=t.filename[0]}static fflatePreprocess(e){const t={};return e.forEach(e=>{"string"==typeof e.content?e.content=Oo(e.content):e.content instanceof ArrayBuffer&&(e.content=new Uint8Array(e.content)),t[e.filename]=e.content}),t}},es=class e{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==window.document}static isGzipped(e){return e.length>2&&e.buffer instanceof ArrayBuffer&&31==e[0]&&139==e[1]}static gzipSync(t,n){return"string"==typeof t&&(t=Oo(t)),e.runningInBrowser()?Co(t,n):void 0}static async gzipAsync(t,n){let r;if("string"==typeof t&&(r=Oo(t)),e.runningInBrowser())return Qr.promisify(Eo)(r,n)}static async readGzipFromFile(t){const n={content:await Qr.readFilePromise(t,"ArrayBuffer"),name:t.name};return e.readGzipFile(n)}static readGzipFile(t){var n=t.name.replace(/\.gz$/,"");return[{name:n,content:e.gunzipSync(t.content,n)}]}static async gunzipAsync(t,n){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),n=n||{},!e.runningInBrowser())return;let r=await Qr.promisify(ko)(t,n);return n.filename&&(r=Do(r)),r}static gunzipSync(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));let n=To(e);return t&&(n=Do(n)),n}},ts=class{static formatToDate(e,t="YYYY-MM-DD"){let n=new Date;if(e&&(_r(e)||Or(e)?n=new Date(e):Mr(e)&&(n=e),!n))throw"date对象为空";const r=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return t.replace("YYYY",String(r)).replace("MM",i).replace("DD",o)}static formatToTime(e,t="HH:mm:ss"){let n=new Date;if(e&&(_r(e)||Or(e)?n=new Date(e):Mr(e)&&(n=e),!n))throw"date对象为空";const r=String(n.getHours()).padStart(2,"0"),i=String(n.getMinutes()).padStart(2,"0"),o=String(n.getSeconds()).padStart(2,"0");return t.replace("HH",r).replace("mm",i).replace("ss",o)}static formatToDateTime(e,t="YYYY-MM-DD HH:mm:ss"){let n=new Date;if(e&&(_r(e)||Or(e)?n=new Date(e):Mr(e)&&(n=e),!n))throw"date对象为空";return this.formatToDate(n,t.split(" ")[0])+" "+this.formatToTime(n,t.split(" ")[1])}static formatStringDateTime(e){let t=`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`;return 14===e.length&&(t=`${t} ${e.substring(8,10)}:${e.substring(10,12)}:${e.substring(12,14)}`),t}},ns=!0;try{String.fromCharCode.apply(String,[1,2])}catch(e){ns=!1,Object.defineProperty(Array.prototype,"subarray",{value:Array.prototype.slice})}var rs=2654435769;function is(e,t){var n=e.length,r=n<<2;if(t){var i=e[n-1];if(i<(r-=4)-3||i>r)return null;r=i}for(var o=new Uint8Array(r),s=0;s<r;++s)o[s]=e[s>>2]>>((3&s)<<3);return o}function os(e,t){var n,r=e.length,i=r>>2;3&r&&++i,t?(n=new Uint32Array(i+1))[i]=r:n=new Uint32Array(i);for(var o=0;o<r;++o)n[o>>2]|=e[o]<<((3&o)<<3);return n}function ss(e){return 4294967295&e}function as(e,t,n,r,i,o){return(n>>>5^t<<2)+(t>>>3^n<<4)^(e^t)+(o[3&r^i]^n)}function cs(e){if(e.length<16){var t=new Uint8Array(16);t.set(e),e=t}return e}function ls(e){for(var t=e.length,n=new Uint8Array(3*t),r=0,i=0;i<t;i++){var o=e.charCodeAt(i);if(o<128)n[r++]=o;else if(o<2048)n[r++]=192|o>>6,n[r++]=128|63&o;else{if(!(o<55296||o>57343)){if(i+1<t){var s=e.charCodeAt(i+1);if(o<56320&&56320<=s&&s<=57343){var a=65536+((1023&o)<<10|1023&s);n[r++]=240|a>>18,n[r++]=128|a>>12&63,n[r++]=128|a>>6&63,n[r++]=128|63&a,i++;continue}}throw new Error("Malformed string")}n[r++]=224|o>>12,n[r++]=128|o>>6&63,n[r++]=128|63&o}}return n.subarray(0,r)}function us(e){var t=e.length;return 0===t?"":t<32767?function(e,t){for(var n=new Array(t),r=0,i=0,o=e.length;r<t&&i<o;r++){var s=e[i++];switch(s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n[r]=s;break;case 12:case 13:if(!(i<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(31&s)<<6|63&e[i++];break;case 14:if(!(i+1<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(15&s)<<12|(63&e[i++])<<6|63&e[i++];break;case 15:if(!(i+2<o))throw new Error("Unfinished UTF-8 octet sequence");var a=((7&s)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536;if(!(0<=a&&a<=1048575))throw new Error("Character outside valid Unicode range: 0x"+a.toString(16));n[r++]=a>>10&1023|55296,n[r]=1023&a|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+s.toString(16))}}return r<t&&(n.length=r),String.fromCharCode.apply(String,n)}(e,t):function(e,t){for(var n=[],r=new Array(32768),i=0,o=0,s=e.length;i<t&&o<s;i++){var a=e[o++];switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:r[i]=a;break;case 12:case 13:if(!(o<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(31&a)<<6|63&e[o++];break;case 14:if(!(o+1<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(15&a)<<12|(63&e[o++])<<6|63&e[o++];break;case 15:if(!(o+2<s))throw new Error("Unfinished UTF-8 octet sequence");var c=((7&a)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++])-65536;if(!(0<=c&&c<=1048575))throw new Error("Character outside valid Unicode range: 0x"+c.toString(16));r[i++]=c>>10&1023|55296,r[i]=1023&c|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+a.toString(16))}if(i>=32766){var l=i+1;r.length=l,n.push(String.fromCharCode.apply(String,r)),t-=l,i=-1}}return i>0&&(r.length=i,n.push(String.fromCharCode.apply(String,r))),n.join("")}(e,t)}function fs(e,t){return"string"==typeof e&&(e=ls(e)),"string"==typeof t&&(t=ls(t)),null==e||0===e.length?e:is(function(e,t){var n,r,i,o,s=e.length,a=s-1,c=e[a],l=0;for(o=0|Math.floor(6+52/s);o>0;--o){for(r=(l=ss(l+rs))>>>2&3,i=0;i<a;++i)n=e[i+1],c=e[i]=ss(e[i]+as(l,n,c,i,r,t));n=e[0],c=e[a]=ss(e[a]+as(l,n,c,a,r,t))}return e}(os(e,!0),os(cs(t),!1)),!1)}function ds(e,t){return"string"==typeof e&&(e=function(e){for(var t=globalThis.atob(e),n=t.length,r=new Uint8Array(n),i=0;i<n;i++)r[i]=t.charCodeAt(i);return r}(e)),"string"==typeof t&&(t=ls(t)),null==e||0===e.length?e:is(function(e,t){var n,r,i,o,s=e.length,a=s-1,c=e[0];for(r=ss(Math.floor(6+52/s)*rs);0!==r;r=ss(r-rs)){for(i=r>>>2&3,o=a;o>0;--o)n=e[o-1],c=e[o]=ss(e[o]-as(r,c,n,o,i,t));n=e[a],c=e[0]=ss(e[0]-as(r,c,n,0,i,t))}return e}(os(e,!1),os(cs(t),!1)),!0)}var hs,ps={toBytes:ls,toString:us,encrypt:fs,encryptToString:function(e,t){return globalThis.btoa(function(e){var t=e.length;if(0===t)return"";var n=ns?e:function(e){for(var t=e.length,n=new Array(e.length),r=0;r<t;++r)n[r]=e[r];return n}(e);if(t<65535)return String.fromCharCode.apply(String,n);for(var r=32767&t,i=t>>15,o=new Array(r?i+1:i),s=0;s<i;++s)o[s]=String.fromCharCode.apply(String,n.subarray(s<<15,s+1<<15));return r&&(o[i]=String.fromCharCode.apply(String,n.subarray(i<<15,t))),o.join("")}(fs(e,t)))},decrypt:ds,decryptToString:function(e,t){return us(ds(e,t))}},gs=e=>{const t="1.23452384164.123412416";null!==document.getElementById(t)&&document.body.removeChild(document.getElementById(t));const n=document.createElement("canvas");n.width=200,n.height=130;const r=n.getContext("2d");r.rotate(-20*Math.PI/180),r.font="12px Vedana",r.fillStyle="rgba(200, 200, 200, 0.30)",r.textBaseline="middle",r.fillText(e,n.width/10,n.height/2);const i=document.createElement("div");return i.id=t,i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.position="fixed",i.style.zIndex="10000000",i.style.width=`${document.documentElement.clientWidth}px`,i.style.height=`${document.documentElement.clientHeight}px`,i.style.background=`url(${n.toDataURL("image/png")}) left top repeat`,document.body.appendChild(i),t},ms={set:e=>{let t=gs(e);null===document.getElementById(t)&&(t=gs(e))},del:()=>{let e="1.23452384164.123412416";null!==document.getElementById(e)&&document.body.removeChild(document.getElementById(e))}};function vs(e){if(!e){if(hs)return hs;throw new Error("首次构建,signalrURL参数不能为空!")}const t=(new Y.HubConnectionBuilder).configureLogging(Y.LogLevel.Information).withUrl(e).withAutomaticReconnect({nextRetryDelayInMilliseconds:()=>5e3}).build();return t.keepAliveIntervalInMilliseconds=15e3,t.serverTimeoutInMilliseconds=18e5,t.start().then(()=>{ir.Logger().info("启动SignalR连接!")}),t.onclose(async()=>{ir.Logger().info("断开SignalR连接!")}),t.onreconnecting(()=>{ir.Logger().warn("SignalR服务已断线,重连中...!")}),t.onreconnected(()=>{ir.Logger().warn("SignalR重连成功!")}),hs||(hs=t),t}var ys,ws,bs={hasSubscribers:!1},Ss=bs,xs=bs,Es="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,Cs=()=>Ss.hasSubscribers||xs.hasSubscribers,ks=new Set,Ts="object"==typeof Ce&&Ce?Ce:{},As=e=>!!e&&e===Math.floor(e)&&e>0&&isFinite(e),Ms=e=>As(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?zs:null:null,zs=class extends Array{constructor(e){super(e),this.fill(0)}},Os=class e{heap;length;static#e=!1;static create(t){let n=Ms(t);if(!n)return[];e.#e=!0;let r=new e(t,n);return e.#e=!1,r}constructor(t,n){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Ds=class e{#e;#t;#n;#r;#i;#o;#s;#a;get perf(){return this.#a}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#c;#l;#u;#f;#d;#h;#p;#g;#m;#v;#y;#w;#b;#S;#x;#E;#C;#k;#T;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#S,autopurgeTimers:e.#x,sizes:e.#w,keyMap:e.#u,keyList:e.#f,valList:e.#d,next:e.#h,prev:e.#p,get head(){return e.#g},get tail(){return e.#m},free:e.#v,isBackgroundFetch:t=>e.#A(t),backgroundFetch:(t,n,r,i)=>e.#M(t,n,r,i),moveToTail:t=>e.#z(t),indexes:t=>e.#O(t),rindexes:t=>e.#D(t),isStale:t=>e.#L(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#o}get memoMethod(){return this.#s}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(t){let{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:h,maxSize:p=0,maxEntrySize:g=0,sizeCalculation:m,fetchMethod:v,memoMethod:y,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:x,ignoreFetchAbort:E,backgroundFetchSize:C=1,perf:k}=t;if(this.backgroundFetchSize=C,void 0!==k&&"function"!=typeof k?.now)throw new TypeError("perf option must have a now() method if specified");if(this.#a=k??Es,0!==n&&!As(n))throw new TypeError("max option must be a nonnegative integer");let T=n?Ms(n):Array;if(!T)throw new Error("invalid max value: "+n);if(this.#e=n,this.#t=p,this.maxEntrySize=g||this.#t,this.sizeCalculation=m,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==y&&"function"!=typeof y)throw new TypeError("memoMethod must be a function if defined");if(this.#s=y,void 0!==v&&"function"!=typeof v)throw new TypeError("fetchMethod must be a function if specified");if(this.#o=v,this.#C=!!v,this.#u=new Map,this.#f=Array.from({length:n}).fill(void 0),this.#d=Array.from({length:n}).fill(void 0),this.#h=new T(n),this.#p=new T(n),this.#g=0,this.#m=0,this.#v=Os.create(n),this.#c=0,this.#l=0,"function"==typeof l&&(this.#n=l),"function"==typeof u&&(this.#r=u),"function"==typeof f?(this.#i=f,this.#y=[]):(this.#i=void 0,this.#y=void 0),this.#E=!!this.#n,this.#T=!!this.#r,this.#k=!!this.#i,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!E,0!==this.maxEntrySize){if(0!==this.#t&&!As(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!As(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#_()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!a,this.ttlResolution=As(i)||0===i?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!As(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(0===this.#e&&0===this.ttl&&0===this.#t)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t="LRU_CACHE_UNBOUNDED";(e=>!ks.has(e))(t)&&(ks.add(t),((e,t,n,r)=>{"function"==typeof Ts.emitWarning?Ts.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)})("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,e))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#R(){let e=new zs(this.#e),t=new zs(this.#e);this.#S=e,this.#b=t;let n=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#x=n,this.#I=(n,i,o=this.#a.now())=>{t[n]=0!==i?o:0,e[n]=i,r(n,i)},this.#P=n=>{t[n]=0!==e[n]?this.#a.now():0,r(n,e[n])};let r=this.ttlAutopurge?(e,t)=>{if(n?.[e]&&(clearTimeout(n[e]),n[e]=void 0),t&&0!==t&&n){let r=setTimeout(()=>{this.#L(e)&&this.#N(this.#f[e],"expire")},t+1);r.unref&&r.unref(),n[e]=r}}:()=>{};this.#B=(n,r)=>{if(e[r]){let s=e[r],a=t[r];if(!s||!a)return;n.ttl=s,n.start=a,n.now=i||o(),n.remainingTTL=s-(n.now-a)}};let i=0,o=()=>{let e=this.#a.now();if(this.ttlResolution>0){i=e;let t=setTimeout(()=>i=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=n=>{let r=this.#u.get(n);if(void 0===r)return 0;let s=e[r],a=t[r];return s&&a?s-((i||o())-a):1/0},this.#L=n=>{let r=t[n],s=e[n];return!!s&&!!r&&(i||o())-r>s}}#P=()=>{};#B=()=>{};#I=()=>{};#L=()=>!1;#_(){let e=new zs(this.#e);this.#l=0,this.#w=e,this.#j=t=>{this.#l-=e[t],e[t]=0},this.#F=(e,t,n,r)=>{if(!As(n)){if(this.#A(t))return this.backgroundFetchSize;if(!r)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!As(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.#W=(t,n,r)=>{if(e[t]=n,this.#t){let n=this.#t-e[t];for(;this.#l>n;)this.#U(!0)}this.#l+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#l)}}#j=e=>{};#W=(e,t,n)=>{};#F=(e,t,n,r)=>{if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#m;this.#$(t)&&((e||!this.#L(t))&&(yield t),t!==this.#g);)t=this.#p[t]}*#D({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#g;this.#$(t)&&((e||!this.#L(t))&&(yield t),t!==this.#m);)t=this.#h[t]}#$(e){return void 0!==e&&this.#u.get(this.#f[e])===e}*entries(){for(let e of this.#O())void 0!==this.#d[e]&&void 0!==this.#f[e]&&!this.#A(this.#d[e])&&(yield[this.#f[e],this.#d[e]])}*rentries(){for(let e of this.#D())void 0!==this.#d[e]&&void 0!==this.#f[e]&&!this.#A(this.#d[e])&&(yield[this.#f[e],this.#d[e]])}*keys(){for(let e of this.#O()){let t=this.#f[e];void 0!==t&&!this.#A(this.#d[e])&&(yield t)}}*rkeys(){for(let e of this.#D()){let t=this.#f[e];void 0!==t&&!this.#A(this.#d[e])&&(yield t)}}*values(){for(let e of this.#O())void 0!==this.#d[e]&&!this.#A(this.#d[e])&&(yield this.#d[e])}*rvalues(){for(let e of this.#D())void 0!==this.#d[e]&&!this.#A(this.#d[e])&&(yield this.#d[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let n of this.#O()){let r=this.#d[n],i=this.#A(r)?r.__staleWhileFetching:r;if(void 0!==i&&e(i,this.#f[n],this))return this.#H(this.#f[n],t)}}forEach(e,t=this){for(let n of this.#O()){let r=this.#d[n],i=this.#A(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#f[n],this)}}rforEach(e,t=this){for(let n of this.#D()){let r=this.#d[n],i=this.#A(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#f[n],this)}}purgeStale(){let e=!1;for(let t of this.#D({allowStale:!0}))this.#L(t)&&(this.#N(this.#f[t],"expire"),e=!0);return e}info(e){let t=this.#u.get(e);if(void 0===t)return;let n=this.#d[t],r=this.#A(n)?n.__staleWhileFetching:n;if(void 0===r)return;let i={value:r};if(this.#S&&this.#b){let e=this.#S[t],n=this.#b[t];e&&n&&(i.ttl=e-(this.#a.now()-n),i.start=Date.now())}return this.#w&&(i.size=this.#w[t]),i}dump(){let e=[];for(let t of this.#O({allowStale:!0})){let n=this.#f[t],r=this.#d[t],i=this.#A(r)?r.__staleWhileFetching:r;if(void 0===i||void 0===n)continue;let o={value:i};if(this.#S&&this.#b){o.ttl=this.#S[t];let e=this.#a.now()-this.#b[t];o.start=Math.floor(Date.now()-e)}this.#w&&(o.size=this.#w[t]),e.unshift([n,o])}return e}load(e){this.clear();for(let[t,n]of e){if(n.start){let e=Date.now()-n.start;n.start=this.#a.now()-e}this.#q(t,n.value,n)}}set(e,t,n={}){let{status:r=(Ss.hasSubscribers?{}:void 0)}=n;n.status=r,r&&(r.op="set",r.key=e,void 0!==t&&(r.value=t),r.cache=this);let i=this.#q(e,t,n);return r&&Ss.hasSubscribers&&Ss.publish(r),i}#q(e,t,n,r){let{ttl:i=this.ttl,start:o,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=n,l=this.#A(t);if(void 0===t)return c&&(c.set="deleted"),this.delete(e),this;let{noUpdateTTL:u=this.noUpdateTTL}=n;c&&!l&&(c.value=t);let f=this.#F(e,t,n.size||0,a,c);if(this.maxEntrySize&&f>this.maxEntrySize)return this.#N(e,"set"),c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this;let d=0===this.#c?void 0:this.#u.get(e);if(void 0===d)d=0===this.#c?this.#m:0!==this.#v.length?this.#v.pop():this.#c===this.#e?this.#U(!1):this.#c,this.#f[d]=e,this.#d[d]=t,this.#u.set(e,d),this.#h[this.#m]=d,this.#p[d]=this.#m,this.#m=d,this.#c++,this.#W(d,f,c),c&&(c.set="add"),u=!1,this.#T&&!l&&this.#r?.(t,e,"add");else{this.#z(d);let n=this.#d[d];if(t!==n){if(!s)if(this.#A(n)){n!==r&&n.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:i}=n;void 0!==i&&i!==t&&(this.#E&&this.#n?.(i,e,"set"),this.#k&&this.#y?.push([i,e,"set"]))}else this.#E&&this.#n?.(n,e,"set"),this.#k&&this.#y?.push([n,e,"set"]);if(this.#j(d),this.#W(d,f,c),this.#d[d]=t,!l){let r=n&&this.#A(n)?n.__staleWhileFetching:n,i=void 0===r?"add":t!==r?"replace":"update";c&&(c.set=i,void 0!==r&&(c.oldValue=r)),this.#T&&this.onInsert?.(t,e,i)}}else l||(c&&(c.set="update"),this.#T&&this.onInsert?.(t,e,"update"))}if(0!==i&&!this.#S&&this.#R(),this.#S&&(u||this.#I(d,i,o),c&&this.#B(c,d)),!s&&this.#k&&this.#y){let e,t=this.#y;for(;e=t?.shift();)this.#i?.(...e)}return this}pop(){try{for(;this.#c;){let e=this.#d[this.#g];if(this.#U(!0),this.#A(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#k&&this.#y){let e,t=this.#y;for(;e=t?.shift();)this.#i?.(...e)}}}#U(e){let t=this.#g,n=this.#f[t],r=this.#d[t],i=this.#A(r);i&&r.__abortController.abort(new Error("evicted"));let o=i?r.__staleWhileFetching:r;return(this.#E||this.#k)&&void 0!==o&&(this.#E&&this.#n?.(o,n,"evict"),this.#k&&this.#y?.push([o,n,"evict"])),this.#j(t),this.#x?.[t]&&(clearTimeout(this.#x[t]),this.#x[t]=void 0),e&&(this.#f[t]=void 0,this.#d[t]=void 0,this.#v.push(t)),1===this.#c?(this.#g=this.#m=0,this.#v.length=0):this.#g=this.#h[t],this.#u.delete(n),this.#c--,t}has(e,t={}){let{status:n=(Ss.hasSubscribers?{}:void 0)}=t;t.status=n,n&&(n.op="has",n.key=e,n.cache=this);let r=this.#G(e,t);return Ss.hasSubscribers&&Ss.publish(n),r}#G(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=this.#u.get(e);if(void 0!==i){let e=this.#d[i];if(this.#A(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#L(i))return n&&this.#P(i),r&&(r.has="hit",this.#B(r,i)),!0;r&&(r.has="stale",this.#B(r,i))}else r&&(r.has="miss");return!1}peek(e,t={}){let{status:n=(Cs()?{}:void 0)}=t;n&&(n.op="peek",n.key=e,n.cache=this),t.status=n;let r=this.#V(e,t);return Ss.hasSubscribers&&Ss.publish(n),r}#V(e,t){let{status:n,allowStale:r=this.allowStale}=t,i=this.#u.get(e);if(void 0===i||!r&&this.#L(i))return void(n&&(n.peek=void 0===i?"miss":"stale"));let o=this.#d[i],s=this.#A(o)?o.__staleWhileFetching:o;return n&&(void 0!==s?(n.peek="hit",n.value=s):n.peek="miss"),s}#M(e,t,n,r){let i=void 0===t?void 0:this.#d[t];if(this.#A(i))return i;let o=new AbortController,{signal:s}=n;s?.addEventListener("abort",()=>o.abort(s.reason),{signal:o.signal});let a={signal:o.signal,options:n,context:r},c=(r,i=!1)=>{let{aborted:s}=o.signal,c=n.ignoreFetchAbort&&void 0!==r,f=n.ignoreFetchAbort||!(!n.allowStaleOnFetchAbort||void 0===r);if(n.status&&(s&&!i?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,c&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),s&&!c&&!i)return l(o.signal.reason,f);let d=u,h=this.#d[t];return(h===u||void 0===h&&c&&i)&&(void 0===r?void 0!==d.__staleWhileFetching?this.#d[t]=d.__staleWhileFetching:this.#N(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.#q(e,r,a.options,d))),r},l=(r,i)=>{let{aborted:s}=o.signal,a=s&&n.allowStaleOnFetchAbort,c=a||n.allowStaleOnFetchRejection,l=c||n.noDeleteOnFetchRejection,f=u;if(this.#d[t]===u&&(!l||!i&&void 0===f.__staleWhileFetching?this.#N(e,"fetch"):a||(this.#d[t]=f.__staleWhileFetching)),c)return n.status&&void 0!==f.__staleWhileFetching&&(n.status.returnedStale=!0),f.__staleWhileFetching;if(f.__returned===f)throw r};n.status&&(n.status.fetchDispatched=!0);let u=new Promise((t,r)=>{let s=this.#o?.(e,i,a);o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>c(e,!0)))}),s&&s instanceof Promise?s.then(e=>t(void 0===e?void 0:e),r):void 0!==s&&t(s)}).then(c,e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),l(e,!1))),f=Object.assign(u,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.#q(e,f,{...a.options,status:void 0}),t=this.#u.get(e)):this.#d[t]=f,f}#A(e){if(!this.#C)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AbortController}fetch(e,t={}){let n=xs.hasSubscribers,{status:r=(Cs()?{}:void 0)}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=this.#X(e,t);return r&&n&&(r.trace=!0,xs.tracePromise(()=>i,r).catch(()=>{})),i}async#X(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:a=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:m,signal:v}=t;if(m&&(m.op="fetch",m.key=e,g&&(m.forceRefresh=!0),m.cache=this),!this.#C)return m&&(m.fetch="get"),this.#H(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:m});let y={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:s,size:a,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:h,ignoreFetchAbort:d,status:m,signal:v},w=this.#u.get(e);if(void 0===w){m&&(m.fetch="miss");let t=this.#M(e,w,y,p);return t.__returned=t}{let t=this.#d[w];if(this.#A(t)){let e=n&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=this.#L(w);if(!g&&!i)return m&&(m.fetch="hit"),this.#z(w),r&&this.#P(w),m&&this.#B(m,w),t;let o=this.#M(e,w,y,p),s=void 0!==o.__staleWhileFetching&&n;return m&&(m.fetch=i?"stale":"refresh",s&&i&&(m.returnedStale=!0)),s?o.__staleWhileFetching:o.__returned=o}}forceFetch(e,t={}){let n=xs.hasSubscribers,{status:r=(Cs()?{}:void 0)}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=this.#Y(e,t);return r&&n&&(r.trace=!0,xs.tracePromise(()=>i,r).catch(()=>{})),i}async#Y(e,t={}){let n=await this.#X(e,t);if(void 0===n)throw new Error("fetch() returned undefined");return n}memo(e,t={}){let{status:n=(Ss.hasSubscribers?{}:void 0)}=t;t.status=n,n&&(n.op="memo",n.key=e,t.context&&(n.context=t.context),n.cache=this);let r=this.#K(e,t);return n&&(n.value=r),Ss.hasSubscribers&&Ss.publish(n),r}#K(e,t={}){let n=this.#s;if(!n)throw new Error("no memoMethod provided to constructor");let{context:r,status:i,forceRefresh:o,...s}=t;i&&o&&(i.forceRefresh=!0);let a=this.#H(e,s),c=o||void 0===a;if(i&&(i.memo=c?"miss":"hit",c||(i.value=a)),!c)return a;let l=n(e,a,{options:s,context:r});return i&&(i.value=l),this.#q(e,l,s),l}get(e,t={}){let{status:n=(Ss.hasSubscribers?{}:void 0)}=t;t.status=n,n&&(n.op="get",n.key=e,n.cache=this);let r=this.#H(e,t);return n&&(void 0!==r&&(n.value=r),Ss.hasSubscribers&&Ss.publish(n)),r}#H(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=t,s=this.#u.get(e);if(void 0===s)return void(o&&(o.get="miss"));let a=this.#d[s],c=this.#A(a);return o&&this.#B(o,s),this.#L(s)?c?(o&&(o.get="stale-fetching"),n&&void 0!==a.__staleWhileFetching?(o&&(o.returnedStale=!0),a.__staleWhileFetching):void 0):(i||this.#N(e,"expire"),o&&(o.get="stale"),n?(o&&(o.returnedStale=!0),a):void 0):(o&&(o.get=c?"fetching":"hit"),this.#z(s),r&&this.#P(s),c?a.__staleWhileFetching:a)}#Z(e,t){this.#p[t]=e,this.#h[e]=t}#z(e){e!==this.#m&&(e===this.#g?this.#g=this.#h[e]:this.#Z(this.#p[e],this.#h[e]),this.#Z(this.#m,e),this.#m=e)}delete(e){return this.#N(e,"delete")}#N(e,t){Ss.hasSubscribers&&Ss.publish({op:"delete",delete:t,key:e,cache:this});let n=!1;if(0!==this.#c){let r=this.#u.get(e);if(void 0!==r)if(this.#x?.[r]&&(clearTimeout(this.#x?.[r]),this.#x[r]=void 0),n=!0,1===this.#c)this.#J(t);else{this.#j(r);let n=this.#d[r];if(this.#A(n)?n.__abortController.abort(new Error("deleted")):(this.#E||this.#k)&&(this.#E&&this.#n?.(n,e,t),this.#k&&this.#y?.push([n,e,t])),this.#u.delete(e),this.#f[r]=void 0,this.#d[r]=void 0,r===this.#m)this.#m=this.#p[r];else if(r===this.#g)this.#g=this.#h[r];else{let e=this.#p[r];this.#h[e]=this.#h[r];let t=this.#h[r];this.#p[t]=this.#p[r]}this.#c--,this.#v.push(r)}}if(this.#k&&this.#y?.length){let e,t=this.#y;for(;e=t?.shift();)this.#i?.(...e)}return n}clear(){return this.#J("delete")}#J(e){for(let t of this.#D({allowStale:!0})){let n=this.#d[t];if(this.#A(n))n.__abortController.abort(new Error("deleted"));else{let r=this.#f[t];this.#E&&this.#n?.(n,r,e),this.#k&&this.#y?.push([n,r,e])}}if(this.#u.clear(),this.#d.fill(void 0),this.#f.fill(void 0),this.#S&&this.#b){this.#S.fill(0),this.#b.fill(0);for(let e of this.#x??[])void 0!==e&&clearTimeout(e);this.#x?.fill(void 0)}if(this.#w&&this.#w.fill(0),this.#g=0,this.#m=0,this.#v.length=0,this.#l=0,this.#c=0,this.#k&&this.#y){let e,t=this.#y;for(;e=t?.shift();)this.#i?.(...e)}}},Ls=class{static defaultOptions={max:1e3,ttl:18e5};static cache=new Ds(this.defaultOptions);static createCache(e=this.defaultOptions){return new Ds(e)}static set(e,t,n=this.cache){let r=n;r||(r=this.cache),r.set(e,t)}static get(e,t=this.cache){let n=t;return n||(n=this.cache),n.get(e)}static remove(e,t=this.cache){let n=t;return n||(n=this.cache),n.del(e)}static has(e,t=this.cache){let n=t;return n||(n=this.cache),n.has(e)}static count(e=this.cache){let t=e;return t||(t=this.cache),t.size}static maxSize(e=this.cache){let t=e;return t||(t=this.cache),t.max}static peek(e,t=this.cache){let n=t;return n||(n=this.cache),n.peek(e)}static keys(e=this.cache){let t=e;return t||(t=this.cache),t.keys()}static clear(e=this.cache){let t=e;t||(t=this.cache),t.clear()}},_s=class{static CharCodes=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"];static matrix2=[[3,4],[1,2]];static matrix3=[[7,8,9],[4,5,6],[1,2,3]];static matrix4=[["21","22","23","24","25"],["16","17","18","19","20"],["11","12","13","14","15"],["06","07","08","09","10"],["01","02","03","04","05"]];static matrix5=[["C","D"],["A","B"]];static dmsToDecimal(e){let t=1;if(e.direction)switch(e.direction){case"W":case"S":t=-1;break;default:t=1}return(Math.abs(e.degrees)+e.minutes/60+e.seconds/3600)*t}static xToDMS(e,t="E"){let n=t;e<0&&(n="W");const r=Math.abs(e);return this.decimalToDms(r,n)}static yToDMS(e,t="N"){let n=t;e<0&&(n="S");const r=Math.abs(e);return this.decimalToDms(r,n)}static decimalToDms(e,t){const n=Math.floor(e),r=60*(e-n),i=Math.floor(r);return{degrees:n,minutes:i,seconds:60*(r-i),direction:t}}static prefixInteger(e,t){return(Array(t).join("0")+e).slice(-t)}static serializeGrid1(e,t){const n="W"===e.direction?-1:1,r=2*e.degrees+Math.floor(e.minutes/30+1),i=this.prefixInteger(r*n+360,3),o="S"===t.direction?1:-1,s=(2*t.degrees+Math.floor(t.minutes/30+1))*o+180;return`${i}${this.CharCodes[Math.floor(s/24)]+this.CharCodes[s%24]}`}static deserializeGrid1(e){const t=e.substring(0,3);let n=Number.parseInt(t)-360,r="E";n<0&&(r="W",n=Math.abs(n)),n-=1;const i=Math.floor(n/2),o={degrees:i,minutes:30*(n-2*i),seconds:0,direction:r},s=e.substring(3,4),a=e.substring(4,5);let c=24*this.CharCodes.indexOf(s)+this.CharCodes.indexOf(a)-180,l="S";c<0&&(l="N",c=Math.abs(c)),c-=1;const u=Math.floor(c/2);return[o,{degrees:u,minutes:30*(c-2*u),seconds:0,direction:l}]}static serializeGrid2(e,t){const n=e.minutes%30,r=Math.floor(n/15),i=t.minutes%30,o=Math.floor(i/15);return this.matrix2[o][r]}static deserializeGrid2(e){return this.deserializeGrid6(e)}static serializeGrid3(e,t){const n=e.minutes%15,r=Math.floor(n/5),i=t.minutes%15,o=Math.floor(i/5);return this.matrix3[o][r]}static deserializeGrid3(e){return this.deserializeGrid7(e)}static serializeGrid4(e,t){const n=e.minutes%5,r=t.minutes%5;return this.matrix4[r][n]}static deserializeGrid4(e){return this.deserializeGrid8(e)}static serializeGrid5(e,t){const n=Math.floor(e.seconds/30),r=Math.floor(t.seconds/30);return this.matrix5[r][n]}static deserializeGrid5(e){let t=0,n=0;switch(e){case"C":t=0,n=0;break;case"D":t=1,n=0;break;case"A":t=0,n=1;break;case"B":t=1,n=1}return[30*t,30*n]}static serializeGrid6(e,t){const n=e.seconds%30,r=Math.floor(n/15),i=t.seconds%30,o=Math.floor(i/15);return this.matrix2[o][r]}static deserializeGrid6(e){let t=0,n=0;switch(e){case"3":t=0,n=0;break;case"4":t=1,n=0;break;case"1":t=0,n=1;break;case"2":t=1,n=1}return[15*t,15*n]}static serializeGrid7(e,t){const n=e.seconds%15,r=Math.floor(n/5),i=t.seconds%15,o=Math.floor(i/5);return this.matrix3[o][r]}static deserializeGrid7(e){const t=Number.parseInt(e);let n=!1,r=0,i=0;for(let o=0;o<3;o++){for(let e=0;e<3;e++)if(this.matrix3[o][e]===t){r=o,i=e,n=!0;break}if(n)break}return[5*i,5*r]}static serializeGrid8(e,t){const n=Math.floor(e.seconds%5),r=Math.floor(t.seconds%5);return this.matrix4[r][n]}static deserializeGrid8(e){let t=!1,n=0,r=0;for(let i=0;i<5;i++){for(let o=0;o<5;o++)if(this.matrix4[i][o]===e){n=i,r=o,t=!0;break}if(t)break}return[r,n]}static serializeGrid9(e,t){const n=Math.floor(1e3*(e.seconds-Math.floor(e.seconds))),r=Math.floor(n/125),i=Math.floor(1e3*(t.seconds-Math.floor(t.seconds))),o=Math.floor(i/125);return this.prefixInteger(8*(7-o)+r+1,2)}static deserializeGrid9(e){const t=Number.parseInt(e)-1,n=7-Math.floor(t/8);return[.125*(t-8*(7-n)),.125*n]}static serializeWarGrid(e,t,n=1){let r=this.serializeGrid1(e,t);return n>=2&&(r+=this.serializeGrid2(e,t),n>=3&&(r+=this.serializeGrid3(e,t),n>=4&&(r+=this.serializeGrid4(e,t),n>=5&&(r+=this.serializeGrid5(e,t),n>=6&&(r+=this.serializeGrid6(e,t),n>=7&&(r+=this.serializeGrid7(e,t),n>=8&&(r+=this.serializeGrid8(e,t),n>=9&&(r+=this.serializeGrid9(e,t))))))))),r}static deserializeWarGrid(e){const t=e.length;if(t<5)throw new Error("编码长度不小于5个");const[n,r]=this.deserializeGrid1(e);let i=[0,0];return t>=6&&(i=this.deserializeGrid2(e.substring(5,6)),n.minutes+=i[0],r.minutes+=i[1],t>=7&&(i=this.deserializeGrid3(e.substring(6,7)),n.minutes+=i[0],r.minutes+=i[1],t>=9&&(i=this.deserializeGrid4(e.substring(7,9)),n.minutes+=i[0],r.minutes+=i[1],t>=10&&(i=this.deserializeGrid5(e.substring(9,10)),n.seconds+=i[0],r.seconds+=i[1],t>=11&&(i=this.deserializeGrid6(e.substring(10,11)),n.seconds+=i[0],r.seconds+=i[1],t>=12&&(i=this.deserializeGrid7(e.substring(11,12)),n.seconds+=i[0],r.seconds+=i[1],t>=14&&(i=this.deserializeGrid8(e.substring(12,14)),n.seconds+=i[0],r.seconds+=i[1],t>=16&&(i=this.deserializeGrid9(e.substring(14,16)),n.seconds+=i[0],r.seconds+=i[1])))))))),[n,r]}},Rs=((e,t)=>{let n={};for(var r in e)Q(n,r,{get:e[r],enumerable:!0});return t||Q(n,Symbol.toStringTag,{value:"Module"}),n})({base64ToBlob:()=>Bs,blobToDataURL:()=>js,convertDecimalism:()=>Us,convertDecimalismData:()=>Hs,convertDecimalismSpacing:()=>$s,convertToDecimalism:()=>qs,convertToDecimalismByString:()=>Gs,convertToDecimalismByString2:()=>Vs,filterObj:()=>Is,getRandomInt:()=>Ps,getRandomItem:()=>Ns,replaceAll:()=>Fs,reserveDecimal:()=>Ws,traverseXYArrayFromInsideOut:()=>Xs});function Is(e,t){const n={};return Object.keys(e).filter(e=>t.includes(e)).forEach(t=>{n[t]=e[t]}),n}function Ps(e=100,t=0){return Math.floor(Math.random()*(e-t+1))+t}function Ns(e){if(!e)return;const t=e.length;return 0!==t?e[Math.floor(Math.random()*t)]:void 0}function Bs(e,t="image/png"){let n=t,r="";const i=e.split(",");2===i.length?(n=(i[0]?.match(/:(.*?);/))[1],r=atob(i[1])):r=atob(i[0]);let o=r.length;const s=new Uint8Array(o);for(;o--;)s[o]=r.charCodeAt(o);return new Blob([s],{type:n})}function js(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=n,r.readAsDataURL(e)})}function Fs(e,t,n){return e.split(t).join(n)}function Ws(e,t=2){const n=Math.pow(10,t);return Math.round(e*n)/n}function Us(e,t=!0,n=!0){const r=n?e>0?"E":"W":e>0?"N":"S",i=Math.floor(e),o=60*(e-i),s=Math.floor(o),a=60*(o-s);return t?`${r}:${i}°${s}′${a.toFixed(3)}″`:{degree:i*(e>0?1:-1),minute:s,second:a}}function $s(e,t=3){const n=Math.floor(e),r=60*(e-n),i=Math.floor(r);return`${n} ${i} ${(60*(r-i)).toFixed(t)}`}function Hs(e,t=3){const n=Math.floor(e),r=60*(e-n),i=Math.floor(r);return{degree:n,minute:i,second:Ws(60*(r-i),t)}}function qs(e,t,n){return e+t/60+n/3600}function Gs(e,t=-1){const n=e.split(" ");if(!n||3!=n.length)return-1;const r=Number(n[0]),i=Number(n[1]),o=Number(n[2]);return NaN===r||NaN===i||NaN===o?-1:-1!=t?Ws(r+i/60+o/3600,t):r+i/60+o/3600}function Vs(e){const t=e.match(/^([EWNS]):?(\d+)[°ºd](\d+)[′'m](\d+\.?\d*)[″"s]?$/i);if(!t)return NaN;let n=parseFloat(t[2])+parseFloat(t[3])/60+parseFloat(t[4])/3600;return(e.toUpperCase().startsWith("W")||e.toUpperCase().startsWith("S"))&&(n=-n),n}function Xs(e,t,n){if(e<=0||t<=0)throw new Error("行数或列数不能小于0!");const r=e,i=t,o=Math.floor(r/2),s=Math.floor(i/2),a=Math.max(o,r-1-o,s,i-1-s),c=Array(r).fill(!1).map(()=>Array(i).fill(!1)),l=[];for(let u=0;u<=a;u++){const e=Math.max(0,o-u),t=Math.min(r-1,o+u),a=Math.max(0,s-u),f=Math.min(i-1,s+u);for(let r=e;r<=t;r++)for(let e=a;e<=f;e++)c[r][e]||(n&&n(r,e),c[r][e]=!0,l.push([r,e]))}return l}function Ys(e){const t=e.toLowerCase().replace(/rgb?a?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n=parseFloat(t[3]||"1"),r=Math.floor(n*parseInt(t[0])+255*(1-n)),i=Math.floor(n*parseInt(t[1])+255*(1-n)),o=Math.floor(n*parseInt(t[2])+255*(1-n));return"#"+("0"+r.toString(16)).slice(-2)+("0"+i.toString(16)).slice(-2)+("0"+o.toString(16)).slice(-2)}function Ks(e){var t=e.toLowerCase();if(ta(e)){if(4===t.length){for(var n="#",r=1;r<4;r+=1){const e=t.slice(r,r+1);n+=e.concat(e)}t=n}var i=[];for(r=1;r<7;r+=2)i.push(parseInt("0x"+t.slice(r,r+2)));return"rgb("+i.join(",")+")"}return t}function Zs(e){const t=e;if(4===t.length){let e="#";for(var n=1;n<4;n+=1){const r=t.slice(n,n+1);e+=r.concat(r)}return e}return t}function Js(e){if("object"==typeof e||!e)return;const t=e.toLowerCase().substring(0,1);return"#"===t?ys.Hex:"r"===t||"("===t?ys.RGBA:"h"===t?ys.Hsla:ys.RGBA}function Qs(e){if(e){var t=e.toLowerCase().match(/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i);if(t){var n,r,i,o=(parseFloat(t[1])%360+360)%360/360,s=parseFloat(t[2])/(/%$/.test(t[2])?100:1),a=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===s)n=r=i=a;else{var c=a<=.5?a*(s+1):a+s-a*s,l=2*a-c;n=ea(l,c,o+1/3),r=ea(l,c,o),i=ea(l,c,o-1/3)}return`rgba(${n=Math.round(255*n)},${r=Math.round(255*r)},${i=Math.round(255*i)},${t[4]?parseFloat(t[4]):1})`}}}function ea(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ta(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/.test(e)}function na(e,t,n){const r=(e<<16|t<<8|n).toString(16);return"#"+new Array(Math.abs(r.length-7)).join("0")+r}function ra(e){let t=e.toLowerCase();if(ta(e)){if(4===t.length){let e="#";for(let n=1;n<4;n+=1)e+=t.slice(n,n+1).concat(t.slice(n,n+1));t=e}const e=[];for(let n=1;n<7;n+=2)e.push(parseInt("0x"+t.slice(n,n+2)));return"RGB("+e.join(",")+")"}return t}function ia(e){if(!ta(e))return;const[t,n,r]=ra(e).replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map(e=>Number(e));return.299*t+.578*n+.114*r<192}function oa(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${ua(e.substring(0,2),t)}${ua(e.substring(2,4),t)}${ua(e.substring(4,6),t)}`}function sa(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${aa(e.substring(0,2),t)}${aa(e.substring(2,4),t)}${aa(e.substring(4,6),t)}`}function aa(e,t){const n=parseInt(e,16)+t,r=n>255?255:n;return r.toString(16).length>1?r.toString(16):`0${r.toString(16)}`}function ca(e,t,n){const r=[e,t,n].map(e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return.2126*r[0]+.7152*r[1]+.0722*r[2]}function la(e){return n=[0,0,0],(ca(~~(t=ra(e.substring(1)).split(","))[0],~~t[1],~~t[2])+.05)/(ca(n[0],n[1],n[2])+.05)>=12?"#000000":"#FFFFFF";var t,n}function ua(e,t){const n=parseInt(e,16)-t,r=n<0?0:n;return r.toString(16).length>1?r.toString(16):`0${r.toString(16)}`}function fa(e){const t=(new Date).getTime();let n=(new Date).getTime();for(;n-t<e;)n=(new Date).getTime();console.log(`强制等待${da}毫秒`)}function da(e){return new Promise(t=>setTimeout(t,e))}function ha(e,t,n,r="json",i){const o={baseURL:ir.Config?.ServiceURL.DefaultWebAPI,timeout:6e4,params:e,paramsSerializer:{serialize:function(e){return K.stringify(e,{indices:!1,arrayFormat:"repeat"})}},headers:{"Content-Type":"application/json",Authorization:"bearer "+pr()?.token},responseType:r,cancelToken:i};if(n)for(let s in n)o.headers[s]=n[s];return ir.SystemID&&(o.headers.sysid=ir.SystemID,ir.SystemGroup&&(o.headers.sysgroup=ir.SystemGroup)),void 0!==t&&(o.baseURL=t),o}function pa(e,t,n,r,i="json",o,s){const a=ha(n,t,r,i,o);return s&&s>=2e4&&(a.timeout=s),ir.Axios?.get(e,a).catch(function(t){ga(t,a.baseURL,e,"Get")})}function ga(e,t,n,r="Get"){const i=`${t}${n}`;if(e&&e.response){let t=!1;const n=e.response.status;switch(n){case 400:e.message="错误请求";break;case 401:e.message="未授权,请重新登录";break;case 403:e.message="拒绝访问";break;case 404:e.message="请求错误,未找到该资源";break;case 405:e.message="请求方法未允许";break;case 408:e.message="请求超时";break;case 500:const n=e.response.data;if(n){const r=n.indexOf(":"),i=n.indexOf("\n");if(r>0&&i-r>2){const o=n.substring(r+2,i);o.indexOf("System.Exception")>0?e.message="后台服务内部出错!":(t=!0,e.message=o)}else t=!0,e.message=n}else e.message="服务器端出错";break;case 501:e.message="网络未实现";break;case 502:e.message="网络错误";break;case 503:e.message="服务不可用";break;case 504:e.message="网络超时";break;case 505:e.message="http版本不支持该请求";break;default:e.message=`连接错误${e.response.status}`}let r={address:i,code:n,isExceptionInfo:t,message:e.message,result:e.response.data};if(ir.EventBus.emit(Kn.AxiosRequestErrorEvent,r),t)throw new Error(e.message)}else{if(e?.message)throw new Error(e.message);console.error(e,"Http请求错误!")}}function ma(e,t,n,r,i,o="json",s){const a=ha(r,t,i,o);s&&s>=2e4&&(a.timeout=s),a.headers["Content-Type"]="multipart/form-data";const c=function(e){let t=new FormData;return e&&Object.keys(e).forEach(n=>{if(!e)return;let r=e[n];null!=r&&(Ir(r)?r.forEach(e=>{t.append(n,Sa(e))}):t.append(n,Sa(r)))}),t}(n);return ir.Axios?.post(e,c,a).catch(function(e){ga(e,t,a.baseURL,"Post")})}function va(e,t,n,r,i,o="json",s){const a=ha(r,t,i,o);return s&&s>=2e4&&(a.timeout=s),ir.Axios?.post(e,n,a).catch(function(n){ga(n,t,e,"Post")})}function ya(e,t,n=!1){return e.startsWith("http")?pa("",e,t):n||t?pa(e,void 0,t):pa(e,"",void 0)}function wa(e,t){return ma(e,void 0,t)}function ba(e,t){return ir.Axios?.get(e,{params:t}).catch(function(t){ga(t,e,"","外部Get")})}function Sa(e){return e instanceof Blob?e:e.toString()}function xa(e,t,n){const r=t??cr.getFileName(e);pa("",e,n,void 0,"blob").then(e=>{e.data&&Xo(e.data,r)})}!function(e){e[e.RGBA=0]="RGBA",e[e.Hex=1]="Hex",e[e.Hsla=2]="Hsla"}(ys||(ys={}));var Ea,Ca=((e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}})(()=>{ws=globalThis||self}),ka=ie((e,t)=>{var n;Ca(),n="undefined"!=typeof window?window:void 0!==ws?ws:"undefined"!=typeof self?self:{},t.exports=n}),Ta=ie((e,t)=>{t.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString}),Aa=ie((e,t)=>{var n=function(e){return e.replace(/^\s+|\s+$/g,"")},r=function(e){return"[object Array]"===Object.prototype.toString.call(e)};t.exports=function(e){if(!e)return{};for(var t=Object.create(null),i=n(e).split("\n"),o=0;o<i.length;o++){var s=i[o],a=s.indexOf(":"),c=n(s.slice(0,a)).toLowerCase(),l=n(s.slice(a+1));void 0===t[c]?t[c]=l:r(t[c])?t[c].push(l):t[c]=[t[c],l]}return t}}),Ma=ie((e,t)=>{t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty}),za=ie((e,t)=>{var n=ka(),r=Ta(),i=Aa(),o=Ma();function s(e,t,n){var i=e;return r(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=o(t,{uri:e}),i.callback=n,i}function a(e,t,n){return c(t=s(e,t,n))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),v)try{e=JSON.parse(e)}catch(e){}return e}function o(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,y)}function s(){if(!l){var t;clearTimeout(f),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var o=y,s=null;return 0!==t?(o={body:r(),statusCode:t,method:h,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(o.headers=i(u.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),n(s,o,o.body)}}var c,l,u=e.xhr||null;u||(u=e.cors||e.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var f,d=u.url=e.uri||e.url,h=u.method=e.method||"GET",p=e.body||e.data,g=u.headers=e.headers||{},m=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:u};if("json"in e&&!1!==e.json&&(v=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(s,0)},u.onload=s,u.onerror=o,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=o,u.open(h,d,!m,e.username,e.password),m||(u.withCredentials=!!e.withCredentials),!m&&e.timeout>0&&(f=setTimeout(function(){if(!l){l=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",o(e)}},e.timeout)),u.setRequestHeader)for(c in g)g.hasOwnProperty(c)&&u.setRequestHeader(c,g[c]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(p||null),u}t.exports=a,t.exports.default=a,a.XMLHttpRequest=n.XMLHttpRequest||function(){},a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:n.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){a["delete"===e?"del":e]=function(t,n,r){return(n=s(t,n,r)).method=e.toUpperCase(),c(n)}})}),Oa=oe(za(),1),Da=[200,201,202,204,308],La=[408,502,503,504],_a=class{endpoint;file;headers;method;chunkSize;attempts;delayBeforeAttempt;md5;chunkCount;chunkByteSize;cacheSize=3;currentMaxIndex=0;maxFileBytes;endpointValue;totalChunks;attemptCount;offline;paused;success;isResumed=!1;mapXhrRequest;okRecordList;eventTarget;fileName;constructor(e){this.endpoint=e.endpoint,this.file=e.file,this.fileName=encodeURI(this.file.name),this.headers=e.headers||{},this.method=e.method||"PUT",this.chunkSize=e.chunkSize||5120,this.attempts=e.attempts||5,this.delayBeforeAttempt=e.delayBeforeAttempt||1,this.md5=e.md5||"",null!=e.threadNumber&&e.threadNumber>=2&&(this.cacheSize=e.threadNumber),this.maxFileBytes=1024*(e.maxFileSize||0),this.chunkCount=0,this.chunkByteSize=1024*this.chunkSize,this.totalChunks=Math.ceil(this.file.size/this.chunkByteSize),this.attemptCount=0,this.offline=!1,this.paused=!1,this.success=!1,this.mapXhrRequest=new Map,this.okRecordList=[],this.eventTarget=ae(),this.validateOptions(),this.getEndpoint().then(()=>{for(let e=0;e<this.cacheSize;e++){const t=e;if(t<this.totalChunks){const e=100*t;e>0?da(e).then(e=>{this.sendChunks(t)}):this.sendChunks(t)}}}),"undefined"!=typeof window&&(window.addEventListener("online",()=>{this.offline&&(this.offline=!1,this.dispatch("online"),this.sendChunks())}),window.addEventListener("offline",()=>{this.offline=!0,this.dispatch("offline")}))}on(e,t){this.eventTarget.on(e,t)}abort(){this.pause(),this.mapXhrRequest.size>0&&(this.mapXhrRequest.forEach((e,t)=>{e&&e.abort()}),this.mapXhrRequest.clear())}pause(){this.paused=!0}async resume(){this.paused=!1,this.isResumed=!0;for(let e=0;e<this.totalChunks;e++)this.mapXhrRequest.size>=this.cacheSize&&await da(500*(this.mapXhrRequest.size-this.cacheSize+1)),this.sendChunks(e)}dispatch(e,t){this.eventTarget.emit(e,t)}validateOptions(){if(!this.endpoint||"function"!=typeof this.endpoint&&"string"!=typeof this.endpoint)throw new TypeError("endpoint必须为:文件上传URL字符串,或返回地址的函数!");if(!(this.file instanceof File))throw new TypeError("file必须为文件对象");if(this.headers&&"object"!=typeof this.headers)throw new TypeError("文件头必须为对象或空!");if(this.chunkSize&&("number"!=typeof this.chunkSize||this.chunkSize<=0||this.chunkSize%256!=0))throw new TypeError("chunkSize必须大于0,并是256的整数倍");if(this.maxFileBytes>0&&this.maxFileBytes<this.file.size)throw new Error(`文件大小超过最大允许值:(${this.file.size} > ${this.maxFileBytes})`);if(this.attempts&&("number"!=typeof this.attempts||this.attempts<=0))throw new TypeError("重试次数必须为正数!");if(this.delayBeforeAttempt&&("number"!=typeof this.delayBeforeAttempt||this.delayBeforeAttempt<0))throw new TypeError("延时重试时间必须为正数!默认为1")}getEndpoint(){return"string"==typeof this.endpoint?(this.endpointValue=this.endpoint,Promise.resolve(this.endpoint)):this.endpoint(this.file).then(e=>(this.endpointValue=e,this.endpointValue))}getChunk(e=0){return new Promise(t=>{const n=1===this.totalChunks?this.file.size:this.chunkByteSize,r=n*e,i=new FileReader;i.onload=function(){null!==this.result?t({chunkIndex:e,chunkContent:new Blob([this.result],{type:"application/octet-stream"})}):t(void 0)},i.readAsArrayBuffer(this.file.slice(r,r+n))})}xhrPromise(e){return new Promise((t,n)=>{const r=e.headers,i=Number(r.ChunkIndex),o=(0,Oa.default)({...e},(e,r)=>(this.mapXhrRequest.delete(i),e?n(e):t(r)));this.mapXhrRequest.set(i,o)})}sendChunk(e,t){if(!t)return;const n=e*this.chunkByteSize,r=n+t.size-1,i={...this.headers,FileName:this.fileName,FileMD5:this.md5,ChunkIndex:e.toString(),"Content-Type":this.file.type,"Content-Range":`bytes ${n}-${r}/${this.file.size}`};return this.dispatch("attempt",{chunkNumber:e,chunkSize:t.size}),this.endpointValue?this.xhrPromise({headers:i,url:this.endpointValue,method:this.method,body:t}):(console.warn("文件上传endpointValue不能为空!"),void this.dispatch("error",{message:"文件上传endpointValue不能为空!取消上传!",chunk:e,attempts:this.attemptCount}))}sendChunks(e=0){this.paused||this.offline||this.success||this.okRecordList.indexOf(e)<0&&(this.currentMaxIndex<e&&(this.currentMaxIndex=e),this.getChunk(e).then(e=>{if(e){const{chunkIndex:t,chunkContent:n}=e;return this.sendChunk(t,n)}}).then(t=>{if(t)if(Da.includes(t.statusCode)){const n=JSON.parse(t.body).RESULTVALUE;if(n.STATE){this.attemptCount=0,this.chunkCount=this.chunkCount+1;const e=Math.round(n.INDEX/this.chunkByteSize);this.mapXhrRequest.delete(e),this.dispatch("chunkSuccess",{chunkCount:this.chunkCount,attempts:this.attemptCount,chunkNumber:e}),this.okRecordList.push(e),this.chunkCount<this.totalChunks&&!this.isResumed&&this.currentMaxIndex<this.totalChunks-1&&(this.currentMaxIndex++,this.sendChunks(this.currentMaxIndex));const t=100*this.chunkCount/this.totalChunks;this.dispatch("progress",t),n.END&&(this.success=!0,this.dispatch("success",this.fileName),this.okRecordList.length=0)}else{const t=`服务器错误:${n.NAME},停止上传。`;console.log(t),this.dispatch("error",{message:t,chunkNumber:e,attempts:0}),this.mapXhrRequest.delete(e),da(1e3).then(t=>this.sendChunks(e))}}else if(null!=t&&La.includes(t.statusCode)){if(this.paused||this.offline)return}else{if(this.paused||this.offline)return;console.log(`服务器错误:${t?.statusCode},停止上传。`),this.dispatch("error",{message:`服务器错误:${t?.statusCode},停止上传。`,chunkNumber:this.chunkCount,attempts:this.attemptCount})}else console.warn("上传失败的索引为:"+e)}).catch(e=>{!this.paused&&this.offline}))}},Ra=e=>new _a(e),Ia=new class{hasClass(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}addClass(e,t){this.hasClass(e,t)||(e.className+=" "+t)}removeClass(e,t){if(this.hasClass(e,t)){const n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}toggleClass(e,t){this.hasClass(e,t)?this.removeClass(e,t):this.addClass(e,t)}setCSSProperty(e,t,n){e?.style.setProperty(t,n)}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():0}getViewportOffset(e){const t=document.documentElement,n=t.scrollLeft,r=t.scrollTop,i=t.clientLeft,o=t.clientTop,s=globalThis.scrollX,a=globalThis.scrollY,{left:c,top:l,width:u,height:f}=this.getBoundingClientRect(e),d=c+s-((s||n)-(i||0)),h=l+a-((a||r)-(o||0)),p=globalThis.document.documentElement.clientWidth,g=globalThis.document.documentElement.clientHeight;return{left:d,top:h,right:p-u-d,bottom:g-f-h,rightIncludeBody:p-d,bottomIncludeBody:g-h}}hackCss(e,t){const n={};return["webkit","Moz","ms","OT"].forEach(r=>{n[`${r}${cr.UpperFirst(e)}`]=t}),{...n,[e]:t}}on(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}off(e,t,n){e&&t&&n&&e.removeEventListener(t,n,!1)}once(e,t,n){const r=function(...i){n&&n.apply(this,i),this.off(e,t,r)};this.on(e,t,r)}},Pa=E({isLock:!1,lockTime:0});function Na(e){Pa.isLock=e,e&&(gr(),console.log("锁屏了……"))}function Ba(){return Pa.isLock}function ja(){clearInterval(Ea),globalThis.location.href.indexOf("/login")>0||Pa.isLock||(Na(!1),Pa.lockTime=function(){let e=3600;return ir.Config.UI?.LockTime&&ir.Config.UI?.LockTime>=10&&(e=ir.Config.UI.LockTime),e}(),Ea=setInterval(()=>{if(Pa.lockTime--,Pa.lockTime<=0)return Na(!0),clearInterval(Ea)},1e3))}function Fa(){ja(),document.addEventListener("mousedown",ja),document.addEventListener("mousemove",ja)}function Wa(){document.removeEventListener("mousedown",ja),document.removeEventListener("mousemove",ja)}var Ua,$a=ie((e,t)=>{Ca(),function(n){"object"==typeof e&&void 0!==t?t.exports=n():"function"==typeof define&&define.amd?define([],n):("undefined"!=typeof window?window:void 0!==ws?ws:"undefined"!=typeof self?self:this).localforage=n()}(function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof se&&se;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){return i(t[s][1][e]||e)},u,u.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof se&&se,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(u),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||n()}}).call(this,void 0!==ws?ws:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){var r=e(1);function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)})}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var s=p(function(){t(i,r)});"error"===s.status&&r(s.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var n=new this.constructor(i);return this.state!==c?f(n,this.state===a?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return o.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then(function(e){s[i]=e,++a!==n||r||(r=!0,o.resolve(l,s))},function(e){r||(r=!0,o.reject(l,e))})}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=-1,a=new this(i);++s<n;)c(e[s]);return a;function c(e){t.resolve(e).then(function(e){r||(r=!0,o.resolve(a,e))},function(e){r||(r=!0,o.reject(a,e))})}}},{1:1}],3:[function(e,t,n){(function(t){"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==ws?ws:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var s=Promise;function a(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function c(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function l(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f="local-forage-detect-blob-support",d=void 0,h={},p=Object.prototype.toString,g="readonly",m="readwrite";function v(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function y(e){return"boolean"==typeof d?s.resolve(d):function(e){return new s(function(t){var n=e.transaction(f,m),r=o([""]);n.objectStore(f).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);t(navigator.userAgent.match(/Edge\//)||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}(e).then(function(e){return d=e})}function w(e){var t=h[e.name],n={};n.promise=new s(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function b(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function S(e,t){var n=h[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function x(e,t){return new s(function(n,r){if(h[e.name]=h[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);w(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var s=i.open.apply(i,o);t&&(s.onupgradeneeded=function(t){var n=s.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(f)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),s.onerror=function(e){e.preventDefault(),r(s.error)},s.onsuccess=function(){var t=s.result;t.onversionchange=function(e){e.target.close()},n(t),b(e)}})}function E(e){return x(e,!1)}function C(e){return x(e,!0)}function k(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function T(e){return o([v(atob(e.data))],{type:e.type})}function A(e){return e&&e.__local_forage_encoded_blob}function M(e){var t=this,n=t._initReady().then(function(){var e=h[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return c(n,e,e),n}function z(e,t,n,r){void 0===r&&(r=1);try{n(null,e.db.transaction(e.storeName,t))}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),C(e)}).then(function(){return function(e){w(e);for(var t=h[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,E(e).then(function(t){return e.db=t,k(e)?C(e):t}).then(function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r}).catch(function(t){throw S(e,t),t})}(e).then(function(){z(e,t,n,r-1)})}).catch(n);n(i)}}var O={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=h[n.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},h[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=M);var o=[];function a(){return s.resolve()}for(var c=0;c<i.forages.length;c++){var l=i.forages[c];l!==t&&o.push(l._initReady().catch(a))}var u=i.forages.slice(0);return s.all(o).then(function(){return n.db=i.db,E(n)}).then(function(e){return n.db=e,k(n,t._defaultConfig.version)?C(n):e}).then(function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var o=u[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}})},_support:function(){try{if(!i||!i.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new s(function(t,r){n.ready().then(function(){z(n._dbInfo,g,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).openCursor(),a=1;s.onsuccess=function(){var n=s.result;if(n){var r=n.value;A(r)&&(r=T(r));var i=e(r,n.key,a++);void 0!==i?t(i):n.continue()}else t()},s.onerror=function(){r(s.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new s(function(t,r){n.ready().then(function(){z(n._dbInfo,g,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),A(e)&&(e=T(e)),t(e)},s.onerror=function(){r(s.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var i=new s(function(n,i){var o;r.ready().then(function(){return o=r._dbInfo,"[object Blob]"===p.call(t)?y(o.db).then(function(e){return e?t:(n=t,new s(function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){e({__local_forage_encoded_blob:!0,data:btoa(t.target.result||""),type:n.type})},r.readAsBinaryString(n)}));var n}):t}).then(function(t){z(r._dbInfo,m,function(o,s){if(o)return i(o);try{var a=s.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var c=a.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),n(t)},s.onabort=s.onerror=function(){i(c.error?c.error:c.transaction.error)}}catch(e){i(e)}})}).catch(i)});return a(i,n),i},removeItem:function(e,t){var n=this;e=l(e);var r=new s(function(t,r){n.ready().then(function(){z(n._dbInfo,m,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(s.error)},o.onabort=function(){r(s.error?s.error:s.transaction.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r},clear:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){z(t._dbInfo,m,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){n(o.error?o.error:o.transaction.error)}}catch(e){n(e)}})}).catch(n)});return a(n,e),n},length:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){z(t._dbInfo,g,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return a(n,e),n},key:function(e,t){var n=this,r=new s(function(t,r){e<0?t(null):n.ready().then(function(){z(n._dbInfo,g,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName),a=!1,c=s.openKeyCursor();c.onsuccess=function(){var n=c.result;n?0===e||a?t(n.key):(a=!0,n.advance(e)):t(null)},c.onerror=function(){r(c.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r},keys:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){z(t._dbInfo,g,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];o.onsuccess=function(){var t=o.result;t?(s.push(t.key),t.continue()):e(s)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return a(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n,r=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName),e.name){var o=e.name===r.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):E(e).then(function(t){var n=h[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t});n=e.storeName?o.then(function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;w(e);var r=h[e.name],o=r.forages;t.close();for(var a=0;a<o.length;a++){var c=o[a];c._dbInfo.db=null,c._dbInfo.version=n}return new s(function(t,r){var o=i.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}).then(function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,b(n._dbInfo)}}).catch(function(t){throw(S(e,t)||s.resolve()).catch(function(){}),t})}}):o.then(function(t){w(e);var n=h[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;return new s(function(t,n){var r=i.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}).then(function(e){n.db=e;for(var t=0;t<r.length;t++)b(r[t]._dbInfo)}).catch(function(t){throw(S(e,t)||s.resolve()).catch(function(){}),t})})}else n=s.reject("Invalid arguments");return a(n,t),n}},D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=/^~~local_forage_type~([^~]+)~/,_="__lfsc__:",R="arbf",I="blob",P="si08",N="ui08",B="uic8",j="si16",F="si32",W="ur16",U="ui32",$="fl32",H="fl64",q=Object.prototype.toString;function G(e){var t,n,r,i,o,s=.75*e.length,a=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),u=new Uint8Array(l);for(t=0;t<a;t+=4)n=D.indexOf(e[t]),r=D.indexOf(e[t+1]),i=D.indexOf(e[t+2]),o=D.indexOf(e[t+3]),u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l}function V(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=D[n[t]>>2],r+=D[(3&n[t])<<4|n[t+1]>>4],r+=D[(15&n[t+1])<<2|n[t+2]>>6],r+=D[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var X={serialize:function(e,t){var n="";if(e&&(n=q.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===q.call(e.buffer))){var r,i=_;e instanceof ArrayBuffer?(r=e,i+=R):(r=e.buffer,"[object Int8Array]"===n?i+=P:"[object Uint8Array]"===n?i+=N:"[object Uint8ClampedArray]"===n?i+=B:"[object Int16Array]"===n?i+=j:"[object Uint16Array]"===n?i+=W:"[object Int32Array]"===n?i+=F:"[object Uint32Array]"===n?i+=U:"[object Float32Array]"===n?i+=$:"[object Float64Array]"===n?i+=H:t(new Error("Failed to get type for BinaryArray"))),t(i+V(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+V(this.result);t(_+I+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,9)!==_)return JSON.parse(e);var t,n=e.substring(13),r=e.substring(9,13);if(r===I&&L.test(n)){var i=n.match(L);t=i[1],n=n.substring(i[0].length)}var s=G(n);switch(r){case R:return s;case I:return o([s],{type:t});case P:return new Int8Array(s);case N:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case j:return new Int16Array(s);case W:return new Uint16Array(s);case F:return new Int32Array(s);case U:return new Uint32Array(s);case $:return new Float32Array(s);case H:return new Float64Array(s);default:throw new Error("Unkown type: "+r)}},stringToBuffer:G,bufferToString:V};function Y(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function K(e,t,n,r,i,o){e.executeSql(n,r,i,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,a){a.rows.length?o(e,s):Y(e,t,function(){e.executeSql(n,r,i,o)},o)},o):o(e,s)},o)}function Z(e,t,n,r){var i=this;e=l(e);var o=new s(function(o,s){i.ready().then(function(){void 0===t&&(t=null);var a=t,c=i._dbInfo;c.serializer.serialize(t,function(t,l){l?s(l):c.db.transaction(function(n){K(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){o(a)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(Z.apply(i,[e,a,n,r-1]));s(t)}})})}).catch(s)});return a(o,n),o}var J={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new s(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(i){Y(i,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=X,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new s(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){K(n,i,"SELECT * FROM "+i.storeName,[],function(n,r){for(var o=r.rows,s=o.length,a=0;a<s;a++){var c=o.item(a),l=c.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=e(l,c.key,a+1)))return void t(l)}t()},function(e,t){r(t)})})}).catch(r)});return a(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new s(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){K(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)},function(e,t){r(t)})})}).catch(r)});return a(r,t),r},setItem:function(e,t,n){return Z.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=l(e);var r=new s(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){K(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return a(r,t),r},clear:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){K(t,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return a(n,e),n},length:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){K(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return a(n,e),n},key:function(e,t){var n=this,r=new s(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){K(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){t(n.rows.length?n.rows.item(0).key:null)},function(e,t){r(t)})})}).catch(r)});return a(r,t),r},keys:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){K(t,r,"SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)},function(e,t){n(t)})})}).catch(n)});return a(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return r=e.name?new s(function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(function(e){return new s(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})},function(e,t){n(t)})},function(e){n(e)})})}(r))}).then(function(e){return new s(function(t,n){e.db.transaction(function(r){function i(e){return new s(function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(e,t){n(t)})})}for(var o=[],a=0,c=e.storeNames.length;a<c;a++)o.push(i(e.storeNames[a]));s.all(o).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):s.reject("Invalid arguments"),a(r,t),r}};function Q(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}var ee={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=Q(e,this._defaultConfig),!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0?(this._dbInfo=t,t.serializer=X,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,s=1,a=0;a<o;a++){var c=localStorage.key(a);if(0===c.indexOf(r)){var l=localStorage.getItem(c);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,c.substring(i),s++)))return l}}});return a(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r});return a(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var i=r.ready().then(function(){void 0===t&&(t=null);var n=t;return new s(function(i,o){var s=r._dbInfo;s.serializer.serialize(t,function(t,r){if(r)o(r);else try{localStorage.setItem(s.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}})})});return a(i,n),i},removeItem:function(e,t){var n=this;e=l(e);var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return a(r,t),r},clear:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return a(n,e),n},length:function(e){var t=this.keys().then(function(e){return e.length});return a(t,e),t},key:function(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return a(r,t),r},keys:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r});return a(n,e),n},dropInstance:function(e,t){if(t=u.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return r=e.name?new s(function(t){e.storeName?t(Q(e,i._defaultConfig)):t(e.name+"/")}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}}):s.reject("Invalid arguments"),a(r,t),r}},te=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},ne=function(e,t){for(var n=e.length,r=0;r<n;){if(te(e[r],t))return!0;r++}return!1},re=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ie={},oe={},se={INDEXEDDB:O,WEBSQL:J,LOCALSTORAGE:ee},ae=[se.INDEXEDDB._driver,se.WEBSQL._driver,se.LOCALSTORAGE._driver],ce=["dropInstance"],le=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ce),ue={description:"",driver:ae.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function fe(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function de(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(re(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}t.exports=new(function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),se)if(se.hasOwnProperty(n)){var r=se[n],i=r._driver;this[n]=i,ie[i]||this.defineDriver(r)}this._defaultConfig=de({},ue),this._config=de({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new s(function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=le.concat("_initStorage"),c=0,l=o.length;c<l;c++){var u=o[c];if((!ne(ce,u)||e[u])&&"function"!=typeof e[u])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=s.reject(t);return a(n,arguments[arguments.length-1]),n}},n=0,r=ce.length;n<r;n++){var i=ce[n];e[i]||(e[i]=t(i))}}();var f=function(n){ie[r]&&console.info("Redefining LocalForage driver: "+r),ie[r]=e,oe[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(f,n):f(!!e._support):f(!0)}catch(e){n(e)}});return c(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=ie[e]?s.resolve(ie[e]):s.reject(new Error("Driver not found."));return c(r,t,n),r},e.prototype.getSerializer=function(e){var t=s.resolve(X);return c(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return c(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;re(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function a(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var l=null!==this._driverSet?this._driverSet.catch(function(){return s.resolve()}):s.resolve();return this._driverSet=l.then(function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then(function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(a).catch(n)}o();var c=new Error("No available storage method found.");return r._driverSet=s.reject(c),r._driverSet}()}}(i)})}).catch(function(){o();var e=new Error("No available storage method found.");return r._driverSet=s.reject(e),r._driverSet}),c(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!oe[e]},e.prototype._extend=function(e){de(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=le.length;e<t;e++)fe(this,le[e])},e.prototype.createInstance=function(t){return new e(t)},e}())},{3:3}]},{},[4])(4)})}),Ha=oe($a(),1),qa={exports:{}};qa.exports,Ua=()=>{const e=globalThis;e.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");let t=null,n=!1;const r=e.WebStreamsPolyfill||{};let i=/constructor/i.test(e.HTMLElement)||!!e.safari||!!e.WebKitPoint;const o={createWriteStream:function(e,r=null,a=null){let c={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},l=0,u=null,f=null,d=null;if(Number.isFinite(r)?([a,r]=[r,a],console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),c.size=a,c.writableStrategy=r):r&&r.highWaterMark?(console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),c.size=a,c.writableStrategy=r):c=r||{},!i){t||(t=s(o.mitm)),f=new MessageChannel,e=encodeURIComponent(e.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");const r={transferringReadable:n,pathname:c.pathname||Math.random().toString().slice(-6)+"/"+e,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+e}};c.size&&(r.headers["Content-Length"]=c.size);const i=[r,"*",[f.port2]];if(n){d=new o.TransformStream(void 0,c.writableStrategy,c.readableStrategy);const e=d.readable;f.port1.postMessage({readableStream:e},[e])}f.port1.onmessage=e=>{e.data.download?(t.isPopup&&(t.remove(),t=null,s(o.mitm)),s(e.data.download)):e.data.abort&&(h=[],f.port1.postMessage("abort"),f.port1.onmessage=null,f.port1.close(),f.port2.close(),f=null)},t.loaded?t.postMessage(...i):t.addEventListener("load",()=>{t.postMessage(...i)},{once:!0})}let h=[];return!i&&d&&d.writable||new o.WritableStream({write(e){if(!(e instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");i?h.push(e):(f.port1.postMessage(e),l+=e.length,u&&(location.href=u,u=null))},close(){if(i){const t=new Blob(h,{type:"application/octet-stream; charset=utf-8"}),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download=e,n.click()}else f.port1.postMessage("end")},abort(){h=[],f.port1.postMessage("abort"),f.port1.onmessage=null,f.port1.close(),f.port2.close(),f=null}},c.writableStrategy)},WritableStream:e.WritableStream||r.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"./mitm.html"};function s(e){if(!e)throw new Error("meh");const t=document.createElement("iframe");return t.hidden=!0,t.src=e,t.loaded=!1,t.name="iframe",t.isIframe=!0,t.postMessage=(...e)=>t.contentWindow.postMessage(...e),t.addEventListener("load",()=>{t.loaded=!0},{once:!0}),document.body.appendChild(t),t}try{new Response(new ReadableStream),"serviceWorker"in navigator||(i=!0)}catch(e){i=!0}return(()=>{try{(()=>{const{readable:e}=new TransformStream,t=new MessageChannel;t.port1.postMessage(e,[e]),t.port1.close(),t.port2.close(),n=!0,Object.defineProperty(o,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})})()}catch(e){}})(),o},void 0!==qa?qa.exports=Ua():"function"==typeof define&&"object"==typeof define.amd?define(Ua):(void 0).streamSaver=Ua();var Ga=(null==qa.exports?{}:qa.exports).default||qa.exports,Va=class{fileID;downloadURL;ChunkUnitM=1048576;chunkByteSize;totalChunks=1;currentDB;keys;fileMetaData=null;finishNum=0;eventTarget;cancelSource;isStarting=!1;fileName;cacheSize=6;requestTimeout=6e4;constructor(e,t,n=3,r=6,i=6e4){this.fileID=e,this.downloadURL=t,this.chunkByteSize=n*this.ChunkUnitM,this.eventTarget=ae(),this.initIndexDB(),r>=3&&(this.cacheSize=r),i>this.requestTimeout&&(this.requestTimeout=i)}on(e,t){this.eventTarget.on(e,t)}dispatch(e,t){this.eventTarget.emit(e,t)}dispatchError(e){this.eventTarget.emit("error",e)}dispatchInfo(e){this.eventTarget.emit("info",e)}async queryDownloadFileMeta(e,t="",n){this.dispatchInfo("开始获取文件信息");const r=await pa(t,e,n);let i=null;return r&&200===r.status&&(i=r.data),i}async getIFileMeta(){if(null===this.fileMetaData){const e=await(this.currentDB?.getItem("fileinfo"));this.fileMetaData=e||null}return this.fileMetaData}initIndexDB(){this.currentDB=Ha.default.createInstance({name:this.fileID,driver:Ha.default.INDEXEDDB})}async init(e){if(this.finishNum=0,e){const t="fileinfo";this.fileMetaData={id:e.id,name:e.name,length:e.length,downloadID:e.downloadID,chunkSize:this.chunkByteSize},this.fileName=e.name,this.currentDB?.setItem(t,this.fileMetaData)}if(null!=this.fileMetaData){const e=this.fileMetaData.chunkSize;null!=e&&e>0&&(this.chunkByteSize=e)}this.fileMetaData&&(this.totalChunks=Math.ceil(this.fileMetaData.length/this.chunkByteSize)),this.dispatchInfo("完成初始化文件信息,总分片:"+this.totalChunks),this.currentDB&&(this.keys=await this.currentDB.keys())}getTotalChunks(){return this.totalChunks}pause(){this.cancelSource&&this.isStarting&&(this.cancelSource.cancel(),this.isStarting=!1),this.dispatchInfo("已暂停下载任务")}restart(){this.dispatchInfo("正在重启下载任务"),this.download()}delete(){this.cancelSource&&this.cancelSource.cancel(),Ha.default.dropInstance({name:this.fileID}),this.currentDB=void 0,this.keys&&(this.keys.length=0,this.keys=void 0),this.finishNum=0,this.downloadProgress(),this.outputProgress(0),this.dispatchInfo("已删除下载任务")}sleep(e){return new Promise(t=>setTimeout(t,e))}async download(e,t,n){let r=e;if(!r&&this.downloadURL&&(r=this.downloadURL),!r)throw Error("下载URL不能为空!");this.currentDB||this.initIndexDB();const i=ir.Axios.CancelToken;this.cancelSource=i.source(),this.isStarting=!0;const o={key:this.fileMetaData?.downloadID},s=n??o;let a=0;const c=this.cacheSize;let l=0;for(let u=0;u<this.totalChunks;u++){if(this.keys&&this.keys?.indexOf(u.toString())>=0){a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());continue}const e=u*this.chunkByteSize;let n=e+this.chunkByteSize-1;this.fileMetaData&&n>this.fileMetaData.length&&(n=this.fileMetaData.length-1);const i={range:`bytes=${e}-${n}`};for(;l>=c;)await this.sleep(200);const o=u.toString();this.dispatchInfo(`开始下载分片${u+1}/${this.totalChunks}`),l++,pa(r,t,s,i,"arraybuffer",this.cancelSource?.token,this.requestTimeout).then(async e=>{const t=e.data;l--,await(this.currentDB?.setItem(o,t)),a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());const n=parseInt(o)+1;this.dispatchInfo(`完成下载分片${n}/${this.totalChunks}`),this.savefile()}).catch(e=>{l--;const t=parseInt(o)+1;this.dispatchError(`下载第${t})个分片内容失败!`)})}this.finishNum===this.totalChunks&&this.savefile()}downloadProgress(){const e=100*this.finishNum/this.totalChunks;this.dispatch("downloadProgress",e)}outputProgress(e){const t=100*e/this.totalChunks;this.dispatch("saveProgress",t)}async savefile(){if(this.finishNum===this.totalChunks){if(!this.fileName)return void this.dispatchError("下载错误:文件名为空!");this.dispatchInfo("开始保存下载文件:"+this.fileName);const e=Ga.createWriteStream(this.fileName).getWriter();let t=0;for(let n=0;n<this.totalChunks;n++){const r=n.toString();let i=await(this.currentDB?.getItem(r));if(i||(i=await(this.currentDB?.getItem(r))),!i)return void this.dispatchError(`输出分片第${n+1})个内容为空,错误退出!`);let o=new Response(i).body;if(null===o)return void this.dispatchError(`输出分片第${n+1})个内容为空,错误退出!`);const s=o.getReader();for(;;){const{done:t,value:n}=await s.read();if(t)break;await e.write(n)}t++,this.outputProgress(t),this.dispatchInfo(`完成第${n+1}个分片输出`)}e.close(),Ha.default.dropInstance({name:this.fileID}),this.dispatch("success"),this.isStarting=!1,this.dispatchInfo("完成文件下载")}}};function Xa(e,t){let n="",r="";for(const i in t)n+=i+"="+encodeURIComponent(t[i])+"&";return n=n.replace(/&$/,""),r=/\?$/.test(e)?e+n:e.replace(/\/?$/,"?")+n,r}function Ya(e={},t={}){let n;for(n in t)Mr(t[n])?e[n]=Ya(e[n],t[n]):e[n]=t[n];return e}function Ka(e,t,n={name:void 0}){const r=e.resolve({path:t,query:n});globalThis.open(r.href,"_blank")}function Za(e){let t=e;if(e.endsWith("/")){if(e.endsWith("/#/"))return t;t=e+"#/"}else t=e+"/#/"}function Ja(e,t="/"){return e?e.startsWith("/")?e.startsWith(t)?e:`${t}${e}`:"/"===t?`${t}${e}`:`${t}/${e}`:t}function Qa(e,t){e.getRoutes().find(e=>"/"===e.path)||e.addRoute({name:"/",path:"/",redirect:t.path})}function ec(e){const t=[];let n=[];return Object.keys(e).forEach(t=>{const r=e[t];r&&n.push(...r)}),n=n.sort((e,t)=>{let n=0,r=0;return e.meta&&(n=null!=e.meta.index?Number(e.meta.index):100),t.meta&&(r=null!=t.meta.index?Number(t.meta.index):100),n-r}),t.push(...n),n.length=0,t}function tc(e,t=!1){let n=[];for(const r in e){const t=e[r];t&&t.length>0&&(n.push(...t),t.length=0),delete e[r]}return t&&(n=n.sort((e,t)=>{let n=0,r=0;return null!=e.index&&(n=Number(e.index)),null!=t.index&&(r=Number(t.index)),n-r})),n}function nc(e,t=!1){const n=[];let r=[];return Object.keys(e).forEach(t=>{const n=e[t];n&&r.push(...n)}),t&&(r=r.sort((e,t)=>{let n=0,r=0;return null!=e.index&&(n=Number(e.index)),null!=t.index&&(r=Number(t.index)),n-r})),n.push(...r),r.length=0,n}var rc=new Map;function ic(e,t=!1){if(t&&rc.size>0)return rc;rc.clear();for(const n in e){const t=e[n];t&&t.length>0&&(t.forEach(e=>{let t;const n=e.layoutID;rc.has(n)&&(t=rc.get(n)),t||(t=new Array,rc.set(n,t)),t&&t.push(e)}),t.length=0),delete e[n]}return rc}function oc(e,t="/"){let n=t;return e.redirect&&e.children?(n=e.path.startsWith(t)?e.path:t.endsWith("/")?t+e.path:t+"/"+e.path,oc(e.children[0],n)):(n=e.path.startsWith(t)?e.path:`${t}/${e.path}`,{title:e.meta?.title,fullPath:n,path:e.path,icon:e.meta?.icon,keepAlive:e.meta?.keepAlive,name:e.name})}function sc(e,t){const n=`${e}_${t}`;return Qr.MD5(n)}function ac(e){const t=function(e){if(!e)return;const t=e,n=[];if(t)for(let r of t){const e=cc(r);e&&n.push(e)}return n}(e.bussinessRoutes),n=function(e){if(!e)return;const t=e;if(t&&t.length>0){const e=[];return t.forEach(t=>{const n=lc(t);n&&e.push(n)}),e}}(e.widgetMenuConfig),r=function(e){if(e&&e.length>0){const t=[];return e.forEach(e=>{const n=(r=e)?{id:r.id,label:r.label,layoutID:r.layoutID,container:r.container,preload:r.preload,afterid:r.afterid,bindid:r.bindid,group:r.group}:void 0;var r;n&&t.push(n)}),t}}(e.widgetConfig),i=function(e){if(e)return e.length>0?e:void 0}(e.functionList),o=e.pkgObject.version,s=e.pkgObject.name;return{id:sc(s,o),name:ir.Config.UI.SiteTitle,group:ir.Config.UI.Group,product:s,version:o,routes:t,widgetMenu:n,widgets:r,functions:i}}function cc(e){if(e){let t=0;e.meta?.hidden&&(t=1);let n={path:e.path,name:e.name,title:e.meta?.title,type:t,index:e.meta?.index};if(e.children){const t=[];for(let n of e.children){const e=cc(n);e&&t.push(e)}t.length>0&&(n.children=t)}return n}}function lc(e){if(!e)return;const t={name:e.name,index:e.index,path:e.path,type:e.type};return e.children&&e.children.length>0&&(t.children=[],e.children.forEach(e=>{const n=lc(e);n&&t.children?.push(n)})),t}function uc(e,t="IconifyList.ts"){let n="",r="const iconlist={\n",i=0;e.forEach(e=>{const t=e.split(":");if(t&&2===t.length){const o="icon"+i;n+=`import ${o} from '~icons/${t[0]}/${t[1]}'\n`,r+=`\t'${e}':${o},\n`,i++}}),i>0&&(r+="};\n",Xo(n+r+"export default iconlist;","IconifyList.ts"))}function fc(e,t){Ko(ac(e),t),ir.Message?.msg("导出系统功能权限文件成功!")}function dc(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d]/g,""),t=t.replace(/^0/g,""),t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t}function hc(e){let t=pc(e);return t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t=t.replace(/^100\.$/,"100"),t}function pc(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d.]/g,""),t=t.replace(/^0{2}$/g,"0"),t=t.replace(/^\./g,""),t=t.replace(".","$#$").replace(/\./g,"").replace("$#$","."),t=t.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),t}function gc(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[\.]*/g,""),t=t.replace(/(^0[\d]*)$/g,"0"),t=t.replace(/^0\d$/g,"0"),t=t.replace(/[^\d]/g,""),t}function mc(e){let t=e.replace(/[\u4e00-\u9fa5\s]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function vc(e){let t=e.replace(/[a-zA-Z]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function yc(e){return e.replace(/(^\s*)|(\s*$)/g,"")}function wc(e){let t=pc(e);return t=t.toString().split("."),t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t=t.join("."),t}function bc(e,t="",n="red"){return t.replace(new RegExp(e,"gi"),`<span style='color: ${n}'>${e}</span>`)}function Sc(e,t="仟佰拾亿仟佰拾万仟佰拾元角分",n=""){let r=(e+="00").indexOf(".");r>=0&&(e=e.substring(0,r)+e.substring(r+1,r+3)),t=t.substring(t.length-e.length);for(let i=0;i<e.length;i++)n+="零壹贰叁肆伍陆柒捌玖".substring(e.substring(i,i+1),1)+t.substring(i,i+1);return n.replace(/零角零分$/,"整").replace(/零[仟佰拾]/g,"零").replace(/零{2,}/g,"零").replace(/零([亿|万])/g,"$1").replace(/零+元/,"元").replace(/亿零{0,3}万/,"亿").replace(/^元/,"零元")}function xc(e){return!!/^((12[0-9])|(13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0|1,5-9]))\d{8}$/.test(e)}function Ec(e){return!!/\d{3}-\d{8}|\d{4}-\d{7}/.test(e)}function Cc(e){return!!/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/.test(e)}function kc(e){return!!/^[a-zA-Z]\w{5,15}$/.test(e)}function Tc(e){return!!/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)}function Ac(e){let t="";return/^(?:\d+|[a-zA-Z]+|[!@#$%^&\.*]+){6,16}$/.test(e)&&(t="弱"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="中"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="强"),t}function Mc(e){return!!/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/.test(e)}function zc(e){return!!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function Oc(e){return!!/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(e)}function Dc(e){return!!/^[\u4e00-\u9fa5]{1,6}(·[\u4e00-\u9fa5]{1,6}){0,2}$/.test(e)}function Lc(e){return!!/^[1-9][0-9]{5}$/.test(e)}function _c(e){return!!/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)}function Rc(e){return!!/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/.test(e)}function Ic(e){e&&ir.EventBus.emit(Kn.ModalContainerWidget_LoadModal,e)}function Pc(e){ir.EventBus.emit(Kn.ModalContainerWidget_CloseModal,e)}var Nc=[],Bc=()=>{setTimeout(async()=>{await async function(){const e=await async function(e){const t=/<script.*src=["'](?<src>[^"']+)/gm,n=[];let r;for(;r=t.exec(e);)n.push(r.groups?.src??"");return n}(await fetch("/").then(e=>e.text()));if(!Nc.length)return Nc=e,!1;if(e.length!==Nc.length)return Nc=e,!0;for(let t=0;t<Nc.length;t++)if(Nc[t]!==e[t])return Nc=e,!0;return!1}()?confirm("页面有更新,点击确定刷新页面?")&&location.reload():Bc()},5e3)};function jc(e,t=Ha.default.INDEXEDDB){return Ha.default.createInstance({name:e,driver:t})}function Fc(e){Ha.default.dropInstance({name:e})}async function Wc(e){const t=(await fetch(e)).body?.getReader();if(!t)return;let n=0;const r=[];for(;;){const{done:e,value:i}=await t.read();if(e)break;r.push(i),n+=i.length,console.log(`已接收: ${(n/1024/1024).toFixed(2)}MB`)}const i=new Uint8Array(n);let o=0;for(let s of r)i.set(s,o),o+=s.length;return r.length=0,i}async function Uc(e){const t=await Wc(e);if(t)return new TextDecoder("utf-8").decode(t)}async function $c(e,t="application/octet-stream"){const n=await Wc(e);if(n)return new Blob([n],{type:t})}async function Hc(e,t="/upload",n){const r=e.stream();let i=0;const o=new TransformStream({transform(t,r){i+=t.length;const o=(i/e.size*100).toFixed(2);console.log(`上传进度: ${o}%`),n&&n(o),r.enqueue(t)}}),s=r.pipeThrough(o);return(await fetch(t,{method:"POST",body:s})).json()}async function qc(e,t,n=128){const r=(await fetch(t)).body?.getReader();if(!r)return;const i=e.width,o=e.height,s=e.getContext("2d");let a=0,c=[];const l=1024*n;for(;;){const{done:e,value:t}=await r.read();if(e)break;c.push(t),a+=t.length,a>l&&(await Gc(s,i,o,c),a=0)}await Gc(s,i,o,c,!0)}async function Gc(e,t,n,r,i=!1){const o=new Blob(r,{type:"image/jpeg"}),s=URL.createObjectURL(o);return new Promise(r=>{const i=new Image;i.onload=()=>{e.clearRect(0,0,t,n),e.drawImage(i,0,0),URL.revokeObjectURL(s),r(!0)},i.src=s})}var Vc=class{sizes={sm:600,md:1024,lg:1440,xl:1920};lt={sm:!0,md:!0,lg:!0,xl:!0};gt={xs:!1,sm:!1,md:!1,lg:!1};xs=!0;sm=!1;md=!1;lg=!1;xl=!1;getSize(){const{visualViewport:e}=window,t=document.scrollingElement||document.documentElement;return void 0===e||Kr()?[Math.max(window.innerWidth,t.clientWidth),Math.max(window.innerHeight,t.clientHeight)]:e?[e.width*e.scale+window.innerWidth-t.clientWidth,e.height*e.scale+window.innerHeight-t.clientHeight]:[window.innerWidth-t.clientWidth,window.innerHeight-t.clientHeight]}updateSize(){const[e,t]=this.getSize();let n=this.sizes;this.gt.xs=e>=n.sm,this.gt.sm=e>=n.md,this.gt.md=e>=n.lg,this.gt.lg=e>=n.xl,this.lt.sm=e<n.sm,this.lt.md=e<n.md,this.lt.lg=e<n.lg,this.lt.xl=e<n.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg}},Xc=new Vc,Yc=new Map,Kc=C(new Map),Zc=class{static ZIndexMax=1;static addWindowPanel(e){Yc.set(e.id,e)}static removeWindowPanel(e){Yc.has(e)&&(Yc.delete(e),Kc.value.delete(e))}static minimizeWindowPanel(e){Yc.has(e)&&Kc.value.set(e,-1)}static openWindowPanel(e){if(Yc.has(e)){Kc.value.set(e,1);const t=document.getElementById(e);t&&t.open&&t.open()}}},Jc={width:1024,height:1024,body:'<path fill="currentColor" fill-rule="evenodd" d="M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926L224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512L166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"/>'},Qc={width:1024,height:1024,body:'<path fill="currentColor" d="M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"/>'},el={width:1024,height:1024,body:'<path fill="currentColor" d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"/>'},tl={width:1024,height:1024,body:'<path fill="currentColor" d="M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"/>'},nl=["id"],rl=["src"],il={key:1,class:"paneltitle"},ol={class:"dragPanelBar"},sl={class:"dragPanelContent"},al={class:"drag-pointer-group"},cl=or(d({__name:"XWindow",props:{top:{type:[String,Number],default:0},left:{type:[String,Number],default:0},nWidth:{type:[String,Number],default:"300px"},nHeight:{type:[String,Number],default:"400px"},icon:{type:String,default:""},title:{type:String,default:""},titleHeight:{type:[String,Number],default:"40px"},hasMin:{type:Boolean,default:!1},hasMax:{type:Boolean,default:!1},hasClose:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},pid:{type:String,default:""},tag:{type:[String,Array,Object,Number],default:""},right:{type:[String,Number],default:"unset"},bottom:{type:[String,Number],default:"unset"}},emits:["close","open","loaded","minimize"],setup(e,{expose:t,emit:n}){const i=ci(),u=C(i),f=e,d=n,h=C(),p=C(),g=o(()=>f.isDark),m=C({x:0,y:0}),w=C({width:0,height:0}),E=e=>{h.value&&(h.value.style.left=`${e.x}px`,h.value.style.top=`${e.y}px`)};I(()=>m.value,e=>{E(e)});const k=e=>{h.value&&(h.value.style.width=`${e.width}px`,h.value.style.height=`${e.height}px`)};I(()=>w.value,e=>{k(e)});const A={eventListenerController:null,startingEdges:null,newEdges:null,clickStart:null,mount:()=>{Object.entries(A.refs).forEach(([e,t])=>{t.value&&t.value.addEventListener("mousedown",t=>{A.mouseDown(t,e)})})},mouseDown:(e,t)=>{0==e.button&&(e.preventDefault(),A.startingEdges={left:m.value.x,top:m.value.y,right:m.value.x+w.value.width,bottom:m.value.y+w.value.height},A.newEdges={...A.startingEdges},A.clickStart={x:e.clientX,y:e.clientY},A.eventListenerController=new AbortController,document.addEventListener("mousemove",e=>{A.mouseMove(e,t)},{signal:A.eventListenerController.signal}),document.addEventListener("mouseup",e=>{A.mouseUp(e,t)},{signal:A.eventListenerController.signal}))},mouseMove:(e,t)=>{if(null!=A.startingEdges&&null!=A.newEdges&&null!=A.clickStart&&A.refs[t].value){if(e.preventDefault(),console.log("mouseMove",t),t.toLowerCase().includes("north")){A.newEdges.top=Math.max(A.startingEdges.top+e.clientY-A.clickStart.y,0);const t=A.newEdges.bottom-A.newEdges.top-100;t<0&&(A.newEdges.top+=t)}else t.toLowerCase().includes("south")&&(A.newEdges.bottom=Math.min(A.startingEdges.bottom+e.clientY-A.clickStart.y,document.body.clientHeight));if(t.toLowerCase().includes("west")){A.newEdges.left=Math.max(A.startingEdges.left+e.clientX-A.clickStart.x,0);const t=A.newEdges.right-A.newEdges.left-250;t<0&&(A.newEdges.left+=t)}else t.toLowerCase().includes("east")&&(A.newEdges.right=Math.min(A.startingEdges.right+e.clientX-A.clickStart.x,document.body.clientWidth));A.update()}},update:()=>{null!=A.newEdges&&null!=A.startingEdges&&(m.value={x:Math.max(A.newEdges.left,0),y:Math.max(A.newEdges.top,0)},w.value={width:Math.min(Math.max(A.newEdges.right-A.newEdges.left,250),document.body.clientWidth),height:Math.min(Math.max(A.newEdges.bottom-A.newEdges.top,100),document.body.clientHeight)})},mouseUp:(e,t)=>{0==e.button&&null!=A.startingEdges&&(console.log("mouseUp",t),e.preventDefault(),A.startingEdges=null,A.newEdges=null,A.clickStart=null,A.eventListenerController&&(A.eventListenerController.abort(),A.eventListenerController=null))},refs:{northWest:C(null),north:C(null),northEast:C(null),west:C(null),east:C(null),southWest:C(null),south:C(null),southEast:C(null)}},M={startingMouse:null,startingPosition:null,mouseDown:e=>{0==e.button&&(e.preventDefault(),console.log("mouseDown"),M.startingMouse={x:e.clientX,y:e.clientY},M.startingPosition=m.value,document.addEventListener("mousemove",M.mouseMove),document.addEventListener("mouseup",M.mouseUp))},mouseMove:e=>{M.startingMouse&&M.startingPosition&&(e.preventDefault(),m.value={x:Math.min(Math.max(M.startingPosition.x+e.clientX-M.startingMouse.x,0),document.body.clientWidth-w.value.width),y:Math.max(M.startingPosition.y+e.clientY-M.startingMouse.y,0)})},mouseUp:e=>{0==e.button&&M.startingMouse&&M.startingPosition&&(e.preventDefault(),M.startingMouse=null,M.startingPosition=null,console.log("mouseUp"),document.removeEventListener("mousemove",M.mouseMove),document.removeEventListener("mouseup",M.mouseUp))}};function z(e){return{id:i,icon:f.icon,title:f.title,pid:f.pid,data:e??f.tag}}const L=C(1),_=o(()=>!(-1===Kc.value.get(i))),j=C(!1),F=C(!0),W=o(()=>"z-index:"+L.value);function U(){L.value<=Zc.ZIndexMax&&(Zc.ZIndexMax+=1,L.value=Zc.ZIndexMax)}function $(){d("minimize",z()),Zc.minimizeWindowPanel(i)}function H(){j.value=!j.value}function q(){d("close",z(!1)),F.value=!1}const G=o(()=>j.value?tl:el),V={id:i,isShow:_,close:q,open:function(){const e=z(!0);d("open",e),F.value=!0},showHidePanel:$,updatePosition:E};function X(e,t=document.body.clientWidth){if(Or(e))return e;{const n=Number(e);if(n==n)return n;if(e.endsWith("px")){const t=e.substring(0,e.length-2);return Number(t)}if(e.endsWith("%")){const n=e.substring(0,e.length-1);return Number(n)/100*t}return 300}}function Y(e,t){if(!h.value)return void console.warn("dragPanelRef.value当前窗体html元素为空!");let n=e??document.body.clientWidth,r=t??document.body.clientHeight,i=X(f.left,n),o=X(f.top,r);"unset"==f.bottom&&"unset"==f.right||("unset"!=f.right&&(i=n-X(f.right,n)-w.value.width),"unset"!=f.bottom&&(o=r-X(f.bottom,r)-w.value.height)),m.value.x=i,m.value.y=o,E(m.value)}function K(){if(J&&("unset"!=f.bottom||"unset"!=f.right)){const e=J.getBoundingClientRect();Y(e.width,e.height)}}let J;return t(V),b(()=>{!function(){let e=96;if(f.hasMin||(e-=32),f.hasMax||(e-=32),f.hasClose||(e-=32),Qr.setCssVar("--right-bar-width",e+"px",p.value),!p.value)return;const t=Or(f.titleHeight)?f.titleHeight+"px":f.titleHeight;p.value.style.height=t,p.value.style.lineHeight=t}(),function(){const e=z(V);Zc.addWindowPanel(e),d("loaded",e)}();const{parentElement:e,clientWidth:t,clientHeight:n}=function(e){if(!(e instanceof HTMLElement))throw new Error("参数必须是有效的 DOM 元素");let t=e.parentElement;for(;t&&"static"===globalThis.getComputedStyle(t).position;)t=t.parentElement,t||(t=document.documentElement);return{clientWidth:t?.clientWidth,clientHeight:t?.clientHeight,parentElement:t}}(h.value);J=e,w.value={width:X(f.nWidth,t),height:X(f.nHeight,n)},k(w.value),Y(t,n),A.mount(),Qr.windowResizeHandler(K)}),S(()=>{Qr.offWindowResizeHandler(K),Zc.removeWindowPanel(i)}),(t,n)=>(x(),s(r,{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"},{default:P(()=>[F.value?N((x(),c("div",{key:0,ref_key:"dragPanelRef",ref:h,id:u.value,class:v(["dragWindowPanel",{maxPanel:j.value,dragWindowPanel_dark:g.value}]),style:y(W.value)},[l("div",{class:"dragPanelTitle",ref_key:"dragPanelTitleRef",ref:p,onMousedown:n[0]||(n[0]=(...e)=>M.mouseDown&&M.mouseDown(...e)),onClick:B(U,["stop"])},[T(t.$slots,"title",{},()=>[f.icon?(x(),c("img",{key:0,src:f.icon,width:"24",height:"24"},null,8,rl)):a("",!0),f.title?(x(),c("span",il,O(f.title),1)):a("",!0)],!0),l("div",ol,[e.hasMin?(x(),s(D(Z),{key:0,icon:D(Qc),onClick:B($,["stop"])},null,8,["icon"])):a("",!0),e.hasMax?(x(),s(D(Z),{key:1,icon:G.value,onClick:B(H,["stop"])},null,8,["icon"])):a("",!0),e.hasClose?(x(),s(D(Z),{key:2,icon:D(Jc),onClick:B(q,["stop"])},null,8,["icon"])):a("",!0)])],544),l("div",sl,[T(t.$slots,"default",{},void 0,!0)]),l("div",al,[l("div",{class:"cursor-nw-resize",ref:A.refs.northWest},null,512),l("div",{class:"cursor-n-resize",ref:A.refs.north},null,512),l("div",{class:"cursor-ne-resize",ref:A.refs.northEast},null,512),l("div",{class:"cursor-w-resize",ref:A.refs.west},null,512),n[1]||(n[1]=l("span",{style:{"pointer-events":"all",visibility:"hidden"}},null,-1)),l("div",{class:"cursor-e-resize",ref:A.refs.east},null,512),l("div",{class:"cursor-sw-resize",ref:A.refs.southWest},null,512),l("div",{class:"cursor-s-resize",ref:A.refs.south},null,512),l("div",{class:"cursor-se-resize",ref:A.refs.southEast},null,512)])],14,nl)),[[R,_.value]]):a("",!0)]),_:3}))}}),[["__scopeId","data-v-fe259582"]]),ll={class:"adivider"},ul={class:"contentText"},fl=or(d({__name:"ADivider",props:{align:{type:String,default:"left"},color:{type:String,default:"#888"}},setup(e){L(e=>({v1dc34ba7:n.value}));const t=e,n=o(()=>ta(t.color)||Js(t.color)?t.color:"#888"),r=o(()=>"left"!=t.align?"flex:1;":"width:40px;"),i=o(()=>"right"!=t.align?"flex:1;":"width:40px;");return(e,t)=>(x(),c("div",ll,[l("div",{class:"line",style:y(r.value)},null,4),l("div",ul,[T(e.$slots,"default",{},void 0,!0)]),l("div",{class:"line",style:y(i.value)},null,4)]))}}),[["__scopeId","data-v-133ad44f"]]),dl={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),100*e/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),i=100-(this.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(e),i),r);let s=[t,t+1],a=this.panes[s[0]]||null,c=this.panes[s[1]]||null;const l=a.max<100&&o>=a.max+n.prevPanesSize,u=c.max<100&&o<=100-(c.max+this.sumNextPanesSize(t+1));if(l||u)l?(a.size=a.max,c.size=Math.max(100-a.max-n.prevPanesSize-n.nextPanesSize,0)):(a.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);else{if(this.pushOtherPanes){const e=this.doPushOtherPanes(n,o);if(!e)return;({sums:n,panesToResize:s}=e),a=this.panes[s[0]]||null,c=this.panes[s[1]]||null}null!==a&&(a.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,a.min),a.max)),null!==c&&(c.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))}},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),void 0===r[0])?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),void 0===r[1])?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((t,r)=>{r<this.panesCount-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");if(!t&&!n)return e.parentNode.removeChild(e),void console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.")})},addSplitter(e,t,n=!1){const r=e-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),n||(i.onmousedown=e=>this.onMouseDown(e,r),"undefined"!=typeof window&&"ontouchstart"in window&&(i.ontouchstart=e=>this.onMouseDown(e,r)),i.onclick=e=>this.onSplitterClick(e,r+1)),this.dblClickSplitter&&(i.ondblclick=e=>this.onSplitterDblClick(e,r+1)),t.parentNode.insertBefore(i,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let t=0;e.forEach(e=>{e.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,e,!0):t&&this.addSplitter(t,e),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([e,t])=>n[e]=t)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:null===e.size?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((e,t)=>e.index=t),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(t=>t.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((e,t)=>e.index=t),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},resetPaneSizes(e={}){e.addedPane||e.removedPane?this.panes.some(e=>null!==e.givenSize||e.min||e.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize():this.initialPanesSizing(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,null!==i.size&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let i=100;e>.1&&(this.panes.forEach(t=>{null===t.size&&(t.size=Math.max(Math.min(e/(this.panesCount-r),t.max),t.min)),i-=t.size}),i>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e}={}){let t=100/this.panesCount,n=0;const r=[],i=[];e&&null!==e.givenSize&&(t=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(e=>{n-=e.size,e.size>=e.max&&r.push(e.id),e.size<=e.min&&i.push(e.id)}),Math.abs(n)<.1||(this.panes.forEach(o=>{e&&null!==e.givenSize&&e.id===o.id||(o.size=Math.max(Math.min(t,o.max),o.min)),n-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&i.push(o.id)}),n>.1&&this.readjustSizes(n,r,i))},readjustSizes(e,t,n){let r;r=e>0?e/(this.panesCount-t.length):e/(this.panesCount-n.length),this.panes.forEach(i=>{if(e>0&&!t.includes(i.id)){const t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){const t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?e=>this.onSplitterDblClick(e,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.updatePaneComponents(),this.$emit("ready"),this.ready=!0},render(){return h("div",{ref:"container",class:["splitpanes","splitpanes--"+(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},hl={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:10},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||0===this.size?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}},pl=or(hl,[["render",function(e,t,n,r,i,o){return x(),c("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=t=>o.onPaneClick(t,e._.uid)),style:y(e.style)},[T(e.$slots,"default")],4)}]]),gl=d({name:"Popover",__name:"index",props:{dir:{type:String,default:"bottom"}},emits:["show","hide"],setup(e,{emit:t}){const n=C(!1),i=t;return I(n,()=>{n.value?i("show"):i("hide")}),document.addEventListener("click",function(){n.value=!1}),(t,i)=>(x(),c("div",{class:"popover-cantainer",onClick:i[1]||(i[1]=B(()=>{},["stop"]))},[f(r,{name:"popover-content-transition-"+e.dir},{default:P(()=>[n.value?T(t.$slots,"default",{key:0}):a("",!0)]),_:3},8,["name"]),l("div",{onClick:i[0]||(i[0]=e=>n.value=!n.value)},[t.$slots.reference?T(t.$slots,"reference",{key:0}):a("",!0)])]))}}),ml={class:"xScreen-container"},vl=d({__name:"index",setup(e){const t=C(null);let n=1920,r=1080;function i(){t.value&&(t.value.style.transform=`scale(${function(e=1920,t=1080){const n=window.innerWidth/e,r=window.innerHeight/t;return n<r?n:r}(n,r)}) translate(-50%, -50%)`)}return b(()=>{const e=window.innerWidth/window.innerHeight;if(e>=2.5||e<=.4||(n=n>window.innerWidth?window.innerWidth:n,r=r>window.innerHeight?window.innerHeight:r),t.value){const e=t.value;e.style.width=n+"px",e.style.height=r+"px",i()}Qr.windowResizeHandler(i)}),(e,n)=>(x(),c("div",ml,[l("div",{ref_key:"scaleContainerRef",ref:t,class:"xScreen"},[T(e.$slots,"default")],512)]))}}),yl={class:"scrollSnapContainer"},wl=d({__name:"index",props:{height:{type:Number,default:0}},setup(e){L(e=>({v3bebca7d:n.value}));const t=e,n=o(()=>Or(t.height)&&t.height>0?`${t.height}px`:"unset");return(e,t)=>(x(),c("div",yl,[T(e.$slots,"default")]))}}),bl=d({__name:"FVMenu",props:{placement:{type:String,default:"bottom"},shown:{type:Boolean,default:!1}},setup(e){const t=e,n=_("tippyRef"),r=_("contentRef");let i=null;function o(){i&&i.hide()}return b(()=>{if(n.value&&r.value){const e=n.value;e&&(i=Rn(e,{content:r.value,placement:t.placement,trigger:"mouseenter",hideOnClick:!0,interactive:!0,appendTo:document.body,showOnCreate:t.shown}))}}),S(()=>{i&&i.destroy()}),(e,t)=>(x(),c("div",null,[l("div",{ref_key:"tippyRef",ref:n},[T(e.$slots,"default")],512),l("div",{ref_key:"contentRef",ref:r,onClick:o},[T(e.$slots,"popper")],512)]))}});function Sl(e){const t=new q(new U);return t.serialize(e),t.stream.toString()}function xl(e){return null==e||""===e?e:new $(new U(e)).deserialize()}var El=class e{debug=!1;simple=!1;utc=!1;longType="number";dictType="object";nullType=void 0;static Instance=new e;textEncoder=new TextEncoder;textDecoder=new TextDecoder;constructor(){}encodeResponse(e,t={}){var n=new U,r=new q(n,this.simple,this.utc),i=t;this.simple;var o=0;for(var s in i)o++;o>0&&(n.writeByte(72),r.serialize(i),r.reset()),e instanceof Error?(n.writeByte(69),r.serialize(this.debug&&e.stack?e.stack:e.message)):(n.writeByte(82),r.serialize(e)),n.writeByte(122);const a=n.takeBytes();return this.textDecoder.decode(a)}decodeRequest(e,t={}){const n=this.textEncoder.encode(e);if(0===n.length)return["~",[]];var r=new U(n),i=new $(r,!1);i.longType=this.longType,i.dictType=this.dictType;var o=r.readByte();if(console.log("tag",o),72===o){var s=i.deserialize(this.nullType);for(var a in s)t[a]=s[a];i.reset(),o=r.readByte()}switch(o){case 67:return[i.deserialize(String),this.decodeArguments(i)];case 122:return["~",[]];default:throw new Error("Invalid request:\r\n"+r.toString())}}decodeArguments(e){var t=e.stream;let n=[];if(97===t.readByte()){e.reset();var r=H.readCount(t);const o=new Array(r).fill(this.nullType);n=new Array(r),e.addReference(n);for(var i=0;i<r;++i)n[i]=e.deserialize(o[i]);t.readByte()}return n}encodeRequest(e,t,n={}){var r=new U,i=new q(r,this.simple,this.utc),o=n;this.simple&&(o.simple=!0);var s=0;for(var a in o)s++;s>0&&(r.writeByte(72),i.serialize(o),i.reset()),r.writeByte(67),i.serialize(e),t.length>0&&(i.reset(),i.serialize(t)),r.writeByte(122);const c=r.takeBytes();return this.textDecoder.decode(c)}decodeResponse(e,t={}){var n=new U(this.textEncoder.encode(e)),r=new $(n,!1);r.longType=this.longType,r.dictType=this.dictType;var i=n.readByte();if(72===i){var o=r.deserialize();for(var s in o)t[s]=o[s];r.reset(),i=n.readByte()}switch(i){case 82:return t.simple&&(r.simple=!0),console.log(i,"9999999999"),r.deserialize();case 69:throw new Error(r.deserialize(String));case 122:return;default:throw new Error("Invalid response:\r\n"+n.toString())}}},Cl=new Map,kl=new Map,Tl=void 0,Al={getDefaultClient(){if(Tl||(Tl=new vr(SysConfig?.ServiceURL.DefaultHproseAPI)),!Tl)throw Error("HproseProxy对象为空");return Tl},registerHprose(e,t){const n=kl.get(e);if(!n){const n=new vr(t);Cl.set(e,n)}return n},getHprose:e=>kl?.get(e),getProxyHprose:e=>Cl.get(e),unregisterHprose(e){Cl.get(e)&&(kl.delete(e),Cl.delete(e))}},Ml=5e3,zl=36e5,Ol={Login:"/api/User/Login",ChangeMyPwd:"/api/User/ChangeMyPwd",Logout:"/api/Check/ExitLogin",RefreshToken:"/api/Check/RefreshToken",CheckToken:"/api/Check/CheckToken",GetSystemRights:"/api/System/GetSystem"},Dl="access_token",Ll=ir?.Config?.ServiceURL.LoginAuthURL;function _l(){const e=mr();e&&pa(Ol.RefreshToken,Ll,{refreshToken:e}).then(e=>{Il(e.data)})}function Rl(){const e=hr.getJsonObject(Dl);if(!e)return;const t=(new Date).getTime(),n=new Date(e.expire).getTime()-t;n>0&&(n<=5e3?_l():setTimeout(_l,n-5e3))}function Il(e){const t=(new Date).getTime();let n=new Date(e.accessToken.expires).getTime()-t;if(n>=36e5?(n=18e5,console.warn("客户端时间与服务器不一致:过去时间!")):n<-6e5&&(n=18e5,console.warn("客户端时间与服务器不一致:未来时间!")),n>0){let t=pr();t?(t.token=e.accessToken.tokenContent,t.expire=e.accessToken.expires,t.refresh=e.refreshToken.tokenContent):t={token:e.accessToken.tokenContent,expire:e.accessToken.expires,refresh:e.refreshToken.tokenContent},hr.set(Dl,t,n/1e3),Rl()}else hr.remove(Dl)}var Pl,Nl="Wm314243",Bl=ir?.Config?.ServiceURL.LoginAuthURL;async function jl(e){const t={username:e.username,pwd:ps.encryptToString(e.pwd,Nl)},n=(await pa(Ol.Login,Bl,t))?.data;return n&&(Il(n.doubletoken),Na(!1)),n}function Fl(e){const t={oldpwd:ps.encryptToString(e.oldpwd,Nl),newpwd:ps.encryptToString(e.newpwd,Nl)};return pa(Ol.ChangeMyPwd,Bl,t)}function Wl(e){return ps.encryptToString(e,Nl)}function Ul(){const e=pr();e&&(va(Ol.Logout,Bl,{token:e.token,reftoken:e.refresh}),gr())}function $l(e){return pa(Ol.CheckToken,Bl,{token:e})}!function(e){e[e.Widget=0]="Widget",e[e.Route=1]="Route",e[e.URL=2]="URL",e[e.Action=3]="Action"}(Pl||(Pl={}));var Hl="ROLE_SYSTEM_RIGHT",ql=new ur("",globalThis.sessionStorage);function Gl(){return ql.get(Hl)}function Vl(e){ql.set(Hl,e)}function Xl(){ql.remove(Hl)}function Yl(e){if(e)for(let t=0;t<e.length;t++){const n=e[t];n.children&&n.children.length>0?(Yl(n.children),0===n.children.length&&(e.splice(t,1),t--)):n.selected||(e.splice(t,1),t--)}}function Kl(e,t,n="name"){e&&t&&e.forEach(e=>{const r=t.find(t=>t[n]===e[n]);r&&(e.children?r.children&&Kl(e.children,r.children,n):r.children&&0!==r.children.length||r.selected&&(e.selected=r.selected))})}function Zl(e,t,n="name"){e&&t&&e.forEach(e=>{const r=t.find(t=>t[n]===e[n]);r&&(e.children?r.children&&Zl(e.children,r.children,n):r.children&&0!==r.children.length||r.selected&&(e.selected=r.selected))})}function Jl(e,t,n,r="name"){const i=e[n],o=t[n];i?o&&Zl(i,o,r):o&&(e[n]=o)}function Ql(e){if(e&&e.length>0){const t=e.length;let n,r=!1;if(t>0){r=Mr(e[0]);const i=r?e[0]:JSON.parse(e[0]);if(t>1)for(let t=1;t<e.length;t++){const n=e[t],o=r?n:JSON.parse(n);Jl(i,o,"routes","name"),Jl(i,o,"widgetMenu","name"),Jl(i,o,"widgets","id"),Jl(i,o,"functions","id")}n=i}return n&&(Yl(n.routes),Yl(n.widgetMenu),Yl(n.widgets),Yl(n.functions)),n}}var eu=[],tu=[],nu=[];function ru(){return Gl()}async function iu(e,t=!1){Xl();const n=Ol.GetSystemRights,r=ir?.Config?.ServiceURL.LoginAuthURL,i=await pa(n,r,{systemid:e});if(!i||!i.data)return void ir.Message?.warn("无法获取功能授权列表!");const o=i.data;if(o&&o.length>0){if(t){const e=JSON.parse(o[0]);return Vl(e),e}{const e=Ql(o);return Vl(e),e}}}function ou(e,t){const n={...e};return n.meta||(n.meta={}),null!=t.index&&(n.meta.index=t.index),null!=t.title&&(n.meta.title=t.title),e.children&&(n.children=[],t.children&&t.children.forEach(t=>{const r=e.children?.find(e=>e.path===t.path);if(r){const e=ou(r,t);e&&n.children?.push(e)}})),n}function su(e,t=2){if(0===t)return e;const n=ru();return n&&n.routes?(nu.length>0||e.forEach(e=>{const t=n.routes?.find(t=>t.name===e.name);if(t){const n=ou(e,t);n&&nu.push(n)}}),nu):void 0}function au(e,t){const n={...e};return null!=t.index&&(n.index=t.index),e.children&&(n.children=[],t.children&&t.children.forEach(t=>{const r=e.children?.find(e=>e.name===t.name);if(r){const e=au(r,t);e&&n.children?.push(e)}})),n}function cu(e,t=2){if(0===t)return e;const n=ru();return n&&n.widgetMenu?(tu.length>0||e.forEach(e=>{const t=n.widgetMenu?.find(t=>t.name===e.name);if(t){const n=au(e,t);n&&tu.push(n)}}),tu):void 0}function lu(e,t=2){if(0===t)return e;const n=ru();return n&&n.widgets?(eu.length>0||e?.forEach(e=>{n.widgets?.find(t=>t.id===e.id)&&eu.push(e)}),eu):void 0}function uu(e,t=2){if(0===t&&(ir.RightWidgetConfigMap=e,ir.RightWidgetConfigMap&&ir.RightWidgetConfigMap.size>0))return ir.RightWidgetConfigMap;const n=ru();if(n&&n.widgets){const t=new Map;if(n.widgets.forEach(e=>{const n=e.layoutID;if(n){let r;t.has(n)&&(r=t.get(n)),r||(r=new Array,t.set(n,r)),r&&r.push(e)}}),n.widgets.length=0,t.size>0){const n=new Map;for(const[r,i]of t){const t=e.get(r);if(t){const e=new Array;t.forEach(t=>{i.findIndex(e=>e.id===t.id)>=0&&e.push(t)}),e.length>0&&n.set(r,e),t.length=0}}return t.clear(),ir.RightWidgetConfigMap=n,n}return}}function fu(e,t=2){if(0===t)return e;const n=ru();return n?n.functions:void 0}var du={mounted(e,t){const n=t.value,r=n&&n.container&&document.querySelector(n.container)||document.querySelector("#map3dContainer")||document.body,i=n&&n.selector&&e.querySelector(n.selector)||e.querySelector(".drag-el")||e;i!==e&&i.classList.add("ls-draggable"),i.onmousedown=function(t){e.style.transition="none";const n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,o=r.offsetWidth,s=r.offsetHeight,a=e.offsetWidth,c=e.offsetHeight;"100"!==e.style.zIndex&&(e.style.zIndex=100),r.onmousemove=function(t){let r=t.clientX-n,l=t.clientY-i;r<0&&(r=0),l<0&&(l=0),r>o-a&&(r=o-a),l>s-c&&(l=s-c),e.style.left=r+"px",e.style.top=l+"px"},r.onmouseup=function(t){r.onmousemove=r.onmouseup=null,e.style.transition="all 0.3s"}}}};function hu(e){e.directive("drag",du)}var pu={created:(e,t)=>{let n=0,r=0,i=0,o=null;e.addEventListener("click",function(e){r=(new Date).getTime(),n++,1===n&&(r=(new Date).getTime()),2===n&&(i=(new Date).getTime()),r&&i&&i-r<400&&2===n&&t.value(),o?console.log("别点了"):o=setTimeout(()=>{r=0,i=0,n=0,clearTimeout(o),o=null},500)})}};function gu(e){e.directive("dc",pu)}var mu={beforeMount(e,t){let n=null,r=0;const i=()=>t?.value(),o=()=>{Date.now()-r<100&&i(),n&&clearInterval(n),n=null};Ia.on(e,"mousedown",e=>{0===e.button&&(r=Date.now(),Ia.once(document,"mouseup",o),n&&clearInterval(n),n=setInterval(i,100))})}};function vu(e){e.directive("repeatClick",mu)}var yu={mounted(e,t){const n=t.value;e.style.visibility="hidden",e.style["animation-name"]="none";const r=function(e,t){if(function(e){const t=globalThis.scrollY||globalThis.pageYOffset||document.documentElement.scrollTop||e.parentNode.scrollTop,n=t+(Kr()?document.documentElement.scrollHeight>document.documentElement.clientHeight?globalThis.innerHeight:document.documentElement.clientHeight:Math.min(document.documentElement.clientHeight,globalThis.innerHeight)),r=function(e){let t;for(;void 0===e.offsetTop;)e=e.parentNode;for(t=e.offsetTop;e=e.offsetParent;)t+=e.offsetTop;return t}(e),i=r+e.clientHeight;return r<n&&i>=t}(e)){e.style.visibility="visible";for(const n in t)e.style[n]=t[n];"none"!=e.style["animation-name"]&&(e.style["animation-duration"]||(e.style["animation-duration"]="1s")),e.parentNode.removeEventListener("scroll",o)}};let i=Date.now();const o=function(){Date.now()-i>=100&&(r(e,n),i=Date.now())};setTimeout(function(){r(e,n)},1),e.parentNode.addEventListener("scroll",o)}};function wu(e){e.directive("wow",yu)}var bu={mounted(e,t){const n=t.value,r=Object.assign({},e.classList),i=n.split(" "),o=()=>{i&&i.length>0&&(Xc.updateSize(),i.forEach(t=>{const n=t.indexOf(".");if(n>0){const i=t.substring(0,n),o=t.substring(n+1);if(o){const t=o.split(".");if(t&&t.length>0){let n=Xc;t.forEach(e=>{n=n[e]}),n?e.classList.add(i):r?.contains&&r?.contains(i)||e.classList.remove(i)}}}}))};o(),Qr.windowResizeHandler(o)}};function Su(e){e.directive("media",bu)}var xu={mounted(e,t,n){const r="string"==typeof t.value?{content:t.value}:t.value||{},i=Object.keys(t.modifiers||{}),o=i.find(e=>"arrow"!==e),s=-1!==i.findIndex(e=>"arrow"===e);o&&(r.placement=r.placement||o),s&&(r.arrow=void 0===r.arrow||r.arrow),n.props&&n.props.onTippyShow&&(r.onShow=function(...e){return n.props?.onTippyShow(...e)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...e){return n.props?.onTippyShown(...e)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...e){return n.props?.onTippyHidden(...e)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...e){return n.props?.onTippyHide(...e)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...e){return n.props?.onTippyMount(...e)}),e.getAttribute("title")&&!r.content&&(r.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!r.content&&(r.content=e.getAttribute("content")),Rn(e,r)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n="string"==typeof t.value?{content:t.value}:t.value||{};n.content||(n.content=null),e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}};function Eu(e){e.directive("tooltip",xu)}function Cu(e){wu(e),vu(e),hu(e),gu(e),Su(e),Eu(e)}var ku=Symbol("Comlink.proxy"),Tu=Symbol("Comlink.endpoint"),Au=Symbol("Comlink.releaseProxy"),Mu=Symbol("Comlink.finalizer"),zu=Symbol("Comlink.thrown"),Ou=e=>"object"==typeof e&&null!==e||"function"==typeof e,Du=new Map([["proxy",{canHandle:e=>Ou(e)&&e[ku],serialize(e){const{port1:t,port2:n}=new MessageChannel;return Lu(e,t),[n,[n]]},deserialize:e=>(e.start(),Ru(e))}],["throw",{canHandle:e=>Ou(e)&&zu in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function Lu(e,t=globalThis,n=["*"]){t.addEventListener("message",function r(i){if(!i||!i.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,i.origin))return void console.warn(`Invalid origin '${i.origin}' for comlink proxy`);const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),c=(i.data.argumentList||[]).map($u);let l;try{const t=a.slice(0,-1).reduce((e,t)=>e[t],e),n=a.reduce((e,t)=>e[t],e);switch(s){case"GET":l=n;break;case"SET":t[a.slice(-1)[0]]=$u(i.data.value),l=!0;break;case"APPLY":l=n.apply(t,c);break;case"CONSTRUCT":l=function(e){return Object.assign(e,{[ku]:!0})}(new n(...c));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;Lu(e,n),l=function(e,t){return Wu.set(e,t),e}(t,[t])}break;case"RELEASE":l=void 0;break;default:return}}catch(e){l={value:e,[zu]:0}}Promise.resolve(l).catch(e=>({value:e,[zu]:0})).then(n=>{const[i,a]=Uu(n);t.postMessage(Object.assign(Object.assign({},i),{id:o}),a),"RELEASE"===s&&(t.removeEventListener("message",r),_u(t),Mu in e&&"function"==typeof e[Mu]&&e[Mu]())}).catch(e=>{const[n,r]=Uu({value:new TypeError("Unserializable return value"),[zu]:0});t.postMessage(Object.assign(Object.assign({},n),{id:o}),r)})}),t.start&&t.start()}function _u(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function Ru(e,t){const n=new Map;return e.addEventListener("message",function(e){const{data:t}=e;if(!t||!t.id)return;const r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}}),ju(e,n,[],t)}function Iu(e){if(e)throw new Error("Proxy has been released and is not useable")}function Pu(e){return Hu(e,new Map,{type:"RELEASE"}).then(()=>{_u(e)})}var Nu=new WeakMap,Bu="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Nu.get(e)||0)-1;Nu.set(e,t),0===t&&Pu(e)});function ju(e,t,n=[],r=function(){}){let i=!1;const o=new Proxy(r,{get(r,s){if(Iu(i),s===Au)return()=>{!function(e){Bu&&Bu.unregister(e)}(o),Pu(e),t.clear(),i=!0};if("then"===s){if(0===n.length)return{then:()=>o};const r=Hu(e,t,{type:"GET",path:n.map(e=>e.toString())}).then($u);return r.then.bind(r)}return ju(e,t,[...n,s])},set(r,o,s){Iu(i);const[a,c]=Uu(s);return Hu(e,t,{type:"SET",path:[...n,o].map(e=>e.toString()),value:a},c).then($u)},apply(r,o,s){Iu(i);const a=n[n.length-1];if(a===Tu)return Hu(e,t,{type:"ENDPOINT"}).then($u);if("bind"===a)return ju(e,t,n.slice(0,-1));const[c,l]=Fu(s);return Hu(e,t,{type:"APPLY",path:n.map(e=>e.toString()),argumentList:c},l).then($u)},construct(r,o){Iu(i);const[s,a]=Fu(o);return Hu(e,t,{type:"CONSTRUCT",path:n.map(e=>e.toString()),argumentList:s},a).then($u)}});return function(e,t){const n=(Nu.get(t)||0)+1;Nu.set(t,n),Bu&&Bu.register(e,t,e)}(o,e),o}function Fu(e){const t=e.map(Uu);return[t.map(e=>e[0]),(n=t.map(e=>e[1]),Array.prototype.concat.apply([],n))];var n}var Wu=new WeakMap;function Uu(e){for(const[t,n]of Du)if(n.canHandle(e)){const[r,i]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},i]}return[{type:"RAW",value:e},Wu.get(e)||[]]}function $u(e){switch(e.type){case"HANDLER":return Du.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Hu(e,t,n,r){return new Promise(i=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(o,i),e.start&&e.start(),e.postMessage(Object.assign({id:o},n),r)})}var qu=Symbol("getEndpoint"),Gu=e=>{const t=Ru(e);return new Proxy(t,{get:(t,n,r)=>n===qu?e:Reflect.get(t,n,r)})},Vu=Gu(new Worker(new URL("/assets/worker-iconv-BhEK22Ps.js",""+import.meta.url),{type:"module"})),Xu=Gu(new Worker(new URL("/assets/worker-xmath-Cm_voCMd.js",""+import.meta.url),{type:"module"})),Yu=Gu(new Worker(new URL("/assets/worker-webcache-B3DZa32n.js",""+import.meta.url),{type:"module"})),Ku=ae();function Zu(e){e.addEventListener("message",({data:e})=>{Ku.emit(e.reqID,e)})}async function Ju(e,t,n){return new Promise((r,i)=>{const o=String(Date.now())+String(Math.random());e.postMessage({reqID:o,op:t,args:n}),Ku.on(o,e=>{"ok"===e.status?r(e.result):i(e.result)})})}function Qu(e,t){const n={};for(const r in e){const i=e[r];if(i)for(const e in i){const r=""+e;n[e]=(...e)=>Ju(t,r,e)}}return n}var ef=class{static batteryStatusCallback;static _battery;static batteryStatusChange(e){const t=this._battery;t&&(console.log("电量: "+100*t.level+"%"),console.log("充电状态: "+t.charging),this.batteryStatusCallback&&this.batteryStatusCallback(t))}static async OnBatteryStatusHandler(e){this.batteryStatusCallback=e;const t=await navigator.getBattery();t&&(this._battery=t,this.batteryStatusCallback&&this.batteryStatusCallback(t),t.onlevelchange=this.batteryStatusChange.bind(this),t.onchargingchange=this.batteryStatusChange.bind(this),t.ondischargingtimechange=this.batteryStatusChange.bind(this))}static OffBatteryStatusHandler(){this._battery=void 0}static onlineChangeCallback;static networkStatusChange(){const e=this.isOnline();console.log(e?"设备已联网":"设备未联网"),this.onlineChangeCallback&&this.onlineChangeCallback(e)}static isOnline(){return navigator.onLine}static OnNetworkHandle(e){this.onlineChangeCallback=e,this.networkStatusChange(),window.addEventListener("online",this.networkStatusChange.bind(this)),window.addEventListener("offline",this.networkStatusChange.bind(this))}static OffNetworkHandle(){window.removeEventListener("online",this.networkStatusChange.bind(this)),window.removeEventListener("offline",this.networkStatusChange.bind(this))}static downloadSpead(e){const t=navigator,n=t.connection||t.mozConnection||t.webkitConnection;return n?(console.log("下行带宽:",n.downlink+" Mbps"),n.addEventListener("change",()=>{console.log("网络状态变化:",n.effectiveType),e&&e(n.downlink)}),n.downlink):-1}static async vibrate(e=300){const t=navigator,n=t.vibrate||t.webkitVibrate||t.mozVibrate||t.msVibrate;n&&n(e)}static defaultSpeakOption={text:"",lang:"zh-CN",rate:1,pitch:1,volume:.2,voice:0};static changeSpeakOptions(e=.2,t=1,n=1,r=0){e>=0&&e<=1&&(this.defaultSpeakOption.volume=e),t>=.1&&t<=2&&(this.defaultSpeakOption.rate=t),n>=0&&n<=2&&(this.defaultSpeakOption.pitch=n),this.defaultSpeakOption.voice=r}static getSupportedVoices(){return window.speechSynthesis.getVoices().map(e=>e.name)}static getSupportedLanguages(){return navigator.languages}static async speak(e,t="zh-CN"){if(!e)return;const n=window.speechSynthesis;n.speaking&&n.cancel();const r=new SpeechSynthesisUtterance;r.lang=t,r.text=e,r.rate=this.defaultSpeakOption.rate,r.pitch=this.defaultSpeakOption.pitch,r.volume=this.defaultSpeakOption.volume;const i=this.defaultSpeakOption.voice;if(i>0){const e=n.getVoices();i<e.length&&(r.voice=e[i])}n.speak(r)}static async speakEnglish(e){this.speak(e,"en-US")}static stopSpeak(){const e=window.speechSynthesis;e.speaking&&e.cancel()}static openNotification(e,t,n,r,i){"Notification"in window||console.log("浏览器不支持桌面通知!");let o=n;if(t)o=o??{},o.body=t;else if("granted"===Notification.permission){const t=new Notification(e,o);t.onclick=e=>{i&&i(e.target)},t.onclose=e=>{r&&r(e.target)}}else"denied"!==Notification.permission&&Notification.requestPermission(t=>{if("granted"===t){const t=new Notification(e,o);t.onclick=e=>{i&&i(e.target)},t.onclose=e=>{r&&r(e.target)}}})}static isPageVisible(){return!document.hidden}static onPageVisibleChange(e){document.addEventListener("visibilitychange",()=>{e&&e(!document.hidden)})}static async copyText(e){return await navigator.clipboard.writeText(e)}static async readText(){return await navigator.clipboard.readText()}static viewTransition(e){if(e){if(!document.startViewTransition)return void e();document.startViewTransition(()=>e())}}},tf=Ha.default;export{fl as ADivider,Va as BigFileDownload,Rs as CommonTool,ts as DayjsTool,Xo as Download,ys as EnumColor,bl as FVMenu,_a as FileUpload,vs as GetSignalRClient,ir as Global,Al as GlobalHprose,ce as GlobalMitt,es as GzipTool,Qr as H5Tool,lr as HproseClient,El as HproseRPCCodec,Zo as HttpDownload,Ko as JsonDownload,si as LayoutContainer,rr as LayoutContainerEnum,ii as LayoutManager,tf as LocalForage,Pa as LockState,Pl as MenuItemEnum,Kc as MinWindowMap,ef as NavigatorPlugin,Xa as ObjToUrlParams,Ka as OpenRouterURL,pl as Pane,gl as Popover,vr as ProxyClient,ar as RouterTransition,ai as RouterTransitionAnimate,Yo as SaveAs,Jo as SaveToSelectedFile,vl as ScaleContainer,Xc as Screen,Vc as ScreenClass,wl as ScrollSnapContainer,dl as Splitpanes,ur as Storage,cr as StringUtils,sr as SuspenseWithError,Kn as SysEvents,Ml as TOKEN_REFRESH_TIME,zl as TOKEN_VALID_TIMESPAN,Ol as USER_TOKEN_API,_s as WarGridTool,ms as WaterMark,Ls as WebCacheTool,Yc as WindowsMap,cl as XWindow,Zc as XWindowManager,ps as XXTEA,Qo as ZipTool,Fn as animateFill,Bc as autoRefresh,Bs as base64ToBlob,js as blobToDataURL,la as calculateBestTextColor,Fl as changeMyPWD,Qa as checkAddDefaultRoute,Rl as checkDoRefreshToken,$l as checkToken,gr as clearLocalToken,Xl as clearRight,ia as colorIsDark,Us as convertDecimalism,Hs as convertDecimalismData,$s as convertDecimalismSpacing,qs as convertToDecimalism,Gs as convertToDecimalismByString,Vs as convertToDecimalismByString2,jc as createDB,Ra as createFileUpload,Nn as createSingleton,oa as darken,Ya as deepMerge,da as delay,jn as delegate,Fc as deleteDB,xl as deserialize,Pc as doCloseModal,Ic as doLoadModal,_l as doRefreshToken,Na as doSetLock,pu as doubleClickDirective,du as dragDirective,ac as exportSystemRights,Is as filterObj,Vo as findStringPrefix,Hn as followCursor,ya as get,qo as getCommonFileBase,ru as getCurrentSystemRight,ba as getData,xa as getDownload,Wl as getEncryptPWD,Fo as getFileBase,Wo as getFileExtension,fu as getFunctions,Ys as getHexColor,pr as getLocalToken,Ba as getLockState,Zs as getLongHexColor,Uo as getPathBase,ni as getProxyClient,Ks as getRGBColor,Qs as getRGBColorFromHSLA,Ps as getRandomInt,Ns as getRandomItem,mr as getRefreshToken,Gl as getRight,Ja as getRouteURL,su as getRoutes,iu as getSystemRoleRight,oc as getTabRouteData,Za as getVueURL,lu as getWidgetConfig,uu as getWidgetConfigMap,cu as getWidgetMenus,ic as globFilterLayoutWidgetConfig,tc as globFilterObjects,nc as globFilterObjectsOld,Yl as handleNodes,ra as hexToRGB,In as hideAll,V as iconv,Vu as iconvWorker,ti as init,ri as initDefaultProxyClient,Zu as initWorker,qn as inlinePositioning,Sr as is,Ir as isArray,Dr as isAsyncFunction,Rr as isBoolean,Pr as isClient,zr as isDate,Er as isDef,Br as isElement,Wr as isEmpty,Js as isEnumColor,Ur as isError,xr as isFunction,ta as isHexColor,Fr as isImageDom,Gr as isMap,Kr as isMobile,kr as isNull,Tr as isNullAndUnDef,Ar as isNullOrUnDef,Or as isNumber,Mr as isObjectX,Lr as isPromise,jr as isServer,_r as isString,Xr as isStringLikeJson,Yr as isStringLikeKml,qr as isSymbol,Cr as isUnDef,Vr as isValidURL,Hr as isWeakMap,$r as isWeakSet,Nr as isWindow,Ia as jquery,sa as lighten,jl as login,Ul as logout,bu as mediaDirective,Ql as mergeFilterRoleSysRight,Go as mergeNames,Kl as mergeNodes,Jl as mergeNodesAll,ae as mitt,li as newGuid,Fa as onLockListener,jo as parseLocalPath,wa as post,ec as recursiveRoutes,Qu as registerWorkerSerivces,mu as repeatDirective,Fs as replaceAll,$o as replaceFileExtension,pa as requestGet,ma as requestPost,va as requestPostBody,Ws as reserveDecimal,na as rgbToHex,_t as roundArrow,Sl as serialize,Il as setLocalToken,Vl as setRight,gu as setupDCDirective,Cu as setupDirectives,hu as setupDragDirective,vu as setupRepeatDirective,Eu as setupTooltipDirective,wu as setupWowDirective,Su as setupmediaDirective,fa as sleep,Gn as sticky,fr as storage,hr as storageHelper,Wc as streamFetch,$c as streamFetchBlob,qc as streamFetchLoadImage,Uc as streamFetchText,Hc as streamFetchUploadFile,Rn as tippy,Ho as toLowerCaseExtension,xu as tooltipDirective,Xs as traverseXYArrayFromInsideOut,Wa as unLockListener,ci as uuid,gc as verifiyNumberInteger,Cc as verifyAccount,yc as verifyAndSpace,Rc as verifyCarNum,mc as verifyCnAndSpace,zc as verifyEmail,vc as verifyEnAndSpace,Dc as verifyFullName,Mc as verifyIPAddress,Oc as verifyIdCard,Sc as verifyNumberCnUppercase,wc as verifyNumberComma,pc as verifyNumberIntegerAndFloat,dc as verifyNumberPercentage,hc as verifyNumberPercentageFloat,kc as verifyPassword,Tc as verifyPasswordPowerful,Ac as verifyPasswordStrength,xc as verifyPhone,Lc as verifyPostalCode,Ec as verifyTelPhone,bc as verifyTextColor,_c as verifyUrl,Yu as webCacheWorker,yu as wowDirective,uc as writeIconifyList,fc as writeSysRoleRight,Xu as xmathWorker};
1
+ import{Fragment as e,KeepAlive as t,Suspense as n,Transition as r,TransitionGroup as i,computed as o,createBlock as s,createCommentVNode as a,createElementBlock as c,createElementVNode as l,createTextVNode as u,createVNode as f,defineComponent as d,h,markRaw as p,mergeProps as m,nextTick as g,normalizeClass as v,normalizeStyle as y,onErrorCaptured as w,onMounted as b,onUnmounted as S,openBlock as x,reactive as E,ref as C,renderList as k,renderSlot as T,resolveComponent as A,resolveDynamicComponent as M,shallowReactive as z,toDisplayString as O,unref as D,useCssVars as L,useTemplateRef as _,vShow as R,watch as I,withCtx as P,withDirectives as N,withModifiers as B}from"vue";import j from"axios";import{Client as F,ClientContext as W}from"@hprose/rpc-core";import{ByteStream as U,Reader as $,ValueReader as H,Writer as q}from"@hprose/io";import{HttpTransport as V}from"@hprose/rpc-html5";import G,{default as X}from"iconv-lite";import*as Y from"@microsoft/signalr";import Z from"qs";import{Icon as K}from"@iconify/vue";var J=Object.create,Q=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=Object.getOwnPropertyNames,ne=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty,ie=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),oe=(e,t,n)=>(n=null!=e?J(ne(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=te(t),s=0,a=o.length;s<a;s++)i=o[s],re.call(e,i)||void 0===i||Q(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=ee(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Q(n,"default",{value:e,enumerable:!0}),e)),se=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function ae(e){return{all:e=e||new Map,on(t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().map(e=>{e(n)}),r=e.get("*"),r&&r.slice().map(e=>{e(t,n)})}}}var ce=ae();var le,ue,fe={exports:{}},de=fe.exports={};function he(){throw new Error("setTimeout has not been defined")}function pe(){throw new Error("clearTimeout has not been defined")}function me(e){if(le===setTimeout)return setTimeout(e,0);if((le===he||!le)&&setTimeout)return le=setTimeout,setTimeout(e,0);try{return le(e,0)}catch(t){try{return le.call(null,e,0)}catch(t){return le.call(this,e,0)}}}!function(){try{le="function"==typeof setTimeout?setTimeout:he}catch(e){le=he}try{ue="function"==typeof clearTimeout?clearTimeout:pe}catch(e){ue=pe}}();var ge,ve=[],ye=!1,we=-1;function be(){ye&&ge&&(ye=!1,ge.length?ve=ge.concat(ve):we=-1,ve.length&&Se())}function Se(){if(!ye){var e=me(be);ye=!0;for(var t=ve.length;t;){for(ge=ve,ve=[];++we<t;)ge&&ge[we].run();we=-1,t=ve.length}ge=null,ye=!1,function(e){if(ue===clearTimeout)return clearTimeout(e);if((ue===pe||!ue)&&clearTimeout)return ue=clearTimeout,clearTimeout(e);try{return ue(e)}catch(t){try{return ue.call(null,e)}catch(t){return ue.call(this,e)}}}(e)}}function xe(e,t){this.fun=e,this.array=t}function Ee(){}de.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];ve.push(new xe(e,t)),1!==ve.length||ye||me(Se)},xe.prototype.run=function(){this.fun.apply(null,this.array)},de.title="browser",de.browser=!0,de.env={},de.argv=[],de.version="",de.versions={},de.on=Ee,de.addListener=Ee,de.once=Ee,de.off=Ee,de.removeListener=Ee,de.removeAllListeners=Ee,de.emit=Ee,de.prependListener=Ee,de.prependOnceListener=Ee,de.listeners=function(e){return[]},de.binding=function(e){throw new Error("process.binding is not supported")},de.cwd=function(){return"/"},de.chdir=function(e){throw new Error("process.chdir is not supported")},de.umask=function(){return 0};var Ce=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(fe.exports),ke="bottom",Te="right",Ae="left",Me=["top",ke,Te,Ae],ze="start",Oe="popper",De=Me.reduce(function(e,t){return e.concat([t+"-"+ze,t+"-end"])},[]),Le=[].concat(Me,["auto"]).reduce(function(e,t){return e.concat([t,t+"-"+ze,t+"-end"])},[]),_e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Re(e){return e?(e.nodeName||"").toLowerCase():null}function Ie(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pe(e){return e instanceof Ie(e).Element||e instanceof Element}function Ne(e){return e instanceof Ie(e).HTMLElement||e instanceof HTMLElement}function Be(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ie(e).ShadowRoot||e instanceof ShadowRoot)}var je={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Ne(i)&&Re(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ne(r)&&Re(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Fe(e){return e.split("-")[0]}var We=Math.max,Ue=Math.min,$e=Math.round;function He(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qe(){return!/^((?!chrome|android).)*safari/i.test(He())}function Ve(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ne(e)&&(i=e.offsetWidth>0&&$e(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$e(r.height)/e.offsetHeight||1);var s=(Pe(e)?Ie(e):window).visualViewport,a=!qe()&&n,c=(r.left+(a&&s?s.offsetLeft:0))/i,l=(r.top+(a&&s?s.offsetTop:0))/o,u=r.width/i,f=r.height/o;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function Ge(e){var t=Ve(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Xe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Be(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ye(e){return Ie(e).getComputedStyle(e)}function Ze(e){return["table","td","th"].indexOf(Re(e))>=0}function Ke(e){return((Pe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Je(e){return"html"===Re(e)?e:e.assignedSlot||e.parentNode||(Be(e)?e.host:null)||Ke(e)}function Qe(e){return Ne(e)&&"fixed"!==Ye(e).position?e.offsetParent:null}function et(e){for(var t=Ie(e),n=Qe(e);n&&Ze(n)&&"static"===Ye(n).position;)n=Qe(n);return n&&("html"===Re(n)||"body"===Re(n)&&"static"===Ye(n).position)?t:n||function(e){var t=/firefox/i.test(He());if(/Trident/i.test(He())&&Ne(e)&&"fixed"===Ye(e).position)return null;var n=Je(e);for(Be(n)&&(n=n.host);Ne(n)&&["html","body"].indexOf(Re(n))<0;){var r=Ye(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function tt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nt(e,t,n){return We(e,Ue(t,n))}function rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function it(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ot={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Fe(n.placement),c=tt(a),l=["left","right"].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return rt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:it(e,Me))}(i.padding,n),f=Ge(o),d="y"===c?"top":Ae,h="y"===c?ke:Te,p=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],m=s[c]-n.rects.reference[c],g=et(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,w=u[d],b=v-f[l]-u[h],S=v/2-f[l]/2+y,x=nt(w,S,b),E=c;n.modifiersData[r]=((t={})[E]=x,t.centerOffset=x-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Xe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function st(e){return e.split("-")[1]}var at={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ct(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=void 0===d?0:d,p=s.y,m=void 0===p?0:p,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),w=Ae,b="top",S=window;if(l){var x=et(n),E="clientHeight",C="clientWidth";x===Ie(n)&&"static"!==Ye(x=Ke(n)).position&&"absolute"===a&&(E="scrollHeight",C="scrollWidth"),("top"===i||("left"===i||"right"===i)&&"end"===o)&&(b=ke,m-=(f&&x===S&&S.visualViewport?S.visualViewport.height:x[E])-r.height,m*=c?1:-1),"left"!==i&&("top"!==i&&"bottom"!==i||"end"!==o)||(w=Te,h-=(f&&x===S&&S.visualViewport?S.visualViewport.width:x[C])-r.width,h*=c?1:-1)}var k,T=Object.assign({position:a},l&&at),A=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:$e(n*i)/i||0,y:$e(r*i)/i||0}}({x:h,y:m},Ie(n)):{x:h,y:m};return h=A.x,m=A.y,c?Object.assign({},T,((k={})[b]=y?"0":"",k[w]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",k)):Object.assign({},T,((t={})[b]=y?m+"px":"",t[w]=v?h+"px":"",t.transform="",t))}var lt={passive:!0},ut={left:"right",right:"left",bottom:"top",top:"bottom"};function ft(e){return e.replace(/left|right|bottom|top/g,function(e){return ut[e]})}var dt={start:"end",end:"start"};function ht(e){return e.replace(/start|end/g,function(e){return dt[e]})}function pt(e){var t=Ie(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mt(e){return Ve(Ke(e)).left+pt(e).scrollLeft}function gt(e){var t=Ye(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vt(e){return["html","body","#document"].indexOf(Re(e))>=0?e.ownerDocument.body:Ne(e)&&gt(e)?e:vt(Je(e))}function yt(e,t){var n;void 0===t&&(t=[]);var r=vt(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Ie(r),s=i?[o].concat(o.visualViewport||[],gt(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(yt(Je(s)))}function wt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bt(e,t,n){return"viewport"===t?wt(function(e,t){var n=Ie(e),r=Ke(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var l=qe();(l||!l&&"fixed"===t)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+mt(e),y:c}}(e,n)):Pe(t)?function(e,t){var n=Ve(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):wt(function(e){var t,n=Ke(e),r=pt(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=We(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=We(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+mt(e),c=-r.scrollTop;return"rtl"===Ye(i||n).direction&&(a+=We(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}(Ke(e)))}function St(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Fe(i):null,s=i?st(i):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:a,y:n.y-r.height};break;case ke:t={x:a,y:n.y+n.height};break;case Te:t={x:n.x+n.width,y:c};break;case Ae:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=o?tt(o):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case ze:t[l]=t[l]-(n[u]/2-r[u]/2);break;case"end":t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}function xt(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,s=void 0===o?e.strategy:o,a=n.boundary,c=void 0===a?"clippingParents":a,l=n.rootBoundary,u=void 0===l?"viewport":l,f=n.elementContext,d=void 0===f?Oe:f,h=n.altBoundary,p=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,v=rt("number"!=typeof g?g:it(g,Me)),y="popper"===d?"reference":Oe,w=e.rects.popper,b=e.elements[p?y:d],S=function(e,t,n,r){var i="clippingParents"===t?function(e){var t=yt(Je(e)),n=["absolute","fixed"].indexOf(Ye(e).position)>=0&&Ne(e)?et(e):e;return Pe(n)?t.filter(function(e){return Pe(e)&&Xe(e,n)&&"body"!==Re(e)}):[]}(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(t,n){var i=bt(e,n,r);return t.top=We(i.top,t.top),t.right=Ue(i.right,t.right),t.bottom=Ue(i.bottom,t.bottom),t.left=We(i.left,t.left),t},bt(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Pe(b)?b:b.contextElement||Ke(e.elements.popper),c,u,s),x=Ve(e.elements.reference),E=St({reference:x,element:w,strategy:"absolute",placement:i}),C=wt(Object.assign({},w,E)),k="popper"===d?C:x,T={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},A=e.modifiersData.offset;if("popper"===d&&A){var M=A[i];Object.keys(T).forEach(function(e){var t=["right","bottom"].indexOf(e)>=0?1:-1,n=["top","bottom"].indexOf(e)>=0?"y":"x";T[e]+=M[n]*t})}return T}var Et={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=Fe(g)===g,y=c||(v||!p?[ft(g)]:function(e){if("auto"===Fe(e))return[];var t=ft(e);return[ht(e),t,ht(t)]}(g)),w=[g].concat(y).reduce(function(e,n){return e.concat("auto"===Fe(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?Le:c,u=st(r),f=u?a?De:De.filter(function(e){return st(e)===u}):Me,d=f.filter(function(e){return l.indexOf(e)>=0});0===d.length&&(d=f);var h=d.reduce(function(t,n){return t[n]=xt(e,{placement:n,boundary:i,rootBoundary:o,padding:s})[Fe(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}):n)},[]),b=t.rects.reference,S=t.rects.popper,x=new Map,E=!0,C=w[0],k=0;k<w.length;k++){var T=w[k],A=Fe(T),M=st(T)===ze,z=["top",ke].indexOf(A)>=0,O=z?"width":"height",D=xt(t,{placement:T,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),L=z?M?Te:Ae:M?ke:"top";b[O]>S[O]&&(L=ft(L));var _=ft(L),R=[];if(o&&R.push(D[A]<=0),a&&R.push(D[L]<=0,D[_]<=0),R.every(function(e){return e})){C=T,E=!1;break}x.set(T,R)}if(E)for(var I=function(e){var t=w.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},P=p?3:1;P>0&&"break"!==I(P);P--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ct(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function kt(e){return["top",Te,ke,Ae].some(function(t){return e[t]>=0})}var Tt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=Le.reduce(function(e,n){return e[n]=function(e,t,n){var r=Fe(e),i=["left","top"].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,["left","right"].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e},{}),a=s[t.placement],c=a.x,l=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}},At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,m=void 0===p?0:p,g=xt(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),v=Fe(t.placement),y=st(t.placement),w=!y,b=tt(v),S="x"===b?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(x){if(o){var z,O="y"===b?"top":Ae,D="y"===b?ke:Te,L="y"===b?"height":"width",_=x[b],R=_+g[O],I=_-g[D],P=h?-C[L]/2:0,N="start"===y?E[L]:C[L],B="start"===y?-C[L]:-E[L],j=t.elements.arrow,F=h&&j?Ge(j):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=W[O],$=W[D],H=nt(0,E[L],F[L]),q=w?E[L]/2-P-H-U-T.mainAxis:N-H-U-T.mainAxis,V=w?-E[L]/2+P+H+$+T.mainAxis:B+H+$+T.mainAxis,G=t.elements.arrow&&et(t.elements.arrow),X=G?"y"===b?G.clientTop||0:G.clientLeft||0:0,Y=null!=(z=null==A?void 0:A[b])?z:0,Z=_+V-Y,K=nt(h?Ue(R,_+q-Y-X):R,_,h?We(I,Z):I);x[b]=K,M[b]=K-_}if(a){var J,Q="x"===b?"top":Ae,ee="x"===b?ke:Te,te=x[S],ne="y"===S?"height":"width",re=te+g[Q],ie=te-g[ee],oe=-1!==["top",Ae].indexOf(v),se=null!=(J=null==A?void 0:A[S])?J:0,ae=oe?re:te-E[ne]-C[ne]-se+T.altAxis,ce=oe?te+E[ne]+C[ne]-se-T.altAxis:ie,le=h&&oe?function(e,t,n){var r=nt(e,t,n);return r>n?n:r}(ae,te,ce):nt(h?ae:re,te,h?ce:ie);x[S]=le,M[S]=le-te}t.modifiersData[r]=M}},requiresIfExists:["offset"]};function Mt(e,t,n){void 0===n&&(n=!1);var r,i,o=Ne(t),s=Ne(t)&&function(e){var t=e.getBoundingClientRect(),n=$e(t.width)/e.offsetWidth||1,r=$e(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Ke(t),c=Ve(e,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==Re(t)||gt(a))&&(l=(r=t)!==Ie(r)&&Ne(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:pt(r)),Ne(t)?((u=Ve(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=mt(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function zt(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function Dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var Lt=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?Ot:i;return function(e,t,n){void 0===n&&(n=o);var i,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(n){var i="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},o,a.options,i),a.scrollParents={reference:Pe(e)?yt(e):e.contextElement?yt(e.contextElement):[],popper:yt(t)};var s,l,d=function(e){var t=zt(e);return _e.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((s=[].concat(r,a.options.modifiers),l=s.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return a.orderedModifiers=d.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:a,name:t,instance:u,options:r});c.push(o||function(){})}}),u.update()},forceUpdate:function(){if(!l){var e=a.elements,t=e.reference,n=e.popper;if(Dt(t,n)){a.rects={reference:Mt(t,et(n),"fixed"===a.options.strategy),popper:Ge(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],o=i.fn,s=i.options,c=void 0===s?{}:s,f=i.name;"function"==typeof o&&(a=o({state:a,options:c,name:f,instance:u})||a)}else a.reset=!1,r=-1}}},update:(i=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(i())})})),s}),destroy:function(){f(),l=!0}};if(!Dt(e,t))return u;function f(){c.forEach(function(e){return e()}),c=[]}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,c=Ie(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(e){e.addEventListener("scroll",n.update,lt)}),a&&c.addEventListener("resize",n.update,lt),function(){o&&l.forEach(function(e){e.removeEventListener("scroll",n.update,lt)}),a&&c.removeEventListener("resize",n.update,lt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=St({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,l={placement:Fe(t.placement),variation:st(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ct(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ct(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},je,Tt,Et,At,ot,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=xt(t,{elementContext:"reference"}),a=xt(t,{altBoundary:!0}),c=Ct(s,r),l=Ct(a,i,o),u=kt(c),f=kt(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),_t='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',Rt="tippy-content",It="tippy-backdrop",Pt="tippy-arrow",Nt="tippy-svg-arrow",Bt={passive:!0,capture:!0},jt=function(){return document.body};function Ft(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Wt(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Ut(e,t){return"function"==typeof e?e.apply(void 0,t):e}function $t(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)};var n}function Ht(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}function qt(e){return[].concat(e)}function Vt(e,t){-1===e.indexOf(t)&&e.push(t)}function Gt(e){return e.split("-")[0]}function Xt(e){return[].slice.call(e)}function Yt(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Zt(){return document.createElement("div")}function Kt(e){return["Element","Fragment"].some(function(t){return Wt(e,t)})}function Jt(e){return Wt(e,"MouseEvent")}function Qt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function en(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function tn(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function nn(e){var t,n=qt(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function rn(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function on(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var sn={isTouch:!1},an=0;function cn(){sn.isTouch||(sn.isTouch=!0,window.performance&&document.addEventListener("mousemove",ln))}function ln(){var e=performance.now();e-an<20&&(sn.isTouch=!1,document.removeEventListener("mousemove",ln)),an=e}function un(){var e=document.activeElement;if(Qt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var fn,dn="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.msCrypto;function hn(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function pn(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function mn(e){return pn("\n %ctippy.js\n\n %c"+pn(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function gn(e){return[mn(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function vn(e,t){var n;e&&!fn.has(t)&&(fn.add(t),(n=console).warn.apply(n,gn(t)))}function yn(e,t){var n;e&&!fn.has(t)&&(fn.add(t),(n=console).error.apply(n,gn(t)))}"production"!==Ce.env.NODE_ENV&&(fn=new Set);var wn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},bn=Object.assign({appendTo:jt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},wn,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Sn=Object.keys(bn);function xn(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=bn[i])?r:o),t},{});return Object.assign({},e,t)}function En(e,t){var n=Object.assign({},t,{content:Ut(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(xn(Object.assign({},bn,{plugins:t}))):Sn).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})}(e,t.plugins));return n.aria=Object.assign({},bn.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Cn(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var n,r,i=(n=Ht(bn,Object.keys(wn)),r=e,!{}.hasOwnProperty.call(n,r));i&&(i=0===t.filter(function(t){return t.name===e}).length),vn(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function kn(e,t){e.innerHTML=t}function Tn(e){var t=Zt();return!0===e?t.className=Pt:(t.className=Nt,Kt(e)?t.appendChild(e):kn(t,e)),t}function An(e,t){Kt(t.content)?(kn(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?kn(e,t.content):e.textContent=t.content)}function Mn(e){var t=e.firstElementChild,n=Xt(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(Rt)}),arrow:n.find(function(e){return e.classList.contains(Pt)||e.classList.contains(Nt)}),backdrop:n.find(function(e){return e.classList.contains(It)})}}function zn(e){var t=Zt(),n=Zt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Zt();function i(n,r){var i=Mn(t),o=i.box,s=i.content,a=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||An(s,e.props),r.arrow?a?n.arrow!==r.arrow&&(o.removeChild(a),o.appendChild(Tn(r.arrow))):o.appendChild(Tn(r.arrow)):a&&o.removeChild(a)}return r.className=Rt,r.setAttribute("data-state","hidden"),An(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}zn.$$tippy=!0;var On=1,Dn=[],Ln=[];function _n(e,t){var n,r,i,o,s,a,c,l,u=En(e,Object.assign({},bn,xn(Yt(t)))),f=!1,d=!1,h=!1,p=!1,m=[],g=$t(G,u.interactiveDebounce),v=On++,y=(l=u.plugins).filter(function(e,t){return l.indexOf(e)===t}),w={id:v,reference:e,popper:Zt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if("production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("setProps")),!w.state.isDestroyed){_("onBeforeUpdate",[w,t]),q();var n=w.props,r=En(e,Object.assign({},n,Yt(t),{ignoreAttributes:!0}));w.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(P(),g=$t(G,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?qt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded"),I(),L(),x&&x(n,r),w.popperInstance&&(K(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),_("onAfterUpdate",[w,t])}},setContent:function(e){w.setProps({content:e})},show:function(){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("show"));var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=sn.isTouch&&!w.props.touch,i=Ft(w.props.duration,0,bn.duration);if(!(e||t||n||r||M().hasAttribute("disabled")||(_("onShow",[w],!1),!1===w.props.onShow(w)))){if(w.state.isVisible=!0,A()&&(S.style.visibility="visible"),L(),F(),w.state.isMounted||(S.style.transition="none"),A()){var o=O();en([o.box,o.content],0)}a=function(){var e;if(w.state.isVisible&&!p){if(p=!0,S.offsetHeight,S.style.transition=w.props.moveTransition,A()&&w.props.animation){var t=O(),n=t.box,r=t.content;en([n,r],i),tn([n,r],"visible")}R(),I(),Vt(Ln,w),null==(e=w.popperInstance)||e.forceUpdate(),_("onMount",[w]),w.props.animation&&A()&&function(e){U(e,function(){w.state.isShown=!0,_("onShown",[w])})}(i)}},function(){var e,t=w.props.appendTo,n=M();(e=w.props.interactive&&t===jt||"parent"===t?n.parentNode:Ut(t,[n])).contains(S)||e.appendChild(S),w.state.isMounted=!0,K(),"production"!==Ce.env.NODE_ENV&&vn(w.props.interactive&&t===bn.appendTo&&n.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()}},hide:function(){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("hide"));var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=Ft(w.props.duration,1,bn.duration);if(!(e||t||n)&&(_("onHide",[w],!1),!1!==w.props.onHide(w))){if(w.state.isVisible=!1,w.state.isShown=!1,p=!1,f=!1,A()&&(S.style.visibility="hidden"),P(),W(),L(!0),A()){var i=O(),o=i.box,s=i.content;w.props.animation&&(en([o,s],r),tn([o,s],"hidden"))}R(),I(),w.props.animation?A()&&function(e,t){U(e,function(){!w.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&t()})}(r,w.unmount):w.unmount()}},hideWithInteractivity:function(e){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("hideWithInteractivity")),z().addEventListener("mousemove",g),Vt(Dn,g),g(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("unmount")),w.state.isVisible&&w.hide(),w.state.isMounted&&(J(),Q().forEach(function(e){e._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),Ln=Ln.filter(function(e){return e!==w}),w.state.isMounted=!1,_("onHidden",[w]))},destroy:function(){"production"!==Ce.env.NODE_ENV&&vn(w.state.isDestroyed,hn("destroy")),w.state.isDestroyed||(w.clearDelayTimeouts(),w.unmount(),q(),delete e._tippy,w.state.isDestroyed=!0,_("onDestroy",[w]))}};if(!u.render)return"production"!==Ce.env.NODE_ENV&&yn(!0,"render() function has not been supplied."),w;var b=u.render(w),S=b.popper,x=b.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+w.id,w.popper=S,e._tippy=w,S._tippy=w;var E=y.map(function(e){return e.fn(w)}),C=e.hasAttribute("aria-expanded");return H(),I(),L(),_("onCreate",[w]),u.showOnCreate&&ee(),S.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&z().addEventListener("mousemove",g)}),w;function k(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function T(){return"hold"===k()[0]}function A(){var e;return!(null==(e=w.props.render)||!e.$$tippy)}function M(){return c||e}function z(){var e=M().parentNode;return e?nn(e):document}function O(){return Mn(S)}function D(e){return w.state.isMounted&&!w.state.isVisible||sn.isTouch||o&&"focus"===o.type?0:Ft(w.props.delay,e?0:1,bn.delay)}function L(e){void 0===e&&(e=!1),S.style.pointerEvents=w.props.interactive&&!e?"":"none",S.style.zIndex=""+w.props.zIndex}function _(e,t,n){var r;void 0===n&&(n=!0),E.forEach(function(n){n[e]&&n[e].apply(n,t)}),n&&(r=w.props)[e].apply(r,t)}function R(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,r=S.id;qt(w.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function I(){!C&&w.props.aria.expanded&&qt(w.props.triggerTarget||e).forEach(function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")})}function P(){z().removeEventListener("mousemove",g),Dn=Dn.filter(function(e){return e!==g})}function N(t){if(!sn.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!w.props.interactive||!on(S,n)){if(qt(w.props.triggerTarget||e).some(function(e){return on(e,n)})){if(sn.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else _("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout(function(){d=!1}),w.state.isMounted||W())}}}function B(){h=!0}function j(){h=!1}function F(){var e=z();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,Bt),e.addEventListener("touchstart",j,Bt),e.addEventListener("touchmove",B,Bt)}function W(){var e=z();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,Bt),e.removeEventListener("touchstart",j,Bt),e.removeEventListener("touchmove",B,Bt)}function U(e,t){var n=O().box;function r(e){e.target===n&&(rn(n,"remove",r),t())}if(0===e)return t();rn(n,"remove",s),rn(n,"add",r),s=r}function $(t,n,r){void 0===r&&(r=!1),qt(w.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})})}function H(){var e;T()&&($("touchstart",V,{passive:!0}),$("touchend",X,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch($(e,V),e){case"mouseenter":$("mouseleave",X);break;case"focus":$(dn?"focusout":"blur",Y);break;case"focusin":$("focusout",Y)}})}function q(){m.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),m=[]}function V(e){var t,n=!1;if(w.state.isEnabled&&!Z(e)&&!d){var r="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,I(),!w.state.isVisible&&Jt(e)&&Dn.forEach(function(t){return t(e)}),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||f)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function G(e){var t=e.target,n=M().contains(t)||S.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,s=Gt(i.placement),a=i.modifiersData.offset;if(!a)return!0;var c="bottom"===s?a.top.y:0,l="top"===s?a.bottom.y:0,u="right"===s?a.left.x:0,f="left"===s?a.right.x:0,d=t.top-r+c>o,h=r-t.bottom-l>o,p=t.left-n+u>o,m=n-t.right-f>o;return d||h||p||m})}(Q().concat(S).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}).filter(Boolean),e)&&(P(),te(e))}function X(e){Z(e)||w.props.trigger.indexOf("click")>=0&&f||(w.props.interactive?w.hideWithInteractivity(e):te(e))}function Y(e){w.props.trigger.indexOf("focusin")<0&&e.target!==M()||w.props.interactive&&e.relatedTarget&&S.contains(e.relatedTarget)||te(e)}function Z(e){return!!sn.isTouch&&T()!==e.type.indexOf("touch")>=0}function K(){J();var t=w.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,c=A()?Mn(S).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:e,u=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(A()){var n=O().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];A()&&c&&u.push({name:"arrow",options:{element:c,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),w.popperInstance=Lt(l,S,Object.assign({},n,{placement:r,onFirstUpdate:a,modifiers:u}))}function J(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function Q(){return Xt(S.querySelectorAll("[data-tippy-root]"))}function ee(e){w.clearDelayTimeouts(),e&&_("onTrigger",[w,e]),F();var t=D(!0),r=k(),i=r[0],o=r[1];sn.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout(function(){w.show()},t):w.show()}function te(e){if(w.clearDelayTimeouts(),_("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=D(!1);t?r=setTimeout(function(){w.state.isVisible&&w.hide()},t):i=requestAnimationFrame(function(){w.hide()})}}else W()}}function Rn(e,t){void 0===t&&(t={});var n=bn.plugins.concat(t.plugins||[]);"production"!==Ce.env.NODE_ENV&&(function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;yn(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),yn(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),Cn(t,n)),document.addEventListener("touchstart",cn,Bt),window.addEventListener("blur",un);var r=Object.assign({},t,{plugins:n}),i=function(e){return Kt(e)?[e]:function(e){return Wt(e,"NodeList")}(e)?Xt(e):Array.isArray(e)?e:Xt(document.querySelectorAll(e))}(e);if("production"!==Ce.env.NODE_ENV){var o=Kt(r.content),s=i.length>1;vn(o&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var a=i.reduce(function(e,t){var n=t&&_n(t,r);return n&&e.push(n),e},[]);return Kt(e)?a[0]:a}Rn.defaultProps=bn,Rn.setDefaultProps=function(e){"production"!==Ce.env.NODE_ENV&&Cn(e,[]),Object.keys(e).forEach(function(t){bn[t]=e[t]})},Rn.currentInput=sn;var In=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;Ln.forEach(function(e){var t=!1;if(n&&(t=Qt(n)?e.reference===n:e.popper===n.popper),!t){var i=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:i})}})},Pn=Object.assign({},je,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Nn=function(e,t){var n;void 0===t&&(t={}),"production"!==Ce.env.NODE_ENV&&yn(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var r,i=e,o=[],s=[],a=t.overrides,c=[],l=!1;function u(){s=i.map(function(e){return qt(e.props.triggerTarget||e.reference)}).reduce(function(e,t){return e.concat(t)},[])}function f(){o=i.map(function(e){return e.reference})}function d(e){i.forEach(function(t){e?t.enable():t.disable()})}function h(e){return i.map(function(t){var n=t.setProps;return t.setProps=function(i){n(i),t.reference===r&&e.setProps(i)},function(){t.setProps=n}})}function p(e,t){var n=s.indexOf(t);if(t!==r){r=t;var c=(a||[]).concat("content").reduce(function(e,t){return e[t]=i[n].props[t],e},{});e.setProps(Object.assign({},c,{getReferenceClientRect:"function"==typeof c.getReferenceClientRect?c.getReferenceClientRect:function(){var e;return null==(e=o[n])?void 0:e.getBoundingClientRect()}}))}}d(!1),f(),u();var m=Rn(Zt(),Object.assign({},Ht(t,["overrides"]),{plugins:[{fn:function(){return{onDestroy:function(){d(!0)},onHidden:function(){r=null},onClickOutside:function(e){e.props.showOnCreate&&!l&&(l=!0,r=null)},onShow:function(e){e.props.showOnCreate&&!l&&(l=!0,p(e,o[0]))},onTrigger:function(e,t){p(e,t.currentTarget)}}}}].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[Pn])})})),g=m.show;m.show=function(e){if(g(),!r&&null==e)return p(m,o[0]);if(!r||null!=e){if("number"==typeof e)return o[e]&&p(m,o[e]);if(i.indexOf(e)>=0){var t=e.reference;return p(m,t)}return o.indexOf(e)>=0?p(m,e):void 0}},m.showNext=function(){var e=o[0];if(!r)return m.show(0);var t=o.indexOf(r);m.show(o[t+1]||e)},m.showPrevious=function(){var e=o[o.length-1];if(!r)return m.show(e);var t=o.indexOf(r),n=o[t-1]||e;m.show(n)};var v=m.setProps;return m.setProps=function(e){a=e.overrides||a,v(e)},m.setInstances=function(e){d(!0),c.forEach(function(e){return e()}),i=e,d(!1),f(),u(),c=h(m),m.setProps({triggerTarget:s})},c=h(m),m},Bn={mouseover:"mouseenter",focusin:"focus",click:"click"};function jn(e,t){"production"!==Ce.env.NODE_ENV&&yn(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],r=[],i=!1,o=t.target,s=Ht(t,["target"]),a=Object.assign({},s,{trigger:"manual",touch:!1}),c=Object.assign({touch:bn.touch},s,{showOnCreate:!0}),l=Rn(e,a);function u(e){if(e.target&&!i){var n=e.target.closest(o);if(n){var s=n.getAttribute("data-tippy-trigger")||t.trigger||bn.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof c.touch||"touchstart"!==e.type&&s.indexOf(Bn[e.type])<0)){var a=Rn(n,c);a&&(r=r.concat(a))}}}}function f(e,t,r,i){void 0===i&&(i=!1),e.addEventListener(t,r,i),n.push({node:e,eventType:t,handler:r,options:i})}return qt(l).forEach(function(e){var t=e.destroy,o=e.enable,s=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&r.forEach(function(e){e.destroy()}),r=[],n.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),n=[],t()},e.enable=function(){o(),r.forEach(function(e){return e.enable()}),i=!1},e.disable=function(){s(),r.forEach(function(e){return e.disable()}),i=!0},function(e){var t=e.reference;f(t,"touchstart",u,Bt),f(t,"mouseover",u),f(t,"focusin",u),f(t,"click",u)}(e)}),l}var Fn={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return"production"!==Ce.env.NODE_ENV&&yn(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=Mn(e.popper),r=n.box,i=n.content,o=e.props.animateFill?function(){var e=Zt();return e.className=It,tn([e],"hidden"),e}():null;return{onCreate:function(){o&&(r.insertBefore(o,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));i.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,tn([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&tn([o],"hidden")}}}},Wn={clientX:0,clientY:0},Un=[];function $n(e){Wn={clientX:e.clientX,clientY:e.clientY}}var Hn={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=nn(e.props.triggerTarget||t),r=!1,i=!1,o=!0,s=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function c(){n.addEventListener("mousemove",f)}function l(){n.removeEventListener("mousemove",f)}function u(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||t.contains(n.target),i=e.props.followCursor,o=n.clientX,s=n.clientY,a=t.getBoundingClientRect(),c=o-a.left,l=s-a.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=o,r=s;"initial"===i&&(n=e.left+c,r=e.top+l);var a="horizontal"===i?e.top:r,u="vertical"===i?e.right:n,f="horizontal"===i?e.bottom:r,d="vertical"===i?e.left:n;return{width:u-d,height:f-a,top:a,right:u,bottom:f,left:d}}})}function d(){e.props.followCursor&&(Un.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",$n)}(n))}function h(){Un=Un.filter(function(t){return t.instance!==e}),0===Un.filter(function(e){return e.doc===n}).length&&function(e){e.removeEventListener("mousemove",$n)}(n)}return{onCreate:d,onDestroy:h,onBeforeUpdate:function(){s=e.props},onAfterUpdate:function(t,n){var o=n.followCursor;r||void 0!==o&&s.followCursor!==o&&(h(),o?(d(),!e.state.isMounted||i||a()||c()):(l(),u()))},onMount:function(){e.props.followCursor&&!i&&(o&&(f(Wn),o=!1),a()||c())},onTrigger:function(e,t){Jt(t)&&(Wn={clientX:t.clientX,clientY:t.clientY}),i="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),l(),o=!0)}}}},qn={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,r=-1,i=!1,o=[],s={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(i){var s=i.state;e.props.inlinePositioning&&(-1!==o.indexOf(s.placement)&&(o=[]),t!==s.placement&&-1===o.indexOf(s.placement)&&(o.push(s.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,r){if(n.length<2||null===e)return t;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":var i=n[0],o=n[n.length-1],s="top"===e,a=i.top,c=o.bottom,l=s?i.left:o.left,u=s?i.right:o.right;return{top:a,bottom:c,left:l,right:u,width:u-l,height:c-a};case"left":case"right":var f=Math.min.apply(Math,n.map(function(e){return e.left})),d=Math.max.apply(Math,n.map(function(e){return e.right})),h=n.filter(function(t){return"left"===e?t.left===f:t.right===d}),p=h[0].top,m=h[h.length-1].bottom;return{top:p,bottom:m,left:f,right:d,width:d-f,height:m-p};default:return t}}(Gt(e),n.getBoundingClientRect(),Xt(n.getClientRects()),r)}(s.placement)}})),t=s.placement)}};function a(){var t;i||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter(function(e){return e.name!==t.name}),[t])})}}(e.props,s),i=!0,e.setProps(t),i=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(t,n){if(Jt(n)){var i=Xt(e.reference.getClientRects()),o=i.find(function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY}),s=i.indexOf(o);r=s>-1?s:r}},onHidden:function(){r=-1}}}},Vn={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var i=null,o=null;function s(){var a=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,c=r("popper")?n.getBoundingClientRect():null;(a&&Gn(i,a)||c&&Gn(o,c))&&e.popperInstance&&e.popperInstance.update(),i=a,o=c,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function Gn(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}Rn.setDefaultProps({render:zn});var Xn=ie((e,t)=>{var n,r;n=e,r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],i={},o=null;function s(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(){for(var n=this.getLevel(),i=0;i<r.length;i++){var o=r[i];this[o]=i<n?e:this.methodFactory(o,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function l(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function u(r,i,o){return function(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?a:void 0!==console[r]?s(console,r):void 0!==console.log?s(console,"log"):e)}(r)||l.apply(this,arguments)}function f(e,n){var s,a,l,f=this,d="loglevel";function h(){var e;if(typeof window!==t&&d){try{e=window.localStorage[d]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=encodeURIComponent(d),i=n.indexOf(r+"=");-1!==i&&(e=/^([^;]+)/.exec(n.slice(i+r.length+1))[1])}catch(e){}return void 0===f.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==f.levels[t.toUpperCase()]&&(t=f.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=n||u,f.getLevel=function(){return null!=l?l:null!=a?a:s},f.setLevel=function(e,n){return l=p(e),!1!==n&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&d){try{return void(window.localStorage[d]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+n+";"}catch(e){}}}(l),c.call(f)},f.setDefaultLevel=function(e){a=p(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){l=null,function(){if(typeof window!==t&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(o!==f&&(s=p(o.getLevel())),c.call(f),o===f)for(var e in i)i[e].rebuild()},s=p(o?o.getLevel():"WARN");var m=h();null!=m&&(l=p(m)),c.call(f)}(o=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new f(e,o.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=d),o},o.getLoggers=function(){return i},o.default=o,o},"function"==typeof define&&define.amd?define(r):"object"==typeof t&&t.exports?t.exports=r():n.log=r()}),Yn=oe(Xn(),1),Zn={HproseServiceErrorEvent:"HproseServiceError",WebAPIErrorEvent:"WebAPIError",AlertInfoEvent:"AlertInfoEvent",CommonWarnEvent:"CommonWarnEvent",WidgetLoadedEvent:"WidgetLoaded",WidgetLoaded:"WidgetLoaded",WidgetToUnloadEvent:"WidgetToUnloadEvent",WidgetUnLoadedEvent:"WidgetUnLoaded",WidgetLoadedErrorEvent:"WidgetLoadedError",WidgetVisibleChanged:"WidgetVisibleChanged",AxiosRequestErrorEvent:"AxiosRequestErrorEvent",LayoutContainerLoaded:"LayoutContainerLoaded",ModalContainerWidget_LoadModal:"ModalContainerWidget_LoadModal",ModalContainerWidget_CloseModal:"ModalContainerWidget_CloseModal",WidgetClosed:"WidgetClosed"},Kn=class{message;eventBus;constructor(e,t=void 0){e&&(this.message=e),t&&(this.eventBus=t)}msg(e,t=3,n="success"){if(this.message)if("function"==typeof this.message)this.message({type:n,message:e,duration:t});else switch(n){case"info":this.message.info(e,t);break;case"success":this.message.success(e,t);break;case"warning":this.message.warn?this.message.warn(e,t):this.message.warning&&this.message.warning(e,t);break;case"error":this.message.error(e,t)}else{switch(n){case"info":case"success":console.log(e);break;case"warning":console.warn(e);break;case"error":n="dark",console.error(e)}this.eventBus&&this.eventBus.emit(Zn.AlertInfoEvent,{type:n,info:e})}}info(e,t=3){this.msg(e,t,"info")}warn(e,t=3){this.msg(e,t,"warning")}err(e,t=3){this.msg(e,t,"error")}success(e,t=3){this.msg(e,t,"success")}},Jn=globalThis.SysConfig,Qn=!1,er=!1;Function.prototype.promise=function(...e){const t=this;return function(){const n=e||[];return new Promise((e,r)=>{n.push(function(t,n){t?r(t):e(n)}),t.apply(t,n)})}()};var tr={Config:globalThis.SysConfig,EventBus:ce,DefaultProxyClient:null,Axios:j,Message:new Kn(void 0,ce),LayoutMap:new Map,getLayoutManager:e=>{if(!ir.WidgetConfigList||0===ir.WidgetConfigList.length)return;const t=ir.WidgetConfigList.find(t=>t.id===e);if(t){const e=t.layoutID;if(e&&ir.LayoutMap.has(e))return ir.LayoutMap.get(e)}},Logger:e=>{Qn||(Jn.UI.ProductLog?Yn.enableAll():Yn.setDefaultLevel("warn"),Qn=!0);const t=e||"default";return Yn.getLogger(t)},Loading:(e="end")=>{if("end"===e)setTimeout(()=>{document.getElementById("apploading")?.remove()},300),er=!0;else if(e)if(er){const t=`加载Widget:${e}……`;ce.emit("statusmessage",t)}else{const t=document.getElementById("app-loading-info");t&&(t.innerHTML=`正在加载:${e}……`)}}},nr="99,111,110,115,116,32,118,97,108,105,100,75,101,121,115,61,91,39,54,65,50,53,51,65,69,70,54,54,68,48,69,56,65,66,57,54,49,55,49,55,51,49,50,52,50,66,65,70,53,65,39,44,39,66,54,53,48,52,57,53,55,54,55,49,49,56,66,50,70,50,50,48,55,67,66,52,69,70,51,49,51,52,49,65,68,39,44,39,54,66,52,66,57,49,65,67,52,51,56,70,70,57,69,54,65,69,52,68,49,49,70,48,50,70,56,51,50,68,51,52,39,44,39,70,54,69,52,57,50,52,57,57,69,70,57,57,48,65,49,50,66,57,66,57,55,48,66,54,57,68,69,68,49,48,70,39,44,39,57,67,55,55,56,67,66,69,66,56,54,51,70,68,68,52,70,49,66,65,51,56,49,52,50,69,48,52,53,53,69,49,39,44,39,70,66,66,55,57,67,57,66,51,57,53,70,65,70,55,49,53,56,50,50,65,70,52,50,52,57,54,56,70,48,54,67,39,44,39,53,57,51,66,67,70,68,50,54,70,48,53,53,53,65,53,50,57,51,67,68,49,49,56,55,49,56,53,49,68,52,52,39,44,39,50,48,54,55,69,66,51,54,57,55,69,55,49,67,53,49,53,68,68,68,54,49,65,53,52,70,67,57,51,53,53,69,39,44,39,70,52,65,50,68,67,69,65,48,53,56,69,68,52,55,48,53,67,67,52,70,54,69,66,51,70,67,70,48,66,53,66,39,93,59,105,102,40,83,121,115,67,111,110,102,105,103,46,75,69,89,38,38,118,97,108,105,100,75,101,121,115,46,105,110,100,101,120,79,102,40,83,121,115,67,111,110,102,105,103,46,75,69,89,41,62,61,48,41,123,99,111,110,115,111,108,101,46,108,111,103,40,39,117,115,105,110,103,32,97,117,116,104,111,114,105,122,101,100,32,120,102,114,97,109,101,108,105,98,46,84,104,97,110,107,32,121,111,117,33,39,41,59,114,101,116,117,114,110,32,103,108,111,98,79,98,106,125,101,108,115,101,32,105,102,40,33,83,121,115,67,111,110,102,105,103,46,75,69,89,41,123,105,102,40,110,101,119,32,68,97,116,101,40,50,48,50,55,44,49,44,49,41,60,110,101,119,32,68,97,116,101,40,41,41,123,105,102,40,99,111,110,102,105,114,109,40,39,84,104,101,32,88,70,114,97,109,101,108,105,98,32,116,114,105,97,108,32,104,97,115,32,101,120,112,105,114,101,100,46,32,84,111,32,112,117,114,99,104,97,115,101,32,97,32,102,117,108,108,32,118,101,114,115,105,111,110,32,112,108,101,97,115,101,32,99,111,110,116,97,99,116,58,122,111,114,114,111,119,109,64,49,50,54,46,99,111,109,46,32,83,101,108,101,99,116,32,79,75,32,116,111,32,110,97,118,105,103,97,116,101,32,116,111,32,116,104,101,32,103,105,116,104,117,98,46,99,111,109,47,122,111,114,114,111,119,109,32,85,82,76,46,39,41,41,123,108,111,99,97,116,105,111,110,46,104,114,101,102,61,39,104,116,116,112,115,58,47,47,103,105,116,104,117,98,46,99,111,109,47,122,111,114,114,111,119,109,39,125,101,108,115,101,123,116,104,114,111,119,39,84,104,101,32,116,114,105,97,108,32,112,101,114,105,111,100,32,104,97,115,32,101,120,112,105,114,101,100,33,39,59,125,125,101,108,115,101,123,99,111,110,115,111,108,101,46,108,111,103,40,39,84,104,101,32,116,114,105,97,108,32,100,101,97,100,108,105,110,101,32,102,111,114,32,116,104,105,115,32,120,102,114,97,109,101,108,105,98,32,108,105,98,114,97,114,121,32,105,115,32,74,97,110,117,97,114,121,32,49,44,32,50,48,50,55,46,39,41,59,114,101,116,117,114,110,32,103,108,111,98,79,98,106,125,125,116,104,114,111,119,39,84,104,101,32,88,70,114,97,109,101,108,105,98,32,75,69,89,32,105,115,32,105,110,118,97,108,105,100,33,32,84,111,32,112,117,114,99,104,97,115,101,32,97,32,102,117,108,108,32,118,101,114,115,105,111,110,32,112,108,101,97,115,101,32,99,111,110,116,97,99,116,58,122,111,114,114,111,119,109,64,49,50,54,46,99,111,109,32,33,39,59".split(",").map(e=>Number(e));new Function("globObj","isdev",String.fromCharCode(...nr));var rr,ir=tr;!function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.centerBack=2]="centerBack",e[e.centerMain=3]="centerMain",e[e.centerFront=4]="centerFront",e[e.left=5]="left",e[e.right=6]="right"}(rr||(rr={}));var or=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},sr=or(d({name:"SuspenseWithError",setup(){const e=C(null);return w(t=>(e.value="当前页面存在问题,无法渲染……",console.error("onErrorCaptured",t),!0)),{error:e}}}),[["render",function(e,t,r,i,o,a){return e.error?T(e.$slots,"error",{key:0},()=>[u(O(e.error),1)]):(x(),s(n,{key:1},{default:P(()=>[T(e.$slots,"default")]),fallback:P(()=>[T(e.$slots,"fallback",{},()=>[t[0]||(t[0]=l("div",null,"加载中……",-1))])]),_:3}))}]]),ar=d({name:"RouterTransition",__name:"RouterTransition",setup:e=>(e,n)=>{const r=A("router-view");return x(),s(sr,null,{default:P(()=>[f(r,null,{default:P(({Component:e,route:n})=>[(x(),s(t,null,[n.meta.keepAlive?(x(),s(M(e),{key:n.name})):a("",!0)],1024)),n.meta.keepAlive?a("",!0):(x(),s(M(e),{key:n.name}))]),_:1})]),_:1})}}),cr=class{static isNullOrEmpty=e=>null===e||""===e||void 0===e||0===e.length;static isNotEmpty=e=>null!==e&&""!==e&&void 0!==e&&0!==e.length;static toHump(e){return e.replace(/[\-\/\_](\w)/g,(e,t)=>t.toUpperCase()).replace("views","")}static getFileName(e){const t=e.lastIndexOf("/")+1;let n=e.substring(t);return n=decodeURI(n.split("?")[0]),n}static UpperFirst(e){return(e=e.toLowerCase()).replace(/\b\w|\s\w/g,e=>e.toUpperCase())}},lr=class e{hproseURL;client;hproseProxy;static httpTransport;constructor(t){if(t&&!cr.isNullOrEmpty(t)){if(e.httpTransport||(e.httpTransport=new V),this.client=new F(t),!this.client)throw Error("Hprose Client初始化错误");this.hproseURL=t,this.init()}}init(){this.client&&this.client.useServiceAsync().then(e=>{this.hproseProxy=e}).catch(e=>{String(e).indexOf("find this method ~")>0?(this.hproseProxy=this.client?.useService(),console.warn("旧版本不支持useServiceAsync")):ce.emit(Zn.HproseServiceErrorEvent,"初始化默认Hprose!")})}async getProxy(){if(!this.hproseProxy)try{this.client&&(this.hproseProxy=await this.client.useServiceAsync())}catch(e){console.warn(e),this.hproseProxy=this.client?.useService()}return this.hproseProxy}async invoke(e,t,n){if(this.client)return await this.client.invoke(e,t,n)}encode(e,t,n){return this.client?this.client.codec.encode(e,t,n):void 0}decode(e,t){return this.client?this.client.codec.decode(e,t):void 0}},ur=new class{data=new Map;get length(){return this.data.size}clear(){this.data.clear()}getItem(e){return this.data.get(e)??null}key(e){return Array.from(this.data.keys())[e]??null}removeItem(e){this.data.delete(e)}setItem(e,t){this.data.set(e,t)}};function fr(e){return"undefined"==typeof window?ur:window[e]??ur}var dr=class{prefixKey;storage;constructor(e="",t=fr("localStorage")){this.prefixKey=e,this.storage=t}getKey(e){return`${this.prefixKey}${e}`.toUpperCase()}set(e,t,n=604800){const r=JSON.stringify({value:t,expire:null!==n?(new Date).getTime()+1e3*n:null});this.storage.setItem(this.getKey(e),r)}get(e,t=null){const n=this.storage.getItem(this.getKey(e));if(n)try{const{value:t,expire:r}=JSON.parse(n);if(null===r||r>=Date.now())return t;this.remove(e)}catch(e){return t}return t}getJsonObject(e){const t=this.storage.getItem(this.getKey(e));if(t)try{const n=JSON.parse(t);if(null===n.expire||n.expire>=Date.now())return n;this.remove(e)}catch(e){return}}remove(e){this.storage.removeItem(this.getKey(e))}clear(){this.storage.clear()}setCookie(e,t,n=604800){document.cookie=`${this.getKey(e)}=${t}; Max-Age=${n}`}getCookie(e){const t=document.cookie.split("; ");for(let n=0,r=t.length;n<r;n++){const r=t[n].split("=");if(r[0]===this.getKey(e))return r[1]}return""}removeCookie(e){this.setCookie(e,1,-1)}clearCookie(){const e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(let t=e.length;t--;)document.cookie=e[t]+"=0;expire="+new Date(0).toUTCString()}},hr=new dr,pr="access_token",mr=new dr("user");function gr(){return mr.get(pr)}function vr(){mr.remove(pr)}function yr(){return gr()?.refresh}var wr=class{hproseClient;hpProxyObj;defaultContext=new W;constructor(e){this.hproseClient=new lr(e),this.hpProxyObj=null}getClientContext(e,t){const n={};t&&(n.requestHeaders=t),n.httpRequestHeaders=e||{};const r=n.httpRequestHeaders,i=gr();return i&&(r.token=i.token),ir.SystemID&&(r.sysid=ir.SystemID,ir.SystemGroup&&(r.sysgroup=ir.SystemGroup)),new W(n)}async getHproseProxy(){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");if(!this.hpProxyObj){const e=await this.hproseClient.getProxy();this.hpProxyObj=e}return this.hpProxyObj||ce.emit(Zn.HproseServiceErrorEvent,"HproseProxy对象为空,无法调用Hprose方法!"),this.hpProxyObj}async hproseInvoke(e,t,n){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");return await this.hproseClient.invoke(e,t,n)}async hproseInvokeContext(e,t,...n){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");const r=gr();return r&&(t||(t=new W({httpRequestHeaders:{token:r.token}}))),await this.hproseClient.invoke(e,n,t)}async hproseInvokeEncode(e){const t=new U(e).toBytes(),n=await(this.hproseClient.client?.request(t,this.defaultContext));return n?this.hproseClient.client?.codec.decode(n,this.defaultContext):n}encodeRequest(e,...t){const n=(this.hproseClient.client?.codec)?.encode(e,t,this.defaultContext);return U.toString(n)}},br=ie((e,t)=>{!function(n){if("object"==typeof e)t.exports=n();else if("function"==typeof define&&define.amd)define(n);else{var r;try{r=window}catch(e){r=self}r.SparkMD5=n()}}(function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function a(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function u(){this.reset()}return a(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,s,a,c=this.byteLength,l=t(n,c),u=c;return r!==e&&(u=t(r,c)),l>u?new ArrayBuffer(0):(i=u-l,o=new ArrayBuffer(i),s=new Uint8Array(o),a=new Uint8Array(this,l,i),s.set(a),o)}}(),u.prototype.append=function(e){return this.appendBinary(c(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=l(n)),this.reset(),n},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var r,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,e),s=0;s<16;s+=1)e[s]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},u.hash=function(e,t){return u.hashBinary(c(e),t)},u.hashBinary=function(e,t){var n=a(o(e));return t?l(n):n},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,r,o,s,a=(r=this._buff.buffer,o=e,(s=new Uint8Array(r.byteLength+o.byteLength)).set(new Uint8Array(r)),s.set(new Uint8Array(o),r.byteLength),s),c=a.length;for(this._length+=e.byteLength,t=64;t<=c;t+=64)n(this._hash,i(a.subarray(t-64,t)));return this._buff=t-64<c?new Uint8Array(a.buffer.slice(t-64)):new Uint8Array(0),this},u.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=l(n)),this.reset(),n},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e){var t,n=e.length,r=new ArrayBuffer(n),i=new Uint8Array(r);for(t=0;t<n;t+=1)i[t]=e.charCodeAt(t);return i}(e.buff),u.prototype.setState.call(this,e)},u.ArrayBuffer.prototype.destroy=u.prototype.destroy,u.ArrayBuffer.prototype._finish=u.prototype._finish,u.ArrayBuffer.hash=function(e,t){var r=a(function(e){var t,r,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,i(e.subarray(t-64,t)));for(r=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}(new Uint8Array(e)));return t?l(r):r},u})}),Sr=oe(br(),1),xr=Object.prototype.toString;function Er(e,t){return xr.call(e)===`[object ${t}]`}function Cr(e){return Er(e,"Function")}var kr=e=>void 0!==e,Tr=e=>!kr(e);function Ar(e){return null===e}function Mr(e){return Tr(e)&&Ar(e)}function zr(e){return Tr(e)||Ar(e)}var Or=e=>null!=e&&null!==e&&Er(e,"Object");function Dr(e){return Er(e,"Date")}function Lr(e){return Er(e,"Number")}function _r(e){return Er(e,"AsyncFunction")}function Rr(e){return Er(e,"Promise")&&Or(e)&&Cr(e.then)&&Cr(e.catch)}function Ir(e){return Er(e,"String")}function Pr(e){return!0===e||!1===e||Er(e,"Boolean")}function Nr(e){return e&&Array.isArray(e)}var Br=()=>"undefined"!=typeof window,jr=e=>"undefined"!=typeof window&&Er(e,"Window"),Fr=e=>xr.call(e).startsWith("[object HTML")&&!!e.tagName,Wr="undefined"==typeof window;function Ur(e){return e&&["IMAGE","IMG"].includes(e.tagName)}function $r(e){return null==e||(Ir(e)||Nr(e)?0===e.length:!!Or(e)&&"{}"===JSON.stringify(e))}function Hr(e){return Er(e,"Error")}function qr(e){return Er(e,"WeakSet")}function Vr(e){return Er(e,"WeakMap")}function Gr(e){return Er(e,"Symbol")}function Xr(e){return Er(e,"Map")}var Yr=e=>/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(e);function Zr(e){return/^\s*[{[]/.test(String(e))}function Kr(e){return e.includes("<kml ")&&e.includes('xmlns="http://www.opengis.net/kml/')}function Jr(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}var Qr=[],ei=void 0,ti=class e{static addHandler(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}static removeHandler(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):delete e["on"+t]}static windowResizeHandler(t){e.addHandler(window,"resize",t)}static offWindowResizeHandler(t){e.removeHandler(window,"resize",t)}static fullscreenEnabled(){const e=globalThis.document;return document.fullscreenEnabled||window.fullScreen||e.mozFullscreenEnabled||e.webkitIsFullScreen}static fullScreen(e,t){if(t){const e=globalThis.document;let t=globalThis.document.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitCancelFullScreen;if(void 0!==t&&t)t.call(globalThis.document);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}else{let t=e;t||(t=globalThis.document.documentElement);let n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(void 0!==n&&n)n.call(t);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}}static requestFullScreen(e=globalThis.document.documentElement){let t=e||globalThis.document.documentElement;var n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var r=new window.ActiveXObject("WScript.Shell");null!==r&&r.SendKeys("{F11}")}}static exitFullScreen(){const e=globalThis.document;var t=document.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.webkitExitFullscreen;if(t)t.call(document);else if(void 0!==window.ActiveXObject){var n=new window.ActiveXObject("WScript.Shell");null!==n&&n.SendKeys("{F11}")}}static fullScreenElement(){return globalThis.document.fullscreenElement||globalThis.document.webkitFullscreenElement||globalThis.document.mozFullscreenElement||globalThis.document.msFullscreenElement}static isFullScreen(){return!!e.fullScreenElement()}static onFullScreenChanged(t){let n;"onfullscreenchange"in globalThis.document?n="fullscreenchange":"onwebkitfullscreenchange"in globalThis.document?n="webkitfullscreenchange":"onmozfullscreenchange"in globalThis.document&&(n="mozfullscreenchange"),n?document.addEventListener(n,function(){t(e.isFullScreen())}):document.addEventListener("MSFullscreenChange",function(){t(e.isFullScreen())})}static stringifyCircularHandler(e,t){if("object"==typeof t&&null!==t){if(-1!==Qr.indexOf(t))return;Qr.push(t)}return t}static jsonStringify(t){if(!t)return"";const n=JSON.stringify(t,e.stringifyCircularHandler);return Qr.length=0,n}static jsonParse(t){const n=e.jsonStringify(t);if(n.length>1)return JSON.parse(n)}static getObjectURL(e){let t;const n=window;return null!=n.createObjcectURL?t=n.createOjcectURL(e):null!=globalThis.URL?t=globalThis.URL.createObjectURL(e):null!=globalThis.webkitURL&&(t=globalThis.webkitURL.createObjectURL(e)),t}static getFileShortMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e,o=new Sr.default.ArrayBuffer,s=new FileReader;s.onload=function(e){o.append(e.target?.result),t({isOK:!0,data:o.end(!1)})},s.onerror=function(){const e="计算文件简单摘要错误!";console.warn(e),t({isOK:!1,data:e})},function(){const e=2097152>=i.size?i.size:2097152;s.readAsArrayBuffer(r.call(i,0,e))}()}static getFileMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e,o=2097152,s=Math.ceil(i.size/o);let a=0;const c=new Sr.default.ArrayBuffer,l=new FileReader;function u(){const e=a*o,t=e+o>=i.size?i.size:e+o;l.readAsArrayBuffer(r.call(i,e,t))}l.onload=function(e){c.append(e.target?.result),a++,a<s?u():t({isOK:!0,data:c.end(!1)})},l.onerror=function(){const e=`${i.name}:计算文件简单摘要错误!`;console.warn(e),t({isOK:!1,data:e})},u()}static MD5(e,t=!1){return Sr.default.hash(e,t)}static copyTextByCommand(e){return new Promise((t,n)=>{const r=document.createElement("input");r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),r.remove(),t(!0)})}static copyText=t=>navigator.clipboard?navigator.clipboard.writeText(t).then(function(){return!0},function(e){return!1}):e.copyTextByCommand(t);static copyElementTextByCommand(e){const t=document.createRange();t.selectNode(document.getElementById(e));const n=globalThis.getSelection();n.rangeCount>0&&n.removeAllRanges(),n.addRange(t);try{return document.execCommand("copy"),n.removeRange(t),!0}catch(e){return n.removeRange(t),console.error("Command复制文本错误",e),!1}}static copyElementText(t){if(!navigator.clipboard)return e.copyElementTextByCommand(t);const n=document.createRange();n.selectNode(document.getElementById(t));const r=globalThis.getSelection();return r.rangeCount>0&&r.removeAllRanges(),r.addRange(n),navigator.clipboard.writeText(r).then(function(){return r.removeRange(n),!0},function(e){return r.removeRange(n),console.error("Clipboard复制文本错误",e),!1})}static setGrayMode(t){e.toggleClass(t,"grayMode",document.documentElement)}static toggleClass(e,t,n){const r=n||document.body;let{className:i}=r;i=i.replace(t,""),r.className=e?`${i} ${t} `:i}static setCssVar(e,t,n=document.documentElement){n.style.setProperty(e,t)}static dispatchWindowResize(){const e=new Event("resize");globalThis.dispatchEvent(e)}static dispatchElementEvent(e,t="click",n){let r;if(r=Ir(e)?document.getElementById(e):e,r){const e=new Event(t,{bubbles:!0,cancelable:!0});n&&r.addEventListener("ev",e=>{n(e)},!1),r.dispatchEvent(e)}}static getRandomNum(e,t){var n=t-e;return e+Math.round(Math.random()*n)}static merge(e={},t={}){let n,r,i,o;for(e||(e={}),r=0,i=t.length;r<i;r++)for(n in o=t[r],o)e[n]=o[n];return e}static setOptions(e,t){e.hasOwnProperty("options")||(e.options=e.options?Object.create(e.options):{});for(let n in t)e.options[n]=t[n];return e.options}static formatNum(e,t){let n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}static trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}static splitWords(e){return this.trim(e).split(/\s+/)}static emptyImageUrl(){return"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}static debounce(e,t){let n=null;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}static throttle(e,t){let n=0;return(...r)=>{const i=Date.now();i-n>=t&&(e.apply(this,r),n=i)}}static dataURLtoBlob(e){let t=e.split(",");if(!t||0===t.length)return;let n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=r.length,o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}static getElement(e){return"string"==typeof e?document.getElementById(e):e}static getStyle(e,t){let n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){let r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}static create(e,t,n){let r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}static removeElement(e){let t=e.parentNode;t&&t.removeChild(e)}static emptyElement(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static hasClass(e,t){if(void 0!==e.classList)return e.classList.contains(t);let n=this.getClass(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}static addClass(e,t){if(void 0!==e.classList){let n=this.splitWords(t);for(let t=0,r=n.length;t<r;t++)e.classList.add(n[t])}else if(!this.hasClass(e,t)){let n=this.getClass(e);this.setClass(e,(n?n+" ":"")+t)}}static removeClass(e,t){void 0!==e.classList?e.classList.remove(t):this.setClass(e,this.trim((" "+this.getClass(e)+" ").replace(" "+t+" "," ")))}static setClass(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}static getClass(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}static createSvgElement(e,t,n,r){let i=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");i.setAttribute("class","svg-path"),i.setAttribute("width",e),i.setAttribute("height",t),i.setAttribute("viewBox",`0 0 ${e} ${t}`);let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",n),i.appendChild(o),r&&r.appendChild(i),i}static parseDom(e,t=!0,n=""){t=t??!1;let r=document.createElement("div");return r.className=n||"",r.innerHTML=e,t?r:r.childNodes}static createVideoHTML(e,t,n){let r=this.create("video",t,n),i=this.create("source","",r);i.setAttribute("src",e),i.setAttribute("type","video/map4");let o=this.create("source","",r);return o.setAttribute("src",e),o.setAttribute("type","video/quicktime"),r}static readFilePromise(e,t="ArrayBuffer",n="UTF-8"){return new Promise((r,i)=>{const o=new FileReader;switch(t){case"ArrayBuffer":o.readAsArrayBuffer(e);break;case"Text":o.readAsText(e,n);break;case"BinaryString":o.readAsBinaryString(e);break;case"DataURL":case"FileBytes":o.readAsDataURL(e)}o.onload=function(){if(o.result)if("FileBytes"===t){const e=o.result,t=e.indexOf("64,");r(e.substring(t+3))}else r(o.result);else i(o)},o.onerror=function(){i(o)}})}static readFileBytes(e){return this.readFilePromise(e,"FileBytes")}static promisify(e,...t){return function(){return new Promise((n,r)=>{t.push(function(e,t){e?r(e):n(t)}),e.apply(this,t)})}}static wait(e){return new Promise(t=>setTimeout(t,e))}static blockEvent(e){e.preventDefault(),e.stopPropagation()}static bindDropFileHanlder(t,n){if(!t)throw Error("传入Element对象不能为空!");let r;if(Ir(t)){let e=document.getElementById(t);if(e)r=e;else{const n=document.getElementsByClassName(t);if(!n||0==n.length)throw Error("未找到对应id或类名的HtmlElement对象!");e=n[0],r=e}}else{if(!Fr(t))throw Error("ele参数只能为string 或 Element对象!");r=t}r&&(r.addEventListener("dragenter",this.blockEvent,!1),r.addEventListener("dragover",this.blockEvent,!1),r.addEventListener("drop",function(t){e.blockEvent(t),n(t.dataTransfer.files)},!1))}static getInputElement(){var e=document.activeElement;return!e||"INPUT"!=e.tagName&&"TEXTAREA"!=e.tagName&&"true"!=e.contentEditable?null:e}static guessPasteTextToFileName(e,t){let n,r=t;return Ir(e)?r=(Zr(e)?"json":Kr(e)&&"kml")||"text":(Or(e)&&e.type||Nr(e))&&(r="json"),"text"==r?n="pasted.txt":"kml"==r?n="pasted.kml":"json"==r&&(n="pasted.json"),n}static pasteEventHanlder(e,t){const n=this;if(n.getInputElement())return;n.blockEvent(e);const r=e.clipboardData,i=Array.from(r.types||[]).join(","),o=Array.from(r.items||[]);let s;if(i.includes("text/plain")){const e=r.getData("text/plain");if(":"===e[1])return t(e);if(Yr(e))return t(e);const i=n.guessPasteTextToFileName(e);if(!i||"pasted.txt"===i)return t(e);{const t=new Blob([e]);s=[new File([t],i)]}}else s=o.map(function(e){return"file"==e.kind?e.getAsFile():null});s=s.filter(Boolean),s.length?t(s):t(void 0)}static onPasteHandler(t,n=document){const r=this;ei=e=>{r.pasteEventHanlder(e,t)},e.addHandler(n,"paste",ei)}static offPasteHandler(t=document){ei&&e.removeHandler(t,"paste",ei)}static loadScript(e){var t=document.createElement("script");t.type="text/javascript",t.src=e,document.head.appendChild(t)}static loadJsCode(e){var t=document.createElement("script");t.type="text/javascript";try{t.appendChild(document.createTextNode(e))}catch(n){t.text=e}document.body.appendChild(t)}static deepCopy(e){return structuredClone(e)}static deepClone=this.deepCopy;static deepClone2(e,t=new WeakMap){if(!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);const n=Array.isArray(e)?[]:{};t.set(e,n);for(let r in e)n[r]=this.deepClone2(e[r],t);return n}},ni=new Map,ri=function(e,t,n){ir.Config?.ServiceURL&&ir.Config?.ServiceURL.DefaultHproseAPI&&(ir.Config.DefaultHproseAPI=ir.Config?.ServiceURL.DefaultHproseAPI,ir.DefaultProxyClient=new wr(ir.Config?.ServiceURL.DefaultHproseAPI));const r=ir.Config.UI.GrayMode;r&&ti.setGrayMode(r);const i=new Kn(e,ir.EventBus);ir.Message=i,ir.SystemID=t,ir.SystemGroup=n,ir.EventBus.on(Zn.HproseServiceErrorEvent,e=>{const t=`当前后台业务服务不可用!${e}`;console.warn("Hprose请求错误",t)}),ir.EventBus.on(Zn.WebAPIErrorEvent,e=>{const t=`WebAPI后台服务不可用!${e}`;console.warn("WebAPI请求错误",t)}),ir.EventBus.on(Zn.AxiosRequestErrorEvent,e=>{const t=`Http请求'${e.code}'错误: ${e.message}`;console.warn("Http请求错误",t)}),ir.EventBus.on(Zn.CommonWarnEvent,e=>{i.warn(e)})};function ii(e){if(e&&cr.isNotEmpty(e)){if(ni.has(e))return ni.get(e);{const t=new wr(e);return ni.set(e,t),t}}}function oi(e){const t=ii(e);return t&&(ir.DefaultProxyClient=t),t}var si=class{layoutState;layoutMap=new Map;preConditionMap=new Map;widgetsLoadedSet=new Set;widgetConfigDiction=new Map;_LayoutID;_mapItemRefs;constructor(e,t,n,r){if(this.layoutState=e,this._LayoutID=t,this._mapItemRefs=r,ir.RightWidgetConfigMap){const e=ir.RightWidgetConfigMap.get(t);e&&e.forEach(e=>{if(this.widgetConfigDiction.set(e.id,e),e.afterid)if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}else{const e=ir.WidgetConfigList??n;e&&e.forEach(e=>{if(e.layoutID===t&&(this.widgetConfigDiction.set(e.id,e),e.afterid))if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}}getLayoutID(){return this._LayoutID}getWidgetConfigMap(){return this.widgetConfigDiction}preloadWidgets(){if(this.widgetConfigDiction.size>0)for(const[e,t]of this.widgetConfigDiction)t.preload&&!t.afterid&&this._loadWidget(t)}async loadWidget(e){if(!e)return;let t;if(Or(e)?t=e:Ir(e)&&(t=this.widgetConfigDiction.get(e)),t){if(t.afterid){if(this.isWidgetLoaded(t.afterid))return this._loadWidget(t);{const n=this,r=t.afterid,i=t;function o(e){e.layoutID===n._LayoutID&&e.widgetID===r&&(n._loadWidget(i),ir.EventBus.off(Zn.WidgetLoadedEvent,o))}return ir.EventBus.on(Zn.WidgetLoadedEvent,o),this.loadWidget(t.afterid)}}return this._loadWidget(t)}}loadOtherDependenceWidgets(e){this.preConditionMap.has(e)&&this.preConditionMap.get(e)?.forEach(e=>{e.preload&&this._loadWidget(e)})}_loadWidget(e){if(!this.widgetsLoadedSet.has(e.id))return e.component?e.component().then(t=>{if(t.default){const n=p(t.default);n.widgetConfig=e,e.instance=n,this.getContainerComponents(e.container).set(e.id,n),this.widgetsLoadedSet.add(e.id),g().then(()=>{ir.EventBus.emit(Zn.WidgetLoadedEvent,{layoutID:this._LayoutID,widgetID:e.id}),this.loadOtherDependenceWidgets(e.id)})}}).catch(t=>{ir.Logger().error("加载Widget失败:",e.id,t),ir.EventBus.emit(Zn.WidgetLoadedErrorEvent,e)}):void 0;this.changeWidgetVisible(e.id,!0)}hasDependentWidgets(e){let t=!1;if(this.preConditionMap.has(e)){const n=this.preConditionMap.get(e);if(n)for(const e of n)if(this.isWidgetLoaded(e.id)){t=!0;break}}return t}unloadWidget(e){if(!e)return;if(!this.isWidgetLoaded(e))return;const t=this.getWigetItem(e);if(t){if(this.preConditionMap.has(e)){const t=this.preConditionMap.get(e);if(t)for(const e of t)this.unloadWidget(e.id)}this.getContainerComponents(t.container).delete(e),this.widgetsLoadedSet.delete(e),this._mapItemRefs&&(this.changeWidgetVisible(e,!1),this._mapItemRefs.delete(e)),ir.EventBus.emit(Zn.WidgetUnLoadedEvent,{layoutID:this._LayoutID,widgetID:e})}}isWidgetLoaded(e){return this.widgetsLoadedSet.has(e)}splitTwoContainer(e=!1){const t=this.layoutState.centerMainContainer.value,n=this.layoutState.centerBackContainer.value;e?(t&&(t.style.left="0",t.style.width="100%"),n&&(n.style.width="100%")):(t&&(t.style.left="50%",t.style.width="50%"),n&&(n.style.width="50%"))}getLayoutContainer(e){switch(e){case rr.top:return this.layoutState.topContainer.value;case rr.bottom:return this.layoutState.bottomContainer.value;case rr.left:return this.layoutState.leftContainer.value;case rr.right:return this.layoutState.rightContainer.value;case rr.centerBack:return this.layoutState.centerBackContainer.value;case rr.centerMain:return this.layoutState.centerMainContainer.value;case rr.centerFront:return this.layoutState.centerFrontContainer.value}}changeContainerVisible(e,t=!1){const n=this.getLayoutContainer(e);n&&(n.style.visibility=t?"visible":"hidden")}changeWidgetVisible(e,t=!1){const n=this.getWidgetComponent(e);n&&n.changeVisible&&n.changeVisible(t)}isWidgetVisible(e){const t=this.getWidgetComponent(e);return!!t&&(!t.isShow||t.isShow.value)}getWidgetComponent(e){if(this.widgetsLoadedSet.has(e)&&this._mapItemRefs)return this._mapItemRefs.get(e)}getWigetItem(e){return this.widgetConfigDiction.get(e)}getIWigetConfig(e){return this.getWigetItem(e)}getGroupWigetItems(e){const t=[];for(const[n,r]of this.widgetConfigDiction)r.group===e&&t.push(r);return t}getContainerComponents(e){if(this.layoutMap.has(e))return this.layoutMap.get(e);{const t=z(new Map);return this.layoutMap.set(e,t),t}}getWidgetLoadedIDList(){const e=[];return this.widgetsLoadedSet.forEach(t=>{e.push(t)}),e}unloadAllWidgets(e){const t=[];this.widgetsLoadedSet.forEach(n=>{e&&e.length>0?e.findIndex(e=>e===n)<0&&t.push(n):t.push(n)}),t.forEach(e=>this.unloadWidget(e))}unloadWidgets(e){e&&e.length>0&&e.forEach(e=>{this.unloadWidget(e)})}static getLayoutManager(e,t){if(t){const n=t.find(t=>t.id===e);if(n&&n.layoutID)return ir.LayoutMap.get(n.layoutID)}}dispose(){this.unloadAllWidgets(),this.widgetConfigDiction.clear(),this.widgetsLoadedSet.clear(),this._LayoutID?ir.LayoutMap.delete(this._LayoutID):(ir.LayoutMap.delete(""),ir.LayoutManager=void 0)}},ai=["id"],ci=or(d({__name:"layout",props:{widgetConfig:{type:Array,required:!1,default:void 0},layoutID:{type:String,default:"layoutDefault"},layoutStyle:{type:Object},noLeft:{type:Boolean,default:!1},noRight:{type:Boolean,default:!1},noBottom:{type:Boolean,default:!1},noTop:{type:Boolean,default:!1},noFront:{type:Boolean,default:!1},noBack:{type:Boolean,default:!1},noMain:{type:Boolean,default:!1}},emits:["containerLoaded"],setup(t,{emit:n}){const r=t,i=n,u=r.layoutID,d=_("topContainer"),h=_("centerBackContainer"),p=_("centerMainContainer"),g=_("centerFrontContainer"),v=_("bottomContainer"),w=_("leftContainer"),E=_("rightContainer"),C=o(()=>!r.noTop),A=o(()=>!r.noMain),z=o(()=>!r.noBack),O=o(()=>!r.noFront),D=o(()=>!r.noLeft),L=o(()=>!r.noRight),R=o(()=>!r.noBottom),I=new Map,P=(e,t)=>{e&&I.set(t,e)},N=new si({topContainer:d,centerBackContainer:h,centerMainContainer:p,centerFrontContainer:g,bottomContainer:v,leftContainer:w,rightContainer:E},u,r.widgetConfig,I);function B(e){return N.getContainerComponents(e)}const j=void 0,F=o(()=>C?B(rr.top):j),W=o(()=>A?B(rr.centerMain):j),U=o(()=>z?B(rr.centerBack):j),$=o(()=>O?B(rr.centerFront):j),H=o(()=>D?B(rr.left):j),q=o(()=>L?B(rr.right):j),V=o(()=>R?B(rr.bottom):j);function G(e){const t={...e.widgetConfig};return delete t.component,delete t.instance,delete t.preload,delete t.container,t.afterid&&delete t.afterid,t}const X=o(()=>r.layoutStyle);return N&&(u?ir.LayoutMap.set(u,N):(ir.LayoutManager=N,ir.LayoutMap.set("",N)),i("containerLoaded",{layoutID:u,layoutManager:N}),N.preloadWidgets()),b(()=>{N&&ir.EventBus.emit(Zn.LayoutContainerLoaded,{layoutID:u,layoutManager:N})}),S(()=>{N&&N.dispose()}),(t,n)=>(x(),c("div",{id:r.layoutID,class:"layoutContainer",style:y(X.value)},[C.value?(x(),c("div",{key:0,ref_key:"topContainer",ref:d,class:"topContainer"},[T(t.$slots,"top",{},void 0,!0),(x(!0),c(e,null,k(F.value,([e,t])=>(x(),s(M(t),m({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},G(t)),null,16))),128))],512)):a("",!0),l("div",null,[A.value?(x(),c("div",{key:0,ref_key:"centerMainContainer",ref:p,class:"centerdiv mainContainer"},[T(t.$slots,"main",{},()=>[f(ar)],!0),(x(!0),c(e,null,k(W.value,([e,t])=>(x(),s(M(t),m({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},G(t)),null,16))),128))],512)):a("",!0),z.value?(x(),c("div",{key:1,ref_key:"centerBackContainer",ref:h,class:"centerdiv backContainer"},[T(t.$slots,"back",{},void 0,!0),(x(!0),c(e,null,k(U.value,([e,t])=>(x(),s(M(t),m({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},G(t)),null,16))),128))],512)):a("",!0),O.value?(x(),c("div",{key:2,ref_key:"centerFrontContainer",ref:g,class:"centerdiv centerFrontContainer"},[T(t.$slots,"front",{},void 0,!0),(x(!0),c(e,null,k($.value,([e,t])=>(x(),s(M(t),m({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},G(t)),null,16))),128))],512)):a("",!0),D.value?(x(),c("div",{key:3,ref_key:"leftContainer",ref:w,class:"leftContainer"},[T(t.$slots,"left",{},void 0,!0),(x(!0),c(e,null,k(H.value,([e,t])=>(x(),s(M(t),m({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},G(t)),null,16))),128))],512)):a("",!0),L.value?(x(),c("div",{key:4,ref_key:"rightContainer",ref:E,class:"rightContainer"},[T(t.$slots,"right",{},void 0,!0),(x(!0),c(e,null,k(q.value,([e,t])=>(x(),s(M(t),m({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},G(t)),null,16))),128))],512)):a("",!0)]),R.value?(x(),c("div",{key:1,ref_key:"bottomContainer",ref:v,class:"bottomContainer"},[T(t.$slots,"bottom",{},void 0,!0),(x(!0),c(e,null,k(V.value,([e,t])=>(x(),s(M(t),m({ref_for:!0,ref:t=>P(t,e),key:e},{ref_for:!0},G(t)),null,16))),128))],512)):a("",!0),T(t.$slots,"default",{},void 0,!0)],12,ai))}}),[["__scopeId","data-v-329ca633"]]),li=d({name:"RouterTransition",__name:"RouterTransitionAnimate",props:{enterActive:{default:"animated fadeIn"},leaveActive:{default:"animated fadeOut"}},setup:e=>(n,r)=>{const o=A("router-view");return x(),s(sr,null,{default:P(()=>[f(o,null,{default:P(({Component:n,route:r})=>[f(i,{appear:"","enter-active-class":e.enterActive,"leave-active-class":e.leaveActive},{default:P(()=>[(x(),s(t,null,[r.meta.keepAlive?(x(),s(M(n),{key:r.name})):a("",!0)],1024)),r.meta.keepAlive?a("",!0):(x(),s(M(n),{key:r.name}))]),_:2},1032,["enter-active-class","leave-active-class"])]),_:1})]),_:1})}});function ui(){let e=[];const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var n=0;n<36;n++){const r=Math.floor(16*Math.random());e[n]=t.substring(r,r+1)}e[14]="4";const r=3&Number(e[19])|8;return e[19]=t.substring(r,r+1),e[8]=e[13]=e[18]=e[23]="-",e.join("").toLowerCase()}function fi(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})}var di={},hi=Uint8Array,pi=Uint16Array,mi=Int32Array,gi=new hi([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),vi=new hi([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),yi=new hi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wi=function(e,t){for(var n=new pi(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new mi(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},bi=wi(gi,2),Si=bi.b,xi=bi.r;Si[28]=258,xi[258]=28;for(var Ei=wi(vi,0),Ci=Ei.b,ki=Ei.r,Ti=new pi(32768),Ai=0;Ai<32768;++Ai){var Mi=(43690&Ai)>>1|(21845&Ai)<<1;Mi=(61680&(Mi=(52428&Mi)>>2|(13107&Mi)<<2))>>4|(3855&Mi)<<4,Ti[Ai]=((65280&Mi)>>8|(255&Mi)<<8)>>1}var zi=function(e,t,n){for(var r=e.length,i=0,o=new pi(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new pi(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new pi(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],f=a[e[i]-1]++<<u,d=f|(1<<u)-1;f<=d;++f)s[Ti[f]>>c]=l}else for(s=new pi(r),i=0;i<r;++i)e[i]&&(s[i]=Ti[a[e[i]-1]++]>>15-e[i]);return s},Oi=new hi(288);for(Ai=0;Ai<144;++Ai)Oi[Ai]=8;for(Ai=144;Ai<256;++Ai)Oi[Ai]=9;for(Ai=256;Ai<280;++Ai)Oi[Ai]=7;for(Ai=280;Ai<288;++Ai)Oi[Ai]=8;var Di=new hi(32);for(Ai=0;Ai<32;++Ai)Di[Ai]=5;var Li=zi(Oi,9,0),_i=zi(Oi,9,1),Ri=zi(Di,5,0),Ii=zi(Di,5,1),Pi=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Ni=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},Bi=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},ji=function(e){return(e+7)/8|0},Fi=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new hi(e.subarray(t,n))},Wi=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ui=function(e,t,n){var r=new Error(t||Wi[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Ui),!n)throw r;return r},$i=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new hi(0);var s=!n,a=s||2!=t.i,c=t.i;s&&(n=new hi(3*i));var l=function(e){var t=n.length;if(e>t){var r=new hi(Math.max(2*t,e));r.set(n),n=r}},u=t.f||0,f=t.p||0,d=t.b||0,h=t.l,p=t.d,m=t.m,g=t.n,v=8*i;do{if(!h){u=Ni(e,f,1);var y=Ni(e,f+1,3);if(f+=3,!y){var w=e[(O=ji(f)+4)-4]|e[O-3]<<8,b=O+w;if(b>i){c&&Ui(0);break}a&&l(d+w),n.set(e.subarray(O,b),d),t.b=d+=w,t.p=f=8*b,t.f=u;continue}if(1==y)h=_i,p=Ii,m=9,g=5;else if(2==y){var S=Ni(e,f,31)+257,x=Ni(e,f+10,15)+4,E=S+Ni(e,f+5,31)+1;f+=14;for(var C=new hi(E),k=new hi(19),T=0;T<x;++T)k[yi[T]]=Ni(e,f+3*T,7);f+=3*x;var A=Pi(k),M=(1<<A)-1,z=zi(k,A,1);for(T=0;T<E;){var O,D=z[Ni(e,f,M)];if(f+=15&D,(O=D>>4)<16)C[T++]=O;else{var L=0,_=0;for(16==O?(_=3+Ni(e,f,3),f+=2,L=C[T-1]):17==O?(_=3+Ni(e,f,7),f+=3):18==O&&(_=11+Ni(e,f,127),f+=7);_--;)C[T++]=L}}var R=C.subarray(0,S),I=C.subarray(S);m=Pi(R),g=Pi(I),h=zi(R,m,1),p=zi(I,g,1)}else Ui(1);if(f>v){c&&Ui(0);break}}a&&l(d+131072);for(var P=(1<<m)-1,N=(1<<g)-1,B=f;;B=f){var j=(L=h[Bi(e,f)&P])>>4;if((f+=15&L)>v){c&&Ui(0);break}if(L||Ui(2),j<256)n[d++]=j;else{if(256==j){B=f,h=null;break}var F=j-254;if(j>264){var W=gi[T=j-257];F=Ni(e,f,(1<<W)-1)+Si[T],f+=W}var U=p[Bi(e,f)&N],$=U>>4;if(U||Ui(3),f+=15&U,I=Ci[$],$>3&&(W=vi[$],I+=Bi(e,f)&(1<<W)-1,f+=W),f>v){c&&Ui(0);break}a&&l(d+131072);var H=d+F;if(d<I){var q=o-I,V=Math.min(I,H);for(q+d<0&&Ui(3);d<V;++d)n[d]=r[q+d]}for(;d<H;++d)n[d]=n[d-I]}}t.l=h,t.p=B,t.b=d,t.f=u,h&&(u=1,t.m=m,t.d=p,t.n=g)}while(!u);return d!=n.length&&s?Fi(n,0,d):n.subarray(0,d)},Hi=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},qi=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Vi=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return{t:Qi,l:0};if(1==i){var s=new hi(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,f=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=i-1;)a=n[n[l].f<n[f].f?l++:f++],c=n[l!=u&&n[l].f<n[f].f?l++:f++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var d=o[0].s;for(r=1;r<i;++r)o[r].s>d&&(d=o[r].s);var h=new pi(d+1),p=Gi(n[u-1],h,0);if(p>t){r=0;var m=0,g=p-t,v=1<<g;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});r<i;++r){var y=o[r].s;if(!(h[y]>t))break;m+=v-(1<<p-h[y]),h[y]=t}for(m>>=g;m>0;){var w=o[r].s;h[w]<t?m-=1<<t-h[w]++-1:++r}for(;r>=0&&m;--r){var b=o[r].s;h[b]==t&&(--h[b],++m)}p=t}return{t:new hi(h),l:p}},Gi=function(e,t,n){return-1==e.s?Math.max(Gi(e.l,t,n+1),Gi(e.r,t,n+1)):t[e.s]=n},Xi=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new pi(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return{c:n.subarray(0,r),n:t}},Yi=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Zi=function(e,t,n){var r=n.length,i=ji(t+2);e[i]=255&r,e[i+1]=r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},Ki=function(e,t,n,r,i,o,s,a,c,l,u){Hi(t,u++,n),++i[256];for(var f=Vi(i,15),d=f.t,h=f.l,p=Vi(o,15),m=p.t,g=p.l,v=Xi(d),y=v.c,w=v.n,b=Xi(m),S=b.c,x=b.n,E=new pi(19),C=0;C<y.length;++C)++E[31&y[C]];for(C=0;C<S.length;++C)++E[31&S[C]];for(var k=Vi(E,7),T=k.t,A=k.l,M=19;M>4&&!T[yi[M-1]];--M);var z,O,D,L,_=l+5<<3,R=Yi(i,Oi)+Yi(o,Di)+s,I=Yi(i,d)+Yi(o,m)+s+14+3*M+Yi(E,T)+2*E[16]+3*E[17]+7*E[18];if(c>=0&&_<=R&&_<=I)return Zi(t,u,e.subarray(c,c+l));if(Hi(t,u,1+(I<R)),u+=2,I<R){z=zi(d,h,0),O=d,D=zi(m,g,0),L=m;var P=zi(T,A,0);for(Hi(t,u,w-257),Hi(t,u+5,x-1),Hi(t,u+10,M-4),u+=14,C=0;C<M;++C)Hi(t,u+3*C,T[yi[C]]);u+=3*M;for(var N=[y,S],B=0;B<2;++B){var j=N[B];for(C=0;C<j.length;++C){var F=31&j[C];Hi(t,u,P[F]),u+=T[F],F>15&&(Hi(t,u,j[C]>>5&127),u+=j[C]>>12)}}}else z=Li,O=Oi,D=Ri,L=Di;for(C=0;C<a;++C){var W=r[C];if(W>255){qi(t,u,z[257+(F=W>>18&31)]),u+=O[F+257],F>7&&(Hi(t,u,W>>23&31),u+=gi[F]);var U=31&W;qi(t,u,D[U]),u+=L[U],U>3&&(qi(t,u,W>>5&8191),u+=vi[U])}else qi(t,u,z[W]),u+=O[W]}return qi(t,u,z[256]),u+O[256]},Ji=new mi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Qi=new hi(0),eo=function(e,t,n,r,i,o){var s=o.z||e.length,a=new hi(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),l=o.l,u=7&(o.r||0);if(t){u&&(c[0]=o.r>>3);for(var f=Ji[t-1],d=f>>13,h=8191&f,p=(1<<n)-1,m=o.p||new pi(32768),g=o.h||new pi(p+1),v=Math.ceil(n/3),y=2*v,w=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&p},b=new mi(25e3),S=new pi(288),x=new pi(32),E=0,C=0,k=o.i||0,T=0,A=o.w||0,M=0;k+2<s;++k){var z=w(k),O=32767&k,D=g[z];if(m[O]=D,g[z]=O,A<=k){var L=s-k;if((E>7e3||T>24576)&&(L>423||!l)){u=Ki(e,c,0,b,S,x,C,T,M,k-M,u),T=E=C=0,M=k;for(var _=0;_<286;++_)S[_]=0;for(_=0;_<30;++_)x[_]=0}var R=2,I=0,P=h,N=O-D&32767;if(L>2&&z==w(k-N))for(var B=Math.min(d,L)-1,j=Math.min(32767,k),F=Math.min(258,L);N<=j&&--P&&O!=D;){if(e[k+R]==e[k+R-N]){for(var W=0;W<F&&e[k+W]==e[k+W-N];++W);if(W>R){if(R=W,I=N,W>B)break;var U=Math.min(N,W-2),$=0;for(_=0;_<U;++_){var H=k-N+_&32767,q=H-m[H]&32767;q>$&&($=q,D=H)}}}N+=(O=D)-(D=m[O])&32767}if(I){b[T++]=268435456|xi[R]<<18|ki[I];var V=31&xi[R],G=31&ki[I];C+=gi[V]+vi[G],++S[257+V],++x[G],A=k+R,++E}else b[T++]=e[k],++S[e[k]]}}for(k=Math.max(k,A);k<s;++k)b[T++]=e[k],++S[e[k]];u=Ki(e,c,l,b,S,x,C,T,M,k-M,u),l||(o.r=7&u|c[u/8|0]<<3,u-=7,o.h=g,o.p=m,o.i=k,o.w=A)}else{for(k=o.w||0;k<s+l;k+=65535){var X=k+65535;X>=s&&(c[u/8|0]=l,X=s),u=Zi(c,u+1,e.subarray(k,X))}o.i=s}return Fi(a,0,r+ji(u)+i)},to=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),no=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=to[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}},ro=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new hi(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return eo(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,i)},io=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},oo=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<r.length;++s){var a=r[s],c=o[s];if("function"==typeof a){t+=";"+c+"=";var l=a.toString();if(a.prototype)if(-1!=l.indexOf("[native code]")){var u=l.indexOf(" ",8)+1;t+=l.slice(u,l.indexOf("(",u))}else for(var f in t+=l,a.prototype)t+=";"+c+".prototype."+f+"="+a.prototype[f].toString();else t+=l}else n[c]=a}return t},so=[],ao=function(){return[hi,pi,mi,gi,vi,yi,Si,Ci,_i,Ii,Ti,Wi,zi,Pi,Ni,Bi,ji,Fi,Ui,$i,Co,fo,ho]},co=function(){return[hi,pi,mi,gi,vi,yi,xi,ki,Li,Oi,Ri,Di,Ti,Ji,Qi,zi,Hi,qi,Vi,Gi,Xi,Yi,Zi,Ki,ji,Fi,eo,ro,Eo,fo]},lo=function(){return[wo,xo,yo,no,to]},uo=function(){return[bo,So]},fo=function(e){return postMessage(e,[e.buffer])},ho=function(e){return e&&{out:e.size&&new hi(e.size),dictionary:e.dictionary}},po=function(e,t,n,r,i,o){var s=function(e,t,n,r){if(!so[n]){for(var i="",o={},s=e.length-1,a=0;a<s;++a)i=oo(e[a],i,o);so[n]={c:oo(e[s],i,o),e:o}}var c=io({},so[n].e);return function(e,t,n,r,i){var o=new Worker(di[t]||(di[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],i(r,null)}else i(null,t)},o.postMessage(n,r),o}(so[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,c,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(c),r)}(n,r,i,function(e,t){s.terminate(),o(e,t)});return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},mo=function(e,t){return e[t]|e[t+1]<<8},go=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},vo=function(e,t){return go(e,t)+4294967296*go(e,t+4)},yo=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},wo=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&yo(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},bo=function(e){31==e[0]&&139==e[1]&&8==e[2]||Ui(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=2+(e[10]|e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)},So=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},xo=function(e){return 10+(e.filename?e.filename.length+1:0)};function Eo(e,t){return ro(e,t||{},0,0)}function Co(e,t){return $i(e,{i:2},t&&t.out,t&&t.dictionary)}function ko(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Ui(7),po(e,t,[co,lo,function(){return[To]}],function(e){return fo(To(e.data[0],e.data[1]))},2,n)}function To(e,t){t||(t={});var n=no(),r=e.length;n.p(e);var i=ro(e,t,xo(t),8),o=i.length;return wo(i,t),yo(i,o-8,n.d()),yo(i,o-4,r),i}function Ao(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Ui(7),po(e,t,[ao,uo,function(){return[Mo]}],function(e){return fo(Mo(e.data[0],e.data[1]))},3,n)}function Mo(e,t){var n=bo(e);return n+8>e.length&&Ui(6,"invalid gzip data"),$i(e.subarray(n,-8),{i:2},t&&t.out||new hi(So(e)),t&&t.dictionary)}var zo=function(e,t,n,r){for(var i in e){var o=e[i],s=t+i,a=r;Array.isArray(o)&&(a=io(r,o[1]),o=o[0]),ArrayBuffer.isView(o)?n[s]=[o,a]:(n[s+="/"]=[new hi(0),a],zo(o,s,n,r))}},Oo="undefined"!=typeof TextEncoder&&new TextEncoder,Do="undefined"!=typeof TextDecoder&&new TextDecoder;try{Do.decode(Qi,{stream:!0})}catch(e){}function Lo(e,t){if(t){for(var n=new hi(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}if(Oo)return Oo.encode(e);var i=e.length,o=new hi(e.length+(e.length>>1)),s=0,a=function(e){o[s++]=e};for(r=0;r<i;++r){if(s+5>o.length){var c=new hi(s+8+(i-r<<1));c.set(o),o=c}var l=e.charCodeAt(r);l<128||t?a(l):l<2048?(a(192|l>>6),a(128|63&l)):l>55295&&l<57344?(a(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++r))>>18),a(128|l>>12&63),a(128|l>>6&63),a(128|63&l)):(a(224|l>>12),a(128|l>>6&63),a(128|63&l))}return Fi(o,0,s)}function _o(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(Do)return Do.decode(e);var i=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:Fi(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}}(e),o=i.s;return(n=i.r).length&&Ui(8),o}var Ro=function(e,t){return t+30+mo(e,t+26)+mo(e,t+28)},Io=function(e,t,n){var r=mo(e,t+28),i=mo(e,t+30),o=_o(e.subarray(t+46,t+46+r),!(2048&mo(e,t+8))),s=t+46+r,a=Po(e,s,i,n,go(e,t+20),go(e,t+24),go(e,t+42)),c=a[0],l=a[1],u=a[2];return[mo(e,t+10),c,l,o,s+i+mo(e,t+32),u]},Po=function(e,t,n,r,i,o,s){var a=4294967295==i,c=4294967295==o,l=4294967295==s,u=t+n;if(r&&a+c+l){for(;t+4<u;t+=4+mo(e,t+2))if(1==mo(e,t))return[a?vo(e,t+4+8*c):i,c?vo(e,t+4):o,l?vo(e,t+4+8*(c+a)):s,1];r<2&&Ui(13)}return[i,o,s,0]},No=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&Ui(9),t+=r+4}return t},Bo=function(e,t,n,r,i,o,s,a){var c=r.length,l=n.extra,u=a&&a.length,f=No(l);yo(e,t,null!=s?33639248:67324752),t+=4,null!=s&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(o<0&&8),e[t++]=i&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var d=new Date(null==n.mtime?Date.now():n.mtime),h=d.getFullYear()-1980;if((h<0||h>119)&&Ui(10),yo(e,t,h<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>1),t+=4,-1!=o&&(yo(e,t,n.crc),yo(e,t+4,o<0?-o-2:o),yo(e,t+8,n.size)),yo(e,t+12,c),yo(e,t+14,f),t+=16,null!=s&&(yo(e,t,u),yo(e,t+6,n.attrs),yo(e,t+10,s),t+=14),e.set(r,t),t+=c,f)for(var p in l){var m=l[p],g=m.length;yo(e,t,+p),yo(e,t+2,g),e.set(m,t+4),t+=4+g}return u&&(e.set(a,t),t+=u),t},jo=function(e,t,n,r,i){yo(e,t,101010256),yo(e,t+8,n),yo(e,t+10,n),yo(e,t+12,r),yo(e,t+16,i)};var Fo="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function Wo(e){var t={filename:"",directory:"",basename:"",extension:""},n=function(e){return-1==e.indexOf("/")&&-1!=e.indexOf("\\")?"\\":"/"}(e),r=e.split(n),i=r.pop(),o=/\.([a-z][a-z0-9]*)$/i,s=o.test(i)?o.exec(i)[0]:"";return s||i.includes("*")?(t.filename=i,t.extension=s?s.slice(1):"",t.basename=i.slice(0,i.length-s.length),t.directory=r.join(n)):t.directory=i?e:r.join(n),t}function Uo(e){return Wo(e).basename}function $o(e){return Wo(e).extension}function Ho(e){var t=Wo(e);return t.extension?e.slice(0,e.length-t.extension.length-1):e}function qo(e,t){var n=Ho(e);return t?n+"."+t:n}function Vo(e){var t=$o(e);return t?Ho(e)+"."+t.toLowerCase():e}function Go(e){return e.reduce(function(e,t,n){return 0===n?Uo(t):Xo(e,t)},"")}function Xo(e,t){var n;return e&&t&&(n=Yo(e,t).replace(/[-_]$/,"")),n||""}function Yo(e,t){for(var n=0,r=e.length;n<r&&e[n]===t[n];n++);return e.substring(0,n)}var Zo=(e,t)=>{Ko(e,t)};function Ko(e,t){const n=globalThis.URL||globalThis.webkitURL||window,r=new Blob([e]),i=n.createObjectURL(r),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),n.revokeObjectURL(i),setTimeout(function(){n.revokeObjectURL(i),document.body.removeChild(o)},400)}var Jo=(e,t)=>{const n=JSON.stringify(e,null,2);t?Zo(n,t+".json"):ce.emit(Zn.CommonWarnEvent,"参数JsonID不能为空!")},Qo=(e,t,n)=>{e.get(t,{responseType:"blob"}).then(function(e){Zo(e.data,n)}).catch(e=>{console.warn(e),ce.emit(Zn.CommonWarnEvent,"下载文件报错!")})};async function es(e,t,n){var r,i=function(e){var t=$o(e).toLowerCase(),n={};return"kml"==t?n["application/vnd.google-earth.kml+xml"]=[".kml"]:"svg"===t?n["image/svg+xml"]=[".svg"]:"zip"===t?n["application/zip"]=[".zip"]:"txt"===t||"csv"===t||"tsv"===t||"tab"===t?n["text/csv"]=[".csv",".tsv",".tab",".txt"]:"json"===t||"geojson"===t||"topojson"===t?n["application/json"]=[".json",".geojson",".topojson"]:n["application/octet-stream"]=["."+t],{suggestedName:e,types:[{description:"Files",accept:n}]}}(e);try{if(globalThis.showSaveFilePicker){r=await globalThis.showSaveFilePicker(i);var o=await r.createWritable();await o.write(t),await o.close()}}catch(e){return void("SecurityError"==e.name?(console.warn(e.message),n(e.message)):"AbortError"==e.name?n():(console.error(e.name,e.message,e),n("Save failed for an unknown reason")))}n()}var ts=class e{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==globalThis.document}static encodeGBK(e){const t=X.encode(e,"ISO-8859-1");return X.decode(t,"gbk")}static async saveZipFromFiles(t,n){const r=[];for(let e=0;e<n.length;e++){const t=n[e],i=t.name,o=await ti.readFilePromise(t,"ArrayBuffer"),s=new Uint8Array(o);r.push({filename:i,content:s})}r.length>0&&e.zipAsync(r,function(e,n){if(e)throw e;Ko(new Blob([n]),t)})}static saveZipFile(t,n){e.zipAsync(n,function(e,n){if(e)throw e;Ko(new Blob([n]),t)})}static saveZipFileSync(t,n){const r=e.zipSync(n);return!!r&&(Ko(new Blob([r]),t),!0)}static unzipSync(t){let n;if(n=t instanceof ArrayBuffer?new Uint8Array(t):t,!e.runningInBrowser())return;const r=function(e,t){for(var n={},r=e.length-22;101010256!=go(e,r);--r)(!r||e.length-r>65558)&&Ui(13);var i=mo(e,r+8);if(!i)return{};var o=go(e,r+16),s=117853008==go(e,r-20);if(s){var a=go(e,r-12);(s=101075792==go(e,a))&&(i=go(e,a+32),o=go(e,a+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=Io(e,o,s),f=u[0],d=u[1],h=u[2],p=u[3],m=u[4],g=u[5],v=Ro(e,g);o=m,c&&!c({name:p,size:d,originalSize:h,compression:f})||(f?8==f?n[p]=Co(e.subarray(v,v+d),{out:new hi(h)}):Ui(14,"unknown compression type "+f):n[p]=Fi(e,v,v+d))}return n}(n,{filter:e.fflateFilter});return e.fflatePostprocess(r)}static async readZipFromFile(t){const n={content:await ti.readFilePromise(t,"ArrayBuffer"),name:t.name};return e.readZipFile(n)}static async readZipFile(t){const n=await e.unzipAsync.promise(t.content);return Object.keys(n).reduce(function(e,t){return e.push({filename:t,content:n[t]}),e},[])}static unzipAsync(t,n){if(!e.runningInBrowser())throw new Error("Async unzipping only supported in the browser");let r;r=t instanceof ArrayBuffer?new Uint8Array(t):t,function(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Ui(7);var r=[],i=function(){for(var e=0;e<r.length;++e)r[e]()},o={},s=function(e,t){Fo(function(){n(e,t)})};Fo(function(){s=n});for(var a=e.length-22;101010256!=go(e,a);--a)if(!a||e.length-a>65558)return s(Ui(13,0,1),null),i;var c=mo(e,a+8);if(c){var l=c,u=go(e,a+16),f=117853008==go(e,a-20);if(f){var d=go(e,a-12);(f=101075792==go(e,d))&&(l=c=go(e,d+32),u=go(e,d+48))}for(var h=t&&t.filter,p=function(t){var n=Io(e,u,f),a=n[0],l=n[1],d=n[2],p=n[3],m=n[4],g=n[5],v=Ro(e,g);u=m;var y=function(e,t){e?(i(),s(e,null)):(t&&(o[p]=t),--c||s(null,o))};if(!h||h({name:p,size:l,originalSize:d,compression:a}))if(a)if(8==a){var w=e.subarray(v,v+l);if(d<524288||l>.8*d)try{y(null,Co(w,{out:new hi(d)}))}catch(e){y(e,null)}else r.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Ui(7),po(e,t,[ao],function(e){return fo(Co(e.data[0],ho(e.data[1])))},1,n)}(w,{size:d},y))}else y(Ui(14,"unknown compression type "+a,1),null);else y(null,Fi(e,v,v+l));else y(null,null)},m=0;m<l;++m)p()}else s(null,{})}(r,{filter:e.fflateFilter},function(t,r){t&&n(t),n(null,e.fflatePostprocess(r))})}static zipSync(t){if(!e.runningInBrowser())throw new Error("Async zipping only supported in the browser");return function(e,t){t||(t={});var n={},r=[];zo(e,"",n,t);var i=0,o=0;for(var s in n){var a=n[s],c=a[0],l=a[1],u=0==l.level?0:8,f=(E=Lo(s)).length,d=l.comment,h=d&&Lo(d),p=h&&h.length,m=No(l.extra);f>65535&&Ui(11);var g=u?Eo(c,l):c,v=g.length,y=no();y.p(c),r.push(io(l,{size:c.length,crc:y.d(),c:g,f:E,m:h,u:f!=s.length||h&&d.length!=p,o:i,compression:u})),i+=30+f+m+v,o+=76+2*(f+m)+(p||0)+v}for(var w=new hi(o+22),b=i,S=o-i,x=0;x<r.length;++x){var E=r[x];Bo(w,E.o,E,E.f,E.u,E.c.length);var C=30+E.f.length+No(E.extra);w.set(E.c,E.o+C),Bo(w,i,E,E.f,E.u,E.c.length,E.o,E.m),i+=16+C+(E.m?E.m.length:0)}return jo(w,i,r.length,S,b),w}(e.fflatePreprocess(t))}static zipAsync(t,n){!function(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Ui(7);var r={};zo(e,"",r,t);var i=Object.keys(r),o=i.length,s=0,a=0,c=o,l=new Array(o),u=[],f=function(){for(var e=0;e<u.length;++e)u[e]()},d=function(e,t){Fo(function(){n(e,t)})};Fo(function(){d=n});var h=function(){var e=new hi(a+22),t=s,n=a-s;a=0;for(var r=0;r<c;++r){var i=l[r];try{var o=i.c.length;Bo(e,a,i,i.f,i.u,o);var u=30+i.f.length+No(i.extra),f=a+u;e.set(i.c,f),Bo(e,s,i,i.f,i.u,o,a,i.m),s+=16+u+(i.m?i.m.length:0),a=f+o}catch(e){return d(e,null)}}jo(e,s,l.length,n,t),d(null,e)};o||h();for(var p=function(e){var t=i[e],n=r[t],c=n[0],p=n[1],m=no(),g=c.length;m.p(c);var v=Lo(t),y=v.length,w=p.comment,b=w&&Lo(w),S=b&&b.length,x=No(p.extra),E=0==p.level?0:8,C=function(n,r){if(n)f(),d(n,null);else{var i=r.length;l[e]=io(p,{size:g,crc:m.d(),c:r,f:v,m:b,u:y!=t.length||b&&w.length!=S,compression:E}),s+=30+y+x+i,a+=76+2*(y+x)+(S||0)+i,--o||h()}};if(y>65535&&C(Ui(11,0,1),null),E)if(g<16e4)try{C(null,Eo(c,p))}catch(e){C(e,null)}else u.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Ui(7),po(e,t,[co],function(e){return fo(Eo(e.data[0],e.data[1]))},0,n)}(c,p,C));else C(null,c)},m=0;m<c;++m)p(m)}(e.fflatePreprocess(t),{},n)}static fflateFilter(t){return e.isImportableZipPath(t.name)}static fflatePostprocess(t){return Object.keys(t).reduce(function(n,r){const i=Wo(r).filename;return n[e.encodeGBK(i)]=t[r],n},{})}static isImportableZipPath(e){const t=Wo(e),n=$o(e).toLowerCase();return"gz"!=n&&"zip"!=n&&!/^__MACOSX/.test(e)&&"."!=t.filename[0]}static fflatePreprocess(e){const t={};return e.forEach(e=>{"string"==typeof e.content?e.content=Lo(e.content):e.content instanceof ArrayBuffer&&(e.content=new Uint8Array(e.content)),t[e.filename]=e.content}),t}},ns=class e{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==window.document}static isGzipped(e){return e.length>2&&e.buffer instanceof ArrayBuffer&&31==e[0]&&139==e[1]}static gzipSync(t,n){return"string"==typeof t&&(t=Lo(t)),e.runningInBrowser()?To(t,n):void 0}static async gzipAsync(t,n){let r;if("string"==typeof t&&(r=Lo(t)),e.runningInBrowser())return ti.promisify(ko)(r,n)}static async readGzipFromFile(t){const n={content:await ti.readFilePromise(t,"ArrayBuffer"),name:t.name};return e.readGzipFile(n)}static readGzipFile(t){var n=t.name.replace(/\.gz$/,"");return[{name:n,content:e.gunzipSync(t.content,n)}]}static async gunzipAsync(t,n){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),n=n||{},!e.runningInBrowser())return;let r=await ti.promisify(Ao)(t,n);return n.filename&&(r=_o(r)),r}static gunzipSync(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));let n=Mo(e);return t&&(n=_o(n)),n}},rs=class{static formatToDate(e,t="YYYY-MM-DD"){let n=new Date;if(e&&(Ir(e)||Lr(e)?n=new Date(e):Or(e)&&(n=e),!n))throw"date对象为空";const r=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return t.replace("YYYY",String(r)).replace("MM",i).replace("DD",o)}static formatToTime(e,t="HH:mm:ss"){let n=new Date;if(e&&(Ir(e)||Lr(e)?n=new Date(e):Or(e)&&(n=e),!n))throw"date对象为空";const r=String(n.getHours()).padStart(2,"0"),i=String(n.getMinutes()).padStart(2,"0"),o=String(n.getSeconds()).padStart(2,"0");return t.replace("HH",r).replace("mm",i).replace("ss",o)}static formatToDateTime(e,t="YYYY-MM-DD HH:mm:ss"){let n=new Date;if(e&&(Ir(e)||Lr(e)?n=new Date(e):Or(e)&&(n=e),!n))throw"date对象为空";return this.formatToDate(n,t.split(" ")[0])+" "+this.formatToTime(n,t.split(" ")[1])}static formatStringDateTime(e){let t=`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`;return 14===e.length&&(t=`${t} ${e.substring(8,10)}:${e.substring(10,12)}:${e.substring(12,14)}`),t}},is=!0;try{String.fromCharCode.apply(String,[1,2])}catch(e){is=!1,Object.defineProperty(Array.prototype,"subarray",{value:Array.prototype.slice})}var os=2654435769;function ss(e,t){var n=e.length,r=n<<2;if(t){var i=e[n-1];if(i<(r-=4)-3||i>r)return null;r=i}for(var o=new Uint8Array(r),s=0;s<r;++s)o[s]=e[s>>2]>>((3&s)<<3);return o}function as(e,t){var n,r=e.length,i=r>>2;3&r&&++i,t?(n=new Uint32Array(i+1))[i]=r:n=new Uint32Array(i);for(var o=0;o<r;++o)n[o>>2]|=e[o]<<((3&o)<<3);return n}function cs(e){return 4294967295&e}function ls(e,t,n,r,i,o){return(n>>>5^t<<2)+(t>>>3^n<<4)^(e^t)+(o[3&r^i]^n)}function us(e){if(e.length<16){var t=new Uint8Array(16);t.set(e),e=t}return e}function fs(e){for(var t=e.length,n=new Uint8Array(3*t),r=0,i=0;i<t;i++){var o=e.charCodeAt(i);if(o<128)n[r++]=o;else if(o<2048)n[r++]=192|o>>6,n[r++]=128|63&o;else{if(!(o<55296||o>57343)){if(i+1<t){var s=e.charCodeAt(i+1);if(o<56320&&56320<=s&&s<=57343){var a=65536+((1023&o)<<10|1023&s);n[r++]=240|a>>18,n[r++]=128|a>>12&63,n[r++]=128|a>>6&63,n[r++]=128|63&a,i++;continue}}throw new Error("Malformed string")}n[r++]=224|o>>12,n[r++]=128|o>>6&63,n[r++]=128|63&o}}return n.subarray(0,r)}function ds(e){var t=e.length;return 0===t?"":t<32767?function(e,t){for(var n=new Array(t),r=0,i=0,o=e.length;r<t&&i<o;r++){var s=e[i++];switch(s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n[r]=s;break;case 12:case 13:if(!(i<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(31&s)<<6|63&e[i++];break;case 14:if(!(i+1<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(15&s)<<12|(63&e[i++])<<6|63&e[i++];break;case 15:if(!(i+2<o))throw new Error("Unfinished UTF-8 octet sequence");var a=((7&s)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536;if(!(0<=a&&a<=1048575))throw new Error("Character outside valid Unicode range: 0x"+a.toString(16));n[r++]=a>>10&1023|55296,n[r]=1023&a|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+s.toString(16))}}return r<t&&(n.length=r),String.fromCharCode.apply(String,n)}(e,t):function(e,t){for(var n=[],r=new Array(32768),i=0,o=0,s=e.length;i<t&&o<s;i++){var a=e[o++];switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:r[i]=a;break;case 12:case 13:if(!(o<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(31&a)<<6|63&e[o++];break;case 14:if(!(o+1<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(15&a)<<12|(63&e[o++])<<6|63&e[o++];break;case 15:if(!(o+2<s))throw new Error("Unfinished UTF-8 octet sequence");var c=((7&a)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++])-65536;if(!(0<=c&&c<=1048575))throw new Error("Character outside valid Unicode range: 0x"+c.toString(16));r[i++]=c>>10&1023|55296,r[i]=1023&c|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+a.toString(16))}if(i>=32766){var l=i+1;r.length=l,n.push(String.fromCharCode.apply(String,r)),t-=l,i=-1}}return i>0&&(r.length=i,n.push(String.fromCharCode.apply(String,r))),n.join("")}(e,t)}function hs(e,t){return"string"==typeof e&&(e=fs(e)),"string"==typeof t&&(t=fs(t)),null==e||0===e.length?e:ss(function(e,t){var n,r,i,o,s=e.length,a=s-1,c=e[a],l=0;for(o=0|Math.floor(6+52/s);o>0;--o){for(r=(l=cs(l+os))>>>2&3,i=0;i<a;++i)n=e[i+1],c=e[i]=cs(e[i]+ls(l,n,c,i,r,t));n=e[0],c=e[a]=cs(e[a]+ls(l,n,c,a,r,t))}return e}(as(e,!0),as(us(t),!1)),!1)}function ps(e,t){return"string"==typeof e&&(e=function(e){for(var t=globalThis.atob(e),n=t.length,r=new Uint8Array(n),i=0;i<n;i++)r[i]=t.charCodeAt(i);return r}(e)),"string"==typeof t&&(t=fs(t)),null==e||0===e.length?e:ss(function(e,t){var n,r,i,o,s=e.length,a=s-1,c=e[0];for(r=cs(Math.floor(6+52/s)*os);0!==r;r=cs(r-os)){for(i=r>>>2&3,o=a;o>0;--o)n=e[o-1],c=e[o]=cs(e[o]-ls(r,c,n,o,i,t));n=e[a],c=e[0]=cs(e[0]-ls(r,c,n,0,i,t))}return e}(as(e,!1),as(us(t),!1)),!0)}var ms,gs={toBytes:fs,toString:ds,encrypt:hs,encryptToString:function(e,t){return globalThis.btoa(function(e){var t=e.length;if(0===t)return"";var n=is?e:function(e){for(var t=e.length,n=new Array(e.length),r=0;r<t;++r)n[r]=e[r];return n}(e);if(t<65535)return String.fromCharCode.apply(String,n);for(var r=32767&t,i=t>>15,o=new Array(r?i+1:i),s=0;s<i;++s)o[s]=String.fromCharCode.apply(String,n.subarray(s<<15,s+1<<15));return r&&(o[i]=String.fromCharCode.apply(String,n.subarray(i<<15,t))),o.join("")}(hs(e,t)))},decrypt:ps,decryptToString:function(e,t){return ds(ps(e,t))}},vs=e=>{const t="1.23452384164.123412416";null!==document.getElementById(t)&&document.body.removeChild(document.getElementById(t));const n=document.createElement("canvas");n.width=200,n.height=130;const r=n.getContext("2d");r.rotate(-20*Math.PI/180),r.font="12px Vedana",r.fillStyle="rgba(200, 200, 200, 0.30)",r.textBaseline="middle",r.fillText(e,n.width/10,n.height/2);const i=document.createElement("div");return i.id=t,i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.position="fixed",i.style.zIndex="10000000",i.style.width=`${document.documentElement.clientWidth}px`,i.style.height=`${document.documentElement.clientHeight}px`,i.style.background=`url(${n.toDataURL("image/png")}) left top repeat`,document.body.appendChild(i),t},ys={set:e=>{let t=vs(e);null===document.getElementById(t)&&(t=vs(e))},del:()=>{let e="1.23452384164.123412416";null!==document.getElementById(e)&&document.body.removeChild(document.getElementById(e))}};function ws(e){if(!e){if(ms)return ms;throw new Error("首次构建,signalrURL参数不能为空!")}const t=(new Y.HubConnectionBuilder).configureLogging(Y.LogLevel.Information).withUrl(e).withAutomaticReconnect({nextRetryDelayInMilliseconds:()=>5e3}).build();return t.keepAliveIntervalInMilliseconds=15e3,t.serverTimeoutInMilliseconds=18e5,t.start().then(()=>{ir.Logger().info("启动SignalR连接!")}),t.onclose(async()=>{ir.Logger().info("断开SignalR连接!")}),t.onreconnecting(()=>{ir.Logger().warn("SignalR服务已断线,重连中...!")}),t.onreconnected(()=>{ir.Logger().warn("SignalR重连成功!")}),ms||(ms=t),t}var bs,Ss,xs={hasSubscribers:!1},Es=xs,Cs=xs,ks="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,Ts=()=>Es.hasSubscribers||Cs.hasSubscribers,As=new Set,Ms="object"==typeof Ce&&Ce?Ce:{},zs=e=>!!e&&e===Math.floor(e)&&e>0&&isFinite(e),Os=e=>zs(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Ds:null:null,Ds=class extends Array{constructor(e){super(e),this.fill(0)}},Ls=class e{heap;length;static#e=!1;static create(t){let n=Os(t);if(!n)return[];e.#e=!0;let r=new e(t,n);return e.#e=!1,r}constructor(t,n){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},_s=class e{#e;#t;#n;#r;#i;#o;#s;#a;get perf(){return this.#a}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#c;#l;#u;#f;#d;#h;#p;#m;#g;#v;#y;#w;#b;#S;#x;#E;#C;#k;#T;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#S,autopurgeTimers:e.#x,sizes:e.#w,keyMap:e.#u,keyList:e.#f,valList:e.#d,next:e.#h,prev:e.#p,get head(){return e.#m},get tail(){return e.#g},free:e.#v,isBackgroundFetch:t=>e.#A(t),backgroundFetch:(t,n,r,i)=>e.#M(t,n,r,i),moveToTail:t=>e.#z(t),indexes:t=>e.#O(t),rindexes:t=>e.#D(t),isStale:t=>e.#L(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#o}get memoMethod(){return this.#s}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(t){let{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:h,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:g,fetchMethod:v,memoMethod:y,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:x,ignoreFetchAbort:E,backgroundFetchSize:C=1,perf:k}=t;if(this.backgroundFetchSize=C,void 0!==k&&"function"!=typeof k?.now)throw new TypeError("perf option must have a now() method if specified");if(this.#a=k??ks,0!==n&&!zs(n))throw new TypeError("max option must be a nonnegative integer");let T=n?Os(n):Array;if(!T)throw new Error("invalid max value: "+n);if(this.#e=n,this.#t=p,this.maxEntrySize=m||this.#t,this.sizeCalculation=g,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==y&&"function"!=typeof y)throw new TypeError("memoMethod must be a function if defined");if(this.#s=y,void 0!==v&&"function"!=typeof v)throw new TypeError("fetchMethod must be a function if specified");if(this.#o=v,this.#C=!!v,this.#u=new Map,this.#f=Array.from({length:n}).fill(void 0),this.#d=Array.from({length:n}).fill(void 0),this.#h=new T(n),this.#p=new T(n),this.#m=0,this.#g=0,this.#v=Ls.create(n),this.#c=0,this.#l=0,"function"==typeof l&&(this.#n=l),"function"==typeof u&&(this.#r=u),"function"==typeof f?(this.#i=f,this.#y=[]):(this.#i=void 0,this.#y=void 0),this.#E=!!this.#n,this.#T=!!this.#r,this.#k=!!this.#i,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!E,0!==this.maxEntrySize){if(0!==this.#t&&!zs(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!zs(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#_()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!a,this.ttlResolution=zs(i)||0===i?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!zs(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(0===this.#e&&0===this.ttl&&0===this.#t)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t="LRU_CACHE_UNBOUNDED";(e=>!As.has(e))(t)&&(As.add(t),((e,t,n,r)=>{"function"==typeof Ms.emitWarning?Ms.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)})("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,e))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#R(){let e=new Ds(this.#e),t=new Ds(this.#e);this.#S=e,this.#b=t;let n=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#x=n,this.#I=(n,i,o=this.#a.now())=>{t[n]=0!==i?o:0,e[n]=i,r(n,i)},this.#P=n=>{t[n]=0!==e[n]?this.#a.now():0,r(n,e[n])};let r=this.ttlAutopurge?(e,t)=>{if(n?.[e]&&(clearTimeout(n[e]),n[e]=void 0),t&&0!==t&&n){let r=setTimeout(()=>{this.#L(e)&&this.#N(this.#f[e],"expire")},t+1);r.unref&&r.unref(),n[e]=r}}:()=>{};this.#B=(n,r)=>{if(e[r]){let s=e[r],a=t[r];if(!s||!a)return;n.ttl=s,n.start=a,n.now=i||o(),n.remainingTTL=s-(n.now-a)}};let i=0,o=()=>{let e=this.#a.now();if(this.ttlResolution>0){i=e;let t=setTimeout(()=>i=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=n=>{let r=this.#u.get(n);if(void 0===r)return 0;let s=e[r],a=t[r];return s&&a?s-((i||o())-a):1/0},this.#L=n=>{let r=t[n],s=e[n];return!!s&&!!r&&(i||o())-r>s}}#P=()=>{};#B=()=>{};#I=()=>{};#L=()=>!1;#_(){let e=new Ds(this.#e);this.#l=0,this.#w=e,this.#j=t=>{this.#l-=e[t],e[t]=0},this.#F=(e,t,n,r)=>{if(!zs(n)){if(this.#A(t))return this.backgroundFetchSize;if(!r)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!zs(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.#W=(t,n,r)=>{if(e[t]=n,this.#t){let n=this.#t-e[t];for(;this.#l>n;)this.#U(!0)}this.#l+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#l)}}#j=e=>{};#W=(e,t,n)=>{};#F=(e,t,n,r)=>{if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#g;this.#$(t)&&((e||!this.#L(t))&&(yield t),t!==this.#m);)t=this.#p[t]}*#D({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#m;this.#$(t)&&((e||!this.#L(t))&&(yield t),t!==this.#g);)t=this.#h[t]}#$(e){return void 0!==e&&this.#u.get(this.#f[e])===e}*entries(){for(let e of this.#O())void 0!==this.#d[e]&&void 0!==this.#f[e]&&!this.#A(this.#d[e])&&(yield[this.#f[e],this.#d[e]])}*rentries(){for(let e of this.#D())void 0!==this.#d[e]&&void 0!==this.#f[e]&&!this.#A(this.#d[e])&&(yield[this.#f[e],this.#d[e]])}*keys(){for(let e of this.#O()){let t=this.#f[e];void 0!==t&&!this.#A(this.#d[e])&&(yield t)}}*rkeys(){for(let e of this.#D()){let t=this.#f[e];void 0!==t&&!this.#A(this.#d[e])&&(yield t)}}*values(){for(let e of this.#O())void 0!==this.#d[e]&&!this.#A(this.#d[e])&&(yield this.#d[e])}*rvalues(){for(let e of this.#D())void 0!==this.#d[e]&&!this.#A(this.#d[e])&&(yield this.#d[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let n of this.#O()){let r=this.#d[n],i=this.#A(r)?r.__staleWhileFetching:r;if(void 0!==i&&e(i,this.#f[n],this))return this.#H(this.#f[n],t)}}forEach(e,t=this){for(let n of this.#O()){let r=this.#d[n],i=this.#A(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#f[n],this)}}rforEach(e,t=this){for(let n of this.#D()){let r=this.#d[n],i=this.#A(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#f[n],this)}}purgeStale(){let e=!1;for(let t of this.#D({allowStale:!0}))this.#L(t)&&(this.#N(this.#f[t],"expire"),e=!0);return e}info(e){let t=this.#u.get(e);if(void 0===t)return;let n=this.#d[t],r=this.#A(n)?n.__staleWhileFetching:n;if(void 0===r)return;let i={value:r};if(this.#S&&this.#b){let e=this.#S[t],n=this.#b[t];e&&n&&(i.ttl=e-(this.#a.now()-n),i.start=Date.now())}return this.#w&&(i.size=this.#w[t]),i}dump(){let e=[];for(let t of this.#O({allowStale:!0})){let n=this.#f[t],r=this.#d[t],i=this.#A(r)?r.__staleWhileFetching:r;if(void 0===i||void 0===n)continue;let o={value:i};if(this.#S&&this.#b){o.ttl=this.#S[t];let e=this.#a.now()-this.#b[t];o.start=Math.floor(Date.now()-e)}this.#w&&(o.size=this.#w[t]),e.unshift([n,o])}return e}load(e){this.clear();for(let[t,n]of e){if(n.start){let e=Date.now()-n.start;n.start=this.#a.now()-e}this.#q(t,n.value,n)}}set(e,t,n={}){let{status:r=(Es.hasSubscribers?{}:void 0)}=n;n.status=r,r&&(r.op="set",r.key=e,void 0!==t&&(r.value=t),r.cache=this);let i=this.#q(e,t,n);return r&&Es.hasSubscribers&&Es.publish(r),i}#q(e,t,n,r){let{ttl:i=this.ttl,start:o,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=n,l=this.#A(t);if(void 0===t)return c&&(c.set="deleted"),this.delete(e),this;let{noUpdateTTL:u=this.noUpdateTTL}=n;c&&!l&&(c.value=t);let f=this.#F(e,t,n.size||0,a,c);if(this.maxEntrySize&&f>this.maxEntrySize)return this.#N(e,"set"),c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this;let d=0===this.#c?void 0:this.#u.get(e);if(void 0===d)d=0===this.#c?this.#g:0!==this.#v.length?this.#v.pop():this.#c===this.#e?this.#U(!1):this.#c,this.#f[d]=e,this.#d[d]=t,this.#u.set(e,d),this.#h[this.#g]=d,this.#p[d]=this.#g,this.#g=d,this.#c++,this.#W(d,f,c),c&&(c.set="add"),u=!1,this.#T&&!l&&this.#r?.(t,e,"add");else{this.#z(d);let n=this.#d[d];if(t!==n){if(!s)if(this.#A(n)){n!==r&&n.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:i}=n;void 0!==i&&i!==t&&(this.#E&&this.#n?.(i,e,"set"),this.#k&&this.#y?.push([i,e,"set"]))}else this.#E&&this.#n?.(n,e,"set"),this.#k&&this.#y?.push([n,e,"set"]);if(this.#j(d),this.#W(d,f,c),this.#d[d]=t,!l){let r=n&&this.#A(n)?n.__staleWhileFetching:n,i=void 0===r?"add":t!==r?"replace":"update";c&&(c.set=i,void 0!==r&&(c.oldValue=r)),this.#T&&this.onInsert?.(t,e,i)}}else l||(c&&(c.set="update"),this.#T&&this.onInsert?.(t,e,"update"))}if(0!==i&&!this.#S&&this.#R(),this.#S&&(u||this.#I(d,i,o),c&&this.#B(c,d)),!s&&this.#k&&this.#y){let e,t=this.#y;for(;e=t?.shift();)this.#i?.(...e)}return this}pop(){try{for(;this.#c;){let e=this.#d[this.#m];if(this.#U(!0),this.#A(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#k&&this.#y){let e,t=this.#y;for(;e=t?.shift();)this.#i?.(...e)}}}#U(e){let t=this.#m,n=this.#f[t],r=this.#d[t],i=this.#A(r);i&&r.__abortController.abort(new Error("evicted"));let o=i?r.__staleWhileFetching:r;return(this.#E||this.#k)&&void 0!==o&&(this.#E&&this.#n?.(o,n,"evict"),this.#k&&this.#y?.push([o,n,"evict"])),this.#j(t),this.#x?.[t]&&(clearTimeout(this.#x[t]),this.#x[t]=void 0),e&&(this.#f[t]=void 0,this.#d[t]=void 0,this.#v.push(t)),1===this.#c?(this.#m=this.#g=0,this.#v.length=0):this.#m=this.#h[t],this.#u.delete(n),this.#c--,t}has(e,t={}){let{status:n=(Es.hasSubscribers?{}:void 0)}=t;t.status=n,n&&(n.op="has",n.key=e,n.cache=this);let r=this.#V(e,t);return Es.hasSubscribers&&Es.publish(n),r}#V(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=this.#u.get(e);if(void 0!==i){let e=this.#d[i];if(this.#A(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#L(i))return n&&this.#P(i),r&&(r.has="hit",this.#B(r,i)),!0;r&&(r.has="stale",this.#B(r,i))}else r&&(r.has="miss");return!1}peek(e,t={}){let{status:n=(Ts()?{}:void 0)}=t;n&&(n.op="peek",n.key=e,n.cache=this),t.status=n;let r=this.#G(e,t);return Es.hasSubscribers&&Es.publish(n),r}#G(e,t){let{status:n,allowStale:r=this.allowStale}=t,i=this.#u.get(e);if(void 0===i||!r&&this.#L(i))return void(n&&(n.peek=void 0===i?"miss":"stale"));let o=this.#d[i],s=this.#A(o)?o.__staleWhileFetching:o;return n&&(void 0!==s?(n.peek="hit",n.value=s):n.peek="miss"),s}#M(e,t,n,r){let i=void 0===t?void 0:this.#d[t];if(this.#A(i))return i;let o=new AbortController,{signal:s}=n;s?.addEventListener("abort",()=>o.abort(s.reason),{signal:o.signal});let a={signal:o.signal,options:n,context:r},c=(r,i=!1)=>{let{aborted:s}=o.signal,c=n.ignoreFetchAbort&&void 0!==r,f=n.ignoreFetchAbort||!(!n.allowStaleOnFetchAbort||void 0===r);if(n.status&&(s&&!i?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,c&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),s&&!c&&!i)return l(o.signal.reason,f);let d=u,h=this.#d[t];return(h===u||void 0===h&&c&&i)&&(void 0===r?void 0!==d.__staleWhileFetching?this.#d[t]=d.__staleWhileFetching:this.#N(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.#q(e,r,a.options,d))),r},l=(r,i)=>{let{aborted:s}=o.signal,a=s&&n.allowStaleOnFetchAbort,c=a||n.allowStaleOnFetchRejection,l=c||n.noDeleteOnFetchRejection,f=u;if(this.#d[t]===u&&(!l||!i&&void 0===f.__staleWhileFetching?this.#N(e,"fetch"):a||(this.#d[t]=f.__staleWhileFetching)),c)return n.status&&void 0!==f.__staleWhileFetching&&(n.status.returnedStale=!0),f.__staleWhileFetching;if(f.__returned===f)throw r};n.status&&(n.status.fetchDispatched=!0);let u=new Promise((t,r)=>{let s=this.#o?.(e,i,a);o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>c(e,!0)))}),s&&s instanceof Promise?s.then(e=>t(void 0===e?void 0:e),r):void 0!==s&&t(s)}).then(c,e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),l(e,!1))),f=Object.assign(u,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.#q(e,f,{...a.options,status:void 0}),t=this.#u.get(e)):this.#d[t]=f,f}#A(e){if(!this.#C)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AbortController}fetch(e,t={}){let n=Cs.hasSubscribers,{status:r=(Ts()?{}:void 0)}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=this.#X(e,t);return r&&n&&(r.trace=!0,Cs.tracePromise(()=>i,r).catch(()=>{})),i}async#X(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:a=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:p,forceRefresh:m=!1,status:g,signal:v}=t;if(g&&(g.op="fetch",g.key=e,m&&(g.forceRefresh=!0),g.cache=this),!this.#C)return g&&(g.fetch="get"),this.#H(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:g});let y={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:s,size:a,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:h,ignoreFetchAbort:d,status:g,signal:v},w=this.#u.get(e);if(void 0===w){g&&(g.fetch="miss");let t=this.#M(e,w,y,p);return t.__returned=t}{let t=this.#d[w];if(this.#A(t)){let e=n&&void 0!==t.__staleWhileFetching;return g&&(g.fetch="inflight",e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=this.#L(w);if(!m&&!i)return g&&(g.fetch="hit"),this.#z(w),r&&this.#P(w),g&&this.#B(g,w),t;let o=this.#M(e,w,y,p),s=void 0!==o.__staleWhileFetching&&n;return g&&(g.fetch=i?"stale":"refresh",s&&i&&(g.returnedStale=!0)),s?o.__staleWhileFetching:o.__returned=o}}forceFetch(e,t={}){let n=Cs.hasSubscribers,{status:r=(Ts()?{}:void 0)}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=this.#Y(e,t);return r&&n&&(r.trace=!0,Cs.tracePromise(()=>i,r).catch(()=>{})),i}async#Y(e,t={}){let n=await this.#X(e,t);if(void 0===n)throw new Error("fetch() returned undefined");return n}memo(e,t={}){let{status:n=(Es.hasSubscribers?{}:void 0)}=t;t.status=n,n&&(n.op="memo",n.key=e,t.context&&(n.context=t.context),n.cache=this);let r=this.#Z(e,t);return n&&(n.value=r),Es.hasSubscribers&&Es.publish(n),r}#Z(e,t={}){let n=this.#s;if(!n)throw new Error("no memoMethod provided to constructor");let{context:r,status:i,forceRefresh:o,...s}=t;i&&o&&(i.forceRefresh=!0);let a=this.#H(e,s),c=o||void 0===a;if(i&&(i.memo=c?"miss":"hit",c||(i.value=a)),!c)return a;let l=n(e,a,{options:s,context:r});return i&&(i.value=l),this.#q(e,l,s),l}get(e,t={}){let{status:n=(Es.hasSubscribers?{}:void 0)}=t;t.status=n,n&&(n.op="get",n.key=e,n.cache=this);let r=this.#H(e,t);return n&&(void 0!==r&&(n.value=r),Es.hasSubscribers&&Es.publish(n)),r}#H(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=t,s=this.#u.get(e);if(void 0===s)return void(o&&(o.get="miss"));let a=this.#d[s],c=this.#A(a);return o&&this.#B(o,s),this.#L(s)?c?(o&&(o.get="stale-fetching"),n&&void 0!==a.__staleWhileFetching?(o&&(o.returnedStale=!0),a.__staleWhileFetching):void 0):(i||this.#N(e,"expire"),o&&(o.get="stale"),n?(o&&(o.returnedStale=!0),a):void 0):(o&&(o.get=c?"fetching":"hit"),this.#z(s),r&&this.#P(s),c?a.__staleWhileFetching:a)}#K(e,t){this.#p[t]=e,this.#h[e]=t}#z(e){e!==this.#g&&(e===this.#m?this.#m=this.#h[e]:this.#K(this.#p[e],this.#h[e]),this.#K(this.#g,e),this.#g=e)}delete(e){return this.#N(e,"delete")}#N(e,t){Es.hasSubscribers&&Es.publish({op:"delete",delete:t,key:e,cache:this});let n=!1;if(0!==this.#c){let r=this.#u.get(e);if(void 0!==r)if(this.#x?.[r]&&(clearTimeout(this.#x?.[r]),this.#x[r]=void 0),n=!0,1===this.#c)this.#J(t);else{this.#j(r);let n=this.#d[r];if(this.#A(n)?n.__abortController.abort(new Error("deleted")):(this.#E||this.#k)&&(this.#E&&this.#n?.(n,e,t),this.#k&&this.#y?.push([n,e,t])),this.#u.delete(e),this.#f[r]=void 0,this.#d[r]=void 0,r===this.#g)this.#g=this.#p[r];else if(r===this.#m)this.#m=this.#h[r];else{let e=this.#p[r];this.#h[e]=this.#h[r];let t=this.#h[r];this.#p[t]=this.#p[r]}this.#c--,this.#v.push(r)}}if(this.#k&&this.#y?.length){let e,t=this.#y;for(;e=t?.shift();)this.#i?.(...e)}return n}clear(){return this.#J("delete")}#J(e){for(let t of this.#D({allowStale:!0})){let n=this.#d[t];if(this.#A(n))n.__abortController.abort(new Error("deleted"));else{let r=this.#f[t];this.#E&&this.#n?.(n,r,e),this.#k&&this.#y?.push([n,r,e])}}if(this.#u.clear(),this.#d.fill(void 0),this.#f.fill(void 0),this.#S&&this.#b){this.#S.fill(0),this.#b.fill(0);for(let e of this.#x??[])void 0!==e&&clearTimeout(e);this.#x?.fill(void 0)}if(this.#w&&this.#w.fill(0),this.#m=0,this.#g=0,this.#v.length=0,this.#l=0,this.#c=0,this.#k&&this.#y){let e,t=this.#y;for(;e=t?.shift();)this.#i?.(...e)}}},Rs=class{static defaultOptions={max:1e3,ttl:18e5};static cache=new _s(this.defaultOptions);static createCache(e=this.defaultOptions){return new _s(e)}static set(e,t,n=this.cache){let r=n;r||(r=this.cache),r.set(e,t)}static get(e,t=this.cache){let n=t;return n||(n=this.cache),n.get(e)}static remove(e,t=this.cache){let n=t;return n||(n=this.cache),n.del(e)}static has(e,t=this.cache){let n=t;return n||(n=this.cache),n.has(e)}static count(e=this.cache){let t=e;return t||(t=this.cache),t.size}static maxSize(e=this.cache){let t=e;return t||(t=this.cache),t.max}static peek(e,t=this.cache){let n=t;return n||(n=this.cache),n.peek(e)}static keys(e=this.cache){let t=e;return t||(t=this.cache),t.keys()}static clear(e=this.cache){let t=e;t||(t=this.cache),t.clear()}},Is=class{static CharCodes=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"];static matrix2=[[3,4],[1,2]];static matrix3=[[7,8,9],[4,5,6],[1,2,3]];static matrix4=[["21","22","23","24","25"],["16","17","18","19","20"],["11","12","13","14","15"],["06","07","08","09","10"],["01","02","03","04","05"]];static matrix5=[["C","D"],["A","B"]];static dmsToDecimal(e){let t=1;if(e.direction)switch(e.direction){case"W":case"S":t=-1;break;default:t=1}return(Math.abs(e.degrees)+e.minutes/60+e.seconds/3600)*t}static xToDMS(e,t="E"){let n=t;e<0&&(n="W");const r=Math.abs(e);return this.decimalToDms(r,n)}static yToDMS(e,t="N"){let n=t;e<0&&(n="S");const r=Math.abs(e);return this.decimalToDms(r,n)}static decimalToDms(e,t){const n=Math.floor(e),r=60*(e-n),i=Math.floor(r);return{degrees:n,minutes:i,seconds:60*(r-i),direction:t}}static prefixInteger(e,t){return(Array(t).join("0")+e).slice(-t)}static serializeGrid1(e,t){const n="W"===e.direction?-1:1,r=2*e.degrees+Math.floor(e.minutes/30+1),i=this.prefixInteger(r*n+360,3),o="S"===t.direction?1:-1,s=(2*t.degrees+Math.floor(t.minutes/30+1))*o+180;return`${i}${this.CharCodes[Math.floor(s/24)]+this.CharCodes[s%24]}`}static deserializeGrid1(e){const t=e.substring(0,3);let n=Number.parseInt(t)-360,r="E";n<0&&(r="W",n=Math.abs(n)),n-=1;const i=Math.floor(n/2),o={degrees:i,minutes:30*(n-2*i),seconds:0,direction:r},s=e.substring(3,4),a=e.substring(4,5);let c=24*this.CharCodes.indexOf(s)+this.CharCodes.indexOf(a)-180,l="S";c<0&&(l="N",c=Math.abs(c)),c-=1;const u=Math.floor(c/2);return[o,{degrees:u,minutes:30*(c-2*u),seconds:0,direction:l}]}static serializeGrid2(e,t){const n=e.minutes%30,r=Math.floor(n/15),i=t.minutes%30,o=Math.floor(i/15);return this.matrix2[o][r]}static deserializeGrid2(e){return this.deserializeGrid6(e)}static serializeGrid3(e,t){const n=e.minutes%15,r=Math.floor(n/5),i=t.minutes%15,o=Math.floor(i/5);return this.matrix3[o][r]}static deserializeGrid3(e){return this.deserializeGrid7(e)}static serializeGrid4(e,t){const n=e.minutes%5,r=t.minutes%5;return this.matrix4[r][n]}static deserializeGrid4(e){return this.deserializeGrid8(e)}static serializeGrid5(e,t){const n=Math.floor(e.seconds/30),r=Math.floor(t.seconds/30);return this.matrix5[r][n]}static deserializeGrid5(e){let t=0,n=0;switch(e){case"C":t=0,n=0;break;case"D":t=1,n=0;break;case"A":t=0,n=1;break;case"B":t=1,n=1}return[30*t,30*n]}static serializeGrid6(e,t){const n=e.seconds%30,r=Math.floor(n/15),i=t.seconds%30,o=Math.floor(i/15);return this.matrix2[o][r]}static deserializeGrid6(e){let t=0,n=0;switch(e){case"3":t=0,n=0;break;case"4":t=1,n=0;break;case"1":t=0,n=1;break;case"2":t=1,n=1}return[15*t,15*n]}static serializeGrid7(e,t){const n=e.seconds%15,r=Math.floor(n/5),i=t.seconds%15,o=Math.floor(i/5);return this.matrix3[o][r]}static deserializeGrid7(e){const t=Number.parseInt(e);let n=!1,r=0,i=0;for(let o=0;o<3;o++){for(let e=0;e<3;e++)if(this.matrix3[o][e]===t){r=o,i=e,n=!0;break}if(n)break}return[5*i,5*r]}static serializeGrid8(e,t){const n=Math.floor(e.seconds%5),r=Math.floor(t.seconds%5);return this.matrix4[r][n]}static deserializeGrid8(e){let t=!1,n=0,r=0;for(let i=0;i<5;i++){for(let o=0;o<5;o++)if(this.matrix4[i][o]===e){n=i,r=o,t=!0;break}if(t)break}return[r,n]}static serializeGrid9(e,t){const n=Math.floor(1e3*(e.seconds-Math.floor(e.seconds))),r=Math.floor(n/125),i=Math.floor(1e3*(t.seconds-Math.floor(t.seconds))),o=Math.floor(i/125);return this.prefixInteger(8*(7-o)+r+1,2)}static deserializeGrid9(e){const t=Number.parseInt(e)-1,n=7-Math.floor(t/8);return[.125*(t-8*(7-n)),.125*n]}static serializeWarGrid(e,t,n=1){let r=this.serializeGrid1(e,t);return n>=2&&(r+=this.serializeGrid2(e,t),n>=3&&(r+=this.serializeGrid3(e,t),n>=4&&(r+=this.serializeGrid4(e,t),n>=5&&(r+=this.serializeGrid5(e,t),n>=6&&(r+=this.serializeGrid6(e,t),n>=7&&(r+=this.serializeGrid7(e,t),n>=8&&(r+=this.serializeGrid8(e,t),n>=9&&(r+=this.serializeGrid9(e,t))))))))),r}static deserializeWarGrid(e){const t=e.length;if(t<5)throw new Error("编码长度不小于5个");const[n,r]=this.deserializeGrid1(e);let i=[0,0];return t>=6&&(i=this.deserializeGrid2(e.substring(5,6)),n.minutes+=i[0],r.minutes+=i[1],t>=7&&(i=this.deserializeGrid3(e.substring(6,7)),n.minutes+=i[0],r.minutes+=i[1],t>=9&&(i=this.deserializeGrid4(e.substring(7,9)),n.minutes+=i[0],r.minutes+=i[1],t>=10&&(i=this.deserializeGrid5(e.substring(9,10)),n.seconds+=i[0],r.seconds+=i[1],t>=11&&(i=this.deserializeGrid6(e.substring(10,11)),n.seconds+=i[0],r.seconds+=i[1],t>=12&&(i=this.deserializeGrid7(e.substring(11,12)),n.seconds+=i[0],r.seconds+=i[1],t>=14&&(i=this.deserializeGrid8(e.substring(12,14)),n.seconds+=i[0],r.seconds+=i[1],t>=16&&(i=this.deserializeGrid9(e.substring(14,16)),n.seconds+=i[0],r.seconds+=i[1])))))))),[n,r]}},Ps=((e,t)=>{let n={};for(var r in e)Q(n,r,{get:e[r],enumerable:!0});return t||Q(n,Symbol.toStringTag,{value:"Module"}),n})({base64ToBlob:()=>Fs,blobToDataURL:()=>Ws,convertDecimalism:()=>Hs,convertDecimalismData:()=>Vs,convertDecimalismSpacing:()=>qs,convertToDecimalism:()=>Gs,convertToDecimalismByString:()=>Xs,convertToDecimalismByString2:()=>Ys,filterObj:()=>Ns,getRandomInt:()=>Bs,getRandomItem:()=>js,replaceAll:()=>Us,reserveDecimal:()=>$s,traverseXYArrayFromInsideOut:()=>Zs});function Ns(e,t){const n={};return Object.keys(e).filter(e=>t.includes(e)).forEach(t=>{n[t]=e[t]}),n}function Bs(e=100,t=0){return Math.floor(Math.random()*(e-t+1))+t}function js(e){if(!e)return;const t=e.length;return 0!==t?e[Math.floor(Math.random()*t)]:void 0}function Fs(e,t="image/png"){let n=t,r="";const i=e.split(",");2===i.length?(n=(i[0]?.match(/:(.*?);/))[1],r=atob(i[1])):r=atob(i[0]);let o=r.length;const s=new Uint8Array(o);for(;o--;)s[o]=r.charCodeAt(o);return new Blob([s],{type:n})}function Ws(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=n,r.readAsDataURL(e)})}function Us(e,t,n){return e.split(t).join(n)}function $s(e,t=2){const n=Math.pow(10,t);return Math.round(e*n)/n}function Hs(e,t=!0,n=!0){const r=n?e>0?"E":"W":e>0?"N":"S",i=Math.floor(e),o=60*(e-i),s=Math.floor(o),a=60*(o-s);return t?`${r}:${i}°${s}′${a.toFixed(3)}″`:{degree:i*(e>0?1:-1),minute:s,second:a}}function qs(e,t=3){const n=Math.floor(e),r=60*(e-n),i=Math.floor(r);return`${n} ${i} ${(60*(r-i)).toFixed(t)}`}function Vs(e,t=3){const n=Math.floor(e),r=60*(e-n),i=Math.floor(r);return{degree:n,minute:i,second:$s(60*(r-i),t)}}function Gs(e,t,n){return e+t/60+n/3600}function Xs(e,t=-1){const n=e.split(" ");if(!n||3!=n.length)return-1;const r=Number(n[0]),i=Number(n[1]),o=Number(n[2]);return NaN===r||NaN===i||NaN===o?-1:-1!=t?$s(r+i/60+o/3600,t):r+i/60+o/3600}function Ys(e){const t=e.match(/^([EWNS]):?(\d+)[°ºd](\d+)[′'m](\d+\.?\d*)[″"s]?$/i);if(!t)return NaN;let n=parseFloat(t[2])+parseFloat(t[3])/60+parseFloat(t[4])/3600;return(e.toUpperCase().startsWith("W")||e.toUpperCase().startsWith("S"))&&(n=-n),n}function Zs(e,t,n){if(e<=0||t<=0)throw new Error("行数或列数不能小于0!");const r=e,i=t,o=Math.floor(r/2),s=Math.floor(i/2),a=Math.max(o,r-1-o,s,i-1-s),c=Array(r).fill(!1).map(()=>Array(i).fill(!1)),l=[];for(let u=0;u<=a;u++){const e=Math.max(0,o-u),t=Math.min(r-1,o+u),a=Math.max(0,s-u),f=Math.min(i-1,s+u);for(let r=e;r<=t;r++)for(let e=a;e<=f;e++)c[r][e]||(n&&n(r,e),c[r][e]=!0,l.push([r,e]))}return l}function Ks(e){const t=e.toLowerCase().replace(/rgb?a?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n=parseFloat(t[3]||"1"),r=Math.floor(n*parseInt(t[0])+255*(1-n)),i=Math.floor(n*parseInt(t[1])+255*(1-n)),o=Math.floor(n*parseInt(t[2])+255*(1-n));return"#"+("0"+r.toString(16)).slice(-2)+("0"+i.toString(16)).slice(-2)+("0"+o.toString(16)).slice(-2)}function Js(e){var t=e.toLowerCase();if(ra(e)){if(4===t.length){for(var n="#",r=1;r<4;r+=1){const e=t.slice(r,r+1);n+=e.concat(e)}t=n}var i=[];for(r=1;r<7;r+=2)i.push(parseInt("0x"+t.slice(r,r+2)));return"rgb("+i.join(",")+")"}return t}function Qs(e){const t=e;if(4===t.length){let e="#";for(var n=1;n<4;n+=1){const r=t.slice(n,n+1);e+=r.concat(r)}return e}return t}function ea(e){if("object"==typeof e||!e)return;const t=e.toLowerCase().substring(0,1);return"#"===t?bs.Hex:"r"===t||"("===t?bs.RGBA:"h"===t?bs.Hsla:bs.RGBA}function ta(e){if(e){var t=e.toLowerCase().match(/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i);if(t){var n,r,i,o=(parseFloat(t[1])%360+360)%360/360,s=parseFloat(t[2])/(/%$/.test(t[2])?100:1),a=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===s)n=r=i=a;else{var c=a<=.5?a*(s+1):a+s-a*s,l=2*a-c;n=na(l,c,o+1/3),r=na(l,c,o),i=na(l,c,o-1/3)}return`rgba(${n=Math.round(255*n)},${r=Math.round(255*r)},${i=Math.round(255*i)},${t[4]?parseFloat(t[4]):1})`}}}function na(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ra(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/.test(e)}function ia(e,t,n){const r=(e<<16|t<<8|n).toString(16);return"#"+new Array(Math.abs(r.length-7)).join("0")+r}function oa(e){let t=e.toLowerCase();if(ra(e)){if(4===t.length){let e="#";for(let n=1;n<4;n+=1)e+=t.slice(n,n+1).concat(t.slice(n,n+1));t=e}const e=[];for(let n=1;n<7;n+=2)e.push(parseInt("0x"+t.slice(n,n+2)));return"RGB("+e.join(",")+")"}return t}function sa(e){if(!ra(e))return;const[t,n,r]=oa(e).replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map(e=>Number(e));return.299*t+.578*n+.114*r<192}function aa(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${da(e.substring(0,2),t)}${da(e.substring(2,4),t)}${da(e.substring(4,6),t)}`}function ca(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${la(e.substring(0,2),t)}${la(e.substring(2,4),t)}${la(e.substring(4,6),t)}`}function la(e,t){const n=parseInt(e,16)+t,r=n>255?255:n;return r.toString(16).length>1?r.toString(16):`0${r.toString(16)}`}function ua(e,t,n){const r=[e,t,n].map(e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return.2126*r[0]+.7152*r[1]+.0722*r[2]}function fa(e){return n=[0,0,0],(ua(~~(t=oa(e.substring(1)).split(","))[0],~~t[1],~~t[2])+.05)/(ua(n[0],n[1],n[2])+.05)>=12?"#000000":"#FFFFFF";var t,n}function da(e,t){const n=parseInt(e,16)-t,r=n<0?0:n;return r.toString(16).length>1?r.toString(16):`0${r.toString(16)}`}function ha(e){const t=(new Date).getTime();let n=(new Date).getTime();for(;n-t<e;)n=(new Date).getTime()}function pa(e){return new Promise(t=>setTimeout(t,e))}function ma(e,t,n,r="json",i){const o={baseURL:ir.Config?.ServiceURL.DefaultWebAPI,timeout:6e4,params:e,paramsSerializer:{serialize:function(e){return Z.stringify(e,{indices:!1,arrayFormat:"repeat"})}},headers:{"Content-Type":"application/json",Authorization:"bearer "+gr()?.token},responseType:r,cancelToken:i};if(n)for(let s in n)o.headers[s]=n[s];return ir.SystemID&&(o.headers.sysid=ir.SystemID,ir.SystemGroup&&(o.headers.sysgroup=ir.SystemGroup)),void 0!==t&&(o.baseURL=t),o}function ga(e,t,n,r,i="json",o,s){const a=ma(n,t,r,i,o);return s&&s>=2e4&&(a.timeout=s),ir.Axios?.get(e,a).catch(function(t){va(t,a.baseURL,e,"Get")})}function va(e,t,n,r="Get"){const i=`${t}${n}`;if(e&&e.response){let t=!1;const n=e.response.status;switch(n){case 400:e.message="错误请求";break;case 401:e.message="未授权,请重新登录";break;case 403:e.message="拒绝访问";break;case 404:e.message="请求错误,未找到该资源";break;case 405:e.message="请求方法未允许";break;case 408:e.message="请求超时";break;case 500:const n=e.response.data;if(n){const r=n.indexOf(":"),i=n.indexOf("\n");if(r>0&&i-r>2){const o=n.substring(r+2,i);o.indexOf("System.Exception")>0?e.message="后台服务内部出错!":(t=!0,e.message=o)}else t=!0,e.message=n}else e.message="服务器端出错";break;case 501:e.message="网络未实现";break;case 502:e.message="网络错误";break;case 503:e.message="服务不可用";break;case 504:e.message="网络超时";break;case 505:e.message="http版本不支持该请求";break;default:e.message=`连接错误${e.response.status}`}let r={address:i,code:n,isExceptionInfo:t,message:e.message,result:e.response.data};if(ir.EventBus.emit(Zn.AxiosRequestErrorEvent,r),t)throw new Error(e.message)}else{if(e?.message)throw new Error(e.message);console.error(e,"Http请求错误!")}}function ya(e,t,n,r,i,o="json",s){const a=ma(r,t,i,o);s&&s>=2e4&&(a.timeout=s),a.headers["Content-Type"]="multipart/form-data";const c=function(e){let t=new FormData;return e&&Object.keys(e).forEach(n=>{if(!e)return;let r=e[n];null!=r&&(Nr(r)?r.forEach(e=>{t.append(n,Ea(e))}):t.append(n,Ea(r)))}),t}(n);return ir.Axios?.post(e,c,a).catch(function(e){va(e,t,a.baseURL,"Post")})}function wa(e,t,n,r,i,o="json",s){const a=ma(r,t,i,o);return s&&s>=2e4&&(a.timeout=s),ir.Axios?.post(e,n,a).catch(function(n){va(n,t,e,"Post")})}function ba(e,t,n=!1){return e.startsWith("http")?ga("",e,t):n||t?ga(e,void 0,t):ga(e,"",void 0)}function Sa(e,t){return ya(e,void 0,t)}function xa(e,t){return ir.Axios?.get(e,{params:t}).catch(function(t){va(t,e,"","外部Get")})}function Ea(e){return e instanceof Blob?e:e.toString()}function Ca(e,t,n){const r=t??cr.getFileName(e);ga("",e,n,void 0,"blob").then(e=>{e.data&&Zo(e.data,r)})}!function(e){e[e.RGBA=0]="RGBA",e[e.Hex=1]="Hex",e[e.Hsla=2]="Hsla"}(bs||(bs={}));var ka,Ta=((e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}})(()=>{Ss=globalThis||self}),Aa=ie((e,t)=>{var n;Ta(),n="undefined"!=typeof window?window:void 0!==Ss?Ss:"undefined"!=typeof self?self:{},t.exports=n}),Ma=ie((e,t)=>{t.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString}),za=ie((e,t)=>{var n=function(e){return e.replace(/^\s+|\s+$/g,"")},r=function(e){return"[object Array]"===Object.prototype.toString.call(e)};t.exports=function(e){if(!e)return{};for(var t=Object.create(null),i=n(e).split("\n"),o=0;o<i.length;o++){var s=i[o],a=s.indexOf(":"),c=n(s.slice(0,a)).toLowerCase(),l=n(s.slice(a+1));void 0===t[c]?t[c]=l:r(t[c])?t[c].push(l):t[c]=[t[c],l]}return t}}),Oa=ie((e,t)=>{t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty}),Da=ie((e,t)=>{var n=Aa(),r=Ma(),i=za(),o=Oa();function s(e,t,n){var i=e;return r(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=o(t,{uri:e}),i.callback=n,i}function a(e,t,n){return c(t=s(e,t,n))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),v)try{e=JSON.parse(e)}catch(e){}return e}function o(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,y)}function s(){if(!l){var t;clearTimeout(f),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var o=y,s=null;return 0!==t?(o={body:r(),statusCode:t,method:h,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(o.headers=i(u.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),n(s,o,o.body)}}var c,l,u=e.xhr||null;u||(u=e.cors||e.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var f,d=u.url=e.uri||e.url,h=u.method=e.method||"GET",p=e.body||e.data,m=u.headers=e.headers||{},g=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:u};if("json"in e&&!1!==e.json&&(v=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(s,0)},u.onload=s,u.onerror=o,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=o,u.open(h,d,!g,e.username,e.password),g||(u.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(f=setTimeout(function(){if(!l){l=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",o(e)}},e.timeout)),u.setRequestHeader)for(c in m)m.hasOwnProperty(c)&&u.setRequestHeader(c,m[c]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(p||null),u}t.exports=a,t.exports.default=a,a.XMLHttpRequest=n.XMLHttpRequest||function(){},a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:n.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){a["delete"===e?"del":e]=function(t,n,r){return(n=s(t,n,r)).method=e.toUpperCase(),c(n)}})}),La=oe(Da(),1),_a=[200,201,202,204,308],Ra=[408,502,503,504],Ia=class{endpoint;file;headers;method;chunkSize;attempts;delayBeforeAttempt;md5;chunkCount;chunkByteSize;cacheSize=3;currentMaxIndex=0;maxFileBytes;endpointValue;totalChunks;attemptCount;offline;paused;success;isResumed=!1;mapXhrRequest;okRecordList;eventTarget;fileName;constructor(e){this.endpoint=e.endpoint,this.file=e.file,this.fileName=encodeURI(this.file.name),this.headers=e.headers||{},this.method=e.method||"PUT",this.chunkSize=e.chunkSize||5120,this.attempts=e.attempts||5,this.delayBeforeAttempt=e.delayBeforeAttempt||1,this.md5=e.md5||"",null!=e.threadNumber&&e.threadNumber>=2&&(this.cacheSize=e.threadNumber),this.maxFileBytes=1024*(e.maxFileSize||0),this.chunkCount=0,this.chunkByteSize=1024*this.chunkSize,this.totalChunks=Math.ceil(this.file.size/this.chunkByteSize),this.attemptCount=0,this.offline=!1,this.paused=!1,this.success=!1,this.mapXhrRequest=new Map,this.okRecordList=[],this.eventTarget=ae(),this.validateOptions(),this.getEndpoint().then(()=>{for(let e=0;e<this.cacheSize;e++){const t=e;if(t<this.totalChunks){const e=100*t;e>0?pa(e).then(e=>{this.sendChunks(t)}):this.sendChunks(t)}}}),"undefined"!=typeof window&&(window.addEventListener("online",()=>{this.offline&&(this.offline=!1,this.dispatch("online"),this.sendChunks())}),window.addEventListener("offline",()=>{this.offline=!0,this.dispatch("offline")}))}on(e,t){this.eventTarget.on(e,t)}abort(){this.pause(),this.mapXhrRequest.size>0&&(this.mapXhrRequest.forEach((e,t)=>{e&&e.abort()}),this.mapXhrRequest.clear())}pause(){this.paused=!0}async resume(){this.paused=!1,this.isResumed=!0;for(let e=0;e<this.totalChunks;e++)this.mapXhrRequest.size>=this.cacheSize&&await pa(500*(this.mapXhrRequest.size-this.cacheSize+1)),this.sendChunks(e)}dispatch(e,t){this.eventTarget.emit(e,t)}validateOptions(){if(!this.endpoint||"function"!=typeof this.endpoint&&"string"!=typeof this.endpoint)throw new TypeError("endpoint必须为:文件上传URL字符串,或返回地址的函数!");if(!(this.file instanceof File))throw new TypeError("file必须为文件对象");if(this.headers&&"object"!=typeof this.headers)throw new TypeError("文件头必须为对象或空!");if(this.chunkSize&&("number"!=typeof this.chunkSize||this.chunkSize<=0||this.chunkSize%256!=0))throw new TypeError("chunkSize必须大于0,并是256的整数倍");if(this.maxFileBytes>0&&this.maxFileBytes<this.file.size)throw new Error(`文件大小超过最大允许值:(${this.file.size} > ${this.maxFileBytes})`);if(this.attempts&&("number"!=typeof this.attempts||this.attempts<=0))throw new TypeError("重试次数必须为正数!");if(this.delayBeforeAttempt&&("number"!=typeof this.delayBeforeAttempt||this.delayBeforeAttempt<0))throw new TypeError("延时重试时间必须为正数!默认为1")}getEndpoint(){return"string"==typeof this.endpoint?(this.endpointValue=this.endpoint,Promise.resolve(this.endpoint)):this.endpoint(this.file).then(e=>(this.endpointValue=e,this.endpointValue))}getChunk(e=0){return new Promise(t=>{const n=1===this.totalChunks?this.file.size:this.chunkByteSize,r=n*e,i=new FileReader;i.onload=function(){null!==this.result?t({chunkIndex:e,chunkContent:new Blob([this.result],{type:"application/octet-stream"})}):t(void 0)},i.readAsArrayBuffer(this.file.slice(r,r+n))})}xhrPromise(e){return new Promise((t,n)=>{const r=e.headers,i=Number(r.ChunkIndex),o=(0,La.default)({...e},(e,r)=>(this.mapXhrRequest.delete(i),e?n(e):t(r)));this.mapXhrRequest.set(i,o)})}sendChunk(e,t){if(!t)return;const n=e*this.chunkByteSize,r=n+t.size-1,i={...this.headers,FileName:this.fileName,FileMD5:this.md5,ChunkIndex:e.toString(),"Content-Type":this.file.type,"Content-Range":`bytes ${n}-${r}/${this.file.size}`};return this.dispatch("attempt",{chunkNumber:e,chunkSize:t.size}),this.endpointValue?this.xhrPromise({headers:i,url:this.endpointValue,method:this.method,body:t}):(console.warn("文件上传endpointValue不能为空!"),void this.dispatch("error",{message:"文件上传endpointValue不能为空!取消上传!",chunk:e,attempts:this.attemptCount}))}sendChunks(e=0){this.paused||this.offline||this.success||this.okRecordList.indexOf(e)<0&&(this.currentMaxIndex<e&&(this.currentMaxIndex=e),this.getChunk(e).then(e=>{if(e){const{chunkIndex:t,chunkContent:n}=e;return this.sendChunk(t,n)}}).then(t=>{if(t)if(_a.includes(t.statusCode)){const n=JSON.parse(t.body).RESULTVALUE;if(n.STATE){this.attemptCount=0,this.chunkCount=this.chunkCount+1;const e=Math.round(n.INDEX/this.chunkByteSize);this.mapXhrRequest.delete(e),this.dispatch("chunkSuccess",{chunkCount:this.chunkCount,attempts:this.attemptCount,chunkNumber:e}),this.okRecordList.push(e),this.chunkCount<this.totalChunks&&!this.isResumed&&this.currentMaxIndex<this.totalChunks-1&&(this.currentMaxIndex++,this.sendChunks(this.currentMaxIndex));const t=100*this.chunkCount/this.totalChunks;this.dispatch("progress",t),n.END&&(this.success=!0,this.dispatch("success",this.fileName),this.okRecordList.length=0)}else{const t=`服务器错误:${n.NAME},停止上传。`;this.dispatch("error",{message:t,chunkNumber:e,attempts:0}),this.mapXhrRequest.delete(e),pa(1e3).then(t=>this.sendChunks(e))}}else if(null!=t&&Ra.includes(t.statusCode)){if(this.paused||this.offline)return}else{if(this.paused||this.offline)return;this.dispatch("error",{message:`服务器错误:${t?.statusCode},停止上传。`,chunkNumber:this.chunkCount,attempts:this.attemptCount})}else console.warn("上传失败的索引为:"+e)}).catch(e=>{!this.paused&&this.offline}))}},Pa=e=>new Ia(e),Na=new class{hasClass(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}addClass(e,t){this.hasClass(e,t)||(e.className+=" "+t)}removeClass(e,t){if(this.hasClass(e,t)){const n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}toggleClass(e,t){this.hasClass(e,t)?this.removeClass(e,t):this.addClass(e,t)}setCSSProperty(e,t,n){e?.style.setProperty(t,n)}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():0}getViewportOffset(e){const t=document.documentElement,n=t.scrollLeft,r=t.scrollTop,i=t.clientLeft,o=t.clientTop,s=globalThis.scrollX,a=globalThis.scrollY,{left:c,top:l,width:u,height:f}=this.getBoundingClientRect(e),d=c+s-((s||n)-(i||0)),h=l+a-((a||r)-(o||0)),p=globalThis.document.documentElement.clientWidth,m=globalThis.document.documentElement.clientHeight;return{left:d,top:h,right:p-u-d,bottom:m-f-h,rightIncludeBody:p-d,bottomIncludeBody:m-h}}hackCss(e,t){const n={};return["webkit","Moz","ms","OT"].forEach(r=>{n[`${r}${cr.UpperFirst(e)}`]=t}),{...n,[e]:t}}on(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}off(e,t,n){e&&t&&n&&e.removeEventListener(t,n,!1)}once(e,t,n){const r=function(...i){n&&n.apply(this,i),this.off(e,t,r)};this.on(e,t,r)}},Ba=E({isLock:!1,lockTime:0});function ja(e){Ba.isLock=e,e&&(vr(),console.log("锁屏了……"))}function Fa(){return Ba.isLock}function Wa(){clearInterval(ka),globalThis.location.href.indexOf("/login")>0||Ba.isLock||(ja(!1),Ba.lockTime=function(){let e=3600;return ir.Config.UI?.LockTime&&ir.Config.UI?.LockTime>=10&&(e=ir.Config.UI.LockTime),e}(),ka=setInterval(()=>{if(Ba.lockTime--,Ba.lockTime<=0)return ja(!0),clearInterval(ka)},1e3))}function Ua(){Wa(),document.addEventListener("mousedown",Wa),document.addEventListener("mousemove",Wa)}function $a(){document.removeEventListener("mousedown",Wa),document.removeEventListener("mousemove",Wa)}var Ha,qa=ie((e,t)=>{Ta(),function(n){"object"==typeof e&&void 0!==t?t.exports=n():"function"==typeof define&&define.amd?define([],n):("undefined"!=typeof window?window:void 0!==Ss?Ss:"undefined"!=typeof self?self:this).localforage=n()}(function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof se&&se;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){return i(t[s][1][e]||e)},u,u.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof se&&se,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(u),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||n()}}).call(this,void 0!==Ss?Ss:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){var r=e(1);function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)})}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var s=p(function(){t(i,r)});"error"===s.status&&r(s.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var n=new this.constructor(i);return this.state!==c?f(n,this.state===a?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return o.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then(function(e){s[i]=e,++a!==n||r||(r=!0,o.resolve(l,s))},function(e){r||(r=!0,o.reject(l,e))})}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=-1,a=new this(i);++s<n;)c(e[s]);return a;function c(e){t.resolve(e).then(function(e){r||(r=!0,o.resolve(a,e))},function(e){r||(r=!0,o.reject(a,e))})}}},{1:1}],3:[function(e,t,n){(function(t){"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==Ss?Ss:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var s=Promise;function a(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function c(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function l(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f="local-forage-detect-blob-support",d=void 0,h={},p=Object.prototype.toString,m="readonly",g="readwrite";function v(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function y(e){return"boolean"==typeof d?s.resolve(d):function(e){return new s(function(t){var n=e.transaction(f,g),r=o([""]);n.objectStore(f).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);t(navigator.userAgent.match(/Edge\//)||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}(e).then(function(e){return d=e})}function w(e){var t=h[e.name],n={};n.promise=new s(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function b(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function S(e,t){var n=h[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function x(e,t){return new s(function(n,r){if(h[e.name]=h[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);w(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var s=i.open.apply(i,o);t&&(s.onupgradeneeded=function(t){var n=s.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(f)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),s.onerror=function(e){e.preventDefault(),r(s.error)},s.onsuccess=function(){var t=s.result;t.onversionchange=function(e){e.target.close()},n(t),b(e)}})}function E(e){return x(e,!1)}function C(e){return x(e,!0)}function k(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function T(e){return o([v(atob(e.data))],{type:e.type})}function A(e){return e&&e.__local_forage_encoded_blob}function M(e){var t=this,n=t._initReady().then(function(){var e=h[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return c(n,e,e),n}function z(e,t,n,r){void 0===r&&(r=1);try{n(null,e.db.transaction(e.storeName,t))}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),C(e)}).then(function(){return function(e){w(e);for(var t=h[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,E(e).then(function(t){return e.db=t,k(e)?C(e):t}).then(function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r}).catch(function(t){throw S(e,t),t})}(e).then(function(){z(e,t,n,r-1)})}).catch(n);n(i)}}var O={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=h[n.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},h[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=M);var o=[];function a(){return s.resolve()}for(var c=0;c<i.forages.length;c++){var l=i.forages[c];l!==t&&o.push(l._initReady().catch(a))}var u=i.forages.slice(0);return s.all(o).then(function(){return n.db=i.db,E(n)}).then(function(e){return n.db=e,k(n,t._defaultConfig.version)?C(n):e}).then(function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var o=u[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}})},_support:function(){try{if(!i||!i.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new s(function(t,r){n.ready().then(function(){z(n._dbInfo,m,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).openCursor(),a=1;s.onsuccess=function(){var n=s.result;if(n){var r=n.value;A(r)&&(r=T(r));var i=e(r,n.key,a++);void 0!==i?t(i):n.continue()}else t()},s.onerror=function(){r(s.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new s(function(t,r){n.ready().then(function(){z(n._dbInfo,m,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),A(e)&&(e=T(e)),t(e)},s.onerror=function(){r(s.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var i=new s(function(n,i){var o;r.ready().then(function(){return o=r._dbInfo,"[object Blob]"===p.call(t)?y(o.db).then(function(e){return e?t:(n=t,new s(function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){e({__local_forage_encoded_blob:!0,data:btoa(t.target.result||""),type:n.type})},r.readAsBinaryString(n)}));var n}):t}).then(function(t){z(r._dbInfo,g,function(o,s){if(o)return i(o);try{var a=s.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var c=a.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),n(t)},s.onabort=s.onerror=function(){i(c.error?c.error:c.transaction.error)}}catch(e){i(e)}})}).catch(i)});return a(i,n),i},removeItem:function(e,t){var n=this;e=l(e);var r=new s(function(t,r){n.ready().then(function(){z(n._dbInfo,g,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(s.error)},o.onabort=function(){r(s.error?s.error:s.transaction.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r},clear:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){z(t._dbInfo,g,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){n(o.error?o.error:o.transaction.error)}}catch(e){n(e)}})}).catch(n)});return a(n,e),n},length:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){z(t._dbInfo,m,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return a(n,e),n},key:function(e,t){var n=this,r=new s(function(t,r){e<0?t(null):n.ready().then(function(){z(n._dbInfo,m,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName),a=!1,c=s.openKeyCursor();c.onsuccess=function(){var n=c.result;n?0===e||a?t(n.key):(a=!0,n.advance(e)):t(null)},c.onerror=function(){r(c.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r},keys:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){z(t._dbInfo,m,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];o.onsuccess=function(){var t=o.result;t?(s.push(t.key),t.continue()):e(s)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return a(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n,r=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName),e.name){var o=e.name===r.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):E(e).then(function(t){var n=h[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t});n=e.storeName?o.then(function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;w(e);var r=h[e.name],o=r.forages;t.close();for(var a=0;a<o.length;a++){var c=o[a];c._dbInfo.db=null,c._dbInfo.version=n}return new s(function(t,r){var o=i.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}).then(function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,b(n._dbInfo)}}).catch(function(t){throw(S(e,t)||s.resolve()).catch(function(){}),t})}}):o.then(function(t){w(e);var n=h[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;return new s(function(t,n){var r=i.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}).then(function(e){n.db=e;for(var t=0;t<r.length;t++)b(r[t]._dbInfo)}).catch(function(t){throw(S(e,t)||s.resolve()).catch(function(){}),t})})}else n=s.reject("Invalid arguments");return a(n,t),n}},D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=/^~~local_forage_type~([^~]+)~/,_="__lfsc__:",R="arbf",I="blob",P="si08",N="ui08",B="uic8",j="si16",F="si32",W="ur16",U="ui32",$="fl32",H="fl64",q=Object.prototype.toString;function V(e){var t,n,r,i,o,s=.75*e.length,a=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),u=new Uint8Array(l);for(t=0;t<a;t+=4)n=D.indexOf(e[t]),r=D.indexOf(e[t+1]),i=D.indexOf(e[t+2]),o=D.indexOf(e[t+3]),u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l}function G(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=D[n[t]>>2],r+=D[(3&n[t])<<4|n[t+1]>>4],r+=D[(15&n[t+1])<<2|n[t+2]>>6],r+=D[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var X={serialize:function(e,t){var n="";if(e&&(n=q.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===q.call(e.buffer))){var r,i=_;e instanceof ArrayBuffer?(r=e,i+=R):(r=e.buffer,"[object Int8Array]"===n?i+=P:"[object Uint8Array]"===n?i+=N:"[object Uint8ClampedArray]"===n?i+=B:"[object Int16Array]"===n?i+=j:"[object Uint16Array]"===n?i+=W:"[object Int32Array]"===n?i+=F:"[object Uint32Array]"===n?i+=U:"[object Float32Array]"===n?i+=$:"[object Float64Array]"===n?i+=H:t(new Error("Failed to get type for BinaryArray"))),t(i+G(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+G(this.result);t(_+I+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,9)!==_)return JSON.parse(e);var t,n=e.substring(13),r=e.substring(9,13);if(r===I&&L.test(n)){var i=n.match(L);t=i[1],n=n.substring(i[0].length)}var s=V(n);switch(r){case R:return s;case I:return o([s],{type:t});case P:return new Int8Array(s);case N:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case j:return new Int16Array(s);case W:return new Uint16Array(s);case F:return new Int32Array(s);case U:return new Uint32Array(s);case $:return new Float32Array(s);case H:return new Float64Array(s);default:throw new Error("Unkown type: "+r)}},stringToBuffer:V,bufferToString:G};function Y(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function Z(e,t,n,r,i,o){e.executeSql(n,r,i,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,a){a.rows.length?o(e,s):Y(e,t,function(){e.executeSql(n,r,i,o)},o)},o):o(e,s)},o)}function K(e,t,n,r){var i=this;e=l(e);var o=new s(function(o,s){i.ready().then(function(){void 0===t&&(t=null);var a=t,c=i._dbInfo;c.serializer.serialize(t,function(t,l){l?s(l):c.db.transaction(function(n){Z(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){o(a)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(K.apply(i,[e,a,n,r-1]));s(t)}})})}).catch(s)});return a(o,n),o}var J={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new s(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(i){Y(i,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=X,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new s(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){Z(n,i,"SELECT * FROM "+i.storeName,[],function(n,r){for(var o=r.rows,s=o.length,a=0;a<s;a++){var c=o.item(a),l=c.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=e(l,c.key,a+1)))return void t(l)}t()},function(e,t){r(t)})})}).catch(r)});return a(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new s(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){Z(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)},function(e,t){r(t)})})}).catch(r)});return a(r,t),r},setItem:function(e,t,n){return K.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=l(e);var r=new s(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){Z(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return a(r,t),r},clear:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Z(t,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return a(n,e),n},length:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Z(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return a(n,e),n},key:function(e,t){var n=this,r=new s(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){Z(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){t(n.rows.length?n.rows.item(0).key:null)},function(e,t){r(t)})})}).catch(r)});return a(r,t),r},keys:function(e){var t=this,n=new s(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Z(t,r,"SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)},function(e,t){n(t)})})}).catch(n)});return a(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return r=e.name?new s(function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(function(e){return new s(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})},function(e,t){n(t)})},function(e){n(e)})})}(r))}).then(function(e){return new s(function(t,n){e.db.transaction(function(r){function i(e){return new s(function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(e,t){n(t)})})}for(var o=[],a=0,c=e.storeNames.length;a<c;a++)o.push(i(e.storeNames[a]));s.all(o).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):s.reject("Invalid arguments"),a(r,t),r}};function Q(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}var ee={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=Q(e,this._defaultConfig),!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0?(this._dbInfo=t,t.serializer=X,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,s=1,a=0;a<o;a++){var c=localStorage.key(a);if(0===c.indexOf(r)){var l=localStorage.getItem(c);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,c.substring(i),s++)))return l}}});return a(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r});return a(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var i=r.ready().then(function(){void 0===t&&(t=null);var n=t;return new s(function(i,o){var s=r._dbInfo;s.serializer.serialize(t,function(t,r){if(r)o(r);else try{localStorage.setItem(s.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}})})});return a(i,n),i},removeItem:function(e,t){var n=this;e=l(e);var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return a(r,t),r},clear:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return a(n,e),n},length:function(e){var t=this.keys().then(function(e){return e.length});return a(t,e),t},key:function(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return a(r,t),r},keys:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r});return a(n,e),n},dropInstance:function(e,t){if(t=u.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return r=e.name?new s(function(t){e.storeName?t(Q(e,i._defaultConfig)):t(e.name+"/")}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}}):s.reject("Invalid arguments"),a(r,t),r}},te=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},ne=function(e,t){for(var n=e.length,r=0;r<n;){if(te(e[r],t))return!0;r++}return!1},re=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ie={},oe={},se={INDEXEDDB:O,WEBSQL:J,LOCALSTORAGE:ee},ae=[se.INDEXEDDB._driver,se.WEBSQL._driver,se.LOCALSTORAGE._driver],ce=["dropInstance"],le=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ce),ue={description:"",driver:ae.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function fe(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function de(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(re(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}t.exports=new(function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),se)if(se.hasOwnProperty(n)){var r=se[n],i=r._driver;this[n]=i,ie[i]||this.defineDriver(r)}this._defaultConfig=de({},ue),this._config=de({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new s(function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=le.concat("_initStorage"),c=0,l=o.length;c<l;c++){var u=o[c];if((!ne(ce,u)||e[u])&&"function"!=typeof e[u])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=s.reject(t);return a(n,arguments[arguments.length-1]),n}},n=0,r=ce.length;n<r;n++){var i=ce[n];e[i]||(e[i]=t(i))}}();var f=function(n){ie[r]&&console.info("Redefining LocalForage driver: "+r),ie[r]=e,oe[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(f,n):f(!!e._support):f(!0)}catch(e){n(e)}});return c(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=ie[e]?s.resolve(ie[e]):s.reject(new Error("Driver not found."));return c(r,t,n),r},e.prototype.getSerializer=function(e){var t=s.resolve(X);return c(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return c(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;re(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function a(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var l=null!==this._driverSet?this._driverSet.catch(function(){return s.resolve()}):s.resolve();return this._driverSet=l.then(function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then(function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(a).catch(n)}o();var c=new Error("No available storage method found.");return r._driverSet=s.reject(c),r._driverSet}()}}(i)})}).catch(function(){o();var e=new Error("No available storage method found.");return r._driverSet=s.reject(e),r._driverSet}),c(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!oe[e]},e.prototype._extend=function(e){de(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=le.length;e<t;e++)fe(this,le[e])},e.prototype.createInstance=function(t){return new e(t)},e}())},{3:3}]},{},[4])(4)})}),Va=oe(qa(),1),Ga={exports:{}};Ga.exports,Ha=()=>{const e=globalThis;e.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");let t=null,n=!1;const r=e.WebStreamsPolyfill||{};let i=/constructor/i.test(e.HTMLElement)||!!e.safari||!!e.WebKitPoint;const o={createWriteStream:function(e,r=null,a=null){let c={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},l=0,u=null,f=null,d=null;if(Number.isFinite(r)?([a,r]=[r,a],console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),c.size=a,c.writableStrategy=r):r&&r.highWaterMark?(console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),c.size=a,c.writableStrategy=r):c=r||{},!i){t||(t=s(o.mitm)),f=new MessageChannel,e=encodeURIComponent(e.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");const r={transferringReadable:n,pathname:c.pathname||Math.random().toString().slice(-6)+"/"+e,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+e}};c.size&&(r.headers["Content-Length"]=c.size);const i=[r,"*",[f.port2]];if(n){d=new o.TransformStream(void 0,c.writableStrategy,c.readableStrategy);const e=d.readable;f.port1.postMessage({readableStream:e},[e])}f.port1.onmessage=e=>{e.data.download?(t.isPopup&&(t.remove(),t=null,s(o.mitm)),s(e.data.download)):e.data.abort&&(h=[],f.port1.postMessage("abort"),f.port1.onmessage=null,f.port1.close(),f.port2.close(),f=null)},t.loaded?t.postMessage(...i):t.addEventListener("load",()=>{t.postMessage(...i)},{once:!0})}let h=[];return!i&&d&&d.writable||new o.WritableStream({write(e){if(!(e instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");i?h.push(e):(f.port1.postMessage(e),l+=e.length,u&&(location.href=u,u=null))},close(){if(i){const t=new Blob(h,{type:"application/octet-stream; charset=utf-8"}),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download=e,n.click()}else f.port1.postMessage("end")},abort(){h=[],f.port1.postMessage("abort"),f.port1.onmessage=null,f.port1.close(),f.port2.close(),f=null}},c.writableStrategy)},WritableStream:e.WritableStream||r.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"./mitm.html"};function s(e){if(!e)throw new Error("meh");const t=document.createElement("iframe");return t.hidden=!0,t.src=e,t.loaded=!1,t.name="iframe",t.isIframe=!0,t.postMessage=(...e)=>t.contentWindow.postMessage(...e),t.addEventListener("load",()=>{t.loaded=!0},{once:!0}),document.body.appendChild(t),t}try{new Response(new ReadableStream),"serviceWorker"in navigator||(i=!0)}catch(e){i=!0}return(()=>{try{(()=>{const{readable:e}=new TransformStream,t=new MessageChannel;t.port1.postMessage(e,[e]),t.port1.close(),t.port2.close(),n=!0,Object.defineProperty(o,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})})()}catch(e){}})(),o},void 0!==Ga?Ga.exports=Ha():"function"==typeof define&&"object"==typeof define.amd?define(Ha):(void 0).streamSaver=Ha();var Xa=(null==Ga.exports?{}:Ga.exports).default||Ga.exports,Ya=class{fileID;downloadURL;ChunkUnitM=1048576;chunkByteSize;totalChunks=1;currentDB;keys;fileMetaData=null;finishNum=0;eventTarget;cancelSource;isStarting=!1;fileName;cacheSize=6;requestTimeout=6e4;constructor(e,t,n=3,r=6,i=6e4){this.fileID=e,this.downloadURL=t,this.chunkByteSize=n*this.ChunkUnitM,this.eventTarget=ae(),this.initIndexDB(),r>=3&&(this.cacheSize=r),i>this.requestTimeout&&(this.requestTimeout=i)}on(e,t){this.eventTarget.on(e,t)}dispatch(e,t){this.eventTarget.emit(e,t)}dispatchError(e){this.eventTarget.emit("error",e)}dispatchInfo(e){this.eventTarget.emit("info",e)}async queryDownloadFileMeta(e,t="",n){this.dispatchInfo("开始获取文件信息");const r=await ga(t,e,n);let i=null;return r&&200===r.status&&(i=r.data),i}async getIFileMeta(){if(null===this.fileMetaData){const e=await(this.currentDB?.getItem("fileinfo"));this.fileMetaData=e||null}return this.fileMetaData}initIndexDB(){this.currentDB=Va.default.createInstance({name:this.fileID,driver:Va.default.INDEXEDDB})}async init(e){if(this.finishNum=0,e){const t="fileinfo";this.fileMetaData={id:e.id,name:e.name,length:e.length,downloadID:e.downloadID,chunkSize:this.chunkByteSize},this.fileName=e.name,this.currentDB?.setItem(t,this.fileMetaData)}if(null!=this.fileMetaData){const e=this.fileMetaData.chunkSize;null!=e&&e>0&&(this.chunkByteSize=e)}this.fileMetaData&&(this.totalChunks=Math.ceil(this.fileMetaData.length/this.chunkByteSize)),this.dispatchInfo("完成初始化文件信息,总分片:"+this.totalChunks),this.currentDB&&(this.keys=await this.currentDB.keys())}getTotalChunks(){return this.totalChunks}pause(){this.cancelSource&&this.isStarting&&(this.cancelSource.cancel(),this.isStarting=!1),this.dispatchInfo("已暂停下载任务")}restart(){this.dispatchInfo("正在重启下载任务"),this.download()}delete(){this.cancelSource&&this.cancelSource.cancel(),Va.default.dropInstance({name:this.fileID}),this.currentDB=void 0,this.keys&&(this.keys.length=0,this.keys=void 0),this.finishNum=0,this.downloadProgress(),this.outputProgress(0),this.dispatchInfo("已删除下载任务")}sleep(e){return new Promise(t=>setTimeout(t,e))}async download(e,t,n){let r=e;if(!r&&this.downloadURL&&(r=this.downloadURL),!r)throw Error("下载URL不能为空!");this.currentDB||this.initIndexDB();const i=ir.Axios.CancelToken;this.cancelSource=i.source(),this.isStarting=!0;const o={key:this.fileMetaData?.downloadID},s=n??o;let a=0;const c=this.cacheSize;let l=0;for(let u=0;u<this.totalChunks;u++){if(this.keys&&this.keys?.indexOf(u.toString())>=0){a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());continue}const e=u*this.chunkByteSize;let n=e+this.chunkByteSize-1;this.fileMetaData&&n>this.fileMetaData.length&&(n=this.fileMetaData.length-1);const i={range:`bytes=${e}-${n}`};for(;l>=c;)await this.sleep(200);const o=u.toString();this.dispatchInfo(`开始下载分片${u+1}/${this.totalChunks}`),l++,ga(r,t,s,i,"arraybuffer",this.cancelSource?.token,this.requestTimeout).then(async e=>{const t=e.data;l--,await(this.currentDB?.setItem(o,t)),a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());const n=parseInt(o)+1;this.dispatchInfo(`完成下载分片${n}/${this.totalChunks}`),this.savefile()}).catch(e=>{l--;const t=parseInt(o)+1;this.dispatchError(`下载第${t})个分片内容失败!`)})}this.finishNum===this.totalChunks&&this.savefile()}downloadProgress(){const e=100*this.finishNum/this.totalChunks;this.dispatch("downloadProgress",e)}outputProgress(e){const t=100*e/this.totalChunks;this.dispatch("saveProgress",t)}async savefile(){if(this.finishNum===this.totalChunks){if(!this.fileName)return void this.dispatchError("下载错误:文件名为空!");this.dispatchInfo("开始保存下载文件:"+this.fileName);const e=Xa.createWriteStream(this.fileName).getWriter();let t=0;for(let n=0;n<this.totalChunks;n++){const r=n.toString();let i=await(this.currentDB?.getItem(r));if(i||(i=await(this.currentDB?.getItem(r))),!i)return void this.dispatchError(`输出分片第${n+1})个内容为空,错误退出!`);let o=new Response(i).body;if(null===o)return void this.dispatchError(`输出分片第${n+1})个内容为空,错误退出!`);const s=o.getReader();for(;;){const{done:t,value:n}=await s.read();if(t)break;await e.write(n)}t++,this.outputProgress(t),this.dispatchInfo(`完成第${n+1}个分片输出`)}e.close(),Va.default.dropInstance({name:this.fileID}),this.dispatch("success"),this.isStarting=!1,this.dispatchInfo("完成文件下载")}}};function Za(e,t){let n="",r="";for(const i in t)n+=i+"="+encodeURIComponent(t[i])+"&";return n=n.replace(/&$/,""),r=/\?$/.test(e)?e+n:e.replace(/\/?$/,"?")+n,r}function Ka(e={},t={}){let n;for(n in t)Or(t[n])?e[n]=Ka(e[n],t[n]):e[n]=t[n];return e}function Ja(e,t,n={name:void 0}){const r=e.resolve({path:t,query:n});globalThis.open(r.href,"_blank")}function Qa(e){let t=e;if(e.endsWith("/")){if(e.endsWith("/#/"))return t;t=e+"#/"}else t=e+"/#/"}function ec(e,t="/"){return e?e.startsWith("/")?e.startsWith(t)?e:`${t}${e}`:"/"===t?`${t}${e}`:`${t}/${e}`:t}function tc(e,t){e.getRoutes().find(e=>"/"===e.path)||e.addRoute({name:"/",path:"/",redirect:t.path})}function nc(e){const t=[];let n=[];return Object.keys(e).forEach(t=>{const r=e[t];r&&n.push(...r)}),n=n.sort((e,t)=>{let n=0,r=0;return e.meta&&(n=null!=e.meta.index?Number(e.meta.index):100),t.meta&&(r=null!=t.meta.index?Number(t.meta.index):100),n-r}),t.push(...n),n.length=0,t}function rc(e,t=!1){let n=[];for(const r in e){const t=e[r];t&&t.length>0&&(n.push(...t),t.length=0),delete e[r]}return t&&(n=n.sort((e,t)=>{let n=0,r=0;return null!=e.index&&(n=Number(e.index)),null!=t.index&&(r=Number(t.index)),n-r})),n}function ic(e,t=!1){const n=[];let r=[];return Object.keys(e).forEach(t=>{const n=e[t];n&&r.push(...n)}),t&&(r=r.sort((e,t)=>{let n=0,r=0;return null!=e.index&&(n=Number(e.index)),null!=t.index&&(r=Number(t.index)),n-r})),n.push(...r),r.length=0,n}var oc=new Map;function sc(e,t=!1){if(t&&oc.size>0)return oc;oc.clear();for(const n in e){const t=e[n];t&&t.length>0&&(t.forEach(e=>{let t;const n=e.layoutID;oc.has(n)&&(t=oc.get(n)),t||(t=new Array,oc.set(n,t)),t&&t.push(e)}),t.length=0),delete e[n]}return oc}function ac(e,t="/"){let n=t;return e.redirect&&e.children?(n=e.path.startsWith(t)?e.path:t.endsWith("/")?t+e.path:t+"/"+e.path,ac(e.children[0],n)):(n=e.path.startsWith(t)?e.path:`${t}/${e.path}`,{title:e.meta?.title,fullPath:n,path:e.path,icon:e.meta?.icon,keepAlive:e.meta?.keepAlive,name:e.name})}function cc(e,t){const n=`${e}_${t}`;return ti.MD5(n)}function lc(e){const t=function(e){if(!e)return;const t=e,n=[];if(t)for(let r of t){const e=uc(r);e&&n.push(e)}return n}(e.bussinessRoutes),n=function(e){if(!e)return;const t=e;if(t&&t.length>0){const e=[];return t.forEach(t=>{const n=fc(t);n&&e.push(n)}),e}}(e.widgetMenuConfig),r=function(e){if(e&&e.length>0){const t=[];return e.forEach(e=>{const n=(r=e)?{id:r.id,label:r.label,layoutID:r.layoutID,container:r.container,preload:r.preload,afterid:r.afterid,bindid:r.bindid,group:r.group}:void 0;var r;n&&t.push(n)}),t}}(e.widgetConfig),i=function(e){if(e)return e.length>0?e:void 0}(e.functionList),o=e.pkgObject.version,s=e.pkgObject.name;return{id:cc(s,o),name:ir.Config.UI.SiteTitle,group:ir.Config.UI.Group,product:s,version:o,routes:t,widgetMenu:n,widgets:r,functions:i}}function uc(e){if(e){let t=0;e.meta?.hidden&&(t=1);let n={path:e.path,name:e.name,title:e.meta?.title,type:t,index:e.meta?.index};if(e.children){const t=[];for(let n of e.children){const e=uc(n);e&&t.push(e)}t.length>0&&(n.children=t)}return n}}function fc(e){if(!e)return;const t={name:e.name,index:e.index,path:e.path,type:e.type};return e.children&&e.children.length>0&&(t.children=[],e.children.forEach(e=>{const n=fc(e);n&&t.children?.push(n)})),t}function dc(e,t="IconifyList.ts"){let n="",r="const iconlist={\n",i=0;e.forEach(e=>{const t=e.split(":");if(t&&2===t.length){const o="icon"+i;n+=`import ${o} from '~icons/${t[0]}/${t[1]}'\n`,r+=`\t'${e}':${o},\n`,i++}}),i>0&&(r+="};\n",Zo(n+r+"export default iconlist;","IconifyList.ts"))}function hc(e,t){Jo(lc(e),t),ir.Message?.msg("导出系统功能权限文件成功!")}function pc(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d]/g,""),t=t.replace(/^0/g,""),t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t}function mc(e){let t=gc(e);return t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t=t.replace(/^100\.$/,"100"),t}function gc(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d.]/g,""),t=t.replace(/^0{2}$/g,"0"),t=t.replace(/^\./g,""),t=t.replace(".","$#$").replace(/\./g,"").replace("$#$","."),t=t.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),t}function vc(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[\.]*/g,""),t=t.replace(/(^0[\d]*)$/g,"0"),t=t.replace(/^0\d$/g,"0"),t=t.replace(/[^\d]/g,""),t}function yc(e){let t=e.replace(/[\u4e00-\u9fa5\s]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function wc(e){let t=e.replace(/[a-zA-Z]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function bc(e){return e.replace(/(^\s*)|(\s*$)/g,"")}function Sc(e){let t=gc(e);return t=t.toString().split("."),t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t=t.join("."),t}function xc(e,t="",n="red"){return t.replace(new RegExp(e,"gi"),`<span style='color: ${n}'>${e}</span>`)}function Ec(e,t="仟佰拾亿仟佰拾万仟佰拾元角分",n=""){let r=(e+="00").indexOf(".");r>=0&&(e=e.substring(0,r)+e.substring(r+1,r+3)),t=t.substring(t.length-e.length);for(let i=0;i<e.length;i++)n+="零壹贰叁肆伍陆柒捌玖".substring(e.substring(i,i+1),1)+t.substring(i,i+1);return n.replace(/零角零分$/,"整").replace(/零[仟佰拾]/g,"零").replace(/零{2,}/g,"零").replace(/零([亿|万])/g,"$1").replace(/零+元/,"元").replace(/亿零{0,3}万/,"亿").replace(/^元/,"零元")}function Cc(e){return!!/^((12[0-9])|(13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0|1,5-9]))\d{8}$/.test(e)}function kc(e){return!!/\d{3}-\d{8}|\d{4}-\d{7}/.test(e)}function Tc(e){return!!/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/.test(e)}function Ac(e){return!!/^[a-zA-Z]\w{5,15}$/.test(e)}function Mc(e){return!!/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)}function zc(e){let t="";return/^(?:\d+|[a-zA-Z]+|[!@#$%^&\.*]+){6,16}$/.test(e)&&(t="弱"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="中"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="强"),t}function Oc(e){return!!/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/.test(e)}function Dc(e){return!!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function Lc(e){return!!/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(e)}function _c(e){return!!/^[\u4e00-\u9fa5]{1,6}(·[\u4e00-\u9fa5]{1,6}){0,2}$/.test(e)}function Rc(e){return!!/^[1-9][0-9]{5}$/.test(e)}function Ic(e){return!!/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)}function Pc(e){return!!/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/.test(e)}function Nc(e){e&&ir.EventBus.emit(Zn.ModalContainerWidget_LoadModal,e)}function Bc(e){ir.EventBus.emit(Zn.ModalContainerWidget_CloseModal,e)}var jc=[],Fc=()=>{setTimeout(async()=>{await async function(){const e=await async function(e){const t=/<script.*src=["'](?<src>[^"']+)/gm,n=[];let r;for(;r=t.exec(e);)n.push(r.groups?.src??"");return n}(await fetch("/").then(e=>e.text()));if(!jc.length)return jc=e,!1;if(e.length!==jc.length)return jc=e,!0;for(let t=0;t<jc.length;t++)if(jc[t]!==e[t])return jc=e,!0;return!1}()?confirm("页面有更新,点击确定刷新页面?")&&location.reload():Fc()},5e3)};function Wc(e,t=Va.default.INDEXEDDB){return Va.default.createInstance({name:e,driver:t})}function Uc(e){Va.default.dropInstance({name:e})}async function $c(e){const t=(await fetch(e)).body?.getReader();if(!t)return;let n=0;const r=[];for(;;){const{done:e,value:i}=await t.read();if(e)break;r.push(i),n+=i.length,console.log(`已接收: ${(n/1024/1024).toFixed(2)}MB`)}const i=new Uint8Array(n);let o=0;for(let s of r)i.set(s,o),o+=s.length;return r.length=0,i}async function Hc(e){const t=await $c(e);if(t)return new TextDecoder("utf-8").decode(t)}async function qc(e,t="application/octet-stream"){const n=await $c(e);if(n)return new Blob([n],{type:t})}async function Vc(e,t="/upload",n){const r=e.stream();let i=0;const o=new TransformStream({transform(t,r){i+=t.length;const o=(i/e.size*100).toFixed(2);console.log(`上传进度: ${o}%`),n&&n(o),r.enqueue(t)}}),s=r.pipeThrough(o);return(await fetch(t,{method:"POST",body:s})).json()}async function Gc(e,t,n=128){const r=(await fetch(t)).body?.getReader();if(!r)return;const i=e.width,o=e.height,s=e.getContext("2d");let a=0,c=[];const l=1024*n;for(;;){const{done:e,value:t}=await r.read();if(e)break;c.push(t),a+=t.length,a>l&&(await Xc(s,i,o,c),a=0)}await Xc(s,i,o,c,!0)}async function Xc(e,t,n,r,i=!1){const o=new Blob(r,{type:"image/jpeg"}),s=URL.createObjectURL(o);return new Promise(r=>{const i=new Image;i.onload=()=>{e.clearRect(0,0,t,n),e.drawImage(i,0,0),URL.revokeObjectURL(s),r(!0)},i.src=s})}var Yc=class{sizes={sm:600,md:1024,lg:1440,xl:1920};lt={sm:!0,md:!0,lg:!0,xl:!0};gt={xs:!1,sm:!1,md:!1,lg:!1};xs=!0;sm=!1;md=!1;lg=!1;xl=!1;getSize(){const{visualViewport:e}=window,t=document.scrollingElement||document.documentElement;return void 0===e||Jr()?[Math.max(window.innerWidth,t.clientWidth),Math.max(window.innerHeight,t.clientHeight)]:e?[e.width*e.scale+window.innerWidth-t.clientWidth,e.height*e.scale+window.innerHeight-t.clientHeight]:[window.innerWidth-t.clientWidth,window.innerHeight-t.clientHeight]}updateSize(){const[e,t]=this.getSize();let n=this.sizes;this.gt.xs=e>=n.sm,this.gt.sm=e>=n.md,this.gt.md=e>=n.lg,this.gt.lg=e>=n.xl,this.lt.sm=e<n.sm,this.lt.md=e<n.md,this.lt.lg=e<n.lg,this.lt.xl=e<n.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg}},Zc=new Yc,Kc=new Map,Jc=C(new Map),Qc=class{static ZIndexMax=1;static addWindowPanel(e){Kc.set(e.id,e)}static removeWindowPanel(e){Kc.has(e)&&(Kc.delete(e),Jc.value.delete(e))}static minimizeWindowPanel(e){Kc.has(e)&&Jc.value.set(e,-1)}static openWindowPanel(e){if(Kc.has(e)){Jc.value.set(e,1);const t=document.getElementById(e);t&&t.open&&t.open()}}},el={width:1024,height:1024,body:'<path fill="currentColor" fill-rule="evenodd" d="M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926L224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512L166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"/>'},tl={width:1024,height:1024,body:'<path fill="currentColor" d="M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"/>'},nl={width:1024,height:1024,body:'<path fill="currentColor" d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"/>'},rl={width:1024,height:1024,body:'<path fill="currentColor" d="M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"/>'},il=["id"],ol=["src"],sl={key:1,class:"paneltitle"},al={class:"dragPanelBar"},cl={class:"dragPanelContent"},ll={class:"drag-pointer-group"},ul=or(d({__name:"XWindow",props:{top:{type:[String,Number],default:0},left:{type:[String,Number],default:0},nWidth:{type:[String,Number],default:"300px"},nHeight:{type:[String,Number],default:"400px"},icon:{type:String,default:""},title:{type:String,default:""},titleHeight:{type:[String,Number],default:"40px"},hasMin:{type:Boolean,default:!1},hasMax:{type:Boolean,default:!1},hasClose:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},pid:{type:String,default:""},tag:{type:[String,Array,Object,Number],default:""},right:{type:[String,Number],default:"unset"},bottom:{type:[String,Number],default:"unset"}},emits:["close","open","loaded","minimize"],setup(e,{expose:t,emit:n}){const i=ui(),u=C(i),f=e,d=n,h=C(),p=C(),m=o(()=>f.isDark),g=C({x:0,y:0}),w=C({width:0,height:0}),E=e=>{h.value&&(h.value.style.left=`${e.x}px`,h.value.style.top=`${e.y}px`)};I(()=>g.value,e=>{E(e)});const k=e=>{h.value&&(h.value.style.width=`${e.width}px`,h.value.style.height=`${e.height}px`)};I(()=>w.value,e=>{k(e)});const A={eventListenerController:null,startingEdges:null,newEdges:null,clickStart:null,mount:()=>{Object.entries(A.refs).forEach(([e,t])=>{t.value&&t.value.addEventListener("mousedown",t=>{A.mouseDown(t,e)})})},mouseDown:(e,t)=>{0==e.button&&(e.preventDefault(),A.startingEdges={left:g.value.x,top:g.value.y,right:g.value.x+w.value.width,bottom:g.value.y+w.value.height},A.newEdges={...A.startingEdges},A.clickStart={x:e.clientX,y:e.clientY},A.eventListenerController=new AbortController,document.addEventListener("mousemove",e=>{A.mouseMove(e,t)},{signal:A.eventListenerController.signal}),document.addEventListener("mouseup",e=>{A.mouseUp(e,t)},{signal:A.eventListenerController.signal}))},mouseMove:(e,t)=>{if(null!=A.startingEdges&&null!=A.newEdges&&null!=A.clickStart&&A.refs[t].value){if(e.preventDefault(),t.toLowerCase().includes("north")){A.newEdges.top=Math.max(A.startingEdges.top+e.clientY-A.clickStart.y,0);const t=A.newEdges.bottom-A.newEdges.top-100;t<0&&(A.newEdges.top+=t)}else t.toLowerCase().includes("south")&&(A.newEdges.bottom=Math.min(A.startingEdges.bottom+e.clientY-A.clickStart.y,document.body.clientHeight));if(t.toLowerCase().includes("west")){A.newEdges.left=Math.max(A.startingEdges.left+e.clientX-A.clickStart.x,0);const t=A.newEdges.right-A.newEdges.left-250;t<0&&(A.newEdges.left+=t)}else t.toLowerCase().includes("east")&&(A.newEdges.right=Math.min(A.startingEdges.right+e.clientX-A.clickStart.x,document.body.clientWidth));A.update()}},update:()=>{null!=A.newEdges&&null!=A.startingEdges&&(g.value={x:Math.max(A.newEdges.left,0),y:Math.max(A.newEdges.top,0)},w.value={width:Math.min(Math.max(A.newEdges.right-A.newEdges.left,250),document.body.clientWidth),height:Math.min(Math.max(A.newEdges.bottom-A.newEdges.top,100),document.body.clientHeight)})},mouseUp:(e,t)=>{0==e.button&&null!=A.startingEdges&&(e.preventDefault(),A.startingEdges=null,A.newEdges=null,A.clickStart=null,A.eventListenerController&&(A.eventListenerController.abort(),A.eventListenerController=null))},refs:{northWest:C(null),north:C(null),northEast:C(null),west:C(null),east:C(null),southWest:C(null),south:C(null),southEast:C(null)}},M={startingMouse:null,startingPosition:null,mouseDown:e=>{0==e.button&&(e.preventDefault(),M.startingMouse={x:e.clientX,y:e.clientY},M.startingPosition=g.value,document.addEventListener("mousemove",M.mouseMove),document.addEventListener("mouseup",M.mouseUp))},mouseMove:e=>{M.startingMouse&&M.startingPosition&&(e.preventDefault(),g.value={x:Math.min(Math.max(M.startingPosition.x+e.clientX-M.startingMouse.x,0),document.body.clientWidth-w.value.width),y:Math.max(M.startingPosition.y+e.clientY-M.startingMouse.y,0)})},mouseUp:e=>{0==e.button&&M.startingMouse&&M.startingPosition&&(e.preventDefault(),M.startingMouse=null,M.startingPosition=null,document.removeEventListener("mousemove",M.mouseMove),document.removeEventListener("mouseup",M.mouseUp))}};function z(e){return{id:i,icon:f.icon,title:f.title,pid:f.pid,data:e??f.tag}}const L=C(1),_=o(()=>!(-1===Jc.value.get(i))),j=C(!1),F=C(!0),W=o(()=>"z-index:"+L.value);function U(){L.value<=Qc.ZIndexMax&&(Qc.ZIndexMax+=1,L.value=Qc.ZIndexMax)}function $(){d("minimize",z()),Qc.minimizeWindowPanel(i)}function H(){j.value=!j.value}function q(){d("close",z(!1)),F.value=!1}const V=o(()=>j.value?rl:nl),G={id:i,isShow:_,close:q,open:function(){const e=z(!0);d("open",e),F.value=!0},showHidePanel:$,updatePosition:E};function X(e,t=document.body.clientWidth){if(Lr(e))return e;{const n=Number(e);if(n==n)return n;if(e.endsWith("px")){const t=e.substring(0,e.length-2);return Number(t)}if(e.endsWith("%")){const n=e.substring(0,e.length-1);return Number(n)/100*t}return 300}}function Y(e,t){if(!h.value)return void console.warn("dragPanelRef.value当前窗体html元素为空!");let n=e??document.body.clientWidth,r=t??document.body.clientHeight,i=X(f.left,n),o=X(f.top,r);"unset"==f.bottom&&"unset"==f.right||("unset"!=f.right&&(i=n-X(f.right,n)-w.value.width),"unset"!=f.bottom&&(o=r-X(f.bottom,r)-w.value.height)),g.value.x=i,g.value.y=o,E(g.value)}function Z(){if(J&&("unset"!=f.bottom||"unset"!=f.right)){const e=J.getBoundingClientRect();Y(e.width,e.height)}}let J;return t(G),b(()=>{!function(){let e=96;if(f.hasMin||(e-=32),f.hasMax||(e-=32),f.hasClose||(e-=32),ti.setCssVar("--right-bar-width",e+"px",p.value),!p.value)return;const t=Lr(f.titleHeight)?f.titleHeight+"px":f.titleHeight;p.value.style.height=t,p.value.style.lineHeight=t}(),function(){const e=z(G);Qc.addWindowPanel(e),d("loaded",e)}();const{parentElement:e,clientWidth:t,clientHeight:n}=function(e){if(!(e instanceof HTMLElement))throw new Error("参数必须是有效的 DOM 元素");let t=e.parentElement;for(;t&&"static"===globalThis.getComputedStyle(t).position;)t=t.parentElement,t||(t=document.documentElement);return{clientWidth:t?.clientWidth,clientHeight:t?.clientHeight,parentElement:t}}(h.value);J=e,w.value={width:X(f.nWidth,t),height:X(f.nHeight,n)},k(w.value),Y(t,n),A.mount(),ti.windowResizeHandler(Z)}),S(()=>{ti.offWindowResizeHandler(Z),Qc.removeWindowPanel(i)}),(t,n)=>(x(),s(r,{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"},{default:P(()=>[F.value?N((x(),c("div",{key:0,ref_key:"dragPanelRef",ref:h,id:u.value,class:v(["dragWindowPanel",{maxPanel:j.value,dragWindowPanel_dark:m.value}]),style:y(W.value)},[l("div",{class:"dragPanelTitle",ref_key:"dragPanelTitleRef",ref:p,onMousedown:n[0]||(n[0]=(...e)=>M.mouseDown&&M.mouseDown(...e)),onClick:B(U,["stop"])},[T(t.$slots,"title",{},()=>[f.icon?(x(),c("img",{key:0,src:f.icon,width:"24",height:"24"},null,8,ol)):a("",!0),f.title?(x(),c("span",sl,O(f.title),1)):a("",!0)],!0),l("div",al,[e.hasMin?(x(),s(D(K),{key:0,icon:D(tl),onClick:B($,["stop"])},null,8,["icon"])):a("",!0),e.hasMax?(x(),s(D(K),{key:1,icon:V.value,onClick:B(H,["stop"])},null,8,["icon"])):a("",!0),e.hasClose?(x(),s(D(K),{key:2,icon:D(el),onClick:B(q,["stop"])},null,8,["icon"])):a("",!0)])],544),l("div",cl,[T(t.$slots,"default",{},void 0,!0)]),l("div",ll,[l("div",{class:"cursor-nw-resize",ref:A.refs.northWest},null,512),l("div",{class:"cursor-n-resize",ref:A.refs.north},null,512),l("div",{class:"cursor-ne-resize",ref:A.refs.northEast},null,512),l("div",{class:"cursor-w-resize",ref:A.refs.west},null,512),n[1]||(n[1]=l("span",{style:{"pointer-events":"all",visibility:"hidden"}},null,-1)),l("div",{class:"cursor-e-resize",ref:A.refs.east},null,512),l("div",{class:"cursor-sw-resize",ref:A.refs.southWest},null,512),l("div",{class:"cursor-s-resize",ref:A.refs.south},null,512),l("div",{class:"cursor-se-resize",ref:A.refs.southEast},null,512)])],14,il)),[[R,_.value]]):a("",!0)]),_:3}))}}),[["__scopeId","data-v-c7148d05"]]),fl={class:"adivider"},dl={class:"contentText"},hl=or(d({__name:"ADivider",props:{align:{type:String,default:"left"},color:{type:String,default:"#888"}},setup(e){L(e=>({v1dc34ba7:n.value}));const t=e,n=o(()=>ra(t.color)||ea(t.color)?t.color:"#888"),r=o(()=>"left"!=t.align?"flex:1;":"width:40px;"),i=o(()=>"right"!=t.align?"flex:1;":"width:40px;");return(e,t)=>(x(),c("div",fl,[l("div",{class:"line",style:y(r.value)},null,4),l("div",dl,[T(e.$slots,"default",{},void 0,!0)]),l("div",{class:"line",style:y(i.value)},null,4)]))}}),[["__scopeId","data-v-133ad44f"]]),pl={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),100*e/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),i=100-(this.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(e),i),r);let s=[t,t+1],a=this.panes[s[0]]||null,c=this.panes[s[1]]||null;const l=a.max<100&&o>=a.max+n.prevPanesSize,u=c.max<100&&o<=100-(c.max+this.sumNextPanesSize(t+1));if(l||u)l?(a.size=a.max,c.size=Math.max(100-a.max-n.prevPanesSize-n.nextPanesSize,0)):(a.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);else{if(this.pushOtherPanes){const e=this.doPushOtherPanes(n,o);if(!e)return;({sums:n,panesToResize:s}=e),a=this.panes[s[0]]||null,c=this.panes[s[1]]||null}null!==a&&(a.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,a.min),a.max)),null!==c&&(c.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))}},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),void 0===r[0])?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),void 0===r[1])?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((t,r)=>{r<this.panesCount-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");if(!t&&!n)return e.parentNode.removeChild(e),void console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.")})},addSplitter(e,t,n=!1){const r=e-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),n||(i.onmousedown=e=>this.onMouseDown(e,r),"undefined"!=typeof window&&"ontouchstart"in window&&(i.ontouchstart=e=>this.onMouseDown(e,r)),i.onclick=e=>this.onSplitterClick(e,r+1)),this.dblClickSplitter&&(i.ondblclick=e=>this.onSplitterDblClick(e,r+1)),t.parentNode.insertBefore(i,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let t=0;e.forEach(e=>{e.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,e,!0):t&&this.addSplitter(t,e),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([e,t])=>n[e]=t)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:null===e.size?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((e,t)=>e.index=t),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(t=>t.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((e,t)=>e.index=t),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},resetPaneSizes(e={}){e.addedPane||e.removedPane?this.panes.some(e=>null!==e.givenSize||e.min||e.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize():this.initialPanesSizing(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,null!==i.size&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let i=100;e>.1&&(this.panes.forEach(t=>{null===t.size&&(t.size=Math.max(Math.min(e/(this.panesCount-r),t.max),t.min)),i-=t.size}),i>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e}={}){let t=100/this.panesCount,n=0;const r=[],i=[];e&&null!==e.givenSize&&(t=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(e=>{n-=e.size,e.size>=e.max&&r.push(e.id),e.size<=e.min&&i.push(e.id)}),Math.abs(n)<.1||(this.panes.forEach(o=>{e&&null!==e.givenSize&&e.id===o.id||(o.size=Math.max(Math.min(t,o.max),o.min)),n-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&i.push(o.id)}),n>.1&&this.readjustSizes(n,r,i))},readjustSizes(e,t,n){let r;r=e>0?e/(this.panesCount-t.length):e/(this.panesCount-n.length),this.panes.forEach(i=>{if(e>0&&!t.includes(i.id)){const t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){const t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?e=>this.onSplitterDblClick(e,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.updatePaneComponents(),this.$emit("ready"),this.ready=!0},render(){return h("div",{ref:"container",class:["splitpanes","splitpanes--"+(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},ml={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:10},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||0===this.size?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}},gl=or(ml,[["render",function(e,t,n,r,i,o){return x(),c("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=t=>o.onPaneClick(t,e._.uid)),style:y(e.style)},[T(e.$slots,"default")],4)}]]),vl=d({name:"Popover",__name:"index",props:{dir:{type:String,default:"bottom"}},emits:["show","hide"],setup(e,{emit:t}){const n=C(!1),i=t;function o(){n.value=!1}return I(n,()=>{n.value?i("show"):i("hide")}),b(()=>{document.addEventListener("click",o)}),S(()=>{document.removeEventListener("click",o)}),(t,i)=>(x(),c("div",{class:"popover-cantainer",onClick:i[1]||(i[1]=B(()=>{},["stop"]))},[f(r,{name:"popover-content-transition-"+e.dir},{default:P(()=>[n.value?T(t.$slots,"default",{key:0}):a("",!0)]),_:3},8,["name"]),l("div",{onClick:i[0]||(i[0]=e=>n.value=!n.value)},[t.$slots.reference?T(t.$slots,"reference",{key:0}):a("",!0)])]))}}),yl={class:"xScreen-container"},wl=d({__name:"index",setup(e){const t=C(null);let n=1920,r=1080;function i(){t.value&&(t.value.style.transform=`scale(${function(e=1920,t=1080){const n=window.innerWidth/e,r=window.innerHeight/t;return n<r?n:r}(n,r)}) translate(-50%, -50%)`)}return b(()=>{const e=window.innerWidth/window.innerHeight;if(e>=2.5||e<=.4||(n=n>window.innerWidth?window.innerWidth:n,r=r>window.innerHeight?window.innerHeight:r),t.value){const e=t.value;e.style.width=n+"px",e.style.height=r+"px",i()}ti.windowResizeHandler(i)}),(e,n)=>(x(),c("div",yl,[l("div",{ref_key:"scaleContainerRef",ref:t,class:"xScreen"},[T(e.$slots,"default")],512)]))}}),bl={class:"scrollSnapContainer"},Sl=d({__name:"index",props:{height:{type:Number,default:0}},setup(e){L(e=>({v3bebca7d:n.value}));const t=e,n=o(()=>Lr(t.height)&&t.height>0?`${t.height}px`:"unset");return(e,t)=>(x(),c("div",bl,[T(e.$slots,"default")]))}}),xl=d({__name:"FVMenu",props:{placement:{type:String,default:"bottom"},shown:{type:Boolean,default:!1}},setup(e){const t=e,n=_("tippyRef"),r=_("contentRef");let i=null;function o(){i&&i.hide()}return b(()=>{if(n.value&&r.value){const e=n.value;e&&(i=Rn(e,{content:r.value,placement:t.placement,trigger:"mouseenter",hideOnClick:!0,interactive:!0,appendTo:document.body,showOnCreate:t.shown}))}}),S(()=>{i&&i.destroy()}),(e,t)=>(x(),c("div",null,[l("div",{ref_key:"tippyRef",ref:n},[T(e.$slots,"default")],512),l("div",{ref_key:"contentRef",ref:r,onClick:o},[T(e.$slots,"popper")],512)]))}});function El(e){const t=new q(new U);return t.serialize(e),t.stream.toString()}function Cl(e){return null==e||""===e?e:new $(new U(e)).deserialize()}var kl=class e{debug=!1;simple=!1;utc=!1;longType="number";dictType="object";nullType=void 0;static Instance=new e;textEncoder=new TextEncoder;textDecoder=new TextDecoder;constructor(){}encodeResponse(e,t={}){var n=new U,r=new q(n,this.simple,this.utc),i=t;this.simple;var o=0;for(var s in i)o++;o>0&&(n.writeByte(72),r.serialize(i),r.reset()),e instanceof Error?(n.writeByte(69),r.serialize(this.debug&&e.stack?e.stack:e.message)):(n.writeByte(82),r.serialize(e)),n.writeByte(122);const a=n.takeBytes();return this.textDecoder.decode(a)}decodeRequest(e,t={}){const n=this.textEncoder.encode(e);if(0===n.length)return["~",[]];var r=new U(n),i=new $(r,!1);i.longType=this.longType,i.dictType=this.dictType;var o=r.readByte();if(72===o){var s=i.deserialize(this.nullType);for(var a in s)t[a]=s[a];i.reset(),o=r.readByte()}switch(o){case 67:return[i.deserialize(String),this.decodeArguments(i)];case 122:return["~",[]];default:throw new Error("Invalid request:\r\n"+r.toString())}}decodeArguments(e){var t=e.stream;let n=[];if(97===t.readByte()){e.reset();var r=H.readCount(t);const o=new Array(r).fill(this.nullType);n=new Array(r),e.addReference(n);for(var i=0;i<r;++i)n[i]=e.deserialize(o[i]);t.readByte()}return n}encodeRequest(e,t,n={}){var r=new U,i=new q(r,this.simple,this.utc),o=n;this.simple&&(o.simple=!0);var s=0;for(var a in o)s++;s>0&&(r.writeByte(72),i.serialize(o),i.reset()),r.writeByte(67),i.serialize(e),t.length>0&&(i.reset(),i.serialize(t)),r.writeByte(122);const c=r.takeBytes();return this.textDecoder.decode(c)}decodeResponse(e,t={}){var n=new U(this.textEncoder.encode(e)),r=new $(n,!1);r.longType=this.longType,r.dictType=this.dictType;var i=n.readByte();if(72===i){var o=r.deserialize();for(var s in o)t[s]=o[s];r.reset(),i=n.readByte()}switch(i){case 82:return t.simple&&(r.simple=!0),r.deserialize();case 69:throw new Error(r.deserialize(String));case 122:return;default:throw new Error("Invalid response:\r\n"+n.toString())}}},Tl=new Map,Al=new Map,Ml=void 0,zl={getDefaultClient(){if(Ml||(Ml=new wr(SysConfig?.ServiceURL.DefaultHproseAPI)),!Ml)throw Error("HproseProxy对象为空");return Ml},registerHprose(e,t){const n=Al.get(e);if(!n){const n=new wr(t);Tl.set(e,n)}return n},getHprose:e=>Al?.get(e),getProxyHprose:e=>Tl.get(e),unregisterHprose(e){Tl.get(e)&&(Al.delete(e),Tl.delete(e))}},Ol=5e3,Dl=36e5,Ll={Login:"/api/User/Login",ChangeMyPwd:"/api/User/ChangeMyPwd",Logout:"/api/Check/ExitLogin",RefreshToken:"/api/Check/RefreshToken",CheckToken:"/api/Check/CheckToken",GetSystemRights:"/api/System/GetSystem"},_l="access_token",Rl=ir?.Config?.ServiceURL.LoginAuthURL;function Il(){const e=yr();e&&ga(Ll.RefreshToken,Rl,{refreshToken:e}).then(e=>{Nl(e.data)})}function Pl(){const e=mr.getJsonObject(_l);if(!e)return;const t=(new Date).getTime(),n=new Date(e.expire).getTime()-t;n>0&&(n<=5e3?Il():setTimeout(Il,n-5e3))}function Nl(e){const t=(new Date).getTime();let n=new Date(e.accessToken.expires).getTime()-t;if(n>=36e5?(n=18e5,console.warn("客户端时间与服务器不一致:过去时间!")):n<-6e5&&(n=18e5,console.warn("客户端时间与服务器不一致:未来时间!")),n>0){let t=gr();t?(t.token=e.accessToken.tokenContent,t.expire=e.accessToken.expires,t.refresh=e.refreshToken.tokenContent):t={token:e.accessToken.tokenContent,expire:e.accessToken.expires,refresh:e.refreshToken.tokenContent},mr.set(_l,t,n/1e3),Pl()}else mr.remove(_l)}var Bl,jl="Wm314243",Fl=ir?.Config?.ServiceURL.LoginAuthURL;async function Wl(e){const t={username:e.username,pwd:gs.encryptToString(e.pwd,jl)},n=(await ga(Ll.Login,Fl,t))?.data;return n&&(Nl(n.doubletoken),ja(!1)),n}function Ul(e){const t={oldpwd:gs.encryptToString(e.oldpwd,jl),newpwd:gs.encryptToString(e.newpwd,jl)};return ga(Ll.ChangeMyPwd,Fl,t)}function $l(e){return gs.encryptToString(e,jl)}function Hl(){const e=gr();e&&(wa(Ll.Logout,Fl,{token:e.token,reftoken:e.refresh}),vr())}function ql(e){return ga(Ll.CheckToken,Fl,{token:e})}!function(e){e[e.Widget=0]="Widget",e[e.Route=1]="Route",e[e.URL=2]="URL",e[e.Action=3]="Action"}(Bl||(Bl={}));var Vl,Gl="ROLE_SYSTEM_RIGHT";function Xl(){return Vl||(Vl=new dr("",fr("sessionStorage"))),Vl}function Yl(){return Xl().get(Gl)}function Zl(e){Xl().set(Gl,e)}function Kl(){Xl().remove(Gl)}function Jl(e){if(e)for(let t=0;t<e.length;t++){const n=e[t];n.children&&n.children.length>0?(Jl(n.children),0===n.children.length&&(e.splice(t,1),t--)):n.selected||(e.splice(t,1),t--)}}function Ql(e,t,n="name"){e&&t&&e.forEach(e=>{const r=t.find(t=>t[n]===e[n]);r&&(e.children?r.children&&Ql(e.children,r.children,n):r.children&&0!==r.children.length||r.selected&&(e.selected=r.selected))})}function eu(e,t,n="name"){e&&t&&e.forEach(e=>{const r=t.find(t=>t[n]===e[n]);r&&(e.children?r.children&&eu(e.children,r.children,n):r.children&&0!==r.children.length||r.selected&&(e.selected=r.selected))})}function tu(e,t,n,r="name"){const i=e[n],o=t[n];i?o&&eu(i,o,r):o&&(e[n]=o)}function nu(e){if(e&&e.length>0){const t=e.length;let n,r=!1;if(t>0){r=Or(e[0]);const i=r?e[0]:JSON.parse(e[0]);if(t>1)for(let t=1;t<e.length;t++){const n=e[t],o=r?n:JSON.parse(n);tu(i,o,"routes","name"),tu(i,o,"widgetMenu","name"),tu(i,o,"widgets","id"),tu(i,o,"functions","id")}n=i}return n&&(Jl(n.routes),Jl(n.widgetMenu),Jl(n.widgets),Jl(n.functions)),n}}var ru=[],iu=[],ou=[];function su(){return Yl()}async function au(e,t=!1){Kl();const n=Ll.GetSystemRights,r=ir?.Config?.ServiceURL.LoginAuthURL,i=await ga(n,r,{systemid:e});if(!i||!i.data)return void ir.Message?.warn("无法获取功能授权列表!");const o=i.data;if(o&&o.length>0){if(t){const e=JSON.parse(o[0]);return Zl(e),e}{const e=nu(o);return Zl(e),e}}}function cu(e,t){const n={...e};return n.meta||(n.meta={}),null!=t.index&&(n.meta.index=t.index),null!=t.title&&(n.meta.title=t.title),e.children&&(n.children=[],t.children&&t.children.forEach(t=>{const r=e.children?.find(e=>e.path===t.path);if(r){const e=cu(r,t);e&&n.children?.push(e)}})),n}function lu(e,t=2){if(0===t)return e;const n=su();return n&&n.routes?(ou.length>0||e.forEach(e=>{const t=n.routes?.find(t=>t.name===e.name);if(t){const n=cu(e,t);n&&ou.push(n)}}),ou):void 0}function uu(e,t){const n={...e};return null!=t.index&&(n.index=t.index),e.children&&(n.children=[],t.children&&t.children.forEach(t=>{const r=e.children?.find(e=>e.name===t.name);if(r){const e=uu(r,t);e&&n.children?.push(e)}})),n}function fu(e,t=2){if(0===t)return e;const n=su();return n&&n.widgetMenu?(iu.length>0||e.forEach(e=>{const t=n.widgetMenu?.find(t=>t.name===e.name);if(t){const n=uu(e,t);n&&iu.push(n)}}),iu):void 0}function du(e,t=2){if(0===t)return e;const n=su();return n&&n.widgets?(ru.length>0||e?.forEach(e=>{n.widgets?.find(t=>t.id===e.id)&&ru.push(e)}),ru):void 0}function hu(e,t=2){if(0===t&&(ir.RightWidgetConfigMap=e,ir.RightWidgetConfigMap&&ir.RightWidgetConfigMap.size>0))return ir.RightWidgetConfigMap;const n=su();if(n&&n.widgets){const t=new Map;if(n.widgets.forEach(e=>{const n=e.layoutID;if(n){let r;t.has(n)&&(r=t.get(n)),r||(r=new Array,t.set(n,r)),r&&r.push(e)}}),n.widgets.length=0,t.size>0){const n=new Map;for(const[r,i]of t){const t=e.get(r);if(t){const e=new Array;t.forEach(t=>{i.findIndex(e=>e.id===t.id)>=0&&e.push(t)}),e.length>0&&n.set(r,e),t.length=0}}return t.clear(),ir.RightWidgetConfigMap=n,n}return}}function pu(e,t=2){if(0===t)return e;const n=su();return n?n.functions:void 0}var mu={mounted(e,t){const n=t.value,r=n&&n.container&&document.querySelector(n.container)||document.querySelector("#map3dContainer")||document.body,i=n&&n.selector&&e.querySelector(n.selector)||e.querySelector(".drag-el")||e;i!==e&&i.classList.add("ls-draggable"),i.onmousedown=function(t){e.style.transition="none";const n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,o=r.offsetWidth,s=r.offsetHeight,a=e.offsetWidth,c=e.offsetHeight;"100"!==e.style.zIndex&&(e.style.zIndex=100),r.onmousemove=function(t){let r=t.clientX-n,l=t.clientY-i;r<0&&(r=0),l<0&&(l=0),r>o-a&&(r=o-a),l>s-c&&(l=s-c),e.style.left=r+"px",e.style.top=l+"px"},r.onmouseup=function(t){r.onmousemove=r.onmouseup=null,e.style.transition="all 0.3s"}}}};function gu(e){e.directive("drag",mu)}var vu={created:(e,t)=>{let n=0,r=0,i=0,o=null;e.addEventListener("click",function(e){r=(new Date).getTime(),n++,1===n&&(r=(new Date).getTime()),2===n&&(i=(new Date).getTime()),r&&i&&i-r<400&&2===n&&t.value(),o||(o=setTimeout(()=>{r=0,i=0,n=0,clearTimeout(o),o=null},500))})}};function yu(e){e.directive("dc",vu)}var wu={beforeMount(e,t){let n=null,r=0;const i=()=>t?.value(),o=()=>{Date.now()-r<100&&i(),n&&clearInterval(n),n=null};Na.on(e,"mousedown",e=>{0===e.button&&(r=Date.now(),Na.once(document,"mouseup",o),n&&clearInterval(n),n=setInterval(i,100))})}};function bu(e){e.directive("repeatClick",wu)}var Su={mounted(e,t){const n=t.value;e.style.visibility="hidden",e.style["animation-name"]="none";const r=function(e,t){if(function(e){const t=globalThis.scrollY||globalThis.pageYOffset||document.documentElement.scrollTop||e.parentNode.scrollTop,n=t+(Jr()?document.documentElement.scrollHeight>document.documentElement.clientHeight?globalThis.innerHeight:document.documentElement.clientHeight:Math.min(document.documentElement.clientHeight,globalThis.innerHeight)),r=function(e){let t;for(;void 0===e.offsetTop;)e=e.parentNode;for(t=e.offsetTop;e=e.offsetParent;)t+=e.offsetTop;return t}(e),i=r+e.clientHeight;return r<n&&i>=t}(e)){e.style.visibility="visible";for(const n in t)e.style[n]=t[n];"none"!=e.style["animation-name"]&&(e.style["animation-duration"]||(e.style["animation-duration"]="1s")),e.parentNode.removeEventListener("scroll",o)}};let i=Date.now();const o=function(){Date.now()-i>=100&&(r(e,n),i=Date.now())};setTimeout(function(){r(e,n)},1),e.parentNode.addEventListener("scroll",o)}};function xu(e){e.directive("wow",Su)}var Eu={mounted(e,t){const n=t.value,r=Object.assign({},e.classList),i=n.split(" "),o=()=>{i&&i.length>0&&(Zc.updateSize(),i.forEach(t=>{const n=t.indexOf(".");if(n>0){const i=t.substring(0,n),o=t.substring(n+1);if(o){const t=o.split(".");if(t&&t.length>0){let n=Zc;t.forEach(e=>{n=n[e]}),n?e.classList.add(i):r?.contains&&r?.contains(i)||e.classList.remove(i)}}}}))};o(),ti.windowResizeHandler(o)}};function Cu(e){e.directive("media",Eu)}var ku={mounted(e,t,n){const r="string"==typeof t.value?{content:t.value}:t.value||{},i=Object.keys(t.modifiers||{}),o=i.find(e=>"arrow"!==e),s=-1!==i.findIndex(e=>"arrow"===e);o&&(r.placement=r.placement||o),s&&(r.arrow=void 0===r.arrow||r.arrow),n.props&&n.props.onTippyShow&&(r.onShow=function(...e){return n.props?.onTippyShow(...e)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...e){return n.props?.onTippyShown(...e)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...e){return n.props?.onTippyHidden(...e)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...e){return n.props?.onTippyHide(...e)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...e){return n.props?.onTippyMount(...e)}),e.getAttribute("title")&&!r.content&&(r.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!r.content&&(r.content=e.getAttribute("content")),Rn(e,r)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n="string"==typeof t.value?{content:t.value}:t.value||{};n.content||(n.content=null),e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}};function Tu(e){e.directive("tooltip",ku)}function Au(e){xu(e),bu(e),gu(e),yu(e),Cu(e),Tu(e)}var Mu=Symbol("Comlink.proxy"),zu=Symbol("Comlink.endpoint"),Ou=Symbol("Comlink.releaseProxy"),Du=Symbol("Comlink.finalizer"),Lu=Symbol("Comlink.thrown"),_u=e=>"object"==typeof e&&null!==e||"function"==typeof e,Ru=new Map([["proxy",{canHandle:e=>_u(e)&&e[Mu],serialize(e){const{port1:t,port2:n}=new MessageChannel;return Iu(e,t),[n,[n]]},deserialize:e=>(e.start(),Nu(e))}],["throw",{canHandle:e=>_u(e)&&Lu in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function Iu(e,t=globalThis,n=["*"]){t.addEventListener("message",function r(i){if(!i||!i.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,i.origin))return void console.warn(`Invalid origin '${i.origin}' for comlink proxy`);const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),c=(i.data.argumentList||[]).map(Vu);let l;try{const t=a.slice(0,-1).reduce((e,t)=>e[t],e),n=a.reduce((e,t)=>e[t],e);switch(s){case"GET":l=n;break;case"SET":t[a.slice(-1)[0]]=Vu(i.data.value),l=!0;break;case"APPLY":l=n.apply(t,c);break;case"CONSTRUCT":l=function(e){return Object.assign(e,{[Mu]:!0})}(new n(...c));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;Iu(e,n),l=function(e,t){return Hu.set(e,t),e}(t,[t])}break;case"RELEASE":l=void 0;break;default:return}}catch(e){l={value:e,[Lu]:0}}Promise.resolve(l).catch(e=>({value:e,[Lu]:0})).then(n=>{const[i,a]=qu(n);t.postMessage(Object.assign(Object.assign({},i),{id:o}),a),"RELEASE"===s&&(t.removeEventListener("message",r),Pu(t),Du in e&&"function"==typeof e[Du]&&e[Du]())}).catch(e=>{const[n,r]=qu({value:new TypeError("Unserializable return value"),[Lu]:0});t.postMessage(Object.assign(Object.assign({},n),{id:o}),r)})}),t.start&&t.start()}function Pu(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function Nu(e,t){const n=new Map;return e.addEventListener("message",function(e){const{data:t}=e;if(!t||!t.id)return;const r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}}),Uu(e,n,[],t)}function Bu(e){if(e)throw new Error("Proxy has been released and is not useable")}function ju(e){return Gu(e,new Map,{type:"RELEASE"}).then(()=>{Pu(e)})}var Fu=new WeakMap,Wu="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Fu.get(e)||0)-1;Fu.set(e,t),0===t&&ju(e)});function Uu(e,t,n=[],r=function(){}){let i=!1;const o=new Proxy(r,{get(r,s){if(Bu(i),s===Ou)return()=>{!function(e){Wu&&Wu.unregister(e)}(o),ju(e),t.clear(),i=!0};if("then"===s){if(0===n.length)return{then:()=>o};const r=Gu(e,t,{type:"GET",path:n.map(e=>e.toString())}).then(Vu);return r.then.bind(r)}return Uu(e,t,[...n,s])},set(r,o,s){Bu(i);const[a,c]=qu(s);return Gu(e,t,{type:"SET",path:[...n,o].map(e=>e.toString()),value:a},c).then(Vu)},apply(r,o,s){Bu(i);const a=n[n.length-1];if(a===zu)return Gu(e,t,{type:"ENDPOINT"}).then(Vu);if("bind"===a)return Uu(e,t,n.slice(0,-1));const[c,l]=$u(s);return Gu(e,t,{type:"APPLY",path:n.map(e=>e.toString()),argumentList:c},l).then(Vu)},construct(r,o){Bu(i);const[s,a]=$u(o);return Gu(e,t,{type:"CONSTRUCT",path:n.map(e=>e.toString()),argumentList:s},a).then(Vu)}});return function(e,t){const n=(Fu.get(t)||0)+1;Fu.set(t,n),Wu&&Wu.register(e,t,e)}(o,e),o}function $u(e){const t=e.map(qu);return[t.map(e=>e[0]),(n=t.map(e=>e[1]),Array.prototype.concat.apply([],n))];var n}var Hu=new WeakMap;function qu(e){for(const[t,n]of Ru)if(n.canHandle(e)){const[r,i]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},i]}return[{type:"RAW",value:e},Hu.get(e)||[]]}function Vu(e){switch(e.type){case"HANDLER":return Ru.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Gu(e,t,n,r){return new Promise(i=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(o,i),e.start&&e.start(),e.postMessage(Object.assign({id:o},n),r)})}var Xu,Yu,Zu,Ku=Symbol("getEndpoint"),Ju=e=>{const t=Nu(e);return new Proxy(t,{get:(t,n,r)=>n===Ku?e:Reflect.get(t,n,r)})};function Qu(){return Xu||(Xu=Ju(new Worker(new URL("/assets/worker-iconv-DdzFBDtV.js",""+import.meta.url),{type:"module"}))),Xu}function ef(){return Yu||(Yu=Ju(new Worker(new URL("/assets/worker-xmath-Cm_voCMd.js",""+import.meta.url),{type:"module"}))),Yu}function tf(){return Zu||(Zu=Ju(new Worker(new URL("/assets/worker-webcache-mElrmAWA.js",""+import.meta.url),{type:"module"}))),Zu}function nf(e){return new Proxy({},{get:(t,n)=>e()[n],set:(t,n,r)=>(e()[n]=r,!0)})}var rf=nf(Qu),of=nf(ef),sf=nf(tf),af=ae();function cf(e){e.addEventListener("message",({data:e})=>{af.emit(e.reqID,e)})}async function lf(e,t,n){return new Promise((r,i)=>{const o=String(Date.now())+String(Math.random());e.postMessage({reqID:o,op:t,args:n}),af.on(o,e=>{"ok"===e.status?r(e.result):i(e.result)})})}function uf(e,t){const n={};for(const r in e){const i=e[r];if(i)for(const e in i){const r=""+e;n[e]=(...e)=>lf(t,r,e)}}return n}var ff=class e{static batteryStatusCallback;static _battery;static batteryStatusChange(e){const t=this._battery;t&&(console.log("电量: "+100*t.level+"%"),console.log("充电状态: "+t.charging),this.batteryStatusCallback&&this.batteryStatusCallback(t))}static async OnBatteryStatusHandler(e){this.batteryStatusCallback=e;const t=await navigator.getBattery();t&&(this._battery=t,this.batteryStatusCallback&&this.batteryStatusCallback(t),t.onlevelchange=this.batteryStatusChange.bind(this),t.onchargingchange=this.batteryStatusChange.bind(this),t.ondischargingtimechange=this.batteryStatusChange.bind(this))}static OffBatteryStatusHandler(){this._battery=void 0}static onlineChangeCallback;static networkStatusChangeHandler=e.networkStatusChange.bind(e);static networkStatusChange(){const e=this.isOnline();console.log(e?"设备已联网":"设备未联网"),this.onlineChangeCallback&&this.onlineChangeCallback(e)}static isOnline(){return navigator.onLine}static OnNetworkHandle(e){this.onlineChangeCallback=e,this.networkStatusChange(),window.addEventListener("online",this.networkStatusChangeHandler),window.addEventListener("offline",this.networkStatusChangeHandler)}static OffNetworkHandle(){window.removeEventListener("online",this.networkStatusChangeHandler),window.removeEventListener("offline",this.networkStatusChangeHandler)}static downloadSpead(e){const t=navigator,n=t.connection||t.mozConnection||t.webkitConnection;return n?(console.log("下行带宽:",n.downlink+" Mbps"),n.addEventListener("change",()=>{console.log("网络状态变化:",n.effectiveType),e&&e(n.downlink)}),n.downlink):-1}static async vibrate(e=300){const t=navigator,n=t.vibrate||t.webkitVibrate||t.mozVibrate||t.msVibrate;n&&n(e)}static defaultSpeakOption={text:"",lang:"zh-CN",rate:1,pitch:1,volume:.2,voice:0};static changeSpeakOptions(e=.2,t=1,n=1,r=0){e>=0&&e<=1&&(this.defaultSpeakOption.volume=e),t>=.1&&t<=2&&(this.defaultSpeakOption.rate=t),n>=0&&n<=2&&(this.defaultSpeakOption.pitch=n),this.defaultSpeakOption.voice=r}static getSupportedVoices(){return window.speechSynthesis.getVoices().map(e=>e.name)}static getSupportedLanguages(){return navigator.languages}static async speak(e,t="zh-CN"){if(!e)return;const n=window.speechSynthesis;n.speaking&&n.cancel();const r=new SpeechSynthesisUtterance;r.lang=t,r.text=e,r.rate=this.defaultSpeakOption.rate,r.pitch=this.defaultSpeakOption.pitch,r.volume=this.defaultSpeakOption.volume;const i=this.defaultSpeakOption.voice;if(i>0){const e=n.getVoices();i<e.length&&(r.voice=e[i])}n.speak(r)}static async speakEnglish(e){this.speak(e,"en-US")}static stopSpeak(){const e=window.speechSynthesis;e.speaking&&e.cancel()}static openNotification(e,t,n,r,i){"Notification"in window||console.log("浏览器不支持桌面通知!");let o=n;if(t)o=o??{},o.body=t;else if("granted"===Notification.permission){const t=new Notification(e,o);t.onclick=e=>{i&&i(e.target)},t.onclose=e=>{r&&r(e.target)}}else"denied"!==Notification.permission&&Notification.requestPermission(t=>{if("granted"===t){const t=new Notification(e,o);t.onclick=e=>{i&&i(e.target)},t.onclose=e=>{r&&r(e.target)}}})}static isPageVisible(){return!document.hidden}static onPageVisibleChange(e){document.addEventListener("visibilitychange",()=>{e&&e(!document.hidden)})}static async copyText(e){return await navigator.clipboard.writeText(e)}static async readText(){return await navigator.clipboard.readText()}static viewTransition(e){if(e){if(!document.startViewTransition)return void e();document.startViewTransition(()=>e())}}},df=Va.default;export{hl as ADivider,Ya as BigFileDownload,Ps as CommonTool,rs as DayjsTool,Zo as Download,bs as EnumColor,xl as FVMenu,Ia as FileUpload,ws as GetSignalRClient,ir as Global,zl as GlobalHprose,ce as GlobalMitt,ns as GzipTool,ti as H5Tool,lr as HproseClient,kl as HproseRPCCodec,Qo as HttpDownload,Jo as JsonDownload,ci as LayoutContainer,rr as LayoutContainerEnum,si as LayoutManager,df as LocalForage,Ba as LockState,Bl as MenuItemEnum,Jc as MinWindowMap,ff as NavigatorPlugin,Za as ObjToUrlParams,Ja as OpenRouterURL,gl as Pane,vl as Popover,wr as ProxyClient,ar as RouterTransition,li as RouterTransitionAnimate,Ko as SaveAs,es as SaveToSelectedFile,wl as ScaleContainer,Zc as Screen,Yc as ScreenClass,Sl as ScrollSnapContainer,pl as Splitpanes,dr as Storage,cr as StringUtils,sr as SuspenseWithError,Zn as SysEvents,Ol as TOKEN_REFRESH_TIME,Dl as TOKEN_VALID_TIMESPAN,Ll as USER_TOKEN_API,Is as WarGridTool,ys as WaterMark,Rs as WebCacheTool,Kc as WindowsMap,ul as XWindow,Qc as XWindowManager,gs as XXTEA,ts as ZipTool,Fn as animateFill,Fc as autoRefresh,Fs as base64ToBlob,Ws as blobToDataURL,fa as calculateBestTextColor,Ul as changeMyPWD,tc as checkAddDefaultRoute,Pl as checkDoRefreshToken,ql as checkToken,vr as clearLocalToken,Kl as clearRight,sa as colorIsDark,Hs as convertDecimalism,Vs as convertDecimalismData,qs as convertDecimalismSpacing,Gs as convertToDecimalism,Xs as convertToDecimalismByString,Ys as convertToDecimalismByString2,Wc as createDB,Pa as createFileUpload,Nn as createSingleton,aa as darken,Ka as deepMerge,pa as delay,jn as delegate,Uc as deleteDB,Cl as deserialize,Bc as doCloseModal,Nc as doLoadModal,Il as doRefreshToken,ja as doSetLock,vu as doubleClickDirective,mu as dragDirective,lc as exportSystemRights,Ns as filterObj,Yo as findStringPrefix,Hn as followCursor,ba as get,Go as getCommonFileBase,su as getCurrentSystemRight,xa as getData,Ca as getDownload,$l as getEncryptPWD,Uo as getFileBase,$o as getFileExtension,pu as getFunctions,Ks as getHexColor,Qu as getIconvWorker,gr as getLocalToken,Fa as getLockState,Qs as getLongHexColor,Ho as getPathBase,ii as getProxyClient,Js as getRGBColor,ta as getRGBColorFromHSLA,Bs as getRandomInt,js as getRandomItem,yr as getRefreshToken,Yl as getRight,ec as getRouteURL,lu as getRoutes,au as getSystemRoleRight,ac as getTabRouteData,Qa as getVueURL,tf as getWebCacheWorker,du as getWidgetConfig,hu as getWidgetConfigMap,fu as getWidgetMenus,ef as getXmathWorker,sc as globFilterLayoutWidgetConfig,rc as globFilterObjects,ic as globFilterObjectsOld,Jl as handleNodes,oa as hexToRGB,In as hideAll,G as iconv,rf as iconvWorker,ri as init,oi as initDefaultProxyClient,cf as initWorker,qn as inlinePositioning,Er as is,Nr as isArray,_r as isAsyncFunction,Pr as isBoolean,Br as isClient,Dr as isDate,kr as isDef,Fr as isElement,$r as isEmpty,ea as isEnumColor,Hr as isError,Cr as isFunction,ra as isHexColor,Ur as isImageDom,Xr as isMap,Jr as isMobile,Ar as isNull,Mr as isNullAndUnDef,zr as isNullOrUnDef,Lr as isNumber,Or as isObjectX,Rr as isPromise,Wr as isServer,Ir as isString,Zr as isStringLikeJson,Kr as isStringLikeKml,Gr as isSymbol,Tr as isUnDef,Yr as isValidURL,Vr as isWeakMap,qr as isWeakSet,jr as isWindow,Na as jquery,ca as lighten,Wl as login,Hl as logout,Eu as mediaDirective,nu as mergeFilterRoleSysRight,Xo as mergeNames,Ql as mergeNodes,tu as mergeNodesAll,ae as mitt,fi as newGuid,Ua as onLockListener,Wo as parseLocalPath,Sa as post,nc as recursiveRoutes,uf as registerWorkerSerivces,wu as repeatDirective,Us as replaceAll,qo as replaceFileExtension,ga as requestGet,ya as requestPost,wa as requestPostBody,$s as reserveDecimal,ia as rgbToHex,_t as roundArrow,El as serialize,Nl as setLocalToken,Zl as setRight,yu as setupDCDirective,Au as setupDirectives,gu as setupDragDirective,bu as setupRepeatDirective,Tu as setupTooltipDirective,xu as setupWowDirective,Cu as setupmediaDirective,ha as sleep,Vn as sticky,hr as storage,mr as storageHelper,$c as streamFetch,qc as streamFetchBlob,Gc as streamFetchLoadImage,Hc as streamFetchText,Vc as streamFetchUploadFile,Rn as tippy,Vo as toLowerCaseExtension,ku as tooltipDirective,Zs as traverseXYArrayFromInsideOut,$a as unLockListener,ui as uuid,vc as verifiyNumberInteger,Tc as verifyAccount,bc as verifyAndSpace,Pc as verifyCarNum,yc as verifyCnAndSpace,Dc as verifyEmail,wc as verifyEnAndSpace,_c as verifyFullName,Oc as verifyIPAddress,Lc as verifyIdCard,Ec as verifyNumberCnUppercase,Sc as verifyNumberComma,gc as verifyNumberIntegerAndFloat,pc as verifyNumberPercentage,mc as verifyNumberPercentageFloat,Ac as verifyPassword,Mc as verifyPasswordPowerful,zc as verifyPasswordStrength,Cc as verifyPhone,Rc as verifyPostalCode,kc as verifyTelPhone,xc as verifyTextColor,Ic as verifyUrl,sf as webCacheWorker,Su as wowDirective,dc as writeIconifyList,hc as writeSysRoleRight,of as xmathWorker};