var i=(o=>(o.DOM="dom",o.FULL="full",o.MINI="mini",o))(i||{}),s=(o=>(o.GEAR="Gear",o.RING="Ring",o.ZOOM="Zoom",o.PATTERN="Pattern",o.CLOCK="Clock",o.BEAN="Bean",o.ROLL="Roll",o.Circular="Circular",o.IMG="Img",o.SKELETON="Skeleton",o))(s||{});function a(){return{custom:null,html:"",type:"dom",miniClass:"mini",model:"Gear",text:"加载中...",textGap:8,fontSize:12,fontFamily:"Microsoft YaHei",delay:65,delayColse:520,optimization:!1,zIndex:"2001",themeColor:"rgba(64,158,255,1)",bgColor:"rgba(0, 0, 0, 0.8)",shadowColor:"rgba(64,158,255,0.6)",shadowOffsetX:2,shadowOffsetY:2,shadowBlur:5,pointerEvents:!1}}var c=(o=>(o.BEFORE_COLSE="beforeColse",o.COLSED="colsed",o))(c||{});class f{static info(t){this.call(t,1)}static warn(t){this.call(t,2)}static error(t){this.call(t,3)}static call(t,e=1,l={color:a().themeColor,bgColor:a().bgColor}){let r=l.bgColor;e===2&&(r="#fffbe5"),e===3&&(r="#fff0f0");const n=`
      background:${r};
      font-size:14px;
      color:${l.color};
      padding: 4px;
      border: 1px solid;`;console.log(`%c web-loading:${t} `,n)}}function d(o){return o==null}function m(o){window.requestAnimationFrame?window.cancelAnimationFrame(o):window.clearInterval(o)}function u(o){try{return Object.prototype.toString.call(o).split(" ")[1].split("]")[0].toLowerCase()}catch{return"not-type"}}export{f as $,c as H,i as L,s as M,m as c,a as g,d as i,u as t};
