bkui-vue 0.0.1-beta.473 → 0.0.1-beta.474

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.cjs.js CHANGED
@@ -30,7 +30,7 @@ function print() { __p += __j.call(arguments, '') }
30
30
  font-size: ${s["font-size"]};
31
31
  word-break: ${s["word-break"]};
32
32
  padding: ${s.padding};
33
- `,o.textContent=i.textContent,o};let n=!1;try{const i=window.getComputedStyle(e,null);if(i.webkitLineClamp!=="none"){const o=parseFloat(i.height),c=t(e,i);document.body.appendChild(c);const u=window.getComputedStyle(c,null).height;document.body.removeChild(c),n=o<parseFloat(u)}else n=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(i){console.warn("There is an error when check element overflow state: ",i)}return n}const qo={bottom:0,content:1,navi:100,fullScreen:1e3,modal:3e3,plugins:8e3,message:1e4,popper:99999};class KC{constructor(){Te(this,"storageLayerIndexValue",{});this.copyDefaultValue()}getNextIndex(t){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,t)?(this.storageLayerIndexValue[t]=this.storageLayerIndexValue[t]+1,this.storageLayerIndexValue[t]):(this.storageLayerIndexValue.modal=this.storageLayerIndexValue.modal+1,this.storageLayerIndexValue.modal)}getModalNextIndex(){return this.getNextIndex("modal")}getMessageNextIndex(){return this.getNextIndex("message")}getFullScreenNextIndex(){return this.getNextIndex("fullScreen")}getNaviNextIndex(){return this.getNextIndex("navi")}getPopperIndex(){return qo.popper}setDefaultZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue.__proto__,n)&&Object.assign(this.storageLayerIndexValue.__proto__,{[n]:t[n]})}),this.copyDefaultValue()}resetZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,n)&&Object.assign(this.storageLayerIndexValue,{[n]:t[n]})})}copyDefaultValue(){const t=Object.keys(qo).reduce((n,i)=>Object.assign(n,{[i]:{value:qo[i],writable:!0,configurable:!0}}),{});this.storageLayerIndexValue=Object.create(qo,t)}}const pi=new KC;`${za(16)}`;class XC{constructor(){Te(this,"timer",null);Te(this,"store",[]);Te(this,"maskMap",new WeakMap)}appendMaker(t){this.store.push(t),this.executeMaker()}pushMaskStyle(t,n){const i=this.getMaskMap(t);i!=null&&i.styles?i.styles.push(n):this.setMaskMap(t,{styles:[n],...i||{}})}getMaskStyles(t){var n;return((n=this.getMaskMap(t))==null?void 0:n.styles)||[]}setMaskId(t,n){const i=this.getMaskMap(t);i?(Object.assign(i,{id:n}),this.setMaskMap(t,i)):this.setMaskMap(t,{id:n,...i||{}})}getMaskId(t){var n;return(n=this.getMaskMap(t))==null?void 0:n.id}setMaskMap(t,n){this.maskMap.set(t,n)}getMaskMap(t){return this.maskMap.get(t)}executeMaker(){this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame(()=>{const t=this.store.pop();typeof t=="function"&&(Reflect.apply(t,this,[]),this.executeMaker())})}}const ur=new XC;class Y6{constructor(t){Te(this,"mask");Te(this,"backupMask");Te(this,"multiInstance",!1);Te(this,"uniqueMaskAttrTag","");Te(this,"parentNode",document.body);Te(this,"activeInstance");Te(this,"zIndexStore",new Map);Te(this,"lastUUID",null);Te(this,"maskStyle",{position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"});Te(this,"onClick");Te(this,"isInit",!1);Te(this,"maskAttrTag","auto");Te(this,"popInstance");const{multiInstance:n=!1,maskAttrTag:i="auto",parentNode:s=document.body,maskStyle:o={},onClick:c=null,popInstance:u=null}=t||{};this.parentNode=s||document,this.maskAttrTag=i,this.onClick=c,this.activeInstance=void 0,this.multiInstance=n,this.popInstance=u,this.uniqueMaskAttrTag=this.getMaskAttrTag(i),ur.appendMaker(()=>{this.initInstance(o)})}setOption(t){const{parentNode:n=document.body,maskStyle:i={},onClick:s=null,maskAttrTag:o=this.maskAttrTag}=t||{};this.onClick=s,this.parentNode=n||document,this.setMaskStyle(Object.assign({},this.maskStyle,i)),this.uniqueMaskAttrTag=this.getMaskAttrTag(o)}show(t,n,i=!0,s={},o=null,c=!1){const u=o??za(16),d=/-?\d+/.test(`${n}`)?n:pi.getModalNextIndex();let f=Object.assign({},this.maskStyle,s||{});if(!i&&this.lastUUID){const m=this.zIndexStore.get(this.lastUUID);m&&(f=m==null?void 0:m.style)}this.storeMaskInsCfg({zIndex:d,style:{...f},uuid:u,preUID:this.lastUUID}),Object.assign(f,{display:"block","z-index":`${d}`,"pointer-events":"all"}),this.initInstance(f),this.catchClickEvent(),this.setMaskStyle(f),ur.pushMaskStyle(this.parentNode,{...f}),this.backupMask.style.setProperty("z-index",`${d-1}`),i||(this.mask.style.setProperty("pointer-events","none"),t==null||t.style.setProperty("pointer-events","all")),t&&(c&&t.style.setProperty("z-index",`${d+1}`),this.activeInstance=t,this.appendContentToMask(t))}hide(t=!1,n,i){var c;const s=i??this.lastUUID;t||(n==null||n.remove(),(c=this.activeInstance)==null||c.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(s);const o=ur.getMaskStyles(this.parentNode);if(o==null||o.pop(),!(o!=null&&o.length))this.mask.style.setProperty("display","none");else{const u=o.slice(-1)[0];this.setMaskStyle(u)}}storeMaskInsCfg(t){return this.zIndexStore.set(t.uuid,t),this.lastUUID=t.uuid,this.zIndexStore.get(t.uuid)}popIndexStore(t){if(this.zIndexStore.has(t)){const n=this.zIndexStore.get(t);return this.lastUUID=n.preUID,this.zIndexStore.delete(t)}return this.lastUUID=null,!1}backupActiveInstance(){this.activeInstance&&this.backupMask.append(this.activeInstance)}backupContentElement(t){t&&this.backupMask.append(t)}getActiveContentInstance(){return this.activeInstance}initInstance(t){if(!this.isInit){this.isInit=!0;const{instance:n,isExist:i}=this.getMask();this.mask=n,this.backupMask=this.getBackupMask(),!i&&this.setMaskStyle(Object.assign({},this.maskStyle,t))}}getMask(){if(this.multiInstance)return{instance:this.createMask(),isExist:!1};let t=!0,n=this.parentNode.querySelector(`[data-bk-mask-uid='${this.uniqueMaskAttrTag}']`);return n||(t=!1,n=this.createMask()),{instance:n,isExist:t}}catchClickEvent(){this.mask&&this.mask.addEventListener("click",t=>this.handleMaskClick(t),!0)}removeClickEvent(){this.mask&&this.mask.removeEventListener("click",this.handleMaskClick)}handleMaskClick(t){t.target===this.mask&&typeof this.onClick=="function"&&Reflect.apply(this.onClick,this.popInstance||this,[t])}getBackupMask(){const t="data-bk-backup-uid";let n=this.parentNode.querySelector(`[${t}]`);return n||(n=this.createMask(t)),n}createMask(t="data-bk-mask-uid"){const n=document.createElement("div");return n.setAttribute(t,this.uniqueMaskAttrTag),this.parentNode.append(n),n}setMaskStyle(t={}){this.mask&&Object.entries(t).forEach(n=>this.mask.style.setProperty(n[0],n[1]))}getMaskAttrTag(t){return/^(auto|\s+)$/i.test(t)||t===null||t===void 0||t===""?(ur.getMaskId(this.parentNode)||ur.setMaskId(this.parentNode,`__bk_mask_${za(16)}`),ur.getMaskId(this.parentNode)):t}appendContentToMask(t){this.mask.append(t)}}new Y6({});class U6{constructor(t){Te(this,"popInstanceList");Te(this,"uuidAttrName");Te(this,"clickFn");Te(this,"bKMaskManagerInstance");this.popInstanceList=[],this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.bKMaskManagerInstance=new Y6({parentNode:this.getParentNode(t==null?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}getParentNode(t){if(typeof t=="string"){const n=document.querySelector(t);if(n)return n}return Pa(t)?t:document.body}onMaskClick(t,n){this.clickFn={fn:t,target:n}}show(t,n=!0,i={},s=!1,o=void 0){if(!t){console.warn("pop show error: content is null or undefined");return}const c=typeof o=="number"?o:pi.getModalNextIndex(),u=za(16);t.setAttribute(this.uuidAttrName,u),this.popInstanceList.push({uuid:u,zIndex:c,content:t,showMask:n,appendStyle:i}),n&&this.bKMaskManagerInstance.backupActiveInstance(),this.bKMaskManagerInstance.show(t,c,n,i,u,s)}destroy(t,n=!1){this.clickFn=void 0,this.hide(t,n)}popHide(t=!0){if(this.popInstanceList.length){if(t){const n=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(n.uuid),n.remove()}if(this.popInstanceList.length){const n=this.popInstanceList.slice(-1)[0],{zIndex:i,content:s,showMask:o,appendStyle:c,uuid:u}=n;this.bKMaskManagerInstance.show(s,i,o,c,u)}else this.bKMaskManagerInstance.hide()}}hide(t,n=!1){const i=t==null?void 0:t.getAttribute(this.uuidAttrName);if(i){const s=this.popInstanceList.findIndex(o=>o.uuid===i);s>=0&&(n||this.popInstanceList[s].content.remove(),this.popInstanceList.splice(s,1),this.bKMaskManagerInstance.popIndexStore(i),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(n))}else t==null||t.remove()}onMaskClickFn(t){const{fn:n}=this.clickFn;n&&Reflect.apply(n,this,[t])}}new U6;var Ld={exports:{}},t3=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t3){var n3=new Uint8Array(16);Ld.exports=function(){return t3(n3),n3}}else{var i3=new Array(16);Ld.exports=function(){for(var t=0,n;t<16;t++)t&3||(n=Math.random()*4294967296),i3[t]=n>>>((t&3)<<3)&255;return i3}}var K6=Ld.exports,X6=[];for(var el=0;el<256;++el)X6[el]=(el+256).toString(16).substr(1);function qC(e,t){var n=t||0,i=X6;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}var q6=qC,e8=K6,t8=q6,a3,sd,od=0,ld=0;function n8(e,t,n){var i=t&&n||0,s=t||[];e=e||{};var o=e.node||a3,c=e.clockseq!==void 0?e.clockseq:sd;if(o==null||c==null){var u=e8();o==null&&(o=a3=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),c==null&&(c=sd=(u[6]<<8|u[7])&16383)}var d=e.msecs!==void 0?e.msecs:new Date().getTime(),f=e.nsecs!==void 0?e.nsecs:ld+1,m=d-od+(f-ld)/1e4;if(m<0&&e.clockseq===void 0&&(c=c+1&16383),(m<0||d>od)&&e.nsecs===void 0&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");od=d,ld=f,sd=c,d+=122192928e5;var p=((d&268435455)*1e4+f)%4294967296;s[i++]=p>>>24&255,s[i++]=p>>>16&255,s[i++]=p>>>8&255,s[i++]=p&255;var v=d/4294967296*1e4&268435455;s[i++]=v>>>8&255,s[i++]=v&255,s[i++]=v>>>24&15|16,s[i++]=v>>>16&255,s[i++]=c>>>8|128,s[i++]=c&255;for(var y=0;y<6;++y)s[i+y]=o[y];return t||t8(s)}var i8=n8,a8=K6,r8=q6;function s8(e,t,n){var i=t&&n||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||a8)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t)for(var o=0;o<16;++o)t[i+o]=s[o];return t||r8(s)}var o8=s8,l8=i8,eg=o8,df=eg;df.v1=l8;df.v4=eg;var Ri=df,un="top",Jn="bottom",Qn="right",dn="left",ff="auto",$s=[un,Jn,Qn,dn],kr="start",Ps="end",c8="clippingParents",tg="viewport",hs="popper",u8="reference",r3=$s.reduce(function(e,t){return e.concat([t+"-"+kr,t+"-"+Ps])},[]),ng=[].concat($s,[ff]).reduce(function(e,t){return e.concat([t,t+"-"+kr,t+"-"+Ps])},[]),d8="beforeRead",f8="read",h8="afterRead",g8="beforeMain",m8="main",p8="afterMain",v8="beforeWrite",y8="write",b8="afterWrite",C8=[d8,f8,h8,g8,m8,p8,v8,y8,b8];function vi(e){return e?(e.nodeName||"").toLowerCase():null}function kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qa(e){var t=kn(e).Element;return e instanceof t||e instanceof Element}function Rn(e){var t=kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hf(e){if(typeof ShadowRoot>"u")return!1;var t=kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function w8(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!Rn(o)||!vi(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(c){var u=s[c];u===!1?o.removeAttribute(c):o.setAttribute(c,u===!0?"":u)}))})}function M8(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(i){var s=t.elements[i],o=t.attributes[i]||{},c=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),u=c.reduce(function(d,f){return d[f]="",d},{});!Rn(s)||!vi(s)||(Object.assign(s.style,u),Object.keys(o).forEach(function(d){s.removeAttribute(d)}))})}}const N8={name:"applyStyles",enabled:!0,phase:"write",fn:w8,effect:M8,requires:["computeStyles"]};function fi(e){return e.split("-")[0]}var Va=Math.max,Nl=Math.min,Tr=Math.round;function kd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ig(){return!/^((?!chrome|android).)*safari/i.test(kd())}function xr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&Rn(e)&&(s=e.offsetWidth>0&&Tr(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Tr(i.height)/e.offsetHeight||1);var c=Qa(e)?kn(e):window,u=c.visualViewport,d=!ig()&&n,f=(i.left+(d&&u?u.offsetLeft:0))/s,m=(i.top+(d&&u?u.offsetTop:0))/o,p=i.width/s,v=i.height/o;return{width:p,height:v,top:m,right:f+p,bottom:m+v,left:f,x:f,y:m}}function gf(e){var t=xr(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function ag(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hf(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ji(e){return kn(e).getComputedStyle(e)}function I8(e){return["table","td","th"].indexOf(vi(e))>=0}function ha(e){return((Qa(e)?e.ownerDocument:e.document)||window.document).documentElement}function $l(e){return vi(e)==="html"?e:e.assignedSlot||e.parentNode||(hf(e)?e.host:null)||ha(e)}function s3(e){return!Rn(e)||Ji(e).position==="fixed"?null:e.offsetParent}function L8(e){var t=/firefox/i.test(kd()),n=/Trident/i.test(kd());if(n&&Rn(e)){var i=Ji(e);if(i.position==="fixed")return null}var s=$l(e);for(hf(s)&&(s=s.host);Rn(s)&&["html","body"].indexOf(vi(s))<0;){var o=Ji(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function Gs(e){for(var t=kn(e),n=s3(e);n&&I8(n)&&Ji(n).position==="static";)n=s3(n);return n&&(vi(n)==="html"||vi(n)==="body"&&Ji(n).position==="static")?t:n||L8(e)||t}function mf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ks(e,t,n){return Va(e,Nl(t,n))}function k8(e,t,n){var i=ks(e,t,n);return i>n?n:i}function rg(){return{top:0,right:0,bottom:0,left:0}}function sg(e){return Object.assign({},rg(),e)}function og(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var T8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,sg(typeof t!="number"?t:og(t,$s))};function x8(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,c=n.modifiersData.popperOffsets,u=fi(n.placement),d=mf(u),f=[dn,Qn].indexOf(u)>=0,m=f?"height":"width";if(!(!o||!c)){var p=T8(s.padding,n),v=gf(o),y=d==="y"?un:dn,b=d==="y"?Jn:Qn,w=n.rects.reference[m]+n.rects.reference[d]-c[d]-n.rects.popper[m],k=c[d]-n.rects.reference[d],N=Gs(o),S=N?d==="y"?N.clientHeight||0:N.clientWidth||0:0,C=w/2-k/2,I=p[y],L=S-v[m]-p[b],T=S/2-v[m]/2+C,J=ks(I,T,L),x=d;n.modifiersData[i]=(t={},t[x]=J,t.centerOffset=J-T,t)}}function S8(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||ag(t.elements.popper,s)&&(t.elements.arrow=s))}const D8={name:"arrow",enabled:!0,phase:"main",fn:x8,effect:S8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sr(e){return e.split("-")[1]}var j8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function O8(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Tr(n*s)/s||0,y:Tr(i*s)/s||0}}function o3(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,c=e.offsets,u=e.position,d=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,p=e.isFixed,v=c.x,y=v===void 0?0:v,b=c.y,w=b===void 0?0:b,k=typeof m=="function"?m({x:y,y:w}):{x:y,y:w};y=k.x,w=k.y;var N=c.hasOwnProperty("x"),S=c.hasOwnProperty("y"),C=dn,I=un,L=window;if(f){var T=Gs(n),J="clientHeight",x="clientWidth";if(T===kn(n)&&(T=ha(n),Ji(T).position!=="static"&&u==="absolute"&&(J="scrollHeight",x="scrollWidth")),T=T,s===un||(s===dn||s===Qn)&&o===Ps){I=Jn;var j=p&&T===L&&L.visualViewport?L.visualViewport.height:T[J];w-=j-i.height,w*=d?1:-1}if(s===dn||(s===un||s===Jn)&&o===Ps){C=Qn;var R=p&&T===L&&L.visualViewport?L.visualViewport.width:T[x];y-=R-i.width,y*=d?1:-1}}var O=Object.assign({position:u},f&&j8),E=m===!0?O8({x:y,y:w},kn(n)):{x:y,y:w};if(y=E.x,w=E.y,d){var V;return Object.assign({},O,(V={},V[I]=S?"0":"",V[C]=N?"0":"",V.transform=(L.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",V))}return Object.assign({},O,(t={},t[I]=S?w+"px":"",t[C]=N?y+"px":"",t.transform="",t))}function A8(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,c=o===void 0?!0:o,u=n.roundOffsets,d=u===void 0?!0:u,f={placement:fi(t.placement),variation:Sr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,o3(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,o3(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const E8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A8,data:{}};var tl={passive:!0};function P8(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,c=i.resize,u=c===void 0?!0:c,d=kn(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(m){m.addEventListener("scroll",n.update,tl)}),u&&d.addEventListener("resize",n.update,tl),function(){o&&f.forEach(function(m){m.removeEventListener("scroll",n.update,tl)}),u&&d.removeEventListener("resize",n.update,tl)}}const z8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:P8,data:{}};var V8={left:"right",right:"left",bottom:"top",top:"bottom"};function dl(e){return e.replace(/left|right|bottom|top/g,function(t){return V8[t]})}var R8={start:"end",end:"start"};function l3(e){return e.replace(/start|end/g,function(t){return R8[t]})}function pf(e){var t=kn(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function vf(e){return xr(ha(e)).left+pf(e).scrollLeft}function J8(e,t){var n=kn(e),i=ha(e),s=n.visualViewport,o=i.clientWidth,c=i.clientHeight,u=0,d=0;if(s){o=s.width,c=s.height;var f=ig();(f||!f&&t==="fixed")&&(u=s.offsetLeft,d=s.offsetTop)}return{width:o,height:c,x:u+vf(e),y:d}}function Q8(e){var t,n=ha(e),i=pf(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=Va(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Va(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-i.scrollLeft+vf(e),d=-i.scrollTop;return Ji(s||n).direction==="rtl"&&(u+=Va(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:c,x:u,y:d}}function yf(e){var t=Ji(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function lg(e){return["html","body","#document"].indexOf(vi(e))>=0?e.ownerDocument.body:Rn(e)&&yf(e)?e:lg($l(e))}function Ts(e,t){var n;t===void 0&&(t=[]);var i=lg(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=kn(i),c=s?[o].concat(o.visualViewport||[],yf(i)?i:[]):i,u=t.concat(c);return s?u:u.concat(Ts($l(c)))}function Td(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _8(e,t){var n=xr(e,!1,t==="fixed");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}function c3(e,t,n){return t===tg?Td(J8(e,n)):Qa(t)?_8(t,n):Td(Q8(ha(e)))}function W8(e){var t=Ts($l(e)),n=["absolute","fixed"].indexOf(Ji(e).position)>=0,i=n&&Rn(e)?Gs(e):e;return Qa(i)?t.filter(function(s){return Qa(s)&&ag(s,i)&&vi(s)!=="body"}):[]}function H8(e,t,n,i){var s=t==="clippingParents"?W8(e):[].concat(t),o=[].concat(s,[n]),c=o[0],u=o.reduce(function(d,f){var m=c3(e,f,i);return d.top=Va(m.top,d.top),d.right=Nl(m.right,d.right),d.bottom=Nl(m.bottom,d.bottom),d.left=Va(m.left,d.left),d},c3(e,c,i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function cg(e){var t=e.reference,n=e.element,i=e.placement,s=i?fi(i):null,o=i?Sr(i):null,c=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,d;switch(s){case un:d={x:c,y:t.y-n.height};break;case Jn:d={x:c,y:t.y+t.height};break;case Qn:d={x:t.x+t.width,y:u};break;case dn:d={x:t.x-n.width,y:u};break;default:d={x:t.x,y:t.y}}var f=s?mf(s):null;if(f!=null){var m=f==="y"?"height":"width";switch(o){case kr:d[f]=d[f]-(t[m]/2-n[m]/2);break;case Ps:d[f]=d[f]+(t[m]/2-n[m]/2);break}}return d}function zs(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,c=o===void 0?e.strategy:o,u=n.boundary,d=u===void 0?c8:u,f=n.rootBoundary,m=f===void 0?tg:f,p=n.elementContext,v=p===void 0?hs:p,y=n.altBoundary,b=y===void 0?!1:y,w=n.padding,k=w===void 0?0:w,N=sg(typeof k!="number"?k:og(k,$s)),S=v===hs?u8:hs,C=e.rects.popper,I=e.elements[b?S:v],L=H8(Qa(I)?I:I.contextElement||ha(e.elements.popper),d,m,c),T=xr(e.elements.reference),J=cg({reference:T,element:C,strategy:"absolute",placement:s}),x=Td(Object.assign({},C,J)),j=v===hs?x:T,R={top:L.top-j.top+N.top,bottom:j.bottom-L.bottom+N.bottom,left:L.left-j.left+N.left,right:j.right-L.right+N.right},O=e.modifiersData.offset;if(v===hs&&O){var E=O[s];Object.keys(R).forEach(function(V){var B=[Qn,Jn].indexOf(V)>=0?1:-1,K=[un,Jn].indexOf(V)>=0?"y":"x";R[V]+=E[K]*B})}return R}function B8(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,c=n.padding,u=n.flipVariations,d=n.allowedAutoPlacements,f=d===void 0?ng:d,m=Sr(i),p=m?u?r3:r3.filter(function(b){return Sr(b)===m}):$s,v=p.filter(function(b){return f.indexOf(b)>=0});v.length===0&&(v=p);var y=v.reduce(function(b,w){return b[w]=zs(e,{placement:w,boundary:s,rootBoundary:o,padding:c})[fi(w)],b},{});return Object.keys(y).sort(function(b,w){return y[b]-y[w]})}function F8(e){if(fi(e)===ff)return[];var t=dl(e);return[l3(e),t,l3(t)]}function $8(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,u=c===void 0?!0:c,d=n.fallbackPlacements,f=n.padding,m=n.boundary,p=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,w=n.allowedAutoPlacements,k=t.options.placement,N=fi(k),S=N===k,C=d||(S||!b?[dl(k)]:F8(k)),I=[k].concat(C).reduce(function(W,H){return W.concat(fi(H)===ff?B8(t,{placement:H,boundary:m,rootBoundary:p,padding:f,flipVariations:b,allowedAutoPlacements:w}):H)},[]),L=t.rects.reference,T=t.rects.popper,J=new Map,x=!0,j=I[0],R=0;R<I.length;R++){var O=I[R],E=fi(O),V=Sr(O)===kr,B=[un,Jn].indexOf(E)>=0,K=B?"width":"height",oe=zs(t,{placement:O,boundary:m,rootBoundary:p,altBoundary:v,padding:f}),ve=B?V?Qn:dn:V?Jn:un;L[K]>T[K]&&(ve=dl(ve));var fe=dl(ve),ae=[];if(o&&ae.push(oe[E]<=0),u&&ae.push(oe[ve]<=0,oe[fe]<=0),ae.every(function(W){return W})){j=O,x=!1;break}J.set(O,ae)}if(x)for(var ee=b?3:1,Y=function(H){var ie=I.find(function(he){var re=J.get(he);if(re)return re.slice(0,H).every(function(X){return X})});if(ie)return j=ie,"break"},$=ee;$>0;$--){var _=Y($);if(_==="break")break}t.placement!==j&&(t.modifiersData[i]._skip=!0,t.placement=j,t.reset=!0)}}const G8={name:"flip",enabled:!0,phase:"main",fn:$8,requiresIfExists:["offset"],data:{_skip:!1}};function u3(e,t,n){return n===void 0&&(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 d3(e){return[un,Qn,Jn,dn].some(function(t){return e[t]>=0})}function Z8(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,c=zs(t,{elementContext:"reference"}),u=zs(t,{altBoundary:!0}),d=u3(c,i),f=u3(u,s,o),m=d3(d),p=d3(f);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:m,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":p})}const Y8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Z8};function U8(e,t,n){var i=fi(e),s=[dn,un].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=o[0],u=o[1];return c=c||0,u=(u||0)*s,[dn,Qn].indexOf(i)>=0?{x:u,y:c}:{x:c,y:u}}function K8(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,c=ng.reduce(function(m,p){return m[p]=U8(p,t.rects,o),m},{}),u=c[t.placement],d=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=f),t.modifiersData[i]=c}const X8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K8};function q8(e){var t=e.state,n=e.name;t.modifiersData[n]=cg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ew={name:"popperOffsets",enabled:!0,phase:"read",fn:q8,data:{}};function tw(e){return e==="x"?"y":"x"}function nw(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,u=c===void 0?!1:c,d=n.boundary,f=n.rootBoundary,m=n.altBoundary,p=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,w=b===void 0?0:b,k=zs(t,{boundary:d,rootBoundary:f,padding:p,altBoundary:m}),N=fi(t.placement),S=Sr(t.placement),C=!S,I=mf(N),L=tw(I),T=t.modifiersData.popperOffsets,J=t.rects.reference,x=t.rects.popper,j=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,R=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(T){if(o){var V,B=I==="y"?un:dn,K=I==="y"?Jn:Qn,oe=I==="y"?"height":"width",ve=T[I],fe=ve+k[B],ae=ve-k[K],ee=y?-x[oe]/2:0,Y=S===kr?J[oe]:x[oe],$=S===kr?-x[oe]:-J[oe],_=t.elements.arrow,W=y&&_?gf(_):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rg(),ie=H[B],he=H[K],re=ks(0,J[oe],W[oe]),X=C?J[oe]/2-ee-re-ie-R.mainAxis:Y-re-ie-R.mainAxis,P=C?-J[oe]/2+ee+re+he+R.mainAxis:$+re+he+R.mainAxis,Q=t.elements.arrow&&Gs(t.elements.arrow),te=Q?I==="y"?Q.clientTop||0:Q.clientLeft||0:0,ue=(V=O==null?void 0:O[I])!=null?V:0,G=ve+X-ue-te,se=ve+P-ue,Ce=ks(y?Nl(fe,G):fe,ve,y?Va(ae,se):ae);T[I]=Ce,E[I]=Ce-ve}if(u){var we,xe=I==="x"?un:dn,He=I==="x"?Jn:Qn,Be=T[L],Ze=L==="y"?"height":"width",de=Be+k[xe],ye=Be-k[He],Le=[un,dn].indexOf(N)!==-1,ze=(we=O==null?void 0:O[L])!=null?we:0,rt=Le?de:Be-J[Ze]-x[Ze]-ze+R.altAxis,tt=Le?Be+J[Ze]+x[Ze]-ze-R.altAxis:ye,Ee=y&&Le?k8(rt,Be,tt):ks(y?rt:de,Be,y?tt:ye);T[L]=Ee,E[L]=Ee-Be}t.modifiersData[i]=E}}const iw={name:"preventOverflow",enabled:!0,phase:"main",fn:nw,requiresIfExists:["offset"]};function aw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rw(e){return e===kn(e)||!Rn(e)?pf(e):aw(e)}function sw(e){var t=e.getBoundingClientRect(),n=Tr(t.width)/e.offsetWidth||1,i=Tr(t.height)/e.offsetHeight||1;return n!==1||i!==1}function ow(e,t,n){n===void 0&&(n=!1);var i=Rn(t),s=Rn(t)&&sw(t),o=ha(t),c=xr(e,s,n),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!n)&&((vi(t)!=="body"||yf(o))&&(u=rw(t)),Rn(t)?(d=xr(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=vf(o))),{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function lw(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(u){if(!n.has(u)){var d=t.get(u);d&&s(d)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function cw(e){var t=lw(e);return C8.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function uw(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dw(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var f3={placement:"bottom",modifiers:[],strategy:"absolute"};function h3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function fw(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?f3:s;return function(u,d,f){f===void 0&&(f=o);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},f3,o),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},p=[],v=!1,y={state:m,setOptions:function(N){var S=typeof N=="function"?N(m.options):N;w(),m.options=Object.assign({},o,m.options,S),m.scrollParents={reference:Qa(u)?Ts(u):u.contextElement?Ts(u.contextElement):[],popper:Ts(d)};var C=cw(dw([].concat(i,m.options.modifiers)));return m.orderedModifiers=C.filter(function(I){return I.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var N=m.elements,S=N.reference,C=N.popper;if(h3(S,C)){m.rects={reference:ow(S,Gs(C),m.options.strategy==="fixed"),popper:gf(C)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(R){return m.modifiersData[R.name]=Object.assign({},R.data)});for(var I=0;I<m.orderedModifiers.length;I++){if(m.reset===!0){m.reset=!1,I=-1;continue}var L=m.orderedModifiers[I],T=L.fn,J=L.options,x=J===void 0?{}:J,j=L.name;typeof T=="function"&&(m=T({state:m,options:x,name:j,instance:y})||m)}}}},update:uw(function(){return new Promise(function(k){y.forceUpdate(),k(m)})}),destroy:function(){w(),v=!0}};if(!h3(u,d))return y;y.setOptions(f).then(function(k){!v&&f.onFirstUpdate&&f.onFirstUpdate(k)});function b(){m.orderedModifiers.forEach(function(k){var N=k.name,S=k.options,C=S===void 0?{}:S,I=k.effect;if(typeof I=="function"){var L=I({state:m,name:N,instance:y,options:C}),T=function(){};p.push(L||T)}})}function w(){p.forEach(function(k){return k()}),p=[]}return y}}var hw=[z8,ew,E8,N8,X8,G8,iw,D8,Y8],ug=fw({defaultModifiers:hw});class gw{constructor(t,n,i){Te(this,"isShow",!1);Te(this,"trigger");Te(this,"instance");Te(this,"always",!1);Te(this,"reference");Te(this,"referenceTarget");Te(this,"popperRefer");Te(this,"instanceOptions");Te(this,"delay",50);Te(this,"isInnerPopper",!1);Te(this,"disabled",!1);Te(this,"afterShow",null);Te(this,"afterHidden",null);Te(this,"appendTo","parent");Te(this,"container",null);Te(this,"fixOnBoundary",!1);var s,o;this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=(s=this.popperRefer)==null?void 0:s.parentElement,this.isShow=!!((o=this.instanceOptions)!=null&&o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden=typeof i.afterHidden=="function"?i.afterHidden:()=>{},this.afterShow=typeof i.afterShow=="function"?i.afterShow:()=>{},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}forceUpdate(){var t;(t=this.instance)==null||t.forceUpdate()}update(){var t;(t=this.instance)==null||t.update()}updateOptions(t){var n;this.instanceOptions=this.initDefaultOptions(t),this.isShow=!!((n=this.instanceOptions)!=null&&n.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}setOptions(t){var n;(n=this.instance)==null||n.setOptions(t)}destroy(){var t;(t=this.instance)==null||t.destroy()}updateDisabled(t){this.disabled=t??!this.disabled,this.disabled&&this.hide()}show(t){var n;this.disabled||((n=this.popperRefer)==null||n.setAttribute("data-show",""),this.setOptions({modifiers:[...this.instanceOptions.modifiers||[],{name:"eventListeners",enabled:!0}]}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}hide(){var t;this.always||((t=this.popperRefer)==null||t.removeAttribute("data-show"),this.setOptions({modifiers:[...this.instanceOptions.modifiers||[],{name:"eventListeners",enabled:!1}]}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}restorePopContent(){const t=this.getAppendToTarget();Pa(t)&&t.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}appendToTarget(){const t=this.getAppendToTarget();Pa(t)&&t.contains(this.popperRefer)&&t.append(this.popperRefer)}getAppendToTarget(){const{appendTo:t}=this;let n=t;return t!=="parent"&&typeof t=="string"&&(n=document.querySelector(t)),n}initDefaultOptions(t){const i=$6({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},t||{}),s=i.onFirstUpdate;return i.onFirstUpdate=o=>{typeof s=="function"&&(s.call(this,o),this.handleFirstUpdate())},i}handleFirstUpdate(){this.fixOnBoundary&&this.appendToTarget()}getTargetReferenceElement(){return this.isElement(this.reference)?this.reference.childElementCount===1?this.reference.firstElementChild:this.reference:this.reference}initInstance(){var t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=ug(this.referenceTarget,this.popperRefer,this.instanceOptions),(t=this.popperRefer)==null||t.setAttribute("data-theme",this.instanceOptions.theme??"dark")):console.error("reference or popperRefer is null, please check html element."))}resolveInputSelectorToHtmlElement(t){if(this.isElement(t))return t;if(typeof t=="string")return document.querySelector(t);if(typeof t=="object"){if(Object.prototype.hasOwnProperty.call(t,"getBoundingClientRect"))return t}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}isElement(t){return Pa(t)}registerEvents(){if(this.isElement(this.referenceTarget)&&this.trigger==="hover"){const t=["mouseenter","focus"],n=["mouseleave","blur"],i=["mouseenter","mouseleave"];t.forEach(s=>{this.referenceTarget.addEventListener(s,o=>{s==="mouseenter"&&(this.isInnerPopper=!0),this.show(o)})}),n.forEach(s=>{this.referenceTarget.addEventListener(s,()=>{this.isInnerPopper=!1,setTimeout(()=>{!this.isInnerPopper&&this.hide()},this.delay)})}),this.isElement(this.popperRefer)&&i.forEach(s=>{this.popperRefer.addEventListener(s,()=>{s==="mouseenter"&&(this.isInnerPopper=!0),s==="mouseleave"&&this.hide()})})}this.trigger==="click"&&["click"].forEach(n=>{document.body.addEventListener(n,i=>{this.isSameElement(i.target,this.reference)||this.reference.contains(i.target)?this.show(i):this.isShow&&!this.isSameElement(i.target,this.popperRefer)&&!this.popperRefer.contains(i.target)&&this.hide()})})}isSameElement(t,n){return t&&(t===n||t===n.firstElementChild)}}/*!
33
+ `,o.textContent=i.textContent,o};let n=!1;try{const i=window.getComputedStyle(e,null);if(i.webkitLineClamp!=="none"){const o=parseFloat(i.height),c=t(e,i);document.body.appendChild(c);const u=window.getComputedStyle(c,null).height;document.body.removeChild(c),n=o<parseFloat(u)}else n=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(i){console.warn("There is an error when check element overflow state: ",i)}return n}const qo={bottom:0,content:1,navi:100,fullScreen:1e3,modal:3e3,plugins:8e3,message:1e4,popper:99999};class KC{constructor(){Te(this,"storageLayerIndexValue",{});this.copyDefaultValue()}getNextIndex(t){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,t)?(this.storageLayerIndexValue[t]=this.storageLayerIndexValue[t]+1,this.storageLayerIndexValue[t]):(this.storageLayerIndexValue.modal=this.storageLayerIndexValue.modal+1,this.storageLayerIndexValue.modal)}getModalNextIndex(){return this.getNextIndex("modal")}getMessageNextIndex(){return this.getNextIndex("message")}getFullScreenNextIndex(){return this.getNextIndex("fullScreen")}getNaviNextIndex(){return this.getNextIndex("navi")}getPopperIndex(){return qo.popper}setDefaultZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue.__proto__,n)&&Object.assign(this.storageLayerIndexValue.__proto__,{[n]:t[n]})}),this.copyDefaultValue()}resetZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,n)&&Object.assign(this.storageLayerIndexValue,{[n]:t[n]})})}copyDefaultValue(){const t=Object.keys(qo).reduce((n,i)=>Object.assign(n,{[i]:{value:qo[i],writable:!0,configurable:!0}}),{});this.storageLayerIndexValue=Object.create(qo,t)}}const pi=new KC;`${za(16)}`;class XC{constructor(){Te(this,"timer",null);Te(this,"store",[]);Te(this,"maskMap",new WeakMap)}appendMaker(t){this.store.push(t),this.executeMaker()}pushMaskStyle(t,n){const i=this.getMaskMap(t);i!=null&&i.styles?i.styles.push(n):this.setMaskMap(t,{styles:[n],...i||{}})}getMaskStyles(t){var n;return((n=this.getMaskMap(t))==null?void 0:n.styles)||[]}setMaskId(t,n){const i=this.getMaskMap(t);i?(Object.assign(i,{id:n}),this.setMaskMap(t,i)):this.setMaskMap(t,{id:n,...i||{}})}getMaskId(t){var n;return(n=this.getMaskMap(t))==null?void 0:n.id}setMaskMap(t,n){this.maskMap.set(t,n)}getMaskMap(t){return this.maskMap.get(t)}executeMaker(){this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame(()=>{const t=this.store.pop();typeof t=="function"&&(Reflect.apply(t,this,[]),this.executeMaker())})}}const ur=new XC;class Y6{constructor(t){Te(this,"mask");Te(this,"backupMask");Te(this,"multiInstance",!1);Te(this,"uniqueMaskAttrTag","");Te(this,"parentNode",document.body);Te(this,"activeInstance");Te(this,"zIndexStore",new Map);Te(this,"lastUUID",null);Te(this,"maskStyle",{position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"});Te(this,"onClick");Te(this,"isInit",!1);Te(this,"maskAttrTag","auto");Te(this,"popInstance");const{multiInstance:n=!1,maskAttrTag:i="auto",parentNode:s=document.body,maskStyle:o={},onClick:c=null,popInstance:u=null}=t||{};this.parentNode=s||document,this.maskAttrTag=i,this.onClick=c,this.activeInstance=void 0,this.multiInstance=n,this.popInstance=u,this.uniqueMaskAttrTag=this.getMaskAttrTag(i),ur.appendMaker(()=>{this.initInstance(o)})}setOption(t){const{parentNode:n=document.body,maskStyle:i={},onClick:s=null,maskAttrTag:o=this.maskAttrTag}=t||{};this.onClick=s,this.parentNode=n||document,this.setMaskStyle(Object.assign({},this.maskStyle,i)),this.uniqueMaskAttrTag=this.getMaskAttrTag(o)}show(t,n,i=!0,s={},o=null,c=!1){const u=o??za(16),d=/-?\d+/.test(`${n}`)?n:pi.getModalNextIndex();let f=Object.assign({},this.maskStyle,s||{});if(!i&&this.lastUUID){const m=this.zIndexStore.get(this.lastUUID);m&&(f=m==null?void 0:m.style)}this.storeMaskInsCfg({zIndex:d,style:{...f},uuid:u,preUID:this.lastUUID}),Object.assign(f,{display:"block","z-index":`${d}`,"pointer-events":"all"}),this.initInstance(f),this.catchClickEvent(),this.setMaskStyle(f),ur.pushMaskStyle(this.parentNode,{...f}),this.backupMask.style.setProperty("z-index",`${d-1}`),i||(this.mask.style.setProperty("pointer-events","none"),t==null||t.style.setProperty("pointer-events","all")),t&&(c&&t.style.setProperty("z-index",`${d+1}`),this.activeInstance=t,this.appendContentToMask(t))}hide(t=!1,n,i){var c;const s=i??this.lastUUID;t||(n==null||n.remove(),(c=this.activeInstance)==null||c.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(s);const o=ur.getMaskStyles(this.parentNode);if(o==null||o.pop(),!(o!=null&&o.length))this.mask.style.setProperty("display","none");else{const u=o.slice(-1)[0];this.setMaskStyle(u)}}storeMaskInsCfg(t){return this.zIndexStore.set(t.uuid,t),this.lastUUID=t.uuid,this.zIndexStore.get(t.uuid)}popIndexStore(t){if(this.zIndexStore.has(t)){const n=this.zIndexStore.get(t);return this.lastUUID=n.preUID,this.zIndexStore.delete(t)}return this.lastUUID=null,!1}backupActiveInstance(){this.activeInstance&&this.backupMask.append(this.activeInstance)}backupContentElement(t){t&&this.backupMask.append(t)}getActiveContentInstance(){return this.activeInstance}initInstance(t){if(!this.isInit){this.isInit=!0;const{instance:n,isExist:i}=this.getMask();this.mask=n,this.backupMask=this.getBackupMask(),!i&&this.setMaskStyle(Object.assign({},this.maskStyle,t))}}getMask(){if(this.multiInstance)return{instance:this.createMask(),isExist:!1};let t=!0,n=this.parentNode.querySelector(`[data-bk-mask-uid='${this.uniqueMaskAttrTag}']`);return n||(t=!1,n=this.createMask()),{instance:n,isExist:t}}catchClickEvent(){this.mask&&this.mask.addEventListener("click",t=>this.handleMaskClick(t),!0)}removeClickEvent(){this.mask&&this.mask.removeEventListener("click",this.handleMaskClick)}handleMaskClick(t){t.target===this.mask&&typeof this.onClick=="function"&&Reflect.apply(this.onClick,this.popInstance||this,[t])}getBackupMask(){const t="data-bk-backup-uid";let n=this.parentNode.querySelector(`[${t}]`);return n||(n=this.createMask(t)),n}createMask(t="data-bk-mask-uid"){const n=document.createElement("div");return n.setAttribute(t,this.uniqueMaskAttrTag),this.parentNode.append(n),n}setMaskStyle(t={}){this.mask&&Object.entries(t).forEach(n=>this.mask.style.setProperty(n[0],n[1]))}getMaskAttrTag(t){return/^(auto|\s+)$/i.test(t)||t===null||t===void 0||t===""?(ur.getMaskId(this.parentNode)||ur.setMaskId(this.parentNode,`__bk_mask_${za(16)}`),ur.getMaskId(this.parentNode)):t}appendContentToMask(t){this.mask.append(t)}}new Y6({});class U6{constructor(t){Te(this,"popInstanceList");Te(this,"uuidAttrName");Te(this,"clickFn");Te(this,"bKMaskManagerInstance");this.popInstanceList=[],this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.bKMaskManagerInstance=new Y6({parentNode:this.getParentNode(t==null?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}getParentNode(t){if(typeof t=="string"){const n=document.querySelector(t);if(n)return n}return Pa(t)?t:document.body}onMaskClick(t,n){this.clickFn={fn:t,target:n}}show(t,n=!0,i={},s=!1,o=void 0){if(!t){console.warn("pop show error: content is null or undefined");return}const c=typeof o=="number"?o:pi.getModalNextIndex(),u=za(16);t.setAttribute(this.uuidAttrName,u),this.popInstanceList.push({uuid:u,zIndex:c,content:t,showMask:n,appendStyle:i}),n&&this.bKMaskManagerInstance.backupActiveInstance(),this.bKMaskManagerInstance.show(t,c,n,i,u,s)}destroy(t,n=!1){this.clickFn=void 0,this.hide(t,n)}popHide(t=!0){if(this.popInstanceList.length){if(t){const n=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(n.uuid),n.remove()}if(this.popInstanceList.length){const n=this.popInstanceList.slice(-1)[0],{zIndex:i,content:s,showMask:o,appendStyle:c,uuid:u}=n;this.bKMaskManagerInstance.show(s,i,o,c,u)}else this.bKMaskManagerInstance.hide()}}hide(t,n=!1){const i=t==null?void 0:t.getAttribute(this.uuidAttrName);if(i){const s=this.popInstanceList.findIndex(o=>o.uuid===i);s>=0&&(n||this.popInstanceList[s].content.remove(),this.popInstanceList.splice(s,1),this.bKMaskManagerInstance.popIndexStore(i),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(n))}else t==null||t.remove()}onMaskClickFn(t){if(this.clickFn){const{fn:n}=this.clickFn;n&&Reflect.apply(n,this,[t])}}}new U6;var Ld={exports:{}},t3=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t3){var n3=new Uint8Array(16);Ld.exports=function(){return t3(n3),n3}}else{var i3=new Array(16);Ld.exports=function(){for(var t=0,n;t<16;t++)t&3||(n=Math.random()*4294967296),i3[t]=n>>>((t&3)<<3)&255;return i3}}var K6=Ld.exports,X6=[];for(var el=0;el<256;++el)X6[el]=(el+256).toString(16).substr(1);function qC(e,t){var n=t||0,i=X6;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}var q6=qC,e8=K6,t8=q6,a3,sd,od=0,ld=0;function n8(e,t,n){var i=t&&n||0,s=t||[];e=e||{};var o=e.node||a3,c=e.clockseq!==void 0?e.clockseq:sd;if(o==null||c==null){var u=e8();o==null&&(o=a3=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),c==null&&(c=sd=(u[6]<<8|u[7])&16383)}var d=e.msecs!==void 0?e.msecs:new Date().getTime(),f=e.nsecs!==void 0?e.nsecs:ld+1,m=d-od+(f-ld)/1e4;if(m<0&&e.clockseq===void 0&&(c=c+1&16383),(m<0||d>od)&&e.nsecs===void 0&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");od=d,ld=f,sd=c,d+=122192928e5;var p=((d&268435455)*1e4+f)%4294967296;s[i++]=p>>>24&255,s[i++]=p>>>16&255,s[i++]=p>>>8&255,s[i++]=p&255;var v=d/4294967296*1e4&268435455;s[i++]=v>>>8&255,s[i++]=v&255,s[i++]=v>>>24&15|16,s[i++]=v>>>16&255,s[i++]=c>>>8|128,s[i++]=c&255;for(var y=0;y<6;++y)s[i+y]=o[y];return t||t8(s)}var i8=n8,a8=K6,r8=q6;function s8(e,t,n){var i=t&&n||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||a8)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t)for(var o=0;o<16;++o)t[i+o]=s[o];return t||r8(s)}var o8=s8,l8=i8,eg=o8,df=eg;df.v1=l8;df.v4=eg;var Ri=df,un="top",Jn="bottom",Qn="right",dn="left",ff="auto",$s=[un,Jn,Qn,dn],kr="start",Ps="end",c8="clippingParents",tg="viewport",hs="popper",u8="reference",r3=$s.reduce(function(e,t){return e.concat([t+"-"+kr,t+"-"+Ps])},[]),ng=[].concat($s,[ff]).reduce(function(e,t){return e.concat([t,t+"-"+kr,t+"-"+Ps])},[]),d8="beforeRead",f8="read",h8="afterRead",g8="beforeMain",m8="main",p8="afterMain",v8="beforeWrite",y8="write",b8="afterWrite",C8=[d8,f8,h8,g8,m8,p8,v8,y8,b8];function vi(e){return e?(e.nodeName||"").toLowerCase():null}function kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qa(e){var t=kn(e).Element;return e instanceof t||e instanceof Element}function Rn(e){var t=kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hf(e){if(typeof ShadowRoot>"u")return!1;var t=kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function w8(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!Rn(o)||!vi(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(c){var u=s[c];u===!1?o.removeAttribute(c):o.setAttribute(c,u===!0?"":u)}))})}function M8(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(i){var s=t.elements[i],o=t.attributes[i]||{},c=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),u=c.reduce(function(d,f){return d[f]="",d},{});!Rn(s)||!vi(s)||(Object.assign(s.style,u),Object.keys(o).forEach(function(d){s.removeAttribute(d)}))})}}const N8={name:"applyStyles",enabled:!0,phase:"write",fn:w8,effect:M8,requires:["computeStyles"]};function fi(e){return e.split("-")[0]}var Va=Math.max,Nl=Math.min,Tr=Math.round;function kd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ig(){return!/^((?!chrome|android).)*safari/i.test(kd())}function xr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&Rn(e)&&(s=e.offsetWidth>0&&Tr(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Tr(i.height)/e.offsetHeight||1);var c=Qa(e)?kn(e):window,u=c.visualViewport,d=!ig()&&n,f=(i.left+(d&&u?u.offsetLeft:0))/s,m=(i.top+(d&&u?u.offsetTop:0))/o,p=i.width/s,v=i.height/o;return{width:p,height:v,top:m,right:f+p,bottom:m+v,left:f,x:f,y:m}}function gf(e){var t=xr(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function ag(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hf(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ji(e){return kn(e).getComputedStyle(e)}function I8(e){return["table","td","th"].indexOf(vi(e))>=0}function ha(e){return((Qa(e)?e.ownerDocument:e.document)||window.document).documentElement}function $l(e){return vi(e)==="html"?e:e.assignedSlot||e.parentNode||(hf(e)?e.host:null)||ha(e)}function s3(e){return!Rn(e)||Ji(e).position==="fixed"?null:e.offsetParent}function L8(e){var t=/firefox/i.test(kd()),n=/Trident/i.test(kd());if(n&&Rn(e)){var i=Ji(e);if(i.position==="fixed")return null}var s=$l(e);for(hf(s)&&(s=s.host);Rn(s)&&["html","body"].indexOf(vi(s))<0;){var o=Ji(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function Gs(e){for(var t=kn(e),n=s3(e);n&&I8(n)&&Ji(n).position==="static";)n=s3(n);return n&&(vi(n)==="html"||vi(n)==="body"&&Ji(n).position==="static")?t:n||L8(e)||t}function mf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ks(e,t,n){return Va(e,Nl(t,n))}function k8(e,t,n){var i=ks(e,t,n);return i>n?n:i}function rg(){return{top:0,right:0,bottom:0,left:0}}function sg(e){return Object.assign({},rg(),e)}function og(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var T8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,sg(typeof t!="number"?t:og(t,$s))};function x8(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,c=n.modifiersData.popperOffsets,u=fi(n.placement),d=mf(u),f=[dn,Qn].indexOf(u)>=0,m=f?"height":"width";if(!(!o||!c)){var p=T8(s.padding,n),v=gf(o),y=d==="y"?un:dn,b=d==="y"?Jn:Qn,w=n.rects.reference[m]+n.rects.reference[d]-c[d]-n.rects.popper[m],k=c[d]-n.rects.reference[d],N=Gs(o),S=N?d==="y"?N.clientHeight||0:N.clientWidth||0:0,C=w/2-k/2,I=p[y],L=S-v[m]-p[b],T=S/2-v[m]/2+C,J=ks(I,T,L),x=d;n.modifiersData[i]=(t={},t[x]=J,t.centerOffset=J-T,t)}}function S8(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||ag(t.elements.popper,s)&&(t.elements.arrow=s))}const D8={name:"arrow",enabled:!0,phase:"main",fn:x8,effect:S8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sr(e){return e.split("-")[1]}var j8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function O8(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Tr(n*s)/s||0,y:Tr(i*s)/s||0}}function o3(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,c=e.offsets,u=e.position,d=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,p=e.isFixed,v=c.x,y=v===void 0?0:v,b=c.y,w=b===void 0?0:b,k=typeof m=="function"?m({x:y,y:w}):{x:y,y:w};y=k.x,w=k.y;var N=c.hasOwnProperty("x"),S=c.hasOwnProperty("y"),C=dn,I=un,L=window;if(f){var T=Gs(n),J="clientHeight",x="clientWidth";if(T===kn(n)&&(T=ha(n),Ji(T).position!=="static"&&u==="absolute"&&(J="scrollHeight",x="scrollWidth")),T=T,s===un||(s===dn||s===Qn)&&o===Ps){I=Jn;var j=p&&T===L&&L.visualViewport?L.visualViewport.height:T[J];w-=j-i.height,w*=d?1:-1}if(s===dn||(s===un||s===Jn)&&o===Ps){C=Qn;var R=p&&T===L&&L.visualViewport?L.visualViewport.width:T[x];y-=R-i.width,y*=d?1:-1}}var O=Object.assign({position:u},f&&j8),E=m===!0?O8({x:y,y:w},kn(n)):{x:y,y:w};if(y=E.x,w=E.y,d){var V;return Object.assign({},O,(V={},V[I]=S?"0":"",V[C]=N?"0":"",V.transform=(L.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",V))}return Object.assign({},O,(t={},t[I]=S?w+"px":"",t[C]=N?y+"px":"",t.transform="",t))}function A8(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,c=o===void 0?!0:o,u=n.roundOffsets,d=u===void 0?!0:u,f={placement:fi(t.placement),variation:Sr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,o3(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,o3(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const E8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A8,data:{}};var tl={passive:!0};function P8(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,c=i.resize,u=c===void 0?!0:c,d=kn(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(m){m.addEventListener("scroll",n.update,tl)}),u&&d.addEventListener("resize",n.update,tl),function(){o&&f.forEach(function(m){m.removeEventListener("scroll",n.update,tl)}),u&&d.removeEventListener("resize",n.update,tl)}}const z8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:P8,data:{}};var V8={left:"right",right:"left",bottom:"top",top:"bottom"};function dl(e){return e.replace(/left|right|bottom|top/g,function(t){return V8[t]})}var R8={start:"end",end:"start"};function l3(e){return e.replace(/start|end/g,function(t){return R8[t]})}function pf(e){var t=kn(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function vf(e){return xr(ha(e)).left+pf(e).scrollLeft}function J8(e,t){var n=kn(e),i=ha(e),s=n.visualViewport,o=i.clientWidth,c=i.clientHeight,u=0,d=0;if(s){o=s.width,c=s.height;var f=ig();(f||!f&&t==="fixed")&&(u=s.offsetLeft,d=s.offsetTop)}return{width:o,height:c,x:u+vf(e),y:d}}function Q8(e){var t,n=ha(e),i=pf(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=Va(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Va(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-i.scrollLeft+vf(e),d=-i.scrollTop;return Ji(s||n).direction==="rtl"&&(u+=Va(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:c,x:u,y:d}}function yf(e){var t=Ji(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function lg(e){return["html","body","#document"].indexOf(vi(e))>=0?e.ownerDocument.body:Rn(e)&&yf(e)?e:lg($l(e))}function Ts(e,t){var n;t===void 0&&(t=[]);var i=lg(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=kn(i),c=s?[o].concat(o.visualViewport||[],yf(i)?i:[]):i,u=t.concat(c);return s?u:u.concat(Ts($l(c)))}function Td(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _8(e,t){var n=xr(e,!1,t==="fixed");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}function c3(e,t,n){return t===tg?Td(J8(e,n)):Qa(t)?_8(t,n):Td(Q8(ha(e)))}function W8(e){var t=Ts($l(e)),n=["absolute","fixed"].indexOf(Ji(e).position)>=0,i=n&&Rn(e)?Gs(e):e;return Qa(i)?t.filter(function(s){return Qa(s)&&ag(s,i)&&vi(s)!=="body"}):[]}function H8(e,t,n,i){var s=t==="clippingParents"?W8(e):[].concat(t),o=[].concat(s,[n]),c=o[0],u=o.reduce(function(d,f){var m=c3(e,f,i);return d.top=Va(m.top,d.top),d.right=Nl(m.right,d.right),d.bottom=Nl(m.bottom,d.bottom),d.left=Va(m.left,d.left),d},c3(e,c,i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function cg(e){var t=e.reference,n=e.element,i=e.placement,s=i?fi(i):null,o=i?Sr(i):null,c=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,d;switch(s){case un:d={x:c,y:t.y-n.height};break;case Jn:d={x:c,y:t.y+t.height};break;case Qn:d={x:t.x+t.width,y:u};break;case dn:d={x:t.x-n.width,y:u};break;default:d={x:t.x,y:t.y}}var f=s?mf(s):null;if(f!=null){var m=f==="y"?"height":"width";switch(o){case kr:d[f]=d[f]-(t[m]/2-n[m]/2);break;case Ps:d[f]=d[f]+(t[m]/2-n[m]/2);break}}return d}function zs(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,c=o===void 0?e.strategy:o,u=n.boundary,d=u===void 0?c8:u,f=n.rootBoundary,m=f===void 0?tg:f,p=n.elementContext,v=p===void 0?hs:p,y=n.altBoundary,b=y===void 0?!1:y,w=n.padding,k=w===void 0?0:w,N=sg(typeof k!="number"?k:og(k,$s)),S=v===hs?u8:hs,C=e.rects.popper,I=e.elements[b?S:v],L=H8(Qa(I)?I:I.contextElement||ha(e.elements.popper),d,m,c),T=xr(e.elements.reference),J=cg({reference:T,element:C,strategy:"absolute",placement:s}),x=Td(Object.assign({},C,J)),j=v===hs?x:T,R={top:L.top-j.top+N.top,bottom:j.bottom-L.bottom+N.bottom,left:L.left-j.left+N.left,right:j.right-L.right+N.right},O=e.modifiersData.offset;if(v===hs&&O){var E=O[s];Object.keys(R).forEach(function(V){var B=[Qn,Jn].indexOf(V)>=0?1:-1,K=[un,Jn].indexOf(V)>=0?"y":"x";R[V]+=E[K]*B})}return R}function B8(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,c=n.padding,u=n.flipVariations,d=n.allowedAutoPlacements,f=d===void 0?ng:d,m=Sr(i),p=m?u?r3:r3.filter(function(b){return Sr(b)===m}):$s,v=p.filter(function(b){return f.indexOf(b)>=0});v.length===0&&(v=p);var y=v.reduce(function(b,w){return b[w]=zs(e,{placement:w,boundary:s,rootBoundary:o,padding:c})[fi(w)],b},{});return Object.keys(y).sort(function(b,w){return y[b]-y[w]})}function F8(e){if(fi(e)===ff)return[];var t=dl(e);return[l3(e),t,l3(t)]}function $8(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,u=c===void 0?!0:c,d=n.fallbackPlacements,f=n.padding,m=n.boundary,p=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,w=n.allowedAutoPlacements,k=t.options.placement,N=fi(k),S=N===k,C=d||(S||!b?[dl(k)]:F8(k)),I=[k].concat(C).reduce(function(W,H){return W.concat(fi(H)===ff?B8(t,{placement:H,boundary:m,rootBoundary:p,padding:f,flipVariations:b,allowedAutoPlacements:w}):H)},[]),L=t.rects.reference,T=t.rects.popper,J=new Map,x=!0,j=I[0],R=0;R<I.length;R++){var O=I[R],E=fi(O),V=Sr(O)===kr,B=[un,Jn].indexOf(E)>=0,K=B?"width":"height",oe=zs(t,{placement:O,boundary:m,rootBoundary:p,altBoundary:v,padding:f}),ve=B?V?Qn:dn:V?Jn:un;L[K]>T[K]&&(ve=dl(ve));var fe=dl(ve),ae=[];if(o&&ae.push(oe[E]<=0),u&&ae.push(oe[ve]<=0,oe[fe]<=0),ae.every(function(W){return W})){j=O,x=!1;break}J.set(O,ae)}if(x)for(var ee=b?3:1,Y=function(H){var ie=I.find(function(he){var re=J.get(he);if(re)return re.slice(0,H).every(function(X){return X})});if(ie)return j=ie,"break"},$=ee;$>0;$--){var _=Y($);if(_==="break")break}t.placement!==j&&(t.modifiersData[i]._skip=!0,t.placement=j,t.reset=!0)}}const G8={name:"flip",enabled:!0,phase:"main",fn:$8,requiresIfExists:["offset"],data:{_skip:!1}};function u3(e,t,n){return n===void 0&&(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 d3(e){return[un,Qn,Jn,dn].some(function(t){return e[t]>=0})}function Z8(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,c=zs(t,{elementContext:"reference"}),u=zs(t,{altBoundary:!0}),d=u3(c,i),f=u3(u,s,o),m=d3(d),p=d3(f);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:m,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":p})}const Y8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Z8};function U8(e,t,n){var i=fi(e),s=[dn,un].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=o[0],u=o[1];return c=c||0,u=(u||0)*s,[dn,Qn].indexOf(i)>=0?{x:u,y:c}:{x:c,y:u}}function K8(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,c=ng.reduce(function(m,p){return m[p]=U8(p,t.rects,o),m},{}),u=c[t.placement],d=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=f),t.modifiersData[i]=c}const X8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K8};function q8(e){var t=e.state,n=e.name;t.modifiersData[n]=cg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ew={name:"popperOffsets",enabled:!0,phase:"read",fn:q8,data:{}};function tw(e){return e==="x"?"y":"x"}function nw(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,u=c===void 0?!1:c,d=n.boundary,f=n.rootBoundary,m=n.altBoundary,p=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,w=b===void 0?0:b,k=zs(t,{boundary:d,rootBoundary:f,padding:p,altBoundary:m}),N=fi(t.placement),S=Sr(t.placement),C=!S,I=mf(N),L=tw(I),T=t.modifiersData.popperOffsets,J=t.rects.reference,x=t.rects.popper,j=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,R=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(T){if(o){var V,B=I==="y"?un:dn,K=I==="y"?Jn:Qn,oe=I==="y"?"height":"width",ve=T[I],fe=ve+k[B],ae=ve-k[K],ee=y?-x[oe]/2:0,Y=S===kr?J[oe]:x[oe],$=S===kr?-x[oe]:-J[oe],_=t.elements.arrow,W=y&&_?gf(_):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rg(),ie=H[B],he=H[K],re=ks(0,J[oe],W[oe]),X=C?J[oe]/2-ee-re-ie-R.mainAxis:Y-re-ie-R.mainAxis,P=C?-J[oe]/2+ee+re+he+R.mainAxis:$+re+he+R.mainAxis,Q=t.elements.arrow&&Gs(t.elements.arrow),te=Q?I==="y"?Q.clientTop||0:Q.clientLeft||0:0,ue=(V=O==null?void 0:O[I])!=null?V:0,G=ve+X-ue-te,se=ve+P-ue,Ce=ks(y?Nl(fe,G):fe,ve,y?Va(ae,se):ae);T[I]=Ce,E[I]=Ce-ve}if(u){var we,xe=I==="x"?un:dn,He=I==="x"?Jn:Qn,Be=T[L],Ze=L==="y"?"height":"width",de=Be+k[xe],ye=Be-k[He],Le=[un,dn].indexOf(N)!==-1,ze=(we=O==null?void 0:O[L])!=null?we:0,rt=Le?de:Be-J[Ze]-x[Ze]-ze+R.altAxis,tt=Le?Be+J[Ze]+x[Ze]-ze-R.altAxis:ye,Ee=y&&Le?k8(rt,Be,tt):ks(y?rt:de,Be,y?tt:ye);T[L]=Ee,E[L]=Ee-Be}t.modifiersData[i]=E}}const iw={name:"preventOverflow",enabled:!0,phase:"main",fn:nw,requiresIfExists:["offset"]};function aw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rw(e){return e===kn(e)||!Rn(e)?pf(e):aw(e)}function sw(e){var t=e.getBoundingClientRect(),n=Tr(t.width)/e.offsetWidth||1,i=Tr(t.height)/e.offsetHeight||1;return n!==1||i!==1}function ow(e,t,n){n===void 0&&(n=!1);var i=Rn(t),s=Rn(t)&&sw(t),o=ha(t),c=xr(e,s,n),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!n)&&((vi(t)!=="body"||yf(o))&&(u=rw(t)),Rn(t)?(d=xr(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=vf(o))),{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function lw(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(u){if(!n.has(u)){var d=t.get(u);d&&s(d)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function cw(e){var t=lw(e);return C8.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function uw(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dw(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var f3={placement:"bottom",modifiers:[],strategy:"absolute"};function h3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function fw(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?f3:s;return function(u,d,f){f===void 0&&(f=o);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},f3,o),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},p=[],v=!1,y={state:m,setOptions:function(N){var S=typeof N=="function"?N(m.options):N;w(),m.options=Object.assign({},o,m.options,S),m.scrollParents={reference:Qa(u)?Ts(u):u.contextElement?Ts(u.contextElement):[],popper:Ts(d)};var C=cw(dw([].concat(i,m.options.modifiers)));return m.orderedModifiers=C.filter(function(I){return I.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var N=m.elements,S=N.reference,C=N.popper;if(h3(S,C)){m.rects={reference:ow(S,Gs(C),m.options.strategy==="fixed"),popper:gf(C)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(R){return m.modifiersData[R.name]=Object.assign({},R.data)});for(var I=0;I<m.orderedModifiers.length;I++){if(m.reset===!0){m.reset=!1,I=-1;continue}var L=m.orderedModifiers[I],T=L.fn,J=L.options,x=J===void 0?{}:J,j=L.name;typeof T=="function"&&(m=T({state:m,options:x,name:j,instance:y})||m)}}}},update:uw(function(){return new Promise(function(k){y.forceUpdate(),k(m)})}),destroy:function(){w(),v=!0}};if(!h3(u,d))return y;y.setOptions(f).then(function(k){!v&&f.onFirstUpdate&&f.onFirstUpdate(k)});function b(){m.orderedModifiers.forEach(function(k){var N=k.name,S=k.options,C=S===void 0?{}:S,I=k.effect;if(typeof I=="function"){var L=I({state:m,name:N,instance:y,options:C}),T=function(){};p.push(L||T)}})}function w(){p.forEach(function(k){return k()}),p=[]}return y}}var hw=[z8,ew,E8,N8,X8,G8,iw,D8,Y8],ug=fw({defaultModifiers:hw});class gw{constructor(t,n,i){Te(this,"isShow",!1);Te(this,"trigger");Te(this,"instance");Te(this,"always",!1);Te(this,"reference");Te(this,"referenceTarget");Te(this,"popperRefer");Te(this,"instanceOptions");Te(this,"delay",50);Te(this,"isInnerPopper",!1);Te(this,"disabled",!1);Te(this,"afterShow",null);Te(this,"afterHidden",null);Te(this,"appendTo","parent");Te(this,"container",null);Te(this,"fixOnBoundary",!1);var s,o;this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=(s=this.popperRefer)==null?void 0:s.parentElement,this.isShow=!!((o=this.instanceOptions)!=null&&o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden=typeof i.afterHidden=="function"?i.afterHidden:()=>{},this.afterShow=typeof i.afterShow=="function"?i.afterShow:()=>{},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}forceUpdate(){var t;(t=this.instance)==null||t.forceUpdate()}update(){var t;(t=this.instance)==null||t.update()}updateOptions(t){var n;this.instanceOptions=this.initDefaultOptions(t),this.isShow=!!((n=this.instanceOptions)!=null&&n.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}setOptions(t){var n;(n=this.instance)==null||n.setOptions(t)}destroy(){var t;(t=this.instance)==null||t.destroy()}updateDisabled(t){this.disabled=t??!this.disabled,this.disabled&&this.hide()}show(t){var n;this.disabled||((n=this.popperRefer)==null||n.setAttribute("data-show",""),this.setOptions({modifiers:[...this.instanceOptions.modifiers||[],{name:"eventListeners",enabled:!0}]}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}hide(){var t;this.always||((t=this.popperRefer)==null||t.removeAttribute("data-show"),this.setOptions({modifiers:[...this.instanceOptions.modifiers||[],{name:"eventListeners",enabled:!1}]}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}restorePopContent(){const t=this.getAppendToTarget();Pa(t)&&t.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}appendToTarget(){const t=this.getAppendToTarget();Pa(t)&&t.contains(this.popperRefer)&&t.append(this.popperRefer)}getAppendToTarget(){const{appendTo:t}=this;let n=t;return t!=="parent"&&typeof t=="string"&&(n=document.querySelector(t)),n}initDefaultOptions(t){const i=$6({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},t||{}),s=i.onFirstUpdate;return i.onFirstUpdate=o=>{typeof s=="function"&&(s.call(this,o),this.handleFirstUpdate())},i}handleFirstUpdate(){this.fixOnBoundary&&this.appendToTarget()}getTargetReferenceElement(){return this.isElement(this.reference)?this.reference.childElementCount===1?this.reference.firstElementChild:this.reference:this.reference}initInstance(){var t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=ug(this.referenceTarget,this.popperRefer,this.instanceOptions),(t=this.popperRefer)==null||t.setAttribute("data-theme",this.instanceOptions.theme??"dark")):console.error("reference or popperRefer is null, please check html element."))}resolveInputSelectorToHtmlElement(t){if(this.isElement(t))return t;if(typeof t=="string")return document.querySelector(t);if(typeof t=="object"){if(Object.prototype.hasOwnProperty.call(t,"getBoundingClientRect"))return t}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}isElement(t){return Pa(t)}registerEvents(){if(this.isElement(this.referenceTarget)&&this.trigger==="hover"){const t=["mouseenter","focus"],n=["mouseleave","blur"],i=["mouseenter","mouseleave"];t.forEach(s=>{this.referenceTarget.addEventListener(s,o=>{s==="mouseenter"&&(this.isInnerPopper=!0),this.show(o)})}),n.forEach(s=>{this.referenceTarget.addEventListener(s,()=>{this.isInnerPopper=!1,setTimeout(()=>{!this.isInnerPopper&&this.hide()},this.delay)})}),this.isElement(this.popperRefer)&&i.forEach(s=>{this.popperRefer.addEventListener(s,()=>{s==="mouseenter"&&(this.isInnerPopper=!0),s==="mouseleave"&&this.hide()})})}this.trigger==="click"&&["click"].forEach(n=>{document.body.addEventListener(n,i=>{this.isSameElement(i.target,this.reference)||this.reference.contains(i.target)?this.show(i):this.isShow&&!this.isSameElement(i.target,this.popperRefer)&&!this.popperRefer.contains(i.target)&&this.hide()})})}isSameElement(t,n){return t&&(t===n||t===n.firstElementChild)}}/*!
34
34
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
35
35
  *
36
36
  * Copyright (c) 2014-2017, Jon Schlinkert.
package/dist/index.esm.js CHANGED
@@ -4177,8 +4177,10 @@ class Lg {
4177
4177
  t == null || t.remove();
4178
4178
  }
4179
4179
  onMaskClickFn(t) {
4180
- const { fn: n } = this.clickFn;
4181
- n && Reflect.apply(n, this, [t]);
4180
+ if (this.clickFn) {
4181
+ const { fn: n } = this.clickFn;
4182
+ n && Reflect.apply(n, this, [t]);
4183
+ }
4182
4184
  }
4183
4185
  }
4184
4186
  new Lg();
package/dist/index.umd.js CHANGED
@@ -30,7 +30,7 @@ function print() { __p += __j.call(arguments, '') }
30
30
  font-size: ${s["font-size"]};
31
31
  word-break: ${s["word-break"]};
32
32
  padding: ${s.padding};
33
- `,o.textContent=i.textContent,o};let n=!1;try{const i=window.getComputedStyle(e,null);if(i.webkitLineClamp!=="none"){const o=parseFloat(i.height),c=t(e,i);document.body.appendChild(c);const u=window.getComputedStyle(c,null).height;document.body.removeChild(c),n=o<parseFloat(u)}else n=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(i){console.warn("There is an error when check element overflow state: ",i)}return n}const co={bottom:0,content:1,navi:100,fullScreen:1e3,modal:3e3,plugins:8e3,message:1e4,popper:99999};class H4{constructor(){Se(this,"storageLayerIndexValue",{});this.copyDefaultValue()}getNextIndex(t){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,t)?(this.storageLayerIndexValue[t]=this.storageLayerIndexValue[t]+1,this.storageLayerIndexValue[t]):(this.storageLayerIndexValue.modal=this.storageLayerIndexValue.modal+1,this.storageLayerIndexValue.modal)}getModalNextIndex(){return this.getNextIndex("modal")}getMessageNextIndex(){return this.getNextIndex("message")}getFullScreenNextIndex(){return this.getNextIndex("fullScreen")}getNaviNextIndex(){return this.getNextIndex("navi")}getPopperIndex(){return co.popper}setDefaultZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue.__proto__,n)&&Object.assign(this.storageLayerIndexValue.__proto__,{[n]:t[n]})}),this.copyDefaultValue()}resetZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,n)&&Object.assign(this.storageLayerIndexValue,{[n]:t[n]})})}copyDefaultValue(){const t=Object.keys(co).reduce((n,i)=>Object.assign(n,{[i]:{value:co[i],writable:!0,configurable:!0}}),{});this.storageLayerIndexValue=Object.create(co,t)}}const ni=new H4;`${Ca(16)}`;class B4{constructor(){Se(this,"timer",null);Se(this,"store",[]);Se(this,"maskMap",new WeakMap)}appendMaker(t){this.store.push(t),this.executeMaker()}pushMaskStyle(t,n){const i=this.getMaskMap(t);i!=null&&i.styles?i.styles.push(n):this.setMaskMap(t,{styles:[n],...i||{}})}getMaskStyles(t){var n;return((n=this.getMaskMap(t))==null?void 0:n.styles)||[]}setMaskId(t,n){const i=this.getMaskMap(t);i?(Object.assign(i,{id:n}),this.setMaskMap(t,i)):this.setMaskMap(t,{id:n,...i||{}})}getMaskId(t){var n;return(n=this.getMaskMap(t))==null?void 0:n.id}setMaskMap(t,n){this.maskMap.set(t,n)}getMaskMap(t){return this.maskMap.get(t)}executeMaker(){this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame(()=>{const t=this.store.pop();typeof t=="function"&&(Reflect.apply(t,this,[]),this.executeMaker())})}}const qa=new B4;class V0{constructor(t){Se(this,"mask");Se(this,"backupMask");Se(this,"multiInstance",!1);Se(this,"uniqueMaskAttrTag","");Se(this,"parentNode",document.body);Se(this,"activeInstance");Se(this,"zIndexStore",new Map);Se(this,"lastUUID",null);Se(this,"maskStyle",{position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"});Se(this,"onClick");Se(this,"isInit",!1);Se(this,"maskAttrTag","auto");Se(this,"popInstance");const{multiInstance:n=!1,maskAttrTag:i="auto",parentNode:s=document.body,maskStyle:o={},onClick:c=null,popInstance:u=null}=t||{};this.parentNode=s||document,this.maskAttrTag=i,this.onClick=c,this.activeInstance=void 0,this.multiInstance=n,this.popInstance=u,this.uniqueMaskAttrTag=this.getMaskAttrTag(i),qa.appendMaker(()=>{this.initInstance(o)})}setOption(t){const{parentNode:n=document.body,maskStyle:i={},onClick:s=null,maskAttrTag:o=this.maskAttrTag}=t||{};this.onClick=s,this.parentNode=n||document,this.setMaskStyle(Object.assign({},this.maskStyle,i)),this.uniqueMaskAttrTag=this.getMaskAttrTag(o)}show(t,n,i=!0,s={},o=null,c=!1){const u=o??Ca(16),d=/-?\d+/.test(`${n}`)?n:ni.getModalNextIndex();let f=Object.assign({},this.maskStyle,s||{});if(!i&&this.lastUUID){const m=this.zIndexStore.get(this.lastUUID);m&&(f=m==null?void 0:m.style)}this.storeMaskInsCfg({zIndex:d,style:{...f},uuid:u,preUID:this.lastUUID}),Object.assign(f,{display:"block","z-index":`${d}`,"pointer-events":"all"}),this.initInstance(f),this.catchClickEvent(),this.setMaskStyle(f),qa.pushMaskStyle(this.parentNode,{...f}),this.backupMask.style.setProperty("z-index",`${d-1}`),i||(this.mask.style.setProperty("pointer-events","none"),t==null||t.style.setProperty("pointer-events","all")),t&&(c&&t.style.setProperty("z-index",`${d+1}`),this.activeInstance=t,this.appendContentToMask(t))}hide(t=!1,n,i){var c;const s=i??this.lastUUID;t||(n==null||n.remove(),(c=this.activeInstance)==null||c.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(s);const o=qa.getMaskStyles(this.parentNode);if(o==null||o.pop(),!(o!=null&&o.length))this.mask.style.setProperty("display","none");else{const u=o.slice(-1)[0];this.setMaskStyle(u)}}storeMaskInsCfg(t){return this.zIndexStore.set(t.uuid,t),this.lastUUID=t.uuid,this.zIndexStore.get(t.uuid)}popIndexStore(t){if(this.zIndexStore.has(t)){const n=this.zIndexStore.get(t);return this.lastUUID=n.preUID,this.zIndexStore.delete(t)}return this.lastUUID=null,!1}backupActiveInstance(){this.activeInstance&&this.backupMask.append(this.activeInstance)}backupContentElement(t){t&&this.backupMask.append(t)}getActiveContentInstance(){return this.activeInstance}initInstance(t){if(!this.isInit){this.isInit=!0;const{instance:n,isExist:i}=this.getMask();this.mask=n,this.backupMask=this.getBackupMask(),!i&&this.setMaskStyle(Object.assign({},this.maskStyle,t))}}getMask(){if(this.multiInstance)return{instance:this.createMask(),isExist:!1};let t=!0,n=this.parentNode.querySelector(`[data-bk-mask-uid='${this.uniqueMaskAttrTag}']`);return n||(t=!1,n=this.createMask()),{instance:n,isExist:t}}catchClickEvent(){this.mask&&this.mask.addEventListener("click",t=>this.handleMaskClick(t),!0)}removeClickEvent(){this.mask&&this.mask.removeEventListener("click",this.handleMaskClick)}handleMaskClick(t){t.target===this.mask&&typeof this.onClick=="function"&&Reflect.apply(this.onClick,this.popInstance||this,[t])}getBackupMask(){const t="data-bk-backup-uid";let n=this.parentNode.querySelector(`[${t}]`);return n||(n=this.createMask(t)),n}createMask(t="data-bk-mask-uid"){const n=document.createElement("div");return n.setAttribute(t,this.uniqueMaskAttrTag),this.parentNode.append(n),n}setMaskStyle(t={}){this.mask&&Object.entries(t).forEach(n=>this.mask.style.setProperty(n[0],n[1]))}getMaskAttrTag(t){return/^(auto|\s+)$/i.test(t)||t===null||t===void 0||t===""?(qa.getMaskId(this.parentNode)||qa.setMaskId(this.parentNode,`__bk_mask_${Ca(16)}`),qa.getMaskId(this.parentNode)):t}appendContentToMask(t){this.mask.append(t)}}new V0({});class R0{constructor(t){Se(this,"popInstanceList");Se(this,"uuidAttrName");Se(this,"clickFn");Se(this,"bKMaskManagerInstance");this.popInstanceList=[],this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.bKMaskManagerInstance=new V0({parentNode:this.getParentNode(t==null?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}getParentNode(t){if(typeof t=="string"){const n=document.querySelector(t);if(n)return n}return ba(t)?t:document.body}onMaskClick(t,n){this.clickFn={fn:t,target:n}}show(t,n=!0,i={},s=!1,o=void 0){if(!t){console.warn("pop show error: content is null or undefined");return}const c=typeof o=="number"?o:ni.getModalNextIndex(),u=Ca(16);t.setAttribute(this.uuidAttrName,u),this.popInstanceList.push({uuid:u,zIndex:c,content:t,showMask:n,appendStyle:i}),n&&this.bKMaskManagerInstance.backupActiveInstance(),this.bKMaskManagerInstance.show(t,c,n,i,u,s)}destroy(t,n=!1){this.clickFn=void 0,this.hide(t,n)}popHide(t=!0){if(this.popInstanceList.length){if(t){const n=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(n.uuid),n.remove()}if(this.popInstanceList.length){const n=this.popInstanceList.slice(-1)[0],{zIndex:i,content:s,showMask:o,appendStyle:c,uuid:u}=n;this.bKMaskManagerInstance.show(s,i,o,c,u)}else this.bKMaskManagerInstance.hide()}}hide(t,n=!1){const i=t==null?void 0:t.getAttribute(this.uuidAttrName);if(i){const s=this.popInstanceList.findIndex(o=>o.uuid===i);s>=0&&(n||this.popInstanceList[s].content.remove(),this.popInstanceList.splice(s,1),this.bKMaskManagerInstance.popIndexStore(i),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(n))}else t==null||t.remove()}onMaskClickFn(t){const{fn:n}=this.clickFn;n&&Reflect.apply(n,this,[t])}}new R0;var Wc={exports:{}},J0=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(J0){var Q0=new Uint8Array(16);Wc.exports=function(){return J0(Q0),Q0}}else{var _0=new Array(16);Wc.exports=function(){for(var t=0,n;t<16;t++)t&3||(n=Math.random()*4294967296),_0[t]=n>>>((t&3)<<3)&255;return _0}}for(var W0=Wc.exports,H0=[],uo=0;uo<256;++uo)H0[uo]=(uo+256).toString(16).substr(1);function F4(e,t){var n=t||0,i=H0;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}var B0=F4,$4=W0,G4=B0,F0,Hc,Bc=0,Fc=0;function Z4(e,t,n){var i=t&&n||0,s=t||[];e=e||{};var o=e.node||F0,c=e.clockseq!==void 0?e.clockseq:Hc;if(o==null||c==null){var u=$4();o==null&&(o=F0=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),c==null&&(c=Hc=(u[6]<<8|u[7])&16383)}var d=e.msecs!==void 0?e.msecs:new Date().getTime(),f=e.nsecs!==void 0?e.nsecs:Fc+1,m=d-Bc+(f-Fc)/1e4;if(m<0&&e.clockseq===void 0&&(c=c+1&16383),(m<0||d>Bc)&&e.nsecs===void 0&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Bc=d,Fc=f,Hc=c,d+=122192928e5;var p=((d&268435455)*1e4+f)%4294967296;s[i++]=p>>>24&255,s[i++]=p>>>16&255,s[i++]=p>>>8&255,s[i++]=p&255;var y=d/4294967296*1e4&268435455;s[i++]=y>>>8&255,s[i++]=y&255,s[i++]=y>>>24&15|16,s[i++]=y>>>16&255,s[i++]=c>>>8|128,s[i++]=c&255;for(var b=0;b<6;++b)s[i+b]=o[b];return t||G4(s)}var Y4=Z4,U4=W0,K4=B0;function X4(e,t,n){var i=t&&n||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||U4)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t)for(var o=0;o<16;++o)t[i+o]=s[o];return t||K4(s)}var q4=X4,ep=Y4,$0=q4,$c=$0;$c.v1=ep,$c.v4=$0;var Mi=$c,en="top",xn="bottom",Dn="right",tn="left",Gc="auto",qr=[en,xn,Dn,tn],er="start",es="end",tp="clippingParents",G0="viewport",ts="popper",np="reference",Z0=qr.reduce(function(e,t){return e.concat([t+"-"+er,t+"-"+es])},[]),Y0=[].concat(qr,[Gc]).reduce(function(e,t){return e.concat([t,t+"-"+er,t+"-"+es])},[]),ip="beforeRead",ap="read",rp="afterRead",sp="beforeMain",op="main",lp="afterMain",cp="beforeWrite",up="write",dp="afterWrite",fp=[ip,ap,rp,sp,op,lp,cp,up,dp];function ii(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function va(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function jn(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zc(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hp(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!jn(o)||!ii(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(c){var u=s[c];u===!1?o.removeAttribute(c):o.setAttribute(c,u===!0?"":u)}))})}function gp(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(i){var s=t.elements[i],o=t.attributes[i]||{},c=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),u=c.reduce(function(d,f){return d[f]="",d},{});!jn(s)||!ii(s)||(Object.assign(s.style,u),Object.keys(o).forEach(function(d){s.removeAttribute(d)}))})}}const mp={name:"applyStyles",enabled:!0,phase:"write",fn:hp,effect:gp,requires:["computeStyles"]};function ai(e){return e.split("-")[0]}var wa=Math.max,fo=Math.min,tr=Math.round;function Yc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function U0(){return!/^((?!chrome|android).)*safari/i.test(Yc())}function nr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&jn(e)&&(s=e.offsetWidth>0&&tr(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&tr(i.height)/e.offsetHeight||1);var c=va(e)?pn(e):window,u=c.visualViewport,d=!U0()&&n,f=(i.left+(d&&u?u.offsetLeft:0))/s,m=(i.top+(d&&u?u.offsetTop:0))/o,p=i.width/s,y=i.height/o;return{width:p,height:y,top:m,right:f+p,bottom:m+y,left:f,x:f,y:m}}function Uc(e){var t=nr(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function K0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zc(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ni(e){return pn(e).getComputedStyle(e)}function pp(e){return["table","td","th"].indexOf(ii(e))>=0}function Fi(e){return((va(e)?e.ownerDocument:e.document)||window.document).documentElement}function ho(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(Zc(e)?e.host:null)||Fi(e)}function X0(e){return!jn(e)||Ni(e).position==="fixed"?null:e.offsetParent}function yp(e){var t=/firefox/i.test(Yc()),n=/Trident/i.test(Yc());if(n&&jn(e)){var i=Ni(e);if(i.position==="fixed")return null}var s=ho(e);for(Zc(s)&&(s=s.host);jn(s)&&["html","body"].indexOf(ii(s))<0;){var o=Ni(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function ns(e){for(var t=pn(e),n=X0(e);n&&pp(n)&&Ni(n).position==="static";)n=X0(n);return n&&(ii(n)==="html"||ii(n)==="body"&&Ni(n).position==="static")?t:n||yp(e)||t}function Kc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function is(e,t,n){return wa(e,fo(t,n))}function bp(e,t,n){var i=is(e,t,n);return i>n?n:i}function q0(){return{top:0,right:0,bottom:0,left:0}}function eh(e){return Object.assign({},q0(),e)}function th(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Cp=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,eh(typeof t!="number"?t:th(t,qr))};function vp(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,c=n.modifiersData.popperOffsets,u=ai(n.placement),d=Kc(u),f=[tn,Dn].indexOf(u)>=0,m=f?"height":"width";if(!(!o||!c)){var p=Cp(s.padding,n),y=Uc(o),b=d==="y"?en:tn,C=d==="y"?xn:Dn,w=n.rects.reference[m]+n.rects.reference[d]-c[d]-n.rects.popper[m],k=c[d]-n.rects.reference[d],N=ns(o),x=N?d==="y"?N.clientHeight||0:N.clientWidth||0:0,v=w/2-k/2,I=p[b],L=x-y[m]-p[C],T=x/2-y[m]/2+v,J=is(I,T,L),S=d;n.modifiersData[i]=(t={},t[S]=J,t.centerOffset=J-T,t)}}function wp(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||K0(t.elements.popper,s)&&(t.elements.arrow=s))}const Mp={name:"arrow",enabled:!0,phase:"main",fn:vp,effect:wp,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ir(e){return e.split("-")[1]}var Np={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ip(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:tr(n*s)/s||0,y:tr(i*s)/s||0}}function nh(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,c=e.offsets,u=e.position,d=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,p=e.isFixed,y=c.x,b=y===void 0?0:y,C=c.y,w=C===void 0?0:C,k=typeof m=="function"?m({x:b,y:w}):{x:b,y:w};b=k.x,w=k.y;var N=c.hasOwnProperty("x"),x=c.hasOwnProperty("y"),v=tn,I=en,L=window;if(f){var T=ns(n),J="clientHeight",S="clientWidth";if(T===pn(n)&&(T=Fi(n),Ni(T).position!=="static"&&u==="absolute"&&(J="scrollHeight",S="scrollWidth")),T=T,s===en||(s===tn||s===Dn)&&o===es){I=xn;var j=p&&T===L&&L.visualViewport?L.visualViewport.height:T[J];w-=j-i.height,w*=d?1:-1}if(s===tn||(s===en||s===xn)&&o===es){v=Dn;var R=p&&T===L&&L.visualViewport?L.visualViewport.width:T[S];b-=R-i.width,b*=d?1:-1}}var O=Object.assign({position:u},f&&Np),E=m===!0?Ip({x:b,y:w},pn(n)):{x:b,y:w};if(b=E.x,w=E.y,d){var V;return Object.assign({},O,(V={},V[I]=x?"0":"",V[v]=N?"0":"",V.transform=(L.devicePixelRatio||1)<=1?"translate("+b+"px, "+w+"px)":"translate3d("+b+"px, "+w+"px, 0)",V))}return Object.assign({},O,(t={},t[I]=x?w+"px":"",t[v]=N?b+"px":"",t.transform="",t))}function Lp(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,c=o===void 0?!0:o,u=n.roundOffsets,d=u===void 0?!0:u,f={placement:ai(t.placement),variation:ir(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nh(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nh(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const kp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lp,data:{}};var go={passive:!0};function Tp(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,c=i.resize,u=c===void 0?!0:c,d=pn(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(m){m.addEventListener("scroll",n.update,go)}),u&&d.addEventListener("resize",n.update,go),function(){o&&f.forEach(function(m){m.removeEventListener("scroll",n.update,go)}),u&&d.removeEventListener("resize",n.update,go)}}const Sp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Tp,data:{}};var xp={left:"right",right:"left",bottom:"top",top:"bottom"};function mo(e){return e.replace(/left|right|bottom|top/g,function(t){return xp[t]})}var Dp={start:"end",end:"start"};function ih(e){return e.replace(/start|end/g,function(t){return Dp[t]})}function Xc(e){var t=pn(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function qc(e){return nr(Fi(e)).left+Xc(e).scrollLeft}function jp(e,t){var n=pn(e),i=Fi(e),s=n.visualViewport,o=i.clientWidth,c=i.clientHeight,u=0,d=0;if(s){o=s.width,c=s.height;var f=U0();(f||!f&&t==="fixed")&&(u=s.offsetLeft,d=s.offsetTop)}return{width:o,height:c,x:u+qc(e),y:d}}function Op(e){var t,n=Fi(e),i=Xc(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=wa(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=wa(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-i.scrollLeft+qc(e),d=-i.scrollTop;return Ni(s||n).direction==="rtl"&&(u+=wa(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:c,x:u,y:d}}function eu(e){var t=Ni(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function ah(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:jn(e)&&eu(e)?e:ah(ho(e))}function as(e,t){var n;t===void 0&&(t=[]);var i=ah(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=pn(i),c=s?[o].concat(o.visualViewport||[],eu(i)?i:[]):i,u=t.concat(c);return s?u:u.concat(as(ho(c)))}function tu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ap(e,t){var n=nr(e,!1,t==="fixed");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}function rh(e,t,n){return t===G0?tu(jp(e,n)):va(t)?Ap(t,n):tu(Op(Fi(e)))}function Ep(e){var t=as(ho(e)),n=["absolute","fixed"].indexOf(Ni(e).position)>=0,i=n&&jn(e)?ns(e):e;return va(i)?t.filter(function(s){return va(s)&&K0(s,i)&&ii(s)!=="body"}):[]}function Pp(e,t,n,i){var s=t==="clippingParents"?Ep(e):[].concat(t),o=[].concat(s,[n]),c=o[0],u=o.reduce(function(d,f){var m=rh(e,f,i);return d.top=wa(m.top,d.top),d.right=fo(m.right,d.right),d.bottom=fo(m.bottom,d.bottom),d.left=wa(m.left,d.left),d},rh(e,c,i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function sh(e){var t=e.reference,n=e.element,i=e.placement,s=i?ai(i):null,o=i?ir(i):null,c=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,d;switch(s){case en:d={x:c,y:t.y-n.height};break;case xn:d={x:c,y:t.y+t.height};break;case Dn:d={x:t.x+t.width,y:u};break;case tn:d={x:t.x-n.width,y:u};break;default:d={x:t.x,y:t.y}}var f=s?Kc(s):null;if(f!=null){var m=f==="y"?"height":"width";switch(o){case er:d[f]=d[f]-(t[m]/2-n[m]/2);break;case es:d[f]=d[f]+(t[m]/2-n[m]/2);break}}return d}function rs(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,c=o===void 0?e.strategy:o,u=n.boundary,d=u===void 0?tp:u,f=n.rootBoundary,m=f===void 0?G0:f,p=n.elementContext,y=p===void 0?ts:p,b=n.altBoundary,C=b===void 0?!1:b,w=n.padding,k=w===void 0?0:w,N=eh(typeof k!="number"?k:th(k,qr)),x=y===ts?np:ts,v=e.rects.popper,I=e.elements[C?x:y],L=Pp(va(I)?I:I.contextElement||Fi(e.elements.popper),d,m,c),T=nr(e.elements.reference),J=sh({reference:T,element:v,strategy:"absolute",placement:s}),S=tu(Object.assign({},v,J)),j=y===ts?S:T,R={top:L.top-j.top+N.top,bottom:j.bottom-L.bottom+N.bottom,left:L.left-j.left+N.left,right:j.right-L.right+N.right},O=e.modifiersData.offset;if(y===ts&&O){var E=O[s];Object.keys(R).forEach(function(V){var B=[Dn,xn].indexOf(V)>=0?1:-1,K=[en,xn].indexOf(V)>=0?"y":"x";R[V]+=E[K]*B})}return R}function zp(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,c=n.padding,u=n.flipVariations,d=n.allowedAutoPlacements,f=d===void 0?Y0:d,m=ir(i),p=m?u?Z0:Z0.filter(function(C){return ir(C)===m}):qr,y=p.filter(function(C){return f.indexOf(C)>=0});y.length===0&&(y=p);var b=y.reduce(function(C,w){return C[w]=rs(e,{placement:w,boundary:s,rootBoundary:o,padding:c})[ai(w)],C},{});return Object.keys(b).sort(function(C,w){return b[C]-b[w]})}function Vp(e){if(ai(e)===Gc)return[];var t=mo(e);return[ih(e),t,ih(t)]}function Rp(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,u=c===void 0?!0:c,d=n.fallbackPlacements,f=n.padding,m=n.boundary,p=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,C=b===void 0?!0:b,w=n.allowedAutoPlacements,k=t.options.placement,N=ai(k),x=N===k,v=d||(x||!C?[mo(k)]:Vp(k)),I=[k].concat(v).reduce(function(W,H){return W.concat(ai(H)===Gc?zp(t,{placement:H,boundary:m,rootBoundary:p,padding:f,flipVariations:C,allowedAutoPlacements:w}):H)},[]),L=t.rects.reference,T=t.rects.popper,J=new Map,S=!0,j=I[0],R=0;R<I.length;R++){var O=I[R],E=ai(O),V=ir(O)===er,B=[en,xn].indexOf(E)>=0,K=B?"width":"height",oe=rs(t,{placement:O,boundary:m,rootBoundary:p,altBoundary:y,padding:f}),ye=B?V?Dn:tn:V?xn:en;L[K]>T[K]&&(ye=mo(ye));var fe=mo(ye),ae=[];if(o&&ae.push(oe[E]<=0),u&&ae.push(oe[ye]<=0,oe[fe]<=0),ae.every(function(W){return W})){j=O,S=!1;break}J.set(O,ae)}if(S)for(var ee=C?3:1,Y=function(H){var ie=I.find(function(he){var re=J.get(he);if(re)return re.slice(0,H).every(function(X){return X})});if(ie)return j=ie,"break"},$=ee;$>0;$--){var _=Y($);if(_==="break")break}t.placement!==j&&(t.modifiersData[i]._skip=!0,t.placement=j,t.reset=!0)}}const Jp={name:"flip",enabled:!0,phase:"main",fn:Rp,requiresIfExists:["offset"],data:{_skip:!1}};function oh(e,t,n){return n===void 0&&(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 lh(e){return[en,Dn,xn,tn].some(function(t){return e[t]>=0})}function Qp(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,c=rs(t,{elementContext:"reference"}),u=rs(t,{altBoundary:!0}),d=oh(c,i),f=oh(u,s,o),m=lh(d),p=lh(f);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:m,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":p})}const _p={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qp};function Wp(e,t,n){var i=ai(e),s=[tn,en].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=o[0],u=o[1];return c=c||0,u=(u||0)*s,[tn,Dn].indexOf(i)>=0?{x:u,y:c}:{x:c,y:u}}function Hp(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,c=Y0.reduce(function(m,p){return m[p]=Wp(p,t.rects,o),m},{}),u=c[t.placement],d=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=f),t.modifiersData[i]=c}const Bp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hp};function Fp(e){var t=e.state,n=e.name;t.modifiersData[n]=sh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $p={name:"popperOffsets",enabled:!0,phase:"read",fn:Fp,data:{}};function Gp(e){return e==="x"?"y":"x"}function Zp(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,u=c===void 0?!1:c,d=n.boundary,f=n.rootBoundary,m=n.altBoundary,p=n.padding,y=n.tether,b=y===void 0?!0:y,C=n.tetherOffset,w=C===void 0?0:C,k=rs(t,{boundary:d,rootBoundary:f,padding:p,altBoundary:m}),N=ai(t.placement),x=ir(t.placement),v=!x,I=Kc(N),L=Gp(I),T=t.modifiersData.popperOffsets,J=t.rects.reference,S=t.rects.popper,j=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,R=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(T){if(o){var V,B=I==="y"?en:tn,K=I==="y"?xn:Dn,oe=I==="y"?"height":"width",ye=T[I],fe=ye+k[B],ae=ye-k[K],ee=b?-S[oe]/2:0,Y=x===er?J[oe]:S[oe],$=x===er?-S[oe]:-J[oe],_=t.elements.arrow,W=b&&_?Uc(_):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:q0(),ie=H[B],he=H[K],re=is(0,J[oe],W[oe]),X=v?J[oe]/2-ee-re-ie-R.mainAxis:Y-re-ie-R.mainAxis,P=v?-J[oe]/2+ee+re+he+R.mainAxis:$+re+he+R.mainAxis,Q=t.elements.arrow&&ns(t.elements.arrow),te=Q?I==="y"?Q.clientTop||0:Q.clientLeft||0:0,ue=(V=O==null?void 0:O[I])!=null?V:0,G=ye+X-ue-te,se=ye+P-ue,ve=is(b?fo(fe,G):fe,ye,b?wa(ae,se):ae);T[I]=ve,E[I]=ve-ye}if(u){var we,xe=I==="x"?en:tn,Be=I==="x"?xn:Dn,Fe=T[L],Ye=L==="y"?"height":"width",de=Fe+k[xe],be=Fe-k[Be],ke=[en,tn].indexOf(N)!==-1,Ve=(we=O==null?void 0:O[L])!=null?we:0,st=ke?de:Fe-J[Ye]-S[Ye]-Ve+R.altAxis,it=ke?Fe+J[Ye]+S[Ye]-Ve-R.altAxis:be,Pe=b&&ke?bp(st,Fe,it):is(b?st:de,Fe,b?it:be);T[L]=Pe,E[L]=Pe-Fe}t.modifiersData[i]=E}}const Yp={name:"preventOverflow",enabled:!0,phase:"main",fn:Zp,requiresIfExists:["offset"]};function Up(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Kp(e){return e===pn(e)||!jn(e)?Xc(e):Up(e)}function Xp(e){var t=e.getBoundingClientRect(),n=tr(t.width)/e.offsetWidth||1,i=tr(t.height)/e.offsetHeight||1;return n!==1||i!==1}function qp(e,t,n){n===void 0&&(n=!1);var i=jn(t),s=jn(t)&&Xp(t),o=Fi(t),c=nr(e,s,n),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!n)&&((ii(t)!=="body"||eu(o))&&(u=Kp(t)),jn(t)?(d=nr(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=qc(o))),{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function e2(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(u){if(!n.has(u)){var d=t.get(u);d&&s(d)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function t2(e){var t=e2(e);return fp.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function n2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function i2(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var ch={placement:"bottom",modifiers:[],strategy:"absolute"};function uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function a2(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?ch:s;return function(u,d,f){f===void 0&&(f=o);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},ch,o),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},p=[],y=!1,b={state:m,setOptions:function(N){var x=typeof N=="function"?N(m.options):N;w(),m.options=Object.assign({},o,m.options,x),m.scrollParents={reference:va(u)?as(u):u.contextElement?as(u.contextElement):[],popper:as(d)};var v=t2(i2([].concat(i,m.options.modifiers)));return m.orderedModifiers=v.filter(function(I){return I.enabled}),C(),b.update()},forceUpdate:function(){if(!y){var N=m.elements,x=N.reference,v=N.popper;if(uh(x,v)){m.rects={reference:qp(x,ns(v),m.options.strategy==="fixed"),popper:Uc(v)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(R){return m.modifiersData[R.name]=Object.assign({},R.data)});for(var I=0;I<m.orderedModifiers.length;I++){if(m.reset===!0){m.reset=!1,I=-1;continue}var L=m.orderedModifiers[I],T=L.fn,J=L.options,S=J===void 0?{}:J,j=L.name;typeof T=="function"&&(m=T({state:m,options:S,name:j,instance:b})||m)}}}},update:n2(function(){return new Promise(function(k){b.forceUpdate(),k(m)})}),destroy:function(){w(),y=!0}};if(!uh(u,d))return b;b.setOptions(f).then(function(k){!y&&f.onFirstUpdate&&f.onFirstUpdate(k)});function C(){m.orderedModifiers.forEach(function(k){var N=k.name,x=k.options,v=x===void 0?{}:x,I=k.effect;if(typeof I=="function"){var L=I({state:m,name:N,instance:b,options:v}),T=function(){};p.push(L||T)}})}function w(){p.forEach(function(k){return k()}),p=[]}return b}}var r2=[Sp,$p,kp,mp,Bp,Jp,Yp,Mp,_p],dh=a2({defaultModifiers:r2});class s2{constructor(t,n,i){Se(this,"isShow",!1);Se(this,"trigger");Se(this,"instance");Se(this,"always",!1);Se(this,"reference");Se(this,"referenceTarget");Se(this,"popperRefer");Se(this,"instanceOptions");Se(this,"delay",50);Se(this,"isInnerPopper",!1);Se(this,"disabled",!1);Se(this,"afterShow",null);Se(this,"afterHidden",null);Se(this,"appendTo","parent");Se(this,"container",null);Se(this,"fixOnBoundary",!1);var s,o;this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=(s=this.popperRefer)==null?void 0:s.parentElement,this.isShow=!!((o=this.instanceOptions)!=null&&o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden=typeof i.afterHidden=="function"?i.afterHidden:()=>{},this.afterShow=typeof i.afterShow=="function"?i.afterShow:()=>{},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}forceUpdate(){var t;(t=this.instance)==null||t.forceUpdate()}update(){var t;(t=this.instance)==null||t.update()}updateOptions(t){var n;this.instanceOptions=this.initDefaultOptions(t),this.isShow=!!((n=this.instanceOptions)!=null&&n.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}setOptions(t){var n;(n=this.instance)==null||n.setOptions(t)}destroy(){var t;(t=this.instance)==null||t.destroy()}updateDisabled(t){this.disabled=t??!this.disabled,this.disabled&&this.hide()}show(t){var n;this.disabled||((n=this.popperRefer)==null||n.setAttribute("data-show",""),this.setOptions({modifiers:[...this.instanceOptions.modifiers||[],{name:"eventListeners",enabled:!0}]}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}hide(){var t;this.always||((t=this.popperRefer)==null||t.removeAttribute("data-show"),this.setOptions({modifiers:[...this.instanceOptions.modifiers||[],{name:"eventListeners",enabled:!1}]}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}restorePopContent(){const t=this.getAppendToTarget();ba(t)&&t.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}appendToTarget(){const t=this.getAppendToTarget();ba(t)&&t.contains(this.popperRefer)&&t.append(this.popperRefer)}getAppendToTarget(){const{appendTo:t}=this;let n=t;return t!=="parent"&&typeof t=="string"&&(n=document.querySelector(t)),n}initDefaultOptions(t){const i=E0({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},t||{}),s=i.onFirstUpdate;return i.onFirstUpdate=o=>{typeof s=="function"&&(s.call(this,o),this.handleFirstUpdate())},i}handleFirstUpdate(){this.fixOnBoundary&&this.appendToTarget()}getTargetReferenceElement(){return this.isElement(this.reference)?this.reference.childElementCount===1?this.reference.firstElementChild:this.reference:this.reference}initInstance(){var t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=dh(this.referenceTarget,this.popperRefer,this.instanceOptions),(t=this.popperRefer)==null||t.setAttribute("data-theme",this.instanceOptions.theme??"dark")):console.error("reference or popperRefer is null, please check html element."))}resolveInputSelectorToHtmlElement(t){if(this.isElement(t))return t;if(typeof t=="string")return document.querySelector(t);if(typeof t=="object"){if(Object.prototype.hasOwnProperty.call(t,"getBoundingClientRect"))return t}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}isElement(t){return ba(t)}registerEvents(){if(this.isElement(this.referenceTarget)&&this.trigger==="hover"){const t=["mouseenter","focus"],n=["mouseleave","blur"],i=["mouseenter","mouseleave"];t.forEach(s=>{this.referenceTarget.addEventListener(s,o=>{s==="mouseenter"&&(this.isInnerPopper=!0),this.show(o)})}),n.forEach(s=>{this.referenceTarget.addEventListener(s,()=>{this.isInnerPopper=!1,setTimeout(()=>{!this.isInnerPopper&&this.hide()},this.delay)})}),this.isElement(this.popperRefer)&&i.forEach(s=>{this.popperRefer.addEventListener(s,()=>{s==="mouseenter"&&(this.isInnerPopper=!0),s==="mouseleave"&&this.hide()})})}this.trigger==="click"&&["click"].forEach(n=>{document.body.addEventListener(n,i=>{this.isSameElement(i.target,this.reference)||this.reference.contains(i.target)?this.show(i):this.isShow&&!this.isSameElement(i.target,this.popperRefer)&&!this.popperRefer.contains(i.target)&&this.hide()})})}isSameElement(t,n){return t&&(t===n||t===n.firstElementChild)}}/*!
33
+ `,o.textContent=i.textContent,o};let n=!1;try{const i=window.getComputedStyle(e,null);if(i.webkitLineClamp!=="none"){const o=parseFloat(i.height),c=t(e,i);document.body.appendChild(c);const u=window.getComputedStyle(c,null).height;document.body.removeChild(c),n=o<parseFloat(u)}else n=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(i){console.warn("There is an error when check element overflow state: ",i)}return n}const co={bottom:0,content:1,navi:100,fullScreen:1e3,modal:3e3,plugins:8e3,message:1e4,popper:99999};class H4{constructor(){Se(this,"storageLayerIndexValue",{});this.copyDefaultValue()}getNextIndex(t){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,t)?(this.storageLayerIndexValue[t]=this.storageLayerIndexValue[t]+1,this.storageLayerIndexValue[t]):(this.storageLayerIndexValue.modal=this.storageLayerIndexValue.modal+1,this.storageLayerIndexValue.modal)}getModalNextIndex(){return this.getNextIndex("modal")}getMessageNextIndex(){return this.getNextIndex("message")}getFullScreenNextIndex(){return this.getNextIndex("fullScreen")}getNaviNextIndex(){return this.getNextIndex("navi")}getPopperIndex(){return co.popper}setDefaultZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue.__proto__,n)&&Object.assign(this.storageLayerIndexValue.__proto__,{[n]:t[n]})}),this.copyDefaultValue()}resetZIndex(t){Object.keys(t||{}).forEach(n=>{Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,n)&&Object.assign(this.storageLayerIndexValue,{[n]:t[n]})})}copyDefaultValue(){const t=Object.keys(co).reduce((n,i)=>Object.assign(n,{[i]:{value:co[i],writable:!0,configurable:!0}}),{});this.storageLayerIndexValue=Object.create(co,t)}}const ni=new H4;`${Ca(16)}`;class B4{constructor(){Se(this,"timer",null);Se(this,"store",[]);Se(this,"maskMap",new WeakMap)}appendMaker(t){this.store.push(t),this.executeMaker()}pushMaskStyle(t,n){const i=this.getMaskMap(t);i!=null&&i.styles?i.styles.push(n):this.setMaskMap(t,{styles:[n],...i||{}})}getMaskStyles(t){var n;return((n=this.getMaskMap(t))==null?void 0:n.styles)||[]}setMaskId(t,n){const i=this.getMaskMap(t);i?(Object.assign(i,{id:n}),this.setMaskMap(t,i)):this.setMaskMap(t,{id:n,...i||{}})}getMaskId(t){var n;return(n=this.getMaskMap(t))==null?void 0:n.id}setMaskMap(t,n){this.maskMap.set(t,n)}getMaskMap(t){return this.maskMap.get(t)}executeMaker(){this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame(()=>{const t=this.store.pop();typeof t=="function"&&(Reflect.apply(t,this,[]),this.executeMaker())})}}const qa=new B4;class V0{constructor(t){Se(this,"mask");Se(this,"backupMask");Se(this,"multiInstance",!1);Se(this,"uniqueMaskAttrTag","");Se(this,"parentNode",document.body);Se(this,"activeInstance");Se(this,"zIndexStore",new Map);Se(this,"lastUUID",null);Se(this,"maskStyle",{position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"});Se(this,"onClick");Se(this,"isInit",!1);Se(this,"maskAttrTag","auto");Se(this,"popInstance");const{multiInstance:n=!1,maskAttrTag:i="auto",parentNode:s=document.body,maskStyle:o={},onClick:c=null,popInstance:u=null}=t||{};this.parentNode=s||document,this.maskAttrTag=i,this.onClick=c,this.activeInstance=void 0,this.multiInstance=n,this.popInstance=u,this.uniqueMaskAttrTag=this.getMaskAttrTag(i),qa.appendMaker(()=>{this.initInstance(o)})}setOption(t){const{parentNode:n=document.body,maskStyle:i={},onClick:s=null,maskAttrTag:o=this.maskAttrTag}=t||{};this.onClick=s,this.parentNode=n||document,this.setMaskStyle(Object.assign({},this.maskStyle,i)),this.uniqueMaskAttrTag=this.getMaskAttrTag(o)}show(t,n,i=!0,s={},o=null,c=!1){const u=o??Ca(16),d=/-?\d+/.test(`${n}`)?n:ni.getModalNextIndex();let f=Object.assign({},this.maskStyle,s||{});if(!i&&this.lastUUID){const m=this.zIndexStore.get(this.lastUUID);m&&(f=m==null?void 0:m.style)}this.storeMaskInsCfg({zIndex:d,style:{...f},uuid:u,preUID:this.lastUUID}),Object.assign(f,{display:"block","z-index":`${d}`,"pointer-events":"all"}),this.initInstance(f),this.catchClickEvent(),this.setMaskStyle(f),qa.pushMaskStyle(this.parentNode,{...f}),this.backupMask.style.setProperty("z-index",`${d-1}`),i||(this.mask.style.setProperty("pointer-events","none"),t==null||t.style.setProperty("pointer-events","all")),t&&(c&&t.style.setProperty("z-index",`${d+1}`),this.activeInstance=t,this.appendContentToMask(t))}hide(t=!1,n,i){var c;const s=i??this.lastUUID;t||(n==null||n.remove(),(c=this.activeInstance)==null||c.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(s);const o=qa.getMaskStyles(this.parentNode);if(o==null||o.pop(),!(o!=null&&o.length))this.mask.style.setProperty("display","none");else{const u=o.slice(-1)[0];this.setMaskStyle(u)}}storeMaskInsCfg(t){return this.zIndexStore.set(t.uuid,t),this.lastUUID=t.uuid,this.zIndexStore.get(t.uuid)}popIndexStore(t){if(this.zIndexStore.has(t)){const n=this.zIndexStore.get(t);return this.lastUUID=n.preUID,this.zIndexStore.delete(t)}return this.lastUUID=null,!1}backupActiveInstance(){this.activeInstance&&this.backupMask.append(this.activeInstance)}backupContentElement(t){t&&this.backupMask.append(t)}getActiveContentInstance(){return this.activeInstance}initInstance(t){if(!this.isInit){this.isInit=!0;const{instance:n,isExist:i}=this.getMask();this.mask=n,this.backupMask=this.getBackupMask(),!i&&this.setMaskStyle(Object.assign({},this.maskStyle,t))}}getMask(){if(this.multiInstance)return{instance:this.createMask(),isExist:!1};let t=!0,n=this.parentNode.querySelector(`[data-bk-mask-uid='${this.uniqueMaskAttrTag}']`);return n||(t=!1,n=this.createMask()),{instance:n,isExist:t}}catchClickEvent(){this.mask&&this.mask.addEventListener("click",t=>this.handleMaskClick(t),!0)}removeClickEvent(){this.mask&&this.mask.removeEventListener("click",this.handleMaskClick)}handleMaskClick(t){t.target===this.mask&&typeof this.onClick=="function"&&Reflect.apply(this.onClick,this.popInstance||this,[t])}getBackupMask(){const t="data-bk-backup-uid";let n=this.parentNode.querySelector(`[${t}]`);return n||(n=this.createMask(t)),n}createMask(t="data-bk-mask-uid"){const n=document.createElement("div");return n.setAttribute(t,this.uniqueMaskAttrTag),this.parentNode.append(n),n}setMaskStyle(t={}){this.mask&&Object.entries(t).forEach(n=>this.mask.style.setProperty(n[0],n[1]))}getMaskAttrTag(t){return/^(auto|\s+)$/i.test(t)||t===null||t===void 0||t===""?(qa.getMaskId(this.parentNode)||qa.setMaskId(this.parentNode,`__bk_mask_${Ca(16)}`),qa.getMaskId(this.parentNode)):t}appendContentToMask(t){this.mask.append(t)}}new V0({});class R0{constructor(t){Se(this,"popInstanceList");Se(this,"uuidAttrName");Se(this,"clickFn");Se(this,"bKMaskManagerInstance");this.popInstanceList=[],this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.bKMaskManagerInstance=new V0({parentNode:this.getParentNode(t==null?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}getParentNode(t){if(typeof t=="string"){const n=document.querySelector(t);if(n)return n}return ba(t)?t:document.body}onMaskClick(t,n){this.clickFn={fn:t,target:n}}show(t,n=!0,i={},s=!1,o=void 0){if(!t){console.warn("pop show error: content is null or undefined");return}const c=typeof o=="number"?o:ni.getModalNextIndex(),u=Ca(16);t.setAttribute(this.uuidAttrName,u),this.popInstanceList.push({uuid:u,zIndex:c,content:t,showMask:n,appendStyle:i}),n&&this.bKMaskManagerInstance.backupActiveInstance(),this.bKMaskManagerInstance.show(t,c,n,i,u,s)}destroy(t,n=!1){this.clickFn=void 0,this.hide(t,n)}popHide(t=!0){if(this.popInstanceList.length){if(t){const n=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(n.uuid),n.remove()}if(this.popInstanceList.length){const n=this.popInstanceList.slice(-1)[0],{zIndex:i,content:s,showMask:o,appendStyle:c,uuid:u}=n;this.bKMaskManagerInstance.show(s,i,o,c,u)}else this.bKMaskManagerInstance.hide()}}hide(t,n=!1){const i=t==null?void 0:t.getAttribute(this.uuidAttrName);if(i){const s=this.popInstanceList.findIndex(o=>o.uuid===i);s>=0&&(n||this.popInstanceList[s].content.remove(),this.popInstanceList.splice(s,1),this.bKMaskManagerInstance.popIndexStore(i),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(n))}else t==null||t.remove()}onMaskClickFn(t){if(this.clickFn){const{fn:n}=this.clickFn;n&&Reflect.apply(n,this,[t])}}}new R0;var Wc={exports:{}},J0=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(J0){var Q0=new Uint8Array(16);Wc.exports=function(){return J0(Q0),Q0}}else{var _0=new Array(16);Wc.exports=function(){for(var t=0,n;t<16;t++)t&3||(n=Math.random()*4294967296),_0[t]=n>>>((t&3)<<3)&255;return _0}}for(var W0=Wc.exports,H0=[],uo=0;uo<256;++uo)H0[uo]=(uo+256).toString(16).substr(1);function F4(e,t){var n=t||0,i=H0;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}var B0=F4,$4=W0,G4=B0,F0,Hc,Bc=0,Fc=0;function Z4(e,t,n){var i=t&&n||0,s=t||[];e=e||{};var o=e.node||F0,c=e.clockseq!==void 0?e.clockseq:Hc;if(o==null||c==null){var u=$4();o==null&&(o=F0=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),c==null&&(c=Hc=(u[6]<<8|u[7])&16383)}var d=e.msecs!==void 0?e.msecs:new Date().getTime(),f=e.nsecs!==void 0?e.nsecs:Fc+1,m=d-Bc+(f-Fc)/1e4;if(m<0&&e.clockseq===void 0&&(c=c+1&16383),(m<0||d>Bc)&&e.nsecs===void 0&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Bc=d,Fc=f,Hc=c,d+=122192928e5;var p=((d&268435455)*1e4+f)%4294967296;s[i++]=p>>>24&255,s[i++]=p>>>16&255,s[i++]=p>>>8&255,s[i++]=p&255;var y=d/4294967296*1e4&268435455;s[i++]=y>>>8&255,s[i++]=y&255,s[i++]=y>>>24&15|16,s[i++]=y>>>16&255,s[i++]=c>>>8|128,s[i++]=c&255;for(var b=0;b<6;++b)s[i+b]=o[b];return t||G4(s)}var Y4=Z4,U4=W0,K4=B0;function X4(e,t,n){var i=t&&n||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||U4)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t)for(var o=0;o<16;++o)t[i+o]=s[o];return t||K4(s)}var q4=X4,ep=Y4,$0=q4,$c=$0;$c.v1=ep,$c.v4=$0;var Mi=$c,en="top",xn="bottom",Dn="right",tn="left",Gc="auto",qr=[en,xn,Dn,tn],er="start",es="end",tp="clippingParents",G0="viewport",ts="popper",np="reference",Z0=qr.reduce(function(e,t){return e.concat([t+"-"+er,t+"-"+es])},[]),Y0=[].concat(qr,[Gc]).reduce(function(e,t){return e.concat([t,t+"-"+er,t+"-"+es])},[]),ip="beforeRead",ap="read",rp="afterRead",sp="beforeMain",op="main",lp="afterMain",cp="beforeWrite",up="write",dp="afterWrite",fp=[ip,ap,rp,sp,op,lp,cp,up,dp];function ii(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function va(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function jn(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zc(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hp(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!jn(o)||!ii(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(c){var u=s[c];u===!1?o.removeAttribute(c):o.setAttribute(c,u===!0?"":u)}))})}function gp(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(i){var s=t.elements[i],o=t.attributes[i]||{},c=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),u=c.reduce(function(d,f){return d[f]="",d},{});!jn(s)||!ii(s)||(Object.assign(s.style,u),Object.keys(o).forEach(function(d){s.removeAttribute(d)}))})}}const mp={name:"applyStyles",enabled:!0,phase:"write",fn:hp,effect:gp,requires:["computeStyles"]};function ai(e){return e.split("-")[0]}var wa=Math.max,fo=Math.min,tr=Math.round;function Yc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function U0(){return!/^((?!chrome|android).)*safari/i.test(Yc())}function nr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&jn(e)&&(s=e.offsetWidth>0&&tr(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&tr(i.height)/e.offsetHeight||1);var c=va(e)?pn(e):window,u=c.visualViewport,d=!U0()&&n,f=(i.left+(d&&u?u.offsetLeft:0))/s,m=(i.top+(d&&u?u.offsetTop:0))/o,p=i.width/s,y=i.height/o;return{width:p,height:y,top:m,right:f+p,bottom:m+y,left:f,x:f,y:m}}function Uc(e){var t=nr(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function K0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zc(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ni(e){return pn(e).getComputedStyle(e)}function pp(e){return["table","td","th"].indexOf(ii(e))>=0}function Fi(e){return((va(e)?e.ownerDocument:e.document)||window.document).documentElement}function ho(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(Zc(e)?e.host:null)||Fi(e)}function X0(e){return!jn(e)||Ni(e).position==="fixed"?null:e.offsetParent}function yp(e){var t=/firefox/i.test(Yc()),n=/Trident/i.test(Yc());if(n&&jn(e)){var i=Ni(e);if(i.position==="fixed")return null}var s=ho(e);for(Zc(s)&&(s=s.host);jn(s)&&["html","body"].indexOf(ii(s))<0;){var o=Ni(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function ns(e){for(var t=pn(e),n=X0(e);n&&pp(n)&&Ni(n).position==="static";)n=X0(n);return n&&(ii(n)==="html"||ii(n)==="body"&&Ni(n).position==="static")?t:n||yp(e)||t}function Kc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function is(e,t,n){return wa(e,fo(t,n))}function bp(e,t,n){var i=is(e,t,n);return i>n?n:i}function q0(){return{top:0,right:0,bottom:0,left:0}}function eh(e){return Object.assign({},q0(),e)}function th(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Cp=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,eh(typeof t!="number"?t:th(t,qr))};function vp(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,c=n.modifiersData.popperOffsets,u=ai(n.placement),d=Kc(u),f=[tn,Dn].indexOf(u)>=0,m=f?"height":"width";if(!(!o||!c)){var p=Cp(s.padding,n),y=Uc(o),b=d==="y"?en:tn,C=d==="y"?xn:Dn,w=n.rects.reference[m]+n.rects.reference[d]-c[d]-n.rects.popper[m],k=c[d]-n.rects.reference[d],N=ns(o),x=N?d==="y"?N.clientHeight||0:N.clientWidth||0:0,v=w/2-k/2,I=p[b],L=x-y[m]-p[C],T=x/2-y[m]/2+v,J=is(I,T,L),S=d;n.modifiersData[i]=(t={},t[S]=J,t.centerOffset=J-T,t)}}function wp(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||K0(t.elements.popper,s)&&(t.elements.arrow=s))}const Mp={name:"arrow",enabled:!0,phase:"main",fn:vp,effect:wp,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ir(e){return e.split("-")[1]}var Np={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ip(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:tr(n*s)/s||0,y:tr(i*s)/s||0}}function nh(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,c=e.offsets,u=e.position,d=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,p=e.isFixed,y=c.x,b=y===void 0?0:y,C=c.y,w=C===void 0?0:C,k=typeof m=="function"?m({x:b,y:w}):{x:b,y:w};b=k.x,w=k.y;var N=c.hasOwnProperty("x"),x=c.hasOwnProperty("y"),v=tn,I=en,L=window;if(f){var T=ns(n),J="clientHeight",S="clientWidth";if(T===pn(n)&&(T=Fi(n),Ni(T).position!=="static"&&u==="absolute"&&(J="scrollHeight",S="scrollWidth")),T=T,s===en||(s===tn||s===Dn)&&o===es){I=xn;var j=p&&T===L&&L.visualViewport?L.visualViewport.height:T[J];w-=j-i.height,w*=d?1:-1}if(s===tn||(s===en||s===xn)&&o===es){v=Dn;var R=p&&T===L&&L.visualViewport?L.visualViewport.width:T[S];b-=R-i.width,b*=d?1:-1}}var O=Object.assign({position:u},f&&Np),E=m===!0?Ip({x:b,y:w},pn(n)):{x:b,y:w};if(b=E.x,w=E.y,d){var V;return Object.assign({},O,(V={},V[I]=x?"0":"",V[v]=N?"0":"",V.transform=(L.devicePixelRatio||1)<=1?"translate("+b+"px, "+w+"px)":"translate3d("+b+"px, "+w+"px, 0)",V))}return Object.assign({},O,(t={},t[I]=x?w+"px":"",t[v]=N?b+"px":"",t.transform="",t))}function Lp(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,c=o===void 0?!0:o,u=n.roundOffsets,d=u===void 0?!0:u,f={placement:ai(t.placement),variation:ir(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nh(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nh(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const kp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lp,data:{}};var go={passive:!0};function Tp(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,c=i.resize,u=c===void 0?!0:c,d=pn(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(m){m.addEventListener("scroll",n.update,go)}),u&&d.addEventListener("resize",n.update,go),function(){o&&f.forEach(function(m){m.removeEventListener("scroll",n.update,go)}),u&&d.removeEventListener("resize",n.update,go)}}const Sp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Tp,data:{}};var xp={left:"right",right:"left",bottom:"top",top:"bottom"};function mo(e){return e.replace(/left|right|bottom|top/g,function(t){return xp[t]})}var Dp={start:"end",end:"start"};function ih(e){return e.replace(/start|end/g,function(t){return Dp[t]})}function Xc(e){var t=pn(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function qc(e){return nr(Fi(e)).left+Xc(e).scrollLeft}function jp(e,t){var n=pn(e),i=Fi(e),s=n.visualViewport,o=i.clientWidth,c=i.clientHeight,u=0,d=0;if(s){o=s.width,c=s.height;var f=U0();(f||!f&&t==="fixed")&&(u=s.offsetLeft,d=s.offsetTop)}return{width:o,height:c,x:u+qc(e),y:d}}function Op(e){var t,n=Fi(e),i=Xc(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=wa(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=wa(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-i.scrollLeft+qc(e),d=-i.scrollTop;return Ni(s||n).direction==="rtl"&&(u+=wa(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:c,x:u,y:d}}function eu(e){var t=Ni(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function ah(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:jn(e)&&eu(e)?e:ah(ho(e))}function as(e,t){var n;t===void 0&&(t=[]);var i=ah(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=pn(i),c=s?[o].concat(o.visualViewport||[],eu(i)?i:[]):i,u=t.concat(c);return s?u:u.concat(as(ho(c)))}function tu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ap(e,t){var n=nr(e,!1,t==="fixed");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}function rh(e,t,n){return t===G0?tu(jp(e,n)):va(t)?Ap(t,n):tu(Op(Fi(e)))}function Ep(e){var t=as(ho(e)),n=["absolute","fixed"].indexOf(Ni(e).position)>=0,i=n&&jn(e)?ns(e):e;return va(i)?t.filter(function(s){return va(s)&&K0(s,i)&&ii(s)!=="body"}):[]}function Pp(e,t,n,i){var s=t==="clippingParents"?Ep(e):[].concat(t),o=[].concat(s,[n]),c=o[0],u=o.reduce(function(d,f){var m=rh(e,f,i);return d.top=wa(m.top,d.top),d.right=fo(m.right,d.right),d.bottom=fo(m.bottom,d.bottom),d.left=wa(m.left,d.left),d},rh(e,c,i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function sh(e){var t=e.reference,n=e.element,i=e.placement,s=i?ai(i):null,o=i?ir(i):null,c=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,d;switch(s){case en:d={x:c,y:t.y-n.height};break;case xn:d={x:c,y:t.y+t.height};break;case Dn:d={x:t.x+t.width,y:u};break;case tn:d={x:t.x-n.width,y:u};break;default:d={x:t.x,y:t.y}}var f=s?Kc(s):null;if(f!=null){var m=f==="y"?"height":"width";switch(o){case er:d[f]=d[f]-(t[m]/2-n[m]/2);break;case es:d[f]=d[f]+(t[m]/2-n[m]/2);break}}return d}function rs(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,c=o===void 0?e.strategy:o,u=n.boundary,d=u===void 0?tp:u,f=n.rootBoundary,m=f===void 0?G0:f,p=n.elementContext,y=p===void 0?ts:p,b=n.altBoundary,C=b===void 0?!1:b,w=n.padding,k=w===void 0?0:w,N=eh(typeof k!="number"?k:th(k,qr)),x=y===ts?np:ts,v=e.rects.popper,I=e.elements[C?x:y],L=Pp(va(I)?I:I.contextElement||Fi(e.elements.popper),d,m,c),T=nr(e.elements.reference),J=sh({reference:T,element:v,strategy:"absolute",placement:s}),S=tu(Object.assign({},v,J)),j=y===ts?S:T,R={top:L.top-j.top+N.top,bottom:j.bottom-L.bottom+N.bottom,left:L.left-j.left+N.left,right:j.right-L.right+N.right},O=e.modifiersData.offset;if(y===ts&&O){var E=O[s];Object.keys(R).forEach(function(V){var B=[Dn,xn].indexOf(V)>=0?1:-1,K=[en,xn].indexOf(V)>=0?"y":"x";R[V]+=E[K]*B})}return R}function zp(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,c=n.padding,u=n.flipVariations,d=n.allowedAutoPlacements,f=d===void 0?Y0:d,m=ir(i),p=m?u?Z0:Z0.filter(function(C){return ir(C)===m}):qr,y=p.filter(function(C){return f.indexOf(C)>=0});y.length===0&&(y=p);var b=y.reduce(function(C,w){return C[w]=rs(e,{placement:w,boundary:s,rootBoundary:o,padding:c})[ai(w)],C},{});return Object.keys(b).sort(function(C,w){return b[C]-b[w]})}function Vp(e){if(ai(e)===Gc)return[];var t=mo(e);return[ih(e),t,ih(t)]}function Rp(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,u=c===void 0?!0:c,d=n.fallbackPlacements,f=n.padding,m=n.boundary,p=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,C=b===void 0?!0:b,w=n.allowedAutoPlacements,k=t.options.placement,N=ai(k),x=N===k,v=d||(x||!C?[mo(k)]:Vp(k)),I=[k].concat(v).reduce(function(W,H){return W.concat(ai(H)===Gc?zp(t,{placement:H,boundary:m,rootBoundary:p,padding:f,flipVariations:C,allowedAutoPlacements:w}):H)},[]),L=t.rects.reference,T=t.rects.popper,J=new Map,S=!0,j=I[0],R=0;R<I.length;R++){var O=I[R],E=ai(O),V=ir(O)===er,B=[en,xn].indexOf(E)>=0,K=B?"width":"height",oe=rs(t,{placement:O,boundary:m,rootBoundary:p,altBoundary:y,padding:f}),ye=B?V?Dn:tn:V?xn:en;L[K]>T[K]&&(ye=mo(ye));var fe=mo(ye),ae=[];if(o&&ae.push(oe[E]<=0),u&&ae.push(oe[ye]<=0,oe[fe]<=0),ae.every(function(W){return W})){j=O,S=!1;break}J.set(O,ae)}if(S)for(var ee=C?3:1,Y=function(H){var ie=I.find(function(he){var re=J.get(he);if(re)return re.slice(0,H).every(function(X){return X})});if(ie)return j=ie,"break"},$=ee;$>0;$--){var _=Y($);if(_==="break")break}t.placement!==j&&(t.modifiersData[i]._skip=!0,t.placement=j,t.reset=!0)}}const Jp={name:"flip",enabled:!0,phase:"main",fn:Rp,requiresIfExists:["offset"],data:{_skip:!1}};function oh(e,t,n){return n===void 0&&(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 lh(e){return[en,Dn,xn,tn].some(function(t){return e[t]>=0})}function Qp(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,c=rs(t,{elementContext:"reference"}),u=rs(t,{altBoundary:!0}),d=oh(c,i),f=oh(u,s,o),m=lh(d),p=lh(f);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:m,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":p})}const _p={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qp};function Wp(e,t,n){var i=ai(e),s=[tn,en].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=o[0],u=o[1];return c=c||0,u=(u||0)*s,[tn,Dn].indexOf(i)>=0?{x:u,y:c}:{x:c,y:u}}function Hp(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,c=Y0.reduce(function(m,p){return m[p]=Wp(p,t.rects,o),m},{}),u=c[t.placement],d=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=f),t.modifiersData[i]=c}const Bp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hp};function Fp(e){var t=e.state,n=e.name;t.modifiersData[n]=sh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $p={name:"popperOffsets",enabled:!0,phase:"read",fn:Fp,data:{}};function Gp(e){return e==="x"?"y":"x"}function Zp(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,c=n.altAxis,u=c===void 0?!1:c,d=n.boundary,f=n.rootBoundary,m=n.altBoundary,p=n.padding,y=n.tether,b=y===void 0?!0:y,C=n.tetherOffset,w=C===void 0?0:C,k=rs(t,{boundary:d,rootBoundary:f,padding:p,altBoundary:m}),N=ai(t.placement),x=ir(t.placement),v=!x,I=Kc(N),L=Gp(I),T=t.modifiersData.popperOffsets,J=t.rects.reference,S=t.rects.popper,j=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,R=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(T){if(o){var V,B=I==="y"?en:tn,K=I==="y"?xn:Dn,oe=I==="y"?"height":"width",ye=T[I],fe=ye+k[B],ae=ye-k[K],ee=b?-S[oe]/2:0,Y=x===er?J[oe]:S[oe],$=x===er?-S[oe]:-J[oe],_=t.elements.arrow,W=b&&_?Uc(_):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:q0(),ie=H[B],he=H[K],re=is(0,J[oe],W[oe]),X=v?J[oe]/2-ee-re-ie-R.mainAxis:Y-re-ie-R.mainAxis,P=v?-J[oe]/2+ee+re+he+R.mainAxis:$+re+he+R.mainAxis,Q=t.elements.arrow&&ns(t.elements.arrow),te=Q?I==="y"?Q.clientTop||0:Q.clientLeft||0:0,ue=(V=O==null?void 0:O[I])!=null?V:0,G=ye+X-ue-te,se=ye+P-ue,ve=is(b?fo(fe,G):fe,ye,b?wa(ae,se):ae);T[I]=ve,E[I]=ve-ye}if(u){var we,xe=I==="x"?en:tn,Be=I==="x"?xn:Dn,Fe=T[L],Ye=L==="y"?"height":"width",de=Fe+k[xe],be=Fe-k[Be],ke=[en,tn].indexOf(N)!==-1,Ve=(we=O==null?void 0:O[L])!=null?we:0,st=ke?de:Fe-J[Ye]-S[Ye]-Ve+R.altAxis,it=ke?Fe+J[Ye]+S[Ye]-Ve-R.altAxis:be,Pe=b&&ke?bp(st,Fe,it):is(b?st:de,Fe,b?it:be);T[L]=Pe,E[L]=Pe-Fe}t.modifiersData[i]=E}}const Yp={name:"preventOverflow",enabled:!0,phase:"main",fn:Zp,requiresIfExists:["offset"]};function Up(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Kp(e){return e===pn(e)||!jn(e)?Xc(e):Up(e)}function Xp(e){var t=e.getBoundingClientRect(),n=tr(t.width)/e.offsetWidth||1,i=tr(t.height)/e.offsetHeight||1;return n!==1||i!==1}function qp(e,t,n){n===void 0&&(n=!1);var i=jn(t),s=jn(t)&&Xp(t),o=Fi(t),c=nr(e,s,n),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!n)&&((ii(t)!=="body"||eu(o))&&(u=Kp(t)),jn(t)?(d=nr(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=qc(o))),{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function e2(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(u){if(!n.has(u)){var d=t.get(u);d&&s(d)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function t2(e){var t=e2(e);return fp.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function n2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function i2(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var ch={placement:"bottom",modifiers:[],strategy:"absolute"};function uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function a2(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?ch:s;return function(u,d,f){f===void 0&&(f=o);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},ch,o),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},p=[],y=!1,b={state:m,setOptions:function(N){var x=typeof N=="function"?N(m.options):N;w(),m.options=Object.assign({},o,m.options,x),m.scrollParents={reference:va(u)?as(u):u.contextElement?as(u.contextElement):[],popper:as(d)};var v=t2(i2([].concat(i,m.options.modifiers)));return m.orderedModifiers=v.filter(function(I){return I.enabled}),C(),b.update()},forceUpdate:function(){if(!y){var N=m.elements,x=N.reference,v=N.popper;if(uh(x,v)){m.rects={reference:qp(x,ns(v),m.options.strategy==="fixed"),popper:Uc(v)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(R){return m.modifiersData[R.name]=Object.assign({},R.data)});for(var I=0;I<m.orderedModifiers.length;I++){if(m.reset===!0){m.reset=!1,I=-1;continue}var L=m.orderedModifiers[I],T=L.fn,J=L.options,S=J===void 0?{}:J,j=L.name;typeof T=="function"&&(m=T({state:m,options:S,name:j,instance:b})||m)}}}},update:n2(function(){return new Promise(function(k){b.forceUpdate(),k(m)})}),destroy:function(){w(),y=!0}};if(!uh(u,d))return b;b.setOptions(f).then(function(k){!y&&f.onFirstUpdate&&f.onFirstUpdate(k)});function C(){m.orderedModifiers.forEach(function(k){var N=k.name,x=k.options,v=x===void 0?{}:x,I=k.effect;if(typeof I=="function"){var L=I({state:m,name:N,instance:b,options:v}),T=function(){};p.push(L||T)}})}function w(){p.forEach(function(k){return k()}),p=[]}return b}}var r2=[Sp,$p,kp,mp,Bp,Jp,Yp,Mp,_p],dh=a2({defaultModifiers:r2});class s2{constructor(t,n,i){Se(this,"isShow",!1);Se(this,"trigger");Se(this,"instance");Se(this,"always",!1);Se(this,"reference");Se(this,"referenceTarget");Se(this,"popperRefer");Se(this,"instanceOptions");Se(this,"delay",50);Se(this,"isInnerPopper",!1);Se(this,"disabled",!1);Se(this,"afterShow",null);Se(this,"afterHidden",null);Se(this,"appendTo","parent");Se(this,"container",null);Se(this,"fixOnBoundary",!1);var s,o;this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=(s=this.popperRefer)==null?void 0:s.parentElement,this.isShow=!!((o=this.instanceOptions)!=null&&o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden=typeof i.afterHidden=="function"?i.afterHidden:()=>{},this.afterShow=typeof i.afterShow=="function"?i.afterShow:()=>{},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}forceUpdate(){var t;(t=this.instance)==null||t.forceUpdate()}update(){var t;(t=this.instance)==null||t.update()}updateOptions(t){var n;this.instanceOptions=this.initDefaultOptions(t),this.isShow=!!((n=this.instanceOptions)!=null&&n.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}setOptions(t){var n;(n=this.instance)==null||n.setOptions(t)}destroy(){var t;(t=this.instance)==null||t.destroy()}updateDisabled(t){this.disabled=t??!this.disabled,this.disabled&&this.hide()}show(t){var n;this.disabled||((n=this.popperRefer)==null||n.setAttribute("data-show",""),this.setOptions({modifiers:[...this.instanceOptions.modifiers||[],{name:"eventListeners",enabled:!0}]}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}hide(){var t;this.always||((t=this.popperRefer)==null||t.removeAttribute("data-show"),this.setOptions({modifiers:[...this.instanceOptions.modifiers||[],{name:"eventListeners",enabled:!1}]}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}restorePopContent(){const t=this.getAppendToTarget();ba(t)&&t.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}appendToTarget(){const t=this.getAppendToTarget();ba(t)&&t.contains(this.popperRefer)&&t.append(this.popperRefer)}getAppendToTarget(){const{appendTo:t}=this;let n=t;return t!=="parent"&&typeof t=="string"&&(n=document.querySelector(t)),n}initDefaultOptions(t){const i=E0({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},t||{}),s=i.onFirstUpdate;return i.onFirstUpdate=o=>{typeof s=="function"&&(s.call(this,o),this.handleFirstUpdate())},i}handleFirstUpdate(){this.fixOnBoundary&&this.appendToTarget()}getTargetReferenceElement(){return this.isElement(this.reference)?this.reference.childElementCount===1?this.reference.firstElementChild:this.reference:this.reference}initInstance(){var t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=dh(this.referenceTarget,this.popperRefer,this.instanceOptions),(t=this.popperRefer)==null||t.setAttribute("data-theme",this.instanceOptions.theme??"dark")):console.error("reference or popperRefer is null, please check html element."))}resolveInputSelectorToHtmlElement(t){if(this.isElement(t))return t;if(typeof t=="string")return document.querySelector(t);if(typeof t=="object"){if(Object.prototype.hasOwnProperty.call(t,"getBoundingClientRect"))return t}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}isElement(t){return ba(t)}registerEvents(){if(this.isElement(this.referenceTarget)&&this.trigger==="hover"){const t=["mouseenter","focus"],n=["mouseleave","blur"],i=["mouseenter","mouseleave"];t.forEach(s=>{this.referenceTarget.addEventListener(s,o=>{s==="mouseenter"&&(this.isInnerPopper=!0),this.show(o)})}),n.forEach(s=>{this.referenceTarget.addEventListener(s,()=>{this.isInnerPopper=!1,setTimeout(()=>{!this.isInnerPopper&&this.hide()},this.delay)})}),this.isElement(this.popperRefer)&&i.forEach(s=>{this.popperRefer.addEventListener(s,()=>{s==="mouseenter"&&(this.isInnerPopper=!0),s==="mouseleave"&&this.hide()})})}this.trigger==="click"&&["click"].forEach(n=>{document.body.addEventListener(n,i=>{this.isSameElement(i.target,this.reference)||this.reference.contains(i.target)?this.show(i):this.isShow&&!this.isSameElement(i.target,this.popperRefer)&&!this.popperRefer.contains(i.target)&&this.hide()})})}isSameElement(t,n){return t&&(t===n||t===n.firstElementChild)}}/*!
34
34
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
35
35
  *
36
36
  * Copyright (c) 2014-2017, Jon Schlinkert.
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["vue","lodash","@popperjs/core","vue-types"],t);else{var n="object"==typeof exports?t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types")):t(e.vue,e.lodash,e["@popperjs/core"],e["vue-types"]);for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,((e,t,n,i)=>(()=>{var r={8022:(e,t,n)=>{var i=n(4481),r=n(6426),o=r;o.v1=i,o.v4=r,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,r=t;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},4481:(e,t,n)=>{var i,r,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||i,f=void 0!==e.clockseq?e.clockseq:r;if(null==p||null==f){var d=o();null==p&&(p=i=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=r=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=h-a+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,u=v,r=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var k=0;k<6;++k)l[c+k]=p[k];return t||s(l)}},6426:(e,t,n)=>{var i=n(9157),r=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||i)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||r(s)}},5798:e=>{"use strict";e.exports=n},467:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=i}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";s.r(a),s.d(a,{AlignEnum:()=>ce,BKLAYERD_INDEX_EFAULT_VALUE:()=>H,BKLAYERTYPE:()=>N,BKPopIndexManager:()=>K,BKPopover:()=>$,BkMaskManager:()=>q,DialogTypeEnum:()=>he,DirectionEnum:()=>ve,EMPTY_OBJ:()=>Pe,InputBehaviorEnum:()=>me,InputBehaviorType:()=>je,LineStyleEnum:()=>ye,PlacementEnum:()=>pe,Placements:()=>ae,PropTypes:()=>Le,RenderDirectiveEnum:()=>ue,RenderType:()=>de,SelectedType:()=>Ne,SelectedTypeEnum:()=>Re,SizeEnum:()=>se,TagThemeEnum:()=>ge,TagThemeType:()=>Ae,ThemeEnum:()=>le,TriggerEnum:()=>fe,alignType:()=>Oe,arrayEqual:()=>ze,bKMaskManager:()=>z,bkPopIndexManager:()=>W,bkZIndexManager:()=>B,capitalize:()=>U,checkOverflow:()=>_,classes:()=>Ce,clone:()=>h,debounce:()=>Ve,dialogTypeUnion:()=>Se,directionType:()=>we,elementsEqual:()=>d,filterProperty:()=>qe,finiteOrDefault:()=>p,formItemKey:()=>E,formKey:()=>M,getPopContainerId:()=>ee,hasOverflowEllipsis:()=>I,isArray:()=>u,isElement:()=>b,isEmpty:()=>o,isEmptyObj:()=>_e,isFinite:()=>l,isNullOrUndef:()=>r,isObject:()=>c,lineStyleType:()=>xe,maybeShowTooltip:()=>O,merge:()=>g,mergeIf:()=>m,mergerFn:()=>y,mergerIfFn:()=>k,noop:()=>De,observerResize:()=>D,off:()=>t,on:()=>e,placementType:()=>Te,random:()=>P,renderDirectiveType:()=>Ie,renderEmptyVNode:()=>Ue,renderType:()=>Ee,resolveClassName:()=>Be,scrollTop:()=>n,scrollbarWidth:()=>te,stringEnum:()=>be,triggerType:()=>Me,useForm:()=>S,useFormItem:()=>w,valueOrDefault:()=>f,withInstall:()=>Fe,withInstallProps:()=>He});var e=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!0)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},t=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!0)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,r=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n);!function t(n,i,o){if(n!==i){var s=n+o>i?i:n+o;n>i&&(s=n-o<i?i:n-o),e===window?window.scrollTo(s,s):e.scrollTop=s,window.requestAnimationFrame((function(){return t(s,i,o)}))}else null==r||r()}(t,n,Math.ceil(o/i*50))}function i(e){return i="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(e)}function r(e){return null==e}function o(e){return""===e||!(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])&&r(e)}function u(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function c(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var l=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function p(e,t){return l(e)?e:t}function f(e,t){return void 0===e?t:e}function d(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function h(e){if(u(e))return e.map(h);if(c(e)){for(var t=Object.create(null),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=h(e[n[r]]);return t}return e}function v(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function y(e,t,n,i){if(v(e)){var r=t[e],o=n[e];c(r)&&c(o)?g(r,o,i):t[e]=h(o)}}function g(e,t,n){var i=u(t)?t:[t],r=i.length;if(!c(e))return e;for(var o=(n=n||{}).merger||y,s=0;s<r;++s)if(c(t=i[s]))for(var a=Object.keys(t),l=0,p=a.length;l<p;++l)o(a[l],e,t,n);return e}function m(e,t){return g(e,t,{merger:k})}function k(e,t,n){if(v(e)){var i=t[e],r=n[e];c(i)&&c(r)?m(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=h(r))}}function b(e){try{return e instanceof HTMLElement}catch(t){return"object"===i(e)&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}}function I(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function O(e,t){I(e)?e.setAttribute("title",t):e.removeAttribute("title")}var T=s(748),M=Symbol("form"),E=Symbol("formItem"),S=function(){return(0,T.inject)(M)},w=function(){return(0,T.inject)(E,void 0)};function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,A(i.key),i)}}function R(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var L,N,C=s(467),P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"abcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<e;i++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(0,C.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){r()}));return i&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},U=function(e){return e[0].toUpperCase()+e.slice(1)};function _(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var i=parseFloat(n.height),r=function(e,t){var n=document.createElement("div"),i=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(i,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(r);var o=window.getComputedStyle(r,null).height;document.body.removeChild(r),t=i<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}function F(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(N||(N={}));var H=(F(L={},N.BOTTOM,0),F(L,N.CONTENT,1),F(L,N.NAVI,100),F(L,N.FULLSCREEN,1e3),F(L,N.MODAL,3e3),F(L,N.PLUGINS,8e3),F(L,N.MESSAGE,1e4),F(L,N.POPPER,99999),L),B=new(function(){function e(){x(this,e),this.storageLayerIndexValue={},this.copyDefaultValue()}return R(e,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[N.MODAL]=this.storageLayerIndexValue[N.MODAL]+1,this.storageLayerIndexValue[N.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(N.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(N.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(N.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(N.NAVI)}},{key:"getPopperIndex",value:function(){return H.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,F({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,F({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(H).reduce((function(e,t){return Object.assign(e,F({},t,{value:H[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(H,e)}}]),e}());"__bk_mask_".concat(P(16));var V=new(function(){function e(){x(this,e),this.timer=null,this.store=[],this.maskMap=new WeakMap}return R(e,[{key:"appendMaker",value:function(e){this.store.push(e),this.executeMaker()}},{key:"pushMaskStyle",value:function(e,t){var n=this.getMaskMap(e);(null==n?void 0:n.styles)?n.styles.push(t):this.setMaskMap(e,Object.assign({styles:[t]},n||{}))}},{key:"getMaskStyles",value:function(e){var t;return(null===(t=this.getMaskMap(e))||void 0===t?void 0:t.styles)||[]}},{key:"setMaskId",value:function(e,t){var n=this.getMaskMap(e);n?(Object.assign(n,{id:t}),this.setMaskMap(e,n)):this.setMaskMap(e,Object.assign({id:t},n||{}))}},{key:"getMaskId",value:function(e){var t;return null===(t=this.getMaskMap(e))||void 0===t?void 0:t.id}},{key:"setMaskMap",value:function(e,t){this.maskMap.set(e,t)}},{key:"getMaskMap",value:function(e){return this.maskMap.get(e)}},{key:"executeMaker",value:function(){var e=this;this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame((function(){var t=e.store.pop();"function"==typeof t&&(Reflect.apply(t,e,[]),e.executeMaker())}))}}]),e}()),q=function(){function e(t){var n=this;x(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"},this.isInit=!1,this.maskAttrTag="auto";var i=t||{},r=i.multiInstance,o=void 0!==r&&r,s=i.maskAttrTag,a=void 0===s?"auto":s,u=i.parentNode,c=void 0===u?document.body:u,l=i.maskStyle,p=void 0===l?{}:l,f=i.onClick,d=void 0===f?null:f,h=i.popInstance,v=void 0===h?null:h;this.parentNode=c||document,this.maskAttrTag=a,this.onClick=d,this.activeInstance=void 0,this.multiInstance=o,this.popInstance=v,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),V.appendMaker((function(){n.initInstance(p)}))}return R(e,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,i=void 0===n?document.body:n,r=t.maskStyle,o=void 0===r?{}:r,s=t.onClick,a=void 0===s?null:s,u=t.maskAttrTag,c=void 0===u?this.maskAttrTag:u;this.onClick=a,this.parentNode=i||document,this.setMaskStyle(Object.assign({},this.maskStyle,o)),this.uniqueMaskAttrTag=this.getMaskAttrTag(c)}},{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=r?r:P(16),a=/-?\d+/.test("".concat(t))?t:B.getModalNextIndex(),u=Object.assign({},this.maskStyle,i||{});if(!n&&this.lastUUID){var c=this.zIndexStore.get(this.lastUUID);c&&(u=null==c?void 0:c.style)}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),Object.assign(u,{display:"block","z-index":"".concat(a),"pointer-events":"all"}),this.initInstance(u),this.catchClickEvent(),this.setMaskStyle(u),V.pushMaskStyle(this.parentNode,Object.assign({},u)),this.backupMask.style.setProperty("z-index","".concat(a-1)),n||(this.mask.style.setProperty("pointer-events","none"),null==e||e.style.setProperty("pointer-events","all")),e&&(o&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=null!=i?i:this.lastUUID;t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(r);var o=V.getMaskStyles(this.parentNode);if(null==o||o.pop(),null==o?void 0:o.length){var s=o.slice(-1)[0];this.setMaskStyle(s)}else this.mask.style.setProperty("display","none")}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"initInstance",value:function(e){if(!this.isInit){this.isInit=!0;var t=this.getMask(),n=t.instance,i=t.isExist;this.mask=n,this.backupMask=this.getBackupMask(),!i&&this.setMaskStyle(Object.assign({},this.maskStyle,e))}}},{key:"getMask",value:function(){if(this.multiInstance)return{instance:this.createMask(),isExist:!1};var e=!0,t=this.parentNode.querySelector("[data-bk-mask-uid='".concat(this.uniqueMaskAttrTag,"']"));return t||(e=!1,t=this.createMask()),{instance:t,isExist:e}}},{key:"catchClickEvent",value:function(){var e=this;this.mask&&this.mask.addEventListener("click",(function(t){return e.handleMaskClick(t)}),!0)}},{key:"removeClickEvent",value:function(){this.mask&&this.mask.removeEventListener("click",this.handleMaskClick)}},{key:"handleMaskClick",value:function(e){e.target===this.mask&&"function"==typeof this.onClick&&Reflect.apply(this.onClick,this.popInstance||this,[e])}},{key:"getBackupMask",value:function(){var e="data-bk-backup-uid",t=this.parentNode.querySelector("[".concat(e,"]"));return t||(t=this.createMask(e)),t}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?(V.getMaskId(this.parentNode)||V.setMaskId(this.parentNode,"__bk_mask_".concat(P(16))),V.getMaskId(this.parentNode)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),z=new q({}),K=function(){function e(t){x(this,e),this.popInstanceList=[],this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.bKMaskManagerInstance=new q({parentNode:this.getParentNode(null==t?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}return R(e,[{key:"getParentNode",value:function(e){if("string"==typeof e){var t=document.querySelector(e);if(t)return t}return b(e)?e:document.body}},{key:"onMaskClick",value:function(e,t){this.clickFn={fn:e,target:t}}},{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof r?r:B.getModalNextIndex(),s=P(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&this.bKMaskManagerInstance.backupActiveInstance(),this.bKMaskManagerInstance.show(e,o,t,n,s,i)}else console.warn("pop show error: content is null or undefined")}},{key:"destroy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.clickFn=void 0,this.hide(e,t)}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],i=n.zIndex,r=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;this.bKMaskManagerInstance.show(r,i,o,s,a)}else this.bKMaskManagerInstance.hide()}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var i=this.popInstanceList.findIndex((function(e){return e.uuid===n}));i>=0&&(t||this.popInstanceList[i].content.remove(),this.popInstanceList.splice(i,1),this.bKMaskManagerInstance.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(t))}else null==e||e.remove()}},{key:"onMaskClickFn",value:function(e){var t=this.clickFn.fn;t&&Reflect.apply(t,this,[e])}}]),e}(),W=new K;function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Y(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Z,J=s(8022),X=s(5798),$=function(){function e(t,n,i){var r,o;x(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(r=this.popperRefer)||void 0===r?void 0:r.parentElement,this.isShow=!!(null===(o=this.instanceOptions)||void 0===o?void 0:o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return R(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(Y(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(Y(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();b(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();b(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=g({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),i=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof i&&(i.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,X.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===i(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return b(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),Q=null,ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===Q){Q="id_".concat((0,J.v4)());var t=document.createElement("div");t.setAttribute("id",Q),t.setAttribute("data-popper-id",Q),document.body.append(t)}return"".concat(e).concat(Q)};function te(){if(void 0!==Z)return Z;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),Z=t-i}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}var re=s(210);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var o=ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}var se,ae,ue,ce,le,pe,fe,de,he,ve,ye,ge,me,ke=(0,re.createTypes)({});function be(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function Ie(){return(0,re.string)().def(ue.SHOW)}function Oe(){return(0,re.string)().def(ce.LEFT)}function Te(){return(0,re.string)().def(pe.BOTTOM)}function Me(){return(0,re.string)().def(fe.HOVER)}function Ee(){return(0,re.toType)("popRenderType",{}).def(de.SHOWN)}function Se(){return(0,re.toType)("dialogType",{default:he.OPERATION})}function we(){return(0,re.toType)("direction",{}).def(ve.HORIZONTAL)}function xe(){return(0,re.toType)("lineType",{}).def(ye.DASHED)}function Ae(){return(0,re.toType)("tagTheme",{}).def()}function je(){return(0,re.toType)("behavior",{}).def(me.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(se||(se={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(ae||(ae={})),function(e){e.IF="if",e.SHOW="show"}(ue||(ue={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(ce||(ce={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(le||(le={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(pe||(pe={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(fe||(fe={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(de||(de={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(he||(he={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(ve||(ve={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(ye||(ye={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(ge||(ge={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(me||(me={}));var Re,Le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(n,e);var t=oe(n);function n(){return x(this,n),t.apply(this,arguments)}return R(n,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,re.toType)("Size",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=["primary","warning","success","danger"];return(0,re.toType)("Theme",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=["top","left","right","bottom"];return(0,re.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t))},default:"top"})}},{key:"style",value:function(){return(0,re.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,re.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),n}(ke);function Ne(){return(0,re.toType)("selectedStyle",{}).def(Re.CHECK)}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}!function(e){e.CHECKBOX="checkbox",e.CHECK="check"}(Re||(Re={}));var Pe=Object.create({}),De=function(){},Ue=function(){return null},_e=function(e){return Object.keys(e).length<1},Fe=function(e){return e.install=function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,i=t.config.globalProperties.bkUIPrefix||n||"Bk";t.component(i+e.name,e)},e},He=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return e.install=function(r){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,s=r.config.globalProperties.bkUIPrefix||o||"Bk";i&&r.directive(s+i.name,i.directive),r.component(s+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(s+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function Be(e){return"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk","-").concat(e)}function Ve(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),r){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=i.apply(o,s))}else e=setTimeout((function(){i.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function qe(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))return ze(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}})(),a})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["vue","lodash","@popperjs/core","vue-types"],t);else{var n="object"==typeof exports?t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types")):t(e.vue,e.lodash,e["@popperjs/core"],e["vue-types"]);for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,((e,t,n,i)=>(()=>{var r={8022:(e,t,n)=>{var i=n(4481),r=n(6426),o=r;o.v1=i,o.v4=r,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,r=t;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},4481:(e,t,n)=>{var i,r,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||i,f=void 0!==e.clockseq?e.clockseq:r;if(null==p||null==f){var d=o();null==p&&(p=i=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=r=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=h-a+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,u=v,r=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var k=0;k<6;++k)l[c+k]=p[k];return t||s(l)}},6426:(e,t,n)=>{var i=n(9157),r=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||i)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||r(s)}},5798:e=>{"use strict";e.exports=n},467:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=i}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";s.r(a),s.d(a,{AlignEnum:()=>ce,BKLAYERD_INDEX_EFAULT_VALUE:()=>H,BKLAYERTYPE:()=>N,BKPopIndexManager:()=>K,BKPopover:()=>$,BkMaskManager:()=>q,DialogTypeEnum:()=>he,DirectionEnum:()=>ve,EMPTY_OBJ:()=>Pe,InputBehaviorEnum:()=>me,InputBehaviorType:()=>je,LineStyleEnum:()=>ye,PlacementEnum:()=>pe,Placements:()=>ae,PropTypes:()=>Le,RenderDirectiveEnum:()=>ue,RenderType:()=>de,SelectedType:()=>Ne,SelectedTypeEnum:()=>Re,SizeEnum:()=>se,TagThemeEnum:()=>ge,TagThemeType:()=>Ae,ThemeEnum:()=>le,TriggerEnum:()=>fe,alignType:()=>Oe,arrayEqual:()=>ze,bKMaskManager:()=>z,bkPopIndexManager:()=>W,bkZIndexManager:()=>B,capitalize:()=>U,checkOverflow:()=>_,classes:()=>Ce,clone:()=>h,debounce:()=>Ve,dialogTypeUnion:()=>Se,directionType:()=>we,elementsEqual:()=>d,filterProperty:()=>qe,finiteOrDefault:()=>p,formItemKey:()=>E,formKey:()=>M,getPopContainerId:()=>ee,hasOverflowEllipsis:()=>I,isArray:()=>u,isElement:()=>b,isEmpty:()=>o,isEmptyObj:()=>_e,isFinite:()=>l,isNullOrUndef:()=>r,isObject:()=>c,lineStyleType:()=>xe,maybeShowTooltip:()=>O,merge:()=>g,mergeIf:()=>m,mergerFn:()=>y,mergerIfFn:()=>k,noop:()=>De,observerResize:()=>D,off:()=>t,on:()=>e,placementType:()=>Te,random:()=>P,renderDirectiveType:()=>Ie,renderEmptyVNode:()=>Ue,renderType:()=>Ee,resolveClassName:()=>Be,scrollTop:()=>n,scrollbarWidth:()=>te,stringEnum:()=>be,triggerType:()=>Me,useForm:()=>S,useFormItem:()=>w,valueOrDefault:()=>f,withInstall:()=>Fe,withInstallProps:()=>He});var e=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!0)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},t=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!0)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,r=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n);!function t(n,i,o){if(n!==i){var s=n+o>i?i:n+o;n>i&&(s=n-o<i?i:n-o),e===window?window.scrollTo(s,s):e.scrollTop=s,window.requestAnimationFrame((function(){return t(s,i,o)}))}else null==r||r()}(t,n,Math.ceil(o/i*50))}function i(e){return i="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(e)}function r(e){return null==e}function o(e){return""===e||!(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])&&r(e)}function u(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function c(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var l=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function p(e,t){return l(e)?e:t}function f(e,t){return void 0===e?t:e}function d(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function h(e){if(u(e))return e.map(h);if(c(e)){for(var t=Object.create(null),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=h(e[n[r]]);return t}return e}function v(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function y(e,t,n,i){if(v(e)){var r=t[e],o=n[e];c(r)&&c(o)?g(r,o,i):t[e]=h(o)}}function g(e,t,n){var i=u(t)?t:[t],r=i.length;if(!c(e))return e;for(var o=(n=n||{}).merger||y,s=0;s<r;++s)if(c(t=i[s]))for(var a=Object.keys(t),l=0,p=a.length;l<p;++l)o(a[l],e,t,n);return e}function m(e,t){return g(e,t,{merger:k})}function k(e,t,n){if(v(e)){var i=t[e],r=n[e];c(i)&&c(r)?m(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=h(r))}}function b(e){try{return e instanceof HTMLElement}catch(t){return"object"===i(e)&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}}function I(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function O(e,t){I(e)?e.setAttribute("title",t):e.removeAttribute("title")}var T=s(748),M=Symbol("form"),E=Symbol("formItem"),S=function(){return(0,T.inject)(M)},w=function(){return(0,T.inject)(E,void 0)};function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,A(i.key),i)}}function R(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var L,N,C=s(467),P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"abcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<e;i++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(0,C.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){r()}));return i&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},U=function(e){return e[0].toUpperCase()+e.slice(1)};function _(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var i=parseFloat(n.height),r=function(e,t){var n=document.createElement("div"),i=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(i,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(r);var o=window.getComputedStyle(r,null).height;document.body.removeChild(r),t=i<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}function F(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(N||(N={}));var H=(F(L={},N.BOTTOM,0),F(L,N.CONTENT,1),F(L,N.NAVI,100),F(L,N.FULLSCREEN,1e3),F(L,N.MODAL,3e3),F(L,N.PLUGINS,8e3),F(L,N.MESSAGE,1e4),F(L,N.POPPER,99999),L),B=new(function(){function e(){x(this,e),this.storageLayerIndexValue={},this.copyDefaultValue()}return R(e,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[N.MODAL]=this.storageLayerIndexValue[N.MODAL]+1,this.storageLayerIndexValue[N.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(N.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(N.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(N.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(N.NAVI)}},{key:"getPopperIndex",value:function(){return H.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,F({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,F({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(H).reduce((function(e,t){return Object.assign(e,F({},t,{value:H[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(H,e)}}]),e}());"__bk_mask_".concat(P(16));var V=new(function(){function e(){x(this,e),this.timer=null,this.store=[],this.maskMap=new WeakMap}return R(e,[{key:"appendMaker",value:function(e){this.store.push(e),this.executeMaker()}},{key:"pushMaskStyle",value:function(e,t){var n=this.getMaskMap(e);(null==n?void 0:n.styles)?n.styles.push(t):this.setMaskMap(e,Object.assign({styles:[t]},n||{}))}},{key:"getMaskStyles",value:function(e){var t;return(null===(t=this.getMaskMap(e))||void 0===t?void 0:t.styles)||[]}},{key:"setMaskId",value:function(e,t){var n=this.getMaskMap(e);n?(Object.assign(n,{id:t}),this.setMaskMap(e,n)):this.setMaskMap(e,Object.assign({id:t},n||{}))}},{key:"getMaskId",value:function(e){var t;return null===(t=this.getMaskMap(e))||void 0===t?void 0:t.id}},{key:"setMaskMap",value:function(e,t){this.maskMap.set(e,t)}},{key:"getMaskMap",value:function(e){return this.maskMap.get(e)}},{key:"executeMaker",value:function(){var e=this;this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame((function(){var t=e.store.pop();"function"==typeof t&&(Reflect.apply(t,e,[]),e.executeMaker())}))}}]),e}()),q=function(){function e(t){var n=this;x(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"},this.isInit=!1,this.maskAttrTag="auto";var i=t||{},r=i.multiInstance,o=void 0!==r&&r,s=i.maskAttrTag,a=void 0===s?"auto":s,u=i.parentNode,c=void 0===u?document.body:u,l=i.maskStyle,p=void 0===l?{}:l,f=i.onClick,d=void 0===f?null:f,h=i.popInstance,v=void 0===h?null:h;this.parentNode=c||document,this.maskAttrTag=a,this.onClick=d,this.activeInstance=void 0,this.multiInstance=o,this.popInstance=v,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),V.appendMaker((function(){n.initInstance(p)}))}return R(e,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,i=void 0===n?document.body:n,r=t.maskStyle,o=void 0===r?{}:r,s=t.onClick,a=void 0===s?null:s,u=t.maskAttrTag,c=void 0===u?this.maskAttrTag:u;this.onClick=a,this.parentNode=i||document,this.setMaskStyle(Object.assign({},this.maskStyle,o)),this.uniqueMaskAttrTag=this.getMaskAttrTag(c)}},{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=r?r:P(16),a=/-?\d+/.test("".concat(t))?t:B.getModalNextIndex(),u=Object.assign({},this.maskStyle,i||{});if(!n&&this.lastUUID){var c=this.zIndexStore.get(this.lastUUID);c&&(u=null==c?void 0:c.style)}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),Object.assign(u,{display:"block","z-index":"".concat(a),"pointer-events":"all"}),this.initInstance(u),this.catchClickEvent(),this.setMaskStyle(u),V.pushMaskStyle(this.parentNode,Object.assign({},u)),this.backupMask.style.setProperty("z-index","".concat(a-1)),n||(this.mask.style.setProperty("pointer-events","none"),null==e||e.style.setProperty("pointer-events","all")),e&&(o&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=null!=i?i:this.lastUUID;t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(r);var o=V.getMaskStyles(this.parentNode);if(null==o||o.pop(),null==o?void 0:o.length){var s=o.slice(-1)[0];this.setMaskStyle(s)}else this.mask.style.setProperty("display","none")}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"initInstance",value:function(e){if(!this.isInit){this.isInit=!0;var t=this.getMask(),n=t.instance,i=t.isExist;this.mask=n,this.backupMask=this.getBackupMask(),!i&&this.setMaskStyle(Object.assign({},this.maskStyle,e))}}},{key:"getMask",value:function(){if(this.multiInstance)return{instance:this.createMask(),isExist:!1};var e=!0,t=this.parentNode.querySelector("[data-bk-mask-uid='".concat(this.uniqueMaskAttrTag,"']"));return t||(e=!1,t=this.createMask()),{instance:t,isExist:e}}},{key:"catchClickEvent",value:function(){var e=this;this.mask&&this.mask.addEventListener("click",(function(t){return e.handleMaskClick(t)}),!0)}},{key:"removeClickEvent",value:function(){this.mask&&this.mask.removeEventListener("click",this.handleMaskClick)}},{key:"handleMaskClick",value:function(e){e.target===this.mask&&"function"==typeof this.onClick&&Reflect.apply(this.onClick,this.popInstance||this,[e])}},{key:"getBackupMask",value:function(){var e="data-bk-backup-uid",t=this.parentNode.querySelector("[".concat(e,"]"));return t||(t=this.createMask(e)),t}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?(V.getMaskId(this.parentNode)||V.setMaskId(this.parentNode,"__bk_mask_".concat(P(16))),V.getMaskId(this.parentNode)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),z=new q({}),K=function(){function e(t){x(this,e),this.popInstanceList=[],this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.bKMaskManagerInstance=new q({parentNode:this.getParentNode(null==t?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}return R(e,[{key:"getParentNode",value:function(e){if("string"==typeof e){var t=document.querySelector(e);if(t)return t}return b(e)?e:document.body}},{key:"onMaskClick",value:function(e,t){this.clickFn={fn:e,target:t}}},{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof r?r:B.getModalNextIndex(),s=P(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&this.bKMaskManagerInstance.backupActiveInstance(),this.bKMaskManagerInstance.show(e,o,t,n,s,i)}else console.warn("pop show error: content is null or undefined")}},{key:"destroy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.clickFn=void 0,this.hide(e,t)}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],i=n.zIndex,r=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;this.bKMaskManagerInstance.show(r,i,o,s,a)}else this.bKMaskManagerInstance.hide()}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var i=this.popInstanceList.findIndex((function(e){return e.uuid===n}));i>=0&&(t||this.popInstanceList[i].content.remove(),this.popInstanceList.splice(i,1),this.bKMaskManagerInstance.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(t))}else null==e||e.remove()}},{key:"onMaskClickFn",value:function(e){if(this.clickFn){var t=this.clickFn.fn;t&&Reflect.apply(t,this,[e])}}}]),e}(),W=new K;function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Y(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Z,J=s(8022),X=s(5798),$=function(){function e(t,n,i){var r,o;x(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(r=this.popperRefer)||void 0===r?void 0:r.parentElement,this.isShow=!!(null===(o=this.instanceOptions)||void 0===o?void 0:o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return R(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(Y(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(Y(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();b(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();b(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=g({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),i=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof i&&(i.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,X.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===i(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return b(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),Q=null,ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===Q){Q="id_".concat((0,J.v4)());var t=document.createElement("div");t.setAttribute("id",Q),t.setAttribute("data-popper-id",Q),document.body.append(t)}return"".concat(e).concat(Q)};function te(){if(void 0!==Z)return Z;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),Z=t-i}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}var re=s(210);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var o=ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}var se,ae,ue,ce,le,pe,fe,de,he,ve,ye,ge,me,ke=(0,re.createTypes)({});function be(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function Ie(){return(0,re.string)().def(ue.SHOW)}function Oe(){return(0,re.string)().def(ce.LEFT)}function Te(){return(0,re.string)().def(pe.BOTTOM)}function Me(){return(0,re.string)().def(fe.HOVER)}function Ee(){return(0,re.toType)("popRenderType",{}).def(de.SHOWN)}function Se(){return(0,re.toType)("dialogType",{default:he.OPERATION})}function we(){return(0,re.toType)("direction",{}).def(ve.HORIZONTAL)}function xe(){return(0,re.toType)("lineType",{}).def(ye.DASHED)}function Ae(){return(0,re.toType)("tagTheme",{}).def()}function je(){return(0,re.toType)("behavior",{}).def(me.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(se||(se={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(ae||(ae={})),function(e){e.IF="if",e.SHOW="show"}(ue||(ue={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(ce||(ce={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(le||(le={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(pe||(pe={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(fe||(fe={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(de||(de={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(he||(he={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(ve||(ve={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(ye||(ye={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(ge||(ge={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(me||(me={}));var Re,Le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(n,e);var t=oe(n);function n(){return x(this,n),t.apply(this,arguments)}return R(n,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,re.toType)("Size",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=["primary","warning","success","danger"];return(0,re.toType)("Theme",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=["top","left","right","bottom"];return(0,re.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t))},default:"top"})}},{key:"style",value:function(){return(0,re.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,re.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),n}(ke);function Ne(){return(0,re.toType)("selectedStyle",{}).def(Re.CHECK)}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}!function(e){e.CHECKBOX="checkbox",e.CHECK="check"}(Re||(Re={}));var Pe=Object.create({}),De=function(){},Ue=function(){return null},_e=function(e){return Object.keys(e).length<1},Fe=function(e){return e.install=function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,i=t.config.globalProperties.bkUIPrefix||n||"Bk";t.component(i+e.name,e)},e},He=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return e.install=function(r){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,s=r.config.globalProperties.bkUIPrefix||o||"Bk";i&&r.directive(s+i.name,i.directive),r.component(s+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(s+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function Be(e){return"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk","-").concat(e)}function Ve(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),r){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=i.apply(o,s))}else e=setTimeout((function(){i.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function qe(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))return ze(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}})(),a})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.473",
3
+ "version": "0.0.1-beta.474",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",