16 lines
99 KiB
Java
16 lines
99 KiB
Java
|
|
import{a as Zt,cn as Et}from"./antd-vue-vendor-BPnV8VqP.js";import{ag as ve,ai as de,aj as pe,ak as me,av as ye,aw as xe,al as be,am as Ae,an as Te,ao as Ce,ap as Se,aq as we,ar as Oe,as as Ee,at as _e,au as Me,ax as Ne}from"./stackblur-es-AyqGX0Lm.js";import"./vue-vendor-C7Zq48Yl.js";var Jr=ve();function Pt(u,t,e,r,i,s,n){try{var a=u[s](n),h=a.value}catch(o){return void e(o)}a.done?t(h):Promise.resolve(h).then(r,i)}function K(u){return function(){var t=this,e=arguments;return new Promise(function(r,i){var s=u.apply(t,e);function n(h){Pt(s,r,i,n,a,"next",h)}function a(h){Pt(s,r,i,n,a,"throw",h)}n(void 0)})}}var Kr=de();var ti=pe();var ei=me();var ri=ye();var ii=xe();var si=be();var ai=Ae();var ni=Te();var Pe=Ce();const bt=Zt(Pe);var hi=Se();var Ve=we();const Ct=Zt(Ve);var oi=Oe();var ui=Ee();var li=_e();/*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Jt=function(u,t){return(Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])})(u,t)};function Kt(u,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=u}Jt(u,t),u.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Re(u){var t="";Array.isArray(u)||(u=[u]);for(var e=0;e<u.length;e++){var r=u[e];if(r.type===p.CLOSE_PATH)t+="z";else if(r.type===p.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===p.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===p.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===p.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===p.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===p.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===p.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===p.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==p.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+e+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}function St(u,t){var e=u[0],r=u[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function Q(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];for(var e=0;e<u.length;e++)if(typeof u[e]!="number")throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof u[e]+" == typeof "+u[e]);return!0}var tt=Math.PI;function At(u,t,e){u.lArcFlag=u.lArcFlag===0?0:1,u.sweepFlag=u.sweepFlag===0?0:1;var r=u.rX,i=u.rY,s=u.x,n=u.y;r=Math.abs(u.rX),i=Math.abs(u.rY);var a=St([(t-s)/2,(e-n)/2],-u.xRot/180*tt),h=a[0],o=a[1],l=Math.pow(h,2)/Math.pow(r,2)+Math.pow(o,2)/Math.pow(i,2);1<l&&(r*=Math.sqrt(l),i*=Math.sqrt(l)),u.rX=r,u.rY=i;var f=Math.pow(r,2)*Math.pow(o,2)+Math.pow(i,2)*Math.pow(h,2),c=(u.lArcFlag!==u.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-f)/f)),g=r*o/i*c,d=-i*h/r*c,v=St([g,d],u.xRot/180*tt);u.cX=v[0]+(t+s)/2,u.cY=v[1]+(e+n)/2,u.phi1=Math.atan2((o-d)/i,(h-g)/r),u.phi2=Math.atan2((-o-d)/i,(-h-g)/r),u.sweepFlag===0&&u.phi2>u.phi1&&(u.phi2-=2*tt),u.sweepFlag===1&&u.phi2<u.phi1&&(u.phi2+=2*tt),u.phi1*=180/tt,u.phi2*=180/tt}function Vt(u,t,e){Q(u,t,e);var r=u*u+t*t-e*e;if(0>r)return[];if(r===0)return[[u*e/(u*u+t*t),t*e/(u*u+t*t)]];var i=Math.sqrt(r);return[[(u*e+t*i)/(u*u+t*t),(t*e-u*i)/(u*u+t*t)],[(u*e-t*i)/(u*u+t*t),(t*e+u*i)/(u*u+t*t)]]}var I,Z=Math.PI/180;function Rt(u,t,e){return(1-e)*u+e*t}function kt(u,t,e,r){return u+Math.cos(r/180*tt)*t+Math.sin(r/180*tt)*e}function It(u,t,e,r){var i=1e-6,s=t-u,n=e-t,a=3*s+3*(r-e)-6*n,h=6*(n-s),o=3*s;return Math.abs(a)<i?[-o/h]:(function(l,f,c){c===void 0&&(c=1e-6);var g=l*l/4-f;if(g<-c)return[];if(g<=c)return[-l/2];var d=Math.sqrt(g);return[-l/2-d,-l/2+d]})(h/a,o/a,i)}function Lt(u,t,e,r,i){var s=1-i;return u*(s*s*s)+t*(3*s*s*i)+e*(3*s*i*i)+r*(i*i*i)}(function(u){function t(){return i((function(a,h,o){return a.relative&&(a.x1!==void 0&&(a.x1+=h),a.y1!==void 0&&(a.y1+=o),a.x2!==void 0&&(a.x2+=h),a.y2!==void 0&&(a.y2+=o),a.x!==void 0&&(a.x+=h),a.y!==void 0&&(a.y+=o),a.relative=!1),a}))}function e(){var a=NaN,h=NaN,o=NaN,l=NaN;return i((function(f,c,g){return f.type&p.SMOOTH_CURVE_TO&&(f.type=p.CURVE_TO,a=isNaN(a)?c:a,h=isNaN(h)?g:h,f.x1=f.relative?c-a:2*c-a,f.y1=f.relative?g-h:2*g-h),f.type&p.CURVE_TO?(a=f.relative?c+f.x2:f.x2,h=f.relative?g+f.y2:f.y2):(a=NaN,h=NaN),f.type&p.SMOOTH_QUAD_TO&&(f.type=p.QUAD_TO,o=isNaN(o)?c:o,l=isNaN(l)?g:l,f.x1=f.relative?c-o:2*c-o,f.y1=f.relative?g-l:2*g-l),f.type&p.QUAD_TO?(o=f.relative?c+f.x1:f.x1,l=f.relative?g+f.y1:f.y1):(o=NaN,l=NaN),f}))}function r(){var a=NaN,h=NaN;return i((function(o,l,f){if(o.type&p.SMOOTH_QUAD_TO&&(o.type=p.QUAD_TO,a=isNaN(a)?l:a,h=isNaN(h)?f:h,o.x1=
|
||
|
|
`},Dt=function(u){return 48<=u.charCodeAt(0)&&u.charCodeAt(0)<=57},Ie=(function(u){function t(){var e=u.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return Kt(t,u),t.prototype.finish=function(e){if(e===void 0&&(e=[]),this.parse(" ",e),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,r){var i=this;r===void 0&&(r=[]);for(var s=function(f){r.push(f),i.curArgs.length=0,i.canParseCommandOrComma=!0},n=0;n<e.length;n++){var a=e[n],h=!(this.curCommandType!==p.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),o=Dt(a)&&(this.curNumber==="0"&&a==="0"||h);if(!Dt(a)||o)if(a!=="e"&&a!=="E")if(a!=="-"&&a!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(a!=="."||this.curNumberHasExp||this.curNumberHasDecimal||h){if(this.curNumber&&this.curCommandType!==-1){var l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===p.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>l)throw new SyntaxError('Expected positive number, got "'+l+'" at index "'+n+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"')}this.curArgs.push(l),this.curArgs.length===Le[this.curCommandType]&&(p.HORIZ_LINE_TO===this.curCommandType?s({type:p.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):p.VERT_LINE_TO===this.curCommandType?s({type:p.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===p.MOVE_TO||this.curCommandType===p.LINE_TO||this.curCommandType===p.SMOOTH_QUAD_TO?(s({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),p.MOVE_TO===this.curCommandType&&(this.curCommandType=p.LINE_TO)):this.curCommandType===p.CURVE_TO?s({type:p.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===p.SMOOTH_CURVE_TO?s({type:p.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===p.QUAD_TO?s({type:p.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===p.ARC&&s({type:p.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!ke(a))if(a===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(a!=="+"&&a!=="-"&&a!==".")if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,a!=="z"&&a!=="Z")if(a==="h"||a==="H")this.curCommandType=p.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=p.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=p.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=p.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=p.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=p.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=p.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="T")this.curCommandType=p.SMO
|