UNPKG

@syncfusion/ej2-pdfviewer

Version:
10 lines 8.6 MB
/*! * filename: ej2-pdfviewer.min.js * version : 34.2.2 * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionInputs"),require("SyncfusionPopups"),require("SyncfusionSplitbuttons"),require("SyncfusionInplaceEditor"),require("SyncfusionNavigations"),require("SyncfusionNotifications"),require("SyncfusionDropdowns"),require("SyncfusionCompression"),require("SyncfusionFileUtils"),require("SyncfusionButtons"),require("SyncfusionData"),require("SyncfusionLists")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionInputs","SyncfusionPopups","SyncfusionSplitbuttons","SyncfusionInplaceEditor","SyncfusionNavigations","SyncfusionNotifications","SyncfusionDropdowns","SyncfusionCompression","SyncfusionFileUtils","SyncfusionButtons","SyncfusionData","SyncfusionLists"],t):"object"==typeof exports?exports.SyncfusionPdfviewer=t(require("SyncfusionBase"),require("SyncfusionInputs"),require("SyncfusionPopups"),require("SyncfusionSplitbuttons"),require("SyncfusionInplaceEditor"),require("SyncfusionNavigations"),require("SyncfusionNotifications"),require("SyncfusionDropdowns"),require("SyncfusionCompression"),require("SyncfusionFileUtils"),require("SyncfusionButtons"),require("SyncfusionData"),require("SyncfusionLists")):e.SyncfusionPdfviewer=t(e.SyncfusionBase,e.SyncfusionInputs,e.SyncfusionPopups,e.SyncfusionSplitbuttons,e.SyncfusionInplaceEditor,e.SyncfusionNavigations,e.SyncfusionNotifications,e.SyncfusionDropdowns,e.SyncfusionCompression,e.SyncfusionFileUtils,e.SyncfusionButtons,e.SyncfusionData,e.SyncfusionLists)}(self,(e,t,A,i,n,o,a,r,s,g,l,h,d)=>(()=>{"use strict";var c={766:t=>{t.exports=e},741:e=>{e.exports=l},50:e=>{e.exports=s},74:e=>{e.exports=h},778:e=>{e.exports=r},115:e=>{e.exports=g},914:e=>{e.exports=n},323:e=>{e.exports=t},90:e=>{e.exports=d},215:e=>{e.exports=o},344:e=>{e.exports=a},197:e=>{e.exports=A},295:e=>{e.exports=i}},B={};function p(e){var t=B[e];if(void 0!==t)return t.exports;var A=B[e]={exports:{}};return c[e](A,A.exports,p),A.exports}p.d=(e,t)=>{for(var A in t)p.o(t,A)&&!p.o(e,A)&&Object.defineProperty(e,A,{enumerable:!0,get:t[A]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var w={};return(()=>{p.r(w),p.d(w,{AccessibilityTags:()=>Dw,ActiveElements:()=>Nt,AjaxHandler:()=>TB,AjaxRequestSettings:()=>rp,AllowedInteraction:()=>tA,AnnotBounds:()=>YQ,AnnotBoundsBase:()=>Ni,AnnotBoundsRect:()=>Pi,AnnotColor:()=>UQ,AnnotFontBase:()=>Ji,AnnotPoint:()=>xQ,AnnotRectBase:()=>Ki,Annotation:()=>Ti,AnnotationBaseSettings:()=>Hi,AnnotationDataFormat:()=>AA,AnnotationDrawingOptions:()=>Ip,AnnotationRenderer:()=>fQ,AnnotationResizerLocation:()=>Xt,AnnotationSelectorSettings:()=>Np,AnnotationSettings:()=>Op,AnnotationStatus:()=>gA,AnnotationToolbar:()=>ZB,AnnotationToolbarSettings:()=>gp,Annotations:()=>QQ,AnnotationsBase:()=>_i,AnnotationsInternal:()=>Oi,AreaSettings:()=>Yp,ArrowSettings:()=>mp,BlazorUiAdaptor:()=>SB,BookmarkBase:()=>PQ,BookmarkDestination:()=>NQ,BookmarkStyles:()=>KQ,BookmarkView:()=>Bw,CalculateLeaderPoints:()=>Ut,CheckBoxFieldSettings:()=>Aw,CircleSettings:()=>Sp,CommandManager:()=>gw,CommentFilterSettings:()=>_p,CommentStatus:()=>Lt,ConnectTool:()=>Mt,ContextMenu:()=>RB,ContextMenuItem:()=>_t,ContextMenuSettings:()=>$p,CursorType:()=>Wt,CustomStamp:()=>sp,CustomStampSettings:()=>Gp,CustomToolbarItem:()=>ap,DisplayMode:()=>zt,DistanceSettings:()=>vp,DocumentTextCollectionSettings:()=>jp,Drawing:()=>Qt,DropdownFieldSettings:()=>nw,DynamicStampItem:()=>qt,ExtractTextOption:()=>Zt,FontBase:()=>VQ,FontStyle:()=>Ot,FormDesigner:()=>mw,FormDesignerToolbar:()=>LB,FormDesignerToolbarSettings:()=>lp,FormField:()=>qp,FormFieldDataFormat:()=>iA,FormFields:()=>Iw,FormFieldsBase:()=>qB,FreeTextAnnotation:()=>lA,FreeTextAnnotationBase:()=>IQ,FreeTextSettings:()=>Pp,HandWrittenSignatureSettings:()=>Lp,HighlightSettings:()=>fp,IBounds:()=>Li,ImageStructureBase:()=>JQ,InitialFieldSettings:()=>cp,InkAnnotation:()=>on,InkAnnotationSettings:()=>Rp,InkDrawingTool:()=>yt,InkSignatureAnnotation:()=>mQ,InputElement:()=>hA,Item:()=>aw,KeyGesture:()=>rw,KeyboardCommand:()=>sw,LineSettings:()=>Ep,LineTool:()=>kt,LinkAnnotation:()=>Zi,ListBoxFieldSettings:()=>ow,Magnification:()=>NB,MeasureAnnotation:()=>$i,MeasureShapeAnnotationBase:()=>MQ,MeasurementScaleRatio:()=>qi,MeasurementSettings:()=>Hp,ModifierKeys:()=>nA,MoveTool:()=>mt,Navigation:()=>KB,NavigationPane:()=>kc,NodeDrawingTool:()=>Ft,OrganizeDetails:()=>zI,PageInfo:()=>Jp,PageOrganizer:()=>XI,PageOrganizerSettings:()=>lw,PageRenderer:()=>Sw,PageRotation:()=>ZI,PasswordFieldSettings:()=>tw,Path:()=>RQ,PdfAnnotationBase:()=>Ge,PdfAnnotationSettings:()=>yp,PdfBounds:()=>be,PdfFont:()=>ke,PdfFormFieldBase:()=>ve,PdfKeys:()=>oA,PdfLayer:()=>vQ,PdfPageRotateAngle:()=>jI,PdfRenderedFields:()=>$B,PdfRenderer:()=>pQ,PdfViewer:()=>dw,PdfViewerBase:()=>UB,PdfiumRunner:()=>Mw,PerimeterSettings:()=>xp,PointBase:()=>EQ,PolygonDrawingTool:()=>bt,PolygonSettings:()=>bp,PopupAnnotationBase:()=>kQ,Print:()=>fw,RadioButtonFieldSettings:()=>iw,RadiusSettings:()=>Up,RectBounds:()=>yw,RectangleBase:()=>TQ,RectangleBounds:()=>Zp,RectangleSettings:()=>Dp,RedactionAnnotationBase:()=>yQ,RedactionSettings:()=>Mp,RedactionToolbarSettings:()=>hp,ResizeTool:()=>St,RotateTool:()=>Gt,ScrollSettings:()=>Wp,SearchResult:()=>hw,SelectTool:()=>It,Selector:()=>Ve,ServerActionSettings:()=>wp,ShapeAnnotation:()=>en,ShapeAnnotationBase:()=>DQ,ShapeLabelSettings:()=>Fp,SignStampItem:()=>$t,Signature:()=>PB,SignatureAnnotationBase:()=>SQ,SignatureBase:()=>HQ,SignatureDialogSettings:()=>pp,SignatureFieldSettings:()=>dp,SignatureIndicatorSettings:()=>Bp,SignatureType:()=>jt,SizeBase:()=>uQ,Spinner:()=>rB,SquigglySettings:()=>up,StampAnnotation:()=>tn,StampAnnotationBase:()=>Fw,StampSettings:()=>kp,StampTool:()=>Dt,StandardBusinessStampItem:()=>eA,StickyNotesAnnotation:()=>nn,StickyNotesSettings:()=>Tp,StrikethroughSettings:()=>Cp,TextDataSettings:()=>Xp,TextFieldSettings:()=>ew,TextLayer:()=>VB,TextMarkupAnnotation:()=>zi,TextMarkupAnnotationBase:()=>GQ,TextSearch:()=>uw,TextSearchColorSettings:()=>Kp,TextSelection:()=>pw,ThumbnailView:()=>JB,TileRenderingSettings:()=>zp,ToolBase:()=>Et,Toolbar:()=>XB,ToolbarSettings:()=>op,UnderlineSettings:()=>Qp,VolumeSettings:()=>Vp,ZOrderPageTable:()=>xe,clipDecorator:()=>tt,clipDecorators:()=>et,cloneArray:()=>Oe,cloneObject:()=>Le,createSpinner:()=>sB,createSvg:()=>Jt,findActiveElement:()=>vt,findActivePage:()=>Pt,findElementUnderMouse:()=>Vt,findNearestPoint:()=>Bt,findObjectUnderMouse:()=>Yt,findObjects:()=>Ht,findObjectsUnderMouse:()=>xt,findPerimeterLength:()=>Ne,findPointsLength:()=>Pe,findTargetShapeElement:()=>Tt,getArialFontData:()=>zB,getBaseShapeAttributes:()=>Ke,getConnectorPoints:()=>Xe,getDecoratorElement:()=>$e,getDecoratorShape:()=>pt,getFunction:()=>Je,getInternalProperties:()=>_e,getPolygonPath:()=>gt,getSegmentElement:()=>We,getSegmentPath:()=>Ze,hideSpinner:()=>mB,initDistanceLabel:()=>At,initLeader:()=>dt,initLeaders:()=>ht,initPerimeterLabel:()=>ot,insertObject:()=>Rt,isLeader:()=>je,isLineShapes:()=>Re,isPointOverConnector:()=>ct,removePerimeterLabel:()=>rt,renderAdornerLayer:()=>Kt,setElementStype:()=>Te,setSpinner:()=>DB,showSpinner:()=>EB,textElement:()=>lt,updateCalibrateLabel:()=>st,updateColorWithOpacity:()=>He,updateDecoratorElement:()=>qe,updateDistanceLabel:()=>it,updatePerimeterLabel:()=>at,updateRadiusLabel:()=>nt,updateSegmentElement:()=>ze});var e,t,A,i,n,o,a,r=p(766),s=(e=function(t,A){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)t.hasOwnProperty(A)&&(e[A]=t[A])},e(t,A)},function(t,A){function i(){this.constructor=t}e(t,A),t.prototype=null===A?Object.create(A):(i.prototype=A.prototype,new i)}),g=function(e,t,A,i){var n,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,A):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,A,i);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(a=(o<3?n(a):o>3?n(t,A,a):n(t,A))||a);return o>3&&a&&Object.defineProperty(t,A,a),a},l=function(e){switch(e.type){case"Linear":default:return c;case"Radial":return B}},h=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}s(t,e),g([(0,r.Property)(0)],t.prototype,"left",void 0),g([(0,r.Property)(0)],t.prototype,"right",void 0),g([(0,r.Property)(0)],t.prototype,"top",void 0),g([(0,r.Property)(0)],t.prototype,"bottom",void 0)}(r.ChildProperty),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getClassName=function(){return"Stop"},g([(0,r.Property)("")],t.prototype,"color",void 0),g([(0,r.Property)(0)],t.prototype,"offset",void 0),g([(0,r.Property)(1)],t.prototype,"opacity",void 0),t}(r.ChildProperty)),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),g([(0,r.Collection)([],h)],t.prototype,"stops",void 0),g([(0,r.Property)("None")],t.prototype,"type",void 0),g([(0,r.Property)("")],t.prototype,"id",void 0),t}(r.ChildProperty),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),g([(0,r.Property)(0)],t.prototype,"x1",void 0),g([(0,r.Property)(0)],t.prototype,"x2",void 0),g([(0,r.Property)(0)],t.prototype,"y1",void 0),g([(0,r.Property)(0)],t.prototype,"y2",void 0),t}(d),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),g([(0,r.Property)(0)],t.prototype,"cx",void 0),g([(0,r.Property)(0)],t.prototype,"cy",void 0),g([(0,r.Property)(0)],t.prototype,"fx",void 0),g([(0,r.Property)(0)],t.prototype,"fy",void 0),g([(0,r.Property)(50)],t.prototype,"r",void 0),t}(d),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),g([(0,r.Property)("white")],t.prototype,"fill",void 0),g([(0,r.Property)("black")],t.prototype,"strokeColor",void 0),g([(0,r.Property)("")],t.prototype,"strokeDashArray",void 0),g([(0,r.Property)(1)],t.prototype,"strokeWidth",void 0),g([(0,r.Property)(1)],t.prototype,"opacity",void 0),g([(0,r.ComplexFactory)(l)],t.prototype,"gradient",void 0),t}(r.ChildProperty);(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}s(t,e),g([(0,r.Property)("transparent")],t.prototype,"fill",void 0)})(C),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}s(t,e),g([(0,r.Property)("black")],t.prototype,"color",void 0),g([(0,r.Property)("Arial")],t.prototype,"fontFamily",void 0),g([(0,r.Property)(12)],t.prototype,"fontSize",void 0),g([(0,r.Property)(!1)],t.prototype,"italic",void 0),g([(0,r.Property)(!1)],t.prototype,"bold",void 0),g([(0,r.Property)("CollapseSpace")],t.prototype,"whiteSpace",void 0),g([(0,r.Property)("WrapWithOverflow")],t.prototype,"textWrapping",void 0),g([(0,r.Property)("Center")],t.prototype,"textAlign",void 0),g([(0,r.Property)("None")],t.prototype,"textDecoration",void 0),g([(0,r.Property)("Wrap")],t.prototype,"textOverflow",void 0),g([(0,r.Property)("transparent")],t.prototype,"fill",void 0)}(C);!function(e){e[e.Self=1]="Self",e[e.Parent=2]="Parent"}(t||(t={})),function(e){e[e.None=0]="None",e[e.ElementIsPort=2]="ElementIsPort",e[e.ElementIsGroup=4]="ElementIsGroup"}(A||(A={})),function(e){e[e.None=1]="None",e[e.Select=2]="Select",e[e.Delete=4]="Delete",e[e.Drag=8]="Drag",e[e.DragSourceEnd=16]="DragSourceEnd",e[e.DragTargetEnd=32]="DragTargetEnd",e[e.DragSegmentThumb=64]="DragSegmentThumb",e[e.AllowDrop=128]="AllowDrop",e[e.Bridging=256]="Bridging",e[e.BridgeObstacle=512]="BridgeObstacle",e[e.InheritBridging=1024]="InheritBridging",e[e.PointerEvents=2048]="PointerEvents",e[e.Tooltip=4096]="Tooltip",e[e.InheritTooltip=8192]="InheritTooltip",e[e.Interaction=4218]="Interaction",e[e.ReadOnly=16384]="ReadOnly",e[e.Default=11838]="Default"}(i||(i={})),function(e){e[e.Rotate=2]="Rotate",e[e.ConnectorSource=4]="ConnectorSource",e[e.ConnectorTarget=8]="ConnectorTarget",e[e.ResizeNorthEast=16]="ResizeNorthEast",e[e.ResizeEast=32]="ResizeEast",e[e.ResizeSouthEast=64]="ResizeSouthEast",e[e.ResizeSouth=128]="ResizeSouth",e[e.ResizeSouthWest=256]="ResizeSouthWest",e[e.ResizeWest=512]="ResizeWest",e[e.ResizeNorthWest=1024]="ResizeNorthWest",e[e.ResizeNorth=2048]="ResizeNorth",e[e.Default=4094]="Default"}(n||(n={})),function(e){e[e.None=1]="None",e[e.ConnectorSourceThumb=2]="ConnectorSourceThumb",e[e.ConnectorTargetThumb=4]="ConnectorTargetThumb",e[e.ResizeSouthEast=8]="ResizeSouthEast",e[e.ResizeSouthWest=16]="ResizeSouthWest",e[e.ResizeNorthEast=32]="ResizeNorthEast",e[e.ResizeNorthWest=64]="ResizeNorthWest",e[e.ResizeEast=128]="ResizeEast",e[e.ResizeWest=256]="ResizeWest",e[e.ResizeSouth=512]="ResizeSouth",e[e.ResizeNorth=1024]="ResizeNorth",e[e.Rotate=2048]="Rotate",e[e.UserHandle=4096]="UserHandle",e[e.ToolTip=8192]="ToolTip",e[e.ResizeAll=2046]="ResizeAll",e[e.All=16382]="All"}(o||(o={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Three=3]="Three",e[e.Four=4]="Four",e[e.Five=5]="Five"}(a||(a={}));var u,Q=function(){function e(e,t){this.width=e,this.height=t}return e.prototype.clone=function(){return new e(this.width,this.height)},e}(),f=function(){function e(e,t,A,i){this.x=Number.MAX_VALUE,this.y=Number.MAX_VALUE,this.width=0,this.height=0,void 0===e||void 0===t?(e=t=Number.MAX_VALUE,A=i=0):(void 0===A&&(A=0),void 0===i&&(i=0)),this.x=e,this.y=t,this.width=A,this.height=i}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topLeft",{get:function(){return{x:this.left,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRight",{get:function(){return{x:this.right,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomLeft",{get:function(){return{x:this.left,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomRight",{get:function(){return{x:this.right,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleLeft",{get:function(){return{x:this.left,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleRight",{get:function(){return{x:this.right,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topCenter",{get:function(){return{x:this.x+this.width/2,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomCenter",{get:function(){return{x:this.x+this.width/2,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"center",{get:function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),e.prototype.equals=function(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height},e.prototype.uniteRect=function(e){var t=Math.max(Number.NaN===this.right||this.x===Number.MAX_VALUE?e.right:this.right,e.right),A=this.bottom;return this.x=Math.min(this.left,e.left),this.y=Math.min(this.top,e.top),this.width=t-this.x,this.height=A-this.y,this},e.prototype.unitePoint=function(e){if(this.x===Number.MAX_VALUE)return this.x=e.x,void(this.y=e.y);var t=Math.min(this.left,e.x),A=Math.min(this.top,e.y),i=Math.max(this.right,e.x),n=Math.max(this.bottom,e.y);this.x=t,this.y=A,this.width=i-this.x,this.height=n-this.y},e.prototype.intersection=function(t){if(this.intersects(t)){var A=Math.max(this.left,t.left),i=Math.max(this.top,t.top);return new e(A,i,Math.min(this.right,t.right)-A,Math.min(this.bottom,t.bottom)-i)}return e.empty},e.prototype.Inflate=function(e){return this.x-=e,this.y-=e,this.width+=2*e,this.height+=2*e,this},e.prototype.intersects=function(e){return!(this.right<e.left||this.left>e.right||this.top>e.bottom||this.bottom<e.top)},e.prototype.containsRect=function(e){return this.left<=e.left&&this.right>=e.right&&this.top<=e.top&&this.bottom>=e.bottom},e.prototype.containsPoint=function(e,t){return void 0===t&&(t=0),this.left-t<=e.x&&this.right+t>=e.x&&this.top-t<=e.y&&this.bottom+t>=e.y},e.prototype.toPoints=function(){var e=[];return e.push(this.topLeft),e.push(this.topRight),e.push(this.bottomLeft),e.push(this.bottomRight),e},e.toBounds=function(t){for(var A=new e,i=0,n=t;i<n.length;i++){var o=n[i];A.unitePoint(o)}return A},e.prototype.scale=function(e,t){this.width*=e,this.height*=t},e.prototype.offset=function(e,t){this.x+=e,this.y+=t},e.empty=new e(Number.MAX_VALUE,Number.MIN_VALUE,0,0),e}();!function(e){e[e.Identity=0]="Identity",e[e.Translation=1]="Translation",e[e.Scaling=2]="Scaling",e[e.Unknown=4]="Unknown"}(u||(u={}));var E=function(e,t,A,i,n,o,a){this.m11=e,this.m12=t,this.m21=A,this.m22=i,this.offsetX=n,this.offsetY=o,this.type=a};function I(){return new E(1,0,0,1,0,0,u.Identity)}function m(e,t){var A=function(e,t,A){switch(e.type){case u.Identity:break;case u.Translation:t+=e.offsetX,A+=e.offsetY;break;case u.Scaling:t*=e.m11,A*=e.m22;break;case u.Translation|u.Scaling:t*=e.m11,t+=e.offsetX,A*=e.m22,A+=e.offsetY;break;default:var i=A*e.m21+e.offsetX,n=t*e.m12+e.offsetY;t*=e.m11,t+=i,A*=e.m22,A+=n}return{x:t,y:A}}(e,t.x,t.y);return{x:Math.round(100*A.x)/100,y:Math.round(100*A.y)/100}}function D(e,t,A,i){M(e,function(e,t,A){var i=I(),n=Math.sin(e),o=Math.cos(e),a=t*(1-o)+A*n,r=A*(1-o)-t*n;return i.type=u.Unknown,S(i,o,n,-n,o,a,r),i}(.017453292519943295*(t%=360),A||0,i||0))}function y(e,t,A,i,n){void 0===i&&(i=0),void 0===n&&(n=0),M(e,function(e,t,A,i){var n=I();return n.type=A||i?u.Scaling|u.Translation:u.Scaling,S(n,e,0,0,t,A-e*A,i-t*i),n}(t,A,i,n))}function M(e,t){var A=e.type,i=t.type;if(i!==u.Identity){if(A===u.Identity)return F(e,t),void(e.type=t.type);if(i===u.Translation)return e.offsetX+=t.offsetX,e.offsetY+=t.offsetY,void(A!==u.Unknown&&(e.type|=u.Translation));if(A!==u.Translation){var n=A<<4|i;switch(n){case 34:return e.m11*=t.m11,void(e.m22*=t.m22);case 35:return e.m11*=t.m11,e.m22*=t.m22,e.offsetX=t.offsetX,e.offsetY=t.offsetY,void(e.type=u.Translation|u.Scaling);case 36:break;default:switch(n){case 50:return e.m11*=t.m11,e.m22*=t.m22,e.offsetX*=t.m11,void(e.offsetY*=t.m22);case 51:return e.m11*=t.m11,e.m22*=t.m22,e.offsetX=t.m11*e.offsetX+t.offsetX,void(e.offsetY=t.m22*e.offsetY+t.offsetY);case 52:break;default:switch(n){case 66:case 67:case 68:break;default:return}}}var o=I();return S(o,e.m11*t.m11+e.m12*t.m21,e.m11*t.m12+e.m12*t.m22,e.m21*t.m11+e.m22*t.m21,e.m21*t.m12+e.m22*t.m22,e.offsetX*t.m11+e.offsetY*t.m21+t.offsetX,e.offsetX*t.m12+e.offsetY*t.m22+t.offsetY),o.m21||o.m12?o.type=u.Unknown:((o.m11&&1!==o.m11||o.m22&&1!==o.m22)&&(o.type=u.Scaling),(o.offsetX||o.offsetY)&&(o.type|=u.Translation),(o.type&(u.Translation|u.Scaling))===u.Identity&&(o.type=u.Identity),o.type=u.Scaling|u.Translation),F(e,o),void(e.type=o.type)}var a=e.offsetX,r=e.offsetY;e.offsetX=a*t.m11+r*t.m21+t.offsetX,e.offsetY=a*t.m12+r*t.m22+t.offsetY,i!==u.Unknown?e.type=u.Translation|u.Scaling:e.type=u.Unknown}}function S(e,t,A,i,n,o,a){e.m11=t,e.m12=A,e.m21=i,e.m22=n,e.offsetX=o,e.offsetY=a}function F(e,t){e.m11=t.m11,e.m12=t.m12,e.m21=t.m21,e.m22=t.m22,e.offsetX=t.offsetX,e.offsetY=t.offsetY,e.type=t.type}function b(e){var t,A=[];if("msie"===r.Browser.info.name||"edge"===r.Browser.info.name)for(var i=0;i<e.childNodes.length;i++)1===(t=e.childNodes[parseInt(i.toString(),10)]).nodeType&&A.push(t);else A=e.children;return A}function k(e){var t="pathTable";if(window[t]||(window[t]={}),e){var A="measureElement";window[A].style.visibility="visible";var i=b(window[A].children[2])[0];i.setAttribute("d",e);var n=void 0;window[t][e]?n=window[t][e]:(window[t][e]=n=i.getBBox(),0!==n.x&&0!==n.y||0!==n.width&&0!==n.height||(window[t][e]=n=function(e){var t,A=0,i=0,n=0,o=0,a=e;a=a.replace(/[a-z].*/g," ").replace(/[\sA-Z]+/gi," ").trim().split(" ");for(var r=0;r<a.length;r++)a[parseInt(r.toString(),10)].length>1&&(A=i=(t=a[parseInt(r.toString(),10)].split(","))[0],n=o=t[1]);for(r=0;r<a.length;r++)(t=a[parseInt(r.toString(),10)].split(","))[1]||(t[0]=A,t[1]=n),A=Math.min(A,t[0]),i=Math.max(i,t[0]),n=Math.min(n,t[1]),o=Math.max(o,t[1]);return{x:A,y:n,width:i-A,height:o-n}}(e)));var o=new f(n.x,n.y,n.width,n.height);return window[A].style.visibility="hidden",o}return new f(0,0,0,0)}function G(e,t,A){var i,n,o=[],a=0,r=t||e.content;if("nowrap"!==e.whiteSpace&&"pre"!==e.whiteSpace)if("breakall"===e.breakWord)for(i="",i+=r[0],a=0;a<r.length;a++)if((n=_(i,e))>=e.width&&i.length>0)o[o.length]={text:i,x:0,dy:0,width:n},i="";else{var s=_(i+=r[a+1]||"",e);(Math.ceil(s)+2>=e.width&&i.length>0||i.indexOf("\n")>-1)&&(o[o.length]={text:i,x:0,dy:0,width:s},i=""),a===r.length-1&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:s},i="")}else o=function(e,t,A){var i,n,o,a,r=[],s="",g=0,l=0,h="nowrap"!==e.whiteSpace,d=t||e.content,c=d.split("\n"),B=0;for(g=0;g<c.length;g++)for(i="NoWrap"!==e.textWrapping?c[parseInt(g.toString(),10)].split(" "):c,l=0;l<i.length;l++)if(_(i[parseInt(l.toString(),10)],e)>e.width&&i[parseInt(l.toString(),10)].length>0&&"NoWrap"!==e.textWrapping){c.length>1&&(i[parseInt(l.toString(),10)]=i[parseInt(l.toString(),10)]+"\n");var p=e.content;e.content=i[parseInt(l.toString(),10)];var w=v(e,s,r,A,B);r=w.childNode,B=w.height,e.content=p}else{var C=_(n=(s+=((0!==l||1===i.length)&&h&&s.length>0?" ":"")+i[parseInt(l.toString(),10)])+(i[l+1]||""),e);if(" "===e.content[e.content.indexOf(s)+s.length]&&(C+=_(" ",e)),c.length>1&&l===i.length-1&&(s+="\n"),Math.floor(C)>e.width-2&&s.length>0){t=s;var u=1.2*e.fontSize-X(s,e);B=B+X(s,e)+u,(null==A||B<=A||B>A&&0===r.length)&&(r[r.length]={text:-1===s.indexOf("\n")&&l!==i.length-1?s+" ":t,x:0,dy:0,width:n===s?C:s===a?o:_(s,e)}),s=""}else if(l===i.length-1){u=1.2*e.fontSize-X(s,e);B=B+X(s,e)+u,(void 0===A||B<=A||B>A&&0===r.length)&&(r[r.length]={text:s,x:0,dy:0,width:C},s="")}a=n,o=C}return r}(e,t,A);else o[o.length]={text:r,x:0,dy:0,width:_(r,e)};return o}function v(e,t,A,i,n){var o,a,r=0,s=t||e.content;for(o="",o+=s[0],r=0;r<s.length;r++)if((a=_(o,e))>=e.width&&o.length>0){var g=1.2*e.fontSize-X(o,e);n=n+X(o,e)+g,(null==i||n<=i||n>i&&0===A.length)&&(A[A.length]={text:o,x:0,dy:0,width:a}),o=""}else{var l=_(o+=s[r+1]||"",e);if(Math.ceil(l)+2>=e.width&&o.length>0){o=o.slice(0,-1);g=1.2*e.fontSize-X(o,e);n=n+X(o,e)+g,l=_(o,e),(null==i||n<=i||n>i&&0===A.length)&&(A[A.length]={text:o,x:0,dy:0,width:l}),o=s[r+1]||""}if(r===s.length-1&&o.length>0){g=1.2*e.fontSize-X(o,e);n=n+X(o,e)+g,(null==i||n<=i||n>i&&0===A.length)&&(A[A.length]={text:o,x:0,dy:0,width:l}),o=""}}return{childNode:A,height:n}}function x(e,t,A){var i,n,o=[],a=0,r=t||e.content;if("nowrap"!==e.whiteSpace&&"pre"!==e.whiteSpace)if("breakall"===e.breakWord)for(i="",i+=r[0],a=0;a<r.length;a++)if(n=_(i,e),"\n"===i&&(i=r[a+1],a++),n>=e.width&&i.length>0)i="\n"===r[a+1]?i+r[a+1]:i,o[o.length]={text:i,x:0,dy:0,width:n},i="";else{var s=_(i+=r[a+1]||"",e);(Math.ceil(s)+2>=e.width&&i.length>0||i.indexOf("\n")>-1)&&(s=_(i=i.slice(0,-1),e),i="\n"===r[a+1]?i+r[a+1]:i,o[o.length]={text:i,x:0,dy:0,width:s},i=r[a+1]||""),a===r.length-1&&i.length>0&&(i="\n"===r[a+1]?i+r[a+1]:i,o[o.length]={text:i,x:0,dy:0,width:s},i="")}else o=function(e,t,A){var i,n,o,a,r,s=[],g="",l=0,h=0,d="nowrap"!==e.whiteSpace,c=t||e.content,B=c.split("\n"),p=0,w=e.thickness*(96/72),C=void 0!==e.thickness?4*w:5;for(l=0;l<B.length&&!(s.length>0&&s.length*e.fontSize*1.2+C>A);l++){n="NoWrap"!==e.textWrapping?B[parseInt(l.toString(),10)].split(" "):B;var u=void 0!==e.thickness?Math.floor(A):A;for(h=0;h<n.length;h++){var Q=void 0!==e.thickness?Math.ceil(p):p;if(i=_(n[parseInt(h.toString(),10)],e),(void 0!==e.thickness?4*w+i:i)>e.width&&n[parseInt(h.toString(),10)].length>0&&"NoWrap"!==e.textWrapping&&Q<u)B.length>1&&(n[parseInt(h.toString(),10)]=n[parseInt(h.toString(),10)]+"\n"),e.content=n[parseInt(h.toString(),10)],s=R(e,g,s,A);else{var f=_(o=(g+=((0!==h||1===n.length)&&d&&g.length>0?" ":"")+n[parseInt(h.toString(),10)])+(void 0!==e.thickness&&h+1!==n.length?" ":"")+(n[h+1]||""),e);B.length>1&&h===n.length-1&&(g+="\n");var E="\n"===g,I=h+1>=n.length&&""===B[parseInt((l+1).toString(),10)],m=void 0!==e.thickness?4*Math.ceil(w)+Math.ceil(f)+2:Math.ceil(f)+2,D=void 0!==e.thickness?2*w:0;if(0===s.length&&void 0!==e.thickness&&0!==C&&C>u){p=p+U(g)*X(g,e)+C;break}if(m>=(void 0!==e.thickness?Math.floor(e.width):e.width)&&g.length>0){if(t=g,null==A||Q<u||0===s.length&&1.2*e.fontSize>A)s[s.length]={text:-1===g.indexOf("\n")&&h!==n.length-1?g+" ":t,x:0,dy:0,width:o===g?f:g===r?a:_(g,e)},"justify"===e.textAlign&&void 0!==e.thickness&&(s[s.length-1].width=Math.floor(e.width));else if(void 0!==e.thickness&&Q>=u&&X(g,e)>D){s[s.length]={text:-1===g.indexOf("\n")&&h!==n.length?g+" ":t,x:0,dy:0,width:o===g?f:g===r?a:_(g,e)},"justify"===e.textAlign&&void 0!==e.thickness&&(s[s.length-1].width=Math.floor(e.width));break}var y=E||I?g:g.replace(/\n/g,"");p=p+U(y)*X(y,e)+D,g=""}else if(h===n.length-1){if(void 0===A||Q<u||0===s.length&&1.2*e.fontSize>A)s[s.length]={text:g,x:0,dy:0,width:f},"justify"===e.textAlign&&void 0!==e.thickness&&(s[s.length-1].width=Math.floor(e.width));else if(void 0!==e.thickness&&Q>=u&&X(g,e)>D){s[s.length]={text:g,x:0,dy:0,width:f},"justify"===e.textAlign&&void 0!==e.thickness&&(s[s.length-1].width=Math.floor(e.width));break}var M=E||I?g:g.replace(/\n/g,"");p=p+U(M)*X(M,e)+D,g=""}r=o,a=f}}}return s}(e,t,A);else o[o.length]={text:r,x:0,dy:0,width:_(r,e)};return o}function Y(e,t,A){var i,n,o=[],a=0,r=t||e.content;if("nowrap"!==e.whiteSpace&&"pre"!==e.whiteSpace)if("breakall"===e.breakWord)for(i="",i+=r[0],a=0;a<r.length;a++)if(n=j(i,e),"\n"===i&&(i=r[a+1],a++),n>=e.width&&i.length>0)i="\n"===r[a+1]?i+r[a+1]:i,o[o.length]={text:i,x:0,dy:0,width:n},i="";else{var s=j(i+=r[a+1]||"",e);(Math.ceil(s)+2>=e.width&&i.length>0||i.indexOf("\n")>-1)&&(s=j(i=i.slice(0,-1),e),i="\n"===r[a+1]?i+r[a+1]:i,o[o.length]={text:i,x:0,dy:0,width:s},i=r[a+1]||""),a===r.length-1&&i.length>0&&(i="\n"===r[a+1]?i+r[a+1]:i,o[o.length]={text:i,x:0,dy:0,width:s},i="")}else o=function(e,t,A){var i,n,o,a,r,s=[],g="",l=0,h=0,d="nowrap"!==e.whiteSpace,c=t||e.content,B=c.split("\n"),p=0,w=e.thickness*(96/72),C=void 0!==e.thickness?1===w||0===w?4*w:w+4:5;for(l=0;l<B.length&&!(s.length>0&&s.length*e.fontSize*1.2+C>A);l++){n="NoWrap"!==e.textWrapping?B[parseInt(l.toString(),10)].split(" "):B;var u=void 0!==e.thickness?Math.floor(A):A;for(h=0;h<n.length;h++){var Q=void 0!==e.thickness?Math.ceil(p):p;if(i=j(n[parseInt(h.toString(),10)],e),(void 0!==e.thickness?1===w||0===w?2*w+i:2*w+4+i:i)>e.width&&n[parseInt(h.toString(),10)].length>0&&"NoWrap"!==e.textWrapping&&Q<u){B.length>1&&(n[parseInt(h.toString(),10)]=n[parseInt(h.toString(),10)]+"\n");var f=e.content;e.content=n[parseInt(h.toString(),10)];var E=V(e,g,s,A,p);s=E.childNode,p=E.height,e.content=f}else{var I=j(o=(g+=((0!==h||1===n.length)&&d&&g.length>0?" ":"")+n[parseInt(h.toString(),10)])+(void 0!==e.thickness&&h+1!==n.length?" ":"")+(n[h+1]||""),e);B.length>1&&h===n.length-1&&(g+="\n");var m="\n"===g,D=h+1>=n.length&&""===B[parseInt((l+1).toString(),10)],y=void 0!==e.thickness?1===w?Math.floor(w)+Math.ceil(I):2*Math.floor(w)+4+Math.ceil(I)+2:Math.ceil(I)+2;if(0===s.length&&void 0!==e.thickness&&0!==C&&C>u){p=p+U(g)*X(g,e)+C;break}if(y+1>=(void 0!==e.thickness?Math.floor(e.width):e.width)&&g.length>0){if(t=g,null==A||Q<u||0===s.length&&1.2*e.fontSize>A)s[s.length]={text:-1===g.indexOf("\n")&&h!==n.length-1?g+" ":t,x:0,dy:0,width:o===g?I:g===r?a:j(g,e)},"justify"===e.textAlign&&void 0!==e.thickness&&(s[s.length-1].width=Math.floor(e.width));else if(void 0!==e.thickness&&Q>=u){s[s.length]={text:-1===g.indexOf("\n")&&h!==n.length?g+" ":t,x:0,dy:0,width:o===g?I:g===r?a:j(g,e)},"justify"===e.textAlign&&void 0!==e.thickness&&(s[s.length-1].width=Math.floor(e.width));break}var M=m||D?g:g.replace(/\n/g,"");p+=U(M)*X(M,e),g=""}else if(h===n.length-1){if(void 0===A||Q<u||0===s.length&&1.2*e.fontSize>A)s[s.length]={text:g,x:0,dy:0,width:I},"justify"===e.textAlign&&void 0!==e.thickness&&(s[s.length-1].width=Math.floor(e.width));else if(void 0!==e.thickness&&Q>=u){s[s.length]={text:g,x:0,dy:0,width:I},"justify"===e.textAlign&&void 0!==e.thickness&&(s[s.length-1].width=Math.floor(e.width));break}var S=m||D?g:g.replace(/\n/g,"");p+=U(S)*X(S,e),g=""}r=o,a=I}}}return s}(e,t,A);else o[o.length]={text:r,x:0,dy:0,width:j(r,e)};return o}function U(e){var t=e.split(/\r?\n/);return t.some(function(e){return e.trim().length>0})?t.length:1}function V(e,t,A,i,n){var o,a,r=0,s=t||e.content;o="",o+=s[0];var g=void 0===e.thickness||0!==e.thickness&&1!==e.thickness?Math.ceil(e.thickness*(96/72))+4:Math.ceil(e.thickness*(96/72));for(r=0;r<s.length;r++)if((a=j(o,e))+g>=e.width&&o.length>0)(null==i||n+g<i||0===A.length)&&(A[A.length]={text:o,x:0,dy:0,width:a}),n+=X(o,e),o=s[r+1]||"";else{var l=j(o+=s[r+1]||"",e)+g;Math.ceil(l)+2>=e.width&&o.length>0&&(n+=X(o,e),l=j(o=o.slice(0,-1),e),(null==i||n+g<=i||0===A.length)&&(A[A.length]={text:o,x:0,dy:0,width:l}),o=s[r+1]||""),r===s.length-1&&o.length>0&&(n+=X(o,e),(null==i||n+g<=i||0===A.length)&&(A[A.length]={text:o,x:0,dy:0,width:l}),o="")}return{childNode:A,height:n}}function R(e,t,A,i){var n,o,a=0,r=t||e.content;n="";var s=0;n+=r[0];var g=void 0!==e.thickness?4*Math.ceil(e.thickness*(96/72)):0;for(a=0;a<r.length;a++)if((o=_(n,e))+g>=e.width&&n.length>0)(null==i||s<i)&&(A[A.length]={text:n,x:0,dy:0,width:o}),s=s+X(n,e)+g,g=0,n="";else{var l=_(n+=r[a+1]||"",e)+g;Math.ceil(l)+2>=e.width&&n.length>0&&(s=s+X(n,e)+g,g=0,l=_(n=n.slice(0,-1),e),(null==i||s<=i)&&(A[A.length]={text:n,x:0,dy:0,width:l}),n=r[a+1]||""),a===r.length-1&&n.length>0&&(e.strokeWidth>1&&"Point"===e.relativeMode&&(s=s+X(n,e)+g,g=0),(null==i||s<=i)&&(A[A.length]={text:n,x:0,dy:0,width:l}),n="")}return A}function T(e,t,A,i,n,o){var a,r,s=new Q(0,0),g=function(e,t){var A={fill:e.style.fill,stroke:e.style.strokeColor,angle:e.rotateAngle+e.parentTransform,pivotX:e.pivot.x,pivotY:e.pivot.y,strokeWidth:e.style.strokeWidth,dashArray:e.style.strokeDashArray,opacity:e.style.opacity,visible:e.visible,id:e.id,width:t||e.actualSize.width,height:e.actualSize.height,x:e.offsetX-e.actualSize.width*e.pivot.x+.5,y:e.offsetY-e.actualSize.height*e.pivot.y+.5,relativeMode:e.relativeMode};return A.fontSize=e.style.fontSize,A.fontFamily=e.style.fontFamily,A.textOverflow=e.style.textOverflow,A.textDecoration=e.style.textDecoration,A.doWrap=e.doWrap,A.whiteSpace=Z(e.style.whiteSpace,e.style.textWrapping),A.content=e.content,A.textWrapping=e.style.textWrapping,A.breakWord=O(e.style.textWrapping),A.textAlign=L(e.style.textAlign),A.color=e.style.color,A.italic=e.style.italic,A.bold=e.style.bold,void 0!==e.thickness&&(A.thickness=e.thickness),A.dashArray="",A.strokeWidth=e.style.strokeWidth,A.fill="",A}(e,i);if(!0===e.isEJ2&&!0===e.isFreeText){var l=Math.ceil(g.strokeWidth||0),h=3*l*1.8;g.width=Math.max(0,g.width-h+l),g.height=Math.max(0,g.height-h),null!=n&&(n=Math.max(0,n-h+l/1.5)),e.childNodes=a=G(g,o,n)}else!0===e.isFreeText?(e.freeTextSelectorWidth=g.width?g.width:0,e.childNodes=a=Y(g,o,n)):e.childNodes=a=x(g,o,n);return e.wrapBounds=r=function(e,t,A){var i,n,o={x:0,width:0},a=0;for(a=0;a<t.length;a++)n=i=t[parseInt(a.toString(),10)].width,i=!0===A?"left"===e.textAlign||"justify"===e.textAlign?0:"center"===e.textAlign?i>e.width&&("Ellipsis"===e.textOverflow||"Clip"===e.textOverflow)?0:-i/2:"right"===e.textAlign?-i:t.length>1?0:-i/2:"left"===e.textAlign?0:"center"===e.textAlign?i>e.width&&("Ellipsis"===e.textOverflow||"Clip"===e.textOverflow)?0:-i/2:"right"===e.textAlign?-i:t.length>1?0:-i/2,t[parseInt(a.toString(),10)].dy=1.2*e.fontSize,t[parseInt(a.toString(),10)].x=i,o?(o.x=Math.min(o.x,i),o.width=Math.max(o.width,n)):o={x:i,width:n};return o}(g,a,e.isEJ2),s.width=r.width,e.wrapBounds.width>=i&&"Wrap"!==g.textOverflow&&(s.width=i),s.height=a.length*e.style.fontSize*1.2,s}function H(e,t){var A;return t&&"undefined"!=typeof document&&(A=document.getElementById(t)),A?A.querySelector("#"+e):"undefined"!=typeof document?document.getElementById(e):null}function P(e,t){var A=(0,r.createElement)(e);return function(e,t){for(var A=Object.keys(t),i=0;i<A.length;i++)"style"===A[parseInt(i.toString(),10)]?e.style.cssText=t[A[parseInt(i.toString(),10)]]:e.setAttribute(A[parseInt(i.toString(),10)],t[A[parseInt(i.toString(),10)]])}(A,t),A}function N(){for(var e,t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",A="",i=0;i<5;i++){if("crypto"in window&&"getRandomValues"in crypto){var n=new Uint16Array(1);e=(window.msCrypto||window.crypto).getRandomValues(n)[0]%60}else e=Math.floor(61*Math.random());0===i&&e<10?i--:A+=t.substring(e,e+1)}return A}function K(e){new f;var t=e.offsetY-e.actualSize.height*e.pivot.y,A=e.offsetY+e.actualSize.height*(1-e.pivot.y),i=e.offsetX-e.actualSize.width*e.pivot.x,n=e.offsetX+e.actualSize.width*(1-e.pivot.x),o={x:i,y:t},a={x:n,y:t},r={x:i,y:A},s={x:n,y:A};return f.toBounds([o,a,r,s])}function J(e,t){var A=I();D(A,t,0,0);var i=m(A,{x:0,y:0}),n=m(A,{x:e.width,y:0}),o=m(A,{x:0,y:e.height}),a=m(A,{x:e.width,y:e.height}),r=Math.min(i.x,n.x,o.x,a.x),s=Math.min(i.y,n.y,o.y,a.y),g=Math.max(i.x,n.x,o.x,a.x),l=Math.max(i.y,n.y,o.y,a.y);return new Q(g-r,l-s)}function L(e){var t="";switch(e){case"Center":t="center";break;case"Left":t="left";break;case"Right":t="right";break;case"Justify":t="justify"}return t}function O(e){var t="";switch(e){case"Wrap":t="breakall";break;case"NoWrap":t="keepall";break;case"WrapWithOverflow":t="normal";break;case"LineThrough":t="line-through"}return t}function _(e,t){var A="measureElement";window[A].style.visibility="visible";var i=b(window[A].children[2])[1];i.textContent=e,i.style.cssText="font-size: "+t.fontSize+"px; font-family: "+t.fontFamily+";\n font-weight: "+(t.bold?"bold":"normal");var n=i.getBBox().width;return window[A].style.visibility="hidden",n}function j(e,t){var A="measureElement";window[A].style.visibility="visible";var i=b(window[A].children[2])[1],n=function(e,t){void 0===t&&(t=7);var A=" ".repeat(t);return e.replace(/\t/g,A)}(e,7);i.textContent=n,i.style.cssText="font-size:"+t.fontSize+"px; font-family:"+t.fontFamily+"; \n font-weight:"+(t.bold?"bold":"normal");var o=i.getBBox().width;return window[A].style.visibility="hidden",o}function X(e,t){var A="measureElement";window[A].style.visibility="visible";var i=b(window[A].children[2])[1];i.textContent=e,i.style.cssText="font-size: "+t.fontSize+"px; font-family: "+t.fontFamily+";\n font-weight: "+(t.bold?"bold":"normal");var n=i.getBBox().height;return window[A].style.visibility="hidden",n}function Z(e,t){if("NoWrap"===t&&"PreserveAll"===e)return"pre";var A="";switch(e){case"CollapseAll":A="nowrap";break;case"CollapseSpace":A="pre-line";break;case"PreserveAll":A="pre-wrap"}return A}function z(e,t,A,i){if(0!==e){var n=I();return D(n,e,t,A),m(n,i)}return i}var W=function(){function e(){this.pivot={x:.5,y:.5},this.rotateValue={x:0,y:0,angle:0},this.isDirt=!0,this.offsetX=0,this.offsetY=0,this.cornerRadius=0,this.minHeight=void 0,this.minWidth=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.width=void 0,this.height=void 0,this.horizontalAlignment="Auto",this.verticalAlignment="Auto",this.visible=!0,this.rotateAngle=0,this.margin={left:0,right:0,top:0,bottom:0},this.relativeMode="Point",this.transform=t.Self|t.Parent,this.style={fill:"white",strokeColor:"black",opacity:1,strokeWidth:1},this.desiredSize=new Q,this.actualSize=new Q,this.parentTransform=0,this.preventContainer=!1,this.bounds=new f(0,0,0,0),this.staticSize=!1,this.isRectElement=!1,this.isCalculateDesiredSize=!0,this.elementActions=A.None,this.annotationType=void 0,this.position=void 0,this.unitMode=void 0,this.float=!1,this.floatingBounds=void 0}return e.prototype.setOffsetWithRespectToBounds=function(e,t,A){this.unitMode=A,this.position={x:e,y:t}},e.prototype.getAbsolutePosition=function(e){if(void 0!==this.position)return"Absolute"===this.unitMode?this.position:{x:this.position.x*e.width,y:this.position.y*e.height}},Object.defineProperty(e.prototype,"outerBounds",{get:function(){return this.floatingBounds||this.bounds},set:function(e){this.floatingBounds=e},enumerable:!0,configurable:!0}),e.prototype.measure=function(e){var t=void 0!==this.width?this.width:(e.width||0)-this.margin.left-this.margin.right,A=void 0!==this.height?this.height:(e.height||0)-this.margin.top-this.margin.bottom;return this.desiredSize=new Q(t,A),this.isCalculateDesiredSize&&(this.desiredSize=this.validateDesiredSize(this.desiredSize,e)),this.desiredSize},e.prototype.arrange=function(e){return this.actualSize=e,this.updateBounds(),this.actualSize},e.prototype.updateBounds=function(){this.bounds=function(e){var t=new f,A=K(e),i=A.middleLeft,n=A.topCenter,o=A.bottomCenter,a=A.middleRight,r=A.topLeft,s=A.topRight,g=A.bottomLeft,l=A.bottomRight;if(e.corners={topLeft:r,topCenter:n,topRight:s,middleLeft:i,middleRight:a,bottomLeft:g,bottomCenter:o,bottomRight:l},0!==e.rotateAngle||0!==e.parentTransform){var h=I();D(h,e.rotateAngle+e.parentTransform,e.offsetX,e.offsetY),e.corners.topLeft=r=m(h,r),e.corners.topCenter=n=m(h,n),e.corners.topRight=s=m(h,s),e.corners.middleLeft=i=m(h,i),e.corners.middleRight=a=m(h,a),e.corners.bottomLeft=g=m(h,g),e.corners.bottomCenter=o=m(h,o),e.corners.bottomRight=l=m(h,l)}return t=f.toBounds([r,s,g,l]),e.corners.left=t.left,e.corners.right=t.right,e.corners.top=t.top,e.corners.bottom=t.bottom,e.corners.center=t.center,e.corners.width=t.width,e.corners.height=t.height,t}(this)},e.prototype.validateDesiredSize=function(e,t){return!this.isRectElement||this.width||this.minWidth||this.maxWidth||(e.width=50),!this.isRectElement||this.height||this.minHeight||this.maxHeight||(e.height=50),(void 0===e||void 0!==this.width&&void 0!==this.height)&&((e=e||new Q).width=void 0===this.width?(t.width||0)-this.margin.left-this.margin.right:this.width,e.height=void 0===this.height?(t.height||0)-this.margin.top-this.margin.bottom:this.height),void 0!==this.minWidth&&(e.width=Math.max(e.width,this.minWidth)),void 0!==this.minHeight&&(e.height=Math.max(e.height,this.minHeight)),void 0!==this.maxWidth&&(e.width=Math.min(e.width,this.maxWidth)),void 0!==this.maxHeight&&(e.height=Math.min(e.height,this.maxHeight)),e},e}(),q=function(){var e=function(t,A){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)t.hasOwnProperty(A)&&(e[A]=t[A])},e(t,A)};return function(t,A){function i(){this.constructor=t}e(t,A),t.prototype=null===A?Object.create(A):(i.prototype=A.prototype,new i)}}(),$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.desiredBounds=void 0,t.measureChildren=!0,t.thickness=void 0,t.isSharpEdge=void 0,t.annotationType=void 0,t.prevRotateAngle=0,t}return q(t,e),t.prototype.hasChildren=function(){return void 0!==this.children&&this.children.length>0},t.prototype.measure=function(e){this.desiredBounds=void 0;var A,i,n=void 0;if(this.hasChildren()){for(var o=0;o<this.children.length;o++){"Stretch"!==(A=this.children[parseInt(o.toString(),10)]).horizontalAlignment||e.width||(e.width=A.bounds.width),"Stretch"!==A.verticalAlignment||e.height||(e.height=A.bounds.height);var a="Stretch"===A.horizontalAlignment||"Stretch"===A.verticalAlignment;(this.measureChildren||a||A instanceof t&&void 0!==A.measureChildren)&&A.measure(e),i=this.GetChildrenBounds(A),"Stretch"!==A.horizontalAlignment&&"Stretch"!==A.verticalAlignment?void 0===this.desiredBounds?this.desiredBounds=i:this.desiredBounds.uniteRect(i):!this.actualSize||this.actualSize.width||this.actualSize.height||A.preventContainer||"Stretch"!==A.horizontalAlignment||"Stretch"!==A.verticalAlignment||(void 0===this.desiredBounds?this.desiredBounds=A.bounds:this.desiredBounds.uniteRect(A.bounds))}if(void 0!==this.desiredBounds&&0!==this.rotateAngle){var r={x:this.desiredBounds.x+this.desiredBounds.width*this.pivot.x,y:this.desiredBounds.y+this.desiredBounds.height*this.pivot.y},s=z(this.rotateAngle,void 0,void 0,r);this.desiredBounds.x=s.x-this.desiredBounds.width*this.pivot.x,this.desiredBounds.y=s.y-this.desiredBounds.height*this.pivot.y}this.desiredBounds&&(n=new Q(this.desiredBounds.width,this.desiredBounds.height))}return n=this.validateDesiredSize(n,e),this.stretchChildren(n),this.desiredSize=n,n},t.prototype.arrange=function(e){var A,i=this.desiredBounds;if(i){this.offsetX,this.offsetY;if(this.offsetX=i.x+i.width*this.pivot.x,this.offsetY=i.y+i.height*this.pivot.y,this.hasChildren())for(var n=0;n<this.children.length;n++){var o=!1;"Stretch"===(A=this.children[parseInt(n.toString(),10)]).horizontalAlignment&&(A.offsetX=this.offsetX,A.parentTransform=this.parentTransform+this.rotateAngle,o=!0),"Stretch"===A.verticalAlignment&&(A.offsetY=this.offsetY,A.parentTransform=this.parentTransform+this.rotateAngle,o=!0),(o||this.measureChildren||A instanceof t&&void 0!==A.measureChildren)&&A.arrange(A.desiredSize)}}return this.actualSize=e,this.updateBounds(),this.prevRotateAngle=this.rotateAngle,e},t.prototype.stretchChildren=function(e){if(this.hasChildren())for(var A=0,i=this.children;A<i.length;A++){var n=i[A];"Stretch"!==n.horizontalAlignment&&void 0!==n.desiredSize.width||(n.desiredSize.width=e.width-n.margin.left-n.margin.right),"Stretch"!==n.verticalAlignment&&void 0!==n.desiredSize.height||(n.desiredSize.height=e.height-n.margin.top-n.margin.bottom),n instanceof t&&n.stretchChildren(n.desiredSize)}},t.prototype.findChildOffsetFromCenter=function(e,t){var A=function(e,t){return{x:e.x+t.desiredSize.width*t.pivot.x,y:e.y+t.desiredSize.height*t.pivot.y}}({x:t.x-e.desiredSize.width/2,y:t.y-e.desiredSize.height/2},e);A=z(e.rotateAngle,t.x,t.y,A),A=z(this.rotateAngle+this.parentTransform,this.offsetX,this.offsetY,A),e.offsetX=A.x,e.offsetY=A.y},t.prototype.GetChildrenBounds=function(e){var t=e.desiredSize.clone(),A=(e.rotateAngle,this.rotateAngle,e.offsetX),i=e.offsetY,n=A-t.width*e.pivot.x,o=i-t.height*e.pivot.y,a=n+t.width,r=o+t.height,s={x:n,y:o},g={x:a,y:o},l={x:n,y:r},h={x:a,y:r};return s=z(e.rotateAngle,e.offsetX,e.offsetY,s),g=z(e.rotateAngle,e.offsetX,e.offsetY,g),l=z(e.rotateAngle,e.offsetX,e.offsetY,l),h=z(e.rotateAngle,e.offsetX,e.offsetY,h),0!==this.rotateAngle&&(s=z(-this.rotateAngle,void 0,void 0,s),g=z(-this.rotateAngle,void 0,void 0,g),l=z(-this.rotateAngle,void 0,void 0,l),h=z(-this.rotateAngle,void 0,void 0,h)),f.toBounds([s,g,l,h])},t}(W),ee=function(){var e=function(t,A){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)t.hasOwnProperty(A)&&(e[A]=t[A])},e(t,A)};return function(t,A){function i(){this.constructor=t}e(t,A),t.prototype=null===A?Object.create(A):(i.prototype=A.prototype,new i)}}(),te=function(e){function t(){var t=e.call(this)||this;return t.textContent="",t.canMeasure=!0,t.canConsiderBounds=!0,t.doWrap=!0,t.textNodes=[],t.style={color:"black",fill:"transparent",strokeColor:"black",strokeWidth:1,fontFamily:"Arial",fontSize:12,whiteSpace:"CollapseSpace",textWrapping:"WrapWithOverflow",textAlign:"Center",italic:!1,bold:!1,textDecoration:"None",strokeDashArray:"",opacity:1,textOverflow:"Wrap"},t.style.fill="transparent",t.style.strokeColor="transparent",t}return ee(t,e),Object.defineProperty(t.prototype,"content",{get:function(){return this.textContent},set:function(e){this.textContent!==e&&(this.textContent=e,this.isDirt=!0,this.doWrap=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.textNodes},set:function(e){this.textNodes=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapBounds",{get:function(){return this.textWrapBounds},set:function(e){this.textWrapBounds=e},enumerable:!0,configurable:!0}),t.prototype.refreshTextElement=function(){this.isDirt=!0},t.prototype.measure=function(e){var t;return t=this.isDirt&&this.canMeasure?T(this,this.style,this.content,this.width||e.width,e.height):this.desiredSize,void 0===this.width||void 0===this.height?this.desiredSize=new Q(t.width,t.height):this.desiredSize=new Q(this.width,this.height),this.desiredSize=this.validateDesiredSize(this.desiredSize,e),this.desiredSize},t.prototype.arrange=function(e){return(e.width!==this.actualSize.width||e.height!==this.actualSize.height||this.isDirt)&&(this.doWrap=!0),this.actualSize=e,this.updateBounds(),this.isDirt=!1,this.actualSize},t}(W),Ae=function(){var e=function(t,A){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)t.hasOwnProperty(A)&&(e[A]=t[A])},e(t,A)};return function(t,A){function i(){this.constructor=t}e(t,A),t.prototype=null===A?Object.create(A):(i.prototype=A.prototype,new i)}}(),ie=function(e){function A(){var t=null!==e&&e.apply(this,arguments)||this;return t.measureChildren=void 0,t}return Ae(A,e),A.prototype.measure=function(t){var A=void 0,i=void 0;if(this.hasChildren()){for(var n=0,o=this.children;n<o.length;n++){var a=o[n];if(void 0!==this.thickness&&(a.thickness=this.thickness),a instanceof te){if(!a.canMeasure)break;t.width=t.width||this.maxWidth||this.minWidth,a.measure(t)}else a instanceof te||a.measure(t);var r=a.desiredSize.clone();0!==a.rotateAngle&&(r=J(r,a.rotateAngle));var s=r.width+a.margin.right,g=r.height+a.margin.bottom,l=new f(a.margin.left,a.margin.top,s,g);if(a.float)if(void 0!==a.getAbsolutePosition(r))continue;a instanceof te&&!(a instanceof te&&a.canConsiderBounds)||(void 0===i?i=l:i.uniteRect(l))}if(i){var h,d;h=Math.max(i.left,0),d=Math.max(i.top,0),A=new Q(i.width+h,i.height+d)}}return A=e.prototype.validateDesiredSize.call(this,A,t),e.prototype.stretchChildren.call(this,A),this.desiredSize=A,A},A.prototype.arrange=function(A){if(this.outerBounds=new f,this.hasChildren())for(var i=this.offsetY-A.height*this.pivot.y,n=this.offsetX-A.width*this.pivot.x,o=0,a=this.children;o<a.length;o++){var r=a[o];if(0!==(r.transform&t.Parent)){r.parentTransform=this.parentTransform+this.rotateAngle;var s=r.desiredSize.clone(),g=void 0,l={x:0,y:0},h=n,d=i;if("Point"===r.relativeMode){var c=r.getAbsolutePosition(A);void 0!==c&&(h+=c.x,d+=c.y)}if(l={x:(g="Object"===r.relativeMode?this.alignChildBasedOnParent(r,s,A,h,d):this.alignChildBasedOnaPoint(r,h,d)).x+s.width/2,y:g.y+s.height/2},r.rotateValue){var B={x:this.offsetX+(r.rotateValue.x||0),y:this.offsetY+(r.rotateValue.y||0)},p={x:this.offsetX,y:this.offsetY},w=0|r.rotateValue.angle,C=I();D(C,w,p.x,p.y),l=m(C,B)}e.prototype.findChildOffsetFromCenter.call(this,r,l)}"Stretch"===r.horizontalAlignment||"Stretch"===r.verticalAlignment?r.arrange(A):r instanceof te&&r.canMeasure?(r.arrange(r.desiredSize),this.outerBounds.uniteRect(r.outerBounds)):r instanceof te||(r.arrange(r.desiredSize),this.outerBounds.uniteRect(r.outerBounds))}return this.actualSize=A,this.updateBounds(),this.outerBounds.uniteRect(this.bounds),A},A.prototype.alignChildBasedOnParent=function(e,t,A,i,n){switch(e.horizontalAlignment){case"Auto":case"Left":i+=e.margin.left;break;case"Right":i+=A.width-t.width-e.margin.right;break;case"Stretch":case"Center":i+=A.width/2-t.width/2}switch(e.verticalAlignment){case"Auto":case"Top":n+=e.margin.top;break;case"Bottom":n+=A.height-t.height-e.margin.bottom;break;case"Stretch":case"Center":n+=A.height/2-t.height/2}return{x:i,y:n}},A.prototype.alignChildBasedOnaPoint=function(e,t,A){switch(t+=e.margin.left-e.margin.right,A+=e.margin.top-e.margin.bottom,e.horizontalAlignment){case"Auto":case"Left":break;case"Stretch":case"Center":t-=e.desiredSize.width*e.pivot.x;break;case"Right":t-=e.desiredSize.width}switch(e.verticalAlignment){case"Auto":case"Top":break;case"Stretch":case"Center":A-=e.desiredSize.height*e.pivot.y;break;case"Bottom":A-=e.desiredSize.height}return{x:t,y:A}},A}($),ne=function(){var e=function(t,A){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)t.hasOwnProperty(A)&&(e[A]=t[A])},e(t,A)};return function(t,A){function i(){this.constructor=t}e(t,A),t.prototype=null===A?Object.create(A):(i.prototype=A.prototype,new i)}}(),oe=function(e){function t(){var t=e.call(this)||this;return t.imageSource="",t.printID="",t.imageScale="None",t.imageAlign="None",t.stretch="Stretch",t}return ne(t,e),Object.defineProperty(t.prototype,"source",{get:function(){return this.imageSource},set:function(e){this.imageSource=e,this.isDirt=!0},enumerable:!0,configurable:!0}),t.prototype.measure=function(e){return this.isDirt&&("Stretch"!==this.stretch||void 0===this.width&&void 0===this.height)&&(this.contentSize=function(e,t){var A="measureElement";window[A].style.visibility="visible";var i=window[A].children[1];i.setAttribute("src",e);var n=i.getBoundingClientRect(),o=n.width,a=n.height;return t=new Q(o,a),window[A].style.visibility="hidden",t}(this.source,this.contentSize),this.isDirt=!1),void 0!==this.width&&void 0!==this.height?(this.desiredSize=new Q(this.width,this.height),this.contentSize=this.desiredSize):this.desiredSize=this.contentSize,this.desiredSize=this.validateDesiredSize(this.desiredSize,e),this.desiredSize},t.prototype.arrange=function(e){return this.actualSize=new Q(this.desiredSize.width,this.desiredSize.height),this.updateBounds(),this.actualSize},t}(W);function ae(e){var t,A=[],i=function(e){var t=/([a-z]+)|([+-]?(?:\d+\.?\d*|\.\d+))/gi,A=[],i=[],n={};t.lastIndex=0;var o=!1;n=t.exec(e);for(;n;){if("e