UNPKG

seehoo-design-plus

Version:
24 lines 820 kB
(function(B,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(B=typeof globalThis!="undefined"?globalThis:B||self,t(B.SeehooDesignPlus={},B.Vue))})(this,function(B,t){"use strict";const Y=typeof window!="undefined",de=function(){return Y&&document.addEventListener?function(e,n,i,l=!1){e&&n&&i&&e.addEventListener(n,i,l)}:function(e,n,i){e&&n&&i&&e.attachEvent("on"+n,i)}}(),he=function(){return Y&&document.removeEventListener?function(e,n,i,l=!1){e&&n&&e.removeEventListener(n,i,l)}:function(e,n,i){e&&n&&e.detachEvent("on"+n,i)}}();var N=(e,n)=>{const i=e.__vccOpts||e;for(const[l,r]of n)i[l]=r;return i};const ah="ivu-affix";function _s(e,n){const i=n?"pageYOffset":"pageXOffset",l=n?"scrollTop":"scrollLeft";let r=e[i];return Y&&typeof r!="number"&&(r=window.document.documentElement[l]),r}function oh(e){if(!Y)return;const n=e.getBoundingClientRect(),i=_s(window,!0),l=_s(window),r=window.document.body,s=r.clientTop||0,a=r.clientLeft||0;return{top:n.top+i-s,left:n.left+l-a}}const ch={name:"Affix",emits:["on-change"],props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},useCapture:{type:Boolean,default:!1}},data(){return{affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{offsetType(){let e="top";return this.offsetBottom>=0&&(e="bottom"),e},classes(){return[{[`${ah}`]:this.affix}]}},mounted(){de(window,"scroll",this.handleScroll,this.useCapture),de(window,"resize",this.handleScroll,this.useCapture),t.nextTick(()=>{this.handleScroll()})},beforeUnmount(){he(window,"scroll",this.handleScroll,this.useCapture),he(window,"resize",this.handleScroll,this.useCapture)},methods:{handleScroll(){if(!Y)return;const e=this.affix,n=_s(window,!0),i=oh(this.$el),l=window.innerHeight,r=this.$el.getElementsByTagName("div")[0].offsetHeight;i.top-this.offsetTop<n&&this.offsetType=="top"&&!e?(this.affix=!0,this.slotStyle={width:this.$refs.point.clientWidth+"px",height:this.$refs.point.clientHeight+"px"},this.slot=!0,this.styles={top:`${this.offsetTop}px`,left:`${i.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):i.top-this.offsetTop>n&&this.offsetType=="top"&&e&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),i.top+this.offsetBottom+r>n+l&&this.offsetType=="bottom"&&!e?(this.affix=!0,this.styles={bottom:`${this.offsetBottom}px`,left:`${i.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):i.top+this.offsetBottom+r<n+l&&this.offsetType=="bottom"&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}}};function dh(e,n,i,l,r,s){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref:"point",class:t.normalizeClass(s.classes),style:t.normalizeStyle(r.styles)},[t.renderSlot(e.$slots,"default")],6),t.withDirectives(t.createElementVNode("div",{style:t.normalizeStyle(r.slotStyle)},null,4),[[t.vShow,r.slot]])])}var gl=N(ch,[["render",dh]]);const yl="ivu-icon",hh={name:"Icon",props:{type:{type:String,default:""},size:[Number,String],color:String,custom:{type:String,default:""}},computed:{classes(){return[`${yl}`,{[`${yl}-${this.type}`]:this.type!=="",[`${this.custom}`]:this.custom!==""}]},styles(){let e={};return this.size&&(e["font-size"]=`${this.size}px`),this.color&&(e.color=this.color),e}}};function fh(e,n,i,l,r,s){return t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(s.classes),style:t.normalizeStyle(s.styles)},null,6)}var ie=N(hh,[["render",fh]]);function V(e,n){for(let i=0;i<n.length;i++)if(e===n[i])return!0;return!1}let Ls;function Cl(e){if(Y&&(e||Ls===void 0)){const n=document.createElement("div");n.style.width="100%",n.style.height="200px";const i=document.createElement("div"),l=i.style;l.position="absolute",l.top=0,l.left=0,l.pointerEvents="none",l.visibility="hidden",l.width="200px",l.height="150px",l.overflow="hidden",i.appendChild(n),document.body.appendChild(i);const r=n.offsetWidth;i.style.overflow="scroll";let s=n.offsetWidth;r===s&&(s=i.clientWidth),document.body.removeChild(i),Ls=r-s}return Ls}const uh=Y&&(window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)||!1,mh=/([\:\-\_]+(.))/g,ph=/^moz([A-Z])/;function gh(e){return e.replace(mh,function(n,i,l,r){return r?l.toUpperCase():l}).replace(ph,"Moz$1")}function yt(e,n){if(!!Y){if(!e||!n)return null;n=gh(n),n==="float"&&(n="cssFloat");try{const i=document.defaultView.getComputedStyle(e,"");return e.style[n]||i?i[n]:null}catch{return e.style[n]}}}function yh(e){return e.toString()[0].toUpperCase()+e.toString().slice(1)}function bl(e){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]}function me(e){const n=bl(e);let i;if(n==="array")i=[];else if(n==="object")i={};else return e;if(n==="array")for(let l=0;l<e.length;l++)i.push(me(e[l]));else if(n==="object")for(let l in e)i[l]=me(e[l]);return i}function $s(e,n=0,i,l=500,r){if(!Y)return;window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(c){return window.setTimeout(c,1e3/60)});const s=Math.abs(n-i),a=Math.ceil(s/l*50);function o(c,d,h){if(c===d){r&&r();return}let f=c+h>d?d:c+h;c>d&&(f=c-h<d?d:c-h),e===window?window.scrollTo(f,f):e.scrollTop=f,window.requestAnimationFrame(()=>o(f,d,h))}o(n,i,a)}function Te(e,n,i){typeof n=="string"?i=[n]:i=n;let l=e.$parent,r=l.$options.name;for(;l&&(!r||i.indexOf(r)<0);)l=l.$parent,l&&(r=l.$options.name);return l}function zi(e,n){let i=[];const l=e.$parent;return l?(l.$options.name===n&&i.push(l),i.concat(zi(l,n))):[]}const Ch=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")};function kl(e,n){if(!e||!n)return!1;if(n.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(n):(" "+e.className+" ").indexOf(" "+n+" ")>-1}function As(e,n){if(!e)return;let i=e.className;const l=(n||"").split(" ");for(let r=0,s=l.length;r<s;r++){const a=l[r];!a||(e.classList?e.classList.add(a):kl(e,a)||(i+=" "+a))}e.classList||(e.className=i)}function Fs(e,n){if(!e||!n)return;const i=n.split(" ");let l=" "+e.className+" ";for(let r=0,s=i.length;r<s;r++){const a=i[r];!a||(e.classList?e.classList.remove(a):kl(e,a)&&(l=l.replace(" "+a+" "," ")))}e.classList||(e.className=Ch(l))}const bh={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px"};function kh(){if(!Y)return;const e=n=>({media:n,matches:!1,on(){},off(){}});window.matchMedia=window.matchMedia||e}const wh=/#([^#]+)$/;async function Sh(e,n="unnamed"){if(!Y)return Promise.reject();try{const l=await(await fetch(e)).blob();if(!l)return Promise.reject();const r=URL.createObjectURL(l),s=document.createElement("a");return s.setAttribute("href",r),s.setAttribute("download",n),s.click(),URL.revokeObjectURL(r),Promise.resolve()}catch(i){return Promise.reject(i)}}const It="ivu-alert",xh={name:"Alert",components:{Icon:ie},props:{type:{validator(e){return V(e,["success","info","warning","error"])},default:"info"},closable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},banner:{type:Boolean,default:!1},fade:{type:Boolean,default:!0}},data(){return{closed:!1,desc:!1}},computed:{wrapClasses(){return[`${It}`,`${It}-${this.type}`,{[`${It}-with-icon`]:this.showIcon,[`${It}-with-desc`]:this.desc,[`${It}-with-banner`]:this.banner}]},messageClasses(){return`${It}-message`},descClasses(){return`${It}-desc`},closeClasses(){return`${It}-close`},iconClasses(){return`${It}-icon`},iconType(){let e="";switch(this.type){case"success":e="ios-checkmark-circle";break;case"info":e="ios-information-circle";break;case"warning":e="ios-alert";break;case"error":e="ios-close-circle";break}return this.desc&&(e+="-outline"),e}},methods:{close(e){this.closed=!0,this.$emit("on-close",e)}},mounted(){this.desc=this.$slots.desc!==void 0}};function Bh(e,n,i,l,r,s){const a=t.resolveComponent("Icon");return t.openBlock(),t.createBlock(t.Transition,{name:i.fade?"fade":""},{default:t.withCtx(()=>[r.closed?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(s.wrapClasses)},[i.showIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(s.iconClasses)},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(a,{type:s.iconType},null,8,["type"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass(s.messageClasses)},[t.renderSlot(e.$slots,"default")],2),t.createElementVNode("span",{class:t.normalizeClass(s.descClasses)},[t.renderSlot(e.$slots,"desc")],2),i.closable?(t.openBlock(),t.createElementBlock("a",{key:1,class:t.normalizeClass(s.closeClasses),onClick:n[0]||(n[0]=(...o)=>s.close&&s.close(...o))},[t.renderSlot(e.$slots,"close",{},()=>[t.createVNode(a,{type:"ios-close"})])],2)):t.createCommentVNode("",!0)],2))]),_:3},8,["name"])}var wl=N(xh,[["render",Bh]]);const Nh={name:"Anchor",provide(){return{AnchorInstance:this}},emits:["on-change","on-select"],props:{affix:{type:Boolean,default:!0},offsetTop:{type:Number,default:0},offsetBottom:Number,bounds:{type:Number,default:5},container:null,showInk:{type:Boolean,default:!1},scrollOffset:{type:Number,default:0}},data(){return{prefix:"ivu-anchor",isAffixed:!1,inkTop:0,animating:!1,currentLink:"",currentId:"",scrollContainer:null,scrollElement:null,wrapperTop:0,upperFirstTitle:!0,links:[]}},computed:{wrapperComponent(){return this.affix?"Affix":"div"},wrapperStyle(){return{maxHeight:this.offsetTop?`calc(100vh - ${this.offsetTop}px)`:"100vh"}},containerIsWindow(){return this.scrollContainer===window},titlesOffsetArr(){const n=this.links.map(l=>l.link.href).map(l=>l.split("#")[1]);let i=[];return Y&&n.forEach(l=>{const r=document.getElementById(l);r&&i.push({link:`#${l}`,offset:r.offsetTop-this.scrollElement.offsetTop})}),i}},methods:{handleAffixStateChange(e){this.isAffixed=this.affix&&e},handleScroll(e){if(this.upperFirstTitle=!!this.titlesOffsetArr[0]&&e.target.scrollTop<this.titlesOffsetArr[0].offset,this.animating)return;const n=Y?document.documentElement.scrollTop||document.body.scrollTop||e.target.scrollTop:0;this.getCurrentScrollAtTitleId(n)},handleHashChange(){if(!Y)return;const e=window.location.href,n=wh.exec(e);!n||(this.currentLink=n[0],this.currentId=n[1])},handleScrollTo(){if(!Y)return;const e=document.getElementById(this.currentId),n=document.querySelector(`a[data-href="${this.currentLink}"]`);let i=this.scrollOffset;if(n&&(i=parseFloat(n.getAttribute("data-scroll-offset"))),!e)return;const l=e.offsetTop-this.wrapperTop-i;this.animating=!0,$s(this.scrollContainer,this.scrollElement.scrollTop,l,600,()=>{this.animating=!1}),this.handleSetInkTop()},handleSetInkTop(){if(!Y)return;const e=document.querySelector(`a[data-href="${this.currentLink}"]`);if(!e)return;const n=e.offsetTop,i=n<0?this.offsetTop:n;this.inkTop=i},getCurrentScrollAtTitleId(e){let n=-1,i=this.titlesOffsetArr.length,l={link:"#",offset:0};for(e+=this.bounds;++n<i;){let r=this.titlesOffsetArr[n],s=this.titlesOffsetArr[n+1];if(e>=r.offset&&e<(s&&s.offset||1/0)){l=this.titlesOffsetArr[n];break}}this.currentLink=l.link,this.handleSetInkTop()},getContainer(){!Y||(this.scrollContainer=this.container?typeof this.container=="string"?document.querySelector(this.container):this.container:window,this.scrollElement=this.container?this.scrollContainer:document.documentElement||document.body)},removeListener(){he(this.scrollContainer,"scroll",this.handleScroll),he(window,"hashchange",this.handleHashChange)},init(){this.handleHashChange(),t.nextTick(()=>{this.removeListener(),this.getContainer(),this.wrapperTop=this.containerIsWindow?0:this.scrollElement.offsetTop,this.handleScrollTo(),this.handleSetInkTop(),this.titlesOffsetArr[0]&&(this.upperFirstTitle=this.scrollElement.scrollTop<this.titlesOffsetArr[0].offset),de(this.scrollContainer,"scroll",this.handleScroll),de(window,"hashchange",this.handleHashChange)})},addLink(e,n){this.links.push({id:e,link:n})},removeLink(e){const n=this.links.findIndex(i=>i.id===e);this.links.splice(n,1)}},watch:{$route(){this.currentLink="",this.currentId="",this.handleHashChange(),t.nextTick(()=>{this.handleScrollTo()})},container(){this.init()},currentLink(e,n){this.$emit("on-change",e,n)}},mounted(){this.init()},beforeUnmount(){this.removeListener()}};function Ih(e,n,i,l,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.wrapperComponent),{"offset-top":i.offsetTop,"offset-bottom":i.offsetBottom,onOnChange:s.handleAffixStateChange},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(`${r.prefix}-wrapper`),style:t.normalizeStyle(s.wrapperStyle)},[t.createElementVNode("div",{class:t.normalizeClass(`${r.prefix}`)},[t.createElementVNode("div",{class:t.normalizeClass(`${r.prefix}-ink`)},[t.withDirectives(t.createElementVNode("span",{class:t.normalizeClass(`${r.prefix}-ink-ball`),style:t.normalizeStyle({top:`${r.inkTop}px`})},null,6),[[t.vShow,i.showInk]])],2),t.renderSlot(e.$slots,"default")],2)],6)]),_:3},40,["offset-top","offset-bottom","onOnChange"])}var Sl=N(Nh,[["render",Ih]]);function Ee(e=32){const n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",i=n.length;let l="";for(let r=0;r<e;r++)l+=n.charAt(Math.floor(Math.random()*i));return l}const Eh={name:"AnchorLink",inject:["AnchorInstance"],props:{href:String,title:String,scrollOffset:{type:Number,default(){return t.inject("AnchorInstance").scrollOffset}}},data(){return{prefix:"ivu-anchor-link",id:Ee(6)}},computed:{anchorLinkClasses(){return[this.prefix,this.AnchorInstance.currentLink===this.href?`${this.prefix}-active`:""]},linkTitleClasses(){return[`${this.prefix}-title`]}},methods:{goAnchor(){this.currentLink=this.href,this.AnchorInstance.handleHashChange(),this.AnchorInstance.handleScrollTo(),this.AnchorInstance.$emit("on-select",this.href),this.$router?this.$router.push(this.href,()=>{}):Y&&(window.location.href=this.href)}},mounted(){this.AnchorInstance.addLink(this.id,this),t.nextTick(()=>{this.AnchorInstance.init()})},beforeUnmount(){this.AnchorInstance.removeLink(this.id)}},Vh=["href","data-scroll-offset","data-href","title"];function Th(e,n,i,l,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.anchorLinkClasses)},[t.createElementVNode("a",{class:t.normalizeClass(s.linkTitleClasses),href:i.href,"data-scroll-offset":i.scrollOffset,"data-href":i.href,onClick:n[0]||(n[0]=t.withModifiers((...a)=>s.goAnchor&&s.goAnchor(...a),["prevent"])),title:i.title},t.toDisplayString(i.title),11,Vh),t.renderSlot(e.$slots,"default")],2)}var xl=N(Eh,[["render",Th]]),rn={props:{to:{type:[Object,String]},replace:{type:Boolean,default:!1},target:{type:String,validator(e){return V(e,["_blank","_self","_parent","_top"])},default:"_self"},append:{type:Boolean,required:!1,default:!1}},computed:{linkUrl(){if(typeof this.to!=="string")return null;if(this.to.includes("//"))return this.to;const n=this.$router;if(n){const i=this.$route,l=n.resolve(this.to,i,this.append);return l?l.href:this.to}return this.to}},methods:{handleOpenTo(){if(!Y)return;const e=this.$router;let n=this.to;if(e){const i=this.$route,l=e.resolve(this.to,i,this.append);n=l?l.href:this.to}typeof this.to!="string"&&window.open(n)},handleClick(e=!1){const n=this.$router;!Y||(e?this.handleOpenTo():n?typeof this.to=="string"&&this.to.includes("//")?window.location.href=this.to:this.replace?this.$router.replace(this.to,()=>{}):this.$router.push(this.to,()=>{}):window.location.href=this.to)},handleCheckClick(e,n=!1){if(this.to){if(this.target==="_blank")return this.handleOpenTo(),!1;e.preventDefault(),this.handleClick(n)}}}};function Dh(e,n){let i=!1;return n.forEach(l=>{e.includes(l)&&(i=!0)}),i}const Bl={name:"Auth",mixins:[rn],emits:["click"],props:{authority:{type:[String,Array,Function,Boolean],default:!0},access:{type:[String,Array]},prevent:{type:Boolean,default:!1},message:{type:String,default:"\u60A8\u6CA1\u6709\u6743\u9650\u8FDB\u884C\u6B64\u64CD\u4F5C"},customTip:{type:Boolean,default:!1},display:{type:String}},computed:{isPermission(){let e;if(typeof this.authority=="boolean")e=this.authority;else if(this.authority instanceof Function)e=this.authority();else{const n=typeof this.authority=="string"?[this.authority]:this.authority,i=typeof this.access=="string"?[this.access]:this.access;e=Dh(n,i)}return e},options(){let e={};return this.display&&(e.display=this.display),{class:{"ivu-auth":!0,"ivu-auth-permission":this.isPermission,"ivu-auth-no-math":!this.isPermission,"ivu-auth-redirect":!this.isPermission&&this.to,"ivu-auth-prevent":this.prevent},style:e}}},render(){return this.isPermission?t.h("div",this.options,this.$slots.default()):this.to?t.h("div",this.options):this.prevent?t.h("div",Object.assign({},this.options,{onClick:this.handlePreventClick}),[t.h("div",{class:"ivu-auth-prevent-no-match"},this.$slots.default())]):t.h("div",this.options,this.$slots.noMatch())},methods:{handlePreventClick(e){this.isPermission||(this.customTip||this.$Message.info({content:this.message,duration:3}),this.$emit("click",e))}},created(){!this.isPermission&&this.to&&this.handleClick(!1)}};var Et=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Mh(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Nl={exports:{}};/**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */(function(e,n){(function(i,l){e.exports=l()})(Et,function(){var i=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",l=function(){for(var m=["Edge","Trident","Firefox"],C=0;C<m.length;C+=1)if(i&&navigator.userAgent.indexOf(m[C])>=0)return 1;return 0}();function r(m){var C=!1;return function(){C||(C=!0,window.Promise.resolve().then(function(){C=!1,m()}))}}function s(m){var C=!1;return function(){C||(C=!0,setTimeout(function(){C=!1,m()},l))}}var a=i&&window.Promise,o=a?r:s;function c(m){var C={};return m&&C.toString.call(m)==="[object Function]"}function d(m,C){if(m.nodeType!==1)return[];var k=m.ownerDocument.defaultView,x=k.getComputedStyle(m,null);return C?x[C]:x}function h(m){return m.nodeName==="HTML"?m:m.parentNode||m.host}function f(m){if(!m)return document.body;switch(m.nodeName){case"HTML":case"BODY":return m.ownerDocument.body;case"#document":return m.body}var C=d(m),k=C.overflow,x=C.overflowX,D=C.overflowY;return/(auto|scroll|overlay)/.test(k+D+x)?m:f(h(m))}function p(m){return m&&m.referenceNode?m.referenceNode:m}var g=i&&!!(window.MSInputMethodContext&&document.documentMode),y=i&&/MSIE 10/.test(navigator.userAgent);function u(m){return m===11?g:m===10?y:g||y}function b(m){if(!m)return document.documentElement;for(var C=u(10)?document.body:null,k=m.offsetParent||null;k===C&&m.nextElementSibling;)k=(m=m.nextElementSibling).offsetParent;var x=k&&k.nodeName;return!x||x==="BODY"||x==="HTML"?m?m.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(k.nodeName)!==-1&&d(k,"position")==="static"?b(k):k}function I(m){var C=m.nodeName;return C==="BODY"?!1:C==="HTML"||b(m.firstElementChild)===m}function M(m){return m.parentNode!==null?M(m.parentNode):m}function _(m,C){if(!m||!m.nodeType||!C||!C.nodeType)return document.documentElement;var k=m.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING,x=k?m:C,D=k?C:m,T=document.createRange();T.setStart(x,0),T.setEnd(D,0);var P=T.commonAncestorContainer;if(m!==P&&C!==P||x.contains(D))return I(P)?P:b(P);var A=M(m);return A.host?_(A.host,C):_(m,M(C).host)}function S(m){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",k=C==="top"?"scrollTop":"scrollLeft",x=m.nodeName;if(x==="BODY"||x==="HTML"){var D=m.ownerDocument.documentElement,T=m.ownerDocument.scrollingElement||D;return T[k]}return m[k]}function w(m,C){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,x=S(C,"top"),D=S(C,"left"),T=k?-1:1;return m.top+=x*T,m.bottom+=x*T,m.left+=D*T,m.right+=D*T,m}function O(m,C){var k=C==="x"?"Left":"Top",x=k==="Left"?"Right":"Bottom";return parseFloat(m["border"+k+"Width"])+parseFloat(m["border"+x+"Width"])}function E(m,C,k,x){return Math.max(C["offset"+m],C["scroll"+m],k["client"+m],k["offset"+m],k["scroll"+m],u(10)?parseInt(k["offset"+m])+parseInt(x["margin"+(m==="Height"?"Top":"Left")])+parseInt(x["margin"+(m==="Height"?"Bottom":"Right")]):0)}function j(m){var C=m.body,k=m.documentElement,x=u(10)&&getComputedStyle(k);return{height:E("Height",C,k,x),width:E("Width",C,k,x)}}var Q=function(m,C){if(!(m instanceof C))throw new TypeError("Cannot call a class as a function")},F=function(){function m(C,k){for(var x=0;x<k.length;x++){var D=k[x];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(C,D.key,D)}}return function(C,k,x){return k&&m(C.prototype,k),x&&m(C,x),C}}(),U=function(m,C,k){return C in m?Object.defineProperty(m,C,{value:k,enumerable:!0,configurable:!0,writable:!0}):m[C]=k,m},R=Object.assign||function(m){for(var C=1;C<arguments.length;C++){var k=arguments[C];for(var x in k)Object.prototype.hasOwnProperty.call(k,x)&&(m[x]=k[x])}return m};function X(m){return R({},m,{right:m.left+m.width,bottom:m.top+m.height})}function W(m){var C={};try{if(u(10)){C=m.getBoundingClientRect();var k=S(m,"top"),x=S(m,"left");C.top+=k,C.left+=x,C.bottom+=k,C.right+=x}else C=m.getBoundingClientRect()}catch{}var D={left:C.left,top:C.top,width:C.right-C.left,height:C.bottom-C.top},T=m.nodeName==="HTML"?j(m.ownerDocument):{},P=T.width||m.clientWidth||D.width,A=T.height||m.clientHeight||D.height,K=m.offsetWidth-P,ee=m.offsetHeight-A;if(K||ee){var te=d(m);K-=O(te,"x"),ee-=O(te,"y"),D.width-=K,D.height-=ee}return X(D)}function L(m,C){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,x=u(10),D=C.nodeName==="HTML",T=W(m),P=W(C),A=f(m),K=d(C),ee=parseFloat(K.borderTopWidth),te=parseFloat(K.borderLeftWidth);k&&D&&(P.top=Math.max(P.top,0),P.left=Math.max(P.left,0));var J=X({top:T.top-P.top-ee,left:T.left-P.left-te,width:T.width,height:T.height});if(J.marginTop=0,J.marginLeft=0,!x&&D){var le=parseFloat(K.marginTop),re=parseFloat(K.marginLeft);J.top-=ee-le,J.bottom-=ee-le,J.left-=te-re,J.right-=te-re,J.marginTop=le,J.marginLeft=re}return(x&&!k?C.contains(A):C===A&&A.nodeName!=="BODY")&&(J=w(J,C)),J}function $(m){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=m.ownerDocument.documentElement,x=L(m,k),D=Math.max(k.clientWidth,window.innerWidth||0),T=Math.max(k.clientHeight,window.innerHeight||0),P=C?0:S(k),A=C?0:S(k,"left"),K={top:P-x.top+x.marginTop,left:A-x.left+x.marginLeft,width:D,height:T};return X(K)}function H(m){var C=m.nodeName;if(C==="BODY"||C==="HTML")return!1;if(d(m,"position")==="fixed")return!0;var k=h(m);return k?H(k):!1}function z(m){if(!m||!m.parentElement||u())return document.documentElement;for(var C=m.parentElement;C&&d(C,"transform")==="none";)C=C.parentElement;return C||document.documentElement}function Z(m,C,k,x){var D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,T={top:0,left:0},P=D?z(m):_(m,p(C));if(x==="viewport")T=$(P,D);else{var A=void 0;x==="scrollParent"?(A=f(h(C)),A.nodeName==="BODY"&&(A=m.ownerDocument.documentElement)):x==="window"?A=m.ownerDocument.documentElement:A=x;var K=L(A,P,D);if(A.nodeName==="HTML"&&!H(P)){var ee=j(m.ownerDocument),te=ee.height,J=ee.width;T.top+=K.top-K.marginTop,T.bottom=te+K.top,T.left+=K.left-K.marginLeft,T.right=J+K.left}else T=K}k=k||0;var le=typeof k=="number";return T.left+=le?k:k.left||0,T.top+=le?k:k.top||0,T.right-=le?k:k.right||0,T.bottom-=le?k:k.bottom||0,T}function se(m){var C=m.width,k=m.height;return C*k}function fe(m,C,k,x,D){var T=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(m.indexOf("auto")===-1)return m;var P=Z(k,x,T,D),A={top:{width:P.width,height:C.top-P.top},right:{width:P.right-C.right,height:P.height},bottom:{width:P.width,height:P.bottom-C.bottom},left:{width:C.left-P.left,height:P.height}},K=Object.keys(A).map(function(le){return R({key:le},A[le],{area:se(A[le])})}).sort(function(le,re){return re.area-le.area}),ee=K.filter(function(le){var re=le.width,ae=le.height;return re>=k.clientWidth&&ae>=k.clientHeight}),te=ee.length>0?ee[0].key:K[0].key,J=m.split("-")[1];return te+(J?"-"+J:"")}function pe(m,C,k){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,D=x?z(C):_(C,p(k));return L(k,D,x)}function be(m){var C=m.ownerDocument.defaultView,k=C.getComputedStyle(m),x=parseFloat(k.marginTop||0)+parseFloat(k.marginBottom||0),D=parseFloat(k.marginLeft||0)+parseFloat(k.marginRight||0),T={width:m.offsetWidth+D,height:m.offsetHeight+x};return T}function we(m){var C={left:"right",right:"left",bottom:"top",top:"bottom"};return m.replace(/left|right|bottom|top/g,function(k){return C[k]})}function Oe(m,C,k){k=k.split("-")[0];var x=be(m),D={width:x.width,height:x.height},T=["right","left"].indexOf(k)!==-1,P=T?"top":"left",A=T?"left":"top",K=T?"height":"width",ee=T?"width":"height";return D[P]=C[P]+C[K]/2-x[K]/2,k===A?D[A]=C[A]-x[ee]:D[A]=C[we(A)],D}function Ye(m,C){return Array.prototype.find?m.find(C):m.filter(C)[0]}function ht(m,C,k){if(Array.prototype.findIndex)return m.findIndex(function(D){return D[C]===k});var x=Ye(m,function(D){return D[C]===k});return m.indexOf(x)}function ft(m,C,k){var x=k===void 0?m:m.slice(0,ht(m,"name",k));return x.forEach(function(D){D.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var T=D.function||D.fn;D.enabled&&c(T)&&(C.offsets.popper=X(C.offsets.popper),C.offsets.reference=X(C.offsets.reference),C=T(C,D))}),C}function q(){if(!this.state.isDestroyed){var m={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};m.offsets.reference=pe(this.state,this.popper,this.reference,this.options.positionFixed),m.placement=fe(this.options.placement,m.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),m.originalPlacement=m.placement,m.positionFixed=this.options.positionFixed,m.offsets.popper=Oe(this.popper,m.offsets.reference,m.placement),m.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",m=ft(this.modifiers,m),this.state.isCreated?this.options.onUpdate(m):(this.state.isCreated=!0,this.options.onCreate(m))}}function ne(m,C){return m.some(function(k){var x=k.name,D=k.enabled;return D&&x===C})}function ce(m){for(var C=[!1,"ms","Webkit","Moz","O"],k=m.charAt(0).toUpperCase()+m.slice(1),x=0;x<C.length;x++){var D=C[x],T=D?""+D+k:m;if(typeof document.body.style[T]!="undefined")return T}return null}function ze(){return this.state.isDestroyed=!0,ne(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ce("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Ue(m){var C=m.ownerDocument;return C?C.defaultView:window}function $t(m,C,k,x){var D=m.nodeName==="BODY",T=D?m.ownerDocument.defaultView:m;T.addEventListener(C,k,{passive:!0}),D||$t(f(T.parentNode),C,k,x),x.push(T)}function en(m,C,k,x){k.updateBound=x,Ue(m).addEventListener("resize",k.updateBound,{passive:!0});var D=f(m);return $t(D,"scroll",k.updateBound,k.scrollParents),k.scrollElement=D,k.eventsEnabled=!0,k}function We(){this.state.eventsEnabled||(this.state=en(this.reference,this.options,this.state,this.scheduleUpdate))}function ue(m,C){return Ue(m).removeEventListener("resize",C.updateBound),C.scrollParents.forEach(function(k){k.removeEventListener("scroll",C.updateBound)}),C.updateBound=null,C.scrollParents=[],C.scrollElement=null,C.eventsEnabled=!1,C}function qe(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=ue(this.reference,this.state))}function ut(m){return m!==""&&!isNaN(parseFloat(m))&&isFinite(m)}function Ze(m,C){Object.keys(C).forEach(function(k){var x="";["width","height","top","right","bottom","left"].indexOf(k)!==-1&&ut(C[k])&&(x="px"),m.style[k]=C[k]+x})}function mt(m,C){Object.keys(C).forEach(function(k){var x=C[k];x!==!1?m.setAttribute(k,C[k]):m.removeAttribute(k)})}function tn(m){return Ze(m.instance.popper,m.styles),mt(m.instance.popper,m.attributes),m.arrowElement&&Object.keys(m.arrowStyles).length&&Ze(m.arrowElement,m.arrowStyles),m}function Ds(m,C,k,x,D){var T=pe(D,C,m,k.positionFixed),P=fe(k.placement,T,C,m,k.modifiers.flip.boundariesElement,k.modifiers.flip.padding);return C.setAttribute("x-placement",P),Ze(C,{position:k.positionFixed?"fixed":"absolute"}),k}function Wn(m,C){var k=m.offsets,x=k.popper,D=k.reference,T=Math.round,P=Math.floor,A=function(sn){return sn},K=T(D.width),ee=T(x.width),te=["left","right"].indexOf(m.placement)!==-1,J=m.placement.indexOf("-")!==-1,le=K%2===ee%2,re=K%2===1&&ee%2===1,ae=C?te||J||le?T:P:A,Be=C?T:A;return{left:ae(re&&!J&&C?x.left-1:x.left),top:Be(x.top),bottom:Be(x.bottom),right:ae(x.right)}}var Ms=i&&/Firefox/i.test(navigator.userAgent);function zs(m,C){var k=C.x,x=C.y,D=m.offsets.popper,T=Ye(m.instance.modifiers,function(bn){return bn.name==="applyStyle"}).gpuAcceleration;T!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var P=T!==void 0?T:C.gpuAcceleration,A=b(m.instance.popper),K=W(A),ee={position:D.position},te=Wn(m,window.devicePixelRatio<2||!Ms),J=k==="bottom"?"top":"bottom",le=x==="right"?"left":"right",re=ce("transform"),ae=void 0,Be=void 0;if(J==="bottom"?A.nodeName==="HTML"?Be=-A.clientHeight+te.bottom:Be=-K.height+te.bottom:Be=te.top,le==="right"?A.nodeName==="HTML"?ae=-A.clientWidth+te.right:ae=-K.width+te.right:ae=te.left,P&&re)ee[re]="translate3d("+ae+"px, "+Be+"px, 0)",ee[J]=0,ee[le]=0,ee.willChange="transform";else{var Ft=J==="bottom"?-1:1,sn=le==="right"?-1:1;ee[J]=Be*Ft,ee[le]=ae*sn,ee.willChange=J+", "+le}var st={"x-placement":m.placement};return m.attributes=R({},st,m.attributes),m.styles=R({},ee,m.styles),m.arrowStyles=R({},m.offsets.arrow,m.arrowStyles),m}function Di(m,C,k){var x=Ye(m,function(A){var K=A.name;return K===C}),D=!!x&&m.some(function(A){return A.name===k&&A.enabled&&A.order<x.order});if(!D){var T="`"+C+"`",P="`"+k+"`";console.warn(P+" modifier is required by "+T+" modifier in order to work, be sure to include it before "+T+"!")}return D}function Ie(m,C){var k;if(!Di(m.instance.modifiers,"arrow","keepTogether"))return m;var x=C.element;if(typeof x=="string"){if(x=m.instance.popper.querySelector(x),!x)return m}else if(!m.instance.popper.contains(x))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),m;var D=m.placement.split("-")[0],T=m.offsets,P=T.popper,A=T.reference,K=["left","right"].indexOf(D)!==-1,ee=K?"height":"width",te=K?"Top":"Left",J=te.toLowerCase(),le=K?"left":"top",re=K?"bottom":"right",ae=be(x)[ee];A[re]-ae<P[J]&&(m.offsets.popper[J]-=P[J]-(A[re]-ae)),A[J]+ae>P[re]&&(m.offsets.popper[J]+=A[J]+ae-P[re]),m.offsets.popper=X(m.offsets.popper);var Be=A[J]+A[ee]/2-ae/2,Ft=d(m.instance.popper),sn=parseFloat(Ft["margin"+te]),st=parseFloat(Ft["border"+te+"Width"]),bn=Be-m.offsets.popper[J]-sn-st;return bn=Math.max(Math.min(P[ee]-ae,bn),0),m.arrowElement=x,m.offsets.arrow=(k={},U(k,J,Math.round(bn)),U(k,le,""),k),m}function pt(m){return m==="end"?"start":m==="start"?"end":m}var At=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],gt=At.slice(3);function Os(m){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=gt.indexOf(m),x=gt.slice(k+1).concat(gt.slice(0,k));return C?x.reverse():x}var nn={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function ml(m,C){if(ne(m.instance.modifiers,"inner")||m.flipped&&m.placement===m.originalPlacement)return m;var k=Z(m.instance.popper,m.instance.reference,C.padding,C.boundariesElement,m.positionFixed),x=m.placement.split("-")[0],D=we(x),T=m.placement.split("-")[1]||"",P=[];switch(C.behavior){case nn.FLIP:P=[x,D];break;case nn.CLOCKWISE:P=Os(x);break;case nn.COUNTERCLOCKWISE:P=Os(x,!0);break;default:P=C.behavior}return P.forEach(function(A,K){if(x!==A||P.length===K+1)return m;x=m.placement.split("-")[0],D=we(x);var ee=m.offsets.popper,te=m.offsets.reference,J=Math.floor,le=x==="left"&&J(ee.right)>J(te.left)||x==="right"&&J(ee.left)<J(te.right)||x==="top"&&J(ee.bottom)>J(te.top)||x==="bottom"&&J(ee.top)<J(te.bottom),re=J(ee.left)<J(k.left),ae=J(ee.right)>J(k.right),Be=J(ee.top)<J(k.top),Ft=J(ee.bottom)>J(k.bottom),sn=x==="left"&&re||x==="right"&&ae||x==="top"&&Be||x==="bottom"&&Ft,st=["top","bottom"].indexOf(x)!==-1,bn=!!C.flipVariations&&(st&&T==="start"&&re||st&&T==="end"&&ae||!st&&T==="start"&&Be||!st&&T==="end"&&Ft),zI=!!C.flipVariationsByContent&&(st&&T==="start"&&ae||st&&T==="end"&&re||!st&&T==="start"&&Ft||!st&&T==="end"&&Be),lh=bn||zI;(le||sn||lh)&&(m.flipped=!0,(le||sn)&&(x=P[K+1]),lh&&(T=pt(T)),m.placement=x+(T?"-"+T:""),m.offsets.popper=R({},m.offsets.popper,Oe(m.instance.popper,m.offsets.reference,m.placement)),m=ft(m.instance.modifiers,m,"flip"))}),m}function Mi(m){var C=m.offsets,k=C.popper,x=C.reference,D=m.placement.split("-")[0],T=Math.floor,P=["top","bottom"].indexOf(D)!==-1,A=P?"right":"bottom",K=P?"left":"top",ee=P?"width":"height";return k[A]<T(x[K])&&(m.offsets.popper[K]=T(x[K])-k[ee]),k[K]>T(x[A])&&(m.offsets.popper[K]=T(x[A])),m}function pl(m,C,k,x){var D=m.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),T=+D[1],P=D[2];if(!T)return m;if(P.indexOf("%")===0){var A=void 0;switch(P){case"%p":A=k;break;case"%":case"%r":default:A=x}var K=X(A);return K[C]/100*T}else if(P==="vh"||P==="vw"){var ee=void 0;return P==="vh"?ee=Math.max(document.documentElement.clientHeight,window.innerHeight||0):ee=Math.max(document.documentElement.clientWidth,window.innerWidth||0),ee/100*T}else return T}function BI(m,C,k,x){var D=[0,0],T=["right","left"].indexOf(x)!==-1,P=m.split(/(\+|\-)/).map(function(te){return te.trim()}),A=P.indexOf(Ye(P,function(te){return te.search(/,|\s/)!==-1}));P[A]&&P[A].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var K=/\s*,\s*|\s+/,ee=A!==-1?[P.slice(0,A).concat([P[A].split(K)[0]]),[P[A].split(K)[1]].concat(P.slice(A+1))]:[P];return ee=ee.map(function(te,J){var le=(J===1?!T:T)?"height":"width",re=!1;return te.reduce(function(ae,Be){return ae[ae.length-1]===""&&["+","-"].indexOf(Be)!==-1?(ae[ae.length-1]=Be,re=!0,ae):re?(ae[ae.length-1]+=Be,re=!1,ae):ae.concat(Be)},[]).map(function(ae){return pl(ae,le,C,k)})}),ee.forEach(function(te,J){te.forEach(function(le,re){ut(le)&&(D[J]+=le*(te[re-1]==="-"?-1:1))})}),D}function NI(m,C){var k=C.offset,x=m.placement,D=m.offsets,T=D.popper,P=D.reference,A=x.split("-")[0],K=void 0;return ut(+k)?K=[+k,0]:K=BI(k,T,P,A),A==="left"?(T.top+=K[0],T.left-=K[1]):A==="right"?(T.top+=K[0],T.left+=K[1]):A==="top"?(T.left+=K[0],T.top-=K[1]):A==="bottom"&&(T.left+=K[0],T.top+=K[1]),m.popper=T,m}function II(m,C){var k=C.boundariesElement||b(m.instance.popper);m.instance.reference===k&&(k=b(k));var x=ce("transform"),D=m.instance.popper.style,T=D.top,P=D.left,A=D[x];D.top="",D.left="",D[x]="";var K=Z(m.instance.popper,m.instance.reference,C.padding,k,m.positionFixed);D.top=T,D.left=P,D[x]=A,C.boundaries=K;var ee=C.priority,te=m.offsets.popper,J={primary:function(re){var ae=te[re];return te[re]<K[re]&&!C.escapeWithReference&&(ae=Math.max(te[re],K[re])),U({},re,ae)},secondary:function(re){var ae=re==="right"?"left":"top",Be=te[ae];return te[re]>K[re]&&!C.escapeWithReference&&(Be=Math.min(te[ae],K[re]-(re==="right"?te.width:te.height))),U({},ae,Be)}};return ee.forEach(function(le){var re=["left","top"].indexOf(le)!==-1?"primary":"secondary";te=R({},te,J[re](le))}),m.offsets.popper=te,m}function EI(m){var C=m.placement,k=C.split("-")[0],x=C.split("-")[1];if(x){var D=m.offsets,T=D.reference,P=D.popper,A=["bottom","top"].indexOf(k)!==-1,K=A?"left":"top",ee=A?"width":"height",te={start:U({},K,T[K]),end:U({},K,T[K]+T[ee]-P[ee])};m.offsets.popper=R({},P,te[x])}return m}function VI(m){if(!Di(m.instance.modifiers,"hide","preventOverflow"))return m;var C=m.offsets.reference,k=Ye(m.instance.modifiers,function(x){return x.name==="preventOverflow"}).boundaries;if(C.bottom<k.top||C.left>k.right||C.top>k.bottom||C.right<k.left){if(m.hide===!0)return m;m.hide=!0,m.attributes["x-out-of-boundaries"]=""}else{if(m.hide===!1)return m;m.hide=!1,m.attributes["x-out-of-boundaries"]=!1}return m}function TI(m){var C=m.placement,k=C.split("-")[0],x=m.offsets,D=x.popper,T=x.reference,P=["left","right"].indexOf(k)!==-1,A=["top","left"].indexOf(k)===-1;return D[P?"left":"top"]=T[k]-(A?D[P?"width":"height"]:0),m.placement=we(C),m.offsets.popper=X(D),m}var DI={shift:{order:100,enabled:!0,fn:EI},offset:{order:200,enabled:!0,fn:NI,offset:0},preventOverflow:{order:300,enabled:!0,fn:II,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Mi},arrow:{order:500,enabled:!0,fn:Ie,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:ml,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:TI},hide:{order:800,enabled:!0,fn:VI},computeStyle:{order:850,enabled:!0,fn:zs,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:tn,onLoad:Ds,gpuAcceleration:void 0}},MI={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:DI},Ps=function(){function m(C,k){var x=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Q(this,m),this.scheduleUpdate=function(){return requestAnimationFrame(x.update)},this.update=o(this.update.bind(this)),this.options=R({},m.Defaults,D),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=C&&C.jquery?C[0]:C,this.popper=k&&k.jquery?k[0]:k,this.options.modifiers={},Object.keys(R({},m.Defaults.modifiers,D.modifiers)).forEach(function(P){x.options.modifiers[P]=R({},m.Defaults.modifiers[P]||{},D.modifiers?D.modifiers[P]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(P){return R({name:P},x.options.modifiers[P])}).sort(function(P,A){return P.order-A.order}),this.modifiers.forEach(function(P){P.enabled&&c(P.onLoad)&&P.onLoad(x.reference,x.popper,x.options,P,x.state)}),this.update();var T=this.options.eventsEnabled;T&&this.enableEventListeners(),this.state.eventsEnabled=T}return F(m,[{key:"update",value:function(){return q.call(this)}},{key:"destroy",value:function(){return ze.call(this)}},{key:"enableEventListeners",value:function(){return We.call(this)}},{key:"disableEventListeners",value:function(){return qe.call(this)}}]),m}();return Ps.Utils=(typeof window!="undefined"?window:Et).PopperUtils,Ps.placements=At,Ps.Defaults=MI,Ps})})(Nl);var Il=Nl.exports;let Vt=0,Oi=0;function jt(){Vt++}function zh(){Oi++}const Oh={name:"Drop",emits:["mouseenter","mouseleave","click"],props:{placement:{type:String,default:"bottom-start"},className:{type:String},transfer:{type:Boolean},eventsEnabled:{type:Boolean,default:!1},visible:{type:Boolean},classes:{type:Object,default:()=>{}},styles:{type:Object,default:()=>{}},transitionName:{type:String,default:"transition-drop"},boundariesElement:{default:"window"}},data(){return{popper:null,width:"",popperStatus:!1,tIndex:this.handleGetIndex()}},computed:{mergedStyle(){let e={};return this.width&&(e.minWidth=`${this.width}px`),this.transfer&&(e["z-index"]=1060+this.tIndex),Object.assign({},this.styles,e)},mergedClass(){return Object.assign({},this.classes,{[this.className]:this.className})}},methods:{update(){t.nextTick(()=>{this.popper?(this.popper.update(),this.popperStatus=!0):this.popper=new Il(this.$parent.$refs.reference,this.$refs.drop,{eventsEnabled:this.eventsEnabled,placement:this.placement,modifiers:{computeStyle:{gpuAcceleration:!1},preventOverflow:{boundariesElement:this.boundariesElement}},onCreate:()=>{this.resetTransformOrigin(),t.nextTick(this.popper.update())},onUpdate:()=>{this.resetTransformOrigin()}}),this.$parent.$options.name==="iSelect"&&(this.width=parseInt(yt(this.$parent.$el,"width"))),this.tIndex=this.handleGetIndex()})},destroy(){this.popper&&setTimeout(()=>{this.popper&&!this.popperStatus&&(this.popper.popper.style.display="none",this.popper.destroy(),this.popper=null),this.popperStatus=!1},300)},resetTransformOrigin(){if(!this.popper)return;let e=this.popper.popper.getAttribute("x-placement"),n=e.split("-")[0],i=e.split("-")[1];e==="left"||e==="right"||(this.popper.popper.style.transformOrigin=n==="bottom"||n!=="top"&&i==="start"?"center top":"center bottom")},handleGetIndex(){return jt(),Vt},handleMouseenter(e){this.$emit("mouseenter",e)},handleMouseleave(e){this.$emit("mouseleave",e)},handleOnUpdatePopper(){this.update()},handleOnDestroyPopper(){this.destroy()},handleClick(e){this.$emit("click",e)}},beforeUnmount(){this.popper&&(this.popper.destroy(),this.popper=null)}};function Ph(e,n,i,l,r,s){return t.openBlock(),t.createBlock(t.Teleport,{to:"body",disabled:!i.transfer},[t.createVNode(t.Transition,{name:i.transitionName},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",t.mergeProps({class:["ivu-select-dropdown",s.mergedClass],ref:"drop",style:s.mergedStyle},e.$attrs,{onMouseenter:n[0]||(n[0]=(...a)=>s.handleMouseenter&&s.handleMouseenter(...a)),onMouseleave:n[1]||(n[1]=(...a)=>s.handleMouseleave&&s.handleMouseleave(...a)),onClick:n[2]||(n[2]=t.withModifiers((...a)=>s.handleClick&&s.handleClick(...a),["stop"]))}),[t.renderSlot(e.$slots,"default")],16),[[t.vShow,i.visible]])]),_:3},8,["name"])],8,["disabled"])}var kn=N(Oh,[["render",Ph]]);function _h(e){Y&&typeof window.viewuiplus!="undefined"&&("langs"in viewuiplus||(viewuiplus.langs={}),viewuiplus.langs[e.i.locale]=e)}const js={i:{locale:"zh-CN",select:{placeholder:"\u8BF7\u9009\u62E9",noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D"},table:{noDataText:"\u6682\u65E0\u6570\u636E",noFilteredDataText:"\u6682\u65E0\u7B5B\u9009\u7ED3\u679C",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},datepicker:{selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",clear:"\u6E05\u7A7A",ok:"\u786E\u5B9A",datePanelLabel:"[yyyy\u5E74] [m\u6708]",month:"\u6708",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",year:"\u5E74",weekStartDay:"0",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{m1:"1\u6708",m2:"2\u6708",m3:"3\u6708",m4:"4\u6708",m5:"5\u6708",m6:"6\u6708",m7:"7\u6708",m8:"8\u6708",m9:"9\u6708",m10:"10\u6708",m11:"11\u6708",m12:"12\u6708"}},transfer:{titles:{source:"\u6E90\u5217\u8868",target:"\u76EE\u7684\u5217\u8868"},filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",notFoundText:"\u5217\u8868\u4E3A\u7A7A"},modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},poptip:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},page:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",total:"\u5171",item:"\u6761",items:"\u9879\u6570\u636E",prev5:"\u5411\u524D 5 \u9875",next5:"\u5411\u540E 5 \u9875",page:"\u6761/\u9875",goto:"\u8DF3\u81F3",p:"\u9875"},rate:{star:"\u661F",stars:"\u661F"},time:{before:"\u524D",after:"\u540E",just:"\u521A\u521A",seconds:"\u79D2",minutes:"\u5206\u949F",hours:"\u5C0F\u65F6",days:"\u5929"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},image:{zoomIn:"\u653E\u5927",zoomOut:"\u7F29\u5C0F",rotateLeft:"\u5DE6\u65CB\u8F6C",rotateRight:"\u53F3\u65CB\u8F6C",fail:"\u5931\u8D25",preview:"\u9884\u89C8"}}};_h(js);var Lh=function(n){return $h(n)&&!Ah(n)};function $h(e){return!!e&&typeof e=="object"}function Ah(e){var n=Object.prototype.toString.call(e);return n==="[object RegExp]"||n==="[object Date]"||Rh(e)}var Fh=typeof Symbol=="function"&&Symbol.for,jh=Fh?Symbol.for("react.element"):60103;function Rh(e){return e.$$typeof===jh}function Uh(e){return Array.isArray(e)?[]:{}}function Pi(e,n){return n.clone!==!1&&n.isMergeableObject(e)?Hn(Uh(e),e,n):e}function Wh(e,n,i){return e.concat(n).map(function(l){return Pi(l,i)})}function Hh(e,n,i){var l={};return i.isMergeableObject(e)&&Object.keys(e).forEach(function(r){l[r]=Pi(e[r],i)}),Object.keys(n).forEach(function(r){!i.isMergeableObject(n[r])||!e[r]?l[r]=Pi(n[r],i):l[r]=Hn(e[r],n[r],i)}),l}function Hn(e,n,i){i=i||{},i.arrayMerge=i.arrayMerge||Wh,i.isMergeableObject=i.isMergeableObject||Lh;var l=Array.isArray(n),r=Array.isArray(e),s=l===r;return s?l?i.arrayMerge(e,n,i):Hh(e,n,i):Pi(n,i)}Hn.all=function(n,i){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(l,r){return Hn(l,r,i)},{})};var Kh=Hn;const Yh=/(%|)\{([0-9a-zA-Z_]+)\}/g;function qh(){function e(i,l){return Object.prototype.hasOwnProperty.call(i,l)}function n(i,...l){return l.length===1&&typeof l[0]=="object"&&(l=l[0]),(!l||!l.hasOwnProperty)&&(l={}),i===void 0?"":i.replace(Yh,(r,s,a,o)=>{let c;return i[o-1]==="{"&&i[o+r.length]==="}"?a:(c=e(l,a)?l[a]:null,c==null?"":c)})}return n}const Gh=qh();let _i=js;const Qh={zh:js};let El=null,Vl={},Pe=null,vh=function(){if(Reflect.has(this,"$t"))return this.$t(...arguments);if(Pe&&Pe.global)return Pe.global.t(...arguments);if(Pe&&Pe.locale){if(!Vl[Pe.locale]||El!=Pe.locale){Vl[Pe.locale]=!0;let e=Pe.getLocaleMessage(Pe.locale)||{},n={};Kh(n,Qh[Pe.locale],e),_i=n,Pe.setLocaleMessage(Pe.locale,n),El=Pe.locale}return Pe.hlang(...arguments)}};const Tl=function(e,n){let i=vh.apply(this,arguments);if(i!=null)return i;const l=e.split(".");let r=_i;for(let s=0,a=l.length;s<a;s++){const o=l[s];if(i=r[o],s===a-1)return Gh(i,n);if(!i)return"";r=i}return""};var Kn={use:function(e){_i=e||_i},t:Tl,i18n:function(e){Pe=e}},ge={methods:{t(...e){return Tl.apply(this,e)}}},Rt={data(){return{globalConfig:{}}},created(){const e=t.getCurrentInstance();this.globalConfig=e.appContext.config.globalProperties.$VIEWUI}};const Yn="ivu-select",Jh={name:"iSelectHead",mixins:[ge,Rt],components:{Icon:ie},emits:["on-input-focus","on-input-blur","on-keydown","on-enter","on-clear","on-query-change"],inject:["SelectInstance"],props:{disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},initialLabel:{type:[String,Number,Array]},values:{type:Array,default:()=>[]},clearable:{type:[Function,Boolean],default:!1},inputElementId:{type:String},placeholder:{type:String},queryProp:{type:String,default:""},prefix:{type:String},maxTagCount:{type:Number},maxTagPlaceholder:{type:Function},allowCreate:{type:Boolean},showCreateItem:{type:Boolean}},data(){return{prefixCls:Yn,query:"",inputLength:20,remoteInitialLabel:this.initialLabel,preventRemoteCall:!1}},computed:{singleDisplayClasses(){const{filterable:e,multiple:n,showPlaceholder:i}=this;return[{[Yn+"-head-with-prefix"]:this.showPrefix,[Yn+"-placeholder"]:i&&!e,[Yn+"-selected-value"]:!i&&!n&&!e}]},singleDisplayValue(){return this.multiple&&this.values.length>0||this.filterable?"":`${this.selectedSingle}`||this.localePlaceholder},showPlaceholder(){let e=!1;if(this.multiple)!this.values.length>0&&(e=!0);else{const n=this.values[0];(typeof n=="undefined"||String(n).trim()==="")&&(e=!this.remoteInitialLabel)}return e},resetSelect(){return!this.showPlaceholder&&this.clearable},inputStyle(){let e={};return this.multiple&&(this.showPlaceholder?e.width="100%":e.width=`${this.inputLength}px`),e},localePlaceholder(){return this.placeholder===void 0?this.readonly?"-":this.t("i.select.placeholder"):this.placeholder},selectedSingle(){const e=this.values[0];return e?e.label:this.remoteInitialLabel||""},selectedMultiple(){return(this.multiple?this.values:[]).filter((n,i)=>this.maxTagCount===void 0||i<this.maxTagCount)},headCls(){return{[`${Yn}-head-flex`]:this.filterable&&this.showPrefix}},arrowType(){const e=this.globalConfig;let n="ios-arrow-down";return e&&(e.select.customArrow?n="":e.select.arrow&&(n=e.select.arrow)),n},customArrowType(){const e=this.globa