1var e2,Ja;function p(e,t,i,s){var n,r=arguments.length,o=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,i):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}function l0(e,t,i,s){return new(i||(i=Promise))(function(n,r){function o(h){try{l(s.next(h))}catch(c){r(c)}}function a(h){try{l(s.throw(h))}catch(c){r(c)}}function l(h){h.done?n(h.value):(function(c){return c instanceof i?c:new i(function(u){u(c)})})(h.value).then(o,a)}l((s=s.apply(e,t||[])).next())})}(function(e){e[e.none=1]="none",e[e.free=2]="free",e[e.mirrorAngle=3]="mirrorAngle",e[e.mirror=4]="mirror"})(e2||(e2={})),typeof SuppressedError=="function"&&SuppressedError,(function(e){e[e.No=0]="No",e[e.Yes=1]="Yes",e[e.NoAndSkip=2]="NoAndSkip",e[e.YesAndSkip=3]="YesAndSkip"})(Ja||(Ja={}));const bc={};function M(e){return e===void 0}function Xt(e){return e==null}function G(e){return typeof e=="string"}const{isFinite:Qa}=Number;function $(e){return typeof e=="number"}const kc=/^-?\d+(?:\.\d+)?$/;function Bc(e){return typeof e=="string"&&kc.test(e)?+e:e}const{isArray:J}=Array;function W(e){return e&&typeof e=="object"}function Sc(e){return W(e)&&!J(e)}function Ec(e){return JSON.stringify(e)==="{}"}const K={default:(e,t)=>(pn(t,e),pn(e,t),e),assign(e,t,i){let s;Object.keys(t).forEach(n=>{var r,o;if(s=t[n],s?.constructor===Object&&((r=e[n])===null||r===void 0?void 0:r.constructor)===Object)return pn(e[n],t[n],i&&i[n]);i&&n in i?((o=i[n])===null||o===void 0?void 0:o.constructor)===Object&&pn(e[n]={},t[n],i[n]):e[n]=t[n]})},copyAttrs:(e,t,i)=>(i.forEach(s=>{M(t[s])||(e[s]=t[s])}),e),clone:e=>JSON.parse(JSON.stringify(e)),toMap(e){const t={};for(let i=0,s=e.length;i<s;i++)t[e[i]]=!0;return t},stintSet(e,t,i){i||(i=void 0),e[t]!==i&&(e[t]=i)}},{assign:pn}=K;class y4{get __useNaturalRatio(){return!0}get __isLinePath(){const{path:t}=this;return t&&t.length===6&&t[0]===1}get __usePathBox(){return this.__pathInputed}get __blendMode(){if(this.eraser&&this.eraser!=="path")return"destination-out";const{blendMode:t}=this;return t==="pass-through"?null:t}constructor(t){this.__leaf=t}__get(t){if(this.__input){const i=this.__input[t];if(!M(i))return i}return this[t]}__getData(){const t={tag:this.__leaf.tag},{__input:i}=this;let s;for(let n in this)n[0]!=="_"&&(s=i?i[n]:void 0,t[n]=M(s)?this[n]:s);return t}__setInput(t,i){this.__input||(this.__input={}),this.__input[t]=i}__getInput(t){if(this.__input){const i=this.__input[t];if(!M(i))return i}if(t!=="path"||this.__pathInputed)return this["_"+t]}__removeInput(t){this.__input&&!M(this.__input[t])&&(this.__input[t]=void 0)}__getInputData(t,i){const s={};if(t)if(J(t))for(let n of t)s[n]=this.__getInput(n);else for(let n in t)s[n]=this.__getInput(n);else{let n,r,{__input:o}=this;s.tag=this.__leaf.tag;for(let a in this)if(a[0]!=="_"&&(n=this["_"+a],!M(n))){if(a==="path"&&!this.__pathInputed)continue;r=o?o[a]:void 0,s[a]=M(r)?n:r}}if(i&&i.matrix){const{a:n,b:r,c:o,d:a,e:l,f:h}=this.__leaf.__localMatrix;s.matrix={a:n,b:r,c:o,d:a,e:l,f:h}}return s}__setMiddle(t,i){this.__middle||(this.__middle={}),this.__middle[t]=i}__getMiddle(t){return this.__middle&&this.__middle[t]}__checkSingle(){const t=this;if(t.blendMode==="pass-through"){const i=this.__leaf;t.opacity<1&&(i.isBranch||t.__hasMultiPaint)||i.__hasEraser||t.eraser||t.filter?t.__single=!0:t.__single&&(t.__single=!1)}else t.__single=!0}__removeNaturalSize(){this.__naturalWidth=this.__naturalHeight=void 0}destroy(){this.__input=this.__middle=null,this.__complexData&&this.__complexData.destroy()}}const ci={RUNTIME:"runtime",LEAF:"leaf",TASK:"task",CANVAS:"canvas",IMAGE:"image",types:{},create(e){const{types:t}=Ac;return t[e]?t[e]++:(t[e]=1,0)}},Ac=ci;let se,ne,lo;const{max:cs}=Math,ho=[0,0,0,0],nn={zero:[...ho],tempFour:ho,set:(e,t,i,s,n)=>(i===void 0&&(i=s=n=t),e[0]=t,e[1]=i,e[2]=s,e[3]=n,e),setTemp:(e,t,i,s)=>fn(ho,e,t,i,s),toTempAB(e,t,i){lo=i?$(e)?t:e:[],$(e)?(se=i2(e),ne=t):$(t)?(se=e,ne=i2(t)):(se=e,ne=t),se.length!==4&&(se=co(se)),ne.length!==4&&(ne=co(ne))},get(e,t){let i;if(!$(e))switch(e.length){case 4:i=M(t)?e:[...e];break;case 2:i=[e[0],e[1],e[0],e[1]];break;case 3:i=[e[0],e[1],e[2],e[1]];break;case 1:e=e[0];break;default:e=0}if(i||(i=[e,e,e,e]),!M(t))for(let s=0;s<4;s++)i[s]>t&&(i[s]=t);return i},max:(e,t,i)=>$(e)&&$(t)?cs(e,t):(s2(e,t,i),fn(lo,cs(se[0],ne[0]),cs(se[1],ne[1]),cs(se[2],ne[2]),cs(se[3],ne[3]))
1),add:(e,t,i)=>$(e)&&$(t)?e+t:(s2(e,t,i),fn(lo,se[0]+ne[0],se[1]+ne[1],se[2]+ne[2],se[3]+ne[3])),swapAndScale(e,t,i,s){if($(e))return t===i?e*t:[e*i,e*t];const n=s?e:[],[r,o,a,l]=e.length===4?e:co(e);return fn(n,a*i,l*t,r*i,o*t)}},{set:fn,get:co,setTemp:i2,toTempAB:s2}=nn,{round:Tc,pow:Rc,max:Lc,floor:Fc,PI:F1}=Math,uo={},_t={within:(e,t,i)=>(W(t)&&(i=t.max,t=t.min),!M(t)&&e<t&&(e=t),!M(i)&&e>i&&(e=i),e),fourNumber:nn.get,formatRotation:(e,t)=>(e%=360,t?e<0&&(e+=360):(e>180&&(e-=360),e<-180&&(e+=360)),_t.float(e)),getGapRotation(e,t,i=0){let s=e+i;if(t>1){const n=Math.abs(s%t);(n<1||n>t-1)&&(s=Math.round(s/t)*t)}return s-i},float(e,t){const i=M(t)?1e12:Rc(10,t);return(e=Tc(e*i)/i)===-0?0:e},sign:e=>e<0?-1:1,getScaleData(e,t,i,s){if(s||(s={}),t){const n=($(t)?t:t.width||0)/i.width,r=($(t)?t:t.height||0)/i.height;s.scaleX=n||r||1,s.scaleY=r||n||1}else e&&_t.assignScale(s,e);return s},getScaleFixedData(e,t,i,s,n){let{scaleX:r,scaleY:o}=e;if((s||t)&&(r<0&&(r=-r),o<0&&(o=-o)),t)if(t===!0)r=o=i?1:1/r;else{let a;$(t)?a=t:t==="zoom-in"&&(a=1),a&&(r=o=r>a||o>a?i?1:1/r:i?1:1/a)}return uo.scaleX=r,uo.scaleY=o,uo},assignScale(e,t){$(t)?e.scaleX=e.scaleY=t:(e.scaleX=t.x,e.scaleY=t.y)},getFloorScale:(e,t=1)=>Lc(Fc(e),t)/e,randInt:_n,randColor:e=>`rgba(${_n(255)},${_n(255)},${_n(255)},${e||1})`};function _n(e){return Math.round(Math.random()*e)}const ht=F1/180,ke=2*F1,I0=F1/2;function Qp(){return{x:0,y:0}}function tf(){return{x:0,y:0,width:0,height:0}}function Pc(){return{a:1,b:0,c:0,d:1,e:0,f:0}}const{sin:go,cos:po,acos:yn,sqrt:fo}=Math,{float:g0}=_t,p0={};function n2(){return Object.assign(Object.assign(Object.assign({},{a:1,b:0,c:0,d:1,e:0,f:0}),{x:0,y:0,width:0,height:0}),{scaleX:1,scaleY:1,rotation:0,skewX:0,skewY:0})}const q={defaultMatrix:{a:1,b:0,c:0,d:1,e:0,f:0},defaultWorld:n2(),tempMatrix:{},set(e,t=1,i=0,s=0,n=1,r=0,o=0){e.a=t,e.b=i,e.c=s,e.d=n,e.e=r,e.f=o},get:Pc,getWorld:n2,copy(e,t){e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e.e=t.e,e.f=t.f},translate(e,t,i){e.e+=t,e.f+=i},translateInner(e,t,i,s){e.e+=e.a*t+e.c*i,e.f+=e.b*t+e.d*i,s&&(e.e-=t,e.f-=i)},scale(e,t,i=t){e.a*=t,e.b*=t,e.c*=i,e.d*=i},pixelScale(e,t,i){i||(i=e),i.a=e.a*t,i.b=e.b*t,i.c=e.c*t,i.d=e.d*t,i.e=e.e*t,i.f=e.f*t},scaleOfOuter(e,t,i,s){Lt.toInnerPoint(e,t,p0),Lt.scaleOfInner(e,p0,i,s)},scaleOfInner(e,t,i,s=i){Lt.translateInner(e,t.x,t.y),Lt.scale(e,i,s),Lt.translateInner(e,-t.x,-t.y)},rotate(e,t){const{a:i,b:s,c:n,d:r}=e,o=po(t*=ht),a=go(t);e.a=i*o-s*a,e.b=i*a+s*o,e.c=n*o-r*a,e.d=n*a+r*o},rotateOfOuter(e,t,i){Lt.toInnerPoint(e,t,p0),Lt.rotateOfInner(e,p0,i)},rotateOfInner(e,t,i){Lt.translateInner(e,t.x,t.y),Lt.rotate(e,i),Lt.translateInner(e,-t.x,-t.y)},skew(e,t,i){const{a:s,b:n,c:r,d:o}=e;i&&(i*=ht,e.a=s+r*i,e.b=n+o*i),t&&(t*=ht,e.c=r+s*t,e.d=o+n*t)},skewOfOuter(e,t,i,s){Lt.toInnerPoint(e,t,p0),Lt.skewOfInner(e,p0,i,s)},skewOfInner(e,t,i,s=0){Lt.translateInner(e,t.x,t.y),Lt.skew(e,i,s),Lt.translateInner(e,-t.x,-t.y)},multiply(e,t){const{a:i,b:s,c:n,d:r,e:o,f:a}=e;e.a=t.a*i+t.b*n,e.b=t.a*s+t.b*r,e.c=t.c*i+t.d*n,e.d=t.c*s+t.d*r,e.e=t.e*i+t.f*n+o,e.f=t.e*s+t.f*r+a},multiplyParent(e,t,i,s,n){const{e:r,f:o}=e;if(i||(i=e),M(s)&&(s=e.a!==1||e.b||e.c||e.d!==1),s){const{a,b:l,c:h,d:c}=e;i.a=a*t.a+l*t.c,i.b=a*t.b+l*t.d,i.c=h*t.a+c*t.c,i.d=h*t.b+c*t.d,n&&(i.scaleX=t.scaleX*n.scaleX,i.scaleY=t.scaleY*n.scaleY)}else i.a=t.a,i.b=t.b,i.c=t.c,i.d=t.d,n&&(i.scaleX=t.scaleX,i.scaleY=t.scaleY);i.e=r*t.a+o*t.c+t.e,i.f=r*t.b+o*t.d+t.f},divide(e,t){Lt.multiply(e,Lt.tempInvert(t))},divideParent(e,t){Lt.multiplyParent(e,Lt.tempInvert(t))},tempInvert(e){const{tempMatrix:t}=Lt;return Lt.copy(t,e),Lt.invert(t),t},invert(e){const{a:t,b:i,c:s,d:n,e:r,f:o}=e;if(i||s){const a=1/(t*n-i*s);e.a=n*a,e.b=-i*a,e.c=-s*a,e.d=t*a,e.e=-(r*n-o*s)*a,e.f=-(o*t-r*i)*a}else if(t===1&&n===1)e.e=-r,e.f=-o;else{const a=1/(t*n);e.a=n*a,e.d=t*a,e.e=-r*n*a,e.f=-o*t*a}},toOuterPoint(e,t,i,s){const{x:n,y:r}=t;i||(i=t),i.x=n*e.a+r*e.c,i.y=n*e.b+r*e.d,s||(i.x+=e.e,i.y+=e.f)},toInnerPoint(e,t,i,s){const{a:n,b:r,c:o,d:a}=e,l=1/(n*a-r*o),{x:h,y:c}=t;if(i||(i=t),i.x=(h*a-c*o)*l,i.y=(c*n-h*r)*l,!s){const{e:u,f:g}=e;i.x-=(u*a-g*o)*l,i.y-=(g*n-u*r)*l}},setLayout(e,t,i,s,n){const{x:r,y:o,scaleX:a,scaleY:l}=t;if(M(n)&&(n=t.rotation||t.skewX||t.skewY),n){const{rotation:h,skewX:c,skewY:u}
1=t,g=h*ht,d=po(g),f=go(g);if(c||u){const _=c*ht,y=u*ht;e.a=(d+y*-f)*a,e.b=(f+y*d)*a,e.c=(_*d-f)*l,e.d=(d+_*f)*l}else e.a=d*a,e.b=f*a,e.c=-f*l,e.d=d*l}else e.a=a,e.b=0,e.c=0,e.d=l;e.e=r,e.f=o,(i=i||s)&&Lt.translateInner(e,-i.x,-i.y,!s)},getLayout(e,t,i,s){const{a:n,b:r,c:o,d:a,e:l,f:h}=e;let c,u,g,d,f,_=l,y=h;if(r||o){const x=n*a-r*o;if(o&&!s){c=fo(n*n+r*r),u=x/c;const v=n/c;g=r>0?yn(v):-yn(v)}else{u=fo(o*o+a*a),c=x/u;const v=o/u;g=I0-(a>0?yn(-v):-yn(v))}const m=g0(po(g)),w=go(g);c=g0(c),u=g0(u),d=m?g0((o/u+w)/m/ht,9):0,f=m?g0((r/c-w)/m/ht,9):0,g=g0(g/ht)}else c=n,u=a,g=d=f=0;return(t=i||t)&&(_+=t.x*n+t.y*o,y+=t.x*r+t.y*a,i||(_-=t.x,y-=t.y)),{x:_,y,scaleX:c,scaleY:u,rotation:g,skewX:d,skewY:f}},withScale(e,t,i=t){const s=e;if(!t||!i){const{a:n,b:r,c:o,d:a}=e;r||o?i=(n*a-r*o)/(t=fo(n*n+r*r)):(t=n,i=a)}return s.scaleX=t,s.scaleY=i,s},reset(e){Lt.set(e)}},Lt=q,{float:mn}=_t,{toInnerPoint:_o,toOuterPoint:r2}=q,{sin:o2,cos:a2,abs:l2,sqrt:Mc,atan2:Dc,min:Oc,round:xn}=Math,R={defaultPoint:{x:0,y:0},tempPoint:{},tempRadiusPoint:{},set(e,t=0,i=0){e.x=t,e.y=i},setRadius(e,t,i){e.radiusX=t,e.radiusY=M(i)?t:i},copy(e,t){e.x=t.x,e.y=t.y},copyFrom(e,t,i){e.x=t,e.y=i},round(e,t){e.x=t?xn(e.x-.5)+.5:xn(e.x),e.y=t?xn(e.y-.5)+.5:xn(e.y)},move(e,t,i){W(t)?(e.x+=t.x,e.y+=t.y):(e.x+=t,e.y+=i)},scale(e,t,i=t){e.x&&(e.x*=t),e.y&&(e.y*=i)},scaleOf(e,t,i,s=i){e.x+=(e.x-t.x)*(i-1),e.y+=(e.y-t.y)*(s-1)},rotate(e,t,i,s=1,n=1){i||(i=e0.defaultPoint);const r=a2(t*=ht),o=o2(t),a=(e.x-i.x)/s,l=(e.y-i.y)/n;e.x=i.x+(a*r-l*o)*s,e.y=i.y+(a*o+l*r)*n},tempToInnerOf(e,t){const{tempPoint:i}=e0;return wn(i,e),_o(t,i,i),i},tempToOuterOf(e,t){const{tempPoint:i}=e0;return wn(i,e),r2(t,i,i),i},tempToInnerRadiusPointOf(e,t){const{tempRadiusPoint:i}=e0;return wn(i,e),e0.toInnerRadiusPointOf(e,t,i),i},copyRadiusPoint:(e,t,i,s)=>(wn(e,t),Ic(e,i,s),e),toInnerRadiusPointOf(e,t,i){i||(i=e),_o(t,e,i),i.radiusX=Math.abs(e.radiusX/t.scaleX),i.radiusY=Math.abs(e.radiusY/t.scaleY)},toInnerOf(e,t,i){_o(t,e,i)},toOuterOf(e,t,i){r2(t,e,i)},toVertical(e,t,i,s){const n=t*ht;e.x+=-Math.sin(n)*i,e.y+=Math.cos(n)*i},getCenter:(e,t)=>({x:e.x+(t.x-e.x)/2,y:e.y+(t.y-e.y)/2}),getCenterX:(e,t)=>e+(t-e)/2,getCenterY:(e,t)=>e+(t-e)/2,getDistance:(e,t)=>yo(e.x,e.y,t.x,t.y),getDistanceFrom(e,t,i,s){const n=l2(i-e),r=l2(s-t);return Mc(n*n+r*r)},getMinDistanceFrom:(e,t,i,s,n,r)=>Oc(yo(e,t,i,s),yo(i,s,n,r)),getAngle:(e,t,i,s)=>h2(e,t,i,s)/ht,getRotation:(e,t,i,s)=>(s||(s=t),e0.getRadianFrom(e.x,e.y,t.x,t.y,i.x,i.y,s.x,s.y)/ht),getRadianFrom(e,t,i,s,n,r,o,a){M(o)&&(o=i,a=s);const l=e-i,h=t-s,c=n-o,u=r-a;return Math.atan2(l*u-h*c,l*c+h*u)},getAtan2:(e,t,i=1,s=1)=>Dc((t.y-e.y)/s,(t.x-e.x)/i),getDistancePoint(e,t,i,s,n){const r=h2(e,t);return n&&(e=t),s||(t={}),t.x=e.x+a2(r)*i,t.y=e.y+o2(r)*i,t},toNumberPoints(e){let t=e;return W(e[0])&&(t=[],e.forEach(i=>t.push(i.x,i.y))),t},isSame:(e,t,i)=>i?e.x===t.x&&e.y===t.y:mn(e.x)===mn(t.x)&&mn(e.y)===mn(t.y),reset(e){e.x=e.y=0}},e0=R,{getDistanceFrom:yo,copy:wn,setRadius:Ic,getAtan2:h2}=e0;class K0{constructor(t,i){this.set(t,i)}set(t,i){return W(t)?R.copy(this,t):R.set(this,t,i),this}get(){const{x:t,y:i}=this;return{x:t,y:i}}clone(){return new K0(this)}move(t,i){return R.move(this,t,i),this}scale(t,i){return R.scale(this,t,i),this}scaleOf(t,i,s){return R.scaleOf(this,t,i,s),this}rotate(t,i,s,n){return R.rotate(this,t,i,s,n),this}rotateOf(t,i,s,n){return R.rotate(this,i,t,s,n),this}getRotation(t,i,s){return R.getRotation(this,t,i,s)}toInnerOf(t,i){return R.toInnerOf(this,t,i),this}toOuterOf(t,i){return R.toOuterOf(this,t,i),this}getCenter(t){return new K0(R.getCenter(this,t))}getDistance(t){return R.getDistance(this,t)}getDistancePoint(t,i,s,n){return new K0(R.getDistancePoint(this,t,i,s,n))}getAngle(t,i,s){return R.getAngle(this,t,i,s)}getAtan2(t,i,s){return R.getAtan2(this,t,i,s)}isSame(t,i){return R.isSame(this,t,i)}reset(){return R.reset(this),this}}const ef=new K0;class Kt{constructor(t,i,s,n,r,o){this.set(t,i,s,n,r,o)}set(t,i,s,n,r,o){return W(t)?q.copy(this,t):q.set(this,t,i,s,n,r,o),this}setWith(t){return q.copy(this,t),this.scaleX=t.scaleX,this.scaleY=t.
1scaleY,this}get(){const{a:t,b:i,c:s,d:n,e:r,f:o}=this;return{a:t,b:i,c:s,d:n,e:r,f:o}}clone(){return new Kt(this)}translate(t,i){return q.translate(this,t,i),this}translateInner(t,i){return q.translateInner(this,t,i),this}scale(t,i){return q.scale(this,t,i),this}scaleWith(t,i){return q.scale(this,t,i),this.scaleX*=t,this.scaleY*=i||t,this}pixelScale(t){return q.pixelScale(this,t),this}scaleOfOuter(t,i,s){return q.scaleOfOuter(this,t,i,s),this}scaleOfInner(t,i,s){return q.scaleOfInner(this,t,i,s),this}rotate(t){return q.rotate(this,t),this}rotateOfOuter(t,i){return q.rotateOfOuter(this,t,i),this}rotateOfInner(t,i){return q.rotateOfInner(this,t,i),this}skew(t,i){return q.skew(this,t,i),this}skewOfOuter(t,i,s){return q.skewOfOuter(this,t,i,s),this}skewOfInner(t,i,s){return q.skewOfInner(this,t,i,s),this}multiply(t){return q.multiply(this,t),this}multiplyParent(t){return q.multiplyParent(this,t),this}divide(t){return q.divide(this,t),this}divideParent(t){return q.divideParent(this,t),this}invert(){return q.invert(this),this}invertWith(){return q.invert(this),this.scaleX=1/this.scaleX,this.scaleY=1/this.scaleY,this}toOuterPoint(t,i,s){q.toOuterPoint(this,t,i,s)}toInnerPoint(t,i,s){q.toInnerPoint(this,t,i,s)}setLayout(t,i,s){return q.setLayout(this,t,i,s),this}getLayout(t,i,s){return q.getLayout(this,t,i,s)}withScale(t,i){return q.withScale(this,t,i)}reset(){return q.reset(this),this}}const sf=new Kt,rn={tempPointBounds:{},setPoint(e,t,i){e.minX=e.maxX=t,e.minY=e.maxY=i},addPoint(e,t,i){e.minX=t<e.minX?t:e.minX,e.minY=i<e.minY?i:e.minY,e.maxX=t>e.maxX?t:e.maxX,e.maxY=i>e.maxY?i:e.maxY},addBounds(e,t,i,s,n){c2(e,t,i),c2(e,t+s,i+n)},copy(e,t){e.minX=t.minX,e.minY=t.minY,e.maxX=t.maxX,e.maxY=t.maxY},addPointBounds(e,t){e.minX=t.minX<e.minX?t.minX:e.minX,e.minY=t.minY<e.minY?t.minY:e.minY,e.maxX=t.maxX>e.maxX?t.maxX:e.maxX,e.maxY=t.maxY>e.maxY?t.maxY:e.maxY},toBounds(e,t){t.x=e.minX,t.y=e.minY,t.width=e.maxX-e.minX,t.height=e.maxY-e.minY}},{addPoint:c2}=rn;var t1,ts;(function(e){e[e.top=0]="top",e[e.right=1]="right",e[e.bottom=2]="bottom",e[e.left=3]="left"})(t1||(t1={})),(function(e){e[e.topLeft=0]="topLeft",e[e.top=1]="top",e[e.topRight=2]="topRight",e[e.right=3]="right",e[e.bottomRight=4]="bottomRight",e[e.bottom=5]="bottom",e[e.bottomLeft=6]="bottomLeft",e[e.left=7]="left",e[e.center=8]="center",e[e["top-left"]=0]="top-left",e[e["top-right"]=2]="top-right",e[e["bottom-right"]=4]="bottom-right",e[e["bottom-left"]=6]="bottom-left"})(ts||(ts={}));const P1=[{x:0,y:0},{x:.5,y:0},{x:1,y:0},{x:1,y:.5},{x:1,y:1},{x:.5,y:1},{x:0,y:1},{x:0,y:.5},{x:.5,y:.5}];P1.forEach(e=>e.type="percent");const Qt={directionData:P1,tempPoint:{},get:d2,toPoint(e,t,i,s,n,r){const o=d2(e);i.x=o.x,i.y=o.y,o.type==="percent"&&(i.x*=t.width,i.y*=t.height,n&&(r||(i.x-=n.x,i.y-=n.y),o.x&&(i.x-=o.x===1?n.width:o.x===.5?o.x*n.width:0),o.y&&(i.y-=o.y===1?n.height:o.y===.5?o.y*n.height:0))),s||(i.x+=t.x,i.y+=t.y)},getPoint:(e,t,i,s=!0)=>(i||(i={}),Qt.toPoint(e,t,i,s),i)};function d2(e){return G(e)?P1[ts[e]]:e}const{toPoint:Wc}=Qt,M1={toPoint(e,t,i,s,n,r){Wc(e,i,s,n,t,r)}},{tempPointBounds:gi,setPoint:u2,addPoint:vn,toBounds:g2}=rn,{toOuterPoint:Cn}=q,{float:bn,fourNumber:zc}=_t,{floor:p2,ceil:kn}=Math;let Ye,Ue,Di,Oi;const ti={},we={},Ii={},L={tempBounds:Ii,set(e,t=0,i=0,s=0,n=0){e.x=t,e.y=i,e.width=s,e.height=n},copy(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},copyAndSpread(e,t,i,s,n){const{x:r,y:o,width:a,height:l}=t;if(J(i)){const h=zc(i);s?yt.set(e,r+h[3],o+h[0],a-h[1]-h[3],l-h[2]-h[0]):yt.set(e,r-h[3],o-h[0],a+h[1]+h[3],l+h[2]+h[0])}else s&&(i=-i),yt.set(e,r-i,o-i,a+2*i,l+2*i);n&&(n==="width"?(e.y=o,e.height=l):(e.x=r,e.width=a))},minX:e=>e.width>0?e.x:e.x+e.width,minY:e=>e.height>0?e.y:e.y+e.height,maxX:e=>e.width>0?e.x+e.width:e.x,maxY:e=>e.height>0?e.y+e.height:e.y,move(e,t,i){e.x+=t,e.y+=i},scroll(e,t){e.x+=t.scrollX,e.y+=t.scrollY},getByMove:(e,t,i)=>(e=Object.assign({},e),yt.move(e,t,i),e),toOffsetOutBounds(e,t,i){t?_2(t,e):t=e,i||(i=e),t.offsetX=yt.maxX(i),t.offsetY=yt.maxY(i),yt.move(t,-t.offsetX,-t.offsetY)},scale(e,t,i=t,s){s||R.scale(e,t,i),e.width*=t,e.height*=i},scaleOf(e,t,i,s=i){R.scaleOf(e,t,i,s),e.width*=i,e.height*=s},tempToOuterOf:(e,t)=>(yt.copy(Ii,e),yt.toOuterOf(Ii,t),Ii),getOuterOf:(e,t)=>
1(e=Object.assign({},e),yt.toOuterOf(e,t),e),toOuterOf(e,t,i){if(i||(i=e),t.b===0&&t.c===0){const{a:s,d:n,e:r,f:o}=t;s>0?(i.width=e.width*s,i.x=r+e.x*s):(i.width=e.width*-s,i.x=r+e.x*s-i.width),n>0?(i.height=e.height*n,i.y=o+e.y*n):(i.height=e.height*-n,i.y=o+e.y*n-i.height)}else ti.x=e.x,ti.y=e.y,Cn(t,ti,we),u2(gi,we.x,we.y),ti.x=e.x+e.width,Cn(t,ti,we),vn(gi,we.x,we.y),ti.y=e.y+e.height,Cn(t,ti,we),vn(gi,we.x,we.y),ti.x=e.x,Cn(t,ti,we),vn(gi,we.x,we.y),g2(gi,i)},toInnerOf(e,t,i){i||(i=e),yt.move(i,-t.e,-t.f),yt.scale(i,1/t.a,1/t.d)},getFitMatrix(e,t,i=1){const s=Math.min(i,yt.getFitScale(e,t));return new Kt(s,0,0,s,-t.x*s,-t.y*s)},getFitScale(e,t,i){const s=e.width/t.width,n=e.height/t.height;return i?Math.max(s,n):Math.min(s,n)},put(e,t,i="center",s=1,n=!0,r){r||(r=t),G(s)&&(s=yt.getFitScale(e,t,s==="cover")),Ii.width=n?t.width*=s:t.width*s,Ii.height=n?t.height*=s:t.height*s,M1.toPoint(i,Ii,e,r,!0,!0)},getSpread(e,t,i){const s={};return yt.copyAndSpread(s,e,t,!1,i),s},spread(e,t,i){yt.copyAndSpread(e,e,t,!1,i)},shrink(e,t,i){yt.copyAndSpread(e,e,t,!0,i)},ceil(e){const{x:t,y:i}=e;e.x=p2(e.x),e.y=p2(e.y),e.width=t>e.x?kn(e.width+t-e.x):kn(e.width),e.height=i>e.y?kn(e.height+i-e.y):kn(e.height)},unsign(e){e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)},float(e,t){e.x=bn(e.x,t),e.y=bn(e.y,t),e.width=bn(e.width,t),e.height=bn(e.height,t)},add(e,t,i){Ye=e.x+e.width,Ue=e.y+e.height,Di=t.x,Oi=t.y,i||(Di+=t.width,Oi+=t.height),Ye=Ye>Di?Ye:Di,Ue=Ue>Oi?Ue:Oi,e.x=e.x<t.x?e.x:t.x,e.y=e.y<t.y?e.y:t.y,e.width=Ye-e.x,e.height=Ue-e.y},addList(e,t){yt.setListWithFn(e,t,void 0,!0)},setList(e,t,i=!1){yt.setListWithFn(e,t,void 0,i)},addListWithFn(e,t,i){yt.setListWithFn(e,t,i,!0)},setListWithFn(e,t,i,s=!1){let n,r=!0;for(let o=0,a=t.length;o<a;o++)n=i?i(t[o],o):t[o],n&&(n.width||n.height)&&(r?(r=!1,s||_2(e,n)):f2(e,n));r&&yt.reset(e)},setPoints(e,t){t.forEach((i,s)=>s===0?u2(gi,i.x,i.y):vn(gi,i.x,i.y)),g2(gi,e)},setPoint(e,t){yt.set(e,t.x,t.y)},addPoint(e,t){f2(e,t,!0)},getPoints(e){const{x:t,y:i,width:s,height:n}=e;return[{x:t,y:i},{x:t+s,y:i},{x:t+s,y:i+n},{x:t,y:i+n}]},getPoint:(e,t,i=!1,s)=>Qt.getPoint(t,e,s,i),hitRadiusPoint:(e,t,i)=>(i&&(t=R.tempToInnerRadiusPointOf(t,i)),t.x>=e.x-t.radiusX&&t.x<=e.x+e.width+t.radiusX&&t.y>=e.y-t.radiusY&&t.y<=e.y+e.height+t.radiusY),hitPoint:(e,t,i)=>(i&&(t=R.tempToInnerOf(t,i)),t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height),hit:(e,t,i)=>(i&&(t=yt.tempToOuterOf(t,i)),!(e.y+e.height<t.y||t.y+t.height<e.y||e.x+e.width<t.x||t.x+t.width<e.x)),includes:(e,t,i)=>(i&&(t=yt.tempToOuterOf(t,i)),e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height),getIntersectData(e,t,i){if(i&&(t=yt.tempToOuterOf(t,i)),!yt.hit(e,t))return{x:0,y:0,width:0,height:0};let{x:s,y:n,width:r,height:o}=t;return Ye=s+r,Ue=n+o,Di=e.x+e.width,Oi=e.y+e.height,s=s>e.x?s:e.x,n=n>e.y?n:e.y,Ye=Ye<Di?Ye:Di,Ue=Ue<Oi?Ue:Oi,r=Ye-s,o=Ue-n,{x:s,y:n,width:r,height:o}},intersect(e,t,i){yt.copy(e,yt.getIntersectData(e,t,i))},isSame:(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEmpty:e=>e.x===0&&e.y===0&&e.width===0&&e.height===0,hasSize:e=>e.width&&e.height,reset(e){yt.set(e)}},yt=L,{add:f2,copy:_2}=yt;class nt{get minX(){return L.minX(this)}get minY(){return L.minY(this)}get maxX(){return L.maxX(this)}get maxY(){return L.maxY(this)}constructor(t,i,s,n){this.set(t,i,s,n)}set(t,i,s,n){return W(t)?L.copy(this,t):L.set(this,t,i,s,n),this}get(){const{x:t,y:i,width:s,height:n}=this;return{x:t,y:i,width:s,height:n}}clone(){return new nt(this)}move(t,i){return L.move(this,t,i),this}scale(t,i,s){return L.scale(this,t,i,s),this}scaleOf(t,i,s){return L.scaleOf(this,t,i,s),this}toOuterOf(t,i){return L.toOuterOf(this,t,i),this}toInnerOf(t,i){return L.toInnerOf(this,t,i),this}getFitMatrix(t,i){return L.getFitMatrix(this,t,i)}put(t,i,s){L.put(this,t,i,s)}spread(t,i){return L.spread(this,t,i),this}shrink(t,i){return L.shrink(this,t,i),this}ceil(){return L.ceil(this),this}unsign(){return L.unsign(this),this}float(t){return L.float(this,t),this}add(t){return L.add(this,t),this}addList(t){return L.setList(this,t,!0),this}setList(t){return L.setList(this,t),this}addListWithFn(t,i){return L.setListWithFn(this,t,i,!0),this}setListWithFn(t,i){return L.setListWithFn(this,t,i),this}setPoint(t){return L.setPoint(this,t),this}setPoints(t){return L.setPoints(this,t),this}addPoint(t){return L.addPoint(this,t),this}getPoints(){return L.getPoints(this)}getPoint(t,i,s){return L.getPoint(this,t,i,s)}hitPoint(t,i){return L.hitPoint(this,t,i)}hitRadiusPoint(t,i){return L.hitRadiusPoint(this,t,i)}hit(t,i){return L.hit(this,t,i)}includes(t,i){return L.includes(this,t,i)}intersect(t,i){return L.intersect(this,t,i),this}getIntersect(t,i){return new nt(L.getIntersectData(this,t,i))}isSame(t){return L.isSame(this,t)}isEmpty(){return L.isEmpty(this)}reset(){L.reset(this)}}const r0=new nt;class Hc{constructor(t,i,s,n,r,o){W(t)?this.copy(t):this.set(t,i,s,n,r,o)}set(t=0,i=0,s=0,n=0,r=0,o=0){this.top=t,this.right=i,this.bottom=s,this.left=n,this.width=r,this.height=o}copy(t){const{top:i,right:s,bottom:n,left:r,width:o,height:a}=t;this.set(i,s,n,r,o,a)}getBoundsFrom(t){const{top:i,right:s,bottom:n,left:r,width:o,height:a}=this;return new nt(r,i,o||t.width-r-s,a||t.height-i-n)}}const m4={number:(e,t)=>W(e)?e.type==="percent"?e.value*t:e.value:e},Xc={0:1,1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,".":1,e:1,E:1},{floor:y2,max:m2}=Math,A={toURL(e,t){let i=encodeURIComponent(e);return t==="text"?i="data:text/plain;charset=utf-8,"+i:t==="svg"&&(i="data:image/svg+xml,"+i),i},image:{hitCanvasSize:100,maxCacheSize:4096e3,maxPatternSize:8847360,crossOrigin:"anonymous",isLarge:(e,t,i,s)=>e.width*e.height*(t?t*i:1)>(s||ds.maxCacheSize),isSuperLarge:(e,t,i)=>ds.isLarge(e,t,i,ds.maxPatternSize),getRealURL(e){const{prefix:t,suffix:i}=ds;return!i||e.startsWith("data:")||e.startsWith("blob:")||(e+=(e.includes("?")?"&":"?")+i),t&&e[0]==="/"&&(e=t+e),e},resize(e,t,i,s,n,r,o,a,l,h){const c=m2(y2(t+(s||0)),1),u=m2(y2(i+(n||0)),1);let g,d,f;h&&(f=m4.number(h.offset,h.type==="x"?t:i))&&(h.type==="x"?g=!0:d=!0);const _=A.origin.createCanvas(d?2*c:c,g?2*u:u),y=_.getContext("2d");
1if(a&&(y.globalAlpha=a),y.imageSmoothingEnabled=o!==!1,ds.canUse(e)){if(r){const x=t/r.width,m=i/r.height;y.setTransform(x,0,0,m,-r.x*x,-r.y*m),y.drawImage(e,0,0,e.width,e.height)}else y.drawImage(e,0,0,t,i);f&&(y.drawImage(_,0,0,c,u,g?f-c:c,g?u:f-u,c,u),y.drawImage(_,0,0,c,u,g?f:c,g?u:f,c,u))}return _},canUse:e=>e&&e.width&&!e.__closed,setPatternTransform(e,t,i){try{t&&e.setTransform&&(e.setTransform(t),t=void 0)}catch{}i&&K.stintSet(i,"transform",t)}}},{image:ds}=A,{randColor:x2}=_t;class rt{constructor(t){this.repeatMap={},this.name=t}static get(t){return new rt(t)}static set filter(t){this.filterList=w2(t)}static set exclude(t){this.excludeList=w2(t)}static drawRepaint(t,i){const s=x2();t.fillWorld(i,s.replace("1)",".1)")),t.strokeWorld(i,s)}static drawBounds(t,i,s){const n=rt.showBounds==="hit",r=t.__nowWorld,o=x2();n&&(i.setWorld(r),t.__drawHitPath(i),i.fillStyle=o.replace("1)",".2)"),i.fill()),i.resetTransform(),i.setStroke(o,2),n?i.stroke():i.strokeWorld(r,o)}log(...t){if(Wi.enable){if(Wi.filterList.length&&Wi.filterList.every(i=>i!==this.name)||Wi.excludeList.length&&Wi.excludeList.some(i=>i===this.name))return;console.log("%c"+this.name,"color:#21ae62",...t)}}tip(...t){Wi.enable&&this.warn(...t)}warn(...t){Wi.showWarn&&console.warn(this.name,...t)}repeat(t,...i){this.repeatMap[t]||(this.warn("repeat:"+t,...i),this.repeatMap[t]=!0)}error(...t){try{throw new Error}catch(i){console.error(this.name,...t,i)}}}function w2(e){return e?G(e)&&(e=[e]):e=[],e}rt.filterList=[],rt.excludeList=[],rt.showWarn=!0;const Wi=rt,Yc=rt.get("RunTime"),ye={currentId:0,currentName:"",idMap:{},nameMap:{},nameToIdMap:{},start(e,t){const i=ci.create(ci.RUNTIME);return ve.currentId=ve.idMap[i]=t?performance.now():Date.now(),ve.currentName=ve.nameMap[i]=e,ve.nameToIdMap[e]=i,i},end(e,t){const i=ve.idMap[e],s=ve.nameMap[e],n=t?(performance.now()-i)/1e3:Date.now()-i;ve.idMap[e]=ve.nameMap[e]=ve.nameToIdMap[s]=void 0,Yc.log(s,n,"ms")},endOfName(e,t){const i=ve.nameToIdMap[e];M(i)||ve.end(i,t)}},ve=ye,x4=[],ot={list:{},add(e,...t){this.list[e]=!0,x4.push(...t)},has(e,t){const i=this.list[e];return!i&&t&&this.need(e),i},need(e){console.error("please install and import plugin: "+(e.includes("-x")?"":"@leafer-in/")+e)}};setTimeout(()=>x4.forEach(e=>ot.has(e,!0)));const bt={editor:e=>ot.need("editor")},v2=rt.get("UICreator"),on={list:{},register(e){const{__tag:t}=e.prototype;Bn[t]&&v2.repeat(t),Bn[t]=e},get(e,t,i,s,n,r){if(!Bn[e])return void v2.warn("not register "+e);const o=new Bn[e](t);return M(i)||(o.x=i,s&&(o.y=s),n&&(o.width=n),r&&(o.height=r)),o}},{list:Bn}=on,Uc=rt.get("EventCreator"),es={nameList:{},register(e){let t;Object.keys(e).forEach(i=>{t=e[i],G(t)&&(us[t]&&Uc.repeat(t),us[t]=e)})},changeName(e,t){const i=us[e];if(i){const s=Object.keys(i).find(n=>i[n]===e);s&&(i[s]=t,us[t]=i)}},has(e){return!!this.nameList[e]},get:(e,...t)=>new us[e](...t)},{nameList:us}=es;class w4{constructor(){this.list=[]}add(t){t.manager=this,this.list.push(t)}get(t){let i;const{list:s}=this;for(let r=0,o=s.length;r<o;r++)if(i=s[r],i.recycled&&i.isSameSize(t))return i.recycled=!1,i.manager||(i.manager=this),i;const n=bt.canvas(t);return this.add(n),n}recycle(t){t.recycled=!0}clearRecycled(){let t;const i=[];for(let s=0,n=this.list.length;s<n;s++)t=this.list[s],t.recycled?t.destroy():i.push(t);this.list=i}clear(){this.list.forEach(t=>{t.destroy()}),this.list.length=0}destroy(){this.clear()}}function St(e){return(t,i)=>{e||(e=i);const s={get(){return this.context[e]},set(n){this.context[e]=n}};i==="strokeCap"&&(s.set=function(n){this.context[e]=n==="none"?"butt":n}),Object.defineProperty(t,i,s)}}const v4=[];function ft(){return(e,t)=>{v4.push(t)}}const Nc=[];let H=class{set blendMode(e){e==="normal"&&(e="source-over"),this.context.globalCompositeOperation=e}get blendMode(){return this.context.globalCompositeOperation}set dashPattern(e){this.context.setLineDash(e||Nc)}get dashPattern(){return this.context.getLineDash()}__bindContext(){let e;v4.forEach(t=>{e=this.context[t],e&&(this[t]=e.bind(this.context))}),this.textBaseline="alphabetic"}setTransform(e,t,i,s,n,r){}resetTransform(){}getTransform(){}save(){}restore(){}transform(e,t,i,s,n,r){W(e)?this.context.transform(e.a,e.b,e.c,e.d,e.e,e.f):this.context.transform(e,t,i,s,n,r)}translate(e,t){}scale(e,t){}rotate(e){}fill(e,t){}stroke(e){}clip(e,t){}fillRect(e,t,i,s){}strokeRect(e,t,i,s){}clearRect(e,t,i,s){}drawImage(e,t,i,s,n,r,o,a,l){switch(arguments.length){case 9:if(t<0){const h=-t/s*a;s+=t,t=0,r+=h,a-=h}if(i<0){const h=-i/n*l;n+=i,i=0,o+=h,l-=h}this.context.drawImage(e,t,i,s,n,r,o,a,l);break;case 5:this.context.drawImage(e,t,i,s,n);break;case 3:this.context.drawImage(e,t,i)}}beginPath(){}moveTo(e,t){}lineTo(e,t){}bezierCurveTo(e,t,i,s,n,r){}quadraticCurveTo(e,t,i,s){}closePath(){}arc(e,t,i,s,n,r){}arcTo(e,t,i,s,n){}ellipse(e,t,i,s,n,r,o,a){}rect(e,t,i,s){}roundRect(e,t,i,s,n){}createConicGradient(e,t,i){}createLinearGradient(e,t,i,s){}createPattern(e,t){}createRadialGradient(e,t,i,s,n,r){}fillText(e,t,i,s){}measureText(e){}strokeText(e,t,i,s){}destroy(){this.context=null}};p([St("imageSmoothingEnabled")],H.prototype,"smooth",void 0),p([St("imageSmoothingQuality")],H.prototype,"smoothLevel",void 0),p([St("globalAlpha")],H.prototype,"opacity",void 0),p([St()],H.prototype,"fillStyle",void 0),p([St()],H.prototype,"strokeStyle",void 0),p([St("lineWidth")],H.prototype,"strokeWidth",void 0),p([St("lineCap")],H.prototype,"strokeCap",void 0),p([St("lineJoin")],H.prototype,"strokeJoin",void 0),p([St("lineDashOffset")],H.prototype,"dashOffset",void 0),p([St()],H.prototype,"miterLimit",void 0),p([St()],H.prototype,"shadowBlur",void 0),p([St()],H.prototype,"shadowColor",void 0),p([St()],H.prototype,"shadowOffsetX",void 0),p([St()],H.prototype,"shadowOffsetY",void 0),p([St()],H.prototype,"filter",void 0),p([St()],H.prototype,"font",void 0),p([St()],H.prototype,"fontKerning",void 0),p([St()],H.prototype,"fontStretch",void 0),p([St()],H.prototype,"fontVariantCaps",void 0),p([St()],H.prototype,"textAlign",void 0),p([St()],H.prototype,"textBaseline",void 0),p([St()],H.prototype,"textRendering",void 0),p([St()],H.prototype,"wordSpacing",void 0),p([St()],H.prototype,"letterSpacing",void 0),p([St()],H.prototype,"direction",void 0),p([ft()],H.prototype,"setTransform",null),p([ft()],H.prototype,"resetTransform",null),p([ft()],H.prototype,"getTransform",null),p([ft()],H.prototype,"save",null),p([ft()],H.prototype,"restore",null),p([ft()],H.prototype,"translate",null),p([ft()],H.prototype,"scale",null),p([ft()],H.prototype,"rotate",null),p([ft()],H.prototype,"fill",null),p([ft()],H.prototype,"stroke",null),p([ft()],H.prototype,"clip",null),p([ft()],H.prototype,"fillRect",null),p([ft()],H.prototype,"strokeRect",null),p([ft()],H.prototype,"clearRect",null),p([ft()],H.prototype,"beginPath",null),p([ft()],H.prototype,"moveTo",null),p([ft()],H.prototype,"lineTo",null),p([ft()],H.prototype,"bezierCurveTo",null),p([ft()],H.prototype,"quadraticCurveTo",null),p([ft()],H.prototype,"closePath",null),p([ft()],H.prototype,"arc",null),p([ft()],H.prototype,"arcTo",null),p([ft()],H.prototype,"ellipse",null),p([ft()],H.prototype,"rect",null),p([ft()],H.prototype,"roundRect",null),p([ft()],H.prototype,"createConicGradient",null),p([ft()],H.prototype,"createLinearGradient",null),p([ft()],H.prototype,"createPattern",null),p([ft()],H.prototype,"createRadialGradient",null),p([ft()],H.prototype,"fillText",null),p([ft()],H.prototype,"measureText",null),p([ft()],H.prototype,"strokeText",null);const{copy:jc,multiplyParent:Vc,pixelScale:Gc}=q,{round:Sn}=Math,lt=new nt,C2=new nt,qc={width:1,height:1,pixelRatio:1},De=["width","height","pixelRatio"];class D1 extends H{get width(){return this.size.width}get height(){return this.size.height}get pixelRatio(){return this.size.pixelRatio}get pixelWidth(){return this.width*this.pixelRatio||0}get pixelHeight(){return this.height*this.pixelRatio||0}get pixelSnap(){return this.config.pixelSnap}set pixelSnap(t){this.config.pixelSnap=t}
1get allowBackgroundColor(){return this.view&&this.parentView}constructor(t,i){super(),this.size={},this.worldTransform={},t||(t=qc),this.manager=i,this.innerId=ci.create(ci.CANVAS);const{width:s,height:n,pixelRatio:r}=t;this.autoLayout=!s||!n,this.size.pixelRatio=r||A.devicePixelRatio,this.config=t,this.init()}init(){}__createContext(){const{view:t}=this,{contextSettings:i}=this.config;this.context=i?t.getContext("2d",i):t.getContext("2d"),this.__bindContext()}export(t,i){}toBlob(t,i){}toDataURL(t,i){}saveAs(t,i){}resize(t,i=!0){if(this.isSameSize(t))return;let s;this.context&&!this.unreal&&i&&this.width&&(s=this.getSameCanvas(),s.copyWorld(this));const n=this.size;K.copyAttrs(n,t,De),De.forEach(r=>n[r]||(n[r]=1)),this.bounds=new nt(0,0,this.width,this.height),this.updateViewSize(),this.updateClientBounds(),this.context&&(this.smooth=this.config.smooth,!this.unreal&&s&&(this.clearWorld(s.bounds),this.copyWorld(s),s.recycle()))}updateViewSize(){}updateClientBounds(){}getClientBounds(t){return t&&this.updateClientBounds(),this.clientBounds||this.bounds}startAutoLayout(t,i){}stopAutoLayout(){}setCursor(t){}setWorld(t,i){const{pixelRatio:s,pixelSnap:n}=this,r=this.worldTransform;i&&Vc(t,i,r),Gc(t,s,r),n&&!t.ignorePixelSnap&&(t.half&&t.half*s%2?(r.e=Sn(r.e-.5)+.5,r.f=Sn(r.f-.5)+.5):(r.e=Sn(r.e),r.f=Sn(r.f))),this.setTransform(r.a,r.b,r.c,r.d,r.e,r.f)}useWorldTransform(t){t&&(this.worldTransform=t);const i=this.worldTransform;i&&this.setTransform(i.a,i.b,i.c,i.d,i.e,i.f)}setStroke(t,i,s,n){i&&(this.strokeWidth=i),t&&(this.strokeStyle=t),s&&this.setStrokeOptions(s,n)}setStrokeOptions(t,i){let{strokeCap:s,strokeJoin:n,dashPattern:r,dashOffset:o,miterLimit:a}=t;i&&(i.strokeCap&&(s=i.strokeCap),i.strokeJoin&&(n=i.strokeJoin),M(i.dashPattern)||(r=i.dashPattern),M(i.dashOffset)||(o=i.dashOffset),i.miterLimit&&(a=i.miterLimit)),this.strokeCap=s,this.strokeJoin=n,this.dashPattern=r,this.dashOffset=o,this.miterLimit=a}saveBlendMode(t){this.savedBlendMode=this.blendMode,this.blendMode=t}restoreBlendMode(){this.blendMode=this.savedBlendMode}hitFill(t,i){return!0}hitStroke(t,i){return!0}hitPixel(t,i,s=1){return!0}setWorldShadow(t,i,s,n){const{pixelRatio:r}=this;this.shadowOffsetX=t*r,this.shadowOffsetY=i*r,this.shadowBlur=s*r,this.shadowColor=n||"black"}setWorldBlur(t){const{pixelRatio:i}=this;this.filter=`blur(${t*i}px)`}copyWorld(t,i,s,n,r){n&&(this.blendMode=n),i?(this.setTempPixelBounds(i,r),s?(this.setTempPixelBounds2(s,r),s=C2):s=lt,this.drawImage(t.view,lt.x,lt.y,lt.width,lt.height,s.x,s.y,s.width,s.height)):this.drawImage(t.view,0,0),n&&(this.blendMode="source-over")}copyWorldToInner(t,i,s,n,r){i.b||i.c?(this.save(),this.resetTransform(),this.copyWorld(t,i,L.tempToOuterOf(s,i),n,r),this.restore()):(n&&(this.blendMode=n),this.setTempPixelBounds(i,r),this.drawImage(t.view,lt.x,lt.y,lt.width,lt.height,s.x,s.y,s.width,s.height),n&&(this.blendMode="source-over"))}copyWorldByReset(t,i,s,n,r,o){this.resetTransform(),this.copyWorld(t,i,s,n,o),r||this.useWorldTransform()}useGrayscaleAlpha(t){if(this.setTempPixelBounds(t,!0,!0),!lt.width||!lt.height)return;let i,s;const{context:n}=this,r=n.getImageData(lt.x,lt.y,lt.width,lt.height),{data:o}=r;for(let a=0,l=o.length;a<l;a+=4)s=.299*o[a]+.587*o[a+1]+.114*o[a+2],(i=o[a+3])&&(o[a+3]=i===255?s:i*(s/255));n.putImageData(r,lt.x,lt.y)}useMask(t,i,s){this.copyWorld(t,i,s,"destination-in")}useEraser(t,i,s){this.copyWorld(t,i,s,"destination-out")}fillWorld(t,i,s,n){s&&(this.blendMode=s),this.fillStyle=i,this.setTempPixelBounds(t,n),this.fillRect(lt.x,lt.y,lt.width,lt.height),s&&(this.blendMode="source-over")}strokeWorld(t,i,s,n){s&&(this.blendMode=s),this.strokeStyle=i,this.setTempPixelBounds(t,n),this.strokeRect(lt.x,lt.y,lt.width,lt.height),s&&(this.blendMode="source-over")}clipWorld(t,i=!0){this.beginPath(),this.setTempPixelBounds(t,i),this.rect(lt.x,lt.y,lt.width,lt.height),this.clip()}clipUI(t){t.windingRule?this.clip(t.windingRule):this.clip()}clearWorld(t,i=!0){this.setTempPixelBounds(t,i),this.clearRect(lt.x,lt.y,lt.width,lt.height)}clear(){const{pixelRatio:t}=this;this.clearRect(0,0,this.width*t+2,this.height*t+2)}setTempPixelBounds(t,i,s){this.copyToPixelBounds(lt,t,i,s)}setTempPixelBounds2(t,i,s){this.copyToPixelBounds(C2,t,i,s)}
1copyToPixelBounds(t,i,s,n){t.set(i),n&&t.intersect(this.bounds),t.scale(this.pixelRatio),s&&t.ceil()}isSameSize(t){return this.width===t.width&&this.height===t.height&&(!t.pixelRatio||this.pixelRatio===t.pixelRatio)}getSameCanvas(t,i){const{size:s,pixelSnap:n}=this,r=this.manager?this.manager.get(s):bt.canvas(Object.assign({},s));return r.save(),t&&(jc(r.worldTransform,this.worldTransform),r.useWorldTransform()),i&&(r.smooth=this.smooth),r.pixelSnap!==n&&(r.pixelSnap=n),r}recycle(t){this.recycled||(this.restore(),t?this.clearWorld(t):this.clear(),this.manager?this.manager.recycle(this):this.destroy())}updateRender(t){}unrealCanvas(){}destroy(){this.manager=this.view=this.parentView=null}}const Ke={creator:{},parse(e,t){},convertToCanvasData(e,t){}},C4={N:21,D:22,X:23,G:24,F:25,O:26,P:27,U:28},Ut=Object.assign({M:1,m:10,L:2,l:20,H:3,h:30,V:4,v:40,C:5,c:50,S:6,s:60,Q:7,q:70,T:8,t:80,A:9,a:90,Z:11,z:11,R:12},C4),b4={M:3,m:3,L:3,l:3,H:2,h:2,V:2,v:2,C:7,c:7,S:5,s:5,Q:5,q:5,T:3,t:3,A:8,a:8,Z:1,z:1,N:5,D:9,X:6,G:9,F:5,O:7,P:4,U:6},k4={m:10,l:20,H:3,h:30,V:4,v:40,c:50,S:6,s:60,q:70,T:8,t:80,A:9,a:90},Kc=Object.assign(Object.assign({},k4),C4),Dr=Ut,B4={};for(let e in Dr)B4[Dr[e]]=e;const an={};for(let e in Dr)an[Dr[e]]=b4[e];const S4={drawRoundRect(e,t,i,s,n,r){const o=_t.fourNumber(r,Math.min(s/2,n/2)),a=t+s,l=i+n;o[0]?e.moveTo(t+o[0],i):e.moveTo(t,i),o[1]?e.arcTo(a,i,a,l,o[1]):e.lineTo(a,i),o[2]?e.arcTo(a,l,t,l,o[2]):e.lineTo(a,l),o[3]?e.arcTo(t,l,t,i,o[3]):e.lineTo(t,l),o[0]?e.arcTo(t,i,a,i,o[0]):e.lineTo(t,i)}},{sin:f0,cos:gs,hypot:b2,atan2:k2,ceil:Zc,abs:mo,PI:B2,sqrt:S2,pow:En}=Math,{setPoint:xo,addPoint:An}=rn,{set:Tn,toNumberPoints:$c}=R,{M:E2,L:wo,C:vo,Q:A2,Z:Jc}=Ut,Co={},ue={points(e,t,i,s){let n=$c(t);if(e.push(E2,n[0],n[1]),i&&n.length>5){let r,o,a,l,h,c,u,g,d,f,_,y,x,m,w,v=n.length;const b=i===!0?.5:i;s&&(n=[n[v-2],n[v-1],...n,n[0],n[1],n[2],n[3]],v=n.length);for(let S=2;S<v-2;S+=2)r=n[S-2],o=n[S-1],a=n[S],l=n[S+1],h=n[S+2],c=n[S+3],_=a-r,y=l-o,x=S2(En(_,2)+En(y,2)),m=S2(En(h-a,2)+En(c-l,2)),(x||m)&&(w=x+m,x=b*x/w,m=b*m/w,h-=r,c-=o,u=a-x*h,g=l-x*c,S===2?s||e.push(A2,u,g,a,l):(_||y)&&e.push(vo,d,f,u,g,a,l),d=a+m*h,f=l+m*c);s||e.push(A2,d,f,n[v-2],n[v-1])}else for(let r=2,o=n.length;r<o;r+=2)e.push(wo,n[r],n[r+1]);s&&e.push(Jc)},rect(e,t,i,s,n){Ke.creator.path=e,Ke.creator.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+n).lineTo(t,i+n).lineTo(t,i)},roundRect(e,t,i,s,n,r){Ke.creator.path=[],S4.drawRoundRect(Ke.creator,t,i,s,n,r),e.push(...Ke.convertToCanvasData(Ke.creator.path,!0))},arcTo(e,t,i,s,n,r,o,a,l,h,c){const u=s-t,g=n-i,d=r-s,f=o-n;let _=k2(g,u),y=k2(f,d);const x=b2(u,g),m=b2(d,f);let w=y-_;if(w<0&&(w+=ke),x<1e-12||m<1e-12||w<1e-12||mo(w-B2)<1e-12)return e&&e.push(wo,s,n),l&&(xo(l,t,i),An(l,s,n)),c&&Tn(c,t,i),void(h&&Tn(h,s,n));const v=u*f-d*g<0,b=v?-1:1,S=a/gs(w/2),B=s+S*gs(_+w/2+I0*b),P=n+S*f0(_+w/2+I0*b);return _-=I0*b,y-=I0*b,L2(e,B,P,a,a,0,_/ht,y/ht,v,l,h,c)},arc:(e,t,i,s,n,r,o,a,l,h)=>L2(e,t,i,s,s,0,n,r,o,a,l,h),ellipse(e,t,i,s,n,r,o,a,l,h,c,u){const g=r*ht,d=f0(g),f=gs(g);let _=o*ht,y=a*ht;_>B2&&(_-=ke),y<0&&(y+=ke);let x=y-_;x<0?x+=ke:x>ke&&(x-=ke),l&&(mo(a-o)===360?x=-ke:x-=ke);const m=Zc(mo(x/I0)),w=x/m,v=f0(w/4),b=8/3*v*v/f0(w/2);y=_+w;let S,B,P,U,Y,T,z,E,I=gs(_),N=f0(_),V=P=f*s*I-d*n*N,et=U=d*s*I+f*n*N,pt=t+P,st=i+U;e&&e.push(e.length?wo:E2,pt,st),h&&xo(h,pt,st),u&&Tn(u,pt,st);for(let ge=0;ge<m;ge++)S=gs(y),B=f0(y),P=f*s*S-d*n*B,U=d*s*S+f*n*B,Y=t+V-b*(f*s*N+d*n*I),T=i+et-b*(d*s*N-f*n*I),z=t+P+b*(f*s*B+d*n*S),E=i+U+b*(d*s*B-f*n*S),e&&e.push(vo,Y,T,z,E,t+P,i+U),h&&R2(t+V,i+et,Y,T,z,E,t+P,i+U,h,!0),V=P,et=U,I=S,N=B,_=y,y+=w;c&&Tn(c,t+P,i+U)},quadraticCurveTo(e,t,i,s,n,r,o){e.push(vo,(t+2*s)/3,(i+2*n)/3,(r+2*s)/3,(o+2*n)/3,r,o)},toTwoPointBoundsByQuadraticCurve(e,t,i,s,n,r,o,a){R2(e,t,(e+2*i)/3,(t+2*s)/3,(n+2*i)/3,(r+2*s)/3,n,r,o,a)},toTwoPointBounds(e,t,i,s,n,r,o,a,l,h){const c=[];let u,g,d,f,_,y,x,m,w=e,v=i,b=n,S=o;for(let B=0;B<2;++B)if(B==1&&(w=t,v=s,b=r,S=a),u=-3*w+9*v-9*b+3*S,g=6*w-12*v+6*b,d=3*v-3*w,Math.abs(u)<1e-12){if(Math.abs(g)<1e-12)continue;f=-d/g,0<f&&f<1&&c.push(f)}else x=g*g-4*d*u,m=Math.sqrt(x),x<0||(_=(-g+m)/(2*u),0<_&&_<1&&c.push(_),y=(-g-m)/(2*u),0<y&&y<1&&c.push(y));h?An(l,e,t):xo(l,e,t),An(l,o,a);for(let B=0,P=c.length;B<P;B++)T2(c[B],e,t,i,s,n,r,o,a,Co),An(l,Co.x,Co.y)},getPointAndSet(e,t,i,s,n,r,o,a,l,h){const c=1-e,u=c*c*c,g=3*c*c*e,d=3*c*e*e,f=e*e*e;h.x=u*t+g*s+d*r+f*a,h.y=u*i+g*n+d*o+f*l},getPoint(e,t,i,s,n,r,o,a,l){const h={};return T2(e,t,i,s,n,r,o,a,l,h),h},getDerivative(e,t,i,s,n){const r=1-e;return 3*r*r*(i-t)+6*r*e*(s-i)+3*e*e*(n-s)},cut(e,t,i,s,n,r,o,a,l){if(e<=0)return{left:null,right:[s,n,r,o,a,l]};if(e>=1)return{left:[s,n,r,o,a,l],right:null};const h=1-e,c=t*h+s*e,u=i*h+n*e,g=s*h+r*e,d=n*h+o*e,f=r*h+a*e,_=o*h+l*e,y=c*h+g*e,x=u*h+d*e,m=g*h+f*e,w=d*h+_*e;return{left:[c,u,y,x,y*h+m*e,x*h+w*e],right:[m,w,f,_,a,l]}}},{getPointAndSet:T2,toTwoPointBounds:R2,ellipse:L2}=ue,{sin:Qc,cos:t6,sqrt:F2,atan2:P2}=Math,{ellipse:e6}=ue,i6={ellipticalArc(e,t,i,s,n,r,o,a,l,h,c){const u=(l-t)/2,g=(h-i)/2,d=r*ht,f=Qc(d),_=t6(d),y=-_*u-f*g,x=-_*g+f*u,m=s*s,w=n*n,v=x*x,b=y*y,S=m*w-m*v-w*b;let B=0;if(S<0){const V=F2(1-S/(m*w));s*=V,n*=V}else B=(o===a?-1:1)*F2(S/(m*v+w*b));const P=B*s*x/n,U=-B*n*y/s,Y=P2((x-U)/n,(y-P)/s),T=P2((-x-U)/n,(-y-P)/s);let z=T-Y;a===0&&z>0?z-=ke:a===1&&z<0&&(z+=ke);const E=t+u+_*P-f*U,I=i+g+f*P+_*U,N=z<0?1:0;c||A.ellipseToCurve?e6(e,E,I,s,n,r,Y/ht,T/ht,N):s!==n||r?e.push(Ut.G,E,I,s,n,r,Y/ht,T/ht,N):e.push(Ut.O,E,I,s,Y/ht,T/ht,N)}},s6={toCommand:e=>[],toNode:(e,t)=>[]},{M:bo,m:n6,L:ps,l:r6,H:o6,h:a6,V:l6,v:h6,C:_0,c:c6,S:ko,s:d6,Q:y0,q:u6,T:Bo,t:g6,A:p6,a:f6,Z:So,z:_6,N:y6,D:m6,X:x6,G:w6,F:v6,O:C6,P:b6,U:k6}=Ut,{rect:B6,roundRect:M2,arcTo:S6,arc:D2,ellipse:O2,quadraticCurveTo:I2}=ue,{ellipticalArc:E6}=i6,A6=rt.get("PathConvert"),ei={},Fi={current:{dot:0},stringify(e,t){let i,s,n,r=0,o=e.length,a="";for(;r<o;){s=e[r],i=an[s],a+=s===n?" ":B4[s];for(let l=1;l<i;l++)a+=_t.float(e[r+l],t),l===i-1||(a+=" ");n=s,r+=i}return a},parse(e,t){let i,s,n,r="";const o=[],a=t?Kc:k4;for(let l=0,h=e.length;l<h;l++)s=e[l],Xc[s]?(s==="."&&(re.dot&&(zi(o,r),r=""),re.dot++),r==="0"&&s!=="."&&(zi(o,r),r=""),r+=s):Ut[s]?(r&&(zi(o,r),r=""),re.name=Ut[s],re.length=b4[s],re.index=0,zi(o,re.name),s==="m"?re.name=Ut.l:s==="M"&&(re.name=Ut.L),!i&&a[s]&&(i=!0)):s==="-"||s==="+"?n==="e"||n==="E"?r+=s:(r&&zi(o,r),r=s):r&&(zi(o,r),r=""),n=s;return r&&zi(o,r),i?Fi.toCanvasData(o,t):o},toCanvasData(e,t){let i,s,n,r,o,a=0,l=0,h=0,c=0,u=0,g=0,d=0,f=e.length;const _=[];for(;d<f;){switch(n=e[d],n){case n6:e[d+1]+=a,e[d+2]+=l;case bo:a=u=e[d+1],l=g=e[d+2],_.push(bo,a,l),d+=3;break;case a6:e[d+1]+=a;case o6:a=e[d+1],_.push(ps,a,l),d+=2;break;case h6:e[d+1]+=l;case l6:l=e[d+1],_.push(ps,a,l),d+=2;break;case r6:e[d+1]+=a,e[d+2]+=l;case ps:a=e[d+1],l=e[d+2],_.push(ps,a,l),d+=3;break;case d6:e[d+1]+=a,e[d+2]+=l,e[d+3]+=a,e[d+4]+=l,n=ko;case ko:o=r===_0||r===ko,h=o?2*a-i:a,c=o?2*l-s:l,i=e[d+1],s=e[d+2],a=e[d+3],l=e[d+4],_.push(_0,h,c,i,s,a,l),d+=5;break;case c6:e[d+1]+=a,e[d+2]+=l,e[d+3]+=a,e[d+4]+=l,e[d+5]+=a,e[d+6]+=l,n=_0;case _0:i=e[d+3],s=e[d+4],a=e[d+5],l=e[d+6],_.push(_0,e[d+1],e[d+2],i,s,a,l),d+=7;break;case g6:e[d+1]+=a,e[d+2]+=l,n=Bo;case Bo:o=r===y0||r===Bo,i=o?2*a-i:a,s=o?2*l-s:l,t?I2(_,a,l,i,s,e[d+1],e[d+2]):_.push(y0,i,s,e[d+1],e[d+2]),a=e[d+1],l=e[d+2],d+=3;break;case u6:e[d+1]+=a,e[d+2]+=l,e[d+3]+=a,e[d+4]+=l,n=y0;case y0:i=e[d+1],s=e[d+2],t?I2(_,a,l,i,s,e[d+3],e[d+4]):_.push(y0,i,s,e[d+3],e[d+4]),a=e[d+3],l=e[d+4],d+=5;break;case f6:e[d+6]+=a,e[d+7]+=l;case p6:E6(_,a,l,e[d+1],e[d+2],e[d+3],e[d+4],e[d+5],e[d+6],e[d+7],t),a=e[d+6],l=e[d+7],d+=8;break;case _6:case So:_.push(So),a=u,l=g,d++;break;case y6:a=e[d+1],l=e[d+2],t?B6(_,a,l,e[d+3],e[d+4]):pi(_,e,d,5),d+=5;break;case m6:a=e[d+1],l=e[d+2],t?M2(_,a,l,e[d+3],e[d+4],[e[d+5],e[d+6],e[d+7],e[d+8]]):pi(_,e,d,9),d+=9;break;case x6:a=e[d+1],l=e[d+2],t?M2(_,a,l,e[d+3],e[d+4],e[d+5]):pi(_,e,d,6),d+=6;break;case w6:O2(t?_:pi(_,e,d,9),e[d+1],e[d+2],e[d+3],e[d+4],e[d+5],e[d+6],e[d+7],e[d+8],null,ei),a=ei.x,l=ei.y,d+=9;break;case v6:t?O2(_,e[d+1],e[d+2],e[d+3],e[d+4],0,0,360,!1):pi(_,e,d,5),a=e[d+1]+e[d+3],l=e[d+2],d+=5;break;case C6:D2(t?_:pi(_,e,d,7),e[d+1],e[d+2],e[d+3],e[d+4],e[d+5],e[d+6],null,ei),a=ei.x,l=ei.y,d+=7;break;case b6:t?D2(_,e[d+1],e[d+2],e[d+3],0,360,!1):pi(_,e,d,4),a=e[d+1]+e[d+3],l=e[d+2],d+=4;break;case k6:S6(t?_:pi(_,e,d,6),a,l,e[d+1],e[d+2],e[d+3],e[d+4],e[d+5],null,ei),a=ei.x,l=ei.y,d+=6;break;default:return A6.error(`command: ${n} [index:${d}]`,e),_}r=n}return _},objectToCanvasData(e){if(e[0].name.length>1)return s6.toCommand(e);{const t=[];return e.forEach(i=>
1{switch(i.name){case"M":t.push(bo,i.x,i.y);break;case"L":t.push(ps,i.x,i.y);break;case"C":t.push(_0,i.x1,i.y1,i.x2,i.y2,i.x,i.y);break;case"Q":t.push(y0,i.x1,i.y1,i.x,i.y);break;case"Z":t.push(So)}}),t}},copyData(e,t,i,s){for(let n=i,r=i+s;n<r;n++)e.push(t[n])},pushData(e,t){re.index===re.length&&(re.index=1,e.push(re.name)),e.push(Number(t)),re.index++,re.dot=0}},{current:re,pushData:zi,copyData:pi}=Fi,{M:Eo,L:T6,C:R6,Q:L6,Z:F6,N:W2,D:P6,X:M6,G:D6,F:O6,O:I6,P:W6,U:z6}=Ut,{getMinDistanceFrom:H6,getRadianFrom:X6}=R,{tan:Y6,min:z2,abs:U6}=Math,m0={},E4=rt.get("PointsCurve"),Pi={pointsCurveList:{},beginPath(e){e.length=0},moveTo(e,t,i){e.push(Eo,t,i)},lineTo(e,t,i){e.push(T6,t,i)},bezierCurveTo(e,t,i,s,n,r,o){e.push(R6,t,i,s,n,r,o)},quadraticCurveTo(e,t,i,s,n){e.push(L6,t,i,s,n)},closePath(e){e.push(F6)},rect(e,t,i,s,n){e.push(W2,t,i,s,n)},roundRect(e,t,i,s,n,r){if($(r))e.push(M6,t,i,s,n,r);else{const o=_t.fourNumber(r);o?e.push(P6,t,i,s,n,...o):e.push(W2,t,i,s,n)}},ellipse(e,t,i,s,n,r,o,a,l){if(s===n)return H2(e,t,i,s,o,a,l);Xt(r)?e.push(O6,t,i,s,n):(Xt(o)&&(o=0),Xt(a)&&(a=360),e.push(D6,t,i,s,n,r,o,a,l?1:0))},arc(e,t,i,s,n,r,o){Xt(n)?e.push(W6,t,i,s):(Xt(n)&&(n=0),Xt(r)&&(r=360),e.push(I6,t,i,s,n,r,o?1:0))},arcTo(e,t,i,s,n,r,o,a,l){if(!M(o)){const h=H6(o,a,t,i,s,n)/(l?1:2);r=z2(r,z2(h,h*U6(Y6(X6(o,a,t,i,s,n)/2))))}e.push(z6,t,i,s,n,r)},drawEllipse(e,t,i,s,n,r,o,a,l){ue.ellipse(null,t,i,s,n,Xt(r)?0:r,Xt(o)?0:o,Xt(a)?360:a,l,null,null,m0),e.push(Eo,m0.x,m0.y),N6(e,t,i,s,n,r,o,a,l)},drawArc(e,t,i,s,n,r,o){ue.arc(null,t,i,s,Xt(n)?0:n,Xt(r)?360:r,o,null,null,m0),e.push(Eo,m0.x,m0.y),H2(e,t,i,s,n,r,o)},drawPoints(e,t,i,s,n){let r="Q";W(i)&&(r=i.type,i=i.value),Or[r]||(E4.warn("not found:",r),r="Q"),Or[r](e,t,i,s,n)}},{ellipse:N6,arc:H2,pointsCurveList:Or}=Pi;function j6(e,t){Or[e]&&E4.repeat(e),Or[e]=t}j6("Q",ue.points);const{moveTo:V6,lineTo:G6,quadraticCurveTo:q6,bezierCurveTo:K6,closePath:Z6,beginPath:$6,rect:J6,roundRect:Q6,ellipse:td,arc:ed,arcTo:id,drawEllipse:sd,drawArc:nd,drawPoints:rd}=Pi;class A4{set path(t){this.__path=t}get path(){return this.__path}constructor(t){this.set(t)}set(t){return this.__path=t?G(t)?Ke.parse(t):t:[],this}beginPath(){return $6(this.__path),this.paint(),this}moveTo(t,i){return V6(this.__path,t,i),this.paint(),this}lineTo(t,i){return G6(this.__path,t,i),this.paint(),this}bezierCurveTo(t,i,s,n,r,o){return K6(this.__path,t,i,s,n,r,o),this.paint(),this}quadraticCurveTo(t,i,s,n){return q6(this.__path,t,i,s,n),this.paint(),this}closePath(){return Z6(this.__path),this.paint(),this}rect(t,i,s,n){return J6(this.__path,t,i,s,n),this.paint(),this}roundRect(t,i,s,n,r){return Q6(this.__path,t,i,s,n,r),this.paint(),this}ellipse(t,i,s,n,r,o,a,l){return td(this.__path,t,i,s,n,r,o,a,l),this.paint(),this}arc(t,i,s,n,r,o){return ed(this.__path,t,i,s,n,r,o),this.paint(),this}arcTo(t,i,s,n,r){return id(this.__path,t,i,s,n,r),this.paint(),this}drawEllipse(t,i,s,n,r,o,a,l){return sd(this.__path,t,i,s,n,r,o,a,l),this.paint(),this}drawArc(t,i,s,n,r,o){return nd(this.__path,t,i,s,n,r,o),this.paint(),this}drawPoints(t,i,s){return rd(this.__path,t,i,s),this.paint(),this}clearPath(){return this.beginPath()}paint(){}}const{M:od,L:ad,C:ld,Q:hd,Z:cd,N:dd,D:ud,X:gd,G:pd,F:fd,O:_d,P:yd,U:md}=Ut,xd=rt.get("PathDrawer"),X2={drawPathByData(e,t){if(!t)return;let i,s=0,n=t.length;for(;s<n;)switch(i=t[s],i){case od:e.moveTo(t[s+1],t[s+2]),s+=3;break;case ad:e.lineTo(t[s+1],t[s+2]),s+=3;break;case ld:e.bezierCurveTo(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5],t[s+6]),s+=7;break;case hd:e.quadraticCurveTo(t[s+1],t[s+2],t[s+3],t[s+4]),s+=5;break;case cd:e.closePath(),s+=1;break;case dd:e.rect(t[s+1],t[s+2],t[s+3],t[s+4]),s+=5;break;case ud:e.roundRect(t[s+1],t[s+2],t[s+3],t[s+4],[t[s+5],t[s+6],t[s+7],t[s+8]]),s+=9;break;case gd:e.roundRect(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]),s+=6;break;case pd:e.ellipse(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]*ht,t[s+6]*ht,t[s+7]*ht,t[s+8]),s+=9;break;case fd:e.ellipse(t[s+1],t[s+2],t[s+3],t[s+4],0,0,ke,!1),s+=5;break;case _d:e.arc(t[s+1],t[s+2],t[s+3],t[s+4]*ht,t[s+5]*ht,t[s+6]),s+=7;break;
1case yd:e.arc(t[s+1],t[s+2],t[s+3],0,ke,!1),s+=4;break;case md:e.arcTo(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]),s+=6;break;default:return void xd.error(`command: ${i} [index:${s}]`,t)}},drawPathByPoints(e,t,i){}},{M:wd,L:vd,C:Y2,Q:U2,Z:N2,N:Cd,D:j2,X:bd,G:kd,F:Bd,O:Sd,P:Ed,U:Ad}=Ut,{toTwoPointBounds:Td,toTwoPointBoundsByQuadraticCurve:Rd,arcTo:Ld,arc:Fd,ellipse:Pd}=ue,{addPointBounds:fs,copy:Ao,addPoint:Md,setPoint:To,addBounds:Rn,toBounds:Dd}=rn,Od=rt.get("PathBounds");let x0,Ln,Ro;const pe={},V2={},ii={},T4={toBounds(e,t){T4.toTwoPointBounds(e,V2),Dd(V2,t)},toTwoPointBounds(e,t){if(!e||!e.length)return To(t,0,0);let i,s,n,r,o,a=0,l=0,h=0;const c=e.length;for(;a<c;)switch(o=e[a],a===0&&(o===N2||o===Y2||o===U2?To(t,l,h):To(t,e[a+1],e[a+2])),o){case wd:case vd:l=e[a+1],h=e[a+2],Md(t,l,h),a+=3;break;case Y2:n=e[a+5],r=e[a+6],Td(l,h,e[a+1],e[a+2],e[a+3],e[a+4],n,r,pe),fs(t,pe),l=n,h=r,a+=7;break;case U2:i=e[a+1],s=e[a+2],n=e[a+3],r=e[a+4],Rd(l,h,i,s,n,r,pe),fs(t,pe),l=n,h=r,a+=5;break;case N2:a+=1;break;case Cd:l=e[a+1],h=e[a+2],Rn(t,l,h,e[a+3],e[a+4]),a+=5;break;case j2:case bd:l=e[a+1],h=e[a+2],Rn(t,l,h,e[a+3],e[a+4]),a+=o===j2?9:6;break;case kd:Pd(null,e[a+1],e[a+2],e[a+3],e[a+4],e[a+5],e[a+6],e[a+7],e[a+8],pe,ii),a===0?Ao(t,pe):fs(t,pe),l=ii.x,h=ii.y,a+=9;break;case Bd:l=e[a+1],h=e[a+2],Ln=e[a+3],Ro=e[a+4],Rn(t,l-Ln,h-Ro,2*Ln,2*Ro),l+=Ln,a+=5;break;case Sd:Fd(null,e[a+1],e[a+2],e[a+3],e[a+4],e[a+5],e[a+6],pe,ii),a===0?Ao(t,pe):fs(t,pe),l=ii.x,h=ii.y,a+=7;break;case Ed:l=e[a+1],h=e[a+2],x0=e[a+3],Rn(t,l-x0,h-x0,2*x0,2*x0),l+=x0,a+=4;break;case Ad:Ld(null,l,h,e[a+1],e[a+2],e[a+3],e[a+4],e[a+5],pe,ii),a===0?Ao(t,pe):fs(t,pe),l=ii.x,h=ii.y,a+=6;break;default:return void Od.error(`command: ${o} [index:${a}]`,e)}}},{M:Fn,L:Pn,Z:w0}=Ut,{getCenterX:Id,getCenterY:Wd}=R,{arcTo:Lo}=Pi,R4={smooth(e,t,i){let s,n,r,o,a,l,h=0,c=0,u=0,g=0,d=0,f=0,_=0,y=0,x=0;J(t)&&(t=t[0]||0);const m=e.length,w=m===9,v=[];for(;h<m;){switch(s=e[h],s){case Fn:l=v.length,l&&n!==w0&&(v[o]=g,v[a]=d),g=y=e[h+1],d=x=e[h+2],h+=3,e[h]===Pn?(f=e[h+1],_=e[h+2],w?v.push(Fn,g,d):v.push(Fn,Id(g,f),Wd(d,_))):v.push(Fn,g,d),o=l+1,a=l+2;break;case Pn:switch(c=e[h+1],u=e[h+2],h+=3,e[h]){case Pn:Lo(v,c,u,e[h+1],e[h+2],t,y,x,w);break;case w0:Lo(v,c,u,g,d,t,y,x,w);break;default:v.push(Pn,c,u)}y=c,x=u;break;case w0:n!==w0&&(Lo(v,g,d,f,_,t,y,x,w),v.push(w0)),h+=1;break;default:r=an[s];for(let b=0;b<r;b++)v.push(e[h+b]);h+=r}n=s}return s!==w0&&(v[o]=g,v[a]=d),v}};function L4(e){return new A4(e)}const _s=L4();Ke.creator=L4(),Ke.parse=Fi.parse,Ke.convertToCanvasData=Fi.toCanvasData;const{drawRoundRect:zd}=S4;function G2(e){(function(t){t&&!t.roundRect&&(t.roundRect=function(i,s,n,r,o){zd(this,i,s,n,r,o)})})(e)}const Se={alphaPixelTypes:["png","webp","svg"],upperCaseTypeMap:{},mimeType:(e,t="image")=>!e||e.startsWith(t)?e:(e==="jpg"&&(e="jpeg"),t+"/"+e),fileType(e){const t=e.split(".");return t[t.length-1]},isOpaqueImage(e){const t=qs.fileType(e);return["jpg","jpeg"].some(i=>i===t)},getExportOptions(e){switch(typeof e){case"object":return e;case"number":return{quality:e};case"boolean":return{blob:e};default:return{}}}},qs=Se;qs.mineType=qs.mimeType,qs.alphaPixelTypes.forEach(e=>qs.upperCaseTypeMap[e]=e.toUpperCase());const Hd=rt.get("TaskProcessor");class Xd{constructor(t){this.parallel=!0,this.time=1,this.id=ci.create(ci.TASK),this.task=t}run(){return l0(this,void 0,void 0,function*(){try{if(this.isComplete||this.runing)return;if(this.runing=!0,this.canUse&&!this.canUse())return this.cancel();this.task&&(yield this.task())}catch(t){Hd.error(t)}})}complete(){this.isComplete=!0,this.parent=this.task=this.canUse=null}cancel(){this.isCancel=!0,this.complete()}}class e1{get total(){return this.list.length+this.delayNumber}get finishedIndex(){return this.isComplete?0:this.index+this.parallelSuccessNumber}get remain(){return this.isComplete?this.total:this.total-this.finishedIndex}get percent(){const{total:t}=this;let i=0,s=0;for(let n=0;n<t;n++)n<=this.finishedIndex?(s+=this.list[n].time,n===this.finishedIndex&&(i=s)):i+=this.list[n].time;return this.isComplete?1:s/i}constructor(t){this.config={parallel:6},this.list=[],this.running=!1,this.isComplete=!0,this.index=0,this.delayNumber=0,t&&K.assign(this.config,t),this.empty()}add(t,i,s){let n,r,o,a;const l=new Xd(t);return l.parent=this,$(i)?a=i:i&&(r=i.parallel,n=i.start,o=i.time,a=i.delay,s||(s=i.canUse)),o&&(l.time=o),r===!1&&(l.parallel=!1),s&&(l.canUse=s),M(a)?this.push(l,n
1):(this.delayNumber++,setTimeout(()=>{this.delayNumber&&(this.delayNumber--,this.push(l,n))},a)),this.isComplete=!1,l}push(t,i){this.list.push(t),i===!1||this.timer||(this.timer=setTimeout(()=>this.start()))}empty(){this.index=0,this.parallelSuccessNumber=0,this.list=[],this.parallelList=[],this.delayNumber=0}start(){this.running||(this.running=!0,this.isComplete=!1,this.run())}pause(){clearTimeout(this.timer),this.timer=null,this.running=!1}resume(){this.start()}skip(){this.index++,this.resume()}stop(){this.isComplete=!0,this.list.forEach(t=>{t.isComplete||t.run()}),this.pause(),this.empty()}run(){this.running&&(this.setParallelList(),this.parallelList.length>1?this.runParallelTasks():this.remain?this.runTask():this.onComplete())}runTask(){const t=this.list[this.index];t?t.run().then(()=>{this.onTask(t),this.index++,t.isCancel?this.runTask():this.nextTask()}).catch(i=>{this.onError(i)}):this.timer=setTimeout(()=>this.nextTask())}runParallelTasks(){this.parallelList.forEach(t=>this.runParallelTask(t))}runParallelTask(t){t.run().then(()=>{this.onTask(t),this.fillParallelTask()}).catch(i=>{this.onParallelError(i)})}nextTask(){this.total===this.finishedIndex?this.onComplete():this.timer=setTimeout(()=>this.run())}setParallelList(){let t;const{config:i,list:s,index:n}=this;this.parallelList=[],this.parallelSuccessNumber=0;let r=n+i.parallel;if(r>s.length&&(r=s.length),i.parallel>1)for(let o=n;o<r&&(t=s[o],t.parallel);o++)this.parallelList.push(t)}fillParallelTask(){let t;const i=this.parallelList;this.parallelSuccessNumber++,i.pop();const s=i.length,n=this.finishedIndex+s;if(i.length){if(!this.running)return;n<this.total&&(t=this.list[n],t&&t.parallel&&(i.push(t),this.runParallelTask(t)))}else this.index+=this.parallelSuccessNumber,this.parallelSuccessNumber=0,this.nextTask()}onComplete(){this.stop(),this.config.onComplete&&this.config.onComplete()}onTask(t){t.complete(),this.config.onTask&&this.config.onTask()}onParallelError(t){this.parallelList.forEach(i=>{i.parallel=!1}),this.parallelList.length=0,this.parallelSuccessNumber=0,this.onError(t)}onError(t){this.pause(),this.config.onError&&this.config.onError(t)}destroy(){this.stop()}}const Yd=rt.get("Resource"),li={tasker:new e1,queue:new e1({parallel:1}),map:{},get isComplete(){return fi.tasker.isComplete},set(e,t){fi.map[e]&&Yd.repeat(e),fi.map[e]=t},get:e=>fi.map[e],remove(e){const t=fi.map[e];t&&(t.destroy&&t.destroy(),delete fi.map[e])},loadImage(e,t){return new Promise((i,s)=>{const n=this.setImage(e,e,t);n.load(()=>i(n),r=>s(r))})},setImage(e,t,i){let s;return G(t)?s={url:t}:t.url||(s={url:e,view:t}),s&&(i&&(s.format=i),t=bt.image(s)),fi.set(e,t),t},loadFilm(e,t){},loadVideo(e,t){},destroy(){fi.map={}}},fi=li,Ee={maxRecycled:10,recycledList:[],patternTasker:li.queue,get(e,t){let i=li.get(e.url);return i||li.set(e.url,i=bt[t||"image"](e)),i.use++,i},recycle(e){e.parent&&(e=e.parent),e.use--,setTimeout(()=>{e.use||(A.image.isLarge(e)?e.url&&li.remove(e.url):(e.clearLevels(),ys.recycledList.push(e)))})},recyclePaint(e){ys.recycle(e.image)},clearRecycled(e){const t=ys.recycledList;(t.length>ys.maxRecycled||e)&&(t.forEach(i=>(!i.use||e)&&i.url&&li.remove(i.url)),t.length=0)},clearLevels(){},hasAlphaPixel:e=>Se.alphaPixelTypes.some(t=>ys.isFormat(t,e)),isFormat(e,t){if(t.format)return t.format===e;const{url:i}=t;if(i.startsWith("data:")){if(i.startsWith("data:"+Se.mimeType(e)))return!0}else if(i.includes("."+e)||i.includes("."+Se.upperCaseTypeMap[e])||e==="png"&&!i.includes("."))return!0;return!1},destroy(){this.clearRecycled(!0)}},ys=Ee,{IMAGE:Ud,create:Nd}=ci;class $r{get tag(){return"Image"}get url(){return this.config.url}get crossOrigin(){const{crossOrigin:t}=this.config;return M(t)?A.image.crossOrigin:t}get completed(){return this.ready||!!this.error}constructor(t){if(this.use=0,this.waitComplete=[],this.innerId=Nd(Ud),this.config=t||(t={url:""}),t.view){const{view:i}=t;this.setView(i.config?i.view:i)}Ee.isFormat("svg",t)&&(this.isSVG=!0),Ee.hasAlphaPixel(t)&&(this.hasAlphaPixel=!0)}load(t,i,s){return this.loading||(this.loading=!0,li.tasker.add(()=>l0(this,void 0,void 0,function*(){return yield A.origin["load"+this.tag](this.getLoadUrl(s),this.crossOrigin,this).then(n=>{s&&this.setThumbView(n),this.setView(n)}).catch(n=>{this.error=n,this.onComplete(!1)})}))),this.waitComplete.push(t,i),this.waitComplete.length-2}unload(t,i){const s=this.waitComplete;if(i){const n=s[t+1];n&&n({type:"stop"})}s[t]=s[t+1]=void 0}setView(t){this.ready=!0,this.width||(this.width=t.width,this.height=t.height,this.view=t),this.onComplete(!0)}onComplete(t){let i;this.waitComplete.forEach((s,n)=>{i=n%2,s&&(t?i||s(this):i&&s(this.error))}),this.waitComplete.length=0,this.loading=!1}getFull(t){return this.view}getCanvas(t,i,s,n,r,o,a,l){if(t||(t=this.width),i||(i=this.height),this.cache){let{params:c,data:u}=this.cache;for(let g in c)if(c[g]!==arguments[g]){u=null;break}if(u)return u}const h=A.image.resize(this.view,t,i,r,o,void 0,a,s,n,l);return this.cache=this.use>1?{data:h,params:arguments}:null,h}getPattern(t,i,s,n){const r=A.canvas.createPattern(t,i);return A.image.setPatternTransform(r,s,n),r}render(t,i,s,n,r,o,a,l,h){t.drawImage(this.view,i,s,n,r)}getLoadUrl(t){return this.url}setThumbView(t){}getThumbSize(t){}getMinLevel(){}getLevelData(t,i,s){}clearLevels(t){}destroyFilter(){}destroy(){this.clearLevels(),this.destroyFilter();const{view:t}=this;t&&t.close&&t.close(),this.config={url:""},this.cache=this.view=null,this.waitComplete.length=0}}class nf extends $r{get tag(){return"Film"}}class rf extends $r{get tag(){return"Video"}}function xe(e,t,i,s){s||(i.configurable=i.enumerable=!0),Object.defineProperty(e,t,i)}function O1(e,t){return Object.getOwnPropertyDescriptor(e,t)}
1function F4(e,t){const i="_"+e;return{get(){const s=this[i];return s??t},set(s){this[i]=s}}}function wt(e,t){return(i,s)=>jd(i,s,e,t&&t(s))}function of(e){return e}function jd(e,t,i,s){xe(e,t,Object.assign({get(){return this.__getAttr(t)},set(r){this.__setAttr(t,r)}},s||{})),D4(e,t,i)}function mt(e){return wt(e)}function Mn(e,t){return wt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.matrixChanged||this.__layout.matrixChange())}}))}function q2(e,t){return wt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.matrixChanged||this.__layout.matrixChange(),this.__scrollWorld||(this.__scrollWorld={}))}}))}function Ir(e){return wt(e,t=>({set(i){this.__setAttr(t,i)&&(this.__hasAutoLayout=!!(this.origin||this.around||this.flow),this.__local||this.__layout.createLocal(),Ae(this))}}))}function K2(e,t){return wt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.scaleChanged||this.__layout.scaleChange())}}))}function Fo(e,t){return wt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.rotationChanged||this.__layout.rotationChange())}}))}function Z(e,t){return wt(e,i=>({set(s){this.__setAttr(i,s,t)&&Ae(this)}}))}function Vd(e){return wt(e,t=>({set(i){this.__setAttr(t,i)&&(Ae(this),this.__.__removeNaturalSize())}}))}function Ae(e){e.__layout.boxChanged||e.__layout.boxChange(),e.__hasAutoLayout&&(e.__layout.matrixChanged||e.__layout.matrixChange())}function Gd(e){return wt(e,t=>({set(i){const s=this.__;s.__pathInputed!==2&&(s.__pathInputed=i?1:0),i||(s.__pathForRender=void 0),this.__setAttr(t,i),Ae(this)}}))}const At=Z;function ln(e,t){return wt(e,i=>({set(s){this.__setAttr(i,s)&&(I1(this),t&&(this.__.__useStroke=!0))}}))}function I1(e){e.__layout.strokeChanged||e.__layout.strokeChange(),e.__.__useArrow&&Ae(e)}const Ne=ln;function W1(e){return wt(e,t=>({set(i){this.__setAttr(t,i),this.__layout.renderChanged||this.__layout.renderChange()}}))}function Oe(e){return wt(e,t=>({set(i){this.__setAttr(t,i)&&P4(this)}}))}function P4(e){e.__layout.surfaceChanged||e.__layout.surfaceChange()}function i1(e){return wt(e,t=>({set(i){if(this.__setAttr(t,i)){const s=this.__;K.stintSet(s,"__useDim",s.dim||s.bright||s.dimskip)}}}))}function qd(e){return wt(e,t=>({set(i){this.__setAttr(t,i)&&(this.__layout.opacityChanged||this.__layout.opacityChange()),this.mask&&M4(this)}}))}function Kd(e){return wt(e,t=>({set(i){const s=this.visible;if(s===!0&&i===0){if(this.animationOut)return this.__runAnimation("out",()=>Z2(this,t,i,s))}else s===0&&i===!0&&this.animation&&this.__runAnimation("in");Z2(this,t,i,s),this.mask&&M4(this)}}))}function M4(e){const{parent:t}=e;if(t){const{__hasMask:i}=t;t.__updateMask(),i!==t.__hasMask&&t.forceUpdate()}}function Z2(e,t,i,s){e.__setAttr(t,i)&&(e.__layout.opacityChanged||e.__layout.opacityChange(),s!==0&&i!==0||Ae(e))}function Zd(e){e.__layout.childrenSortChange(),e.__.flow&&e.__layout.boxChange()}function $d(e){return wt(e,t=>({set(i){this.__setAttr(t,i)&&this.waitParentChange(Zd)}}))}function Jd(e){e.__updateMask()}function Qd(e,t){return wt(e,i=>({set(s){this.__setAttr(i,s)&&(this.__layout.boxChanged||this.__layout.boxChange(),t?this.__updateMask():this.waitParentChange(Jd))}}))}function t8(e){e.__updateEraser()}function e8(e){return wt(e,t=>({set(i){this.__setAttr(t,i)&&this.waitParentChange(t8)}}))}function vi(e){return wt(e,t=>({set(i){this.__setAttr(t,i)&&(this.__layout.hitCanvasChanged=!0,this.leafer&&this.leafer.updateCursor())}}))}function i8(e){return wt(e,t=>({set(i){this.__setAttr(t,i),this.leafer&&this.leafer.updateCursor()}}))}function Tt(e){return(t,i)=>{xe(t,"__DataProcessor",{get:()=>e})}}function af(e){return(t,i)=>{xe(t,"__LayoutProcessor",{get:()=>e})}}function D4(e,t,i){const s=e.__DataProcessor.prototype,n="_"+t,r=(function(c){return"set"+c.charAt(0).toUpperCase()+c.slice(1)})(t),o=F4(t,i);if(M(i))o.get=function(){return this[n]};else if(typeof i=="function")o.get=function(){const c=this[n];return c??i(this.__leaf)};else if(W(i)){const c=Ec(i);o.get=function(){const u=this[n];return u??(this[n]=c?{}:K.clone(i))}}const a=e.isBranchLeaf;t==="width"?o.get=function(){const c=this[n];
1if(c==null){const u=this,g=u.__naturalWidth,d=u.__leaf;return!i||d.pathInputed?d.boxBounds.width:g?u._height&&u.__useNaturalRatio?u._height*g/u.__naturalHeight:g:a&&d.children.length?d.boxBounds.width:i}return c}:t==="height"&&(o.get=function(){const c=this[n];if(c==null){const u=this,g=u.__naturalHeight,d=u.__leaf;return!i||d.pathInputed?d.boxBounds.height:g?u._width&&u.__useNaturalRatio?u._width*g/u.__naturalWidth:g:a&&d.children.length?d.boxBounds.height:i}return c});let l,h=s;for(;!l&&h;)l=O1(h,t),h=h.__proto__;l&&l.set&&(o.set=l.set),s[r]&&(o.set=s[r],delete s[r]),xe(s,t,o)}const s8=new rt("rewrite"),Ar=[],n8=["destroy","constructor"];function Fe(e){return(t,i)=>{Ar.push({name:t.constructor.name+"."+i,run:()=>{t[i]=e}})}}function h0(){return e=>{O4()}}function O4(e){Ar.length&&(Ar.forEach(t=>{e&&s8.error(t.name,"éå¨Classä¸è£
饰@rewriteAble()"),t.run()}),Ar.length=0)}function ce(e,t){return i=>{var s;(e.prototype?(s=e.prototype,Object.getOwnPropertyNames(s)):Object.keys(e)).forEach(n=>{if(!(n8.includes(n)||t&&t.includes(n)))if(e.prototype){const r=O1(e.prototype,n);r&&Object.defineProperty(i.prototype,n,r)}else i.prototype[n]=e[n]})}}function Rt(){return e=>{on.register(e)}}function di(){return e=>{es.register(e)}}setTimeout(()=>O4(!0));const{copy:v0,toInnerPoint:r8,toOuterPoint:o8,scaleOfOuter:$2,rotateOfOuter:a8,skewOfOuter:l8,multiplyParent:J2,divideParent:Q2,getLayout:h8}=q,Ft={},{round:tl}=Math,tt={updateAllMatrix(e,t,i){if(t&&e.__hasAutoLayout&&e.__layout.matrixChanged&&(i=!0),d8(e,t,i),e.isBranch){const{children:s}=e;for(let n=0,r=s.length;n<r;n++)c8(s[n],t,i)}},updateMatrix(e,t,i){const s=e.__layout;t?i&&(s.waitAutoLayout=!0,e.__hasAutoLayout&&(s.matrixChanged=!1)):s.waitAutoLayout&&(s.waitAutoLayout=!1),s.matrixChanged&&e.__updateLocalMatrix(),s.waitAutoLayout||e.__updateWorldMatrix()},updateBounds(e,t){const i=e.__layout;i.boundsChanged&&e.__updateLocalBounds(),t&&(i.resized=void 0),i.waitAutoLayout||e.__updateWorldBounds()},updateAllWorldOpacity(e){if(e.__updateWorldOpacity(),e.isBranch){const{children:t}=e;for(let i=0,s=t.length;i<s;i++)el(t[i])}},updateChange(e){const t=e.__layout;t.stateStyleChanged&&e.updateState(),t.opacityChanged&&el(e),e.__updateChange(),t.surfaceChanged&&(e.__hasComplex&&Dt.updateComplex(e),t.surfaceChanged=!1)},updateAllChange(e){if(g8(e),e.isBranch){const{children:t}=e;for(let i=0,s=t.length;i<s;i++)u8(t[i])}},worldHittable(e){for(;e;){if(!e.__.hittable)return!1;e=e.parent}return!0},draggable:e=>(e.draggable||e.editable)&&e.hitSelf&&!e.locked,copyCanvasByWorld(e,t,i,s,n,r){s||(s=e.__nowWorld),e.__worldFlipped||A.fullImageShadow?t.copyWorldByReset(i,s,e.__nowWorld,n,r):t.copyWorldToInner(i,s,e.__layout.renderBounds,n)},clip(e,t,i){e.__worldOpacity&&(t.setWorld(e.__nowWorld=e.__getNowWorld(i)),e.__drawRenderPath(t),t.clipUI(e))},renderComplex(e,t,i){},updateComplex(e){},checkComplex(e){},moveWorld(e,t,i=0,s,n){const r=W(t)?Object.assign({},t):{x:t,y:i};s?o8(e.localTransform,r,r,!0):e.parent&&r8(e.parent.scrollWorldTransform,r,r,!0),Dt.moveLocal(e,r.x,r.y,n)},moveLocal(e,t,i=0,s){W(t)&&(i=t.y,t=t.x),t+=e.x,i+=e.y,e.leafer&&e.leafer.config.pointSnap&&(t=tl(t),i=tl(i)),s?e.animate({x:t,y:i},s):(e.x=t,e.y=i)},zoomOfWorld(e,t,i,s,n,r,o){Dt.zoomOfLocal(e,Po(e,t),i,s,n,r,o)},zoomOfLocal(e,t,i,s=i,n,r,o){const a=e.__localMatrix;if($(s)||(s&&(r=s),s=i),v0(Ft,a),$2(Ft,t,i,s),Dt.hasHighPosition(e))Dt.setTransform(e,Ft,n,r,o);else{const l=e.x+Ft.e-a.e,h=e.y+Ft.f-a.f;r&&!n?e.animate({x:l,y:h,scaleX:e.scaleX*i,scaleY:e.scaleY*s},r):(e.x=l,e.y=h,e.scaleResize(i,s,n!==!0,o))}},rotateOfWorld(e,t,i,s){Dt.rotateOfLocal(e,Po(e,t),i,s)},rotateOfLocal(e,t,i,s){const n=e.__localMatrix;v0(Ft,n),a8(Ft,t,i),Dt.hasHighPosition(e)?Dt.setTransform(e,Ft,!1,s):e.set({x:e.x+Ft.e-n.e,y:e.y+Ft.f-n.f,rotation:_t.formatRotation(e.rotation+i)},s)},skewOfWorld(e,t,i,s,n,r){Dt.skewOfLocal(e,Po(e,t),i,s,n,r)},skewOfLocal(e,t,i,s=0,n,r){v0(Ft,e.__localMatrix),l8(Ft,t,i,s),Dt.setTransform(e,Ft,n,r)},transformWorld(e,t,i,s,n){v0(Ft,e.worldTransform),J2(Ft,t),e.parent&&Q2(Ft,e.parent.scrollWorldTransform),Dt.setTransform(e,Ft,i,s,n)},transform(e,t,i,s,n){v0(Ft,e.localTransform),J2(Ft,t),Dt.setTransform(e,Ft,i,s,n)},setTransform(e,t,i,s,n){const r=e.__,o=r.origin&&Dt.getInnerOrigin(e,r.origin),a=h8(t,o,r.around&&Dt.getInnerOrigin(e,r.around));if(Dt.hasOffset(e)&&(a.x-=r.offsetX,a.y-=r.offsetY),i){const l=a.scaleX/e.scaleX,h=a.scaleY/e.scaleY;if(delete a.scaleX,delete a.scaleY,o){L.scale(e.boxBounds,Math.abs(l),Math.abs(h));const c=Dt.getInnerOrigin(e,r.origin);R.move(a,o.x-c.x,o.y-c.y)}e.set(a),e.scaleResize(l,h,!1,n)}else e.set(a,s)},getFlipTransform(e,t){const i={a:1,b:0,c:0,d:1,e:0,f:0},s=t==="x"?1:-1;return $2(i,Dt.getLocalOrigin(e,"center"),-1*s,1*s),i},getLocalOrigin:(e,t)=>R.tempToOuterOf(Dt.getInnerOrigin(e,t),e.localTransform),getInnerOrigin(e,t){const i={};return Qt.toPoint(t,e.boxBounds,i),i},getRelativeWorld:(e,t,i)=>(v0(Ft,e.worldTransform),Q2(Ft,t.scrollWorldTransform),i?Ft:Object.assign({},Ft)),updateScaleFixedWorld(e){},updateOuterBounds(e){},cacheId(e){},drop(e,t,i,s){e.setTransform(Dt.getRelativeWorld(e,t,!0),s),t.add(e,i)},hasHighPosition:e=>e.origin||e.around||Dt.hasOffset(e),hasOffset:e=>e.offsetX||e.offsetY,hasParent(e,t){if(!t)return!1;for(;e;){if(t===e)return!0;e=e.parent}},animateMove(e,t,i=.3,s){if(t.x||t.y){if(Math.abs(t.x)<1&&Math.abs(t.y)<1)e.move(t);else{const n=t.x*i,r=t.y*i;t.x-=n,t.y-=r,e.move(n,r),A.requestRender(()=>Dt.animateMove(e,t,i,s))}s&&s()}}},Dt=tt,{updateAllMatrix:c8,updateMatrix:d8,updateAllWorldOpacity:el,updateAllChange:u8,updateChange:g8}=Dt;function Po(e,t){return e.updateLayout(),e.parent?R.tempToInnerOf(t,e.parent.scrollWorldTransform):t}const as={worldBounds:e=>e.__world,localBoxBounds:e=>e.__.eraser||e.__.visible===0?null:e.__local||e.__layout,localStrokeBounds:e=>e.__.eraser||e.__.visible===0?null:e.__layout.localStrokeBounds,localRenderBounds(e){const{__:t,__layout:i}=e;return t.eraser||t.visible===0?null:i.localOuterBounds||i.localRenderBounds},maskLocalBoxBounds:(e,t)=>Mo(e,t)&&e.__localBoxBounds,maskLocalStrokeBounds:(e,t)=>Mo(e,t)&&e.__layout.localStrokeBounds,maskLocalRenderBounds(e,t){const{__layout:i}=e;return Mo(e,t)&&(i.localOuterBounds||i.localRenderBounds)},excludeRenderBounds:(e,t)=>!(!t.bounds||t.bounds.hit(e.__world,t.matrix))||!(!t.hideBounds||!t.hideBounds.includes(e.__world,t.matrix))};let ms;function Mo(e,t){return t||(ms=0),e.__.mask&&(ms=1),ms<0?null:(ms&&(ms=-1),!0)}const{updateBounds:il}=tt,c0={sort:(e,t)=>e.__.zIndex===t.__.zIndex?e.__tempNumber-t.__tempNumber:e.__.zIndex-t.__.zIndex,pushAllChildBranch(e,t){if(e.__tempNumber=1,e.__.__childBranchNumber){const{children:i}=e;for(let s=0,n=i.length;s<n;s++)(e=i[s]).isBranch&&(e.__tempNumber=1,t.add(e),p8(e,t))}},pushAllParent(e,t){const{keys:i}=t;if(i)for(;e.parent&&M(i[e.parent.innerId]);)t.add(e.parent),e=e.parent;else for(;e.parent;)t.add(e.parent),e=e.parent},pushAllBranchStack(e,t){let i=t.length;const{children:s}=e;for(let n=0,r=s.length;n<r;
1n++)s[n].isBranch&&t.push(s[n]);for(let n=i,r=t.length;n<r;n++)sl(t[n],t)},updateBounds(e,t){const i=[e];sl(e,i),f8(i,t)},updateBoundsByBranchStack(e,t){let i,s;for(let n=e.length-1;n>-1;n--){i=e[n],s=i.children;for(let r=0,o=s.length;r<o;r++)il(s[r]);t&&t===i||il(i)}},move(e,t,i){let s;const{children:n}=e;for(let r=0,o=n.length;r<o;r++)s=(e=n[r]).__world,s.e+=t,s.f+=i,s.x+=t,s.y+=i,e.isBranch&&_8(e,t,i)},scale(e,t,i,s,n,r,o){let a;const{children:l}=e,h=s-1,c=n-1;for(let u=0,g=l.length;u<g;u++)a=(e=l[u]).__world,a.a*=s,a.d*=n,(a.b||a.c)&&(a.b*=s,a.c*=n),a.e===a.x&&a.f===a.y?(a.x=a.e+=(a.e-r)*h+t,a.y=a.f+=(a.f-o)*c+i):(a.e+=(a.e-r)*h+t,a.f+=(a.f-o)*c+i,a.x+=(a.x-r)*h+t,a.y+=(a.y-o)*c+i),a.width*=s,a.height*=n,a.scaleX*=s,a.scaleY*=n,e.isBranch&&y8(e,t,i,s,n,r,o)}},{pushAllChildBranch:p8,pushAllBranchStack:sl,updateBoundsByBranchStack:f8,move:_8,scale:y8}=c0,xs={run(e){if(e&&e.length){const t=e.length;for(let i=0;i<t;i++)e[i]();e.length===t?e.length=0:e.splice(0,t)}}},{getRelativeWorld:nl,updateBounds:m8}=tt,{toOuterOf:Dn,getPoints:x8,copy:w8}=L,Do="_localContentBounds",Oo="_worldContentBounds",Io="_worldBoxBounds",Wo="_worldStrokeBounds";class v8{get contentBounds(){return this._contentBounds||this.boxBounds}set contentBounds(t){this._contentBounds=t}get strokeBounds(){return this._strokeBounds||this.boxBounds}get renderBounds(){return this._renderBounds||this.boxBounds}set renderBounds(t){this._renderBounds=t}get localContentBounds(){return Dn(this.contentBounds,this.leaf.__localMatrix,this[Do]||(this[Do]={})),this[Do]}get localStrokeBounds(){return this._localStrokeBounds||this}get localRenderBounds(){return this._localRenderBounds||this}get worldContentBounds(){return Dn(this.contentBounds,this.leaf.__world,this[Oo]||(this[Oo]={})),this[Oo]}get worldBoxBounds(){return Dn(this.boxBounds,this.leaf.__world,this[Io]||(this[Io]={})),this[Io]}get worldStrokeBounds(){return Dn(this.strokeBounds,this.leaf.__world,this[Wo]||(this[Wo]={})),this[Wo]}get a(){return 1}get b(){return 0}get c(){return 0}get d(){return 1}get e(){return this.leaf.__.x}get f(){return this.leaf.__.y}get x(){return this.e+this.boxBounds.x}get y(){return this.f+this.boxBounds.y}get width(){return this.boxBounds.width}get height(){return this.boxBounds.height}constructor(t){this.leaf=t,this.leaf.__local&&(this._localRenderBounds=this._localStrokeBounds=this.leaf.__local),t.__world&&(this.boxBounds={x:0,y:0,width:0,height:0},this.boxChange(),this.matrixChange())}createLocal(){const t=this.leaf.__local={a:1,b:0,c:0,d:1,e:0,f:0,x:0,y:0,width:0,height:0};this._localStrokeBounds||(this._localStrokeBounds=t),this._localRenderBounds||(this._localRenderBounds=t)}update(){const{leaf:t}=this,{leafer:i}=t;if(t.isApp)return m8(t);if(i)i.ready?i.watcher.changed&&i.layouter.layout():i.start();else{let s=t;for(;s.parent&&!s.parent.leafer;)s=s.parent;const n=s;if(n.__fullLayouting)return;n.__fullLayouting=!0,A.layout(n),delete n.__fullLayouting}}getTransform(t="world"){this.update();const{leaf:i}=this;switch(t){case"world":return i.__world;case"local":return i.__localMatrix;case"inner":return q.defaultMatrix;case"page":t=i.zoomLayer;default:return nl(i,t)}}getBounds(t,i="world"){switch(this.update(),i){case"world":return this.getWorldBounds(t);case"local":return this.getLocalBounds(t);case"inner":return this.getInnerBounds(t);case"page":i=this.leaf.zoomLayer;default:return new nt(this.getInnerBounds(t)).toOuterOf(this.getTransform(i))}}getInnerBounds(t="box"){switch(t){case"render":return this.renderBounds;case"content":if(this.contentBounds)return this.contentBounds;case"box":return this.boxBounds;case"stroke":return this.strokeBounds}}getLocalBounds(t="box"){switch(t){case"render":return this.localRenderBounds;case"stroke":return this.localStrokeBounds;case"content":if(this.contentBounds)return this.localContentBounds;case"box":return this.leaf.__localBoxBounds}}getWorldBounds(t="box"){switch(t){case"render":return this.leaf.__world;case"stroke":return this.worldStrokeBounds;case"content":if(this.contentBounds)return this.worldContentBounds;case"box":return this.worldBoxBounds}}getLayoutBounds(t,i="world",s){const{leaf:n}=this;let r,o,a,l=this.getInnerBounds(t);switch(i){case"world":r=n.getWorldPoint(l),o=n.__world;break;case"local":const{scaleX:h,scaleY:c,rotation:u,skewX:g,skewY:d}=n.__;a={scaleX:h,scaleY:c,rotation:u,skewX:g,skewY:d}
1,r=n.getLocalPointByInner(l);break;case"inner":r=l,o=q.defaultMatrix;break;case"page":i=n.zoomLayer;default:r=n.getWorldPoint(l,i),o=nl(n,i,!0)}if(a||(a=q.getLayout(o)),w8(a,l),R.copy(a,r),s){const{scaleX:h,scaleY:c}=a,u=Math.abs(h),g=Math.abs(c);u===1&&g===1||(a.scaleX/=u,a.scaleY/=g,a.width*=u,a.height*=g)}return a}getLayoutPoints(t,i="world"){const{leaf:s}=this,n=x8(this.getInnerBounds(t));let r;switch(i){case"world":r=null;break;case"local":r=s.parent;break;case"inner":break;case"page":i=s.zoomLayer;default:r=i}return M(r)||n.forEach(o=>s.innerToWorld(o,null,!1,r)),n}shrinkContent(){const{x:t,y:i,width:s,height:n}=this.boxBounds;this._contentBounds={x:t,y:i,width:s,height:n}}spreadStroke(){const{x:t,y:i,width:s,height:n}=this.strokeBounds;this._strokeBounds={x:t,y:i,width:s,height:n},this._localStrokeBounds={x:t,y:i,width:s,height:n},this.renderSpread||this.spreadRenderCancel()}spreadRender(){const{x:t,y:i,width:s,height:n}=this.renderBounds;this._renderBounds={x:t,y:i,width:s,height:n},this._localRenderBounds={x:t,y:i,width:s,height:n}}shrinkContentCancel(){this._contentBounds=void 0}spreadStrokeCancel(){const t=this.renderBounds===this.strokeBounds;this._strokeBounds=this.boxBounds,this._localStrokeBounds=this.leaf.__localBoxBounds,t&&this.spreadRenderCancel()}spreadRenderCancel(){this._renderBounds=this._strokeBounds,this._localRenderBounds=this._localStrokeBounds}boxChange(){this.boxChanged=!0,this.localBoxChanged?this.boundsChanged||(this.boundsChanged=!0):this.localBoxChange(),this.hitCanvasChanged=!0}localBoxChange(){this.localBoxChanged=!0,this.boundsChanged=!0}strokeChange(){this.strokeChanged=!0,this.strokeSpread||(this.strokeSpread=1),this.boundsChanged=!0,this.hitCanvasChanged=!0}renderChange(){this.renderChanged=!0,this.renderSpread||(this.renderSpread=1),this.boundsChanged=!0,this.hitCanvasChanged=!0}scaleChange(){this.scaleChanged=!0,this._scaleOrRotationChange()}rotationChange(){this.rotationChanged=!0,this.affectRotation=!0,this._scaleOrRotationChange()}_scaleOrRotationChange(){this.affectScaleOrRotation=!0,this.matrixChange(),this.leaf.__local||this.createLocal()}matrixChange(){this.matrixChanged=!0,this.localBoxChanged?this.boundsChanged||(this.boundsChanged=!0):this.localBoxChange()}surfaceChange(){this.surfaceChanged=!0}opacityChange(){this.opacityChanged=!0}childrenSortChange(){this.childrenSortChanged||(this.childrenSortChanged=this.affectChildrenSort=!0,this.leaf.forceUpdate("surface"))}destroy(){}}class He{constructor(t,i){this.bubbles=!1,this.type=t,i&&(this.target=i)}stopDefault(){this.isStopDefault=!0,this.origin&&A.event.stopDefault(this.origin)}stopNow(){this.isStopNow=!0,this.isStop=!0,this.origin&&A.event.stopNow(this.origin)}stop(){this.isStop=!0,this.origin&&A.event.stop(this.origin)}}class Mt extends He{constructor(t,i,s){super(t,i),this.parent=s,this.child=i}}Mt.ADD="child.add",Mt.REMOVE="child.remove",Mt.CREATED="created",Mt.MOUNTED="mounted",Mt.UNMOUNTED="unmounted",Mt.DESTROY="destroy";const s1="property.scroll";class Ie extends He{constructor(t,i,s,n,r){super(t,i),this.attrName=s,this.oldValue=n,this.newValue=r}}Ie.CHANGE="property.change",Ie.LEAFER_CHANGE="property.leafer_change",Ie.SCROLL=s1;const C8={scrollX:s1,scrollY:s1};class We extends He{constructor(t,i){super(t),Object.assign(this,i)}}We.LOAD="image.load",We.LOADED="image.loaded",We.ERROR="image.error";class Ze extends He{static checkHas(t,i,s){s==="on"?i===Tr?t.__hasWorldEvent=!0:t.__hasLocalEvent=!0:(t.__hasLocalEvent=t.hasEvent(n1)||t.hasEvent(r1)||t.hasEvent(o1),t.__hasWorldEvent=t.hasEvent(Tr))}static emitLocal(t){if(t.leaferIsReady){const{resized:i}=t.__layout;i!=="local"&&(t.emit(n1,t),i==="inner"&&t.emit(r1,t)),t.emit(o1,t)}}static emitWorld(t){t.leaferIsReady&&t.emit(Tr,t)}}Ze.RESIZE="bounds.resize",Ze.INNER="bounds.inner",Ze.LOCAL="bounds.local",Ze.WORLD="bounds.world";const{RESIZE:n1,INNER:r1,LOCAL:o1,WORLD:Tr}=Ze,a1={};[n1,r1,o1,Tr].forEach(e=>a1[e]=1);class Je extends He{get bigger(){if(!this.old)return!0;const{width:t,height:i}=this.old;return this.width>=t&&this.height>=i}get smaller(){return!this.bigger}get samePixelRatio(){return!this.old||this.pixelRatio===this.old.pixelRatio}constructor(t,i){W(t)?(super(Je.RESIZE),Object.assign(this,t)):super(t),this.old=i}static isResizing(t){return this.resizingKeys&&!M(this.resizingKeys[t.innerId])}}Je.RESIZE="resize";class Ti extends He{constructor(t,i){super(t),this.data=i}}Ti.REQUEST="watch.request",Ti.DATA="watch.data";class Et extends He{constructor(t,i,s){super(t),i&&(this.data=i,this.times=s)}}Et.REQUEST="layout.request",Et.START="layout.start",Et.BEFORE="layout.before",Et.LAYOUT="layout",Et.AFTER="layout.after",Et.AGAIN="layout.again",Et.END="layout.end";class ut extends He{constructor(t,i,s,n){super(t),i&&(this.times=i),s&&(this.renderBounds=s,this.renderOptions=n)}}ut.REQUEST="render.request",ut.CHILD_START="render.child_start",ut.CHILD_END="render.child_end",ut.START="render.start",ut.BEFORE="render.before",ut.RENDER="render",ut.AFTER="render.after",ut.AGAIN="render.again",ut.END="render.end",ut.
1NEXT="render.next";class ct extends He{}ct.START="leafer.start",ct.BEFORE_READY="leafer.before_ready",ct.READY="leafer.ready",ct.AFTER_READY="leafer.after_ready",ct.VIEW_READY="leafer.view_ready",ct.VIEW_COMPLETED="leafer.view_completed",ct.STOP="leafer.stop",ct.RESTART="leafer.restart",ct.END="leafer.end",ct.UPDATE_MODE="leafer.update_mode",ct.TRANSFORM="leafer.transform",ct.MOVE="leafer.move",ct.SCALE="leafer.scale",ct.ROTATE="leafer.rotate",ct.SKEW="leafer.skew";const{MOVE:rl,SCALE:ol,ROTATE:b8,SKEW:al}=ct,k8={x:rl,y:rl,scaleX:ol,scaleY:ol,rotation:b8,skewX:al,skewY:al},ll={};class I4{set event(t){this.on(t)}on(t,i,s){if(!i){let c;if(J(t))t.forEach(u=>this.on(u[0],u[1],u[2]));else for(let u in t)J(c=t[u])?this.on(u,c[0],c[1]):this.on(u,c);return}let n,r,o;s&&(s==="once"?r=!0:typeof s=="boolean"?n=s:(n=s.capture,r=s.once));const a=zo(this,n,!0),l=G(t)?t.split(" "):t,h=r?{listener:i,once:r}:{listener:i};l.forEach(c=>{c&&(o=a[c],o?o.findIndex(u=>u.listener===i)===-1&&o.push(h):a[c]=[h],a1[c]&&Ze.checkHas(this,c,"on"))})}off(t,i,s){if(t){const n=G(t)?t.split(" "):t;if(i){let r,o,a;s&&(r=typeof s=="boolean"?s:s!=="once"&&s.capture);const l=zo(this,r);n.forEach(h=>{h&&(o=l[h],o&&(a=o.findIndex(c=>c.listener===i),a>-1&&o.splice(a,1),o.length||delete l[h],a1[h]&&Ze.checkHas(this,h,"off")))})}else{const{__bubbleMap:r,__captureMap:o}=this;n.forEach(a=>{r&&delete r[a],o&&delete o[a]})}}else this.__bubbleMap=this.__captureMap=void 0}on_(t,i,s,n){return i?this.on(t,s?i=i.bind(s):i,n):J(t)&&t.forEach(r=>this.on(r[0],r[2]?r[1]=r[1].bind(r[2]):r[1],r[3])),{type:t,current:this,listener:i,options:n}}off_(t){if(!t)return;const i=J(t)?t:[t];i.forEach(s=>{s&&(s.listener?s.current.off(s.type,s.listener,s.options):J(s.type)&&s.type.forEach(n=>s.current.off(n[0],n[1],n[3])))}),i.length=0}once(t,i,s,n){if(!i)return J(t)&&t.forEach(r=>this.once(r[0],r[1],r[2],r[3]));W(s)?i=i.bind(s):n=s,this.on(t,i,{once:!0,capture:n})}emit(t,i,s){!i&&es.has(t)&&(i=es.get(t,{type:t,target:this,current:this}));const n=zo(this,s)[t];if(n){let r;for(let o=0,a=n.length;o<a&&!((r=n[o])&&(r.listener(i),r.once&&(this.off(t,r.listener,s),o--,a--),i&&i.isStopNow));o++);}this.syncEventer&&this.syncEventer.emitEvent(i,s)}emitEvent(t,i){t.current=this,this.emit(t.type,t,i)}hasEvent(t,i){if(this.syncEventer&&this.syncEventer.hasEvent(t,i))return!0;const{__bubbleMap:s,__captureMap:n}=this,r=s&&s[t],o=n&&n[t];return!!(M(i)?r||o:i?o:r)}destroy(){this.__captureMap=this.__bubbleMap=this.syncEventer=null}}function zo(e,t,i){if(t){const{__captureMap:s}=e;return s||(i?e.__captureMap={}:ll)}{const{__bubbleMap:s}=e;return s||(i?e.__bubbleMap={}:ll)}}const{on:B8,on_:S8,off:E8,off_:A8,once:T8,emit:R8,emitEvent:L8,hasEvent:F8,destroy:P8}=I4.prototype,z1={on:B8,on_:S8,off:E8,off_:A8,once:T8,emit:R8,emitEvent:L8,hasEvent:F8,destroyEventer:P8},M8=rt.get("setAttr"),D8={__setAttr(e,t,i){if(this.leaferIsCreated){const s=this.__.__getInput(e);if(!i||Qa(t)||M(t)||(M8.warn(this.innerName,e,t),t=void 0),W(t)||s!==t){if(this.__realSetAttr(e,t),this.isLeafer){this.emitEvent(new Ie(Ie.LEAFER_CHANGE,this,e,s,t));const r=k8[e];r&&(this.emitEvent(new ct(r,this)),this.emitEvent(new ct(ct.TRANSFORM,this)))}this.emitPropertyEvent(Ie.CHANGE,e,s,t);const n=C8[e];return n&&this.emitPropertyEvent(n,e,s,t),!0}return!1}return this.__realSetAttr(e,t),!0},emitPropertyEvent(e,t,i,s){const{leafer:n}=this;if(n.config.trackChanges||n.zoomLayer===this){const r=new Ie(e,this,t,i,s);this.isLeafer||this.hasEvent(e)&&this.emitEvent(r),n.emitEvent(r)}else n.watcher.add(this)},__realSetAttr(e,t){const i=this.__;i[e]=t,this.__proxyData&&this.setProxyAttr(e,t),i.normalStyle&&(this.lockNormalStyle||M(i.normalStyle[e])||(i.normalStyle[e]=t))},__getAttr(e){return this.__proxyData?this.getProxyAttr(e):this.__.__get(e)}},{setLayout:O8,multiplyParent:I8,translateInner:hl,defaultWorld:W8}=q,{toPoint:z8,tempPoint:Ho}=Qt,H8={__updateWorldMatrix(){const{parent:e,__layout:t,__world:i,__scrollWorld:s,__:n}=this;I8(this.__local||t,e?e.__scrollWorld||e.__world:W8,i,!!t.affectScaleOrRotation,n),s&&hl(Object.assign(s,i),n.scrollX,n.scrollY),t.scaleFixed&&tt.updateScaleFixedWorld(this)},__updateLocalMatrix(){if(this.__local){const e=this.__layout,t=this.__local,i=this.__;e.affectScaleOrRotation&&(e.scaleChanged&&(e.resized||(e.resized="scale"))||e.rotationChanged)&&(O8(t,i,null,null,e.affectRotation),e.scaleChanged=e.rotationChanged=void 0),t.e=i.x+i.offsetX,t.f=i.y+i.offsetY,(i.around||i.origin)&&(z8(i.around||i.origin,e.boxBounds,Ho),hl(t,-Ho.x,-Ho.y,!i.around))}this.__layout.matrixChanged=void 0}},{updateMatrix:X8,updateAllMatrix:cl}=tt,{updateBounds:dl}=c0,{toOuterOf:On,copyAndSpread:ul,copy:Y8}=L,{toBounds:U8}=T4,N8={__updateWorldBounds(){const{__layout:e,__world:t}=this;On(e.renderBounds,t,t),this.__hasComplex&&tt.checkComplex(this),e.resized&&(e.resized==="inner"&&this.__onUpdateSize(),this.__hasLocalEvent&&Ze.emitLocal(this),e.resized=void 0),this.__hasWorldEvent&&Ze.emitWorld(this)},__updateLocalBounds(){const e=this.__layout,t=this.__;e.boxChanged&&(t.__pathInputed||this.__updatePath(),this.__updateRenderPath(),this.__updateBoxBounds(),e.resized="inner"),e.localBoxChanged&&(this.__local&&this.__updateLocalBoxBounds(),e.localBoxChanged=void 0,e.strokeSpread&&!e.strokeChanged&&(e.strokeChanged=!!e.boxChanged||2),e.render
1Spread&&!e.renderChanged&&(e.renderChanged=!!e.boxChanged||2),this.parent&&this.parent.__layout.boxChange()),e.boxChanged=void 0,e.strokeChanged&&(e.strokeChanged===2?this.__updateLocalStrokeBounds():(e.strokeSpread=this.__updateStrokeSpread(),e.strokeSpread?(e.strokeBounds===e.boxBounds&&e.spreadStroke(),this.__updateStrokeBounds(),this.__updateLocalStrokeBounds()):e.spreadStrokeCancel(),e.resized="inner",(e.renderSpread||e.strokeSpread!==e.strokeBoxSpread)&&(e.renderChanged=!0)),e.strokeChanged=void 0,this.parent&&this.parent.__layout.strokeChange()),e.renderChanged&&(e.renderChanged===2?this.__updateLocalRenderBounds():(e.renderSpread=this.__updateRenderSpread(),e.renderSpread?(e.renderBounds!==e.boxBounds&&e.renderBounds!==e.strokeBounds||e.spreadRender(),this.__updateRenderBounds(),this.__updateLocalRenderBounds()):e.spreadRenderCancel()),e.renderChanged=void 0,this.parent&&this.parent.__layout.renderChange()),e.outerScale&&tt.updateOuterBounds(this),e.resized||(e.resized="local"),e.boundsChanged=void 0},__updateLocalBoxBounds(){this.__hasMotionPath&&this.__updateMotionPath(),this.__hasAutoLayout&&this.__updateAutoLayout(),On(this.__layout.boxBounds,this.__local,this.__local)},__updateLocalStrokeBounds(){On(this.__layout.strokeBounds,this.__localMatrix,this.__layout.localStrokeBounds)},__updateLocalRenderBounds(){On(this.__layout.renderBounds,this.__localMatrix,this.__layout.localRenderBounds)},__updateBoxBounds(e,t){const i=this.__layout.boxBounds,s=this.__;s.__usePathBox?U8(s.path,i):(i.x=0,i.y=0,i.width=s.width,i.height=s.height)},__updateAutoLayout(){this.__layout.matrixChanged=!0,this.isBranch?(this.__extraUpdate(),this.__.flow?(this.__layout.childrenSortChanged&&this.__updateSortChildren(),this.__layout.boxChanged&&this.__updateFlowLayout(),cl(this),dl(this,this),this.__.__autoSide&&this.__updateBoxBounds(!0)):(cl(this),dl(this,this))):X8(this)},__updateNaturalSize(){const{__:e,__layout:t}=this;e.__naturalWidth=t.boxBounds.width,e.__naturalHeight=t.boxBounds.height},__updateStrokeBounds(e){const t=this.__layout;ul(t.strokeBounds,t.boxBounds,t.strokeBoxSpread)},__updateRenderBounds(e){const t=this.__layout,{renderSpread:i}=t;$(i)&&i<=0?Y8(t.renderBounds,t.strokeBounds):ul(t.renderBounds,t.boxBounds,i)}},j8={__render(e,t){if(t.shape)return this.__renderShape(e,t);if((!t.cellList||t.cellList.has(this))&&this.__worldOpacity){const i=this.__;if(i.bright&&!t.topRendering)return t.topList.add(this);
1if(e.setWorld(this.__nowWorld=this.__getNowWorld(t)),e.opacity=t.ignoreOpacity?1:t.dimOpacity&&!i.dimskip?i.opacity*t.dimOpacity:i.opacity,this.__.__single){if(i.eraser==="path")return this.__renderEraser(e,t);const s=e.getSameCanvas(!0,!0);this.__draw(s,t,e),tt.copyCanvasByWorld(this,e,s,this.__nowWorld,i.__blendMode,!0),s.recycle(this.__nowWorld)}else this.__draw(e,t);rt.showBounds&&rt.drawBounds(this,e,t)}},__renderShape(e,t){this.__worldOpacity&&(e.setWorld(this.__nowWorld=this.__getNowWorld(t)),this.__drawShape(e,t))},__clip(e,t){tt.clip(this,e,t)},__updateWorldOpacity(){this.__worldOpacity=this.__.visible?this.parent?this.parent.__worldOpacity*this.__.opacity:this.__.opacity:0,this.__layout.opacityChanged&&(this.__layout.opacityChanged=!1)}},{excludeRenderBounds:gl}=as,{hasSize:V8}=L,G8={__updateChange(){this.__layout.childrenSortChanged&&this.__updateSortChildren(),this.__.__checkSingle()},__render(e,t){const i=this.__nowWorld=this.__getNowWorld(t);if(this.__worldOpacity&&V8(i)){const s=this.__;if(s.__useDim){if(s.bright&&!t.topRendering)return t.topList.add(this);s.dim?t.dimOpacity=s.dim===!0?.2:s.dim:s.dimskip&&t.dimOpacity&&(t.dimOpacity=0)}if(s.__single&&!this.isBranchLeaf){if(s.eraser==="path")return this.__renderEraser(e,t);const n=e.getSameCanvas(!1,!0);this.__renderBranch(n,t),e.opacity=t.ignoreOpacity?1:t.dimOpacity?s.opacity*t.dimOpacity:s.opacity,e.copyWorldByReset(n,i,i,s.__blendMode,!0),n.recycle(i)}else this.__renderBranch(e,t)}},__renderBranch(e,t){if(this.__hasMask)this.__renderMask(e,t);else{let i;const{children:s}=this;for(let n=0,r=s.length;n<r;n++)i=s[n],gl(i,t)||(i.__hasComplex?tt.renderComplex(i,e,t):i.__render(e,t));this.__hasMask===0&&this.__rerenderMask(e,t)}},__clip(e,t){if(this.__worldOpacity){const{children:i}=this;for(let s=0,n=i.length;s<n;s++)gl(i[s],t)||i[s].__clip(e,t)}}},{LEAF:q8,create:K8}=ci,{stintSet:pl}=K,{toInnerPoint:Z8,toOuterPoint:$8,multiplyParent:J8}=q,{toOuterOf:fl}=L,{copy:_l,move:yl}=R,{getScaleFixedData:Q8}=_t,{moveLocal:t7,zoomOfLocal:e7,rotateOfLocal:i7,skewOfLocal:s7,moveWorld:ml,zoomOfWorld:n7,rotateOfWorld:r7,skewOfWorld:o7,transform:xl,transformWorld:a7,setTransform:l7,getFlipTransform:h7,getLocalOrigin:Xo,getRelativeWorld:c7,drop:d7}=tt;let is=class{get tag(){return this.__tag}set tag(e){}get __tag(){return"Leaf"}get innerName(){return this.__.name||this.tag+this.innerId}get __DataProcessor(){return y4}get __LayoutProcessor(){return v8}get leaferIsCreated(){return this.leafer&&this.leafer.created}get leaferIsReady(){return this.leafer&&this.leafer.ready}get isLeafer(){return!1}get isFrame(){return!1}get isBranch(){return!1}get isBranchLeaf(){return!1}get __localMatrix(){return this.__local||this.__layout}get __localBoxBounds(){return this.__local||this.__layout}get worldTransform(){return this.__layout.getTransform("world")}get localTransform(){return this.__layout.getTransform("local")}get scrollWorldTransform(){return this.updateLayout(),this.__scrollWorld||this.__world}get boxBounds(){return this.getBounds("box","inner")}get renderBounds(){return this.getBounds("render","inner")}get worldBoxBounds(){return this.getBounds("box")}get worldStrokeBounds(){return this.getBounds("stroke")}get worldRenderBounds(){return this.getBounds("render")}get worldOpacity(){return this.updateLayout(),this.__worldOpacity}get __worldFlipped(){return this.__world.scaleX<0||this.__world.scaleY<0}get __onlyHitMask(){return this.__hasMask&&!this.__.hitChildren}get __ignoreHitWorld(){return(this.__hasMask||this.__hasEraser)&&this.__.hitChildren}get __inLazyBounds(){return this.leaferIsCreated&&this.leafer.lazyBounds.hit(this.__world)}get pathInputed(){return this.__.__pathInputed}set event(e){this.on(e)}constructor(e){this.innerId=K8(q8),this.reset(e),this.__bubbleMap&&this.__emitLifeEvent(Mt.CREATED)}reset(e){this.leafer&&this.leafer.forceRender(this.__world),e!==0&&(this.__world={a:1,b:0,c:0,d:1,e:0,f:0,x:0,y:0,width:0,height:0,scaleX:1,scaleY:1},e!==null&&(this.__local={a:1,b:0,c:0,d:1,e:0,f:0,x:0,y:0,width:0,height:0})),this.__worldOpacity=1,this.__=new this.__DataProcessor(this),this.__layout=new this.__LayoutProcessor(this),this.__level&&this.resetCustom(),e&&(e.__&&(e=e.toJSON()),e.children?this.set(e):Object.assign(this,e))}resetCustom(){this.__hasMask=this.__hasEraser=null,this.forceUpdate()}waitParentChange(e){this.__parentChange||(this.__parentChange=[]),this.__parentChange.includes(e)||this.__parentChange.push(e),this.parent&&e(this.parent,this)}waitParent(e,t){t&&(e=e.bind(t)),this.parent?e():this.on(Mt.ADD,e,"once")}waitLeafer(e,t){t&&(e=e.bind(t)),this.leafer?e():this.on(Mt.MOUNTED,e,"once")}nextRender(e,t,i){this.leafer?this.leafer.nextRender(e,t,i):this.waitLeafer(()=>this.leafer.nextRender(e,t,i))}removeNextRender(e){this.nextRender(e,null,"off")}__bindLeafer(e){if(this.isLeafer&&e!==null&&(e=this),this.leafer&&!e&&this.leafer.leafs--,this.leafer=e,e?(e.leafs++,this.__level=this.parent?this.parent.__level+1:1,this.animation&&this.__runAnimation("in"),this.__bubbleMap&&this.__emitLifeEvent(Mt.MOUNTED),e.cacheId&&tt.cacheId(this)):this.__emitLifeEvent(Mt.UNMOUNTED),this.isBranch){const{children:t}=this;for(let i=0,s=t.length;i<s;i++)t[i].__bindLeafer(e)}}__bindFrame(e){if(this.isFrame&&e!==null&&(e=this),this.frame=e,this.isBranch){const{children:t}=this;for(let i=0,s=t.length;i<s;i++)t[i].__bindFrame(e)}}setAttr(e,t){this[e]=t}getAttr(e){return this[e]}getComputedAttr(e){return this.__[e]}
1toJSON(e){return e&&this.__layout.update(),this.__.__getInputData(null,e)}toString(e){return JSON.stringify(this.toJSON(e))}scaleResize(e,t=e,i,s){this.scaleX*=e,this.scaleY*=t}updateLayout(){this.__layout.update()}forceUpdate(e){let t;if(e&&e!=="bounds"?e==="surface"?(P4(this),t=!0):e==="stroke"&&(I1(this),t=!0):(Ae(this),t=!0),t){const{leafer:s}=this;return s&&s.watcher&&s.watcher.__onAttrChange({target:this})}const i=this.__.__getInput(e);this.__[e]=M(i)?null:void 0,this[e]=i}forceRender(e,t){this.forceUpdate("surface")}__extraUpdate(){this.leaferIsReady&&this.leafer.layouter.addExtra(this)}__updateEraser(){this.__hasEraser=this.children.some(e=>e.__.eraser)}__renderEraser(e,t){e.save(),this.__clip(e,t);const{renderBounds:i}=this.__layout;e.clearRect(i.x,i.y,i.width,i.height),e.restore()}__updateMask(){const e=this.children.some(t=>t.__.mask&&t.__.visible&&t.__.opacity);this.__hasMask=this.__.maskskip?e&&0:e}__getNowWorld(e){if(e.matrix){this.__cameraWorld||(this.__cameraWorld={});const t=this.__cameraWorld,i=this.__world;return J8(i,e.matrix,t,void 0,i),fl(this.__layout.renderBounds,t,t),pl(t,"half",i.half),pl(t,"ignorePixelSnap",i.ignorePixelSnap),t}return this.__world}getClampRenderScale(){let{scaleX:e}=this.__nowWorld||this.__world;return e<0&&(e=-e),e>1?e:1}getRenderScaleData(e,t,i=!0){return Q8(Ee.patternLocked?this.__world:this.__nowWorld||this.__world,t,i,e)}getTransform(e){return this.__layout.getTransform(e||"local")}getBounds(e,t){return this.__layout.getBounds(e,t)}getLayoutBounds(e,t,i){return this.__layout.getLayoutBounds(e,t,i)}getLayoutPoints(e,t){return this.__layout.getLayoutPoints(e,t)}getWorldBounds(e,t,i){const s=t?c7(this,t):this.worldTransform,n=i?e:{};return fl(e,s,n),n}worldToLocal(e,t,i,s){this.parent?this.parent.worldToInner(e,t,i,s):t&&_l(t,e)}localToWorld(e,t,i,s){this.parent?this.parent.innerToWorld(e,t,i,s):t&&_l(t,e)}worldToInner(e,t,i,s){s&&(s.innerToWorld(e,t,i),e=t||e),Z8(this.worldTransform,e,t,i)}innerToWorld(e,t,i,s){$8(this.worldTransform,e,t,i),s&&s.worldToInner(t||e,null,i)}getBoxPoint(e,t,i,s){const n=this.getInnerPoint(e,t,i,s);return i?n:this.getBoxPointByInner(n,null,null,!0)}getBoxPointByInner(e,t,i,s){const n=s?e:Object.assign({},e),{x:r,y:o}=this.boxBounds;return yl(n,-r,-o),n}getInnerPoint(e,t,i,s){const n=s?e:{};return this.worldToInner(e,n,i,t),n}getInnerPointByBox(e,t,i,s){const n=s?e:Object.assign({},e),{x:r,y:o}=this.boxBounds;return yl(n,r,o),n}getInnerPointByLocal(e,t,i,s){return this.getInnerPoint(e,this.parent,i,s)}getLocalPoint(e,t,i,s){const n=s?e:{};return this.worldToLocal(e,n,i,t),n}getLocalPointByInner(e,t,i,s){return this.getWorldPoint(e,this.parent,i,s)}getPagePoint(e,t,i,s){return(this.leafer?this.leafer.zoomLayer:this).getInnerPoint(e,t,i,s)}getWorldPoint(e,t,i,s){const n=s?e:{};return this.innerToWorld(e,n,i,t),n}getWorldPointByBox(e,t,i,s){return this.getWorldPoint(this.getInnerPointByBox(e,null,null,s),t,i,!0)}getWorldPointByLocal(e,t,i,s){const n=s?e:{};return this.localToWorld(e,n,i,t),n}getWorldPointByPage(e,t,i,s){return(this.leafer?this.leafer.zoomLayer:this).getWorldPoint(e,t,i,s)}setTransform(e,t,i,s){l7(this,e,t,i,s)}transform(e,t,i,s){xl(this,e,t,i,s)}move(e,t,i){t7(this,e,t,i)}moveInner(e,t,i){ml(this,e,t,!0,i)}scaleOf(e,t,i,s,n,r){e7(this,Xo(this,e),t,i,s,n,r)}rotateOf(e,t,i){i7(this,Xo(this,e),t,i)}skewOf(e,t,i,s,n){s7(this,Xo(this,e),t,i,s,n)}transformWorld(e,t,i,s){a7(this,e,t,i,s)}moveWorld(e,t,i){ml(this,e,t,!1,i)}scaleOfWorld(e,t,i,s,n,r){n7(this,e,t,i,s,n,r)}rotateOfWorld(e,t){r7(this,e,t)}skewOfWorld(e,t,i,s,n){o7(this,e,t,i,s,n)}flip(e,t){xl(this,h7(this,e),!1,t)}remove(e,t){this.parent&&this.parent.remove(this,t)}dropTo(e,t,i){d7(this,e,t,i)}static changeAttr(e,t,i){i?this.addAttr(e,t,i):D4(this.prototype,e,t)}static addAttr(e,t,i,s){i||(i=Z),i(t,s)(this.prototype,e)}__emitLifeEvent(e){this.hasEvent(e)&&this.emitEvent(new Mt(e,this,this.parent))}destroy(){this.destroyed||(this.parent&&this.remove(),this.children&&this.clear(),this.__emitLifeEvent(Mt.DESTROY),this.__.destroy(),this.__layout.destroy(),this.destroyEventer(),this.destroyed=!0)}};is=p([ce(D8),ce(H8),ce(N8),ce(z1),ce(j8)],is);const{setListWithFn:Yo}=L,{sort:u7}=c0,{localBoxBounds:g7,localStrokeBounds:p7,localRenderBounds:f7,maskLocalBoxBounds:_7,maskLocalStrokeBounds:y7,maskLocalRenderBounds:m7}=as,x7=new rt("Branch");let l1=class extends is{__updateStrokeSpread(){const{children:e}=this;for(let t=0,i=e.length;t<i;t++)if(e[t].__layout.strokeSpread)return 1;return 0}__updateRenderSpread(){let e;const{children:t}=this;for(let i=0,s=t.length;i<s;
1i++)if(e=t[i].__layout,e.renderSpread||e.localOuterBounds)return 1;return 0}__updateBoxBounds(e,t){Yo(t||this.__layout.boxBounds,this.children,this.__hasMask?_7:g7)}__updateStrokeBounds(e){Yo(e||this.__layout.strokeBounds,this.children,this.__hasMask?y7:p7)}__updateRenderBounds(e){Yo(e||this.__layout.renderBounds,this.children,this.__hasMask?m7:f7)}__updateSortChildren(){let e;const{children:t}=this;if(t.length>1){for(let i=0,s=t.length;i<s;i++)t[i].__tempNumber=i,t[i].__.zIndex&&(e=!0);t.sort(u7),this.__layout.affectChildrenSort=e}this.__layout.childrenSortChanged=!1}add(e,t){if(e===this||e.destroyed)return x7.warn("add self or destroyed");const i=M(t);if(!e.__){if(J(e))return e.forEach(n=>{this.add(n,t),i||t++});if(!(e=on.get(e.tag,e)))return}e.parent&&e.parent.remove(e),e.parent=this,i?this.children.push(e):this.children.splice(t,0,e),e.isBranch&&(this.__.__childBranchNumber=(this.__.__childBranchNumber||0)+1);const s=e.__layout;s.boxChanged||s.boxChange(),s.matrixChanged||s.matrixChange(),e.__parentChange&&e.__parentChange.forEach(n=>n(this,e)),e.__bubbleMap&&e.__emitLifeEvent(Mt.ADD),this.isFrame&&e.__bindFrame(this),this.leafer&&(e.__bindLeafer(this.leafer),this.leafer.created&&this.__emitChildEvent(Mt.ADD,e)),this.__layout.affectChildrenSort&&this.__layout.childrenSortChange()}addMany(...e){this.add(e)}remove(e,t){e?e.__?e.animationOut?e.__runAnimation("out",()=>this.__remove(e,t)):this.__remove(e,t):this.find(e).forEach(i=>this.remove(i,t)):M(e)&&super.remove(null,t)}removeAll(e){const{children:t}=this;t.length&&(this.children=[],this.__preRemove(),this.__.__childBranchNumber=0,t.forEach(i=>{this.__realRemoveChild(i),e&&i.destroy()}))}clear(){this.removeAll(!0)}__remove(e,t){const i=this.children.indexOf(e);i>-1&&(this.children.splice(i,1),e.isBranch&&(this.__.__childBranchNumber=(this.__.__childBranchNumber||1)-1),this.__preRemove(),this.__realRemoveChild(e),t&&e.destroy())}__preRemove(){this.__hasMask&&this.__updateMask(),this.__hasEraser&&this.__updateEraser(),this.__layout.boxChange(),this.__layout.affectChildrenSort&&this.__layout.childrenSortChange()}__realRemoveChild(e){e.__emitLifeEvent(Mt.REMOVE),e.parent=null,this.leafer&&(e.__bindLeafer(null),this.leafer.created&&(this.__emitChildEvent(Mt.REMOVE,e),this.leafer.hitCanvasManager&&this.leafer.hitCanvasManager.clear())),this.isFrame&&e.__bindFrame(null)}__emitChildEvent(e,t){const{leafer:i}=this;if(i.config.trackChanges||i.zoomLayer===this){const s=new Mt(e,t,this);this.hasEvent(e)&&!this.isLeafer&&this.emitEvent(s),i.emitEvent(s)}else i.watcher.addChild(t,this,e)}};l1=p([ce(G8)],l1);class xt{get length(){return this.list.length}constructor(t){this.reset(),t&&(J(t)?this.addList(t):this.add(t))}has(t){return t&&!M(this.keys[t.innerId])}indexAt(t){return this.list[t]}indexOf(t){const i=this.keys[t.innerId];return M(i)?-1:i}add(t){const{list:i,keys:s}=this;M(s[t.innerId])&&(i.push(t),s[t.innerId]=i.length-1)}addAt(t,i=0){const{keys:s}=this;if(M(s[t.innerId])){const{list:n}=this;for(let r=i,o=n.length;r<o;r++)s[n[r].innerId]++;i===0?n.unshift(t):(i>n.length&&(i=n.length),n.splice(i,0,t)),s[t.innerId]=i}}addList(t){for(let i=0;i<t.length;i++)this.add(t[i])}remove(t){const{list:i}=this;let s;for(let n=0,r=i.length;n<r;n++)M(s)?i[n].innerId===t.innerId&&(s=n,delete this.keys[t.innerId]):this.keys[i[n].innerId]=n-1;M(s)||i.splice(s,1)}sort(t){const{list:i}=this;t?i.sort((s,n)=>n.__level-s.__level):i.sort((s,n)=>s.__level-n.__level)}forEach(t){this.list.forEach(t)}clone(){const t=new xt;return t.list=[...this.list],t.keys=Object.assign({},this.keys),t}update(){this.keys={};const{list:t,keys:i}=this;for(let s=0,n=t.length;s<n;s++)i[t[s].innerId]=s}reset(){this.list=[],this.keys={}}destroy(){this.reset()}}class w7{get length(){return this._length}constructor(t){this._length=0,this.reset(),t&&(J(t)?this.addList(t):this.add(t))}has(t){return!M(this.keys[t.innerId])}without(t){return M(this.keys[t.innerId])}sort(t){const{levels:i}=this;t?i.sort((s,n)=>n-s):i.sort((s,n)=>s-n)}addList(t){t.forEach(i=>{this.add(i)})}add(t){const{keys:i,levelMap:s}=this;i[t.innerId]||(i[t.innerId]=1,s[t.__level]?s[t.__level].push(t):(s[t.__level]=[t],this.levels.push(t.__level)),this._length++)}forEach(t){let i;
1this.levels.forEach(s=>{i=this.levelMap[s];for(let n=0,r=i.length;n<r;n++)t(i[n])})}reset(){this.levelMap={},this.keys={},this.levels=[],this._length=0}destroy(){this.levelMap=null}}const lf="2.2.11",wl=rt.get("LeaferCanvas");class W4 extends D1{set zIndex(t){const{style:i}=this.view;i.zIndex=t,this.setAbsolute(this.view)}set childIndex(t){const{view:i,parentView:s}=this;if(i&&s){const n=s.children[t];n?(this.setAbsolute(n),s.insertBefore(i,n)):s.appendChild(n)}}init(){const{config:t}=this,i=t.view||t.canvas;i?this.__createViewFrom(i):this.__createView();const{style:s}=this.view;if(s.display||(s.display="block"),this.parentView=this.view.parentElement,this.parentView){const n=this.parentView.style;n.webkitUserSelect=n.userSelect="none",this.view.classList.add("leafer-canvas-view")}A.syncDomFont&&!this.parentView&&(s.display="none",document.body&&document.body.appendChild(this.view)),this.__createContext(),this.autoLayout||this.resize(t)}set backgroundColor(t){this.view.style.backgroundColor=t}get backgroundColor(){return this.view.style.backgroundColor}set hittable(t){this.view.style.pointerEvents=t?"auto":"none"}get hittable(){return this.view.style.pointerEvents!=="none"}__createView(){this.view=document.createElement("canvas")}__createViewFrom(t){let i=G(t)?document.getElementById(t):t;if(i)if(i instanceof HTMLCanvasElement)this.view=i;else{let s=i;if(i===window||i===document){const r=document.createElement("div"),{style:o}=r;o.position="absolute",o.top=o.bottom=o.left=o.right="0px",document.body.appendChild(r),s=r}this.__createView();const n=this.view;s.hasChildNodes()&&(this.setAbsolute(n),s.style.position||(s.style.position="relative")),s.appendChild(n)}else wl.error(`no id: ${t}`),this.__createView()}setAbsolute(t){const{style:i}=t;i.position="absolute",i.top=i.left="0px"}updateViewSize(){const{width:t,height:i,pixelRatio:s}=this,{style:n}=this.view;n.width=t+"px",n.height=i+"px",this.unreal||(this.view.width=Math.ceil(t*s),this.view.height=Math.ceil(i*s))}updateClientBounds(){this.view.parentElement&&(this.clientBounds=this.view.getBoundingClientRect())}startAutoLayout(t,i){if(this.resizeListener=i,t){if(this.autoBounds=t,this.resizeObserver)return;try{this.resizeObserver=new ResizeObserver(n=>{this.updateClientBounds();for(const r of n)this.checkAutoBounds(r.contentRect)});const s=this.parentView;s?(this.resizeObserver.observe(s),this.checkAutoBounds(s.getBoundingClientRect())):(this.checkAutoBounds(this.view),wl.warn("no parent"))}catch{this.imitateResizeObserver()}this.stopListenPixelRatio()}else this.listenPixelRatio(),this.unreal&&this.updateViewSize()}imitateResizeObserver(){this.autoLayout&&(this.parentView&&this.checkAutoBounds(this.parentView.getBoundingClientRect()),A.requestRender(this.imitateResizeObserver.bind(this)))}listenPixelRatio(){this.windowListener||window.addEventListener("resize",this.windowListener=()=>{const t=A.devicePixelRatio;if(!this.config.pixelRatio&&this.pixelRatio!==t){const{width:i,height:s}=this;this.emitResize({width:i,height:s,pixelRatio:t})}})}stopListenPixelRatio(){this.windowListener&&(window.removeEventListener("resize",this.windowListener),this.windowListener=null)}checkAutoBounds(t){const i=this.view,{x:s,y:n,width:r,height:o}=this.autoBounds.getBoundsFrom(t),a={width:r,height:o,pixelRatio:this.config.pixelRatio?this.pixelRatio:A.devicePixelRatio};if(!this.isSameSize(a)){const{style:l}=i;l.marginLeft=s+"px",l.marginTop=n+"px",this.emitResize(a)}}stopAutoLayout(){this.autoLayout=!1,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeListener=this.resizeObserver=null}emitResize(t){const i={};K.copyAttrs(i,this,De),this.resize(t),this.resizeListener&&!M(this.width)&&this.resizeListener(new Je(t,i))}unrealCanvas(){if(!this.unreal&&this.parentView){let t=this.view;t&&t.remove(),t=this.view=document.createElement("div"),this.parentView.appendChild(this.view),t.classList.add("leafer-app-view"),this.unreal=!0}}destroy(){const{view:t}=this;t&&(this.stopAutoLayout(),this.stopListenPixelRatio(),t.parentElement&&t.remove(),super.destroy())}}function v7(e,t){A.origin={createCanvas(i,s){const n=document.createElement("canvas");return n.width=i,n.height=s,n},canvasToDataURL:(i,s,n)=>{const r=Se.mimeType(s),o=i.toDataURL(r,n);return r==="image/bmp"?o.replace("image/png;","image/bmp;"):o},canvasToBolb:(i,s,n)=>new Promise(r=>i.toBlob(r,Se.mimeType(s),n)),canvasSaveAs:(i,s,n)=>{const r=i.toDataURL(Se.mimeType(Se.fileType(s)),n);return A.origin.download(r,s)},download(i,s){return l0(this,void 0,void 0,function*(){let n=document.createElement("a");n.href=i,n.download=s,document.body.appendChild(n),n.click(),document.body.removeChild(n)})},loadImage:(i,s,n)=>new Promise((r,o)=>{const a=new A.origin.Image;s&&(a.setAttribute("crossOrigin",s),a.crossOrigin=s),a.onload=()=>{r(a)},a.onerror=l=>{o(l)},a.src=A.image.getRealURL(i)}),loadContent(i){return l0(this,arguments,void 0,function*(s,n="text"){const r=yield fetch(s);if(!r.ok)throw new Error(`${r.status}`);return yield r[n]()})},Image,PointerEvent,DragEvent},A.event={stopDefault(i){i.preventDefault()},stopNow(i){i.stopImmediatePropagation()},stop(i){i.stopPropagation()}},A.canvas=bt.canvas(),A.conicGradientSupport=!!A.canvas.context.createConicGradient}G2(CanvasRenderingContext2D.prototype),G2(Path2D.prototype),Object.assign(bt,{canvas:(e,t)=>new W4(e,t),image:e=>new $r(e)}),A.name="web",A.isMobile="ontouchstart"in window,A.requestRender=function(e){window.requestAnimationFrame(e)},xe(A,"devicePixelRatio",{get:()=>devicePixelRatio});const{userAgent:In}=navigator;In.indexOf("Firefox")>-1?(A.intWheelDeltaY=!0,A.syncDomFont=!0):(/iPhone|iPad|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent))&&(A.fullImageShadow=!0),In.indexOf("Windows")>-1?(A.os="Windows",A.intWheelDeltaY=!0):In.indexOf("Mac")>-1?A.os="Mac":In.indexOf("Linux")>-1&&(A.os="Linux");class C7{get childrenChanged(){return this.hasAdd||this.hasRemove||this.hasVisible}get updatedList(){if(this.hasRemove&&this.config.usePartLayout){const t=new xt;return this.__updatedList.list.forEach(i=>
1{i.leafer&&t.add(i)}),t}return this.__updatedList}constructor(t,i){this.totalTimes=0,this.changed=0,this.config={},this.__updatedList=new xt,this.target=t,i&&(this.config=K.default(i,this.config)),this.__listenEvents()}start(){this.disabled||(this.running=!0)}stop(){this.running=!1}disable(){this.stop(),this.__removeListenEvents(),this.disabled=!0}update(){this.changed<100&&(this.changed++,this.running&&this.target.emit(ut.REQUEST))}__onAttrChange(t){this.add(t.target)}add(t){this.config.usePartLayout&&this.__updatedList.add(t),this.update()}addChild(t,i,s){this.config.usePartLayout&&(s===Mt.ADD?(this.hasAdd=!0,this.__pushChild(t)):(this.hasRemove=!0,this.__updatedList.add(i))),this.update()}__onChildEvent(t){this.addChild(t.child,t.parent,t.type)}__pushChild(t){this.__updatedList.add(t),t.isBranch&&this.__loopChildren(t)}__loopChildren(t){const{children:i}=t;for(let s=0,n=i.length;s<n;s++)this.__pushChild(i[s])}__onRquestData(){this.target.emitEvent(new Ti(Ti.DATA,{updatedList:this.updatedList})),this.__updatedList=new xt,this.totalTimes++,this.hasVisible=this.hasRemove=this.hasAdd=!1,this.changed=0}__listenEvents(){this.__eventIds=[this.target.on_([[Ie.CHANGE,this.__onAttrChange,this],[[Mt.ADD,Mt.REMOVE],this.__onChildEvent,this],[Ti.REQUEST,this.__onRquestData,this]])]}__removeListenEvents(){this.target.off_(this.__eventIds)}destroy(){this.target&&(this.stop(),this.__removeListenEvents(),this.target=this.__updatedList=null)}}const{updateAllMatrix:b7,updateBounds:vl,updateChange:k7}=tt,{pushAllChildBranch:B7,pushAllParent:S7}=c0,Wn={updateMatrix(e,t){let i,s,n=0;const{list:r}=e;for(;n<r.length;)i=r[n],s=i.__layout,t.without(i)&&!s.proxyZoom&&(s.matrixChanged?(b7(i,!0),i.isBranch&&B7(i,t),Uo(i,t)):s.boundsChanged&&(i.isBranch&&(i.__tempNumber=0),Uo(i,t))),n++},updateBounds(e){let t,i,s,n,r=0;const{levels:o,levelMap:a}=e;for(e.sort(!0);r<o.length;){t=o[r],i=a[t];for(let l=0,h=i.length;l<h;l++){if(s=i[l],s.isBranch&&s.__tempNumber){n=s.children;for(let c=0,u=n.length;c<u;c++)n[c].isBranch||vl(n[c])}vl(s)}r++}},updateChange(e){e.list.forEach(k7)},push:Uo};function Uo(e,t){t.add(e),S7(e,t)}const{worldBounds:Cl}=as;class bl{constructor(t){this.updatedBounds=new nt,this.beforeBounds=new nt,this.afterBounds=new nt,J(t)&&(t=new xt(t)),this.updatedList=t}setBefore(){this.beforeBounds.setListWithFn(this.updatedList.list,Cl)}setAfter(){this.afterBounds.setListWithFn(this.updatedList.list,Cl),this.updatedBounds.setList([this.beforeBounds,this.afterBounds])}merge(t){this.updatedList.addList(t.updatedList.list),this.beforeBounds.add(t.beforeBounds),this.afterBounds.add(t.afterBounds),this.updatedBounds.add(t.updatedBounds)}destroy(){this.updatedList=null}}const{updateAllMatrix:E7,updateAllChange:A7}=tt,No=rt.get("Layouter");class Wr{constructor(t,i){this.totalTimes=0,this.config={usePartLayout:!0},this.__levelList=new w7,this.target=t,i&&(this.config=K.default(i,this.config)),this.__listenEvents()}start(){this.disabled||(this.running=!0)}stop(){this.running=!1}disable(){this.stop(),this.__removeListenEvents(),this.disabled=!0}layout(){if(this.layouting||!this.running)return;const{target:t}=this;this.times=0;try{t.emit(Et.START),this.layoutOnce(),t.emitEvent(new Et(Et.END,this.layoutedBlocks,this.times))}catch(i){No.error(i)}this.layoutedBlocks=null}layoutAgain(){this.layouting?this.waitAgain=!0:this.layoutOnce()}layoutOnce(){return this.layouting?No.warn("layouting"):this.times>3?No.warn("layout max times"):(this.times++,this.totalTimes++,this.layouting=!0,this.target.emit(Ti.REQUEST),this.totalTimes>1&&this.config.usePartLayout?this.partLayout():this.fullLayout(),this.layouting=!1,void(this.waitAgain&&(this.waitAgain=!1,this.layoutOnce())))}partLayout(){var t;if(!(!((t=this.__updatedList)===null||t===void 0)&&t.length))return;const i=ye.start("PartLayout"),{target:s,__updatedList:n}=this,{BEFORE:r,LAYOUT:o,AFTER:a}=Et,l=this.getBlocks(n);l.forEach(h=>h.setBefore()),s.emitEvent(new Et(r,l,this.times)),this.extraBlock=null,n.sort(),Wn.updateMatrix(n,this.__levelList),Wn.updateBounds(this.__levelList),Wn.updateChange(n),this.extraBlock&&l.push(this.extraBlock),l.forEach(h=>h.setAfter()),s.emitEvent(new Et(o,l,this.times)),s.emitEvent(new Et(a,l,this.times)),this.addBlocks(l),this.__levelList.reset(),this.__updatedList=null,ye.end(i)}fullLayout(){const t=ye.start("FullLayout"),{target:i}=this,{BEFORE:s,LAYOUT:n,AFTER:r}=Et,o=this.getBlocks(new xt(i));i.emitEvent(new Et(s,o,this.times)),Wr.fullLayout(i),o.forEach(a=>{a.setAfter()}),i.emitEvent(new Et(n,o,this.times)),i.emitEvent(new Et(r,o,this.times)),this.addBlocks(o),ye.end(t)}static fullLayout(t){E7(t,!0),t.isBranch?c0.updateBounds(t):tt.updateBounds(t),A7(t)}addExtra(t,i){if(!this.__updatedList.has(t)){const{updatedList:s,beforeBounds:n}=this.extraBlock||(this.extraBlock=new bl([]));if(s.length?n.add(t.__world):n.set(t.__world),s.add(t),i){const r=this.__levelList;Wn.push(t,r),r.sort(!0)}}}createBlock(t){return new bl(t)}getBlocks(t){return[this.createBlock(t)]}addBlocks(t){this.layoutedBlocks?this.layoutedBlocks.push(...t):this.layoutedBlocks=t}__onReceiveWatchData(t){this.__updatedList=t.data.updatedList}__listenEvents(){this.__eventIds=[this.target.on_([[Et.REQUEST,this.layout,this],[Et.AGAIN,this.layoutAgain,this],[Ti.DATA,this.__onReceiveWatchData,this]])]}__removeListenEvents(){this.target.off_(this.__eventIds)}destroy(){this.target&&(this.stop(),this.__removeListenEvents(),this.target=this.config=null)}}const C0=rt.get("Renderer");
1class Jr{get needFill(){return!(this.canvas.allowBackgroundColor||!this.config.fill)}constructor(t,i,s){this.FPS=60,this.totalTimes=0,this.times=0,this.config={usePartRender:!0,ceilPartPixel:!0,maxFPS:120},this.frames=[],this.target=t,this.canvas=i,s&&(this.config=K.default(s,this.config)),this.__listenEvents()}start(){this.running=!0,this.update(!1)}stop(){this.running=!1}update(t=!0){this.changed||(this.changed=t),this.requestTime||this.__requestRender()}requestLayout(){this.target.emit(Et.REQUEST)}checkRender(){if(this.running){const{target:t}=this;t.isApp&&(t.emit(ut.CHILD_START,t),t.children.forEach(i=>{i.renderer.FPS=this.FPS,i.renderer.checkRender()}),t.emit(ut.CHILD_END,t)),this.changed&&this.canvas.view&&this.render(),this.target.emit(ut.NEXT)}}render(t){if(!this.running||!this.canvas.view)return this.update();const{target:i}=this;this.times=0,this.totalBounds=new nt,C0.log(i.innerName,"--->");try{this.emitRender(ut.START),this.renderOnce(t),this.emitRender(ut.END,this.totalBounds),Ee.clearRecycled()}catch(s){this.rendering=!1,C0.error(s)}C0.log("-------------|")}renderAgain(){this.rendering?this.waitAgain=!0:this.renderOnce()}renderOnce(t){if(this.rendering)return C0.warn("rendering");if(this.times>3)return C0.warn("render max times");if(this.times++,this.totalTimes++,this.rendering=!0,this.changed=!1,this.renderBounds=new nt,this.renderOptions={},t)this.emitRender(ut.BEFORE),t();else{if(this.requestLayout(),this.ignore)return void(this.ignore=this.rendering=!1);this.emitRender(ut.BEFORE),this.config.usePartRender&&this.totalTimes>1?this.partRender():this.fullRender()}this.emitRender(ut.RENDER,this.renderBounds,this.renderOptions),this.emitRender(ut.AFTER,this.renderBounds,this.renderOptions),this.updateBlocks=null,this.rendering=!1,this.waitAgain&&(this.waitAgain=!1,this.renderOnce())}partRender(){const{canvas:t,updateBlocks:i}=this;i&&(this.mergeBlocks(),i.forEach(s=>{t.bounds.hit(s)&&!s.isEmpty()&&this.clipRender(s)}))}clipRender(t){const i=ye.start("PartRender"),{canvas:s}=this,n=t.getIntersect(s.bounds),r=new nt(n);s.save(),n.spread(Jr.clipSpread).ceil();const{ceilPartPixel:o}=this.config;s.clipWorld(n,o),s.clearWorld(n,o),this.__render(n,r),s.restore(),ye.end(i)}fullRender(){const t=ye.start("FullRender"),{canvas:i}=this;i.save(),i.clear(),this.__render(i.bounds),i.restore(),ye.end(t)}__render(t,i){const{canvas:s,target:n}=this,r=t.includes(n.__world),o=r?{includes:r}:{bounds:t,includes:r};this.needFill&&s.fillWorld(t,this.config.fill),rt.showRepaint&&rt.drawRepaint(s,t),this.config.useCellRender&&(o.cellList=this.getCellList()),A.render(n,s,o),this.renderBounds=i=i||t,this.renderOptions=o,this.totalBounds.isEmpty()?this.totalBounds=i:this.totalBounds.add(i),s.updateRender(i)}getCellList(){}addBlock(t,i){this.updateBlocks||(this.updateBlocks=[]),this.updateBlocks.push(t)}mergeBlocks(){const{updateBlocks:t}=this;if(t){const i=new nt;i.setList(t),t.length=0,t.push(i)}}__requestRender(){const t=this.target;if(this.requestTime||!t)return;if(t.parentApp)return t.parentApp.requestRender(!1);this.requestTime=this.frameTime||Date.now();const i=()=>{const s=1e3/((this.frameTime=Date.now())-this.requestTime),{maxFPS:n}=this.config;if(n&&s>n)return A.requestRender(i);const{frames:r}=this;r.length>30&&r.shift(),r.push(s),this.FPS=Math.round(r.reduce((o,a)=>o+a,0)/r.length),this.requestTime=0,this.checkRender()};A.requestRender(i)}__onResize(t){if(!this.canvas.unreal){if(t.bigger||!t.samePixelRatio){const{width:i,height:s}=t.old;if(!new nt(0,0,i,s).includes(this.target.__world)||this.needFill||!t.samePixelRatio)return this.addBlock(this.canvas.bounds),void this.target.forceUpdate("surface")}this.addBlock(new nt(0,0,1,1)),this.update()}}__onLayoutEnd(t){t.data&&t.data.map(i=>{let s;const{updatedList:n}=i;n&&n.list.some(r=>(s=!r.__world.width||!r.__world.height,s&&(r.isLeafer||C0.tip(r.innerName,": empty"),s=!r.isBranch||r.isBranchLeaf),s)),this.addBlock(s?this.canvas.bounds:i.updatedBounds,n)})}emitRender(t,i,s){this.target.emitEvent(new ut(t,this.times,i,s))}__listenEvents(){this.__eventIds=[this.target.on_([[ut.REQUEST,this.update,this],[Et.END,this.__onLayoutEnd,this],[ut.AGAIN,this.renderAgain,this],[Je.RESIZE,this.__onResize,this]])]}__removeListenEvents(){this.target.off_(this.__eventIds)}destroy(){this.target&&(this.stop(),this.__removeListenEvents(),this.config={},this.target=this.canvas=null)}}Jr.clipSpread=10;const T7={},{copyRadiusPoint:R7}=R,{hitRadiusPoint:L7}=L;class F7{constructor(t,i){this.target=t,this.selector=i}getByPoint(t,i,s){i||(i=0),s||(s={});const n=s.through||!1,r=s.ignoreHittable||!1,o=s.target||this.target;this.exclude=s.exclude||null,this.point={x:t.x,y:t.y,radiusX:i,radiusY:i},this.findList=new xt(s.findList),s.findList||this.hitBranch(o.isBranchLeaf?{children:[o]}:o);const{list:a}=this.findList,l=this.getBestMatchLeaf(a,s.bottomList,r,!!s.findList),h=r?this.getPath(l):this.getHitablePath(l);return this.clear(),n?{path:h,target:l,throughPath:a.length?this.getThroughPath(a):h}:{path:h,target:l}}hitPoint(t,i,s){return!!this.getByPoint(t,i,s).target}getBestMatchLeaf(t,i,s,n){const r=this.findList=new xt;if(t.length){let o;const{x:a,y:l}
1=this.point,h={x:a,y:l,radiusX:0,radiusY:0};for(let c=0,u=t.length;c<u;c++)if(o=t[c],(s||tt.worldHittable(o))&&(this.hitChild(o,o.hitThrough?this.point:h,o.mask&&o.parent&&o.parent.__onlyHitMask),r.length)){if(o.isBranchLeaf&&t.some(g=>g!==o&&tt.hasParent(g,o))){r.reset();break}return r.list[0]}}if(i){for(let o=0,a=i.length;o<a;o++)if(this.hitChild(i[o].target,this.point,void 0,i[o].proxy),r.length)return r.list[0]}return n?null:s?t[0]:t.find(o=>tt.worldHittable(o))}getPath(t){const i=new xt,s=[],{target:n}=this;for(;t&&(t.syncEventer&&s.push(t.syncEventer),i.add(t),(t=t.parent)!==n););return s.length&&s.forEach(r=>{for(;r&&(r.__.hittable&&i.add(r),(r=r.parent)!==n););}),n&&i.add(n),i}getHitablePath(t){const i=this.getPath(t&&t.hittable?t:null);let s,n=new xt;for(let r=i.list.length-1;r>-1&&(s=i.list[r],s.__.hittable)&&(n.addAt(s,0),s.__.hitChildren&&(!s.isLeafer||s.mode!=="draw"));r--);return n}getThroughPath(t){const i=new xt,s=[];for(let a=t.length-1;a>-1;a--)s.push(this.getPath(t[a]));let n,r,o;for(let a=0,l=s.length;a<l;a++){n=s[a],r=s[a+1];for(let h=0,c=n.length;h<c&&(o=n.list[h],!r||!r.has(o));h++)i.add(o)}return i}hitBranch(t){this.eachFind(t.children,t.__onlyHitMask)}eachFind(t,i){let s,n,r;const{point:o}=this;for(let a=t.length-1;a>-1;a--)if(s=t[a],r=s.__,r.visible&&(!i||r.mask))if(n=L7(s.__world,r.hitRadius?R7(T7,o,r.hitRadius):o),s.isBranch){if(n||s.__ignoreHitWorld){if(s.isBranchLeaf&&r.__clipAfterFill&&!s.__hitWorld(o,!0))continue;s.topChildren&&this.eachFind(s.topChildren,!1),this.eachFind(s.children,s.__onlyHitMask),s.isBranchLeaf&&this.hitChild(s,o,i)}}else n&&this.hitChild(s,o,i)}hitChild(t,i,s,n){if((!this.exclude||!this.exclude.has(t))&&t.__hitWorld(i,!(!s||t.mask!=="path")||void 0)){const{parent:r,mask:o}=t;if(r&&r.__hasMask&&o&&o!=="clipping"&&o!=="clipping-path"&&!r.children.some(c=>!c.mask&&this.isHitLeaf(c,i)))return;const a=n||t,{hitThrough:l}=t,{findList:h}=this;if(l){const c=h.list.findIndex(u=>l==="parent"?tt.hasParent(u.parent,t.parent):u[l]===t[l]);if(c>0)return h.addAt(a,c)}h.add(a)}}isHitLeaf(t,i){if(t.isBranch){const{findList:s}=this,n=s.length;this.eachFind([t],!1);const r=s.length-n;for(let o=0;o<r;o++)s.remove(s.indexAt(s.length-1));return!!r}return t.__hitWorld(i)}clear(){this.point=null,this.findList=null,this.exclude=null}destroy(){this.clear()}}class P7{constructor(t,i){this.config={},i&&(this.config=K.default(i,this.config)),this.picker=new F7(this.target=t,this),this.finder=bt.finder&&bt.finder(t,this.config)}getByPoint(t,i,s){const{target:n,picker:r}=this;return A.backgrounder&&n&&n.updateLayout(),r.getByPoint(t,i,s)}hitPoint(t,i,s){return this.picker.hitPoint(t,i,s)}getBy(t,i,s,n){return this.finder?this.finder.getBy(t,i,s,n):ot.need("find")}destroy(){this.picker.destroy(),this.finder&&this.finder.destroy()}}function b0(e){return wt(e,t=>({set(i){this.__setAttr(t,i),i&&(this.__.__useEffect=!0);const s=this.__layout;s.renderChanged||s.renderChange(),s.surfaceChange()}}))}function ws(e){return wt(e,t=>({set(i){this.__setAttr(t,i),this.__layout.boxChanged||this.__layout.boxChange(),this.__updateSize()}}))}function M7(){return(e,t)=>{const i="_"+t;xe(e,t,{set(s){this.isLeafer&&(this[i]=s)},get(){return this.isApp?this.tree.zoomLayer:this.isLeafer?this[i]||this:this.leafer&&this.leafer.zoomLayer}})}}function hf(e){return(t,i)=>{xe(t,i,F4(i,e))}}Object.assign(bt,{watcher:(e,t)=>new C7(e,t),layouter:(e,t)=>new Wr(e,t),renderer:(e,t,i)=>new Jr(e,t,i),selector:(e,t)=>new P7(e,t)}),A.layout=Wr.fullLayout,A.render=function(e,t,i){const s=Object.assign(Object.assign({},i),{topRendering:!0});i.topList=new xt,e.__render(t,i),i.topList.length&&i.topList.forEach(n=>{const{parent:r}=n;r&&r.isBranchLeaf&&r.overflow!=="show"?(t.save(),tt.clip(r,t,s),n.__render(t,s),t.restore()):n.__render(t,s)})};const z4={},Ct={hasTransparent:function(e){if(!e||e.length===7||e.length===4)return!1;if(e==="transparent")return!0;const t=e[0];if(t==="#")switch(e.length){case 5:return e[4]!=="f"&&e[4]!=="F";case 9:return e[7]!=="f"&&e[7]!=="F"||e[8]!=="f"&&e[8]!=="F"}else if((t==="r"||t==="h")&&e[3]==="a"){const i=e.lastIndexOf(",");if(i>-1)return parseFloat(e.slice(i+1))<1}return!1}},Ri=m4,zr={},it={},kt={},Rr={},Li={}
1,X0={apply(){ot.need("filter")}},Bi={},dt={setStyleName:()=>ot.need("state"),set:()=>ot.need("state")},Wt={list:{},register(e,t){Wt.list[e]=t},get:e=>Wt.list[e]},{parse:D7,objectToCanvasData:O7}=Fi,{stintSet:k0}=K,{hasTransparent:kl}=Ct,Bl={originPaint:{}},Sl=rt.get("UIData");class Xe extends y4{get scale(){const{scaleX:t,scaleY:i}=this;return t!==i?{x:t,y:i}:t}get __strokeWidth(){return this.__getRealStrokeWidth()}get __maxStrokeWidth(){const t=this,i=t.__hasStrokeSides||t.strokeWidth;return t.__hasMultiStrokeStyle?Math.max(t.__hasMultiStrokeStyle,i):i}get __hasMultiPaint(){const t=this;return t.fill&&this.__useStroke||t.__isFills&&t.fill.length>1||t.__isStrokes&&t.stroke.length>1||t.__useEffect}get __clipAfterFill(){const t=this;return t.cornerRadius||t.innerShadow||t.__pathInputed}get __hasSurface(){return this.fill||this.stroke}get __autoWidth(){return this._width==null}get __autoHeight(){return this._height==null}get __autoSide(){return this._width==null||this._height==null}get __autoSize(){return this._width==null&&this._height==null}setVisible(t){this._visible=t;const{leafer:i}=this.__leaf;i&&(i.watcher.hasVisible=!0)}setWidth(t){t<0?(this._width=-t,this.__leaf.scaleX*=-1,Sl.warn("width < 0, instead -scaleX ",this)):this._width=t}setHeight(t){t<0?(this._height=-t,this.__leaf.scaleY*=-1,Sl.warn("height < 0, instead -scaleY",this)):this._height=t}setFill(t){this.__naturalWidth&&this.__removeNaturalSize(),G(t)||!t?(k0(this,"__isTransparentFill",kl(t)),this.__isFills&&this.__removePaint("fill",!0),this._fill=t):W(t)&&this.__setPaint("fill",t)}setStroke(t){G(t)||!t?(k0(this,"__isTransparentStroke",kl(t)),this.__isStrokes&&this.__removePaint("stroke",!0),this._stroke=t):W(t)&&this.__setPaint("stroke",t)}setPath(t){const i=G(t);i||t&&W(t[0])?(this.__setInput("path",t),this._path=i?D7(t,this.__useArrow):O7(t)):(this.__input&&this.__removeInput("path"),this._path=t)}setShadow(t){jo(this,"shadow",t)}setInnerShadow(t){jo(this,"innerShadow",t)}setFilter(t){jo(this,"filter",t)}__computePaint(){const{fill:t,stroke:i}=this.__input;t&&it.compute("fill",this.__leaf),i&&it.compute("stroke",this.__leaf),this.__needComputePaint=void 0}__getRealStrokeWidth(t){let{strokeWidth:i,strokeScaleFixed:s}=this;if(t&&(t.strokeWidth&&(i=t.strokeWidth),M(t.strokeScaleFixed)||(s=t.strokeScaleFixed)),s){const{scaleX:n}=this.__leaf.getRenderScaleData(!0,s,!1);if(n!==1)return i*n}return i}__checkComplex(){const t=this;k0(t,"__complex",t.__isFills||t.__isStrokes||t.cornerRadius||t.__useEffect)}__setPaint(t,i){this.__setInput(t,i);const s=this.__leaf.__layout;s.boxChanged||s.boxChange(),J(i)&&!i.length?this.__removePaint(t):t==="fill"?(this.__isFills=!0,this._fill||(this._fill=Bl)):(this.__isStrokes=!0,this._stroke||(this._stroke=Bl))}__removePaint(t,i){i&&this.__removeInput(t),kt.recycleImage(t,this),t==="fill"?(k0(this,"__isAlphaPixelFill",void 0),this._fill=this.__isFills=void 0):(k0(this,"__isAlphaPixelStroke",void 0),k0(this,"__hasMultiStrokeStyle",void 0),this._stroke=this.__isStrokes=void 0)}}function jo(e,t,i){e.__setInput(t,i),J(i)?(i.some(s=>s.visible===!1)&&(i=i.filter(s=>s.visible!==!1)),i.length||(i=void 0)):i=i&&i.visible!==!1?[i]:void 0,e["_"+t]=i}class Qr extends Xe{}class Mi extends Qr{get __boxStroke(){return!this.__pathInputed}get __drawAfterFill(){return this.__single||this.__clipAfterFill}get __clipAfterFill(){const t=this;return t.overflow!=="show"&&t.__leaf.children.length&&(t.__leaf.isOverflow||super.__clipAfterFill)}}class I7 extends Qr{__getInputData(t,i){const s=super.__getInputData(t,i);return De.forEach(n=>delete s[n]),s}}class W7 extends Mi{}class H4 extends Xe{get __usePathBox(){return this.points||this.__pathInputed}}class H1 extends Xe{get __boxStroke(){return!this.__pathInputed}}class z7 extends Xe{get __boxStroke(){return!this.__pathInputed}}class H7 extends Xe{get __usePathBox(){return this.points||this.__pathInputed}}class X7 extends Xe{}class Y7 extends Xe{get __pathInputed(){return 2}}class U7 extends Qr{}const N7={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900};
1class j7 extends Xe{get __useNaturalRatio(){return!1}setFontWeight(t){G(t)?(this.__setInput("fontWeight",t),t=N7[t]||400):this.__input&&this.__removeInput("fontWeight"),this._fontWeight=t}setBoxStyle(t){let i=this.__leaf,s=i.__box;if(t){const{boxStyle:n}=this;if(s)for(let a in n)s[a]=void 0;else s=i.__box=on.get("Rect",0);const r=i.__layout,o=s.__layout;n||(s.parent=i,s.__world=i.__world,o.boxBounds=r.boxBounds),s.set(t),o.strokeChanged&&r.strokeChange()}else s&&(i.__box=s.parent=null,s.destroy());this._boxStyle=t}__getInputData(t,i){const s=super.__getInputData(t,i);return s.textEditing&&delete s.textEditing,s}}class X4 extends H1{get __urlType(){return"image"}setUrl(t){this.__setImageFill(t),this._url=t}__setImageFill(t){this.fill=t?{type:this.__urlType,mode:"stretch",url:t}:void 0}__getData(){const t=super.__getData();return t.url&&delete t.fill,t}__getInputData(t,i){const s=super.__getInputData(t,i);return s.url&&delete s.fill,s}}class V7 extends H1{get __isCanvas(){return!0}get __drawAfterFill(){return!0}__getInputData(t,i){const s=super.__getInputData(t,i);return s.url=this.__leaf.canvas.toDataURL("image/png"),s}}const{max:vs,add:Vo}=nn,G7={__updateStrokeSpread(){let e=0,t=0;const i=this.__,{strokeAlign:s,__maxStrokeWidth:n}=i,r=this.__box;if((i.stroke||i.hitStroke==="all")&&n&&s!=="inside"&&(t=e=s==="center"?n/2:n,!i.__boxStroke||i.__useArrow)){const o=i.__isLinePath?0:(i.strokeJoin==="miter"?10:1)*e,a=i.strokeCap==="none"?0:n;e+=Math.max(o,a)}return i.__useArrow&&(e+=5*n),r&&(e=vs(e,r.__layout.strokeSpread=r.__updateStrokeSpread()),t=Math.max(t,r.__layout.strokeBoxSpread)),this.__layout.strokeBoxSpread=t,e},__updateRenderSpread(){let e=0;const{shadow:t,innerShadow:i,blur:s,backgroundBlur:n,filter:r,renderSpread:o}=this.__,{strokeSpread:a}=this.__layout,l=this.__box;t&&(e=Li.getShadowRenderSpread(this,t)),s&&(e=vs(e,s)),r&&(e=Vo(e,X0.getSpread(r))),o&&(e=Vo(e,o)),a&&(e=Vo(e,a));let h=e;return i&&(h=vs(h,Li.getInnerShadowSpread(this,i))),n&&(h=vs(h,n)),this.__layout.renderShapeSpread=h,l?vs(l.__updateRenderSpread(),e):e}},{stintSet:Go}=K,q7={__updateChange(){const e=this.__;if(e.__useStroke){const t=e.__useStroke=!(!e.stroke||!e.strokeWidth);Go(this.__world,"half",t&&e.strokeAlign==="center"&&e.strokeWidth%2),Go(e,"__fillAfterStroke",t&&e.strokeAlign==="outside"&&e.fill&&!e.__isTransparentFill)}if(e.__useEffect){const{shadow:t,fill:i,stroke:s}=e,n=e.innerShadow||e.blur||e.backgroundBlur||e.filter;Go(e,"__isFastShadow",t&&!n&&t.length<2&&!t[0].spread&&!Li.isTransformShadow(t[0])&&!(t[0].blendMode&&t[0].blendMode!=="pass-through")&&i&&!e.__isTransparentFill&&!(J(i)&&i.length>1)&&(this.useFastShadow||!s||s&&e.strokeAlign==="inside")),e.__useEffect=!(!t&&!n)}e.__checkSingle(),e.__checkComplex()},__drawFast(e,t){El(this,e,t)},__draw(e,t,i){const s=this.__;if(s.__complex){s.__needComputePaint&&s.__computePaint();const{fill:n,stroke:r,__drawAfterFill:o,__fillAfterStroke:a,__isFastShadow:l}=s;if(this.__drawRenderPath(e),s.__useEffect&&!l){const h=it.shape(this,e,t);this.__nowWorld=this.__getNowWorld(t);const{shadow:c,innerShadow:u,filter:g}=s;c&&Li.shadow(this,e,h),a&&(s.__isStrokes?it.strokes(r,this,e,t):it.stroke(r,this,e,t)),n&&(s.__isFills?it.fills(n,this,e,t):it.fill(n,this,e,t)),o&&this.__drawAfterFill(e,t),u&&Li.innerShadow(this,e,h),r&&!a&&(s.__isStrokes?it.strokes(r,this,e,t):it.stroke(r,this,e,t)),g&&X0.apply(g,this,this.__nowWorld,e,i,h),h.worldCanvas&&h.worldCanvas.recycle(),h.canvas.recycle()}else{if(a&&(s.__isStrokes?it.strokes(r,this,e,t):it.stroke(r,this,e,t)),l){const h=s.shadow[0],{scaleX:c,scaleY:u}=this.getRenderScaleData(!0,h.scaleFixed);e.save(),e.setWorldShadow(h.x*c,h.y*u,h.blur*c,Ct.string(h.color))}n&&(s.__isFills?it.fills(n,this,e,t):it.fill(n,this,e,t)),l&&e.restore(),o&&this.__drawAfterFill(e,t),r&&!a&&(s.__isStrokes?it.strokes(r,this,e,t):it.stroke(r,this,e,t))}}else s.__pathForRender?El(this,e,t):this.__drawFast(e,t)},__drawShape(e,t){this.__drawRenderPath(e);const i=this.__,{fill:s,stroke:n}=i;s&&!t.ignoreFill&&(i.__isAlphaPixelFill?it.fills(s,this,e,t):it.fill("#000000",this,e,t)),i.__isCanvas&&this.__drawAfterFill(e,t),n&&!t.ignoreStroke&&(i.__isAlphaPixelStroke?it.strokes(n,this,e,t):it.stroke("#000000",this,e,t))},__drawAfterFill(e,t){this.__.__clipAfterFill?(e.save(),e.clipUI(this),this.__drawContent(e,t),e.restore(
1)):this.__drawContent(e,t)}};function El(e,t,i){const{fill:s,stroke:n,__drawAfterFill:r,__fillAfterStroke:o}=e.__;e.__drawRenderPath(t),o&&it.stroke(n,e,t,i),s&&it.fill(s,e,t,i),r&&e.__drawAfterFill(t,i),n&&!o&&it.stroke(n,e,t,i)}const K7={__drawFast(e,t){let{x:i,y:s,width:n,height:r}=this.__layout.boxBounds;const{fill:o,stroke:a,__drawAfterFill:l}=this.__;if(o&&(e.fillStyle=o,e.fillRect(i,s,n,r)),l&&this.__drawAfterFill(e,t),a){const{strokeAlign:h,__strokeWidth:c}=this.__;if(!c)return;e.setStroke(a,c,this.__);const u=c/2;switch(h){case"center":e.strokeRect(0,0,n,r);break;case"inside":n-=c,r-=c,n<0||r<0?(e.save(),this.__clip(e,t),e.strokeRect(i+u,s+u,n,r),e.restore()):e.strokeRect(i+u,s+u,n,r);break;case"outside":e.strokeRect(i-u,s-u,n+c,r+c)}}}};var h1;let C=h1=class extends is{get app(){return this.leafer&&this.leafer.app}set strokeWidthFixed(e){this.strokeScaleFixed=e}get strokeWidthFixed(){return this.strokeScaleFixed}set scale(e){_t.assignScale(this,e)}get scale(){return this.__.scale}get isAutoWidth(){const e=this.__;return e.__autoWidth||e.autoWidth}get isAutoHeight(){const e=this.__;return e.__autoHeight||e.autoHeight}get pen(){const{path:e}=this.__;return _s.set(this.path=e||[]),e||this.__drawPathByBox(_s),_s}set(e,t){e&&Object.assign(this,e)}get(e){return G(e)?this.__.__getInput(e):this.__.__getInputData(e)}find(e,t){return ot.need("find")}findTag(e){return this.find({tag:e})}findOne(e,t){return ot.need("find")}findId(e){return this.findOne({id:e})}getPath(e,t){this.__layout.update();let i=t?this.__.__pathForRender:this.__.path;return i||(_s.set(i=[]),this.__drawPathByBox(_s,"box",!t)),e?Fi.toCanvasData(i,!0):i}getPathString(e,t,i){return Fi.stringify(this.getPath(e,t),i)}asPath(e,t){this.path=this.getPath(e,t)}load(){this.__.__computePaint()}__onUpdateSize(){if(this.__.__input){const e=this.__;!e.lazy||this.__inLazyBounds||Bi.running?e.__computePaint():e.__needComputePaint=!0}}__updatePath(){}__updateRenderPath(e){const t=this.__;t.path?(t.__pathForRender=t.cornerRadius||t.path.radius?R4.smooth(t.path,t.cornerRadius,t.cornerSmoothing):t.path,t.__useArrow&&zr.addArrows(this,e)):t.__pathForRender&&(t.__pathForRender=void 0)}__drawRenderPath(e){const t=this.__;e.beginPath(),t.__useArrow&&zr.updateArrow(this),this.__drawPathByData(e,t.__pathForRender)}__drawPath(e){const t=this.__;e.beginPath(),t.__usePointsMode?X2.drawPathByPoints(e,t.points,t.closed):this.__drawPathByData(e,t.path,!0)}__drawPathByData(e,t,i){t?X2.drawPathByData(e,t):this.__drawPathByBox(e,"box",i)}__drawPathByBox(e,t="box",i){const{x:s,y:n,width:r,height:o}=this.__layout[t+"Bounds"];if(this.__.cornerRadius&&!i){const{cornerRadius:a}=this.__;e.roundRect(s,n,r,o,$(a)?[a]:a)}else e.rect(s,n,r,o);e.closePath()}drawImagePlaceholder(e,t,i){it.fill(this.__.placeholderColor,this,t,i)}animate(e,t,i,s){return this.set(e),ot.need("animate")}killAnimate(e,t){}export(e,t){return ot.need("export")}syncExport(e,t){return ot.need("export")}clone(e){const t=K.clone(this.toJSON());return e&&Object.assign(t,e),h1.one(t)}static one(e,t,i,s,n){return on.get(e.tag||this.prototype.__tag,e,t,i,s,n)}static registerUI(){Rt()(this)}static registerData(e){Tt(e)(this.prototype)}static setEditConfig(e){}static setEditOuter(e){}static setEditInner(e){}destroy(){this.__.__willDestroy=!0,this.fill=this.stroke=null,this.__animate&&this.killAnimate(),super.destroy()}};p([Tt(Xe)],C.prototype,"__",void 0),p([M7()],C.prototype,"zoomLayer",void 0),p([mt("")],C.prototype,"id",void 0),p([mt("")],C.prototype,"name",void 0),p([mt("")],C.prototype,"className",void 0),p([Oe("pass-through")],C.prototype,"blendMode",void 0),p([qd(1)],C.prototype,"opacity",void 0),p([Kd(!0)],C.prototype,"visible",void 0),p([Oe(!1)],C.prototype,"locked",void 0),p([i1(!1)],C.prototype,"dim",void 0),p([i1(!1)],C.prototype,"dimskip",void 0),p([$d(0)],C.prototype,"zIndex",void 0),p([Qd(!1)],C.prototype,"mask",void 0),p([e8(!1)],C.prototype,"eraser",void 0),p([Mn(0,!0)],C.prototype,"x",void 0),p([Mn(0,!0)],C.prototype,"y",void 0),p([Z(100,!0)],C.prototype,"width",void 0),p([Z(100,!0)],C.prototype,"height",void 0),p([K2(1,!0)],C.prototype,"scaleX",void 0),p([K2(1,!0)],C.prototype,"scaleY",void 0),p([Fo(0,!0)],C.prototype,"rotation",void 0),p([Fo(0,!0)],C.prototype,"skewX",void 0),p([Fo(0,!0)],C.prototype,"skewY",void 0),p([Mn(0,!0)],C.prototype,"offsetX",void 0),p([Mn(0,!0)],C.prototype,"offsetY",void 0),p([q2(0,!0)],C.prototype,"scrollX",void 0),p([q2(0,!0)],C.prototype,"scrollY",void 0),p([Ir()],C.prototype,"origin",void 0),p([Ir()],C.prototype,"around",void 0),p([mt(!1)],C.prototype,"lazy",void 0),p([Vd(1)],C.prototype,"pixelRatio",void 0),p([W1(0)],C.prototype,"render
1Spread",void 0),p([Gd()],C.prototype,"path",void 0),p([At()],C.prototype,"windingRule",void 0),p([At(!0)],C.prototype,"closed",void 0),p([Z(0)],C.prototype,"padding",void 0),p([Z(!1)],C.prototype,"lockRatio",void 0),p([Z()],C.prototype,"widthRange",void 0),p([Z()],C.prototype,"heightRange",void 0),p([mt(!1)],C.prototype,"draggable",void 0),p([mt()],C.prototype,"dragBounds",void 0),p([mt("auto")],C.prototype,"dragBoundsType",void 0),p([mt(!1)],C.prototype,"editable",void 0),p([vi(!0)],C.prototype,"hittable",void 0),p([vi()],C.prototype,"hitThrough",void 0),p([vi("path")],C.prototype,"hitFill",void 0),p([Ne("path")],C.prototype,"hitStroke",void 0),p([vi(!1)],C.prototype,"hitBox",void 0),p([vi(!0)],C.prototype,"hitChildren",void 0),p([vi(!0)],C.prototype,"hitSelf",void 0),p([vi()],C.prototype,"hitRadius",void 0),p([i8("")],C.prototype,"cursor",void 0),p([Oe()],C.prototype,"fill",void 0),p([Ne(void 0,!0)],C.prototype,"stroke",void 0),p([Ne("inside")],C.prototype,"strokeAlign",void 0),p([Ne(1,!0)],C.prototype,"strokeWidth",void 0),p([Ne(!1)],C.prototype,"strokeScaleFixed",void 0),p([Ne("none")],C.prototype,"strokeCap",void 0),p([Ne("miter")],C.prototype,"strokeJoin",void 0),p([Ne()],C.prototype,"dashPattern",void 0),p([Ne(0)],C.prototype,"dashOffset",void 0),p([Ne(10)],C.prototype,"miterLimit",void 0),p([At(0)],C.prototype,"cornerRadius",void 0),p([At()],C.prototype,"cornerSmoothing",void 0),p([b0()],C.prototype,"shadow",void 0),p([b0()],C.prototype,"innerShadow",void 0),p([b0()],C.prototype,"blur",void 0),p([b0()],C.prototype,"backgroundBlur",void 0),p([b0()],C.prototype,"grayscale",void 0),p([b0()],C.prototype,"filter",void 0),p([Oe()],C.prototype,"placeholderColor",void 0),p([mt(100)],C.prototype,"placeholderDelay",void 0),p([mt({})],C.prototype,"data",void 0),C=h1=p([ce(G7),ce(q7),h0()],C);let at=class extends C{get __tag(){return"Group"}get isBranch(){return!0}reset(e){this.__setBranch(),super.reset(e)}__setBranch(){this.children||(this.children=[])}set(e,t){if(e)if(e.children){const{children:i}=e;delete e.children,this.children?this.clear():this.__setBranch(),super.set(e,t),i.forEach(s=>this.add(s)),e.children=i}else super.set(e,t)}toJSON(e){const t=super.toJSON(e);if(!this.childlessJSON){const i=t.children=[];this.children.forEach(s=>s.skipJSON||i.push(s.toJSON(e)))}return t}addAt(e,t){this.add(e,t)}addAfter(e,t){this.add(e,this.children.indexOf(t)+1)}addBefore(e,t){this.add(e,this.children.indexOf(t))}};var Lr;p([Tt(Qr)],at.prototype,"__",void 0),p([Z(0)],at.prototype,"width",void 0),p([Z(0)],at.prototype,"height",void 0),at=p([ce(l1),Rt()],at);const Z7=rt.get("Leafer");let Jt=Lr=class extends at{get __tag(){return"Leafer"}get isApp(){return!1}get app(){return this.parent||this}get isLeafer(){return!0}get imageReady(){return this.viewReady&&li.isComplete}get layoutLocked(){return!this.layouter.running}get view(){return this.canvas&&this.canvas.view}get FPS(){return this.renderer?this.renderer.FPS:60}get cursorPoint(){return this.interaction&&this.interaction.hoverData||{x:this.width/2,y:this.height/2}}get clientBounds(){return this.canvas&&this.canvas.getClientBounds(!0)||{x:0,y:0,width:0,height:0}}constructor(e,t){super(t),this.config={start:!0,hittable:!0,smooth:!0,trackChanges:!0,lazySpeard:100},this.leafs=0,this.__eventIds=[],this.__controllers=[],this.__readyWait=[],this.__viewReadyWait=[],this.__viewCompletedWait=[],this.__nextRenderWait=[],this.userConfig=e,e&&(e.view||e.width)&&this.init(e),Lr.list.add(this)}init(e,t){if(this.canvas)return;let i;const{config:s}=this;this.__setLeafer(this),t&&(this.parentApp=t,this.__bindApp(t),i=t.running),e&&(this.parent=t,this.initType(e.type),this.parent=void 0,K.assign(s,e));const n=this.canvas=bt.canvas(s);this.__controllers.push(this.renderer=bt.renderer(this,n,s),this.watcher=bt.watcher(this,s),this.layouter=bt.layouter(this,s)),this.isApp&&this.__setApp(),this.__checkAutoLayout(),t||(this.selector=bt.selector(this),this.interaction=bt.interaction(this,n,this.selector,s),this.interaction&&(this.__controllers.unshift(this.interaction),this.hitCanvasManager=bt.hitCanvasManager()),this.canvasManager=new w4,i=s.start),this.hittable=s.hittable,this.fill=s.fill,this.canvasManager.add(n),this.__listenEvents(),i&&(this.__startTimer=setTimeout(this.start.bind(this))),xs.run(this.__initWait),this.onInit()}onInit(){}initType(e){}set(e,t){this.waitInit(()=>{super.set(e,t)})}start(){clearTimeout(this.__startTimer),!this.running&&this.canvas&&(this.running=!0,this.ready?this.emitLeafer(ct.RESTART):this.emitLeafer(ct.START),this.__controllers.forEac
1h(e=>e.start()),this.isApp||this.renderer.render())}stop(){clearTimeout(this.__startTimer),this.running&&this.canvas&&(this.__controllers.forEach(e=>e.stop()),this.running=!1,this.emitLeafer(ct.STOP))}unlockLayout(e=!0){this.layouter.start(),e&&this.updateLayout()}lockLayout(e=!0){e&&this.updateLayout(),this.layouter.stop()}resize(e){const t=K.copyAttrs({},e,De);Object.keys(t).forEach(i=>this[i]=t[i])}forceRender(e,t){const{renderer:i}=this;i&&(i.addBlock(e?new nt(e):this.canvas.bounds),this.viewReady&&(t?i.render():i.update()))}requestRender(e=!1){this.renderer&&this.renderer.update(e)}updateCursor(e){const t=this.interaction;t&&(e?t.setCursor(e):t.updateCursor())}updateLazyBounds(){this.lazyBounds=this.canvas.bounds.clone().spread(this.config.lazySpeard)}__doResize(e){const{canvas:t}=this;if(!t||t.isSameSize(e))return;const i=K.copyAttrs({},this.canvas,De);t.resize(e),this.updateLazyBounds(),this.__onResize(new Je(e,i))}__onResize(e){this.emitEvent(e),K.copyAttrs(this.__,e,De),setTimeout(()=>{this.canvasManager&&this.canvasManager.clearRecycled()},0)}__setApp(){}__bindApp(e){this.selector=e.selector,this.interaction=e.interaction,this.canvasManager=e.canvasManager,this.hitCanvasManager=e.hitCanvasManager}__setLeafer(e){this.leafer=e,this.__level=1}__checkAutoLayout(){const{config:e,parentApp:t}=this;t||(e.width&&e.height||(this.autoLayout=new Hc(e)),this.canvas.startAutoLayout(this.autoLayout,this.__onResize.bind(this)))}__setAttr(e,t){return this.canvas&&(De.includes(e)?this.__changeCanvasSize(e,t):e==="fill"?this.__changeFill(t):e==="hittable"?this.parent||(this.canvas.hittable=t):e==="zIndex"?(this.canvas.zIndex=t,setTimeout(()=>this.parent&&this.parent.__updateSortChildren())):e==="mode"&&this.emit(ct.UPDATE_MODE,{mode:t})),super.__setAttr(e,t)}__getAttr(e){return this.canvas&&De.includes(e)?this.canvas[e]:super.__getAttr(e)}__changeCanvasSize(e,t){const{config:i,canvas:s}=this,n=K.copyAttrs({},s,De);n[e]=i[e]=t,i.width&&i.height?s.stopAutoLayout():this.__checkAutoLayout(),this.__doResize(n)}__changeFill(e){this.config.fill=e,this.canvas.allowBackgroundColor?this.canvas.backgroundColor=e:this.forceRender()}__onCreated(){this.created=!0}__onReady(){this.ready=!0,this.emitLeafer(ct.BEFORE_READY),this.emitLeafer(ct.READY),this.emitLeafer(ct.AFTER_READY),xs.run(this.__readyWait)}__onViewReady(){this.viewReady||(this.viewReady=!0,this.emitLeafer(ct.VIEW_READY),xs.run(this.__viewReadyWait))}__onLayoutEnd(){const{grow:e,width:t,height:i}=this.config;if(e){let{width:s,height:n,pixelRatio:r}=this;const o=e==="box"?this.worldBoxBounds:this.__world;t||(s=Math.max(1,o.x+o.width)),i||(n=Math.max(1,o.y+o.height)),this.__doResize({width:s,height:n,pixelRatio:r})}this.ready||this.__onReady()}
1__onNextRender(){if(this.viewReady){xs.run(this.__nextRenderWait);const{imageReady:e}=this;e&&!this.viewCompleted&&this.__checkViewCompleted(),e||(this.viewCompleted=!1,this.requestRender())}else this.requestRender()}__checkViewCompleted(e=!0){this.nextRender(()=>{this.imageReady&&(e&&this.emitLeafer(ct.VIEW_COMPLETED),xs.run(this.__viewCompletedWait),this.viewCompleted=!0)})}__onWatchData(){this.watcher.childrenChanged&&this.interaction&&this.nextRender(()=>this.interaction.updateCursor())}waitInit(e,t){t&&(e=e.bind(t)),this.__initWait||(this.__initWait=[]),this.canvas?e():this.__initWait.push(e)}waitReady(e,t){t&&(e=e.bind(t)),this.ready?e():this.__readyWait.push(e)}waitViewReady(e,t){t&&(e=e.bind(t)),this.viewReady?e():this.__viewReadyWait.push(e)}waitViewCompleted(e,t){t&&(e=e.bind(t)),this.__viewCompletedWait.push(e),this.viewCompleted?this.__checkViewCompleted(!1):this.running||this.start()}nextRender(e,t,i){t&&(e=e.bind(t));const s=this.__nextRenderWait;if(i){for(let n=0;n<s.length;n++)if(s[n]===e){s.splice(n,1);break}}else s.push(e);this.requestRender()}zoom(e,t,i,s){return ot.need("view")}getValidMove(e,t,i){return{x:e,y:t}}getValidScale(e){return e}getWorldPointByClient(e,t){return this.interaction&&this.interaction.getLocal(e,t)}getPagePointByClient(e,t){return this.getPagePoint(this.getWorldPointByClient(e,t))}getClientPointByWorld(e){const{x:t,y:i}=this.clientBounds;return{x:t+e.x,y:i+e.y}}updateClientBounds(){this.canvas&&this.canvas.updateClientBounds()}receiveEvent(e){}emitLeafer(e){this.emitEvent(new ct(e,this))}__listenEvents(){const e=ye.start("FirstCreate "+this.innerName);this.once([[ct.START,()=>ye.end(e)],[Et.START,this.updateLazyBounds,this],[ut.START,this.__onCreated,this],[ut.END,this.__onViewReady,this]]),this.__eventIds.push(this.on_([[Ti.DATA,this.__onWatchData,this],[Et.END,this.__onLayoutEnd,this],[ut.NEXT,this.__onNextRender,this]]))}__removeListenEvents(){this.off_(this.__eventIds)}destroy(e){const t=()=>{if(!this.destroyed){Lr.list.remove(this);try{this.stop(),this.emitLeafer(ct.END),this.__removeListenEvents(),this.__controllers.forEach(i=>!(this.parent&&i===this.interaction)&&i.destroy()),this.__controllers.length=0,this.parent||(this.selector&&this.selector.destroy(),this.hitCanvasManager&&this.hitCanvasManager.destroy(),this.canvasManager&&this.canvasManager.destroy()),this.canvas&&this.canvas.destroy(),this.config.view=this.parentApp=null,this.userConfig&&(this.userConfig.view=null),super.destroy(),setTimeout(()=>{Ee.clearRecycled()},100)}catch(i){Z7.error(i)}}};e?t():setTimeout(t)}};Jt.list=new xt,p([Tt(I7)],Jt.prototype,"__",void 0),p([Z()],Jt.prototype,"pixelRatio",void 0),p([mt("normal")],Jt.prototype,"mode",void 0),Jt=Lr=p([Rt()],Jt);let Q=class extends C{get __tag(){return"Rect"}};p([Tt(H1)],Q.prototype,"__",void 0),Q=p([ce(K7),h0(),Rt()],Q);const{add:Al,includes:$7,scroll:J7}=L,Hi=Q.prototype,Q7=at.prototype;let k=class extends at{get __tag(){return"Box"}get isBranchLeaf(){return!0}get __useSelfBox(){return this.pathInputed}constructor(e){super(e),this.__layout.renderChanged||this.__layout.renderChange()}__updateStrokeSpread(){return 0}__updateRectRenderSpread(){return 0}__updateRenderSpread(){return this.__updateRectRenderSpread()||-1}__updateRectBoxBounds(){}__updateBoxBounds(e){if(this.children.length&&!this.__useSelfBox){const t=this.__;if(t.__autoSide){t.__hasSurface&&this.__extraUpdate(),super.__updateBoxBounds();const{boxBounds:i}=this.__layout;t.__autoSize||(t.__autoWidth?(i.width+=i.x,i.x=0,i.height=t.height,i.y=0):(i.height+=i.y,i.y=0,i.width=t.width,i.x=0)),this.__updateNaturalSize()}else this.__updateRectBoxBounds()}else this.__updateRectBoxBounds()}__updateStrokeBounds(){}__updateRenderBounds(){let e,t;if(this.children.length){const i=this.__,s=this.__layout,{renderBounds:n,boxBounds:r}=s,{overflow:o}=i,a=s.childrenRenderBounds||(s.childrenRenderBounds={x:0,y:0,width:0,height:0});super.__updateRenderBounds(a),(t=o&&o.includes("scroll"))&&(Al(a,r),J7(a,i)),this.__updateRectRenderBounds(),e=!$7(r,a),e&&o==="show"&&Al(n,a)}else this.__updateRectRenderBounds();K.stintSet(this,"isOverflow",e),this.__checkScroll(t)}__updateRectRenderBounds(){}__checkScroll(e){}__updateRectChange(){}__updateChange(){super.__updateChange(),this.__updateRectChange()}__renderRect(e,t){}__renderGroup(e,t){}__render(e,t){this.__.__drawAfterFill?this.__renderRect(e,t):(this.__renderRect(e,t),this.children.length&&this.__renderGroup(e,t)),this.hasScroller&&this.scroller.__render(e,t)}__drawContent(e,t){this.__renderGroup(e,t),(this.__.__useStroke||this.__.__useEffect)&&(e.setWorld(this.__nowWorld),this.__drawRenderPath(e))}};p([Tt(Mi)],k.prototype,"__",void 0),p([Z(100)],k.prototype,"width",void 0),p([Z(100)],k.prototype,"height",void 0),p([mt(!1)],k.prototype,"resizeChildren",void 0),p([W1("show")],k.prototype,"overflow",void 0),p([Fe(Hi.__updateStrokeSpread)],k.prototype,"__updateStrokeSpread",null),p([Fe(Hi.__updateRenderSpread)],k.prototype,"__updateRectRenderSpread",null),p([Fe(Hi.__updateBoxBounds)],k.prototype,"__updateRectBoxBounds",null),p([Fe(Hi.__updateStrokeBounds)],k.prototype,"__updateStrokeBounds",null),p([Fe(Hi.__updateRenderBounds)],k.prototype,"__updateRectRenderBounds",null),p([Fe(Hi.__updateChange)],k.prototype,"__updateRectChange",null),p([Fe(Hi.__render)],k.prototype,"__renderRect",null),p([Fe(Q7.__render)],k.prototype,"__renderGroup",null),k=p([h0(),Rt()],k);let W0=class extends k{get __tag(){return"Frame"}get isFrame(){return!0}};
1p([Tt(W7)],W0.prototype,"__",void 0),p([Oe("#FFFFFF")],W0.prototype,"fill",void 0),p([W1("hide")],W0.prototype,"overflow",void 0),W0=p([Rt()],W0);const{moveTo:qo,closePath:Ko,ellipse:B0}=Pi,{tempPoint:zn,set:Tl,rotate:t9}=R,{abs:e9}=Math,Rl={};let Bt=class extends C{get __tag(){return"Ellipse"}__updatePath(){const e=this.__,{width:t,height:i,innerRadius:s,startAngle:n,endAngle:r,closed:o}=e,a=t/2,l=i/2,h=e.path=[];let c,u,g;if((n||r)&&(u=!0),u&&(g=e9(r-n)===360),s){const d=s<1||o,f=a*s,_=l*s;u?(B0(h,a,l,a,l,0,n,r),d?(g&&(Ko(h),Tl(zn,a+f,l),Tl(Rl,a,l),t9(zn,r,Rl,a,l),qo(h,zn.x,zn.y)),B0(h,a,l,f,_,0,r,n,!0)):g||(c=!0)):(B0(h,a,l,a,l),d&&(Ko(h),qo(h,a+f,l),B0(h,a,l,f,_,0,360,0,!0)))}else u?(g||(o||(c=!0),c||qo(h,a,l)),B0(h,a,l,a,l,0,n,r)):B0(h,a,l,a,l);c||Ko(h),(A.ellipseToCurve||e.__useArrow||e.cornerRadius)&&(e.path=this.getPath(!0))}};p([Tt(z7)],Bt.prototype,"__",void 0),p([At(0)],Bt.prototype,"innerRadius",void 0),p([At(0)],Bt.prototype,"startAngle",void 0),p([At(0)],Bt.prototype,"endAngle",void 0),Bt=p([Rt()],Bt);const{sin:Ll,cos:Fl,PI:i9}=Math,{moveTo:Pl,lineTo:s9,closePath:n9,drawPoints:r9}=Pi;let Be=class extends C{get __tag(){return"Polygon"}get isPointsMode(){return this.points&&!this.pathInputed}__updatePath(){const e=this.__,t=e.path=[];if(e.points)r9(t,e.points,e.curve,e.closed,e);else{const{width:i,height:s,sides:n,startAngle:r}=e,o=i/2,a=s/2;let l,h=0;r?(h=r*ht,Pl(t,o+o*Ll(h),a-a*Fl(h))):Pl(t,o,0);for(let c=1;c<n;c++)l=2*c*i9/n+h,s9(t,o+o*Ll(l),a-a*Fl(l));n9(t)}}};p([Tt(H7)],Be.prototype,"__",void 0),p([At(3)],Be.prototype,"sides",void 0),p([At(0)],Be.prototype,"startAngle",void 0),p([At()],Be.prototype,"points",void 0),p([At(0)],Be.prototype,"curve",void 0),Be=p([h0(),Rt()],Be);const{sin:Ml,cos:Dl,PI:o9}=Math,{moveTo:Ol,lineTo:a9,closePath:l9}=Pi;let ki=class extends C{get __tag(){return"Star"}__updatePath(){const{width:e,height:t,corners:i,innerRadius:s,startAngle:n}=this.__,r=e/2,o=t/2,a=this.__.path=[];let l,h=0;n?(h=n*ht,Ol(a,r+r*Ml(h),o-o*Dl(h))):Ol(a,r,0);for(let c=1;c<2*i;c++)l=c*o9/i+h,a9(a,r+(c%2==0?r:r*s)*Ml(l),o-(c%2==0?o:o*s)*Dl(l));l9(a)}};p([Tt(X7)],ki.prototype,"__",void 0),p([At(5)],ki.prototype,"corners",void 0),p([At(.382)],ki.prototype,"innerRadius",void 0),p([At(0)],ki.prototype,"startAngle",void 0),ki=p([Rt()],ki);const{moveTo:h9,lineTo:c9,drawPoints:d9}=Pi,{rotate:u9,getAngle:g9,getDistance:p9,defaultPoint:Il}=R;let _e=class extends C{get __tag(){return"Line"}get isPointsMode(){return this.points&&!this.pathInputed}get toPoint(){const{width:e,rotation:t}=this.__,i={x:0,y:0};return e&&(i.x=e),t&&u9(i,t),i}set toPoint(e){this.width=p9(Il,e),this.rotation=g9(Il,e),this.height&&(this.height=0)}__updatePath(){const e=this.__,t=e.path=[];e.points?d9(t,e.points,e.curve,e.closed,e):(h9(t,0,0),c9(t,this.width,0))}};p([Tt(H4)],_e.prototype,"__",void 0),p([ln("center")],_e.prototype,"strokeAlign",void 0),p([Z(0)],_e.prototype,"height",void 0),p([At()],_e.prototype,"points",void 0),p([At(0)],_e.prototype,"curve",void 0),p([At(!1)],_e.prototype,"closed",void 0),_e=p([Rt()],_e);let Si=class extends Q{get __tag(){return"Image"}get ready(){const{image:e}=this;return e&&e.ready}get image(){const{fill:e}=this.__;return J(e)&&e[0].image}};p([Tt(X4)],Si.prototype,"__",void 0),p([Z("")],Si.prototype,"url",void 0),Si=p([Rt()],Si);const cf=Si;let si=class extends Q{get __tag(){return"Canvas"}get context(){return this.canvas.context}get ready(){return!this.url}constructor(e){super(e),this.canvas=bt.canvas(this.__),e&&e.url&&this.drawImage(e.url)}drawImage(e){new $r({url:e}).load(t=>{this.context.drawImage(t.view,0,0),this.url=void 0,this.paint(),this.emitEvent(new We(We.LOADED,{image:t}))})}draw(e,t,i,s){const n=new Kt(e.worldTransform).invert(),r=new Kt;t&&r.translate(t.x,t.y),i&&($(i)?r.scale(i):r.scale(i.x,i.y)),s&&r.rotate(s),n.multiplyParent(r),e.__render(this.canvas,{matrix:n.withScale()}),this.paint()}paint(){this.forceRender()}__drawContent(e,t){const{width:i,height:s}=this.__,{view:n}=this.canvas;e.drawImage(n,0,0,n.width,n.height,0,0,i,s)}__updateSize(){const{canvas:e}=this;if(e){const{smooth:t,safeResize:i}=this.__;e.resize(this.__,i),e.smooth!==t&&(e.smooth=t)}}destroy(){this.canvas&&(this.canvas.destroy(),this.canvas=null),super.destroy()}};p([Tt(V7)],si.prototype,"__",void 0),p([ws(100)],si.prototype,"width",void 0),p([ws(100)],si.prototype,"height",void 0),p([ws(1)],si.prototype,"pixelRatio",void 0),p([ws(!0)],si.prototype,"smooth",void 0),p([mt(!1)],si.prototype,"safeResize",void 0),p([ws()],si.prototype,"contextSettings",void 0),si=p([Rt()],si);const{copyAndSpread:f9,includes:_9,setList:y9}=L,{stintSet:Zo}=K;let X=class extends C{get __tag(){return"Text"}get textDrawData(){return this.updateLayout(),this.__.__textDrawData}
1__updateTextDrawData(){const e=this.__,{lineHeight:t,letterSpacing:i,wordSpacing:s,fontFamily:n,fontSize:r,fontWeight:o,italic:a,textCase:l,textOverflow:h,padding:c,width:u,height:g}=e;e.__lineHeight=Ri.number(t,r),e.__letterSpacing=Ri.number(i,r),e.__wordSpacing=Ri.number(s,r),e.__baseLine=e.__lineHeight-(e.__lineHeight-.7*r)/2,e.__font=`${a?"italic ":""}${l==="small-caps"?"small-caps ":""}${o!=="normal"?o+" ":""}${r||12}px ${n||"caption"}`,Zo(e,"__padding",c&&_t.fourNumber(c)),Zo(e,"__clipText",h!=="show"&&!e.__autoSize),Zo(e,"__isCharMode",u||g||e.__letterSpacing||e.__wordSpacing||e.motionText||l!=="none"),e.__textDrawData=z4.getDrawData((e.__isPlacehold=e.placeholder&&e.text==="")?e.placeholder:e.text,this.__)}__updateBoxBounds(){const e=this.__,t=this.__layout,{fontSize:i,italic:s,padding:n,__autoWidth:r,__autoHeight:o}=e;this.__updateTextDrawData();const{bounds:a}=e.__textDrawData,l=t.boxBounds;if(t.contentBounds=a,e.__lineHeight<i&&(t.renderChanged=!0),r||o){if(l.x=r?a.x:0,l.y=o?a.y:0,l.width=r?a.width:e.width,l.height=o?a.height:e.height,n){const[h,c,u,g]=e.__padding;r&&(l.x-=g,l.width+=c+g),o&&(l.y-=h,l.height+=u+h)}this.__updateNaturalSize()}else super.__updateBoxBounds();s&&(l.width+=.16*i),K.stintSet(this,"isOverflow",!_9(l,a)&&!e.motionText),this.isOverflow?(y9(e.__textBoxBounds={},[l,a]),t.renderChanged=!0):e.__textBoxBounds=l}__updateRenderSpread(){let e=super.__updateRenderSpread();e||(e=this.isOverflow?1:0);const{__lineHeight:t,fontSize:i}=this.__;return t<i&&(e=nn.max(e,(i-t)/2)),e}__updateRenderBounds(){const{renderBounds:e,renderSpread:t}=this.__layout;f9(e,this.__.__textBoxBounds,t),this.__box&&(this.__box.__layout.renderBounds=e)}__updateChange(){super.__updateChange();const e=this.__box;e&&(e.__onUpdateSize(),e.__updateChange())}__drawRenderPath(e){e.font=this.__.__font}__draw(e,t,i){const s=this.__box;s&&(s.__nowWorld=this.__nowWorld,s.__draw(e,t,i)),this.textEditing&&!t.exporting||super.__draw(e,t,i)}__drawShape(e,t){t.shape&&this.__box&&this.__box.__drawShape(e,t),super.__drawShape(e,t)}destroy(){this.boxStyle&&(this.boxStyle=null),super.destroy()}};p([Tt(j7)],X.prototype,"__",void 0),p([Z(0)],X.prototype,"width",void 0),p([Z(0)],X.prototype,"height",void 0),p([Oe()],X.prototype,"boxStyle",void 0),p([mt(!1)],X.prototype,"resizeFontSize",void 0),p([Oe("#000000")],X.prototype,"fill",void 0),p([ln("outside")],X.prototype,"strokeAlign",void 0),p([vi("all")],X.prototype,"hitFill",void 0),p([Z("")],X.prototype,"text",void 0),p([Z("")],X.prototype,"placeholder",void 0),p([Z("caption")],X.prototype,"fontFamily",void 0),p([Z(12)],X.prototype,"fontSize",void 0),p([Z("normal")],X.prototype,"fontWeight",void 0),p([Z(!1)],X.prototype,"italic",void 0),p([Z("none")],X.prototype,"textCase",void 0),p([Z("none")],X.prototype,"textDecoration",void 0),p([Z(0)],X.prototype,"letterSpacing",void 0),p([Z(0)],X.prototype,"wordSpacing",void 0),p([Z({type:"percent",value:1.5})],X.prototype,"lineHeight",void 0),p([Z(0)],X.prototype,"paraIndent",void 0),p([Z(0)],X.prototype,"paraSpacing",void 0),p([Z("x")],X.prototype,"writingMode",void 0),p([Z("left")],X.prototype,"textAlign",void 0),p([Z("top")],X.prototype,"verticalAlign",void 0),p([Z(!0)],X.prototype,"autoSizeAlign",void 0),p([Z("normal")],X.prototype,"textWrap",void 0),p([Z("show")],X.prototype,"textOverflow",void 0),p([Oe(!1)],X.prototype,"textEditing",void 0),X=p([Rt()],X);let Vt=class extends C{get __tag(){return"Path"}};p([Tt(Y7)],Vt.prototype,"__",void 0),p([ln("center")],Vt.prototype,"strokeAlign",void 0),Vt=p([Rt()],Vt);let Ks=class extends at{get __tag(){return"Pen"}setStyle(e){const t=this.pathElement=new Vt(e);return this.pathStyle=e,this.__path=t.path||(t.path=[]),this.add(t),this}paint(){const{pathElement:e}=this;e.__layout.boxChanged||e.forceUpdate("path")}};p([Tt(U7)],Ks.prototype,"__",void 0),p([(e,t)=>{xe(e,t,{get(){return this.__path}})}],Ks.prototype,"path",void 0),Ks=p([ce(A4,["set","path","paint"]),Rt()],Ks);let Hr=class extends Jt{get __tag(){return"App"}get isApp(){return!0}constructor(e,t){super(e,t)}init(e,t){if(super.init(e,t),e){const{ground:i,tree:s,sky:n,editor:r}=e;i&&(this.ground=this.addLeafer(i)),(s||r)&&(this.tree=this.addLeafer(s||{type:e.type||"design"})),(n||r)&&(this.sky=this.addLeafer(n)),r&&bt.editor(r,this)}}__setApp(){const{canvas:e}=this,{realCanvas:t,view:i}=this.config;t||i===this.canvas.view||!e.parentView?this.realCanvas=!0:e.unrealCanvas(),this.leafer=this,this.watcher.disable(),this.layouter.disable()}
1__updateLocalBounds(){this.forEach(e=>e.updateLayout()),super.__updateLocalBounds()}start(){super.start(),this.forEach(e=>e.start())}stop(){this.forEach(e=>e.stop()),super.stop()}unlockLayout(){super.unlockLayout(),this.forEach(e=>e.unlockLayout())}lockLayout(){super.lockLayout(),this.forEach(e=>e.lockLayout())}forceRender(e,t){this.forEach(i=>i.forceRender(e,t))}addLeafer(e){const t=new Jt(e);return this.add(t),t}add(e,t){if(!e.view){if(this.realCanvas&&!this.canvas.bounds)return void setTimeout(()=>this.add(e,t),10);e.init(this.__getChildConfig(e.userConfig),this)}super.add(e,t),M(t)||(e.canvas.childIndex=t),this.__listenChildEvents(e)}forEach(e){this.children.forEach(e)}__onCreated(){this.created=this.children.every(e=>e.created)}__onReady(){this.children.every(e=>e.ready)&&super.__onReady()}__onViewReady(){this.children.every(e=>e.viewReady)&&super.__onViewReady()}__onChildRenderEnd(e){this.renderer.addBlock(e.renderBounds),this.viewReady&&this.renderer.update()}__render(e,t){e.context&&this.forEach(i=>t.matrix?i.__render(e,t):e.copyWorld(i.canvas,t.bounds,void 0,void 0,!0))}__onResize(e){this.forEach(t=>t.resize(e)),super.__onResize(e)}updateLayout(){this.forEach(e=>e.updateLayout())}__getChildConfig(e){const t=Object.assign({},this.config);return t.hittable=t.realCanvas=void 0,e&&K.assign(t,e),this.autoLayout&&K.copyAttrs(t,this,De),t.view=this.realCanvas?void 0:this.view,t.fill=void 0,t}__listenChildEvents(e){e.once([[Et.END,this.__onReady,this],[ut.START,this.__onCreated,this],[ut.END,this.__onViewReady,this]]),this.realCanvas&&this.__eventIds.push(e.on_(ut.END,this.__onChildRenderEnd,this))}};Hr=p([Rt()],Hr);const Hn={},Z0={isHoldSpaceKey:()=>Z0.isHold("Space"),isHold:e=>Hn[e],isHoldKeys:(e,t)=>t?e(t):void 0,setDownCode(e){Hn[e]||(Hn[e]=!0)},setUpCode(e){Hn[e]=!1}},Pe={LEFT:1,RIGHT:2,MIDDLE:4,defaultLeft(e){e.buttons||(e.buttons=1)},left:e=>e.buttons===1,right:e=>e.buttons===2,middle:e=>e.buttons===4};class X1 extends He{get spaceKey(){return Z0.isHoldSpaceKey()}get left(){return Pe.left(this)}get right(){return Pe.right(this)}get middle(){return Pe.middle(this)}constructor(t){super(t.type),this.bubbles=!0,Object.assign(this,t)}isHoldKeys(t){return Z0.isHoldKeys(t,this)}getBoxPoint(t){return(t||this.current).getBoxPoint(this)}getInnerPoint(t){return(t||this.current).getInnerPoint(this)}getLocalPoint(t){return(t||this.current).getLocalPoint(this)}getPagePoint(){return this.current.getPagePoint(this)}getInner(t){return this.getInnerPoint(t)}getLocal(t){return this.getLocalPoint(t)}getPage(){return this.getPagePoint()}static changeName(t,i){es.changeName(t,i)}}const{min:Wl,max:$o,abs:zl}=Math,{float:Ht,sign:Hl}=_t,{minX:Xl,maxX:Yl,minY:Ul,maxY:Nl}=L,vt=new nt,ni=new nt,ss={limitMove(e,t){const{dragBounds:i,dragBoundsType:s}=e;i&&ri.getValidMove(e.__localBoxBounds,ri.getDragBounds(e),s,t,!0),ri.axisMove(e,t)},limitScaleOf(e,t,i,s){const{dragBounds:n,dragBoundsType:r}=e;n&&ri.getValidScaleOf(e.__localBoxBounds,ri.getDragBounds(e),r,e.getLocalPointByInner(e.getInnerPointByBox(t)),i,s,!0)},axisMove(e,t){const{draggable:i}=e;i==="x"&&(t.y=0),i==="y"&&(t.x=0)},getDragBounds(e){const{dragBounds:t}=e;return t==="parent"?e.parent.boxBounds:t},isInnerMode:(e,t,i,s)=>i==="inner"||i==="auto"&&Ht(e[s])>Ht(t[s]),getValidMove(e,t,i,s,n){const r=e.x+s.x,o=e.y+s.y,a=r+e.width,l=o+e.height,h=t.x+t.width,c=t.y+t.height;return n||(s=Object.assign({},s)),ri.isInnerMode(e,t,i,"width")?r>t.x?s.x+=t.x-r:a<h&&(s.x+=h-a):r<t.x?s.x+=t.x-r:a>h&&(s.x+=h-a),ri.isInnerMode(e,t,i,"height")?o>t.y?s.y+=t.y-o:l<c&&(s.y+=c-l):o<t.y?s.y+=t.y-o:l>c&&(s.y+=c-l),s.x=Ht(s.x),s.y=Ht(s.y),s},getValidScaleOf(e,t,i,s,n,r,o){o||(n=Object.assign({},n)),ni.set(t),vt.set(e).scaleOf(s,n.x,n.y);const a=Ht((s.x-e.x)/e.width),l=Ht(1-a),h=Ht((s.y-e.y)/e.height),c=Ht(1-h);let u,g,d,f,_=1,y=1;return ri.isInnerMode(e,t,i,"width")?(n.x<0&&vt.scaleOf(s,_=1/n.x,1),d=Ht(vt.minX-ni.minX),f=Ht(ni.maxX-vt.maxX),u=a&&d>0?1+d/(a*vt.width):1,g=l&&f>0?1+f/(l*vt.width):1,_*=$o(u,g)):(n.x<0&&((Ht(Xl(e)-Xl(t),2)<=0||Ht(Yl(t)-Yl(e),2)<=0)&&(vt.scaleOf(s,_=1/n.x,1),vt.width>1&&(_*=1/vt.width,vt.width=1)),vt.unsign()),d=Ht(ni.minX-vt.minX),f=Ht(vt.maxX-ni.maxX),u=a&&d>0?1-d/(a*vt.width):1,g=l&&f>
10?1-f/(l*vt.width):1,_*=Wl(u,g)),ri.isInnerMode(e,t,i,"height")?(n.y<0&&vt.scaleOf(s,1,y=1/n.y),d=Ht(vt.minY-ni.minY),f=Ht(ni.maxY-vt.maxY),u=h&&d>0?1+d/(h*vt.height):1,g=c&&f>0?1+f/(c*vt.height):1,y*=$o(u,g),r&&(u=$o(zl(_),zl(y)),_=Hl(_)*u,y=Hl(y)*u)):(n.y<0&&((Ht(Ul(e)-Ul(t),2)<=0||Ht(Nl(t)-Nl(e),2)<=0)&&(vt.scaleOf(s,1,y=1/n.y),vt.height>1&&(y*=1/vt.height,vt.height=1)),vt.unsign()),d=Ht(ni.minY-vt.minY),f=Ht(vt.maxY-ni.maxY),u=h&&d>0?1-d/(h*vt.height):1,g=c&&f>0?1-f/(c*vt.height):1,y*=Wl(u,g)),n.x*=Qa(_)?_:1,n.y*=Qa(y)?y:1,n}},ri=ss;let O=class extends X1{};O.POINTER="pointer",O.BEFORE_DOWN="pointer.before_down",O.BEFORE_MOVE="pointer.before_move",O.BEFORE_UP="pointer.before_up",O.DOWN="pointer.down",O.MOVE="pointer.move",O.UP="pointer.up",O.OVER="pointer.over",O.OUT="pointer.out",O.ENTER="pointer.enter",O.LEAVE="pointer.leave",O.TAP="tap",O.DOUBLE_TAP="double_tap",O.CLICK="click",O.DOUBLE_CLICK="double_click",O.LONG_PRESS="long_press",O.LONG_TAP="long_tap",O.MENU="pointer.menu",O.MENU_TAP="pointer.menu_tap",O=p([di()],O);const df=O,Cs={};let j=class extends O{static setList(e){this.list=e instanceof xt?e:new xt(e)}static setData(e){this.data=e}static getValidMove(e,t,i,s=!0){const n=e.getLocalPoint(i,null,!0);return R.move(n,t.x-e.x,t.y-e.y),s&&this.limitMove(e,n),ss.axisMove(e,n),n}static limitMove(e,t){ss.limitMove(e,t)}getPageMove(e){return this.assignMove(e),this.current.getPagePoint(Cs,null,!0)}getInnerMove(e,t){return e||(e=this.current),this.assignMove(t),e.getInnerPoint(Cs,null,!0)}getLocalMove(e,t){return e||(e=this.current),this.assignMove(t),e.getLocalPoint(Cs,null,!0)}getPageTotal(){return this.getPageMove(!0)}getInnerTotal(e){return this.getInnerMove(e,!0)}getLocalTotal(e){return this.getLocalMove(e,!0)}getPageBounds(){const e=this.getPageTotal(),t=this.getPagePoint(),i={};return L.set(i,t.x-e.x,t.y-e.y,e.x,e.y),L.unsign(i),i}assignMove(e){Cs.x=e?this.totalX:this.moveX,Cs.y=e?this.totalY:this.moveY}};j.BEFORE_DRAG="drag.before_drag",j.START="drag.start",j.DRAG="drag",j.END="drag.end",j.OVER="drag.over",j.OUT="drag.out",j.ENTER="drag.enter",j.LEAVE="drag.leave",j.ANIMATE="drag.animate",j=p([di()],j);const uf=j;
1let Js=class extends O{static setList(e){j.setList(e)}static setData(e){j.setData(e)}};Js.DROP="drop",Js=p([di()],Js);let gt=class extends j{};gt.BEFORE_MOVE="move.before_move",gt.START="move.start",gt.MOVE="move",gt.DRAG_ANIMATE="move.drag_animate",gt.END="move.end",gt.PULL_DOWN="move.pull_down",gt.REACH_BOTTOM="move.reach_bottom",gt=p([di()],gt);let c1=class extends X1{};c1=p([di()],c1);const gf=c1;let he=class extends O{};he.BEFORE_ROTATE="rotate.before_rotate",he.START="rotate.start",he.ROTATE="rotate",he.END="rotate.end",he=p([di()],he);let Me=class extends j{};Me.SWIPE="swipe",Me.LEFT="swipe.left",Me.RIGHT="swipe.right",Me.UP="swipe.up",Me.DOWN="swipe.down",Me=p([di()],Me);let Yt=class extends O{};Yt.BEFORE_ZOOM="zoom.before_zoom",Yt.START="zoom.start",Yt.ZOOM="zoom",Yt.END="zoom.end",Yt=p([di()],Yt);let qt=class extends X1{};qt.BEFORE_DOWN="key.before_down",qt.BEFORE_UP="key.before_up",qt.DOWN="key.down",qt.HOLD="key.hold",qt.UP="key.up",qt=p([di()],qt);const ze={getDragEventData:(e,t,i)=>Object.assign(Object.assign({},i),{x:i.x,y:i.y,moveX:i.x-t.x,moveY:i.y-t.y,totalX:i.x-e.x,totalY:i.y-e.y}),getDropEventData:(e,t,i)=>Object.assign(Object.assign({},e),{list:t,data:i}),getSwipeDirection:e=>e<-45&&e>-135?Me.UP:e>45&&e<135?Me.DOWN:e<=45&&e>=-45?Me.RIGHT:Me.LEFT,getSwipeEventData:(e,t,i)=>Object.assign(Object.assign({},i),{moveX:t.moveX,moveY:t.moveY,totalX:i.x-e.x,totalY:i.y-e.y,type:m9.getSwipeDirection(R.getAngle(e,i))}),getBase(e){const t=e.button===1?4:e.button;return{altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,time:Date.now(),buttons:M(e.buttons)?1:e.buttons===0?t:e.buttons,origin:e}},pathHasEventType(e,t){const{list:i}=e;for(let s=0,n=i.length;s<n;s++)if(i[s].hasEvent(t))return!0;return!1},filterPathByEventType(e,t){const i=new xt,{list:s}=e;for(let n=0,r=s.length;n<r;n++)s[n].hasEvent(t)&&i.add(s[n]);return i},pathCanDrag:e=>e&&e.list.some(t=>tt.draggable(t)||!t.isLeafer&&t.hasEvent(j.DRAG)),pathHasOutside:e=>e&&e.list.some(t=>t.isOutside)},m9=ze,jl=new xt,{getDragEventData:Jo,getDropEventData:x9,getSwipeEventData:w9}=ze;class Y4{constructor(t){this.dragDataList=[],this.interaction=t}setDragData(t){this.animateWait&&this.dragEndReal(),this.downData=this.interaction.downData,this.dragData=Jo(t,t,t),this.canAnimate=this.canDragOut=!0}getList(t,i){const{proxy:s}=this.interaction.selector,n=s&&s.list.length,r=j.list||this.draggableList||jl;return this.dragging&&(n?t?jl:new xt(i?[...s.list,...s.dragHoverExclude]:s.list):r)}checkDrag(t,i){const{interaction:s}=this;if(this.moving&&t.buttons<1)return this.canAnimate=!1,void s.pointerCancel();!this.moving&&i&&(this.moving=s.canMove(this.downData)||s.isHoldRightKey||s.isMobileDragEmpty)&&(this.dragData.moveType="drag",s.emit(gt.START,this.dragData)),this.moving||this.dragStart(t,i),this.drag(t)}dragStart(t,i){this.dragging||(this.dragging=i&&Pe.left(t),this.dragging&&(this.interaction.emit(j.START,this.dragData),this.getDraggableList(this.dragData.path),this.setDragStartPoints(this.realDraggableList=this.getList(!0))))}setDragStartPoints(t){this.dragStartPoints={},t.forEach(i=>this.dragStartPoints[i.innerId]={x:i.x,y:i.y})}getDraggableList(t){let i;for(let s=0,n=t.length;s<n;s++)if(i=t.list[s],tt.draggable(i)){this.draggableList=new xt(i);break}}drag(t){const{interaction:i,dragData:s,downData:n}=this,{path:r,throughPath:o}=n;this.dragData=Jo(n,s,t),o&&(this.dragData.throughPath=o),this.dragData.path=r,this.dragDataList.push(this.dragData),this.moving?(t.moving=!0,this.dragData.moveType="drag",i.emit(gt.BEFORE_MOVE,this.dragData),i.emit(gt.MOVE,this.dragData)):this.dragging&&(t.dragging=!0,this.dragReal(),i.emit(j.BEFORE_DRAG,this.dragData),i.emit(j.DRAG,this.dragData))}dragReal(t){const{interaction:i}=this,{running:s}=i,n=this.realDraggableList;if(n.length&&s){const{totalX:r,totalY:o}=this.dragData,{dragLimitAnimate:a}=i.p,l=!a||!!t;
1n.forEach(h=>{if(h.draggable){const c=G(h.draggable),u=j.getValidMove(h,this.dragStartPoints[h.innerId],{x:r,y:o},l||c);a&&!c&&t?tt.animateMove(h,u,$(a)?a:.3,()=>h.emit(j.ANIMATE)):h.move(u)}})}}dragOverOrOut(t){const{interaction:i}=this,{dragOverPath:s}=this,{path:n}=t;this.dragOverPath=n,s?n.indexAt(0)!==s.indexAt(0)&&(i.emit(j.OUT,t,s),i.emit(j.OVER,t,n)):i.emit(j.OVER,t,n)}dragEnterOrLeave(t){const{interaction:i}=this,{dragEnterPath:s}=this,{path:n}=t;i.emit(j.LEAVE,t,s,n),i.emit(j.ENTER,t,n,s),this.dragEnterPath=n}dragEnd(t){(this.dragging||this.moving)&&(setTimeout(()=>this.interaction.pointerMove(t)),this.checkDragEndAnimate(t)||this.dragEndReal(t))}dragEndReal(t){const{interaction:i,downData:s,dragData:n}=this;t||(t=n);const{path:r,throughPath:o}=s,a=Jo(s,t,t);if(o&&(a.throughPath=o),a.path=r,this.moving&&(this.moving=!1,a.moveType="drag",i.emit(gt.END,a)),this.dragging){const l=this.getList();this.dragging=!1,i.p.dragLimitAnimate&&this.dragReal(!0),i.emit(j.END,a),this.swipe(t,s,n,a),this.drop(t,l,this.dragEnterPath)}this.autoMoveCancel(),this.dragReset(),this.animate(null,"off")}swipe(t,i,s,n){const{interaction:r}=this;if(R.getDistance(i,t)>r.config.pointer.swipeDistance){const o=w9(i,s,n);this.interaction.emit(o.type,o)}}drop(t,i,s){const n=x9(t,i,j.data);n.path=s,this.interaction.emit(Js.DROP,n),this.interaction.emit(j.LEAVE,t,s)}dragReset(){j.list=j.data=this.draggableList=this.dragData=this.downData=this.dragOverPath=this.dragEnterPath=null,this.dragDataList=[]}checkDragEndAnimate(t,i){return!1}animate(t,i){}stopAnimate(){}checkDragOut(t){}autoMoveOnDragOut(t){}autoMoveCancel(){}destroy(){this.dragReset()}}const v9=rt.get("emit"),C9=["move","zoom","rotate","key"];function Vl(e,t,i,s,n){if(C9.some(r=>t.startsWith(r))&&e.__.hitChildren&&!U4(e,n)){let r;for(let o=0,a=e.children.length;o<a;o++)r=e.children[o],!i.path.has(r)&&r.__.hittable&&d1(r,t,i,s,n)}}function d1(e,t,i,s,n){if(e.destroyed)return!1;if(e.__.hitSelf&&!U4(e,n)&&(dt.updateEventStyle&&!s&&dt.updateEventStyle(e,t),e.hasEvent(t,s))){i.phase=s?1:e===i.target?2:3;const r=es.get(t,i);if(e.emitEvent(r,s),r.isStop)return!0}return!1}function U4(e,t){return t&&t.has(e)}const b9={wheel:{zoomSpeed:.5,moveSpeed:.5,rotateSpeed:.5,delta:{x:20,y:8}},pointer:{type:"pointer",snap:!0,hitRadius:5,tapTime:120,longPressTime:800,transformTime:500,hover:!0,dragHover:!0,dragDistance:2,swipeDistance:20},touch:{preventDefault:"auto"},multiTouch:{},move:{autoDistance:2},zoom:{},cursor:!0,keyEvent:!0},{pathHasEventType:Qo,pathCanDrag:k9,pathHasOutside:Gl}=ze;class N4{get dragging(){return this.dragger.dragging}get transforming(){return this.transformer.transforming}get moveMode(){return this.m.drag===!0||this.isHoldSpaceKey||this.isHoldMiddleKey||this.isHoldRightKey&&this.dragger.moving||this.isDragEmpty}get canHover(){return this.p.hover&&!this.config.mobile}get isDragEmpty(){return this.m.dragEmpty&&this.isRootPath(this.hoverData)&&(!this.downData||this.isRootPath(this.downData))}get isMobileDragEmpty(){return this.m.dragEmpty&&!this.canHover&&this.downData&&this.isTreePath(this.downData)}get isHoldMiddleKey(){return this.m.holdMiddleKey&&this.downData&&Pe.middle(this.downData)}get isHoldRightKey(){return this.m.holdRightKey&&this.downData&&Pe.right(this.downData)}get isHoldSpaceKey(){return this.m.holdSpaceKey&&Z0.isHoldSpaceKey()}get m(){return this.config.move}get p(){return this.config.pointer}get hitRadius(){return this.p.hitRadius}constructor(t,i,s,n){this.config=K.clone(b9),this.tapCount=0,this.downKeyMap={},this.target=t,this.canvas=i,this.selector=s,this.defaultPath=new xt(t),this.createTransformer(),this.dragger=new Y4(this),n&&(this.config=K.default(n,this.config)),this.__listenEvents()}start(){this.running=!0}stop(){this.running=!1}receive(t){}pointerDown(t,i){t||(t=this.hoverData),t&&(Pe.defaultLeft(t),this.updateDownData(t),this.checkPath(t,i),this.downTime=Date.now(),this.emit(O.BEFORE_DOWN,t),t.path.needUpdate&&this.updateDownData(t),this.emit(O.DOWN,t),Pe.left(t)&&(this.tapWait(),this.longPressWait(t)),this.waitRightTap=Pe.right(t),this.dragger.setDragData(t),this.isHoldRightKey||this.updateCursor(t))}pointerMove(t){if(t||(t=this.hoverData),!t)return;const{downData:i}=this;i&&Pe.defaultLeft(t),(this.canvas.bounds.hitPoint(t)||i)&&(this.pointerMoveReal(t),i&&this.dragger.checkDragOut(t))}
1pointerMoveReal(t){if(this.emit(O.BEFORE_MOVE,t,this.defaultPath),this.downData){const i=R.getDistance(this.downData,t)>this.p.dragDistance;i&&(this.pointerWaitCancel(),this.waitRightTap=!1),this.dragger.checkDrag(t,i)}this.dragger.moving||(this.updateHoverData(t),this.checkPath(t),this.emit(O.MOVE,t),this.pointerHover(t),this.dragging&&(this.dragger.dragOverOrOut(t),this.dragger.dragEnterOrLeave(t))),this.updateCursor(this.downData||t)}pointerUp(t){const{downData:i}=this;if(t||(t=i),!i)return;Pe.defaultLeft(t),t.multiTouch=i.multiTouch,this.findPath(t);const s=Object.assign(Object.assign({},t),{path:t.path.clone()});t.path.addList(i.path.list),this.checkPath(t),this.downData=null,this.emit(O.BEFORE_UP,t),this.emit(O.UP,t),this.touchLeave(t),t.isCancel||(this.tap(t),this.menuTap(t)),this.dragger.dragEnd(t),this.updateCursor(s)}pointerCancel(){const t=Object.assign({},this.dragger.dragData);t.isCancel=!0,this.pointerUp(t)}menu(t){this.findPath(t),this.emit(O.MENU,t),this.waitMenuTap=!0,!this.downData&&this.waitRightTap&&this.menuTap(t)}menuTap(t){this.waitRightTap&&this.waitMenuTap&&(this.emit(O.MENU_TAP,t),this.waitRightTap=this.waitMenuTap=!1)}createTransformer(){}move(t){}zoom(t){}rotate(t){}transformEnd(){}wheel(t){}multiTouch(t,i){}keyDown(t){if(!this.config.keyEvent)return;this.emit(qt.BEFORE_DOWN,t,this.defaultPath);const{code:i}=t;this.downKeyMap[i]||(this.downKeyMap[i]=!0,Z0.setDownCode(i),this.emit(qt.HOLD,t,this.defaultPath),this.moveMode&&(this.cancelHover(),this.updateCursor())),this.emit(qt.DOWN,t,this.defaultPath)}keyUp(t){if(!this.config.keyEvent)return;this.emit(qt.BEFORE_UP,t,this.defaultPath);const{code:i}=t;this.downKeyMap[i]=!1,Z0.setUpCode(i),this.emit(qt.UP,t,this.defaultPath),this.cursor==="grab"&&this.updateCursor()}pointerHover(t){!this.canHover||this.dragging&&!this.p.dragHover||(t.path||(t.path=new xt),this.pointerOverOrOut(t),this.pointerEnterOrLeave(t))}pointerOverOrOut(t){const{path:i}=t,{overPath:s}=this;this.overPath=i,s?i.indexAt(0)!==s.indexAt(0)&&(this.emit(O.OUT,t,s),this.emit(O.OVER,t,i)):this.emit(O.OVER,t,i)}pointerEnterOrLeave(t){let{path:i}=t;this.downData&&!this.moveMode&&(i=i.clone(),this.downData.path.forEach(n=>i.add(n)));const{enterPath:s}=this;this.enterPath=i,this.emit(O.LEAVE,t,s,i),this.emit(O.ENTER,t,i,s)}touchLeave(t){t.pointerType==="touch"&&this.enterPath&&(this.emit(O.LEAVE,t),this.dragger.dragging&&this.emit(Js.LEAVE,t))}tap(t){const{pointer:i}=this.config,s=this.longTap(t);if(!i.tapMore&&s||!this.waitTap)return;i.tapMore&&this.emitTap(t);const n=Date.now()-this.downTime,r=[O.DOUBLE_TAP,O.DOUBLE_CLICK].some(o=>Qo(t.path,o));n<i.tapTime+50&&r?(this.tapCount++,this.tapCount===2?(this.tapWaitCancel(),this.emitDoubleTap(t)):(clearTimeout(this.tapTimer),this.tapTimer=setTimeout(()=>{i.tapMore||(this.tapWaitCancel(),this.emitTap(t))},i.tapTime))):i.tapMore||(this.tapWaitCancel(),this.emitTap(t))}findPath(t,i){const{hitRadius:s,through:n}=this.p,{bottomList:r,target:o}=this;A.backgrounder||t.origin||o&&o.updateLayout();const a=this.selector.getByPoint(t,s,Object.assign({bottomList:r,name:t.type},i||{through:n}));return a.throughPath&&(t.throughPath=a.throughPath),t.path=a.path,a.path}isRootPath(t){return t&&t.path.list[0].isLeafer}isTreePath(t){const i=this.target.app;return!(!i||!i.isApp)&&i.editor&&!t.path.has(i.editor)&&t.path.has(i.tree)&&!t.target.syncEventer}checkPath(t,i){(i||this.moveMode&&!Gl(t.path))&&(t.path=this.defaultPath)}canMove(t){return t&&(this.moveMode||this.m.drag==="auto"&&!k9(t.path))&&!Gl(t.path)}isDrag(t){return this.dragger.getList().has(t)}isPress(t){return this.downData&&this.downData.path.has(t)}isHover(t){return this.enterPath&&this.enterPath.has(t)}isFocus(t){return this.focusData===t}cancelHover(){const{hoverData:t}=this;t&&(t.path=this.defaultPath,this.pointerHover(t))}stopDragAnimate(){this.dragger.stopAnimate()}replaceDownTarget(t){const{downData:i}=this;if(i&&t){const{path:s}=i;s.remove(s.list[0]),s.addAt(t,0)}}updateDownData(t,i,s){const{downData:n}=this;!t&&n&&(t=n),t&&(this.findPath(t,i),s&&n&&t.path.addList(n.path.list),this.downData=t)}updateHoverData(t){t||(t=this.hoverData),t&&(this.findPath(t,{exclude:this.dragger.getList(!1,!0),name:O.MOVE}),this.hoverData=t)}updateCursor(t){if(!this.config.cursor||!this.canHover)return;if(t||(this.updateHoverData(),t=this.downData||this.hoverData),this.dragger.moving)return this.setCursor("grabbing");if(this.canMove(t))return this.setCursor(this.downData?"grabbing":"grab");if(!t)return;let i,s;const{path:n}=t;
1for(let r=0,o=n.length;r<o&&(i=n.list[r],s=i.syncEventer&&i.syncEventer.cursor||i.cursor,!s);r++);this.setCursor(s)}setCursor(t){this.cursor=t}getLocal(t,i){const s=this.canvas.getClientBounds(i),n={x:t.clientX-s.x,y:t.clientY-s.y},{bounds:r}=this.canvas;return n.x*=r.width/s.width,n.y*=r.height/s.height,this.p.snap&&R.round(n),n}emitTap(t){this.emit(O.TAP,t),this.emit(O.CLICK,t)}emitDoubleTap(t){this.emit(O.DOUBLE_TAP,t),this.emit(O.DOUBLE_CLICK,t)}pointerWaitCancel(){this.tapWaitCancel(),this.longPressWaitCancel()}tapWait(){clearTimeout(this.tapTimer),this.waitTap=!0}tapWaitCancel(){this.waitTap&&(clearTimeout(this.tapTimer),this.waitTap=!1,this.tapCount=0)}longPressWait(t){clearTimeout(this.longPressTimer),this.longPressTimer=setTimeout(()=>{this.longPressed=!0,this.emit(O.LONG_PRESS,t)},this.p.longPressTime)}longTap(t){let i;return this.longPressed&&(this.emit(O.LONG_TAP,t),(Qo(t.path,O.LONG_TAP)||Qo(t.path,O.LONG_PRESS))&&(i=!0)),this.longPressWaitCancel(),i}longPressWaitCancel(){this.longPressTimer&&(clearTimeout(this.longPressTimer),this.longPressed=!1)}__onResize(){const{dragOut:t}=this.m;this.shrinkCanvasBounds=new nt(this.canvas.bounds),this.shrinkCanvasBounds.spread(-($(t)?t:2))}__listenEvents(){const{target:t}=this;this.__eventIds=[t.on_(Je.RESIZE,this.__onResize,this)],t.once(ct.READY,()=>this.__onResize())}__removeListenEvents(){this.target.off_(this.__eventIds),this.__eventIds.length=0}emit(t,i,s,n){this.running&&(function(r,o,a,l){if(!a&&!o.path)return;let h;o.type=r,a?o=Object.assign(Object.assign({},o),{path:a}):a=o.path,o.target=a.indexAt(0);try{for(let c=a.length-1;c>-1;c--){if(h=a.list[c],d1(h,r,o,!0,l))return;h.isApp&&Vl(h,r,o,!0,l)}for(let c=0,u=a.length;c<u;c++)if(h=a.list[c],h.isApp&&Vl(h,r,o,!1,l),d1(h,r,o,!1,l))return}catch(c){v9.error(c)}})(t,i,s,n)}destroy(){this.__eventIds.length&&(this.stop(),this.__removeListenEvents(),this.dragger.destroy(),this.transformer&&this.transformer.destroy(),this.downData=this.overPath=this.enterPath=null)}}class j4{static set(t,i){this.custom[t]=i}static get(t){return this.custom[t]}}j4.custom={};class B9 extends w4{constructor(){super(...arguments),this.maxTotal=1e3,this.pathList=new xt,this.pixelList=new xt}getPixelType(t,i){return this.__autoClear(),this.pixelList.add(t),bt.hitCanvas(i)}getPathType(t){return this.__autoClear(),this.pathList.add(t),bt.hitCanvas()}clearImageType(){this.__clearLeafList(this.pixelList)}clearPathType(){this.__clearLeafList(this.pathList)}__clearLeafList(t){t.length&&(t.forEach(i=>{i.__hitCanvas&&(i.__hitCanvas.destroy(),i.__hitCanvas=null)}),t.reset())}__autoClear(){this.pathList.length+this.pixelList.length>this.maxTotal&&this.clear()}clear(){this.clearPathType(),this.clearImageType()}}A.getSelector=function(e){return e.leafer?e.leafer.selector:A.selector||(A.selector=bt.selector())};const{toInnerRadiusPointOf:S9,copyRadiusPoint:ql}=R,{hitRadiusPoint:E9,hitPoint:A9}=L,bs={},ks={},S0=is.prototype;S0.hit=function(e,t=0){this.updateLayout(),ql(ks,e,t);const i=this.__world;return!!(t?E9(i,ks):A9(i,ks))&&(this.isBranch?A.getSelector(this).hitPoint(Object.assign({},ks),t,{target:this}):this.__hitWorld(ks))},S0.__hitWorld=function(e,t){const i=this.__;if(!i.hitSelf)return!1;const s=this.__world,n=this.__layout,r=s.width<10&&s.height<10;if(i.hitRadius&&(ql(bs,e,i.hitRadius),e=bs),S9(e,s,bs),i.hitBox||r){if(L.hitRadiusPoint(n.boxBounds,bs))return!0;if(r)return!1}return!n.hitCanvasChanged&&this.__hitCanvas||(this.__updateHitCanvas(),n.boundsChanged||(n.hitCanvasChanged=!1)),this.__hit(bs,t)},S0.__hitFill=function(e){const t=this.__hitCanvas;return t&&t.hitFill(e,this.__.windingRule)},S0.__hitStroke=function(e,t){const i=this.__hitCanvas;return i&&i.hitStroke(e,t)},S0.__hitPixel=function(e){const t=this.__hitCanvas;return t&&t.hitPixel(e,this.__layout.renderBounds,t.hitScale)},S0.__drawHitPath=function(e){e&&this.__drawRenderPath(e)};const T9=new Kt,Kl=C.prototype;Kl.__updateHitCanvas=function(){this.__box&&this.__box.__updateHitCanvas();const{hitCanvasManager:e}=this.leafer||this.parent&&this.parent.leafer||{};if(!e)return;const t=this.__,i=(t.__isAlphaPixelFill||t.__isCanvas)&&t.hitFill==="pixel",s=t.__isAlphaPixelStroke&&t.hitStroke==="pixel",n=i||s;this.__hitCanvas||(this.__hitCanvas=n?e.getPixelType(this,{contextSettings:{willReadFrequently:!0}}):e.getPathType(this));const r=this.__hitCanvas;if(n){const{renderBounds:o}=this.__layout,a=A.image.hitCanvasSize,l=r.hitScale=r0.set(0,0,a,a).getFitMatrix(o).a,{x:h,y:c,width:u,height:g}=r0.set(o).scale(l);r.resize({width:u,height:g,pixelRatio:1}),r.clear(),Ee.patternLocked=!0,this.__renderShape(r,{matrix:T9.setWith(this.__world).scaleWith(1/l).invertWith().translate(-h,-c),snapshot:!0,ignoreFill:!i,ignoreStroke:!s}),Ee.patternLocked=!1,r.resetTransform(),t.__isHitPixel=!0}else t.__isHitPixel&&(t.__isHitPixel=!1);this.__drawHitPath(r),r.setStrokeOptions(t)},Kl.__hit=function(e,t){if(this.__box&&this.__box.__hit(e))return!0;const i=this.__;if(i.__isHitPixel&&this.__hitPixel(e))return!0;const{hitFill:s}=i,n=(i.fill||i.__isCanvas)&&(s==="path"||s==="pixel"&&!(i.__isAlphaPixelFill||i.__isCanvas))||s==="all"||t;if(n&&this.__hitFill(e))return!0;const{hitStroke:r,strokeScaleFixed:o}=i,a=i.__maxStrokeWidth*(o?this.getRenderScaleData(!0,o,!1).scaleX:1),l=i.stroke&&(r==="path"||r==="pixel"&&!i.__isAlphaPixelStroke)||r==="all";if(!n&&!l)return!1;const h=2*e.radiusX;let c=h,{strokeAlign:u}=i;if(i.motionText&&(c+=i.fontSize/2,u="center"),l)switch(u){case"inside":if(c+=2*a,!n&&this.__hitFill(e)&&this.__hitStroke(e,c))return!0;c=h;break;case"center":c+=a;break;case"outside":if(c+=2*a,!n){if(!this.__hitFill(e)&&this.__hitStroke(e,c))return!0;c=h}}return!!c&&this.__hitStroke(e,c)};const Zl=C.prototype,$l=Q.prototype,Jl=k.prototype;$l.__updateHitCanvas=Jl.__updateHitCanvas=function(){this.stroke||this.cornerRadius||(this.fill||this.__.__isCanvas)&&this.hitFill==="pixel"||this.hitStroke==="all"?Zl.__updateHitCanvas.call(this):this.__hitCanvas&&(this.__hitCanvas=null)},$l.__hitFill=Jl.__hitFill=function(e){return this.__hitCanvas?Zl.__hitFill.call(this,e):L.hitRadiusPoint(this.__layout.boxBounds,e)},X.prototype.__drawHitPath=function(e){const t=this.__,{__lineHeight:i,fontSize:s,__baseLine:n,__letterSpacing:r,__textDrawData:o}=t;e.beginPath(),t.motionText?this.__drawPathByData(e,t.__pathForMotionText):r<0?this.__drawPathByBox(e):o.rows.forEach(a=>e.rect(a.x,a.y-n,a.width,i<s?s:i))},at.prototype.pick=function(e,t){return t||(t=bc),this.updateLayout(),A.getSelector(this).getByPoint(e,t.hitRadius||0,Object.assign(Object.assign({},t),{target:this}))};const ta=D1.prototype;
1ta.hitFill=function(e,t){return t?this.context.isPointInPath(e.x,e.y,t):this.context.isPointInPath(e.x,e.y)},ta.hitStroke=function(e,t){return this.strokeWidth=t,this.context.isPointInStroke(e.x,e.y)},ta.hitPixel=function(e,t,i=1){let{x:s,y:n,radiusX:r,radiusY:o}=e;t&&(s-=t.x,n-=t.y),r0.set(s-r,n-o,2*r,2*o).scale(i).ceil();const{data:a}=this.context.getImageData(r0.x,r0.y,r0.width||1,r0.height||1);for(let l=0,h=a.length;l<h;l+=4)if(a[l+3]>0)return!0;return a[3]>0};const ae={convert(e,t){const i=ze.getBase(e),{x:s,y:n}=t,r=Object.assign(Object.assign({},i),{x:s,y:n,width:e.width,height:e.height,pointerType:e.pointerType,pressure:e.pressure});return r.pointerType==="pen"&&(r.tangentialPressure=e.tangentialPressure,r.tiltX=e.tiltX,r.tiltY=e.tiltY,r.twist=e.twist),r},convertMouse(e,t){const i=ze.getBase(e),{x:s,y:n}=t;return Object.assign(Object.assign({},i),{x:s,y:n,width:1,height:1,pointerType:"mouse",pressure:.5})},convertTouch(e,t){const i=ae.getTouch(e),s=ze.getBase(e),{x:n,y:r}=t;return Object.assign(Object.assign({},s),{x:n,y:r,width:1,height:1,pointerType:"touch",multiTouch:e.touches.length>1,pressure:i.force})},getTouch:e=>e.targetTouches[0]||e.changedTouches[0]},Ql={convert(e){const t=ze.getBase(e);return Object.assign(Object.assign({},t),{code:e.code,key:e.key})}},{pathCanDrag:R9}=ze;class L9 extends N4{get windowTarget(){const{view:t}=this;return t&&t.ownerDocument||window}get notPointer(){const{p:t}=this;return t.type!=="pointer"||t.touch||this.useMultiTouch}get notTouch(){const{p:t}=this;return t.type==="mouse"||this.usePointer}get notMouse(){return this.usePointer||this.useTouch}__listenEvents(){super.__listenEvents();const t=this.view=this.canvas.view;this.viewEvents={pointerdown:this.onPointerDown,mousedown:this.onMouseDown,touchstart:this.onTouchStart,pointerleave:this.onPointerLeave,contextmenu:this.onContextMenu,wheel:this.onWheel,gesturestart:this.onGesturestart,gesturechange:this.onGesturechange,gestureend:this.onGestureend},this.windowEvents={pointermove:this.onPointerMove,pointerup:this.onPointerUp,pointercancel:this.onPointerCancel,mousemove:this.onMouseMove,mouseup:this.onMouseUp,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchCancel,keydown:this.onKeyDown,keyup:this.onKeyUp,scroll:this.onScroll};const{viewEvents:i,windowEvents:s}=this;for(let n in i)i[n]=i[n].bind(this),t.addEventListener(n,i[n]);for(let n in s)s[n]=s[n].bind(this),this.windowTarget.addEventListener(n,s[n])}__removeListenEvents(){super.__removeListenEvents();const{viewEvents:t,windowEvents:i}=this;for(let s in t)this.view.removeEventListener(s,t[s]),this.viewEvents={};for(let s in i)this.windowTarget.removeEventListener(s,i[s]),this.windowEvents={}}getTouches(t){const i=[];for(let s=0,n=t.length;s<n;s++)i.push(t[s]);return i}preventDefaultPointer(t){const{pointer:i}=this.config;i.preventDefault&&t.preventDefault()}preventDefaultWheel(t){const{wheel:i}=this.config;i.preventDefault&&t.preventDefault()}preventWindowPointer(t){return!this.downData&&t.target!==this.view&&(!this.config.shadowDOM||!t.composedPath||!t.composedPath().includes(this.view))}onKeyDown(t){this.keyDown(Ql.convert(t))}onKeyUp(t){this.keyUp(Ql.convert(t))}onContextMenu(t){this.config.pointer.preventDefaultMenu&&t.preventDefault(),this.menu(ae.convert(t,this.getLocal(t)))}onScroll(){this.canvas.updateClientBounds()}onPointerDown(t){this.preventDefaultPointer(t),this.notPointer||(this.usePointer||(this.usePointer=!0),this.pointerDown(ae.convert(t,this.getLocal(t))))}onPointerMove(t,i){if(this.notPointer||this.preventWindowPointer(t))return;this.usePointer||(this.usePointer=!0);const s=ae.convert(t,this.getLocal(t,!0));i?this.pointerHover(s):this.pointerMove(s)}onPointerLeave(t){this.onPointerMove(t,!0)}onPointerUp(t){this.downData&&this.preventDefaultPointer(t),this.notPointer||this.preventWindowPointer(t)||this.pointerUp(ae.convert(t,this.getLocal(t)))}onPointerCancel(){this.useMultiTouch||this.pointerCancel()}onMouseDown(t){this.preventDefaultPointer(t),this.notMouse||this.pointerDown(ae.convertMouse(t,this.getLocal(t)))}onMouseMove(t){this.notMouse||this.preventWindowPointer(t)||this.pointerMove(ae.convertMouse(t,this.getLocal(t,!0)))}onMouseUp(t){this.downData&&this.preventDefaultPointer(t),this.notMouse||this.preventWindowPointer(t)||this.pointerUp(ae.convertMouse(t,this.getLocal(t)))}onMouseCancel(){this.notMouse||this.pointerCancel()}onTouchStart(t){const i=ae.getTouch(t),s=this.getLocal(i,!0),{preventDefault:n}=this.config.touch;(n===!0||n==="auto"&&R9(this.findPath(s)))&&t.preventDefault(),this.multiTouchStart(t),this.notTouch||(this.touchTimer&&(window.clearTimeout(this.touchTimer),this.touchTimer=0),this.useTouch=!0,this.pointerDown(ae.convertTouch(t,s)))}onTouchMove(t){if(this.multiTouchMove(t),this.notTouch||this.preventWindowPointer(t))return;const i=ae.getTouch(t);this.pointerMove(ae.convertTouch(t,this.getLocal(i)))}onTouchEnd(t){if(this.multiTouchEnd(),this.notTouch||this.preventWindowPointer(t))return;this.touchTimer&&clearTimeout(this.touchTimer),this.touchTimer=setTimeout(()=>{this.useTouch=!1},500);const i=ae.getTouch(t);this.pointerUp(ae.convertTouch(t,this.getLocal(i)))}onTouchCancel(){this.notTouch||this.pointerCancel()}multiTouchStart(t){this.useMultiTouch=t.touches.length>1,this.touches=this.useMultiTouch?this.getTouches(t.touches):void 0,this.useMultiTouch&&this.pointerCancel()}multiTouchMove(t){if(this.useMultiTouch&&t.touches.length>1){const i=this.getTouches(t.touches),s=this.getKeepTouchList(this.touches,i);s.length>1&&(this.multiTouch(ze.getBase(t),s),this.touches=i)}}multiTouchEnd(){this.touches=null,this.useMultiTouch=!1,this.transformEnd()}getKeepTouchList(t,i){let s;const n=[];return t.forEach(r=>{s=i.find(o=>o.identifier===r.identifier),s&&n.push({from:this.getLocal(r),to:this.getLocal(s)})}),n}getLocalTouchs(t){return t.map(i=>this.getLocal(i))}onWheel(t){this.preventDefaultWheel(t),this.wheel(Object.assign(Object.assign(Object.assign({},ze.getBase(t)),this.getLocal(t)),{deltaX:t.deltaX,deltaY:t.deltaY}))}onGesturestart(t){this.useMultiTouch||(this.preventDefaultWheel(t),this.lastGestureScale=1,this.lastGestureRotation=0)}onGesturechange(t){if(this.useMultiTouch)return;this.preventDefaultWheel(t);const i=ze.getBase(t);Object.assign(i,this.getLocal(t));const s=t.scale/this.lastGestureScale,n=(t.rotation-this.lastGestureRotation)/Math.PI*180*(_t.within(this.config.wheel.rotateSpeed,0,1)/4+.1);this.zoom(Object.assign(Object.assign({},i),{scale:s*s})),this.rotate(Object.assign(Object.assign({},i),{rotation:n})),this.lastGestureScale=t.scale,this.lastGestureRotation=t.rotation}onGestureend(t){this.useMultiTouch||(this.preventDefaultWheel(t),this.transformEnd())}setCursor(t){super.setCursor(t);const i=[];this.eachCursor(t,i),W(i[i.length-1])&&i.push("default"),this.canvas.view.style.cursor=i.map(s=>W(s)?`url(${s.url}) ${s.x||0} ${s.y||0}`:s).join(",")}eachCursor(t,i,s=0){if(s++,J(t))t.forEach(n=>this.eachCursor(n,i,s));else{const n=G(t)&&j4.get(t);n&&s<2?this.eachCursor(n,i,s):i.push(t)}}destroy(){this.view&&(super.destroy(),this.view=this.touches=null)}}function Bs(e,t,i,s){e.__.__font?it.fillText(e,t,i,s):e.__.windingRule?t.fill(e.__.windingRule):t.fill()}function Xn(e,t,i,s,n){const r=i.__;W(e)?it.drawStrokesStyle(e,t,!1,i,s,n):(s.setStroke(e,r.__strokeWidth*t,r),s.stroke()),r.__useArrow&&it.strokeArrow(e,i,s,n)}function u1(e,t,i,s,n){const r=i.__;W(e)?it.drawStrokesStyle(e,t,!0,i,s,n):(s.setStroke(e,r.__strokeWidth*t,r),it.drawTextStroke(i,s,n))}function th(e,t,i,s,n){const r=s.getSameCanvas(!0,!0);r.font=i.__.__font,u1(e,2,i,r,n),r.blendMode=t==="outside"?"destination-out":"destination-in",it.fillText(i,r,n),r.blendMode="normal",tt.copyCanvasByWorld(i,s,r),r.recycle(i.__nowWorld)}const{getSpread:F9,copyAndSpread:P9,toOuterOf:M9,getOuterOf:eh,getByMove:
1D9,move:O9,getIntersectData:I9}=L,ih={};let g1;const{stintSet:Ss}=K,{hasTransparent:W9}=Ct;function z9(e,t,i){if(!W(t)||t.visible===!1||t.opacity===0)return;let s;const{boxBounds:n}=i.__layout,{type:r}=t;switch(r){case"image":case"film":case"video":if(!t.url)return;s=kt.image(i,e,t,n,!g1||!g1[t.url]),r!=="image"&&kt[r](s);break;case"linear":s=Rr.linearGradient(t,n);break;case"radial":s=Rr.radialGradient(t,n);break;case"angular":s=Rr.conicGradient(t,n);break;case"solid":const{color:o,opacity:a}=t;s={type:r,style:Ct.string(o,a)};break;default:M(t.r)||(s={type:"solid",style:Ct.string(t)})}if(s&&(s.originPaint=t,G(s.style)&&W9(s.style)&&(s.isTransparent=!0),t.style)){if(t.style.strokeWidth===0)return;s.strokeStyle=t.style}return s}const H9={compute:function(e,t){const i=t.__,s=[];let n,r,o,a=i.__input[e];J(a)||(a=[a]),g1=kt.recycleImage(e,i);for(let l,h=0,c=a.length;h<c;h++)(l=z9(e,a[h],t))&&(s.push(l),l.strokeStyle&&(o||(o=1),l.strokeStyle.strokeWidth&&(o=Math.max(o,l.strokeStyle.strokeWidth))));s.length?(i["_"+e]=s,s.every(l=>l.isTransparent)&&(s.some(l=>l.image)&&(n=!0),r=!0),e==="fill"?(Ss(i,"__isAlphaPixelFill",n),Ss(i,"__isTransparentFill",r)):(Ss(i,"__isAlphaPixelStroke",n),Ss(i,"__isTransparentStroke",r),Ss(i,"__hasMultiStrokeStyle",o))):(i.__removePaint(e,!1),i["_"+e]="")},fill:function(e,t,i,s){i.fillStyle=e,Bs(t,i,s)},fills:function(e,t,i,s){let n,r,o;for(let a=0,l=e.length;a<l;a++){if(n=e[a],r=n.originPaint,n.image){if(o?o++:o=1,kt.checkImage(n,!t.__.__font,t,i,s))continue;if(!n.style){o===1&&n.image.isPlacehold&&t.drawImagePlaceholder(n,i,s);continue}}if(i.fillStyle=n.style,n.transform||r.scaleFixed){if(i.save(),n.transform&&i.transform(n.transform),r.scaleFixed){const{scaleX:h,scaleY:c}=t.getRenderScaleData(!0,r.scaleFixed,!1);h!==1&&i.scale(h,c)}r.blendMode&&(i.blendMode=r.blendMode),Bs(t,i,s,!0),i.restore()}else r.blendMode?(i.saveBlendMode(r.blendMode),Bs(t,i,s),i.restoreBlendMode()):Bs(t,i,s)}},fillPathOrText:Bs,fillText:function(e,t,i,s){const n=e.__;let r;if(n.__isPlacehold&&n.placeholderColor&&(t.fillStyle=n.placeholderColor),s&&(r=t,(t=t.getSameCanvas(!0,!0)).font=e.__.__font,t.fillStyle="#000"),e.motionText)it.fillMotionText(e,t,i);else{let o;const{rows:a,decorationY:l}=n.__textDrawData;for(let h=0,c=a.length;h<c;h++)o=a[h],o.text?t.fillText(o.text,o.x,o.y):o.data&&o.data.forEach(u=>{t.fillText(u.char,u.x,o.y)});if(l){const{decorationColor:h,decorationHeight:c}=n.__textDrawData;h&&(t.fillStyle=h),a.forEach(u=>l.forEach(g=>t.fillRect(u.x,u.y+g,u.width,c)))}}s&&(t.beginPath(),e.__drawPathByBox(t,"render"),t.fillStyle=r.fillStyle,t.setTransform(r.getTransform()),t.blendMode="source-in",t.fill(),r.copyWorldByReset(t,e.__nowWorld),t.recycle(e.__nowWorld))},stroke:function(e,t,i,s){const n=t.__;if(n.__strokeWidth)if(n.__font)it.strokeText(e,t,i,s);else if(n.__pathForStroke)it.fillStroke(e,t,i,s);else switch(n.strokeAlign){case"center":Xn(e,1,t,i,s);break;case"inside":(function(r,o,a,l){a.save(),a.clipUI(o),Xn(r,2,o,a,l),a.restore()})(e,t,i,s);break;case"outside":(function(r,o,a,l){const h=o.__;if(h.__fillAfterStroke)Xn(r,2,o,a,l);else{const{renderBounds:c}=o.__layout,u=a.getSameCanvas(!0,!0);o.__drawRenderPath(u),Xn(r,2,o,u,l),u.clipUI(h),u.clearWorld(c),tt.copyCanvasByWorld(o,a,u),u.recycle(o.__nowWorld)}})(e,t,i,s)}},strokes:function(e,t,i,s){it.stroke(e,t,i,s)},strokeText:function(e,t,i,s){switch(t.__.strokeAlign){case"center":u1(e,1,t,i,s);break;case"inside":th(e,"inside",t,i,s);break;case"outside":t.__.__fillAfterStroke?u1(e,2,t,i,s):th(e,"outside",t,i,s)}},drawTextStroke:function(e,t,i){let s,n=e.__.__textDrawData;const{rows:r,decorationY:o}=n;for(let a=0,l=r.length;a<l;a++)s=r[a],s.text?t.strokeText(s.text,s.x,s.y):s.data&&s.data.forEach(h=>{t.strokeText(h.char,h.x,s.y)});if(o){const{decorationHeight:a}=n;r.forEach(l=>o.forEach(h=>t.strokeRect(l.x,l.y+h,l.width,a)))}},drawStrokesStyle:function(e,t,i,s,n,r){let o;const a=s.__,{__hasMultiStrokeStyle:l}=a;l||n.setStroke(void 0,a.__strokeWidth*t,a);for(let h=0,c=e.length;h<c;h++)if(o=e[h],(!o.image||!kt.checkImage(o,!1,s,n,r))&&o.style){if(l){const{strokeStyle:u}=o;u?n.setStroke(o.style,a.__getRealStrokeWidth(u)*t,a,u):n.setStroke(o.style,a.__strokeWidth*t,a)}else n.strokeStyle=o.style;o.originPaint.blendMode?(n.saveBlendMode(o.originPaint.blendMode),i?it.drawTextStroke(s,n,r):n.stroke(),n.restoreBlendMode()):i?it.drawTextStroke(s,n,r):n.stroke()}},shape:function(e,t,i){const s=t.getSameCanvas(),n=t.bounds,r=e.__nowWorld,o=e.__layout,a=e.__nowWorldShapeBounds||(e.__nowWorldShapeBounds={});let l,h,c,u,g,d;M9(o.strokeSpread?(P9(ih,o.boxBounds,o.strokeSpread),ih):o.boxBounds,r,a);let{scaleX:f,scaleY:_}=e.getRenderScaleData(!0);if(n.includes(a))d=s,l=g=a,h=r;else{let y;if(A.fullImageShadow)y=a;else{const v=o.renderShapeSpread?F9(n,nn.swapAndScale(o.renderShapeSpread,f,_)):n;y=I9(v,a)}u=n.getFitMatrix(y);let{a:x,d:m}=u;u.a<1&&(d=t.getSameCanvas(),e.__renderShape(d,i),f*=x,_*=m),g=eh(a,u),l=D9(g,-u.e,-u.f),h=eh(r,u),O9(h,-u.e,-u.f);const w=i.matrix;w?(c=new Kt(u),c.multiply(w),x*=w.scaleX,m*=w.scaleY):c=u,c.withScale(x,m),i=Object.assign(Object.assign({},i),{matrix:c})}return e.__renderShape(s,i),{canvas:s,matrix:c,fitMatrix:u,bounds:l,renderBounds:h,worldCanvas:d,shapeBounds:g,scaleX:f,scaleY:_}}};let Es,X9=new nt;const{isSame:Y9}=L;function sh(e,t,i,s,n,r){let o=!0;const a=e.__;
1if(t!=="fill"||a.__naturalWidth||(a.__naturalWidth=s.width/a.pixelRatio,a.__naturalHeight=s.height/a.pixelRatio,a.__autoSide&&(e.forceUpdate(),tt.updateBounds(e,!0),e.__layout.boundsChanged=!0,e.__proxyData&&(e.setProxyAttr("width",a.width),e.setProxyAttr("height",a.height)),o=!1)),i.mode==="brush"&&kt.brush(e,t,n),!n.data){kt.createData(n,s,i,r);const{transform:l}=n.data,{opacity:h}=i,c=(l&&!l.onlyScale||a.path||a.cornerRadius)&&!n.brush;(c||h&&h<1||i.blendMode)&&(n.complex=!c||2)}return i.filter&&kt.applyFilter(n,s,i.filter,e),o}function nh(e,t){Y1(e,We.LOAD,t)}function rh(e,t){Y1(e,We.LOADED,t)}function oh(e,t,i){t.error=i,e.forceUpdate("surface"),Y1(e,We.ERROR,t)}function Y1(e,t,i){e.hasEvent(t)&&e.emitEvent(new We(t,i))}function ea(e,t){const{leafer:i}=e;i&&i.viewReady&&(i.renderer.ignore=t)}const{get:U9,translate:N9}=q,j9=new nt,ia={},Nt={};function ah(e,t,i,s){const n=G(e)||s?(s?i-s*t:i%t)/((s||Math.floor(i/t))-1):e;return e==="auto"&&n<0?0:n}let As={},sa={a:1,b:0,c:0,d:1,e:0,f:0};const{get:Yn,set:V9,rotateOfOuter:lh,translate:i0,scaleOfOuter:na,multiplyParent:G9,scale:p1,rotate:V4,skew:q9}=q;function hh(e,t,i,s,n,r,o,a){o&&V4(e,o),a&&q9(e,a.x,a.y),n&&p1(e,n,r),i0(e,t.x+i,t.y+s)}const{get:K9,scale:Z9,copy:$9}=q,{getFloorScale:ch}=_t,{abs:dh}=Math,J9={image:function(e,t,i,s,n){let r,o;const a=Ee.get(i,i.type);return Es&&i===Es.paint&&Y9(s,Es.boxBounds)?r=Es.leafPaint:(r={type:i.type,image:a},a.hasAlphaPixel&&(r.isTransparent=!0),Es=a.use>1?{leafPaint:r,paint:i,boxBounds:X9.set(s)}:null),(n||a.loading)&&(o={image:a,attrName:t,attrValue:i}),a.ready?(sh(e,t,i,a,r,s),n&&(nh(e,o),rh(e,o))):a.error?n&&oh(e,o,a.error):(n&&(ea(e,!0),nh(e,o)),r.loadId=a.load(()=>{ea(e,!1),e.destroyed||(sh(e,t,i,a,r,s)&&(a.hasAlphaPixel&&(e.__layout.hitCanvasChanged=!0),e.forceUpdate("surface")),rh(e,o)),r.loadId=void 0},l=>{ea(e,!1),oh(e,o,l),r.loadId=void 0},i.lod&&a.getThumbSize(i.lod)),e.placeholderColor&&(e.placeholderDelay?setTimeout(()=>{a.ready||(a.isPlacehold=!0,e.forceUpdate("surface"))},e.placeholderDelay):a.isPlacehold=!0)),r},checkImage:function(e,t,i,s,n){const{scaleX:r,scaleY:o}=kt.getImageRenderScaleData(e,i,s,n),a=e.film?e.nowIndex:r+"-"+o,{image:l,brush:h,data:c,originPaint:u}=e,{exporting:g,snapshot:d}=n;if(!c||e.patternId===a&&!g||d){if(!h||!e.style)return!1}else if(t&&(c.repeat?t=!1:u.changeful||e.film||A.name==="miniapp"||g||(t=A.image.isLarge(l,r,o)||l.width*r>8096||l.height*o>8096)),t)i.__.__isFastShadow&&(s.fillStyle=e.style||"#000",s.fill());else if(!e.style||u.sync||g?kt.createPattern(e,i,s,n):kt.createPatternTask(e,i,s,n),!h||!e.style)return!1;return kt.drawImage(e,r,o,i,s,n),!0},drawImage:function(e,t,i,s,n,r){const{data:o,image:a,brush:l,complex:h}=e;let{width:c,height:u}=a,g=l||a;if(h){const{blendMode:d,opacity:f}=e.originPaint,{transform:_}=o;n.save(),h===2&&n.clipUI(s),d&&(n.blendMode=d),f&&(n.opacity*=f),_&&n.transform(_),g.render(n,0,0,c,u,s,e,t,i),n.restore()}else o.scaleX&&(c*=o.scaleX,u*=o.scaleY),g.render(n,0,0,c,u,s,e,t,i)},getImageRenderScaleData:function(e,t,i,s){const n=t.getRenderScaleData(!0,e.originPaint.scaleFixed),{data:r}=e;if(e.brush&&kt.addBrushScale(n,e,t),i){const{pixelRatio:o}=i;n.scaleX*=o,n.scaleY*=o}return r&&r.scaleX&&(n.scaleX*=Math.abs(r.scaleX),n.scaleY*=Math.abs(r.scaleY)),n},recycleImage:function(e,t){const i=t["_"+e];if(J(i)){let s,n,r,o,a;const l=t.__leaf;for(let h=0,c=i.length;h<c;h++)s=i[h],n=s.image,a=n&&n.url,a&&(r||(r={}),r[a]=!0,Ee.recyclePaint(s),s.brush&&kt.recycleBrush(s,l),t.__willDestroy&&n.parent&&kt.recycleFilter(n,l),n.loading&&(o||(o=t.__input&&t.__input[e]||[],J(o)||(o=[o])),n.unload(i[h].loadId,!o.some(u=>u.url===a))));return r}return null},createPatternTask:function(e,t,i,s){e.patternTask||(e.patternTask=Ee.patternTasker.add(()=>l0(this,void 0,void 0,function*(){kt.createPattern(e,t,i,s),t.forceUpdate("surface")}),0,()=>(e.patternTask=null,i.bounds.hit(t.__nowWorld))))},createPattern:function(e,t,i,s){let{scaleX:n,scaleY:r}=kt.getImageRenderScaleData(e,t,i,s),o=e.film?e.nowIndex:n+"-"+r;if(e.patternId!==o&&!t.destroyed&&(!A.image.isLarge(e.image,n,r)||e.data.repeat)){const{image:a,brush:l,data:h}=e,{transform:c,gap:u}=h,g=kt.getPatternFixScale(e,n,r);let d,f,_,{width:y,height:x}=a,{opacity:m}=e.originPaint;(l||m===1)&&(m=void 0),g&&(n*=g,r*=g),y*=n,x*=r,u&&!l&&(f=u.x*n/dh(h.scaleX||1),_=u.y*r/dh(h.scaleY||1)),(c||n!==1||r!==1)&&(n*=ch(y+(f||0)),r*=ch(x+(_||0)),d=K9(),c&&$9(d,c),Z9(d,1/n,1/r));const w=a.getCanvas(y,x,m,void 0,f,_,t.leafer&&t.leafer.config.smooth,h.interlace);l?(e.style=w,kt.cacheBrush(e,t,i,s)):e.style=a.getPattern(w,h.repeat||A.origin.noRepeat||"no-repeat",d,e),e.patternId=o}},getPatternFixScale:function(e,t,i){const{image:s}=e;let n,r=A.image.maxPatternSize,o=s.width*s.height;return s.isSVG?t>1&&(n=Math.ceil(t)/t):r>o&&(r=o),(o*=t*i)>r&&(n=Math.sqrt(r/o)),n},createData:function(e,t,i,s){e.data=kt.getPatternData(i,s,t)},getPatternData:function(e,t,i){e.padding&&(t=j9.set(t).shrink(e.padding)),e.mode==="strench"&&(e.mode="stretch");const{width:s,height:n}=i,{mode:r,align:o,offset:a,scale:l,size:h,rotation:c,skew:u,clipSize:g,repeat:d,gap:f,interlace:_}=e,y=t.width===s&&t.height===n,x={mode:r},m=o!=="center"&&(c||0)%180==90;let w,v;switch(L.set(Nt,0,0,m?n:s,m?s:n),r&&r!=="cover"&&r!=="fit"?((l||h)&&(_t.getScaleData(l,h,i,ia),w=ia.scaleX,v=ia.scaleY),(o||f||d)&&(w&&L.scale(Nt,w,v,!0),o&&M1.toPoint(o,Nt,t,Nt,!0,!0))):y&&!c||(w=v=L.getFitScale(t,Nt,r!=="fit"),L.put(t,i,o,w,!1,Nt),L.scale(Nt,w,v,!0)),a&&R.move(Nt,a),r){case"stretch":y?w&&(w=v=void 0):(w=t.width/s,v=t.height/n,kt.stretchMode(x,t,w,v));break;case"normal":case"clip":if(Nt.x||Nt.y||w||g||c||u){let S,B;g&&(S=t.width/g.width,B=t.height/g.height),kt.clipMode(x,t,Nt.x,Nt.y,w,v,c,u,S,B),S&&(w=w?w*S:S,v=v?v*B:B)}break;case"repeat":(!y||w||c||u)&&kt.repeatMode(x,t,s,n,Nt.x,Nt.y,w,v,c,u,o,e.freeTransform);case"brush":d||(x.repeat="repeat");const b=W(d);(f||b)&&(x.gap=(function(S,B,P,U,Y){let T,z;return W(S)?(T=S.x,z=S.y):T=z=S,{x:ah(T,P,Y.width,B&&B.x),y:ah(z,U,Y.height,B&&B.y)}})(f,b&&d,Nt.width,Nt.height,t));break;default:w&&kt.fillOrFitMode(x,t,Nt.x,Nt.y,w,v,c)}return x.transform||r==="brush"||(t.x||t.y)&&N9(x.transform=U9(),t.x,t.y),w&&(x.scaleX=w,x.scaleY=v),d&&(x.repeat=G(d)?d==="x"?"repeat-x":"repeat-y":"repeat"),_&&(x.interlace=$(_)||_.type==="percent"?{type:"x",offset:_}:_),x}
1,stretchMode:function(e,t,i,s){const n=Yn(),{x:r,y:o}=t;r||o?i0(n,r,o):i>0&&s>0&&(n.onlyScale=!0),p1(n,i,s),e.transform=n},fillOrFitMode:function(e,t,i,s,n,r,o){const a=Yn();i0(a,t.x+i,t.y+s),p1(a,n,r),o&&lh(a,{x:t.x+t.width/2,y:t.y+t.height/2},o),e.transform=a},clipMode:function(e,t,i,s,n,r,o,a,l,h){const c=Yn();hh(c,t,i,s,n,r,o,a),l&&(o||a?(V9(sa),na(sa,t,l,h),G9(c,sa)):na(c,t,l,h)),e.transform=c},repeatMode:function(e,t,i,s,n,r,o,a,l,h,c,u){const g=Yn();if(u)hh(g,t,n,r,o,a,l,h);else{if(l)if(c==="center")lh(g,{x:i/2,y:s/2},l);else switch(V4(g,l),l){case 90:i0(g,s,0);break;case 180:i0(g,i,s);break;case 270:i0(g,0,i)}As.x=t.x+n,As.y=t.y+r,i0(g,As.x,As.y),o&&na(g,As,o,a)}e.transform=g}},{toPoint:uh}=Qt,{hasTransparent:Q9}=Ct,ra={},oa={};function aa(e,t,i,s){if(i){let n,r,o,a;for(let l=0,h=i.length;l<h;l++)n=i[l],G(n)?(o=l/(h-1),r=Ct.string(n,s)):(o=n.offset,r=Ct.string(n.color,s)),t.addColorStop(o,r),!a&&Q9(r)&&(a=!0);a&&(e.isTransparent=!0)}}const{getAngle:tu,getDistance:eu}=R,{get:iu,rotateOfOuter:gh,scaleOfOuter:ph}=q,{toPoint:fh}=Qt,Xi={},la={};function ha(e,t,i,s,n){let r;const{width:o,height:a}=e;if(o!==a||s){const l=tu(t,i);r=iu(),n?(ph(r,t,o/a*(s||1),1),gh(r,t,l+90)):(ph(r,t,1,o/a*(s||1)),gh(r,t,l))}return r}const{getDistance:su}=R,{toPoint:_h}=Qt,oi={},ca={},nu={linearGradient:function(e,t){let{from:i,to:s,type:n,opacity:r}=e;uh(i||"top",t,ra),uh(s||"bottom",t,oa);const o=A.canvas.createLinearGradient(ra.x,ra.y,oa.x,oa.y),a={type:n,style:o};return aa(a,o,e.stops,r),a},radialGradient:function(e,t){let{from:i,to:s,type:n,opacity:r,stretch:o}=e;fh(i||"center",t,Xi),fh(s||"bottom",t,la);const a=A.canvas.createRadialGradient(Xi.x,Xi.y,0,Xi.x,Xi.y,eu(Xi,la)),l={type:n,style:a};aa(l,a,e.stops,r);const h=ha(t,Xi,la,o,!0);return h&&(l.transform=h),l},conicGradient:function(e,t){let{from:i,to:s,type:n,opacity:r,rotation:o,stretch:a}=e;_h(i||"center",t,oi),_h(s||"bottom",t,ca);const l=A.conicGradientSupport?A.canvas.createConicGradient(o?o*ht:0,oi.x,oi.y):A.canvas.createRadialGradient(oi.x,oi.y,0,oi.x,oi.y,su(oi,ca)),h={type:n,style:l};aa(h,l,e.stops,r);const c=ha(t,oi,ca,a||1,A.conicGradientRotate90);return c&&(h.transform=c),h},getTransform:ha},{copy:ru,move:ou,toOffsetOutBounds:au}=L,{max:Un,abs:lu}=Math,da={},yh=new Kt,Ts={};function G4(e,t){let i,s,n,r,o=0,a=0,l=0,h=0;return t.forEach(c=>{i=c.x||0,s=c.y||0,r=1.5*(c.blur||0),n=lu(c.spread||0),o=Un(o,n+r-s),a=Un(a,n+r+i),l=Un(l,n+r+s),h=Un(h,n+r-i)}),o===a&&a===l&&l===h?o:[o,a,l,h]}function mh(e,t,i){const{shapeBounds:s}=i;let n,r;A.fullImageShadow?(ru(da,e.bounds),ou(da,t.x-s.x,t.y-s.y),n=e.bounds,r=da):(n=s,r=t),e.copyWorld(i.canvas,n,r)}const{toOffsetOutBounds:hu}=L,Rs={},cu=G4,du={shadow:function(e,t,i){let s,n;const{__nowWorld:r}=e,{shadow:o}=e.__,{worldCanvas:a,bounds:l,renderBounds:h,shapeBounds:c,scaleX:u,scaleY:g}=i,d=t.getSameCanvas(),f=o.length-1;au(l,Ts,h),o.forEach((_,y)=>{let x=1;if(_.scaleFixed){const m=Math.abs(r.scaleX);m>1&&(x=1/m)}d.setWorldShadow(Ts.offsetX+(_.x||0)*u*x,Ts.offsetY+(_.y||0)*g*x,(_.blur||0)*u*x,Ct.string(_.color)),n=Li.getShadowTransform(e,d,i,_,Ts,x),n&&d.setTransform(n),mh(d,Ts,i),n&&d.resetTransform(),s=h,_.box&&(d.restore(),d.save(),a&&(d.copyWorld(d,h,r,"copy"),s=r),a?d.copyWorld(a,r,r,"destination-out"):d.copyWorld(i.canvas,c,l,"destination-out")),tt.copyCanvasByWorld(e,t,d,s,_.blendMode),f&&y<f&&d.clearWorld(s)}),d.recycle(s)},innerShadow:function(e,t,i){let s,n;const{__nowWorld:r}=e,{innerShadow:o}=e.__,{worldCanvas:a,bounds:l,renderBounds:h,shapeBounds:c,scaleX:u,scaleY:g}=i,d=t.getSameCanvas(),f=o.length-1;hu(l,Rs,h),o.forEach((_,y)=>{let x=1;if(_.scaleFixed){const m=Math.abs(r.scaleX);m>1&&(x=1/m)}d.save(),d.setWorldShadow(Rs.offsetX+(_.x||0)*u*x,Rs.offsetY+(_.y||0)*g*x,(_.blur||0)*u*x),n=Li.getShadowTransform(e,d,i,_,Rs,x,!0),n&&d.setTransform(n),mh(d,Rs,i),d.restore(),a?(d.copyWorld(d,h,r,"copy"),d.copyWorld(a,r,r,"source-out"),s=r):(d.copyWorld(i.canvas,c,l,"source-out"),s=h),d.fillWorld(s,Ct.string(_.color),"source-in"),tt.copyCanvasByWorld(e,t,d,s,_.blendMode),f&&y<f&&d.clearWorld(s)}),d.recycle(s)},blur:function(e,t,i){const{blur:s}=e.__;i.setWorldBlur(s*e.__nowWorld.a),i.copyWorldToInner(t,e.__nowWorld,e.__layout.renderBounds),i.filter="none"},backgroundBlur:function(e,t,i){},getShadowRenderSpread:G4,getShadowTransform:function(e,t,i,s,n,r,o){if(s.spread){const a=2*s.spread*r*(o?-1:1),{width:l,height:h}=e.__layout.strokeBounds;return yh.set().scaleOfOuter({x:(n.x+n.width/2)*t.pixelRatio,y:(n.y+n.height/2)*t.pixelRatio},1+a/l,1+a/h),yh}},isTransformShadow(e){},getInnerShadowSpread:cu},{excludeRenderBounds:xh}=as;let f1;function Nn(e,t,i,s,n,r,o,a){switch(t){case"grayscale":f1||(f1=!0,n.useGrayscaleAlpha(e.__nowWorld));case"alpha":(function(l,h,c,u,g,d){const f=l.__nowWorld;c.resetTransform(),c.opacity=1,c.useMask(u,f),d&&u.recycle(f),wh(l,h,c,1,g,d)})(e,i,s,n,o,a);break;case"opacity-path":wh(e,i,s,r,o,a);break;
1case"path":a&&i.restore()}}function ua(e){return e.getSameCanvas(!1,!0)}function wh(e,t,i,s,n,r){const o=e.__nowWorld;t.resetTransform(),t.opacity=s,t.copyWorld(i,o,void 0,n),r?i.recycle(o):i.clearWorld(o)}at.prototype.__renderMask=function(e,t){let i,s,n,r,o,a;const{children:l}=this;for(let h=0,c=l.length;h<c;h++){if(i=l[h],a=i.__.mask,a){o&&(Nn(this,o,e,n,s,r,void 0,!0),s=n=null),a!=="clipping"&&a!=="clipping-path"||xh(i,t)||i.__render(e,t),r=i.__.opacity,f1=!1,a==="path"||a==="clipping-path"?(r<1?(o="opacity-path",n||(n=ua(e))):(o="path",e.save()),i.__clip(n||e,t)):(o=a==="grayscale"?"grayscale":"alpha",s||(s=ua(e)),n||(n=ua(e)),i.__render(s,t));continue}const u=r===1&&i.__.__blendMode;u&&Nn(this,o,e,n,s,r,void 0,!1),xh(i,t)||i.__render(n||e,t),u&&Nn(this,o,e,n,s,r,u,!1)}Nn(this,o,e,n,s,r,void 0,!0)};const q4=`>)]}%!?,.:;'"ãï¼ããããããï½âï¼ââï¼ï¼ï¼ããï¼ï¼â°`,uu=q4+"_#~&*+\\=|â®â¯ââ ï¼â¦",gu=new RegExp([[19968,40959],[13312,19903],[131072,173791],[173824,177983],[177984,178207],[178208,183983],[183984,191471],[196608,201551],[201552,205743],[11904,12031],[12032,12255],[12272,12287],[12288,12351],[4352,4607],[12352,12447],[12448,12543],[12544,12591],[12592,12687],[12688,12703],[12704,12735],[12784,12799],[12736,12783],[12800,13055],[13056,13311],[63744,64255],[65072,65103],[127488,127743],[194560,195103]].map(([e,t])=>`[\\u{${e.toString(16)}}-\\u{${t.toString(16)}}]`).join("|"),"u");function hn(e){const t={};return e.split("").forEach(i=>t[i]=!0),t}const pu=hn("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"),fu=hn(`{[(<'"ãï¼ããããããï½âï¼ââï¼Â¥ï¿¥ï¼â¬Â£ï¿¡Â¢ï¿ `),_u=hn(q4),yu=hn(uu),mu=hn("- âï¼ï½ï½â·");var Xr;(function(e){e[e.Letter=0]="Letter",e[e.Single=1]="Single",e[e.Before=2]="Before",e[e.After=3]="After",e[e.Symbol=4]="Symbol",e[e.Break=5]="Break"})(Xr||(Xr={}));const{Letter:vh,Single:xu,Before:wu,After:vu,Symbol:Cu,Break:bu}=Xr;function ku(e){return pu[e]?vh:mu[e]?bu:fu[e]?wu:_u[e]?vu:yu[e]?Cu:gu.test(e)?xu:vh}const Bu={trimRight(e){const{words:t}=e;let i,s=0,n=t.length;for(let r=n-1;r>-1&&(i=t[r].data[0],i.char===" ");r--)s++,e.width-=i.width;s&&t.splice(n-s,s)}};function Su(e,t,i){switch(t){case"title":return i?e.toUpperCase():e;case"upper":return e.toUpperCase();case"lower":return e.toLowerCase();default:return e}}const{trimRight:Eu}=Bu,{Letter:ga,Single:Ls,Before:Ch,After:pa,Symbol:Au,Break:bh}=Xr;let Y0,Ge,ee,ie,fa,Re,ai,en,ns,Ce,_i,_a,Fs,U0,sn,Fr,_1,z0=[];function ya(e,t){ns&&!en&&(en=ns),Y0.data.push({char:e,width:t}),ee+=t}function Yi(e){e&&(ie+=e,Y0.addWidth=e),ie+=ee,Y0.width=ee,Ge.words.push(Y0),Y0={data:[]},ee=0}function Ps(){U0&&(sn.paraNumber++,Ge.paraStart=!0,U0=!1),ns&&(Ge.startCharSize=en,Ge.endCharSize=ns,en=0),Ge.width=ie,Fr.width?Eu(Ge):_1&&K4(),z0.push(Ge),Ge={words:[]},ie=0}function K4(){ie>(sn.maxWidth||0)&&(sn.maxWidth=ie)}const{top:jn,right:kh,bottom:Bh,left:Vn}=t1;function Gn(e,t,i){const{bounds:s,rows:n}=e;s[t]+=i;for(let r=0;r<n.length;r++)n[r][t]+=i}const Tu={getDrawData:function(e,t){G(e)||(e=String(e));let i=0,s=0,n=t.__getInput("width")||0,r=t.__getInput("height")||0;const{__padding:o}=t;t.motionText&&(n=r=0),o&&(n?(i=o[Vn],n-=o[kh]+o[Vn],!n&&(n=.01)):t.autoSizeAlign||(i=o[Vn]),r?(s=o[jn],r-=o[jn]+o[Bh],!r&&(r=.01)):t.autoSizeAlign||(s=o[jn]));const a={bounds:{x:i,y:s,width:n,height:r},rows:[],paraNumber:0,font:A.canvas.font=t.__font};return(function(l,h,c){sn=l,z0=l.rows,Fr=l.bounds,_1=!Fr.width&&!c.autoSizeAlign;const{paraIndent:u,textCase:g}=c,{canvas:d}=A,{width:f}=Fr;if(c.__isCharMode){const _=c.textWrap!=="none",y=c.textWrap==="break",x=c.__letterSpacing,m=c.__wordSpacing;U0=!0,_i=null,en=ai=ns=ee=ie=0,Y0={data:[]},Ge={words:[]};for(let w=0,v=(h=[...h]).length;w<v;w++)Re=h[w],Re===` 2`?(ee&&Yi(),Ge.paraEnd=!0,Ps(),U0=!0):(Ce=ku(Re),Ce===ga&&g!=="none"&&(Re=Su(Re,g,!ee)),ai=d.measureText(Re).width,x&&(x<0&&(ns=ai),ai+=x),_a=Ce===Ls&&(_i===Ls||_i===ga)||_i===Ls&&Ce!==pa,Fs=!(Ce!==Ch&&Ce!==Ls||_i!==Au&&_i!==pa),fa=U0&&u?f-u:f,_&&f&&ie+ee+ai>fa&&(y?(ee&&Yi(),ie&&Ps()):(Fs||(Fs=Ce===ga&&_i==pa),(_a||Fs||Ce===bh||Ce===Ch||Ce===Ls||ee+ai>fa)&&ee&&Yi(),ie&&Ps())),Re===" "&&U0!==!0&&ie+ee===0||(Ce===bh?(Re===" "&&ee&&Yi(m),ya(Re,ai),Yi()):((_a||Fs)&&ee&&Yi(m),ya(Re,ai))),_i=Ce);ee&&Yi(),ie&&Ps(),z0.length>0&&(z0[z0.length-1].paraEnd=!0)}else h.split(` 3`).forEach(_=>{sn.paraNumber++,ie=d.measureText(_).width,z0.push({x:u||0,text:_,width:ie,paraStart:!0}),_1&&K4()})})(a,e,t),o&&(function(l,h,c,u,g){if(!u&&c.autoSizeAlign)switch(c.textAlign){case"left":Gn(h,"x",l[Vn]
3);break;case"right":Gn(h,"x",-l[kh])}if(!g&&c.autoSizeAlign)switch(c.verticalAlign){case"top":Gn(h,"y",l[jn]);break;case"bottom":Gn(h,"y",-l[Bh])}})(o,a,t,n,r),(function(l,h){const{rows:c,bounds:u}=l,g=c.length,{__lineHeight:d,__baseLine:f,__letterSpacing:_,__clipText:y,textAlign:x,verticalAlign:m,paraSpacing:w,autoSizeAlign:v}=h;let{x:b,y:S,width:B,height:P}=u,U=d*g+(w?w*(l.paraNumber-1):0),Y=f;if(y&&U>P)U=Math.max(h.__autoHeight?U:P,d),g>1&&(l.overflow=g);else if(P||v)switch(m){case"middle":S+=(P-U)/2;break;case"bottom":S+=P-U}Y+=S;let T,z,E,I=B||v?B:l.maxWidth;for(let N=0,V=g;N<V;N++){if(T=c[N],T.x=b,T.width<B||T.width>B&&!y)switch(x){case"center":T.x+=(I-T.width)/2;break;case"right":T.x+=I-T.width}T.paraStart&&w&&N>0&&(Y+=w),T.y=Y,Y+=d,l.overflow>N&&Y>U&&(T.isOverflow=!0,l.overflow=N+1),z=T.x,E=T.width,_<0&&(T.width<0?(E=-T.width+h.fontSize+_,z-=E,E+=h.fontSize):E-=_),z<u.x&&(u.x=z),E>u.width&&(u.width=E),y&&B&&B<E&&(T.isOverflow=!0,l.overflow||(l.overflow=c.length))}u.y=S,u.height=U})(a,t),t.__isCharMode&&(function(l,h,c){const{rows:u}=l,{textAlign:g,paraIndent:d}=h,f=h.__letterSpacing||h.motionText,_=h.__wordSpacing,y=c&&g.includes("both"),x=y||c&&g.includes("justify"),m=x&&g.includes("letter");let w,v,b,S,B,P,U,Y,T,z;u.forEach(E=>{E.words&&(B=d&&E.paraStart?d:0,Y=E.words.length,x&&(z=!E.paraEnd||y,v=c-E.width-B,m?S=v/(E.words.reduce((I,N)=>I+N.data.length,0)-1):b=Y>1?v/(Y-1):0),P=f||E.isOverflow||m?0:b||_?1:2,E.isOverflow&&!f&&(E.textMode=!0),P===2?(E.x+=B,(function(I){I.text="",I.words.forEach(N=>{N.data.forEach(V=>{I.text+=V.char})})})(E)):(E.x+=B,w=E.x,E.data=[],E.words.forEach((I,N)=>{P===1?(U={char:"",x:w},w=(function(V,et,pt){return V.forEach(st=>{pt.char+=st.char,et+=st.width}),et})(I.data,w,U),(E.isOverflow||U.char!==" ")&&E.data.push(U)):w=(function(V,et,pt,st,ge){return V.forEach(Zt=>{(st||Zt.char!==" ")&&(Zt.x=et,pt.push(Zt)),et+=Zt.width,ge&&(et+=ge)}),et})(I.data,w,E.data,E.isOverflow,z&&S),I.addWidth&&(w+=I.addWidth),z&&(T=N===Y-1,b?T||(w+=b,E.width+=b):S&&(E.width+=S*(I.data.length-(T?1:0))))})),E.words=null)})})(a,t,n),a.overflow&&(function(l,h,c,u){const{rows:g,overflow:d}=l;let{textOverflow:f}=h;if(d&&g.splice(d),u&&f&&f!=="show"){let _,y;f==="hide"?f="":f==="ellipsis"&&(f="...");const x=f?A.canvas.measureText(f).width:0,m=c+u-x;(h.textWrap==="none"?g:[g[d-1]]).forEach(w=>{if(w.isOverflow&&w.data){let v=w.data.length-1;for(let b=v;b>-1&&(_=w.data[b],y=_.x+_.width,!(b===v&&y<m));b--){if(y<m&&_.char!==" "||!b){w.data.splice(b+1),w.width-=_.width;break}w.width-=_.width}w.width+=x,w.data.push({char:f,x:y}),w.textMode&&(function(b){b.text="",b.data.forEach(S=>{b.text+=S.char}),b.data=null})(w)}})}})(a,t,i,n),t.textDecoration!=="none"&&(function(l,h){let c,u=0;const{fontSize:g,textDecoration:d}=h;switch(l.decorationHeight=g/11,W(d)?(c=d.type,d.color&&(l.decorationColor=Ct.string(d.color)),d.offset&&(u=Math.min(.3*g,Math.max(d.offset,.15*-g)))):c=d,c){case"under":l.decorationY=[.15*g+u];break;case"delete":l.decorationY=[.35*-g];break;case"under-delete":l.decorationY=[.15*g+u,.35*-g]}})(a,t),a}},Ru={string:function(e,t){if(!e)return"#000";const i=$(t)&&t<1;if(G(e)){if(!i||!Ct.object)return e;e=Ct.object(e)}let s=M(e.a)?1:e.a;i&&(s*=t);const n=e.r+","+e.g+","+e.b;return s===1?"rgb("+n+")":"rgba("+n+","+s+")"}};function Sh(e){return e?J(e)?e:[e]:[]}Object.assign(z4,Tu),Object.assign(Ct,Ru),Object.assign(it,H9),Object.assign(kt,J9),Object.assign(Rr,nu),Object.assign(Li,du),Object.assign(bt,{interaction:(e,t,i,s)=>new L9(e,t,i,s),hitCanvas:(e,t)=>new W4(e,t),hitCanvasManager:()=>new B9}),v7();class It extends He{get list(){return Sh(this.value)}get oldList(){return Sh(this.oldValue)}constructor(t,i){super(t),i&&Object.assign(this,i)}}It.BEFORE_SELECT="editor.before_select",It.SELECT="editor.select",It.AFTER_SELECT="editor.after_select",It.BEFORE_HOVER="editor.before_hover",It.HOVER="editor.hover";const Eh=(e,t)=>e.parent.children.indexOf(e)-t.parent.children.indexOf(t),Ah=(e,t)=>t.parent.children.indexOf(t)-e.parent.children.indexOf(e),N0={group(e,t,i){e.sort(Ah);const{app:s,parent:n}=e[0];let r;r=i&&i.add?i:new at(i),n.addAt(r,n.children.indexOf(e[0])),e.sort(Eh);const o=new Kt(t.worldTransform);return o.divideParent(n.scrollWorldTransform),r.setTransform(o),r.editable=!0,r.hit
3Children=!1,s.lockLayout(),e.forEach(a=>a.dropTo(r)),s.unlockLayout(),r},ungroup(e){const{app:t}=e[0],i=[];return t.lockLayout(),e.forEach(s=>{if(s.isBranch){const{parent:n,children:r}=s;for(;r.length;)i.push(r[0]),r[0].dropTo(n,n.children.indexOf(s));s.isBranchLeaf?i.push(s):s.remove()}else i.push(s)}),t.unlockLayout(),i},toTop(e){e.sort(Eh),e.forEach(t=>{t.parent&&t.parent.add(t)})},toBottom(e){e.sort(Ah),e.forEach(t=>{t.parent&&t.parent.addAt(t,0)})},mergeMaskConfig(e,t){},getSiblingMaskElements(e){}};function y1(e){return(t,i)=>{const s="_"+i;xe(t,i,{get(){return this[s]},set(n){const r=this[s];if(r!==n){const o=this;if(o.config){const a=i==="target";if(a){const{beforeSelect:h}=o.config;if(h){const c=h({target:n});if(W(c))n=c;else if(c===!1)return}o.hasDimOthers&&o.cancelDimOthers(),J(n)&&n.length>1&&n.some(c=>c.locked||c.editable==="single")&&(n=n.filter(c=>!(c.locked||c.editable==="single"))),o.single&&(delete o.element.syncEventer,delete o.element.__world.ignorePixelSnap)}const l=a?It.BEFORE_SELECT:It.BEFORE_HOVER;this.hasEvent(l)&&this.emitEvent(new It(l,{editor:o,value:n,oldValue:r}))}this[s]=n,e(this,r)}}})}}function Lu(){return(e,t)=>{xe(e,t,{get(){const i=this,{config:s,userConfig:n,configKeepKeys:r}=i,o=s?K.clone(s):{};if(r)for(let a in n)r.includes(a)||(o[a]=n[a]);return i.preMergedConfig&&i.preMergedConfig(o),r&&r.forEach(a=>{n[a]&&Object.assign(o[a],n[a])}),i.mergedConfig=o}})}}const{abs:Th}=Math,{copy:Fu}=q,{setListWithFn:Pu}=L,{worldBounds:Mu}=as,ma={a:1,b:0,c:0,d:1,e:0,f:0},Rh={x:0,y:0,width:0,height:0};class Yr extends C{constructor(){super(),this.list=[],this.visible=0,this.hittable=!1,this.strokeAlign="center"}setTarget(t,i){i&&this.set(i),this.target=t,this.update()}update(t){const{list:i}=this;i.length?(Pu(Rh,i,Mu),t&&this.set(t),this.set(Rh),this.visible=!0,this.forceUpdate("surface")):this.visible=0}__draw(t,i){const{list:s}=this;if(s.length){let n;const r=this.__,{stroke:o,strokeWidth:a,fill:l}=r,{bounds:h}=i;for(let c=0;c<s.length;c++){n=s[c];const{worldTransform:u,worldRenderBounds:g}=n;if(g.width&&g.height&&(!h||h.hit(g,i.matrix))){const d=Th(u.scaleX),f=Th(u.scaleY);switch(Fu(ma,u),ma.half=a%2,t.setWorld(ma,i.matrix),t.beginPath(),this.strokePathType){case"box":const{boxBounds:_}=n.__layout;t.rect(_.x,_.y,_.width,_.height);break;case"stroke":const{strokeBounds:y}=n.__layout;t.rect(y.x,y.y,y.width,y.height);break;case"path":n.__drawPath(t);break;default:n.__.__useArrow?n.__drawPath(t):n.__.__pathForRender?n.__drawRenderPath(t):n.__drawPathByBox(t)}if(r.strokeWidth=a/Math.max(d,f),r.shadow){const _=r.shadow[0],{scaleX:y,scaleY:x}=this.getRenderScaleData(!0,_.scaleFixed);t.save(),t.setWorldShadow(_.x*y,_.y*x,_.blur*y,Ct.string(_.color))}o&&(G(o)?it.stroke(o,this,t,i):it.strokes(o,this,t,i)),l&&(G(l)?it.fill(l,this,t,i):it.fills(l,this,t,i)),r.shadow&&t.restore()}}r.strokeWidth=a}}destroy(){this.target=null,super.destroy()}}p([y1(function(e){const t=e.target;e.list=t?J(t)?t:[t]:[]})],Yr.prototype,"target",void 0),p([Oe("render-path")],Yr.prototype,"strokePathType",void 0);class Du extends at{constructor(t){super(t),this.strokeArea=new Q({strokeAlign:"center"}),this.fillArea=new Q,this.visible=0,this.hittable=!1,this.addMany(this.fillArea,this.strokeArea)}setStyle(t,i){const{visible:s,stroke:n,strokeWidth:r}=t;this.visible=s,this.strokeArea.reset(Object.assign({stroke:n,strokeWidth:r},i||{})),this.fillArea.reset({visible:!i,fill:n,opacity:.2})}setBounds(t){this.strokeArea.set(t),this.fillArea.set(t)}}const Ou={findOne:e=>e.list.find(t=>t.editable),findByBounds(e,t,i="hit"){const s=[];return Z4([e],s,t,i),s}};function Z4(e,t,i,s){let n,r,o;for(let a=0,l=e.length;a<l;a++)if(n=e[a],r=n.__,r.hittable&&r.visible&&!r.locked&&i.hit(n.__world)){if(r.editable&&r.editable!=="single")if(n.isFrame){if(i.includes(n.__layout.boxBounds,n.__world)){t.push(n);continue}}else if(o=i[s](n.__layout.boxBounds,n.__world)&&r.hitSelf,n.isBranch){if(!r.hitChildren||o&&n.children.every(h=>!h.editable)){o&&t.push(n);continue}}else o&&t.push(n);n.isBranch&&Z4(n.children,t,i,s)}}const{findOne:xa,findByBounds:Iu}=Ou;class Wu extends at{get dragging(){return!!this.originList}get running(){const{editor:t,app:i}=this;return this.hittable&&t.visible&&t.hittable&&t.mergeConfig.selector&&i&&i.mode==="normal"}get isMoveMode(){const{app:t}=this;return t&&t.interaction.moveMode}constructor(t){super(),this.hoverStroker=new Yr,this.targetStroker=new Yr,this.bounds=new nt,this.selectArea=new Du,this.__eventIds=[],this.editor=t,this.addMany(this.targetStroker,this.hoverStroker,this.selectArea),this.__listenEvents()}onHover(){const{editor:t}=this;if(!this.running||this.dragging||t.dragging)this.hoverStroker.target=null;else{const{hoverTarget:i,mergeConfig:s}=t,n=Object.assign({},s);i&&i.editConfig&&Object.assign(n,i.editConfig);const{stroke:r,strokeWidth:o,hover:a,hoverStyle:l,hoverPathType:h}=n;this.hoverStroker.setTarget(a?i:null,Object.assign({stroke:r,strokeWidth:o,strokePathType:h},l||{}))}}onSelect(){if(this.running){const{editor:t}=this;let{list:i}=t;const s=N0.getSiblingMaskElements(t);
3s&&(i=s.concat(i)),this.targetStroker.setTarget(i),this.hoverStroker.target=null}}update(){this.hoverStroker.update();const{stroke:t,strokeWidth:i,selectedPathType:s,selectedStyle:n}=this.editor.mergedConfig;this.targetStroker.update(Object.assign({stroke:t,strokeWidth:i&&Math.max(1,i/2),strokePathType:s},n||{}))}onPointerMove(t){const{app:i,editor:s}=this;if(this.running&&!this.isMoveMode&&i.interaction.canHover&&!i.interaction.dragging){const n=this.findUI(t);s.hoverTarget=s.hasItem(n)?null:n}this.isMoveMode&&(s.hoverTarget=null)}onBeforeDown(t){if(t.multiTouch)return;const{select:i}=this.editor.mergeConfig;i==="press"&&(this.app.config.mobile?this.waitSelect=()=>this.checkAndSelect(t):this.checkAndSelect(t))}onTap(t){if(t.multiTouch)return;const{editor:i}=this,{select:s,selectKeep:n}=i.mergeConfig;s==="tap"?this.checkAndSelect(t):this.waitSelect&&this.waitSelect(),this.needRemoveItem?i.removeItem(this.needRemoveItem):this.isMoveMode&&(n||(i.target=null))}checkAndSelect(t){if(this.needRemoveItem=null,this.allowSelect(t)){const{editor:i}=this,s=this.findUI(t);s?(this.isMultipleSelect(t)?i.hasItem(s)?this.needRemoveItem=s:i.addItem(s):i.target=s,t.path.needUpdate=!0):this.allow(t.target)&&(this.isHoldMultipleSelectKey(t)||this.editor.mergedConfig.selectKeep||(i.target=null))}}onDragStart(t){if(!t.multiTouch&&(this.waitSelect&&this.waitSelect(),this.allowDrag(t))){const{editor:i}=this,{stroke:s,area:n}=i.mergeConfig,{x:r,y:o}=t.getInnerPoint(this);this.bounds.set(r,o),this.selectArea.setStyle({visible:!0,stroke:s,x:r,y:o},n),this.selectArea.setBounds(this.bounds.get()),this.originList=i.leafList.clone()}}onDrag(t){if(!t.multiTouch){if(this.editor.dragging)return this.onDragEnd(t);if(this.dragging){const{editor:i}=this,s=t.getInnerTotal(this),n=this.bounds.clone().unsign(),r=new xt(Iu(i.app,n,i.mergedConfig.boxSelect==="includes"?"includes":"hit"));if(this.bounds.width=s.x,this.bounds.height=s.y,this.selectArea.setBounds(n.get()),r.length){const o=[];this.originList.forEach(a=>{r.has(a)||o.push(a)}),r.forEach(a=>{this.originList.has(a)||o.push(a)}),(o.length!==i.list.length||i.list.some((a,l)=>a!==o[l]))&&(i.target=o)}else i.target=this.originList.list}}}onDragEnd(t){t.multiTouch||this.dragging&&(this.originList=null,this.selectArea.visible=0)}onAutoMove(t){if(this.dragging){const{x:i,y:s}=t.getLocalMove(this);this.bounds.x+=i,this.bounds.y+=s}}allow(t){return t.leafer!==this.editor.leafer}allowDrag(t){const{boxSelect:i,multipleSelect:s}=this.editor.mergeConfig;return!(!(this.running&&s&&i)||t.target.draggable)&&(!this.editor.editing&&this.allow(t.target)||this.isHoldMultipleSelectKey(t)&&!xa(t.path))}allowSelect(t){return this.running&&!this.isMoveMode&&!t.middle}findDeepOne(t){const i={exclude:new xt(this.editor.editBox.rect)};return xa(t.target.leafer.interaction.findPath(t,i))}findUI(t){return this.isMultipleSelect(t)?this.findDeepOne(t):xa(t.path)}isMultipleSelect(t){const{multipleSelect:i,continuousSelect:s}=this.editor.mergeConfig;return i&&(this.isHoldMultipleSelectKey(t)||s)}isHoldMultipleSelectKey(t){const{multipleSelectKey:i}=this.editor.mergedConfig;return i?t.isHoldKeys(i):t.shiftKey}__listenEvents(){const{editor:t}=this;t.waitLeafer(()=>{const{app:i}=t;i.selector.proxy=t,this.__eventIds=[t.on_([[It.HOVER,this.onHover,this],[It.SELECT,this.onSelect,this]]),i.on_([[O.MOVE,this.onPointerMove,this],[O.BEFORE_DOWN,this.onBeforeDown,this],[O.TAP,this.onTap,this],[j.START,this.onDragStart,this,!0],[j.DRAG,this.onDrag,this],[j.END,this.onDragEnd,this],[gt.MOVE,this.onAutoMove,this],[[Yt.ZOOM,gt.MOVE],()=>{this.editor.hoverTarget=null}]])]})}__removeListenEvents(){this.off_(this.__eventIds)}destroy(){this.editor=this.originList=this.needRemoveItem=null,this.__removeListenEvents(),super.destroy()}}const{topLeft:Ui,top:Ms,topRight:Ni,right:Ds,bottomRight:ji,bottom:Os,bottomLeft:Vi,left:Is}=ts,{toPoint:wa}=Qt,{within:Lh,sign:yi}=_t,{abs:Gi}=Math,o0={getScaleData(e,t,i,s,n,r,o,a){let l,h,c={},u=1,g=1;const{widthRange:d,heightRange:f,dragBounds:_,worldTransform:y,boxBounds:x}=e,{width:m,height:w}=t,v=Gi(y.scaleX),b=Gi(y.scaleY),S=e.scaleX/t.scaleX,B=e.scaleY/t.scaleY,P=yi(S),U=yi(B),Y=a?S:P*x.width/m,T=a?B:U*x.height/w;if($(s))u=g=Math.sqrt(s);else{r&&(s.x*=2,s.y*=2),s.x*=a?S:P,s.y*=a?B:U;const V=(-s.y+w)/w,et=(s.x+m)/m,pt=(s.y+w)/w,st=(-s.x+m)/m;switch(i){case Ms:g=V,l="bottom";break;case Ds:u=et,l="left";break;case Os:g=pt,l="top";break;case Is:u=st,l="right";break;case Ui:g=V,u=st,l="bottom-right";break;case Ni:g=V,u=et,l="bottom-left";break;case ji:g=pt,u=et,l="top-left";break;case Vi:g=pt,u=st,l="top-right"}if(n)if(n==="corner"&&i%2)n=!1;else switch(i){case Ms:case Os:u=g;break;case Is:case Ds:g=u;break;default:h=Math.sqrt(Gi(u*g)),u=yi(u)*h,g=yi(g)*h}}const z=u!==1,E=g!==1;if(z&&(u/=Y),E&&(g/=T),o||(u<0&&(u=1/x.width/v),g<0&&(g=1/x.height/b)),wa(r||l,x,c,!0),_){const V={x:u,y:g};ss.limitScaleOf(e,c,V,n),u=V.x,g=V.y}if(z&&d){const V=x.width*e.scaleX;u=Lh(V*u,d)/V}if(E&&f){const V=x.height*e.scaleY;g=Lh(V*g,f)/V}const I=v*x.width,N=b*x.height;return z&&Gi(u*I)<1&&(u=1*yi(u)/I),E&&Gi(g*N)<1&&(g=1*yi(g)/N),n&&u!==g&&(h=Math.min(Gi(u),Gi(g)),u=yi(u)*h,g=yi(g)*h),isFinite(u)||(u=1),isFinite(g)||(g=1),{origin:c,scaleX:u,scaleY:g,direction:i,lockRatio:n,around:r}},getRotateData(e,t,i,s,n){let r,o={};switch(t){case Ui:r="bottom-right";break;case Ni:r="bottom-left";break;case ji:r="top-left";break;case Vi:r="top-right";break;default:r="center"}return wa(n||r,e.boxBounds,o,!0),{origin:o,rotation:R.getRotation(s,e.getWorldPointByBox(o),i)}},getSkewData(e,t,i,s){let n,r,o={},a=0,l=0;switch(t){case Ms:case Ui:r={x:.5,y:0},n="bottom",a=1;break;case Os:case ji:r={x:.5,y:1},n="top",a=1;break;case Is:case Vi:r={x:0,y:.5},n="right",l=1;break;case Ds:case Ni:r={x:1,y:.5},n="left",l=1}const{boxBounds:h}=e,{width:c,height:u}=h;r.x=r.x*c,r.y=r.y*u,wa(s||n,h,o,!0);const g=R.getRotation(r,o,{x:r.x+(a?i.x:0),y:r.y+(l?i.y:0)});return a?a=-g:l=g,{origin:o,skewX:a,skewY:l}},getAround:(e,t)=>t&&!e?"center":e,getRotateDirection:(e,t,i=8)=>((e=(e+Math.round(t/(360/i)))%i)<0&&(e+=i),e),getFlipDirection(e,t,i){if(t)switch(e){case Is:e=Ds;break;case Ui:e=Ni;break;case Vi:e=ji;break;case Ds:e=Is;break;case Ni:e=Ui;break;case ji:e=Vi}if(i)switch(e){case Ms:e=Os;break;case Ui:e=Vi;break;case Ni:e=ji;break;case Os:e=Ms;break;case Vi:e=Ui;break;case ji:e=Ni}return e}},va={};function Fh(e){const{moveCursor:t,moveable:i}=e.mergeConfig;e.canUse&&(e.rect.cursor=i?t:void 0)}function zu(e,t){return'"data:image/svg+xml,'+encodeURIComponent(e.replace("{{rotation}}",t.toString()))+'"'}class Ws extends k{constructor(t){super(t),this.useFastShadow=!0}
3}const Ph=["top","right","bottom","left"],Mh=void 0,Hu=rt.get("EditBox");class $0 extends at{get mergeConfig(){const{config:t}=this,{mergeConfig:i,editBox:s}=this.editor;return this.mergedConfig=t&&s!==this?Object.assign(Object.assign({},i),t):i}get target(){return this._target||this.editor.element}set target(t){this._target=t}get single(){return!!this._target||this.editor.single}get transformTool(){return this._transformTool||this.editor}set transformTool(t){this._transformTool=t}get flipped(){return this.flippedX||this.flippedY}get flippedX(){return this.scaleX<0}get flippedY(){return this.scaleY<0}get flippedOne(){return this.scaleX*this.scaleY<0}get canUse(){return this.app&&this.editor.editing}get canGesture(){if(!this.canUse)return!1;const{moveable:t,resizeable:i,rotateable:s}=this.mergeConfig;return G(t)||G(i)||G(s)}get canDragLimitAnimate(){return this.moving&&this.mergeConfig.dragLimitAnimate&&this.target.dragBounds}constructor(t){super(),this.view=new at,this.rect=new Ws({name:"rect",hitFill:"all",hitStroke:"none",strokeAlign:"center",hitRadius:5}),this.circle=new Ws({name:"circle",strokeAlign:"center",around:"center",cursor:"crosshair",hitRadius:5}),this.buttons=new at({around:"center",hitSelf:!1,visible:0}),this.resizePoints=[],this.rotatePoints=[],this.resizeLines=[],this.dragStartData={},this.__eventIds=[],this.widgets=[],this.editor=t,this.visible=!1,this.create(),this.__listenEvents(),this.createWidgets()}create(){let t,i,s;const{view:n,resizePoints:r,rotatePoints:o,resizeLines:a,rect:l,circle:h,buttons:c}=this,u=["bottom-right","bottom","bottom-left","left","top-left","top","top-right","right"];for(let g=0;g<8;g++)t=new Ws({name:"rotate-point",around:u[g],width:15,height:15,hitFill:"all"}),o.push(t),this.listenPointEvents(t,"rotate",g),g%2&&(i=new Ws({name:"resize-line",around:"center",width:10,height:10,hitFill:"all"}),a.push(i),this.listenPointEvents(i,"resize",g)),s=new Ws({name:"resize-point",hitRadius:5}),r.push(s),this.listenPointEvents(s,"resize",g);this.listenPointEvents(h,"rotate",2),this.listenPointEvents(l,"move",8),n.add([...o,l,h,c,...a,...r]),this.add(n)}showView(){this.view.opacity=1,this.update()}hideView(){this.view.opacity=0}load(){const{target:t,mergeConfig:i,single:s,rect:n,circle:r,resizePoints:o,resizeLines:a}=this,{stroke:l,strokeWidth:h,ignorePixelSnap:c}=i,u=this.getPointsStyle(),g=this.getMiddlePointsStyle(),d=this.getResizeLinesStyle();let f;this.visible=!t.locked;for(let y=0;y<8;y++)f=o[y],f.children.length&&f.clear(),f.set(this.getPointStyle(y%2?g[(y-1)/2%g.length]:u[y/2%u.length])),f.rotation=(y-(y%2?1:0))/2*90,y%2&&a[(y-1)/2].set(Object.assign({pointType:"resize",rotation:(y-1)/2*90},d[(y-1)/2%d.length]||{}));r.set(this.getPointStyle(i.circle||i.rotatePoint||u[0])),n.set(Object.assign({stroke:l,strokeWidth:h,opacity:1,editConfig:Mh},i.rect||{}));const _=Xt(i.rectThrough)?s:i.rectThrough;n.hittable=!_,_&&this.addBottomList(),s&&K.stintSet(t.__world,"ignorePixelSnap",c),this.updateMoveCursor(),this.loadWidgets()}update(){const{editor:t,target:i}=this;if(!i)return;const{x:s,y:n,scaleX:r,scaleY:o,rotation:a,skewX:l,skewY:h,width:c,height:u}=i.getLayoutBounds("box",t,!0);this.visible=!this.target.locked,this.set({x:s,y:n,scaleX:r,scaleY:o,rotation:a,skewX:l,skewY:h}),this.updateBounds({x:0,y:0,width:c,height:u}),this.updateWidgets()}unload(){this.unloadWidgets(),this.visible=!1,this.removeBottomList()}addBottomList(){const{target:t,rect:i}=this;t.syncEventer=i,this.app.interaction.bottomList=[{target:i,proxy:t}]}removeBottomList(){this.app&&(this.rect.syncEventer=this.app.interaction.bottomList=null)}updateBounds(t){const{editor:i,target:s,mergeConfig:n,single:r,rect:o,circle:a,buttons:l,resizePoints:h,rotatePoints:c,resizeLines:u}=this,{editMask:g}=i,{middlePoint:d,resizeable:f,rotateable:_,hideOnSmall:y,editBox:x,editBoxType:m,mask:w,dimOthers:v,bright:b,spread:S,hideRotatePoints:B,hideResizeLines:P}=n;if(m==="stroke"){const{scaleX:U,scaleY:Y}=s.worldTransform,{strokeBoxSpread:T}=s.__layout;T&&L.spread(t,[T*Math.abs(Y),T*Math.abs(U)])}if(S&&L.spread(t,S),this.rectBounds=t,g.visible=!!w||0,M(v)&&M(b)?i.hasDimOthers&&i.cancelDimOthers():(i.setDimOthers(v),i.setBright(!!v||b),i.hasDimOthers=!0),this.view.worldOpacity){const{width:U,height:Y}=t,T=$(y)?y:10,z=this.showPoints=x&&!(y&&U<T&&Y<T);let E,I,N,V={};for(let et=0;et<8;et++)Qt.toPoint(Qt.directionData[et],t,V),I=h[et],E=c[et],I.set(V),E.set(V),I.visible=z&&!(!f&&!_),E.visible=z&&_&&f&&!B,et%2&&(N=u[(et-1)/2],N.set(V),N.visible=I.visible&&!P,I.visible&&(I.visible=!!d),E.visible&&(E.visible=!!d),(et+1)/2%2?(N.width=U+N.height,y&&2*I.width>U&&(I.visible=!1)):(N.width=Y+N.height,y&&2*I.width>Y&&(I.visible=!1)));a.visible=z&&_&&!(!n.circle&&!n.rotatePoint),a.visible&&this.layoutCircle(),o.path&&(o.path=null),o.set(Object.assign(Object.assign({},t),{visible:!r||x})),l.visible=z&&l.children.length>0||0,l.visible&&this.layoutButtons()}else o.set(t)}layoutCircle(){const{circleDirection:t,circleMargin:i,buttonsMargin:s,buttonsDirection:n,middlePoint:r}=this.mergedConfig,o=Ph.indexOf(t||(this.buttons.children.length&&n==="bottom"?"top":"bottom"));this.setButtonPosition(this.circle,o,i||s,!!r)}layoutButtons(){const{buttons:t}=this,{buttonsDirection:i,buttonsFixed:s,buttonsMargin:n,middlePoint:r}=this.mergedConfig,{flippedX:o,flippedY:a}=this;let l=Ph.indexOf(i);(l%2&&o||(l+1)%2&&a)&&s&&(l=(l+2)%4);const h=s?o0.getRotateDirection(l,this.flippedOne?this.rotation:-this.rotation,4):l;this.setButtonPosition(t,h,n,!!r),s&&(t.rotation=90*(h-l)),t.scaleX=o?-1:1,t.scaleY=a?-1:1}setButtonPosition(t,i,s,n){const r=this.resizePoints[2*i+1],o=i%2,a=i&&i!==3?1:-1,l=(s+(i%2?(n?r.width:0)+t.boxBounds.width:(n?r.height:0)+t.boxBounds.height)/2)*a;o?(t.x=r.x+l,t.y=r.y):(t.x=r.x,t.y=r.y+l)}getPointStyle(t){const{stroke:i,strokeWidth:s,pointFill:n,pointSize:r,pointRadius:o}=this.mergedConfig,a={fill:n,stroke:i,strokeWidth:s,around:"center",strokeAlign:"center",opacity:1,width:r,height:r,cornerRadius:o,offsetX:0,offsetY:0,editConfig:Mh};return t?Object.assign(a,t):a}getPointsStyle(){const{point:t}=this.mergedConfig;return J(t)?t:[t]}getMiddlePointsStyle(){const{middlePoint:t}=this.mergedConfig;return J(t)?t:t?[t]:this.getPointsStyle()}getResizeLinesStyle(){const{resizeLine:t}=this.mergedConfig;return J(t)?t:[t]}
3updateMoveCursor(){Fh(this)}updatePointCursor(t){(function(i,s){const{enterPoint:n,dragging:r,skewing:o,resizing:a,flippedX:l,flippedY:h}=i;if(!n||!i.editor.editing||!i.canUse)return;if(n.name==="rect")return Fh(i);if(n.name==="circle")return;let{rotation:c}=i;const{pointType:u}=n,{moveCursor:g,resizeCursor:d,rotateCursor:f,skewCursor:_,moveable:y,resizeable:x,rotateable:m,skewable:w}=i.mergeConfig;if(u==="move")return n.cursor=g,void(y||(n.visible=!1));if(u==="button")return void(n.cursor||(n.cursor="pointer"));let v=u.includes("resize");v&&m&&(i.isHoldRotateKey(s)||!x)&&(v=!1);const b=w&&!v&&(n.name==="resize-line"||u==="skew"),S=r?o?_:a?d:f:b?_:v?d:f;c+=45*(o0.getFlipDirection(n.direction,l,h)+1),c=2*Math.round(_t.formatRotation(c,!0)/2);const{url:B,x:P,y:U}=S,Y=B+c;va[Y]?n.cursor=va[Y]:va[Y]=n.cursor={url:zu(B,c),x:P,y:U}})(this,t)}onDragStart(t){this.dragging=!0;const i=this.dragPoint=t.current,{pointType:s}=i,{moveable:n,resizeable:r,rotateable:o,skewable:a,onCopy:l}=this.mergeConfig;s==="move"?(t.altKey&&l&&l()&&this.editor.single&&this.app.interaction.replaceDownTarget(this.target),n&&(this.moving=!0),this.moving&&this.widgetsMoveStart(t)):(s.includes("rotate")||this.isHoldRotateKey(t)||!r?(o&&(this.rotating=!0),s==="resize-rotate"?r&&(this.resizing=!0):i.name==="resize-line"&&(a&&(this.skewing=!0),this.rotating=!1)):s==="resize"&&r&&(this.resizing=!0),s==="skew"&&a&&(this.skewing=!0)),this.onTransformStart(t)}onDrag(t){const{transformTool:i,moving:s,resizing:n,rotating:r,skewing:o}=this;if(s)i.onMove(t),this.widgetsMove(t);else if(n||r||o){const a=t.current;a.pointType&&(this.enterPoint=a),r&&i.onRotate(t),n&&i.onScale(t),o&&i.onSkew(t)}this.updatePointCursor(t)}onDragEnd(t){this.moving&&this.widgetsMoveEnd(t),this.onTransformEnd(t),this.dragPoint=null}onTransformStart(t){const{hideOnMove:i}=this.mergedConfig;(this.moving||this.gesturing)&&(this.editor.opacity=i?0:1),this.resizing&&(Je.resizingKeys=this.editor.leafList.keys);const{dragStartData:s,target:n}=this;s.x=t.x,s.y=t.y,s.totalOffset={x:0,y:0},s.point={x:n.x,y:n.y},s.bounds=Object.assign({},n.getLayoutBounds("box","local")),s.rotation=n.rotation}onTransformEnd(t){this.canDragLimitAnimate&&(t instanceof j||t instanceof gt)&&this.transformTool.onMove(t),this.resizing&&(Je.resizingKeys=null),this.dragging=this.gesturing=this.moving=this.resizing=this.rotating=this.skewing=!1,this.editor.opacity=1,this.editor.update()}onMove(t){if(this.canGesture&&t.moveType!=="drag"&&(t.stop(),G(this.mergedConfig.moveable)))switch(this.gesturing=this.moving=!0,t.type){case gt.START:this.onTransformStart(t),this.widgetsMoveStart(t);break;case gt.END:this.onTransformEnd(t),this.widgetsMoveEnd(t);break;default:this.transformTool.onMove(t),this.widgetsMove(t)}}onScale(t){if(this.canGesture&&(t.stop(),G(this.mergedConfig.resizeable)))switch(this.gesturing=this.resizing=!0,t.type){case Yt.START:this.onTransformStart(t);break;case Yt.END:this.onTransformEnd(t);break;default:this.transformTool.onScale(t)}}onRotate(t){if(this.canGesture&&(t.stop(),G(this.mergedConfig.rotateable)))switch(this.gesturing=this.rotating=!0,t.type){case Yt.START:this.onTransformStart(t);break;case Yt.END:this.onTransformEnd(t);break;default:this.transformTool.onRotate(t)}}isHoldRotateKey(t){const{rotateKey:i}=this.mergedConfig;return i?t.isHoldKeys(i):t.metaKey||t.ctrlKey}onKey(t){this.updatePointCursor(t)}onArrow(t){if(this.canUse){let i=0,s=0;switch(t.code){case"ArrowDown":s=1;break;case"ArrowUp":s=-1;break;case"ArrowLeft":i=-1;break;case"ArrowRight":i=1}if(i||s){const{keyEvent:n,arrowStep:r,arrowFastStep:o}=this.mergeConfig;if(n){const a=t.shiftKey?o:r;this.transformTool.move(i*a,s*a)}}}}onDoubleTap(t){const{openInner:i,preventEditInner:s}=this.mergeConfig;i!=="double"||s||this.openInner(t)}onLongPress(t){const{openInner:i,preventEditInner:s}=this.mergeConfig;i==="long"&&s&&this.openInner(t)}openInner(t){const{editor:i,target:s}=this;if(this.single){if(s.locked)return;if(s.isBranch&&!s.editInner){if(s.textBox){const{children:n}=s,r=n.find(o=>o.editable&&o instanceof X)||n.find(o=>o instanceof X);if(r)return i.openInnerEditor(r)}i.openGroup(s),i.target=i.selector.findDeepOne(t)}else i.openInnerEditor()}}listenPointEvents(t,i,s){t.direction=s,t.pointType=i,this.__eventIds.push(t.on_([[j.START,this.onDragStart,this],[j.DRAG,this.onDrag,this],[j.END,this.onDragEnd,this],[O.ENTER,n=>{this.enterPoint=t,this.updatePointCursor(n)}],[O.LEAVE,()=>{this.enterPoint=null}]]))}__listenEvents(){const{rect:t,editor:i,__eventIds:s}=this;s.push(t.on_([[O.DOUBLE_TAP,this.onDoubleTap,this],[O.LONG_PRESS,this.onLongPress,this]])),this.waitLeafer(()=>{s.push(i.app.on_([[[qt.HOLD,qt.UP],this.onKey,this],[qt.DOWN,this.onArrow,this],[[gt.START,gt.BEFORE_MOVE,gt.END],this.onMove,this,!0],[[Yt.START,Yt.BEFORE_ZOOM,Yt.END],this.onScale,this,!0],[[he.START,he.BEFORE_ROTATE,he.END],this.onRotate,this,
3!0]]))})}__removeListenEvents(){this.off_(this.__eventIds)}static registerWidget(t){const{tag:i}=t.prototype;$0.WidgetList[i]&&Hu.repeat(i),$0.WidgetList[i]=t}createWidgets(){Object.values($0.WidgetList).forEach(t=>{this.widgets.push(new t(this))})}loadWidgets(){this.widgets.forEach(t=>t.onLoad())}updateWidgets(){this.widgets.forEach(t=>t.onUpdate())}unloadWidgets(){this.widgets.forEach(t=>t.onUnload())}widgetsMoveStart(t){this.widgets.forEach(i=>i.onMove&&i.onMoveStart(t))}widgetsMove(t){this.widgets.forEach(i=>i.onMove&&i.onMove(t))}widgetsMoveEnd(t){this.widgets.forEach(i=>i.onMove&&i.onMoveEnd(t))}destroyWidgets(){this.widgets.forEach(t=>t.onDestroy())}destroy(){this.editor=null,this.__removeListenEvents(),this.destroyWidgets(),super.destroy()}}$0.WidgetList={};const Dh={x:0,y:0,width:1e5,height:1e5};class Xu extends C{constructor(t){super(),this.editor=t,this.hittable=!1,this.visible=0}__updateWorldBounds(){Object.assign(this.__local,Dh),Object.assign(this.__world,Dh)}__draw(t,i){const{editor:s}=this,{mask:n}=s.mergedConfig;if(n&&s.editing){if(t.fillWorld(t.bounds,n===!0?"rgba(0,0,0,0.8)":n),i.bounds&&!i.bounds.hit(s.editBox.rect.__world,i.matrix))return;t.saveBlendMode("destination-out"),i=Object.assign(Object.assign({},i),{shape:!0}),s.list.forEach(r=>{r.__render(t,i);const{parent:o}=r;o&&o.textBox&&o.__renderShape(t,i)}),t.restoreBlendMode()}}destroy(){this.editor=null,super.destroy()}}const Ca=` 4<feOffset dy="1"/> 5<feGaussianBlur stdDeviation="1.5"/> 6<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"/> 7<feBlend mode="normal" in="SourceGraphic" result="shape"/>`,Yu={editSize:"size",keyEvent:!0,stroke:"#836DFF",strokeWidth:2,pointFill:"#FFFFFF",pointSize:10,pointRadius:16,rotateGap:45,arrowStep:1,arrowFastStep:10,buttonsDirection:"bottom",buttonsMargin:12,hideOnSmall:!0,moveCursor:"move",resizeCursor:{url:` 8<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"> 9<g filter="url(#f)"> 10<g transform="rotate({{rotation}},12,12)"> 11<path d="M7.5 8.0H8.5V5.9L6.8 7.2L7.5 8.0ZM3 11.4L2.3 10.6L1.3 11.4L2.3 12.2L3 11.4ZM7.5 10.4H6.5V11.4H7.5V10.4ZM16.5 10.4V11.4H17.5V10.4H16.5ZM16.5 8.0L17.1 7.2L15.5 5.9V8.0H16.5ZM21 11.4L21.6 12.2L22.6 11.4L21.6 10.6L21 11.4ZM16.5 14.9H15.5V16.9L17.1 15.7L16.5 14.9ZM16.5 12.4H17.5V11.4H16.5V12.4ZM7.5 12.4V11.4H6.5V12.4H7.5ZM7.5 14.9L6.8 15.7L8.5 16.9V14.9H7.5ZM6.8 7.2L2.3 10.6L3.6 12.2L8.1 8.7L6.8 7.2ZM8.5 10.4V8.0H6.5V10.4H8.5ZM16.5 9.4H7.5V11.4H16.5V9.4ZM17.5 10.4V8.0H15.5V10.4H17.5ZM15.8 8.7L20.3 12.2L21.6 10.6L17.1 7.2L15.8 8.7ZM20.3 10.6L15.8 14.1L17.1 15.7L21.6 12.2L20.3 10.6ZM17.5 14.9V12.4H15.5V14.9H17.5ZM7.5 13.4H16.5V11.4H7.5V13.4ZM8.5 14.9V12.4H6.5V14.9H8.5ZM2.3 12.2L6.8 15.7L8.1 14.1L3.6 10.6L2.3 12.2Z" fill="white"/> 12<path fill-rule="evenodd" d="M3 11.4L7.5 8.0V10.4H16.5V8.0L21 11.4L16.5 14.9V12.4H7.5V14.9L3 11.4Z" fill="black"/> 13</g> 14</g> 15<defs> 16<filter id="f" x="-1.6" y="3.9" width="27.2" height="16.9" filterUnits="userSpaceOnUse"> 17${Ca} 18</filter> 19</defs> 20</svg> 21`,x:12,y:12},rotateCursor:{url:` 22<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"> 23<g filter="url(#f)"> 24<g transform="rotate(135,12,12),rotate({{rotation}},12,12)"> 25<path d="M20.4 8H21.4L20.8 7.1L17.3 2.6L17 2.1L16.6 2.6L13.1 7.1L12.5 8H13.5H15.4C14.9 11.8 11.8 14.9 8 15.4V13.5V12.5L7.1 13.1L2.6 16.6L2.1 17L2.6 17.3L7.1 20.8L8 21.4V20.4V18.4C13.5 17.9 17.9 13.5 18.4 8H20.4Z" stroke="white"/> 26<path fill-rule="evenodd" d="M17 3L20.4 7.5H17.9C17.7 13.1 13.1 17.7 7.5 17.9V20.4L3 17L7.5 13.5V15.9C12.0 15.7 15.7 12.0 15.9 7.5H13.5L17 3Z" fill="black"/> 27</g> 28</g> 29<defs> 30<filter id="f" x="-1.6" y="-0.6" width="27.1" height="27.1" filterUnits="userSpaceOnUse"> 31${Ca} 32</filter> 33</defs> 34</svg> 35`,x:12,y:12},skewCursor:{url:` 36<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"> 37<g filter="url(#f)"> 38<g transform="rotate(90,12,12),rotate({{rotation}},12,12)"> 39<path d="M21 10.4L21 11.4L23.8 11.4L21.6 9.6L21 10.4ZM17 10.4V11.4L17 11.4L17 10.4ZM15.5 6L16.1 5.2L14.5 3.9V6H15.5ZM15.5 8.4V9.4H16.5V8.4H15.5ZM6 8.4V7.4H5V8.4H6ZM6 10.4H5V11.4H6V10.4ZM7 14.4V13.4L7 13.4L7 14.4ZM3 14.4L3 13.4L0.1 13.4L2.3 15.2L3 14.4ZM8.5 18.9L7.8 19.7L9.5 21.0V18.9H8.5ZM8.5 16.4V15.4H7.5V16.4H8.5ZM19 16.4V17.4H20V16.4H19ZM19 14.4H20V13.4H19V14.4ZM21 9.4L17 9.4L17 11.4L21 11.4L21 9.4ZM14.8 6.7L20.3 11.2L21.6 9.6L16.1 5.2L14.8 6.7ZM16.5 8.4V6H14.5V8.4H16.5ZM6 9.4H15.5V7.4H6V9.4ZM7 10.4V8.4H5V10.4H7ZM15.5 9.4H6V11.4H15.5V9.4ZM17 9.4H15.5V11.4H17V9.4ZM7 15.4H8.5V13.4H7V15.4ZM3 15.4L7 15.4L7 13.4L3 13.4L3 15.4ZM9.1 18.1L3.6 13.6L2.3 15.2L7.8 19.7L9.1 18.1ZM7.5 16.4V18.9H9.5V16.4H7.5ZM19 15.4H8.5V17.4H19V15.4ZM18 14.4V16.4H20V14.4H18ZM8.5 15.4H19V13.4H8.5V15.4Z" fill="white"/> 40<path fill-rule="evenodd" d="M17 10.4L21 10.4L15.5 6V8.4H6V10.4H15.5H17ZM8.5 14.4H7L3 14.4L8.5 18.9V16.4H19V14.4H8.5Z" fill="black"/> 41</g> 42</g> 43<defs> 44<filter x="-2.8" y="1.9" width="29.6" height="23.1" filterUnits="userSpaceOnUse" > 45${Ca} 46</filter> 47</defs> 48</svg> 49`,x:12,y:12},selector:!0,editBox:!0,editBoxType:"box",hover:!0,select:"press",openInner:"double",multipleSelect:!0,boxSelect:!0,moveable:!0,resizeable:!0,flipable:!0,rotateable:!0,skewable:!0},E0=new nt;function $4(e){const{simulateTarget:t,list:i}=e,{zoomLayer:s}=i[0].leafer;t.safeChange(()=>{E0.setListWithFn(i,n=>n.getBounds("box","page")),E0.width===0&&(E0.width=.1),E0.height===0&&(E0.height=.1),t.reset(E0.get())}),s.add(t)}const Uu=rt.get("EditToolCreator");function U1(){return e=>{$e.register(e)}}const Nu=U1,$e={EditTool:"EditTool",LineEditTool:"LineEditTool",PointsEditTool:"PointsEditTool",list:{},register(e,t){const{tag:i}=e.prototype;t||(t=i),ba[t]&&Uu.repeat(t),ba[t]=e},get:(e,t)=>new ba[e](t)},{list:ba}=$e;class hi extends It{constructor(t,i){super(t,i)}}hi.BEFORE_OPEN="innerEditor.before_open",hi.OPEN="innerEditor.open",hi.BEFORE_CLOSE="innerEditor.before_close",hi.CLOSE="innerEditor.close";class Gt extends It{constructor(t,i){super(t,i)}}Gt.BEFORE_GROUP="editor.before_group",Gt.GROUP="editor.group",Gt.BEFORE_UNGROUP="editor.before_ungroup",Gt.UNGROUP="editor.ungroup",Gt.BEFORE_OPEN="editor.before_open_group",Gt.OPEN="editor.open_group",Gt.BEFORE_CLOSE="editor.before_close_group",Gt.CLOSE="editor.close_group";const{updateMatrix:ka}=tt,ju={x:1,y:1,scaleX:1,scaleY:1,rotation:1,skewX:1,skewY:1},zs="top-left";class Vu extends Q{get __tag(){return"SimulateElement"}constructor(t){super(),this.checkChange=!0,this.canChange=!0,this.visible=this.hittable=!1,this.skipJSON=!0,this.on(Ie.CHANGE,i=>{if(this.checkChange&&ju[i.attrName]){const{attrName:s,newValue:n,oldValue:r}=i,o=s[0]==="s"?(n||1)/(r||1):(n||0)-(r||0);this.canChange=!1;const a=this.__;a[s]=r,ka(this.parent),ka(this);const l=new Kt(this.__world);switch(a[s]=n,this.__layout.rotationChange(),ka(this),this.changedTransform=new Kt(this.__world).divide(l),s){case"x":t.move(o,0);break;case"y":t.move(0,o);break;case"rotation":t.rotateOf(zs,o);break;case"scaleX":t.scaleOf(zs,o,1);break;case"scaleY":t.scaleOf(zs,1,o);break;case"skewX":t.skewOf(zs,o,0);break;case"skewY":t.skewOf(zs,0,o)}this.canChange=!0}})}safeChange(t){this.canChange&&(this.checkChange=!1,t(),this.checkChange=!0)}}class j0 extends It{constructor(t,i){super(t,i)}}j0.BEFORE_MOVE="editor.before_move",j0.MOVE="editor.move";class le extends It{constructor(t,i){super(t,i)}}le.BEFORE_SCALE="editor.before_scale",le.SCALE="editor.scale";class V0 extends It{constructor(t,i){super(t,i)}}V0.BEFORE_ROTATE="editor.before_rotate",V0.ROTATE="editor.rotate";class G0 extends It{constructor(t,i){super(t,i)}}G0.BEFORE_SKEW="editor.before_skew",G0.SKEW="editor.skew";class Gu{onMove(t){const{target:i,mergeConfig:s,dragStartData:n}=this.editBox;let r,{dragLimitAnimate:o}=s;const a=t.type===gt.END||t.type===j.END,l=G(i.draggable),h=!o||a||l,c={x:t.totalX,y:t.totalY};t instanceof gt&&R.move(c,i.getWorldPointByLocal(n.totalOffset,null,!0)),t.shiftKey&&(Math.abs(c.x)>Math.abs(c.y)?c.y=0:c.x=0),r=j.getValidMove(i,n.point,c,h),(r.x||r.y)&&(o&&!l&&a?tt.animateMove(this,r,$(o)?o:.3):this.move(r))}onScale(t){const{target:i,mergeConfig:s,single:n,dragStartData:r}=this.editBox;let o,{around:a,lockRatio:l,flipable:h,editSize:c}=s;t instanceof Yt?(a||(a=i.getBoxPoint(t)),o=t.totalScale):o=t.getInnerTotal(i);const{direction:u}=t.current;(t.shiftKey||i.lockRatio)&&(l=!0);
49const g=o0.getScaleData(i,r.bounds,u,o,l,o0.getAround(a,t.altKey),h,!n||c==="scale"),d=i.x,f=i.y;t instanceof j&&this.editTool&&this.editTool.onScaleWithDrag?(g.drag=t,this.scaleWithDrag(g)):this.scaleOf(g.origin,g.scaleX,g.scaleY),R.move(r.totalOffset,i.x-d,i.y-f)}onRotate(t){const{target:i,mergeConfig:s,dragStartData:n}=this.editBox,{around:r,rotateAround:o,rotateGap:a,diagonalRotateKey:l}=s,{direction:h}=t.current;let c,u;if(t instanceof he)u=t.rotation,c=o?Qt.getPoint(o,i.boxBounds):i.getBoxPoint(t);else{const f=l?t.isHoldKeys(l):t.shiftKey,_=o0.getRotateData(i,h,t,n,f?null:o||i.around||i.origin||r||"center");u=n.rotation+_.rotation-i.rotation,c=_.origin}if(u=_t.float(_t.getGapRotation(u,a,i.rotation),2),!u)return;const g=i.x,d=i.y;this.rotateOf(c,u),R.move(n.totalOffset,i.x-g,i.y-d)}onSkew(t){const{target:i,mergeConfig:s}=this.editBox,{around:n}=s,{origin:r,skewX:o,skewY:a}=o0.getSkewData(i,t.current.direction,t.getInnerMove(i),o0.getAround(n,t.altKey));(o||a)&&this.skewOf(r,o,a)}move(t,i=0){if(!this.checkTransform("moveable"))return;W(t)&&(i=t.y,t=t.x);const{target:s,mergeConfig:n,single:r,editor:o}=this.editBox,{beforeMove:a}=n;if(a){const u=a({target:s,x:t,y:i});if(W(u))t=u.x,i=u.y;else if(u===!1)return}const l=s.getWorldPointByLocal({x:t,y:i},null,!0);r||s.safeChange(()=>s.move(t,i));const h={target:s,editor:o,moveX:l.x,moveY:l.y};this.emitEvent(new j0(j0.BEFORE_MOVE,h));const c=new j0(j0.MOVE,h);this.doMove(c),this.emitEvent(c)}scaleWithDrag(t){if(!this.checkTransform("resizeable"))return;const{target:i,mergeConfig:s,editor:n}=this.editBox,{beforeScale:r}=s;if(r){const{origin:a,scaleX:l,scaleY:h,drag:c}=t;if(r({target:i,drag:c,origin:a,scaleX:l,scaleY:h})===!1)return}t=Object.assign(Object.assign({},t),{target:i,editor:n,worldOrigin:i.getWorldPoint(t.origin)}),this.emitEvent(new le(le.BEFORE_SCALE,t));const o=new le(le.SCALE,t);this.editTool.onScaleWithDrag(o),this.emitEvent(o)}scaleOf(t,i,s=i,n){if(!this.checkTransform("resizeable"))return;const{target:r,mergeConfig:o,single:a,editor:l}=this.editBox,{beforeScale:h}=o;if(h){const f=h({target:r,origin:t,scaleX:i,scaleY:s});if(W(f))i=f.scaleX,s=f.scaleY;else if(f===!1)return}const c=this.getWorldOrigin(t),u=!a&&this.getChangedTransform(()=>r.safeChange(()=>r.scaleOf(t,i,s))),g={target:r,editor:l,worldOrigin:c,scaleX:i,scaleY:s,transform:u};this.emitEvent(new le(le.BEFORE_SCALE,g));const d=new le(le.SCALE,g);this.doScale(d),this.emitEvent(d)}flip(t){if(!this.checkTransform("resizeable"))return;const{target:i,single:s,editor:n}=this.editBox,r=this.getWorldOrigin("center"),o=s?new Kt(tt.getFlipTransform(i,t)):this.getChangedTransform(()=>i.safeChange(()=>i.flip(t))),a={target:i,editor:n,worldOrigin:r,scaleX:t==="x"?-1:1,scaleY:t==="y"?-1:1,transform:o};this.emitEvent(new le(le.BEFORE_SCALE,a));const l=new le(le.SCALE,a);this.doScale(l),this.emitEvent(l)}rotateOf(t,i){if(!this.checkTransform("rotateable"))return;const{target:s,mergeConfig:n,single:r,editor:o}=this.editBox,{beforeRotate:a}=n;if(a){const g=a({target:s,origin:t,rotation:i});if($(g))i=g;else if(g===!1)return}const l=this.getWorldOrigin(t),h=!r&&this.getChangedTransform(()=>s.safeChange(()=>s.rotateOf(t,i))),c={target:s,editor:o,worldOrigin:l,rotation:i,transform:h};this.emitEvent(new V0(V0.BEFORE_ROTATE,c));const u=new V0(V0.ROTATE,c);this.doRotate(u),this.emitEvent(u)}skewOf(t,i,s=0,n){if(!this.checkTransform("skewable"))return;const{target:r,mergeConfig:o,single:a,editor:l}=this.editBox,{beforeSkew:h}=o;if(h){const f=h({target:r,origin:t,skewX:i,skewY:s});if(W(f))i=f.skewX,s=f.skewY;else if(f===!1)return}const c=this.getWorldOrigin(t),u=!a&&this.getChangedTransform(()=>r.safeChange(()=>r.skewOf(t,i,s))),g={target:r,editor:l,worldOrigin:c,skewX:i,skewY:s,transform:u};this.emitEvent(new G0(G0.BEFORE_SKEW,g));const d=new G0(G0.SKEW,g);this.doSkew(d),this.emitEvent(d)}doMove(t){this.editTool.onMove(t)}doScale(t){this.editTool.onScale(t)}doRotate(t){this.editTool.onRotate(t)}doSkew(t){this.editTool.onSkew(t)}checkTransform(t){const{target:i,mergeConfig:s}=this.editBox;return i&&!i.locked&&s[t]}getWorldOrigin(t){const{target:i}=this.editBox;return i.getWorldPoint(tt.getInnerOrigin(i,t))}getChangedTransform(t){const{target:i,single:s}=this.editBox;if(!s&&!i.canChange)return i.changedTransform;const n=new Kt(i.worldTransform);return t(),new Kt(i.worldTransform).divide(n)}emitEvent(t,i){this.editBox.editor.emitEvent(t,i)}}let a0=class extends at{get list(){return this.leafList.list}get dragHoverExclude(){return[this.editBox.rect]}
49get editing(){return!!this.list.length}get groupOpening(){return!!this.openedGroupList.length}get multiple(){return this.list.length>1}get single(){return this.list.length===1}get dragPoint(){return this.editBox.dragPoint}get dragging(){return this.editBox.dragging}get gesturing(){return this.editBox.gesturing}get moving(){return this.editBox.moving}get resizing(){return this.editBox.resizing}get rotating(){return this.editBox.rotating}get skewing(){return this.editBox.skewing}get element(){return this.multiple?this.simulateTarget:this.list[0]}get buttons(){return this.editBox.buttons}get targetLeafer(){const e=this.list[0];return e&&e.leafer}constructor(e,t){super(t),this.leafList=new xt,this.openedGroupList=new xt,this.simulateTarget=new Vu(this),this.editBox=new $0(this),this.editToolList={},this.selector=new Wu(this),this.editMask=new Xu(this),this.targetEventIds=[];let i=K.clone(Yu);e&&(i=K.default(e,i)),this.mergedConfig=this.config=i,this.addMany(this.editMask,this.selector,this.editBox),ot.has("resize")||(this.config.editSize="scale")}select(e){this.target=e}cancel(){this.target=null}hasItem(e){return this.leafList.has(e)}getItem(e){return this.list[e||0]}addItem(e){this.hasItem(e)||e.locked||(this.leafList.add(e),this.target=this.leafList.list)}removeItem(e){this.hasItem(e)&&(this.leafList.remove(e),this.target=this.leafList.list)}shiftItem(e){this.hasItem(e)?this.removeItem(e):this.addItem(e)}setDimOthers(e,t="dim",i){if(!i){const{dimTarget:s,targetLeafer:n}=this;i=s?J(s)?s:[s]:[n]}i[0]&&i[0][t]!==(e||!1)&&i.forEach(s=>K.stintSet(s,t,e))}setBright(e){this.setDimOthers(e,"bright",this.list)}cancelDimOthers(){this.setDimOthers(!1),this.setBright(!1),this.hasDimOthers=void 0}update(){if(this.editing){if(!this.element.parent)return this.cancel();this.innerEditing?this.innerEditor.update():this.editTool.update(),this.selector.update()}}updateEditBox(){this.multiple&&$4(this),this.update()}getEditTool(e){return this.editToolList[e]=this.editToolList[e]||$e.get(e,this)}updateEditTool(){if(this.unloadEditTool(),this.editing){const e=this.element;let t=e.editOuter||"EditTool";const{beforeEditOuter:i}=this.mergeConfig;if(i){const s=i({target:e,name:t});if(G(s))t=s;else if(s===!1)return}if($e.list[t]){const s=this.editTool=this.getEditTool(t);this.editBox.load(),s.editTarget=e,s.load(),this.update()}}}unloadEditTool(e){let t=this.editTool;t&&(e||this.editBox.unload(),t.unload(),e||(this.editTool=null),t.editTarget=null)}getEditSize(e){return this.mergeConfig.editSize}onMove(e){}onScale(e){}onRotate(e){}onSkew(e){}move(e,t=0){}scaleWithDrag(e){}scaleOf(e,t,i=t,s){}flip(e){}rotateOf(e,t){}skewOf(e,t,i=0,s){}checkTransform(e){}getWorldOrigin(e){}getChangedTransform(e){}group(e){return this.multiple&&(this.emitGroupEvent(Gt.BEFORE_GROUP),this.target=N0.group(this.list,this.element,e),this.emitGroupEvent(Gt.GROUP,this.target)),this.target}ungroup(){const{list:e}=this;return e.length&&(e.forEach(t=>t.isBranch&&this.emitGroupEvent(Gt.BEFORE_UNGROUP,t)),this.target=N0.ungroup(e),e.forEach(t=>t.isBranch&&this.emitGroupEvent(Gt.UNGROUP,t))),this.list}openGroup(e){this.emitGroupEvent(Gt.BEFORE_OPEN,e),this.openedGroupList.add(e),e.hitChildren=!0,this.emitGroupEvent(Gt.OPEN,e)}closeGroup(e){this.emitGroupEvent(Gt.BEFORE_CLOSE,e),this.openedGroupList.remove(e),e.hitChildren=!1,this.emitGroupEvent(Gt.CLOSE,e)}checkOpenedGroups(){const e=this.openedGroupList;if(e.length){let{list:t}=e;this.editing?(t=[],e.forEach(i=>this.list.every(s=>!tt.hasParent(s,i))&&t.push(i))):t=[...t],t.forEach(i=>this.closeGroup(i))}this.editing&&!this.selector.dragging&&this.checkDeepSelect()}checkDeepSelect(){let e,{list:t}=this;for(let i=0;i<t.length;i++)for(e=t[i].parent;e&&!e.hitChildren;)this.openGroup(e),e=e.parent}emitGroupEvent(e,t){const i=new Gt(e,{editTarget:t});this.emitEvent(i),t&&t.emitEvent(i)}getInnerEditor(e){return this.editToolList[e]=this.editToolList[e]||$e.get(e,this)}openInnerEditor(e,t,i){let s;if(G(t)?s=t:i||(i=t),e&&i&&(this.target=e),this.single){e||(e=this.element),s||(s=e.editInner);const{beforeEditInner:n}=this.mergeConfig;if(n){const r=n({target:e,name:s});if(G(r))s=r;else if(r===!1)return}$e.list[s]&&(this.unloadEditTool(!0),this.innerEditing=!0,this.innerEditor=this.getInnerEditor(s),this.innerEditor.editTarget=e,this.emitInnerEvent(hi.BEFORE_OPEN),this.innerEditor.load(),this.emitInnerEvent(hi.OPEN))}}closeInnerEditor(e){this.innerEditing&&(this.innerEditing=!1,this.emitInnerEvent(hi.BEFORE_CLOSE),this.innerEditor.unload(),this.emitInnerEvent(hi.CLOSE),e||this.updateEditTool(),this.innerEditor=this.innerEditor.editTarget=null)}emitInnerEvent(e){const{innerEditor:t}=this,{editTarget:i}=t,s=new hi(e,{editTarget:i,innerEditor:t});this.emitEvent(s),i.emitEvent(s)}
49lock(){this.list.forEach(e=>e.locked=!0),this.update()}unlock(){this.list.forEach(e=>e.locked=!1),this.update()}toTop(){this.list.length&&(N0.toTop(this.list),this.leafList.update())}toBottom(){this.list.length&&(N0.toBottom(this.list),this.leafList.update())}onAppRenderStart(e){(this.targetChanged=e.children.some(t=>t!==this.leafer&&t.renderer.changed))&&this.editBox.forceRender()}onRenderStart(){this.targetChanged&&this.update()}onChildScroll(){this.multiple&&this.updateEditBox()}listenTargetEvents(){if(!this.targetEventIds.length){const{app:e,leafer:t,targetLeafer:i,editMask:s}=this;this.targetEventIds=[t.on_(ut.START,this.onRenderStart,this),i&&i.on_(Ie.SCROLL,this.onChildScroll,this),e.on_(ut.CHILD_START,this.onAppRenderStart,this),e.on_(ct.UPDATE_MODE,n=>{n.mode&&n.mode!=="normal"&&this.cancel()})],s.visible&&s.forceRender()}}removeTargetEvents(){const{targetEventIds:e,editMask:t}=this;e.length&&(this.off_(e),t.visible&&t.forceRender())}destroy(){this.destroyed||(this.target=this.hoverTarget=null,Object.values(this.editToolList).forEach(e=>e.destroy()),this.simulateTarget.destroy(),this.editToolList={},this.simulateTarget=this.editTool=this.innerEditor=null,super.destroy())}};p([(e,t)=>{xe(e,t,{get(){const{config:i,element:s,dragPoint:n,editBox:r,editTool:o,innerEditor:a,app:l}=this,h=Object.assign({},i);if(a?a.editConfig&&Object.assign(h,a.editConfig):o&&o.editConfig&&Object.assign(h,o.editConfig),s&&s.mask&&N0.mergeMaskConfig(h,this),s&&s.editConfig){let{editConfig:c}=s;(c.hover||c.hoverStyle||c.hoverPathType)&&(c=Object.assign({},c),delete c.hover,delete c.hoverStyle,delete c.hoverPathType),Object.assign(h,c)}return r.config&&Object.assign(h,r.config),n&&(n.editConfig&&Object.assign(h,n.editConfig),h.editSize==="font-size"&&(h.lockRatio=!0),n.pointType==="resize-rotate"&&(h.around||(h.around="center"),Xt(h.lockRatio)&&(h.lockRatio=!0))),M(h.dragLimitAnimate)&&(h.dragLimitAnimate=l&&l.config.pointer.dragLimitAnimate),this.mergedConfig=h}})}],a0.prototype,"mergeConfig",void 0),p([y1(function(e,t){const{target:i}=e;i?(e.leafList=i instanceof xt?i:new xt(i),e.multiple&&$4(e)):(e.simulateTarget.remove(),e.leafList.reset()),e.closeInnerEditor(!0),e.unloadEditTool();const s={editor:e,value:i,oldValue:t};e.emitEvent(new It(It.SELECT,s)),e.checkOpenedGroups(),e.editing?e.waitLeafer(()=>{e.updateEditTool(),e.listenTargetEvents()}):(e.updateEditTool(),e.removeTargetEvents()),e.emitEvent(new It(It.AFTER_SELECT,s))})],a0.prototype,"target",void 0),p([y1(function(e,t){e.emitEvent(new It(It.HOVER,{editor:e,value:e.hoverTarget,oldValue:t}))})],a0.prototype,"hoverTarget",void 0),a0=p([ce(Gu,["editBox","editTool","emitEvent"])],a0);const{abs:Ba}=Math,{scale:Oh}=R;class N1{static registerInnerEditor(){$e.register(this)}get tag(){return"InnerEditor"}get mode(){return"focus"}get userConfig(){return this.editBox.mergeConfig[this.tag]||{}}get editBox(){return this._editBox||this.editor.editBox}set editBox(t){this._editBox=t}constructor(t){this.configKeepKeys=["editBox"],this.eventIds=[],this.editor=t,this.create()}getEditBoxPoint(t,i){const s=i?t:{x:t.x,y:t.y},{scaleX:n,scaleY:r}=this.editTarget.worldTransform;return Oh(s,Ba(n),Ba(r)),s}getEditTargetPoint(t,i){const s=i?t:{x:t.x,y:t.y},{scaleX:n,scaleY:r}=this.editTarget.worldTransform;return Oh(s,Math.abs(1/n),Ba(1/r)),s}onCreate(){}create(){this.view=new at,this.onCreate()}showView(){this.view.opacity=1}hideView(){this.view.opacity=0}onLoad(){}load(){const{editor:t}=this;t&&(t.app&&this.mode==="focus"&&(t.selector.hittable=t.app.tree.hitChildren=!1),this.onLoad())}onUpdate(){}update(){this.editor&&(this.updateEditBoxConfig(),this.editBox.update(),this.onUpdate())}onUnload(){}unload(){const{editor:t}=this;t&&(this.unloadEditBoxConfig(),t.app&&this.mode==="focus"&&(t.selector.hittable=t.app.tree.hitChildren=!0),this.onUnload())}updateEditBoxConfig(){const{mergeConfig:t}=this;t&&(this.editBox.config=t.editBox)}unloadEditBoxConfig(){this.editBox.config=void 0}onDestroy(){}destroy(){this.onDestroy(),this.editor&&(this.view&&this.view.destroy(),this.eventIds&&this.editor.off_(this.eventIds),this.editor=this.view=this.eventIds=null)}}p([Lu()],N1.prototype,"mergeConfig",void 0);
49let m1=class extends N1{static registerEditTool(e,t){$e.register(this,e),t&&xe(this.prototype,"tag",{get:()=>e})}get tag(){return"EditTool"}onMove(e){if(this.isMotionElement&&this.onMoveMotion(e)||this.isFlowElement&&this.onMoveFlow(e))return;const{moveX:t,moveY:i,editor:s}=e,{app:n,list:r}=s;n.lockLayout(),r.forEach(o=>{o.moveWorld(t,i)}),n.unlockLayout()}onScale(e){if(this.isFlowElement&&this.onScaleFlow(e))return;const{scaleX:t,scaleY:i,transform:s,worldOrigin:n,editor:r}=e,{app:o,list:a}=r;o.lockLayout(),a.forEach(l=>{const h=r.getEditSize(l)!=="scale";s?l.transformWorld(s,h,!1):l.scaleOfWorld(n,t,i,h,!1)}),o.unlockLayout()}onRotate(e){if(this.isFlowElement&&this.onRotateFlow(e))return;const{rotation:t,transform:i,worldOrigin:s,editor:n}=e,{app:r,list:o}=n;r.lockLayout(),o.forEach(a=>{const l=n.getEditSize(a)!=="scale";i?a.transformWorld(i,l,!1):a.rotateOfWorld(s,t)}),r.unlockLayout()}onSkew(e){if(this.isFlowElement&&this.onSkewFlow(e))return;const{skewX:t,skewY:i,transform:s,worldOrigin:n,editor:r}=e,{app:o,list:a}=r;o.lockLayout(),a.forEach(l=>{const h=r.getEditSize(l)!=="scale";s?l.transformWorld(s,h,!1):l.skewOfWorld(n,t,i,h)}),o.unlockLayout()}load(){this.editor&&(this.editBox.view.visible=!0,this.onLoad())}unload(){this.editor&&(this.editBox.view.visible=!1,this.unloadEditBoxConfig(),this.onUnload())}};m1=p([U1()],m1);const{left:Ih,right:qu}=ts,{move:qn,copy:Kn,toNumberPoints:Ku}=R;let Wh=class extends m1{constructor(){super(...arguments),this.scaleOfEvent=!0}get tag(){return"LineEditTool"}onScaleWithDrag(e){const{drag:t,direction:i,lockRatio:s,around:n}=e,r=e.target,o=i===Ih;if(r.pathInputed){const{path:a}=r.__,{from:l,to:h}=this.getFromToByPath(a);this.dragPoint(l,h,o,n,this.getInnerMove(r,t,s)),a[1]=l.x,a[2]=l.y,a[4]=h.x,a[5]=h.y,r.path=a}else if(r.points){const{points:a}=r,{from:l,to:h}=this.getFromToByPoints(a);this.dragPoint(l,h,o,n,this.getInnerMove(r,t,s)),a[0]=l.x,a[1]=l.y,a[2]=h.x,a[3]=h.y,r.points=a}else{const a={x:0,y:0},{toPoint:l}=r;r.rotation=0,this.dragPoint(a,l,o,n,this.getInnerMove(r,t,s)),r.getLocalPointByInner(a,null,null,!0),r.getLocalPointByInner(l,null,null,!0),r.x=a.x,r.y=a.y,r.getInnerPointByLocal(l,null,null,!0),r.toPoint=l}}getInnerMove(e,t,i){const s=t.getInnerMove(e);return i&&(Math.abs(s.x)>Math.abs(s.y)?s.y=0:s.x=0),s}getFromToByPath(e){return{from:{x:e[1],y:e[2]},to:{x:e[4],y:e[5]}}}getFromToByPoints(e){const t=Ku(e);return{from:{x:t[0],y:t[1]},to:{x:t[2],y:t[3]}}}dragPoint(e,t,i,s,n){const{x:r,y:o}=n;i?(qn(e,r,o),s&&qn(t,-r,-o)):(s&&qn(e,-r,-o),qn(t,r,o))}onSkew(e){}onUpdate(){const{editBox:e}=this,{rotatePoints:t,resizeLines:i,resizePoints:s,rect:n}=e,r=e.target;let o,a;if(r.pathInputed?o=this.getFromToByPath(r.__.path):r.points&&(o=this.getFromToByPoints(r.__.points)),o){const{from:l,to:h}=o;r.innerToWorld(l,l,!1,e),r.innerToWorld(h,h,!1,e);const{x:c,y:u}=e.rectBounds;n.pen.clearPath().moveTo(l.x-c,l.y-u).lineTo(h.x-c,h.y-u),Kn(s[7],l),Kn(t[7],l),Kn(s[3],h),Kn(t[3],h)}for(let l=0;l<8;l++)l<4&&(i[l].visible=!1),a=l===Ih||l===qu,s[l].visible=a,t[l].visible=!o&&a}};Wh=p([U1()],Wh);const{M:Zu,L:$u,C:Ju,Q:Qu,Z:tg,N:eg,D:ig,X:sg,G:zh,F:Hh,O:ng,P:rg,U:og}=Ut,j1={scale(e,t,i){if(!e)return;let s,n=0,r=e.length;for(;n<r;)switch(s=e[n],s){case Zu:case $u:Le(e,t,i,n,1),n+=3;break;case Ju:Le(e,t,i,n,3),n+=7;break;case Qu:Le(e,t,i,n,2),n+=5;break;case tg:n+=1;break;case eg:Le(e,t,i,n,2),n+=5;break;case ig:Le(e,t,i,n,2),n+=9;break;case sg:Le(e,t,i,n,2),n+=6;break;case zh:Le(e,t,i,n,2),n+=9;break;case Hh:Le(e,t,i,n,2),n+=5;break;case ng:e[n]=zh,e.splice(n+4,0,e[n+3],0),Le(e,t,i,n,2),n+=9,r+=2;break;case rg:e[n]=Hh,e.splice(n+4,0,e[n+3]),Le(e,t,i,n,2),n+=5,r+=1;break;case og:Le(e,t,i,n,2),n+=6}},scalePoints(e,t,i,s,n){for(let r=n?s+1:0,o=n?r+2*n:e.length;r<o;r+=2)e[r]*=t,e[r+1]*=i}},{scalePoints:Le}=j1,Sa=q.get(),{topLeft:ag,top:lg,topRight:hg,right:cg,bottom:dg,left:ug}=ts;function Zn(e,t,i){e.pathInputed?Pr(e,t,i):(t!==1&&(e.width*=t),i!==1&&(e.height*=i))}function gg(e,t,i,s){let n=t;if(!M(s)){const h=e.__layout;let{width:c,height:u}=h.boxBounds;switch(c*=i-t,u*=t-i,s){case lg:case dg:n=i,h.affectScaleOrRotation?e.moveInner(-c/2,0):e.x-=c/2;break;case ug:case cg:h.affectScaleOrRotation?e.moveInner(0,-u/2):e.y-=u/2;break;case ag:case hg:h.affectScaleOrRotation?e.moveInner(0,-u):e.y-=u}}e.fontSize*=n;const r=e.__,{padding:o,lineHeight:a,letterSpacing:l}=r;o&&(e.padding=J(o)?o.map(h=>h*n):o*n),r.__autoWidth||(e.width*=n),r.__autoHeight||(e.height*=n),W(a)?a.type==="px"&&(r.lineHeight={type:"px",value:a.value*n}):a&&(r.lineHeight=a*n),W(l)?l.type==="px"&&(r.letterSpacing={type:"px",value:l.value*n}):l&&(r.letterSpacing=l*n)}function Pr(e,t,i){j1.scale(e.__.path,t,i),e.path=e.__.path}function Xh(e,t,i){const{points:s}=e;
49W(s[0])?s.forEach(n=>{n.x*=t,n.y*=i}):j1.scalePoints(s,t,i),e.points=s}function Yh(e,t,i){const{children:s}=e;for(let n=0;n<s.length;n++)Sa.a=t,Sa.d=i,s[n].transform(Sa,!0)}const $n=is.prototype,A0={},Jn={},{copy:pg,scale:Uh,toOuterPoint:fg}=q;$n.scaleResize=function(e,t=e,i,s){const n=this;if(i||n.editConfig&&n.editConfig.editSize==="scale")n.scaleX*=e,n.scaleY*=t;else{if(e<0&&(n.scaleX*=-1,e=-e),t<0&&(n.scaleY*=-1,t=-t),s==="stroke"){pg(Jn,this.__localMatrix),e<0&&Uh(Jn,-1,1),t<0&&Uh(Jn,1,-1);const{boxBounds:r,strokeBounds:o}=this.__layout,{x:a,y:l,width:h,height:c}=o;A0.x=(a-r.x)*(e-1),A0.y=(l-r.y)*(t-1),fg(Jn,A0,A0,!0),this.x+=A0.x,this.y+=A0.y,e=(h*e-(h-r.width))/r.width,t=(c*t-(c-r.height))/r.height}this.__scaleResize(e,t)}},$n.__scaleResize=function(e,t){Zn(this,e,t)},$n.resizeWidth=function(e,t="inner"){const i=e/this.getBounds("box",t).width||1;this.scaleOf("top-left",i,this.__.lockRatio?i:1,!0)},$n.resizeHeight=function(e,t="inner"){const i=e/this.getBounds("box",t).height||1;this.scaleOf("top-left",this.__.lockRatio?i:1,i,!0)},X.prototype.__scaleResize=function(e,t){const{app:i,editConfig:s}=this,n=i&&i.editor,r=n&&n.dragPoint;if(this.__.resizeFontSize||s&&s.editSize==="font-size"||r&&n.mergedConfig.editSize==="font-size")gg(this,e,t,r&&r.direction);else{const{__autoWidth:o,__autoHeight:a,textAlign:l,verticalAlign:h}=this.__,{boxBounds:c}=this.__layout;o&&l!=="left"&&e!==1&&(this.x+=c.x),a&&h!=="top"&&t!==1&&(this.y+=c.y),Zn(this,e,t)}},Vt.prototype.__scaleResize=function(e,t){Pr(this,e,t)},_e.prototype.__scaleResize=function(e,t){this.pathInputed?Pr(this,e,t):this.points?Xh(this,e,t):this.width*=e},Be.prototype.__scaleResize=function(e,t){this.pathInputed?Pr(this,e,t):this.points?Xh(this,e,t):Zn(this,e,t)},at.prototype.__scaleResize=function(e,t){Yh(this,e,t)},k.prototype.__scaleResize=function(e,t){const{resizeChildren:i,__autoSize:s}=this.__;s&&i||Zn(this,e,t),i&&Yh(this,e,t)},ot.add("resize"),ot.add("editor","resize"),bt.editor=function(e,t){const i=new a0(e);return t&&t.sky.add(t.editor=i),i},k.addAttr("textBox",!1,mt),C.addAttr("editConfig",void 0,mt),C.addAttr("editOuter",e=>{e.updateLayout();const{EditTool:t,LineEditTool:i,PointsEditTool:s}=$e,n=e.pathInputed||e.isPointsMode?s:e.tag+"EditTool",r=$e.list[n];return!e.__.__isLinePath||n==s&&r?r?n:t:i},mt),C.addAttr("editInner","PathEditor",mt),at.addAttr("editInner","",mt),X.addAttr("editInner","TextEditor",mt),C.setEditConfig=function(e){this.changeAttr("editConfig",e)},C.setEditOuter=function(e){this.changeAttr("editOuter",e)},C.setEditInner=function(e){this.changeAttr("editInner",e)};const _g={none:"none",title:"capitalize",upper:"uppercase",lower:"lowercase","small-caps":"small-caps"},yg={top:"flex-start",middle:"center",bottom:"flex-end"},mg={none:"none",under:"underline",delete:"line-through","under-delete":"underline line-through"};function xg(e,t,i){const{style:s}=e,{fill:n,padding:r,textWrap:o,textOverflow:a,textDecoration:l}=t;let h;s.fontFamily=t.fontFamily,s.fontSize=t.fontSize*i+"px",(function(c,u){let g="black";if(J(u)&&(u=u[0]),W(u))switch(u.type){case"solid":g=Ct.string(u.color);break;case"image":case"film":case"video":break;case"linear":case"radial":case"angular":const d=u.stops[0];g=Ct.string(G(d)?d:d.color);break;default:M(u.r)||(g=Ct.string(u))}else g=u;c.color=g})(s,n),s.fontStyle=t.italic?"italic":"normal",s.fontWeight=t.fontWeight,W(l)?(h=l.type,l.color&&(s.textDecorationColor=Ct.string(l.color))):h=l,s.textDecoration=mg[h],s.textTransform=_g[t.textCase],s.textAlign=t.textAlign==="both"?"justify":t.textAlign,s.display="flex",s.flexDirection="column",s.justifyContent=yg[t.verticalAlign],s.lineHeight=(t.__.__lineHeight||0)*i+"px",s.letterSpacing=(t.__.__letterSpacing||0)*i+"px",s.whiteSpace=o==="none"||t.__.__autoWidth?"nowrap":"normal",s.wordBreak=o==="break"?"break-all":"normal",s.textIndent=(t.paraIndent||0)*i+"px",s.padding=J(r)?r.map(c=>c*i+"px").join(" "):(r||0)*i+"px",s.textOverflow=a==="show"?"":a==="hide"?"clip":a}let Nh=class extends N1{constructor(){super(...arguments),this.config={selectAll:!0},this.eventIds=[]}get tag(){return"TextEditor"}onLoad(){const{editor:e}=this,{config:t}=e.app,i=this.editTarget;i.textEditing=!0,this.isHTMLText=!(i instanceof X),this._keyEvent=t.keyEvent,t.keyEvent=!1;const s=this.editDom=document.createElement("div");s.classList.add("leafer-text-editor");const{style:n}=s;s.contentEditable="true",n.position="fixed",n.transformOrigin="left top",n.boxSizing="border-box",this.isHTMLText?s.innerHTML=String(i.text):s.innerText=String(i.text);const{view:r}=e.app;(this.inBody=r instanceof HTMLCanvasElement)?document.body.appendChild(s):r.appendChild(s),this.eventIds=[e.app.on_(O.DOWN,l=>{let h,{target:c}=l.origin;for(;c;)c===s&&(h=!0),c=c.parentElement;h||e.closeInnerEditor()})],this.onFocus=this.onFocus.bind(this),this.onInput=this.onInput.bind(this),this.onPaste=this.onPaste.bind(this),this.onUpdate=this.onUpdate.bind(this),this.onKeydown=this.onKeydown.bind(this),s.addEventListener("focus",this.onFocus),s.addEventListener("input",this.onInput),s.addEventListener("paste",this.onPaste),window.addEventListener("keydown",this.onKeydown),window.addEventListener("scroll",this.onUpdate);const o=window.getSelection(),a=document.createRange();if(this.config.selectAll)a.selectNodeContents(s);else{const l=s.childNodes[0];l&&(a.setStartAfter(l),a.setEndAfter(l)),a.collapse(!0)}o.removeAllRanges(),o.addRange(a)}onInput(){const{editDom:e}=this;this.editTarget.text=this.isHTMLText?e.innerHTML:e.innerText}onFocus(){this.editDom.style.outline="none"}onKeydown(e){if(e.code==="Escape"&&this.editor.closeInnerEditor(),e.key==="Enter"){e.preventDefault();const t=document.createElement("br"),i=document.createTextNode("â"),s=window.getSelection().getRangeAt(0);s.deleteContents(),s.insertNode(i),s.insertNode(t),s.setStartAfter(t),s.setEndAfter(t),this.onInput()}}onPaste(e){if(this.isHTMLText)return;e.preventDefault();const t=e.clipboardData;if(!t)return;let i=t.getData("text/plain").replace(/\r\n?/g,` 50`);const s=window.getSelection();if(!s||!s.rangeCount)return;const n=s.getRangeAt(0);n.deleteContents();const r=i.split(` 51`),o=document.createDocumentFragment();r.forEach((a,l)=>{l>0&&o.appendChild(document.createElement("br")),o.appendChild(document.createTextNode(a))}),n.insertNode(o),n.collapse(!1),s.removeAllRanges(),s.addRange(n),this.onInput()}onUpdate(){const{editTarget:e}=this;let t=1;if(!this.isHTMLText){const{scaleX:y,scaleY:x}=e.worldTransform;t=Math.max(Math.abs(y),Math.abs(x)),e.fontSize*t<12&&(t*=12/e.fontSize)}this.textScale=t;let{width:i,height:s}=e,n=0,r=0;i*=t,s*=t;const o=e.__;if(o.__autoWidth)switch(i+=20,o.textAlign){case"center":n=o.autoSizeAlign?-i/2:-10;break;case"right":n=o.autoSizeAlign?-i:-20}if(o.__autoHeight)switch(s+=20,o.verticalAlign){case"middle":r=o.autoSizeAlign?-s/2:-10;break;case"bottom":r=o.autoSizeAlign?-s:-20}const{x:a,y:l}=this.inBody?e.app.clientBounds:e.app.tree.clientBounds,{a:h,b:c,c:u,d:g,e:d,f}=new Kt(e.worldTransform).scale(1/t).translateInner(n,r),{style:_}=this.editDom;_.transform=`matrix(${h},${c},${u},${g},${d},${f})`,_.left=a+"px",_.top=l+"px",_.width=i+"px",_.height=s+"px",this.isHTMLText||xg(this.editDom,e,t)}onUnload(){const{editTarget:e,editor:t,editDom:i}
51=this;e&&(this.onInput(),e.text===` 52`&&(e.text=""),e.textEditing=void 0,t.app&&(t.app.config.keyEvent=this._keyEvent),t.off_(this.eventIds),i.removeEventListener("focus",this.onFocus),i.removeEventListener("input",this.onInput),i.removeEventListener("paste",this.onPaste),window.removeEventListener("keydown",this.onKeydown),window.removeEventListener("scroll",this.onUpdate),i.remove(),this.editDom=this.eventIds=void 0)}};function J4(e){const{scroll:t,disabled:i}=e.app.config.move;return!t||i?"":t===!0?"free":t}function Qn(e,t,i){wg(e.parentApp?e.parentApp:e,t),e.isApp||i||e.__eventIds.push(e.on_(gt.BEFORE_MOVE,s=>{const n=J4(e).includes("limit"),r=e.app.config.move.scrollLimit==="stop",o=e.getValidMove(s.moveX,s.moveY,n&&r);if(n&&!r){const a=e.getValidMove(0,0);if(a.x||a.y){const c=s.moveType==="drag"?.3:.05;Math.abs(a.x)>100?o.x=0:o.x*=c,Math.abs(a.y)>200?o.y=0:o.y*=c}}e.zoomLayer.move(o)}),e.on_(gt.DRAG_ANIMATE,()=>{const s=e.getValidMove(0,0);(s.x||s.y)&&e.interaction.stopDragAnimate()}),e.on_(gt.END,s=>{tt.animateMove(e.zoomLayer,e.getValidMove(s.moveX,s.moveY))}),e.on_(Yt.BEFORE_ZOOM,s=>{const{zoomLayer:n,layouter:r}=e,o=e.getValidScale(s.scale);o!==1&&(r.stop(),tt.updateMatrix(e),n.scaleOfWorld(s,o),r.start())}))}function wg(e,t){const i={wheel:{preventDefault:!0},touch:{preventDefault:!0},pointer:{preventDefaultMenu:!0}};t&&K.assign(i,t),K.assign(e.config,i,e.userConfig)}Nh=p([Nu()],Nh),ot.add("text-editor","editor");const vg=rt.get("LeaferTypeCreator"),Q4={list:{},register(e,t){Ea[e]&&vg.repeat(e),Ea[e]=t},run(e,t){const i=Ea[e];i&&i(t)}},{list:Ea,register:tr}=Q4;tr("viewport",Qn),tr("custom",function(e){Qn(e,null,!0)}),tr("design",function(e){Qn(e,{zoom:{min:.01,max:256},move:{holdSpaceKey:!0,holdMiddleKey:!0}})}),tr("document",function(e){Qn(e,{zoom:{min:1},move:{scroll:"limit"}})});const Zs={state:{type:"none",typeCount:0,startTime:0,totalData:null,center:{}},getData(e){const t=e[0],i=e[1],s=R.getCenter(t.from,i.from),n=R.getCenter(t.to,i.to),r={x:n.x-s.x,y:n.y-s.y},o=R.getDistance(t.from,i.from);return{move:r,scale:R.getDistance(t.to,i.to)/o,rotation:R.getRotation(t.from,i.from,t.to,i.to),center:n}},getType(e,t){const i=Math.hypot(e.move.x,e.move.y)/(t.move||5),s=Math.abs(e.scale-1)/(t.scale||.03),n=Math.abs(e.rotation)/(t.rotation||2);return i<1&&s<1&&n<1?"none":i>=s&&i>=n?"move":s>=n?"zoom":"rotate"},detect(e,t){const{state:i}=Hs,s=Hs.getType(e,t);if(i.totalData||(i.startTime=Date.now(),i.center=e.center),Hs.add(e,i.totalData),i.totalData=e,s===i.type){if(i.typeCount++,i.typeCount>=(t.count||3)&&s!=="none")return s}else i.type=s,i.typeCount=1;return Date.now()-i.startTime>=(t.time||160)?Hs.getType(i.totalData,t):"none"},add(e,t){t&&(R.move(e.move,t.move),e.scale*=t.scale,e.rotation+=t.rotation,e.center=t.center)},reset(){const{state:e}
52=Hs;e.type="none",e.typeCount=0,e.startTime=0,e.totalData=null}},Hs=Zs,{abs:Aa,max:jh}=Math,{sign:Vh,within:Gh}=_t,qh={getMove(e,t){let{moveSpeed:i}=t,{deltaX:s,deltaY:n}=e;e.shiftKey&&!s&&(s=n,n=0);const r=Aa(s),o=Aa(n);return r>50&&(s=jh(50,r/3)*Vh(s)),o>50&&(n=jh(50,o/3)*Vh(n)),{x:-s*i*2,y:-n*i*2}},getScale(e,t){let i,s=1,{zoomMode:n,zoomSpeed:r}=t;const o=e.deltaY||e.deltaX;if(n?(i=n==="mouse"||!e.deltaX&&(A.intWheelDeltaY?Math.abs(o)>17:Math.ceil(o)!==o),(e.shiftKey||e.metaKey||e.ctrlKey)&&(i=!0)):i=!e.shiftKey&&(e.metaKey||e.ctrlKey),i){r=Gh(r,0,1);const a=e.deltaY?t.delta.y:t.delta.x,l=Gh(1-Aa(o)/(4*a)*r,.5,2);s=o>0?l:1/l}return s}};let er,ir,sr,nr;class Cg{get transforming(){return this.moving||this.zooming||this.rotating}get moving(){return!!this.moveData}get zooming(){return!!this.zoomData}get rotating(){return!!this.rotateData}constructor(t){this.interaction=t}move(t){const{interaction:i}=this;t.moveType||(t.moveType="move"),this.moveData||(this.setPath(t),er=0,ir=0,this.moveData=Object.assign(Object.assign({},t),{moveX:0,moveY:0,totalX:er,totalY:ir}),i.emit(gt.START,this.moveData)),t.path=this.moveData.path,t.totalX=er+=t.moveX,t.totalY=ir+=t.moveY,i.emit(gt.BEFORE_MOVE,t),i.emit(gt.MOVE,t),this.transformEndWait(
52)}zoom(t){const{interaction:i}=this;this.zoomData||(this.setPath(t),sr=1,this.zoomData=Object.assign(Object.assign({},t),{scale:1,totalScale:sr}),i.emit(Yt.START,this.zoomData)),t.path=this.zoomData.path,t.totalScale=sr*=t.scale,i.emit(Yt.BEFORE_ZOOM,t),i.emit(Yt.ZOOM,t),this.transformEndWait()}rotate(t){const{interaction:i}=this;this.rotateData||(this.setPath(t),nr=0,this.rotateData=Object.assign(Object.assign({},t),{rotation:0,totalRotation:nr}),i.emit(he.START,this.rotateData)),t.path=this.rotateData.path,t.totalRotation=nr+=t.rotation,i.emit(he.BEFORE_ROTATE,t),i.emit(he.ROTATE,t),this.transformEndWait()}setPath(t){const{interaction:i}=this,{path:s}=i.selector.getByPoint(t,i.hitRadius);t.path=s,i.cancelHover()}transformEndWait(){clearTimeout(this.transformTimer),this.transformTimer=setTimeout(()=>{this.transformEnd()},this.interaction.p.transformTime)}transformEnd(){const{interaction:t,moveData:i,zoomData:s,rotateData:n}=this;i&&t.emit(gt.END,Object.assign(Object.assign({},i),{totalX:er,totalY:ir})),s&&t.emit(Yt.END,Object.assign(Object.assign({},s),{totalScale:sr})),n&&t.emit(he.END,Object.assign(Object.assign({},n),{totalRotation:nr})),this.reset()}reset(){this.zoomData=this.moveData=this.rotateData=null}destroy(){this.reset()}}const Ta=Jt.prototype,Ra=new nt,be=new K0;function Kh(e,t){return Object.assign(Object.assign({},t),{moveX:e.x,moveY:e.y})}function Zh(e,t){return Object.assign(Object.assign({},t),{scale:e})}Ta.initType=function(e){Q4.run(e,this)},Ta.getValidMove=function(e,t,i=!0){const{disabled:s,scrollSpread:n}=this.app.config.move;be.set(e,t);const r=J4(this);return r&&(r.includes("x")?be.y=0:r.includes("y")?be.x=0:Math.abs(be.x)>Math.abs(be.y)?be.y=0:be.x=0,i&&r.includes("limit")&&(Ra.set(this.__world).addPoint(this.zoomLayer),n&&Ra.spread(n),ss.getValidMove(Ra,this.canvas.bounds,"auto",be,!0),r.includes("x")?be.y=0:r.includes("y")&&(be.x=0))),{x:s?0:be.x,y:s?0:be.y}},Ta.getValidScale=function(e){const{scaleX:t}=this.zoomLayer.__,{min:i,max:s,disabled:n}=this.app.config.zoom,r=Math.abs(t*e);return i&&r<i?e=i/t:s&&r>s&&(e=s/t),n?1:e};const qi=N4.prototype;qi.createTransformer=function(){this.transformer=new Cg(this)},qi.move=function(e){this.transformer.move(e)},qi.zoom=function(e){this.transformer.zoom(e)},qi.rotate=function(e){this.transformer.rotate(e)},qi.transformEnd=function(){this.transformer.transformEnd()},qi.wheel=function(e){const{wheel:t,pointer:i}=this.config,{posDeltaSpeed:s,negDeltaSpeed:n}=t;if(t.disabled)return;e.deltaX>0?s&&(e.deltaX*=s):n&&(e.deltaX*=n),e.deltaY>0?s&&(e.deltaY*=s):n&&(e.deltaY*=n);const r=t.getScale?t.getScale(e,t):qh.getScale(e,t);if(r!==1)this.zoom(Zh(r,e));else{const o=t.getMove?t.getMove(e,t):qh.getMove(e,t);i.snap&&R.round(o),this.move(Kh(o,e))}},qi.multiTouch=function(e,t){const{disabled:i,singleGesture:s}=this.config.multiTouch;if(i)return;this.pointerWaitCancel();let n=Zs.getData(t),{moving:r,zooming:o,rotating:a}=this.transformer;if(s){if(!this.transformer.transforming){switch(Zs.detect(n,W(s)?s:{})){case"move":r=!0;break;case"zoom":o=!0;break;case"rotate":a=!0;break;default:return}Zs.reset()}r||(n.center=Zs.state.center)}else r=o=a=!0;var l,h;Object.assign(e,n.center),e.multiTouch=!0,a&&this.rotate((l=n.rotation,h=e,Object.assign(Object.assign({},h),{rotation:l}))),o&&this.zoom(Zh(n.scale,e)),r&&this.move(Kh(n.move,e))};const T0=Y4.prototype,{abs:rr,min:bg,max:$h,hypot:kg}=Math;function Jh(e,t){let i=1;const s=t==="out",n=Math.abs(e);if(n>1){for(;s?i<n:i<=n;)i*=2;s&&(i/=2)}else{for(;s?i>=n:i>n;)i/=2;s||(i*=2)}return i/e}T0.checkDragEndAnimate=function(e){const{interaction:t}=this,i=this.canAnimate&&this.moving&&t.m.dragAnimate;if(i){const s=$(i)?i:.95,n=.15,r=150;let o,a,l,h=0,c=0,u=0,g=0,d=3;const{dragDataList:f}=this,_=f.length;for(let m=_-1;m>=$h(_-3,0)&&(l=f[m],!(l.time&&Date.now()-l.time>100));m--)o=d--,h+=l.moveX*o,c+=l.moveY*o,g+=o,a=kg(l.moveX,l.moveY),a>u&&(u=a);if(g&&(h/=g,c/=g),u>8){const m=1.15+bg((u-8)/17,1)*.4500000000000002;h*=m,c*=m}const y=$h(rr(h),rr(c));y>r&&(a=r/y,h*=a,c*=a);const x=()=>{if(h*=s,c*=s,e=Object.assign({},e),rr(h)<n&&rr(c)<n)return this.dragEndReal(e);R.move(e,h,c),this.drag(e),this.animate(x),t.emit(gt.DRAG_ANIMATE,e)};this.animate(x)}return i},T0.animate=function(e,t){const i=e||this.animateWait;i&&this.interaction.target.nextRender(i,null,t),this.animateWait=e},T0.stopAnimate=function(){this.animate(null,"off"),this.interaction.target.nextRender(()=>{this.dragData&&this.dragEndReal(this.dragData)})},T0.checkDragOut=function(e){const{interaction:t}=this;
52this.autoMoveCancel(),this.dragging&&!t.shrinkCanvasBounds.hitPoint(e)&&this.autoMoveOnDragOut(e)},T0.autoMoveOnDragOut=function(e){const{interaction:t,downData:i,canDragOut:s}=this,{autoDistance:n,dragOut:r}=t.m;if(!r||!s||!n)return;const o=t.shrinkCanvasBounds,{x:a,y:l}=o,h=L.maxX(o),c=L.maxY(o),u=e.x<a?n:h<e.x?-n:0,g=e.y<l?n:c<e.y?-n:0;let d=0,f=0;this.autoMoveTimer=setInterval(()=>{d+=u,f+=g,R.move(i,u,g),R.move(this.dragData,u,g),t.move(Object.assign(Object.assign({},e),{moveX:u,moveY:g,totalX:d,totalY:f,moveType:"drag"})),t.pointerMoveReal(e)},10)},T0.autoMoveCancel=function(){this.autoMoveTimer&&(clearInterval(this.autoMoveTimer),this.autoMoveTimer=0)},ot.add("viewport"),ot.add("view"),Jt.prototype.zoom=function(e,t,i,s){let n;Sc(t)?(n=t.padding,i=t.scroll,s=t.transition):n=t;const{zoomLayer:r}=this,o=this.canvas.bounds.clone().shrink(Xt(n)?30:n),a=new nt,l={x:o.x+o.width/2,y:o.y+o.height/2};let h;r.killAnimate();const{x:c,y:u,scaleX:g,scaleY:d}=r.__,{boxBounds:f}=r;if(G(e))switch(e){case"in":h=Jh(g,"in");break;case"out":h=Jh(g,"out");break;case"fit":e=f;break;case"fit-width":(e=new nt(f)).height=0;break;case"fit-height":(e=new nt(f)).width=0}else $(e)&&(h=e/g);if(h)h=this.getValidScale(h),r.scaleOfWorld(l,h,h,!1,s);else if(W(e)){const _={x:c,y:u,scaleX:g,scaleY:d},y=J(e);if(y||e.tag){const b=y?e:[e];a.setListWithFn(b,as.worldBounds)}else{const b=(function(S,B){let P,{x:U,y:Y,width:T,height:z}=S;return z||(z=T*(B.height/B.width),P=!0),T||(T=z*(B.width/B.height),P=!0),P?{x:U,y:Y,width:T,height:z}:S})(e,o);a.set(r.getWorldBounds(b))}const{width:x,height:m}=a;let w=o.x-a.x,v=o.y-a.y;return i?(w+=Math.max((o.width-x)/2,0),v+=Math.max((o.height-m)/2,0)):(h=this.getValidScale(Math.min(o.width/x,o.height/m)),w+=(o.width-x*h)/2,v+=(o.height-m*h)/2,R.scaleOf(_,a,h),a.scaleOf(a,h),_.scaleX*=h,_.scaleY*=h),i==="x"?v=0:i==="y"&&(w=0),R.move(_,w,v),a.move(w,v),r.set(_,s),a}return r.worldBoxBounds};class pf extends at{get isOutside(){return!0}constructor(t,i){super(),this.config={theme:"light",padding:0,minSize:10},t.isApp&&(t.sky.add(this),t=t.tree),this.target=t,i&&K.assign(this.config,i),this.changeTheme(this.config.theme),this.waitLeafer(this.__listenEvents,this)}changeTheme(t){let i;G(t)?(i={fill:"black",stroke:"rgba(255,255,255,0.8)"},t==="dark"&&(i.fill="white",i.stroke="rgba(0,0,0,0.2)")):i=t,this.scrollXBar||this.addMany(this.scrollXBar=new k,this.scrollYBar=new k),i=Object.assign({strokeAlign:"center",opacity:.5,width:6,cornerRadius:3,hoverStyle:{opacity:.6},pressStyle:{opacity:.7}},i),i.height||(i.height=i.width),this.scrollXBar.set(Object.assign(Object.assign({},i),{visible:!1})),this.scrollYBar.set(Object.assign(Object.assign({},i),{visible:!1})),this.leafer&&this.update()}update(t){if(this.dragScrolling)return;const{minSize:i,padding:s}=this.config,{zoomLayer:n,canvas:r}=this.target.leafer,{worldRenderBounds:o}=n;if(t&&this.scrollBounds&&this.scrollBounds.isSame(o))return;this.scrollBounds=new nt(o);const a=r.bounds.clone().shrink(s),l=a.clone().add(o),h=this.ratioX=a.width/l.width,c=this.ratioY=a.height/l.height,u=(a.x-l.x)/l.width,g=(a.y-l.y)/l.height,d=h<1,f=c<1,{scrollXBar:_,scrollYBar:y}=this,{x,y:m,width:w,height:v}=a.shrink([2,f?y.width+6:2,d?_.height+6:2,2]);_.set({x:x+w*u,y:m+v+2,width:Math.max(w*h,i),visible:d}),y.set({x:x+w+2,y:m+v*g,height:Math.max(v*c,i),visible:f})}onDrag(t){this.dragScrolling=!0,this.__dragOut=this.app.config.move.dragOut,this.app.config.move.dragOut=!1;const i=t.current===this.scrollXBar,s=this.target.leafer.getValidMove(i?-t.moveX/this.ratioX:0,i?0:-t.moveY/this.ratioY);this.target.moveWorld(s.x,s.y),t.current.moveWorld(s.x&&-s.x*this.ratioX,s.y&&-s.y*this.ratioY)}onDragEnd(){this.dragScrolling=!1,this.app.config.move.dragOut=this.__dragOut}__listenEvents(){const{scrollXBar:t,scrollYBar:i}=this;this.__eventIds=[t.on_(j.DRAG,this.onDrag,this),i.on_(j.DRAG,this.onDrag,this),t.on_(j.END,this.onDragEnd,this),i.on_(j.END,this.onDragEnd,this),this.target.on_(ut.BEFORE,()=>this.update(!0)),this.target.leafer.on_(Je.RESIZE,()=>this.update())]}__removeListenEvents(){this.off_(this.__eventIds)}destroy(){this.destroyed||(this.__removeListenEvents(),this.target=this.config=null,super.destroy())}}ot.add("scroll");class Bg extends X4{setText(t){this._text=t,this.__htmlChanged=!0}}const La={lt:"<",gt:">",amp:"&",quot:'"',apos:"'",nbsp:" ",ensp:"â",emsp:"â",thinsp:"â",ndash:"â",mdash:"â",hellip:"â¦",middot:"·",bull:"â¢",laquo:"«",raquo:"»",lsquo:"â",rsquo:"â",ldquo:"â",rdquo:"â",cent:"¢",pound:"£",yen:"Â¥",euro:"â¬",times:"Ã",divide:"÷",plusmn:"±",minus:"â",frac12:"½",frac14:"¼",frac34:"¾",sup2:"²",sup3:"³",deg:"°",reg:"®",copy:"©",trade:"â¢",section:"§",para:"¶",dagger:"â ",Dagger:"â¡",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",alpha:"α",beta:"β",gamma:"γ",delta:"δ",pi:"Ï",sigma:"Ï",omega:"Ï",Omega:"Ω",micro:"µ",infinity:"â",not:"¬",equiv:"â¡",le:"â¤",ge:"â¥"};let s0=class extends Si{get __tag(){return"HTMLText"}constructor(e){super(e)}__updateBoxBounds(){const e=this.__;if(e.__htmlChanged){const t=document.createElement("div"),{style:i}=t;i.all="initial",i.position="absolute",i.visibility="hidden",t.innerHTML=this.text,document.body.appendChild(t);const{width:s,height:n}=t.getBoundingClientRect(),r=s+10,o=`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${n}"> 53 <foreignObject width="${r}" height="${n}"> 54 <style> 55 * { 56 margin: 0; 57 padding: 0; 58 box-sizing: border-box; 59 } 60 </style> 61 <body xmlns="http://www.w3.org/1999/xhtml"> 62 ${this.decodeText(this.text)} 63 </body> 64 </foreignObject> 65 </svg>`;e.__setImageFill("data:image/svg+xml,"+encodeURIComponent(o)),e.__naturalWi
65dth=r/e.pixelRatio,e.__naturalHeight=n/e.pixelRatio,e.__htmlChanged=!1,t.remove()}super.__updateBoxBounds()}__draw(e,t,i){this.textEditing&&!t.exporting||super.__draw(e,t,i)}decodeText(e){if(!e.includes("&"))return e;let t,i,s="",n=0;for(;n<e.length;){if(e[n]==="&"){const r=e.indexOf(";",n+1);if(r>n+1&&(t=e.slice(n+1,r),i=La[t],i!==void 0)){s+=i,n=r+1;continue}}s+=e[n++]}return s}static addUnicodeEntity(e,t){G(e)?La[e]=t:Object.assign(La,e)}};p([Tt(Bg)],s0.prototype,"__",void 0),p([Z("")],s0.prototype,"text",void 0),p([mt("TextEditor")],s0.prototype,"editInner",void 0),p([Oe(!1)],s0.prototype,"textEditing",void 0),s0=p([Rt()],s0),ot.add("html");class Sg extends H4{}function x1(e){return wt(e,t=>({set(i){if(this.__setAttr(t,i)){const s=this.__,n=s.startArrow!=="none"||s.endArrow!=="none";s.__useArrow!==n&&Ae(this),s.__useArrow=n,I1(this)}}}))}let or=class extends _e{get __tag(){return"Arrow"}constructor(e){super(e),this.__.__useArrow=!0}static registerArrow(e,t){zr.register(e,t)}};p([Tt(Sg)],or.prototype,"__",void 0),p([x1("angle")],or.prototype,"endArrow",void 0),or=p([Rt()],or);const{M:Eg,L:Ag,C:Tg,Q:Rg,O:Lg}=Ut,{rotate:Fg,copyFrom:Pg,scale:Mg}=R,Xs={},tc={layout(e,t,i,s,n,r,o){let a,l,h=0,c=e.length;for(;h<c;)switch(a=e[h],a){case Eg:case Ag:Fa(e,h+1,t,i,s,n,r,o),h+=3;break;case Tg:for(l=1;l<6;l+=2)Fa(e,h+l,t,i,s,n,r,o);h+=7;break;case Rg:for(l=1;l<4;l+=2)Fa(e,h+l,t,i,s,n,r,o);h+=5;break;case Lg:e[h+1]+=t,e[h+2]+=i,s&&(e[h+3]*=s),r&&(e[h+4]+=r,e[h+5]+=r),h+=7}},rotate(e,t,i){tc.layout(e,0,0,1,1,t,i)}};function Fa(e,t,i,s,n,r,o,a){Pg(Xs,e[t],e[t+1]),o&&Fg(Xs,o,a),n&&Mg(Xs,n,r),e[t]=i+Xs.x,e[t+1]=s+Xs.y}const{layout:Pa,rotate:Qs}=tc,{getAngle:Dg}=R,cn={x:0},to={x:-.5},Og={connect:cn,offset:{x:-.71,bevelJoin:.36,roundJoin:.22},path:[1,-3,-3,2,0,0,2,-3,3]},Ig={connect:to,offset:{x:-1.207,bevelJoin:.854,roundJoin:.707},path:[1,-3,-3,2,0,0,2,-1,0]},ec=[1,-3,0,2,-3,-2,2,0,0,2,-3,2,2,-3,0],V1={connect:cn,offset:{x:-.9,bevelJoin:.624,roundJoin:.4},path:[...ec]},Ur=K.clone(V1);Ur.path=[...ec,1,-2.05,1.1,2,-2.05,-1.1],Ur.dashPath=[1,-2,0,2,-.5,0];const ic={connect:cn,offset:to,path:[...V1.path]},sc={connect:cn,offset:to,path:[...Ur.path],dashPath:[1,-2.5,0,2,-1,0]};Qs(ic.path,180,{x:-1.5,y:0}),Qs(sc.path,180,{x:-1.5,y:0});const nc=[1,-3,0,2,-3.5,-1.8,2,0,0,2,-3.5,1.8,2,-3,0],rc={connect:cn,offset:{x:-1.1,bevelJoin:.872,roundJoin:.6},path:[...nc]},w1=K.clone(rc);w1.path=[...nc,1,-2.25,.95,2,-2.25,-.95],w1.dashPath=[1,-3,0,2,-.5,0];const G1={connect:{x:-1.8},path:[1,1.8,-.1,2,1.8,0,26,0,0,1.8,0,359,0]},oc={connect:{x:.5},path:[...G1.path]},v1=K.clone(oc);v1.path=[...G1.path,1,0,0,26,0,0,1,0,360,0],v1.dashPath=[1,-.5,0,2,.5,0];const eo={connect:{x:-1.4},path:[1,-1.4,0,2,-1.4,-1.4,2,1.4,-1.4,2,1.4,1.4,2,-1.4,1.4,2,-1.4,0]},ac={path:[...eo.path]},lc={path:[...eo.path,2,-1.4,-.49,2,1,-.49,1,-1.4,.49,2,1,.49]},q1=K.clone(eo);q1.connect.x=-1.9;const hc=K.clone(ac),cc=K.clone(lc);Qs(q1.path,45),Qs(hc.path,45),Qs(cc.path,45);const C1={angle:Og,"angle-side":Ig,arrow:w1,triangle:Ur,"triangle-flip":sc,circle:v1,"circle-line":G1,square:lc,"square-line":eo,diamond:cc,"diamond-line":q1,mark:{offset:to,path:[1,0,-2,2,0,2]}},dc={triangle:V1,"triangle-flip":ic,arrow:rc,circle:oc,square:ac,diamond:hc};function Qh(e,t,i,s,n,r,o){let a,l,h=1,c=0;const{strokeCap:u,strokeJoin:g}=e.__;if(W(t))if(t.type){if(h=t.scale||1,c=t.rotation||0,a=C1[t.type],h>1){const b=dc[t.type];b&&(a=b,l=!0)}}else a=t;else a=C1[t];l||(l=a.fill);const{offset:d,connect:f,path:_,dashPath:y}=a;let x=f?f.x*h:0,m=d?d.x:0;const w=[..._];o&&y&&w.push(...y),u!=="none"&&(x-=.5),d&&(g==="round"&&d.roundJoin?m+=d.roundJoin:g==="bevel"&&d.bevelJoin&&(m+=d.bevelJoin)),h!==1&&Pa(w,0,0,h,h),m&&Pa(w,m,0),Pa(w,s.x,s.y,n,n,Dg(i,s)+c),r.x=(x+m)*n;const v={data:w};return l&&(v.fill=l),v}const{M:t3,L:Ma,C:e3,Q:i3,Z:Wg,N:zg,D:Hg,X:Xg,G:Yg,F:Ug,O:Ng,P:jg,U:s3}=Ut,{copy:Ki,copyFrom:b1,getDistancePoint:n3,isSame:r3}=R,{stintSet:o3}=K,R0={},ar={},Ys={},mi={},oe={},te={},Vg={list:C1,fillList:dc,addArrows(e,t){const i=e.__,{startArrow:s,endArrow:n,__strokeWidth:r,dashPattern:o,__pathForRender:a,cornerRadius:l}=i,h=!l;let c,u,g,d;t||(i.__strokeWidthCache=r);let f,_=0,y=a.length,x=0,m=s&&s!=="none";for(;_<y;){switch(f=a[_],f){case t3:case Ma:(x<2||_+6>=y)&&(Ki(mi,te),b1(te,a[_+1],a[_+2]),!x&&m&&Ki(ar,te)),_+=3;break;case e3:(x===1||_+7>=y-3)&&(Da(a,oe,te,_+3),mi.x=a[_+1],mi.y=a[_+2]),_+=7;break;case i3:(x===1||_+5>=y-3)&&(Da(a,oe,te,_+1),Ki(mi,oe)),_+=5;break;case Wg:return;case zg:_+=5;break;case Hg:_+=9;break;case Xg:_+=6;break;case Yg:_+=9;break;case Ug:_+=5;break;case Ng:_+=7;break;case jg:_+=4;break;case s3:(x===1||_+6>=y-3)&&(Da(a,oe,te,_+1),Ki(mi,oe),_+6!==y&&(te.x-=(te.x-oe.x)/10,te.y-=(te.y-oe.y)/10)),_+=6}if(x++,x===1&&f!==t3)return;
65if(x===2&&m&&Ki(Ys,f===Ma?te:r3(mi,ar)?oe:mi),_===y){const w=i.__pathForRender=h?[...a]:a;if(m&&(c=Qh(e,s,Ys,ar,r,R0,!!o),u=c.fill||o,u||w.push(...c.data),R0.x&&(n3(ar,Ys,-R0.x,!0),w[1]=Ys.x,w[2]=Ys.y)),n&&n!=="none"&&(r3(oe,te)&&Ki(oe,mi),g=Qh(e,n,oe,te,r,R0,!!o),d=g.fill||o,d||w.push(...g.data),R0.x)){let v;switch(n3(te,oe,-R0.x,!0),f){case Ma:v=_-3+1;break;case e3:v=_-7+5;break;case i3:v=_-5+3;break;case s3:v=_-6+3}v&&Gg(w,oe,v)}}else Ki(oe,te);o3(i,"__startArrowPath",u&&c),o3(i,"__endArrowPath",d&&g)}},updateArrow(e){const t=e.__;t.strokeScaleFixed&&t.__strokeWidthCache!==t.__strokeWidth&&e.__updateRenderPath(!0)},register(e,t,i){this.list[e]=t,i&&(this.fillList[e]=t)},get(e){return this.list[e]}};function Da(e,t,i,s){b1(t,e[s],e[s+1]),b1(i,e[s+2],e[s+3])}function Gg(e,t,i){e[i]=t.x,e[i+1]=t.y}ot.add("arrow"),C.addAttr("startArrow","none",x1),C.addAttr("endArrow","none",x1),Object.assign(zr,Vg),Object.assign(it,{strokeArrow(e,t,i,s){const{__startArrowPath:n,__endArrowPath:r,dashPattern:o}=t.__;o&&(i.dashPattern=null),n&&(i.beginPath(),t.__drawPathByData(i,n.data),i.stroke(),n.fill&&(i.fillStyle=e,i.fill())),r&&(i.beginPath(),t.__drawPathByData(i,r.data),i.stroke(),r.fill&&(i.fillStyle=e,i.fill()))}});let me=class extends k{get __tag(){return"Flow"}constructor(e){super(e),this.__hasAutoLayout=!0}};p([Tt(class extends Mi{})],me.prototype,"__",void 0),p([Ir("x")],me.prototype,"flow",void 0),me=p([Rt()],me);const Oa={},uc={"top-left":"from",top:"center","top-right":"to",right:"to","bottom-right":"to",bottom:"center","bottom-left":"from",left:"from",center:"center","baseline-left":"from","baseline-center":"center","baseline-right":"to"},gc={"top-left":"from",top:"from","top-right":"from",right:"center","bottom-right":"to",bottom:"to","bottom-left":"to",left:"center",center:"center","baseline-left":"to","baseline-center":"to","baseline-right":"to"};function Nr(e,t,i){const s=e.__,{contentBounds:n}=e.__layout;M1.toPoint(i,t,n,Oa),t.x=s.__autoWidth?n.x:Oa.x,t.y=s.__autoHeight?n.y:Oa.y}const{move:qg}=R;function a3(e,t,i,s,n,r){const{children:o}=e;let a,l,{x:h,start:c}=t,u=s;h+=i;for(let g=0,d=t.count;g<d;g++)a=o[r?c-g:c+g],a.__.inFlow&&a.__.visible!==0?(l=a.__flowBounds,n!=="from"&&(u=s+(t.height-l.height)/(n==="center"?2:1)),qg(a,h-l.x,u-l.y),h+=l.width+t.gap):d++}function jr(e,t,i){const s=i==="width"?"height":"width";e[i]=Math.max(e[i],t[i]),e[s]+=e.count?t[s]+e.gap:t[s],e.list.push(t),e.count++}const Pt={};function pc(e,t){const{gap:i,flowAlign:s,flowWrap:n,__autoWidth:r,__autoHeight:o}=e.__,a=n&&(t?!r:!o);return W(i)?(Pt.xGap=i.x||0,Pt.yGap=i.y||0):Pt.xGap=Pt.yGap=Bc(i),Pt.isAutoXGap=G(Pt.xGap)&&!r,Pt.isAutoYGap=G(Pt.yGap)&&!o,Pt.complex=a||s!=="top-left"||e.__hasGrow||Pt.isAutoXGap||Pt.isAutoYGap,Pt.wrap=a,Pt.complex&&(Pt.isFitXGap=Pt.xGap==="fit"&&!r,Pt.isFitYGap=Pt.yGap==="fit"&&!o,W(s)?(Pt.contentAlign=s.content||"top-left",Pt.rowXAlign=s.x||"from",Pt.rowYAlign=s.y||"from"):(Pt.contentAlign=s,Pt.rowXAlign=uc[s],Pt.rowYAlign=gc[s])),Pt}function Vr(e,t){return{x:0,y:0,width:0,height:0,gap:t,start:e,count:0,grow:0}}function J0(e,t,i,s){const{count:n}=e;n>1&&(i>e[t]||s)&&(e.gap=(i-e[t])/(n-1),e[t]=i)}function fc(e,t){return t==="box"?e.__local:e.__layout.localStrokeBounds}const{within:Kg}=_t;function l3(e,t,i,s){let n,r,o,a=0,l=t.hasRangeSize&&[],{grow:h,start:c}=t;const u=(i-t.width)/h,{children:g}=e;if(!(u<=0)){t.width=i;for(let d=0,f=t.count;d<f;d++)n=g[s?c-d:c+d],n.__.inFlow&&n.__.visible!==0?(r=n.__widthGrow)&&(o=k1(n,n.__flowBounds,u*r),o?(a+=o,h-=r):l&&(n.__.widthRange?l.unshift(n):l.push(n))):f++;a&&(function(d,f,_){let y,x,m,w;d.forEach(v=>{y=v.__widthGrow,x=f/_*y,w=k1(v,m=v.__flowBounds,m.width+x),f-=x-w,_-=y})})(l,a,h)}}function k1(e,t,i){const{widthRange:s,lockRatio:n}=e.__,r=s?Kg(i,s):i;t.width||(e.__.width=t.width=1);const o=r/t.width;return e.scaleResize(o,n?o:1),t.width=r,i-r}const{within:Zg}=_t;function h3(e,t,i,s){let n,r,o,a=0,l=t.hasRangeSize&&[],{grow:h,start:c}=t;const u=(i-t.height)/h,{children:g}=e;if(!(u<=0)){t.height=i;for(let d=0,f=t.count;d<f;d++)n=g[s?c-d:c+d],n.__.inFlow&&n.__.visible!==0?(r=n.__heightGrow)&&(o=B1(n,n.__flowBounds,u*r),o?(a+=o,h-=r):l&&(n.__.heightRange?l.unshift(n):l.push(n))):f++;a&&(function(d,f,_){let y,x,m,w;d.forEach(v=>
65{y=v.__heightGrow,x=f/_*y,w=B1(v,m=v.__flowBounds,m.height+x),f-=x-w,_-=y})})(l,a,h)}}function B1(e,t,i){const{heightRange:s,lockRatio:n}=e.__,r=s?Zg(i,s):i;t.height||(e.__.height=t.height=1);const o=r/t.height;return e.scaleResize(n?o:1,o),t.height=r,i-r}const{move:$g}=R;function c3(e,t){const i="width",{children:s,itemBox:n}=e,r=pc(e,!0),{complex:o,wrap:a,xGap:l,yGap:h,isAutoXGap:c,isFitXGap:u}=r;if(!s.length)return;const g=a&&{x:0,y:0,width:0,height:0,gap:0,count:0,list:[]},d=c?0:l;let f,_,y,x,m,{x:w,y:v,width:b,height:S}=e.__layout.contentBounds;for(let B=0,P=s.length;B<P;B++)f=s[x=t?P-1-B:B],f.__.inFlow&&f.__.visible!==0&&(_=fc(f,n),o?(f.__flowBounds=_,m||(m=Vr(x,d)),a&&m.count&&m.width+_.width>b&&(m.grow?l3(e,m,b,t):c&&J0(m,i,b,u),jr(g,m,i),m=Vr(x,d)),y=_.width,f.__widthGrow&&(m.grow+=f.__widthGrow,y=0,f.__.widthRange&&(m.hasRangeSize=!0)),f.__heightGrow&&B1(f,_,S),m.width+=m.count?y+d:y,m.height=Math.max(m.height,_.height),m.count++):($g(f,w-_.x,v-_.y),w+=_.width+d));if(o&&m){const{isAutoYGap:B,isFitYGap:P,contentAlign:U,rowXAlign:Y,rowYAlign:T}=r;m.count&&(m.grow?l3(e,m,b,t):c&&J0(m,i,b,u),a&&jr(g,m,i)),a?(B?J0(g,"height",S,P):g.height+=(g.gap=h)*(g.list.length-1),(function(z,E,I,N){Nr(z,E,I);const{list:V}=E;if(V.length>1&&(N||(N=uc[I]),N!=="from")){let et;for(let pt=0,st=V.length;pt<st;pt++)et=V[pt],et.x=E.width-et.width,N==="center"&&(et.x/=2)}})(e,g,U,Y),(function(z,E,I,N){const{list:V}=E,et=z.__.flowWrap==="reverse";let pt,{x:st,y:ge}=E;for(let Zt=0,Qe=V.length;Zt<Qe;Zt++)pt=V[et?Qe-1-Zt:Zt],a3(z,pt,st,ge,I,N),ge+=pt.height+E.gap})(e,g,T,t)):(Nr(e,m,U),a3(e,m,0,m.y,T,t))}}const{move:Jg}=R;function d3(e,t,i,s,n,r){const{children:o}=e;let a,l,{y:h,start:c}=t,u=i;h+=s;for(let g=0,d=t.count;g<d;g++)a=o[r?c-g:c+g],a.__.inFlow&&a.__.visible!==0?(l=a.__flowBounds,n!=="from"&&(u=i+(t.width-l.width)/(n==="center"?2:1)),Jg(a,u-l.x,h-l.y),h+=l.height+t.gap):d++}const{move:Qg}=R;function u3(e,t){const i="height",{children:s,itemBox:n}=e,r=pc(e,!1),{complex:o,wrap:a,xGap:l,yGap:h,isAutoYGap:c,isFitYGap:u}=r;if(!s.length)return;const g=a&&{x:0,y:0,width:0,height:0,gap:0,count:0,list:[]},d=c?0:h;let f,_,y,x,m,{x:w,y:v,width:b,height:S}=e.__layout.contentBounds;for(let B=0,P=s.length;B<P;B++)f=s[x=t?P-1-B:B],f.__.inFlow&&f.__.visible!==0&&(_=fc(f,n),o?(f.__flowBounds=_,m||(m=Vr(x,d)),a&&m.count&&m.height+_.height>S&&(m.grow&&h3(e,m,S,t),c&&J0(m,i,S,u),jr(g,m,i),m=Vr(x,d)),y=_.height,f.__heightGrow&&(m.grow+=f.__heightGrow,y=0,f.__.heightRange&&(m.hasRangeSize=!0)),f.__widthGrow&&k1(f,_,b),m.height+=m.count?y+d:y,m.width=Math.max(m.width,_.width),m.count++):(Qg(f,w-_.x,v-_.y),v+=_.height+d));if(o&&m){const{isAutoXGap:B,isFitXGap:P,contentAlign:U,rowXAlign:Y,rowYAlign:T}=r;m.count&&(m.grow&&h3(e,m,S,t),c&&J0(m,i,S,u),a&&jr(g,m,i)),a?(B?J0(g,"width",b,P):g.width+=(g.gap=l)*(g.list.length-1),(function(z,E,I,N){Nr(z,E,I);const{list:V}=E;if(V.length>1&&(N||(N=gc[I]),N!=="from")){let et;for(let pt=0,st=V.length;pt<st;pt++)et=V[pt],et.y=E.height-et.height,N==="center"&&(et.y/=2)}})(e,g,U,T),(function(z,E,I,N){const{list:V}=E,et=z.__.flowWrap==="reverse";let pt,{x:st,y:ge}=E;for(let Zt=0,Qe=V.length;Zt<Qe;Zt++)pt=V[et?Qe-1-Zt:Zt],d3(z,pt,st,ge,I,N),st+=pt.width+E.gap})(e,g,Y,t)):(Nr(e,m,U),d3(e,m,m.x,0,Y,t))}}function tp(e){e.__hasGrow=!0}function g3(e){return wt(e,t=>({set(i){const s=$(i)?i:0;t==="autoWidth"?this.__widthGrow=s:this.__heightGrow=s,this.__setAttr(t,i)&&(s&&this.waitParentChange(tp),Ae(this))}}))}ot.add("flow","resize");const Ia=k.prototype,lr=Xe.prototype,{__updateBoxBounds:ep}=at.prototype;C.addAttr("flow",!1,Ir),C.addAttr("gap",0,Z),C.addAttr("flowAlign","top-left",Z),C.addAttr("flowWrap",!1,Z),C.addAttr("itemBox","box",Z),C.addAttr("inFlow",!0,Z),C.addAttr("autoWidth",void 0,g3),C.addAttr("autoHeight",void 0,g3),C.addAttr("autoBox",void 0,Z);const{copyAndSpread:p3,unsign:ip}=L;Ia.__updateFlowLayout=function(){const{leaferIsCreated:e,flow:t}=this;switch(e&&(this.leafer.created=!1),t){case"x":case!0:c3(this);break;case"y":u3(this);break;case"x-reverse":c3(this,!0);break;case"y-reverse":u3(this,!0)}e&&(this.leafer.created=!0)},Ia.__updateContentBounds=function(){const{padding:e}=this.__,t=this.__layout,i=t.contentBounds===t.boxBounds;e?(i&&t.shrinkContent(),p3(t.contentBounds,t.boxBounds,e,!0),ip(t.contentBounds)):i||t.shrinkContentCancel()},Ia.__updateBoxBounds=function(e){if(this.children.length&&!this.__useSelfBox){const t=this.__,{flow:i}=t;if(t.__autoSide){t.__hasSurface&&this.__extraUpdate(),i&&!e?this.__updateRectBoxBounds():ep.call(this);const{boxBounds:s}=this.__layout;t.__autoSize||(t.__autoWidth?(i||(s.width+=s.x,s.x=0),s.height=t.height,s.y=0):(i||(s.height+=s.y,s.y=0),s.width=t.width,s.x=0)),i&&e&&t.padding&&p3(s,s,t.padding,!1,t.__autoSize?null:t.__autoWidth?"width":"height"),this.__updateNaturalSize()}else this.__updateRectBoxBounds();i&&this.__updateContentBounds()}else this.__updateRectBoxBounds()},Object.defineProperty(lr,"__autoWidth",{get(){return this._width==null&&this._autoWidth==null}}),Object.defineProperty(lr,"__autoHeight",{get(){return this._height==null&&this._autoHeight==null}}),Object.defineProperty(lr,"__autoSide",{get(){return this.__autoWidth||this.__autoHeight}}),Object.defineProperty(lr,"__autoSize",{get(){return this.__autoWidth&&this.__autoHeight}});const{cos:f3,sin:Us,pow:$t,sqrt:hr,abs:sp,ceil:np,floor:rp,round:op,PI:Mr}=Math,cr=5*Mr,dr=1.70158,ur=2.5949095,gr=7.5625,L0=2.75;function pr(e){return t=>$t(t,e)}function fr(e){return t=>1-$t(1-t,e)}function _r(e){return t=>t<.5?.5*$t(2*t,e):1-.5*$t(2-2*t,e)}function yr(e){return e<1/L0?gr*e*e:e<2/L0?gr*(e-=1.5/L0)*e+.75:e<2.5/L0?gr*(e-=2.25/L0)*e+.9375:gr*(e-=2.625/L0)*e+.984375}function Ns(e,t,i,s){const n={};return r=>{const o=~~(1e4*r),a=n[o];if(a)return a;let l,h,c,u=r;
65for(let g=0;g<8&&(l=1-u,c=_3(u,e,i)-r,h=3*l*l*e+6*l*u*(i-e)+3*u*u*(1-i),!(sp(h)<1e-6));g++)u-=c/h;return n[o]=_3(u,t,s)}}function _3(e,t,i){const s=1-e;return 3*s*s*e*t+3*s*e*e*i+e*e*e}const Gr={get(e){const{list:t}=Gr;return G(e)?t[e||"ease"]:W(e)?t[e.name].apply(t,J(e.value)?e.value:[e.value]):t.ease},register(e,t){Gr.list[e]=t},list:{linear:e=>e,ease:Ns(.25,.1,.25,1),"ease-in":Ns(.42,0,1,1),"ease-out":Ns(0,0,.58,1),"ease-in-out":Ns(.42,0,.58,1),"sine-in":e=>1-f3(e*Mr*.5),"sine-out":e=>Us(e*Mr*.5),"sine-in-out":e=>.5*(1-f3(e*Mr)),"quad-in":pr(2),"quad-out":fr(2),"quad-in-out":_r(2),"cubic-in":pr(3),"cubic-out":fr(3),"cubic-in-out":_r(3),"quart-in":pr(4),"quart-out":fr(4),"quart-in-out":_r(4),"quint-in":pr(5),"quint-out":fr(5),"quint-in-out":_r(5),"expo-in":e=>e?$t(2,10*e-10):0,"expo-out":e=>e===1?1:1-$t(2,10*-e),"expo-in-out":e=>e===0||e===1?e:e<.5?.5*$t(2,2*e*10-10):.5*(2-$t(2,10-2*e*10)),"circ-in":e=>1-hr(1-$t(e,2)),"circ-out":e=>hr(1-$t(e-1,2)),"circ-in-out":e=>e<.5?.5*(1-hr(1-$t(2*e,2))):.5*(hr(1-$t(2-2*e,2))+1),"back-in":e=>((dr+1)*e-dr)*e*e,"back-out":e=>(e-=1)*e*((dr+1)*e+dr)+1,"back-in-out":e=>e<.5?(e*=2)*e*((ur+1)*e-ur)*.5:.5*((e=2*e-2)*e*((ur+1)*e+ur)+2),"elastic-in":e=>e===0||e===1?e:-$t(2,10*(e-1))*Us((e-1.1)*cr),"elastic-out":e=>e===0||e===1?e:$t(2,-10*e)*Us((e-.1)*cr)+1,"elastic-in-out":e=>e===0||e===1?e:e<.5?-$t(2,10*((e*=2)-1))*Us((e-1.1)*cr)*.5:$t(2,10*(1-(e*=2)))*Us((e-1.1)*cr)*.5+1,"bounce-in":e=>1-yr(1-e),"bounce-out":yr,"bounce-in-out":e=>e<.5?.5*(1-yr(1-2*e)):.5*(1+yr(2*e-1)),"cubic-bezier":Ns,steps:function(e,t="floor"){return i=>(t==="floor"?rp(i*e):t==="ceil"?np(i*e):op(i*e))/e}}};function fe(e){return(t,i)=>{Object.defineProperty(t,i,{get(){const s=this.config&&this.config[i];return s===void 0?e:s},set(s){this.config||(this.config={}),this.config[i]=s}})}}class zt{}zt.CREATED="created",zt.PLAY="play",zt.PAUSE="pause",zt.STOP="stop",zt.SEEK="seek",zt.UPDATE="update",zt.COMPLETED="completed";let jt=class extends I4{get endingStyle(){return this.realEnding==="from"?this.fromStyle:this.toStyle}get started(){return!!this.requestAnimateTime}get completed(){return this.time>=this.duration&&!this.started}get frame(){return this.frames[this.nowIndex]}get frameTotalTime(){return this.frame.totalTime||this.frame.duration||0}get nowReverse(){return(this.mainReverse?1:0)+(this.frameReverse?1:0)==1}get realEnding(){let e;const{ending:t,reverse:i,swing:s,loop:n}=this;return t==="from"?e=0:t==="to"?e=1:(e=i?0:1,s&&n&&$(n)&&(e+=n-1)),e%2?"to":"from"}constructor(e,t,i,s){super(),this.nowIndex=0,this.playedTotalTime=0,t&&(t.keyframes?(i=t,t=t.keyframes):t.style&&(i=t,t=t.style)),this.init(e,t,i,s)}init(e,t,i,s){switch(this.target=e,(s||this.isTemp)&&(this.isTemp=s),typeof i){case"number":this.config={duration:i};break;case"string":this.config={easing:i};break;case"object":this.config=i,i.event&&(this.event=i.event)}this.keyframes=J(t)?t:t?[t]:[];const{easing:n,attrs:r}=this;this.easingFn=Gr.get(n),(r||this.attrsMap)&&(this.attrsMap=r?r.reduce((o,a)=>(o[a]=!0,o),{}):void 0),this.frames=[],this.create(),this.autoplay&&this.frames.length&&(this.timer=setTimeout(()=>{this.timer=0,this.play()},0))}emitType(e){this.emit(e,this),this.parent&&this.parent.onChildEvent(e,this)}play(){this.destroyed||(this.running=!0,this.started?this.timer||this.startRequestAnimate():(this.clearTimer(),this.start()),this.emitType(zt.PLAY))}pause(){this.destroyed||(this.running=!1,this.clearTimer(),this.emitType(zt.PAUSE))}stop(){this.destroyed||(this.complete(),this.emitType(zt.STOP))}seek(e,t){if(this.destroyed)return;const{delay:i}=this;let s;W(e)&&(e=Ri.number(e,this.duration+(t?i:0))),t&&(e-=i),e&&(e/=this.speed),e<0&&(s=-e,e=0),(!this.started||e<this.time||!e)&&this.start(!0),this.time=e,s||this.animate(0,!0),this.clearTimer(()=>{s?this.timer=setTimeout(()=>{this.timer=0,this.begin()},1e3*s):this.startRequestAnimate()}),this.emitType(zt.SEEK)}kill(e=!0,t){this.killStyle=t,this.destroy(e)}create(){const{target:e,frames:t,keyframes:i,config:s}=this,{length:n}=i,r=!(n>1)||this.join;let o,a,l,h,c,u=0,g=0;n>1&&(this.fromStyle={},this.toStyle={});for(let d=0;d<n;d++){if(a=i[d],h=a.style||a,o||(o=r?e:h),l={style:h,beforeStyle:{}},c=1,a.style){const{duration:f,autoDuration:_,delay:y,autoDelay:x,easing:m,swing:w,loop:v}=a;w&&(l.swing=$(w)?w:2,c=2*l.swing-1),v&&(l.loop=c=$(v)?v:2),f?(l.duration=f,u+=f*c,y&&(l.totalTime=f+y)):_&&(l.autoDuration=_,g+=_*c),y?(l.delay=y,u+=y*c):x&&(l.autoDelay=x,g+=x*c),m&&(l.easingFn=Gr.get(m))}if(!l.autoDuration&&M(l.duration)&&(n>1?d>0||r?g+=c:l.duration=0:l.duration=this.duration),n>1)this.setBefore(l,h,o);else{for(let f in h)l.beforeStyle[f]=e[f];this.fromStyle=l.beforeStyle,this.toStyle=l.style}o=h,t.push(l)}g?((this.duration<=u||!s||!s.duration)&&this.changeDuration(u+.2*g),this.allocateTime((this.duration-u)/g)):u&&this.changeDuration(u),this.emitType(zt.CREATED)}changeDuration(e){const{config:t}=this;this.config=t?Object.assign(Object.assign({},t),{duration:e}):{duration:e}}setBefore(e,t,i){const{fromStyle:s,toStyle:n,target:r}=this;for(let o in t)M(s[o])&&(s[o]=n[o]=t===i?i[o]:r[o]),e.beforeStyle[o]=M(i[o])?n[o]:i[o],n[o]=t[o]}allocateTime(e){let t,{frames:i}=this,{length:s}=i;for(let n=0;n<s;n++)t=i[n],M(t.duration)&&(t.duration=t.autoDuration?e*t.autoDuration:e),t.totalTime||(t.autoDelay&&(t.delay=t.autoDelay*e),t.delay&&(t.totalTime=t.duration+t.delay))}startRequestAnimate(){this.requestAnimateTime=Date.now(),this.requestAnimatePageTime=0,this.waitRequestRender||this.requestAnimate()}requestAnimate(){this.waitRequestRender=!0,A.requestRender(this.animate.bind(this))}animate(e,t){if(!t){if(this.waitRequestRender=!1,!this.running)return;let n;n=e&&this.requestAnimatePageTime?e-this.requestAnimatePageTime:Date.now()-this.requestAnimateTime,this.time+=n/1e3,this.requestAnimatePageTime=e,this.requestAnimateTime=Date.now()}const{duration:i}=this,s=this.time*this.speed;if(s<i){for(;s-this.playedTotalTime>this.frameTotalTime;)this.transition(1),this.mainReverse?this.reverseNextFrame():this.nextFrame();const n=this.nowReverse?0:this.frame.delay||0,r=s-this.playedTotalTime-n,o=this.frame.duration;if(r>o)this.transition(1);else if(r>=0){const a=o?r/o:1;this.transition(this.frame.easingFn?this.frame.easingFn(a):this.easingFn(a))}}else this.end();if(!t)if(s<i)this.requestAnimate();else{const{loop:n,loopDelay:r,swing:o}=this;if((n!==!1||o)&&(this.looped?this.looped++:this.looped=1,this.needLoop(this.looped,n,o)))return o&&(this.mainReverse=!this.mainReverse),void(r?this.timer=setTimeout(()=>{this.timer=0,this.begin()},r/this.speed*1e3):this.begin());this.complete()}}start(e){this.requestAnimateTime=1;const{reverse:t,jump:i}=this;if((t||this.mainReverse)&&(this.mainReverse=t),this.looped&&(this.looped=0),e)this.begin(!0);else{const{delay:s}=this;s?(i&&this.begin(!0),this.timer=setTimeout(()=>{this.timer=0,this.begin()},s/this.speed*1e3)):this.begin()}}begin(e){this.playedTotalTime=this.time=0,this.mainReverse?this.setTo():this.setFrom(),e||this.startRequestAnimate()}end(){this.mainReverse?this.setFrom():this.setTo()}complete(){this.requestAnimateTime=0,this.running=!1;const{endingStyle:e,killStyle:t}=this,i=t?{}:e;if(t)for(let s in e)s in t||(i[s]=e[s]);this.setStyle(i),this.clearTimer(),this.emitType(zt.COMPLETED)}setFrom(){this.nowIndex=0,this.setStyle(this.fromStyle)}
65setTo(){this.nowIndex=this.frames.length-1,this.setStyle(this.toStyle)}nextFrame(){if(this.needLoopFrame())return this.increaseTime();this.nowIndex+1>=this.frames.length||(this.increaseTime(),this.nowIndex++)}reverseNextFrame(){if(this.needLoopFrame())return this.increaseTime();this.nowIndex-1<0||(this.increaseTime(),this.nowIndex--)}transition(e){const{style:t,beforeStyle:i}=this.frame,s=this.nowReverse?t:i,n=this.nowReverse?i:t;if(e===0)this.setStyle(s);else if(e===1)this.setStyle(n);else{const{attrsMap:r,target:o}=this;let{betweenStyle:a}=this.frame;a||(a=this.frame.betweenStyle={}),Wt.setBetweenStyle(a,s,n,t,e,o,r),this.setStyle(a)}this.emitType(zt.UPDATE)}setStyle(e){const{target:t}=this;t&&e&&(this.style=e,t.__?t.set(e,!!this.isTemp&&"temp"):Object.assign(t,e))}increaseTime(){this.playedTotalTime+=this.frameTotalTime}needLoop(e,t,i){return!(this.needStopLoop(e,t)||this.needStopLoop(e,i,!0))}needStopLoop(e,t,i){return $(t)&&(!t||e>=(i?2*t-1:t))}needLoopFrame(){const{loop:e,swing:t}=this.frame;if(e||t){if(this.frameLooped?this.frameLooped++:this.frameLooped=1,t&&(this.frameReverse=!this.frameReverse),this.needLoop(this.frameLooped,e,t))return!0;this.frameLooped=this.frameReverse=void 0}return!1}clearTimer(e){this.timer&&(clearTimeout(this.timer),this.timer=0,e&&e())}destroy(e){this.destroyed||(super.destroy(),e&&!this.completed?this.stop():this.pause(),this.target=this.parent=this.config=this.frames=this.fromStyle=this.toStyle=this.style=this.killStyle=null,this.destroyed=!0)}};p([fe("ease")],jt.prototype,"easing",void 0),p([fe(0)],jt.prototype,"delay",void 0),p([fe(.2)],jt.prototype,"duration",void 0),p([fe("auto")],jt.prototype,"ending",void 0),p([fe(!1)],jt.prototype,"reverse",void 0),p([fe(!1)],jt.prototype,"swing",void 0),p([fe(!1)],jt.prototype,"loop",void 0),p([fe(0)],jt.prototype,"loopDelay",void 0),p([fe(1)],jt.prototype,"speed",void 0),p([fe(!0)],jt.prototype,"autoplay",void 0),p([fe()],jt.prototype,"join",void 0),p([fe()],jt.prototype,"jump",void 0),p([fe()],jt.prototype,"attrs",void 0),jt=p([ce(z1)],jt);let q0=class extends jt{get completed(){return this.list.every(e=>e.completed)}get endingStyle(){return this._endingStyle}constructor(e,t,i){super(e,null),this.list=[],this.updateList(t,i)}updateList(e,t){this.fromStyle={},this.toStyle={},this._endingStyle={},e||(e=this.list.filter(i=>{const{completed:s}=i;return s&&i.destroy(),!s})),this.list=e.map(i=>{const s=i.target?i:new jt(this.target,i,t);return s.parent=this,Object.assign(this.fromStyle,s.fromStyle),Object.assign(this.toStyle,s.toStyle),Object.assign(this._endingStyle,s.endingStyle),s})}play(){this.each(e=>e.play()),this.emitType(zt.PLAY)}pause(){this.each(e=>e.pause()),this.emitType(zt.PAUSE)}stop(){this.each(e=>e.stop()),this.emitType(zt.STOP)}seek(e,t){this.each(i=>i.seek(e,t)),this.emitType(zt.SEEK)}kill(e,t){this.each(i=>i.kill(e,t)),this.destroy()}onChildEvent(e,t){switch(e){case zt.COMPLETED:this.completed&&this.emitType(e);break;case zt.UPDATE:this.emitType(e)}}each(e){this.list.forEach(e)}destroy(e){const{list:t}=this;t.length&&(this.each(i=>i.destroy(e)),t.length=0)}};q0=p([ce(z1)],q0);const ap={transparent:"FFF0",aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"0FF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"0",blanchedalmond:"FFEBCD",blue:"00F",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"0FF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9",darkgreen:"006400",darkgrey:"A9",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"69",dimgrey:"69",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"F0F",gainsboro:"DC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"80",green:"008000",greenyellow:"ADFF2F",grey:"80",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3",lightgreen:"90EE90",lightgrey:"D3",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"789",lightslategrey:"789",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370DB",mediumseagreen:"3CB371",mediumslateblue:"7B68
65EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"D87093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",rebeccapurple:"639",red:"F00",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"F",whitesmoke:"F5",yellow:"FF0",yellowgreen:"9ACD32"},y3=/^rgb\((\d+),\s*(\d+),\s*(\d+)/i,m3=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)/i,x3=/^hsl\((\d+),\s*(\d+)%\s*,\s*(\d+)%/i,w3=/^hsla\((\d+),\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d*\.?\d+)/i,Ot=parseInt,xi=parseFloat,{round:Wa}=Math;let za={},Ha=0;function v3(e){let t,i,s,n=1;switch(e.length){case 9:t=Ot(e.slice(1,3),16),i=Ot(e.slice(3,5),16),s=Ot(e.slice(5,7),16),n=Ot(e.slice(7,9),16)/255;break;case 7:t=Ot(e.slice(1,3),16),i=Ot(e.slice(3,5),16),s=Ot(e.slice(5,7),16);break;case 5:t=Ot(e[1]+e[1],16),i=Ot(e[2]+e[2],16),s=Ot(e[3]+e[3],16),n=Ot(e[4]+e[4],16)/255;break;case 4:t=Ot(e[1]+e[1],16),i=Ot(e[2]+e[2],16),s=Ot(e[3]+e[3],16);break;case 3:t=i=s=Ot(e[1]+e[2],16);break;case 2:t=i=s=Ot(e[1]+e[1],16)}return{r:t,g:i,b:s,a:n}}const lp=1/6,hp=.5,C3=2/3,b3=1/3;function Xa(e,t,i){return i<0?i++:i>1&&i--,i<lp?e+6*(t-e)*i:i<hp?t:i<C3?e+(t-e)*(C3-i)*6:e}function k3(e,t,i,s=1){let n,r,o;if(e/=360,i/=100,(t/=100)===0)n=r=o=i;else{let a=i<.5?i*(1+t):i+t-i*t,l=2*i-a;n=Xa(l,a,e+b3),r=Xa(l,a,e),o=Xa(l,a,e-b3)}return{r:Wa(255*n),g:Wa(255*r),b:Wa(255*o),a:s}}ot.add("color"),Ct.object=function(e,t){let i,s=!M(t)&&t<1;if(G(e)){const n=za[e];if(n)i=Object.assign({},n);else{switch(e[0]){case"#":i=v3(e);break;case"R":case"r":e[4]==="("&&m3.test(e)?i=(function(r){const o=m3.exec(r);return{r:Ot(o[1]),g:Ot(o[2]),b:Ot(o[3]),a:xi(o[4])}})(e):e[3]==="("&&y3.test(e)&&(i=(function(r){const o=y3.exec(r);return{r:Ot(o[1]),g:Ot(o[2]),b:Ot(o[3]),a:1}})(e));break;case"H":case"h":e[4]==="("&&w3.test(e)?i=(function(r){const o=w3.exec(r);return k3(xi(o[1]),xi(o[2]),xi(o[3]),xi(o[4]))})(e):e[3]==="("&&x3.test(e)&&(i=(function(r){const o=x3.exec(r);return k3(xi(o[1]),xi(o[2]),xi(o[3]),1)})(e))}if(!i){const r=ap[e.toLowerCase()];r&&(i=v3("#"+r))}i&&(Ha++,Ha>1e4&&(za={},Ha=0),za[e]=Object.assign({},i))}}else W(e)&&(M(e.a)&&(e.a=1),s&&(e=Object.assign({},e)),i=e);return i||(i={r:255,g:255,b:255,a:1}),s&&(i.a*=t),i};const{round:cp}=Math,{fourNumber:B3}=_t,dp={fill:E3,stroke:E3,cornerRadius:(e,t,i)=>$(e)&&$(t)?de(e,t,i):(e=B3(e),t=B3(t),e.map((s,n)=>de(s,t[n],i))),text(e,t,i){if(G(e)&&G(t)){const s=e.length,n=t.length,r=de(s,n,i,1);return s<n?t.substring(0,r):e.substring(0,r)}return $(e)||$(t)?_t.float(de(e,t,i),Math.max(S3(e),S3(t))):t},boxStyle(e,t,i,s){e||(e={}),t||(t={});const n=Object.assign(Object.assign({},e),t);return Wt.setBetweenStyle(n,e,t,n,i,s),n},shadow:A3,innerShadow:A3},up={value:function(e,t,i){const s=$(e),n=$(t);return s&&n?e+(t-e)*i:n||s?de(e,t,i):e},number:de,color:K1,setBetweenStyle:function(e,t,i,s,n,r,o){let a,l,h;const{list:c,value:u}=Wt;for(let g in s)o&&!o[g]||(a=t[g],l=i[g],h=c[g]||u,a!==l&&(e[g]=h(a,l,n,r)))}};function S3(e){const t=String(e).split(".")[1];return t?t.length:0}function de(e,t,i,s){e||(e=0),t||(t=0);const n=e+(t-e)*i;return s?cp(n):n}function K1(e,t,i){e=Ct.object(e),t=Ct.object(t);const s=de(e.r,t.r,i,1)+","+de(e.g,t.g,i,1)+","+de(e.b,t.b,i,1),n=de(e.a,t.a,i);return n===1?"rgb("+s+")":"rgba("+s+","+n+")"}function E3(e,t,i){return G(e)&&G(t)?K1(e,t,i):t}function A3(e,t,i){return J(e)||J(t)?t:(t=t||{},{x:de((e=e||{}).x,t.x,i),y:de(e.y,t.y,i),blur:de(e.blur,t.blur,i),spread:de(e.spread,t.spread,i),color:K1(e.color||"#FFFFFF00",t.color||"#FFFFFF00",i),visible:t.visible,blendMode:t.blendMode,box:t.box||e.box})}ot.add("animate","color"),dt.canAnimate=!0,Object.assign(Wt.list,dp),Object.assign(Wt,up);const mr=C.prototype;C.addAttr("animation",void 0,function(e){return wt(e,t=>({set(i){this.__setAttr(t,i),this.leafer&&(this.killAnimate("animation"),i&&this.animate(i,void 0,"animation"))}}))}),C.addAttr("animationOut",void 0,mt),C.addAttr("transition",!0,mt),C.addAttr("transitionOut",void 0,mt),mr.set=function(e,t){e&&(t?t==="temp"?(this.lockNormalStyle=!0,Object.assign(this,e),this.lockNormalStyle=!1):this.animate(e,t):Object.assign(this,e))},mr.animate=function(e,t,i,s){if(M(e))return this.__animate;let n=J(e)&&!t&&i?new q0(this,e,s):new jt(this,e,t,s);this.killAnimate(i,n.toStyle);const r=this.__animate;return r&&(n instanceof q0?n.list.unshift(r):n=new q0(this,[r,n])),this.__animate=n},mr.killAnimate=function(e,t){const i=this.__animate;if(i){let s=!1;if(t&&!i.completed){i instanceof q0&&i.updateList();const{toStyle:n}=i;for(let r in t)if(r in n){s=!0;break}}else s=!0;s&&(i.kill(!0,t),this.__animate=null)}},mr.__runAnimation=function(e,t){this.animate(e==="in"?this.animation:this.animationOut,void 0,"animation"),t&&this.__animate.on(zt.COMPLETED,t)};const Ya=[.1488743389,.4333953941,.6794095682,.8650633666,.9739065285],gp=[.2955242247,.2692667193,.2190863625,.1494513491,.0666713443],{sqrt:T3}=Math,{getDerivative:F0}=ue,H0={getDistance(e,t,i,s,n,r,o,a,l=1){let h,c,u,g,d,f,_=0,y=l/2;for(let x=0;x<Ya.length;x++)h=y*(1+Ya[x]),c=y*(1-Ya[x]),u=F0(h,e,i,n,o),g=F0(h,t,s,r,a),d=F0(c,e,i,n,o),f=F0(c,t,s,r,a),_+=gp[x]*(T3(u*u+g*g)+T3(d*d+f*f));return _*y},getRotation(e,t,i,s,n,r,o,a,l){const h=F0(e,t,s,r,a),c=F0(e,i,n,o,l);return Math.atan2(c,h)/ht},getT(e,t,i,s,n,r,o,a,l,h,c=1){let u=0,g=1,d=e/t,f=c/t/3;if(d>=1)return 1;if(d<=0)return 0;for(;g-u>f;)pp(i,s,n,r,o,a,l,h,d)<e?u=d:g=d,d=(u+g)/2;return d},cut(e,t,i,s,n,r,o,a,l,h){const c=1-t,u=c*i+t*n,g=c*s+t*r,d=c*n+t*o,f=c*r+t*a,_=c*u+t*d,y=c*g+t*f,x=c*_+t*(c*d+t*(c*o+t*l)),m=c*y+t*(c*f+t*(c*a+t*h));e.push(Ut.C,u,g,_,y,x,m)}},{getDistance:pp}=H0,{M:xr,L:P0,C:wr,Z:vr}=Ut,{float:Ua}=_t,{set:wi,getAngle:R3,getDistanceFrom:L3,getDistancePoint:Cr}=R,js={},je={},Q0={transform(e,t){let i,s=0;const n=e.length;for(;s<n;)switch(i=e[s],i){case xr:case P0:Q0.transformPoints(e,t,s,1),s+=3;break;case wr:Q0.transformPoints(e,t,s,3),s+=7;break;case vr:s+=1}},transformPoints(e,t,i,s){for(let n=i+1,r=n+2*s;n<r;n+=2)js.x=e[n],js.y=e[n+1],q.toOuterPoint(t,js),e[n]=js.x,e[n+1]=js.y},getMotionPathData(e){let t,i,s,n,r,o=0,a=[],l=0,h=0,c=0,u=0,g=0;const d=e.length;for(;l<d;){switch(n=e[l],n){case xr:u=e[l+1],g=e[l+2];case P0:i=e[l+1],s=e[l+2],t=n===P0&&l>0?L3(h,c,i,s):0,h=i,c=s,l+=3;break;case wr:i=e[l+5],s=e[l+6],t=H0.getDistance(h,c,e[l+1],e[l+2],e[l+3],e[l+4],i,s),h=i,c=s,l+=7;break;case vr:r=!0,t=L3(h,c,u,g),l+=1;break;default:t=0}a.push(t),o+=t}return{total:o,segments:a,data:e,closed:r}},getDistancePoint(e,t,i,s){const{segments:n,data:r,total:o}=e;t=Ri.number(t,o),s&&(t+=s),t>o&&(t%=o),t<0&&(t=o+t);let a,l,h,c,u,g,d,f,_,y=0,x={},m=0,w=0,v=0,b=0,S=0,B=0;const P=r.length;for(;m<P;){switch(c=r[m],c){case xr:S=r[m+1],B=r[m+2];case P0:if(l=r[m+1],h=r[m+2],a=n[w],y+a>=t||!e.total){if(wi(x,l,h),m)return wi(je,v,b),Cr(je,x,t-y,!0),x.rotation=R3(je,x),x;{const U=Q0.getDistancePoint(e,i,i,s);return x.rotation=U.rotation,x}}v=l,b=h,m+=3;break;case wr:if(l=r[m+5],h=r[m+6],a=n[w],y+a>=t)return u=r[m+1],g=r[m+2],d=r[m+3],f=r[m+4],_=H0.getT(t-y,a,v,b,u,g,d,f,l,h,i),ue.getPointAndSet(_,v,b,u,g,d,f,l,h,x),x.rotation=H0.getRotation(_,v,b,u,g,d,f,l,h),x;v=l,b=h,m+=7;break;case vr:if(l=S,h=B,a=n[w],y+a>=t)return wi(je,v,b),wi(x,l,h),Cr(je,x,t-y,!0),x.rotation=R3(je,x),x;v=l,b=h,m+=1;break;default:a=0}w++,y+=a}return x},getDistancePath(e,t,i){const{segments:s,data:n}=e,r=[];t=Ri.number(t,e.total);let o,a,l,h,c,u,g,d,f,_,y=0,x={},m=0,w=0,v=0,b=0,S=0,B=0;const P=n.length;for(;m<P;){switch(c=n[m],c){case xr:S=n[m+1],B=n[m+2];case P0:if(l=n[m+1],h=n[m+2],o=s[w],y+o>t||!e.total)return m||(v=l,b=h),wi(je,v,b),wi(x,l,h),a=Ua(t-y),a&&(Cr(je,x,a,!0),r.push(c,x.x,x.y)),r;v=l,b=h,m+=3,r.push(c,v,b);break;case wr:if(u=n[m+1],g=n[m+2],d=n[m+3],f=n[m+4],l=n[m+5],h=n[m+6],o=s[w],y+o>t)return a=Ua(t-y),a&&(_=H0.getT(a,o,v,b,u,g,d,f,l,h,i),H0.cut(r,_,v,b,u,g,d,f,l,h)),r;v=l,b=h,m+=7,r.push(c,u,g,d,f,l,h);break;case vr:if(l=S,h=B,o=s[w],y+o>t)return wi(je,v,b),wi(x,l,h),a=Ua(t-y),a&&(Cr(je,x,a,!0),r.push(P0,x.x,x.y)),r;v=l,b=h,m+=1,r.push(c);break;default:o=0}w++,y+=o}return r}};function M0(e){return wt(e,t=>({set(i){this.__setAttr(t,i),this.__hasMotionPath=this.motionPath||!Xt(this.motion),this.__layout.matrixChanged||this.__layout.matrixChange()}}))}ot.add("motion-path"),Wt.register("motion",function(e,t,i,s){return W(e)&&(e=Ri.number(e,s.getMotionTotal())),W(t)&&(t=Ri.number(t,s.getMotionTotal())),Wt.number(e||0,t||0,i)}),Wt.register("motionRotation",function(e,t,i){return Wt.number(e,t,i)});const Vs=C.prototype,{updateMatrix:fp,updateAllMatrix:_p}=tt,{updateBounds:yp}=c0,{toVertical:mp}=R,D0={};function F3(e){const{motion:t,leaferIsCreated:i}=e;if(!Xt(t)){if(i&&(e.leafer.created=!1),e.motionPath){const s=S1(e);s.total&&(e.__.__pathForRender=Q0.getDistancePath(s,t,e.motionPrecision))}else{if(e.motionText)e.__updateMotionText();else{const s=e.getMotionPoint(t,e.motionAround);e.motionRotation===!1&&delete s.rotation,e.set(s)}e.__hasAutoLayout||(e.isBranch?(_p(e),yp(e,e)):fp(e))}i&&(e.leafer.created=!0)}}function Na(e){const{parent:t}=e;if(!e.motionPath&&t){const{children:i}=t;
65for(let s=0;s<i.length;s++)if(i[s].motionPath)return i[s]}return e}function S1(e){const t=e.__;return t.__pathForMotion?t.__pathForMotion:t.__pathForMotion=Q0.getMotionPathData(e.getPath(!0,!0))}function ja(e,t){return wt(e,i=>({set(s){this.__setAttr(i,s),this.leaferIsReady?t?dt.setStyleName(this,t,s):dt.set(this,s):this.__layout.stateStyleChanged=!0}}))}function Zi(e){return wt(e,t=>({set(i){this.__setAttr(t,i),this.__layout.stateStyleChanged=!0}}))}function io(e,t){if(t&&t!==!0)return t;if(!e.button){let{parent:i}=e;for(let s=0;s<2;s++)if(i){if(i.button)return i;i=i.parent}}return null}function _c(e,t){W(t)||(t=void 0),Z1(e,t,"in")}function yc(e,t){const{normalStyle:i}=e;W(t)||(t=void 0),i&&(t||(t=i),Z1(e,t,"out"))}C.addAttr("motionPath",void 0,M0),C.addAttr("motionPrecision",1,M0),C.addAttr("motion",void 0,M0),C.addAttr("motionAround",void 0,M0),C.addAttr("motionVertical","below",M0),C.addAttr("motionRotation",!0,M0),Vs.getMotionPath=function(){return Na(this)},Vs.getMotionPathData=function(){return S1(Na(this))},Vs.getMotionPoint=function(e,t,i=0,s=0,n){n||(n=Na(this));const r=S1(n);if(!r.total)return{};const o=Q0.getDistancePoint(r,e,n.motionPrecision,i),{motionRotation:a}=this;return $(a)&&(o.rotation+=a),t&&t!=="top-left"&&(Qt.toPoint(t,this.__layout.boxBounds,D0),R.set(D0,o.x-D0.x*this.scaleX,o.y-D0.y*this.scaleY),o.rotation&&R.rotate(D0,o.rotation,o),R.copy(o,D0)),s&&mp(o,o.rotation,s),q.toOuterPoint(n.localTransform,o),o},Vs.getMotionTotal=function(){return this.getMotionPathData().total},Vs.__updateMotionPath=function(){const e=this.__;if(this.__layout.resized&&e.__pathForMotion&&(e.__pathForMotion=void 0),this.motionPath){let t;const{children:i}=this.parent;for(let s=0;s<i.length;s++)t=i[s],Xt(t.motion)||t.__layout.matrixChanged||(t!==this&&t.__extraUpdate(),F3(t))}else F3(this)};const P3={};function Z1(e,t,i){const{normalStyle:s}=e;t||(t=P3),t.scale&&(_t.assignScale(t,t.scale),delete t.scale),t!==P3&&dt.canAnimate||(i=null);let n=!!i&&(function(a,l,h){let c=a==="in"?"transition":"transitionOut";return a==="out"&&Xt(h[c])&&Xt(l[c])&&(c="transition"),Xt(l[c])?h[c]:l[c]})(i,t,e);const r=n?(function(a,l){const h=M3(l,a),c=a.animate();return c&&M3(h,a,c.fromStyle),h})(e,t):void 0;dt.canAnimate&&E1(e)&&e.killAnimate("transition"),s&&e.set(s,"temp");const o=E1(e);if(o){const{animation:a}=o;if(a){const l=e.animate(a,void 0,"animation",!0);Object.assign(o,l.endingStyle),i!=="in"||t.animation!==a?l.kill():n=!1,delete o.animation}e.normalStyle=A1(o,e),e.set(o,"temp")}else e.normalStyle=void 0;if(n){const a=A1(r,e);e.set(r,"temp"),e.animate([r,a],n,"transition",!0)}e.__layout.stateStyleChanged=!1}function E1(e){let t;const i={},s=io(e),n=s?e.state||s.state:e.state,r=n&&e.states[n];r&&dt.isState(n,e,s)&&(t=$i(i,r));const o=i.selectedStyle||e.selectedStyle;o&&dt.isSelected(e,s)&&(t=$i(i,o));const a=i.placeholderStyle||e.placeholderStyle;if(a&&dt.isPlacehold(e,s)&&(t=$i(i,a)),dt.isDisabled(e,s)){const l=i.disabledStyle||e.disabledStyle;l&&(t=$i(i,l))}else{const l=i.focusStyle||e.focusStyle;l&&dt.isFocus(e,s)&&(t=$i(i,l));const h=i.hoverStyle||e.hoverStyle;h&&dt.isHover(e,s)&&(t=$i(i,h));const c=i.pressStyle||e.pressStyle;c&&dt.isPress(e,s)&&(t=$i(i,c))}return t?i:void 0}function A1(e,t,i,s){const n=i?e:{},r=i||e;for(let o in r)s&&dt.animateExcludes[o]||(n[o]=t[o]);return n}function M3(e,t,i){return A1(e,t,i,!0)}function $i(e,t){return Object.assign(e,t),!0}function qr(e,t){const i=e[t];i&&_c(e,i),e.button&&$1(e.children,t)}function T1(e,t,i){i||(i=e.states[t]),_c(e,i),e.button&&$1(e.children,null,t)}function $1(e,t,i){if(!e)return;let s,n;for(let r=0,o=e.length;r<o;r++){if(s=e[r],t){switch(n=!0,t){case"hoverStyle":dt.isHover(s)&&(n=!1);break;case"pressStyle":dt.isPress(s)&&(n=!1);break;case"focusStyle":dt.isFocus(s)&&(n=!1)}n&&qr(s,t)}else M(i)||T1(s,i);s.isBranch&&$1(s.children,t,i)}}function Kr(e,t){const i=e[t];i&&yc(e,i),e.button&&J1(e.children,t)}function R1(e,t,i){yc(e,i),e.button&&J1(e.children,null,t)}function J1(e,t,i){if(!e)return;let s;for(let n=0,r=e.length;n<r;n++)s=e[n],t?Kr(s,t):M(i)||R1(s,i),s.isBranch&&J1(s.children,t,i)}function br(e,t,i){let s;const n=t.leafer?t.leafer.interaction:null;if(n&&(s=n[e](t),!s&&i)){const r=io(t,i);r&&(s=n[e](r))}return s}function D3(e,t,i){let s=t[e];if(!s&&i){const n=io(t,i);n&&(s=n[e])}return s}ot.add("state"),dt.animateExcludes={animation:1,animationOut:1,transition:1,transitionOut:1,states:1,state:1,placeholder:1,normalStyle:1,hoverStyle:1,pressStyle:1,focusStyle:1,selectedStyle:1,disabledStyle:1,placeholderStyle:1},dt.isState=function(e,t,i){return(function(s,n,r){let o=n.states[s];if(!o&&r){const a=io(n,r);a&&(o=a.states[s])}return!!o})(e,t,i)},dt.isSelected=function(e,t){return D3("selected",e,t)},dt.isDisabled=function(e,t){return D3("disabled",e,t)},dt.isFocus=function(e,t){return br("isFocus",e,t)},dt.isHover=function(e,t){return br("isHover",e,t)},dt.isPress=function(e,t){return br("isPress",e,t)},dt.isPlacehold=function(e,t){return e.__.__isPlacehold},dt.isDrag=function(e,t){return br("isDrag",e,t)},dt.setStyleName=function(e,t,i){i?T1(e,t,e[t]):R1(e,t,e[t])},dt.set=function(e,t){const i=e.states[t];i?T1(e,t,i):R1(e,t,i)},dt.getStyle=E1,dt.updateStyle=Z1,dt.updateEventStyle=function(e,t){switch(t){case O.ENTER:qr(e,"hoverStyle");break;case O.LEAVE:Kr(e,"hoverStyle");break;case O.DOWN:qr(e,"pressStyle");break;case O.UP:Kr(e,"pressStyle")}};const Va=C.prototype;C.addAttr("selected",!1,ja,"selectedStyle"),C.addAttr("disabled",!1,ja,"disabledStyle"),C.addAttr("states",{},Zi),C.addAttr("state","",ja),C.addAttr("normalStyle",void 0,mt),C.addAttr("hoverStyle",void 0,Zi),C.addAttr("pressStyle",void 0,Zi),C.addAttr("focusStyle",void 0,Zi),C.addAttr("selectedStyle",void 0,Zi),C.addAttr("disabledStyle",void 0,Zi),C.addAttr("placeholderStyle",void 0,Zi),C.addAttr("button",!1,mt),Va.set=function(e,t){e&&(t?t==="temp"?(this.lockNormalStyle=!0,Object.assign(this,e),this.lockNormalStyle=!1):this.animate(e,t):Object.assign(this,e))},Va.focus=function(e=!0){this.waitLeafer(()=>{let{focusData:t}=this.app.interaction;e?(t&&t.focus(!1),t=this):t=null,this.app.interaction.focusData=t,e?qr(this,"focusStyle"):Kr(this,"focusStyle")}
65)},Va.updateState=function(){dt.updateStyle(this,void 0,"in")};const O3=X.prototype,Ga="text";xe(O3,Ga,Object.assign(Object.assign({},O1(O3,Ga)),{set(e){const t=this,i=t.text;t.__setAttr(Ga,e)&&(Ae(t),t.placeholderStyle&&t.placeholder&&(i===""||e==="")&&(t.__layout.stateStyleChanged=!0))}}));class xp extends Xe{get __isCanvas(){return!0}get __drawAfterFill(){return!0}get __boxStroke(){return!this.__pathInputed}setRobot(t){this._robot=t,this.__leaf.__updateRobot()}setAction(t){this._action=t,this.__leaf.__updateAction()}}let Ve=class extends C{get __tag(){return"Robot"}get nowFrame(){return this.robotFrames&&this.robotFrames[this.now]}constructor(e){super(e)}togglePlay(){this.running?this.pause():this.play()}play(){this.running=!0}pause(){this.running=!1}stop(){this.pause()}__updateRobot(){const{robot:e}=this;if(this.robotFrames=[],!e)return;let t=0;J(e)?e.forEach(i=>this.__loadRobot(i,t,t+=i.total||1)):this.__loadRobot(e,0,e.total)}__updateAction(){const e=this.actions[this.action];if(this.stop(),this.__timer&&clearTimeout(this.__timer),!M(e)){if($(e))this.now=e;else if(W(e)){const t=J(e),i=t?e:e.keyframes;this.__action=t?void 0:e;const{length:s}=i;if(s>1){const n=this.now=i[0],r=i[i.length-1];this.play(),this.__runAction(n,r)}else s&&(this.now=i[0])}}}__loadRobot(e,t,i){for(let n=t;n<i;n++)this.robotFrames.push(void 0);const s=Ee.get(e);s.ready?this.__createFrames(s,e,t,i):s.load(()=>this.__createFrames(s,e,t,i))}__createFrames(e,t,i,s){const{offset:n,size:r,total:o}=t,{width:a,height:l}=r&&($(r)?{width:r,height:r}:r)||(o>1?this:e);let h=n?n.x:0,c=n?n.y:0;for(let u=i;u<s;u++)this.robotFrames[u]={view:e.view,x:h,y:c,width:a,height:l},h+a>=e.width?(h=0,c+=l):h+=a;this.__updateRobotBounds(),this.forceRender(),this.emitEvent(new We(We.LOADED,{image:e}))}__runAction(e,t){let{FPS:i,loop:s,__action:n}=this;n&&(n.FPS&&(i=n.FPS),M(n.loop)||(s=n.loop)),this.__timer=setTimeout(()=>{if(this.running){if(this.now===t){if(!s)return this.stop();this.now=e}else this.now++;this.__updateRobotBounds()}this.__runAction(e,t)},1e3/i)}__updateRobotBounds(){const{nowFrame:e}=this;if(e){const t=this.__,i=e.width/t.pixelRatio,s=e.height/t.pixelRatio;t.width===i&&t.height===s||this.forceUpdate(),t.__naturalWidth=i,t.__naturalHeight=s}}__drawContent(e,t){const{nowFrame:i}=this,{width:s,height:n}=this.__;i&&e.drawImage(i.view,i.x,i.y,i.width,i.height,0,0,s,n)}destroy(){this.robotFrames&&(this.robotFrames=null),super.destroy()}};p([Tt(xp)],Ve.prototype,"__",void 0),p([Z()],Ve.prototype,"robot",void 0),p([mt()],Ve.prototype,"actions",void 0),p([mt("")],Ve.prototype,"action",void 0),p([Oe(0)],Ve.prototype,"now",void 0),p([mt(12)],Ve.prototype,"FPS",void 0),p([mt(!0)],Ve.prototype,"loop",void 0),Ve=p([Rt()],Ve),ot.add("robot");const{Yes:wp,NoAndSkip:vp,YesAndSkip:Cp}=Ja,I3={},W3={},z3={};class bp{constructor(t,i){this.methods={id:(n,r)=>n.id===r?(this.target&&(this.idMap[r]=n),1):0,innerId:(n,r)=>n.innerId===r?(this.target&&(this.innerIdMap[r]=n),1):0,className:(n,r)=>n.className===r?1:0,tag:(n,r)=>n.__tag===r?1:0,tags:(n,r)=>r[n.__tag]?1:0},this.idMap={},this.innerIdMap={};const s=t&&t.app;s&&(s.idMap?this.idMap=s.idMap:s.idMap=this.idMap,s.innerIdMap?this.innerIdMap=s.innerIdMap:s.innerIdMap=this.innerIdMap),(this.target=t)&&this.__listenEvents()}getBy(t,i,s,n){switch(typeof t){case"number":const r=this.getByInnerId(t,i);return s?r:r?[r]:[];case"string":switch(t[0]){case"#":I3.id=t.substring(1),t=I3;break;
65case".":W3.className=t.substring(1),t=W3;break;default:z3.tag=t,t=z3}case"object":if(M(t.id)){if(t.tag){const{tag:o}=t,a=J(o);return this.getByMethod(a?this.methods.tags:this.methods.tag,i,s,a?K.toMap(o):o)}return this.getByMethod(this.methods.className,i,s,t.className)}{const o=this.getById(t.id,i);return s?o:o?[o]:[]}case"function":return this.getByMethod(t,i,s,n)}}getByInnerId(t,i){return this.innerIdMap[t]||(this.eachFind(this.toChildren(i),this.methods.innerId,null,t),this.findLeaf)}getById(t,i){const s=this.idMap[t];return s&&tt.hasParent(s,i||this.target)?s:(this.eachFind(this.toChildren(i),this.methods.id,null,t),this.findLeaf)}getByClassName(t,i){return this.getByMethod(this.methods.className,i,!1,t)}getByTag(t,i){return this.getByMethod(this.methods.tag,i,!1,t)}getByMethod(t,i,s,n){const r=s?null:[];return this.eachFind(this.toChildren(i),t,r,n),r||this.findLeaf}eachFind(t,i,s,n){let r,o;for(let a=0,l=t.length;a<l;a++){if(r=t[a],o=i(r,n),typeof o=="boolean"&&(o=o?1:0),o===wp||o===Cp){if(!s)return void(this.findLeaf=r);s.push(r)}r.isBranch&&o<vp&&this.eachFind(r.children,i,s,n)}}toChildren(t){return this.findLeaf=null,[t||this.target]}__onRemoveChild(t){const{id:i,innerId:s}=t.child;this.idMap[i]&&delete this.idMap[i],this.innerIdMap[s]&&delete this.innerIdMap[s]}__checkIdChange(t){if(t.attrName==="id"){const i=t.oldValue;this.idMap[i]&&delete this.idMap[i]}}__listenEvents(){this.__eventIds=[this.target.on_(Mt.REMOVE,this.__onRemoveChild,this),this.target.on_(Ie.CHANGE,this.__checkIdChange,this)]}__removeListenEvents(){this.target.off_(this.__eventIds),this.__eventIds.length=0}destroy(){const{__eventIds:t}=this;t&&t.length&&(this.__removeListenEvents(),this.innerIdMap={},this.idMap={}),this.findLeaf=null}}const H3=C.prototype;function X3(e){return e.leafer?e.leafer.selector:A.selector||(A.selector=bt.selector())}H3.find=function(e,t){return X3(this).getBy(e,this,!1,t)},H3.findOne=function(e,t){return X3(this).getBy(e,this,!0,t)},ot.add("find"),bt.finder=function(e,t){return new bp(e,t)},tt.cacheId=function(e){const{leafer:t,id:i}=e;i&&(t.app.idMap[i]=e),t.cacheInnerId&&(t.app.innerIdMap[e.innerId]=e)};const{setPoint:kp,addPoint:Bp,toBounds:Sp}=rn,Ep={syncExport(e,t,i){let s;Bi.running=!0;try{const n=Se.fileType(t),r=t.includes(".");i=Se.getExportOptions(i);const{toURL:o}=A,{download:a}=A.origin;if(n==="json")r&&a(o(JSON.stringify(e.toJSON(i.json)),"text"),t),s={data:!!r||e.toJSON(i.json)};else if(n==="svg")r&&a(o(e.toSVG(),"svg"),t),s={data:!!r||e.toSVG()};else{let l,h,c=1,u=1;const{worldTransform:g,isLeafer:d,leafer:f,isFrame:_}=e,{slice:y,clip:x,trim:m,screenshot:w,padding:v,onCanvas:b}=i,S=M(i.smooth)?!f||f.config.smooth:i.smooth,B=i.contextSettings||(f?f.config.contextSettings:void 0),P=d&&w&&M(i.fill)?e.fill:i.fill,U=Se.isOpaqueImage(t)||P,Y=new Kt;if(w)l=w===!0?d?f.canvas.bounds:e.worldRenderBounds:w;else{let Te=i.relative||(d?"inner":"local");switch(c=g.scaleX,u=g.scaleY,Te){case"inner":Y.set(g);break;case"local":Y.set(g).divide(e.localTransform),c/=e.scaleX,u/=e.scaleY;break;case"world":c=1,u=1;break;case"page":Te=f||e;default:Y.set(g).divide(e.getTransform(Te));const d0=Te.worldTransform;c/=c/d0.scaleX,u/=u/d0.scaleY}l=e.getBounds("render",Te)}const T={scaleX:1,scaleY:1};_t.getScaleData(i.scale,i.size,l,T);let z=i.pixelRatio||1,{x:E,y:I,width:N,height:V}=new nt(l).scale(T.scaleX,T.scaleY);x&&(E+=x.x,I+=x.y,N=x.width,V=x.height,x.rotation&&Y.rotateOfInner({x:E,y:I},-x.rotation));const et={exporting:!0,matrix:Y.scale(1/T.scaleX,1/T.scaleY).invert().translate(-E,-I).withScale(1/c*T.scaleX,1/u*T.scaleY)};let pt,st=bt.canvas({width:Math.floor(N),height:Math.floor(V),pixelRatio:z,smooth:S,contextSettings:B});y&&(pt=e,pt.__worldOpacity=0,e=f||e,et.bounds=st.bounds),st.save();const ge=_&&!M(P),Zt=e.get("fill");if(ge&&(e.fill=""),A.render(e,st,et),ge&&(e.fill=Zt),st.restore(),pt&&pt.__updateWorldOpacity(),m){h=(function(ui){const{width:u0,height:un}=ui.view,{data:t2}=ui.context.getImageData(0,0,u0,un);let gn,no,hs,ro=0;for(let ao=0;ao<t2.length;ao+=4)t2[ao+3]!==0&&(gn=ro%u0,no=(ro-gn)/u0,hs?Bp(hs,gn,no):kp(hs={},gn,no)),ro++;const oo=new nt;return hs&&(Sp(hs,oo),oo.scale(1/ui.pixelRatio).ceil()),oo})(st);const Te=st,{width:d0,height:so}=h,ls={x:0,y:0,width:d0,height:so,pixelRatio:z};st=bt.canvas(ls),st.copyWorld(Te,h,ls),Te.destroy()}if(v){const[Te,d0,so,ls]=_t.fourNumber(v),ui=st,{width:u0,height:un}=ui;st=bt.canvas({width:u0+ls+d0,height:un+Te+so,pixelRatio:z}),st.copyWorld(ui,ui.bounds,{x:ls,y:Te,width:u0,height:un}),ui.destroy()}U&&st.fillWorld(st.bounds,P||"#FFFFFF","destination-over"),b&&b(st),s={data:t==="canvas"?st:st.export(t,i),width:st.pixelWidth,height:st.pixelHeight,renderBounds:l,trimBounds:h};const Qe=f&&f.app;Qe&&Qe.canvasManager&&Qe.canvasManager.clearRecycled()}}catch(n){s={data:"",error:n}}return Bi.running=!1,s},export(e,t,i){return Bi.running=!0,(function(s){return qa||(qa=new e1),new Promise(n=>{qa.add(()=>l0(this,void 0,void 0,function*(){return yield s(n)}),{parallel:!1})})})(s=>new Promise(n=>{const r=()=>l0(this,void 0,void 0,function*(){if(!li.isComplete)return A.requestRender(r);const a=Bi.syncExport(e,t,i);a.data instanceof Promise&&(a.data=yield a.data),s(a),n()});e.updateLayout(),mc(e);const{leafer:o}=e;o?o.waitViewCompleted(r):r()}))}};let qa;function mc(e){e.__.__needComputePaint&&e.__.__computePaint(),e.isBranch&&e.children.forEac
65h(t=>mc(t))}const kr=D1.prototype,Y3=rt.get("@leafer-in/export");kr.export=function(e,t){const{quality:i,blob:s}=Se.getExportOptions(t);return e.includes(".")?this.saveAs(e,i):s?this.toBlob(e,i):this.toDataURL(e,i)},kr.toBlob=function(e,t){return new Promise(i=>{A.origin.canvasToBolb(this.view,e,t).then(s=>{i(s)}).catch(s=>{Y3.error(s),i(null)})})},kr.toDataURL=function(e,t){return A.origin.canvasToDataURL(this.view,e,t)},kr.saveAs=function(e,t){return new Promise(i=>{A.origin.canvasSaveAs(this.view,e,t).then(()=>{i(!0)}).catch(s=>{Y3.error(s),i(!1)})})},ot.add("export"),Object.assign(Bi,Ep),C.prototype.export=function(e,t){return Bi.export(this,e,t)},C.prototype.syncExport=function(e,t){return Bi.syncExport(this,e,t)},ot.add("filter"),Object.assign(X0,{list:{},register(e,t){X0.list[e]=t},apply(e,t,i,s,n,r){let o;e.forEach(a=>{o=X0.list[a.type],o&&o.apply(a,t,i,s,n,r)})},getSpread(e){let t,i=0;return e.forEach(s=>{t=X0.list[s.type],t&&(i+=t.getSpread(s))}),i}}),ot.add("bright"),C.addAttr("bright",!1,i1);const Ap={theme:"light",style:{dragBoundsType:"outer",strokeAlign:"center",strokeScaleFixed:"zoom-in",width:6,height:6,opacity:.5,cornerRadius:3,hoverStyle:{opacity:.6},pressStyle:{opacity:.66}},size:6,endsMargin:2,sideMargin:2,minSize:10,scaleFixed:"zoom-in",scrollType:"both",hideOnActionEnd:"hover"},Tp=new nt,{float:Br}=_t,{clone:U3,assign:N3}=K;class tn extends at{get canUse(){return this.target.hasScroller}constructor(t){super(),this.targetWorldBounds=new nt,this.viewportBounds=new nt,this.contentBounds=new nt,this.scrollXBounds=new nt,this.scrollYBounds=new nt,this.target=t,this.config=U3(Ap),this.updateConfig(),this.__listenEvents(),t.waitLeafer(()=>{this.parent=t,this.__bindLeafer(t.leafer)}),this.mergedConfig.hideOnActionEnd&&(this.opacity=0)}static registerTheme(t,i){Gs.themeMap[t]=i}static getTheme(t){return t&&Gs.themeMap[t]}static hasTheme(t){return t&&!!Gs.themeMap[t]}updateConfig(){const{scrollConfig:t}=this.target,i=Gs.getTheme(t&&Gs.hasTheme(t.theme)&&t.theme||this.config.theme),s=this.mergedConfig=U3(this.config);N3(s,i),t&&N3(s,t),this.updateStyle(s.style)}updateStyle(t){this.scrollXBar||this.addMany(this.scrollXBar=new k,this.scrollYBar=new k);const{scrollXBar:i,scrollYBar:s}=this;i.set(t),s.set(t),i.draggable="x",s.draggable="y"}update(t=!0){if(this.dragScrolling)return;const{target:i,targetOverflow:s,targetWorldBounds:n,viewportBounds:r,contentBounds:o}=this,a=i.__layout,{overflow:l}=i.__,{childrenRenderBounds:h}=a,{boxBounds:c,worldBoxBounds:u}=a,g=t&&s===l&&n.isSame(u),d=!a.scrollConfigChanged||(this.updateConfig(),a.scrollConfigChanged=!1),f=Tp.set(r).add(h);if(g&&d&&o.isSame(f))return;this.targetOverflow=l,r.set(c),n.set(u),o.set(f);const{scrollXBar:_,scrollYBar:y}=this,{size:x,endsMargin:m,minSize:w}=this.mergedConfig,{width:v,height:b}=r;this.contentRealX=o.x-i.scrollX,this.contentRealY=o.y-i.scrollY,this.ratioX=r.width/o.width,this.ratioY=r.height/o.height;const S=x+2*m+w;_.visible=Br(o.width)>Br(v)&&l!=="y-scroll"&&v>S,y.visible=Br(o.height)>Br(b)&&l!=="x-scroll"&&b>S,this.updateScrollBar()}updateScrollBar(){const{target:t,viewportBounds:i,contentBounds:s,ratioX:n,ratioY:r,scrollXBar:o,scrollYBar:a,scrollXBounds:l,scrollYBounds:h}=this;let{size:c,cornerRadius:u,endsMargin:g,sideMargin:d,minSize:f,scaleFixed:_,scrollType:y}=this.mergedConfig;const x=_?t.getClampRenderScale():1;if(g/=x,d/=x,c/=x,M(u)&&(u=c/2),o.visible){l.set(i).shrink([g,a.visible?c+d:g,d,g]);const m=this.scrollRatioX=l.width/s.width;o.set({x:l.x-s.x*m,y:l.maxY-c,width:Math.max(l.width*n,f),height:c,cornerRadius:u,dragBounds:l,hittable:y!=="move"})}if(a.visible){h.set(i).shrink([g,d,o.visible?c+d:g,g]);const m=this.scrollRatioY=h.height/s.height;a.set({x:h.maxX-c,y:h.y-s.y*m,width:c,height:Math.max(h.height*r,f),cornerRadius:u,dragBounds:h,hittable:y!=="move"})}this.x=-this.target.scrollX,this.y=-this.target.scrollY,tt.updateAllMatrix(this),c0.updateBounds(this),tt.updateAllChange(this)}onDrag(t){if(this.mergedConfig.scrollType==="move")return;this.dragScrolling=!0;const{scrollXBar:i,scrollYBar:s,target:n,scrollXBounds:r,scrollYBounds:o}=this;t.current===i?n.scrollX=-((i.x-r.x)/this.scrollRatioX+this.contentRealX):n.scrollY=-((s.y-o.y)/this.scrollRatioY+this.contentRealY)}onDragEnd(){this.mergedConfig.scrollType!=="move"&&(this.dragScrolling=!1)}onMove(t){if(!this.canUse)return;this.onEnter();const{scrollType:i,stopDefault:s}=this.mergedConfig;if(i==="drag")return;const{viewportBounds:n,contentBounds:r,scrollXBar:o,scrollYBar:a}=this;if(o.visible||a.visible){const l=t.getInnerMove(this.target);let h;ss.getValidMove(r,n,"inner",l,!0),l.x&&o.visible&&(this.target.scrollX+=l.x,h=!0),l.y&&a.visible&&(this.target.scrollY+=l.y,h=!0),(h||s)&&t.stop(),s&&t.stopDefault()}}onMoveEnd(t){this.canUse&&(this.target.hit(t)||this.onLeave())}onEnter(){this.canUse&&(clearTimeout(this.hideTimer),this.killAnimate(),this.opacity=1)}onLeave(){this.canUse&&(clearTimeout(this.hideTimer),this.mergedConfig.hideOnActionEnd&&(this.hideTimer=setTimeout(()=>{this.set({opacity:0}
65,ot.has("animate"))},600)))}onResize(){this.canUse&&this.update()}__listenEvents(){const{scrollXBar:t,scrollYBar:i,target:s}=this;this.__eventIds=[t.on_(j.DRAG,this.onDrag,this),t.on_(j.END,this.onDragEnd,this),i.on_(j.DRAG,this.onDrag,this),i.on_(j.END,this.onDragEnd,this),s.on_(O.ENTER,this.onEnter,this),s.on_(O.LEAVE,this.onLeave,this),s.on_(gt.BEFORE_MOVE,this.onMove,this),s.on_(gt.END,this.onMoveEnd,this),s.on_(Ze.WORLD,this.onResize,this),s.on_(Mt.DESTROY,this.destroy,this)]}__removeListenEvents(){this.off_(this.__eventIds)}destroy(){if(!this.destroyed){this.__removeListenEvents();const{target:t}=this;t.scroller=t.topChildren=t.hasScroller=void 0,this.target=this.config=null,super.destroy()}}}tn.themeMap={};const Gs=tn;ot.add("scroller");const Rp=k.prototype;k.addAttr("scrollConfig",void 0,function(e){return wt(e,t=>({set(i){this.__setAttr(t,i)&&(this.__layout.scrollConfigChanged=!0,Ae(this))}}))}),Rp.__checkScroll=function(e){e&&this.isOverflow?(this.scroller||(this.scroller=new tn(this),this.topChildren||(this.topChildren=[]),this.topChildren.push(this.scroller)),this.hasScroller=!0):this.hasScroller&&!this.scroller.dragScrolling&&(this.hasScroller=void 0,this.scroller.update())},tn.registerTheme("light",{style:{fill:"black"}}),tn.registerTheme("dark",{style:{fill:"white"}});const{stintSet:j3}=K,{scale:Lp}=q,{copyAndSpread:Fp}=L,{getScaleFixedData:Pp}=_t;tt.updateScaleFixedWorld=function(e){const{__world:t,__:i}=e,{scaleX:s,scaleY:n}=Pp(t,i.scaleFixed);s!==1&&(Lp(t,s,n),t.scaleX*=s,t.scaleY*=n)},tt.updateOuterBounds=function(e){const t=e.__layout,{localRenderBounds:i}=t,s=t.localOuterBounds||(t.localOuterBounds={}),{width:n,height:r}=i,o=t.outerScale-1;Fp(s,i,[r*o,n*o]),e.parent&&e.parent.__layout.renderChange()},ot.add("scale-fixed"),C.addAttr("scaleFixed",void 0,function(e){return wt(e,t=>({set(i){if(this.__setAttr(t,i)){const s=this.__layout;Ae(this),$(i)||(i=i?1:0),j3(s,"scaleFixed",i),j3(s,"outerScale",i?1/i:0),!s.outerScale&&s.localOuterBounds&&(s.localOuterBounds=void 0)}}}))});class Mp extends Mi{}const Dp=Bt.prototype;let Ji=class extends k{get __tag(){return"EllipseBox"}__updatePath(){}};p([Tt(Mp)],Ji.prototype,"__",void 0),p([At(0)],Ji.prototype,"innerRadius",void 0),p([At(0)],Ji.prototype,"startAngle",void 0),p([At(0)],Ji.prototype,"endAngle",void 0),p([Fe(Dp.__updatePath)],Ji.prototype,"__updatePath",null),Ji=p([h0(),Rt()],Ji);class Op extends Mi{get __usePathBox(){return this.points||this.__pathInputed}}const Ip=Be.prototype;let Qi=class extends k{get __tag(){return"PolygonBox"}__updatePath(){}};p([Tt(Op)],Qi.prototype,"__",void 0),p([At(3)],Qi.prototype,"sides",void 0),p([At()],Qi.prototype,"points",void 0),p([At(0)],Qi.prototype,"curve",void 0),p([Fe(Ip.__updatePath)],Qi.prototype,"__updatePath",null),Qi=p([h0(),Rt()],Qi);class Wp extends Mi{}const zp=ki.prototype;let O0=class extends k{get __tag(){return"StarBox"}__updatePath(){}};p([At(5)],O0.prototype,"corners",void 0),p([At(.382)],O0.prototype,"innerRadius",void 0),p([Tt(Wp)],O0.prototype,"__",void 0),p([Fe(zp.__updatePath)],O0.prototype,"__updatePath",null),O0=p([h0(),Rt()],O0);class Hp extends Mi{}let Sr=class extends k{get __tag(){return"PathBox"}};p([Tt(Hp)],Sr.prototype,"__",void 0),p([ln("center")],Sr.prototype,"strokeAlign",void 0),Sr=p([Rt()],Sr);class Xp extends Mi{get __urlType(){return"image"}setUrl(t){this.__setImageFill(t),this._url=t}__setImageFill(t){this.fill=t?{type:this.__urlType,mode:"stretch",url:t}:void 0}__getData(){const t=super.__getData();return t.url&&delete t.fill,t}__getInputData(t,i){const s=super.__getInputData(t,i);return s.url&&delete s.fill,s}}let Er=class extends k{get __tag(){return"ImageBox"}get ready(){const{image:e}=this;return e&&e.ready}get image(){const{fill:e}=this.__;return J(e)&&e[0].image}get __useSelfBox(){return!0}};function xc(e,t,i,s,n,r,o){const a=s-t,l=n-i,h=r-t,c=o-i,u=Math.sqrt(a*a+l*l),g=Math.sqrt(h*h+c*c);if(u<.001||g<.001)return 0;const d=(a*h+l*c)/(u*g),f=Math.max(-.99999,Math.min(.99999,d));let _=e*Math.sqrt((1-f)/(1+f));const y=Math.min(u/2,g/2);return Math.min(_,y)}function wc(e,t,i,s,n,r,o,a,l){if(e<=0)return 0;const h=Math.sqrt(Math.pow(a-t,2)+Math.pow(l-i,2));if(e>=h)return .5;const c=3*(s-t),u=3*(n-i);let g=Math.sqrt(c*c+u*u);g<1e-6&&(g=h||1);let d=Math.min(.5,e/g);const f={x:0,y:0};for(let _=0;_<5;_++){ue.getPointAndSet(d,t,i,s,n,r,o,a,l,f);const y=f.x-t,x=f.y-i,m=Math.sqrt(y*y+x*x);if(m<1e-6){d*=1.5;continue}const w=(y*ue.getDerivative(d,t,s,r,a)+x*ue.getDerivative(d,i,n,o,l))/m;if(Math.abs(w)<1e-6)break;const v=d-(m-e)/w,b=Math.max(0,Math.min(.6,v));if(Math.abs(b-d)<1e-5){d=b;break}d=b}return Math.max(0,Math.min(.5,d))}p([Tt(Xp)],Er.prototype,"__",void 0),p([Z("")],Er.prototype,"url",void 0),Er=p([Rt()],Er),ot.add("box");const{M:Ci,L:bi,C:qe,Z:n0}=Ut,{abs:Yp}=Math,{getCenterX:Up,getCenterY:Np}=R,{arcTo:$s}=Pi;function jp(e,t){let i,s,n,r;const o=e.length;for(;t<o;)switch(i=e[t],i){case Ci:return;case bi:n=e[t+1],r=e[t+2],t+=3;break;case qe:n=e[t+5],r=e[t+6],t+=7;break;case n0:return{x:n,y:r};default:s=an[i],t+=s}}function V3(e,t,i,s,n,r,o,a,l,h,c,u,g){let d=a,f=l;Ei(a,r)&&Ei(l,o)&&(d=h,f=c,Ei(h,r)&&Ei(c,o)&&(d=u,f=g));const _=wc(xc(i,r,o,s,n,d,f),r,o,a,l,h,c,u,g),y=ue.cut(_,r,o,a,l,h,c,u,g),{left:x,right:m}=y;return x&&m&&(e[t+1]=m[0],e[t+2]=m[1],e[t+3]=m[2],e[t+4]=m[3]),y}function G3(e,t,i,s,n,r,o,a,l,h,c,u,g){let d=o,f=a;Ei(d,l)&&Ei(f,h)&&(d=n,f=r,Ei(d,l)&&Ei(f,h)&&(d=i,f=s));const _=wc(xc(t,l,h,d,f,c,u),l,h,o,a,n,r,i,s),{left:y,right:x}=ue.cut(1-_,i,s,n,r,o,a,l,h);y&&x?(e.push(qe,y[0],y[1],y[2],y[3],y[4],y[5]),$s(e,l,h,c,u,t,y[4],y[5],g)):e.push(qe,n,r,o,a,l,h)}function Ei(e,t){return Yp(e-t)<.01}R4.smooth=function(e,t,i){const s=e.radius;let n,r,o;e=(function(z){let E,I=0;const N=z.length;for(;I<N;)switch(E=z[I],E){case Ci:case bi:I+=3;break;case qe:I+=7;break;case n0:I+=1;break;default:return!0}return!1})(e)?Fi.toCanvasData(e,!0):[...e];let a,l,h,c,u,g,d,f=0,_=0,y=0,x=0,m=0,w=0,v=0,b=0,S=0,B=0,P=0;J(t)&&(t=t[0]||0);const U=e.length,Y=U===9,T=[];for(;f<U;){switch(n=e[f],a=s?M(s[_])?t:s[_]:t,n){case Ci:m=B=e[f+1],w=P=e[f+2],v=a,f+=3;const z=jp(e,f);switch(e[f]){case bi:b=e[f+1],S=e[f+2],Y?T.push(Ci,m,w):z?T.push(Ci,Up(m,b),Np(w,S)):T.push(Ci,m,w);break;case qe:if(z){const{left:E,right:I}=V3(e,f,a,z.x,z.y,m,w,e[f+1],e[f+2],e[f+3],e[f+4],e[f+5],e[f+6]);if(E&&I){T.push(Ci,b=E[4],S=E[5]);break}}default:T.push(Ci,b=m,S=w)}break;case bi:switch(y=e[f+1],x=e[f+2],f+=3,e[f]){case bi:$s(T,y,x,e[f+1],e[f+2],a,B,P,Y);break;case qe:const{left:E,right:I}=V3(e,f,a,B,P,y,x,e[f+1],e[f+2],e[f+3],e[f+4],e[f+5],e[f+6]);E&&I?$s(T,y,x,E[4],E[5],a,B,P,Y):T.push(bi,y,x);break;case n0:$s(T,y,x,m,w,a,B,P,Y);break;default:T.push(bi,y,x)}B=y,P=x;break;case qe:switch(l=e[f+1],h=e[f+2],c=e[f+3],u=e[f+4],y=e[f+5],x=e[f+6],f+=7,e[f]){case bi:g=e[f+1],d=e[f+2],G3(T,a,B,P,l,h,c,u,y,x,g,d,Y);break;case qe:T.push(qe,l,h,c,u,y,x);break;case n0:g=m,d=w,G3(T,a,B,P,l,h,c,u,y,x,g,d,Y);break;default:T.push(qe,l,h,c,u,y,x)}B=y,P=x;break;case n0:r!==n0&&($s(T,m,w,b,S,v,B,P,Y),T.push(n0)),f+=1;break;default:o=an[n];for(let E=0;E<o;E++)T.push(e[f+E]);f+=o}r=n,_++}return T},ot.add("corner"),ot.add("bg-runner");const L1={disabled:!1,maxFPS:60};let dn=[],Ka=!1,Za=!1,rs=!1,Ai=null;function Q1(e){const t=dn.splice(0);for(const i of t)i(e)}function vc(){Ka||(Ka=!0,window.requestAnimationFrame(e=>
65{Ka=!1,Q1(e),dn.length&&vc()})),Ai&&rs&&(Ai.postMessage({action:"stop"}),rs=!1)}function Cc(){Ai?rs||(Ai.postMessage({action:"start",interval:1e3/L1.maxFPS}),rs=!0):Za||(Za=!0,setTimeout(()=>{Za=!1,Q1(performance.now()),dn.length&&Cc()},1e3/L1.maxFPS))}function q3(){L1.disabled||!document.hidden?vc():(Ai||typeof Worker>"u"||(Ai=new Worker(URL.createObjectURL(new Blob([` 66 let timerId = null 67 self.onmessage = e => { 68 if (e.data.action === 'start') { 69 if (!timerId) { 70 timerId = setInterval(() => postMessage(performance.now()), e.data.interval || 16) 71 } 72 } else if (e.data.action === 'stop') { 73 if (timerId) { 74 clearInterval(timerId) 75 timerId = null 76 } 77 } 78 } 79 `],{type:"application/javascript"}))),Ai.onmessage=e=>{Q1(e.data),!dn.length&&rs&&(Ai.postMessage({action:"stop"}),rs=!1)}),Cc())}document.addEventListener("visibilitychange",q3),A.requestRender=function(e){dn.push(e),q3()};const Vp={},Gp=Vp;class D{get tag(){return"Case"}constructor(t,i){if(this.colors=["#FF4B4B","#FF4A2C","#FEB027","#FFE04B","#79CB4D","#4DCB71","#279B80","#279CFE","#FF4B4B"],this.config={x:0,y:0,size:100,space:20,style:{draggable:!0}},this.view=t,i&&(K.assign(this.config,i),i.count)){let s=0;i.list&&i.list.length&&(s=i.list[0]),this.config.list=[];for(let n=s;n<s+i.count;n++)this.config.list.push(n)}this.run(),t.on(Mt.DESTROY,()=>{this.view=this.config=this.colors=null})}getUI(t,i){}getData(){return[]}run(){let t,{x:i,y:s}=this.config;const{size:n,space:r,style:o}=this.config,{colors:a}=this;this.getData().forEach((l,h)=>{this.allowIndex(h)&&(t=this.getUI({x:i,y:s,width:n,height:n},h),t.set(o),t.set(l),t.__.__getInput("fill")===void 0&&(t.fill=a[h%8]),this.view.add(t),i+=n+r)})}allowIndex(t){return!this.config.list||this.config.list.includes(t)}}Gp.f="sdfsfde453";const qp=rt.get("CaseCreator"),os={list:{},register(e){const{tag:t}=e.prototype;$a[t]?qp.warn("register the repeat Case: ",t):$a[t]=e},get:(e,t,i)=>(t||(t=new Jt({view:window})),new $a[e](t,i))},{list:$a}=os;function F(){return e=>{os.register(e)}}let K3=class{get tag(){return"AppCase"}constructor(){const e=new Hr({view:window,fill:"#333",hittable:!1}),t=new Jt;t.name="first",e.add(t),os.get("PathCase",t);const i=new Jt({type:"draw"});e.add(i),os.get("RectCase",i),setTimeout(()=>{i.fill="#00000050",e.hittable=!0,console.log(e)},2e3),rt.showRepaint=!0,rt.enable=!0}};K3=p([F()],K3);let Z3=class{get tag(){return"AppRealCanvasCase"}constructor(){const e=new Hr({view:window,fill:"#333",realCanvas:!0}),t=new Jt;t.name="first",e.add(t),os.get("PathCase",t);const i=new Jt({type:"draw"});e.add(i),os.get("RectCase",i),i.add(new Q({width:0,height:0})),setTimeout(()=>{e.width=500,i.fill="#00000050"},2e3),rt.showRepaint=!0,rt.enable=!0,console.log(e)}};Z3=p([F()],Z3);let $3=class extends D{get tag(){return"RectCase"}getUI(e){return new Q(e)}getData(){return[{},{cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{cornerRadius:[0,40,20,40]},{cornerRadius:[20,40,0,40]},{windingRule:"evenodd",path:"X0 0 100 100 30M75 50P50 50 25",fill:"#32cd79"},{fill:"#32cd79"},{fill:"",stroke:"#32cd79",strokeWidth:2,dashPattern:[6,6]}]}};$3=p([F()],$3);let J3=class extends D{get tag(){return"EllipseCase"}getUI(e){return new Bt(e)}getData(){return[{},{startAngle:0,endAngle:0,innerRadius:.5},{startAngle:-60,endAngle:180,innerRadius:.5},{startAngle:-60,endAngle:180},{startAngle:-60,endAngle:180,innerRadius:1,fill:null,stroke:"#32cd79",strokeWidth:10,strokeAlign:"center",strokeCap:"round"},{width:100,height:100,startAngle:-60,endAngle:180,innerRadius:.5,fill:"#32cd79",cornerRadius:10},{scaleX:.8}]}};J3=p([F()],J3);let Q3=class extends D{get tag(){return"PolygonCase"}getUI(e){return new Be(e)}getData(){return[{sides:3},{sides:5},{sides:6,cornerRadius:10},{points:[10,90,10,10,50,70,90,10,90,90]},{points:[10,90,10,10,50,70,90,10,90,90,90,90,10,90],curve:!0}
79,{points:[0,90,20,60,40,80,60,40,75,50,90,10,100,90,100,90,0,90],curve:!0},{points:[10,90,10,10,50,70,90,10,90,90,90,90,10,90],curve:.2}]}};Q3=p([F()],Q3);let t5=class extends D{get tag(){return"StarCase"}getUI(e){return new ki(e)}getData(){return[{innerRadius:.15,corners:3},{innerRadius:.1,corners:4},{corners:5},{corners:6,cornerRadius:2},{innerRadius:.5,corners:7,cornerRadius:4},{innerRadius:.5,corners:8,cornerRadius:5}]}};t5=p([F()],t5);let e5=class extends D{get tag(){return"ArrowCase"}getUI(e,t){return e.stroke=this.colors[t%9],e.height=0,e.strokeWidth=5,e.fill="",e.y+=40,new _e(e)}getData(){return[{startArrow:"angle",endArrow:"angle"},{startArrow:"angle-side",endArrow:"angle-side"},{startArrow:"circle",endArrow:"arrow"},{startArrow:"square",endArrow:"triangle"},{startArrow:"square-line",endArrow:"diamond-line"},{startArrow:"mark",endArrow:"mark"},{endArrow:"angle"},{endArrow:"angle",strokeCap:"square"},{endArrow:"angle",strokeJoin:"round",strokeCap:"round"},{endArrow:"angle",strokeJoin:"round"},{endArrow:"angle",strokeCap:"round"},{endArrow:"angle-side"},{startArrow:"angle-side"},{endArrow:"arrow"},{endArrow:"triangle"},{endArrow:"triangle-flip"},{endArrow:"circle"},{endArrow:"circle-line"},{endArrow:"square"},{endArrow:"square-line"},{endArrow:"diamond"},{endArrow:"diamond-line"},{startArrow:"mark",endArrow:"mark"},{endArrow:"arrow",strokeJoin:"round",strokeCap:"round"},{endArrow:"angle",stroke:"#32cd79",strokeWidth:5,dashPattern:[10,10],dashOffset:0,animation:{style:{dashOffset:-20},easing:"linear",duration:.5,loop:!0}}]}};e5=p([F()],e5);let i5=class extends D{get tag(){return"LineCase"}getUI(e,t){return e.stroke=this.colors[t],e.height=0,e.strokeWidth=5,e.strokeCap="round",e.fill="",new _e(e)}getData(){return[{},{rotation:30},{rotation:45,dashPattern:[10,10]},{points:[10,90,10,10,50,70,90,10,90,90],cornerRadius:5},{points:[10,90,10,10,50,70,90,10,90,90],curve:!0},{points:[0,90,20,60,40,80,60,40,75,50,90,10,100,90],curve:!0},{rotation:90},{points:[10,90,10,10,50,70,90,10,90,90],curve:.2},{points:[10,90,10,10,50,70,90,10,90,90]}]}};i5=p([F()],i5);let s5=class extends D{get tag(){return"PathCase"}getUI(e){return e.scaleX=e.scaleY=.1,new Vt(e)}getData(){return[{path:"M406.611741 961.164906c0 0-35.815717-99.391684-110.62861-140.005684-74.812893-40.608883-119.701243-87.636966-115.426893-167.790494 0 0 40.614 149.627832 195.58042 133.592624 0 0 127.176494-231.647871 131.455961-286.821471 4.275373-55.17667 16.030092-84.035952-27.789926-187.698916 0 0 76.948533 56.485479 82.295308 185.880501 0 0 222.292805-44.808532 278.936897-197.641359 0 0-7.482415 124.245745-167.790494 199.459774-160.310126 75.210959-183.820586 304.995389-173.138292 359.494631 10.691503 54.505381 19.241226 95.113241 74.814939 101.530394L406.611741 961.164906z M322.698586 653.367705c0 0 34.437323-7.198959 53.780881 13.083993 6.448876 6.760984 11.220552 16.57756 12.481266 30.736025 5.037736 56.613392-25.648147 64.12446-25.648147 64.12446s-72.216765-5.115508-74.814939-61.990866C285.898449 642.449028 322.698586 653.367705 322.698586 653.367705z M416.603303 346.891592c11.384281 4.427846 40.756239-26.971281 40.756239-26.971281s-92.983741-55.576783-175.275979 23.51046c0 0 27.789926 17.104563 42.75271 27.789926 14.959713 10.683317 95.113241 60.919465 132.523269-8.549723C457.359542 362.670973 409.446299 344.107175 416.603303 346.891592z M466.97862 266.482237c0 0-91.911316 43.820018-118.631888-45.956681-26.718525-89.772606-61.98268-137.863904-82.293261-146.416697 0 0 92.983741-38.473243 191.30607 26.720571 98.322329 65.193815 44.889373 152.830781 44.889373 152.830781s-27.789926-51.297316-63.060221-67.332525C439.188694 186.327686 477.665007 238.703567 466.97862 266.482237z M514.360767 282.419208c0 0 19.167548-73.122391 69.091588-69.590961 49.92404 3.52836 72.615854 5.804193 81.696674-0.124843 0 0-7.059789 161.496138-137.170103 98.461499 0 0 44.880163-29.753651 50.430576-46.899146C578.409502 264.264733 532.010753 292.00247 514.360767 282.419208z M600.095407 467.493344c0 0 68.583005 1.514493 73.623811-52.950979 5.043876-54.466496-39.84038-66.062602-64.043618-54.466496-24.206308 11.599176-59.384505 59.648518-11.596106 107.423615z M714.065112 243.080248c0 0 50.929949 92.287893 71.105455 90.27198 20.170388-2.015913 37.820374-29.756721 28.744671-48.414663C804.835442 266.281669 744.824673 243.584738 714.065112 243.080248z M827.796386 96.928586c0 0 93.098351 50.667983 95.983051 105.457844 2.885723 54.785767-35.011398 81.894172-55.613622 85.848227 0 0-0.821715-59.896158-15.650445-80.493266 0 0 7.828292 52.316529-16.068977 68.794829 0 0-47.788399-11.945053-37.896098-56.438407C808.433386 175.609577 833.56681 166.142971 827.796386 96.928586z M860.570837 325.765435c0 0 15.093766 64.22986 77.313853 37.993313 62.210877-26.233478 32.229029-15.848966 32.229029-15.848966s-33.730219-81.07041-103.443977-47.230698c0 0 21.739117 18.104333 30.737048 21.10262C897.40679 321.782727 867.957061 329.751213 860.570837 325.765435z M186.969299 437.482843c0 0-87.636966 55.574736-91.908246 130.386606-4.27742 74.806753 54.499242 75.879178 54.499242 75.879178s3.859911 0.74906 9.830903 1.069355c-1.088798-2.862187-7.499811-22.398126 2.149966-65.313541 0 0 6.558369 41.756009 24.793686 62.749136 18.400069-4.934382 37.543058-18.078751 41.249473-50.873668C235.063667 525.116739 176.281889 498.402307 186.969299 437.482843z M121.085776 670.826332c0 0 25.723871-2.331092 39.709397-12.537548-7.956206-4.466732-81.442894-42.983977-112.762203 37.829584 0 0 30.302143 48.738028 83.359546 26.718525 32.636305-13.545504 36.520775-34.676777 34.679847-48.943712C163.5581 674.608471 147.411351 678.568666 121.085776 670.826332z M200.988594 665.906276c6.572696-6.380314 22.562878-20.73116 38.275745-25.89681 0 0-26.14752 17.692964-35.289738 27.865651 10.083659 2.974751 43.220361 10.955516 67.0153-4.472871 29.847795-19.35686 28.199249-46.37419 32.473599-68.816319C303.4635 594.585927 207.939913 594.60537 200.988594 665.906276z"},{path:"M626.915 506.525z m28.242-295.422c-37.145-57.099-75.006-107.854-35.098-161.985-42.876-10.029-77.156 17.088-82.068 53.415-69.89 34.178-48.4 91.277-34.177 145.511 35.712 17.191 72.141 49.322 97.11 87.
79184 9.311 14.94 18.623 29.982 22.819 45.638 7.163 22.82 2.865 32.848 0.102 58.532 0 5.73 3.581 19.238 4.298 27.117 2.149 5.014 3.581 10.642 4.297 14.224 0.717 10.744-2.148 19.237-5.73 25.684 18.522-15.656 41.34-32.847 47.685-59.248 2.865-11.46 6.447-20.67 7.88-29.266 8.493-31.415 19.237-29.266 24.251-68.458 8.698-54.029-22-94.756-51.369-138.348zM482.53 236.686c0.717-12.178-37.963-97.826 31.313-138.45-67.844-49.323-168.535 11.255-160.553 89.025 27.014-24.15 83.5-4.81 129.24 49.425z m140.804 271.988z m0 0c2.15-5.014 3.582-10.642 2.865-19.954 0.717-5.014-2.148-12.074-4.297-18.521-2.15-6.447-3.582-14.94-3.582-23.536-1.432-7.163-0.716-13.61-0.716-20.67 0.716-12.177 0-22.82-4.298-35.713-17.191-54.234-80.02-114.3-125.761-125.659-73.677-83.602-119.315-72.244-145.716-54.439-23.536-12.177-79.305 0.614-102.738 38.476 84.933-0.716 123.613 190.638 186.545 236.276 54.336 38.578 71.425 24.354 112.05 37.964 35.61 8.596 62.01-2.047 85.648-14.224z m13.098 55.36c2.252-12.28 9.824-21.898 13.815-29.164 11.46-23.944 35.2-55.973 33.768-82.988-9.619 35.201-39.09 70.914-88.923 81.658-19.647 3.99-45.434 6.958-69.89-6.651 21.386 18.828 47.377 22.717 90.253 39.806l11.768-1.433c87.593 201.484-2.865 379.434-2.865 379.434 123.408-177.13 45.229-326.94 8.697-380.15l3.377-0.512z"},{path:"M 838.928 957.922 c -7.42926 -57.7429 -86.871 -41.3441 -86.871 -41.3441 c -106.894 -49.8304 -134.905 -111.877 -134.905 -111.877 c -14.8585 -28.0107 4.00153 -24.5679 4.00153 -24.5679 c 19.4339 11.4308 169.771 92.0202 169.771 92.0202 c 26.2893 20.5966 62.3031 43.4582 62.3031 43.4582 c 20.5664 6.29675 22.8616 -20.0077 22.8616 -20.0077 c 12.0801 23.4505 18.8601 10.2983 18.8601 10.2983 c 8.57687 -12.0046 4.00153 -32.0123 4.00153 -32.0123 c -18.2863 -34.2924 -56.0215 -28.0107 -56.0215 -28.0107 l -37.1463 -20.0077 c -104.04 -57.1691 -128.623 -100.038 -128.623 -100.038 l 1.14761 -43.4431 c 68.0261 -2.28012 60.5817 -48.5771 60.5817 -48.5771 c 13.726 -8.57687 -2.85392 -18.3014 -2.85392 -18.3014 c -13.1371 -12.0801 -17.1386 -24.583 -17.1386 -24.583 c -9.15068 -46.297 -41.1629 -53.1524 -41.1629 -53.1524 a 422.441 422.441 0 0 0 -11.4308 -47.4446 c -9.72448 -18.8601 -17.7275 35.44 -17.7275 35.44 c -29.7171 -75.5006 -54.3605 -72.6014 -54.3605 -72.6014 l -2.85392 63.4205 c -33.7337 -1.70631 -59.4492 25.6702 -59.4492 25.6702 c -29.0979 27.0141 -43.9565 27.5275 -43.9565 27.5275 c -16.6101 -21.7291 -66.8785 -53.1675 -66.8785 -53.1675 c -32.5861 -24.0092 -82.3108 -78.3093 -82.3108 -78.3093 c -72.6014 -93.1678 -173.787 -108.041 -173.787 -108.041 l -24.5679 -3.42773 c -30.608 -4.53004 -46.8104 -41.1478 -46.8104 -41.1478 c -49.166 -129.77 14.8585 -210.934 14.8585 -210.934 c 45.7232 -68.5999 126.328 16.6101 126.328 16.6101 c 23.4354 25.1417 43.4431 3.42773 43.4431 3.42773 c 12.5784 -49.7398 -57.1691 -81.7521 -57.1691 -81.7521 c -87.4599 -40.0002 -155.531 24.9605 -155.531 24.9605 c -78.8831 80.9669 -16.6101 255.192 -16.6101 255.192 c 21.1402 45.1494 -5.14914 79.4569 -5.14914 79.4569 c -29.1583 49.1509 -29.1583 109.174 -29.1583 109.174 c 3.44283 128.608 76.0291 189.205 76.0291 189.205 C 149.562 740.707 154.696 776.147 154.696 776.147 v 58.8905 c 3.42773 30.8647 10.2832 38.8677 10.2832 38.8677 l 42.2804 45.7232 c 16.6101 31.4385 28.0107 36.0138 28.0107 36.0138 c 33.2203 13.1522 48.5771 -13.1371 48.5771 -13.1371 c 16.0061 -38.309 -38.2939 -50.3136 -38.2939 -50.3136 l -22.2878 -28.5845 c -21.1402 -27.9956 -6.87056 -44.0018 -6.87056 -44.0018 l 37.1614 -57.7429 l 1.14761 46.8104 c 2.28012 21.1402 9.70938 32.0123 9.70938 32.0123 c 57.1691 78.8831 82.3259 84.5607 82.3259 84.5607 c 34.2924 3.42773 41.1478 -22.2878 41.1478 -22.2878 c 6.85546 -33.7337 -38.2939 -46.3121 -38.2939 -46.3121 l -25.6702 -22.8616 c -29.1734 -34.2018 -14.2998 -44.5001 -14.2998 -44.5001 c 12.0046 -6.85546 21.1402 -33.7186 21.1402 -33.7186 c 4.00153 -13.726 25.6702 -5.14914 25.6702 -5.14914 c 21.1402 12.0046 51.4461 19.7812 51.4461 19.7812 c 32.0123 1.51001 76.0291 30.5174 76.0291 30.5174 c 60.023 71.4538 142.908 115.471 142.908 115.471 c 82.8846 58.3016 117.781 55.4477 117.781 55.4477 c 17.7275 0.573805 45.1645 22.3482 45.1645 22.3482 c 18.8601 8.06347 25.1417 -9.76978 25.1417 -9.76978 a 21.1402 21.1402 0 0 0 5.14914 9.72448 c 20.0228 1.70631 18.8752 -36.0138 18.8752 -36.0138 Z M 1007.99 940.738 l -0.513404 -0.453004 c -0.619105 -0.332203 -1.37411 -0.468104 -2.02342 -0.800307 c -0.211402 -0.120801 -0.317103 -0.317103 -0.543604 -0.468104 l -0.906008 -0.634205 a 2.77842 2.77842 0 0 1 -0.332203 -0.256702 c -0.347303 -0.166101 -0.800307 -0.286902 -1.16271 -0.453004 s -1.07211 -0.604005 -1.63081 -0.830507 c -0.302003 -0.120801 -0.679506 -0.120801 -0.966408 -0.241602 c -0.588905 -0.241602 -1.14761 -0.679506 -1.72142 -0.921108 a 5.78335 5.78335 0 0 0 -1.41941 -0.286902 c -0.302003 0 -0.573805 -0.166101 -0.890907 -0.211402 s -1.07211 -0.135901 -1.58551 -0.256702 s -0.951308 -0.377503 -1.51001 -0.498304 a 16.1269 16.1269 0 0 1 -1.85732 -0.362403 c -0.619105 -0.211402 -1.17781 -0.679506 -1.81202 -0.845607 s -1.28351 0 -1.90262 -0.151002 s -1.34391 -0.332203 -2.02342 -0.453003 a 8.25977 8.25977 0 0 1 -1.51001 -0.256703 a 16.4893 16.4893 0 0 1 -2.62742 -1.85731 l -0.830507 -0.860707 c -0.241602 -0.166101 -0.498304 -0.362403 -0.739906 -0.513405 l -0.392603 -0.437903 a 4.53004 4.53004 0 0 0 -1.23821 -1.10231 a 9.15068 9.15068 0 0 0 -1.38921 -0.302002 c -0.755006 -0.196302 -1.51001 -0.709706 -2.18952 -0.906008 s -1.374
7911 -0.135901 -2.05362 -0.256702 c -0.151001 0 -0.286902 -0.105701 -0.453004 -0.135901 s -0.739906 -0.090601 -1.10231 -0.181202 s -0.437904 -0.226502 -0.664406 -0.226502 a 2.92943 2.92943 0 0 0 -0.302002 0 h -0.815407 a 8.53157 8.53157 0 0 1 -1.51001 0 c -0.407703 -0.075501 -0.755006 -0.286902 -1.14761 -0.377503 a 10.7513 10.7513 0 0 1 -3.02003 -0.815407 c -0.422804 -0.226502 -0.694606 -0.709706 -1.13251 -0.996608 a 4.53004 4.53004 0 0 0 -1.51001 -0.800307 c -0.196302 0 -0.407703 0.120801 -0.604005 0.151002 s -0.634205 0.090601 -0.951308 0.120801 h -2.05362 l -1.04191 -0.241602 h -0.649305 a 3.65423 3.65423 0 0 1 -1.35901 -0.573805 a 2.53682 2.53682 0 0 1 -0.543604 -0.619105 a 2.80862 2.80862 0 0 0 -1.28351 -1.13251 a 9.98118 9.98118 0 0 0 -1.51001 0.362403 a 5.23974 5.23974 0 0 1 -1.08721 0 a 7.89737 7.89737 0 0 1 -1.88752 -0.135901 c -0.709706 -0.181202 -1.38921 -0.951308 -2.08382 -1.26841 a 1.96302 1.96302 0 0 0 -0.558705 -0.241602 a 4.06193 4.06193 0 0 0 -0.739906 0 h -1.28351 a 18.2108 18.2108 0 0 1 -2.56702 0 a 11.7328 11.7328 0 0 1 -1.78182 0 a 8.12387 8.12387 0 0 1 -1.04191 -0.271802 c
79-0.151001 0 -0.241602 -0.166101 -0.392604 -0.196302 s -0.241602 0 -0.347303 0 a 2.59722 2.59722 0 0 0 -0.906007 -0.271802 c -0.302003 0 -0.709706 0.286902 -1.01171 0.332203 a 8.32017 8.32017 0 0 1 -1.05701 0 a 6.34205 6.34205 0 0 1 -1.51001 -0.090601 l -0.362403 -0.211402 a 3.89583 3.89583 0 0 1 -0.392604 -0.120801 a 6.82526 6.82526 0 0 1 -0.785206 -0.483204 l -0.604005 -0.513404 a 3.02003 3.02003 0 0 0 -0.860707 -0.437904 c -0.317103 -0.120801 -0.694606 -0.135901 -1.01171 -0.226502 c -0.604005 -0.151001 -1.16271 -0.347303 -1.75162 -0.468104 c -0.347303 0 -0.755006 0 -1.11741 -0.0906 l -0.951308 -0.226502 l -0.468104 -0.211402 c -0.649305 -0.151001 -1.29861 -0.241602 -1.94792 -0.362403 h -0.483204 a 10.857 10.857 0 0 1 -1.85732 -0.105701 a 5.90415 5.90415 0 0 1 -1.41941 -0.906008 a 6.11555 6.11555 0 0 0 -1.51001 -0.694605 c -1.97812 -0.468104 -3.97133 -0.453004 -5.93435 -0.785207 h -2.46132 c -0.453004 -0.075501 -0.860707 -0.271802 -1.31371 -0.392603 a 6.99136 6.99136 0 0 0 -0.785207 -0.105701 a 8.63727 8.63727 0 0 1 -0.890907 -0.256702 c 0 0.135901 0.770106 0.528504 0.936208 0.619105 s 0.588905 0.181202 0.845607 0.286902 a 13.5901 13.5901 0 0 0 2.02342 0.724806 h 0.271802 c 0.151001 0 0.271802 0.151001 0.422804 0.181202 s 0.755006 0 1.10231 0.135901 s 0.437904 0.196302 0.679506 0.241602 s 0.573805 0 0.845607 0 c 0.528504 0.105701 1.05701 0.317103 1.51001 0.453004 c 0.166101 0 0.241602 0.166101 0.407704 0.256702 s 0.332203 0.135901 0.483204 0.211402 s 0.422804 0.407703 0.679506 0.513404 c 0.483204 0.211402 1.07211 0.347303 1.51001 0.528505 a 5.52665 5.52665 0 0 0 0.936208 0.377503 h 0.347303 a 4.80184 4.80184 0 0 1 0.483204 0.241602 h 0.860707 a 3.63913 3.63913 0 0 1 1.11741 0.634205 c 0.226502 0.135901 0.241602 0.392603 0.407703 0.513404 a 4.15253 4.15253 0 0 0 0.679506 0.256703 c 0.120801 0 0.135901 0.241602 0.196301 0.256702 s 0.181202 -0.105701 0.302003 -0.120801 h 0.483204 c 0.090601 0 0.120801 -0.105701 0.211402 -0.120801 h 2.08382 c 0.377503 0 0.890907 -0.120801 1.25331 0.241602 a 0.407703 0.407703 0 0 0 0.105701 0.302002 a 4.66594 4.66594 0 0 1 0.800306 0 l 0.286903 0.181202 l 0.664405 0.226502 h 0.392604 a 3.02003 3.02003 0 0 1 1.23821 0.256702 c 0.211402 0.135901 0.090601 0.362403 0.286903 0.498304 h 0.166101 c 0.135901 0.075501 0.120801 0.226502 0.151001 0.302002 s 0.256702 0.120801 0.347303 0.241603 s 0.166101 0.332203 0.256702 0.483204 l 0.498304 0.498304 a 8.27487 8.27487 0 0 1 1.61571 0 c 0.135901 0.166101 0.151001 0.377503 0.317103 0.468104 s 0.226502 0 0.302002 0.196301 s 0 0.181202 0 0.241602 a 6.93096 6.93096 0 0 0 0.860707 0.921108 a 5.76825 5.76825 0 0 0 1.37411 0.498304 c 0.135901 0 0.241602 0.151001 0.392603 0.196302 s 0.271802 0 0.392604 0.075501 s 0.105701 0.090601 0.181201 0.1057 c 0.377503 0.090601 0.845607 -0.090601 1.22311 0.075501 s 0.362403 0.573805 0.664406 0.770107 a 2.56702 2.56702 0 0 0 0.800307 0.422803 a 2.29522 2.29522 0 0 0 0.709706 -0.090601 a 9.24128 9.24128 0 0 1 1.28351 0 h 0.604006 c 0.226502 0 0.181202 0.377503 0.437903 0.513405 a 1.16271 1.16271 0 0 0 0.226502 0 a 1.97812 1.97812 0 0 1 0.317103 0.151001 a 2.85392 2.85392 0 0 0 0.347303 0.075501 c 0.256702 0 0.437904 0.226502 0.679505 0.286902 h 0.906008 c 0.286902 0 0.513404 0.196302 0.785207 0.271802 a 3.02003 3.02003 0 0 1 0.619105 0.151002 c 0.196302 0 0.362403 0.181202 0.558704 0.241602 s 0.785207 0 1.08721 0.1057 a 4.04683 4.04683 0 0 1 0.453003 0.181202 l 0.830507 0.226502 c 0.151001 0 0.211402 0.151001 0.347303 0.211402 a 2.05362 2.05362 0 0 1 0.588905 0.181201 l 0.317103 0.332203 c 0.105701 0.075501 0.286902 0.120801 0.362403 0.271802 a 4.16763 4.16763 0 0 0 0.483204 0.921108 h 0.196302 a 1.51001 1.51001 0 0 0 0.453003 0 h 1.90262 c 0.332203 0 0.634205 0.256702 0.966409 0.347303 a 2.77842 2.77842 0 0 1 0.498304 0 c 0.302003 0.120801 0.528504 0.377503 0.845607 0.513404 s 0.981508 0.302003 1.51001 0.543605 s 0.453004 0.437904 0.724806 0.558704 s 0.770106 0.196302 1.10231 0.347303 s 0.437904 0.392603 0.724806 0.558705 s 0.649305 0.241602 0.906008 0.362403 s 0.271802 0.332203 0.468104 0.453004 a 4.30354 4.30354 0 0 0 0.634205 0.256702 c 0.090601 0 0.120801 0.105701 0.211402 0.120801 c 0.362403
790.105701 0.800307 0 1.17781 0 c 0.105701 0 0.151001 0.120801 0.256702 0.151001 a 4.31864 4.31864 0 0 0 1.22311 0.120801 l 0.196302 -0.135901 h 0.558704 a 8.06347 8.06347 0 0 1 1.20801 0 l 0.649306 0.271803 c 0.135901 0.075501 0.181202 0.181202 0.302002 0.226501 a 10.3738 10.3738 0 0 0 1.31371 0.317103 a 1.08721 1.08721 0 0 1 0.543605 0.302003 c 0.075501 0.105701 0.135901 0.317103 0.286902 0.407703 a 2.50662 2.50662 0 0 0 0.498305 0.181202 l 0.422803 0.332202 c 0.271802 0.120801 0.664406 0.181202 0.936208 0.286903 s 0.332203 0.286902 0.513404 0.332203 s 0.588905 -0.483204 0.785207 -0.649306 a 1.31371 1.31371 0 0 0 0.543605 0 l 0.151001 -0.105701 h 0.528504 a 1.51001 1.51001 0 0 0 0.558705 -0.407703 s 0 -0.135901 0.151001 -0.196302 a 1.67611 1.67611 0 0 1 0.936208 -0.226502 h 1.51001 c 0.211402 0 0.377503 0.196302 0.588905 0.241602 h 1.63081 c 0.135901 0 0.241602 0.120801 0.392604 0.151002 s 0.558705 0 0.815407 0 s 0.196302 0.105701 0.347302 0.151001 h 0.785207 l 0.226502 0.120801 h 0.815407 c 0.317103 0 0.664406 0.120801 0.981508 0.090601 a 7.12726 7.12726 0 0 1 1.38921 0 a 6.29675 6.29675 0 0 1 0.755006 0 c 0.196302 0 0.362403 0.211402 0.558705 0.256702 c 0.860707 0.211402 1.70631 0.649305 2.56702 0.860707 l 0.453004 0.226502 h 1.07211 a 2.76332 2.76332 0 0 0 0.588905 0.135901 a 2.67272 2.67272 0 0 1 1.02681 0.090601 c 0.196302 0.090601 0.226502 0.347303 0.437903 0.468104 s 0.286902 0.105701 0.407704 0.181201 s 0.090601 0.317103 0.271802 0.437904 s 0.241602 0 0.332203 0.211402 s 0 0.166101 0.0755 0.211401 s 0.468104 0.120801 0.634206 0.166102 l 0.453004 0.256702 c 0.105701 0 0.256702 0 0.362403 0.075501 a 4.75654 4.75654 0 0 0 0.966408 0.468104 c 0.256702 0 0.588905 0 0.845607 0.135901 s 0.453004 0.211402 0.709706 0.256702 h 0.906007 c 0.135901 0 0.256702 0.105701 0.407704 0.135901 h 0.830507 a 3.17103 3.17103 0 0 0 0.362403 0.090601 c 0.120801 0.120801 0.196302 0.377503 0.241602 0.377503 c 0.362403 0.090601 0.755006 0 1.10231 0 s 0.498304 0.317103 0.770107 0.377503 h 0.392603 a 3.42773 3.42773 0 0 1 0.377503 0.090601 c 0.135901 0 0.271802 0 0.407704 -0.090601 H 1006.1 c 0.619105 0.105701 1.20801 0.558705 1.82712 0.664406 c 0.196302 0 0.392603 -0.151001 0.588905 -0.181202 s 0.437904 0.090601 0.664405 0 c -0.271802 0.196302 -0.800307 -0.256702 -1.19291 -0.528504 Z M 921.934 905.419 c 0.196302 0 0.377503 0.151001 0.573805 0.181202 h 0.860707 l 0.226502 0.120801 h 0.739906 c 0.302003 0 0.604005 0 0.906007 0.120801 a 2.32542 2.32542 0 0 1 0.724807 0.256702 c 0.151001 0.090601 0.196302 0.211402 0.332202 0.271802 c 0.679506 0.302003 1.41941 0.422804 2.09892 0.664406 c 0.332203 0.120801 0.664406 0.513404 0.996608 0.634205 a 0.951308 0.951308 0 0 1 0.166102 -0.226502 c 0.226502 0 0.392603 -0.105701 0.634205 -0.151001 h 0.694606 a 8.47117 8.47117 0 0 1 1.23821 0 h 0.573805 c 0.135901 0 0.256702 0.135901 0.392603 0.166101 h 0.392604 c 0.271802 0 0.075501 0.709706 0.543604 0.936208 a 5.07364 5.07364 0 0 0 0.996609 0.317103 c 0.120801 0 0.211402 0.120801 0.332202 0.135901 s 0.604005 0 0.875808 0 a 3.02003 3.02003 0 0 1 0.377503 0.211402 l 0.302003 0.0755 c 0 -0.181202 0.317103 -0.619105 0.588904 -0.664405 a 3.02003 3.02003 0 0 1 1.02681 0 a 3.50323 3.50323 0 0 1 2.92943 1.11741 a 1.72141 1.72141 0 0 0 0 0.785207 a 2.14422 2.14422 0 0 1 0.468104 0.0906 c 0.105701 0.151001 0.226502 0.286902 0.347303 0.437904 s 0.679506 0.286902 0.951308 0.437904 l 0.437903 0.437903 l 0.664406 0.256703 c 0.362403 0.196302 0.573805 0.453004 0.921108 0.513404 h 0.558704 c 0.151001 0 0.211402 -0.196302 0.332203 -0.226502 h 0.528504 l 0.166102 -0.120801 h 0.573805 c 0.090601 0 0.120801 -0.105701 0.211401 -0.120801 H 949.295 l 0.256703 0.135901 h 0.226502 a 3.54853 3.54853 0 0 1 0.981508 0.075501 c 0.120801 0 0.181202 0.135901 0.286902 0.181201 a 1.34391 1.34391 0 0 0 0.332203 0 l 0.332203 0.181202 a 3.59383 3.59383 0 0 1 0.392603 0 l 0.120801 0.090601 h 1.11741 a 2.40092 2.40092 0 0 1 0.739907 0.362403 c 0.135901 0.090601 0.135901 0.241602 0.286902 0.302002 h 0.739906 a 4.40924 4.40924 0 0 1 0.634206 0.196302 c 0.286902 0.120801 0.377503 0.513404 0.498304 0.709706 l 0.543604 0.588905 a 2.15932 2.15932 0 0 0 1.04191 1.02681 a 3.02003 3.02003 0 0 0 1.26841 -0.135901 h 0.453004 c 0.135901 0 0.332203 -0.090601 0.498304 -0.090601 a 6.61386 6.61386 0 0 1 0.755006 0 h 1.02681 c 0.181202 0 0.347303 0.181202 0.528504 0.226502 h 0.785207 c 0.302003 0 0.558705 0.166101 0.875807 0.226502 h 0.815407 c 0.317103 0.075501 0.513404 0.347303 0.845607 0.513405 a 4.75654 4.75654 0 0 0 0.981508 0.437903 h 0.332203 c 0.151001 0 0.241602 0.166101 0.392603 0.241602 s 0.860707 0.256702 0.936208 0.256702 l 0.256702 -0.12
790801 a 2.49152 2.49152 0 0 0 0.649306 -0.135901 l 0.241602 -0.181201 c 0.135901 0 0.317103 0 0.453004 -0.090601 s 0.332203 -0.392603 0.528504 -0.453004 s 0.377503 0 0.543605 0 s 0.135901 -0.105701 0.211402 -0.120801 h 1.85731 c 0.151001 0 0.256702 0.151001 0.407704 0.181202 h 1.87241 c 0.528504 0.090601 1.01171 0.392603 1.51001 0.498304 s 0.739906 0 1.08721 0 s 0.302003 0.120801 0.468104 0.151001 s 0.151001 0 0.211402 0 a 1.61571 1.61571 0 0 1 0.241602 0.211402 a 1.64591 1.64591 0 0 0 0.770106 0.211402 c 0.196302 0.211402 0.166101 0.332203 0.286903 0.528504 a 4.53004 4.53004 0 0 1 0.664405 0 c 0.151001 0 0.241602 0.211402 0.392604 0.302003 a 1.51001 1.51001 0 0 1 0.332202 0.135901 a 1.13251 1.13251 0 0 1 0.845607 -0.105701 c 0.604005 0 1.28351 -0.135901 1.85732 0.437904 a 4.53004 4.53004 0 0 1 0 0.906007 a 4.06193 4.06193 0 0 0 1.90262 0.498304 a 6.34205 6.34205 0 0 1 2.12912 -0.135901 h 0.604005 l 0.317103 0.166102 h 0.558704 l 1.14761 0.226502 h 0.694606 c 0.166101 0 0.271802 0.181202 0.437903 0.241602 h 0.226502 c 0.151001 0 0.211402 0.135901 0.362403 0.211401 a 3.71463 3.71463 0 0 0 0.770107 0.166102 l 0.437904 0.196301 H 995.32 c 0.120801 0.135901 0.151001 0.302003 0.286902 0.392604 a 4.53004 4.53004 0 0 0 0.634206 0.241602 c 0.226502 0.135901 0.196302 0.392603 0.422803 0.498304 s 0.453004 0 0.634206 0.211402 s 0.075501 0.135901 0.0906 0.181201 a 9.93588 9.93588 0 0 0 0.785207 0.800307 h 0.211402 l 0.453004 0.211402 h 1.02681 a 4.60554 4.60554 0 0 1 0.483204 0.196301 H 1001.59 a 4.33374 4.33374 0 0 0 0.755006 0.105701 a 1.76672 1.76672 0 0 1 0.392603 0 a 2.24992 2.24992 0 0 0 0.604005 0.120801 a 6.17595 6.17595 0 0 1 0.906008 0 h 0.256702 a 1.32881 1.32881 0 0 1 0.422804 0 c 0.347303 0 0.664406 0.226502 0.996608 0.271803 s 0.256702 0 0.377503 0 l 0.966408 0.196301 h 0.256702 a 4.16763 4.16763 0 0 1 0.739907 0.105701 a 2.40092 2.40092 0 0 1 -0.453004 -0.271802 c
79-0.241602 -0.135901 -0.513404 -0.241602 -0.785207 -0.362403 s -0.256702 0 -0.377503 -0.090601 c -0.604005 -0.256702 -1.13251 -0.604005 -1.73651 -0.860707 s -1.11741 -0.362403 -1.64591 -0.604005 c -0.151001 -0.090601 -0.211402 -0.196302 -0.377503 -0.286903 a 7.06686 7.06686 0 0 0 -0.830507 -0.407703 c -0.256702 -0.105701 -0.604005 -0.151001 -0.860708 -0.226502 c -0.513404 -0.135901 -0.936208 -0.347303 -1.51001 -0.437904 h -0.317103 a 8.69767 8.69767 0 0 1 -2.23482 -0.332203 c -0.498304 -0.211402 -0.860707 -0.573805 -1.34391 -0.830506 s -1.01171 -0.513404 -1.51001 -0.800307 l -0.422803 -0.362403 a 9.61878 9.61878 0 0 0 -0.951308 -0.528505 a 10.2379 10.2379 0 0 0 -1.32881 -0.377503 c -0.166101 0 -0.302003 -0.120801 -0.468104 -0.151001 c -0.558705 -0.105701 -1.16271 -0.120801 -1.72142 -0.256702 c -0.800307 -0.211402 -1.51001 -0.951308 -2.35562 -1.13251 s -1.26841 0 -1.87241 -0.105701 c -0.362403 0 -0.649305 -0.286902 -1.01171 -0.392603 s -0.875807 -0.166101 -1.28351 -0.286902 s -1.23821 -0.981508 -1.87241 -1.16271 c -0.317103 -0.090601 -0.664406 -0.090601 -0.996609 -0.151001 s -1.11741 -0.286902 -1.66101 -0.422804 s -1.51001 -0.513404 -2.26502 -0.709706 c -0.151001 0 -0.271802 -0.151001 -0.422803 -0.196302 l -1.84222 -0.422803 c -0.815407 -0.181202 -1.51001 -1.10231 -2.34052 -1.60061 c -0.166101 -0.090601 -0.256702 -0.226502 -0.422804 -0.286902 c -0.513404 -0.181202 -1.08721 -0.392603 -1.61571 -0.619105 a 6.46285 6.46285 0 0 0 -1.08721 -0.513404 c -0.875807 -0.241602 -1.78182 -0.256702 -2.67272 -0.498305 c -0.588905 -0.151001 -1.11741 -0.543605 -1.72141 -0.709706 a 13.3938 13.3938 0 0 1 -1.97812 -0.573804 a 9.79998 9.79998 0 0 0 -1.26841 -0.619106 c -0.362403 -0.105701 -0.800307 0.151001 -1.17781 0.196302 H 957.419 c -0.513404 -0.105701 -0.981508 -0.453004 -1.51001 -0.604005 s -0.875807 -0.090601 -1.28351 -0.196302 c -0.679506 -0.166101 -1.31371 -0.468104 -1.99322 -0.604005 h -1.44961 l -1.51001 -0.302002 h -0.181202 a 4.53004 4.53004 0 0 0 -0.483204 0.0906 H 946.849 c -0.498304 -0.090601 -0.951308 -0.317103 -1.51001 -0.453003 a 12.4425 12.4425 0 0 0 -1.51001 -0.286903 h -0.271803 a 12.2311 12.2311 0 0 0 -1.51001 -0.090601 h -0.483204 a 3.62403 3.62403 0 0 0 -0.875808 -0.181201 c -0.649305 0.075501 -1.23821 0.317103 -1.88752 0.437904 a 9.54328 9.54328 0 0 1 -1.85731 0 h -0.951308 c -0.951308 -0.166101 -1.84221 -0.815407 -2.79352 -0.981509 c -0.302003 0 -0.694606 0.302003 -1.01171 0.422804 a 4.31864 4.31864 0 0 1 -1.35901 0.302002 h -0.936207 a 13.0012 13.0012 0 0 1 -1.87242 -0.120801 h -0.528505 l -2.15932 -0.0755 c -0.679506 -0.120801 -1.31371 -0.392603 -1.99322 -0.513405 a 2.26502 2.26502 0 0 0 -0.770106 0.105701 h -0.739906 a 8.89398 8.89398 0 0 1 -1.26841 0.211402 a 1.91772 1.91772 0 0 0 0.483204 0.196302 Z M 999.865 953.377 h -0.347303 l -0.453004 -0.151001 c -0.211402 -0.090601 -0.347303 -0.241602 -0.573804 -0.347303 s -0.241602 0 -0.332203 -0.090601 l -0.483204 -0.347303 c -0.181202 -0.105701 -0.422804 -0.196302 -0.619105 -0.317103 l -0.407704 -0.347303 l -0.875807 -0.543604 a 3.12573 3.12573 0 0 0 -0.377503 -0.286903 a 4.09213 4.09213 0 0 0 -0.951308 0 h -0.800307 a 5.60215 5.60215 0 0 1 -0.875807 0 a 12.0801 12.0801 0 0 1 -1.25331 -0.407703 a 12.0801 12.0801 0 0 1 -2.59722 -1.51001 a 3.36733 3.36733 0 0 1 -0.755006 -0.860707 a 4.93774 4.93774 0 0 0 -1.14761 -1.10231 a 3.75993 3.75993 0 0 0 -0.906007 -0.286903 c -0.498304 -0.135901 -0.936208 -0.347303 -1.51001 -0.437903 h -0.483204 a 3.62403 3.62403 0 0 1 -1.19291 -0.226502 a 2.70292 2.70292 0 0 1 -0.422804 -0.332203 c -0.302003 -0.181202 -0.664406 -0.483204 -0.981508 -0.694606 l -0.437904 -0.392603 a 10.5701 10.5701 0 0 0 -1.20801 -0.543605 a 3.41263 3.41263 0 0 0 -0.392603 -0.211401 a 2.76332 2.76332 0 0 0 -0.996608 0 h -3.02003 c -0.649305 -0.105701 -1.26841 -0.317103 -1.93282 -0.453004 c -0.317103 0 -0.664406 0 -0.981508 -0.120801 s -0.875807 -0.437904 -1.34391 -0.558705 a 24.7189 24.7189 0 0 1 -2.41602 -0.755006 a 20.0228 20.0228 0 0 0 -2.05362 -1.02681 a 18.2561 18.2561 0 0 0 -1.91772 -0.422803 h -0.649306 a 7.55006 7.55006 0 0 1 -1.72141 -0.437904 c -0.498304 -0.211402 -1.02681 -0.483204 -1.51001 -0.739906 l -0.362403 -0.256702 c -0.332203 -0.151001 -0.770106 -0.256702 -1.10231 -0.422804 s -0.724806 -0.468104 -1.16271 -0.649305 c -0.120801 0 -0.302003 0 -0.437903 -0.105701 l -0.241603 -0.135901 c -0.996608 -0.226502 -2.06872 0 -3.02003 -0.120802 c -0.392603 -0.075501 -0.724806 -0.256702 -1.11741 -0.362403 l -0.921108 -0.196301 c -0.785207 -0.151001 -1.60061 0 -2.37072 -0.166102 c -0.483204 -0.090601 -0.921108 -0.332203 -1.40431 -0.453003 s -0.875807 -0.105701 -1.29861 -0.211402 c -0.724806 -0.151001 -1.38921 -0.573805 -2.11402 -0.770107 s -1.35901 0 -2.02342 -0.226502 a 5.79845 5.79845 0 0 1 -0.588905 -0.332202 a 13.4693 13.4693 0 0 1 -1.374
7911 -0.739907 l -0.392603 -0.317102 a 9.57348 9.57348 0 0 0 -1.63081 -0.890908 c -1.25331 -0.437904 -2.52172 -0.362403 -3.75993 -0.679505 a 20.2644 20.2644 0 0 1 -2.50662 -1.23821 c -1.28351 -0.558705 -2.65762 -0.724806 -3.94113 -1.28351 c -0.996608 -0.437904 -1.91772 -1.66101 -2.92942 -2.09892 a 15.1001 15.1001 0 0 0 -1.76672 -0.392604 c -0.483204 -0.135901 -0.921108 -0.573805 -1.40431 -0.770106 h -0.135901 c -0.422804 -0.151001 -0.739906 -0.407703 -1.14761 -0.528504 s -0.755006 -0.135901 -1.10231 -0.256703 c 0 0.166101 -0.105701 0.317103 0 0.498305 a 1.37411 1.37411 0 0 1 0.724806 0.332202 c 0 0.090601 0 0.226502 0.090601 0.317103 s 0.241602 0.256702 0.286902 0.407703 s 0 0.317103 0.105701 0.468104 l 0.317103 0.392604 c 0.090601 0.166101 0 0.256702 0.151001 0.453004 a 6.32695 6.32695 0 0 1 1.19291 0 c 0.211402 0.226502 0.135901 0.377503 0.317103 0.588904 a 3.02003 3.02003 0 0 1 0.845607 0.302003 l 0.362403 0.347303 c 0.166101 0 0.377503 0 0.558705 0.196302 s 0.105701 0.362403 0.317102 0.468104 a 6.04005 6.04005 0 0 0 0.936208 0.362403 a 1.60061 1.60061 0 0 0 0.317103 0.166101 c 0.317103 0 0.770106 -0.120801 1.07211 0 s 0.166101 0.211402 0.196302 0.256702 s 0.619105 0.604005 0.664405 0.619105 s 0.468104 0.151001 0.664406 0.271803 l 0.347303 0.392603 l 0.664405 0.271802 c 0.256702 0.135901 0.437904 0.483204 0.694606 0.604005 s 0.362403 0 0.513404 0.151002 s 0.256702 0.468104 0.498305 0.588904 l 0.437903 0.120801 c 0.151001 0 0.256702 0.196302 0.407704 0.256703 a 6.26655 6.26655 0 0 0 0.724806 0.166101 c 0.362403 0.090601 0.739906 0.347303 1.08721 0.422804 s 0.513404 0 0.739906 0.0906 s 0.196302 0.090601 0.317103 0.105701 s 0.392603 0 0.588905 0 s 0.105701 0.090601 0.196301 0.135901 a 3.59383 3.59383 0 0 0 0.392604 0.075501 l 0.332202 0.166101 a 4.86224 4.86224 0 0 1 0.921108 0.241602 c 0.166101 0.090601 0.151001 0.241602 0.317103 0.347303 s 0.317103 0 0.407703 0.211402 a 1.96302 1.96302 0 0 0 0.573805 0.709706 a 7.06686 7.06686 0 0 0 0.679506 0.302003 a 3.60893 3.60893 0 0 0 0.800307 0.0906 c 0.286902 0 0.543605 0.226502 0.845607 0.302003 a 7.00646 7.00646 0 0 1 1.11741 0.241602 c 0.468104 0.196302 0.845607 0.785207 1.26841 1.19291 a 3.48813 3.48813 0 0 1 0.890907 0 a 6.04005 6.04005 0 0 0 0.588905 0.241602 h 0.679506 c 0.211402 0 0.407703 0.332203
790.604005 0.437904 s 0.498304 0.120801 0.709706 0.226502 s 0.196302 0.362403 0.347303 0.483204 a 2.86902 2.86902 0 0 0 0.543604 0.181201 l 0.468104 0.317103 a 3.02003 3.02003 0 0 0 0.649306 0.256702 h 0.483204 a 4.42434 4.42434 0 0 1 1.96302 0.302002 c 0.120801 0 0.151001 0.241602 0.196302 0.302003 l 0.694606 0.664406 c 0.588905 0.362403 1.26841 0.407703 1.84221 0.785206 l 0.317103 0.302003 a 2.71802 2.71802 0 0 0 0.317103 0.120801 a 0.981508 0.981508 0 0 1 0.226501 0.302002 a 3.97133 3.97133 0 0 0 0.528505 0.392604 h 0.181201 a 3.83543 3.83543 0 0 0 0.830507 0 h 1.90262 c 0.241602 0 0.377503 0.241602 0.634206 0.377503 a 1.97812 1.97812 0 0 0 0.407703 0.090601 c 0.151001 0 0.256702 0.135901 0.392603 0.151001 h 1.07211 a 5.39075 5.39075 0 0 1 1.26841 0.468104 a 2.92943 2.92943 0 0 1 0.739906 0.271802 h 0.090601 c 0.377503 0.090601 0.785207 0 1.14761 0 a 9.49798 9.49798 0 0 1 2.59722 0.649305 l 0.256703 0.241602 a 1.29861 1.29861 0 0 0 0.317102 0.105701 l 0.362403 0.317103 c 0.105701 0 0.271802 0 0.362403 0.090601 s 0.211402 0.286902 0.256703 0.362403 a 3.71463 3.71463 0 0 0 0.407703 0.256702 c 0.120801 0.090601 0.196302 0.332203 0.362403 0.437904 s 0.453004 0.075501 0.664406 0.226502 l 0.332202 0.453003 a 1.82712 1.82712 0 0 0 0.468104 0.135902 l 0.241602 0.135901 h 1.14761 l 0.256702 0.135901 c 0.317103 0.075501 0.770106 0 1.13251 0.0755 c 0.105701 0 0.151001 0.105701 0.256702 0.151002 a 3.86563 3.86563 0 0 0 0.407703 0.0755 c 0.211402 0 0.362403 0.181202 0.573805 0.226502 h 0.332203 c 0.362403 0 0.664406 0 1.02681 0.135901 h 0.528505 c 0.181202 0 0.332203 0.332203 0.528504 0.422804 a 6.47795 6.47795 0 0 0 1.41941 0.528504 l 0.226502 0.105701 l 0.709706 -0.211402 H 982.244 a 1.88752 1.88752 0 0 1 0.588905 0.226502 a 3.02003 3.02003 0 0 0 1.41941 0.241602 a 3.83543 3.83543 0 0 0 0.709706 -0.1057 a 4.15253 4.15253 0 0 1 0.619105 -0.256703 h 2.34052 a 7.55006 7.55006 0 0 1 1.02681 0.453004 a 6.93096 6.93096 0 0 1 0.724806 0.256702 l 0.332202 0.302003 a 4.12233 4.12233 0 0 0 1.04191 0.498304 h 3.65423 l 0.271802 0.151001 a 2.44622 2.44622 0 0 0 0.286903 0 l 0.437903 0.196302 h 1.05701 c 0.332203 0 0.483204 0.226502 0.755006 0.286902 h 0.830507 a 3.02003 3.02003 0 0 1 0.528505 0.135902 l 0.151001 0.1057 c 0.407703 0.135901 0.890907 -0.135901 1.31371 0.151002 l -0.135901 -0.151002 c -0.105701 0 -0.196302 -0.226502 -0.332203 -0.302002 Z M 1000.41 953.966 Z M 915.969 1013.37 c -0.437904 -0.226502 -1.02681 -0.226502 -1.51001 -0.437904 l -0.543605 -0.407703 l -0.528504 -0.362403 s -0.120801 -0.211402 -0.211402 -0.256703 a 1.51001 1.51001 0 0 1 -0.271802 -0.120801 l -0.256702 -0.196301 c -0.196302 -0.090601 -0.468104 0 -0.649306 -0.120801 s -0.453004 -0.377503 -0.724806 -0.498304 c 0 0 -0.196302 0.105701 -0.332203 0.135901 a 1.51001 1.51001 0 0 0 -0.271802 -0.120801 l -0.528504 -0.392604 l -0.317103 -0.105701 l -0.573805 -0.422803 c -0.181202 -0.090601 -0.377503 -0.090601 -0.573805 -0.166101 s -0.407703 -0.241602 -0.588905 -0.332203 a 6.73466 6.73466 0 0 0 -0.830507 -0.166102 a 1.34391 1.34391 0 0 1 -0.256702 -0.120801 h -0.407703 c -0.120801 0 -0.347303 -0.211402 -0.483204 -0.196301 s -0.105701 0 -0.151001 0.0906 a 0.407703 0.407703 0 0 1 -0.302003 0 c -0.166101 0 -0.226502 0.151001 -0.377503 0.135902 s -0.241602 0 -0.347303 0 s -0.317103 0.120801 -0.498304 0.0906 a 2.08382 2.08382 0 0 1 -0.694606 -0.437903 a 2.73312 2.73312 0 0 0 -0.422804 -0.181202 c -0.256702 -0.120801 -0.437904 -0.362403 -0.694606 -0.483204 h -0.392603 c -0.649305 -0.271802 -1.38921 -0.392603 -2.02342 -0.664405 c -0.151001 0 -0.332203 0 -0.468104 -0.120801 a 2.17442 2.17442 0 0 1 -0.483204 -0.347303 a 7.29336 7.29336 0 0 1 -0.875807 -0.649306 a 4.96794 4.96794 0 0 0 -0.664406 -0.422803 l -0.513404 -0.377504 h -0.196302 l -0.483204 -0.362403 h -0.286902 c -0.090601 0 -0.332203 -0.302003 -0.528505 -0.392603 s -0.211402 0 -0.317102 0 l -0.241602 -0.196302 l -0.619105 -0.422803 l -0.166102 -0.135901 c -0.151001 0 -0.332203 0 -0.498304 -0.135901 l -0.951308 -0.649306 c -0.196302 -0.181202 -0.377503 -0.271802 -0.483204 -0.588905 V 1002.65 a 1.67611 1.67611 0 0 0 -0.166101 -0.528505 l -0.347303 -0.226502 v -0.
79135901 a 1.14761 1.14761 0 0 0 -0.347303 -0.256702 a 2.71802 2.71802 0 0 0 -0.196302 -0.785207 h -0.468104 c -0.135901 0 -0.498304 -0.196302 -0.724806 -0.256702 h -0.422804 a 3.21633 3.21633 0 0 0 -0.407703 -0.120801 a 1.38921 1.38921 0 0 0 -0.377503 0.120801 a 0.860707 0.860707 0 0 1 -0.483204 0 a 6.93096 6.93096 0 0 0 -0.966408 -0.422803 h -0.302003 l -0.543604 -0.135901 a 7.09706 7.09706 0 0 1 -0.755007 -0.573805 l -0.377503 -0.241602 v -0.181202 a 3.36733 3.36733 0 0 0 -0.815407 -0.498304 h -0.241602 c -0.075501 0 -0.468104 -0.437904 -0.755006 -0.543605 h -0.181202 a 2.43112 2.43112 0 0 0 -0.528504 -0.151001 c -0.166101 0 -0.347303 0.105701 -0.498304 0 s -0.483204 -0.181202 -0.739907 -0.211402 s -0.498304 0 -0.724806 0 s -0.573805 -0.241602 -0.860707 -0.302002 s -0.483204 0 -0.724806 0 s -0.785207 -0.241602 -1.16271 -0.347303 s -0.528504 0 -0.770106 -0.075501 s -0.226502 -0.151001 -0.347303 -0.196301 s -0.528504 -0.135901 -0.770107 -0.256702 l -0.483204 -0.362404 l -0.724806 -0.498304 a 1.94792 1.94792 0 0 0 -0.271802 -0.241602 h -0.151001 c -0.347303 0 -0.483204 0.241602 -0.739906 0.347303 s -0.256702 0 -0.362403 0 h -0.362404 a 4.00153 4.00153 0 0 1 -0.453003 -0.166101 h -0.302003 l -0.634205 -0.241602 a 3.51833 3.51833 0 0 1 -0.377503 -0.105701 c -0.226502 -0.105701 -0.498304 -0.347303 -0.739907 -0.437904 a 2.20462 2.20462 0 0 0 -0.453003 -0.105701 a 4.40924 4.40924 0 0 1 -0.468104 -0.211401 c -0.211402 -0.090601 -0.407703 -0.105701 -0.619106 -0.196302 l -0.573804 -0.437904 c -0.181202 -0.075501 -0.377503 0 -0.558705 -0.135901 s -0.166101 -0.105701 -0.256702 -0.120801 h -0.271802 s -0.105701 -0.090601 -0.151002 -0.090601 s -0.347303 0.166101 -0.528504 0.105701 l -0.377503 -0.286902 a 6.71956 6.71956 0 0 1 -0.830507 -0.573805 c -0.135901 -0.120801 -0.241602 -0.317103 -0.392604 -0.392603 a 2.68782 2.68782 0 0 0 -0.709706 -0.105701 c -0.286902 0 -0.498304 0.226502 -0.785206 0.166101 s -0.528504 -0.407703 -0.800307 -0.528504 s -0.105701 0 -0.181201 0 s -0.181202 -0.105701 -0.271803 -0.135901 s -0.241602 0 -0.347303 0 a 3.79013 3.79013 0 0 0 -1.08721 -0.332203 a 4.53004 4.53004 0 0 0 -0.981508 0.166101 s -0.105701 0.105701 -0.151001 0.120801 s -0.211402 0 -0.271803 0 s -0.256702 0.120801 -0.422803 0.151001 a 6.53835 6.53835 0 0 1 -1.05701 -0.724806 h -0.543605 c -0.120801 0 -0.286902 0.151001 -0.392603 0.181202 s -0.211402 0 -0.332203 0 s -0.105701 0.135901 -0.241602 0.120801 h -0.120801 c -0.181202 0 -0.211402 0.181202 -0.422803 0.166101 a 2.43112 2.43112 0 0 1 -0.890908 -0.422803 l -0.241602 -0.196302 l -0.528504 -0.166101 h -0.256702 a 3.95623 3.95623 0 0 1 -0.513405 -0.362403 a 0.362403 0.362403 0 0 0 -0.211401 0.135901 c -0.392603 0 -0.664406 -0.271802 -0.9
7906008 -0.437904 l -0.966408 -0.694606 l -0.377503 -0.256702 s 0 -0.105701 -0.075501 -0.166101 l -0.317103 -0.211402 s -0.075501 -0.166101 -0.135901 -0.211402 s -0.151001 0.075501 -0.241602 0 s -0.347303 -0.166101 -0.543604 -0.166101 s -0.302003 0.151001 -0.498305 0.135901 a 3.02003 3.02003 0 0 1 -1.01171 -0.135901 l -0.543605 -0.407704 h -0.407703 c -0.135901 0 -0.151001 -0.151001 -0.226502 -0.181201 a 6.19105 6.19105 0 0 0 -0.755006 -0.211402 c -0.392603 -0.120801 -0.830507 -0.302003 -1.23821 -0.392603 a 5.10384 5.10384 0 0 0 -0.679505 0 a 3.02003 3.02003 0 0 0 -0.392604 -0.105701 h -0.377503 c -0.392603 -0.151001 -0.815407 -0.271802 -1.20801 -0.453004 s -0.347303 -0.286902 -0.543605 -0.392603 s -0.347303 -0.075501 -0.543604 -0.166102 s -0.513404 -0.317103 -0.755006 -0.437903 s -0.241602 0 -0.347303 -0.075501 l -0.181202 -0.120801 a 11.159 11.159 0 0 0 -1.61571 -0.498304 c -0.226502 0 -0.453004 -0.181202 -0.679506 -0.226502 a 3.02003 3.02003 0 0 0 -0.875808 0 a 6.23635 6.23635 0 0 1 0.679506 0.256702 c 0.181202 0.090601 0.362403 0.226502 0.543605 0.317103 a 9.98118 9.98118 0 0 1 1.01171 0.362403 l 1.51001 1.14761 c 1.38921 0.724806 2.62742 1.67611 4.09213 2.32542 a 5.23974 5.23974 0 0 0 1.29861 0.286902 a 4.53004 4.53004 0 0 1 1.31371 0.105701 a 7.55006 7.55006 0 0 1 1.22311 0.815407 a 2.35562 2.35562 0 0 1 0.302002 0.241602 c 0.468104 0.226502 0.921108 0.468104 1.38921 0.679506 l 0.407703 0.105701 l 0.709706 0.302002 c 0.256702 0.120801 0.483204 0.347303 0.739906 0.468104 s 0.875807 0.347303 1.31371 0.543605 s 0.498304 0.256702 0.739907 0.347303 a 3.02003 3.02003 0 0 0 0.755006 0.120801 h 0.634205 a 3.86563 3.86563 0 0 1 0.709706 0 c 0.090601 0 0.211402 0.090601 0.302003 0.105701 h 0.332203 a 5.45115 5.45115 0 0 1 0.996608 0.664405 a 4.15253 4.15253 0 0 1 0.664405 0.483204 c 0.181202 0.166101 0.302003 0.543605 0.483205 0.679506 a 1.75162 1.75162 0 0 0 0.694605 0.256702 l 0.256703 0.120801 a 2.79352 2.79352 0 0 0 0.347302 0 l 0.785207 0.317103 a 8.77317 8.77317 0 0 1 1.14761 0.815407 a 12.5331 12.5331 0 0 1 1.63081 1.19291 l 0.830507 0.573805 a 3.41263 3.41263 0 0 0 0.437904 0.377503 a 1.17781 1.17781 0 0 0 0.468104 0.105701 c 0.588905 0.151001 1.37411 0 1.91772 0.196301 a 6.16085 6.16085 0 0 1 1.25331 0.815407 a 4.21293 4.21293 0 0 1 0.694605 0.498304 c 0.271802 0.271802 0.422804 0.679506 0.724807 0.906008 a 2.35562 2.35562 0 0 0 1.34391 -0.105701 a 1.69121 1.69121 0 0 1 0.634205 -0.135901 a 3.02003 3.02003 0 0 1 1.13251 0.286902 c 0.151001 0 0.286902 0.211402 0.422803 0.286903 l 0.785207 0.377503 l 0.649305 0.498304 l 0.664406 0.453004 c 0.181202 0.166101 0.377503 0.347303 0.543604 0.528504 s 0.166101 0.302003 0.302003 0.377503 a 3.44283 3.44283 0 0 0 1.26841 0.181202 a 11.4308 11.4308 0 0 1 1.19291 -0.090601 a 8.28997 8.28997 0 0 1 2.28012 0.921108 c 0.286902 0.120801 0.604005 0.151001 0.890907 0.286902 a 7.80677 7.80677 0 0 1 0.996609 0.694606 l 0.528504 0.362403 s 0.090601 0.135901 0.151001 0.181202 a 3.11063 3.11063 0 0 0 0.528505 0.181201 c 0.271802 0.105701 0.528504 0.286902 0.785206 0.407704 s 0.226502 0 0.347303 0.135901 c 0.483204 0.241602 0.906008 0.588905 1.41941 0.800307 s 1.22311 0.241602 1.79692 0.468103 a 7.71617 7.71617 0 0 0 1.01171 0.468104 a 3.59383 3.59383 0 0 0 1.29861 -0.1057 h 1.16271 l 0.951308 -0.151002 a 13.7864 13.7864 0 0 1 2.52172 0.075501 a 7.21786 7.21786 0 0 1 1.11741 0.604005 c 0.483204 0.241602 0.996608 0.422804 1.51001 0.664406 s 0.800307 0.619105 1.26841 0.815406 s 1.05701 0.166101 1.51001 0.332203 a 13.7864 13.7864 0 0 1 1.34391 0.649306 c 0.362403 0.151001 0.770106 0.211402 1.14761 0.362403 s 0.755006 0.407703 1.11741 0.604005 l 0.664406 0.286902 a 4.53004 4.53004 0 0 0 1.02681 0.483204 c 0.468104 0.120801 1.02681 0.105701 1.51001 0.241602 c 0.226502 0 0.468104 0.241602 0.709706 0.302003 s 0.951308 0.135901 1.43451 0.256702 s 0.634205 0.211402 0.936208 0.256702 h 1.76672 c 0.558705 0.090601 1.10231 0.362403 1.64591 0.453004 h 0.528504 a 9.63388 9.63388 0 0 0 1.31371 0 c -0.090601 -0.151001 -0.286902 -0.181202 -0.407703 -0.302003 s -0.120801 -1.08721 -0.256702 -1.14761 Z M 908.374 1023.79 a 3.57873 3.57873 0 0 1 -0.528505 -0.286902 l -0.135901 -0.135901 a 5.85885 5.85885 0 0 0 -0.694606 -0.332203 c -0.090601 0 -0.135901 -0.166101 -0.226501 -0.211402 s -0.513404 -0.166101 -0.755007 -0.286902 s -0.166101 -0.151001 -0.256702 -0.226502 l -0.
79181202 -0.090601 a 3.75993 3.75993 0 0 1 -0.543604 -0.453004 c -0.105701 -0.105701 -0.302003 -0.135901 -0.437904 -0.211402 s -0.151001 -0.151001 -0.226502 -0.226501 a 2.23482 2.23482 0 0 0 -0.528504 -0.286903 l -0.302003 -0.302002 c -0.181202 -0.090601 -0.317103 -0.211402 -0.483204 -0.286903 s -0.256702 0 -0.392603 -0.090601 l -0.649305 -0.483204 h -0.392604 s 0 -0.090601 -0.135901 -0.0906 a 6.19105 6.19105 0 0 0 -0.860707 0.120801 h -0.151001 c -0.060401 0 -0.347303 -0.135901 -0.498305 -0.166102 s -0.286902 0.135901 -0.498304 0.105701 s -0.362403 -0.135901 -0.528504 -0.151001 s -0.211402 0.090601 -0.347303 0.120801 l -0.785207 -0.543605 l -0.317102 -0.256702 h -0.377504 a 3.74483 3.74483 0 0 0 -0.558704 -0.256702 h -0.332203 l -0.135901 -0.105701 h -0.392603 l -0.437904 -0.332203 l -0.815407 -0.407703 l -0.362403 -0.271802 h -0.256702 l -0.392603 -0.286903 a 5.16424 5.16424 0 0 1 -1.26841 -1.10231 a 3.23143 3.23143 0 0 0 -1.41941 -0.588905 a 2.68782 2.68782 0 0 1 -0.422804 0.573805 c -0.634205 0.105701 -0.981508 -0.317103 -1.37411 -0.588905 s -0.392603 -0.196302 -0.483204 -0.468104 l -0.271802 -0.075501 h -0.392604 a 2.41602 2.41602 0 0 1 -0.437903 -0.286902 c -0.166101 0 -0.196302 0.166101 -0.422804 0.196302 a 1.26841 1.26841 0 0 0 -0.588905 -0.226502 h -0.256702 s -0.090601 0 -0.135901 -0.090601 s -0.241602 0 -0.362403 -0.120801 s -0.453004 -0.377503 -0.709706 -0.498304 s -0.815407 -0.226502 -1.19291 -0.422804 l -1.19291 -0.860707 c -0.105701 0 -0.241602 0 -0.347303 -0.090601 l -0.724806 -0.543604 l -0.453004 -0.302003 s 0 -0.120801 -0.090601 -0.181201 s -0.271802 -0.120801 -0.347303 -0.241603 s 0 -0.377503 -0.120801 -0.528504 s -0.166101 -0.181202 -0.226502 -0.271802 v -0.226502 c -0.075501 -0.166101 -0.241602 -0.271802 -0.347303 -0.407704 l -0.105701 -0.196301 l -0.709705 -0.271802 h -0.362404 c -0.120801 0 -0.151001 -0.105701 -0.226501 -0.135902 a 3.68443 3.68443 0 0 0 -0.830507 -0.181201 c -0.286902 0 -0.543605 0 -0.770107 -0.090601 l -0.513404 -0.377503 c -0.226502 -0.105701 -0.453004 -0.166101 -0.664406 -0.271802 l -0.483204 -0.377504 c -0.135901 0 -0.302003 0 -0.437903 -0.1057 l -0.649306 -0.483204 c -0.151001 -0.105701 -0.377503 -0.211402 -0.513404 -0.317103 l -0.256702 -0.286903 c -0.090601 -0.090601 -0.226502 -0.135901 -0.302003 -0.226501 s -0.407703 -0.543605 -0.724806 -0.679506 a 1.67611 1.67611 0 0 0 -1.14761 0.151001 l -0.619105 0.120801 c -0.166101 0 -0.407703 0.271802 -0.649305 0.211402 a 3.30693 3.30693 0 0 1 -0.498305 -0.181202 l -0.468103 -0.347303 h -0.317103 a 2.26502 2.26502 0 0 1 -0.634205 -0.135901 l -0.694606 -0.528504 h -0.120801 c -0.105701 0 -0.196302 -0.105701 -0.286903 -0.135901 h -0.286902 s -0.151001 -0.105701 -0.241602 -0.120801 s -0.166101 0 -0.256702 0 a 3.02003 3.02003 0 0 1 -0.664406 -0.407704 l -0.135901 -0.120801 h -0.211402 l -0.739906 -0.528504 l -0.347303 -0.241602 s 0 -0.105701 -0.075501 -0.166102 l -0.377503 -0.256702 v -0.151001 l -0.347303 -0.226502 c 0 -0.075501 0 -0.211402 -0.105701 -0.302002 l -0.392603 -0.211402 a 2.64252 2.64252 0 0 0 -0.815407 -0.120801 l -0.543604 -0.135901 h -0.483204 c -0.241602 0 -0.558705 -0.135901 -0.800307 -0.181202 l -0.422804 0.105701 a 1.73652 1.73652 0 0 1 -0.347302 -0.151001 a 1.19291 1.19291 0 0 0 -0.347303 0.498304 a 2.82372 2.82372 0 0 1 -2.38582 -0.694606 c -0.166101 -0.120801 -0.543605 -0.302003 -0.649306 -0.483204 a 0.770106 0.770106 0 0 1 0 -0.679506 l -0.241602 -0.105701 h -0.332203 c -0.211402 -0.075501 -0.362403 -0.302003 -0.558704 -0.392603 a 1.82712 1.82712 0 0 0 -0.271803 -0.075501 a 4.37904 4.37904 0 0 0 -0.785206 -0.271802 c
79-0.392603 -0.075501 -0.573805 0.407703 -0.785207 0.332203 l -0.241602 -0.196302 c -0.105701 0 -0.226502 0 -0.317103 -0.0906 l -0.362403 -0.271803 a 5.81355 5.81355 0 0 1 -0.785206 -0.573805 l -0.453004 -0.302002 c -0.135901 -0.151001 -0.166101 -0.317103 -0.332203 -0.407703 a 0.437904 0.437904 0 0 1 0 -0.211402 c -0.271802 -0.075501 -0.664406 0 -0.936208 -0.075501 a 14.8887 14.8887 0 0 0 -1.63081 -0.573805 h -0.347303 a 1.51001 1.51001 0 0 1 -0.573805 -0.196301 l -0.619105 -0.347303 l -0.468104 -0.347303 h -0.196302 l -0.543604 -0.407704 c -0.135901 0 -0.302003 -0.090601 -0.453004 -0.166101 l -0.513405 -0.392603 a 2.52172 2.52172 0 0 0 -0.392603 -0.090601 a 6.47795 6.47795 0 0 1 0.694606 0.739906 c 0.135901 0.135901 0.317103 0.241602 0.437904 0.377503 s 0.271802 0.347303 0.437903 0.422804 c 0.483204 0.241602 1.01171 0.392603 1.51001 0.634205 l 1.38921 0.966408 l 0.332202 0.256702 a 13.2428 13.2428 0 0 1 1.22311 0.815407 l 0.619105 0.422804 a 3.44283 3.44283 0 0 1 0.709706 0.830507 c 0.151001 0.226502 0.226502 0.634205 0.437904 0.739906 c 0.679506 0.347303 1.51001 0.362403 2.21972 0.709706 l 0.604005 0.453004 a 7.20276 7.20276 0 0 1 1.14761 0.906007 c 0.347303 0.377503 0.604005 0.815407 0.981508 1.16271 c 0.151001 0.151001 0.437904 0.196302 0.634206 0.302003 l 0.302002 0.226502 a 8.48627 8.48627 0 0 0 0.981508 0.649305 l 0.166102 0.135901 a 12.0801 12.0801 0 0 0 1.08721 0.528505 c 0.377503 0.151001 0.770106 0.226502 1.11741 0.392603 l 0.709706 0.528504 l 0.755007 0.513405 a 2.32542 2.32542 0 0 0 0.256702 0.286902 a 0.573805 0.573805 0 0 0 0.151001 0 l 1.05701 0.513404 c 0.256702 0.135901 0.483204 0.362403 0.739906 0.498305 l 0.196302 0.151001 c 0.483204 0.241602 1.02681 0.362403 1.51001 0.573805 s 0.588905 0.362403 0.906008 0.483204 s 0.860707 0.151001 1.23821 0.332203 l 0.558705 0.422803 l 0.785207 0.543605 c 0.211402 0.211402 0.362403 0.558705 0.634205 0.679505 a 8.38057 8.38057 0 0 0 1.10231 0.211402 a 12.0801 12.0801 0 0 1 1.51001 0.573805 c 0.453004 0.181202 0.966408 0.181202 1.41941 0.362403 c 0.679506 0.271802 1.25331 0.694606 1.91772 0.966408 a 5.84375 5.84375 0 0 0 0.921108 0.196302 c 0.437904 0.105701 0.906008 0.226502 1.31371 0.362403 a 1.78182 1.78182 0 0 0 0.407703 0 a 8.28997 8.28997 0 0 1 2.23482 0.105701 l 1.34391 0.604005 c 0.120801 0 0.256702 0 0.362403 0.0755 c 0.573805 0.226502 1.20801 0.377503 1.76672 0.619106 s 0.845607 0.332203 1.23821 0.528504 s 0.453004 0.271802 0.709706 0.377503 s 1.23821 0 1.72142 0.151001 s 0.619105 0.317103 0.936208 0.437904 s 0.558705 0.105701 0.815407 0.226502 s 0.785207 0.619105 1.23821 0.815407 s 1.41941 0.166101 2.02342 0.422803 a 13.0918 13.0918 0 0 1 1.19291 0.649306 c 0.120801 0 0.241602 0 0.377503 0.120801 a 5.84375 5.84375 0 0 0 1.01171 0.392603 a 7.86717 7.86717 0 0 0 0.830507 0.120801 h 0.453003 c 0.422804 0 0.906008 0.135901 1.29861 0.196302 s 0.830507 0 1.23821 0.120801 a 7.12726 7.12726 0 0 1 1.51001 0.845607 l 0.196302 0.166101 c 0.347303 0.166101 0.724806 0.241602 1.10231 0.392604 a 4.90754 4.90754 0 0 0 0.649306 0.271802 l 0.709706 0.135901 h 0.377503 c 0.453004 0 0.890907 0.286902 1.31371 0.377503 s 0.996608 0.166101 1.51001 0.286903 a 2.32542 2.32542 0 0 0 0.286902 0.120801 a 5.69275 5.69275 0 0 0 0.649306 0.151001 a 1.11741 1.11741 0 0 1 0.407703 0 Z M 915.894 1001.67 h -0.151001 a 2.31032 2.31032 0 0 1 -0.407704 -0.166101 l -0.513404 -0.392603 c -0.196302 -0.090601 -0.422804 -0.075501 -0.619105 -0.166102 s -0.422804 -0.377503 -0.664406 -0.483204 h -0.377503 l -0.196302 -0.120801 h -0.241602 l -0.498304 -0.377503 l -1.34391 -1.01171 l -0.468104 -0.347303 a 3.44283 3.44283 0 0 0 -0.906008 -0.181202 h -0.347303 a 4.28844 4.28844 0 0 1 -0.573804 -0.196301 a 4.93774 4.93774 0 0 1 -0.845608 -0.196302 l -1.51001 -1.08721 a 3.26163 3.26163 0 0 1 -0.271802 -0.453004 a 3.36733 3.36733 0 0 0 -0.392604 -0.407703 a 2.21972 2.21972 0 0 0 -1.01171 -0.513405 a 3.45793 3.45793 0 0 1 -0.468104 -0.135901 l -0.543605 -0.407703 l -0.543604 -0.362403 c -0.105701 -0.166101 -0.226502 -0.317103 -0.332203 -0.468104 h -0.196302 a 5.63235 5.63235 0 0 0 -1.14761 -0.347303 c -0.166101 0 -0.392603 0.090601 -0.528505 0 l -0.332203 -0.256702 c -0.256702 -0.12
790801 -0.453004 -0.271802 -0.709706 -0.407704 l -0.196301 -0.181201 c -0.151001 -0.075501 -0.317103 0 -0.468104 -0.135901 s -0.181202 -0.105701 -0.286903 -0.135902 a 1.17781 1.17781 0 0 1 -0.241602 0 c -0.256702 -0.120801 -0.498304 -0.377503 -0.739906 -0.498304 h -0.211402 l -0.739906 -0.543604 h -0.211402 a 1.02681 1.02681 0 0 0 -0.362403 -0.120801 l -0.422803 0.120801 c -0.196302 0 -0.332203 -0.151001 -0.513405 -0.181202 s -0.317103 0.105701 -0.437903 0.105701 a 1.60061 1.60061 0 0 0 -0.377503 0 s -0.196302 0.135901 -0.332203 0.105701 s -0.181202 -0.105701 -0.286903 -0.120801 h -0.362403 a 1.26841 1.26841 0 0 0 -0.256702 -0.075501 h -0.271802 a 6.76486 6.76486 0 0 1 -1.85732 -0.875807 c -0.256702 -0.135901 -0.453004 -0.407703 -0.724806 -0.528505 v -0.1057 c -0.241602 0 -0.392603 -0.135901 -0.604005 -0.181202 a 4.36394 4.36394 0 0 1 -1.01171 -0.302003 l -0.679506 -0.498304 l -0.317103 -0.0906 c -0.105701 0 -0.196302 -0.120801 -0.302002 -0.135902 a 2.35562 2.35562 0 0 1 -0.588905 0 l -0.558705 -0.422803 l -0.649305 -0.453004 a 4.34884 4.34884 0 0 0 -0.513405 -0.407703 s 0 -0.090601 -0.0906 -0.105701 a 1.94792 1.94792 0 0 0 -0.513405 0 a 0.890907 0.890907 0 0 1 -0.302002 0.0755 l -0.241602 -0.0755 h -0.347303 c -0.543605 0 -0.981508 -0.332203 -1.51001 -0.377503 l -0.755006 0.0755 s -0.151001 0.120801 -0.271802 0.105701 a 3.47303 3.47303 0 0 1 -1.37411 -0.739906 l -0.302003 -0.241602 a 3.30693 3.30693 0 0 0 -0.513404 -0.151001 h -0.453004 c -0.135901 0 -0.256702 -0.135901 -0.422803 -0.135902 s -0.271802 0.151001 -0.453004 0.120801 s -0.347303 -0.151001 -0.543605 -0.181201 a 4.03173 4.03173 0 0 1 -0.604005 0 c -0.151001 0 -0.271802 -0.241602 -0.422803 -0.317103 a 4.80184 4.80184 0 0 0 -0.498304 -0.120801 a 2.89922 2.89922 0 0 1 -0.573805 -0.377503 a 4.96794 4.96794 0 0 1 -1.37411 0.151001 a 8.09367 8.09367 0 0 1 -0.815407 -0.392603 c -0.226502 -0.090601 -0.453004 -0.105701 -0.664405 -0.211402 a 3.35223 3.35223 0 0 0 -0.558705 -0.317102 a 3.75993 3.75993 0 0 0 -0.558705 -0.135902 a 1.51001 1.51001 0 0 0 -0.694605 0.166102 h -0.362403 c -0.105701 0 -0.226502 0.090601 -0.377504 0 a 3.82033 3.82033 0 0 1 -0.679505 -0.286903 h -0.286903 c -0.090601 0 -0.181202 -0.120801 -0.286902 -0.135901 h -0.196302 c -0.135901 0 -0.241602 -0.211402 -0.377503 -0.271802 a 1.51001 1.51001 0 0 0 -0.241602 0 c -0.166101 -0.075501 -0.332203 -0.226502 -0.498304 -0.302003 s -0.619105 -0.135901 -0.890908 -0.241602 a 3.50323 3.50323 0 0 0 -0.543604 -0.241602 h -0.377503 l -0.332203 -0.135901 c -0.196302 0 -0.332203 0.151001 -0.588905 0.135901 s -0.256702 -0.120801 -0.392603 -0.151001 s -0.498304 0.090601 -0.724806 0 l -0.543605 -0.151001 h -0.407703 c -0.181202 0 -0.362403 -0.120801 -0.543605 -0.135901 s -0.709706 0 -0.709706 0 a 0.573805 0.573805 0 0 1 -0.241602 0 c -0.271802 0 -0.468104 -0.362403 -0.709706 -0.468104 s -0.166101 0 -0.256702 0 s -0.528504 -0.181202 -0.770107 -0.211402 s -0.286902 0.135901 -0.422803 0.135901 s -0.302003 -0.105701 -0.453004 -0.135901 h -0.392603 a 2.44622 2.44622 0 0 1 -0.664406 -0.211402 c -0.211402 0 -0.241602 0.181202 -0.483204 0.226502 a 4.36394 4.36394 0 0 1 -0.770106 -0.528504 c -0.211402 0 -0.181202 0.151001 -0.317103 0.226502 l -0.377503 0.0906 c -0.120801 0 -0.196302 0.181202 -0.286903 0.241602 s -0.241602 0 -0.377503 0.105701 s -0.135901 0.135901 -0.211402 0.166102 a 0.996608 0.996608 0 0 1 -0.604005 -0.135901 c -0.166101 0 -0.166101 0.211402 -0.256702 0.317102 c 0.271802 0.090601 0.543605 0.256702 0.815407 0.362403 s 0.634205 0.105701 0.966408 0.196302 h 0.090601 a 10.857 10.857 0 0 1 1.25331 0.196302 a 9.73958 9.73958 0 0 0 1.29861 0.573804 c 0.830507 0.211402 1.99322 -0.120801 2.83882 0 s 2.00832 0.815407 3.02003 1.05701 a 18.2561 18.2561 0 0 1 2.15932 0.407704 c 0.936208 0.392603 1.69121 1.04191 2.68782 1.35901 a 9.06008 9.06008 0 0 0 1.51001 0.226502 h 0.392603 a 7.76147 7.76147 0 0 1 1.20801 0.196302 a 3.02003 3.02003 0 0 1 0.528505 0.0755 c 0.498304 0.196302 0.890907 0.604005 1.38921 0.800307 s 1.16271 0.286902 1.69121 0.528504 s 0.604005 0.347303 0.906007 0.483205 s 0.770106 0.211402 1.10231 0.377503 c 0.558705 0.271802 1.01171 0.755006 1.51001 1.02681 l 0.664406 0.302003 c 0.302003 0.120801 0.604005 0.166101 0.890907 0.302002 c 0.709706 0.362403 1.23821 1.05701 1.97812 1.37411 h 0.211402 c 0.105701 0 0.226502 0.105701 0.332202 0.120801 c 0.362403
790.105701 0.664406 0.090601 1.04191 0.166101 s 0.604005 0.181202 0.890908 0.241602 h 0.347303 c 0.422804 0 0.890907 0.135901 1.29861 0.241602 a 6.43265 6.43265 0 0 1 1.28351 0.543605 c 0.151001 0 0.286902 0.211402 0.437904 0.286902 q 0.679506 0.347303 1.40431 0.634206 a 13.0616 13.0616 0 0 0 1.76672 0.332202 a 18.6034 18.6034 0 0 1 1.88751 0.679506 c 0.362403 0.135901 0.755006 0.120801 1.11741 0.286903 s 0.437904 0.271802 0.679506 0.377503 s 0.966408 0.392603 1.41941 0.634205 l 0.951307 0.694606 l 0.936208 0.649305 a 1.87242 1.87242 0 0 0 0.619106 0.468104 a 2.37072 2.37072 0 0 0 0.347302 0 a 7.27826 7.27826 0 0 0 1.02681 0.226502 H 901.715 a 3.94113 3.94113 0 0 1 0.422803 0 a 2.61232 2.61232 0 0 1 0.845608 0.422804 l 0.302002 0.241602 c 0.347303 0.181202 0.739906 0.241602 1.11741 0.407703 a 2.76332 2.76332 0 0 0 0.724807 0.271802 a 3.60893 3.60893 0 0 0 1.23821 -0.151001 a 2.74822 2.74822 0 0 1 0.890907 -0.181201 a 10.1473 10.1473 0 0 1 2.31032 0.332202 a 7.55006 7.55006 0 0 1 0.981508 0.332203 a 4.80184 4.80184 0 0 1 0.558705 0.407704 c 0.181202 0.120801 0.362403 0.211402 0.528504 0.332202 s 0.422804 0.437904 0.588905 0.483205 a 3.14083 3.14083 0 0 0 0.377503 0 l 0.800307 0.0755 h 0.422804 c 0.181202 0 0.377503 0.075501 0.528504 0.090601 h 0.483204 s 0.166101 0.090601 0.241602 0.105701 s 0.362403 0 0.528505 0 a 1.76672 1.76672 0 0 1 0.362403 0.135901 s 0.120801 0.135901 0.211401 0.151001 s 0.286902 -0.090601 0.392604 0 h 0.151001 c -0.347303 0.060401 -0.528504 -0.332203 -0.830507 -0.453004 Z M 916.815 1002.26 s 0.0151 -0.0302 0 0 Z"},{path:"M493.3 591.9c-29.2 0-57.1-7.2-81.9-21.5-46.3-26.8-76.4-75-84.6-135.9-8.1-60 6.1-125.2 39.8-183.6l8.5 4.9-8.5-4.9c33.7-58.4 83.1-103.3 139.1-126.3 56.8-23.4 113.7-21.5 160 5.3s76.4 75 84.6 135.9c8.1 60-6.1 125.2-39.8 183.6s-83.1 103.3-139.1 126.3c-26.3 10.7-52.7 16.2-78.1 16.2z m90.5-464c-22.8 0-46.7 4.9-70.6 14.7-52 21.4-98 63.3-129.6 118s-44.9 115.5-37.4 171.2c7.4 54.8 34 97.9 75 121.6 41 23.7 91.7 25.1 142.8 4.1 52-21.4 98-63.3 129.6-118 31.6-54.7 44.9-115.5 37.4-171.2-7.4-54.8-34-97.9-75-121.6-21.8-12.5-46.3-18.8-72.2-18.8z M359.2 749.8l-78-46.1 4.1-8.2c24.5-48.4 34-101.4 26.7-149.2-1.8-11.9-4.7-23.5-8.5-34.3l-5-13.9h0.3c-1.2-3.5-2.4-7.1-3.2-9.9-11.3-38.3-14-81.5-7.8-125 6.5-45.4 22-89.6 46.1-131.4 40-69.2 98.6-122.2 165.1-149.2 67.4-27.4 134.8-24.9 189.9 6.9 55.1 31.8 90.9 89 100.9 161 9.9 71.1-6.7 148.4-46.7 217.6-26.9 46.6-63.1 86.7-104.7 116-40.4 28.4-84.8 46-128.5 50.7-55.9 11.8-109 50.9-145.6 107.2l-5.1 7.8z m-52.3-53.6l46.3 27.4c39.3-56.6 94.8-95.8 153.4-107.9l1-0.1c84.2-9 168-69.1 218.8-157.1 77.5-134.3 56.4-292.2-47.1-351.9-49.7-28.7-111.1-30.7-172.8-5.7C444 126.1 388.7 176.2 351 241.6c-22.8 39.6-37.5 81.4-43.7 124.4-5.8 40.8-3.3 81.1 7.2 116.7 1.3 4.4 3.7 11.3 5.4 16.4 0.6 1.9 1.2 3.5 1.6 4.7 0.2 0.6 0.4 1.3 0.6 2 4.2 11.9 7.3 24.5 9.3 37.6 7.5 49.1-1.2 103-24.5 152.8z M343.2 697.6c-1.7 0-3.3-0.4-4.9-1.3-4.5-2.6-6.2-8.3-3.8-12.9 20.7-40.7 24.9-80.3 13.2-124.7-1.2-4.5 0.9-9.1 5-11.2 4.1-2.1 9.1-1 12 2.5 10.9 13.4 23.8 24.4 38.5 32.9 15.2 8.8 31.8 14.5 49.6 17.2 4.6 0.7 8.1 4.5 8.3 9.1 0.3 4.6-2.8 8.8-7.3 10-44.7 11.8-77.3 35.3-102.4 74-1.9 2.8-5 4.4-8.2 4.4z m29.4-112.2c2.1 19 1.3 37.4-2.4 55.6 14-12.4 29.6-22.3 47.1-29.9-8.3-3.1-16.3-6.8-24-11.3-7.3-4.2-14.2-9-20.7-14.4zM228.4 960.3c-3.4 0-6.7-0.9-9.7-2.6l-46.4-26.8c-4.5-2.6-7.7-6.8-9.1-11.8-1.3-5-0.7-10.3 1.9-14.8l125.6-217.5 80.1 46.2-125.5 217.5c-2.6 4.5-6.8 7.7-11.8 9.1-1.7 0.4-3.4 0.7-5.1 0.7zM182.2 914l46.2 26.7 115.8-200.5-46.2-26.7L182.2 914z M272.1 741.12l4.9-8.487 61.054 35.25-4.9 8.486zM506.208 141.772l4.9-8.487 233.127 134.6-4.9 8.487zM448.237 178.29l4.9-8.487 285.26 164.7-4.9 8.487zM403.619 222.658l4.9-8.487 312.886 180.65-4.9 8.487zM373.244 275.148l4.9-8.487 312.886 180.65-4.9 8.487zM350.074 331.889l4.9-8.487 305.698 176.5-4.9 8.487zM329.416 390.013l4.9-8.487 279.199 161.2-4.9 8.487z M337.028 455.141l191.75-332.11 8.486 4.9-191.75 332.11zM368.464 519.27l228.45-395.675 8.486 4.9L376.95 524.17zM413.319 560.162l241.65-418.538 8.487 4.9-241.65 418.538zM471.101 578.562l229.35-397.235 8.487 4.9-229.35 397.235zM543.854 571.167l186.95-323.797 8.487 4.9-186.95 323.797z M786 872.5c-6.6 0-13.3-0.9-19.9-2.7-19.5-5.3-35.7-17.8-45.7-35.3-20.7-36.1-8.2-82.3 27.9-103 36.1-20.7 82.3-8.2 103 27.9 20.7 36.1 8.2 82.3-27.9 103-11.5 6.7-24.4 10.1-37.4 10.1z m-0.2-131.4c-9.4 0-19 2.4-27.7 7.4-26.7 15.3-36 49.6-20.7 76.3 7.4 13 19.5 22.2 33.9 26.2 14.4 3.9 29.5 2 42.4-5.5 13-7.4 22.2-19.5 26.2-33.9 3.9-14.4 2-29.5-5.5-42.4-10.3-18-29.2-28.1-48.6-28.1z M785 837.2c-14.5 0-28.6-7.5-36.3-21l8.5-4.9c8.8 15.3 28.4 20.6 43.7 11.8 15.3-8.8 20.6-28.4 11.8-43.7l8.5-4.9c11.5 20 4.5 45.5-15.5 57-6.5 3.9-13.6 5.7-20.7 5.7z M748.7 816.2c-6.1-10.6-17.9-16.8-30-16l-0.7-9.8c15.9-1.1 31.3 7.1 39.2 20.9l-8.5 4.9z M785 837.2c-14.5 0-28.6-7.5-36.3-21l8.5-4.9c8.8 15.3 28.4 20.6 43.7 11.8 7.4-4.2 12.7-11.1 15-19.4 2.2-8.2 1.1-16.9-3.1-24.3-5.5-9.6-15.4-15.6-26.5-16.1h-0.1c-13.8-0.9-26.3-8.9-33.5-21.4l8.5-4.9c5.4 9.4 15.2 15.8 25.6 16.5 14.4 0.6 27.4 8.4 34.5 21 5.5 9.7 7 20.9 4.1 31.7-2.9 10.8-9.9 19.8-19.5 25.3-6.7 3.9-13.8 5.7-20.9 5.7z M720.6 682c-3.4 0-6.7-1.8-8.5-4.9l-41.6-72.8c-2.7-4.7-1.1-10.7 3.6-13.3 4.7-2.7 10.7-1.1 13.3 3.6l41.6 72.8c2.7 4.7 1.1 10.7-3.6 13.3-1.5 0.8-3.2 1.3-4.8 1.3z M769.8 694c-3.4 0-6.7-1.8-8.5-4.9l-20.8-36.4c-2.7-4.7-1.1-10.7 3.6-13.3 4.7-2.7 10.7-1.1 13.3 3.6l20.8 36.4c2.7 4.7 1.1 10.7-3.6 13.3-1.4 0.9-3.1 1.3-4.8 1.3z"},{path:"M919.826 64.962l32.138 27.244-4.395 31.133-37.256 6.825-46.017 100.419-30.519-3.673-215.268 237.871c-14.847 39.758-5.926 61.609 9.759 75.011 40.698 34.799 86.902-7.806 87.799-0.022 10.452 89.78-75.177 80.816-111.928 97.558-109.296 49.791-37.169 122.438-10
795.349 237.134-149.11 273.074-602.617-153.189-346.957-327.549 110.569-74.657 202.877-12.507 239.699-120.574 20.471-59.997 61.949-187.191 119.416-185.579 24.578 0.687 13.763 26.131 6.216 38.585-17.174 38.818-23.766 90.482 33.035 118.355l228.93-222.38-12.332-28.958 124.244-75.769 28.785-5.631zM388.352 534.14l-18.361 20.855 101.808 89.54 18.36-20.862-101.807-89.533z m59.823-69.301l-18.36 20.855 101.807 89.541 18.36-20.862-101.807-89.534zM261.852 675.256l-41.333 41.137 105.031 98.844 39.309-39.114 95.49-28.113 3.947-1.164 2.081-3.563 5.421-9.253 9.165 4.887 24.535-46.01-36.679-19.553-24.533 46.002 9.165 4.879-2.919 4.959-100.058 29.471-88.622-83.409z"},{path:"M945.344 586.304c-13.056-93.44-132.48-98.048-132.48-98.048 0-29.888-39.808-47.424-39.808-47.424L201.664 440.832c-36.736 0-42.112 51.264-42.112 51.264 7.68 288 181.44 382.976 181.44 382.976l299.456 0c42.88-31.36 101.888-122.56 101.888-122.56 9.216 3.072 72.768-0.832 97.984-6.144C865.6 740.992 958.336 679.68 945.344 586.304zM365.568 825.28c-145.472-105.664-130.944-328.576-130.944-328.576l80.448 0c-44.416 126.4 43.648 285.696 55.872 307.904C383.232 826.816 365.568 825.28 365.568 825.28zM833.472 694.272c-37.568 22.272-65.152 7.68-65.152 7.68 39.04-54.4 42.112-159.296 42.112-159.296 6.848 2.304 12.288-26.048 61.312 23.744C920.768 616.128 871.04 672.064 833.472 694.272z M351.68 129.856c0 0-119.424 72.832-44.416 140.928 75.008 68.16 68.16 93.44 24.512 153.216 0 0 81.92-41.344 71.168-104.192s-89.6-94.208-72.768-137.792C347.136 138.304 351.68 129.856 351.68 129.856z M615.232 91.648c0 0-119.488 72.832-44.352 140.928 74.944 68.16 68.032 93.44 24.448 153.216 0 0 81.984-41.344 71.232-104.192-10.688-62.784-89.6-94.208-72.832-137.792C610.624 100.032 615.232 91.648 615.232 91.648z M491.136 64c0 0-74.304 6.144-88.128 78.144C389.248 214.144 435.968 240.96 471.936 276.992 507.904 312.96 492.608 380.352 452.032 427.904c0 0 72.768-25.344 89.6-94.976 16.832-69.76-17.344-94.272-52.8-134.784C453.312 157.504 456.64 83.968 491.136 64z"}]}};s5=p([F()],s5);let n5=class extends D{get tag(){return"PenCase"}getUI(e,t){const i=new Ks(e);i.cornerRadius=30;const s=this.colors;switch(t){case 0:i.setStyle({fill:s[0],windingRule:"evenodd"}),i.roundRect(0,0,100,100,30).arc(50,50,25),i.setStyle({fill:s[2]}),i.arc(50,50,20);break;case 1:i.setStyle({fill:{type:"linear",stops:[{offset:0,color:s[0]},{offset:1,color:s[2]}]},windingRule:"evenodd"}),i.roundRect(0,0,100,100,30).arc(50,50,20),i.setStyle({fill:"white"}),i.arc(75,75,5);break;case 2:i.setStyle({fill:{type:"radial",stops:[{offset:0,color:s[0]},{offset:1,color:s[2]}]}}),i.roundRect(0,0,100,100,30),i.setStyle({y:-5,fill:"white"}),i.moveTo(40,30).bezierCurveTo(70,30,90,60,63,80).quadraticCurveTo(50,88,40,80).bezierCurveTo(10,60,50,40,40,30);break;case 3:i.setStyle({fill:{type:"radial",stops:[{offset:0,color:s[5]},{offset:1,color:s[4]}]}}),i.roundRect(0,0,100,100,30),i.add(new Bt({x:20,y:20,width:60,height:60,innerRadius:.5,startAngle:-60,endAngle:180,cornerRadius:5,fill:"white"}));break;case 4:i.setStyle({fill:{type:"radial",stops:[{offset:0,color:s[5]},{offset:1,color:s[4]}]},windingRule:"evenodd"}),i.roundRect(0,0,100,100,30).arc(50,50,25),i.setStyle({fill:{type:"image",url:"/image/leafer.jpg"}}),i.arc(50,50,20);break;case 5:i.setStyle({stroke:s[5],strokeWidth:4,strokeAlign:"inside"}),i.roundRect(0,20,100,60,30),i.setStyle({fill:s[5]}),i.arc(30,50,23),i.add(new X({x:60,y:38,fill:s[5],fontSize:16,text:"ON"}))}return i}getData(){return[{},{},{},{},{},{}]}};n5=p([F()],n5);let r5=class extends D{get tag(){return"BoxCase"}getUI(e,t){const i=new k(e);i.fill=this.colors[t];const s=new Bt(e);switch(s.fill=this.colors[t+2],s.x=s.y=60,s.scaleX=s.scaleY=.5,s.draggable=!0,t){case 0:case 3:i.add(s);break;case 1:case 2:case 4:i.overflow="hide",i.add(s);break;case 5:i.fill=[{type:"solid",color:this.colors[t]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.3}],i.overflow="hide";const n=new Bt({x:50,y:50,width:40,height:40,fill:"black"});n.mask=!0,i.add(n),s.fill=this.colors[t-3],i.add(s);break;case 6:i.set({x:e.x+20,y:e.y+40,width:void 0,height:void 0,fill:"#FF4B4B",cornerRadius:20,children:[{tag:"Text",text:"Welcome to LeaferJS",fill:"black",padding:[10,20]}]})}return i}getData(){return[{stroke:"rgba(0,0,0,0.4)",strokeWidth:4},{stroke:"rgba(0,0,0,0.4)",strokeWidth:4,cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20}]}};r5=p([F()],r5);let o5=class extends D{get tag(){return"FrameCase"}getUI(e,t){const i=new W0(e);i.fill=this.colors[t];const s=new Bt(e);switch(s.fill=this.colors[t+2],s.x=s.y=60,s.scaleX=s.scaleY=.5,s.draggable=!0,t){case 0:case 3:i.add(s);break;case 1:i.fill={type:"linear",from:{type:"percent",x:0,y:0},to:{type:"percent",x:1,y:1},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},i.add(s);break;case 2:i.overflow="show",i.add(s);break;case 4:i.shadow={x:0,y:0,blur:20,color:this.colors[t]+"AA"},i.add(s);break;case 5:i.fill=[{type:"solid",color:this.colors[t]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.3}],i.innerShadow={x:0,y:0,blur:20,color:"#00000050"},i.overflow="show";const n=new Bt({x:50,y:50,width:40,height:40,fill:"black"});n.mask=!0,i.add(n),s.fill=this.colors[t-3],i.add(s)}return i}getData(){return[{stroke:"rgb(0,0,0)",strokeWidth:4,fill:"white"},{cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{strokeWidth:4,cornerRadius:20},{strokeWidth:4,cornerRadius:20}]}};o5=p([F()],o5);let a5=class extends D{get tag(){return"TextCase"}getUI(e,t){return t>=6?(e.x+=20,e.y+=40):(e.textAlign="center",e.verticalAlign="middle"),new X(e)}
79getData(){return[{fontSize:100,text:"A",fill:{type:"linear",from:{type:"percent",x:0,y:0},to:{type:"percent",x:1,y:1},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},italic:!0,fontWeight:"bold",stroke:"#00000060",strokeAlign:"inside",strokeWidth:1},{fontSize:100,text:"A",fontWeight:"bold",italic:!0},{fontSize:100,text:"A",fontWeight:"bold",italic:!0,fill:[{type:"solid",color:"#FEB027"},{type:"image",url:"/image/leafer.jpg",mode:"cover"}]},{fill:this.colors[2],text:`Action is the proper fruit of knowledge. 80Action is the proper fruit of knowledge.`,fontSize:14,textAlign:"left",verticalAlign:"top",textOverflow:"...",padding:[10,0,10,0]},{text:"Action is the proper fruit of knowledge.",fontSize:14,textAlign:"center",verticalAlign:"middle",textDecoration:"delete",textCase:"title"},{text:"Action is the proper fruit of knowledge.",fontSize:11,textAlign:"right",verticalAlign:"bottom",textDecoration:"under",textCase:"upper",shadow:{x:0,y:0,blur:4,color:this.colors[5]+"AA"},lineHeight:{type:"percent",value:2}},{width:void 0,height:void 0,fill:"#32cd79",text:"Welcome to LeaferJS"},{width:void 0,height:void 0,fill:"black",text:"Welcome to LeaferJS",padding:10,boxStyle:{fill:"#32cd79",stroke:"black",cornerRadius:6},hoverStyle:{boxStyle:{fill:"#FF4B4B",cornerRadius:20}}}]}};a5=p([F()],a5);let l5=class extends D{get tag(){return"TextWrapCase"}getUI(e){const t=new X(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=e.x+"px",s.top=e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(W(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}s.lineHeight=t.__.__lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.__letterSpacing+"px"),s.wordWrap="break-word"}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw50834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"},textAlign:"left",verticalAlign:"top"},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 81 82 Better handling of slope and stairs movement 83 Implementing camera collision to prevent clipping 84 Adding a dust effect triggered by character movement or jumps 85 Developing a character animation state machine for seamless animation transitions 86 Contributions 87 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share. 88 89 Thank you!`,lineHeight:{value:1.5,type:"percent"}},{lineHeight:{value:1.5,type:"percent"},text:`Found 3,665 matches in 32 milliseconds. 90 91 ææ¬ 92 /zh-CN/docs/Web/SVG/Tutorial/Texts 93 94 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠95 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠96 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 97 98 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 99 100 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 101 102 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 103 104 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 105 106 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 107 108 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 109 110 `},{lineHeight:{value:1.5,type:"percent"},text:` 111 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 112 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 113 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
113§â¨âââªâ©ââµâ´â¥ââ ââââ½â 114 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 115 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 116 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 117 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},text:` 1182. 119These include most control characters and single characters from Unicode surrogate pairs. 120è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 121www.ibm.com 1223. 123Most of the important regular expression language operators are unescaped single characters . 124大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`},{lineHeight:{value:1.5,type:"percent"},text:` 125â ä¸ãè±ææ ç¹ç¬¦å·åç§°å¤§å ¨ââçèçâ å¦äºè¿ä¹å¤å¹´è±è¯äºï¼ä¸ºä»ä¹ä»æ¥æ²¡æäººå¾ç³»ç»å°ææä»¬è±ææ ç¹ç¬¦å·æä¹å¿µï¼+pluså å·ï¼æ£å·-minusåå·ï¼è´å·Â±plusorminusæ£è´å·Ãismultipliedbyä¹å·Ã·isdividedbyé¤å·ï¼isequaltoçäºå·â isnotequaltoä¸çäºå·â¡isequivalenttoå ¨çäºå·âisequaltoor 126æ¥çæ´å¤åç«ç»æ> 127 128ç¾åº¦æåº 129常ç¨çæ ç¹ç¬¦å·çè±æè¯´æ³ 1302022å¹´7æ14æ¥ :åå· colon [ËkÉÊlÉn]n.åå·; ç»è ;åå· semicolon [ËsemiËkÉÊlÉn] !æå¹å· exclamation mark [ËeksklÉËmeɪÊn]n.æå«; æå¹(è¯) ?é®å· questi... 131å¾®ä¿¡å ¬ä¼å¹³å°î« 132åç§æ ç¹ç¬¦å·çè±ææ¯ä»ä¹?çè¿é! 1332018å¹´7æ1æ¥ + plusãå å·ï¼æ£å· - minusãåå·ï¼è´å· ±ãplus or minusãæ£è´å· Ããis multiplied byãä¹å· ÷ãis divided byãé¤å· ï¼ãis equal toãçäºå· â ãis not equal toãä¸çäºå·... 134æ²ç²è±è¯î« 135è±è¯çæ ç¹ç¬¦å·æåªäº - ç¾åº¦ç¥é 136 1373个åç - åçæ¶é´: 2021å¹´8æ24æ¥ 138 139æä½³çæ¡: è±è¯ä¸å ±æ14个æ ç¹ç¬¦å·ï¼å嫿¯ï¼the period ï¼å¥å· ï¼ï¼question mark ï¼é®å·ï¼ï¼exclamation pointï¼æå¹å·ï¼ï¼ ... 140æ´å¤å ³äºæ ç¹ç¬¦å· è±æçé®é¢>> 141ç¾åº¦ç¥éî« 142大家è¿å¨æ 143åç§æ ç¹ç¬¦å·ç¨è±ææä¹è¯´è±ææ ç¹ç¬¦å·æ ¼å¼å¾çáªá©á©ç¹æ®ç¬¦å·è±è¯æ ç¹ç¬¦å·ä½¿ç¨è§åè¯æå¸¸ç¨æ ç¹ç¬¦å·å¤§å ¨100个æ ç¹ç¬¦å·é¢åçæ¡ 144è±ææä¹è¯´ | æ ç¹ç¬¦å· 1452022å¹´8æ5æ¥ "æ ç¹ç¬¦å·"è±æå«punctuation, æè punctuation markã ä»å¤©è¯´è¯´æ¯ä¸ªæ ç¹ç¬¦å·ç¨è±ææä¹è¯´; â 01 â å¥å· âå䏿ä¸ä¸æ ·,è±æçå¥å·æ¯å®å¿çç¹; full stop æ¯... 146个人å¾ä¹¦é¦î« 147è±ææ ç¹ç¬¦å·,ä½ ççä¼ç¨å?3åéæä½ å½»åºææè±è¯æ ç¹ç¬¦å·! 1482019å¹´1æ2æ¥ Punctuation Marks List æ ç¹ç¬¦å·å表 The Full Stop (.) å¥å·ã The full stops, also called the periods are one of the most commonly used punctuation marks; analysis of tex... 149满满æºå·±çæºî« 150åç§æ ç¹ç¬¦å·ç¨è±æé½æä¹è¯´? 1512017å¹´11æ29æ¥ Punctuation Marks æ ç¹ç¬¦å· 1 , éå·comma 2 . å¥å·period(ç¾å½è±è¯)/full stop(è±å½è±è¯) 3 ? é®å·question mark 4 : åå·colon 5 ; åå·semicolon 6 ! æ... 152å¾®ä¿¡å ¬ä¼å¹³å°î« 153干货-å¸¸è§æ ç¹ç¬¦å·çè±æè¡¨è¾¾_in 1542021å¹´4æ30æ¥ è±ææ ç¹ å¥å·(.):full stop/full point/periodãæçæ¶å,ä½ æ³è¡¨è¾¾æè¯´å®è¿å¥è¯äº,ä¹å¯ä»¥ç¨periodè¿ä¸ªè¯å å¼ºè¯æ°ãæ¯å¦âI think Red Scarf is the best, period.â å¿å¿â¦â¦ éå·... 155æçç½î« 156î»åç§æ ç¹ç¬¦å·çè±æåè¯ - ç¾åº¦æåº 1573页 å叿¶é´: 2022å¹´11æ05æ¥ 158åç§æ ç¹ç¬¦å·çè±æåè¯ ï¼period å¥å· ï¼comma éå· ï¼colon åå· ï¼semicolon åå· ï¼exclamation æå¹å· ï¼question mark é®å· ï¿£hyphen è¿å符 ' apostrophe çç¥å·ï¼æ... 159ç¾åº¦æåºî« 160`}]}};l5=p([F()],l5);let h5=class extends D{get tag(){return"TextLetterSpaceCase"}getUI(e){const t=new X(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=e.x+"px",s.top=e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(W(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}s.lineHeight=t.__.__lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.__letterSpacing+"px"),s.wordWrap="break-word"}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;
160+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw0.5834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"}},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 161 162 Better handling of slope and stairs movement 163 Implementing camera collision to prevent clipping 164 Adding a dust effect triggered by character movement or jumps 165 Developing a character animation state machine for seamless animation transitions 166 Contributions 167 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share help. 168 169 Thank you!`,lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"}},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:`Found 3,665 matches in 32 milliseconds. 170 171 ææ¬ 172 /zh-CN/docs/Web/SVG/Tutorial/Texts 173 174 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠175 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠176 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 177 178 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 179 180 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 181 182 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 183 184 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 185 186 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 187 188 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 189 190 `},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:` 191 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 192 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 193 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
193§â¨âââªâ©ââµâ´â¥ââ ââââ½â 194 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 195 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 196 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 197 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:` 198 2. 199 These include most control characters and single characters from Unicode surrogate pairs. 200 è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 201 www.ibm.com 202 3. 203 Most of the important regular expression language operators are unescaped single characters . 204 大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:` 205 â ä¸ãè±ææ ç¹ç¬¦å·åç§°å¤§å ¨ââçèçâ å¦äºè¿ä¹å¤å¹´è±è¯äºï¼ä¸ºä»ä¹ä»æ¥æ²¡æäººå¾ç³»ç»å°ææä»¬è±ææ ç¹ç¬¦å·æä¹å¿µï¼+pluså å·ï¼æ£å·-minusåå·ï¼è´å·Â±plusorminusæ£è´å·Ãismultipliedbyä¹å·Ã·isdividedbyé¤å·ï¼isequaltoçäºå·â isnotequaltoä¸çäºå·â¡isequivalenttoå ¨çäºå·âisequaltoor 206 æ¥çæ´å¤åç«ç»æ> 207 208 ç¾åº¦æåº 209 常ç¨çæ ç¹ç¬¦å·çè±æè¯´æ³ 210 2022å¹´7æ14æ¥ :åå· colon [ËkÉÊlÉn]n.åå·; ç»è ;åå· semicolon [ËsemiËkÉÊlÉn] !æå¹å· exclamation mark [ËeksklÉËmeɪÊn]n.æå«; æå¹(è¯) ?é®å· questi... 211 å¾®ä¿¡å ¬ä¼å¹³å°î« 212 åç§æ ç¹ç¬¦å·çè±ææ¯ä»ä¹?çè¿é! 213 2018å¹´7æ1æ¥ + plusãå å·ï¼æ£å· - minusãåå·ï¼è´å· ±ãplus or minusãæ£è´å· Ããis multiplied byãä¹å· ÷ãis divided byãé¤å· ï¼ãis equal toãçäºå· â ãis not equal toãä¸çäºå·... 214 æ²ç²è±è¯î« 215 è±è¯çæ ç¹ç¬¦å·æåªäº - ç¾åº¦ç¥é 216 217 3个åç - åçæ¶é´: 2021å¹´8æ24æ¥ 218 219 æä½³çæ¡: è±è¯ä¸å ±æ14个æ ç¹ç¬¦å·ï¼å嫿¯ï¼the period ï¼å¥å· ï¼ï¼question mark ï¼é®å·ï¼ï¼exclamation pointï¼æå¹å·ï¼ï¼ ... 220 æ´å¤å ³äºæ ç¹ç¬¦å· è±æçé®é¢>> 221 ç¾åº¦ç¥éî« 222 大家è¿å¨æ 223 åç§æ ç¹ç¬¦å·ç¨è±ææä¹è¯´è±ææ ç¹ç¬¦å·æ ¼å¼å¾çáªá©á©ç¹æ®ç¬¦å·è±è¯æ ç¹ç¬¦å·ä½¿ç¨è§åè¯æå¸¸ç¨æ ç¹ç¬¦å·å¤§å ¨100个æ ç¹ç¬¦å·é¢åçæ¡ 224 è±ææä¹è¯´ | æ ç¹ç¬¦å· 225 2022å¹´8æ5æ¥ "æ ç¹ç¬¦å·"è±æå«punctuation, æè punctuation markã ä»å¤©è¯´è¯´æ¯ä¸ªæ ç¹ç¬¦å·ç¨è±ææä¹è¯´; â 01 â å¥å· âå䏿ä¸ä¸æ ·,è±æçå¥å·æ¯å®å¿çç¹; full stop æ¯... 226 个人å¾ä¹¦é¦î« 227 è±ææ ç¹ç¬¦å·,ä½ ççä¼ç¨å?3åéæä½ å½»åºææè±è¯æ ç¹ç¬¦å·! 228 2019å¹´1æ2æ¥ Punctuation Marks List æ ç¹ç¬¦å·å表 The Full Stop (.) å¥å·ã The full stops, also called the periods are one of the most commonly used punctuation marks; analysis of tex... 229 满满æºå·±çæºî« 230 åç§æ ç¹ç¬¦å·ç¨è±æé½æä¹è¯´? 231 2017å¹´11æ29æ¥ Punctuation Marks æ ç¹ç¬¦å· 1 , éå·comma 2 . å¥å·period(ç¾å½è±è¯)/full stop(è±å½è±è¯) 3 ? é®å·question mark 4 : åå·colon 5 ; åå·semicolon 6 ! æ... 232 å¾®ä¿¡å ¬ä¼å¹³å°î« 233 干货-å¸¸è§æ ç¹ç¬¦å·çè±æè¡¨è¾¾_in 234 2021å¹´4æ30æ¥ è±ææ ç¹ å¥å·(.):full stop/full point/periodãæçæ¶å,ä½ æ³è¡¨è¾¾æè¯´å®è¿å¥è¯äº,ä¹å¯ä»¥ç¨periodè¿ä¸ªè¯å å¼ºè¯æ°ãæ¯å¦âI think Red Scarf is the best, peri
234od.â å¿å¿â¦â¦ éå·... 235 æçç½î« 236 î»åç§æ ç¹ç¬¦å·çè±æåè¯ - ç¾åº¦æåº 237 3页 å叿¶é´: 2022å¹´11æ05æ¥ 238 åç§æ ç¹ç¬¦å·çè±æåè¯ ï¼period å¥å· ï¼comma éå· ï¼colon åå· ï¼semicolon åå· ï¼exclamation æå¹å· ï¼question mark é®å· ï¿£hyphen è¿å符 ' apostrophe çç¥å·ï¼æ... 239 ç¾åº¦æåºî« 240 `}]}};h5=p([F()],h5);let c5=class extends D{get tag(){return"TextSpaceCase"}getUI(e){const t=new X(e),i=document.createElement("div");return document.body.appendChild(i),setTimeout(()=>{const{style:s}=i,n=t.getBounds("box","local");if(s.position="absolute",s.left=n.x+"px",s.top=n.y+"px",s.width=n.width+"px",s.height=n.height+"px",s.boxSizing="border-box",s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let r;const o=t.textDecoration;switch(W(o)?(r=o.type,o.color&&(s.textDecorationColor=Ct.string(o.color))):r=o,r){case"under":r="underline";break;case"delete":r="line-through";break;case"under-delete":r="underline line-through"}s.textDecoration=r}if(s.lineHeight=t.__.__lineHeight+"px",s.wordWrap="break-word",t.letterSpacing&&(s.letterSpacing=t.__.__letterSpacing+"px"),t.paraIndent&&(s.textIndent=t.paraIndent+"px"),t.padding&&(J(t.padding)?s.padding=t.padding.map(r=>r+"px").join(" "):s.padding=t.padding+"px"),String(t.text).split(` 241`).map((r,o)=>{const a=document.createElement("p");a.innerText=r||"_",a.style.marginTop=(o>0&&t.paraSpacing||0)+"px",a.style.marginBottom="0px",i.appendChild(a)}),t.verticalAlign)switch(s.display="flex",s.flexDirection="column",t.verticalAlign){case"middle":s.justifyContent="center";break;case"bottom":s.justifyContent="flex-end"}}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw50834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"}},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 242 243 Better handling of slope and stairs movement 244 Implementing camera collision to prevent clipping 245 Adding a dust effect triggered by character movement or jumps 246 Developing a character animation state machine for seamless animation transitions 247 Contributions 248 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share help. 249 250 Thank you!`,lineHeight:{value:1.5,type:"percent"},textAlign:"justify",paraIndent:40,paraSpacing:20,fontWeight:300},{lineHeight:{value:1.5,type:"percent"},textAlign:"justify",paraIndent:40,padding:20,text:`Found 3,665 matches in 32 milliseconds. 251 252 ææ¬ 253 /zh-CN/docs/Web/SVG/Tutorial/Texts 254 255 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠256 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠257 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 258 259 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 260 261 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 262 263 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 264 265 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 266 267 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 268 269 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 270 271 `},{lineHeight:{value:1.5,type:"percent"},padding:[20,10,10,40],text:` 272 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 273 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 274 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
274§â¨âââªâ©ââµâ´â¥ââ ââââ½â 275 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 276 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 277 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 278 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:` 279 2. 280 These include most control characters and single characters from Unicode surrogate pairs. 281 è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 282 www.ibm.com 283 3. 284 Most of the important regular expression language operators are unescaped single characters . 285 大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:` 286 â ä¸ãè±ææ ç¹ç¬¦å·åç§°å¤§å ¨ââçèçâ å¦äºè¿ä¹å¤å¹´è±è¯äºï¼ä¸ºä»ä¹ä»æ¥æ²¡æäººå¾ç³»ç»å°ææä»¬è±ææ ç¹ç¬¦å·æä¹å¿µï¼+pluså å·ï¼æ£å·-minusåå·ï¼è´å·Â±plusorminusæ£è´å·Ãismultipliedbyä¹å·Ã·isdividedbyé¤å·ï¼isequaltoçäºå·â isnotequaltoä¸çäºå·â¡isequivalenttoå ¨çäºå·âisequaltoor 287 æ¥çæ´å¤åç«ç»æ> 288 289 ç¾åº¦æåº 290 常ç¨çæ ç¹ç¬¦å·çè±æè¯´æ³ 291 2022å¹´7æ14æ¥ :åå· colon [ËkÉÊlÉn]n.åå·; ç»è ;åå· semicolon [ËsemiËkÉÊlÉn] !æå¹å· exclamation mark [ËeksklÉËmeɪÊn]n.æå«; æå¹(è¯) ?é®å· questi... 292 å¾®ä¿¡å ¬ä¼å¹³å°î« 293 åç§æ ç¹ç¬¦å·çè±ææ¯ä»ä¹?çè¿é! 294 2018å¹´7æ1æ¥ + plusãå å·ï¼æ£å· - minusãåå·ï¼è´å· ±ãplus or minusãæ£è´å· Ããis multiplied byãä¹å· ÷ãis divided byãé¤å· ï¼ãis equal toãçäºå· â ãis not equal toãä¸çäºå·... 295 æ²ç²è±è¯î« 296 è±è¯çæ ç¹ç¬¦å·æåªäº - ç¾åº¦ç¥é 297 298 3个åç - åçæ¶é´: 2021å¹´8æ24æ¥ 299 300 æä½³çæ¡: è±è¯ä¸å ±æ14个æ ç¹ç¬¦å·ï¼å嫿¯ï¼the period ï¼å¥å· ï¼ï¼question mark ï¼é®å·ï¼ï¼exclamation pointï¼æå¹å·ï¼ï¼ ... 301 æ´å¤å ³äºæ ç¹ç¬¦å· è±æçé®é¢>> 302 ç¾åº¦ç¥éî« 303 大家è¿å¨æ 304 åç§æ ç¹ç¬¦å·ç¨è±ææä¹è¯´è±ææ ç¹ç¬¦å·æ ¼å¼å¾çáªá©á©ç¹æ®ç¬¦å·è±è¯æ ç¹ç¬¦å·ä½¿ç¨è§åè¯æå¸¸ç¨æ ç¹ç¬¦å·å¤§å ¨100个æ ç¹ç¬¦å·é¢åçæ¡ 305 è±ææä¹è¯´ | æ ç¹ç¬¦å· 306 2022å¹´8æ5æ¥ "æ ç¹ç¬¦å·"è±æå«punctuation, æè punctuation markã ä»å¤©è¯´è¯´æ¯ä¸ªæ ç¹ç¬¦å·ç¨è±ææä¹è¯´; â 01 â å¥å· âå䏿ä¸ä¸æ ·,è±æçå¥å·æ¯å®å¿çç¹; full stop æ¯... 307 个人å¾ä¹¦é¦î« 308 è±ææ ç¹ç¬¦å·,ä½ ççä¼ç¨å?3åéæä½ å½»åºææè±è¯æ ç¹ç¬¦å·! 309 2019å¹´1æ2æ¥ Punctuation Marks List æ ç¹ç¬¦å·å表 The Full Stop (.) å¥å·ã The full stops, also called the periods are one of the most commonly used punctuation marks; analysis of tex... 310 满满æºå·±çæºî« 311 åç§æ ç¹ç¬¦å·ç¨è±æé½æä¹è¯´? 312 2017å¹´11æ29æ¥ Punctuation Marks æ ç¹ç¬¦å· 1 , éå·comma 2 . å¥å·period(ç¾å½è±è¯)/full stop(è±å½è±è¯) 3 ? é®å·question mark 4 : åå·colon 5 ; åå·semicolon 6 ! æ... 313 å¾®ä¿¡å ¬ä¼å¹³å°î« 314 干货-å¸¸è§æ ç¹ç¬¦å·çè±æè¡¨è¾¾_in 315 2021å¹´4æ30æ¥ è±ææ ç¹ å¥å·(.):full stop/full point/periodãæçæ¶å,ä½ æ³è¡¨è¾¾æè¯´å®è¿å¥è¯äº,ä¹å¯ä»¥ç¨periodè¿ä¸ªè¯å å¼ºè¯æ°ãæ¯å¦âI think Red Scarf is the best, period.â å¿å¿â¦â¦ éå·... 316 æçç½î« 317 î»åç§æ ç¹ç¬¦å·çè±æåè¯ - ç¾åº¦æåº 318 3页 å叿¶é´: 2022å¹´11æ05æ¥ 319 åç§æ ç¹ç¬¦å·çè±æåè¯ ï¼period å¥å· ï¼comma éå· ï¼colon åå· ï¼semicolon åå· ï¼exclamation æå¹å· ï¼question mark é®å· ï¿£hyphen è¿å符 ' apostrophe çç¥å·ï¼æ... 320 ç¾åº¦æåºî« 321 `}]}};c5=p([F()],c5);let d5=class extends D{get tag(){return"TextCaseCase"}getUI(e){const t=new X(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=e.x+"px",s.top=e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(W(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}if(s.lineHeight=t.__.lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.letterSpacing+"px"),t.paraIndent&&(s.textIndent=t.paraIndent+"px"),t.textCase!=="none")switch(t.textCase){case"title":s.textTransform="capitalize";break;case"upper":s.textTransform="uppercase";break;case"lower":s.textTransform="lowercase"}String(t.text).split(` 322`).map((n,r)=>{const o=document.createElement("p");o.innerText=n||"_",o.style.marginTop=(r>0&&t.paraSpacing||0)+"px",o.style.marginBottom="0px",i.appendChild(o)})}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;
322+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw50834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"},textCase:"upper"},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 323 324 Better handling of slope and stairs movement 325 Implementing camera collision to prevent clipping 326 Adding a dust effect triggered by character movement or jumps 327 Developing a character animation state machine for seamless animation transitions 328 Contributions 329 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share help. 330 331 Thank you!`,lineHeight:{value:1.5,type:"percent"},textCase:"title"},{lineHeight:{value:1.5,type:"percent"},textCase:"lower",text:`Found 3,665 matches in 32 milliseconds. 332 333 ææ¬ 334 /zh-CN/docs/Web/SVG/Tutorial/Texts 335 336 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠337 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠338 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 339 340 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 341 342 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 343 344 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 345 346 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 347 348 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 349 350 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 351 352 `},{lineHeight:{value:1.5,type:"percent"},text:` 353 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 354 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 355 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
355§â¨âââªâ©ââµâ´â¥ââ ââââ½â 356 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 357 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 358 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 359 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},textCase:"upper",text:` 360 2. 361 These include most control characters and single characters from Unicode surrogate pairs. 362 è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 363 www.ibm.com 364 3. 365 Most of the important regular expression language operators are unescaped single characters . 366 大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`}]}};d5=p([F()],d5);let u5=class extends D{get tag(){return"TextBoldCase"}getUI(e){const t=new X(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=0+e.x+"px",s.top=0+e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(W(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}s.lineHeight=t.__.__lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.letterSpacing+"px"),s.wordWrap="break-word"}),t}getData(){return[{fontSize:100,fontWeight:"thin",text:"A"},{fontSize:100,text:"A",fontWeight:"extra-light"},{fontSize:100,text:"A",fontWeight:"light"},{fontSize:100,text:"A",fontWeight:"normal"},{fontSize:100,text:"A",fontWeight:"medium"},{fontSize:100,text:"A",fontWeight:"semi-bold"},{fontSize:100,text:"A",fontWeight:"bold"},{fontSize:100,text:"A",fontWeight:"extra-bold"},{fontSize:100,text:"A",fontWeight:"black"}]}};u5=p([F()],u5);let g5=class extends D{get tag(){return"TextAlignCase"}getUI(e){const t=new X(e),i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=0+e.x+"px",s.top=0+e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(W(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}if(s.lineHeight=t.__.__lineHeight+"px",s.wordWrap="break-word",t.verticalAlign)switch(s.display="flex",s.flexDirection="column",t.verticalAlign){case"middle":s.justifyContent="center";break;case"bottom":s.justifyContent="flex-end"}}),t}getData(){return[{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"left",verticalAlign:"top",textDecoration:"delete"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"center",verticalAlign:"top"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"right",verticalAlign:"top",textDecoration:"under"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},fontWeight:900,textAlign:"left",verticalAlign:"middle",textDecoration:"under"}
366,{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},fontWeight:900,textAlign:"center",verticalAlign:"middle",textDecoration:"delete"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},fontWeight:900,textAlign:"right",verticalAlign:"middle",textDecoration:"under"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"left",verticalAlign:"bottom",textDecoration:"under"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"center",verticalAlign:"bottom",textDecoration:"delete"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"right",verticalAlign:"bottom"}]}};g5=p([F()],g5);let p5=class extends D{get tag(){return"TextOverflowCase"}getUI(e){const t=new X(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div");return setTimeout(()=>{const{style:s}=i;if(s.position="absolute",s.left=e.x+"px",s.top=e.y+"px",s.width=e.width+"px",s.height=e.height+"px",i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(W(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}s.lineHeight=t.__.lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.letterSpacing+"px"),t.textOverflow!=="show"&&(s.textOverflow=t.textOverflow==="hide"?"clip":t.textOverflow)}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw50834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"},textAlign:"justify",verticalAlign:"top",textOverflow:"...",height:0},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 367 368 Better handling of slope and stairs movement 369 Implementing camera collision to prevent clipping 370 Adding a dust effect triggered by character movement or jumps 371 Developing a character animation state machine for seamless animation transitions 372 Contributions 373 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share. 374 375 Thank you!`,height:400,lineHeight:{value:3,type:"percent"},textAlign:"justify",textOverflow:"............."},{lineHeight:{value:1.5,type:"percent"},textOverflow:"...",textAlign:"center",text:`Found 3,665 matches in 32 milliseconds. 376 377 ææ¬ 378 /zh-CN/docs/Web/SVG/Tutorial/Texts 379 380 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠381 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠382 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},textOverflow:"---",verticalAlign:"middle",height:5,text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 383 384 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 385 386 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 387 388 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 389 390 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 391 392 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 393 394 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 395 396 `},{lineHeight:{value:1.5,type:"percent"},textOverflow:"---",textAlign:"right",text:` 397 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 398 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 399 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
399§â¨âââªâ©ââµâ´â¥ââ ââââ½â 400 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 401 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 402 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 403 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},textOverflow:"---",text:` 4042. 405These include most control characters and single characters from Unicode surrogate pairs. 406è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 407www.ibm.com 4083. 409Most of the important regular expression language operators are unescaped single characters . 410大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`},{lineHeight:{value:1.5,type:"percent"},textOverflow:"...",text:` 411â ä¸ãè±ææ ç¹ç¬¦å·åç§°å¤§å ¨ââçèçâ å¦äºè¿ä¹å¤å¹´è±è¯äºï¼ä¸ºä»ä¹ä»æ¥æ²¡æäººå¾ç³»ç»å°ææä»¬è±ææ ç¹ç¬¦å·æä¹å¿µï¼+pluså å·ï¼æ£å·-minusåå·ï¼è´å·Â±plusorminusæ£è´å·Ãismultipliedbyä¹å·Ã·isdividedbyé¤å·ï¼isequaltoçäºå·â isnotequaltoä¸çäºå·â¡isequivalenttoå ¨çäºå·âisequaltoor 412æ¥çæ´å¤åç«ç»æ> 413 414ç¾åº¦æåº 415常ç¨çæ ç¹ç¬¦å·çè±æè¯´æ³ 4162022å¹´7æ14æ¥ :åå· colon [ËkÉÊlÉn]n.åå·; ç»è ;åå· semicolon [ËsemiËkÉÊlÉn] !æå¹å· exclamation mark [ËeksklÉËmeɪÊn]n.æå«; æå¹(è¯) ?é®å· questi... 417å¾®ä¿¡å ¬ä¼å¹³å°î« 418åç§æ ç¹ç¬¦å·çè±ææ¯ä»ä¹?çè¿é! 4192018å¹´7æ1æ¥ + plusãå å·ï¼æ£å· - minusãåå·ï¼è´å· ±ãplus or minusãæ£è´å· Ããis multiplied byãä¹å· ÷ãis divided byãé¤å· ï¼ãis equal toãçäºå· â ãis not equal toãä¸çäºå·... 420æ²ç²è±è¯î« 421è±è¯çæ ç¹ç¬¦å·æåªäº - ç¾åº¦ç¥é 422 4233个åç - åçæ¶é´: 2021å¹´8æ24æ¥ 424 425æä½³çæ¡: è±è¯ä¸å ±æ14个æ ç¹ç¬¦å·ï¼å嫿¯ï¼the period ï¼å¥å· ï¼ï¼question mark ï¼é®å·ï¼ï¼exclamation pointï¼æå¹å·ï¼ï¼ ... 426æ´å¤å ³äºæ ç¹ç¬¦å· è±æçé®é¢>> 427ç¾åº¦ç¥éî« 428大家è¿å¨æ 429åç§æ ç¹ç¬¦å·ç¨è±ææä¹è¯´è±ææ ç¹ç¬¦å·æ ¼å¼å¾çáªá©á©ç¹æ®ç¬¦å·è±è¯æ ç¹ç¬¦å·ä½¿ç¨è§åè¯æå¸¸ç¨æ ç¹ç¬¦å·å¤§å ¨100个æ ç¹ç¬¦å·é¢åçæ¡ 430è±ææä¹è¯´ | æ ç¹ç¬¦å· 4312022å¹´8æ5æ¥ "æ ç¹ç¬¦å·"è±æå«punctuation, æè punctuation markã ä»å¤©è¯´è¯´æ¯ä¸ªæ ç¹ç¬¦å·ç¨è±ææä¹è¯´; â 01 â å¥å· âå䏿ä¸ä¸æ ·,è±æçå¥å·æ¯å®å¿çç¹; full stop æ¯... 432个人å¾ä¹¦é¦î« 433è±ææ ç¹ç¬¦å·,ä½ ççä¼ç¨å?3åéæä½ å½»åºææè±è¯æ ç¹ç¬¦å·! 4342019å¹´1æ2æ¥ Punctuation Marks List æ ç¹ç¬¦å·å表 The Full Stop (.) å¥å·ã The full stops, also called the periods are one of the most commonly used punctuation marks; analysis of tex... 435满满æºå·±çæºî« 436åç§æ ç¹ç¬¦å·ç¨è±æé½æä¹è¯´? 4372017å¹´11æ29æ¥ Punctuation Marks æ ç¹ç¬¦å· 1 , éå·comma 2 . å¥å·period(ç¾å½è±è¯)/full stop(è±å½è±è¯) 3 ? é®å·question mark 4 : åå·colon 5 ; åå·semicolon 6 ! æ... 438å¾®ä¿¡å ¬ä¼å¹³å°î« 439干货-å¸¸è§æ ç¹ç¬¦å·çè±æè¡¨è¾¾_in 4402021å¹´4æ30æ¥ è±ææ ç¹ å¥å·(.):full stop/full point/periodãæçæ¶å,ä½ æ³è¡¨è¾¾æè¯´å®è¿å¥è¯äº,ä¹å¯ä»¥ç¨periodè¿ä¸ªè¯å å¼ºè¯æ°ãæ¯å¦âI think Red Scarf is the best, period.â å¿å¿â¦â¦ éå·... 441æçç½î« 442î»åç§æ ç¹ç¬¦å·çè±æåè¯ - ç¾åº¦æåº 4433页 å叿¶é´: 2022å¹´11æ05æ¥ 444åç§æ ç¹ç¬¦å·çè±æåè¯ ï¼period å¥å· ï¼comma éå· ï¼colon åå· ï¼semicolon åå· ï¼exclamation æå¹å· ï¼question mark é®å· ï¿£hyphen è¿å符 ' apostrophe çç¥å·ï¼æ... 445ç¾åº¦æåºî« 446`}]}};p5=p([F()],p5);let f5=class extends D{get tag(){return"ShadowCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{opacity:.9,shadow:{x:10,y:-10,blur:20,color:"#FF000080",visible:!0,box:!0}},{opacity:.7,shadow:{x:10,y:-10,blur:20,color:"#FF000080"}},{opacity:.7,shadow:{x:0,y:0,blur:20,spread:-10,color:"#FF0000"}}
446,{opacity:.7,shadow:[{x:0,y:5,blur:15,color:"#FFFF00"},{x:10,y:-10,blur:20,color:"#FF00FF30"}]},{opacity:.5,shadow:[{x:0,y:5,blur:15,color:"#00FF00"},{x:10,y:-10,blur:20,color:"#279CFE80"}]},{opacity:.7,shadow:{x:0,y:0,blur:30,spread:-10,color:"#0080FF"}}]}};f5=p([F()],f5);let _5=class extends D{get tag(){return"InnerShadowCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{opacity:.9,innerShadow:{x:10,y:5,blur:20,color:"#FF0000AA",visible:!0,box:!0}},{opacity:.7,innerShadow:{x:10,y:10,blur:20,color:"#FF0000"}},{opacity:.7,innerShadow:{x:0,y:0,blur:20,color:"#FF0000"}},{opacity:.7,innerShadow:{x:0,y:0,blur:20,spread:10,color:"#FF4A2C"}},{opacity:.7,innerShadow:[{x:15,y:10,blur:20,color:"#279CFE"},{x:-5,y:-5,blur:15,color:"#FF00FF"}]},{opacity:.7,innerShadow:[{x:15,y:10,blur:15,color:"#00000060"},{x:-5,y:-5,blur:15,color:"#279CFE"}]}]}};_5=p([F()],_5);let y5=class extends D{get tag(){return"MaskCase"}getUI(e,t){const i=new at(e);return i.hitChildren=!1,this.addChildren(i,t),i}addChildren(e,t){const{width:i,height:s}=e;switch(e.add(new Si({width:i,height:s,url:"/image/leafer.jpg",draggable:!0})),t){case 0:e.addAt(new Bt({mask:!0,width:i,height:s,innerRadius:.5,fill:"black"}),0);break;case 1:e.addAt(new Bt({mask:!0,width:i,height:s,opacity:.5,innerRadius:.5,fill:"black"}),0);break;case 2:const n=new at({mask:!0});n.add(new Bt({width:i/1.5,height:s/1.5,fill:"black"})),n.add(new Bt({x:i/2,y:s/2,width:i/2,height:s/2,fill:"black"})),e.addAt(n,0);break;case 3:e.addAt(new Bt({mask:!0,width:i,height:s,startAngle:0,endAngle:180,innerRadius:.5,fill:"black"}),0);break;case 4:e.addAt(new Bt({mask:!0,width:i,height:s,startAngle:180,endAngle:0,innerRadius:.5,fill:"black"}),0);break;default:e.addAt(new Vt({mask:!0,scaleX:.1,scaleY:.1,path:"M945.344 586.304c-13.056-93.44-132.48-98.048-132.48-98.048 0-29.888-39.808-47.424-39.808-47.424L201.664 440.832c-36.736 0-42.112 51.264-42.112 51.264 7.68 288 181.44 382.976 181.44 382.976l299.456 0c42.88-31.36 101.888-122.56 101.888-122.56 9.216 3.072 72.768-0.832 97.984-6.144C865.6 740.992 958.336 679.68 945.344 586.304zM365.568 825.28c-145.472-105.664-130.944-328.576-130.944-328.576l80.448 0c-44.416 126.4 43.648 285.696 55.872 307.904C383.232 826.816 365.568 825.28 365.568 825.28zM833.472 694.272c-37.568 22.272-65.152 7.68-65.152 7.68 39.04-54.4 42.112-159.296 42.112-159.296 6.848 2.304 12.288-26.048 61.312 23.744C920.768 616.128 871.04 672.064 833.472 694.272z M351.68 129.856c0 0-119.424 72.832-44.416 140.928 75.008 68.16 68.16 93.44 24.512 153.216 0 0 81.92-41.344 71.168-104.192s-89.6-94.208-72.768-137.792C347.136 138.304 351.68 129.856 351.68 129.856z M615.232 91.648c0 0-119.488 72.832-44.352 140.928 74.944 68.16 68.032 93.44 24.448 153.216 0 0 81.984-41.344 71.232-104.192-10.688-62.784-89.6-94.208-72.832-137.792C610.624 100.032 615.232 91.648 615.232 91.648z M491.136 64c0 0-74.304 6.144-88.128 78.144C389.248 214.144 435.968 240.96 471.936 276.992 507.904 312.96 492.608 380.352 452.032 427.904c0 0 72.768-25.344 89.6-94.976 16.832-69.76-17.344-94.272-52.8-134.784C453.312 157.504 456.64 83.968 491.136 64z",fill:"black",draggable:!0}),0)}}getData(){return[{},{},{},{},{},{}]}};y5=p([F()],y5);let m5=class extends D{get tag(){return"EraserCase"}getUI(e,t){const i=new at(e);return i.hitChildren=!1,this.addChildren(i,t),i}addChildren(e,t){let{width:i,height:s}=e;e.add(new Si({width:i,height:s,cornerRadius:30,url:"/image/leafer.jpg",draggable:!0}));const n=.15*i,r=.15*s;switch(i*=.7,s*=.7,t){case 0:e.add(new Bt({x:n,y:r,width:i,height:s,innerRadius:.5,fill:"black",eraser:!0,draggable:!0}));break;case 1:e.add(new Bt({x:n,y:r,width:i,height:s,opacity:.5,innerRadius:.5,fill:"black",eraser:!0}));break;case 2:const o=new at({eraser:!0});o.add(new Bt({x:n,y:r,width:i/1.5,height:s/1.5,fill:"black"})),o.add(new Bt({x:n+i/2,y:r+s/2,width:i/2,height:s/2,fill:"black"})),e.add(o);break;case 3:e.add(new Bt({x:n,y:r,width:i,height:s,startAngle:0,endAngle:180,innerRadius:.5,fill:"black",eraser:!0}));break;case 4:e.add(new Bt({x:n,y:r,width:i,height:s,startAngle:180,endAngle:0,innerRadius:.5,fill:"black",eraser:!0}));break;default:e.add(new Vt({x:10,y:10,scaleX:.08,scaleY:.08,path:"M945.344 586.304c-13.056-93.44-132.48-98.048-132.48-98.048 0-29.888-39.808-47.424-39.808-47.424L201.664 440.832c-36.736 0-42.112 51.264-42.112 51.264 7.68 288 181.44 382.976 181.44 382.976l299.456 0c42.88-31.36 101.888-122.56 101.888-122.56 9.216 3.072 72.768-0.832 97.984-6.144C865.6 740.992 958.336 679.68 945.344 586.304zM365.568 825.28c-145.472-105.664-130.944-328.576-130.944-328.576l80.448 0c-44.416 126.4 43.648 285.696 55.872 307.904C383.232 826.816 365.568 825.28 365.568 825.28zM833.472 694.272c-37.568 22.272-65.152 7.68-65.152 7.68 39.04-54.4 42.112-159.296 42.112-159.296 6.848 2.304 12.288-26.048 61.312 23.744C920.768 616.128 871.04 672.064 833.472 694.272z M351.68 129.856c0 0-119.424 72.832-44.416 140.928 75.008 68.16 68.16 93.44 24.512 153.216 0 0 81.92-41.344 71.168-104.192s-89.6-94.208
446-72.768-137.792C347.136 138.304 351.68 129.856 351.68 129.856z M615.232 91.648c0 0-119.488 72.832-44.352 140.928 74.944 68.16 68.032 93.44 24.448 153.216 0 0 81.984-41.344 71.232-104.192-10.688-62.784-89.6-94.208-72.832-137.792C610.624 100.032 615.232 91.648 615.232 91.648z M491.136 64c0 0-74.304 6.144-88.128 78.144C389.248 214.144 435.968 240.96 471.936 276.992 507.904 312.96 492.608 380.352 452.032 427.904c0 0 72.768-25.344 89.6-94.976 16.832-69.76-17.344-94.272-52.8-134.784C453.312 157.504 456.64 83.968 491.136 64z",fill:"black",draggable:!0,eraser:!0}))}}getData(){return[{cornerRadius:30},{cornerRadius:30},{cornerRadius:30},{cornerRadius:30},{cornerRadius:30},{cornerRadius:30}]}};m5=p([F()],m5);const Kp=["pass-through","normal","multiply","darken","color-burn","lighten","color-dodge","screen","overlay","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","source-over","source-in","source-out","source-atop","destination-over","destination-in","destination-out","destination-atop","xor","copy"];let x5=class extends D{get tag(){return"BlendModeCase"}getUI(e,t){const i=new at(e);return this.addChildren(i,t),i}addChildren(e,t){const{width:i,height:s}=e,n=new Q({width:i/4*3,height:s/4*3,cornerRadius:[20,20,20,20],fill:"#FF4A2C"}),r=new Bt({x:i/4*1.2,y:s/4*1.2,width:i/4*2.8,height:s/4*2.8,draggable:!0,fill:"#4DCB71"});e.add(n),e.add(r),r.blendMode=Kp[t]}getData(){return[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}};x5=p([F()],x5);let w5=class extends D{get tag(){return"AroundCase"}getUI(e,t){const i=new at(e);return this.addChildren(i,t),i}addChildren(e,t){let i,s=0,n=1,r=0;switch(t){case 0:i="center";break;case 1:i={type:"percent",x:.5,y:.5},n=1.5;break;case 2:i={type:"percent",x:.5,y:.5},s=45;break;case 3:i={type:"percent",x:.5,y:.5},r=45;break;case 4:i={type:"percent",x:1,y:1}}const{width:o,height:a}=e,l=new Q({width:o,height:a,cornerRadius:0,fill:"rgba(150,150,150,0.1)"}),h=new Q({around:i,x:o/2,y:a/2,rotation:s,scale:n,skewX:r,width:o/2,height:a/2,draggable:!0,fill:this.colors[t]}),c=new Q({around:"center",x:o/2,y:a/2,width:10,height:10,cornerRadius:5,hittable:!1,fill:"#32CD79"});e.add(l),e.add(h),e.add(c)}getData(){return[{},{},{},{},{}]}};w5=p([F()],w5);let v5=class extends D{get tag(){return"FillCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{},{fill:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{fill:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{fill:[{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.3}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"cover"}]}]}};v5=p([F()],v5);let C5=class extends D{get tag(){return"FillsCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{fill:[{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.2}]},{fill:[{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",rotation:90,opacity:.2}]},{fill:[{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"fit",opacity:.2}]},{fill:[{type:"linear",from:{type:"percent",x:.2,y:.2},to:{type:"percent",x:.8,y:.8},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"clip",offset:{x:-50,y:-60},opacity:.2}]},{fill:[{type:"radial",to:{type:"percent",x:1,y:1},stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,opacity:.2}]},{fill:[{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,rotation:90,opacity:.2}]}]}};C5=p([F()],C5);let b5=class extends D{get tag(){return"SolidFillCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{},{},{},{},{},{}]}};b5=p([F()],b5);let k5=class extends D{get tag(){return"GradientFillCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{fill:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{fill:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"linear",from:{type:"percent",x:.2,y:.2},to:{type:"percent",x:.8,y:.8},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:[{type:"radial",to:{type:"percent",x:1,y:1},stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.2}]},{fill:{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}}]}};k5=p([F()],k5);let B5=class extends D{get tag(){return"ImageFillCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{fill:[{type:"image",url:"/image/leafer.jpg",mode:"cover"}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"cover",rotation:90}]},{fill:[{type:"solid",color:"#e2f2e2"},{type:"image",url:"/image/leafer.jpg",mode:"fit"}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"stretch"}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"clip",offset:{x:-40,y:-90},scale:{x:1.1,y:1.1},rotation:20}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,rotation:90}]}]}};B5=p([F()],B5);let S5=class extends D{get tag(){return"StrokeCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new Q(e)}getData(){return[{stroke:"#FF4B4B"},{stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},strokeAlign:"center"},{stroke:{type:"radial",stops:[{offset:.8,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},strokeAlign:"outside"},{stroke:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},dashPattern:[6,6]},{stroke:[{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.4}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"cover"}]}]}};S5=p([F()],S5);let E5=class extends D{get tag(){return"StrokesCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new Q(e)}getData(){return[{stroke:[{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.5}]},{stroke:[{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",rotation:90,opacity:.5}]},{stroke:[{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"fit",opacity:.5}]},{stroke:[{type:"linear",from:{type:"percent",x:.2,y:.2},to:{type:"percent",x:.8,y:.8},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"clip",offset:{x:-50,y:-60},opacity:.5}]},{stroke:[{type:"radial",to:{type:"percent",x:1,y:1},stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,opacity:.5}]},{stroke:[{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,rotation:90,opacity:.5}]}]}};E5=p([F()],E5);let A5=class extends D{get tag(){return"SolidStrokeCase"}getUI(e,t){return e.cornerRadius=30,e.stroke=this.colors[t],e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new Q(e)}getData(){return[{},{},{},{},{},{}]}};A5=p([F()],A5);let T5=class extends D{get tag(){return"GradientStrokeCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new Q(e)}getData(){return[{stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{stroke:{type:"linear",from:{type:"percent",x:.2,y:.2},to:{type:"percent",x:.8,y:.8},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"radial",to:{type:"percent",x:1,y:1},stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{stroke:[{type:"solid",color:"#FF4B4B"},{type:"image",url:"sale.jpg",mode:"fit",scale:.03,opacity:.5,rotation:90}]}]}};T5=p([F()],T5);let R5=class extends D{get tag(){return"ImageStrokeCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new Q(e)}getData(){return[{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"cover"}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"cover",rotation:90}]},{stroke:[{type:"solid",color:"#f2f2f2"},{type:"image",url:"/image/leafer.jpg",mode:"fit"}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"clip",offset:{x:-50,y:-60},scale:{x:1.1,y:1.1}}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,rotation:90}]}]}};R5=p([F()],R5);let L5=class extends D{get tag(){return"LinearCase"}getUI(e,t){return e.cornerRadius=30,t>2&&(e.strokeWidth=6,e.strokeAlign="inside",e.fill=""),new Q(e)}getData(){return[{fill:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"linear",from:{x:0,y:0,type:"percent"},to:{x:1,y:1,type:"percent"},stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#79CB4D"}]}},{fill:{type:"linear",from:"left",to:"right",stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#FF4B4B"}]}},{stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"linear",from:{x:0,y:0,type:"percent"},to:{x:1,y:1,type:"percent"},stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#79CB4D"}]}},{stroke:{type:"linear",from:{x:0,y:.5,type:"percent"},to:{x:1,y:.5,type:"percent"},stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"linear",opacity:.5,stops:[{offset:0,color:{r:255,g:75,b:75}},{offset:1,color:{r:254,g:176,b:39}}]}}]}};L5=p([F()],L5);let F5=class extends D{get tag(){return"AngularCase"}getUI(e,t){return e.cornerRadius=30,t>2&&(e.strokeWidth=6,e.strokeAlign="inside",e.fill=""),new Q(e)}getData(){return[{fill:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"angular",stretch:.1,to:"bottom-right",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"angular",from:{x:.3,y:.3,type:"percent"},stops:["#FF4B4B","#FEB027","#FF4B4B"]}},{stroke:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{stroke:{type:"angular",stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{stroke:{type:"angular",from:{x:.3,y:.3,type:"percent"},stops:[{offset:0,color:"#FF4B4B"},{offset:.5,color:"#FEB027"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"angular",opacity:.5,stops:[{offset:0,color:{r:255,g:75,b:75}},{offset:.3,color:{r:254,g:176,b:39}},{offset:.7,color:{r:121,g:203,b:77}},{offset:1,color:{r:255,g:75,b:75}}]}}]}};F5=p([F()],F5);let P5=class extends D{get tag(){return"RadialCase"}getUI(e,t){return e.cornerRadius=30,t>2&&(e.strokeWidth=6,e.fill=""),new Q(e)}getData(){return[{fill:{type:"radial",stops:[{offset:.2,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",from:{x:.2,y:.2,type:"percent"},to:{x:.8,y:.8,type:"percent"},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",to:"bottom-right",stretch:.5,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"radial",stops:[{offset:.2,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"radial",from:{x:.2,y:.2,type:"percent"},to:{x:.8,y:.8,type:"percent"},stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#79CB4D"}]}},{stroke:{type:"radial",to:"bottom-right",stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",opacity:.5,stops:[{offset:0,color:{r:255,g:75,b:75}},{offset:1,color:{r:254,g:176,b:39}}]}}]}};P5=p([F()],P5);let M5=class extends D{get tag(){return"HittableCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{},{fill:"#FEB02730",stroke:{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},strokeWidth:10,hitFill:"none"},{fill:"",stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},strokeWidth:10,hitFill:"all"},{fill:"",stroke:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},strokeWidth:10},{fill:"",stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},strokeWidth:10,strokeAlign:"center"},{fill:"",stroke:{type:"radial",stops:[{offset:.8,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},strokeWidth:10,dashPattern:[20,40],strokeCap:"round",strokeAlign:"outside"}]}};M5=p([F()],M5);let D5=class extends D{get tag(){return"CursorCase"}getUI(e){return new Be(e)}getData(){return[{sides:3,cursor:"move"},{sides:5,cursor:"progress"},{sides:6,cursor:"cell"},{points:[10,90,10,10,50,70,90,10,90,90],cursor:"copy"},{points:[10,90,10,10,50,70,90,10,90,90,90,90,10,90],curve:!0,cursor:"no-drop"}
446,{points:[0,90,20,60,40,80,60,40,75,50,90,10,100,90,100,90,0,90],curve:!0,cursor:{url:"https://leaferjs.com/image/cursor.svg",x:2,y:2}}]}};D5=p([F()],D5);let O5=class extends D{get tag(){return"HoverStyleCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{fill:"rgba(50,205,121, 0.7)",cornerRadius:30,hoverStyle:{fill:"rgba(50,205,121, 0.8)"}}]}};O5=p([F()],O5);let I5=class extends D{get tag(){return"PressStyleCase"}getUI(e){return e.cornerRadius=30,new Q(e)}getData(){return[{fill:"rgba(50,205,121, 0.7)",cornerRadius:30,pressStyle:{fill:"rgba(50,205,121, 1)"}},{fill:"rgba(50,205,121, 0.7)",cornerRadius:30,hoverStyle:{fill:"rgba(50,205,121, 0.8)"},pressStyle:{fill:"rgba(50,205,121, 1)"},cursor:"pointer"}]}};I5=p([F()],I5);let W5=class extends D{get tag(){return"StateCase"}getUI(e){const t=new k({x:e.x+30,y:e.y,width:e.width,height:e.height,fill:"#32cd79",cornerRadius:30,origin:"center",states:{color:{fill:"#FF4B4B",hoverStyle:{scale:1.2},pressStyle:{scale:1}},rotate:{animation:{keyframes:[{rotation:45},{rotation:135,scale:1.2}],duration:1,swing:!0}}},state:"color"});return t.on("click",()=>{t.state=t.state==="color"?"rotate":"color"}),t}getData(){return[{}]}};W5=p([F()],W5);let z5=class extends D{get tag(){return"ButtonCase"}getUI(e){return new k({x:e.x+30,y:e.y+30,fill:"#FEB027",cornerRadius:5,button:!0,hoverStyle:{fill:"#32cd79"},pressStyle:{fill:"#FF4B4B"},children:[{tag:"Text",text:"Button",fontSize:16,padding:[10,20],fill:"black",hoverStyle:{fill:"white"},pressStyle:{fontWeight:"bold"}}]})}getData(){return[{}]}};z5=p([F()],z5);let H5=class extends D{get tag(){return"RectAnimateCase"}getUI(e){const t=new Q(e);return t.waitLeafer(()=>{t.app.editor.hittable=!1;const i=t.leafer.on_(ut.NEXT,()=>{t.rotateOf({x:50,y:50},5),t.move(5,0),t.x>700&&(t.x=0)});t.on(O.DOWN,()=>{t.leafer.off_(i)})}),t}getData(){return[{}]}};H5=p([F()],H5);class Zp{constructor(t,i,s){this.view=t;const n=ye.start(`create ${i}ä¸`),r=i>25?10:5;let o;for(let a=0;a<i;a++)o=new at,o.x=a%r*15e3,o.y=15e3*Math.floor(a/r),this.view.add(o),this.createBlock(o,0,0,`hsl(${3*a},50%, 50%)`),a===i-1&&(ye.end(n),setTimeout(s,0))}createBlock(t,i,s,n){let r,o;for(let a=0;a<100;a++){a%10==0&&(i+=100),r=s;for(let l=0;l<100;l++)l%10==0&&(r+=100),o=new Q,o.x=i,o.y=r,o.height=100,o.width=100,o.fill=n,o.draggable=!0,t.add(o),r+=120;i+=120}}}function ff(e,t){new Zp(e,100,t)}let X5=class extends D{get tag(){return"FlowCase"}getUI(e,t){const i=new me(e);let s,n,r;i.fill="rgba(120,120,120,0.1)",t<2?(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30})):(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}));const o=new X({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,o),t){case 0:o.text="x";break;case 1:i.flow="x-reverse",o.text="x-reverse";break;case 2:i.flow="y",o.text="y";break;case 3:i.flow="y-reverse",o.text="y-reverse"}return i}getData(){return[{},{},{},{}]}};X5=p([F()],X5);let Y5=class extends D{get tag(){return"FlowWrapCase"}getUI(e,t){const i=new me(e);let s,n,r,o,a,l;i.fill="rgba(150,150,150,0.1)",i.flowWrap=!0,t<2?(i.gap={x:0,y:10},s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30})):(i.gap={x:10,y:0},s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}));const h=new X({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,o,a,l,h),t){case 0:h.text="true";break;case 1:i.flowWrap="reverse",h.text="reverse";break;case 2:i.flow="y",h.text="true";break;case 3:i.flow="y",i.flowWrap="reverse",h.text="reverse"}return i}getData(){return[{},{},{},{}]}};Y5=p([F()],Y5);let U5=class extends D{get tag(){return"FlowGapCase"}getUI(e,t){const i=new me(e);let s,n,r,o,a,l;i.fill="rgba(150,150,150,0.1)",i.gap=5,t<5?(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30})):(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}));const h=new X({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,h),t){case 0:h.text="5";break;case 1:i.gap="auto",h.text="auto";break;case 2:i.addMany(o,a,l),i.gap="fit",h.text="fit";break;case 3:i.addMany(o,a,l),i.flowWrap=!0,i.gap={x:5,y:10},h.text="10";break;case 4:i.addMany(o,a,l),i.flowWrap=!0,i.gap={x:5,y:"auto"},h.text="auto";break;case 5:i.flow="y",h.text="x 5";break;case 6:i.flow="y",i.gap="auto",h.text="x auto";break;case 7:i.flow="y",i.addMany(o,a,l),i.flowWrap=!0,i.gap={y:5,x:10},h.text="y 10";break;case 8:i.flow="y",i.addMany(o,a,l),i.flowWrap=!0,i.gap={y:5,x:"auto"},h.text="y auto"}return i}getData(){return[{},{},{},{},{},{},{},{},{}]}};U5=p([F()],U5);let N5=class extends D{get tag(){return"FlowAlignCase"}getUI(e,t){const i=new me(e);i.fill="rgba(150,150,150,0.1)";const s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),h=new X({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,h),t){case 0:h.text="top-left";break;case 1:i.flowAlign="top",h.text="top";break;case 2:i.flowAlign="top-right",h.text="top-right";break;case 3:i.flowAlign="left",h.text="left";break;case 4:i.flowAlign="center",h.text="center";break;case 5:i.flowAlign="right",h.text="right";break;case 6:i.flowAlign="bottom-left",h.text="bottom-left";break;case 7:i.flowAlign="bottom",h.text="bottom";break;case 8:i.flowAlign="bottom-right",h.text="bottom-right";break;case 9:i.flowAlign={content:"center",y:"from"},h.text="from";break;case 10:i.flowAlign={content:"center",y:"center"},h.text="center";break;case 11:i.flowAlign={content:"center",y:"to"},h.text="to";break;case 12:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"from"},h.text="from";break;case 13:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign="center",h.text="center";break;case 14:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"to",x:"to"},h.text="to"}return i}getData(){return[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}};N5=p([F()],N5);let j5=class extends D{get tag(){return"FlowYAlignCase"}getUI(e,t){const i=new me(e);i.flow="y",i.fill="rgba(150,150,150,0.1)";const s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}),h=new X({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,h),t){case 0:h.text="top-left";break;case 1:i.flowAlign="top",h.text="top";break;case 2:i.flowAlign="top-right",h.text="top-right";break;case 3:i.flowAlign="left",h.text="left";break;case 4:i.flowAlign="center",h.text="center";break;case 5:i.flowAlign="right",h.text="right";break;case 6:i.flowAlign="bottom-left",h.text="bottom-left";break;case 7:i.flowAlign="bottom",h.text="bottom";break;case 8:i.flowAlign="bottom-right",h.text="bottom-right";break;case 9:i.flowAlign={content:"center",x:"from"},h.text="from";break;case 10:i.flowAlign={content:"center",x:"center"},h.text="center";break;case 11:i.flowAlign={content:"center",x:"to"},h.text="to";break;case 12:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"from"},h.text="from";break;case 13:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign="center",h.text="center";break;case 14:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"to",x:"to"},h.text="to"}return i}getData(){return[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}};j5=p([F()],j5);let V5=class extends D{get tag(){return"FlowPaddingCase"}getUI(e,t){const i=new me(e);i.padding=5,i.fill="rgba(150,150,150,0.1)";const s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),h=new X({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,h),t){case 0:h.text="5";break;case 1:i.flowAlign="bottom-right",h.text="5";break;case 2:i.flowAlign="top-right",h.text="top-right";break;case 3:i.flowAlign="left",h.text="left";break;case 4:i.flowAlign="center",h.text="center";break;case 5:i.flowAlign="right",h.text="right";break;case 6:i.flowAlign="bottom-left",h.text="bottom-left";break;case 7:i.flowAlign="bottom",h.text="bottom";break;case 8:i.flowAlign="top",h.text="top";break;case 9:i.flowAlign={content:"center",y:"from"},h.text="from";break;case 10:i.flowAlign={content:"center",y:"center"},h.text="center";break;case 11:i.flowAlign={content:"center",y:"to"},h.text="to";break;case 12:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"from"},h.text="from";break;case 13:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign="center",h.text="center";break;case 14:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"to",x:"to"},h.text="to"}return i}getData(){return[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}};V5=p([F()],V5);let G5=class extends D{get tag(){return"FlowItemBoxCase"}getUI(e,t){const i=new me(e);let s,n,r;i.fill="rgba(120,120,120,0.1)",i.itemBox="box",s=new k({fill:"#FF4B4B",stroke:"black",strokeWidth:4,strokeAlign:"center",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",stroke:"black",strokeWidth:4,strokeAlign:"center",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",stroke:"black",strokeWidth:4,strokeAlign:"center",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30});const o=new X({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,o),t){case 0:o.text="box";break;case 1:i.itemBox="stroke",o.text="stroke"}return i}getData(){return[{},{}]}};G5=p([F()],G5);let q5=class extends D{get tag(){return"FlowInCase"}getUI(e,t){const i=new me(e);let s,n,r;i.fill="rgba(120,120,120,0.1)",s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1"
446,textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30});const o=new k({x:50,y:110,fill:"#FF4B4B",around:"top",children:[{tag:"Text",text:"false",fill:"white",textAlign:"center",verticalAlign:"middle",width:30,height:20}]});switch(i.addMany(s,n,r,o),t){case 0:o.inFlow=!0,o.children[0].text="true";break;case 1:o.inFlow=!1,o.children[0].text="false"}return i}getData(){return[{},{}]}};q5=p([F()],q5);let K5=class extends D{get tag(){return"FlowAutoSizeCase"}getUI(e,t){const i=new me(e);let s,n,r;i.fill="rgba(120,120,120,0.1)",t<2?(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30})):(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}));const o=new X({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,o),t){case 0:o.text="width",r.autoWidth=1;break;case 1:r.autoWidth=1,r.autoHeight=1,o.text="w & h";break;case 2:r.autoHeight=1,i.flow="y",o.text="height";break;case 3:r.autoWidth=1,r.autoHeight=1,i.flow="y",o.text="h & w"}return i}getData(){return[{},{},{},{}]}};K5=p([F()],K5);let Z5=class extends D{get tag(){return"EditorConfigCase"}getUI(e,t){const i=t===6?new X(e):new k(e);return(t===0||t===2||t===4||t>5)&&i.waitLeafer(()=>{setTimeout(()=>{const s=new a0({selector:!1}),{config:n}=s;switch(t){case 2:n.stroke="#0d99ff",n.pointRadius=0,n.pointSize=8;break;case 4:n.circle={},n.middlePoint={},n.buttonsDirection="top";break;case 7:n.around="center";break;case 8:n.lockRatio=!0;break;case 9:n.circle={},n.middlePoint={},n.point={cornerRadius:0},n.circle={stroke:"#5133FF",fill:"white",width:16,height:16,cornerRadius:8},n.rect={stroke:"#5133FF",dashPattern:[3,2]};break;case 10:n.buttonsFixed=!0,s.buttons.add(k.one({around:"center",fill:"#FEB027",cornerRadius:20,cursor:"pointer",children:[{tag:"Text",fill:"white",text:"ç§»é¤",padding:[7,10]}]}));break;case 11:n.circle={};break;case 12:n.rotateable=!1;break;case 13:n.resizeable=!1;break;case 14:n.middlePoint={width:12,height:4,cornerRadius:2},n.point={cornerRadius:[0,0,10,0]}}i.app.children[i.app.children.length-1].add(s),s.target=i})}),i}getData(){return[{},{cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{cornerRadius:[0,40,20,40]},{cornerRadius:[20,40,0,40]},{text:"Editor",fontSize:24,verticalAlign:"middle",textAlign:"center",fontWeight:"bold",resizeType:"scale"},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20}]}};Z5=p([F()],Z5);let $5=class extends D{get tag(){return"EditorCase"}getUI(e){return new Q(e)}getData(){return[{},{cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{cornerRadius:[0,40,20,40]},{cornerRadius:[20,40,0,40]}]}};$5=p([F()],$5);let J5=class extends D{get tag(){return"HTMLTextCase"}getUI(e){return e.width=e.height=void 0,new s0(e)}getData(){return[{fill:"",text:'<i style="color: red; font-weight: bold;">Welcome</i> to <b style="color: #32cd79; font-size: 30px">LeaferJS</b>'}]}};J5=p([F()],J5);let Q5=class extends D{get tag(){return"TextEditorCase"}getUI(e){return e.textAlign="center",e.verticalAlign="middle",new X(e)}getData(){return[{fontSize:100,text:"A"},{fontSize:100,text:"A",italic:!0,fontWeight:"bold",stroke:"#00000060",strokeAlign:"inside",strokeWidth:1},{fontSize:100,text:"A",textCase:"lower",fontWeight:"bold"}
446,{fill:this.colors[2],text:"Action is the proper fruit of knowledge.",fontSize:16,textAlign:"left",verticalAlign:"top",textOverflow:"...",padding:[10,0,10,0]},{text:"Action is the proper fruit of knowledge.",fontSize:16,fontFamily:"Consolas,Monaco",textAlign:"left",verticalAlign:"top",textOverflow:"...",padding:[10,0,10,0]},{text:"Action is the proper fruit of knowledge.",fontSize:14,letterSpacing:{type:"percent",value:1},textAlign:"left",verticalAlign:"top",textOverflow:"...",padding:[10,0,10,0]},{text:"Action is the proper fruit of knowledge.",fontSize:14,lineHeight:{type:"percent",value:2},textAlign:"center",verticalAlign:"middle",textDecoration:"delete",textCase:"title"},{text:"Action is the proper fruit of knowledge.",fontSize:14,textAlign:"center",verticalAlign:"middle",textDecoration:"delete",textCase:"title"},{text:"Action is the proper fruit of knowledge.",fontSize:14,textAlign:"center",verticalAlign:"middle",textDecoration:"delete",textCase:"title",textWrap:"none",textOverflow:"..."},{text:"Action is the proper fruit of knowledge.",fontSize:11,textAlign:"right",verticalAlign:"bottom",textDecoration:"under",textCase:"upper",shadow:{x:0,y:0,blur:4,color:this.colors[5]+"AA"},lineHeight:{type:"percent",value:2}}]}};Q5=p([F()],Q5);let t4=class extends D{get tag(){return"AnimateCase"}getUI(e){return e.fill="#32cd79",e.animation={style:{x:500,cornerRadius:50},duration:1,swing:!0},new Q(e)}getData(){return[{}]}};t4=p([F()],t4);let e4=class extends D{get tag(){return"AnimateColorCase"}getUI(e){return e.fill="#32cd79",e.animation={style:{x:500,cornerRadius:50,fill:"#ffcd00"},duration:1,swing:!0},new Q(e)}getData(){return[{}]}};e4=p([F()],e4);let i4=class extends D{get tag(){return"AnimateFramesCase"}getUI(e){return e.fill="#32cd79",e.cornerRadius=50,e.around="center",e.x+=50,e.y+=50,e.animation={keyframes:[{style:{x:150,scaleX:2,fill:"#ffcd00"},duration:.5},{style:{x:50,scaleX:1,fill:"#ffcd00"},duration:.2},{style:{x:550,cornerRadius:0,fill:"#ffcd00"},delay:.1,easing:"bounce-out"},{x:50,rotation:-720,cornerRadius:50}],duration:3,loop:!0,join:!0},new Q(e)}getData(){return[{}]}};i4=p([F()],i4);let s4=class extends D{get tag(){return"AnimatePageCase"}getUI(e){const t=new Q({x:e.x+150,y:e.y,width:150,height:100,fill:"#FEB027",animation:{keyframes:[{opacity:0,offsetX:-150},{opacity:1,offsetX:0}],duration:.8},animationOut:{style:{opacity:0,offsetX:150},duration:.8}}),i=t.clone({fill:"#32cd79"}),s=new at({children:[t]});return setInterval(()=>{t.parent?(s.add(i),t.remove()):(s.add(t),i.remove())},2e3),s}getData(){return[{}]}};s4=p([F()],s4);let n4=class extends D{get tag(){return"AnimatePathCase"}getUI(e){const t=new at({x:e.x,y:e.y}),i=new Vt({scale:.2,motionPath:!0,stroke:"#32cd79",strokeWidth:20,motion:0,around:"top-left",animation:{style:{motion:5650},duration:10,loop:!0},path:"M945.344 586.304c-13.056-93.44-132.48-98.048-132.48-98.048 0-29.888-39.808-47.424-39.808-47.424L201.664 440.832c-36.736 0-42.112 51.264-42.112 51.264 7.68 288 181.44 382.976 181.44 382.976l299.456 0c42.88-31.36 101.888-122.56 101.888-122.56 9.216 3.072 72.768-0.832 97.984-6.144C865.6 740.992 958.336 679.68 945.344 586.304zM365.568 825.28c-145.472-105.664-130.944-328.576-130.944-328.576l80.448 0c-44.416 126.4 43.648 285.696 55.872 307.904C383.232 826.816 365.568 825.28 365.568 825.28zM833.472 694.272c-37.568 22.272-65.152 7.68-65.152 7.68 39.04-54.4 42.112-159.296 42.112-159.296 6.848 2.304 12.288-26.048 61.312 23.744C920.768 616.128 871.04 672.064 833.472 694.272z M351.68 129.856c0 0-119.424 72.832-44.416 140.928 75.008 68.16 68.16 93.44 24.512 153.216 0 0 81.92-41.344 71.168-104.192s-89.6-94.208-72.768-137.792C347.136 138.304 351.68 129.856 351.68 129.856z M615.232 91.648c0 0-119.488 72.832-44.352 140.928 74.944 68.16 68.032 93.44 24.448 153.216 0 0 81.984-41.344 71.232-104.192-10.688-62.784-89.6-94.208-72.832-137.792C610.624 100.032 615.232 91.648 615.232 91.648z M491.136 64c0 0-74.304 6.144-88.128 78.144C389.248 214.144 435.968 240.96 471.936 276.992 507.904 312.96 492.608 380.352 452.032 427.904c0 0 72.768-25.344 89.6-94.976 16.832-69.76-17.344-94.272-52.8-134.784C453.312 157.504 456.64 83.968 491.136 64z"}),s=new Q({width:50,height:15,cornerRadius:10,around:"left",fill:"#FEB027",motion:0,motionRotation:45,animation:{style:{motion:5650},duration:10,loop:!0}});return t.add(i),t.add(s),t}getData(){return[{}]}};n4=p([F()],n4);let r4=class extends D{get tag(){return"AnimateCarCase"}getUI(e){const t=new at({x:e.x,y:e.y}),i=new Be({motionPath:!0,points:[0,90,100,60,200,80,300,40,375,50,450,10,550,90,550,90,0,90],curve:!0,fill:"#32cd79"}),s=new Vt({scale:.05,fill:"#FEB027",around:"bottom",path:"M949.586 629.224c-2.703-2.661-4.71-7.055-5.077-10.84-1.301-13.259-1.911-26.584-2.432-39.902-0.255-6.38-1.968-9.879-9.398-10.426-9.201-0.
446682-18.271-3.044-27.381-4.795-8.772-1.684-14.224-8.514-12.708-15.699 1.616-7.613 8.673-11.886 17.328-10.39 9.422 1.626 18.832 3.33 28.224 4.998 2.266-8.837-0.482-14.764-9.666-20.748-26.418-17.236-55.258-29.587-85.431-37.895-33.994-9.363-68.698-16.141-103.043-24.263-3.719-0.877-7.643-2.533-10.544-4.943-38.731-32.201-80.555-59.555-125.84-81.76-39.617-19.423-82.145-25.662-125.45-28.424-46.553-2.969-92.87-0.148-138.957 6.854-21.555 3.271-41.424 11.358-59.755 22.592-28.399 17.408-56.715 35.075-83.999 54.15-15.036 10.513-29.739 14.978-47.548 10.168-8.07-2.178-16.586-2.709-24.894-4.004-10.75-1.676-18.04 2.278-19.666 10.692-1.759 9.111 3.546 15.686 14.425 17.856 2.131 0.424 4.27 0.775 6.402 1.152 0.104 0.489 0.201 0.969 0.291 1.452-8.561 3.113-17.05 6.419-25.686 9.297-19.17 6.413-21.497 9.439-21.862 29.792-0.054 2.82-0.008 5.64-0.008 9.442 12.299 0 23.845-0.052 35.396 0.011 9.849 0.052 16.351 5.089 16.69 12.78 0.358 7.993-6.497 14.054-16.427 14.179-11.541 0.145-23.085 0.034-35.627 0.034 0 15.755-0.01 30.453 0 45.163 0.012 7.541-0.179 15.08 0.149 22.604 0.238 5.251-1.482 8.45-5.623 12.222-4.171 3.805-6.077 10.349-8.244 15.977-0.971 2.52 0.017 5.747-0.198 8.628-1.697 23.276 9.365 28.266 26.937 29.975 6.879 0.668 13.728 1.563 21.403 2.45-2.97-44.323 10.278-81.655 43.859-110.492 24.57-21.091 53.398-30.794 85.846-29.73 24.153 0.786 46.087 8.406 65.902 21.902 20.16 13.718 34.877 32.001 44.318 54.527 9.258 22.093 12.073 44.983 8.279 69.174H660.11c-5.864-48.677 9.189-89.301 47.71-119.794 26.652-21.102 57.782-28.826 91.558-25.087 60.437 6.677 122.165 65.992 107.31 150.752 12.938-2.104 25.373-3.916 37.706-6.305 2.579-0.503 5.102-2.809 7.047-4.865 9.141-9.619 7.555-39.181-1.855-48.461zM275.612 469.297c28.838-41.323 63.854-70.249 113.867-78.948 2.196 29.673 4.375 59.214 6.583 89.087-40.444-3.403-79.805-6.716-120.45-10.139z m179.897 71.126c-5.494 0.317-11.013 0.055-16.524 0.055v0.078c-5.506 0-11.013 0-16.527-0.003-0.575 0-1.154-0.039-1.73-0.13-7.911-1.247-13.83-7.818-13.216-14.659 0.61-6.893 6.516-12.017 14.546-12.153 11.013-0.181 22.046-0.3 33.051-0.011 8.454 0.211 14.175 5.82 14.375 13.248 0.195 7.312-5.532 13.081-13.975 13.575z m-30.098-58.221c-2.338-32.026-4.608-63.141-6.888-94.362 103.429-11.606 190.875 22.776 269.354 89.534-87.844 19.856-174.859 9.391-262.466 4.828zM236.91 570.114c-49.771-0.016-90.786 39.783-92.253 86.639-1.697 54.596 43.161 96.574 91.545 95.173 51.424-0.008 91.141-40.06 91.079-91.851-0.053-49.787-40.393-89.944-90.371-89.961z m-0.131 125.312c-17.785 0.532-34.806-15.951-35.104-33.997-0.307-18.086 15.924-34.542 34.257-34.748 18.157-0.192 34.65 16.176 34.635 34.365-0.024 17.843-15.75 33.839-33.788 34.38zM787.66 569.923c-53.395-1.601-95.199 41.641-94.92 90.003 0.29 51.36 39.759 91.973 90.084 91.992 52.573 0.038 92.121-39.199 92.188-91.492 0.07-48.553-40.287-89.095-87.352-90.503z m-3.893 125.425c-18.762-0.355-34.274-16.08-34.2-34.674 0.072-18.189 16.564-34.166 34.977-33.883 18.123 0.27 33.8 16.151 33.739 34.193-0.055 18.402-16.424 34.702-34.516 34.364z",animation:{style:{motion:{type:"percent",value:1}},duration:9,loop:!0}});return t.add(i),t.add(s),t}getData(){return[{}]}};r4=p([F()],r4);const Zr={paintTransition:(e,t,i,s)=>G(e)&&G(t)?Wt.color(e,t,i):W(e)&&W(t)?Zr.gradient(e,t,i,s):t,gradient(e,t,i,s){const n=Object.assign({},t);return n.from=l4("from",e,t,i,s),n.to=l4("to",e,t,i,s),n.stops=Zr.stops(e.stops,t.stops,i),(e.opacity||t.opacity)&&(n.opacity=Wt.number(e.opacity||1,t.opacity||1,i)),(e.rotation||t.rotation)&&(n.rotation=Wt.number(e.rotation||0,t.rotation||0,i)),(e.stretch||t.stretch)&&(n.stretch=Wt.number(e.stretch||1,t.stretch||1,i)),n},stops(e,t,i){const s=G(e[0]),n=G(t[0]);return e.length===t.length&&s&&n?e.map((r,o)=>Wt.color(r,t[o],i)):(s&&(e=a4(e)),n&&(t=a4(t)),e.length<t.length?e=o4(e,t.length):t.length<e.length&&(t=o4(t,e.length)),e.map((r,o)=>({offset:Wt.number(r.offset,t[o].offset,i),color:Wt.color(r.color,t[o].color,i)})))}};function o4(e,t){const i=t-e.length,s=[];for(let n=0;n<e.length;n++)s.push(e[n]),n<i&&s.push(e[n]);return s}function a4(e){const{length:t}=e;return e.map((i,s)=>({offset:s/(t-1),color:i}))}function l4(e,t,i,s,n){if(t[e]===i[e])return t[e];let r=h4(t.type,e,t[e]),o=h4(i.type,e,i[e]);if(r.type!==o.type){const{boxBounds:a}=n.__layout;r.type!=="px"&&(r=Object.assign(Object.assign({},r),{type:"px"}),Qt.toPoint(r,a,r)),o.type!=="px"&&(o=Object.assign({},o),Qt.toPoint(o,a,o))}return{type:r.type,x:Wt.number(r.x,o.x,s),y:Wt.number(r.y,o.y,s)}}
446function h4(e,t,i){return i||(i=e==="linear"?t==="from"?"top":"bottom":t==="from"?"center":"bottom"),W(i)?i:Qt.get(i)}const $p={fill:Zr.paintTransition,stroke:Zr.paintTransition};Object.assign(Wt.list,$p);let c4=class extends D{get tag(){return"AnimateGradientCase"}getUI(e){return new Q({x:e.x+30,y:e.y,width:100,height:100,cornerRadius:30,fill:{type:"linear",stops:["#FEB027","#79CB4D"]},hoverStyle:{fill:{type:"radial",from:"top",stops:["#FF4B4B","#FEB027"]}},transition:1})}getData(){return[{}]}};c4=p([F()],c4);const d4="M0 0L0 0M150 150L150 150M79.9034 61.2132C79.7797 61.0366 79.6731 60.3219 79.6617 59.5931C79.6627 58.882 79.4622 57.7332 79.2427 57.0449C78.6979 55.4793 78.6763 55.0734 79.0772 54.1086C79.4958 53.1314 80.8752 52.1392 81.8414 52.0941C82.2117 52.098 83.5343 52.2244 84.7864 52.4001C87.0031 52.7161 88.9565 52.506 89.9079 51.8398C90.7007 51.2847 92.4236 51.4203 94.3711 52.2142C95.4083 52.6456 96.9086 52.4633 97.8424 51.8095C99.0228 50.983 99.2698 51.0732 100.141 52.542L100.906 53.8219L102.514 53.9062C103.404 53.9405 105.938 54.0344 108.142 54.0698C110.902 54.1109 112.602 54.2888 113.552 54.5966C114.972 55.0496 116.362 54.9713 117.154 54.4162C117.401 54.2435 118.109 53.6424 118.765 53.0783C119.788 52.1775 120.059 52.0401 120.898 51.9261C121.702 51.8368 121.956 51.7118 122.233 51.2815C122.798 50.4385 122.855 49.8457 122.533 47.6239C122.249 45.718 122.147 45.4215 121.306 44.2209C120.799 43.4971 120.006 42.5524 119.567 42.1497C118.718 41.3497 117.494 40.8387 117.323 41.195C117.284 41.3273 117.684 42.0475 118.228 42.8244C119.217 44.2368 119.512 45.1087 119.385 46.2767C119.317 46.9295 119.04 47.0969 118.052 46.999C116.88 46.8992 116.212 47.4456 115.621 48.9644C115.363 49.6452 115.067 50.2731 114.997 50.3225C114.909 50.3842 114.017 50.2722 112.997 50.0914C111.965 49.8929 109.55 49.7426 107.651 49.7304C105.722 49.7129 104.061 49.6656 103.946 49.6144C103.554 49.4676 103.553 48.153 103.938 47.5411C104.238 47.0684 104.771 46.6684 106.144 45.8914C108.636 44.4625 111.606 42.33 111.896 41.7321C112.021 41.4604 112.124 40.783 112.099 40.2218C112.074 39.6607 112.193 38.8932 112.381 38.5246C113.366 36.5192 113.23 34.8252 111.96 33.873C111.602 33.6239 110.963 33.387 110.515 33.3848C110.067 33.3827 109.152 33.0502 108.462 32.6649C106.398 31.4792 104.052 31.2796 101.951 32.0665C101.419 32.2813 100.577 32.5029 100.083 32.5855C99.1362 32.6958 98.5054 33.0323 98.7032 33.3148C98.765 33.4031 99.6925 33.4903 100.768 33.5265C102.799 33.5777 105.24 34.0261 105.488 34.3792C105.574 34.5028 105.529 35.1133 105.389 35.7378C105.196 36.6623 105.228 37.0081 105.574 37.5025C105.834 37.8732 105.984 38.4257 105.97 38.8562C105.945 39.532 105.851 39.6236 104.407 40.6352C103.05 41.5851 102.782 41.8778 102.152 43.003C101.317 44.5092 100.205 45.7346 99.4932 45.9175C98.6859 46.1144 98.2658 45.7771 97.7018 44.4091C96.6993 41.9274 96.6869 41.9097 95.8366 41.5578C94.6723 41.0575 93.9711 39.9435 93.7771 38.3165C93.6044 36.8324 92.7097 34.6172 92.1963 34.3715C91.9969 34.2743 91.452 34.2085 90.9566 34.2134C90.3659 34.2323 89.812 34.0413 89.3197 33.6756C88.3473 32.9619 86.8536 32.666 85.3903 32.9012C84.4983 33.0522 83.8427 33.3533 82.4314 34.2626C79.5964 36.0635 78.3291 38.0034 80.6043 37.0154C82.7914 36.0892 86.0584 35.8802 86.5777 36.6217C86.7631 36.8866 86.7142 37.3418 86.403 38.0597C86.1603 38.6506 86.0394 39.3404 86.1473 39.6069C86.3896 40.2529 87.2825 40.8907 88.6267 41.4229C89.5545 41.7731 89.8228 42.0062 90.5151 42.9949C90.9972 43.6835 91.7439 44.4499 92.3333 44.8792C93.8703 45.9868 94.7725 47.0128 94.5419 47.3584C94.1265 47.965 91.4529 47.5217 89.6693 46.5867C88.6654 46.053 86.4539 45.707 85.4262 45.9267C85.0102 46.0075 83.8804 46.4565 82.9059 46.9021C81.9437 47.3654 80.9425 47.698 80.6851 47.6678C80.4152 47.6199 79.7872 47.3229 79.3072 46.9749C78.7972 46.6216 78.0703 46.1834 77.654 46.0013L76.906 45.683L74.8094 47.1511C72.4309 48.8165 72.4362 48.7865 73.0132 50.698C73.592 52.687 73.5779 55.8543 73.0184 56.9302C72.8407 57.2388 73.6961 66.4409 76.906 66.4409C80.3685 66.4409 80.0393 61.4074 79.9034 61.2132Z",u4="M0 0L0 0M150 150L150 150M78.6177 89.5666C77.8128 92.3319 77.6467 93.834 78.1016 93.9996C78.2004 94.0355 78.6503 94.8913 79.1417 95.9407C80.0922 98.0055 80.4654 99.7486 80.7576 103.56C80.861 104.937 81.1011 106.431 81.2703 106.828C81.9724 108.467 83.2473 109.333 85.4473 109.687C87.3094 109.986 88.1633 110.408 90.1235 112.037C91.7329 113.337 92.069 113.459 94.4432 113.52C95.7533 113.55 95.8324 113.579 98.6173 114.972C100.194 115.747 101.67 116.552 101.924 116.778C102.535 117.313 102.73 118.991 102.258 119.735C102.077 120.048 101.667 120.435 101.35 120.632C99.9627 121.489 99.7456 121.901 98.8029 125.598C98.0019 128.722 97.8727 129.077 97.3322 129.639C96.6265 130.409 95.5321 130.524 94.0885 129.998C93.5618 129.784 92.6074 129.638 91.9479 129.666C89.9099 129.728 88.6571 129.54 86.7984 128.863C84.9791 128.201 84.402 127.879 84.5096 127.584C84.5455 127.485 84.9462 127.43 85.4117 127.443C85.8502 127.469 86.7164 127.427 87.3238 127.358C87.9312 127.289 88.6034 127.288 88.8011 127.36C89.3746 127.568 92.0395 127.199 92.1471 126.903C92.1974 126.765 92.0875 126.391 91.8895 126.073C91.4685 125.384 91.5653 124.995 92.2444 124.729C92.5875 124.586 92.9251 124.151 93.3414 123.253C93.6859 122.552 94.4254 121.259 95.0143 120.38C96.0735 118.823 96.0806 118.803 95.8125 118.371C95.4725 117.89 94.732 117.71 92.7101 117.666C91.0207 117.631 90.4347 117.396 89.0032 116.16C88.372 115.618 87.7193 115.135 87.5809 115.085C87.1261 114.919 86.999 115.699 87.2069 117.404C87.4782 119.735 87.3239 120.036 85.213 121.098L83.4398 121.971L82.2571 124.174C81.593 125.384 80.9055 126.473 80.7025 126.6C80.4115 126.784 80.0071 126.726 78.7811 126.28C77.884 125.976 76.6671 125.689 75.9159 125.661C74.2355 125.541 71.0572 124.428 70.167 123.613C69.3685 122.854 69.7134 122.645 70.9988 123.112C72.205 123.551 74.8722 123.853 75.7563 123.639C76.466 123.473 76.6204 123.172 76.4938 122.166C76.4053 121.486 76.4394 121.454 77.0466 121.139C77.4041 120.957 77.9611 120.78 78.3349 120.738C78.883 120.647 79.0123 120.538 79.2993 119.749C79.5863 118.961 79.791 118.767 80.8509 118.193C83.0983 117.002 83.8553 115.046 82.3936 114.201C82.0592 114.012 81.4101 113.642 80.9516 113.364C79.8045 112.701 79.1576 112.755 78.132 113.543C77.6434 113.901 76.7093 114.498 76.041 114.858C74.9613 115.425 74.7692 115.645 74.1051 116.854C73.2706 118.47 72.2504 119.304 71.0626 119.43C69.4883 119.571 69.0803 119.401 68.384 118.299C67.8334 117.473 67.5151 117.179 66.4041 116.663C64.6566 115.804 63.5076 114.961 62.378 113.635C61.7448 112.914 61.4587 112.408 61.5196 112.117C61.627 111.576 61.6073 111.569 62.9792 112.537C63.587 112.959 64.8616 113.579 65.8234 113.952C67.4251 114.535 67.6174 114.56 68.1043 114.268C68.4761 114.047 68.7598 113.636 69.018 112.927C69.4628 111.705 69.7664 111.547 72.1187 111.176C73.8025 110.918 74.805 110.502 75.6993 109.644C76.
4461968 109.2 76.3673 108.793 76.7706 107.377C77.4088 105.132 77.2231 104.35 75.5773 102.412C74.5124 101.153 73.2076 98.6472 72.8849 97.2574C72.7136 96.436 72.7402 95.9323 73.0056 95.203C73.472 93.9217 72.9736 93.7725 72.3728 92.4502C71.0626 89.5666 72.1187 83.1357 75 83.1357C78.1016 83.1357 79.1304 87.7889 78.6177 89.5666Z",Jp=[{x:240.68017578125,y:619.9313354492188},{x:237.16748046875,y:619.9313354492188},{x:229.5886993408203,y:619.9313354492188},{x:218.7652130126953,y:619.9313354492188},{x:208.68983459472656,y:619.9313354492188},{x:198.7582244873047,y:619.9313354492188},{x:188.19764709472656,y:619.9313354492188},{x:177.92666625976562,y:619.9313354492188},{x:169.24285888671875,y:619.9313354492188},{x:162.76707458496094,y:619.90576171875},{x:157.11436462402344,y:619.3753662109375},{x:151.916259765625,y:617.8464965820312},{x:146.44532775878906,y:614.79443359375},{x:141.35694885253906,y:610.5438232421875},{x:136.59365844726562,y:606.452880859375},{x:130.99305725097656,y:601.93896484375},{x:125.08781433105469,y:596.7733764648438},{x:120.15219116210938,y:592.136474609375},{x:116.80934143066406,y:588.458984375},{x:113.78790283203125,y:584.1371459960938},{x:111.16006469726562,y:578.9271240234375},{x:109.58747863769531,y:573.712646484375},{x:108.3077392578125,y:568.3594360351562},{x:107.76815795898438,y:562.3731689453125},{x:107.76815795898438,y:555.2154541015625},{x:107.98951721191406,y:548.1558227539062},{x:109.78890991210938,y:541.4668579101562},{x:114.05853271484375,y:534.4695434570312},{x:122.20445251464844,y:525.45166015625},{x:136.9500732421875,y:515.6165161132812},{x:157.74520874023438,y:506.60687255859375},{x:178.44725036621094,y:500.76837158203125},{x:196.227783203125,y:498.088134765625},{x:215.2079315185547,y:495.2755126953125},{x:233.23080444335938,y:492.6033935546875},{x:244.28720092773438,y:490.75262451171875},{x:251.85800170898438,y:489.48492431640625},{x:258.7664794921875,y:488.404052734375},{x:264.0390930175781,y:487.16204833984375},{x:269.918701171875,y:485.61126708984375},{x:277.47076416015625,y:484.013427734375},{x:287.82830810546875,y:480.82330322265625},{x:298.5936279296875,y:477.044677734375},{x:305.9586181640625,y:474.2325439453125},{x:312.45745849609375,y:470.76605224609375},{x:318.8465576171875,y:465.93499755859375},{x:321.8755798339844,y:461.009765625},{x:322.068115234375,y:456.14715576171875},{x:320.0497741699219,y:450.62628173828125},{x:314.4300842285156,y:444.45654296875},{x:303.6468200683594,y:436.4105224609375},{x:292.0837097167969,y:429.67938232421875},{x:281.54437255859375,y:425.91156005859375},{x:269.50732421875,y:422.2828369140625},{x:257.15142822265625,y:419.71038818359375},{x:243.4276580810547,y:417.99041748046875},{x:230.0701141357422,y:416.81005859375},{x:216.662109375,y:416.43853759765625},{x:202.357421875,y:415.23626708984375},{x:188.71206665039062,y:413.421875},{x:176.9940948486328,y:411.5537109375},{x:167.32138061523438,y:409.032958984375},{x:159.53192138671875,y:406.66485595703125},{x:153.8592529296875,y:404.00830078125},{x:149.92138671875,y:401.26055908203125},{x:144.5467529296875,y:396.1421203613281},{x:143.97755432128906,y:395.2511901855469},{x:142.59359741210938,y:392.8650207519531},{x:141.24720764160156,y:389.6397705078125},{x:140.59629821777344,y:386.4396057128906},{x:140.3038330078125,y:384.0779724121094},{x:140.13063049316406,y:381.7547912597656},{x:140.13063049316406,y:378.6162109375},{x:140.692138671875,y:374.965576171875},{x:143.1006317138672,y:370.5981140136719},{x:147.02401733398438,y:365.4375},{x:152.55978393554688,y:358.6809997558594},{x:159.8966827392578,y:350.9884948730469},{x:171.38970947265625,y:341.6991271972656},{x:187.34690856933594,y:331.4367980957031},{x:203.0254669189453,y:323.2778625488281},{x:218.34814453125,y:317.5356140136719},{x:233.5912628173828,y:314.1258544921875},{x:248.14048767089844,y:311.82769775390625},{x:262.38958740234375,y:310.59588623046875},{x:276.1289978027344,y:310.48162841796875},{x:288.9454345703125,y:310.48162841796875},{x:299.1197204589844,y:310.48162841796875},{x:306.1456604003906,y:310.48162841796875},{x:311.2547912597656,y:310.48162841796875},{x:314.99505615234375,y:310.48162841796875},{x:316.98236083984375,y:310.48162841796875},{x:317.59527587890625,y:310.48162841796875},{x:317.861083984375,y:310.48162841796875},{x:317.8200988769531,y:310.48162841796875},{x:315.5401916503906,y:310.32904052734375},{x:309.04949951171875,y:308.79571533203125},{x:298.0025329589844,y:305.4224853515625},{x:286.5418701171875,y:301.0468444824219},{x:272.80047607421875,y:296.5848083496094},{x:257.3282470703125,y:293.7320251464844},{x:243.0431365966797,y:290.60211181640625},{x:228.6371307373047,y:286.8008728027344},{x:217.15330505371094,y:283.93634033203125},{x:209.3570098876953,y:281.76666259765625},{x:203.46693420410156,y:279.4900817871094},{x:198.05087280273438,y:276.8197021484375},{x:193.6062469482422,y:275.11236572265625}
446,{x:189.9735565185547,y:273.37603759765625},{x:186.69815063476562,y:271.2194519042969},{x:183.22525024414062,y:268.7884826660156},{x:180.17440795898438,y:266.5411376953125},{x:177.65419006347656,y:264.24462890625},{x:174.80120849609375,y:261.5429382324219},{x:171.85023498535156,y:258.3822021484375},{x:168.899658203125,y:254.1480712890625},{x:166.12158203125,y:250.04666137695312},{x:164.15333557128906,y:246.96981811523438},{x:162.81851196289062,y:243.86300659179688},{x:161.93875122070312,y:239.70419311523438},{x:161.68470764160156,y:236.181884765625},{x:161.90135192871094,y:233.32974243164062},{x:163.8120880126953,y:230.02099609375},{x:168.0439453125,y:227.33233642578125},{x:175.92996215820312,y:224.67355346679688},{x:187.9339599609375,y:221.59375},{x:203.31834411621094,y:219.12448120117188},{x:222.53160095214844,y:217.0802001953125},{x:242.6642608642578,y:215.90658569335938},{x:256.9416809082031,y:215.74447631835938},{x:268.9786071777344,y:215.74447631835938},{x:284.5271911621094,y:215.74447631835938},{x:297.1941833496094,y:215.74447631835938},{x:305.4105529785156,y:215.74447631835938},{x:310.194091796875,y:215.78024291992188},{x:313.143798828125,y:216.15505981445312},{x:316.34844970703125,y:216.659423828125},{x:318.306640625,y:217.30810546875},{x:319.3393859863281,y:218.14117431640625},{x:319.89501953125,y:219.2611083984375},{x:319.5179443359375,y:220.2271728515625},{x:315.24530029296875,y:220.84469604492188},{x:306.94305419921875,y:221.38677978515625},{x:299.4778137207031,y:221.5072021484375},{x:289.6269226074219,y:221.08856201171875},{x:275.030029296875,y:219.47979736328125},{x:260.802001953125,y:216.12811279296875},{x:249.68431091308594,y:210.86492919921875},{x:242.1542510986328,y:204.3511962890625},{x:237.6493682861328,y:198.71051025390625},{x:235.77809143066406,y:193.0162353515625},{x:235.56259155273438,y:185.22360229492188},{x:238.0032958984375,y:175.38577270507812},{x:245.76126098632812,y:164.13626098632812},{x:259.57177734375,y:153.12179565429688},{x:278.564208984375,y:144.51473999023438},{x:302.4516296386719,y:138.3804168701172},{x:330.2884216308594,y:133.30059814453125},{x:361.16925048828125,y:129.9122314453125},{x:394.4840087890625,y:128.80062866210938},{x:424.6151428222656,y:128.80062866210938},{x:453.4946594238281,y:128.80062866210938},{x:484.2202453613281,y:128.80062866210938},{x:512.13330078125,y:128.80062866210938},{x:532.3580322265625,y:128.80062866210938},{x:549.3466796875,y:128.80062866210938},{x:566.7947387695312,y:128.80062866210938},{x:579.2771606445312,y:128.80062866210938},{x:588.5029296875,y:128.80062866210938},{x:597.775634765625,y:128.80062866210938},{x:605.691650390625,y:128.80062866210938},{x:613.2927856445312,y:128.81314086914062},{x:622.7910766601562,y:129.59234619140625},{x:632.660400390625,y:131.49383544921875},{x:639.6019287109375,y:133.365478515625},{x:645.1209716796875,y:136.09536743164062},{x:649.9264526367188,y:138.5926513671875},{x:652.12353515625,y:139.7490692138672},{x:653.4529418945312,y:141.6261749267578},{x:654.1038208007812,y:143.62002563476562},{x:654.23388671875,y:146.36395263671875},{x:654.23388671875,y:149.55697631835938},{x:654.23388671875,y:153.18130493164062},{x:654.23388671875,y:157.92684936523438},{x:654.706787109375,y:163.259033203125},{x:657.148681640625,y:169.21258544921875},{x:663.7310791015625,y:176.93746948242188},{x:675.393798828125,y:185.82260131835938},{x:697.8765869140625,y:197.08489990234375},{x:730.101318359375,y:209.26373291015625},{x:756.5614624023438,y:217.45968627929688},{x:772.0196533203125,y:222.32958984375},{x:783.5703125,y:226.8521728515625},{x:793.1532592773438,y:231.53128051757812},{x:798.4785766601562,y:234.990234375},{x:798.71630859375,y:237.58175659179688},{x:786.244140625,y:239.35009765625},{x:743.7654418945312,y:240.76577758789062},{x:676.855224609375,y:241.41348266601562},{x:623.1321411132812,y:241.41348266601562},{x:579.6886596679688,y:241.41348266601562},{x:543.5797729492188,y:241.41348266601562},{x:522.3009033203125,y:241.41348266601562},{x:503.5755310058594,y:241.5670166015625},{x:490.5221252441406,y:243.00296020507812},{x:483.81689453125,y:245.310546875},{x:481.04052734375,y:247.64443969726562},{x:479.6584777832031,y:250.12359619140625},{x:479.2035217285156,y:253.12911987304688},{x:479.2035217285156,y:257.1519470214844},{x:479.6007080078125,y:262.23834228515625},{x:482.7340087890625,y:268.78021240234375},{x:490.72222900390625,y:277.37506103515625},{x:510.3592529296875,y:292.5055847167969},{x:540.8040771484375,y:310.10015869140625},{x:563.6721801757812,y:320.01885986328125},{x:576.6270751953125,y:324.7447204589844},{x:586.8014526367188,y:328.3592224121094},{x:595.235595703125,y:331.36962890625},{x:602.155029296875,y:334.5262756347656},{x:606.0723266601562,y:337.7934265136719},{x:607.2012939453125,y:341.0264892578125},{x:603.1683349609375,y:344.99822998046875},{x:593.0477294921875,y:349.50506591796875},{x:580.65673828125,y:353.9184265136719},{x:568.4353637695312,y:358.82916259765625},{x:555.0886840820312,y:365.9188537597656},{x:543.2350463867188,y:373.9908752441406},{x:536.06591796875,y:380.5014953613281},{x:532.3113403320312,y:386.6781005859375},{x:531.355224609375,y:394.53863525390625},{x:536.2149047851562,y:404.17095947265625},{x:565.3321533203125,y:421.64447021484375},{x:621.1520385742188,y:446.31939697265625}
446,{x:673.0527954101562,y:465.65069580078125},{x:706.0294799804688,y:476.9395751953125},{x:735.7498168945312,y:488.38800048828125},{x:764.4776611328125,y:501.72955322265625},{x:781.2689819335938,y:512.3893432617188},{x:788.6593627929688,y:520.6854858398438},{x:790.4196166992188,y:527.2539672851562},{x:787.0365600585938,y:533.9720458984375},{x:774.5760498046875,y:541.3004150390625},{x:746.854736328125,y:548.428466796875},{x:708.3807373046875,y:552.2017822265625},{x:665.1015014648438,y:552.3807983398438},{x:615.05615234375,y:550.266845703125},{x:578.5239868164062,y:547.2900390625},{x:562.2446899414062,y:545.7000122070312},{x:544.4217529296875,y:543.8775024414062},{x:526.6846923828125,y:542.6094360351562},{x:515.3068237304688,y:542.4368286132812},{x:507.82373046875,y:542.8500366210938},{x:504.8055419921875,y:545.9140014648438},{x:504.30499267578125,y:551.2197265625},{x:504.30499267578125,y:556.6761474609375},{x:504.9576721191406,y:564.2420043945312},{x:514.617431640625,y:578.2378540039062},{x:544.9794311523438,y:601.0413208007812},{x:583.1019897460938,y:622.4859008789062},{x:618.81689453125,y:638.5440673828125},{x:642.4320068359375,y:648.4472045898438},{x:651.7089233398438,y:652.211181640625},{x:669.0797119140625,y:660.046630859375},{x:684.70703125,y:667.7074584960938},{x:688.8822021484375,y:671.3955688476562},{x:690.0725708007812,y:673.8245849609375},{x:686.0026245117188,y:675.6801147460938},{x:673.8009643554688,y:678.2551879882812},{x:650.9788818359375,y:679.96728515625},{x:620.3065185546875,y:680.3471069335938},{x:578.73681640625,y:679.3377075195312},{x:531.990234375,y:675.6918334960938},{x:494.20159912109375,y:671.4276733398438},{x:466.2966003417969,y:668.7980346679688}
446,{x:440.8201599121094,y:665.1271362304688},{x:418.58343505859375,y:660.7180786132812},{x:406.6043395996094,y:657.805908203125},{x:398.4539489746094,y:653.6334228515625},{x:392.99786376953125,y:647.87939453125},{x:391.8678283691406,y:641.4186401367188},{x:391.8678283691406,y:634.0491333007812},{x:392.7903747558594,y:627.6297607421875},{x:395.8005676269531,y:621.0133666992188},{x:398.95135498046875,y:615.7557983398438},{x:401.52130126953125,y:612.235107421875},{x:404.3561706542969,y:608.5206298828125},{x:406.3377685546875,y:606.1433715820312},{x:407.24114990234375,y:604.6851196289062},{x:407.7037048339844,y:603.7018432617188},{x:407.9521179199219,y:603.0899658203125},{x:407.67828369140625,y:603.0899658203125},{x:404.4674377441406,y:603.0899658203125},{x:395.6679992675781,y:603.364990234375},{x:382.4545593261719,y:604.6863403320312},{x:366.3904113769531,y:607.2435913085938},{x:349.9324951171875,y:611.2557983398438},{x:336.60040283203125,y:616.344970703125},{x:325.4888610839844,y:622.14794921875},{x:315.5075378417969,y:628.2860717773438},{x:307.19244384765625,y:634.8521118164062},{x:300.7373962402344,y:641.4320678710938},{x:296.1580810546875,y:647.2201538085938},{x:292.9333190917969,y:653.7471923828125},{x:291.2640686035156,y:661.154052734375},{x:290.5333251953125,y:669.614990234375},{x:290.2293701171875,y:680.0028076171875},{x:290.4056396484375,y:691.5325317382812},{x:291.726806640625,y:702.7445068359375},{x:295.44091796875,y:713.4786987304688},{x:302.1435852050781,y:725.7667236328125},{x:311.6299133300781,y:739.0214233398438},{x:323.9136962890625,y:751.3807983398438},{x:338.2168884277344,y:762.637451171875},{x:353.5345458984375,y:772.43603515625},{x:369.62249755859375,y:780.6912841796875},{x:388.5640869140625,y:788.6135864257812},{x:410.2676696777344,y:795.5213623046875},{x:432.339599609375,y:799.5706176757812},{x:452.6488342285156,y:801.21240234375},{x:472.8461608886719,y:801.8333129882812},{x:489.4183654785156,y:802.161376953125},{x:503.13568115234375,y:802.161376953125},{x:517.236328125,y:802.161376953125},{x:528.203857421875,y:801.45849609375},{x:537.59423828125,y:799.353271484375},{x:548.985107421875,y:795.3729858398438},{x:560.3685913085938,y:790.9413452148438},{x:570.54248046875,y:786.0970458984375},{x:581.646484375,y:780.0775756835938},{x:591.6048583984375,y:773.3500366210938},{x:600.2791137695312,y:765.9856567382812},{x:607.5302124023438,y:759.160888671875},{x:614.6248779296875,y:750.2822875976562},{x:617.0553588867188,y:745.6726684570312},{x:623.7686157226562,y:731.5681762695312},{x:625.7848510742188,y:726.5850830078125},{x:629.7725219726562,y:716.7808837890625},{x:633.0860595703125,y:706.7591552734375},{x:635.4005737304688,y:696.3844604492188},{x:636.4208374023438,y:683.893798828125},{x:636.4686279296875,y:669.082275390625},{x:635.4995727539062,y:653.8338623046875},{x:629.152587890625,y:637.3683471679688},{x:608.4226684570312,y:613.6268310546875},{x:576.136962890625,y:587.475830078125},{x:548.6612548828125,y:571.4052734375},{x:521.6805419921875,y:558.6323852539062},{x:492.6398010253906,y:544.9703369140625},{x:469.14532470703125,y:534.3778076171875},{x:448.36920166015625,y:525.2407836914062},{x:429.9062194824219,y:515.7879638671875},{x:413.9791564941406,y:506.17962646484375},{x:400.7943115234375,y:497.472900390625},{x:388.9090576171875,y:488.112548828125},{x:377.9210510253906,y:478.0718994140625},{x:368.9584655761719,y:468.98681640625},{x:361.71710205078125,y:460.171142578125},{x:355.8834228515625,y:450.62921142578125},{x:350.9006652832031,y:440.2552490234375},{x:347.6327819824219,y:430.16241455078125},{x:346.73272705078125,y:420.04010009765625},{x:346.7481384277344,y:405.7080078125},{x:350.09588623046875,y:391.0255126953125},{x:358.6235046386719,y:379.22845458984375},{x:370.6874084472656,y:367.3245849609375},{x:391.6672668457031,y:352.2784118652344},{x:422.4637756347656,y:336.4080810546875},{x:457.0167541503906,y:324.55938720703125},{x:488.33038330078125,y:316.6554870605469},{x:514.0612182617188,y:311.38885498046875},{x:536.445068359375,y:307.8260192871094},{x:552.0476684570312,y:306.7522277832031},{x:566.333740234375,y:306.7522277832031},{x:577.8405151367188,y:306.7522277832031},{x:582.6895751953125,y:308.73919677734375},{x:586.988525390625,y:315.0747985839844},{x:591.1666259765625,y:326.05120849609375},{x:595.2051391601562,y:340.44476318359375},{x:600.125244140625,y:357.70843505859375},{x:607.2614135742188,y:377.67156982421875},{x:620.7417602539062,y:408.38153076171875},{x:635.4329833984375,y:435.36761474609375},{x:651.9332885742188,y:453.89996337890625},{x:674.8692626953125,y:475.10736083984375},{x:700.0055541992188,y:490.81195068359375},{x:726.2293090820312,y:500.3675537109375},{x:754.4906005859375,y:505.08697509765625},{x:785.3385620117188,y:506.2701416015625},{x:831.2523193359375,y:502.46630859375},{x:845.0145874023438,y:497.31634521484375},{x:873.06005859375,y:484.5673828125},{x:899.38623046875,y:468.30157470703125},{x:921.6510620117188,y:450.6734619140625},{x:938.024169921875,y:434.03887939453125},{x:951.522216796875,y:415.07000732421875},{x:962.416748046875,y:393.0771484375},{x:966.2839965820312,y:371.341064453125},{x:966.6035766601562,y:349.3255310058594},{x:966.6035766601562,y:329.162353515625},{x:966.6035766601562,y:307.9606018066406},{x:964.268798828125,y:282.5665283203125},{x:952.5144653320312,y:249.345947265625},{x:931.0427856445312,y:214.33270263671875},{x:901,y:185.92697143554688},{x:860.8995361328125,y:159.675048828125},{x:814.1103515625,y:134.7515411376953},{x:760.7182006835938,y:111.79804992675781},{x:704.6653442382812,y:93.65969848632812},{x:657.6210327148438,y:81.775390625},{x:599.2645263671875,y:72.146240234375},{x:581.0028076171875,y:71.12002563476562},{x:541.9885864257812,y:68.24995422363281},{x:506.0842590332031,y:65.91317749023438},{x:479.1668701171875,y:65.42025756835938}
446,{x:457.49737548828125,y:65.42025756835938},{x:438.4147644042969,y:65.42025756835938},{x:418.7383728027344,y:65.42025756835938},{x:395.1996765136719,y:65.42025756835938},{x:372.6510314941406,y:65.42025756835938},{x:352.2135314941406,y:65.42025756835938},{x:329.3287353515625,y:65.42025756835938},{x:304.57049560546875,y:65.42025756835938},{x:276.0907287597656,y:65.59109497070312},{x:246.6725311279297,y:66.08988952636719},{x:222.34190368652344,y:68.39924621582031},{x:191.87466430664062,y:73.616455078125},{x:158.13011169433594,y:78.61314392089844},{x:129.47677612304688,y:84.56382751464844},{x:106.76303100585938,y:91.47647094726562},{x:89.997802734375,y:97.55107116699219},{x:74.09689331054688,y:103.03242492675781},{x:60.96476745605469,y:108.47276306152344},{x:50.32142639160156,y:114.75694274902344},{x:41.684967041015625,y:121.04855346679688},{x:34.23419189453125,y:128.00656127929688},{x:28.106246948242188,y:135.4747314453125},{x:22.427871704101562,y:144.18844604492188},{x:16.883819580078125,y:153.76730346679688},{x:11.298095703125,y:164.99050903320312},{x:4.9309234619140625,y:181.24609375},{x:-.7172393798828125,y:198.5885009765625},{x:-3.7152252197265625,y:209.95803833007812},{x:-5.8972015380859375,y:227.34268188476562},{x:-7.34222412109375,y:250.5960693359375},{x:-7.092071533203125,y:270.09100341796875},{x:-2.86279296875,y:290.55157470703125},{x:5.4393768310546875,y:307.7371520996094},{x:16.07293701171875,y:320.25506591796875},{x:31.327224731445312,y:332.78460693359375},{x:49.14207458496094,y:343.3414001464844},{x:65.80300903320312,y:349.2952575683594},{x:79.10273742675781,y:352.4767150878906},{x:91.363525390625,y:355.27301025390625},{x:102.94932556152344,y:358.5715637207031},{x:111.59992980957031,y:361.88641357421875},{x:118.16902160644531,y:365.5347595214844},{x:122.41239929199219,y:369.3211975097656},{x:124.37368774414062,y:372.84014892578125},{x:125.05294799804688,y:377.4460754394531},{x:125.26097106933594,y:384.6080322265625},{x:125.26097106933594,y:392.2833557128906},{x:124.56707763671875,y:399.7890625},{x:122.90251159667969,y:407.61810302734375},{x:120.08699035644531,y:416.51727294921875},{x:116.98551940917969,y:425.34039306640625},{x:114.64743041992188,y:431.181396484375},{x:111.29167175292969,y:438.29150390625},{x:107.22103881835938,y:445.77642822265625},{x:103.44757080078125,y:450.12005615234375},{x:98.8018798828125,y:453.73809814453125},{x:94.21209716796875,y:456.9820556640625},{x:89.39093017578125,y:459.7821044921875},{x:84.64309692382812,y:462.33441162109375},{x:80.09513854980469,y:465.67901611328125},{x:75.51506042480469,y:470.25592041015625},{x:71.58799743652344,y:476.2674560546875},{x:67.99029541015625,y:483.40118408203125},{x:64.99017333984375,y:491.70166015625},{x:61.953277587890625,y:504.3084716796875},{x:59.7108154296875,y:521.2378540039062},{x:58.95039367675781,y:538.983154296875},{x:58.84501647949219,y:557.3832397460938},{x:58.862945556640625,y:573.5288696289062},{x:59.79389953613281,y:588.6983642578125},{x:62.32029724121094,y:605.6407470703125},{x:65.40573120117188,y:619.1212158203125},{x:68.66693115234375,y:629.6984252929688},{x:71.980712890625,y:639.4208374023438},{x:74.51643371582031,y:646.5446166992188},{x:77.03927612304688,y:653.4844360351562},{x:80.38827514648438,y:662.3212890625},{x:83.64006042480469,y:671.7353515625},{x:85.53666687011719,y:682.173095703125},{x:86.34194946289062,y:692.8223266601562},{x:87.326904296875,y:703.166748046875},{x:87.99745178222656,y:714.1890258789062},{x:88.00625610351562,y:726.290283203125},{x:88.29582214355469,y:737.6028442382812},{x:89.57905578613281,y:748.0625610351562},{x:91.5301513671875,y:758.8668212890625},{x:93.104248046875,y:767.9542236328125},{x:95.08824157714844,y:775.0514526367188},{x:98.59120178222656,y:781.5836791992188},{x:103.49040222167969,y:787.306884765625},{x:110.89183044433594,y:792.4856567382812},{x:120.35664367675781,y:796.986083984375},{x:131.05345153808594,y:799.8377075195312},{x:146.4026336669922,y:802.8185424804688},{x:164.08346557617188,y:805.3758544921875},{x:181.4142303466797,y:806.1599731445312},{x:199.66864013671875,y:806.6900024414062},{x:221.5491180419922,y:807.4603271484375},{x:252.64785766601562,y:808.172607421875},{x:285.54962158203125,y:808.5690307617188},{x:310.8915710449219,y:808.7109375},{x:332.8196716308594,y:808.7109375},{x:358.0156555175781,y:808.7109375},{x:384.8296813964844,y:807.3670043945312}
446,{x:411.29339599609375,y:804.3628540039062},{x:442.8100891113281,y:801.0768432617188},{x:477.5752258300781,y:798.9480590820312},{x:508.950439453125,y:798.4451293945312},{x:538.9387817382812,y:798.4451293945312},{x:564.75341796875,y:798.4451293945312},{x:584.5881958007812,y:798.4451293945312},{x:601.953369140625,y:798.4451293945312},{x:620.5767211914062,y:798.4451293945312},{x:639.6571655273438,y:798.4451293945312},{x:657.04248046875,y:797.0267333984375},{x:672.5783081054688,y:794.7847900390625},{x:685.9794311523438,y:792.885009765625},{x:698.8792724609375,y:790.2440795898438},{x:710.2398681640625,y:786.8981323242188},{x:721.2791748046875,y:782.83984375},{x:734.6668701171875,y:777.8545532226562},{x:747.7073364257812,y:772.646240234375},{x:759.5094604492188,y:766.7468872070312},{x:771.5577392578125,y:759.733642578125},{x:781.0883178710938,y:753.1148071289062},{x:788.2109375,y:746.8663940429688},{x:793.1058349609375,y:739.6290893554688},{x:794.68798828125,y:727.5073852539062},{x:788.6190795898438,y:708.245361328125},{x:767.307861328125,y:680.4276123046875},{x:727.7404174804688,y:642.9824829101562},{x:711.5218505859375,y:630.4267578125},{x:676.407470703125,y:606.6707763671875},{x:640.7999267578125,y:588.7258911132812},{x:606.5274047851562,y:576.7683715820312},{x:575.0426635742188,y:568.8896484375},{x:552.6344604492188,y:566.223876953125},{x:535.591552734375,y:566.223876953125},{x:513.5349731445312,y:566.223876953125},{x:490.71417236328125,y:566.223876953125},{x:470.91619873046875,y:566.223876953125},{x:451.43157958984375,y:566.223876953125},{x:436.10540771484375,y:566.223876953125},{x:422.48358154296875,y:567.4522094726562},{x:411.7792663574219,y:569.078369140625},{x:404.93634033203125,y:570.3853759765625},{x:398.75958251953125,y:572.6610107421875},{x:394.3447570800781,y:575.3125},{x:391.2296447753906,y:577.7244873046875},{x:387.9983215332031,y:580.7376098632812},{x:384.3946533203125,y:584.2405395507812},{x:380.9334716796875,y:587.0499877929688},{x:377.1268615722656,y:589.531982421875},{x:372.4760437011719,y:591.93505859375},{x:367.4461669921875,y:594.3905029296875},{x:362.775146484375,y:596.5431518554688},{x:358.1034851074219,y:598.2348022460938},{x:352.92523193359375,y:600.1163940429688},{x:348.06719970703125,y:601.7010498046875},{x:343.9253845214844,y:603.0943603515625},{x:339.9208984375,y:604.3654174804688},{x:336.08123779296875,y:605.247802734375},{x:332.54583740234375,y:605.9963989257812},{x:329.61279296875,y:606.614990234375},{x:327.3065490722656,y:607.4689331054688},{x:325.0169372558594,y:608.605712890625},{x:322.6275634765625,y:609.6788940429688},{x:319.49169921875,y:610.72119140625},{x:316.1830139160156,y:611.6712036132812},{x:312.9261169433594,y:612.389404296875},{x:309.51275634765625,y:613.1681518554688},{x:306.0719299316406,y:613.6358032226562},{x:302.7427673339844,y:613.6827392578125},{x:298.90057373046875,y:614.3841552734375},{x:294.8807067871094,y:615.4657592773438},{x:292.061279296875,y:615.8929443359375},{x:289.5340881347656,y:615.8929443359375},{x:287.4205322265625,y:616.0133056640625},{x:285.8788757324219,y:616.1865234375},{x:284.5955810546875,y:616.2393188476562},{x:283.4767761230469,y:616.2393188476562},{x:282.4156494140625,y:616.2393188476562},{x:281.5059509277344,y:616.2393188476562},{x:280.6212158203125,y:616.2393188476562},{x:279.4852294921875,y:616.2393188476562},{x:277.8850402832031,y:616.2393188476562},{x:276.30169677734375,y:616.2393188476562},{x:274.8569641113281,y:616.2393188476562},{x:273.4521179199219,y:616.2393188476562},{x:272.005126953125,y:616.2393188476562},{x:270.5512390136719,y:616.2393188476562},{x:269.2940368652344,y:616.2393188476562},{x:267.755126953125,y:616.2393188476562},{x:266.20233154296875,y:616.2393188476562},{x:264.93341064453125,y:616.2393188476562},{x:263.4519348144531,y:616.2393188476562},{x:261.85809326171875,y:616.2393188476562},{x:260.3700256347656,y:616.2393188476562},{x:259.12042236328125,y:616.2393188476562},{x:257.83538818359375,y:616.2393188476562},{x:256.60528564453125,y:616.2393188476562},{x:255.72703552246094,y:616.2393188476562},{x:254.86056518554688,y:616.2393188476562},{x:254.23611450195312,y:616.2393188476562},{x:253.93235778808594,y:616.2393188476562},{x:253.43484497070312,y:616.2393188476562},{x:253.32794189453125,y:616.2393188476562}
446,{x:253.021728515625,y:616.2393188476562},{x:252.47528076171875,y:616.2393188476562},{x:251.92930603027344,y:616.2393188476562},{x:251.43878173828125,y:616.2393188476562},{x:250.68612670898438,y:616.2393188476562},{x:249.77894592285156,y:616.2393188476562},{x:249.04750061035156,y:616.2435302734375},{x:248.40042114257812,y:616.3965454101562},{x:247.67042541503906,y:616.54541015625},{x:247.07296752929688,y:616.54541015625},{x:246.76023864746094,y:616.54541015625},{x:246.41554260253906,y:616.54541015625},{x:245.97654724121094,y:616.54541015625},{x:245.54678344726562,y:616.54541015625},{x:244.8382110595703,y:616.68017578125},{x:244.02438354492188,y:616.8958129882812},{x:243.07595825195312,y:617.0872802734375},{x:242.03396606445312,y:617.3999633789062},{x:240.95437622070312,y:617.8462524414062},{x:239.62049865722656,y:618.1234741210938},{x:238.59959411621094,y:618.1564331054688},{x:237.91036987304688,y:618.1564331054688},{x:237.21510314941406,y:618.1564331054688},{x:236.6608123779297,y:618.1564331054688},{x:236.3086395263672,y:618.1564331054688},{x:235.99563598632812,y:618.1564331054688},{x:235.68954467773438,y:618.1564331054688}];let g4=class extends D{get tag(){return"DragonCase"}getUI(e){const t=new at({x:e.x,y:e.y-220}),i=new _e({motionPath:!0,points:Jp});t.add(i);let s="black";const n=new Vt({path:"M0 0L0 0M200 200L200 200M74.1855 63.3709C75.1589 64.168 76.8372 65.6506 78.9408 67.6064C81.9675 70.43 83.0004 72.3608 87.2054 74.3892C90.3116 75.9016 91.3793 76.1933 91.1018 75.4308C90.9841 75.1073 90.0688 73.8442 87.4464 70.3239L85.9771 68.3727C84.6934 65.7777 83.7306 63.8315 83.0887 62.534C82.9165 62.1858 69.1398 55.7125 64.9891 53.3816C64.0715 52.8663 65.4785 52.4959 67.0752 53.3816C68.1396 53.9721 72.8883 55.832 81.3213 58.9615C80.6506 57.0428 79.5101 55.7717 75.8797 51.3107C74.2168 49.2673 66.0944 47.8197 64.9891 46.1868C64.1681 44.9739 74.6499 49.5643 74.5285 48.5311C74.2037 45.7686 72.2119 43.4112 69.1918 40.4042C66.1718 37.3973 60.1817 31.6662 63.7455 33.337C63.764 33.372 70.3842 39.9846 70.4096 40.0286C70.996 41.0414 74.3102 44.4099 76.9483 48.3723C77.1512 48.6771 76.8296 47.4044 76.9223 45.435C77.056 42.594 75.5547 37.9273 75.8797 37.8856C75.8997 37.8831 77.4989 42.7137 77.9191 46.1868C78.3229 49.5248 79.8318 52.6837 80.0867 53.0629C81.9378 55.8169 83.7416 58.4788 85.107 60.4675C86.2075 62.0704 83.9637 56.1478 84.2896 56.5721C84.7647 57.2004 88.3497 64.947 88.8982 65.6065C91.4487 68.6729 94.4951 71.764 95.2611 71.9805C95.9627 72.17 95.9309 71.318 95.2161 69.3539C94.6866 67.8993 93.0804 62.0049 90 56.5721C89.8003 56.22 86.6555 55.8776 83.5523 53.924C80.8306 52.2106 78.6291 49.6353 78.4437 49.327C78.3965 49.2483 78.2744 48.8025 78.9408 49.327C80.2001 50.3181 82.7616 52.0055 84.6496 52.9511C86.8905 54.0735 88.5724 53.5569 88.4641 53.3816C87.4428 51.7274 86.3881 50.1 85.3823 48.5517C85.2112 48.2884 78.0869 44.4894 77.9191 44.2309C77.7141 43.9151 84.8485 46.4945 84.6496 46.1869C83.7337 44.7695 82.9719 41.915 81.3213 40.0286C78.6771 37.0064 75.0912 34.9614 75.016 33.9452C74.973 33.3942 78.4941 34.8419 81.3213 37.8856C83.5598 40.2955 85.0212 44.2004 86.3371 45.435C86.97 46.0287 85.655 39.3967 86.3371 40.4042C87.3689 41.9282 86.6537 45.0776 87.7091 47.7944C88.109 48.8238 87.7515 48.1623 89.2115 50.9455C89.7777 52.0247 89.3365 50.057 89.2582 48.5517C89.1346 46.175 89.1108 43.3845 89.2582 43.6341C89.5698 44.1616 90.5474 53.2276 90.8634 53.7287C92.3671 56.113 93.4547 58.1169 93.8384 58.9615C96.5111 64.8447 100.453 70.1168 102.619 72.5211C104.25 74.361 106.202 74.5314 105.47 72.5211C104.024 68.5467 100.879 61.2742 101.275 60.5544C101.559 60.0845 101.615 60.1688 102.968 62.8428C105.903 68.6828 107.863 71.6331 111.581 75.8011C113.495 77.9307 114.043 78.2546 116.181 78.497C117.978 78.7065 119.063 79.2537 121.233 80.9759C122.027 81.6288 123.115 82.2535 123.755 82.413C126.31 83.1056 128.443 83.8209 129.055 84.2521C129.536 84.6004 129.833 85.0681 130.189 86.116L130.671 87.5106L131.647 87.5482C132.161 87.5704 133.916 89.2551 135.516 89.0649C139.162 88.6538 141.503 89.6542 143.142 88.2466C143.756 87.7091 144.289 87.2272 144.317 87.1647C144.345 87.1022 144.196 86.3453 143.968 85.5121C143.961 85.4843 144.92 85.0494 144.754 84.2521C144.541 83.2364 143.088 81.7447 141.84 80.9759C141.521 80.7791 141.144 79.993 140.687 79.8771C139.021 79.4548 136.688 80.0285 135.803 78.9734C135.164 78.2117 134.919 76.8557 134.645 75.8028C134.215 74.1519 133.882 72.7735 133.133 71.9805C131.906 70.6818 129.537 79.8407 126.437 78.9734C123.178 78.0617 121.569 76.246 120.889 74.9987C120.503 74.2914 118.66 73.7669 118.741 73.6939C118.838 73.6062 120.784 74.1488 121.493 74.9503C122.288 75.8493 123.736 77.0742 126.437 78.1011C128.962 79.0609 130.067 70.1165 133.133 70.9052C135.378 71.483 134.801 75.8946 136.884 78.497C137.625 79.4226 141.135 78.6261 141.84 79.4264C144.227 82.135 146.507 83.2855 146.644 83.2955C148.372 83.4347 148.277 84.0908 149.629 83.3209C149.705 83.2776 150.767 82.3703 151.471 82.0532C151.504 82.0384 151.118 79.6074 148.359 78.1011C147.509 77.6369 146.032 77.5246 144.754 77.1447C142.861 76.5824 141.135 75.7606 140.349 74.9987C139.033 73.7223 140.907 72.3896 139.78 71.5824C138.652 70.7753 134.628 70.7866 132.527 70.6081C130.513 70.4369 130.067 70.0426 129.055 69.3539C127.851 68.5344 127.213 67.5862 126.437 67.1613C125.772 66.7973 122.716 65.5732 122.246 65.4211C121.512 65.1834 126.413 66.0303 127.212 67.1613C127.598 67.7078 129.116 68.6613 130.189 69.3539C131.858 70.4307 138.16 69.6497 140.349 70.9052C141.891 71.7897 139.885 73.8771 141.196 74.88C143.05 76.2974 147.106 76.5358 148.975 77.6502C152.347 79.6602 153.138 82.0815 153.236 82.1072C153.865 82.2735 154.516 82.5768 154.966 83.0358C155.518 83.5983 155.346 84.7199 155.512 85.3029C155.81 86.3984 156.359 86.3812 156.321 87.3894C156.29 89.3895 156.321 89.8769 156.321 93.2573C156.321 96.6377 156.452 99.0113 155.961 99.1902C155.849 99.2309 155.932 97.6805 155.512 96.9436C154.602 95.4169 154.015 92.7734 153.168 92.5322C151.672 92.1082 152.511 92.5794 151.471 92.7775C150.608 92.9419 153.391 97.7048 153.365 99.2321C153.361 100.96 153.104 100.949 152.186 99.1902C151.648 98.1299 150.019 95.949 148.975 94.8895C148.699 94.6003 148.373 94.4462 148.03 94.4303C147.833 94.4212 148.233 97.9947 148.03 98.0778C147.805 98.1699 146.976 94.7823 146.76 94.9894C146.605 95.1386 146.868 98.6428 146.644 98.7789C146.454 98.895 145.785 95.6449 145.55 95.7498C145.31 95.8564 145.618 99.4246 145.336 99.518C145.072 99.6056 144.221 96.2191 143.923 96.2936C143.668 96.3576 143.815 99.4646 143.538 99.518C143.205 99.5781 142.501 96.6058 142.235 96.7083C142.031 96.7866 142.422 100.16 142.235 100.274C142.039 100.394 141.267 97.257 141.068 97.4274C140.828 97.6305 140.922 100.261 140.687 100.274C140.356 100.292 139.695 97.6203 139.34 97.4619C139.057 97.3358 138.929 100.737 138.607 100.632C138.324 100.54 137.852 96.9329 137.524 96.9436C137.326 96.9513 137.181 100.286 136.884 100.274C136.596 100.262 136.158 96.9038 135.803 96.8839C135.459 96.8646 135.03 100.291 134.645 100.274C134.286 100.258 133.974 96.7968 133.598 96.79C133.226 96.7832 132.899 99.5081 132.527 99.518C132.177 99.5274 131.781 96.8208 131.447 96.8514C131.115 96.8819 130.973 99.1807 130.671 99.2382C130.324 99.3047 129.823 97.1348 129.537 97.2461C129.004 97.4532 129.263 99.0912 129.055 99.2382C128.578 99.5952 127.536 98.5697 127.536 98.7789C127.52 99.3605 124.369 100.716 123.565 101.009C122.761 101.302 122.71 101.373 122.787 102.208C122.911 103.314 123.648 104.852 124.325 105.391C124.627 105.595 125.918 106.014 127.212 106.302C127.504 106.362 128.439 103.899 128.807 104.003C129.114 104.089 128.847 106.737 129.182 106.845C129.707 107.014 130.928 103.91 131.447 104.103C131.95 104.29 131.751 107.774 132.166 107.954C132.637 108.164 133.873 104.841 134.36 105.03C134.714 105.167 134.327 108.825 134.645 108.937C135.206 109.134 135.916 105.643 136.199 105.707C136.613 105.787 136.971 109.482 137.665 109.517C137.963 109.531 138.28 106.296 138.607 106.302C138.986 106.31 139.38 109.558 139.78 109.555C140.192 109.551 140.274 106.085 140.687 106.07C141.026 106.058 141.698 109.499 142.024 109.479C142.377 109.458 142.618 106.332
446142.941 106.302C143.253 106.273 143.647 109.34 143.917 109.302C144.341 109.238 144.649 105.761 145.031 105.707C145.537 105.636 146.076 108.995 146.23 108.984C146.433 108.964 147.226 106.443 147.685 106.568C147.89 106.624 147.737 109.285 147.935 109.358C148.325 109.507 149.3 105.998 149.629 106.07C149.959 106.142 149.642 109.793 150.051 109.797C150.335 109.8 150.66 107.238 151.041 107.212C151.331 107.191 151.652 109.711 152.024 109.675C152.523 109.627 152.635 106.316 153.168 106.302C153.628 106.29 154.506 109.57 154.966 109.581C155.334 109.59 155.157 106.822 155.512 106.845C155.828 106.866 156.677 109.677 156.974 109.708C157.529 109.767 158.045 109.843 158.495 109.937C160.116 110.289 162.688 111.237 162.568 111.463C162.54 111.526 162.055 111.86 161.477 112.149C160.279 112.82 160.304 112.889 162.014 115.015C163.161 116.429 164.402 118.725 164.066 118.847C163.977 118.88 163.395 118.463 162.763 117.908C161.787 117.034 159.995 116.142 159.548 116.305C159.257 116.41 159.289 117.472 159.632 119.179C160.366 122.654 160.579 125.952 160.327 129.916C160.149 132.624 159.66 132.881 159.565 130.325C159.521 128.535 156.199 120.036 155.08 118.768C154.638 118.249 154.213 117.985 154.051 118.096C153.889 118.207 153.488 119.191 153.168 120.328C152.648 122.166 151.488 124.472 151.019 124.643C150.907 124.683 150.911 123.583 151.041 122.201C151.173 120.478 151.121 119.293 150.866 118.523C150.454 117.181 150.747 117.153 147.416 118.915C143.972 120.718 139.285 121.743 140.144 120.489C140.281 120.308 140.755 119.874 141.196 119.556C143.042 118.23 145.152 116.52 145.336 116.191C145.635 115.69 145.307 114.998 144.754 114.938C144.51 114.896 143.267 115.165 142.005 115.52C140.265 116.022 139.063 116.198 136.884 116.259C134.243 116.304 133.377 116.148 134.36 115.79C134.986 115.563 135.599 114.397 135.199 114.203C134.676 113.948 129.884 113.782 127.898 113.956C126.889 114.035 125.419 114.099 124.656 114.088C123.894 114.078 123.237 114.082 123.215 114.09C123.17 114.106 123.08 113.929 122.996 113.698C122.904 113.444 123.082 112.961 123.459 112.536C123.799 112.15 124.03 111.673 123.955 111.465C123.879 111.257 122.887 110.964 121.604 110.777C120.388 110.565 118.689 110.137 117.817 109.827C116.944 109.516 115.748 109.219 115.128 109.183C113.719 109.067 113.4 108.817 113.849 108.104C114.07 107.736 114.103 107.41 113.929 107.212C113.764 107.036 111.587 106.756 108.938 106.568C104.897 106.312 103.575 106.087 99.6483 105.03C97.155 104.367 86.8109 102.133 80.6427 105.372C79.6018 105.919 81.3347 103.604 84.2896 102.208C86.0892 101.358 89.474 101.435 89.6817 101.009C89.7989 100.769 86.5892 99.5867 83.0887 99.2382C78.9629 98.8275 74.4366 99.2638 74.5285 99.2382C75.3904 98.9987 76.2412 97.4619 83.5523 97.4619C90.8634 97.4619 95.5484 101.205 95.694 101.009C95.854 100.794 93.7359 99.2893 90.8634 98.4281C88.0428 97.5825 82.4887 95.5886 77.381 94.8895C70.5056 93.9484 64.2176 94.3934 64.3985 94.0504C64.4442 93.9638 69.8731 92.8761 75.8797 93.2573C82.3984 93.6709 89.6041 95.5858 91.528 96.2936C95.0896 97.6039 98.9113 100.307 98.7491 100.07C98.6663 99.9489 97.1162 97.3278 93.8384 95.6321C90.0542 93.6743 84.2688 92.5755 80.6817 91.8965C70.4602 89.9618 57.967 88.7271 58.6637 88.2466C58.7787 88.1673 67.91 89.3697 76.9223 90C81.6317 90.3294 86.0861 89.7734 89.6817 90.36C92.5713 90.8314 94.454 92.4235 95.2611 92.87C98.9943 94.9349 97.2637 95.8399 98.2169 96.2936C100.514 97.3872 100.963 97.2021 101.639 96.7083C102.485 96.0896 102.442 93.096 103.483 90.36C104.282 88.2598 106.71 88.2663 106.653 88.2466C106.501 88.194 104.267 88.1599 102.968 89.3385C102.304 89.9406 102.111 91.9629 102.096 92.1794C101.979 93.7844 102.027 95.3008 100.677 95.6321C98.1394 96.2549 98.6469 93.3961 96.5987 91.8965C96.1277 91.5516 94.3207 90.5465 92.3007 90C90.3686 89.4773 88.2341 89.4066 87.2054 89.3385C82.984 89.059 76.64 90.2039 71.4725 88.2466C59.9556 83.8845 50.4385 75.6834 51.1386 75.4308C51.3743 75.3458 59.5807 82.5653 70.4096 85.955C77.4926 88.1722 87.1079 85.9019 93.3643 87.1647C95.4349 87.5827 96.4511 87.8788 97.5837 89.0649C98.9427 90.4882 99.2279 91.0465 99.6483 92.5322C100.069 94.0178 100.065 88.4447 97.5837 87.5106C92.0464 85.4263 80.5209 85.3202 75.8797 83.3209C66.5395 79.2974 60.9385 73.8766 60.8893 73.6939C60.6903 72.9548 67.9861 78.6294 76.5461 82.0532C82.9489 84.6143 91.1462 85.2435 91.528 84.6466C91.7519 84.2965 86.0591 81.3443 83.9075 80.9759C80.9117 80.4629 88.4067 81.4506 88.1041 80.9759C87.54
44612 80.0928 76.8584 74.1776 76.9223 74.1544C77.3915 73.9836 85.3906 77.6102 83.67 75.8028C82.7579 74.8264 81.3869 73.2843 80.6817 72.3896C79.9457 71.4799 78.0905 69.3028 76.5461 67.5622C73.8992 64.6003 72.9727 63.2367 73.4866 63.0496C73.5983 63.0089 73.9282 63.1506 74.1855 63.3709ZM122.686 89.7434C121.675 86.0936 117.978 85.7693 115.344 86.7587C114.187 87.3774 113.976 87.4657 113.504 88.0483C113.517 88.1814 116.474 90.8384 118.138 91.4722C120.022 92.2172 122.596 91.6066 122.79 91.4515C123.007 91.2854 122.976 90.7419 122.686 89.7434Z",fill:s,around:"center",cursor:"pointer",hoverStyle:{scale:1.2},pressStyle:{scale:3,transition:.5}});t.add(n);const r=[new Vt({path:d4,fill:s,around:"center"}),new Vt({path:u4,fill:s,around:"center"}),new Vt({path:d4,fill:s,around:"center"}),new Vt({path:u4,fill:s,around:"center"})];t.add(r);const o=[];for(let d=0;d<36;d++){let f=1;d<10?f-=(10-d)/30:d>16&&(f-=(d-16)/30),o.push(new Vt({path:"M0 35L0 35M5.22031 0.227803C5.22031 0.899546 11.8291 4.57547 15.1335 6.32947C17.0028 7.34056 16.6676 8.09423 16.2664 8.34468C15.8887 8.34468 13.5796 7.81818 8.70803 4.72816C2.61852 0.865639 5.22031 -0.611875 5.22031 0.227803ZM18.5538 1.52726C18.5538 2.199 25.1626 5.87492 28.467 7.62892C30.3363 8.64002 30.0011 9.39368 29.5999 9.64413C29.2223 9.64414 27.1259 9.47216 22.2543 6.38214C16.1648 2.51962 18.5538 0.687578 18.5538 1.52726ZM9.23438 8.51768C8.92671 8.36604 8.5303 8.40408 8.27534 8.6097L6.9218 9.70132C6.61695 9.94718 6.61695 10.3458 6.9218 10.5917L8.27534 11.6833C8.5303 11.8889 8.92671 11.9269 9.23438 11.7753L11.4493 10.6837C11.9473 10.4382 11.9473 9.85479 11.4493 9.6093L9.23438 8.51768ZM16.189 8.61139C16.4587 8.40636 16.8699 8.38247 17.1731 8.55421L19.0752 9.63129C19.5179 9.882 19.5179 10.4111 19.0752 10.6618L17.1731 11.7388C16.8699 11.9105 16.4587 11.8866 16.1891 11.6816L15.375 11.0626C14.7214 10.5656 14.7214 9.72739 15.375 9.23037L16.189 8.61139ZM25.43 8.70435C25.1252 8.45849 24.6309 8.45849 24.3261 8.70435L22.9908 9.78122C22.7275 9.99356 22.6868 10.3263 22.8936 10.576L25.0572 13.189C25.4405 13.652 26.3255 13.5154 26.4698 12.971L27.1295 10.4812C27.1848 10.2725 27.1052 10.0554 26.9181 9.90445L25.43 8.70435ZM16.6123 12.3073C16.9365 12.039 17.4776 12.057 17.7733 12.3458L19.7806 14.3064C20.0516 14.5711 20.0097 14.9621 19.6864 15.1854L17.1197 16.9583C16.8455 17.1477 16.4461 17.1608 16.1538 16.9899L13.8378 15.6361C13.4523 15.4108 13.4046 14.962 13.7369 14.687L16.6123 12.3073ZM24.6326 13.1979C24.3899 13.082 24.0887 13.0806 23.8445 13.1943L21.2614 14.3968C20.7492 14.6353 20.739 15.2285 21.2427 15.4784L24.473 17.0804C24.7217 17.2038 25.0351 17.2048 25.2852 17.0831L27.873 15.8236C28.3785 15.5776 28.3755 14.9855 27.8675 14.7429L24.6326 13.1979ZM15.7243 18.3082C16.0343 17.9428 16.7028 17.9428 17.0128 18.3082L18.7185 20.3188C18.8861 20.5164 18.9002 20.7737 18.7548 20.9826L17.2612 23.1273C16.9794 23.532 16.2698 23.5599 15.9404 23.1792L14.0534 20.9983C13.8676 20.7836 13.866 20.4986 14.0493 20.2825L15.7243 18.3082ZM26.2712 19.1317C25.6935 18.2107 24.0626 18.2107 23.4849 19.1317L22.7539 20.2971C22.6214 20.5084 22.6471 20.7619 22.8204 20.953L24.248 22.527C24.5598 22.8709 25.1962 22.8709 25.5081 22.527L26.9357 20.953C27.109 20.7619 27.1347 20.5084 27.0022 20.2971L26.2712 19.1317ZM8.42454 24.1448C8.60355 24.0004 8.85826 23.935 9.10782 23.9694L10.2448 24.1258C10.7954 24.2016 11.072 24.7056 10.7714 25.0852L9.23283 27.0287C8.96433 27.3679 8.37568 27.4196 8.02289 27.1351L6.92181 26.2471C6.61696 26.0012 6.61696 25.6026 6.92181 25.3567L8.42454 24.1448ZM17.2041 24.3599C16.8993 24.114 16.405 24.114 16.1002 24.3599L14.864 25.3568C14.5592 25.6027 14.5592 26.0013 14.864 26.2471L16.1002 27.2441C16.405 27.4899 16.8993 27.4899 17.2041 27.2441L18.4403 26.2471C18.7452 26.0013 18.7452 25.6027 18.4403 25.3568L17.2041 24.3599ZM24.3261 24.3599C24.6309 24.114 25.1252 24.114 25.43 24.3599L26.5589 25.2703C26.9026 25.5474 26.852 26.0078 26.4532 26.2319L25.7386 26.6336C25.5128 26.7605 25.2208 26.7822 24.9701 26.6906L23.5654 26.1774C23.0685 25.9958 22.9498 25.4698 23.3355 25.1587L24.3261 24.3599ZM9.83185 18.6545C9.52101 18.4322 9.04875 18.4452 8.75741 18.6841L6.91277 20.1964C6.61219 20.4429 6.61421 20.8387 6.91729 21.0831L8.27897 22.1813C8.53226 22.3855 8.92543 22.4246 9.23258 22.2759L11.6977 21.083C12.1499 20.8643 12.2086 20.3543 11.814 20.0722L9.83185 18.6545ZM28.2972 21.807C28.602 21.5611 29.0963 21.5611 29.4011 21.807L30.5136 22.7042C30.8627 22.9857 30.8041 23.4547 30.3924 23.6744L28.483 24.6933C28.1058 24.8946 27.5961 24.796 27.3731 24.4787L26.8019 23.6659C26.6289 23.4197 26.6809 23.1105 26.9291 22.9103L28.2972 21.807ZM21.1753 21.807C20.8704 21.5611 20.3761 21.5611 20.0713 21.807L18.7028 22.9107C18.4548 23.1107 18.4027 23.4195 18.5753 23.6657L20.2408 26.0407C20.5645 26.5023 21.4074 26.4541 21.6471 25.9603L22.7772 23.6326C22.8903 23.3997 22.8217 23.1348 22.6023 22.9579L21.1753 21.807ZM12.1291 21.807C12.4339 21.5611 12.9282 21.5611 13.233 21.807L14.6892 22.9814C14.8935 23.1461 14.9682 23.3884 14.8836 23.6111L14.0696 25.7523C13.8794 26.2527 13.0593 26.3583 12.6853 25.9306L10.7197 23.6823C10.5008 23.432 10.5371 23.0909 10.8056 22.8743L12.1291 21.807ZM9.3268 13.205C8.98152 13.0166 8.51368 13.0803 8.26416 13.3496L6.72522 15.0105C6.51521 15.2371 6.51848 15.5489 6.73321 15.7727L8.19483 17.2957C8.47284 17.5853 8.99762 17.6232 9.33493 17.3779L11.3892 15.8838C11.3531 15.925 11.3223 15.9708 11.2981 16.0209L10.4958 17.681C10.3993 17.8808 10.4354 18.1064 10.5917 18.2798L12.0496 19.8974C12.3614 20.2433 13.0008 20.2433 13.3125 19.8974L14.6503 18.4131C14.8666 18.173 14.8457 17.8437 14.6001 17.6227L12.6067 15.8293C12.3463 15.595 11.9418 15.5645 11.6398 15.7016L11.8697 15.5344C12.2462 15.2606 12.2042 14.7744 11.7842 14.5454L9.3268 13.205ZM28.2619 16.3875C28.5729 16.1012 29.1254 16.1012 29.4364 16.3875L30.7838 17.6283C31.02
44616 17.8472 31.0423 18.1691 30.8338 18.4067L29.4864 19.9426C29.1753 20.2971 28.523 20.2971 28.2119 19.9426L26.8645 18.4067C26.656 18.1691 26.6767 17.8472 26.9145 17.6282L28.2619 16.3875ZM20.5467 15.6603C20.2248 15.4827 19.7899 15.524 19.5278 15.7569L17.8377 17.2592C17.5989 17.4715 17.568 17.7871 17.7626 18.027L19.8824 20.6396C20.1758 21.0013 20.8237 21.0224 21.1523 20.6809L23.0816 18.6759C23.6328 18.1031 23.4717 17.2741 22.7297 16.8647L20.5467 15.6603ZM28.2979 11.3449C28.599 11.0837 29.1089 11.0762 29.4216 11.3284L30.7238 12.3786C30.9927 12.5955 31.0287 12.9371 30.809 13.1874L29.4198 14.7709C29.1286 15.1028 28.5295 15.1284 28.1965 14.8231L26.7627 13.5088C26.4979 13.266 26.5041 12.901 26.777 12.6642L28.2979 11.3449ZM21.5931 9.63376C21.2841 9.29955 20.6649 9.29546 20.3492 9.62554L18.2607 11.8089C18.028 12.0522 18.0471 12.3954 18.3058 12.621L20.1861 14.2602C20.4399 14.4815 20.8527 14.5266 21.1704 14.3677L23.0067 13.4496C23.7844 13.0608 23.9826 12.2184 23.4357 11.6268L21.5931 9.63376ZM12.9316 9.98368C13.2899 9.7446 13.8262 9.80949 14.0816 10.1228L15.7986 12.2289C16.0351 12.5191 15.9357 12.909 15.5763 13.1003L13.0912 14.423C12.8406 14.5564 12.5172 14.562 12.2596 14.4374L9.7267 13.2117C9.26494 12.9883 9.21577 12.4638 9.63063 12.1869L12.9316 9.98368ZM21.3544 6.97893C18.687 5.55195 13.3522 2.56136 13.3522 2.01486C13.3522 1.33173 11.2238 2.7104 16.1394 5.85279C20.0719 8.3667 21.9641 8.61843 22.2689 8.61842C22.5928 8.41467 22.8634 7.80151 21.3544 6.97893ZM10.9468 6.73668C7.14987 6.38214 1.33502 3.07657 1.33502 2.55284C1.33502 1.89817 -0.52645 2.87427 4.24244 5.88572C8.05755 8.29489 10.6511 8.65132 10.9468 8.65132C11.261 8.45606 12.4107 7.52499 10.9468 6.73668Z",fill:s,scale:f,around:"center"}))}t.add(o);const a=new Vt({path:"M0 0L0 0M180 180L180 180M90.8124 91.8759C87.2571 91.2536 78.8116 92.8819 75.5554 94.3787C72.9437 95.5783 72.5848 95.4033 73.4587 93.3839C74.0704 91.9591 74.0912 91.8025 73.6531 91.5054C72.6757 90.8342 64.9255 92.7793 60.8364 94.7314C59.3585 95.4279 56.9684 96.4578 55.467 97.0317C53.5765 97.7772 51.7555 98.7789 49.4593 100.299C47.5626 101.57 46.1415 102.377 46.0727 102.177C46.0268 102.043 46.3626 100.957 46.8318 99.8237C47.9128 97.2659 49.4453 95.262 51.6064 93.6202C53.4129 92.2501 53.4791 92.1713 52.8736 91.8759C51.9765 91.4384 50.8292 91.6848 46.6801 93.1907C40.4621 95.4663 37.7529 96.9797 32.5563 101.032C28.4125 104.291 27.3497 105.218 25.7269 107.122C23.9054 109.263 23.7076 108.416 25.2511 105.195C26.0286 103.601 26.7649 102.376 27.3833 101.677C27.9137 101.102 28.7741 100.021 29.2804 99.2673C30.2936 97.8161 32.183 95.7638 33.1915 95.0051C34.0562 94.3707 34.1208 94.1243 33.448 93.7962C32.6407 93.4024 25.9325 95.7724 21.8559 97.8695C16.28 100.764 13.2861 102.861 8.92598 106.849C8.00765 107.707 7.04394 108.488 6.77693 108.58C6.34303 108.729 6.37535 108.606 7.03551 107.594C10.4344 102.276 14.6261 98.1786 19.7868 95.0539C23.8269 92.6332 32.3086 88.9605 35.094 88.4292C36.6539 88.1339 36.4259 87.6336 34.3982 86.8391C32.2474 86.0125 31.633 85.963 25.6955 86.013C22.9721 86.0187 20.7165 85.9191 20.6706 85.7855C20.5443 85.4182 24.9855 84.1103 26.9595 83.9336C27.8627 83.8461 29.7136 83.6372 31.1295 83.4662C35.7116 82.8941 39.7988 83.1088 44.988 84.1946C46.9563 84.5988 47.906 84.7007 48.0155 84.4762C48.2564 83.9822 46.4508 83.0738 42.4527 81.6518C37.1554 79.763 36.975 79.5638 40.6919 79.5702C46.5741 79.5766 52.372 80.0976 57.8616 81.0798C59.628 81.3855 61.1817 81.6152 61.3485 81.5576C61.9827 81.3389 59.9048 79.9641 57.3383 78.8513C55.9375 78.2515 54.7937 77.6936 54.8156 77.6487C54.8923 77.4916 58.8444 77.5849 60.5764 77.7904C62.9342 78.0788 66.2105 78.7041 68.5271 79.3615C69.7246 79.6954 71.0222 79.9948 71.4018 80.0132C72.3625 80.0927 90.0154 82.9782 93.1439 84.4757C100.869 88.2164 93.5739 92.3613 90.8124 91.8759Z",fill:s,around:"center"});t.add(a);const l=i.getMotionTotal();let h=700;function c(d){return d<0?l+d:d}function u(d){let f=d;n.set(i.getMotionPoint(f)),f-=15,o.forEach(y=>{y.set(i.getMotionPoint(c(f))),f-=30*y.scaleX*.75}),a.set(i.getMotionPoint(c(f)));const _=(f-d)/4;f=d+_,r[0].set(i.getMotionPoint(c(f))),r[1].set(i.getMotionPoint(c(f+=20))),f=d+3*_,r[2].set(i.getMotionPoint(c(f))),r[3].set(i.getMotionPoint(c(f+=20)))}function g(){h+=8,h>l&&(h=0),u(h),A.requestRender(g)}return n.on("tap",()=>{n.path="M0 0L0 0M200 200L200 200M74.1855 63.3709C75.1589 64.168 76.8372 65.6506 78.9408 67.6064C81.9675 70.43 83.0004 72.3608 87.2054 74.3892C90.3116 75.9016 91.3793 76.1933 91.1018 75.4308C90.9841 75.1073 90.0688 73.8442 87.4464 70.3239L85.9771 68.3727C84.6934 65.7777 83.7306 63.8315 83.0887 62.534C82.9165 62.1858 69.1398 55.7125 64.9891 53.3816C64.0715 52.8663 65.4785 52.4959 67.0752 53.3816C68.1396 53.9721 72.8883 55.832 81.3213 58.9615C80.6506 57.0428 79.5101 55.7717 75.8797 51.3107C74.2168 49.2673 66.0944 47.8197 64.9891 46.1868C64.1681 44.9739 74.6499 49.5643 74.5285 48.5311C74.2037 45.7686 72.2119 43.4112 69.1918 40.4042C66.1718 37.3973 60.1817 31.6662 63.7455 33.337C63.764 33.372 70.3842 39.9846 70.4096 40.0286C70.996 41.0414 74.3102 44.4099 76.9483 48.3723C77.1512 48.6771 76.8296 47.4044 76.9223 45.435C77.056 42.594 75.5547 37.9273 75.8797 37.8856C75.8997 37.8831 77.4989 42.7137 77.9191 46.1868C78.3229 49.5248 79.8318 52.6837 80.0867 53.0629C81.9378 55.8169 83.7416 58.4788 85.107 60.4675C86.2075 62.0704 83.9637 56.1478 84.2896 56.5721C84.7647 57.2004 88.3497 64.947 88.8982 65.6065C91.4487 68.6729 94.4951 71.764 95.2611 71.9805C95.9627 72.17 95.9309 71.318 95.2161 69.3539C94.6866 67.8993 93.0804 62.0049 90 56.5721C89.8003 56.22 86.6555 55.8776 83.5523 53.924C80.8306 52.2106 78.6291 49.6353 78.4437 49.327C78.3965 49.2483 78.2744 48.8025 78.9408 49.327C80.2001 50.3181 82.7616 52.0055 84.6496 52.9511C86.8905 54.0735 88.5724 53.5569 88.4641 53.3816C87.4428 51.7274 86.3881 50.1 85.3823 48.5517C85.2112 48.2884 78.0869 44.4894 77.9191 44.2309C77.7141 43.9151 84.8485 46.4945 84.6496 46.1869C83.7337 44.7695 82.9719 41.915 81.3213 40.0286C78.6771 37.0064 75.0912 34.9614 75.016 33.9452C74.973 33.3942 78.4941 34.8419 81.3213 37.8856C83.5598 40.2955 85.0212 44.2004 86.3371 45.435C86.97 46.0287 85.655 39.3967 86.3371 40.4042C87.3689 41.9282 86.6537 45.0776 87.7091 47.7944C88.109 48.8238 87.7515 48.1623 89.2115 50.9455C89.7777 52.0247 89.3365 50.057 89.2582 48.5517C89.1346 46.175 89.1108 43.3845 89.2582 43.6341C89.5698 44.1616 90.5474 53.2276 90.8634 53.7287C92.3671 56.113 93.4547 58.1169 93.8384 58.9615C96.5111 64.8447 100.453 70.1168 102.619 72.5211C104.25 74.361 106.202 74.5314 105.47 72.5211C104.024 68.5467 100.879 61.2742 101.275 60.5544C101.559 60.0845 101.615 60.1688 102.968 62.8428C105.903 68.6828 107.863 71.
4466331 111.581 75.8011C113.495 77.9307 114.043 78.2546 116.181 78.497C117.978 78.7065 119.063 79.2537 121.233 80.9759C122.027 81.6288 123.115 82.2535 123.755 82.413C126.31 83.1056 128.443 83.8209 129.055 84.2521C129.536 84.6004 129.833 85.0681 130.189 86.116L130.671 87.5106L131.647 87.5482C132.161 87.5704 133.916 89.2551 135.516 89.0649C139.162 88.6538 141.503 89.6542 143.142 88.2466C143.756 87.7091 144.289 87.2272 144.317 87.1647C144.345 87.1022 144.196 86.3453 143.968 85.5121C143.961 85.4843 144.92 85.0494 144.754 84.2521C144.541 83.2364 143.088 81.7447 141.84 80.9759C141.521 80.7791 141.144 79.993 140.687 79.8771C139.021 79.4548 136.688 80.0285 135.803 78.9734C135.164 78.2117 134.919 76.8557 134.645 75.8028C134.215 74.1519 133.882 72.7735 133.133 71.9805C131.906 70.6818 129.537 79.8407 126.437 78.9734C123.178 78.0617 121.569 76.246 120.889 74.9987C120.503 74.2914 118.66 73.7669 118.741 73.6939C118.838 73.6062 120.784 74.1488 121.493 74.9503C122.288 75.8493 123.736 77.0742 126.437 78.1011C128.962 79.0609 130.067 70.1165 133.133 70.9052C135.378 71.483 134.801 75.8946 136.884 78.497C137.625 79.4226 141.135 78.6261 141.84 79.4264C144.227 82.135 146.507 83.2855 146.644 83.2955C148.372 83.4347 148.277 84.0908 149.629 83.3209C149.705 83.2776 150.767 82.3703 151.471 82.0532C151.504 82.0384 151.118 79.6074 148.359 78.1011C147.509 77.6369 146.032 77.5246 144.754 77.1447C142.861 76.5824 141.135 75.7606 140.349 74.9987C139.033 73.7223 140.907 72.3896 139.78 71.5824C138.652 70.7753 134.628 70.7866 132.527 70.6081C130.513 70.4369 130.067 70.0426 129.055 69.3539C127.851 68.5344 127.213 67.5862 126.437 67.1613C125.772 66.7973 122.716 65.5732 122.246 65.4211C121.512 65.1834 126.413 66.0303 127.212 67.1613C127.598 67.7078 129.116 68.6613 130.189 69.3539C131.858 70.4307 138.16 69.6497 140.349 70.9052C141.891 71.7897 139.885 73.8771 141.196 74.88C143.05 76.2974 147.106 76.5358 148.975 77.6502C152.347 79.6602 153.138 82.0815 153.236 82.1072C153.865 82.2735 154.516 82.5768 154.966 83.0358C155.518 83.5983 155.346 84.7199 155.512 85.3029C155.81 86.3984 156.359 86.3812 156.321 87.3894C156.29 89.3895 156.321 89.8769 156.321 93.2573C156.321 96.6377 156.452 99.0113 155.961 99.1902C155.849 99.2309 155.932 97.6805 155.512 96.9436C154.602 95.4169 154.015 92.7734 153.168 92.5322C151.672 92.1082 152.511 92.5794 151.471 92.7775C150.608 92.9419 153.391 97.7048 153.365 99.2321C153.361 100.96 153.104 100.949 152.186 99.1902C151.648 98.1299 150.019 95.949 148.975 94.8895C148.699 94.6003 148.373 94.4462 148.03 94.4303C147.833 94.4212 148.233 97.9947 148.03 98.0778C147.805 98.1699 146.976 94.7823 146.76 94.9894C146.605 95.1386 146.868 98.6428 146.644 98.7789C146.454 98.895 145.785 95.6449 145.55 95.7498C145.31 95.8564 145.618 99.4246 145.336 99.518C145.072 99.6056 144.221 96.2191 143.923 96.2936C143.668 96.3576 143.815 99.4646 143.538 99.518C143.205 99.5781 142.501 96.6058 142.235 96.7083C142.031 96.7866 142.422 100.16 142.235 100.274C142.039 100.394 141.267 97.257 141.068 97.4274C140.828 97.6305 140.922 100.261 140.687 100.274C140.356 100.292 139.695 97.6203 139.34 97.4619C139.057 97.3358 138.929 100.737 138.607 100.632C138.324 100.54 137.852 96.9329 137.524 96.9436C137.326 96.9513 137.181 100.286 136.884 100.274C136.596 100.262 136.158 96.9038 135.803 96.8839C135.459 96.8646 135.03 100.291 134.645 100.274C134.286 100.258 133.974 96.7968 133.598 96.79C133.226 96.7832 132.899 99.5081 132.527 99.518C132.177 99.5274 131.781 96.8208 131.447 96.8514C131.115 96.8819 130.973 99.1807 130.671 99.2382C130.324 99.3047 129.823 97.1348 129.537 97.2461C129.004 97.4532 129.263 99.0912 129.055 99.2382C128.578 99.5952 127.536 98.5697 127.536 98.7789C127.52 99.3605 124.369 100.716 123.565 101.009C122.761 101.302 122.71 101.373 122.787 102.208C122.911 103.314 123.648 104.852 124.325 105.391C124.627 105.595 125.918 106.014 127.212 106.302C127.504 106.362 128.439 103.899 128.807 104.003C129.114 104.089 128.847 106.737 129.182 106.845C129.707 107.014 130.928 103.91 131.447 104.103C131.95 104.29 131.751 107.774 132.166 107.954C132.637 108.164 133.873 104.841 134.36 105.03C134.714 105.167 134.327 108.825 134.645 108.937C135.206 109.134 135.916 105.643 136.199 105.707C136.613 105.787 136.971 109.482 137.665 109.517C137.963 109.531 138.28 106.296 138.607 106.302C138.986 106.31 139.38 109.558 139.78 109.555C140.192 109.551 140.274 106.085 140.687 106.07C141.026 106.058 141.698 109.499 142.024 109.479C142.377 109.458 142.618 106.332
446142.941 106.302C143.253 106.273 143.647 109.34 143.917 109.302C144.341 109.238 144.649 105.761 145.031 105.707C145.537 105.636 146.076 108.995 146.23 108.984C146.433 108.964 147.226 106.443 147.685 106.568C147.89 106.624 147.737 109.285 147.935 109.358C148.325 109.507 149.3 105.998 149.629 106.07C149.959 106.142 149.642 109.793 150.051 109.797C150.335 109.8 150.66 107.238 151.041 107.212C151.331 107.191 151.652 109.711 152.024 109.675C152.523 109.627 152.635 106.316 153.168 106.302C153.628 106.29 154.506 109.57 154.966 109.581C155.334 109.59 155.157 106.822 155.512 106.845C155.828 106.866 156.677 109.677 156.974 109.708C157.529 109.767 158.045 109.843 158.495 109.937C160.116 110.289 162.688 111.237 162.568 111.463C162.54 111.526 162.055 111.86 161.477 112.149C160.279 112.82 160.304 112.889 162.014 115.015C163.161 116.429 164.402 118.725 164.066 118.847C163.977 118.88 163.395 118.463 162.763 117.908C161.787 117.034 159.995 116.142 159.548 116.305C159.257 116.41 159.289 117.472 159.632 119.179C160.366 122.654 160.579 125.952 160.327 129.916C160.149 132.624 159.66 132.881 159.565 130.325C159.521 128.535 156.199 120.036 155.08 118.768C154.638 118.249 154.213 117.985 154.051 118.096C153.889 118.207 153.488 119.191 153.168 120.328C152.648 122.166 151.488 124.472 151.019 124.643C150.907 124.683 150.911 123.583 151.041 122.201C151.173 120.478 151.121 119.293 150.866 118.523C150.454 117.181 150.747 117.153 147.416 118.915C143.972 120.718 139.285 121.743 140.144 120.489C140.281 120.308 140.755 119.874 141.196 119.556C143.042 118.23 145.152 116.52 145.336 116.191C145.635 115.69 145.307 114.998 144.754 114.938C144.51 114.896 143.267 115.165 142.005 115.52C140.265 116.022 139.063 116.198 136.884 116.259C134.243 116.304 133.377 116.148 134.36 115.79C134.986 115.563 135.599 114.397 135.199 114.203C134.676 113.948 129.884 113.782 127.898 113.956C126.889 114.035 125.419 114.099 124.656 114.088C123.894 114.078 123.237 114.082 123.215 114.09C123.17 114.106 123.08 113.929 122.996 113.698C122.904 113.444 123.082 112.961 123.459 112.536C123.799 112.15 124.03 111.673 123.955 111.465C123.879 111.257 122.887 110.964 121.604 110.777C120.388 110.565 118.689 110.137 117.817 109.827C116.944 109.516 115.748 109.219 115.128 109.183C113.719 109.067 113.4 108.817 113.849 108.104C114.07 107.736 114.103 107.41 113.929 107.212C113.764 107.036 111.587 106.756 108.938 106.568C104.897 106.312 103.575 106.087 99.6483 105.03C97.155 104.367 86.8109 102.133 80.6427 105.372C79.6018 105.919 81.3347 103.604 84.2896 102.208C86.0892 101.358 89.474 101.435 89.6817 101.009C89.7989 100.769 86.5892 99.5867 83.0887 99.2382C78.9629 98.8275 74.4366 99.2638 74.5285 99.2382C75.3904 98.9987 76.2412 97.4619 83.5523 97.4619C90.8634 97.4619 95.5484 101.205 95.694 101.009C95.854 100.794 93.7359 99.2893 90.8634 98.4281C88.0428 97.5825 82.4887 95.5886 77.381 94.8895C70.5056 93.9484 64.2176 94.3934 64.3985 94.0504C64.4442 93.9638 69.8731 92.8761 75.8797 93.2573C82.3984 93.6709 89.6041 95.5858 91.528 96.2936C95.0896 97.6039 98.9113 100.307 98.7491 100.07C98.6663 99.9489 97.1162 97.3278 93.8384 95.6321C90.0542 93.6743 84.2688 92.5755 80.6817 91.8965C70.4602 89.9618 57.967 88.7271 58.6637 88.2466C58.7787 88.1673 67.91 89.3697 76.9223 90C81.6317 90.3294 86.0861 89.7734 89.6817 90.36C92.5713 90.8314 94.454 92.4235 95.2611 92.87C98.9943 94.9349 97.2637 95.8399 98.2169 96.2936C100.514 97.3872 100.963 97.2021 101.639 96.7083C102.485 96.0896 102.442 93.096 103.483 90.36C104.282 88.2598 106.71 88.2663 106.653 88.2466C106.501 88.194 104.267 88.1599 102.968 89.3385C102.304 89.9406 102.111 91.9629 102.096 92.1794C101.979 93.7844 102.027 95.3008 100.677 95.6321C98.1394 96.2549 98.6469 93.3961 96.5987 91.8965C96.1277 91.5516 94.3207 90.5465 92.3007 90C90.3686 89.4773 88.2341 89.4066 87.2054 89.3385C82.984 89.059 76.64 90.2039 71.4725 88.2466C59.9556 83.8845 50.4385 75.6834 51.1386 75.4308C51.3743 75.3458 59.5807 82.5653 70.4096 85.955C77.4926 88.1722 87.1079 85.9019 93.3643 87.1647C95.4349 87.5827 96.4511 87.8788 97.5837 89.0649C98.9427 90.4882 99.2279 91.0465 99.6483 92.5322C100.069 94.0178 100.065 88.4447 97.5837 87.5106C92.0464 85.4263 80.5209 85.3202 75.8797 83.3209C66.5395 79.2974 60.9385 73.8766 60.8893 73.6939C60.6903 72.9548 67.9861 78.6294 76.5461 82.0532C82.9489 84.6143 91.1462 85.2435 91.528 84.6466C91.7519 84.2965 86.0591 81.3443 83.9075 80.9759C80.9117 80.4629 88.4067 81.4506 88.1041 80.9759C87.54
44612 80.0928 76.8584 74.1776 76.9223 74.1544C77.3915 73.9836 85.3906 77.6102 83.67 75.8028C82.7579 74.8264 81.3869 73.2843 80.6817 72.3896C79.9457 71.4799 78.0905 69.3028 76.5461 67.5622C73.8992 64.6003 72.9727 63.2367 73.4866 63.0496C73.5983 63.0089 73.9282 63.1506 74.1855 63.3709ZM118.04 87.3619C117.106 87.7019 116.624 88.7348 116.964 89.6689C117.304 90.6031 118.337 91.0847 119.271 90.7447C120.205 90.4047 120.687 89.3718 120.347 88.4377C120.007 87.5035 118.974 87.0218 118.04 87.3619ZM122.686 89.7434C121.675 86.0936 117.978 85.7693 115.344 86.7587C114.187 87.3774 113.976 87.4657 113.504 88.0483C113.517 88.1814 116.474 90.8384 118.138 91.4722C120.022 92.2172 122.596 91.6066 122.79 91.4515C123.007 91.2854 122.976 90.7419 122.686 89.7434Z",setTimeout(()=>{g()},500)}),u(h),t}getData(){return[{}]}};g4=p([F()],g4);const t0={style:{x:500},easing:"ease",duration:2,loop:!0};let p4=class extends D{get tag(){return"AnimateEasingCase"}getUI(e){return e.fill="#32cd79",e.x=e.x===50?50:0,e.width=50,e.height=50,new Q(e)}getData(){return[{animation:t0},{animation:Object.assign(Object.assign({},t0),{easing:"linear"})},{x:50,animation:Object.assign(Object.assign({},t0),{easing:"back-in"})},{animation:Object.assign(Object.assign({},t0),{easing:"elastic-out"})},{animation:Object.assign(Object.assign({},t0),{easing:"bounce-out"})},{animation:Object.assign(Object.assign({},t0),{easing:{name:"cubic-bezier",value:[.5,.1,.25,1]}})},{animation:Object.assign(Object.assign({},t0),{easing:{name:"steps",value:6}})}]}};p4=p([F()],p4);let f4=class extends D{get tag(){return"TransitionCase"}getUI(e){return new k({x:e.x+30,y:e.y+30,fill:"#32cd79",cornerRadius:5,origin:"center",button:!0,hoverStyle:{fill:"#FF4B4B",scale:1.5,cornerRadius:20},pressStyle:{fill:"#FEB027",scale:1.1,transitionOut:"bounce-out"},children:[{tag:"Text",text:"Button",fontSize:16,fontWeight:"bold",padding:[10,20],fill:"rgba(0,0,0,0.5)",hoverStyle:{fill:"black"}}]})}getData(){return[{}]}};f4=p([F()],f4);let _4=class extends D{get tag(){return"RobotCase"}getUI(e){const t=new Ve({fill:"",robot:{url:"/image/arrows.png",size:{width:100,height:100},total:20},actions:{up:0,right:5,down:10,left:15,arrowUp:[0,1,2,3,4],arrowRight:[5,6,7,8,9],arrowDown:[10,11,12,13,14],arrowLeft:[15,16,17,18,19]},action:"arrowRight"});let i=5;return t.waitLeafer(()=>{t.leafer.on(qt.DOWN,s=>{switch(i++,s.code){case"ArrowUp":t.action="arrowUp",t.y-=i;break;case"ArrowDown":t.action="arrowDown",t.y+=i;break;case"ArrowLeft":t.action="arrowLeft",t.x-=i;break;case"ArrowRight":t.action="arrowRight",t.x+=i}}),t.leafer.on(qt.UP,s=>{switch(i=5,s.code){case"ArrowUp":t.action="up";break;case"ArrowDown":t.action="down";break;case"ArrowLeft":t.action="left";break;case"ArrowRight":t.action="right"}})}),t}getData(){return[{}]}};function _f(){(function(){console.log("test leafer destroy"),new Jt({view:window,smooth:!1}).destroy(),window.dispatchEvent(new PointerEvent("pointermove"))})()}_4=p([F()],_4);export{M1 as AlignHelper,F5 as AngularCase,jt as Animate,r4 as AnimateCarCase,t4 as AnimateCase,e4 as AnimateColorCase,Gr as AnimateEasing,p4 as AnimateEasingCase,zt as AnimateEvent,i4 as AnimateFramesCase,c4 as AnimateGradientCase,q0 as AnimateList,s4 as AnimatePageCase,n4 as AnimatePathCase,Ja as Answer,Hr as App,K3 as AppCase,Z3 as AppRealCanvasCase,w5 as AroundCase,Qt as AroundHelper,or as Arrow,e5 as ArrowCase,Sg as ArrowData,Hc as AutoBounds,L1 as BackgroundRunner,ue as BezierHelper,x5 as BlendModeCase,nt as Bounds,Ze as BoundsEvent,L as BoundsHelper,k as Box,r5 as BoxCase,Mi as BoxData,l1 as Branch,c0 as BranchHelper,G8 as BranchRender,z5 as ButtonCase,si as Canvas,V7 as CanvasData,w4 as CanvasManager,D as Case,os as CaseCreator,Mt as ChildEvent,Ct as ColorConvert,bt as Creator,j4 as Cursor,D5 as CursorCase,K as DataHelper,rt as Debug,t1 as Direction4,ts as Direction9,ss as DragBoundsHelper,j as DragEvent,Y4 as Dragger,g4 as DragonCase,Js as DropEvent,$0 as EditBox,o0 as EditDataHelper,Ws as EditPoint,Wu as EditSelect,Ou as EditSelectHelper,m1 as EditTool,$e as EditToolCreator,a0 as Editor,$5 as EditorCase,Z5 as EditorConfigCase,It as EditorEvent,Gt as EditorGroupEvent,N0 as EditorHelper,j0 as EditorMoveEvent,V0 as EditorRotateEvent,le as EditorScaleEvent,G0 as EditorSkewEvent,Li as Effect,Bt as Ellipse,Ji as EllipseBox,Mp as EllipseBoxData,J3 as EllipseCase,z7 as EllipseData,i6 as EllipseHelper,m5 as EraserCase,He as Event,es as EventCreator,I4 as Eventer,Bi as Export,Se as FileHelper,v5 as FillCase,C5 as FillsCase,X0 as Filter,bp as Finder,me as Flow,N5 as FlowAlignCase,K5 as FlowAutoSizeCase,X5 as FlowCase,U5 as FlowGapCase,q5 as FlowInCase,G5 as FlowItemBoxCase,V5 as FlowPaddingCase,Y5 as FlowWrapCase,j5 as FlowYAlignCase,nn as FourNumberHelper,W0 as Frame,o5 as FrameCase,W7 as FrameData,k5 as GradientFillCase,T5 as GradientStrokeCase,at as Group,Qr as GroupData,s0 as HTMLText,J5 as HTMLTextCase,Bg as HTMLTextData,H0 as HighBezierHelper,Q0 as HighCurveHelper,B9 as HitCanvasManager,M5 as HittableCase,O5 as HoverStyleCase,Si as Image,Er as ImageBox,Xp as ImageBoxData,X4 as ImageData,We as ImageEvent,B5 as ImageFillCase,Ee as ImageManager,R5 as ImageStrokeCase,ci as IncrementId,N1 as InnerEditor,hi as InnerEditorEvent,_5 as InnerShadowCase,L9 as Interaction,N4 as InteractionBase,ze as InteractionHelper,qt as KeyEvent,Z0 as Keyboard,Et as LayoutEvent,Wr as Layouter,Wn as LayouterHelper,is as Leaf,N8 as LeafBounds,as as LeafBoundsHelper,y4 as LeafData,D8 as LeafDataProxy,z1 as LeafEventer,tt as LeafHelper,v8 as LeafLayout,w7 as LeafLevelList,xt as LeafList,H8 as LeafMatrix,j8 as LeafRender,Jt as Leafer,W4 as LeaferCanvas,D1 as LeaferCanvasBase,I7 as
446LeaferData,ct as LeaferEvent,nf as LeaferFilm,$r as LeaferImage,Q4 as LeaferTypeCreator,rf as LeaferVideo,_e as Line,i5 as LineCase,H4 as LineData,Wh as LineEditTool,L5 as LinearCase,y5 as MaskCase,_t as MathHelper,Kt as Matrix,q as MatrixHelper,gt as MoveEvent,Zs as MultiTouchHelper,uf as MyDragEvent,cf as MyImage,df as MyPointerEvent,gf as MyTouchEvent,k4 as NeedConvertToCanvasCommandMap,ht as OneRadian,ke as PI2,I0 as PI_2,it as Paint,Rr as PaintGradient,kt as PaintImage,Vt as Path,zr as PathArrow,Vg as PathArrowModule,T4 as PathBounds,Sr as PathBox,Hp as PathBoxData,s5 as PathCase,Pi as PathCommandDataHelper,Ut as PathCommandMap,s6 as PathCommandNodeHelper,Fi as PathConvert,R4 as PathCorner,A4 as PathCreator,Y7 as PathData,X2 as PathDrawer,Ke as PathHelper,tc as PathMatrixHelper,e2 as PathNodeHandleType,an as PathNumberCommandLengthMap,B4 as PathNumberCommandMap,j1 as PathScaler,Ks as Pen,n5 as PenCase,U7 as PenData,F7 as Picker,A as Platform,ot as Plugin,K0 as Point,R as PointHelper,Pe as PointerButton,O as PointerEvent,Be as Polygon,Qi as PolygonBox,Op as PolygonBoxData,Q3 as PolygonCase,H7 as PolygonData,I5 as PressStyleCase,Ie as PropertyEvent,P5 as RadialCase,Q as Rect,H5 as RectAnimateCase,$3 as RectCase,H1 as RectData,S4 as RectHelper,K7 as RectRen
446der,ut as RenderEvent,Jr as Renderer,Je as ResizeEvent,li as Resource,Ve as Robot,_4 as RobotCase,xp as RobotData,he as RotateEvent,ye as Run,pf as ScrollBar,tn as Scroller,Du as SelectArea,P7 as Selector,f5 as ShadowCase,b5 as SolidFillCase,A5 as SolidStrokeCase,ki as Star,O0 as StarBox,Wp as StarBoxData,t5 as StarCase,X7 as StarData,dt as State,W5 as StateCase,Xc as StringNumberMap,S5 as StrokeCase,Yr as Stroker,E5 as StrokesCase,Me as SwipeEvent,Xd as TaskItem,e1 as TaskProcessor,X as Text,g5 as TextAlignCase,u5 as TextBoldCase,a5 as TextCase,d5 as TextCaseCase,z4 as TextConvert,j7 as TextData,Nh as TextEditor,Q5 as TextEditorCase,h5 as TextLetterSpaceCase,p5 as TextOverflowCase,c5 as TextSpaceCase,l5 as TextWrapCase,c1 as TouchEvent,Gu as TransformTool,Cg as Transformer,Wt as Transition,f4 as TransitionCase,rn as TwoPointBoundsHelper,C as UI,G7 as UIBounds,on as UICreator,Xe as UIData,X1 as UIEvent,q7 as UIRender,Ri as UnitConvert,m4 as UnitConvertHelper,xs as WaitHelper,Ti as WatchEvent,C7 as Watcher,qh as WheelEventHelper,Yt as ZoomEvent,Qn as addViewport,wg as addViewportConfig,W1 as affectRenderBoundsType,ln as affectStrokeBoundsType,x1 as arrowType,of as attr,Ir as autoLayoutType,Z as boundsType,G2 as canvasPatch,De as canvasSizeAttrs,hf as createAttr,F4 as createDescriptor,i8 as cursorType,Tt as dataProcessor,mt as dataType,wt as decorateLeafAttr,D4 as defineDataProcessor,xe as defineKey,jd as defineLeafAttr,i1 as dimType,Ae as doBoundsType,I1 as doStrokeType,P4 as doSurfaceType,Lu as editToolMergeConfigAttr,b0 as effectType,bc as emptyData,e8 as eraserType,C8 as extraPropertyEventMap,tf as getBoundsData,O1 as getDescriptor,Pc as getMatrixData,Qp as getPointData,vi as hitType,Vp as inviteCode,J as isArray,Sc as isData,Ec as isEmptyData,Qa as isFinite,Xt as isNull,$ as isNumber,W as isObject,G as isString,M as isUndefined,af as layoutProcessor,k8 as leaferTransformAttrMap,Qd as maskType,M0 as motionPathType,Vd as naturalBoundsType,qd as opacityType,L4 as path,Gd as pathInputType,At as pathType,_s as pen,Mn as positionType,U1 as registerEditTool,Nu as registerInnerEditor,j6 as registerPointsCurve,Rt as registerUI,di as registerUIEvent,ws as resizeType,Fe as rewrite,h0 as rewriteAble,Fo as rotationType,Zn as scaleResize,gg as scaleResizeFontSize,Yh as scaleResizeGroup,Pr as scaleResizePath,Xh as scaleResizePoints,K2 as scaleType,q2 as scrollType,$d as sortType,Zi as stateStyleType,ja as stateType,Ne as strokeType,Oe as surfaceType,r0 as tempBounds,sf as tempMatrix,ef as tempPoint,_f as test,ff as testPerformanceCase,Bc as tryToNumber,v7 as useCanvas,ce as useModule,lf as version,Kd as visibleType,M7 as zoomLayerType};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.