12345 |
- /*!Sea.js 2.2.3|https://github.com/seajs/seajs/blob/master/LICENSE.md*/
- ((e,t)=>{if(e.seajs)return;let i=e.seajs={},s=i.data={},o=e=>t=>({}.toString.call(t)==`[object ${e}]`),r=o("String"),d=Array.isArray,l=o("Function"),a=0,n=()=>a++,c=/[^?#]*\//,p=/\/\.\//g,h=/\/[^/]+\/\.\.\//,b=/([^:/])\/\//g,g=e=>e.match(c)[0],y=e=>{for(e=e.replace(p,"/");e.match(h);)e=e.replace(h,"/");return e=e.replace(b,"$1/")},f=/^([^/:]+)(\/.+)$/,x=/^\/\/.|:\//,_=/^.*?\/\/.*?\//,u=(e,t)=>{if(!e)return"";let i=((e,t)=>{let i,o=e.charAt(0);if(x.test(e))i=e;else if("."===o)i=y((t?g(t):s.cwd)+e);else if("/"===o){let t=s.cwd.match(_);i=t?t[0]+e.substring(1):e}else i=s.base+e;return 0===i.indexOf("//")&&(i=location.protocol+i),i})(e=(e=>{let t=e.length-1,i=e.charAt(t);return"#"===i?e.substring(0,t):".js"===e.substring(t-2)||e.indexOf("?")>0||".css"===e.substring(t-3)||"/"===i?e:e+".js"})(e=(e=>{let t,i=s.paths;return i&&(t=e.match(f))&&r(i[t[1]])&&(e=i[t[1]]+t[2]),e})(e=(e=>{let t=s.alias;return t&&r(t[e])?t[e]:e})(e))),t);return i},m=document,k=g(m.URL),w=m.scripts,v=w[w.length-1],j=g(((K=v).hasAttribute?K.src:K.getAttribute("src",4))||k);var K;let R,J,M,L=m.head,S=L.getElementsByTagName("base")[0],X=/\.css(?:\?|$)/i,V=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/(\d+).*/,"$1")<536,Y=(e,t,i)=>{let o="onload"in e;if(i&&(V||!o))return void setTimeout((()=>{F(e,t)}),1);let r=()=>{e.onload=e.onerror=e.onreadystatechange=null,i||s.debug||L.removeChild(e),e=null,t()};o?(e.onload=r,e.onerror=r):e.onreadystatechange=()=>{/loaded|complete/.test(e.readyState)&&r()}},F=(e,t)=>{let i,s=e.sheet;if(V)s&&(i=!0);else if(s)try{s.cssRules&&(i=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(i=!0)}setTimeout((()=>{i?t():F(e,t)}),20)},C=()=>{if(R)return R;if(J&&"interactive"===J.readyState)return J;let e=L.getElementsByTagName("script");for(let t=e.length;t--;){let i=e[t];if("interactive"===i.readyState)return J=i,J}},T=i.cache={},z={},B={},A={},O=1,N=2,P=3,I=4,W=5,Z=6;function H(e,t){this.uri=e,this._fU=t||[],this.exports=null,this.status=0,this._fV={},this._fW=0}H.prototype.resolve=function(){let e=this,t=e._fU,i=[];for(let s=0,o=t.length;s<o;s++)i[s]=u(t[s],e.uri);return i},H.prototype.load=function(){let e=this;if(e.status>=P)return;e.status=P;let t,i=e.resolve(),s=e._fW=i.length;for(let o=0;o<s;o++)t=H.get(i[o]),t.status<I?t._fV[e.uri]=(t._fV[e.uri]||0)+1:e._fW--;if(0===e._fW)return void e.onload();let o={};for(let e=0;e<s;e++)t=T[i[e]],t.status<O?t.fetch(o):t.status===N&&t.load();for(let e in o)o.hasOwnProperty(e)&&o[e]()},H.prototype.onload=function(){let e=this;e.status=I,e._fX&&e._fX();let t,i,s=e._fV;for(t in s)s.hasOwnProperty(t)&&(i=T[t],i._fW-=s[t],0===i._fW&&i.onload());delete e._fV,delete e._fW},H.prototype.fetch=function(e){let t=this,i=t.uri;if(t.status=O,!i||B[i])return void t.load();if(z[i])return void A[i].push(t);z[i]=!0,A[i]=[t];let o=()=>{delete z[i],B[i]=!0,M&&(H.save(i,M),M=null);let e,t=A[i];for(delete A[i];e=t.shift();)e.load()},r=()=>{((e,t,i,s)=>{let o=X.test(e),r=m.createElement(o?"link":"script");i&&(r.charset=i),null!=s&&r.setAttribute("crossorigin",s),Y(r,t,o,e),o?(r.rel="stylesheet",r.href=e):(r.async=!0,r.src=e),R=r,S?L.insertBefore(r,S):L.appendChild(r),R=null})(i,o,s.charset,s.crossorigin)};e?e[i]=r:r()},H.prototype.exec=function(){let e=this;if(e.status>=W)return e.exports;e.status=W;let i=e.uri,s=e=>H.get(s.resolve(e)).exec();s.resolve=e=>u(e,i),s.async=(e,t)=>(H.use(e,t,i+"__fY_"+n()),s);let o=e.factory,r=l(o)?o(s,e.exports={},e):o;return r===t&&(r=e.exports),delete e.factory,e.exports=r,e.status=Z,r},H.define=function(e,i,s){let o=arguments.length;1===o?(s=e,e=t):2===o&&(s=i,d(e)?(i=e,e=t):i=t),!d(i)&&l(s)&&(i=[]);let r={id:e,uri:u(e),deps:i,factory:s};if(!r.uri&&m.attachEvent){let e=C();e&&(r.uri=e.src)}r.uri?H.save(r.uri,r):M=r},H.save=(e,t)=>{let i=H.get(e);i.status<N&&(i.id=t.id||e,i._fU=t.deps||[],i.factory=t.factory,i.status=N)},H.get=(e,t)=>T[e]||(T[e]=new H(e,t)),H.use=(t,i,s)=>{let o=H.get(s,d(t)?t:[t]);o._fX=()=>{let t=[],s=o.resolve();for(let e=0,i=s.length;e<i;e++)t[e]=T[s[e]].exec();i&&i.apply(e,t),delete o._fX},o.load()},i.use=(e,t)=>{H.use(e,t,s.cwd+"__dP_"+n())},e.define=H.define,i.require=e=>{let t=H.get(u(e));return t.status<W&&(t.onload(),t.exec()),t.exports},s.base=j,s.cwd=k,s.charset="utf-8",i.realpath=y,i.config=e=>{for(let t in e){let i=e[t];s[t]=i}return i}})(window),define("1h",(()=>{let e,t=0,i="",s=[],o=null,r=window,d=Promise,l=document,a=r.setTimeout,n=encodeURIComponent,c="_";function p(){}let h,b=JSON.stringify,g=l.head,y=r.performance,f=y.now.bind(y),x="\x1e",_="mx5-",u="mx5-view",m="mx5-owner",k=e=>(e||c)+t++,w=e=>l.getElementById(e),v=(e,t)=>e.innerHTML=t,j=e=>e[0]==x,K={},R={rootId:k(),retard:p,request:p,error(e){throw e}},J=e=>!e||"object"!=typeof e,M=(e,t,i,s)=>{if(e&&t&&!(s=!i&&e==t))try{s=16==(16&t.compareDocumentPosition(e))}catch(e){}return s},L=(e,t,i,s)=>{t?(s=e["\x1ebJ"])&&(s[t]=0):e["\x1ebJ"]=0},{assign:S,keys:X,hasOwnProperty:V,prototype:Y}=Object,F=Y.toString,C=e=>F.call(e).slice(8,-1),T=e=>"Object"==C(e),z=Array.isArray,B=g.getAttribute,A=(e,t)=>B.call(e,t),O=(e,t,i)=>{t&&!O[e]&&(O[e]=1,i=l.createElement("style"),v(i,t),g.appendChild(i))},N=(e,t,i,s)=>{try{s=z(t)?e.apply(i,t):e.call(i,t)}catch(e){R.error(e)}return s},P=(e,t)=>e&&V.call(e,t),I=(e,t)=>{let s,o;if(J(t))s=t+i,j(s)&&(t=e.get(s));else for(s in t)o=t[s],o=I(e,o),t[s]=o;return t},W=(e,t)=>t.bJ-e.bJ;function Z(e,t,i){(i=this).bJ=[],i.bK=t||20,i.bL=i.bK+(e||50)}S(Z.prototype,{get(e){let t=this.bJ[x+e];return t&&(t.bJ++,t=t.bK),t},set(e,t){let i=this,s=i.bJ,o=x+e,r=s[o],d=i.bK;if(!r){if(s.length>i.bL)for(s.sort(W);d--;)r=s.pop(),r.bJ&&i.del(r.bL);r={bL:e},s.push(r),s[o]=r}r.bK=t,r.bJ=1},del(e){e=x+e;let t=this.bJ,s=t[e];s&&(s.bJ=0,s.bK=i,delete t[e])},has(e){return P(this.bJ,x+e)}});let H,$,U,E,Q,q,D={bubbles:!0,cancelable:!0},G=[],ee=(e,...t)=>e.addEventListener(...t),te=(e,...t)=>e.removeEventListener(...t),ie=(e,t,i,s,o,r)=>{let d={bJ:o,bK:i,bL:t,bM:e,bN(e){o?N(i,e,r):i(e)}};G.push(d),ee(e,t,d.bN,s)},se=(e,t,i,s,o)=>{for(let r,d=G.length;d--;)if(r=G[d],r.bL==t&&r.bJ==o&&r.bM==e&&r.bK==i){G.splice(d,1),te(e,t,r.bN,s);break}},oe=new Z,re=(e,t=1,i)=>(t&&oe.has(e)?i=oe.get(e):(i=N(Function(`return ${e}`)),t&&oe.set(e,i)),i),de=decodeURIComponent,le=new Z,ae=e=>{let t,s,o,r,d,l,a=le.get(e);if(!a){if(r={},d=e.indexOf("?"),-1==d?(t=e,l=i):(t=e.substring(0,d),l=e.substring(d+1)),l)for(d of l.split("&"))d&&([s,o=i]=d.split("="),r[de(s)]=j(o)?o:de(o));le.set(e,a={a:t,b:r})}return{path:a.a,params:S({},a.b)}},ne=new Z,ce=(e,t,i)=>(ne.has(e)?i=ne.get(e):(i=re(e,0),e.includes(x)?I(t,i):ne.set(e,i)),i),pe=navigator.scheduling,he=()=>{let e,t,i,s=f()+9,r=R.retard;for(;;){if(!$){Q=H=o,0!=q&&r(q=0);break}if(E==$&&(E=o),U=$,i=$.bJ,e=$.bK,t=$.bL,t&&N(t,e,i),$=$.bM,U=o,$&&(f()>s||pe&&pe.isInputPending())){1!=q&&r(q=1),a(he);break}}},be=(e,t,i,s,o)=>{o={bL:e,bJ:i,bK:t},s?(Q?Q.bM=o:$=o,Q=o):((s=E||U)?(o.bM=s.bM,s.bM=o,Q==s&&(Q=o)):$?(o.bM=$,$=o):$=Q=o,E=o),H||(H=1,a(he))},ge=(e,t,i)=>{be(e,t,i,1)},ye=0,fe=(...e)=>new d((async t=>{let i=[];try{let s=R.request;ye||s(1),ye++,seajs.use(e,((...e)=>{for(let t of e)i.push(t);ye--,ye||s(0),t(i)}))}catch(e){R.error(e)}})),xe=(e,t,i,s)=>(p.prototype=t.prototype,s=new p,S(s,i),s.constructor=e,e.prototype=s,e),_e=e=>e;let ue,me,ke={fire(e,t){let i,s,r=this,d=r[x+e],l=0;if(t||(t={}),t.type=e,d)for(i=d.length;l<i;l++)s=d[l],s.bJ&&(s.bK=1,N(s.bJ,t,r),s.bJ||(d.splice(l--,1),i--),s.bK=o);return t},on(e,t,i=0){let s,o,r,d=x+e,l=this[d]||(this[d]=[]),a={bJ:t,bL:i};for(r=0,o=l.length;r<o;r++)if(l[r].bL<i){l.splice(r,0,a),s=1;break}s||l.push(a)},off(e,t){let i,s=x+e,r=this,d=r[s];if(t){if(d&&(i=d.length))for(;i--;)if(s=d[i],s.bJ==t){s.bK?s.bJ=o:d.splice(i,1);break}}else r[s]=o}},we={},ve=(e,t,i,s)=>{t.includes(x)&&(s=we[e])&&(I(s._fo,i),i["\x1e"]&&(S(i,i["\x1e"]),delete i["\x1e"]))},je=(e,t,i)=>{let s,r;var d,l,a;t=t?e._fp[i?t:t.bK]:e.id,s=we[t],s&&(r=s.pId,Je(s),(l=we[d=t])&&(delete we[d],(a=l.root).bJ=0,a.bK=0,l.id=l.root=l.pId=l._fp=o),s=we[r],s&&P(s._fp,t)&&(delete s._fp[t],s._fq=0))},Ke=(e,t,i,s,o,r,d)=>{for(t=e._fr,o=e._fs;t.length;)[i,d,s]=t.shift(),i&&be(s,(r=o[i])&&N(r,d,o))},Re=(e,t,i)=>{let s,o,r;for(s in e._fp)t?(o=we[s],r=o&&M(o.root,t,i)):r=1,r&&je(e,s,r)},Je=e=>{let{_fs:t,root:i,pId:s}=e;t&&(e._fs=0,t._ft&&(t._ft=0,L(t),t._fu&&Re(e,0,0),t.fire("destroy"),kt(t,1),i&&e._fv&&t._fu&&v(i,e._fw))),e._fx++},Me=async(e,t,i)=>{let s,o,r,d,l,{id:a,root:n,pId:c}=e;!e._fv&&n&&(e._fv=1,e._fw=n.innerHTML),Je(e),n&&t&&(s=ae(t),r=s.path,e.path=t,d=s.params,ve(c,t,d),e._fy=r,S(d,i),o=e._fx,[l]=await fe(r),o==e._fx&&l&&(Jt(l),r=new l(a,n,e,d),e._fs=r,kt(r),N(r.init,d,r),N(r._fD,[d,e._fw],r),r._fE(),r._fu||r._fF||mt(r)))},Le=e=>e.bK||(e.bK=k(me));function Se(e,t){let i=this,s=Le(e);var o,r;i.id=s,i.root=e,i._fx=1,i._fp={},i.pId=t,i._fr=[],i._fo=new Map,r=i,P(we,o=s)||(we[o]=r)}S(Se,{root:()=>ue,all:()=>we,byId:e=>we[e],byNode:e=>we[e.bK]}),S(Se.prototype,{mount(e,t,i){let s,o=this,r=o.id,d=o._fp,l=Le(e);return s=we[l],s||(P(d,l)||(o._fq=0),d[l]=l,s=new Se(e,r)),Me(s,t,i),s},unmount(...e){je(this,...e)},children(){return this._fq||(this._fq=X(this._fp))},parent(e,t){for(t=this,e=e>>>0||1;t&&e--;)t=we[t.pId];return t},invoke(e,...t){let i,s,o=this,r=o._fr;return new d((d=>{(i=o._fs)&&i._fF?d((s=i[e])&&N(s,t,i)):r.push([e,t,d])}))}});let Xe=new Z,Ve=/^([\w\-]+)\x1e(\d+)?(\x1e)?([^(]+)\(([\s\S]*?)\)$/,Ye={},Fe={},Ce={},Te={},ze={capture:!0,passive:!1},Be={capture:!0,passive:!0},Ae={capture:!1,passive:!1},Oe={capture:!1,passive:!0},Ne=(e,t)=>{let r,d,l,a,n,c,p,b,g,y=[],f=e,x=A(e,_+t);if(x&&(n=Xe.get(x),n||(n=x.match(Ve)||s,n={v:n[1],b:0|n[2],t:n[3],n:n[4],i:n[5]},Xe.set(x,n)),n=S({},n)),n&&!n.v||Fe[t]){if(b=f.bL,b==o){for(p=[f];f!=h&&(f=f.parentNode);){if(we[d=f.bK]||(d=f.bL)){b=d;break}p.push(f)}for(x of p)x.bL=b||i}if(f=e.bK,we[f]&&(g=b=f),b)do{if(r=we[b],r&&(c=r._fs)){if(l=c._fG,a=l[t],a)for(f=a.length;f--;)d=a[f],l={r:d,v:b,n:d},d?!g&&e.matches(d)&&y.push(l):g&&y.push(l);if(c._fu&&!g)break}g=0}while(r&&(b=r.pId))}return n&&y.push(n),y},Pe=e=>{let t,i,s,o,r,d,l,a,{target:n,type:c}=e,p=[];for(;n&&n!=h&&!e.cancelBubble&&(!(i=n.bM)||!i[c]);){if(a=1,n.nodeType==a){if(t=Ne(n,c),t.length)for(d of(p.length=0,t)){let{v:t,n:i,i:p,t:h,b:b}=d;0,s=we[t],o=s&&s._fs,o&&o._fF&&o._ft&&(r=i+x+c,d=o[r],d&&(e.eventTarget=n,l=p?ce(p,s._fo):K,e.params=l,N(d,e,o)),n==o.root||o._fG[c]||(h?a=b||a:(n=o.root,a=0)))}else p.push(n);a&&(s=n.bK,s&&(s=we[s],o=s&&s._fs,o&&o._fH[c]&&(p.length=0)))}for(;a--;)n=n.parentNode}for(n of p)i=n.bM||(n.bM={}),i[c]=1},Ie=(e,t,i,s)=>{let o=0|Ye[e],r=Te[e]||(Te[e]={}),d=i?-1:1,l=i?se:ie;4&s&&(r[4]=(0|r[4])+d),8&s&&(r[8]=(0|r[8])+d),1&s&&(r[1]=(0|r[1])+d),2&s&&(r[2]=(0|r[2])+d);let a,n=Ce[e];a=r[2]?r[4]?ze:Ae:r[4]?Be:Oe,o&&i!==o?a!=n&&(se(h,e,Pe,n),ie(h,e,Pe,a)):l(h,e,Pe,i?n:a),Ce[e]=a,Ye[e]=o+d,t&&(Fe[e]=(0|Fe[e])+d)};let We={"&":38,"<":60,">":62,'"':34,"'":39,"`":96},Ze=/[&<>"'\`]/g,He=e=>`&#${We[e]};`,$e=e=>(e+i).replace(Ze,He),Ue={"!":1,"'":7,"(":8,")":9,"*":"A"},Ee=e=>"%2"+Ue[e],Qe=/[!')(*]/g,qe=e=>n(e).replace(Qe,Ee),De=/[\\'"]/g,Ge=e=>(e+i).replace(De,"\\$&"),et=(e,t,i)=>(e.has(t)?i=e.get(t):(i=x+(i||e.bJ++),e.has(i)||(e.set(t,i),e.set(i,t))),i),tt=(e,t,i)=>{if(e._ft&&(i=e._fu)){let o,r,{_fI:d,id:l,_fB:a}=e,n=we[l],c={bJ:[],bK:[],bL:0},p=n._fo;e._fJ=0,e._fI={},t&&e.fire("dompatch"),p.bJ=0,p.clear(),r=i(a,st,l,qe,p,et,Ge,z),o=()=>{if(e._fK=r,e._ft)for(r of((i=c.bM||!e._fF)&&mt(e),c.bJ))be(r._fE,s,r);if(e._fL>1)e._fL=1,c.bK.length=0,tt(e);else{for([r,l,p]of(e._fL=0,c.bK))r[l]!=p&&(r[l]=p);for(r of(e.fire("domready"),d=e._fM,d))r();d.length=0}},be(gt,[e.root,e._fK,r,c,n,d,e,o])}},it="textarea",st=(e,t,s,r)=>{let d;if(e){t=t||K;let l,a,n,p,h,b,g=i,y=1==s,f=r,_=r,m=0,k=`<${e}`,w=i,v=0;if(s&&1!=s)for(n of s){if(n.bK)a=n.bK+(n.bL?"/>":`>${n.bM}</${n.bN}>`);else if(a=n.bM,n.bN==ot){if(!a)continue;a=$e(a)}w+=a,b&&n.bN==ot&&b.bN==ot?b.bM+=n.bM:(n.bO&&(p||(p={}),p[n.bO]=(p[n.bO]||0)+1,m++),f=f||n.bP,b=n,h||(h=[]),h.push(n))}for(l in r=r||K,t)a=t[l],!1!==a&&a!=o?(!0===a&&(t[l]=a=r[l]?a:i),"#"!=l&&"id"!=l&&l!=c||g||(g=a,"id"==l)?(l==u&&a&&(v=ae(a).path,g||(g=e+x+v)),"value"==l&&e==it?w=a:"$"==l?(f=a,delete t[l]):k+=` ${l}="${a&&$e(a)}"`):delete t[l]):r[l]||delete t[l];d={bM:w,bO:g,bN:e,bQ:v,bP:f,bR:r,bS:_,bK:k,bT:t,bU:h,bV:p,bW:m,bL:y}}else d={bN:s?x:ot,bM:t+i};return d};let ot=t;let rt="http://www.w3.org/",dt={svg:`${rt}2000/svg`,math:`${rt}1998/Math/MathML`},lt=(e,t,s,o)=>{let r,d,l,a,n,c=0,p=t.bR,h=t.bT;if(s)for(r in l=s.bR,a=s.bT,a)P(h,r)||(c=1,(n=l[r])?o?o.bK.push([e,n,i]):e[n]=i:e.removeAttribute(r));for(r in h)d=h[r],(n=p[r])?s&&e[n]==d||(c=1,o?o.bK.push([e,n,d]):e[n]=d):s&&a[r]==d||(c=1,e.setAttribute(r,d));return c},at=(e,t)=>{let i,s=e.bN;return s==ot?i=l.createTextNode(e.bM):(i=l.createElementNS(dt[s]||t.namespaceURI,s),lt(i,e),v(i,e.bM)),i},nt=(e,t,i,s,o)=>{let r,d,l,a={};for(r=s;r>=i;r--,o--)d=e[r],l=d.bO,l&&(d=a[l]||(a[l]=[]),d.push(t[o]));return a},ct=(e,t)=>e.bO&&t.bO==e.bO||!e.bO&&!t.bO&&e.bN==t.bN||e.bN==x||t.bN==x,pt=(e,t,i,s)=>{i&&((s=we[e.bK])?je(s):Re(t,e))},ht=(e,t,i,s,o,r)=>{o._ft&&(pt(e,i,1==e.nodeType),t.removeChild(e),--s.bL||be(r))},bt=(e,t,i,s,o,r,d,l)=>{o._ft&&(t.bN==x?(Re(d,e),v(e,t.bM)):e.insertBefore(at(t,e),i[s]),--r.bL||be(l))},gt=(e,t,r,d,l,a,n,c)=>{if(n._ft)if(t){if(t.bP||t.bM!=r.bM){let p,h,b,g,y,f=t.bU||s,_=r.bU||s,u=r.bV||K,m=r.bW,k=t.bW,w=e.childNodes,j=0,R=_.length,J=f.length-1,M=0,L=R-1;0;let S,X=f[j],V=f[J],Y=_[M],F=_[L],C=j,T=J;for(;j<=J&&M<=L;)if(X)if(V)if(ct(Y,X))Y.bN==x||X.bN==x?(d.bM=1,Re(l,e),Y.bN==x?(T=0,v(e,Y.bM)):(v(e,i),e.appendChild(at(Y,e)))):(d.bL++,be(yt,[w[C],e,X,Y,d,l,a,n,c])),u[X.bO]&&(u[X.bO]--,m--,g=y&&y[X.bO],g&&--y[X.bO]),C++,X=f[++j],Y=_[++M];else if(ct(F,V))d.bL++,be(yt,[w[T],e,V,F,d,l,a,n,c]),u[V.bO]&&(u[V.bO]--,m--),T--,V=f[--J],F=_[--L];else if(ct(F,X))h=w[C],e.insertBefore(h,w[T+1]),d.bL++,be(yt,[h,e,X,F,d,l,a,n,c]),u[X.bO]&&(u[X.bO]--,m--),T--,X=f[++j],F=_[--L];else if(ct(Y,V))h=w[T],e.insertBefore(h,w[C++]),d.bL++,be(yt,[h,e,V,Y,d,l,a,n,c]),u[V.bO]&&(u[V.bO]--,m--),V=f[--J],Y=_[++M];else{if(!y&&m>0&&k>0&&(y=nt(f,w,j,J,T)),S=w[C],g=y&&y[Y.bO],g&&(g=g.pop())){if(b=X,g!=S){for(h=j+1,p=C+1;h<=J;h++)if(b=f[h],b&&w[p++]==g){f[h]=o;break}j--,e.insertBefore(g,S)}u[b.bO]&&u[b.bO]--,d.bL++,be(yt,[g,e,b,Y,d,l,a,n,c])}else y&&y[X.bO]&&u[X.bO]||we[S.bK]&&!Y.bQ?(d.bM=1,e.insertBefore(at(Y,e),S),j--,T++):(d.bL++,be(yt,[S,e,X,Y,d,l,a,n,c]));++C,X=f[++j],Y=_[++M]}else V=f[--J];else X=f[++j];for(p=M,h=1;p<=L;p++,h++)b=_[p],d.bM=1,d.bL++,be(bt,[e,b,w,T+h,n,d,l,c]);for(!R&&X&&X.bN==x&&(T=w.length-1),p=T;p>=C;p--)d.bM=1,d.bL++,be(ht,[w[p],e,l,d,n,c])}}else d.bM=1,v(e,r.bM);d.bL||be(c)},yt=(e,t,i,s,o,r,d,l,a)=>{if(l._ft){0;let n=i.bT,c=s.bT;if(i.bP||i.bK!=s.bK||i.bM!=s.bM)if(i.bN==s.bN){if(i.bN==ot)o.bM=1,e.nodeValue=s.bM;else if(!n._||n._!=c._){let t,n,p,h,b,g,y,f=c[u],x=s.bM,_=i.bK!=s.bK||s.bS,k=we[e.bK],w=f&&ae(f);if(_&&(_=lt(e,s,i,o),_&&(o.bM=1)),f&&k&&k._fy==w.path&&(h=k._fs)){if(g=x!=i.bM,y=f!=k.path,p=s.bP,!g&&!y&&p)for(p of(b=p.split(","),b))if("#"==p||P(d,p)){y=1;break}(y||g)&&(p=h._fD,b=w.params,ve(c[m],f,b),k.path=f,k._fw=x,!1!==N(p,[b,x],h)&&o.bJ.push(h),t=!h._fu)}else t=1,n=k;n&&(o.bM=1,je(k)),t&&!s.bL&>(e,i,s,o,r,d,l,a)}}else o.bM=1,pt(e,r,1),t.replaceChild(at(s,t),e)}--o.bL||be(a)},ft={},xt=S({get:e=>e?ft[e]:ft,set(e){S(ft,e)}},ke),_t=/^(\$?)([^<]*)<([^>]+)>(?:\s*&(.+))?$/,ut=(e,t,i)=>(e.bJ?i=e:((i=function(e,t){for(t of i.bJ)N(t,e,this)}).bJ=[e],i.bK=1),i.bJ=i.bJ.concat(t.bJ||t),i),mt=e=>{let t,i;e._ft&&(i=e._fF,e._fF=1,t=e.owner,((e,t,i)=>{for(i of(t=t||e.root).querySelectorAll(`[mx5-view][mx5-owner="${e.id}"]`))i.bJ||(i.bJ=1,e.mount(i,A(i,u)))})(t),i||be(Ke,t))},kt=(e,t)=>{let i,{_fH:s,_fG:o,_fN:r,id:d}=e;for(i in s)Ie(i,o[i],t,s[i]);for(i of(s=t?se:ie,r))s(i.bJ,i.bK,i.bL,i.bM,d,e)},wt={win:r,doc:l,root:i};function vt(...e){return S(this,...e),this}function jt(...e){let t=this,i=t.bJ||(t.bJ=[]);return((e,t,i)=>{let s,o,r,d,l={};for(o of e)for(s in o)r=o[s],d=l[s],"ctor"!=s?(_t.test(s)&&(d?r=ut(d,r):r.bK=1),l[s]=r):i.push(r);for(s in l)P(t,s)||(t[s]=l[s])})(e,t.prototype,i),t}let Kt=e=>function(...t){return this._ft&&N(e,t,this)},Rt=(e,t,i,s)=>{if(e)for(s of e)N(s,t,i)};let Jt=e=>{if(!e["\x1e"]){e["\x1e"]=1;let t,s,r,d,l,a,n,c,p,h,b,g=e.prototype,y={},f=[],_={};for(n in g)if(t=g[n],s=n.match(_t),s)for(c of([,a,r,d,b]=s,h=b?re(b):Oe,d=d.split(","),d)){if(l=wt[r],p=0,h.passive||h.passive==o?p|=1:p|=2,h.capture?p|=4:p|=8,a){if(l){f.push({bL:t,bJ:l,bK:c,bM:h});continue}l===i&&(r=i),l=_[c],l||(l=_[c]=[]),l[r]||(l[r]=1,l.push(r))}y[c]|=p,c=r+x+c,l=g[c],l?l.bK&&(t.bK?g[c]=ut(t,l):P(g,n)&&(g[c]=t)):g[c]=t}g._fE!=g.render&&(g._fE=g.render=Kt(g.render)),g._fH=y,g._fN=f,g._fG=_,g._fD=g.assign,g._fu=g.tmpl}};function Mt(e,t,i,s,o){(o=this).root=t,o.owner=i,o.id=e,o._ft=1,o._fJ=1,o._fB={},o._fI={},o._fL=0,o._fM=[],Rt(Mt.bJ,s,o)}function Lt(){this.id=k("b"),this.bJ={}}S(Mt,{merge:jt,extend:function e(t){let i=this,s=(t=t||{}).ctor;function o(e,t,r,d,l){i.call(l=this,e,t,r,d),s&&N(s,d,l),Rt(o.bJ,d,l)}return o.merge=jt,o.extend=e,o.static=vt,xe(o,i,t)}}),S(Mt.prototype,ke,{init:p,render:p,assign:p,get(e,t){return t=this._fB,e&&(t=t[e]),t},set(e){let t,i,s,o,r=this,d=r._fB,l=r._fI,a=r._fJ;for(s in e)t=e[s],i=d[s],o=!J(t)||i!=t,o&&(l[s]=1,a=1),d[s]=t;return r._fJ=a,r},digest(e){return e=this.set(e),new d((t=>{e._fJ?(e._fL++,e._fM.push(t),1==e._fL&&tt(e,1)):e._fL?e._fM.push(t):t()}))},finale(){let e=this;return new d((t=>{e._fL?e._fM.push(t):t()}))},parse(e){return ce(e,this.owner._fo)}}),S(Lt.prototype,{get(t,s){let o,r=this,d=r.bJ;if(t){let s,o=z(t)?t.slice():(t+i).split(".");for(;(s=o.shift())&&d;)d=d[s];s&&(d=e)}return s!==e&&(o=C(s))!=C(d)&&(d=s),d},set(e){S(this.bJ,e)}});let St=(e,t,i)=>s=>{if(i=e[t]){delete e[t];for(let e of i)N(e,s,i.bJ)}},Xt=(e,t,i,s,r)=>{if(e.bJ)return e;if(e.bK)return e.enqueue(Xt.bind(e,e,t,i,s,r));e.bK=1,z(t)||(t=[t]);let d=e.constructor,l=0,a=d.bL,n=((e,t,i,s,r,d)=>{let l=[],a=o,n=0;return(c,p,h)=>{let b;n++;let g,y=c.bK,x=y.bJ;if(l[p+1]=c,h?(a=h,b=1):d.has(x)||(x&&d.set(x,c),y.bK=f(),g=y.bL,g&&N(g,c,c),b=1),!i.bJ){let t=n==s;t&&(i.bK=0,2==r&&(l[0]=a,N(e,l,i))),1==r&&N(e,[h||o,c,t,p],i)}b&&t.fire("end",{bag:c,error:h})}})(i,d,e,t.length,s,d.bM);for(let e of t)if(e){let t,[i,s]=d.get(e,r),o=i.bK.bJ,c=n.bind(i,i,l++);o&&a[o]?a[o].push(c):s?(o&&(t=[c],t.bJ=i,a[o]=t,c=St(a,o)),d.bN(i,c)):c()}return e};function Vt(){this.id=k("s"),this.bO=[]}S(Vt.prototype,{all(e,t){return Xt(this,e,t,2)},save(e,t){return Xt(this,e,t,2,1)},one(e,t){return Xt(this,e,t,1)},enqueue(e){let t=this;return t.bJ||(t.bO.push(e),t.dequeue(t.bP)),t},dequeue(...e){let t,i=this;i.bK||i.bJ||(i.bK=1,a((()=>{i.bK=0,i.bJ||(t=i.bO.shift(),t&&N(t,i.bP=e))})))},destroy(e){(e=this).bJ=1,e.bO=0}});let Yt=(e,t)=>[b(t),b(e)].join(x),Ft=S({add(e){let t,i=this.bQ;for(t of(z(e)||(e=[e]),e))if(t){let{name:e,cache:s}=t;t.cache=0|s,i[e]=t}},create(e){let t=this.meta(e),i=0|e.cache||t.cache,s=new Lt;s.set(t),s.bK={bL:t.after,bJ:i&&Yt(t,e)},T(e)&&s.set(e);let o=t.before;return o&&N(o,s,s),this.fire("begin",{bag:s}),s},meta(e){return this.bQ[e.name||e]||e},get(e,t){let i,s,o=this;return t||(i=o.cached(e)),i||(i=o.create(e),s=1),[i,s]},cached(e){let t,i,s=this,o=s.bM,r=s.meta(e),d=0|e.cache||r.cache;if(d&&(i=Yt(r,e)),i){let e=s.bL[i];e?t=e.bJ:(t=o.get(i),t&&f()-t.bK.bK>d&&(o.del(i),t=0))}return t}},ke);Vt.extend=(e,t,i)=>{function s(){Vt.call(this)}return s.bN=e,s.bM=new Z(t,i),s.bL={},s.bQ={},S(s,Ft),xe(s,Vt)};let Ct=0;return{version:"5.1.0",config(e,...t){let i=R;return e&&(i=T(e)?S(i,e,...t):i[e]),i},boot(e){var t,i;Ct||(Ct=1,S(R,e),Me((ue||(h=l.body,t=me=R.rootId,(i=w(t))||(i=h),ue=new Se(i)),ue),R.defaultView))},unboot(){Ct&&(Ct=0,ue&&(je(ue),ue=o))},HIGH:1e3,LOW:-1e3,isObject:T,isArray:z,isFunction:e=>"Function"==C(e),isString:e=>"String"==C(e),isNumber:e=>"Number"==C(e),isPrimitive:J,isNumeric:e=>!isNaN(parseFloat(e))&&isFinite(e),attach:ee,detach:te,mix:S,toMap:(e,t)=>{let i,s={};if(e)for(i of e)s[t&&i?i[t]:i]=t?i:1+(0|s[i]);return s},toTry:N,toUrl:(e,t,s)=>{let o,r,d,l=[];for(r in t)o=t[r]+i,(o||P(s,r))&&(o=n(o),l.push(d=r+"="+o));return d&&(e+=(e&&(e.includes("?")?"&":"?"))+l.join("&")),e},parseUrl:ae,guid:k,use:fe,dispatch:(e,t,i)=>{let s=new Event(t,D);S(s,i),e.dispatchEvent(s)},guard:_e,type:C,has:P,inside:M,applyStyle:O,Cache:Z,View:Mt,Vframe:Se,State:xt,Service:Vt,Event:ke,mark:(e,t,i,s,o)=>(0!=e[o="\x1ebJ"]&&(i=e[o]||(e[o]={}),P(i,t)||(i[t]=f()),s=++i[t]),i=>(i=e[o])&&s===i[t]),unmark:L,node:w,task:be,lowTask:ge,taskFinale:()=>new d(be),lowTaskFinale:()=>new d(ge),delay:e=>new d((t=>a(t,e)))}})),
- /*!report-desinger|https://github.com/xinglie/report-designer/blob/master/LICENSE*/
- (()=>{let e,t=/(?:\r\n|\r|\n)/g,i={"&":38,"<":60,">":62,'"':34,"'":39,"`":96},s=/[&<>"'\`]/g,o=e=>`&#${i[e]};`,r=e=>(null==e?e="":e+="",e.replace(s,o).replace(t,"<br/>")),d=(e,t=0)=>(e=(e+t)%180)<=22.5||e>157.5?"ew":e<=67.5?"nwse":e<=112.5?"ns":e<=157.5?"nesw":void 0,l=(e,t=65)=>{let i,s="";for(e+=1;e;)i=(e-1)%26,s=String.fromCharCode(i+t)+s,e=(e-i-1)/26;return s},a=/<(script|style)[^>]*>[\S\s]*<\/\1[^>]*>/gi,n=e=>e.replace(a,""),c=(e,t,i,s)=>{c._fk||(c._fk=1,e.merge({ctor(){this.set({excelTitle:l,textReturn:r,i18n:t,safeHTML:n,cursor:d})},_bT(e,t){t=t||150;let o,r=i("dm_"),d=this;return(...i)=>{clearTimeout(o);let l=s(d,r);o=setTimeout((()=>{l()&&e.apply(this,i)}),t)}},_fl:n,_cq(e){e.preventDefault()},_fm(e){e.stopPropagation()},"_fn<change>"(e){this._fm(e)},"_eM<contextmenu>"(e){this._cq(e)}}))},p=async(e,t)=>{if(!p._fk&&(p._fk=1,t&&t.length)){let i=[];for(let e of t)i.push(`27/${e}/index`);return await e(...i)}},h=document.currentScript.src.replace(/\/[^\/]+$/,"/");window.designer={resolve:e=>seajs.realpath(h+e),setup:(t={})=>(e=0,new Promise((i=>{seajs.use(["1h","1s/index"],(async({applyStyle:s,config:o,State:r,View:d,node:l,guid:a,parseUrl:n,toUrl:h,use:b,mark:g,boot:y},f)=>{s("bK","@font-face{font-family:bJ;src:url('//at.alicdn.com/t/font_890516_37l6idugoni.woff2?t=1637741365462') format('woff2'),url('//at.alicdn.com/t/font_890516_37l6idugoni.woff?t=1637741365462') format('woff'),url('//at.alicdn.com/t/font_890516_37l6idugoni.ttf?t=1637741365462') format('truetype');font-display:block}.bJ{font:400 normal normal 16px/1 bJ;display:inline-block;position:relative}.bK{all:initial;display:block;box-sizing:border-box;font-size:14px;line-height:1.5;font-family:Arial,sans-serif}.bK *{box-sizing:inherit}.bK :after,.bK :before{box-sizing:inherit}.bK ::-moz-placeholder{color:#999}.bK :-ms-input-placeholder{color:#999}.bK ::placeholder{color:#999}.bK ::-moz-selection{background:rgba(250,116,43,.2)}.bK ::selection{background:rgba(250,116,43,.2)}.bL *{cursor:inherit!important}.bM{margin:0}.bN,.bO{font-size:100%;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;caret-color:#FA742B;display:inline-block;height:22px;padding:1px 4px;border-radius:2px;box-sizing:border-box;box-shadow:none;border:1px solid #e6e6e6;background-color:#fff;color:#333;width:140px;max-width:100%;outline:0}.bN:hover,.bO:hover{border-color:#ccc}.bN:focus,.bO:focus,.bP{outline:0;border-color:#fa742b}.bO{height:auto;overflow:auto;resize:none;padding:3px 4px;font-family:Arial,sans-serif;line-height:1.5}.bQ{outline:0}.bN[disabled],.bO[disabled]{background-color:#f5f5f5;cursor:not-allowed;color:#999}.bN:-moz-placeholder,.bO:-moz-placeholder{color:#a9a9a9;opacity:1}.bN:-moz-focus-inner{border-style:none;padding:0}.bN[disabled]:hover,.bO[disabled]:hover{cursor:not-allowed;border-color:#e6e6e6}.bP:hover{border-color:#fa742b}.bR{margin:0;outline:0;display:inline-block;font-weight:400;vertical-align:middle;background-image:none;background-color:#ccc;white-space:nowrap;padding:4px 14px;font-size:14px;line-height:1;border:0;color:#333;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bS{font-weight:400}.bR:focus,.bR:hover{background-color:#bbb;color:#333}.bT{background-color:#fa742b;color:#fff}.bT:focus,.bT:hover{background-color:#f96412;color:#fff}.bR[disabled]{background-color:#f5f5f5;color:#999;cursor:not-allowed}.bR[disabled]:hover{border-color:#e6e6e6;color:#999}.bR:-moz-focus-inner{border-style:none;padding:0}.bU{padding:8px 25px;border-bottom:1px solid rgba(230,230,230,.4);color:#333;margin:0;line-height:1.5}.bV{margin-top:-20px}.bW{height:10px;margin-top:10px;top:28px;box-shadow:0 0 6px #ccc}.bX{line-height:1.1}.bY{padding:18px 25px}.bZ{height:10px;bottom:28px;margin-bottom:10px;box-shadow:0 0 6px #ccc}.b0{padding:8px 25px;border-top:1px solid rgba(230,230,230,.4)}.b1{margin-bottom:-20px}.b2{padding:150px 0;margin:0 auto;width:150px;line-height:0}.b2:after,.b2:before,.b3{content:\"\";width:14px;height:14px;background-color:#ccc;border-radius:100%;display:inline-block;-webkit-animation:bJ 1s infinite ease-in-out both;animation:bJ 1s infinite ease-in-out both}.b2:before{-webkit-animation-delay:-.32s;animation-delay:-.32s}.b3{margin:0 10px;-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes bJ{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}@keyframes bJ{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.b4{display:inline-block;font-weight:400}.b5{font-size:14px;margin:0;padding:0}.b6{list-style-type:none;list-style-image:none;margin:0;padding:0}.b7{color:#fa742b;text-decoration:none}.b7:focus,.b7:hover{color:#e25305}.b7:active,.b7:focus,.b7:hover,.b7:visited{outline:0}.b8{border-style:none;height:auto;vertical-align:top}.b9{margin-right:2px}.c_{margin-left:5px}.ca{transform:rotate(180deg)}.cb{transform:rotate(90deg)}.cc{transform:rotate(270deg)}.cd{margin-right:5px}.ce{margin-right:10px}.cf{margin-left:10px}.cg{padding-left:10px}.ch{background-color:rgba(250,116,43,.6)}.ci{background-color:#fff}.cj{width:100%}.ck{height:100%}.cl{max-width:100%}.cm{max-height:100%}.cn{text-align:right}.co{text-align:center}.cp{float:left}.cq{float:right}.cr{position:absolute}.cs{position:relative}.ct{pointer-events:none}.cu{pointer-events:all}.cv{margin:30px 0}html .cw{display:none}.cx{display:block}.cy{display:inline-block}.cz{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cA{scrollbar-color:#FA742B #0000}.cA::-webkit-scrollbar{height:4px;width:4px}.cA::-webkit-scrollbar-corner{height:4px;width:4px}.cA::-webkit-scrollbar-thumb{background:#fa742b;border-radius:2px}.cA::-webkit-scrollbar-thumb:hover{background:#ec5706}.cB{scrollbar-width:thin;scroll-behavior:smooth}.cB::-webkit-scrollbar{height:2px;width:2px}.cB::-webkit-scrollbar-corner{height:2px;width:2px}.cC{white-space:nowrap;word-wrap:normal;overflow:hidden;text-overflow:ellipsis}.cD{height:1px;margin:5px 0;background:linear-gradient(to right,#0000,#7d768454 50%,#0000)}.cE{flex:1}.cF{display:flex}.cG{flex-direction:column}.cH{flex-shrink:0}.cI{align-items:center}.cJ{transform:scaleX(-1)}.cK{transform:scaleY(-1)}.cL{position:-webkit-sticky;position:sticky}.cM{top:0}.cN{margin-bottom:4px}.cO{margin-top:4px}.cP{width:60px}.cQ{width:140px}.cR{width:113px}.cS{width:220px}.cT{height:100px}.cU{height:1px}.cV{height:4px}.cW{width:1px}.cX{width:4px}.cY{justify-content:space-between}.cZ{justify-content:center}.c0{justify-content:flex-end}.c1{flex-wrap:wrap}.c2{color:#e6e6e6}.c3{cursor:pointer}.c4{cursor:move}.c5{cursor:default}.c6{cursor:text}.c7{word-break:break-all}.c8{word-break:keep-all}.c9{border-collapse:collapse}.d_{border:1px solid #000;padding:0}.da{background:rgba(250,116,43,.05)}.db{overflow:hidden;white-space:pre}.dc{border:solid 2px #fa742b}.dd,.de{border-right:solid 6px #fa742b;border-radius:2px}.dd{right:-4px}.de{left:-4px}.df,.dg{border-bottom:solid 6px #fa742b;border-radius:2px}.df{bottom:-4px}.dg{top:-4px}.dh{inset:-1px}.di{inset:0}.dj{box-shadow:inset 2px 2px 10px rgba(0,0,0,.2);outline:#FA742B 2px solid;background-color:rgba(250,116,43,.1)}.dk{width:80px}.dl{width:220px}.dm{background:rgba(250,116,43,.2)}.dn{align-items:flex-start}.do{visibility:hidden}.dp{width:32px;height:16px;display:inline-block;border-radius:22px;background:#ccc}.dp::before{content:'';width:12px;height:12px;position:absolute;left:0;margin:2px;border-radius:50%;background:#fff;transition:all .25s}.dq{transition:all .25s}.do:checked+.dp{background:#fa742b}.do:checked+.dp::before{left:100%;margin-left:-14px}.do:disabled+.dp{background:#e6e6e6;cursor:not-allowed}.dr{width:20px;margin:0 1px;height:20px;line-height:20px;background:#e0e0e0;border-radius:2px}.dr:hover{background:#ccc}.ds,.ds:hover{background:#fa742b;color:#fff}.dt{opacity:.6}.du .dr,.du .dr:hover{background:#e6e6e6}.du .ds,.du .ds:hover{background:#999}.dv{cursor:not-allowed}.dw{color:#fa742b}.dx,.dy{color:#999}.dz{color:#666}.dx:hover{color:#666}.dA{overflow:hidden}.dB{overflow:visible}.dC{overflow:auto}.dD{overflow-y:scroll}.dE{font-size:10px}.dF{font-size:12px}.dG{font-size:14px}.dH{font-size:16px}.dI{font-size:20px}.dJ{font-size:26px}.dK{right:2px}.dL{right:0}.dM{top:2px}.dN{bottom:2px}.dO{bottom:0}.dP{border:dashed 1px #fa742b;display:none;z-index:2}.dQ{border:dotted 1px #999}.dR{z-index:1}.dS{z-index:5}.dT{z-index:6}.dU{z-index:7}.dV{z-index:8}.dW{z-index:9}.dX::before{width:100%;height:100%;content:attr(data-tip);position:absolute;display:flex;justify-content:center;align-items:center}.dY{min-height:80px}.dZ{min-height:500px}.d0{min-height:100vh}.d1{border-style:dashed}.d2{contain:paint}.d3{padding:4px}.d4{padding:2px}.d5{left:2px}.d6{left:0}.d7{border-radius:2px;padding:2px}.d8{opacity:0}.d8:focus{opacity:1}.d9{opacity:0}.e_{transform:translateY(-50%)}.ea{transform:translateX(-50%)}.eb{touch-action:none}");let x=navigator.language.toLowerCase();try{let e=localStorage;e&&(x=e.getItem("rd.lang")||x)}catch(e){}let{params:_}=n(location.href);_.lang&&(x=_.lang),o(t,{lang:x}),c(d,f,a,g);let u=t.rootId||"app";t.mini?r.set({bZ:1}):document.title=f("b2"),r.on("c_",i);let{classList:m}=l(u);m.add("bK","ck","dA","cs");let k=await p(b,["chart","svg","flow","lscreen"]);if(k)for(let e of k)e();e||y({defaultPath:"/rd",defaultView:"1g/index",rootId:u,retard(e){r.fire("b7",{busy:e})},request(e){r.fire("b9",{_eA:e})},error(e){{let t=o("errorReportUrl");t&&(t=h(t,{error:e.message}),navigator.sendBeacon(t))}}})}))}))),get:()=>new Promise(((t,i)=>{seajs.use("1g/25",(s=>{e&&i("designer destroyed");try{t(s())}catch(e){i("designer not ready")}}))})),set(t){seajs.use(["1h","1g/1t"],(({isString:i,State:s},o)=>{let r=t;i(t)&&(r=JSON.parse(t)),e||s.fire("bX",{bK:o.bR,bJ:r})}))},destroy(){e=1;let t=seajs.require("1h");if(t){let{unboot:e,State:i}=t;i.off("c_"),e()}}}})(),define("1o/36/index",["1h"],((e,t,i)=>{let s=e("1h"),{dispatch:o}=s,r=[{bJ:"",bK:"i4",bL:"hpos",bM:"flex-start"},{bJ:"",bK:"i5",bL:"hpos",bM:"center"},{bJ:"",bK:"i6",bL:"hpos",bM:"flex-end"},{bJ:"",bK:"i7",bL:"vpos",bM:"flex-start",bN:1},{bJ:"",bK:"i8",bL:"vpos",bM:"center",bN:1},{bJ:"",bK:"i9",bL:"vpos",bM:"flex-end",bN:1}];i.exports=s.View.extend({tmpl:(e,t,i,s,o,r,d)=>{let l,a,n,c,{disabled:p,actions:h,i18n:b,value:g}=e;c=[];for(let e=h.length,s=0;s<e;s+=1){let e=h[s];n=[t(0,e.bJ,1)],a="cp dr",p&&(a+=" dv dt"),a+=" co c3 bJ",e.bN&&(a+=" cb"),g[e.bL]==e.bM&&(a+=" ds"),c.push(t("li",{title:b(e.bK),"mx5-click":i+"\x1e_hT({type:'"+d(e.bL)+"',v:'"+d(e.bM)+"'})",class:a},n))}return a="b6 cz",p&&(a+=" du dv dt"),l=[t("ul",{class:a},c)],t(i,0,l)},init(){this.set({actions:r})},assign(e){this.set(e)},render(){this.digest()},"_hT<click>"(e){let t=this;if(t.get("disabled"))return;let i=t.get("value"),{type:s,v:r}=e.params;i[s]=r,o(t.root,"input")}})})),define("1o/37/h-operate",["1h","../../1g/1j","../../24/cell","../38/coperate"],((e,t,i)=>{let s,o,r,d,l,a={class:"c1 cF cI cY"},n=e("1h"),c=e("../../1g/1j"),p=e("../../24/cell");e("../38/coperate");let{View:h,dispatch:b,mix:g}=n,{max:y}=Math,f=["width","borderLeftWidth","borderTopWidth","borderRightWidth","borderBottomWidth"],x=()=>{let e={width:p._gH,borderLeftTopRadius:0,borderRightTopRadius:0,borderLeftBottomRadius:0,borderRightBottomRadius:0,borderLeftStyle:"solid",borderLeftWidth:1,borderLeftColor:"#000000",borderTopStyle:"solid",borderTopWidth:1,borderTopColor:"#000000",borderRightStyle:"solid",borderRightWidth:1,borderRightColor:"#000000",borderBottomStyle:"solid",borderBottomWidth:1,borderBottomColor:"#000000"};for(let t of f)e[t]=c.bK(e[t]);return e};i.exports=h.extend({tmpl:(e,t,i)=>{let n,c,p,h,{disabled:b,i18n:g,canDel:y,canMergeLeft:f,canMergeRight:x}=e;return p=[s||(s=t(0,"\ue618"))],c="bJ dJ gi c3 cN",b&&(c+=" gj"),h=[t("i",{title:g("j_"),"mx5-click":!b&&i+"\x1e_hU({to:'top'})",class:c},p)],p=[s||(s=t(0,"\ue618"))],c="bJ dJ gi c3 cK cN",b&&(c+=" gj"),h.push(t("i",{title:g("ja"),"mx5-click":!b&&i+"\x1e_hU()",class:c},p)),p=[o||(o=t(0,"\ue616"))],c="bJ dJ gi c3 cJ cN",b&&(c+=" gj"),h.push(t("i",{title:g("jb"),"mx5-click":!b&&i+"\x1e_hV({to:'left'})",class:c},p)),p=[o||(o=t(0,"\ue616"))],c="bJ dJ gi c3 cN",b&&(c+=" gj"),h.push(t("i",{title:g("jc"),"mx5-click":!b&&i+"\x1e_hV()",class:c},p)),p=[r||(r=t(0,"\ue62a"))],c="bJ dJ gi c3 cN",!b&&y||(c+=" gj"),h.push(t("i",{title:g("jd"),"mx5-click":!b&&y&&i+"\x1e_hW()",class:c},p)),p=[d||(d=t(0,"\ue610"))],c="bJ dJ gi c3 cN ca",!b&&f||(c+=" gj"),h.push(t("i",{title:g("je"),"mx5-click":!b&&f&&i+"\x1e_hX({to:'left'})",class:c},p)),p=[d||(d=t(0,"\ue610"))],c="bJ dJ gi c3 cN",!b&&x||(c+=" gj"),h.push(t("i",{title:g("jf"),"mx5-click":!b&&x&&i+"\x1e_hX()",class:c},p)),p=[l||(l=t(0,"\ue672"))],c="bJ dJ gi c3 cN",b&&(c+=" gj"),h.push(t("i",{title:g("jg"),"mx5-click":!b&&i+"\x1e_hZ()",class:c},p)),n=[t("div",a,h)],t(i,0,n)},assign(e){let t=!0,i=!0,s=!0,{props:o}=e,{rows:r,focusRow:d,focusCol:l}=o;if(-1!=d&&-1!=l){1==r.length&&1==r[0].cols.length&&(t=!1),0==l&&(i=!1),l==r[d].cols.length-1&&(s=!1),this.set(e),this.set({canMergeLeft:i,canMergeRight:s,canDel:t})}},render(){this.digest()},"_hU<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,rows:o}=i;if(-1!=s){let e="top"==t?s:s+1;o.splice(e,0,{height:c.bK(p._gG),cols:[g({elements:[]},x())]}),i.focusRow=e,i.focusCol=0,b(this.root,"change",{rows:o})}},"_hV<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e="left"==t?o:o+1;r[s].cols.splice(e,0,g({elements:[]},x())),i.focusCol=e,b(this.root,"change",{rows:r})}},"_hW<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;if(-1!=t&&-1!=i){let o=s[t];o.cols.splice(i,1),o.cols.length?i>=o.cols.length&&(e.focusCol=o.cols.length-1):(s.splice(t,1),e.focusCol=0),t>=s.length&&(e.focusRow=s.length-1,e.focusCol=0),b(this.root,"change",{rows:s})}},"_hX<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e="left"==t?o-1:o+1,d=r[s],l=d.cols[e],a=d.cols[o];l.elements.push(...a.elements),l.width+=a.width,d.cols.splice(o,1),i.focusCol="left"==t?e:e-1,b(this.root,"change",{rows:r})}},"_hZ<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;if(-1!=t&&-1!=i){let e=s[t],o=e.cols[i],r=y(o.width/2,c.bK(p._hY));o.width=r;let d=g({elements:[]},x());d.width=r,e.cols.splice(i+1,0,d),b(this.root,"change",{rows:s})}}})})),define("1o/37/h-size",["1h","../../1g/1k","../../24/cell","../../1g/1j","../39/index"],((e,t,i)=>{e("../39/index");let s=e("1h"),o=e("../../1g/1k"),r=e("../../24/cell"),d=e("../../1g/1j"),{View:l,dispatch:a}=s;i.exports=l.extend({tmpl:(e,t,i,s,o,r)=>{let d,{disabled:l,minWidth:a,fixed:n,step:c,read:p,cell:h,minHeight:b,row:g}=e;return d=[t("div",{"mx5-owner":i,$:"minWidth,fixed,step,cell",disabled:l,class:"bN cN cs","mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_h1()","mx5-view":"1o/39/index?min="+r(o,a,"a;")+"&fixed="+r(o,n,"a:")+"&step="+r(o,c,"a-")+"&value="+r(o,p(h.width),"a+")}),t("div",{"mx5-owner":i,$:"minHeight,fixed,step,row",disabled:l,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_h2()",class:"bN cs","mx5-view":"1o/39/index?min="+r(o,b,"b_")+"&fixed="+r(o,n,"a:")+"&step="+r(o,c,"a-")+"&value="+r(o,p(g.height),"ba")})],t(i,0,d)},init(){this.set({fixed:d.cy,step:d.bV,minWidth:()=>d.bK(r._hY),minHeight:()=>d.bK(r._h0),read:o.bM})},assign(e){let{props:t,disabled:i}=e,{rows:s,focusRow:o,focusCol:r}=t;-1==o&&(o=0),-1==r&&(r=0);let d=s[o].cols[r];this.set({row:s[o],disabled:i,cell:d,rows:s,focusRow:o,focusCol:r})},render(){this.digest()},"_h1<input>"(e){this._fm(e);let t=this.get("rows");this.get("cell").width=o.bR(e.value),a(this.root,"change",{rows:t})},"_h2<input>"(e){this._fm(e);let t=this.get("rows");this.get("row").height=o.bR(e.value),a(this.root,"change",{rows:t})}})})),define("1o/37/style",["1h","../../1s/index","../../1g/1j","../../1g/1k","../3a/index","../39/index","../3b/index"],((e,t,i)=>{let s;e("../3a/index"),e("../39/index"),e("../3b/index");let o={class:"cF cI cN"},r={class:"cn dk"},d=e("1h"),l=e("../../1s/index"),a=e("../../1g/1j"),n=e("../../1g/1k"),{View:c,dispatch:p}=d,h=a.cv,b=["Top","Right","Bottom","Left"],g=["LeftTop","RightTop","LeftBottom","RightBottom"],y=[l("in"),l("io"),l("ip"),l("iq")],f=[l("jh"),l("ji"),l("jj"),l("jk")];i.exports=c.extend({tmpl:(e,t,i,d,l,a,n)=>{let c,p,h,b=[],{borders:g,bt:y,i18n:f,disabled:x,borderTypes:_,cell:u,max:m,step:k,fixed:w,read:v,brs:j,brt:K}=e;for(let e=g.length,h=0;h<e;h+=1){let e=g[h];c=[t(0,y[h]+f("jl"))],p=[t("span",r,c),t("div",{"mx5-owner":i,$:"disabled,borderTypes",class:"cF cQ","mx5-change":i+"\x1e_h5({key:'"+n(e)+"'})","mx5-view":"1o/3a/index?disabled="+a(l,x,"a;")+"&list="+a(l,_,"a:")+"&textKey=text&valueKey=value&selected="+d(u["border"+e+"Style"])})],b.push(t("div",o,p)),p=s?[s]:[s=t("span",{_:"a;",class:"cn dk"})],p.push(t("div",{"mx5-owner":i,$:"max,step,fixed,cell,borders",class:"bN cR cd cs",disabled:x,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_h3({key:'"+n(e)+"'})","mx5-view":"1o/39/index?min=0&max="+a(l,m,"a-")+"&step="+a(l,k,"a+")+"&fixed="+a(l,w,"b_")+"&value="+a(l,v(u["border"+e+"Width"]),"ba."+h+".bb")}),t("div",{"mx5-owner":i,$:"disabled,cell,borders","mx5-input":i+"\x1e_h6({key:'"+n(e)+"'})","mx5-view":"1o/3b/index?disabled="+a(l,x,"a;")+"&align=right&alpha=true&color="+a(l,u["border"+e+"Color"],"bc."+h+".bd")})),b.push(t("div",o,p))}for(let e=j.length,s=e-1,o=0;o<e;o+=1){let e=j[o],d=o===s;c=[t(0,K[o]+f("er"))],p=[t("span",r,c),t("div",{"mx5-owner":i,$:"step,fixed,cell,brs",class:"bN cQ cs",disabled:x,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_h4({key:'"+n(e)+"'})","mx5-view":"1o/39/index?min=0&step="+a(l,k,"a+")+"&fixed="+a(l,w,"b_")+"&value="+a(l,v(u["border"+e+"Radius"]),"be."+o+".bf")})],h="cF cI",d||(h+=" cN"),b.push(t("div",{class:h},p))}return t(i,0,b)},init(){this.set({step:a.bV,fixed:a.cy,max:()=>a.bK(10),read:n.bM,bt:y,brt:f,brs:g,borders:b,borderTypes:h})},assign(e){let{props:t,disabled:i}=e,{rows:s,focusRow:o,focusCol:r}=t;-1==o&&(o=0),-1==r&&(r=0);let d=s[o].cols[r];this.set({disabled:i,cell:d,rows:s,focusRow:o,focusCol:r})},render(){this.digest()},"_h3<input>"(e){this._fm(e);let{key:t}=e.params,i=this.get("rows");this.get("cell")[`border${t}Width`]=n.bR(e.value),p(this.root,"change",{rows:i})},"_h4<input>"(e){this._fm(e);let{key:t}=e.params,i=this.get("rows");this.get("cell")[`border${t}Radius`]=a.bL(n.bR(e.value)),p(this.root,"change",{rows:i})},"_h5<change>"(e){this._fm(e);let{key:t}=e.params,i=this.get("rows");this.get("cell")[`border${t}Style`]=e.value,p(this.root,"change",{rows:i})},"_h6<input>"(e){this._fm(e);let{key:t}=e.params,i=this.get("rows");this.get("cell")[`border${t}Color`]=e.color,p(this.root,"change",{rows:i})}})})),define("1o/37/tab",["1h"],((e,t,i)=>{let s,o,r,d={class:"cF cI cN"},l={value:"value"},a=e("1h"),{View:n,dispatch:c,inside:p}=a;i.exports=n.extend({tmpl:(e,t,i)=>{let a,n,c,p,h,b=[],{props:g,disabled:y}=e;a="";let f=g.rows[0].cols;a+=" ";let x=f.length;for(let e=f.length,r=0;r<e;r+=1){let e=f[r];p=[],x>1&&(c=[s||(s=t(0,"\ue6b3"))],n="bJ cd dG",n+=y?" dy":" dx c3",p.push(t("span",{"mx5-click":!y&&i+"\x1e_h8({at:"+r+"})",title:"\u5220\u9664Tab",class:n},c))),p.push(o||(o=t(0,"\u540d\u79f0\uff1a"))),n="dk cn",y&&(n+=" dv"),h=[t("span",{class:n},p),t("input",{value:e.text,class:"bN cQ",disabled:y,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_h7({at:"+r+"})"},1,l)],b.push(t("div",d,h))}return h=[r||(r=t(0,"\u6dfb\u52a0Tab"))],b.push(t("button",{class:"bR bT c3 co cq",disabled:y,"mx5-click":i+"\x1e_h9()"},h)),t(i,0,b)},assign(e){let{props:t,disabled:i}=e;this.set({disabled:i,props:t})},render(){this.digest()},"_h7<input>"(e){let{at:t}=e.params,i=this.get("props").rows;i[0].cols[t].text=e.eventTarget.value,c(this.root,"change",{rows:i})},"_h8<click>"(e){let{at:t}=e.params,i=this.get("props"),s=i.rows,o=i.activeTab,r=s[0];r.cols.splice(t,1),o>=r.cols.length&&(i.activeTab=r.cols.length-1,i.focusCol=i.activeTab,i.focusRow=0),c(this.root,"change",{rows:s})},"_h9<click>"(){let{rows:e}=this.get("props"),t=e[0],i=t.cols[0];t.cols.push({width:i.width,elements:[],text:"New Tab"}),c(this.root,"change",{rows:e})}})})),define("1o/37/tag",["1h","../3b/index"],((e,t,i)=>{let s,o,r,d,l,a;e("../3b/index");let n={class:"cF cI cN"},c={class:"cF cN"},p={class:"dl"},h={value:"value"},b=e("1h"),{View:g,dispatch:y}=b,{random:f}=Math,x=()=>"#"+("00000"+(16777216*f()|0).toString(16)).slice(-6);i.exports=g.extend({tmpl:(e,t,i,b,g,y)=>{let f,x,_,u,m=[],{props:k,disabled:w}=e,v=k.words;for(let e=v.length,a=0;a<e;a+=1){let e=v[a];x=[s||(s=t(0,"\ue6b3"))],f="bJ cd dG",f+=w?" dy":" dx c3",_=[t("span",{"mx5-click":!w&&i+"\x1e_ia({at:"+a+"})",title:"\u5220\u9664\u6807\u7b7e",class:f},x),o||(o=t(0,"\u6587\u672c\uff1a"))],f="dk cn",w&&(f+=" dv"),u=[t("span",{class:f},_),t("input",{value:e.text,class:"bN cQ",disabled:w,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_i_({at:"+a+",key:'text'})"},1,h)],m.push(t("div",n,u)),r?u=[r]:(_=[t(0,"\u94fe\u63a5\uff1a")],u=[r=t("span",{_:"a;",class:"cn dk"},_)]),u.push(t("input",{value:e.url,class:"bN cQ",disabled:w,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_i_({at:"+a+",key:'url'})"},1,h)),m.push(t("div",c,u)),d?u=[d]:(_=[t(0,"\u6587\u5b57\u989c\u8272\uff1a")],u=[d=t("span",{_:"a:",class:"cn dk"},_)]),u.push(t("div",{"mx5-owner":i,$:"disabled",class:"cQ","mx5-input":i+"\x1e_i_({at:"+a+",key:'forecolor'})","mx5-view":"1o/3b/index?color="+b(e.forecolor)+"&align=right&disabled="+y(g,w,"a;")+"&alpha=true"})),m.push(t("div",c,u)),l?u=[l]:(_=[t(0,"\u80cc\u666f\u989c\u8272\uff1a")],u=[l=t("span",{_:"a-",class:"cn dk"},_)]),u.push(t("div",{"mx5-owner":i,$:"disabled",class:"cQ","mx5-input":i+"\x1e_i_({at:"+a+",key:'background'})","mx5-view":"1o/3b/index?color="+b(e.background)+"&align=right&disabled="+y(g,w,"a;")+"&alpha=true"})),m.push(t("div",c,u))}return _=[a||(a=t(0,"\u6dfb\u52a0\u6807\u7b7e"))],u=[t("button",{class:"bR bT c3 co cq",disabled:w,"mx5-click":i+"\x1e_ib()"},_)],m.push(t("div",p,u)),t(i,0,m)},assign(e){let{props:t,disabled:i}=e;this.set({disabled:i,props:t})},render(){this.digest()},"_i_<input>"(e){let t,{at:i,key:s}=e.params,o=this.get("props").words;t="text"==s||"url"==s?e.eventTarget.value:e.color,o[i][s]=t,y(this.root,"change",{words:o})},"_ia<click>"(e){let{at:t}=e.params,i=this.get("props").words;i.splice(t,1),y(this.root,"change",{words:i})},"_ib<click>"(){let{words:e}=this.get("props");e.push({text:"\u6807\u7b7e",url:"",forecolor:x(),background:x()}),y(this.root,"change",{words:e})}})})),define("1o/37/v-operate",["1h","../../1g/1j","../../24/cell","../38/coperate"],((e,t,i)=>{let s,o,r,d,l,a={class:"c1 cF cI cY"},n=e("1h"),c=e("../../1g/1j"),p=e("../../24/cell");e("../38/coperate");let{View:h,dispatch:b,mix:g}=n,{max:y}=Math,f=["height","borderLeftWidth","borderTopWidth","borderRightWidth","borderBottomWidth"],x=()=>{let e={height:p._gH,borderLeftTopRadius:0,borderRightTopRadius:0,borderLeftBottomRadius:0,borderRightBottomRadius:0,borderLeftStyle:"solid",borderLeftWidth:1,borderLeftColor:"#000000",borderTopStyle:"solid",borderTopWidth:1,borderTopColor:"#000000",borderRightStyle:"solid",borderRightWidth:1,borderRightColor:"#000000",borderBottomStyle:"solid",borderBottomWidth:1,borderBottomColor:"#000000"};for(let t of f)e[t]=c.bK(e[t]);return e};i.exports=h.extend({tmpl:(e,t,i)=>{let n,c,p,h,{disabled:b,i18n:g,canDel:y,canMergeTop:f,canMergeBottom:x}=e;return p=[s||(s=t(0,"\ue618"))],c="bJ dJ gi c3 cN",b&&(c+=" gj"),h=[t("i",{title:g("jm"),"mx5-click":!b&&i+"\x1e_hV({to:'top'})",class:c},p)],p=[s||(s=t(0,"\ue618"))],c="bJ dJ gi c3 cK cN",b&&(c+=" gj"),h.push(t("i",{title:g("jn"),"mx5-click":!b&&i+"\x1e_hV()",class:c},p)),p=[o||(o=t(0,"\ue616"))],c="bJ dJ gi c3 cJ cN",b&&(c+=" gj"),h.push(t("i",{title:g("jo"),"mx5-click":!b&&i+"\x1e_hU({to:'left'})",class:c},p)),p=[o||(o=t(0,"\ue616"))],c="bJ dJ gi c3 cN",b&&(c+=" gj"),h.push(t("i",{title:g("jp"),"mx5-click":!b&&i+"\x1e_hU()",class:c},p)),p=[r||(r=t(0,"\ue62b"))],c="bJ dJ gi c3 cN",!b&&y||(c+=" gj"),h.push(t("i",{title:g("jd"),"mx5-click":!b&&y&&i+"\x1e_hW()",class:c},p)),p=[d||(d=t(0,"\ue610"))],c="bJ dJ gi c3 cN cc",!b&&f||(c+=" gj"),h.push(t("i",{title:g("jq"),"mx5-click":!b&&f&&i+"\x1e_hX({to:'top'})",class:c},p)),p=[d||(d=t(0,"\ue610"))],c="bJ dJ gi c3 cN cb",!b&&x||(c+=" gj"),h.push(t("i",{title:g("jr"),"mx5-click":!b&&x&&i+"\x1e_hX()",class:c},p)),p=[l||(l=t(0,"\ue672"))],c="bJ dJ gi c3 cN cb",b&&(c+=" gj"),h.push(t("i",{title:g("jg"),"mx5-click":!b&&i+"\x1e_hZ()",class:c},p)),n=[t("div",a,h)],t(i,0,n)},assign(e){let t=!0,i=!0,s=!0,{props:o}=e,{rows:r,focusRow:d,focusCol:l}=o;if(-1!=d&&-1!=l){1==r.length&&1==r[0].cols.length&&(t=!1),0==l&&(i=!1),l==r[d].cols.length-1&&(s=!1),this.set(e),this.set({canMergeTop:i,canMergeBottom:s,canDel:t})}},render(){this.digest()},"_hU<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,rows:o}=i;if(-1!=s){let e="left"==t?s:s+1;o.splice(e,0,{width:c.bK(p._gG),cols:[g({elements:[]},x())]}),i.focusRow=e,i.focusCol=0,b(this.root,"change",{rows:o})}},"_hV<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e="top"==t?o:o+1;r[s].cols.splice(e,0,g({elements:[]},x())),i.focusCol=e,b(this.root,"change",{rows:r})}},"_hW<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;if(-1!=t&&-1!=i){let o=s[t];o.cols.splice(i,1),o.cols.length?i>=o.cols.length&&(e.focusCol=o.cols.length-1):(s.splice(t,1),e.focusCol=0),t>=s.length&&(e.focusRow=s.length-1,e.focusCol=0),b(this.root,"change",{rows:s})}},"_hX<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e="top"==t?o-1:o+1,d=r[s],l=d.cols[e],a=d.cols[o];l.elements.push(...a.elements),l.height+=a.height,d.cols.splice(o,1),i.focusCol="top"==t?e:e-1,b(this.root,"change",{rows:r})}},"_hZ<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;if(-1!=t&&-1!=i){let e=s[t],o=e.cols[i],r=y(o.height/2,c.bK(p._hY));o.height=r;let d=g({elements:[]},x());d.height=r,e.cols.splice(i+1,0,d),b(this.root,"change",{rows:s})}}})})),define("1o/37/v-size",["1h","../../1g/1k","../../24/cell","../../1g/1j","../39/index"],((e,t,i)=>{e("../39/index");let s=e("1h"),o=e("../../1g/1k"),r=e("../../24/cell"),d=e("../../1g/1j"),{View:l,dispatch:a}=s;i.exports=l.extend({tmpl:(e,t,i,s,o,r)=>{let d,{disabled:l,minWidth:a,fixed:n,step:c,read:p,row:h,minHeight:b,cell:g}=e;return d=[t("div",{"mx5-owner":i,$:"minWidth,fixed,step,row",disabled:l,class:"bN cN cs","mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_id()","mx5-view":"1o/39/index?min="+r(o,a,"a;")+"&fixed="+r(o,n,"a:")+"&step="+r(o,c,"a-")+"&value="+r(o,p(h.width),"a+")}),t("div",{"mx5-owner":i,$:"minHeight,fixed,step,cell",disabled:l,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_ic()",class:"bN cs","mx5-view":"1o/39/index?min="+r(o,b,"b_")+"&fixed="+r(o,n,"a:")+"&step="+r(o,c,"a-")+"&value="+r(o,p(g.height),"ba")})],t(i,0,d)},init(){this.set({fixed:d.cy,step:d.bV,minWidth:()=>d.bK(r._hY),minHeight:()=>d.bK(r._h0),read:o.bM})},assign(e){let{props:t,disabled:i}=e,{rows:s,focusRow:o,focusCol:r}=t;-1==o&&(o=0),-1==r&&(r=0);let d=s[o].cols[r];this.set({row:s[o],disabled:i,cell:d,rows:s,focusRow:o,focusCol:r})},render(){this.digest()},"_ic<input>"(e){this._fm(e);let t=this.get("rows");this.get("cell").height=o.bR(e.value),a(this.root,"change",{rows:t})},"_id<input>"(e){this._fm(e);let t=this.get("rows");this.get("row").width=o.bR(e.value),a(this.root,"change",{rows:t})}})})),define("1o/34/index",["1h","../../24/3c"],((e,t,i)=>{let s={value:"value"},o=e("1h"),r=e("../../24/3c"),{node:d,View:l,mark:a,dispatch:n,delay:c}=o;i.exports=l.extend({tmpl:(e,t,i)=>{let o,{value:r}=e;return o=[t("textarea",{class:"bO cj ck",id:"_mx_ta_"+i,value:r},0,s)],t(i,0,o)},init(){this.on("destroy",(()=>{let{_hz:e}=this;e&&e.toTextArea()}))},assign(e){this.set(e);let{_hz:t}=this;return t&&e.value!=t.getValue()&&t.setValue(e.value),!1},async render(){let e=a(this,"_bQ"),t=this.get("mode")||"javascript";if(await r(),await c(200),await this.digest(),e()&&!this._hz){let e=d(`_mx_ta_${this.id}`);this._hz=CodeMirror.fromTextArea(e,{mode:t,lineNumbers:!0,lineWrapping:!0}),this._hz.setSize("100%","100%"),this._hz.on("blur",(e=>{n(this.root,"cmchange",{value:e.getValue()})}))}}})})),define("1o/3j/index",["1h","../../1g/1j","../39/index"],((e,t,i)=>{e("../39/index");let s=e("1h"),o=e("../../1g/1j"),{applyStyle:r,View:d,dispatch:l}=s;r("hb",".gO{border-radius:2px;border:solid 1px #e6e6e6;padding:0 4px}"),i.exports=d.extend({tmpl:(e,t,i,s,o,r,d)=>{let l,a,n=[],{fields:c,min:p,fixed:h,step:b,max:g,columns:y,disabled:f,i18n:x}=e;if(c.length)for(let e=c.length,s=0;s<e;s+=1){let e=c[s];n.push(t("div",{"mx5-owner":i,$:"min,fixed,step,max,columns,fields","mx5-input":i+"\x1e_iR({id:'"+d(e.id)+"'})","mx5-change":i+"\x1e_fn()",disabled:f,class:"bN cs","mx5-view":"1o/39/index?min="+r(o,p,"a;")+"&fixed="+r(o,h,"a:")+"&step="+r(o,b,"a-")+"&max="+r(o,g,"a+")+"&value="+r(o,y[e.id],"b_."+s+".ba")}))}else a=[t(0,x("jX"))],l="gO dy",f&&(l+=" dv dt"),n.push(t("div",{class:l},a));return t(i,0,n)},assign(e){let{columns:t,min:i,max:s,fields:r,disabled:d}=e;this.set({disabled:d,min:i,max:s,step:o.bV,fixed:o.cy,columns:t,fields:r})},_iQ(){let e=this.get("columns");l(this.root,"change",{columns:e})},render(){this.digest()},"_iR<input>"(e){this._fm(e);let t=this.get("columns"),{id:i}=e.params;t[i]=e.value,this._iQ()}})})),define("1o/2d/alert",["1h","../../1s/index"],((e,t,i)=>{let s,o,r={class:"bU bV cF cI cL cM ci dV"},d={class:"b5"},l={class:"bY c7"},a={class:"b0 b1 c0 cF cI cL ci dO dT"},n=e("1h"),c=e("../../1s/index"),{View:p,toTry:h,node:b}=n;i.exports=p.extend({tmpl:(e,t,i)=>{let n,c,p,{title:h,body:b,i18n:g}=e;return n=s?[s]:[s=t("div",{_:"a;",class:"bW cL dU"})],c=[t(0,h)],p=[t("h5",d,c)],n.push(t("div",r,p)),p=[t(0,b)],n.push(t("div",l,p)),c=[t(0,g("jZ"))],p=[t("button",{"mx5-click":i+"\x1e_iV()",class:"bR bT c3 co",type:"button",tabindex:1,id:"_mx_o_"+i},c)],n.push(t("div",a,p)),o?n.push(o):n.push(o=t("div",{_:"a:",class:"bZ cL dS"})),t(i,0,n)},init(e){let t=this;t._cV=e.dialog,t._iS=e.body,t._iT=e.title||c("jY"),t._iU=e.enter},async render(){let e=this;await e.digest({body:e._iS,title:e._iT});let t=b(`_mx_o_${this.id}`);t&&t.focus()},"_iV<click>"(){let e=this;e._cV.close(),e._iU&&h(e._iU)}})})),define("1o/2d/confirm",["1h","../../1s/index"],((e,t,i)=>{let s,o,r={class:"bU bV cF cI cL cM ci dV"},d={class:"b5"},l={class:"bY c7"},a={class:"b0 b1 c0 cF cI cL ci dO dT"},n=e("1h"),c=e("../../1s/index"),{View:p,toTry:h,node:b}=n;i.exports=p.extend({tmpl:(e,t,i)=>{let n,c,p,{title:h,body:b,i18n:g}=e;return n=s?[s]:[s=t("div",{_:"a;",class:"bW cL dU"})],c=[t(0,h)],p=[t("h5",d,c)],n.push(t("div",r,p)),p=[t(0,b)],n.push(t("div",l,p)),c=[t(0,g("jZ"))],p=[t("button",{type:"button","mx5-click":i+"\x1e_iV()",class:"bR bT c3 co",tabindex:1,id:"_mx_o_"+i},c)],c=[t(0,g("b6"))],p.push(t("button",{type:"button","mx5-click":i+"\x1e_cW()",class:"bR c3 cf co",tabindex:2},c)),n.push(t("div",a,p)),o?n.push(o):n.push(o=t("div",{_:"a:",class:"bZ cL dS"})),t(i,0,n)},init(e){let t=this;t._cV=e.dialog,t._iS=e.body,t._iT=e.title||c("jY"),t._iU=e.enter,t._iW=e.cancel},async render(){let e=this;await e.digest({body:e._iS,title:e._iT});let t=b(`_mx_o_${this.id}`);t&&t.focus()},"_iV<click>"(){let e=this;e._cV.close(),e._iU&&h(e._iU)},"_cW<click>"(){let e=this;e._cV.close(),e._iW&&h(e._iW)}})})),define("1o/2d/index",["1h"],((e,t,i)=>{let s,o,r=e("1h"),{View:d,applyStyle:l,node:a,dispatch:n,has:c,guid:p,mix:h,attach:b,detach:g}=r;l("hf",".gP{border-radius:2px;border:1px solid #e6e6e6;background-color:#fff;margin:25px;min-height:60px}.gQ{opacity:.2;top:10px;right:10px}.gQ:focus,.gQ:hover{opacity:.5}.gR{margin:auto}.gS{float:right;margin:35px 35px 0 -35px}.gT{position:fixed;background-color:#000;opacity:.4}.gU{-webkit-animation:bL .2s;animation:bL .2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.gV{padding:80px 0}@-webkit-keyframes bL{from{opacity:0}to{opacity:.4}}@keyframes bL{from{opacity:0}to{opacity:.4}}.gW{-webkit-animation:bM .2s;animation:bM .2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes bM{from{opacity:.4}to{opacity:0}}@keyframes bM{from{opacity:.4}to{opacity:0}}.gX{-ms-scroll-chaining:none;overscroll-behavior:contain;position:fixed;scrollbar-gutter:stable}.gY{-webkit-animation:bN .2s;animation:bN .2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes bN{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes bN{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.gZ{-webkit-animation:bO .2s;animation:bO .2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes bO{from{transform:translateY(0);opacity:1}to{transform:translateY(-30px);opacity:0}}@keyframes bO{from{transform:translateY(0);opacity:1}to{transform:translateY(-30px);opacity:0}}");let y=800,f=[];i.exports=d.extend({tmpl:(e,t,i,r,d,l)=>{let a,n,c,p,h,{zIndex:b,width:g,closable:y,i18n:f,view:x}=e;return a=[t("div",{class:"di gT gU",style:"z-index:"+(b-1),id:"_mx_mask_"+i})],p=[],y&&(n=[s||(s=t(0,"\ue624"))],p.push(t("span",{class:"bJ c3 cL dW gQ gS",title:f("j0"),"mx5-click":i+"\x1e_dQ()"},n))),o?n=[o]:(c=[t(0,'<span class="b3"></span>',1)],n=[o=t("div",{_:"a;",class:"b2 co gV"},c)]),p.push(t("div",{"mx5-owner":i,$:"#",class:"cs d2 gP","mx5-view":x+"?\x1e="+l(d,e,"a;")},n)),h=[t("div",{class:"cH gR",id:"_mx_body_"+i,style:"width:"+g+"px"},p)],a.push(t("div",{class:"bQ cB cF cj ck dC di gX gY",style:"z-index:"+b,tabindex:0,id:"_mx_scroll_"+i},h)),t(i,0,a)},init(e){let t=this,i=t.root;t.on("destroy",(()=>{(e=>{for(let t,i=f.length-1;i>=0;i--)if(t=f[i],t.id==e.id){f.splice(i,1);break}})(t),y-=2,n(i,"_iX"),i.parentNode.removeChild(i)})),c(e,"closable")||(e.closable=!0),t.set(e),y+=2,f.push(t)},async render(){await this.digest({zIndex:y});let e=a(`_mx_scroll_${this.id}`);e&&e.focus()},_iY(){let e,t=this.id;e=a("_mx_scroll_"+t),e.classList.add("gZ"),e=a("_mx_mask_"+t),e.classList.add("gW")},"_dQ<click>"(){n(this.root,"_iZ")},"$doc<keyup>"(e){if("Escape"==e.code){let e=f[f.length-1];e==this&&e.get("closable")&&n(this.root,"_iZ")}}}).static({_i1(e,t){let i=p("_mx_dlg_");document.body.insertAdjacentHTML("beforeend",'<div id="'+i+'" class="bK"/>');let s=a(i),o=e.owner.mount(s,"1o/2d/index",t),r=async()=>{s._i0||(s._i0=1,o.invoke("_iY"),g(s,"_iZ",r),setTimeout((()=>{o.unmount()}),200))};return b(s,"_iZ",r),s},alert(e,t,i){this.confirm(e,t,null,i,"alert")},confirm(e,t,i,s,o="confirm"){this.mxDialog("1o/2d/"+o,{body:e,cancel:i,enter:t,title:s,modal:!0,width:350})},mxDialog(e,t){let i,s,o=this,r="$dlg_"+e;if(o[r])return;o[r]=1;let d=h({view:e},t);d.width||(d.width=550),d.dialog={close(){i&&n(i,"_iZ")}},i=o._i1(o,d);let l=()=>{delete o[r],g(i,"_iX",l),s&&s()};return b(i,"_iX",l),{close(){i&&n(i,"_iZ")},whenClose(e){s=e}}}})})),define("1o/3b/index",["1h","../1p/index","../3i/index"],((e,t,i)=>{let s,o,r,d,l={class:"cF cI gB"},a=e("1h"),n=e("../1p/index"),c=e("../3i/index"),{node:p,View:h,applyStyle:b,dispatch:g,inside:y,mark:f}=a,{abs:x,min:_,max:u,round:m,pow:k}=Math;b("g8",".gk{height:22px;border:solid 1px #e6e6e6;border-radius:2px;padding:1px}.gk:hover{border-color:#ccc}.gl,.gl:hover{border-color:#fa742b}.gm,.gn{background:#fff;background-image:linear-gradient(45deg,#eee 25%,#0000 0,#0000 75%,#eee 0),linear-gradient(45deg,#eee 25%,#0000 0,#0000 75%,#eee 0);background-position:0 0,6px 6px;background-size:12px 12px}.gn{min-width:18px;height:18px;text-indent:-100000em;border:solid 1px #ccc}.go{padding:3px 4px}.gn::after{content:' ';display:block;right:0;bottom:0;position:absolute;border-width:6px 6px 0 0;border-style:solid;border-color:#0000 #ccc}.gp{border-radius:2px;z-index:300;border:1px solid #ccc;background-color:#fff;padding:4px}.gq-bottom{top:100%;margin-top:4px}.gq-top{bottom:100%;margin-bottom:4px}.gr{width:176px}.gs{border:1px solid #000;width:12px;height:12px;margin:-1px 0 0 -1px}.gt::before{content:' ';position:absolute;left:2px;top:2px;box-shadow:0 0 0 1px #000,0 0 0 2px #fff;width:6px;height:6px}.gu{margin:5px 0;height:150px}.gv{background:linear-gradient(90deg,#fff,#0000)}.gw{background:linear-gradient(0,#000,#0000)}.gx{width:148px;height:148px}.gy{width:8px;height:8px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;left:-4px;top:-4px}.gz{width:18px;height:148px;margin-left:10px;background:linear-gradient(0,red 0,#f0f 13%,#80f 25%,#00f 37%,#0ff 50%,#0f0 63%,#0bed00 75%,#ff0 87%,red)}.gA{top:-2px;height:4px;width:14px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);background:#fff}.gB{height:25px}.gC{width:22px;border-radius:2px;height:22px;margin-right:4px;border:1px solid #e6e6e6}.gC:hover{border-color:#ccc}.gD{right:5px;top:4px;opacity:.2}.gD:hover{opacity:.5}.gE{color:#000}.gF{color:#fff}.gm{width:174px;height:12px;margin-bottom:5px}.gG{left:-2px;top:2px;height:8px;width:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);background:#fff}.gH{background-color:#f5f5f5}.gH:hover{border-color:#e6e6e6}.gH:hover .gD{opacity:.1}.gH .gn{opacity:.4}.gH .gD{opacity:.1}.gI{width:150px}.gJ{width:118px}.gK{height:22px;width:28px;margin-left:4px;line-height:22px;border-radius:2px}.gK:hover{background-color:#f0f0f0}");let w=["d81e06","ffff00","1afa29","1296db","13227a","d4237a","ffffff","e6e6e6","dbdbdb","cdcdcd","bfbfbf","8a8a8a","707070","515151","2c2c2c","000000","ea986c","eeb174","f3ca7e","f9f28b","c8db8c","aad08f","87c38f","83c6c2","7dc5eb","87a7d6","8992c8","a686ba","bd8cbb","be8dbd","e89abe","e8989a","e16632","e98f36","efb336","f6ef37","afcd51","7cba59","36ab60","1baba8","17ace3","3f81c1","4f68b0","594d9c","82529d","a4579d","db649b","dd6572","d84e06","e0620d","ea9518","f4ea2a","8cbb1a","2ba515","0e932e","0c9890","1295db","0061b2","0061b0","004198","122179","88147f","d3227b","d6204b"],v=(e,t,i)=>{let s,o,r,d,l;l=i*t,d=l*(1-x((e=e%360/60)%2-1)),s=o=r=i-l,s+=[l,d,0,0,d,l][e=~~e],o+=[d,l,l,d,0,0][e],r+=[0,0,d,l,l,d][e];let a=m(255*s),n=m(255*o),c=m(255*r);return{r:a,g:n,b:c,hex:"#"+(16777216|c|n<<8|a<<16).toString(16).slice(1)}},j=(e,t,i)=>{let s,o,r,d;return r=u(e/=255,t/=255,i/=255),d=r-_(e,t,i),s=0===d?null:r==e?(t-i)/d+(t<i?6:0):r==t?(i-e)/d+2:(e-t)/d+4,s=s%6*60,o=0===d?0:d/r,{h:s,s:o,v:r}},K=e=>{let t=parseInt(e.substr(1,2),16);isNaN(t)&&(t=255);let i=parseInt(e.substr(3,2),16);isNaN(i)&&(i=255);let s=parseInt(e.substr(5,2),16);isNaN(s)&&(s=255);let o=parseInt(e.substr(7,2),16);return isNaN(o)&&(o=255),{r:t,g:i,b:s,a:o}},R=(e,t=50,i=null)=>{let s=Date.now();return(...o)=>{let r=Date.now();r-s>=t&&(s=r,e.apply(i,o))}},J=/^#[a-fA-f0-9]{3}$/,M=/^#[a-fA-f0-9]{6}$/,L=/^#[a-fA-f0-9]{4}$/,S=/^#[a-fA-f0-9]{8}$/,X=e=>{let t=e;return 4==e.length?t=["#",e[1],e[1],e[2],e[2],e[3],e[3]].join(""):5==e.length&&(t=["#",e[1],e[1],e[2],e[2],e[3],e[3],e[4],e[4]].join("")),t},V=(e,t,i)=>(t/=255,i/=255,.2126*(e=(e/=255)<=.03928?e/12.92:k((e+.055)/1.055,2.4))+.7152*(t=t<=.03928?t/12.92:k((t+.055)/1.055,2.4))+.0722*(i=i<=.03928?i/12.92:k((i+.055)/1.055,2.4)));i.exports=h.extend({tmpl:(e,t,i,a,n,c,p)=>{let h,b,g,y,f,x,_,{disabled:u,text:m,textWidth:k,color:w,clear:v,dark:j,i18n:K,placement:R,align:J,renderUI:M,shortcuts:L,alpha:S,nativeEye:X,eyeOpen:V}=e;if(_=[],m&&(y=[t(0,m)],b="go cz",u||(b+=" c3"),g="",k&&(g+="width:"+k+"px"),_.push(t("div",{"mx5-click":i+"\x1e_bV()","mx5-contextmenu":i+"\x1e_eM()",class:b,style:g},y))),b="gn cs cz",u||(b+=" c3"),m||(b+=" cj"),g="",w&&(g+="background:"+w+";"),_.push(t("div",{"mx5-click":i+"\x1e_bV()","mx5-contextmenu":i+"\x1e_eM()",class:b,style:g})),v&&w&&(y=[s||(s=t(0,"\ue624"))],b="bJ gD dF cr",b+=j?" gE":" gF",u||(b+=" c3"),_.push(t("i",{a:j,"mx5-click":i+"\x1e_iG()",title:K("jR"),"mx5-contextmenu":i+"\x1e_eM()",class:b},y))),y=[],M){f=[];for(let e=L.length,s=0;s<e;s+=1){let e=L[s];f.push(t("li",{class:"cp cs gs",id:"_mx_sc_"+e+"_"+i,style:"background:#"+e,"mx5-click":i+"\x1e_iC({color:'#"+p(e)+"'})"}))}y.push(t("ul",{class:"b6 c1 c3 cF gr",id:"_mx_scs_"+i,"mx5-contextmenu":i+"\x1e_eM()"},f)),x=o?[o]:[o=t("div",{_:"a;",class:"cr di gv"})],r?x.push(r):x.push(r=t("div",{_:"a:",class:"cr di gw"})),x.push(t("div",{class:"c5 cr gy",id:"_mx_ci_"+i})),f=[t("div",{class:"cp cs eb gx",id:"_mx_cz_"+i,"mx5-pointerdown":i+"\x1e_iz()"},x)],x=[t("div",{class:"c5 cr d5 gA",id:"_mx_si_"+i})],f.push(t("div",{class:"cp cs eb gz","mx5-pointerdown":i+"\x1e_iA()"},x)),y.push(t("div",{class:"gu","mx5-contextmenu":i+"\x1e_eM()"},f)),S&&(x=[t("div",{class:"c5 cr gG",id:"_mx_ai_"+i})],f=[t("div",{class:"ck cs eb",id:"_mx_at_"+i,"mx5-pointerdown":i+"\x1e_iB()"},x)],y.push(t("div",{class:"cs gm","mx5-contextmenu":i+"\x1e_eM()"},f))),f=[],f.push(t("span",{class:"gC",id:"_mx_bc_"+i,"mx5-contextmenu":i+"\x1e_eM()"})),b="bN gI",X&&(b+=" gJ"),f.push(t("input",{spellcheck:"false",id:"_mx_v_"+i,"mx5-input":i+"\x1e_iH()","mx5-change":i+"\x1e_fn()","mx5-pointerup":i+"\x1e_iI()","mx5-paste":i+"\x1e_iJ()",title:K("jS"),class:b},1)),X&&(x=[d||(d=t(0,"\ue670"))],b="bJ c3 gK co",b+=V?" dw":" dz",f.push(t("i",{title:K("jT"),"mx5-click":i+"\x1e_iL()","mx5-contextmenu":i+"\x1e_eM()",class:b},x))),y.push(t("div",l,f))}return _.push(t("div",{id:"_mx_bd_"+i,class:"gp cz cw cr gq-"+R,style:J+":-1px"},y)),b="gk cF cI cs",u&&(b+=" dv gH"),h=[t("div",{id:"_mx_root_"+i,class:b},_)],t(i,0,h)},init(){this.set({nativeEye:window.EyeDropper,shortcuts:w}),c._in(),this.on("destroy",(()=>{c._dZ(this),c._io()}))},assign(e){let t=p("_mx_root_"+this.id);if(t){let{classList:e}=t;if(e.contains("gl"))return!1}let{color:i="",text:s="",clear:o=!1,disabled:r=!1,align:d="left",alpha:l=!1,placement:a="bottom",textWidth:n=0}=e;i=X(i),this._ip=i,this._iq=l;let{r:c,g:h,b:b,a:g}=K(i),y=j(c,h,b);this._ir=y,this._is=g,this.set({dark:V(c,h,b)>.43,clear:o,text:s,disabled:r,align:d,textWidth:n,placement:a})},render(){this.digest({alpha:this._iq,color:this._ip})},_iv(e,t){let i=this,s=i._ir;s.h=e.h,s.s=e.s,s.v=e.v;let o=v(e.h,e.s,e.v).hex,r=p("_mx_cz_"+i.id),d=r.clientWidth,l=v(e.h,1,1);r.style.background=l.hex,i._it=o,i._iu();let a=p("_mx_scs_"+i.id).querySelector('li[class$="gt"]');if(a&&a.classList.remove("gt"),!t){let e=p("_mx_si_"+i.id),t=e.clientHeight/2,o=s.h*d/360-t,r=p("_mx_ci_"+i.id),l=r.clientWidth/2;e.style.top=o+"px",o=(1-s.v)*d-l;let a=s.s*d-l;r.style.left=a+"px",r.style.top=o+"px"}let n=p("_mx_sc_"+o.substr(1,6)+"_"+i.id);n&&n.classList.add("gt")},_ix(e){let t=this,i=this._ir,s=this._is;if(e){let{r:t,g:o,b:r,a:d}=K(e);i=j(t,o,r),s=d,this._is=s}t._iv(i),t._iq&&t._iw(s)},_iw(e){let t=p("_mx_ai_"+this.id);e/=255,e*=p("_mx_at_"+this.id).clientWidth,e-=t.clientWidth/2,t.style.left=e+"px"},_iu(){let e=this,t=p("_mx_bc_"+e.id),i=e._it;e._iq&&(p("_mx_at_"+e.id).style.background="linear-gradient(to right, "+i+"00 0%,"+i+" 100%)",i+=("0"+e._is.toString(16)).slice(-2)),t.style.background=i,p("_mx_v_"+e.id).value=i},"_iz<pointerdown>"(e){let t=this,i=p("_mx_cz_"+t.id).clientWidth,s=p("_mx_ci_"+t.id).clientWidth/2,o=e.eventTarget.getBoundingClientRect(),r=e.pageX-o.x-scrollX,d=e.pageY-o.y-scrollY,l=r/i,a=(i-d)/i;t._iv({h:t._ir.h,s:l,v:a});let n=p("_mx_ci_"+t.id),c=getComputedStyle(n),h=c.left,b=c.top,g=parseInt(h,10),y=parseInt(b,10),f=e,x=R((()=>{this._iy()}));t._ci(e,(e=>{let o=e.pageY-f.pageY,r=e.pageX-f.pageX;o+=y,o<=-s?o=-s:o>=i-s&&(o=i-s),r+=g,r<=-s?r=-s:r>=i-s&&(r=i-s),n.style.left=r+"px",n.style.top=o+"px";let d=(r+s)/i,l=(i-(o+s))/i;t._iv({h:t._ir.h,s:d,v:l},!0),x()}),(()=>{this._iy()}))},"_iA<pointerdown>"(e){let t=this,i=e.eventTarget,s=p("_mx_si_"+t.id),o=p("_mx_cz_"+t.id).clientWidth,r=s.clientHeight/2,d=i.getBoundingClientRect(),l=(e.pageY-d.y-scrollY)/o*360;t._iv({h:l,s:t._ir.s,v:t._ir.v});let a=R((()=>{this._iy()})),n=parseInt(getComputedStyle(s).top,10);t._ci(e,(i=>{let d=i.pageY-e.pageY;d+=n,d<=-r?d=-r:d>=o-r&&(d=o-r),s.style.top=d+"px";let l=(d+r)/o*360;t._iv({h:l,s:t._ir.s,v:t._ir.v},!0),a()}),(()=>{this._iy()}))},"_iB<pointerdown>"(e){let t=e.eventTarget,i=this,s=p("_mx_ai_"+i.id),o=p("_mx_at_"+i.id).clientWidth,r=s.clientWidth/2,d=t.getBoundingClientRect(),l=(e.pageX-d.x)/o*255|0;i._is=l,i._iw(l),i._iu();let a=getComputedStyle(s),n=parseInt(a.left,10),c=R((()=>{this._iy()}));i._ci(e,(t=>{let d=t.pageX-e.pageX;d+=n,d<=-r?d=-r:d>=o-r&&(d=o-r),s.style.left=d+"px";let l=m((d+r)/o*255);i._is=l,i._iu(),c()}),(()=>{this._iy()}))},_iy(){let e=this,t=p("_mx_v_"+e.id).value;if(t!=e._ip){let i;if(e.get("clear")){let{r:e,g:s,b:o}=K(t);i=V(e,s,o)>.43}this.digest({dark:i,color:t}),g(e.root,"input",{color:e._ip=t})}},"_iC<click>"({params:e,eventTarget:t}){this._ix(e.color),t.classList.add("gt"),this._iy()},_iD(e){return y(e,this.root)},async _cj(){let e=p("_mx_bd_"+this.id);"none"==getComputedStyle(e).display&&(e.style.display="block",c._iE(this),p("_mx_root_"+this.id).classList.add("gl"),this._iF||(await this.digest({renderUI:!0}),this._iF=1),this._ix())},_ck(){let e=p("_mx_bd_"+this.id);"none"!=getComputedStyle(e).display&&(p("_mx_root_"+this.id).classList.remove("gl"),e.style.display="none",c._dZ(this))},"_bV<click>"(){if(this.get("disabled"))return;let e=p("_mx_bd_"+this.id);"none"==getComputedStyle(e).display?this._cj():this._ck()},_bU(){this._ix("#ffffffff"),this.digest({color:""}),g(this.root,"input",{color:this._ip=""})},"_iG<click>"(){this.get("disabled")||this._bU()},"_iH<input>"(e){this._fm(e);let{eventTarget:t}=e,i=t.value.trim(),s=M;this._iq&&(s=S),s.test(i)?(this._ix(i),this._iy()):this.get("clear")&&!i&&this._bU()},"_iI<pointerup>"(e){setTimeout((()=>{let t=e.eventTarget;t.setSelectionRange(1,t.value.length)}),20)},"_iJ<paste>&{passive:false}"(e){this._cq(e);let t=e.clipboardData.getData("text/plain"),i=J,s=M;this._iq&&(i=L,s=S),(i.test(t)||s.test(t))&&(t=X(t),this._ix(t),this._iy())},async"_iL<click>"(){try{this.digest({eyeOpen:!0});let e=this._iK;e||(e=this._iK=new EyeDropper);let t=await e.open();this._ix(t.sRGBHex),this.digest({eyeOpen:!1}),this._iy()}catch(e){this.digest({eyeOpen:!1})}}}).merge(n)})),define("1o/3b/series",["1h","./index"],((e,t,i)=>{let s,o,r;e("./index");let d=e("1h"),{applyStyle:l,View:a,dispatch:n}=d;l("h_",".gL{flex-basis:24px;color:#333}.gM{opacity:.5}.gM:hover{opacity:1}.gN{opacity:1;cursor:not-allowed;color:#bbb}");let{random:c}=Math,p=()=>"#"+("00000"+(16777216*c()|0).toString(16)).slice(-6);i.exports=a.extend({tmpl:(e,t,i,d,l,a)=>{let n,c,p,h,b,g=[],{colors:y,disabled:f,i18n:x,multi:_}=e;for(let e=y.length,r=0;r<e;r+=1){let e=0===r;b=[],p="1o/3b/index?color="+a(l,y[r],"a;."+r+".a:")+"&align=right",null!=(n=f)&&(p+="&disabled="+a(l,n,"a-")),b.push(t("div",{"mx5-owner":i,$:"colors,disabled",class:"cj","mx5-input":i+"\x1e_iM({index:"+r+"})","mx5-view":p})),h=[s||(s=t(0,"\ue604"))],c="bJ gL dF c3 cn gM",f&&(c+=" gN"),b.push(t("i",{title:x("jU"),"mx5-click":i+"\x1e_iP({index:"+r+"})",class:c},h)),y.length>1&&(h=[o||(o=t(0,"\ue6b3"))],c="bJ gL dF c3 cn gM",f&&(c+=" gN"),b.push(t("i",{title:x("jV"),"mx5-click":i+"\x1e_iO({index:"+r+"})",class:c},h))),c="cF cI",e||(c+=" cO"),g.push(t("div",{class:c},b))}return _&&(b=[r||(r=t(0,"\ue606"))],c="bJ c3",(f||y.length>9)&&(c+=" gN"),g.push(t("i",{title:x("jW"),"mx5-click":i+"\x1e_iN()",class:c},b))),t(i,0,g)},assign(e){this.set(e)},render(){this.digest()},"_iM<input>"(e){let t=this.get("colors"),{index:i}=e.params;t[i]=e.color,n(this.root,"change")},"_iN<click>"(){if(this.get("disabled"))return;let e=this.get("colors");if(e.length>9)return;let t=p();e.push(t),n(this.root,"change")},"_iO<click>"(e){if(this.get("disabled"))return;let t=this.get("colors"),{index:i}=e.params;t.splice(i,1),n(this.root,"change")},"_iP<click>"(e){if(this.get("disabled"))return;let t=this.get("colors"),{index:i}=e.params,s=p();t[i]=s,n(this.root,"change")}})})),define("1o/1p/index",["1h"],((e,t,i)=>{let s=e("1h"),{attach:o,detach:r}=s,d=window,l=document,a=e=>{(e=d.getSelection)&&e().removeAllRanges()},n=e=>e.preventDefault(),c=["pointermove"],p=["pointerup","pointercancel"],h=["keydown","wheel","fullscreenchange","selectstart"],b={passive:!1},g="_i2";i.exports={ctor(){let e=this;e.on("destroy",(()=>{e._i3()}))},_gs(e,t){t||(t=g);let i=e[t];return i||(e[t]=0),e[t]++,!i},_gt(e,t){t||(t=g);let i=e[t];return i&&e[t]--,1===i},_i4(e,t){delete e[t||g]},_i3(e){let t=this;if(t._i5){let i;for(i of c)r(l,i,t._i5);for(i of p)r(l,i,t._i6);for(i of h)r(l,i,n);r(d,"blur",t._i6),delete t._i5;let s=t._i7;s&&s(e)}},_ci(e,t,i){let s=this;if(s._i3(),e){let e;for(e of(a(),s._i7=i,s._i6=s._i3.bind(s),s._i5=e=>{t&&t(e)},c))o(l,e,s._i5);for(e of p)o(l,e,s._i6);for(e of h)o(l,e,n,b);o(d,"blur",s._i6)}},_ea(e,t){let i=l.elementFromPoint(e,t);for(;i&&3==i.nodeType;)i=i.parentNode;return i},_i8:a}})),define("1o/3a/index",["1h","../3i/index"],((e,t,i)=>{let s,o={class:"bJ hb"},r={class:"cA cB cr cw dC g7"},d={class:"bJ dF hb"},l=e("1h"),a=e("../3i/index"),{View:n,applyStyle:c,toMap:p,inside:h,node:b,dispatch:g,isFunction:y}=l;c("hi",".g0{min-width:50px;background-color:#fff;border:solid 1px #e6e6e6;border-radius:2px;height:22px;outline:0}.g1:focus,.g1:focus:hover{border-color:#fa742b}.g0:hover{border-color:#ccc}.g2{color:#333;padding:0 20px 0 3px}.g3{background-color:#f5f5f5}.g3:hover{border-color:#e6e6e6}.g3 .g2{cursor:not-allowed;color:#999}.g4{top:0;width:20px;color:#ccc}.g4::after{width:0;height:0;position:absolute;inset:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #ccc;content:'';display:block;margin:auto}.g5 .g4{transform:rotate(180deg)}.g5,.g5:hover{border-color:#fa742b}.g6{height:20px;line-height:21px}.g7{top:100%;left:-1px;right:-1px;margin-top:4px;border-radius:2px;z-index:300;border:1px solid #ccc;background-color:#fff}.g5 .g7{display:block}.g8{max-height:196px;padding:2px 0}.g9{padding:0 2px;margin:2px 0}.h_{padding:0 5px;height:20px;line-height:20px;border-radius:2px}.h_:hover{color:#333;background-color:#f0f0f0}.ha,.ha:active,.ha:focus,.ha:hover{color:#fff;background-color:#fa742b}.hb{padding:0 4px}"),i.exports=n.extend({tmpl:(e,t,i,l,a,n)=>{let c,p,h,b,g,y,f,x,_,{disabled:u,i18n:m,selectedText:k,selected:w,emptyText:v,selectedIcon:j,rList:K,list:R,textKey:J,valueKey:M,iconKey:L}=e;if(_=[],b=[],j&&(h=[t(0,j,1)],b.push(t("i",o,h))),b.push(t(0,m(k))),p="g6 cx cC",""!==w&&w!=v||(p+=" dy"),g=[t("span",{class:p},b)],s?g.push(s):g.push(s=t("span",{_:"a;",class:"ck cr dL dq g4"})),_.push(t("div",{class:"c3 cj cs g2","mx5-click":i+"\x1e_bV()",title:m(k)},g)),K){b=[];for(let e=R.length,s=0;s<e;s+=1){let e,o=R[s],r=o,l=o;J&&M&&(y="",r=m(o[J]),y+=" ",l=o[M],y+=" ",e=o[L]);let c=l+""==w+"";x=[],e&&(f=[t(0,e,1)],x.push(t("i",d,f))),x.push(t(0,r)),p="h_ cx dz cj c3 cC",c&&(p+=" ha"),h=[t("span",{"mx5-click":i+"\x1e_i9({item:'"+n(a,o,"a;."+s+".a:")+"'})",class:p},x)],b.push(t("li",{title:r,class:"dC g9"},h))}g=[t("ul",{class:"b6 g8",id:"_mx_list_"+i},b)],_.push(t("div",r,g))}return p="g0 cj cz cs",p+=u?" g3 dv":" g1",c=[t("div",{id:"_mx_dd_"+i,tabindex:!u&&0,class:p},_)],t(i,0,c)},init(){a._in(),this.on("destroy",(()=>{a._dZ(this),a._io()}))},assign(e){let{selected:t,textKey:i="",valueKey:s="",iconKey:o="",emptyText:r="",disabled:d,list:l}=e;l=y(l)?l(e.props):l||[],l=l.slice();let a=p(l,s);if(r)if(i&&s){if(!a[""]){let e={};e[i]=r,e[s]="",l.unshift(e),a[""]=e}}else a[r]||(l.unshift(r),a[r]=r);t||!r||i||s||(t=r),t&&a[t]||(t=a[t]||l[0],i&&s&&(t=t[s]));let n=i&&s?a[t][i]:t,c=o?a[t][o]:"";this.set({selected:t,selectedText:n,selectedIcon:c,list:l,iconKey:o,textKey:i,valueKey:s,emptyText:r,disabled:d})},render(){this.digest()},_iD(e){return h(e,this.root)},async _cj(){let e=this,t=b("_mx_dd_"+e.id);if(!t.classList.contains("g5")){t.classList.add("g5"),e.get("rList")||await e.digest({rList:!0}),t=b("_mx_list_"+e.id);let i=t.querySelector("li[active]");i&&i.scrollIntoViewIfNeeded&&i.scrollIntoViewIfNeeded(),a._iE(e)}},_ck(){let e=this,t=b("_mx_dd_"+e.id),{classList:i}=t;i.contains("g5")&&(i.remove("g5"),a._dZ(e))},"_bV<click>"(){let e=this,t=b("_mx_dd_"+e.id),{classList:i}=t;i.contains("g5")?e._ck():i.contains("g3")||e._cj()},"_i9<click>"(e){let t=this;t._ck();let i=t.get("valueKey"),s=t.get("textKey"),o=t.get("iconKey"),r=t.get("selected"),d=e.params.item,l=d,a=d,n="";s&&i&&(a=d[s],l=d[i],n=d[o]),r!==l&&(t.digest({selected:l,selectedIcon:n,selectedText:a}),g(t.root,"change",{item:d,value:i?d[i]:d,text:s?d[s]:d}))}})})),define("1o/3l/index",["1h","../1p/index"],((e,t,i)=>{let s,o={class:"dy hd"},r=e("1h"),d=e("../1p/index"),{State:l,View:a,applyStyle:n,dispatch:c,inside:p,mark:h}=r;n("hm",".hc{min-height:100px;border:solid 1px #e6e6e6;border-radius:2px}.hc:hover{border-color:#ccc}.hd{padding:10px}.he{border:solid 1px #e6e6e6;border-radius:2px;margin:2px;line-height:20px;height:20px}.he::after{content:' ';width:98%;margin:0 1%;height:2px;left:0;position:absolute}.hf{background:#f5f5f5;color:#999}.hf .he{background:#f5f5f5}.hf:hover{border-color:#e6e6e6}.hg-top::after{top:-3px;background:#e25305}.hg-bottom::after{bottom:-3px;background:#e25305}.hh{background:#fff;opacity:.4}.hi{background:rgba(250,116,43,.1)}.hj{text-decoration:line-through;color:#bd0303}");let b;i.exports=a.extend({tmpl:(e,t,i)=>{let r,d,l,a,n,{enter:c,disabled:p,fields:h,dragIndex:b,outside:g,index:y,onTop:f,i18n:x}=e;if(n=[],h&&h.length)for(let e=h.length,o=0;o<e;o+=1){let e=h[o];s?a=[s]:(l=[t(0,"\ue69c")],a=[s=t("span",{_:"a;",class:"bJ dF"},l)]),a.push(t(0,e.name)),d="he ci cs dF cC",o==b?(d+=" hh",g&&(d+=" hj")):o==y&&(d+=" hg-"+(f?"top":"bottom")),n.push(t("div",{draggable:!p&&"true","mx5-dragstart":i+"\x1e_ji({index:"+o+"})","mx5-dragover":i+"\x1e_jj({index:"+o+"})","mx5-dragend":i+"\x1e_i3()",title:e.name,class:d},a))}else a=[t(0,x("j7"))],n.push(t("div",o,a));return d="hc ci",c&&(d+=" hi"),p&&(d+=" hf dv"),h&&h.length||(d+=" cF cI"),r=[t("div",{"mx5-dragleave":i+"\x1e_je()","mx5-dragenter":i+"\x1e_jg()","mx5-contextmenu":i+"\x1e_eM()",class:d},n)],t(i,0,r)},init(){this.set({index:-1})},assign({data:e,disabled:t,max:i}){if(this.set({disabled:t,max:i}),this._j_=null,this._ja=null,this._jb=null,this._jc=null,e){let{url:t,fields:i,id:s}=e;t&&(this._j_=t),s&&(this._ja=s),i&&(this._jb=i,this.set({fields:i}))}this._jd=JSON.stringify([this._j_,this._ja,this._jb])},render(){this.digest()},_iQ(){let e=this._j_,t=this._jb,i=this._ja,s=JSON.stringify([e,i,t]);s!=this._jd&&(this._jd=s,t.length||(e="",i=""),c(this.root,"change",{bindField:{url:e,id:i,fields:t}}))},"_je<dragleave>"(e){!this.get("disabled")&&d._gt(this)&&this.digest({enter:!1,outside:!0,index:-1})},"_i3<dragend>"(){this._jf||this.digest({enter:!1,index:-1,dragIndex:-1})},"_jg<dragenter>"(e){if(!this.get("disabled")&&d._gs(this)){let t=this._jb,i=this.get("index"),s=this._jc,o=l.get("b4");if(o&&t.length&&-1==i||null!=s){let s;this.root.getBoundingClientRect().y+10<e.pageY?(i=t.length-1,s=0):(i=0,s=1),this.set({index:i,onTop:s})}this.digest({outside:!1,enter:null==s&&o})}},"_ji<dragstart>"(e){let{params:t,dataTransfer:i}=e;this.set({dragIndex:this._jc=t.index}),i.setData("text/plain","_jh"),b=this.id},"_jj<dragover>&{passive:false}"(e){if(this.get("disabled")||b&&b!=this.id)return;let t=this._jc;this._cq(e);let{eventTarget:i,params:s,pageY:o}=e,r=i.getBoundingClientRect(),d=r.top+r.height/2>o,l=s.index;d?l-1==t&&(l=t):l+1==t&&(l=t),this.digest({onTop:d,index:l})},"$doc<drop>&{passive:false}"(e){if(this._cq(e),this.get("disabled"))return;let t;d._i4(this),this._jf=1;let i=p(e.target,this.root),s=this.get("max")||-1;if(i){let e=l.get("b4"),i=this.get("index"),o=this.get("onTop");if(e){l.set({b4:null});let{url:r,field:d,id:a}=e,n=this._jb;this._ja!=a?(this._j_=r,n=[d],this._jb=n,this._ja=a,this.set({index:-1,fields:n}),t=1):(-1!=i?(-1!=s&&n.length>=s&&n.shift(),n.splice(i+(o?0:1),0,d),t=1):n.length||(-1!=s&&n.length>=s&&n.shift(),n.push(d),t=1),this.set({index:-1,fields:n}))}else if(-1!=i){let e=this._jc,s=this._jb,r=s[e];s.splice(i+(o?0:1),0,r),i<e?s.splice(e+1,1):s.splice(e,1),this.set({fields:s,index:-1}),t=1}}else{let e=this._jc;if(null!=e){let i=this._jb;i.splice(e,1),this.set({index:-1,fields:i}),t=1}}this._jc=null,this.digest({enter:!1,dragIndex:-1}),t&&this._iQ(),b=null;let o=h(this,"_jk");setTimeout((()=>{o()&&delete this._jf}),30)}})})),define("1o/3e/align",["1h"],((e,t,i)=>{let s,o,r,d=e("1h"),{View:l,dispatch:a}=d;i.exports=l.extend({tmpl:(e,t,i)=>{let d,l,a,n,{disabled:c,i18n:p,value:h,alignKey:b}=e;return a=[s||(s=t(0,"\ue687"))],l="cp dr co c3 bJ",c&&(l+=" dv dt"),"left"==h[b]&&(l+=" ds"),n=[t("li",{title:p("j8"),"mx5-click":i+"\x1e_hT({v:'left'})",class:l},a)],a=[o||(o=t(0,"\ue68a"))],l="cp dr co c3 bJ",c&&(l+=" dv dt"),"center"==h[b]&&(l+=" ds"),n.push(t("li",{title:p("j9"),"mx5-click":i+"\x1e_hT({v:'center'})",class:l},a)),a=[r||(r=t(0,"\ue686"))],l="cp dr co c3 bJ",c&&(l+=" dv dt"),"right"==h[b]&&(l+=" ds"),n.push(t("li",{title:p("k_"),"mx5-click":i+"\x1e_hT({v:'right'})",class:l},a)),l="b6 cz",c&&(l+=" du dv dt"),d=[t("ul",{class:l},n)],t(i,0,d)},assign(e){this.set(e)},render(){this.digest()},"_hT<click>"(e){let t=this;if(t.get("disabled"))return;let i=t.get("value"),{v:s}=e.params;i[t.get("alignKey")]=s,a(t.root,"input")}})})),define("1o/3e/style",["1h"],((e,t,i)=>{let s,o,r,d,l,a=e("1h"),{View:n,dispatch:c}=a;i.exports=n.extend({tmpl:(e,t,i,a,n,c,p)=>{let h,b,g,y,{disabled:f,shows:x,i18n:_,value:u,prefix:m}=e;return y=[],x&&!x.bold||(g=[s||(s=t(0,"\ue749"))],b="cp dr",f&&(b+=" dv dt"),b+=" co c3 bJ",u[`${m}Bold`]&&(b+=" ds"),y.push(t("li",{title:_("ka"),"mx5-click":i+"\x1e_hT({key:'"+p(`${m}Bold`)+"'})",class:b},g))),x&&!x.italic||(g=[o||(o=t(0,"\ue65f"))],b="cp dr",f&&(b+=" dv dt"),b+=" co c3 bJ",u[`${m}Italic`]&&(b+=" ds"),y.push(t("li",{title:_("kb"),"mx5-click":i+"\x1e_hT({key:'"+p(`${m}Italic`)+"'})",class:b},g))),x&&!x.underline||(g=[r||(r=t(0,"\ue62e"))],b="cp dr",f&&(b+=" dv dt"),b+=" co c3 bJ",u[`${m}Underline`]&&(b+=" ds"),y.push(t("li",{title:_("kc"),"mx5-click":i+"\x1e_hT({key:'"+p(`${m}Underline`)+"'})",class:b},g))),x&&!x.strike||(g=[d||(d=t(0,"\ue623"))],b="cp dr",f&&(b+=" dv dt"),b+=" co c3 bJ",u[`${m}Strike`]&&(b+=" ds"),y.push(t("li",{title:_("kd"),"mx5-click":i+"\x1e_hT({key:'"+p(`${m}Strike`)+"'})",class:b},g))),x&&!x.overline||(g=[l||(l=t(0,"\ue643"))],b="cp dr",f&&(b+=" dv dt"),b+=" co c3 bJ",u[`${m}Overline`]&&(b+=" ds"),y.push(t("li",{title:_("ke"),"mx5-click":i+"\x1e_hT({key:'"+p(`${m}Overline`)+"'})",class:b},g))),b="b6 cz",f&&(b+=" du dv dt"),h=[t("ul",{class:b},y)],t(i,0,h)},assign(e){e.prefix||(e.prefix="style"),this.set(e)},render(){this.digest()},"_hT<click>"(e){let t=this;if(t.get("disabled"))return;let i=t.get("value"),{key:s}=e.params,o=this.get("prefix");i[s]=!i[s],s==`${o}Underline`&&i[s]&&(i[`${o}Strike`]=!1,i[`${o}Overline`]=!1),s==`${o}Strike`&&i[s]&&(i[`${o}Underline`]=!1,i[`${o}Overline`]=!1),s==`${o}Overline`&&i[s]&&(i[`${o}Strike`]=!1,i[`${o}Underline`]=!1),t.digest({value:i}),c(t.root,"input")}})})),define("1o/3h/items",["1h"],((e,t,i)=>{let s,o,r,d,l,a,n,c,p={class:"cF cN dn"},h={class:"cn dk"},b={class:"cF cI cN"},g={class:"b4 c3 cF cI cl"},y={class:"dl"},f={value:"value"},x={checked:"checked"},_=e("1h"),{View:u,dispatch:m}=_;i.exports=u.extend({tmpl:(e,t,i)=>{let _,u,m,k,w=[],{items:v,disabled:j}=e;for(let e=v.length,c=e-1,y=0;y<e;y+=1){let e=v[y],K=y===c;u=[s||(s=t(0,"\ue6b3"))],_="bJ cd",_+=j?" dz dv":" dx c3",m=[t("span",{"mx5-click":!j&&i+"\x1e_jo({i:"+y+"})",title:"\u5220\u9664\u9009\u9879",class:_},u),o||(o=t(0,"\u9009\u9879\uff1a"))],k=[t("span",h,m),t("input",{class:"bN cQ",disabled:j,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_jl({i:"+y+",key:'text'})",value:e.text},1,f)],w.push(t("div",p,k)),r?k=[r]:(m=[t(0,"\u503c\uff1a")],k=[r=t("span",{_:"a;",class:"cn dk"},m)]),k.push(t("input",{class:"bN cQ",disabled:j,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_jl({i:"+y+",key:'value'})",value:e.value},1,f)),w.push(t("div",b,k)),d?k=[d]:(m=[t(0,"\u9009\u4e2d\uff1a")],k=[d=t("span",{_:"a:",class:"cn dk"},m)]),m=[t("input",{class:"cr do",type:"checkbox",checked:e.checked,disabled:j,"mx5-change":i+"\x1e_jm({i:"+y+",key:'checked'})"},1,x)],l?m.push(l):m.push(l=t("i",{_:"a-",class:"cs cz dp"})),k.push(t("label",g,m)),w.push(t("div",b,k)),a?k=[a]:(m=[t(0,"\u7981\u7528\uff1a")],k=[a=t("span",{_:"a+",class:"cn dk"},m)]),m=[t("input",{class:"cr do",type:"checkbox",checked:e.disabled,disabled:j,"mx5-change":i+"\x1e_jm({i:"+y+",key:'disabled'})"},1,x)],l?m.push(l):m.push(l=t("i",{_:"a-",class:"cs cz dp"})),k.push(t("label",g,m)),w.push(t("div",b,k)),K||(n?w.push(n):w.push(n=t("div",{_:"b_",class:"cD"})))}return m=[c||(c=t(0,"\u6dfb\u52a0\u9009\u9879"))],k=[t("button",{class:"bR bT c3 co cq",disabled:j,"mx5-click":i+"\x1e_jn()"},m)],w.push(t("div",y,k)),t(i,0,w)},assign({items:e,disabled:t,mutual:i}){this.set({disabled:t,items:e,mutual:i})},render(){this.digest()},"_jl<input>"(e){let{eventTarget:t,params:i}=e,s=t.value.trim(),{i:o,key:r}=i,d=this.get("items");d[o][r]=s,m(this.root,"change",{items:d})},"_jm<change>"(e){let{eventTarget:t,params:i}=e,s=t.checked,{i:o,key:r}=i,d=this.get("items"),l=d[o];l[r]=s;let a=this.get("mutual");if(s&&!a)for(let e of d)e!=l&&e.checked&&(e.checked=!1);m(this.root,"change",{items:d})},"_jn<click>"(){let e=this.get("items");e.push({text:"",value:"",disabled:!1,checked:!1}),m(this.root,"change",{items:e})},"_jo<click>"(e){let{i:t}=e.params,i=this.get("items");i.splice(t,1),m(this.root,"change",{items:i})}})})),define("1o/3g/code",["1h","../../24/format","./share","../34/index"],((e,t,i)=>{let s,o,r,d,l,a;e("../34/index");let n={class:"bY cz dZ"},c={class:"b0 b1 c0 cF cL ci dO dT"};e("./share");let p=e("1h"),h=e("../../24/format");i.exports=p.View.extend({tmpl:(e,t,i,p,h,b)=>{let g,y,f,{parts:x}=e;return g=s?[s]:[s=t("div",{_:"a;",class:"bW cL dU"})],o?g.push(o):(y=[t(0,'<h5 class="b5">\u81ea\u5b9a\u4e49\u51fd\u6570</h5>',1)],g.push(o=t("div",{_:"a:",class:"bU bV cL cM ci dV"},y))),f=[r||(r=t(0,"loading..."))],y=[t("div",{"mx5-owner":i,$:"parts",class:"hv",style:"width:848px;height:480px","mx5-cmchange":i+"\x1e_js()","mx5-view":"1o/34/index?value="+b(h,x[1],"a;")},f)],g.push(t("div",n,y)),f=[d||(d=t(0,"\u5e94\u7528"))],y=[t("button",{"mx5-click":i+"\x1e_cX()",class:"bR bT c3 co",type:"button"},f)],f=[l||(l=t(0,"\u53d6\u6d88"))],y.push(t("button",{"mx5-click":i+"\x1e_dQ()",class:"bR c3 cf co",type:"button"},f)),g.push(t("div",c,y)),a?g.push(a):g.push(a=t("div",{_:"a-",class:"bZ cL dS"})),t(i,0,g)},init(e){let t=this;t._ge=e.format,t._jp=e.defaultFx,t._cV=e.dialog,t._jq=e.done},render(){let e=h._jr(this._ge);e[1]||(e[1]=this._jp||"/*\n item\u662f\u5b8c\u6574\u7684\u5355\u6761\u6570\u636e\u5bf9\u8c61\n page\u662f\u5f53\u524d\u9875\u9762\u4f7f\u7528\u7684\u6570\u636e\u5217\u8868\n all\u662f\u6240\u6709\u6570\u636e\u5217\u8868\n \u53ef\u4ee5\u628a\u4e0b\u9762\u7684console\u524d\u7684\u6ce8\u91ca\u53bb\u6389\u67e5\u770b\u76f8\u5e94\u7684\u6570\u636e\n \u4e0d\u540c\u7684\u573a\u666f\u4e0b\u4f20\u9012\u53c2\u6570\u4e0d\u4e00\u6837\uff0cpage\u548call\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\u4e0d\u5b58\u5728\n*/\nfunction(item,page,all){\n //console.log(item,page,all);\n return item;\n}"),this.digest({parts:e})},"_js<cmchange>"(e){this.get("parts")[1]=e.value.trim()},"_cX<click>"(){this._cV.close();let e=this.get("parts");this._jq("custom:"+e[1])},"_dQ<click>"(){this._cV.close()}})})),define("1o/3g/fx",["1h","../2d/index","./share"],((e,t,i)=>{let s,o=e("1h"),r=e("../2d/index");e("./share");let{View:d,dispatch:l}=o;i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d,l,a,{disabled:n,text:c,format:p,clear:h}=e;return a=[],l=[t(0,"\u70b9\u51fb"+(p?"\u67e5\u770b\u6216\u7f16\u8f91":"\u7f16\u8f91")+"\u51fd\u6570")],d="cE cC",c||(d+=" dy"),a.push(t("div",{title:"\u70b9\u51fb"+(p?"\u67e5\u770b\u6216\u7f16\u8f91":"\u7f16\u8f91")+"\u51fd\u6570",class:d},l)),p&&0!==h&&(l=[s||(s=t(0,"\ue624"))],a.push(t("i",{class:"bJ hq","mx5-click":!n&&i+"\x1e\x1e_ju()",title:"\u6e05\u9664\u51fd\u6570"},l))),d="hk c3 cF cI",n&&(d+=" hr dv"),r=[t("div",{"mx5-click":!n&&i+"\x1e_jt()",title:null!=(o=c)&&o,class:d},a)],t(i,0,r)},assign(e){this.set(e)},render(){this.digest()},"_jt<click>"(e){if(e._d4)return;let t=this;t.mxDialog("1o/3g/code",{width:950,format:t.get("format"),defaultFx:t.get("defaultFx"),done(e){l(t.root,"change",{format:e})}})},"_ju<click>"(e){e._d4=1,l(this.root,"change",{format:""})}}).merge(r)})),define("1o/3g/index",["1h","../../24/format","../2d/index","./share"],((e,t,i)=>{let s,o=e("1h"),r=e("../../24/format"),d=e("../2d/index");e("./share");let{View:l,dispatch:a}=o;i.exports=l.extend({tmpl:(e,t,i)=>{let o,r,d,l,a,n,{disabled:c,text:p,format:h}=e;return n=[],l="",l+=p?" "+p+" ":" \u70b9\u51fb\u9009\u62e9\u663e\u793a\u683c\u5f0f ",a=[t(0,l)],d="cE cC",p&&!c||(d+=" dy"),n.push(t("div",{class:d},a)),h&&(a=[s||(s=t(0,"\ue624"))],n.push(t("i",{class:"bJ hq","mx5-click":!c&&i+"\x1e\x1e_ju()",title:"\u6e05\u9664\u683c\u5f0f"},a))),d="hk c3 cF cI",c&&(d+=" hr dv "),r=[t("div",{"mx5-click":!c&&i+"\x1e_jt()",title:null!=(o=p)&&o,class:d},n)],t(i,0,r)},assign(e){this.set(e)},render(){this.digest({text:r._jv(this.get("format"))})},"_jt<click>"(){let e=this;e.mxDialog("1o/3g/list",{width:950,format:e.get("format"),done(t){a(e.root,"change",{format:t})}})},"_ju<click>"(e){a(this.root,"change",{format:""})}}).merge(d)})),define("1o/3g/list",["1h","../../24/format","./share","../34/index"],((e,t,i)=>{let s,o,r,d,l,a;e("../34/index");let n={class:"bY cz dZ"},c={class:"cF hs"},p={class:"dY"},h={class:"cN cO dE dy"},b={class:"c1 cF"},g={class:"dy"},y={class:"b0 b1 c0 cF cL ci dO dT"};e("./share");let f=e("1h"),x=e("../../24/format");i.exports=f.View.extend({tmpl:(e,t,i,f,x,_,u)=>{let m,k,w,v,j,K,R,{list:J,parts:M}=e;m=s?[s]:[s=t("div",{_:"a;",class:"bW cL dU"})],o?m.push(o):(k=[t(0,'<h5 class="b5">\u663e\u793a\u683c\u5f0f</h5>',1)],m.push(o=t("div",{_:"a:",class:"bU bV cL cM ci dV"},k)));let L=0;k=[],j=[];for(let e=J.length,s=0;s<e;s+=1){let e=J[s];v=[t(0,e.title)],w="ht co c3 ",e.id==M[0]&&(L=s,w+=" hu"),j.push(t("div",{"mx5-click":e.id!=M[0]&&i+"\x1e_jy({to:'"+u(e.id)+"'})",class:w},v))}k.push(t("div",c,j));let S=J[L];if("custom"==S.id)j=[r||(r=t(0,"loading..."))],k.push(t("div",{"mx5-owner":i,$:"parts,list",class:"hv",style:"width:848px;height:425px","mx5-cmchange":i+"\x1e_js()","mx5-view":"1o/34/index?value="+_(x,M[1]||S.defaults,"a;."+L+".a:")},j));else for(let e=S.groups,s=e.length,o=0;o<s;o+=1){let s=e[o];v=[t(0,s.title)],j=[t("div",h,v)],v=[];for(let e=s.list,r=e.length,d=0;d<r;d+=1){let s=e[d];R=[],R.push(t(0,s.title.trim())),s.example&&(K=[t(0,"("+s.example+")")],R.push(t("span",g,K))),w="cs hl dA hm d3 hn ho cI c3",M[o+1]==s.format&&(w+=" hp"),v.push(t("div",{"mx5-click":i+"\x1e_jx({format:'"+u(s.format)+"',to:"+(o+1)+"})",class:w},R))}j.push(t("div",b,v)),k.push(t("div",p,j))}return m.push(t("div",n,k)),j=[d||(d=t(0,"\u5e94\u7528"))],k=[t("button",{"mx5-click":i+"\x1e_cX()",class:"bR bT c3 co",type:"button"},j)],j=[l||(l=t(0,"\u53d6\u6d88"))],k.push(t("button",{"mx5-click":i+"\x1e_dQ()",class:"bR c3 cf co",type:"button"},j)),m.push(t("div",y,k)),a?m.push(a):m.push(a=t("div",{_:"a-",class:"bZ cL dS"})),t(i,0,m)},init(e){let t=this;t._ge=e.format,t._cV=e.dialog,t._jq=e.done},render(){let e=x._jw(),t=x._jr(this._ge);t[0]||(t[0]=e[0].id),this.digest({list:e,parts:t})},"_jx<click>"(e){let{format:t,to:i}=e.params,s=this.get("parts");s[i]==t?s[i]="":s[i]=t,this.digest({parts:s})},"_js<cmchange>"(e){this.get("parts")[1]=e.value.trim()},"_jy<click>"(e){let{to:t}=e.params;this.digest({parts:[t]})},"_cX<click>"(){this._cV.close();let e=this.get("parts"),[t,...i]=e;for(let e=i.length;e--;)null==i[e]&&(i[e]="");this._jq(t+":"+i.join(""))},"_dQ<click>"(){this._cV.close()}})})),define("1o/3g/share",["1h"],(e=>{(0,e("1h").applyStyle)("hr",".hk{height:22px;padding-left:4px;border-radius:2px;border:1px solid #e6e6e6;background-color:#fff;color:#333;width:140px}.hk:hover{border-color:#ccc}.hl{height:30px}.hm{margin:2px}.hn{border-radius:2px}.ho{background-color:#f9f9f9;border:solid 1px transparent}.ho:hover,.hp{border:solid 1px #fa742b}.hp::after{content:' ';position:absolute;right:0;top:0;border-top:solid 8px #fa742b;border-left:solid 8px #0000;width:0;height:0}.hq{opacity:.2}.hq:hover{opacity:.5}.hr{background:#f5f5f5}.hr .hq{opacity:.1}.hr .hq:hover{opacity:.1}.hr:hover{border-color:#e6e6e6}.hs{margin-bottom:10px;border-bottom:solid 1px #fa742b}.ht{height:25px;line-height:25px;margin:0 5px;padding:0 4px;min-width:50px;margin-bottom:-1px;border:solid 1px transparent;border-bottom:none}.hu{border-radius:2px 2px 0 0;background:#fff;border-color:#fa742b;color:#fa742b}.hv{border-radius:2px;border:solid 1px #e6e6e6;cursor:text}.hv:focus-within{border-color:#fa742b}")})),define("1o/3m/operate",["1h","../../1g/1j","../../24/table","../38/coperate"],((e,t,i)=>{let s,o,r,d,l,a,n={class:"c1 cF cI cY"},c=e("1h"),p=e("../../1g/1j"),h=e("../../24/table");e("../38/coperate");let{View:b,dispatch:g}=c,{max:y}=Math,f={bLeft:!0,bTop:!0,bRight:!0,bBottom:!0};i.exports=b.extend({tmpl:(e,t,i)=>{let c,p,h,b,{disabled:g,topRow:y,i18n:f,bottomRow:x,deleteRow:_,deleteCol:u,splitH:m,splitV:k,mergeLeft:w,mergeRight:v,mergeTop:j,mergeBottom:K}=e;return h=[s||(s=t(0,"\ue618"))],p="bJ dJ gi c3 cN",!g&&y||(p+=" gj"),b=[t("i",{title:f("jF"),"mx5-click":!g&&y&&i+"\x1e_hU({to:'top'})",class:p},h)],h=[s||(s=t(0,"\ue618"))],p="bJ dJ gi c3 cK cN",!g&&x||(p+=" gj"),b.push(t("i",{title:f("jG"),"mx5-click":!g&&x&&i+"\x1e_hU()",class:p},h)),h=[o||(o=t(0,"\ue616"))],p="bJ dJ gi c3 cJ cN",g&&(p+=" gj"),b.push(t("i",{title:f("jH"),"mx5-click":!g&&i+"\x1e_hV({to:'left'})",class:p},h)),h=[o||(o=t(0,"\ue616"))],p="bJ dJ gi c3 cN",g&&(p+=" gj"),b.push(t("i",{title:f("jI"),"mx5-click":!g&&i+"\x1e_hV()",class:p},h)),h=[r||(r=t(0,"\ue62b"))],p="bJ dJ gi c3 cN",!g&&_||(p+=" gj"),b.push(t("i",{title:f("jJ"),"mx5-click":!g&&_&&i+"\x1e_il()",class:p},h)),h=[d||(d=t(0,"\ue62a"))],p="bJ dJ gi c3 cN",!g&&u||(p+=" gj"),b.push(t("i",{title:f("jK"),"mx5-click":!g&&u&&i+"\x1e_im()",class:p},h)),h=[l||(l=t(0,"\ue672"))],p="bJ dJ gi c3 cN",!g&&m||(p+=" gj"),b.push(t("i",{title:f("jL"),"mx5-click":!g&&m&&i+"\x1e_hZ({h:1})",class:p},h)),h=[l||(l=t(0,"\ue672"))],p="bJ dJ gi c3 cN cb",!g&&k||(p+=" gj"),b.push(t("i",{title:f("jM"),"mx5-click":!g&&k&&i+"\x1e_hZ({v:1})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN ca",!g&&w||(p+=" gj"),b.push(t("i",{title:f("jN"),"mx5-click":!g&&w&&i+"\x1e_hX({to:'left'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN",!g&&v||(p+=" gj"),b.push(t("i",{title:f("jO"),"mx5-click":!g&&v&&i+"\x1e_hX({to:'right'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN cc",!g&&j||(p+=" gj"),b.push(t("i",{title:f("jP"),"mx5-click":!g&&j&&i+"\x1e_hX({to:'top'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN cb",!g&&K||(p+=" gj"),b.push(t("i",{title:f("jQ"),"mx5-click":!g&&K&&i+"\x1e_hX({to:'bottom'})",class:p},h)),c=[t("div",n,b)],t(i,0,c)},assign(e){h.bJ(e.props,1);let t=(e=>{let{rows:t,focusRow:i,focusCol:s,_gn:o,_go:r}=e,d=!1,l=!1,a=!1,n=!1,c=!1,p=!1,h=!1,b=!1,g=!1,y=!1;if(i>-1&&s>-1){let e=t[i].cols[s],f=e._if-e._ig+1,x=e._g4-e._g3+1,_=-1,u=-1,m=-1,k=-1,w=0,v=0,j=0,K=0,R=0;for(let e of t)-1!=_&&v++,e.label?(-1==u&&(u=R),j++):e.total&&(-1==_&&(_=R),K++),-1==u&&w++,R++;m=u+j,k=_+K;let J=e._if<m||e._ig>m;b=J,y=J,h=b,g=J,d=f<o&&(w>1&&e._if<u&&f<w||j>1&&e._ig>=u&&f<j&&e._if<m||K>1&&e._ig>=_&&f<K&&e._if<k||v>1&&e._ig>=k&&f<v),l=x<r;let M=e._if+1,L=e._g4+1;for(let i=0;i<=M;i++)for(let s=0;s<=L;s++){let o=t[i];if(o){let t=o.cols[s];t&&t!=e&&(t._g3==e._g3&&t._g4==e._g4&&(t._if+1==e._ig?n=!0:e._if+1==t._ig&&(p=!0)),t._ig==e._ig&&t._if==e._if&&(t._g4+1==e._g3?a=!0:e._g4+1==t._g3&&(c=!0)))}}a=a&&b,c=c&&b,n=n&&(e._ig<u||e._ig>u&&e._if<m||e._ig>_&&e._if<k||e._ig>k),p=p&&(e._if<u-1||e._ig>=u&&e._if<m-1||e._ig>=_&&e._if<k-1||e._ig>k)}return{bJ:d,bK:l,bL:a,bM:n,bN:c,bO:p,_ih:g,_ii:y,_ij:h,_ik:b}})(e.props);this.set({props:e.props,disabled:e.disabled,splitH:t._ij,splitV:t._ik,bottomRow:t._ih,topRow:t._ii,deleteRow:t.bJ,deleteCol:t.bK,mergeLeft:t.bL,mergeTop:t.bM,mergeRight:t.bN,mergeBottom:t.bO})},render(){this.digest()},"_hU<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e=r[s].cols[o],d=e._g3,l="top"==t?s:e._if+1;h.bL(i,l,f,p.bK(30)),h.bJ(i),i.focusRow=l,e=r[l];for(let t of e.cols)if(t._g3>=d){i.focusCol=t._dt;break}g(this.root,"change",{rows:r})}},"_hV<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e=r[s].cols[o],d="left"==t?o:e._g4+1;if(h.bN(i,d,f,p.bK(150)),h.bJ(i),e=r[s],"left"!=t){for(let t of e.cols)if(t._g3>=d){i.focusCol=t._dt;break}}else i.focusCol=d;g(this.root,"change",{rows:r})}},"_il<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;-1!=t&&-1!=i&&(h.bM(e),h.bJ(e),e.focusCol=0,t>=e._gn&&(e.focusRow=e._gn-1),g(this.root,"change",{rows:s}))},"_im<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;-1!=t&&-1!=i&&(h.bO(e),h.bJ(e),e.focusCol=y(0,e.focusCol-1),g(this.root,"change",{rows:s}))},"_hX<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;-1!=s&&-1!=o&&(h.bP(i,t),h.bJ(i),g(this.root,"change",{rows:r}))},"_hZ<click>"(e){let t=this.get("props"),{focusRow:i,focusCol:s,rows:o}=t;if(-1!=i&&-1!=s){let{h:i}=e.params,s=p.bK(20);h.bQ(t,i,f,s,s),h.bJ(t),g(this.root,"change",{rows:o})}}})})),define("1o/3n/help",["1h","../3a/index","../39/index"],((e,t,i)=>{let s,o,r,d;e("../3a/index"),e("../39/index");let l={class:"cF cN dn"},a={class:"cn dk"},n={value:"value"},c=e("1h"),{View:p,dispatch:h}=c,b=[{text:"X\u8f74",value:"x"},{text:"Y\u8f74",value:"y"}];i.exports=p.extend({tmpl:(e,t,i,c,p,h)=>{let b,g,y,f,x=[],{data:_,disabled:u,lineTypes:m}=e;for(let e=_.length,d=0;d<e;d+=1){let e=_[d];g=[s||(s=t(0,"\ue6b3"))],b="bJ cd dG",b+=u?" dz dv":" dx c3",y=[t("span",{"mx5-click":!u&&i+"\x1e_jD({i:"+d+"})",title:"\u5220\u9664\u8f85\u52a9\u7ebf",class:b},g),o||(o=t(0,"\u8f85\u52a9\u7ebf\uff1a"))],f=[t("span",a,y),t("div",{"mx5-owner":i,$:"disabled,lineTypes",class:"cF cQ","mx5-change":i+"\x1e_jz({i:"+d+"})","mx5-view":"1o/3a/index?disabled="+h(p,u,"a;")+"&selected="+c(null!=e.x?"x":"y")+"&list="+h(p,m,"a:")+"&textKey=text&valueKey=value"})],x.push(t("div",l,f)),f=r?[r]:[r=t("span",{_:"a;",class:"cn dk"})],f.push(t("div",{"mx5-owner":i,$:"data",class:"bN cQ cs",disabled:u,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_jA({i:"+d+"})","mx5-view":"1o/39/index?value="+h(p,null!=e.x?e.x:e.y,"a-."+d+".a+")})),x.push(t("div",l,f)),f=r?[r]:[r=t("span",{_:"a;",class:"cn dk"})],f.push(t("input",{placeholder:"\u8f85\u52a9\u7ebf\u540d\u79f0",class:"bN",value:e.text,disabled:u,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_jB({i:"+d+"})"},1,n)),x.push(t("div",l,f))}return f=[d||(d=t(0,"\u6dfb\u52a0\u8f85\u52a9\u7ebf"))],x.push(t("button",{class:"bR bT c3 co cq",disabled:u,"mx5-click":i+"\x1e_jC()"},f)),t(i,0,x)},init(){this.set({lineTypes:b})},assign(e){let{data:t,disabled:i}=e;this.set({disabled:i,data:t})},render(){this.digest()},"_jz<change>"(e){this._fm(e);let{i:t}=e.params,i=this.get("data"),s=i[t];"x"==e.value?(s.x=s.y,delete s.y):(s.y=s.x,delete s.x),h(this.root,"change",{data:i})},"_jA<input>"(e){this._fm(e);let{i:t}=e.params,i=this.get("data"),s=i[t];null!=s.x?s.x=e.value:s.y=e.value,h(this.root,"change",{data:i})},"_jB<input>"(e){this._fm(e);let{i:t}=e.params,i=this.get("data");i[t].text=e.eventTarget.value,h(this.root,"change",{data:i})},"_jC<click>"(){let e=this.get("data");e.push({x:1,text:""}),h(this.root,"change",{data:e})},"_jD<click>"(e){let{i:t}=e.params,i=this.get("data");i.splice(t,1),h(this.root,"change",{data:i})}})})),define("1o/3n/index",["1h","../3b/index","../3a/index","../3o/index","../39/index"],((e,t,i)=>{let s,o,r,d,l,a,n,c,p,h,b,g;e("../3b/index"),e("../3a/index"),e("../3o/index"),e("../39/index");let y={class:"cF cN dn"},f={class:"cn dk"},x={class:"cF cI cN"},_={class:"b4 c3 cF cI cl"},u={value:"value"},m={checked:"checked"},k=e("1h"),{floor:w,random:v}=Math,{View:j,dispatch:K}=k,R=[{text:"\u7ebf",value:"interval"},{text:"\u6563\u70b9",value:"scatter"}],J=["d81e06","f4ea2a","1afa29","1296db","13227a","d4237a","707070","515151","2c2c2c","000000","ea986c","eeb174","f3ca7e","f9f28b","c8db8c","aad08f","87c38f","83c6c2","7dc5eb","87a7d6","8992c8","a686ba","bd8cbb","be8dbd","e89abe","e8989a","e16632","e98f36","efb336","f6ef37","afcd51","7cba59","36ab60","1baba8","17ace3","3f81c1","4f68b0","594d9c","82529d","a4579d","db649b","dd6572","d84e06","e0620d","ea9518","f4ea2a","8cbb1a","2ba515","0e932e","0c9890","1295db","0061b2","0061b0","004198","122179","88147f","d3227b","d6204b"],M=["x","sin(x)","cos(x)+5","sqrt(20-x*x)","x^3","x^4"];i.exports=j.extend({tmpl:(e,t,i,k,w,v)=>{let j,K,R,J,M=[],{data:L,disabled:S,lineTypes:X}=e;for(let e=L.length,g=e-1,V=0;V<e;V+=1){let e=L[V],Y=V===g;R=[],L.length>1&&(K=[s||(s=t(0,"\ue6b3"))],j="bJ cd dG",j+=S?" dz dv":" dx c3",R.push(t("span",{"mx5-click":!S&&i+"\x1e_jD({i:"+V+"})",title:"\u5220\u9664\u51fd\u6570",class:j},K))),R.push(o||(o=t(0,"\u51fd\u6570\uff1a"))),J=[t("span",f,R),t("textarea",{class:"bO cQ cT",disabled:S,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_ie({i:"+V+",key:'fn',native:'value'})",value:e.fn},0,u)],M.push(t("div",y,J)),r?J=[r]:(R=[t(0,"\u989c\u8272\uff1a")],J=[r=t("span",{_:"a;",class:"cn dk"},R)]),J.push(t("div",{"mx5-owner":i,$:"disabled,data",class:"cQ","mx5-input":i+"\x1e_ie({i:"+V+",key:'color',use:'color'})","mx5-view":"1o/3b/index?align=right&disabled="+v(w,S,"a;")+"&color="+v(w,e.color,"a:."+V+".a-")})),M.push(t("div",x,J)),d?J=[d]:(R=[t(0,"\u7ebf\u6761\u7c7b\u578b\uff1a")],J=[d=t("span",{_:"a:",class:"cn dk"},R)]),J.push(t("div",{"mx5-owner":i,$:"disabled,lineTypes",class:"cQ","mx5-change":i+"\x1e_ie({i:"+V+",key:'graphType',use:'value'})","mx5-view":"1o/3a/index?disabled="+v(w,S,"a;")+"&selected="+k(e.graphType)+"&list="+v(w,X,"a+")+"&textKey=text&valueKey=value"})),M.push(t("div",x,J)),l?J=[l]:(R=[t(0,"\u8bbe\u7f6e\u8303\u56f4\uff1a")],J=[l=t("span",{_:"a-",class:"cn dk"},R)]),R=[t("input",{class:"cr do",type:"checkbox",checked:null!=e.range,disabled:S,"mx5-change":i+"\x1e_jE({i:"+V+"})"},1,m)],a?R.push(a):R.push(a=t("i",{_:"a+",class:"cs cz dp"})),J.push(t("label",_,R)),M.push(t("div",x,J)),e.range&&(n?J=[n]:(R=[t(0,"\u53d6\u503c\u8303\u56f4\uff1a")],J=[n=t("span",{_:"b_",class:"cn dk"},R)]),J.push(t("div",{"mx5-owner":i,$:"disabled,data",class:"cQ","mx5-input":i+"\x1e_ie({i:"+V+",key:'range',use:'range'})","mx5-view":"1o/3o/index?disabled="+v(w,S,"a;")+"&value="+v(w,e.range,"a:."+V+".b_")})),M.push(t("div",x,J))),c?J=[c]:(R=[t(0,"\u8bbe\u7f6e\u53d6\u6837\uff1a")],J=[c=t("span",{_:"ba",class:"cn dk"},R)]),R=[t("input",{class:"cr do",type:"checkbox",checked:null!=e.nSamples,disabled:S,"mx5-change":i+"\x1e_jF({i:"+V+"})"},1,m)],a?R.push(a):R.push(a=t("i",{_:"a+",class:"cs cz dp"})),J.push(t("label",_,R)),M.push(t("div",x,J)),null!=e.nSamples&&(p?J=[p]:(R=[t(0,"\u53d6\u6837\uff1a")],J=[p=t("span",{_:"bb",class:"cn dk"},R)]),J.push(t("div",{"mx5-owner":i,$:"data",class:"bN cQ cs",disabled:S,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_ie({i:"+V+",key:'nSamples',use:'value'})","mx5-view":"1o/39/index?value="+v(w,e.nSamples,"a:."+V+".ba")+"&min=10"})),M.push(t("div",x,J))),h?J=[h]:(R=[t(0,"\u586b\u5145\uff1a")],J=[h=t("span",{_:"bc",class:"cn dk"},R)]),R=[t("input",{class:"cr do",type:"checkbox",checked:e.closed,disabled:S,"mx5-change":i+"\x1e_ie({i:"+V+",key:'closed',native:'checked'})"},1,m)],a?R.push(a):R.push(a=t("i",{_:"a+",class:"cs cz dp"})),J.push(t("label",_,R)),M.push(t("div",x,J)),Y||(b?M.push(b):M.push(b=t("div",{_:"bd",class:"cD"})))}return J=[g||(g=t(0,"\u6dfb\u52a0\u51fd\u6570"))],M.push(t("button",{class:"bR bT c3 co cq",disabled:S,"mx5-click":i+"\x1e_jC()"},J)),t(i,0,M)},init(){this.set({lineTypes:R})},assign(e){let{data:t,disabled:i}=e;this.set({disabled:i,data:t})},render(){this.digest()},"_ie<change,input>"(e){this._fm(e);let{i:t,native:i,key:s,use:o}=e.params,r=this.get("data"),d=r[t],l=i?e.eventTarget[i]:e[o];d[s]=l,K(this.root,"change",{data:r})},"_jE<change>"(e){this._fm(e);let{i:t}=e.params,i=this.get("data"),s=i[t];e.eventTarget.checked?s.range=[0,100]:delete s.range,K(this.root,"change",{data:i})},"_jF<change>"(e){this._fm(e);let{i:t}=e.params,i=this.get("data"),s=i[t];e.eventTarget.checked?s.nSamples=1e3:delete s.nSamples,K(this.root,"change",{data:i})},"_jC<click>"(){let e=this.get("data");e.push({color:"#"+J[w(v()*J.length)],fn:M[w(v()*M.length)],graphType:"interval",closed:!1}),K(this.root,"change",{data:e})},"_jD<click>"(e){let{i:t}=e.params,i=this.get("data");i.splice(t,1),K(this.root,"change",{data:i})}})})),define("1o/3k/content",["1h","../../1g/1j","../../1g/props","../../1g/1k","../../24/barcode","../../24/cell","../../24/table","../39/index","../3a/index","../36/index","../3b/index","../3e/style","../3f/index","../3g/index","../3g/fx"],((e,t,i)=>{let s;e("../39/index"),e("../3a/index"),e("../36/index"),e("../3b/index"),e("../3e/style"),e("../3f/index"),e("../3g/index"),e("../3g/fx");let o={class:"cF cI cN"},r={class:"cn dk"},d={class:"b4 c3 cF cI cl"},l={value:"value"},a={checked:"checked"},n=e("1h"),c=e("../../1g/1j"),p=e("../../1g/props"),h=e("../../1g/1k"),b=e("../../24/barcode"),g=e("../../24/cell"),y=e("../../24/table"),{config:f,View:x,dispatch:_,mix:u}=n,m=[{tip:"js",key:"type",type:p.bQ,items:[{text:"hj",value:""},{text:"iV",value:"text"},{text:"gO",value:"image"},{text:"dy",value:"barcode"},{text:"dW",value:"qrcode"}],omit:1,_fZ(e,t){let{focusRow:i,rows:s}=t;y.bJ(t,!0);let o=0,r=-1;for(let e of s)e.total&&(r=o),o++;return i!=r}},{tip:"jt",key:"type",type:p.bQ,items:[{text:"ju",value:"text"},{text:"j1",value:"sumpage"},{text:"j2",value:"sum"},{text:"j3",value:"acc"},{text:"j4",value:"avg"},{text:"j5",value:"avgpage"},{text:"j6",value:"avgacc"},{text:"jx",value:"custom"}],omit:0,_fZ(e,t){let{focusRow:i,rows:s}=t;y.bJ(t,!0);let o=0,r=-1;for(let e of s)e.total&&(r=o),o++;return i==r}},{tip:"jy",type:p.bN},{tip:"jz",key:"paddingTop",type:p.bJ,read:h.bM,write:h.bR,min:0,fixed:c.cy,step:c.bV,max:()=>c.bK(100)},{tip:"jA",key:"paddingRight",type:p.bJ,read:h.bM,write:h.bR,min:0,fixed:c.cy,step:c.bV,max:()=>c.bK(100)},{tip:"jB",key:"paddingBottom",type:p.bJ,read:h.bM,write:h.bR,min:0,fixed:c.cy,step:c.bV,max:()=>c.bK(100)},{tip:"jC",key:"paddingLeft",type:p.bJ,read:h.bM,write:h.bR,min:0,fixed:c.cy,step:c.bV,max:()=>c.bK(100)},{tip:"dD",key:"alpha",type:p.bJ,step:.1,fixed:1,min:0,max:1},{tip:"jD",key:"background",type:p.bK,clear:1},{tip:"jE",type:p.bS,key:"textContent",_fZ(e,t){let{focusRow:i,rows:s}=t;y.bJ(t,1);let o=0,r=-1;for(let e of s)e.total||e.data&&(r=o),o++;return null!=e.textFontsize&&i!=r&&"text"==e.type}},{tip:"dZ",type:p.bL,key:"textAutoReturn",_fZ(e,t){let{focusRow:i,rows:s}=t;y.bJ(t,!0);let o=0,r=-1,d=-1,l=-1;for(let e of s)e.total?r=o:e.data?d=o:e.label&&-1==l&&(l=o),o++;return null!=e.textFontsize&&(i==d||i>=l&&i<d||i==r)}},{tip:"dY",type:p.ce,key:"textFormat",_fZ(e,t){let{focusRow:i,rows:s}=t;y.bJ(t,!0);let o=0,r=-1,d=-1;for(let e of s)e.total?r=o:e.data&&(d=o),o++;return i==r&&"text"!=e.type&&"custom"!=e.type||"text"==e.type&&i==d}},{tip:"eD",type:p.cf,key:"textFormat",_fZ:e=>"custom"==e.type},{tip:"d1",key:"textFontsize",type:p.bJ,min:0,fixed:c.cy,step:c.bV,read:h.bM,write:h.bR,_fZ:e=>null!=e.textFontsize},{tip:"d2",key:"textFontfamily",type:p.bQ,items:c.cu,_fZ:e=>null!=e.textFontsize},{tip:"d3",key:"textLetterspacing",type:p.bJ,min:0,fixed:c.cy,step:c.bV,read:h.bM,write:h.bR,_fZ:e=>null!=e.textFontsize},{tip:"d5",key:"textForecolor",type:p.bK,_fZ:e=>null!=e.textFontsize},{tip:"dJ",type:p.bM,_fZ:e=>null!=e.textFontsize},{tip:"gQ",type:p.bP,key:"imageContent",_fZ(e,t){let{focusRow:i,rows:s}=t;y.bJ(t,!0);let o=0,r=-1,d=-1;for(let e of s)e.total?r=o:e.data&&(d=o),o++;return f("getImageUrl")&&"image"==e.type&&i!=r&&i!=d}},{tip:"gS",type:p.bL,key:"imageRotateX",_fZ:e=>"image"==e.type},{tip:"gT",type:p.bL,key:"imageRotateY",_fZ:e=>"image"==e.type},{tip:"dF",type:p.bO,key:"barcodeContent",_fZ(e,t){let{focusRow:i,rows:s}=t;y.bJ(t,!0);let o=0,r=-1,d=-1;for(let e of s)e.total?r=o:e.data&&(d=o),o++;return"barcode"==e.type&&i!=r&&i!=d}},{tip:"dH",key:"barcodeFormat",type:p.bQ,items:b._dn,_fZ:e=>"barcode"==e.type},{tip:"dI",key:"barcodeShowText",type:p.bL,_fZ:e=>"barcode"==e.type},{tip:"fq",key:"barcodeColor",type:p.bK,_fZ:e=>"barcode"==e.type},{tip:"dL",key:"barcodeLineWidth",type:p.bJ,read:h.bM,write:h.bR,min:1,max:8,_fZ:e=>"barcode"==e.type},{tip:"dF",type:p.bO,key:"qrcodeContent",_fZ(e,t){let{focusRow:i,rows:s}=t;y.bJ(t,!0);let o=0,r=-1,d=-1;for(let e of s)e.total?r=o:e.data&&(d=o),o++;return"qrcode"==e.type&&i!=r&&i!=d}}];i.exports=x.extend({tmpl:(e,t,i,n,c,p,h)=>{let b,g,y,f,x=[],{list:_,cell:u,props:m,i18n:k,ptype:w,disabled:v}=e;for(let e=_.length,j=0;j<e;j+=1){let e=_[j];if(!e._fZ||e._fZ(u,m)){f=[],g=[t(0,k(e.tip))],f.push(t("span",r,g));let _=u[e.key];e.read&&(_=e.read(_,u)),e.type==w.bJ?(y="1o/39/index?",null!=(b=e.min)&&(y+="min="+p(c,b,"a;."+j+".a:")+"&"),null!=(b=e.max)&&(y+="max="+p(c,b,"a;."+j+".a-")+"&"),null!=(b=e.step)&&(y+="step="+p(c,b,"a;."+j+".a+")+"&"),null!=(b=e.fixed)&&(y+="fixed="+p(c,b,"a;."+j+".b_")+"&"),y+="value="+p(c,_,"ba."+e.key+".bb"),f.push(t("div",{"mx5-owner":i,$:"cell,list",class:"bN cQ cs",disabled:v,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_ie({key:'"+h(e.key)+"',use:'value',write:'"+p(c,e.write,"a;."+j+".bc")+"'})","mx5-view":y}))):e.type==w.bQ?f.push(t("div",{"mx5-owner":i,$:"disabled,list",class:"cF cQ","mx5-change":i+"\x1e_ie({key:'"+h(e.key)+"',use:'value',omit:"+e.omit+"})","mx5-view":"1o/3a/index?disabled="+p(c,v,"bd")+"&selected="+n(_)+"&list="+p(c,e.items,"a;."+j+".be")+"&textKey=text&valueKey=value"})):e.type==w.bN?f.push(t("div",{"mx5-owner":i,$:"disabled,cell",class:"cF cQ","mx5-input":i+"\x1e_ie()","mx5-view":"1o/36/index?disabled="+p(c,v,"bd")+"&value="+p(c,u,"bf")})):e.type==w.bK?(y="1o/3b/index?",null!=(b=e.clear)&&(y+="clear="+p(c,b,"a;."+j+".bg")+"&"),y+="color="+p(c,_,"ba."+e.key+".bb")+"&align=right",null!=(b=v)&&(y+="&disabled="+p(c,b,"bd")),null!=(b=e.alpha)&&(y+="&alpha="+p(c,b,"a;."+j+".bh")),f.push(t("div",{"mx5-owner":i,$:"cell,list,disabled",class:"cQ","mx5-input":i+"\x1e_ie({key:'"+h(e.key)+"',use:'color'})","mx5-view":y}))):e.type==w.bM?f.push(t("div",{"mx5-owner":i,$:"disabled,cell",class:"cF cQ","mx5-input":i+"\x1e_ie({use:'_'})","mx5-view":"1o/3e/style?disabled="+p(c,v,"bd")+"&value="+p(c,u,"bf")+"&prefix=textStyle"})):e.type==w.bO?f.push(t("textarea",{class:"bO cQ cT",disabled:v,"mx5-input":i+"\x1e_ie({key:'"+h(e.key)+"',native:'value'})",value:_},0,l)):e.type==w.bS?f.push(t("input",{class:"bN cQ",value:_,disabled:v,"mx5-input":i+"\x1e_ie({key:'"+h(e.key)+"',native:'value'})"},1,l)):e.type==w.bL?(g=[t("input",{class:"cr do",type:"checkbox",checked:_,disabled:v,"mx5-change":i+"\x1e_ie({key:'"+h(e.key)+"',native:'checked'})"},1,a)],s?g.push(s):g.push(s=t("i",{_:"a;",class:"cs cz dp"})),f.push(t("label",d,g))):e.type==w.bP?f.push(t("div",{"mx5-owner":i,$:"disabled",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+h(e.key)+"',use:'src'})","mx5-view":"1o/3f/index?src="+n(_)+"&disabled="+p(c,v,"bd")})):e.type==w.ce?f.push(t("div",{"mx5-owner":i,$:"cell,list,disabled",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+h(e.key)+"',use:'format'})","mx5-view":"1o/3g/index?format="+p(c,_,"ba."+e.key+".bb")+"&disabled="+p(c,v,"bd")})):e.type==w.cf&&f.push(t("div",{"mx5-owner":i,$:"cell,list,disabled",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+h(e.key)+"',use:'format'})","mx5-view":"1o/3g/fx?format="+p(c,_,"ba."+e.key+".bb")+"&disabled="+p(c,v,"bd")})),x.push(t("div",o,f))}}return t(i,0,x)},init(){this.set({list:m,ptype:p})},assign(e){let{props:t,disabled:i}=e,{rows:s,focusRow:o,focusCol:r}=t;-1==o&&(o=0),-1==r&&(r=0);let d=s[o].cols[r];this.set({props:t,disabled:i,cell:d,rows:s,focusRow:o,focusCol:r})},render(){this.digest()},"_ie<input,change>"(e){let t=this.get("cell"),i=this.get("rows"),{key:s,use:o,write:r,native:d,omit:l}=e.params;if(o||d){let i=d?e.eventTarget[d]:e[o];if(r&&(i=r(i,t,e)),"type"==s){let e=t[s];if(e&&l)for(let i in t)i.startsWith(e)&&delete t[i];let o=g[i];o&&(u(t,o),t.textFontsize&&(t.textFontsize=c.bK(t.textFontsize))),"custom"!=i&&"custom"!=e||(t.textFormat="")}s&&(t[s]=i)}_(this.root,"change",{rows:i})}})})),define("1o/3k/operate",["1h","../../1g/1j","../../24/cell","../../24/table","../38/coperate"],((e,t,i)=>{let s,o,r,d,l,a,n={class:"c1 cF cI cY"},c=e("1h"),p=e("../../1g/1j"),h=e("../../24/cell"),b=e("../../24/table");e("../38/coperate");let{View:g,dispatch:y}=c,{max:f}=Math,x={bLeft:!0,bTop:!0,bRight:!0,bBottom:!0},_=["paddingBottom","paddingTop","paddingLeft","paddingRight","textFontsize"],u=()=>{let e={paddingBottom:5,paddingTop:5,paddingLeft:5,paddingRight:5,hpos:"flex-start",vpos:"flex-start",alpha:1,type:"text",...x,...h.text};for(let t of _)e[t]=p.bK(e[t]);return e};i.exports=g.extend({tmpl:(e,t,i)=>{let c,p,h,b,{disabled:g,topRow:y,i18n:f,bottomRow:x,deleteRow:_,deleteCol:u,splitH:m,splitV:k,mergeLeft:w,mergeRight:v,mergeTop:j,mergeBottom:K}=e;return h=[s||(s=t(0,"\ue618"))],p="bJ dJ gi c3 cN",!g&&y||(p+=" gj"),b=[t("i",{title:f("jF"),"mx5-click":!g&&y&&i+"\x1e_hU({to:'top'})",class:p},h)],h=[s||(s=t(0,"\ue618"))],p="bJ dJ gi c3 cK cN",!g&&x||(p+=" gj"),b.push(t("i",{title:f("jG"),"mx5-click":!g&&x&&i+"\x1e_hU()",class:p},h)),h=[o||(o=t(0,"\ue616"))],p="bJ dJ gi c3 cJ cN",g&&(p+=" gj"),b.push(t("i",{title:f("jH"),"mx5-click":!g&&i+"\x1e_hV({to:'left'})",class:p},h)),h=[o||(o=t(0,"\ue616"))],p="bJ dJ gi c3 cN",g&&(p+=" gj"),b.push(t("i",{title:f("jI"),"mx5-click":!g&&i+"\x1e_hV()",class:p},h)),h=[r||(r=t(0,"\ue62b"))],p="bJ dJ gi c3 cN",!g&&_||(p+=" gj"),b.push(t("i",{title:f("jJ"),"mx5-click":!g&&_&&i+"\x1e_il()",class:p},h)),h=[d||(d=t(0,"\ue62a"))],p="bJ dJ gi c3 cN",!g&&u||(p+=" gj"),b.push(t("i",{title:f("jK"),"mx5-click":!g&&u&&i+"\x1e_im()",class:p},h)),h=[l||(l=t(0,"\ue672"))],p="bJ dJ gi c3 cN",!g&&m||(p+=" gj"),b.push(t("i",{title:f("jL"),"mx5-click":!g&&m&&i+"\x1e_hZ({h:1})",class:p},h)),h=[l||(l=t(0,"\ue672"))],p="bJ dJ gi c3 cN cb",!g&&k||(p+=" gj"),b.push(t("i",{title:f("jM"),"mx5-click":!g&&k&&i+"\x1e_hZ({v:1})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN ca",!g&&w||(p+=" gj"),b.push(t("i",{title:f("jN"),"mx5-click":!g&&w&&i+"\x1e_hX({to:'left'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN",!g&&v||(p+=" gj"),b.push(t("i",{title:f("jO"),"mx5-click":!g&&v&&i+"\x1e_hX({to:'right'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN cc",!g&&j||(p+=" gj"),b.push(t("i",{title:f("jP"),"mx5-click":!g&&j&&i+"\x1e_hX({to:'top'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN cb",!g&&K||(p+=" gj"),b.push(t("i",{title:f("jQ"),"mx5-click":!g&&K&&i+"\x1e_hX({to:'bottom'})",class:p},h)),c=[t("div",n,b)],t(i,0,c)},assign(e){b.bJ(e.props,1);let t=(e=>{let{rows:t,focusRow:i,focusCol:s,_gn:o,_go:r}=e,d=!1,l=!1,a=!1,n=!1,c=!1,p=!1,h=!1,b=!1,g=!1,y=!1;if(i>-1&&s>-1){let e=t[i].cols[s],f=e._if-e._ig+1,x=e._g4-e._g3+1,_=-1,u=-1,m=-1,k=0,w=0,v=0,j=0;for(let e of t)-1!=_&&w++,e.label?(v||(u=j),v++):e.total&&(_=j),-1==u&&k++,j++;m=u+v,b=e._if<m||e._ig>_;let K=e._ig>_||e._if<m;y=K,h=b,g=K,d=f<o&&(k>1&&e._if<u&&f<k||v>1&&e._ig>=u&&f<v&&e._if<m||w>1&&e._ig>_&&f<w),l=x<r;let R=e._if+1,J=e._g4+1;for(let i=0;i<=R;i++)for(let s=0;s<=J;s++){let o=t[i];if(o){let t=o.cols[s];t&&t!=e&&(t._g3==e._g3&&t._g4==e._g4&&(t._if+1==e._ig?n=!0:e._if+1==t._ig&&(p=!0)),t._ig==e._ig&&t._if==e._if&&(t._g4+1==e._g3?a=!0:e._g4+1==t._g3&&(c=!0)))}}a=a&&b,c=c&&b,n=n&&(e._ig<u||e._ig>u&&e._if<m||e._ig>_+1),p=p&&(e._if<u-1||e._ig>=u&&e._if<m-1||e._ig>_)}return{bJ:d,bK:l,bL:a,bM:n,bN:c,bO:p,_ih:g,_ii:y,_ij:h,_ik:b}})(e.props);this.set({props:e.props,disabled:e.disabled,splitH:t._ij,splitV:t._ik,bottomRow:t._ih,topRow:t._ii,deleteRow:t.bJ,deleteCol:t.bK,mergeLeft:t.bL,mergeTop:t.bM,mergeRight:t.bN,mergeBottom:t.bO})},render(){this.digest()},"_hU<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e=r[s].cols[o],d=e._g3,l="top"==t?s:e._if+1;b.bL(i,l,u(),p.bK(30)),b.bJ(i),i.focusRow=l,e=r[l];for(let t of e.cols)if(t._g3>=d){i.focusCol=t._dt;break}y(this.root,"change",{rows:r})}},"_hV<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e=r[s].cols[o],d="left"==t?o:e._g4+1;if(b.bN(i,d,u(),p.bK(150)),b.bJ(i),e=r[s],"left"!=t){for(let t of e.cols)if(t._g3>=d){i.focusCol=t._dt;break}}else i.focusCol=d;y(this.root,"change",{rows:r})}},"_il<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;-1!=t&&-1!=i&&(b.bM(e),b.bJ(e),e.focusCol=0,t>=e._gn&&(e.focusRow=e._gn-1),y(this.root,"change",{rows:s}))},"_im<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;-1!=t&&-1!=i&&(b.bO(e),b.bJ(e),e.focusCol=f(0,e.focusCol-1),y(this.root,"change",{rows:s}))},"_hX<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;-1!=s&&-1!=o&&(b.bP(i,t),b.bJ(i),y(this.root,"change",{rows:r}))},"_hZ<click>"(e){let t=this.get("props"),{focusRow:i,focusCol:s,rows:o}=t;if(-1!=i&&-1!=s){let{h:i}=e.params,s=p.bK(20);b.bQ(t,i,u(),s,s),b.bJ(t),y(this.root,"change",{rows:o})}}})})),define("1o/28/index",["1h","../3i/index"],((e,t,i)=>{let s,o={class:"b6 c5 cz"},r={class:"bS cE"},d=e("1h"),l=e("../3i/index"),{node:a,View:n,applyStyle:c,inside:p,Vframe:h}=d;c("hA",".hw{z-index:3000;max-height:calc(100vh - 40px);max-width:calc(100vw - 40px);overflow:auto;background-color:#fff;border:solid 1px #e6e6e6;border-radius:2px;padding:4px;box-shadow:rgba(0,0,0,.06) 0 0 3px 2px}.hx{height:24px;border-radius:2px;padding:2px 8px 2px 4px}.hy{width:14px;height:14px}.hx:not(.hz):hover{background-color:#fed6c0}.hA{height:1px;background:#eee;margin:4px 0}.hz,.hz:hover{color:#ccc}.hz .hB{color:#e6e6e6}.hz .hy{color:#e6e6e6}"),i.exports=n.extend({tmpl:(e,t,i,d,l,a)=>{let n,c,p,h,b,g,{width:y,list:f,disabled:x}=e;b=[];for(let e=f.length,o=0;o<e;o+=1){let e=f[o];e.bar?s?b.push(s):b.push(s=t("li",{_:"a;",class:"hA"})):(h=[],p=[],null!=e.icon&&p.push(t(0,e.icon,1)),c="bJ cd hy dA dG dz",e.r180?c+=" ca":e.r90&&(c+=" cb"),h.push(t("i",{class:c},p)),p=[t(0,e.text)],h.push(t("b",r,p)),e.short&&(p=[t(0,e.short)],h.push(t("code",{class:"dF dy hB",title:"\u5feb\u6377\u952e:"+e.short},p))),c="cF cI hx c5",x[e.id]&&(c+=" hz dv"),b.push(t("li",{"mx5-click":!x[e.id]&&i+"\x1e_i9({item:'"+a(l,e,"a;."+o+".a:")+"'})",class:c},h)))}return g=[t("ul",o,b)],n=[t("div",{style:"width:"+y+"px;position:fixed;left:-10000px;top:-10000px",class:"cA cB hw",id:"_mx_cnt_"+i,"mx5-contextmenu":i+"\x1e_eM()"},g)],t(i,0,n)},init(){let e=this.root;l._in(),this.on("destroy",(()=>{l._dZ(this),l._io(),e.parentNode.removeChild(e)}))},assign(e){let t=this,i=e.width||200;t._cO=e.list,t._cx=i,t._jG=e.disabled||{},t._jH=e.picked},async render(e){let t=this;await t.digest({disabled:t._jG,list:t._cO,width:t._cx}),e&&this._cj(e)},_iD(e){return p(e,this.root)},_cj(e){let t=this;if(!t._jI){t._jI=1;let i=a("_mx_cnt_"+t.id),s=i.offsetWidth,o=i.offsetHeight,r=e.pageX+2-scrollX,d=e.pageY-scrollY,n=d+o+10,c=r+s+10,{innerHeight:p,innerWidth:h}=window;c>h&&(r-=s),n>p&&(d-=n-p+10),i.style.left=r+"px",i.style.top=d+"px",l._iE(t)}},_ck(){let e=this;if(e._jI){e._jI=0,a("_mx_cnt_"+e.id).style.left="-10000px",l._dZ(e)}},"_i9<click>"(e){this._ck();let t=this._jH;t&&t(e.params.item)}}).static({show(e,t,i,s){let o=a(i),r=o&&h.byNode(o);r?(r.invoke("assign",s),r.invoke("render",t)):(document.body.insertAdjacentHTML("beforeend",`<div class="bK" id="${i}"></div>`),r=e.owner.mount(a(i),"1o/28/index",s),r.invoke("_cj",t))}})})),define("1o/3i/index",["1h"],((e,t,i)=>{let s,o=e("1h"),{node:r,attach:d,detach:l}=o,a=0,n=[],c=["pointerdown","keyup","keydown"],p=document,h=window,b={capture:!1,passive:!0},g=e=>{for(let t=n.length;t--;){let i=n[t];if(i._jJ)n.splice(t,1);else{let t=i._jK;"resize"!=e.type&&"blur"!=e.type&&t._iD(e.target)||t._ck()}}},y=e=>{let t=n[e.id];t&&(t._jJ=1,delete n[e.id])};i.exports={_iE(e){y(e);let t={_jK:e};n.push(t),n[e.id]=t},_dZ:y,_in(){if(!a){s||(s=r("_rd_stage"));for(let e of c)d(p,e,g,b);d(h,"resize",g,b),d(h,"blur",g,b),d(h,"scroll",g,b),s&&d(s,"scroll",g,b)}a++},_io(){if(a>0&&(a--,!a)){for(let e of c)l(p,e,g,b);l(h,"resize",g,b),l(h,"blur",g,b),l(h,"scroll",g,b),s&&l(s,"scroll",g,b)}}}})),define("1o/3p/index",["1h"],((e,t,i)=>{let s,o,r,d={class:"cF cz"},l=e("1h"),{ceil:a,max:n,min:c}=Math,{View:p,applyStyle:h,dispatch:b}=l;h("hF",".hH{height:30px;min-width:40px;border-radius:2px;margin:0 2px}.hI:hover{background:#f0f0f0}.hJ,.hJ:hover{background:#ccc}"),i.exports=p.extend({tmpl:(e,t,i)=>{let l,a,n,c,p,{page:h,start:b,end:g,pages:y}=e;p=[],c=[s||(s=t(0,"\ue73a"))],a="bJ hH cF cI cZ c3 cb ",a+=1==h?"dv dt":"hI",n="",n+=1==h?"\u5df2\u7ecf\u662f\u9996\u9875\u4e86":"\u70b9\u51fb\u8df3\u8f6c\u5230"+(h-1)+"\u9875",p.push(t("div",{"mx5-click":h>1&&i+"\x1e_kc({page:"+(h-1)+"})",class:a,title:n},c)),b>1&&(c=[o||(o=t(0,"1"))],p.push(t("div",{class:"c3 cF cI cZ hH hI","mx5-click":i+"\x1e_kc({page:1})",title:"\u70b9\u51fb\u8df3\u8f6c\u52301\u9875"},c))),b>2&&(r?p.push(r):(c=[t(0,"...")],p.push(r=t("div",{_:"a;",class:"cF cI cZ dt dv hH"},c))));for(let e=b;e<=g;e++)c=[t(0,e)],a="hH cF cI cZ c3 ",a+=e==h?"hJ":"hI",p.push(t("div",{"mx5-click":e!=h&&i+"\x1e_kc({page:"+e+"})",title:e!=h&&"\u70b9\u51fb\u8df3\u8f6c\u5230"+e+"\u9875",class:a},c));return g+2<=y&&(r?p.push(r):(c=[t(0,"...")],p.push(r=t("div",{_:"a;",class:"cF cI cZ dt dv hH"},c)))),g<y&&(c=[t(0,y)],p.push(t("div",{class:"c3 cF cI cZ hH hI","mx5-click":i+"\x1e_kc({page:"+y+"})",title:"\u70b9\u51fb\u8df3\u8f6c\u5230"+y+"\u9875"},c))),c=[s||(s=t(0,"\ue73a"))],a="bJ hH cF cI cZ c3 cc ",a+=h==y?"dv dt":"hI",n="",n+=h==y?"\u5df2\u7ecf\u662f\u5c3e\u9875\u4e86":"\u70b9\u51fb\u8df3\u8f6c\u5230"+(1+h)+"\u9875",p.push(t("div",{"mx5-click":h<y&&i+"\x1e_kc({page:"+(h+1)+"})",class:a,title:n},c)),l=[t("div",d,p)],t(i,0,l)},assign(e){this.set(e)},render(){let e=this.get("total")||0,t=0|this.get("page")||1,i=this.get("size")||20,s=this.get("step")||9,o=a(e/i);t>o&&(t=o);let r,d=n(1,t-(s/2|0)),l=c(o,d+s-1);d=n(1,l-s+1),d<=2&&(r=3-d,l+r<o&&(l+=r)),l+2>o&&(r=2-(o-l),d-r>1&&(d-=r)),3==d&&(d-=1),l+2==o&&(l+=1),this.digest({start:d,end:l,page:t,pages:o})},"_kc<click>"(e){let{page:t}=e.params;this.set({page:t}),b(this.root,"change",{page:t}),this.render()}})})),define("1o/3f/index",["1h","../2d/index"],((e,t,i)=>{let s,o={class:"co dy hL"},r=e("1h"),d=e("../2d/index"),{View:l,applyStyle:a,dispatch:n}=r;a("hH",".hK{border:solid 1px #e6e6e6;margin:4px 0;border-radius:2px}.hK:hover{border-color:#ccc}.hL{line-height:92px}.hM{width:100px;margin:4px;border:1px solid #e6e6e6;border-radius:2px}.hM:hover{border-color:#fa742b}.hN{background-position:50%;background-repeat:no-repeat;background-size:contain}.hO{width:100px;margin:0 5px;height:25px}.hP{right:3px;top:2px;opacity:.2}.hP:hover{opacity:.5}.hQ{background:#f5f5f5}.hQ .hP{opacity:.1}.hQ .hP:hover{opacity:.1}.hQ:hover{border-color:#e6e6e6}.hR{margin-bottom:10px;border-bottom:solid 1px #fa742b}.hS{height:25px;line-height:25px;margin:0 5px;padding:0 4px;min-width:50px;margin-bottom:-1px;border:solid 1px transparent;border-bottom:none}.hT{border-radius:2px 2px 0 0;background:#fff;border-color:#fa742b;color:#fa742b}.hU{margin:100px}.hV{border-radius:2px;border:solid 1px #e6e6e6}.hV:hover{border-color:#ccc}"),i.exports=l.extend({tmpl:(e,t,i)=>{let r,d,l,a,n,{disabled:c,src:p,i18n:h}=e;return n=[],p?(l=[s||(s=t(0,"\ue624"))],a=[t("i",{class:"bJ cr hP","mx5-click":!c&&i+"\x1e1\x1e_kf()",title:h("kf")},l)],n.push(t("div",{class:"cj ck hN",style:"background-image:url('"+p+"')"},a))):(a=[t(0,h("kg"))],n.push(t("div",o,a))),d="hK ci c3 d3 cs cT",c&&(d+=" hQ dv"),r=[t("div",{"mx5-click":!c&&i+"\x1e_ke()",class:d},n)],t(i,0,r)},assign(e){this.set(e)},render(){this.digest()},"_ke<click>"(){let e=this;e.mxDialog("1o/3f/list",{width:1092,done(t){e._kd(t)}})},_kd(e){n(this.root,"change",e)},"_kf<click>"(e){this._fm(e),this._kd({src:"",width:0,height:0})}}).merge(d)})),define("1o/3f/list",["1h","../../1g/2b","../../1s/index","../2d/index","../23/index","../../1g/1j"],((e,t,i)=>{let s,o,r,d,l,a,n,c,p,h,b,g,y={class:"bU bV cF cI cL cM ci dV"},f={class:"b5"},x={class:"bY d0"},_={class:"co cv dH"},u={class:"cF hR"},m={class:"cf"},k={type:"button",class:"bR bT cs dA"},w={class:"cF hU"},v={class:"c1 cF"},j={class:"cC co hO"},K=e("1h"),R=e("../../1g/2b"),J=e("../../1s/index"),M=e("../2d/index"),L=e("../23/index"),S=e("../../1g/1j"),{View:X,mark:V,node:Y,config:F}=K,C={},T=e=>{let t=[];for(let i of e)i.type.startsWith("image/")&&t.push(i.getAsFile());return t};i.exports=X.extend({tmpl:(e,t,i,K,R,J,M)=>{let L,S,X,V,Y,F,{i18n:C,hl:T,error:z,list:B,current:A,uploadUrl:O,uploadError:N,uploading:P}=e;if(L=s?[s]:[s=t("div",{_:"a;",class:"bW cL dU"})],X=[],S=[t(0,C("ki"))],X.push(t("h5",f,S)),T&&(o?X.push(o):(S=[t(0,"\u5982\u4f55\u4e0d\u663e\u793a\u6216\u66f4\u6362\u56fe\u7247\u5e93\u63a5\u53e3?")],X.push(o=t("a",{_:"a:",class:"b7 cf",href:"//github.com/xinglie/report-designer/issues/27#issuecomment-942136811",rel:"noopener noreferrer",target:"_blank"},S)))),L.push(t("div",y,X)),X=[],z)S=[t(0,z.message)],X.push(t("div",_,S));else{S=[];for(let e=B.length,s=0;s<e;s+=1){Y=[t(0,B[s].title)],V="hS co c3",s==A&&(V+=" hT"),S.push(t("div",{"mx5-click":s!=A&&i+"\x1e_jy({to:"+s+"})",class:V},Y))}if(O&&(Y=[r||(r=t(0,"\u672c\u5730\u4e0a\u4f20"))],V="hS co c3","upload"==A&&(V+=" hT"),S.push(t("div",{"mx5-click":"upload"!=A&&i+"\x1e_jy({to:'upload'})",class:V},Y))),Y=[d||(d=t(0,"\u7f51\u7edc\u56fe\u7247"))],V="hS co c3","network"==A&&(V+=" hT"),S.push(t("div",{"mx5-click":"network"!=A&&i+"\x1e_jy({to:'network'})",class:V},Y)),X.push(t("div",u,S)),"upload"==A)S=[],N?(Y=[t(0,N)],l?Y.push(l):(F=[t(0,"github.io\u548cgitee.io\u73af\u5883\u4e0d\u652f\u6301\u4e0a\u4f20\uff0c\u8bf7\u5728\u672c\u673a\u6d4b\u8bd5")],Y.push(l=t("span",{_:"a-",class:"dy"},F))),S.push(t("div",m,Y)),Y=[a||(a=t(0,"\u518d\u6b21\u4e0a\u4f20"))],S.push(t("button",{type:"button",class:"bR bT ce cf","mx5-click":i+"\x1e_kj()"},Y))):P?S.push(n||(n=t(0,"\u6b63\u5728\u4e0a\u4f20..."))):(S.push(c||(c=t(0,"\u62d6\u62fd\u56fe\u7247\u4e0a\u4f20"))),p?S.push(p):(Y=[t(0,"/")],S.push(p=t("span",{_:"a+",class:"c_ cd"},Y))),S.push(h||(h=t(0,"\u7c98\u8d34\u4e0a\u4f20"))),p?S.push(p):(Y=[t(0,"/")],S.push(p=t("span",{_:"a+",class:"c_ cd"},Y))),Y=[b||(b=t(0,"\u70b9\u51fb\u4e0a\u4f20 ")),t("input",{type:"file",title:"\u70b9\u51fb\u4e0a\u4f20",class:"cr d9 di",accept:"image/*","mx5-change":i+"\x1e_kh()"},1)],S.push(t("button",k,Y))),X.push(t("div",{class:"cF cI cT cZ hU hV","mx5-drop":i+"\x1e_ki()"},S));else if("network"==A)S=[g||(g=t(0,"\u7f51\u7edc\u5730\u5740: ")),t("input",{placeholder:"\u8bf7\u7c98\u8d34/\u8f93\u5165\u7f51\u7edc\u56fe\u7247\u5730\u5740",class:"bM bN cE cf",id:"_rd_nw_"+i},1)],Y=[t(0,C("b5"))],S.push(t("button",{class:"bR bT cf","mx5-click":i+"\x1e_kk()"},Y)),X.push(t("div",w,S));else if(B[A]){S=[];for(let e=B[A].list,s=e.length,o=0;o<s;o+=1){let s=e[o];F=[t("div",{class:"ck hN",style:"background-image:url('"+s.src+"')"})],Y=[t("div",{class:"c3 cT d3 dA hM","mx5-click":i+"\x1e_dP({src:'"+M(s.src)+"'})"},F)],F=[t(0,s.title)],Y.push(t("div",j,F)),S.push(t("div",{title:s.title},Y))}X.push(t("div",v,S))}}return L.push(t("div",x,X)),t(i,0,L)},init(e){let t=this;t._cV=e.dialog,t._jq=e.done,t.set({uploadUrl:F("imageUploadUrl"),hl:S.b1}),t.on("destroy",(()=>{L.hide()}))},render(){let e=V(this,"_bQ");(new R).all("_eR",((t,i)=>{if(e()){let e=i.get("data",[]),s=0;e.length||(s="upload"),this.digest({error:t,current:s,list:e})}}))},"_dP<click>"(e){let t=this,i=new Image,s=t._jq,o=e.params.src,r=V(this,"_dP");L.show("\u6b63\u5728\u83b7\u53d6\u56fe\u7247\u5c3a\u5bf8..."),i.onerror=()=>{r()&&(L.hide(),t.alert(J("kh")))},i.onload=()=>{if(r()){L.hide();let e=i.width,r=i.height;s({src:o,width:e,height:r}),t._cV.close()}},i.src=o},"_jy<click>"(e){let{to:t}=e.params;this.digest({current:t})},"_dQ<click>"(){this._cV.close()},_kg(e){if(this.get("uploading"))return;this.digest({uploadError:"",uploading:!0});let t=this._jq,i=new R,s=new FormData;for(let t of e)s.append("images[]",t);i.save({name:"_eT",url:this.get("uploadUrl"),_eQ:1,_et:s},((e,i)=>{if(e)this.digest({uploading:!1,uploadError:e.message});else{let e=i.get("data",C);t({src:e.url,width:e.width,height:e.height}),this._cV.close()}}))},"_kh<change>"(e){let t=e.eventTarget.files;this._kg(t)},"_ki<drop>&{passive:false}"(e){let t,{dataTransfer:i}=e;this._cq(e),i&&i.items&&(t=T(i.items)),t&&t.length&&this._kg(t)},"_kj<click>"(){this.digest({uploadError:""})},"_kk<click>"(){let e=Y(`_rd_nw_${this.id}`),t=e.value.trim();if(t){let i=V(this,"_dP"),s=this._jq;L.show("\u6b63\u5728\u83b7\u53d6\u56fe\u7247\u5c3a\u5bf8...");let o=new Image;o.onload=()=>{i()&&(L.hide(),s({src:t,width:o.width,height:o.height}),this._cV.close())},o.onerror=()=>{i()&&(e.select(),L.show("\u65e0\u6cd5\u52a0\u8f7d\u56fe\u7247\uff0c\u8bf7\u68c0\u67e5\u5730\u5740\u540e\u91cd\u8bd5~",2e3))},o.src=t}else L.show("\u8bf7\u7c98\u8d34/\u8f93\u5165\u56fe\u7247\u5730\u5740~",2e3),e.focus()},"_kl<change>"(e){},"$doc<paste>"(e){if("upload"==this.get("current")){let t,i=e.clipboardData;i&&i.items&&(t=T(i.items)),t&&t.length&&this._kg(t)}}}).merge(M)})),define("1o/39/index",["1h"],((e,t,i)=>{let s=e("1h"),{node:o,View:r,applyStyle:d,has:l,mark:a,dispatch:n,isFunction:c}=s,p=Number.MAX_SAFE_INTEGER;d("hD",".hC{border:none;background:0 0;color:#333;padding:0 20px 0 0;font-size:100%}.hC:focus{outline:0}.hC:disabled{cursor:not-allowed;color:#999;background:#f5f5f5}.hD,.hE{width:20px;height:50%;border:2px solid #fff;border-radius:2px}.hD:hover,.hE:hover{background-color:#f0f0f0}.hE{top:1px}.hD{bottom:1px}.hF::after{width:0;height:0;position:absolute;inset:0;border-left:4px solid transparent;border-right:4px solid transparent;content:'';display:block;margin:auto}.hD:after{border-top:4px solid #ccc}.hE:after{border-bottom:4px solid #ccc}.hD.hG,.hE.hG{border-color:transparent}.hD.hG:hover,.hE.hG:hover{background-color:transparent}");let h=e=>e.shiftKey?1:e.metaKey||e.ctrlKey?2:0;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,{disabled:r}=e;return s=[t("input",{class:"cj ck cx hC",id:"_mx_ipt_"+i,"mx5-focusin":i+"\x1e_j1()","mx5-focusout":i+"\x1e_j3()","mx5-change":i+"\x1e_fn()","mx5-keydown":i+"\x1e_j9()",disabled:r,autocomplete:"off","mx5-input":i+"\x1e_ka()","mx5-wheel":i+"\x1e_k_()"},1)],o="hE dL cr hF cz c3 eb",r&&(o+=" hG dv "),s.push(t("span",{"mx5-click":i+"\x1e_jX({i:1})","mx5-pointerdown":i+"\x1e_j8({i:1})","mx5-contextmenu":i+"\x1e_eM()",class:o})),o="hD dL cr hF cz c3 eb",r&&(o+=" hG dv "),s.push(t("span",{"mx5-click":i+"\x1e_jX()","mx5-pointerdown":i+"\x1e_j8()","mx5-contextmenu":i+"\x1e_eM()",class:o})),t(i,0,s)},assign(e){let t=this,{root:i}=t;if(i.classList.contains("bP"))return t._jL=t._jU(e.value),!1;delete t._jL,c(e.max)&&(//!important callback with ops.props
- e.max=e.max(e.props)),c(e.min)&&(e.min=e.min(e.props)),c(e.fixed)&&(e.fixed=e.fixed()),c(e.step)&&(e.step=e.step()),t._jM=+e.step||1,t._jN=e.empty,t._jO=i.hasAttribute("disabled"),t._jP=l(e,"max")?+e.max:p,t._jQ=l(e,"min")?+e.min:-p,t._jR=+e.ratio||10,t._jS=+e.fixed||0,t._jT=t._jU(e.value)},async render(){let{root:e}=this,t=a(this,"_bQ");await this.digest({disabled:this._jO}),t()&&!e.classList.contains("bP")&&this._jV()},_jV(e){let t=this;e=void 0===e?void 0===t._jL?t._jT:t._jL:e,o("_mx_ipt_"+t.id).value=e},_jU(e){let t=this;if((e=+e)||0===e){let i=t._jP,s=t._jQ;e>i?e=i:e<s&&(e=s),e=+e.toFixed(t._jS)}return isNaN(e)?t._jN?"":0:e},_jW(e,t){let i=this;if(""!==e||!i._jN)return(e=i._jU(e))!==i._jT&&(t||i._jV(e),n(i.root,"input",{value:i._jT=e})),i._jT;n(i.root,"input",{value:i._jT=e})},_jX(e,t){let i=this,s=i._jT;""===s&&(s=0);let o=i._jM;if(t)if(1==t)o*=i._jR;else{let e=i._jS,t=Number((o/i._jR).toFixed(e));0!=t&&(o=t)}e?s+=o:s-=o,i._jW(s)},_jY(){let e=o("_mx_ipt_"+this.id);e&&(e.focus(),e.selectionStart=e.selectionEnd=e.value.length)},_j0(){let e=this;e.root.classList.add("bP"),l(e,"_jZ")||(e._jZ=e._jT)},"_j1<focusin>"(){this._j0()},"_j3<focusout>"(){let e=this;e._j2||(e.root.classList.remove("bP"),e._jV(),e._jZ!=e._jT&&n(e.root,"change",{value:e._jT}),delete e._jZ)},"_jX<click>"(e){let t=this;t._jO||t._j4||(t._jX(e.params.i,h(e)),t._jY())},"_j8<pointerdown>"(e){let t=this;if(!t._jO){t._j2=1,t._j0();let i=e.params.i,s=a(this,"_j5");t._j6=setTimeout((()=>{s()&&(t._j7=setInterval((()=>{s()&&(t._j4=1,t._jX(i,h(e)),t._jY())}),50))}),300)}},"_j9<keydown>&{passive:false}"(e){if("ArrowUp"==e.code||"ArrowDown"==e.code){this._cq(e),this._jX("ArrowUp"==e.code,h(e))}},"_k_<wheel>&{passive:false}"(e){if(this.root.classList.contains("bP")){this._cq(e);let t=e.deltaY;this._jX(t>0,h(e))}},"_ka<input>"(e){this._fm(e);let t=e.eventTarget;this._jW(t.value,1)},"$doc<pointerup>"(){let e=this;clearTimeout(e._j6),clearInterval(e._j7),delete e._j2;let t=a(this,"_kb");setTimeout((()=>{t()&&delete e._j4}),0)}})})),define("1o/1q/cursor",[],((e,t,i)=>{let s,o=document.body,r=o.style,d=o.classList;i.exports={_cj(e){let t=getComputedStyle(e);this._dh(t.cursor)},_dh(e){s=getComputedStyle(o).cursor,r.cursor=e,d.add("bL")},_ck(){r.cursor=s,d.remove("bL")}}})),define("1o/1q/select",["1h","../../1g/21"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/21"),{node:r,applyStyle:d,guid:l,config:a}=s;d("hL",".hW{color:#666}.hX{left:2px;top:-20px}.hY{left:-20px;top:2px}.hZ{top:-21px;left:22px;color:#999;white-space:nowrap}.h0{left:2px}");let n,c,p,h,b=l("_mx_select_"),g=()=>{let e=a("rootId");return r(e)||document.body};i.exports={_e_(){if(!r(b)){g().insertAdjacentHTML("beforeend",`<div id="${b}" class="dP ct cr bK"><div class="cr bJ hW" id="${b}_i"></div><div class="cr dF hZ" id="${b}_t"></div></div>`)}},_km(e){let t=r(b+"_i"),i=r(b+"_t");if("block"!=t.style.display){t.innerHTML=e.icon,t.style.display="block";let s=t.classList,r=i.classList;e._dd&o.b2?(s.remove("hY"),s.add("hX"),r.remove("h0")):(s.remove("hX"),s.add("hY"),r.add("h0"))}},_gW(e){let t=r(b+"_t");t.innerHTML=e,t.style.display="revert"},_cG(e,t,i,s){(()=>{if(!n){let e=g(),t=getComputedStyle(e);n=e.getBoundingClientRect(),c=r(b).style,p=parseInt(t.borderLeftWidth,10)||0,h=parseInt(t.borderTopWidth,10)||0}})(),c.left=e-n.x-p-scrollX+"px",c.top=t-n.y-h-scrollY+"px",c.width=i+"px",c.height=s+"px",c.display="revert"},_ck(){for(let e of[b,b+"_i",b+"_t"])r(e).style.display="none";n=null,c=null}}})),define("1o/1q/tip",["1h"],((e,t,i)=>{let s,o,r,d=e("1h"),{applyStyle:l,config:a,node:n}=d;l("hN",".h1{background:#fa742b;border-radius:2px;padding:2px 4px;color:#fff}");let c,p,h,b="cw",g=()=>{let e=a("rootId");return n(e)||document.body};i.exports={_df(e){s||(s=document.createElement("div"),s.className="cr bK dF dV h1 cw",g().appendChild(s),o=s.classList,r=s.style),s.innerHTML=e,o.contains(b)&&o.remove(b)},_dl(e,t){r&&((()=>{if(!c){let e=g();c=e.getBoundingClientRect();let t=getComputedStyle(e);p=parseInt(t.borderLeftWidth,10)||0,h=parseInt(t.borderTopWidth,10)||0}})(),r.left=e-c.x-p+10-scrollX+"px",r.top=t-c.y-h+15-scrollY+"px")},_ck(){o&&o.add(b),c=null}}})),define("1o/3o/index",["1h","../39/index"],((e,t,i)=>{let s;e("../39/index");let o={class:"cF"},r=e("1h"),{View:d,dispatch:l}=r;i.exports=d.extend({tmpl:(e,t,i,r,d,l)=>{let a,n,c,{disabled:p,value:h}=e;return c=[t("div",{"mx5-owner":i,$:"value",disabled:p,class:"bN cP cs","mx5-input":i+"\x1e_kn({i:0})","mx5-change":i+"\x1e_fn()","mx5-view":"1o/39/index?value="+l(d,h[0],"a;")})],s?c.push(s):(n=[t(0,"~")],c.push(s=t("span",{_:"a;",class:"c2 cE co"},n))),c.push(t("div",{"mx5-owner":i,$:"value",disabled:p,class:"bN cP cs","mx5-input":i+"\x1e_kn({i:1})","mx5-change":i+"\x1e_fn()","mx5-view":"1o/39/index?value="+l(d,h[1],"a:")})),a=[t("div",o,c)],t(i,0,a)},assign(e){e.value||(e.value=[]),this.set(e)},render(){this.digest()},"_kn<input>"(e){this._fm(e);let{i:t}=e.params,i=this.get("value");i[t]=e.value,l(this.root,"input",{range:i})}})})),define("1o/3q/kp",["1h","../../24/33","../../1g/1k","../../1g/1j","../39/index"],((e,t,i)=>{let s,o,r,d;e("../39/index");let l={class:"cF cI cN"},a={class:"cF cN"},n=e("1h"),c=e("../../24/33"),p=e("../../1g/1k"),h=e("../../1g/1j"),{has:b,View:g,dispatch:y,inside:f}=n,{random:x}=Math;i.exports=g.extend({tmpl:(e,t,i,n,c,p,h)=>{let b,g,y,f,x=[],{points:_,disabled:u,props:m,min:k,mod:w,step:v,fixed:j,read:K}=e,R=_.length;for(let e=_.length,d=0;d<e;d+=1){let e=_[d];y=[],R>(k||3)&&w&&(g=[s||(s=t(0,"\ue6b3"))],b="bJ cd dG",b+=u?" dy":" dx",y.push(t("span",{"mx5-click":!u&&i+"\x1e_ks({i:"+(d+1)+"})",title:"\u5220\u9664\u63a7\u5236\u70b9",class:b},g))),y.push(o||(o=t(0,"\u63a7\u5236\u70b9\uff1a"))),b="dk cn",u?b+=" dv":(b+=" c3",m._gQ==e&&(b+=" dm")),f=[t("span",{"mx5-pointerover":i+"\x1e_ku({key:'"+h(e)+"'})",class:b},y),t("div",{"mx5-owner":i,$:"step,fixed,props,points",class:"bN cQ cs",disabled:u,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_ko({i:"+(d+1)+",type:'X'})","mx5-view":"1o/39/index?step="+p(c,v,"a;")+"&fixed="+p(c,j,"a:")+"&value="+p(c,K(m[e+"X"]),"a-."+d+".a+")})],x.push(t("div",l,f)),f=r?[r]:[r=t("span",{_:"a;",class:"cn dk"})],f.push(t("div",{"mx5-owner":i,$:"step,fixed,props,points",class:"bN cQ cs",disabled:u,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_ko({i:"+(d+1)+",type:'Y'})","mx5-view":"1o/39/index?step="+p(c,v,"a;")+"&fixed="+p(c,j,"a:")+"&value="+p(c,K(m[e+"Y"]),"a-."+d+".b_")})),x.push(t("div",a,f))}return w&&(f=[d||(d=t(0,"\u6dfb\u52a0\u63a7\u5236\u70b9"))],x.push(t("button",{class:"bR bT c3 co cq",disabled:u,"mx5-click":i+"\x1e_kr()"},f))),t(i,0,x)},init(){this.set({fixed:h.cy,step:h.bV,read:p.bM})},assign(e){let{props:t,disabled:i,mod:s,min:o}=e;this.set({disabled:i,points:c._hI(t),props:t,mod:s,min:o})},render(){this.digest()},"_ko<input>"(e){let{i:t,type:i}=e.params;this.get("props")["ctrl"+t+i]=p.bR(e.value),y(this.root,"change")},"_kr<click>"(){let e=this.get("props"),t=c._hI(e),{x:i,y:s,width:o,height:r}=e,d=t.length+1,l=i+o*x(),a=s+r*x();e[`ctrl${d}X`]=l,e[`ctrl${d}Y`]=a,delete e._kp,delete e._kq,y(this.root,"change")},"_ks<click>"(e){let t=this.get("props"),{i:i}=e.params,s=i+1;for(;b(t,`ctrl${s}X`);)t[`ctrl${i}X`]=t[`ctrl${s}X`],t[`ctrl${i}Y`]=t[`ctrl${s}Y`],s++,i++;delete t[`ctrl${i}X`],delete t[`ctrl${i}Y`],delete t._kp,delete t._kq,y(this.root,"change")},"_ku<pointerover>"(e){if(!f(e.relatedTarget,e.eventTarget)){let{key:t}=e.params;this.get("props")._gQ=t,y(this.root,"change",{_kt:1})}}})})),define("1o/3q/mod",["1h","../../24/33","../../1g/1k","../../1g/1j","../39/index"],((e,t,i)=>{let s;e("../39/index");let o={class:"cF cI cN"},r=e("1h"),d=e("../../24/33"),l=e("../../1g/1k"),a=e("../../1g/1j"),{View:n,dispatch:c,inside:p}=r;i.exports=n.extend({tmpl:(e,t,i,r,d,l,a)=>{let n,c,p,h,b,g=[],{points:y,props:f,disabled:x,step:_,fixed:u,read:m}=e;for(let e=y.length,r=0;r<e;r+=1){let e=y[r];null!=f[e+"X"]&&(c=[s||(s=t(0,"\u8c03\u6574\u70b9\uff1a"))],n="dk cn",x?n+=" dv":(n+=" c3",f._hu==e&&(n+=" dm")),h=[t("span",{"mx5-pointerover":i+"\x1e_hx({key:'"+a(e)+"'})",class:n},c)],p="1o/39/index?","int"!=f[e+"Type"]&&(p+="min=0.00&"),"int"!=f[e+"Type"]&&(p+="max=1.00&"),p+="step="+l(d,"int"!=f[e+"Type"]?.01:_,"a;."+r+".a:")+"&fixed="+l(d,"int"!=f[e+"Type"]?2:u,"a;."+r+".a-")+"&value="+l(d,"int"!=f[e+"Type"]?f[e+"X"]:m(f[e+"X"]),"a;."+r+".a+"),h.push(t("div",{"mx5-owner":i,$:"props,points,step,fixed",class:"bN cQ cs",disabled:x,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_kw({i:"+(r+1)+",type:'X'})","mx5-view":p})),g.push(t("div",o,h))),null!=f[e+"Y"]&&(b="",null==f[e+"X"]&&(b+=" \u8c03\u6574\u70b9\uff1a "),c=[t(0,b)],n="dk cn",x?n+=" dv":(n+=" c3",f._hu==e&&null==f[e+"X"]&&(n+=" dm")),h=[t("span",{"mx5-pointerover":null==f[e+"X"]&&i+"\x1e_hx({key:'"+a(e)+"'})",class:n},c)],p="1o/39/index?","int"!=f[e+"Type"]&&(p+="min=0.00&"),"int"!=f[e+"Type"]&&(p+="max=1.00&"),p+="step="+l(d,"int"!=f[e+"Type"]?.01:_,"a;."+r+".a:")+"&fixed="+l(d,"int"!=f[e+"Type"]?2:u,"a;."+r+".a-")+"&value="+l(d,"int"!=f[e+"Type"]?f[e+"Y"]:m(f[e+"Y"]),"a;."+r+".b_"),h.push(t("div",{"mx5-owner":i,$:"props,points,step,fixed",class:"bN cQ cs",disabled:x,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_kw({i:"+(r+1)+",type:'Y'})","mx5-view":p})),g.push(t("div",o,h)))}return t(i,0,g)},assign(e){let{props:t,disabled:i}=e;this.set({disabled:i,fixed:a.cy,step:a.bV,read:l.bM,points:d._kv(t),props:t})},render(){this.digest()},"_kw<input>"(e){let{i:t,type:i}=e.params,s=this.get("props"),o=e.value;"int"==s["mod"+t+"Type"]&&(o=l.bR(o)),s["mod"+t+i]=o,c(this.root,"change")},"_hx<pointerover>"(e){if(!p(e.relatedTarget,e.eventTarget)){let{key:t}=e.params;this.get("props")._hu=t,c(this.root,"change",{_kt:1})}}})})),define("1o/38/border",["1h","./coperate"],((e,t,i)=>{let s,o={class:"c1 cF cI cY"},r=e("1h");e("./coperate");let{View:d,dispatch:l}=r;i.exports=d.extend({tmpl:(e,t,i)=>{let r,d,l,a,{cell:n,disabled:c,i18n:p}=e;return l=[s||(s=t(0,"\ue63d"))],d="bJ dJ gi c3 cc",n.bLeft&&!c&&(d+=" dm"),c&&(d+=" gj"),a=[t("i",{title:p(n.bLeft?"kj":"kk","\u5de6"),"mx5-click":!c&&i+"\x1e_kx({to:'Left'})",class:d},l)],l=[s||(s=t(0,"\ue63d"))],d="bJ dJ gi c3",n.bTop&&!c&&(d+=" dm"),c&&(d+=" gj"),a.push(t("i",{title:p(n.bLeft?"kj":"kk","\u4e0a"),"mx5-click":!c&&i+"\x1e_kx({to:'Top'})",class:d},l)),l=[s||(s=t(0,"\ue63d"))],d="cb bJ dJ gi c3",n.bRight&&!c&&(d+=" dm"),c&&(d+=" gj"),a.push(t("i",{title:p(n.bLeft?"kj":"kk","\u53f3"),"mx5-click":!c&&i+"\x1e_kx({to:'Right'})",class:d},l)),l=[s||(s=t(0,"\ue63d"))],d="ca bJ dJ gi c3",n.bBottom&&!c&&(d+=" dm"),c&&(d+=" gj"),a.push(t("i",{title:p(n.bLeft?"kj":"kk","\u4e0b"),"mx5-click":!c&&i+"\x1e_kx({to:'Bottom'})",class:d},l)),r=[t("div",o,a)],t(i,0,r)},assign(e){let{props:t,disabled:i}=e,{rows:s,focusRow:o,focusCol:r}=t;-1==o&&(o=0),-1==r&&(r=0);let d=s[o].cols[r];this.set({rows:s,cell:d,props:t,disabled:i})},render(){this.digest()},"_kx<click>"(e){let t=this.get("rows"),i=this.get("cell"),s="b"+e.params.to;i[s]=!i[s],l(this.root,"change",{rows:t})}})})),define("1o/38/content",["1h","../../1g/1j","../../1g/props","../../1g/1k","../../24/barcode","../../24/cell","../39/index","../3a/index","../36/index","../3b/index","../3e/style","../3f/index","../3g/index"],((e,t,i)=>{let s;e("../39/index"),e("../3a/index"),e("../36/index"),e("../3b/index"),e("../3e/style"),e("../3f/index"),e("../3g/index");let o={class:"cF cI cN"},r={class:"cn dk"},d={class:"b4 c3 cF cI cl"},l={value:"value"},a={checked:"checked"},n=e("1h"),c=e("../../1g/1j"),p=e("../../1g/props"),h=e("../../1g/1k"),b=e("../../24/barcode"),g=e("../../24/cell"),{View:y,config:f,dispatch:x,mix:_}=n,u=[{tip:"js",key:"type",type:p.bQ,items:[{text:"hj",value:""},{text:"iV",value:"text"},{text:"gO",value:"image"},{text:"dy",value:"barcode"},{text:"dW",value:"qrcode"}]},{tip:"jy",type:p.bN},{tip:"jz",key:"paddingTop",type:p.bJ,read:h.bM,write:h.bR,min:0,fixed:c.cy,step:c.bV,max:()=>c.bK(100)},{tip:"jA",key:"paddingRight",type:p.bJ,read:h.bM,write:h.bR,min:0,fixed:c.cy,step:c.bV,max:()=>c.bK(100)},{tip:"jB",key:"paddingBottom",type:p.bJ,read:h.bM,write:h.bR,min:0,fixed:c.cy,step:c.bV,max:()=>c.bK(100)},{tip:"jC",key:"paddingLeft",type:p.bJ,read:h.bM,write:h.bR,min:0,fixed:c.cy,step:c.bV,max:()=>c.bK(100)},{tip:"dD",key:"alpha",type:p.bJ,step:.1,fixed:1,min:0,max:1},{tip:"jD",key:"background",type:p.bK,clear:1},{tip:"jE",type:p.bS,key:"textContent",_fZ:e=>"text"==e.type&&!e.bindKey},{tip:"dZ",type:p.bL,key:"textAutoReturn",_fZ:e=>"text"==e.type},{tip:"dY",type:p.ce,key:"textFormat",_fZ:e=>"text"==e.type&&e.bindKey},{tip:"d1",key:"textFontsize",type:p.bJ,min:0,fixed:c.cy,step:c.bV,read:h.bM,write:h.bR,_fZ:e=>"text"==e.type},{tip:"d2",key:"textFontfamily",type:p.bQ,items:c.cu,_fZ:e=>"text"==e.type},{tip:"d3",key:"textLetterspacing",type:p.bJ,min:0,fixed:c.cy,step:c.bV,read:h.bM,write:h.bR,_fZ:e=>"text"==e.type},{tip:"d5",key:"textForecolor",type:p.bK,_fZ:e=>"text"==e.type},{tip:"dJ",type:p.bM,_fZ:e=>"text"==e.type},{tip:"gQ",type:p.bP,key:"imageContent",_fZ:e=>"image"==e.type&&f("getImageUrl")&&!e.bindKey},{tip:"gS",type:p.bL,key:"imageRotateX",_fZ:e=>"image"==e.type},{tip:"gT",type:p.bL,key:"imageRotateY",_fZ:e=>"image"==e.type},{tip:"dF",type:p.bO,key:"barcodeContent",_fZ:e=>"barcode"==e.type&&!e.bindKey},{tip:"dH",key:"barcodeFormat",type:p.bQ,items:b._dn,_fZ:e=>"barcode"==e.type},{tip:"dI",key:"barcodeShowText",type:p.bL,_fZ:e=>"barcode"==e.type},{tip:"fq",key:"barcodeColor",type:p.bK,_fZ:e=>"barcode"==e.type},{tip:"dL",key:"barcodeLineWidth",type:p.bJ,read:h.bM,write:h.bR,min:1,max:8,_fZ:e=>"barcode"==e.type},{tip:"dF",type:p.bO,key:"qrcodeContent",_fZ:e=>"qrcode"==e.type&&!e.bindKey}];i.exports=y.extend({tmpl:(e,t,i,n,c,p,h)=>{let b,g,y,f,x=[],{list:_,cell:u,i18n:m,ptype:k,disabled:w}=e;for(let e=_.length,v=0;v<e;v+=1){let e=_[v];if(!e._fZ||e._fZ(u)){f=[],g=[t(0,m(e.tip))],f.push(t("span",r,g));let _=u[e.key];e.read&&(_=e.read(_,u)),e.type==k.bJ?(y="1o/39/index?",null!=(b=e.min)&&(y+="min="+p(c,b,"a;."+v+".a:")+"&"),null!=(b=e.max)&&(y+="max="+p(c,b,"a;."+v+".a-")+"&"),null!=(b=e.step)&&(y+="step="+p(c,b,"a;."+v+".a+")+"&"),null!=(b=e.fixed)&&(y+="fixed="+p(c,b,"a;."+v+".b_")+"&"),y+="value="+p(c,_,"ba."+e.key+".bb"),f.push(t("div",{"mx5-owner":i,$:"cell,list",class:"bN cQ cs",disabled:w,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_ie({key:'"+h(e.key)+"',use:'value',write:'"+p(c,e.write,"a;."+v+".bc")+"'})","mx5-view":y}))):e.type==k.bQ?f.push(t("div",{"mx5-owner":i,$:"disabled,list",class:"cF cQ","mx5-change":i+"\x1e_ie({key:'"+h(e.key)+"',use:'value'})","mx5-view":"1o/3a/index?disabled="+p(c,w,"bd")+"&selected="+n(_)+"&list="+p(c,e.items,"a;."+v+".be")+"&textKey=text&valueKey=value"})):e.type==k.bN?f.push(t("div",{"mx5-owner":i,$:"disabled,cell",class:"cF cQ","mx5-input":i+"\x1e_ie()","mx5-view":"1o/36/index?disabled="+p(c,w,"bd")+"&value="+p(c,u,"bf")})):e.type==k.bK?(y="1o/3b/index?clear="+p(c,e.clear,"a;."+v+".bg")+"&color="+p(c,_,"ba."+e.key+".bb")+"&align=right",null!=(b=w)&&(y+="&disabled="+p(c,b,"bd")),null!=(b=e.alpha)&&(y+="&alpha="+p(c,b,"a;."+v+".bh")),f.push(t("div",{"mx5-owner":i,$:"list,cell,disabled",class:"cQ","mx5-input":i+"\x1e_ie({key:'"+h(e.key)+"',use:'color'})","mx5-view":y}))):e.type==k.bM?f.push(t("div",{"mx5-owner":i,$:"disabled,cell",class:"cF cQ","mx5-input":i+"\x1e_ie({use:'_'})","mx5-view":"1o/3e/style?disabled="+p(c,w,"bd")+"&value="+p(c,u,"bf")+"&prefix=textStyle"})):e.type==k.bO?f.push(t("textarea",{class:"bO cQ cT",disabled:w,"mx5-input":i+"\x1e_ie({key:'"+h(e.key)+"',native:'value'})",value:_},0,l)):e.type==k.bS?f.push(t("input",{class:"bN cQ",value:_,disabled:w,"mx5-input":i+"\x1e_ie({key:'"+h(e.key)+"',native:'value'})"},1,l)):e.type==k.bL?(g=[t("input",{class:"cr do",type:"checkbox",checked:_,disabled:w,"mx5-change":i+"\x1e_ie({key:'"+h(e.key)+"',native:'checked'})"},1,a)],s?g.push(s):g.push(s=t("i",{_:"a;",class:"cs cz dp"})),f.push(t("label",d,g))):e.type==k.bP?f.push(t("div",{"mx5-owner":i,$:"cell,list,disabled",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+h(e.key)+"',use:'src'})","mx5-view":"1o/3f/index?src="+p(c,_,"ba."+e.key+".bb")+"&disabled="+p(c,w,"bd")})):e.type==k.ce&&f.push(t("div",{"mx5-owner":i,$:"cell,list,disabled",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+h(e.key)+"',use:'format'})","mx5-view":"1o/3g/index?format="+p(c,_,"ba."+e.key+".bb")+"&disabled="+p(c,w,"bd")})),x.push(t("div",o,f))}}return t(i,0,x)},init(){this.set({list:u,ptype:p})},assign(e){let{props:t,disabled:i}=e,{rows:s,focusRow:o,focusCol:r}=t;-1==o&&(o=0),-1==r&&(r=0);let d=s[o].cols[r];this.set({props:t,disabled:i,cell:d,rows:s,focusRow:o,focusCol:r})},render(){this.digest()},"_ie<input,change>"(e){let t=this.get("cell"),i=this.get("rows"),{key:s,use:o,write:r,native:d}=e.params;if(o||d){let i=d?e.eventTarget[d]:e[o];if(r&&(i=r(i,t,e)),"type"==s){let e=t[s];if(e)for(let i in t)i.startsWith(e)&&delete t[i];let o=g[i];o&&(_(t,o),t.textFontsize&&(t.textFontsize=c.bK(t.textFontsize)))}s&&(t[s]=i)}x(this.root,"change",{rows:i})}})})),define("1o/38/coperate",["1h"],(e=>{(0,e("1h").applyStyle)("gX",".gi{border:solid 1px #e6e6e6;border-radius:2px;padding:2px;flex-basis:22%}.gi:hover{border-color:#fa742b}.gj{cursor:not-allowed;background:#f5f5f5;color:#999}.gj:hover{border-color:#e6e6e6}")})),define("1o/38/operate",["1h","../../1g/1j","../../24/cell","../../24/table","./coperate"],((e,t,i)=>{let s,o,r,d,l,a,n={class:"c1 cF cI cY"},c=e("1h"),p=e("../../1g/1j"),h=e("../../24/cell"),b=e("../../24/table");e("./coperate");let{View:g,dispatch:y}=c,{max:f}=Math,x={bLeft:!0,bTop:!0,bRight:!0,bBottom:!0},_=["paddingBottom","paddingTop","paddingLeft","paddingRight","textFontsize"],u=()=>{let e={paddingBottom:5,paddingTop:5,paddingLeft:5,paddingRight:5,hpos:"flex-start",vpos:"flex-start",alpha:1,type:"text",...x,...h.text};for(let t of _)e[t]=p.bK(e[t]);return e};i.exports=g.extend({tmpl:(e,t,i)=>{let c,p,h,b,{disabled:g,i18n:y,deleteRow:f,deleteCol:x,mergeLeft:_,mergeRight:u,mergeTop:m,mergeBottom:k}=e;return h=[s||(s=t(0,"\ue618"))],p="bJ dJ gi c3 cN",g&&(p+=" gj"),b=[t("i",{title:y("jF"),"mx5-click":!g&&i+"\x1e_hU({to:'top'})",class:p},h)],h=[s||(s=t(0,"\ue618"))],p="bJ dJ gi c3 cK cN",g&&(p+=" gj"),b.push(t("i",{title:y("jG"),"mx5-click":!g&&i+"\x1e_hU()",class:p},h)),h=[o||(o=t(0,"\ue616"))],p="bJ dJ gi c3 cJ cN",g&&(p+=" gj"),b.push(t("i",{title:y("jH"),"mx5-click":!g&&i+"\x1e_hV({to:'left'})",class:p},h)),h=[o||(o=t(0,"\ue616"))],p="bJ dJ gi c3 cN",g&&(p+=" gj"),b.push(t("i",{title:y("jI"),"mx5-click":!g&&i+"\x1e_hV()",class:p},h)),h=[r||(r=t(0,"\ue62b"))],p="bJ dJ gi c3 cN",!g&&f||(p+=" gj"),b.push(t("i",{title:y("jJ"),"mx5-click":!g&&f&&i+"\x1e_il()",class:p},h)),h=[d||(d=t(0,"\ue62a"))],p="bJ dJ gi c3 cN",!g&&x||(p+=" gj"),b.push(t("i",{title:y("jK"),"mx5-click":!g&&x&&i+"\x1e_im()",class:p},h)),h=[l||(l=t(0,"\ue672"))],p="bJ dJ gi c3 cN",g&&(p+=" gj"),b.push(t("i",{title:y("jL"),"mx5-click":!g&&i+"\x1e_hZ({h:1})",class:p},h)),h=[l||(l=t(0,"\ue672"))],p="bJ dJ gi c3 cN cb",g&&(p+=" gj"),b.push(t("i",{title:y("jM"),"mx5-click":!g&&i+"\x1e_hZ({v:1})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN ca",!g&&_||(p+=" gj"),b.push(t("i",{title:y("jN"),"mx5-click":!g&&_&&i+"\x1e_hX({to:'left'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN",!g&&u||(p+=" gj"),b.push(t("i",{title:y("jO"),"mx5-click":!g&&u&&i+"\x1e_hX({to:'right'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN cc",!g&&m||(p+=" gj"),b.push(t("i",{title:y("jP"),"mx5-click":!g&&m&&i+"\x1e_hX({to:'top'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN cb",!g&&k||(p+=" gj"),b.push(t("i",{title:y("jQ"),"mx5-click":!g&&k&&i+"\x1e_hX({to:'bottom'})",class:p},h)),c=[t("div",n,b)],t(i,0,c)},assign(e){b.bJ(e.props,1);let t=(e=>{let{rows:t,focusRow:i,focusCol:s,_gn:o,_go:r}=e,d=!1,l=!1,a=!1,n=!1,c=!1,p=!1;if(i>-1&&s>-1){let e=t[i].cols[s];d=e._if-e._ig+1<o,l=e._g4-e._g3+1<r;let h=e._if+1,b=e._g4+1;for(let i=0;i<=h;i++)for(let s=0;s<=b;s++){let o=t[i];if(o){let t=o.cols[s];t&&t!=e&&(t._g3==e._g3&&t._g4==e._g4&&(t._if+1==e._ig?n=!0:e._if+1==t._ig&&(p=!0)),t._ig==e._ig&&t._if==e._if&&(t._g4+1==e._g3?a=!0:e._g4+1==t._g3&&(c=!0)))}}}return{bJ:d,bK:l,bL:a,bM:n,bN:c,bO:p}})(e.props);this._ky=e.sub,this.set({props:e.props,disabled:e.disabled,deleteRow:t.bJ,deleteCol:t.bK,mergeLeft:t.bL,mergeTop:t.bM,mergeRight:t.bN,mergeBottom:t.bO})},render(){this.digest()},"_hU<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e,d=r[s].cols[o],l=d._g3,a="top"==t?s:d._if+1;e=this._ky?x:u(),b.bL(i,a,e,p.bK(30)),b.bJ(i),i.focusRow=a,d=r[a];for(let e of d.cols)if(e._g3>=l){i.focusCol=e._dt;break}y(this.root,"change",{rows:r})}},"_hV<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e,d=r[s].cols[o],l="left"==t?o:d._g4+1;if(e=this._ky?x:u(),b.bN(i,l,e,p.bK(150)),b.bJ(i),d=r[s],"left"!=t){for(let e of d.cols)if(e._g3>=l){i.focusCol=e._dt;break}}else i.focusCol=l;y(this.root,"change",{rows:r})}},"_il<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;-1!=t&&-1!=i&&(b.bM(e),b.bJ(e),e.focusCol=0,t>=e._gn&&(e.focusRow=e._gn-1),y(this.root,"change",{rows:s}))},"_im<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;-1!=t&&-1!=i&&(b.bO(e),b.bJ(e),e.focusCol=f(0,e.focusCol-1),y(this.root,"change",{rows:s}))},"_hX<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;-1!=s&&-1!=o&&(b.bP(i,t),b.bJ(i),y(this.root,"change",{rows:r}))},"_hZ<click>"(e){let t=this.get("props"),{focusRow:i,focusCol:s,rows:o}=t;if(-1!=i&&-1!=s){let i,{h:s}=e.params;i=this._ky?x:u();let r=p.bK(20);b.bQ(t,s,i,r,r),b.bJ(t),y(this.root,"change",{rows:o})}}})})),define("1o/38/share",["1h","../../24/table","../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../24/table"),r=e("../../1g/1j"),{View:d,dispatch:l}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,{disabled:r,canSetWidth:d,i18n:l,canSetHeight:a}=e;return o=[t(0,l("kl"))],s=[t("button",{class:"bR bT cj",disabled:r||!d,"mx5-click":i+"\x1e_kA({type:'x'})"},o)],o=[t(0,l("km"))],s.push(t("button",{class:"bR bT cj",disabled:r||!a,"mx5-click":i+"\x1e_kA({type:'y'})"},o)),t(i,0,s)},assign(e){let{props:t,disabled:i,dataPad:s}=e;o.bJ(t,!0);let r=o.bK(t),d=!1,l=!1,a=r._gp,n=r._gq,c=a[0];n[0];for(let e of a)if(e!=c){d=!0;break}let p,h,b,g,y,{rows:f,hideHead:x,hideLabel:_,hideTotal:u,hideFoot:m}=t,k=0;for(let e of f){if(e.label?b=1:e.total?g=1:g&&(y=1),e.label&&!_||e.data||e.total&&!u||!b&&!x||y&&!m)if(h){if(p!=n[k]){l=!0;break}}else p=n[k],h=1;k++}this._bK=t,this._kz=s||0,this.set({disabled:i,canSetWidth:d,canSetHeight:l})},render(){this.digest()},"_kA<click>"(e){let{type:t}=e.params,i=this._bK,{rows:s,hideHead:d,hideLabel:a,hideTotal:n,hideFoot:c}=i,p=o.bK(i),h=p._gp,b=p._gq,g=this._kz;if("x"==t){let e=0,t=0;for(let t of h)e+=t;t=r.bL(e/h.length);for(let e of s)for(let i of e.cols)i.width=(i.colspan||1)*t}else{let e=0,t=0,i=b.length;for(let t of b)e+=t;i+=g;let o,l,p,h=0,y=-1,f=-1,x=-1;for(let t of s)t.label||-1!=y?t.label?(-1==y&&(y=h),a&&(e-=b[h],i--)):t.data?(e+=g*b[h],-1==f&&(f=h)):t.total?(n&&(e-=b[h],i--),-1==x&&(x=h)):-1!=x&&c&&(e-=b[h],i--):d&&(e-=b[h],i--),h++;t=r.bL(e/i);for(let e of s)if(e.label?o=1:e.total?l=1:l&&(p=1),e.label&&!a||e.data||e.total&&!n||!o&&!d||p&&!c)for(let i of e.cols)i.height=(i.rowspan||1)*t}l(this.root,"change",{rows:s})}})})),define("1o/38/size",["1h","../../1g/1k","../../24/table","../../1g/1j","../../24/cell","../39/index"],((e,t,i)=>{let s,o;e("../39/index");let r={class:"cF cO"},d={class:"b4 c3 cF cI cl"},l={checked:"checked"},a=e("1h"),n=e("../../1g/1k"),c=e("../../24/table"),p=e("../../1g/1j"),h=e("../../24/cell"),{View:b,dispatch:g}=a;i.exports=b.extend({tmpl:(e,t,i,a,n,c)=>{let p,h,b=[],{disabled:g,step:y,fixed:f,minWidth:x,read:_,cell:u,minHeight:m,useAH:k}=e;return b.push(t("div",{"mx5-owner":i,$:"step,fixed,minWidth,cell",disabled:g,class:"bN cN cs","mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_h1()","mx5-view":"1o/39/index?step="+c(n,y,"a;")+"&fixed="+c(n,f,"a:")+"&min="+c(n,x,"a-")+"&value="+c(n,_(u.width),"a+")}),t("div",{"mx5-owner":i,$:"step,fixed,minHeight,cell",disabled:g,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_ic()",class:"bN cs","mx5-view":"1o/39/index?step="+c(n,y,"a;")+"&fixed="+c(n,f,"a:")+"&min="+c(n,m,"b_")+"&value="+c(n,_(u.height),"ba")})),k&&(h=[s||(s=t(0,"\u5185\u5bb9\u6491\u9ad8\uff1a"))],p=[t("input",{class:"cr do",type:"checkbox",checked:!u.fixedHeight,disabled:g,"mx5-change":i+"\x1e_kB()"},1,l)],o?p.push(o):p.push(o=t("i",{_:"a;",class:"cs cz dp"})),h.push(t("label",d,p)),b.push(t("div",r,h))),t(i,0,b)},init(){this.set({minWidth:()=>p.bK(h._hY),minHeight:()=>p.bK(h._h0),step:p.bV,fixed:p.cy,read:n.bM})},assign(e){let{props:t,disabled:i}=e,{rows:s,focusRow:o,focusCol:r}=t;-1==o&&(o=0),-1==r&&(r=0);let d=s[o].cols[r];this.set({useAH:e.ah,props:t,disabled:i,cell:d,rows:s,focusRow:o,focusCol:r})},render(){this.digest()},"_h1<input>"(e){this._fm(e);let t=this.get("props"),i=this.get("rows"),s=this.get("cell");s.width=n.bR(e.value),c.bR(t,s),g(this.root,"change",{rows:i})},"_ic<input>"(e){this._fm(e);let t=this.get("props"),i=this.get("rows"),s=this.get("cell");s.height=n.bR(e.value),c.bR(t,s),g(this.root,"change",{rows:i})},"_kB<change>"(e){let t=this.get("rows"),i=this.get("cell"),s=e.eventTarget.checked;i.fixedHeight=!s,g(this.root,"change",{rows:t})}})})),define("1o/38/style",["1h","../../1g/1j"],((e,t,i)=>{let s,o,r,d=e("1h"),l=e("../../1g/1j"),{View:a,dispatch:n,applyStyle:c,isNumber:p}=d;c("hZ",".h2{border:solid 1px #e6e6e6;border-radius:2px;height:140px;-ms-scroll-chaining:none;overscroll-behavior:contain}.h2:hover{border-color:#ccc}.h3{width:116px;margin:8px;opacity:.8;zoom:0.5}.h3:hover{opacity:1}.h4{background:#f5f5f5}.h4:hover{border-color:#e6e6e6}.h4 .h3{cursor:not-allowed;opacity:.4}.h4 .h3:hover{opacity:.4}");let h=[{cellAlign:"center",theadFontsize:16,theadRowHeight:40,theadForecolor:"#000000",tbodyRowHeight:30,tbodyFontsize:14,tbodyForecolor:"#000000",theadRowBackground:"#ffda95",tbodyEvenRowBackground:"#dde09d",tbodyOddRowBackground:"#f2f5cc",bordercolor:"#000000"},{cellAlign:"center",theadFontsize:16,theadRowHeight:40,theadForecolor:"#8391b7",tbodyRowHeight:30,tbodyFontsize:14,tbodyForecolor:"#8391b7",theadRowBackground:"#ffffff",tbodyEvenRowBackground:"#ffffff",tbodyOddRowBackground:"#d3dfed",bordercolor:"#becfe6"},{cellAlign:"center",theadFontsize:16,theadRowHeight:40,theadForecolor:"#c27f88",tbodyRowHeight:30,tbodyFontsize:14,tbodyForecolor:"#c27f88",theadRowBackground:"#ffffff",tbodyEvenRowBackground:"#ffffff",tbodyOddRowBackground:"#eed3d2",bordercolor:"#eccecd"},{cellAlign:"center",theadFontsize:16,theadRowHeight:40,theadForecolor:"#ffffff",tbodyRowHeight:30,tbodyFontsize:14,tbodyForecolor:"#000000",theadRowBackground:"#7f659f",tbodyEvenRowBackground:"#ffffff",tbodyOddRowBackground:"#ffffff",bordercolor:"#7f659f"},{cellAlign:"center",theadFontsize:14,theadRowHeight:30,theadForecolor:"#666666",tbodyRowHeight:20,tbodyFontsize:12,tbodyForecolor:"#666666",theadRowBackground:"#e9eaec",tbodyEvenRowBackground:"#f6f6f6",tbodyOddRowBackground:"#ffffff",bordercolor:"#dedede"},{cellAlign:"center",theadFontsize:14,theadRowHeight:30,theadForecolor:"#d1dbdb",tbodyRowHeight:20,tbodyFontsize:12,tbodyForecolor:"#d1dbdb",theadRowBackground:"#212121",tbodyEvenRowBackground:"#010101",tbodyOddRowBackground:"#404040",bordercolor:"#343434"}];i.exports=a.extend({tmpl:(e,t,i,d,l,a)=>{let n,c,p,h,b,g,y,f,x,{disabled:_,skins:u}=e;x=[];for(let e=u.length,d=0;d<e;d+=1){let e=u[d];h=[s||(s=t(0,"\u8868\u5934"))],b=[t("div",{class:"db",style:"height:"+e.theadRowHeight+"px;line-height:"+e.theadRowHeight+"px;font-size:"+e.theadFontsize+"px;color:"+e.theadForecolor},h)],p="border-color:"+e.bordercolor+";text-align:"+e.cellAlign+";",e.theadRowBackground&&(p+="background:"+e.theadRowBackground),g=[t("th",{class:"c7 d_",style:p},b)],y=[t("tr",0,g)],f=[t("thead",0,y)],h=[o||(o=t(0,"\u5947\u6570\u884c"))],b=[t("div",{class:"db",style:"height:"+e.tbodyRowHeight+"px;line-height:"+e.tbodyRowHeight+"px;font-size:"+e.tbodyFontsize+"px;color:"+e.tbodyForecolor},h)],g=[t("td",{class:"c7 d_",style:"text-align:"+e.cellAlign+";border-color:"+e.bordercolor+";background:"+e.tbodyOddRowBackground},b)],y=[t("tr",0,g)],h=[r||(r=t(0,"\u5076\u6570\u884c"))],b=[t("div",{class:"db",style:"height:"+e.tbodyRowHeight+"px;line-height:"+e.tbodyRowHeight+"px;font-size:"+e.tbodyFontsize+"px;color:"+e.tbodyForecolor},h)],g=[t("td",{class:"c7 d_",style:"text-align:"+e.cellAlign+";border-color:"+e.bordercolor+";background:"+e.tbodyEvenRowBackground},b)],y.push(t("tr",0,g)),f.push(t("tbody",0,y)),x.push(t("table",{class:"c3 c9 cp h3",style:"border-color:"+e.bordercolor,"mx5-click":!_&&i+"\x1e_kC({skin:'"+a(l,e,"a;."+d+".a:")+"'})"},f))}return c="h2 dD ci cA cB",_&&(c+=" h4 dv"),n=[t("div",{class:c},x)],t(i,0,n)},assign(e){this.set(e)},render(){this.digest({skins:h})},"_kC<click>"(e){let{skin:t}=e.params,i={};for(let e in t){let s=t[e];p(s)&&(s=l.bK(s)),i[e]=s}n(this.root,"change",{skin:i})}})})),define("1o/1r/index",["1h"],((e,t,i)=>{let s,o,r=e("1h"),{toTry:d}=r,l=e=>setTimeout(e,16),a=clearTimeout,n=requestAnimationFrame||l,c=cancelAnimationFrame||a,p=Date.now,h=[],b=[];i.exports={_b9(e,t){h.push({i:e||15,f:t,n:p()}),(()=>{if(!s){let e=()=>{for(let e,t,i=0;i<h.length;i++)e=h[i],e.r?h.splice(i--,1):(t=p(),t-e.n>=e.i&&(e.n=t,d(e.f)));h.length?s=n(e):(c(s),s=0)};s=n(e)}})()},_b8(e){for(let t,i=0;i<h.length;i++)if(t=h[i],!t.r&&t.f==e){t.r=1,t.f="";break}},_eg(e,t){b.push({i:e||15,f:t,n:p()}),(()=>{if(!o){let e=()=>{for(let e,t,i=0;i<b.length;i++)e=b[i],e.r?b.splice(i--,1):(t=p(),t-e.n>=e.i&&(e.n=t,d(e.f)));b.length?o=l(e):(a(o),o=0)};o=l(e)}})()},_ed(e){for(let t,i=0;i<b.length;i++)if(t=b[i],!t.r&&t.f==e){t.r=1,t.f="";break}}}})),define("1o/23/index",["1h"],((e,t,i)=>{let s=e("1h"),{applyStyle:o,guid:r,node:d}=s;o("h1",".h5{position:fixed;border-radius:5px;background:#0008;left:50%;top:50%;padding:6px;color:#fff;min-width:15%;text-align:center;transform:translate(-50%,-50%);z-index:2000}");let l,a=r("_mx_toast_");i.exports={show(e,t){let i=d(a);i||(i=document.createElement("div"),i.id=a,i.className="h5 bK",document.body.appendChild(i)),i.style.display="block",i.innerHTML=e,clearTimeout(l),t&&(l=setTimeout((()=>{this.hide()}),t))},hide(){clearTimeout(l);let e=d(a);e&&(e.style.display="none")}}})),define("1o/3d/content",["1h","../../1g/1j","../../1g/props","../../1g/1k","../../24/barcode","../../24/cell","../../24/table","../39/index","../3a/index","../36/index","../3e/align","../3b/index","../3e/style","../3f/index","../3g/index","../3g/fx","../3h/items"],((e,t,i)=>{let s,o;e("../39/index"),e("../3a/index"),e("../36/index"),e("../3e/align"),e("../3b/index"),e("../3e/style"),e("../3f/index"),e("../3g/index"),e("../3g/fx"),e("../3h/items");let r={class:"cF cI cN"},d={class:"cn dk"},l={class:"b4 c3 cF cI cl"},a={value:"value"},n={checked:"checked"},c=e("1h"),p=e("../../1g/1j"),h=e("../../1g/props"),b=e("../../1g/1k"),g=e("../../24/barcode"),y=e("../../24/cell"),f=e("../../24/table"),{View:x,dispatch:_,config:u,mix:m}=c,k=[{tip:"js",key:"type",type:h.bQ,items:[{text:"hj",value:""},{text:"iV",value:"text"},{text:"gO",value:"image"},{text:"dy",value:"barcode"},{text:"dW",value:"qrcode"},{text:"gm",value:"input"},{text:"gi",value:"dropdown"}],omit:1,_fZ(e,t){let{focusRow:i,rows:s}=t;f.bJ(t,!0);let o=0,r=-1;for(let e of s)e.total&&(r=o),o++;return i!=r}},{tip:"jt",key:"type",type:h.bQ,items:[{text:"ju",value:"text"},{text:"jv",value:"sum"},{text:"jw",value:"avg"},{text:"jx",value:"custom"}],omit:0,_fZ(e,t){let{focusRow:i,rows:s}=t;f.bJ(t,!0);let o=0,r=-1;for(let e of s)e.total&&(r=o),o++;return i==r}},{tip:"jy",type:h.bN,_fZ:e=>"input"!=e.type&&"dropdown"!=e.type},{tip:"gq",key:"inputTextAlign",type:h.ci,_fZ:e=>"input"==e.type},{tip:"jz",key:"paddingTop",type:h.bJ,read:b.bM,write:b.bR,min:0,fixed:p.cy,step:p.bV,max:()=>p.bK(100)},{tip:"jA",key:"paddingRight",type:h.bJ,read:b.bM,write:b.bR,min:0,fixed:p.cy,step:p.bV,max:()=>p.bK(100)},{tip:"jB",key:"paddingBottom",type:h.bJ,read:b.bM,write:b.bR,min:0,fixed:p.cy,step:p.bV,max:()=>p.bK(100)},{tip:"jC",key:"paddingLeft",type:h.bJ,read:b.bM,write:b.bR,min:0,fixed:p.cy,step:p.bV,max:()=>p.bK(100)},{tip:"dD",key:"alpha",type:h.bJ,step:.1,fixed:1,min:0,max:1},{tip:"jD",key:"background",type:h.bK,clear:1},{tip:"jE",type:h.bS,key:"textContent",_fZ:(e,t)=>(f.bJ(t,1),null!=e.textFontsize&&"text"==e.type)},{tip:"dY",type:h.ce,key:"textFormat",_fZ(e,t){let{focusRow:i,rows:s}=t;f.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.total){r=o;break}o++}return i==r&&("sum"==e.type||"avg"==e.type)}},{tip:"eD",type:h.cf,key:"textFormat",_fZ:e=>"custom"==e.type},{tip:"d1",key:"textFontsize",type:h.bJ,min:0,fixed:p.cy,step:p.bV,read:b.bM,write:b.bR,_fZ:e=>null!=e.textFontsize},{tip:"d2",key:"textFontfamily",type:h.bQ,items:p.cu,_fZ:e=>null!=e.textFontsize},{tip:"d3",key:"textLetterspacing",type:h.bJ,min:0,fixed:p.cy,step:p.bV,read:b.bM,write:b.bR,_fZ:e=>null!=e.textFontsize},{tip:"d5",key:"textForecolor",type:h.bK,_fZ:e=>null!=e.textFontsize},{tip:"dJ",type:h.bM,_fZ:e=>null!=e.textFontsize},{tip:"gQ",type:h.bP,key:"imageContent",_fZ:e=>u("getImageUrl")&&"image"==e.type},{tip:"gS",type:h.bL,key:"imageRotateX",_fZ:e=>"image"==e.type},{tip:"gT",type:h.bL,key:"imageRotateY",_fZ:e=>"image"==e.type},{tip:"dF",type:h.bO,key:"barcodeContent",_fZ:e=>"barcode"==e.type},{tip:"dH",key:"barcodeFormat",type:h.bQ,items:g._dn,_fZ:e=>"barcode"==e.type},{tip:"dI",key:"barcodeShowText",type:h.bL,_fZ:e=>"barcode"==e.type},{tip:"fq",key:"barcodeColor",type:h.bK,_fZ:e=>"barcode"==e.type},{tip:"dL",key:"barcodeLineWidth",type:h.bJ,read:b.bM,write:b.bR,min:1,max:8,_fZ:e=>"barcode"==e.type},{tip:"dF",type:h.bO,key:"qrcodeContent",_fZ:e=>"qrcode"==e.type},{tip:"gn",key:"inputPlaceholder",type:h.bS,_fZ:e=>"input"==e.type},{tip:"go",key:"inputText",type:({inputMultiline:e})=>e?h.bO:h.bS,_hc:1,_fZ:e=>"input"==e.type},{tip:"gj",key:"inputMarkAs",type:h.bS,_fZ:e=>"input"==e.type},{tip:"gk",key:"inputClassName",type:h.bS,_fZ:e=>"input"==e.type},{tip:"f2",key:"inputName",type:h.bS,_fZ:e=>"input"==e.type},{tip:"gp",key:"inputMultiline",type:h.bL,_fZ:e=>"input"==e.type},{tip:"d1",key:"inputFontsize",type:h.bJ,min:0,fixed:p.cy,step:p.bV,read:b.bM,write:b.bR,_fZ:e=>"input"==e.type},{tip:"d2",key:"inputFontfamily",type:h.bQ,items:p.cu,_fZ:e=>"input"==e.type},{tip:"d3",key:"inputLetterspacing",type:h.bJ,min:0,fixed:p.cy,step:p.bV,read:b.bM,write:b.bR,_fZ:e=>"input"==e.type},{tip:"d5",key:"inputForecolor",type:h.bK,_fZ:e=>"input"==e.type},{tip:"gj",key:"dropdownMarkAs",type:h.bS,_fZ:e=>"dropdown"==e.type},{tip:"gk",key:"dropdownClassName",type:h.bS,_fZ:e=>"dropdown"==e.type},{tip:"f2",key:"dropdownName",type:h.bS,_fZ:e=>"dropdown"==e.type},{tip:"d1",key:"dropdownFontsize",type:h.bJ,min:0,fixed:p.cy,step:p.bV,read:b.bM,write:b.bR,_fZ:e=>"dropdown"==e.type},{tip:"d2",key:"dropdownFontfamily",type:h.bQ,items:p.cu,_fZ:e=>"dropdown"==e.type},{tip:"d3",key:"dropdownLetterspacing",type:h.bJ,min:0,fixed:p.cy,step:p.bV,read:b.bM,write:b.bR,_fZ:e=>"dropdown"==e.type},{tip:"d5",key:"dropdownForecolor",type:h.bK,_fZ:e=>"dropdown"==e.type},{tip:"gl",key:"dropdownMultipleSelect",type:h.bL,_fZ:e=>"dropdown"==e.type,write(e,t){if(!e){let e,{dropdownItems:i}=t;for(let t of i)t.checked&&(e?t.checked=!1:e=1);e||(i[0].checked=!0)}return e}},{type:h.c_,_fZ:e=>"dropdown"==e.type},{key:"dropdownItems",type:h.ck,mutual:e=>e.dropdownMultipleSelect,_fZ:e=>"dropdown"==e.type}];i.exports=x.extend({tmpl:(e,t,i,c,p,h,b)=>{let g,y,f,x,_=[],{list:u,cell:m,props:k,ptype:w,i18n:v,disabled:j}=e;for(let e=u.length,K=0;K<e;K+=1){let e=u[K];if(!e._fZ||e._fZ(m,k))if(e.type==w.c_)s?_.push(s):_.push(s=t("div",{_:"a;",class:"cD"}));else{x=[],e.tip&&(y=[t(0,v(e.tip))],x.push(t("span",d,y)));let s=m[e.key];e.read&&(s=e.read(s,m));let u=e.type;e._hc&&(u=u(m,k)),u==w.bJ?(f="1o/39/index?",null!=(g=e.min)&&(f+="min="+h(p,g,"a;."+K+".a:")+"&"),null!=(g=e.max)&&(f+="max="+h(p,g,"a;."+K+".a-")+"&"),null!=(g=e.step)&&(f+="step="+h(p,g,"a;."+K+".a+")+"&"),null!=(g=e.fixed)&&(f+="fixed="+h(p,g,"a;."+K+".b_")+"&"),f+="value="+h(p,s,"ba."+e.key+".bb"),x.push(t("div",{"mx5-owner":i,$:"cell,list",class:"bN cQ cs",disabled:j,"mx5-change":i+"\x1e_fn()","mx5-input":i+"\x1e_ie({key:'"+b(e.key)+"',use:'value',write:'"+h(p,e.write,"a;."+K+".bc")+"'})","mx5-view":f}))):u==w.bQ?x.push(t("div",{"mx5-owner":i,$:"disabled,list",class:"cF cQ","mx5-change":i+"\x1e_ie({key:'"+b(e.key)+"',use:'value',omit:"+(e.omit||0)+"})","mx5-view":"1o/3a/index?disabled="+h(p,j,"bd")+"&selected="+c(s)+"&list="+h(p,e.items,"a;."+K+".be")+"&textKey=text&valueKey=value"})):u==w.bN?x.push(t("div",{"mx5-owner":i,$:"disabled,cell",class:"cF cQ","mx5-input":i+"\x1e_ie()","mx5-view":"1o/36/index?disabled="+h(p,j,"bd")+"&value="+h(p,m,"bf")})):u==w.ci?x.push(t("div",{"mx5-owner":i,$:"disabled,cell",class:"cF cQ","mx5-input":i+"\x1e_ie()","mx5-view":"1o/3e/align?disabled="+h(p,j,"bd")+"&value="+h(p,m,"bf")+"&alignKey="+c(e.key)})):u==w.bK?(f="1o/3b/index?clear="+h(p,e.clear,"a;."+K+".bg")+"&color="+h(p,s,"ba."+e.key+".bb")+"&align=right&disabled="+h(p,j,"bd"),null!=(g=e.alpha)&&(f+="&alpha="+h(p,g,"a;."+K+".bh")),x.push(t("div",{"mx5-owner":i,$:"list,cell,disabled",class:"cQ","mx5-input":i+"\x1e_ie({key:'"+b(e.key)+"',use:'color'})","mx5-view":f}))):u==w.bM?x.push(t("div",{"mx5-owner":i,$:"disabled,cell",class:"cF cQ","mx5-input":i+"\x1e_ie({use:'_'})","mx5-view":"1o/3e/style?disabled="+h(p,j,"bd")+"&value="+h(p,m,"bf")+"&prefix=textStyle"})):u==w.bO?x.push(t("textarea",{class:"bO cQ cT",disabled:j,"mx5-input":i+"\x1e_ie({key:'"+b(e.key)+"',native:'value'})",value:s},0,a)):e.type==w.bS?x.push(t("input",{class:"bN cQ",value:s,disabled:j,"mx5-input":i+"\x1e_ie({key:'"+b(e.key)+"',native:'value'})"},1,a)):u==w.bL?(y=[t("input",{class:"cr do",type:"checkbox",checked:s,disabled:j,"mx5-change":i+"\x1e_ie({key:'"+b(e.key)+"',native:'checked',write:'"+h(p,e.write,"a;."+K+".bc")+"'})"},1,n)],o?y.push(o):y.push(o=t("i",{_:"a:",class:"cs cz dp"})),x.push(t("label",l,y))):u==w.bP?x.push(t("div",{"mx5-owner":i,$:"disabled",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+b(e.key)+"',use:'src'})","mx5-view":"1o/3f/index?src="+c(s)+"&disabled="+h(p,j,"bd")})):u==w.ce?x.push(t("div",{"mx5-owner":i,$:"cell,list,disabled",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+b(e.key)+"',use:'format'})","mx5-view":"1o/3g/index?format="+h(p,s,"ba."+e.key+".bb")+"&disabled="+h(p,j,"bd")})):u==w.cf?x.push(t("div",{"mx5-owner":i,$:"cell,list,disabled",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+b(e.key)+"',use:'format'})","mx5-view":"1o/3g/fx?format="+h(p,s,"ba."+e.key+".bb")+"&disabled="+h(p,j,"bd")})):u==w.bS?x.push(t("input",{class:"bN",value:s,disabled:j,"mx5-input":i+"\x1e_ie({key:'"+b(e.key)+"',native:'value'})"},1,a)):u==w.ck&&x.push(t("div",{"mx5-owner":i,$:"cell,list,disabled","mx5-change":i+"\x1e_ie({use:'items'})","mx5-view":"1o/3h/items?items="+h(p,s,"ba."+e.key+".bb")+"&disabled="+h(p,j,"bd")+"&mutual="+h(p,e.mutual&&e.mutual(m),"a;."+K+".bi")})),_.push(t("div",r,x))}}return t(i,0,_)},init(){this.set({list:k,ptype:h})},assign(e){let{props:t,disabled:i}=e,{rows:s,focusRow:o,focusCol:r}=t;o<0&&(o=0),r<0&&(r=0);let d=s[o].cols[r];this.set({props:t,disabled:i,cell:d,rows:s,focusRow:o,focusCol:r})},render(){this.digest()},"_ie<input,change>"(e){let t=this.get("cell"),i=this.get("rows"),{key:s,use:o,write:r,native:d,omit:l}=e.params;if(o||d){let i=d?e.eventTarget[d]:e[o];if(r&&(i=r(i,t,e)),"type"==s){let e=t[s];if(e&&l)for(let i in t)i.startsWith(e)&&delete t[i];let o=y[i];o&&(m(t,o),t.textFontsize&&(t.textFontsize=p.bK(t.textFontsize))),"custom"!=i&&"custom"!=e||(t.textFormat="")}s&&(t[s]=i)}_(this.root,"change",{rows:i})}})})),define("1o/3d/operate",["1h","../../1g/1j","../../24/cell","../../24/table","../38/coperate"],((e,t,i)=>{let s,o,r,d,l,a,n={class:"c1 cF cI cY"},c=e("1h"),p=e("../../1g/1j"),h=e("../../24/cell"),b=e("../../24/table");e("../38/coperate");let{View:g,dispatch:y}=c,{max:f}=Math,x={bLeft:!0,bTop:!0,bRight:!0,bBottom:!0},_=["paddingBottom","paddingTop","paddingLeft","paddingRight","textFontsize"],u=()=>{let e={paddingBottom:5,paddingTop:5,paddingLeft:5,paddingRight:5,hpos:"flex-start",vpos:"flex-start",alpha:1,type:"text",...x,...h.text};for(let t of _)e[t]=p.bK(e[t]);return e};i.exports=g.extend({tmpl:(e,t,i)=>{let c,p,h,b,{disabled:g,topRow:y,i18n:f,bottomRow:x,deleteRow:_,deleteCol:u,splitH:m,splitV:k,mergeLeft:w,mergeRight:v,mergeTop:j,mergeBottom:K}=e;return h=[s||(s=t(0,"\ue618"))],p="bJ dJ gi c3 cN",!g&&y||(p+=" gj"),b=[t("i",{title:f("jF"),"mx5-click":!g&&y&&i+"\x1e_hU({to:'top'})",class:p},h)],h=[s||(s=t(0,"\ue618"))],p="bJ dJ gi c3 cK cN",!g&&x||(p+=" gj"),b.push(t("i",{title:f("jG"),"mx5-click":!g&&x&&i+"\x1e_hU()",class:p},h)),h=[o||(o=t(0,"\ue616"))],p="bJ dJ gi c3 cJ cN",g&&(p+=" gj"),b.push(t("i",{title:f("jH"),"mx5-click":!g&&i+"\x1e_hV({to:'left'})",class:p},h)),h=[o||(o=t(0,"\ue616"))],p="bJ dJ gi c3 cN",g&&(p+=" gj"),b.push(t("i",{title:f("jI"),"mx5-click":!g&&i+"\x1e_hV()",class:p},h)),h=[r||(r=t(0,"\ue62b"))],p="bJ dJ gi c3 cN",!g&&_||(p+=" gj"),b.push(t("i",{title:f("jJ"),"mx5-click":!g&&_&&i+"\x1e_il()",class:p},h)),h=[d||(d=t(0,"\ue62a"))],p="bJ dJ gi c3 cN",!g&&u||(p+=" gj"),b.push(t("i",{title:f("jK"),"mx5-click":!g&&u&&i+"\x1e_im()",class:p},h)),h=[l||(l=t(0,"\ue672"))],p="bJ dJ gi c3 cN",!g&&m||(p+=" gj"),b.push(t("i",{title:f("jL"),"mx5-click":!g&&m&&i+"\x1e_hZ({h:1})",class:p},h)),h=[l||(l=t(0,"\ue672"))],p="bJ dJ gi c3 cN cb",!g&&k||(p+=" gj"),b.push(t("i",{title:f("jM"),"mx5-click":!g&&k&&i+"\x1e_hZ({v:1})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN ca",!g&&w||(p+=" gj"),b.push(t("i",{title:f("jN"),"mx5-click":!g&&w&&i+"\x1e_hX({to:'left'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN",!g&&v||(p+=" gj"),b.push(t("i",{title:f("jO"),"mx5-click":!g&&v&&i+"\x1e_hX({to:'right'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN cc",!g&&j||(p+=" gj"),b.push(t("i",{title:f("jP"),"mx5-click":!g&&j&&i+"\x1e_hX({to:'top'})",class:p},h)),h=[a||(a=t(0,"\ue610"))],p="bJ dJ gi c3 cN cb",!g&&K||(p+=" gj"),b.push(t("i",{title:f("jQ"),"mx5-click":!g&&K&&i+"\x1e_hX({to:'bottom'})",class:p},h)),c=[t("div",n,b)],t(i,0,c)},assign(e){b.bJ(e.props,1);let t=(e=>{let{rows:t,focusRow:i,focusCol:s,_gn:o,_go:r}=e,d=!1,l=!1,a=!1,n=!1,c=!1,p=!1,h=!1,b=!1,g=!0,y=!0;if(i>-1&&s>-1){let e=t[i].cols[s],f=e._if-e._ig+1,x=e._g4-e._g3+1,_=-1,u=-1,m=-1,k=0,w=0,v=0,j=0,K=0;for(let e of t)-1!=_&&v++,e.label?(w||(u=K),w++):e.total?_=K:e.data&&j++,-1==u&&k++,K++;y=g=e._ig>_||e._if<_,m=u+w,b=e._if<m||e._ig>_,h=b,d=f<o&&(k>1&&e._if<u&&f<k||w>1&&e._ig>=u&&f<w&&e._if<m||v>1&&e._ig>_&&f<v||j>1&&f<j&&e._ig>=m&&e._if<_),l=x<r;let R=e._if+1,J=e._g4+1;for(let i=0;i<=R;i++)for(let s=0;s<=J;s++){let o=t[i];if(o){let t=o.cols[s];t&&t!=e&&(t._g3==e._g3&&t._g4==e._g4&&(t._if+1==e._ig?n=!0:e._if+1==t._ig&&(p=!0)),t._ig==e._ig&&t._if==e._if&&(t._g4+1==e._g3?a=!0:e._g4+1==t._g3&&(c=!0)))}}a=a&&b,c=c&&b,n=n&&(e._ig<u||e._ig>u&&e._if<m||e._ig>_+1),p=p&&(e._if<u-1||e._ig>=u&&e._if<m-1||e._ig>_)}return{bJ:d,bK:l,bL:a,bM:n,bN:c,bO:p,_ih:g,_ii:y,_ij:h,_ik:b}})(e.props);this.set({props:e.props,disabled:e.disabled,splitH:t._ij,splitV:t._ik,bottomRow:t._ih,topRow:t._ii,deleteRow:t.bJ,deleteCol:t.bK,mergeLeft:t.bL,mergeTop:t.bM,mergeRight:t.bN,mergeBottom:t.bO})},render(){this.digest()},"_hU<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e=r[s].cols[o],d=e._g3,l="top"==t?s:e._if+1;b.bL(i,l,u(),p.bK(35)),b.bJ(i),i.focusRow=l,e=r[l];for(let t of e.cols)if(t._g3>=d){i.focusCol=t._dt;break}let a=0,n=0;for(let e of r)e.total?n=1:e.label?a=1:a?n?e.foot=!0:e.data=!0:e.head=!0;y(this.root,"change",{rows:r})}},"_hV<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;if(-1!=s&&-1!=o){let e=r[s].cols[o],d="left"==t?o:e._g4+1;if(b.bN(i,d,u(),p.bK(150)),b.bJ(i),e=r[s],"left"!=t){for(let t of e.cols)if(t._g3>=d){i.focusCol=t._dt;break}}else i.focusCol=d;y(this.root,"change",{rows:r})}},"_il<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;-1!=t&&-1!=i&&(b.bM(e),b.bJ(e),e.focusCol=0,t>=e._gn&&(e.focusRow=e._gn-1),y(this.root,"change",{rows:s}))},"_im<click>"(){let e=this.get("props"),{focusRow:t,focusCol:i,rows:s}=e;-1!=t&&-1!=i&&(b.bO(e),b.bJ(e),e.focusCol=f(0,e.focusCol-1),y(this.root,"change",{rows:s}))},"_hX<click>"(e){let{to:t}=e.params,i=this.get("props"),{focusRow:s,focusCol:o,rows:r}=i;-1!=s&&-1!=o&&(b.bP(i,t),b.bJ(i),y(this.root,"change",{rows:r}))},"_hZ<click>"(e){let t=this.get("props"),{focusRow:i,focusCol:s,rows:o}=t;if(-1!=i&&-1!=s){let{h:i}=e.params,s=p.bK(20);b.bQ(t,i,u(),s,s),b.bJ(t),y(this.root,"change",{rows:o})}}})})),define("1s/index",["1h","./3r"],((e,t,i)=>{let s=e("1h"),o=e("./3r"),r={zh:o,"zh-cn":o},{has:d,config:l,Cache:a}=s,n=/\{(\d+)\}/g,c=new a(200,60);i.exports=(e,...t)=>{let i=(l("lang")||navigator.language).toLowerCase();d(r,i)||(i="zh");let s=r[i],o=[i,e,...t].join("\0");if(c.has(o))return c.get(o);let a=d(s,e)?s[e]:e;return t.length&&(a=a.replace(n,((e,i,o)=>(i|=0,t.length>i?(o=t[i],d(s,o)?s[o]:o):e)))),c.set(o,a),a}})),define("1s/3r",[],((e,t,i)=>{i.exports={cn:"\u4e0b\u5bf9\u9f50",cl:"\u6c34\u5e73\u5c45\u4e2d\u5bf9\u9f50",cj:"\u5de6\u5bf9\u9f50",co:"\u5782\u76f4\u5c45\u4e2d\u5bf9\u9f50",ck:"\u53f3\u5bf9\u9f50",cm:"\u4e0a\u5bf9\u9f50",df:"\u5feb\u6377\u952e\u5927\u5168",dg:"\u5143\u7d20\u95f4\u6c34\u5e73\u5747\u5206\u6392\u5217(\u6309\u4e0bShift\u952e\u5219\u4f7f\u7528\u5143\u7d20\u4e2d\u5fc3\u70b9\u8fdb\u884c\u5747\u5206)",di:"\u5143\u7d20\u5728\u8bbe\u8ba1\u533a\u5185\u6c34\u5e73\u5747\u5206\u6392\u5217(\u6309\u4e0bShift\u952e\u5219\u4f7f\u7528\u5143\u7d20\u4e2d\u5fc3\u70b9\u8fdb\u884c\u5747\u5206\u6216\u6309\u4e0bCtrl\u952e\u5728\u8bbe\u8ba1\u533a\u6c34\u5e73\u5c45\u4e2d)",dj:"\u5143\u7d20\u5728\u8bbe\u8ba1\u533a\u5185\u5782\u76f4\u5747\u5206\u6392\u5217(\u6309\u4e0bShift\u952e\u5219\u4f7f\u7528\u5143\u7d20\u4e2d\u5fc3\u70b9\u8fdb\u884c\u5747\u5206\u6216\u6309\u4e0bCtrl\u952e\u5728\u8bbe\u8ba1\u533a\u5782\u76f4\u5c45\u4e2d)",dh:"\u5143\u7d20\u95f4\u5782\u76f4\u5747\u5206\u6392\u5217(\u6309\u4e0bShift\u952e\u5219\u4f7f\u7528\u5143\u7d20\u4e2d\u5fc3\u70b9\u8fdb\u884c\u5747\u5206)",bL:"\u5220\u9664\u8f85\u52a9\u7ebf",bN:"\u70b9\u51fb\u9690\u85cf\u6240\u6709\u8f85\u52a9\u7ebf",bM:"\u6309\u4e0b\u62d6\u52a8\u53ef\u79fb\u52a8\u8f85\u52a9\u7ebf",bO:"\u70b9\u51fb\u663e\u793a\u6240\u6709\u8f85\u52a9\u7ebf",b5:"\u5e94\u7528",b6:"\u53d6\u6d88",jZ:"\u786e\u5b9a",j6:"\u7d2f\u8ba1\u5e73\u5747",j5:"\u672c\u9875\u5e73\u5747",j4:"\u672c\u5355\u5e73\u5747",jw:"\u6c42\u5e73\u5747",jx:"\u81ea\u5b9a\u4e49",ff:"\u70b9\u51fb\u9009\u4e2d\u5f53\u524d\u683c\u5b50",ju:"\u9759\u6001\u6587\u672c",j3:"\u672c\u9875\u7d2f\u8ba1",j1:"\u672c\u9875\u6c42\u548c",j2:"\u672c\u5355\u6c42\u548c",jv:"\u6c42\u548c",da:"\u60a8\u786e\u8ba4\u6e05\u7a7a\u7f16\u8f91\u533a\u5185\u5bb9\u5417\uff1f",kg:"\u70b9\u51fb\u9009\u62e9\u56fe\u7247",j0:"\u5173\u95ed\u7a97\u53e3",jW:"\u6dfb\u52a0\u914d\u8272",jU:"\u968f\u673a\u4e00\u4e2a\u989c\u8272",jV:"\u79fb\u9664\u5f53\u524d\u914d\u8272",d_:"\u60a8\u786e\u8ba4\u65b0\u5efa\u7f16\u8f91\u533a\u5185\u5bb9\u5417\uff1f",kn:'\u8bf7\u9009\u4e2d\u4e00\u4e2a\u652f\u6301\u6570\u636e\u7ed1\u5b9a\u7684\u7ec4\u4ef6\uff0c\u5982\u6570\u636e\u4e2d\u7684"\u5217\u8868\u683c"\u3001"\u5355\u5143\u683c"\u6216"\u67f1\u72b6\u56fe"',jY:"\u63d0\u793a",ip:"\u4e0b",iq:"\u5de6",jk:"\u5de6\u4e0b",jh:"\u5de6\u4e0a",io:"\u53f3",jj:"\u53f3\u4e0b",ji:"\u53f3\u4e0a",in:"\u4e0a",hS:"\u5f27",dQ:"\u8bf7\u8f93\u5165\u6216\u7ed1\u5b9a\u6761\u5f62\u7801\u5185\u5bb9",dy:"\u6761\u5f62\u7801",dR:"\u57fa\u5143",dS:"\u6279\u91cf\u6761\u7801",dX:"\u6279\u91cf\u6587\u672c",hY:"\u7535\u6c60",h4:"\u8d1d\u585e\u5c142",h5:"\u8d1d\u585e\u5c143",ea:"\u65e5\u5386",ef:"\u67f1\u72b6\u56fe",ei:"Chart.js",ek:"\u6f0f\u6597\u56fe",em:"\u6298\u7ebf\u56fe",ep:"\u4eea\u8868\u76d8",es:"\u997c\u56fe",et:"\u96f7\u8fbe\u56fe",eu:"\u6563\u70b9\u56fe",ev:"\u5706\u5f62",ex:"\u65f6\u949f",eB:"\u73af\u5f62\u8fdb\u5ea6",fx:"\u66f2\u7ebf",dV:"\u8bf7\u7ed1\u5b9a\u6570\u636e",eF:"\u5355\u5143\u683c",eQ:"\u5217\u8868\u683c",e2:"\u6570\u636e\u8868\u683c",fh:"\u81ea\u7531\u8868\u683c",fm:"\u6a2a\u7eb5\u91cd\u590d",eN:"\u5220\u9664\u7ed1\u5b9a\u5b57\u6bb5",h9:"\u692d\u5706",i_:"\u98ce\u6247",fo:"\u6ce8\u91ca",fs:"\u5361\u7247",ft:"\u8fde\u63a5\u7ebf",fD:"\u6570\u636e",fE:"\u6570\u636e\u5e93",fF:"\u5224\u5b9a",fL:"\u5c55\u793a",fM:"\u6587\u6863",fN:"\u5916\u90e8\u6570\u636e",fO:"\u5185\u90e8\u5b58\u50a8",fP:"\u5faa\u73af\u9650\u503c",fQ:"\u4eba\u5de5\u8f93\u5165",fR:"\u4eba\u5de5\u64cd\u4f5c",fS:"\u8de8\u9875\u5f15\u7528",fT:"\u5e76\u884c\u6a21\u5f0f",fU:"\u9884\u5907",fV:"\u8fc7\u7a0b",fW:"\u961f\u5217\u6570\u636e",fX:"\u9875\u5185\u5f15\u7528",fY:"\u5b50\u6d41\u7a0b",fZ:"\u6761\u5e26",f0:"\u5f00\u59cb\u7ed3\u675f",f1:"\u590d\u9009\u6846",gb:"\u6570\u636e\u91c7\u96c6",gi:"\u4e0b\u62c9\u6846",gm:"\u8f93\u5165\u6846",gr:"\u5355\u9009\u6846",gs:"\u516c\u5f0f",gt:"\u51fd\u6570",gI:"H-Flex",gC:"\u70ed\u5ea6",gN:"HTML",ko:"\u539f\u59cb\u56fe\u7247\u5bbd\u9ad8",gU:"\u8bf7\u9009\u62e9\u6216\u7ed1\u5b9a\u56fe\u7247",gO:"\u56fe\u7247",fv:"\u76f4\u7ebf",g6:"\u6b63\u5728\u8f7d\u5165\u7b2c\u4e09\u65b9\u7ec4\u4ef6...",gX:"\u8fb9\u6846",gY:"\u9884\u8bbe\u56fe\u7247",gZ:"\u5730\u56fe",g9:"\u7f16\u8f91\u533a",hD:"\u9875\u7801\u5668",iG:"\u5706\u997c",fw:"\u6298\u7ebf",if:"\u6298\u7ebf2",gF:"\u9875\u811a",gH:"\u9875\u5934",hE:"\u8fdb\u5ea6\u6761",hG:"\u8bf7\u8f93\u5165\u6216\u7ed1\u5b9a\u4e8c\u7ef4\u7801\u5185\u5bb9",dW:"\u4e8c\u7ef4\u7801",hH:"\u8bc4\u5206",hK:"\u77e9\u5f62",hM:"\u8bf7\u9009\u62e9\u6216\u7ed1\u5b9a\u80cc\u666f\u56fe\u7247",hL:"\u80cc\u666f\u56fe",fn:"\u5bcc\u6587\u672c",hO:"\u6807\u5c3a",iJ:"\u4fe1\u53f7",iN:"\u626c\u58f0\u5668",ik:"\u7bad\u5934",h6:"\u5927\u62ec\u53f7",il:"\u6c14\u6ce1",h7:"\u5706",it:"\u62d0\u89d2",iu:"\u5341\u5b57",iv:"\u7acb\u65b9\u4f53",iz:"\u5706\u67f1",iB:"\u53cc\u7bad\u5934",iR:"\u4e94\u89d2\u661f",ic:"\u7ebf\u6bb5",iF:"\u6708\u7259",id:"\u591a\u8fb9\u5f62",iC:"\u56db\u8fb9\u5f62",iH:"\u661f\u661f",gJ:"\u8868\u683c",gK:"Tabs",iU:"\u6807\u7b7e",e_:"\u8bf7\u8f93\u5165\u6216\u7ed1\u5b9a\u5185\u5bb9",iV:"\u6587\u672c",iS:"\u4e09\u89d2\u5f62",gM:"V-Flex",i2:"\u8bf7\u8f93\u5165\u89c6\u9891\u5730\u5740",iW:"\u89c6\u9891",iT:"WiFi",i3:"Excel",b1:"\u6b63\u5728\u5bfc\u51fa...",b3:"\u5bfc\u51fa\u6210\u529f~",bS:"\u5fae\u8f6f\u6b63\u9ed1\u4f53",bT:"\u6977\u4f53",bU:"\u96b6\u4e66",bQ:"\u9ed1\u4f53",bP:"\u5b8b\u4f53",bR:"\u5fae\u8f6f\u96c5\u9ed1",bV:"\u5e7c\u5706",bK:"\u6c34\u5e73",bJ:"\u5782\u76f4",cD:"\u6dfb\u52a0<{0}>\u8f85\u52a9\u7ebf",cC:"\u6e05\u9664\u5168\u90e8\u8f85\u52a9\u7ebf",cG:"\u6e05\u7a7a\u7f16\u8f91\u533a",cE:"\u5220\u9664<{0}>\u8f85\u52a9\u7ebf",cP:"\u6dfb\u52a0<{0}>",cN:"\u5bf9\u9f50\u5143\u7d20",c4:"\u6c34\u5e73\u5747\u5206<\u591a\u4e2a\u5143\u7d20>",c5:"\u5782\u76f4\u5747\u5206<\u591a\u4e2a\u5143\u7d20>",c2:"\u526a\u5207<{0}>",c3:"\u514b\u9686<{0}>",cL:"\u9009\u4e2d<{0}>",cR:"\u7ec4\u5408\u5143\u7d20",cT:"\u7f16\u8f91\u9501\u5b9a<{0}>",cK:"\u53d6\u6d88\u9009\u4e2d<{0}>",cY:"\u4fee\u6539<{0}>\u63a7\u5236\u70b9",cZ:"\u4fee\u6539<{0}>\u8c03\u6574\u70b9",c1:"\u4fee\u6539<{0}>\u5c5e\u6027",c0:"\u4fee\u6539<{0}>\u5c3a\u5bf8",cM:"\u79fb\u52a8<{0}>",cW:"\u7c98\u8d34<{0}>",cQ:"\u5220\u9664<{0}>",cX:"\u65cb\u8f6c<{0}>",cO:"\u540c\u6b65\u5143\u7d20\u5c3a\u5bf8",cS:"\u53d6\u6d88\u7ec4\u5408\u5143\u7d20",cU:"\u53d6\u6d88\u7f16\u8f91\u9501\u5b9a<{0}>",cV:"\u8c03\u6574<{0}>Z\u8f74",c8:"\u663e\u793a\u81ea\u5b9a\u4e49\u6a21\u677f",c6:"\u663e\u793a\u6a21\u677f<{0}>",c7:"\u663e\u793aid\u4e3a{0}\u7684\u6a21\u677f",cB:"\u521d\u59cb\u72b6\u6001",cF:"\u79fb\u52a8<{0}>\u8f85\u52a9\u7ebf",cJ:"\u65b0\u5efa\u7f16\u8f91\u533a",cH:"\u653e\u5927\u7f16\u8f91\u533a",cI:"\u7f29\u5c0f\u7f16\u8f91\u533a",kp:"\u70b9\u51fb\u8fd8\u539f\u5230{0}",ki:"\u56fe\u7247\u5e93",kh:"\u83b7\u53d6\u56fe\u7247\u5c3a\u5bf8\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5\uff5e\uff5e",cv:"\u6e05\u7a7a\u683c\u5b50",cg:"\u6e05\u7a7a\u7f16\u8f91\u533a",cp:"\u7ec4\u5408",cq:"\u53d6\u6d88\u7ec4\u5408",b8:"\u590d\u5236",b9:"\u526a\u5207",cf:"\u5220\u9664",cd:"\u514b\u9686",dp:"\u5f53\u524d\u72b6\u6001\uff1a\u901a\u8fc7\u5c5e\u6027\u9762\u677f\u4fee\u6539\u5750\u6807\u65f6\uff0c\u7ec4\u5408\u4e2d\u7684\u5176\u5b83\u5143\u7d20\u4e0d\u968f\u7740\u4fee\u6539",do:"\u5f53\u524d\u72b6\u6001\uff1a\u901a\u8fc7\u5c5e\u6027\u9762\u677f\u4fee\u6539\u5750\u6807\u65f6\uff0c\u7ec4\u5408\u4e2d\u7684\u5176\u5b83\u5143\u7d20\u968f\u7740\u4fee\u6539",dm:"\u7ec4\u5408\u9009\u4e2d\u5143\u7d20",cA:"\u4ece\u672c\u5730\u6587\u4ef6\u5bfc\u5165",dq:"\u9501\u5b9a\u7f16\u8f91",cc:"\u4e0b\u79fb\u4e00\u5c42",cb:"\u4e0a\u79fb\u4e00\u5c42",ch:"\u65b0\u5efa\u7f16\u8f91\u533a",ce:"\u7c98\u8d34",ci:"\u53cd\u9009",cz:"\u5bfc\u51fa\u5230\u672c\u5730\u6587\u4ef6",cy:"\u4fdd\u5b58\u5230\u670d\u52a1\u5668",b7:"\u5168\u9009",cs:"\u9ad8\u4f5c\u4e3a\u5bbd",cu:"\u540c\u9ad8",cr:"\u5bbd\u4f5c\u4e3a\u9ad8",ct:"\u540c\u5bbd",ca:"\u79fb\u81f3\u5e95\u5c42",c_:"\u79fb\u81f3\u9876\u5c42",dn:"\u53d6\u6d88\u7ec4\u5408\u5143\u7d20",dr:"\u89e3\u9501\u7f16\u8f91",cw:"\u591a\u4e2a\u5143\u7d20",jd:"\u5220\u9664\u5f53\u524d\u683c\u5b50",jn:"\u4e0b\u65b9\u6dfb\u52a0\u683c\u5b50",jb:"\u5de6\u4fa7\u6dfb\u52a0\u683c\u5b50",jc:"\u53f3\u4fa7\u6dfb\u52a0\u683c\u5b50",jm:"\u4e0a\u65b9\u6dfb\u52a0\u683c\u5b50",jo:"\u5de6\u4fa7\u6dfb\u52a0\u5217",jp:"\u53f3\u4fa7\u6dfb\u52a0\u5217",ja:"\u4e0b\u65b9\u6dfb\u52a0\u884c",j_:"\u4e0a\u65b9\u6dfb\u52a0\u884c",jr:"\u5411\u4e0b\u5408\u5e76\u683c\u5b50",je:"\u5411\u5de6\u5408\u5e76\u683c\u5b50",jf:"\u5411\u53f3\u5408\u5e76\u683c\u5b50",jq:"\u5411\u4e0a\u5408\u5e76\u683c\u5b50",jg:"\u62c6\u5206\u683c\u5b50",jS:"\u53ef\u4ee5\u8f93\u5165\u6216\u7c98\u8d34\u5341\u516d\u8fdb\u5236\u7684\u989c\u8272\u503c",jT:"\u70b9\u51fb\u4f7f\u7528\u5438\u7ba1\u5438\u53d6\u989c\u8272",kq:"\u786e\u5b9a",j7:"\u62d6\u52a8\u6570\u636e\u6e90\u5b57\u6bb5\u5230\u8fd9\u91cc",i9:"\u5782\u76f4\u5c45\u4e0b",i5:"\u6c34\u5e73\u5c45\u4e2d",i4:"\u6c34\u5e73\u5c45\u5de6",i8:"\u5782\u76f4\u5c45\u4e2d",i6:"\u6c34\u5e73\u5c45\u53f3",i7:"\u5782\u76f4\u5c45\u4e0a",ka:"\u52a0\u7c97",kb:"\u659c\u4f53",ke:"\u4e0a\u5212\u7ebf",kd:"\u5220\u9664\u7ebf",kc:"\u4e0b\u5212\u7ebf",j9:"\u5c45\u4e2d",j8:"\u5c45\u5de6",k_:"\u5c45\u53f3",jX:"\u8bf7\u5148\u7ed1\u5b9a\u6570\u636e",km:"\u9ad8\u5ea6\u5747\u5206",kl:"\u5bbd\u5ea6\u5747\u5206",kj:"\u70b9\u51fb\u9690\u85cf{0}\u8fb9\u6846",kk:"\u70b9\u51fb\u663e\u793a{0}\u8fb9\u6846",jK:"\u5220\u9664\u5f53\u524d\u5217",jJ:"\u5220\u9664\u5f53\u524d\u884c",jH:"\u5de6\u4fa7\u6dfb\u52a0\u5217",jI:"\u53f3\u4fa7\u6dfb\u52a0\u5217",jG:"\u4e0b\u65b9\u6dfb\u52a0\u884c",jF:"\u4e0a\u65b9\u6dfb\u52a0\u884c",jQ:"\u5411\u4e0b\u5408\u5e76\u5355\u5143\u683c",jN:"\u5411\u5de6\u5408\u5e76\u5355\u5143\u683c",jO:"\u5411\u53f3\u5408\u5e76\u5355\u5143\u683c",jP:"\u5411\u4e0a\u5408\u5e76\u5355\u5143\u683c",jL:"\u6c34\u5e73\u62c6\u5206\u5355\u5143\u683c",jM:"\u5782\u76f4\u62c6\u5206\u5355\u5143\u683c",dZ:"\u81ea\u52a8\u6362\u884c\uff1a",cx:"\u57fa\u7840\u5c5e\u6027",kr:"\u70b9\u51fb\u663e\u793a{0}",dw:"\u5173\u95ed\u6240\u6709\u9762\u677f(Shift+Z)",du:"\u5173\u95ed{0}\u9762\u677f(\u6570\u5b57\u952e{1})",ks:"\u6570\u636e\u6e90",kt:"\u6309\u4e0b\u79fb\u52a8\u9762\u677f",ku:"\u5143\u7d20",kv:"\u6309\u4e0b\u62d6\u52a8\u6539\u53d8\u9762\u677f\u5bbd\u5ea6",kw:"\u5c55\u5f00{0}\u9762\u677f(Shift+\u6570\u5b57\u952e{1})",kx:"\u70b9\u51fb\u67e5\u770b{0}\u7684\u8bf4\u660e",ky:"\u5386\u53f2\u64cd\u4f5c",kz:"\u6309\u4e0b\u62d6\u52a8\u6539\u53d8\u9762\u677f\u9ad8\u5ea6",dx:"\u6253\u5f00\u6240\u6709\u9762\u677f(Shift+Z)",dv:"\u6253\u5f00{0}\u9762\u677f(\u6570\u5b57\u952e{1})",kA:"\u6982\u89c8\u56fe",kB:"\u5c5e\u6027",kC:"\u53ea\u8bfb\u5143\u7d20\u4e0d\u80fd\u9009\u4e2d\u548c\u62d6\u52a8\u6392\u5e8f",kD:"\u6298\u53e0{0}\u9762\u677f(Shift+\u6570\u5b57\u952e{1})",kE:"\u7ed3\u6784\u6811",hj:"\u8bf7\u9009\u62e9",kF:"\u4e0d\u80fd\u653e\u7f6e",kG:"\u677e\u5f00\u653e\u5728\u683c\u5b50\u91cc",kH:"\u677e\u5f00\u653e\u5728\u7f16\u8f91\u533a",eP:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539\u683c\u5b50\u9ad8\u5ea6",eO:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539\u683c\u5b50\u5bbd\u5ea6",fJ:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539\u63a7\u5236\u70b9",gh:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539Excel\u9876\u90e8\u6807\u9898\u9ad8\u5ea6",gg:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539Excel\u5de6\u4fa7\u6807\u9898\u5bbd\u5ea6",fH:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539\u5143\u7d20\u9ad8\u5ea6",fK:"\u6309\u4e0b\u62d6\u52a8\u4e0e\u5176\u5b83\u5143\u7d20\u8fde\u7ebf",g8:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539\u8c03\u6574\u70b9",fI:"\u6309\u4e0b\u62d6\u52a8\u65cb\u8f6c\u5143\u7d20",fg:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539\u7559\u767d\u9ad8\u5ea6",fG:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539\u5143\u7d20\u5bbd\u5ea6",g7:"\u6309\u4e0b\u62d6\u52a8\u4fee\u6539\u5143\u7d20\u5bbd\u5ea6\u548c\u9ad8\u5ea6",kI:"\u6d4f\u89c8\u5668\u6253\u5370",kJ:"\u8f6c\u6362\u5185\u5bb9\u4e3a\uff1a",kK:"\u8bf7\u4f20\u9012 id \u53c2\u6570\u4e14\u914d\u7f6e getContentUrl \u6216\u8005\u5728\u8bbe\u8ba1\u5668\u4e2d\u6253\u5f00\u8be5\u9875\u9762",kL:"\u6b63\u5728\u51c6\u5907\u57fa\u7840\u9875\u9762...",kM:"RDS\u6253\u5370",kN:"RDS\u8bbe\u7f6e",kO:"\u7b2c\u4e09\u65b9\u9759\u9ed8\u6253\u5370",kP:"\u72ec\u7acb\u4f7f\u7528\u6253\u5370\u9875\u9762",gL:"\u9009\u4e2d\uff1a",dD:"\u900f\u660e\u5ea6\uff1a",fl:"\u884c\u9ad8\u68c0\u6d4b\uff1a",iZ:"\u81ea\u52a8\u64ad\u653e\uff1a",hr:"\u80cc\u666f\u56fe\u7247\uff1a",ht:"\u5e73\u94fa\u65b9\u5f0f\uff1a",d4:"\u80cc\u666f\u989c\u8272\uff1a",hF:"\u8fdb\u5ea6\u989c\u8272\uff1a",gD:"\u67f1\u5b50\u4e2a\u6570\uff1a",gE:"\u67f1\u5b50\u5bbd\u5ea6\uff1a",dH:"\u7f16\u7801\u683c\u5f0f\uff1a",h0:"\u5145\u7535\u4e2d\uff1a",h2:"\u7535\u91cf\u989c\u8272\uff1a",h3:"\u95ea\u7535\u989c\u8272\uff1a",h1:"\u7535\u6c60\u989c\u8272\uff1a",hZ:"\u7535\u91cf\uff1a",dG:"\u7ed1\u5b9a\u5b57\u6bb5\uff1a",eo:"X\u8f74\u7ed1\u5b9a\uff1a",en:"Y\u8f74\u7ed1\u5b9a\uff1a",d9:"\u8fb9\u6846\u989c\u8272\uff1a",er:"\u5706\u89d2\uff1a",bY:"\u865a\u7ebf",bX:"\u70b9\u7ebf",bZ:"\u53cc\u8fb9\u6846",bW:"\u5b9e\u7ebf",d8:"\u8fb9\u6846\u7c7b\u578b\uff1a",d7:"\u8fb9\u6846\u5bbd\u5ea6\uff1a",ig:"\u62d0\u89d2\uff1a",ih:"\u5c16\u89d2",ij:"\u5706\u89d2",ii:"\u659c\u89d2",jl:"\u8fb9\u6846\uff1a",fc:"\u5e73\u5747\u5206\u914d",fd:"\u4e0d\u5206\u914d",fb:"\u5360\u6bd4\u5206\u914d",fa:"\u5bbd\u5ea6\u5206\u914d\uff1a",jD:"\u683c\u5b50\u80cc\u666f\uff1a",jt:"\u683c\u5b50\u8ba1\u7b97\uff1a",js:"\u683c\u5b50\u5185\u5bb9\uff1a",f_:"\u6570\u636e\u68c0\u6d4b\uff1a",eM:"\u683c\u5b50\u64cd\u4f5c\uff1a",eG:"\u683c\u5b50\u5747\u5206\uff1a",gG:"\u683c\u5b50\u9ad8\uff1a",eK:"\u683c\u5b50\u5bbd\u9ad8\uff1a",eg:"\u56fe\u8868\u6807\u9898\uff1a",ey:"\u8868\u76d8\u989c\u8272\uff1a",ez:"\u6307\u9488\u989c\u8272\uff1a",eA:"\u523b\u5ea6\u989c\u8272\uff1a",hX:"\u95ed\u5408\uff1a",el:"\u914d\u8272\uff1a",dK:"\u989c\u8272\uff1a",fu:"\u8fde\u7ebf\u7c7b\u578b\uff1a",jy:"\u5185\u5bb9\u4f4d\u7f6e\uff1a",f9:"\u81ea\u52a8",ga:"\u9690\u85cf",g_:"\u663e\u793a",f8:"\u5185\u5bb9\u6ea2\u51fa\uff1a",i1:"\u663e\u793a\u63a7\u5236\uff1a",iI:"\u89d2\uff1a",iA:"\u67f1\u4f53\u989c\u8272\uff1a",fi:"\u6570\u636e\u6e90\uff1a",go:"\u9ed8\u8ba4\u6587\u672c\uff1a",gv:"\u7981\u7528\u7f29\u653e\uff1a",iM:"\u65ad\u7f51\u989c\u8272\uff1a",f2:"\u8bc6\u522b\u540d\u79f0\uff1a",f5:"\u5782\u76f4",f4:"\u6c34\u5e73",f3:"\u6392\u5217\u65b9\u5f0f\uff1a",hp:"\u62d6\u52a8\u78c1\u5438\uff1a",hW:"\u7ed3\u675f\u89d2\u5ea6\uff1a",fz:"\u7ed3\u675f\u7bad\u5934\uff1a",hR:"\u7ed3\u675f\u8fb9\u6846\uff1a",gd:"\u6807\u9898\u80cc\u666f\uff1a",gf:"\u5de6\u6807\u9898\u5bbd\uff1a",ge:"\u9876\u6807\u9898\u9ad8\uff1a",gc:"Excel\u6807\u9898\uff1a",gk:"\u6269\u5c55\u6837\u5f0f\uff1a",gj:"\u6269\u5c55\u6807\u8bb0\uff1a",ew:"\u586b\u5145\u989c\u8272\uff1a",d6:"\u6392\u5217\uff1a",d2:"\u5b57\u4f53\uff1a",d1:"\u5b57\u53f7\uff1a",dJ:"\u6587\u5b57\u6837\u5f0f\uff1a",e4:"\u6700\u540e\u663e\u5c3e\uff1a",d5:"\u6587\u5b57\u989c\u8272\uff1a",eD:"\u8ba1\u7b97\u51fd\u6570\uff1a",dY:"\u663e\u793a\u683c\u5f0f\uff1a",ix:"\u524d\u90e8\u989c\u8272\uff1a",hu:"\u62c9\u4f38\u94fa\u6ee1",im:"\u7f3a\u53e3\u65b9\u5411\uff1a",ir:"\u7f3a\u53e3\u4f4d\u7f6e\uff1a",is:"\u7f3a\u53e3\u5927\u5c0f\uff1a",dT:"\u6c34\u5e73\u95f4\u9694\uff1a",e3:"\u521d\u59cb\u663e\u5934\uff1a",dC:"\u9ad8\uff1a",dN:"\u5e2e\u52a9\uff1a",e9:"\u9690\u85cf\u5c3e\uff1a",e5:"\u9690\u85cf\u5934\uff1a",e6:"\u9690\u85cf\u6807\u9898\uff1a",fk:"\u9690\u85cf\u8868\u5c3e\uff1a",fj:"\u9690\u85cf\u8868\u5934\uff1a",e8:"\u9690\u85cf\u5408\u8ba1\uff1a",eE:"\u9ad8\u4eae\u989c\u8272\uff1a",hA:"\u56fe\u7247\u9ad8\uff1a",gR:"\u8fd8\u539f\u5c3a\u5bf8\uff1a",hz:"\u56fe\u7247\u5bbd\uff1a",gQ:"\u56fe\u7247\uff1a",f6:"\u9009\u9879\u95f4\u8ddd\uff1a",d3:"\u5b57\u95f4\u8ddd\uff1a",fq:"\u7ebf\u6761\u989c\u8272\uff1a",fp:"\u865a\u7ebf\u95f4\u9694\uff1a",fr:"\u6587\u5b57\uff1a",gW:"\u7ebf\u7c7b\u578b\uff1a",dL:"\u7ebf\u6761\u5bbd\uff1a",dP:"\u9501\u5b9a\u7f16\u8f91\uff1a",gV:"\u957f\uff1a",i0:"\u5faa\u73af\u64ad\u653e\uff1a",g5:"\u53cc\u51fb\u7f29\u653e\uff1a",g4:"\u80fd\u5426\u62d6\u52a8\uff1a",g2:"\u7eac\u5ea6\uff1a",g1:"\u7ecf\u5ea6\uff1a",g3:"\u663e\u793a\u7f29\u653e\uff1a",g0:"\u7f29\u653e\u7ea7\u522b\uff1a",kQ:"\u6700\u5927\u9ad8\u5ea6\uff1a",kR:"\u6700\u5927\u5bbd\u5ea6\uff1a",gl:"\u591a\u9009\uff1a",gp:"\u591a\u884c\u6a21\u5f0f\uff1a",fe:"\u591a\u680f\u6253\u5370\uff1a",iQ:"\u9759\u97f3\u989c\u8272\uff1a",iO:"\u9759\u97f3\uff1a",hv:"\u4e0d\u5e73\u94fa",dM:"\u5b98\u65b9\u7f51\u7ad9\uff1a",hB:"\u6c34\u5e73\u504f\u79fb\uff1a",hC:"\u5782\u76f4\u504f\u79fb\uff1a",ej:"\u914d\u7f6e\uff1a",jB:"\u4e0b\u8fb9\u8ddd\uff1a",jC:"\u5de6\u8fb9\u8ddd\uff1a",jA:"\u53f3\u8fb9\u8ddd\uff1a",jz:"\u4e0a\u8fb9\u8ddd\uff1a",gu:"\u7f51\u683c\uff1a",hi:"\u5e38\u7528\u7eb8\u5f20\uff1a",hl:"\u5168\u5c4f\u663e\u793a\uff1a",hq:"\u9875\u9762\u6807\u9898\uff1a",h_:"\u5355\u4f4d\uff1a",hh:"\u7f16\u8f91\u533a\uff1a",gn:"\u5360\u4f4d\u6587\u672c\uff1a",hs:"\u5957\u6253\uff1a",ho:"\u6253\u5370\u4efd\u6570\uff1a",h8:"\u534a\u5f84\uff1a",hw:"\u6a2a\u5411\u5e73\u94fa",hx:"\u5782\u76f4\u5e73\u94fa",hy:"\u53cc\u5411\u5e73\u94fa",ie:"\u53cd\u8f6c\uff1a",d0:"\u5bcc\u6587\u672c\uff1a",gS:"\u5782\u76f4\u955c\u50cf\uff1a",gT:"\u6c34\u5e73\u955c\u50cf\uff1a",dE:"\u65cb\u8f6c\u89d2\u5ea6\uff1a",iD:"\u6c34\u5e73\u5706\u89d2\uff1a",iE:"\u5782\u76f4\u5706\u89d2\uff1a",hT:"\u6c34\u5e73\u534a\u5f84\uff1a",hU:"\u5782\u76f4\u534a\u5f84\uff1a",hm:"\u81ea\u9002\u5e94",hn:"\u5168\u5c4f\u94fa\u6ee1",hk:"\u5206\u8fa8\u7387\uff1a",e7:"\u6bcf\u9875\u6807\u9898\uff1a",eq:"\u663e\u793a\u8fdb\u5ea6\uff1a",dI:"\u663e\u793a\u6587\u5b57\uff1a",iy:"\u4fa7\u90e8\u989c\u8272\uff1a",iL:"\u4fe1\u53f7\u5f3a\u5ea6\uff1a",ib:"\u901f\u5ea6\uff1a",hN:"\u81ea\u52a8\u5206\u9875\uff1a",hI:"\u661f\u661f\u4e2a\u6570\uff1a",hJ:"\u661f\u661f\u5927\u5c0f\uff1a",hV:"\u5f00\u59cb\u89d2\u5ea6\uff1a",fy:"\u5f00\u59cb\u7bad\u5934\uff1a",hQ:"\u5f00\u59cb\u8fb9\u6846\uff1a",e0:"\u5076\u6570\u884c\uff1a",ed:"\u5185\u5bb9\u5b57\u53f7\uff1a",e1:"\u5947\u6570\u884c\uff1a",eZ:"\u5185\u5bb9\u884c\u9ad8\uff1a",eW:"\u5c45\u4e2d",eV:"\u5c45\u5de6",eX:"\u5c45\u53f3",eU:"\u5185\u5bb9\u5bf9\u9f50\uff1a",eI:"\u5408\u5e76",eH:"\u8fb9\u6846\u884c\u4e3a\uff1a",eJ:"\u5206\u79bb",eL:"\u8fb9\u6846\u663e\u793a\uff1a",eR:"\u5217\u5bbd\uff1a",eS:"\u7559\u767d\uff1a",eb:"\u8868\u5934\u5b57\u53f7\uff1a",ec:"\u8868\u5934\u80cc\u666f\uff1a",eY:"\u8868\u5934\u884c\u9ad8\uff1a",eT:"\u5feb\u6377\u76ae\u80a4\uff1a",gq:"\u6587\u5b57\u5bf9\u9f50\uff1a",dF:"\u5185\u5bb9\uff1a",fA:"\u7ebf\u4e0a\u4f4d\u7f6e\uff1a",hP:"\u6587\u5b57\u89d2\u5ea6\uff1a",f7:"\u5185\u5bb9\u95f4\u8ddd\uff1a",jE:"\u6587\u672c\uff1a",eh:"\u6807\u9898\u5bf9\u9f50\uff1a",dO:"\u5143\u7d20\u540d\u79f0\uff1a",iw:"\u9876\u90e8\u989c\u8272\uff1a",kS:"\u7c7b\u578b\uff1a",dU:"\u5782\u76f4\u95f4\u9694\uff1a",eC:"\u503c\uff1a",iY:"\u6d77\u62a5\u5730\u5740\uff1a",iX:"\u89c6\u9891\u5730\u5740\uff1a",iP:"\u97f3\u91cf\uff1a",gP:"\u7f51\u7edc\u56fe\u7247\uff1a",ee:"\u5f00\u59cb\u65e5\u671f\uff1a",dB:"\u5bbd\uff1a",iK:"\u8054\u63a5\uff1a",ia:"\u65cb\u8f6c\uff1a",gx:"X\u8f74\u8303\u56f4\uff1a",gw:"X\u8f74\u6807\u9898\uff1a",gA:"X\u63d0\u793a\u7ebf\uff1a",fB:"\u6c34\u5e73\u504f\u79fb\uff1a",dz:"X\u5750\u6807\uff1a",gz:"Y\u8f74\u8303\u56f4\uff1a",gy:"Y\u8f74\u6807\u9898\uff1a",gB:"Y\u63d0\u793a\u7ebf\uff1a",fC:"\u5782\u76f4\u504f\u79fb\uff1a",dA:"Y\u5750\u6807\uff1a",b0:"\u8bfb\u53d6\u5185\u5bb9\u5931\u8d25\uff1a",dl:"\u91cd\u505a(Ctrl+Y,Ctrl+Shift+Z)",jR:"\u6e05\u9664\u989c\u8272",kT:"\u70b9\u51fb\u5220\u9664\u5143\u7d20",kU:"\u70b9\u51fb\u5220\u9664\u5386\u53f2\u8bb0\u5f55",kf:"\u6e05\u9664\u56fe\u7247",kV:"\u6e05\u9664\u5173\u952e\u5b57",b4:"\u7f16\u8f91\u533a\u6570\u636e",db:"\u4fdd\u5b58\u5931\u8d25",dc:"\u4fdd\u5b58\u6210\u529f~",dd:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90",de:"\u6388\u6743\u53ca\u6e90\u7801\u8bf7\u8054\u7cfb\u5fae\u4fe1\uff1aqq84685009 ©2018-"+(new Date).getFullYear(),b2:"\u901a\u7528\u8bbe\u8ba1\u5668",c9:"\u7cfb\u7edf\u6b63\u5fd9...",dk:"\u64a4\u9500(Ctrl+Z)",hb:"\u5398\u7c73(cm)",he:"\u82f1\u5bf8(in)",ha:"\u6beb\u7c73(mm)",hf:"\u6d3e\u5361(pc)",hd:"\u78c5(pt)",hc:"\u50cf\u7d20(px)",hg:"1/4\u6beb\u7c73(q)",dt:"\u653e\u5927(Ctrl+\u52a0\u53f7)",ds:"\u7f29\u5c0f(Ctrl+\u51cf\u53f7)"}})),define("2e/index",["1h"],((e,t,i)=>{let s,o=e("1h"),{State:r,node:d,Vframe:l,guid:a,config:n,toMap:c,has:p}=o,h=[],b={},g=e=>!e||!e.to&&!e.hidden;i.exports={_ev(){let e=!0;for(let t of h){if(!s[t.id].bJ&&!t.mini){e=!1;break}}return e},_ew(){for(let e of h)e.mini||this._kQ(e.id,!0);r.fire("ca")},_ex(){for(let e of h)e.mini||this._kR(e.id,!0);r.fire("ca")},_eF(){let e=d(n("rootId")),t=l.byNode(e),i=n("panels")||b;for(let e in i){let s=i[e];if(!s.hidden){let i=d(s.to);if(i){let{classList:o}=i;o.add("bK"),s.scrollable&&o.add("cA","cB","dC"),t.mount(i,"2e/"+e+"/index")}}}},_eE(){for(let e of h)e.show&&this._kR(e.id,!0);r.fire("ca")},_eB(){for(let e of h){let t=s[e.id];delete t.bJ,delete t._kS}},_kR(e,t){let i=s[e];if(!i.bJ){if(i.bJ=1,i._kS){let e=d(i._kS);e.style.display="block",l.byNode(e).invoke("_cj")}else{i._kS=a("_rdp_");let e=d(n("rootId"));e.insertAdjacentHTML("beforeend",`<div id="${i._kS}" class="cr ck ct di"></div>`);let t=l.byNode(e);i.close=()=>{this._kQ(i.id)},t.mount(d(i._kS),"2e/3s",i)}t||r.fire("ca")}},_kQ(e,t){let i=s[e];if(i.bJ){i.bJ=0;let e=d(i._kS);e.style.display="none",l.byNode(e).invoke("_ck"),t||r.fire("ca")}},_eo(e){s[e].bJ?this._kQ(e):this._kR(e)},_en(e){let t=s[e];if(t.bJ){let e=d(t._kS);l.byNode(e).invoke("_kT")}},_em(){if(!h._kU){h._kU=1;let e=n("panels")||b,t=r.get("bZ");n("getFieldUrl")&&g(e.data)&&h.push({title:"ks",icon:"",width:180,cm:1,height:t?120:270,show:1,scrollable:1,resizable:1,resizeY:!t,left:25,top:90,key:h.length+1,id:"bJ",view:"2e/data/index",help:"//github.com/xinglie/report-designer/issues/27"}),!t&&g(e.outline)&&h.push({title:"kA",icon:"",width:210,height:124,key:h.length+1,show:1,left:25,bottom:30,id:"bK",view:"2e/outline/index"}),g(e.props)&&h.push({title:"kB",icon:"",width:242,cm:1,height:120,right:10,top:90,key:h.length+1,show:1,scrollable:1,resizable:1,resizeY:!t,id:"bL",view:"2e/props/index"}),g(e.tree)&&h.push({title:"kE",icon:"",width:200,height:t?120:365,right:260,top:90,key:h.length+1,show:0,scrollable:1,resizable:1,resizeY:!t,id:"bM",view:"2e/tree/index"}),t||(g(e.record)&&h.push({title:"ky",icon:"",width:200,height:220,show:0,scrollable:1,right:260,bottom:30,key:h.length+1,id:"bN",view:"2e/record/index"}),g(e.element)&&h.push({title:"ku",icon:"",width:175,height:330,resizable:1,left:210,top:90,key:h.length+1,show:0,scrollable:1,resizeY:1,id:"bO",view:"2e/element/index"})),!t&&g(e.perf)&&h.push({title:"\u6027\u80fd",width:200,height:160,icon:"",show:0,left:390,top:90,key:h.length+1,id:"bP",view:"2e/perf/index"}),!t&&g(e.res)&&h.push({title:"\u8d44\u6e90",width:420,height:180,icon:"",show:0,left:t?215:245,bottom:30,key:h.length+1,id:"bQ",view:"2e/res/index"}),t||(h.push({width:96,height:8,center:1,unselectable:1,mini:1,show:1,right:280,bottom:50,id:"bR",view:"1g/2s"}),h.push({width:26,height:81,vertical:1,center:1,unselectable:1,mini:1,show:1,left:220,top:180,id:"bS",view:"1g/2m?v=1"}),h.push({width:26,height:81,vertical:1,center:1,unselectable:1,mini:1,show:1,right:350,top:180,id:"bT",view:"1g/2q?v=1"})),s=c(h,"id")}return h}}})),define("2e/3s",["1h","../1o/1q/cursor","../1o/1p/index","../1g/1j"],((e,t,i)=>{let s,o,r,d={class:"b9 bJ dF"},l={class:"cF cI ck"},a=e("1h"),n=e("../1o/1q/cursor"),c=e("../1o/1p/index"),p=e("../1g/1j"),h=document.documentElement,{min:b}=Math,{applyStyle:g,node:y,View:f,config:x,toTry:_,mark:u,State:m,Vframe:k,inside:w}=a;g("ic",".ip{background:#fffe;box-shadow:0 2px 4px 0 rgba(0,0,0,.3);transform:translate3d(0,0,0)}.iq{transition:none}.ir{height:18px;line-height:18px;background:#fa742b;color:#fff}.is{padding:0 5px;width:calc(100% - 36px)}.it{width:16px;height:14px;margin:0 1px;display:inline-flex;border-radius:2px}.it:hover{background:#ec5706}.iu{transition-duration:.25s}.iv{height:calc(100% - 18px)}.iw{-ms-scroll-chaining:none;overscroll-behavior:contain;content-visibility:auto}.ix{width:4px;background:#fa742b}.iy{height:4px;background:#fa742b}.iz{width:3px;cursor:ew-resize;inset:0 0 0 auto}.iA{height:3px;cursor:ns-resize;inset:auto 0 0}.iA:hover,.iz:hover,.iB{background:#fcb58f}");let v=18,j=[],K={_iE(e){j.push(e)},_dZ(e){for(let t=j.length;t--;)if(j[t]==e){j.splice(t,1);break}this._k0()},_k0(){for(let e=j.length;e--;)j[e]._k1(600+e)},_cw(e){if(j[j.length-1]!=e){for(let t=j.length;t--;)if(j[t]==e){j.splice(t,1);break}j.push(e),this._k0()}}};i.exports=f.extend({tmpl:(e,t,i,a,n,c,p)=>{let h,b,g,y,f,x,_,{unselectable:u,width:m,left:k,right:w,top:v,bottom:j,zIndex:K,shrink:R,th:J,resizable:M,height:L,cm:S,mini:X,vertical:V,center:Y,i18n:F,view:C,icon:T,title:z,hl:B,help:A,key:O,scrollable:N,resizeX:P,resizeY:I}=e;return _=[],X?(b="",b+=V?"iy cj":"ix ck",b+=" eb c4",y=[t("div",{title:F("kt"),"mx5-pointerdown":i+"\x1e1\x1e_k8()",class:b}),t("div",{"mx5-owner":i,class:"cE","mx5-view":C})],b="cF",b+=V?" cG":" ck",Y&&(b+=" cI"),_.push(t("div",{class:b},y))):(x=[],T&&(f=[t(0,T,1)],x.push(t("i",d,f))),x.push(t(0,F(z))),y=[t("div",{class:"c4 cE eb is",title:F("kt"),"mx5-pointerdown":i+"\x1e1\x1e_k8()"},x)],x=[],B&&A&&(f=[s||(s=t(0,"\ue65e"))],x.push(t("i",{class:"bJ c3 cI cZ dE it",title:F("kx",z),"mx5-click":i+"\x1e_ld({url:'"+p(A)+"'})"},f))),f=[o||(o=t(0,"\ue73a"))],b="bJ it dE c3 cZ cI",R&&(b+=" ca"),x.push(t("i",{"mx5-click":i+"\x1e_kT()",title:F(R?"kw":"kD",z,O),class:b},f)),f=[r||(r=t(0,"\ue712"))],x.push(t("i",{class:"bJ c3 cI cZ dE it","mx5-click":i+"\x1e_dQ()",title:F("du",z,O)},f)),y.push(t("div",l,x)),_.push(t("div",{class:"cF cz dF ir","mx5-contextmenu":i+"\x1e\x1e_eM()"},y)),y=[],b="iw cA cB ck",b+=N?" dC":" dA",y.push(t("div",{"mx5-owner":i,"mx5-view":C,class:b})),P&&y.push(t("div",{class:"ck cr cz eb iz",title:F("kv"),"mx5-pointerdown":i+"\x1e1\x1e_gI({w:1})","mx5-contextmenu":i+"\x1e1\x1e_eM()"})),_.push(t("div",{class:"d2 iv",id:"_rdc_"+i},y)),b="iA cr cz eb",!R&&I||(b+=" cw"),_.push(t("div",{title:F("kz"),"mx5-contextmenu":i+"\x1e\x1e_eM()","mx5-pointerdown":i+"\x1e\x1e_gI({h:1})",class:b}))),b="ip cr iu cu",u&&(b+=" cz"),g="width:"+m+"px;",g+=null!=k?"left:"+k:"right:"+w,g+="px;",g+=null!=v?"top:"+v+"px":"bottom:"+j+"px",g+=";z-index:"+K+";height:"+(R?J+"px":M?`max(calc(100% - ${L}px),${J}px)`:`${L+J}px`),h=[t("div",{id:"_rdp_"+i,"mx5-pointerdown":i+"\x1e_lc()","mx5-pointerover":i+"\x1e_le()","mx5-pointerout":i+"\x1e_le()","mx5-contextmenu":null==S&&i+"\x1e_eM()",class:b,style:g},_)],t(i,0,h)},init(e){K._iE(this),this.on("destroy",(()=>{K._dZ(this)})),this._k2=e.close,this.set(e)},async render(){await this.digest({hl:p.b1,th:v,zIndex:600+j.length});let e=y("_rdp_"+this.id),t=e.style;this._k3=e,this._k4=t,this._k5(),this._k6()},"_k8<pointerdown>"(e){this._k7=1;let t=this._k3,i=y(x("rootId"));t.classList.add("iq");let s,o=i.clientHeight,r=b(i.clientWidth,h.clientWidth),d=t.style,l=this.get("left");null==l&&(s=1,l=this.get("right"));let a,c=this.get("top");null==c&&(a=1,c=this.get("bottom"));let p=t.offsetWidth,g=t.offsetHeight,f=s?"right":"left",_=a?"bottom":"top",u=e.eventTarget;n._cj(u),m.set({bQ:1}),this._ci(e,(t=>{let i=(s?e.pageX-t.pageX:t.pageX-e.pageX)+l;i<0?i=0:i+p>r&&(i=r-p);let n=(a?e.pageY-t.pageY:t.pageY-e.pageY)+c;a&&n<0&&(n=0),n+g>o&&(n=o-g),!a&&n<0&&(n=0),d[f]=i+"px",d[_]=n+"px",this.set({[f]:i,[_]:n})}),(()=>{m.set({bQ:0}),delete this._k7,n._ck(),t.classList.remove("iq"),this._k6()}))},"_gI<pointerdown>"(e){let{w:t}=e.params;this._k7=1;let i=this.get("width"),s=this.get("height"),o=this.get("right"),r=e.eventTarget;r.classList.add("iB");let d=y(x("rootId")).clientHeight,l=this._k3,a=l.classList;a.add("iq");let c=l.getBoundingClientRect(),p=l.style;n._cj(r),m.set({bQ:1}),this._ci(e,(r=>{if(t){let t=r.pageX-e.pageX;t+i<100&&(t=100-i);let d=t+i;p.width=d+"px",(o||0===s)&&(p.right=o-t+"px",this.set({right:o-t})),this.set({width:d})}else{let t=e.pageY-r.pageY+s,i=d-t,o=d-c.y;i>o?t=d-o:i<v&&(t=d-v),p.height=`max(calc(100% - ${t}px),18px)`,this.set({height:t})}}),(()=>{m.set({bQ:0}),delete this._k7,delete this._k9,n._ck(),a.remove("iq"),r.classList.remove("iB"),this._k6()}))},_k1(e){this._k4.zIndex=e,this.set({zIndex:e})},_k5(){let e=u(this,"_l_");setTimeout((()=>{if(e()){let e=this._k3,t=y(x("rootId")),i=this.get("height")+v,s=this._k9||i,o=this.get("resizable"),r=t.clientHeight,d=b(t.clientWidth,h.clientWidth);o&&(s>r?(this._k9||(this._k9=s),e.style.height=`max(calc(100% - ${r-v}px),18px)`,this.set({height:r-v})):i!=s&&(delete this._k9,e.style.height=`max(calc(100% - ${s}px),18px)`,this.set({height:s})));let l,a=this.get("left");null==a&&(l=1,a=this.get("right"));let n,c,p=e.style,g=this.get("top");null==g&&(n=1,g=this.get("bottom"));let f=e.offsetHeight,_=e.offsetWidth;if(a+_>d&&(a=d-_,c=1),g+f>r&&(g=r-f,c=1),!l&&a<0&&(a=0,c=1),l&&a<0&&(a=0,c=1),n&&g<0&&(g=0,c=1),!n&&g<0&&(g=0,c=1),c){let e=n?"bottom":"top",t=l?"right":"left";p[e]=g+"px",p[t]=a+"px",this.set({[t]:a,[e]:g}),this._k6()}}}),400)},async _kT(){let e=this.get("shrink");await this.digest({shrink:!e}),this._k5();let t=y(`_rd_${this.id}_v`);if(t){let i=k.byNode(t);i&&i.invoke(e?"_cj":"_ck",!e)}},_k6(){if(p.co){let e=u(this,"_la");this._lb=setTimeout((()=>{if(e()){let e=this._k4,t=this.get("left"),i=this.get("width"),s=this.get("height"),o=this.get("top"),r=this.get("resizable"),d=this.get("shrink"),l=0,a="";null==t?(t=this.get("right"),0===t&&(l=i-10)):0===t&&(l=10-i),d||l||(null==o?(o=this.get("bottom"),0===o&&(a=s+"px")):0===o&&(a=r?"min(10px - 100%, 0px)":10-s-v+"px")),(l||a)&&(e.transform=`translate3d(${l}px,${a||0},0)`)}}),50)}},"_lc<pointerdown>"(e){K._cw(this)},_cj(){K._cw(this);let e=y(`_rd_${this.id}_v`);if(e){let t=k.byNode(e);t&&t.invoke("_cj",[this.get("shrink")])}},_ck(){let e=y(`_rd_${this.id}_v`);if(e){let t=k.byNode(e);t&&t.invoke("_ck")}},"_ld<click>"(e){window.open(e.params.url)},"_kT<click>"(){this._kT()},"_dQ<click>"(){let e=this._k2;e&&_(e)},"_le<pointerover,pointerout>"(e){if(!w(e.relatedTarget,e.eventTarget)){let t=this._k4;"pointerover"==e.type?(clearTimeout(this._lb),t.transform="translate3d(0,0,0)"):this._k7||this._k6()}},"$win<resize>"(){this._k5()}}).merge(c)})),define("2e/element/index",["../../1g/2c","../../27/index","1h"],((e,t,i)=>{let s,o={class:"cz d3 ic"},r={class:"c1 cF"},d={class:"bJ if"},l={class:"dF ig"},a=e("../../1g/2c"),n=e("../../27/index"),c=e("1h"),{applyStyle:p,State:h}=c;p("h8",".ic{color:#333}.id{height:22px;line-height:22px;border-radius:2px;background:#f8f8f8}.id:hover{background:#f0f0f0}.ie{width:50px;height:40px;display:grid;border-radius:2px;grid-template-rows:22px 18px;margin:2px;justify-items:center}.ie:hover{background:#e3e3e3}.if{grid-column:1/2;grid-row:1/2;align-self:flex-end}.ig{font-weight:400;line-height:12px;grid-column:1/2;grid-row:2/3}.ih{max-width:80%;max-height:80%}"),i.exports=a.extend({tmpl:(e,t,i,a,n,c)=>{let p,h,b,g,y,f,{elements:x,i18n:_}=e;f=[],g=[];for(let e=x.length,s=0;s<e;s+=1){let e=x[s];e.subs||e.bar||e.gap||(b=[],e.image?b.push(t("img",{class:"b8 cl ih",src:e.image},1)):(h=[t(0,e.icon||e.ctrl.icon,1)],b.push(t("i",d,h))),h=[t(0,_(e.title||e.ctrl.title))],b.push(t("b",l,h)),g.push(t("div",{class:"c3 cI cp cs eb ie","mx5-pointerdown":i+"\x1e_eb({src:'"+c(n,e,"a;."+s+".a:")+"'})"},b)))}f.push(t("div",r,g));for(let e=x.length,o=0;o<e;o+=1){let e=x[o];if(e.subs){b=[s||(s=t(0,"\ue63b"))],y="bJ dF dq",e.opened&&(y+=" cb"),g=[t("i",{class:y},b)],b=[t(0,e.title)],g.push(t("span",0,b)),f.push(t("div",{class:"c3 cF cI id","mx5-click":i+"\x1e_kD({item:'"+c(n,e,"a;."+o+".a:")+"'})"},g)),g=[];for(let s=e.subs,r=s.length,a=0;a<r;a+=1){let e=s[a];b=[],e.image?b.push(t("img",{class:"b8 cl ih",src:e.image},1)):(h=[t(0,e.icon||e.ctrl.icon,1)],b.push(t("i",d,h))),h=[t(0,_(e.title||e.ctrl.title))],b.push(t("b",l,h)),g.push(t("div",{class:"c3 cI cp cs eb ie","mx5-pointerdown":i+"\x1e_eb({src:'"+c(n,e,"a;."+o+".a-."+a+".a+")+"'})"},b))}y="cF c1",e.opened||(y+=" cw"),f.push(t("div",{class:y},g))}}return p=[t("div",o,f)],t(i,0,p)},init(){let e=this.render.bind(this);h.on("cg",e),this.on("destroy",(()=>{h.off("cg",e)}))},render(){let e=n.bJ();this.digest({elements:e})},"_kD<click>"({params:e}){e.item.opened=!e.item.opened,h.fire("cg")}})})),define("2e/data/branch",["1h"],((e,t,i)=>{let s,o,r=e("1h"),{View:d,State:l,dispatch:a}=r,n=(e,t)=>(t&&(e=e.replaceAll(t,`<span class="ia">${t}</span>`)),e);i.exports=d.extend({tmpl:(e,t,i,r,d,l,a)=>{let n,c,p,h,b=[],{list:g,indent:y,disabled:f,readonly:x,bindMap:_,ownerUrl:u,ownerId:m,highlight:k,kw:w}=e;for(let e=g.length,r=0;r<e;r+=1){let e=g[r],v=e.children;h=[],p=[],v?(c=[s||(s=t(0,"\ue63b"))],n="bJ dF dq",e.expand&&(n+=" cb"),p.push(t("i",{class:n},c))):o?p.push(o):(c=[t(0,"\ue69c")],p.push(o=t("i",{_:"a;",class:"bJ"},c))),c=[t(0,k(e.name,w),1)],p.push(t("span",{title:e.name,class:"cC"},c)),n="cF cI",(f||e.disabled||x||_[e.id])&&(n+=" h7"),n+=v?" h8 c3":" h6",h.push(t("div",{"mx5-click":v&&i+"\x1e_kD({item:'"+l(d,e,"a;."+r+".a:")+"'})",draggable:!v&&!_[e.id]&&!x&&!f&&!e.disabled&&"true","mx5-dragstart":!v&&i+"\x1e_kF({url:'"+a(u)+"',field:'"+l(d,e,"a;."+r+".a:")+"',id:'"+a(m)+"'})","mx5-dragend":i+"\x1e_kG()","mx5-pointerdown":!v&&!_[e.id]&&!x&&!f&&!e.disabled&&i+"\x1e_kH()",class:n},p)),v&&e.expand&&h.push(t("div",{"mx5-owner":i,$:"list,bindMap,disabled,readonly,kw","mx5-view":"2e/data/branch?indent=true&list="+l(d,v,"a;."+r+".a-")+"&bindMap="+l(d,_,"a+")+"&ownerId="+l(d,e.id,"a;."+r+".b_")+"&ownerUrl="+l(d,e.url,"a;."+r+".ba")+"&disabled="+l(d,f||e.disabled,"bb."+r+".bc")+"&readonly="+l(d,x,"bd")+"&kw="+l(d,w,"be"),class:"c_"})),b.push(t("div",{class:y&&"cf"},h))}return t(i,0,b)},init(){this.set({highlight:n})},assign(e){this.set(e)},render(){this.digest()},"_kD<click>"(e){let{item:t}=e.params,i=this.get("list");t.expand=!t.expand,this.digest({list:i})},"_kF<dragstart>"(e){let{params:t,eventTarget:i,pageX:s,pageY:o,dataTransfer:r}=e,d=i.getBoundingClientRect();l.set({b4:t,c_:{_kE:s-d.x,_dA:o-d.y}}),r.setData("text/plain","_jh"),l.fire("ce")},"_kG<dragend>"(){l.set({b4:null,ca:null}),l.fire("cf")},"_kH<pointerdown>"(e){a(this.root,"treeitempointerdown",{treeDOMNode:e.eventTarget})}})})),define("2e/data/index",["1h","../../1g/21","../../1g/1v","./branch"],((e,t,i)=>{let s;e("./branch");let o={class:"cs cz d3"},r={class:"dy"},d={value:"value"},l=e("1h"),a=e("../../1g/21"),n=e("../../1g/1v"),{State:c,View:p,applyStyle:h,toMap:b,node:g}=l;h("h5",".h6{border:solid 1px #e6e6e6;border-radius:2px;margin:2px 0;background-color:#fff}.h7{opacity:.4}.h8{height:22px;line-height:22px;border-radius:2px}.h8:hover{background:#f0f0f0}.h9{margin:-4px -4px 0;padding:4px;z-index:2}.i_{box-shadow:0 2px 2px #0002}.ia{color:#fa742b}.ib{right:8px;top:8px;opacity:.2}.ib:hover{opacity:.5}");let y=()=>{let e,t,i,s,o=c.get("bK");if(o&&1==o.length){e=o[0];let r=n.bS(e);if(t=r._c8,i=r._c9,s=r._d_,t){let{props:e,ctrl:i}=t;if(i.as&a.bN){let t=i._cF;t&&t(e)}}}return{_i9:e,_kI:t,_c9:i,_d_:s}},f=(e,t)=>{for(let i of e)i.children&&(i.id?(i.disabled=t&&i.id!=t,i.disabled&&(i.expand=!1)):f(i.children,t))};i.exports=p.extend({tmpl:(e,t,i,l,a,n)=>{let c,p,h,b,g=[],{error:y,canUseBind:f,kw:x,i18n:_,source:u,bindFieldsMap:m,readonly:k}=e;return y?g.push(t(0,y.message||y)):(b=[],f?(h=[t("input",{class:"bM bN cj",value:x,placeholder:"\u641c\u7d22\u6570\u636e\u6e90","mx5-input":i+"\x1e_kO()"},1,d)],p=[s||(s=t(0,"\ue624"))],c="bJ ib dG cr c3",x||(c+=" cw"),h.push(t("i",{"mx5-click":i+"\x1e_kN()",title:_("kV"),class:c},p)),b.push(t("div",{id:"si_"+i,class:"cL cM ci h9"},h)),u.length?b.push(t("div",{"mx5-owner":i,$:"source,bindFieldsMap,readonly,kw","mx5-view":"2e/data/branch?list="+n(a,u,"a;")+"&bindMap="+n(a,m,"a:")+"&readonly="+n(a,k,"a-")+"&kw="+n(a,x,"a+"),"mx5-treeitempointerdown":i+"\x1e_kH()","mx5-contextmenu":i+"\x1e_eM()"})):x&&(h=[t(0,"\u6682\u65e0\u201c"+x+"\u201d\u6570\u636e")],b.push(t("span",r,h)))):b.push(t(0,_("kn"))),g.push(t("div",o,b))),t(i,0,g)},init(){this._kJ=(e="")=>{let t,i=this._kK;if(e){t=[];let s=(t,i)=>{for(let o of t)if(o.name.includes(e))i.push(o);else if(o.children){let e=[],t=o.children;if(s(t,e),e.length){let t={...o,expand:!0,children:e};i.push(t)}}};s(i,t)}else t=i;this.digest({kw:e,source:t})},this._kL=this._bT((e=>{this._kJ(e)}),300);let e=this._bT(this._kM,30),t=({_bK:t})=>{if(t._e7||t._gu||t.bind){let{_i9:t,_kI:i,_c9:s,_d_:o}=y();e(t,i,s,o)}},i=this._bT((()=>{let{_i9:e,_kI:t,_c9:i,_d_:s}=y();this._kM(e,t,i,s)}),30);c.on("bM",i),c.on("bL",t),c.on("bO",i),c.on("bP",i),c.on("bR",i),this.on("destroy",(()=>{c.off("bM",i),c.off("bL",t),c.off("bO",i),c.off("bP",i),c.off("bR",i)}))},_kM(e,t,i,s){let o,r,d,l,n,{readonly:p}=c.get("bV"),h=!1,g={},y=p;if(c.get("cb")&&(h=!0),e){let c,p,{props:f,ctrl:x}=e;if(x.as&a.bN&&(r=1,d=f.bind,x._gF)){l=1;let{focusCol:e,focusRow:t}=f;n=x._gF(f,t,e)}t&&(c=t.ctrl,p=t.props,o=p.bind),c&&c.as&a.bN&&(y=!0,c._gF&&(y=c._gF(p,i,s)));let{bind:_}=f;if(x._gm&&(_=x._gm(f)),_){let{fields:e,id:t}=_;h=!0,t&&e&&e.length&&(g=b(e,"id"))}}let x=y&&o&&o.id;!x&&r&&d.id&&(l&&!n||(x=d.id));let _=this.get("source");f(_,x),this.digest({source:_,readonly:p,canUseBind:h,bindFieldsMap:g})},render(){let e=c.get("b1"),t=c.get("b2");t=(e=>{let t=[];for(let i of e){let e={expand:i.opened,name:"",id:"",url:"",children:[]};e.name=i.name,e.id=i.id,e.url=i.url,e.children.push(...i.fields),t.push(e)}return t})(t.slice(1)),this._kK=t,this.set({error:e,kw:"",source:t,selected:""});let{_i9:i,_kI:s}=y();this._kM(i,s)},"_kN<click>"(){this._kJ()},"_kO<input>"(e){let t=e.eventTarget;this._kL(t.value)},"_kH<pointerdown,treeitempointerdown>"(e){let t,{eventTarget:i,treeDOMNode:s}=e,o=(s||i).getBoundingClientRect(),r=this.root,d=r.getBoundingClientRect();if(o.y<d.y)t=o.y-d.y;else{let e=o.y+o.height,i=d.y+d.height;e>i&&(t=e-i)}t&&(r.scrollTop+=t)},_kP(){let{root:e,id:t}=this,i=g(`si_${t}`);if(i){let{classList:t}=i,s="i_";0!=e.scrollTop?t.add(s):t.remove(s)}},"$root<scroll>&{capture:true}"(){this._kP()}})})),define("2e/perf/index",["1h"],((e,t,i)=>{let s,o,r=e("1h"),{View:d,applyStyle:l,node:a,mark:n,mix:c}=r;l("ie",".iC{width:200px;height:30px}");let p=400,h=function(e){this._lf=[],this._bZ=e};c(h.prototype,{_lg(e){this._lf.length>p&&this._lf.shift(),this._lf.push(e)},_li(){let e=this._lf,t=this._bZ,i=e[0],s=e[0];for(let t=0;t<e.length;t++){let o=e[t];o<i&&(i=o),o>s&&(s=o)}let o=e[e.length-1];return{_jP:s.toFixed(t),_jQ:i.toFixed(t),_lh:o.toFixed(t)}}});let b=function(e){this._lj=[],this._lk=a(`${e}_text`),this._ll=a(`${e}_canvas`).getContext("2d")};c(b.prototype,{_lo(e){this._lj.length>p&&this._lj.shift(),this._lj.push(e),this._lm||(this._lm=1,this._ln())},_ln(){let e=this._lj,t=e.length,i=e[t-1],s=60/(1.2*i._jP);this._lk.innerHTML=`min:${i._jQ} max:${i._jP} now:${i._lh}`;let o=this._ll;o.fillStyle="#fafafa",o.fillRect(0,0,p,60),o.fillStyle="#FA742B";let r=p-t;for(let i=0;i<t;i++)o.fillRect(r+i,60,1,-e[i]._lh*s);this._lm=0}}),i.exports=d.extend({tmpl:(e,t,i)=>{let r,d;return s?r=[s]:(d=[t(0,"FPS")],r=[s=t("div",{_:"a;",class:"cF cZ dH"},d)]),r.push(t("div",{class:"cF cZ dF",id:i+"_fps_text"}),t("canvas",{width:400,height:60,class:"iC",id:i+"_fps_canvas"})),o?r.push(o):(d=[t(0,"Memory(MB)")],r.push(o=t("div",{_:"a:",class:"cF cZ dH"},d))),r.push(t("div",{class:"cF cZ dF",id:i+"_mem_text"}),t("canvas",{width:400,height:60,class:"iC",id:i+"_mem_canvas"})),t(i,0,r)},_cj(e){delete this._lp,this._lq||e||(this._lq=1,requestAnimationFrame(this._lr),this._ls())},_ck(){delete this._lq,this._lp=1},async render(){let e=n(this,"_bQ");if(await this.digest(),e()){let t=new h(0),i=new b(`${this.id}_fps`),s=[],o=0,r=d=>{if(e()&&!this._lp){let e=1/((d-(0===o?d:o))/1e3);if(e!==1/0){64===s.length&&s.shift(),s.push(e);let o=0;for(let e=0;e<s.length;e++)o+=s[e];let r=o/s.length;t._lg(r),i._lo(t._li())}o=d,requestAnimationFrame(r)}};this._lr=r;let d=new h(1),l=new b(`${this.id}_mem`),a=()=>{e()&&!this._lp&&performance.memory&&(d._lg(performance.memory.usedJSHeapSize/1048576),l._lo(d._li()),setTimeout(a,30))};this._ls=a,this._cj()}}})})),define("2e/outline/index",["1h","../../1g/1j","../../1o/1p/index","../../1o/1q/cursor"],((e,t,i)=>{let s={class:"cz ij"},o={class:"bJ in"},r=e("1h"),d=e("../../1g/1j"),l=e("../../1o/1p/index"),a=e("../../1o/1q/cursor"),{State:n,node:c,View:p,applyStyle:h,mark:b,LOW:g}=r,{min:y}=Math;h("ia",".ii{transition:width,height .25s}.ij{padding:2px 0}.ik{background:#edeef3;box-shadow:inset 1px 1px 6px 2px #dadada}.il{box-shadow:inset 0 0 1px 1px #fa742b}.im{background:#fcb58f}.in{transform:scale(.5);color:#fff}.io{border-bottom:dotted 1px #c8c8c8}");let f=[210,120];i.exports=p.extend({tmpl:(e,t,i)=>{let r,d,l,a,n,c,p,h,{width:b,height:g,centerMargin:y,page:f,pageWidth:x,unit:_,pageHeight:u,canvasMargin:m,elements:k,ratio:w,left:v,top:j,viewportWidth:K,viewportHeight:R}=e,J=f.pages;c=[];for(let e=0;e<J;e++)d="cr",e<J-1&&(d+=" io"),c.push(t("div",{style:"top:"+u*e+_+";width:"+x+_+";height:"+u+_,class:d}));for(let e=k.length,i=0;i<e;i+=1){let{id:e,props:s,type:r,ctrl:d}=k[i],p=s.width*w,h=s.height*w,b=s.radius||0;"circle"==r&&(b="50%"),a=[t(0,d.icon,1)],n=[t("i",o,a)],l="left:"+s.x*w+_+";top:"+s.y*w+_+";width:"+p+_+";height:"+h+_+";",s.rotate&&(l+="transform:rotate("+s.rotate+"deg);"),l+="border-radius:"+b+_,c.push(t("div",{class:"cF cI cZ cr dA im",style:l},n))}return p=[t("div",{class:"ct",style:"position:relative;background:"+f.background+";width:"+x+_+";height:"+u*J+_+";margin:"+m},c),t("div",{class:"c4 cr eb ii il",style:"left:"+v+"px;top:"+j+"px;width:"+K+"px;height:"+R+"px","mx5-pointerdown":i+"\x1e_kZ()"})],h=[t("div",{class:"cs dA dq ik",style:"width:"+b+"px;height:"+g+"px;margin:"+y},p)],r=[t("div",s,h)],t(i,0,r)},init(){let e=this._bT(this.render,200),t=this._kV.bind(this);n.on("bO",e,g),n.on("bP",e,g),n.on("bQ",e,g),n.on("bR",e,g),n.on("bW",e,g),n.on("bL",e,g),n.on("bT",t,g),this._kW=e,this.on("destroy",(()=>{n.off("bO",e),n.off("bP",e),n.off("bQ",e),n.off("bW",e),n.off("bL",e),n.off("bR",e),n.off("bT",t)}))},_kV(e){let t=this.get("ratio");if(t){let i,s;if(e)i=e.left,s=e.top;else{let e=this._kX;i=e.scrollLeft,s=e.scrollTop}let o=this.get("width"),r=this.get("height"),d=this.get("viewportWidth"),l=this.get("viewportHeight");this.digest({left:y(i*t,o-d),top:y(s*t,r-l)})}},render(){let e=b(this,"_bQ"),t=()=>{if(e()){if(!c("_rd_sc"))return void setTimeout(t,20);let e=n.get("bV"),i=n.get("bL"),s=this._kX;s||(s=this._kX=c("_rd_stage"));let o=s.scrollWidth,r=s.scrollHeight,l=f[0],a=l/o,p=a*r;p>f[1]&&(p=f[1],a=p/r,l=a*o);let h=a*e.width*i,b=a*e.height*i,g="";for(let e of d.b6)g+=a*e+"px ";let x=`${(f[1]-p)/2}px ${(f[0]-l)/2}px`,_=y(s.clientWidth,o)*a,u=y(s.clientHeight,r)*a;this.set({unit:n.get("bM"),width:l,height:p,page:e,pageWidth:h,pageHeight:b,ratio:a,elements:n.get("bX"),viewportHeight:u,viewportWidth:_,canvasMargin:g,centerMargin:x}),this._kV()}};setTimeout(t,20)},"_kZ<pointerdown>"(e){let t=this.get("left"),i=this.get("top"),s=this.get("viewportWidth"),o=this.get("viewportHeight"),r=this.get("width"),d=this.get("height"),l=c("_rd_stage"),p=this.get("ratio");n.set({bQ:1}),a._dh("move"),this._ci(e,(a=>{let n=t+a.pageX-e.pageX,c=i+a.pageY-e.pageY;n<0?n=0:n>r-s&&(n=r-s),c<0?c=0:c>d-o&&(c=d-o),l.scrollLeft=n/p,l.scrollTop=c/p,this._kY=1}),(()=>{n.set({bQ:0}),a._ck()}))},"$win<resize>"(){this._kW()}}).merge(l)})),define("2e/props/element",["1h","../../1g/1j","../../1g/21","../../1g/1t","../../1g/props","../../1g/1v","../../1g/1k","1o/39/index","1o/3o/index","1o/3b/index","1o/3e/style","1o/36/index","1o/3e/align","1o/3a/index","1o/3f/index","1o/3l/index","1o/3j/index","1o/38/style","1o/37/style","1o/37/h-operate","1o/37/v-operate","1o/38/operate","1o/38/border","1o/3k/operate","1o/3m/operate","1o/37/h-size","1o/37/v-size","1o/38/size","1o/38/share","1o/38/content","1o/3k/content","1o/3n/index","1o/3n/help","1o/3q/kp","1o/3q/mod","1o/3g/index","1o/3d/operate","1o/3d/content","1o/3b/series","1o/3g/fx","1o/3h/items","1o/37/tab","1o/37/tag"],((e,t,i)=>{let s,o;e("1o/39/index"),e("1o/3o/index"),e("1o/3b/index"),e("1o/3e/style"),e("1o/36/index"),e("1o/3e/align"),e("1o/3a/index"),e("1o/3f/index"),e("1o/3l/index"),e("1o/3j/index"),e("1o/38/style"),e("1o/37/style"),e("1o/37/h-operate"),e("1o/37/v-operate"),e("1o/38/operate"),e("1o/38/border"),e("1o/3k/operate"),e("1o/3m/operate"),e("1o/37/h-size"),e("1o/37/v-size"),e("1o/38/size"),e("1o/38/share"),e("1o/38/content"),e("1o/3k/content"),e("1o/3n/index"),e("1o/3n/help"),e("1o/3q/kp"),e("1o/3q/mod"),e("1o/3g/index"),e("1o/3d/operate"),e("1o/3d/content"),e("1o/3b/series"),e("1o/3g/fx"),e("1o/3h/items"),e("1o/37/tab"),e("1o/37/tag");let r={class:"cF cL cM ci dR iG"},d={class:"b6 cz d3 iD iF"},l={class:"cF cI iE"},a={class:"cn dk"},n={class:"b4 c3 cF cI cl"},c={checked:"checked"},p={value:"value"},h=e("1h"),b=e("../../1g/1j"),g=e("../../1g/21"),y=e("../../1g/1t"),f=e("../../1g/props"),x=e("../../1g/1v"),_=e("../../1g/1k"),{State:u,View:m,node:k,Vframe:w,config:v,mark:j,isFunction:K}=h;i.exports=m.extend({tmpl:(e,t,i,h,b,g,y)=>{let f,x,_,u,m,k,w,v=[],{useGroup:j,groups:K,selected:R,i18n:J,e:M,propTypes:L,he:S}=e;if(j&&K.length>1){u=[];for(let e=K.length,s=0;s<e;s+=1){let e=K[s];_=[t(0,e)],x="iH co c3",e==R&&(x+=" iI"),u.push(t("div",{title:e!=R&&J("kr",e),"mx5-click":e!=R&&i+"\x1e_jy({to:'"+y(e)+"'})",class:x},_))}v.push(t("div",r,u))}let X=M.ctrl,V=M.props;u=[],m=[t(0,J("kS"))],_=[t("span",a,m)],m=[t(0,J(X.title))],_.push(t("span",0,m)),u.push(t("li",l,_));for(let e=X.props,r=e.length,d=0;d<r;d+=1){let r=e[d];if((!j||r.group==R)&&r.type&&(!r._fZ||r._fZ(V)))if(r.type==L.c_)s?u.push(s):u.push(s=t("li",{_:"a;",class:"cD"}));else{let e=V[r.key];r.read&&(e=r.read(e,V)),_=[],r.tip&&(S||r.type!=L.b4)&&(m=[t(0,J(r.tip))],_.push(t("span",a,m))),k="";let s=V.locked||"x"==r.key&&V.pinX||"y"==r.key&&V.pinY||"rotate"==r.key&&(V.pinX||V.pinY);k+=" ";let l=r.type;r._hc&&(l=l(V)),l==L.bV?(m=[t(0,e)],x="",s&&(x+="dy"),_.push(t("span",{class:x},m))):l==L.bJ?(w="1o/39/index?value="+g(b,e,"a;."+r.key+".a:"),null!=(f=r.max)&&(w+="&max="+g(b,f,"a-."+d+".a+")),w+="&props="+g(b,V,"b_"),null!=(f=r.step)&&(w+="&step="+g(b,f,"a-."+d+".ba")),null!=(f=r.fixed)&&(w+="&fixed="+g(b,f,"a-."+d+".bb")),null!=(f=r.min)&&(w+="&min="+g(b,f,"a-."+d+".bc")),_.push(t("div",{"mx5-owner":i,$:"e",class:"bN cQ cs",disabled:s,"mx5-input":i+"\x1e_ie({key:'"+y(r.key)+"',use:'value',element:'"+g(b,M,"bd")+"',write:'"+g(b,r.write,"a-."+d+".be")+"'})","mx5-view":w}))):l==L.b5?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-input":i+"\x1e_ie({key:'"+y(r.key)+"',use:'range',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/3o/index?disabled="+g(b,s)+"&value="+g(b,e,"a;."+r.key+".a:")})):l==L.bK?(w="1o/3b/index?clear="+g(b,r.clear,"a-."+d+".bf")+"&color="+g(b,e,"a;."+r.key+".a:")+"&align=right&disabled="+g(b,s),null!=(f=r.alpha)&&(w+="&alpha="+g(b,f,"a-."+d+".bg")),_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-input":i+"\x1e_ie({key:'"+y(r.key)+"',use:'color',element:'"+g(b,M,"bd")+"'})","mx5-view":w}))):l==L.bL?(m=[t("input",{class:"cr do",type:"checkbox",checked:e,disabled:s&&!r.free,"mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',native:'checked',element:'"+g(b,M,"bd")+"',write:'"+g(b,r.write,"a-."+d+".be")+"'})"},1,c)],o?m.push(o):m.push(o=t("i",{_:"a:",class:"cs cz dp"})),_.push(t("label",n,m))):l==L.bO?_.push(t("textarea",{class:"bO cQ cT",disabled:s,"mx5-input":i+"\x1e_ie({key:'"+y(r.key)+"',native:'value',element:'"+g(b,M,"bd")+"'})",value:e},0,p)):l==L.bM?(w="1o/3e/style?disabled="+g(b,s)+"&value="+g(b,V,"b_"),null!=(f=r.shows)&&(w+="&shows="+g(b,f,"a-."+d+".bh")),_.push(t("div",{"mx5-owner":i,$:"e",class:"cF cQ","mx5-input":i+"\x1e_ie({use:'_',element:'"+g(b,M,"bd")+"'})","mx5-view":w}))):l==L.bN?_.push(t("div",{"mx5-owner":i,$:"e",class:"cF cQ","mx5-input":i+"\x1e_ie({use:'_',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/36/index?disabled="+g(b,s)+"&value="+g(b,V,"b_")})):l==L.ci?_.push(t("div",{"mx5-owner":i,$:"e",class:"cF cQ","mx5-input":i+"\x1e_ie({use:'_',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/3e/align?disabled="+g(b,s)+"&value="+g(b,V,"b_")+"&alignKey="+h(r.key)})):l==L.bQ?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',use:'value',element:'"+g(b,M,"bd")+"',write:'"+g(b,r.write,"a-."+d+".be")+"'})","mx5-view":"1o/3a/index?disabled="+g(b,s)+"&selected="+h(e)+"&props="+g(b,V,"b_")+"&list="+g(b,r.items,"a-."+d+".bi")+"&iconKey=icon&textKey="+h(r.textKey||"text")+"&valueKey="+h(r.valueKey||"value")})):l==L.bP?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',use:'src',element:'"+g(b,M,"bd")+"',write:'"+g(b,r.write,"a-."+d+".be")+"'})","mx5-view":"1o/3f/index?src="+h(e)+"&disabled="+g(b,s)})):l==L.bR?(m=[t(0,J("ko"))],_.push(t("button",{class:"bR bT c3 co",disabled:s,"mx5-click":i+"\x1e_lu({key:'"+y(r.key)+"',element:'"+g(b,M,"bd")+"'})"},m))):l==L.bS?_.push(t("input",{class:"bN",value:e,disabled:s,"mx5-input":i+"\x1e_ie({key:'"+y(r.key)+"',native:'value',element:'"+g(b,M,"bd")+"'})"},1,p)):l==L.bT?(w="1o/3l/index?data="+g(b,e,"a;."+r.key+".a:"),(f=r.max)&&(w+="&max="+g(b,f,"a-."+d+".a+")),w+="&disabled="+g(b,s),_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',use:'bindField',element:'"+g(b,M,"bd")+"',write:'"+g(b,r.write,"a-."+d+".be")+"'})","mx5-view":w}))):l==L.bU?(w="1o/3j/index?",null!=(f=r.min)&&(w+="min="+g(b,f,"a-."+d+".bc")+"&"),null!=(f=r.max)&&(w+="max="+g(b,f,"a-."+d+".a+")+"&"),w+="columns="+g(b,e,"a;."+r.key+".a:")+"&fields="+g(b,V.bind.fields,"bj")+"&disabled="+g(b,s),_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',use:'columns',element:'"+g(b,M,"bd")+"',write:'"+g(b,r.write,"a-."+d+".be")+"'})","mx5-view":w}))):l==L.bW?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'skin',element:'"+g(b,M,"bd")+"',write:'"+g(b,r.write,"a-."+d+".be")+"'})","mx5-view":"1o/38/style?disabled="+g(b,s)})):l==L.bY?_.push(t("div",{"mx5-owner":i,$:"e","mx5-change":i+"\x1e_ie({use:'rows',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/37/style?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):l==L.b0?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',size:1,operate:1,element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/37/h-operate?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):l==L.b2?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',size:1,operate:1,element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/37/v-operate?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):l==L.bX?(w="1o/38/operate?disabled="+g(b,s)+"&props="+g(b,V,"b_"),null!=(f=r._dE)&&(w+="&sub="+h(f)),_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',size:1,operate:1,element:'"+g(b,M,"bd")+"'})","mx5-view":w}))):l==L.cd?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/38/border?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):l==L.cb?(w="1o/3k/operate?disabled="+g(b,s)+"&props="+g(b,V,"b_"),null!=(f=r._dE)&&(w+="&sub="+h(f)),_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',operate:1,size:1,element:'"+g(b,M,"bd")+"'})","mx5-view":w}))):l==L.cl?(w="1o/3m/operate?disabled="+g(b,s)+"&props="+g(b,V,"b_"),null!=(f=r._dE)&&(w+="&sub="+h(f)),_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',operate:1,size:1,element:'"+g(b,M,"bd")+"'})","mx5-view":w}))):l==L.bZ?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',size:1,element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/37/h-size?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):l==L.b3?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',size:1,element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/37/v-size?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):l==L.b1?(w="1o/38/size?disabled="+g(b,s)+"&props="+g(b,V,"b_"),null!=(f=r._lv)&&(w+="&ah="+h(f)),_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',size:1,element:'"+g(b,M,"bd")+"'})","mx5-view":w}))):l==L.cm?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',size:1,element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/38/share?disabled="+g(b,s)+"&props="+g(b,V,"b_")+"&dataPad="+g(b,r.dataPad,"a-."+d+".bk")})):l==L.ca?_.push(t("div",{"mx5-owner":i,$:"e",class:"cS","mx5-change":i+"\x1e_ie({use:'rows',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/38/content?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):l==L.cc?_.push(t("div",{"mx5-owner":i,$:"e",class:"cS","mx5-change":i+"\x1e_ie({use:'rows',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/3k/content?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):S&&l==L.b4?(m=[t(0,e)],_.push(t("a",{href:"//"+e,class:"b7 cC cQ",title:e,target:"_blank",rel:"noopener noreferrer"},m))):l==L.b6?_.push(t("div",{"mx5-owner":i,$:"e","mx5-change":i+"\x1e_ie({use:'data',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/3n/index?disabled="+g(b,s)+"&data="+g(b,e,"a;."+r.key+".a:")})):l==L.b7?_.push(t("div",{"mx5-owner":i,$:"e",class:"cS","mx5-change":i+"\x1e_ie({use:'data',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/3n/help?disabled="+g(b,s)+"&data="+g(b,e,"a;."+r.key+".a:")})):l==L.b8?(w="1o/3q/kp?disabled="+g(b,s)+"&props="+g(b,V,"b_"),null!=(f=r.mod)&&(w+="&mod="+h(f)),null!=(f=r.min)&&(w+="&min="+g(b,f,"a-."+d+".bc")),_.push(t("div",{"mx5-owner":i,$:"e",class:"cS","mx5-change":i+"\x1e_ie({use:'kp',element:'"+g(b,M,"bd")+"',kp:1})","mx5-view":w}))):l==L.b9?_.push(t("div",{"mx5-owner":i,$:"e",class:"cS","mx5-change":i+"\x1e_ie({use:'mod',element:'"+g(b,M,"bd")+"',mod:1})","mx5-view":"1o/3q/mod?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):l==L.ce?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',use:'format',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/3g/index?format="+g(b,e,"a;."+r.key+".a:")+"&disabled="+g(b,s)})):l==L.cg?(w="1o/3d/operate?disabled="+g(b,s)+"&props="+g(b,V,"b_"),null!=(f=r._dE)&&(w+="&sub="+h(f)),_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'rows',size:1,operate:1,element:'"+g(b,M,"bd")+"'})","mx5-view":w}))):l==L.ch?_.push(t("div",{"mx5-owner":i,$:"e",class:"cS","mx5-change":i+"\x1e_ie({use:'rows',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/3d/content?disabled="+g(b,s)+"&props="+g(b,V,"b_")})):l==L.cj?_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({use:'colors',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/3b/series?colors="+g(b,e,"a;."+r.key+".a:")+"&disabled="+g(b,s)+"&multi="+g(b,r.multi,"a-."+d+".bl")})):l==L.cf?(w="1o/3g/fx?format="+g(b,e,"a;."+r.key+".a:")+"&disabled="+g(b,s),(f=r._jp)&&(w+="&defaultFx="+g(b,f,"a-."+d+".bm")),w+="&clear="+g(b,r.clear,"a-."+d+".bf"),_.push(t("div",{"mx5-owner":i,$:"e",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',use:'format',element:'"+g(b,M,"bd")+"'})","mx5-view":w}))):l==L.ck?_.push(t("div",{"mx5-owner":i,$:"e","mx5-change":i+"\x1e_ie({use:'items',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/3h/items?items="+g(b,e,"a;."+r.key+".a:")+"&disabled="+g(b,s)+"&mutual="+g(b,r.mutual&&r.mutual(V),"a-."+d+".bn")})):l==L.cn?_.push(t("div",{"mx5-owner":i,$:"e","mx5-change":i+"\x1e_ie({use:'rows',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/37/tab?props="+g(b,V,"b_")+"&disabled="+g(b,s)})):l==L.co&&_.push(t("div",{"mx5-owner":i,$:"e","mx5-change":i+"\x1e_ie({use:'words',element:'"+g(b,M,"bd")+"'})","mx5-view":"1o/37/tag?props="+g(b,V,"b_")+"&disabled="+g(b,s)})),x="iE cF ",r._gr?x+="dn":x+="cI",u.push(t("li",{class:x},_))}}return v.push(t("ul",d,u)),t(i,0,v)},init(){let e=this._bT(this.render,30);u.on("bL",e),u.on("bO",e),u.on("bM",e),this.on("destroy",(()=>{u.off("bL",e),u.off("bO",e),u.off("bM",e)})),this.set({he:b.b1,propTypes:f})},async render(){let e=u.get("bK");if(1==e.length){let t,i=e[0],s=b.cr,o=this.get("selected");s&&(t=x.ck(i.ctrl),t.includes(o)||(o=t[0])),this.digest({useGroup:s,groups:t,selected:o,e:i})}},async"_ie<input,change>"(e){let t,i,s,{key:o,use:r,element:d,native:l,write:a,size:n,kp:c,operate:p,mod:h}=e.params,b=0,{ctrl:f,props:m,id:v,type:R}=d,J=[d];if(r||l){let d,p,h=n||"width"==o||"height"==o||"rx"==o||"ry"==o;if(m.rotate){p=_.bK(m)._ct[0]}h&&(d=p);let y="x"==o||"y"==o,k=m.width,w=m.height,M=l?e.eventTarget[l]:e[r],L=j(this,"_cF");if(t={},i={[v]:1},s={[R]:1},r&&"_"!=r&&(t[r]=1),o&&(t[o]=1),a&&(M=await a(M,m,e,t)),L())if(k==m.width&&w==m.height||(d=p),y){let e=M-m[o];if(u.get("b0")){let t=u.get("bR")[v];if(t){let{bK:i}=x.bO();for(let s of t)if(s!=v){let t=i[s];J.push(t),(t.props.pinX&&"x"==o||t.props.pinY&&"y"==o)&&(e=0)}}}if(e)for(let t of J){let{ctrl:r,props:l,id:a,type:n}=t;i[a]=1,s[n]=1;let c=r._cE;K(c)&&(c=c(l));for(let t of c)t.use==o&&(l[t.key]+=e);r._cF&&r._cF(l,d,1),b=1}else this.render()}else if(o){let e;if(("width"==o||"height"==o)&&f._dd&g.bQ&&(e=m.height?m.width/m.height:0),m[o]=M,null!=e&&("width"==o?m.height=0==e?m.width:m.width/e:m.width=0==e?m.height:m.height*e),f._cF&&f._cF(m,1,d||c),d){let e=_.bK(m)._ct[0];m.x+=d.x-e.x,m.y+=d.y-e.y}b=1}else f._cF&&f._cF(m,1,d||c),b=1}if(b){u.fire("bL",{_dm:i,_dn:s,_bK:t});for(let e of J){let t=k(e.id);if(t){let i=w.byNode(t);i&&i.invoke("_cG",e)}}if(!e._kt){let e;e="x"==o||"y"==o?y.bU:n&&!p||"width"==o||"height"==o||"rx"==o||"ry"==o||"r"==o||"tfootSpacing"==o?y.ci:"rotate"==o?y.cf:c?y.cg:h?y.ch:"locked"==o?m.locked?y.b0:y.b1:y.cj;let t=x.bT(d);y.bJ(e,t,d.id+"cw"+o,500)}}},"_lu<click>"(e){let t=j(this,"_lt"),{key:i,element:s}=e.params,{props:o,ctrl:r}=s,d=_.bK(o)._ct[0],l=new Image,a=()=>{let e=b.bK(l.width),a=b.bK(l.height);if(t()&&(e!=o.width||a!=o.height)){o.width=e,o.height=a;let t=_.bK(o)._ct[0];o.x+=d.x-t.x,o.y+=d.y-t.y,r._cF&&r._cF(o),this.render(),u.fire("bL",{_dm:{[s.id]:1},_dn:{[s.type]:1},_bK:{_bL:1}});let l=k(s.id),n=w.byNode(l);n&&n.invoke("_cG",s);let c=x.bT(s);y.bJ(y.ci,c,s.id+"cw"+i,b.bR)}};l.onload=a,l.src=o[i],l.complete&&a()},"_jy<click>"({params:e}){this.digest({selected:e.to})}})})),define("2e/props/index",["1h","./element","./page"],((e,t,i)=>{e("./element"),e("./page"),Object.defineProperty(t,"__esModule",{value:!0});let s=e("1h"),{State:o,View:r,applyStyle:d}=s;d("ig",".iD{min-width:200px}.iE{line-height:24px;padding:2px 0}.iF{padding-bottom:200px}.iG{padding-top:4px;border-bottom:solid 1px #fa742b}.iH{height:25px;line-height:25px;margin:0 5px;padding:0 4px;min-width:50px;margin-bottom:-1px;border:solid 1px transparent;border-bottom:none}.iI{border-radius:2px 2px 0 0;background:#fff;border-color:#fa742b;color:#fa742b}"),i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,{single:r}=e;return o="",r||(o+="cw"),s=[t("div",{"mx5-owner":i,"mx5-view":"2e/props/element",class:o})],o="",r&&(o+="cw"),s.push(t("div",{"mx5-owner":i,"mx5-view":"2e/props/page",class:o})),t(i,0,s)},init(){let e=this._bT(this.render,30);o.on("bM",e),o.on("bO",e),this.on("destroy",(()=>{o.off("bM",e),o.off("bO",e)}))},render(){let e=1==o.get("bK").length;this.digest({single:e})}})})),define("2e/props/page",["1h","../../1g/1t","../../1g/props","../../1s/index","../../1g/1j","../../1g/1v","1o/39/index","1o/3b/index","1o/3f/index","1o/3a/index"],((e,t,i)=>{let s,o;e("1o/39/index"),e("1o/3b/index"),e("1o/3f/index"),e("1o/3a/index");let r={class:"cF cL cM ci dR iG"},d={class:"b6 cz d3 iD iF"},l={class:"cF cI iE"},a={class:"cn dk"},n={class:"b4 c3 cF cI cl"},c={value:"value"},p={checked:"checked"},h=e("1h"),b=e("../../1g/1t"),g=e("../../1g/props"),y=e("../../1s/index"),f=e("../../1g/1j"),x=e("../../1g/1v"),{State:_,View:u,mark:m}=h;i.exports=u.extend({tmpl:(e,t,i,h,b,g,y)=>{let f,x,_,u,m,k,w=[],{useGroup:v,groups:j,selected:K,i18n:R,ctrl:J,page:M,props:L}=e;if(v&&j.length>1){u=[];for(let e=j.length,s=0;s<e;s+=1){let e=j[s];_=[t(0,e)],x="iH co c3",e==K&&(x+=" iI"),u.push(t("div",{title:e!=K&&R("kr",e),"mx5-click":e!=K&&i+"\x1e_jy({to:'"+y(e)+"'})",class:x},_))}w.push(t("div",r,u))}u=[],m=[t(0,R("kS"))],_=[t("span",a,m)],m=[t(0,R(J.title))],_.push(t("span",0,m)),u.push(t("li",l,_));let S=M.readonly;for(let e=J.props,r=e.length,d=0;d<r;d+=1){let r=e[d];if((!v||r.group==K)&&r.type&&(!r._fZ||r._fZ(M)))if(r.type==L.c_)s?u.push(s):u.push(s=t("li",{_:"a;",class:"cD"}));else{let e=M[r.key];r.read&&(e=r.read(e)),_=[],r.tip&&(m=[t(0,R(r.tip))],_.push(t("span",a,m))),r.type==L.bV?(m=[t(0,e)],x="",S&&(x+="dy"),_.push(t("span",{class:x},m))):r.type==L.bJ?(k="1o/39/index?value="+g(b,e,"a;."+r.key+".a:"),null!=(f=r.max)&&(k+="&max="+g(b,f,"a-."+d+".a+")),null!=(f=r.step)&&(k+="&step="+g(b,f,"a-."+d+".b_")),null!=(f=r.fixed)&&(k+="&fixed="+g(b,f,"a-."+d+".ba")),null!=(f=r.min)&&(k+="&min="+g(b,f,"a-."+d+".bb")),_.push(t("div",{"mx5-owner":i,$:"page,ctrl",class:"bN cQ cs",disabled:S,"mx5-input":i+"\x1e_ie({key:'"+y(r.key)+"',write:'"+g(b,r.write,"a-."+d+".bc")+"',use:'value'})","mx5-view":k}))):r.type==L.bS?_.push(t("input",{class:"bN",value:e,"mx5-input":i+"\x1e_ie({key:'"+y(r.key)+"',native:'value'})",disabled:S},1,c)):r.type==L.bK?(k="1o/3b/index?",null!=(f=r.clear)&&(k+="clear="+g(b,f,"a-."+d+".bd")+"&"),k+="color="+g(b,e,"a;."+r.key+".a:")+"&align=right&disabled="+g(b,S,"be"),null!=(f=r.alpha)&&(k+="&alpha="+g(b,f,"a-."+d+".bf")),_.push(t("div",{"mx5-owner":i,$:"page,ctrl",class:"cQ","mx5-input":i+"\x1e_ie({key:'"+y(r.key)+"',use:'color'})","mx5-view":k}))):r.type==L.bP?_.push(t("div",{"mx5-owner":i,$:"page,ctrl",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',use:'src',write:'"+g(b,r.write,"a-."+d+".bc")+"'})","mx5-view":"1o/3f/index?src="+h(e)+"&disabled="+g(b,S,"be")})):r.type==L.bQ?_.push(t("div",{"mx5-owner":i,$:"ctrl,page",class:"cQ","mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',use:'value',write:'"+g(b,r.write,"a-."+d+".bc")+"'})","mx5-view":"1o/3a/index?selected="+h(e)+"&list="+g(b,r.items,"a-."+d+".bg")+"&textKey=text&valueKey=value&disabled="+g(b,r.disabled||S,"a-."+d+".bh")})):r.type==L.bL?(m=[t("input",{class:"cr do",type:"checkbox",disabled:S,checked:e,"mx5-change":i+"\x1e_ie({key:'"+y(r.key)+"',native:'checked',write:'"+g(b,r.write,"a-."+d+".bc")+"'})"},1,p)],o?m.push(o):m.push(o=t("i",{_:"a:",class:"cs cz dp"})),_.push(t("label",n,m))):r.type==L.bR&&(m=[t(0,R("ko"))],_.push(t("button",{class:"bR bT c3 co",disabled:S,"mx5-click":i+"\x1e_lu()"},m))),x="iE cF ",r._gr?x+="dn":x+="cI",u.push(t("li",{class:x},_))}}return w.push(t("ul",d,u)),t(i,0,w)},init(){let e=this.render.bind(this);_.on("bP",e),_.on("bO",e),_.on("bR",e),this.on("destroy",(()=>{_.off("bP",e),_.off("bO",e),_.off("bR",e)}));let t,i=_.get("bY"),s=f.cr,o=this.get("selected");s&&(t=x.ck(i),t.includes(o)||(o=t[0])),this.set({useGroup:s,groups:t,selected:o,props:g,ctrl:i})},render(){let e=_.get("bV"),t=e.width+"x"+e.height;e.paper=t,e.screen=t,this.digest({page:e})},async"_ie<input,change>"(e){let{key:t,use:i,native:s,write:o}=e.params,r=_.get("bV"),d=s?e.eventTarget[s]:e[i],l=m(this,"_cF");o&&(d=await o(d,r,e)),l()&&(r[t]=d,"unit"==t?_.fire("b8",{_ey:d}):_.fire("bP"),b.bJ(b.cj,y("g9"),"cx"+t,f.bR))},"_lu<click>"(e){let t=_.get("bV"),i=new Image,s=m(this,"_lt"),o=()=>{let e=f.bK(i.width),o=f.bK(i.height);!s()||e==t.backgroundWidth&&o==t.backgroundHeight||(t.backgroundWidth=e,t.backgroundHeight=o,_.fire("bP"),b.bJ(b.cj,y("g9")))};i.onload=o,i.src=t.backgroundImage,i.complete&&o()},"_jy<click>"({params:e}){this.digest({selected:e.to})}})})),define("2e/record/index",["1h","../../1g/1t","../../1g/1v"],((e,t,i)=>{let s,o={class:"cz iJ"},r={class:"bJ dF iM"},d={class:"cC"},l=e("1h"),a=e("../../1g/1t"),n=e("../../1g/1v"),{State:c,View:p,applyStyle:h,mark:b,node:g}=l;h("ik",".iJ{padding:5px 4px}.iK{color:#333;margin:1px 0;height:22px;line-height:22px;border-radius:2px}.iK:hover{background:#f0f0f0}.iL,.iL:hover{background:#fed6c0}.iM{margin:0 4px 0 2px;width:12px}.iN{visibility:hidden}.iK:hover .iN{visibility:visible}.iO{margin:0 4px 0 2px}"),i.exports=p.extend({tmpl:(e,t,i)=>{let l,a,n,c,p,h,{list:b,i18n:g,index:y,bottom:f}=e;p=[];for(let e=b.length;e--;){let o=b[e];h=g(o.b6,o.b7),n=[t(0,o.b5,1)],c=[t("i",{class:"bJ dF iM","mx5-click":e!=y&&i+"\x1e_lx({at:"+e+"})"},n)],n=[t(0,h)],c.push(t("div",{class:"cC cE","mx5-click":e!=y&&i+"\x1e_lx({at:"+e+"})"},n)),n=[s||(s=t(0,"\ue6b3"))],c.push(t("i",{class:"bJ dE dx iN iO",title:g("kU"),"mx5-click":i+"\x1e_ly({at:"+e+"})"},n)),a="iK cF c3 cI",e==y&&(a+=" iL"),e>y&&(a+=" dt"),p.push(t("div",{id:"h_"+i+"_"+e,title:g("kp",h),class:a},c))}return h=g(f.b6,f.b7),n=[t(0,f.b5,1)],c=[t("i",r,n)],n=[t(0,h)],c.push(t("div",d,n)),a="iK cF c3 cI",-1==y&&(a+=" iL"),p.push(t("div",{id:"h_"+i+"_-1","mx5-click":-1!=y&&i+"\x1e_lx({at:-1})",title:g("kp",h),class:a},c)),l=[t("div",o,p)],t(i,0,l)},init(){let e=this._bT(this.render,30);c.on("bO",e),c.on("b5",e),this.on("destroy",(()=>{c.off("bO",e),c.off("b5",e)}))},async render(e){let t=b(this,"_lw"),{_cO:i,_ek:s,_dU:o}=a.cn();o&&(await this.digest({list:i,index:s,bottom:o}),!t()||e&&"_dZ"==e._el||n.bU(`h_${this.id}_${s}`,this.root))},"_lx<click>"(e){if(!e._d4){let{at:t}=e.params;a.co(t)}},"_ly<click>"(e){e._d4=1;let{at:t}=e.params;a.cs(t)}})})),define("2e/res/index",["1h","../../1g/1j","../../1g/21","../../1g/1t","../../1g/20","../../1g/1v","../../27/index","../../1o/2d/index"],((e,t,i)=>{let s,o,r,d,l,a,n,c,p,h,b,g,y,f,x={class:"iP"},_={class:"iQ"},u=e("1h"),m=e("../../1g/1j"),k=e("../../1g/21"),w=e("../../1g/1t"),v=e("../../1g/20"),j=e("../../1g/1v"),K=e("../../27/index"),R=e("../../1o/2d/index"),J=(e,t)=>e+(Math.random()*(t-e+1)|0),{View:M,applyStyle:L,State:S,Vframe:X,type:V,isFunction:Y}=u;L("im",".iP{padding:5px 4px}.iQ{margin-top:5px}");let F=window.console;i.exports=M.extend({tmpl:(e,t,i)=>{let u,m,k,w,{d:v}=e;return w=[],s?w.push(s):(m=[t(0,'<a href="//space.bilibili.com/1699691485" class="b7" target="_blank" rel="noopener noreferrer">B\u7ad9\u6e90\u7801\u8bb2\u89e3\u89c6\u9891</a><a href="//github.com/xinglie/report-designer/issues/36" class="b7 cf" target="_blank" rel="noopener noreferrer">\u6e90\u7801\u8bb2\u89e3\u6587\u5b57\u7248</a><a href="//github.com/xinglie/report-designer/issues/44" class="b7 cf" target="_blank" rel="noopener noreferrer">\u5f00\u53d1\u65b0\u7684\u5143\u7d20</a>',1)],w.push(s=t("div",{_:"a;",class:"cF"},m))),o?w.push(o):w.push(o=t("div",{_:"a:",class:"cD"})),v?(r?w.push(r):(m=[t(0,"\u4ee5\u4e0b\u91c7\u7528console.log\u8f93\u51fa\uff0c\u9700\u8981\u6253\u5f00\u6d4f\u89c8\u5668\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u5728console\u9762\u677f\u67e5\u770b")],w.push(r=t("div",{_:"a-",class:"dF dy"},m))),k=[d||(d=t(0,"\u67e5\u770bState\u5bf9\u8c61"))],m=[t("button",{class:"bR bT c3","mx5-click":i+"\x1e_lz()"},k)],k=[l||(l=t(0,"\u67e5\u770bState\u4e2d\u7684\u6570\u636e"))],m.push(t("button",{class:"bR bT c3 cf","mx5-click":i+"\x1e_lA()"},k)),k=[a||(a=t(0,"\u67e5\u770b\u5386\u53f2\u8bb0\u5f55"))],m.push(t("button",{class:"bR bT c3 cf","mx5-click":i+"\x1e_lB()"},k)),k=[n||(n=t(0,"\u67e5\u770b\u7ec4\u4ef6\u7ed3\u6784"))],m.push(t("button",{class:"bR bT c3 iQ","mx5-click":i+"\x1e_lC()"},k)),k=[c||(c=t(0,"\u67e5\u770b\u8bbe\u8ba1\u533a\u5143\u7d20"))],m.push(t("button",{class:"bR bT c3 cf iQ","mx5-click":i+"\x1e_lD()"},k)),k=[p||(p=t(0,"\u67e5\u770b\u9009\u4e2d\u5143\u7d20"))],m.push(t("button",{class:"bR bT c3 cf iQ","mx5-click":i+"\x1e_lE()"},k)),k=[h||(h=t(0,"\u67e5\u770b\u526a\u5207\u677f"))],m.push(t("button",{class:"bR bT c3 iQ","mx5-click":i+"\x1e_lF()"},k)),k=[b||(b=t(0,"\u6e05\u7a7a\u526a\u5207\u677f"))],m.push(t("button",{class:"bR bT c3 cf iQ","mx5-click":i+"\x1e_lG()"},k)),k=[g||(g=t(0,"\u5411\u683c\u5b50\u5185\u6dfb\u52a0\u6587\u672c\u5143\u7d20"))],m.push(t("button",{class:"bR bT c3 cf iQ","mx5-click":i+"\x1e_lH()"},k)),k=[y||(y=t(0,"\u6dfb\u52a0\u5230\u8bbe\u8ba1\u533a"))],m.push(t("button",{class:"bR bT c3 iQ","mx5-click":i+"\x1e_lI()"},k)),w.push(t("div",_,m))):f?w.push(f):(m=[t(0,"\u5f00\u53d1\u7248\u672c\u63d0\u4f9b\u66f4\u591a\u7684\u529f\u80fd\u3001\u63a7\u5236\u793a\u4f8b\uff0c\u8054\u7cfb\u4f5c\u8005\u83b7\u53d6\u76f8\u5173\u8d44\u6e90\u3002")],w.push(f=t("div",{_:"a+",class:"dF dy"},m))),u=[t("div",x,w)],t(i,0,u)},render(){this.digest()},"_lz<click>"(){F.log(S)},"_lA<click>"(){F.log(S.get())},"_lB<click>"(){F.log(w.cn())},"_lC<click>"(){F.log(X.all())},"_lD<click>"(){F.log(S.get("bX"))},"_lE<click>"(){F.log(S.get("bK"))},"_lF<click>"(){let e=v._cK();if(e&&e.length){v._cL()?F.log("\u526a\u5207\u7684\u5143\u7d20",e):F.log("\u590d\u5236\u7684\u5143\u7d20",e)}else F.log("\u526a\u5207\u677f\u65e0\u5185\u5bb9")},"_lG<click>"(){v._bU()},"_lH<click>"(){let e,t=S.get("bK");if(t&&1==t.length){let{ctrl:i,props:s}=t[0];if(i.as&k.bJ){let{focusRow:t,focusCol:i,rows:o}=s;if(t>-1&&i>-1){e=1;let s=S.get("bV"),r={id:u.guid("text_"),type:"text",props:{x:m.bK(J(0,30)),y:m.bK(J(0,20)),text:"\u6d4b\u8bd5\u5185\u5bb9"}},{bJ:d}=K.bK([r],s,!0),l=o[t].cols[i];if(l.elements){let e=j.bR(d);l.elements.push(...d),S.fire("bW"),w.bJ(w.ce,e)}}}}e||this.alert("\u8bf7\u9009\u4e2d\u4e00\u4e2a\u5bb9\u5668\u7684\u683c\u5b50\u67e5\u770b\u6548\u679c")},"_lI<click>"(){let e=S.get("bX"),t=S.get("bL"),i=S.get("bV"),s=S.get("b9").text,o={id:u.guid("text_"),ctrl:s,type:"text",props:s._c4(0,0)};o.props.x=m.bK(J(0,30)),o.props.y=m.bK(J(0,20)),o.props.text="\u6d4b\u8bd5\u5185\u5bb9",o.props.ename="\u6d4b\u8bd5\u6587\u672c",i.readonly&&(o.props.readonly=!0);for(let e of s.props)Y(e._c5)?e._c5(o.props,t):e._c6&&(o.props[e.key]*=t);s._cF&&s._cF(o.props),e.push(o);let r=j.bT(o);S.fire("bW"),w.bJ(w.ce,r)}}).merge(R)})),define("2e/tree/branch",["1h","../../1g/21","../../1g/1t","../../1g/1v","./rect"],((e,t,i)=>{let s,o={class:"bJ dF iX"},r={class:"cC cE"},d=e("1h"),l=e("../../1g/21"),a=e("../../1g/1t"),n=e("../../1g/1v"),c=e("./rect"),{State:p,View:h}=d;i.exports=h.extend({tmpl:(e,t,i,d,l,a,n)=>{let c,p,h,b,g,y,f,x=[],{rows:_,i18n:u,rowIndex:m,colIndex:k,current:w,drag:v,index:j,onTop:K,map:R,icon:J,hodEnum:M}=e;for(let e=_.length,L=0;L<e;L+=1){for(let e=_[L].cols,S=e.length,X=0;X<S;X+=1){let{elements:_}=e[X];if(_&&_.length){f=[];for(let e=_.length;e--;){let x=_[e];c="";let S=x.props,V=x.ctrl,Y=x.id;c+=" ";let F=S.locked,C=S.readonly,T=S.rows,z=S.ename;z||(z=u(V.title)),y=[],g=[],J&&(b=[t(0,V.icon,1)],g.push(t("i",o,b))),b=[t(0,z)],g.push(t("div",r,b)),C||F||(b=[s||(s=t(0,"\ue6b3"))],g.push(t("i",{class:"bJ dE dx iU iX",title:u("kT"),"mx5-click":i+"\x1e\x1e_lP({element:'"+a(l,x,"a;."+L+".a:."+X+".a-."+e+".a+")+"'})"},b))),p="iT",p+=C?" dv":" c3",p+=" cF cI",R[Y]&&(p+=" ",p+=F?"iW":"iV"),h="",h+=C?""+u("kC"):""+z,y.push(t("div",{"mx5-pointerover":i+"\x1e_lM({element:'"+a(l,x,"a;."+L+".a:."+X+".a-."+e+".a+")+"',dest:'_rdm_"+n(Y)+"'})","mx5-pointerout":i+"\x1e_lN()","mx5-click":!C&&i+"\x1e_lO({element:'"+a(l,x,"a;."+L+".a:."+X+".a-."+e+".a+")+"',dest:'_rdm_"+n(Y)+"'})",class:p,title:h},g)),x.ctrl.as&M&&y.push(t("div",{"mx5-owner":i,$:"rows,map,icon",class:"cf","mx5-view":"2e/tree/branch?hid="+d(Y)+"&rows="+a(l,T,"a;."+L+".a:."+X+".a-."+e+".b_")+"&map="+a(l,R,"ba")+"&icon="+a(l,J,"bb")})),p="iS ci cF cG cs",m==L&&k==X&&w==e&&(p+=" iZ"),v&&m==L&&k==X&&e==j&&(p+=K?" i0":" i1"),f.push(t("div",{id:"te_"+Y,"mx5-dragstart":i+"\x1e_ji({index:"+e+",row:"+L+",col:"+X+"})","mx5-dragover":i+"\x1e_jj({index:"+e+",row:"+L+",col:"+X+"})",draggable:!F&&!C&&"true",class:p},y))}x.push(t("div",{class:"i2","mx5-dragend":i+"\x1e_i3()"},f))}}}return t(i,0,x)},init(){this.set({hodEnum:l.bJ})},assign(e){this.set(e)},render(){this.digest()},"_ji<dragstart>"(e){let t=p.get("cc");if(t&&t!=this.id)return;p.set({cc:this.id});let i=this,{params:s,dataTransfer:o}=e,{index:r,row:d,col:l}=s;i._jc=r,i._lJ=d,i._lK=l,this.digest({current:r,rowIndex:d,colIndex:l}),o.setData("text/plain","_jh")},"_jj<dragover>"(e){let t=p.get("cc");if(t&&t!=this.id)return;let i=this,{params:s,eventTarget:o,pageY:r}=e,{index:d,row:l,col:a}=s,n=i._jc;if(i._lJ===l&&i._lK===a&&n!=d){let e=o.getBoundingClientRect(),t=e.y+e.height/2>r,s=1;t?n==d+1&&(s=0):n==d-1&&(s=0),s?i.digest({onTop:t,drag:!0,index:d}):i.digest({drag:0})}else i.get("drag")&&i.digest({drag:0})},"_i3<dragend>"(){let e=p.get("cc");if(e&&e!=this.id)return;let t=this;t._lJ=-1,t._lK=-1;let i=t.get();if(i.drag){let e=t._jc,{rowIndex:s,colIndex:o,rows:r,index:d,onTop:l}=i,c=r[s].cols[o].elements,h=c[e];c.splice(d+(l?1:0),0,h),d<e?c.splice(e+1,1):c.splice(e,1),t.set({rows:r}),p.fire("bW",{_d0:"_lL"});let b=n.bT(h);a.bJ(a.bV,b)}t.digest({current:-1,drag:0}),p.set({cc:null}),this._ck()}}).merge(c)})),define("2e/tree/index",["1h","../../1g/1j","../../1g/21","../../1g/1v","../../1g/1t","../../1g/22","./rect","./branch"],((e,t,i)=>{let s;e("./branch");let o={class:"bJ dF iX"},r={class:"cC cE"},d=e("1h"),l=e("../../1g/1j"),a=e("../../1g/21"),n=e("../../1g/1v"),c=e("../../1g/1t"),p=e("../../1g/22"),h=e("./rect"),{State:b,View:g,applyStyle:y,mark:f,lowTaskFinale:x}=d;y("io",".iR{padding:5px 4px}.iS{color:#333;margin:1px 0}.iT{height:22px;line-height:22px;border-radius:2px}.iU{visibility:hidden}.iT:hover{background:#f5f5f5}.iT:hover .iU{visibility:visible}.iV,.iV:hover{background:#fed6c0}.iW,.iW:hover{background:#e5e5e5}.iX{margin:0 4px 0 2px}.iY{background:#fa742b}.iZ{opacity:.4}.i0{box-shadow:0 -1px #fa742b}.i1{box-shadow:0 1px #fa742b}.i2{border-top:dotted 1px #f5f5f5}"),i.exports=g.extend({tmpl:(e,t,i,d,l,a)=>{let n,c,p,h,b,g,y,f,{elements:x,i18n:_,current:u,drag:m,index:k,onTop:w,map:v,icon:j,hodEnum:K}=e;f=[];for(let e=x.length;e--;){let d=x[e];c="";let n=d.props,R=d.ctrl,J=d.id;c+=" ";let M=n.locked,L=n.readonly,S=n.rows,X=n.ename;X||(X=_(R.title)),y=[],g=[],j&&(b=[t(0,R.icon,1)],g.push(t("i",o,b))),b=[t(0,X)],g.push(t("div",r,b)),L||M||(b=[s||(s=t(0,"\ue6b3"))],g.push(t("i",{class:"bJ dE dx iU iX",title:_("kT"),"mx5-click":i+"\x1e\x1e_lP({element:'"+a(l,d,"a;."+e+".a:")+"'})"},b))),p="iT",p+=L?" dv":" c3",p+=" cF cI",v[J]&&(p+=" ",p+=M?"iW":"iV"),h="",h+=L?""+_("kC"):""+X,y.push(t("div",{"mx5-pointerover":i+"\x1e_lM({element:'"+a(l,d,"a;."+e+".a:")+"'})","mx5-pointerout":i+"\x1e_lN()","mx5-click":!L&&i+"\x1e_lO({element:'"+a(l,d,"a;."+e+".a:")+"'})",class:p,title:h},g)),d.ctrl.as&K&&y.push(t("div",{"mx5-owner":i,$:"elements,map,icon",class:"cf","mx5-view":"2e/tree/branch?rows="+a(l,S,"a;."+e+".a-")+"&map="+a(l,v,"a+")+"&icon="+a(l,j,"b_")})),p="iS ci cF cG cs",u==e&&(p+=" iZ"),m&&e==k&&(p+=w?" i0":" i1"),f.push(t("div",{id:"te_"+J,"mx5-dragstart":i+"\x1e_ji({index:"+e+"})","mx5-dragover":i+"\x1e_jj({index:"+e+"})",draggable:!M&&!L&&"true",class:p},y))}return n=[t("div",{class:"cz iR","mx5-dragend":i+"\x1e_i3()"},f)],t(i,0,n)},init(){this.set({icon:l.cs,hodEnum:a.bJ});let e=this._bT(this.render,30),t=t=>{let i=t._bK;(i.locked||i.ename||i.rows)&&e()};h._in(this),b.on("bO",e),b.on("bW",e),b.on("bM",e),b.on("bR",e),b.on("bL",t),this.on("destroy",(()=>{h._io(this),b.off("bO",e),b.off("bW",e),b.off("bM",e),b.off("bR",e),b.off("bL",t)}))},async render(e){let t=b.get("bX"),i=p.bN(),s=b.get("bK"),o=f(this,"_lw");await this.digest({map:i,elements:t}),await x();let r=o()&&1==s.length;if(!e||"bW"!=e.type||"_lQ"!=e._d0&&"_lL"!=e._d0||(r=!1),r){let e=s[0];n.bU("te_"+e.id,this.root)}},"_ji<dragstart>"(e){let t=b.get("cc");if(t&&t!=this.id)return;let{params:i,dataTransfer:s}=e;this.set({current:this._jc=i.index}),s.setData("text/plain","_jh")},"_jj<dragover>"(e){let t=b.get("cc");if(t&&t!=this.id)return;let i=this,{eventTarget:s,params:o,pageY:r}=e,{index:d}=o,l=i._jc;if(l!=d){let e=s.getBoundingClientRect(),t=e.y+e.height/2>r,o=1;t?l==d+1&&(o=0):l==d-1&&(o=0),o?i.digest({onTop:t,drag:!0,index:d}):i.digest({drag:0})}else i.digest({drag:0})},"_i3<dragend>"(e){let t=b.get("cc");if(t&&t!=this.id)return;let i=this,{drag:s,elements:o,onTop:r,index:d}=i.get();if(s){let e=i._jc,t=o[e];o.splice(d+(r?1:0),0,t),d<e?o.splice(e+1,1):o.splice(e,1),i.set({elements:o}),b.fire("bW",{_d0:"_lL"});let s=n.bT(t);c.bJ(c.bV,s)}i.digest({current:-1,drag:0}),this._ck()}}).merge(h)})),define("2e/tree/rect",["1h","../../1g/1j","../../1g/27","../../1g/1v","../../1g/1k","../../1o/3i/index"],((e,t,i)=>{let s,o=e("1h"),r=e("../../1g/1j"),d=e("../../1g/27"),l=e("../../1g/1v"),a=e("../../1g/1k"),n=e("../../1o/3i/index"),{node:c,config:p,guid:h,inside:b}=o,g=h("rp_"),{max:y}=Math,f={_e_(){c(g)||(s=c(p("rootId")),s.insertAdjacentHTML("beforeend",`<div class="cr dR iY iZ" id="${g}"></div>`))},_cj(e,t){let i,o=c(g).style,d=s.getBoundingClientRect(),l=getComputedStyle(s),n=parseInt(l.borderLeftWidth,10)||0,p=parseInt(l.borderTopWidth,10)||0,{props:h}=e,b=r.bX(h.x),f=r.bX(h.y),x=r.bX(h.width),_=r.bX(h.height);if(t){let e=c(t);i=e?e.getBoundingClientRect():{x:-1e5,y:-1e5}}else i=a.bQ({x:b,y:f});o.left=i.x-d.x-n-scrollX+"px",o.top=i.y-d.y-p-scrollY+"px",o.width=y(x,1)+"px",o.height=y(_,1)+"px";let u=h.rotate||0;o.transform=`rotate(${u}deg)`},_ck(){let e=c(g).style;e.left="-10000px",e.top="-10000px"}};i.exports={_in(e){f._e_(),n._in(),n._iE(e)},_io(e){n._io(),n._dZ(e),this._ck()},_ck(){f._ck()},_iD(e){return b(e,this.root)},"_lM<pointerover>"(e){if(!b(e.relatedTarget,e.eventTarget)){let{element:t,dest:i}=e.params;f._cj(t,i)}},"_lN<pointerout>"(e){b(e.relatedTarget,e.eventTarget)||f._ck()},"_lO<click>"(e){if(e._d4)return;let{params:t,shiftKey:i,ctrlKey:s,metaKey:o}=e,{element:r,dest:l}=t;d.bM(r,i||s||o),f._cj(r,l)},"_lP<click>"(e){e._d4=1;let{element:t}=e.params;l.ce(t,"_lQ"),f._ck()}}})),define("24/barcode",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.barcode||"//unpkg.com/jsbarcode@3.11.5/dist/")+"JsBarcode.all.js"];i.exports={_dn:[{value:"CODE128",text:"CODE128"},{value:"CODE128A",text:"CODE128A"},{value:"CODE128B",text:"CODE128B"},{value:"CODE128C",text:"CODE128C"},{value:"CODE39",text:"CODE39"},{value:"EAN2",text:"EAN2"},{value:"EAN5",text:"EAN5"},{value:"EAN8",text:"EAN8"},{value:"EAN13",text:"EAN13"},{value:"ITF",text:"ITF"},{value:"ITF14",text:"ITF14"},{value:"MSI",text:"MSI"},{value:"MSI10",text:"MSI10"},{value:"MSI11",text:"MSI11"},{value:"MSI1010",text:"MSI1010"},{value:"MSI1110",text:"MSI1110"},{value:"UPC",text:"UPC"},{value:"UPCE",text:"UPCE"},{value:"upce",text:"UPC-E"},{value:"codabar",text:"codabar"},{value:"pharmacode",text:"pharmacode"},{value:"GenericBarcode",text:"GenericBarcode"}],_f1:()=>o("JsBarcode",l)}})),define("24/cell",["1h"],((e,t,i)=>{let s=e("1h"),{guid:o}=s;i.exports={_gH:300,_gG:100,_hY:20,_h0:20,text:{textLetterspacing:0,textForecolor:"#000000",textFontsize:14,textFontfamily:"Microsoft YaHei",textStyleBold:!1,textStyleUnderline:!1,textStyleItalic:!1,textStyleStrike:!1,textAutoReturn:!0,textContent:"",textFormat:""},image:{imageContent:""},barcode:{barcodeLineWidth:2,barcodeColor:"#000000",barcodeFormat:"code128",barcodeShowText:!0,barcodeContent:""},qrcode:{qrcodeContent:""},input:{inputText:"",inputPlaceholder:"",inputMarkAs:"",inputClassName:"",inputName:"",inputMultiline:!1,inputFontsize:14,inputFontfamily:"Microsoft YaHei",inputLetterspacing:0,inputForecolor:"#000000",inputTextAlign:"left"},dropdown:{dropdownName:o("rd-dropdown-"),dropdownMarkAs:"",dropdownClassName:"",dropdownMultipleSelect:!1,dropdownLetterspacing:0,dropdownItems:[{text:"\u9009\u9879",disabled:!1,checked:!0,value:"dropdown"}],dropdownForecolor:"#000000",dropdownFontsize:14,dropdownFontfamily:"Microsoft YaHei"}}})),define("24/chart",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.chartjs||"//unpkg.com/chart.js@3.7.0/dist/")+"chart.min.js"];i.exports=()=>o("Chart",l)})),define("24/35",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.ckeditor||"//ckeditor.com/assets/libs/ckeditor5/31.1.0/")+"ckeditor.js"];i.exports=()=>o("CKEditor",l)})),define("24/3c",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=d&&d.codemirror||"//cdn.jsdelivr.net/npm/codemirror@5.65.0/",a=[l+"lib/codemirror.min.css",l+"lib/codemirror.min.js"],n=[l+"mode/javascript/javascript.min.js",l+"mode/xml/xml.min.js",l+"mode/css/css.min.js",l+"mode/htmlmixed/htmlmixed.min.js"];i.exports=()=>o("CodeMirror",n,a)})),define("24/30",["1h","../1g/2b"],((e,t,i)=>{let s=e("1h"),o=e("../1g/2b"),r={},{random:d}=Math,{type:l,config:a,isFunction:n,has:c}=s,p={},h=e=>{let t=e.id+"~"+e.url,i=e.url,s=a("rebuildBindUrl");return n(s)&&(p[t]?i=p[t]:(i=s(e),p[t]=i)),i};i.exports={_lX(e){let t=h(e);return r[t]},_gj:e=>new Promise((t=>{let i=h(e),s=r[i];if(s||(s={},r[i]=s),s._mD)t(s);else if(s._mE)s._mE.push(t);else{s._mE=[t],(new o).all({name:"_eS",url:i},((e,t)=>{let i=t.get("data");if(d()<.1&&"Array"==l(i)){let e=[];for(let t of i)if("Object"==l(t)){let i={};for(let e in t){let s=t[e];"Number"==l(s)?i[e]=s+10*d()|0:"String"!=l(s)||s.startsWith("//")||s.startsWith("http://")||s.startsWith("https://")?i[e]=s:i[e]=s.substring(1)}e.push(i)}else e.push(t);i=e}s._eO=i,s._mD=1,s._eN=null==e?void 0:e.message;for(let e of s._mE)e(s);delete s._mE}))}})),_mz(e,t,i){let s=r[e];s||(s={},r[e]=s),s._eO=t,s._mD=1,s._eN=i},_bU(){for(let e in r)delete r[e]},_mA:e=>c(r,e),_mF:h}})),define("24/33",["1h","../1g/1j","../1g/21","../1g/1v","../1g/1t","../1g/1u","../1g/29","../1g/1k","../1o/1q/cursor","../1o/1q/tip"],((e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let s=e("1h"),o=e("../1g/1j"),r=e("../1g/21"),d=e("../1g/1v"),l=e("../1g/1t"),a=e("../1g/1u"),n=e("../1g/29"),c=e("../1g/1k"),p=e("../1o/1q/cursor"),h=e("../1o/1q/tip"),{atan2:b,PI:g,sin:y,cos:f,max:x,min:_}=Math,{node:u,State:m,has:k,inside:w}=s,{MAX_VALUE:v}=Number;i.exports={assign(e){this.set(e),this._gP()},async _cG(e){await this.digest({element:e})},_hI(e){if(!e._kp){let t=[],i=1;for(;;){let s="ctrl"+i++;if(!k(e,s+"X"))break;t.push(s)}e._kp=t}return e._kp},_kv(e){if(!e._mG){let t=[],i=1;for(;;){let s="mod"+i++;if(!k(e,s+"X")&&!k(e,s+"Y"))break;t.push(s)}e._mG=t}return e._mG},_hM(e){if(!e._kq){let t=[{key:"x",use:"x"},{key:"y",use:"y"}],i=this._hI(e);for(let e of i)t.push({key:e+"X",use:"x"},{key:e+"Y",use:"y"});e._kq=t}return e._kq},"_gY<pointerdown>"(e){e._d4=1;let t=this,i=t.get("element"),{props:s,ctrl:r}=i,{rotate:a,x:n,y:y,width:f,height:x}=s;f=o.bX(f),x=o.bX(x),n=o.bX(n),y=o.bX(y),m.fire("bY",{show:1,size:1});let _,u,k=n+f/2,w=y+x/2,{altKey:v,pageX:j,pageY:K}=e,R=c.bP(t.root,{x:j,y:K,f:1}),J=b(R.y-w,R.x-k)-a*g/180,M=e.eventTarget,L=m.get("bV").snapElement,S=L?v:!v,X=()=>{if(!u)return;_||(p._cj(M),_=1);let{pageX:e,pageY:o}=u;R=c.bP(t.root,{x:e,y:o,f:1});let l=b(R.y-w,R.x-k);l=180*(l-J)/g+360|0,S||(l=d.cm(l)),l%=360,s.rotate=l,r._cF&&r._cF(s),this.digest({element:i}),m.fire("bL",{_dm:{[i.id]:1},_dn:{[i.type]:1},_bK:{_bN:1}}),h._df(`${s.rotate}\xb0`),h._dl(e,o)},V=e=>{S=L?e.bP:!e.bP,X()};m.on("bS",V),t._ci(e,(e=>{u=e,X()}),(()=>{if(m.off("bS",V),_&&(p._ck(),a!=s.rotate)){let e=d.bT(i);l.bJ(l.cf,e)}m.fire("bY",{hide:1}),h._ck()}))},"_gI<pointerdown>"(e){if(e.button||e._d4)return;e._d4=1;let t=this,i=t.get("element"),{props:s,ctrl:a}=i;m.fire("bY",{show:1,size:1});let{rotate:b,width:u,height:w}=s;null==b&&(s.rotate=b=0);let j,K,R,{params:J,pageX:M,pageY:L,shiftKey:S,altKey:X,eventTarget:V}=e,{key:Y}=J,F=c.bK(s),[C,T]=Y,z=c.bT(Y),B=F._ct[z],A=m.get("bL"),O=0,N=0,P=v,I=v;for(let e of a.props)if("width"==e.key?(j=1,k(e,"min")&&(O=e.min(s)*A),k(e,"max")&&(P=e.max(s)*A)):"height"==e.key&&(K=1,k(e,"min")&&(N=e.min(s)*A),k(e,"max")&&(I=e.max(s)*A)),j&&K)break;let W,Z,H,$,U,E,Q={x:M,y:L},q="m"!=T,D="m"!=C,G="l"==T?-1:1,ee="t"==C?-1:1,te=x(O/u,N/w),ie=_(P/u,I/w),se=a._dd&r.bQ,oe=o.cc,re=m.get("bV").snapElement,de=re?X:!X;if(oe){let e=this.get("maskId"),{bJ:t}=d.bO(),s=n.bJ(t,e,i);if(Z=s.bJ,H=o.cl*A,e){let e=s.bX,t=s.bU;$=e.x-t.x,U=e.y-t.y}}let le=async()=>{if(!W)return;R||(p._cj(V),R=1);let{pageX:e,pageY:r}=W,d={x:e,y:r};E&&(d.y+=E.bJ,d.x+=E.bK);let l=c.bS(d,Q),x=c.bX(d,Q),_=g/180*(l-b),k=o.bK(y(_)*x),v=o.bK(f(_)*x),j=u+(q?v:0)*G,K=w+(D?k:0)*ee;j<O?j=O:j>P&&(j=P),K<N?K=N:K>I&&(K=I);let J=0;if(S||se){let e;J="m"==T?1:"m"==C||u>=w?2:1,1==J?w?e=K/w:(e=1,J=0):u?e=j/u:(e=1,J=0),e<te?e=te:e>ie&&(e=ie),j=u*e,K=w*e}if(oe){let e=n.bQ(Z,B,Y,b,j,K,H,O,P,N,I,J,u,w,te,ie,de,$,U);e._eX&&(j=e._eY,K=e._eZ)}if(s.width!=j||s.height!=K){R=j!=u||K!=w?2:1,s.width=j,s.height=K;let e=c.bK(s)._ct[z],o=B.x-e.x,r=B.y-e.y;s.x+=o,s.y+=r,a._cF&&a._cF(s),await t.digest({element:i}),m.fire("bL",{_dm:{[i.id]:1},_dn:{[i.type]:1},_bK:{_bM:1}})}E&&!E.bL&&(E.bL=1,E.bM());let M=`${c.bM(j)} x ${c.bM(K)}`;h._df(M),h._dl(e,r)},ae=e=>{E=e,le()},ne=e=>{S=e.bN,de=re?e.bP:!e.bP,le()};m.on("bS",ne),m.on("bZ",ae),t._ci(e,(e=>{m.fire("b0",e),W=e,le()}),(()=>{if(m.off("bS",ne),m.off("bZ",ae),m.fire("b1"),R&&p._ck(),2==R){let e=d.bT(i);l.bJ(l.ci,e)}m.fire("bY",{hide:1}),oe&&m.fire("bJ"),h._ck()}))},"_gZ<pointerdown>"(e){e._d4=1;let t,i=this.get("element"),{props:s,ctrl:r}=i;m.fire("bY",{show:1,size:1});let{altKey:a,params:b,eventTarget:g}=e,{key:y}=b,{x:f,y:x,width:_,height:u,rotate:k}=s,w=s[`${y}X`],v=s[`${y}Y`];_=o.bX(_),u=o.bX(u),f=o.bX(f),x=o.bX(x),k=k||0;let j={x:f+_/2,y:x+u/2},K=m.get("bL");s._gQ=y,this.digest({element:i}),m.fire("bL",{_dm:{[i.id]:1},_dn:{[i.type]:1},_bK:{_mH:1}});let R,J,M,L=o.cc,S=m.get("bV").snapElement,X=S?a:!a;if(L){let{bJ:e}=d.bO(),t=n.bJ(e,null,i);R=t.bJ,J=o.cl*K}let V,Y=c.bJ(),F=async()=>{if(!M)return;t||(p._cj(g),t=1);let{pageX:e,pageY:r}=M,d={x:e-Y.x-scrollX,y:r-Y.y-scrollY};if(V&&(d.y+=V.bJ,d.x+=V.bK),L){let e=n.bS(R,d.x,d.y,J,X);e._eX&&(d.x=e._e0,d.y=e._e1)}let l=c.bS(d,j),{y:a,x:b}=c.bU(d,j,l-k);s[`${y}X`]=o.bK(b),s[`${y}Y`]=o.bK(a),await this.digest({element:i}),m.fire("bL",{_dm:{[i.id]:1},_dn:{[i.type]:1},_bK:{_mI:1}}),V&&!V.bL&&(V.bL=1,V.bM());let f=`${c.bM(s[`${y}X`])} , ${c.bM(s[`${y}Y`])}`;h._df(f),h._dl(e,r)},C=e=>{V=e,F()},T=e=>{X=S?e.bP:!e.bP,F()};m.on("bS",T),m.on("bZ",C),this._ci(e,(e=>{m.fire("b0",e),M=e,F()}),(()=>{if(m.off("bS",T),m.off("bZ",C),m.fire("b1"),p._ck(),t&&(r._cF(s,0,k),this.digest({element:i}),m.fire("bL",{_dm:{[i.id]:1},_dn:{[i.type]:1},_bK:{_bP:1}}),s[`${y}X`]!=w||s[`${y}Y`]!=v)){let e=d.bT(i);l.bJ(l.cg,e)}m.fire("bY",{hide:1}),L&&m.fire("bJ"),h._ck()}))},"_gS<pointerover>"(e){let t=u(`_rd_t_${this.id}`);t&&(t.innerHTML=e.eventTarget.getAttribute("title"))},"_gU<pointerout>"(){let e=u(`_rd_t_${this.id}`);e&&(e.innerHTML="")},"_gW<input>"(e){let t=this.get("element"),{props:i}=t;i.text=e.eventTarget.value,this._cG(t),m.fire("bL",{_dm:{[t.id]:1},_dn:{[t.type]:1},_bK:{_mJ:1}});let s=d.bT(t);l.bJ(l.cj,s,t.id,o.bR)},"_gX<keyup>"(e){if(e.code==a.bZ){let e=this.get("element"),{props:t}=e;t._df=0,this._cG(e)}},"_hx<pointerover>"(e){if(this["_gS<pointerover>"](e),!w(e.relatedTarget,e.eventTarget)){let t=this.get("element"),{props:i}=t;i._hu=e.params.key,this._cG(t),m.fire("bL",{_dm:{[t.id]:1},_dn:{[t.type]:1},_bK:{_hu:1}})}},"_hy<pointerdown>"(e){e._d4=1;let t=this.get("element"),{ctrl:i}=t,{key:s}=e.params;i._hy(t,e,s,this)},"_fn<pointerdown,contextmenu>"(e){e._d4=1}}})),define("24/2v",["1h","../1g/1t","../1g/1v","../1g/22","../1o/1p/index"],((e,t,i)=>{let s=e("1h"),o=e("../1g/1t"),r=e("../1g/1v"),d=e("../1g/22"),l=e("../1o/1p/index"),{State:a}=s;i.exports={"_g_<dragenter>"(e){let t=this.get("props");if(!t.locked&&!this._f0(t)&&(e._d4=1,l._gs(this))){a.get("b4")&&this.digest({enter:1})}},"_ga<dragleave>"(e){let t=this.get("enter");l._gt(this)&&t&&this.digest({enter:0})},"_gb<drop>&{passive:false}"(e){this._cq(e),l._i4(this);let t=this.get("enter"),i=a.get("b4");if(i&&t){e._d4=1;let t=this.get("props"),{bind:s}=t,l=this.get("element"),{id:n,url:c,fields:p}=s,h=JSON.stringify([n,c,...p]),{id:b,url:g,field:y}=i;if(h!=JSON.stringify([b,g,y]))s.id=b,s.url=g,s.fields=[y],d.bJ(l),a.fire("bL",{_dm:{[l.id]:1},_dn:{[l.type]:1},_bK:{_gu:1}}),this.assign({props:t}),o.bJ(o.cj,r.bT(l));else if(d.bJ(l)){let e=r.bT(l);o.bJ(o.bT,e)}this.set({enter:0}),this.render()}}}})),define("24/echarts",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.echart||"//unpkg.com/echarts@5.2.2/dist/")+"echarts.min.js"];i.exports=()=>o("echarts",l)})),define("24/42",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.filesaver||"//unpkg.com/file-saver@2.0.5/dist/")+"FileSaver.min.js"];i.exports=()=>o("saveAs",l)})),define("24/format",["1h"],((e,t,i)=>{let s=e("1h"),o=[{title:"\u65e0\u5c0f\u6570",format:".",example:"0"},{title:"\u4e00\u4f4d\u5c0f\u6570",format:".#",example:"0.1"},{title:"\u4e24\u4f4d\u5c0f\u6570",format:".##",example:"0.01"},{title:"\u4e09\u4f4d\u5c0f\u6570",format:".###",example:"0.001"},{title:"\u56db\u4f4d\u5c0f\u6570",format:".####",example:"0.0001"}],r=[{title:"\u6570\u5b57",id:"number",groups:[{title:"\u6574\u6570",list:[{title:"\u5343\u5206\u4f4d",format:"#,###",example:"1,000"},{title:"\u4e07\u5206\u4f4d",format:"#,####",example:"1,0000"},{title:"\u4e07\u5206\u4f4d",format:"#'####",example:"1'0000"},{title:"\u767e\u5206\u6bd4",format:"#%",example:"100%"},{title:"\u5343\u5206\u6bd4",format:"#\u2030",example:"1000\u2030"}]},{title:"\u5c0f\u6570",list:o}]},{title:"\u8d27\u5e01",id:"currency",groups:[{title:"\u524d\u7f00",list:[{title:"\xa5\u4eba\u6c11\u5e01",format:"^\xa5"},{title:"$\u7f8e\u5143",format:"^$"},{title:"\u20ac\u6b27\u5143",format:"^\u20ac"},{title:"\uffe1\u82f1\u78c5",format:"^\uffe1"},{title:"\u0e3f\u6cf0\u94e2",format:"^\u0e3f"}]},{title:"\u6574\u6570",list:[{title:"\u5343\u5206\u4f4d",format:"#,###",example:"1,000"},{title:"\u4e07\u5206\u4f4d",format:"#,####",example:"1,0000"},{title:"\u4e07\u5206\u4f4d",format:"#'####",example:"1'0000"}]},{title:"\u5c0f\u6570",list:o},{title:"\u540e\u7f00",list:[{title:"\u4eba\u6c11\u5e01\xa5",format:"\xa5"},{title:"\u7f8e\u5143$",format:"$"},{title:"\u6b27\u5143\u20ac",format:"\u20ac"},{title:"\u82f1\u78c5\uffe1",format:"\uffe1"},{title:"\u6cf0\u94e2\u0e3f",format:"\u0e3f"}]}]},{title:"\u65e5\u671f",id:"date",groups:[{title:"\u65e5\u671f",list:[{title:"\u5e74\u6708\u65e5",format:"yyyyMMdd",example:"20200908"},{title:"\u5e74\u6708\u65e5",format:"yyyyMd",example:"202098"},{title:"\u5e74-\u6708-\u65e5",format:"yyyy-MM-dd",example:"2020-09-08"},{title:"\u5e74-\u6708-\u65e5",format:"yyyy-M-d",example:"2020-9-8"},{title:"\u5e74/\u6708/\u65e5",format:"yyyy/MM/dd",example:"2020/09/08"},{title:"\u5e74/\u6708/\u65e5",format:"yyyy/M/d",example:"2020/9/8"},{title:"\u65e5-\u6708-\u5e74",format:"dd-MM-yyyy",example:"08-09-2020"},{title:"\u65e5-\u6708-\u5e74",format:"d-M-yyyy",example:"8-9-2020"},{title:"\u65e5/\u6708/\u5e74",format:"dd/MM/yyyy",example:"08/09/2020"},{title:"\u65e5/\u6708/\u5e74",format:"d/M/yyyy",example:"8/9/2020"},{title:"\u6708\u65e5",format:"MMdd",example:"0908"},{title:"\u6708\u65e5",format:"Md",example:"98"},{title:"\u6708-\u65e5",format:"MM-dd",example:"09-08"},{title:"\u6708-\u65e5",format:"M-d",example:"9-8"},{title:"\u6708/\u65e5",format:"MM/dd",example:"09/08"},{title:"\u6708/\u65e5",format:"M/d",example:"9/8"}]},{title:"\u65f6\u95f4",list:[{title:" \u5c0f\u65f6",format:" h",example:"9"},{title:" \u5c0f\u65f6",format:" hh",example:"09"},{title:" \u5c0f\u65f6:\u5206\u949f",format:" h:m",example:"9:2"},{title:" \u5c0f\u65f6:\u5206\u949f",format:" hh:mm",example:"09:02"},{title:" \u5c0f\u65f6:\u5206\u949f:\u79d2",format:" h:m:s",example:"9:2:8"},{title:" \u5c0f\u65f6:\u5206\u949f:\u79d2",format:" hh:mm:ss",example:"09:02:08"}]}]},{title:"\u81ea\u5b9a\u4e49",id:"custom",defaults:"/*\n data\u662f\u6839\u636e\u6839\u636e\u5f53\u524d\u7ed1\u5b9a\u7684\u5b57\u6bb5\u53d6\u5230\u7684\u6570\u636e\n item\u662f\u5b8c\u6574\u7684\u5355\u6761\u6570\u636e\u5bf9\u8c61\n \u53ef\u4ee5\u628a\u4e0b\u9762\u7684console\u524d\u7684\u6ce8\u91ca\u53bb\u6389\u67e5\u770b\u76f8\u5e94\u7684\u6570\u636e\n*/\nfunction(data,item){\n //console.log(data,item);\n //return data+item.name;\n return data;\n}"}],d=[{reg:/y+/gi,fn:(e,t)=>(t.getFullYear()+"").slice(-e.length)},{reg:/M+/g,fn:(e,t)=>("0"+(t.getMonth()+1)).slice(-e.length)},{reg:/d+/gi,fn:(e,t)=>("0"+t.getDate()).slice(-e.length)},{reg:/h+/gi,fn:(e,t)=>("0"+t.getHours()).slice(-e.length)},{reg:/m+/g,fn:(e,t)=>("0"+t.getMinutes()).slice(-e.length)},{reg:/s+/g,fn:(e,t)=>("0"+t.getSeconds()).slice(-e.length)}],l=new s.Cache,a=/\bfunction\s*\(([\s\S]*?)\)\s*\{([\s\S]*?)\}\s*;?\s*$/i,n=/^(\^[\s\S]+?)?(?:#([,'%\u2030]))?(#{3,4})?(\.#{0,4})?([\s\S]*?)$/;i.exports={_jw:()=>r,_jr(e){null==e&&(e="");let t=e.indexOf(":");if(t>-1){let i=e.substring(0,t),s=e.substring(t+1),o="currency"==i;if("number"==i||o){let e=[i];return s.replace(n,((t,i,s,r,d,l)=>{o&&e.push(i||""),"%"==s||"\u2030"==s?e.push("#"+s):s?e.push("#"+s+r):e.push(""),e.push(d||""),o&&e.push(l||"")})),e}if("date"==i){let e=s.indexOf(" ");return e>-1?[i,s.substring(0,e),s.substring(e)]:[i,s,""]}if("custom"==i)return[i,s]}return[]},_jv(e){let t=this._jr(e),i="";for(let e of r)if(e.id==t[0]){if(i=e.title+":","custom"==e.id)i+="\u51fd\u6570";else{let s=1;for(let o of e.groups){for(let e of o.list)if(e.format==t[s]){i+=e.title;break}s++}}break}return i},_ge(e,t,...i){e+="";let s=this._jr(e),o=s.shift();if("number"==o||"currency"==o){let e=Number(t);if(isNaN(e))return t;let i,r,d,l="",a="";"number"==o?[i,r]=s:([l,i,r,a]=s,l&&(l=l.substring(1))),"#%"==i?(e*=100,i="",a="%"):"#\u2030"==i&&(e*=1e3,i="",a="\u2030"),d=r?e.toFixed(r.length-1):e+"";let n=d.indexOf("."),c="";if(n>0&&(c=d.substring(n),d=d.substring(0,n)),i){let e,t=",",s=i.lastIndexOf(t);if(-1==s&&(t="'",s=i.lastIndexOf(t)),-1!=s){e=i.substring(s+1).length,d=((e,t,i)=>{let s="";for(;e.length>t;)s=i+e.slice(-t)+s,e=e.substring(0,e.length-t);return e&&(s=e+s),s})(d,e,t)}}return l+d+c+a}if("date"==o){let e=(e=>e instanceof Date||(e=new Date(Date.parse(String(e).replace(/-/g,"/"))))instanceof Date&&"Invalid Date"!=e.toString()?e:null)(t);if(!e)return t;let i=s.join(" ").trim();for(let t of d)i=i.replace(t.reg,(i=>t.fn(i,e)));return i}if("custom"==o){let e,o;if(s.join("").replace(a,((t,i,s)=>{e=i,o=s})),!e&&!o)return t;{let s=[e,"\0",o].join(""),r=l.get(s);r||(r=Function(e,o),l.set(s,r));try{return r(t,...i)}catch(e){return e.message}}}return t}}})),define("24/fs",["../1o/23/index","../1s/index","1h","../24/42"],((e,t,i)=>{let s=e("../1o/23/index"),o=e("../1s/index"),r=e("1h"),d=e("../24/42"),{guid:l}=r,a=!window.showOpenFilePicker&&!window.showSaveFilePicker;i.exports={_d3:()=>a,async _c0(){if(a&&!window.saveAs)try{s.show(o("g6")),await d()}catch(e){throw e}finally{s.hide()}},async _cZ(e){if(a){let t=e.files[0];return t?(e.value="",await(e=>new Promise(((t,i)=>{let s=new FileReader;s.onload=e=>{t(e.target.result)},s.onerror=e=>{i(e)},s.readAsText(e)})))(t)):""}let[t]=await window.showOpenFilePicker({id:"_rd_write",excludeAcceptAllOption:!0,types:[{description:"Report Designer File",accept:{"text/plain":[".rd"]}}]}),i=await t.getFile();return await i.text()},async _c1(e,t,i=[".rd"]){if(a){let i=new Blob([t]);saveAs(i,e)}else{let s=await window.showSaveFilePicker({id:"_rd_read",suggestedName:e,startIn:"downloads",types:[{description:"Report Designer File",accept:{"text/plain":i}}]}),o=await s.createWritable();await o.write(t),await o.close()}}}})),define("24/fx",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.fx||"//unpkg.com/function-plot/dist/")+"function-plot.js"];i.exports=()=>o("functionPlot",l)})),define("24/31",["1h","../1g/1j","../1g/26","../1g/1t","../1g/1u","../1g/20","../1g/27","../1g/1v","../1g/22","../1g/1k","../1o/1q/cursor","../1o/1q/tip","./cell","./table"],((e,t,i)=>{let s=e("1h"),o=e("../1g/1j"),r=e("../1g/26"),d=e("../1g/1t"),l=e("../1g/1u"),a=e("../1g/20"),n=e("../1g/27"),c=e("../1g/1v"),p=e("../1g/22"),h=e("../1g/1k"),b=e("../1o/1q/cursor"),g=e("../1o/1q/tip"),y=e("./cell"),f=e("./table"),{State:x,mark:_}=s,{min:u,abs:m,PI:k,sin:w,cos:v}=Math,j={},K=(e,t,i,s,o)=>{e.locked||e.focusRow==s&&e.focusCol==o||(e.focusRow=s,e.focusCol=o,x.fire("bL",{_dm:{[t.id]:1},_dn:{[t.type]:1},_bK:{_e7:1}}),i.digest({props:e}))},R=(e,t,i,s,o,r)=>{if(t.readonly){if(!o){let e=p.bJ();e&&d.bJ(d.bS,c.bR(e))}}else K(t,e,r,i,s),n.bM(e,o,!1)},J=async(e,t,i)=>{let s=_(e,"_mK");await e.finale(),setTimeout((()=>{if(s()){let e=i.querySelector("[as=d-input]");e&&e!=t&&(e.focus(),e.selectionStart=e.value.length)}}))};i.exports={_mL(){let e=this.get("props"),t=this.get("element");K(e,t,this,-1,-1)},"_gE<focusin>"(e){let{params:t}=e,{row:i,col:s}=t,o=this.get("props"),r=this.get("element");K(o,r,this,i,s)},"_gx<pointerdown>"(e){if(e._d4||e.button)return;e._d4=1;let t=this.get("element"),{props:i,ctrl:s,id:r}=t,{focusRow:l,focusCol:a,rows:n,ename:c,rotate:p,excelLeft:_,excelTop:u,tfootSpacing:m}=i;if(-1==l||-1==a)return;null==p&&(p=0),p%=360,i.rotate=p;let j={x:e.pageX,y:e.pageY};x.fire("bY",{show:1,size:1});let K,R,J,M=-2==l&&-2==a,L=-3==l&&-3==a,S=l>-1&&a>-1,X=n[l],V=S&&X.cols[a],Y=L?_:M?0:V.width,F=L?u:M?m:V.height,{eventTarget:C,params:T}=e,{key:z}=T,[B,A]=z,O=h.bK(i),N=h.bT(z),P=O._ct[N],I=this.owner.parent(),W=C,Z="m"!=A,H="m"!=B,$="l"==A?-1:1,U="t"==B?-1:1,E=x.get("bL"),Q=M?0:o.bK(y._hY*E),q=M?0:o.bK(y._h0*E),D=async()=>{if(!R)return;K||(b._cj(W),K=1);let{pageX:e,pageY:d}=R,l={x:e,y:d};J&&(l.y+=J.bJ,l.x+=J.bK);let a,n=h.bS(l,j),c=h.bX(l,j),y=k/180*(n-p),_=o.bK(w(y)*c),u=o.bK(v(y)*c),m=Y+(Z?u:0)*$,X=F+(H?_:0)*U,C=(S?V.colspan:1)*Q,T=(S?V.rowspan:1)*q;if(m<=C&&(m=C),X<=T&&(X=T),a=L?m!=i.excelLeft||X!=i.excelTop:M?X!=i.tfootSpacing:m!=V.width||X!=V.height,a){K=m!=Y||X!=F?2:1,L?(i.excelLeft=m,i.excelTop=X):M?i.tfootSpacing=X:(V.width=m,V.height=X,f.bR(i,V)),s._cF(i);let e=h.bK(i)._ct[N],o=P.x-e.x,d=P.y-e.y;i.x+=o,i.y+=d,await I.invoke("_cG",t),x.fire("bL",{_dm:{[r]:1},_dn:{[t.type]:1},_bK:{_bM:1}})}J&&!J.bL&&(J.bL=1,J.bM());let z,B=h.bM(m),A=h.bM(X);z=M?A:`${B} x ${A}`,g._df(z),g._dl(e,d)},G=e=>{J=e,D()};x.on("bZ",G),this._ci(e,(e=>{x.fire("b0",e),R=e,D()}),(()=>{x.off("bZ",G),x.fire("b1"),K&&b._ck(),2==K&&d.bJ(d.ci,c),x.fire("bY",{hide:1}),g._ck()}))},"_gw<pointerdown>"(e){if(e._d4)return;let t=this.get("element"),i=this.get("props"),{eventTarget:s,shiftKey:o,ctrlKey:r,metaKey:a,params:n,button:g,target:y,pageX:f,pageY:_}=e,k=x.get("bK"),{row:w,col:v,elm:K,input:M}=n,L=o||r||a;if(g)R(t,i,w,v,0,this);else if((L||K)&&(e._d4=1),K&&!M){let o,r,l,a=i.rows[w].cols[v],n=p.bN(),g=[...k],K=[],M={};for(let e of g)K.push(e.id),M[e.id]=1;l=K.join(","),L?r=c.cd([...a.elements,...g]):M=j;let S,X=c.b9(a.elements);x.set({bQ:1});let V=()=>{if(!S)return;o||(o=1,b._dh("default"),L||p.bJ());let{pageX:e,pageY:t}=S,i=m(f-e),d=m(_-t),a=u(f,e),n=u(_,t),y=h.bP(s,{x:a,y:n});if(y.width=i,y.height=d,this.digest({srRow:w,srCol:v,selectRect:y}),X.length){let e=c.c_(X,y,g,L&&r,L?M:j);e._dm!=l&&(l=e._dm,p.bK(e._cS))}},Y=e=>{L=e.bN||e.bO,V()};x.on("bS",Y),this._ci(e,(e=>{S=e,V()}),(()=>{if(x.off("bS",Y),x.set({bQ:0}),o){this.digest({selectRect:null}),b._ck();let e=p.bP(n);if(e.bM){let{bJ:t,bK:i}=c.cf(e);d.bJ(t,i)}}else R(t,i,w,v,L,this),J(this,y,s)}))}else R(t,i,w,v,L,this),i.readonly||(J(this,y,s),l.cf(y)&&(e._d4=1))},"_gD<input>"(e){let{params:t,eventTarget:i}=e,{cell:s,key:r}=t,l=i.value;s[r]=l;let a=this.get("element"),n=this.get("props");this.digest({props:n}),x.fire("bL",{_dm:{[a.id]:1},_dn:{[a.type]:1},_bK:{rows:1}});let p=c.bT(a);d.bJ(d.cj,p,a.id+"cwrows",o.bR)},"_fn<pointerdown>"(e){e._d4=1},"_e3<pointerdown>"(e){e._d4||(e._d4=1,n.bQ(e,this))},"_gC<contextmenu>&{passive:false}"(e){if(e._d4)return;let t=this.get("element"),{props:i,id:s}=t;this._cq(e),e._d4=1;let{row:o,col:l}=e.params,p=i.rows[o].cols[l].elements,h=x.get("bK")[0],b=e.eventTarget.getBoundingClientRect(),g={x:e.pageX-b.x-scrollX,y:e.pageY-b.y-scrollY};n.bZ(this,e,p,s,(async i=>{if(i.id==r.bJ)c.cj(p);else if(i.id==r.b8){let e=x.get("bT"),t=c.ch(0,e)._cs;c.cj(t,1)}else if(i.id==r.bQ)a._cQ(e);else if(i.id==r.bK){let e=c.ch(0,t,o,l);a._cU(e,g)}else if(i.id==r.bR){let e=c.bX();a._cT(e)}else if(i.id==r.bP)a._cR(e);else if(i.id==r.bS)c.ce();else if(i.id>=3&&i.id<=6)n.bS(i.id,h);else if(i.id>19&&i.id<30)n.bV(i.to);else if(i.id>30&&i.id<40){let e=32==i.id;c.cc(e)}else if(i.id>40&&i.id<50){let e=i.id==r.bX||i.id==r.bZ?1:0,t=i.id==r.b0||i.id==r.bX?0:1,[s,o]=await n.bW(e,t);s&&(x.fire("bL",{_dm:{[o]:1},_dn:{[h.type]:1},_bK:{_bM:1}}),d.bJ(d.cd))}else if(i.id==r.b7){let e=c.ci(p);e.length&&(x.fire("bW"),d.bJ(d.b4,c.bR(e)))}}))}}})),define("24/32",["1h","../1g/1t","../1g/22","../1o/1p/index","./table"],((e,t,i)=>{let s=e("1h"),o=e("../1g/1t"),r=e("../1g/22"),d=e("../1o/1p/index"),l=e("./table"),{State:a}=s,n={};i.exports={"_g_<dragenter>"(e){let t=this.get("props");if(t.locked)return;let{row:i,col:s}=e.params;if(e._d4=1,d._gs(n,`${i}_${s}`)){l.bJ(t,!0);let{rows:e}=t,o=0,r=-1;for(let t of e)t.data&&(r=o),o++;if(i==r){a.get("b4")&&this.digest({fieldRow:i,fieldCol:s})}}},"_ga<dragleave>"(e){let{row:t,col:i}=e.params;d._gt(n,`${t}_${i}`)&&this.get("fieldRow")==t&&this.get("fieldCol")==i&&this.digest({fieldRow:-1,fieldCol:-1})},"_gb<drop>&{passive:false}"(e){this._cq(e),n={};let t=this.get("fieldRow"),i=this.get("fieldCol"),s=a.get("b4");if(s&&-1!=t&&-1!=i){e._d4=1;let d=this.get("props");l.bJ(d,!0);let n=this.get("element"),{rows:c,ename:p}=d;if(d.bind.id!=s.id){let e=c[t],i=c[t-1];for(let t of e.cols){let e=t._g3,s=t._g4;for(let o of i.cols)o._g3==e&&o._g4==s&&o.textContent==t.bindName&&(o.textContent="");t.bindKey&&(delete t.bindKey,delete t.bindName)}}d.bind.id=s.id,d.bind.url=s.url,d.focusRow=t,d.focusCol=i;let h=c[t].cols[i],b=h._g3,g=h._g4,y=c[t-1];for(let e of y.cols)e._g3==b&&e._g4==g&&(e.textContent&&h.bindName!=e.textContent||(e.textContent=s.field.name));h.bindKey=s.field.id,h.bindName=s.field.name,this.set({fieldRow:-1,fieldCol:-1}),this.owner.parent().invoke("_cG",n),r.bJ(n)||a.fire("bL",{_dm:{[n.id]:1},_dn:{[n.type]:1},_bK:{_gu:1}}),o.bJ(o.cj,p)}},"_gv<click>"(e){let t=this.get("props");if(t.locked)return;let i=this.get("element"),{row:s,col:r}=e.params;l.bJ(t,!0);let{rows:d,ename:n}=t,c=d[s],p=c.cols[r],h=p._g3,b=p._g4,g=d[s-1];for(let e of g.cols)e._g3==h&&e._g4==b&&e.textContent==p.bindName&&(e.textContent="");delete p.bindKey,delete p.bindName;let y=0;for(let e of c.cols)if(e.bindKey){y=1;break}y||(t.bind.id="",t.bind.url=""),this.owner.parent().invoke("_cG",i),a.fire("bL",{_dm:{[i.id]:1},_dn:{[i.type]:1},_bK:{_gu:1}}),o.bJ(o.cj,n)}}})),define("24/hodflex",["1h","../1g/1j","../1g/1t","../1g/1k","../1o/1q/cursor","../1o/1q/tip","./cell"],((e,t,i)=>{let s=e("1h"),o=e("../1g/1j"),r=e("../1g/1t"),d=e("../1g/1k"),l=e("../1o/1q/cursor"),a=e("../1o/1q/tip"),n=e("./cell"),{State:c}=s;i.exports={"_gI<pointerdown>"(e){if(e._d4||e.button)return;e._d4=1;let t=this.get("element"),{props:i,ctrl:s,id:p}=t,{focusRow:h,focusCol:b,rows:g,ename:y,x:f,y:x}=i;if(-1==h||-1==b)return;c.fire("bY",{show:1,size:1});let _,u,m,k=c.get("bL"),w=g[h],v=w.cols[b],{key:j}=e.params,[K,R]=j,J=null!=v.width?v.width:w.width,M=null!=w.height?w.height:v.height,L=e.pageX,S=e.pageY,X=this.owner.parent(),V=e.eventTarget,Y="m"!=R,F="m"!=K,C="l"==R?-1:1,T="t"==K?-1:1,z=0,B=0,A=o.bK(n._hY*k),O=o.bK(n._h0*k),N=async()=>{_||(l._cj(V),_=1);let{pageX:e,pageY:r}=u,n=e-L,h=r-S;m&&(h+=m.bJ,n+=m.bK);let b=o.bK((F?h:0)*T),g=o.bK((Y?n:0)*C),y=J+g,k=M+b;y<=A&&(y=A),k<=O&&(k=O),-1==T&&(B=M-k),-1==C&&(z=J-y);let j=null!=v.width,K=null!=w.width;(j&&(y!=v.width||k!=w.height)||K&&(y!=w.width||k!=v.height))&&(j?(w.height=k,v.width=y):K&&(v.height=k,w.width=y),i.x=f+z,i.y=x+B,s._cF(i),await X.invoke("_cG",t),c.fire("bL",{_dm:{[p]:1},_dn:{[t.type]:1},_bK:{_bM:1}})),m&&!m.bL&&(m.bL=1,m.bM());let R=`${d.bM(y)} x ${d.bM(k)}`;a._df(R),a._dl(e,r)},P=e=>{m=e,N()};c.on("bZ",P),this._ci(e,(e=>{c.fire("b0",e),u=e,N()}),(()=>{c.off("bZ",P),c.fire("b1"),_&&(r.bJ(r.ci,y),l._ck()),c.fire("bY",{hide:1}),a._ck()}))}}})),define("24/html2canvas",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.html2canvas||"//unpkg.com/html2canvas@1.3.3/dist/")+"html2canvas.min.js"];i.exports=()=>o("html2canvas",l)})),define("24/3u",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.jspdf||"//cdn.bootcdn.net/ajax/libs/jspdf/2.5.0/")+"jspdf.umd.min.js"];i.exports=()=>o("jspdf",l)})),define("24/loader",["1h","../1o/1r/index"],((e,t,i)=>{let s=e("1h"),o=e("../1o/1r/index"),{State:r}=s,d={},l={},a="can not load: ",n=e=>new Promise((t=>{let i,s=e.endsWith("css");if(r.fire("b9",{_eA:1}),s){i=document.createElement("link"),i.href=e,i.rel="stylesheet",document.head.appendChild(i);let s=Date.now(),d=()=>{let e=i.sheet,l=0;try{e&&(l=1)}catch(e){}Date.now()-s>2e3&&(l=1),l&&(o._b8(d),t(),r.fire("b9"))};o._b9(30,d)}else{let i=document.createElement("script");i.onload=i.onerror=()=>{document.head.removeChild(i),t(),r.fire("b9")},i.src=e,document.head.appendChild(i)}}));i.exports=(e,t,i)=>new Promise(((s,o)=>{let r=d[e]||1,c=l[e]||(l[e]=[]);if(4&r)window[e]?s():o(a+e);else if(2&r)c.push([s,o]);else{d[e]=2|r,c.push([s,o]);let l=[];if(i)for(let e of i)l.push(n(e));Promise.all(l).then((()=>{let e=[];for(let i of t)e.push(n(i));return Promise.all(e)})).then((()=>{d[e]=4|r;for(let[t,i]of c)window[e]?t():i(a+e);c.length=0})).catch(o)}}))})),define("24/map",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=d&&d.leaflet||"//unpkg.com/leaflet@1.7.1/dist/",a=[l+"leaflet.css",l+"leaflet.js"];i.exports=()=>o("L",a)})),define("24/mathjax",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.mathjax||"//unpkg.com/mathjax@3.2.0/es5/")+"tex-svg.js"];i.exports=()=>o("MathJax",l)})),define("24/pole",["1h"],((e,t,i)=>{let s,o=e("1h"),{State:r,node:d}=o,l=e=>{let t=s.root,i=d("_rd_pole_"+s.id).style;if(e.size&&(i.width=t.scrollWidth+"px",i.height=t.scrollHeight+"px"),e.show&&(i.display="block",r.set({bQ:1})),e.hide){r.set({bQ:0});let e=t.scrollTop;i.display="none";let s=t.scrollTop;e>s&&(t.scrollTop=s-1)}};i.exports={bJ(e){s=e,r.on("bY",l)},bK(){s=null,r.off("bY",l)},bL:l}})),define("24/qrcode",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.qrcode||"//unpkg.com/@keeex/qrcodejs-kx@1.0.2/")+"qrcode.min.js"];i.exports=()=>o("QRCode",l)})),define("24/scroll",["1h","../1o/1r/index","../1g/1j","./pole"],((e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let s,o,r=e("1h"),d=e("../1o/1r/index"),l=e("../1g/1j"),a=e("./pole"),{State:n,node:c}=r,p=null,h=null,b=0,g=0,y=1,f=()=>{if(p&&y){let{pageX:e,pageY:t}=p;e-=scrollX,t-=scrollY,h||(h=o.getBoundingClientRect());let i=o.scrollTop,s=o.scrollLeft,r=i,d=s,c=1,f=o.scrollHeight-o.clientHeight,x=o.scrollWidth-o.clientWidth,{x:_,y:u,height:m,width:k}=h;if(e>_&&e<_+k&&(t>u&&t<u+l.ca?(r=i-l.cb,r<0&&(r=0)):t>=u+m-l.ca&&t<u+m&&(r=i+l.cb,r>f&&(r=f))),t>u&&t<u+m&&(e>_&&e<_+l.ca?(d=s-l.cb,d<0&&(d=0)):e>_+k-l.ca&&e<_+k&&(d=s+l.cb,d>x&&(d=x))),i!=r&&(g+=r-i,c|=2),s!=d&&(b+=d-s,c|=4),1!=c){y=0;let e={bK:b,bJ:g,bM(){2&c&&(o.scrollTop=r),4&c&&(o.scrollLeft=d),a.bL({size:1}),y=1}};n.fire("bZ",e)}}},x=e=>{p||(n.set({bQ:1}),s||(s=c("_rd_sdsz")),s.classList.remove("cw"),d._b9(10,f)),p=e},_=()=>{p=null,h=null,b=g=0,n.set({bQ:0}),s&&s.classList.add("cw"),d._b8(f),y=1};i.exports={bJ(){o=c("_rd_stage"),n.on("b0",x),n.on("b1",_)},bK(){o=null,_(),n.off("b0",x),n.off("b1",_)}}})),define("24/2i",["1h","../1g/1v","../1o/1q/select","../1s/index"],((e,t,i)=>{let s,o,r=e("1h"),d=e("../1g/1v"),l=e("../1o/1q/select"),a=e("../1s/index"),{State:n,node:c}=r,p=e=>{let{node:t,stage:i,ctrl:r,allowedTotal:p,allowedStage:h,pageX:b,pageY:g,width:y,height:f,hod:x,total:_,count:u}=e;if(i){let e,i=y||f;if(i&&(l._cG(b,g,y,f),l._km(r)),n.get("bV").readonly)l._gW(a("kF"));else if(s!=t){s=t;let n=x&&c(x._dH);if(!x||n!=o){if(o){let{classList:e}=o;e.remove("dj"),o=null}let t;if(e=null==p||_<p,x){if(o=n,e&&h>=0){e=d.bL(x._dE,r.type).length<h}t="kG"}else e=e&&(!r._cC||r._cC.root),e&&(e=null==h||u<h),t="kH";if(e){if(o){let{classList:e}=o;e.add("dj")}i&&l._gW(a(t))}else i&&l._gW(a("kF"))}}}else{if(o){let{classList:e}=o;e.remove("dj")}l._ck(),s=null,o=null}};i.exports={bJ:()=>o,bK(){o=s=null},bL(){n.on("b3",p)},bM(){n.off("b3",p)}}})),define("24/2j",["1h","../1g/1j","../1g/27"],((e,t,i)=>{let s=e("1h"),o=e("../1g/1j"),r=e("../1g/27"),{State:d,has:l}=s,a=["width","height"];i.exports={bJ(){d.set({cb:1})},bK(){d.set({cb:null})},bM:e=>{let t=d.get("b4");if(t){let i,s=d.get("b9"),o=e.target,l=s[t.field.use]||s.text;l&&(e._d4||(i=r.bJ(o,l)),d.fire("b3",{ctrl:l,stage:1,hod:i,node:o}))}},bL:e=>{if(e._d4)return;e.preventDefault();let t=d.get("b4"),i=e.target;if(t){let{id:s,url:r,field:n}=t,c=d.get("b9"),p=c[n.use]||c.text||c.base,h=o.bU(n.props)||{};for(let e of a)l(h,e)&&(h[e]=o.bK(h[e]));h.bind={id:s,url:r,fields:[n]},d.set({bW:[{ctrl:p,props:h}]});let b=d.get("c_");d.fire("b4",{node:i,pageX:e.pageX-b._kE,pageY:e.pageY-b._dA})}}}})),define("24/table",["1h"],((e,t,i)=>{let s=e("1h"),{isArray:o}=s,{abs:r,min:d,max:l}=Math,a=["head","label","data","total","foot"],n=(e,t)=>{for(let i of a)t[i]&&(e[i]=!0);return e},c=(e,t,i)=>{let s=i;for(let i of e)for(let e of i.cols){let i=e._g3+e.colspan-1;if(e._g3<=t&&i>=t){let e=i-t;e<s&&(s=e)}}return s},p=(e,t,i)=>{let s=i;for(let i of e)for(let e of i.cols){let i=e._ig+e.rowspan-1;if(e._ig<=t&&i>=t){let e=i-t;e<s&&(s=e)}}return s};i.exports={bJ(e,t){if(!t||null==e._gn||null==e._go){let t=0,i=0,s={},o={},{rows:r}=e,d=0,l=0,a=0;for(let e of r){i=0,a=0;for(let r of e.cols){for(;s[i]&&o[i]&&t<o[i];)i+=s[i];r._dt=a++,r._ds=t,r._ig=t,r._g3=i,r.rowspan?(o[i]=r.rowspan+t,r._if=t+r.rowspan-1):r._if=t,r.colspan&&(s[i]=r.colspan,i+=r.colspan-1),r._g4=i++,i>d&&(d=i)}t++,t>l&&(l=t)}e._gn=l,e._go=d}return e},bP(e,t){let i,{focusCol:s,focusRow:r,rows:d}=e,l=0,a=0;if("left"==t)i=[[r,s-1],[r,s]],a=1;else if("right"==t)i=[[r,s],[r,s+1]],a=1;else{l=1;let e=d[r].cols[s],o=e._if+1,a=e._g4,n=0;for(let l=0;l<=o;l++){for(let o=0;o<=a;o++){let a=d[l];if(a){let d=a.cols[o];if(d&&d!=e){let o=d._dt;if(d._g3==e._g3&&d._g4==e._g4)if(d._if+1==e._ig){if("top"==t){i=[[l,o],[r,s]],n=1;break}}else if(e._if+1==d._ig&&"bottom"==t){i=[[r,s],[l,o]],n=1;break}}}}if(n)break}}let[n,h]=i;e.focusRow=n[0],e.focusCol=n[1];let b=0,g=0,y=-1,f=-1;for(let e of i){let t=d[e[0]].cols[e[1]],i=t._if;i>y&&(y=i);let s=t._g4;s>f&&(f=s)}let x=d[n[0]].cols[n[1]],_=d[h[0]].cols[h[1]];g=y-x._ig+1,b=f-x._g3+1,a&&(x.width+=_.width),l&&(x.height+=_.height),o(x.elements)?x.elements.push(..._.elements):!x.bindKey&&_.bindKey&&(x.bindKey=_.bindKey,x.bindName=_.bindName,x.type=_.type),x.colspan=b,x.rowspan=g;for(let e=i.length-1;e>0;e--){let t=i[e];d[t[0]].cols.splice(t[1],1)}let u=e._gn;for(let e=u;e--;){d[e].cols.length||(d.splice(e,1),u--)}for(let e=0;e<u;e++){let t=p(d,e,u);if(t>0){for(let i=0;i<=e;i++){let s=d[i];for(let i of s.cols){let s=i._ig+i.rowspan-1;i._ig<=e&&s>=e&&(i.rowspan-=t)}}break}}let m=e._go;for(let e=0;e<m;e++){let t=c(d,e,m);if(t>0){for(let i of d)for(let s of i.cols){let i=s._g3+s.colspan-1;s._g3<=e&&i>=e&&(s.colspan-=t)}break}}return e},bQ(e,t,i,s,o){let{focusRow:r,focusCol:d,rows:l}=e,a=l[r],c=a.cols[d],p=this.bK(e);if(t){let e,t;if(c.colspan>1){let i=c.colspan/2|0,s=c.colspan-i,o=0,r=c._g4;for(let e=r-i+1;e<=r;e++)o+=p._gp[e];c.colspan=s,c.width-=o,e=i,t=o}else{let i=c.width,o=i/2;o<s&&(o=s),c.width=o,t=o,e=1;let r=2*o-i;for(let e of l)for(let t of e.cols)t!=c&&t._g3<=c._g3&&t._g4>=c._g4&&(t.colspan++,t.width+=r)}let o={...i,elements:[],colspan:e,rowspan:c.rowspan,width:t,height:c.height};a.cols.splice(d+1,0,o)}else{let e,t;if(c.rowspan>1){let i=c.rowspan/2|0,s=c.rowspan-i,o=0,r=c._if;for(let e=r-i+1;e<=r;e++)o+=p._gq[e];c.rowspan=s,c.height-=o,e=i,t=o,a=l[c._ig+s];let n=0;for(let e of a.cols){if(e._g3>c._g3){d=n;break}n++}}else{let i=c.height,s=i/2;s<o&&(s=o),c.height=s,t=s,e=1;let r=2*s-i;for(let e of l)for(let t of e.cols)t!=c&&t._ig<=c._ig&&t._if>=c._if&&(t.rowspan++,t.height+=r);l.splice(c._if+1,0,a=n({cols:[]},a))}let s={...i,elements:[],colspan:c.colspan,rowspan:e,width:c.width,height:t};a.cols.splice(d,0,s)}},bL(e,t,i,s){let o={},{rows:r,focusRow:d,_go:l}=e,a=r[d],c=this.bK(e);for(let e=0;e<t;e++){let i=r[e];for(let e of i.cols)if(e._if>=t){e.rowspan++,e.height+=s;let t=e._g3,i=t+e.colspan;for(let e=t;e<i;e++)o[e]=1}}let p={cols:[]};a&&n(p,a);for(let e=0;e<l;e++)if(!o[e]){let t={...i,elements:[],width:c._gp[e],height:s,rowspan:1,colspan:1};p.cols.push(t)}return r.splice(t,0,p),e},bN(e,t,i,s){let{rows:o}=e,r=[],d=0,l=this.bK(e);for(let e of o){let o=e.cols.length,a=o;for(let i=0;i<o;i++){let o=e.cols[i];if(o.rowspan>1&&r.push(o),o._g3<t&&o._g4>=t){o.colspan++,o.width+=s,a=-1;break}if(o._g3>=t){a=i;break}}for(let e of r)if(e._g3<t&&e._g4>=t&&e._ig<d&&e._if>=d){a=-1;break}if(-1!=a){let t={...i,elements:[],height:l._gq[d],width:s,rowspan:1,colspan:1};e.cols.splice(a,0,t)}d++}return e},bM(e,t){let i,{rows:s,focusRow:o,focusCol:a}=e;if(null!=t)i=[t,t];else{let e=s[o].cols[a];i=[e._ig,e._if]}let n={},c=0,p=i[1]-i[0]+1,h=s[i[1]+1],b=p/2;for(let e=i[1];e>=0;e--){let t=s[e],o=0;for(let e=t.cols.length;e--;){let s=t.cols[e],a=s._g3,h=s._if,g=s._ig,y=h-g+1;if(1==y&&(o=s.height),y>1){let f=y/2;if(r(i[0]+b-g-f)<b+f){if(i[0]==s._ig&&s._if-s._ig>=p&&(n[a]=s,c=1),!o)for(let i=e;i--;){let e=t.cols[i];if(e._if==e._ig){o=e.height;break}}let r=d(h,i[1])-l(i[0],g)+1;s.rowspan-=r,s.height-=o*r}}}e<=i[1]&&e>=i[0]&&s.splice(e,1)}if(c){let t=e._go;if(h)for(let e=t,i=h.cols.length;e--;){let t=n[e];if(t){let s=0;for(let t=i;t--;){if(h.cols[t]._g3<e){i=t,s=t+1;break}}h.cols.splice(s,0,t)}}}return e},bO(e,t,i){let s,{focusRow:o,focusCol:a,rows:n}=e,c=0;if(null!=t){let e;null==i&&(i=t),s=[t,i];for(let s of n){for(let o=s.cols.length;o--;){let r=s.cols[o];if(r._g3==t&&r._g4==i){e=1,c=r.width;break}}if(e)break}}else{let e=n[o].cols[a];s=[e._g3,e._g4],c=e.width}let p=(s[1]-s[0]+1)/2;for(let e of n)for(let t=e.cols.length;t--;){let i=e.cols[t],o=i._g3,a=i._g4;if(o>=s[0]&&a<=s[1])e.cols.splice(t,1);else if(i.colspan>1){let e=(a-o+1)/2;if(r(s[0]+p-o-e)<p+e){let e=d(a,s[1])-l(s[0],o)+1;i.colspan-=e,i.width-=c}}}return e},bK(e,t){let i=[],s=[],{rows:o}=e,r=!1,d=!1;for(let e of o)for(let o of e.cols){if(1==o.colspan){let e=o._g3;(null==i[e]||!r&&o.width>i[e]||t==o)&&(r=r||t==o,i[e]=o.width)}if(1==o.rowspan){let e=o._ig;(null==s[e]||!d&&o.height>s[e]||t==o)&&(d=d||t==o,s[e]=o.height)}}for(let e of o)for(let o of e.cols){if(o.colspan>1){let e=0,s=0,r=o._g3,d=r+o.colspan;for(let t=r;t<d;t++)null!=i[t]&&i[t]>=0&&(e+=i[t],s++);if(s<o.colspan){let t=l(o.width-e,0)/(o.colspan-s);for(let e=r;e<d;e++)(null==i[e]||i[e]<0)&&(i[e]=t)}else if(e<o.width&&(!t||t==o)||e>o.width&&t&&t==o)for(let t=r;t<d;t++)i[t]=e>0?i[t]/e*o.width:o.width/o.colspan}if(o.rowspan>1){let e=0,i=0,r=o._ig,d=r+o.rowspan;for(let t=r;t<d;t++)null!=s[t]&&s[t]>=0&&(e+=s[t],i++);if(i<o.rowspan){let t=l(0,o.height-e)/(o.rowspan-i);for(let e=r;e<d;e++)(null==s[e]||s[e]<0)&&(s[e]=t)}else if(e<o.height&&(!t||t==o)||e>o.height&&t&&o==t)for(let t=r;t<d;t++)s[t]=e>0?s[t]/e*o.height:o.height/o.rowspan}}return{_gp:i,_gq:s}},bR(e,t){let i=this.bK(e,t),{rows:s}=e;for(let e of s)for(let t of e.cols){let e=t.rowspan||1,s=t.colspan||1,o=t._g3,r=t._ig,d=0,l=0;for(let e=o+s-1;e>=o;e--)d+=i._gp[e];for(let t=r+e-1;t>=r;t--)l+=i._gq[t];t.width=d,t.height=l}}}})),define("24/underscore",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=[(d&&d.underscore||"//unpkg.com/underscore@1.13.2/")+"underscore-umd-min.js"];i.exports=()=>o("_",l)})),define("24/wsize",["1h","../1o/1r/index"],((e,t,i)=>{let s,o,r,d,l,a,n,c=e("1h"),p=e("../1o/1r/index"),{State:h,node:b}=c,g=()=>{let e,t=s.scrollWidth,i=s.scrollHeight,c=s.offsetWidth,p=s.offsetHeight,b=h.get("bV");i&&(t!=o&&(o=t,e=1),i!=r&&(r=i,e=1),c!=d&&(d=c,e=1),p!=l&&(l=p,e=1),b.width!=a&&(e=1,a=b.width),b.height!=n&&(e=1,n=b.height)),e&&h.fire("bQ")};i.exports={bJ:g,bK(){s=b("_rd_stage"),p._b9(330,g)},bL(){s=null,p._b8(g)}}})),define("24/xsheet",["1h","./loader"],((e,t,i)=>{let s=e("1h"),o=e("./loader"),{config:r}=s,d=r("providers"),l=d&&d.luckysheet||"//unpkg.com/luckysheet/dist/",a=[l+"plugins/css/pluginsCss.css",l+"plugins/plugins.css",l+"css/luckysheet.css",l+"assets/iconfont/iconfont.css",l+"plugins/js/plugin.js"],n=[l+"luckysheet.umd.js"];i.exports=()=>o("luckysheet",n,a)})),define("27/chart/bar/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/props"),l=e("../../../1g/1k"),a=e("../../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/chart/bar/index"})}}).static({type:"chart/bar",title:"ef",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",alpha:1,width:o.bK(500),height:o.bK(300),x:o.bK(e),y:o.bK(t),title:"",titleAlign:"left",rotate:0,bind:{url:"",id:"",fields:[]},color:"#FA742B",ow:"echarts.apache.org",locked:!1}),props:[{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:()=>n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,_fZ:()=>n("getFieldUrl")},{type:d.c_},{tip:"eg",key:"title",type:d.bS,json:1},{tip:"eh",key:"titleAlign",type:d.ci,json:1},{type:d.c_},{tip:"d4",type:d.bK,key:"background",alpha:1,clear:1,json:1},{tip:"dK",key:"color",type:d.bK,json:1},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/chart/bar/index",["1h","../../../24/30","../../../24/echarts"],((e,t,i)=>{let s=e("1h"),o=e("../../../24/30"),r=e("../../../24/echarts"),{node:d,View:l,mark:a,isArray:n}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,error:l}=e;return o="left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",r.background&&(o+="background:"+r.background+";"),s=[t("div",{class:"cr dR dX","data-tip":l||"\u6b63\u5728\u52a0\u8f7d\u56fe\u8868\u7ec4\u4ef6...",id:"_rd_chart_"+i,style:o})],t(i,0,s)},assign(e){this.set(e)},_gg(){if(!this._gf){let e=d("_rd_chart_"+this.id);this._gf=echarts.init(e),this.on("destroy",(()=>{this._gf.dispose()}));let t=["\u8bf7\u7ed1\u5b9a\u6570\u636e"],i=[100];this._gf.setOption({tooltip:{trigger:"axis"},xAxis:{data:t},yAxis:{type:"value"},series:[{data:i,type:"bar"}]},!0),e.dataset.tip=""}this._gf.resize()},async render(){let e=a(this,"_bQ");await this.digest();try{if(await r(),e()){let e=this.get("props");this._gg(),this._gf.setOption({title:{text:e.title,x:e.titleAlign},color:e.color});let t=this._gh,i=JSON.stringify(e.bind);t!=i&&(this._gh=i,this._gi(e))}}catch(t){e()&&this.digest({error:t})}},async _gi(e){let{bind:t}=e;if(t.id){let e=a(this,"_gi"),{_eO:i}=await o._gj(t);if(e()){n(i)||(i=[i]);let e=i[0],s=[],o=[];if(e){for(let i of t.fields)s.push(i.name),o.push(e[i.id]);this._gf.setOption({xAxis:{data:s},series:[{data:o,type:"bar"}]})}}}}})})),define("27/chart/chartjs/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/props"),l=e("../../../1g/1k"),a=e("../../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/chart/chartjs/index"})}}).static({type:"chart/chartjs",title:"ei",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({alpha:1,width:o.bK(500),height:o.bK(300),x:o.bK(e),y:o.bK(t),rotate:0,options:"custom:function(bindData,bindFields){\n //bindData\u662f\u7ed1\u5b9a\u6570\u636e\u6e90\u7684\u63a5\u53e3\u6570\u636e\uff0cbindFields\u662f\u56fe\u8868\u7ed1\u5b9a\u4e86\u6570\u636e\u6e90\u4e2d\u7684\u54ea\u4e9b\u5b57\u6bb5\n //\u53ef\u4ee5\u5728\u7ed1\u5b9a\u6570\u636e\u540e\uff0c\u53bb\u6389\u4e0b\u9762\u7684debugger\u524d\u7684\u6ce8\u91ca\u67e5\u770b\u76f8\u5e94\u7684\u6570\u636e\n //debugger\n //\u4e0b\u9762\u8fd4\u56de\u7684\u662fchart\u5b8c\u6574\u7684option\u914d\u7f6e\n return {\n type: 'bar',\n data: {\n labels: ['20', '30'],\n datasets: [{\n label: 'Dataset 1',\n data: [20, 60],\n },{\n label: 'Dataset 2',\n data: [20, 80],\n }]\n },\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Bar Chart'\n }\n }\n },\n }\n}",ow:"www.chartjs.org",locked:!1,bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",step:o.bV,fixed:o.cy,min:()=>0,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:()=>n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,_fZ:()=>n("getFieldUrl")},{tip:"ej",key:"options",type:d.cf,json:1,clear:0},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/chart/chartjs/index",["1h","../../../24/30","../../../24/chart","../../../24/format"],((e,t,i)=>{let s=e("1h"),o=e("../../../24/30"),r=e("../../../24/chart"),d=e("../../../24/format"),{node:l,View:a,mark:n,isArray:c,mix:p}=s;i.exports=a.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,error:a}=e;return r=[t("canvas",{id:"_rd_chart_c_"+i})],o="left:"+d.x+l+";top:"+d.y+l+";height:"+d.height+l+";opacity:"+d.alpha+";width:"+d.width+l+";transform:rotate("+d.rotate+"deg);",d.background&&(o+="background:"+d.background+";"),s=[t("div",{class:"cr dA dR dX","data-tip":a||"\u6b63\u5728\u52a0\u8f7d\u56fe\u8868\u7ec4\u4ef6...",id:"_rd_chart_"+i,style:o},r)],t(i,0,s)},init(){this.on("destroy",(()=>{this._gf&&this._gf.destroy()}))},assign(e){this.set(e)},_gk(e){if(this._gf){let t=this._gf;p(t.config,e),t.update()}else{let t=l(`_rd_chart_${this.id}`),i=l(`_rd_chart_c_${this.id}`),s=new Chart(i,e);this._gf=s,t.dataset.tip=""}},async render(){let e=n(this,"_bQ");await this.digest();try{await r();let t,i=this.get("props"),{bind:s,options:l}=i;if(s.id){let{_eO:e}=await o._gj(s);t=e}if(e()){let e=d._ge(l,t,s.fields),i=JSON.stringify(e);this._gl!=i&&(this._gl=i,this._gk(e))}}catch(t){e()&&(this._gf&&(this._gf.destroy(),this._gf=null),this.digest({error:t}))}}})})),define("27/chart/funnel/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/props"),l=e("../../../1g/1k"),a=e("../../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/chart/funnel/index"})}}).static({type:"chart/funnel",title:"ek",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",alpha:1,width:o.bK(500),height:o.bK(300),x:o.bK(e),y:o.bK(t),rotate:0,title:"",colors:["#FA742B"],titleAlign:"left",ow:"echarts.apache.org",locked:!1,bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:()=>n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,_fZ:()=>n("getFieldUrl")},{type:d.c_},{tip:"eg",key:"title",type:d.bS,json:1},{tip:"eh",key:"titleAlign",type:d.ci,json:1},{tip:"el",key:"colors",type:d.cj,json:1,multi:1},{type:d.c_},{tip:"d4",type:d.bK,key:"background",alpha:1,clear:1,json:1},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/chart/funnel/index",["1h","../../../24/30","../../../24/echarts"],((e,t,i)=>{let s=e("1h"),o=e("../../../24/30"),r=e("../../../24/echarts"),{node:d,View:l,mark:a,isArray:n}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,error:l}=e;return o="left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",r.background&&(o+="background:"+r.background+";"),s=[t("div",{class:"cr dR dX","data-tip":l||"\u6b63\u5728\u52a0\u8f7d\u56fe\u8868\u7ec4\u4ef6...",id:"_rd_chart_"+i,style:o})],t(i,0,s)},assign(e){this.set(e)},_gg(){if(!this._gf){let e=d("_rd_chart_"+this.id);this._gf=echarts.init(e),this.on("destroy",(()=>{this._gf.dispose()})),this._gf.setOption({series:[{type:"funnel",min:0,max:100,minSize:"0%",maxSize:"100%",gap:2,label:{show:!0,position:"inside"},data:[{value:100,name:"\u8bf7\u7ed1\u5b9a\u6570\u636e"}]}]},!0),e.dataset.tip=""}this._gf.resize()},async render(){let e=a(this,"_bQ");await this.digest();try{if(await r(),e()){let e=this.get("props");this._gg(),this._gf.setOption({title:{text:e.title,x:e.titleAlign},color:e.colors});let t=this._gh,i=JSON.stringify(e.bind);t!=i&&(this._gh=i,this._gi(e))}}catch(t){e()&&this.digest({error:t})}},async _gi(e){let{bind:t,showProgress:i,roundCap:s,color:r}=e,d=this._gf,{series:l}=this._gf.getOption();if(t.id){let e=a(this,"_gi"),{_eO:i}=await o._gj(t);if(e()){n(i)||(i=[i]);let e=[],s=i[0];if(s){for(let i of t.fields)e.push({value:s[i.id],name:i.name});l[0].data=e,d.setOption({series:l})}}}else l[0].data=[{value:100,name:"\u8bf7\u7ed1\u5b9a\u6570\u636e"}],d.setOption({series:l})}})})),define("27/chart/line/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/props"),l=e("../../../1g/1k"),a=e("../../2u"),{config:n}=s,c=(e,t)=>{t.id&&e.id&&e.id!=t.id&&(t.id="",t.url="",t.fields.length=0)};i.exports=a.extend({ctor(){this.set({view:"27/chart/line/index"})}}).static({type:"chart/line",title:"em",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_gm(e){let{bind:t,xBind:i}=e,s=[...t.fields];return t.id==i.id&&s.push(...i.fields),{id:t.id,fields:s}},_c4:(e,t)=>({background:"",alpha:1,width:o.bK(500),height:o.bK(300),x:o.bK(e),y:o.bK(t),title:"",titleAlign:"left",rotate:0,bind:{url:"",id:"",fields:[]},xBind:{url:"",id:"",fields:[]},ow:"echarts.apache.org",locked:!1,colors:["#FA742B"]}),props:[{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:()=>n("getFieldUrl")},{tip:"en",key:"bind",type:d.bT,json:1,_fZ:()=>n("getFieldUrl"),write:(e,{xBind:t})=>(c(e,t),e)},{tip:"eo",key:"xBind",type:d.bT,json:1,max:1,_fZ:()=>n("getFieldUrl"),write:(e,{bind:t})=>(c(e,t),e)},{type:d.c_},{tip:"eg",key:"title",type:d.bS,json:1},{tip:"eh",key:"titleAlign",type:d.ci,json:1},{type:d.c_},{tip:"d4",type:d.bK,key:"background",alpha:1,clear:1,json:1},{tip:"el",key:"colors",type:d.cj,json:1,multi:1},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/chart/line/index",["1h","../../../24/30","../../../24/echarts"],((e,t,i)=>{let s=e("1h"),o=e("../../../24/30"),r=e("../../../24/echarts"),{node:d,View:l,mark:a,isArray:n}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,error:l}=e;return o="left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",r.background&&(o+="background:"+r.background+";"),s=[t("div",{class:"cr dR dX","data-tip":l||"\u6b63\u5728\u52a0\u8f7d\u56fe\u8868\u7ec4\u4ef6...",id:"_rd_chart_"+i,style:o})],t(i,0,s)},assign(e){this.set(e)},_gg(){if(!this._gf){let e=d("_rd_chart_"+this.id);this._gf=echarts.init(e),this.on("destroy",(()=>{this._gf.dispose()})),this._gf.setOption({tooltip:{trigger:"axis"},xAxis:{data:["\u8bf7\u5148\u7ed1\u5b9a\u6570\u636e\u548cX\u8f74\u7684\u6570\u636e"]},yAxis:{type:"value"}},!0),e.dataset.tip=""}this._gf.resize()},async render(){let e=a(this,"_bQ");await this.digest();try{if(await r(),e()){let e=this.get("props");this._gg(),this._gf.setOption({title:{text:e.title,x:e.titleAlign},color:e.colors});let t=this._gh,i=JSON.stringify(e.bind)+JSON.stringify(e.xBind);t!=i&&(this._gh=i,this._gi(e))}}catch(t){e()&&this.digest({error:t})}},async _gi(e){let t=this._gf,{bind:i,xBind:s}=e;if(i.id&&s.id){let e=a(this,"_gi"),{_eO:r}=await o._gj(i);if(e()){n(r)||(r=[r]);let e=[],o=[];for(let t of r){for(let i of s.fields)e.push(t[i.id]);let r=0;for(let e of i.fields){let i=o[r];i||(o[r]=i={data:[],type:"line"}),i.data.push(t[e.id]),r++}}t.setOption({xAxis:{data:e},series:o})}}else t.setOption({xAxis:{data:["\u8bf7\u5148\u7ed1\u5b9a\u6570\u636e\u548cX\u8f74\u7684\u6570\u636e"]},series:[{data:[],type:"line"}]})}})})),define("27/chart/pie/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/props"),l=e("../../../1g/1k"),a=e("../../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/chart/pie/index"})}}).static({type:"chart/pie",title:"es",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",alpha:1,width:o.bK(500),height:o.bK(300),x:o.bK(e),y:o.bK(t),title:"",titleAlign:"left",rotate:0,ow:"echarts.apache.org",locked:!1,colors:["#FA742B"],bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",step:o.bV,fixed:o.cy,min:()=>0,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:()=>n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,_fZ:()=>n("getFieldUrl")},{type:d.c_},{tip:"eg",key:"title",type:d.bS,json:1},{tip:"eh",key:"titleAlign",type:d.ci,json:1},{type:d.c_},{tip:"d4",type:d.bK,key:"background",alpha:1,clear:1,json:1},{tip:"el",key:"colors",type:d.cj,json:1,multi:1},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/chart/pie/index",["1h","../../../24/30","../../../24/echarts"],((e,t,i)=>{let s=e("1h"),o=e("../../../24/30"),r=e("../../../24/echarts"),{node:d,View:l,mark:a,isArray:n}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,error:l}=e;return o="left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",r.background&&(o+="background:"+r.background+";"),s=[t("div",{class:"cr dR dX","data-tip":l||"\u6b63\u5728\u52a0\u8f7d\u56fe\u8868\u7ec4\u4ef6...",id:"_rd_chart_"+i,style:o})],t(i,0,s)},assign(e){this.set(e)},_gg(){if(!this._gf){let e=d("_rd_chart_"+this.id);this._gf=echarts.init(e),this.on("destroy",(()=>{this._gf.dispose()})),this._gf.setOption({series:[{data:[{value:0,name:"\u8bf7\u7ed1\u5b9a\u6570\u636e"}],type:"pie"}]},!0),e.dataset.tip=""}this._gf.resize()},async render(){let e=a(this,"_bQ");await this.digest();try{if(await r(),e()){let e=this.get("props");this._gg(),this._gf.setOption({title:{text:e.title,x:e.titleAlign},color:e.colors});let t=this._gh,i=JSON.stringify(e.bind);t!=i&&(this._gh=i,this._gi(e))}}catch(t){e()&&this.digest({error:t})}},async _gi(e){let{bind:t}=e;if(t.id){let e=a(this,"_gi"),{_eO:i}=await o._gj(t);if(e()){n(i)||(i=[i]);let e=[],s=i[0];if(s){for(let i of t.fields)e.push({value:s[i.id],name:i.name});this._gf.setOption({series:[{data:e,type:"pie"}]})}}}}})})),define("27/chart/meter/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/props"),l=e("../../../1g/1k"),a=e("../../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/chart/meter/index"})}}).static({type:"chart/meter",title:"ep",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",alpha:1,width:o.bK(310),height:o.bK(300),x:o.bK(e),y:o.bK(t),rotate:0,title:"",showProgress:!1,roundCap:!1,titleAlign:"left",color:"#FA742B",ow:"echarts.apache.org",locked:!1,bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:()=>n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:()=>n("getFieldUrl")},{type:d.c_},{tip:"eg",key:"title",type:d.bS,json:1},{tip:"eh",key:"titleAlign",type:d.ci,json:1},{tip:"eq",key:"showProgress",type:d.bL,json:1},{tip:"er",key:"roundCap",type:d.bL,json:1},{tip:"dK",key:"color",type:d.bK,json:1},{type:d.c_},{tip:"d4",type:d.bK,key:"background",alpha:1,clear:1,json:1},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/chart/meter/index",["1h","../../../24/30","../../../24/echarts"],((e,t,i)=>{let s=e("1h"),o=e("../../../24/30"),r=e("../../../24/echarts"),{node:d,View:l,mark:a,isArray:n}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,error:l}=e;return o="left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",r.background&&(o+="background:"+r.background+";"),s=[t("div",{class:"cr dR dX","data-tip":l||"\u6b63\u5728\u52a0\u8f7d\u56fe\u8868\u7ec4\u4ef6...",id:"_rd_chart_"+i,style:o})],t(i,0,s)},assign(e){this.set(e)},_gg(){if(!this._gf){let e=d("_rd_chart_"+this.id);this._gf=echarts.init(e),this.on("destroy",(()=>{this._gf.dispose()})),this._gf.setOption({series:[{type:"gauge",detail:{formatter:"{value}%"},data:[{value:0,name:"\u8bf7\u7ed1\u5b9a\u6570\u636e"}],itemStyle:{color:this.get("props").color}}]},!0),e.dataset.tip=""}this._gf.resize()},async render(){let e=a(this,"_bQ");await this.digest();try{if(await r(),e()){let e=this.get("props");this._gg();let{series:t}=this._gf.getOption();t[0].progress={show:e.showProgress,roundCap:e.roundCap},t[0].itemStyle={color:e.color},this._gf.setOption({series:t,title:{text:e.title,x:e.titleAlign}});let i=this._gh,s=JSON.stringify(e.bind);i!=s&&(this._gh=s,this._gi(e))}}catch(t){e()&&this.digest({error:t})}},async _gi(e){let{bind:t,showProgress:i,roundCap:s,color:r}=e,d=this._gf,{series:l}=this._gf.getOption();if(t.id){let e=a(this,"_gi"),{_eO:c}=await o._gj(t);if(e()){n(c)||(c=[c]);let e=[],o=c[0];if(o){for(let i of t.fields)e.push({value:o[i.id],name:i.name});l[0].progress={show:i,roundCap:s},l[0].itemStyle={color:r},l[0].data=e,d.setOption({series:l})}}}else l[0].data=[{value:0,name:"\u8bf7\u7ed1\u5b9a\u6570\u636e"}],d.setOption({series:l})}})})),define("27/chart/radar/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/props"),l=e("../../../1g/1k"),a=e("../../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/chart/radar/index"})}}).static({type:"chart/radar",title:"et",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({alpha:1,width:o.bK(500),height:o.bK(300),x:o.bK(e),y:o.bK(t),rotate:0,options:"custom:function(bindData,bindFields){\n //bindData\u662f\u7ed1\u5b9a\u6570\u636e\u6e90\u7684\u63a5\u53e3\u6570\u636e\uff0cbindFields\u662f\u56fe\u8868\u7ed1\u5b9a\u4e86\u6570\u636e\u6e90\u4e2d\u7684\u54ea\u4e9b\u5b57\u6bb5\n //\u53ef\u4ee5\u5728\u7ed1\u5b9a\u6570\u636e\u540e\uff0c\u53bb\u6389\u4e0b\u9762\u7684debugger\u524d\u7684\u6ce8\u91ca\u67e5\u770b\u76f8\u5e94\u7684\u6570\u636e\n //debugger\n //\u4e0b\u9762\u8fd4\u56de\u7684\u662fechart\u5b8c\u6574\u7684option\u914d\u7f6e\n return {\n title: {\n text: 'Basic Radar Chart'\n },\n legend: {\n data: ['Allocated Budget', 'Actual Spending']\n },\n radar: {\n // shape: 'circle',\n indicator: [\n { name: 'Sales', max: 6500 },\n { name: 'Administration', max: 16000 },\n { name: 'Information Technology', max: 30000 },\n { name: 'Customer Support', max: 38000 },\n { name: 'Development', max: 52000 },\n { name: 'Marketing', max: 25000 }]\n },\n series: [{\n name: 'Budget vs spending',\n type: 'radar',\n data: [{\n value: [4200, 3000, 20000, 35000, 50000, 18000],\n name: 'Allocated Budget'\n }, {\n value: [5000, 14000, 28000, 26000, 42000, 21000],\n name: 'Actual Spending'}]\n }]\n }\n}",ow:"echarts.apache.org",locked:!1,bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",step:o.bV,fixed:o.cy,min:()=>0,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:()=>n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,_fZ:()=>n("getFieldUrl")},{tip:"ej",key:"options",type:d.cf,json:1,clear:0},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/chart/radar/index",["1h","../../../24/30","../../../24/echarts","../../../24/format"],((e,t,i)=>{let s=e("1h"),o=e("../../../24/30"),r=e("../../../24/echarts"),d=e("../../../24/format"),{node:l,View:a,mark:n,isArray:c}=s;i.exports=a.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,error:l}=e;return o="left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",r.background&&(o+="background:"+r.background+";"),s=[t("div",{class:"cr dR dX","data-tip":l||"\u6b63\u5728\u52a0\u8f7d\u56fe\u8868\u7ec4\u4ef6...",id:"_rd_chart_"+i,style:o})],t(i,0,s)},assign(e){this.set(e)},_gg(){if(!this._gf){let e=l("_rd_chart_"+this.id);this._gf=echarts.init(e),this.on("destroy",(()=>{this._gf&&this._gf.dispose()})),e.dataset.tip=""}this._gf.resize()},async render(){let e=n(this,"_bQ");await this.digest();try{await r();let t,i=this.get("props"),{bind:s,options:l}=i;if(s.id){let{_eO:e}=await o._gj(s);t=e}if(e()){this._gg();let e=d._ge(l,t,s.fields);this._gf.setOption(e)}}catch(t){e()&&(this._gf&&(this._gf.dispose(),this._gf=null),this.digest({error:t}))}}})})),define("27/chart/scatter/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/props"),l=e("../../../1g/1k"),a=e("../../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/chart/scatter/index"})}}).static({type:"chart/scatter",title:"eu",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({alpha:1,width:o.bK(500),height:o.bK(300),x:o.bK(e),y:o.bK(t),rotate:0,options:"custom:function(bindData,bindFields){\n //bindData\u662f\u7ed1\u5b9a\u6570\u636e\u6e90\u7684\u63a5\u53e3\u6570\u636e\uff0cbindFields\u662f\u56fe\u8868\u7ed1\u5b9a\u4e86\u6570\u636e\u6e90\u4e2d\u7684\u54ea\u4e9b\u5b57\u6bb5\n //\u53ef\u4ee5\u5728\u7ed1\u5b9a\u6570\u636e\u540e\uff0c\u53bb\u6389\u4e0b\u9762\u7684debugger\u524d\u7684\u6ce8\u91ca\u67e5\u770b\u76f8\u5e94\u7684\u6570\u636e\n //debugger\n //\u4e0b\u9762\u8fd4\u56de\u7684\u662fechart\u5b8c\u6574\u7684option\u914d\u7f6e\n return {\n xAxis: { },\n yAxis: { },\n series: [{\n symbolSize: 20,\n data: [\n [10.0, 8.04],\n [8.07, 6.95],\n [13.0, 7.58],\n [9.05, 8.81],\n [11.0, 8.33],\n [14.0, 7.66],\n [13.4, 6.81],\n [10.0, 6.33],\n [14.0, 8.96],\n [12.5, 6.82],\n [9.15, 7.2],\n [11.5, 7.2],\n [3.03, 4.23],\n [12.2, 7.83],\n [2.02, 4.47],\n [1.05, 3.33],\n [4.05, 4.96],\n [6.03, 7.24],\n [12.0, 6.26],\n [12.0, 8.84],\n [7.08, 5.82],\n [5.02, 5.68]\n ],\n type: 'scatter'\n }]\n }\n}",ow:"echarts.apache.org",locked:!1,bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",step:o.bV,fixed:o.cy,min:()=>0,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>0,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:()=>n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,_fZ:()=>n("getFieldUrl")},{tip:"ej",key:"options",type:d.cf,json:1,clear:0},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/chart/scatter/index",["1h","../../../24/30","../../../24/echarts","../../../24/format"],((e,t,i)=>{let s=e("1h"),o=e("../../../24/30"),r=e("../../../24/echarts"),d=e("../../../24/format"),{node:l,View:a,mark:n,isArray:c}=s;i.exports=a.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,error:l}=e;return o="left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",r.background&&(o+="background:"+r.background+";"),s=[t("div",{class:"cr dR dX","data-tip":l||"\u6b63\u5728\u52a0\u8f7d\u56fe\u8868\u7ec4\u4ef6...",id:"_rd_chart_"+i,style:o})],t(i,0,s)},assign(e){this.set(e)},_gg(){if(!this._gf){let e=l("_rd_chart_"+this.id);this._gf=echarts.init(e),this.on("destroy",(()=>{this._gf&&this._gf.dispose()})),e.dataset.tip=""}this._gf.resize()},async render(){let e=n(this,"_bQ");await this.digest();try{await r();let t,i=this.get("props"),{bind:s,options:l}=i;if(s.id){let{_eO:e}=await o._gj(s);t=e}if(e()){this._gg();let e=d._ge(l,t,s.fields);this._gf.setOption(e)}}catch(t){e()&&(this._gf&&(this._gf.dispose(),this._gf=null),this.digest({error:t}))}}})})),define("27/flow/annotation/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/annotation/index"})}}).static({type:"flow/annotation",title:"fo",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=i+r/2,a={x:t+o/2,y:l},n=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:l}],c=0;for(let t of n){let i=d.bS(t,a),o=d.bU(t,a,i+s);e[`p${c}XReal`]=o.x,e[`p${c}YReal`]=o.y,e[`p${c}X`]=t.x,e[`p${c}Y`]=t.y,c++}e.textX=t,e.textY=i,e.textWidth=o,e.textHeight=r},_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(100),linewidth:s.bK(2),color:"#000",fillColor:"",padding:s.bK(10),dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,_c6:1,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,_c6:1,min:0,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,fixed:s.cy,step:s.bV,_c6:1,min:0,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/annotation/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.height);return l=[t("path",{d:"M20 0L0 0L0 "+y+"L20 "+y,style:"fill:none;stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],o="left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)",n.fillColor&&(o+=";background:"+n.fillColor),s=[t("div",{class:"cr dR",style:o},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/card/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/card/index"})}}).static({type:"flow/card",title:"fs",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:i+r/2},{x:t+o,y:a},{x:l,y:i+r},{x:l,y:i}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}e.textX=t+o/8,e.textY=i+r/8,e.textWidth=o/8*7,e.textHeight=r/8*7},_c4:(e,t)=>({height:s.bK(120),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,_c6:1,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,fixed:s.cy,step:s.bV,min:0,_c6:1,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/card/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M0 "+f/4+"L0 "+f+"L"+y+" "+f+"L"+y+" 0L"+y/4+" 0z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/connector/designer",["1h","../../../1g/1j","../../../1g/props","../../../1g/1v","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/props"),d=e("../../../1g/1v"),l=e("../../../1g/1k"),a=e("../designer"),{State:n}=s,{abs:c,max:p,min:h,sqrt:b}=Math,g=e=>{let t=[],i=0,s=e[i++];for(;i<e.length;){let o=e[i];t.push([{x:s.x,y:s.y},{x:o.x,y:o.y}]),s=o,i++}return t},y=(e,t,i)=>{let s=0,o=0,r=0;for(let i of t)for(let t of e)l.bO(i,t)&&s++;for(let e=i.length-2;e--;){let t=i[e],s=i[e+1],d=i[e+2];r+=l.bX(d,s),e||(r+=l.bX(s,t)),t.x==s.x&&s.x==d.x||t.y==s.y&&s.y==d.y||o++}return{_gK:s,_gL:o,_gM:r}},f=(e,t,i,s,o)=>t*(1-e)*(1-e)*(1-e)+3*i*e*(1-e)*(1-e)+3*s*e*e*(1-e)+o*e*e*e;i.exports=a.extend({ctor(){this.set({view:"27/flow/connector/dshow"})}}).static({type:"flow/connector",title:"ft",icon:"",_cE:[{key:"x",use:"x"},{key:"y",use:"y"},{key:"ctrl1X",use:"x"},{key:"ctrl1Y",use:"y"},{key:"ctrl2X",use:"x"},{key:"ctrl2Y",use:"y"}],_cF(e){let t,i,s,r,a,x,{textWidth:_,textHeight:u,textPosition:m,ctrl1X:k,ctrl1Y:w,ctrl2X:v,ctrl2Y:j,linkFromId:K,linkFromKey:R,linkToId:J,linkToKey:M,points:L}=e,S=n.get("bL"),{bK:X}=d.bO(),V=[[0,K,R],[1,J,M]];for(let[e,t,i]of V){let o=X[t],{props:d}=o,l=d[i+"XReal"],n=d[i+"YReal"];e?(a=l,x=n):(s=l,r=n)}if(e.startX=s,e.startY=r,e.endX=a,e.endY=x,"bezier"==e.lineType){let{x:o,y:d,width:l,height:n}=(e=>{let t,i,s,o,r,d,l,a,{startX:n,startY:g,ctrl1X:y,ctrl1Y:x,ctrl2X:_,ctrl2Y:u,endX:m,endY:k}=e,w=[],v=[],j=[];for(let e=0;e<2;++e)if(0==e?(i=6*n-12*y+6*_,t=-3*n+9*y-9*_+3*m,s=3*y-3*n):(i=6*g-12*x+6*u,t=-3*g+9*x-9*u+3*k,s=3*x-3*g),c(t)<1e-12){if(c(i)<1e-12)continue;o=-s/i,0<o&&o<1&&w.push(o)}else l=i*i-4*s*t,l<0||(a=b(l),r=(-i+a)/(2*t),0<r&&r<1&&w.push(r),d=(-i-a)/(2*t),0<d&&d<1&&w.push(d));let K=w.length;for(;K--;)o=w[K],v[K]=f(o,n,y,_,m),j[K]=f(o,g,x,u,k);v.push(n,m),j.push(g,k);let R=h(...v),J=p(...v),M=h(...j);return{x:R,y:M,width:J-R,height:p(...j)-M}})(e);e.x=o,e.y=d,e.width=l,e.height=n,t=f(m,s,k,v,a),i=f(m,r,w,j,x)}else if("line"==e.lineType){let o=h(s,a),d=p(s,a),n=h(r,x),c=p(r,x);if(e.x=o,e.y=n,e.width=p(1,d-o),e.height=p(1,c-n),s==a)t=s,i=n+(c-n)*m;else{let{k:e,b:n}=l.bW(s,r,a,x);t=(d-o)*m,t=s>a?s-t:s+t,i=e*t+n}}else{L.length=0;let d=[],n=[],b=[],f=o.bK(15*S),_=o.bK(10*S),u=[];for(let[,e,t]of V){let i=X[e],{props:s}=i,r=s[t+"XReal"],l=s[t+"YReal"],{p0XReal:a,p0YReal:g,p1XReal:y,p1YReal:x,p2XReal:m,p2YReal:k,p3XReal:w,p3YReal:v}=s,j=p(a,y,m,w),K=h(a,y,m,w),R=c(r-K),J=c(r-j),M=p(g,x,k,v),L=h(g,x,k,v),S=e=>{let t=0;return o.bS(e,j)||o.bS(e,M)?t=_:(o.bS(e,K)||o.bS(e,L))&&(t=-_),e+t},V=c(l-L),Y=c(l-M);u.push({x:K-_,y:L-_,width:j-K+2*_,height:M-L+2*_}),n.push([{x:S(a),y:S(g)},{x:S(y),y:S(x)}],[{x:S(y),y:S(x)},{x:S(m),y:S(k)}],[{x:S(m),y:S(k)},{x:S(w),y:S(v)}],[{x:S(w),y:S(v)},{x:S(a),y:S(g)}]);let F,C,T,z=h(R,V,J,Y);z==R?(T=1,F={x:r-z-f,y:l},C=[{x:F.x,y:L-f},{x:F.x,y:M+f}]):z==V?(T=2,F={x:r,y:l-z-f},C=[{x:K-f,y:F.y},{x:j+f,y:F.y}]):z==J?(T=4,F={x:r+z+f,y:l},C=[{x:F.x,y:L-f},{x:F.x,y:M+f}]):(T=8,F={x:r,y:l+z+f},C=[{x:K-f,y:F.y},{x:j+f,y:F.y}]),b.push(C,T),d.push(F)}let[k,w]=d,v=[],j={x:s,y:r},K={x:a,y:x};v.push([k,{x:k.x,y:w.y},w],[k,{x:w.x,y:k.y},w]);let[R,J]=u;if(!l.bL(R,J)){let e=R.x<J.x?R:J,t=e==R?J:R,i=R.y<J.y?R:J,s=i==R?J:R,o=t.x-e.x-e.width,r=s.y-i.y-i.height;if(o>0){let t=e.x+e.width+o/2,i={x:t,y:k.y},s={x:t,y:w.y};v.push([k,i,s,w])}if(r>0){let e=i.y+i.height+r/2,t={x:k.x,y:e},s={x:w.x,y:e};v.push([k,t,s,w])}}let[M,Y,F,C]=b;M[0].x==M[1].x?v.push([k,M[0],{x:w.x,y:M[0].y},w],[k,M[1],{x:w.x,y:M[1].y},w]):v.push([k,M[0],{x:M[0].x,y:w.y},w],[k,M[1],{x:M[1].x,y:w.y},w]),F[0].x==F[1].x?v.push([k,{x:k.x,y:F[0].y},F[0],w],[k,{x:k.x,y:F[1].y},F[1],w]):v.push([k,{x:F[0].x,y:k.y},F[0],w],[k,{x:F[1].x,y:k.y},F[1],w]);let T=Y|C;5==T?1==Y?v.push([k,M[0],{x:R.x+R.width,y:M[0].y},{x:R.x+R.width,y:w.y},w],[k,M[1],{x:R.x+R.width,y:M[1].y},{x:R.x+R.width,y:w.y},w]):v.push([k,M[0],{x:R.x,y:M[0].y},{x:R.x,y:w.y},w],[k,M[1],{x:R.x,y:M[1].y},{x:R.x,y:w.y},w]):10==T&&(2==Y?v.push([k,M[0],{x:M[0].x,y:R.y+R.height},{x:w.x,y:R.y+R.height},w],[k,M[1],{x:M[1].x,y:R.y+R.height},{x:w.x,y:R.y+R.height},w]):v.push([k,M[0],{x:M[0].x,y:R.y},{x:w.x,y:R.y},w],[k,M[1],{x:M[1].x,y:R.y},{x:w.x,y:R.y},w]));let z=[],B=Number.MAX_VALUE,A=B,O=B;for(let e of v){let t=g(e),i=y(n,t,[j,...e,K]);i._gK<B?(z=e,B=i._gK,A=i._gL,O=i._gM):B==i._gK&&i._gL<A?(z=e,A=i._gL,O=i._gM):B==i._gK&&i._gL==A&&i._gM<O&&(z=e,O=i._gM)}L.push(...z),((e,t,i)=>{if(i.length>=2){let[t,s]=i;(t.x==s.x&&s.x==e.x||t.y==s.y&&s.y==e.y)&&i.shift()}if(i.length>=2){let e=i[i.length-1],s=i[i.length-2];(e.x==s.x&&e.x==t.x||e.y==s.y&&e.y==t.y)&&i.pop()}})(j,K,L);let N=[j,K,...L],P=N.length,I=o.bK(1);for(let e=0;e<P;e++){let t=N[e];for(let i=e;i<P;i++){let e=N[i];c(t.x-e.x)<=I&&(e.x=t.x),c(t.y-e.y)<=I&&(e.y=t.y)}}let W=k.x,Z=k.y,H=k.x,$=k.y;for(let e of N){let t=e.x,i=e.y;t<W&&(W=t),t>H&&(H=t),i<Z&&(Z=i),i>$&&($=i)}e.x=W,e.y=Z,e.width=H-W,e.height=$-Z;let{x:U,y:E}=((e,t,i,s)=>{let r=0,d=e,l=0,a=o.bV();for(;l<=t.length;){let e=l==t.length?i:t[l];o.cA(a,c(d.x-e.x))?r+=c(e.y-d.y):r+=c(e.x-d.x),d=e,l++}let n=r*s,p=0;for(l=0,d=e;l<=t.length;){let e=0,s=l==t.length?i:t[l],r=0;if(o.cA(a,c(d.x-s.x))?(e=c(s.y-d.y),r=1):e=c(s.x-d.x),p+e>=n){let e=n-p;return r?{x:s.x,y:s.y>d.y?d.y+e:d.y-e}:{x:s.x>d.x?d.x+e:d.x-e,y:s.y}}p+=e,d=s,l++}})(j,L,K,m);t=U,i=E}e.textX=t-_/2,e.textY=i-u/2,e.textPointX=t,e.textPointY=i},_gN:e=>"bezier"==e.lineType?["M","start","L","ctrl1","M","end","L","ctrl2"]:[],_gO:e=>"bezier"==e.lineType?["ctrl1","ctrl2"]:[],_c4:(e,t)=>({alpha:1,points:[],lineType:"line",x:e,y:t,linkFromId:"",linkFromKey:"",linkToId:"",linkToKey:"",startX:e,startY:t,endX:e+300,endY:t+100,ctrl1X:o.bK(e+50),ctrl1Y:o.bK(t+50),ctrl2X:o.bK(e+250),ctrl2Y:o.bK(t+50),text:"",textWidth:o.bK(80),textHeight:o.bK(20),textRotate:0,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:o.bK(12),textLetterspacing:0,textPosition:.5,textOffsetX:0,textOffsetY:0,startArrow:1,endArrow:1,dash:0,linewidth:o.bK(2),color:"#000",locked:!1}),props:[{key:"linkFromId",json:1},{key:"linkFromKey",json:1},{key:"linkToId",json:1},{key:"linkToKey",json:1},{key:"x",read:l.bM,json:1},{key:"y",read:l.bM,json:1},{key:"textPointX",read:l.bM,json:1},{key:"textPointY",read:l.bM,json:1},{key:"textX",read:l.bM,json:1},{key:"textY",read:l.bM,json:1},{key:"width",read:l.bM,json:1},{key:"height",read:l.bM,json:1},{key:"startX",_c6:1},{key:"startY",_c6:1},{key:"endX",_c6:1},{key:"endY",_c6:1},{key:"ctrl1X",_c6:1},{key:"ctrl1Y",_c6:1},{key:"ctrl2X",_c6:1},{key:"ctrl2Y",_c6:1},{key:"points",_e5(e,t){let{points:i}=t,s=[];for(let e of i)s.push({x:l.bM(e.x),y:l.bM(e.y)});e.points=s}},{key:"startX",read:l.bM,json:1},{key:"startY",read:l.bM,json:1},{tip:"fu",key:"lineType",type:r.bQ,items:[{value:"line",icon:"",text:"fv"},{value:"polyline",icon:"",text:"fw"},{value:"bezier",icon:"",text:"fx"}],json:1,write(e,t){if("bezier"==e){let e,i,s,o,{startX:r,startY:d,endX:l,endY:a}=t,n=h(r,l),c=h(d,a),b=(p(r,l)-n)/4,g=(p(d,a)-c)/8;r<l?(e=r+b,s=l-b):(e=r-b,s=l+b),d<a?(i=d+g,o=a-g):(i=d-g,o=a+g),t.ctrl1X=e,t.ctrl2X=s,t.ctrl1Y=i,t.ctrl2Y=o}return e}},{type:r.b8,_e5(e,t){e.ctrl1X=l.bM(t.ctrl1X),e.ctrl1Y=l.bM(t.ctrl1Y),e.ctrl2X=l.bM(t.ctrl2X),e.ctrl2Y=l.bM(t.ctrl2Y)},_fZ:e=>"bezier"==e.lineType},{key:"endX",read:l.bM,json:1},{key:"endY",read:l.bM,json:1},{tip:"fy",key:"startArrow",type:r.bQ,items:[{icon:'<svg class="cj" style="height:18px"><path d="M1 10L50 10" style="fill:none;stroke:#333" /></svg>',value:1},{icon:'<svg class="cj" style="height:18px"><path d="M50 10L8 10L8 6L1 10L8 14L8 10z" style="fill:#333;stroke:#333" /></svg>',value:2},{icon:'<svg class="cj" style="height:18px"><path d="M50 10L8 10L8 6L1 10L8 14L8 10z" style="fill:none;stroke:#333" /></svg>',value:3},{icon:'<svg class="cj" style="height:18px"><path d="M50 10L1 10L8 6M1 10L8 14" style="fill:none;stroke:#333" /></svg>',value:4},{icon:'<svg class="cj" style="height:18px"><path d="M50 10L13 10L7 6L1 10L7 14L13 10z" style="fill:#333;stroke:#333" /></svg>',value:5},{icon:'<svg class="cj" style="height:18px"><path d="M50 10L13 10L7 6L1 10L7 14L13 10" style="fill:none;stroke:#333" /></svg>',value:6},{icon:'<svg class="cj" style="height:18px"><path d="M50 10L9 10" style="fill:none;stroke:#333" /><circle cx="5" cy="10" r="4" style="fill:#333;stroke:#333"/></svg>',value:7},{icon:'<svg class="cj" style="height:18px"><path d="M50 10L9 10" style="fill:none;stroke:#333" /><circle cx="5" cy="10" r="4" style="fill:none;stroke:#333"/></svg>',value:8},{icon:'<svg class="cj" style="height:18px"><path d="M50 10L1 10M1 6L8 10M1 14L8 10" style="fill:none;stroke:#333" /></svg>',value:9}],json:1},{tip:"fz",key:"endArrow",type:r.bQ,items:[{icon:'<svg class="cj" style="height:18px"><path d="M1 10L50 10" style="fill:none;stroke:#333" /></svg>',value:1},{icon:'<svg class="cj" style="height:18px"><path d="M1 10L42 10L42 6L50 10L42 14L42 10z" style="fill:#333;stroke:#333" /></svg>',value:2},{icon:'<svg class="cj" style="height:18px"><path d="M1 10L42 10L42 6L50 10L42 14L42 10z" style="fill:none;stroke:#333" /></svg>',value:3},{icon:'<svg class="cj" style="height:18px"><path d="M1 10L50 10L42 6M50 10L42 14" style="fill:none;stroke:#333" /></svg>',value:4},{icon:'<svg class="cj" style="height:18px"><path d="M1 10L37 10L43 6L50 10L43 14L37 10z" style="fill:#333;stroke:#333" /></svg>',value:5},{icon:'<svg class="cj" style="height:18px"><path d="M1 10L37 10L43 6L50 10L43 14L37 10z" style="fill:none;stroke:#333" /></svg>',value:6},{icon:'<svg class="cj" style="height:18px"><path d="M1 10L42 10" style="fill:none;stroke:#333" /><circle cx="46" cy="10" r="4" style="fill:#333;stroke:#333"/></svg>',value:7},{icon:'<svg class="cj" style="height:18px"><path d="M1 10L42 10" style="fill:none;stroke:#333" /><circle cx="46" cy="10" r="4" style="fill:none;stroke:#333"/></svg>',value:8},{icon:'<svg class="cj" style="height:18px"><path d="M1 10L50 10M50 6L42 10M50 14L42 10" style="fill:none;stroke:#333" /></svg>',value:9}],json:1},{type:r.c_},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{key:"linewidth",_c6:1,read:l.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:l.bM,write:l.bR,fixed:o.cy,step:o.bV,_c6:1,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bS,json:1},{tip:"dB",type:r.bJ,key:"textWidth",min:0,_c6:1,read:l.bM,write:l.bR,fixed:o.cy,step:o.bV,json:1},{tip:"dC",key:"textHeight",type:r.bJ,min:0,_c6:1,read:l.bM,write:l.bR,fixed:o.cy,step:o.bV,json:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,read:l.bM,write:l.bR,fixed:o.cy,step:o.bV,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:o.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,read:l.bM,write:l.bR,fixed:o.cy,step:o.bV,json:1},{tip:"d4",key:"textBackground",clear:1,alpha:1,type:r.bK,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{tip:"dE",type:r.bJ,key:"textRotate",min:-360,max:360,json:1},{tip:"fA",type:r.bJ,key:"textPosition",min:0,max:1,fixed:2,step:.01,json:1},{tip:"fB",type:r.bJ,key:"textOffsetX",_c6:1,read:l.bM,write:l.bR,fixed:o.cy,step:o.bV,json:1},{tip:"fC",type:r.bJ,key:"textOffsetY",_c6:1,read:l.bM,write:l.bR,fixed:o.cy,step:o.bV,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/connector/dshow",["1h","../../../1g/1j","../../../1g/22","../../../1g/1k"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/22"),d=e("../../../1g/1k"),{State:l,View:a}=s;i.exports=a.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,n,{toUnit:c,props:p,unit:h,toScale:b,toPx:g,ox:y,oy:f,animation:x,scale:_,time:u,textReturn:m}=e,k=Math.max,w=c(1);if(a=[],r=[],2==p.endArrow?(o=[t("path",{d:"M2 1L8 3L2 5z",style:"fill:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:7,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):3==p.endArrow?(o=[t("path",{d:"M2 1L7 3L2 5z",style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:7,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):4==p.endArrow?(o=[t("path",{d:"M2 1L8 3L2 5",style:"fill:none;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:7,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):5==p.endArrow?(o=[t("path",{d:"M4 1L7 3L4 5L1 3z",style:"fill:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:7,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):6==p.endArrow?(o=[t("path",{d:"M4 1L7 3L4 5L1 3z",style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:8,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):7==p.endArrow?(o=[t("circle",{cx:3,cy:3,r:2,style:"fill:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 6 6",refX:5,refY:3,orient:"auto",markerWidth:6,markerHeight:6},o))):8==p.endArrow?(o=[t("circle",{cx:3,cy:3,r:2,style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 6 6",refX:6,refY:3,orient:"auto",markerWidth:6,markerHeight:6},o))):9==p.endArrow&&(o=[t("path",{d:"M2 4L6 1M2 4L6 7",style:"fill:none;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 6 8",refX:6,refY:4,orient:"auto",markerWidth:6,markerHeight:8},o))),2==p.startArrow?(o=[t("path",{d:"M6 1L0 3L6 5z",style:"fill:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:1,refY:3,markerWidth:8,markerHeight:6,orient:"auto"},o))):3==p.startArrow?(o=[t("path",{d:"M6 1L1 3L6 5z",style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:1,refY:3,markerWidth:8,markerHeight:6,orient:"auto"},o))):4==p.startArrow?(o=[t("path",{d:"M6 1L0 3L6 5",style:"fill:none;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:1,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):5==p.startArrow?(o=[t("path",{d:"M4 1L7 3L4 5L1 3z",style:"fill:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:1,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):6==p.startArrow?(o=[t("path",{d:"M4 1L7 3L4 5L1 3z",style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:0,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):7==p.startArrow?(o=[t("circle",{cx:3,cy:3,r:2,style:"fill:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 6 6",refX:1,refY:3,orient:"auto",markerWidth:6,markerHeight:6},o))):8==p.startArrow?(o=[t("circle",{cx:3,cy:3,r:2,style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 6 6",refX:0,refY:3,orient:"auto",markerWidth:6,markerHeight:6},o))):9==p.startArrow&&(o=[t("path",{d:"M4 4L0 1M4 4L0 7",style:"fill:none;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 6 8",refX:0,refY:4,orient:"auto",markerWidth:6,markerHeight:8},o))),a.push(t("defs",0,r)),d="M"+g(p.startX-p.x+y)+" "+g(p.startY-p.y+f),"line"==p.lineType)d+="L";else if("bezier"==p.lineType)d+="C"+g(p.ctrl1X-p.x+y)+" "+g(p.ctrl1Y-p.y+f)+" "+g(p.ctrl2X-p.x+y)+" "+g(p.ctrl2Y-p.y+f)+" ";else{for(let e=p.points,t=0,i=e.length;t<i;t+=1){let i=e[t];d+="L"+g(i.x-p.x+y)+" "+g(i.y-p.y+f)}d+="L"}return d+=g(p.endX-p.x+y)+" "+g(p.endY-p.y+f),a.push(t("path",{style:"fill:none;stroke:"+p.color+";stroke-width:"+p.linewidth+h,"stroke-dasharray":p.dash+h,"marker-start":1!=p.startArrow&&"url(#as_"+i+")","marker-end":1!=p.endArrow&&"url(#a_"+i+")",id:"p_"+i,d:d},1)),x&&(o=[t("mpath",{"xlink:href":"#p_"+i},1)],r=[t("animateMotion",{dur:u/_+"s",repeatCount:"indefinite"},o)],a.push(t("circle",{r:4*_,fill:"#FA742B"},r))),o=[t(0,m(p.text),1)],l="line-height:"+p.textHeight+h+";font-size:"+p.textFontsize+h+";width:"+p.textWidth+h+";height:"+p.textHeight+h+";color:"+p.textForecolor+";",p.textBackground&&(l+="background:"+p.textBackground+";"),l+="letter-spacing:"+p.textLetterspacing+h+";font-family:"+p.textFontfamily,r=[t("div",{class:"co",style:l},o)],a.push(t("foreignObject",{transform:"rotate("+p.textRotate+","+g(p.textPointX-p.x+p.textOffsetX+y)+","+g(p.textPointY-p.y+p.textOffsetY+f)+")",x:p.textX-p.x+p.textOffsetX+y+h,y:p.textY-p.y+p.textOffsetY+f+h,width:p.textWidth+h,height:p.textHeight+h},r)),n=[t("svg",{class:"cr dB",style:"width:"+k(b(p.width),w)+h+";height:"+k(b(p.height),w)+h+";opacity:"+p.alpha},a)],s=[t("div",{class:"cr dR",style:"left:"+p.x+h+";top:"+p.y+h+";width:"+p.width+h+";height:"+p.height+h},n)],t(i,0,s)},init(){this.set({toUnit:o.bK,toScale:o.bL,toPx:o.bX,ox:0,oy:0})},assign(e){this.set(e)},render(){let e=this.get("props");if(!e)return;let t=r.bN(),i=0,s=o.bK(50),a=l.get("bL"),{linkFromId:n,linkToId:c,lineType:p,points:h,startX:b,startY:g,endX:y,endY:f}=e,x=this.get("eId"),_=5;if(t&&(t[n]||t[c]||t[x])){i=1;let e={x:b,y:g},t={x:y,y:f};if("polyline"==p){let i=0;for(let t of h)i+=d.bX(e,t),e=t;i+=d.bX(e,t),_=i/s}else _=d.bX(e,t)/s}this.digest({time:_,scale:a,animation:i})}})})),define("27/flow/connector/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,n,{toUnit:c,props:p,unit:h,toScale:b,toPx:g,ox:y,oy:f,animation:x,scale:_,time:u,textReturn:m}=e,k=Math.max,w=c(1);if(a=[],r=[],2==p.endArrow?(o=[t("path",{d:"M2 1L8 3L2 5z",style:"fill:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:7,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):3==p.endArrow?(o=[t("path",{d:"M2 1L7 3L2 5z",style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:7,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):4==p.endArrow?(o=[t("path",{d:"M2 1L8 3L2 5",style:"fill:none;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:7,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):5==p.endArrow?(o=[t("path",{d:"M4 1L7 3L4 5L1 3z",style:"fill:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:7,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):6==p.endArrow?(o=[t("path",{d:"M4 1L7 3L4 5L1 3z",style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 8 6",refX:8,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):7==p.endArrow?(o=[t("circle",{cx:3,cy:3,r:2,style:"fill:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 6 6",refX:5,refY:3,orient:"auto",markerWidth:6,markerHeight:6},o))):8==p.endArrow?(o=[t("circle",{cx:3,cy:3,r:2,style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 6 6",refX:6,refY:3,orient:"auto",markerWidth:6,markerHeight:6},o))):9==p.endArrow&&(o=[t("path",{d:"M2 4L6 1M2 4L6 7",style:"fill:none;stroke:"+p.color},1)],r.push(t("marker",{id:"a_"+i,viewBox:"0 0 6 8",refX:6,refY:4,orient:"auto",markerWidth:6,markerHeight:8},o))),2==p.startArrow?(o=[t("path",{d:"M6 1L0 3L6 5z",style:"fill:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:1,refY:3,markerWidth:8,markerHeight:6,orient:"auto"},o))):3==p.startArrow?(o=[t("path",{d:"M6 1L1 3L6 5z",style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:1,refY:3,markerWidth:8,markerHeight:6,orient:"auto"},o))):4==p.startArrow?(o=[t("path",{d:"M6 1L0 3L6 5",style:"fill:none;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:1,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):5==p.startArrow?(o=[t("path",{d:"M4 1L7 3L4 5L1 3z",style:"fill:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:1,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):6==p.startArrow?(o=[t("path",{d:"M4 1L7 3L4 5L1 3z",style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 8 6",refX:0,refY:3,orient:"auto",markerWidth:8,markerHeight:6},o))):7==p.startArrow?(o=[t("circle",{cx:3,cy:3,r:2,style:"fill:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 6 6",refX:1,refY:3,orient:"auto",markerWidth:6,markerHeight:6},o))):8==p.startArrow?(o=[t("circle",{cx:3,cy:3,r:2,style:"fill:#fff;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 6 6",refX:0,refY:3,orient:"auto",markerWidth:6,markerHeight:6},o))):9==p.startArrow&&(o=[t("path",{d:"M4 4L0 1M4 4L0 7",style:"fill:none;stroke:"+p.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 6 8",refX:0,refY:4,orient:"auto",markerWidth:6,markerHeight:8},o))),a.push(t("defs",0,r)),d="M"+g(p.startX-p.x+y)+" "+g(p.startY-p.y+f),"line"==p.lineType)d+="L";else if("bezier"==p.lineType)d+="C"+g(p.ctrl1X-p.x+y)+" "+g(p.ctrl1Y-p.y+f)+" "+g(p.ctrl2X-p.x+y)+" "+g(p.ctrl2Y-p.y+f)+" ";else{for(let e=p.points,t=0,i=e.length;t<i;t+=1){let i=e[t];d+="L"+g(i.x-p.x+y)+" "+g(i.y-p.y+f)}d+="L"}return d+=g(p.endX-p.x+y)+" "+g(p.endY-p.y+f),a.push(t("path",{style:"fill:none;stroke:"+p.color+";stroke-width:"+p.linewidth+h,"stroke-dasharray":p.dash+h,"marker-start":1!=p.startArrow&&"url(#as_"+i+")","marker-end":1!=p.endArrow&&"url(#a_"+i+")",id:"p_"+i,d:d},1)),x&&(o=[t("mpath",{"xlink:href":"#p_"+i},1)],r=[t("animateMotion",{dur:u/_+"s",repeatCount:"indefinite"},o)],a.push(t("circle",{r:4*_,fill:"#FA742B"},r))),o=[t(0,m(p.text),1)],l="line-height:"+p.textHeight+h+";font-size:"+p.textFontsize+h+";width:"+p.textWidth+h+";height:"+p.textHeight+h+";color:"+p.textForecolor+";",p.textBackground&&(l+="background:"+p.textBackground+";"),l+="letter-spacing:"+p.textLetterspacing+h+";font-family:"+p.textFontfamily,r=[t("div",{class:"co",style:l},o)],a.push(t("foreignObject",{transform:"rotate("+p.textRotate+","+g(p.textPointX-p.x+p.textOffsetX+y)+","+g(p.textPointY-p.y+p.textOffsetY+f)+")",x:p.textX-p.x+p.textOffsetX+y+h,y:p.textY-p.y+p.textOffsetY+f+h,width:p.textWidth+h,height:p.textHeight+h},r)),n=[t("svg",{class:"cr dB",style:"width:"+k(b(p.width),w)+h+";height:"+k(b(p.height),w)+h+";opacity:"+p.alpha},a)],s=[t("div",{class:"cr dR",style:"left:"+p.x+h+";top:"+p.y+h+";width:"+p.width+h+";height:"+p.height+h},n)],t(i,0,s)},init(){this.set({toUnit:o.bK,toScale:o.bL,toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/data/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer"),{max:a}=Math;i.exports=l.extend({ctor(){this.set({view:"27/flow/data/index"})}}).static({type:"flow/data",title:"fD",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:o,width:r,height:l}=e,n=t+r/2,c=i+l/2,p={x:n,y:c},h=s.bK(20),b=[{x:t,y:i},{x:t,y:i+l},{x:t+r,y:i+l},{x:t+r,y:i},{x:t+h,y:c},{x:t+r-h,y:c},{x:n,y:i+l},{x:n,y:i}],g=0;for(let t of b){let i=d.bS(t,p),s=d.bU(t,p,i+o);e[`p${g}XReal`]=s.x,e[`p${g}YReal`]=s.y,e[`p${g}X`]=t.x,e[`p${g}Y`]=t.y,g++}e.textX=t+s.bK(40),e.textY=i,e.textWidth=a(r-s.bK(80),0),e.textHeight=l},_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),color:"#000",fillColor:"",dash:0,text:"",locked:!1,padding:s.bK(10),textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(80),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,_c6:1,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/data/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M40 0L0 "+f+"L"+(y-40)+" "+f+"L"+y+" 0z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/database/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer"),{max:a}=Math;i.exports=l.extend({ctor(){this.set({view:"27/flow/database/index"})}}).static({type:"flow/database",title:"fE",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,n=i+r/2,c={x:l,y:n},p=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:i+r/2},{x:t+o,y:n},{x:l,y:i+r},{x:l,y:i}],h=0;for(let t of p){let i=d.bS(t,c),o=d.bU(t,c,i+s);e[`p${h}XReal`]=o.x,e[`p${h}YReal`]=o.y,e[`p${h}X`]=t.x,e[`p${h}Y`]=t.y,h++}let b=o/8;e.textX=t+b,e.textY=i,e.textWidth=a(o-3*b,0),e.textHeight=r},_c4:(e,t)=>({height:s.bK(120),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),color:"#000",fillColor:"",padding:s.bK(10),dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,fixed:s.cy,step:s.bV,min:()=>s.bK(40),read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/database/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M"+y/8+" 0L"+y/8*7+" 0A"+y/8+" "+f/2+" 0 0 1 "+y/8*7+" "+f+"L"+y/8+" "+f+"A"+y/8+" "+f/2+" 0 0 1 "+y/8+" 0M"+y/8*7+" "+f+"A"+y/8+" "+f/2+" 0 0 1 "+y/8*7+" 0",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/decision/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/decision/index"})}}).static({type:"flow/decision",title:"fF",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:a},{x:t+o,y:a},{x:l,y:i+r},{x:l,y:i},{x:t+o/4,y:i},{x:t+o/4*3,y:i},{x:t+o/4,y:i+r},{x:t+o/4*3,y:i+r}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}e.textX=t+o/4,e.textY=i+r/4,e.textWidth=o/2,e.textHeight=r/2},_c4:(e,t)=>({fillcolor:"",height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0,locked:!1}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,_c6:1,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/decision/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M"+y/2+" 0L0 "+f/2+"L"+y/2+" "+f+"L"+y+" "+f/2+"z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/display/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer"),{max:a}=Math;i.exports=l.extend({ctor(){this.set({view:"27/flow/display/index"})}}).static({type:"flow/display",title:"fL",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,n=i+r/2,c={x:l,y:n},p=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:i+r/2},{x:t+o,y:n},{x:l,y:i+r},{x:l,y:i}],h=0;for(let t of p){let i=d.bS(t,c),o=d.bU(t,c,i+s);e[`p${h}XReal`]=o.x,e[`p${h}YReal`]=o.y,e[`p${h}X`]=t.x,e[`p${h}Y`]=t.y,h++}let b=o/8;e.textX=t+b,e.textY=i,e.textWidth=a(o-2*b,0),e.textHeight=r},_c4:(e,t)=>({height:s.bK(120),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,_c6:1,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,_c6:1,min:0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,_c6:1,min:0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/display/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M"+y/8+" 0L"+y/8*7+" 0A"+y/8+" "+f/2+" 0 0 1 "+y/8*7+" "+f+"L"+y/8+" "+f+"L0 "+f/2+"z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/document/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer"),a=(e,t,i,s,o)=>t*(1-e)*(1-e)*(1-e)+3*i*e*(1-e)*(1-e)+3*s*e*e*(1-e)+o*e*e*e;i.exports=l.extend({ctor(){this.set({view:"27/flow/document/index"})}}).static({type:"flow/document",title:"fM",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,n=i+r/2,c={x:l,y:n},p=i+r+r/2,h=i+r/2,b=i+r,g=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:n},{x:t+o,y:n},{x:l,y:i},{x:a(.5,t,t+o/4,t+3*o/4,t+o),y:a(.5,i+r,p,h,b)}],y=0;for(let t of g){let i=d.bS(t,c),o=d.bU(t,c,i+s);e[`p${y}XReal`]=o.x,e[`p${y}YReal`]=o.y,e[`p${y}X`]=t.x,e[`p${y}Y`]=t.y,y++}e.textX=t,e.textY=i,e.textWidth=o,e.textHeight=r-r/8},_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,fixed:s.cy,step:s.bV,min:()=>s.bK(80),read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/document/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M0 0L0 "+f+"C"+y/4+" "+1.5*f+" "+.75*y+" "+f/2+" "+y+" "+f+"L"+y+" 0z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/estore/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/estore/index"})}}).static({type:"flow/estore",title:"fN",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:i+r/2},{x:t+7*o/8,y:a},{x:l,y:i+r},{x:l,y:i}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}let h=o/8;e.textX=t+h,e.textY=i,e.textWidth=o-2*h,e.textHeight=r},_c4:(e,t)=>({height:s.bK(120),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/estore/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M"+y/8+" 0L"+y+" 0A"+y/8+" "+f/2+" 0 0 0 "+y+" "+f+"L"+y/8+" "+f+"A"+y/8+" "+f/2+" 0 0 1 "+y/8+" 0",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/istore/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/istore/index"})}}).static({type:"flow/istore",title:"fO",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:a},{x:t+o,y:a},{x:l,y:i+r},{x:l,y:i}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}e.textX=t+.1*o,e.textY=i+.1*r,e.textWidth=.9*o,e.textHeight=.9*r},_c4:(e,t)=>({height:s.bK(150),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(150),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/istore/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=(p(n.width),p(n.height));return l=[t("path",{d:"M0 0L0 "+y+"L"+y+" "+y+"L"+y+" 0ZM"+.1*y+" 0L"+.1*y+" "+y+"M0 "+.1*y+"L"+y+" "+.1*y,style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/looplimit/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/looplimit/index"})}}).static({type:"flow/looplimit",title:"fP",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:a},{x:t+o,y:a},{x:l,y:i+r},{x:l,y:i}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}e.textX=t,e.textY=i,e.textWidth=o,e.textHeight=r},_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(150),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,_gr:1,json:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/looplimit/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s,{min:l}=Math;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,n,{props:c,unit:p,toPx:h,min:b,ox:g,oy:y,textReturn:f}=e;o="";let x=h(c.width),_=h(c.height);o+=" ";let u=b(x,_);return a=[t("path",{d:"M"+u/4+" 0L0 "+u/4+"L0 "+_+"L"+x+" "+_+"L"+x+" "+u/4+"L"+(x-u/4)+" 0z",style:"fill:"+(c.fillColor||"none")+";stroke:"+c.color+";stroke-width:"+c.linewidth+p,"stroke-dasharray":c.dash+p},1)],d=[t(0,f(c.text),1)],r="padding:"+c.padding+p+";font-size:"+c.textFontsize+p+";width:"+c.textWidth+p+";color:"+c.textForecolor+";",c.textBackground&&(r+="background:"+c.textBackground+";"),r+="letter-spacing:"+c.textLetterspacing+p+";font-family:"+c.textFontfamily,l=[t("div",{class:"c7 cF cI cZ ck",style:r},d)],a.push(t("foreignObject",{x:c.textX-c.x+g+p,y:c.textY-c.y+y+p,width:c.textWidth+p,height:c.textHeight+p},l)),n=[t("svg",{class:"cr dB",style:"width:"+c.width+p+";height:"+c.height+p+";opacity:"+c.alpha},a)],s=[t("div",{class:"cr dR",style:"left:"+c.x+p+";top:"+c.y+p+";width:"+c.width+p+";height:"+c.height+p+";transform:rotate("+c.rotate+"deg)"},n)],t(i,0,s)},init(){this.set({min:l,toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/manual/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/manual/index"})}}).static({type:"flow/manual",title:"fQ",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:i+r/4+r/4*3/2},{x:t+o,y:a},{x:l,y:i+r},{x:l,y:i+r/8}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}e.textX=t,e.textY=i+r/4,e.textWidth=o,e.textHeight=r/4*3},_c4:(e,t)=>({height:s.bK(120),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/manual/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M0 "+f/4+"L0 "+f+"L"+y+" "+f+"L"+y+" 0z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/moperation/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/moperation/index"})}}).static({type:"flow/moperation",title:"fR",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t+.05*o,y:a},{x:t+.95*o,y:a},{x:l,y:i+r},{x:l,y:i}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}e.textX=t+.1*o,e.textY=i,e.textWidth=.8*o,e.textHeight=r},_c4:(e,t)=>({height:s.bK(150),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(150),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,locked:!1,text:"",textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/moperation/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M0 0L"+.1*y+" "+f+"L"+.9*y+" "+f+"L"+y+" 0z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/pageref/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer"),a=(e,t,i,s,o)=>t*(1-e)*(1-e)*(1-e)+3*i*e*(1-e)*(1-e)+3*s*e*e*(1-e)+o*e*e*e;i.exports=l.extend({ctor(){this.set({view:"27/flow/pageref/index"})}}).static({type:"flow/pageref",title:"fS",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,n=i+r/2,c={x:l,y:n},p=i+r+r/2,h=i+r/2,b=i+r,g=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:n},{x:t+o,y:n},{x:l,y:i},{x:a(.5,t,t+o/4,t+3*o/4,t+o),y:a(.5,i+r,p,h,b)}],y=0;for(let t of g){let i=d.bS(t,c),o=d.bU(t,c,i+s);e[`p${y}XReal`]=o.x,e[`p${y}YReal`]=o.y,e[`p${y}X`]=t.x,e[`p${y}Y`]=t.y,y++}e.textX=t,e.textY=i,e.textWidth=o,e.textHeight=.75*r},_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(150),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(80),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/pageref/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M0 0L0 "+.75*f+"L"+y/2+" "+f+"L"+y+" "+.75*f+"L"+y+" 0z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/parallel/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/parallel/index"})}}).static({type:"flow/parallel",title:"fT",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a={x:l,y:i+r/2},n=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:l,y:i},{x:l,y:i+r}],c=0;for(let t of n){let i=d.bS(t,a),o=d.bU(t,a,i+s);e[`p${c}XReal`]=o.x,e[`p${c}YReal`]=o.y,e[`p${c}X`]=t.x,e[`p${c}Y`]=t.y,c++}e.textX=t,e.textY=i,e.textWidth=o,e.textHeight=r},_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,locked:!1,text:"",textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,fixed:s.cy,step:s.bV,min:()=>s.bK(40),read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,fixed:s.cy,step:s.bV,type:r.bJ,min:()=>s.bK(40),read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,_c6:1,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/parallel/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M0 0L"+y+" 0M"+y+" "+f+"L0 "+f,style:"stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],o="left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)",n.fillColor&&(o+=";background:"+n.fillColor),s=[t("div",{class:"cr dR",style:o},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/prepare/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/prepare/index"})}}).static({type:"flow/prepare",title:"fU",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7","p8","p9","p10","p11"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:a},{x:t+o,y:a},{x:l,y:i+r},{x:l,y:i},{x:t+o/4,y:i},{x:t+o/4*3,y:i},{x:t+o/4,y:i+r},{x:t+o/4*3,y:i+r}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}e.textX=t+o/4,e.textY=i,e.textWidth=o/2,e.textHeight=r},_c4:(e,t)=>({height:s.bK(120),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(150),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,locked:!1,text:"",textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),fixed:s.cy,step:s.bV,json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/prepare/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M"+y/4+" 0L0 "+f/2+"L"+y/4+" "+f+"L"+y/4*3+" "+f+"L"+y+" "+f/2+"L"+y/4*3+" 0z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/process/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/process/index"})}}).static({type:"flow/process",title:"fV",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7","p8","p9","p10","p11"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:a},{x:t+o,y:a},{x:l,y:i+r},{x:l,y:i},{x:t+o/4,y:i},{x:t+o/4*3,y:i},{x:t+o/4,y:i+r},{x:t+o/4*3,y:i+r}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}e.textX=t,e.textY=i,e.textWidth=o,e.textHeight=r},_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:d.bM,write:d.bR,min:0,_c6:1,max:()=>s.bK(20),fixed:s.cy,step:s.bV,json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,_gr:1,json:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/process/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M0 0L0 "+f+"L"+y+" "+f+"L"+y+" 0z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/qdata/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer"),{sqrt:a}=Math;i.exports=l.extend({ctor(){this.set({view:"27/flow/qdata/index"})}}).static({type:"flow/qdata",title:"fW",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,n=i+r/2,c={x:l,y:n},p=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:n},{x:t+o,y:n},{x:l,y:i+r},{x:l,y:i}],h=0;for(let t of p){let i=d.bS(t,c),o=d.bU(t,c,i+s);e[`p${h}XReal`]=o.x,e[`p${h}YReal`]=o.y,e[`p${h}X`]=t.x,e[`p${h}Y`]=t.y,h++}let b,g,y=o/2,f=r/2,x=o/8,_=x-y,u=a(f*f*(1-_*_/(y*y))),m=f-u;b=m,g=f+u-m,e.textX=t+x,e.textY=i+b,e.textWidth=o/4*3,e.textHeight=g},_c4:(e,t)=>({height:s.bK(150),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(150),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,locked:!1,text:"",textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),fixed:s.cy,step:s.bV,json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/qdata/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("ellipse",{cx:y/2,cy:f/2,rx:y/2,ry:f/2,style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1),t("path",{d:"M"+y/2+" "+f+"L"+y+" "+f,style:"fill:none;stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/ref/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer"),{sqrt:a}=Math;i.exports=l.extend({ctor(){this.set({view:"27/flow/ref/index"})}}).static({type:"flow/ref",title:"fX",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,n=i+r/2,c={x:l,y:n},p=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:n},{x:t+o,y:n},{x:l,y:i+r},{x:l,y:i}],h=0;for(let t of p){let i=d.bS(t,c),o=d.bU(t,c,i+s);e[`p${h}XReal`]=o.x,e[`p${h}YReal`]=o.y,e[`p${h}X`]=t.x,e[`p${h}Y`]=t.y,h++}let b,g,y=o/2,f=r/2,x=o/8,_=x-y,u=a(f*f*(1-_*_/(y*y))),m=f-u;b=m,g=f+u-m,e.textX=t+x,e.textY=i+b,e.textWidth=o/4*3,e.textHeight=g},_c4:(e,t)=>({height:s.bK(150),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(150),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,locked:!1,text:"",textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:d.bM,write:d.bR,min:0,_c6:1,max:()=>s.bK(20),fixed:s.cy,step:s.bV,json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/ref/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("ellipse",{cx:y/2,cy:f/2,rx:y/2,ry:f/2,style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/subprocess/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer");i.exports=l.extend({ctor(){this.set({view:"27/flow/subprocess/index"})}}).static({type:"flow/subprocess",title:"fY",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,a=i+r/2,n={x:l,y:a},c=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:a},{x:t+o,y:a},{x:l,y:i+r},{x:l,y:i}],p=0;for(let t of c){let i=d.bS(t,n),o=d.bU(t,n,i+s);e[`p${p}XReal`]=o.x,e[`p${p}YReal`]=o.y,e[`p${p}X`]=t.x,e[`p${p}Y`]=t.y,p++}e.textX=t+.1*o,e.textY=i,e.textWidth=.8*o,e.textHeight=r},_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),fixed:s.cy,step:s.bV,json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/subprocess/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M0 0L0 "+f+"L"+y+" "+f+"L"+y+" 0ZM"+.1*y+" 0L"+.1*y+" "+f+"M"+.9*y+" 0L"+.9*y+" "+f,style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/tape/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer"),a=(e,t,i,s,o)=>t*(1-e)*(1-e)*(1-e)+3*i*e*(1-e)*(1-e)+3*s*e*e*(1-e)+o*e*e*e;i.exports=l.extend({ctor(){this.set({view:"27/flow/tape/index"})}}).static({type:"flow/tape",title:"fZ",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:s,width:o,height:r}=e,l=t+o/2,n=i+r/2,c={x:l,y:n},p=i+r+r/2,h=i+r/2,b=i+r,g=[{x:t,y:i},{x:t,y:i+r},{x:t+o,y:i+r},{x:t+o,y:i},{x:t,y:n},{x:t+o,y:n},{x:l,y:i},{x:a(.5,t,t+o/4,t+3*o/4,t+o),y:a(.5,i+r,p,h,b)}],y=0;for(let t of g){let i=d.bS(t,c),o=d.bU(t,c,i+s);e[`p${y}XReal`]=o.x,e[`p${y}YReal`]=o.y,e[`p${y}X`]=t.x,e[`p${y}Y`]=t.y,y++}e.textX=t,e.textY=i+r/8,e.textWidth=o,e.textHeight=r-r/4},_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,text:"",locked:!1,textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(80),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),fixed:s.cy,step:s.bV,json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/tape/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,toPx:p,ox:h,oy:b,textReturn:g}=e,y=p(n.width),f=p(n.height);return l=[t("path",{d:"M0 0C"+y/4+" "+.5*f+" "+.75*y+" "+-f/2+" "+y+" 0L"+y+" "+f+"C"+.75*y+" "+.5*f+" "+.25*y+" "+1.5*f+" 0 "+f+"L0 0z",style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c},1)],r=[t(0,g(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+h+c,y:n.textY-n.y+b+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/flow/terminator/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../designer"),{max:a}=Math;i.exports=l.extend({ctor(){this.set({view:"27/flow/terminator/index"})}}).static({type:"flow/terminator",title:"f0",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_gJ:["p4","p5","p6","p7"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{x:t,y:i,rotate:o,width:r,height:l}=e,n=t+r/2,c=i+l/2,p={x:n,y:c},h=[{x:t,y:i},{x:t,y:i+l},{x:t+r,y:i+l},{x:t+r,y:i},{x:t,y:c},{x:t+r,y:c},{x:n,y:i+l},{x:n,y:i}],b=0;for(let t of h){let i=d.bS(t,p),s=d.bU(t,p,i+o);e[`p${b}XReal`]=s.x,e[`p${b}YReal`]=s.y,e[`p${b}X`]=t.x,e[`p${b}Y`]=t.y,b++}e.textX=t+s.bK(20),e.textY=i,e.textWidth=a(r-s.bK(40),0),e.textHeight=l},_c4:(e,t)=>({height:s.bK(60),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(2),padding:s.bK(10),color:"#000",fillColor:"",dash:0,locked:!1,text:"",textForecolor:"#000",textFontfamily:"Microsoft YaHei",textBackground:"",textFontsize:s.bK(14),textLetterspacing:0}),props:[{key:"textX",read:d.bM,json:1},{key:"textY",read:d.bM,json:1},{key:"textWidth",read:d.bM,json:1},{key:"textHeight",read:d.bM,json:1},{key:"padding",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(40),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"linewidth",_c6:1,read:d.bM,json:1},{tip:"fp",key:"dash",type:r.bJ,read:d.bM,write:d.bR,min:0,_c6:1,max:()=>s.bK(20),fixed:s.cy,step:s.bV,json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillColor",type:r.bK,alpha:1,clear:1,json:1},{type:r.c_},{tip:"fr",key:"text",type:r.bO,json:1,_gr:1},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"textFontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"textLetterspacing",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"textForecolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/flow/terminator/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{props:n,unit:c,ox:p,oy:h,textReturn:b}=e;return l=[t("rect",{x:0,y:0,width:n.width+c,height:n.height+c,style:"fill:"+(n.fillColor||"none")+";stroke:"+n.color+";stroke-width:"+n.linewidth+c,"stroke-dasharray":n.dash+c,rx:20,ry:n.height/2+c},1)],r=[t(0,b(n.text),1)],o="padding:"+n.padding+c+";font-size:"+n.textFontsize+c+";width:"+n.textWidth+c+";color:"+n.textForecolor+";",n.textBackground&&(o+="background:"+n.textBackground+";"),o+="letter-spacing:"+n.textLetterspacing+c+";font-family:"+n.textFontfamily,d=[t("div",{class:"c7 cF cI cZ ck",style:o},r)],l.push(t("foreignObject",{x:n.textX-n.x+p+c,y:n.textY-n.y+h+c,width:n.textWidth+c,height:n.textHeight+c},d)),a=[t("svg",{class:"cr dB",style:"width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha},l)],s=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/lscreen/border-bg/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u");i.exports=l.extend({ctor(){this.set({view:"27/lscreen/border-bg/index"})}}).static({type:"lscreen/border-bg",title:"gX",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),image:"",locked:!1}),props:[{key:"image",json:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/lscreen/border-bg/index",["1h"],((e,t,i)=>{let s=e("1h");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,{props:o,unit:r}=e;return s=[t("div",{class:"cr dR",style:"left:"+o.x+r+";top:"+o.y+r+";height:"+o.height+r+";opacity:"+o.alpha+";width:"+o.width+r+";transform:rotate("+o.rotate+"deg);background:url(./images/border_1.png);background-size:"+o.width+r+" "+o.height+r})],t(i,0,s)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/lscreen/border-css4/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u"),{max:a}=Math;i.exports=l.extend({ctor(){this.set({view:"27/lscreen/border-css4/index"})}}).static({type:"lscreen/border-css4",title:"gX",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(300),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(400),locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:({minWidth:e})=>null==e?0:a(0,e),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:({minHeight:e})=>null==e?0:a(0,e),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/lscreen/border-css4/index",["1h"],((e,t,i)=>{let s,o,r=e("1h"),{View:d,applyStyle:l}=r;l("f_",".f5{border:1px solid #19ba8b2b;background:#0001}.f6::after,.f6::before,.f7::after,.f7::before{position:absolute;content:'';width:10px;height:10px}.f7::before{border-left:2px solid #02a6b5;left:0;border-top:2px solid #02a6b5}.f7::after{border-right:2px solid #02a6b5;right:0;border-top:2px solid #02a6b5}.f6::before{border-left:2px solid #02a6b5;left:0;bottom:0;border-bottom:2px solid #02a6b5}.f6::after{border-right:2px solid #02a6b5;right:0;bottom:0;border-bottom:2px solid #02a6b5}"),i.exports=d.extend({tmpl:(e,t,i)=>{let r,d,{props:l,unit:a}=e;return d=s?[s]:[s=t("div",{_:"a;",class:"cj cr dL f7"})],o?d.push(o):d.push(o=t("div",{_:"a:",class:"cj cr dL dO f6"})),r=[t("div",{class:"cr dR f5",style:"left:"+l.x+a+";top:"+l.y+a+";height:"+l.height+a+";opacity:"+l.alpha+";width:"+l.width+a+";transform:rotate("+l.rotate+"deg)"},d)],t(i,0,r)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/lscreen/image/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u");i.exports=l.extend({ctor(){this.set({view:"27/lscreen/image/index"})}}).static({type:"lscreen/image",title:"gY",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,rotateX:!1,rotateY:!1,width:s.bK(200),image:"",locked:!1}),props:[{key:"image",json:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"gS",type:r.bL,key:"rotateX",json:1},{tip:"gT",type:r.bL,key:"rotateY",json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/lscreen/image/index",["1h"],((e,t,i)=>{let s=e("1h");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d}=e;return o="left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",(r.rotateX||r.rotateY)&&(o+=";transform:",r.rotateX&&(o+="rotateX(180deg)"),r.rotateY&&(o+=" rotateY(180deg)")),s=[t("img",{class:"b8 cr dR",src:r.image,style:o},1)],t(i,0,s)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/lscreen/border-css2/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u"),{max:a}=Math;i.exports=l.extend({ctor(){this.set({view:"27/lscreen/border-css2/index"})}}).static({type:"lscreen/border-css2",title:"gX",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(300),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(400),locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:({minWidth:e})=>null==e?0:a(0,e),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:({minHeight:e})=>null==e?0:a(0,e),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/lscreen/border-css2/index",["1h"],((e,t,i)=>{let s,o=e("1h"),{View:r,applyStyle:d}=o;d("e7",".f3{border-radius:10px;border:1px #0174f5 solid;padding:1px;background:#0208171a}.f4{border:2px solid #016ae0;border-radius:10px}"),i.exports=r.extend({tmpl:(e,t,i)=>{let o,r,{props:d,unit:l}=e;return r=s?[s]:[s=t("div",{_:"a;",class:"cj ck f4"})],o=[t("div",{class:"cr dR f3",style:"left:"+d.x+l+";top:"+d.y+l+";height:"+d.height+l+";opacity:"+d.alpha+";width:"+d.width+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,o)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/arc/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../designer"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../designer"),{State:p}=s,{PI:h,min:b,cos:g,sin:y,sqrt:f,pow:x}=Math;i.exports=c.extend({ctor(){this.set({view:"27/svg/arc/index"})}}).static({type:"svg/arc",title:"hS",icon:"",_hv:[["cr","center"]],_hB:["M","startA","L","start","M","endA","L","end"],_hC:["rxr","ryr","start","end"],_dd:r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e,t){let{rx:i,ry:s,x:o,y:r,startAngle:d,endAngle:l}=e;if(e.width=2*i,e.height=2*s,t){let i=a.bK(e)._ct[0];e.x+=t.x-i.x,e.y+=t.y-i.y,o=e.x,r=e.y}e.centerX=o+i,e.centerY=r+s,e.rxrX=o+2*i,e.rxrY=r+s,e.ryrX=o+i,e.ryrY=r+2*s,l<d&&([l,d]=[d,l]),d>0&&(d-=360),l<0&&(l+=360);let n=h/180,c=b(i,s)/2;e.startAX=e.centerX+i*g(d*n),e.startAY=e.centerY+s*y(d*n),e.endAX=e.centerX+i*g(l*n),e.endAY=e.centerY+s*y(l*n),e.startX=e.centerX+c*g(d*n),e.startY=e.centerY+c*y(d*n),e.endX=e.centerX+c*g(l*n),e.endY=e.centerY+c*y(l*n),e.startAngle=d,e.endAngle=l,e.cr=c},_hE(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l,ctrl:c}=e,{centerX:h,centerY:b,rotate:g,ename:y}=l,f=l[`${i}Angle`];g=(360+g)%360;let x=a.bN({x:t.pageX,y:t.pageY}),_={x:o.bX(h),y:o.bX(b)},u=a.bS(x,_),{eventTarget:m}=t;n._cj(m),s._ci(t,(t=>{r||(r=1);let o=a.bN({x:t.pageX,y:t.pageY}),d=a.bS(o,_),n=f+(d-u);n>360?n-=360:n<-360&&(n+=360),l[`${i}Angle`]=n,c._cF&&c._cF(l),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hD:1}})}),(()=>{n._ck(),r&&d.bJ(d.cj,y),p.fire("bY",{hide:1})}))},_hG(e,t,i,s){if("start"==i||"end"==i)return void this._hE(e,t,i,s);p.fire("bY",{show:1,size:1});let r,{props:l,ctrl:c}=e,{centerX:b,centerY:_,rx:u,ry:m,rotate:k,ename:w}=l;b=o.bX(b),_=o.bX(_),u=o.bX(u),m=o.bX(m),k=(360+k)%360;let v="rxr"==i,j=0,K=0,R=p.get("bL");for(let e of c.props)"rx"==e.key?j=o.bX(e.min())*R:"ry"==e.key&&(K=o.bX(e.min())*R);let J=v?j:K,M=a.bN({x:t.pageX,y:t.pageY}),{k:L,b:S}=a.bV(b,_,k),X=-1/L,V=_-b*X,Y=v?X:L,F=M.y-M.x*Y,C=M.x,T=M.y,{eventTarget:z}=t;n._cj(z),s._ci(t,(t=>{r||(r=1);let i,d,n=a.bN({x:t.pageX,y:t.pageY}),w=Y*n.x+F-n.y<0,j=n.y-n.x*Y;i=v?(S-j)/(X-L):(V-j)/(L-X),d=Y*i+j,0==k||180==k?v?(i=n.x,d=_,w=n.x>M.x):(w=n.y>M.y,i=b,d=n.y):90!=k&&270!=k||(v?(i=b,d=n.y,w=n.y>M.y):(i=n.x,d=_,w=n.x>M.x));let K=1;K=v?k>=0&&k<180?w?1:-1:w?-1:1:k>=90&&k<270?w?-1:1:w?1:-1;let R=f(x(i-C,2)+x(d-T,2))/2,z=v?k:90+k,B=v?u:m;B+K*R-J<=0&&(R=(J-B)/K),l.centerX=o.bK(b+K*R*g(z*h/180)),l.centerY=o.bK(_+K*R*y(z*h/180)),v?l.rx=o.bK(u+K*R):l.ry=o.bK(m+K*R),(e=>{let{centerX:t,centerY:i,rotate:s,rx:o,ry:r}=e,d=a.bV(t,i,s),l=-1/d.k,n={x:t,y:i},c={x:t,y:i-r},p={x:t-o,y:i},h=a.bU(p,n,s+180),b=a.bU(c,n,s+270),g=h.y-h.x*l,y=(b.y-b.x*d.k-g)/(l-d.k),f=l*y+g;0==s?(y=t-o,f=i-r):180==s&&(y=t+o,f=i+r);let x={x:y,y:f},_=a.bS(x,n),{x:u,y:m}=a.bU(x,n,_-s);e.x=u,e.y=m,e.width=2*o,e.height=2*r,e.rxrX=u+2*o,e.rxrY=m+r,e.ryrX=u+o,e.ryrY=m+2*r})(l),c._cF&&c._cF(l),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hF:1}})}),(()=>{n._ck(),r&&d.bJ(d.cj,w),p.fire("bY",{hide:1})}))},_c4:(e,t)=>({alpha:1,x:o.bK(e),y:o.bK(t),rxrY:o.bK(t+50),ryrX:o.bK(e+100),ryrY:o.bK(t+100),centerX:o.bK(e+100),centerY:o.bK(t+50),rx:o.bK(100),ry:o.bK(80),startAngle:-160,endAngle:20,rotate:0,linewidth:o.bK(1),fillcolor:"",dash:0,color:"#000",closed:!1,locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{key:"width",read:a.bM,json:1},{key:"height",read:a.bM,json:1},{key:"centerX",read:a.bM,json:1},{key:"centerY",read:a.bM,json:1},{tip:"hT",key:"rx",_c6:1,type:l.bJ,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1,min:()=>o.bK(20)},{tip:"hU",key:"ry",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,type:l.bJ,json:1,min:()=>o.bK(10)},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{tip:"hV",type:l.bJ,read:e=>+e.toFixed(1),key:"startAngle",min:-360,max:360,step:.1,fixed:1,json:1},{tip:"hW",type:l.bJ,key:"endAngle",read:e=>+e.toFixed(1),min:-360,max:360,step:.1,fixed:1,json:1},{tip:"dL",key:"linewidth",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,type:l.bJ,min:()=>0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,min:()=>0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{tip:"hX",key:"closed",json:1,type:l.bL},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/arc/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{PI:r,cos:d,sin:l}=Math,{State:a,View:n}=s;i.exports=n.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a,toPx:n,startX:c,ox:p,startY:h,oy:b,big:g,endX:y,endY:f}=e;return r=[t("path",{d:"M"+n(c-l.x+p)+" "+n(h-l.y+b)+"A"+n(l.rx)+" "+n(l.ry)+" 0 "+(g?1:0)+" 1 "+n(y-l.x+p)+" "+n(f-l.y+b)+(l.closed?"z":""),style:"fill:"+(l.fillcolor||"none")+";stroke:"+l.color+";stroke-width:"+l.linewidth+a+";opacity:"+l.alpha,"stroke-dasharray":l.dash+a},1)],d=[t("svg",{class:"cr dB",style:"width:"+l.width+a+";height:"+l.height+a},r)],o="left:"+l.x+a+";top:"+l.y+a+";width:"+l.width+a+";height:"+l.height+a,l.rotate&&(o+=";transform:rotate("+l.rotate+"deg)"),s=[t("div",{class:"cr dR",style:o},d)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:a.get("b5")||0,oy:a.get("b6")||0})},assign(e){this.set(e);let{props:t}=e,{startAngle:i,endAngle:s,rx:o,ry:a,centerX:n,centerY:c}=t;i=parseFloat(i),s=parseFloat(s),s<i&&([s,i]=[i,s]);let p=s-i;p>360&&(i+=360,p=s-i);let h=p>=180,b=r/180,g=n+o*d(i*b),y=c+a*l(i*b),f=n+o*d(s*b),x=c+a*l(s*b);this.set({big:h,startX:g,startY:y,endX:f,endY:x})},render(){this.digest()}})})),define("27/svg/bezier3/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../../24/33","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../../24/33"),a=e("../designer"),{abs:n,sqrt:c,min:p,max:h}=Math,b=(e,t,i,s,o)=>t*(1-e)*(1-e)*(1-e)+3*i*e*(1-e)*(1-e)+3*s*e*e*(1-e)+o*e*e*e;i.exports=a.extend({ctor(){this.set({view:"27/svg/bezier3/index"})}}).static({type:"svg/bezier3",title:"h5",icon:"",_dd:o.bX,_cE:[{key:"x",use:"x"},{key:"y",use:"y"},{key:"ctrl2X",use:"x"},{key:"ctrl2Y",use:"y"},{key:"ctrl3X",use:"x"},{key:"ctrl3Y",use:"y"},{key:"ctrl1X",use:"x"},{key:"ctrl1Y",use:"y"},{key:"ctrl4X",use:"x"},{key:"ctrl4Y",use:"y"}],_cF(e){let{x:t,y:i,width:s,height:o}=(e=>{let t,i,s,o,r,d,l,a,{ctrl1X:g,ctrl1Y:y,ctrl2X:f,ctrl2Y:x,ctrl3X:_,ctrl3Y:u,ctrl4X:m,ctrl4Y:k}=e,w=[],v=[],j=[];for(let e=0;e<2;++e)if(0==e?(i=6*g-12*f+6*_,t=-3*g+9*f-9*_+3*m,s=3*f-3*g):(i=6*y-12*x+6*u,t=-3*y+9*x-9*u+3*k,s=3*x-3*y),n(t)<1e-12){if(n(i)<1e-12)continue;o=-s/i,0<o&&o<1&&w.push(o)}else l=i*i-4*s*t,l<0||(a=c(l),r=(-i+a)/(2*t),0<r&&r<1&&w.push(r),d=(-i-a)/(2*t),0<d&&d<1&&w.push(d));let K=w.length;for(;K--;)o=w[K],v[K]=b(o,g,f,_,m),j[K]=b(o,y,x,u,k);v.push(g,m),j.push(y,k);let R=p(...v),J=h(...v),M=p(...j);return{x:R,y:M,width:J-R,height:h(...j)-M}})(e);e.x=t,e.y=i,e.width=s,e.height=o},_hB:["M","ctrl1","L","ctrl2","M","ctrl4","L","ctrl3"],_hH:["ctrl1","ctrl4","ctrl2","ctrl3"],_c4:(e,t)=>({alpha:1,x:s.bK(e),y:s.bK(t),ctrl1X:s.bK(e),ctrl1Y:s.bK(t),ctrl4X:s.bK(e+300),ctrl4Y:s.bK(t+100),ctrl2X:s.bK(e+50),ctrl2Y:s.bK(t+50),ctrl3X:s.bK(e+250),ctrl3Y:s.bK(t+50),startArrow:!1,endArrow:!1,dash:0,linewidth:s.bK(1),color:"#000",fillcolor:"",locked:!1}),props:[{key:"ctrl1X",_c6:1},{key:"ctrl1Y",_c6:1},{key:"ctrl2X",_c6:1},{key:"ctrl2Y",_c6:1},{key:"ctrl3X",_c6:1},{key:"ctrl3Y",_c6:1},{key:"ctrl4X",_c6:1},{key:"ctrl4Y",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{key:"width",read:d.bM,json:1},{key:"height",read:d.bM,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{type:r.b8,_e5(e,t){let i=l._hI(t);for(let s of i)e[s+"X"]=d.bM(t[s+"X"]),e[s+"Y"]=d.bM(t[s+"Y"])}},{tip:"fy",key:"startArrow",type:r.bL,json:1},{tip:"fz",key:"endArrow",type:r.bL,json:1},{type:r.c_},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillcolor",type:r.bK,json:1,alpha:1,clear:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/bezier3/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{props:a,unit:n,toPx:c,ox:p,oy:h}=e;return o=[t("path",{d:"M0 0 L16 8 L0 16z",style:"fill:"+a.color},1)],r=[t("marker",{id:"a_"+i,viewBox:"0 0 16 16",refX:8,refY:8,markerWidth:8,markerHeight:8,orient:"auto"},o)],o=[t("path",{d:"M16 0 L0 8 L16 16z",style:"fill:"+a.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 16 16",refX:8,refY:8,markerWidth:8,markerHeight:8,orient:"auto"},o)),d=[t("defs",0,r),t("path",{d:"M"+c(a.ctrl1X-a.x+p)+","+c(a.ctrl1Y-a.y+h)+" C"+c(a.ctrl2X-a.x+p)+" "+c(a.ctrl2Y-a.y+h)+" "+c(a.ctrl3X-a.x+p)+" "+c(a.ctrl3Y-a.y+h)+" "+c(a.ctrl4X-a.x+p)+","+c(a.ctrl4Y-a.y+h),style:"fill:"+(a.fillcolor||"none")+";stroke:"+a.color+";stroke-width:"+a.linewidth+n+";opacity:"+a.alpha,"stroke-dasharray":a.dash+n,"marker-start":a.startArrow&&"url(#as_"+i+")","marker-end":a.endArrow&&"url(#a_"+i+")"},1)],l=[t("svg",{class:"cr dB",style:"width:"+a.width+n+";height:"+a.height+n},d)],s=[t("div",{class:"cr dR",style:"left:"+a.x+n+";top:"+a.y+n+";width:"+a.width+n+";height:"+a.height+n},l)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/bezier2/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../../24/33","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../../24/33"),a=e("../designer"),{min:n,max:c}=Math,p=(e,t,i,s)=>t*(1-e)*(1-e)+2*i*e*(1-e)+s*e*e;i.exports=a.extend({ctor(){this.set({view:"27/svg/bezier2/index"})}}).static({type:"svg/bezier2",title:"h4",icon:"",_dd:o.bX,_cE:[{key:"x",use:"x"},{key:"y",use:"y"},{key:"ctrl2X",use:"x"},{key:"ctrl2Y",use:"y"},{key:"ctrl1X",use:"x"},{key:"ctrl1Y",use:"y"},{key:"ctrl3X",use:"x"},{key:"ctrl3Y",use:"y"}],_cF(e){let{ctrl1X:t,ctrl1Y:i,ctrl2X:s,ctrl2Y:o,ctrl3X:r,ctrl3Y:d}=e,l=(t-s)/(t-2*s+r),a=[t,r],h=[i,d];l>=0&&l<=1&&a.push(p(l,t,s,r)),l=(i-o)/(i-2*o+d),l>=0&&l<=1&&h.push(p(l,i,o,d));let b=n(...a),g=c(...a),y=n(...h),f=c(...h);e.x=b,e.y=y,e.width=g-b,e.height=f-y},_hH:["ctrl1","ctrl2","ctrl3"],_hB:["M","ctrl1","L","ctrl2","L","ctrl3"],_c4:(e,t)=>({alpha:1,x:s.bK(e),y:s.bK(t),ctrl1X:s.bK(e+200),ctrl1Y:s.bK(t),ctrl3X:s.bK(e),ctrl3Y:s.bK(t+100),ctrl2X:s.bK(e),ctrl2Y:s.bK(t),linewidth:s.bK(1),startArrow:!1,endArrow:!1,dash:0,color:"#000",fillcolor:"",locked:!1}),props:[{key:"ctrl1X",_c6:1},{key:"ctrl1Y",_c6:1},{key:"ctrl2X",_c6:1},{key:"ctrl2Y",_c6:1},{key:"ctrl3X",_c6:1},{key:"ctrl3Y",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{key:"width",read:d.bM,json:1},{key:"height",read:d.bM,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{type:r.b8,_e5(e,t){let i=l._hI(t);for(let s of i)e[s+"X"]=d.bM(t[s+"X"]),e[s+"Y"]=d.bM(t[s+"Y"])}},{tip:"fy",key:"startArrow",type:r.bL,json:1},{tip:"fz",key:"endArrow",type:r.bL,json:1},{type:r.c_},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillcolor",type:r.bK,json:1,alpha:1,clear:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/bezier2/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{props:a,unit:n,toPx:c,ox:p,oy:h}=e;return o=[t("path",{d:"M0 0 L16 8 L0 16z",style:"fill:"+a.color},1)],r=[t("marker",{id:"a_"+i,viewBox:"0 0 16 16",refX:8,refY:8,markerWidth:8,markerHeight:8,orient:"auto"},o)],o=[t("path",{d:"M16 0 L0 8 L16 16z",style:"fill:"+a.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 16 16",refX:8,refY:8,markerWidth:8,markerHeight:8,orient:"auto"},o)),d=[t("defs",0,r),t("path",{d:"M"+c(a.ctrl1X-a.x+p)+" "+c(a.ctrl1Y-a.y+h)+"Q"+c(a.ctrl2X-a.x+p)+" "+c(a.ctrl2Y-a.y+h)+" "+c(a.ctrl3X-a.x+p)+" "+c(a.ctrl3Y-a.y+h),style:"fill:"+(a.fillcolor||"none")+";stroke:"+a.color+";stroke-width:"+a.linewidth+n+";opacity:"+a.alpha,"stroke-dasharray":a.dash+n,"marker-start":a.startArrow&&"url(#as_"+i+")","marker-end":a.endArrow&&"url(#a_"+i+")"},1)],l=[t("svg",{class:"cr dB",style:"width:"+a.width+n+";height:"+a.height+n},d)],s=[t("div",{class:"cr dR",style:"left:"+a.x+n+";top:"+a.y+n+";width:"+a.width+n+";height:"+a.height+n},l)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/battery/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u");i.exports=l.extend({ctor(){this.set({view:"27/svg/battery/index"})}}).static({type:"svg/battery",title:"hY",icon:"",_dd:o.bT|o.bQ|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({x:s.bK(e),y:s.bK(t),width:s.bK(150),height:s.bK(150),outline:"#000",charging:!0,fill:"#000",lightning:"#fff",power:30,rotate:0,alpha:1,locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(20),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(10),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"hZ",type:r.bJ,key:"power",min:0,max:100,json:1},{tip:"h0",type:r.bL,key:"charging",json:1},{tip:"h1",type:r.bK,key:"outline",json:1},{tip:"h2",type:r.bK,key:"fill",json:1},{tip:"h3",type:r.bK,key:"lightning",json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/battery/index",["1h"],((e,t,i)=>{let s={viewBox:"0 0 1024 1024"},o=e("1h"),{min:r}=Math;i.exports=o.View.extend({tmpl:(e,t,i)=>{let o,r,d,{props:l,unit:a}=e,n=8.1*(100-l.power),c=8.1*l.power;return r=[],r.push(t("path",{fill:l.fill,d:"M330 "+(140+n)+"h350v"+c+"H330z"},1)),l.charging&&r.push(t("path",{fill:l.lightning,d:"M499.712 801.131l97.445-324.376-97.445 12.783V266.735l-93.415 314.798 93.415-29.927zm50.077-772.228h-94.704z",stroke:l.fill,"stroke-width":"10px"},1)),r.push(t("path",{fill:l.outline,d:"M440 0c-47.368 0-47.368 76.338-48.788 76.338h190.86S582.072 0 534.704 0z"},1),t("path",{fill:l.outline,d:"M247.742 168.663V919.75c0 99.328 93.712 100.121 93.712 100.121h327.879s93.712 0 93.712-100.12V168.662c0-100.121-93.712-100.121-93.712-100.121H341.454s-93.712 0-93.712 100.12zm427.206-60.45s48.458-.065 48.458 51.234V928.9c0 51.3-48.458 51.3-48.458 51.3H335.84s-48.458 0-48.458-51.3V159.48c0-52.885 48.458-51.3 48.458-51.3h339.11z"},1)),d=[t("svg",s,r)],o=[t("div",{class:"cr dR",style:"left:"+l.x+a+";top:"+l.y+a+";width:"+l.width+a+";height:"+l.height+a+";opacity:"+l.alpha+";transform:rotate("+l.rotate+"deg)"},d)],t(i,0,o)},assign(e){let{props:t}=e,{borderwidth:i,width:s,height:o}=t,d=r(s,o)/2;i>d&&(i=d),this.set(e),this.set({bw:i})},render(){this.digest()}})})),define("27/svg/brace/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u");i.exports=l.extend({ctor(){this.set({view:"27/svg/brace/index"})}}).static({type:"svg/brace",title:"h6",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({alpha:1,x:s.bK(e),y:s.bK(t),width:s.bK(20),height:s.bK(100),dash:0,rotate:0,linewidth:s.bK(1),color:"#000",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/brace/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,toPx:a}=e,n=a(d.width),c=a(d.height);return o=[t("path",{d:"M"+n+" 0C0 0 "+n+" "+c/2+" 0 "+c/2+"M0 "+c/2+"C"+n+" "+c/2+" 0 "+c+" "+n+" "+c,style:"fill:none;stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l},r)],t(i,0,s)},init(){this.set({toPx:o.bX})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/circle/designer",["1h","../../../1g/1j","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../designer"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/1t"),d=e("../../../1g/props"),l=e("../../../1g/1k"),a=e("../../../1o/1q/cursor"),n=e("../designer"),{State:c}=s;i.exports=n.extend({ctor(){this.set({view:"27/svg/circle/index"})}}).static({type:"svg/circle",title:"h7",icon:"",_hC:["rxr"],_cE:[{key:"x",use:"x"},{key:"y",use:"y"},{key:"centerX",use:"x"},{key:"centerY",use:"y"},{key:"rxrX",use:"x"},{key:"rxrY",use:"y"}],_cF(e){let{r:t,centerX:i,centerY:s}=e;e.width=2*t,e.height=2*t,e.x=i-t,e.y=s-t,e.rxrX=e.x+2*t,e.rxrY=e.y+t},_hG(e,t,i,s){c.fire("bY",{show:1,size:1});let d,{props:l,ctrl:n}=e,{r:p,ename:h}=l,b=0,g=c.get("bL");for(let e of n.props)"r"==e.key&&(b=e.min()*g);let{eventTarget:y}=t;s._ci(t,(i=>{d||(a._cj(y),d=1);let r=o.bK(i.pageX-t.pageX),h=p+r;h<b&&(h=b),l.r=h,n._cF&&n._cF(l),s.digest({element:e}),c.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_bM:1}})}),(()=>{d&&(a._ck(),r.bJ(r.ci,h)),c.fire("bY",{hide:1})}))},_c4:(e,t)=>({alpha:1,x:o.bK(e),y:o.bK(t),centerX:o.bK(e+75),centerY:o.bK(t+75),r:o.bK(75),linewidth:o.bK(1),fillcolor:"",dash:0,color:"#000",locked:!1}),props:[{tip:"dz",type:d.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dA",type:d.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{key:"width",read:l.bM,json:1},{key:"height",read:l.bM,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{key:"centerX",_c6:1,read:l.bM,json:1},{key:"centerY",_c6:1,read:l.bM,json:1},{type:d.c_},{tip:"h8",key:"r",_c6:1,type:d.bJ,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1,min:()=>o.bK(20)},{tip:"dL",key:"linewidth",_c6:1,fixed:o.cy,step:o.bV,type:d.bJ,read:l.bM,write:l.bR,min:0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,fixed:o.cy,step:o.bV,type:d.bJ,read:l.bM,write:l.bR,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:d.bK,json:1},{tip:"ew",key:"fillcolor",type:d.bK,json:1,alpha:1,clear:1},{type:d.c_},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/svg/circle/index",["1h"],((e,t,i)=>{let s=e("1h");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l}=e;return o=[t("circle",{r:d.r+l,cx:d.r+l,cy:d.r+l,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l},r)],t(i,0,s)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/ellipse/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../designer"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../designer"),{State:p}=s,{sqrt:h,pow:b,cos:g,sin:y,PI:f}=Math;i.exports=c.extend({ctor(){this.set({view:"27/svg/ellipse/index"})}}).static({type:"svg/ellipse",title:"h9",icon:"",_hC:["rxr","ryr"],_dd:r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e,t,i){let{rx:s,ry:o,x:r,y:d}=e;if(e.width=2*s,e.height=2*o,i){let t=a.bK(e)._ct[0];e.x+=i.x-t.x,e.y+=i.y-t.y,r=e.x,d=e.y}e.centerX=r+s,e.centerY=d+o,e.rxrX=r+2*s,e.rxrY=d+o,e.ryrX=r+s,e.ryrY=d+2*o},_hG(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l,ctrl:c}=e,{centerX:x,centerY:_,rx:u,ry:m,rotate:k,ename:w}=l;k=(360+k)%360;let v="rxr"==i,j=0,K=0,R=p.get("bL");for(let e of c.props)"rx"==e.key?j=e.min()*R:"ry"==e.key&&(K=e.min()*R);let J=v?j:K,M=a.bN({x:t.pageX,y:t.pageY}),L=o.bX(x),S=o.bX(_),{k:X,b:V}=a.bV(L,S,k),Y=-1/X,F=S-L*Y,C=v?Y:X,T=M.y-M.x*C,z=M.x,B=M.y,{eventTarget:A}=t;s._ci(t,(t=>{r||(n._cj(A),r=1);let i,d,w=a.bN({x:t.pageX,y:t.pageY}),j=C*w.x+T-w.y<0,K=w.y-w.x*C;i=v?(V-K)/(Y-X):(F-K)/(X-Y),d=C*i+K,0==k||180==k?v?(i=w.x,d=S,j=w.x>M.x):(j=w.y>M.y,i=L,d=w.y):90!=k&&270!=k||(v?(i=L,d=w.y,j=w.y>M.y):(i=w.x,d=S,j=w.x>M.x));let R=1;R=v?k>=0&&k<180?j?1:-1:j?-1:1:k>=90&&k<270?j?-1:1:j?1:-1;let O=o.bK(h(b(i-z,2)+b(d-B,2)))/2,N=v?k:90+k,P=v?u:m;P+R*O-J<=0&&(O=(J-P)/R),l.centerX=x+R*O*g(N*f/180),l.centerY=_+R*O*y(N*f/180),v?l.rx=u+R*O:l.ry=m+R*O,(e=>{let{centerX:t,centerY:i,rotate:s,rx:o,ry:r}=e,d=a.bV(t,i,s),l=-1/d.k,n={x:t,y:i},c={x:t,y:i-r},p={x:t-o,y:i},h=a.bU(p,n,s+180),b=a.bU(c,n,s+270),g=h.y-h.x*l,y=(b.y-b.x*d.k-g)/(l-d.k),f=l*y+g;0==s?(y=t-o,f=i-r):180==s&&(y=t+o,f=i+r);let x={x:y,y:f},_=a.bS(x,n),{x:u,y:m}=a.bU(x,n,_-s);e.x=u,e.y=m,e.width=2*o,e.height=2*r,e.rxrX=u+2*o,e.rxrY=m+r,e.ryrX=u+o,e.ryrY=m+2*r})(l),c._cF&&c._cF(l),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_bM:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ci,w)),p.fire("bY",{hide:1})}))},_c4:(e,t)=>({alpha:1,x:o.bK(e),y:o.bK(t),rxrX:o.bK(e+200),rxrY:o.bK(t+50),ryrX:o.bK(e+100),ryrY:o.bK(t+100),centerX:o.bK(e+100),centerY:o.bK(t+50),rx:o.bK(100),ry:o.bK(50),rotate:0,linewidth:o.bK(1),fillcolor:"",dash:0,color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{key:"width",read:a.bM,json:1},{key:"height",read:a.bM,json:1},{key:"centerX",read:a.bM,json:1},{key:"centerY",read:a.bM,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{tip:"hT",key:"rx",_c6:1,fixed:o.cy,step:o.bV,type:l.bJ,read:a.bM,write:a.bR,json:1,min:()=>o.bK(20)},{tip:"hU",key:"ry",_c6:1,fixed:o.cy,step:o.bV,type:l.bJ,read:a.bM,write:a.bR,json:1,min:()=>o.bK(10)},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,read:a.bM,write:a.bR,min:0,fixed:o.cy,step:o.bV,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,min:0,fixed:o.cy,step:o.bV,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/ellipse/index",["1h"],((e,t,i)=>{let s=e("1h"),{State:o,View:r}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a,ox:n,oy:c}=e;return r=[t("ellipse",{cx:l.centerX-l.x+n+a,cy:l.centerY-l.y+c+a,rx:l.rx+a,ry:l.ry+a,style:"fill:"+(l.fillcolor||"none")+";stroke:"+l.color+";stroke-width:"+l.linewidth+a+";opacity:"+l.alpha,"stroke-dasharray":l.dash+a},1)],d=[t("svg",{class:"cr dB",style:"width:"+l.width+a+";height:"+l.height+a},r)],o="left:"+l.x+a+";top:"+l.y+a+";width:"+l.width+a+";height:"+l.height+a,l.rotate&&(o+=";transform:rotate("+l.rotate+"deg)"),s=[t("div",{class:"cr dR",style:o},d)],t(i,0,s)},init(){this.set({ox:o.get("b5")||0,oy:o.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/fan/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u");i.exports=l.extend({ctor(){this.set({view:"27/svg/fan/index"})}}).static({type:"svg/fan",title:"i_",icon:"",_dd:o.bT|o.bQ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({x:s.bK(e),y:s.bK(t),width:s.bK(80),height:s.bK(80),alpha:1,fill:"#FA742B",speed:2,working:!0,locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(30),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(30),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{tip:"ew",type:r.bK,json:1,key:"fill",alpha:1},{tip:"ia",type:r.bL,key:"working",json:1},{tip:"ib",type:r.bJ,key:"speed",json:1,min:.2,max:6,step:.1,fixed:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/fan/index",["1h"],((e,t,i)=>{let s={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},o=e("1h"),{View:r}=o;i.exports=r.extend({tmpl:(e,t,i)=>{let o,r,d,l,{props:a,unit:n}=e;return r=[],a.working&&r.push(t("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 500 510",to:"360 500 510",dur:a.speed+"s",repeatCount:"indefinite"},1)),d=[t("path",{d:"M941.376 595.693c-15.633-99.283-108.77-158.96-225.173-146.083-48.627 5.366-134.595 45.824-145.204 20.339-18.51-86.894 90.139-112.135 169.397-116.183 103.305-5.291 137.717-64.237 87.554-153.447C774.318 104.928 639.771 47.324 552 82.173c-90.306 35.85-127.715 134.389-100.112 265.985 7.074 33.509 39.706 77.992-12.949 92.087-39.238 10.535-65.287-28.484-75.089-67.847-7.804-31.46-15.95-63.334-18.899-95.502-10.217-111.914-71.212-140.547-165.985-76.334-94.038 63.75-141.129 186.372-97.012 270.216 56.36 107.111 152.837 115.744 258.217 92.453 34.02-7.535 79.916-39.556 92.746 14.608 8.584 36.339-31.217 60.679-69.213 75.261-31.802 12.241-62.895 15.998-96.208 17.656-105.185 5.171-135.523 61.58-84.067 152.617 54.021 95.624 190.958 151.399 277.289 112.94 97.331-43.336 152.473-156.738 102.137-289.75-4.391-24.192-33.604-54.335-5.534-67.163 26.848-12.242 50.676 8.413 63.918 27.411 31.021 44.582 44.287 93.062 38.192 151.181-7.584 72.233 32.874 107.134 107.988 93.453 97.964-17.876 190.1-153.131 173.957-255.752z m-440.662-46.678c-21.122 0-38.24-17.121-38.24-38.239 0-21.12 17.118-38.24 38.24-38.24 21.122 0 38.24 17.12 38.24 38.24 0 21.118-17.118 38.239-38.24 38.239z",fill:a.fill},r)],l=[t("svg",s,d)],o=[t("div",{class:"cr dA dR",style:"left:"+a.x+n+";top:"+a.y+n+";width:"+a.width+n+";height:"+a.height+n+";opacity:"+a.alpha},l)],t(i,0,o)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/line/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../../24/33","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../../24/33"),a=e("../designer"),n=["ctrl1","ctrl2"];i.exports=a.extend({ctor(){this.set({view:"27/svg/line/index"})}}).static({type:"svg/line",title:"ic",icon:"",_dd:o.bX,_cE:[{key:"x",use:"x"},{key:"y",use:"y"},{key:"ctrl1X",use:"x"},{key:"ctrl1Y",use:"y"},{key:"ctrl2X",use:"x"},{key:"ctrl2Y",use:"y"}],_cF(e){let t=e.ctrl1X,i=e.ctrl1Y,s=e.ctrl1X,o=e.ctrl1Y;for(let r=n.length;r--;){let d=n[r],l=e[d+"X"],a=e[d+"Y"];l<t&&(t=l),l>s&&(s=l),a<i&&(i=a),a>o&&(o=a)}e.x=t,e.y=i,e.width=s-t,e.height=o-i},_hH:n,_c4:(e,t)=>({alpha:1,x:s.bK(e),y:s.bK(t),ctrl1X:s.bK(e),ctrl1Y:s.bK(t),ctrl2X:s.bK(e+200),ctrl2Y:s.bK(t+100),linewidth:s.bK(1),fillcolor:"",startArrow:!1,endArrow:!1,dash:0,color:"#000",locked:!1}),props:[{key:"ctrl1X",_c6:1},{key:"ctrl1Y",_c6:1},{key:"ctrl2X",_c6:1},{key:"ctrl2Y",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{key:"width",read:d.bM,json:1},{key:"height",read:d.bM,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{type:r.b8,_e5(e,t){let i=l._hI(t);for(let s of i)e[s+"X"]=d.bM(t[s+"X"]),e[s+"Y"]=d.bM(t[s+"Y"])}},{tip:"fy",key:"startArrow",type:r.bL,json:1},{tip:"fz",key:"endArrow",type:r.bL,json:1},{type:r.c_},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/line/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{props:a,unit:n,toPx:c,ox:p,oy:h}=e,b=Math.max;return o=[t("path",{d:"M0 0 L16 8 L0 16z",style:"fill:"+a.color},1)],r=[t("marker",{id:"a_"+i,viewBox:"0 0 16 16",refX:8,refY:8,markerWidth:8,markerHeight:8,orient:"auto"},o)],o=[t("path",{d:"M16 0 L0 8 L16 16z",style:"fill:"+a.color},1)],r.push(t("marker",{id:"as_"+i,viewBox:"0 0 16 16",refX:8,refY:8,markerWidth:8,markerHeight:8,orient:"auto"},o)),d=[t("defs",0,r),t("path",{d:"M"+c(a.ctrl1X-a.x+p)+" "+c(a.ctrl1Y-a.y+h)+"L"+c(a.ctrl2X-a.x+p)+" "+c(a.ctrl2Y-a.y+h),style:"fill:none;stroke:"+a.color+";stroke-width:"+a.linewidth+n+";opacity:"+a.alpha,"stroke-dasharray":a.dash+n,"marker-start":a.startArrow&&"url(#as_"+i+")","marker-end":a.endArrow&&"url(#a_"+i+")"},1)],l=[t("svg",{class:"cr dB",style:"width:"+b(a.width,1)+n+";height:"+b(a.height,1)+n},d)],s=[t("div",{class:"cr dR",style:"left:"+a.x+n+";top:"+a.y+n+";width:"+b(a.width,1)+n+";height:"+b(a.height,1)+n},l)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/polyline/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../../24/33","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../../24/33"),a=e("../designer"),n=["ctrl1","ctrl2","ctrl3"];i.exports=a.extend({ctor(){this.set({view:"27/svg/polyline/index"})}}).static({type:"svg/polyline",title:"fw",icon:"",_dd:o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"},{key:"ctrl1X",use:"x"},{key:"ctrl1Y",use:"y"},{key:"ctrl2X",use:"x"},{key:"ctrl2Y",use:"y"},{key:"ctrl3X",use:"x"},{key:"ctrl3Y",use:"y"}],_cF(e,t,i){let s=e.ctrl1X,o=e.ctrl1Y,r=e.ctrl1X,l=e.ctrl1Y;for(let t=n.length;t--;){let i=n[t],d=e[i+"X"],a=e[i+"Y"];d<s&&(s=d),d>r&&(r=d),a<o&&(o=a),a>l&&(l=a)}if(i){let t={x:s,y:o},r={x:e.width/2+e.x,y:e.height/2+e.y},l=d.bS(t,r);i=d.bU(t,r,e.rotate+l)}if(e.x=s,e.y=o,e.width=r-s,e.height=l-o,i){let t=d.bK(e)._ct[0],s=i.x-t.x,o=i.y-t.y;e.x+=s,e.y+=o;for(let t=n.length;t--;){let i=n[t];e[i+"X"]+=s,e[i+"Y"]+=o}}},_hH:n,_c4:(e,t)=>({alpha:1,x:s.bK(e),y:s.bK(t),ctrl1X:s.bK(e),ctrl1Y:s.bK(t),ctrl2X:s.bK(e+100),ctrl2Y:s.bK(t+50),ctrl3X:s.bK(e+200),ctrl3Y:s.bK(t+100),linewidth:s.bK(1),reverse:!1,dash:0,rotate:0,fillcolor:"",color:"#000",locked:!1}),props:[{key:"ctrl1X",_c6:1},{key:"ctrl1Y",_c6:1},{key:"ctrl2X",_c6:1},{key:"ctrl2Y",_c6:1},{key:"ctrl3X",_c6:1},{key:"ctrl3Y",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{key:"width",read:d.bM,json:1},{key:"height",read:d.bM,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{type:r.b8,_e5(e,t){let i=l._hI(t);for(let s of i)e[s+"X"]=d.bM(t[s+"X"]),e[s+"Y"]=d.bM(t[s+"Y"])}},{tip:"ie",json:1,type:r.bL,key:"reverse"},{type:r.c_},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillcolor",type:r.bK,json:1,alpha:1,clear:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/polyline/index",["1h","../../../1g/1j","../../../1g/1k"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/1k"),{State:d,View:l}=s,{min:a,max:n}=Math,c=e=>{let t=[],i=1,s=e[0];for(;i<e.length;){let o=e[i];t.push([{x:s.x,y:s.y},{x:o.x,y:o.y}]),s=o,i++}return t},p=e=>{let t="";for(let i of e)t+="L"+o.bX(i.x)+","+o.bX(i.y);return t};i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,{x:s,y:l,reverse:h,ctrl1X:b,ctrl1Y:g,ctrl2X:y,ctrl2Y:f,ctrl3X:x,ctrl3Y:_}=t;s-=d.get("b5")||0,l-=d.get("b6")||0;let u="M"+o.bX(b-s)+","+o.bX(g-l),m=a(b,x),k=a(g,_),w=n(b,x),v=n(g,_),j=y>=m&&y<=w,K=f>=k&&f<=v,R="L"+o.bX(y-s)+","+o.bX(g-l)+"L"+o.bX(y-s)+","+o.bX(_-l)+"L"+o.bX(x-s)+","+o.bX(_-l),J="L"+o.bX(b-s)+","+o.bX(f-l)+"L"+o.bX(x-s)+","+o.bX(f-l)+"L"+o.bX(x-s)+","+o.bX(_-l);if(j&&K)u+=h?R:J;else if(j)u+=J;else if(K)u+=R;else{let e=((e,t)=>{let i=[],s=[e,t];for(let e of s){let t=c(e),s=0;for(let e=0;e<t.length-1;e++){let i=t[e];for(let o=e+1;o<t.length;o++){let e=t[o];if(r.bO(i,e)){s=1;break}}if(s)break}s||i.push(e)}return i})([{x:b-s,y:g-l},{x:b-s,y:f-l},{x:y-s,y:f-l},{x:y-s,y:_-l},{x:x-s,y:_-l}],[{x:b-s,y:g-l},{x:y-s,y:g-l},{x:y-s,y:f-l},{x:x-s,y:f-l},{x:x-s,y:_-l}]);u+=p(h?e[e.length-1]:e[0])}this.set({unit:i,props:t,path:u})},render(){this.digest()}})})),define("27/svg/polyline2/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../../24/33","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../../24/33"),a=e("../designer");i.exports=a.extend({ctor(){this.set({view:"27/svg/polyline2/index"})}}).static({type:"svg/polyline2",title:"if",icon:"",_dd:o.bX,_gO:l._hI,_cE:l._hM.bind(l),_cF(e){let t=e.ctrl1X,i=e.ctrl1Y,s=e.ctrl1X,o=e.ctrl1Y,r=l._hI(e);for(let d=r.length;d--;){let l=r[d],a=e[l+"X"],n=e[l+"Y"];a<t&&(t=a),a>s&&(s=a),n<i&&(i=n),n>o&&(o=n)}e.x=t,e.y=i,e.width=s-t,e.height=o-i},_c4:(e,t)=>({alpha:1,x:s.bK(e),y:s.bK(t),ctrl1X:s.bK(e),ctrl1Y:s.bK(t+50),ctrl2X:s.bK(e+100),ctrl2Y:s.bK(t),ctrl3X:s.bK(e+120),ctrl3Y:s.bK(t+180),ctrl4X:s.bK(e+160),ctrl4Y:s.bK(t+100),linewidth:s.bK(1),linejoin:"meter",reverse:!1,dash:0,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{key:"width",read:d.bM,json:1},{key:"height",read:d.bM,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{_e5(e,t){let i=l._hI(t);for(let s of i)e[s+"X"]=d.bM(t[s+"X"]),e[s+"Y"]=d.bM(t[s+"Y"])},_c5(e,t,i){let s=l._hI(e);for(let o of s)e[o+"X"]*=t,e[o+"Y"]*=t,i&&(i[o+"X"]=e[o+"X"],i[o+"Y"]=e[o+"Y"])},_ep(e,t){let i=l._hI(e);for(let o of i)e[o+"X"]=s.cC(e[o+"X"],t),e[o+"Y"]=s.cC(e[o+"Y"],t)},mod:1,min:2,type:r.b8},{type:r.c_},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"ig",key:"linejoin",json:1,type:r.bQ,items:[{text:"ih",value:"meter"},{text:"ii",value:"bevel"},{text:"ij",value:"round"}]},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillcolor",type:r.bK,json:1,alpha:1,clear:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/polyline2/index",["1h","../../../1g/1j","../../../24/33"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../24/33"),{State:d,View:l}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l,"stroke-linejoin":d.linejoin},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,{x:s,y:l}=t;s-=d.get("b5")||0,l-=d.get("b6")||0;let a,n=r._hI(t);for(let e of n){let i=t[e+"X"],r=t[e+"Y"];a?a+="L":a="M",a+=o.bX(i-s)+","+o.bX(r-l)}this.set({unit:i,props:t,path:a})},render(){this.digest()}})})),define("27/svg/polygon/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../../24/33","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../../24/33"),a=e("../designer");i.exports=a.extend({ctor(){this.set({view:"27/svg/polygon/index"})}}).static({type:"svg/polygon",title:"id",icon:"",_dd:o.bX,_gO:l._hI,_cE:l._hM.bind(l),_cF(e){let t=e.ctrl1X,i=e.ctrl1Y,s=e.ctrl1X,o=e.ctrl1Y,r=l._hI(e);for(let d=r.length;d--;){let l=r[d],a=e[l+"X"],n=e[l+"Y"];a<t&&(t=a),a>s&&(s=a),n<i&&(i=n),n>o&&(o=n)}e.x=t,e.y=i,e.width=s-t,e.height=o-i},_c4:(e,t)=>({x:s.bK(e),y:s.bK(t),alpha:1,ctrl1X:s.bK(e),ctrl1Y:s.bK(t+50),ctrl2X:s.bK(e+200),ctrl2Y:s.bK(t+50),ctrl3X:s.bK(e+200),ctrl3Y:s.bK(t),ctrl4X:s.bK(e+250),ctrl4Y:s.bK(t+75),ctrl5X:s.bK(e+200),ctrl5Y:s.bK(t+150),ctrl6X:s.bK(e+200),ctrl6Y:s.bK(t+100),ctrl7X:s.bK(e),ctrl7Y:s.bK(t+100),linewidth:s.bK(1),dash:0,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{key:"width",read:d.bM,json:1},{key:"height",read:d.bM,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{_e5(e,t){let i=l._hI(t);for(let s of i)e[s+"X"]=d.bM(t[s+"X"]),e[s+"Y"]=d.bM(t[s+"Y"])},_c5(e,t,i){let s=l._hI(e);for(let o of s)e[o+"X"]*=t,e[o+"Y"]*=t,i&&(i[o+"X"]=e[o+"X"],i[o+"Y"]=e[o+"Y"])},_ep(e,t){let i=l._hI(e);for(let o of i)e[o+"X"]=s.cC(e[o+"X"],t),e[o+"Y"]=s.cC(e[o+"Y"],t)},mod:1,type:r.b8},{type:r.c_},{tip:"dL",key:"linewidth",type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,_c6:1,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillcolor",type:r.bK,json:1,alpha:1,clear:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/polygon/index",["1h","../../../1g/1j","../../../24/33"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../24/33"),{State:d,View:l}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,s=(e=>{let t=d.get("b5")||0,i=d.get("b6")||0,s=r._hI(e),l=0,a=[];for(let r of s)a.push(l?"L":"M"),l=1,a.push(`${o.bX(e[r+"X"]-e.x+t)} ${o.bX(e[r+"Y"]-e.y+i)}`);return a.push("z"),a.join("")})(t);this.set({props:t,unit:i,path:s})},render(){this.digest()}})})),define("27/svg/rarrow/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s;i.exports=c.extend({ctor(){this.set({view:"27/svg/rarrow/index"})}}).static({type:"svg/rarrow",title:"ik",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hw(e){let{width:t,height:i,mod1X:s,mod1Y:o}=e;return[{x:t*s,y:i/2*o,c:"mod1"}]},_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{x:c,y:h,width:b,height:g,rotate:y,mod1X:f,mod1Y:x,ename:_}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let u=b,m=g/2,k={x:c+b/2,y:h+g/2},{eventTarget:w}=t,v=a.bN({x:t.pageX,y:t.pageY}),j=a.bS(v,k),{x:K,y:R}=a.bU(v,k,j-y),J=b*f,M=g/2*x;s._ci(t,(t=>{r||(n._cj(w),r=1);let i=a.bN({x:t.pageX,y:t.pageY}),o=a.bS(i,k),{x:d,y:c}=a.bU(i,k,o-y),h=d-K+J,f=c-R+M;h<0?h=0:h>u&&(h=u),f<0?f=0:f>m&&(f=m),l.mod1X=h/b,l.mod1Y=f/(g/2),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,_)),p.fire("bY",{hide:1})}))},_c4:(e,t)=>({height:o.bK(150),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(250),linewidth:o.bK(1),dash:0,mod1X:.8,mod1Y:.6,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{type:l.b9,_e5(e,t){e.mod1X=t.mod1X,e.mod1Y=t.mod1Y}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rarrow/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,s="M",{width:r,height:d,mod1X:l,mod1Y:a}=t,n=o.bX(r),c=o.bX(d),p=c/2,h=0,b=p*a;s+=h+" "+b,h=n*l,s+="L"+h+" "+b,s+="L"+h+" 0",s+="L"+n+" "+p,s+="L"+h+" "+c,s+="L"+h+" "+(c-b),s+="L0 "+(c-b)+"z",this.set({unit:i,props:t,path:s})},render(){this.digest()}})})),define("27/svg/rbubble/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s;i.exports=c.extend({ctor(){this.set({view:"27/svg/rbubble/index"})}}).static({type:"svg/rbubble",title:"il",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{x:c,y:h,width:b,height:g,rotate:y,mod1X:f,mod1Y:x,gapPosition:_,ename:u}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let m={x:c+b/2,y:h+g/2},{eventTarget:k}=t,w=a.bN({x:t.pageX,y:t.pageY}),v=a.bS(w,m),{x:j,y:K}=a.bU(w,m,v-y),R=f,J=x;s._ci(t,(t=>{r||(n._cj(k),r=1);let i,d,c=a.bN({x:t.pageX,y:t.pageY}),h=a.bS(c,m),{x:b,y:g}=a.bU(c,m,h-y);i="left"==_?o.bK(j-b)+R:o.bK(b-j)+R,d="top"==_?o.bK(K-g)+J:o.bK(g-K)+J,l.mod1X=i,l.mod1Y=d,s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,u)),p.fire("bY",{hide:1})}))},_hw:({mod1X:e,mod1Y:t,gapPosition:i,width:s,height:o})=>("top"==i?t*=-1:"right"==i?e+=s:"bottom"==i?t+=o:e*=-1,[{x:e,y:t,c:"mod1"}]),_c4:(e,t)=>({height:o.bK(100),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(200),linewidth:o.bK(1),dash:0,mod1X:o.bK(20),mod1Y:o.bK(30),radius:o.bK(10),mod1Type:"int",gapPosition:"bottom",gapPRatio:.08,gapRatio:.16,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,fixed:o.cy,step:o.bV,min:()=>o.bK(20),read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{tip:"er",key:"radius",_c6:1,read:a.bM,write:a.bR,type:l.bJ,fixed:o.cy,step:o.bV,min:0,json:1},{tip:"im",type:l.bQ,key:"gapPosition",items:[{text:"in",value:"top"},{text:"io",value:"right"},{text:"ip",value:"bottom"},{text:"iq",value:"left"}],json:1},{tip:"ir",type:l.bJ,key:"gapPRatio",min:0,max:1,step:.01,fixed:2,json:1},{tip:"is",type:l.bJ,key:"gapRatio",min:0,max:1,step:.01,fixed:2,json:1},{type:l.b9,_e5(e,t){e.mod1Y=a.bM(t.mod1Y),e.mod1X=a.bM(t.mod1X)},_ep(e,t){e.mod1Y=o.cC(e.mod1Y,t),e.mod1X=o.cC(e.mod1X,t)},_c5(e,t,i){e.mod1X*=t,e.mod1Y*=t,i&&(i.mod1X=e.mod1X,i.mod1Y=e.mod1Y)}},{type:l.c_},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rbubble/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{min:r}=Math;i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,{width:s,height:d,mod1X:l,mod1Y:a,radius:n,gapPosition:c,gapPRatio:p,gapRatio:h}=t,b=r(s/2,d/2);n>b&&(n=b);let g=[],y=o.bX(n),f=o.bX(s),x=o.bX(d),_=o.bX(l),u=o.bX(a),m=f-2*y,k=x-2*y,w="A"+y+","+y+",0,0,1,"+y+",0",v="A"+y+","+y+",0,0,1,"+f+","+y,j="A"+y+","+y+",0,0,1,"+(f-y)+","+x,K="A"+y+","+y+",0,0,1,0,"+(x-y);if("top"==c){let e=y+m*p,t=e+m*h;t>f-y&&(t=f-y),g.push(y,",0,L",e,",0","L",_,",",-u,"L",t,",0","L",f-y,",0",v,"L",f,",",x-y,j,"L",y,",",x,",",K,"L0,",y,w)}else if("right"==c){let e=y+k*p,t=e+k*h;t>x-y&&(t=x-y),g.push(y,",0,L",f-y,",0",v,"L",f,",",e,"L",f+_,",",u,"L",f,",",t,"L",f,",",x-y,j,"L",y,",",x,K,"L0,",y,w)}else if("bottom"==c){let e=y+m*p,t=e+m*h;t>f-y&&(t=f-y),g.push(y,",0,L",f-y,",0",v,"L",f,",",x-y,j,"L",t,",",x,"L",_,",",x+u,"L",e,",",x,"L",y,",",x,K,"L0,",y,w)}else if("left"==c){let e=y+k*p,t=e+k*h;t>x-y&&(t=x-y),g.push(y,",0,L",f-y,",0",v,"L",f,",",x-y,j,"L",y,",",x,K,"L0,",t,"L",-_,",",u,"L0,",e,"L0,",y,w)}this.set({unit:i,props:t,path:"M"+g.join("")})},render(){this.digest()}})})),define("27/svg/rcorner/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s;i.exports=c.extend({ctor(){this.set({view:"27/svg/rcorner/index"})}}).static({type:"svg/rcorner",title:"it",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{x:c,y:h,width:b,height:g,rotate:y,mod1Y:f,mod2X:x,mod2Y:_,mod3X:u,ename:m}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let k,w,v=b/2,j=g/2,K={x:c+v,y:h+j},{eventTarget:R}=t,J=a.bN({x:t.pageX,y:t.pageY}),M=a.bS(J,K),{x:L,y:S}=a.bU(J,K,M-y);"mod2"==i?(k=v*x,w=j*_):"mod1"==i?w=g-j*f:k=b-v*u,s._ci(t,(t=>{r||(n._cj(R),r=1);let o=a.bN({x:t.pageX,y:t.pageY}),d=a.bS(o,K),{x:c,y:h}=a.bU(o,K,d-y),f=c-L+k,x=h-S+w;"mod2"==i?(f<0?f=0:f>v&&(f=v),x<0?x=0:x>j&&(x=j),l.mod2X=f/v,l.mod2Y=x/j):"mod1"==i?(x<j?x=j:x>g&&(x=g),l.mod1Y=(g-x)/j):(f<v?f=v:f>b&&(f=b),l.mod3X=(b-f)/v),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,m)),p.fire("bY",{hide:1})}))},_hw(e){let{width:t,height:i,mod1Y:s,mod2X:o,mod2Y:r,mod3X:d}=e;return[{x:t*o/2,y:i*(1-s/2),c:"mod1"},{x:t*o/2,y:i*r/2,c:"mod2"},{x:t*(1-d/2),y:i*r/2,c:"mod3"}]},_c4:(e,t)=>({height:o.bK(120),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(120),linewidth:o.bK(1),dash:0,mod1Y:.2,mod2X:.2,mod2Y:.2,mod3X:.2,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{type:l.b9,_e5(e,t){e.mod1Y=t.mod1Y,e.mod2X=t.mod2X,e.mod2Y=t.mod2Y,e.mod3X=t.mod3X}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rcorner/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,s="M",{width:r,height:d,mod1Y:l,mod2X:a,mod2Y:n,mod3X:c}=t,p=o.bX(r),h=o.bX(d),b=h/2,g=p/2;s+="0 0",s+="L0 "+h,s+="L"+a*g+" "+(h-l*b),s+="L"+a*g+" "+n*b,s+="L"+(p-c*g)+" "+n*b,s+="L"+p+" 0z",this.set({unit:i,props:t,path:s})},render(){this.digest()}})})),define("27/svg/rcross/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s;i.exports=c.extend({ctor(){this.set({view:"27/svg/rcross/index"})}}).static({type:"svg/rcross",title:"iu",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{x:c,y:h,width:b,height:g,rotate:y,mod1X:f,mod1Y:x,ename:_}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let u=b/2,m=g/2,k={x:c+b/2,y:h+g/2},{eventTarget:w}=t,v=a.bN({x:t.pageX,y:t.pageY}),j=a.bS(v,k),{x:K,y:R}=a.bU(v,k,j-y),J=b*f/2,M=g*x/2;s._ci(t,(t=>{r||(n._cj(w),r=1);let i=a.bN({x:t.pageX,y:t.pageY}),o=a.bS(i,k),{x:d,y:c}=a.bU(i,k,o-y),h=d-K+J,f=c-R+M;h<0?h=0:h>u&&(h=u),f<0?f=0:f>m&&(f=m),l.mod1X=h/(b/2),l.mod1Y=f/(g/2),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,_)),p.fire("bY",{hide:1})}))},_hw(e){let{width:t,height:i,mod1X:s,mod1Y:o}=e;return[{x:t*s/2,y:i*o/2,c:"mod1"}]},_c4:(e,t)=>({height:o.bK(120),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(120),linewidth:o.bK(1),dash:0,mod1X:.6,mod1Y:.6,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{type:l.b9,_e5(e,t){e.mod1X=t.mod1X,e.mod1Y=t.mod1Y}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rcross/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,s="M",{width:r,height:d,mod1X:l,mod1Y:a}=t;r=o.bX(r),d=o.bX(d);let n=r/2*l,c=d/2*a;s+="0 "+c,s+="L"+n+" "+c,s+="L"+n+" 0",s+="L"+(r-n)+" 0",s+="L"+(r-n)+" "+c,s+="L"+r+" "+c,s+="L"+r+" "+(d-c),s+="L"+(r-n)+" "+(d-c),s+="L"+(r-n)+" "+d,s+="L"+n+" "+d,s+="L"+n+" "+(d-c),s+="L0 "+(d-c)+"z",this.set({unit:i,props:t,path:s})},render(){this.digest()}})})),define("27/svg/rcard/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s;i.exports=c.extend({ctor(){this.set({view:"27/svg/rcard/index"})}}).static({type:"svg/rcard",title:"fs",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hw(e){let{width:t,height:i,mod1X:s,mod2Y:o}=e;return[{x:t*s,y:0,c:"mod1"},{x:0,y:i*o,c:"mod2"}]},_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{x:c,y:h,width:b,height:g,rotate:y,mod1X:f,mod2Y:x,ename:_}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let u={x:c+b/2,y:h+g/2},{eventTarget:m}=t,k=a.bN({x:t.pageX,y:t.pageY}),w=a.bS(k,u),{x:v,y:j}=a.bU(k,u,w-y),K=b*f,R=g*x;s._ci(t,(t=>{r||(n._cj(m),r=1);let o=a.bN({x:t.pageX,y:t.pageY}),d=a.bS(o,u),{x:c,y:h}=a.bU(o,u,d-y),f=c-v+K,x=h-j+R;f<0?f=0:f>b&&(f=b),x<0?x=0:x>g&&(x=g),"mod1"==i?l.mod1X=f/b:l.mod2Y=x/g,s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,_)),p.fire("bY",{hide:1})}))},_c4:(e,t)=>({height:o.bK(150),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(120),linewidth:o.bK(1),dash:0,mod1X:.3,mod2Y:.3,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{type:l.b9,_e5(e,t){e.mod1X=t.mod1X,e.mod2Y=t.mod2Y}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rcard/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,s="M",{width:r,height:d,mod1X:l,mod2Y:a}=t,n=o.bX(r),c=o.bX(d);s+=n*l+" 0",s+="L"+n+" 0",s+="L"+n+" "+c,s+="L0 "+c,s+="L0 "+c*a+"z",this.set({unit:i,props:t,path:s})},render(){this.digest()}})})),define("27/svg/rcube/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s;i.exports=c.extend({ctor(){this.set({view:"27/svg/rcube/index"})}}).static({type:"svg/rcube",title:"iv",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{x:c,y:h,width:b,height:g,rotate:y,mod1Y:f,ename:x}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let _={x:c+b/2,y:h+g/2},{eventTarget:u}=t,m=a.bN({x:t.pageX,y:t.pageY}),k=a.bS(m,_),{y:w}=a.bU(m,_,k-y),v=g*f;v>b&&(v=b),s._ci(t,(t=>{r||(n._cj(u),r=1);let i=a.bN({x:t.pageX,y:t.pageY}),o=a.bS(i,_),{y:d}=a.bU(i,_,o-y),c=d-w+v;c<0?c=0:b<g?c>b&&(c=b):c>g&&(c=g),l.mod1Y=c/g,s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,x)),p.fire("bY",{hide:1})}))},_hw({mod1Y:e,width:t,height:i}){let s=i*e;return s>t&&(s=t),[{x:0,y:s,c:"mod1"}]},_c4:(e,t)=>({height:o.bK(150),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(150),linewidth:o.bK(1),dash:0,mod1Y:.4,frontcolor:"",sidecolor:"",topcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{type:l.b9,_e5(e,t){e.mod1Y=t.mod1Y}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),fixed:o.cy,step:o.bV,json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),fixed:o.cy,step:o.bV,json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"iw",key:"topcolor",type:l.bK,json:1,alpha:1,clear:1},{tip:"ix",key:"frontcolor",type:l.bK,json:1,alpha:1,clear:1},{tip:"iy",key:"sidecolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rcube/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path1:a,path2:n,path3:c,path4:p}=e;return o=[t("path",{d:a,style:"fill:"+(d.topcolor||"none")},1),t("path",{d:n,style:"fill:"+(d.frontcolor||"none")},1),t("path",{d:c,style:"fill:"+(d.sidecolor||"none")},1),t("path",{d:p,style:"fill:none;stroke:"+d.color+";stroke-width:"+d.linewidth+l,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg);opacity:"+d.alpha},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,{width:s,height:r,mod1Y:d}=t;s=o.bX(s),r=o.bX(r);let l=r*d;l>s&&(l=s);let a="M"+l+",0";a+="L"+s+",0",a+="L"+(s-l)+","+l,a+="L0,"+l+"z";let n="M0,"+l;n+="L0,"+r,n+="L"+(s-l)+","+r,n+="L"+(s-l)+","+l+"z";let c="M"+s+",0";c+="L"+s+","+(r-l),c+="L"+(s-l)+","+r,c+="L"+(s-l)+","+l+"z";let p="M0,"+l;p+="L0,"+r,p+="L"+(s-l)+","+r,p+="L"+s+","+(r-l),p+="L"+s+",0",p+="L"+l+",0z",p+="M"+s+",0",p+="L"+(s-l)+","+l,p+="L"+(s-l)+","+r,p+="M"+(s-l)+","+l,p+="L0,"+l,this.set({unit:i,props:t,path1:a,path2:n,path3:c,path4:p})},render(){this.digest()}})})),define("27/svg/rcylinder/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s;i.exports=c.extend({ctor(){this.set({view:"27/svg/rcylinder/index"})}}).static({type:"svg/rcylinder",title:"iz",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{x:c,y:h,width:b,height:g,rotate:y,mod1Y:f,ename:x}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let _=g/2,u={x:c+b/2,y:h+g/2},{eventTarget:m}=t,k=a.bN({x:t.pageX,y:t.pageY}),w=a.bS(k,u),{y:v}=a.bU(k,u,w-y),j=g/2*f;s._ci(t,(t=>{r||(n._cj(m),r=1);let i=a.bN({x:t.pageX,y:t.pageY}),o=a.bS(i,u),{y:d}=a.bU(i,u,o-y),c=d-v+j;c<0?c=0:c>_&&(c=_),l.mod1Y=c/(g/2),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,x)),p.fire("bY",{hide:1})}))},_hw:({mod1Y:e,width:t,height:i})=>[{x:t/2,y:i/2*e,c:"mod1"}],_c4:(e,t)=>({height:o.bK(150),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(120),linewidth:o.bK(1),dash:0,mod1Y:.4,bodycolor:"",topcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{type:l.b9,_e5(e,t){e.mod1Y=t.mod1Y}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),fixed:o.cy,step:o.bV,json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),fixed:o.cy,step:o.bV,json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"iw",key:"topcolor",type:l.bK,json:1,alpha:1,clear:1},{tip:"iA",key:"bodycolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rcylinder/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a,cx:n,cy:c}=e;return o=[t("path",{d:a,style:"fill:"+(d.bodycolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1),t("ellipse",{cx:n,cy:c,rx:n,ry:c,style:"fill:"+(d.topcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,{width:s,height:r,mod1Y:d}=t;s=o.bX(s),r=o.bX(r);let l=s/2,a=r/2/2*d,n="M0,"+a;n+="L0,"+(r-a),n+="A"+l+","+a+",0 0 0,"+s+","+(r-a),n+="L"+s+","+a,n+="A"+l+","+a+",0 0 1,0,"+a,this.set({unit:i,props:t,cx:l,cy:a,path:n})},render(){this.digest()}})})),define("27/svg/rdarrow/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s;i.exports=c.extend({ctor(){this.set({view:"27/svg/rdarrow/index"})}}).static({type:"svg/rdarrow",title:"iB",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{x:c,y:h,width:b,height:g,rotate:y,mod1X:f,mod1Y:x,ename:_}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let u=b/2,m=g/2,k={x:c+b/2,y:h+g/2},{eventTarget:w}=t,v=a.bN({x:t.pageX,y:t.pageY}),j=a.bS(v,k),{x:K,y:R}=a.bU(v,k,j-y),J=b*f/2,M=g*x/2;s._ci(t,(t=>{r||(n._cj(w),r=1);let i=a.bN({x:t.pageX,y:t.pageY}),o=a.bS(i,k),{x:d,y:c}=a.bU(i,k,o-y),h=d-K+J,f=c-R+M;h<0?h=0:h>u&&(h=u),f<0?f=0:f>m&&(f=m),l.mod1X=h/(b/2),l.mod1Y=f/(g/2),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,_)),p.fire("bY",{hide:1})}))},_hw(e){let{width:t,height:i,mod1X:s,mod1Y:o}=e;return[{x:t*s/2,y:i*o/2,c:"mod1"}]},_c4:(e,t)=>({height:o.bK(150),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(250),linewidth:o.bK(1),dash:0,mod1X:.4,mod1Y:.6,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{type:l.b9,_e5(e,t){e.mod1X=t.mod1X,e.mod1Y=t.mod1Y}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),fixed:o.cy,step:o.bV,json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),fixed:o.cy,step:o.bV,json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rdarrow/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,s="M",{width:r,height:d,mod1X:l,mod1Y:a}=t;r=o.bX(r),d=o.bX(d);let n=d/2,c=n*a,p=r/2*l;s+="0 "+n,s+="L"+p+" 0",s+="L"+p+" "+c,s+="L"+(r-p)+" "+c,s+="L"+(r-p)+" 0",s+="L"+r+" "+n,s+="L"+(r-p)+" "+d,s+="L"+(r-p)+" "+(d-c),s+="L"+p+" "+(d-c),s+="L"+p+" "+d+"z",this.set({unit:i,props:t,path:s})},render(){this.digest()}})})),define("27/svg/rect/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../../24/33","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../../24/33"),a=e("../designer"),n=["ctrl1","ctrl2","ctrl3","ctrl4"];i.exports=a.extend({ctor(){this.set({view:"27/svg/rect/index"})}}).static({type:"svg/rect",title:"iC",icon:"",_dd:o.bX,_cE:[{key:"x",use:"x"},{key:"y",use:"y"},{key:"ctrl1X",use:"x"},{key:"ctrl1Y",use:"y"},{key:"ctrl2X",use:"x"},{key:"ctrl2Y",use:"y"},{key:"ctrl3X",use:"x"},{key:"ctrl3Y",use:"y"},{key:"ctrl4X",use:"x"},{key:"ctrl4Y",use:"y"}],_cF(e){let t=e.ctrl1X,i=e.ctrl1Y,s=e.ctrl1X,o=e.ctrl1Y;for(let r=n.length;r--;){let d=n[r],l=e[d+"X"],a=e[d+"Y"];l<t&&(t=l),l>s&&(s=l),a<i&&(i=a),a>o&&(o=a)}e.x=t,e.y=i,e.width=s-t,e.height=o-i},_hH:n,_c4:(e,t)=>({alpha:1,x:s.bK(e),y:s.bK(t),ctrl1X:s.bK(e),ctrl1Y:s.bK(t),ctrl2X:s.bK(e+183),ctrl2Y:s.bK(t+20),ctrl3X:s.bK(e+200),ctrl3Y:s.bK(t+90),ctrl4X:s.bK(e+40),ctrl4Y:s.bK(t+100),linewidth:s.bK(1),dash:0,fillcolor:"",color:"#000",locked:!1}),props:[{key:"ctrl1X",_c6:1},{key:"ctrl1Y",_c6:1},{key:"ctrl2X",_c6:1},{key:"ctrl2Y",_c6:1},{key:"ctrl3X",_c6:1},{key:"ctrl3Y",_c6:1},{key:"ctrl4X",_c6:1},{key:"ctrl4Y",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{key:"width",read:d.bM,json:1},{key:"height",read:d.bM,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{type:r.b8,_e5(e,t){let i=l._hI(t);for(let s of i)e[s+"X"]=d.bM(t[s+"X"]),e[s+"Y"]=d.bM(t[s+"Y"])}},{type:r.c_},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillcolor",type:r.bK,json:1,alpha:1,clear:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/rect/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,toPx:a,ox:n,oy:c}=e;return o=[t("path",{d:"M"+a(d.ctrl1X-d.x+n)+" "+a(d.ctrl1Y-d.y+c)+"L"+a(d.ctrl2X-d.x+n)+" "+a(d.ctrl2Y-d.y+c)+"L"+a(d.ctrl3X-d.x+n)+" "+a(d.ctrl3Y-d.y+c)+"L"+a(d.ctrl4X-d.x+n)+" "+a(d.ctrl4Y-d.y+c)+"Z",style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l},r)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/rect2/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u");i.exports=l.extend({ctor(){this.set({view:"27/svg/rect2/index"})}}).static({type:"svg/rect2",title:"hK",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({fillcolor:"",height:s.bK(100),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linewidth:s.bK(1),roundX:0,roundY:0,color:"#000",dash:0,locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(10),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(10),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"iD",key:"roundX",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"iE",key:"roundY",_c6:1,type:r.bJ,min:0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillcolor",clear:1,alpha:1,type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/rect2/index",["1h"],((e,t,i)=>{let s=e("1h");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l}=e;return o=[t("rect",{x:0,y:0,rx:d.roundX+l,ry:d.roundY+l,width:d.width+l,height:d.height+l,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/rpie/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../designer"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../designer"),{State:p}=s,{PI:h,cos:b,sin:g,pow:y,sqrt:f,min:x}=Math;i.exports=c.extend({ctor(){this.set({view:"27/svg/rpie/index"})}}).static({type:"svg/rpie",title:"iG",icon:"",_hv:[["cr","center"]],_hB:["M","startA","L","start","M","endA","L","end"],_hC:["rxr","ryr","start","end"],_dd:r.bY,_hw:({mod1X:e,rx:t,ry:i,mod1Y:s})=>[{x:2*t*e,y:2*i*s,c:"mod1"}],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e,t,i){let{rx:s,ry:o,x:r,y:d,startAngle:l,endAngle:n}=e;if(e.width=2*s,e.height=2*o,i){let t=a.bK(e)._ct[0];e.x+=i.x-t.x,e.y+=i.y-t.y,r=e.x,d=e.y}l>0&&(l-=360),n<0&&(n+=360),e.centerX=r+s,e.centerY=d+o,e.rxrX=r+2*s,e.rxrY=d+o,e.ryrX=r+s,e.ryrY=d+2*o,n<l&&([n,l]=[l,n]);let c=h/180,p=x(s,o)/2;e.startAX=e.centerX+s*b(l*c),e.startAY=e.centerY+o*g(l*c),e.endAX=e.centerX+s*b(n*c),e.endAY=e.centerY+o*g(n*c),e.startX=e.centerX+p*b(l*c),e.startY=e.centerY+p*g(l*c),e.endX=e.centerX+p*b(n*c),e.endY=e.centerY+p*g(n*c),e.startAngle=l,e.endAngle=n,e.cr=p},_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{rx:c,ry:h,centerX:b,centerY:g,rotate:y,mod1X:f,mod1Y:x,ename:_}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let u={x:b,y:g},{eventTarget:m}=t,k=a.bN({x:t.pageX,y:t.pageY}),w=a.bS(k,u),{x:v,y:j}=a.bU(k,u,w-y),K=2*c*f,R=2*h*x;s._ci(t,(t=>{r||(n._cj(m),r=1);let i=a.bN({x:t.pageX,y:t.pageY}),o=a.bS(i,u),{x:d,y:b}=a.bU(i,u,o-y),g=d-v+K,f=b-j+R;g<0?g=0:g>2*c&&(g=2*c),f<0?f=0:f>2*h&&(f=2*h),l.mod1X=g/(2*c),l.mod1Y=f/(2*h),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,_)),p.fire("bY",{hide:1})}))},_hE(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l,ctrl:c}=e,{centerX:h,centerY:b,rotate:g,ename:y}=l,f=l[`${i}Angle`];g=(360+g)%360;let x=a.bN({x:t.pageX,y:t.pageY}),_={x:o.bX(h),y:o.bX(b)},u=a.bS(x,_),{eventTarget:m}=t;s._ci(t,(t=>{r||(n._cj(m),r=1);let o=a.bN({x:t.pageX,y:t.pageY}),d=a.bS(o,_),h=f+(d-u);h>360?h-=360:h<-360&&(h+=360),l[`${i}Angle`]=h,c._cF&&c._cF(l),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hD:1}})}),(()=>{n._ck(),r&&d.bJ(d.cj,y),p.fire("bY",{hide:1})}))},_hG(e,t,i,s){if("start"==i||"end"==i)return void this._hE(e,t,i,s);p.fire("bY",{show:1,size:1});let r,{props:l,ctrl:c}=e,{centerX:x,centerY:_,rx:u,ry:m,rotate:k,ename:w}=l;x=o.bX(x),_=o.bX(_),u=o.bX(u),m=o.bX(m),k=(360+k)%360;let v="rxr"==i,j=0,K=0,R=p.get("bL");for(let e of c.props)"rx"==e.key?j=o.bX(e.min())*R:"ry"==e.key&&(K=o.bX(e.min())*R);let J=v?j:K,M=a.bN({x:t.pageX,y:t.pageY}),{k:L,b:S}=a.bV(x,_,k),X=-1/L,V=_-x*X,Y=v?X:L,F=M.y-M.x*Y,C=M.x,T=M.y,{eventTarget:z}=t;s._ci(t,(t=>{r||(n._cj(z),r=1);let i,d,w=a.bN({x:t.pageX,y:t.pageY}),j=Y*w.x+F-w.y<0,K=w.y-w.x*Y;i=v?(S-K)/(X-L):(V-K)/(L-X),d=Y*i+K,0==k||180==k?v?(i=w.x,d=_,j=w.x>M.x):(j=w.y>M.y,i=x,d=w.y):90!=k&&270!=k||(v?(i=x,d=w.y,j=w.y>M.y):(i=w.x,d=_,j=w.x>M.x));let R=1;R=v?k>=0&&k<180?j?1:-1:j?-1:1:k>=90&&k<270?j?-1:1:j?1:-1;let B=f(y(i-C,2)+y(d-T,2))/2,A=v?k:90+k,O=v?u:m;O+R*B-J<=0&&(B=(J-O)/R),l.centerX=o.bK(x+R*B*b(A*h/180)),l.centerY=o.bK(_+R*B*g(A*h/180)),v?l.rx=o.bK(u+R*B):l.ry=o.bK(m+R*B),(e=>{let{centerX:t,centerY:i,rotate:s,rx:o,ry:r}=e,d=a.bV(t,i,s),l=-1/d.k,n={x:t,y:i},c={x:t,y:i-r},p={x:t-o,y:i},h=a.bU(p,n,s+180),b=a.bU(c,n,s+270),g=h.y-h.x*l,y=(b.y-b.x*d.k-g)/(l-d.k),f=l*y+g;0==s?(y=t-o,f=i-r):180==s&&(y=t+o,f=i+r);let x={x:y,y:f},_=a.bS(x,n),{x:u,y:m}=a.bU(x,n,_-s);e.x=u,e.y=m,e.width=2*o,e.height=2*r,e.rxrX=u+2*o,e.rxrY=m+r,e.ryrX=u+o,e.ryrY=m+2*r})(l),c._cF&&c._cF(l),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hF:1}})}),(()=>{n._ck(),r&&d.bJ(d.ci,w),p.fire("bY",{hide:1})}))},_c4:(e,t)=>({alpha:1,x:o.bK(e),y:o.bK(t),rxrX:o.bK(e+200),rxrY:o.bK(t+50),ryrX:o.bK(e+100),ryrY:o.bK(t+100),centerX:o.bK(e+100),centerY:o.bK(t+50),rx:o.bK(100),ry:o.bK(80),startAngle:0,endAngle:270,mod1X:.5,mod1Y:.5,rotate:0,linewidth:o.bK(1),fillcolor:"",dash:0,color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{key:"width",read:a.bM,json:1},{key:"height",read:a.bM,json:1},{key:"centerX",read:a.bM,json:1},{key:"centerY",read:a.bM,json:1},{tip:"hT",key:"rx",_c6:1,fixed:o.cy,step:o.bV,type:l.bJ,read:a.bM,write:a.bR,json:1,min:()=>o.bK(20)},{tip:"hU",key:"ry",_c6:1,fixed:o.cy,step:o.bV,type:l.bJ,read:a.bM,write:a.bR,json:1,min:()=>o.bK(10)},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{tip:"hV",type:l.bJ,key:"startAngle",min:-360,max:360,step:.1,fixed:1,json:1},{tip:"hW",type:l.bJ,key:"endAngle",min:-360,max:360,step:.1,fixed:1,json:1},{type:l.b9,_e5(e,t){e.mod1X=t.mod1X,e.mod1Y=t.mod1Y}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rpie/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{PI:r,cos:d,sin:l}=Math;i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,startX:a,toPx:n,startY:c,big:p,endX:h,endY:b,cx:g,cy:y}=e;return o=[t("path",{d:"M"+(a-n(d.x))+" "+(c-n(d.y))+"A"+n(d.rx)+" "+n(d.ry)+" 0 "+(p?1:0)+" 1 "+(h-n(d.x))+" "+(b-n(d.y))+"L"+g+" "+y+"z",style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},init(){this.set({toPx:o.bX})},assign(e){this.set(e);let{props:t,unit:i}=e,{startAngle:s,endAngle:a,rx:n,ry:c,centerX:p,centerY:h,mod1X:b,mod1Y:g}=t;n=o.bX(n),c=o.bX(c),p=o.bX(p),h=o.bX(h),a<s&&([a,s]=[s,a]);let y=a-s;y>360&&(s+=360,y=a-s);let f=y>=180,x=r/180,_=p+n*d(s*x),u=h+c*l(s*x),m=p+n*d(a*x),k=h+c*l(a*x),w=2*n*b,v=2*c*g;this.set({unit:i,big:f,cx:w,cy:v,startX:_,startY:u,endX:m,endY:k})},render(){this.digest()}})})),define("27/svg/rstar/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s,{PI:h,cos:b,sin:g,max:y}=Math,{MAX_VALUE:f}=Number;i.exports=c.extend({ctor(){this.set({view:"27/svg/rstar/index"})}}).static({type:"svg/rstar",title:"iH",icon:"",_dd:r.bT|r.bY|r.bQ,_hv:[["cr","c"]],_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l,ctrl:c}=e,{x:b,y:y,width:f,height:x,rotate:_,mod1Y:u,ename:m}=l;b=o.bX(b),y=o.bX(y),f=o.bX(f),x=o.bX(x),_=(360+_)%360;let k=f/2,w=(x-(k+k*g(414*(h/180))))/2+k,v={x:b+f/2,y:y+x/2},{eventTarget:j}=t,K=a.bN({x:t.pageX,y:t.pageY}),R=a.bS(K,v),{y:J}=a.bU(K,v,R-_),M=w*u;s._ci(t,(t=>{r||(n._cj(j),r=1);let i=a.bN({x:t.pageX,y:t.pageY}),o=a.bS(i,v),{y:d}=a.bU(i,v,o-_),h=d-J+M;h<0?h=0:h>w&&(h=w),l.mod1Y=h/w,c._cF&&c._cF(l),s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.cg,m)),p.fire("bY",{hide:1})}))},_hw:({modX:e,modY:t})=>[{x:e,y:t,c:"mod1"}],_cF(e){let t=h/180,i=e.width/2,s=i*(1-e.mod1Y),r=e.corner,d=360/r,l=d/2-90,a=o.bK(1),n=o.bK(2),c=[];for(let e=0;e<r;e++)c.push(i+i*b((e*d-90)*t),i+i*g((e*d-90)*t),i+s*b((l+e*d)*t),i+s*g((l+e*d)*t));let{h:p,v:x}=(e=>{let t=-f,i=t,s=f,o=s;for(let r=0;r<e.length;r+=2){let d=e[r],l=e[r+1];d>t&&(t=d),d<o&&(o=d),l>i&&(i=l),l<s&&(s=l)}return{h:o+(t-o)/2,v:s+(i-s)/2}})(c);p=i-p,x=i-x,e.cr=y(0,s-a),e.cX=e.x+i+p-a,e.cY=e.y+i+x-a,e.modX=i+p,e.modY=i*e.mod1Y+x+n},_c4:(e,t)=>({height:o.bK(150),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(150),linewidth:o.bK(1),dash:0,mod1Y:.62,corner:5,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{type:l.bJ,min:5,max:50,json:1,key:"corner",tip:"iI"},{type:l.b9,_e5(e,t){e.mod1Y=t.mod1Y}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rstar/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{PI:r,sin:d,cos:l}=Math,{MAX_VALUE:a}=Number;i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,s=r/180,n=o.bX(t.width)/2,c=n*(1-t.mod1Y),p=t.corner,h=360/p,b=h/2-90,g=[];for(let e=0;e<p;e++)g.push(n+n*l((e*h-90)*s),n+n*d((e*h-90)*s),n+c*l((b+e*h)*s),n+c*d((b+e*h)*s));let{h:y,v:f}=(e=>{let t=-a,i=t,s=a,o=s;for(let r=0;r<e.length;r+=2){let d=e[r],l=e[r+1];d>t&&(t=d),d<o&&(o=d),l>i&&(i=l),l<s&&(s=l)}return{h:o+(t-o)/2,v:s+(i-s)/2}})(g);y=n-y,f=n-f;let x="M";for(let e=0;e<g.length;e+=2){"M"!=x&&(x+="L"),x+=g[e]+y+" "+(g[e+1]+f)}x+="Z",this.set({unit:i,props:t,path:x})},render(){this.digest()}})})),define("27/svg/signal/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u");i.exports=l.extend({ctor(){this.set({view:"27/svg/signal/index"})}}).static({type:"svg/signal",title:"iJ",icon:"",_dd:o.bT|o.bQ|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({x:s.bK(e),y:s.bK(t),width:s.bK(190),height:s.bK(150),rotate:0,alpha:1,connected:!0,strength:2,disconnect:"#E8405B",fill:"#2c2c2c",background:"#dbdbdb",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(20),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(10),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"iK",type:r.bL,key:"connected",json:1},{tip:"iL",key:"strength",type:r.bJ,min:0,max:5,json:1},{tip:"ew",type:r.bK,key:"fill",json:1},{tip:"d4",type:r.bK,key:"background",json:1},{tip:"iM",type:r.bK,key:"disconnect",json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/signal/index",["1h"],((e,t,i)=>{let s={viewBox:"0 0 1294 1024"},o=e("1h"),{min:r}=Math;i.exports=o.View.extend({tmpl:(e,t,i)=>{let o,r,d,l,{props:a,unit:n}=e;return d=[],r="",!a.connected||a.strength<1?r+=""+a.background:r+=""+a.fill,d.push(t("path",{class:"dq",d:"M112.88 689.631h155.428v244.244h-155.428v-244.244z",fill:r},1)),r="",!a.connected||a.strength<2?r+=""+a.background:r+=""+a.fill,d.push(t("path",{class:"dq",d:"M334.921 556.409h155.428v377.467h-155.428v-377.467z",fill:r},1)),r="",!a.connected||a.strength<3?r+=""+a.background:r+=""+a.fill,d.push(t("path",{class:"dq",d:"M579.164 400.98h133.223v532.895h-133.223v-532.895z",fill:r},1)),r="",!a.connected||a.strength<4?r+=""+a.background:r+=""+a.fill,d.push(t("path",{class:"dq",d:"M801.202 245.553h155.428v688.323h-155.428v-688.323z",fill:r},1)),r="",!a.connected||a.strength<5?r+=""+a.background:r+=""+a.fill,d.push(t("path",{class:"dq",d:"M1023.242 90.125h155.427v843.75h-155.428v-843.75z",fill:r},1)),a.connected||d.push(t("path",{fill:a.disconnect,d:"M301.188 81.702l83.042 82.935-251.446 252.884-83.042-82.935z"},1),t("path",{fill:a.disconnect,d:"M47.262 160.271l78.843-78.265L381.75 334.009l-78.842 78.264z"},1)),l=[t("svg",s,d)],o=[t("div",{class:"cr dR",style:"left:"+a.x+n+";top:"+a.y+n+";width:"+a.width+n+";height:"+a.height+n+";opacity:"+a.alpha+";transform:rotate("+a.rotate+"deg)"},l)],t(i,0,o)},assign(e){let{props:t}=e,{borderwidth:i,width:s,height:o}=t,d=r(s,o)/2;i>d&&(i=d),this.set(e),this.set({bw:i})},render(){this.digest()}})})),define("27/svg/star/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../../24/33","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../../24/33"),a=e("../designer"),{PI:n,cos:c,sin:p}=Math;i.exports=a.extend({ctor(){this.set({view:"27/svg/star/index"})}}).static({type:"svg/star",title:"iR",icon:"",_dd:o.bX,_gO:l._hI,_cE:l._hM.bind(l),_cF(e){let t=e.ctrl1X,i=e.ctrl1Y,s=e.ctrl1X,o=e.ctrl1Y,r=l._hI(e);for(let d=r.length;d--;){let l=r[d],a=e[l+"X"],n=e[l+"Y"];a<t&&(t=a),a>s&&(s=a),n<i&&(i=n),n>o&&(o=n)}e.x=t,e.y=i,e.width=s-t,e.height=o-i},_c4(e,t){let i=n/180,o=s.bK(100),r=o*p(18*i)/c(36*i),d={x:e=s.bK(e),y:t=s.bK(t),alpha:1,linewidth:s.bK(1),dash:0,fillcolor:"",color:"#000",locked:!1};for(let s=0;s<5;s++)d[`ctrl${2*s+1}X`]=e+o+o*c((72*s-90)*i),d[`ctrl${2*s+1}Y`]=t+o+o*p((72*s-90)*i),d[`ctrl${2*s+2}X`]=e+o+r*c((72*s-54)*i),d[`ctrl${2*s+2}Y`]=t+o+r*p((72*s-54)*i);return d},props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{key:"width",read:d.bM,json:1},{key:"height",read:d.bM,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{type:r.b8,mod:1,_e5(e,t){let i=l._hI(t);for(let s of i)e[s+"X"]=d.bM(t[s+"X"]),e[s+"Y"]=d.bM(t[s+"Y"])},_c5(e,t,i){let s=l._hI(e);for(let o of s)e[o+"X"]*=t,e[o+"Y"]*=t,i&&(i[o+"X"]=e[o+"X"],i[o+"Y"]=e[o+"Y"])},_ep(e,t){let i=l._hI(e);for(let o of i)e[o+"X"]=s.cC(e[o+"X"],t),e[o+"Y"]=s.cC(e[o+"Y"],t)}},{type:r.c_},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillcolor",type:r.bK,json:1,alpha:1,clear:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/star/index",["1h","../../../1g/1j","../../../24/33"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../24/33"),{State:d,View:l}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,s=(e=>{let t=d.get("b5")||0,i=d.get("b6")||0,s=r._hI(e),l=0,a=[];for(let r of s)a.push(l?"L":"M"),l=1,a.push(`${o.bX(e[r+"X"]-e.x+t)} ${o.bX(e[r+"Y"]-e.y+i)}`);return a.push("z"),a.join("")})(t);this.set({unit:i,props:t,path:s})},render(){this.digest()}})})),define("27/svg/speaker/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u");i.exports=l.extend({ctor(){this.set({view:"27/svg/speaker/index"})}}).static({type:"svg/speaker",title:"iN",icon:"",_dd:o.bT|o.bQ|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({x:s.bK(e),y:s.bK(t),width:s.bK(150),height:s.bK(150),rotate:0,alpha:1,muted:!1,volume:1,mutedcolor:"#E8405B",fill:"#2c2c2c",background:"#dbdbdb",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(20),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(10),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"iO",type:r.bL,key:"muted",json:1},{tip:"iP",key:"volume",type:r.bJ,min:0,max:3,json:1},{tip:"ew",type:r.bK,key:"fill",json:1},{tip:"d4",type:r.bK,key:"background",json:1},{tip:"iQ",type:r.bK,key:"mutedcolor",json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/speaker/index",["1h"],((e,t,i)=>{let s,o={viewBox:"0 0 1024 1024"},r=e("1h"),{min:d}=Math;i.exports=r.View.extend({tmpl:(e,t,i)=>{let r,d,l,a,{props:n,unit:c}=e;return l=[],s?l.push(s):l.push(s=t("path",{_:"a;",d:"M213.34 341.34L426.68 128v768L213.34 682.66H128q-53.002 0-90.501-37.499T0 554.66v-83.661q0-53.002 37.499-91.34T128 341.318h85.34zm128 348.652V332.329l-92.672 94.33H128q-17.326 0-30.003 13.17t-12.677 31.17v83.66q0 17.675 12.492 30.168t30.168 12.493h120.668z"},1)),n.muted?l.push(t("path",{fill:n.mutedcolor,d:"M537 609.9l248.8-248.8c15.7-15.7 41.3-15.7 57 0 15.7 15.7 15.7 41.3 0 57L594 666.9c-15.7 15.7-41.3 15.7-57 0-15.7-15.6-15.7-41.3 0-57z"},1),t("path",{fill:n.mutedcolor,d:"M594 361.1l248.8 248.8c15.7 15.7 15.7 41.3 0 57-15.7 15.7-41.3 15.7-57 0L537 418.1c-15.7-15.7-15.7-41.3 0-57 15.7-15.7 41.3-15.7 57 0z"},1)):(d="",n.volume<1?d+=""+n.background:d+=""+n.fill,l.push(t("path",{class:"dq",d:"M619.991 369.664q12.329 0 23.163 7.004t16.159 19.006q23.326 56.34 23.326 116.326 0 61.01-23.326 115.671-4.997 12.001-15.831 19.17t-23.491 7.167q-15.667 0-29.163-11.837t-13.497-30.843q0-7.66 3.338-16.67Q597.34 555.314 597.34 512q0-43.008-16.67-83.005-3.339-7.66-3.339-16.671 0-19.006 12.841-30.843t29.84-11.837z",fill:d},1)),d="",n.volume<2?d+=""+n.background:d+=""+n.fill,l.push(t("path",{class:"dq",d:"M750.326 250.675q24.002 0 36.659 20.992 32.993 55.01 49.009 113.664Q853.32 448 853.32 512q0 63.672-17.326 126.996-16.343 59.331-49.009 113.664-12.329 20.665-36.66 20.665-16.67 0-29.675-12.001t-13.005-30.659q0-11.674 6.329-21.996 26.01-43.335 39.67-92.672Q767.98 566.006 767.98 512q0-53.658-14.336-103.67-13.66-49.336-39.67-93-6.329-9.666-6.329-21.667 0-18.002 13.17-30.495t29.49-12.493z",fill:d},1)),d="",n.volume<3?d+=""+n.background:d+=""+n.fill,l.push(t("path",{class:"dq",d:"M877.998 133.673q23 0 35.328 18.657 54.334 79.667 82.494 171.336T1023.98 512t-28.16 188.334-82.494 171.336q-12.001 18.657-35.328 18.657-17.326 0-29.84-12.001t-12.492-30.659q0-13.332 7.332-24.002Q938.66 683.335 938.66 512q0-84.009-24.33-163.328t-71.332-148.337q-7.332-10.67-7.332-24.002 0-18.657 12.493-30.659t29.84-12.001z",fill:d},1))),a=[t("svg",o,l)],r=[t("div",{class:"cr dR",style:"left:"+n.x+c+";top:"+n.y+c+";width:"+n.width+c+";height:"+n.height+c+";opacity:"+n.alpha+";transform:rotate("+n.rotate+"deg)"},a)],t(i,0,r)},assign(e){let{props:t}=e,{borderwidth:i,width:s,height:o}=t,r=d(s,o)/2;i>r&&(i=r),this.set(e),this.set({bw:i})},render(){this.digest()}})})),define("27/svg/triangle/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../../24/33","../designer"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../../24/33"),a=e("../designer"),n=["ctrl1","ctrl2","ctrl3"];i.exports=a.extend({ctor(){this.set({view:"27/svg/triangle/index"})}}).static({type:"svg/triangle",title:"iS",icon:"",_dd:o.bX,_cE:[{key:"x",use:"x"},{key:"y",use:"y"},{key:"ctrl1X",use:"x"},{key:"ctrl1Y",use:"y"},{key:"ctrl2X",use:"x"},{key:"ctrl2Y",use:"y"},{key:"ctrl3X",use:"x"},{key:"ctrl3Y",use:"y"}],_cF(e){let t=e.ctrl1X,i=e.ctrl1Y,s=e.ctrl1X,o=e.ctrl1Y;for(let r=n.length;r--;){let d=n[r],l=e[d+"X"],a=e[d+"Y"];l<t&&(t=l),l>s&&(s=l),a<i&&(i=a),a>o&&(o=a)}e.x=t,e.y=i,e.width=s-t,e.height=o-i},_hH:n,_c4:(e,t)=>({alpha:1,x:s.bK(e),y:s.bK(t),ctrl1X:s.bK(e+100),ctrl1Y:s.bK(t),ctrl2X:s.bK(e),ctrl2Y:s.bK(t+100),ctrl3X:s.bK(e+200),ctrl3Y:s.bK(t+100),linewidth:s.bK(1),dash:0,fillcolor:"",color:"#000",locked:!1}),props:[{key:"ctrl1X",_c6:1},{key:"ctrl1Y",_c6:1},{key:"ctrl2X",_c6:1},{key:"ctrl2Y",_c6:1},{key:"ctrl3X",_c6:1},{key:"ctrl3Y",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{key:"width",read:d.bM,json:1},{key:"height",read:d.bM,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{type:r.b8,_e5(e,t){let i=l._hI(t);for(let s of i)e[s+"X"]=d.bM(t[s+"X"]),e[s+"Y"]=d.bM(t[s+"Y"])}},{type:r.c_},{tip:"dL",key:"linewidth",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,min:0,max:()=>s.bK(20),json:1},{tip:"fq",key:"color",type:r.bK,json:1},{tip:"ew",key:"fillcolor",type:r.bK,json:1,alpha:1,clear:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/triangle/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),{State:r,View:d}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,toPx:a,ox:n,oy:c}=e;return o=[t("path",{d:"M"+a(d.ctrl1X-d.x+n)+" "+a(d.ctrl1Y-d.y+c)+"L"+a(d.ctrl2X-d.x+n)+" "+a(d.ctrl2Y-d.y+c)+"L"+a(d.ctrl3X-d.x+n)+" "+a(d.ctrl3Y-d.y+c)+"Z",style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l+";opacity:"+d.alpha,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l},r)],t(i,0,s)},init(){this.set({toPx:o.bX,ox:r.get("b5")||0,oy:r.get("b6")||0})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/svg/wifi/designer",["../../../1g/1j","../../../1g/21","../../../1g/props","../../../1g/1k","../../2u"],((e,t,i)=>{let s=e("../../../1g/1j"),o=e("../../../1g/21"),r=e("../../../1g/props"),d=e("../../../1g/1k"),l=e("../../2u");i.exports=l.extend({ctor(){this.set({view:"27/svg/wifi/index"})}}).static({type:"svg/wifi",title:"iT",icon:"",_dd:o.bT|o.bQ|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({x:s.bK(e),y:s.bK(t),width:s.bK(150),height:s.bK(150),rotate:0,alpha:1,disconnect:"#E8405B",connected:!0,strength:2,fill:"#2c2c2c",background:"#dbdbdb",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(20),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(10),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"iK",type:r.bL,key:"connected",json:1},{tip:"iL",key:"strength",type:r.bJ,min:0,max:3,json:1},{tip:"ew",type:r.bK,key:"fill",json:1},{tip:"d4",type:r.bK,key:"background",json:1},{tip:"iM",type:r.bK,key:"disconnect",json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/svg/wifi/index",["1h"],((e,t,i)=>{let s={viewBox:"0 0 1024 1024"},o=e("1h"),{min:r}=Math;i.exports=o.View.extend({tmpl:(e,t,i)=>{let o,r,d,l,{props:a,unit:n}=e;return d=[],r="",!a.connected||a.strength<3?r+=""+a.background:r+=""+a.fill,d.push(t("path",{class:"dq",d:"M512.2 192c-159.8 0-311.4 59.8-427.8 168.2l-20.4 19 19.8 19.6 64.6 64 18.6 18.4 19.2-17.6c89-81.8 204.6-127 325.6-127 121 0 236.8 45.2 325.6 127l19.2 17.6 18.6-18.4 64.6-64 19.8-19.6-20.4-19C823.2 251.8 671.4 192 512.2 192z",fill:r},1)),r="",!a.connected||a.strength<2?r+=""+a.background:r+=""+a.fill,d.push(t("path",{class:"dq",d:"M794.8 512.8C717.2 442.6 617 404 512.6 404h-17.8l-.2.4c-98.4 4-192 42.2-265.2 108.4l-21 19 20.2 20 65.4 64.8 18.2 18 19.2-16.8c50.6-44.4 114.8-69 180.6-69 66.2 0 130.4 24.6 181 69l19.2 16.8 18.2-18 65.4-64.8 20.2-20-21.2-19z",fill:r},1)),r="",!a.connected||a.strength<1?r+=""+a.background:r+=""+a.fill,d.push(t("path",{class:"dq",d:"M512.4 832l19.2-19 105.6-104.4 21.2-21-23.2-19c-30.8-22.8-64.8-40-123-40-58 0-89.8 18.8-123 40l-23 19 21.2 21L493 813l19.4 19z",fill:r},1)),a.connected||d.push(t("path",{fill:a.disconnect,d:"M513.067 170.667c34.133 0 64 29.866 64 64v298.666c0 34.134-29.867 64-64 64s-64-29.866-64-64V234.667c0-34.134 29.866-64 64-64zM449.067 682.667a64 64 0 1 0 128 0 64 64 0 1 0-128 0z"},1)),l=[t("svg",s,d)],o=[t("div",{class:"cr dR",style:"left:"+a.x+n+";top:"+a.y+n+";width:"+a.width+n+";height:"+a.height+n+";opacity:"+a.alpha+";transform:rotate("+a.rotate+"deg)"},l)],t(i,0,o)},assign(e){let{props:t}=e,{borderwidth:i,width:s,height:o}=t,d=r(s,o)/2;i>d&&(i=d),this.set(e),this.set({bw:i})},render(){this.digest()}})})),define("27/svg/rmoon/designer",["1h","../../../1g/1j","../../../1g/21","../../../1g/1t","../../../1g/props","../../../1g/1k","../../../1o/1q/cursor","../../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j"),r=e("../../../1g/21"),d=e("../../../1g/1t"),l=e("../../../1g/props"),a=e("../../../1g/1k"),n=e("../../../1o/1q/cursor"),c=e("../../2u"),{State:p}=s;i.exports=c.extend({ctor(){this.set({view:"27/svg/rmoon/index"})}}).static({type:"svg/rmoon",title:"iF",icon:"",_dd:r.bR|r.bS|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_hy(e,t,i,s){p.fire("bY",{show:1,size:1});let r,{props:l}=e,{x:c,y:h,width:b,height:g,rotate:y,mod1X:f,ename:x}=l;c=o.bX(c),h=o.bX(h),b=o.bX(b),g=o.bX(g),y=(360+y)%360;let _=b,u={x:c+b/2,y:h+g/2},{eventTarget:m}=t,k=a.bN({x:t.pageX,y:t.pageY}),w=a.bS(k,u),{x:v}=a.bU(k,u,w-y),j=b*f;s._ci(t,(t=>{r||(n._cj(m),r=1);let i=a.bN({x:t.pageX,y:t.pageY}),o=a.bS(i,u),{x:d}=a.bU(i,u,o-y),c=d-v+j;c<0?c=0:c>_&&(c=_),l.mod1X=c/b,s.digest({element:e}),p.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_hN:1}})}),(()=>{r&&(n._ck(),d.bJ(d.ch,x)),p.fire("bY",{hide:1})}))},_hw:({mod1X:e,width:t,height:i})=>[{x:t*e,y:i/2,c:"mod1"}],_c4:(e,t)=>({height:o.bK(200),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(100),linewidth:o.bK(1),dash:0,mod1X:.5,fillcolor:"",color:"#000",locked:!1}),props:[{tip:"dz",type:l.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dA",type:l.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dB",type:l.bJ,key:"width",_c6:1,fixed:o.cy,step:o.bV,min:()=>o.bK(20),read:a.bM,write:a.bR,json:1},{tip:"dC",key:"height",_c6:1,type:l.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:a.bM,write:a.bR,json:1},{tip:"dD",key:"alpha",type:l.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:l.bJ,key:"rotate",min:-360,max:360,json:1},{type:l.c_},{type:l.b9,_e5(e,t){e.mod1X=t.mod1X}},{tip:"dL",key:"linewidth",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fp",key:"dash",_c6:1,type:l.bJ,read:a.bM,write:a.bR,fixed:o.cy,step:o.bV,min:0,max:()=>o.bK(20),json:1},{tip:"fq",key:"color",type:l.bK,json:1},{tip:"ew",key:"fillcolor",type:l.bK,json:1,alpha:1,clear:1},{type:l.c_},{tip:"dO",key:"ename",type:l.bS,json:1},{tip:"dP",key:"locked",type:l.bL,free:!0,json:1}]})})),define("27/svg/rmoon/index",["1h","../../../1g/1j"],((e,t,i)=>{let s=e("1h"),o=e("../../../1g/1j");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,path:a}=e;return o=[t("path",{d:a,style:"fill:"+(d.fillcolor||"none")+";stroke:"+d.color+";stroke-width:"+d.linewidth+l,"stroke-dasharray":d.dash+l},1)],r=[t("svg",{class:"cr dB",style:"width:"+d.width+l+";height:"+d.height+l+";opacity:"+d.alpha},o)],s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";width:"+d.width+l+";height:"+d.height+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){let{props:t,unit:i}=e,{width:s,height:r,mod1X:d}=t;s=o.bX(s),r=o.bX(r);let l=r/2,a="M0,0";a+="A"+s+","+l+",0 0 1 0,"+r,a+="A"+d*s+","+l+",0 0 0 0 0",this.set({unit:i,props:t,path:a})},render(){this.digest()}})})),define("27/index",["1h","../1g/21","../1s/index","./barcode/designer","./base/designer","./batch-barcode/designer","./batch-qrcode/designer","./batch-text/designer","./calendar/designer","./circle/designer","./clock/designer","./cprogress/designer","./data-celltable/designer","./data-coltable/designer","./data-dtable/designer","./data-ftable/designer","./data-repeater/designer","./data-richtext/designer","./form-checkbox/designer","./form-collect/designer","./form-dropdown/designer","./form-input/designer","./form-radio/designer","./formula/designer","./fx/designer","./heat/designer","./hod-footer/designer","./hod-header/designer","./hod-hflex/designer","./hod-table/designer","./hod-tabs/designer","./hod-vflex/designer","./html/designer","./image/designer","./line/designer","./map/designer","./page/designer","./pager/designer","./progressbar/designer","./qrcode/designer","./rate/designer","./rect/designer","./repeat/designer","./richtext/designer","./rod/designer","./tag/designer","./text/designer","./todo/designer","./video/designer","./xsheet/designer"],((e,t,i)=>{let s=e("1h"),o=e("../1g/21"),r=e("../1s/index"),d=e("./barcode/designer"),l=e("./base/designer"),a=e("./batch-barcode/designer"),n=e("./batch-qrcode/designer"),c=e("./batch-text/designer"),p=e("./calendar/designer"),h=e("./circle/designer"),b=e("./clock/designer"),g=e("./cprogress/designer"),y=e("./data-celltable/designer"),f=e("./data-coltable/designer"),x=e("./data-dtable/designer"),_=e("./data-ftable/designer"),u=e("./data-repeater/designer"),m=e("./data-richtext/designer"),k=e("./form-checkbox/designer"),w=e("./form-collect/designer"),v=e("./form-dropdown/designer"),j=e("./form-input/designer"),K=e("./form-radio/designer"),R=e("./formula/designer"),J=e("./fx/designer"),M=e("./heat/designer"),L=e("./hod-footer/designer"),S=e("./hod-header/designer"),X=e("./hod-hflex/designer"),V=e("./hod-table/designer"),Y=e("./hod-tabs/designer"),F=e("./hod-vflex/designer"),C=e("./html/designer"),T=e("./image/designer"),z=e("./line/designer"),B=e("./map/designer"),A=e("./page/designer"),O=e("./pager/designer"),N=e("./progressbar/designer"),P=e("./qrcode/designer"),I=e("./rate/designer"),W=e("./rect/designer"),Z=e("./repeat/designer"),H=e("./richtext/designer"),$=e("./rod/designer"),U=e("./tag/designer"),E=e("./text/designer"),Q=e("./todo/designer"),q=e("./video/designer"),D=e("./xsheet/designer"),{applyStyle:G,State:ee,guid:te,has:ie,isFunction:se,mix:oe,config:re}=s,de=[{icon:"",title:"\u57fa\u7840",opened:1,subs:[{ctrl:l},{ctrl:z},{ctrl:W},{ctrl:h},{ctrl:$}]},{bar:1},{ctrl:E},{ctrl:T},{ctrl:P},{ctrl:d},{bar:1},{icon:"",title:"\u5bb9\u5668",subs:[{ctrl:V},{ctrl:X},{ctrl:F},{ctrl:S},{ctrl:L},{ctrl:u},{ctrl:_},{ctrl:Y}]},{icon:"",title:"\u6570\u636e",subs:[{ctrl:f},{ctrl:y},{ctrl:x},{ctrl:H},{ctrl:m},{ctrl:O},{ctrl:Z},{ctrl:q},{ctrl:B},{ctrl:N},{ctrl:D},{ctrl:w},{ctrl:j},{ctrl:K},{ctrl:k},{ctrl:v},{ctrl:R},{ctrl:J},{ctrl:a},{ctrl:n},{ctrl:c},{ctrl:Q},{ctrl:p},{ctrl:C},{ctrl:I},{ctrl:M},{ctrl:g},{ctrl:U},{ctrl:b}]}],le={};for(let{ctrl:e,subs:t}of de)if(e)le[e.type]=e;else if(t)for(let{ctrl:e}of t)le[e.type]=e;G("dF",".fv{left:50%;top:50%}.fv:before{content:' ';width:1px;height:6px;position:absolute;background:#fa742b;left:0;top:-3px;transform:translateX(-50%)}.fv:after{content:' ';width:6px;height:1px;position:absolute;background:#fa742b;left:-3px;top:0;transform:translateY(-50%)}.fw{border:dotted 1px #ddd6}.fx{border-color:#fa742b;border-style:dashed}.fy,.fz{border-color:#999}.fz{border-style:dashed}.fA{border-color:#fa742b}.fB{border-style:solid}.fC{border-right:solid 3px #fa742b;right:-2px}.fD{border-left:solid 3px #fa742b;left:-2px}.fE{border-bottom:solid 3px #fa742b;bottom:-2px}.fF{border-top:solid 3px #fa742b;top:-2px}.fG{top:-20px}.fH{left:-20px}.fI{top:-18px;left:50%;transform:translateX(-50%);width:7px;height:7px;border-radius:50%;background:#fa742b}.fI::after{content:' ';height:12px;width:1px;border-right:#fa742b dashed 1px;position:absolute;left:3px;top:6px}.fJ{border:dotted 1px #fa742b;border-radius:50%}.fK{border:solid 1px #fa742b;width:5px;height:5px}.fL{background:#fa742b}.fI,.fM{cursor:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABvUExURUdwTP///9XV1R0dHf///3Nzc////////////////1ZWVq+vr/T09PX19QQEBP///////8XFxf///////////wYGBv///+jo6P///4aGhqioqMzMzP///2BgYP///////////zExMf///wAAAP///xLps0AAAAAjdFJOUwCxxOdixRDmzSDMv8/Z+tz5wWpXWPk3zALCv8KnyXZVMNuNPnv3CwAAAJ1JREFUKM/NkckOwyAMRFkDBMhC9qWr+//fWCIV1WlzrjoXS36yxmMT8hdqqKoUvRAjMtw22kvecem1GjTuK1vApmI+wQMBbQFy5li+QQRaX4AtRX+vbntAJeRl9HTTx4TiwESs61DXNUPmVQeujzVrQwh43TTxpeRBslVfMUhbiXKWyiAwvnIsMcdyJkfJYdpNvG/ltDm+bjP+8KFP8ggL+zQLGxwAAAAASUVORK5CYII=') 14 14,alias}.fM{fill:#FA742B;stroke-width:0}.fM:hover{stroke-width:0}"),G("dG",".fN{fill:#FA742B}.fO{fill:#fff;stroke:#FA742B;stroke-width:1px;transition:stroke-width .25s}.fP{fill:none;stroke:#FA742B;stroke-width:1px;stroke-dasharray:1px}.fQ{fill:none;stroke:#FA742B}.fR{fill:#FA742B}.fS{fill:#FA742B}.fO:hover{stroke-width:2px}.fT{stroke:#FA742B;stroke-width:1px;stroke-dasharray:3;fill:none}.fU{stroke-dasharray:0}.fV{fill:none;stroke:#FA742B;stroke-width:1px}.fW{visibility:hidden}.fX:hover .fW{visibility:visible}.fY{cursor:crosshair}"),ee.set({b9:le,bY:A}),i.exports={bJ:()=>de,bL(...e){for(let t of e)le[t.type]=t},bM(...e){de.push(...e)},bK(e,t,i){let s={},d=[],l=[],a=ee.get("bU"),n=ee.get("bL"),c={},p=e=>(c[e]||(c[e]=te("rde_")),c[e]),h=e=>{if(e)for(let c of e){let e=le[c.type];if(!e)throw new Error("can not find:"+c.type);if(c.ctrl=e,i){let i=c.props,s=e._c4(0,0);c.props=oe(s,i),t.readonly&&(c.props.readonly=!0),a&&a.bJ(c)?(s.linkFromId=p(s.linkFromId),s.linkToId=p(s.linkToId),l.push([e,c.props])):e._cF&&d.push([e,c.props]);for(let t of e.props)se(t._c5)?t._c5(c.props,n):t._c6&&(c.props[t.key]*=n);ie(c.props,"ename")||(c.props.ename=r(e.title)),c.id=p(c.id)}if(s[c.id]=c,e.as&o.bJ)for(let e of c.props.rows)for(let t of e.cols)t.elements&&h(t.elements)}};return h(e),d.push(...l),{bJ:e,bK:s,bL:d,bM:c}}}})),define("27/2u",["1h","../1g/1j","../1g/21","../1g/22","../1o/1p/index","../24/33"],((e,t,i)=>{let s,o,r={value:"value"},d=e("1h"),l=e("../1g/1j"),a=e("../1g/21"),n=e("../1g/22"),c=e("../1o/1p/index"),p=e("../24/33"),{State:h,has:b,View:g,node:y}=d,{min:f,max:x}=Math,_=a.bJ|a.bU;i.exports=g.extend({tmpl:(e,t,i,d,l,a,n)=>{let c,p,h,b,g=[],{element:y,denum:f,view:x,selected:_,count:u,fs:m,unit:k,selfGrouped:w,grouped:v,max:j,minSize:K,i18n:R,toPx:J,min:M,cursor:L,whEnum:S}=e,X=y.props,V=y.ctrl;y.id;c="cz",X.readonly&&(V.as&f.bJ)!=f.bJ&&(c+=" ct"),g.push(t("div",{"mx5-owner":i,$:"element,selected,count,fs,unit,selfGrouped,grouped","mx5-view":x+"?props="+a(l,X,"a;")+"&element="+a(l,y,"a:")+"&selected="+a(l,_,"a-")+"&count="+a(l,u,"a+")+"&fs="+a(l,m,"b_")+"&unit="+a(l,k,"ba")+"&grouped="+a(l,w||v,"bb"),class:c})),p="";let Y=((X.rotate||0)+360)%360;p+=" ";let F=V._dd;if(!m){if(b=[],X.locked&&(s?b.push(s):(h=[t(0,"\ue63e")],b.push(s=t("i",{_:"a;",class:"bJ cM cr dF dL dy"},h)))),(F&f.bW||_&&F&f.b1)&&!X.readonly&&(h=[t(0,V.icon,1)],c="bJ dz cr cu c4 eb",F&f.b2?c+=" d5 fG":c+=" fH dM",b.push(t("i",{"data-as":"icon",class:c},h))),!X.locked&&_&&(o?b.push(o):b.push(o=t("div",{_:"a:",class:"cr fv"}))),!X.locked&&1==u&&_&&!v&&!w){if(F){F&f.bY&&!X.pinX&&!X.pinY&&b.push(t("div",{class:"cr cu eb fI","mx5-pointerdown":i+"\x1e_gY()",title:R("fI")})),F&f.bO&&X._df&&b.push(t("textarea",{"data-as":"da","mx5-pointerdown":i+"\x1e_fn()","mx5-contextmenu":i+"\x1e_fn()",id:"_rd_ta_"+i,class:"bO cj ck cu eb","mx5-input":i+"\x1e_gW()","mx5-keyup":i+"\x1e_gX()",style:"font-size:"+X.fontsize+k,value:X.text},0,r));let e,s=0,o=0,d=0,l=0,a=J(X.height),n=J(X.width);F&f.bR&&(p="",s=j(M(20,a-6)-4,0),p+=" ",d=(a-s)/2),F&f.bS&&(p="",o=j(M(20,n-6)-4,0),p+=" ",l=(n-o-1)/2),e=M(j(0,M(a-s-d-7,a/2,n-o-l-7,n/2)),14),F&f.bR&&(X.pinX||b.push(t("div",{class:"cr cu dR eb fD",style:"height:"+s+"px;top:"+d+"px;cursor:"+L(Y,0)+"-resize",title:R("fG"),"mx5-pointerdown":i+"\x1e_gI({key:'ml'})"})),b.push(t("div",{class:"cr cu dR eb fC",style:"height:"+s+"px;top:"+d+"px;cursor:"+L(Y,0)+"-resize",title:R("fG"),"mx5-pointerdown":i+"\x1e_gI({key:'mr'})"}))),F&f.bS&&(X.pinY||b.push(t("div",{class:"cr cu dR eb fF",style:"width:"+o+"px;left:"+l+"px;cursor:"+L(Y,90)+"-resize",title:R("fH"),"mx5-pointerdown":i+"\x1e_gI({key:'tm'})"})),b.push(t("div",{class:"cr cu dR eb fE",style:"width:"+o+"px;left:"+l+"px;cursor:"+L(Y,90)+"-resize",title:R("fH"),"mx5-pointerdown":i+"\x1e_gI({key:'bm'})"}))),(F&f.bT||(F&S)==S)&&(X.pinX||(c="cr fD fE cu dR eb",e<4&&(c+=" cw"),b.push(t("div",{style:"width:"+e+"px;height:"+e+"px;cursor:"+L(Y,135)+"-resize",title:R("g7"),"mx5-pointerdown":i+"\x1e_gI({key:'bl'})",class:c}))),X.pinX||X.pinY||(c="cr fD fF cu dR eb",e<4&&(c+=" cw"),b.push(t("div",{style:"width:"+e+"px;height:"+e+"px;cursor:"+L(Y,45)+"-resize",title:R("g7"),"mx5-pointerdown":i+"\x1e_gI({key:'tl'})",class:c}))),X.pinY||(c="cr fC fF cu dR eb",e<4&&(c+=" cw"),b.push(t("div",{style:"width:"+e+"px;height:"+e+"px;cursor:"+L(Y,135)+"-resize",title:R("g7"),"mx5-pointerdown":i+"\x1e_gI({key:'tr'})",class:c}))),c="cr fC fE cu dR eb",e<4&&(c+=" cw"),b.push(t("div",{style:"width:"+e+"px;height:"+e+"px;cursor:"+L(Y,45)+"-resize",title:R("g7"),"mx5-pointerdown":i+"\x1e_gI({key:'br'})",class:c})))}if(V._hv)for(let e=V._hv,i=e.length,s=0;s<i;s+=1){let[i,o]=e[s];b.push(t("div",{style:"left:"+(X[o+"X"]-X.x-X[i])+k+";top:"+(X[o+"Y"]-X.y-X[i])+k+";width:"+2*X[i]+k+";height:"+2*X[i]+k,class:"cr ct fJ"}))}if(V._hw){let e=V._hw(X);for(let s=e.length,o=0;o<s;o+=1){let s=e[o];c="cr fK c4 ci dR eb",s.c==X._hu&&(c+=" fL"),b.push(t("div",{style:"left:calc("+s.x+k+" - 4px);top:calc("+s.y+k+" - 4px)","mx5-pointerover":i+"\x1e_hx({key:'"+n(s.c)+"'})",title:R("g8"),"mx5-pointerdown":i+"\x1e_hy({key:'"+n(s.c)+"'})",class:c}))}}}c="cr dR cz fw",X.locked&&(c+=" dA"),_&&(X.locked?c+=" fz":c+=" fx",w&&(c+=" fB")),v&&(c+=" ",X.locked?c+=" fy":c+=" fA"),(F&f.bZ||X.readonly)&&(c+=" ct"),g.push(t("div",{id:"_rdm_"+y.id,style:"left:"+X.x+k+";top:"+X.y+k+";width:"+j(X.width,K())+k+";height:"+j(X.height,K())+k+";transform:rotate("+Y+"deg)",class:c},b))}return t(i,0,g)},init(){this.set({denum:a,max:x,min:f,minSize:()=>l.bK(1),whEnum:a.bR|a.bS,toPx:l.bX})},async render(){await this.digest();let e=y(`_rd_ta_${this.id}`);e&&(e.focus(),e.selectionStart=e.value.length)},_dg(e){let{ctrl:t,props:i,id:s,type:o}=e;t.as&_&&(-1!=i.focusCol||-1!=i.focusRow)&&(i.focusRow=-1,i.focusCol=-1,this._cG(e),h.fire("bL",{_dm:{[s]:1},_dn:{[o]:1},_bK:{_e7:1}}))},_gP(){let e=n.bN(),t=h.get("bK").length,i=this.get("element");if(i){let s=i.id,o=h.get("bR")[s],r=0;if(!e[s]&&o)for(let t of o)if(e[t]){r=1;break}let d=b(e,s);if(!d){i.props._hu="",i.props._df=0;let e=this.root;for(;e&&"_rd_sc"!=e.id;){if(e.dataset&&"hod"==e.dataset.as){e.scrollTop=0,e.scrollLeft=0;break}e=e.parentNode}}this.set({selfGrouped:o,grouped:r,selected:d,count:t})}}}).merge(c,p)})),define("27/base/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/base/index"})}}).static({type:"base",title:"dR",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({x:s.bK(e),y:s.bK(t),width:s.bK(200),height:s.bK(100),rotate:0,alpha:1,locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(20),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(10),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/base/index",["1h"],((e,t,i)=>{let s=e("1h"),{min:o}=Math;i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,{props:o,unit:r}=e;return s=[t("div",{class:"cr dR",style:"left:"+o.x+r+";top:"+o.y+r+";width:"+o.width+r+";height:"+o.height+r+";opacity:"+o.alpha+";transform:rotate("+o.rotate+"deg)"})],t(i,0,s)},assign(e){let{props:t}=e,{borderwidth:i,width:s,height:r}=t,d=o(s,r)/2;i>d&&(i=d),this.set(e),this.set({bw:i})},render(){this.digest()}})})),define("27/barcode/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/barcode","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../../24/barcode"),n=e("../2u"),{config:c}=s;i.exports=n.extend({ctor(){this.set({view:"27/barcode/dshow"})}}).static({type:"barcode",title:"dy",icon:"",_dd:r.bR|r.bS|r.bY|r.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:o.bK(80),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(200),text:"",linewidth:2,tfs:o.bK(14),color:"#000",format:"code128",showText:!0,styleBold:!1,styleItalic:!1,ow:"github.com/lindell/JsBarcode",help:"github.com/xinglie/report-designer/issues/31",locked:!1,bind:{url:"",id:"",fields:[]}}),props:[{key:"tfs",_c6:1},{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",min:()=>o.bK(20),step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>o.bK(20),step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:e=>!e.bind.id},{tip:"dF",key:"text",type:d.bO,json:1,_fZ:e=>!e.bind.id},{type:d.c_,_fZ:e=>!e.text&&c("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:e=>!e.text&&c("getFieldUrl")},{type:d.c_},{tip:"dH",key:"format",type:d.bQ,items:a._dn,json:1},{tip:"dI",key:"showText",type:d.bL,json:1},{tip:"dJ",type:d.bM,_e5(e,t){e.styleBold=t.styleBold,e.styleItalic=t.styleItalic},shows:{bold:1,italic:1}},{tip:"dK",key:"color",type:d.bK,json:1},{tip:"dL",key:"linewidth",type:d.bJ,min:1,max:8,json:1},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/barcode/dshow",["1h","../../24/barcode","../../24/2v"],((e,t,i)=>{let s=e("1h"),o=e("../../24/barcode"),r=e("../../24/2v"),{View:d,mark:l,task:a}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{enter:a,props:n,unit:c,text:p,error:h,i18n:b}=e;return l=[],!p||h?(r="",r+=h?" "+h+" ":" "+b("dQ")+" ",d=[t(0,r)],l.push(t("div",{class:"co ct dA",style:"font-size:"+n.tfs+c+";height:"+n.height+c+";line-height:"+n.height+c+";width:"+n.width+c},d))):l.push(t("img",{class:"b8 cj ck cl ct",id:"_rd_"+i+"_bar"},1)),o="cr dA dR",a&&(o+=" dj"),s=[t("div",{style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o},l)],t(i,0,s)},_f0:({text:e})=>e,assign(e){this.set(e);let{props:t}=e,{bind:i,text:s}=t;if(i.id){s=`[bind:${i.fields[0].id}]`}this.set({text:s})},async render(){let e=l(this,"_bQ");await this.digest({error:null});try{if(await o._f1(),e()){let{linewidth:t,height:i,format:s,showText:o,styleBold:r,styleItalic:d,color:n}=this.get("props"),c=this.get("text");c==this._f2&&s==this._f3&&o==this._f4&&t==this._f5&&n==this._f6&&r==this._f7&&d==this._f8||(this._f2=c,c&&(e=l(this,"_f9"),a((()=>{if(e()){this._f7=r,this._f8=d;let e="";r&&(e="bold"),d&&(r&&(e+=" "),e+="italic"),JsBarcode(`#_rd_${this.id}_bar`,c,{lineColor:this._f6=n,width:this._f5=t,format:this._f3=s,fontOptions:e,displayValue:this._f4=o})}}))))}}catch(t){e()&&this.digest({error:t})}}}).merge(r)})),define("27/barcode/index",["1h","../../24/barcode"],((e,t,i)=>{let s={class:"cF cI cZ ck"},o=e("1h"),r=e("../../24/barcode"),{View:d,mark:l,task:a,isArray:n}=o;i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d=[],{error:l,text:a,props:n,unit:c}=e;return(l||a)&&(r=[],l?(o=[t(0,l)],r.push(t("div",s,o))):r.push(t("img",{id:"_rd_"+i+"_bar",class:"b8 cj ck cl"},1)),d.push(t("div",{class:"cr dA dR",style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)"},r))),t(i,0,d)},assign(e){this.set(e);let{props:t}=e,{bind:i,text:s}=t;if(i.id){let e=i.fields[0];if(i._tip)s=i._tip;else if(i._data){let t=i._data;n(t)&&(t=t[0]),s=t[e.id]}else s=`[bind:${e.id}]`}this.set({text:s})},async render(){let e=l(this,"_bQ");await this.digest({error:null});try{if(await r._f1(),e()){let{linewidth:t,format:i,showText:s,styleBold:o,styleItalic:r,color:d}=this.get("props"),n=this.get("text");!n||n==this._f2&&i==this._f3&&s==this._f4&&t==this._f5&&d==this._f6&&o==this._f7&&r==this._f8||(e=l(this,"_f9"),a((()=>{if(e()){this._f7=o,this._f8=r;let e="";o&&(e="bold"),r&&(o&&(e+=" "),e+="italic"),JsBarcode(`#_rd_${this.id}_bar`,this._f2=n,{lineColor:this._f6=d,width:this._f5=t,fontOptions:e,format:this._f3=i,displayValue:this._f4=s})}})))}}catch(t){e()&&this.digest({error:t})}}})})),define("27/batch-qrcode/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/batch-qrcode/dshow"})}}).static({type:"batch-qrcode",title:"dW",icon:"",_dd:r.bT|r.bY|r.bZ|r.bQ,_cC:{root:1},_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:o.bK(150),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(150),hspace:o.bK(30),vspace:o.bK(30),tfs:o.bK(14),text:"",locked:!1,help:"github.com/xinglie/report-designer/issues/31",bind:{url:"",id:"",fields:[]}}),props:[{key:"tfs",_c6:1},{tip:"dz",type:d.bJ,key:"x",fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:e=>!e.text&&n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:e=>!e.text&&n("getFieldUrl")},{type:d.c_},{tip:"dT",type:d.bJ,json:1,key:"hspace",min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,max:()=>o.bK(100)},{tip:"dU",type:d.bJ,json:1,key:"vspace",min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,max:()=>o.bK(100)},{type:d.c_},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/batch-qrcode/dshow",["1h","../../24/2v","../../24/qrcode"],((e,t,i)=>{let s=e("1h"),o=e("../../24/2v"),r=e("../../24/qrcode"),{View:d,mark:l,node:a,task:n}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{enter:a,props:n,unit:c,text:p,error:h,i18n:b}=e;return l=[],p&&!h||(r="",r+=h?" "+h+" ":" "+b("dV")+" ",d=[t(0,r)],l.push(t("div",{class:"co ct dA",style:"font-size:"+n.tfs+c+";height:"+n.height+c+";line-height:"+n.height+c+";width:"+n.width+c},d))),l.push(t("div",{class:"ct",id:"_rd_"+i+"_qr"})),o="cr dR dA",a&&(o+=" dj"),s=[t("div",{style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o},l)],t(i,0,s)},_f0:({text:e})=>e,assign(e){this.set(e);let{props:t}=e,{bind:i,text:s}=t;if(i.id){s=`[\u7ed1\u5b9a:${i.fields[0].name}]`}this.set({text:s})},async render(){let e=l(this,"_bQ");await this.digest({error:null});try{if(await r(),e()){let t=this.get("text")+"";if(t&&t!=this._f2){let i=this._gc;if(!i){let e=a(`_rd_${this.id}_qr`);i=new QRCode(e),this._gc=i}e=l(this,"_gd"),n((()=>{if(e()){i.makeCode(this._f2=t),this.root.querySelector("img").classList.add("b8","cj","cl")}}))}}}catch(t){e()&&this.digest({error:t})}}}).merge(o)})),define("27/batch-qrcode/index",["1h","../../24/qrcode"],((e,t,i)=>{let s={class:"cF cI cZ ck"},o=e("1h"),r=e("../../24/qrcode"),{View:d,mark:l,node:a,task:n,isArray:c}=o;i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d=[],{error:l,text:a,props:n,unit:c}=e;return(l||a)&&(r=[],l&&(o=[t(0,l)],r.push(t("div",s,o))),r.push(t("div",{id:"_rd_"+i+"_qr"})),d.push(t("div",{class:"cr dA dR",style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)"},r))),t(i,0,d)},assign(e){this.set(e);let{props:t}=e,{bind:i,text:s}=t;if(i.id){let e=i.fields[0];if(i._tip)s=i._tip;else if(i._data){let t=i._data;c(t)&&(t=t[0]),s=t[e.id]}else s=`[\u7ed1\u5b9a:${e.name}]`}this.set({text:s})},async render(){let e=l(this,"_bQ");await this.digest({error:null});try{if(await r(),e()){let t=this.get("text")+"";if(t&&t!=this._f2){let i=this._gc;if(!i){let e=a(`_rd_${this.id}_qr`);i=new QRCode(e),this._gc=i}e=l(this,"_gd"),n((()=>{if(e()){i.makeCode(this._f2=t),this.root.querySelector("img").classList.add("cj")}}))}}}catch(t){e()&&this.digest({error:t})}}})})),define("27/batch-text/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/batch-text/dshow"})}}).static({type:"batch-text",title:"dX",icon:"",_dd:r.bR|r.bS|r.bY|r.bZ,_cC:{root:1},_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",height:o.bK(25),alpha:1,text:"",letterspacing:0,autoReturn:!1,richtext:!1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(200),hspace:o.bK(30),vspace:o.bK(30),forecolor:"#000",fontsize:o.bK(14),fontfamily:"Microsoft YaHei",locked:!1,styleBold:!1,styleUnderline:!1,styleItalic:!1,styleStrike:!1,styleOverline:!1,borderwidth:0,bordercolor:"#000",bordertype:"solid",format:"",hpos:"flex-start",vpos:"flex-start",bind:{url:"",id:"",fields:[]},help:"github.com/xinglie/report-designer/issues/31"}),props:[{tip:"dz",type:d.bJ,key:"x",fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:e=>!e.text&&n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:e=>!e.text&&n("getFieldUrl")},{tip:"dY",key:"format",type:d.ce,json:1,_fZ:e=>e.bind.id},{type:d.c_},{tip:"dT",type:d.bJ,json:1,key:"hspace",min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,max:()=>o.bK(100)},{tip:"dU",type:d.bJ,json:1,key:"vspace",min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,max:()=>o.bK(100)},{type:d.c_},{tip:"dZ",type:d.bL,key:"autoReturn",json:1},{tip:"d0",type:d.bL,key:"richtext",json:1},{tip:"d1",key:"fontsize",type:d.bJ,min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"d2",key:"fontfamily",type:d.bQ,items:o.cu,json:1},{tip:"d3",key:"letterspacing",type:d.bJ,min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"d4",key:"background",clear:1,alpha:1,type:d.bK,json:1},{tip:"d5",key:"forecolor",type:d.bK,json:1},{tip:"dJ",type:d.bM,_e5(e,t){e.styleBold=t.styleBold,e.styleUnderline=t.styleUnderline,e.styleItalic=t.styleItalic,e.styleStrike=t.styleStrike,e.styleOverline=t.styleOverline}},{tip:"d6",type:d.bN,_e5(e,t){e.hpos=t.hpos,e.vpos=t.vpos}},{type:d.c_},{tip:"d7",key:"borderwidth",type:d.bJ,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,min:0,json:1},{tip:"d8",key:"bordertype",type:d.bQ,items:o.cv,json:1},{tip:"d9",key:"bordercolor",type:d.bK,json:1},{type:d.c_},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/batch-text/dshow",["1h","../../24/2v"],((e,t,i)=>{let s=e("1h"),o=e("../../24/2v"),{View:r}=s,{min:d}=Math;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{enter:a,props:n,unit:c,bw:p,text:h,safeHTML:b,textReturn:g,i18n:y}=e;return d=[t(0,h?n.richtext?b(h):g(h):y("e_"),1)],r="color:"+n.forecolor+";",n.background&&(r+="background:"+n.background+";"),r+="font-size:"+n.fontsize+c+";height:"+n.height+c+";letter-spacing:"+n.letterspacing+c+";opacity:"+n.alpha+";",n.styleBold&&(r+="font-weight:bold;"),n.styleItalic&&(r+="font-style:italic;"),(n.styleUnderline||n.styleStrike||n.styleOverline)&&(r+="text-decoration:",n.styleStrike?r+="line-through":n.styleOverline?r+="overline":r+="underline",r+=";"),r+="align-items:"+n.vpos+";justify-content:"+n.hpos+";width:"+n.width+c+";font-family:"+n.fontfamily+";",p&&(r+="border:"+p+c+" "+n.bordertype+" "+n.bordercolor+";"),n.autoReturn&&(r+="word-break:break-all"),l=[t("div",{class:"cF ct dA",style:r},d)],o="cr dR",a&&(o+=" dj"),s=[t("div",{style:"left:"+n.x+c+";top:"+n.y+c+";transform:rotate("+n.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o},l)],t(i,0,s)},_f0:({text:e,_df:t})=>e||t,assign(e){this.set(e);let{props:t}=e,{text:i,bind:s,borderwidth:o,width:r,height:l}=t;if(s.id){i=`[\u7ed1\u5b9a:${s.fields[0].name}]`}let a=d(r,l)/2;o>a&&(o=a),this.set({bw:o,text:i})},render(){this.digest()}}).merge(o)})),define("27/batch-text/index",["1h","../../24/format"],((e,t,i)=>{let s=e("1h"),o=e("../../24/format"),{View:r,isArray:d}=s,{min:l}=Math;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,bw:a,safeHTML:n,text:c,textReturn:p}=e;return r=[t(0,d.richtext?n(c):p(c),1)],o="left:"+d.x+l+";top:"+d.y+l+";color:"+d.forecolor+";",d.background&&(o+="background:"+d.background+";"),o+="font-size:"+d.fontsize+l+";min-height:"+d.height+l+";letter-spacing:"+d.letterspacing+l+";opacity:"+d.alpha+";",d.styleBold&&(o+="font-weight:bold;"),d.styleItalic&&(o+="font-style:italic;"),(d.styleUnderline||d.styleStrike||d.styleOverline)&&(o+="text-decoration:",d.styleStrike?o+="line-through":d.styleOverline?o+="overline":o+="underline",o+=";"),o+="align-items:"+d.vpos+";justify-content:"+d.hpos+";width:"+d.width+l+";transform:rotate("+d.rotate+"deg);font-family:"+d.fontfamily+";",a&&(o+="border:"+a+l+" "+d.bordertype+" "+d.bordercolor+";"),d.autoReturn?o+="word-break:break-all":o+="max-height:"+d.height+"px",s=[t("div",{class:"cF cr dA dR",style:o},r)],t(i,0,s)},assign(e){this.set(e);let{props:t}=e,{text:i,bind:s,format:r,borderwidth:a,width:n,height:c}=t;if(s.id){let e=s.fields[0];if(s._tip)i=s._tip;else if(s._data){let t=s._data;d(t)&&(t=t[0]),i=t[e.id],i=o._ge(r,i,t)}else i=`[\u7ed1\u5b9a:${e.name}]`}let p=l(n,c)/2;a>p&&(a=p),this.set({bw:a,text:i})},render(){this.digest()}})})),define("27/calendar/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/calendar/index"})}}).static({type:"calendar",title:"ea",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({alpha:1,width:s.bK(300),height:s.bK(180),x:s.bK(e),y:s.bK(t),rotate:0,theadFontsize:s.bK(16),tbodyFontsize:s.bK(14),theadRowBackground:"#ffda95",weekStart:0,locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dA",type:r.bJ,key:"y",step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dB",type:r.bJ,key:"width",min:()=>s.bK(300),step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dC",key:"height",type:r.bJ,min:()=>s.bK(180),step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"eb",min:()=>s.bK(12),max:()=>s.bK(100),_c6:1,key:"theadFontsize",type:r.bJ,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,json:1},{tip:"ec",key:"theadRowBackground",type:r.bK,clear:1,alpha:1,json:1},{tip:"ed",min:()=>s.bK(12),max:()=>s.bK(100),_c6:1,step:s.bV,fixed:s.cy,key:"tbodyFontsize",type:r.bJ,read:d.bM,write:d.bR,json:1},{tip:"ee",key:"weekStart",json:1,type:r.bQ,items:[{text:"\u661f\u671f\u65e5",value:0},{text:"\u661f\u671f\u4e00",value:1},{text:"\u661f\u671f\u4e8c",value:2},{text:"\u661f\u671f\u4e09",value:3},{text:"\u661f\u671f\u56db",value:4},{text:"\u661f\u671f\u4e94",value:5},{text:"\u661f\u671f\u516d",value:6}]},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/calendar/index",["1h","../../1o/1r/index"],((e,t,i)=>{let s={class:"c9 cj ck co"},o=e("1h"),r=e("../../1o/1r/index"),{View:d}=o,l="\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split("");i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d,l,a,n,c,{props:p,unit:h,weekText:b,weeks:g}=e;a=[],d=[];for(let e=b.length,i=0;i<e;i+=1){r=[t(0,b[i])],d.push(t("td",{style:"font-size:"+p.theadFontsize+h+";background:"+p.theadRowBackground},r))}a.push(t("tr",0,d));for(let e=g.length,i=0;i<e;i+=1){let e=g[i];d=[];for(let i=e.length,s=0;s<i;s+=1){let i=e[s],o=`${i.year}-${i.month}-${i.day}`;l="",i.otherMonth||(l+=" "+i.day+" "),r=[t(0,l)],d.push(t("td",{style:"font-size:"+p.tbodyFontsize+h,title:!i.otherMonth&&o},r))}a.push(t("tr",0,d))}return n=[t("tbody",0,a)],c=[t("table",s,n)],o=[t("div",{class:"cr dA dR",style:"left:"+p.x+h+";top:"+p.y+h+";height:"+p.height+h+";opacity:"+p.alpha+";width:"+p.width+h+";transform:rotate("+p.rotate+"deg)"},c)],t(i,0,o)},init(){let e=this.render.bind(this);r._b9(3e5,e),this.on("destroy",(()=>{r._b8(e)}))},assign(e){this.set(e);let t=e.props.weekStart,i=l.slice(t);t>0&&(i=i.concat(l.slice(0,t))),this.set({weekText:i,weekStart:t})},render(){let e=new Date,t=e.getFullYear(),i=e.getMonth()+1,s=e.getDate();e.setHours(0,0,0,0);let o,r=(7-this.get("weekStart")+new Date(t,i-1,1).getDay())%7,d=[],l=[],a=((e,t)=>32-new Date(e,t-1,32).getDate())(t,i);for(o=1;o<=r;o++)l.push({otherMonth:!0});for(o=1;o<=a;o++)l.push({year:t,day:o,month:i}),(o+r)%7==0&&(d.push(l),l=[]);let n=l.length;if(n){let e=7;for(o=n;o<e&&(l.push({otherMonth:!0}),(o+1)%7!=0||(d.push(l),l=[],6!=d.length));o++);}this.digest({year:t,month:i,day:s,weeks:d})}})})),define("27/circle/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/circle/index"})}}).static({type:"circle",title:"ev",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({fillcolor:"",alpha:1,width:s.bK(150),height:s.bK(150),x:s.bK(e),y:s.bK(t),rotate:0,borderwidth:s.bK(1),bordertype:"solid",bordercolor:"#000",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dA",type:r.bJ,key:"y",step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dB",type:r.bJ,key:"width",min:()=>0,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dC",key:"height",type:r.bJ,min:()=>0,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"d7",key:"borderwidth",type:r.bJ,read:d.bM,write:d.bR,step:s.bV,fixed:s.cy,_c6:1,min:0,json:1},{tip:"d8",key:"bordertype",type:r.bQ,items:s.cv,json:1},{tip:"d9",key:"bordercolor",type:r.bK,json:1},{tip:"ew",key:"fillcolor",clear:1,alpha:1,type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/circle/index",["1h"],((e,t,i)=>{let s=e("1h"),{min:o}=Math;i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,bw:l}=e;return o="border-radius:50%;left:"+r.x+d+";top:"+r.y+d+";",l&&(o+="border:"+l+d+" "+r.bordertype+" "+r.bordercolor+";"),r.fillcolor&&(o+="background:"+r.fillcolor+";"),o+="height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg)",s=[t("div",{class:"cr dR",style:o})],t(i,0,s)},assign(e){let{props:t}=e,{borderwidth:i,width:s,height:r}=t,d=o(s,r)/2;i>d&&(i=d),this.set(e),this.set({bw:i})},render(){this.digest()}})})),define("27/clock/designer",["../../1g/1j","../../1g/props","../../1g/1k","../2u","../../1g/21"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/props"),r=e("../../1g/1k"),d=e("../2u"),l=e("../../1g/21");i.exports=d.extend({ctor(){this.set({view:"27/clock/index"})}}).static({type:"clock",title:"ex",icon:"",_dd:l.bT|l.bQ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({alpha:1,width:s.bK(150),height:s.bK(150),dialColor:"#00000040",handleColor:"#fff",markColor:"#ffffff80",x:s.bK(e),y:s.bK(t),locked:!1}),props:[{tip:"dz",type:o.bJ,key:"x",step:s.bV,fixed:s.cy,read:r.bM,write:r.bR,_c6:1,json:1},{tip:"dA",type:o.bJ,key:"y",step:s.bV,fixed:s.cy,read:r.bM,write:r.bR,_c6:1,json:1},{tip:"dB",type:o.bJ,key:"width",min:()=>s.bK(100),max:()=>s.bK(400),step:s.bV,fixed:s.cy,read:r.bM,write:r.bR,_c6:1,json:1},{tip:"dC",key:"height",type:o.bJ,min:()=>s.bK(100),max:()=>s.bK(400),step:s.bV,fixed:s.cy,read:r.bM,write:r.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:o.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:o.c_},{tip:"ey",key:"dialColor",type:o.bK,alpha:1,json:1},{tip:"ez",key:"handleColor",type:o.bK,alpha:1,json:1},{tip:"eA",key:"markColor",type:o.bK,alpha:1,json:1},{type:o.c_},{tip:"dO",key:"ename",type:o.bS,json:1},{tip:"dP",key:"locked",type:o.bL,free:!0,json:1}]})})),define("27/clock/index",["1h","../../1o/1r/index"],((e,t,i)=>{let s,o=e("1h"),r=e("../../1o/1r/index"),{View:d,applyStyle:l,mark:a,node:n,State:c}=o;l("c6",".fk{border-radius:50%}.fl{height:2px;border-radius:1px;width:calc(50% + 3px);top:calc(50% - 1px);left:calc(50% - 15px);transform-origin:15px center}.fm{height:4px;border-radius:2px;width:calc(50% - 15px);top:calc(50% - 2px);left:calc(50% - 12px);transform-origin:12px center}.fn{height:6px;border-radius:3px;width:calc(50% - 25px);top:calc(50% - 3px);left:calc(50% - 10px);transform-origin:10px center}.fo{height:6px;background:#fff6;box-shadow:0 0 0 2px #0006;border-radius:50%;width:6px;top:calc(50% - 3px);left:calc(50% - 3px)}.fp,.fq,.fr,.fs,.ft,.fu{left:4px;top:calc(50% - 2px);height:4px;width:calc(100% - 8px);border-left:4px solid;border-right:4px solid}.fq{transform:rotate(30deg)}.fr{transform:rotate(60deg)}.fs{transform:rotate(90deg)}.ft{transform:rotate(120deg)}.fu{transform:rotate(150deg)}"),i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d,{props:l,unit:a,scale:n}=e;return d=[t("div",{class:"cr fp",style:"border-color:"+l.markColor}),t("div",{class:"cr fq",style:"border-color:"+l.markColor}),t("div",{class:"cr fr",style:"border-color:"+l.markColor}),t("div",{class:"cr fs",style:"border-color:"+l.markColor}),t("div",{class:"cr ft",style:"border-color:"+l.markColor}),t("div",{class:"cr fu",style:"border-color:"+l.markColor}),t("div",{class:"cr fn",id:"_rd_h_"+i,style:"background-color:"+l.handleColor}),t("div",{class:"cr fm",id:"_rd_m_"+i,style:"background-color:"+l.handleColor}),t("div",{class:"cr fl",id:"_rd_s_"+i,style:"background-color:"+l.handleColor})],s?d.push(s):d.push(s=t("div",{_:"a;",class:"cr fo"})),r="left:"+l.x+a+";top:"+l.y+a+";height:"+l.height/n+a+";opacity:"+l.alpha+";width:"+l.width/n+a+";background-color:"+l.dialColor+";",1!=n&&(r+="transform:scale("+n+");transform-origin:0 0;"),o=[t("div",{class:"cr dR fk",style:r},d)],t(i,0,o)},assign(e){this.set(e)},async render(){let e=a(this,"_bQ");if(await this.digest({scale:c.get("bL")||1}),e()){let e=n("_rd_s_"+this.id),t=n("_rd_m_"+this.id),i=n("_rd_h_"+this.id),s=()=>{let s=new Date,o=(1e3*s.getSeconds()+s.getMilliseconds())/1e3,r=(60*s.getMinutes()+o)/60,d=(60*s.getHours()+r)/60;e.style.transform=`rotate(${6*o-90}deg)`,t.style.transform=`rotate(${6*r-90}deg)`,i.style.transform=`rotate(${30*d-90}deg)`};r._b9(32,s),this.on("destroy",(()=>{r._b8(s)}))}}})})),define("27/cprogress/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/cprogress/dshow"})}}).static({type:"cprogress",title:"eB",icon:"",_dd:o.bT|o.bZ|o.bQ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(150),alpha:1,x:s.bK(e),y:s.bK(t),width:s.bK(150),locked:!1,border:10,background:"#f0f0f0",roundCap:!0,fillcolor:"#fa742b",forecolor:"#666666",value:50,textFormat:"",showText:!0,fontsize:s.bK(14),fontfamily:"Tahoma",bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{tip:"eC",key:"value",type:r.bJ,min:0,max:100,json:1,fixed:1,_fZ:e=>!e.bind.id},{type:r.c_,_fZ:e=>!e.bind.id},{tip:"dG",key:"bind",type:r.bT,json:1,max:1},{tip:"eD",type:r.cf,key:"textFormat",json:1,_fZ:e=>e.bind.id},{type:r.c_},{tip:"d7",key:"border",type:r.bJ,min:2,max:30,json:1},{tip:"d4",key:"background",type:r.bK,json:1},{tip:"eE",key:"fillcolor",type:r.bK,json:1},{tip:"er",key:"roundCap",type:r.bL,json:1},{tip:"dI",key:"showText",type:r.bL,json:1},{tip:"d1",key:"fontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1,_fZ:({showText:e})=>e},{tip:"d2",key:"fontfamily",type:r.bQ,items:s.cu,json:1,_fZ:({showText:e})=>e},{tip:"d5",key:"forecolor",type:r.bK,json:1,_fZ:({showText:e})=>e},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/cprogress/dshow",["1h","../../1g/1j","../../24/2v"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../24/2v"),{View:d}=s,{max:l,PI:a}=Math;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,a,{enter:n,props:c,unit:p,radius:h,center:b,d1:g,d2:y,text:f,value:x}=e;return l=[],l.push(t("circle",{cx:"50%",cy:"50%",r:h,fill:"none",stroke:c.background,"stroke-width":c.border},1)),r="",c.roundCap?r+="round":r+="butt",l.push(t("circle",{cx:"50%",cy:"50%",r:h,fill:"none",stroke:c.fillcolor,transform:"rotate(-90 "+b+" "+b+")","stroke-width":c.border,"stroke-dasharray":g+","+y,"stroke-linecap":r},1)),c.showText&&(d=[t(0,f||x+"%")],l.push(t("text",{x:"50%",y:"50%",style:"text-anchor:middle; dominant-baseline:middle","font-family":c.fontfamily,"font-size":c.fontsize+p,fill:c.forecolor},d))),a=[t("svg",{style:"width:"+c.width+p+";height:"+c.height+p+";opacity:"+c.alpha},l)],o="dR dA cr",n&&(o+=" dj"),s=[t("div",{style:"left:"+c.x+p+";top:"+c.y+p,"mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o},a)],t(i,0,s)},assign(e){this.set(e);let{props:t}=e,{bind:i,value:s,width:r,border:d}=t,n="";if(i.id){n=`[\u7ed1\u5b9a:${i.fields[0].name}]`,s=60}let c=o.bX(r),p=l((c-d)/2,0),h=2*a*p,b=h*(s/100),g=h-b;this.set({center:c/2,d1:b,d2:g,radius:p,value:s,text:n})},render(){this.digest()}}).merge(r)})),define("27/cprogress/index",["1h","../../1g/1j","../../24/format"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../24/format"),{View:d,isArray:l}=s,{max:a,PI:n}=Math;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{props:a,unit:n,radius:c,center:p,d1:h,d2:b,text:g,value:y}=e;return d=[],d.push(t("circle",{cx:"50%",cy:"50%",r:c,fill:"none",stroke:a.background,"stroke-width":a.border},1)),o="",a.roundCap?o+="round":o+="butt",d.push(t("circle",{cx:"50%",cy:"50%",r:c,fill:"none",stroke:a.fillcolor,transform:"rotate(-90 "+p+" "+p+")","stroke-width":a.border,"stroke-dasharray":h+","+b,"stroke-linecap":o},1)),a.showText&&(r=[t(0,g||y+"%")],d.push(t("text",{x:"50%",y:"50%",style:"text-anchor:middle; dominant-baseline:middle","font-family":a.fontfamily,"font-size":a.fontsize+n,fill:a.forecolor},r))),l=[t("svg",{style:"width:"+a.width+n+";height:"+a.height+n+";opacity:"+a.alpha},d)],s=[t("div",{class:"cr",style:"left:"+a.x+n+";top:"+a.y+n},l)],t(i,0,s)},assign(e){this.set(e);let{props:t}=e,{bind:i,value:s,textFormat:d,width:c,border:p}=t,h="";if(i.id){let e=i.fields[0];if(i._tip)h=i._tip,s=60;else if(i._data){let o=i._data;l(o)&&(o=o[0]),s=o[e.id],s=r._ge(d,s,t),!isNaN(s)&&isFinite(s)||(s=0),s<0?s=0:s>100&&(s=100)}else h=`[\u7ed1\u5b9a:${e.name}]`,s=60}let b=o.bX(c),g=a((b-p)/2,0),y=2*n*g,f=y*(s/100),x=y-f;this.set({center:b/2,d1:f,d2:x,radius:g,value:s,text:h})},render(){this.digest()}})})),define("27/data-celltable/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/cell","../../24/table","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../../24/cell"),n=e("../../24/table"),c=e("../2u"),{mix:p}=s,h=["width","height","paddingLeft","paddingTop","paddingBottom","paddingRight","textFontsize","textLetterspacing"];i.exports=c.extend({ctor(){this.set({view:"27/data-celltable/dshow"})}}).static({type:"data-celltable",title:"eF",as:r.bU,icon:"",_dd:r.bW|r.bY|r.bZ,_cC:{root:1,"data-dtable":1,"hod-col-table":1},_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){n.bJ(e,!0);let{borderwidth:t,borderdeed:i}=e;e._gn&&e._go||(e=n.bJ(e));let s=n.bK(e),r=0,d=0;for(let e of s._gp)d+=e;for(let e of s._gq)r+=e;let l=t;if("separate"==i){let t=n.bK(e);r+=2*o.bK(t._gq.length+1),d+=2*o.bK(t._gp.length+1)}else r+=l,d+=l;e.width=d,e.height=r},_gm(e){let{rows:t,bind:i}=e,s=[];for(let e of t)for(let t of e.cols)t.bindKey&&s.push({id:t.bindKey,name:t.bindName});return{id:i.id,fields:s}},_c4(e,t){let i=p({height:o.bK(30),width:o.bK(150),rowspan:1,colspan:1,paddingLeft:o.bK(5),paddingTop:o.bK(5),paddingRight:o.bK(5),paddingBottom:o.bK(5),bLeft:!0,bTop:!0,bRight:!0,bBottom:!0,hpos:"flex-start",vpos:"flex-start",alpha:1,type:"text"},a.text);return i.textFontsize=o.bK(i.textFontsize),{x:o.bK(e),y:o.bK(t),rotate:0,alpha:1,borderwidth:o.bK(1),bordercolor:"#000",bordertype:"solid",borderdeed:"collapse",focusRow:-1,focusCol:-1,bind:{url:"",id:""},help:"github.com/xinglie/report-designer/issues/25",rows:[{cols:[{...i},{...i}]},{cols:[{...i},{...i}]}],locked:!1}},props:[{key:"rows",_e5(e,{rows:t}){l.bZ(e,t,h)},_ep({rows:e},t){l.b0(e,t,h)},_c5(e,t,i){l.bY(e,t,h,i)}},{key:"bind",json:1},{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",key:"width",read:l.bM,type:d.bV,json:1},{tip:"dC",key:"height",read:l.bM,type:d.bV,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{tip:"eG",type:d.cm,_gr:1},{type:d.c_},{tip:"d7",key:"borderwidth",type:d.bJ,read:l.bM,write:l.bR,step:o.bV,fixed:o.cy,min:0,max:()=>o.bK(10),_c6:1,json:1},{tip:"d8",key:"bordertype",type:d.bQ,items:o.cv,json:1},{tip:"d9",key:"bordercolor",type:d.bK,json:1},{tip:"eH",key:"borderdeed",type:d.bQ,items:[{text:"eI",value:"collapse"},{text:"eJ",value:"separate"}],json:1},{type:d.c_,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eK",type:d.b1,_gr:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eL",type:d.cd,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eM",type:d.bX,_gr:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:d.c_,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:d.ca,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:d.c_},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/data-celltable/dshow",["1h","../../1g/1j","../../1g/1t","../../1g/1v","../../1g/22","../../1o/1p/index","../../24/31","../subs/barcode","../subs/qrcode"],((e,t,i)=>{let s,o;e("../subs/barcode"),e("../subs/qrcode");let r={class:"bJ cr ct dE dK dN dy"},d={class:"cC"},l=e("1h"),a=e("../../1g/1j"),n=e("../../1g/1t"),c=e("../../1g/1v"),p=e("../../1g/22"),h=e("../../1o/1p/index"),b=e("../../24/31"),{State:g,View:y}=l,f={};i.exports=y.extend({tmpl:(e,t,i,l)=>{let a,n,c,p,h,b,g,y,f,x,_,u,{props:m,unit:k,fs:w,toUnit:v,i18n:j,selected:K,count:R,fieldRow:J,fieldCol:M,grouped:L,toPx:S,cursor:X}=e;c="";let V=Math.max,Y=Math.min;c+=" ";let F=m.borderwidth,C=m.bordertype,T=m.bordercolor,z=m.borderdeed,B=m.rows;c+=" ";let A=("collapse"==z?1:2)*F;x=[];for(let e=B.length,n=0;n<e;n+=1){f=[];for(let e=B[n].cols,x=e.length,_=0;_<x;_+=1){let x=e[_];y=[],!w&&x.type&&(c="","text"==x.type?c+=" \ue6bc ":"image"==x.type?c+=" \ue650 ":"barcode"==x.type?c+=" \ue6c8 ":"qrcode"==x.type&&(c+=" \ue61c "),p=[t(0,c)],y.push(t("i",r,p))),c="";let u=x.paddingTop,z=x.paddingBottom,B=x.paddingLeft,O=x.paddingRight;c+=" ";let N=x.width-A-v(1),P=x.height-A-v(1);if(u>P&&(u=P),u+z>P&&(z=P-u),B>N&&(B=N),B+O>N&&(O=N-B),p=[],x.bindKey?(w||m.locked||(b=[s||(s=t(0,"\ue6b3"))],p.push(t("i",{class:"bJ c3 cr dE dK dM dx eb","mx5-pointerdown":i+"\x1e1\x1e_fn()","mx5-click":i+"\x1e_gv({row:"+n+",col:"+_+"})",title:j("eN")},b))),p.push(t(0,"[\u7ed1\u5b9a:"+x.bindName+"]")),x.type||p.push(o||(o=t(0,"\uff0c\u672a\u6307\u5b9a\u683c\u5b50\u5185\u5bb9")))):"text"==x.type?x.textContent&&(b=[t(0,x.textContent,1)],p.push(t("div",d,b))):"image"==x.type?x.imageContent&&(h="",(x.imageRotateX||x.imageRotateY)&&(h+=";transform:",x.imageRotateX&&(h+="rotateX(180deg)"),x.imageRotateY&&(h+=" rotateY(180deg)")),p.push(t("img",{class:"b8 cl cm",src:x.imageContent,style:h},1))):"barcode"==x.type?x.barcodeContent&&p.push(t("div",{"mx5-owner":i,class:"cF",style:"height:"+(P-u-z)+k+";align-items:"+x.vpos,"mx5-view":"27/subs/barcode?lineColor="+l(x.barcodeColor)+"&lineWidth="+l(x.barcodeLineWidth)+"&showText="+l(x.barcodeShowText)+"&format="+l(x.barcodeFormat)+"&value="+l(x.barcodeContent)})):"qrcode"==x.type&&x.qrcodeContent&&p.push(t("div",{"mx5-owner":i,style:"height:"+(P-u-z)+k,"mx5-view":"27/subs/qrcode?vpos="+l(x.vpos)+"&value="+l(x.qrcodeContent)})),h="padding:"+u+k+" "+O+k+" "+z+k+" "+B+k+";width:"+N+k+";height:"+P+k+";align-items:"+x.vpos+";justify-content:"+x.hpos+";opacity:"+x.alpha+";",x.background&&(h+="background:"+x.background+";"),"text"==x.type&&(h+="color:"+x.textForecolor+";letter-spacing:"+x.textLetterspacing+k+";",x.textStyleBold&&(h+="font-weight:bold;"),x.textStyleItalic&&(h+="font-style:italic;"),(x.textStyleUnderline||x.textStyleStrike||x.textStyleOverline)&&(h+="text-decoration:",x.textStyleStrike?h+="line-through":x.textStyleOverline?h+="overline":h+="underline",h+=";"),h+="font-family:"+x.textFontfamily+";font-size:"+x.textFontsize+k+";"),y.push(t("div",{class:"cF cs dA",style:h},p)),!w&&!m.locked){let e=m.focusRow==n&&m.focusCol==_&&K&&1==R;if(p=[],e&&!L){c="";let e=Y(26,S(x.height)-6)-4;c+=" ";let s=Y(26,S(x.width)-6)-4;c+=" ";let o=(S(x.height)-e-A)/2-1;c+=" ";let r=(S(x.width)-s-A)/2-1;p.push(t("div",{class:"cr cu dd eb",style:"height:"+V(e,0)+"px;top:"+o+"px;cursor:"+X(m.rotate,0)+"-resize",title:j("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+V(e,0)+"px;top:"+o+"px;cursor:"+X(m.rotate,0)+"-resize",title:j("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+V(s,0)+"px;left:"+r+"px;cursor:"+X(m.rotate,90)+"-resize",title:j("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+V(s,0)+"px;left:"+r+"px;cursor:"+X(m.rotate,90)+"-resize",title:j("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'tm'})"}))}g="cr dh dR ct",e&&(g+=" dc"),J==n&&M==_&&(g+=" dj"),h="",e&&(x.bLeft||(h+="border-left-style:dotted;"),x.bTop||(h+="border-top-style:dotted;"),x.bRight||(h+="border-right-style:dotted;"),x.bBottom||(h+="border-bottom-style:dotted;")),y.push(t("div",{class:g,style:h},p))}f.push(t("td",{class:"c7 d_ eb",colspan:null!=(a=x.colspan)&&a,rowspan:null!=(a=x.rowspan)&&a,style:"position:relative;width:"+x.width+k+";height:"+x.height+k+";border-left:"+(F?C:"dotted")+" "+F+k+" "+(F&&x.bLeft?T:"#ddd6")+";border-top:"+(F?C:"dotted")+" "+F+k+" "+(F&&x.bTop?T:"#ddd6")+";border-right:"+(F?C:"dotted")+" "+F+k+" "+(F&&x.bRight?T:"#ddd6")+";border-bottom:"+(F?C:"dotted")+" "+F+k+" "+(F&&x.bBottom?T:"#ddd6"),"mx5-pointerdown":i+"\x1e_gw({row:"+n+",col:"+_+"})","mx5-dragenter":i+"\x1e_g_({row:"+n+",col:"+_+"})","mx5-dragleave":i+"\x1e_ga({row:"+n+",col:"+_+"})"},y))}x.push(t("tr",0,f))}return _=[t("tbody",0,x)],u=[t("table",{class:"c9 cj",style:"border-collapse:"+z},_)],n=[t("div",{class:"cr dR",style:"left:"+m.x+k+";top:"+m.y+k+";opacity:"+m.alpha+";width:"+m.width+k+";height:"+m.height+k+";transform:rotate("+m.rotate+"deg)","mx5-drop":i+"\x1e_gb()"},u)],t(i,0,n)},init(){this.set({toPx:a.bX,toUnit:a.bK})},assign(e){this.set(e)},render(){this.digest()},"_g_<dragenter>"(e){let t=this.get("props");if(t.locked)return;e._d4=1;let{row:i,col:s}=e.params;if(h._gs(f,`${i}_${s}`))if(((e,t,i)=>{let s=e.rows[t].cols[i];if("text"==s.type)return s.textContent})(t,i,s))this.digest({fieldRow:-1,colRow:-1});else{g.get("b4")&&this.digest({fieldRow:i,fieldCol:s})}},"_ga<dragleave>"(e){let{row:t,col:i}=e.params;h._gt(f,`${t}_${i}`)&&this.get("fieldRow")==t&&this.get("fieldCol")==i&&this.digest({fieldRow:-1,fieldCol:-1})},"_gv<click>"(e){let t=this.get("props");if(t.locked)return;let i=this.get("element"),{row:s,col:o}=e.params,{rows:r}=t,d=r[s].cols[o];delete d.bindKey,delete d.bindName;let l=0;for(let e of r){for(let t of e.cols)if(t.bindKey){l=1;break}if(l)break}l||(t.bind.id="",t.bind.url=""),this.digest({props:t}),g.fire("bL",{_dm:{[i.id]:1},_dn:{[i.type]:1},_bK:{_gu:1}});let a=c.bT(i);n.bJ(n.cj,a)},"_gb<drop>&{passive:false}"(e){this._cq(e),f={},e._d4=1;let t=this.get("fieldRow"),i=this.get("fieldCol"),s=g.get("b4");if(s&&-1!=t&&-1!=i){let e=this.get("props"),o=this.get("element"),{rows:r}=e;if(e.bind.id!=s.id)for(let e of r)for(let t of e.cols)t.bindKey&&(delete t.bindKey,delete t.bindName);e.bind.id=s.id,e.bind.url=s.url,e.focusRow=t,e.focusCol=i;let d=r[t].cols[i];d.bindKey=s.field.id,d.bindName=s.field.name,this.digest({fieldRow:-1,fieldCol:-1}),p.bJ(o)||g.fire("bL",{_dm:{[o.id]:1},_dn:{[o.type]:1},_bK:{_gu:1}});let l=c.bT(o);n.bJ(n.cj,l)}}}).merge(h,b)})),define("27/data-celltable/index",["1h","../../1g/1j","../../24/format","../subs/barcode","../subs/qrcode"],((e,t,i)=>{e("../subs/barcode"),e("../subs/qrcode");let s=e("1h"),o=e("../../1g/1j"),r=e("../../24/format"),d=r._ge.bind(r);i.exports=s.View.extend({tmpl:(e,t,i,s)=>{let o,r,d,l,a,n,c,p,h,b,{props:g,unit:y,toUnit:f,format:x}=e;r="";let _=g.borderwidth,u=g.bordertype,m=g.bordercolor,k=g.borderdeed,w=g.rows,v=g.bind;r+=" ";let j=("collapse"==k?1:2)*_;p=[];for(let e=w.length,o=0;o<e;o+=1){let e=w[o];c=[];for(let o=e.cols,p=o.length,h=0;h<p;h+=1){let p=o[h];if(n=[],v._tip)n.push(t(0,v._tip));else{r="";let o=p.paddingTop,c=p.paddingBottom,h=p.paddingLeft,b=p.paddingRight;r+=" ";let g,_=p.width-j-f(1),u=p.height-j-f(1);o>u&&(o=u),o+c>u&&(c=u-o),h>_&&(h=_),h+b>_&&(b=_-h),a=[],"text"==p.type?(p.bindKey?(r="",g=v._data&&v._data[p.bindKey],r+=" ",g=x(p.textFormat,g,v._data)):g=p.textContent,g&&(l=[t(0,g,1)],a.push(t("div",{class:!p.textAutoReturn&&"cC"},l)))):"image"==p.type?(g=p.bindKey?v._data&&v._data[p.bindKey]:p.imageContent,g&&(d="",(p.imageRotateX||p.imageRotateY)&&(d+=";transform:",p.imageRotateX&&(d+="rotateX(180deg)"),p.imageRotateY&&(d+=" rotateY(180deg)")),a.push(t("img",{class:"b8 cl cm",src:g,style:d},1)))):"barcode"==p.type?(g=p.bindKey?v._data&&v._data[p.bindKey]:p.barcodeContent,g&&a.push(t("div",{"mx5-owner":i,class:"cF",style:"height:"+(u-o-c)+y+";align-items:"+p.vpos,"mx5-view":"27/subs/barcode?lineColor="+s(p.barcodeColor)+"&lineWidth="+s(p.barcodeLineWidth)+"&showText="+s(p.barcodeShowText)+"&format="+s(p.barcodeFormat)+"&value="+s(g)}))):"qrcode"==p.type?(g=p.bindKey?v._data&&v._data[p.bindKey]:p.qrcodeContent,g&&a.push(t("div",{"mx5-owner":i,style:"height:"+(u-o-c)+y,"mx5-view":"27/subs/qrcode?vpos="+s(p.vpos)+"&value="+s(g)}))):p.bindKey&&a.push(t(0,"[\u672a\u6307\u5b9a\u6570\u636e\u5904\u7406\u65b9\u5f0f]"+(g??""))),d="padding:"+o+y+" "+b+y+" "+c+y+" "+h+y+";width:"+_+y+";height:",e.hasAutoReturn?d+="100%":d+=""+u+y,d+=";align-items:"+p.vpos+";justify-content:"+p.hpos+";opacity:"+p.alpha+";",p.background&&(d+="background:"+p.background+";"),"text"==p.type&&(d+="color:"+p.textForecolor+";letter-spacing:"+p.textLetterspacing+y+";",p.textStyleBold&&(d+="font-weight:bold;"),p.textStyleItalic&&(d+="font-style:italic;"),(p.textStyleUnderline||p.textStyleStrike||p.textStyleOverline)&&(d+="text-decoration:",p.textStyleStrike?d+="line-through":p.textStyleOverline?d+="overline":d+="underline",d+=";"),d+="font-family:"+p.textFontfamily+";font-size:"+p.textFontsize+y+";"),n.push(t("div",{class:"cF dA",style:d},a))}c.push(t("td",{class:"c7 d_",colspan:1!=p.colspan&&p.colspan,rowspan:1!=p.rowspan&&p.rowspan,style:"position:relative;width:"+p.width+y+";height:"+p.height+y+";border-left:"+(_?u:"dotted")+" "+_+y+" "+(_&&p.bLeft?m:"#0000")+";border-top:"+(_?u:"dotted")+" "+_+y+" "+(_&&p.bTop?m:"#0000")+";border-right:"+(_?u:"dotted")+" "+_+y+" "+(_&&p.bRight?m:"#0000")+";border-bottom:"+(_?u:"dotted")+" "+_+y+" "+(_&&p.bBottom?m:"#0000")},n))}p.push(t("tr",0,c))}return h=[t("tbody",0,p)],b=[t("table",{class:"c9 cj",style:"border-collapse:"+k},h)],o=[t("div",{class:"cr dR",style:"left:"+g.x+y+";top:"+g.y+y+";opacity:"+g.alpha+";width:"+g.width+y+";transform:rotate("+g.rotate+"deg)"},b)],t(i,0,o)},init(){this.set({toUnit:o.bK,format:d})},assign(e){for(let t of e.props.rows)for(let e of t.cols)if("text"==e.type&&e.textAutoReturn){t.hasAutoReturn=!0;break}this.set(e)},render(){this.digest()}})})),define("27/chart/index",["./bar/designer","./chartjs/designer","./funnel/designer","./line/designer","./meter/designer","./pie/designer","./radar/designer","./scatter/designer","../index"],((e,t,i)=>{let s=e("./bar/designer"),o=e("./chartjs/designer"),r=e("./funnel/designer"),d=e("./line/designer"),l=e("./meter/designer"),a=e("./pie/designer"),n=e("./radar/designer"),c=e("./scatter/designer"),p=e("../index");i.exports=()=>{p.bL(s,o,r,d,l,a,n,c),p.bM({icon:"",title:"\u56fe\u8868",subs:[{ctrl:d},{ctrl:l},{ctrl:s},{ctrl:a},{ctrl:r},{ctrl:n},{ctrl:c},{ctrl:o}]})}})),define("27/data-coltable/consts",[],((e,t,i)=>{i.exports={_gy:120,_gz:200,_gA:100}})),define("27/data-coltable/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/2b","../../1g/1k","../2u","./consts"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/2b"),a=e("../../1g/1k"),n=e("../2u"),c=e("./consts"),p=n.prototype,{State:h,Cache:b,mark:g,config:y,mix:f}=s,{floor:x}=Math,_=(e,t,i)=>{let{bind:s,columns:r}=e,d=h.get("bL");if(s.fields&&s.fields.length){let l=0,a=h.get("bX");for(let e of a)"hod-footer"==e.type&&(l=e.props.height);let n=0;for(let e of s.fields)n+=r[e.id]||c._gy*d;let p=o.bK(1);if(e.width=n+p,i||!t)e.loadingHeight=c._gA*d,e.height=c._gA*d+e.theadRowHeight+o.bK(3)+e.tfootSpacing,e.bind._tip=(null==i?void 0:i.message)||"\u6b63\u5728\u52a0\u8f7d\u6570\u636e...";else{let i=h.get("bV"),s=e.y,o=i.height*d,r=s/o,a=0|r;r-a>.9999&&a++,a<0&&(a=0),s-=a*o;let n=o-s-e.theadRowHeight-p-e.tfootSpacing-l,c=x(n/(e.tbodyRowHeight+p));c<1&&(c=1),t.length>c&&(t=t.slice(0,c)),e.height=e.theadRowHeight+e.tbodyRowHeight*t.length+(t.length+2)*p+e.tfootSpacing,e.bind._data=t,e.bind._tip=""}}else e.height=e.theadRowHeight+e.tbodyRowHeight+o.bK(3)+e.tfootSpacing,e.width=o.bK(c._gz)*d},u=new b;i.exports=n.extend({ctor(){this.set({view:"27/data-coltable/dshow"});let e=this._bT((e=>{if(!e._dn||e._dn["hod-footer"]){let e=this.get("element");this._cG(e)}}),20);h.on("bP",e),h.on("bL",e),this.on("destroy",(()=>{h.off("bP",e),h.off("bL",e)}))},_gB(e){let{props:t}=e,{bind:i}=t;if(i.url){let e=u.get(i.url);if(e)_(t,e.list,e.error);else{_(t);let e=g(this,"_gB");(new l).all({name:"_eS",url:i.url},((s,o)=>{let r=o.get("data",[]);u.set(i.url,{list:r,error:s}),_(t,r,s);let d=this.get("element");e()&&(d.ctrl._cF&&d.ctrl._cF(t),this.digest({element:d}),h.fire("bL",{_dm:{[d.id]:1},_dn:{[d.type]:1},_bK:{_gu:1}}))}))}}else _(t)},assign(e){this._gB(e.element),p.assign.call(this,e)},_cG(e){this._gB(e),p._cG.call(this,e)}}).static({type:"data-coltable",title:"eQ",icon:"",_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_dd:r.b0,_cC:{root:1},_c4:(e,t)=>({alpha:1,x:o.bK(e),y:o.bK(t),width:o.bK(200),height:o.bK(93),locked:!1,cellAlign:"center",tfootSpacing:o.bK(20),theadFontsize:o.bK(16),theadRowHeight:o.bK(40),theadForecolor:"#000",tbodyRowHeight:o.bK(30),tbodyFontsize:o.bK(14),tbodyForecolor:"#000",theadRowBackground:"#ffda95",tbodyEvenRowBackground:"#dde09d",tbodyOddRowBackground:"#f2f5cc",bordercolor:"#000",bind:{url:"",id:"",fields:[]},help:"github.com/xinglie/report-designer/issues/24",columns:{}}),props:[{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:a.bM,write:a.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:a.bM,write:a.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:d.c_},{tip:"dG",key:"bind",type:d.bT,json:1,max:-1,_fZ:()=>y("getFieldUrl"),write(e,t){var i;let s=t.columns||{},r={...s};for(let e in s)delete s[e];for(let t of e.fields)s[t.id]=null!==(i=r[t.id])&&void 0!==i?i:o.bK(c._gy);return e}},{tip:"eR",key:"columns",type:d.bU,min:()=>o.bK(20),max:()=>o.bK(300),_ep(e,t){let{columns:i}=e;for(let e in i)i[e]=o.cC(i[e],t)},_c5(e,t,i){let{columns:s}=e;for(let e in s)s[e]*=t;i&&(i.columns=s)},read(e){let t={};for(let i in e)t[i]=a.bM(e[i]);return t},write(e){let t={};for(let i in e)t[i]=a.bR(e[i]);return t},json:1},{tip:"eS",min:0,key:"tfootSpacing",type:d.bJ,step:o.bV,fixed:o.cy,read:a.bM,write:a.bR,_c6:1,json:1},{type:d.c_},{tip:"eT",type:d.bW,write(e,t){f(t,e)}},{tip:"d9",key:"bordercolor",type:d.bK,json:1},{tip:"eU",key:"cellAlign",type:d.bQ,items:[{text:"eV",value:"left"},{text:"eW",value:"center"},{text:"eX",value:"right"}],json:1},{tip:"eY",min:()=>o.bK(25),max:()=>o.bK(100),step:o.bV,fixed:o.cy,key:"theadRowHeight",type:d.bJ,_c6:1,read:a.bM,write:a.bR,json:1},{tip:"eZ",min:()=>o.bK(25),max:()=>o.bK(100),_c6:1,key:"tbodyRowHeight",type:d.bJ,step:o.bV,fixed:o.cy,read:a.bM,write:a.bR,json:1},{tip:"eb",min:()=>o.bK(12),max:()=>o.bK(100),_c6:1,key:"theadFontsize",type:d.bJ,step:o.bV,fixed:o.cy,read:a.bM,write:a.bR,json:1},{tip:"d5",key:"theadForecolor",type:d.bK,json:1},{tip:"ec",key:"theadRowBackground",type:d.bK,clear:1,alpha:1,json:1},{tip:"ed",min:()=>o.bK(12),max:()=>o.bK(100),_c6:1,step:o.bV,fixed:o.cy,key:"tbodyFontsize",type:d.bJ,read:a.bM,write:a.bR,json:1},{tip:"d5",key:"tbodyForecolor",type:d.bK,json:1},{tip:"e0",key:"tbodyEvenRowBackground",type:d.bK,clear:1,alpha:1,json:1},{tip:"e1",key:"tbodyOddRowBackground",type:d.bK,clear:1,alpha:1,json:1},{type:d.c_},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/data-coltable/dshow",["1h"],((e,t,i)=>{let s,o,r=e("1h");i.exports=r.View.extend({tmpl:(e,t,i)=>{let r,d,l,a,n,c,p,h,{props:b,unit:g}=e;if(p=[],b.bind&&b.bind.fields&&b.bind.fields.length){n=[];for(let e=b.bind.fields,i=e.length,s=0;s<i;s+=1){let i=e[s];l=[t(0,i.name)],a=[t("div",{class:"db",style:"height:"+b.theadRowHeight+g+";line-height:"+b.theadRowHeight+g+";font-size:"+b.theadFontsize+g+";color:"+b.theadForecolor},l)],d="width:"+b.columns[i.id]+g+";border-color:"+b.bordercolor+";text-align:"+b.cellAlign+";",b.theadRowBackground&&(d+="background:"+b.theadRowBackground),n.push(t("th",{class:"c7 d_",style:d},a))}if(c=[t("tr",0,n)],p.push(t("thead",0,c)),c=[],b.bind)if(b.bind._tip)l=[t(0,b.bind._tip)],a=[t("div",{class:"db",style:"height:"+b.loadingHeight+g+";line-height:"+b.loadingHeight+g+";font-size:"+b.theadFontsize+g},l)],n=[t("td",{class:"c7 co dF d_ dy",colspan:b.bind.fields.length,style:"border-color:"+b.bordercolor},a)],c.push(t("tr",0,n));else for(let e=b.bind._data,i=e.length,s=0;s<i;s+=1){let i=e[s];n=[];for(let e=b.bind.fields,o=e.length,r=0;r<o;r+=1){l=[t(0,i[e[r].id])],a=[t("div",{class:"db",style:"height:"+b.tbodyRowHeight+g+";line-height:"+b.tbodyRowHeight+g+";font-size:"+b.tbodyFontsize+g+";color:"+b.tbodyForecolor},l)],d="text-align:"+b.cellAlign+";border-color:"+b.bordercolor+";",s%2&&b.tbodyOddRowBackground?d+="background:"+b.tbodyOddRowBackground:s%2==0&&b.tbodyEvenRowBackground&&(d+="background:"+b.tbodyEvenRowBackground),n.push(t("td",{class:"c7 d_",style:d},a))}c.push(t("tr",0,n))}p.push(t("tbody",0,c))}else l=[s||(s=t(0,"\u7ed1\u5b9a\u6570\u636e"))],a=[t("div",{class:"db",style:"height:"+b.theadRowHeight+g+";line-height:"+b.theadRowHeight+g+";font-size:"+b.theadFontsize+g+";color:"+b.theadForecolor},l)],d="text-align:"+b.cellAlign+";border-color:"+b.bordercolor+";",b.theadRowBackground&&(d+="background:"+b.theadRowBackground),n=[t("th",{class:"c7 d_",style:d},a)],c=[t("tr",0,n)],p.push(t("thead",0,c)),l=[o||(o=t(0,"\u8bf7\u5148\u7ed1\u5b9a\u6570\u636e"))],a=[t("div",{class:"db",style:"height:"+b.tbodyRowHeight+g+";line-height:"+b.tbodyRowHeight+g+";font-size:"+b.tbodyFontsize+g+";color:"+b.tbodyForecolor},l)],d="text-align:"+b.cellAlign+";border-color:"+b.bordercolor+";",b.tbodyOddRowBackground&&(d+="background:"+b.tbodyOddRowBackground),n=[t("td",{class:"c7 d_",style:d},a)],c=[t("tr",0,n)],p.push(t("tbody",0,c));return h=[t("table",{class:"c9 cj",style:"table-layout:fixed;border-color:"+b.bordercolor},p),t("div",{style:"background-color:#f5f5f560;height:"+b.tfootSpacing+g})],r=[t("div",{class:"cr dR",style:"left:"+b.x+g+";top:"+b.y+g+";opacity:"+b.alpha+";width:"+b.width+g},h)],t(i,0,r)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/data-coltable/index",["1h"],((e,t,i)=>{let s,o,r=e("1h");i.exports=r.View.extend({tmpl:(e,t,i)=>{let r,d,l,a,n,c,p,h,{props:b,unit:g}=e;if(p=[],b.bind&&b.bind.fields&&b.bind.fields.length){n=[];for(let e=b.bind.fields,i=e.length,s=0;s<i;s+=1){let i=e[s];l=[t(0,i.name)],a=[t("div",{class:"db",style:"height:"+b.theadRowHeight+g+";line-height:"+b.theadRowHeight+g+";font-size:"+b.theadFontsize+g+";color:"+b.theadForecolor},l)],d="width:"+b.columns[i.id]+g+";border-color:"+b.bordercolor+";text-align:"+b.cellAlign+";",b.theadRowBackground&&(d+="background:"+b.theadRowBackground),n.push(t("th",{class:"c7 d_",style:d},a))}if(c=[t("tr",0,n)],p.push(t("thead",0,c)),c=[],b.bind)if(b.bind._tip)l=[t(0,b.bind._tip)],a=[t("div",{class:"db",style:"height:"+b.loadingHeight+g+";line-height:"+b.loadingHeight+g+";font-size:"+b.theadFontsize+g},l)],n=[t("td",{class:"c7 co dF d_ dy",colspan:b.bind.fields.length,style:"border-color:"+b.bordercolor},a)],c.push(t("tr",0,n));else for(let e=b.bind._data,i=e.length,s=0;s<i;s+=1){let i=e[s];n=[];for(let e=b.bind.fields,o=e.length,r=0;r<o;r+=1){l=[t(0,i[e[r].id])],a=[t("div",{class:"db",style:"height:"+b.tbodyRowHeight+g+";line-height:"+b.tbodyRowHeight+g+";font-size:"+b.tbodyFontsize+g+";color:"+b.tbodyForecolor},l)],d="text-align:"+b.cellAlign+";border-color:"+b.bordercolor+";",s%2&&b.tbodyOddRowBackground?d+="background:"+b.tbodyOddRowBackground:s%2==0&&b.tbodyEvenRowBackground&&(d+="background:"+b.tbodyEvenRowBackground),n.push(t("td",{class:"c7 d_",style:d},a))}c.push(t("tr",0,n))}p.push(t("tbody",0,c))}else l=[s||(s=t(0,"\u7ed1\u5b9a\u6570\u636e"))],a=[t("div",{class:"db",style:"height:"+b.theadRowHeight+g+";line-height:"+b.theadRowHeight+g+";font-size:"+b.theadFontsize+g+";color:"+b.theadForecolor},l)],d="text-align:"+b.cellAlign+";border-color:"+b.bordercolor+";",b.theadRowBackground&&(d+="background:"+b.theadRowBackground),n=[t("th",{class:"c7 d_",style:d},a)],c=[t("tr",0,n)],p.push(t("thead",0,c)),l=[o||(o=t(0,"\u8bf7\u5148\u7ed1\u5b9a\u6570\u636e"))],a=[t("div",{class:"db",style:"height:"+b.tbodyRowHeight+g+";line-height:"+b.tbodyRowHeight+g+";font-size:"+b.tbodyFontsize+g+";color:"+b.tbodyForecolor},l)],d="text-align:"+b.cellAlign+";border-color:"+b.bordercolor+";",b.tbodyOddRowBackground&&(d+="background:"+b.tbodyOddRowBackground),n=[t("td",{class:"c7 d_",style:d},a)],c=[t("tr",0,n)],p.push(t("tbody",0,c));return h=[t("table",{class:"c9 cj",style:"table-layout:fixed;border-color:"+b.bordercolor},p)],r=[t("div",{class:"cr dR",style:"left:"+b.x+g+";top:"+b.y+g+";opacity:"+b.alpha+";width:"+b.width+g},h)],t(i,0,r)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/data-ftable/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/table","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../../24/table"),n=e("../2u"),{State:c,config:p}=s,{max:h}=Math,b=["width","height"],g=(e,t,i)=>{if(e&&e.length){let s,o=0;if(!i)for(let{props:{bind:t}}of e)t&&t.id&&(o++,s=t);if(1!=o||t.id)for(let{props:{bind:i}}of e)i&&i.id!=t.id&&(i.id="",i.fields&&(i.fields.length=0),i.url="");else t.id=s.id,t.url=s.url}},y=({focusRow:e,focusCol:t})=>e>-1&&t>-1;i.exports=n.extend({ctor(){this.set({view:"27/data-ftable/dshow"})}}).static({type:"data-ftable",as:r.bJ|r.bN,title:"fh",icon:"",_dd:r.bW|r.bZ|r.b2,_cC:{root:1},_cA:{barcode:1,circle:1,"data-celltable":1,image:1,line:1,qrcode:1,rect:1,repeat:1,text:1,rate:1,heat:1,cprogress:1},_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_da(e,t,i,s){let{bind:o,rows:r}=e;if(o&&!o.id){let e=t.props.bind,s=0;for(let t of r){if(t.data&&s==i){o.id=e.id,o.url=e.url;break}s++}}},_gF(e,t){let{rows:i}=e,s=0;for(let e of i){if(e.data)return s==t;s++}},_cF(e,t){let{borderwidth:i,tfootSpacing:s,rows:r,borderdeed:d,hideFoot:l,hideTotal:n,hideHead:c,hideLabel:p,bind:b}=e;a.bJ(e,!0);let y=a.bK(e),f=0,x=0;for(let e of y._gp)x+=e;let _,u,m,k,w,v,j,K,R,J,M,L,S=y._gq,X=S.length,V=0,Y=0,F=s,C=0,T=0;for(let i=0;i<X;i++){let s=r[i],o=S[i];if(s.label&&!m?(u=f,m=f):s.data?w=f-m:u?!s.total&&V&&T++:C++,f+=o,s.data?(e.tipTop=f+o,f+=2*o,j=f-w-m):s.total?V+=o:V&&(Y+=o),s.data)for(let e of s.cols)e.elements&&e.elements.length&&g(e.elements,b,t)}f+=s;let z=o.bK(1);"separate"==d?(M=f+2*(y._gq.length+3)*z,L=x+2*(y._gp.length+2)*z,_=4*z,m+=2*(C-1)*z,c?(M-=m+2*z,k=_,e.tipTop-=m+z):k=_+m+2*z,p?(v=k,M-=w+2*z,e.tipTop-=w+z):v=k+w,j+=4*z,n?(M-=V+2*z,V=j,K=v):K=v+j+2*z,Y+=2*(T-1)*z,l?(M-=Y+2*z,R=K,Y=V):R=K+V+2*z,J=R+Y,m-=4*z,w-=4*z,j-=4*z,V-=4*z,Y-=4*z):(M=f+i,L=x+i,_=i+z,c?(M-=m,k=_,e.tipTop-=m):(k=_+m,m-=i+2*z),p?(v=k,M-=w,e.tipTop-=w):(v=k+w-2*z,w-=i+2*z),n?(M-=V,K=v,V=j):K=v+j,l?(M-=Y,R=K,Y=V):R=K+V,J=R+Y,j-=i+2*z,V-=i+2*z,Y-=i+2*z),e.width=L,e.height=M,e.headStart=_,e.headHeight=m,e.labelStart=k,e.labelHeight=w,e.bodyStart=v,e.bodyHeight=j,e.totalStart=K,e.totalHeight=V,e.footStart=R,e.footHeight=Y,e.spacingStart=J,e.spacingHeight=h(F,0)},_c4(e,t){let i={height:o.bK(30),width:o.bK(150),rowspan:1,colspan:1,bLeft:!0,bTop:!0,bRight:!0,bBottom:!0};return{x:o.bK(e),y:o.bK(t),alpha:1,autoHeight:!0,columnsPrint:!1,hspace:o.bK(20),borderwidth:o.bK(1),bordercolor:"#000",bordertype:"solid",borderdeed:"collapse",focusRow:-1,focusCol:-1,tfs:o.bK(16),tfootSpacing:o.bK(30),hideTotal:!1,hideFoot:!1,hideHead:!1,hideLabel:!1,headFirst:!0,footLast:!0,dynamicCols:!0,avgDynamicColsWidth:"percent",bind:{url:"",id:""},rows:[{cols:[{...i,elements:[]},{...i,elements:[]},{...i,elements:[]}]},{label:!0,cols:[{...i,elements:[]},{...i,elements:[]},{...i,elements:[]}]},{data:!0,cols:[{...i,elements:[]},{...i,elements:[]},{...i,elements:[]}]},{total:!0,cols:[{...i,elements:[]},{...i,elements:[]},{...i,elements:[]}]},{cols:[{...i,elements:[]},{...i,elements:[]},{...i,elements:[]}]}],locked:!1}},props:[{key:"tfs",_c6:1},{key:"rows",_e5(e,{rows:t}){l.bZ(e,t,b)},_ep({rows:e},t){l.b0(e,t,b)},_c5(e,t,i){l.bY(e,t,b,i)}},{key:"bind",json:1},{tip:"dz",type:d.bJ,key:"x",_c6:1,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,json:1},{tip:"dA",type:d.bJ,key:"y",_c6:1,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,json:1},{tip:"dB",key:"width",read:l.bM,type:d.bV,json:1},{tip:"dC",key:"height",read:l.bM,type:d.bV,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"fi",key:"bind",type:d.bQ,textKey:"name",valueKey:"id",_e5(e,t){e.bind=t.bind},read:({id:e})=>e,write(e,{bind:t}){let i=c.get("b3"),s=i&&i[e];return t.id=e,s&&(t.url=s.url),t},items:()=>c.get("b2")||[],_fZ:()=>p("getFieldUrl")},{tip:"eG",type:d.cm,_gr:1,dataPad:2},{type:d.c_},{tip:"d7",key:"borderwidth",_c6:1,type:d.bJ,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,min:0,max:()=>o.bK(10),json:1},{tip:"d8",key:"bordertype",type:d.bQ,items:o.cv,json:1},{tip:"d9",key:"bordercolor",type:d.bK,json:1},{tip:"eH",key:"borderdeed",type:d.bQ,items:[{text:"eI",value:"collapse"},{text:"eJ",value:"separate"}],json:1},{tip:"eS",min:0,_c6:1,key:"tfootSpacing",type:d.bJ,step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,json:1},{type:d.c_},{tip:"e3",key:"headFirst",type:d.bL,json:1},{tip:"e4",key:"footLast",json:1,type:d.bL},{tip:"e5",key:"hideHead",type:d.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.label){r=o;break}o++}return i<r&&(t.focusRow=-1,t.focusCol=-1),e}},{tip:"fj",key:"hideLabel",type:d.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.label){r=o;break}o++}return i==r&&(t.focusRow=-1,t.focusCol=-1),e}},{tip:"fk",key:"hideTotal",type:d.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.total){r=o;break}o++}return i==r&&(t.focusRow=-1,t.focusCol=-1),e}},{tip:"e9",key:"hideFoot",type:d.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.total){r=o;break}o++}return i>r&&(t.focusRow=-1,t.focusCol=-1),e}},{type:d.c_},{tip:"fl",json:1,key:"autoHeight",type:d.bL},{tip:"f_",key:"dynamicCols",type:d.bL,json:1},{tip:"fa",key:"avgDynamicColsWidth",type:d.bQ,items:[{text:"fb",value:"percent"},{text:"fc",value:"direct"},{text:"fd",value:"none"}],json:1,_fZ:({dynamicCols:e})=>e},{tip:"fe",key:"columnsPrint",type:d.bL,json:1},{tip:"dT",type:d.bJ,json:1,key:"hspace",min:0,_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,max:()=>o.bK(200),_fZ:({columnsPrint:e})=>e},{type:d.c_,_fZ:y},{tip:"eK",type:d.b1,_gr:1,_fZ:y},{tip:"eL",type:d.cd,_fZ:y},{tip:"eM",type:d.cl,_gr:1,_fZ:y},{type:d.c_},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/data-ftable/dshow",["1h","../../1g/1j","../../1o/1p/index","../../24/31"],((e,t,i)=>{let s,o,r,d,l,a,n,c,p={class:"cr ct d1 dR dc dh"},h=e("1h"),b=e("../../1g/1j"),g=e("../../1o/1p/index"),y=e("../../24/31"),{View:f}=h;i.exports=f.extend({tmpl:(e,t,i,h,b,g,y)=>{let f,x,_,u,m,k,w,v,j,K,R,{props:J,unit:M,selectRect:L,srRow:S,srCol:X,element:V,fs:Y,selected:F,count:C,fieldRow:T,fieldCol:z,grouped:B,toPx:A,i18n:O}=e;R=[],_="";let N=Math.max,P=Math.min;_+=" ";let I=J.borderwidth,W=J.bordertype,Z=J.bordercolor,H=J.borderdeed,$=(J.rows,J.readonly);_+=" ";let U=("collapse"==H?1:2)*I;j=[],_="";let E=0;_+=" ";let Q=0;for(let e=J.rows,o=e.length,r=0;r<o;r+=1){let o=e[r];if(o.label&&(Q=1),(!o.total||!J.hideTotal)&&(!E||!J.hideFoot)&&(Q||!J.hideHead)&&(!o.label||!J.hideLabel)){v=[];for(let e=o.cols,d=e.length,l=0;l<d;l+=1){let d=e[l];if(w=[],m=[],d.elements&&d.elements.length)for(let e=d.elements,s=e.length,o=0;o<s;o+=1){let s=e[o];m.push(t("div",{"mx5-owner":i,$:"props,fs,unit",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+g(b,s,"a;."+r+".a:."+l+".a-."+o+".a+")+"&fs="+g(b,Y,"b_")+"&ownerId=_rd_h_"+h(V.id)+"_"+h(r)+"_"+h(l)+"&maskId=_rd_hm_"+h(V.id)+"_"+h(r)+"_"+h(l)+"&unit="+g(b,M,"ba"),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+g(b,s,"a;."+r+".a:."+l+".a-."+o+".a+")+"',maskId:'_rd_hm_"+y(V.id)+"_"+y(r)+"_"+y(l)+"'})"}))}if(w.push(t("div",{class:"cj ck cs dA","data-as":"hod",id:"_rd_hm_"+V.id+"_"+r+"_"+l},m)),!Y&&!J.locked){let e=J.focusRow==r&&J.focusCol==l&&F&&1==C;if(m=[],e&&!B){_="";let e=P(26,A(d.height)-6)-4;_+=" ";let s=P(26,A(d.width)-6)-4;_+=" ";let o=(A(d.height)-e-U)/2-1;_+=" ";let r=(A(d.width)-s-U)/2-1;m.push(t("div",{class:"cr cu dd eb",style:"height:"+N(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:O("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+N(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:O("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+N(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:O("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+N(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:O("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'tm'})"}))}u="cr dh dR ct",e&&(u+=" dc"),T==r&&z==l&&(u+=" dj"),k="",e&&(d.bLeft||(k+="border-left-style:dotted;"),d.bTop||(k+="border-top-style:dotted;"),d.bRight||(k+="border-right-style:dotted;"),d.bBottom||(k+="border-bottom-style:dotted;")),w.push(t("div",{id:"_rd_dm_"+V.id+"_"+r+"_"+l,class:u,style:k},m))}!$&&!Y&&d.elements&&d.elements.length&&(m=[s||(s=t(0,"\ue647"))],w.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:O("ff")},m))),L&&S==r&&X==l&&w.push(t("div",{class:"cr ct dP",style:"display:block;left:"+L.x+"px;top:"+L.y+"px;width:"+L.width+"px;height:"+L.height+"px"})),u="d_ c7 eb",o.data&&(u+=" da"),L&&S==r&&X==l&&(u+=" dA"),v.push(t("td",{colspan:null!=(f=d.colspan)&&f,rowspan:null!=(f=d.rowspan)&&f,style:"position:relative;width:"+d.width+M+";height:"+d.height+M+";border-left:"+(I?W:"dotted")+" "+I+M+" "+(I&&d.bLeft?Z:"#ddd6")+";border-top:"+(I?W:"dotted")+" "+I+M+" "+(I&&d.bTop?Z:"#ddd6")+";border-right:"+(I?W:"dotted")+" "+I+M+" "+(I&&d.bRight?Z:"#ddd6")+";border-bottom:"+(I?W:"dotted")+" "+I+M+" "+(I&&d.bBottom?Z:"#ddd6"),"mx5-pointerdown":i+"\x1e_gw({row:"+r+",col:"+l+",elm:1})",id:"_rd_h_"+V.id+"_"+r+"_"+l,"mx5-contextmenu":i+"\x1e_gC({row:"+r+",col:"+l+"})",class:u},w))}j.push(t("tr",0,v))}if(o.data)for(let e=0;e<2;e++){v=[];for(let e=o.cols,i=e.length,s=0;s<i;s+=1){let i=e[s];v.push(t("td",{class:"c7 d_",style:"position:relative;width:"+i.width+M+";height:"+i.height+M+";border-left:"+(I?W:"dotted")+" "+I+M+" "+(I&&i.bLeft?Z:"#ddd6")+";border-top:"+(I?W:"dotted")+" "+I+M+" "+(I&&i.bTop?Z:"#ddd6")+";border-right:"+(I?W:"dotted")+" "+I+M+" "+(I&&i.bRight?Z:"#ddd6")+";border-bottom:"+(I?W:"dotted")+" "+I+M+" "+(I&&i.bBottom?Z:"#ddd6")+";background:#eeeeee80",colspan:null!=(f=i.colspan)&&f,rowspan:null!=(f=i.rowspan)&&f}))}j.push(t("tr",0,v))}o.total&&(E=1)}if(K=[t("tbody",0,j)],R.push(t("table",{class:"c9 cj",style:"border-collapse:"+H},K)),!Y&&J.tfootSpacing){if(K=[],F&&!J.locked&&1==C&&-2==J.focusRow&&-2==J.focusCol){j=[t("div",{class:"cr cu df eb",style:"width:22px;left:"+((A(J.width)-22-U)/2-1)+"px;cursor:ns-resize",title:O("fg"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'bm'})"})],K.push(t("div",p,j))}R.push(t("div",{class:"cs dQ eb",style:"height:"+J.tfootSpacing+M,"mx5-pointerdown":i+"\x1e_gw({row:-2,col:-2})"},K))}if(K=[o||(o=t(0,"\u91cd\u590d\u6570\u636e\u884c"))],R.push(t("div",{class:"cj co cr dy",style:"top:"+J.tipTop+M+";left:0;font-size:"+J.tfs+M+";transform:translateY(-50%)"},K)),!Y&&F&&1==C){let e=A(J.headHeight);J.hideHead||(K=[t("path",{d:"M10 0C0 0 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],R.push(t("svg",{style:"left:-15px;top:"+J.headStart+M+";width:15px;height:"+e+"px",class:"cr ct dB"},K)),K=[r||(r=t(0,"\u5934"))],R.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+A(J.headStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},K))),J.hideLabel||(e=A(J.labelHeight),K=[t("path",{d:"M10 0C0 0 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],R.push(t("svg",{style:"left:-15px;top:"+J.labelStart+M+";width:15px;height:"+e+"px",class:"cr ct dB"},K)),K=[d||(d=t(0,"\u8868\u5934"))],R.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+A(J.labelStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},K))),e=A(J.bodyHeight),K=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],R.push(t("svg",{style:"left:-15px;top:"+J.bodyStart+M+";width:15px;height:"+e+"px",class:"cr ct dB"},K)),K=[l||(l=t(0,"\u6570\u636e"))],R.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+A(J.bodyStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},K)),J.hideTotal||(e=A(J.totalHeight),K=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],R.push(t("svg",{style:"left:-15px;top:"+J.totalStart+M+";width:15px;height:"+e+"px",class:"cr ct dB"},K)),K=[a||(a=t(0,"\u8868\u5c3e"))],R.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+A(J.totalStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},K))),J.hideFoot||(e=J.footHeight,e>0&&(e=A(e),K=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],R.push(t("svg",{style:"left:-15px;top:"+J.footStart+M+";width:15px;height:"+e+"px",class:"cr ct dB"},K)),K=[n||(n=t(0,"\u5c3e"))],R.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+A(J.footStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},K)))),_="",e=J.spacingHeight,_+=" ",e=A(e),e>3&&(K=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],R.push(t("svg",{style:"left:-15px;top:"+J.spacingStart+M+";width:15px;height:"+e+"px",class:"cr ct dB"},K)),K=[c||(c=t(0,"\u7559\u767d"))],R.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+A(J.spacingStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},K)))}return x=[t("div",{class:"cr dR",style:"left:"+J.x+M+";top:"+J.y+M+";opacity:"+J.alpha+";width:"+J.width+M+";height:"+J.height+M},R)],t(i,0,x)},init(){this.set({toPx:b.bX,toUnit:b.bK,fieldRow:-1,fieldCol:-1})},assign(e){this.set(e)},render(){this.digest()}}).merge(g,y)})),define("27/data-ftable/index",["1h","../../1g/1j","../../24/format"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../24/format"),d=r._ge.bind(r),l=e=>(e+="").length?e[0].toUpperCase()+e.substring(1):e;i.exports=s.View.extend({tmpl:(e,t,i,s,o,r)=>{let d,l,a,n,c,p,h,b,g,{props:y,unit:f}=e;l="",l+=" ";let x=y.borderwidth,_=y.bordertype,u=y.bordercolor,m=y.borderdeed,k=y.rows,w=y.bind;l+=" ";c=[];for(let e=k.length,d=0;d<e;d+=1){let e=k[d];if(!e.label&&!b&&w._showHead||e.label&&!y.hideLabel||e.data||e.total&&!y.hideTotal||g&&w._showFoot){n=[];for(let l=e.cols,c=l.length,p=0;p<c;p+=1){let e=l[p];if(a=[],w._tip)a.push(t(0,w._tip));else if(e.elements&&e.elements.length)for(let l=e.elements,n=l.length,c=0;c<n;c+=1){let e=l[c];a.push(t("div",{"mx5-owner":i,$:"props","mx5-view":"27/"+e.type+"/index?props="+r(o,e.props,"a;."+d+".a:."+p+".a-."+c+".a+")+"&unit="+s(f)}))}n.push(t("td",{class:"c7 dA d_",colspan:1!=e.colspan&&e.colspan,rowspan:1!=e.rowspan&&e.rowspan,style:"position:relative;width:"+e.width+f+";height:"+e.height+f+";border-left:"+(x?_:"dotted")+" "+x+f+" "+(x&&e.bLeft?u:"#0000")+";border-top:"+(x?_:"dotted")+" "+x+f+" "+(x&&e.bTop?u:"#0000")+";border-right:"+(x?_:"dotted")+" "+x+f+" "+(x&&e.bRight?u:"#0000")+";border-bottom:"+(x?_:"dotted")+" "+x+f+" "+(x&&e.bBottom?u:"#0000")},a))}c.push(t("tr",0,n))}e.total?g=1:e.label&&(b=1)}return p=[t("tbody",0,c)],h=[t("table",{class:"c9 cj",style:"border-collapse:"+m},p)],d=[t("div",{class:"cr dR",style:"left:"+y.x+f+";top:"+y.y+f+";opacity:"+y.alpha+";width:"+y.width+f},h)],t(i,0,d)},init(){this.set({format:d,toPx:o.bX,toUnit:o.bK,ftu:l})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/data-repeater/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/cell","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../../24/cell"),n=e("../2u"),{State:c,config:p}=s,h=["width","height","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"],b=(e,t,i)=>{if(e&&e.length){let s,o=0;if(!i)for(let{props:{bind:t}}of e)t&&t.id&&(o++,s=t);if(1!=o||t.id)for(let{props:{bind:i}}of e)i&&i.id!=t.id&&(i.id="",i.fields&&(i.fields.length=0),i.url="");else t.id=s.id,t.url=s.url}};i.exports=n.extend({ctor(){this.set({view:"27/data-repeater/dshow"})}}).static({type:"data-repeater",as:r.bJ|r.bN,title:"fm",icon:"",_dd:r.bW|r.bZ,_cC:{root:1},_cA:{barcode:1,image:1,qrcode:1,text:1,repeat:1,line:1,rect:1,circle:1,rate:1,heat:1,cprogress:1},_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_da(e,t){let i=e.bind;if(i&&!i.id){let e=t.props.bind;i.id=e.id,i.url=e.url}},_cF(e,t){let{rows:i,bind:s}=e,o=0,r=0;for(let e of i){let i=0;for(let o of e.cols)i+=o.width,b(o.elements,s,t);i>r&&(r=i),o+=e.height}e.width=r,e.height=o},_c4:(e,t)=>({x:o.bK(e),y:o.bK(t),alpha:1,focusRow:-1,focusCol:-1,bind:{id:"",url:"",fields:[]},hspace:o.bK(20),vspace:o.bK(20),rows:[{height:o.bK(a._gG),cols:[{width:o.bK(a._gH),elements:[],borderLeftStyle:"solid",borderLeftWidth:0,borderLeftTopRadius:0,borderRightTopRadius:0,borderLeftBottomRadius:0,borderRightBottomRadius:0,borderLeftColor:"#000",borderTopStyle:"solid",borderTopWidth:0,borderTopColor:"#000",borderRightStyle:"solid",borderRightWidth:0,borderRightColor:"#000",borderBottomStyle:"solid",borderBottomWidth:0,borderBottomColor:"#000"}]}],locked:!1}),props:[{key:"rows",_e5(e,{rows:t}){l.bZ(e,t,h)},_ep({rows:e},t){l.b0(e,t,h)},_c5(e,t,i){l.bY(e,t,h,i)}},{tip:"dz",type:d.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dA",type:d.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dB",key:"width",read:l.bM,type:d.bV,json:1},{tip:"dC",key:"height",read:l.bM,type:d.bV,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"fi",key:"bind",type:d.bQ,textKey:"name",valueKey:"id",_e5(e,t){e.bind=t.bind},read:({id:e})=>e,write(e,{bind:t}){let i=c.get("b3"),s=i&&i[e];return t.id=e,s&&(t.url=s.url),t},items:()=>c.get("b2")||[],_fZ:()=>p("getFieldUrl")},{type:d.c_},{tip:"dT",type:d.bJ,json:1,key:"hspace",min:0,_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,max:()=>o.bK(200)},{tip:"dU",type:d.bJ,json:1,key:"vspace",min:0,_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,max:()=>o.bK(200)},{type:d.c_,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eK",type:d.bZ,_gr:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:d.bY,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:d.c_},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/data-repeater/dshow",["1h","../../1g/1j","../../1o/1p/index","../../24/31","../../24/hodflex"],((e,t,i)=>{let s,o={class:"cF"},r=e("1h"),d=e("../../1g/1j"),l=e("../../1o/1p/index"),a=e("../../24/31"),n=e("../../24/hodflex"),{View:c}=r;i.exports=c.extend({tmpl:(e,t,i,r,d,l,a)=>{let n,c,p,h,b,g,y,f,{props:x,unit:_,selectRect:u,srRow:m,srCol:k,element:w,fs:v,selected:j,count:K,grouped:R,toPx:J,i18n:M}=e;f=[];let L=Math.max,S=Math.min;for(let e=x.rows,n=e.length,X=0;X<n;X+=1){let n=e[X];y=[];for(let e=n.cols,o=e.length,f=0;f<o;f+=1){let o=e[f];g=[],p=[];for(let e=o.elements,s=e.length,n=0;n<s;n+=1){let s=e[n];p.push(t("div",{"mx5-owner":i,$:"props,fs,unit",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"&fs="+l(d,v,"b_")+"&ownerId=_rd_h_"+r(w.id)+"_"+r(X)+"_"+r(f)+"&maskId=_rd_hm_"+r(w.id)+"_"+r(X)+"_"+r(f)+"&unit="+l(d,_,"ba"),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"',maskId:'_rd_hm_"+a(w.id)+"_"+a(X)+"_"+a(f)+"'})"}))}if(g.push(t("div",{class:"cj ck cs dA","data-as":"hod","mx5-contextmenu":i+"\x1e_gC({row:"+X+",col:"+f+"})",id:"_rd_hm_"+w.id+"_"+X+"_"+f},p)),!v&&!x.locked){let e=x.focusRow==X&&x.focusCol==f&&j&&1==K;if(p=[],e&&!R){b="";let e=S(26,J(n.height)-2)-4;b+=" ";let s=S(26,J(o.width)-2)-4;b+=" ";let r=(J(n.height)-e)/2-2;b+=" ";let d=(J(o.width)-s)/2-2;p.push(t("div",{class:"cr cu dd eb",style:"height:"+L(e,0)+"px;top:"+r+"px;cursor:ew-resize",title:M("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+L(e,0)+"px;top:"+r+"px;cursor:ew-resize",title:M("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+L(s,0)+"px;left:"+d+"px;cursor:ns-resize",title:M("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+L(s,0)+"px;left:"+d+"px;cursor:ns-resize",title:M("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'tm'})"}))}h="cr dh dR ct",e&&(h+=" dc"),c="",e&&(c+="border-top-style:"+o.borderTopStyle+";border-right-style:"+o.borderRightStyle+";border-bottom-style:"+o.borderBottomStyle+";border-left-style:"+o.borderLeftStyle),g.push(t("div",{id:"_rd_dm_"+w.id+"_"+X+"_"+f,class:h,style:c},p))}!x.readonly&&!v&&o.elements&&o.elements.length&&(p=[s||(s=t(0,"\ue647"))],g.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:M("ff")},p))),u&&m==X&&k==f&&g.push(t("div",{class:"cr ct dP",style:"display:block;left:"+u.x+"px;top:"+u.y+"px;width:"+u.width+"px;height:"+u.height+"px"})),c="position:relative;height:"+n.height+_+";width:"+o.width+_+";border-top:"+o.borderTopStyle+" "+o.borderTopWidth+_+" "+o.borderTopColor+";border-right:"+o.borderRightStyle+" "+o.borderRightWidth+_+" "+o.borderRightColor+";border-bottom:"+o.borderBottomStyle+" "+o.borderBottomWidth+_+" "+o.borderBottomColor+";border-left:"+o.borderLeftStyle+" "+o.borderLeftWidth+_+" "+o.borderLeftColor+";border-radius:"+o.borderLeftTopRadius+_+" "+o.borderRightTopRadius+_+" "+o.borderRightBottomRadius+_+" "+o.borderLeftBottomRadius+_+";",u&&m==X&&k==f&&(c+="overflow:hidden"),y.push(t("div",{"mx5-pointerdown":i+"\x1e_gw({row:"+X+",col:"+f+",elm:1})",id:"_rd_h_"+w.id+"_"+X+"_"+f,class:"eb",style:c},g))}f.push(t("div",o,y))}return n=[t("div",{class:"cF cG cr dR",style:"left:"+x.x+_+";top:"+x.y+_+";opacity:"+x.alpha+";width:"+x.width+_+";height:"+x.height+_},f)],t(i,0,n)},init(){this.set({toPx:d.bX,toUnit:d.bK})},assign(e){this.set(e)},render(){this.digest()}}).merge(l,a,n)})),define("27/data-repeater/index",["1h"],((e,t,i)=>{let s={class:"cF"},o=e("1h");i.exports=o.View.extend({tmpl:(e,t,i,o,r,d)=>{let l,a,n,c,{props:p,unit:h}=e;c=[];for(let e=p.rows,o=e.length,l=0;l<o;l+=1){let o=e[l];n=[];for(let e=o.cols,s=e.length,c=0;c<s;c+=1){let s=e[c];a=[];for(let e=s.elements,o=e.length,n=0;n<o;n+=1){let s=e[n];a.push(t("div",{"mx5-owner":i,$:"props,unit","mx5-view":"27/"+s.type+"/index?props="+d(r,s.props,"a;."+l+".a:."+c+".a-."+n+".a+")+"&unit="+d(r,h,"b_")}))}n.push(t("div",{class:"cj ck cs dA",style:"height:"+o.height+h+";width:"+s.width+h+";border-top:"+s.borderTopStyle+" "+s.borderTopWidth+h+" "+s.borderTopColor+";border-right:"+s.borderRightStyle+" "+s.borderRightWidth+h+" "+s.borderRightColor+";border-bottom:"+s.borderBottomStyle+" "+s.borderBottomWidth+h+" "+s.borderBottomColor+";border-left:"+s.borderLeftStyle+" "+s.borderLeftWidth+h+" "+s.borderLeftColor+";border-radius:"+s.borderLeftTopRadius+h+" "+s.borderRightTopRadius+h+" "+s.borderRightBottomRadius+h+" "+s.borderLeftBottomRadius+h},a))}c.push(t("div",s,n))}return l=[t("div",{class:"cF cG cr dR",style:"left:"+p.x+h+";top:"+p.y+h+";opacity:"+p.alpha+";width:"+p.width+h+";height:"+p.height+h},c)],t(i,0,l)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/data-richtext/designer",["1h","../../1g/1j","../../1g/props","../../1g/1k","../2u","../../1g/21"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u"),a=e("../../1g/21"),{config:n}=s;i.exports=l.extend({ctor(){this.set({view:"27/data-richtext/dshow"})}}).static({type:"data-richtext",title:"fn",icon:"",_cC:{root:1},_dd:a.bR|a.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",height:o.bK(30),alpha:1,text:"",tfs:o.bK(14),x:o.bK(e),y:o.bK(t),width:o.bK(300),help:"//github.com/xinglie/report-designer/issues/50",bind:{url:"",id:"",fields:[]}}),props:[{key:"tfs",_c6:1},{key:"height",_c6:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{tip:"dG",key:"bind",type:r.bT,json:1,max:1,_fZ:()=>n("getFieldUrl")},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/data-richtext/dshow",["1h","../../24/2v"],((e,t,i)=>{let s={class:"cF ct dA"},o=e("1h"),r=e("../../24/2v"),{View:d}=o;i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d,l,a,{enter:n,props:c,unit:p,text:h,i18n:b}=e;return l=[],h?l.push(t(0,h)):(d=[t(0,b("dV"))],l.push(t("span",{style:"font-size:"+c.tfs+p},d))),a=[t("div",s,l)],r="cr dR",n&&(r+=" dj"),o=[t("div",{style:"left:"+c.x+p+";top:"+c.y+p+";opacity:"+c.alpha+";width:"+c.width+p+";height:"+c.height+p,"mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:r},a)],t(i,0,o)},_f0:({text:e,_df:t})=>e||t,assign(e){this.set(e);let{props:t}=e,{text:i,bind:s}=t;if(s.id){i=`[\u7ed1\u5b9a:${s.fields[0].name}]`}this.set({text:i})},render(){this.digest()}}).merge(r)})),define("27/flow/designer",["1h","../../1g/1j","../../1g/21","../../1g/22","../../1g/1k","../../1o/1p/index","../../1o/1q/cursor","../../24/33"],((e,t,i)=>{let s,o,r={value:"value"},d=e("1h"),l=e("../../1g/1j"),a=e("../../1g/21"),n=e("../../1g/22"),c=e("../../1g/1k"),p=e("../../1o/1p/index"),h=e("../../1o/1q/cursor"),b=e("../../24/33"),{has:g,node:y,State:f,View:x,taskFinale:_}=d;i.exports=x.extend({tmpl:(e,t,i,d,l,a,n)=>{let c,p,h,b,g,y,f=[],{element:x,forceShowLinks:_,selected:u,count:m,grouped:k,selfGrouped:w,view:v,unit:j,fs:K,toPx:R,denum:J,cursor:M,i18n:L,current:S,startX:X,startY:V,solid:Y,sameOwner:F,isSelf:C,linkKey:T}=e;c="";let z=x.props,B=x.ctrl,A=x.id;c+=" ";let O=z.readonly||_;c+=" ";let N=!z.locked&&u&&1==m&&!k&&!w;if(p="cz",O&&(p+=" ct"),f.push(t("div",{"mx5-owner":i,$:"element,unit","mx5-view":v+"?props="+a(l,z,"a;")+"&unit="+a(l,j,"a:")+"&eId="+d(A),class:p})),!K){z.rotate;g=[],z.locked&&(s?g.push(s):(b=[t(0,"\ue63e")],g.push(s=t("i",{_:"a;",class:"bJ cM cr dF dL dy"},b)))),!z.locked&&u&&(o?g.push(o):g.push(o=t("div",{_:"a:",class:"cr fv"}))),h="left:"+z.x+j+";top:"+z.y+j+";width:"+z.width+j+";height:"+z.height+j,z.rotate&&(h+=";transform:rotate("+z.rotate+"deg)"),p="dR cr cz fw",z.locked&&(p+=" dA"),u&&(z.locked?p+=" fz":p+=" fx",w&&(p+=" fB")),k&&(z.locked?p+=" fy":p+=" fA"),O&&(p+=" ct"),f.push(t("div",{id:"_rdm_"+x.id,style:h,class:p},g)),g=[];let e=R(z.width),d=R(z.height);if(N&&!_&&B._dd){B._dd&J.bO&&z._df&&(b=[t("textarea",{"data-as":"da","mx5-pointerdown":i+"\x1e_fn()","mx5-contextmenu":i+"\x1e_fn()",id:"_rd_ta_"+i,class:"bO cj ck eb","mx5-input":i+"\x1e_gW()","mx5-keyup":i+"\x1e_gX()",style:"font-size:"+z.textFontsize+j,value:z.text},0,r)],g.push(t("foreignObject",{x:1,y:1,width:e-2,height:d-2},b))),c="";let s=Math.min,o=Math.max;c+=" ";let l=o(s(40,d)-10,0);c+=" ";let a=o(s(40,e)-10,0);c+=" ";let n=(d-l)/2;c+=" ";let p=(e-a)/2;c+=" ";let h=z.rotate;B._dd&J.bR&&g.push(t("rect",{x:-2,y:n,rx:2,ry:2,width:4,height:l,class:"eb fN",style:"cursor:"+M(h,0)+"-resize",title:L("fG"),"mx5-pointerover":i+"\x1e_gS()","mx5-pointerout":i+"\x1e_gU()","mx5-pointerdown":i+"\x1e_gI({key:'ml'})"},1),t("rect",{x:e-2,y:n,rx:2,ry:2,width:4,height:l,class:"eb fN",style:"cursor:"+M(h,0)+"-resize",title:L("fG"),"mx5-pointerover":i+"\x1e_gS()","mx5-pointerout":i+"\x1e_gU()","mx5-pointerdown":i+"\x1e_gI({key:'mr'})"},1)),B._dd&J.bS&&g.push(t("rect",{x:p,y:-2,rx:2,ry:2,width:a,height:4,class:"eb fN",style:"cursor:"+M(h,90)+"-resize",title:L("fH"),"mx5-pointerover":i+"\x1e_gS()","mx5-pointerout":i+"\x1e_gU()","mx5-pointerdown":i+"\x1e_gI({key:'tm'})"},1),t("rect",{x:p,y:d-2,rx:2,ry:2,width:a,height:4,class:"eb fN",style:"cursor:"+M(h,90)+"-resize",title:L("fH"),"mx5-pointerover":i+"\x1e_gS()","mx5-pointerout":i+"\x1e_gU()","mx5-pointerdown":i+"\x1e_gI({key:'bm'})"},1)),B._dd&J.bO&&g.push(t("path",{d:"M"+e/2+" -10L"+e/2+" 0",class:"fT"},1),t("circle",{r:3.5,cx:e/2,cy:-14,class:"c3 cu eb fM fO","mx5-pointerdown":i+"\x1e_gY()","mx5-pointerover":i+"\x1e_gS()","mx5-pointerout":i+"\x1e_gU()",title:L("fI")},1))}if(_&&S&&(p="ct fT",Y&&(p+=" fU"),g.push(t("path",{d:"M"+R(X-z.x)+" "+R(V-z.y)+"L"+(S.x-R(z.x))+" "+(S.y-R(z.y)),class:p},1))),N){if(B._gN){let e=B._gN(z);if(e.length){y="";for(let t=0,i=e.length;t<i;t+=1){let i=e[t];y+="M"==i||"L"==i?""+i:R(z[i+"X"]-z.x)+" "+R(z[i+"Y"]-z.y)}g.push(t("path",{class:"fV",d:y},1))}}if(B._gO)for(let e=B._gO(z),s=e.length,o=0;o<s;o+=1){let s=e[o];p="fO cu c3 eb",s==z._gQ&&(p+=" fS"),g.push(t("circle",{"mx5-pointerdown":i+"\x1e_gZ({key:'"+n(s)+"'})",r:3,cx:R(z[s+"X"]-z.x),cy:R(z[s+"Y"]-z.y),"mx5-pointerover":i+"\x1e_gS()","mx5-pointerout":i+"\x1e_gU()",title:L("fJ"),class:p},1))}}if(!z.readonly&&!z.locked&&B._gJ)for(let e=B._gJ,s=e.length,o=0;o<s;o+=1){let s=e[o];!F||C&&s!=T||(p="fO cu c3 fY eb",_||u||(p+=" fW"),g.push(t("rect",{"mx5-pointerover":i+"\x1e_gT({key:'"+n(s)+"'})","mx5-pointerout":i+"\x1e_gV({key:'"+n(s)+"'})","mx5-pointerdown":i+"\x1e_gR({key:'"+n(s)+"'})",x:R(z[s+"X"]-z.x)-4,y:R(z[s+"Y"]-z.y)-4,width:8,height:8,title:L("fK"),class:p},1)))}g.push(t("title",{id:"_rd_t_"+i})),p="fX cr",p+=N?" dW":" dR",p+=" dB",O&&(p+=" ct"),h="left:"+z.x+j+";top:"+z.y+j+";width:"+z.width+j+";height:"+z.height+j,z.rotate&&(h+=";transform:rotate("+z.rotate+"deg)"),f.push(t("svg",{class:p,style:h},g))}return t(i,0,f)},ctor(){this.set({denum:a,toPx:l.bX});let e=e=>{this._gP(e)&&this.render()},t=()=>{let e=f.get("b7"),t=this.get("element");if(e&&e.src==t.id){let t=f.get("b8"),i=!1;t&&t.src!=e.src&&(i=!0),this.digest({solid:i})}};f.on("cb",e),f.on("cc",t),this.on("destroy",(()=>{f.off("cb",e),f.off("cc",t)}))},_gP(){let e=n.bN(),t=f.get("bK").length,i=this.get("element");if(i){let s=this.get("ownerId"),o=i.id,r=f.get("bR")[o],d=0;if(!e[o]&&r)for(let t of r)if(e[t]){d=1;break}let l=g(e,o);if(!l){i.props._gQ="",i.props._df=0;let e=this.root;for(;e&&"_rd_sc"!=e.id;){if(e.dataset&&"hod"==e.dataset.as){e.scrollTop=0,e.scrollLeft=0;break}e=e.parentNode}}let a=f.get("b7");return this.set({selfGrouped:r,forceShowLinks:a&&a.ownerId==s,sameOwner:!a||a.ownerId==s,isSelf:a&&a.src==o,linkKey:a&&a.key,grouped:d,selected:l,count:t}),!0}},async render(){await this.digest();let e=y(`_rd_ta_${this.id}`);e&&(e.focus(),e.selectionStart=e.value.length)},"_gR<pointerdown>"(e){e._d4=1;let t=this,i=t.get("element"),{id:s,props:o}=i,r=this.get("ownerId"),{key:d}=e.params;f.set({b7:{src:s,key:d,ownerId:r}}),f.fire("bY",{show:1,size:1}),f.fire("cb");let a=c.bP(t.root,{x:e.pageX,y:e.pageY,f:1});this.set({solid:!1,startX:o[d+"X"],startY:o[d+"Y"]});let{rotate:n,x:p,y:b,width:g,height:y}=o;g=l.bX(g),y=l.bX(y),p=l.bX(p),b=l.bX(b);let x,u,m={x:p+g/2,y:b+y/2},k=async()=>{let e=u.pageX,i=u.pageY;a=c.bP(t.root,{x:e,y:i,f:1});let s=c.bS(a,m),o=c.bU(a,m,s-n);this.digest({current:o}),x&&!x.bL&&(x.bL=1,await _(),x.bM())},w=e=>{x=e,k()};h._dh("crosshair"),f.on("bZ",w),t._ci(e,(e=>{f.fire("b0",e),u=e,k()}),(()=>{this.digest({current:0}),f.off("bZ",w),f.fire("b1");let e=f.get("b8");e&&e.src!=s&&f.fire("cd",{from:{id:s,key:d,ownerId:r},to:{id:e.src,key:e.key}}),h._ck(),f.set({b7:null,b8:null}),f.fire("bY",{hide:1}),f.fire("cb")}))},"_gT<pointerover>"(e){if(f.get("b7")){let t=this.get("element");f.set({b8:{src:t.id,key:e.params.key}}),f.fire("cc")}else this["_gS<pointerover>"](e)},"_gV<pointerout>"(e){this["_gU<pointerout>"](e),f.get("b8")&&(f.set({b8:null}),f.fire("cc"))}}).merge(p,b)})),define("27/flow/index",["1h","../../1g/1v","../index","./annotation/designer","./card/designer","./connector/designer","./data/designer","./database/designer","./decision/designer","./display/designer","./document/designer","./estore/designer","./istore/designer","./looplimit/designer","./manual/designer","./moperation/designer","./pageref/designer","./parallel/designer","./prepare/designer","./process/designer","./qdata/designer","./ref/designer","./subprocess/designer","./tape/designer","./terminator/designer"],((e,t,i)=>{let s,o=e("1h"),r=e("../../1g/1v"),d=e("../index"),l=e("./annotation/designer"),a=e("./card/designer"),n=e("./connector/designer"),c=e("./data/designer"),p=e("./database/designer"),h=e("./decision/designer"),b=e("./display/designer"),g=e("./document/designer"),y=e("./estore/designer"),f=e("./istore/designer"),x=e("./looplimit/designer"),_=e("./manual/designer"),u=e("./moperation/designer"),m=e("./pageref/designer"),k=e("./parallel/designer"),w=e("./prepare/designer"),v=e("./process/designer"),j=e("./qdata/designer"),K=e("./ref/designer"),R=e("./subprocess/designer"),J=e("./tape/designer"),M=e("./terminator/designer"),{Vframe:L,State:S,node:X,toMap:V}=o,Y=e=>"flow/connector"==e,F=e=>{let{from:t,to:i}=e,o=t.key,r=i.key,d=t.ownerId;s=1,S.set({bW:[{ctrl:n,first:1,silent:1,props:{linkFromId:t.id,linkFromKey:o,linkToId:i.id,linkToKey:r,lineType:"polyline",endArrow:2}}]}),S.fire("b4",{pageX:0,pageY:0,node:"s"==d?null:X(d)})},C=e=>{if(s){let{_dm:t,_bK:i}=e;if(i._bL||i._bM||i._bN||i.x||i.y||i.width||i.height||i.rotate){let e,{bJ:i}=r.bO();for(let s of i){let{props:i,type:o,ctrl:r,id:d}=s;if(Y(o)&&(e=1,t[i.linkFromId]||t[i.linkToId])){r._cF(i);let e=X(d);if(e){let t=L.byNode(e);t&&t.invoke("_cG",s)}}}e||(s=0)}}},T=e=>{if("_dZ"==e._cB){let{bJ:t}=r.bO(),i={};for(let{props:s,id:o,type:r}of t)Y(r)&&(e._d1[s.linkFromId]||e._d1[s.linkToId])&&(i[o]=1);r.bQ(i)}else s=1},z=()=>s=1;S.set({bU:{bO(){S.on("cd",F),S.on("bL",C),S.on("bW",T),S.on("bO",z),S.on("bX",z)},bP(){S.off("cd",F),S.off("bL",C),S.off("bW",T),S.off("bO",z),S.off("bX",z)},bL(e,t){let i=V(e,"id"),s=[];for(let o of e){let{type:e,props:r}=o;(!Y(e)||!t&&i[r.linkFromId]&&i[r.linkToId])&&s.push(o)}return s},bK(e){let t=V(e,"id"),i=[],{bJ:s}=r.bO();for(let e of s){let{type:s,props:o,id:r}=e;(Y(s)&&t[o.linkFromId]&&t[o.linkToId]||!Y(s)&&t[r])&&i.push(e)}return i},bM(e){let t={};for(let{type:i,props:s,id:o}of e)Y(i)&&(t[s.linkFromId]=1,t[s.linkToId]=1,t[o]=1);return t},bN(e,t){for(let{type:i,props:s,ctrl:o}of e)Y(i)&&(s.linkFromId=t[s.linkFromId],s.linkToId=t[s.linkToId],o._cF(s))},bJ:e=>e&&Y(e.type)}}),i.exports=()=>{d.bL(l,a,n,c,p,h,b,g,y,f,x,_,u,m,k,w,v,j,K,R,J,M),d.bM({icon:"",title:"\u6d41\u7a0b\u56fe",subs:[{ctrl:v},{ctrl:h},{ctrl:M},{ctrl:c},{ctrl:g},{ctrl:R},{ctrl:_},{ctrl:K},{ctrl:f},{ctrl:a},{ctrl:u},{ctrl:k},{ctrl:w},{ctrl:p},{ctrl:y},{ctrl:j},{ctrl:J},{ctrl:m},{ctrl:b},{ctrl:x},{ctrl:l}]})}})),define("27/data-dtable/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/cell","../../24/table","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../../24/cell"),a=e("../../24/table"),n=e("../2u"),{max:c}=Math,p=["width","height","paddingLeft","paddingTop","paddingBottom","paddingRight","textFontsize","textLetterspacing"],h=e=>{let{focusRow:t,focusCol:i,rows:s}=e,o=!1;if(i>-1&&i>-1){o=!0;let e=s[t].cols[i];e&&e.elements&&e.elements.length&&(o=!1)}return o},b=({focusRow:e,focusCol:t})=>e>-1&&t>-1;i.exports=n.extend({ctor(){this.set({view:"27/data-dtable/dshow"})}}).static({type:"data-dtable",as:o.bJ,title:"e2",icon:"",_dd:o.bW|o.bZ|o.b2,_cC:{root:1},_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{borderwidth:t,tfootSpacing:i,rows:o,borderdeed:r,hideFoot:d,hideTotal:l,hideHead:n,hideLabel:p}=e;a.bJ(e,!0);let h=a.bK(e),b=0,g=0;for(let e of h._gp)g+=e;let y,f,x,_,u,m,k,w,v,j,K,R,J=h._gq,M=J.length,L=0,S=0,X=i,V=0,Y=0;for(let t=0;t<M;t++){let i=o[t],s=J[t];i.label&&!x?(f=b,x=b):i.data?u=b-x:f?L&&Y++:V++,b+=s,i.data?(e.tipTop=b+s,b+=2*s,k=b-u-x):i.total?L=s:L&&(S+=s)}b+=i;let F=s.bK(1);"separate"==r?(K=b+2*(h._gq.length+3)*F,R=g+2*(h._gp.length+2)*F,y=4*F,x+=2*(V-1)*F,n?(K-=x+2*F,_=y,e.tipTop-=x+F):_=y+x+2*F,p?(m=_,K-=u+2*F,e.tipTop-=u+F):m=_+u,k+=4*F,l?(K-=L+2*F,L=k,w=m):w=m+k+2*F,S+=2*(Y-1)*F,d?(K-=S+2*F,v=w,S=L):v=w+L+2*F,j=v+S,x-=4*F,u-=4*F,k-=4*F,L-=4*F,S-=4*F):(K=b+t,R=g+t,y=t+F,n?(K-=x,_=y,e.tipTop-=x):(_=y+x,x-=t+2*F),p?(m=_,K-=u,e.tipTop-=u):(m=_+u-2*F,u-=t+2*F),l?(K-=L,w=m,L=k):w=m+k,d?(K-=S,v=w,S=L):v=w+L,j=v+S,k-=t+2*F,L-=t+2*F,S-=t+2*F),e.width=R,e.height=K,e.headStart=y,e.headHeight=x,e.labelStart=_,e.labelHeight=u,e.bodyStart=m,e.bodyHeight=k,e.totalStart=w,e.totalHeight=L,e.footStart=v,e.footHeight=S,e.spacingStart=j,e.spacingHeight=c(X,0)},_gm(e){let{rows:t,bind:i}=e,s=[];for(let e of t)for(let t of e.cols)t.bindKey&&s.push({id:t.bindKey,name:t.bindName});return{id:i.id,fields:s}},_c4(e,t){let i={...{height:s.bK(30),width:s.bK(150),rowspan:1,colspan:1,paddingLeft:s.bK(5),paddingTop:s.bK(5),paddingRight:s.bK(5),paddingBottom:s.bK(5),bLeft:!0,bTop:!0,bRight:!0,bBottom:!0,hpos:"flex-start",vpos:"flex-start",alpha:1},type:"text",...l.text};return i.textFontsize=s.bK(i.textFontsize),{x:s.bK(e),y:s.bK(t),alpha:1,borderwidth:s.bK(1),bordercolor:"#000",bordertype:"solid",borderdeed:"collapse",focusRow:-1,focusCol:-1,columnsPrint:!1,hspace:s.bK(20),tfs:s.bK(16),tfootSpacing:s.bK(30),hideTotal:!1,hideFoot:!1,hideHead:!1,hideLabel:!1,eachPageLabel:!0,headFirst:!0,footLast:!0,dynamicCols:!0,avgDynamicColsWidth:"percent",bind:{url:"",id:""},help:"github.com/xinglie/report-designer/issues/26",rows:[{cols:[{...i,textAutoReturn:!1,elements:[]},{...i,textAutoReturn:!1,elements:[]},{...i,textAutoReturn:!1,elements:[]}]},{label:!0,cols:[{...i,elements:[]},{...i,elements:[]},{...i,elements:[]}]},{data:!0,cols:[{...i},{...i},{...i}]},{total:!0,cols:[{...i},{...i},{...i}]},{cols:[{...i,elements:[]},{...i,elements:[]},{...i,elements:[]}]}],locked:!1}},props:[{key:"tfs",_c6:1},{key:"rows",_e5(e,{rows:t}){d.bZ(e,t,p)},_ep({rows:e},t){d.b0(e,t,p)},_c5(e,t,i){d.bY(e,t,p,i)}},{key:"bind",json:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,json:1},{tip:"dB",key:"width",read:d.bM,type:r.bV,json:1},{tip:"dC",key:"height",read:d.bM,type:r.bV,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"eG",type:r.cm,_gr:1,dataPad:2},{type:r.c_},{tip:"d7",key:"borderwidth",type:r.bJ,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,min:0,max:()=>s.bK(10),json:1},{tip:"d8",key:"bordertype",type:r.bQ,items:s.cv,json:1},{tip:"d9",key:"bordercolor",type:r.bK,json:1},{tip:"eH",key:"borderdeed",type:r.bQ,items:[{text:"eI",value:"collapse"},{text:"eJ",value:"separate"}],json:1},{tip:"eS",min:0,key:"tfootSpacing",type:r.bJ,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{type:r.c_},{tip:"e3",key:"headFirst",type:r.bL,json:1},{tip:"e4",key:"footLast",json:1,type:r.bL},{tip:"e5",key:"hideHead",type:r.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.label){r=o;break}o++}return i<r&&(t.focusRow=-1,t.focusCol=-1),e}},{tip:"e6",key:"hideLabel",type:r.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.label){r=o;break}o++}return i==r&&(t.focusRow=-1,t.focusCol=-1),e}},{tip:"e7",key:"eachPageLabel",type:r.bL,json:1},{tip:"e8",key:"hideTotal",type:r.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.total){r=o;break}o++}return i==r&&(t.focusRow=-1,t.focusCol=-1),e}},{tip:"e9",key:"hideFoot",type:r.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.total){r=o;break}o++}return i>r&&(t.focusRow=-1,t.focusCol=-1),e}},{type:r.c_},{tip:"f_",key:"dynamicCols",type:r.bL,json:1},{tip:"fa",key:"avgDynamicColsWidth",type:r.bQ,items:[{text:"fb",value:"percent"},{text:"fc",value:"direct"},{text:"fd",value:"none"}],json:1,_fZ:({dynamicCols:e})=>e},{tip:"fe",key:"columnsPrint",type:r.bL,json:1},{tip:"dT",type:r.bJ,json:1,key:"hspace",min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,max:()=>s.bK(200),_fZ:({columnsPrint:e})=>e},{type:r.c_,_fZ:b},{tip:"eK",type:r.b1,_gr:1,_fZ:b},{tip:"eL",type:r.cd,_fZ:b},{tip:"eM",type:r.cb,_gr:1,_fZ:b},{type:r.c_,_fZ:h},{type:r.cc,_fZ:h},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/data-dtable/dshow",["1h","../../1g/1j","../../1o/1p/index","../../24/31","../../24/32","../subs/barcode","../subs/qrcode"],((e,t,i)=>{let s,o,r,d,l,a,n,c,p,h,b,g,y,f,x,_,u;e("../subs/barcode"),e("../subs/qrcode");let m={class:"bJ cr ct dE dK dN dy"},k={class:"cC"},w={class:"cr ct d1 dR dc dh"},v={value:"value"},j=e("1h"),K=e("../../1g/1j"),R=e("../../1o/1p/index"),J=e("../../24/31"),M=e("../../24/32"),{View:L}=j;i.exports=L.extend({tmpl:(e,t,i,j,K,R,J)=>{let M,L,S,X,V,Y,F,C,T,z,B,A,O,{props:N,unit:P,selectRect:I,srRow:W,srCol:Z,element:H,fs:$,toUnit:U,i18n:E,selected:Q,count:q,fieldRow:D,fieldCol:G,grouped:ee,toPx:te}=e;O=[],S="";let ie=Math.max,se=Math.min;S+=" ";let oe=N.borderwidth,re=N.bordertype,de=N.bordercolor,le=N.borderdeed,ae=(N.rows,N.readonly);S+=" ";let ne=("collapse"==le?1:2)*oe;B=[],S="";let ce=0;S+=" ";let pe=0;for(let e=N.rows,b=e.length,g=0;g<b;g+=1){let b=e[g];if(b.label&&(pe=1),(!b.total||!N.hideTotal)&&(!ce||!N.hideFoot)&&(pe||!N.hideHead)&&(!b.label||!N.hideLabel)){z=[];for(let e=b.cols,y=e.length,f=0;f<y;f+=1){let y=e[f];S="";let x=y[y.type+"Content"];S+=" ";let _=y.elements&&y.elements.length;S+=" ";let u=_||!x&&(1==ce||!pe);S+=" ";let w=!_&&!b.data&&"text"==y.type;if(T=[],C=[],y.elements&&y.elements.length)for(let e=y.elements,s=e.length,o=0;o<s;o+=1){let s=e[o];C.push(t("div",{"mx5-owner":i,$:"props,fs,unit",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+R(K,s,"a;."+g+".a:."+f+".a-."+o+".a+")+"&fs="+R(K,$,"b_")+"&ownerId=_rd_h_"+j(H.id)+"_"+j(g)+"_"+j(f)+"&maskId=_rd_hm_"+j(H.id)+"_"+j(g)+"_"+j(f)+"&unit="+R(K,P,"ba"),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+R(K,s,"a;."+g+".a:."+f+".a-."+o+".a+")+"',maskId:'_rd_hm_"+J(H.id)+"_"+J(g)+"_"+J(f)+"'})"}))}else{!$&&y.type&&(S="","text"==y.type?S+=" \ue6bc ":"image"==y.type?S+=" \ue650 ":"barcode"==y.type?S+=" \ue6c8 ":"qrcode"==y.type&&(S+=" \ue61c "),Y=[t(0,S)],C.push(t("i",m,Y))),S="";let e=y.paddingTop,h=y.paddingBottom,x=y.paddingLeft,_=y.paddingRight;S+=" ";let u=y.width-ne-U(1),w=y.height-ne-U(1);e>w&&(e=w),e+h>w&&(h=w-e),x>u&&(x=u),x+_>u&&(_=u-x),Y=[],y.bindKey?($||N.locked||(F=[s||(s=t(0,"\ue6b3"))],Y.push(t("i",{class:"bJ c3 cr dE dK dM dx eb","mx5-pointerdown":i+"\x1e2\x1e_fn()","mx5-click":i+"\x1e_gv({row:"+g+",col:"+f+"})",title:E("eN")},F))),Y.push(t(0,"[\u7ed1\u5b9a:"+y.bindName+"]")),y.type||Y.push(o||(o=t(0,"\uff0c\u672a\u6307\u5b9a\u683c\u5b50\u5185\u5bb9")))):"text"==y.type?(b.data||(V="width:calc(100% - "+(x+_)+P+");text-align:","center"==y.hpos?V+="center":"flex-end"==y.hpos?V+="right":V+="left",Y.push(t("input",{as:"d-input",class:"bN cr d8",value:y.textContent,"mx5-input":i+"\x1e_gD({cell:'"+R(K,y,"a;."+g+".a:."+f+".bb")+"',key:'textContent'})","mx5-focusin":i+"\x1e_gE({row:"+g+",col:"+f+"})",style:V},1,v))),y.textContent&&(F=[t(0,y.textContent,1)],Y.push(t("div",k,F)))):"image"==y.type?y.imageContent&&(V="",(y.imageRotateX||y.imageRotateY)&&(V+=";transform:",y.imageRotateX&&(V+="rotateX(180deg)"),y.imageRotateY&&(V+=" rotateY(180deg)")),Y.push(t("img",{class:"b8 cl cm",src:y.imageContent,style:V},1))):"barcode"==y.type?y.barcodeContent&&Y.push(t("div",{"mx5-owner":i,class:"cF",style:"height:"+(w-e-h)+P+";align-items:"+y.vpos,"mx5-view":"27/subs/barcode?lineColor="+j(y.barcodeColor)+"&lineWidth="+j(y.barcodeLineWidth)+"&showText="+j(y.barcodeShowText)+"&format="+j(y.barcodeFormat)+"&value="+j(y.barcodeContent)})):"qrcode"==y.type?y.qrcodeContent&&Y.push(t("div",{"mx5-owner":i,style:"height:"+(w-e-h)+P,"mx5-view":"27/subs/qrcode?vpos="+j(y.vpos)+"&value="+j(y.qrcodeContent)})):"sum"==y.type?r?Y.push(r):(F=[t(0,"[\u8ba1\u7b97:\u672c\u5355\u6c42\u548c]")],Y.push(r=t("div",{_:"a;",class:"cC"},F))):"sumpage"==y.type?d?Y.push(d):(F=[t(0,"[\u8ba1\u7b97:\u672c\u9875\u6c42\u548c]")],Y.push(d=t("div",{_:"a:",class:"cC"},F))):"acc"==y.type?l?Y.push(l):(F=[t(0,"[\u8ba1\u7b97:\u672c\u9875\u7d2f\u8ba1]")],Y.push(l=t("div",{_:"a-",class:"cC"},F))):"avg"==y.type?a?Y.push(a):(F=[t(0,"[\u8ba1\u7b97:\u672c\u5355\u5e73\u5747]")],Y.push(a=t("div",{_:"a+",class:"cC"},F))):"avgpage"==y.type?n?Y.push(n):(F=[t(0,"[\u8ba1\u7b97:\u672c\u9875\u5e73\u5747]")],Y.push(n=t("div",{_:"b_",class:"cC"},F))):"avgacc"==y.type?c?Y.push(c):(F=[t(0,"[\u8ba1\u7b97:\u7d2f\u8ba1\u5e73\u5747]")],Y.push(c=t("div",{_:"ba",class:"cC"},F))):"custom"==y.type?p?Y.push(p):(F=[t(0,"[\u8ba1\u7b97:\u81ea\u5b9a\u4e49\u51fd\u6570]")],Y.push(p=t("div",{_:"bb",class:"cC"},F))):(F=[t(0,y.type)],Y.push(t("div",k,F))),V="padding:"+e+P+" "+_+P+" "+h+P+" "+x+P+";width:"+u+P+";height:"+w+P+";align-items:"+y.vpos+";justify-content:"+y.hpos+";opacity:"+y.alpha+";",null!=y.textFontsize&&(V+="color:"+y.textForecolor+";letter-spacing:"+y.textLetterspacing+P+";",y.textStyleBold&&(V+="font-weight:bold;"),y.textStyleItalic&&(V+="font-style:italic;"),(y.textStyleUnderline||y.textStyleStrike||y.textStyleOverline)&&(V+="text-decoration:",y.textStyleStrike?V+="line-through":y.textStyleOverline?V+="overline":V+="underline",V+=";"),V+="font-family:"+y.textFontfamily+";font-size:"+y.textFontsize+P+";"),C.push(t("div",{class:"cF cs dA",style:V},Y))}if(T.push(t("div",{class:"cj ck cs dA","data-as":"hod",id:"_rd_hm_"+H.id+"_"+g+"_"+f},C)),!$&&!N.locked){let e=N.focusRow==g&&N.focusCol==f&&Q&&1==q;if(C=[],e&&!ee){S="";let e=se(26,te(y.height)-6)-4;S+=" ";let s=se(26,te(y.width)-6)-4;S+=" ";let o=(te(y.height)-e-ne)/2-1;S+=" ";let r=(te(y.width)-s-ne)/2-1;C.push(t("div",{class:"cr cu dd eb",style:"height:"+ie(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:E("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+ie(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:E("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+ie(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:E("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+ie(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:E("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'tm'})"}))}X="cr dh dR ct",e&&(X+=" dc"),D==g&&G==f&&(X+=" dj"),V="",e&&(y.bLeft||(V+="border-left-style:dotted;"),y.bTop||(V+="border-top-style:dotted;"),y.bRight||(V+="border-right-style:dotted;"),y.bBottom||(V+="border-bottom-style:dotted;")),T.push(t("div",{id:u&&"_rd_dm_"+H.id+"_"+g+"_"+f,class:X,style:V},C))}!ae&&!$&&y.elements&&y.elements.length&&(C=[h||(h=t(0,"\ue647"))],T.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:E("ff")},C))),I&&W==g&&Z==f&&T.push(t("div",{class:"cr ct dP",style:"display:block;left:"+I.x+"px;top:"+I.y+"px;width:"+I.width+"px;height:"+I.height+"px"})),X="d_ c7 eb",b.data&&(X+=" da"),I&&W==g&&Z==f&&(X+=" dA"),V="position:relative;width:"+y.width+P+";height:"+y.height+P+";border-left:"+(oe?re:"dotted")+" "+oe+P+" "+(oe&&y.bLeft?de:"#ddd6")+";border-top:"+(oe?re:"dotted")+" "+oe+P+" "+(oe&&y.bTop?de:"#ddd6")+";border-right:"+(oe?re:"dotted")+" "+oe+P+" "+(oe&&y.bRight?de:"#ddd6")+";border-bottom:"+(oe?re:"dotted")+" "+oe+P+" "+(oe&&y.bBottom?de:"#ddd6")+";",y.background&&(V+="background:"+y.background),z.push(t("td",{colspan:null!=(M=y.colspan)&&M,rowspan:null!=(M=y.rowspan)&&M,"mx5-pointerdown":i+"\x1e_gw({row:"+g+",col:"+f+",elm:"+u+",input:"+w+"})","mx5-dragenter":b.data&&i+"\x1e_g_({row:"+g+",col:"+f+"})","mx5-dragleave":b.data&&i+"\x1e_ga({row:"+g+",col:"+f+"})",id:u&&"_rd_h_"+H.id+"_"+g+"_"+f,"mx5-contextmenu":u&&i+"\x1e_gC({row:"+g+",col:"+f+"})",class:X,style:V},T))}B.push(t("tr",0,z))}if(b.data)for(let e=0;e<2;e++){z=[];for(let e=b.cols,i=e.length,s=0;s<i;s+=1){let i=e[s];T=[],T.push(t(0,N.bind._tip??"")),!$&&"text"==i.type&&i.bindKey&&(C=[t(0,i.textAutoReturn?"\u81ea\u52a8\u6362\u884c":"\u8d85\u957f\u7701\u7565")],T.push(t("span",{class:"bX cC ci co cr dE dK dO",style:"width:"+se(i.width-ne-U(5),U(48))+P},C))),V="position:relative;width:"+i.width+P+";height:"+i.height+P+";border-left:"+(oe?re:"dotted")+" "+oe+P+" "+(oe&&i.bLeft?de:"#ddd6")+";border-top:"+(oe?re:"dotted")+" "+oe+P+" "+(oe&&i.bTop?de:"#ddd6")+";border-right:"+(oe?re:"dotted")+" "+oe+P+" "+(oe&&i.bRight?de:"#ddd6")+";border-bottom:"+(oe?re:"dotted")+" "+oe+P+" "+(oe&&i.bBottom?de:"#ddd6")+";background:",i.background?V+=""+i.background:V+="#eeeeee80",z.push(t("td",{class:"c7 d_",colspan:null!=(M=i.colspan)&&M,rowspan:null!=(M=i.rowspan)&&M,style:V},T))}B.push(t("tr",0,z))}b.total&&(ce=1)}if(A=[t("tbody",0,B)],O.push(t("table",{class:"c9 cj",style:"border-collapse:"+le},A)),!$&&N.tfootSpacing){if(A=[],Q&&!N.locked&&1==q&&-2==N.focusRow&&-2==N.focusCol){B=[t("div",{class:"cr cu df eb",style:"width:22px;left:"+((te(N.width)-22-ne)/2-1)+"px;cursor:ns-resize",title:E("fg"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'bm'})"})],A.push(t("div",w,B))}O.push(t("div",{class:"cs dQ eb",style:"height:"+N.tfootSpacing+P,"mx5-pointerdown":i+"\x1e_gw({row:-2,col:-2})"},A))}if(A=[b||(b=t(0,"\u91cd\u590d\u6570\u636e\u884c"))],O.push(t("div",{class:"cj co cr dy",style:"top:"+N.tipTop+P+";left:0;font-size:"+N.tfs+P+";transform:translateY(-50%)"},A)),!$&&Q&&1==q){let e=te(N.headHeight);N.hideHead||(A=[t("path",{d:"M10 0C0 0 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],O.push(t("svg",{style:"left:-15px;top:"+N.headStart+P+";width:15px;height:"+e+"px",class:"cr ct dB"},A)),A=[g||(g=t(0,"\u5934"))],O.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+te(N.headStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},A))),N.hideLabel||(e=te(N.labelHeight),A=[t("path",{d:"M10 0C0 0 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],O.push(t("svg",{style:"left:-15px;top:"+N.labelStart+P+";width:15px;height:"+e+"px",class:"cr ct dB"},A)),A=[y||(y=t(0,"\u6807\u9898"))],O.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+te(N.labelStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},A))),e=te(N.bodyHeight),A=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],O.push(t("svg",{style:"left:-15px;top:"+N.bodyStart+P+";width:15px;height:"+e+"px",class:"cr ct dB"},A)),A=[f||(f=t(0,"\u6570\u636e"))],O.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+te(N.bodyStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},A)),N.hideTotal||(e=te(N.totalHeight),A=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],O.push(t("svg",{style:"left:-15px;top:"+N.totalStart+P+";width:15px;height:"+e+"px",class:"cr ct dB"},A)),A=[x||(x=t(0,"\u5408\u8ba1"))],O.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+te(N.totalStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},A))),N.hideFoot||(e=N.footHeight,e>0&&(e=te(e),A=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],O.push(t("svg",{style:"left:-15px;top:"+N.footStart+P+";width:15px;height:"+e+"px",class:"cr ct dB"},A)),A=[_||(_=t(0,"\u5c3e"))],O.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+te(N.footStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},A)))),S="",e=N.spacingHeight,S+=" ",e=te(e),e>3&&(A=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],O.push(t("svg",{style:"left:-15px;top:"+N.spacingStart+P+";width:15px;height:"+e+"px",class:"cr ct dB"},A)),A=[u||(u=t(0,"\u7559\u767d"))],O.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+te(N.spacingStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},A)))}return L=[t("div",{class:"cr dR",style:"left:"+N.x+P+";top:"+N.y+P+";opacity:"+N.alpha+";width:"+N.width+P+";height:"+N.height+P,"mx5-drop":i+"\x1e_gb()"},O)],t(i,0,L)},init(){this.set({toPx:K.bX,toUnit:K.bK,fieldRow:-1,fieldCol:-1})},assign(e){this.set(e)},render(){this.digest()}}).merge(R,J,M)})),define("27/data-dtable/index",["1h","../../1g/1j","../../24/format","../subs/barcode","../subs/qrcode"],((e,t,i)=>{e("../subs/barcode"),e("../subs/qrcode");let s=e("1h"),o=e("../../1g/1j"),r=e("../../24/format"),d=r._ge.bind(r),l=e=>(e+="").length?e[0].toUpperCase()+e.substring(1):e;i.exports=s.View.extend({tmpl:(e,t,i,s,o,r)=>{let d,l,a,n,c,p,h,b,g,y,f,x,{props:_,unit:u,toUnit:m,ftu:k,format:w}=e;l="",l+=" ";let v=_.borderwidth,j=_.bordertype,K=_.bordercolor,R=_.borderdeed,J=_.rows,M=_.bind;l+=" ";let L,S=("collapse"==R?1:2)*v;l+=" ",b=[];for(let e=J.length,d=0;d<e;d+=1){let e=J[d];if(e.label&&M._data&&M._data.length&&!_.hideLabel||!e.data&&!e.label&&!f&&M._showHead||x&&!_.hideFoot&&M._showFoot||e.total&&!_.hideTotal&&M._showAcc){h=[];for(let b=e.cols,g=b.length,y=0;y<g;y+=1){let g=b[y];if(p=[],M._tip)p.push(t(0,M._tip));else if(g.elements&&g.elements.length)for(let e=g.elements,l=e.length,a=0;a<l;a+=1){let l=e[a];p.push(t("div",{"mx5-owner":i,$:"props","mx5-view":"27/"+l.type+"/index?props="+r(o,l.props,"a;."+d+".a:."+y+".a-."+a+".a+")+"&unit="+s(u)}))}else{l="";let h=g.paddingTop,b=g.paddingBottom,f=g.paddingLeft,x=g.paddingRight;l+=" ";let _=g.width-S-m(1),v=Math.max(g.height-S-m(1),0);if(h>v&&(h=v),h+b>v&&(b=v-h),f>_&&(f=_),f+x>_&&(x=_-f),c=[],"text"==g.type)n=[t(0,g.textContent,1)],c.push(t("div",{class:!g.textAutoReturn&&"cC"},n));else if("image"==g.type)g.imageContent&&(a="",(g.imageRotateX||g.imageRotateY)&&(a+=";transform:",g.imageRotateX&&(a+="rotateX(180deg)"),g.imageRotateY&&(a+=" rotateY(180deg)")),c.push(t("img",{class:"b8 cl cm",src:g.imageContent,style:a},1)));else if("barcode"==g.type)g.barcodeContent&&c.push(t("div",{"mx5-owner":i,$:"props",class:"cF",style:"height:"+(v-h-b)+u+";align-items:"+g.vpos,"mx5-view":"27/subs/barcode?lineColor="+r(o,g.barcodeColor,"a;."+d+".a:."+y+".b_")+"&lineWidth="+r(o,g.barcodeLineWidth,"a;."+d+".a:."+y+".ba")+"&showText="+r(o,g.barcodeShowText,"a;."+d+".a:."+y+".bb")+"&format="+r(o,g.barcodeFormat,"a;."+d+".a:."+y+".bc")+"&value="+s(g.barcodeContent)}));else if("qrcode"==g.type)g.qrcodeContent&&c.push(t("div",{"mx5-owner":i,style:"height:"+(v-h-b)+u,"mx5-view":"27/subs/qrcode?vpos="+s(g.vpos)+"&value="+s(g.qrcodeContent)}));else if(e.total){l="";let e=L[y];l+=" ";let i=k(g.type);"text"==g.type?(n=[t(0,g.textContent)],c.push(t("div",{class:!g.textAutoReturn&&"cC"},n))):"custom"==g.type?(n=[t(0,w(g.textFormat,g.totalData,M._data,M._all))],c.push(t("div",{class:!g.textAutoReturn&&"cC"},n))):null!=g.totalData[e.bindKey+i]&&(n=[t(0,w(g.textFormat,g.totalData[e.bindKey+i],g.totalData))],c.push(t("div",{class:!g.textAutoReturn&&"cC"},n)))}a="padding:"+h+u+" "+x+u+" "+b+u+" "+f+u+";width:"+_+u+";",g.textAutoReturn&&(a+="min-"),a+="height:"+v+u+";align-items:"+g.vpos+";justify-content:"+g.hpos+";opacity:"+g.alpha+";",null!=g.textFontsize&&(a+="color:"+g.textForecolor+";letter-spacing:"+g.textLetterspacing+u+";",g.textStyleBold&&(a+="font-weight:bold;"),g.textStyleItalic&&(a+="font-style:italic;"),(g.textStyleUnderline||g.textStyleStrike||g.textStyleOverline)&&(a+="text-decoration:",g.textStyleStrike?a+="line-through":g.textStyleOverline?a+="overline":a+="underline",a+=";"),a+="font-family:"+g.textFontfamily+";font-size:"+g.textFontsize+u+";"),p.push(t("div",{class:"cF dA",style:a},c))}a="position:relative;width:"+g.width+u+";height:"+g.height+u+";border-left:"+(v?j:"dotted")+" "+v+u+" "+(v&&g.bLeft?K:"#0000")+";border-top:"+(v?j:"dotted")+" "+v+u+" "+(v&&g.bTop?K:"#0000")+";border-right:"+(v?j:"dotted")+" "+v+u+" "+(v&&g.bRight?K:"#0000")+";border-bottom:"+(v?j:"dotted")+" "+v+u+" "+(v&&g.bBottom?K:"#0000")+";",g.background&&(a+="background:"+g.background),h.push(t("td",{class:"c7 dA d_",colspan:1!=g.colspan&&g.colspan,rowspan:1!=g.rowspan&&g.rowspan,style:a},p))}b.push(t("tr",0,h))}if(e.data){if(L=e.cols,M._data){let o=M._rHeights;for(let r=M._data,d=r.length,g=0;g<d;g+=1){let d=r[g];h=[];let y=o&&o[g];for(let o=e.cols,r=o.length,b=0;b<r;b+=1){let e=o[b];if(p=[],M._tip)p.push(t(0,M._tip));else{l="";let o=e.paddingTop,r=e.paddingBottom,h=e.paddingLeft,b=e.paddingRight;l+=" ";let g,f=e.width-S,x=(y||e.height)-S;o>x&&(o=x),o+r>x&&(r=x-o),h>f&&(h=f),h+b>f&&(b=f-h),c=[],"text"==e.type?(e.bindKey&&(l="",g=d[e.bindKey],l+=" ",g=w(e.textFormat,g,d)),g&&(n=[t(0,g,1)],c.push(t("div",{class:!e.textAutoReturn&&"cC"},n)))):"image"==e.type?(e.bindKey&&(g=d[e.bindKey]),g&&(a="height:"+(x-o-r)+"px;",(e.imageRotateX||e.imageRotateY)&&(a+=";transform:",e.imageRotateX&&(a+="rotateX(180deg)"),e.imageRotateY&&(a+=" rotateY(180deg)")),c.push(t("img",{class:"b8 cl cm",src:g,style:a},1)))):"barcode"==e.type?(e.bindKey&&(g=d[e.bindKey]),g&&c.push(t("div",{"mx5-owner":i,class:"cF",style:"height:"+(x-o-r)+u+";align-items:"+e.vpos,"mx5-view":"27/subs/barcode?lineColor="+s(e.barcodeColor)+"&lineWidth="+s(e.barcodeLineWidth)+"&showText="+s(e.barcodeShowText)+"&format="+s(e.barcodeFormat)+"&value="+s(g)}))):"qrcode"==e.type?(e.bindKey&&(g=d[e.bindKey]),g&&c.push(t("div",{"mx5-owner":i,style:"height:"+(x-o-r)+u,"mx5-view":"27/subs/qrcode?vpos="+s(e.vpos)+"&value="+s(g)}))):e.bindKey&&c.push(t(0,"[\u672a\u6307\u5b9a\u6570\u636e\u5904\u7406\u65b9\u5f0f]"+g)),a="padding:"+o+u+" "+b+u+" "+r+u+" "+h+u+";width:"+f+u+";",e.textAutoReturn&&(a+="min-"),a+="height:"+x+u+";align-items:"+e.vpos+";justify-content:"+e.hpos+";opacity:"+e.alpha+";","text"==e.type&&(a+="color:"+e.textForecolor+";letter-spacing:"+e.textLetterspacing+u+";",e.textStyleBold&&(a+="font-weight:bold;"),e.textStyleItalic&&(a+="font-style:italic;"),(e.textStyleUnderline||e.textStyleStrike||e.textStyleOverline)&&(a+="text-decoration:",e.textStyleStrike?a+="line-through":e.textStyleOverline?a+="overline":a+="underline",a+=";"),a+="font-family:"+e.textFontfamily+";font-size:"+e.textFontsize+u+";"),p.push(t("div",{class:"cF dA",style:a},c))}a="position:relative;width:"+e.width+u+";border-left:"+(v?j:"dotted")+" "+v+u+" "+(v&&e.bLeft?K:"#0000")+";border-top:"+(v?j:"dotted")+" "+v+u+" "+(v&&e.bTop?K:"#0000")+";border-right:"+(v?j:"dotted")+" "+v+u+" "+(v&&e.bRight?K:"#0000")+";border-bottom:"+(v?j:"dotted")+" "+v+u+" "+(v&&e.bBottom?K:"#0000")+";",e.background&&(a+="background:"+e.background),h.push(t("td",{class:"c7 d_",colspan:1!=e.colspan&&e.colspan,rowspan:1!=e.rowspan&&e.rowspan,style:a},p))}b.push(t("tr",0,h))}}}else e.total?x=1:e.label&&(f=1)}return g=[t("tbody",0,b)],y=[t("table",{class:"c9 cj",style:"border-collapse:"+R},g)],d=[t("div",{class:"cr dR",style:"left:"+_.x+u+";top:"+_.y+u+";opacity:"+_.alpha+";width:"+_.width+u},y)],t(i,0,d)},init(){this.set({format:d,toPx:o.bX,toUnit:o.bK,ftu:l})},assign(e){this.set(e)},render(){this.digest()}})})),define("27/form-checkbox/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{guid:n,config:c}=s;i.exports=a.extend({ctor(){this.set({view:"27/form-checkbox/dshow"})}}).static({type:"form-checkbox",title:"f1",icon:"",_dd:r.bR|r.bS|r.bY|r.bW|r.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",height:o.bK(50),alpha:1,text:"",letterspacing:o.bK(0),inputName:n("rd-checkboxes-"),x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(200),rank:"row",items:[],overflow:"auto",bind:{url:"",id:"",fields:[]},itemSpace:o.bK(10),textSpace:o.bK(4),forecolor:"#000",fontsize:o.bK(14),fontfamily:"Microsoft YaHei",locked:!1}),props:[{tip:"dz",type:d.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dA",type:d.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dB",type:d.bJ,key:"width",_c6:1,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dC",key:"height",_c6:1,type:d.bJ,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_},{tip:"f2",key:"inputName",type:d.bS,json:1},{tip:"f3",key:"rank",type:d.bQ,items:[{text:"f4",value:"row"},{text:"f5",value:"column"}],json:1},{tip:"f6",key:"itemSpace",type:d.bJ,min:0,_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"f7",key:"textSpace",type:d.bJ,min:0,_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"f8",key:"overflow",type:d.bQ,items:[{text:"f9",value:"auto"},{text:"g_",value:"visible"},{text:"ga",value:"hidden"}],json:1},{type:d.c_,_fZ:e=>!e.items.length&&c("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:e=>!e.items.length&&c("getFieldUrl")},{type:d.c_,_fZ:e=>!e.bind.id},{key:"items",type:d.ck,json:1,mutual:()=>1,_fZ:e=>!e.bind.id},{type:d.c_},{tip:"d1",key:"fontsize",type:d.bJ,min:0,_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"d2",key:"fontfamily",type:d.bQ,items:o.cu,json:1},{tip:"d3",key:"letterspacing",type:d.bJ,min:0,_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"d5",key:"forecolor",type:d.bK,json:1},{type:d.c_},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/form-checkbox/dshow",["1h","../../24/2v"],((e,t,i)=>{let s,o={class:"cF cI cZ cj ck"},r={checked:"checked"},d=e("1h"),l=e("../../24/2v"),{View:a}=d;i.exports=a.extend({tmpl:(e,t,i)=>{let d,l,a,n,c,p,{props:h,enter:b,unit:g}=e;if(p=[],h.bind&&h.bind.fields&&h.bind.fields.length)a=[t(0,"[bind:"+h.bind.fields[0].id+"]")],p.push(t("div",o,a));else for(let e=h.items,i=e.length,s=0;s<i;s+=1){let i=e[s],o=0===s;a=[t("input",{name:h.inputName,class:"bM",type:"checkbox",checked:i.checked,disabled:i.disabled,value:i.value},1,r)],c=[t(0,i.text)],a.push(t("span",{style:"color:"+h.forecolor+";font-size:"+h.fontsize+g+";letter-spacing:"+h.letterspacing+g+";font-family:"+h.fontfamily+";margin-left:"+h.textSpace+g},c)),n="",o||(n+="margin-","row"==h.rank?n+="left":n+="top",n+=":"+h.itemSpace+g),p.push(t("label",{class:"cF cH cI",style:n},a))}return s?p.push(s):p.push(s=t("div",{_:"a;",class:"cr dT di"})),l="cr dR cF","hidden"==h.overflow?l+=" dA":"visible"==h.overflow?l+=" dB":l+=" cA cB dC","column"==h.rank&&(l+=" cG"),b&&(l+=" dj"),d=[t("div",{style:"left:"+h.x+g+";top:"+h.y+g+";height:"+h.height+g+";opacity:"+h.alpha+";width:"+h.width+g+";transform:rotate("+h.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:l},p)],t(i,0,d)},_f0:({items:e})=>e&&e.length,assign(e){this.set(e)},render(){this.digest()}}).merge(l)})),define("27/form-checkbox/index",["1h"],((e,t,i)=>{let s={checked:"checked"},o=e("1h"),{View:r,node:d,dispatch:l,isArray:a,isObject:n}=o;i.exports=r.extend({tmpl:(e,t,i)=>{let o,r,d,l,a,n,{props:c,unit:p}=e;n=[];for(let e=c.items,i=e.length,o=0;o<i;o+=1){let i=e[o],r=0===o;a=[t("input",{name:c.inputName,class:"bM",type:"checkbox",checked:i.checked,disabled:i.disabled,value:i.value},1,s)],l=[t(0,i.text)],a.push(t("span",{style:"color:"+c.forecolor+";font-size:"+c.fontsize+p+";letter-spacing:"+c.letterspacing+p+";font-family:"+c.fontfamily+";margin-left:"+c.textSpace+p},l)),d="",r||(d+="margin-","row"==c.rank?d+="left":d+="top",d+=":"+c.itemSpace+p),n.push(t("label",{class:"cF cH cI",style:d},a))}return r="cr dR cF","hidden"==c.overflow?r+=" dA":"visible"==c.overflow?r+=" dB":r+=" cA cB dC","column"==c.rank&&(r+=" cG"),o=[t("div",{style:"left:"+c.x+p+";top:"+c.y+p+";height:"+c.height+p+";opacity:"+c.alpha+";width:"+c.width+p+";transform:rotate("+c.rotate+"deg)",class:r},n)],t(i,0,o)},assign(e){let{props:t}=e,{items:i,bind:s}=t;if(s.id&&s.fields.length){i.length=0;let e=s._data,t=s.fields[0].id;a(e)||(e=[e]);for(let s of e){let e=s[t];n(e)&&i.push(e)}}this.set(e)},render(){this.digest()}})})),define("27/form-collect/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/cell","../../24/table","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../../24/cell"),a=e("../../24/table"),n=e("../2u"),c=["width","height","paddingLeft","paddingTop","paddingBottom","paddingRight","textFontsize","textLetterspacing","inputFontsize","inputLetterspacing","dropdownFontsize","dropdownLetterspacing"];i.exports=n.extend({ctor(){this.set({view:"27/form-collect/dshow"})}}).static({type:"form-collect",as:o.bJ,title:"gb",icon:"",_dd:o.bW|o.bZ|o.b2,_cC:{root:1},_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{borderwidth:t,rows:i,borderdeed:o,hideFoot:r,hideTotal:d,hideHead:l,hideLabel:n,excel:c,excelLeft:p,excelTop:h}=e;a.bJ(e,!0);let b=a.bK(e),g=0,y=0;for(let e of b._gp)y+=e;let f,x,_,u,m,k,w,v,j,K,R,J=b._gq,M=J.length,L=0,S=0,X=0,V=0;for(let e=0;e<M;e++){let t=i[e],s=J[e];t.label&&!_?(x=g,_=g):t.data&&!m?m=g-_:x?L&&V++:X++,g+=s,t.total?(w=g-m-_-s,L=s):L&&(S+=s)}let Y=s.bK(1);"separate"==o?(K=g+2*(b._gq.length+1)*Y,R=y+2*(b._gp.length+1)*Y,c?(R+=p+2*Y,K+=h+2*Y,f=h+6*Y):f=4*Y,_+=2*(X-1)*Y,l?(K-=_+2*Y,u=f):u=f+_+2*Y,n?(K-=m+2*Y,k=u):k=u+m,w+=4*Y,d?(K-=L+2*Y,L=w,v=k):v=k+w+2*Y,S+=2*(V-1)*Y,r?(K-=S+2*Y,j=v,S=L):j=v+L+2*Y,_-=4*Y,m-=4*Y,w-=4*Y,L-=4*Y,S-=4*Y):(K=g+t,R=y+t,c?(R+=p,K+=h,f=h+t+Y):f=t+Y,l?(K-=_,u=f):(u=f+_,_-=t+2*Y),n?(K-=m,k=u):(k=u+m-2*Y,m-=t+2*Y),d?(K-=L,v=k,L=w):v=k+w,r?(K-=S,j=v,S=L):j=v+L,w-=t+2*Y,L-=t+2*Y,S-=t+2*Y),e.width=R,e.height=K,e.headStart=f,e.headHeight=_,e.labelStart=u,e.labelHeight=m,e.bodyStart=k,e.bodyHeight=w,e.totalStart=v,e.totalHeight=L,e.footStart=j,e.footHeight=S},_c4(e,t){let i=s.bK(5),o={...{height:s.bK(35),width:s.bK(150),rowspan:1,colspan:1,paddingLeft:i,paddingTop:i,paddingRight:i,paddingBottom:i,bLeft:!0,bTop:!0,bRight:!0,bBottom:!0,hpos:"flex-start",vpos:"flex-start",alpha:1},type:"text",...l.text};return o.textFontsize=s.bK(o.textFontsize),{x:s.bK(e),y:s.bK(t),alpha:1,borderwidth:s.bK(1),excel:!0,excelLeft:s.bK(40),excelTop:s.bK(30),excelBackground:"#f6f6f6",excelForecolor:"#000",bordercolor:"#000",bordertype:"solid",borderdeed:"collapse",focusRow:-1,focusCol:-1,hideTotal:!1,hideFoot:!1,hideHead:!1,hideLabel:!1,help:"github.com/xinglie/report-designer/issues/40",rows:[{head:!0,cols:[{...o,elements:[]},{...o,elements:[]},{...o,elements:[]}]},{label:!0,cols:[{...o,elements:[]},{...o,elements:[]},{...o,elements:[]}]},{data:!0,cols:[{...o},{...o},{...o}]},{data:!0,cols:[{...o},{...o},{...o}]},{total:!0,cols:[{...o},{...o},{...o}]},{foot:!0,cols:[{...o,elements:[]},{...o,elements:[]},{...o,elements:[]}]}],locked:!1}},props:[{key:"rows",_e5(e,{rows:t}){d.bZ(e,t,c)},_ep({rows:e},t){d.b0(e,t,c)},_c5(e,t,i){d.bY(e,t,c,i)}},{key:"bind",json:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,json:1},{tip:"dB",key:"width",_c6:1,read:d.bM,type:r.bV,json:1},{tip:"dC",key:"height",_c6:1,read:d.bM,type:r.bV,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"eG",type:r.cm,_gr:1},{type:r.c_},{tip:"d7",key:"borderwidth",_c6:1,type:r.bJ,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,min:0,max:()=>s.bK(10),json:1},{tip:"d8",key:"bordertype",type:r.bQ,items:s.cv,json:1},{tip:"d9",key:"bordercolor",type:r.bK,json:1},{tip:"eH",key:"borderdeed",type:r.bQ,items:[{text:"eI",value:"collapse"},{text:"eJ",value:"separate"}],json:1},{type:r.c_},{tip:"e5",key:"hideHead",type:r.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.label){r=o;break}o++}return i<r&&(t.focusRow=-1,t.focusCol=-1),e}},{tip:"e6",key:"hideLabel",type:r.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.label){r=o;break}o++}return i==r&&(t.focusRow=-1,t.focusCol=-1),e}},{tip:"e8",key:"hideTotal",type:r.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.total){r=o;break}o++}return i==r&&(t.focusRow=-1,t.focusCol=-1),e}},{tip:"e9",key:"hideFoot",type:r.bL,json:1,write(e,t){let{focusRow:i,rows:s}=t;a.bJ(t,!0);let o=0,r=-1;for(let e of s){if(e.total){r=o;break}o++}return i>r&&(t.focusRow=-1,t.focusCol=-1),e}},{type:r.c_},{tip:"gc",type:r.bL,key:"excel",json:1},{tip:"gd",type:r.bK,key:"excelBackground",json:1,_fZ:e=>e.excel},{tip:"d5",type:r.bK,key:"excelForecolor",json:1,_fZ:e=>e.excel},{tip:"ge",type:r.bJ,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,min:()=>s.bK(20),_c6:1,key:"excelTop",json:1,_fZ:e=>e.excel},{tip:"gf",type:r.bJ,step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,min:()=>s.bK(20),_c6:1,key:"excelLeft",json:1,_fZ:e=>e.excel},{type:r.c_,_fZ:e=>e.focusRow>-1&&e.focusCol>-1},{tip:"eK",type:r.b1,_gr:1,_fZ:e=>e.focusRow>-1&&e.focusCol>-1},{tip:"eL",type:r.cd,_fZ:e=>e.focusRow>-1&&e.focusCol>-1},{tip:"eM",type:r.cg,_gr:1,_fZ:e=>e.focusRow>-1&&e.focusCol>-1},{type:r.c_,_fZ(e){let{focusRow:t,focusCol:i,rows:s}=e,o=!1;if(i>-1&&i>-1){o=!0;let e=s[t].cols[i];e&&e.elements&&e.elements.length&&(o=!1)}return o}},{type:r.ch,_fZ(e){let{focusRow:t,focusCol:i,rows:s}=e,o=!1;if(i>-1&&i>-1){o=!0;let e=s[t].cols[i];e&&e.elements&&e.elements.length&&(o=!1)}return o}},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/form-collect/dshow",["1h","../../1g/1j","../../1g/1t","../../1g/1v","../../1o/1p/index","../../24/31","../../24/32","../../24/table","../subs/barcode","../subs/qrcode"],((e,t,i)=>{let s,o,r,d,l,a,n,c,p;e("../subs/barcode"),e("../subs/qrcode");let h={class:"cr ct dR dc dh"},b={class:"cF cI cU cZ cj ck"},g={class:"bJ cr dE dK dN dy"},y={class:"cC"},f={value:"value"},x={selected:"selected"},_=e("1h"),u=e("../../1g/1j"),m=e("../../1g/1t"),k=e("../../1g/1v"),w=e("../../1o/1p/index"),v=e("../../24/31"),j=e("../../24/32"),K=e("../../24/table"),{View:R,State:J}=_;i.exports=R.extend({tmpl:(e,t,i,_,u,m,k)=>{let w,v,j,K,R,J,M,L,S,X,V,Y,F,C,{props:T,unit:z,fs:B,selected:A,count:O,toPx:N,i18n:P,getMaxCol:I,excelTitle:W,selectRect:Z,srRow:H,srCol:$,element:U,toUnit:E,fieldRow:Q,fieldCol:q,grouped:D}=e;C=[],j="";let G=Math.max,ee=Math.min;j+=" ";let te=T.borderwidth,ie=T.bordertype,se=T.bordercolor,oe=T.borderdeed,re=(T.rows,T.excel),de=T.excelLeft,le=T.excelTop,ae=T.excelBackground,ne=T.excelForecolor,ce=T.readonly;j+=" ";let pe=0;j+=" ";let he=("collapse"==oe?1:2)*te;if(Y=[],re){if(M=[],J=[],!B&&A&&!T.locked&&1==O&&-3==T.focusRow&&-3==T.focusCol){j="";let e=ee(26,N(le)-6)-4;j+=" ";let s=ee(26,N(de)-6)-4;j+=" ";let o=(N(le)-e-he)/2-1;j+=" ";let r=(N(de)-s-he)/2-1;R=[t("div",{class:"cr cu dd eb",style:"height:"+G(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:P("gg"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+G(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:P("gg"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+G(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:P("gh"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+G(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:P("gh"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'tm'})"})],J.push(t("div",h,R))}M.push(t("td",{class:"c7 cs d_ eb",style:"height:"+le+z+";background:"+ae+";border:"+(te?ie:"dotted")+" "+te+z+" "+se,"mx5-pointerdown":i+"\x1e_gw({row:-3,col:-3})"},J));let e=I(T);for(let i=0;i<e;i++)R=[t(0,W(i))],J=[t("div",b,R)],M.push(t("td",{class:"c7 d_",style:"height:"+le+z+";background:"+ae+";border:"+(te?ie:"dotted")+" "+te+z+" "+se+";color:"+ne},J));Y.push(t("tr",0,M))}j="";let be=0;j+=" ";let ge=0;for(let e=T.rows,l=e.length,a=0;a<l;a+=1){let l=e[a];if(l.label&&(ge=1),(!l.total||!T.hideTotal)&&(!be||!T.hideFoot)&&(ge||!T.hideHead)&&(!l.label||!T.hideLabel)){M=[],re&&(R=[t(0,++pe)],J=[t("div",b,R)],M.push(t("td",{class:"c7 d_",style:"width:"+de+z+";background:"+ae+";border:"+(te?ie:"dotted")+" "+te+z+" "+se+";color:"+ne},J)));for(let e=l.cols,n=e.length,c=0;c<n;c+=1){let n=e[c];j="";let p=n[n.type+"Content"]||"input"==n.type||"dropdown"==n.type;j+=" ";let h=n.elements&&n.elements.length;j+=" ";let b=h||!p&&(1==be||!ge);j+=" ";let v=!h&&!l.data&&"text"==n.type;if(J=[],R=[],n.elements&&n.elements.length)for(let e=n.elements,s=e.length,o=0;o<s;o+=1){let s=e[o];R.push(t("div",{"mx5-owner":i,$:"props,fs,unit",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+m(u,s,"a;."+a+".a:."+c+".a-."+o+".a+")+"&fs="+m(u,B,"b_")+"&ownerId=_rd_h_"+_(U.id)+"_"+_(a)+"_"+_(c)+"&maskId=_rd_hm_"+_(U.id)+"_"+_(a)+"_"+_(c)+"&unit="+m(u,z,"ba"),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+m(u,s,"a;."+a+".a:."+c+".a-."+o+".a+")+"',maskId:'_rd_hm_"+k(U.id)+"_"+k(a)+"_"+k(c)+"'})"}))}else{!B&&n.type&&(j="","text"==n.type?j+=" \ue6bc ":"image"==n.type?j+=" \ue650 ":"barcode"==n.type?j+=" \ue6c8 ":"qrcode"==n.type?j+=" \ue61c ":"input"==n.type&&(j+=" \ue6dc "),L=[t(0,j)],R.push(t("i",g,L))),j="";let e=n.paddingTop,d=n.paddingBottom,l=n.paddingLeft,p=n.paddingRight;j+=" ";let h=n.width-he-E(1),b=n.height-he-E(1);if(e>b&&(e=b),e+d>b&&(d=b-e),l>h&&(l=h),l+p>h&&(p=h-l),L=[],"text"==n.type)S="width:calc(100% - "+(l+p)+z+");text-align:","center"==n.hpos?S+="center":"flex-end"==n.hpos?S+="right":S+="left",L.push(t("input",{as:"d-input",class:"bN cr d8",value:n.textContent,"mx5-input":i+"\x1e_gD({cell:'"+m(u,n,"a;."+a+".a:."+c+".bb")+"',key:'textContent'})","mx5-focusin":i+"\x1e_gE({row:"+a+",col:"+c+"})",style:S},1,f)),n.textContent&&(X=[t(0,n.textContent,1)],L.push(t("div",y,X)));else if("image"==n.type)n.imageContent&&(S="",(n.imageRotateX||n.imageRotateY)&&(S+=";transform:",n.imageRotateX&&(S+="rotateX(180deg)"),n.imageRotateY&&(S+=" rotateY(180deg)")),L.push(t("img",{class:"b8 cl cm",src:n.imageContent,style:S},1)));else if("barcode"==n.type)n.barcodeContent&&L.push(t("div",{"mx5-owner":i,class:"cF",style:"height:"+(b-e-d)+z+";align-items:"+n.vpos,"mx5-view":"27/subs/barcode?lineColor="+_(n.barcodeColor)+"&lineWidth="+_(n.barcodeLineWidth)+"&showText="+_(n.barcodeShowText)+"&format="+_(n.barcodeFormat)+"&value="+_(n.barcodeContent)}));else if("qrcode"==n.type)n.qrcodeContent&&L.push(t("div",{"mx5-owner":i,style:"height:"+(b-e-d)+z,"mx5-view":"27/subs/qrcode?vpos="+_(n.vpos)+"&value="+_(n.qrcodeContent)}));else if("sum"==n.type)L.push(s||(s=t(0,"[\u8ba1\u7b97:\u6c42\u548c]")));else if("avg"==n.type)L.push(o||(o=t(0,"[\u8ba1\u7b97:\u6c42\u5e73\u5747]")));else if("custom"==n.type)L.push(r||(r=t(0,"[\u8ba1\u7b97:\u81ea\u5b9a\u4e49\u51fd\u6570]")));else if("input"==n.type)n.inputMultiline?(K="cj ck bO",n.inputClassName&&(K+=" "+n.inputClassName),L.push(t("textarea",{as:"d-input",style:"color:"+n.inputForecolor+";font-size:"+n.inputFontsize+z+";letter-spacing:"+n.inputLetterspacing+z+";font-family:"+n.inputFontfamily+";text-align:"+n.inputTextAlign,placeholder:n.inputplaceholder,"mx5-input":i+"\x1e_gD({cell:'"+m(u,n,"a;."+a+".a:."+c+".bb")+"',key:'inputText'})","mx5-focusin":i+"\x1e_gE({row:"+a+",col:"+c+"})",value:n.inputText,class:K},0,f))):(K="cj ck bN",n.inputClassName&&(K+=" "+n.inputClassName),L.push(t("input",{as:"d-input",style:"color:"+n.inputForecolor+";font-size:"+n.inputFontsize+z+";letter-spacing:"+n.inputLetterspacing+z+";font-family:"+n.inputFontfamily+";text-align:"+n.inputTextAlign,placeholder:n.inputPlaceholder,value:n.inputText,"mx5-input":i+"\x1e_gD({cell:'"+m(u,n,"a;."+a+".a:."+c+".bb")+"',key:'inputText'})","mx5-focusin":i+"\x1e_gE({row:"+a+",col:"+c+"})",class:K},1,f)));else if("dropdown"==n.type){X=[];for(let e=n.dropdownItems,i=e.length,s=0;s<i;s+=1){let i=e[s];V=[t(0,i.text)],X.push(t("option",{disabled:i.disabled,selected:i.checked,value:i.value},V,x))}K="cj ck",n.dropdownClassName&&(K+=" "+n.dropdownClassName),L.push(t("select",{multiple:n.dropdownMultipleSelect,style:"color:"+n.dropdownForecolor+";font-size:"+n.dropdownFontsize+z+";letter-spacing:"+n.dropdownLetterspacing+z+";font-family:"+n.dropdownFontfamily,name:n.dropdownName,"mx5-change":i+"\x1e_g0({cell:'"+m(u,n,"a;."+a+".a:."+c+".bb")+"'})",class:K},X))}else L.push(t(0,n.type));S="padding:"+e+z+" "+p+z+" "+d+z+" "+l+z+";width:"+h+z+";height:"+b+z+";align-items:"+n.vpos+";justify-content:"+n.hpos+";opacity:"+n.alpha+";",n.background&&(S+="background:"+n.background+";"),null!=n.textFontsize&&(S+="color:"+n.textForecolor+";letter-spacing:"+n.textLetterspacing+z+";",n.textStyleBold&&(S+="font-weight:bold;"),n.textStyleItalic&&(S+="font-style:italic;"),(n.textStyleUnderline||n.textStyleStrike||n.textStyleOverline)&&(S+="text-decoration:",n.textStyleStrike?S+="line-through":n.textStyleOverline?S+="overline":S+="underline",S+=";"),S+="font-family:"+n.textFontfamily+";font-size:"+n.textFontsize+z+";"),R.push(t("div",{class:"cF cs dA",style:S},L))}if(J.push(t("div",{class:"cj ck cs dA","data-as":"hod",id:"_rd_hm_"+U.id+"_"+a+"_"+c},R)),!B&&!T.locked){let e=T.focusRow==a&&T.focusCol==c&&A&&1==O;if(R=[],e&&!D){j="";let e=ee(26,N(n.height)-6)-4;j+=" ";let s=ee(26,N(n.width)-6)-4;j+=" ";let o=(N(n.height)-e-he)/2-1;j+=" ";let r=(N(n.width)-s-he)/2-1;R.push(t("div",{class:"cr cu dd eb",style:"height:"+G(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:P("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+G(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:P("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+G(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:P("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+G(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:P("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'tm'})"}))}K="cr dh dR ct",e&&(K+=" dc"),Q==a&&q==c&&(K+=" dj"),S="",e&&(n.bLeft||(S+="border-left-style:dotted;"),n.bTop||(S+="border-top-style:dotted;"),n.bRight||(S+="border-right-style:dotted;"),n.bBottom||(S+="border-bottom-style:dotted;")),J.push(t("div",{id:b&&"_rd_dm_"+U.id+"_"+a+"_"+c,class:K,style:S},R))}!ce&&!B&&n.elements&&n.elements.length&&(R=[d||(d=t(0,"\ue647"))],J.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:P("ff")},R))),Z&&H==a&&$==c&&J.push(t("div",{class:"cr ct dP",style:"display:block;left:"+Z.x+"px;top:"+Z.y+"px;width:"+Z.width+"px;height:"+Z.height+"px"})),K="d_ c7 eb",Z&&H==a&&$==c&&(K+=" dA"),M.push(t("td",{colspan:null!=(w=n.colspan)&&w,rowspan:null!=(w=n.rowspan)&&w,style:"position:relative;width:"+n.width+z+";height:"+n.height+z+";border-left:"+(te?ie:"dotted")+" "+te+z+" "+(te&&n.bLeft?se:"#ddd6")+";border-top:"+(te?ie:"dotted")+" "+te+z+" "+(te&&n.bTop?se:"#ddd6")+";border-right:"+(te?ie:"dotted")+" "+te+z+" "+(te&&n.bRight?se:"#ddd6")+";border-bottom:"+(te?ie:"dotted")+" "+te+z+" "+(te&&n.bBottom?se:"#ddd6"),"mx5-pointerdown":i+"\x1e_gw({row:"+a+",col:"+c+",elm:"+b+",input:"+v+"})",id:b&&"_rd_h_"+U.id+"_"+a+"_"+c,"mx5-contextmenu":b&&i+"\x1e_gC({row:"+a+",col:"+c+"})",class:K},J))}Y.push(t("tr",0,M))}l.total&&(be=1)}if(F=[t("tbody",0,Y)],K="cj c9",ce&&(K+=" ct"),C.push(t("table",{style:"border-collapse:"+oe,class:K},F)),!B&&A&&1==O){let e=N(T.headHeight);T.hideHead||(F=[t("path",{d:"M10 0C0 0 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],C.push(t("svg",{style:"left:-15px;top:"+T.headStart+z+";width:15px;height:"+e+"px",class:"cr ct dB"},F)),F=[l||(l=t(0,"\u5934"))],C.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+N(T.headStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},F))),T.hideLabel||(e=N(T.labelHeight),F=[t("path",{d:"M10 0C0 0 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],C.push(t("svg",{style:"left:-15px;top:"+T.labelStart+z+";width:15px;height:"+e+"px",class:"cr ct dB"},F)),F=[a||(a=t(0,"\u6807\u9898"))],C.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+N(T.labelStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},F))),e=N(T.bodyHeight),F=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],C.push(t("svg",{style:"left:-15px;top:"+T.bodyStart+z+";width:15px;height:"+e+"px",class:"cr ct dB"},F)),F=[n||(n=t(0,"\u6570\u636e"))],C.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+N(T.bodyStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},F)),T.hideTotal||(e=N(T.totalHeight),F=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],C.push(t("svg",{style:"left:-15px;top:"+T.totalStart+z+";width:15px;height:"+e+"px",class:"cr ct dB"},F)),F=[c||(c=t(0,"\u5408\u8ba1"))],C.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+N(T.totalStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},F))),T.hideFoot||(e=T.footHeight,e>0&&(e=N(e),F=[t("path",{d:"M10 2C0 2 10 "+e/2+" 0 "+e/2+"C10 "+e/2+" 0 "+e+" 10 "+e,style:"fill:none;stroke:#999"},1)],C.push(t("svg",{style:"left:-15px;top:"+T.footStart+z+";width:15px;height:"+e+"px",class:"cr ct dB"},F)),F=[p||(p=t(0,"\u5c3e"))],C.push(t("div",{class:"cr ct dy",style:"left:-15px;top:"+(e/2+N(T.footStart))+"px;transform:translate(-110%,-50%);width:20px;line-height:1"},F))))}return v=[t("div",{class:"cr dR",style:"left:"+T.x+z+";top:"+T.y+z+";opacity:"+T.alpha+";width:"+T.width+z+";height:"+T.height+z},C)],t(i,0,v)},init(){this.set({toPx:u.bX,toUnit:u.bK,getMaxCol:e=>K.bJ(e,1)._go,fieldRow:-1,fieldCol:-1})},assign(e){this.set(e)},render(){this.digest()},"_g0<change>"(e){let t,{params:i,eventTarget:s}=e,{cell:o}=i,r=s.options,d=o.dropdownItems;for(let e=r.length;e--;){let i=r[e],s=d[i.index];s.checked!=i.selected&&(s.checked=i.selected,t=1)}if(t){let e=this.get("element"),t=this.get("props");this.digest({props:t}),J.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{rows:1}});let i=k.bT(e);m.bJ(m.cj,i,e.id+"cwrows",500)}}}).merge(w,v,j)})),define("27/form-collect/index",["1h","../../1g/1j","../../24/format","../../24/table","../subs/barcode","../subs/qrcode"],((e,t,i)=>{let s,o;e("../subs/barcode"),e("../subs/qrcode");let r={class:"cF cI cU cZ cj ck"},d={class:"cC"},l={value:"value"},a={selected:"selected"},n=e("1h"),c=e("../../1g/1j"),p=e("../../24/format"),h=e("../../24/table"),{View:b,mark:g,dispatch:y,node:f,mix:x}=n,_=p._ge.bind(p),u=(e,t)=>e.startsWith("_")?void 0:t,m=e=>{let t=0;for(let i of e)for(let e of i)e._g1&&(t+=e._g2);return t},k=e=>{let t=0,i=0,s=0;for(let i of e)for(let e of i)e._g1&&(t+=e._g2,s++);return s>0&&(i=t/s),i};i.exports=b.extend({tmpl:(e,t,i,n,c,p)=>{let h,b,g,y,f,x,_,u,m,k,w,v,{props:j,unit:K,readonly:R,getMaxCol:J,excelTitle:M,toUnit:L,getSumByCell:S,format:X,calcSum:V,calcAvg:Y,toPx:F}=e;b="";let C=j.borderwidth,T=j.bordertype,z=j.bordercolor,B=j.borderdeed,A=j.rows,O=j.readonly,N=j.excel,P=j.excelLeft,I=j.excelTop,W=j.excelBackground,Z=j.excelForecolor;b+=" ";let H,$,U=("collapse"==B?1:2)*C;b+=" ",b+=" ";let E=0;b+=" ";let Q=R||O;if(k=[],N){f=[],f.push(t("td",{class:"c7 d_",style:"height:"+I+K+";background:"+W+";border:"+(C?T:"dotted")+" "+C+K+" "+z}));let e=J(j);for(let i=0;i<e;i++)g=[t(0,M(i))],y=[t("div",r,g)],f.push(t("td",{class:"c7 d_",style:"height:"+I+K+";background:"+W+";border:"+(C?T:"dotted")+" "+C+K+" "+z+";color:"+Z},y));k.push(t("tr",0,f))}for(let e=A.length,h=0;h<e;h+=1){let e=A[h];if(e.label&&(H=1),e.total&&!j.hideTotal||e.data||e.label&&!j.hideLabel||!H&&!j.hideHead||$&&!j.hideFoot){f=[],N&&(g=[t(0,++E)],y=[t("div",r,g)],f.push(t("td",{class:"c7 d_",style:"width:"+P+K+";background:"+W+";border:"+(C?T:"dotted")+" "+C+K+" "+z+";color:"+Z},y)));for(let r=e.cols,k=r.length,w=k-1,v=0;v<k;v+=1){let k=r[v],j=0===v,R=v===w;if(y=[],k.elements&&k.elements.length)for(let e=k.elements,s=e.length,o=0;o<s;o+=1){let s=e[o];y.push(t("div",{"mx5-owner":i,$:"props,readonly||eReadonly",id:s.id,"mx5-view":"27/"+s.type+"/index?props="+p(c,s.props,"a;."+h+".a:."+v+".a-."+o+".a+")+"&unit="+n(K)+"&readonly="+p(c,Q),"mx5-elementinput":i+"\x1e_h_()"}))}else{b="";let r=k.paddingTop,f=k.paddingBottom,w=k.paddingLeft,J=k.paddingRight;b+=" ";let M=k.width-U-L(1),T=k.height-U-L(1);if(r>T&&(r=T),r+f>T&&(f=T-r),w>M&&(w=M),w+J>M&&(J=M-w),g=[],"text"==k.type)u=[t(0,k.textContent,1)],g.push(t("div",d,u));else if("image"==k.type)k.imageContent&&(_="",(k.imageRotateX||k.imageRotateY)&&(_+=";transform:",k.imageRotateX&&(_+="rotateX(180deg)"),k.imageRotateY&&(_+=" rotateY(180deg)")),g.push(t("img",{class:"b8 cl cm",src:k.imageContent,style:_},1)));else if("barcode"==k.type)k.barcodeContent&&g.push(t("div",{"mx5-owner":i,$:"props",class:"cF",style:"height:"+(T-r-f)+K+";align-items:"+k.vpos,"mx5-view":"27/subs/barcode?lineColor="+p(c,k.barcodeColor,"a;."+h+".a:."+v+".b_")+"&lineWidth="+p(c,k.barcodeLineWidth,"a;."+h+".a:."+v+".ba")+"&showText="+p(c,k.barcodeShowText,"a;."+h+".a:."+v+".bb")+"&format="+p(c,k.barcodeFormat,"a;."+h+".a:."+v+".bc")+"&value="+n(k.barcodeContent)}));else if("qrcode"==k.type)k.qrcodeContent&&g.push(t("div",{"mx5-owner":i,style:"height:"+(T-r-f)+K,"mx5-view":"27/subs/qrcode?vpos="+n(k.vpos)+"&value="+n(k.qrcodeContent)}));else if("input"==k.type)k.inputMultiline?(x="cj ck bO",k.inputClassName&&(x+=" "+k.inputClassName),g.push(t("textarea",{id:"ipt_"+i+"_"+h+"_"+v,readonly:!0===Q,style:"color:"+k.inputForecolor+";font-size:"+k.inputFontsize+K+";letter-spacing:"+k.inputLetterspacing+K+";font-family:"+k.inputFontfamily+";text-align:"+k.inputTextAlign,placeholder:k.inputplaceholder,"mx5-input":i+"\x1e_g9({cell:'"+p(c,k,"a;."+h+".a:."+v+".bd")+"'})",value:k.inputUserValue||k.inputText,class:x},0,l))):(x="cj ck bN",k.inputClassName&&(x+=" "+k.inputClassName),g.push(t("input",{id:"ipt_"+i+"_"+h+"_"+v,readonly:!0===Q,style:"color:"+k.inputForecolor+";font-size:"+k.inputFontsize+K+";letter-spacing:"+k.inputLetterspacing+K+";font-family:"+k.inputFontfamily+";text-align:"+k.inputTextAlign,placeholder:k.inputPlaceholder,value:k.inputUserValue||k.inputText,"mx5-input":i+"\x1e_g9({cell:'"+p(c,k,"a;."+h+".a:."+v+".bd")+"'})",class:x},1,l)));else if("sum"==k.type||"custom"==k.type||"avg"==k.type){let e=S(k);"sum"==k.type?(u=[t(0,X(k.textFormat,V(e)),1)],g.push(t("div",d,u))):"avg"==k.type?(u=[t(0,X(k.textFormat,Y(e)),1)],g.push(t("div",d,u))):(u=[t(0,X(k.textFormat,e),1)],g.push(t("div",d,u)))}else if("dropdown"==k.type){u=[];for(let e=k.dropdownItems,i=e.length,s=0;s<i;s+=1){let i=e[s];m=[t(0,i.text)],u.push(t("option",{disabled:i.disabled,selected:i.checked,value:i.value},m,a))}x="cj ck",k.dropdownClassName&&(x+=" "+k.dropdownClassName),g.push(t("select",{multiple:k.dropdownMultipleSelect,readonly:!0===Q,style:"color:"+k.dropdownForecolor+";font-size:"+k.dropdownFontsize+K+";letter-spacing:"+k.dropdownLetterspacing+K+";font-family:"+k.dropdownFontfamily,name:k.dropdownName,"mx5-change":i+"\x1e_g9({cell:'"+p(c,k,"a;."+h+".a:."+v+".bd")+"'})",class:x},u))}else g.push(t(0,k.type));Q||e.data&&(j&&(u=[s||(s=t(0,"\ue606"))],g.push(t("i",{style:"left:"+(-45-F(C)-(N?F(P):0))+"px;top:"+(F(T)-22)/2+"px",class:"bJ bR c3 co cr cu",title:"\u70b9\u51fb\u590d\u5236\u6dfb\u52a0\u5f53\u524d\u884c","mx5-click":i+"\x1e_ha({ri:"+h+"})"},u))),R&&e.copy&&(u=[o||(o=t(0,"\ue601"))],g.push(t("i",{style:"right:"+(-45-F(C))+"px;top:"+(F(T)-22)/2+"px",class:"bJ bR c3 co cr cu",title:"\u70b9\u51fb\u5220\u9664\u5f53\u524d\u884c","mx5-click":i+"\x1e_hb({ri:"+h+"})"},u)))),_="padding:"+r+K+" "+J+K+" "+f+K+" "+w+K+";width:"+M+K+";height:"+T+K+";align-items:"+k.vpos+";justify-content:"+k.hpos+";opacity:"+k.alpha+";",k.background&&(_+="background:"+k.background+";"),null!=k.textFontsize&&(_+="color:"+k.textForecolor+";letter-spacing:"+k.textLetterspacing+K+";",k.textStyleBold&&(_+="font-weight:bold;"),k.textStyleItalic&&(_+="font-style:italic;"),(k.textStyleUnderline||k.textStyleStrike||k.textStyleOverline)&&(_+="text-decoration:",k.textStyleStrike?_+="line-through":k.textStyleOverline?_+="overline":_+="underline",_+=";"),_+="font-family:"+k.textFontfamily+";font-size:"+k.textFontsize+K+";"),y.push(t("div",{class:"cF dA",style:_},g))}x="d_ c7",e.data||(x+=" dA"),f.push(t("td",{colspan:1!=k.colspan&&k.colspan,rowspan:1!=k.rowspan&&k.rowspan,style:"position:relative;width:"+k.width+K+";height:"+k.height+K+";border-left:"+(C?T:"dotted")+" "+C+K+" "+(C&&k.bLeft?z:"#0000")+";border-top:"+(C?T:"dotted")+" "+C+K+" "+(C&&k.bTop?z:"#0000")+";border-right:"+(C?T:"dotted")+" "+C+K+" "+(C&&k.bRight?z:"#0000")+";border-bottom:"+(C?T:"dotted")+" "+C+K+" "+(C&&k.bBottom?z:"#0000"),class:x},y))}k.push(t("tr",0,f))}e.total&&($=1)}return w=[t("tbody",0,k)],v=[t("table",{class:"c9 cj",style:"border-collapse:"+B},w)],h=[t("div",{class:"cr dR",style:"left:"+j.x+K+";top:"+j.y+K+";opacity:"+j.alpha+";width:"+j.width+K},v)],t(i,0,h)},init(){this.set({format:_,toPx:c.bX,toUnit:c.bK,getMaxCol:e=>h.bJ(e,1)._go,getSumByCell:e=>{let{rows:t}=this.get("props"),i={};for(let s of t)if(s.data)for(let t of s.cols){let s=t._g3;if(s>=e._g3&&s<=e._g4){i[s]||(i[s]=[]);let e,o=t.inputUserValue||t.inputText,r=parseInt(o,10);e=isNaN(r)?{_g2:0,_g1:0}:{_g2:r,_g1:1},i[s].push(e)}}let s=[];for(let e in i)s.push(i[e]);return s},calcSum:m,calcAvg:k})},assign(e){e.overrideProps&&x(e.props,e.overrideProps),h.bJ(e.props,!0),e.overrideProps&&x(e.props,e.overrideProps),this.set(e)},async render(){let e=g(this,"_g5");await this.digest();let t=await this.getValue();e()&&this._g6(t)},_g6(e){e||(e=this._g7()),e.elementProps!=this._g8&&(this._g8=e.elementProps,delete e.id,delete e.type,y(this.root,"elementinput",e))},_g7(){let e=this.get("props"),t=JSON.stringify(e,u),{rows:i}=e,s={head:[],label:[],data:[],total:[],foot:[]},o=[],r=e=>{let t=[];for(let i of e)if("form-input"==i.type){let{userValue:e,text:s,inputName:r}=i.props;null==e&&(e=s),t.push({type:"form-input",value:e,name:r});let d=f(i.id);d&&o.push({node:d.querySelector("input"),type:"form-input",value:e,name:r})}else t.push(null);return t};for(let e=0;e<i.length;e++){let t,d=i[e],l=[];for(let t=0;t<d.cols.length;t++){let i=d.cols[t];if(i.elements&&i.elements.length)l.push(r(i.elements));else if("input"==i.type){let s;s=null!=i.inputUserValue?i.inputUserValue:i.inputText,l.push({value:s,type:"form-collect-input",name:i.inputName}),o.push({node:f(`ipt_${this.id}_${e}_${t}`),type:"form-collect-input",value:s,name:i.inputName})}else if("sum"==i.type||"custom"==i.type){let e,{getSumByCell:t,format:s,calcSum:o}=this.get(),r=t(i);e="sum"==i.type?s(i.textFormat,o(r)):s(i.textFormat,r),l.push({type:"total-sum",value:e})}else l.push(null)}d.head?t=s.head:d.label?t=s.label:d.data?t=s.data:d.total?t=s.total:d.foot&&(t=s.foot),t.push(l)}let d=this.get("id");return{id:d,type:"form-collect",props:e,elementId:d,elementType:"form-collect",elementProps:t,elementValue:s,elementInputs:o}},getValue(){return new Promise((e=>{let t=()=>{let i=this._g7(),s=1;for(let e of i.elementInputs)if(!e.node){s=0;break}s?e(i):setTimeout(t,50)};setTimeout(t,50)}))},"_g9<input>"(e){let{cell:t}=e.params,i=e.eventTarget;t.inputUserValue=i.value;let s=this.get("props");this.digest({props:s}),this._g6()},"_g9<change>"(e){},"_h_<elementinput>"(e){e.stopImmediatePropagation(),this._g6()},"_ha<click>"(e){let{ri:t}=e.params,i=this.get("props"),{rows:s}=i,o=s[t],r=0;for(let e of s){if(e.total)break;r++}h.bL(i,r,{},0);let d=s[r];d.data=!0,d.copy=!0;for(let e=o.cols.length;e--;){let t=o.cols[e],i=d.cols[e],s=JSON.parse(JSON.stringify(t));x(i,s)}h.bJ(i),this.set({props:i}),this.render()},"_hb<click>"(e){let{ri:t}=e.params,i=this.get("props");h.bM(i,t),h.bJ(i),this.set({props:i}),this.render()}})})),define("27/form-input/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/form-input/index"})}}).static({type:"form-input",title:"gm",icon:"",_dd:o.bR|o.bO|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",height:s.bK(25),alpha:1,text:"",placeholder:"",letterspacing:0,markAs:"",className:"",multiline:!1,inputName:"",textAlign:"left",x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),forecolor:"#000",fontsize:s.bK(14),fontfamily:"Microsoft YaHei",locked:!1,help:"github.com/xinglie/report-designer/issues/39"}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"gn",key:"placeholder",type:r.bS,json:1},{tip:"go",key:"text",type:({multiline:e})=>e?r.bO:r.bS,_hc:1,json:1},{tip:"f2",key:"inputName",type:r.bS,json:1},{tip:"gj",key:"markAs",type:r.bS,json:1},{tip:"gk",key:"className",type:r.bS,json:1},{tip:"gp",key:"multiline",type:r.bL,json:1},{type:r.c_},{tip:"gq",key:"textAlign",type:r.ci,json:1},{tip:"d1",key:"fontsize",_c6:1,type:r.bJ,min:0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"fontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"letterspacing",_c6:1,type:r.bJ,min:0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d5",key:"forecolor",type:r.bK,json:1},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/form-input/index",["1h"],((e,t,i)=>{let s={value:"value"},o=e("1h"),{View:r,node:d,dispatch:l}=o;i.exports=r.extend({tmpl:(e,t,i)=>{let o,r,d,{props:l,unit:a,readonly:n}=e;d=[];let c=n||l.readonly;return l.multiline?(r="cj ck bO",l.className&&(r+=" "+l.className),d.push(t("textarea",{id:"ipt_"+i,readonly:!0===c,style:"color:"+l.forecolor+";font-size:"+l.fontsize+a+";letter-spacing:"+l.letterspacing+a+";font-family:"+l.fontfamily+";text-align:"+l.textAlign,placeholder:l.placeholder,"mx5-input":i+"\x1e_g9()",value:l.userValue||l.text,class:r},0,s))):(r="cj ck bN",l.className&&(r+=" "+l.className),d.push(t("input",{id:"ipt_"+i,readonly:!0===c,style:"color:"+l.forecolor+";font-size:"+l.fontsize+a+";letter-spacing:"+l.letterspacing+a+";font-family:"+l.fontfamily+";text-align:"+l.textAlign,placeholder:l.placeholder,value:l.userValue||l.text,"mx5-input":i+"\x1e_g9()",class:r},1,s))),o=[t("div",{class:"cF cI cr dA dR",style:"left:"+l.x+a+";top:"+l.y+a+";height:"+l.height+a+";opacity:"+l.alpha+";width:"+l.width+a+";transform:rotate("+l.rotate+"deg)"},d)],t(i,0,o)},assign(e){this.set(e)},render(){this.digest()},getValue(){let e=this.get("props"),t=d(`ipt_${this.id}`),i=this.get("id");return{id:i,type:"form-input",props:e,elementId:i,elementType:"form-input",elementProps:JSON.stringify(e),elementValue:e.userValue,elementName:e.inputName,elementInput:t}},"_g9<input>"(e){this._fm(e);let{eventTarget:t}=e,i=t.value,s=this.get("props");s.userValue=i,l(this.root,"elementinput",{elementId:this.get("id"),elementType:"form-input",elementProps:JSON.stringify(s),elementValue:i,elementName:s.inputName,elementInput:t})}})})),define("27/form-radio/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{guid:n,config:c}=s;i.exports=a.extend({ctor(){this.set({view:"27/form-radio/dshow"})}}).static({type:"form-radio",title:"gr",icon:"",_dd:r.bR|r.bS|r.bY|r.bW|r.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",height:o.bK(50),alpha:1,text:"",letterspacing:0,inputName:n("rd-radios-"),x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(200),rank:"row",items:[],overflow:"auto",bind:{url:"",id:"",fields:[]},itemSpace:o.bK(10),textSpace:o.bK(4),forecolor:"#000",fontsize:o.bK(14),fontfamily:"Microsoft YaHei",locked:!1}),props:[{tip:"dz",type:d.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dA",type:d.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dB",type:d.bJ,key:"width",_c6:1,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dC",key:"height",_c6:1,type:d.bJ,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_},{tip:"f2",key:"inputName",type:d.bS,json:1},{tip:"f3",key:"rank",type:d.bQ,items:[{text:"f4",value:"row"},{text:"f5",value:"column"}],json:1},{tip:"f6",key:"itemSpace",_c6:1,type:d.bJ,min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"f7",key:"textSpace",_c6:1,type:d.bJ,min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"f8",key:"overflow",type:d.bQ,items:[{text:"f9",value:"auto"},{text:"g_",value:"visible"},{text:"ga",value:"hidden"}],json:1},{type:d.c_,_fZ:e=>!e.items.length&&c("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:e=>!e.items.length&&c("getFieldUrl")},{type:d.c_,_fZ:e=>!e.bind.id},{key:"items",type:d.ck,json:1,_fZ:e=>!e.bind.id},{type:d.c_},{tip:"d1",key:"fontsize",type:d.bJ,min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"d2",key:"fontfamily",type:d.bQ,items:o.cu,json:1},{tip:"d3",key:"letterspacing",_c6:1,type:d.bJ,min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"d5",key:"forecolor",type:d.bK,json:1},{type:d.c_},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/form-radio/dshow",["1h","../../24/2v"],((e,t,i)=>{let s,o={class:"cF cI cZ cj ck"},r={checked:"checked"},d=e("1h"),l=e("../../24/2v"),{View:a}=d;i.exports=a.extend({tmpl:(e,t,i)=>{let d,l,a,n,c,p,{props:h,enter:b,unit:g}=e;if(p=[],h.bind&&h.bind.fields&&h.bind.fields.length)a=[t(0,"[bind:"+h.bind.fields[0].id+"]")],p.push(t("div",o,a));else for(let e=h.items,i=e.length,s=0;s<i;s+=1){let i=e[s],o=0===s;a=[t("input",{name:h.inputName,class:"bM",type:"radio",checked:i.checked,disabled:i.disabled,value:i.value},1,r)],c=[t(0,i.text)],a.push(t("span",{style:"color:"+h.forecolor+";font-size:"+h.fontsize+g+";letter-spacing:"+h.letterspacing+g+";font-family:"+h.fontfamily+";margin-left:"+h.textSpace+g},c)),n="",o||(n+="margin-","row"==h.rank?n+="left":n+="top",n+=":"+h.itemSpace+g),p.push(t("label",{class:"cF cH cI",style:n},a))}return s?p.push(s):p.push(s=t("div",{_:"a;",class:"cr dT di"})),l="cr dR cF","hidden"==h.overflow?l+=" dA":"visible"==h.overflow?l+=" dB":l+=" cA cB dC","column"==h.rank&&(l+=" cG"),b&&(l+=" dj"),d=[t("div",{style:"left:"+h.x+g+";top:"+h.y+g+";height:"+h.height+g+";opacity:"+h.alpha+";width:"+h.width+g+";transform:rotate("+h.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:l},p)],t(i,0,d)},_f0:({items:e})=>e&&e.length,assign(e){this.set(e)},render(){this.digest()}}).merge(l)})),define("27/form-radio/index",["1h"],((e,t,i)=>{let s={checked:"checked"},o=e("1h"),{View:r,node:d,dispatch:l,isArray:a,isObject:n}=o;i.exports=r.extend({tmpl:(e,t,i)=>{let o,r,d,l,a,n,{props:c,unit:p}=e;n=[];for(let e=c.items,i=e.length,o=0;o<i;o+=1){let i=e[o],r=0===o;a=[t("input",{name:c.inputName,class:"bM",type:"radio",checked:i.checked,disabled:i.disabled,value:i.value},1,s)],l=[t(0,i.text)],a.push(t("span",{style:"color:"+c.forecolor+";font-size:"+c.fontsize+p+";letter-spacing:"+c.letterspacing+p+";font-family:"+c.fontfamily+";margin-left:"+c.textSpace+p},l)),d="",r||(d+="margin-","row"==c.rank?d+="left":d+="top",d+=":"+c.itemSpace+p),n.push(t("label",{class:"cF cH cI",style:d},a))}return r="cr dR cF","hidden"==c.overflow?r+=" dA":"visible"==c.overflow?r+=" dB":r+=" cA cB dC","column"==c.rank&&(r+=" cG"),o=[t("div",{style:"left:"+c.x+p+";top:"+c.y+p+";height:"+c.height+p+";opacity:"+c.alpha+";width:"+c.width+p+";transform:rotate("+c.rotate+"deg)",class:r},n)],t(i,0,o)},assign(e){let{props:t}=e,{items:i,bind:s}=t;if(s.id&&s.fields.length){i.length=0;let e=s._data,t=s.fields[0].id;a(e)||(e=[e]);for(let s of e){let e=s[t];n(e)&&i.push(e)}}this.set(e)},render(){this.digest()}})})),define("27/formula/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/formula/index"})}}).static({type:"formula",title:"gs",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(50),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),fontsize:s.bK(14),color:"#000",text:"\\sqrt{x^2+1}",ow:"www.mathjax.org",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(20),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(20),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"d1",type:r.bJ,read:d.bM,write:d.bR,fixed:s.cy,step:s.bV,key:"fontsize",_c6:1,min:()=>s.bK(10),max:()=>s.bK(100),json:1},{tip:"d5",key:"color",type:r.bK,json:1},{tip:"dF",key:"text",type:r.bO,json:1},{type:r.c_},{tip:"dM",key:"ow",type:r.b4},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/formula/index",["1h","../../24/mathjax"],((e,t,i)=>{let s=e("1h"),o=e("../../24/mathjax"),{View:r,mark:d}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,html:l}=e;return o=[t(0,l,1)],s=[t("div",{class:"cr dA dR",style:"left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);padding:2px;color:"+r.color+";font-size:"+r.fontsize+d},o)],t(i,0,s)},assign(e){this.set(e)},async render(){let e=d(this,"_bQ");try{if(window.MathJax||await this.digest({html:"loading..."}),await o(),e()){let e=this.get("props").text,t=this._hd;e!=this._he&&(this._he=e,t=MathJax.tex2svg(e,{em:12,ex:6}).innerHTML,this._hd=t),this.digest({html:t})}}catch(t){e()&&this.digest({html:t})}}})})),define("27/form-dropdown/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{guid:n,config:c}=s;i.exports=a.extend({ctor(){this.set({view:"27/form-dropdown/dshow"})}}).static({type:"form-dropdown",title:"gi",icon:"",_dd:r.bR|r.bS|r.bW|r.bZ|r.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",height:o.bK(25),alpha:1,text:"",letterspacing:0,inputName:n("rd-dropdown-"),x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(200),markAs:"",className:"",multipleSelect:!1,items:[],bind:{url:"",id:"",fields:[]},forecolor:"#000",fontsize:o.bK(14),fontfamily:"Microsoft YaHei",locked:!1}),props:[{tip:"dz",type:d.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dA",type:d.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dB",type:d.bJ,key:"width",_c6:1,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dC",key:"height",_c6:1,type:d.bJ,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_},{tip:"f2",key:"inputName",type:d.bS,json:1},{tip:"gj",key:"markAs",type:d.bS,json:1},{tip:"gk",key:"className",type:d.bS,json:1},{tip:"gl",key:"multipleSelect",type:d.bL,write(e,t){if(!e){let e,{items:i}=t;for(let t of i)t.checked&&(e?t.checked=!1:e=1);e||(i[0].checked=!0)}return e},json:1},{tip:"ga",key:"overflowHidden",type:d.bL,json:1},{type:d.c_,_fZ:e=>!e.items.length&&c("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:e=>!e.items.length&&c("getFieldUrl")},{type:d.c_,_fZ:e=>!e.bind.id},{key:"items",type:d.ck,json:1,_fZ:e=>!e.bind.id,mutual:e=>e.multipleSelect},{type:d.c_},{tip:"d1",key:"fontsize",_c6:1,type:d.bJ,min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"d2",key:"fontfamily",type:d.bQ,items:o.cu,json:1},{tip:"d3",key:"letterspacing",type:d.bJ,min:0,_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"d5",key:"forecolor",type:d.bK,json:1},{type:d.c_},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/form-dropdown/dshow",["1h","../../24/2v"],((e,t,i)=>{let s,o={class:"cF cI cZ cj ck"},r={selected:"selected"},d=e("1h"),l=e("../../24/2v"),{View:a}=d;i.exports=a.extend({tmpl:(e,t,i)=>{let d,l,a,n,c,{props:p,enter:h,unit:b}=e;if(c=[],p.bind&&p.bind.fields&&p.bind.fields.length)a=[t(0,"[bind:"+p.bind.fields[0].id+"]")],c.push(t("div",o,a));else{a=[];for(let e=p.items,i=e.length,s=0;s<i;s+=1){let i=e[s];n=[t(0,i.text)],a.push(t("option",{disabled:i.disabled,selected:i.checked,value:i.value},n,r))}l="cj ck",p.className&&(l+=" "+p.className),c.push(t("select",{multiple:p.multipleSelect,style:"color:"+p.forecolor+";font-size:"+p.fontsize+b+";letter-spacing:"+p.letterspacing+b+";font-family:"+p.fontfamily,name:p.inputName,class:l},a))}return s?c.push(s):c.push(s=t("div",{_:"a;",class:"cr dT di"})),l="cr dR cF","hidden"==p.overflow?l+=" dA":"visible"==p.overflow?l+=" dB":l+=" dC","column"==p.rank&&(l+=" cG"),h&&(l+=" dj"),d=[t("div",{style:"left:"+p.x+b+";top:"+p.y+b+";height:"+p.height+b+";opacity:"+p.alpha+";width:"+p.width+b+";transform:rotate("+p.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:l},c)],t(i,0,d)},_f0:({items:e})=>e&&e.length,assign(e){this.set(e)},render(){this.digest()}}).merge(l)})),define("27/form-dropdown/index",["1h"],((e,t,i)=>{let s={selected:"selected"},o=e("1h"),{View:r,node:d,dispatch:l,isArray:a,isObject:n}=o;i.exports=r.extend({tmpl:(e,t,i)=>{let o,r,d,l,a,{props:n,unit:c}=e;l=[];for(let e=n.items,i=e.length,o=0;o<i;o+=1){let i=e[o];d=[t(0,i.text)],l.push(t("option",{disabled:i.disabled,selected:i.checked,value:i.value},d,s))}return r="cj ck",n.className&&(r+=" "+n.className),a=[t("select",{multiple:n.multipleSelect,style:"color:"+n.forecolor+";font-size:"+n.fontsize+c+";letter-spacing:"+n.letterspacing+c+";font-family:"+n.fontfamily,name:n.inputName,class:r},l)],r="cr dR cF cI ","hidden"==n.overflow?r+=" dA":"visible"==n.overflow?r+=" dB":r+=" dC",o=[t("div",{style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)",class:r},a)],t(i,0,o)},assign(e){let{props:t}=e,{items:i,bind:s,multipleSelect:o}=t;if(s.id&&s.fields.length){i.length=0;let e=s._data,t=s.fields[0].id;a(e)||(e=[e]);for(let s of e){let e=s[t];n(e)&&i.push({...e})}}if(!o){let e;for(let t=i.length;t--;){let s=i[t];e?s.checked&&(s.checked=!1):s.checked&&(e=1)}}this.set(e)},render(){this.digest()}})})),define("27/fx/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/fx/dshow"})}}).static({type:"fx",title:"gt",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(300),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(400),title:"",grid:!1,zoom:!0,xLine:!0,yLine:!0,xAxisRange:[-10,10],xAxisTitle:"",yAxisRange:[-1,10],yAxisTitle:"",data:[{color:"#e16632",fn:"x^2",graphType:"interval",closed:!1}],annotations:[],ow:"github.com/mauriciopoppe/function-plot",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(20),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(20),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"eg",key:"title",type:r.bS,json:1},{tip:"gu",key:"grid",type:r.bL,json:1},{tip:"gv",key:"zoom",type:r.bL,json:1},{tip:"gw",key:"xAxisTitle",type:r.bS,json:1},{tip:"gx",type:r.b5,key:"xAxisRange",json:1},{tip:"gy",key:"yAxisTitle",type:r.bS,json:1},{tip:"gz",type:r.b5,key:"yAxisRange",json:1},{tip:"gA",type:r.bL,key:"xLine",json:1},{tip:"gB",type:r.bL,key:"yLine",json:1},{type:r.c_},{key:"data",type:r.b6,json:1},{type:r.c_},{key:"annotations",type:r.b7,json:1},{type:r.c_},{tip:"dM",key:"ow",type:r.b4},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/fx/dshow",["1h","../../1g/1j","../../24/fx"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../24/fx"),{View:d,mark:l,node:a}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,html:a}=e;return o=[t(0,a)],r=[t("div",{class:"cr",id:"ld_"+i},o),t("div",{id:"fx_"+i})],s=[t("div",{class:"cr dA dR",style:"left:"+d.x+l+";top:"+d.y+l+";height:"+d.height+l+";opacity:"+d.alpha+";width:"+d.width+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){this.set(e)},async render(){let e=l(this,"_bQ");try{if(window.functionPlot?await this.digest():await this.digest({html:"loading..."}),await r(),e()){let{title:e,width:t,height:i,xAxisRange:s,xAxisTitle:r,yAxisRange:d,yAxisTitle:l,grid:n,zoom:c,xLine:p,yLine:h,data:b,annotations:g}=this.get("props"),y=a(`fx_${this.id}`),f=a(`ld_${this.id}`);this._hf!=e||this._cx!=t||this._cy!=i||this._hg!=s.join(",")||this._hh!=r||this._hi!=d.join(",")||this._hj!=l||this._hk!=n||this._hl!=c||this._b2!=p||this._b3!=h||this._eO!=JSON.stringify(b)||this._hm!=g.join(",")?(y.innerHTML="",this._b2=p,this._b3=h,this._hg=s.join(","),this._hi=d.join(","),this._hm=g.join(","),this._eO=JSON.stringify(b),functionPlot({target:y,width:this._cx=o.bX(t),height:this._cy=o.bX(i),yAxis:{domain:d,label:this._hj=l},xAxis:{domain:s,label:this._hh=r},tip:{xLine:p,yLine:h},grid:n,disableZoom:c,title:this._hf=e,data:o.bU(b),annotations:o.bU(g)}),f.innerHTML=" "):this.digest()}}catch(t){e()&&this.digest({html:t})}}})})),define("27/fx/index",["1h","../../1g/1j","../../24/fx"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../24/fx"),{View:d,mark:l,node:a}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,html:a}=e;return o=[t(0,a)],r=[t("div",{class:"cr",id:"ld_"+i},o),t("div",{id:"fx_"+i})],s=[t("div",{class:"cr dA dR",style:"left:"+d.x+l+";top:"+d.y+l+";height:"+d.height+l+";opacity:"+d.alpha+";width:"+d.width+l+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){this.set(e)},async render(){let e=l(this,"_bQ");try{if(window.functionPlot?await this.digest():await this.digest({html:"loading..."}),await r(),e()){let{title:e,width:t,height:i,xAxisRange:s,xAxisTitle:r,yAxisRange:d,yAxisTitle:l,grid:n,zoom:c,xLine:p,yLine:h,data:b,annotations:g}=this.get("props"),y=a(`fx_${this.id}`),f=a(`ld_${this.id}`);y.innerHTML="",functionPlot({target:y,width:this._cx=o.bX(t),height:this._cy=o.bX(i),yAxis:{domain:d,label:this._hj=l},xAxis:{domain:s,label:this._hh=r},tip:{xLine:p,yLine:h},grid:n,disableZoom:c,title:this._hf=e,data:b,annotations:g}),f.innerHTML=" "}}catch(t){e()&&this.digest({html:t})}}})})),define("27/heat/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/heat/dshow"})}}).static({type:"heat",title:"gC",icon:"",_dd:o.bR|o.bS|o.bY|o.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(30),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(120),locked:!1,bars:10,barWidth:s.bK(8),background:"#ececec",fillcolor:"#fa742b",value:50,textFormat:"",starSize:s.bK(24),bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"eC",key:"value",type:r.bJ,min:0,max:100,json:1,fixed:1,_fZ:e=>!e.bind.id},{type:r.c_,_fZ:e=>!e.bind.id},{tip:"dG",key:"bind",type:r.bT,json:1,max:1},{tip:"eD",type:r.cf,key:"textFormat",json:1,_fZ:e=>e.bind.id},{type:r.c_},{tip:"gD",key:"bars",type:r.bJ,min:2,max:30,json:1},{tip:"gE",key:"barWidth",type:r.bJ,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:()=>s.bK(2),json:1},{tip:"d4",key:"background",type:r.bK,json:1},{tip:"eE",key:"fillcolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/heat/dshow",["1h","../../24/2v"],((e,t,i)=>{let s={class:"cF cI cY ck"},o=e("1h"),r=e("../../24/2v"),{View:d}=o;i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d,l,a,{enter:n,props:c,unit:p,value:h,step:b}=e;d=[];for(let e=0;e<c.bars;e++)d.push(t("div",{style:"height:80%;width:"+c.barWidth+p+";background:"+c.background+";border-radius:"+c.barWidth/2+p}));a=[t("div",s,d)],l=[];for(let e=0;e<c.bars;e++)l.push(t("div",{style:"height:80%;opacity:"+e*b*100+"%;width:"+c.barWidth+p+";background:"+c.fillcolor+";border-radius:"+c.barWidth/2+p}));return d=[t("div",{class:"cF cI cY ck",style:"width:"+c.width+p},l)],a.push(t("div",{class:"cr dA di",style:"width:"+h+"%"},d)),r="dR dA cr",n&&(r+=" dj"),o=[t("div",{style:"left:"+c.x+p+";top:"+c.y+p+";height:"+c.height+p+";opacity:"+c.alpha+";width:"+c.width+p+";transform:rotate("+c.rotate+"deg);color:"+c.background,"mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:r},a)],t(i,0,o)},assign(e){this.set(e);let{props:t}=e,{bind:i,value:s,bars:o}=t;i.id&&(s=60),this.set({step:1/o,value:s})},render(){this.digest()}}).merge(r)})),define("27/heat/index",["1h","../../24/format"],((e,t,i)=>{let s={class:"cF cI cY ck"},o=e("1h"),r=e("../../24/format"),{View:d,isArray:l}=o;i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d,l,{props:a,unit:n,value:c,step:p}=e;r=[];for(let e=0;e<a.bars;e++)r.push(t("div",{style:"height:80%;width:"+a.barWidth+n+";background:"+a.background+";border-radius:"+a.barWidth/2+n}));l=[t("div",s,r)],d=[];for(let e=0;e<a.bars;e++)d.push(t("div",{style:"height:80%;opacity:"+e*p*100+"%;width:"+a.barWidth+n+";background:"+a.fillcolor+";border-radius:"+a.barWidth/2+n}));return r=[t("div",{class:"cF cI cY ck",style:"width:"+a.width+n},d)],l.push(t("div",{class:"cr dA di",style:"width:"+c+"%"},r)),o=[t("div",{class:"cr",style:"left:"+a.x+n+";top:"+a.y+n+";height:"+a.height+n+";opacity:"+a.alpha+";width:"+a.width+n+";transform:rotate("+a.rotate+"deg);color:"+a.background},l)],t(i,0,o)},assign(e){this.set(e);let{props:t}=e,{bind:i,value:s,textFormat:o,bars:d}=t,a="";if(i.id){let e=i.fields[0];if(i._tip)a=i._tip,s=60;else if(i._data){let d=i._data;l(d)&&(d=d[0]),s=d[e.id],s=r._ge(o,s,t),!isNaN(s)&&isFinite(s)||(s=0),s<0?s=0:s>100&&(s=100)}else a=`[\u7ed1\u5b9a:${e.name}]`,s=60}this.set({step:1/d,value:s,text:a})},render(){this.digest()}})})),define("27/hod-header/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{State:n}=s,c=["width","height","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"];i.exports=a.extend({ctor(){this.set({view:"27/hod-header/dshow"});let e=()=>{let e=this.get("element"),t=n.get("bV"),i=n.get("bL"),{ctrl:s,props:o}=e;o.rows[0].cols[0].width=t.width*i,s._cF(o)};n.on("bP",e),this.on("destroy",(()=>{n.off("bP",e)}))}}).static({type:"hod-header",as:r.bJ,title:"gH",icon:"",_cC:{root:1},_dd:r.bW|r.bZ,_cD:1,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{rows:t}=e,i=0,s=0;for(let e of t){let t=0;for(let i of e.cols)t+=i.width;t>s&&(s=t),i+=e.height}e.width=s,e.height=i},_c4(){let e=n.get("bV");return{x:0,y:0,pinX:!0,pinY:!0,help:"//github.com/xinglie/report-designer/issues/12",alpha:1,focusRow:-1,focusCol:-1,rows:[{height:o.bK(40),cols:[{width:e.width,elements:[],borderLeftTopRadius:0,borderRightTopRadius:0,borderLeftBottomRadius:0,borderRightBottomRadius:0,borderLeftStyle:"dashed",borderLeftWidth:0,borderLeftColor:"#cccccc",borderTopStyle:"dashed",borderTopWidth:0,borderTopColor:"#cccccc",borderRightStyle:"dashed",borderRightWidth:0,borderRightColor:"#cccccc",borderBottomStyle:"dashed",borderBottomWidth:o.bK(1),borderBottomColor:"#cccccc"}]}],locked:!1}},props:[{key:"rows",_e5(e,{rows:t}){l.bZ(e,t,c)},_ep({rows:e},t){l.b0(e,t,c)},_c5(e,t,i){l.bY(e,t,c,i)}},{key:"x",json:1},{key:"y",json:1},{tip:"dB",key:"width",read:l.bM,type:d.bV,json:1},{tip:"dC",key:"height",read:l.bM,type:d.bV,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:d.c_,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"gG",type:d.bJ,read(e,t){let i=t.rows[0];return l.bM(i.height)},write(e,t){let i=l.bR(e);t.rows[0].height=i},fixed:o.cy,step:o.bV,min:()=>o.bK(20),_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:d.bY,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:d.c_},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/hod-header/dshow",["1h","../../1g/1j","../../1o/1p/index","../../24/31","../../24/hodflex"],((e,t,i)=>{let s,o={class:"cF"},r=e("1h"),d=e("../../1g/1j"),l=e("../../1o/1p/index"),a=e("../../24/31"),n=e("../../24/hodflex"),{View:c}=r;i.exports=c.extend({tmpl:(e,t,i,r,d,l,a)=>{let n,c,p,h,b,g,y,f,{props:x,unit:_,selectRect:u,srRow:m,srCol:k,element:w,fs:v,selected:j,count:K,grouped:R,toPx:J,i18n:M}=e;f=[];let L=Math.max,S=Math.min;for(let e=x.rows,n=e.length,X=0;X<n;X+=1){let n=e[X];y=[];for(let e=n.cols,o=e.length,f=0;f<o;f+=1){let o=e[f];g=[],p=[];for(let e=o.elements,s=e.length,n=0;n<s;n+=1){let s=e[n];p.push(t("div",{"mx5-owner":i,$:"props,fs,unit",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"&fs="+l(d,v,"b_")+"&ownerId=_rd_h_"+r(w.id)+"_"+r(X)+"_"+r(f)+"&maskId=_rd_hm_"+r(w.id)+"_"+r(X)+"_"+r(f)+"&unit="+l(d,_,"ba"),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"',maskId:'_rd_hm_"+a(w.id)+"_"+a(X)+"_"+a(f)+"'})"}))}if(g.push(t("div",{class:"cj ck cs dA","data-as":"hod","mx5-contextmenu":i+"\x1e_gC({row:"+X+",col:"+f+"})",id:"_rd_hm_"+w.id+"_"+X+"_"+f},p)),!v&&!x.locked){let e=x.focusRow==X&&x.focusCol==f&&j&&1==K;if(p=[],e&&!R){b="";let e=S(26,J(o.width)-2)-4;b+=" ";let s=(J(o.width)-e)/2;p.push(t("div",{class:"cr cu df eb",style:"width:"+L(e,0)+"px;left:"+s+"px;cursor:ns-resize",title:M("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'bm'})"}))}h="cr dh dR ct",e&&(h+=" dc"),c="",e&&(c+="border-top-style:"+o.borderTopStyle+";border-right-style:"+o.borderRightStyle+";border-bottom-style:"+o.borderBottomStyle+";border-left-style:"+o.borderLeftStyle),g.push(t("div",{id:"_rd_dm_"+w.id+"_"+X+"_"+f,class:h,style:c},p))}!x.readonly&&!v&&o.elements&&o.elements.length&&(p=[s||(s=t(0,"\ue647"))],g.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:M("ff")},p))),u&&m==X&&k==f&&g.push(t("div",{class:"cr ct dP",style:"display:block;left:"+u.x+"px;top:"+u.y+"px;width:"+u.width+"px;height:"+u.height+"px"})),c="position:relative;height:"+n.height+_+";width:"+o.width+_+";border-top:"+o.borderTopStyle+" "+o.borderTopWidth+_+" "+o.borderTopColor+";border-right:"+o.borderRightStyle+" "+o.borderRightWidth+_+" "+o.borderRightColor+";border-bottom:"+o.borderBottomStyle+" "+o.borderBottomWidth+_+" "+o.borderBottomColor+";border-left:"+o.borderLeftStyle+" "+o.borderLeftWidth+_+" "+o.borderLeftColor+";border-radius:"+o.borderLeftTopRadius+_+" "+o.borderRightTopRadius+_+" "+o.borderRightBottomRadius+_+" "+o.borderLeftBottomRadius+"px;",u&&m==X&&k==f&&(c+="overflow:hidden"),y.push(t("div",{"mx5-pointerdown":i+"\x1e_gw({row:"+X+",col:"+f+",elm:1})",id:"_rd_h_"+w.id+"_"+X+"_"+f,class:"eb",style:c},g))}f.push(t("div",o,y))}return n=[t("div",{class:"cF cG cr dR",style:"left:"+x.x+_+";top:"+x.y+_+";opacity:"+x.alpha+";width:"+x.width+_+";height:"+x.height+_},f)],t(i,0,n)},init(){this.set({toPx:d.bX,toUnit:d.bK})},assign(e){this.set(e)},render(){this.digest()}}).merge(l,a,n)})),define("27/hod-header/index",["1h"],((e,t,i)=>{let s={class:"cF"},o=e("1h");i.exports=o.View.extend({tmpl:(e,t,i,o,r,d)=>{let l,a,n,c,{props:p,unit:h}=e;c=[];for(let e=p.rows,o=e.length,l=0;l<o;l+=1){let o=e[l];n=[];for(let e=o.cols,s=e.length,c=0;c<s;c+=1){let s=e[c];a=[];for(let e=s.elements,o=e.length,n=0;n<o;n+=1){let s=e[n];a.push(t("div",{"mx5-owner":i,$:"props,unit","mx5-view":"27/"+s.type+"/index?props="+d(r,s.props,"a;."+l+".a:."+c+".a-."+n+".a+")+"&unit="+d(r,h,"b_")}))}n.push(t("div",{class:"cj ck cs dA",style:"height:"+o.height+h+";width:"+s.width+h+";border-top:"+s.borderTopStyle+" "+s.borderTopWidth+h+" "+s.borderTopColor+";border-right:"+s.borderRightStyle+" "+s.borderRightWidth+h+" "+s.borderRightColor+";border-bottom:"+s.borderBottomStyle+" "+s.borderBottomWidth+h+" "+s.borderBottomColor+";border-left:"+s.borderLeftStyle+" "+s.borderLeftWidth+h+" "+s.borderLeftColor+";border-radius:"+s.borderLeftTopRadius+h+" "+s.borderRightTopRadius+h+" "+s.borderRightBottomRadius+h+" "+s.borderLeftBottomRadius+h},a))}c.push(t("div",s,n))}return l=[t("div",{class:"cF cG cr dR",style:"left:"+p.x+h+";top:"+p.y+h+";opacity:"+p.alpha+";width:"+p.width+h+";height:"+p.height+h},c)],t(i,0,l)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/hod-header/stage",["1h"],((e,t,i)=>{let s={class:"cF"},o=e("1h"),{State:r,View:d,LOW:l}=o;i.exports=d.extend({tmpl:(e,t,i,o,r,d)=>{let l,a,n,c,{props:p,unit:h}=e;c=[];for(let e=p.rows,o=e.length,l=0;l<o;l+=1){let o=e[l];n=[];for(let e=o.cols,s=e.length,c=0;c<s;c+=1){let s=e[c];a=[];for(let e=s.elements,o=e.length,n=0;n<o;n+=1){let s=e[n];a.push(t("div",{"mx5-owner":i,$:"props,unit","mx5-view":"27/"+s.type+"/index?props="+d(r,s.props,"a;."+l+".a:."+c+".a-."+n+".a+")+"&unit="+d(r,h,"b_")}))}n.push(t("div",{class:"cj ck cs dA",style:"height:"+o.height+h+";width:"+s.width+h+";border-top:"+s.borderTopStyle+" "+s.borderTopWidth+h+" "+s.borderTopColor+";border-right:"+s.borderRightStyle+" "+s.borderRightWidth+h+" "+s.borderRightColor+";border-bottom:"+s.borderBottomStyle+" "+s.borderBottomWidth+h+" "+s.borderBottomColor+";border-left:"+s.borderLeftStyle+" "+s.borderLeftWidth+h+" "+s.borderLeftColor+";border-radius:"+s.borderLeftTopRadius+h+" "+s.borderRightTopRadius+h+" "+s.borderRightBottomRadius+h+" "+s.borderLeftBottomRadius+h},a))}c.push(t("div",s,n))}return l=[t("div",{class:"cF cG cr dR",style:"left:"+p.x+h+";top:"+p.y+h+";opacity:"+p.alpha+";width:"+p.width+h+";height:"+p.height+h},c)],t(i,0,l)},init(){let e=this._bT((()=>{let e=this.get("props");this.digest({props:e})}));r.on("bL",e,l),this.on("destroy",(()=>{r.off("bL",e)}))},assign(e){this.set(e)},render(){this.digest()}})})),define("27/hod-hflex/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/cell","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../../24/cell"),a=e("../2u"),n=["width","height","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"];i.exports=a.extend({ctor(){this.set({view:"27/hod-hflex/dshow"})}}).static({type:"hod-hflex",as:o.bJ,title:"gI",icon:"",_dd:o.bW|o.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{rows:t}=e,i=0,s=0;for(let e of t){let t=0;for(let i of e.cols)t+=i.width;t>s&&(s=t),i+=e.height}e.width=s,e.height=i},_c4(e,t){let i=s.bK(1);return{x:s.bK(e),y:s.bK(t),alpha:1,focusRow:-1,focusCol:-1,help:"//github.com/xinglie/report-designer/issues/12",rows:[{height:s.bK(l._gG),cols:[{width:s.bK(l._gH),elements:[],borderLeftStyle:"solid",borderLeftWidth:i,borderLeftTopRadius:0,borderRightTopRadius:0,borderLeftBottomRadius:0,borderRightBottomRadius:0,borderLeftColor:"#000",borderTopStyle:"solid",borderTopWidth:i,borderTopColor:"#000",borderRightStyle:"solid",borderRightWidth:i,borderRightColor:"#000",borderBottomStyle:"solid",borderBottomWidth:i,borderBottomColor:"#000"}]}],locked:!1}},props:[{key:"rows",_e5(e,{rows:t}){d.bZ(e,t,n)},_ep({rows:e},t){d.b0(e,t,n)},_c5(e,t,i){d.bY(e,t,n,i)}},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",key:"width",read:d.bM,type:r.bV,json:1},{tip:"dC",key:"height",read:d.bM,type:r.bV,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eK",type:r.bZ,_gr:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eM",type:r.b0,_gr:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:r.bY,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/hod-hflex/dshow",["1h","../../1g/1j","../../1o/1p/index","../../24/31","../../24/hodflex"],((e,t,i)=>{let s,o={class:"cF"},r=e("1h"),d=e("../../1g/1j"),l=e("../../1o/1p/index"),a=e("../../24/31"),n=e("../../24/hodflex"),{View:c}=r;i.exports=c.extend({tmpl:(e,t,i,r,d,l,a)=>{let n,c,p,h,b,g,y,f,{props:x,unit:_,selectRect:u,srRow:m,srCol:k,element:w,fs:v,selected:j,count:K,grouped:R,toPx:J,i18n:M}=e;f=[];let L=Math.max,S=Math.min;for(let e=x.rows,n=e.length,X=0;X<n;X+=1){let n=e[X];y=[];for(let e=n.cols,o=e.length,f=0;f<o;f+=1){let o=e[f];g=[],p=[];for(let e=o.elements,s=e.length,n=0;n<s;n+=1){let s=e[n];p.push(t("div",{"mx5-owner":i,$:"props,fs,unit",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"&fs="+l(d,v,"b_")+"&ownerId=_rd_h_"+r(w.id)+"_"+r(X)+"_"+r(f)+"&maskId=_rd_hm_"+r(w.id)+"_"+r(X)+"_"+r(f)+"&unit="+l(d,_,"ba"),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"',maskId:'_rd_hm_"+a(w.id)+"_"+a(X)+"_"+a(f)+"'})"}))}if(g.push(t("div",{class:"cj ck cs dA","data-as":"hod","mx5-contextmenu":i+"\x1e_gC({row:"+X+",col:"+f+"})",id:"_rd_hm_"+w.id+"_"+X+"_"+f},p)),!v&&!x.locked){let e=x.focusRow==X&&x.focusCol==f&&j&&1==K;if(p=[],e&&!R){b="";let e=S(26,J(n.height)-2)-4;b+=" ";let s=S(26,J(o.width)-2)-4;b+=" ";let r=(J(n.height)-e)/2-2;b+=" ";let d=(J(o.width)-s)/2-2;p.push(t("div",{class:"cr cu dd eb",style:"height:"+L(e,0)+"px;top:"+r+"px;cursor:ew-resize",title:M("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+L(e,0)+"px;top:"+r+"px;cursor:ew-resize",title:M("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+L(s,0)+"px;left:"+d+"px;cursor:ns-resize",title:M("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+L(s,0)+"px;left:"+d+"px;cursor:ns-resize",title:M("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'tm'})"}))}h="cr dh dR ct",e&&(h+=" dc"),c="",e&&(c+="border-top-style:"+o.borderTopStyle+";border-right-style:"+o.borderRightStyle+";border-bottom-style:"+o.borderBottomStyle+";border-left-style:"+o.borderLeftStyle),g.push(t("div",{id:"_rd_dm_"+w.id+"_"+X+"_"+f,class:h,style:c},p))}!x.readonly&&!v&&o.elements&&o.elements.length&&(p=[s||(s=t(0,"\ue647"))],g.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:M("ff")},p))),u&&m==X&&k==f&&g.push(t("div",{class:"cr ct dP",style:"display:block;left:"+u.x+"px;top:"+u.y+"px;width:"+u.width+"px;height:"+u.height+"px"})),c="position:relative;height:"+n.height+_+";width:"+o.width+_+";border-top:"+o.borderTopStyle+" "+o.borderTopWidth+_+" "+o.borderTopColor+";border-right:"+o.borderRightStyle+" "+o.borderRightWidth+_+" "+o.borderRightColor+";border-bottom:"+o.borderBottomStyle+" "+o.borderBottomWidth+_+" "+o.borderBottomColor+";border-left:"+o.borderLeftStyle+" "+o.borderLeftWidth+_+" "+o.borderLeftColor+";border-radius:"+o.borderLeftTopRadius+_+" "+o.borderRightTopRadius+_+" "+o.borderRightBottomRadius+_+" "+o.borderLeftBottomRadius+_+";",u&&m==X&&k==f&&(c+="overflow:hidden"),y.push(t("div",{"mx5-pointerdown":i+"\x1e_gw({row:"+X+",col:"+f+",elm:1})",id:"_rd_h_"+w.id+"_"+X+"_"+f,class:"eb",style:c},g))}f.push(t("div",o,y))}return n=[t("div",{class:"cF cG cr dR",style:"left:"+x.x+_+";top:"+x.y+_+";opacity:"+x.alpha+";width:"+x.width+_+";height:"+x.height+_},f)],t(i,0,n)},init(){this.set({toPx:d.bX,toUnit:d.bK})},assign(e){this.set(e)},render(){this.digest()}}).merge(l,a,n)})),define("27/hod-hflex/index",["1h"],((e,t,i)=>{let s={class:"cF"},o=e("1h");i.exports=o.View.extend({tmpl:(e,t,i,o,r,d)=>{let l,a,n,c,{props:p,unit:h}=e;c=[];for(let e=p.rows,o=e.length,l=0;l<o;l+=1){let o=e[l];n=[];for(let e=o.cols,s=e.length,c=0;c<s;c+=1){let s=e[c];a=[];for(let e=s.elements,o=e.length,n=0;n<o;n+=1){let s=e[n];a.push(t("div",{"mx5-owner":i,$:"props,unit","mx5-view":"27/"+s.type+"/index?props="+d(r,s.props,"a;."+l+".a:."+c+".a-."+n+".a+")+"&unit="+d(r,h,"b_")}))}n.push(t("div",{class:"cj ck cs dA",style:"height:"+o.height+h+";width:"+s.width+h+";border-top:"+s.borderTopStyle+" "+s.borderTopWidth+h+" "+s.borderTopColor+";border-right:"+s.borderRightStyle+" "+s.borderRightWidth+h+" "+s.borderRightColor+";border-bottom:"+s.borderBottomStyle+" "+s.borderBottomWidth+h+" "+s.borderBottomColor+";border-left:"+s.borderLeftStyle+" "+s.borderLeftWidth+h+" "+s.borderLeftColor+";border-radius:"+s.borderLeftTopRadius+h+" "+s.borderRightTopRadius+h+" "+s.borderRightBottomRadius+h+" "+s.borderLeftBottomRadius+h},a))}c.push(t("div",s,n))}return l=[t("div",{class:"cF cG cr dR",style:"left:"+p.x+h+";top:"+p.y+h+";opacity:"+p.alpha+";width:"+p.width+h+";height:"+p.height+h},c)],t(i,0,l)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/hod-table/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/table","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../../24/table"),a=e("../2u"),n=["width","height"];i.exports=a.extend({ctor(){this.set({view:"27/hod-table/dshow"})}}).static({type:"hod-table",as:o.bJ,title:"gJ",icon:"",_dd:o.bW|o.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{borderwidth:t,borderdeed:i,rows:o}=e;e._gn&&e._go||(e=l.bJ(e));let r=s.bK(1),d=l.bK(e),a=0,n=0;for(let e of d._gp)n+=e;for(let e of d._gq)a+=e;a+="separate"==i?2*(o.length+1)*r:t,e.width=n+t,e.height=a},_c4(e,t){let i={height:s.bK(30),width:s.bK(150),bLeft:!0,bTop:!0,bRight:!0,bBottom:!0,rowspan:1,colspan:1};return{x:s.bK(e),y:s.bK(t),alpha:1,borderwidth:s.bK(1),bordercolor:"#000",borderdeed:"collapse",bordertype:"solid",focusRow:-1,focusCol:-1,help:"//github.com/xinglie/report-designer/issues/12",rows:[{cols:[{...i,elements:[]},{...i,elements:[]}]},{cols:[{...i,elements:[]},{...i,elements:[]}]}],locked:!1}},props:[{key:"rows",_e5(e,{rows:t}){d.bZ(e,t,n)},_ep({rows:e},t){d.b0(e,t,n)},_c5(e,t,i){d.bY(e,t,n,i)}},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",key:"width",read:d.bM,type:r.bV,json:1},{tip:"dC",key:"height",read:d.bM,type:r.bV,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"eG",type:r.cm,_gr:1},{type:r.c_},{tip:"d7",key:"borderwidth",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,max:()=>s.bK(10),json:1},{tip:"d8",key:"bordertype",type:r.bQ,items:s.cv,json:1},{tip:"d9",key:"bordercolor",type:r.bK,json:1},{tip:"eH",key:"borderdeed",type:r.bQ,items:[{text:"eI",value:"collapse"},{text:"eJ",value:"separate"}],json:1},{type:r.c_,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eK",type:r.b1,_gr:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eL",type:r.cd,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eM",type:r.bX,_gr:1,_dE:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/hod-table/dshow",["1h","../../1g/1j","../../1o/1p/index","../../24/31"],((e,t,i)=>{let s,o=e("1h"),r=e("../../1g/1j"),d=e("../../1o/1p/index"),l=e("../../24/31"),{View:a}=o;i.exports=a.extend({tmpl:(e,t,i,o,r,d,l)=>{let a,n,c,p,h,b,g,y,f,x,_,{props:u,unit:m,selectRect:k,srRow:w,srCol:v,element:j,fs:K,selected:R,count:J,grouped:M,toPx:L,i18n:S}=e;c="";let X=Math.max,V=Math.min;c+=" ";let Y=u.borderwidth,F=u.bordertype,C=u.bordercolor,T=u.borderdeed,z=u.rows,B=u.readonly;c+=" ";let A=("collapse"==T?1:2)*Y;f=[];for(let e=z.length,n=0;n<e;n+=1){y=[];for(let e=z[n].cols,f=e.length,x=0;x<f;x+=1){let f=e[x];g=[],h=[];for(let e=f.elements,s=e.length,a=0;a<s;a+=1){let s=e[a];h.push(t("div",{"mx5-owner":i,$:"props,fs,unit",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+d(r,s,"a;."+n+".a:."+x+".a-."+a+".a+")+"&fs="+d(r,K,"b_")+"&ownerId=_rd_h_"+o(j.id)+"_"+o(n)+"_"+o(x)+"&maskId=_rd_hm_"+o(j.id)+"_"+o(n)+"_"+o(x)+"&unit="+d(r,m,"ba"),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+d(r,s,"a;."+n+".a:."+x+".a-."+a+".a+")+"',maskId:'_rd_hm_"+l(j.id)+"_"+l(n)+"_"+l(x)+"'})"}))}if(g.push(t("div",{class:"cj ck cs dA","data-as":"hod",id:"_rd_hm_"+j.id+"_"+n+"_"+x,"mx5-contextmenu":i+"\x1e_gC({row:"+n+",col:"+x+"})"},h)),!K&&!u.locked){let e=u.focusRow==n&&u.focusCol==x&&R&&1==J;if(h=[],e&&!M){c="";let e=V(26,L(f.height)-6)-4;c+=" ";let s=V(26,L(f.width)-6)-4;c+=" ";let o=(L(f.height)-e-A)/2-2;c+=" ";let r=(L(f.width)-s-A)/2-2;h.push(t("div",{class:"cr cu dd eb",style:"height:"+X(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:S("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+X(e,0)+"px;top:"+o+"px;cursor:ew-resize",title:S("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+X(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:S("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+X(s,0)+"px;left:"+r+"px;cursor:ns-resize",title:S("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gx({key:'tm'})"}))}p="cr dh dR ct",e&&(p+=" dc"),b="",e&&(f.bLeft||(b+="border-left-style:dotted;"),f.bTop||(b+="border-top-style:dotted;"),f.bRight||(b+="border-right-style:dotted;"),f.bBottom||(b+="border-bottom-style:dotted;")),g.push(t("div",{id:"_rd_dm_"+j.id+"_"+n+"_"+x,class:p,style:b},h))}!B&&!K&&f.elements&&f.elements.length&&(h=[s||(s=t(0,"\ue647"))],g.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:S("ff")},h))),k&&w==n&&v==x&&g.push(t("div",{class:"cr ct dP",style:"display:block;left:"+k.x+"px;top:"+k.y+"px;width:"+k.width+"px;height:"+k.height+"px"})),p="d_ c7 eb",k&&w==n&&v==x&&(p+=" dA"),y.push(t("td",{colspan:null!=(a=f.colspan)&&a,rowspan:null!=(a=f.rowspan)&&a,style:"position:relative;width:"+f.width+m+";height:"+f.height+m+";border-left:"+(Y?F:"dotted")+" "+Y+m+" "+(Y&&f.bLeft?C:"#ddd6")+";border-top:"+(Y?F:"dotted")+" "+Y+m+" "+(Y&&f.bTop?C:"#ddd6")+";border-right:"+(Y?F:"dotted")+" "+Y+m+" "+(Y&&f.bRight?C:"#ddd6")+";border-bottom:"+(Y?F:"dotted")+" "+Y+m+" "+(Y&&f.bBottom?C:"#ddd6"),"mx5-pointerdown":i+"\x1e_gw({row:"+n+",col:"+x+",elm:1})",id:"_rd_h_"+j.id+"_"+n+"_"+x,class:p},g))}f.push(t("tr",0,y))}return x=[t("tbody",0,f)],_=[t("table",{class:"c9 cj",style:"border-collapse:"+T},x)],n=[t("div",{class:"cr dR",style:"left:"+u.x+m+";top:"+u.y+m+";opacity:"+u.alpha+";width:"+u.width+m+";height:"+u.height+m},_)],t(i,0,n)},init(){this.set({toPx:r.bX,toUnit:r.bK})},assign(e){this.set(e)},render(){this.digest()}}).merge(d,l)})),define("27/hod-table/index",["1h"],((e,t,i)=>{let s={class:"cj ck cs dA"},o=e("1h");i.exports=o.View.extend({tmpl:(e,t,i,o,r,d)=>{let l,a,n,c,p,h,b,{props:g,unit:y}=e,f=g.borderwidth,x=g.bordertype,_=g.bordercolor,u=g.borderdeed,m=g.rows;p=[];for(let e=m.length,o=0;o<e;o+=1){c=[];for(let e=m[o].cols,l=e.length,p=0;p<l;p+=1){let l=e[p];a=[];for(let e=l.elements,s=e.length,n=0;n<s;n+=1){let s=e[n];a.push(t("div",{"mx5-owner":i,$:"props,unit",id:s.id,"mx5-view":"27/"+s.type+"/index?props="+d(r,s.props,"a;."+o+".a:."+p+".a-."+n+".a+")+"&unit="+d(r,y,"b_")}))}n=[t("div",s,a)],c.push(t("td",{class:"c7 d_",colspan:1!=l.colspan&&l.colspan,rowspan:1!=l.rowspan&&l.rowspan,style:"position:relative;width:"+l.width+y+";height:"+l.height+y+";border-left:"+(f?x:"dotted")+" "+f+y+" "+(f&&l.bLeft?_:"#0000")+";border-top:"+(f?x:"dotted")+" "+f+y+" "+(f&&l.bTop?_:"#0000")+";border-right:"+(f?x:"dotted")+" "+f+y+" "+(f&&l.bRight?_:"#0000")+";border-bottom:"+(f?x:"dotted")+" "+f+y+" "+(f&&l.bBottom?_:"#0000")},n))}p.push(t("tr",0,c))}return h=[t("tbody",0,p)],b=[t("table",{class:"c9 cj",style:"border-collapse:"+u},h)],l=[t("div",{class:"cr dR",style:"left:"+g.x+y+";top:"+g.y+y+";opacity:"+g.alpha+";width:"+g.width+y+";height:"+g.height+y},b)],t(i,0,l)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/hod-tabs/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/cell","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../../24/cell"),a=e("../2u"),n=["width","height","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"];i.exports=a.extend({ctor(){this.set({view:"27/hod-tabs/dshow"})}}).static({type:"hod-tabs",as:o.bJ,title:"gK",icon:"",_dd:o.bW|o.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{rows:t,activeTab:i}=e,s=0,o=t[0].cols[i].width;for(let e of t){for(let t of e.cols)t.width=o;s+=e.height}e.width=o,e.height=s},_c4:(e,t)=>({x:s.bK(e),y:s.bK(t),alpha:1,focusRow:0,focusCol:0,activeTab:0,help:"//github.com/xinglie/report-designer/issues/12",rows:[{height:s.bK(2*l._gG),cols:[{width:s.bK(2*l._gH),text:"Tab 1",elements:[]},{width:s.bK(2*l._gH),text:"Tab 2",elements:[]}]}],locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",key:"width",read:d.bM,type:r.bV,json:1},{tip:"dC",key:"height",read:d.bM,type:r.bV,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{tip:"gL",type:r.bQ,key:"activeTab",json:1,items({rows:e}){let t=[],i=0;for(let s of e)for(let e of s.cols)t.push({text:e.text,value:i++});return t},write:(e,t)=>(t.focusRow=0,t.focusCol=e,e)},{type:r.cn,key:"rows",_e5(e,{rows:t}){d.bZ(e,t,n)},_ep({rows:e},t){d.b0(e,t,n)},_c5(e,t,i){d.bY(e,t,n,i)}},{type:r.c_,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eK",type:r.bZ,_gr:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/hod-tabs/dshow",["1h","../../1g/1j","../../1g/1t","../../1g/1v","../../1g/22","../../1o/1p/index","../../24/31","../../24/hodflex"],((e,t,i)=>{let s,o={class:"c8 cF cr ct dC dR f0"},r={class:"cr di fZ"},d=e("1h"),l=e("../../1g/1j"),a=e("../../1g/1t"),n=e("../../1g/1v"),c=e("../../1g/22"),p=e("../../1o/1p/index"),h=e("../../24/31"),b=e("../../24/hodflex"),{View:g,applyStyle:y,State:f}=d;y("eP",".fZ{box-shadow:0 -1px #d7dde4}.f0{transform:translate(10px,-100%);width:calc(100% - 20px)}.f1{padding:2px 6px;color:#666}.f2{color:#fa742b;border-bottom:solid 2px #fa742b}"),i.exports=g.extend({tmpl:(e,t,i,d,l,a,n)=>{let c,p,h,b,g,y,f,x,{props:_,unit:u,selectRect:m,srRow:k,srCol:w,element:v,fs:j,selected:K,count:R,grouped:J,toPx:M,i18n:L}=e;x=[],b=[];for(let e=_.rows,s=e.length,o=0;o<s;o+=1){for(let s=e[o].cols,r=s.length,d=0;d<r;d+=1){h=[t(0,s[d].text)],p="f1 cu c3",_.activeTab==d&&(p+=" f2"),b.push(t("div",{"mx5-pointerdown":i+"\x1e_hn()","mx5-click":i+"\x1e_ho({to:"+d+"})",class:p},h))}}x.push(t("div",o,b));let S=Math.max,X=Math.min;for(let e=_.rows,o=e.length,c=0;c<o;c+=1){let o=e[c];b=[];for(let e=o.cols,r=e.length,x=0;x<r;x+=1){let r=e[x];if(x==_.activeTab){h=[],y=[];for(let e=r.elements,s=e.length,o=0;o<s;o+=1){let s=e[o];y.push(t("div",{"mx5-owner":i,$:"props,fs,unit",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+a(l,s,"a;."+c+".a:."+x+".a-."+o+".a+")+"&fs="+a(l,j,"b_")+"&ownerId=_rd_h_"+d(v.id)+"_"+d(c)+"_"+d(x)+"&maskId=_rd_hm_"+d(v.id)+"_"+d(c)+"_"+d(x)+"&unit="+a(l,u,"ba"),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+a(l,s,"a;."+c+".a:."+x+".a-."+o+".a+")+"',maskId:'_rd_hm_"+n(v.id)+"_"+n(c)+"_"+n(x)+"'})"}))}if(h.push(t("div",{class:"cj ck cs dA","data-as":"hod","mx5-contextmenu":i+"\x1e_gC({row:"+c+",col:"+x+"})",id:"_rd_hm_"+v.id+"_"+c+"_"+x},y)),!j&&!_.locked){let e=_.focusRow==c&&_.focusCol==x&&K&&1==R;if(y=[],e&&!J){f="";let e=X(26,M(o.height)-2)-4;f+=" ";let s=X(26,M(r.width)-2)-4;f+=" ";let d=(M(o.height)-e)/2-2;f+=" ";let l=(M(r.width)-s)/2-2;y.push(t("div",{class:"cr cu dd eb",style:"height:"+S(e,0)+"px;top:"+d+"px;cursor:ew-resize",title:L("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+S(e,0)+"px;top:"+d+"px;cursor:ew-resize",title:L("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+S(s,0)+"px;left:"+l+"px;cursor:ns-resize",title:L("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+S(s,0)+"px;left:"+l+"px;cursor:ns-resize",title:L("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'tm'})"}))}p="cr dh dR ct",e&&(p+=" dc"),h.push(t("div",{id:"_rd_dm_"+v.id+"_"+c+"_"+x,class:p},y))}!_.readonly&&!j&&r.elements&&r.elements.length&&(y=[s||(s=t(0,"\ue647"))],h.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:L("ff")},y))),m&&k==c&&w==x&&h.push(t("div",{class:"cr ct dP",style:"display:block;left:"+m.x+"px;top:"+m.y+"px;width:"+m.width+"px;height:"+m.height+"px"})),g="position:relative;height:"+o.height+u+";width:"+r.width+u+";",m&&k==c&&w==x&&(g+="overflow:hidden"),b.push(t("div",{"mx5-pointerdown":i+"\x1e_gw({row:"+c+",col:"+x+",elm:1})",id:"_rd_h_"+v.id+"_"+c+"_"+x,class:"eb",style:g},h))}}x.push(t("div",r,b))}return c=[t("div",{class:"cF cG cr dR",style:"left:"+_.x+u+";top:"+_.y+u+";opacity:"+_.alpha+";width:"+_.width+u+";height:"+_.height+u},x)],t(i,0,c)},init(){this.set({toPx:l.bX,toUnit:l.bK})},assign(e){this.set(e)},render(){this.digest()},"_hn<pointerdown>"(e){e._d4=1},"_ho<click>"(e){let{to:t}=e.params,i=this.get("props"),s=this.get("element");if(t!=i.activeTab){i.activeTab=t,i.focusRow=0,i.focusCol=t,c.bJ(s),f.fire("bL",{_dm:{[s.id]:1},_dn:{[s.type]:1},_bK:{_ho:1}});let e=n.bT(s);a.bJ(a.cj,e),this.digest({props:i})}else if(c.bJ(s)){let e=n.bT(s);a.bJ(a.bT,e)}}}).merge(p,h,b)})),define("27/hod-tabs/index",["1h"],((e,t,i)=>{let s={class:"c8 cF cr dC dR f0"},o={class:"cr di fZ"},r={class:"cj ck cs dA"},d=e("1h"),{View:l,applyStyle:a}=d;a("eP",".fZ{box-shadow:0 -1px #d7dde4}.f0{transform:translate(10px,-100%);width:calc(100% - 20px)}.f1{padding:2px 6px;color:#666}.f2{color:#fa742b;border-bottom:solid 2px #fa742b}"),i.exports=l.extend({tmpl:(e,t,i,d,l,a)=>{let n,c,p,h,b,g,{props:y,unit:f}=e;g=[],h=[];for(let e=y.rows,s=e.length,o=0;o<s;o+=1){for(let s=e[o].cols,r=s.length,d=0;d<r;d+=1){p=[t(0,s[d].text)],c="f1 cu c3",y.activeTab==d&&(c+=" f2"),h.push(t("div",{"mx5-click":i+"\x1e_ho({to:"+d+"})",class:c},p))}}g.push(t("div",s,h));for(let e=y.rows,s=e.length,d=0;d<s;d+=1){let s=e[d];h=[];for(let e=s.cols,o=e.length,n=0;n<o;n+=1){let o=e[n];if(n==y.activeTab){b=[];for(let e=o.elements,s=e.length,r=0;r<s;r+=1){let s=e[r];b.push(t("div",{"mx5-owner":i,$:"props,unit","mx5-view":"27/"+s.type+"/index?props="+a(l,s.props,"a;."+d+".a:."+n+".a-."+r+".a+")+"&unit="+a(l,f,"b_")}))}p=[t("div",r,b)],h.push(t("div",{class:"cs",style:"height:"+s.height+f+";width:"+o.width+f},p))}}g.push(t("div",o,h))}return n=[t("div",{class:"cF cG cr dR",style:"left:"+y.x+f+";top:"+y.y+f+";opacity:"+y.alpha+";width:"+y.width+f+";height:"+y.height+f},g)],t(i,0,n)},assign(e){this.set(e)},render(){this.digest()},"_ho<click>"(e){let{to:t}=e.params,i=this.get("props");t!=i.activeTab&&(i.activeTab=t,this.digest({props:i}))}})})),define("27/hod-vflex/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/cell","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../../24/cell"),a=e("../2u"),n=["width","height","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"];i.exports=a.extend({ctor(){this.set({view:"27/hod-vflex/dshow"})}}).static({type:"hod-vflex",as:o.bJ,title:"gM",icon:"",_dd:o.bW|o.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{rows:t}=e,i=0,s=0;for(let e of t){let t=0;for(let i of e.cols)t+=i.height;t>i&&(i=t),s+=e.width}e.width=s,e.height=i},_c4(e,t){let i=s.bK(1);return{x:s.bK(e),y:s.bK(t),alpha:1,focusRow:-1,focusCol:-1,help:"//github.com/xinglie/report-designer/issues/12",rows:[{width:s.bK(l._gG),cols:[{height:s.bK(l._gH),elements:[],borderLeftTopRadius:0,borderRightTopRadius:0,borderLeftBottomRadius:0,borderRightBottomRadius:0,borderLeftStyle:"solid",borderLeftWidth:i,borderLeftColor:"#000",borderTopStyle:"solid",borderTopWidth:i,borderTopColor:"#000",borderRightStyle:"solid",borderRightWidth:i,borderRightColor:"#000",borderBottomStyle:"solid",borderBottomWidth:i,borderBottomColor:"#000"}]}],locked:!1}},props:[{key:"rows",_e5(e,{rows:t}){d.bZ(e,t,n)},_ep({rows:e},t){d.b0(e,t,n)},_c5(e,t,i){d.bY(e,t,n,i)}},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",key:"width",read:d.bM,type:r.bV,json:1},{tip:"dC",key:"height",read:d.bM,type:r.bV,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eK",type:r.b3,_gr:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"eM",type:r.b2,_gr:1,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:r.bY,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/hod-vflex/dshow",["1h","../../1g/1j","../../1o/1p/index","../../24/31","../../24/hodflex"],((e,t,i)=>{let s,o={class:"cF cG"},r=e("1h"),d=e("../../1g/1j"),l=e("../../1o/1p/index"),a=e("../../24/31"),n=e("../../24/hodflex"),{View:c,State:p}=r;i.exports=c.extend({tmpl:(e,t,i,r,d,l,a)=>{let n,c,p,h,b,g,y,f,{props:x,unit:_,selectRect:u,srRow:m,srCol:k,element:w,fs:v,selected:j,count:K,grouped:R,toPx:J,i18n:M}=e;f=[];let L=Math.max,S=Math.min;for(let e=x.rows,n=e.length,X=0;X<n;X+=1){let n=e[X];y=[];for(let e=n.cols,o=e.length,f=0;f<o;f+=1){let o=e[f];g=[],p=[];for(let e=o.elements,s=e.length,n=0;n<s;n+=1){let s=e[n];p.push(t("div",{"mx5-owner":i,$:"props,fs,unit",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"&fs="+l(d,v,"b_")+"&ownerId=_rd_h_"+r(w.id)+"_"+r(X)+"_"+r(f)+"&maskId=_rd_hm_"+r(w.id)+"_"+r(X)+"_"+r(f)+"&unit="+l(d,_,"ba"),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"',maskId:'_rd_hm_"+a(w.id)+"_"+a(X)+"_"+a(f)+"'})"}))}if(g.push(t("div",{class:"cj ck cs dA","data-as":"hod","mx5-contextmenu":i+"\x1e_gC({row:"+X+",col:"+f+"})",id:"_rd_hm_"+w.id+"_"+X+"_"+f},p)),!v&&!x.locked){let e=x.focusRow==X&&x.focusCol==f&&j&&1==K;if(p=[],e&&!R){b="";let e=S(26,J(o.height)-2)-4;b+=" ";let s=S(26,J(n.width)-2)-4;b+=" ";let r=(J(o.height)-e)/2-2;b+=" ";let d=(J(n.width)-s)/2-2;p.push(t("div",{class:"cr cu dd eb",style:"height:"+L(e,0)+"px;top:"+r+"px;cursor:ew-resize",title:M("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'mr'})"}),t("div",{class:"cr cu de eb",style:"height:"+L(e,0)+"px;top:"+r+"px;cursor:ew-resize",title:M("eO"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'ml'})"}),t("div",{class:"cr cu df eb",style:"width:"+L(s,0)+"px;left:"+d+"px;cursor:ns-resize",title:M("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'bm'})"}),t("div",{class:"cr cu dg eb",style:"width:"+L(s,0)+"px;left:"+d+"px;cursor:ns-resize",title:M("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'tm'})"}))}h="cr dh dR ct",e&&(h+=" dc"),c="",e&&(c+="border-top-style:"+o.borderTopStyle+";border-right-style:"+o.borderRightStyle+";border-bottom-style:"+o.borderBottomStyle+";border-left-style:"+o.borderLeftStyle),g.push(t("div",{id:"_rd_dm_"+w.id+"_"+X+"_"+f,class:h,style:c},p))}!x.readonly&&!v&&o.elements&&o.elements.length&&(p=[s||(s=t(0,"\ue647"))],g.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:M("ff")},p))),u&&m==X&&k==f&&g.push(t("div",{class:"cr ct dP",style:"display:block;left:"+u.x+"px;top:"+u.y+"px;width:"+u.width+"px;height:"+u.height+"px"})),c="position:relative;width:"+n.width+_+";height:"+o.height+_+";border-top:"+o.borderTopStyle+" "+o.borderTopWidth+_+" "+o.borderTopColor+";border-right:"+o.borderRightStyle+" "+o.borderRightWidth+_+" "+o.borderRightColor+";border-bottom:"+o.borderBottomStyle+" "+o.borderBottomWidth+_+" "+o.borderBottomColor+";border-left:"+o.borderLeftStyle+" "+o.borderLeftWidth+_+" "+o.borderLeftColor+";border-radius:"+o.borderLeftTopRadius+_+" "+o.borderRightTopRadius+_+" "+o.borderRightBottomRadius+_+" "+o.borderLeftBottomRadius+_+";",u&&m==X&&k==f&&(c+="overflow:hidden"),y.push(t("div",{"mx5-pointerdown":i+"\x1e_gw({row:"+X+",col:"+f+",elm:1})",id:"_rd_h_"+w.id+"_"+X+"_"+f,class:"eb",style:c},g))}f.push(t("div",o,y))}return n=[t("div",{class:"cF cr dR",style:"left:"+x.x+_+";top:"+x.y+_+";opacity:"+x.alpha+";width:"+x.width+_+";height:"+x.height+_},f)],t(i,0,n)},init(){this.set({toPx:d.bX,toUnit:d.bK})},assign(e){this.set(e)},render(){this.digest()}}).merge(l,a,n)})),define("27/hod-vflex/index",["1h"],((e,t,i)=>{let s={class:"cF cG"},o=e("1h");i.exports=o.View.extend({tmpl:(e,t,i,o,r,d)=>{let l,a,n,c,{props:p,unit:h}=e;c=[];for(let e=p.rows,o=e.length,l=0;l<o;l+=1){let o=e[l];n=[];for(let e=o.cols,s=e.length,c=0;c<s;c+=1){let s=e[c];a=[];for(let e=s.elements,o=e.length,n=0;n<o;n+=1){let s=e[n];a.push(t("div",{"mx5-owner":i,$:"props,unit","mx5-view":"27/"+s.type+"/index?props="+d(r,s.props,"a;."+l+".a:."+c+".a-."+n+".a+")+"&unit="+d(r,h,"b_")}))}n.push(t("div",{class:"cj ck cs dA",style:"width:"+o.width+h+";height:"+s.height+h+";border-top:"+s.borderTopStyle+" "+s.borderTopWidth+h+" "+s.borderTopColor+";border-right:"+s.borderRightStyle+" "+s.borderRightWidth+h+" "+s.borderRightColor+";border-bottom:"+s.borderBottomStyle+" "+s.borderBottomWidth+h+" "+s.borderBottomColor+";border-left:"+s.borderLeftStyle+" "+s.borderLeftWidth+h+" "+s.borderLeftColor},a))}c.push(t("div",s,n))}return l=[t("div",{class:"cF cr dR",style:"left:"+p.x+h+";top:"+p.y+h+";opacity:"+p.alpha+";width:"+p.width+h+";height:"+p.height+h},c)],t(i,0,l)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/hod-footer/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{State:n}=s,c=["width","height","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"];i.exports=a.extend({ctor(){this.set({view:"27/hod-footer/dshow"});let e=()=>{let e=this.get("element"),t=n.get("bV"),i=n.get("bL"),{ctrl:s,props:o}=e;o.rows[0].cols[0].width=t.width*i,s._cF(o)};n.on("bP",e),this.on("destroy",(()=>{n.off("bP",e)}))}}).static({type:"hod-footer",as:r.bJ,title:"gF",icon:"",_dd:r.bW|r.bZ,_cC:{root:1},_cD:1,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){let{rows:t}=e,i=n.get("bV"),s=n.get("bL"),o=0,r=0;for(let e of t){let t=0;for(let i of e.cols)t+=i.width;t>r&&(r=t),o+=e.height}e.width=r,e.height=o,e.x=0,e.y=i.pages*i.height*s-o-i.marginBottom*s},_c4(){let e=n.get("bV");return{x:0,y:0,alpha:1,focusRow:-1,focusCol:-1,pinX:!0,pinY:!0,help:"//github.com/xinglie/report-designer/issues/12",rows:[{height:o.bK(40),cols:[{width:e.width,elements:[],borderLeftTopRadius:0,borderRightTopRadius:0,borderLeftBottomRadius:0,borderRightBottomRadius:0,borderLeftStyle:"dashed",borderLeftWidth:0,borderLeftColor:"#cccccc",borderTopStyle:"dashed",borderTopWidth:o.bK(1),borderTopColor:"#cccccc",borderRightStyle:"dashed",borderRightWidth:0,borderRightColor:"#cccccc",borderBottomStyle:"dashed",borderBottomWidth:0,borderBottomColor:"#cccccc"}]}],locked:!1}},props:[{key:"rows",_e5(e,{rows:t}){l.bZ(e,t,c)},_ep({rows:e},t){l.b0(e,t,c)},_c5(e,t,i){l.bY(e,t,c,i)}},{key:"x",json:1},{key:"y",json:1},{tip:"dB",key:"width",read:l.bM,type:d.bV,json:1},{tip:"dC",key:"height",read:l.bM,type:d.bV,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:d.c_,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{tip:"gG",type:d.bJ,read(e,t){let i=t.rows[0];return l.bM(i.height)},write(e,t,i,s){let o=l.bR(e);t.rows[0].height=o,s._bM=1},fixed:o.cy,step:o.bV,min:()=>o.bK(20),_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:d.bY,_fZ:e=>-1!=e.focusRow&&-1!=e.focusCol},{type:d.c_},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/hod-footer/dshow",["1h","../../1g/1j","../../1o/1p/index","../../24/31","../../24/hodflex"],((e,t,i)=>{let s,o={class:"cF"},r=e("1h"),d=e("../../1g/1j"),l=e("../../1o/1p/index"),a=e("../../24/31"),n=e("../../24/hodflex"),{View:c}=r;i.exports=c.extend({tmpl:(e,t,i,r,d,l,a)=>{let n,c,p,h,b,g,y,f,{props:x,unit:_,selectRect:u,srRow:m,srCol:k,element:w,fs:v,selected:j,count:K,grouped:R,toPx:J,i18n:M}=e;f=[];let L=Math.max,S=Math.min;for(let e=x.rows,n=e.length,X=0;X<n;X+=1){let n=e[X];y=[];for(let e=n.cols,o=e.length,f=0;f<o;f+=1){let o=e[f];g=[],p=[];for(let e=o.elements,s=e.length,n=0;n<s;n+=1){let s=e[n];p.push(t("div",{"mx5-owner":i,$:"props,unit,fs",class:"eb",id:s.id,"mx5-view":"27/"+s.type+"/designer?element="+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"&unit="+l(d,_,"b_")+"&fs="+l(d,v,"ba")+"&ownerId=_rd_h_"+r(w.id)+"_"+r(X)+"_"+r(f)+"&maskId=_rd_hm_"+r(w.id)+"_"+r(X)+"_"+r(f),"mx5-pointerdown":i+"\x1e1\x1e_e3({element:'"+l(d,s,"a;."+X+".a:."+f+".a-."+n+".a+")+"',maskId:'_rd_hm_"+a(w.id)+"_"+a(X)+"_"+a(f)+"'})"}))}if(g.push(t("div",{class:"cj ck cs dA","data-as":"hod","mx5-contextmenu":i+"\x1e_gC({row:"+X+",col:"+f+"})",id:"_rd_hm_"+w.id+"_"+X+"_"+f},p)),!v&&!x.locked){let e=x.focusRow==X&&x.focusCol==f&&j&&1==K;if(p=[],e&&!R){b="";let e=S(26,J(o.width)-2)-4;b+=" ";let s=(J(o.width)-e)/2;p.push(t("div",{class:"cr cu dg eb",style:"width:"+L(e,0)+"px;left:"+s+"px;cursor:ns-resize",title:M("eP"),"mx5-pointerdown":i+"\x1e1\x1e_gI({key:'tm'})"}))}h="cr dh dR ct",e&&(h+=" dc"),c="",e&&(c+="border-top-style:"+o.borderTopStyle+";border-right-style:"+o.borderRightStyle+";border-bottom-style:"+o.borderBottomStyle+";border-left-style:"+o.borderLeftStyle),g.push(t("div",{id:"_rd_dm_"+w.id+"_"+X+"_"+f,class:h,style:c},p))}!x.readonly&&!v&&o.elements&&o.elements.length&&(p=[s||(s=t(0,"\ue647"))],g.push(t("i",{class:"bJ c3 ci cr d5 d7 dE dM dR dx",title:M("ff")},p))),u&&m==X&&k==f&&g.push(t("div",{class:"cr ct dP",style:"display:block;left:"+u.x+"px;top:"+u.y+"px;width:"+u.width+"px;height:"+u.height+"px"})),c="position:relative;height:"+n.height+_+";width:"+o.width+_+";border-top:"+o.borderTopStyle+" "+o.borderTopWidth+_+" "+o.borderTopColor+";border-right:"+o.borderRightStyle+" "+o.borderRightWidth+_+" "+o.borderRightColor+";border-bottom:"+o.borderBottomStyle+" "+o.borderBottomWidth+_+" "+o.borderBottomColor+";border-left:"+o.borderLeftStyle+" "+o.borderLeftWidth+_+" "+o.borderLeftColor+";border-radius:"+o.borderLeftTopRadius+_+" "+o.borderRightTopRadius+_+" "+o.borderRightBottomRadius+_+" "+o.borderLeftBottomRadius+_+";",u&&m==X&&k==f&&(c+="overflow:hidden"),y.push(t("div",{"mx5-pointerdown":i+"\x1e_gw({row:"+X+",col:"+f+",elm:1})",id:"_rd_h_"+w.id+"_"+X+"_"+f,class:"eb",style:c},g))}f.push(t("div",o,y))}return n=[t("div",{class:"cF cG cr dR",style:"left:"+x.x+_+";top:"+x.y+_+";opacity:"+x.alpha+";width:"+x.width+_+";height:"+x.height+_},f)],t(i,0,n)},init(){this.set({toPx:d.bX,toUnit:d.bK})},assign(e){this.set(e)},render(){this.digest()}}).merge(l,a,n)})),define("27/hod-footer/index",["1h"],((e,t,i)=>{let s={class:"cF"},o=e("1h");i.exports=o.View.extend({tmpl:(e,t,i,o,r,d)=>{let l,a,n,c,p,{props:h,unit:b,stage:g}=e;p=[];for(let e=h.rows,o=e.length,l=0;l<o;l+=1){let o=e[l];c=[];for(let e=o.cols,s=e.length,a=0;a<s;a+=1){let s=e[a];n=[];for(let e=s.elements,o=e.length,c=0;c<o;c+=1){let s=e[c];n.push(t("div",{"mx5-owner":i,$:"props,unit","mx5-view":"27/"+s.type+"/index?props="+d(r,s.props,"a;."+l+".a:."+a+".a-."+c+".a+")+"&unit="+d(r,b,"b_")}))}c.push(t("div",{class:"cj ck cs dA",style:"height:"+o.height+b+";width:"+s.width+b+";border-top:"+s.borderTopStyle+" "+s.borderTopWidth+b+" "+s.borderTopColor+";border-right:"+s.borderRightStyle+" "+s.borderRightWidth+b+" "+s.borderRightColor+";border-bottom:"+s.borderBottomStyle+" "+s.borderBottomWidth+b+" "+s.borderBottomColor+";border-left:"+s.borderLeftStyle+" "+s.borderLeftWidth+b+" "+s.borderLeftColor+";border-radius:"+s.borderLeftTopRadius+b+" "+s.borderRightTopRadius+b+" "+s.borderRightBottomRadius+b+" "+s.borderLeftBottomRadius+b},n))}p.push(t("div",s,c))}return a="left:"+h.x+b+";",a+=g?"bottom:0;":"top:"+h.y+b+";",a+="opacity:"+h.alpha+";width:"+h.width+b+";height:"+h.height+b,l=[t("div",{class:"cF cG cr dR",style:a},p)],t(i,0,l)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/hod-footer/stage",["1h"],((e,t,i)=>{let s={class:"cF"},o=e("1h"),{State:r,View:d,LOW:l}=o;i.exports=d.extend({tmpl:(e,t,i,o,r,d)=>{let l,a,n,c,p,{props:h,unit:b,stage:g}=e;p=[];for(let e=h.rows,o=e.length,l=0;l<o;l+=1){let o=e[l];c=[];for(let e=o.cols,s=e.length,a=0;a<s;a+=1){let s=e[a];n=[];for(let e=s.elements,o=e.length,c=0;c<o;c+=1){let s=e[c];n.push(t("div",{"mx5-owner":i,$:"props,unit","mx5-view":"27/"+s.type+"/index?props="+d(r,s.props,"a;."+l+".a:."+a+".a-."+c+".a+")+"&unit="+d(r,b,"b_")}))}c.push(t("div",{class:"cj ck cs dA",style:"height:"+o.height+b+";width:"+s.width+b+";border-top:"+s.borderTopStyle+" "+s.borderTopWidth+b+" "+s.borderTopColor+";border-right:"+s.borderRightStyle+" "+s.borderRightWidth+b+" "+s.borderRightColor+";border-bottom:"+s.borderBottomStyle+" "+s.borderBottomWidth+b+" "+s.borderBottomColor+";border-left:"+s.borderLeftStyle+" "+s.borderLeftWidth+b+" "+s.borderLeftColor+";border-radius:"+s.borderLeftTopRadius+b+" "+s.borderRightTopRadius+b+" "+s.borderRightBottomRadius+b+" "+s.borderLeftBottomRadius+b},n))}p.push(t("div",s,c))}return a="left:"+h.x+b+";",a+=g?"bottom:0;":"top:"+h.y+b+";",a+="opacity:"+h.alpha+";width:"+h.width+b+";height:"+h.height+b,l=[t("div",{class:"cF cG cr dR",style:a},p)],t(i,0,l)},init(){let e=this._bT((()=>{let e=this.get("props");this.digest({props:e})}));r.on("bL",e,l),this.on("destroy",(()=>{r.off("bL",e)}))},assign(e){this.set(e),this.set({stage:1})},render(){this.digest()}})})),define("27/batch-barcode/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../../24/barcode","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../../24/barcode"),n=e("../2u"),{config:c}=s;i.exports=n.extend({ctor(){this.set({view:"27/batch-barcode/dshow"})}}).static({type:"batch-barcode",title:"dS",icon:"",_dd:r.bR|r.bS|r.bY|r.bZ,_cC:{root:1},_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:o.bK(80),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(200),tfs:o.bK(14),text:"",linewidth:2,color:"#000",format:"code128",showText:!0,styleBold:!1,styleItalic:!1,hspace:o.bK(10),vspace:o.bK(20),ow:"github.com/lindell/JsBarcode",help:"github.com/xinglie/report-designer/issues/31",locked:!1,bind:{url:"",id:"",fields:[]}}),props:[{key:"tfs",_c6:1},{tip:"dz",type:d.bJ,key:"x",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dA",type:d.bJ,key:"y",step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dB",type:d.bJ,key:"width",min:()=>o.bK(20),step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dC",key:"height",type:d.bJ,min:()=>o.bK(20),step:o.bV,fixed:o.cy,read:l.bM,write:l.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:e=>!e.text&&c("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:e=>!e.text&&c("getFieldUrl")},{type:d.c_},{tip:"dT",type:d.bJ,json:1,key:"hspace",min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,max:()=>o.bK(50)},{tip:"dU",type:d.bJ,json:1,key:"vspace",min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_c6:1,max:()=>o.bK(50)},{type:d.c_},{tip:"dH",key:"format",type:d.bQ,items:a._dn,json:1},{tip:"dI",key:"showText",type:d.bL,json:1},{tip:"dJ",type:d.bM,_e5(e,t){e.styleBold=t.styleBold,e.styleItalic=t.styleItalic},shows:{bold:1,italic:1}},{tip:"dK",key:"color",type:d.bK,json:1},{tip:"dL",key:"linewidth",type:d.bJ,min:1,max:8,json:1},{type:d.c_},{tip:"dM",key:"ow",type:d.b4},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/batch-barcode/dshow",["1h","../../24/barcode","../../24/2v"],((e,t,i)=>{let s=e("1h"),o=e("../../24/barcode"),r=e("../../24/2v"),{View:d,mark:l,task:a}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{enter:a,props:n,unit:c,text:p,error:h,i18n:b}=e;return l=[],!p||h?(r="",r+=h?" "+h+" ":" "+b("dV")+" ",d=[t(0,r)],l.push(t("div",{class:"co ct dA",style:"font-size:"+n.tfs+c+";height:"+n.height+c+";line-height:"+n.height+c+";width:"+n.width+c},d))):l.push(t("img",{class:"b8 cj ck cl cr ct",style:"left:0;top:0",id:"_rd_"+i+"_bar"},1)),o="cr dA dR",a&&(o+=" dj"),s=[t("div",{style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o},l)],t(i,0,s)},_f0:({text:e})=>e,assign(e){this.set(e);let{props:t}=e,{bind:i,text:s}=t;if(i.id){s=`[bind:${i.fields[0].id}]`}this.set({text:s})},async render(){let e=l(this,"_bQ");await this.digest({error:null});try{if(await o._f1(),e()){let{linewidth:t,height:i,format:s,showText:o,styleBold:r,styleItalic:d,color:n}=this.get("props"),c=this.get("text");c==this._f2&&s==this._f3&&o==this._f4&&t==this._f5&&n==this._f6&&r==this._f7&&d==this._f8||(this._f2=c,c&&(e=l(this,"_f9"),a((()=>{if(e()){this._f7=r,this._f8=d;let e="";r&&(e="bold"),d&&(r&&(e+=" "),e+="italic"),JsBarcode(`#_rd_${this.id}_bar`,c,{lineColor:this._f6=n,width:this._f5=t,format:this._f3=s,fontOptions:e,displayValue:this._f4=o})}}))))}}catch(t){e()&&this.digest({error:t})}}}).merge(r)})),define("27/batch-barcode/index",["1h","../../24/barcode"],((e,t,i)=>{let s={class:"cF cI cZ ck"},o=e("1h"),r=e("../../24/barcode"),{View:d,mark:l,task:a,isArray:n}=o;i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d=[],{error:l,text:a,props:n,unit:c}=e;return(l||a)&&(r=[],l?(o=[t(0,l)],r.push(t("div",s,o))):r.push(t("img",{id:"_rd_"+i+"_bar",class:"b8 cj ck cl"},1)),d.push(t("div",{class:"cr dA dR",style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)"},r))),t(i,0,d)},assign(e){this.set(e);let{props:t}=e,{bind:i,text:s}=t;if(i.id){let e=i.fields[0];if(i._tip)s=i._tip;else if(i._data){let t=i._data;n(t)&&(t=t[0]),s=t[e.id]}else s=`[bind:${e.id}]`}this.set({text:s})},async render(){let e=l(this,"_bQ");await this.digest({error:null});try{if(await r._f1(),e()){let{linewidth:t,height:i,format:s,showText:o,styleBold:r,styleItalic:d,color:n}=this.get("props"),c=this.get("text");!c||c==this._f2&&s==this._f3&&o==this._f4&&t==this._f5&&n==this._f6&&r==this._f7&&d==this._f8||(e=l(this,"_f9"),a((()=>{if(e()){this._f7=r,this._f8=d;let e="";r&&(e="bold"),d&&(r&&(e+=" "),e+="italic"),JsBarcode(`#_rd_${this.id}_bar`,this._f2=c,{lineColor:this._f6=n,width:this._f5=t,fontOptions:e,format:this._f3=s,displayValue:this._f4=o})}})))}}catch(t){e()&&this.digest({error:t})}}})})),define("27/image/designer",["1h","../../1g/props","../../1g/1k","../2u","../../1g/1j","../../1g/21"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/props"),r=e("../../1g/1k"),d=e("../2u"),l=e("../../1g/1j"),a=e("../../1g/21"),{config:n}=s;i.exports=d.extend({ctor(){this.set({view:"27/image/dshow"})}}).static({type:"image",title:"gO",icon:"",_dd:a.bR|a.bS|a.bY|a.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:l.bK(100),alpha:1,x:l.bK(e),y:l.bK(t),tfs:l.bK(14),rotate:0,rotateX:!1,rotateY:!1,width:l.bK(200),image:"",webUrl:"",locked:!1,help:"github.com/xinglie/report-designer/issues/31",bind:{url:"",id:"",fields:[]}}),props:[{key:"tfs",_c6:1},{tip:"dz",type:o.bJ,key:"x",_c6:1,fixed:l.cy,step:l.bV,read:r.bM,write:r.bR,json:1},{tip:"dA",type:o.bJ,key:"y",_c6:1,fixed:l.cy,step:l.bV,read:r.bM,write:r.bR,json:1},{tip:"dB",type:o.bJ,key:"width",_c6:1,min:()=>0,fixed:l.cy,step:l.bV,read:r.bM,write:r.bR,json:1},{tip:"dC",key:"height",_c6:1,type:o.bJ,min:()=>0,fixed:l.cy,step:l.bV,read:r.bM,write:r.bR,json:1},{tip:"dD",key:"alpha",type:o.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:o.bJ,key:"rotate",min:-360,max:360,json:1},{type:o.c_,_fZ:e=>!e.bind.id&&!e.image},{tip:"gP",key:"webUrl",type:o.bS,json:1,_fZ:e=>!e.bind.id&&!e.image},{type:o.c_,_fZ:e=>!e.bind.id&&!e.webUrl},{tip:"gQ",key:"image",type:o.bP,write:(e,t,i)=>(e||(i.width=200,i.height=100),i.width=l.bK(i.width),i.height=l.bK(i.height),t.width=r.bR(i.width),t.height=r.bR(i.height),e),json:1,_fZ:e=>!e.bind.id&&n("getImageUrl")&&!e.webUrl},{tip:"gR",type:o.bR,key:"image",_fZ:e=>e.image},{type:o.c_,_fZ:e=>!e.image&&n("getFieldUrl")&&!e.webUrl},{tip:"dG",key:"bind",type:o.bT,json:1,max:1,_fZ:e=>!e.image&&n("getFieldUrl")&&!e.webUrl},{type:o.c_},{tip:"gS",type:o.bL,key:"rotateX",json:1},{tip:"gT",type:o.bL,key:"rotateY",json:1},{type:o.c_},{tip:"dN",type:o.b4,key:"help"},{tip:"dO",key:"ename",type:o.bS,json:1},{tip:"dP",key:"locked",type:o.bL,free:!0,json:1}]})})),define("27/image/dshow",["1h","../../24/2v"],((e,t,i)=>{let s=e("1h"),o=e("../../24/2v"),{View:r}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{enter:a,props:n,unit:c,text:p,i18n:h}=e;return l=[],n.image||n.webUrl?(r="",(n.rotateX||n.rotateY)&&(r+="transform:",n.rotateX&&(r+="rotateX(180deg)"),n.rotateY&&(r+=" rotateY(180deg)")),l.push(t("img",{class:"b8 cj ck ct",src:n.image||n.webUrl,style:r},1))):(d=[t(0,p||h("gU"))],l.push(t("div",{class:"co ct dA",style:"font-size:"+n.tfs+c+";height:"+n.height+c+";line-height:"+n.height+c+";width:"+n.width+c},d))),o="dA dR cr",a&&(o+=" dj"),s=[t("div",{style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o},l)],t(i,0,s)},_f0:({image:e})=>e,assign(e){this.set(e);let{props:t}=e,{bind:i}=t,s="";if(i.id){s=`[\u7ed1\u5b9a:${i.fields[0].name}]`}this.set({text:s})},render(){this.digest()}}).merge(o)})),define("27/image/index",["1h"],((e,t,i)=>{let s=e("1h"),{View:o,isArray:r}=s;i.exports=o.extend({tmpl:(e,t,i)=>{let s,o=[],{image:r,props:d,unit:l}=e;return r&&(s="left:"+d.x+l+";top:"+d.y+l+";height:"+d.height+l+";opacity:"+d.alpha+";width:"+d.width+l+";transform:rotate("+d.rotate+"deg);",(d.rotateX||d.rotateY)&&(s+=";transform:",d.rotateX&&(s+="rotateX(180deg)"),d.rotateY&&(s+=" rotateY(180deg)")),o.push(t("img",{class:"b8 cr dR",src:r,style:s},1))),t(i,0,o)},assign(e){this.set(e);let{props:t}=e,{bind:i,image:s,webUrl:o}=t,d="";if(!s&&o&&(s=o),i.id){let e=i.fields[0];if(i._tip)d=i._tip;else if(i._data){let t=i._data;r(t)&&(t=t[0]),s=t[e.id]}else d=`[\u7ed1\u5b9a:${e.name}]`}this.set({image:s,text:d})},render(){this.digest()}})})),define("27/lscreen/index",["../../1g/1j","../index","./border-bg/designer","./border-css2/designer","./border-css4/designer","./image/designer"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../index"),r=e("./border-bg/designer"),d=e("./border-css2/designer"),l=e("./border-css4/designer"),a=e("./image/designer");i.exports=()=>{let{resolve:e}=window.designer;o.bL(r,d,l,a),o.bM({icon:"",title:"\u5927\u5c4f",subs:[{ctrl:a,image:e("../images/header_1_thumb.png"),title:"\u6807\u98981",props:()=>({ename:"\u6807\u98981",image:e("../images/header_1.png"),width:s.bK(1400),height:s.bK(90)})},{ctrl:r,image:e("../images/border_1_thumb.png"),title:"\u8fb9\u68461",props:()=>({ename:"\u8fb9\u68461",image:e("../images/border_1.png"),width:s.bK(400),height:s.bK(200)})},{ctrl:a,image:e("../images/header_2.png"),title:"\u6807\u98982",props:()=>({ename:"\u6807\u98982",image:e("../images/header_2.png"),width:s.bK(358),height:s.bK(28)})},{ctrl:d,image:e("../images/border_2_thumb.png"),title:"\u8fb9\u68462"},{ctrl:a,image:e("../images/header_3.png"),title:"\u6807\u98983",props:()=>({ename:"\u6807\u98983",image:e("../images/header_3.png"),width:s.bK(442),height:s.bK(18)})},{ctrl:a,image:e("../images/header_4_thumb.png"),title:"\u6807\u98984",props:()=>({ename:"\u6807\u98984",image:e("../images/header_4.png"),width:s.bK(960),height:s.bK(53)})},{ctrl:l,image:e("../images/border_4_thumb.png"),title:"\u8fb9\u68464"}]})}})),define("27/map/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/map/dshow"})}}).static({type:"map",title:"gZ",icon:"",_dd:o.bR|o.bS|o.bW|o.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(300),alpha:1,x:s.bK(e),y:s.bK(t),width:s.bK(450),zoom:8,lat:30.36081488360812,lng:120.02268238691616,locked:!1,zoomCtrl:!0,dragging:!0,doubleClickZoom:!0}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>s.bK(100),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(100),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{tip:"g0",key:"zoom",type:r.bJ,min:1,max:18,json:1},{tip:"g1",key:"lng",type:r.bJ,min:-180,max:180,fixed:4,step:1,json:1},{tip:"g2",key:"lat",type:r.bJ,min:-90,max:90,fixed:4,step:1,json:1},{tip:"g3",key:"zoomCtrl",type:r.bL,json:1},{tip:"g4",key:"dragging",type:r.bL,json:1},{tip:"g5",key:"doubleClickZoom",type:r.bL,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/map/dshow",["1h","../../1g/1t","../../1g/1v","../../1g/22","../../24/map"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1t"),r=e("../../1g/1v"),d=e("../../1g/22"),l=e("../../24/map"),{State:a,View:n,mark:c,node:p}=s;i.exports=n.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a,error:n,i18n:c}=e;return o="",o+=n?" "+n+" ":" "+c("g6")+" ",r=[t(0,o)],d=[t("div",{id:"tip_"+i,class:"cF cI cZ ck"},r)],s=[t("div",{class:"cr dR eb",style:"left:"+l.x+a+";top:"+l.y+a+";height:"+l.height+a+";opacity:"+l.alpha+";width:"+l.width+a,id:"map_"+i,"mx5-pointerdown":i+"\x1e_fn()","mx5-contextmenu":i+"\x1e_fn()"},d)],t(i,0,s)},init(){this.on("destroy",(()=>{let e=this._hq;e&&e.remove()}))},assign(e){this.set(e)},async render(){let e=c(this,"_bQ"),t=this.get("props"),i=t.readonly;if(this._hr)this.digest({error:this._hr});else{await this.digest();let s=this._hq;try{if(s){s.removeEventListener("zoomend",this._hs),s.removeEventListener("moveend",this._hs),s.setView({lat:t.lat,lng:t.lng},t.zoom),s.invalidateSize(!0);let e=c(this,"_ht");setTimeout((()=>{e()&&(s.addEventListener("zoomend",this._hs),s.addEventListener("moveend",this._hs))}),300)}else if(await l(),e()){let e=p(`map_${this.id}`),s=L.map(e,{zoom:t.zoom,center:[t.lat,t.lng],zoomAnimation:!1,zoomControl:!i,dragging:!i,doubleClickZoom:!i});this._hq=s,this._hs=()=>{((e,t)=>{let i=t.getCenter().wrap(),s=t.getZoom(),{props:d}=e,l=0,n={};if(d.lat==i.lat&&d.lng==i.lng||(d.lat=i.lat,d.lng=i.lng,l=1,n._hp=1),d.zoom!=s&&(d.zoom=s,l=1,n._hl=1),l){a.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:n});let t=r.bT(e);o.bJ(o.cj,t)}})(this.get("element"),s)},L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors'}).addTo(s),s.addEventListener("zoomend",this._hs),s.addEventListener("moveend",this._hs);let d=p(`tip_${this.id}`);d.parentNode.removeChild(d)}}catch(e){this.digest({error:this._hr=e})}}},"_fn<pointerdown,contextmenu>"(e){if(e._d4)return;e._d4=1;let t=this.get("element");if(d.bJ(t)){let e=r.bT(t);o.bJ(o.bT,e)}}})})),define("27/map/index",["1h","../../24/map"],((e,t,i)=>{let s=e("1h"),o=e("../../24/map"),{View:r,mark:d,node:l}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a,error:n,i18n:c}=e;return o="",o+=n?" "+n+" ":" "+c("g6")+" ",r=[t(0,o)],d=[t("div",{id:"tip_"+i,class:"cF cI cZ ck"},r)],s=[t("div",{class:"cr dR",style:"left:"+l.x+a+";top:"+l.y+a+";height:"+l.height+a+";opacity:"+l.alpha+";width:"+l.width+a,id:"map_"+i},d)],t(i,0,s)},init(){this.on("destroy",(()=>{let e=this._hq;e&&e.remove()}))},assign(e){this.set(e)},async render(){let e=d(this,"_bQ"),t=this.get("props");if(this._hr)this.digest({error:this._hr});else{if(await this.digest(),!this._hq)try{if(await o(),e()){let e=l(`map_${this.id}`),i=L.map(e,{zoom:t.zoom,center:[t.lat,t.lng],zoomControl:t.zoomCtrl,dragging:t.dragging,doubleClickZoom:t.doubleClickZoom});this._hq=i,L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors'}).addTo(i);let s=l(`tip_${this.id}`);s.parentNode.removeChild(s)}}catch(e){this.digest({error:this._hr=e})}}}})})),define("27/page/designer",["1h","../../1g/1j","../../1g/props"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/props"),{config:d,State:l}=s,a="400x500",{round:n}=Math;i.exports={title:"g9",_c4(){let e=o.b7+"x"+o.b8;return{width:o.bK(o.b7),height:o.bK(o.b8),background:"#fff",backgroundImage:"",backgroundRepeat:"full",backgroundWidth:0,backgroundHeight:0,scaleType:"auto",marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,preformat:!1,copies:1,unit:l.get("bM"),readonly:!1,paper:e,screen:e,xOffset:0,yOffset:0,backgroundXOffset:0,backgroundYOffset:0,snapElement:!!o.cc,pages:1,title:""}},props:[{key:"readonly",json:1},{tip:"h_",key:"unit",type:r.bQ,items:[{text:"ha",value:"mm"},{text:"hb",value:"cm"},{text:"hc",value:"px"},{text:"hd",value:"pt"},{text:"he",value:"in"},{text:"hf",value:"pc"},{text:"hg",value:"q"}],disabled:!o.cx},{tip:"dB",key:"width",type:r.bJ,min:0,max:()=>o.bK(o.b9),step:o.bV,fixed:o.cy,_c6:1,json:1},{tip:"dC",key:"height",type:r.bJ,min:0,max:()=>o.bK(o.c_),step:o.bV,fixed:o.cy,_c6:1,json:1},{tip:"hh",key:"pages",type:r.bJ,min:1,max:5,json:1},{tip:"hi",type:r.bQ,key:"paper",items:[{text:"hj",value:""},{text:"A1",value:"2245x3178"},{text:"A2",value:"1587x2245"},{text:"A3",value:"1122x1587"},{text:"A4",value:"793x1122"},{text:"A5",value:"559x793"},{text:"A6",value:"396x559"},{text:"A7",value:"277x396"},{text:"B1",value:"2672x3779"},{text:"B2",value:"1889x2672"},{text:"B3",value:"1334x1889"},{text:"B4",value:"944x1334"},{text:"B5",value:"665x944"},{text:"B6",value:"472x665"},{text:"B7",value:"332x472"},{text:"C1",value:"2449x3465"},{text:"C2",value:"1731x2449"},{text:"C3",value:"1224x1731"},{text:"C4",value:"865x1224"},{text:"C5",value:"612x865"},{text:"C6",value:"430x612"},{text:"C7",value:"306x430"}],read(e){let[t,i]=e.split("x");return`${n(o.bX(t))}x${n(o.bX(i))}`},write(e,t){if(e||(e=a),e){let[i,s]=e.split("x");t.width=o.bK(0|i),t.height=o.bK(0|s)}return e}},{type:r.c_},{tip:"hk",key:"screen",type:r.bQ,items:[{text:"hj",value:""},{text:"1024x600",value:"1024x600"},{text:"1024x768",value:"1024x768"},{text:"1280x1024",value:"1280x1024"},{text:"1600x900",value:"1600x900"},{text:"1440x1550",value:"1440x1550"},{text:"1600x1200",value:"1600x1200"},{text:"1280x800",value:"1280x800"},{text:"1366x768",value:"1366x768"},{text:"1440x900",value:"1440x900"}],read(e){let[t,i]=e.split("x");return`${n(o.bX(t))}x${n(o.bX(i))}`},write(e,t){if(e||(e=a),e){let[i,s]=e.split("x");t.width=o.bK(0|i),t.height=o.bK(0|s)}return e}},{tip:"hl",key:"scaleType",json:1,type:r.bQ,items:[{text:"hm",value:"auto"},{text:"hn",value:"full"}]},{type:r.c_},{tip:"ho",key:"copies",type:r.bJ,min:1,max:20,json:1},{tip:"fB",key:"xOffset",type:r.bJ,step:o.bV,fixed:o.cy,_c6:1,json:1},{tip:"fC",key:"yOffset",type:r.bJ,step:o.bV,fixed:o.cy,_c6:1,json:1},{type:r.c_},{tip:"hp",key:"snapElement",type:r.bL,_fZ:()=>o.cc},{tip:"hq",key:"title",type:r.bS,json:1},{tip:"d4",key:"background",type:r.bK,json:1},{tip:"hr",key:"backgroundImage",type:r.bP,write:(e,t,i)=>(t.backgroundWidth=o.bK(i.width),t.backgroundHeight=o.bK(i.height),t.preformat&&e&&(t.width=t.backgroundWidth,t.height=t.backgroundHeight),e),_fZ:()=>d("getImageUrl"),json:1},{tip:"hs",key:"preformat",type:r.bL,json:1,write:(e,t)=>(e&&(t.backgroundRepeat="no-repeat",t.width=t.backgroundWidth,t.height=t.backgroundHeight),e),_fZ:e=>e.backgroundImage},{tip:"ht",key:"backgroundRepeat",type:r.bQ,items:[{text:"hu",value:"full"},{text:"hv",value:"no-repeat"},{text:"hw",value:"repeat-x"},{text:"hx",value:"repeat-y"},{text:"hy",value:"repeat"}],_fZ:e=>e.backgroundImage&&!e.preformat,json:1},{tip:"hz",key:"backgroundWidth",type:r.bJ,min:0,step:o.bV,fixed:o.cy,_c6:1,_fZ(e){let t=e.backgroundImage,i=e.backgroundRepeat;return t&&"full"!==i},json:1},{tip:"hA",key:"backgroundHeight",type:r.bJ,min:0,step:o.bV,fixed:o.cy,_c6:1,_fZ(e){let t=e.backgroundImage,i=e.backgroundRepeat;return t&&"full"!=i},json:1},{tip:"gR",type:r.bR,_fZ(e){let t=e.backgroundImage,i=e.backgroundRepeat;return t&&"full"!=i}},{tip:"hB",key:"backgroundXOffset",type:r.bJ,min:()=>-o.bK(o.b9),max:()=>o.bK(o.b9),step:o.bV,fixed:o.cy,_c6:1,_fZ:e=>e.backgroundImage&&"full"!=e.backgroundRepeat,json:1},{tip:"hC",key:"backgroundYOffset",type:r.bJ,_c6:1,min:()=>-o.bK(o.c_),max:()=>o.bK(o.c_),step:o.bV,fixed:o.cy,_fZ:e=>e.backgroundImage&&"full"!=e.backgroundRepeat,json:1}]}})),define("27/pager/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/pager/index"})}}).static({type:"pager",title:"hD",icon:"",_dd:o.bR|o.bS|o.bY|o.bO,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({background:"",height:s.bK(50),alpha:1,text:"\u5f53\u524d\u7b2c${currentPage}\u9875\uff0c\u5171${totalPage}\u9875",letterspacing:s.bK(0),x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),forecolor:"#000",fontsize:s.bK(14),fontfamily:"Microsoft YaHei",locked:!1,styleBold:!1,styleUnderline:!1,styleItalic:!1,styleStrike:!1,ext:{},hpos:"flex-start",vpos:"flex-start"}),props:[{key:"ext",json:1},{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"dF",key:"text",type:r.bO,json:1},{tip:"d1",key:"fontsize",_c6:1,type:r.bJ,min:0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"fontfamily",type:r.bQ,items:s.cu,json:1},{tip:"d3",key:"letterspacing",_c6:1,type:r.bJ,min:0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"d4",key:"background",clear:1,alpha:1,type:r.bK,json:1},{tip:"d5",key:"forecolor",type:r.bK,json:1},{tip:"dJ",type:r.bM,_e5(e,t){e.styleBold=t.styleBold,e.styleUnderline=t.styleUnderline,e.styleItalic=t.styleItalic,e.styleStrike=t.styleStrike,e.styleOverline=t.styleOverline}},{tip:"d6",type:r.bN,_e5(e,t){e.hpos=t.hpos,e.vpos=t.vpos}},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/pager/index",["1h"],((e,t,i)=>{let s=e("1h"),{has:o,View:r}=s,d=/\$\{([a-zA-z0-9_]+)\}/g;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,textReturn:a,text:n}=e;return r=[t(0,a(n),1)],o="left:"+d.x+l+";top:"+d.y+l+";color:"+d.forecolor+";",d.background&&(o+="background:"+d.background+";"),o+="font-size:"+d.fontsize+l+";height:"+d.height+l+";letter-spacing:"+d.letterspacing+l+";opacity:"+d.alpha+";",d.styleBold&&(o+="font-weight:bold;"),d.styleItalic&&(o+="font-style:italic;"),(d.styleUnderline||d.styleStrike||d.styleOverline)&&(o+="text-decoration:",d.styleStrike?o+="line-through":d.styleOverline?o+="overline":o+="underline",o+=";"),o+="align-items:"+d.vpos+";justify-content:"+d.hpos+";width:"+d.width+l+";transform:rotate("+d.rotate+"deg);font-family:"+d.fontfamily,s=[t("div",{class:"cF cr dA dR",style:o},r)],t(i,0,s)},assign(e){this.set(e);let{props:t}=e,{text:i,ext:s}=t;null==s._totalPage&&(s._totalPage="Y"),null==s._currentPage&&(s._currentPage="X"),i=i.replace(d,((e,t)=>o(s,"_"+t)?s["_"+t]:e)),this.set({text:i})},render(){this.digest()}})})),define("27/progressbar/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/progressbar/dshow"})}}).static({type:"progressbar",title:"hE",icon:"",_dd:o.bR|o.bS|o.bY|o.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(10),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(240),locked:!1,background:"#e2e2e2",barcolor:"#fa742b",value:50,radius:s.bK(5),showText:!0,textColor:"#000",textFontsize:s.bK(12),textFormat:"",bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"eC",key:"value",type:r.bJ,min:0,max:100,json:1,fixed:1,_fZ:e=>!e.bind.id},{type:r.c_,_fZ:e=>!e.bind.id},{tip:"dG",key:"bind",type:r.bT,json:1,max:1},{tip:"eD",type:r.cf,key:"textFormat",json:1,_fZ:e=>e.bind.id},{type:r.c_},{tip:"d4",key:"background",type:r.bK,json:1},{tip:"hF",key:"barcolor",type:r.bK,json:1},{tip:"er",key:"radius",type:r.bJ,json:1,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0},{tip:"dI",key:"showText",json:1,type:r.bL},{tip:"d5",key:"textColor",json:1,type:r.bK,_fZ:e=>e.showText},{tip:"d1",key:"textFontsize",type:r.bJ,min:0,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1,_fZ:e=>e.showText},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/progressbar/dshow",["1h","../../24/2v"],((e,t,i)=>{let s=e("1h"),o=e("../../24/2v"),{View:r}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{enter:a,props:n,unit:c,value:p,text:h}=e;return d=[],(n.showText||h)&&(r=[t(0,h||p+"%")],d.push(t("span",{class:"cr ct",style:"transform:translate(50%,-100%);right:0;color:"+n.textColor+";font-size:"+n.textFontsize+c},r))),l=[t("div",{style:"width:"+p+"%;background-color:"+n.barcolor+";border-radius:"+n.radius+c,class:"ck cs ct"},d)],o="dR cr",a&&(o+=" dj"),s=[t("div",{style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg);background-color:"+n.background+";border-radius:"+n.radius+c,"mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o},l)],t(i,0,s)},assign(e){this.set(e);let{props:t}=e,{bind:i,value:s}=t,o="";if(i.id){o=`[\u7ed1\u5b9a:${i.fields[0].name}]`,s=60}this.set({value:s,text:o})},render(){this.digest()}}).merge(o)})),define("27/progressbar/index",["1h","../../24/format"],((e,t,i)=>{let s=e("1h"),o=e("../../24/format"),{View:r,isArray:d}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a,value:n,text:c}=e;return r=[],(l.showText||c)&&(o=[t(0,c||n+"%")],r.push(t("span",{class:"cr",style:"transform:translate(50%,-100%);right:0;color:"+l.textColor+";font-size:"+l.textFontsize+a},o))),d=[t("div",{style:"width:"+n+"%;background-color:"+l.barcolor+";border-radius:"+l.radius+a,class:"ck cs"},r)],s=[t("div",{class:"cr",style:"left:"+l.x+a+";top:"+l.y+a+";height:"+l.height+a+";opacity:"+l.alpha+";width:"+l.width+a+";transform:rotate("+l.rotate+"deg);background-color:"+l.background+";border-radius:"+l.radius+a},d)],t(i,0,s)},assign(e){this.set(e);let{props:t}=e,{bind:i,value:s,textFormat:r}=t,l="";if(i.id){let e=i.fields[0];if(i._tip)l=i._tip,s=60;else if(i._data){let l=i._data;d(l)&&(l=l[0]),s=l[e.id],s=o._ge(r,s,t),!isNaN(s)&&isFinite(s)||(s=0),s<0?s=0:s>100&&(s=100)}else l=`[\u7ed1\u5b9a:${e.name}]`,s=60}this.set({value:s,text:l})},render(){this.digest()}})})),define("27/html/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/html/dshow"})}}).static({type:"html",title:"gN",icon:"",_dd:o.bR|o.bS|o.bZ|o.bW,_cC:{root:1},_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({alpha:1,width:s.bK(300),height:s.bK(150),x:s.bK(e),y:s.bK(t),value:"",locked:!1,help:"//github.com/xinglie/report-designer/issues/50",bind:{url:"",id:"",fields:[]}}),props:[{key:"value",json:1},{tip:"dz",type:r.bJ,key:"x",step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dA",type:r.bJ,key:"y",step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dB",type:r.bJ,key:"width",min:()=>s.bK(200),step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dC",key:"height",type:r.bJ,min:()=>s.bK(100),step:s.bV,fixed:s.cy,read:d.bM,write:d.bR,_c6:1,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:r.c_},{tip:"dG",key:"bind",type:r.bT,json:1,max:1},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/html/dshow",["1h","../../1g/1t","../../1g/1v","../../1g/22","1o/34/index"],((e,t,i)=>{let s;e("1o/34/index");let o=e("1h"),r=e("../../1g/1t"),d=e("../../1g/1v"),l=e("../../1g/22"),{View:a}=o;i.exports=a.extend({tmpl:(e,t,i,o,r,d)=>{let l,a,n,{props:c,unit:p}=e;return a=[s||(s=t(0,"loading..."))],n=[t("div",{"mx5-owner":i,$:"props",style:"border:solid 1px #ddd",class:"c6 cj ck","mx5-cmchange":i+"\x1e_g9()","mx5-view":"1o/34/index?mode=htmlmixed&value="+d(r,c.value,"a;")},a)],l=[t("div",{class:"cr dR eb",style:"left:"+c.x+p+";top:"+c.y+p+";height:"+c.height+p+";opacity:"+c.alpha+";width:"+c.width+p,"mx5-pointerdown":i+"\x1e_fn()","mx5-contextmenu":i+"\x1e_fn()"},n)],t(i,0,l)},assign(e){this.set(e)},render(){this.digest()},"_g9<cmchange>"(e){let t=this.get("props");t.value!=e.value&&(t.value=e.value)},"_fn<pointerdown,contextmenu>"(e){if(e._d4)return;e._d4=1;let t=this.get("element");if(l.bJ(t)){let e=d.bT(t);r.bJ(r.bT,e)}}})})),define("27/html/index",["1h","../../24/underscore"],((e,t,i)=>{let s=e("1h"),o=e("../../24/underscore"),{View:r}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d}=e;return o=[t(0,r.value,1)],s=[t("div",{class:"cr dR",style:"left:"+r.x+d+";top:"+r.y+d+";min-height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d},o)],t(i,0,s)},assign(e){let{props:t}=e;t.value=this._fl(t.value),this.set(e)},async render(){await o();let e=this.get("props"),{bind:t}=e;if(t.id){let i=t.fields[0];t._data&&(e.value=_.template(e.value)({data:t._data,field:i}))}this.digest()}})})),define("27/rate/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/rate/dshow"})}}).static({type:"rate",title:"hH",icon:"",_dd:o.bR|o.bS|o.bY|o.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(40),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(150),locked:!1,stars:5,background:"#e2e2e2",fillcolor:"#fa742b",value:50,textFormat:"",starSize:s.bK(24),bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"eC",key:"value",type:r.bJ,min:0,max:100,json:1,fixed:1,_fZ:e=>!e.bind.id},{type:r.c_,_fZ:e=>!e.bind.id},{tip:"dG",key:"bind",type:r.bT,json:1,max:1},{tip:"eD",type:r.cf,key:"textFormat",json:1,_fZ:e=>e.bind.id},{type:r.c_},{tip:"hI",key:"stars",type:r.bJ,min:2,max:10,json:1},{tip:"hJ",key:"starSize",type:r.bJ,_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:()=>s.bK(8),json:1},{tip:"d4",key:"background",type:r.bK,json:1},{tip:"eE",key:"fillcolor",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/rate/dshow",["1h","../../24/2v"],((e,t,i)=>{let s,o={class:"cF cI cY ck"},r=e("1h"),d=e("../../24/2v"),{View:l}=r;i.exports=l.extend({tmpl:(e,t,i)=>{let r,d,l,a,n,c,{enter:p,props:h,unit:b,value:g}=e;a=[];for(let e=0;e<h.stars;e++)l=[s||(s=t(0,"\ue60c"))],a.push(t("i",{class:"bJ",style:"font-size:"+h.starSize+b},l));c=[t("div",o,a)],l=[];for(let e=0;e<h.stars;e++)n=[s||(s=t(0,"\ue60c"))],l.push(t("i",{class:"bJ",style:"font-size:"+h.starSize+b},n));return a=[t("div",{class:"cF cI cY ck",style:"width:"+h.width+b+";s"},l)],c.push(t("div",{class:"cr dA di",style:"width:"+g+"%;color:"+h.fillcolor},a)),d="dR dA cr",p&&(d+=" dj"),r=[t("div",{style:"left:"+h.x+b+";top:"+h.y+b+";height:"+h.height+b+";opacity:"+h.alpha+";width:"+h.width+b+";transform:rotate("+h.rotate+"deg);color:"+h.background,"mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:d},c)],t(i,0,r)},assign(e){this.set(e);let{props:t}=e,{bind:i,value:s}=t;i.id&&(s=60),this.set({value:s})},render(){this.digest()}}).merge(d)})),define("27/rate/index",["1h","../../24/format"],((e,t,i)=>{let s,o={class:"cF cI cY ck"},r=e("1h"),d=e("../../24/format"),{View:l,isArray:a}=r;i.exports=l.extend({tmpl:(e,t,i)=>{let r,d,l,a,n,{props:c,unit:p,value:h}=e;l=[];for(let e=0;e<c.stars;e++)d=[s||(s=t(0,"\ue60c"))],l.push(t("i",{class:"bJ",style:"font-size:"+c.starSize+p},d));n=[t("div",o,l)],d=[];for(let e=0;e<c.stars;e++)a=[s||(s=t(0,"\ue60c"))],d.push(t("i",{class:"bJ",style:"font-size:"+c.starSize+p},a));return l=[t("div",{class:"cF cI cY ck",style:"width:"+c.width+p},d)],n.push(t("div",{class:"cr dA di",style:"width:"+h+"%;color:"+c.fillcolor},l)),r=[t("div",{class:"cr",style:"left:"+c.x+p+";top:"+c.y+p+";height:"+c.height+p+";opacity:"+c.alpha+";width:"+c.width+p+";transform:rotate("+c.rotate+"deg);color:"+c.background},n)],t(i,0,r)},assign(e){this.set(e);let{props:t}=e,{bind:i,value:s,textFormat:o}=t,r="";if(i.id){let e=i.fields[0];if(i._tip)r=i._tip,s=60;else if(i._data){let r=i._data;a(r)&&(r=r[0]),s=r[e.id],s=d._ge(o,s,t),!isNaN(s)&&isFinite(s)||(s=0),s<0?s=0:s>100&&(s=100)}else r=`[\u7ed1\u5b9a:${e.name}]`,s=60}this.set({value:s,text:r})},render(){this.digest()}})})),define("27/rect/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/rect/index"})}}).static({type:"rect",title:"hK",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({fillcolor:"",x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),height:s.bK(100),alpha:1,borderwidth:s.bK(1),bordertype:"solid",bordercolor:"#000",radius:0,locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"d7",key:"borderwidth",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,json:1},{tip:"d8",key:"bordertype",type:r.bQ,items:s.cv,json:1},{tip:"d9",key:"bordercolor",type:r.bK,json:1},{tip:"ew",key:"fillcolor",clear:1,alpha:1,type:r.bK,json:1},{tip:"er",key:"radius",_c6:1,type:r.bJ,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,min:0,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/rect/index",["1h"],((e,t,i)=>{let s=e("1h"),{min:o}=Math;i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d,bw:l}=e;return o="left:"+r.x+d+";top:"+r.y+d+";",l&&(o+="border:"+l+d+" "+r.bordertype+" "+r.bordercolor+";"),r.fillcolor&&(o+="background:"+r.fillcolor+";"),o+="height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",r.radius&&(o+="border-radius:"+r.radius+d+";"),s=[t("div",{class:"cr dR",style:o})],t(i,0,s)},assign(e){let{props:t}=e,{borderwidth:i,width:s,height:r}=t,d=o(s,r)/2;i>d&&(i=d),this.set(e),this.set({bw:i})},render(){this.digest()}})})),define("27/repeat/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/repeat/dshow"})}}).static({type:"repeat",title:"hL",icon:"",_dd:r.bR|r.bS|r.bY|r.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:o.bK(100),alpha:1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(200),tfs:o.bK(14),radius:0,image:"",webUrl:"",repeat:"repeat",imageWidth:0,imageHeight:0,backgroundXOffset:0,backgroundYOffset:0,locked:!1,help:"github.com/xinglie/report-designer/issues/31",bind:{url:"",id:"",fields:[]}}),props:[{key:"tfs",_c6:1},{tip:"dz",type:d.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dA",type:d.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dB",type:d.bJ,key:"width",_c6:1,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dC",key:"height",_c6:1,type:d.bJ,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:e=>!e.bind.id&&!e.image},{tip:"gP",key:"webUrl",type:d.bS,json:1,_fZ:e=>!e.bind.id&&!e.image},{type:d.c_,_fZ:e=>!e.bind.id&&!e.webUrl},{tip:"gQ",key:"image",type:d.bP,write:(e,t,i)=>(i.width=o.bK(i.width),i.height=o.bK(i.height),t.imageWidth=l.bR(i.width),t.imageHeight=l.bR(i.height),e),_fZ:e=>!e.bind.id&&n("getImageUrl")&&!e.webUrl,json:1},{type:d.c_,_fZ:e=>!e.image&&n("getFieldUrl")&&!e.webUrl},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:e=>!e.image&&n("getFieldUrl")&&!e.webUrl},{type:d.c_,_fZ:e=>e.image||e.bind.id||e.webUrl},{tip:"ht",key:"repeat",type:d.bQ,_fZ:e=>e.image||e.bind.id||e.webUrl,items:[{text:"hy",value:"repeat"},{text:"hw",value:"repeat-x"},{text:"hx",value:"repeat-y"},{text:"hu",value:"full"},{text:"hv",value:"no-repeat"}],json:1},{tip:"er",key:"radius",_c6:1,type:d.bJ,min:0,json:1,read:l.bM,write:l.bR,fixed:o.cy,step:o.bV,_fZ:e=>e.image||e.bind.id||e.webUrl},{tip:"hz",key:"imageWidth",_c6:1,type:d.bJ,min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_fZ:({image:e,bind:t,webUrl:i,repeat:s})=>(e||t.id||i)&&"full"!=s,json:1},{tip:"hA",key:"imageHeight",_c6:1,type:d.bJ,min:0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,_fZ:({image:e,bind:t,webUrl:i,repeat:s})=>(e||t.id||i)&&"full"!=s,json:1},{tip:"hB",key:"backgroundXOffset",_c6:1,type:d.bJ,min:()=>-o.bK(o.b9),max:()=>o.bK(o.b9),step:o.bV,fixed:o.cy,_fZ:({image:e,bind:t,webUrl:i,repeat:s})=>(e||t.id||i)&&"full"!=s,json:1},{tip:"hC",key:"backgroundYOffset",_c6:1,type:d.bJ,min:()=>-o.bK(o.c_),max:()=>o.bK(o.c_),step:o.bV,fixed:o.cy,_fZ:({image:e,bind:t,webUrl:i,repeat:s})=>(e||t.id||i)&&"full"!=s,json:1},{type:d.c_},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/repeat/dshow",["1h","../../24/2v"],((e,t,i)=>{let s=e("1h"),o=e("../../24/2v"),{View:r}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{enter:a,props:n,unit:c,uit:p,text:h,i18n:b}=e;return l=[],n.image||n.webUrl||(d=[t(0,h||b("hM"))],l.push(t("div",{class:"co ct dA",style:"font-size:"+n.tfs+c+";height:"+n.height+c+";line-height:"+n.height+c+";width:"+n.width+c},d))),o="cr dR dA",a&&(o+=" dj"),r="left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg);",n.radius&&(r+="border-radius:"+n.radius+c+";"),(n.image||n.webUrl)&&(r+="background-image:url("+(n.image||n.webUrl)+");","full"==n.repeat?r+="background-size:100% 100%;":n.imageWidth>0&&n.imageHeight>0&&(r+="background-size:"+n.imageWidth+c+" "+n.imageHeight+c+";"),r+="background-repeat:"+("full"==n.repeat?"no-repeat":n.repeat)+";background-position:"+n.backgroundXOffset+p+" "+n.backgroundYOffset+p),s=[t("div",{"mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o,style:r},l)],t(i,0,s)},_f0:({image:e})=>e,assign(e){this.set(e);let{props:t}=e,{bind:i}=t,s="";if(i.id){s=`[\u7ed1\u5b9a:${i.fields[0].name}]`}this.set({text:s})},render(){this.digest()}}).merge(o)})),define("27/repeat/index",["1h"],((e,t,i)=>{let s=e("1h"),{View:o,isArray:r}=s;i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,{props:r,unit:d}=e;return o="left:"+r.x+d+";top:"+r.y+d+";height:"+r.height+d+";opacity:"+r.alpha+";width:"+r.width+d+";transform:rotate("+r.rotate+"deg);",r.radius&&(o+="border-radius:"+r.radius+d+";"),(r.image||r.webUrl)&&(o+="background-image:url("+(r.image||r.webUrl)+");","full"==r.repeat?o+="background-size:100% 100%;":r.imageWidth>0&&r.imageHeight>0&&(o+="background-size:"+r.imageWidth+d+" "+r.imageHeight+d+";"),o+="background-repeat:"+("full"==r.repeat?"no-repeat":r.repeat)+";background-position:"+r.backgroundXOffset+d+" "+r.backgroundYOffset+d),s=[t("div",{class:"cr dA dR",style:o})],t(i,0,s)},assign(e){this.set(e);let{props:t}=e,{bind:i}=t,s="";if(i.id){let e=i.fields[0];if(i._tip)s=i._tip;else if(i._data){let s=i._data;r(s)&&(s=s[0]),t.image=s[e.id]}else s=`[\u7ed1\u5b9a:${e.name}]`}this.set({text:s})},render(){this.digest()}})})),define("27/richtext/designer",["../../1g/props","../../1g/1k","../2u","../../1g/1j","../../1g/21"],((e,t,i)=>{let s=e("../../1g/props"),o=e("../../1g/1k"),r=e("../2u"),d=e("../../1g/1j"),l=e("../../1g/21");i.exports=r.extend({ctor(){this.set({view:"27/richtext/dshow"})}}).static({type:"richtext",title:"fn",icon:"",_cC:{root:1},_dd:l.bR|l.bS|l.bZ|l.bW,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({x:d.bK(e),y:d.bK(t),text:"\u6b22\u8fce\u4f7f\u7528\u901a\u7528\u8bbe\u8ba1\u5668",alpha:1,splitToPages:!0,width:d.bK(680),height:d.bK(300),ow:"ckeditor.com",help:"//github.com/xinglie/report-designer/issues/50",locked:!1}),props:[{key:"text",json:1},{tip:"dz",type:s.bJ,key:"x",_c6:1,fixed:d.cy,step:d.bV,read:o.bM,write:o.bR,json:1},{tip:"dA",type:s.bJ,key:"y",_c6:1,fixed:d.cy,step:d.bV,read:o.bM,write:o.bR,json:1},{tip:"dB",key:"width",_c6:1,fixed:d.cy,step:d.bV,read:o.bM,write:o.bR,min:()=>d.bK(200),type:s.bJ,json:1},{tip:"dC",key:"height",_c6:1,min:()=>d.bK(100),fixed:d.cy,step:d.bV,read:o.bM,write:o.bR,type:s.bJ,json:1},{tip:"dD",key:"alpha",type:s.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"hN",key:"splitToPages",type:s.bL,json:1},{type:s.c_},{tip:"dM",key:"ow",type:s.b4},{tip:"dN",type:s.b4,key:"help"},{tip:"dO",key:"ename",type:s.bS,json:1},{tip:"dP",key:"locked",type:s.bL,free:!0,json:1}]})})),define("27/richtext/dshow",["1h","../../1g/1t","../../1g/1v","../../1g/22","../../24/35"],((e,t,i)=>{let s,o=e("1h"),r=e("../../1g/1t"),d=e("../../1g/1v"),l=e("../../1g/22"),a=e("../../24/35"),{applyStyle:n,View:c,mark:p,node:h}=o;n("fA",".f8{height:calc(100% - 40px)}"),i.exports=c.extend({tmpl:(e,t,i)=>{let o,r,d,l,a,{props:n,unit:c,readonly:p,pv:h,text:b}=e;return a=[],p||(r=[t(0,h?"":"",1)],a.push(t("i",{class:"bJ c3 cr",style:"top:-20px;left:2px",title:h?"\u7f16\u8f91":"\u9884\u89c8","mx5-click":i+"\x1e_hA()"},r))),r=[t(0,b,1)],d="ck dC",h||(d+=" cw"),a.push(t("div",{id:i+"_pv",class:d},r)),l=[s||(s=t(0,"\u6b63\u5728\u52a0\u8f7d\u7f16\u8f91\u5668\u63d2\u4ef6..."))],r=[t("div",{id:i+"_ed"},l)],d="ck",h&&(d+=" cw"),a.push(t("div",{id:i+"_e",class:d},r)),o=[t("div",{class:"cr dR eb",style:"left:"+n.x+c+";top:"+n.y+c+";opacity:"+n.alpha+";width:"+n.width+c+";height:"+n.height+c,"mx5-pointerdown":i+"\x1e_fn()","mx5-contextmenu":i+"\x1e_fn()","mx5-wheel":i+"\x1e_fn()"},a)],t(i,0,o)},init(){this.on("destroy",(()=>{let e=this._hz;e&&1!==e&&e.destroy()}))},assign(e){this.set(e)},async render(){let e=p(this,"_bQ"),t=this.get("props"),i=t.readonly;if(await this.digest({readonly:i}),i)this.digest({pv:!0,text:t.text});else if(await a(),e())if(this._hz)1!=this._hz&&this._hz.setData(t.text);else{this._hz=1;let e=await CKEditor.Classic.create(h(`${this.id}_ed`),{initialData:t.text});this._hz=e,e.model.document.on("change",(()=>{this.get("props").text=e.getData()}))}},"_hA<click>"(e){let t=this.get("pv"),i=this.get("props");this.digest({pv:!t,text:i.text})},"_fn<wheel>"(e){e._d4=1},"_fn<pointerdown,contextmenu>"(e){if(e._d4)return;let{target:t}=e;if(t.id!=`${this.id}_pv`){e._d4=1;let t=this.get("element");if(l.bJ(t)){let e=d.bT(t);r.bJ(r.bT,e)}}}})})),define("27/richtext/index",["1h"],((e,t,i)=>{let s=e("1h");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a}=e;return d=[t(0,l.text,1)],o="cr dR",l.splitToPages||(o+=" dC"),r="left:"+l.x+a+";top:"+l.y+a+";opacity:"+l.alpha+";width:"+l.width+a+";height:",l.splitToPages?r+="auto":r+=""+l.height+a,s=[t("div",{class:o,style:r},d)],t(i,0,s)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/rod/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/rod/index"})}}).static({type:"rod",title:"hO",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_cF(e){e.customText?e.text=e.customText:e.text=d.bM(e.width)},_c4:(e,t)=>({height:s.bK(14),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,textRotate:0,startBorder:!0,endBorder:!0,width:s.bK(400),linetype:"solid",color:"#000",customText:"",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"gV",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>s.bK(4),max:()=>s.bK(100),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{key:"text",_e5(e,t){t.customText?e.text=t.customText:e.text=d.bM(t.width)}},{tip:"dI",json:1,type:r.bS,key:"customText"},{tip:"hP",type:r.bJ,key:"textRotate",min:-360,max:360,json:1},{tip:"hQ",type:r.bL,key:"startBorder",json:1},{tip:"hR",type:r.bL,key:"endBorder",json:1},{tip:"gW",key:"linetype",type:r.bQ,items:s.cv,json:1},{tip:"dK",key:"color",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/rod/index",["1h"],((e,t,i)=>{let s=e("1h");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a}=e;return d=[t("span",{style:"flex-grow:1;border-top:1px "+l.linetype+" "+l.color})],r=[t(0,l.text)],d.push(t("span",{style:"padding:0 4px;transform:rotate("+l.textRotate+"deg);color:"+l.color},r),t("span",{style:"flex-grow:1;border-top:1px "+l.linetype+" "+l.color})),o="left:"+l.x+a+";top:"+l.y+a+";opacity:"+l.alpha+";width:"+l.width+a+";height:"+l.height+a+";transform:rotate("+l.rotate+"deg);",l.startBorder&&(o+="border-left:1px "+l.linetype+" "+l.color+";"),l.endBorder&&(o+="border-right:1px "+l.linetype+" "+l.color+";"),s=[t("div",{class:"cF cI cZ cr dR",style:o},d)],t(i,0,s)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/line/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/line/index"})}}).static({type:"line",title:"fv",icon:"",_dd:o.bR|o.bS|o.bY|o.b1,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(1),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(200),linetype:"solid",color:"#000",locked:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"gV",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,max:()=>s.bK(100),fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"gW",key:"linetype",type:r.bQ,items:s.cv,json:1},{tip:"dK",key:"color",type:r.bK,json:1},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/line/index",["1h"],((e,t,i)=>{let s=e("1h");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,{props:o,unit:r}=e;return s=[t("div",{class:"cr dR",style:"left:"+o.x+r+";top:"+o.y+r+";border-top:"+o.height+r+" "+o.linetype+" "+o.color+";opacity:"+o.alpha+";width:"+o.width+r+";transform:rotate("+o.rotate+"deg)"})],t(i,0,s)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/subs/barcode",["1h","../../24/barcode"],((e,t,i)=>{let s=e("1h"),o=e("../../24/barcode"),{View:r,task:d,mark:l}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s=[],{msg:o}=e;return o?s.push(t(0,o)):s.push(t("img",{id:i+"_bar",class:"b8 cl cm"},1)),t(i,0,s)},assign(e){this.set(e)},async render(){let e=l(this,"_bQ");await this.digest({msg:"loading..."});try{if(await o._f1(),e()){let{value:t,lineWidth:i,format:s,showText:o,lineColor:r}=this.get();await this.digest({msg:null}),e=l(this,"_f9"),d((()=>{e()&&JsBarcode(`#${this.id}_bar`,t,{lineColor:r,width:+i,format:s,displayValue:"true"==o})}))}}catch(t){e()&&this.digest({msg:t.message||t})}}})})),define("27/subs/qrcode",["1h","../../24/qrcode"],((e,t,i)=>{let s=e("1h"),o=e("../../24/qrcode"),{View:r,mark:d,node:l,task:a}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s=[],{msg:o,vpos:r}=e;return o?s.push(t(0,o)):s.push(t("div",{id:i+"_qr",class:"cF ck",style:"align-items:"+r})),t(i,0,s)},assign(e){this.set(e)},async render(){let e=d(this,"_bQ");await this.digest({msg:"loading..."});try{if(await o(),e()){let{value:t}=this.get();await this.digest({msg:null}),e=d(this,"_gd"),a((()=>{if(e()){let e=l(`${this.id}_qr`);new QRCode(e).makeCode(t+"");let i=this.root.querySelector("img");i.classList.add("cl"),i.classList.add("cm")}}))}}catch(t){e()&&this.digest({msg:t})}}})})),define("27/qrcode/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/qrcode/dshow"})}}).static({type:"qrcode",title:"dW",icon:"",_dd:r.bT|r.bY|r.bZ|r.bQ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:o.bK(150),alpha:1,x:o.bK(e),y:o.bK(t),tfs:o.bK(14),rotate:0,width:o.bK(150),text:"",locked:!1,help:"github.com/xinglie/report-designer/issues/31",bind:{url:"",id:"",fields:[]}}),props:[{key:"tfs",_c6:1},{tip:"dz",type:d.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dA",type:d.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dB",type:d.bJ,key:"width",_c6:1,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dC",key:"height",_c6:1,type:d.bJ,min:()=>o.bK(20),fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_,_fZ:e=>!e.bind.id},{tip:"dF",key:"text",type:d.bO,json:1,_fZ:e=>!e.bind.id},{type:d.c_,_fZ:e=>!e.text&&n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:e=>!e.text&&n("getFieldUrl")},{type:d.c_},{tip:"dN",type:d.b4,key:"help"},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/qrcode/dshow",["1h","../../24/2v","../../24/qrcode"],((e,t,i)=>{let s=e("1h"),o=e("../../24/2v"),r=e("../../24/qrcode"),{View:d,mark:l,node:a,task:n}=s;i.exports=d.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{enter:a,props:n,unit:c,text:p,error:h,i18n:b}=e;return l=[],p&&!h||(r="",r+=h?" "+h+" ":" "+b("hG")+" ",d=[t(0,r)],l.push(t("div",{class:"co ct dA",style:"font-size:"+n.tfs+c+";height:"+n.height+c+";line-height:"+n.height+c+";width:"+n.width+c},d))),l.push(t("div",{class:"ct",id:"_rd_"+i+"_qr"})),o="cr dR dA",a&&(o+=" dj"),s=[t("div",{style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o},l)],t(i,0,s)},_f0:({text:e})=>e,assign(e){this.set(e);let{props:t}=e,{bind:i,text:s}=t;if(i.id){s=`[\u7ed1\u5b9a:${i.fields[0].name}]`}this.set({text:s})},async render(){let e=l(this,"_bQ");await this.digest({error:null});try{if(await r(),e()){let t=this.get("text")+"";if(t&&t!=this._f2){let i=this._gc;if(!i){let e=a(`_rd_${this.id}_qr`);i=new QRCode(e),this._gc=i}e=l(this,"_gd"),n((()=>{if(e()){i.makeCode(this._f2=t),this.root.querySelector("img").classList.add("b8","cj","cl")}}))}}}catch(t){e()&&this.digest({error:t})}}}).merge(o)})),define("27/qrcode/index",["1h","../../24/qrcode"],((e,t,i)=>{let s={class:"cF cI cZ ck"},o=e("1h"),r=e("../../24/qrcode"),{View:d,mark:l,node:a,task:n,isArray:c}=o;i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d=[],{error:l,text:a,props:n,unit:c}=e;return(l||a)&&(r=[],l&&(o=[t(0,l)],r.push(t("div",s,o))),r.push(t("div",{id:"_rd_"+i+"_qr"})),d.push(t("div",{class:"cr dA dR",style:"left:"+n.x+c+";top:"+n.y+c+";height:"+n.height+c+";opacity:"+n.alpha+";width:"+n.width+c+";transform:rotate("+n.rotate+"deg)"},r))),t(i,0,d)},assign(e){this.set(e);let{props:t}=e,{bind:i,text:s}=t;if(i.id){let e=i.fields[0];if(i._tip)s=i._tip;else if(i._data){let t=i._data;c(t)&&(t=t[0]),s=t[e.id]}else s=`[\u7ed1\u5b9a:${e.name}]`}this.set({text:s})},async render(){let e=l(this,"_bQ");await this.digest({error:null});try{if(await r(),e()){let t=this.get("text")+"";if(t&&t!=this._f2){let i=this._gc;if(!i){let e=a(`_rd_${this.id}_qr`);i=new QRCode(e),this._gc=i}e=l(this,"_gd"),n((()=>{if(e()){i.makeCode(this._f2=t),this.root.querySelector("img").classList.add("cj")}}))}}}catch(t){e()&&this.digest({error:t})}}})})),define("27/text/designer",["1h","../../1g/1j","../../1g/props","../../1g/1k","../2u","../../1g/21"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u"),a=e("../../1g/21"),{config:n}=s;i.exports=l.extend({ctor(){this.set({view:"27/text/dshow"})}}).static({type:"text",title:"iV",icon:"",_dd:a.bR|a.bS|a.bY|a.bZ|a.bO,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_de:e=>!e.bind.id,_c4:(e,t)=>({background:"",height:o.bK(25),alpha:1,text:"",letterspacing:0,autoReturn:!1,x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(200),forecolor:"#000",fontsize:o.bK(14),fontfamily:"Microsoft YaHei",locked:!1,styleBold:!1,styleUnderline:!1,styleItalic:!1,styleStrike:!1,styleOverline:!1,richtext:!1,borderwidth:0,bordercolor:"#000",bordertype:"solid",format:"",hpos:"flex-start",vpos:"flex-start",bind:{url:"",id:"",fields:[]},help:"github.com/xinglie/report-designer/issues/31"}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_,_fZ:e=>!e.bind.id},{tip:"dF",key:"text",type:r.bO,json:1,_fZ:e=>!e.bind.id},{type:r.c_,_fZ:e=>!e.text&&n("getFieldUrl")},{tip:"dG",key:"bind",type:r.bT,json:1,max:1,_fZ:e=>!e.text&&n("getFieldUrl")},{tip:"dY",key:"format",type:r.ce,json:1,_fZ:e=>e.bind.id},{type:r.c_},{tip:"dZ",type:r.bL,key:"autoReturn",json:1},{tip:"d0",type:r.bL,key:"richtext",json:1},{tip:"d1",key:"fontsize",type:r.bJ,min:0,_c6:1,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,json:1},{tip:"d2",key:"fontfamily",type:r.bQ,items:o.cu,json:1},{tip:"d3",key:"letterspacing",type:r.bJ,min:0,_c6:1,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,json:1},{tip:"d4",key:"background",clear:1,alpha:1,type:r.bK,json:1},{tip:"d5",key:"forecolor",type:r.bK,json:1},{tip:"dJ",type:r.bM,_e5(e,t){e.styleBold=t.styleBold,e.styleUnderline=t.styleUnderline,e.styleItalic=t.styleItalic,e.styleStrike=t.styleStrike,e.styleOverline=t.styleOverline}},{tip:"d6",type:r.bN,_e5(e,t){e.hpos=t.hpos,e.vpos=t.vpos}},{type:r.c_},{tip:"d7",key:"borderwidth",type:r.bJ,fixed:o.cy,step:o.bV,read:d.bM,write:d.bR,_c6:1,min:0,json:1},{tip:"d8",key:"bordertype",type:r.bQ,items:o.cv,json:1},{tip:"d9",key:"bordercolor",type:r.bK,json:1},{type:r.c_},{tip:"dN",type:r.b4,key:"help"},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/text/dshow",["1h","../../24/2v"],((e,t,i)=>{let s=e("1h"),o=e("../../24/2v"),{View:r}=s,{min:d}=Math;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,d,l,{enter:a,props:n,unit:c,bw:p,text:h,safeHTML:b,textReturn:g,i18n:y}=e;return d=[t(0,h?n.richtext?b(h):g(h):y("e_"),1)],r="color:"+n.forecolor+";",n.background&&(r+="background:"+n.background+";"),r+="font-size:"+n.fontsize+c+";height:"+n.height+c+";letter-spacing:"+n.letterspacing+c+";opacity:"+n.alpha+";",n.styleBold&&(r+="font-weight:bold;"),n.styleItalic&&(r+="font-style:italic;"),(n.styleUnderline||n.styleStrike||n.styleOverline)&&(r+="text-decoration:",n.styleStrike?r+="line-through":n.styleOverline?r+="overline":r+="underline",r+=";"),r+="align-items:"+n.vpos+";justify-content:"+n.hpos+";width:"+n.width+c+";font-family:"+n.fontfamily+";",p&&(r+="border:"+p+c+" "+n.bordertype+" "+n.bordercolor+";"),n.autoReturn&&(r+="word-break:break-all"),l=[t("div",{class:"cF ct dA",style:r},d)],o="cr dR",a&&(o+=" dj"),s=[t("div",{style:"left:"+n.x+c+";top:"+n.y+c+";transform:rotate("+n.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:o},l)],t(i,0,s)},_f0:({text:e,_df:t})=>e||t,assign(e){this.set(e);let{props:t}=e,{text:i,bind:s,borderwidth:o,width:r,height:l}=t;if(s.id){i=`[\u7ed1\u5b9a:${s.fields[0].name}]`}let a=d(r,l)/2;o>a&&(o=a),this.set({bw:o,text:i})},render(){this.digest()}}).merge(o)})),define("27/text/index",["1h","../../24/format"],((e,t,i)=>{let s=e("1h"),o=e("../../24/format"),{min:r}=Math,{isArray:d,View:l}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,bw:a,safeHTML:n,text:c,textReturn:p}=e;return r=[t(0,d.richtext?n(c):p(c),1)],o="left:"+d.x+l+";top:"+d.y+l+";color:"+d.forecolor+";",d.background&&(o+="background:"+d.background+";"),o+="font-size:"+d.fontsize+l+";min-height:"+d.height+l+";letter-spacing:"+d.letterspacing+l+";opacity:"+d.alpha+";",d.styleBold&&(o+="font-weight:bold;"),d.styleItalic&&(o+="font-style:italic;"),(d.styleUnderline||d.styleStrike||d.styleOverline)&&(o+="text-decoration:",d.styleStrike?o+="line-through":d.styleOverline?o+="overline":o+="underline",o+=";"),o+="align-items:"+d.vpos+";justify-content:"+d.hpos+";width:"+d.width+l+";transform:rotate("+d.rotate+"deg);font-family:"+d.fontfamily+";",a&&(o+="border:"+a+l+" "+d.bordertype+" "+d.bordercolor+";"),d.autoReturn?o+="word-break:break-all;transform-origin:"+d.width/2+l+" "+d.height/2+l+";":o+="max-height:"+d.height+l,s=[t("div",{class:"cF cr dA dR",style:o},r)],t(i,0,s)},assign(e){this.set(e);let{props:t}=e,{text:i,bind:s,format:l,borderwidth:a,width:n,height:c}=t;if(s.id){let e=s.fields[0];if(s._tip)i=s._tip;else if(s._data){let t=s._data;d(t)&&(t=t[0]),i=t[e.id],i=o._ge(l,i,t)}else i=`[\u7ed1\u5b9a:${e.name}]`}let p=r(n,c)/2;a>p&&(a=p),this.set({bw:a,text:i})},render(){this.digest()}})})),define("27/tag/designer",["1h","../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1j"),r=e("../../1g/21"),d=e("../../1g/props"),l=e("../../1g/1k"),a=e("../2u"),{config:n}=s;i.exports=a.extend({ctor(){this.set({view:"27/tag/dshow"})}}).static({type:"tag",title:"iU",icon:"",_dd:r.bR|r.bS|r.bY|r.bW|r.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({x:o.bK(e),y:o.bK(t),rotate:0,width:o.bK(300),height:o.bK(100),alpha:1,locked:!1,overflow:"auto",words:[{text:"\u6807\u7b7e",url:"//xinglie.github.io",forecolor:"#fff",background:"#FA742B"}],bind:{url:"",id:"",fields:[]}}),props:[{tip:"dz",type:d.bJ,key:"x",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dA",type:d.bJ,key:"y",_c6:1,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dB",type:d.bJ,key:"width",_c6:1,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dC",key:"height",_c6:1,type:d.bJ,min:()=>0,fixed:o.cy,step:o.bV,read:l.bM,write:l.bR,json:1},{tip:"dD",key:"alpha",type:d.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:d.bJ,key:"rotate",min:-360,max:360,json:1},{type:d.c_},{tip:"f8",key:"overflow",type:d.bQ,items:[{text:"f9",value:"auto"},{text:"g_",value:"visible"},{text:"ga",value:"hidden"}],json:1},{type:d.c_,_fZ:({words:e})=>!e.length&&n("getFieldUrl")},{tip:"dG",key:"bind",type:d.bT,json:1,max:1,_fZ:({words:e})=>!e.length&&n("getFieldUrl")},{type:d.c_,_fZ:({bind:e})=>!e.id},{type:d.co,key:"words",_e5(e,{words:t}){let i=[];for(let e of t)i.push({...e});e.words=i},_fZ:({bind:e})=>!e.id},{type:d.c_},{tip:"dO",key:"ename",type:d.bS,json:1},{tip:"dP",key:"locked",type:d.bL,free:!0,json:1}]})})),define("27/tag/dshow",["1h","../../24/2v"],((e,t,i)=>{let s={class:"cF cI cZ cj ck"},o=e("1h"),r=e("../../24/2v"),{View:d,applyStyle:l}=o;l("gH",".f9{padding:1px 4px;border-radius:2px;text-decoration:none;margin:4px;display:inline-block}"),i.exports=d.extend({tmpl:(e,t,i)=>{let o,r,d,l,{props:a,enter:n,unit:c}=e;if(l=[],a.bind&&a.bind.fields&&a.bind.fields.length)d=[t(0,"[bind:"+a.bind.fields[0].id+"]")],l.push(t("div",s,d));else for(let e=a.words,i=e.length,s=0;s<i;s+=1){let i=e[s];i.text&&(i.url?(d=[t(0,i.text)],l.push(t("a",{class:"c8 f9",style:"background:"+i.background+";color:"+i.forecolor,href:i.url,rel:"noopener noreferrer",target:"_blank"},d))):(d=[t(0,i.text)],l.push(t("span",{class:"c8 f9",style:"background:"+i.background+";color:"+i.forecolor},d))))}return r="cr dR","hidden"==a.overflow?r+=" dA":"visible"==a.overflow?r+=" dB":r+=" cA cB dC",n&&(r+=" dj"),o=[t("div",{style:"left:"+a.x+c+";top:"+a.y+c+";height:"+a.height+c+";opacity:"+a.alpha+";width:"+a.width+c+";transform:rotate("+a.rotate+"deg)","mx5-dragenter":i+"\x1e_g_()","mx5-dragleave":i+"\x1e_ga()","mx5-drop":i+"\x1e_gb()",class:r},l)],t(i,0,o)},_f0:({words:e})=>e&&e.length,assign(e){this.set(e)},render(){this.digest()}}).merge(r)})),define("27/tag/index",["1h"],((e,t,i)=>{let s=e("1h"),{View:o,applyStyle:r,isArray:d,isObject:l}=s;r("gH",".f9{padding:1px 4px;border-radius:2px;text-decoration:none;margin:4px;display:inline-block}"),i.exports=o.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a}=e;d=[];for(let e=l.words,i=e.length,s=0;s<i;s+=1){let i=e[s];i.text&&(i.url?(r=[t(0,i.text)],d.push(t("a",{class:"c8 f9",style:"background:"+i.background+";color:"+i.forecolor,href:i.url,rel:"noopener noreferrer",target:"_blank"},r))):(r=[t(0,i.text)],d.push(t("span",{class:"c8 f9",style:"background:"+i.background+";color:"+i.forecolor},r))))}return o="cr dR","hidden"==l.overflow?o+=" dA":"visible"==l.overflow?o+=" dB":o+=" cA cB dC",s=[t("div",{style:"left:"+l.x+a+";top:"+l.y+a+";width:"+l.width+a+";height:"+l.height+a+";opacity:"+l.alpha+";transform:rotate("+l.rotate+"deg)",class:o},d)],t(i,0,s)},assign(e){let{props:t}=e,{words:i,bind:s}=t;if(s.id&&s.fields.length){i.length=0;let e=s._data,t=s.fields[0].id;d(e)||(e=[e]);for(let s of e){let e=s[t];l(e)&&i.push(e)}}this.set(e)},render(){this.digest()}})})),define("27/svg/designer",["1h","../../1g/1j","../../1g/21","../../1g/1t","../../1g/1v","../../1g/22","../../1g/1k","../../1o/1p/index","../../1o/1q/cursor","../../24/33","../../1o/1q/tip"],((e,t,i)=>{let s,o,r=e("1h"),d=e("../../1g/1j"),l=e("../../1g/21"),a=e("../../1g/1t"),n=e("../../1g/1v"),c=e("../../1g/22"),p=e("../../1g/1k"),h=e("../../1o/1p/index"),b=e("../../1o/1q/cursor"),g=e("../../24/33"),y=e("../../1o/1q/tip"),{atan2:f,PI:x,max:_}=Math,{has:u,State:m,View:k}=r;i.exports=k.extend({tmpl:(e,t,i,r,d,l,a)=>{let n,c,p,h,b,g=[],{element:y,view:f,unit:x,fs:_,selected:u,selfGrouped:m,grouped:k,count:w,max:v,minSize:j,toPx:K,pos:R,denum:J,i18n:M}=e,L=y.props,S=y.ctrl;y.id;if(n="cz",L.readonly&&(n+=" ct"),g.push(t("div",{"mx5-owner":i,$:"element,unit","mx5-view":f+"?props="+l(d,L,"a;")+"&unit="+l(d,x,"a:"),class:n})),!_){L.rotate;if(h=[],L.locked&&(s?h.push(s):(p=[t(0,"\ue63e")],h.push(s=t("i",{_:"a;",class:"bJ cM cr dF dL dy"},p)))),!L.locked&&u&&(o?h.push(o):h.push(o=t("div",{_:"a:",class:"cr fv"}))),c="left:"+L.x+x+";top:"+L.y+x+";width:"+L.width+x+";height:"+L.height+x,L.rotate&&(c+=";transform:rotate("+L.rotate+"deg)"),n="cr cz dR fw",L.locked&&(n+=" dA"),u&&(L.locked?n+=" fz":n+=" fx",m&&(n+=" fB")),k&&(L.locked?n+=" fy":n+=" fA"),g.push(t("div",{id:"_rdm_"+y.id,style:c,class:n},h)),u&&1==w&&!L.locked&&!k&&!m){h=[];let e=K(L.width),s=K(L.height),o=K(L.x),r=K(L.y);if(R&&h.push(t("path",{d:"M"+e/2+" -14L"+e/2+" "+s/2+"L"+(R.x-o)+" "+(R.y-r),class:"fT"},1),t("circle",{r:4,cx:R.x-o,cy:R.y-r,class:"c3 cu fO"},1)),S._dd&&(S._dd&(J.bX|J.bY)&&h.push(t("path",{d:"M"+e/2+" -14L"+e/2+" 0",class:"fT"},1)),S._dd&J.bX&&h.push(t("circle",{r:3.5,cx:e/2,cy:-14,class:"c3 cu eb fM fO","mx5-pointerdown":i+"\x1e_hK()",title:M("fI"),"mx5-pointerover":i+"\x1e_gS()","mx5-pointerout":i+"\x1e_gU()"},1)),S._dd&J.bY&&h.push(t("circle",{r:3.5,cx:e/2,cy:-14,class:"c3 cu eb fM fO","mx5-pointerdown":i+"\x1e_gY()",title:M("fI"),"mx5-pointerover":i+"\x1e_gS()","mx5-pointerout":i+"\x1e_gU()"},1))),S._hv)for(let e=S._hv,i=e.length,s=0;s<i;s+=1){let[i,o]=e[s];h.push(t("circle",{r:K(L[i]),cx:K(L[o+"X"]-L.x),cy:K(L[o+"Y"]-L.y),class:"ct fP"},1))}if(S._hB){b="";for(let e=S._hB,t=0,i=e.length;t<i;t+=1){let i=e[t];b+="M"==i||"L"==i?""+i:K(L[i+"X"]-L.x)+" "+K(L[i+"Y"]-L.y)}h.push(t("path",{class:"fV",d:b},1))}if(S._hC)for(let e=S._hC,s=e.length,o=0;o<s;o+=1){let s=e[o];h.push(t("circle",{"mx5-pointerdown":i+"\x1e_hL({key:'"+a(s)+"'})",r:3,cx:K(L[s+"X"]-L.x),cy:K(L[s+"Y"]-L.y),"mx5-pointerover":i+"\x1e_gS()",title:M("g8"),"mx5-pointerout":i+"\x1e_gU()",class:"c3 cu eb fO"},1))}let d=S._gO?S._gO(L):S._hH;if(d)for(let e=d.length,s=0;s<e;s+=1){let e=d[s];n="fO cu c3 eb",e==L._gQ&&(n+=" fS"),h.push(t("circle",{"mx5-pointerdown":i+"\x1e_gZ({key:'"+a(e)+"'})","mx5-pointerover":i+"\x1e_gS()",title:M("fJ"),"mx5-pointerout":i+"\x1e_gU()",r:3,cx:K(L[e+"X"]-L.x),cy:K(L[e+"Y"]-L.y),class:n},1))}if(S._hw){d=S._hw(L);for(let e=d.length,s=0;s<e;s+=1){let e=d[s];n="fQ c4 eb",e.c==L._hu&&(n+=" fR"),h.push(t("rect",{x:K(e.x)-3,y:K(e.y)-3,width:5,height:5,"mx5-pointerover":i+"\x1e_hx({key:'"+a(e.c)+"'})",title:M("g8"),"mx5-pointerdown":i+"\x1e_hy({key:'"+a(e.c)+"'})","mx5-pointerout":i+"\x1e_gU()",class:n},1))}}h.push(t("title",{id:"_rd_t_"+i})),n="cr dR dB",L.readonly&&(n+=" ct"),c="left:"+L.x+x+";top:"+L.y+x+";width:"+v(L.width,j)+x+";height:"+v(L.height,j)+x,L.rotate&&(c+=";transform:rotate("+L.rotate+"deg)"),g.push(t("svg",{class:n,style:c},h))}}return t(i,0,g)},init(){this.set({denum:l,max:_,minSize:d.bK(1),toPx:d.bX})},_gP(){let e=c.bN(),t=m.get("bK").length,i=this.get("element");if(i){let s=i.id,o=m.get("bR")[s],r=0;if(!e[s]&&o)for(let t of o)if(e[t]){r=1;break}let d=u(e,s);d||(i.props._gQ=""),this.set({selfGrouped:o,grouped:r,selected:d,count:t})}},render(){this.digest()},"_hK<pointerdown>"(e){e._d4=1;let t=this,i=t.get("element"),{props:s,ctrl:o}=i,{x:r,y:l,width:c,height:h}=s;c=d.bX(c),h=d.bX(h),r=d.bX(r),l=d.bX(l);m.fire("bY",{show:1,size:1});let g,_={x:r+c/2,y:l+h/2},u=p.bP(t.root,{x:e.pageX,y:e.pageY,f:1}),k=f(u.y-_.y,u.x-_.x)-0*x/180,w={},v=o._gO?o._gO(s):o._hH;for(let e of v)w[e+"X"]=d.bX(s[e+"X"]),w[e+"Y"]=d.bX(s[e+"Y"]);let j=e.eventTarget;b._cj(j),t._ci(e,(({pageX:e,pageY:o})=>{g||(g=1),u=p.bP(t.root,{x:e,y:o,f:1});let r=f(u.y-_.y,u.x-_.x);r=(180*(r-k)/x+360|0)%360;for(let e of v){let t={x:w[e+"X"],y:w[e+"Y"]},i=p.bS(t,_)+r;t=p.bU(t,_,i),s[e+"X"]=d.bK(t.x),s[e+"Y"]=d.bK(t.y)}this.digest({pos:u,element:i}),m.fire("bL",{_dm:{[i.id]:1},_dn:{[i.type]:1},_bK:{_hJ:1}}),y._df(`${r}\xb0`),y._dl(e,o)}),(()=>{if(o._cF(s),this.digest({pos:0,element:i}),b._ck(),g){o._cF&&o._cF(s),m.fire("bL",{_dm:{[i.id]:1},_dn:{[i.type]:1},_bK:{_bO:1}});let e=n.bT(i);a.bJ(a.cg,e)}m.fire("bY",{hide:1}),y._ck()}))},"_hL<pointerdown>"(e){e._d4=1;let t=this.get("element"),{ctrl:i}=t,{key:s}=e.params;i._hG(t,e,s,this)}}).merge(h,g)})),define("27/svg/index",["./arc/designer","./battery/designer","./bezier2/designer","./bezier3/designer","./brace/designer","./circle/designer","./ellipse/designer","./fan/designer","./line/designer","./polygon/designer","./polyline/designer","./polyline2/designer","./rarrow/designer","./rbubble/designer","./rcard/designer","./rcorner/designer","./rcross/designer","./rcube/designer","./rcylinder/designer","./rdarrow/designer","./rect/designer","./rect2/designer","./rmoon/designer","./rpie/designer","./rstar/designer","./signal/designer","./star/designer","./triangle/designer","./wifi/designer","./speaker/designer","../index"],((e,t,i)=>{let s=e("./arc/designer"),o=e("./battery/designer"),r=e("./bezier2/designer"),d=e("./bezier3/designer"),l=e("./brace/designer"),a=e("./circle/designer"),n=e("./ellipse/designer"),c=e("./fan/designer"),p=e("./line/designer"),h=e("./polygon/designer"),b=e("./polyline/designer"),g=e("./polyline2/designer"),y=e("./rarrow/designer"),f=e("./rbubble/designer"),x=e("./rcard/designer"),_=e("./rcorner/designer"),u=e("./rcross/designer"),m=e("./rcube/designer"),k=e("./rcylinder/designer"),w=e("./rdarrow/designer"),v=e("./rect/designer"),j=e("./rect2/designer"),K=e("./rmoon/designer"),R=e("./rpie/designer"),J=e("./rstar/designer"),M=e("./signal/designer"),L=e("./star/designer"),S=e("./triangle/designer"),X=e("./wifi/designer"),V=e("./speaker/designer"),Y=e("../index");i.exports=()=>{Y.bL(s,o,r,d,l,a,n,c,p,h,b,g,y,f,x,_,u,m,k,w,v,j,K,R,J,M,L,S,X,V),Y.bM({icon:"",title:"SVG",subs:[{ctrl:p},{ctrl:r},{ctrl:d},{ctrl:s},{ctrl:b},{ctrl:g},{ctrl:S},{ctrl:v},{ctrl:j},{ctrl:a},{ctrl:n},{ctrl:l},{ctrl:J},{ctrl:y},{ctrl:f},{ctrl:u},{ctrl:w},{ctrl:k},{ctrl:m},{ctrl:K},{ctrl:R},{ctrl:x},{ctrl:_},{ctrl:h},{ctrl:L},{ctrl:c},{ctrl:o},{ctrl:X},{ctrl:M},{ctrl:V}]})}})),define("27/todo/designer",["../../1g/1j","../../1g/props","../../1g/1k","../2u","../../1g/21"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/props"),r=e("../../1g/1k"),d=e("../2u"),l=e("../../1g/21");i.exports=d.extend({ctor(){this.set({view:"27/todo/dshow"})}}).static({type:"todo",title:"Todo",icon:"",_dd:l.bR|l.bW|l.bZ,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({alpha:1,width:s.bK(300),height:s.bK(77),todos:[],x:s.bK(e),y:s.bK(t),locked:!1}),props:[{key:"todos",json:1},{tip:"dz",type:o.bJ,key:"x",_c6:1,step:s.bV,fixed:s.cy,read:r.bM,write:r.bR,json:1},{tip:"dA",type:o.bJ,key:"y",_c6:1,step:s.bV,fixed:s.cy,read:r.bM,write:r.bR,json:1},{tip:"dB",type:o.bJ,key:"width",_c6:1,min:()=>s.bK(200),step:s.bV,fixed:s.cy,read:r.bM,write:r.bR,json:1},{tip:"dC",key:"height",_c6:1,type:o.bV,read:r.bM,json:1},{tip:"dD",key:"alpha",type:o.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:o.c_},{tip:"dO",key:"ename",type:o.bS,json:1},{tip:"dP",key:"locked",type:o.bL,free:!0,json:1}]})})),define("27/todo/dshow",["1h","../../1g/1t","../../1g/1v","../../1g/22","./index"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1t"),r=e("../../1g/1v"),d=e("../../1g/22"),l=e("./index"),a=l.prototype,{State:n}=s;i.exports=l.extend({_hO(){a._hO.call(this);let e=this.get("element");this.owner.parent().invoke("_cG",e),n.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_bM:1}});let t=r.bT(e);o.bJ(o.cj,t)},"_hP<change>"(e){a["_hP<change>"].call(this,e);let t=this.get("element"),i=r.bT(t);o.bJ(o.cj,i)},"_fn<pointerdown,contextmenu>"(e){a["_fn<pointerdown,contextmenu>"].call(this,e);let t=this.get("element");if(t&&d.bJ(t)){let e=r.bT(t);o.bJ(o.bT,e)}}})})),define("27/todo/index",["1h","../../1g/1j"],((e,t,i)=>{let s,o,r={class:"gb gd"},d={class:"g_"},l={class:"cF cI gd gf"},a={checked:"checked"},n=e("1h"),c=e("../../1g/1j"),{View:p,applyStyle:h,node:b,State:g}=n;h("gP",".g_{border-radius:2px;border:solid 1px #ccc9}.ga{background:#eee9}.gb{padding:4px}.gc{min-height:40px}.gd{border-bottom:1px solid #ccc9}.ge{height:26px}.gf{height:24px;line-height:24px;padding:0 4px}.gg{display:none}.gf:hover{background:#eee3}.gf:hover .gg{display:block}.gh{text-decoration:line-through}");let y=/scaleY\(([\d\.]+)\)/;i.exports=p.extend({tmpl:(e,t,i)=>{let n,c,p,h,b,g,y,f,{props:x,unit:_,scale:u}=e;if(p=[t("input",{class:"bM bN cj ge",placeholder:"\u51c6\u5907\u505a\u4ec0\u4e48?\u56de\u8f66\u6dfb\u52a0\u5f85\u529e\u4e8b\u9879","mx5-keydown":i+"\x1e_hQ()"},1)],f=[t("div",r,p)],p=[],x.todos.length){y=[];for(let e=x.todos,o=e.length,r=0;r<o;r+=1){let o=e[r];b=[t("input",{type:"checkbox",checked:o.complete,"mx5-change":i+"\x1e_hP({index:"+r+"})"},1,a),t(0,o.task)],h="cF cI cE cC",o.complete&&(h+=" dy gh"),g=[t("label",{class:h},b)],b=[s||(s=t(0,"\ue6b3"))],g.push(t("i",{class:"bJ c3 dF dx gg","mx5-click":i+"\x1e_hR({index:"+r+"})"},b)),y.push(t("div",l,g))}p.push(t("div",d,y))}else p.push(o||(o=t(0,"\u6682\u65e0\u5f85\u529e\u4e8b\u9879")));return h="gb gc ci",x.todos.length||(h+=" dy"),f.push(t("div",{class:h},p)),c="left:"+x.x+_+";top:"+x.y+_+";height:"+x.height/u+_+";opacity:"+x.alpha+";width:"+x.width/u+_+";",1!=u&&(c+="transform:scale("+u+");transform-origin:0 0;"),n=[t("div",{class:"cr dR eb g_ ga","mx5-pointerdown":i+"\x1e_fn()","mx5-contextmenu":i+"\x1e_fn()",id:"todo_"+i,style:c},f)],t(i,0,n)},assign(e){this.set(e)},render(){this.digest({scale:g.get("bL")||1})},_hO(){let e=b(`todo_${this.id}`);if(e){let t=e.childNodes,i=2*(g.get("bL")||1);for(let e=t.length;e--;){let s=t[e];if(1==s.nodeType){i+=s.getBoundingClientRect().height}}let s=b("_rd_sc");if(s){let e=s.parentNode.style.transform.match(y);e&&(i/=parseFloat(e[1]))}let o=this.get("props");o.height=c.bK(i),this.digest({props:o})}},async"_hQ<keydown>"(e){let{code:t,eventTarget:i}=e;if("Enter"==t){let e=i.value;i.value="";let t=this.get("props");t.todos.unshift({task:e,complete:!1}),await this.digest({props:t}),this._hO()}},async"_hR<click>"(e){let{index:t}=e.params,i=this.get("props");i.todos.splice(t,1),await this.digest({props:i}),this._hO()},"_hP<change>"(e){let{index:t}=e.params,i=this.get("props");i.todos[t].complete=e.eventTarget.checked,this.digest({props:i})},"_fn<pointerdown,contextmenu>"(e){e._d4||(e._d4=1)}})})),define("27/video/designer",["../../1g/1j","../../1g/21","../../1g/props","../../1g/1k","../2u"],((e,t,i)=>{let s=e("../../1g/1j"),o=e("../../1g/21"),r=e("../../1g/props"),d=e("../../1g/1k"),l=e("../2u");i.exports=l.extend({ctor(){this.set({view:"27/video/index"})}}).static({type:"video",title:"iW",icon:"",_dd:o.bR|o.bS|o.bY,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:s.bK(300),alpha:1,x:s.bK(e),y:s.bK(t),rotate:0,width:s.bK(400),locked:!1,src:"",poster:"",autoplay:!1,controls:!0,loop:!1,muted:!1}),props:[{tip:"dz",type:r.bJ,key:"x",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dA",type:r.bJ,key:"y",_c6:1,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dB",type:r.bJ,key:"width",_c6:1,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dC",key:"height",_c6:1,type:r.bJ,min:()=>0,fixed:s.cy,step:s.bV,read:d.bM,write:d.bR,json:1},{tip:"dD",key:"alpha",type:r.bJ,step:.1,fixed:1,min:0,max:1,json:1},{tip:"dE",type:r.bJ,key:"rotate",min:-360,max:360,json:1},{type:r.c_},{tip:"iX",type:r.bO,key:"src",json:1},{tip:"iY",type:r.bS,key:"poster",json:1,_fZ:e=>""!=e.src},{tip:"iZ",type:r.bL,key:"autoplay",json:1,_fZ:e=>""!=e.src},{tip:"i0",type:r.bL,key:"loop",json:1,_fZ:e=>""!=e.src},{tip:"iO",type:r.bL,key:"muted",json:1,_fZ:e=>""!=e.src},{tip:"i1",type:r.bL,key:"controls",json:1,_fZ:e=>""!=e.src},{type:r.c_},{tip:"dO",key:"ename",type:r.bS,json:1},{tip:"dP",key:"locked",type:r.bL,free:!0,json:1}]})})),define("27/video/index",["1h"],((e,t,i)=>{let s=e("1h");i.exports=s.View.extend({tmpl:(e,t,i)=>{let s,o,r,{props:d,unit:l,i18n:a}=e;return r=[],d.src?r.push(t("video",{src:d.src,poster:d.poster,controls:d.controls,autoplay:d.autoplay,loop:d.loop,muted:d.muted,style:"width:"+d.width+l+";height:"+d.height+l})):(o=[t(0,a("i2"))],r.push(t("div",{class:"co dA",style:"width:"+d.width+l+";height:"+d.height+l+";line-height:"+d.height+l},o))),s=[t("div",{class:"cr dR",style:"left:"+d.x+l+";top:"+d.y+l+";opacity:"+d.alpha+";transform:rotate("+d.rotate+"deg)"},r)],t(i,0,s)},assign(e){this.set(e)},render(){this.digest()}})})),define("27/xsheet/designer",["../../1g/props","../../1g/1k","../2u","../../1g/1j","../../1g/21"],((e,t,i)=>{let s=e("../../1g/props"),o=e("../../1g/1k"),r=e("../2u"),d=e("../../1g/1j"),l=e("../../1g/21");i.exports=r.extend({ctor(){this.set({view:"27/xsheet/dshow"})}}).static({type:"xsheet",title:"i3",icon:"",_cD:1,_cC:{root:1},_dd:l.bR|l.bS|l.bY|l.bZ|l.bW,_cE:[{key:"x",use:"x"},{key:"y",use:"y"}],_c4:(e,t)=>({height:d.bK(400),alpha:1,x:d.bK(e),y:d.bK(t),sheetData:null,width:d.bK(500),locked:!1,ow:"github.com/mengshukeji/Luckysheet"}),props:[{key:"sheetData",json:1},{tip:"dz",type:s.bJ,key:"x",_c6:1,fixed:d.cy,step:d.bV,read:o.bM,write:o.bR,json:1},{tip:"dA",type:s.bJ,key:"y",_c6:1,fixed:d.cy,step:d.bV,read:o.bM,write:o.bR,json:1},{tip:"dB",type:s.bJ,key:"width",_c6:1,min:()=>d.bK(500),fixed:d.cy,step:d.bV,read:o.bM,write:o.bR,json:1},{tip:"dC",key:"height",_c6:1,type:s.bJ,min:()=>d.bK(400),fixed:d.cy,step:d.bV,read:o.bM,write:o.bR,json:1},{tip:"dD",key:"alpha",type:s.bJ,step:.1,fixed:1,min:0,max:1,json:1},{type:s.c_},{tip:"dM",key:"ow",type:s.b4},{tip:"dO",key:"ename",type:s.bS,json:1},{tip:"dP",key:"locked",type:s.bL,free:!0,json:1}]})})),define("27/xsheet/dshow",["1h","../../1g/1t","../../1g/1v","../../1g/22","../../24/xsheet"],((e,t,i)=>{let s=e("1h"),o=e("../../1g/1t"),r=e("../../1g/1v"),d=e("../../1g/22"),l=e("../../24/xsheet"),{View:a,mark:n,node:c,dispatch:p}=s;i.exports=a.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a,error:n,i18n:c}=e;return o="",o+=n?" "+n+" ":" "+c("g6")+" ",r=[t(0,o)],d=[t("div",{id:"_rd_tip_"+i,class:"cF cI cZ ck"},r)],s=[t("div",{class:"bQ cr dA dR eb",style:"left:"+l.x+a+";top:"+l.y+a+";height:"+l.height+a+";opacity:"+l.alpha+";width:"+l.width+a,id:"_rd_sheet_"+i,"mx5-pointerdown":i+"\x1e_fn()","mx5-contextmenu":i+"\x1e_fn()",tabindex:0},d)],t(i,0,s)},init(){this.on("destroy",(()=>{this._hS&&window.luckysheet&&luckysheet.destroy({container:"_rd_sheet_"+this.id})}))},assign(e){this.set(e)},async render(){let e=n(this,"_bQ");if(this._hr)this.digest({error:this._hr});else{await this.digest();let t=this._hS;try{if(t)p(window,"resize");else if(await l(),e()){let e=this.get("props");luckysheet.create({showtoolbar:!1,showsheetbar:!1,showinfobar:!1,enableAddBackTop:!1,enableAddRow:!1,cellRightClickConfig:{copy:!0,copyAs:!0,paste:!0,insertRow:!0,insertColumn:!0,deleteRow:!0,deleteColumn:!0,deleteCell:!0,hideRow:!1,hideColumn:!1,rowHeight:!1,columnWidth:!1,clear:!1,matrix:!1,sort:!1,filter:!1,chart:!1,image:!1,link:!1,data:!1,cellFormat:!1},hook:{updated(){e.sheetData=luckysheet.getAllSheets()}},container:"_rd_sheet_"+this.id});let t=c(`_rd_tip_${this.id}`);t.parentNode.removeChild(t),this._hS=1}}catch(e){this.digest({error:this._hr=e})}}},"_fn<pointerdown,contextmenu>"(e){if(e._d4)return;e._d4=1;let t=this.get("element");if(d.bJ(t)){let e=r.bT(t);o.bJ(o.bT,e)}}})})),define("27/xsheet/index",["1h","../../24/xsheet"],((e,t,i)=>{let s=e("1h"),o=e("../../24/xsheet"),{View:r,mark:d,node:l}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o,r,d,{props:l,unit:a,error:n,i18n:c}=e;return o="",o+=n?" "+n+" ":" "+c("g6")+" ",r=[t(0,o)],d=[t("div",{id:"_rd_tip_"+i,class:"cF cI cZ ck"},r)],s=[t("div",{class:"cr dR",style:"left:"+l.x+a+";top:"+l.y+a+";height:"+l.height+a+";opacity:"+l.alpha+";width:"+l.width+a,id:"_rd_sheet_"+i},d)],t(i,0,s)},init(){this.on("destroy",(()=>{this._hS&&window.luckysheet&&luckysheet.destroy({container:"_rd_sheet_"+this.id})}))},assign(e){this.set(e)},async render(){let e=d(this,"_bQ");if(this._hr)this.digest({error:this._hr});else{if(await this.digest(),!this._hS)try{if(await o(),e()){let e=this.get("props");luckysheet.create({showtoolbar:!1,showsheetbar:!1,showinfobar:!1,enableAddBackTop:!1,enableAddRow:!1,sheetFormulaBar:!1,showstatisticBar:!1,data:e.sheetData,cellRightClickConfig:{copy:!0,copyAs:!0,paste:!0,insertRow:!0,insertColumn:!0,deleteRow:!0,deleteColumn:!0,deleteCell:!0,hideRow:!1,hideColumn:!1,rowHeight:!1,columnWidth:!1,clear:!1,matrix:!1,sort:!1,filter:!1,chart:!1,image:!1,link:!1,data:!1,cellFormat:!1},container:"_rd_sheet_"+this.id}),this._hS=1;let t=l(`_rd_tip_${this.id}`);t.parentNode.removeChild(t)}}catch(e){this.digest({error:this._hr=e})}}}})})),define("1g/align",["1h"],((e,t,i)=>{let s=e("1h"),{State:o,View:r}=s;i.exports=r.extend({tmpl:(e,t,i)=>{let s,o=[],{x:r,dpr:d,y:l}=e;if(r)for(let e=r.length,i=0;i<e;i+=1){let e=r[i];s="cr dR ch cU",d>=2&&(s+=" e_"),o.push(t("div",{style:"top:"+e[0]+"px;left:"+e[1]+"px;width:"+(e[2]-e[1])+"px",class:s}))}if(l)for(let e=l.length,i=0;i<e;i+=1){let e=l[i];s="cr dR ch cW",d>=2&&(s+=" ea"),o.push(t("div",{style:"left:"+e[0]+"px;top:"+e[1]+"px;height:"+(e[2]-e[1])+"px",class:s}))}return t(i,0,o)},init(){let e=e=>{this.digest({x:e.x,y:e.y})};o.on("bJ",e),this.on("destroy",(()=>{o.off("bJ",e)}))},render(){this.digest({dpr:o.get("bJ")})}})})),define("1g/1i",["1h","./1j","./1k"],((e,t,i)=>{let s,o=e("1h"),r=e("./1j"),d=e("./1k"),{State:l,node:a,mark:n,lowTaskFinale:c,LOW:p}=o,h={},b=(e,t)=>e[0]-t[0],{max:g}=Math,y=async()=>{let e=n(h,"_bJ");await c(),e()&&(()=>{let e=l.get("bK"),t=[],i=[],s=d.bJ();for(let{id:o}of e){let e=a(`_rdm_${o}`);if(e){let o=e.getBoundingClientRect(),r=o.x-s.x,d=o.y-s.y;t.push([r,r+o.width]),i.push([d,d+o.height])}}let o=[];t.sort(b);let r=[];i.sort(b);let n=[[t,o],[i,r]];for(let[e,t]of n)for(let i of e){let e;for(let s of t)i[0]>=s[0]&&i[0]<=s[1]&&(s[1]=g(i[1],s[1]),e=1);e||t.push(i)}l.fire("bK",{x:o,y:r})})()},f=()=>{clearTimeout(s),s=setTimeout(y,15)},x=e=>{let t=e._bK;(t._bL||t._bM||t._bN||t._bO||t._bP||t.x||t.y||t.width||t.height||t.rotate||t.kp||t.borderwidth)&&y()};i.exports={bJ(){r.bJ&&(l.on("bL",x,p),l.on("bM",f,p),l.on("bN",f,p),l.on("bO",f,p))},bK(){r.bJ&&(l.off("bL",x),l.off("bM",f),l.off("bN",f),l.off("bO",f))}}})),define("1g/1l",["1h","./1j"],((e,t,i)=>{let s=e("1h"),o=e("./1j"),{View:r,State:d,mark:l,node:a}=s,{round:n}=Math,c=1e4,p=(e,t,i,s,r,d,l,a,p,h)=>{let b=n(t/i*c),g=(s+t*p)*h-h/2;if(b%(r*c)==0){e.fillRect(g,19*h-h*d,h,h*d);let t=(p<0?"-":"")+o.bK(b/c).toFixed(l);e.fillText(t,g+2*h,14*h)}else e.fillRect(g,19*h-h*a,h,h*a)};i.exports=r.extend({tmpl:(e,t,i)=>{let s=[],{width:o,dpr:r,h:d,x:l,xStart:a}=e;if(s.push(t("canvas",{class:"cp",width:o*r,height:d*r,style:"width:"+o+"px;height:"+d+"px",id:"c_"+i})),l)for(let e=l.length,i=0;i<e;i+=1){let e=l[i];s.push(t("div",{class:"cV cr dO eu",style:"left:"+(e[0]+a)+"px;width:"+(e[1]-e[0])+"px"}))}return t(i,0,s)},init(){let e=e=>{this.digest({x:e.x})};d.on("bK",e),this.on("destroy",(()=>{d.off("bK",e)}))},assign(e){this.set(e)},async render(){let e=l(this,"_bQ"),t=d.get("bJ");if(await this.digest({h:19,dpr:t}),e()){let e=a(`c_${this.id}`);if(e){let i=e.getContext("2d"),s=this.get("step"),o=this.get("xStart"),r=this.get("xEnd"),d=this.get("scale"),l=this.get("decimals"),a=this.get("space"),n=this.get("hbar"),c=this.get("width"),h=this.get("bar"),b=this.get("barColor");i.clearRect(0,0,t*c,19*t),i.font=10*t+"px sans-serif",i.strokeStyle=b,i.fillStyle=b;for(let e=s;e<o;e+=s)p(i,e,d,o,a,n,l,h,-1,t);for(let e=0;e<r;e+=s)p(i,e,d,o,a,n,l,h,1,t)}}}})})),define("1g/1m",["1h","./1j"],((e,t,i)=>{let s=e("1h"),o=e("./1j"),{View:r,State:d,mark:l,node:a}=s,{round:n,PI:c}=Math,p=1e4,h=(e,t,i,s,r,d,l,a,h,b)=>{let g=n(t/i*p),y=(s+t*h)*b-b/2;if(g%(r*p)==0){e.fillRect(19*b-b*d,y,b*d,b);let t=(h<0?"-":"")+o.bK(g/p).toFixed(l);e.save(),e.translate(14*b,y-b),e.rotate(-90*c/180),e.fillText(t,0,0),e.restore()}else e.fillRect(19*b-b*a,y,b*a,b)};i.exports=r.extend({tmpl:(e,t,i)=>{let s=[],{w:o,dpr:r,height:d,y:l,yStart:a}=e;if(s.push(t("canvas",{class:"cp",width:o*r,height:d*r,style:"width:"+o+"px;height:"+d+"px",id:"c_"+i})),l)for(let e=l.length,i=0;i<e;i+=1){let e=l[i];s.push(t("div",{class:"cX cr dL eu",style:"top:"+(e[0]+a)+"px;height:"+(e[1]-e[0])+"px"}))}return t(i,0,s)},init(){let e=e=>{this.digest({y:e.y})};d.on("bK",e),this.on("destroy",(()=>{d.off("bK",e)}))},assign(e){this.set(e)},async render(){let e=d.get("bJ");await this.digest({w:19,dpr:e});let t=l(this,"_bQ");if(await this.digest(),t()){let t=a(`c_${this.id}`);if(t){let i=t.getContext("2d"),s=this.get("step"),o=this.get("yStart"),r=this.get("yEnd"),d=this.get("scale"),l=this.get("space"),a=this.get("hbar"),n=this.get("height"),c=this.get("bar"),p=this.get("barColor"),b=this.get("decimals");i.clearRect(0,0,19*e,e*n),i.font=10*e+"px sans-serif",i.strokeStyle=p,i.fillStyle=p;for(let t=s;t<o;t+=s)h(i,t,d,o,l,a,b,c,-1,e);for(let t=0;t<r;t+=s)h(i,t,d,o,l,a,b,c,1,e)}}}})})),define("1g/1n",["1h","../1o/1p/index","../1o/1q/cursor","../1o/1r/index","../1s/index","./1i","./1j","./1t","./1u","./1k","./1v","./1l","./1m"],((e,t,i)=>{let s,o;e("./1l"),e("./1m");let r={class:"c5 cr dE dz er"},d={class:"c5 cr dE dz ep"},l={class:"bJ dG"},a=e("1h"),n=e("../1o/1p/index"),c=e("../1o/1q/cursor"),p=e("../1o/1r/index"),h=e("../1s/index"),b=e("./1i"),g=e("./1j"),y=e("./1t"),f=e("./1u"),x=e("./1k"),_=e("./1v"),{abs:u,max:m,round:k}=Math,{State:w,node:v,applyStyle:j,mark:K,View:R,inside:J,HIGH:M}=a;j("bN",".ec{z-index:200}.ed{height:20px;border-bottom:1px solid #ccc}.ee{top:0;background:#fa742b}.ef{left:0;background:#fa742b;height:1px}.eg{width:20px;border-right:solid 1px #ccc}.eh{left:0;top:0;width:20px;height:20px;border-bottom:solid 1px #ccc;border-right:solid 1px #ccc;z-index:201}.ei{left:5px;top:22px}.ej{top:2px;left:24px}.ek,.el{z-index:100}.ek{top:20px}.el{left:20px}.em{width:1px;border-left:solid 1px #fa742b}.en{height:1px;background:#fa742b}.eo{left:-15px;top:4px}.ep{left:4px;top:2px}.eq{left:4px;top:-15px}.eo:hover,.eq:hover{opacity:1}.er{left:4px;top:2px}.es{width:20px;top:-1px;height:3px;left:30px;background:#fa742b;cursor:ns-resize}.et{width:3px;left:-2px;height:20px;top:20px;background:#fa742b;cursor:ew-resize}.et:focus,.es:focus{outline:solid 1px #FA742B;background:#fff}.eu{background:rgba(250,116,43,.3)}"),i.exports=R.extend({tmpl:(e,t,i,a,n,c)=>{let p,h,b,g,y,f,x,_,{show:u,sTop:m,yHelpers:k,abs:w,yStart:v,scale:j,dpr:K,i18n:R,toUnit:J,sLeft:M,xHelpers:L,xStart:S,vHeight:X,width:V,decimals:Y,xEnd:F,step:C,space:T,hbar:z,bar:B,barColor:A,height:O,yEnd:N}=e;y=[];for(let e=k.length,o=0;o<e;o+=1){let e=k[o];_=w(v)+e*j+20,b=[s||(s=t(0,"\ue6b3"))],g=[t("i",{class:"bJ c3 cr cu dE dt eq",title:R("bL"),"mx5-click":i+"\x1e_ch({type:'y',i:"+o+"})"},b)],b=[t(0,J(e))],g.push(t("span",r,b),t("span",{class:"cr cu dA eb es","mx5-pointerdown":i+"\x1e_cl({type:'y',i:"+o+",c:"+_+"})",title:R("bM"),tabindex:0,"mx5-keydown":i+"\x1e_co({type:'y',i:"+o+"})"})),h="en cr ct cj",K>=2&&(h+=" e_"),y.push(t("div",{style:"top:"+_+"px",class:h},g))}h="el cs",u||(h+=" cw"),p=[t("div",{style:"transform:translateY(-"+m+"px)",id:"_rd_"+i+"_y_help",class:h},y)],y=[];for(let e=L.length,o=0;o<e;o+=1){let e=L[o];_=w(S)+e*j,b=[s||(s=t(0,"\ue6b3"))],g=[t("i",{class:"bJ c3 cr cu dE dt eo",title:R("bL"),"mx5-click":i+"\x1e_ch({type:'x',i:"+o+"})"},b)],b=[t(0,J(e))],g.push(t("span",d,b),t("span",{class:"cr cu dA eb et","mx5-pointerdown":i+"\x1e_cl({type:'x',i:"+o+",c:"+_+"})",title:R("bM"),tabindex:0,"mx5-keydown":i+"\x1e_co({type:'x',i:"+o+"})"})),h="em cr ct",K>=2&&(h+=" ea"),y.push(t("div",{x:K,style:"left:"+_+"px;height:"+X+"px",class:h},g))}h="ek cs",u||(h+=" cw"),p.push(t("div",{style:"transform:translateX(-"+M+"px)",id:"_rd_"+i+"_x_help",class:h},y)),g=[t("div",{"mx5-owner":i,$:"decimals,width,xStart,xEnd,step,space,scale,hbar,bar,barColor","mx5-view":"1g/1l?decimals="+c(n,Y,"a;")+"&width="+c(n,V,"a:")+"&xStart="+c(n,S,"a-")+"&xEnd="+c(n,F,"a+")+"&step="+c(n,C,"b_")+"&space="+c(n,T,"ba")+"&scale="+c(n,j,"bb")+"&hbar="+c(n,z,"bc")+"&bar="+c(n,B,"bd")+"&barColor="+c(n,A,"be"),class:"ck",style:"width:"+V+"px"})],y=[t("div",{class:"ci cj cs dA ec ed",id:"_rd_"+i+"_x","mx5-wheel":i+"\x1e_cr({type:'x'})"},g)],b=[o||(o=t(0,"-"))],g=[t("span",{class:"cr dE ei",id:"_rd_"+i+"_x_tip"},b)],h="ee cr ct cw ec cW",K>=2&&(h+=" ea"),y.push(t("div",{style:"height:"+(X+20)+"px",id:"_rd_"+i+"_x_line",class:h},g)),p.push(t("div",{"mx5-pointermove":i+"\x1e_ca()","mx5-pointerout":i+"\x1e_cb()","mx5-click":i+"\x1e_cf()"},y)),g=[t("div",{"mx5-owner":i,$:"decimals,height,yStart,yEnd,step,space,scale,hbar,bar,barColor","mx5-view":"1g/1m?decimals="+c(n,Y,"a;")+"&height="+c(n,O,"bf")+"&yStart="+c(n,v,"bg")+"&yEnd="+c(n,N,"bh")+"&step="+c(n,C,"b_")+"&space="+c(n,T,"ba")+"&scale="+c(n,j,"bb")+"&hbar="+c(n,z,"bc")+"&bar="+c(n,B,"bd")+"&barColor="+c(n,A,"be"),style:"height:"+O+"px"})],y=[t("div",{class:"ci cs dA ec eg",id:"_rd_"+i+"_y",style:"height:"+X+"px","mx5-wheel":i+"\x1e_cr({type:'y'})"},g)],b=[o||(o=t(0,"-"))],g=[t("span",{class:"cr dE ej",id:"_rd_"+i+"_y_tip"},b)],h="ef cr ct cw ec cj",K>=2&&(h+=" e_"),y.push(t("div",{id:"_rd_"+i+"_y_line",class:h},g)),p.push(t("div",{"mx5-pointermove":i+"\x1e_cd()","mx5-pointerout":i+"\x1e_ce()","mx5-click":i+"\x1e_cg()"},y));let P=L.length+k.length;return y=[],P&&(x="",x+=u?"\ue676":"\ue6f4",g=[t(0,x)],y.push(t("i",l,g))),h="eh cr ci cF cI cZ dx",P&&(h+=" c3"),f="",P&&(f+=R(u?"bN":"bO")+"(H)"),p.push(t("div",{"mx5-click":i+"\x1e_cp({lines:"+P+"})",class:h,title:f},y)),t(i,0,p)},init(){let e=this._bR.bind(this);this._bS=v("_rd_stage"),this.set({abs:u,dpr:w.get("bJ"),toUnit:e=>g.bL(g.bK(e)),bar:4,hbar:12,barColor:"#aaa"});let t=this._bT(this.render,30),i=e=>{if(e.bJ||!e.bK||e.bL)return;let{bM:t,bN:i,bO:s,bP:o}=e;t==f.bJ&&(e.bQ(),o?this.render({_bU:1}):i||s||this.render({_bV:1}))};this._bW=this._bT(this._bX,20),w.on("bO",t),w.on("bN",t),w.on("bP",t),w.on("bQ",t),w.on("bR",t),w.on("bS",i),w.on("bT",e,M),b.bJ(),this.on("destroy",(()=>{w.off("bO",t),w.off("bN",t),w.off("bQ",t),w.off("bP",t),w.off("bR",t),w.off("bS",i),w.off("bT",e),b.bK()}))},async _bX(){if(this._bY){let e=this._bS,t=w.get("bL"),i=m(e.scrollWidth,innerWidth)+g.bM,s=m(e.scrollHeight,innerHeight)+g.bM,o=0,r=0,d=g.bN,l=0,a=0,n=v("_rd_so"),c=x.bJ(),p=n.getBoundingClientRect();o=k(c.x-p.x)+d,r=i-o,l=k(c.y-p.y),a=s-l;let h=e.offsetHeight,b=w.get("bM"),y=g.bO[b]||g.bO.px,f=y[t],_=K(this,"_bQ");await this.digest({unit:w.get("bM"),decimals:y._bZ,sTop:e.scrollTop,sLeft:e.scrollLeft,width:i,scale:t,space:f.space,step:f.step,height:s,xStart:o,xEnd:r,yStart:l,vHeight:h,yEnd:a}),_()&&!this._b0&&(this._b0=v("_rd_"+this.id+"_x"),this._b1=v("_rd_"+this.id+"_y"),this._b2=v("_rd_"+this.id+"_x_line"),this._b3=v("_rd_"+this.id+"_y_line"),this._b4=v("_rd_"+this.id+"_x_tip"),this._b5=v("_rd_"+this.id+"_y_tip"),this._b6=v("_rd_"+this.id+"_x_help"),this._b7=v("_rd_"+this.id+"_y_help"))}},_bR({left:e,top:t}){let i=this._b0,s=this._b1,o=this._b7,r=this._b6;i&&(i.scrollLeft=e),s&&(s.scrollTop=t),r&&(r.style.transform=`translateX(-${e}px)`),o&&(o.style.transform=`translateY(-${t}px)`),this.set({sLeft:e,sTop:t})},render(e){let t=K(this,"_bQ"),i=w.get("bN"),s=w.get("bO"),o=this.get("show");i.length||s.length?e&&("bO"==e.type?o=1:e._bV?o=!o:e._bU&&(i.length=0,s.length=0,y.bJ(y.bK))):o=1,w.set({bP:o}),this.set({xHelpers:i,yHelpers:s,show:o});let r=()=>{v("_rd_sc")&&(p._b8(r),t()&&(this._bY=1,this._bX()))};p._b9(20,r)},"_ca<pointermove>"(e){let t=w.get("bQ"),i=this._b0;if(t||!i)return;let s=this.root.getBoundingClientRect(),o=e.pageX-s.x-scrollX|0,r=this.get("xStart"),d=this._b2.style;d.display="block",d.left=o+"px",this._c_=o;let l=o-r+i.scrollLeft,a=this.get("scale"),n=this.get("toUnit");this._b4.innerText=n(l/a)},"_cb<pointerout>"(e){!J(e.relatedTarget,e.eventTarget)&&this._b2&&(this._b2.style.display="none")},"_cd<pointermove>"(e){let t=w.get("bQ"),i=this._b1;if(t||!i)return;let s=this.root.getBoundingClientRect(),o=e.pageY-s.y-scrollY|0,r=this.get("yStart"),d=this._b3.style;d.display="block",d.top=o+"px",this._cc=o;let l=o-r-g.bN+i.scrollTop,a=this.get("scale"),n=this.get("toUnit");this._b5.innerText=n(l/a)},"_ce<pointerout>"(e){!J(e.relatedTarget,e.eventTarget)&&this._b3&&(this._b3.style.display="none")},"_cf<click>"(){let e=this._b2;if(!e)return;let t=this._c_;e.style.display="none";let i=this.get("xStart"),s=this._b0,o=this.get("scale"),r=(t-i+s.scrollLeft)/o|0,d=this.get("xHelpers");d.push(r),w.set({bP:1}),this.digest({show:1,xHelpers:d}),w.fire("bU"),y.bJ(y.bL,h("bJ"))},"_cg<click>"(){let e=this._b3;if(!e)return;e.style.display="none";let t=this._cc,i=this.get("yStart"),s=this._b1,o=this.get("scale"),r=(t-i-g.bN+s.scrollTop)/o|0,d=this.get("yHelpers");d.push(r),w.set({bP:1}),this.digest({show:1,yHelpers:d}),w.fire("bU"),y.bJ(y.bL,h("bK"))},"_ch<click>"(e){let{type:t,i:i}=e.params,s=t+"Helpers",o=this.get(s);o.splice(i,1),this.digest({[s]:o}),w.fire("bU"),y.bJ(y.bM,h("x"==t?"bJ":"bK"))},"_cl<pointerdown>"(e){if(e.target!=e.eventTarget)return;let{type:t,i:i,c:s}=e.params,o=t+"Helpers",r=this.get(o),d=this.get(t+"Start"),l=0;w.set({bQ:1}),this._ci(e,(a=>{let n;l||(l=1,c._cj(e.eventTarget)),n="x"==t?a.pageX-e.pageX+s:a.pageY-e.pageY+s-g.bN,r[i]=(n-d)/this.get("scale")|0,this.digest({[o]:r})}),(()=>{w.set({bQ:0}),l&&(c._ck(),y.bJ(y.bN,h("x"==t?"bJ":"bK")))}))},"_co<keydown>"(e){let t=e.shiftKey?g.bP:g.bQ,{type:i,i:s}=e.params,o=`${i}Helpers`,r=this.get(o),{code:d}=e;if(d!=f.bK)return d==f.bL||d==f.bM?(e.eventTarget.blur(),r.splice(s,1),this.digest({[o]:r}),void y.bJ(y.bM,h("x"==i?"bJ":"bK"))):void("x"!=i||d!=f.bN&&d!=f.bO?"y"!=i||d!=f.bP&&d!=f.bQ||(d==f.bP&&(t*=-1),r[s]+=t,this.digest({[o]:r}),y.bJ(y.bN,h("bK"),"_cn",g.bR)):(d==f.bN&&(t*=-1),r[s]+=t,this.digest({[o]:r}),y.bJ(y.bN,h("bJ"),"_cm",g.bR)));e.eventTarget.blur()},"_cp<click>"(e){let{lines:t}=e.params;if(t){let e=!this.get("show");w.set({bP:e}),this.digest({show:e})}},"_cr<wheel>&{passive:false}"(e){this._cq(e);let{type:t}=e.params,{x:i,y:s}=_.bJ(e),o="x"==t;if(o&&i||!o&&s){let t=this[o?"_b2":"_b3"];t&&"none"!=t.style.display&&this[o?"_ca<pointermove>":"_cd<pointermove>"](e),o?s=0:i=0,_.bK(i,s)}}}).merge(n)})),define("1g/20",["1h","./1j","./21","./1t","./1v","./22","./1k"],((e,t,i)=>{let s=e("1h"),o=e("./1j"),r=e("./21"),d=e("./1t"),l=e("./1v"),a=e("./22"),n=e("./1k"),{abs:c}=Math,{State:p,node:h,guid:b,mix:g,isFunction:y}=s,f=(e,t,i,s,r,d,l)=>{for(let{props:a}of e)if(c(a.x-t)<l&&c(a.y-i)<l&&c(a.width-s)<l&&c(a.height-r)<l&&o.bS(a.rotate||0,d||0))return 1},x=(e,t,i,s,r,d)=>{let l,a,c=i._cs,{x:p,y:b,width:g,height:y,rotate:x}=e,_=n.bK(e);if(t){let e=_._ct[0];l=o.bK(t.x)-e.x,a=o.bK(t.y)-e.y}else{let t=h(i._cu),u={x:0,y:0,width:o.bK(t.clientWidth)-2*s,height:o.bK(t.clientHeight)-2*s},m={x:_._cv-s,y:_._cw-s,width:_._cx,height:_._cy};n.bL(m,u)||(p=u.x+(p-m.x-s),b=u.y+(b-m.y-s),r&&(p+=o.bK(r)),d&&(b+=o.bK(d)));let k=o.bK(o.bT);for(;f(c,p,b,g,y,x,s);)p+=k,b+=k;l=p-e.x,a=b-e.y}return{x:l,y:a}},_=(e,t,i)=>{if(t.type=e.type,t.ctrl=e.ctrl,t.props=o.bU(e.props),t.id=b("rde_"),e.ctrl.as&r.bJ){t.props.rows=[],t.props.focusRow=-1,t.props.focusCol=-1;for(let s of e.props.rows){let e={...s},o=[];for(let e of s.cols){let t={...e};if(e.elements){t.elements=[];for(let s of e.elements){let e=1,o=s.ctrl._cz;if(o>=0){l.bL(i,s.type).length>=o&&(e=0)}if(e){let e={};_(s,e,i),t.elements.push(e)}}}o.push(t)}e.cols=o,t.props.rows.push(e)}}},u=(e,t,i,s,r,d,a,c)=>{let b,g=e._cs,f=e._cA,u=e._cB,m=p.get("bR"),k=[],w={};if(t&&t.length){t=o.bU(t);let p=0,v=0,j=o.bV(),K=h(e._cu).getBoundingClientRect(),R=n.bJ(),J=o.bK(K.x-R.x),M=o.bK(K.y-R.y);for(let s=t.length;s--;){let o=t[s];if(!i||!i.bJ(o)){let i={...o,props:{...o.props}},{props:l}=i;if(l.x-=J,l.y-=M,d||(d=o.id),d==o.id){let t=x(l,r,e,j,a,c);p=t.x,v=t.y}t[s]=i}}for(let e of t){let t=1,o=e.ctrl._cC;if(f&&!f[e.type]&&(t=0),t&&o&&!o[u]&&(t=0),t){let i=e.ctrl._cD;if(i>=0){l.bM(e.ctrl).length>=i&&(t=0)}}if(t){let i=e.ctrl._cz;if(i>=0){l.bL(g,e.type).length>=i&&(t=0)}}if(t){b=1;let t={};_(e,t,g);let{props:o,ctrl:r}=t,d=r._cE;y(d)&&(d=d(o));for(let e of d)o[e.key]+="x"==e.use?p:v;o.locked=!1,o.pinX=!1,o.pinY=!1,!r._cF||i&&i.bJ(t)||r._cF(o),s&&s[e.id]&&(s[e.id]=t.id),g.push(t),k.push(t),w[e.id]=t.id,l.bN()}}if(b)for(let e in m){let t=m[e],i=w[e];if(i){let e=[];for(let i of t){let t=w[i];t&&e.push(t)}e.length>1&&(m[i]=e)}}}return{_cG:b,_cH:k,_cI:w,_cJ:s}},m=[];i.exports={_cK:()=>p.get("bS").c||m,_bU(){p.get("bS").c&&(p.set({bS:{}}),p.fire("bV"))},_cL:()=>p.get("bS").cut,_cP(e,t,i){let s,r;if(e.length){let d=p.get("bT"),l=0,a=0;s=o.bU(e);let b=p.get("bU");b&&(s=t?b.bK(s):b.bL(s),r=b.bM(s));let g,y,f,x,{x:_,y:u}=n.bJ(),m=o.bV();for(let e of s){let{id:t,props:s}=e,r=h(`_rdm_${t}`);if(r){let e=r.getBoundingClientRect(),p=e.x+e.width/2-_,h=e.y+e.height/2-u,b=n.bK(s),k=b._cM-o.bK(p),w=b._cN-o.bK(h);if(c(k)>m&&(s.x-=k),c(w)>m&&(s.y-=w),i&&o.bW&&t==d.id){let e=b._ct[0];l=i.pageX-_-o.bX(e.x-k),a=i.pageY-u-o.bX(e.y-w)}(!g||e.x<y.x)&&(g=t,y=e),(!f||e.y<x.y)&&(f=t,x=e)}}let k,w=0,v=0;if(g!=f){let e=x.x-y.right,t=y.y-x.bottom;e>t?(k=g,t>0&&(v=t+o.bT)):(k=f,e>0&&(w=e+o.bT))}else k=f;let j=p.get("bS");j.se=k,j.ue=d&&d.id,j.ox=l,j.oy=a,j.mx=w,j.my=v}return{_cJ:r,_cO:s}},_cQ(e){let t=p.get("bK"),i=p.get("bS");i.cut=0;let{_cJ:s,_cO:o}=this._cP(t,0,e);o&&o.length&&(i.fr=s,i.c=o,p.fire("bV"))},_cR(e){let t=p.get("bK"),i=p.get("bS");i.cut=1;let{_cJ:s,_cO:o}=this._cP(t,1,e);if(o&&o.length){i.fr=s,i.c=o;let e={},t=p.get("bU"),r=[];for(let t of o){let{props:i}=t;i.locked||i.pinX||i.pinY||(r.push(t),e[t.id]=1)}if(t){let{bJ:i}=l.bO();for(let s of i){let{props:i,id:o}=s;t.bJ(s)&&(e[i.linkFromId]||e[i.linkToId])&&(e[o]=1)}}r.length&&(l.bP(e),l.bQ(e),a.bJ(),d.bJ(d.bO,l.bR(r)),p.fire("bW"))}},_cT(e){if(p.get("bV").readonly)return;let t={},i=[],s=p.get("bU");for(let o of e){let{_cJ:e,_cO:r}=this._cP(o._cS),{_cJ:d,_cH:l,_cG:a}=u(o,r,s,e);a&&(g(t,d),i.push(...l))}i.length&&(s&&(l.bN(),s.bN(i,t)),p.fire("bW"),a.bK(i),d.bJ(d.bP,l.bR(i)))},_cU(e,t){let i=p.get("bV"),s=p.get("bU");if(i.readonly)return;let r,n,c=p.get("bS"),h=c.ue,b=c.se;if(h&&t){let e=c.ox,i=c.oy;t.x-=e,t.y-=i}else h=b,r=c.mx,n=c.my;let{_cJ:g,_cH:y,_cG:f}=u(e,c.c,s,c.fr,t,h,r,n);f&&(c.cut&&o.bY&&this._bU(),s&&(l.bN(),s.bN(y,g)),p.fire("bW"),a.bK(y),d.bJ(d.bQ,l.bR(y)))}}})),define("1g/1j",["1h","./21"],((e,t,i)=>{let s=e("1h"),o=e("./21"),{State:r,isArray:d,isObject:l}=s,{round:a,pow:n,abs:c}=Math,p=1e-7,h={px:0,mm:2,cm:3,pt:2,in:3,pc:3,q:1},b={px:{bJ:1,bK:1}},g=e=>{if(!b[e]){0;let t=document.createElement("div"),i=1e3;t.style.cssText=`width:${i}${e};position:absolute;left:-${i}${e};top:-10px`,document.body.appendChild(t);let s=t.clientWidth;document.body.removeChild(t);let o=i/s,r=s/i;b[e]={bJ:o,bK:r}}},y=(e,t)=>(t=t||r.get("bM"),g(t),e*b[t].bK),f=e=>{if(e)if(d(e)){let t=[];for(let i of e)t.push(f(i));e=t}else if(l(e)){let t={};for(let i in e)t[i]=f(e[i]);e=t}return e};i.exports={bZ:50,bR:900,b0:1,b1:1,b2:1,b3:1,b4:1,bY:1,b5:1,b6:[80,380,80,240],b7:793,b8:1122,b9:6e3,c_:6e3,ca:20,cb:5,cc:1,cd:o.bK,ce:o.bL|o.bM,bW:0,bN:20,bM:500,bJ:1,cf:4,cg:.5,ch:.5,ci:0,bQ:1,bP:10,cj:1,ck:5,cl:8,cm:4,cn:1,co:1,bT:10,cp:3,cq:200,cr:0,cs:1,ct:1,cu:[{value:"SimSun",text:"bP"},{value:"SimHei",text:"bQ"},{value:"Microsoft YaHei",text:"bR"},{value:"Microsoft JhengHei",text:"bS"},{value:"KaiTi",text:"bT"},{value:"LiSu",text:"bU"},{value:"YouYuan",text:"bV"},{value:"Arial",text:"Arial"},{value:"Times New Roman",text:"Times New Roman"},{value:"Tahoma",text:"Tahoma"},{value:"webdings",text:"webdings"},{value:"Arial Black",text:"Arial Black"},{value:"Arial Narrow",text:"Arial Narrow"},{value:"Arial Unicode MS",text:"Arial Unicode MS"},{value:"monospace",text:"Monospace"}],cv:[{text:"bW",value:"solid"},{text:"bX",value:"dotted"},{text:"bY",value:"dashed"},{text:"bZ",value:"double"}],cw:"mm",cx:1,bV:e=>(e=e||r.get("bM"),g(e),b[e].bJ),cy:e=>(e=e||r.get("bM"),h[e]),bO:{px:{_bZ:0,.5:{space:200,step:10},1:{space:100,step:10},1.5:{space:70,step:10.5},2:{space:50,step:10},2.5:{space:40,step:10},3:{space:35,step:10.5},3.5:{space:28,step:9.8},4:{space:20,step:8}},mm:{_bZ:0,.5:{space:151.2,step:7.56},1:{space:75.6,step:7.56},1.5:{space:49.14,step:7.371},2:{space:37.8,step:7.56},2.5:{space:30.24,step:7.56},3:{space:26.46,step:7.938},3.5:{space:21.168,step:7.4088},4:{space:15.12,step:6.048}},in:{_bZ:2,.5:{space:192,step:9.6},1:{space:96,step:9.6},1.5:{space:67.2,step:10.08},2:{space:48,step:9.6},2.5:{space:38.4,step:9.6},3:{space:33.6,step:10.08},3.5:{space:26.88,step:9.408},4:{space:19.2,step:7.68}},pt:{_bZ:0,.5:{space:213.28,step:10.664},1:{space:106.64,step:10.664},1.5:{space:74.648,step:11.1972},2:{space:53.32,step:10.664},2.5:{space:42.656,step:10.664},3:{space:37.324,step:11.1972},3.5:{space:29.8592,step:10.45072},4:{space:21.328,step:8.5312}},cm:{_bZ:1,.5:{space:151.18,step:7.559},1:{space:75.59,step:7.559},1.5:{space:52.913,step:7.93695},2:{space:37.795,step:7.559},2.5:{space:30.236,step:7.559},3:{space:26.4565,step:7.93695},3.5:{space:21.1652,step:7.40782},4:{space:15.118,step:6.0472}},pc:{_bZ:1,.5:{space:160,step:8},1:{space:80,step:8},1.5:{space:54.4,step:8.16},2:{space:40,step:8},2.5:{space:32,step:8},3:{space:27.2,step:8.16},3.5:{space:22.4,step:7.84},4:{space:16,step:6.4}},q:{_bZ:0,.5:{space:151.2,step:7.56},1:{space:75.6,step:7.56},1.5:{space:51.03,step:7.6545},2:{space:37.8,step:7.56},2.5:{space:30.24,step:7.56},3:{space:24.57,step:7.371},3.5:{space:18.9,step:6.615},4:{space:15.12,step:6.048}}},bL(e,t,i){i=i||r.get("bM"),null==t&&(t=h[i]);let s=n(10,t);return a(e*=s)/s},bK:(e,t)=>(t=t||r.get("bM"),g(t),e*=b[t].bJ),cz:p,cA:(e,t)=>e<t?c(e-t)<p:1,bS:(e,t)=>c(e-t)<p,bX:y,cB(e){let t=y((e=>(e=e||r.get("bM"),1/n(10,h[e])))(e));return t>.5&&(t=.5),t},cC(e,t,i){i=i||r.get("bM"),g(i),g(t);let s=b[i],o=b[t];return e*s.bK*o.bJ},bU:f}})),define("1g/content",["1h","../1o/23/index","../1s/index","../24/fs","./1j","./1t","./25"],((e,t,i)=>{let s,o,r,d={class:"bU bV cF cI cL cM ci dV"},l={class:"b5"},a={class:"bY"},n={class:"b0 b1 c0 cF cI cL ci dO dT"},c={value:"value"},p=e("1h"),h=e("../1o/23/index"),b=e("../1s/index"),g=e("../24/fs"),y=e("./1j"),f=(e("./1t"),e("./25")),x=(e,t,i)=>((e+="").length<t&&(e=Array(t-e.length+1).join(i)+e),e),{node:_,State:u,applyStyle:m,View:k,Vframe:w,mark:v}=p;m("bT",".ev{height:calc(100vh - 180px)}");let j=atob("LyohUmVwb3J0IERlc2lnbmVyIEZpbGUKRnJvbTpodHRwczovL2dpdGh1Yi5jb20veGluZ2xpZS9yZXBvcnQtZGVzaWduZXIKQXV0aG9yOmtvb2JveV9saUAxNjMuY29tKi8K"),K=e=>{w.root().invoke("alert",e)};i.exports=k.extend({tmpl:(e,t,i)=>{let p,h,b,{i18n:g,hl:y,body:f}=e;return p=s?[s]:[s=t("div",{_:"a;",class:"bW cL dU"})],b=[],h=[t(0,g("b4"))],b.push(t("h5",l,h)),y&&(o?b.push(o):(h=[t(0,"\u5982\u4f55\u4fdd\u5b58\u6570\u636e\u5230\u6570\u636e\u5e93?")],b.push(o=t("a",{_:"a:",class:"b7 cf",href:"https://github.com/xinglie/report-designer/issues/29",rel:"noopener noreferrer",target:"_blank"},h)))),p.push(t("div",d,b)),b=[t("textarea",{class:"bO cj ev",spellcheck:"false",id:"_rd_ta_"+i,value:f},0,c)],p.push(t("div",a,b)),h=[t(0,g("b5"))],b=[t("button",{"mx5-click":i+"\x1e_cX()",class:"bR bT c3 co",type:"button"},h)],h=[t(0,g("b6"))],b.push(t("button",{"mx5-click":i+"\x1e_cW()",class:"bR c3 cf co",type:"button"},h)),p.push(t("div",n,b)),r?p.push(r):p.push(r=t("div",{_:"a-",class:"bZ cL dS"})),t(i,0,p)},init(e){this._cV=e.dialog},render(){this.digest({hl:y.b1,body:f()})},"_cW<click>"(){this._cV.close()},"_cX<click>"(){K("\u672a\u6388\u6743\u7248\u672c\u4e0d\u652f\u6301\u8be5\u529f\u80fd")}}).static({async _cZ(e){K("\u672a\u6388\u6743\u7248\u672c\u4e0d\u652f\u6301\u8be5\u529f\u80fd")},async _c2(){let e=v(this,"_cY");try{await g._c0()}catch(e){return void w.root().invoke("alert",e.message)}if(e()){h.show(b("b1"));let t=new Date,i=[t.getFullYear(),x(t.getMonth()+1,2,"0"),x(t.getDate(),2,"0"),x(t.getHours(),2,"0"),x(t.getMinutes(),2,"0"),x(t.getSeconds(),2,"0")].join(""),s=f();try{s=j+btoa(encodeURIComponent(s)),await g._c1(`${b("b2")}-${i}.rd`,s),h.show(b("b3"),3e3)}catch(t){h.hide(),e()&&"AbortError"!=t.name&&w.root().invoke("alert",t.message)}}}})})),define("1g/26",["1h","../1s/index"],((e,t,i)=>{let s=e("1h"),o=e("../1s/index"),{guid:r}=s,d={bar:!0},l={id:0,icon:"",text:"b7",short:"Ctrl+A"},a={id:1,icon:"",text:"b8",short:"Ctrl+C"},n={id:2,icon:"",text:"b9",short:"Ctrl+X"},c={id:3,icon:"",text:"c_",short:"T"},p={id:4,icon:"",r180:1,text:"ca",short:"B"},h={id:5,icon:"",text:"cb",short:"U"},b={id:6,icon:"",r180:1,text:"cc",short:"D"},g={id:7,icon:"",text:"cd",short:"Ctrl+D"},y={id:8,icon:"",text:"ce",short:"Ctrl+V"},f={id:9,icon:"",text:"cf",short:"Delete"},x={id:10,icon:"",text:"cg",short:"C"},_={id:11,icon:"",text:"ch",short:"N"},u={id:12,icon:"",text:"ci",short:"Ctrl+Shift+I"},m={id:20,icon:"",text:"cj",to:"left"},k={id:21,icon:"",r180:1,text:"ck",to:"right"},w={id:22,icon:"",text:"cl",to:"center"},v={id:23,icon:"",text:"cm",to:"top"},j={id:24,icon:"",r180:1,text:"cn",to:"bottom"},K={id:25,icon:"",r90:1,text:"co",to:"middle"},R={id:31,icon:"",text:"cp",short:"Ctrl/Shift+G"},J={id:32,icon:"",text:"cq",short:"Shift/Ctrl+G"},M={id:41,text:"cr"},L={id:42,text:"cs"},S={id:43,text:"ct"},X={id:44,text:"cu"},V={id:50,text:"cv"},Y={},F=e=>t=>{e.bJ||(e.bJ=r("m_"));let i=t+e.bJ;if(!Y[i]){let t=[];for(let i of e)i.bar?t.push(i):t.push({id:i.id,to:i.to,icon:i.icon,r180:i.r180,r90:i.r90,text:o(i.text),short:i.short});Y[i]=t}return Y[i]};i.exports={bJ:l.id,bK:y.id,bL:c.id,bM:h.id,bN:p.id,bO:b.id,bP:n.id,bQ:a.id,bR:g.id,bS:f.id,bT:x.id,bU:_.id,bV:J.id,bW:R.id,bX:M.id,bY:L.id,bZ:S.id,b0:X.id,b1:j.id,b2:w.id,b3:m.id,b4:K.id,b5:k.id,b6:v.id,b7:V.id,b8:u.id,b9:F([a,g,n,f,d,c,h,b,p,d,R,J,d,u]),c_:F([a,g,n,f,d,m,w,k,v,K,j,d,S,X,M,L,d,R,J,d,u]),ca:F([a,g,n,f,d,m,w,k,v,K,j,d,R,J,d,u]),cb:F([l,y,d,a,g,n,f,d,x,_]),cc:F([l,y,V,d,a,g,n,f,d,h,c,b,p,d,u])}})),define("1g/27",["1h","../1o/28/index","../1o/1q/cursor","../1o/1q/tip","../1s/index","./20","./1j","./26","./21","./1v","./1t","./22","./29","./1k"],((e,t,i)=>{let s=e("1h"),o=e("../1o/28/index"),r=e("../1o/1q/cursor"),d=e("../1o/1q/tip"),l=e("../1s/index"),a=e("./20"),n=e("./1j"),c=e("./26"),p=e("./21"),h=e("./1v"),b=e("./1t"),g=e("./22"),y=e("./29"),f=e("./1k"),{random:x,abs:_,round:u,floor:m,min:k,max:w,ceil:v}=Math,{has:j,node:K,mix:R,State:J,Vframe:M,guid:L,taskFinale:S,inside:X,config:V,isFunction:Y}=s,F=Number.MAX_VALUE,C=-F,T=Date.now,z=L("_rdcm_"),B=(e,t)=>e.v-t.v,A=(e,t,i)=>{let s,o,r=F,d=F,l=C,a=C,n=[];for(let o of t){let{top:t,bottom:c,left:p,right:h}=e[o];if("right"==i)h>l&&(l=h,s=o);else if("left"==i)p<r&&(r=p,s=o);else if("top"==i)t<d&&(d=t,s=o);else if("bottom"==i)c>a&&(a=c,s=o);else if("middle"==i){let e=(c-t)/2;n.push({v:t+e,m:o})}else if("center"==i){let e=(h-p)/2;n.push({v:p+e,m:o})}}return o=n.length,o&&(n.sort(B),s=n[v(o/2)-1].m),s},O=(e,t,i)=>{let s=e[t],o=s;return s-=i,s-o},N=(e,t,i)=>{if(e.ctrl.as&p.bJ)for(let s of e.props.rows)for(let e of s.cols)if(e.elements)for(let s of e.elements)t[s.id]||(t[s.id]=-1),N(s,t,i);let s=i[e.id];for(;s;)t[s]||(t[s]=-1),s=i[s]};i.exports={bL(e){let t=J.get("bW");if(t){J.set({bW:null});let i=[],s=[],o=J.get("bL");if(!J.get("bV").readonly){let r=0;for(let d of t){let t,{props:a,ctrl:c,silent:b,first:g}=d;e.node&&(t=this.bJ(e.node,c));let y=this.bK(e,b,t,c),f=y._cs;if(!f)continue;let x=c._cD;if(x>=0){let{bJ:e}=h.bO();if(h.bL(e,c.type).length>=x)continue}let _=c._cz;if(_>=0){if(h.bL(f,c.type).length>=_)continue}let u=y._c3,m=c._c4(u.x+r*n.bT,u.y+r*n.bT);j(m,"ename")||(m.ename=l(c.title)),a&&(Y(a)&&(a=a()),R(m,a));let k={};for(let e of c.props)Y(e._c5)?e._c5(m,o,k):e._c6&&(k[e.key]=m[e.key]*o);let w=k.x-m.x,v=k.y-m.y,K=0,J=0,M=c._cE;Y(M)&&(M=M(m)),K=O(k,"x",w),J=O(k,"y",v);for(let e of M)"x"==e.use?k[e.key]+=K:k[e.key]+=J;for(let e in k)m[e]=k[e];c._cF&&c._cF(m);let S={id:L("rde_"),ctrl:c,type:c.type,props:m};g?f.unshift(S):f.push(S),y._c7&&s.push(S);let X=m.bind;if(X&&X.id){let{_c8:e,_c9:t,_d_:i}=h.bS(S);if(e){let{ctrl:s,props:o}=e;if(s.as&p.bN){let e=s._da;e&&e(o,S,t,i);let r=s._cF;r&&r(o)}}}i.push(S),r++}}return{_db:i,_dc:s}}},bM(e,t,i=!0){let{bK:s}=h.bO();if(s[e.id])if(t){let t,i=J.get("bK"),o={},r={},d=[];e.ctrl.as&p.bJ&&d.push(e);for(let s=i.length;s--;){let o=i[s];o.id==e.id&&(t=1),o.ctrl.as&p.bJ&&d.push(o)}if(t&&i.length>1){if(g.bL(e)){let t=h.bT(e);b.bJ(b.bS,t)}return}let l=J.get("bR"),a={},n=[...i,e];for(let e of n){let t=l[e.id];if(t)for(let e of t)if(!a[e]){a[e]=1;let t=s[e];t.ctrl.as&p.bJ&&d.push(t)}}let c=(e,t)=>{for(let i of e)if(t&&(o[i.id]=1,r[i.id]=t),i.ctrl.as&p.bJ)for(let e of i.props.rows)for(let t of e.cols)t.elements&&c(t.elements,i.id)};if(c(d),j(o,e.id)){let t=e.id;for(;;){let e=r[t];if(!e)break;{o[e]=1;let i=l[e];if(i)for(let e of i)o[e]=1;t=e}}}for(let e=i.length;e--;){let t=i[e];j(o,t.id)&&i.splice(e,1)}if(g.bM(e)){let t=h.bT(e);b.bJ(b.bT,t)}}else if(g.bJ(e)){i&&h.bU(e.id);let t=h.bT(e);b.bJ(b.bT,t)}},bN(e,t,i){let{props:s,ctrl:o,id:r}=e,d=o._dd;if(d){let r;d&p.bO&&(!o._de||o._de(s))&&(r=1,s._df=1),r&&t&&t.bQ(),r&&h.bV(e,"",i)}},bQ(e,t){let{params:i,button:s,shiftKey:o,ctrlKey:l,metaKey:a,altKey:c,target:x,pageX:u,pageY:m}=e,{element:k,maskId:w}=i,{props:v,id:j}=k;if(v.readonly)return;let R,L=K(j);L&&(R=M.byNode(L)),"icon"==x.dataset.as&&R&&R.invoke("_dg",k);let{bK:X,bJ:V,bL:F}=h.bO();if(!X[j])return;let C=J.get("bK"),z=J.get("bU");J.set({bT:null});let B=0;for(let e of C)if(e.id===k.id){B=1;break}if(s){if(!B&&g.bJ(k)){let e=h.bT(k);b.bJ(b.bT,e)}J.set({bT:k})}else if(o||l||a)this.bM(k,1,!1);else{r._dh("move");let i,s=[],o={};B||(i=g.bJ(k),C.length=0,C.push(k));let l,a,x=J.get("bR"),v=[],j=[],K=J.get("bV"),M=J.get("bL"),L=K.snapElement,A=n.cc;for(let e of C){o[e.id]||z&&z.bJ(e)||(o[e.id]=p.bK,j.push(e),A&&N(e,o,F));let t=x[e.id];if(t)for(let e of t)if(!o[e]){let t=X[e];z&&z.bJ(t)||(o[e]=p.bP,j.push(t),A&&N(t,o,F))}}let O=0,P=0;for(let e of j){let{id:t,ctrl:i,props:o}=e;o.locked?(O=1,P=1):(o.pinX&&(O=1),o.pinY&&(P=1));let r={},d=i._cE;Y(d)&&(d=d(o));for(let e of d)r[e.key]=n.bX(o[e.key]);s.push(r)}let I,W,Z,H,$,U,E,Q=0,q=n.cB(),D=L?c:!c,G=n.cl*M;if(J.fire("bY",{show:1,size:1}),A){let e=y.bJ(V,w,k,o);v=e.bJ,I=e.bK,W=e.bL;let t=e.bM,i=h.bW(I,W,t);H=i._di,$=i._dj,Z=i._dk}let ee=async()=>{if(!l)return;let{pageX:e,pageY:t}=l;if(U=e-u,E=t-m,a&&(E+=a.bJ,U+=a.bK),O&&(U=0),P&&(E=0),A&&H){let e=y.bK(v,I,U,W,E,Z,H,$,O,P,D,G,q);U=e.bL,E=e.bM}let i=0,o={},r={},c=_(U),p=_(E);if(n.cA(c,q)||n.cA(p,q)||Q){for(let l of j){let a=s[i++],{props:c,id:p,ctrl:b,type:g}=l,y=b._cE;Y(y)&&(y=y(c));for(let e of y){let t="x"==e.use?U:E;c[e.key]=n.bK(a[e.key]+t),Q=1}if(p==k.id){let i=`${f.bM(c.x)} , ${f.bM(c.y)}`;d._df(i),d._dl(e,t)}await h.bV(l),o[p]=1,r[g]=1}a&&!a.bL&&(a.bL=1,await S(),a.bM()),J.fire("bL",{_dm:o,_dn:r,_bK:{_bL:1}})}},te=e=>{a=e,ee()},ie=e=>{D=L?e.bP:!e.bP,ee()};J.on("bS",ie),J.on("bZ",te),t._ci(e,(e=>{J.fire("b0",e),l=e,ee()}),(()=>{if(J.off("bS",ie),J.off("bZ",te),Q){if(delete this.bO,n.cA(_(U),q)||n.cA(_(E),q)){let e=h.bR(j);b.bJ(b.bU,e)}}else if(!B&&i){let e=h.bT(k);b.bJ(b.bT,e)}if(!Q){R&&R.invoke("_do",k);let t=this.bO;if(t){let i=e.pageX-t.pageX+e.pageY-t.pageY,s=T()-this.bP;!i&&s<n.cq&&(R&&R.invoke("_dp",k),this.bN(k,0,R))}this.bO=e,this.bP=T()}J.fire("bY",{hide:1}),J.fire("b1"),A&&J.fire("bJ"),r._ck(),d._ck()}))}},bR(){let e=h.bX();if(1===e.length){let t=e[0];if("_dr"==t._dq){let e=t._dr,{props:i}=e;if(!i.readonly){i.focusRow=t._ds,i.focusCol=t._dt,J.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_du:1}});let s=K(e.id);if(s){let t=M.byNode(s);t&&t.invoke("_cG",e)}if(g.bJ(e)){let t=h.bT(e);b.bJ(b.bT,t)}}}}},bS(e,t){let i=J.get("bK"),s=-1;if(t&&!t.props.locked&&i.length){let o=h.bY(i[0]),r=o[o.length-1],d=o[0];if((4==e||6==e)&&t.id!=d.id||(3==e||5==e)&&t.id!=r.id){for(let e=o.length;e--;){if(o[e].id===t.id){o.splice(s=e,1);break}}3==e?o.push(t):4==e?o.unshift(t):5==e?o.splice(s+1,0,t):6==e&&(0===s&&(s=1),o.splice(s-1,0,t));let i=h.bT(t);b.bJ(b.bV,i),J.fire("bW")}}},bT(e){let t,i,s=J.get("bK"),o=s.length,r=J.get("bX"),d=h.bZ(r,1);if(1!=o){let t=d[e?0:d.length-1];t&&(i=t)}else{t=s[0];let o=d.length;for(;o--;){let e=d[o];if(t.id==e.id)break}e?(o++,o>=d.length&&(o=0)):(o--,o<0&&(o=d.length-1)),i=d[o]}if(i&&(!t||i.id!=t.id)){h.bU(i.id),g.bJ(i);let e=h.bT(i);b.bJ(b.bT,e)}},bU(e,t,i,s,o){let{bK:r}=h.bO();for(let d of e){let e=o?d:r[d],{ctrl:l,props:a,id:n}=e;s&&(s[n]=1);let c=l._cE;Y(c)&&(c=c(a));for(let e of c)e.use==t&&(a[e.key]+=i);h.bV(e)}},bV(e){let t,i=J.get("bK"),s=J.get("bT"),o=g.bN(),r=J.get("bR"),{bK:d,bJ:l}=h.bO(),a=J.get("bU"),c=C,p=F,y=F,f=C,x=F,_=F;J.set({bT:null}),a&&(i=a.bL(i,1));let u={};for(let e of l){let t=K("_rdm_"+e.id).getBoundingClientRect();u[e.id]={left:n.bK(t.x),top:n.bK(t.y),right:n.bK(t.right),bottom:n.bK(t.bottom),width:n.bK(t.width),height:n.bK(t.height)}}if(s)t=s.id;else{let s=[];for(let e of i)s.push(e.id);t=A(u,s,e)}let{top:m,bottom:k,left:w,right:v}=u[t];c=v,p=w,y=m,f=k,x=m+(k-m)/2,_=w+(v-w)/2;let j=0,R=[],M=r[t],L={[t]:1},S=0,X=0,V=1;if(M)for(let e of M)L[e]=1;for(let t of i)if(M=r[t.id],M){let t=[];for(let e of M)o[e]&&!L[e]&&t.push(e);if(t.length){let i=A(u,t,e);if(!L[i]){L[i]=1,R.push(d[i]);for(let e of t)L[e]=1}}}else L[t.id]||(L[t.id]=1,R.push(t));if(!R.length&&M){V=0;for(let e of i)e.id!=t&&R.push(e)}for(let{props:e}of R)if(e.locked?(S=1,X=1):(e.pinX&&(S=1),e.pinY&&(X=1)),S&&X)break;let Y={},T={};for(let t of R){let i,s=u[t.id],o=0;if("right"!=e||S?"left"!=e||S?"top"!=e||X?"bottom"!=e||X?"middle"!=e||X?"center"!=e||S||(o=_-(s.left+s.width/2),i="x"):(o=x-(s.top+s.height/2),i="y"):(o=f-s.bottom,i="y"):(o=y-s.top,i="y"):(o=p-s.left,i="x"):(o=c-s.right,i="x"),n.bL(o)){Y[t.id]=1,T[t.type]=1,j=1;let e=V&&r[t.id]||[t.id];this.bU(e,i,o,Y)}}j&&(J.fire("bL",{_dm:Y,_dn:T,_bK:{_bL:1}}),b.bJ(b.bW))},async bW(e,t){let i=J.get("bK");if(2==i.length){let s=J.get("bT"),[o,r]=i,d=o==s?r:o;J.set({bT:null});let{props:l,ctrl:a,id:n}=s,c=1==e?"width":"height",b=1==t?"width":"height",g=d.props;if(g[c]!=l[b]){let e,i=f.bK(l)._ct[0];a._dd&p.bQ&&(e=l.height?l.width/l.height:0),l[b]=g[c],e&&(1==t?l.height=l.width/e:l.width=l.height*e);let o=f.bK(l)._ct[0];return l.x+=i.x-o.x,l.y+=i.y-o.y,await h.bV(s),[1,n,s]}}return[0,0]},bX(e,t){let i,s,o=J.get("bK"),r=J.get("bU"),d=J.get("bR");r&&(o=r.bL(o,1));let l,a,c="v"==e,p=1,h=C,g=F,y=C,f=F,x=C,_=C,m=[],k=0,w=1,v={};for(let e of o){let i=d[e.id];i?v[i]||(v[i]=1,k++):k++;let s=K("_rdm_"+e.id).getBoundingClientRect(),{x:o,y:r,width:l,height:a,bottom:n,right:c}=s,p=o,b=r;t&&(p+=l/2,b+=a/2),p>h&&(h=p),p<g&&(g=p),b>y&&(y=b),b<f&&(f=b),c>_&&(_=c),n>x&&(x=n),m.push([p,b,e,l,a,c,n])}k<2&&(w=0);let j={},R={},M=m.length-1,L=M;l=c?(e,i)=>{if(!t){if(e[6]==x)return 1;if(i[6]==x)return-1}return e[1]-i[1]||i[0]-e[0]}:(e,i)=>{if(!t){if(e[5]==_)return 1;if(i[5]==_)return-1}return e[0]-i[0]||i[1]-e[1]},m.sort(l);let S=m[0];if(t)i=u((y-f)/L),s=u((h-g)/L);else{let e=0,t=0,o=x-f,r=_-g;for(let i of m){if(c&&n.bS(o,i[4])||!c&&n.bS(r,i[3])){p=0;break}e+=i[3],t+=i[4]}i=u((o-t)/L),s=u((r-e)/L)}if(p)for(let e=1;e<M;e++){let o,r,l,p=m[e],h=p[2];t?c?(o=e*i+f,r=p[1],l="y"):(o=e*s+g,r=p[0],l="x"):c?(o=S[1]+S[4]+i,r=p[1],p[1]=o,l="y"):(o=S[0]+S[3]+s,r=p[0],p[0]=o,l="x"),S=p;let b=n.bL(n.bK(o-r));if(b){j[h.id]=1,R[h.type]=1,a=1;let e=w&&d[h.id]||[h.id];this.bU(e,l,b,j)}}a&&(J.fire("bL",{_dm:j,_dn:R,_bK:{_bL:1}}),b.bJ(c?b.bX:b.bY))},bY(e,t,i){let s,o=h.bX(),r=J.get("bR"),d=J.get("bU"),l=J.get("bV"),a=g.bN(),c={},p={},y="sv"==e,f=l.pages;i&&(t=0);let x=[],_={};for(let e of o){let t=K(e._cu).getBoundingClientRect(),i={_dv:t.x,_dw:t.y,_dx:t.width,_dy:t.height,_dz:1,_cS:[],_dA:0},s=e._cS;d&&(s=d.bL(s,1));let o=0,l=0,c=0,p={};for(let e of s){let t=r[e.id];if(t){if(!p[t]){p[t]=1,l=0,o++;for(let e of t)a[e]&&l++;l==t.length&&c++}}else o++}1==o&&1==c&&(i._dz=0);let h=i;for(let o of s){let s=K("_rdm_"+o.id).getBoundingClientRect();if("_dB"==e._dq){let e=t.height/f,o=m((s.y-t.y)/e);o=w(k(o,f-1),0);let r=o*e;j(_,r)?h=_[r]:(h=n.bU(i),h._dA=r,h._dy=e,x.push(_[r]=h))}h._cS.push({_dC:s,_c8:o})}"_dr"==e._dq&&x.push(h)}for(let e of x){let o=e._dv,d=e._dw,l=e._dx,a=e._dy,h=[o,d+e._dA,0,0,0],b=e._cS,g=C,f=F,x=C,_=F,u=C,m=C,k=e._dz,w=[];for(let{_dC:e,_c8:i}of b){let{x:s,y:o,width:r,height:d,right:l,bottom:a}=e,n=s,c=o;t&&(n+=r/2,c+=d/2),n>g&&(g=n),n<f&&(f=n),c>x&&(x=c),c<_&&(_=c),a>m&&(m=a),l>u&&(u=l),w.push([n,c,i,r,d])}let v,j,K,R=w.length,J=1;if(K=y?(e,t)=>e[1]-t[1]||t[0]-e[0]:(e,t)=>e[0]-t[0]||t[1]-e[1],w.sort(K),i)v=d+a/2-(_+(m-_)/2),j=o+l/2-(f+(u-f)/2);else if(t)v=a/(R+1),j=l/(R+1);else{let e=0,t=0;for(let i of w)e+=i[3],t+=i[4];v=(a-t)/(R+1),j=(l-e)/(R+1)}if(J)for(let e of w){let o,d,l,a=e[2];t?y?(o=h[1]+v,d=e[1],e[1]=o,l="y"):(o=h[0]+j,d=e[0],e[0]=o,l="x"):y?(o=i?e[1]+v:h[1]+h[4]+v,d=e[1],e[1]=o,l="y"):(o=i?e[0]+j:h[0]+h[3]+j,d=e[0],e[0]=o,l="x"),h=e;let b=n.bL(n.bK(o-d));if(b){c[a.id]=1,p[a.type]=1,s=1;let e=k&&r[a.id]||[a.id];this.bU(e,l,b,c)}}}s&&(J.fire("bL",{_dm:c,_dn:p,_bK:{_bL:1}}),b.bJ(y?b.bX:b.bY))},bK(e,t,i,s){let o=J.get("bK"),r=!e.node,d=o[0],l={x:e.pageX,y:e.pageY},a=J.get("bX"),n=0,c=1;if(r&&1==o.length&&d.ctrl.as&p.bJ&&d.props.focusRow>-1){let{rows:e,focusRow:t,focusCol:i}=d.props,o=e[t];if(o&&(!d.ctrl._cA||d.ctrl._cA[s.type])&&(!s._cC||s._cC[d.type])){let e=o.cols[i];if(e){a=e.elements;let t=null!=o.height?o.height:e.height,i=null!=o.width?o.width:e.width;l={x:x()*i/4,y:x()*t/4},c=0,n=1}}}else if(!r&&i){let t=K(i._dD);if(t){let s=t.getBoundingClientRect();l={x:e.pageX-s.x-scrollX,y:e.pageY-s.y-scrollY},a=i._dE,n=1}}return n||(r||(l=f.bN(l)),s._cC&&!s._cC.root&&(a=0)),t&&(c=0),{_cs:a,_c3:l,_c7:c}},bJ(e,t){let i=J.get("bX"),s=null,o=i=>{for(let r of i){let{type:i,id:d,ctrl:l,props:a}=r,n=K(d);if(X(e,n)){if(l.as&p.bJ&&(!t||!l._cA||l._cA[t.type])){let r=a.rows;for(let l=r.length;l--;){let n=r[l];for(let r=n.cols.length;r--;){let c=`_${d}_${l}_${r}`,p=K(`_rd_h${c}`),h=n.cols[r],{elements:b}=h;if(X(e,p)&&!a.locked){if(!t||!t._cC||t._cC[i]){let e=!0;if(t){let i=t._cz;if(i>=0){let s=0;if(b)for(let e of b)e.type==t.type&&s++;e=s<i}}e&&(s={_dF:i,_dG:p,_dH:`_rd_dm${c}`,_dD:`_rd_hm${c}`,_dE:b})}b&&o(b)}}}}break}}};return o(i),s},bZ(e,t,i,s,r){let d,l,n,b=V("lang"),y={},f=J.get("bK"),x=g.bN(),_=f.length,u=f[0]||e.get("element"),m=u&&u.props;m&&(l=m.readonly,n=l||m.locked);let k=i;if(s&&s==u.id&&(_=0),1==_){d=c.b9(b);let e=i[i.length-1],t=i[0],s=e.id==u.id,o=t.id==u.id,r=h.b0(x);y[c.bM]=n||s,y[c.bL]=n||s,y[c.bN]=n||o,y[c.bO]=n||o,y[c.bS]=1!=r||n}else if(_>1){let e,t=1,i=1,s=1,o=1;2==_?(e=0,d=c.c_(b)):(e=1,d=c.ca(b));let r=J.get("bT");if(!e){let[e,d]=f,l=(e==r?d:e).ctrl._dd,a=r.ctrl._dd,n=1,c=1;l&p.bR&&(n|=2),l&p.bS&&(n|=4),l&p.bT&&(n=7),r.props.locked||(a&p.bR&&(c|=2),a&p.bS&&(c|=4),a&p.bT&&(c=7)),2&n&&(2&c&&(t=0),4&c&&(s=0)),4&n&&(4&c&&(i=0),2&c&&(o=0))}let l=h.b1(r),a=!l.bJ,n=!l.bK,g=h.b0(x),u=h.b2(f);y[c.bY]=o,y[c.bX]=s,y[c.b0]=i,y[c.bZ]=t,y[c.b1]=n,y[c.b3]=a,y[c.b6]=n,y[c.b5]=a,y[c.b2]=a,y[c.b4]=n,y[c.bS]=1!=g||u}else{if(s){d=c.cc(b);let e=h.bY(u),t=e[e.length-1],s=e[0],o=t.id==u.id,r=s.id==u.id;y[c.bM]=n||o,y[c.bL]=n||o,y[c.bN]=n||r,y[c.bO]=n||r;let a=h.bZ(i);y[c.b7]=!a.length,y[c.b8]=l}else d=c.cb(b),y[c.bT]=!h.b3(),y[c.bU]=!h.b4(),k=J.get("bX");i=h.bL(i,0,1),y[c.bJ]=!i.length,y[c.bS]=!s||l||n}if(_){let{_dI:e,_dJ:t}=h.b5();y[c.bW]=!t,y[c.bV]=!e}let w=a._cK(),v=h.b6(w,u,k);y[c.bP]=!v._dK,y[c.bQ]=!v._dL,y[c.bR]=!v._dL||!v._dM,y[c.bK]=!v._dN,o.show(e,t,z,{list:d,disabled:y,picked:r})}}})),define("1g/21",[],((e,t,i)=>{i.exports={bJ:1,bN:2,bU:4,bM:1,bV:2,bL:4,bP:1,bK:2,bW:1,bT:2,bR:4,bS:8,bX:16,bY:32,bZ:64,bO:128,b0:256,bQ:512,b1:1024,b2:2048}})),define("1g/2a",["1h","./1j","./1t","./2b"],((e,t,i)=>{let s,o,r,d={class:"bU bV cF cI cL cM ci dV"},l={class:"bY dZ"},a={class:"c1 cF"},n={class:"co cv dH"},c=e("1h"),p=e("./1j"),h=e("./1t"),b=e("./2b"),{random:g,floor:y}=Math,{State:f,applyStyle:x,View:_,mark:u,config:m,Vframe:k}=c;x("bY",".ew{width:100px;margin:4px;border:1px solid #e6e6e6;padding:0 10px;border-radius:2px}.ew:hover{border-color:#fa742b}");let w=e=>new Promise((t=>{let i=new b,s=m("getTemplateContentUrl");i.all({url:s.replace("${id}",e.id)},((i,s)=>{if(i)o=i.message,k.root().invoke("alert",o);else{let t=s.get("data");f.fire("bX",{bK:h.bZ,bL:e.title,bJ:t})}var o;t()}))}));i.exports=_.extend({tmpl:(e,t,i,c,p,h)=>{let b,g,y,f,x,{hl:_,error:u,list:m}=e;if(b=s?[s]:[s=t("div",{_:"a;",class:"bW cL dU"})],y=[],o?y.push(o):(g=[t(0,"\u6a21\u677f")],y.push(o=t("h5",{_:"a:",class:"b5"},g))),_&&(r?y.push(r):(g=[t(0,"\u5982\u4f55\u4e0d\u663e\u793a\u6216\u66f4\u6362\u6a21\u677f\u63a5\u53e3?")],y.push(r=t("a",{_:"a-",class:"b7 cf",href:"//github.com/xinglie/report-designer/issues/27#issuecomment-942136811",rel:"noopener noreferrer",target:"_blank"},g)))),b.push(t("div",d,y)),g=[],u)f=[t(0,u.message)],g.push(t("div",n,f));else for(let e=m.length,s=0;s<e;s+=1){let e=m[s];x=[t(0,e.title)],f=[t("div",{class:"c3 cF cI cT cZ dA ew","mx5-click":i+"\x1e_dP({src:'"+h(p,e,"a;."+s+".a:")+"'})"},x)],g.push(t("div",{title:e.title},f))}return y=[t("div",a,g)],b.push(t("div",l,y)),t(i,0,b)},init(e){this._cV=e.dialog},render(){let e=u(this,"_bQ");(new b).all("_dO",((t,i)=>{e()&&this.digest({hl:p.b1,error:t,list:i.get("data",[])})}))},"_dP<click>"(e){this._cV.close();let{src:t}=e.params;w(t)},"_dQ<click>"(){this._cV.close()}}).static({_cj(e){!this._dR&&m("getTemplateUrl")&&(this._dR=1,e.mxDialog("1g/2a",{width:1076}).whenClose((()=>{delete this._dR})))},_dS:()=>new Promise((e=>{(new b).all("_dO",(async(t,i)=>{let s=i.get("data",[]),o=s[y(g()*s.length)];o&&await w(o),e()}))}))})})),define("1g/1v",["1h","../1s/index","./1j","./22","./1k","./1t","./21"],((e,t,i)=>{let s,o,r,d,l,a=e("1h"),n=e("../1s/index"),c=e("./1j"),p=e("./22"),h=e("./1k"),b=e("./1t"),g=e("./21"),{node:y,State:f,toMap:x,Vframe:_,has:u,parseUrl:m,toUrl:k,config:w,mark:v,unmark:j}=a,K=Number.MAX_VALUE,{max:R,min:J,abs:M}=Math,L={},S=(e,t,i)=>{if(i||(i=1),i>5)return;let s=y(t?e:"_rdm_"+e);if(!s)return void setTimeout(S,20,e,t,i++);let o=t||y("_rd_stage"),r=o.getBoundingClientRect(),d={x:r.x,y:r.y,width:r.width,height:r.height};r=s.getBoundingClientRect();let l={x:r.x,y:r.y,width:r.width,height:r.height};if(!h.bL(d,l,!0)){let e=o.clientHeight/3,t=o.clientWidth/3,i=l.x+o.scrollLeft-d.x-t,s=l.y+o.scrollTop-d.y-e,r=o.scrollHeight-o.clientHeight,a=o.scrollWidth-o.clientWidth;i<0?i=0:i>a&&(i=a),s<0?s=0:s>r&&(s=r),o.scrollTop!=s&&(o.scrollTop=s),o.scrollLeft!=i&&(o.scrollLeft=i)}},X=()=>{r&&(r=0,o=0,d=0,l=0)},V=(e,t,i,s,o)=>{e[i]||(e[i]={});let r=e[i],d=t?"_cv":"_cw",l=t?"_dT":"_dU";null==r[d]?(r[d]=s,r[l]=o):(r[d]=J(s,r[d]),r[l]=R(o,r[l]))};i.exports={bU:S,bN:X,b7(){f.on("bW",X),f.on("bR",X),f.on("bO",X)},b8(){X(),j(L),f.off("bW",X),f.off("bR",X),f.off("bO",X)},b9(e){let t=[];for(let i of e){let{props:e}=i,{rotate:s,x:o,y:r,width:d,height:l,readonly:a}=e;if(c.cn&&a)continue;let n={x:c.bX(o),y:c.bX(r),width:c.bX(d),height:c.bX(l),rotate:s},p=h.bK(n),[b,g,y,f]=p._ct;t.push({_c8:i,_dV:[b,g,f,y],_dW:[[b,g],[g,y],[y,f],[f,b]]})}return t},c_(e,t,i,s,o){let r,d=[],l=[],a={},n=[[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y}],[{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height}],[{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],[{x:t.x,y:t.y+t.height},{x:t.x,y:t.y}]],c={},p={};for(let i of e){r=0;for(let e of i._dV)if(e.x>=t.x&&e.y>=t.y&&e.x<=t.x+t.width&&e.y<=t.y+t.height){let e=i._c8;o[e.id]?p[e.id]=1:(d.push(e),c[e.id]=1,l.push(e.id),s&&s[e.id]&&(a[s[e.id]]=1)),r=1;break}if(!r)for(let e of i._dW){for(let t of n)if(h.bO(e,t)){r=1;let e=i._c8;o[e.id]?p[e.id]=1:(l.push(e.id),c[e.id]=1,s&&s[e.id]&&(a[s[e.id]]=1),d.push(e));break}if(r)break}}if(s&&i)for(let e of i)c[e.id]||p[e.id]||a[e.id]||s[e.id]&&c[s[e.id]]||(l.push(e.id),d.push(e));return{_cS:d,_dm:l.join(",")}},bO(){if(!o){o={},d={},r=[],l={};let e=f.get("bX"),t=(e,i)=>{for(let s of e)if(o[s.id]=s,r.push(s),i?l[s.id]=i:d[s.id]=s,s.ctrl.as&g.bJ)for(let e of s.props.rows)for(let i of e.cols)i.elements&&t(i.elements,s.id)};t(e)}return{bK:o,bM:d,bJ:r,bL:l}},bL(e,t,i){let s=[];for(let o of e)(o.type==t||i&&!o.props.readonly)&&s.push(o);return s},bQ(e){let t=f.get("bX"),i=0,s=t=>{for(let o=t.length;o--;){let r=t[o];if(e[r.id])t.splice(o,1),i=1;else if(r.ctrl.as&g.bJ)for(let e of r.props.rows)for(let t of e.cols)t.elements&&s(t.elements)}};s(t),i&&X()},b5(){let e,t,i=f.get("bK"),s=p.bN(),o=f.get("bX"),r=f.get("bU");r&&(i=r.bL(i,1));let d=(i,o)=>{for(let r of i){if(s[r.id]&&(e||(e=o),o!=e)){t=1;break}if(r.ctrl.as&g.bJ)for(let e of r.props.rows){for(let i of e.cols)if(i.elements&&d(i.elements,r.id),t)break;if(t)break}}};d(o,1);let l,a=f.get("bR"),n=!1,c=!1;for(let e of i)if(a[e.id]){c=!0,l=a[e.id];break}if(!t)if(c){let e=x(l);for(let t of i)if(!e[t.id]){n=!0;break}}else n=i.length>1;return{_dJ:n,_dI:c}},ca(){let e=!1,t=!1,i=f.get("bK");for(let{props:s}of i)if(s.locked?t=!0:e=!0,t&&e)break;return{_dX:e,_dY:t}},cb(e,t){let i,s=f.get("bK"),o=!e,r={},d={},l=[];if(t){let{_dX:t,_dY:i}=this.ca();e&&!i?o=!o:e||t||(o=!o)}for(let e of s){let{props:t,id:s}=e;if(t.locked!=o){r[s]=1,d[e.type]=1,t.locked=o,l.push(e),i=1;let a=y(s),n=_.byNode(a);n&&n.invoke("_cG",e)}}if(i){f.fire("bL",{_dm:r,_dn:d,_bK:{locked:1}});let e=this.bR(l);b.bJ(o?b.b0:b.b1,e)}},cc(e){let t=f.get("bK"),i=f.get("bU");i&&(t=i.bK(t));let s=f.get("bR"),o=[],r={};for(let{id:e}of t){r[e]=1;let t=s[e];if(t)for(let e of t)-1==o.indexOf(e)&&o.push(e);else-1==o.indexOf(e)&&o.push(e)}if(e)this.bP(r);else for(let e of o)s[e]=o;f.fire("bW"),b.bJ(e?b.b2:b.b3)},cd(e){let t={},i=[];for(let t of e)t.ctrl.as&g.bJ&&i.push(t);let s=(e,i)=>{for(let o of e)if(i&&(t[o.id]=i),o.ctrl.as&g.bJ)for(let e of o.props.rows)for(let t of e.cols)t.elements&&s(t.elements,i||o.id)};return s(i),t},bY(e){let t,i,s=f.get("bX"),o=s=>{for(let r of s){if(r.id==e.id){t=1,i=s;break}if(r.ctrl.as&g.bJ)for(let e of r.props.rows){for(let i of e.cols)if(i.elements&&o(i.elements),t)break;if(t)break}}};return o(s),i},bM(e){let t=this.bO().bJ;return this.bL(t,e.type)},bP(e){let t=f.get("bR");for(let i in e){let e,s=t[i];if(s){delete t[i];for(let o in t)s=t[o],e=s.indexOf(i),e>-1&&s.splice(e,1),1==s.length&&delete t[s[0]]}}},ce(e,t){let i=f.get("bK").length,s=p.bN();if(e&&(i=1,s={[e.id]:1}),i){let i,o=f.get("bX"),r={},d=[],l=e=>{for(let t=e.length;t--;){let o=e[t];if(s[o.id]&&(i=1,r[o.id]=1,e.splice(t,1),d.push(o)),o.ctrl.as&g.bJ)for(let e of o.props.rows)for(let t of e.cols)t.elements&&l(t.elements)}};l(o),i&&(this.bP(r),e?p.bL(e):p.bJ(),f.fire("bW",{_cB:"_dZ",_d0:t,_d1:r}),b.bJ(b.b4,this.bR(d)))}},b3(){let e=f.get("bN"),t=f.get("bO"),i=f.get("bX"),s=c.cn?this.bZ(i,1):i;return e.length+t.length+s.length>0},b4(){let e=f.get("bN"),t=f.get("bO"),i=f.get("bX"),o=e.length+t.length+i.length>0;if(!o){let e=f.get("bY");s||(s=e._c4());let t=f.get("bV");for(let{key:i,json:r,_c6:d}of e.props)if(r&&t[i]!=s[i]){if(!d){o=!0;break}if(c.bL(t[i])!=c.bL(s[i])){o=!0;break}}}return o},bZ(e,t){let i=[],s=(e,o)=>{for(let r of e){let{props:e,ctrl:d}=r;if(t&&d.as&g.bJ){let{rows:t,focusRow:o,focusCol:r}=e,d=[];for(let e=t.length;e--;){let l=t[e];for(let t=l.cols.length;t--;){let a=l.cols[t];a.elements&&a.elements.length&&s(a.elements,e>o||e==o&&t>=r?d:i)}}i.push(...d)}c.cn&&r.props.readonly||o.push(r)}};return s(e,i),i},bR(e){let t;return t=1==e.length?this.bT(e[0]):n("cw"),t},bT(e){let{props:t,ctrl:i}=e;return t.ename||n(i.title)},cf(e){let t,i,{bJ:s,bK:o,bL:r}=e;return s?(t=b.bT,i=this.bR(o)):(t=b.bS,i=this.bR(r)),{bJ:t,bK:i}},b1(e){let t=f.get("bK"),i=f.get("bR"),s=f.get("bU");s&&(t=s.bL(t,1));let o,r=!0,d=!0,l={},a=null==e?void 0:e.id;if(t.length<2)r=!1,d=!1;else for(let{props:e,id:s}of t){let t=i[s];if(t&&!l[t]){if(l[t]=1,!o){o=this.bO().bK}for(let e of t)if(a!=e){let{props:t}=o[e],{locked:i,pinX:s,pinY:l}=t;i&&(r=!1,d=!1),s&&(r=!1),l&&(d=!1)}}if((r||d)&&a!=s){let{locked:t,pinX:i,pinY:s}=e;t&&(r=!1,d=!1),i&&(r=!1),s&&(d=!1)}if(!r&&!d)break}return{bJ:r,bK:d}},cg(){let e=f.get("bK"),t=p.bN(),i=f.get("bR"),s=f.get("bU");s&&(e=s.bL(e,1));let o,r=!0,d=!0,l=!0,a=!0,n={};e.length<3&&(r=!1,d=!1,e.length<1&&(l=!1,a=!1));let c=e=>{let{locked:t,pinX:i,pinY:s}=e;t&&(r=!1,d=!1,l=!1,a=!1),i&&(r=!1,l=!1),s&&(d=!1,a=!1)},h=0,b=0,g=0,y=0;for(let{props:s,id:p}of e){let e=i[p];if(e){if(!n[e]){if(n[e]=1,y=0,h++,!o){o=this.bO().bK}for(let i of e){t[i]&&y++;let{props:e}=o[i];c(e)}y>1&&(b++,y==e.length&&g++)}}else h++;if(c(s),!(r||d||l||a))break}return b&&h>1?(l=!1,a=!1,r=!1,d=!1):1!=h||g||(r=!1,d=!1,y>1&&(l=!1,a=!1)),{bJ:r,bK:d,bL:l,bM:a}},bS(e){let t,i,s,o,r=f.get("bX"),d=(r,l)=>{for(let a of r){if(a.id==e.id){o=1,t=l;break}if(a.ctrl.as&g.bJ){i=0;for(let e of a.props.rows){s=0;for(let t of e.cols){if(t.elements&&d(t.elements,a),o)break;s++}if(o)break;i++}}}};return d(r),{_c8:t,_c9:i,_d_:s}},bX(e,t){let i=t?{[t.id]:1}:p.bN(),s={},o=[],r=(t,d,l,a,n,c,p,h)=>{for(let b of t){let{id:t,props:y,ctrl:f,type:x}=b;if(u(i,t)){let e=n?[n.id,p,h].join("-"):"_dB";if(!s[e]){let t=K,i=K;if(n){let e=n.props.rows[p],s=e.cols[h];t=null!=e.height?e.height:s.height,i=null!=e.width?e.width:s.width}o.push(s[e]={_cu:l,_cS:[],_cs:a,_cB:d,_dq:n?"_dr":"_dB",_cA:n&&n.ctrl._cA,_dr:n,_cx:i,_cy:t,_ds:p,_dt:h})}s[e]._cS.push(b)}if(f.as&g.bJ){let i=0,s=c||y.locked||y.readonly,o=s&&e;for(let e of y.rows){let d,c=0;for(let p of e.cols)d=p.elements,d&&r(d,x,o?l:`_rd_hm_${t}_${i}_${c}`,o?a:d,o?n:b,s,i,c),c++;i++}}}},d=f.get("bX");return r(d,"root","_rd_sc",d),o},ch(e,t,i,s){let o=f.get("bK"),r=o.length;if(r){if(1===r||t){let{props:r,ctrl:d,id:l}=t||o[0],{rows:a,focusRow:n,focusCol:c}=r;if((t||i)&&(n=i,c=s),d.as&g.bJ&&n>-1&&c>-1&&(e||!r.readonly&&!r.locked)){let t=a[n],i=t.cols[c],s=null!=t.height?t.height:i.height,o=null!=t.width?t.width:i.width;if(i.elements&&(!e||i.elements.length))return{_cu:`_rd_hm_${l}_${n}_${c}`,_cs:i.elements,_cB:d.type,_cA:d._cA,_cx:o,_cy:s}}}let d=this.bX(!e,t);if(1===d.length)return d[0]}return{_cu:"_rd_sc",_cs:f.get("bX"),_cB:"root",_cx:K,_cy:K}},b0(e){let t=f.get("bX"),i=1,s=(t,o)=>{for(let{props:r,ctrl:d,id:l}of t){if(o&&e[l]){i=0;break}if(d.as&g.bJ&&i)for(let e of r.rows)for(let t of e.cols){let e=t.elements;i&&e&&e.length&&s(e,o||r.locked||r.readonly)}}};return s(t),i},b6(e,t,i){let s,o=f.get("bK"),r=f.get("bU");s=t?{[t.id]:1}:p.bN(),r&&(o=r.bL(o,1));let d=o.length,l=e.length,a=0,n=1,c=1,h=1;if(0==d){if(c=0,n=0,h=0,l&&(a=1,t)){let{props:e,ctrl:i}=t;i.as&g.bJ&&(e.locked||e.readonly)&&(a=0)}}else{n=h=this.b0(s);for(let e of o){let{props:t}=e,i=e.ctrl._cD;if(i>=0){this.bM(e).length>=i&&(c=0)}if((t.locked||t.pinX||t.pinY)&&(n=0),t.readonly&&(n=c=0),!c&&!n)break}if(l){for(let t of e){let e=t.ctrl._cD;if(e>=0){this.bM(t).length<e&&a++}else a++}let s,r=t||o[0];if((t||1==d)&&a){let{ctrl:i,props:o,type:d}=r;if(i.as&g.bJ)if(o.locked||o.readonly)t&&(a=0,s=1);else if(o.focusRow>-1&&o.focusCol>-1&&(s=1,a=0,h)){let t=o.rows[o.focusRow].cols[o.focusCol],s=i._cA;for(let i of e){let e=i.ctrl._cC;if((!s||s[i.type])&&(!e||e[d])){let e=i.ctrl._cz;if(e>=0){this.bL(t,i.type).length<e&&a++}else a++}}}}if(!s&&a&&(a=0,h)){if(!i){i=this.ch()._cs}for(let t of e){let e=t.ctrl._cz;if(e>=0){this.bL(i,t.type).length<e&&a++}else a++}}}}return{_dN:a,_dL:c,_dK:n,_dM:h}},ci(e,t){let i=[];for(let s=e.length;s--;){let{ctrl:o,props:r}=e[s],{rows:d,readonly:l}=r;if(l||(i.push(e[s]),e.splice(s,1)),t&&o.as&g.bJ)for(let e of d)for(let t of e.cols)t.elements&&t.elements.length&&this.ci(t.elements)}return i},b2(e){let t;for(let{props:i}of e)if(i.locked||i.readonly){t=1;break}return t},cj(e,t){if((e=this.bL(e,0,1)).length&&t){let t=p.bN();for(let i=e.length;i--;){let{id:s}=e[i];t[s]&&e.splice(i,1)}}if(p.bK(e)){let t=this.bR(e);b.bJ(b.bT,t)}},bW(e,t,i){let s=[],o=[],r={};if(i&&i.length){let d={},l={};for(let a of i){let i=[],n=[],p=a.bN,h=a.bO,b=a.bP,y=a.bQ,f=a.bR,x=a.bS,_=a.bT,m=p-e,k=h-t;if(y<c.cp)i.push(m);else if(g.bL&c.ce&&i.push(m+y/2),g.bM&c.ce&&i.push(m,m+y),f)for(let e of f)i.push(m+e-p);if(b<c.cp||_._dd&g.b0)n.push(k);else if(g.bL&c.ce&&n.push(k+b/2),g.bM&c.ce&&n.push(k,k+b),x)for(let e of x)n.push(k+e-h);for(let e of i){let t=e;if(!u(r,e))for(let i of s)if(M(e-i)<1){t=i;break}u(d,t)||(d[t]=1,s.push(t)),V(r,0,t,k,k+b)}for(let e of n){let t=e;if(!u(r,e))for(let i of o)if(M(e-i)<1){t=i;break}u(l,t)||(l[t]=1,o.push(t)),V(r,1,t,m,m+y)}}}return{_di:s,_dj:o,_dk:r}},ck(e){let t=[];for(let i of e.props)null==i.group&&(i.group=n("cx")),t.includes(i.group)||t.push(i.group);return t},bJ(e){let{deltaY:t,deltaX:i,deltaMode:s,DOM_DELTA_PAGE:o,DOM_DELTA_LINE:r}=e,d=1;return s==r?d=20:s==o&&(d=200),{x:i*d,y:t*d}},bK(e,t,i){i||(i=y("_rd_stage")),t*=1.25,(e*=1.25)&&(i.scrollLeft+=e),t&&(i.scrollTop+=t)},cl(e){let{resolve:t}=window.designer,{params:i}=m(location.href),s="";return s||(s=t("../print.html")),s},cm(e){let t=e%45;return t<=c.cm?e-=t:(t=45-t,t<=c.cm&&(e+=t)),e},async bV(e,t,i){let{id:s,ctrl:o,props:r,type:d}=e;if(t&&f.fire("bL",{_dm:{[s]:1},_dn:{[d]:1},_bK:{[t]:1}}),!i){let e=y(s);e&&(i=_.byNode(e))}if(i){o._cF&&o._cF(r);let t=v(L,"cn"+s);await i.invoke("assign",{element:e}),t()&&i.invoke("render")}}}})),define("1g/2c",["1h","../27/index","../1o/2d/index","../1o/1p/index","../1o/1q/cursor","../1o/1q/select","../1o/1q/tip","../1o/1r/index","../24/fs","./1j","./content","./27","./2a","./1v","./1u","./29","./25","./1k"],((e,t,i)=>{let s,o,r,d,l,a,n,c,p,h,b,g,y,f,x,_,u,m={class:"c5 cF cI cp dH"},k={class:"c3 cI cs eC eH ez"},w={class:"bJ eI"},v={class:"dF eJ"},j={class:"cF cI cq cz"},K=e("1h"),R=e("../27/index"),J=e("../1o/2d/index"),M=e("../1o/1p/index"),L=e("../1o/1q/cursor"),S=e("../1o/1q/select"),X=e("../1o/1q/tip"),V=e("../1o/1r/index"),Y=e("../24/fs"),F=e("./1j"),C=e("./content"),T=e("./27"),z=e("./2a"),B=e("./1v"),A=e("./1u"),O=e("./29"),N=e("./25"),P=e("./1k"),{node:I,State:W,applyStyle:Z,config:H,View:$,inside:U,mix:E,isFunction:Q}=K,{random:q,max:D}=Math,G=F.b6,ee=document.body;Z("b1",".ex{margin-left:130px}.ey{max-height:40px}.ez,.eA{height:40px;display:grid;grid-template-rows:22px 18px;margin:0 2px;justify-items:center}.eA{width:50px}.ez{min-width:50px;padding:0 4px}.eB{z-index:400}.eC{grid-template-columns:44px 16px;width:60px}.eA{border-radius:2px}.eA:hover{background:#ec5706}.eD{max-width:80%;max-height:80%}.eE{width:50px}.eF{top:100%;background:#f96412;width:278px;border-radius:0 0 2px 2px}.eG{top:100%;min-width:160px;border-radius:0 0 2px 2px;background:#f96412}.ez:hover{background:#f96412}.ez:hover .eF{display:block}.ez:hover .eG{display:block}.eH:hover{z-index:700}.eI{grid-column:1/2;grid-row:1/2;align-self:flex-end}.eJ{font-weight:400;line-height:12px;grid-column:1/2;grid-row:2/3}.eK{margin-left:-15px;grid-row:1/3;grid-column:2/3}.ez:hover .eK{transform:rotate(180deg)}.eL{height:30px;background:linear-gradient(rgba(255,255,255,.25),#fff 30%,#fff 70%,rgba(255,255,255,.25));margin:2px 12px}.eM{word-break:keep-all;white-space:nowrap}.eN{height:28px;border-radius:2px;padding:0 8px;margin:2px;line-height:1.5}.eN:hover{background:#ec5706}.eO{color:rgba(255,255,255,.6);margin-left:20px}.eP{margin-right:5px}"),i.exports=$.extend({tmpl:(e,t,i,K,R,J)=>{let M,L,S,X,V,Y,F,C,T=[],{mini:z,siteLogo:B,siteName:A,i18n:O,elements:N,template:P,su:I,cssc:W,cunf:Z,dd:H,native:$,help:U}=e;z||(L=[],B?L.push(t("img",{class:"ey",src:B,alt:"site logo"},1)):s?L.push(s):(M=[t(0,"\ue627")],L.push(s=t("i",{_:"a;",class:"bJ cd dI"},M))),L.push(t(0,A||O("b2"))),T.push(t("div",m,L))),L=[];for(let e=N.length,s=0;s<e;s+=1){let e=N[s];if(e.bar)o?L.push(o):L.push(o=t("div",{_:"a:",class:"cW eL"}));else if(e.gap)r?L.push(r):L.push(r=t("div",{_:"a-",class:"eE"}));else if(e.subs){X=[t(0,e.icon,1)],M=[t("i",w,X)],X=[t(0,O(e.title))],M.push(t("b",v,X)),d?M.push(d):(X=[t(0,"\ue73a")],M.push(d=t("i",{_:"a+",class:"bJ dE dq dt eK"},X))),X=[];for(let o=e.subs,r=o.length,d=0;d<r;d+=1){let e=o[d];Y=[],e.image?Y.push(t("img",{class:"b8 cl eD",src:e.image},1)):(V=[t(0,e.icon||e.ctrl.icon,1)],Y.push(t("i",w,V))),V=[t(0,O(e.title||e.ctrl.title))],Y.push(t("b",v,V)),X.push(t("div",{class:"c3 cI cp eA eb","mx5-pointerdown":i+"\x1e_eb({src:'"+J(R,e,"a;."+s+".a:."+d+".a-")+"',hide:true})"},Y))}S="eF d3 c5 cr cw",z&&(S+=" d6"),M.push(t("div",{class:S},X)),L.push(t("div",k,M))}else M=[],e.image?M.push(t("img",{class:"b8 cl eD",src:e.image},1)):(X=[t(0,e.icon||e.ctrl.icon,1)],M.push(t("i",w,X))),X=[t(0,O(e.title||e.ctrl.title))],M.push(t("b",v,X)),L.push(t("div",{class:"c3 cI cs eb ez","mx5-pointerdown":i+"\x1e_eb({src:'"+J(R,e,"a;."+s+".a+")+"'})"},M))}return S="cF cI cz cp",z||(S+=" ex"),T.push(t("div",{class:S},L)),L=[],P&&(l?M=[l]:(X=[t(0,"\ue63f")],M=[l=t("i",{_:"b_",class:"bJ"},X)]),a?M.push(a):(X=[t(0,"\u6a21\u677f")],M.push(a=t("b",{_:"ba",class:"dF eJ"},X))),L.push(t("div",{class:"c3 cI ez","mx5-click":i+"\x1e_ei()"},M)),o?L.push(o):L.push(o=t("div",{_:"a:",class:"cW eL"}))),(I||W||Z)&&(M=[],n?M.push(n):(X=[t(0,"\ue66c")],M.push(n=t("i",{_:"bb",class:"bJ"},X))),c?M.push(c):(X=[t(0,"\u4fdd\u5b58")],M.push(c=t("b",{_:"bc",class:"dF eJ"},X))),H&&(d?M.push(d):(X=[t(0,"\ue73a")],M.push(d=t("i",{_:"a+",class:"bJ dE dq dt eK"},X))),X=[],I&&(p?Y=[p]:(V=[t(0,"\ue69e")],Y=[p=t("i",{_:"bd",class:"bJ dG eP"},V)]),V=[t(0,O("cy"))],Y.push(t("span",{class:"cE eM",title:O("cy")},V)),h?Y.push(h):(V=[t(0,"Ctrl+S")],Y.push(h=t("code",{_:"be",class:"dF eO",title:"\u5feb\u6377\u952e:Ctrl+S"},V))),X.push(t("div",{class:"cF cI eN","mx5-click":i+"\x1e\x1e_c2()"},Y))),W&&(b?Y=[b]:(V=[t(0,"\ue664")],Y=[b=t("i",{_:"bf",class:"bJ dG eP"},V)]),V=[t(0,O("b4"))],Y.push(t("span",{class:"cE eM",title:O("b4")},V)),C="Ctrl+",I&&(C+="Shift+"),C+="S",V=[t(0,C)],F="\u5feb\u6377\u952e:Ctrl+",I&&(F+="Shift+"),F+="S",Y.push(t("code",{class:"eO",title:F},V)),X.push(t("div",{class:"cF cI eN","mx5-click":i+"\x1e\x1e_d6()"},Y))),Z&&(g?Y=[g]:(V=[t(0,"\ue7e4")],Y=[g=t("i",{_:"bg",class:"bJ dG eP"},V)]),V=[t(0,O("cz"))],Y.push(t("span",{class:"cE eM",title:O("cz")},V)),X.push(t("div",{class:"cF cI eN","mx5-click":i+"\x1e\x1e_d7()"},Y)),Y=[],y?Y.push(y):(V=[t(0,"\ue807")],Y.push(y=t("i",{_:"bh",class:"bJ dG eP"},V))),V=[t(0,O("cA"))],Y.push(t("span",{class:"cE eM",title:O("cA")},V)),$&&Y.push(t("input",{title:O("cA"),type:"file",accept:".rd",class:"cr d9 di","mx5-change":i+"\x1e_d9()"},1)),X.push(t("div",{class:"cF cI cs eN","mx5-click":i+"\x1e\x1e_d8()"},Y))),M.push(t("div",{class:"c5 cr cw d4 dL eG","mx5-click":i+"\x1e\x1e_d5()"},X))),S="ez c3 cI",H&&(S+=" eH eC cs"),L.push(t("div",{"mx5-click":i+"\x1e_c2()",class:S},M))),f?M=[f]:(X=[t(0,"\ue679")],M=[f=t("i",{_:"bi",class:"bJ"},X)]),x?M.push(x):(X=[t(0,"\u9884\u89c8")],M.push(x=t("b",{_:"bj",class:"dF eJ"},X))),L.push(t("div",{class:"c3 cI ez","mx5-click":i+"\x1e_d2()"},M)),U&&(o?L.push(o):L.push(o=t("div",{_:"a:",class:"cW eL"})),_?M=[_]:(X=[t(0,"\ue657")],M=[_=t("i",{_:"bk",class:"bJ"},X)]),u?M.push(u):(X=[t(0,"\u5e2e\u52a9")],M.push(u=t("b",{_:"bl",class:"dF eJ"},X))),L.push(t("div",{class:"c3 cI ez","mx5-click":i+"\x1e_eh()"},M))),T.push(t("div",j,L)),t(i,0,T)},init(){this.set({help:F.b4,mini:W.get("bZ"),template:H("getTemplateUrl"),siteName:"",siteLogo:""});let e=e=>{let{bM:t,bO:i,bP:s,bN:o}=e;t!=A.bR||!i||o||s||(e.bQ(),this["_d2<click>"]())};W.on("bS",e),this.on("destroy",(()=>{W.off("bS",e)}))},render(){let e=R.bJ(),t=H("saveContentUrl"),i=F.b3,s=F.b2;this.digest({native:Y._d3(),dd:s||t&&i,su:t,cssc:i,cunf:s,elements:e})},"_d5<click>"(e){e._d4=1},"_d6<click>"(){W.fire("b2",{bJ:1})},"_d7<click>"(){C._c2()},"_d8<click>"(e){this.get("native")||C._cZ(e.eventTarget)},"_d9<change>"(e){C._cZ(e.eventTarget)},"_eb<pointerdown>&{passive:false}"(e){this._cq(e);try{let e=document.activeElement;e!=ee&&U(e,ee)&&e.blur()}catch(e){}let{params:t,eventTarget:i,altKey:s,pageX:o,pageY:r}=e,{classList:d}=this.root;d.add("eB");let l,{src:a,hide:n}=t,{props:c,ctrl:p}=a,h=i.parentNode.style,b=I("_rd_stage"),g=p._c4(0,0);Q(c)&&(c=c()),E(g,c),p._cF&&p._cF(g);let{width:y,height:f}=g;y=F.bX(y),f=F.bX(f);let x=W.get("bL");y*=x,f*=x,S._e_(),L._dh("move");let _=p._cD,u=p._cz,m=0,k=0;if(_||u){let{bJ:e}=B.bO();m=B.bL(e,p.type).length,k=B.bL(W.get("bX"),p.type).length}let w,v,j,K,R=[],J=W.get("bV"),V="hod-header"==p.type||"hod-footer"==p.type,Y=F.cc&&!V&&!J.readonly,C=J.snapElement,z={x:0,y:0,width:0,height:0},A=F.cl*x,N=o-scrollX,Z=r-scrollY;if(Y){K=F.cB();let{bJ:e}=B.bO(),t=O.bJ(e);R=t.bJ,z=t.bU;let i=B.bW(0,0,[{bN:0,bO:0,bT:p,bQ:y,bP:f}]);w=i._di,v=i._dj,j=i._dk}N-=y/2+z.x,Z-=f/2+z.y;let H,$,D,te,ie=0,se=0,oe=C?s:!s,re=b.scrollWidth-G[3],de=b.scrollHeight-G[0],le=0,ae=0,ne=e=>{if(!H)return;e&&(ae=-e.bJ,le=-e.bK),l||(n&&(h.display="none"),l=1);let{pageX:t,pageY:i}=H;ie=t-o,se=i-r;let s=M._ea(H.clientX,H.clientY),d=U(s,b),a=R[R.length-1];if(s!=$){if(D=T.bJ(s,p),D){let e=I(D._dD);te=e?e.getBoundingClientRect():0}else te=0;$=s,!a||D&&a.bV==D._dD||a.bV&&R.pop()}if(Y)if(d){if(!oe&&D&&a.bV!=D._dD){let e=I(D._dD);if(e){let t=e.getBoundingClientRect();R.push({bW:1,bV:D._dD,bN:t.x-z.x-le,bO:t.y-z.y-ae,bQ:t.width,bP:t.height})}}let e=O.bK(R,N,ie,Z,se,j,w,v,0,0,oe,A,K,le,ae,re,de);ie=e.bL,se=e.bM}else O.bN();let c,g=N+ie+z.x,x=Z+se+z.y,J=g+scrollX,L=x+scrollY;W.fire("b3",{width:y,height:f,ctrl:p,stage:d,hod:D,allowedTotal:_,total:m,allowedStage:u,count:k,node:s,pageX:J,pageY:L}),c=te?{x:g-te.x,y:x-te.y}:P.bN({x:J,y:L});let S=P.bM(F.bK(c.x)),V=P.bM(F.bK(c.y));X._df(`${S} , ${V}`),X._dl(t,i),W.fire("b0",H),e&&!e.bL&&(e.bL=1,e.bM())},ce=e=>{oe=C?e.bP:!e.bP,ne()};W.on("bS",ce),W.on("bZ",ne),this._ci(e,(e=>{H=e,ne()}),(e=>{if(W.off("bS",ce),W.off("bZ",ne),n&&(h.display=""),d.remove("eB"),S._ck(),L._ck(),W.set({bW:[a]}),l){if(e){let t=M._ea(e.clientX,e.clientY);W.fire("b4",{node:t,pageX:scrollX+N+ie+z.x,pageY:scrollY+Z+se+z.y}),W.fire("b1"),Y&&W.fire("bJ")}X._ck()}else W.fire("b4",{pageX:b.scrollLeft+(50*q()|0),pageY:b.scrollTop+(50*q()|0)})}))},"_c2<click>"(e){e._d4||W.fire("b2")},"_d2<click>"(){if(F.ci){let e=this._ec;e&&V._ed(e),this._ee=0;let t=B.cl(),i=open(t,"_ef");i.focus();let s=location.protocol+"//"+location.host,o=()=>{i.postMessage(N(),s),this._ee++,this._ee>20&&V._ed(o)};V._eg(400,this._ec=o)}else this.mxDialog("1g/print",{width:D(1250,screen.width-50)})},"_eh<click>"(){W.fire("bS",{bK:1,bN:1,bM:A.bS})},"_ei<click>"(){z._cj(this)},"$win<message>"(e){let t=location.protocol+"//"+location.host;e.origin==t&&"_ej"==e.data&&V._ed(this._ec)}}).merge(M,J)})),define("1g/1t",["1h","./1j"],((e,t,i)=>{let s,o=e("1h"),r=e("./1j"),{State:d,toMap:l}=o,a=l([{bJ:"cB",bK:"",bL:0},{bJ:"cC",bK:"",bL:10},{bJ:"cD",bK:"",bL:11},{bJ:"cE",bK:"",bL:12},{bJ:"cF",bK:"",bL:13},{bJ:"cG",bK:"",bL:20},{bJ:"cH",bK:"",bL:21},{bJ:"cI",bK:"",bL:22},{bJ:"cJ",bK:"",bL:23},{bJ:"cK",bK:"",bL:50},{bJ:"cL",bK:"",bL:51},{bJ:"cM",bK:"",bL:52},{bJ:"cN",bK:"",bL:53},{bJ:"cO",bK:"",bL:54},{bJ:"cP",bK:"",bL:56},{bJ:"cQ",bK:"",bL:57},{bJ:"cR",bK:"",bL:58},{bJ:"cS",bK:"",bL:59},{bJ:"cT",bK:"",bL:60},{bJ:"cU",bK:"",bL:61},{bJ:"cV",bK:"",bL:62},{bJ:"cW",bK:"",bL:63},{bJ:"cX",bK:"",bL:64},{bJ:"cY",bK:"",bL:65},{bJ:"cZ",bK:"",bL:67},{bJ:"c0",bK:"",bL:66},{bJ:"c1",bK:"",bL:68},{bJ:"c2",bK:"",bL:69},{bJ:"c3",bK:"",bL:70},{bJ:"c4",bK:"",bL:71},{bJ:"c5",bK:"",bL:72},{bJ:"c6",bK:"",bL:90},{bJ:"c7",bK:"",bL:91},{bJ:"c8",bK:"",bL:92}],"bL"),n=[],c=-1,p=null,h="",b=null,g=(e,t)=>e.startsWith("_")?void 0:t,y=(e,t="")=>{let i=a[e];return{b5:i.bK,b6:i.bJ,b7:t,b8:JSON.stringify({unit:d.get("bM"),page:d.get("bV"),scale:d.get("bL"),elements:d.get("bX"),select:d.get("bK"),groups:d.get("bR"),xLines:d.get("bN"),yLines:d.get("bO"),clipboard:d.get("bS")},g)}},f=e=>{if(b){for(n.splice(c+1,r.bZ,e);n.length>r.bZ;)b=n.shift();c=n.length-1,p=null}else b=e;d.fire("b5")},x=(e="b9")=>{e!=h&&(p&&(clearTimeout(s),f(p)),h=e)},_=(e,t)=>{let i=n[e];!i&&t&&(i=b),i&&d.fire("bO",{json:JSON.parse(i.b8)})};i.exports={bK:10,bL:11,bM:12,bN:13,c_:20,ca:23,cb:21,cc:22,bS:50,bT:51,bU:52,bW:53,cd:54,ce:56,b4:57,b3:58,b2:59,b0:60,b1:61,bV:62,bQ:63,cf:64,cg:65,ch:67,ci:66,cj:68,bO:69,bP:70,bY:71,bX:72,bZ:90,ck:91,bR:92,cl(){b||(b=y(0))},cm:()=>({canRedo:n.length-1>c,canUndo:c>=0}),cn:()=>({_cO:n,_ek:c,_dU:b}),co(e){c!=e&&(c=e,_(e,1))},cp(){clearTimeout(s),c=-1,n.length=0,b=null,h=""},cq(){x(),n.length>0&&c>-1&&(c-=1,_(c,1))},cr(){x();let e=n.length;e&&c<e-1&&(c+=1,_(c))},cs(e){x(),n.splice(e,1),e==c&&c>=n.length?(c-=1,_(c,1)):(e<c&&(c-=1),d.fire("b5",{_el:"_dZ"}))},bJ(e,t="",i="ct",o=0){let r=y(e,t);x(i),o?(p=r,clearTimeout(s),s=setTimeout(f,o,p)):f(r)}}})),define("1g/index",["1h","../27/index","../1o/2d/index","../1o/23/index","../1s/index","../2e/index","./1j","./21","./2a","./1t","./1u","./2b","./2f","./20","./1v","./22","./25","./2c","./2g","./1n","./2h"],((e,t,i)=>{let s,o,r;e("./2c"),e("./2g"),e("./1n"),e("./2h");let d={class:"cF cI cs dA dF dy e0"},l={class:"cE"},a=e("1h"),n=e("../27/index"),c=e("../1o/2d/index"),p=e("../1o/23/index"),h=e("../1s/index"),b=e("../2e/index"),g=e("./1j"),y=e("./21"),f=e("./2a"),x=e("./1t"),_=e("./1u"),u=e("./2b"),m=e("./2f"),k=e("./20"),w=e("./1v"),v=e("./22"),j=e("./25"),{State:K,applyStyle:R,View:J,node:M,config:L,mark:S,parseUrl:X,has:V,unboot:Y,toMap:F,mix:C,delay:T,isString:z}=a;R("b4",".eQ{background:#fa742b;height:40px;line-height:40px;padding:0 10px;color:#fff}.eR{padding:0 4px 0 20px;background:#fafafa;color:#333;height:28px;z-index:201;border-bottom:solid 1px #eee}.eS{height:20px;left:0;width:100%}.eT{height:calc(100% - 68px - 20px)}.eU{height:calc(100% - 20px)}.eV{background-color:#edeef3;margin-left:20px;box-shadow:inset 0 0 3px 2px #dadada}.eW{inset:88px 0px 20px 20px;box-shadow:inset 0 0 0 20px rgba(250,116,43,.1);z-index:1000}.eX{height:calc(100% - 20px)}.eX .eW{top:20px}.eY{height:calc(100% - 28px - 20px)}.eY .eW{top:48px}.eZ{height:calc(100% - 40px - 20px)}.eZ .eW{top:60px}.e0{height:20px;background:#fafafa;z-index:200;border-top:1px solid #ccc;padding:0 10px}@-webkit-keyframes bK{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes bK{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.e1{-webkit-animation:bK 2s linear infinite;animation:bK 2s linear infinite;-webkit-animation-play-state:paused;animation-play-state:paused}.e2{-webkit-animation-play-state:running;animation-play-state:running}.e3 .eU{height:100%}.e3 .eV{margin-left:0}.e3 .eW{left:0;top:68px}.e3 .eX .eW{top:0}.e3 .eY .eW{top:28px}.e3 .eZ .eW{top:40px}.e3 .eR{border-bottom-color:#ccc}");let B=y.bJ|y.bU,A={};for(let e=0;e<9;e++)A[`Digit${e+1}`]=e;let O=(e,t)=>{if(e)for(let{ctrl:i,id:s,props:o}of e)if(i.as&B)if(t[s])for(let e of o.rows)for(let i of e.cols){let e=i.elements;O(e,t)}else o.focusRow=-1,o.focusCol=-1},N=({json:e})=>{let t=K.get("bV"),i=K.get("bX"),s=K.get("bK"),o=K.get("bN"),r=K.get("bO"),{page:d,elements:l,xLines:a,yLines:c,clipboard:p,select:h}=e;C(t,d);let{bJ:b,bK:y}=n.bK(l,t);i.length=0,i.push(...b),o.length=0,a&&o.push(...a),r.length=0,c&&r.push(...c);let f={};if(s.length=0,h)for(let e of h){let t=y[e.id];t&&(f[t.id]=1,s.push(t))}v.bO(),O(i,f),p.c&&n.bK(p.c,t),K.set({bM:e.unit||g.cw,bL:e.scale||1,bS:p,bR:e.groups})},P=e=>{let t=M("_rd_ss");t&&(t.innerHTML=e.busy?h("c9"):"")},I=(e,t,i,s)=>{let o,r;for(let d of t.props)d._ep?(r=1,d._ep(e,i)):d._c6&&(r=1,o=g.cC(e[d.key],i),s&&(o=g.bL(o,null,i)),e[d.key]=o);return r},W=(e,t,i,s)=>{let o;i||(o=1,i=[],s=[]);let r=K.get("bU");for(let o of e){let{props:e,ctrl:d}=o;if(I(e,d,t)&&d._cF&&(r&&r.bJ(o)?s.push([d._cF,e]):i.push([d._cF,e])),d.as&y.bJ)for(let o of e.rows)for(let e of o.cols)e.elements&&W(e.elements,t,i,s)}if(o){K.set({bM:t});let e=i.concat(s);for(let[t,i]of e)t(i)}},Z=(e,t,i)=>{if(e&&!e.hidden&&e.to){let s=M(e.to);s&&(s.classList.add("bK"),i.mount(s,t))}};i.exports=J.extend({tmpl:(e,t,i)=>{let a,n,c,p=[],{hideHeader:h,hideToolbar:b,copyright:g,i18n:y}=e;return h||p.push(t("div",{"mx5-owner":i,"mx5-view":"1g/2c",class:"cs eQ","mx5-contextmenu":i+"\x1e_eM()"})),b||p.push(t("div",{"mx5-owner":i,"mx5-view":"1g/2g",class:"cs eR","mx5-contextmenu":i+"\x1e_eM()"})),n=[t("div",{"mx5-owner":i,"mx5-view":"1g/1n",id:"_rd_axis",class:"cs cz eS","mx5-contextmenu":i+"\x1e_eM()"}),t("div",{"mx5-owner":i,"mx5-view":"1g/2h",id:"_rd_stage",class:"cA cs cz dC eU eV","mx5-scroll":i+"\x1e_eK()","mx5-wheel":i+"\x1e_eL()"})],s?n.push(s):n.push(s=t("div",{_:"a;",class:"cr ct cw cz eW",id:"_rd_sdsz"})),a="eT dA",b&&h?a+=" eX":b?a+=" eZ":h&&(a+=" eY"),p.push(t("div",{class:a},n)),n=[],g||(c=[o||(o=t(0,"\ue627"))],n.push(t("div",{class:"bJ cd dG e1",id:"_rd_flogo_"+i},c))),c=[t(0,g||y("de"),1)],n.push(t("div",l,c)),r?n.push(r):n.push(r=t("div",{_:"a:",class:"cz",id:"_rd_ss"})),p.push(t("div",d,n)),t(i,0,p)},init(){K.set({bM:g.cw});let e=K.get("bY");K.set({bJ:devicePixelRatio||1,bV:e._c4(),bL:g.b5,bX:[],bK:[],bR:{},b0:!1,bN:[],bO:[],bS:{}});let t=e=>{let t=K.get("bN"),i=K.get("bO"),s=K.get("bX");this.confirm(h("bK"==e.bJ?"d_":"da"),(()=>{if(t.length=0,i.length=0,"bK"!==e.bJ&&g.cn){K.get("bV").readonly=!1,w.ci(s,1)}else{k._bU(),K.set({bM:g.cw}),s=[];let e=K.get("bY")._c4();K.set({bV:e})}K.set({bX:s,bR:{}}),v.bJ(),K.fire("bR"),x.bJ(x["bK"==e.bJ?"ca":"c_"])}))},i=e=>{let t=K.get("bN"),i=K.get("bO");t.length=0,i.length=0;let s=M("_rd_stage");s&&(s.scrollLeft=0,s.scrollTop=0);let{page:o,groups:r,elements:d,unit:l}=e.bJ;K.set({bM:l||g.cw});let a=K.get("bY")._c4();C(a,o);let{bJ:c,bL:p,bM:h}=n.bK(d,a,1),b={};r||(r=[]);for(let e of r){let t=[];for(let i of e){let e=h[i];t.push(e),b[e]=t}}if(K.set({bV:a,bX:c||[],bR:b}),v.bJ(),k._bU(),K.fire("bR"),p)for(let[e,t]of p)e._cF(t);x.bJ(e.bK,e.bL)},s=()=>{g.b3&&this.mxDialog("1g/content",{width:Math.max(650,screen.width-150)})},o=e=>{if(e.bJ)s();else{let e=L("whenSave"),t=L("saveContentUrl");if(e)e(j());else if(t&&!this._eq){p.show("\u6b63\u5728\u4fdd\u5b58..."),this._eq=1;let{params:e}=X(location.href);try{if(!e.id&&this._er){let t={...e};t.id=this._er,e=t}(new u).save({name:"_es",_et:`stage=${j()}`,_eu:e},((e,t)=>{e?(p.hide(),this.alert(e.message,null,h("db"))):(p.show(h("dc"),2e3),this._er=t.get("data.id",""))}))}catch(e){p.hide(),this.alert(e.message)}finally{delete this._eq}}else s()}},r=e=>{if(e.bJ||!e.bK||e.bL)return;let{bM:t,bN:i,bO:s,bP:o}=e;if(t==_.bT&&i&&!s){b._ev()?b._ew():b._ex()}else if(!s&&V(A,t))((e,t)=>{let i=b._em()[e];i&&!i.mini&&(t?b._en(i.id):b._eo(i.id))})(A[t],i);else if(i&&t==_.bS)g.b4&&m._cj(this);else if(s&&t==_.bU)e.bQ(),K.fire("b2",{bJ:i});else if(!s||i||o||t!=_.bJ)s||o||i||(t==_.bV?w.b3()&&K.fire("b6"):t==_.bW&&w.b4()&&K.fire("b6",{bJ:"bK"}));else{let e=M("_rd_axis");if(e){let t=this.root.classList,i=e.classList;i.contains("cw")?(i.remove("cw"),t.remove("e3")):(i.add("cw"),t.add("e3"))}}},d=e=>{let t=K.get("bX"),i=e._ey,s=K.get("bV");s.unit=i;let o=K.get("bY");I(s,o,i,1),W(t,i);let r=K.get("bK");if(1==r.length){let e=r[0];K.fire("bL",{_dm:{[e.id]:1},_dn:{[e.type]:1},_bK:{_ez:1}})}K.fire("bR")},l=0,a=e=>{let t=M(`_rd_flogo_${this.id}`);t&&(e._eA?(l||t.classList.add("e2"),l++):(l--,l||t.classList.remove("e2")))};K.on("bO",N),K.on("b7",P),K.on("b6",t),K.on("bX",i),K.on("b2",o),K.on("bS",r),K.on("b8",d),K.on("b9",a),w.b7();let c=K.get("bU");c&&c.bO(),_.bX(),this.on("destroy",(()=>{x.cp(),b._eB(),k._bU(),v.bO(),_.bY(),c&&c.bP(),w.b8(),K.off("bO",N),K.off("b7",P),K.off("b6",t),K.off("bX",i),K.off("b2",o),K.off("bS",r),K.off("b8",d),K.off("b9",a)}))},_eD:async()=>new Promise((e=>{if(L("getFieldUrl")){(new u).all("_eC",((t,i)=>{let s=i.get("data",[]),o=[{name:h("dd"),id:""}].concat(s);K.set({b1:t,b2:o,b3:F(o,"id")}),e()}))}else e()})),async render(){b._em();let e=S(this,"_bQ"),t=L("toolbar"),i=L("header"),s=this.owner;if(await this._eD(),await this.digest({copyright:"",hideToolbar:t&&(t.to||t.hidden),hideHeader:i&&(i.to||i.hidden)}),e()){b._eE(),b._eF(),Z(i,"1g/2c",s),Z(t,"1g/2g",s);let e=L("getTemplateUrl"),o=L("getContentUrl"),r=L("presetUrl"),d=L("whenFetch"),{params:l}=X(location.href),a=l.id&&o;if(d){let e=await d();e&&(z(e)&&(e=JSON.parse(e)),K.fire("bX",{bK:x.bR,bJ:e})),K.fire("c_")}else if(a||r){p.show("\u6b63\u5728\u8bfb\u53d6\u5185\u5bb9...");let e,t=new u;e=a?{name:"_eG",_eu:l}:{name:"_eH"},t.all(e,((e,t)=>{if(p.hide(),!e){let e=t.get("data");e&&K.fire("bX",{bK:x.ck,bL:l.id,bJ:e})}K.fire("c_")}))}else e&&g.b0?(p.show("\u6b63\u5728\u52a0\u8f7d\u793a\u4f8b..."),await f._dS(),p.hide(),K.fire("c_")):(x.cl(),K.fire("c_"))}},"_eK<scroll>&{capture:true}"({eventTarget:e}){let{scrollTop:t,scrollLeft:i}=e;t==this._eI&&i==this._eJ||(this._eI=t,this._eJ=i,K.fire("bT",{top:t,left:i}))},"_eL<wheel>&{passive:false}"(e){if(g.ct&&!e._d4){this._cq(e);let{x:t,y:i}=w.bJ(e);w.bK(t,i,e.eventTarget)}},"$doc<dragover,drop>&{passive:false}"(e){this._cq(e)}}).merge(c)})),define("1g/1u",["1h"],((e,t,i)=>{let s=e("1h"),{State:o,attach:r,detach:d}=s,l=document,a=e=>{let t=e.parentNode;return e.tabIndex>-1||e.isContentEditable||t&&t.tabIndex>-1},n=e=>{let{shiftKey:t,metaKey:i,ctrlKey:s,code:r,altKey:d,type:n}=e,c=l.activeElement;o.fire("bS",{bK:"keydown"==n,bM:r,bN:t,bO:i||s,bP:d,bR:c,bL:a(c),bJ:o.get("bQ"),bQ(){e.preventDefault()}})};i.exports={bZ:"Escape",bM:"Backspace",bK:"Tab",bN:"ArrowLeft",bP:"ArrowUp",bO:"ArrowRight",bQ:"ArrowDown",bL:"Delete",b0:"KeyA",b1:"KeyB",bV:"KeyC",b2:"KeyD",b3:"KeyF",b4:"KeyG",bJ:"KeyH",b5:"KeyL",b6:"KeyI",bW:"KeyN",bR:"KeyP",bU:"KeyS",b7:"KeyT",b8:"KeyU",b9:"KeyV",c_:"KeyX",ca:"KeyY",bT:"KeyZ",cb:"Space",cc:"Equal",cd:"Minus",ce:"Digit0",bS:"Slash",bX(){r(l,"keydown",n),r(l,"keyup",n)},bY(){d(l,"keydown",n),d(l,"keyup",n)},cf:a}})),define("1g/print",["1h","../1o/1r/index","./1v","./25"],((e,t,i)=>{let s=e("1h"),o=e("../1o/1r/index"),r=e("./1v"),d=e("./25"),{View:l,node:a}=s;i.exports=l.extend({tmpl:(e,t,i)=>{let s,{src:o}=e;return s=[t("iframe",{id:"_rd_print_"+i,src:o,frameborder:"no",style:"height:calc(100vh - 54px);width:100%;display:block;border:none"})],t(i,0,s)},async render(){let e=r.cl(1);await this.digest({src:e});let t=this._ec;t&&o._ed(t),this._ee=0;let i=a(`_rd_print_${this.id}`).contentWindow,s=location.protocol+"//"+location.host,l=()=>{i.postMessage(d(),s),this._ee++,this._ee>20&&o._ed(l)};o._eg(400,this._ec=l)},"$win<message>"(e){let t=location.protocol+"//"+location.host;e.origin==t&&"_ej"==e.data&&(e.source.focus(),o._ed(this._ec))}})})),define("1g/props",[],((e,t,i)=>{i.exports={bJ:1,bK:2,bL:3,bM:4,bN:5,bO:6,bP:7,bQ:8,bR:9,bS:10,bT:11,bU:12,bV:13,bW:14,bX:15,bY:16,bZ:17,b0:18,b1:19,b2:20,b3:21,b4:22,b5:23,b6:24,b7:25,b8:26,b9:27,c_:28,ca:29,cb:30,cc:31,cd:32,ce:33,cf:34,cg:36,ch:37,ci:38,cj:39,ck:40,cl:41,cm:42,cn:43,co:44}})),define("1g/22",["1h"],((e,t,i)=>{let s,o=e("1h"),{toMap:r,State:d}=o;i.exports={bJ(e){let t=d.get("bK"),i=t.length;if(i||e){let o,r=t.slice(),l=i>1?null:t[0];if(e?e!=l&&(t.length=1,t[0]=e,o=1):i&&(t.length=0,o=1),o)return s=0,d.fire("bM"),r}},bM(e){let t,i=d.get("bK");for(let s of i)if(s.id===e.id){t=1;break}if(!t)return i.push(e),s=0,d.fire("bM"),1},bN(){if(!s){let e=d.get("bK");s=r(e,"id")}return s},bL(e){let t=d.get("bK");for(let i=t.length;i--;){if(t[i].id===e.id)return t.splice(i,1),s=0,d.fire("bM"),1}},bK(e){let t=this.bN(),i=d.get("bK");i.length=0,s=0,e&&i.push(...e);let o=this.bP(t).bM;return o&&d.fire("bM"),o},bO(){s=0},bP(e){let t=this.bN(),i=0,s=0,o=[],r=[];for(let i in e)t[i]?o.push(e[i]):(s++,r.push(e[i]));for(let r in t)i++,e[r]||(s++,o.push(t[r]));return{bJ:i,bM:s,bK:o,bL:r}}}})),define("1g/2b",["1h"],((e,t,i)=>{let s=e("1h"),{Service:o,toUrl:r,config:d,guid:l,State:a}=s,n=(e,t)=>{let i,s;return e.success?s=e.data:i=e.message||`\u63a5\u53e3${t}\u9519\u8bef`,{_eN:i,_eO:s}},c=o.extend(((e,t)=>{a.fire("b9",{_eA:1});let i=e.get("_eP")||"GET",s=e.get("_eu"),o=e.get("_et"),l=e.get("url"),c={Accept:"application/json","Content-type":"application/x-www-form-urlencoded;charset=utf-8"},p={method:i,credentials:"include"};e.get("_eQ")||(p.headers=c);let h=d("version");s||(s={}),s.v=h,s&&(l=r(l,s)),o&&(p.body=o),((e,t)=>fetch(e,t).then((e=>{if(e.ok)return e.json();throw Error(e.statusText||"Network error")})))(l,p).then((i=>{a.fire("b9");let{_eN:s,_eO:o}=n(i,l);s?t({message:s}):(e.set({data:o}),t())})).catch((e=>{t({message:e.message})}))}));c.add([{name:"_eR",url:d("getImageUrl"),cache:18e5},{name:"_eC",url:d("getFieldUrl"),cache:18e5},{name:"_dO",url:d("getTemplateUrl"),cache:18e5},{name:"_es",url:d("saveContentUrl"),_eP:"post"},{name:"_eG",url:d("getContentUrl")},{name:"_eH",url:d("presetUrl")},{name:"_eS",cache:18e5},{name:"_eT",_eP:"post"}]),c._eU=n,i.exports=c})),define("1g/2f",["1h","./1j","../2e/index","../1s/index"],((e,t,i)=>{let s,o,r={class:"bU bV cF cI cL cM ci dV"},d={class:"b5"},l={class:"b7 cf",href:"//github.com/xinglie/report-designer/issues",rel:"noopener noreferrer",target:"_blank"},a={class:"bY"},n={class:"cS"},c={class:"ci co cy e4"},p={class:"cE cg"},h=e("1h"),b=e("./1j"),g=e("../2e/index"),y=e("../1s/index"),{applyStyle:f,View:x,State:_,config:u,Cache:m}=h;f("ca",".e4{padding:1px 10px 3px;border-radius:6px;border:solid 1px #ccc;box-shadow:inset 0 -3px 0 #ccc;color:#666;margin:2px;cursor:default;font-family:-apple-system,BlinkMacSystemFont;min-width:32px}.e5{padding-left:14px}.e6{background:#fafafa}.e7{padding:5px 0}.e8{margin:1px 4px;padding:2px;background-color:#e6e6e6;border-radius:2px}");let k=navigator.userAgent.toLowerCase().includes("macintosh"),w={bJ:k?"\u2326":"Delete",bK:k?"\u232b":"Backspace",bL:"\u2318",bM:k?"\u2303":"Ctrl",bN:k?"\u21e7":"Shift",bO:k?"\u2325":"Alt",bP:k?"\u21e5":"Tab",bQ:"\u2191",bR:"\u2192",bS:"\u2193",bT:"\u2190",bU:"+",bV:"-",bW:k?"\u238b":"Esc"},v={bW:"Escape",bJ:"Delete",bK:"Backspace",bL:"Command",bM:k?"Control":"Ctrl",bN:"Shift",bO:k?"Option":"Alt",bP:"Tab",bQ:"\u4e0a\u7bad\u5934",bR:"\u53f3\u7bad\u5934",bS:"\u4e0b\u7bad\u5934",bT:"\u5de6\u7bad\u5934",bU:"\u52a0\u53f7",bV:"\u51cf\u53f7"},j=e=>w[e]||e,K=/^\d+$/,R=new m,J=e=>{if(R.has(e))return R.get(e);let t=K.test(e)?"\u6570\u5b57\u952e":"\u6309\u952e";return t+=v[e]||e,R.set(e,t),t},M=e=>{let t=e.join("~");if(R.has(t))return R.get(t);let i,s=[],o=e.length,r=1;for(let t of e)s.push(J(t)),r<o&&s.push(r==o-1?"\u548c":"\u3001"),r++;return i=s.join(""),o>1&&(i+="\u7684\u7ec4\u5408"),R.set(t,i),i},L=e=>{let t=_.get("bM");return b.bV(t)*e+t},S=[{bJ:[["bW"]],bK:"\u53d6\u6d88\u5143\u7d20\u9009\u4e2d\u6216\u5173\u95ed\u5f39\u7a97(\u5f39\u7a97\u9700\u5141\u8bb8\u5feb\u6377\u952e\u5173\u95ed)"},{bJ:[["bK"],["bJ"]],bK:"\u5220\u9664\u9009\u4e2d\u7684\u5143\u7d20"},{bJ:(k?[["bL","Z"]]:[]).concat([["bM","Z"]]),bK:"\u64a4\u9500\u64cd\u4f5c"},{bJ:(k?[["bL","bN","Z"],["bL","Y"]]:[]).concat([["bM","bN","Z"],["bM","Y"]]),bK:"\u91cd\u505a\u64cd\u4f5c"},{bJ:[["bP"]],bK:"\u6309z\u8f74\u4ece\u5927\u5230\u5c0f\u9009\u62e9\u7f16\u8f91\u533a\u4e2d\u7684\u5143\u7d20"},{bJ:[["bN","bP"]],bK:"\u6309z\u8f74\u4ece\u5c0f\u5230\u5927\u9009\u62e9\u7f16\u8f91\u533a\u4e2d\u7684\u5143\u7d20"},{bJ:[["bO"]],bK:"\u62d6\u52a8\u78c1\u5438\u529f\u80fd\u5f00\u542f\u6216\u5173\u95ed\u7684\u60c5\u51b5\u4e0b\uff0c\u6309\u4e0b\u5728\u62d6\u52a8\u8fc7\u7a0b\u4e2d\u53ef\u4e34\u65f6\u5173\u95ed\u6216\u6253\u5f00\u62d6\u52a8\u78c1\u5438\u529f\u80fd\u3002"},{bJ:[["bN"]],bK:"\u62d6\u52a8\u6539\u53d8\u5143\u7d20\u5c3a\u5bf8\u7684\u60c5\u51b5\u4e0b\uff0c\u62d6\u62d0\u89d2\u7684\u4fee\u6539\u70b9\u65f6\uff0c\u6309\u4e0b\u53ef\u7b49\u6bd4\u6539\u53d8\u5bbd\u9ad8"},{bJ:[["bT"]],bL:1,bK:()=>`\u6309\u4e0b\u540e\u7f16\u8f91\u533a\u9009\u4e2d\u7684\u5143\u7d20\u6216\u8f85\u52a9\u7ebf\u5411\u5de6\u79fb\u52a8${L(b.bQ)}`},{bJ:[["bN","bT"]],bL:1,bK:()=>`\u6309\u4e0b\u540e\u7f16\u8f91\u533a\u9009\u4e2d\u7684\u5143\u7d20\u6216\u8f85\u52a9\u7ebf\u5411\u5de6\u79fb\u52a8${L(b.bP)}`},{bJ:[["bQ"]],bL:1,bK:()=>`\u6309\u4e0b\u540e\u7f16\u8f91\u533a\u9009\u4e2d\u7684\u5143\u7d20\u6216\u8f85\u52a9\u7ebf\u5411\u4e0a\u79fb\u52a8${L(b.bQ)}`},{bJ:[["bN","bQ"]],bL:1,bK:()=>`\u6309\u4e0b\u540e\u7f16\u8f91\u533a\u9009\u4e2d\u7684\u5143\u7d20\u6216\u8f85\u52a9\u7ebf\u5411\u4e0a\u79fb\u52a8${L(b.bP)}`},{bJ:[["bR"]],bL:1,bK:()=>`\u6309\u4e0b\u540e\u7f16\u8f91\u533a\u9009\u4e2d\u7684\u5143\u7d20\u6216\u8f85\u52a9\u7ebf\u5411\u53f3\u79fb\u52a8${L(b.bQ)}`},{bJ:[["bN","bR"]],bL:1,bK:()=>`\u6309\u4e0b\u540e\u7f16\u8f91\u533a\u9009\u4e2d\u7684\u5143\u7d20\u6216\u8f85\u52a9\u7ebf\u5411\u53f3\u79fb\u52a8${L(b.bP)}`},{bJ:[["bS"]],bL:1,bK:()=>`\u6309\u4e0b\u540e\u7f16\u8f91\u533a\u9009\u4e2d\u7684\u5143\u7d20\u6216\u8f85\u52a9\u7ebf\u5411\u4e0b\u79fb\u52a8${L(b.bQ)}`},{bJ:[["bN","bS"]],bL:1,bK:()=>`\u6309\u4e0b\u540e\u7f16\u8f91\u533a\u9009\u4e2d\u7684\u5143\u7d20\u6216\u8f85\u52a9\u7ebf\u5411\u4e0b\u79fb\u52a8${L(b.bP)}`},{bJ:(k?[["bL","bT"],["bL","bQ"]]:[]).concat([["bM","bT"],["bM","bQ"]]),bK:`\u53ea\u6709\u4e00\u4e2a\u5143\u7d20\u9009\u4e2d\u4e14\u652f\u6301\u65cb\u8f6c\u7684\u60c5\u51b5\u4e0b\uff0c\u6bcf\u6b21\u6309\u4e0b\u51cf\u5c11${b.cj}\u5ea6`},{bJ:(k?[["bL","bN","bT"],["bL","bN","bQ"]]:[]).concat([["bM","bN","bT"],["bM","bN","bQ"]]),bK:`\u53ea\u6709\u4e00\u4e2a\u5143\u7d20\u9009\u4e2d\u4e14\u652f\u6301\u65cb\u8f6c\u7684\u60c5\u51b5\u4e0b\uff0c\u6bcf\u6b21\u6309\u4e0b\u51cf\u5c11${b.ck}\u5ea6`},{bJ:(k?[["bL","bR"],["bL","bS"]]:[]).concat([["bM","bR"],["bM","bS"]]),bK:`\u53ea\u6709\u4e00\u4e2a\u5143\u7d20\u9009\u4e2d\u4e14\u652f\u6301\u65cb\u8f6c\u7684\u60c5\u51b5\u4e0b\uff0c\u6bcf\u6b21\u6309\u4e0b\u589e\u52a0${b.cj}\u5ea6`},{bJ:(k?[["bL","bN","bR"],["bL","bN","bS"]]:[]).concat([["bM","bN","bR"],["bM","bN","bS"]]),bK:`\u53ea\u6709\u4e00\u4e2a\u5143\u7d20\u9009\u4e2d\u4e14\u652f\u6301\u65cb\u8f6c\u7684\u60c5\u51b5\u4e0b\uff0c\u6bcf\u6b21\u6309\u4e0b\u589e\u52a0${b.ck}\u5ea6`},{bJ:(k?[["bL","A"]]:[]).concat([["bM","A"]]),bK:"\u5168\u9009\u7f16\u8f91\u533a\u4e2d\u7684\u5143\u7d20\u6216\u5f53\u5bb9\u5668\u5143\u7d20\u683c\u5b50\u6fc0\u6d3b\u65f6\uff0c\u5168\u9009\u683c\u5b50\u5185\u7684\u5143\u7d20"},{bJ:(k?[["bL","bN","I"]]:[]).concat([["bM","bN","I"]]),bK:"\u53cd\u9009\u7f16\u8f91\u533a\u4e2d\u7684\u5143\u7d20\u6216\u5f53\u5bb9\u5668\u5143\u7d20\u683c\u5b50\u5185\u5143\u7d20\u9009\u4e2d\u65f6\uff0c\u53cd\u9009\u683c\u5b50\u5185\u5176\u5b83\u5143\u7d20"},{bJ:(k?[["bL","C"]]:[]).concat([["bM","C"]]),bK:"\u590d\u5236\u7f16\u8f91\u533a\u4e2d\u9009\u4e2d\u7684\u5143\u7d20"},{bJ:(k?[["bL","X"]]:[]).concat([["bM","X"]]),bK:"\u526a\u5207\u7f16\u8f91\u533a\u4e2d\u9009\u4e2d\u7684\u5143\u7d20"},{bJ:(k?[["bL","V"]]:[]).concat([["bM","V"]]),bK:"\u7c98\u8d34\u590d\u5236\u6216\u526a\u5207\u7684\u5143\u7d20"},{bJ:(k?[["bL","D"]]:[]).concat([["bM","D"]]),bK:"\u514b\u9686\u9009\u4e2d\u7684\u5143\u7d20"}],X=b.b3,V=u("saveContentUrl");(X||V)&&(S.push({bJ:(k?[["bL","S"]]:[]).concat([["bM","S"]]),bK:V?"\u4fdd\u5b58\u5185\u5bb9":"\u663e\u793a\u8bbe\u8ba1\u533a\u5185\u5bb9\u5bf9\u8bdd\u6846\u6216\u8c03\u7528whenSave\u65b9\u6cd5"}),X&&V&&S.push({bJ:(k?[["bL","bN","S"]]:[]).concat([["bM","bN","S"]]),bK:"\u663e\u793a\u8bbe\u8ba1\u533a\u5185\u5bb9\u5bf9\u8bdd\u6846"})),S.push({bJ:(k?[["bL","P"]]:[]).concat([["bM","P"]]),bK:"\u663e\u793a\u6253\u5370\u9875\u9762\u6216\u5bf9\u8bdd\u6846"},{bJ:[["H"]],bK:"\u663e\u793a\u6216\u9690\u85cf\u8f85\u52a9\u7ebf"},{bJ:[["bO","H"]],bK:"\u6e05\u9664\u8f85\u52a9\u7ebf"},{bJ:(k?[["bL","H"]]:[]).concat([["bM","H"]]),bK:"\u9690\u85cf\u6216\u663e\u793a\u6807\u5c3a"},{bJ:(k?[["bL","G"]]:[]).concat([["bM","G"],["bN","G"]]),bK:"\u7ec4\u5408\u6216\u53d6\u6d88\u7ec4\u5408\u9009\u4e2d\u7684\u5143\u7d20"},{bJ:(k?[["bL","L"]]:[]).concat([["bM","L"],["bN","L"]]),bK:"\u7f16\u8f91\u9501\u5b9a\u6216\u53d6\u6d88\u7f16\u8f91\u9501\u5b9a\u9009\u4e2d\u7684\u5143\u7d20"},{bJ:[["T"]],bK:"\u628a\u9009\u4e2d\u7684\u5143\u7d20\u8c03\u6574\u5230\u6700\u9876\u5c42\u7ea7"},{bJ:[["U"]],bK:"\u628a\u9009\u4e2d\u7684\u5143\u7d20\u5411\u4e0a\u8c03\u6574\u4e00\u4e2a\u5c42\u7ea7"},{bJ:[["D"]],bK:"\u628a\u9009\u4e2d\u7684\u5143\u7d20\u5411\u4e0b\u8c03\u6574\u4e00\u4e2a\u5c42\u7ea7"},{bJ:[["B"]],bK:"\u628a\u9009\u4e2d\u7684\u5143\u7d20\u8c03\u6574\u5230\u6700\u5e95\u5c42\u7ea7"},{bJ:[["F"]],bK:"\u5bb9\u5668\u683c\u5b50\u4e2d\u7684\u5143\u7d20\u9009\u4e2d\u72b6\u6001\u4e0b\uff0c\u6309\u4e0b\u53ef\u805a\u7126\u4e3a\u5f53\u524d\u683c\u5b50"},{bJ:[["C"]],bK:"\u6e05\u9664\u7f16\u8f91\u533a\u5185\u5bb9"},{bJ:[["N"]],bK:"\u65b0\u5efa\u7f16\u8f91\u533a\u5185\u5bb9"},{bJ:[["bN","/"]],bK:"\u663e\u793a\u5feb\u6377\u952e\u5927\u5168\u5bf9\u8bdd\u6846"},{bJ:(k?[["bL","bU"]]:[]).concat([["bM","bU"]]),bK:"\u653e\u5927\u7f16\u8f91\u533a"},{bJ:(k?[["bL","bV"]]:[]).concat([["bM","bV"]]),bK:"\u7f29\u5c0f\u7f16\u8f91\u533a"},{bJ:(k?[["bL","0"]]:[]).concat([["bM","0"]]),bK:"\u6062\u590d\u7f16\u8f91\u533a\u5230\u672a\u7f29\u653e\u72b6\u6001"},{bJ:(k?[["bL"]]:[]).concat([["bN"],["bM"]]),bK:"\u62c9\u6846\u6216\u70b9\u51fb\u9009\u62e9\u5143\u7d20\u7684\u60c5\u51b5\u4e0b\uff0c\u6309\u4e0b\u53ef\u53e0\u52a0\u6216\u53d6\u6d88\u4e4b\u524d\u5df2\u7ecf\u9009\u62e9\u7684\u5143\u7d20"});let Y=g._em(),F=0;if(Y.length){for(let e of Y)e.mini||(S.push({bJ:[[`${e.key}`]],bK:"\u6253\u5f00\u6216\u5173\u95ed"+y(e.title)+"\u9762\u677f"},{bJ:[["bN",`${e.key}`]],bK:"\u5c55\u5f00\u6216\u6298\u53e0"+y(e.title)+"\u9762\u677f\u7684\u5185\u5bb9"}),F++);S.push({bJ:[["bN","Z"]],bK:`\u6253\u5f00\u6216\u5173\u95ed\u6240\u6709\u53ef\u62d6\u52a8\u7684\u9762\u677f\uff0c\u5373\u6570\u5b571-${F}\u952e\u5bf9\u5e94\u7684\u9762\u677f`})}i.exports=x.extend({tmpl:(e,t,i)=>{let h,b,g,y,f,x,_,u,{i18n:m,hl:k,list:w,modTitle:v,modKey:j}=e;h=s?[s]:[s=t("div",{_:"a;",class:"bW cL dU"})],g=[],b=[t(0,m("df"))],g.push(t("h5",d,b)),k&&(b=[t(0,m("b2")+"\u8bbe\u8ba1\u65b9\u6848\u53ca\u5143\u7d20\u8be6\u7ec6\u4ecb\u7ecd")],g.push(t("a",l,b))),h.push(t("div",r,g)),g=[],o?g.push(o):(b=[t(0,'<div class="cS dH e5">\u6309\u952e</div><div class="cE cg dH">\u529f\u80fd</div>',1)],g.push(o=t("div",{_:"a:",class:"cF cI e6 e7"},b)));for(let e=w.length,i=0;i<e;i+=1){let e=w[i];_=[];for(let i=e.bJ,s=i.length,o=0;o<s;o+=1){let e=i[o];x=[];for(let i=e.length,s=0;s<i;s+=1){f=[t(0,j(e[s]))],x.push(t("kbd",c,f))}_.push(t("div",{class:"cy e8",title:v(e)},x))}b=[t("div",n,_)],u="",e.bL?u+=" "+e.bK()+" ":u+=" "+e.bK+" ",_=[t(0,u)],b.push(t("div",p,_)),y="cF cI e7",i%2&&(y+=" e6"),g.push(t("div",{class:y},b))}return h.push(t("div",a,g)),t(i,0,h)},render(){this.digest({list:S,hl:b.b1,modTitle:M,modKey:j})}}).static({_cj(e){this._dR||(this._dR=1,e.mxDialog("1g/2f",{width:1050}).whenClose((()=>{delete this._dR})))}})})),define("1g/29",["1h","./1j","./21","./1k"],((e,t,i)=>{let s=e("1h"),o=e("./1j"),r=e("./21"),d=e("./1k"),{node:l,State:a}=s,n={},c=Number.MAX_VALUE,{min:p,max:h,atan:b,PI:g,sin:y,cos:f,tan:x,abs:_,round:u}=Math,m=(e,t)=>e-t,k=o.cz,w=.5,v=(e,t,i)=>{let s;for(let o of e)if(_(o[0]-i[0])<=t){s=1,o[1]>i[1]&&(o[1]=i[1]),o[2]<i[2]&&(o[2]=i[2]);break}s||e.push(i)},j=(e,t,i,s,d,l,a,n)=>{let c,p;return 2==e?c=n?[t]:[]:4==e?c=[]:s<o.cp?c=[t]:(c=[],r.bM&o.ce&&c.push(t,t+s),r.bL&o.ce&&c.push(t+s/2),l&&c.push(...l)),4==e?p=n?[i]:[]:2==e?p=[]:d<o.cp?p=[i]:(p=[],r.bM&o.ce&&p.push(i,i+d),r.bL&o.ce&&p.push(i+d/2),a&&p.push(...a)),{h:c,v:p}},K=(e,t,i,s,o,r,d,l,a,n,c)=>{let p,h;return"m"==i?(p=s+(r+a/2)*n,h=o+(d-l/2)*n):"m"==t?(p=s+(r/2-a)*c,h=o+(l+d/2)*c):"tl"==e||"br"==e?(p=s+(r-a)*n,h=o+(l+d)*c):(p=s+(r+a)*n,h=o+(l-d)*c),{x:p,y:h}};i.exports={bJ(e,t,i,s){let n,c,p,h=[],b=a.get("bU"),g=a.get("bL"),{pages:y}=a.get("bV"),f=d.bJ(),x=f.height/y,u=[];for(let e=0;e<y;e++)h.push({bW:1,bN:0,bO:e*x,bQ:f.width,bP:x});if(t){let e=l(t);e&&(n=e.getBoundingClientRect(),h.push({bW:1,bN:n.x-f.x,bO:n.y-f.y,bQ:n.width,bP:n.height}))}let m=a.get("bN"),k=a.get("bO");for(let e of m)h.push({bW:2,bN:e*g});for(let e of k)h.push({bW:4,bO:e*g});for(let t of e){let e;if(!b||!b.bJ(t)){let a=l(`_rdm_${t.id}`);if(!a)continue;let n,b,g,y,x=a.getBoundingClientRect(),{props:m,ctrl:k}=t,w=x.x-f.x,v=x.y-f.y,j=x.width,K=x.height;if(m.rotate){let e=d.bK(m);g=e._ct,y=e._eV;let t=o.bX(e._cM-e._cv),i=o.bX(e._cN-e._cw);n=[],b=[];let s=[];r.bM&o.ce&&(s=s.concat(g)),r.bV&o.ce&&(s=s.concat(y));for(let r of s){let s=o.bX(r.x-e._cv),d=o.bX(r.y-e._cw);s>1&&s<j-1&&_(s-t)>1&&n.push(s+w),d>1&&d<K-1&&_(d-i)>1&&b.push(d+v)}}e={bT:k,bR:n,bS:b,bW:8,bN:w,bO:v,bQ:j,bP:K},i&&i.id==t.id?(u.unshift(e),c=e.bN,p=e.bO):s&&s[t.id]?-1!=s[t.id]&&s[t.id]&o.cd&&u.push(e):h.push(e)}}return{bJ:h,bM:u,bK:c,bL:p,bU:f,bX:n}},bK(e,t,i,s,o,r,d,l,b,g,y,f,x,u=0,m=0,k=0,K=0){let R,J,M;if(f+=x,!y){let r,n,p,h,y=c,x=c,k=t+i,K=s+o,L=a.get("bP");for(let{bW:a,bN:M,bO:S,bQ:X,bP:V,bR:Y,bS:F}of e){let{h:e,v:C}=j(a,M,S,X,V,Y,F,L);if(!b){for(let s of e)for(let e of d){let o=_(k+e-s-u);o<=f&&o<y&&_(o-y)>=w&&(y=o,i=s-t-e+u,n=e,r=s,J?J.length=0:J=[])}if(y!=c)for(let t of e)for(let e of d)9&a&&_(t-r-e+n)<w&&v(J,w,[t,S,S+V,e])}if(!g){for(let e of C)for(let t of l){let i=_(K+t-e-m);i<=f&&i<x&&_(i-x)>=w&&(x=i,o=e-s-t+m,h=t,p=e,R?R.length=0:R=[])}if(x!=c)for(let e of C)for(let t of l)9&a&&_(e-p-t+h)<w&&v(R,w,[e,M,M+X,t])}}M=y!=c||x!=c}if(M||n.bO){if(n.bO=M,J)for(let e of J){let[,t,i,d]=e,l=r[d],a=p(t,s+l._cw+o-m)-f,n=h(i,s+l._dU+o-m)+f;K>0&&n>K&&(n=K),e[1]=a,e[2]=n}if(R)for(let e of R){let[,s,o,d]=e,l=r[d],a=p(s,t+l._cv+i-u)-f,n=h(o,t+l._dT+i-u)+f;k>0&&n>k&&(n=k),e[1]=a,e[2]=n}a.fire("bJ",{x:R,y:J})}return{bL:i,bM:o}},bN(){n.bO&&(n.bO=0,a.fire("bJ"))},bQ(e,t,i,s,r,d,l,p,w,v,R,J,M,L,S,X,V,Y,F){if(V)return n.bP&&(n.bP=0,a.fire("bJ")),{_eW:0};let[C,T]=i,z="l"==T?-1:1,B="t"==C?-1:1,A=c,O=c,N=a.get("bP"),P=y(s*(g/180)),I=f(s*(g/180)),W=x(s*(g/180)),{x:Z,y:H}=t;Z=o.bX(Z),H=o.bX(H),r=o.bX(r),d=o.bX(d),M=o.bX(M),L=o.bX(L),p=o.bX(p),w=o.bX(w),v=o.bX(v),R=o.bX(R);let $=I*r,U=P*r,E=I*d,Q=P*d,q=_(I),D=_(P),{x:G,y:ee}=K(i,T,C,Z,H,$,U,E,Q,z,B);Y&&(G+=Y),F&&(ee+=F);let te,ie,se,oe,re,de,le,ae,ne,ce=[],pe=[],he="tl"==i||"br"==i;if("m"==C)J?(ne=180*b(L/2/M)/g,ne=(ne+(360-s))%360):(le=q*l,ae=D*l);else if("m"==T)J?(ne=180*b(L/(M/2))/g,ne=(ne-(360-s))%360):(le=D*l,ae=q*l);else if(J){let e=he?-1:1;ne=180*b(L/M)/g,ne=(ne+e*(360-s))%360}else le=ae=l;J&&(le=_(f(ne*g/180))*l,ae=_(y(ne*g/180))*l),le=h(.2,le),ae=h(.2,ae);for(let{bW:t,bN:i,bO:s,bQ:o,bP:r,bR:d,bS:l}of e){let{h:e,v:a}=j(t,i,s,o,r,d,l,N);for(let t of e){let e=_(G-t);e<=le&&(se=1,e<A&&(A=e,te=u(t)))}for(let e of a){let t=_(ee-e);t<=ae&&(oe=1,t<O&&(O=t,ie=u(e)))}}if(se||oe){if(Y&&(G-=Y,se&&(te-=Y)),F&&(ee-=F,oe&&(ie-=F)),"m"==C){let e=d/2/P;if(se&&(G=te,!J&&D>k)){ee=H-(Z-te+e*z)*W}if(oe&&!se&&(ee=ie,!J&&D>k)){G=Z+((ie-H)*z/W+e)*z}J&&("mr"==i&&(B=-1),se?ee=H+(G-Z)*z*x(ne*g/180)*B:G=Z+(ee-H)*B/x(ne*g/180)*z),re=((G-Z)*I+(ee-H)*P)/(P*P*z+I*I*z),de=d}else if("m"==T){let e=r/2*I,t=r/2*P;if(oe&&(ee=ie,!J)){G=Z+(e-((ie-H)*B-t)*W)*B}if(se&&!oe&&(G=te,!J&&D>k)){ee=H+(t+(e-(te-Z)*B)/W)*B}J&&("tm"==i&&(z=-1),oe?G=Z+(ee-H)*B/x(ne*g/180)*z:ee=H+(G-Z)*z*x(ne*g/180)*B),de=((ee-H)*I+(Z-G)*P)/(P*P+I*I)*B,re=r}else oe&&(ee=ie),!se||J&&oe||(G=te),J&&(oe?G=Z+(ee-H)*B/x(ne*g/180)*z:ee=H+(G-Z)*z*x(ne*g/180)*B),he?(re=((ee-H)*P*z+(G-Z)*I*B)/((I*I+P*P)*z*B),de=((ee-H)*I*z+(Z-G)*P*B)/((I*I+P*P)*z*B)):(re=((G-Z)*I*B+(H-ee)*P*z)/((I*I+P*P)*z*B),de=((G-Z)*P*B+(ee-H)*I*z)/((I*I+P*P)*z*B));if(re<p?re=p:re>w&&(re=w),de<v?de=v:de>R&&(de=R),J){let e;1==J?e=de/L:2==J&&(e=re/M),e<S?e=S:e>X&&(e=X),re=M*e,de=L*e,d=de,r=re}$=I*re,U=P*re,E=I*de,Q=P*de;let{x:t,y:s}=K(i,T,C,Z,H,$,U,E,Q,z,B);A=c,O=c;let o=t+(Y||0),h=s+(F||0);if(oe&&_(ie-s)>=1&&(oe=0,de=d),se&&_(te-t)>=1&&(se=0,re=r),oe||se){Y&&(t+=Y,se&&(te+=Y)),F&&(s+=F,oe&&(ie+=F));for(let{bW:i,bN:r,bO:d,bQ:l,bP:a,bR:n,bS:c}of e){let{h:e,v:p}=j(i,r,d,l,a,n,c,N);for(let i of e){let e=_(t-i);e<1&&(e<A&&(A=e,o=i),ce.push(d,d+a))}for(let e of p){let t=_(s-e);t<1&&(t<O&&(O=t,h=e),pe.push(r,r+l))}}}let b,y,f=pe.length,u=ce.length;f&&(pe.push(o),pe.sort(m),b=[[ie,pe[0]-l,pe[f]+l]]),u&&(ce.push(h),ce.sort(m),y=[[te,ce[0]-l,ce[u]+l]]),b||y?(n.bP=1,a.fire("bJ",{x:b,y:y})):n.bP&&(n.bP=0,a.fire("bJ"))}else n.bP&&(n.bP=0,a.fire("bJ"));return{_eX:se||oe,_eY:o.bK(re),_eZ:o.bK(de)}},bS(e,t,i,s,o){if(o)return n.bR&&(n.bR=0,a.fire("bJ")),{_eX:0};let r,d,l,p,h=c,b=c,g=a.get("bP"),y=[],f=[];for(let{bW:o,bN:l,bO:a,bQ:n,bP:c,bR:p,bS:x}of e){let{h:e,v:u}=j(o,l,a,n,c,p,x,g);for(let i of e){let e=_(t-i);e<=s&&(e<=h?(h=e,r=i,y.length=0,y.push(a,a+c)):e==h&&y.push(a,a+c))}for(let e of u){let t=_(i-e);t<=s&&(t<b?(b=t,d=e,f.length=0,f.push(l,l+n)):t==b&&f.push(l,l+n))}}let x=y.length,u=f.length;return u&&(f.push(x?r:t),f.sort(m),l=[[d,f[0]-s,f[u]+s]]),x&&(y.push(u?d:i),y.sort(m),p=[[r,y[0]-s,y[x]+s]]),l||p?(n.bR=1,a.fire("bJ",{x:l,y:p})):n.bR&&(n.bR=0,a.fire("bJ")),{_eX:u||x,_e0:x?r:t,_e1:u?d:i}}}})),define("1g/2h",["1h","../1o/1p/index","../1o/1q/cursor","../1o/1q/select","../24/pole","../24/scroll","../24/2i","../24/2j","../24/wsize","./20","./1j","./26","./27","./21","./1v","./1t","./1u","./22","./1k","27/hod-header/stage","27/hod-footer/stage","./align"],((e,t,i)=>{let s,o;e("27/hod-header/stage"),e("27/hod-footer/stage"),e("./align");let r={class:"cF cs",id:"_rd_so"},d=e("1h"),l=e("../1o/1p/index"),a=e("../1o/1q/cursor"),n=e("../1o/1q/select"),c=e("../24/pole"),p=e("../24/scroll"),h=e("../24/2i"),b=e("../24/2j"),g=e("../24/wsize"),y=e("./20"),f=e("./1j"),x=e("./26"),_=e("./27"),u=e("./21"),m=e("./1v"),k=e("./1t"),w=e("./1u"),v=e("./22"),j=e("./1k"),K={},{State:R,Vframe:J,node:M,applyStyle:L,View:S,inside:X,isFunction:V,lowTaskFinale:Y,delay:F,mark:C}=d,{min:T,abs:z}=Math,B=(e,t)=>{let{props:i,ctrl:s}=e;for(let e of s.props)V(e._c5)?e._c5(i,t):e._c6&&(i[e.key]*=t);s._cF&&s._cF(i)},A=e=>{let t=[];if(e)for(let i of e)"hod-header"!=i.type&&"hod-footer"!=i.type||t.push(i);return t},O={[w.b8]:5,[w.b2]:6,[w.b7]:3,[w.b1]:4};L("cd",".e9{background-color:#fff;box-shadow:0 3px 6px 0 rgba(0,0,0,.3)}.f_{border-top:dotted 1px #7b7b7b}.fa{left:-16px;top:-9px;color:#7b7b7b}.fb{right:-16px;top:-9px;color:#7b7b7b}.fc{outline:dotted 1px #7b7b7b}"),i.exports=S.extend({tmpl:(e,t,i,d,l,a)=>{let n,c,p,h,b,g,y,f,x,{spad:_,page:u,scale:m,unit:k,fhf:w,elements:v,fs:j}=e;y=[];let K=u.pages,R=K?w(v):0;for(let e=0;e<K;e++){g=[],0==u.xOffset&&0==u.yOffset||(b=[],e&&(s?b.push(s):(h=[t(0,"\ue67f")],b.push(s=t("i",{_:"a;",class:"bJ cr fa"},h))),o?b.push(o):(h=[t(0,"\ue67f")],b.push(o=t("i",{_:"a:",class:"bJ cr fb"},h)))),g.push(t("div",{class:"cj ck cr fc",style:"transform:translate("+-u.xOffset+k+","+-u.yOffset+k+")"},b))),e&&(s?g.push(s):(b=[t(0,"\ue67f")],g.push(s=t("i",{_:"a;",class:"bJ cr fa"},b))),o?g.push(o):(b=[t(0,"\ue67f")],g.push(o=t("i",{_:"a:",class:"bJ cr fb"},b))));for(let s=R.length,o=0;o<s;o+=1){let s=R[o];e&&"hod-header"==s.type?g.push(t("div",{"mx5-owner":i,$:"unit","mx5-view":"27/hod-header/stage?props="+a(l,s.props)+"&unit="+a(l,k,"a;")})):e<K-1&&"hod-footer"==s.type&&g.push(t("div",{"mx5-owner":i,$:"unit","mx5-view":"27/hod-footer/stage?props="+a(l,s.props)+"&unit="+a(l,k,"a;")}))}c="cr ct",e&&(c+=" f_"),p="top:"+u.height*m*e+k+";width:"+u.width*m+k+";height:"+u.height*m+k+";",u.backgroundImage&&(p+="background-image:url("+u.backgroundImage+");background-repeat:"+("full"==u.backgroundRepeat?"no-repeat":u.backgroundRepeat)+";background-size:","full"==u.backgroundRepeat?p+="100% 100%":p+=""+u.backgroundWidth*m+k+" "+u.backgroundHeight*m+k+";background-position:"+u.backgroundXOffset+k+" "+u.backgroundYOffset+k),y.push(t("div",{class:c,style:p},g))}for(let e=v.length,s=0;s<e;s+=1){let e=v[s];y.push(t("div",{"mx5-owner":i,$:"elements,fs,unit",id:e.id,"mx5-view":"27/"+e.type+"/designer?element="+a(l,e,"a:."+s+".a-")+"&ownerId=s&fs="+a(l,j,"a+")+"&unit="+a(l,k,"a;"),class:"eb","mx5-pointerdown":i+"\x1e_e3({element:'"+a(l,e,"a:."+s+".a-")+"'})"}))}return y.push(t("div",{"mx5-owner":i,class:"ct","mx5-view":"1g/align"})),f=[t("div",{class:"cs e9 eb",style:"width:"+u.width*m+k+";height:"+u.height*m*u.pages+k+";background:"+u.background,"data-as":"hod",id:"_rd_sc"},y)],x=[t("div",{style:"padding:"+_.join("px ")+"px"},f)],n=[t("div",r,x),t("div",{id:"_rd_pole_"+i,style:"margin-top:calc(-160px - "+u.height*m*u.pages+k+");display:none"})],t(i,0,n)},init(){this.set({fs:0,unit:R.get("bM"),spad:f.b6,fhf:A});let e=this._bT(this.render,10),t=e=>{if(R.set({bQ:0}),e.node){let t=h.bJ();if(t){let{classList:e}=t;e.remove("dj")}if(!X(e.node,this.root))return}h.bK();let{_db:t,_dc:i}=_.bL(e);t.length&&(R.fire("bW"),i.length&&v.bK(i),k.bJ(k.ce,m.bR(t)))},i=async t=>{let i=R.get("bX"),{step:s}=t;if(s&&s){let e=[],t=R.get("bU"),o=i=>{for(let r of i)if(t&&t.bJ(r))e.push(r);else{B(r,s);let{props:e,ctrl:t}=r;if(t.as&u.bJ)for(let t of e.rows)for(let e of t.cols)e.elements&&o(e.elements)}};o(i);for(let t of e)B(t,s)}e(),g.bJ();let o=C(this,"_e2");if("bO"==t.type&&(await F(20),await Y(),o())){let e=R.get("bK");1==e.length&&m.bU(e[0].id)}},s=e=>{let{bM:t,bK:i,bN:s,bO:o,bP:r,bR:d,bL:l,bJ:a}=e;if(!a&&(!l||"da"==d.dataset.as&&t==w.bK))if(i){if(!r)if(o)if(t==w.bT)e.bQ(),s?k.cr():k.cq();else if(t!=w.ca||s)if(t!=w.b0||s)if(t==w.b6&&s){e.bQ();let t=m.ch(1,null,-1,-1)._cs;m.cj(t,s)}else if(t!=w.c_||s)if(t!=w.bV||s)if(t!=w.b9||s)if(t!=w.b2||s){if(t==w.b4){e.bQ();let{_dJ:t,_dI:i}=m.b5();(t||i)&&m.cc(!t)}else if(t==w.b5)e.bQ(),m.cb(0,1);else if(t==w.bP||t==w.bN||t==w.bO||t==w.bQ){let i=R.get("bK");if(1==i.length){e.bQ();let o=i[0],{props:r,ctrl:d}=o;if(!r.locked&&d._dd&u.bY){let e=t==w.bP||t==w.bN?-1:1;e*=s?f.ck:f.cj;let d=r.rotate;if(d+=e,d=(d+360)%360,d!=r.rotate){r.rotate=d,m.bV(o,"rotate");let e=m.bR(i);k.bJ(k.cf,e,"cu",f.bR)}}}}}else{e.bQ();let t=v.bN();if(m.b0(t)){let e=m.bX();y._cT(e)}}else{e.bQ();let t=m.ch();y._cU(t)}else e.bQ(),y._cQ();else e.bQ(),y._cR();else{e.bQ();let t=m.ch(1)._cs;m.cj(t)}else e.bQ(),k.cr();else if(s||t!=w.cb)if(t==w.b4&&s){e.bQ();let{_dJ:t,_dI:i}=m.b5();(t||i)&&m.cc(i)}else if(t==w.b5&&s)e.bQ(),m.cb(1,1);else if(t==w.bK)e.bQ(),_.bT(s);else if(s||t!=w.bL&&t!=w.bM)if(s||t!=w.b2&&t!=w.b8&&t!=w.b7&&t!=w.b1)if(s||t!=w.b3){if(t==w.bP||t==w.bN||t==w.bO||t==w.bQ){let i=R.get("bL"),o=f.bQ,r=f.bQ;s&&(o=f.bP,r=f.bP),o*=i,r*=i;let d=R.get("bK");if(d.length){let i,s;e.bQ();let l={},a=R.get("bR"),{bK:n}=m.bO(),c=[],p={},h={},b=R.get("bU"),g=e=>{let{props:t,id:i,type:s}=e;if(!(l[i]||b&&b.bJ(e))){h[s]=1,l[i]=1;let{locked:d,pinX:a,pinY:n}=t;d&&(a=n=1),a&&(o=0),n&&(r=0),c.push(e)}};for(let e of d){g(e);let t=a[e.id];if(t)for(let i of t)e=n[i],g(e)}if(t==w.bP?(i=-r,s="y"):t==w.bQ?(i=r,s="y"):t==w.bN?(i=-o,s="x"):t==w.bO&&(i=o,s="x"),i){_.bU(c,s,f.bK(i),p,1),R.fire("bL",{_dm:p,_dn:h,_bK:{_bL:1}});let e=m.bR(c);k.bJ(k.bU,e,"cv",f.bR)}}}}else _.bR();else{let e=R.get("bK");1==e.length&&_.bS(O[t],e[0])}else{e.bQ();let t=v.bN(),i=R.get("bK"),s=m.b0(t),o=m.b2(i);s&&!o&&m.ce()}else{let t=R.get("bK");if(1==t.length){let i=t[0];_.bN(i,e)}}}else if(!s&&t==w.bZ){let e=v.bJ();e&&k.bJ(k.bS,m.bR(e))}};R.on("bO",i),R.on("bN",i),R.on("bP",i),R.on("b4",t),R.on("bW",e),R.on("bM",e),R.on("bS",s),R.on("bR",e),g.bK(),b.bJ(),c.bJ(this),p.bJ(),h.bL(),this.on("destroy",(()=>{R.off("bO",i),R.off("bN",i),R.off("bP",i),R.off("b4",t),R.off("bW",e),R.off("bM",e),R.off("bS",s),R.off("bR",e),b.bK(),g.bL(),c.bK(),p.bK(),h.bK(),h.bM()}))},render(){this.digest({unit:R.get("bM"),scale:R.get("bL"),page:R.get("bV"),elements:R.get("bX")})},"_e3<pointerdown>"(e){e._d4||_.bQ(e,this)},"$root<pointerdown>"(e){if(e._d4)return;let{target:t,shiftKey:i,ctrlKey:s,metaKey:o,pageX:r,pageY:d}=e,l=this._e4;if(l||(l=this._e4=M("_rd_sc")),X(l,t)){let t,l,c=v.bN(),p=[...R.get("bK")],h=[],b={};for(let e of p)h.push(e.id),b[e.id]=1;l=h.join(",");let g,y=R.get("bX");i||s||o?(g=1,t=m.cd(y)):(v.bJ(),b=K),n._e_(),R.set({bQ:1}),a._dh("default");let f,x=m.b9(y),_=()=>{if(!f)return;let{pageX:e,pageY:i}=f,s=z(r-e),o=z(d-i),a=T(r,e),c=T(d,i);n._cG(a,c,s,o);let h=j.bN({x:a,y:c});if(h.width=s,h.height=o,x.length){let e=m.c_(x,h,p,g&&t,g?b:K);e._dm!=l&&(l=e._dm,v.bK(e._cS))}},u=e=>{g=e.bN||e.bO,_()};R.on("bS",u),this._ci(e,(e=>{f=e,_()}),(()=>{R.set({bQ:0}),R.off("bS",u),n._ck(),a._ck();let e=v.bP(c);if(e.bM){let{bJ:t,bK:i}=m.cf(e);k.bJ(t,i)}}))}},"$root<contextmenu>&{passive:false}"(e){if(e._d4||w.cf(e.target))return;this._cq(e);let t=R.get("bX"),i=R.get("bK")[0];_.bZ(this,e,t,0,(async s=>{if(s.id==x.bJ||s.id==x.b8)m.cj(t,s.id==x.b8);else if(s.id==x.bQ)y._cQ(e);else if(s.id==x.bK){let t=j.bN({x:e.pageX,y:e.pageY}),i=m.ch();y._cU(i,t)}else if(s.id==x.bR){let e=m.bX();y._cT(e)}else if(s.id==x.bP)y._cR(e);else if(s.id==x.bS)m.ce();else if(s.id==x.bT)R.fire("b6");else if(s.id==x.bU)R.fire("b6",{bJ:"bK"});else if(s.id>=3&&s.id<=6)_.bS(s.id,i);else if(s.id>19&&s.id<30)_.bV(s.to);else if(s.id>30&&s.id<40){let e=32==s.id;m.cc(e)}else if(s.id>40&&s.id<50){let e=s.id==x.bX||s.id==x.bZ?1:0,t=s.id==x.b0||s.id==x.bX?0:1,[i,o,r]=await _.bW(e,t);i&&(R.fire("bL",{_dm:{[o]:1},_dn:{[r.type]:1},_bK:{_bM:1}}),k.bJ(k.cd))}}))},"$root<drop>&{passive:false}"(e){b.bL(e)},"$root<dragenter>"(e){b.bM(e)}}).merge(l)})),define("1g/25",["1h","./1j","./21"],((e,t,i)=>{let s=e("1h"),o=e("./1j"),r=e("./21"),{State:d}=s,l=(e,t)=>{if(!e.startsWith("@")&&!e.startsWith("_"))return t};i.exports=()=>{let e=d.get("bX"),t=d.get("bV"),i=d.get("bY"),s=d.get("bM"),a={};for(let e of i.props)if(e.json){let i=t[e.key];e._c6&&(i=o.bL(i)),a[e.key]=i}let n=[],c=(e,t)=>{for(let{type:i,ctrl:o,props:d,id:l}of e){let e={id:l,type:i,unit:s,props:{readonly:d.readonly,pinX:d.pinX,pinY:d.pinY}};for(let t of o.props)t._e5?t._e5(e.props,d):t.json&&(t.read?e.props[t.key]=t.read(d[t.key]):e.props[t.key]=d[t.key]);if(o.as&r.bJ)for(let t of e.props.rows)for(let e of t.cols)if(e.elements){let t=[];c(e.elements,t),e.elements=t}t.push(e)}};c(e,n);let p=d.get("bR"),h=[],b={};for(let e in p){let t=p[e];b[t]||(h.push(t),b[t]=1)}let g={unit:s,page:a,groups:h,elements:n};return JSON.stringify(g,l,2)}})),define("1g/2k",["1h","./27","./1v"],((e,t,i)=>{let s,o=e("1h"),r=e("./27"),d=e("./1v"),{State:l,View:a}=o,n=[{icon:"",to:"left",title:"cj",use:"canX"},{icon:"",to:"center",title:"cl",use:"canX"},{icon:"",to:"right",r180:1,title:"ck",use:"canX"},{icon:"",to:"top",title:"cm",use:"canY"},{icon:"",to:"middle",r90:1,title:"co",use:"canY"},{icon:"",to:"bottom",r180:1,title:"cn",use:"canY"}];i.exports=a.extend({tmpl:(e,t,i,o,r,d,l)=>{let a,n,c=[],{actions:p,i18n:h}=e;s?c.push(s):c.push(s=t("i",{_:"a;",class:"cp fg"}));for(let s=p.length,o=0;o<s;o+=1){let s=p[o];n=[t(0,s.icon,1)],a="bJ fd c3 cI cZ",s.r180?a+=" ca":s.r90&&(a+=" cb"),e[s.use]||(a+=" fh dv"),c.push(t("i",{title:h(s.title),"mx5-click":e[s.use]&&i+"\x1e_e6({to:'"+l(s.to)+"'})",class:a},n))}return t(i,0,c)},init(){this.set({actions:n});let e=this.render.bind(this),t=t=>{t._bK.locked&&e()};l.on("bO",e),l.on("bW",e),l.on("bM",e),l.on("bL",t),this.on("destroy",(()=>{l.off("bO",e),l.off("bW",e),l.off("bM",e),l.off("bL",t)}))},render(){let e=d.b1();this.digest({canX:e.bJ,canY:e.bK})},"_e6<click>"(e){if(e.eventTarget.classList.contains("fh"))return;let{to:t}=e.params;r.bV(t)}})})),define("1g/2l",["1h","./27","./1v"],((e,t,i)=>{let s,o=e("1h"),r=e("./27"),d=e("./1v"),{State:l,View:a}=o,n=[{icon:"",to:"h",r90:1,title:"dg",use:"canX"},{icon:"",to:"v",title:"dh",use:"canY"},{icon:"",to:"sh",title:"di",use:"stageCanX"},{icon:"",to:"sv",r90:1,title:"dj",use:"stageCanY"}];i.exports=a.extend({tmpl:(e,t,i,o,r,d,l)=>{let a,n,c=[],{actions:p,i18n:h}=e;s?c.push(s):c.push(s=t("i",{_:"a;",class:"cp fg"}));for(let s=p.length,o=0;o<s;o+=1){let s=p[o];n=[t(0,s.icon,1)],a="bJ fd c3 cI cZ",s.r180?a+=" ca":s.r90&&(a+=" cb"),e[s.use]||(a+=" fh dv"),c.push(t("i",{title:h(s.title),"mx5-click":e[s.use]&&i+"\x1e_e6({to:'"+l(s.to)+"'})",class:a},n))}return t(i,0,c)},init(){this.set({actions:n});let e=this.render.bind(this),t=t=>{t._bK.locked&&e()};l.on("bO",e),l.on("bW",e),l.on("bM",e),l.on("bL",t),this.on("destroy",(()=>{l.off("bO",e),l.off("bW",e),l.off("bM",e),l.off("bL",t)}))},render(){let e=d.cg();this.digest({canX:e.bJ,canY:e.bK,stageCanX:e.bL,stageCanY:e.bM})},"_e6<click>"(e){if(e.eventTarget.classList.contains("fh"))return;let t,{to:i}=e.params;t=i.startsWith("s")?"bY":"bX",r[t](i,e.shiftKey,e.metaKey||e.ctrlKey)}})})),define("1g/2m",["1h","./20","./1v"],((e,t,i)=>{let s,o,r,d,l,a,n=e("1h"),c=e("./20"),p=e("./1v"),{State:h,View:b}=n;i.exports=b.extend({tmpl:(e,t,i)=>{let n,c,p=[],{v:h,canDuplicate:b,i18n:g,canCopy:y,canCut:f,canPaste:x}=e;return h?s?p.push(s):p.push(s=t("i",{_:"a;",class:"cF fj"})):o?p.push(o):p.push(o=t("i",{_:"a:",class:"cp fg"})),c=[r||(r=t(0,"\ue6b1"))],n="bJ fd c3 cI cZ",b||(n+=" fh dv"),p.push(t("i",{title:g("cd")+"(Ctrl+D)","mx5-click":b&&i+"\x1e_e9()",class:n},c)),c=[d||(d=t(0,"\ue69a"))],n="bJ fd c3 cI cZ",y||(n+=" fh dv"),p.push(t("i",{title:g("b8")+"(Ctrl+C)","mx5-click":y&&i+"\x1e_e8()",class:n},c)),c=[l||(l=t(0,"\ue6bf"))],n="bJ fd c3 cI cZ",f||(n+=" fh dv"),p.push(t("i",{title:g("b9")+"(Ctrl+X)","mx5-click":f&&i+"\x1e_f_()",class:n},c)),c=[a||(a=t(0,"\ue6c1"))],n="bJ fd c3 cI cZ",x||(n+=" fh dv"),p.push(t("i",{title:g("ce")+"(Ctrl+V)","mx5-click":x&&i+"\x1e_fa()",class:n},c)),t(i,0,p)},init(e){this.set(e);let t=this._bT(this.render,30),i=({_bK:e})=>{(e.locked||e._e7)&&t()};h.on("bO",t),h.on("bM",t),h.on("bL",i),h.on("bV",t),this.on("destroy",(()=>{h.off("bO",t),h.off("bM",t),h.off("bL",i),h.off("bV",t)}))},render(){let e=c._cK(),t=p.b6(e);this.digest({canCopy:t._dL>0,canCut:t._dK>0,canPaste:t._dN>0,canDuplicate:t._dL>0&&t._dM>0})},"_e8<click>"(){c._cQ()},"_e9<click>"(){let e=p.bX();c._cT(e)},"_f_<click>"(){c._cR()},"_fa<click>"(){let e=p.ch();c._cU(e)}})})),define("1g/2n",["1h","./1v","./22"],((e,t,i)=>{let s,o,r=e("1h"),d=e("./1v"),l=e("./22"),{State:a,View:n}=r;i.exports=n.extend({tmpl:(e,t,i)=>{let r,d,l,{canDel:a,i18n:n}=e;return r=s?[s]:[s=t("i",{_:"a;",class:"cp fg"})],l=[o||(o=t(0,"\ue6b3"))],d="bJ fd c3 cI cZ",a||(d+=" fh dv"),r.push(t("i",{title:n("cf")+"(Delete,Backspace)","mx5-click":a&&i+"\x1e_fb()",class:d},l)),t(i,0,r)},init(){let e=this.render.bind(this),t=t=>{t._bK.locked&&e()};a.on("bO",e),a.on("bM",e),a.on("bL",t),this.on("destroy",(()=>{a.off("bO",e),a.off("bM",e),a.off("bL",t)}))},render(){let e,t=a.get("bK"),i=l.bN(),s=0;t.length>0&&(e=d.b2(t),e||(s=d.b0(i))),this.digest({canDel:1==s})},"_fb<click>"(){d.ce()}})})),define("1g/2o",["1h","./1t"],((e,t,i)=>{let s,o=e("1h"),r=e("./1t"),{State:d,View:l}=o;i.exports=l.extend({tmpl:(e,t,i)=>{let o,r,d,{status:l,i18n:a}=e;return d=[s||(s=t(0,"\ue682"))],r="bJ fd c3 cI cZ",l.canUndo||(r+=" fh dv"),o=[t("i",{title:a("dk"),"mx5-click":i+"\x1e_fc({s:'-',b:"+l.canUndo+"})",class:r},d)],d=[s||(s=t(0,"\ue682"))],r="bJ fd c3 cI cZ cJ",l.canRedo||(r+=" fh dv"),o.push(t("i",{title:a("dl"),"mx5-click":i+"\x1e_fc({s:'+',b:"+l.canRedo+"})",class:r},d)),t(i,0,o)},init(){let e=this.render.bind(this);d.on("bO",e),d.on("b5",e),this.on("destroy",(()=>{d.off("bO",e),d.off("b5",e)}))},render(){this.digest({status:r.cm()})},"_fc<click>"(e){let{s:t,b:i}=e.params;i&&("-"==t?r.cq():r.cr())}})})),define("1g/2p",["1h","./1v"],((e,t,i)=>{let s,o,r,d,l=e("1h"),a=e("./1v"),{State:n,View:c}=l;i.exports=c.extend({tmpl:(e,t,i)=>{let l,a,n,{canGroup:c,i18n:p,canUngroup:h,linkEnable:b}=e;return l=s?[s]:[s=t("i",{_:"a;",class:"cp fg"})],n=[o||(o=t(0,"\ue669"))],a="bJ fd c3 cI cZ",c||(a+=" fh dv"),l.push(t("i",{title:p("dm")+"(Ctrl/Shift+G)","mx5-click":c&&i+"\x1e_fd()",class:a},n)),n=[r||(r=t(0,"\ue684"))],a="bJ fd c3 cI cZ",h||(a+=" fh dv"),l.push(t("i",{title:p("dn")+"(Shift/Ctrl+G)","mx5-click":h&&i+"\x1e_fd({un:1})",class:a},n)),n=[d||(d=t(0,"\ue6f3"))],a="bJ fd c3 cI cZ",b&&(a+=" fe"),l.push(t("i",{title:p(b?"do":"dp"),"mx5-click":i+"\x1e_fe()",class:a},n)),t(i,0,l)},init(){let e=this.render.bind(this);n.on("bO",e),n.on("bM",e),n.on("bW",e),this.on("destroy",(()=>{n.off("bO",e),n.off("bM",e),n.off("bW",e)}))},render(){let{_dJ:e,_dI:t}=a.b5(),i=n.get("b0");this.digest({linkEnable:i,canGroup:e,canUngroup:t})},"_fd<click>"(e){let{un:t}=e.params;a.cc(t)},"_fe<click>"(){let e=n.get("b0");n.set({b0:!e}),this.digest({linkEnable:!e})}})})),define("1g/2q",["1h","./27","./1v"],((e,t,i)=>{let s,o,r,d,l=e("1h"),a=e("./27"),n=e("./1v"),{State:c,View:p}=l;i.exports=p.extend({tmpl:(e,t,i)=>{let l,a,n=[],{v:c,toTop:p,i18n:h,toBottom:b}=e;return c?s?n.push(s):n.push(s=t("i",{_:"a;",class:"cF fj"})):o?n.push(o):n.push(o=t("i",{_:"a:",class:"cp fg"})),a=[r||(r=t(0,"\ue607"))],l="bJ fd c3 cI cZ",p||(l+=" fh dv"),n.push(t("i",{title:h("c_")+"(T)","mx5-click":p&&i+"\x1e_ff({to:3})",class:l},a)),a=[d||(d=t(0,"\ue632"))],l="bJ fd c3 cI cZ",p||(l+=" fh dv"),n.push(t("i",{title:h("cb")+"(U)","mx5-click":p&&i+"\x1e_ff({to:5})",class:l},a)),a=[d||(d=t(0,"\ue632"))],l="bJ fd c3 cI cZ ca",b||(l+=" fh dv"),n.push(t("i",{title:h("cc")+"(D)","mx5-click":b&&i+"\x1e_ff({to:6})",class:l},a)),a=[r||(r=t(0,"\ue607"))],l="bJ fd c3 cI cZ ca",b||(l+=" fh dv"),n.push(t("i",{title:h("ca")+"(B)","mx5-click":b&&i+"\x1e_ff({to:4})",class:l},a)),t(i,0,n)},init(e){this.set(e);let t=this._bT(this.render,30),i=e=>{e._bK.locked&&t()};c.on("bO",t),c.on("bW",t),c.on("bM",t),c.on("bL",i),this.on("destroy",(()=>{c.off("bO",t),c.off("bW",t),c.off("bM",t),c.off("bL",i)}))},render(){let e=c.get("bK"),t=!1,i=!1,s=e[0];if(1==e.length&&!s.props.locked){let e=n.bY(s);if(e){let o=e[e.length-1],r=e[0];t=s.id!=o.id,i=s.id!=r.id}}this.digest({current:s,toTop:t,toBottom:i})},"_ff<click>"(e){let{to:t}=e.params,i=this.get("current");a.bS(t,i)}})})),define("1g/2r",["1h","./1v"],((e,t,i)=>{let s,o,r,d=e("1h"),l=e("./1v"),{State:a,View:n}=d;i.exports=n.extend({tmpl:(e,t,i)=>{let d,l,a,{canLock:n,i18n:c,canUnlock:p}=e;return d=s?[s]:[s=t("i",{_:"a;",class:"cp fg"})],a=[o||(o=t(0,"\ue63e"))],l="bJ fd c3 cI cZ",n||(l+=" fh dv"),d.push(t("i",{title:c("dq")+"(Ctrl+L)","mx5-click":n&&i+"\x1e_fg()",class:l},a)),a=[r||(r=t(0,"\ue637"))],l="bJ fd c3 cI cZ",p||(l+=" fh dv"),d.push(t("i",{title:c("dr")+"(Shift+L)","mx5-click":p&&i+"\x1e_fg({un:1})",class:l},a)),t(i,0,d)},init(){let e=this.render.bind(this),t=t=>{t._bK.locked&&e()};a.on("bO",e),a.on("bM",e),a.on("bL",t),this.on("destroy",(()=>{a.off("bO",e),a.off("bM",e),a.off("bL",t)}))},render(){let e=l.ca();this.digest({canLock:e._dX,canUnlock:e._dY})},"_fg<click>"(e){let{un:t}=e.params;l.cb(t)}})})),define("1g/2s",["1h","./1t","./1u","./1j"],((e,t,i)=>{let s,o,r={class:"co fi"},d=e("1h"),l=e("./1t"),a=e("./1u"),n=e("./1j"),{State:c,View:p}=d;i.exports=p.extend({tmpl:(e,t,i)=>{let d,l,a,{scale:n,min:c,i18n:p,max:h}=e;return a=[s||(s=t(0,"\ue602"))],l="bJ fd c3 cI cZ",n<=c&&(l+=" fh dv"),d=[t("i",{"mx5-click":i+"\x1e_c5({s:'-'})",title:p("ds"),class:l},a)],a=[t(0,100*n+"%")],d.push(t("b",r,a)),a=[o||(o=t(0,"\ue699"))],l="bJ fd c3 cI cZ",n>=h&&(l+=" fh dv"),d.push(t("i",{"mx5-click":i+"\x1e_c5({s:'+'})",title:p("dt"),class:l},a)),t(i,0,d)},init(){let e=this.render.bind(this),t=e=>{if(e.bJ||!e.bK)return;let t=this.get("scale"),i=t,s=n.cf,o=n.cg,r=n.ch,{bM:d,bN:p,bO:h,bP:b}=e;p||b||!h||(d==a.cc?(e.bQ(),t+=r,t>s&&(t=s)):d==a.cd?(e.bQ(),t-=r,t<o&&(t=o)):d==a.ce&&(t=1),i==t||e.bL||(c.set({bL:t}),c.fire("bN",{step:t/i}),l.bJ(t>i?l.cb:l.cc)))};c.on("bN",e),c.on("bO",e),c.on("bS",t),this.on("destroy",(()=>{c.off("bN",e),c.off("bO",e),c.off("bS",t)}))},render(){this.digest({max:n.cf,min:n.cg,scale:c.get("bL")})},"_c5<click>"(e){let{s:t}=e.params,i=this.get("scale"),s=i,o=n.cf,r=n.cg,d=n.ch;"+"==t?(i+=d,i>o&&(i=o)):(i-=d,i<r&&(i=r)),s!=i&&(c.set({bL:i}),c.fire("bN",{step:i/s}),l.bJ(i>s?l.cb:l.cc))}})})),define("1g/2t",["1h","./1v"],((e,t,i)=>{let s,o,r,d=e("1h"),l=e("./1v"),{State:a,View:n}=d;i.exports=n.extend({tmpl:(e,t,i)=>{let d,l,a,{canCreate:n,i18n:c,canClear:p}=e;return d=s?[s]:[s=t("i",{_:"a;",class:"cp fg"})],a=[o||(o=t(0,"\ue612"))],l="bJ fd c3 cI cZ",n||(l+=" fh dv"),d.push(t("i",{title:c("ch")+"(N)","mx5-click":n&&i+"\x1e_fi()",class:l},a)),a=[r||(r=t(0,"\ue7db"))],l="bJ fd c3 cI cZ",p||(l+=" fh dv"),d.push(t("i",{title:c("cg")+"(C)","mx5-click":p&&i+"\x1e_fh()",class:l},a)),t(i,0,d)},init(){let e=this.render.bind(this);a.on("bO",e),a.on("bM",e),a.on("bU",e),a.on("bW",e),a.on("bR",e),a.on("bP",e),this.on("destroy",(()=>{a.off("bO",e),a.off("bM",e),a.off("bU",e),a.off("bW",e),a.off("bR",e),a.off("bP",e)}))},render(){this.digest({canClear:l.b3(),canCreate:l.b4()})},"_fh<click>"(){a.fire("b6")},"_fi<click>"(){a.fire("b6",{bJ:"bK"})}})})),define("1g/2g",["1h","../2e/index","./2o","./2t","./2m","./2l","./2k","./2q","./2p","./2r","./2n","./2s"],((e,t,i)=>{let s,o;e("./2o"),e("./2t"),e("./2m"),e("./2l"),e("./2k"),e("./2q"),e("./2p"),e("./2r"),e("./2n"),e("./2s");let r={class:"cF cI ck cp cz"},d={class:"cF cI ck cq cz"},l=e("1h"),a=e("../2e/index"),{State:n,View:c,applyStyle:p}=l;p("cg",".fd{height:22px;width:22px;margin:0 2px;display:inline-flex;border-radius:2px}.fd:hover{background:#e6e6e6;color:#333}.fe,.fe:hover{background:#c4c4c4}.ff,.fg{height:16px;width:1px;background:#eee}.fg{margin:3px 12px}.ff{margin:3px 6px}.fh{color:#aaa}.fh:hover{color:#aaa;background:0 0}.fi{font-weight:400;width:40px;display:inline-block}.fj{height:2px}"),i.exports=c.extend({tmpl:(e,t,i,l,a,n,c)=>{let p,h,b,g,{mini:y,panels:f,i18n:x,allOpen:_}=e;if(h=[],h.push(t("div",{"mx5-owner":i,"mx5-view":"1g/2o"})),y||h.push(t("div",{"mx5-owner":i,"mx5-view":"1g/2t"}),t("div",{"mx5-owner":i,"mx5-view":"1g/2m"}),t("div",{"mx5-owner":i,"mx5-view":"1g/2l"})),h.push(t("div",{"mx5-owner":i,"mx5-view":"1g/2k"}),t("div",{"mx5-owner":i,"mx5-view":"1g/2q"}),t("div",{"mx5-owner":i,"mx5-view":"1g/2p"}),t("div",{"mx5-owner":i,"mx5-view":"1g/2r"}),t("div",{"mx5-owner":i,"mx5-view":"1g/2n"})),p=[t("div",r,h)],h=[],h.push(t("div",{"mx5-owner":i,"mx5-view":"1g/2s"})),f.length){s?h.push(s):h.push(s=t("i",{_:"a;",class:"cp ff"}));for(let e=f.length,s=0;s<e;s+=1){let e=f[s];e.mini||(g=[t(0,e.icon,1)],b="bJ fd c3 cI cZ",e.bJ&&(b+=" fe"),h.push(t("i",{"mx5-click":i+"\x1e_eo({id:'"+c(e.id)+"'})",title:x(e.bJ?"du":"dv",e.title,e.key),class:b},g)))}s?h.push(s):h.push(s=t("i",{_:"a;",class:"cp ff"})),g=[o||(o=t(0,"\ue651"))],b="bJ fd c3 cI cZ",_&&(b+=" fe"),h.push(t("i",{"mx5-click":i+"\x1e_fj()",title:x(_?"dw":"dx"),class:b},g))}return p.push(t("div",d,h)),t(i,0,p)},init(){let e=this.render.bind(this);n.on("ca",e),this.on("destroy",(()=>{n.off("ca",e)})),this.set({mini:n.get("bZ")})},render(){this.digest({panels:a._em(),allOpen:a._ev()})},"_fj<click>"(){this.get("allOpen")?a._ew():a._ex()},"_eo<click>"(e){let{id:t}=e.params;a._eo(t)}})})),define("1g/1k",["1h","./1j"],((e,t,i)=>{let s=e("1h"),o=e("./1j"),{State:r,node:d,config:l}=s,{sqrt:a,pow:n,atan:c,PI:p,sin:h,cos:b,min:g,max:y,atan2:f,tan:x,abs:_}=Math,u=p/180,m={tl:2,tm:2,tr:3,mr:3,br:0,bm:0,bl:1,ml:1},k=()=>d("_rd_sc").getBoundingClientRect();i.exports={bJ:k,bN({x:e,y:t}){let i=k();return{x:e=e-i.x-scrollX,y:t=t-i.y-scrollY}},bP(e,{x:t,y:i,f:s}){let o=e;if(s)for(;o.parentNode&&"hod"!=o.dataset.as;)o=o.parentNode;let r=o.getBoundingClientRect();return{x:t=t-r.x-scrollX,y:i=i-r.y-scrollY}},bQ({x:e,y:t}){let i=k();return{x:e=e+i.x+scrollX,y:t=t+i.y+scrollY}},bM(e){let t=e/r.get("bL");return o.bL(t)},bR:e=>e*r.get("bL"),bK({x:e,y:t,width:i,height:s,rotate:o}){o||(o=0);let r=a(n(i,2)+n(s,2))/2,d=i?180*c(s/i)/p:90,l=180-o-d,f=d-o,x=90-o,_=i/2,m=s/2,k=e+_,w=t+m,v={x:k+r*b(l*u),y:w-r*h(l*u)},j={x:k+r*b(f*u),y:w-r*h(f*u)},K={x:k-r*b(l*u),y:w+r*h(l*u)},R={x:k-r*b(f*u),y:w+r*h(f*u)},J={x:k+m*b(x*u),y:w-m*h(x*u)},M={x:k+_*b(o*u),y:w+_*h(o*u)},L={x:k-m*h(o*u),y:w+m*b(o*u)},S={x:k-_*b(o*u),y:w-_*h(o*u)},X=g(v.x,j.x,K.x,R.x),V=y(v.x,j.x,K.x,R.x),Y=g(v.y,j.y,K.y,R.y),F=y(v.y,j.y,K.y,R.y);return{_ct:[v,j,K,R],_eV:[J,M,L,S],_cx:V-X,_cy:F-Y,_cv:X,_dT:V,_cw:Y,_dU:F,_cM:k,_cN:w}},bS:(e,t)=>(360+180*f(e.y-t.y,e.x-t.x)/p)%360,bT:e=>m[e],bU(e,t,i){let s=a(n(e.x-t.x,2)+n(e.y-t.y,2));return{x:t.x+s*b(i*u),y:t.y+s*h(i*u)}},bV(e,t,i){let s=x(i*u);return{k:s,b:t-e*s}},bW(e,t,i,s){let o=(s-t)/(i-e);return{k:o,b:t-e*o}},bX:(e,t)=>a(n(e.x-t.x,2)+n(e.y-t.y,2)),bO(e,t){let[i,s]=e,[o,r]=t,d=((s.x-i.x)*(o.y-i.y)-(s.y-i.y)*(o.x-i.x))*((s.x-i.x)*(r.y-i.y)-(s.y-i.y)*(r.x-i.x)),l=((r.x-o.x)*(i.y-o.y)-(r.y-o.y)*(i.x-o.x))*((r.x-o.x)*(s.y-o.y)-(r.y-o.y)*(s.x-o.x));return d<0&&l<0},bL(e,t,i){let s=e.width/2,o=e.height/2,r=t.width/2,d=t.height/2,l=e.x+s,a=e.y+o,n=t.x+r,c=t.y+d,p=i?-1:1;return _(n-l)<=s+p*r&&_(c-a)<=o+p*d},bY({rows:e},t,i,s){for(let s of e){for(let e of i)null!=s[e]&&(s[e]*=t);for(let e of s.cols)for(let s of i)null!=e[s]&&(e[s]*=t)}s&&(s.rows=e)},bZ(e,t,i){let s=[];for(let e of t){let t={...e,cols:[]};for(let e of i)null!=t[e]&&(t[e]=this.bM(t[e]));for(let s of e.cols){let e={...s};for(let t of i)null!=e[t]&&(e[t]=this.bM(e[t]));t.cols.push(e)}s.push(t)}e.rows=s},b0(e,t,i){for(let s of e){for(let e of i)null!=s[e]&&(s[e]=o.cC(s[e],t));for(let e of s.cols)for(let s of i)null!=e[s]&&(e[s]=o.cC(e[s],t))}}}}));
|