You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
380 KiB
JavaScript
37 lines
380 KiB
JavaScript
|
3 weeks ago
|
import{d as MA,c as q,o as O,a as sA,b as j,m as qo,u as Is,e as Al,f as el,r as X,g as C,w as v,h as p,E as YA,i as Y,j as cA,k as Ps,l as Ce,n as ze,p as hA,q as oA,t as WA,s as tl,_ as Ke,v as Gs,x as nr,y as jt,z as wa,F as Be,A as me,B as vn,C as rl,D as Ca,G as Qa,H as ut,I as fA,J as ma,K as Ua,L as Xs,M as Wr,N as Fn,O as d,P as Hs,Q as xs,R as Ft,S as Tt,T as jn,U as va,V as nl,W as Qe,X as gr,Y as Se,Z as an,$ as sl,a0 as zr,a1 as tA,a2 as rt,a3 as $n,a4 as il,a5 as al,a6 as ol,a7 as ll,a8 as fr,a9 as cl,aa as ul,ab as Bl,ac as dr,ad as Fa,ae as ie,af as qn,ag as Js,ah as Nt,ai as ya,aj as ot,ak as Ea,al as ba,am as As,an as gl,ao as fl,ap as dl,aq as hl,ar as pl,as as LA,at as Ia,au as Ys,av as lt,aw as $t,ax as wl,ay as Cl,az as Ws,aA as Ql,aB as Ss,aC as zs,aD as Ha,aE as xa,aF as ml,aG as Zs,aH as js,aI as Ul,aJ as $s,aK as vl,aL as Fl,aM as Sa,aN as Ta,aO as yl,aP as El}from"./index-9847718b.js";import{_ as bl,a as Il,g as Nr,u as es}from"./index-fd059ba6.js";const Hl={"aria-hidden":"true"},xl=["xlink:href"],JA=MA({__name:"index",props:{name:{type:String,required:!0},props:{type:Object,default:()=>{}}},setup(r){const A=r,t=q(()=>`#mt-edit-${A.name}`);return(e,n)=>(O(),sA("svg",Hl,[j("use",qo({"xlink:href":t.value},A.props),null,16,xl)]))}}),Sl={class:"flex justify-between",style:{width:"100%"}},Tl={class:"flex items-center justify-between w-50px"},Ll={class:"flex justify-between",style:{width:"calc(100% - 20px)"}},Dl={class:"flex items-center"},Kl={class:"flex justify-center items-center"},_l={class:"flex items-center mr-20px"},Ml={class:"flex items-center justify-between w-90px"},Ol={class:"flex items-center"},Vl=MA({__name:"index",props:{leftAside:{type:Boolean,default:!0},rightAside:{type:Boolean,default:!0},selectedItemsId:{default:()=>[]},groupEnabled:{type:Boolean},unGroupEnabled:{type:Boolean},alignEnabled:{type:Boolean},deleteEnabled:{type:Boolean},lockState:{type:Boolean},undoEnabled:{type:Boolean},redoEnabled:{type:Boolean},realTimeData:{},useThumbnail:{type:Boolean,default:!1}},emits:["update:leftAside","update:rightAside","onGroupClick","onUngroupClick","onDeleteClick","onExportClick","onTreeClick","alignSelected","update:lockState","onHelpClick","onRedoClick","onUndoClick","onImportClick","onPreviewClick","onReturnClick","onSaveClick","onDrawLineClick","onThumbnailClick","onRightDrawer","onImageDialog"],setup(r,{emit:A}){const t=r,e=A,n=Is({selector:"#mt-edit"});Al(),el(n);const s=X(!1),i=X(!1),a=()=>{e("onDeleteClick")},o=()=>{e("onExportClick")},l=()=>{e("onTreeClick")},c=()=>{e("update:lockState",!t.lockState)},u=()=>{e("onImportClick")},B=()=>{s.value=!s.value,e("onDrawLineClick",s.value)};return(f,g)=>(O(),sA("div",Sl,[j("div",Tl,[C(p(cA),{text:"",circle:"",size:"small",onClick:g[0]||(g[0]=h=>e("update:leftAside",!t.leftAside))},{default:v(()=>[C(p(YA),{size:20},{default:v(()=>[t.leftAside?(O(),Y(JA,{key:0,name:"menu-fold"})):(O(),Y(JA,{key:1,name:"menu-unfold"}))]),_:1})]),_:1})]),j("div",Ll,[j("div",Dl,[C(p(Ps),null,{default:v(()=>[C(p(cA),{text:"",circle:"",size:"small",disabled:!t.undoEnabled,onClick:g[1]||(g[1]=h=>e("onUndoClick"))},{default:v(()=>[C(p(YA),{title:"撤销 Ctrl+Z",size:20},{default:v(()=>[C(JA,{name:"undo"})]),_:1})]),_:1},8,["disabled"]),C(p(cA),{text:"",circle:"",size:"small",disabled:!t.redoEnabled,onClick:g[2]||(g[2]=h=>e("onRedoClick"))},{default:v(()=>[C(p(YA),{title:"重做 Ctrl+Y",size:20},{default:v(()=>[C(JA,{name:"redo"})]),_:1})]),_:1},8,["disabled"])]),_:1}),C(p(Ce),{direction:"vertical"}),C(p(cA),{text:"",circle:"",size:"small",disabled:!t.deleteEnabled,onClick:a},{default:v(()=>[C(p(YA),{title:"删除 delete",class:ze(""),size:20},{default:v(()=>[C(JA,{name:"delete"})]),_:1})]),_:1},8,["disabled"]),C(p(Ce),{direction:"vertical"}),C(p(cA),{text:"",circle:"",size:"small",onClick:l},{default:v(()=>[C(p(YA),{title:"组件树",size:20},{default:v(()=>[C(JA,{name:"tree-list"})]),_:1})]),_:1}),C(p(Ce),{direction:"vertical"}),C(p(Ps),null,{default:v(()=>[C(p(cA),{text:"",circle:"",size:"small",onClick:u},{default:v(()=>[C(p(YA),{title:"导入数据模型",size:
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Da=function(r,A){return(Da=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(r,A)};function Ka(r,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=r}Da(r,A),r.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}function su(r){var A="";Array.isArray(r)||(r=[r]);for(var t=0;t<r.length;t++){var e=r[t];if(e.type===M.CLOSE_PATH)A+="z";else if(e.type===M.HORIZ_LINE_TO)A+=(e.relative?"h":"H")+e.x;else if(e.type===M.VERT_LINE_TO)A+=(e.relative?"v":"V")+e.y;else if(e.type===M.MOVE_TO)A+=(e.relative?"m":"M")+e.x+" "+e.y;else if(e.type===M.LINE_TO)A+=(e.relative?"l":"L")+e.x+" "+e.y;else if(e.type===M.CURVE_TO)A+=(e.relative?"c":"C")+e.x1+" "+e.y1+" "+e.x2+" "+e.y2+" "+e.x+" "+e.y;else if(e.type===M.SMOOTH_CURVE_TO)A+=(e.relative?"s":"S")+e.x2+" "+e.y2+" "+e.x+" "+e.y;else if(e.type===M.QUAD_TO)A+=(e.relative?"q":"Q")+e.x1+" "+e.y1+" "+e.x+" "+e.y;else if(e.type===M.SMOOTH_QUAD_TO)A+=(e.relative?"t":"T")+e.x+" "+e.y;else{if(e.type!==M.ARC)throw new Error('Unexpected command type "'+e.type+'" at index '+t+".");A+=(e.relative?"a":"A")+e.rX+" "+e.rY+" "+e.xRot+" "+ +e.lArcFlag+" "+ +e.sweepFlag+" "+e.x+" "+e.y}}return A}function rs(r,A){var t=r[0],e=r[1];return[t*Math.cos(A)-e*Math.sin(A),t*Math.sin(A)+e*Math.cos(A)]}function fe(){for(var r=[],A=0;A<arguments.length;A++)r[A]=arguments[A];for(var t=0;t<r.length;t++)if(typeof r[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof r[t]+" == typeof "+r[t]);return!0}var Ge=Math.PI;function bn(r,A,t){r.lArcFlag=r.lArcFlag===0?0:1,r.sweepFlag=r.sweepFlag===0?0:1;var e=r.rX,n=r.rY,s=r.x,i=r.y;e=Math.abs(r.rX),n=Math.abs(r.rY);var a=rs([(A-s)/2,(t-i)/2],-r.xRot/180*Ge),o=a[0],l=a[1],c=Math.pow(o,2)/Math.pow(e,2)+Math.pow(l,2)/Math.pow(n,2);1<c&&(e*=Math.sqrt(c),n*=Math.sqrt(c)),r.rX=e,r.rY=n;var u=Math.pow(e,2)*Math.pow(l,2)+Math.pow(n,2)*Math.pow(o,2),B=(r.lArcFlag!==r.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(e,2)*Math.pow(n,2)-u)/u)),f=e*l/n*B,g=-n*o/e*B,h=rs([f,g],r.xRot/180*Ge);r.cX=h[0]+(A+s)/2,r.cY=h[1]+(t+i)/2,r.phi1=Math.atan2((l-g)/n,(o-f)/e),r.phi2=Math.atan2((-l-g)/n,(-o-f)/e),r.sweepFlag===0&&r.phi2>r.phi1&&(r.phi2-=2*Ge),r.sweepFlag===1&&r.phi2<r.phi1&&(r.phi2+=2*Ge),r.phi1*=180/Ge,r.phi2*=180/Ge}function ei(r,A,t){fe(r,A,t);var e=r*r+A*A-t*t;if(0>e)return[];if(e===0)return[[r*t/(r*r+A*A),A*t/(r*r+A*A)]];var n=Math.sqrt(e);return[[(r*t+A*n)/(r*r+A*A),(A*t-r*n)/(r*r+A*A)],[(r*t-A*n)/(r*r+A*A),(A*t+r*n)/(r*r+A*A)]]}var KA,be=Math.PI/180;function ti(r,A,t){return(1-t)*r+t*A}function ri(r,A,t,e){return r+Math.cos(e/180*Ge)*A+Math.sin(e/180*Ge)*t}function ni(r,A,t,e){var n=1e-6,s=A-r,i=t-A,a=3*s+3*(e-t)-6*i,o=6*(i-s),l=3*s;return Math.abs(a)<n?[-l/o]:function(c,u,B){B===void 0&&(B=1e-6);var f=c*c/4-u;if(f<-B)return[];if(f<=B)return[-c/2];var g=Math.sqrt(f);return[-c/2-g,-c/2+g]}(o/a,l/a,n)}function si(r,A,t,e,n){var s=1-n;return r*(s*s*s)+A*(3*s*s*n)+t*(3*s*n*n)+e*(n*n*n)}(function(r){function A(){return n(function(a,o,l){return a.relative&&(a.x1!==void 0&&(a.x1+=o),a.y1!==void 0&&(a.y1+=l),a.x2!==void 0&&(a.x2+=o),a.y2!==void 0&&(a.y2+=l),a.x!==void 0&&(a.x+=o),a.y!==void 0&&(a.y+=l),a.relative=!1),a})}function t(){var a=NaN,o=NaN,l=NaN,c=NaN;return n(function(u,B,f){return u.type&M.SMOOTH_CURVE_TO&&(u.type=M.CURVE_TO,a=isNaN(a)?B:a,o=isNaN(o)?f:o,u.x1=u.relative?B-a:2*B-a,u.y1=u.relative?f-o:2*f-o),u.type&M.CURVE_TO?(a=u.relative?B+u.x2:u.x2,o=u.relative?f+u.y2:u.y2):(a=NaN,o=NaN),u.type&M.SMOOTH_QUAD_TO&&(u.type=M.QUAD_TO,l=isNaN(l)?B:l,c=isNaN(c)?f:c,u.x1=u.relative?B-l:2*B-l,u.y1=u.relative?f-c:2*f-c),u.type&M.QUAD_TO?(l=u.relative?B+u.x1:u.x1,c=u.relative?f+u.y1:u.y1):(l=NaN,c=NaN),u})}function e(){var a=NaN,o=NaN;return n(function(l,c,u){if(l.type&M.SMOOTH_QUAD_TO&&(l.type=M.QUAD_TO,a=isNaN(a)?c:a,o=isNaN(o)?u:o,l.x1=l.r
|
||
|
|
`},ii=function(r){return"0".charCodeAt(0)<=r.charCodeAt(0)&&r.charCodeAt(0)<="9".charCodeAt(0)},au=function(r){function A(){var t=r.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return Ka(A,r),A.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},A.prototype.parse=function(t,e){var n=this;e===void 0&&(e=[]);for(var s=function(u){e.push(u),n.curArgs.length=0,n.canParseCommandOrComma=!0},i=0;i<t.length;i++){var a=t[i],o=!(this.curCommandType!==M.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=ii(a)&&(this.curNumber==="0"&&a==="0"||o);if(!ii(a)||l)if(a!=="e"&&a!=="E")if(a!=="-"&&a!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(a!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var c=Number(this.curNumber);if(isNaN(c))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===M.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>c)throw new SyntaxError('Expected positive number, got "'+c+'" at index "'+i+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"')}this.curArgs.push(c),this.curArgs.length===ou[this.curCommandType]&&(M.HORIZ_LINE_TO===this.curCommandType?s({type:M.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):M.VERT_LINE_TO===this.curCommandType?s({type:M.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===M.MOVE_TO||this.curCommandType===M.LINE_TO||this.curCommandType===M.SMOOTH_QUAD_TO?(s({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),M.MOVE_TO===this.curCommandType&&(this.curCommandType=M.LINE_TO)):this.curCommandType===M.CURVE_TO?s({type:M.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===M.SMOOTH_CURVE_TO?s({type:M.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===M.QUAD_TO?s({type:M.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===M.ARC&&s({type:M.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!iu(a))if(a===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(a!=="+"&&a!=="-"&&a!==".")if(l)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,a!=="z"&&a!=="Z")if(a==="h"||a==="H")this.curCommandType=M.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=M.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=M.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=M.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=M.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=M.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=M.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="
|
||
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
||
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
||
|
|
* Released under MIT License
|
||
|
|
*//*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var ss=function(r,A){return ss=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},ss(r,A)};function pe(r,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");ss(r,A);function t(){this.constructor=r}r.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var is=function(){return is=Object.assign||function(A){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(A[s]=t[s])}return A},is.apply(this,arguments)};function ee(r,A,t,e){function n(s){return s instanceof t?s:new t(function(i){i(s)})}return new(t||(t=Promise))(function(s,i){function a(c){try{l(e.next(c))}catch(u){i(u)}}function o(c){try{l(e.throw(c))}catch(u){i(u)}}function l(c){c.done?s(c.value):n(c.value).then(a,o)}l((e=e.apply(r,A||[])).next())})}function qA(r,A){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},e,n,s,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(l){return function(c){return o([l,c])}}function o(l){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=A.call(r,t)}catch(c){l=[6,c],n=0}finally{e=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Cr(r,A,t){if(t||arguments.length===2)for(var e=0,n=A.length,s;e<n;e++)(s||!(e in A))&&(s||(s=Array.prototype.slice.call(A,0,e)),s[e]=A[e]);return r.concat(s||A)}var De=function(){function r(A,t,e,n){this.left=A,this.top=t,this.width=e,this.height=n}return r.prototype.add=function(A,t,e,n){return new r(this.left+A,this.top+t,this.width+e,this.height+n)},r.fromClientRect=function(A,t){return new r(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},r.fromDOMRectList=function(A,t){var e=Array.from(t).find(function(n){return n.width!==0});return e?new r(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r}(),Bn=function(r,A){return De.fromClientRect(r,A.getBoundingClientRect())},UB=function(r){var A=r.body,t=r.documentElement;if(!A||!t)throw new Error("Unable to get document size");var e=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new De(0,0,e,n)},gn=function(r){for(var A=[],t=0,e=r.length;t<e;){var n=r.charCodeAt(t++);if(n>=55296&&n<=56319&&t<e){var s=r.charCodeAt(t++);(s&64512)===56320?A.push(((n&1023)<<10)+(s&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},TA=function(){for(var r=[],A=0;A<arguments.length;A++)r[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var t=r.length;if(!t)return"";for(var e=[],n=-1,s="";++n<t;){var i=r[n];i<=65535?e.push(i):(i-=65536,e.push((i>>10)+55296,i%1024+56320)),(n+1===t||e.length>16384)&&(s+=String.fromCharCode.apply(String,e),e.length=0)}return s},Ci="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Qr=0;Qr<Ci.length;Qr++)vB[Ci.charCodeAt(Qr)]=Qr;var Qi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst
|
||
|
|
content: "" !important;
|
||
|
|
display: none !important;
|
||
|
|
}`,op=function(r){lp(r,"."+ys+ip+fa+`
|
||
|
|
.`+Es+ap+fa)},lp=function(r,A){var t=r.ownerDocument;if(t){var e=t.createElement("style");e.textContent=A,r.appendChild(e)}},Jo=function(){function r(){}return r.getOrigin=function(A){var t=r._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},r.isSameOrigin=function(A){return r.getOrigin(A)===r._origin},r.setContext=function(A){r._link=A.document.createElement("a"),r._origin=r.getOrigin(A.location.href)},r._origin="about:blank",r}(),cp=function(){function r(A,t){this.context=A,this._options=t,this._cache={}}return r.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(zn(A)||fp(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},r.prototype.match=function(A){return this._cache[A]},r.prototype.loadImage=function(A){return ee(this,void 0,void 0,function(){var t,e,n,s,i=this;return qA(this,function(a){switch(a.label){case 0:return t=Jo.isSameOrigin(A),e=!Wn(A)&&this._options.useCORS===!0&&jA.SUPPORT_CORS_IMAGES&&!t,n=!Wn(A)&&!t&&!zn(A)&&typeof this._options.proxy=="string"&&jA.SUPPORT_CORS_XHR&&!e,!t&&this._options.allowTaint===!1&&!Wn(A)&&!zn(A)&&!n&&!e?[2]:(s=A,n?[4,this.proxy(s)]:[3,2]);case 1:s=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(o,l){var c=new Image;c.onload=function(){return o(c)},c.onerror=l,(dp(s)||e)&&(c.crossOrigin="anonymous"),c.src=s,c.complete===!0&&setTimeout(function(){return o(c)},500),i._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},r.prototype.has=function(A){return typeof this._cache[A]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(A){var t=this,e=this._options.proxy;if(!e)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(s,i){var a=jA.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(a==="text")s(o.response);else{var u=new FileReader;u.addEventListener("load",function(){return s(u.result)},!1),u.addEventListener("error",function(B){return i(B)},!1),u.readAsDataURL(o.response)}else i("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=i;var l=e.indexOf("?")>-1?"&":"?";if(o.open("GET",""+e+l+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=a),t._options.imageTimeout){var c=t._options.imageTimeout;o.timeout=c,o.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+n)}}o.send()})},r}(),up=/^data:image\/svg\+xml/i,Bp=/^data:image\/.*;base64,/i,gp=/^data:image\/.*/i,fp=function(r){return jA.SUPPORT_SVG_DRAWING||!hp(r)},Wn=function(r){return gp.test(r)},dp=function(r){return Bp.test(r)},zn=function(r){return r.substr(0,4)==="blob"},hp=function(r){return r.substr(-3).toLowerCase()==="svg"||up.test(r)},N=function(){function r(A,t){this.type=0,this.x=A,this.y=t}return r.prototype.add=function(A,t){return new r(this.x+A,this.y+t)},r}(),Ut=function(r,A,t){return new N(r.x+(A.x-r.x)*t,r.y+(A.y-r.y)*t)},Or=function(){function r(A,t,e,n){this.type=1,this.start=A,this.startControl=t,this.endControl=e,this.end=n}return r.prototype.subdivide=function(A,t){var e=Ut(this.start,this.startControl,A),n=Ut(this.startControl,this.endControl,A),s=Ut(this.endControl,this.end,A),i=Ut(e,n,A),a=Ut(n,s,A),o=Ut(i,a,A);return t?new r(this.start,e,i,o):new r(o,a,s,this.end)},r.prototype.add=function(A,t){return new r(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),le=function(r){return r.type===1},pp=function(){function r(A){var t=A.styles,e=A.bounds,n=Wt(t.borderTopLeftRadius,e.width,e.height),s=n[0],i=n[1],a=Wt(t.borderTopRightRadius,e.width,e.height),o=a[0],l=a[1],c=Wt(t.borderBottomRightRadius,e.width,e.height),u=c[0],B=c[1],f=Wt(t.borderBottomLeftRadius,e.width,e.height),g
|